| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 /*! This file is auto-generated */ 2 (function() { 3 "use strict";var wp;(wp||={}).blockEditor=(()=>{var IVe=Object.create;var nI=Object.defineProperty;var PVe=Object.getOwnPropertyDescriptor;var OVe=Object.getOwnPropertyNames;var AVe=Object.getPrototypeOf,MVe=Object.prototype.hasOwnProperty;var xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),No=(e,t)=>{for(var o in t)nI(e,o,{get:t[o],enumerable:!0})},Iee=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of OVe(t))!MVe.call(e,n)&&n!==o&&nI(e,n,{get:()=>t[n],enumerable:!(r=PVe(t,n))||r.enumerable});return e};var c=(e,t,o)=>(o=e!=null?IVe(AVe(e)):{},Iee(t||!e||!e.__esModule?nI(o,"default",{value:e,enumerable:!0}):o,e)),NVe=e=>Iee(nI({},"__esModule",{value:!0}),e);var ce=xe((Ipt,Oee)=>{Oee.exports=window.wp.blocks});var F=xe((Ppt,Aee)=>{Aee.exports=window.wp.element});var ee=xe((Opt,Mee)=>{Mee.exports=window.wp.data});var ue=xe((Apt,Nee)=>{Nee.exports=window.wp.compose});var Bo=xe((Mpt,Lee)=>{Lee.exports=window.wp.hooks});var Nt=xe((omt,Jee)=>{Jee.exports=window.wp.deprecated});var q=xe((rmt,ete)=>{ete.exports=window.wp.components});var T=xe((nmt,tte)=>{tte.exports=window.ReactJSXRuntime});var ma=xe((smt,rte)=>{rte.exports=window.wp.url});var mI=xe((cmt,ste)=>{ste.exports=window.wp.privateApis});var Z=xe((vmt,pte)=>{pte.exports=window.wp.i18n});var ab=xe((_mt,mte)=>{"use strict";mte.exports=function e(t,o){if(t===o)return!0;if(t&&o&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;var r,n,i;if(Array.isArray(t)){if(r=t.length,r!=o.length)return!1;for(n=r;n--!==0;)if(!e(t[n],o[n]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(n of t.entries())if(!o.has(n[0]))return!1;for(n of t.entries())if(!e(n[1],o.get(n[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(n of t.entries())if(!o.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(o)){if(r=t.length,r!=o.length)return!1;for(n=r;n--!==0;)if(t[n]!==o[n])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(o).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,i[n]))return!1;for(n=r;n--!==0;){var s=i[n];if(!e(t[s],o[s]))return!1}return!0}return t!==t&&o!==o}});var me=xe((Imt,Tte)=>{Tte.exports=window.wp.primitives});var $r=xe((Jyt,Rte)=>{Rte.exports=window.wp.richText});var Ite=xe((evt,Bte)=>{Bte.exports=window.wp.blockSerializationDefaultParser});var F_=xe((rvt,Ote)=>{Ote.exports=window.wp.styleEngine});var i2=xe((uvt,zte)=>{"use strict";var s4e=function(t){return a4e(t)&&!l4e(t)};function a4e(e){return!!e&&typeof e=="object"}function l4e(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||d4e(e)}var c4e=typeof Symbol=="function"&&Symbol.for,u4e=c4e?Symbol.for("react.element"):60103;function d4e(e){return e.$$typeof===u4e}function f4e(e){return Array.isArray(e)?[]:{}}function JC(e,t){return t.clone!==!1&&t.isMergeableObject(e)?z_(f4e(e),e,t):e}function p4e(e,t,o){return e.concat(t).map(function(r){return JC(r,o)})}function m4e(e,t){if(!t.customMerge)return z_;var o=t.customMerge(e);return typeof o=="function"?o:z_}function g4e(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Vte(e){return Object.keys(e).concat(g4e(e))}function Fte(e,t){try{return t in e}catch{return!1}}function h4e(e,t){return Fte(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function b4e(e,t,o){var r={};return o.isMergeableObject(e)&&Vte(e).forEach(function(n){r[n]=JC(e[n],o)}),Vte(t).forEach(function(n){h4e(e,n)||(Fte(e,n)&&o.isMergeableObject(t[n])?r[n]=m4e(n,o)(e[n],t[n],o):r[n]=JC(t[n],o))}),r}function z_(e,t,o){o=o||{},o.arrayMerge=o.arrayMerge||p4e,o.isMergeableObject=o.isMergeableObject||s4e,o.cloneUnlessOtherwiseSpecified=JC;var r=Array.isArray(t),n=Array.isArray(e),i=r===n;return i?r?o.arrayMerge(e,t,o):b4e(e,t,o):JC(t,o)}z_.all=function(t,o){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,n){return z_(r,n,o)},{})};var y4e=z_;zte.exports=y4e});var Yo=xe((A_t,qoe)=>{qoe.exports=window.wp.a11y});var Ns=xe((M_t,ere)=>{ere.exports=window.wp.notices});var $_=xe((N_t,tre)=>{tre.exports=window.wp.preferences});var Vre=xe((Nwt,z2)=>{var Nre={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u1EA4:"A",\u1EAE:"A",\u1EB2:"A",\u1EB4:"A",\u1EB6:"A",\u00C6:"AE",\u1EA6:"A",\u1EB0:"A",\u0202:"A",\u1EA2:"A",\u1EA0:"A",\u1EA8:"A",\u1EAA:"A",\u1EAC:"A",\u00C7:"C",\u1E08:"C",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u1EBE:"E",\u1E16:"E",\u1EC0:"E",\u1E14:"E",\u1E1C:"E",\u0206:"E",\u1EBA:"E",\u1EBC:"E",\u1EB8:"E",\u1EC2:"E",\u1EC4:"E",\u1EC6:"E",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u1E2E:"I",\u020A:"I",\u1EC8:"I",\u1ECA:"I",\u00D0:"D",\u00D1:"N",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u1ED0:"O",\u1E4C:"O",\u1E52:"O",\u020E:"O",\u1ECE:"O",\u1ECC:"O",\u1ED4:"O",\u1ED6:"O",\u1ED8:"O",\u1EDC:"O",\u1EDE:"O",\u1EE0:"O",\u1EDA:"O",\u1EE2:"O",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u1EE6:"U",\u1EE4:"U",\u1EEC:"U",\u1EEE:"U",\u1EF0:"U",\u00DD:"Y",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u1EA5:"a",\u1EAF:"a",\u1EB3:"a",\u1EB5:"a",\u1EB7:"a",\u00E6:"ae",\u1EA7:"a",\u1EB1:"a",\u0203:"a",\u1EA3:"a",\u1EA1:"a",\u1EA9:"a",\u1EAB:"a",\u1EAD:"a",\u00E7:"c",\u1E09:"c",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u1EBF:"e",\u1E17:"e",\u1EC1:"e",\u1E15:"e",\u1E1D:"e",\u0207:"e",\u1EBB:"e",\u1EBD:"e",\u1EB9:"e",\u1EC3:"e",\u1EC5:"e",\u1EC7:"e",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u1E2F:"i",\u020B:"i",\u1EC9:"i",\u1ECB:"i",\u00F0:"d",\u00F1:"n",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u1ED1:"o",\u1E4D:"o",\u1E53:"o",\u020F:"o",\u1ECF:"o",\u1ECD:"o",\u1ED5:"o",\u1ED7:"o",\u1ED9:"o",\u1EDD:"o",\u1EDF:"o",\u1EE1:"o",\u1EDB:"o",\u1EE3:"o",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u1EE7:"u",\u1EE5:"u",\u1EED:"u",\u1EEF:"u",\u1EF1:"u",\u00FD:"y",\u00FF:"y",\u0100:"A",\u0101:"a",\u0102:"A",\u0103:"a",\u0104:"A",\u0105:"a",\u0106:"C",\u0107:"c",\u0108:"C",\u0109:"c",\u010A:"C",\u010B:"c",\u010C:"C",\u010D:"c",C\u0306:"C",c\u0306:"c",\u010E:"D",\u010F:"d",\u0110:"D",\u0111:"d",\u0112:"E",\u0113:"e",\u0114:"E",\u0115:"e",\u0116:"E",\u0117:"e",\u0118:"E",\u0119:"e",\u011A:"E",\u011B:"e",\u011C:"G",\u01F4:"G",\u011D:"g",\u01F5:"g",\u011E:"G",\u011F:"g",\u0120:"G",\u0121:"g",\u0122:"G",\u0123:"g",\u0124:"H",\u0125:"h",\u0126:"H",\u0127:"h",\u1E2A:"H",\u1E2B:"h",\u0128:"I",\u0129:"i",\u012A:"I",\u012B:"i",\u012C:"I",\u012D:"i",\u012E:"I",\u012F:"i",\u0130:"I",\u0131:"i",\u0132:"IJ",\u0133:"ij",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u1E30:"K",\u1E31:"k",K\u0306:"K",k\u0306:"k",\u0139:"L",\u013A:"l",\u013B:"L",\u013C:"l",\u013D:"L",\u013E:"l",\u013F:"L",\u0140:"l",\u0141:"l",\u0142:"l",\u1E3E:"M",\u1E3F:"m",M\u0306:"M",m\u0306:"m",\u0143:"N",\u0144:"n",\u0145:"N",\u0146:"n",\u0147:"N",\u0148:"n",\u0149:"n",N\u0306:"N",n\u0306:"n",\u014C:"O",\u014D:"o",\u014E:"O",\u014F:"o",\u0150:"O",\u0151:"o",\u0152:"OE",\u0153:"oe",P\u0306:"P",p\u0306:"p",\u0154:"R",\u0155:"r",\u0156:"R",\u0157:"r",\u0158:"R",\u0159:"r",R\u0306:"R",r\u0306:"r",\u0212:"R",\u0213:"r",\u015A:"S",\u015B:"s",\u015C:"S",\u015D:"s",\u015E:"S",\u0218:"S",\u0219:"s",\u015F:"s",\u0160:"S",\u0161:"s",\u0162:"T",\u0163:"t",\u021B:"t",\u021A:"T",\u0164:"T",\u0165:"t",\u0166:"T",\u0167:"t",T\u0306:"T",t\u0306:"t",\u0168:"U",\u0169:"u",\u016A:"U",\u016B:"u",\u016C:"U",\u016D:"u",\u016E:"U",\u016F:"u",\u0170:"U",\u0171:"u",\u0172:"U",\u0173:"u",\u0216:"U",\u0217:"u",V\u0306:"V",v\u0306:"v",\u0174:"W",\u0175:"w",\u1E82:"W",\u1E83:"w",X\u0306:"X",x\u0306:"x",\u0176:"Y",\u0177:"y",\u0178:"Y",Y\u0306:"Y",y\u0306:"y",\u0179:"Z",\u017A:"z",\u017B:"Z",\u017C:"z",\u017D:"Z",\u017E:"z",\u017F:"s",\u0192:"f",\u01A0:"O",\u01A1:"o",\u01AF:"U",\u01B0:"u",\u01CD:"A",\u01CE:"a",\u01CF:"I",\u01D0:"i",\u01D1:"O",\u01D2:"o",\u01D3:"U",\u01D4:"u",\u01D5:"U",\u01D6:"u",\u01D7:"U",\u01D8:"u",\u01D9:"U",\u01DA:"u",\u01DB:"U",\u01DC:"u",\u1EE8:"U",\u1EE9:"u",\u1E78:"U",\u1E79:"u",\u01FA:"A",\u01FB:"a",\u01FC:"AE",\u01FD:"ae",\u01FE:"O",\u01FF:"o",\u00DE:"TH",\u00FE:"th",\u1E54:"P",\u1E55:"p",\u1E64:"S",\u1E65:"s",X\u0301:"X",x\u0301:"x",\u0403:"\u0413",\u0453:"\u0433",\u040C:"\u041A",\u045C:"\u043A",A\u030B:"A",a\u030B:"a",E\u030B:"E",e\u030B:"e",I\u030B:"I",i\u030B:"i",\u01F8:"N",\u01F9:"n",\u1ED2:"O",\u1ED3:"o",\u1E50:"O",\u1E51:"o",\u1EEA:"U",\u1EEB:"u",\u1E80:"W",\u1E81:"w",\u1EF2:"Y",\u1EF3:"y",\u0200:"A",\u0201:"a",\u0204:"E",\u0205:"e",\u0208:"I",\u0209:"i",\u020C:"O",\u020D:"o",\u0210:"R",\u0211:"r",\u0214:"U",\u0215:"u",B\u030C:"B",b\u030C:"b",\u010C\u0323:"C",\u010D\u0323:"c",\u00CA\u030C:"E",\u00EA\u030C:"e",F\u030C:"F",f\u030C:"f",\u01E6:"G",\u01E7:"g",\u021E:"H",\u021F:"h",J\u030C:"J",\u01F0:"j",\u01E8:"K",\u01E9:"k",M\u030C:"M",m\u030C:"m",P\u030C:"P",p\u030C:"p",Q\u030C:"Q",q\u030C:"q",\u0158\u0329:"R",\u0159\u0329:"r",\u1E66:"S",\u1E67:"s",V\u030C:"V",v\u030C:"v",W\u030C:"W",w\u030C:"w",X\u030C:"X",x\u030C:"x",Y\u030C:"Y",y\u030C:"y",A\u0327:"A",a\u0327:"a",B\u0327:"B",b\u0327:"b",\u1E10:"D",\u1E11:"d",\u0228:"E",\u0229:"e",\u0190\u0327:"E",\u025B\u0327:"e",\u1E28:"H",\u1E29:"h",I\u0327:"I",i\u0327:"i",\u0197\u0327:"I",\u0268\u0327:"i",M\u0327:"M",m\u0327:"m",O\u0327:"O",o\u0327:"o",Q\u0327:"Q",q\u0327:"q",U\u0327:"U",u\u0327:"u",X\u0327:"X",x\u0327:"x",Z\u0327:"Z",z\u0327:"z",\u0439:"\u0438",\u0419:"\u0418",\u0451:"\u0435",\u0401:"\u0415"},Lre=Object.keys(Nre).join("|"),hze=new RegExp(Lre,"g"),bze=new RegExp(Lre,"");function yze(e){return Nre[e]}var Dre=function(e){return e.replace(hze,yze)},vze=function(e){return!!e.match(bze)};z2.exports=Dre;z2.exports.has=vze;z2.exports.remove=Dre});var wo=xe((xxt,Mne)=>{Mne.exports=window.wp.keycodes});var Dt=xe((Hxt,Kne)=>{Kne.exports=window.wp.dom});var oe=xe((aSt,lie)=>{lie.exports=window.React});var uie=xe((lSt,cie)=>{"use strict";var pje="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";cie.exports=pje});var mie=xe((cSt,pie)=>{"use strict";var mje=uie();function die(){}function fie(){}fie.resetWarningCache=die;pie.exports=function(){function e(r,n,i,s,a,l){if(l!==mje){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var o={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:fie,resetWarningCache:die};return o.PropTypes=o,o}});var hie=xe((fSt,gie)=>{gie.exports=mie()();var uSt,dSt});var yie=xe((bO,bie)=>{(function(e,t){if(typeof define=="function"&&define.amd)define(["module","exports"],t);else if(typeof bO<"u")t(bie,bO);else{var o={exports:{}};t(o,o.exports),e.autosize=o.exports}})(bO,function(e,t){"use strict";var o=typeof Map=="function"?new Map:(function(){var l=[],u=[];return{has:function(f){return l.indexOf(f)>-1},get:function(f){return u[l.indexOf(f)]},set:function(f,p){l.indexOf(f)===-1&&(l.push(f),u.push(p))},delete:function(f){var p=l.indexOf(f);p>-1&&(l.splice(p,1),u.splice(p,1))}}})(),r=function(u){return new Event(u,{bubbles:!0})};try{new Event("test")}catch{r=function(d){var f=document.createEvent("Event");return f.initEvent(d,!0,!1),f}}function n(l){if(!l||!l.nodeName||l.nodeName!=="TEXTAREA"||o.has(l))return;var u=null,d=null,f=null;function p(){var _=window.getComputedStyle(l,null);_.resize==="vertical"?l.style.resize="none":_.resize==="both"&&(l.style.resize="horizontal"),_.boxSizing==="content-box"?u=-(parseFloat(_.paddingTop)+parseFloat(_.paddingBottom)):u=parseFloat(_.borderTopWidth)+parseFloat(_.borderBottomWidth),isNaN(u)&&(u=0),b()}function m(_){{var w=l.style.width;l.style.width="0px",l.offsetWidth,l.style.width=w}l.style.overflowY=_}function g(_){for(var w=[];_&&_.parentNode&&_.parentNode instanceof Element;)_.parentNode.scrollTop&&w.push({node:_.parentNode,scrollTop:_.parentNode.scrollTop}),_=_.parentNode;return w}function h(){if(l.scrollHeight!==0){var _=g(l),w=document.documentElement&&document.documentElement.scrollTop;l.style.height="",l.style.height=l.scrollHeight+u+"px",d=l.clientWidth,_.forEach(function(k){k.node.scrollTop=k.scrollTop}),w&&(document.documentElement.scrollTop=w)}}function b(){h();var _=Math.round(parseFloat(l.style.height)),w=window.getComputedStyle(l,null),k=w.boxSizing==="content-box"?Math.round(parseFloat(w.height)):l.offsetHeight;if(k<_?w.overflowY==="hidden"&&(m("scroll"),h(),k=w.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(l,null).height)):l.offsetHeight):w.overflowY!=="hidden"&&(m("hidden"),h(),k=w.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(l,null).height)):l.offsetHeight),f!==k){f=k;var x=r("autosize:resized");try{l.dispatchEvent(x)}catch{}}}var v=function(){l.clientWidth!==d&&b()},y=function(_){window.removeEventListener("resize",v,!1),l.removeEventListener("input",b,!1),l.removeEventListener("keyup",b,!1),l.removeEventListener("autosize:destroy",y,!1),l.removeEventListener("autosize:update",b,!1),Object.keys(_).forEach(function(w){l.style[w]=_[w]}),o.delete(l)}.bind(l,{height:l.style.height,resize:l.style.resize,overflowY:l.style.overflowY,overflowX:l.style.overflowX,wordWrap:l.style.wordWrap});l.addEventListener("autosize:destroy",y,!1),"onpropertychange"in l&&"oninput"in l&&l.addEventListener("keyup",b,!1),window.addEventListener("resize",v,!1),l.addEventListener("input",b,!1),l.addEventListener("autosize:update",b,!1),l.style.overflowX="hidden",l.style.wordWrap="break-word",o.set(l,{destroy:y,update:b}),p()}function i(l){var u=o.get(l);u&&u.destroy()}function s(l){var u=o.get(l);u&&u.update()}var a=null;typeof window>"u"||typeof window.getComputedStyle!="function"?(a=function(u){return u},a.destroy=function(l){return l},a.update=function(l){return l}):(a=function(u,d){return u&&Array.prototype.forEach.call(u.length?u:[u],function(f){return n(f,d)}),u},a.destroy=function(l){return l&&Array.prototype.forEach.call(l.length?l:[l],i),l},a.update=function(l){return l&&Array.prototype.forEach.call(l.length?l:[l],s),l}),t.default=a,e.exports=t.default})});var _ie=xe((pSt,vie)=>{var gje=function(e,t,o){return o=window.getComputedStyle,(o?o(e):e.currentStyle)[t.replace(/-(\w)/gi,function(r,n){return n.toUpperCase()})]};vie.exports=gje});var kie=xe((mSt,wie)=>{var xH=_ie();function hje(e){var t=xH(e,"line-height"),o=parseFloat(t,10);if(t===o+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=xH(e,"line-height"),o=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(t.indexOf("pt")!==-1?(o*=4,o/=3):t.indexOf("mm")!==-1?(o*=96,o/=25.4):t.indexOf("cm")!==-1?(o*=96,o/=2.54):t.indexOf("in")!==-1?o*=96:t.indexOf("pc")!==-1&&(o*=16),o=Math.round(o),t==="normal"){var n=e.nodeName,i=document.createElement(n);i.innerHTML=" ",n.toUpperCase()==="TEXTAREA"&&i.setAttribute("rows","1");var s=xH(e,"font-size");i.style.fontSize=s,i.style.padding="0px",i.style.border="0px";var a=document.body;a.appendChild(i);var l=i.offsetHeight;o=l,a.removeChild(i)}return o}wie.exports=hje});var Sie=xe(Bf=>{"use strict";var bje=Bf&&Bf.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)o.hasOwnProperty(r)&&(t[r]=o[r])};return function(t,o){e(t,o);function r(){this.constructor=t}t.prototype=o===null?Object.create(o):(r.prototype=o.prototype,new r)}})(),SH=Bf&&Bf.__assign||Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++){t=arguments[o];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},yje=Bf&&Bf.__rest||function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&(o[r[n]]=e[r[n]]);return o};Bf.__esModule=!0;var vO=oe(),R1=hie(),yO=yie(),vje=kie(),_je=vje,xie="autosize:resized",wje=(function(e){bje(t,e);function t(){var o=e!==null&&e.apply(this,arguments)||this;return o.state={lineHeight:null},o.textarea=null,o.onResize=function(r){o.props.onResize&&o.props.onResize(r)},o.updateLineHeight=function(){o.textarea&&o.setState({lineHeight:_je(o.textarea)})},o.onChange=function(r){var n=o.props.onChange;o.currentValue=r.currentTarget.value,n&&n(r)},o}return t.prototype.componentDidMount=function(){var o=this,r=this.props,n=r.maxRows,i=r.async;typeof n=="number"&&this.updateLineHeight(),typeof n=="number"||i?setTimeout(function(){return o.textarea&&yO(o.textarea)}):this.textarea&&yO(this.textarea),this.textarea&&this.textarea.addEventListener(xie,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(xie,this.onResize),yO.destroy(this.textarea))},t.prototype.render=function(){var o=this,r=this,n=r.props,i=n.onResize,s=n.maxRows,a=n.onChange,l=n.style,u=n.innerRef,d=n.children,f=yje(n,["onResize","maxRows","onChange","style","innerRef","children"]),p=r.state.lineHeight,m=s&&p?p*s:null;return vO.createElement("textarea",SH({},f,{onChange:this.onChange,style:m?SH({},l,{maxHeight:m}):l,ref:function(g){o.textarea=g,typeof o.props.innerRef=="function"?o.props.innerRef(g):o.props.innerRef&&(o.props.innerRef.current=g)}}),d)},t.prototype.componentDidUpdate=function(){this.textarea&&yO.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:R1.number,maxRows:R1.number,onResize:R1.func,innerRef:R1.any,async:R1.bool},t})(vO.Component);Bf.TextareaAutosize=vO.forwardRef(function(e,t){return vO.createElement(wje,SH({},e,{innerRef:t}))})});var CH=xe((hSt,Cie)=>{"use strict";var kje=Sie();Cie.exports=kje.TextareaAutosize});var uw=xe((wSt,Pie)=>{Pie.exports=window.wp.warning});var Pf=xe((FSt,Tse)=>{Tse.exports=window.ReactDOM});var fl=xe((k0t,lae)=>{lae.exports=window.wp.keyboardShortcuts});var Cae=xe((LCt,Sae)=>{Sae.exports=window.wp.htmlEntities});var Rce=xe(Tce=>{"use strict";var Vw=oe();function vGe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _Ge=typeof Object.is=="function"?Object.is:vGe,wGe=Vw.useState,kGe=Vw.useEffect,xGe=Vw.useLayoutEffect,SGe=Vw.useDebugValue;function CGe(e,t){var o=t(),r=wGe({inst:{value:o,getSnapshot:t}}),n=r[0].inst,i=r[1];return xGe(function(){n.value=o,n.getSnapshot=t,wU(n)&&i({inst:n})},[e,o,t]),kGe(function(){return wU(n)&&i({inst:n}),e(function(){wU(n)&&i({inst:n})})},[e]),SGe(o),o}function wU(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!_Ge(e,o)}catch{return!0}}function EGe(e,t){return t()}var TGe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?EGe:CGe;Tce.useSyncExternalStore=Vw.useSyncExternalStore!==void 0?Vw.useSyncExternalStore:TGe});var _E=xe((FBt,Bce)=>{"use strict";Bce.exports=Rce()});var Pce=xe(Ice=>{"use strict";var GA=oe(),RGe=_E();function BGe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var IGe=typeof Object.is=="function"?Object.is:BGe,PGe=RGe.useSyncExternalStore,OGe=GA.useRef,AGe=GA.useEffect,MGe=GA.useMemo,NGe=GA.useDebugValue;Ice.useSyncExternalStoreWithSelector=function(e,t,o,r,n){var i=OGe(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=MGe(function(){function l(m){if(!u){if(u=!0,d=m,m=r(m),n!==void 0&&s.hasValue){var g=s.value;if(n(g,m))return f=g}return f=m}if(g=f,IGe(d,m))return g;var h=r(m);return n!==void 0&&n(g,h)?(d=m,g):(d=m,f=h)}var u=!1,d,f,p=o===void 0?null:o;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,o,r,n]);var a=PGe(e,i[0],i[1]);return AGe(function(){s.hasValue=!0,s.value=a},[a]),NGe(a),a}});var Ace=xe((jBt,Oce)=>{"use strict";Oce.exports=Pce()});var _pe=xe((C8t,vpe)=>{vpe.exports=window.wp.theme});var Aye=xe((fto,Oye)=>{Oye.exports=window.wp.uploadMedia});var s_e=xe((lro,cK)=>{var wt=String,i_e=function(){return{isColorSupported:!1,reset:wt,bold:wt,dim:wt,italic:wt,underline:wt,inverse:wt,hidden:wt,strikethrough:wt,black:wt,red:wt,green:wt,yellow:wt,blue:wt,magenta:wt,cyan:wt,white:wt,gray:wt,bgBlack:wt,bgRed:wt,bgGreen:wt,bgYellow:wt,bgBlue:wt,bgMagenta:wt,bgCyan:wt,bgWhite:wt,blackBright:wt,redBright:wt,greenBright:wt,yellowBright:wt,blueBright:wt,magentaBright:wt,cyanBright:wt,whiteBright:wt,bgBlackBright:wt,bgRedBright:wt,bgGreenBright:wt,bgYellowBright:wt,bgBlueBright:wt,bgMagentaBright:wt,bgCyanBright:wt,bgWhiteBright:wt}};cK.exports=i_e();cK.exports.createColors=i_e});var uK=xe(()=>{});var ED=xe((dro,c_e)=>{"use strict";var a_e=s_e(),l_e=uK(),mT=class e extends Error{constructor(t,o,r,n,i,s){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),n&&(this.source=n),s&&(this.plugin=s),typeof o<"u"&&typeof r<"u"&&(typeof o=="number"?(this.line=o,this.column=r):(this.line=o.line,this.column=o.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let o=this.source;t==null&&(t=a_e.isColorSupported);let r=d=>d,n=d=>d,i=d=>d;if(t){let{bold:d,gray:f,red:p}=a_e.createColors(!0);n=m=>d(p(m)),r=m=>f(m),l_e&&(i=m=>l_e(m))}let s=o.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length;return s.slice(a,l).map((d,f)=>{let p=a+1+f,m=" "+(" "+p).slice(-u)+" | ";if(p===this.line){if(d.length>160){let h=20,b=Math.max(0,this.column-h),v=Math.max(this.column+h,this.endColumn+h),y=d.slice(b,v),_=r(m.replace(/\d/g," "))+d.slice(0,Math.min(this.column-1,h-1)).replace(/[^\t]/g," ");return n(">")+r(m)+i(y)+` 4 `+_+n("^")}let g=r(m.replace(/\d/g," "))+d.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(m)+i(d)+` 5 `+g+n("^")}return" "+r(m)+i(d)}).join(` 6 `)}toString(){let t=this.showSourceCode();return t&&(t=` 7 8 `+t+` 9 `),this.name+": "+this.message+t}};c_e.exports=mT;mT.default=mT});var dK=xe((fro,m_e)=>{"use strict";var YQe=/(<)(\/?style\b)/gi,KQe=/(<)(!--)/g,qQe=/[\t\n\f\r "#'()/;[\\\]{}]/;function Gc(e){return typeof e!="string"||!e.includes("<")?e:e.replace(YQe,"\\3c $2").replace(KQe,"\\3c $2")}var u_e={after:` 10 `,beforeClose:` 11 `,beforeComment:` 12 `,beforeDecl:` 13 `,beforeOpen:" ",beforeRule:` 14 `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function ZQe(e){return e[0].toUpperCase()+e.slice(1)}function d_e(e,t){let o="@"+t.name,r=t.params?e.rawValue(t,"params"):"",n=t.raws.afterName;return typeof n>"u"?n=r?" ":"":n===""&&r&&!qQe.test(r[0])&&(n=" "),o+n+r}function p_e(e,t,o){let r=o.nodes,n=r.length-1;for(;n>0&&r[n].type==="comment";)n-=1;let i=e.raw(o,"semicolon"),s=o.type==="document";for(let a=r.length-1;a>=0;a--){let l=r[a],u=n!==a||i;!u&&a<r.length-1&&(l.type==="atrule"&&!l.nodes||l.type==="decl"&&l.prop.startsWith("--"))&&(u=!0),t.push({document:s,node:l,semicolon:u})}}function f_e(e,t,o,r){let n=e.raw(o,"between","beforeOpen");e.builder(Gc(r+n)+"{",o,"start");let i=o.nodes&&o.nodes.length,s=()=>{let a=i?e.raw(o,"after"):e.raw(o,"after","emptyBody");a&&e.builder(Gc(a)),e.builder("}",o,"end"),o.type==="rule"&&o.raws.ownSemicolon&&e.builder(Gc(o.raws.ownSemicolon),o,"end")};i?(t.push(s),p_e(e,t,o)):s()}var gT=class e{constructor(t){this.builder=t}atrule(t,o){let r=d_e(this,t);if(t.nodes)this.block(t,r);else{let n=(t.raws.between||"")+(o?";":"");this.builder(Gc(r+n),t)}}beforeAfter(t,o){let r;t.type==="decl"?r=this.raw(t,null,"beforeDecl"):t.type==="comment"?r=this.raw(t,null,"beforeComment"):o==="before"?r=this.raw(t,null,"beforeRule"):r=this.raw(t,null,"beforeClose");let n=t.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(r.includes(` 15 `)){let s=this.raw(t,null,"indent");if(s.length)for(let a=0;a<i;a++)r+=s}return r}block(t,o){let r=this.raw(t,"between","beforeOpen");this.builder(Gc(o+r)+"{",t,"start");let n;t.nodes&&t.nodes.length?(this.body(t),n=this.raw(t,"after")):n=this.raw(t,"after","emptyBody"),n&&this.builder(Gc(n)),this.builder("}",t,"end")}body(t){let o=e.prototype,r=["atrule","block","body","rule","stringify"].every(i=>this[i]===o[i]),n=[];for(p_e(this,n,t);n.length>0;){let i=n.pop();if(typeof i=="function"){i();continue}let s=i.node,a=this.raw(s,"before");a&&this.builder(i.document?a:Gc(a)),r&&s.type==="rule"?f_e(this,n,s,this.rawValue(s,"selector")):r&&s.type==="atrule"&&s.nodes?f_e(this,n,s,d_e(this,s)):this.stringify(s,i.semicolon)}}comment(t){let o=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder(Gc("/*"+o+t.text+r+"*/"),t)}decl(t,o){let r=t.raws,n=this.raw(t,"between","colon"),i=t.prop+n+this.rawValue(t,"value");t.important&&(i+=r.important||" !important"),o&&(i+=";"),this.builder(Gc(i),t)}document(t){this.body(t)}raw(t,o,r){let n;if(r||(r=o),o&&(n=t.raws[o],typeof n<"u"))return n;let i=t.parent;if(r==="before"&&(!i||i.type==="root"&&i.first===t||i&&i.type==="document"))return"";if(!i)return u_e[r];let s=t.root(),a=s.rawCache||(s.rawCache={});if(typeof a[r]<"u")return a[r];if(r==="before"||r==="after")return this.beforeAfter(t,r);{let l="raw"+ZQe(r);this[l]?n=this[l](s,t):s.walk(u=>{if(n=u.raws[o],typeof n<"u")return!1})}return typeof n>"u"&&(n=u_e[r]),a[r]=n,n}rawBeforeClose(t){let o;return t.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return o=r.raws.after,o.includes(` 16 `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(t,o){let r;return t.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(` 17 `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(o,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,o){let r;return t.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(` 18 `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(o,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){let o;return t.walk(r=>{if(r.type!=="decl"&&(o=r.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(t){let o;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&typeof r.raws.before<"u")return o=r.raws.before,o.includes(` 19 `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(t){let o;return t.walkDecls(r=>{if(typeof r.raws.between<"u")return o=r.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(t){let o;return t.walk(r=>{if(r.nodes&&r.nodes.length===0&&(o=r.raws.after,typeof o<"u"))return!1}),o}rawIndent(t){if(t.raws.indent)return t.raws.indent;let o;return t.walk(r=>{let n=r.parent;if(n&&n!==t&&n.parent&&n.parent===t&&typeof r.raws.before<"u"){let i=r.raws.before.split(` 20 `);return o=i[i.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(t){let o;return t.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(o=r.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(t,o){let r=t[o],n=t.raws[o];return n&&n.value===r?n.raw:r}root(t){if(t.source&&t.source.input.hasBOM&&this.builder("\uFEFF",t,"start"),this.body(t),t.raws.after){let o=t.raws.after,r=t.parent&&t.parent.type==="document";this.builder(r?o:Gc(o))}}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(Gc(t.raws.ownSemicolon),t,"end")}stringify(t,o){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,o)}};m_e.exports=gT;gT.default=gT});var TD=xe((pro,g_e)=>{"use strict";var XQe=dK();function fK(e,t){new XQe(t).stringify(e)}g_e.exports=fK;fK.default=fK});var hT=xe((mro,pK)=>{"use strict";pK.exports.isClean=Symbol("isClean");pK.exports.my=Symbol("my")});var RD=xe((gro,h_e)=>{"use strict";var QQe=ED(),JQe=dK(),eJe=TD(),{isClean:bT,my:tJe}=hT();function oJe(e,t){let o=new e.constructor,r=[[e,o,t]];for(;r.length>0;){let[n,i,s]=r.pop();for(let a in n){if(!Object.prototype.hasOwnProperty.call(n,a)||a==="proxyCache")continue;let l=n[a],u=typeof l;if(a==="parent"&&u==="object")s&&(i[a]=s);else if(a==="source")i[a]=l;else if(Array.isArray(l)){let d=[];i[a]=d;for(let f of l){let p=new f.constructor;d.push(p),r.push([f,p,i])}}else{if(u==="object"&&l!==null){let d=new l.constructor;r.push([l,d,void 0]),l=d}i[a]=l}}}return o}function bd(e,t){if(t&&typeof t.offset<"u")return t.offset;let o=1,r=1,n=0;for(let i=0;i<e.length;i++){if(r===t.line&&o===t.column){n=i;break}e[i]===` 21 `?(o=1,r+=1):o+=1}return n}var yT=class e{get proxyOf(){return this}constructor(t={}){this.raws={},this[bT]=!1,this[tJe]=!0;for(let o of Object.keys(t))if(o!=="__proto__")if(o==="nodes"){this.nodes=[];for(let r of t[o])typeof r.clone=="function"&&r.parent?this.append(r.clone()):this.append(r)}else this[o]=t[o]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let o=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&$o.input.from}:$o.start.line}:$o.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let o in t)this[o]=t[o];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let o=oJe(this);for(let r in t)o[r]=t[r];return o}cloneAfter(t={}){let o=this.clone(t);return this.parent.insertAfter(this,o),o}cloneBefore(t={}){let o=this.clone(t);return this.parent.insertBefore(this,o),o}error(t,o={}){if(this.source){let{end:r,start:n}=this.rangeBy(o);return this.source.input.error(t,{column:n.column,line:n.line},{column:r.column,line:r.line},o)}return new QQe(t)}getProxyProcessor(){return{get(t,o){return o==="proxyOf"?t:o==="root"?()=>t.root().toProxy():t[o]},set(t,o,r){return t[o]===r||(t[o]=r,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&t.markDirty()),!0}}}markClean(){this[bT]=!0}markDirty(){if(this[bT]){this[bT]=!1;let t=this;for(;t=t.parent;)t[bT]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let o="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:bd(o,this.source.start)};if(t.index)r=this.positionInside(t.index);else if(t.word){let i=o.slice(bd(o,this.source.start),bd(o,this.source.end)).indexOf(t.word);i!==-1&&(r=this.positionInside(i))}return r}positionInside(t){let o=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,i=bd(n,this.source.start),s=i+t;for(let a=i;a<s;a++)n[a]===` 22 `?(o=1,r+=1):o+=1;return{column:o,line:r,offset:s}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let o="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:bd(o,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:bd(o,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(t.word){let s=o.slice(bd(o,this.source.start),bd(o,this.source.end)).indexOf(t.word);s!==-1&&(r=this.positionInside(s),n=this.positionInside(s+t.word.length))}else t.start?r={column:t.start.column,line:t.start.line,offset:bd(o,t.start)}:typeof t.index=="number"&&(r=this.positionInside(t.index)),t.end?n={column:t.end.column,line:t.end.line,offset:bd(o,t.end)}:typeof t.endIndex=="number"?n=this.positionInside(t.endIndex):typeof t.index=="number"&&(n=this.positionInside(t.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(t,o){return new JQe().raw(this,t,o)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let o=this,r=!1;for(let n of t)n===this?r=!0:r?(this.parent.insertAfter(o,n),o=n):this.parent.insertBefore(o,n);r||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,o){let r=o==null;o=o||new Map;let n=[],i=[[this,n,0]];for(let a=0;a<i.length;a++){let[l,u,d]=i[a],f={};u[d]=f;for(let p in l){if(!Object.prototype.hasOwnProperty.call(l,p)||p==="parent"||p==="proxyCache")continue;let m=l[p];if(Array.isArray(m)){let g=[];f[p]=g;for(let h=0;h<m.length;h++){let b=m[h];typeof b=="object"&&b.toJSON?b.toJSON===e.prototype.toJSON?i.push([b,g,h]):g[h]=b.toJSON(null,o):g[h]=b}}else if(typeof m=="object"&&m.toJSON)m.toJSON===e.prototype.toJSON?i.push([m,f,p]):f[p]=m.toJSON(null,o);else if(p==="source"){if(m==null)continue;let g=o.get(m.input);g==null&&(g=o.size,o.set(m.input,g)),f[p]={end:m.end,inputId:g,start:m.start}}else f[p]=m}}let s=n[0];return r&&(s.inputs=[...o.keys()].map(a=>a.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=eJe){t.stringify&&(t=t.stringify);let o="";return t(this,r=>{o+=r}),o}warn(t,o,r={}){let n={node:this};for(let i in r)n[i]=r[i];return t.warn(o,n)}};h_e.exports=yT;yT.default=yT});var mK=xe((hro,b_e)=>{"use strict";var rJe=RD(),vT=class extends rJe{constructor(t){super(t),this.type="comment"}};b_e.exports=vT;vT.default=vT});var gK=xe((bro,y_e)=>{"use strict";var nJe=RD(),_T=class extends nJe{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}};y_e.exports=_T;_T.default=_T});var Eg=xe((yro,E_e)=>{"use strict";var __e=mK(),w_e=gK(),v_e=RD(),{isClean:k_e,my:x_e}=hT(),hK,S_e,C_e,bK;function iJe(e){let t=e.slice();for(;t.length>0;){let o=t.pop();if(delete o.source,o.nodes){o.nodes=o.nodes.slice();for(let r of o.nodes)t.push(r)}}return e.slice()}function sJe(e){let t=[e];for(;t.length>0;){let o=t.pop();if(o[k_e]=!1,o.proxyOf.nodes)for(let r of o.proxyOf.nodes)t.push(r)}}var yd=class e extends v_e{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...t){for(let o of t){let r=this.normalize(o,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(t){let o=[this];for(;o.length>0;){let r=o.pop();if(r!==this&&r.cleanRaws!==e.prototype.cleanRaws){r.cleanRaws(t);continue}if(v_e.prototype.cleanRaws.call(r,t),r.nodes)for(let n of r.nodes)o.push(n)}}each(t){if(!this.proxyOf.nodes)return;let o=this.getIterator(),r,n;for(;this.indexes[o]<this.proxyOf.nodes.length&&(r=this.indexes[o],n=t(this.proxyOf.nodes[r],r),n!==!1);)this.indexes[o]+=1;return delete this.indexes[o],n}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,o){return o==="proxyOf"?t:t[o]?o==="each"||typeof o=="string"&&o.startsWith("walk")?(...r)=>t[o](...r.map(n=>typeof n=="function"?(i,s)=>n(i.toProxy(),s):n)):o==="every"||o==="some"?r=>t[o]((n,...i)=>r(n.toProxy(),...i)):o==="root"?()=>t.root().toProxy():o==="nodes"?t.nodes.map(r=>r.toProxy()):o==="first"||o==="last"?t[o].toProxy():t[o]:t[o]},set(t,o,r){return t[o]===r||(t[o]=r,(o==="name"||o==="params"||o==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,o){let r=this.index(t),n=this.normalize(o,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let s of n)this.proxyOf.nodes.splice(r+1,0,s);let i;for(let s in this.indexes)i=this.indexes[s],r<i&&(this.indexes[s]=i+n.length);return this.markDirty(),this}insertBefore(t,o){let r=this.index(t),n=r===0?"prepend":!1,i=this.normalize(o,this.proxyOf.nodes[r],n).reverse();r=this.index(t);for(let a of i)this.proxyOf.nodes.splice(r,0,a);let s;for(let a in this.indexes)s=this.indexes[a],r<=s&&(this.indexes[a]=s+i.length);return this.markDirty(),this}normalize(t,o){if(typeof t=="string")t=iJe(S_e(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let n of t)n.parent&&n.parent.removeChild(n,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let n of t)n.parent&&n.parent.removeChild(n,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new w_e(t)]}else if(t.selector||t.selectors)t=[new bK(t)];else if(t.name)t=[new hK(t)];else if(t.text)t=[new __e(t)];else throw new Error("Unknown node type in node creation");return t.map(n=>(n[x_e]||e.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[k_e]&&sJe(n),n.raws||(n.raws={}),typeof n.raws.before>"u"&&o&&typeof o.raws.before<"u"&&(n.raws.before=o.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...t){t=t.reverse();for(let o of t){let r=this.normalize(o,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let o;for(let r in this.indexes)o=this.indexes[r],o>=t&&(this.indexes[r]=o-1);return this.markDirty(),this}replaceValues(t,o,r){return r||(r=o,o={}),this.walkDecls(n=>{o.props&&!o.props.includes(n.prop)||o.fast&&!n.value.includes(o.fast)||(n.value=n.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){if(!this.proxyOf.nodes)return;let o=[{iterator:this.getIterator(),node:this.proxyOf}];for(;o.length>0;){let{iterator:r,node:n}=o[o.length-1],i=n.indexes[r];if(i>=n.proxyOf.nodes.length){delete n.indexes[r],o.pop();let l=o[o.length-1];l&&(l.node.indexes[l.iterator]+=1);continue}let s=n.proxyOf.nodes[i],a;try{a=t(s,i)}catch(l){throw s.addToError(l)}if(a===!1){for(let l of o)delete l.node.indexes[l.iterator];return!1}s.walk&&s.proxyOf.nodes?o.push({iterator:s.getIterator(),node:s}):n.indexes[r]+=1}}walkAtRules(t,o){return o?t instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&t.test(r.name))return o(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===t)return o(r,n)}):(o=t,this.walk((r,n)=>{if(r.type==="atrule")return o(r,n)}))}walkComments(t){return this.walk((o,r)=>{if(o.type==="comment")return t(o,r)})}walkDecls(t,o){return o?t instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&t.test(r.prop))return o(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===t)return o(r,n)}):(o=t,this.walk((r,n)=>{if(r.type==="decl")return o(r,n)}))}walkRules(t,o){return o?t instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&t.test(r.selector))return o(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===t)return o(r,n)}):(o=t,this.walk((r,n)=>{if(r.type==="rule")return o(r,n)}))}};yd.registerParse=e=>{S_e=e};yd.registerRule=e=>{bK=e};yd.registerAtRule=e=>{hK=e};yd.registerRoot=e=>{C_e=e};E_e.exports=yd;yd.default=yd;yd.rebuild=e=>{let t=[e];for(;t.length>0;){let o=t.pop();if(o.type==="atrule"?Object.setPrototypeOf(o,hK.prototype):o.type==="rule"?Object.setPrototypeOf(o,bK.prototype):o.type==="decl"?Object.setPrototypeOf(o,w_e.prototype):o.type==="comment"?Object.setPrototypeOf(o,__e.prototype):o.type==="root"&&Object.setPrototypeOf(o,C_e.prototype),o[x_e]=!0,o.nodes)for(let r of o.nodes)t.push(r)}}});var yK=xe((vro,B_e)=>{"use strict";var aJe=Eg(),T_e,R_e,Py=class extends aJe{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new T_e(new R_e,this,t).stringify()}};Py.registerLazyResult=e=>{T_e=e};Py.registerProcessor=e=>{R_e=e};B_e.exports=Py;Py.default=Py});var BD=xe(()=>{});var ID=xe(()=>{});var vK=xe(()=>{});var P_e=xe((Ero,I_e)=>{var lJe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",cJe=(e,t=21)=>(o=t)=>{let r="",n=o|0;for(;n-- >0;)r+=e[Math.random()*e.length|0];return r},uJe=(e=21)=>{let t="",o=e|0;for(;o-- >0;)t+=lJe[Math.random()*64|0];return t};I_e.exports={nanoid:uJe,customAlphabet:cJe}});var O_e=xe(()=>{});var D_e=xe((Bro,L_e)=>{"use strict";var{existsSync:dJe,readFileSync:fJe,realpathSync:pJe}=O_e(),{dirname:PD,isAbsolute:mJe,join:gJe,relative:hJe,sep:bJe}=BD(),{SourceMapConsumer:A_e,SourceMapGenerator:M_e}=ID();function N_e(e){try{return pJe(e)}catch{return e}}function yJe(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var wT=class{constructor(t,o){if(o.map===!1)return;o.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=o.map?o.map.prev:void 0,n=this.loadMap(o.from,r);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=PD(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new A_e(this.json||this.text)),this.consumerCache}decodeInline(t){let o=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/,s=t.match(n)||t.match(i);if(s)return decodeURIComponent(t.substr(s[0].length));let a=t.match(o)||t.match(r);if(a)return yJe(t.substr(a[0].length));let l=t.slice(22);throw l=l.slice(0,l.indexOf(",")),new Error("Unsupported source map encoding "+l)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let o=t.match(/\/\*\s*# sourceMappingURL=/g);if(!o)return;let r=t.lastIndexOf(o.pop()),n=t.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,n)))}loadFile(t,o,r){if(!r&&!this.unsafeMap){if(!/\.map$/i.test(t)||!o)return;let n=hJe(N_e(PD(o)),N_e(t));if(n===".."||n.startsWith(".."+bJe)||mJe(n))return}if(this.root=PD(t),dJe(t))return this.mapFile=t,fJe(t,"utf-8").toString().trim()}loadMap(t,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let r=o(t);if(r){let n=this.loadFile(r,t,!0);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(o instanceof A_e)return M_e.fromSourceMap(o).toString();if(o instanceof M_e)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;t&&(r=gJe(PD(t),r));let n=this.loadFile(r,t,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(t,o){return t?t.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};L_e.exports=wT;wT.default=wT});var SK=xe((Iro,H_e)=>{"use strict";var{nanoid:vJe}=P_e(),{isAbsolute:kK,resolve:xK}=BD(),{SourceMapConsumer:_Je,SourceMapGenerator:wJe}=ID(),{fileURLToPath:V_e,pathToFileURL:OD}=vK(),F_e=ED(),kJe=D_e(),_K=uK(),wK=Symbol("lineToIndexCache"),xJe=!!(_Je&&wJe),z_e=!!(xK&&kK);function j_e(e){if(e[wK])return e[wK];let t=e.css.split(` 23 `),o=new Array(t.length),r=0;for(let n=0,i=t.length;n<i;n++)o[n]=r,r+=t[n].length+1;return e[wK]=o,o}var Kk=class{get from(){return this.file||this.id}constructor(t,o={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received $t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,o.document&&(this.document=o.document.toString()),o.from&&(!z_e||/^\w+:\/\//.test(o.from)||kK(o.from)?this.file=o.from:this.file=xK(o.from)),z_e&&xJe){let r=new kJe(this.css,o);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+vJe(6)+">"),this.map&&(this.map.file=this.from)}error(t,o,r,n={}){let i,s,a,l,u;if(o&&typeof o=="object"){let f=o,p=r;if(typeof f.offset=="number"){l=f.offset;let m=this.fromOffset(l);o=m.line,r=m.col}else o=f.line,r=f.column,l=this.fromLineAndColumn(o,r);if(typeof p.offset=="number"){a=p.offset;let m=this.fromOffset(a);s=m.line,i=m.col}else s=p.line,i=p.column,a=this.fromLineAndColumn(p.line,p.column)}else if(r)l=this.fromLineAndColumn(o,r);else{l=o;let f=this.fromOffset(l);o=f.line,r=f.col}let d=this.origin(o,r,s,i);return d?u=new F_e(t,d.endLine===void 0?d.line:{column:d.column,line:d.line},d.endLine===void 0?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):u=new F_e(t,s===void 0?o:{column:r,line:o},s===void 0?r:{column:i,line:s},this.css,this.file,n.plugin),u.input={column:r,endColumn:i,endLine:s,endOffset:a,line:o,offset:l,source:this.css},this.file&&(OD&&(u.input.url=OD(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(t,o){return j_e(this)[t-1]+o-1}fromOffset(t){let o=j_e(this),r=o[o.length-1],n=0;if(t>=r)n=o.length-1;else{let i=o.length-2,s;for(;n<i;)if(s=n+(i-n>>1),t<o[s])i=s-1;else if(t>=o[s+1])n=s+1;else{n=s;break}}return{col:t-o[n]+1,line:n+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:xK(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,o,r,n){if(!this.map)return!1;let i=this.map.consumer(),s=i.originalPositionFor({column:o-1,line:t});if(!s.source)return!1;let a;if(typeof r=="number"){let f=i.originalPositionFor({column:n-1,line:r});f.source&&(a=f)}let l;kK(s.source)?l=OD(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||OD(this.map.mapFile));let u={column:s.column+1,endColumn:a&&a.column+1,endLine:a&&a.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(V_e)u.file=V_e(l);else throw new Error("file: protocol is not available in this PostCSS build");let d=i.sourceContentFor(s.source);return d&&(u.source=d),u}toJSON(){let t={};for(let o of["hasBOM","css","file","id"])this[o]!=null&&(t[o]=this[o]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}};H_e.exports=Kk;Kk.default=Kk;_K&&_K.registerInput&&_K.registerInput(Kk)});var EK=xe((Pro,K_e)=>{"use strict";var{dirname:AD,relative:U_e,resolve:G_e,sep:$_e}=BD(),{SourceMapConsumer:Y_e,SourceMapGenerator:MD}=ID(),{pathToFileURL:W_e}=vK(),SJe=SK(),CJe=!!(Y_e&&MD),EJe=!!(AD&&G_e&&U_e&&$_e),CK=class{constructor(t,o,r,n){this.stringify=t,this.mapOpts=r.map||{},this.root=o,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let o=` 24 `;this.css.includes(`\r 25 `)&&(o=`\r 26 `),this.css+=o+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let o=this.toUrl(this.path(t.file)),r=t.root||AD(t.file),n;this.mapOpts.sourcesContent===!1?(n=new Y_e(t.text),n.sourcesContent&&(n.sourcesContent=null)):n=t.consumer(),this.map.applySourceMap(n,o,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let t;for(let o=this.root.nodes.length-1;o>=0;o--)t=this.root.nodes[o],t.type==="comment"&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(o)}else if(this.css){let t;for(;(t=this.css.lastIndexOf("/*#"))!==-1;){let o=this.css.indexOf("*/",t+3);if(o===-1)break;for(;t>0&&this.css[t-1]===` 27 `;)t--;this.css=this.css.slice(0,t)+this.css.slice(o+2)}}}}generate(){if(this.clearAnnotation(),EJe&&CJe&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,o=>{t+=o}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=MD.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new MD({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new MD({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,o=1,r="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""},i,s;this.stringify(this.root,(a,l,u)=>{if(this.css+=a,l&&u!=="end"&&(n.generated.line=t,n.generated.column=o-1,l.source&&l.source.start?(n.source=this.sourcePath(l),n.original.line=l.source.start.line,n.original.column=l.source.start.column-1,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,this.map.addMapping(n))),s=a.match(/\n/g),s?(t+=s.length,i=a.lastIndexOf(` 28 `),o=a.length-i):o+=a.length,l&&u!=="start"){let d=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==d.last||d.raws.semicolon)&&(l.source&&l.source.end?(n.source=this.sourcePath(l),n.original.line=l.source.end.line,n.original.column=l.source.end.column-1,n.generated.line=t,n.generated.column=o-2,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,n.generated.line=t,n.generated.column=o-1,this.map.addMapping(n)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(o=>o.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let o=this.memoizedPaths.get(t);if(o)return o;let r=this.opts.to?AD(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=AD(G_e(r,this.mapOpts.annotation)));let n=U_e(r,t);return this.memoizedPaths.set(t,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let o=t.source.input.map;this.previousMaps.includes(o)||this.previousMaps.push(o)}});else{let t=new SJe(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(o=>{if(o.source){let r=o.source.input.from;if(r&&!t[r]){t[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,o.source.input.css)}}});else if(this.css){let o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let o=this.memoizedFileURLs.get(t);if(o)return o;if(W_e){let r=W_e(t).toString();return this.memoizedFileURLs.set(t,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let o=this.memoizedURLs.get(t);if(o)return o;$_e==="\\"&&(t=t.replace(/\\/g,"/"));let r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}};K_e.exports=CK});var X_e=xe((Oro,Z_e)=>{"use strict";var q_e=Eg(),qk=class extends q_e{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};Z_e.exports=qk;qk.default=qk;q_e.registerAtRule(qk)});var ND=xe((Aro,twe)=>{"use strict";var Q_e=Eg(),J_e,ewe,Tg=class extends Q_e{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,o,r){let n=new Set;for(let s of Array.isArray(t)?t:[t])s&&typeof s=="object"&&!s.parent&&s.raws&&typeof s.raws.before<"u"&&n.add(s.raws);let i=super.normalize(t);if(o){if(r==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let s of i)n.has(s.raws)||(s.raws.before=o.raws.before)}return i}removeChild(t,o){let r=this.index(t);return!o&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t={}){return new J_e(new ewe,this,t).stringify()}};Tg.registerLazyResult=e=>{J_e=e};Tg.registerProcessor=e=>{ewe=e};twe.exports=Tg;Tg.default=Tg;Q_e.registerRoot(Tg)});var rwe=xe((Mro,owe)=>{"use strict";var kT={comma(e){return kT.split(e,[","],!0)},space(e){let t=[" ",` 29 `," "];return kT.split(e,t)},split(e,t,o){if(typeof e!="string")return[];let r=[],n="",i=!1,s=0,a=!1,l="",u=!1;for(let d of e)u?u=!1:d==="\\"?u=!0:a?d===l&&(a=!1):d==='"'||d==="'"?(a=!0,l=d):d==="("?s+=1:d===")"?s>0&&(s-=1):s===0&&t.includes(d)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=d;return(o||n!=="")&&r.push(n.trim()),r}};owe.exports=kT;kT.default=kT});var swe=xe((Nro,iwe)=>{"use strict";var nwe=Eg(),TJe=rwe(),Zk=class extends nwe{get selectors(){return TJe.comma(this.selector)}set selectors(t){let o=this.selector?this.selector.match(/,\s*/):null,r=o?o[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}};iwe.exports=Zk;Zk.default=Zk;nwe.registerRule(Zk)});var cwe=xe((Lro,lwe)=>{"use strict";var LD=/[\t\n\f\r "#'()/;[\\\]{}]/g,DD=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,RJe=/.[\r\n"'(/\\]/,awe=/[\da-f]/i;lwe.exports=function(t,o={}){let r=t.css.valueOf(),n=o.ignoreErrors,i,s,a,l,u,d,f,p,m,g,h=r.length,b=0,v=[],y=[],_=-1;function w(){return b}function k(R){throw t.error("Unclosed "+R,b)}function x(){return y.length===0&&b>=h}function C(R){if(y.length)return y.pop();if(b>=h)return;let S=R?R.ignoreUnclosed:!1;switch(i=r.charCodeAt(b),i){case 10:case 32:case 9:case 13:case 12:{l=b;do l+=1,i=r.charCodeAt(l);while(i===32||i===10||i===9||i===13||i===12);d=["space",r.slice(b,l)],b=l-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let I=String.fromCharCode(i);d=[I,I,b];break}case 40:{if(g=v.length?v.pop()[1]:"",m=r.charCodeAt(b+1),g==="url"&&m!==39&&m!==34&&m!==32&&m!==10&&m!==9&&m!==12&&m!==13){l=b;do{if(f=!1,l=r.indexOf(")",l+1),l===-1)if(n||S){l=b;break}else k("bracket");for(p=l;r.charCodeAt(p-1)===92;)p-=1,f=!f}while(f);d=["brackets",r.slice(b,l+1),b,l],b=l}else b<=_?d=["(","(",b]:(l=r.indexOf(")",b+1),s=r.slice(b,l+1),l===-1||RJe.test(s)?(_=l===-1?h:l,d=["(","(",b]):(d=["brackets",s,b,l],b=l));break}case 39:case 34:{u=i===39?"'":'"',l=b;do{if(f=!1,l=r.indexOf(u,l+1),l===-1)if(n||S){l=b+1;break}else k("string");for(p=l;r.charCodeAt(p-1)===92;)p-=1,f=!f}while(f);d=["string",r.slice(b,l+1),b,l],b=l;break}case 64:{LD.lastIndex=b+1,LD.test(r),LD.lastIndex===0?l=r.length-1:l=LD.lastIndex-2,d=["at-word",r.slice(b,l+1),b,l],b=l;break}case 92:{for(l=b,a=!0;r.charCodeAt(l+1)===92;)l+=1,a=!a;if(i=r.charCodeAt(l+1),a&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(l+=1,awe.test(r.charAt(l)))){for(;awe.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===32&&(l+=1)}d=["word",r.slice(b,l+1),b,l],b=l;break}default:{i===47&&r.charCodeAt(b+1)===42?(l=r.indexOf("*/",b+2)+1,l===0&&(n||S?l=r.length:k("comment")),d=["comment",r.slice(b,l+1),b,l],b=l):(DD.lastIndex=b+1,DD.test(r),DD.lastIndex===0?l=r.length-1:l=DD.lastIndex-2,d=["word",r.slice(b,l+1),b,l],v.push(d),b=l);break}}return b++,d}function E(R){y.push(R)}return{back:E,endOfFile:x,nextToken:C,position:w}}});var pwe=xe((Dro,fwe)=>{"use strict";var BJe=X_e(),IJe=mK(),PJe=gK(),OJe=ND(),uwe=swe(),AJe=cwe(),dwe={empty:!0,space:!0};function MJe(e){for(let t=e.length-1;t>=0;t--){let o=e[t],r=o[3]||o[2];if(r)return r}}function TK(e,t,o){let r="";for(let n=t;n<o;n++)r+=e[n][1];return r}var RK=class{constructor(t){this.input=t,this.root=new OJe,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let o=new BJe;o.name=t[1].slice(1),o.name===""&&this.unnamedAtrule(o,t),this.init(o,t[2]);let r,n,i,s=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),r=t[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(i=l.length-1,n=l[i];n&&n[0]==="space";)n=l[--i];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(o,"params",l),s&&(t=l[l.length-1],o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),a&&(o.nodes=[],this.current=o)}checkMissedSemicolon(t){let o=this.colon(t);if(o===!1)return;let r=0,n;for(let i=o-1;i>=0&&(n=t[i],!(n[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(t){let o=0,r,n,i;for(let[s,a]of t.entries()){if(n=a,i=n[0],i==="("&&(o+=1),i===")"&&(o-=1),o===0&&i===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return s}r=n}return!1}comment(t){let o=new IJe;this.init(o,t[2]),o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++;let r=t[1].slice(2,-2);if(!r.trim())o.text="",o.raws.left=r,o.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);o.text=n[2],o.raws.left=n[1],o.raws.right=n[3]}}createTokenizer(){this.tokenizer=AJe(this.input)}decl(t,o){let r=new PJe;this.init(r,t[0][2]);let n=t[t.length-1];n[0]===";"&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(n[3]||n[2]||MJe(t)),r.source.end.offset++;let i=0;for(;t[i][0]!=="word";)i===t.length-1&&this.unknownWord([t[i]]),i++;r.raws.before+=TK(t,0,i),r.source.start=this.getPosition(t[i][2]);let s=i;for(;i<t.length;){let p=t[i][0];if(p===":"||p==="space"||p==="comment")break;i++}r.prop=TK(t,s,i);let a=i,l;for(;i<t.length&&(l=t[i],i++,l[0]!==":");)l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]);r.raws.between=TK(t,a,i),(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let u=i;for(;i<t.length;){let p=t[i][0];if(p!=="space"&&p!=="comment")break;i++}let d=t.slice(u,i);t=t.slice(i),this.precheckMissedSemicolon(t);for(let p=t.length-1;p>=0;p--){if(l=t[p],l[1].toLowerCase()==="!important"){r.important=!0;let m=this.stringFrom(t,p);m=this.spacesFromEnd(t)+m,m!==" !important"&&(r.raws.important=m);break}else if(l[1].toLowerCase()==="important"){let m=t.slice(0),g="";for(let h=p;h>0;h--){let b=m[h][0];if(g.trim().startsWith("!")&&b!=="space")break;g=m.pop()[1]+g}g.trim().startsWith("!")&&(r.important=!0,r.raws.important=g,t=m)}if(l[0]!=="space"&&l[0]!=="comment")break}t.some(p=>p[0]!=="space"&&p[0]!=="comment")&&(r.raws.between+=d.map(p=>p[1]).join(""),d=[]),this.raw(r,"value",d.concat(t),o),r.value.includes(":")&&!o&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let o=new uwe;this.init(o,t[2]),o.selector="",o.raws.between="",this.current=o}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let o=this.current.nodes[this.current.nodes.length-1];o&&o.type==="rule"&&!o.raws.ownSemicolon&&(o.raws.ownSemicolon=this.spaces,this.spaces="",o.source.end=this.getPosition(t[2]),o.source.end.offset+=o.raws.ownSemicolon.length)}}getPosition(t){let o=this.input.fromOffset(t);return{column:o.col,line:o.line,offset:t}}init(t,o){this.current.push(t),t.source={input:this.input,start:this.getPosition(o)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let o=!1,r=null,n=!1,i=null,s=[],a=t[1].startsWith("--"),l=[],u=t;for(;u;){if(r=u[0],l.push(u),r==="("||r==="[")i||(i=u),s.push(r==="("?")":"]");else if(a&&n&&r==="{")i||(i=u),s.push("}");else if(s.length===0)if(r===";")if(n){this.decl(l,a);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),o=!0;break}else r===":"&&(n=!0);else r===s[s.length-1]&&(s.pop(),s.length===0&&(i=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(o=!0),s.length>0&&this.unclosedBracket(i),o&&n){if(!a)for(;l.length&&(u=l[l.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,o,r,n){let i,s,a=r.length,l="",u=!0,d,f;for(let p=0;p<a;p+=1)i=r[p],s=i[0],s==="space"&&p===a-1&&!n?u=!1:s==="comment"?(f=r[p-1]?r[p-1][0]:"empty",d=r[p+1]?r[p+1][0]:"empty",!dwe[f]&&!dwe[d]?l.slice(-1)===","?u=!1:l+=i[1]:u=!1):l+=i[1];if(!u){let p=r.reduce((m,g)=>m+g[1],"");t.raws[o]={raw:p,value:l}}t[o]=l}rule(t){t.pop();let o=new uwe;this.init(o,t[0][2]),o.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(o,"selector",t),this.current=o}spacesAndCommentsFromEnd(t){let o,r="";for(;t.length&&(o=t[t.length-1][0],!(o!=="space"&&o!=="comment"));)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let o,r="";for(;t.length&&(o=t[0][0],!(o!=="space"&&o!=="comment"));)r+=t.shift()[1];return r}spacesFromEnd(t){let o,r="";for(;t.length&&(o=t[t.length-1][0],o==="space");)r=t.pop()[1]+r;return r}stringFrom(t,o){let r="";for(let n=o;n<t.length;n++)r+=t[n][1];return t.splice(o,t.length-o),r}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,o){throw this.input.error("At-rule without name",{offset:o[2]},{offset:o[2]+o[1].length})}};fwe.exports=RK});var BK=xe((Vro,mwe)=>{"use strict";var NJe=Eg(),LJe=SK(),DJe=pwe();function VD(e,t){let o=new LJe(e,t),r=new DJe(o);try{r.parse()}catch(n){throw n}return r.root}mwe.exports=VD;VD.default=VD;NJe.registerParse(VD)});var hwe=xe((Fro,gwe)=>{"use strict";var VJe=Eg(),{my:FJe}=hT(),xT=class{constructor(t,o={}){if(this.type="warning",this.text=t,o.node&&o.node.source){o.node[FJe]||VJe.rebuild(o.node);let r=o.node.rangeBy(o);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in o)this[r]=o[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};gwe.exports=xT;xT.default=xT});var IK=xe((zro,bwe)=>{"use strict";var zJe=hwe(),ST=class{get content(){return this.css}constructor(t,o,r){this.processor=t,this.messages=[],this.root=o,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(t,o={}){o.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(o.plugin=this.lastPlugin.postcssPlugin);let r=new zJe(t,o);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>t.type==="warning")}};bwe.exports=ST;ST.default=ST});var PK=xe((jro,vwe)=>{"use strict";var ywe={};vwe.exports=function(t){ywe[t]||(ywe[t]=!0,typeof console<"u"&&console.warn&&console.warn(t))}});var Swe=xe((Wro,xwe)=>{"use strict";var jJe=Eg(),HJe=yK(),WJe=EK(),UJe=BK(),_we=IK(),GJe=ND(),$Je=TD(),{isClean:$c,my:YJe}=hT(),Hro=PK(),KJe={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},qJe={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},ZJe={Once:!0,postcssPlugin:!0,prepare:!0},Xk=0;function CT(e){return typeof e=="object"&&typeof e.then=="function"}function OK(e){let t=!1,o=KJe[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[o,o+"-"+t,Xk,o+"Exit",o+"Exit-"+t]:t?[o,o+"-"+t,o+"Exit",o+"Exit-"+t]:e.append?[o,Xk,o+"Exit"]:[o,o+"Exit"]}function wwe(e){let t;return e.type==="document"?t=["Document",Xk,"DocumentExit"]:e.type==="root"?t=["Root",Xk,"RootExit"]:t=OK(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function kwe(e){let t=[e];for(;t.length>0;){let o=t.pop();if(o[$c]=!1,o.nodes)for(let r of o.nodes)t.push(r)}return e}var AK={},Rg=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,o,r){this.stringified=!1,this.processed=!1;let n;if(typeof o=="object"&&o!==null&&(o.type==="root"||o.type==="document"))n=kwe(o);else if(o instanceof e||o instanceof _we)n=kwe(o.root),o.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=o.map);else{let i=UJe;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{n=i(o,r)}catch(s){this.processed=!0,this.error=s}n&&!n[YJe]&&jJe.rebuild(n)}this.result=new _we(t,n,r),this.helpers={...AK,postcss:AK,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,o){let r=this.result.lastPlugin;try{o&&o.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin?(t.plugin=r.postcssPlugin,t.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return t}prepareVisitors(){this.listeners={};let t=(o,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([o,n])};for(let o of this.plugins)if(typeof o=="object")for(let r in o){if(!qJe[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event $r} in $o.postcssPlugin}. Try to update PostCSS ($this.processor.version} now).`);if(!ZJe[r])if(typeof o[r]=="object")for(let n in o[r])n==="*"?t(o,r,o[r][n]):t(o,r+"-"+n.toLowerCase(),o[r][n]);else typeof o[r]=="function"&&t(o,r,o[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let o=this.plugins[t],r=this.runOnRoot(o);if(CT(r))try{await r}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[$c];){t[$c]=!0;let o=[wwe(t)];for(;o.length>0;){let r=this.visitTick(o);if(CT(r))try{await r}catch(n){let i=o[o.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[o,r]of this.listeners.OnceExit){this.result.lastPlugin=o;try{if(t.type==="document"){let n=t.nodes.map(i=>r(i,this.helpers));await Promise.all(n)}else await r(t,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let o=this.result.root.nodes.map(r=>t.Once(r,this.helpers));return CT(o[0])?Promise.all(o):o}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(o){throw this.handleError(o)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,o=$Je;t.syntax&&(o=t.syntax.stringify),t.stringifier&&(o=t.stringifier),o.stringify&&(o=o.stringify);let r=this.result.root.source;if(t.map===void 0&&!(r&&r.input&&r.input.map)){let s="";return o(this.result.root,a=>{s+=a}),this.result.css=s,this.result}let i=new WJe(o,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let o=this.runOnRoot(t);if(CT(o))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[$c];)t[$c]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let o of t.nodes)this.visitSync(this.listeners.OnceExit,o);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,o){return this.async().then(t,o)}toString(){return this.css}visitSync(t,o){for(let[r,n]of t){this.result.lastPlugin=r;let i;try{i=n(o,this.helpers)}catch(s){throw this.handleError(s,o.proxyOf)}if(o.type!=="root"&&o.type!=="document"&&!o.parent)return!0;if(CT(i))throw this.getAsyncError()}}visitTick(t){let o=t[t.length-1],{node:r,visitors:n}=o;if(r.type!=="root"&&r.type!=="document"&&!r.parent){t.pop();return}if(n.length>0&&o.visitorIndex<n.length){let[s,a]=n[o.visitorIndex];o.visitorIndex+=1,o.visitorIndex===n.length&&(o.visitors=[],o.visitorIndex=0),this.result.lastPlugin=s;try{return a(r.toProxy(),this.helpers)}catch(l){throw this.handleError(l,r)}}if(o.iterator!==0){let s=o.iterator;o.descending&&(o.descending=!1,r.indexes[s]+=1);let a;for(;a=r.nodes[r.indexes[s]];){if(!a[$c]){a[$c]=!0,o.descending=!0,t.push(wwe(a));return}r.indexes[s]+=1}o.iterator=0,delete r.indexes[s]}let i=o.events;for(;o.eventIndex<i.length;){let s=i[o.eventIndex];if(o.eventIndex+=1,s===Xk){r.nodes&&r.nodes.length&&(r[$c]=!0,o.iterator=r.getIterator());return}else if(this.listeners[s]){o.visitors=this.listeners[s];return}}t.pop()}walkSync(t){t[$c]=!0;let o=[{eventIndex:0,events:OK(t),iterator:0,node:t}];for(;o.length>0;){let r=o[o.length-1],n=r.node;if(r.iterator!==0){let i=r.iterator;r.descending&&(r.descending=!1,n.indexes[i]+=1);let s,a=!1;for(;s=n.nodes[n.indexes[i]];){if(!s[$c]){s[$c]=!0,r.descending=!0,o.push({eventIndex:0,events:OK(s),iterator:0,node:s}),a=!0;break}n.indexes[i]+=1}if(a)continue;r.iterator=0,delete n.indexes[i]}if(r.eventIndex<r.events.length){let i=r.events[r.eventIndex];if(r.eventIndex+=1,i===Xk)n.nodes&&n.nodes.length&&(r.iterator=n.getIterator());else{let s=this.listeners[i];s&&this.visitSync(s,n.toProxy())&&o.pop()}continue}o.pop()}}warnings(){return this.sync().warnings()}};Rg.registerPostcss=e=>{AK=e};xwe.exports=Rg;Rg.default=Rg;GJe.registerLazyResult(Rg);HJe.registerLazyResult(Rg)});var Ewe=xe((Gro,Cwe)=>{"use strict";var XJe=EK(),QJe=BK(),JJe=IK(),eet=TD(),Uro=PK(),ET=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,o=QJe;try{t=o(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,o,r){o=o.toString(),this.stringified=!1,this._processor=t,this._css=o,this._opts=r,this._map=void 0;let n=eet;this.result=new JJe(this._processor,void 0,this._opts),this.result.css=o;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let s=new XJe(n,void 0,this._opts,o);if(s.isMap()){let[a,l]=s.generate();a&&(this.result.css=a),l&&(this.result.map=l)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,o){return this.async().then(t,o)}toString(){return this._css}warnings(){return[]}};Cwe.exports=ET;ET.default=ET});var Rwe=xe(($ro,Twe)=>{"use strict";var tet=yK(),oet=Swe(),ret=Ewe(),net=ND(),Oy=class{constructor(t=[]){this.version="8.5.26",this.plugins=this.normalize(t)}normalize(t){let o=[];for(let r of t)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))o=o.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)o.push(r);else if(typeof r=="function")o.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return o}process(t,o={}){return!this.plugins.length&&!o.parser&&!o.stringifier&&!o.syntax?new ret(this,t,o):new oet(this,t,o)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};Twe.exports=Oy;Oy.default=Oy;net.registerProcessor(Oy);tet.registerProcessor(Oy)});var Pwe=xe((Yro,Iwe)=>{Iwe.exports=function(t){let o=t.prefix,r=/\s+$/.test(o)?o:`$o} `,n=t.ignoreFiles?[].concat(t.ignoreFiles):[],i=t.includeFiles?[].concat(t.includeFiles):[];return function(s){n.length&&s.source.input.file&&Bwe(s.source.input.file,n)||i.length&&s.source.input.file&&!Bwe(s.source.input.file,i)||s.walkRules(a=>{let l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];a.parent&&l.includes(a.parent.name)||(a.selectors=a.selectors.map(u=>t.exclude&&iet(u,t.exclude)?u:t.transform?t.transform(o,u,r+u,s.source.input.file,a):r+u))})}};function Bwe(e,t){return t.some(o=>o instanceof RegExp?o.test(e):e.includes(o))}function iet(e,t){return t.some(o=>o instanceof RegExp?o.test(e):e===o)}});var Awe=xe((Kro,Owe)=>{var MK=40,NK=41,FD=39,LK=34,DK=92,Qk=47,VK=44,FK=58,zD=42,set=117,aet=85,cet=43,uet=/^[a-f0-9?-]+$/i;Owe.exports=function(e){for(var t=[],o=e,r,n,i,s,a,l,u,d,f=0,p=o.charCodeAt(f),m=o.length,g=[{nodes:t}],h=0,b,v="",y="",_="";f<m;)if(p<=32){r=f;do r+=1,p=o.charCodeAt(r);while(p<=32);s=o.slice(f,r),i=t[t.length-1],p===NK&&h?_=s:i&&i.type==="div"?(i.after=s,i.sourceEndIndex+=s.length):p===VK||p===FK||p===Qk&&o.charCodeAt(r+1)!==zD&&(!b||b&&b.type==="function"&&b.value!=="calc")?y=s:t.push({type:"space",sourceIndex:f,sourceEndIndex:r,value:s}),f=r}else if(p===FD||p===LK){r=f,n=p===FD?"'":'"',s={type:"string",sourceIndex:f,quote:n};do if(a=!1,r=o.indexOf(n,r+1),~r)for(l=r;o.charCodeAt(l-1)===DK;)l-=1,a=!a;else o+=n,r=o.length-1,s.unclosed=!0;while(a);s.value=o.slice(f+1,r),s.sourceEndIndex=s.unclosed?r:r+1,t.push(s),f=r+1,p=o.charCodeAt(f)}else if(p===Qk&&o.charCodeAt(f+1)===zD)r=o.indexOf("*/",f),s={type:"comment",sourceIndex:f,sourceEndIndex:r+2},r===-1&&(s.unclosed=!0,r=o.length,s.sourceEndIndex=r),s.value=o.slice(f+2,r),t.push(s),f=r+2,p=o.charCodeAt(f);else if((p===Qk||p===zD)&&b&&b.type==="function"&&b.value==="calc")s=o[f],t.push({type:"word",sourceIndex:f-y.length,sourceEndIndex:f+s.length,value:s}),f+=1,p=o.charCodeAt(f);else if(p===Qk||p===VK||p===FK)s=o[f],t.push({type:"div",sourceIndex:f-y.length,sourceEndIndex:f+s.length,value:s,before:y,after:""}),y="",f+=1,p=o.charCodeAt(f);else if(MK===p){r=f;do r+=1,p=o.charCodeAt(r);while(p<=32);if(d=f,s={type:"function",sourceIndex:f-v.length,value:v,before:o.slice(d+1,r)},f=r,v==="url"&&p!==FD&&p!==LK){r-=1;do if(a=!1,r=o.indexOf(")",r+1),~r)for(l=r;o.charCodeAt(l-1)===DK;)l-=1,a=!a;else o+=")",r=o.length-1,s.unclosed=!0;while(a);u=r;do u-=1,p=o.charCodeAt(u);while(p<=32);d<u?(f!==u+1?s.nodes=[{type:"word",sourceIndex:f,sourceEndIndex:u+1,value:o.slice(f,u+1)}]:s.nodes=[],s.unclosed&&u+1!==r?(s.after="",s.nodes.push({type:"space",sourceIndex:u+1,sourceEndIndex:r,value:o.slice(u+1,r)})):(s.after=o.slice(u+1,r),s.sourceEndIndex=r)):(s.after="",s.nodes=[]),f=r+1,s.sourceEndIndex=s.unclosed?r:f,p=o.charCodeAt(f),t.push(s)}else h+=1,s.after="",s.sourceEndIndex=f+1,t.push(s),g.push(s),t=s.nodes=[],b=s;v=""}else if(NK===p&&h)f+=1,p=o.charCodeAt(f),b.after=_,b.sourceEndIndex+=_.length,_="",h-=1,g[g.length-1].sourceEndIndex=f,g.pop(),b=g[h],t=b.nodes;else{r=f;do p===DK&&(r+=1),r+=1,p=o.charCodeAt(r);while(r<m&&!(p<=32||p===FD||p===LK||p===VK||p===FK||p===Qk||p===MK||p===zD&&b&&b.type==="function"&&b.value==="calc"||p===Qk&&b.type==="function"&&b.value==="calc"||p===NK&&h));s=o.slice(f,r),MK===p?v=s:(set===s.charCodeAt(0)||aet===s.charCodeAt(0))&&cet===s.charCodeAt(1)&&uet.test(s.slice(2))?t.push({type:"unicode-range",sourceIndex:f,sourceEndIndex:r,value:s}):t.push({type:"word",sourceIndex:f,sourceEndIndex:r,value:s}),f=r}for(f=g.length-1;f;f-=1)g[f].unclosed=!0,g[f].sourceEndIndex=o.length;return g[0].nodes}});var Nwe=xe((qro,Mwe)=>{Mwe.exports=function e(t,o,r){var n,i,s,a;for(n=0,i=t.length;n<i;n+=1)s=t[n],r||(a=o(s,n,t)),a!==!1&&s.type==="function"&&Array.isArray(s.nodes)&&e(s.nodes,o,r),r&&o(s,n,t)}});var Fwe=xe((Zro,Vwe)=>{function Lwe(e,t){var o=e.type,r=e.value,n,i;return t&&(i=t(e))!==void 0?i:o==="word"||o==="space"?r:o==="string"?(n=e.quote||"",n+r+(e.unclosed?"":n)):o==="comment"?"/*"+r+(e.unclosed?"":"*/"):o==="div"?(e.before||"")+r+(e.after||""):Array.isArray(e.nodes)?(n=Dwe(e.nodes,t),o!=="function"?n:r+"("+(e.before||"")+n+(e.after||"")+(e.unclosed?"":")")):r}function Dwe(e,t){var o,r;if(Array.isArray(e)){for(o="",r=e.length-1;~r;r-=1)o=Lwe(e[r],t)+o;return o}return Lwe(e,t)}Vwe.exports=Dwe});var jwe=xe((Xro,zwe)=>{var jD=45,HD=43,zK=46,det=101,fet=69;function pet(e){var t=e.charCodeAt(0),o;if(t===HD||t===jD){if(o=e.charCodeAt(1),o>=48&&o<=57)return!0;var r=e.charCodeAt(2);return o===zK&&r>=48&&r<=57}return t===zK?(o=e.charCodeAt(1),o>=48&&o<=57):t>=48&&t<=57}zwe.exports=function(e){var t=0,o=e.length,r,n,i;if(o===0||!pet(e))return!1;for(r=e.charCodeAt(t),(r===HD||r===jD)&&t++;t<o&&(r=e.charCodeAt(t),!(r<48||r>57));)t+=1;if(r=e.charCodeAt(t),n=e.charCodeAt(t+1),r===zK&&n>=48&&n<=57)for(t+=2;t<o&&(r=e.charCodeAt(t),!(r<48||r>57));)t+=1;if(r=e.charCodeAt(t),n=e.charCodeAt(t+1),i=e.charCodeAt(t+2),(r===det||r===fet)&&(n>=48&&n<=57||(n===HD||n===jD)&&i>=48&&i<=57))for(t+=n===HD||n===jD?3:2;t<o&&(r=e.charCodeAt(t),!(r<48||r>57));)t+=1;return{number:e.slice(0,t),unit:e.slice(t)}}});var Gwe=xe((Qro,Uwe)=>{var met=Awe(),Hwe=Nwe(),Wwe=Fwe();function Bg(e){return this instanceof Bg?(this.nodes=met(e),this):new Bg(e)}Bg.prototype.toString=function(){return Array.isArray(this.nodes)?Wwe(this.nodes):""};Bg.prototype.walk=function(e,t){return Hwe(this.nodes,e,t),this};Bg.unit=jwe();Bg.walk=Hwe;Bg.stringify=Wwe;Uwe.exports=Bg});var Ywe=xe((Jro,jK)=>{var $we=Gwe();jK.exports=e=>{let o=Object.assign({skipHostRelativeUrls:!0},e);return{postcssPlugin:"rebaseUrl",Declaration(r){let n=$we(r.value),i=!1;n.walk(s=>{if(s.type!=="function"||s.value!=="url")return;let a=s.nodes[0].value,l=new URL(a,e.rootUrl);return l.pathname===a&&o.skipHostRelativeUrls||(s.nodes[0].value=l.toString(),i=!0),!1}),i&&(r.value=$we.stringify(n))}}};jK.exports.postcss=!0});var ske=xe((pno,ike)=>{ike.exports=window.wp.priorityQueue});var iq=xe((cso,sxe)=>{sxe.exports=window.wp.blob});var Tx=xe((jlo,hSe)=>{hSe.exports=window.wp.isShallowEqual});var H3=xe((apo,n1e)=>{n1e.exports=window.wp.tokenList});var uEe=xe((_go,cEe)=>{cEe.exports=window.wp.commands});var Ul=xe((Zyo,ERe)=>{ERe.exports=window.wp.date});var oBe=xe((Fvo,tBe)=>{var ZRe=!1,gv,KZ,qZ,i6,s6,XRe,a6,ZZ,XZ,QZ,QRe,JZ,eX,JRe,eBe;function ra(){if(!ZRe){ZRe=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),o=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(JZ=/\b(iPhone|iP[ao]d)/.exec(e),eX=/\b(iP[ao]d)/.exec(e),QZ=/Android/i.exec(e),JRe=/FBAN\/\w+;/i.exec(e),eBe=/Mobile/i.exec(e),QRe=!!/Win64/.exec(e),t){gv=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,gv&&document&&document.documentMode&&(gv=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);XRe=r?parseFloat(r[1])+4:gv,KZ=t[2]?parseFloat(t[2]):NaN,qZ=t[3]?parseFloat(t[3]):NaN,i6=t[4]?parseFloat(t[4]):NaN,i6?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s6=t&&t[1]?parseFloat(t[1]):NaN):s6=NaN}else gv=KZ=qZ=s6=i6=NaN;if(o){if(o[1]){var n=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);a6=n?parseFloat(n[1].replace("_",".")):!0}else a6=!1;ZZ=!!o[2],XZ=!!o[3]}else a6=ZZ=XZ=!1}}var tX={ie:function(){return ra()||gv},ieCompatibilityMode:function(){return ra()||XRe>gv},ie64:function(){return tX.ie()&&QRe},firefox:function(){return ra()||KZ},opera:function(){return ra()||qZ},webkit:function(){return ra()||i6},safari:function(){return tX.webkit()},chrome:function(){return ra()||s6},windows:function(){return ra()||ZZ},osx:function(){return ra()||a6},linux:function(){return ra()||XZ},iphone:function(){return ra()||JZ},mobile:function(){return ra()||JZ||eX||QZ||eBe},nativeApp:function(){return ra()||JRe},android:function(){return ra()||QZ},ipad:function(){return ra()||eX}};tBe.exports=tX});var nBe=xe((zvo,rBe)=>{"use strict";var l6=!!(typeof window<"u"&&window.document&&window.document.createElement),yit={canUseDOM:l6,canUseWorkers:typeof Worker<"u",canUseEventListeners:l6&&!!(window.addEventListener||window.attachEvent),canUseViewport:l6&&!!window.screen,isInWorker:!l6};rBe.exports=yit});var lBe=xe((jvo,aBe)=>{"use strict";var iBe=nBe(),sBe;iBe.canUseDOM&&(sBe=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function vit(e,t){if(!iBe.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,r=o in document;if(!r){var n=document.createElement("div");n.setAttribute(o,"return;"),r=typeof n[o]=="function"}return!r&&sBe&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}aBe.exports=vit});var mBe=xe((Hvo,pBe)=>{"use strict";var _it=oBe(),wit=lBe(),cBe=10,uBe=40,dBe=800;function fBe(e){var t=0,o=0,r=0,n=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),r=t*cBe,n=o*cBe,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||n)&&e.deltaMode&&(e.deltaMode==1?(r*=uBe,n*=uBe):(r*=dBe,n*=dBe)),r&&!t&&(t=r<1?-1:1),n&&!o&&(o=n<1?-1:1),{spinX:t,spinY:o,pixelX:r,pixelY:n}}fBe.getEventType=function(){return _it.firefox()?"DOMMouseScroll":wit("wheel")?"wheel":"mousewheel"};pBe.exports=fBe});var hBe=xe((Wvo,gBe)=>{gBe.exports=mBe()});var YIe=xe((Nwo,$Ie)=>{"use strict";$Ie.exports=function e(t,o){if(t===o)return!0;if(t&&o&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;var r,n,i;if(Array.isArray(t)){if(r=t.length,r!=o.length)return!1;for(n=r;n--!==0;)if(!e(t[n],o[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(o).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,i[n]))return!1;for(n=r;n--!==0;){var s=i[n];if(!e(t[s],o[s]))return!1}return!0}return t!==t&&o!==o}});var Tpt={};No(Tpt,{AlignmentControl:()=>F2,AlignmentToolbar:()=>Mre,Autocomplete:()=>qre,BlockAlignmentControl:()=>nO,BlockAlignmentToolbar:()=>kne,BlockBindingsAttributeControl:()=>x1,BlockBindingsSourceFieldsList:()=>k1,BlockBreadcrumb:()=>Gne,BlockCanvas:()=>gEe,BlockColorsStyleSelector:()=>vEe,BlockContextProvider:()=>fI,BlockControls:()=>Ko,BlockEdit:()=>A2,BlockEditorKeyboardShortcuts:()=>iD,BlockEditorProvider:()=>nve,BlockFormatControls:()=>Dq,BlockIcon:()=>Lt,BlockInspector:()=>cMe,BlockList:()=>tx,BlockMover:()=>d3,BlockNavigationDropdown:()=>OTe,BlockPopover:()=>Qxe,BlockPreview:()=>Ys,BlockSelectionClearer:()=>dSe,BlockSettingsMenu:()=>N3,BlockSettingsMenuControls:()=>I3,BlockStyles:()=>lS,BlockTitle:()=>C1,BlockToolbar:()=>K1e,BlockTools:()=>gR,BlockVerticalAlignmentControl:()=>J2,BlockVerticalAlignmentToolbar:()=>eRe,ButtonBlockAppender:()=>zg,ButtonBlockerAppender:()=>Hxe,ColorPalette:()=>vRe,ColorPaletteControl:()=>kRe,ContrastChecker:()=>CRe,CopyHandler:()=>fMe,DefaultBlockAppender:()=>xx,DimensionControl:()=>mv,FontSizePicker:()=>Jj,HeadingLevelDropdown:()=>jTe,HeightControl:()=>qRe,InnerBlocks:()=>UT,Inserter:()=>Qs,InspectorAdvancedControls:()=>Wg,InspectorControls:()=>Ve,JustifyContentControl:()=>sw,JustifyToolbar:()=>sIe,LineHeightControl:()=>O6,LinkControl:()=>vh,MediaPlaceholder:()=>EPe,MediaReplaceFlow:()=>RS,MediaUpload:()=>xd,MediaUploadCheck:()=>Pa,MultiSelectScrollIntoView:()=>hMe,NavigableToolbar:()=>Wx,ObserveTyping:()=>lEe,PanelColorSettings:()=>RPe,PlainText:()=>N2e,RecursionProvider:()=>FQ,RichText:()=>NS,RichTextShortcut:()=>T2e,RichTextToolbarButton:()=>VX,SETTINGS_DEFAULTS:()=>K0,SkipToSelectedBlock:()=>r4,ToolSelector:()=>TMe,Typewriter:()=>vMe,URLInput:()=>Pp,URLInputButton:()=>W2e,URLPopover:()=>wh,Warning:()=>Bm,WritingFlow:()=>kD,__experimentalBlockAlignmentMatrixControl:()=>Dne,__experimentalBlockFullHeightAligmentControl:()=>Ane,__experimentalBlockPatternSetup:()=>XTe,__experimentalBlockPatternsList:()=>_d,__experimentalBlockVariationPicker:()=>HTe,__experimentalBlockVariationTransforms:()=>MV,__experimentalBorderRadiusControl:()=>zV,__experimentalColorGradientControl:()=>fh,__experimentalColorGradientSettingsDropdown:()=>t6,__experimentalDateFormatPicker:()=>TRe,__experimentalDuotoneControl:()=>WV,__experimentalFontAppearanceControl:()=>GV,__experimentalFontFamilyControl:()=>$V,__experimentalGetBorderClassesAndStyles:()=>t9,__experimentalGetColorClassesAndStyles:()=>o9,__experimentalGetDimensionsClassesAndStyles:()=>e9,__experimentalGetElementClassName:()=>kpt,__experimentalGetGapCSSValue:()=>_a,__experimentalGetGradientClass:()=>J_,__experimentalGetGradientObjectByGradientValue:()=>Cre,__experimentalGetShadowClassesAndStyles:()=>gee,__experimentalGetSpacingClassesAndStyles:()=>yee,__experimentalImageEditor:()=>JBe,__experimentalImageSizeControl:()=>rIe,__experimentalImageURLInputUI:()=>Z2e,__experimentalInspectorPopoverHeader:()=>Z4,__experimentalLetterSpacingControl:()=>KV,__experimentalLibrary:()=>mMe,__experimentalLinkControl:()=>P6,__experimentalLinkControlSearchInput:()=>PIe,__experimentalLinkControlSearchItem:()=>yIe,__experimentalLinkControlSearchResults:()=>SIe,__experimentalListView:()=>RV,__experimentalPanelColorGradientSettings:()=>r6,__experimentalPreviewOptions:()=>fOe,__experimentalPublishDateTimePicker:()=>SMe,__experimentalRecursionProvider:()=>_Me,__experimentalResponsiveBlockControl:()=>F2e,__experimentalSpacingSizesControl:()=>jS,__experimentalTextDecorationControl:()=>ZV,__experimentalTextTransformControl:()=>QV,__experimentalUnitControl:()=>j2e,__experimentalUseBlockOverlayActive:()=>Yne,__experimentalUseBlockPreview:()=>dke,__experimentalUseBorderProps:()=>mee,__experimentalUseColorProps:()=>bee,__experimentalUseCustomSides:()=>GJ,__experimentalUseGradient:()=>nze,__experimentalUseHasRecursion:()=>wMe,__experimentalUseMultipleOriginColorsAndGradients:()=>mh,__experimentalUseResizeCanvas:()=>mOe,__experimentalWritingModeControl:()=>e6,__unstableBlockSettingsMenuFirstItem:()=>_3,__unstableBlockToolbarLastItem:()=>g3,__unstableEditorStyles:()=>qf,__unstableIframe:()=>Yk,__unstableInserterMenuExtension:()=>u5,__unstableRichTextInputEvent:()=>R2e,__unstableUseBlockSelectionClearer:()=>jy,__unstableUseClipboardHandler:()=>dMe,__unstableUseMouseMoveTypingReset:()=>bR,__unstableUseTypewriter:()=>LQ,__unstableUseTypingObserver:()=>yR,createCustomColorsHOC:()=>xre,getColorClassName:()=>Ja,getColorObjectByAttributeValues:()=>Lu,getColorObjectByColorValue:()=>uI,getComputedFluidTypographyValue:()=>Tre,getCustomValueFromPreset:()=>tne,getDimensionsClassesAndStyles:()=>e9,getFontSize:()=>ew,getFontSizeClass:()=>Im,getFontSizeObjectByValue:()=>Qj,getGradientSlugByValue:()=>Ere,getGradientValueBySlug:()=>D2,getPxFromCssUnit:()=>oVe,getSpacingPresetCssVar:()=>nl,getTypographyClassesAndStyles:()=>vee,isValueSpacingPreset:()=>Q2,privateApis:()=>Ree,store:()=>B,storeConfig:()=>q_,transformStyles:()=>Jk,useBlockBindingsUtils:()=>Tf,useBlockCommands:()=>uV,useBlockDisplayInformation:()=>Ln,useBlockEditContext:()=>kt,useBlockEditingMode:()=>jr,useBlockProps:()=>q1,useCachedTruthy:()=>_ee,useHasRecursion:()=>zQ,useInnerBlocksProps:()=>$y,useSetting:()=>_re,useSettings:()=>je,useStyleOverride:()=>Qc,withColorContext:()=>jV,withColors:()=>Sre,withFontSizes:()=>Ore});function Pee(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Pee(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function LVe(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Pee(e))&&(r&&(r+=" "),r+=t);return r}var Y=LVe;var RMe=c(ce(),1),sc=c(F(),1),Q4=c(ee(),1),UQ=c(ue(),1),mB=c(Bo(),1);var iI=c(F(),1),Nu=Symbol("mayDisplayControls"),o_=Symbol("mayDisplayParentControls"),r_=Symbol("mayDisplayPatternEditingControls"),n_=Symbol("blockEditingMode"),i_=Symbol("blockBindings"),sI=Symbol("isPreviewMode"),U0=Symbol("isInListViewBlockSupportTree"),p9={name:"",isSelected:!1},m9=(0,iI.createContext)(p9);m9.displayName="BlockEditContext";var{Provider:aI}=m9;function kt(){return(0,iI.useContext)(m9)}var DVe={grad:.9,turn:360,rad:360/(2*Math.PI)},df=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},jn=function(e,t,o){return t===void 0&&(t=0),o===void 0&&(o=Math.pow(10,t)),Math.round(o*e)/o+0},Qa=function(e,t,o){return t===void 0&&(t=0),o===void 0&&(o=1),e>o?o:e>t?e:t},Uee=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Dee=function(e){return{r:Qa(e.r,0,255),g:Qa(e.g,0,255),b:Qa(e.b,0,255),a:Qa(e.a)}},g9=function(e){return{r:jn(e.r),g:jn(e.g),b:jn(e.b),a:jn(e.a,3)}},VVe=/^#([0-9a-f]{3,8})$/i,lI=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Gee=function(e){var t=e.r,o=e.g,r=e.b,n=e.a,i=Math.max(t,o,r),s=i-Math.min(t,o,r),a=s?i===t?(o-r)/s:i===o?2+(r-t)/s:4+(t-o)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:n}},$ee=function(e){var t=e.h,o=e.s,r=e.v,n=e.a;t=t/360*6,o/=100,r/=100;var i=Math.floor(t),s=r*(1-o),a=r*(1-(t-i)*o),l=r*(1-(1-t+i)*o),u=i%6;return{r:255*[r,a,s,s,l,r][u],g:255*[l,r,r,a,s,s][u],b:255*[s,s,l,r,r,a][u],a:n}},Vee=function(e){return{h:Uee(e.h),s:Qa(e.s,0,100),l:Qa(e.l,0,100),a:Qa(e.a)}},Fee=function(e){return{h:jn(e.h),s:jn(e.s),l:jn(e.l),a:jn(e.a,3)}},zee=function(e){return $ee((o=(t=e).s,{h:t.h,s:(o*=((r=t.l)<50?r:100-r)/100)>0?2*o/(r+o)*100:0,v:r+o,a:t.a}));var t,o,r},G0=function(e){return{h:(t=Gee(e)).h,s:(n=(200-(o=t.s))*(r=t.v)/100)>0&&n<200?o*r/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,o,r,n},FVe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,zVe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,jVe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,HVe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y9={string:[[function(e){var t=VVe.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?jn(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?jn(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=jVe.exec(e)||HVe.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Dee({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=FVe.exec(e)||zVe.exec(e);if(!t)return null;var o,r,n=Vee({h:(o=t[1],r=t[2],r===void 0&&(r="deg"),Number(o)*(DVe[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return zee(n)},"hsl"]],object:[[function(e){var t=e.r,o=e.g,r=e.b,n=e.a,i=n===void 0?1:n;return df(t)&&df(o)&&df(r)?Dee({r:Number(t),g:Number(o),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,o=e.s,r=e.l,n=e.a,i=n===void 0?1:n;if(!df(t)||!df(o)||!df(r))return null;var s=Vee({h:Number(t),s:Number(o),l:Number(r),a:Number(i)});return zee(s)},"hsl"],[function(e){var t=e.h,o=e.s,r=e.v,n=e.a,i=n===void 0?1:n;if(!df(t)||!df(o)||!df(r))return null;var s=(function(a){return{h:Uee(a.h),s:Qa(a.s,0,100),v:Qa(a.v,0,100),a:Qa(a.a)}})({h:Number(t),s:Number(o),v:Number(r),a:Number(i)});return $ee(s)},"hsv"]]},jee=function(e,t){for(var o=0;o<t.length;o++){var r=t[o][0](e);if(r)return[r,t[o][1]]}return[null,void 0]},WVe=function(e){return typeof e=="string"?jee(e.trim(),y9.string):typeof e=="object"&&e!==null?jee(e,y9.object):[null,void 0]};var h9=function(e,t){var o=G0(e);return{h:o.h,s:Qa(o.s+100*t,0,100),l:o.l,a:o.a}},b9=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Hee=function(e,t){var o=G0(e);return{h:o.h,s:o.s,l:Qa(o.l+100*t,0,100),a:o.a}},v9=(function(){function e(t){this.parsed=WVe(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return jn(b9(this.rgba),2)},e.prototype.isDark=function(){return b9(this.rgba)<.5},e.prototype.isLight=function(){return b9(this.rgba)>=.5},e.prototype.toHex=function(){return t=g9(this.rgba),o=t.r,r=t.g,n=t.b,s=(i=t.a)<1?lI(jn(255*i)):"","#"+lI(o)+lI(r)+lI(n)+s;var t,o,r,n,i,s},e.prototype.toRgb=function(){return g9(this.rgba)},e.prototype.toRgbString=function(){return t=g9(this.rgba),o=t.r,r=t.g,n=t.b,(i=t.a)<1?"rgba("+o+", "+r+", "+n+", "+i+")":"rgb("+o+", "+r+", "+n+")";var t,o,r,n,i},e.prototype.toHsl=function(){return Fee(G0(this.rgba))},e.prototype.toHslString=function(){return t=Fee(G0(this.rgba)),o=t.h,r=t.s,n=t.l,(i=t.a)<1?"hsla("+o+", "+r+"%, "+n+"%, "+i+")":"hsl("+o+", "+r+"%, "+n+"%)";var t,o,r,n,i},e.prototype.toHsv=function(){return t=Gee(this.rgba),{h:jn(t.h),s:jn(t.s),v:jn(t.v),a:jn(t.a,3)};var t},e.prototype.invert=function(){return Go({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),Go(h9(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Go(h9(this.rgba,-t))},e.prototype.grayscale=function(){return Go(h9(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Go(Hee(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Go(Hee(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Go({r:(o=this.rgba).r,g:o.g,b:o.b,a:t}):jn(this.rgba.a,3);var o},e.prototype.hue=function(t){var o=G0(this.rgba);return typeof t=="number"?Go({h:t,s:o.s,l:o.l,a:o.a}):jn(o.h)},e.prototype.isEqual=function(t){return this.toHex()===Go(t).toHex()},e})(),Go=function(e){return e instanceof v9?e:new v9(e)},Wee=[],am=function(e){e.forEach(function(t){Wee.indexOf(t)<0&&(t(v9,y9),Wee.push(t))})};function lm(e,t){var o={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var n in o)r[o[n]]=n;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,l,u=r[this.toHex()];if(u)return u;if(s?.closest){var d=this.toRgb(),f=1/0,p="black";if(!i.length)for(var m in o)i[m]=new e(o[m]).toRgb();for(var g in o){var h=(a=d,l=i[g],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));h<f&&(f=h,p=g)}return p}},t.string.push([function(s){var a=s.toLowerCase(),l=a==="transparent"?"#0000":o[a];return l?new e(l).toRgb():null},"name"])}var _9=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},w9=function(e){return .2126*_9(e.r)+.7152*_9(e.g)+.0722*_9(e.b)};function s_(e){e.prototype.luminance=function(){return t=w9(this.rgba),(o=2)===void 0&&(o=0),r===void 0&&(r=Math.pow(10,o)),Math.round(r*t)/r+0;var t,o,r},e.prototype.contrast=function(t){t===void 0&&(t="#FFF");var o,r,n,i,s,a,l,u=t instanceof e?t:new e(t);return i=this.rgba,s=u.toRgb(),a=w9(i),l=w9(s),o=a>l?(a+.05)/(l+.05):(l+.05)/(a+.05),(r=2)===void 0&&(r=0),n===void 0&&(n=Math.pow(10,r)),Math.floor(n*o)/n+0},e.prototype.isReadable=function(t,o){return t===void 0&&(t="#FFF"),o===void 0&&(o={}),this.contrast(t)>=(a=(s=(r=o).size)===void 0?"normal":s,(i=(n=r.level)===void 0?"AA":n)==="AAA"&&a==="normal"?7:i==="AA"&&a==="large"?3:4.5);var r,n,i,s,a}}var k9=function(e,t){return k9=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[n]=r[n])},k9(e,t)};function Yee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");k9(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}var hr=function(){return hr=Object.assign||function(t){for(var o,r=1,n=arguments.length;r<n;r++){o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},hr.apply(this,arguments)};function Kee(e){return e.toLowerCase()}var UVe=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],GVe=/[^A-Z0-9]+/gi;function cI(e,t){t===void 0&&(t={});for(var o=t.splitRegexp,r=o===void 0?UVe:o,n=t.stripRegexp,i=n===void 0?GVe:n,s=t.transform,a=s===void 0?Kee:s,l=t.delimiter,u=l===void 0?" ":l,d=qee(qee(e,r,"$1\0$2"),i,"\0"),f=0,p=d.length;d.charAt(f)==="\0";)f++;for(;d.charAt(p-1)==="\0";)p--;return d.slice(f,p).split("\0").map(a).join(u)}function qee(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce(function(r,n){return r.replace(n,o)},e)}function Zee(e,t){return t===void 0&&(t={}),cI(e,hr({delimiter:"."},t))}function Xee(e,t){return t===void 0&&(t={}),Zee(e,hr({delimiter:"-"},t))}function Bs(e){let t=e?.toString?.()??"";return t=t.replace(/['\u2019]/,""),Xee(t,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}am([lm,s_]);var Lu=(e,t,o)=>{if(t){let r=e?.find(n=>n.slug===t);if(r)return r}return{color:o}},uI=(e,t)=>e?.find(o=>o.color===t);function Ja(e,t){if(!(!e||!t))return`has-$Bs(t)}-$e}`}function Qee(e,t){let o=Go(t),r=({color:i})=>o.contrast(i),n=Math.max(...e.map(r));return e.find(i=>r(i)===n).color}var Q_=c(F(),1),Bb=c(ue(),1);var yre=c(ee(),1),vre=c(Nt(),1);var O2=c(F(),1),P2=c(ce(),1);var ff=c(ce(),1),dte=c(q(),1),Y0=c(ee(),1),sb=c(F(),1);var a_=c(F(),1),ote=c(T(),1),dI=(0,a_.createContext)({});dI.displayName="BlockContext";function fI({value:e,children:t}){let o=(0,a_.useContext)(dI),r=(0,a_.useMemo)(()=>({...o,...e}),[o,e]);return(0,ote.jsx)(dI.Provider,{value:r,children:t})}var Hn=dI;var l_=c(ma(),1);function rb(e){return e?.startsWith("#")&&(0,l_.isValidFragment)(e)}function nb(e){return e?.startsWith("/")||e?.startsWith("./")||e?.startsWith("../")}function ib(e){if(e.includes(" "))return!1;let o=(0,l_.getProtocol)(e),r=(0,l_.isValidProtocol)(o),n=$Ve(e),i=e?.startsWith("www.");return r||i||rb(e)||n||nb(e)}function $Ve(e,t=6){let o=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,$t}})(?:\\/|$)`).test(o)}var YVe="__default",nte="core/pattern-overrides",KVe={};function ite(e,t,o){let r;if(t)for(let[n,i]of Object.entries(e))t.includes(n)&&(r===void 0&&(r={}),r[n]=i);if(o)for(let n of o)n?.usesContext?.forEach(i=>{i in e&&(r===void 0&&(r={}),r[i]=e[i])});return r??KVe}function $0(e){return e?.[YVe]?.source===nte}function pI(e,t){if(!$0(e))return e;let o={};for(let r of t){let n=e[r]?e[r]:{source:nte};o[r]=n}return o}var ate=c(mI(),1),{lock:lte,unlock:K}=(0,ate.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-editor");var cte=c(F(),1),Rn=(0,cte.createContext)({});Rn.displayName="PrivateBlockContext";var gI=c(T(),1),qVe=e=>{let{name:t}=e,o=(0,ff.getBlockType)(t);if(!o)return null;let r=o.edit||o.save;return(0,gI.jsx)(r,{...e})},ute=(0,dte.withFilters)("editor.BlockEdit")(qVe),ZVe=e=>{let{name:t,clientId:o,attributes:r,setAttributes:n}=e,i=(0,Y0.useRegistry)(),s=(0,ff.getBlockType)(t),a=(0,sb.useContext)(Hn),l=(0,Y0.useSelect)(v=>K(v(ff.store)).getAllBlockBindingsSources(),[]),{bindableAttributes:u}=(0,sb.useContext)(Rn),{blockBindings:d,context:f,hasPatternOverrides:p}=(0,sb.useMemo)(()=>({blockBindings:pI(r?.metadata?.bindings,u),context:ite(a,s?.usesContext,r?.metadata?.bindings?Object.values(r.metadata.bindings).map(v=>l[v?.source]):void 0),hasPatternOverrides:$0(r?.metadata?.bindings)}),[s?.usesContext,a,r?.metadata?.bindings,u,l]),m=(0,Y0.useSelect)(v=>{if(!d)return r;let y={},_=new Map;for(let[w,k]of Object.entries(d)){let{source:x,args:C}=k,E=l[x];!E||!u?.includes(w)||_.set(E,{..._.get(E),[w]:{args:C}})}if(_.size)for(let[w,k]of _){let x={};w.getValues?x=w.getValues({select:v,context:f,clientId:o,bindings:k}):Object.keys(k).forEach(C=>{x[C]=w.label});for(let[C,E]of Object.entries(x))C==="url"&&(!E||!ib(E))?y[C]=null:y[C]=E}return{...r,...y}},[r,u,d,o,f,l]),g=(0,sb.useCallback)(v=>{if(!d){n(v);return}i.batch(()=>{let y={...v},_=new Map;for(let[k,x]of Object.entries(y)){if(!d[k]||!u?.includes(k))continue;let C=d[k],E=l[C?.source];E?.setValues&&(_.set(E,{..._.get(E),[k]:{args:C.args,newValue:x}}),delete y[k])}if(_.size)for(let[k,x]of _)k.setValues({select:i.select,dispatch:i.dispatch,context:f,clientId:o,bindings:x});let w=!!f["pattern/overrides"];!(p&&w)&&Object.keys(y).length&&(p&&delete y.href,n(y))})},[u,d,o,f,p,n,l,i]);if(!s)return null;if(s.apiVersion>1)return(0,gI.jsx)(ute,{...e,attributes:m,context:f,setAttributes:g});let h=(0,ff.hasBlockSupport)(s,"className",!0)?(0,ff.getBlockDefaultClassName)(t):null,b=Y(h,r?.className,e.className);return(0,gI.jsx)(ute,{...e,attributes:m,className:b,context:f,setAttributes:g})},fte=ZVe;var gre=c(ce(),1),Xj=c(q(),1),hre=c(ee(),1),I2=c(Z(),1);var B2=c(ee(),1);var u_=c(ab(),1),C9=c(ue(),1),X0=c(ee(),1),xte=c(Nt(),1),xI=c(ce(),1);var Ft=c(Z(),1),gte={insertUsage:{}},K0={alignWide:!1,supportsLayout:!0,colors:[{name:(0,Ft.__)("Black"),slug:"black",color:"#000000"},{name:(0,Ft.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,Ft.__)("White"),slug:"white",color:"#ffffff"},{name:(0,Ft.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,Ft.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,Ft.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,Ft.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,Ft.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,Ft.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,Ft.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,Ft.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,Ft.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,Ft._x)("Small","font size name"),size:13,slug:"small"},{name:(0,Ft._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,Ft._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,Ft._x)("Large","font size name"),size:36,slug:"large"},{name:(0,Ft._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,Ft.__)("Thumbnail")},{slug:"medium",name:(0,Ft.__)("Medium")},{slug:"large",name:(0,Ft.__)("Large")},{slug:"full",name:(0,Ft.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,blockStatesEditingEnabled:!0,canEditCSS:!1,enableOpenverseMediaCategory:!0,clearBlockSelection:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],isPreviewMode:!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,Ft.__)("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,Ft.__)("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,Ft.__)("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,Ft.__)("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,Ft.__)("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,Ft.__)("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,Ft.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,Ft.__)("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,Ft.__)("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,Ft.__)("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,Ft.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,Ft.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function hI(e,t,o){return[...e.slice(0,o),...Array.isArray(t)?t:[t],...e.slice(o)]}function bI(e,t,o,r=1){let n=[...e];return n.splice(t,r),hI(n,e.slice(t,t+r),o)}var Is=Symbol("globalStylesDataKey"),c_=Symbol("globalStylesLinks"),cm=Symbol("selectBlockPatternsKey"),yI=Symbol("reusableBlocksSelect"),pf=Symbol("userPatternCategoriesSelect"),um=Symbol("sectionRootClientIdKey"),vI=Symbol("mediaEditKey"),_I=Symbol("getMediaSelect"),dm=Symbol("isIsolatedEditor"),el=Symbol("deviceTypeKey"),wI=Symbol("isNavigationOverlayContext"),hte=Symbol("isNavigationPostEditor"),q0=Symbol("mediaUploadOnSuccess"),bte=Symbol("mediaSideloadFromUrl"),yte=Symbol("openMediaEditorModal");var{isContentBlock:XVe}=K(xI.privateApis),QVe=e=>e;function kI(e,t=""){let o=new Map,r=[];return o.set(t,r),e.forEach(n=>{let{clientId:i,innerBlocks:s}=n;r.push(i),kI(s,i).forEach((a,l)=>{o.set(l,a)})}),o}function x9(e,t=""){let o=[],r=[[t,e]];for(;r.length;){let[n,i]=r.shift();i.forEach(({innerBlocks:s,...a})=>{o.push([a.clientId,n]),s?.length&&r.push([a.clientId,s])})}return o}function Ste(e,t=QVe){let o=[],r=[...e];for(;r.length;){let{innerBlocks:n,...i}=r.shift();r.push(...n),o.push([i.clientId,t(i)])}return o}function E9(e){let t={},o=[...e];for(;o.length;){let{innerBlocks:r,...n}=o.shift();o.push(...r),t[n.clientId]=!0}return t}function vte(e){return Ste(e,t=>{let{attributes:o,...r}=t;return r})}function _te(e){return Ste(e,t=>t.attributes)}function JVe(e,t){return(0,u_.default)(Object.keys(e),Object.keys(t))}function e6e(e,t){return e.type==="UPDATE_BLOCK_ATTRIBUTES"&&t!==void 0&&t.type==="UPDATE_BLOCK_ATTRIBUTES"&&(0,u_.default)(e.clientIds,t.clientIds)&&JVe(e.attributes,t.attributes)}function wte(e,t){let o=e.tree,r=[...t],n=[...t];for(;r.length;){let i=r.shift();r.push(...i.innerBlocks),n.push(...i.innerBlocks)}for(let i of n)o.set(i.clientId,{});for(let i of n)o.set(i.clientId,Object.assign(o.get(i.clientId),{...e.byClientId.get(i.clientId),attributes:e.attributes.get(i.clientId),innerBlocks:i.innerBlocks.map(s=>o.get(s.clientId))}))}function fm(e,t,o=!1){let r=e.tree,n=new Set([]),i=new Set;for(let s of t){let a=o?s:e.parents.get(s);do if(e.controlledInnerBlocks.has(a)){i.add(a);break}else n.add(a),a=e.parents.get(a);while(a!==void 0)}for(let s of n)r.set(s,{...r.get(s)});for(let s of n)r.get(s).innerBlocks=(e.order.get(s)||[]).map(a=>r.get(a));for(let s of i)r.set("controlled||"+s,{innerBlocks:(e.order.get(s)||[]).map(a=>r.get(a))})}var t6e=e=>(t={},o)=>{let r=e(t,o);if(r===t)return t;switch(r.tree=t.tree?t.tree:new Map,o.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{r.tree=new Map(r.tree),wte(r,o.blocks),fm(r,o.rootClientId?[o.rootClientId]:[""],!0);break}case"UPDATE_BLOCK":r.tree=new Map(r.tree),r.tree.set(o.clientId,{...r.tree.get(o.clientId),...r.byClientId.get(o.clientId),attributes:r.attributes.get(o.clientId)}),fm(r,[o.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":{r.tree=new Map(r.tree),o.clientIds.forEach(i=>{r.tree.set(i,{...r.tree.get(i),attributes:r.attributes.get(i)})}),fm(r,o.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let i=E9(o.blocks);r.tree=new Map(r.tree),o.replacedClientIds.forEach(a=>{r.tree.delete(a),i[a]||r.tree.delete("controlled||"+a)}),wte(r,o.blocks),fm(r,o.blocks.map(a=>a.clientId),!1);let s=[];for(let a of o.clientIds){let l=t.parents.get(a);l!==void 0&&(l===""||r.byClientId.get(l))&&s.push(l)}fm(r,s,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":let n=[];for(let i of o.clientIds){let s=t.parents.get(i);s!==void 0&&(s===""||r.byClientId.get(s))&&n.push(s)}r.tree=new Map(r.tree),o.removedClientIds.forEach(i=>{r.tree.delete(i),r.tree.delete("controlled||"+i)}),fm(r,n,!0);break;case"MOVE_BLOCKS_TO_POSITION":{let i=[];o.fromRootClientId?i.push(o.fromRootClientId):i.push(""),o.toRootClientId&&i.push(o.toRootClientId),r.tree=new Map(r.tree),fm(r,i,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{let i=[o.rootClientId?o.rootClientId:""];r.tree=new Map(r.tree),fm(r,i,!0);break}}return r};function o6e(e){let t,o;return(r,n)=>{let i=e(r,n),s=o;o=n.type==="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"?n.history??"merge":void 0;let a=n.type==="MARK_LAST_CHANGE_AS_PERSISTENT"||s;if(r===i&&!a)return r.isPersistentChange!==void 0?r:{...i,isPersistentChange:!0};let l=a?!s:!e6e(n,t);if(t=n,s==="ignore")return{...i,isPersistentChange:l,lastBlockChangeHistoryMode:"ignore"};let{lastBlockChangeHistoryMode:u,...d}=i;return{...d,isPersistentChange:l}}}function r6e(e){let t=new Set(["RECEIVE_BLOCKS"]);return(o,r)=>{let n=e(o,r);return n!==o&&(n.isIgnoredChange=t.has(r.type)),n}}var n6e=e=>(t,o)=>{let r=n=>{let i=n;for(let s=0;s<i.length;s++)!t.order.get(i[s])||o.keepControlledInnerBlocks&&o.keepControlledInnerBlocks[i[s]]||(i===n&&(i=[...i]),i.push(...t.order.get(i[s])));return i};if(t)switch(o.type){case"REMOVE_BLOCKS":o={...o,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(o.clientIds)};break;case"REPLACE_BLOCKS":o={...o,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:r(o.clientIds)};break}return e(t,o)},i6e=e=>(t,o)=>{if(o.type==="RESET_BLOCKS"){let r=e(void 0,{type:"INSERT_BLOCKS",rootClientId:"",blocks:o.blocks}),n=t?.controlledInnerBlocks??new Set;if(t?.order)for(let s of n){if(!r.byClientId.has(s))continue;r.controlledInnerBlocks.add(s);let a=t.order.get(s);if(!a?.length)continue;r.order.set(s,a);let l=(u,d)=>{let f=t.byClientId.get(u);if(!f)return;r.byClientId.set(u,f),r.attributes.set(u,t.attributes.get(u)),r.parents.set(u,d);let p=t.order.get(u)||[];r.order.set(u,p),p.forEach(m=>l(m,u))};a.forEach(u=>l(u,s))}for(let s of r.controlledInnerBlocks){let a=r.order.get(s);if(!a?.length)continue;let l=a.map(f=>t.tree.get(f)),u=r.tree.get(s);u&&(u.innerBlocks=l),r.tree.set("controlled||"+s,{innerBlocks:l});let d=f=>{let p=t.tree.get(f);if(!p)return;r.tree.set(f,p),(r.order.get(f)||[]).forEach(d)};a.forEach(d)}let i=t?.blockEditingModes??new Map;for(let[s,a]of i)r.tree.has(s)&&r.blockEditingModes.set(s,a);return r}return e(t,o)},s6e=e=>(t,o)=>{if(o.type!=="REPLACE_INNER_BLOCKS")return e(t,o);let r={};if(t.controlledInnerBlocks.size){let s=[...o.blocks];for(;s.length;){let{innerBlocks:a,...l}=s.shift();s.push(...a),t.controlledInnerBlocks.has(l.clientId)&&(r[l.clientId]=!0)}}let n=t;t.order.get(o.rootClientId)&&(n=e(n,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:r,clientIds:t.order.get(o.rootClientId)}));let i=n;if(o.blocks.length){i=e(i,{...o,type:"INSERT_BLOCKS",index:0});let s=new Map(i.order);Object.keys(r).forEach(a=>{t.order.get(a)&&s.set(a,t.order.get(a))}),i.order=s,i.tree=new Map(i.tree),Object.keys(r).forEach(a=>{let l=`controlled||$a}`;t.tree.has(l)&&i.tree.set(l,t.tree.get(l))})}return i},a6e=e=>(t,o)=>{if(o.type==="SET_HAS_CONTROLLED_INNER_BLOCKS"){if(t.order.get(o.clientId)?.length){let n=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:o.clientId,blocks:[]});return e(n,o)}return e(t,o)}return e(t,o)},l6e=(0,C9.pipe)(X0.combineReducers,t6e,n6e,s6e,i6e,o6e,r6e,a6e)({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{let o=new Map(e);return vte(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"UPDATE_BLOCK":{if(!e.has(t.clientId))return e;let{attributes:o,...r}=t.updates;if(Object.values(r).length===0)return e;let n=new Map(e);return n.set(t.clientId,{...e.get(t.clientId),...r}),n}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;let o=new Map(e);return t.replacedClientIds.forEach(r=>{o.delete(r)}),vte(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let o=new Map(e);return t.removedClientIds.forEach(r=>{o.delete(r)}),o}}return e},attributes(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{let o=new Map(e);return _te(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;let o=new Map(e);return o.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),o}case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every(n=>!e.get(n)))return e;let o=!1,r=new Map(e);for(let n of t.clientIds){let i=Object.entries(t.options?.uniqueByBlock?t.attributes[n]:t.attributes??{});if(i.length===0)continue;let s=!1,a=e.get(n),l={};i.forEach(([u,d])=>{a[u]!==d&&(s=!0,l[u]=d)}),o=o||s,s&&r.set(n,{...a,...l})}return o?r:e}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;let o=new Map(e);return t.replacedClientIds.forEach(r=>{o.delete(r)}),_te(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let o=new Map(e);return t.removedClientIds.forEach(r=>{o.delete(r)}),o}}return e},order(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{let o=kI(t.blocks),r=new Map(e);return o.forEach((n,i)=>{i!==""&&r.set(i,n)}),r.set("",(e.get("")??[]).concat(o[""])),r}case"INSERT_BLOCKS":{let{rootClientId:o=""}=t,r=e.get(o)||[],n=kI(t.blocks,o),{index:i=r.length}=t,s=new Map(e);return n.forEach((a,l)=>{s.set(l,a)}),s.set(o,hI(r,n.get(o),i)),s}case"MOVE_BLOCKS_TO_POSITION":{let{fromRootClientId:o="",toRootClientId:r="",clientIds:n}=t,{index:i=e.get(r).length}=t;if(o===r){let l=e.get(r).indexOf(n[0]);if(l===-1)return e;let u=new Map(e);return u.set(r,bI(e.get(r),l,i,n.length)),u}let s=new Map(e);return s.set(o,e.get(o)?.filter(a=>!n.includes(a))??[]),s.set(r,hI(e.get(r),n,i)),s}case"MOVE_BLOCKS_UP":{let{clientIds:o,rootClientId:r=""}=t,n=o[0],i=e.get(r);if(!i.length||n===i[0])return e;let s=i.indexOf(n),a=new Map(e);return a.set(r,bI(i,s,s-1,o.length)),a}case"MOVE_BLOCKS_DOWN":{let{clientIds:o,rootClientId:r=""}=t,n=o[0],i=o[o.length-1],s=e.get(r);if(!s.length||i===s[s.length-1])return e;let a=s.indexOf(n),l=new Map(e);return l.set(r,bI(s,a,a+1,o.length)),l}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let{clientIds:o}=t;if(!t.blocks)return e;let r=kI(t.blocks),n=new Map(e);return t.replacedClientIds.forEach(i=>{n.delete(i)}),r.forEach((i,s)=>{s!==""&&n.set(s,i)}),n.forEach((i,s)=>{let a=Object.values(i).reduce((l,u)=>u===o[0]?[...l,...r.get("")]:(o.indexOf(u)===-1&&l.push(u),l),[]);n.set(s,a)}),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let o=new Map(e);return t.removedClientIds.forEach(r=>{o.delete(r)}),o.forEach((r,n)=>{let i=r?.filter(s=>!t.removedClientIds.includes(s))??[];i.length!==r.length&&o.set(n,i)}),o}}return e},parents(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{let o=new Map(e);return x9(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"INSERT_BLOCKS":{let o=new Map(e);return x9(t.blocks,t.rootClientId||"").forEach(([r,n])=>{o.set(r,n)}),o}case"MOVE_BLOCKS_TO_POSITION":{let o=new Map(e);return t.clientIds.forEach(r=>{o.set(r,t.toRootClientId||"")}),o}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let o=new Map(e);return t.replacedClientIds.forEach(r=>{o.delete(r)}),x9(t.blocks,e.get(t.clientIds[0])).forEach(([r,n])=>{o.set(r,n)}),o}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let o=new Map(e);return t.removedClientIds.forEach(r=>{o.delete(r)}),o}}return e},controlledInnerBlocks(e=new Set,{type:t,clientId:o,hasControlledInnerBlocks:r}){if(t==="SET_HAS_CONTROLLED_INNER_BLOCKS"){if(r)return e.has(o)?e:new Set(e).add(o);if(!e.has(o))return e;let n=new Set(e);return n.delete(o),n}return e},blockEditingModes(e=new Map,t){switch(t.type){case"SET_BLOCK_EDITING_MODE":return e.get(t.clientId)===t.mode?e:new Map(e).set(t.clientId,t.mode);case"UNSET_BLOCK_EDITING_MODE":{if(!e.has(t.clientId))return e;let o=new Map(e);return o.delete(t.clientId),o}}return e}});function c6e(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e}function u6e(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e}function d6e(e=!1,t){switch(t.type){case"START_DRAGGING":return!0;case"STOP_DRAGGING":return!1}return e}function f6e(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e}function p6e(e={},t){return t.type==="SET_BLOCK_VISIBILITY"?{...e,...t.updates}:e}function kte(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?e:{clientId:t.blocks[0].clientId};case"REMOVE_BLOCKS":return!t.clientIds||!t.clientIds.length||t.clientIds.indexOf(e.clientId)===-1?e:{};case"REPLACE_BLOCKS":{if(t.clientIds.indexOf(e.clientId)===-1)return e;let o=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return o?o.clientId===e.clientId?e:{clientId:o.clientId}:{}}}return e}function m6e(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":let{selectionStart:n,selectionEnd:i}=t;return{selectionStart:n,selectionEnd:i};case"MULTI_SELECT":let s={selectionStart:{clientId:t.start},selectionEnd:{clientId:t.end}};return(0,u_.default)(e,s)?e:s;case"RESET_BLOCKS":let a=e?.selectionStart?.clientId,l=e?.selectionEnd?.clientId;if(!a&&!l)return e;if(!t.blocks.some(u=>u.clientId===a))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some(u=>u.clientId===l))return{...e,selectionEnd:e.selectionStart}}let o=kte(e.selectionStart,t),r=kte(e.selectionEnd,t);return o===e.selectionStart&&r===e.selectionEnd?e:{selectionStart:o,selectionEnd:r}}function g6e(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e}function h6e(e=!0,t){return t.type==="TOGGLE_SELECTION"?t.isSelectionEnabled:e}function b6e(e=null,t){switch(t.type){case"SHOW_VIEWPORT_MODAL":return t.clientIds;case"HIDE_VIEWPORT_MODAL":return null}return e}function y6e(e=!1,t){switch(t.type){case"DISPLAY_BLOCK_REMOVAL_PROMPT":let{clientIds:o,selectPrevious:r,message:n}=t;return{clientIds:o,selectPrevious:r,message:n};case"CLEAR_BLOCK_REMOVAL_PROMPT":return!1}return e}function v6e(e=!1,t){return t.type==="SET_BLOCK_REMOVAL_RULES"?t.rules:e}function _6e(e=null,t){return t.type==="REPLACE_BLOCKS"&&t.initialPosition!==void 0||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e}function w6e(e={},t){if(t.type==="TOGGLE_BLOCK_MODE"){let{clientId:o}=t;return{...e,[o]:e[o]&&e[o]==="html"?"visual":"html"}}return e}function k6e(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":{let{rootClientId:o,index:r,__unstableWithInserter:n,operation:i,nearestSide:s}=t,a={rootClientId:o,index:r,__unstableWithInserter:n,operation:i,nearestSide:s};return(0,u_.default)(e,a)?e:a}case"HIDE_INSERTION_POINT":return null}return e}function x6e(e={isValid:!0},t){return t.type==="SET_TEMPLATE_VALIDITY"?{...e,isValid:t.isValid}:e}function S6e(e=K0,t){if(t.type==="UPDATE_SETTINGS"){let o=t.reset?{...K0,...t.settings}:{...e,...t.settings};return Object.defineProperty(o,"__unstableIsPreviewMode",{get(){return(0,xte.default)("__unstableIsPreviewMode",{since:"6.8",alternative:"isPreviewMode"}),this.isPreviewMode}}),o}return e}function C6e(e=gte,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":{let o=t.blocks.reduce((r,n)=>{let{attributes:i,name:s}=n,a=s,l=(0,X0.select)(xI.store).getActiveBlockVariation(s,i);return l?.name&&(a+="/"+l.name),s==="core/block"&&(a+="/"+i.ref),{...r,[a]:{time:t.time,count:r[a]?r[a].count+1:1}}},e.insertUsage);return{...e,insertUsage:o}}}return e}var E6e=(e=new Map,t)=>{switch(t.type){case"REPLACE_BLOCKS":{let o=new Set,r=[...t.blocks];for(;r.length;){let i=r.shift();o.add(i.clientId),r.push(...i.innerBlocks)}let n=new Map(e);for(let i of t.clientIds)o.has(i)||n.delete(i);return n}case"REMOVE_BLOCKS":{let o=new Map(e);for(let r of t.clientIds)o.delete(r);return o}case"UPDATE_BLOCK_LIST_SETTINGS":{let r=(typeof t.clientId=="string"?[[t.clientId,t.settings]]:Object.entries(t.clientId)).filter(([i,s])=>s?!(0,u_.default)(e.get(i),s):e.has(i));if(!r.length)return e;let n=new Map(e);for(let[i,s]of r)s?n.set(i,s):n.delete(i);return n}}return e};function T6e(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((o,r)=>({...o,[r]:t.options?.uniqueByBlock?t.attributes[r]:t.attributes}),{})}return e}function R6e(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":let{clientId:o,isHighlighted:r}=t;return r?o:e===o?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}function B6e(e,t){switch(t.type){case"TOGGLE_BLOCK_SPOTLIGHT":let{clientId:o,hasBlockSpotlight:r}=t;return r?o:e===o?null:e;case"SELECT_BLOCK":return t.clientId!==e?null:e;case"SELECTION_CHANGE":return t.start?.clientId!==e||t.end?.clientId!==e?null:e;case"CLEAR_SELECTED_BLOCK":return null}return e}function I6e(e=null,t){switch(t.type){case"SET_BLOCK_EXPANDED_IN_LIST_VIEW":return t.clientId;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}function P6e(e={},t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":if(!t.blocks.length)return e;let o=t.blocks.map(n=>n.clientId),r=t.meta?.source;return{clientIds:o,source:r};case"RESET_BLOCKS":return{}}return e}function O6e(e,t){if(t.type==="EDIT_CONTENT_ONLY_SECTION")return t.clientId;if(!e)return e;switch(t.type){case"REMOVE_BLOCKS":case"REPLACE_BLOCKS":if(t.clientIds.includes(e))return;break;case"RESET_BLOCKS":if(!E9(t.blocks)[e])return;break}return e}function A6e(e=new Map,t){switch(t.type){case"SET_STYLE_OVERRIDE":return new Map(e).set(t.id,t.style);case"DELETE_STYLE_OVERRIDE":{let o=new Map(e);return o.delete(t.id),o}}return e}function M6e(e=[],t){return t.type==="REGISTER_INSERTER_MEDIA_CATEGORY"?[...e,t.category]:e}function N6e(e=!1,t){return t.type==="LAST_FOCUS"?t.lastFocus:e}function L6e(e=100,t){switch(t.type){case"SET_ZOOM_LEVEL":return t.zoom;case"RESET_ZOOM_LEVEL":return 100}return e}function D6e(e=null,t){switch(t.type){case"SET_INSERTION_POINT":return t.value;case"SELECT_BLOCK":return null}return e}function V6e(e={allOpen:!1,panels:{}},t){switch(t.type){case"SET_OPEN_LIST_VIEW_PANEL":return{allOpen:!1,panels:t.clientId?{[t.clientId]:!0}:{}};case"SET_ALL_LIST_VIEW_PANELS_OPEN":return{allOpen:!0,panels:{}};case"TOGGLE_LIST_VIEW_PANEL":return{allOpen:!1,panels:{...e.panels,[t.clientId]:t.isOpen}};case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":{if(!t.clientIds||t.clientIds.length===0)return e;let o={...e.panels},r=!1;return t.clientIds.forEach(n=>{n in o&&(delete o[n],r=!0)}),r?{...e,panels:o}:e}}return e}function F6e(e=0,t){return t.type==="INCREMENT_LIST_VIEW_EXPAND_REVISION"?e+1:e}function z6e(e=!1,t){switch(t.type){case"OPEN_LIST_VIEW_CONTENT_PANEL":return!0;case"CLOSE_LIST_VIEW_CONTENT_PANEL":return!1;case"CLEAR_SELECTED_BLOCK":return!1}return e}function j6e(e=null,t){switch(t.type){case"REQUEST_INSPECTOR_TAB":return{tabName:t.tabName,options:t.options};case"CLEAR_REQUESTED_INSPECTOR_TAB":return null}return e}function H6e(e=void 0,t){switch(t.type){case"SET_SELECTED_BLOCK_STYLE_STATE":{if(!t.clientId||!t.value)return;let o=e?.clientId===t.clientId?e.showStateOnCanvas??!0:!0,r=e?.clientId===t.clientId?e.value:{};return{clientId:t.clientId,showStateOnCanvas:o,value:{pseudo:"default",...r,...t.value}}}case"SET_SELECTED_BLOCK_STYLE_STATE_CANVAS_PREVIEW":{if(!t.clientId||typeof t.value!="boolean")return e;let o=e?.clientId===t.clientId?e.value:{};return{clientId:t.clientId,showStateOnCanvas:t.value,value:{pseudo:"default",...o}}}case"SELECT_BLOCK":case"SELECTION_CHANGE":{let o=t.clientId??t.start?.clientId,r=t.clientId??t.end?.clientId;if(e?.clientId&&(o!==r||e.clientId!==o))return;break}case"RESET_SELECTION":{if(e?.clientId&&e.clientId!==t.selectionStart?.clientId)return;break}case"CLEAR_SELECTED_BLOCK":case"MULTI_SELECT":return;case"REMOVE_BLOCKS":case"REPLACE_BLOCKS":{if(e?.clientId&&t.clientIds?.includes(e.clientId))return;break}case"RESET_BLOCKS":{if(e?.clientId&&!E9(t.blocks)[e.clientId])return;break}}return e}function W6e(e="default",t){return t.type==="SET_STYLE_STATE_VIEWPORT"?t.viewport??"default":e}function U6e(e=!1,t){return t.type==="SET_RESPONSIVE_EDITING"?t.enabled:e}var G6e=(0,X0.combineReducers)({blocks:l6e,isDragging:d6e,isTyping:u6e,isBlockInterfaceHidden:c6e,draggedBlocks:f6e,selection:m6e,isMultiSelecting:g6e,isSelectionEnabled:h6e,initialPosition:_6e,blocksMode:w6e,blockListSettings:E6e,insertionPoint:D6e,insertionCue:k6e,template:x6e,settings:S6e,preferences:C6e,lastBlockAttributesChange:T6e,lastFocus:N6e,expandedBlock:I6e,highlightedBlock:R6e,lastBlockInserted:P6e,editedContentOnlySection:O6e,blockVisibility:p6e,viewportModalClientIds:b6e,styleOverrides:A6e,removalPromptData:y6e,blockRemovalRules:v6e,registeredInserterMediaCategories:M6e,zoomLevel:L6e,hasBlockSpotlight:B6e,openedListViewPanels:V6e,listViewExpandRevision:F6e,listViewContentPanelOpen:z6e,requestedInspectorTab:j6e,selectedBlockStyleState:H6e,styleStateViewport:W6e,isResponsiveEditing:U6e});function Cte(e,t){if(t===""){let n=e.blocks.tree.get(t);return n?{clientId:"",...n}:void 0}if(!e.blocks.controlledInnerBlocks.has(t))return e.blocks.tree.get(t);let o=e.blocks.tree.get(`controlled||$t}`);return{...e.blocks.tree.get(t),innerBlocks:o?.innerBlocks}}function T9(e,t,o){let r=Cte(e,t);if(r&&(o(r),!!r?.innerBlocks?.length))for(let n of r?.innerBlocks)T9(e,n.clientId,o)}function Z0(e,t,o){if(!o.length)return;let r=e.blocks.parents.get(t);for(;r!==void 0;){if(o.includes(r))return r;r=e.blocks.parents.get(r)}}function $6e(e){return e?.attributes?.metadata?.bindings&&Object.keys(e?.attributes?.metadata?.bindings).length}function S9(e,t=""){let o=e?.zoomLevel<100||e?.zoomLevel==="auto-scaled",r=new Map,n=e.settings?.[um],i=e.blocks.order.get(n),s=Array.from(e.blocks.blockEditingModes).some(([,h])=>h==="disabled"),a=[],l=[];e.blocks.controlledInnerBlocks.forEach(h=>{let b=e.blocks.byClientId?.get(h);b?.name==="core/template-part"&&a.push(h),b?.name==="core/block"&&l.push(h)});let u=Array.from(e.blockListSettings).flatMap(([h,b])=>b?.templateLock==="contentOnly"?[h]:[]),d=e.settings?.[dm],f=e.settings?.disableContentOnlyForUnsyncedPatterns,p=d||f?[]:Array.from(e.blocks.attributes.keys()).filter(h=>e.blocks.attributes.get(h)?.metadata?.patternName),m=e.settings?.disableContentOnlyForTemplateParts,g=[...u,...p,...d||m?[]:a];return T9(e,t,h=>{let{clientId:b,name:v}=h,y=!!e.editedContentOnlySection,_=!1;if(y&&(_=b===e.editedContentOnlySection||!!Z0(e,b,[e.editedContentOnlySection]),!_)){r.set(b,"disabled");return}if(!e.blocks.blockEditingModes.has(b)){if(s){let w,k=e.blocks.parents.get(b);for(;k!==void 0&&(e.blocks.blockEditingModes.has(k)&&(w=e.blocks.blockEditingModes.get(k)),!w);)k=e.blocks.parents.get(k);if(w==="disabled"){r.set(b,"disabled");return}}if(o){if(b===n){r.set(b,"contentOnly");return}if(!i?.length){r.set(b,"disabled");return}if(i.includes(b)){r.set(b,"contentOnly");return}r.set(b,"disabled");return}if(l.length){if(l.includes(b)){if(Z0(e,b,l)){r.set(b,"disabled");return}return}let w=Z0(e,b,l);if(w){if(Z0(e,w,l)){r.set(b,"disabled");return}if($6e(h)){r.set(b,"contentOnly");return}r.set(b,"disabled");return}}if(y&&_){r.set(b,"default");return}g.length&&Z0(e,b,g)&&(XVe(v)?r.set(b,"contentOnly"):r.set(b,"disabled"))}}),r}function pm({prevState:e,nextState:t,addedBlocks:o,removedClientIds:r}){let n=e.derivedBlockEditingModes,i;return r?.forEach(s=>{T9(e,s,a=>{n.has(a.clientId)&&(i||(i=new Map(n)),i.delete(a.clientId))})}),o?.forEach(s=>{let a=S9(t,s.clientId);a.size&&(i?i=new Map([...i?.size?i:[],...a]):i=new Map([...n?.size?n:[],...a]))}),i}function Y6e(e){return(t,o)=>{let r=e(t,o);if(o.type!=="SET_EDITOR_MODE"&&r===t)return t;switch(o.type){case"REMOVE_BLOCKS":{let n=pm({prevState:t,nextState:r,removedClientIds:o.clientIds});if(n)return{...r,derivedBlockEditingModes:n??t.derivedBlockEditingModes};break}case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{let n=pm({prevState:t,nextState:r,addedBlocks:o.blocks});if(n)return{...r,derivedBlockEditingModes:n??t.derivedBlockEditingModes};break}case"UPDATE_BLOCK_ATTRIBUTES":{if(r.settings?.disableContentOnlyForUnsyncedPatterns)break;let i=[],s=[];for(let l of o?.clientIds){let u=o.options?.uniqueByBlock?o.attributes[l]:o.attributes;if(!u)break;u.metadata?.patternName&&!t.blocks.attributes.get(l)?.metadata?.patternName?i.push(r.blocks.tree.get(l)):u.metadata&&!u.metadata?.patternName&&t.blocks.attributes.get(l)?.metadata?.patternName&&s.push(l)}if(!i?.length&&!s?.length)break;let a=pm({prevState:t,nextState:r,addedBlocks:i,removedClientIds:s});if(a)return{...r,derivedBlockEditingModes:a??t.derivedBlockEditingModes};break}case"UPDATE_BLOCK_LIST_SETTINGS":{let n=[],i=[],s=typeof o.clientId=="string"?{[o.clientId]:o.settings}:o.clientId;for(let l in s){let u=t.blockListSettings.get(l)?.templateLock!=="contentOnly"&&r.blockListSettings.get(l)?.templateLock==="contentOnly",d=t.blockListSettings.get(l)?.templateLock==="contentOnly"&&r.blockListSettings.get(l)?.templateLock!=="contentOnly";u?n.push(r.blocks.tree.get(l)):d&&i.push(l)}if(!n.length&&!i.length)break;let a=pm({prevState:t,nextState:r,addedBlocks:n,removedClientIds:i});if(a)return{...r,derivedBlockEditingModes:a??t.derivedBlockEditingModes};break}case"SET_BLOCK_EDITING_MODE":case"UNSET_BLOCK_EDITING_MODE":case"SET_HAS_CONTROLLED_INNER_BLOCKS":{let n=Cte(r,o.clientId);if(!n)break;let i=pm({prevState:t,nextState:r,removedClientIds:[o.clientId],addedBlocks:[n]});if(i)return{...r,derivedBlockEditingModes:i??t.derivedBlockEditingModes};break}case"REPLACE_BLOCKS":{let n=pm({prevState:t,nextState:r,addedBlocks:o.blocks,removedClientIds:o.clientIds});if(n)return{...r,derivedBlockEditingModes:n??t.derivedBlockEditingModes};break}case"REPLACE_INNER_BLOCKS":{let n=t.blocks.order.get(o.rootClientId),i=pm({prevState:t,nextState:r,addedBlocks:o.blocks,removedClientIds:n});if(i)return{...r,derivedBlockEditingModes:i??t.derivedBlockEditingModes};break}case"MOVE_BLOCKS_TO_POSITION":{let n=o.clientIds.map(s=>r.blocks.byClientId.get(s)),i=pm({prevState:t,nextState:r,addedBlocks:n,removedClientIds:o.clientIds});if(i)return{...r,derivedBlockEditingModes:i??t.derivedBlockEditingModes};break}case"UPDATE_SETTINGS":{if(t?.settings?.[um]!==r?.settings?.[um]||!!t?.settings?.disableContentOnlyForUnsyncedPatterns!=!!r?.settings?.disableContentOnlyForUnsyncedPatterns||!!t?.settings?.[dm]!=!!r?.settings?.[dm]||!!t?.settings?.disableContentOnlyForTemplateParts!=!!r?.settings?.disableContentOnlyForTemplateParts)return{...r,derivedBlockEditingModes:S9(r)};break}case"RESET_BLOCKS":case"EDIT_CONTENT_ONLY_SECTION":case"SET_EDITOR_MODE":case"RESET_ZOOM_LEVEL":case"SET_ZOOM_LEVEL":return{...r,derivedBlockEditingModes:S9(r)}}return r.derivedBlockEditingModes=t?.derivedBlockEditingModes??new Map,r}}function K6e(e){return(t,o)=>{let r=e(t,o);return t?(r.automaticChangeStatus=t.automaticChangeStatus,o.type==="MARK_AUTOMATIC_CHANGE"?{...r,automaticChangeStatus:"pending"}:o.type==="MARK_AUTOMATIC_CHANGE_FINAL"&&t.automaticChangeStatus==="pending"?{...r,automaticChangeStatus:"final"}:r.blocks===t.blocks&&r.selection===t.selection||r.automaticChangeStatus!=="final"&&r.selection!==t.selection?r:{...r,automaticChangeStatus:void 0}):r}}var Ete=(0,C9.pipe)(Y6e,K6e)(G6e);var Uj={};No(Uj,{__experimentalGetActiveBlockIdByBlockNames:()=>d9e,__experimentalGetAllowedBlocks:()=>K8e,__experimentalGetAllowedPatterns:()=>Q8e,__experimentalGetBlockListSettingsForBlocks:()=>n9e,__experimentalGetDirectInsertBlock:()=>q8e,__experimentalGetGlobalBlocksByName:()=>n8e,__experimentalGetLastBlockAttributeChanges:()=>a9e,__experimentalGetParsedPattern:()=>Z8e,__experimentalGetPatternTransformItems:()=>t9e,__experimentalGetPatternsByBlockTypes:()=>e9e,__experimentalGetReusableBlockTitle:()=>i9e,__unstableGetBlockWithoutInnerBlocks:()=>JFe,__unstableGetClientIdWithClientIdsTree:()=>t8e,__unstableGetClientIdsTree:()=>o8e,__unstableGetContentLockingParent:()=>v9e,__unstableGetLastBlockChangeHistoryMode:()=>r9e,__unstableGetSelectedBlocksWithPartialSelection:()=>E8e,__unstableGetTemporarilyEditingAsBlocks:()=>_9e,__unstableGetVisibleBlocks:()=>g9e,__unstableHasActiveBlockOverlayActive:()=>Koe,__unstableIsFullySelected:()=>k8e,__unstableIsLastBlockChangeIgnored:()=>s9e,__unstableIsSelectionCollapsed:()=>x8e,__unstableIsSelectionMergeable:()=>C8e,__unstableIsWithinBlockOverlay:()=>h9e,__unstableSelectionHasUnmergeableBlock:()=>S8e,areInnerBlocksControlled:()=>S2,canEditBlock:()=>Goe,canInsertBlockType:()=>Eb,canInsertBlocks:()=>z8e,canLockBlockType:()=>H8e,canMoveBlock:()=>Uoe,canMoveBlocks:()=>j8e,canRemoveBlock:()=>Hj,canRemoveBlocks:()=>Woe,didAutomaticChange:()=>c9e,getAdjacentBlockClientId:()=>Dj,getAllowedBlocks:()=>Mj,getBlock:()=>xf,getBlockAttributes:()=>ba,getBlockCount:()=>s8e,getBlockEditingMode:()=>ts,getBlockHierarchyRootClientId:()=>f8e,getBlockIndex:()=>Voe,getBlockInsertionPoint:()=>L8e,getBlockListSettings:()=>W_,getBlockMode:()=>Aj,getBlockName:()=>Jt,getBlockNamesByClientId:()=>i8e,getBlockOrder:()=>Wn,getBlockParents:()=>rl,getBlockParentsByBlockName:()=>Lj,getBlockRootClientId:()=>vr,getBlockSelectionEnd:()=>l8e,getBlockSelectionStart:()=>a8e,getBlockTransformItems:()=>$8e,getBlocks:()=>e8e,getBlocksByClientId:()=>w2,getBlocksByName:()=>Moe,getClientIdsOfDescendants:()=>Aoe,getClientIdsWithDescendants:()=>H_,getDirectInsertBlock:()=>Yoe,getDraggedBlockClientIds:()=>A8e,getFirstMultiSelectedBlockClientId:()=>Vj,getGlobalBlockCount:()=>r8e,getHoveredBlockClientId:()=>m9e,getInserterItems:()=>G8e,getLastMultiSelectedBlockClientId:()=>Loe,getLowestCommonAncestorWithSelectedBlock:()=>p8e,getMultiSelectedBlockClientIds:()=>Rm,getMultiSelectedBlocks:()=>b8e,getMultiSelectedBlocksEndClientId:()=>w8e,getMultiSelectedBlocksStartClientId:()=>_8e,getNextBlockClientId:()=>g8e,getPatternsByBlockTypes:()=>J8e,getPreviousBlockClientId:()=>m8e,getSelectedBlock:()=>d8e,getSelectedBlockClientId:()=>G_,getSelectedBlockClientIds:()=>Tm,getSelectedBlockCount:()=>c8e,getSelectedBlocksInitialCaretPosition:()=>h8e,getSelectionEnd:()=>d1,getSelectionStart:()=>u1,getSettings:()=>yf,getTemplate:()=>F8e,getTemplateLock:()=>zu,hasBlockMovingClientId:()=>l9e,hasDraggedInnerBlock:()=>joe,hasInserterItems:()=>Y8e,hasMultiSelection:()=>B8e,hasSelectedBlock:()=>u8e,hasSelectedInnerBlock:()=>zoe,isAncestorBeingDragged:()=>M8e,isAncestorMultiSelected:()=>v8e,isBlockBeingDragged:()=>Fj,isBlockHighlighted:()=>u9e,isBlockInsertionPointVisible:()=>D8e,isBlockMultiSelected:()=>Doe,isBlockSelected:()=>Foe,isBlockValid:()=>QFe,isBlockVisible:()=>p9e,isBlockWithinSelection:()=>R8e,isCaretWithinFormattedText:()=>N8e,isDraggingBlocks:()=>Hoe,isFirstMultiSelectedBlock:()=>y8e,isGroupable:()=>y9e,isLastBlockChangePersistent:()=>o9e,isMultiSelecting:()=>I8e,isSelectionEnabled:()=>P8e,isTyping:()=>O8e,isUngroupable:()=>b9e,isValidTemplate:()=>V8e,wasBlockJustInserted:()=>f9e});var Ot=c(ce(),1),Poe=c(Bo(),1);var SI=c(F(),1),xt=(0,SI.forwardRef)(({icon:e,size:t=24,style:o,...r},n)=>{let i=e.props.style,s=i||o?{...i,...o}:void 0;return(0,SI.cloneElement)(e,{width:t,height:t,...r,...s?{style:s}:{},ref:n})});var CI=c(me(),1),R9=c(T(),1),lb=(0,R9.jsx)(CI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,R9.jsx)(CI.Path,{d:"M7.5 5H16.5M4 12H20M7.5 19H16.5",vectorEffect:"non-scaling-stroke"})});var EI=c(me(),1),B9=c(T(),1),I9=(0,B9.jsx)(EI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,B9.jsx)(EI.Path,{d:"M4 5H20M4 12H20M4 19H16.5",vectorEffect:"non-scaling-stroke"})});var TI=c(me(),1),P9=c(T(),1),mm=(0,P9.jsx)(TI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,P9.jsx)(TI.Path,{d:"M4 5H13M4 12H20M4 19H13",vectorEffect:"non-scaling-stroke"})});var d_=c(me(),1),Q0=c(T(),1),cb=(0,Q0.jsxs)(d_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Q0.jsx)(d_.Path,{d:"M5 5H19M5 19H19",vectorEffect:"non-scaling-stroke"}),(0,Q0.jsx)(d_.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]});var RI=c(me(),1),O9=c(T(),1),gm=(0,O9.jsx)(RI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,O9.jsx)(RI.Path,{d:"M11 5H20M4 12H20M11 19H20",vectorEffect:"non-scaling-stroke"})});var BI=c(me(),1),A9=c(T(),1),M9=(0,A9.jsx)(BI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,A9.jsx)(BI.Path,{d:"M12 4V19M7 14L12 19L17 14",vectorEffect:"non-scaling-stroke"})});var II=c(me(),1),N9=c(T(),1),J0=(0,N9.jsx)(II.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,N9.jsx)(II.Path,{d:"M20 12L5 12M10 7L5 12L10 17",vectorEffect:"non-scaling-stroke"})});var PI=c(me(),1),L9=c(T(),1),eC=(0,L9.jsx)(PI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,L9.jsx)(PI.Path,{d:"M4 12L19 12M14 17L19 12L14 7",vectorEffect:"non-scaling-stroke"})});var OI=c(me(),1),D9=c(T(),1),V9=(0,D9.jsx)(OI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,D9.jsx)(OI.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})});var AI=c(me(),1),F9=c(T(),1),z9=(0,F9.jsx)(AI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,F9.jsx)(AI.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})});var MI=c(me(),1),j9=c(T(),1),tC=(0,j9.jsx)(MI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,j9.jsx)(MI.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"})});var ub=c(me(),1),db=c(T(),1),H9=(0,db.jsxs)(ub.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,db.jsx)(ub.Path,{d:"M4.75 6C4.75 5.30964 5.30964 4.75 6 4.75H9C9.69036 4.75 10.25 5.30964 10.25 6V9C10.25 9.69036 9.69036 10.25 9 10.25H6C5.30964 10.25 4.75 9.69036 4.75 9V6Z",vectorEffect:"non-scaling-stroke"}),(0,db.jsx)(ub.Path,{d:"M4.75 15C4.75 14.3096 5.30964 13.75 6 13.75H9C9.69036 13.75 10.25 14.3096 10.25 15V18C10.25 18.6904 9.69036 19.25 9 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V15Z",vectorEffect:"non-scaling-stroke"}),(0,db.jsx)(ub.Path,{d:"M13.75 6C13.75 5.30964 14.3096 4.75 15 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V9C19.25 9.69036 18.6904 10.25 18 10.25H15C14.3096 10.25 13.75 9.69036 13.75 9V6Z",vectorEffect:"non-scaling-stroke"}),(0,db.jsx)(ub.Path,{d:"M13.75 15C13.75 14.3096 14.3096 13.75 15 13.75H18C18.6904 13.75 19.25 14.3096 19.25 15V18C19.25 18.6904 18.6904 19.25 18 19.25H15C14.3096 19.25 13.75 18.6904 13.75 18V15Z",vectorEffect:"non-scaling-stroke"})]});var NI=c(me(),1),W9=c(T(),1),U9=(0,W9.jsx)(NI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,W9.jsx)(NI.Path,{d:"M12 8L12 13M12 14.5L12 16M4.75 12C4.75 7.99593 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var LI=c(me(),1),G9=c(T(),1),Ps=(0,G9.jsx)(LI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,G9.jsx)(LI.Path,{d:"M7 12L10 15L17 8",vectorEffect:"non-scaling-stroke"})});var DI=c(me(),1),$9=c(T(),1),Bn=(0,$9.jsx)(DI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,$9.jsx)(DI.Path,{d:"M7 11L12 15L17 11",vectorEffect:"non-scaling-stroke"})});var VI=c(me(),1),Y9=c(T(),1),oC=(0,Y9.jsx)(VI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Y9.jsx)(VI.Path,{d:"M13.5 8.5L10.5 12L13.5 15.5",vectorEffect:"non-scaling-stroke"})});var FI=c(me(),1),K9=c(T(),1),li=(0,K9.jsx)(FI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,K9.jsx)(FI.Path,{d:"M14 6.5L9 12L14 17.5",vectorEffect:"non-scaling-stroke"})});var zI=c(me(),1),q9=c(T(),1),hm=(0,q9.jsx)(zI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,q9.jsx)(zI.Path,{d:"M10.5 8.5L13.5 12L10.5 15.5",vectorEffect:"non-scaling-stroke"})});var jI=c(me(),1),Z9=c(T(),1),br=(0,Z9.jsx)(jI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Z9.jsx)(jI.Path,{d:"M10 6.5L15 12L10 17.5",vectorEffect:"non-scaling-stroke"})});var HI=c(me(),1),X9=c(T(),1),fb=(0,X9.jsx)(HI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,X9.jsx)(HI.Path,{d:"M7 13L12 9L17 13",vectorEffect:"non-scaling-stroke"})});var WI=c(me(),1),Q9=c(T(),1),pb=(0,Q9.jsx)(WI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Q9.jsx)(WI.Path,{d:"M7.75 16.25L16.25 7.75M16.25 16.25L7.75 7.75",vectorEffect:"non-scaling-stroke"})});var UI=c(me(),1),J9=c(T(),1),e7=(0,J9.jsx)(UI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,J9.jsx)(UI.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z"})});var GI=c(me(),1),t7=c(T(),1),o7=(0,t7.jsx)(GI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t7.jsx)(GI.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z"})});var $I=c(me(),1),r7=c(T(),1),mb=(0,r7.jsx)($I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r7.jsx)($I.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})});var YI=c(me(),1),n7=c(T(),1),i7=(0,n7.jsx)(YI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n7.jsx)(YI.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5Zm-12.5 9v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})});var gb=c(me(),1),f_=c(T(),1),s7=(0,f_.jsxs)(gb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,f_.jsx)(gb.G,{opacity:".25",children:(0,f_.jsx)(gb.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,f_.jsx)(gb.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75 15v3c0 .138.112.25.25.25h3v1.5H6A1.75 1.75 0 0 1 4.25 18v-3h1.5Z"})]});var hb=c(me(),1),p_=c(T(),1),a7=(0,p_.jsxs)(hb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,p_.jsx)(hb.G,{opacity:".25",children:(0,p_.jsx)(hb.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,p_.jsx)(hb.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 18.25h3a.25.25 0 0 0 .25-.25v-3h1.5v3A1.75 1.75 0 0 1 18 19.75h-3v-1.5Z"})]});var bb=c(me(),1),m_=c(T(),1),l7=(0,m_.jsxs)(bb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,m_.jsx)(bb.G,{opacity:".25",children:(0,m_.jsx)(bb.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,m_.jsx)(bb.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.75a.25.25 0 0 0-.25.25v3h-1.5V6c0-.966.784-1.75 1.75-1.75h3v1.5H6Z"})]});var yb=c(me(),1),g_=c(T(),1),c7=(0,g_.jsxs)(yb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,g_.jsx)(yb.G,{opacity:".25",children:(0,g_.jsx)(yb.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,g_.jsx)(yb.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5Z"})]});var KI=c(me(),1),u7=c(T(),1),d7=(0,u7.jsx)(KI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,u7.jsx)(KI.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})});var qI=c(me(),1),f7=c(T(),1),rC=(0,f7.jsx)(qI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,f7.jsx)(qI.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"})});var ZI=c(me(),1),p7=c(T(),1),m7=(0,p7.jsx)(ZI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,p7.jsx)(ZI.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M3 7c0-1.1.9-2 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Zm2-.5h14c.3 0 .5.2.5.5v1L12 13.5 4.5 7.9V7c0-.3.2-.5.5-.5Zm-.5 3.3V17c0 .3.2.5.5.5h14c.3 0 .5-.2.5-.5V9.8L12 15.4 4.5 9.8Z"})});var XI=c(me(),1),g7=c(T(),1),nC=(0,g7.jsx)(XI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,g7.jsx)(XI.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z"})});var QI=c(me(),1),h7=c(T(),1),b7=(0,h7.jsx)(QI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,h7.jsx)(QI.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})});var JI=c(me(),1),y7=c(T(),1),v7=(0,y7.jsx)(JI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,y7.jsx)(JI.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})});var eP=c(me(),1),_7=c(T(),1),w7=(0,_7.jsx)(eP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_7.jsx)(eP.Path,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"})});var tP=c(me(),1),k7=c(T(),1),x7=(0,k7.jsx)(tP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,k7.jsx)(tP.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})});var oP=c(me(),1),S7=c(T(),1),C7=(0,S7.jsx)(oP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,S7.jsx)(oP.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})});var rP=c(me(),1),E7=c(T(),1),T7=(0,E7.jsx)(rP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,E7.jsx)(rP.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})});var nP=c(me(),1),R7=c(T(),1),B7=(0,R7.jsx)(nP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,R7.jsx)(nP.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})});var iP=c(me(),1),I7=c(T(),1),P7=(0,I7.jsx)(iP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,I7.jsx)(iP.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})});var sP=c(me(),1),O7=c(T(),1),A7=(0,O7.jsx)(sP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,O7.jsx)(sP.Path,{d:"M12.75 19.45 15 17.5l1 1.1-4 3.4-4-3.4 1-1.1 2.25 1.95V14.5h1.5v4.95ZM19 12.75H5v-1.5h14v1.5ZM16 5.4l-1 1.1-2.25-1.95V9.5h-1.5V4.55L9 6.5 8 5.4 12 2l4 3.4Z"})});var aP=c(me(),1),M7=c(T(),1),lP=(0,M7.jsx)(aP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,M7.jsx)(aP.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});var cP=c(me(),1),N7=c(T(),1),iC=(0,N7.jsx)(cP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,N7.jsx)(cP.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm6.5 8c0 .6 0 1.2-.2 1.8h-2.7c0-.6.2-1.1.2-1.8s0-1.2-.2-1.8h2.7c.2.6.2 1.1.2 1.8Zm-.9-3.2h-2.4c-.3-.9-.7-1.8-1.1-2.4-.1-.2-.2-.4-.3-.5 1.6.5 3 1.6 3.8 3ZM12.8 17c-.3.5-.6 1-.8 1.3-.2-.3-.5-.8-.8-1.3-.3-.5-.6-1.1-.8-1.7h3.3c-.2.6-.5 1.2-.8 1.7Zm-2.9-3.2c-.1-.6-.2-1.1-.2-1.8s0-1.2.2-1.8H14c.1.6.2 1.1.2 1.8s0 1.2-.2 1.8H9.9ZM11.2 7c.3-.5.6-1 .8-1.3.2.3.5.8.8 1.3.3.5.6 1.1.8 1.7h-3.3c.2-.6.5-1.2.8-1.7Zm-1-1.2c-.1.2-.2.3-.3.5-.4.7-.8 1.5-1.1 2.4H6.4c.8-1.4 2.2-2.5 3.8-3Zm-1.8 8H5.7c-.2-.6-.2-1.1-.2-1.8s0-1.2.2-1.8h2.7c0 .6-.2 1.1-.2 1.8s0 1.2.2 1.8Zm-2 1.4h2.4c.3.9.7 1.8 1.1 2.4.1.2.2.4.3.5-1.6-.5-3-1.6-3.8-3Zm7.4 3c.1-.2.2-.3.3-.5.4-.7.8-1.5 1.1-2.4h2.4c-.8 1.4-2.2 2.5-3.8 3Z"})});var uP=c(me(),1),L7=c(T(),1),sC=(0,L7.jsx)(uP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,L7.jsx)(uP.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z"})});var dP=c(me(),1),D7=c(T(),1),aC=(0,D7.jsx)(dP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,D7.jsx)(dP.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})});var fP=c(me(),1),V7=c(T(),1),F7=(0,V7.jsx)(fP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,V7.jsx)(fP.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})});var pP=c(me(),1),z7=c(T(),1),j7=(0,z7.jsx)(pP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,z7.jsx)(pP.Path,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z"})});var mP=c(me(),1),H7=c(T(),1),W7=(0,H7.jsx)(mP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,H7.jsx)(mP.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})});var gP=c(me(),1),U7=c(T(),1),G7=(0,U7.jsx)(gP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,U7.jsx)(gP.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var hP=c(me(),1),$7=c(T(),1),Y7=(0,$7.jsx)(hP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$7.jsx)(hP.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})});var bP=c(me(),1),K7=c(T(),1),q7=(0,K7.jsx)(bP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,K7.jsx)(bP.Path,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var yP=c(me(),1),Z7=c(T(),1),X7=(0,Z7.jsx)(yP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Z7.jsx)(yP.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});var vP=c(me(),1),Q7=c(T(),1),lC=(0,Q7.jsx)(vP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Q7.jsx)(vP.Path,{d:"M3.75 16.2031L8.6 12.7L12 15L16 11L20.25 15.2517M5 20.25H19C19.6904 20.25 20.25 19.6904 20.25 19V5C20.25 4.30964 19.6904 3.75 19 3.75H5C4.30964 3.75 3.75 4.30964 3.75 5V19C3.75 19.6904 4.30964 20.25 5 20.25Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var _P=c(me(),1),J7=c(T(),1),ez=(0,J7.jsx)(_P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,J7.jsx)(_P.Path,{d:"M12 16V11M12 9.5V8M19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var h_=c(me(),1),cC=c(T(),1),uC=(0,cC.jsxs)(h_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,cC.jsx)(h_.Path,{d:"M4 19.25H20",vectorEffect:"non-scaling-stroke"}),(0,cC.jsx)(h_.Rect,{x:"9",y:"4",width:"6",height:"11",fill:"currentColor",stroke:"none"})]});var b_=c(me(),1),dC=c(T(),1),fC=(0,dC.jsxs)(b_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,dC.jsx)(b_.Path,{d:"M4 12H20",vectorEffect:"non-scaling-stroke"}),(0,dC.jsx)(b_.Rect,{x:"9",y:"4",width:"6",height:"16",fill:"currentColor",stroke:"none"})]});var y_=c(me(),1),pC=c(T(),1),bm=(0,pC.jsxs)(y_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,pC.jsx)(y_.Path,{d:"M12 20V4",vectorEffect:"non-scaling-stroke"}),(0,pC.jsx)(y_.Rect,{x:"4",y:"9",width:"16",height:"6",fill:"currentColor",stroke:"none"})]});var v_=c(me(),1),mC=c(T(),1),ym=(0,mC.jsxs)(v_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,mC.jsx)(v_.Path,{d:"M4.75 4V20",vectorEffect:"non-scaling-stroke"}),(0,mC.jsx)(v_.Rect,{x:"9",y:"9",width:"11",height:"6",fill:"currentColor",stroke:"none"})]});var __=c(me(),1),gC=c(T(),1),vm=(0,gC.jsxs)(__.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,gC.jsx)(__.Rect,{x:"4",y:"9",width:"11",height:"6",fill:"currentColor",stroke:"none"}),(0,gC.jsx)(__.Path,{d:"M19.25 20V4",vectorEffect:"non-scaling-stroke"})]});var w_=c(me(),1),k_=c(T(),1),hC=(0,k_.jsxs)(w_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,k_.jsx)(w_.Path,{d:"M4 12H20",vectorEffect:"non-scaling-stroke"}),(0,k_.jsx)(w_.Path,{d:"M17 20H7V16H17V20Z",fill:"currentColor",stroke:"none"}),(0,k_.jsx)(w_.Path,{d:"M17 8H7V4H17V8Z",fill:"currentColor",stroke:"none"})]});var x_=c(me(),1),bC=c(T(),1),S_=(0,bC.jsxs)(x_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,bC.jsx)(x_.Rect,{x:"9",y:"9",width:"6",height:"6",fill:"currentColor",stroke:"none"}),(0,bC.jsx)(x_.Path,{d:"M19.25 4V20M4.75 20V4",vectorEffect:"non-scaling-stroke"})]});var C_=c(me(),1),yC=c(T(),1),vC=(0,yC.jsxs)(C_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,yC.jsx)(C_.Rect,{x:"10",y:"7",width:"4",height:"10",fill:"currentColor",stroke:"none"}),(0,yC.jsx)(C_.Path,{d:"M4 4.75H20M4 19.25H20",vectorEffect:"non-scaling-stroke"})]});var E_=c(me(),1),_C=c(T(),1),T_=(0,_C.jsxs)(E_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,_C.jsx)(E_.Path,{d:"M4.75 4V20M19.25 20V4",vectorEffect:"non-scaling-stroke"}),(0,_C.jsx)(E_.Rect,{x:"7",y:"10",width:"10",height:"4",fill:"currentColor",stroke:"none"})]});var R_=c(me(),1),wC=c(T(),1),kC=(0,wC.jsxs)(R_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,wC.jsx)(R_.Rect,{x:"9",y:"9",width:"6",height:"11",fill:"currentColor",stroke:"none"}),(0,wC.jsx)(R_.Path,{d:"M4 4.75H20",vectorEffect:"non-scaling-stroke"})]});var wP=c(me(),1),tz=c(T(),1),mf=(0,tz.jsx)(wP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tz.jsx)(wP.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})});var kP=c(me(),1),oz=c(T(),1),rz=(0,oz.jsx)(kP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,oz.jsx)(kP.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var xP=c(me(),1),nz=c(T(),1),Os=(0,nz.jsx)(xP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,nz.jsx)(xP.Path,{d:"M9.5 12H12.5M10 7.75H8.25C5.90279 7.75 4 9.65279 4 12C4 14.3472 5.90279 16.25 8.25 16.25H10.2333M14 16.25H15.75C18.0972 16.25 20 14.3472 20 12C20 9.65279 18.0972 7.75 15.75 7.75H14.7667M8.5 19.5L16.5 4.5",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var SP=c(me(),1),iz=c(T(),1),As=(0,iz.jsx)(SP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,iz.jsx)(SP.Path,{d:"M9.5 12L14.5 12M10 7.75H8.25C5.90279 7.75 4 9.65279 4 12C4 14.3472 5.90279 16.25 8.25 16.25H10M14 16.25H15.75C18.0972 16.25 20 14.3472 20 12C20 9.65279 18.0972 7.75 15.75 7.75L14 7.75",vectorEffect:"non-scaling-stroke"})});var CP=c(me(),1),sz=c(T(),1),xC=(0,sz.jsx)(CP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,sz.jsx)(CP.Path,{d:"M10 17.5H21M6.5 12H17.5M3 6.5H14",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var EP=c(me(),1),az=c(T(),1),lz=(0,az.jsx)(EP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,az.jsx)(EP.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"})});var TP=c(me(),1),cz=c(T(),1),uz=(0,cz.jsx)(TP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cz.jsx)(TP.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"})});var RP=c(me(),1),dz=c(T(),1),vb=(0,dz.jsx)(RP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dz.jsx)(RP.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"})});var SC=c(me(),1),CC=c(T(),1),B_=(0,CC.jsxs)(SC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,CC.jsx)(SC.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,CC.jsx)(SC.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]});var BP=c(me(),1),fz=c(T(),1),EC=(0,fz.jsx)(BP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fz.jsx)(BP.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})});var IP=c(me(),1),pz=c(T(),1),ga=(0,pz.jsx)(IP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,pz.jsx)(IP.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var TC=c(me(),1),RC=c(T(),1),_b=(0,RC.jsxs)(TC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,RC.jsx)(TC.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,RC.jsx)(TC.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]});var BC=c(me(),1),IC=c(T(),1),mz=(0,IC.jsxs)(BC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,IC.jsx)(BC.Path,{d:"M10.75 20V4.75L14.75 4.75M14.75 20V4.75M14.75 4.75H18.5",vectorEffect:"non-scaling-stroke"}),(0,IC.jsx)(BC.Path,{d:"M5.75 9C5.75 11.3472 7.65279 13.25 10 13.25H10.75V4.75H10C7.65279 4.75 5.75 6.65279 5.75 9Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var PP=c(me(),1),gz=c(T(),1),wb=(0,gz.jsx)(PP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,gz.jsx)(PP.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});var OP=c(me(),1),hz=c(T(),1),bz=(0,hz.jsx)(OP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,hz.jsx)(OP.Path,{d:"M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z"})});var AP=c(me(),1),yz=c(T(),1),Ms=(0,yz.jsx)(AP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,yz.jsx)(AP.Path,{d:"M12 18V6M18 12H6",vectorEffect:"non-scaling-stroke"})});var I_=c(me(),1),PC=c(T(),1),vz=(0,PC.jsxs)(I_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,PC.jsx)(I_.Path,{d:"M5 4.75H19M5 19.25H19",vectorEffect:"non-scaling-stroke"}),(0,PC.jsx)(I_.Rect,{x:"7",y:"9",width:"10",height:"6",fill:"currentColor",stroke:"none"})]});var P_=c(me(),1),OC=c(T(),1),_z=(0,OC.jsxs)(P_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,OC.jsx)(P_.Path,{d:"M5 4.75H13M5 19.25H13",vectorEffect:"non-scaling-stroke"}),(0,OC.jsx)(P_.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]});var O_=c(me(),1),AC=c(T(),1),wz=(0,AC.jsxs)(O_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,AC.jsx)(O_.Path,{d:"M11 4.75H19M11 19.25H19",vectorEffect:"non-scaling-stroke"}),(0,AC.jsx)(O_.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]});var MP=c(me(),1),kz=c(T(),1),xz=(0,kz.jsx)(MP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,kz.jsx)(MP.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})});var NP=c(me(),1),Sz=c(T(),1),Cz=(0,Sz.jsx)(NP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Sz.jsx)(NP.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})});var MC=c(me(),1),NC=c(T(),1),Ez=(0,NC.jsxs)(MC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,NC.jsx)(MC.Path,{d:"M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,NC.jsx)(MC.Path,{d:"M9 12L11 14L15 10",vectorEffect:"non-scaling-stroke"})]});var LP=c(me(),1),Tz=c(T(),1),In=(0,Tz.jsx)(LP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Tz.jsx)(LP.Path,{d:"M7 12H17",vectorEffect:"non-scaling-stroke"})});var DP=c(me(),1),Rz=c(T(),1),Bz=(0,Rz.jsx)(DP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Rz.jsx)(DP.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})});var VP=c(me(),1),Iz=c(T(),1),Pz=(0,Iz.jsx)(VP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Iz.jsx)(VP.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})});var FP=c(me(),1),Oz=c(T(),1),Az=(0,Oz.jsx)(FP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Oz.jsx)(FP.Path,{d:"M5 19L9.28769 14.7123M18.25 11C18.25 13.8995 15.8995 16.25 13 16.25C10.1005 16.25 7.75 13.8995 7.75 11C7.75 8.10051 10.1005 5.75 13 5.75C15.8995 5.75 18.25 8.10051 18.25 11Z",vectorEffect:"non-scaling-stroke"})});var zP=c(me(),1),Mz=c(T(),1),kb=(0,Mz.jsx)(zP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Mz.jsx)(zP.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})});var LC=c(me(),1),DC=c(T(),1),Nz=(0,DC.jsxs)(LC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,DC.jsx)(LC.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,DC.jsx)(LC.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]});var jP=c(me(),1),Lz=c(T(),1),Dz=(0,Lz.jsx)(jP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Lz.jsx)(jP.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})});var HP=c(me(),1),Vz=c(T(),1),WP=(0,Vz.jsx)(HP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Vz.jsx)(HP.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})});var VC=c(me(),1),FC=c(T(),1),Fz=(0,FC.jsxs)(VC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,FC.jsx)(VC.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,FC.jsx)(VC.Path,{d:"m16.5 19.5h-9v-1.5h9z"})]});var A_=c(me(),1),M_=c(T(),1),zz=(0,M_.jsxs)(A_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,M_.jsx)(A_.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,M_.jsx)(A_.Path,{d:"m4.5 7.5v9h1.5v-9z"}),(0,M_.jsx)(A_.Path,{d:"m18 7.5v9h1.5v-9z"})]});var zC=c(me(),1),jC=c(T(),1),jz=(0,jC.jsxs)(zC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,jC.jsx)(zC.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,jC.jsx)(zC.Path,{d:"m4.5 16.5v-9h1.5v9z"})]});var HC=c(me(),1),WC=c(T(),1),Hz=(0,WC.jsxs)(HC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,WC.jsx)(HC.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,WC.jsx)(HC.Path,{d:"m18 16.5v-9h1.5v9z"})]});var UC=c(me(),1),GC=c(T(),1),Wz=(0,GC.jsxs)(UC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,GC.jsx)(UC.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,GC.jsx)(UC.Path,{d:"m16.5 6h-9v-1.5h9z"})]});var N_=c(me(),1),L_=c(T(),1),Uz=(0,L_.jsxs)(N_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,L_.jsx)(N_.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,L_.jsx)(N_.Path,{d:"m7.5 6h9v-1.5h-9z"}),(0,L_.jsx)(N_.Path,{d:"m7.5 19.5h9v-1.5h-9z"})]});var UP=c(me(),1),Gz=c(T(),1),$z=(0,Gz.jsx)(UP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Gz.jsx)(UP.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})});var D_=c(me(),1),$C=c(T(),1),YC=(0,$C.jsxs)(D_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,$C.jsx)(D_.Path,{d:"M8 19.25H16",vectorEffect:"non-scaling-stroke"}),(0,$C.jsx)(D_.Rect,{x:"5",y:"4",width:"14",height:"11",fill:"currentColor",stroke:"none"})]});var V_=c(me(),1),KC=c(T(),1),xb=(0,KC.jsxs)(V_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,KC.jsx)(V_.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"}),(0,KC.jsx)(V_.Path,{d:"M8 4.75H16M8 19.25H16",vectorEffect:"non-scaling-stroke"})]});var qC=c(me(),1),ZC=c(T(),1),Yz=(0,ZC.jsxs)(qC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,ZC.jsx)(qC.Path,{d:"M12 4.75C7.99594 4.75 4.75 7.99593 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25L12 4.75Z",fill:"currentColor",stroke:"none"}),(0,ZC.jsx)(qC.Path,{d:"M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]});var GP=c(me(),1),Kz=c(T(),1),tl=(0,Kz.jsx)(GP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Kz.jsx)(GP.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})});var $P=c(me(),1),qz=c(T(),1),Zz=(0,qz.jsx)($P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,qz.jsx)($P.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})});var YP=c(me(),1),Xz=c(T(),1),Qz=(0,Xz.jsx)(YP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Xz.jsx)(YP.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})});var KP=c(me(),1),Jz=c(T(),1),ej=(0,Jz.jsx)(KP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Jz.jsx)(KP.Path,{d:"M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z"})});var qP=c(me(),1),tj=c(T(),1),oj=(0,tj.jsx)(qP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tj.jsx)(qP.Path,{d:"M7 5.6v1.7l2.6.9v3.9L7 13v1.7L17.5 11V9.3L7 5.6zm4.2 6V8.8l4 1.4-4 1.4zm-5.7 5.6V5.5H4v14.3l3.6-2.2-.8-1.3-1.3.9z"})});var ZP=c(me(),1),rj=c(T(),1),nj=(0,rj.jsx)(ZP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,rj.jsx)(ZP.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})});var XP=c(me(),1),ij=c(T(),1),sj=(0,ij.jsx)(XP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ij.jsx)(XP.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"})});var QP=c(me(),1),aj=c(T(),1),gf=(0,aj.jsx)(QP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,aj.jsx)(QP.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"})});var JP=c(me(),1),lj=c(T(),1),_c=(0,lj.jsx)(JP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lj.jsx)(JP.Path,{d:"M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z"})});var e2=c(me(),1),cj=c(T(),1),uj=(0,cj.jsx)(e2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,cj.jsx)(e2.Path,{d:"M4.75 15V19.25H12M12 19.25V4.5M12 19.25H19.25V15M17.5 10L12 4.5L6.5 10",vectorEffect:"non-scaling-stroke"})});var t2=c(me(),1),dj=c(T(),1),fj=(0,dj.jsx)(t2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dj.jsx)(t2.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})});var o2=c(me(),1),pj=c(T(),1),mj=(0,pj.jsx)(o2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,pj.jsx)(o2.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})});var kf=c($r(),1),ya=c(Nt(),1),It=c(ee(),1);var Toe=c(ce(),1),Roe=c(Ite(),1);var yr="core/block-editor";var y2={};No(y2,{canHostEditableRoot:()=>cFe,getAllPatterns:()=>wFe,getBlockRemovalRules:()=>gFe,getBlockSettings:()=>poe,getBlockStyles:()=>RFe,getBlockWithoutAttributes:()=>iFe,getClientIdWithClientIdsTree:()=>Ej,getClientIdsTree:()=>Tj,getClosestAllowedInsertionPoint:()=>yoe,getClosestAllowedInsertionPointForPattern:()=>IFe,getContentLockingParent:()=>Bj,getEditedContentOnlySection:()=>Ij,getEnabledBlockParents:()=>pFe,getEnabledClientIdsTree:()=>dFe,getExpandedBlock:()=>EFe,getInserterMediaCategories:()=>yFe,getInsertionPoint:()=>PFe,getLastFocus:()=>SFe,getLastInsertedBlocksClientIds:()=>nFe,getListViewClientIdsTree:()=>fFe,getListViewExpandRevision:()=>FFe,getParentSectionBlock:()=>vf,getPatternBySlug:()=>_Fe,getRegisteredInserterMediaCategories:()=>bFe,getRemovalPromptData:()=>mFe,getRequestedInspectorTab:()=>HFe,getReusableBlocks:()=>xFe,getSectionRootClientId:()=>Cb,getSelectedBlockStyleState:()=>Soe,getStyleOverrides:()=>hFe,getStyleStateViewport:()=>xoe,getViewportModalClientIds:()=>jFe,getZoomLevel:()=>BFe,hasAllowedPatterns:()=>vFe,hasBlockSpotlight:()=>NFe,hasSelectedStyleState:()=>UFe,isBlockHiddenAnywhere:()=>OFe,isBlockHiddenAtViewport:()=>voe,isBlockHiddenEverywhere:()=>Oj,isBlockInterfaceHidden:()=>rFe,isBlockParentHiddenAtViewport:()=>MFe,isBlockParentHiddenEverywhere:()=>AFe,isBlockSubtreeDisabled:()=>sFe,isContainerInsertableToInContentOnlyMode:()=>r1,isDragging:()=>CFe,isEditLockedBlock:()=>_oe,isListViewContentPanelOpen:()=>DFe,isListViewPanelOpened:()=>VFe,isLockedBlock:()=>LFe,isMoveLockedBlock:()=>woe,isRemoveLockedBlock:()=>koe,isResponsiveEditing:()=>WFe,isSectionBlock:()=>_f,isSelectedBlockStyleStateShownOnCanvas:()=>GFe,isSyncedBlock:()=>TFe,isWithinEditedContentOnlySection:()=>b2,isZoomOut:()=>Pj,shouldRenderBlockListView:()=>zFe});var Pn=c(ee(),1),Sm=c(ce(),1);function Pte(e,t,o){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};let r=t.pop(),n=e;for(let i of t){let s=n[i];n=n[i]=Array.isArray(s)?[...s]:{...s}}return n[r]=o,e}var $o=(e,t,o)=>{let r=Array.isArray(t)?t:t.split("."),n=e;return r.forEach(i=>{n=n?.[i]}),n??o};var Mte=c(F_(),1);var q6e="1600px",Z6e="320px",X6e=1,Q6e=.25,J6e=.75,e4e="14px";function Ate({minimumFontSize:e,maximumFontSize:t,fontSize:o,minimumViewportWidth:r=Z6e,maximumViewportWidth:n=q6e,scaleFactor:i=X6e,minimumFontSizeLimit:s}){if(s=Du(s)?s:e4e,o){let _=Du(o);if(!_?.unit||!_?.value)return null;let w=Du(s,{coerceTo:_.unit});if(w?.value&&!e&&!t&&_?.value<=w?.value)return null;if(t||(t=`$_.value}$_.unit}`),!e){let k=_.unit==="px"?_.value:_.value*16,x=Math.min(Math.max(1-.075*Math.log2(k),Q6e),J6e),C=XC(_.value*x,3);w?.value&&C<w?.value?e=`$w.value}$w.unit}`:e=`$C}$_.unit}`}}let a=Du(e),l=a?.unit||"rem",u=Du(t,{coerceTo:l});if(!a||!u)return null;let d=Du(e,{coerceTo:"rem"}),f=Du(n,{coerceTo:l}),p=Du(r,{coerceTo:l});if(!f||!p||!d)return null;let m=f.value-p.value;if(!m)return null;let g=XC(p.value/100,3),h=XC(g,3)+l,b=100*((u.value-a.value)/m),v=XC((b||1)*i,3),y=`$d.value}$d.unit} + ((1vw - $h}) * $v})`;return`clamp($e}, $y}, $t})`}function Du(e,t={}){if(typeof e!="string"&&typeof e!="number")return null;isFinite(e)&&(e=`$e}px`);let{coerceTo:o,rootSizeValue:r,acceptableUnits:n}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},i=n?.join("|"),s=new RegExp(`^(\\d*\\.?\\d+)($i}){1,1}$`),a=e.toString().match(s);if(!a||a.length<3)return null;let[,l,u]=a,d=parseFloat(l);return o==="px"&&(u==="em"||u==="rem")&&(d=d*r,u=o),u==="px"&&(o==="em"||o==="rem")&&(d=d/r,u=o),(o==="em"||o==="rem")&&(u==="em"||u==="rem")&&(u=o),u?{value:XC(d,3),unit:u}:null}function XC(e,t=3){let o=Math.pow(10,t);return Math.round(e*o)/o}function gj(e){let t=e?.fluid;return t===!0||t&&typeof t=="object"&&Object.keys(t).length>0}function t4e(e){let t=e?.typography??{},o=e?.layout,r=Du(o?.wideSize)?o?.wideSize:null;return gj(t)&&r?{fluid:{maxViewportWidth:r,...typeof t.fluid=="object"?t.fluid:{}}}:{fluid:t?.fluid}}function hf(e,t){let{size:o}=e;if(!o||o==="0"||e?.fluid===!1||!gj(t?.typography)&&!gj(e))return o;let r=t4e(t)?.fluid??{},n=Ate({minimumFontSize:typeof e?.fluid=="boolean"?void 0:e?.fluid?.min,maximumFontSize:typeof e?.fluid=="boolean"?void 0:e?.fluid?.max,fontSize:o,minimumFontSizeLimit:typeof r=="object"?r?.minFontSize:void 0,maximumViewportWidth:typeof r=="object"?r?.maxViewportWidth:void 0,minimumViewportWidth:typeof r=="object"?r?.minViewportWidth:void 0});return n||o}var Fu="body",QC=":root";function Vu(e){if(!e.includes(","))return[e];let t=[],o="",r=0;for(let n of e){if(n==="(")r++;else if(n===")"&&r>0)r--;else if(n===","&&r===0){t.push(o),o="";continue}o+=n}return t.push(o),t}var r2=[{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)=>hf(e,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:[]},{path:["border","radiusSizes"],valueKey:"size",cssVarInfix:"border-radius",classes:[]},{path:["dimensions","dimensionSizes"],valueKey:"size",cssVarInfix:"dimension",classes:[]}];function wc(e,t){if(!e||!t)return t;let o=Vu(e),r=Vu(t),n=[];return o.forEach(i=>{r.forEach(s=>{n.push(`$i.trim()} $s.trim()}`)})}),n.join(", ")}function Nte(e,t){if(!e||!t)return;let o={};return Object.entries(t).forEach(([r,n])=>{typeof n=="string"&&(o[r]=wc(e,n)),typeof n=="object"&&(o[r]={},Object.entries(n).forEach(([i,s])=>{o[r][i]=wc(e,s)}))}),o}function n2(e,t){return e.includes(",")?Vu(e).map(n=>n+t).join(","):e+t}function hj(e,t){let o=`.is-style-$e}`;if(!t)return o;let r=/[^\s:]+/,n=s=>s+o;return Vu(t).map(s=>s.replace(r,n)).join(",")}function Lte(e,t){let o=`.is-style-$e}`,r=Vu(t).map(n=>{let i=n.trim(),s=`$o} `;return i.startsWith(s)?i.slice(s.length):i});return hj(e,r.join(","))}function o4e(e,t){if(!e||!t)return e;if(typeof e=="object"&&"ref"in e&&e?.ref){let o=(0,Mte.getCSSValueFromRawStyle)($o(t,e.ref));return typeof o=="object"&&o!==null&&"ref"in o&&o?.ref?void 0:o===void 0?e:o}return e}function r4e(e,t){if(!e||!t||!Array.isArray(t))return e;let o=t.find(r=>r?.name===e);return o?.href?o?.href:e}function _m(e,t){if(!e||!t)return e;let o=o4e(e,t);return typeof o=="object"&&o!==null&&"url"in o&&o?.url?{...o,url:r4e(o.url,t?._links?.["wp:theme-file"])}:o}function Dte(e,t,o=[],r="slug",n){let i=[t?$o(e,["blocks",t,...o]):void 0,$o(e,o)].filter(Boolean);for(let s of i)if(s){let a=["custom","theme","default"];for(let l of a){let u=s[l];if(u){let d=u.find(f=>f[r]===n);if(d)return r==="slug"||Dte(e,t,o,"slug",d.slug)[r]===d[r]?d:void 0}}}}function n4e(e,t,o,[r,n]=[]){let i=r2.find(a=>a.cssVarInfix===r);if(!i||!e.settings)return o;let s=Dte(e.settings,t,i.path,"slug",n);if(s){let{valueKey:a}=i,l=s[a];return ol(e,t,l)}return o}function i4e(e,t,o,r=[]){let n=(t?$o(e?.settings??{},["blocks",t,"custom",...r]):void 0)??$o(e?.settings??{},["custom",...r]);return n?ol(e,t,n):o}function ol(e,t,o){if(!o||typeof o!="string")if(typeof o=="object"&&o!==null&&"ref"in o&&typeof o.ref=="string"){let u=$o(e,o.ref);if(!u||typeof u=="object"&&"ref"in u)return u;o=u}else return o;let r="var:",n="var(--wp--",i=")",s;if(o.startsWith(r))s=o.slice(r.length).split("|");else if(o.startsWith(n)&&o.endsWith(i))s=o.slice(n.length,-i.length).split("--");else return o;let[a,...l]=s;return a==="preset"?n4e(e,t,o,l):a==="custom"?i4e(e,t,o,l):o}var Wte=c(i2(),1);function jte(e){return Object.prototype.toString.call(e)==="[object Object]"}function Hte(e){var t,o;return jte(e)===!1?!1:(t=e.constructor,t===void 0?!0:(o=t.prototype,!(jte(o)===!1||o.hasOwnProperty("isPrototypeOf")===!1)))}function s2(e,t){return(0,Wte.default)(e,t,{isMergeableObject:Hte,customMerge:o=>{if(o==="backgroundImage")return(r,n)=>n??r}})}var es=c(ce(),1),t1=c(F_(),1),Jte=c(ee(),1);function ha(e,t="root",o={}){if(!t)return null;let{fallback:r=!1}=o,{name:n,selectors:i,supports:s}=e,a=i&&Object.keys(i).length>0,l=Array.isArray(t)?t.join("."):t,u=null;if(a&&i.root?u=i?.root:s?.__experimentalSelector?u=s.__experimentalSelector:u=".wp-block-"+n.replace("core/","").replace("/","-"),l==="root")return u;let d=Array.isArray(t)?t:t.split(".");if(d.length===1){let p=r?u:null;if(a)return $o(i,`$l}.root`,null)||$o(i,l,null)||p;let m=s?$o(s,`$l}.__experimentalSelector`,null):void 0;return m?wc(u,m):p}let f;return a&&(f=$o(i,l,null)),f||(r?ha(e,d[0],o):null)}function v4e(e=[]){let t={r:[],g:[],b:[],a:[]};return e.forEach(o=>{let r=Go(o).toRgb();t.r.push(r.r/255),t.g.push(r.g/255),t.b.push(r.b/255),t.a.push(r.a)}),t}function Ute(e){return`$e}{filter:none}`}function Gte(e,t){return`$e}{filter:url(#$t})}`}function $te(e,t){let o=v4e(t);return` 30 <svg 31 xmlns:xlink="http://www.w3.org/1999/xlink" 32 viewBox="0 0 0 0" 33 width="0" 34 height="0" 35 focusable="false" 36 role="none" 37 aria-hidden="true" 38 style="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;" 39 > 40 <defs> 41 <filter id="$e}"> 42 <!-- 43 Use sRGB instead of linearRGB so transparency looks correct. 44 Use perceptual brightness to convert to grayscale. 45 --> 46 <feColorMatrix color-interpolation-filters="sRGB" type="matrix" values=" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "></feColorMatrix> 47 <!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. --> 48 <feComponentTransfer color-interpolation-filters="sRGB"> 49 <feFuncR type="table" tableValues="$o.r.join(" ")}"></feFuncR> 50 <feFuncG type="table" tableValues="$o.g.join(" ")}"></feFuncG> 51 <feFuncB type="table" tableValues="$o.b.join(" ")}"></feFuncB> 52 <feFuncA type="table" tableValues="$o.a.join(" ")}"></feFuncA> 53 </feComponentTransfer> 54 <!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. --> 55 <feComposite in2="SourceGraphic" operator="in"></feComposite> 56 </filter> 57 </defs> 58 </svg>`}function j_(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([0-9])([a-zA-Z])/g,"$1-$2").replace(/([a-zA-Z])([0-9])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function bj(e){if(!e)return;let t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--$t[1]})`:e}function _4e(e){if(!e)return null;let t=typeof e=="string";return{top:t?e:e?.top,left:t?e:e?.left}}function a2(e,t="0"){let o=_4e(e);if(!o)return null;let r=bj(o?.top)||t,n=bj(o?.left)||t;return r===n?r:`$r} $n}`}var Yte={backgroundSize:"cover",backgroundPosition:"50% 50%"};function w4e(e){return typeof e=="object"&&e!==null&&"url"in e&&!!e.url}function Kte(e){if(!e||!w4e(e.backgroundImage))return;let t;return e?.backgroundSize||(t={backgroundSize:Yte.backgroundSize}),e?.backgroundSize==="contain"&&!e?.backgroundPosition&&(t={backgroundPosition:Yte.backgroundPosition}),t}var qte={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",rules:{"margin-block-start":"0"}},{selector:" > :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",rules:{"margin-block-start":"0"}},{selector:" > :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:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};var Zte={mobile:"480px",tablet:"782px"},Xte=/^(\d+|\d*\.\d+)(px|em|rem)$/,k4e=16;function x4e(e){return"mobile"in e||"tablet"in e}function S4e(e){return!e||typeof e!="object"?{}:x4e(e)?e:e.settings?.viewport??{}}function C4e(e){return typeof e=="string"&&Xte.test(e.trim())}function yj(e){if(typeof e=="number")return e;if(typeof e!="string")return;let t=e.trim().match(Xte);if(!t)return;let o=Number.parseFloat(t[1]);return t[2]==="px"?o:o*k4e}function vj(e){let t=S4e(e),o={},r={};Object.keys(Zte).forEach(a=>{let l=a,u=t[l],d=yj(u);d!==void 0&&C4e(u)&&(o[l]=u.trim(),r[l]=d)});let n=Object.keys(o);if(!n.length)return{...Zte};if(n.length===1)return o;let i=o.mobile,s=o.tablet;return r.mobile>=r.tablet?{mobile:i}:{mobile:i,tablet:s}}function e1(e){let t=vj(e),o={};return t.mobile&&(o["@mobile"]=`@media (width <= $t.mobile})`),t.tablet&&(o["@tablet"]=t.mobile?`@media ($t.mobile} < width <= $t.tablet})`:`@media (width <= $t.tablet})`),o}var E4e={button:"wp-element-button",caption:"wp-element-caption"},T4e={__experimentalBorder:"border",color:"color",dimensions:"dimensions",spacing:"spacing",typography:"typography"},eoe={"core/button":[":hover",":focus",":focus-visible",":active"],"core/navigation-link":[":hover",":focus",":focus-visible",":active"]},R4e={link:[":link",":any-link",":visited",":hover",":focus",":focus-visible",":active"],button:[":link",":any-link",":visited",":hover",":focus",":focus-visible",":active"]};function B4e(e="*",t={}){return r2.reduce((o,{path:r,cssVarInfix:n,classes:i})=>{if(!i)return o;let s=$o(t,r,[]);return["default","theme","custom"].forEach(a=>{s[a]&&s[a].forEach(({slug:l})=>{i.forEach(({classSuffix:u,propertyName:d})=>{let f=`.has-$j_(l)}-$u}`,p=e?`:where($e})$f}`:f,m=`var(--wp--preset--$n}--$j_(l)})`;o+=`$p}{$d}: $m} !important;}`})})}),o},"")}var I4e=(e,t,o)=>{if(o!=="core/paragraph"||(t?.blocks?.["core/paragraph"]?.typography?.textIndent??t?.typography?.textIndent??"subsequent")!=="all")return e;let i=".wp-block-paragraph + .wp-block-paragraph",s=".wp-block-paragraph";if(i in e){let a=e[i],l={...e};return delete l[i],l[s]=a,l}return e},P4e=(e,t)=>{let o=".wp-block-button";if(!(o in e))return e;let r={...e};return r[o]=r[o].map(n=>{let i=n.match(/^width:\s*(.+)$/);if(!i)return n;let s=i[1],a=null;s.endsWith("%")&&(a=parseFloat(s));let l="var(--wp--preset--dimension--";if(a===null&&s.startsWith(l)&&s.endsWith(")")){let u=s.slice(l.length,-1),d={...t?.dimensions?.dimensionSizes??{},...t?.blocks?.["core/button"]?.dimensions?.dimensionSizes??{}};for(let f of Object.values(d))if(Array.isArray(f)){for(let p of f)if(p.slug===u&&typeof p.size=="string"&&p.size.endsWith("%")){a=parseFloat(p.size);break}if(a!==null)break}}return a===null||isNaN(a)?n:`width: calc($a} * 1% - (var(--wp--style--block-gap, 0.5em) * (1 - $a} / 100)))`}),r},O4e=(e,t)=>{let o={};return Object.entries(e).forEach(([r,n])=>{if(r==="root"||!t?.[r])return;let i=typeof n=="string";if(!i&&typeof n=="object"&&n!==null&&Object.entries(n).forEach(([s,a])=>{if(s==="root"||!t?.[r][s])return;let l={[r]:{[s]:t[r][s]}},u=c2(l);o[a]=[...o[a]||[],...u],delete t[r][s]}),i||typeof n=="object"&&n!==null&&"root"in n){let s=i?n:n.root,a={[r]:t[r]},l=c2(a);o[s]=[...o[s]||[],...l],delete t[r]}}),o};function c2(e={},t="",o,r={},n=!1){let i=Fu===t,s=Object.entries(es.__EXPERIMENTAL_STYLE_PROPERTY).reduce((l,[u,{value:d,properties:f,useEngine:p,rootOnly:m}])=>{if(m&&!i)return l;let g=d;if(g[0]==="elements"||p)return l;let h=$o(e,g);if(u==="--wp--style--root--padding"&&(typeof h=="string"||!o))return l;if(f&&typeof h!="string")Object.entries(f).forEach(b=>{let[v,y]=b;if(!$o(h,[y],!1))return;let _=v.startsWith("--")?v:j_(v);l.push(`$_}: ${(0,t1.getCSSValueFromRawStyle)($o(h,[y]))}`)});else if($o(e,g,!1)){let b=u.startsWith("--")?u:j_(u);l.push(`$b}: ${(0,t1.getCSSValueFromRawStyle)($o(e,g))}`)}return l},[]);return e.background&&(e.background?.backgroundImage&&(e.background.backgroundImage=_m(e.background.backgroundImage,r)),!i&&e.background?.backgroundImage?.id&&(e={...e,background:{...e.background,...Kte(e.background)}})),(0,t1.getCSSRules)(e).forEach(l=>{if(i&&(o||n)&&l.key.startsWith("padding"))return;let u=l.key.startsWith("--")?l.key:j_(l.key),d=_m(l.value,r);u==="font-size"&&(d=hf({name:"",slug:"",size:d},r?.settings)),u==="aspect-ratio"&&s.push("min-height: unset"),s.push(`$u}: $d}`)}),s}function toe({layoutDefinitions:e=qte,style:t,selector:o,hasBlockGapSupport:r,hasFallbackGapSupport:n,fallbackGapValue:i}){let s="",a=t?.spacing?.blockGap,l=r?a2(a):"";n&&(o===Fu?l=l||"0.5em":!r&&i&&(l=i));let u=r&&a&&typeof a!="string"?a2(a.top):l;if(l&&e&&(Object.values(e).forEach(({className:d,name:f,spacingStyles:p})=>{if(!r&&f!=="flex"&&f!=="grid")return;let m=["default","constrained"].includes(f)?u:l;p?.length&&p.forEach(g=>{let h=[];if(g.rules&&Object.entries(g.rules).forEach(([b,v])=>{h.push(`$b}: $v||m}`)}),h.length){let b="";r?b=o===Fu?`:root :where(.$d})$g?.selector||""}`:`:root :where($o}-$d})$g?.selector||""}`:b=o===Fu?`:where(.$d}$g?.selector||""})`:`:where($o}.$d}$g?.selector||""})`,s+=`$b} { $h.join("; ")}; }`}})}),o===Fu&&r&&(s+=`$QC} { --wp--style--block-gap: $l}; }`)),o===Fu&&e){let d=["block","flex","grid"];Object.values(e).forEach(({className:f,displayMode:p,baseStyles:m})=>{p&&d.includes(p)&&(s+=`$o} .$f} { display:$p}; }`),m?.length&&m.forEach(g=>{let h=[];if(g.rules&&Object.entries(g.rules).forEach(([b,v])=>{h.push(`$b}: $v}`)}),h.length){let b=`.$f}$g?.selector||""}`;s+=`$b} { $h.join("; ")}; }`}})})}return s}var A4e=["border","color","dimensions","spacing","typography","filter","outline","shadow","background"];function M4e(e,t){return l2(e,void 0,t)}function l2(e,t,o){if(!e)return{};let r=Object.entries(e),n=t?eoe[t]??[]:[],s=r.filter(([a])=>A4e.includes(a)||n.includes(a)||o[a]).map(([a,l])=>[a,JSON.parse(JSON.stringify(l))]);return Object.fromEntries(s)}function Qte(e){let{styles:t,selector:o,featureSelectors:r,name:n,elementName:i,mediaQuery:s,variationName:a}=e,l=n?eoe[n]??[]:R4e[i??""]??[];return l.length?l.flatMap(u=>{let d=t?.[u];return!d||typeof d!="object"?[]:[{styles:JSON.parse(JSON.stringify(d)),selector:o,selectorSuffix:u,mediaQuery:s,featureSelectors:r&&typeof r!="string"?r:void 0,name:n,elementName:i,variationName:a}]}):[]}function N4e(e,t){let{styles:o,selector:r,fallbackGapValue:n,featureSelectors:i,hasLayoutSupport:s,layoutHasBlockGapSupport:a,layoutSelector:l,name:u,elementName:d,isStyleVariation:f,variationName:p}=e;return!u&&!d?[]:Object.entries(t).flatMap(([m,g])=>{let h=o?.[m];return!h||typeof h!="object"?[]:[{styles:JSON.parse(JSON.stringify(h)),selector:r,mediaQuery:g,featureSelectors:i&&typeof i!="string"?i:void 0,fallbackGapValue:n,hasLayoutSupport:s,name:u,elementName:d,isStyleVariation:f,variationName:p,layoutSelector:l,layoutHasBlockGapSupport:a}]})}function _j(e,t){let o={...e?.elements??{}};return Object.keys(t).forEach(r=>{Object.entries(e?.[r]?.elements??{}).forEach(([n,i])=>{o[n]={...o[n]??{},[r]:i}})}),o}var L4e=(e,t)=>{let o=[];if(!e?.styles)return o;let r=e1(e),n=M4e(e.styles,r);return n&&o.push({styles:n,selector:Fu,skipSelectorWrapper:!0}),Object.entries(es.__EXPERIMENTAL_ELEMENTS).forEach(([i,s])=>{e.styles?.elements?.[i]&&o.push({styles:e.styles?.elements?.[i]??{},selector:s,elementName:i,skipSelectorWrapper:!E4e[i]})}),Object.entries(e.styles?.blocks??{}).forEach(([i,s])=>{let a=l2(s,i,r),l=s,u=[],d=[];l?.variations&&Object.entries(l.variations).forEach(([f,p])=>{let m=p,g=l2(m,i,r);m?.css&&(g.css=m.css);let h=typeof t!="string"?t[i]?.styleVariationSelectors?.[f]:void 0;if(h&&typeof t!="string"){let b=t[i];d.push({styles:g,selector:h,featureSelectors:b?.featureSelectors,fallbackGapValue:b?.fallbackGapValue,hasLayoutSupport:b?.hasLayoutSupport,isStyleVariation:!0,variationName:f,layoutSelector:h+b.selector,layoutHasBlockGapSupport:!0,name:i})}Object.entries(_j(m,r)).forEach(([b,v])=>{v&&es.__EXPERIMENTAL_ELEMENTS[b]&&u.push({styles:v,selector:wc(h,es.__EXPERIMENTAL_ELEMENTS[b]),elementName:b,isStyleVariation:!0})}),Object.entries(m?.blocks??{}).forEach(([b,v])=>{let y=typeof t!="string"?wc(h,t[b]?.selector):void 0,_=typeof t!="string"?wc(h,t[b]?.duotoneSelector):void 0,w=typeof t!="string"?Nte(h,t[b]?.featureSelectors??{}):void 0,k=l2(v,b,r);v?.css&&(k.css=v.css),!(!y||typeof t=="string")&&(u.push({selector:y,name:b,isStyleVariation:!0,duotoneSelector:_,featureSelectors:w,fallbackGapValue:t[b]?.fallbackGapValue,hasLayoutSupport:t[b]?.hasLayoutSupport,styles:k}),Object.entries(_j(v,r)).forEach(([x,C])=>{C&&es.__EXPERIMENTAL_ELEMENTS[x]&&u.push({styles:C,selector:wc(y,es.__EXPERIMENTAL_ELEMENTS[x]),elementName:x,isStyleVariation:!0})}))})}),typeof t!="string"&&t?.[i]?.selector&&o.push({duotoneSelector:t[i].duotoneSelector,fallbackGapValue:t[i].fallbackGapValue,hasLayoutSupport:t[i].hasLayoutSupport,selector:t[i].selector,styles:a,featureSelectors:t[i].featureSelectors,name:i}),o.push(...d),Object.entries(_j(l,r)).forEach(([f,p])=>{typeof t!="string"&&p&&t?.[i]&&es.__EXPERIMENTAL_ELEMENTS[f]&&o.push({styles:p,selector:t[i]?.selector.split(",").map(m=>es.__EXPERIMENTAL_ELEMENTS[f].split(",").map(h=>m+" "+h)).join(","),elementName:f})}),o.push(...u)}),o},D4e=(e,t)=>{let o=[];if(!e?.settings)return o;let r=s=>{let a={};return r2.forEach(({path:l})=>{let u=$o(s,l,!1);u!==!1&&(a=Pte(a,l,u))}),a},n=r(e.settings),i=e.settings?.custom;return(Object.keys(n).length>0||i)&&o.push({presets:n,custom:i,selector:QC}),Object.entries(e.settings?.blocks??{}).forEach(([s,a])=>{let l=a.custom;if(typeof t=="string"||!t[s])return;let u=r(a);(Object.keys(u).length>0||l)&&o.push({presets:u,custom:l,selector:t[s]?.selector,featureSelectors:t[s]?.featureSelectors})}),o};function V4e(e,{tree:t,useRootPaddingAlign:o,disableLayoutStyles:r,hasBlockGapSupport:n,hasFallbackGapSupport:i,disableRootPadding:s}){let{selector:a,selectorSuffix:l,mediaQuery:u,duotoneSelector:d,styles:f,fallbackGapValue:p,hasLayoutSupport:m,featureSelectors:g,layoutSelector:h,layoutHasBlockGapSupport:b,skipSelectorWrapper:v,name:y,variationName:_}=e,w="",k=l?n2(a,l):a;if(g&&typeof g!="string"){let R=O4e(g,f);R=I4e(R,t.settings,y),R=P4e(R,t.settings),Object.entries(R).forEach(([S,I])=>{if(I.length){let O=_?Lte(_,S):S;O=l?n2(O,l):O;let A=I.join(";");w+=`:root :where($O}){$A};}`}})}if(d){let R={};f?.filter&&(R.filter=f.filter,delete f.filter);let S=c2(R);S.length&&(w+=`$d}{$S.join(";")};}`)}let x=h??k;!r&&(Fu===x||m)&&(w+=toe({style:f,selector:x,hasBlockGapSupport:b??n,hasFallbackGapSupport:i,fallbackGapValue:p}));let E=c2(f,k,o,t,s);if(E?.length){let R=v?k:`:root :where($k})`;w+=`$R}{$E.join(";")};}`}return f?.css&&(w+=f2(f.css,`:root :where($k})`)),u&&w?`$u}{$w}}`:w}var u2=(e,t,o,r,n=!1,i=!1,s={})=>{let a={blockGap:!0,blockStyles:!0,layoutStyles:!0,marginReset:!0,presets:!0,rootPadding:!0,variationStyles:!1,...s},l=e,u=L4e(l,t),d=D4e(l,t),f=l?.settings?.useRootPaddingAwareAlignments,{contentSize:p,wideSize:m}=l?.settings?.layout||{},g=a.marginReset||a.rootPadding||a.layoutStyles,h="";if(a.presets&&(p||m)&&(h+=`$QC} {`,h=p?h+` --wp--style--global--content-size: $p};`:h,h=m?h+` --wp--style--global--wide-size: $m};`:h,h+="}"),g&&(h+=":where(body) {margin: 0;",a.rootPadding&&f&&(h+=`padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) } 59 .has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); } 60 .has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); } 61 .has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; } 62 .has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0; 63 `),h+="}"),a.blockStyles){let b=e1(e);u.forEach(v=>{if(v.isStyleVariation&&!a.variationStyles)return;let y=N4e(v,b);[v,...y,...Qte(v),...y.flatMap(Qte)].forEach(_=>{h+=V4e(_,{tree:l,useRootPaddingAlign:f,disableLayoutStyles:n,hasBlockGapSupport:o,hasFallbackGapSupport:r,disableRootPadding:i})})})}if(a.layoutStyles&&(h=h+".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",h=h+".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",h=h+".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"),a.blockGap&&o){let b=a2(l?.styles?.spacing?.blockGap)||"0.5em";h=h+`:root :where(.wp-site-blocks) > * { margin-block-start: $b}; margin-block-end: 0; }`,h=h+":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }",h=h+":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"}return a.presets&&d.forEach(({selector:b,presets:v})=>{(Fu===b||QC===b)&&(b="");let y=B4e(b,v);y.length>0&&(h+=y)}),h};var F4e=(e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;let o={root:t};return Object.entries(T4e).forEach(([r,n])=>{let i=ha(e,r);i&&(o[n]=i)}),o},d2=(e,t)=>{let{getBlockStyles:o}=(0,Jte.select)(es.store),r={};return e.forEach(n=>{let i=n.name,s=ha(n);if(!s)return;let a=ha(n,"filter.duotone");if(!a){let g=ha(n),h=(0,es.getBlockSupport)(n,"color.__experimentalDuotone",!1);typeof h=="string"&&g&&(a=wc(g,h))}let l=!!n?.supports?.layout||!!n?.supports?.__experimentalLayout,u=n?.supports?.spacing?.blockGap,d=typeof u=="object"&&!Array.isArray(u)?u.__experimentalDefault:void 0,f=o(i),p={};f?.forEach(g=>{let h=t?`-$t}`:"",b=`$g.name}$h}`,v=hj(b,s);p[b]=v});let m=F4e(n,s);r[i]={duotoneSelector:a??void 0,fallbackGapValue:d,featureSelectors:Object.keys(m).length?m:void 0,hasLayoutSupport:l,name:i,selector:s,styleVariationSelectors:f?.length?p:void 0}}),r};function f2(e,t){let o="";return!e||e.trim()===""||e.split("&").forEach(n=>{if(!n||n.trim()==="")return;if(!n.includes("{"))o+=`:root :where($t}){$n.trim()}}`;else{let s=n.replace("}","").split("{");if(s.length!==2)return;let[a,l]=s,u=a.match(/([>+~\s]*::[a-zA-Z-]+)/),d=u?u[1]:"",f=u?a.replace(d,"").trim():a.trim(),p;f===""?p=t:p=a.startsWith(" ")?wc(t,f):n2(t,f),o+=`:root :where($p})$d}{$l.trim()}}`}}),o}function p2(e,t,o,{resolveRefs:r=!0}={}){if(!e?.styles?.blocks?.[t]?.variations?.[o])return;let n=s=>{Object.keys(s).forEach(a=>{let l=s[a];if(typeof l=="object"&&l!==null)if(l.ref!==void 0)if(typeof l.ref!="string"||l.ref.trim()==="")delete s[a];else{let u=$o(e,l.ref);u!=null?s[a]=u:delete s[a]}else n(l),Object.keys(l).length===0&&delete s[a]})},i=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[o]));return r&&n(i),i}var xj="default";function ioe(e){let t=e?.viewport,o=e?.pseudoState;return(!t||t===xj)&&(!o||o===xj)}function z4e(e){return ioe(e)?[]:[e.viewport,e.pseudoState].filter(t=>!!t&&t!==xj)}function j4e(e,t){let o=z4e(t);return o.length?$o(e,o):e}var H4e=new Set(["blocks","variations","css"]),wj=Object.freeze({value:{},sources:{}}),W4e={root:{layer:"root"},element:{layer:"element"},block:{layer:"block"},blockVariation:{layer:"blockVariation"}};function wm(e){let t=W4e[e];return t?{...t}:null}function km(e,t){return!e||!t?null:{styles:e,source:t}}function U4e(e){return e.join(".")}function G4e(e){return{...e}}function soe(e){return e===""||e===null||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0}function kj(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.ref=="string"}function xm(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let o of Object.keys(e))if(!H4e.has(o)){if(o==="elements"){e.elements&&typeof e.elements=="object"&&(t.elements=e.elements);continue}soe(e[o])||(t[o]=e[o])}return Object.keys(t).length===0?null:t}var ooe=new Set(["backgroundImage"]);function aoe(e,t,o,r,n,i=[]){if(!t||typeof t!="object"||Array.isArray(t))return e;for(let s of Object.keys(t)){let a=t[s];if(soe(a))continue;if(kj(a)){if(a.ref.trim()==="")continue;let u=$o(o,a.ref);if(u==null||kj(u))continue;a=u}let l=[...i,s];if(!ooe.has(s)&&a!==null&&typeof a=="object"&&!Array.isArray(a)&&!kj(a)){let u=e[s]&&typeof e[s]=="object"&&!Array.isArray(e[s])?e[s]:{};e[s]=aoe({...u},a,o,r,n,l)}else e[s]=ooe.has(s)&&a!==null&&typeof a=="object"&&!Array.isArray(a)?{...a}:a,r&&n&&(n[U4e(l)]=G4e(r))}return e}function m2(e,t){if(!e)return null;let o=j4e(e,t);return o&&typeof o=="object"&&!Array.isArray(o)?o:null}var $4e=["color.background","color.gradient","background","spacing","dimensions","border","shadow","filter"];function Y4e(e){return e.startsWith("elements.")?!1:$4e.some(t=>e===t||e.startsWith(`$t}.`))}function loe(e,t){if(!e||typeof e!="object")return;let[o,...r]=t;if(r.length===0){delete e[o];return}let n=e[o];n&&typeof n=="object"&&(loe(n,r),Object.keys(n).length===0&&delete e[o])}function K4e(e,t){for(let o of Object.keys(t))t[o].layer==="root"&&Y4e(o)&&(loe(e,o.split(".")),delete t[o])}function q4e(e,t,o){let r=e?.background?.backgroundImage;if(!r)return;let n=_m(r,{...t,_links:o??void 0});n!==void 0&&(e.background.backgroundImage=n)}function roe(e,{blockName:t,variationName:o=null,elements:r=null,viewport:n=null,pseudoState:i=null}={}){if(!e||!e.styles||!t)return wj;let s=e.styles,a={viewport:n,pseudoState:i},l=s,u=s.blocks?.[t]??null,d=(r??[]).map(b=>s.elements?.[b]??null).filter(b=>!!b),f=o?p2(e,t,o)??null:null,p=[km(xm(l),wm("root")),...d.map(b=>km(xm(b),wm("element"))),u?km(xm(u),wm("block")):null,f?km(xm(f),wm("blockVariation")):null];ioe(a)||p.push(km(xm(m2(l,a)),wm("root")),...d.map(b=>km(xm(m2(b,a)),wm("element"))),u?km(xm(m2(u,a)),wm("block")):null,f?km(xm(m2(f,a)),wm("blockVariation")):null);let m=p.filter(Boolean);if(m.length===0)return wj;let g={},h=m.reduce((b,v)=>aoe(b,v.styles,e,v.source,g),{});return K4e(h,g),q4e(h,e,e._links??null),{value:h,sources:g}}var Z4e={},noe=new WeakMap;function coe(e,t={}){let o=e?.styles;if(!o||typeof o!="object")return roe(e,t);let r=noe.get(o);r||(r=new WeakMap,noe.set(o,r));let n=e?._links??Z4e,i=r.get(n);i||(i=new Map,r.set(n,i));let s=`$t.elements?.join(",")??""}:$t.viewport??""}:$t.pseudoState??""}`,a=(t.blockName||"")+""+(t.variationName||"")+""+s;if(i.has(a))return i.get(a);let l=roe(e,t);return i.set(a,l),l}var uoe=c(mI(),1),{lock:doe,unlock:Hvt}=(0,uoe.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/global-styles-engine");var Lo={};doe(Lo,{getResponsiveMediaQueries:e1,getViewportBreakpoints:vj,getViewportBreakpointValueInPixels:yj,getDuotoneFilter:$te,getDuotoneStylesheet:Gte,getDuotoneUnsetStylesheet:Ute,resolveStyle:coe,getVariationStyle:p2});var g2=c(Z(),1);var mn={desktop:{label:(0,g2.__)("Desktop"),icon:d7,key:"desktop"},tablet:{label:(0,g2.__)("Tablet"),icon:Zz,key:"tablet"},mobile:{label:(0,g2.__)("Mobile"),icon:EC,key:"mobile"}},Sj=Object.entries(mn);var h2=c(ce(),1),foe=c(Bo(),1);function Ue(e,t,o){let r=Array.isArray(t)?[...t]:[t],n=Array.isArray(e)?[...e]:{...e},i=r.pop(),s=n;for(let a of r){let l=s[a];s[a]=s=Array.isArray(l)?[...l]:{...l}}return s[i]=o,n}var bf=(e,t,o)=>{let r=Array.isArray(t)?t:t.split("."),n=e;return r.forEach(i=>{n=n?.[i]}),n??o};var X4e=["color","border","dimensions","typography","spacing"],Q4e={"color.palette":e=>e.colors,"color.gradients":e=>e.gradients,"color.custom":e=>e.disableCustomColors===void 0?void 0:!e.disableCustomColors,"color.customGradient":e=>e.disableCustomGradients===void 0?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>e.fontSizes,"typography.customFontSize":e=>e.disableCustomFontSizes===void 0?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(e.enableCustomUnits!==void 0)return e.enableCustomUnits===!0?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},J4e={"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"},eFe=e=>J4e[e]||e;function poe(e,t,...o){let r=Jt(e,t),n=[];if(t){let i=t;do{let s=Jt(e,i);(0,h2.hasBlockSupport)(s,"__experimentalSettings",!1)&&n.push(i)}while(i=e.blocks.parents.get(i))}return o.map(i=>{if(X4e.includes(i)){console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");return}let s=(0,foe.applyFilters)("blockEditor.useSetting.before",void 0,i,t,r);if(s!==void 0)return s;let a=eFe(i);for(let d of n){let f=ba(e,d);if(s=bf(f.settings?.blocks?.[r],a)??bf(f.settings,a),s!==void 0)break}let l=yf(e);if(s===void 0&&r&&(s=bf(l.__experimentalFeatures?.blocks?.[r],a)),s===void 0&&(s=bf(l.__experimentalFeatures,a)),s!==void 0)return h2.__EXPERIMENTAL_PATHS_WITH_OVERRIDE[a]?s.custom??s.theme??s.default:s;let u=Q4e[a]?.(l);return u!==void 0?u:a==="typography.dropCap"?!0:void 0})}var{isContentBlock:Cj,editableRootKey:tFe}=K(Sm.privateApis),{getViewportBreakpoints:oFe}=K(Lo);function moe(e,t){return t===mn.desktop.key?!0:oFe(yf(e)?.__experimentalFeatures?.viewport)[t]!==void 0}function rFe(e){return e.isBlockInterfaceHidden}function nFe(e){return e?.lastBlockInserted?.clientIds}function iFe(e,t){return e.blocks.byClientId.get(t)}var sFe=(e,t)=>{let o=r=>ts(e,r)==="disabled"&&Wn(e,r).every(o);return Wn(e,t).every(o)};function r1(e,t,o){let r=Cj(t),n=Jt(e,o),i=Cj(n);return Cb(e)===o||i&&r}function goe(e,t){return{clientId:t,innerBlocks:hoe(e,t)}}function hoe(e,t=""){return Wn(e,t).map(o=>goe(e,o))}var Ej=(0,Pn.createSelector)(goe,e=>[e.blocks.order]),Tj=(0,Pn.createSelector)(hoe,e=>[e.blocks.order]);function Rj(e,t,o){let r=Wn(e,t),n=[];for(let i of r){let s=Rj(e,i,o);o(e,i)?n.push({clientId:i,innerBlocks:s}):n.push(...s)}return n}function aFe(e,t){return Rj(e,t,(o,r)=>ts(o,r)!=="disabled")}function lFe(e,t){let o=e.blocks.parents.get(t);for(;o!==void 0;){let r=e.blocks.blockEditingModes.get(o);if(r)return r==="disabled";o=e.blocks.parents.get(o)}return!1}var cFe=(0,Pn.createSelector)((e,t)=>{if(!t||ts(e,t)!=="default"||Aj(e,t)!=="visual"||!(0,Sm.getBlockType)(Jt(e,t))?.[tFe])return!1;let o=Wn(e,vr(e,t));return o.length>1&&o.every(r=>ts(e,r)==="default")},e=>[e.blocks.order,e.blocks.parents,e.blocks.byClientId,e.blocks.blockEditingModes,e.derivedBlockEditingModes,e.blocksMode]);function uFe(e,t){return Rj(e,t,(o,r)=>{if(ts(o,r)!=="disabled")return!0;let n=o.blocks.blockEditingModes.get(r);if(n)return n!=="disabled";if(lFe(o,r))return!1;if(o.editedContentOnlySection){if(b2(o,r))return!1;if(!vf(o,r)||Cj(Jt(o,r)))return!0}return!1})}var dFe=(0,Pn.createSelector)(aFe,e=>[e.blocks.order,e.derivedBlockEditingModes,e.blocks.blockEditingModes]),fFe=(0,Pn.createSelector)(uFe,e=>[e.blocks.order,e.derivedBlockEditingModes,e.blocks.blockEditingModes,e.blocks.parents,e.editedContentOnlySection,...e.editedContentOnlySection?[e.blocks.byClientId,e.blocks.attributes,e.blockListSettings,e.settings]:[]]),pFe=(0,Pn.createSelector)((e,t,o=!1)=>rl(e,t,o).filter(r=>ts(e,r)!=="disabled"),e=>[e.blocks.parents,e.blocks.blockEditingModes,e.settings.templateLock,e.blockListSettings]);function mFe(e){return e.removalPromptData}function gFe(e){return e.blockRemovalRules}var hFe=(0,Pn.createSelector)(e=>{let o=H_(e).reduce((r,n,i)=>(r[n]=i,r),{});return[...e.styleOverrides].sort((r,n)=>{let[,{clientId:i}]=r,[,{clientId:s}]=n,a=o[i]??-1,l=o[s]??-1;return a-l})},e=>[e.blocks.order,e.styleOverrides]);function bFe(e){return e.registeredInserterMediaCategories}var yFe=(0,Pn.createSelector)(e=>{let{settings:{inserterMediaCategories:t,allowedMimeTypes:o,enableOpenverseMediaCategory:r},registeredInserterMediaCategories:n}=e;if(!t&&!n.length||!o)return;let i=t?.map(({name:a})=>a)||[];return[...t||[],...(n||[]).filter(({name:a})=>!i.includes(a))].filter(a=>!r&&a.name==="openverse"?!1:Object.values(o).some(l=>l.startsWith(`$a.mediaType}/`)))},e=>[e.settings.inserterMediaCategories,e.settings.allowedMimeTypes,e.settings.enableOpenverseMediaCategory,e.registeredInserterMediaCategories]),vFe=(0,Pn.createRegistrySelector)(e=>(0,Pn.createSelector)((t,o=null)=>{let{getAllPatterns:r}=K(e(yr)),n=r(),{allowedBlockTypes:i}=yf(t);return n.some(s=>{let{inserter:a=!0}=s;if(!a)return!1;let l=Sb(s);return i1(l,i)&&l.every(({name:u})=>Eb(t,u,o))})},(t,o)=>[...s1(e)(t),...Cm(e)(t,o)])),_Fe=(0,Pn.createRegistrySelector)(e=>(0,Pn.createSelector)((t,o)=>{if(o?.startsWith("core/block/")){let r=parseInt(o.slice(11),10),n=K(e(yr)).getReusableBlocks().find(({id:i})=>i===r);return n?n1(n,t.settings[pf]?.(e)??t.settings.__experimentalUserPatternCategories):null}return[...t.settings.__experimentalBlockPatterns??[],...t.settings[cm]?.(e)??[]].find(({name:r})=>r===o)},(t,o)=>o?.startsWith("core/block/")?[K(e(yr)).getReusableBlocks(),t.settings.__experimentalReusableBlocks]:[t.settings.__experimentalBlockPatterns,t.settings[cm]?.(e)])),wFe=(0,Pn.createRegistrySelector)(e=>(0,Pn.createSelector)(t=>[...K(e(yr)).getReusableBlocks().map(o=>n1(o,t.settings[pf]?.(e)??t.settings.__experimentalUserPatternCategories)),...t.settings.__experimentalBlockPatterns??[],...t.settings[cm]?.(e)??[]].filter((o,r,n)=>r===n.findIndex(i=>o.name===i.name)),s1(e))),kFe=[],xFe=(0,Pn.createRegistrySelector)(e=>t=>{let o=t.settings[yI];return(o?o(e):t.settings.__experimentalReusableBlocks)??kFe});function SFe(e){return e.lastFocus}function CFe(e){return e.isDragging}function EFe(e){return e.expandedBlock}var Bj=(e,t)=>{let o=t,r;for(;!r&&(o=e.blocks.parents.get(o));)zu(e,o)==="contentOnly"&&(r=o);return r};function boe(e,t){let o=Jt(e,t);if(o==="core/block")return!0;let r=ba(e,t),n=o==="core/template-part",i=e.settings?.[dm],s=e.settings?.disableContentOnlyForUnsyncedPatterns,a=e.settings?.disableContentOnlyForTemplateParts;if((!s&&r?.metadata?.patternName||n&&!a)&&!i)return!0;let l=zu(e,t)==="contentOnly",u=vr(e,t),d=zu(e,u)==="contentOnly";return!!(l&&!d)}var vf=(e,t)=>{if(b2(e,t))return;let o=t,r;for(;o=e.blocks.parents.get(o);)boe(e,o)&&(r=o);return r};function _f(e,t){return b2(e,t)||vf(e,t)?!1:boe(e,t)}function TFe(e,t){let o=Jt(e,t);return o!=="core/block"&&o!=="core/template-part"?!1:!(ba(e,t)?.metadata?.patternName&&_f(e,t))}function Ij(e){return e.editedContentOnlySection}function b2(e,t){if(!e.editedContentOnlySection)return!1;if(e.editedContentOnlySection===t)return!0;let o=t;for(;o=e.blocks.parents.get(o);)if(e.editedContentOnlySection===o)return!0;return!1}var RFe=(0,Pn.createSelector)((e,t)=>t.reduce((o,r)=>(o[r]=e.blocks.attributes.get(r)?.style,o),{}),(e,t)=>[...t.map(o=>e.blocks.attributes.get(o)?.style)]);function Cb(e){return e.settings?.[um]}function Pj(e){return e.zoomLevel==="auto-scaled"||e.zoomLevel<100}function BFe(e){return e.zoomLevel}function yoe(e,t,o=""){let r=Array.isArray(t)?t:[t],n=s=>r.every(a=>Eb(e,a,s));if(!o){if(n(o))return o;let s=Cb(e);return s&&n(s)?s:null}let i=o;for(;i!==null&&!n(i);)i=vr(e,i);return i}function IFe(e,t,o){let{allowedBlockTypes:r}=yf(e);if(!i1(Sb(t),r))return null;let i=Sb(t).map(({blockName:s})=>s);return yoe(e,i,o)}function PFe(e){return e.insertionPoint}var OFe=(e,t)=>{let o=Jt(e,t);if(!(0,Sm.hasBlockSupport)(o,"visibility",!0))return!1;let n=e.blocks.attributes.get(t)?.metadata?.blockVisibility;return n===!1?!0:typeof n?.viewport=="object"&&n?.viewport!==null?Object.values(mn).some(i=>moe(e,i.key)&&n?.viewport?.[i.key]===!1):!1},Oj=(e,t)=>{let o=Jt(e,t);return(0,Sm.hasBlockSupport)(o,"visibility",!0)?e.blocks.attributes.get(t)?.metadata?.blockVisibility===!1:!1},AFe=(e,t)=>rl(e,t).some(r=>Oj(e,r)),voe=(e,t,o)=>{if(Oj(e,t))return!0;let n=e.blocks.attributes.get(t)?.metadata?.blockVisibility?.viewport;if(typeof n=="object"&&n!==null&&typeof o=="string"){let i=o.toLowerCase();return moe(e,i)&&n?.[i]===!1}return!1},MFe=(e,t,o)=>rl(e,t).some(n=>voe(e,n,o));function NFe(e){return!!e.hasBlockSpotlight||!!e.editedContentOnlySection}function _oe(e,t){return!!ba(e,t)?.lock?.edit}function woe(e,t){let o=ba(e,t);if(o?.lock?.move!==void 0)return!!o?.lock?.move;let r=vr(e,t);return zu(e,r)==="all"}function koe(e,t){let o=ba(e,t);if(o?.lock?.remove!==void 0)return!!o?.lock?.remove;let r=vr(e,t),n=zu(e,r);return n==="all"||n==="insert"}function LFe(e,t){return _oe(e,t)||woe(e,t)||koe(e,t)}function DFe(e){return e.listViewContentPanelOpen}function VFe(e,t){return e.openedListViewPanels?.allOpen?!0:e.openedListViewPanels?.panels?.[t]===!0}function FFe(e){return e.listViewExpandRevision||0}function zFe(e,t){let o=Jt(e,t);if(o==="core/navigation")return!0;if(!(0,Sm.hasBlockSupport)(o,"listView"))return!1;let r=W_(e,t)?.allowedBlocks;return!(Wn(e,t).length===0&&(r===!1||Array.isArray(r)&&r.length===0))}function jFe(e){return e.viewportModalClientIds}function HFe(e){return e.requestedInspectorTab}var o1={viewport:"default",pseudo:"default"};function xoe(e){return e.styleStateViewport??o1.viewport}function WFe(e){return e.isResponsiveEditing}var Soe=(0,Pn.createSelector)((e,t)=>({...e.selectedBlockStyleState?.clientId===t?e.selectedBlockStyleState.value??o1:o1,viewport:xoe(e)}),e=>[e.styleStateViewport,e.selectedBlockStyleState]);function UFe(e,t){let o=Soe(e,t);return o.viewport!==o1.viewport||o.pseudo!==o1.pseudo}function GFe(e,t){return e.selectedBlockStyleState?.clientId!==t?!0:e.selectedBlockStyleState.showStateOnCanvas??!0}var l1=c(Z(),1),nr={user:"user",theme:"theme",directory:"directory"},a1={full:"fully",unsynced:"unsynced"},Tb={name:"allPatterns",label:(0,l1._x)("All","patterns")},wf={name:"myPatterns",label:(0,l1.__)("My patterns")},U_={name:"core/starter-content",label:(0,l1.__)("Starter content")};function v2(e,t,o){let r=e.name.startsWith("core/block"),n=e.source==="core"||e.source?.startsWith("pattern-directory");return!!(t===nr.theme&&(r||n)||t===nr.directory&&(r||!n)||t===nr.user&&e.type!==nr.user||o===a1.full&&e.syncStatus!==""||o===a1.unsynced&&e.syncStatus!=="unsynced"&&r)}var Em=Symbol("isFiltered"),Coe=new WeakMap,Eoe=new WeakMap;function n1(e,t=[]){return{name:`core/block/$e.id}`,id:e.id,type:nr.user,title:e.title?.raw,categories:e.wp_pattern_category?.map(o=>{let r=t.find(({id:n})=>n===o);return r?r.slug:o}),content:e.content?.raw,syncStatus:e.wp_pattern_sync_status}}function $Fe(e){let t=(0,Toe.parse)(e.content,{__unstableSkipMigrationLogs:!0});return t.length===1&&(t[0].attributes={...t[0].attributes,metadata:{...t[0].attributes.metadata||{},categories:e.categories,patternName:e.name,name:t[0].attributes.metadata?.name||e.title}}),{...e,blocks:t}}function _2(e){let t=Coe.get(e);return t||(t=$Fe(e),Coe.set(e,t)),t}function Sb(e){let t=Eoe.get(e);return t||(t=(0,Roe.parse)(e.content),t=t.filter(o=>o.blockName!==null),Eoe.set(e,t)),t}var Rb=(e,t,o=null)=>typeof e=="boolean"?e:Array.isArray(e)?e.includes("core/post-content")&&t===null?!0:e.includes(t):o,i1=(e,t)=>{if(typeof t=="boolean")return t;let o=[...e];for(;o.length>0;){let r=o.shift();if(!Rb(t,r.name||r.blockName,!0))return!1;r.innerBlocks?.forEach(i=>{o.push(i)})}return!0},s1=e=>t=>[t.settings.__experimentalBlockPatterns,t.settings[pf]?.(e)??t.settings.__experimentalUserPatternCategories,t.settings.__experimentalReusableBlocks,t.settings[cm]?.(e),t.blockPatterns,K(e(yr)).getReusableBlocks()],Cm=()=>(e,t)=>[e.blockListSettings.get(t),e.blocks.byClientId.get(t),e.blocks.order.get(t||""),e.settings.allowedBlockTypes,e.settings.templateLock,ts(e,t),Cb(e),_f(e,t),vf(e,t)];function Boe(e,t){return typeof e=="string"&&typeof t=="string"?e>t:Number(e)>Number(t)}var YFe=(e,t,o)=>(r,n)=>{let i,s;if(typeof e=="function"?(i=e(r),s=e(n)):(i=r[e],s=n[e]),Boe(i,s))return o==="asc"?1:-1;if(Boe(s,i))return o==="asc"?-1:1;let a=t.findIndex(u=>u===r),l=t.findIndex(u=>u===n);return a>l?1:l>a?-1:0};function ju(e,t,o="asc"){return e.concat().sort(YFe(t,e,o))}var{isContentBlock:Nj}=K(Ot.privateApis),KFe=3600*1e3,qFe=24*3600*1e3,ZFe=168*3600*1e3,ci=[],XFe=new Set,Ooe={[Em]:!0};function Jt(e,t){let o=e.blocks.byClientId.get(t);return o?o.name:null}function QFe(e,t){let o=e.blocks.byClientId.get(t);return!!o&&o.isValid}function ba(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function xf(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}var JFe=(0,It.createSelector)((e,t)=>{let o=e.blocks.byClientId.get(t);return o?{...o,attributes:ba(e,t)}:null},(e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]);function e8e(e,t){let o=!t||!S2(e,t)?t||"":"controlled||"+t;return e.blocks.tree.get(o)?.innerBlocks||ci}function t8e(e,t){return(0,ya.default)("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),Ej(e,t)}function o8e(e,t){return(0,ya.default)("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),Tj(e,t)}var Aoe=(0,It.createSelector)((e,t)=>{t=Array.isArray(t)?[...t]:[t];let o=[];for(let n of t){let i=e.blocks.order.get(n);i&&o.push(...i)}let r=0;for(;r<o.length;){let n=o[r],i=e.blocks.order.get(n);i&&o.splice(r+1,0,...i),r++}return o},e=>[e.blocks.order]),H_=e=>Aoe(e,""),r8e=(0,It.createSelector)((e,t)=>{let o=H_(e);if(!t)return o.length;let r=0;for(let n of o)e.blocks.byClientId.get(n).name===t&&r++;return r},e=>[e.blocks.order,e.blocks.byClientId]),Moe=(0,It.createSelector)((e,t)=>{if(!t)return ci;let o=Array.isArray(t)?t:[t],n=H_(e).filter(i=>{let s=e.blocks.byClientId.get(i);return o.includes(s.name)});return n.length>0?n:ci},e=>[e.blocks.order,e.blocks.byClientId]);function n8e(e,t){return(0,ya.default)("wp.data.select( 'core/block-editor' ).__experimentalGetGlobalBlocksByName",{since:"6.5",alternative:"wp.data.select( 'core/block-editor' ).getBlocksByName"}),Moe(e,t)}var w2=(0,It.createSelector)((e,t)=>(Array.isArray(t)?t:[t]).map(o=>xf(e,o)),(e,t)=>(Array.isArray(t)?t:[t]).map(o=>e.blocks.tree.get(o))),i8e=(0,It.createSelector)((e,t)=>w2(e,t).filter(Boolean).map(o=>o.name),(e,t)=>w2(e,t));function s8e(e,t){return Wn(e,t).length}function u1(e){return e.selection.selectionStart}function d1(e){return e.selection.selectionEnd}function a8e(e){return e.selection.selectionStart.clientId}function l8e(e){return e.selection.selectionEnd.clientId}function c8e(e){let t=Rm(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function u8e(e){let{selectionStart:t,selectionEnd:o}=e.selection;return!!t.clientId&&t.clientId===o.clientId}function G_(e){let{selectionStart:t,selectionEnd:o}=e.selection,{clientId:r}=t;return!r||r!==o.clientId?null:r}function d8e(e){let t=G_(e);return t?xf(e,t):null}function vr(e,t){return e.blocks.parents.get(t)??null}var rl=(0,It.createSelector)((e,t,o=!1)=>{let r=[],n=t;for(;n=e.blocks.parents.get(n);)r.push(n);return r.length?o?r:r.reverse():ci},e=>[e.blocks.parents]),Lj=(0,It.createSelector)((e,t,o,r=!1)=>{let n=rl(e,t,r),i=Array.isArray(o)?s=>o.includes(s):s=>o===s;return n.filter(s=>i(Jt(e,s)))},e=>[e.blocks.parents]);function f8e(e,t){let o=t,r;do r=o,o=e.blocks.parents.get(o);while(o);return r}function p8e(e,t){let o=G_(e),r=[...rl(e,t),t],n=[...rl(e,o),o],i,s=Math.min(r.length,n.length);for(let a=0;a<s&&r[a]===n[a];a++)i=r[a];return i}function Dj(e,t,o=1){if(t===void 0&&(t=G_(e)),t===void 0&&(o<0?t=Vj(e):t=Loe(e)),!t)return null;let r=vr(e,t);if(r===null)return null;let{order:n}=e.blocks,i=n.get(r),a=i.indexOf(t)+1*o;return a<0||a===i.length?null:i[a]}function m8e(e,t){return Dj(e,t,-1)}function g8e(e,t){return Dj(e,t,1)}function h8e(e){return e.initialPosition}function Noe(e){let{selectionStart:t,selectionEnd:o}=e.selection,r=t.clientId,n=o.clientId;if(!(!r||!n||r===n)){if(rl(e,n).includes(r))return r;if(rl(e,r).includes(n))return n}}var Tm=(0,It.createSelector)(e=>{let{selectionStart:t,selectionEnd:o}=e.selection;if(!t.clientId||!o.clientId)return ci;if(t.clientId===o.clientId)return[t.clientId];let r=Noe(e);if(r)return[r];let n=vr(e,t.clientId);if(n===null)return ci;let i=Wn(e,n),s=i.indexOf(t.clientId),a=i.indexOf(o.clientId);return s>a?i.slice(a,s+1):i.slice(s,a+1)},e=>[e.blocks.order,e.blocks.parents,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function Rm(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?ci:Tm(e)}var b8e=(0,It.createSelector)(e=>{let t=Rm(e);return t.length?t.map(o=>xf(e,o)):ci},e=>[...Tm.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function Vj(e){return Rm(e)[0]||null}function Loe(e){let t=Rm(e);return t[t.length-1]||null}function y8e(e,t){return Vj(e)===t}function Doe(e,t){return Rm(e).indexOf(t)!==-1}var v8e=(0,It.createSelector)((e,t)=>{let o=t,r=!1;for(;o&&!r;)o=vr(e,o),r=Doe(e,o);return r},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function _8e(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?null:t.clientId||null}function w8e(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?null:o.clientId||null}function k8e(e){if(Noe(e))return!0;let t=u1(e),o=d1(e);return!t.attributeKey&&!o.attributeKey&&typeof t.offset>"u"&&typeof o.offset>"u"}function x8e(e){let t=u1(e),o=d1(e);return!!t&&!!o&&t.clientId===o.clientId&&t.attributeKey===o.attributeKey&&t.offset===o.offset}function S8e(e){return Tm(e).some(t=>{let o=Jt(e,t);return!(0,Ot.getBlockType)(o).merge})}function C8e(e,t){let o=u1(e),r=d1(e);if(o.clientId===r.clientId||!o.attributeKey||!r.attributeKey||typeof o.offset>"u"||typeof r.offset>"u")return!1;let n=vr(e,o.clientId),i=vr(e,r.clientId);if(n!==i)return!1;let s=Wn(e,n),a=s.indexOf(o.clientId),l=s.indexOf(r.clientId),u,d;a>l?(u=r,d=o):(u=o,d=r);let f=t?d.clientId:u.clientId,p=t?u.clientId:d.clientId,m=Jt(e,f);if(!(0,Ot.getBlockType)(m).merge)return!1;let h=xf(e,p);if(h.name===m)return!0;let b=(0,Ot.switchToBlockType)(h,m);return b&&b.length}var E8e=e=>{let t=u1(e),o=d1(e);if(t.clientId===o.clientId||!t.attributeKey||!o.attributeKey||typeof t.offset>"u"||typeof o.offset>"u")return ci;let r=vr(e,t.clientId),n=vr(e,o.clientId);if(r!==n)return ci;let i=Wn(e,r),s=i.indexOf(t.clientId),a=i.indexOf(o.clientId),[l,u]=s>a?[o,t]:[t,o],d=xf(e,l.clientId),f=xf(e,u.clientId),p=d.attributes[l.attributeKey],m=f.attributes[u.attributeKey],g=(0,kf.create)({html:p}),h=(0,kf.create)({html:m});return g=(0,kf.remove)(g,0,l.offset),h=(0,kf.remove)(h,u.offset,h.text.length),[{...d,attributes:{...d.attributes,[l.attributeKey]:(0,kf.toHTMLString)({value:g})}},{...f,attributes:{...f.attributes,[u.attributeKey]:(0,kf.toHTMLString)({value:h})}}]};function Wn(e,t){return e.blocks.order.get(t||"")||ci}function Voe(e,t){let o=vr(e,t);return Wn(e,o).indexOf(t)}function Foe(e,t){let{selectionStart:o,selectionEnd:r}=e.selection;return o.clientId!==r.clientId?!1:!!t&&o.clientId===t}var T8e=(0,It.createSelector)(e=>{let t=new Set;for(let o of Tm(e)){let r=o;for(;(r=e.blocks.parents.get(r))&&!t.has(r);)t.add(r)}return t},e=>Tm.getDependants(e));function zoe(e,t,o=!1){if(!t)return!1;let r=Tm(e);return r.length?o?T8e(e).has(t):r.some(n=>vr(e,n)===t):!1}function joe(e,t,o=!1){return Wn(e,t).some(r=>Fj(e,r)||o&&joe(e,r,o))}function R8e(e,t){if(!t)return!1;let o=Rm(e),r=o.indexOf(t);return r>-1&&r<o.length-1}function B8e(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId!==o.clientId}function I8e(e){return e.isMultiSelecting}function P8e(e){return e.isSelectionEnabled}function Aj(e,t){return e.blocksMode[t]||"visual"}function O8e(e){return e.isTyping}function Hoe(e){return!!e.draggedBlocks.length}function A8e(e){return e.draggedBlocks}function Fj(e,t){return e.draggedBlocks.includes(t)}function M8e(e,t){return Hoe(e)?rl(e,t).some(r=>Fj(e,r)):!1}function N8e(){return(0,ya.default)('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}var L8e=(0,It.createSelector)(e=>{let t,o,{insertionCue:r,selection:{selectionEnd:n}}=e;if(r!==null)return r;let{clientId:i}=n;return i?(t=vr(e,i)||void 0,o=Voe(e,n.clientId)+1):o=Wn(e).length,{rootClientId:t,index:o}},e=>[e.insertionCue,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]);function D8e(e){return e.insertionCue!==null}function V8e(e){return e.template.isValid}function F8e(e){return e.settings.template}function zu(e,t){if(!t)return e.settings.templateLock??!1;let o=W_(e,t)?.templateLock;return o==="contentOnly"&&e.editedContentOnlySection===t?!1:o??!1}var zj=(e,t,o=null)=>{let r,n;if(t&&typeof t=="object"?(r=t,n=t.name):(r=(0,Ot.getBlockType)(t),n=t),!r)return!1;let{allowedBlockTypes:i}=yf(e);if(!Rb(i,n,!0))return!1;let a=(Array.isArray(r.parent)?r.parent:[]).concat(Array.isArray(r.ancestor)?r.ancestor:[]);if(a.length>0){if(a.includes("core/post-content"))return!0;let l=o,u=!1;do{if(a.includes(Jt(e,l))){u=!0;break}l=e.blocks.parents.get(l)}while(l);return u}return!0},f1=(e,t,o=null)=>{if(e.settings.isPreviewMode||!zj(e,t,o))return!1;let r;t&&typeof t=="object"?(r=t,t=r.name):r=(0,Ot.getBlockType)(t);let n=zu(e,o);if(n&&n!=="contentOnly"||jj(e,o))return!1;let i=ts(e,o??""),s=!!_f(e,o),a=s?o:vf(e,o),l=!!a;if(i==="disabled"&&(!l||t!==(0,Ot.getDefaultBlockName)()))return!1;let u=W_(e,o);if(o&&u===void 0)return!1;let d=Nj(t);if(l&&!d||l&&Jt(e,a)==="core/block")return!1;if(l&&(s||i==="contentOnly"||i==="disabled")&&!r1(e,t,o)){let w=(0,Ot.getDefaultBlockName)();if(t===w){if(!Wn(e,o).some(C=>Jt(e,C)===w))return!1}else return!1}let f=Jt(e,o),m=(0,Ot.getBlockType)(f)?.allowedBlocks,g=Rb(m,t);if(g!==!1){let w=u?.allowedBlocks,k=Rb(w,t);k!==null&&(g=k)}let h=r.parent,b=Rb(h,f),v=!0,y=r.ancestor;y&&(v=[o,...rl(e,o)].some(k=>Rb(y,Jt(e,k))));let _=v&&(g===null&&b===null||g===!0||b===!0);return _&&(0,Poe.applyFilters)("blockEditor.__unstableCanInsertBlockType",_,r,o,{getBlock:xf.bind(null,e),getBlockParentsByBlockName:Lj.bind(null,e)})},Eb=(0,It.createRegistrySelector)(e=>(0,It.createSelector)(f1,(t,o,r)=>Cm(e)(t,r)));function z8e(e,t,o=null){return t.every(r=>Eb(e,Jt(e,r),o))}function jj(e,t){return!!t&&Jt(e,t)==="core/html"}function Hj(e,t){if(e.settings.isPreviewMode||jj(e,vr(e,t)))return!1;let o=ba(e,t);if(o===null)return!0;if(o.lock?.remove!==void 0)return!o.lock.remove;let r=vr(e,t),n=zu(e,r);if(n&&n!=="contentOnly")return!1;let i=!!_f(e,r),s=i?r:vf(e,r),a=!!s,l=Nj(Jt(e,t));if(a&&!l||a&&Jt(e,s)==="core/block")return!1;let u=ts(e,r),d=Jt(e,t),f=(0,Ot.getDefaultBlockName)();return a&&(i||d===f||u==="contentOnly")&&!r1(e,Jt(e,t),r)?d===f?Wn(e,r).filter(g=>Jt(e,g)===f).length>1:!1:u!=="disabled"}function Woe(e,t){return t.every(o=>Hj(e,o))}function Uoe(e,t){if(e.settings.isPreviewMode||jj(e,vr(e,t)))return!1;let o=ba(e,t);if(o===null)return!0;if(o.lock?.move!==void 0)return!o.lock.move;let r=vr(e,t);if(zu(e,r)==="all")return!1;let i=!!vf(e,t),s=Nj(Jt(e,t));if(i&&!s)return!1;let a=!!_f(e,r),l=ts(e,r);return i&&(a||l==="contentOnly")&&!r1(e,Jt(e,t),r)?!1:ts(e,r)!=="disabled"}function j8e(e,t){return t.every(o=>Uoe(e,o))}function Goe(e,t){if(e.settings.isPreviewMode)return!1;let o=ba(e,t);if(o===null)return!0;let{lock:r}=o;return!r?.edit}function H8e(e,t){return e.settings.isPreviewMode||!(0,Ot.hasBlockSupport)(t,"lock",!0)?!1:!!e.settings?.canLockBlocks}function k2(e,t){return e.preferences.insertUsage?.[t]??null}var c1=(e,t,o)=>(0,Ot.hasBlockSupport)(t,"inserter",!0)?f1(e,t.name,o):!1,W8e=(e,t)=>o=>{let r=`$t.id}/$o.name}`,{time:n,count:i=0}=k2(e,r)||{};return{...t,id:r,icon:o.icon||t.icon,title:o.title||t.title,description:o.description||t.description,category:o.category||t.category,example:o.hasOwnProperty("example")?o.example:t.example,initialAttributes:{...t.initialAttributes,...o.attributes},innerBlocks:o.innerBlocks,innerContent:o.innerContent,keywords:o.keywords||t.keywords,frecency:x2(n,i),isSearchOnly:o.isSearchOnly}},x2=(e,t)=>{if(!e)return t;let o=Date.now()-e;switch(!0){case o<KFe:return t*4;case o<qFe:return t*2;case o<ZFe:return t/2;default:return t/4}},$oe=(e,{buildScope:t="inserter"})=>o=>{let r=o.name,n=!1;(0,Ot.hasBlockSupport)(o.name,"multiple",!0)||(n=w2(e,H_(e)).some(({name:f})=>f===o.name));let{time:i,count:s=0}=k2(e,r)||{},a={id:r,name:o.name,title:o.title,icon:o.icon,isDisabled:n,frecency:x2(i,s)};if(t==="transform")return a;let l=(0,Ot.getBlockVariations)(o.name,"inserter"),u=(0,Ot.getBlockVariations)(o.name,"block"),d=[...l,...u.filter(f=>o.name==="core/heading"&&["h1","h2","h3","h4","h5","h6"].includes(f.name)).map(f=>({...f,isSearchOnly:!0}))];return{...a,initialAttributes:{},description:o.description,category:o.category,keywords:o.keywords,parent:o.parent,ancestor:o.ancestor,variations:d,example:o.example,utility:1}},U8e=(e,t)=>o=>{let r=`$t.id}/$o.name}`,{time:n,count:i=0}=k2(e,r)||{};return{...t,id:r,icon:o.icon||t.icon,title:o.title||t.title,frecency:x2(n,i),variationName:o.name}},G8e=(0,It.createRegistrySelector)(e=>(0,It.createSelector)((t,o=null,r=Ooe)=>{let n=m=>{let g=m.wp_pattern_sync_status?tl:{src:tl,foreground:"var(--wp-block-synced-color)"},h=n1(m),{time:b,count:v=0}=k2(t,h.name)||{},y=x2(b,v);return{id:h.name,name:"core/block",initialAttributes:{ref:m.id},title:h.title,icon:g,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:y,content:h.content,get blocks(){return _2(h).blocks},syncStatus:h.syncStatus}},i=f1(t,"core/block",o)?K(e(yr)).getReusableBlocks().map(n):[],s=$oe(t,{buildScope:"inserter"}),a=(0,Ot.getBlockTypes)().filter(m=>(0,Ot.hasBlockSupport)(m,"inserter",!0)).map(s);if(r[Em]!==!1)a=a.filter(m=>c1(t,m,o));else{let{getClosestAllowedInsertionPoint:m}=K(e(yr));a=a.filter(g=>zj(t,g,o)&&m(g.name,o)!==null).map(g=>({...g,isAllowedInCurrentRoot:c1(t,g,o)}))}let l=a.reduce((m,g)=>{let{variations:h=[]}=g;if(h.some(({isDefault:b})=>b)||m.push(g),h.length){let b=W8e(t,g);m.push(...h.map(b))}return m},[]),u=(m,g)=>{let{core:h,noncore:b}=m;return(g.name.startsWith("core/")?h:b).push(g),m},{core:d,noncore:f}=l.reduce(u,{core:[],noncore:[]});return[...[...d,...f],...i]},(t,o)=>[(0,Ot.getBlockTypes)(),K(e(yr)).getReusableBlocks(),t.blocks.order,t.preferences.insertUsage,...Cm(e)(t,o)])),$8e=(0,It.createRegistrySelector)(e=>(0,It.createSelector)((t,o,r=null)=>{let n=Array.isArray(o)?o:[o],i=$oe(t,{buildScope:"transform"}),s=(0,Ot.getBlockTypes)().filter(u=>c1(t,u,r)).map(i),a=Object.fromEntries(Object.entries(s).map(([,u])=>[u.name,u])),l=(0,Ot.getPossibleBlockTransformations)(n).reduce((u,d)=>{let f=a[d?.name];if(!f)return u;let{variationName:p}=d;if(!p)return u.push(f),u;let m=(0,Ot.getBlockVariations)(f.name,"transform")?.find(({name:g})=>g===p);return m?(u.push(U8e(t,f)(m)),u):(u.push(f),u)},[]);return ju(l,u=>u.frecency,"desc")},(t,o,r)=>[(0,Ot.getBlockTypes)(),t.preferences.insertUsage,...Cm(e)(t,r)])),Y8e=(e,t=null)=>(0,Ot.getBlockTypes)().some(n=>c1(e,n,t))?!0:f1(e,"core/block",t),Mj=(0,It.createRegistrySelector)(e=>(0,It.createSelector)((t,o=null)=>{if(!o)return;let r=(0,Ot.getBlockTypes)().filter(i=>c1(t,i,o));return f1(t,"core/block",o)&&r.push("core/block"),r},(t,o)=>[(0,Ot.getBlockTypes)(),...Cm(e)(t,o)])),K8e=(0,It.createSelector)((e,t=null)=>((0,ya.default)('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),Mj(e,t)),(e,t)=>Mj.getDependants(e,t));function Yoe(e,t=null){if(!t)return;let{defaultBlock:o,directInsert:r}=e.blockListSettings.get(t)??{};if(!(!o||!r))return o}function q8e(e,t=null){return(0,ya.default)('wp.data.select( "core/block-editor" ).__experimentalGetDirectInsertBlock',{alternative:'wp.data.select( "core/block-editor" ).getDirectInsertBlock',since:"6.3",version:"6.4"}),Yoe(e,t)}var Z8e=(0,It.createRegistrySelector)(e=>(t,o)=>{let r=K(e(yr)).getPatternBySlug(o);return r?_2(r):null}),Wj=e=>(t,o)=>[...s1(e)(t),...Cm(e)(t,o)],Ioe=new WeakMap;function X8e(e){let t=Ioe.get(e);return t||(t={...e,get blocks(){return _2(e).blocks}},Ioe.set(e,t)),t}var Q8e=(0,It.createRegistrySelector)(e=>(0,It.createSelector)((t,o=null,r=Ooe)=>{let{getAllPatterns:n}=K(e(yr)),i=n(),{allowedBlockTypes:s}=yf(t);return i.filter(({inserter:d=!0})=>!!d).map(X8e).filter(d=>i1(Sb(d),s)).filter(d=>Sb(d).every(({blockName:f})=>r[Em]!==!1?Eb(t,f,o):zj(t,f,o)))},Wj(e))),J8e=(0,It.createRegistrySelector)(e=>(0,It.createSelector)((t,o,r=null)=>{if(!o)return ci;let n=e(yr).__experimentalGetAllowedPatterns(r),i=Array.isArray(o)?o:[o],s=n.filter(a=>a?.blockTypes?.some?.(l=>i.includes(l)));return s.length===0?ci:s},(t,o,r)=>Wj(e)(t,r))),e9e=(0,It.createRegistrySelector)(e=>((0,ya.default)('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),e(yr).getPatternsByBlockTypes)),t9e=(0,It.createRegistrySelector)(e=>(0,It.createSelector)((t,o,r=null)=>{if(!o||o.some(({clientId:i,innerBlocks:s})=>s.length||S2(t,i)))return ci;let n=Array.from(new Set(o.map(({name:i})=>i)));return e(yr).getPatternsByBlockTypes(n,r)},(t,o,r)=>Wj(e)(t,r)));function W_(e,t){return e.blockListSettings.get(t)}function yf(e){return e.settings}function o9e(e){return e.blocks.isPersistentChange}function r9e(e){return e.blocks.lastBlockChangeHistoryMode?e.blocks.lastBlockChangeHistoryMode:e.blocks.isPersistentChange===!1?"merge":"persistent"}var n9e=(0,It.createSelector)((e,t=[])=>{let o={};for(let r of t){let n=W_(e,r);n&&(o[r]=n)}return o},e=>[e.blockListSettings]),i9e=(0,It.createRegistrySelector)(e=>(0,It.createSelector)((t,o)=>{(0,ya.default)("wp.data.select( 'core/block-editor' ).__experimentalGetReusableBlockTitle",{since:"6.6",version:"6.8"});let r=K(e(yr)).getReusableBlocks().find(n=>n.id===o);return r?r.title?.raw:null},()=>[K(e(yr)).getReusableBlocks()]));function s9e(e){return e.blocks.isIgnoredChange}function a9e(e){return e.lastBlockAttributesChange}function l9e(){return(0,ya.default)('wp.data.select( "core/block-editor" ).hasBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),!1}function c9e(e){return!!e.automaticChangeStatus}function u9e(e,t){return e.highlightedBlock===t}function S2(e,t){return e.blocks.controlledInnerBlocks.has(t)}var d9e=(0,It.createSelector)((e,t)=>{if(!t.length)return null;let o=G_(e);if(t.includes(Jt(e,o)))return o;let r=Rm(e),n=Lj(e,o||r[0],t);return n?n[n.length-1]:null},(e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]);function f9e(e,t,o){let{lastBlockInserted:r}=e;return r.clientIds?.includes(t)&&r.source===o}function p9e(e,t){return e.blockVisibility?.[t]??!0}function m9e(){(0,ya.default)("wp.data.select( 'core/block-editor' ).getHoveredBlockClientId",{since:"6.9",version:"7.1"})}var g9e=(0,It.createSelector)(e=>{let t=new Set(Object.keys(e.blockVisibility).filter(o=>e.blockVisibility[o]));return t.size===0?XFe:t},e=>[e.blockVisibility]);function Koe(e,t){if(ts(e,t)!=="default")return!1;if(!Goe(e,t))return!0;if(Pj(e)){let n=Cb(e);if(n){if(Wn(e,n)?.includes(t))return!0}else if(t&&!vr(e,t))return!0}return((0,Ot.hasBlockSupport)(Jt(e,t),"__experimentalDisableBlockOverlay",!1)?!1:S2(e,t))&&!Foe(e,t)&&!zoe(e,t,!0)}function h9e(e,t){let o=e.blocks.parents.get(t);for(;o;){if(Koe(e,o))return!0;o=e.blocks.parents.get(o)}return!1}function ts(e,t=""){return t===null&&(t=""),e.derivedBlockEditingModes?.has(t)?e.derivedBlockEditingModes.get(t):e.blocks.blockEditingModes.has(t)?e.blocks.blockEditingModes.get(t):"default"}var b9e=(0,It.createRegistrySelector)(e=>(t,o="")=>{let r=o||G_(t);if(!r||_f(t,r))return!1;let{getGroupingBlockName:n}=e(Ot.store),i=xf(t,r),s=n();return i&&(i.name===s||(0,Ot.getBlockType)(i.name)?.transforms?.ungroup)&&!!i.innerBlocks.length&&Hj(t,r)}),y9e=(0,It.createRegistrySelector)(e=>(t,o=ci)=>{let{getGroupingBlockName:r}=e(Ot.store),n=r(),i=o?.length?o:Tm(t),s=i?.length?vr(t,i[0]):void 0;return Eb(t,n,s)&&i.length&&Woe(t,i)}),v9e=(e,t)=>((0,ya.default)("wp.data.select( 'core/block-editor' ).__unstableGetContentLockingParent",{since:"6.1",version:"6.7"}),Bj(e,t));function _9e(e){return(0,ya.default)("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingAsBlocks",{since:"6.1",version:"6.7"}),Ij(e)}var E2={};No(E2,{__experimentalUpdateSettings:()=>Gj,clearBlockRemovalPrompt:()=>E9e,clearRequestedInspectorTab:()=>U9e,closeListViewContentPanel:()=>z9e,deleteStyleOverride:()=>B9e,editContentOnlySection:()=>Yj,ensureDefaultBlock:()=>Joe,expandBlock:()=>A9e,hideBlockInterface:()=>x9e,hideViewportModal:()=>H9e,openListViewContentPanel:()=>F9e,privateRemoveBlocks:()=>$j,requestInspectorTab:()=>W9e,resetZoomLevel:()=>D9e,setBlockRemovalRules:()=>T9e,setInsertionPoint:()=>M9e,setLastFocus:()=>I9e,setResponsiveEditing:()=>K9e,setSelectedBlockStyleState:()=>G9e,setSelectedBlockStyleStateCanvasPreview:()=>$9e,setStyleOverride:()=>R9e,setStyleStateViewport:()=>Y9e,setZoomLevel:()=>L9e,showBlockInterface:()=>S9e,showViewportModal:()=>j9e,startDragging:()=>P9e,stopDragging:()=>O9e,stopEditingContentOnlySection:()=>N9e,toggleBlockSpotlight:()=>V9e});var Zoe=c(Nt(),1),Xoe=c(Yo(),1),Qoe=c(Z(),1),C2=c(ce(),1),w9e=e=>Array.isArray(e)?e:[e],k9e=["inserterMediaCategories","blockInspectorAnimation","mediaSideload"];function Gj(e,{stripExperimentalSettings:t=!1,reset:o=!1}={}){let r=e;Object.hasOwn(r,"__unstableIsPreviewMode")&&((0,Zoe.default)("__unstableIsPreviewMode argument in wp.data.dispatch('core/block-editor').updateSettings",{since:"6.8",alternative:"isPreviewMode"}),r={...r},r.isPreviewMode=r.__unstableIsPreviewMode,delete r.__unstableIsPreviewMode);let n=r;if(t){n={};for(let i in r)k9e.includes(i)||(n[i]=r[i])}return{type:"UPDATE_SETTINGS",settings:n,reset:o}}function x9e(){return{type:"HIDE_BLOCK_INTERFACE"}}function S9e(){return{type:"SHOW_BLOCK_INTERFACE"}}var $j=(e,t=!0,o=!1)=>({select:r,dispatch:n,registry:i})=>{if(!e||!e.length||(e=w9e(e),!r.canRemoveBlocks(e)))return;let a=!o&&r.getBlockRemovalRules();if(a){let f=function(h){let b=[],v=[...h];for(;v.length;){let{innerBlocks:y,..._}=v.shift();v.push(...y),b.push(_)}return b};var l=f;let p=e.map(r.getBlock),m=f(p),g;for(let h of a)if(g=h.callback(m),g){n(C9e(e,t,g));return}}let u=!1,d=r.getBlockRootClientId(e[0]);if(d&&!(0,C2.getBlockType)(r.getBlockName(d))?.parent?.length){let f=r.getBlockOrder(d);u=f.length===e.length&&f.every(p=>e.includes(p))&&(0,C2.isUnmodifiedBlock)(r.__unstableGetBlockWithoutInnerBlocks(d))}t&&n.selectPreviousBlock(u?d:e[0],t),i.batch(()=>{n({type:"REMOVE_BLOCKS",clientIds:u?[d]:e}),n(Joe())})},Joe=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;let{__unstableHasCustomAppender:r}=e.getSettings();r||t.insertDefaultBlock()};function C9e(e,t,o){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,message:o}}function E9e(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function T9e(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}function R9e(e,t){return{type:"SET_STYLE_OVERRIDE",id:e,style:t}}function B9e(e){return{type:"DELETE_STYLE_OVERRIDE",id:e}}function I9e(e=null){return{type:"LAST_FOCUS",lastFocus:e}}function P9e(){return{type:"START_DRAGGING"}}function O9e(){return{type:"STOP_DRAGGING"}}function A9e(e){return{type:"SET_BLOCK_EXPANDED_IN_LIST_VIEW",clientId:e}}function M9e(e){return{type:"SET_INSERTION_POINT",value:e}}function Yj(e){return{type:"EDIT_CONTENT_ONLY_SECTION",clientId:e}}function N9e(){return{type:"EDIT_CONTENT_ONLY_SECTION"}}var L9e=(e=100)=>({select:t,dispatch:o})=>{if(e!==100){let r=t.getBlockSelectionStart(),n=t.getSectionRootClientId();if(r){let i;if(n){let s=t.getBlockOrder(n);s?.includes(r)?i=r:i=t.getBlockParents(r).find(a=>s.includes(a))}else i=t.getBlockHierarchyRootClientId(r);i?o.selectBlock(i):o.clearSelectedBlock(),(0,Xoe.speak)((0,Qoe.__)("You are currently in zoom-out mode."))}}o({type:"SET_ZOOM_LEVEL",zoom:e})};function D9e(){return{type:"RESET_ZOOM_LEVEL"}}function V9e(e,t){return{type:"TOGGLE_BLOCK_SPOTLIGHT",clientId:e,hasBlockSpotlight:t}}function F9e(){return{type:"OPEN_LIST_VIEW_CONTENT_PANEL"}}function z9e(){return{type:"CLOSE_LIST_VIEW_CONTENT_PANEL"}}function j9e(e){return{type:"SHOW_VIEWPORT_MODAL",clientIds:e}}function H9e(){return{type:"HIDE_VIEWPORT_MODAL"}}function W9e(e,t={}){return{type:"REQUEST_INSPECTOR_TAB",tabName:e,options:t}}function U9e(){return{type:"CLEAR_REQUESTED_INSPECTOR_TAB"}}function G9e(e,t){return{type:"SET_SELECTED_BLOCK_STYLE_STATE",clientId:e,value:t}}function $9e(e,t){return{type:"SET_SELECTED_BLOCK_STYLE_STATE_CANVAS_PREVIEW",clientId:e,value:t}}function Y9e(e){return{type:"SET_STYLE_STATE_VIEWPORT",viewport:e}}function K9e(e){return{type:"SET_RESPONSIVE_EDITING",enabled:e}}var Zj={};No(Zj,{__unstableDeleteSelection:()=>y7e,__unstableExpandSelection:()=>_7e,__unstableIncrementListViewExpandRevision:()=>eze,__unstableMarkAutomaticChange:()=>V7e,__unstableMarkLastChangeAsPersistent:()=>L7e,__unstableMarkNextChangeAsNotPersistent:()=>D7e,__unstableSaveReusableBlock:()=>N7e,__unstableSetAllListViewPanelsOpen:()=>Q7e,__unstableSetEditorMode:()=>F7e,__unstableSetOpenListViewPanel:()=>X7e,__unstableSetTemporarilyEditingAsBlocks:()=>Y7e,__unstableSplitSelection:()=>v7e,__unstableToggleListViewPanel:()=>J7e,clearSelectedBlock:()=>a7e,duplicateBlocks:()=>j7e,enterFormattedText:()=>B7e,exitFormattedText:()=>I7e,flashBlock:()=>U7e,hideInsertionPoint:()=>g7e,hoverBlock:()=>t7e,insertAfterBlock:()=>W7e,insertBeforeBlock:()=>H7e,insertBlock:()=>p7e,insertBlocks:()=>dre,insertDefaultBlock:()=>O7e,mergeBlocks:()=>w7e,moveBlockToPosition:()=>f7e,moveBlocksDown:()=>u7e,moveBlocksToPosition:()=>cre,moveBlocksUp:()=>d7e,multiSelect:()=>s7e,receiveBlocks:()=>X9e,registerInserterMediaCategory:()=>K7e,removeBlock:()=>k7e,removeBlocks:()=>fre,replaceBlock:()=>c7e,replaceBlocks:()=>are,replaceInnerBlocks:()=>x7e,resetBlocks:()=>q9e,resetSelection:()=>Z9e,selectBlock:()=>e7e,selectNextBlock:()=>r7e,selectPreviousBlock:()=>o7e,selectionChange:()=>P7e,setBlockEditingMode:()=>q7e,setBlockMovingClientId:()=>z7e,setBlockVisibility:()=>$7e,setHasControlledInnerBlocks:()=>G7e,setTemplateValidity:()=>h7e,showInsertionPoint:()=>m7e,startDraggingBlocks:()=>T7e,startMultiSelect:()=>n7e,startTyping:()=>C7e,stopDraggingBlocks:()=>R7e,stopMultiSelect:()=>i7e,stopTyping:()=>E7e,synchronizeTemplate:()=>b7e,toggleBlockHighlight:()=>qj,toggleBlockMode:()=>S7e,toggleSelection:()=>l7e,unsetBlockEditingMode:()=>Z7e,updateBlock:()=>J9e,updateBlockAttributes:()=>Q9e,updateBlockListSettings:()=>A7e,updateSettings:()=>M7e,validateBlocksToTemplate:()=>sre});var rt=c(ce(),1),T2=c(Yo(),1),Hu=c(Z(),1),nre=c(Ns(),1),Io=c($r(),1),Cf=c(Nt(),1),ire=c($_(),1);var ore=c($r(),1),Sf="\x86";function p1(e){if(e)return Object.keys(e).find(t=>{let o=e[t];return(typeof o=="string"||o instanceof ore.RichTextData)&&o.toString().indexOf(Sf)!==-1})}function Kj(e){for(let[t,o]of Object.entries(e.attributes))if(o.source==="rich-text"||o.source==="html")return t}var rre=c(ce(),1);function Y_(e,t){if(!t)return{};let o=new Set((0,rre.getBlockAttributesNamesByRole)(e,"content"));return o.add("metadata"),Object.fromEntries(Object.entries(t).filter(([r])=>!o.has(r)))}var K_=e=>Array.isArray(e)?e:[e],q9e=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(sre(e))},sre=e=>({select:t,dispatch:o})=>{let r=t.getTemplate(),n=t.getTemplateLock(),i=!r||n!=="all"||(0,rt.doBlocksMatchTemplate)(e,r),s=t.isValidTemplate();if(i!==s)return o.setTemplateValidity(i),i};function Z9e(e,t,o){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:o}}function X9e(e){return(0,Cf.default)('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function Q9e(e,t,o={uniqueByBlock:!1}){return typeof o=="boolean"&&(o={uniqueByBlock:o}),{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:K_(e),attributes:t,options:o}}function J9e(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function e7e(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function t7e(){return(0,Cf.default)('wp.data.dispatch( "core/block-editor" ).hoverBlock',{since:"6.9",version:"7.1"}),{type:"DO_NOTHING"}}var o7e=(e,t=!1)=>({select:o,dispatch:r})=>{let n=o.getPreviousBlockClientId(e);if(n)r.selectBlock(n,-1);else if(t){let i=o.getBlockRootClientId(e);if(i)r.selectBlock(i,-1);else{let s=o.getNextBlockClientId(e);s&&r.selectBlock(s,0)}}},r7e=e=>({select:t,dispatch:o})=>{let r=t.getNextBlockClientId(e);r&&o.selectBlock(r)};function n7e(){return{type:"START_MULTI_SELECT"}}function i7e(){return{type:"STOP_MULTI_SELECT"}}var s7e=(e,t,o=0)=>({select:r,dispatch:n})=>{let i=r.getBlockRootClientId(e),s=r.getBlockRootClientId(t);if(i!==s)return;n({type:"MULTI_SELECT",start:e,end:t,initialPosition:o});let a=r.getSelectedBlockCount(),l=r.getClientIdsOfDescendants(r.getMultiSelectedBlockClientIds()).length;(0,T2.speak)(l?(0,Hu.sprintf)((0,Hu._n)("%1$s block selected, %2$s including nested blocks.","%1$s blocks selected, %2$s including nested blocks.",a),a,a+l):(0,Hu.sprintf)((0,Hu._n)("%s block selected.","%s blocks selected.",a),a),"assertive")};function a7e(){return{type:"CLEAR_SELECTED_BLOCK"}}function l7e(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}var are=(e,t,o,r=0,n)=>({select:i,dispatch:s,registry:a})=>{e=K_(e),t=K_(t);let l=i.getBlockRootClientId(e[0]);for(let d=0;d<t.length;d++){let f=t[d];if(!i.canInsertBlockType(f.name,l))return}let u=R2(t);a.batch(()=>{s({type:"REPLACE_BLOCKS",clientIds:e,blocks:u,time:Date.now(),indexToSelect:o,initialPosition:r,meta:n}),ure(i,s,t,u,r),s.ensureDefaultBlock()})};function c7e(e,t){return are(e,t)}var lre=e=>(t,o)=>({select:r,dispatch:n})=>{r.canMoveBlocks(t)&&n({type:e,clientIds:K_(t),rootClientId:o})},u7e=lre("MOVE_BLOCKS_DOWN"),d7e=lre("MOVE_BLOCKS_UP"),cre=(e,t="",o="",r)=>({select:n,dispatch:i})=>{n.canMoveBlocks(e)&&(t!==o&&(!n.canRemoveBlocks(e)||!n.canInsertBlocks(e,o))||i({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:o,clientIds:e,index:r}))};function f7e(e,t="",o="",r){return cre([e],t,o,r)}function p7e(e,t,o,r,n,i){return dre([e],t,o,r,n,i)}function R2(e,t=new Set){let o=!1,r=e.map(n=>{let{innerBlocks:i}=n;if(i?.length)i=R2(i,t);else if(!t.has(n.name)){let{template:s}=(0,rt.getBlockType)(n.name)??{};s?.length&&(i=R2((0,rt.synchronizeBlocksWithTemplate)([],s),new Set(t).add(n.name)))}return i===n.innerBlocks?n:(o=!0,{...n,innerBlocks:i})});return o?r:e}function ure(e,t,o,r,n){let i=e.getSelectedBlockClientId();if(!i)return;let s=r.findIndex(l=>l.clientId===i);if(s===-1||r[s]===o[s]||!r[s].innerBlocks.length||!(0,rt.getBlockType)(r[s].name)?.templateInsertUpdatesSelection)return;let a=r[s];for(;a.innerBlocks[0];)a=a.innerBlocks[0];t.selectBlock(a.clientId,n)}var dre=(e,t,o,r=!0,n=0,i)=>({select:s,dispatch:a,registry:l})=>{n!==null&&typeof n=="object"&&(i=n,n=0,(0,Cf.default)("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=K_(e);let u=[];for(let d of e)s.canInsertBlockType(d.name,o)&&u.push(d);if(u.length){let d=R2(u);l.batch(()=>{a({type:"INSERT_BLOCKS",blocks:d,index:t,rootClientId:o,time:Date.now(),updateSelection:r,initialPosition:r?n:null,meta:i}),ure(s,a,u,d,n)})}};function m7e(e,t,o={}){let{__unstableWithInserter:r,operation:n,nearestSide:i}=o;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:r,operation:n,nearestSide:i}}var g7e=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function h7e(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}var b7e=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});let o=e.getBlocks(),r=e.getTemplate(),n=(0,rt.synchronizeBlocksWithTemplate)(o,r);t.resetBlocks(n)},y7e=e=>({registry:t,select:o,dispatch:r})=>{let n=o.getSelectionStart(),i=o.getSelectionEnd();if(n.clientId===i.clientId)return;if(!n.attributeKey||!i.attributeKey||typeof n.offset>"u"||typeof i.offset>"u")return!1;let s=o.getBlockRootClientId(n.clientId),a=o.getBlockRootClientId(i.clientId);if(s!==a)return;let l=o.getBlockOrder(s),u=l.indexOf(n.clientId),d=l.indexOf(i.clientId),f,p;u>d?(f=i,p=n):(f=n,p=i);let m=e?p:f,g=o.getBlock(m.clientId),h=(0,rt.getBlockType)(g.name);if(!h.merge)return;let b=f,v=p,y=o.getBlock(b.clientId),_=o.getBlock(v.clientId),w=y.attributes[b.attributeKey],k=_.attributes[v.attributeKey],x=(0,Io.create)({html:w}),C=(0,Io.create)({html:k});x=(0,Io.remove)(x,b.offset,x.text.length),C=(0,Io.insert)(C,Sf,0,v.offset);let E=(0,rt.cloneBlock)(y,{[b.attributeKey]:(0,Io.toHTMLString)({value:x})}),R=(0,rt.cloneBlock)(_,{[v.attributeKey]:(0,Io.toHTMLString)({value:C})}),S=e?E:R,I=y.name===_.name?[S]:(0,rt.switchToBlockType)(S,h.name);if(!I||!I.length)return;let O;if(e){let D=I.pop();O=h.merge(D.attributes,R.attributes)}else{let D=I.shift();O=h.merge(E.attributes,D.attributes)}let A=p1(O),P=O[A],L=(0,Io.create)({html:P}),H=L.text.indexOf(Sf),N=(0,Io.remove)(L,H,H+1),M=(0,Io.toHTMLString)({value:N});O[A]=M;let V=o.getSelectedBlockClientIds(),j=[...e?I:[],{...g,attributes:{...g.attributes,...O},innerBlocks:_.innerBlocks},...e?[]:I];t.batch(()=>{r.selectionChange(g.clientId,A,H,H),r.replaceBlocks(V,j,0,o.getSelectedBlocksInitialCaretPosition())})},v7e=(e=[])=>({registry:t,select:o,dispatch:r})=>{let n=o.getSelectionStart(),i=o.getSelectionEnd(),s=o.getBlockRootClientId(n.clientId),a=o.getBlockRootClientId(i.clientId);if(s!==a)return;let l=o.getBlockOrder(s),u=l.indexOf(n.clientId),d=l.indexOf(i.clientId),f,p;u>d?(f=i,p=n):(f=n,p=i);let m=f,g=p,h=o.getBlock(m.clientId),b=o.getBlock(g.clientId),v=(0,rt.getBlockType)(h.name),y=(0,rt.getBlockType)(b.name),_=typeof m.attributeKey=="string"?m.attributeKey:Kj(v),w=typeof g.attributeKey=="string"?g.attributeKey:Kj(y),k=o.getBlockAttributes(m.clientId);if(k?.metadata?.bindings?.[_]){if(e.length){let{createWarningNotice:$}=t.dispatch(nre.store);$((0,Hu.__)("Blocks can't be inserted into other blocks with bindings"),{type:"snackbar"});return}r.insertAfterBlock(m.clientId);return}if(!_||!w||typeof n.offset>"u"||typeof i.offset>"u")return;if(m.clientId===g.clientId&&_===w&&m.offset===g.offset){if(e.length){if((0,rt.isUnmodifiedDefaultBlock)(h,"content")){r.replaceBlocks([m.clientId],e,e.length-1,-1);return}}else if(!o.getBlockOrder(m.clientId).length){let $=function(){let Q=(0,rt.getDefaultBlockName)();if(o.canInsertBlockType(Q,s))return(0,rt.createBlock)(Q);let W=o.getBlockName(m.clientId);return(0,rt.createBlock)(W,Y_(W,k))};var C=$;let J=k[_].length;if(m.offset===0&&J){r.insertBlocks([$()],o.getBlockIndex(m.clientId),s,!1);return}if(m.offset===J){r.insertBlocks([$()],o.getBlockIndex(m.clientId)+1,s);return}}}let E=h.attributes[_],R=b.attributes[w],S=(0,Io.create)({html:E}),I=(0,Io.create)({html:R});S=(0,Io.remove)(S,m.offset,S.text.length),I=(0,Io.remove)(I,0,g.offset);let O={...h,innerBlocks:h.clientId===b.clientId?[]:h.innerBlocks,attributes:{...h.attributes,[_]:(0,Io.toHTMLString)({value:S})}},A={...b,clientId:h.clientId===b.clientId?(0,rt.createBlock)(b.name).clientId:b.clientId,attributes:{...b.attributes,[w]:(0,Io.toHTMLString)({value:I})}},P=(0,rt.getDefaultBlockName)();if(h.clientId===b.clientId&&P&&A.name!==P&&o.canInsertBlockType(P,s)){let $=(0,rt.switchToBlockType)(A,P);$?.length===1&&(A=$[0])}if(!e.length){r.replaceBlocks(o.getSelectedBlockClientIds(),[O,A]);return}let L,H=[],N=[...e],M=N.shift(),V=(0,rt.getBlockType)(O.name),j=V.merge&&M.name===V.name?[M]:(0,rt.switchToBlockType)(M,V.name);if(j?.length){let $=j.shift();O={...O,attributes:{...O.attributes,...V.merge(O.attributes,$.attributes)}},H.push(O),L={clientId:O.clientId,attributeKey:_,offset:(0,Io.create)({html:O.attributes[_]}).text.length},N.unshift(...j)}else(0,rt.isUnmodifiedBlock)(O)||H.push(O),H.push(M);let D=N.pop(),z=(0,rt.getBlockType)(A.name);if(N.length&&H.push(...N),D){let $=z.merge&&z.name===D.name?[D]:(0,rt.switchToBlockType)(D,z.name);if($?.length){let J=$.pop();H.push({...A,attributes:{...A.attributes,...z.merge(J.attributes,A.attributes)}}),H.push(...$),L={clientId:A.clientId,attributeKey:w,offset:(0,Io.create)({html:J.attributes[w]}).text.length}}else H.push(D),(0,rt.isUnmodifiedBlock)(A)||H.push(A)}else(0,rt.isUnmodifiedBlock)(A)||H.push(A);t.batch(()=>{r.replaceBlocks(o.getSelectedBlockClientIds(),H,H.length-1,0),L&&r.selectionChange(L.clientId,L.attributeKey,L.offset,L.offset)})},_7e=()=>({select:e,dispatch:t})=>{let o=e.getSelectionStart(),r=e.getSelectionEnd();t.selectionChange({start:{clientId:o.clientId},end:{clientId:r.clientId}})},w7e=(e,t)=>({registry:o,select:r,dispatch:n})=>{let i=e,s=t,a=r.getBlock(i),l=(0,rt.getBlockType)(a.name);if(!l||r.getBlockEditingMode(i)==="disabled"||r.getBlockEditingMode(s)==="disabled")return;let u=r.getBlock(s);if(!l.merge&&(0,rt.getBlockSupport)(a.name,"__experimentalOnMerge")){let k=(0,rt.switchToBlockType)(u,l.name);if(k?.length!==1){n.selectBlock(a.clientId);return}let[x]=k;if(x.innerBlocks.length<1){n.selectBlock(a.clientId);return}o.batch(()=>{n.insertBlocks(x.innerBlocks,void 0,i),n.removeBlock(s),n.selectBlock(x.innerBlocks[0].clientId);let C=r.getNextBlockClientId(i);if(C&&r.getBlockName(i)===r.getBlockName(C)){let E=r.getBlockAttributes(i),R=r.getBlockAttributes(C);Object.keys(E).every(S=>E[S]===R[S])&&(n.moveBlocksToPosition(r.getBlockOrder(C),C,i),n.removeBlock(C,!1))}});return}if((0,rt.isUnmodifiedDefaultBlock)(a)||l.merge&&a.name!==u.name&&(0,rt.isUnmodifiedBlock)(a,"content")){r.isBlockSelected(i)?o.batch(()=>{n.removeBlock(i,!1),n.selectBlock(s,0)}):n.removeBlock(i,!1);return}if((0,rt.isUnmodifiedDefaultBlock)(u)){n.removeBlock(s,r.isBlockSelected(s));return}if(!l.merge){(0,rt.isUnmodifiedBlock)(u,"content")?n.removeBlock(s,r.isBlockSelected(s)):n.selectBlock(a.clientId);return}let d=(0,rt.getBlockType)(u.name),{clientId:f,attributeKey:p,offset:m}=r.getSelectionStart(),h=(f===i?l:d).attributes[p],b=(f===i||f===s)&&p!==void 0&&m!==void 0&&!!h;h||(typeof p=="number"?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 p}`):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));let v=(0,rt.cloneBlock)(a),y=(0,rt.cloneBlock)(u);if(b){let k=f===i?v:y,x=k.attributes[p],C=(0,Io.insert)((0,Io.create)({html:x}),Sf,m,m);k.attributes[p]=(0,Io.toHTMLString)({value:C})}let _=a.name===u.name?[y]:(0,rt.switchToBlockType)(y,a.name);if(!_||!_.length)return;let w=l.merge(v.attributes,_[0].attributes);if(b){let k=p1(w),x=w[k],C=(0,Io.create)({html:x}),E=C.text.indexOf(Sf),R=(0,Io.remove)(C,E,E+1),S=(0,Io.toHTMLString)({value:R});w[k]=S,n.selectionChange(a.clientId,k,E,E)}n.replaceBlocks([a.clientId,u.clientId],[{...a,attributes:{...a.attributes,...w}},..._.slice(1)],0)},fre=(e,t=!0)=>$j(e,t);function k7e(e,t){return fre([e],t)}function x7e(e,t,o=!1,r=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:o,initialPosition:o?r:null,time:Date.now()}}function S7e(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function C7e(){return{type:"START_TYPING"}}function E7e(){return{type:"STOP_TYPING"}}function T7e(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function R7e(){return{type:"STOP_DRAGGING_BLOCKS"}}function B7e(){return(0,Cf.default)('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function I7e(){return(0,Cf.default)('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function P7e(e,t,o,r){return typeof e=="string"?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:o,endOffset:r}:{type:"SELECTION_CHANGE",...e}}var O7e=(e,t,o)=>({dispatch:r})=>{let n=(0,rt.getDefaultBlockName)();if(!n)return;let i=(0,rt.createBlock)(n,e);return r.insertBlock(i,o,t)};function A7e(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function M7e(e){return Gj(e,{stripExperimentalSettings:!0})}function N7e(){return(0,Cf.default)('wp.data.dispatch( "core/block-editor" ).__unstableSaveReusableBlock',{since:"7.1"}),{type:"DO_NOTHING"}}function L7e(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function D7e({history:e="merge"}={}){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT",history:e}}var V7e=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});let{requestIdleCallback:t=o=>setTimeout(o,100)}=window;t(()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})})},F7e=e=>({registry:t})=>{t.dispatch(ire.store).set("core","editorTool",e),e==="navigation"?(0,T2.speak)((0,Hu.__)("You are currently in Write mode.")):e==="edit"&&(0,T2.speak)((0,Hu.__)("You are currently in Design mode."))};function z7e(){return(0,Cf.default)('wp.data.dispatch( "core/block-editor" ).setBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),{type:"DO_NOTHING"}}var j7e=(e,t=!0)=>({select:o,dispatch:r})=>{if(!e||!e.length)return;let n=o.getBlocksByClientId(e);if(n.some(d=>!d)||n.map(d=>d.name).some(d=>!(0,rt.hasBlockSupport)(d,"multiple",!0)))return;let s=o.getBlockRootClientId(e[0]),a=K_(e),l=o.getBlockIndex(a[a.length-1]),u=n.map(d=>(0,rt.cloneSanitizedBlock)(d));return r.insertBlocks(u,l+1,s,t),u.length>1&&t&&r.multiSelect(u[0].clientId,u[u.length-1].clientId),u.map(d=>d.clientId)},H7e=e=>({select:t,dispatch:o})=>{if(!e)return;let r=t.getBlockRootClientId(e),n=t.getBlockIndex(e),{defaultBlock:i}=r?t.getBlockListSettings(r)??{}:{};if(!i)return o.insertDefaultBlock({},r,n);let s=(0,rt.createBlock)(i.name,{...i.attributes,...t.getBlockName(e)===i.name?Y_(i.name,t.getBlockAttributes(e)):{}});return o.insertBlock(s,n,r)},W7e=e=>({select:t,dispatch:o})=>{if(!e)return;let r=t.getBlockRootClientId(e),n=t.getBlockIndex(e),{defaultBlock:i}=r?t.getBlockListSettings(r)??{}:{};if(!i)return o.insertDefaultBlock({},r,n+1);let s=(0,rt.createBlock)(i.name,{...i.attributes,...t.getBlockName(e)===i.name?Y_(i.name,t.getBlockAttributes(e)):{}});return o.insertBlock(s,n+1,r)};function qj(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}var U7e=(e,t=150)=>async({dispatch:o})=>{o(qj(e,!0)),await new Promise(r=>setTimeout(r,t)),o(qj(e,!1))};function G7e(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function $7e(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function Y7e(e){return(0,Cf.default)("wp.data.dispatch( 'core/block-editor' ).__unstableSetTemporarilyEditingAsBlocks",{since:"7.0"}),Yj(e)}var K7e=e=>({select:t,dispatch:o})=>{if(!e||typeof e!="object"){console.error("Category should be an `InserterMediaCategory` object.");return}if(!e.name){console.error("Category should have a `name` that should be unique among all media categories.");return}if(!e.labels?.name){console.error("Category should have a `labels.name`.");return}if(!["image","audio","video"].includes(e.mediaType)){console.error("Category should have `mediaType` property that is one of `image|audio|video`.");return}if(!e.fetch||typeof e.fetch!="function"){console.error("Category should have a `fetch` function defined with the following signature `(InserterMediaRequest) => Promise<InserterMediaItem[]|InserterMediaResponse>`.");return}let r=t.getRegisteredInserterMediaCategories();if(r.some(({name:n})=>n===e.name)){console.error(`A category is already registered with the same name: "$e.name}".`);return}if(r.some(({labels:{name:n}={}})=>n===e.labels?.name)){console.error(`A category is already registered with the same labels.name: "$e.labels.name}".`);return}o({type:"REGISTER_INSERTER_MEDIA_CATEGORY",category:{...e,isExternalResource:!0}})};function q7e(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function Z7e(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}function X7e(e){return{type:"SET_OPEN_LIST_VIEW_PANEL",clientId:e}}function Q7e(){return{type:"SET_ALL_LIST_VIEW_PANELS_OPEN"}}function J7e(e,t){return{type:"TOGGLE_LIST_VIEW_PANEL",clientId:e,isOpen:t}}function eze(){return{type:"INCREMENT_LIST_VIEW_EXPAND_REVISION"}}var q_={reducer:Ete,selectors:Uj,actions:Zj},B=(0,B2.createReduxStore)(yr,{...q_,persist:["preferences"]}),pre=(0,B2.registerStore)(yr,{...q_,persist:["preferences"]});K(pre).registerPrivateActions(E2);K(pre).registerPrivateSelectors(y2);K(B).registerPrivateActions(E2);K(B).registerPrivateSelectors(y2);var Z_=c(q(),1),mre=c(Z(),1);var kc=c(T(),1);function tze({className:e,actions:t,children:o,secondaryActions:r}){return(0,kc.jsx)("div",{style:{display:"contents",all:"initial"},children:(0,kc.jsx)("div",{className:Y(e,"block-editor-warning"),children:(0,kc.jsxs)("div",{className:"block-editor-warning__contents",children:[(0,kc.jsx)("p",{className:"block-editor-warning__message",children:o}),(t?.length>0||r)&&(0,kc.jsxs)("div",{className:"block-editor-warning__actions",children:[t?.length>0&&t.map((n,i)=>(0,kc.jsx)("span",{className:"block-editor-warning__action",children:n},i)),r&&(0,kc.jsx)(Z_.DropdownMenu,{className:"block-editor-warning__secondary",icon:ga,label:(0,mre.__)("More options"),popoverProps:{placement:"bottom-end",className:"block-editor-warning__dropdown"},noIcons:!0,children:()=>(0,kc.jsx)(Z_.MenuGroup,{children:r.map((n,i)=>(0,kc.jsx)(Z_.MenuItem,{onClick:n.onClick,children:n.title},i))})})]})]})})})}var Bm=tze;var X_=c(T(),1);function bre({originalBlockClientId:e,name:t,onReplace:o}){let{selectBlock:r}=(0,hre.useDispatch)(B),n=(0,gre.getBlockType)(t);return(0,X_.jsxs)(Bm,{actions:[(0,X_.jsx)(Xj.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>r(e),children:(0,I2.__)("Find original")},"find-original"),(0,X_.jsx)(Xj.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>o([]),children:(0,I2.__)("Remove")},"remove")],children:[(0,X_.jsxs)("strong",{children:[n?.title,": "]}),(0,I2.__)("This block can only be used once.")]})}var m1=c(T(),1);function A2({mayDisplayControls:e,mayDisplayParentControls:t,mayDisplayPatternEditingControls:o,blockEditingMode:r,isPreviewMode:n,...i}){let{name:s,isSelected:a,clientId:l,attributes:u={},__unstableLayoutClassNames:d}=i,{layout:f=null,metadata:p={}}=u,{bindings:m}=p,g=(0,P2.hasBlockSupport)(s,"layout",!1)||(0,P2.hasBlockSupport)(s,"__experimentalLayout",!1),b=!!kt()[U0]||(0,P2.hasBlockSupport)(s,"listView")||s==="core/navigation",{originalBlockClientId:v}=(0,O2.useContext)(Rn);return(0,m1.jsxs)(aI,{value:(0,O2.useMemo)(()=>({name:s,isSelected:a,clientId:l,layout:g?f:null,__unstableLayoutClassNames:d,[Nu]:e,[o_]:t,[r_]:o&&r!=="disabled",[n_]:r,[i_]:m,[sI]:n,[U0]:b}),[s,a,l,g,f,d,e,t,o,r,m,n,b]),children:[(0,m1.jsx)(fte,{...i}),v&&(0,m1.jsx)(bre,{originalBlockClientId:v,name:s,onReplace:i.onReplace})]})}function je(...e){let{clientId:t=null}=kt();return(0,yre.useSelect)(o=>K(o(B)).getBlockSettings(t,...e),[t,...e])}function _re(e){(0,vre.default)("wp.blockEditor.useSetting",{since:"6.5",alternative:"wp.blockEditor.useSettings",note:"The new useSettings function can retrieve multiple settings at once, with better performance."});let[t]=je(e);return t}var M2=c(T(),1),wre=([e,...t])=>e.toUpperCase()+t.join(""),oze=e=>(0,Bb.createHigherOrderComponent)(t=>function(r){return(0,M2.jsx)(t,{...r,colors:e})},"withCustomColorPalette"),rze=()=>(0,Bb.createHigherOrderComponent)(e=>function(o){let[r,n,i]=je("color.palette.custom","color.palette.theme","color.palette.default"),s=(0,Q_.useMemo)(()=>[...r||[],...n||[],...i||[]],[r,n,i]);return(0,M2.jsx)(e,{...o,colors:s})},"withEditorColorPalette");function kre(e,t){let o=e.reduce((r,n)=>({...r,...typeof n=="string"?{[n]:Bs(n)}:n}),{});return(0,Bb.compose)([t,r=>function(i){let{colors:s,...a}=i,{attributes:l,setAttributes:u}=a,d=(0,Q_.useRef)(null),f=(0,Q_.useMemo)(()=>{let m=d.current,g=Object.fromEntries(Object.entries(o).flatMap(([h,b])=>{let v=`custom$wre(h)}`,y=wre(h),_=Lu(s,l[h],l[v]),w=m?.[h],k=w?.color===_.color&&w?w:{..._,class:Ja(b,_.slug)},x=C=>{let E=uI(s,C);u({[h]:E?.slug||void 0,[v]:E?.slug?void 0:C})};return[[h,k],[`set$y}`,x]]}));return d.current=g,g},[l,s,u]),p=(0,Q_.useMemo)(()=>({getMostReadableColor:m=>Qee(s,m)}),[s]);return(0,M2.jsx)(r,{...a,...f,colorUtils:p})}])}function xre(e){return(...t)=>{let o=oze(e);return(0,Bb.createHigherOrderComponent)(kre(t,o),"withCustomColors")}}function Sre(...e){let t=rze();return(0,Bb.createHigherOrderComponent)(kre(e,t),"withColors")}var N2=c(F(),1),L2=c(ee(),1);function J_(e){if(e)return`has-$e}-gradient-background`}function D2(e,t){let o=e?.find(r=>r.slug===t);return o&&o.gradient}function Cre(e,t){return e?.find(r=>r.gradient===t)}function Ere(e,t){let o=Cre(e,t);return o&&o.slug}function nze({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){let{clientId:o}=kt(),[r,n,i]=je("color.gradients.custom","color.gradients.theme","color.gradients.default"),s=(0,N2.useMemo)(()=>[...r||[],...n||[],...i||[]],[r,n,i]),{gradient:a,customGradient:l}=(0,L2.useSelect)(m=>{let{getBlockAttributes:g}=m(B),h=g(o)||{};return{customGradient:h[t],gradient:h[e]}},[o,e,t]),{updateBlockAttributes:u}=(0,L2.useDispatch)(B),d=(0,N2.useCallback)(m=>{let g=Ere(s,m);if(g){u(o,{[e]:g,[t]:void 0});return}u(o,{[e]:void 0,[t]:m})},[s,o,u]),f=J_(a),p;return a?p=D2(s,a):p=l,{gradientClass:f,gradientValue:p,setGradient:d}}var ew=(e,t,o)=>{if(t){let r=e?.find(({slug:n})=>n===t);if(r)return r}return{size:o}};function Qj(e,t){let o=e?.find(({size:r})=>r===t);return o||{size:t}}function Im(e){if(e)return`has-$Bs(e)}-font-size`}var ize="1600px",sze="320px",aze=1,lze=.25,cze=.75,uze="14px";function Tre({minimumFontSize:e,maximumFontSize:t,fontSize:o,minimumViewportWidth:r=sze,maximumViewportWidth:n=ize,scaleFactor:i=aze,minimumFontSizeLimit:s}){if(s=Pm(s)?s:uze,o){let _=Pm(o);if(!_?.unit)return null;let w=Pm(s,{coerceTo:_.unit});if(w?.value&&!e&&!t&&_?.value<=w?.value)return null;if(t||(t=`$_.value}$_.unit}`),!e){let k=_.unit==="px"?_.value:_.value*16,x=Math.min(Math.max(1-.075*Math.log2(k),lze),cze),C=g1(_.value*x,3);w?.value&&C<w?.value?e=`$w.value}$w.unit}`:e=`$C}$_.unit}`}}let a=Pm(e),l=a?.unit||"rem",u=Pm(t,{coerceTo:l});if(!a||!u)return null;let d=Pm(e,{coerceTo:"rem"}),f=Pm(n,{coerceTo:l}),p=Pm(r,{coerceTo:l});if(!f||!p||!d)return null;let m=f.value-p.value;if(!m)return null;let g=g1(p.value/100,3),h=g1(g,3)+l,b=100*((u.value-a.value)/m),v=g1((b||1)*i,3),y=`$d.value}$d.unit} + ((1vw - $h}) * $v})`;return`clamp($e}, $y}, $t})`}function Pm(e,t={}){if(typeof e!="string"&&typeof e!="number")return null;isFinite(e)&&(e=`$e}px`);let{coerceTo:o,rootSizeValue:r,acceptableUnits:n}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},i=n?.join("|"),s=new RegExp(`^(\\d*\\.?\\d+)($i}){1,1}$`),a=e.match(s);if(!a||a.length<3)return null;let[,l,u]=a,d=parseFloat(l);return o==="px"&&(u==="em"||u==="rem")&&(d=d*r,u=o),u==="px"&&(o==="em"||o==="rem")&&(d=d/r,u=o),(o==="em"||o==="rem")&&(u==="em"||u==="rem")&&(u=o),{value:g1(d,3),unit:u}}function g1(e,t=3){let o=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*o)/o):void 0}var Rre=c(q(),1);var Bre=c(T(),1);function dze(e){let[t,o]=je("typography.fontSizes","typography.customFontSize");return(0,Bre.jsx)(Rre.FontSizePicker,{...e,fontSizes:t,disableCustomFontSizes:!o})}var Jj=dze;var h1=c(ue(),1),Pre=c(F(),1);var eH=c(T(),1),fze=[],Ire=([e,...t])=>e.toUpperCase()+t.join(""),Ore=(...e)=>{let t=e.reduce((o,r)=>(o[r]=`custom$Ire(r)}`,o),{});return(0,h1.createHigherOrderComponent)((0,h1.compose)([(0,h1.createHigherOrderComponent)(o=>function(n){let[i]=je("typography.fontSizes");return(0,eH.jsx)(o,{...n,fontSizes:i||fze})},"withFontSizes"),o=>class extends Pre.Component{constructor(n){super(n),this.setters=this.createSetters(),this.state={}}createSetters(){return Object.entries(t).reduce((n,[i,s])=>{let a=Ire(i);return n[`set$a}`]=this.createSetFontSize(i,s),n},{})}createSetFontSize(n,i){return s=>{let a=this.props.fontSizes?.find(({size:l})=>l===Number(s));this.props.setAttributes({[n]:a&&a.slug?a.slug:void 0,[i]:a&&a.slug?void 0:s})}}static getDerivedStateFromProps({attributes:n,fontSizes:i},s){let a=(u,d)=>s[d]?n[d]?n[d]!==s[d].slug:s[d].size!==n[u]:!0;if(!Object.values(t).some(a))return null;let l=Object.entries(t).filter(([u,d])=>a(d,u)).reduce((u,[d,f])=>{let p=n[d],m=ew(i,p,n[f]);return u[d]={...m,class:Im(p)},u},{});return{...s,...l}}render(){return(0,eH.jsx)(o,{...this.props,fontSizes:void 0,...this.state,...this.setters})}}]),"withFontSizes")};var Ib=c(Z(),1),V2=c(q(),1);var Are=c(T(),1),pze=[{icon:mm,title:(0,Ib.__)("Align text left"),align:"left"},{icon:lb,title:(0,Ib.__)("Align text center"),align:"center"},{icon:gm,title:(0,Ib.__)("Align text right"),align:"right"}],mze={placement:"bottom-start"};function gze({value:e,onChange:t,alignmentControls:o=pze,label:r=(0,Ib.__)("Align text"),description:n,isCollapsed:i=!0,isToolbar:s}){function a(p){return()=>t(e===p?void 0:p)}let l=o.find(p=>p.align===e);function u(){return l?l.icon:(0,Ib.isRTL)()?gm:mm}let d=s?V2.ToolbarGroup:V2.ToolbarDropdownMenu,f=s?{isCollapsed:i}:{toggleProps:n?{description:n}:{},popoverProps:mze};return(0,Are.jsx)(d,{icon:u(),label:r,controls:o.map(p=>{let{align:m}=p;return{...p,isActive:e===m,role:i?"menuitemradio":void 0,onClick:a(m)}}),...f})}var tH=gze;var oH=c(T(),1),F2=e=>(0,oH.jsx)(tH,{...e,isToolbar:!1}),Mre=e=>(0,oH.jsx)(tH,{...e,isToolbar:!0});var $2=c(Bo(),1),Y2=c(q(),1),Gre=c(F(),1),K2=c(ce(),1);var Wre=c(ee(),1),Am=c(ce(),1),sH=c(F(),1);var Fre=c(Vre(),1);var _ze=e=>e.name||"",wze=e=>e.title,kze=e=>e.description||"",xze=e=>e.keywords||[],Sze=e=>e.category,Cze=()=>null,Eze=[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],Tze=new RegExp("(\\p{C}|\\p{P}|\\p{S})+","giu"),rH=new Map,nH=new Map;function j2(e=""){if(rH.has(e))return rH.get(e);let t=cI(e,{splitRegexp:Eze,stripRegexp:Tze}).split(" ").filter(Boolean);return rH.set(e,t),t}function b1(e=""){if(nH.has(e))return nH.get(e);let t=(0,Fre.default)(e);return t=t.replace(/^\//,""),t=t.toLowerCase(),nH.set(e,t),t}var y1=(e="")=>j2(b1(e)),Rze=(e,t)=>e.filter(o=>!y1(t).some(r=>r.includes(o))),H2=(e,t,o,r)=>y1(r).length===0?e:v1(e,r,{getCategory:s=>t.find(({slug:a})=>a===s.category)?.title,getCollection:s=>o[s.name.split("/")[0]]?.title}),v1=(e=[],t="",o={})=>{if(y1(t).length===0)return e;let n=e.map(i=>[i,Bze(i,t,o)]).filter(([,i])=>i>0);return n.sort(([,i],[,s])=>s-i),n.map(([i])=>i)};function Bze(e,t,o={}){let{getName:r=_ze,getTitle:n=wze,getDescription:i=kze,getKeywords:s=xze,getCategory:a=Sze,getCollection:l=Cze}=o,u=r(e),d=n(e),f=i(e),p=s(e),m=a(e),g=l(e),h=b1(t),b=b1(d),v=0;if(h===b)v+=30;else if(b.startsWith(h))v+=20;else{let y=[u,d,f,...p,m,g].join(" "),_=j2(h);Rze(_,y).length===0&&(v+=10)}if(v!==0&&u.startsWith("core/")){let y=u!==e.id;v+=y?1:2}return v}var Wu=c(ce(),1),tw=c(ee(),1),W2=c(F(),1),zre=c(Ns(),1),U2=c(Z(),1);var Ize=(e,t,o)=>{let r=(0,W2.useMemo)(()=>({[Em]:!!o}),[o]),[n]=(0,tw.useSelect)(d=>[d(B).getInserterItems(e,r)],[e,r]),{getClosestAllowedInsertionPoint:i}=K((0,tw.useSelect)(B)),{createErrorNotice:s}=(0,tw.useDispatch)(zre.store),[a,l]=(0,tw.useSelect)(d=>{let{getCategories:f,getCollections:p}=d(Wu.store);return[f(),p()]},[]),u=(0,W2.useCallback)(({name:d,initialAttributes:f,innerBlocks:p,innerContent:m,syncStatus:g,content:h},b)=>{let v=i(d,e);if(v===null){let _=(0,Wu.getBlockType)(d)?.title??d;s((0,U2.sprintf)((0,U2.__)(`Block "%s" can't be inserted.`),_),{type:"snackbar",id:"inserter-notice"});return}let y=g==="unsynced"?(0,Wu.parse)(h,{__unstableSkipMigrationLogs:!0}):(0,Wu.createBlock)(d,f,(0,Wu.createBlocksFromInnerBlocksTemplate)(p),m);t(y,void 0,b,v)},[i,e,t,s]);return[n,a,l,u]},Om=Ize;var jre=c(q(),1);var Hre=c(F(),1),iH=c(T(),1);function Pze({icon:e,showColors:t=!1,className:o,context:r}){e?.src==="block-default"&&(e={src:tC});let n=(0,iH.jsx)(jre.Icon,{icon:e&&e.src?e.src:e,context:r}),i=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,iH.jsx)("span",{style:i,className:Y("block-editor-block-icon",o,{"has-colors":t}),children:n})}var Lt=(0,Hre.memo)(Pze);var G2=(e,t)=>(t&&e.sort(({id:o},{id:r})=>{let n=t.indexOf(o),i=t.indexOf(r);return n<0&&(n=t.length),i<0&&(i=t.length),n-i}),e);var ow=c(T(),1),Oze=()=>{},Aze=9;function Mze(){return{name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){let{rootClientId:t,selectedBlockId:o,prioritizedBlocks:r}=(0,Wre.useSelect)(u=>{let{getSelectedBlockClientId:d,getBlock:f,getBlockListSettings:p,getBlockRootClientId:m}=u(B),{getActiveBlockVariation:g}=u(Am.store),h=d(),{name:b,attributes:v}=f(h),y=g(b,v),_=m(h);return{selectedBlockId:y?`$b}/$y.name}`:b,rootClientId:_,prioritizedBlocks:p(_)?.prioritizedInserterBlocks}},[]),[n,i,s]=Om(t,Oze,!0),a=(0,sH.useMemo)(()=>(e.trim()?H2(n,i,s,e):G2(ju(n,"frecency","desc"),r)).filter(d=>d.id!==o).slice(0,Aze),[e,o,n,i,s,r]);return[(0,sH.useMemo)(()=>a.map(u=>{let{title:d,icon:f,isDisabled:p}=u;return{key:`block-$u.id}`,value:u,label:(0,ow.jsxs)(ow.Fragment,{children:[(0,ow.jsx)(Lt,{icon:f,showColors:!0},"icon"),d]}),isDisabled:p}}),[a])]},allowContext(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion(e){let{name:t,initialAttributes:o,innerBlocks:r,innerContent:n,syncStatus:i,blocks:s}=e;return{action:"replace",value:i==="unsynced"?(s??[]).map(a=>(0,Am.cloneBlock)(a)):(0,Am.createBlock)(t,o,(0,Am.createBlocksFromInnerBlocksTemplate)(r),n)}}}}var Ure=Mze();var $re=c(T(),1),Nze=[];function Yre({completers:e=Nze}){let{name:t}=kt();return(0,Gre.useMemo)(()=>{let o=[...e];return(t===(0,K2.getDefaultBlockName)()||(0,K2.getBlockSupport)(t,"__experimentalSlashInserter",!1))&&(o=[...o,Ure]),(0,$2.hasFilter)("editor.Autocomplete.completers")&&(o===e&&(o=o.map(r=>({...r}))),o=(0,$2.applyFilters)("editor.Autocomplete.completers",o,t)),o},[e,t])}function Kre(e){return(0,Y2.__unstableUseAutocompleteProps)({...e,completers:Yre(e)})}function Lze(e){return(0,$re.jsx)(Y2.Autocomplete,{...e,completers:Yre(e)})}var qre=Lze;var wne=c(Z(),1),Dm=c(q(),1);var vne=c(ee(),1);var tO=c(F(),1);var _r=c(Z(),1);var Un=c(q(),1);var rw=c(Z(),1);var va={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",rules:{"margin-block-start":"0"}},{selector:" > :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",rules:{"margin-block-start":"0"}},{selector:" > :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:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};function Ls(e,t=""){return e.split(",").map(o=>`$o}$t?` $t}`:""}`).join(",")}function Mm(e,t=va,o,r){let n="";return t?.[o]?.spacingStyles?.length&&r&&t[o].spacingStyles.forEach(i=>{n+=`$Ls(e,i.selector.trim())} { `,n+=Object.entries(i.rules).map(([s,a])=>`$s}: $a||r}`).join("; "),n+="; }"}),n}function q2(e){let{contentSize:t,wideSize:o,type:r="default"}=e,n={},i=/^(?!0)\d+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i;return i.test(t)&&r==="constrained"&&(n.none=(0,rw.sprintf)((0,rw.__)("Max %s wide"),t)),i.test(o)&&(n.wide=(0,rw.sprintf)((0,rw.__)("Max %s wide"),o)),n}var xc=c(Z(),1);var Uu=(e,t)=>e?.includes?e==="0"||e.includes(`var:preset|$t}|`):!1;function Z2(e,t){if(!e)return;if(e==="0"||e==="default")return e;let o=e.match(new RegExp(`var:preset\\|$t}\\|(.+)`));return o?o[1]:void 0}function Zre(e,t,o){if(e===void 0)return 0;let r=parseFloat(e,10)===0?"0":Z2(e,o),n=t.findIndex(i=>String(i.slug)===r);return n!==-1?n:NaN}function aH(e,t,o){if(!Uu(e,o))return e;let r=parseFloat(e,10)===0?"0":Z2(e,o);return t.find(i=>String(i.slug)===r)?.size}function Xre(e,t,o){if(!e||Uu(e,o)||e==="0")return e;let r=t.find(n=>String(n.size)===String(e));return r?.slug?`var:preset|$o}|$r.slug}`:e}var Qre="spacing",Jre=8,Nm=["top","bottom","left","right"],ene={top:void 0,right:void 0,bottom:void 0,left:void 0},X2={custom:WP,axial:WP,horizontal:zz,vertical:Uz,top:Wz,right:Hz,bottom:Fz,left:jz},Gu={default:(0,xc.__)("Spacing control"),top:(0,xc.__)("Top"),bottom:(0,xc.__)("Bottom"),left:(0,xc.__)("Left"),right:(0,xc.__)("Right"),mixed:(0,xc.__)("Mixed"),vertical:(0,xc.__)("Vertical"),horizontal:(0,xc.__)("Horizontal"),axial:(0,xc.__)("Horizontal & vertical"),custom:(0,xc.__)("Custom")},Ef={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function Q2(e){return Uu(e,Qre)}function tne(e,t){if(!Q2(e))return e;let o=Z2(e,Qre);return t.find(n=>String(n.slug)===o)?.size}function nw(e,t){if(!e||Q2(e)||e==="0")return e;let o=t.find(r=>String(r.size)===String(e));return o?.slug?`var:preset|spacing|$o.slug}`:e}function nl(e){if(!e||typeof e!="string")return;let t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--$t[1]})`:e}function lH(e,t){if(!e||!e.length)return!1;let o=e.includes("horizontal")||e.includes("left")&&e.includes("right"),r=e.includes("vertical")||e.includes("top")&&e.includes("bottom");return t==="horizontal"?o:t==="vertical"?r:o||r}function Dze(e=[]){let t={top:0,right:0,bottom:0,left:0};return e.forEach(o=>t[o]+=1),(t.top+t.bottom)%2===0&&(t.left+t.right)%2===0}function one(e={},t){let{top:o,right:r,bottom:n,left:i}=e,s=[o,r,n,i].filter(Boolean),a=o===n&&i===r&&(!!o||!!i),l=!s.length&&Dze(t),u=t?.includes("horizontal")&&t?.includes("vertical")&&t?.length===2;if(lH(t)&&(a||l))return Ef.axial;if(u&&s.length===1){let d;return Object.entries(e).some(([f,p])=>(d=f,p!==void 0)),d}return t?.length===1&&!s.length?t[0]:Ef.custom}function rne(e,t){let o=e?.inherit||e?.contentSize||e?.wideSize?{...e,type:"constrained"}:e||t||{};return["flex","grid"].includes(o?.type)}function iw(e){if(!e)return null;let t=typeof e=="string";return{top:t?e:e?.top,left:t?e:e?.left}}function _a(e,t="0"){let o=iw(e);if(!o)return null;let r=nl(o?.top)||t,n=nl(o?.left)||t;return r===n?r:`$r} $n}`}var Po=c(T(),1),Vze={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},nne={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},Fze={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},ine={horizontal:"center",vertical:"top"},zze={top:{icon:kC,label:(0,_r._x)("Align top","Block vertical alignment setting")},center:{icon:fC,label:(0,_r._x)("Align middle","Block vertical alignment setting")},bottom:{icon:uC,label:(0,_r._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:vC,label:(0,_r._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:hC,label:(0,_r._x)("Space between","Block vertical alignment setting")}},jze=["wrap","nowrap"],lne={name:"flex",label:(0,_r.__)("Flex"),hasInspectorControls(e={}){let{allowOrientation:t=!0,allowJustification:o=!0,allowVerticalAlignment:r=!0,allowWrap:n=!0}=e;return t||o||r||n},inspectorControls:function({layout:t={},onChange:o,layoutBlockSupport:r={},resetLayout:n={},clientId:i}){let{allowOrientation:s=!0,allowJustification:a=!0,allowVerticalAlignment:l=!0,allowWrap:u=!0}=r,d=(_,w)=>(t?.[_]??w)!==(n?.[_]??w),f=()=>d("justifyContent","left"),p=()=>d("verticalAlignment",cne(t)),m=()=>d("orientation","horizontal"),g=()=>d("flexWrap","wrap"),h=()=>o(Xe({...t,justifyContent:n?.justifyContent})),b=()=>o(Xe({...t,verticalAlignment:Hze(n?.verticalAlignment,t?.orientation)})),v=()=>{let{verticalAlignment:_,justifyContent:w}=t,k=n?.orientation,x=!k||k==="horizontal";o(Xe({...t,orientation:k,verticalAlignment:n?.verticalAlignment??(x&&_==="space-between"?"center":_),justifyContent:n?.justifyContent??(x&&w==="stretch"?"left":w)}))},y=()=>o(Xe({...t,flexWrap:n?.flexWrap}));return(0,Po.jsxs)(Po.Fragment,{children:[(a||s)&&(0,Po.jsxs)(Un.Flex,{align:"flex-start",className:"block-editor-hooks__flex-layout-controls",gap:4,justify:"flex-start",children:[a&&(0,Po.jsx)(Un.__experimentalToolsPanelItem,{label:(0,_r.__)("Justification"),hasValue:f,onDeselect:h,isShownByDefault:!0,panelId:i,children:(0,Po.jsx)(ane,{layout:t,onChange:o})}),s&&(0,Po.jsx)(Un.__experimentalToolsPanelItem,{label:(0,_r.__)("Orientation"),hasValue:m,onDeselect:v,isShownByDefault:!0,panelId:i,children:(0,Po.jsx)($ze,{layout:t,onChange:o})})]}),l&&(0,Po.jsx)(Un.__experimentalToolsPanelItem,{label:(0,_r.__)("Alignment"),hasValue:p,onDeselect:b,panelId:i,children:(0,Po.jsx)(sne,{layout:t,onChange:o})}),u&&(0,Po.jsx)(Un.__experimentalToolsPanelItem,{label:(0,_r.__)("Wrapping"),hasValue:g,onDeselect:y,panelId:i,children:(0,Po.jsx)(Gze,{layout:t,onChange:o})})]})},toolBarControls:function({layout:t={},onChange:o,layoutBlockSupport:r,controlsGroup:n="block"}){let{allowVerticalAlignment:i=!0,allowJustification:s=!0}=r;return!s&&!i?null:(0,Po.jsxs)(Ko,{group:n,__experimentalShareWithChildBlocks:!0,children:[s&&(0,Po.jsx)(ane,{layout:t,onChange:o,isToolbar:!0}),i&&(0,Po.jsx)(sne,{layout:t,onChange:o,isToolbar:!0})]})},getLayoutStyle:function({selector:t,layout:o={},viewportOverrides:r,style:n,blockName:i,hasBlockGapSupport:s,globalBlockGapValue:a,layoutDefinitions:l=va}){let u=r!==void 0,d=u?{...o,...r}:o,f=S=>Object.hasOwn(r||{},S),{orientation:p="horizontal"}=d,m="0.5em";if(a){let S=iw(a);m=nl(S?.left)||nl(S?.top)||"0.5em"}let g=n?.spacing?.blockGap&&!io(i,"spacing","blockGap")?_a(n?.spacing?.blockGap,m):void 0,h=!u||Object.hasOwn(n?.spacing||{},"blockGap"),b=Vze[d.justifyContent],v=jze.includes(d.flexWrap)?d.flexWrap:"wrap",y=Fze[d.verticalAlignment],_=nne[d.justifyContent]||nne.left,w="",k=[],x=!u||f("flexWrap"),C=!u||f("orientation"),E=!u||f("justifyContent")||f("orientation"),R=!u||f("verticalAlignment")||f("orientation");return x&&v&&v!=="wrap"&&k.push(`flex-wrap: $v}`),p==="horizontal"?(f("orientation")&&k.push("flex-direction: row"),R&&y&&k.push(`align-items: $y}`),E&&b&&k.push(`justify-content: $b}`)):(R&&y&&k.push(`justify-content: $y}`),C&&k.push("flex-direction: column"),E&&k.push(`align-items: $_}`)),k.length&&(w=`$Ls(t)} { 64 $k.join("; ")}; 65 }`),s&&h&&g&&(w+=Mm(t,l,"flex",g)),w},getOrientation(e){let{orientation:t="horizontal"}=e;return t},getAlignments(){return[]}};function cne({orientation:e="horizontal"}={}){return e==="horizontal"?ine.horizontal:ine.vertical}function Hze(e,t){if(!(t==="horizontal"&&e==="space-between"||t==="vertical"&&e==="stretch"))return e}function Wze(e){return e==="horizontal"?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]}function sne({layout:e,onChange:t,isToolbar:o=!1}){let{orientation:r="horizontal"}=e,{verticalAlignment:n=cne(e)}=e,i=a=>{t({...e,verticalAlignment:a})},s=Wze(r);return o?(0,Po.jsx)(J2,{onChange:i,value:n,controls:s}):(0,Po.jsx)(Un.__experimentalToggleGroupControl,{label:(0,_r.__)("Alignment"),onChange:i,value:n,className:"block-editor-hooks__flex-layout-alignment-controls",children:s.map(a=>{let{icon:l,label:u}=zze[a];return(0,Po.jsx)(Un.__experimentalToggleGroupControlOptionIcon,{value:a,icon:l,label:u},a)})})}var Uze={placement:"bottom-start"};function ane({layout:e,onChange:t,isToolbar:o=!1}){let{justifyContent:r="left",orientation:n="horizontal"}=e,i=l=>{t({...e,justifyContent:l})},s=["left","center","right"];if(n==="horizontal"?s.push("space-between"):s.push("stretch"),o)return(0,Po.jsx)(sw,{allowedControls:s,value:r,onChange:i,popoverProps:Uze});let a=[{value:"left",icon:ym,label:(0,_r.__)("Justify items left")},{value:"center",icon:bm,label:(0,_r.__)("Justify items center")},{value:"right",icon:vm,label:(0,_r.__)("Justify items right")}];return n==="horizontal"?a.push({value:"space-between",icon:S_,label:(0,_r.__)("Space between items")}):a.push({value:"stretch",icon:T_,label:(0,_r.__)("Stretch items")}),(0,Po.jsx)(Un.__experimentalToggleGroupControl,{label:(0,_r.__)("Justification"),value:r,onChange:i,className:"block-editor-hooks__flex-layout-justification-controls",children:a.map(({value:l,icon:u,label:d})=>(0,Po.jsx)(Un.__experimentalToggleGroupControlOptionIcon,{value:l,icon:u,label:d},l))})}function Gze({layout:e,onChange:t}){let{flexWrap:o="wrap"}=e;return(0,Po.jsx)(Un.ToggleControl,{label:(0,_r.__)("Allow to wrap to multiple lines"),onChange:r=>{t({...e,flexWrap:r?"wrap":"nowrap"})},checked:o==="wrap"})}function $ze({layout:e,onChange:t}){let{orientation:o="horizontal",verticalAlignment:r,justifyContent:n}=e;return(0,Po.jsxs)(Un.__experimentalToggleGroupControl,{className:"block-editor-hooks__flex-layout-orientation-controls",label:(0,_r.__)("Orientation"),value:o,onChange:i=>{let s=r,a=n;return i==="horizontal"?(r==="space-between"&&(s="center"),n==="stretch"&&(a="left")):(r==="stretch"&&(s="top"),n==="space-between"&&(a="left")),t({...e,orientation:i,verticalAlignment:s,justifyContent:a})},children:[(0,Po.jsx)(Un.__experimentalToggleGroupControlOptionIcon,{icon:eC,value:"horizontal",label:(0,_r.__)("Horizontal")}),(0,Po.jsx)(Un.__experimentalToggleGroupControlOptionIcon,{icon:M9,value:"vertical",label:(0,_r.__)("Vertical")})]})}var une=c(Z(),1);var dne={name:"default",label:(0,une.__)("Flow"),hasInspectorControls(){return!1},inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:t,style:o,blockName:r,hasBlockGapSupport:n,layoutDefinitions:i=va}){let s=o?.spacing?.blockGap,a="";io(r,"spacing","blockGap")||(s?.top?a=_a(s?.top):typeof s=="string"&&(a=_a(s)));let l="";return n&&a&&(l+=Mm(t,i,"default",a)),l},getOrientation(){return"vertical"},getAlignments(e,t){let o=q2(e);if(e.alignments!==void 0)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map(n=>({name:n,info:o[n]}));let r=[{name:"left"},{name:"center"},{name:"right"}];if(!t){let{contentSize:n,wideSize:i}=e;n&&r.unshift({name:"full"}),i&&r.unshift({name:"wide",info:o.wide})}return r.unshift({name:"none",info:o.none}),r}};var Oi=c(q(),1),il=c(Z(),1);var fne=c(F_(),1);var Mr=c(T(),1),Yze="var(--wp--style--global--content-size, none)",Kze="var(--wp--style--global--wide-size, none)",pne={name:"constrained",label:(0,il.__)("Constrained"),hasInspectorControls(e={}){let{allowJustification:t=!0,allowCustomContentAndWideSize:o=!0}=e;return t||o},inspectorControls:function({layout:t,onChange:o,layoutBlockSupport:r={},resetLayout:n={},clientId:i}){let{wideSize:s,contentSize:a,justifyContent:l="center"}=t,{allowJustification:u=!0,allowCustomContentAndWideSize:d=!0}=r,f=x=>{o({...t,justifyContent:x})},p=[{value:"left",icon:ym,label:(0,il.__)("Justify items left")},{value:"center",icon:bm,label:(0,il.__)("Justify items center")},{value:"right",icon:vm,label:(0,il.__)("Justify items right")}],[m]=je("spacing.units"),g=(0,Oi.__experimentalUseCustomUnits)({availableUnits:m||["%","px","em","rem","vw"]}),h=(x,C)=>(t?.[x]??C)!==(n?.[x]??C),b=()=>o(Xe({...t,contentSize:n?.contentSize})),v=()=>o(Xe({...t,wideSize:n?.wideSize})),y=()=>o(Xe({...t,justifyContent:n?.justifyContent})),_=()=>h("contentSize"),w=()=>h("wideSize"),k=()=>h("justifyContent","center");return(0,Mr.jsxs)(Mr.Fragment,{children:[d&&(0,Mr.jsxs)(Mr.Fragment,{children:[(0,Mr.jsx)(Oi.__experimentalToolsPanelItem,{label:(0,il.__)("Content width"),hasValue:_,onDeselect:b,panelId:i,children:(0,Mr.jsx)(Oi.__experimentalUnitControl,{label:(0,il.__)("Content width"),labelPosition:"top",value:a===null?"":a||s||"",onChange:x=>{x=0>parseFloat(x)?"0":x,o({...t,contentSize:x!==""?x:void 0})},units:g,prefix:(0,Mr.jsx)(Oi.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Mr.jsx)(xt,{icon:cb})})})}),(0,Mr.jsxs)(Oi.__experimentalToolsPanelItem,{label:(0,il.__)("Wide width"),hasValue:w,onDeselect:v,panelId:i,children:[(0,Mr.jsx)(Oi.__experimentalUnitControl,{label:(0,il.__)("Wide width"),labelPosition:"top",value:s===null?"":s||a||"",onChange:x=>{x=0>parseFloat(x)?"0":x,o({...t,wideSize:x!==""?x:void 0})},units:g,prefix:(0,Mr.jsx)(Oi.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Mr.jsx)(xt,{icon:xb})})}),(0,Mr.jsx)("p",{className:"block-editor-hooks__layout-constrained-helptext",children:(0,il.__)("Customize the width for all elements that are assigned to the center or wide columns.")})]})]}),u&&(0,Mr.jsx)(Oi.__experimentalToolsPanelItem,{label:(0,il.__)("Justification"),hasValue:k,onDeselect:y,panelId:i,children:(0,Mr.jsx)(Oi.__experimentalToggleGroupControl,{label:(0,il.__)("Justification"),value:l,onChange:f,children:p.map(({value:x,icon:C,label:E})=>(0,Mr.jsx)(Oi.__experimentalToggleGroupControlOptionIcon,{value:x,icon:C,label:E},x))})})]})},toolBarControls:function({layout:t={},onChange:o,layoutBlockSupport:r,controlsGroup:n="block"}){let{allowJustification:i=!0}=r;return i?(0,Mr.jsx)(Ko,{group:n,__experimentalShareWithChildBlocks:!0,children:(0,Mr.jsx)(Zze,{layout:t,onChange:o})}):null},getLayoutStyle:function({selector:t,layout:o={},viewportOverrides:r,style:n,blockName:i,hasBlockGapSupport:s,layoutDefinitions:a=va}){let l=r!==void 0,u=l?{...o,...r}:o,d=A=>Object.hasOwn(r||{},A),{contentSize:f,wideSize:p,justifyContent:m}=u,g=n?.spacing?.blockGap,h=!l||Object.hasOwn(n?.spacing||{},"blockGap"),b=!l||Object.hasOwn(n?.spacing||{},"padding"),v="";io(i,"spacing","blockGap")||(g?.top?v=_a(g?.top):typeof g=="string"&&(v=_a(g)));let y=m==="left"?"0 !important":"auto !important",_=m==="right"?"0 !important":"auto !important",w=l&&d("justifyContent"),k=l&&d("contentSize"),x=l&&d("wideSize"),C=!l||k||x,E=l&&(k&&!f||x&&!p),R=f||(p&&!k?p:Yze),S=p||(f&&!x?f:Kze),I=[`max-width: $R}`];(!l||w)&&I.push(`margin-left: $y}`,`margin-right: $_}`);let O=C&&(f||p||E)?` 66 $Ls(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} { 67 $I.join("; ")}; 68 } 69 $Ls(t,"> .alignwide")} { 70 max-width: $S}; 71 } 72 $Ls(t,"> .alignfull")} { 73 max-width: none; 74 } 75 `:"";return w&&!C?O+=`$Ls(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} 76 { margin-left: $y}; margin-right: $_}; }`:l||(m==="left"?O+=`$Ls(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} 77 { margin-left: $y}; }`:m==="right"&&(O+=`$Ls(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} 78 { margin-right: $_}; }`)),b&&n?.spacing?.padding&&(0,fne.getCSSRules)(n).forEach(P=>{if(P.key==="paddingRight"){let L=P.value==="0"?"0px":P.value;O+=` 79 $Ls(t,"> .alignfull")} { 80 margin-right: calc($L} * -1); 81 } 82 `}else if(P.key==="paddingLeft"){let L=P.value==="0"?"0px":P.value;O+=` 83 $Ls(t,"> .alignfull")} { 84 margin-left: calc($L} * -1); 85 } 86 `}}),s&&h&&v&&(O+=Mm(t,a,"constrained",v)),O},getOrientation(){return"vertical"},getAlignments(e){let t=q2(e);if(e.alignments!==void 0)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map(i=>({name:i,info:t[i]}));let{contentSize:o,wideSize:r}=e,n=[{name:"left"},{name:"center"},{name:"right"}];return o&&n.unshift({name:"full"}),r&&n.unshift({name:"wide",info:t.wide}),n.unshift({name:"none",info:t.none}),n}},qze={placement:"bottom-start"};function Zze({layout:e,onChange:t}){let{justifyContent:o="center"}=e;return(0,Mr.jsx)(sw,{allowedControls:["left","center","right"],value:o,onChange:i=>{t({...e,justifyContent:i})},popoverProps:qze})}var Yr=c(Z(),1),qt=c(q(),1),eO=c(F(),1);var zt=c(T(),1),Xze={px:600,"%":100,vw:100,vh:100,em:38,rem:38,svw:100,lvw:100,dvw:100,svh:100,lvh:100,dvh:100,vi:100,svi:100,lvi:100,dvi:100,vb:100,svb:100,lvb:100,dvb:100,vmin:100,svmin:100,lvmin:100,dvmin:100,vmax:100,svmax:100,lvmax:100,dvmax:100},Qze=[{value:"px",label:"px",default:0},{value:"rem",label:"rem",default:0},{value:"em",label:"em",default:0}],mne={name:"grid",label:(0,Yr.__)("Grid"),hasInspectorControls(){return!0},inspectorControls:function({layout:t={},onChange:o,layoutBlockSupport:r={},resetLayout:n={},clientId:i}){let{allowSizingOnChildren:s=!1}=r,a=!0,l=!t?.isManualPlacement||window.__experimentalEnableGridInteractivity,u=!t?.isManualPlacement,d=t.isManualPlacement?3:void 0,f=(w,k)=>(t?.[w]??k)!==(n?.[w]??k),p=()=>f("isManualPlacement",!1),m=()=>f("columnCount",d)||f("rowCount"),g=()=>f("minimumColumnWidth"),h=()=>f("autoFit",!1),b=()=>o(Xe({...t,isManualPlacement:n?.isManualPlacement,rowCount:n?.rowCount,minimumColumnWidth:n?.minimumColumnWidth})),v=()=>o(Xe({...t,columnCount:n?.columnCount??d,rowCount:n?.rowCount})),y=()=>o(Xe({...t,minimumColumnWidth:n?.minimumColumnWidth})),_=()=>o(Xe({...t,autoFit:n?.autoFit}));return(0,zt.jsxs)(zt.Fragment,{children:[window.__experimentalEnableGridInteractivity&&(0,zt.jsx)(qt.__experimentalToolsPanelItem,{label:(0,Yr.__)("Grid item position"),hasValue:p,onDeselect:b,isShownByDefault:!0,panelId:i,children:(0,zt.jsx)(oje,{layout:t,onChange:o})}),a&&(0,zt.jsx)(qt.__experimentalToolsPanelItem,{label:(0,Yr.__)("Columns and rows"),hasValue:m,onDeselect:v,isShownByDefault:!0,panelId:i,children:(0,zt.jsx)(eje,{layout:t,onChange:o,allowSizingOnChildren:s})}),l&&(0,zt.jsx)(qt.__experimentalToolsPanelItem,{label:(0,Yr.__)("Min. column width"),hasValue:g,onDeselect:y,isShownByDefault:!0,panelId:i,children:(0,zt.jsx)(Jze,{layout:t,onChange:o})}),u&&(0,zt.jsx)(qt.__experimentalToolsPanelItem,{label:(0,Yr.__)("Fill available space"),hasValue:h,onDeselect:_,panelId:i,children:(0,zt.jsx)(tje,{layout:t,onChange:o})})]})},toolBarControls:function(){return null},getLayoutStyle:function({selector:t,layout:o={},viewportOverrides:r,style:n,blockName:i,hasBlockGapSupport:s,globalBlockGapValue:a,layoutDefinitions:l=va}){let u=r!==void 0,d=u?{...o,...r}:o,f=E=>Object.hasOwn(r||{},E),{minimumColumnWidth:p=null,columnCount:m=null,rowCount:g=null,autoFit:h=!1}=d,b=h?"auto-fit":"auto-fill",v="1.2rem";if(a){let E=iw(a);v=nl(E?.left)||nl(E?.top)||"1.2rem"}let y=n?.spacing?.blockGap&&!io(i,"spacing","blockGap")?_a(n?.spacing?.blockGap,v):void 0,_=!u||Object.hasOwn(n?.spacing||{},"blockGap"),w="",k=[],x=!u||f("minimumColumnWidth")||f("columnCount")||f("autoFit")||_&&p&&m>0,C=(!u||f("rowCount"))&&m&&g;if(x&&p&&m>0){let E=y?iw(n.spacing.blockGap):void 0,R=nl(E?.left)||v;(R==="0"||R===0)&&(R="0px");let S=`max(min( $p}, 100%), ( 100% - ($R}*$m-1}) ) / $m})`;k.push(`grid-template-columns: repeat($b}, minmax($S}, 1fr))`)}else x&&m?k.push(`grid-template-columns: repeat($m}, minmax(0, 1fr))`):x&&k.push(`grid-template-columns: repeat($b}, minmax(min($p||"12rem"}, 100%), 1fr))`);if(x){let E=!o?.columnCount||o?.columnCount&&o?.minimumColumnWidth;(!m||p)&&(!u||!E)&&k.push("container-type: inline-size")}return C&&k.push(`grid-template-rows: repeat($g}, minmax(1rem, auto))`),k.length&&(w=`$Ls(t)} { $k.join("; ")}; }`),s&&_&&y&&(w+=Mm(t,l,"grid",y)),w},getOrientation(){return"horizontal"},getAlignments(){return[]}};function Jze({layout:e,onChange:t}){let{minimumColumnWidth:o,columnCount:r,isManualPlacement:n}=e,s=o||(n||r?null:"12rem"),[a,l="rem"]=(0,qt.__experimentalParseQuantityAndUnitFromRawValue)(s),u=f=>{t({...e,minimumColumnWidth:[f,l].join("")})},d=f=>{let p;["em","rem"].includes(f)&&l==="px"?p=(a/16).toFixed(2)+f:["em","rem"].includes(l)&&f==="px"&&(p=Math.round(a*16)+f),t({...e,minimumColumnWidth:p})};return(0,zt.jsxs)("fieldset",{className:"block-editor-hooks__grid-layout-minimum-width-control",children:[(0,zt.jsx)(qt.BaseControl.VisualLabel,{as:"legend",children:(0,Yr.__)("Min. column width")}),(0,zt.jsxs)(qt.Flex,{gap:4,children:[(0,zt.jsx)(qt.FlexItem,{isBlock:!0,children:(0,zt.jsx)(qt.__experimentalUnitControl,{onChange:f=>{t({...e,minimumColumnWidth:f===""?void 0:f})},onUnitChange:d,value:s,units:Qze,min:0,label:(0,Yr.__)("Minimum column width"),hideLabelFromVision:!0})}),(0,zt.jsx)(qt.FlexItem,{isBlock:!0,children:(0,zt.jsx)(qt.RangeControl,{onChange:u,value:a||0,min:0,max:Xze[l]||600,withInputField:!1,label:(0,Yr.__)("Minimum column width"),hideLabelFromVision:!0})})]}),(0,zt.jsx)("p",{className:"components-base-control__help",children:(0,Yr.__)("Columns will wrap to fewer per row when they can no longer maintain the minimum width.")})]})}function eje({layout:e,onChange:t,allowSizingOnChildren:o}){let{columnCount:n=void 0,rowCount:i,isManualPlacement:s}=e;return(0,zt.jsx)(zt.Fragment,{children:(0,zt.jsxs)("fieldset",{className:"block-editor-hooks__grid-layout-columns-and-rows-controls",children:[!s&&(0,zt.jsx)(qt.BaseControl.VisualLabel,{as:"legend",children:(0,Yr.__)("Max. columns")}),(0,zt.jsxs)(qt.Flex,{gap:4,children:[(0,zt.jsx)(qt.FlexItem,{isBlock:!0,children:(0,zt.jsx)(qt.__experimentalNumberControl,{onChange:a=>{let u=a===""||a==="0"?s?1:void 0:parseInt(a,10);t({...e,columnCount:u})},value:n??"",min:1,label:(0,Yr.__)("Columns"),hideLabelFromVision:!s})}),(0,zt.jsx)(qt.FlexItem,{isBlock:!0,children:o&&s?(0,zt.jsx)(qt.__experimentalNumberControl,{onChange:a=>{let l=a===""||a==="0"?1:parseInt(a,10);t({...e,rowCount:l})},value:i,min:1,label:(0,Yr.__)("Rows")}):(0,zt.jsx)(qt.RangeControl,{value:n??1,onChange:a=>t({...e,columnCount:a===""||a==="0"?1:a}),min:1,max:16,withInputField:!1,label:(0,Yr.__)("Columns"),hideLabelFromVision:!0})})]})]})})}function tje({layout:e,onChange:t}){let{autoFit:o=!1}=e;return(0,zt.jsx)(qt.ToggleControl,{label:(0,Yr.__)("Fill available space"),help:(0,Yr.__)("Stretch columns to fill the available space, instead of leaving gaps when there are too few items to fill a row."),checked:o,onChange:r=>t({...e,autoFit:r})})}function oje({layout:e,onChange:t}){let{columnCount:o,rowCount:r,minimumColumnWidth:n,isManualPlacement:i}=e,[s,a]=(0,eO.useState)(o||3),[l,u]=(0,eO.useState)(r),[d,f]=(0,eO.useState)(n||"12rem"),p=i?"manual":"auto",m=h=>{h==="manual"?f(n||"12rem"):(a(o||3),u(r)),t({...e,columnCount:s,rowCount:h==="manual"?l:void 0,isManualPlacement:h==="manual"?!0:void 0,minimumColumnWidth:h==="auto"?d:null})},g=p==="manual"?(0,Yr.__)("Grid items can be manually placed in any position on the grid."):(0,Yr.__)("Grid items are placed automatically depending on their order.");return(0,zt.jsxs)(qt.__experimentalToggleGroupControl,{label:(0,Yr.__)("Grid item position"),value:p,onChange:m,isBlock:!0,help:g,children:[(0,zt.jsx)(qt.__experimentalToggleGroupControlOption,{value:"auto",label:(0,Yr.__)("Auto")},"auto"),(0,zt.jsx)(qt.__experimentalToggleGroupControlOption,{value:"manual",label:(0,Yr.__)("Manual")},"manual")]})}var gne=[dne,lne,pne,mne];function sl(e="default"){return gne.find(t=>t.name===e)}function hne(){return gne}var cH=c(T(),1),uH={type:"default"},dH=(0,tO.createContext)(uH);dH.displayName="BlockLayoutContext";var oO=dH.Provider;function Pb(){return(0,tO.useContext)(dH)}function bne({layout:e={},css:t,...o}){let r=sl(e.type),[n]=je("spacing.blockGap"),i=n!==null;if(r){if(t)return(0,cH.jsx)("style",{children:t});let s=r.getLayoutStyle?.({hasBlockGapSupport:i,layout:e,...o});if(s)return(0,cH.jsx)("style",{children:s})}return null}var rO=[],yne=["none","left","center","right","wide","full"],rje=["wide","full"];function _1(e=yne){e.includes("none")||(e=["none",...e]);let t=e.length===1&&e[0]==="none",[o,r,n]=(0,vne.useSelect)(l=>{if(t)return[!1,!1,!1];let u=l(B).getSettings();return[u.alignWide??!1,u.supportsLayout,u.__unstableIsBlockBasedTheme]},[t]),i=Pb();if(t)return rO;let s=sl(i?.type);if(r){let u=s.getAlignments(i,n).filter(d=>e.includes(d.name));return u.length===1&&u[0].name==="none"?rO:u}if(s.name!=="default"&&s.name!=="constrained")return rO;let a=e.filter(l=>i.alignments?i.alignments.includes(l):!o&&rje.includes(l)?!1:yne.includes(l)).map(l=>({name:l}));return a.length===1&&a[0].name==="none"?rO:a}var Lm=c(Z(),1);var w1={none:{icon:cb,title:(0,Lm._x)("None","Alignment option")},left:{icon:_z,title:(0,Lm.__)("Align left")},center:{icon:vz,title:(0,Lm.__)("Align center")},right:{icon:wz,title:(0,Lm.__)("Align right")},wide:{icon:xb,title:(0,Lm.__)("Wide width")},full:{icon:YC,title:(0,Lm.__)("Full width")}},_ne="none";var Ob=c(T(),1);function nje({value:e,onChange:t,controls:o,isToolbar:r,isCollapsed:n=!0,label:i=(0,wne.__)("Align block"),description:s}){let a=_1(o);if(!!!a.length)return null;function u(h){t([e,"none"].includes(h)?void 0:h)}let d=w1[e],f=w1[_ne],p=r?Dm.ToolbarGroup:Dm.ToolbarDropdownMenu,m={icon:d?d.icon:f.icon,label:i},g=r?{isCollapsed:n,controls:a.map(({name:h})=>({...w1[h],isActive:e===h||!e&&h==="none",role:n?"menuitemradio":void 0,onClick:()=>u(h)}))}:{toggleProps:s?{description:s}:{},children:({onClose:h})=>(0,Ob.jsx)(Ob.Fragment,{children:(0,Ob.jsx)(Dm.MenuGroup,{className:"block-editor-block-alignment-control__menu-group",children:a.map(({name:b,info:v})=>{let{icon:y,title:_}=w1[b],w=b===e||!e&&b==="none";return(0,Ob.jsx)(Dm.MenuItem,{icon:y,iconPosition:"left",className:Y("components-dropdown-menu__menu-item",{"is-active":w}),isSelected:w,onClick:()=>{u(b),h()},role:"menuitemradio",info:v,children:_},b)})})})};return(0,Ob.jsx)(p,{...m,...g})}var fH=nje;var pH=c(T(),1),nO=e=>(0,pH.jsx)(fH,{...e,isToolbar:!1}),kne=e=>(0,pH.jsx)(fH,{...e,isToolbar:!0});var Tne=c(ab(),1),lO=c(Z(),1),cO=c(ce(),1),Cc=c(q(),1),hH=c(ee(),1),Rne=c(F(),1),Bne=c(ue(),1);var gH=c(ab(),1),xne=c(ce(),1),Sne=c(q(),1),Cne=c(ee(),1),sO=c(F(),1),Ene=c(ue(),1);var iO=c(ee(),1);function mH(e){return!e||Object.keys(e).length===0}function Tf(e){let{clientId:t}=kt(),o=e||t,{updateBlockAttributes:r}=(0,iO.useDispatch)(B),{getBlockAttributes:n}=(0,iO.useRegistry)().select(B);return{updateBlockBindings:a=>{let{metadata:{bindings:l,...u}={}}=n(o),d={...l};Object.entries(a).forEach(([p,m])=>{if(!m&&d[p]){delete d[p];return}d[p]=m});let f={...u,bindings:d};mH(f.bindings)&&delete f.bindings,r(o,{metadata:mH(f)?void 0:f})},removeAllBlockBindings:()=>{let{metadata:{bindings:a,...l}={}}=n(o);r(o,{metadata:mH(l)?void 0:l})}}}var Sc=c(T(),1),{Menu:Vm}=K(Sne.privateApis);function ije({args:e,attribute:t,field:o,source:r,sourceKey:n}){let i=(0,sO.useMemo)(()=>({source:n,args:o.args||{key:o.key}}),[o.args,o.key,n]),s=(0,sO.useContext)(Hn),a=(0,Cne.useSelect)(u=>r.getValues({select:u,context:s,bindings:{[t]:i}}),[t,s,i,r]),{updateBlockBindings:l}=Tf();return(0,Sc.jsxs)(Vm.CheckboxItem,{onChange:()=>{let u=(0,gH.default)(e,o.args)??o.key===e?.key;l(u?{[t]:void 0}:{[t]:i})},name:t+"-binding",value:a[t],checked:(0,gH.default)(e,o.args)??o.key===e?.key,children:[(0,Sc.jsx)(Vm.ItemLabel,{children:o.label}),(0,Sc.jsx)(Vm.ItemHelpText,{children:a[t]})]})}function k1({args:e,attribute:t,sourceKey:o,fields:r}){let n=(0,Ene.useViewportMatch)("medium","<");if(!r||r.length===0)return null;let i=(0,xne.getBlockBindingsSource)(o);return(0,Sc.jsxs)(Vm,{placement:n?"bottom-start":"left-start",children:[(0,Sc.jsx)(Vm.SubmenuTriggerItem,{children:(0,Sc.jsx)(Vm.ItemLabel,{children:i.label})}),(0,Sc.jsx)(Vm.Popover,{gutter:8,children:(0,Sc.jsx)(Vm.Group,{children:r.map(s=>(0,Sc.jsx)(ije,{args:e,attribute:t,field:s,source:i,sourceKey:o},o+JSON.stringify(s.args)||s.key))})})]},o)}var al=c(T(),1),{Menu:aO}=K(Cc.privateApis);function x1({attribute:e,binding:t,blockName:o}){let{updateBlockBindings:r}=Tf(),n=(0,Bne.useViewportMatch)("medium","<"),i=(0,Rne.useContext)(Hn),s=(0,hH.useSelect)(h=>{let{getAllBlockBindingsSources:b,getBlockBindingsSourceFieldsList:v,getBlockType:y}=K(h(cO.store)),_=y(o).attributes?.[e];if(_?.enum)return{};let w=_?.type==="rich-text"?"string":_?.type,k={};return Object.entries(b()).forEach(([x,C])=>{let E=v(C,i);if(!E?.length)return;let R=E.filter(S=>S.type===w);R.length&&(k[x]=R)}),k},[e,o,i]),{canUpdateBlockBindings:a}=(0,hH.useSelect)(h=>({canUpdateBlockBindings:h(B).getSettings().canUpdateBlockBindings})),l=Object.keys(s).length>0,u=!a||!l,{source:d,args:f}=t||{},p=(0,cO.getBlockBindingsSource)(d),m,g=!0;return t===void 0?(l?m=(0,lO.__)("Not connected"):m=(0,lO.__)("No sources available"),g=!0):p?m=s?.[d]?.find(h=>(0,Tne.default)(h.args,f))?.label||p?.label||d:(g=!1,m=(0,lO.__)("Source not registered")),(0,al.jsx)(Cc.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:e,onDeselect:!!l&&(()=>{r({[e]:void 0})}),children:(0,al.jsxs)(aO,{placement:n?"bottom-start":"left-start",children:[(0,al.jsx)(aO.TriggerButton,{render:(0,al.jsx)(Cc.__experimentalItem,{}),disabled:!l,children:(0,al.jsxs)(Cc.__experimentalVStack,{className:"block-editor-bindings__item",spacing:0,children:[(0,al.jsx)(Cc.__experimentalText,{truncate:!0,children:e}),(0,al.jsx)(Cc.__experimentalText,{truncate:!0,variant:g?"muted":void 0,isDestructive:!g,children:m})]})}),!u&&(0,al.jsx)(aO.Popover,{gutter:n?8:36,children:(0,al.jsx)(aO,{placement:n?"bottom-start":"left-start",children:Object.entries(s).map(([h,b])=>(0,al.jsx)(k1,{args:t?.args,attribute:e,sourceKey:h,fields:b},h))})})]})})}var Ine=c(Z(),1),Pne=c(q(),1);var One=c(T(),1);function sje({isActive:e,label:t=(0,Ine.__)("Full height"),onToggle:o,isDisabled:r}){return(0,One.jsx)(Pne.ToolbarButton,{isActive:e,icon:A7,label:t,onClick:()=>o(!e),disabled:r})}var Ane=sje;var Nne=c(Z(),1),Lne=c(wo(),1),Ab=c(q(),1),S1=c(T(),1),aje=()=>{};function lje(e){let{label:t=(0,Nne.__)("Change matrix alignment"),onChange:o=aje,value:r="center",isDisabled:n}=e,i=(0,S1.jsx)(Ab.AlignmentMatrixControl.Icon,{value:r});return(0,S1.jsx)(Ab.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({onToggle:s,isOpen:a})=>(0,S1.jsx)(Ab.ToolbarButton,{onClick:s,"aria-haspopup":"true","aria-expanded":a,onKeyDown:u=>{!a&&u.keyCode===Lne.DOWN&&(u.preventDefault(),s())},label:t,icon:i,showTooltip:!0,disabled:n}),renderContent:()=>(0,S1.jsx)(Ab.AlignmentMatrixControl,{onChange:o,value:r})})}var Dne=lje;var vH=c(q(),1),fO=c(ee(),1),pO=c(Z(),1);var Une=c(F(),1);var Vne=c(ee(),1),uO=c(ce(),1);function ui({clientId:e,maximumLength:t,context:o}){let r=(0,Vne.useSelect)(n=>{if(!e)return null;let{getBlockName:i,getBlockAttributes:s,getBlock:a}=n(B),{getBlockType:l,getActiveBlockVariation:u}=n(uO.store),d=i(e),f=l(d);if(!f)return null;let p=s(e),m=(0,uO.__experimentalGetBlockLabel)(f,p,o);return m!==f.title?m:u(d,p,void 0,a?.(e)?.innerContent)?.title||f.title},[e,o]);return r?t&&t>0&&r.length>t?r.slice(0,t-3)+"...":r:null}function C1({clientId:e,maximumLength:t,context:o}){return ui({clientId:e,maximumLength:t,context:o})}var Mb=c(F(),1),jne=c(ue(),1);var dO=c(F(),1),bH=c(ue(),1),Fne=c(T(),1),Ec=(0,dO.createContext)({refsMap:(0,bH.observableMap)(),eventHandlers:new Map});Ec.displayName="BlockRefsContext";function zne({children:e}){let t=(0,dO.useMemo)(()=>({refsMap:(0,bH.observableMap)(),eventHandlers:new Map}),[]);return(0,Fne.jsx)(Ec.Provider,{value:t,children:e})}function Hne(e){let{refsMap:t}=(0,Mb.useContext)(Ec);return(0,jne.useRefEffect)(o=>(t.set(e,o),()=>t.delete(e)),[e])}function yH(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Nb(e,t){let{refsMap:o}=(0,Mb.useContext)(Ec);(0,Mb.useLayoutEffect)(()=>{yH(t,o.get(e));let r=o.subscribe(e,()=>yH(t,o.get(e)));return()=>{r(),yH(t,null)}},[o,e,t])}function Zt(e){let[t,o]=(0,Mb.useState)(null);return Nb(e,o),t}function Wne(e){if(!e)return null;let t=Array.from(document.querySelectorAll('iframe[name="editor-canvas"]').values()).find(o=>(o.contentDocument||o.contentWindow.document)===e.ownerDocument)??e;return t?.closest('[role="region"]')??t}var wa=c(T(),1);function cje({rootLabelText:e}){let{selectBlock:t,clearSelectedBlock:o}=(0,fO.useDispatch)(B),{clientId:r,parents:n,hasSelection:i}=(0,fO.useSelect)(l=>{let{getSelectionStart:u,getSelectedBlockClientId:d,getEnabledBlockParents:f}=K(l(B)),p=d();return{parents:f(p),clientId:p,hasSelection:!!u().clientId}},[]),s=e||(0,pO._x)("Document","noun, breadcrumb"),a=(0,Une.useRef)();return Nb(r,a),(0,wa.jsxs)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":(0,pO.__)("Block breadcrumb"),children:[(0,wa.jsxs)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true",children:[i&&(0,wa.jsx)(vH.Button,{size:"small",className:"block-editor-block-breadcrumb__button",onClick:()=>{let l=a.current?.closest(".editor-styles-wrapper");o(),Wne(l)?.focus()},children:s}),!i&&(0,wa.jsx)("span",{children:s}),!!r&&(0,wa.jsx)(xt,{icon:hm,className:"block-editor-block-breadcrumb__separator"})]}),n.map(l=>(0,wa.jsxs)("li",{children:[(0,wa.jsx)(vH.Button,{size:"small",className:"block-editor-block-breadcrumb__button",onClick:()=>t(l),children:(0,wa.jsx)(C1,{clientId:l,maximumLength:35,context:"breadcrumb"})}),(0,wa.jsx)(xt,{icon:hm,className:"block-editor-block-breadcrumb__separator"})]},l)),!!r&&(0,wa.jsx)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true",children:(0,wa.jsx)(C1,{clientId:r,maximumLength:35,context:"breadcrumb"})})]})}var Gne=cje;var $ne=c(ee(),1);function Yne(e){return(0,$ne.useSelect)(t=>{let{__unstableHasActiveBlockOverlayActive:o}=t(B);return o(e)},[e])}var fV=c(ue(),1),fEe=c(F(),1),pEe=c(ee(),1),mEe=c(q(),1);var Ml=c(ee(),1),H5=c(ue(),1),sp=c(F(),1),$T=c(ce(),1);var Af=c(F(),1),Xt=c(ce(),1),kae=c(q(),1),iA=c(ee(),1),sA=c(ue(),1),xae=c(Dt(),1);var Fm=c(Z(),1),gO=c(q(),1),Lb=c(F(),1),T1=c(ce(),1),hO=c(ee(),1);var E1=class{diff(t,o,r={}){let n;typeof r=="function"?(n=r,r={}):"callback"in r&&(n=r.callback);let i=this.castInput(t,r),s=this.castInput(o,r),a=this.removeEmpty(this.tokenize(i,r)),l=this.removeEmpty(this.tokenize(s,r));return this.diffWithOptionsObj(a,l,r,n)}diffWithOptionsObj(t,o,r,n){var i;let s=y=>{if(y=this.postProcess(y,r),n){setTimeout(function(){n(y)},0);return}else return y},a=o.length,l=t.length,u=1,d=a+l;r.maxEditLength!=null&&(d=Math.min(d,r.maxEditLength));let f=(i=r.timeout)!==null&&i!==void 0?i:1/0,p=Date.now()+f,m=[{oldPos:-1,lastComponent:void 0}],g=this.extractCommon(m[0],o,t,0,r);if(m[0].oldPos+1>=l&&g+1>=a)return s(this.buildValues(m[0].lastComponent,o,t));let h=-1/0,b=1/0,v=()=>{for(let y=Math.max(h,-u);y<=Math.min(b,u);y+=2){let _,w=m[y-1],k=m[y+1];w&&(m[y-1]=void 0);let x=!1;if(k){let E=k.oldPos-y;x=k&&0<=E&&E<a}let C=w&&w.oldPos+1<l;if(!x&&!C){m[y]=void 0;continue}if(!C||x&&w.oldPos<k.oldPos?_=this.addToPath(k,!0,!1,0,r):_=this.addToPath(w,!1,!0,1,r),g=this.extractCommon(_,o,t,y,r),_.oldPos+1>=l&&g+1>=a)return s(this.buildValues(_.lastComponent,o,t))||!0;m[y]=_,_.oldPos+1>=l&&(b=Math.min(b,y-1)),g+1>=a&&(h=Math.max(h,y+1))}u++};if(n)(function y(){setTimeout(function(){if(u>d||Date.now()>p)return n(void 0);v()||y()},0)})();else for(;u<=d&&Date.now()<=p;){let y=v();if(y)return y}}addToPath(t,o,r,n,i){let s=t.lastComponent;return s&&!i.oneChangePerToken&&s.added===o&&s.removed===r?{oldPos:t.oldPos+n,lastComponent:{count:s.count+1,added:o,removed:r,previousComponent:s.previousComponent}}:{oldPos:t.oldPos+n,lastComponent:{count:1,added:o,removed:r,previousComponent:s}}}extractCommon(t,o,r,n,i){let s=o.length,a=r.length,l=t.oldPos,u=l-n,d=0;for(;u+1<s&&l+1<a&&this.equals(r[l+1],o[u+1],i);)u++,l++,d++,i.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return d&&!i.oneChangePerToken&&(t.lastComponent={count:d,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=l,u}equals(t,o,r){return r.comparator?r.comparator(t,o):t===o||!!r.ignoreCase&&t.toLowerCase()===o.toLowerCase()}removeEmpty(t){let o=[];for(let r=0;r<t.length;r++)t[r]&&o.push(t[r]);return o}castInput(t,o){return t}tokenize(t,o){return Array.from(t)}join(t){return t.join("")}postProcess(t,o){return t}get useLongestToken(){return!1}buildValues(t,o,r){let n=[],i;for(;t;)n.push(t),i=t.previousComponent,delete t.previousComponent,t=i;n.reverse();let s=n.length,a=0,l=0,u=0;for(;a<s;a++){let d=n[a];if(d.removed)d.value=this.join(r.slice(u,u+d.count)),u+=d.count;else{if(!d.added&&this.useLongestToken){let f=o.slice(l,l+d.count);f=f.map(function(p,m){let g=r[u+m];return g.length>p.length?g:p}),d.value=this.join(f)}else d.value=this.join(o.slice(l,l+d.count));l+=d.count,d.added||(u+=d.count)}}return n}};var _H=class extends E1{},qne=new _H;function wH(e,t,o){return qne.diff(e,t,o)}var mO=c(Z(),1),Jne=c(ce(),1);var Zne=c(q(),1),Xne=c(F(),1),Qne=c(Dt(),1),$u=c(T(),1);function kH({title:e,rawContent:t,renderedContent:o,action:r,actionText:n,className:i}){return(0,$u.jsxs)("div",{className:i,children:[(0,$u.jsxs)("div",{className:"block-editor-block-compare__content",children:[(0,$u.jsx)("h2",{className:"block-editor-block-compare__heading",children:e}),(0,$u.jsx)("div",{className:"block-editor-block-compare__html",children:t}),(0,$u.jsx)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor",children:(0,$u.jsx)(Xne.RawHTML,{children:(0,Qne.safeHTML)(o)})})]}),(0,$u.jsx)("div",{className:"block-editor-block-compare__action",children:(0,$u.jsx)(Zne.Button,{__next40pxDefaultSize:!0,variant:"secondary",tabIndex:"0",onClick:r,children:n})})]})}var aw=c(T(),1);function uje({block:e,onKeep:t,onConvert:o,convertor:r,convertButtonText:n}){function i(u,d){return wH(u,d).map((p,m)=>{let g=Y({"block-editor-block-compare__added":p.added,"block-editor-block-compare__removed":p.removed});return(0,aw.jsx)("span",{className:g,children:p.value},m)})}function s(u){return(Array.isArray(u)?u:[u]).map(p=>(0,Jne.getSaveContent)(p.name,p.attributes,p.innerBlocks)).join("")}let a=s(r(e)),l=i(e.originalContent,a);return(0,aw.jsxs)("div",{className:"block-editor-block-compare__wrapper",children:[(0,aw.jsx)(kH,{title:(0,mO.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:(0,mO.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,aw.jsx)(kH,{title:(0,mO.__)("After Conversion"),className:"block-editor-block-compare__converted",action:o,actionText:n,rawContent:l,renderedContent:a})]})}var eie=uje;var Rf=c(T(),1),tie=e=>(0,T1.rawHandler)({HTML:e.originalContent});function oie({clientId:e}){let{block:t,canInsertHTMLBlock:o}=(0,hO.useSelect)(u=>{let{canInsertBlockType:d,getBlock:f,getBlockRootClientId:p}=u(B),m=p(e);return{block:f(e),canInsertHTMLBlock:d("core/html",m)}},[e]),{replaceBlock:r}=(0,hO.useDispatch)(B),[n,i]=(0,Lb.useState)(!1),s=(0,Lb.useCallback)(()=>i(!1),[]),a=(0,Lb.useMemo)(()=>({toHTML(){let u=(0,T1.createBlock)("core/html",{},[],[t.originalContent]);return r(t.clientId,u)},toBlocks(){let u=tie(t);return r(t.clientId,u)},toRecoveredBlock(){let u=(0,T1.createBlock)(t.name,t.attributes,t.innerBlocks);return r(t.clientId,u)}}),[t,r]),l=(0,Lb.useMemo)(()=>[{title:(0,Fm._x)("Resolve","imperative verb"),onClick:()=>i(!0)},o&&{title:(0,Fm.__)("Convert to HTML"),onClick:a.toHTML}].filter(Boolean),[o,a]);return(0,Rf.jsxs)(Rf.Fragment,{children:[(0,Rf.jsx)(Bm,{actions:[(0,Rf.jsx)(gO.Button,{__next40pxDefaultSize:!0,onClick:a.toRecoveredBlock,variant:"primary",children:(0,Fm.__)("Attempt recovery")},"recover")],secondaryActions:l,children:(0,Fm.__)("Block contains unexpected or invalid content.")}),n&&(0,Rf.jsx)(gO.Modal,{title:(0,Fm.__)("Resolve Block"),onRequestClose:s,className:"block-editor-block-compare",children:(0,Rf.jsx)(eie,{block:t,onKeep:a.toHTML,onConvert:a.toBlocks,convertor:tie,convertButtonText:(0,Fm.__)("Convert to Blocks")})})]})}var rie=c(Z(),1);var nie=c(T(),1),dje=(0,nie.jsx)(Bm,{className:"block-editor-block-list__block-crash-warning",children:(0,rie.__)("This block has encountered an error and cannot be previewed.")});function iie(){return dje}var sie=c(F(),1),fje=class extends sie.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}},aie=fje;var Rie=c(CH(),1),cw=c(F(),1),_O=c(ee(),1),Yu=c(ce(),1);var Eie=c(ue(),1),EH=new WeakSet;function lw(){return(0,Eie.useRefEffect)(e=>(EH.add(e),()=>{EH.delete(e)}),[])}function Tie(e){let{target:t}=e;for(t?.nodeName==="IFRAME"&&(t=t.contentDocument?.activeElement);t;){if(EH.has(t))return!0;t=t.parentElement}return!1}var Bie=c(T(),1);function xje({clientId:e}){let[t,o]=(0,cw.useState)(""),r=lw(),n=(0,_O.useSelect)(l=>l(B).getBlock(e),[e]),{updateBlock:i}=(0,_O.useDispatch)(B),s=(0,cw.useMemo)(()=>n?(0,Yu.getBlockContent)(n):"",[n]),a=()=>{let l=(0,Yu.getBlockType)(n.name);if(!l)return;let u=(0,Yu.getBlockAttributes)(l,t,n.attributes),d=t||(0,Yu.getSaveContent)(l,u),[f]=t?(0,Yu.validateBlock)({...n,attributes:u,originalContent:d}):[!0];i(e,{attributes:u,originalContent:d,isValid:f}),t||o(d)};return(0,cw.useEffect)(()=>{o(s)},[s]),(0,Bie.jsx)(Rie.default,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:a,onChange:l=>o(l.target.value),ref:r})}var Iie=xje;var yae=c(F(),1),K1=c(Z(),1),vae=c(ce(),1),$b=c(ue(),1),_ae=c(ee(),1),wae=c(uw(),1);var RH=I1(),ft=e=>B1(e,RH),BH=I1();ft.write=e=>B1(e,BH);var wO=I1();ft.onStart=e=>B1(e,wO);var IH=I1();ft.onFrame=e=>B1(e,IH);var PH=I1();ft.onFinish=e=>B1(e,PH);var dw=[];ft.setTimeout=(e,t)=>{let o=ft.now()+t,r=()=>{let i=dw.findIndex(s=>s.cancel==r);~i&&dw.splice(i,1),jm-=~i?1:0},n={time:o,handler:e,cancel:r};return dw.splice(Oie(o),0,n),jm+=1,Aie(),n};var Oie=e=>~(~dw.findIndex(t=>t.time>e)||~dw.length);ft.cancel=e=>{wO.delete(e),IH.delete(e),PH.delete(e),RH.delete(e),BH.delete(e)};ft.sync=e=>{TH=!0,ft.batchedUpdates(e),TH=!1};ft.throttle=e=>{let t;function o(){try{e(...t)}finally{t=null}}function r(...n){t=n,ft.onStart(o)}return r.handler=e,r.cancel=()=>{wO.delete(o),t=null},r};var OH=typeof window<"u"?window.requestAnimationFrame:()=>{};ft.use=e=>OH=e;ft.now=typeof performance<"u"?()=>performance.now():Date.now;ft.batchedUpdates=e=>e();ft.catch=console.error;ft.frameLoop="always";ft.advance=()=>{ft.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Nie()};var zm=-1,jm=0,TH=!1;function B1(e,t){TH?(t.delete(e),e(0)):(t.add(e),Aie())}function Aie(){zm<0&&(zm=0,ft.frameLoop!=="demand"&&OH(Mie))}function Sje(){zm=-1}function Mie(){~zm&&(OH(Mie),ft.batchedUpdates(Nie))}function Nie(){let e=zm;zm=ft.now();let t=Oie(zm);if(t&&(Lie(dw.splice(0,t),o=>o.handler()),jm-=t),!jm){Sje();return}wO.flush(),RH.flush(e?Math.min(64,zm-e):16.667),IH.flush(),BH.flush(),PH.flush()}function I1(){let e=new Set,t=e;return{add(o){jm+=t==e&&!e.has(o)?1:0,e.add(o)},delete(o){return jm-=t==e&&e.has(o)?1:0,e.delete(o)},flush(o){t.size&&(e=new Set,jm-=t.size,Lie(t,r=>r(o)&&e.add(r)),jm+=e.size,t=e)}}}function Lie(e,t){e.forEach(o=>{try{t(o)}catch(r){ft.catch(r)}})}var cl=c(oe());function EO(){}var Hie=(e,t,o)=>Object.defineProperty(e,t,{value:o,writable:!0,configurable:!0}),Oe={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Ku(e,t){if(Oe.arr(e)){if(!Oe.arr(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}return e===t}var Do=(e,t)=>e.forEach(t);function ul(e,t,o){if(Oe.arr(e)){for(let r=0;r<e.length;r++)t.call(o,e[r],`$r}`);return}for(let r in e)e.hasOwnProperty(r)&&t.call(o,e[r],r)}var Ds=e=>Oe.und(e)?[]:Oe.arr(e)?e:[e];function gw(e,t){if(e.size){let o=Array.from(e);e.clear(),Do(o,t)}}var hw=(e,...t)=>gw(e,o=>o(...t)),VH=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),FH,Wie,Hm=null,Uie=!1,zH=EO,Cje=e=>{e.to&&(Wie=e.to),e.now&&(ft.now=e.now),e.colors!==void 0&&(Hm=e.colors),e.skipAnimation!=null&&(Uie=e.skipAnimation),e.createStringInterpolator&&(FH=e.createStringInterpolator),e.requestAnimationFrame&&ft.use(e.requestAnimationFrame),e.batchedUpdates&&(ft.batchedUpdates=e.batchedUpdates),e.willAdvance&&(zH=e.willAdvance),e.frameLoop&&(ft.frameLoop=e.frameLoop)},ka=Object.freeze({__proto__:null,get createStringInterpolator(){return FH},get to(){return Wie},get colors(){return Hm},get skipAnimation(){return Uie},get willAdvance(){return zH},assign:Cje}),P1=new Set,ll=[],AH=[],SO=0,bw={get idle(){return!P1.size&&!ll.length},start(e){SO>e.priority?(P1.add(e),ft.onStart(Eje)):(Gie(e),ft(LH))},advance:LH,sort(e){if(SO)ft.onFrame(()=>bw.sort(e));else{let t=ll.indexOf(e);~t&&(ll.splice(t,1),$ie(e))}},clear(){ll=[],P1.clear()}};function Eje(){P1.forEach(Gie),P1.clear(),ft(LH)}function Gie(e){ll.includes(e)||$ie(e)}function $ie(e){ll.splice(Tje(ll,t=>t.priority>e.priority),0,e)}function LH(e){let t=AH;for(let o=0;o<ll.length;o++){let r=ll[o];SO=r.priority,r.idle||(zH(r),r.advance(e),r.idle||t.push(r))}return SO=0,AH=ll,AH.length=0,ll=t,ll.length>0}function Tje(e,t){let o=e.findIndex(t);return o<0?e.length:o}var Yie={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},Tc="[-+]?\\d*\\.?\\d+",CO=Tc+"%";function TO(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Rje=new RegExp("rgb"+TO(Tc,Tc,Tc)),Bje=new RegExp("rgba"+TO(Tc,Tc,Tc,Tc)),Ije=new RegExp("hsl"+TO(Tc,CO,CO)),Pje=new RegExp("hsla"+TO(Tc,CO,CO,Tc)),Oje=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Aje=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Mje=/^#([0-9a-fA-F]{6})$/,Nje=/^#([0-9a-fA-F]{8})$/;function Lje(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Mje.exec(e))?parseInt(t[1]+"ff",16)>>>0:Hm&&Hm[e]!==void 0?Hm[e]:(t=Rje.exec(e))?(fw(t[1])<<24|fw(t[2])<<16|fw(t[3])<<8|255)>>>0:(t=Bje.exec(e))?(fw(t[1])<<24|fw(t[2])<<16|fw(t[3])<<8|Fie(t[4]))>>>0:(t=Oje.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Nje.exec(e))?parseInt(t[1],16)>>>0:(t=Aje.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ije.exec(e))?(Die(Vie(t[1]),kO(t[2]),kO(t[3]))|255)>>>0:(t=Pje.exec(e))?(Die(Vie(t[1]),kO(t[2]),kO(t[3]))|Fie(t[4]))>>>0:null}function MH(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*6*o:o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function Die(e,t,o){let r=o<.5?o*(1+t):o+t-o*t,n=2*o-r,i=MH(n,r,e+1/3),s=MH(n,r,e),a=MH(n,r,e-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function fw(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function Vie(e){return(parseFloat(e)%360+360)%360/360}function Fie(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function kO(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function zie(e){let t=Lje(e);if(t===null)return e;t=t||0;let o=(t&4278190080)>>>24,r=(t&16711680)>>>16,n=(t&65280)>>>8,i=(t&255)/255;return`rgba($o}, $r}, $n}, $i})`}var Wm=(e,t,o)=>{if(Oe.fun(e))return e;if(Oe.arr(e))return Wm({range:e,output:t,extrapolate:o});if(Oe.str(e.output[0]))return FH(e);let r=e,n=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{let d=Vje(u,i);return Dje(u,i[d],i[d+1],n[d],n[d+1],l,s,a,r.map)}};function Dje(e,t,o,r,n,i,s,a,l){let u=l?l(e):e;if(u<t){if(s==="identity")return u;s==="clamp"&&(u=t)}if(u>o){if(a==="identity")return u;a==="clamp"&&(u=o)}return r===n?r:t===o?e<=t?r:n:(t===-1/0?u=-u:o===1/0?u=u-t:u=(u-t)/(o-t),u=i(u),r===-1/0?u=-u:n===1/0?u=u+r:u=u*(n-r)+r,u)}function Vje(e,t){for(var o=1;o<t.length-1&&!(t[o]>=e);++o);return o-1}function DH(){return DH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},DH.apply(this,arguments)}var pw=Symbol.for("FluidValue.get"),Db=Symbol.for("FluidValue.observers"),os=e=>!!(e&&e[pw]),di=e=>e&&e[pw]?e[pw]():e,jH=e=>e[Db]||null;function Fje(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Vb(e,t){let o=e[Db];o&&o.forEach(r=>{Fje(r,t)})}var mw=class{constructor(t){if(this[pw]=void 0,this[Db]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");zje(this,t)}},zje=(e,t)=>Kie(e,pw,t);function Um(e,t){if(e[pw]){let o=e[Db];o||Kie(e,Db,o=new Set),o.has(t)||(o.add(t),e.observerAdded&&e.observerAdded(o.size,t))}return t}function Gm(e,t){let o=e[Db];if(o&&o.has(t)){let r=o.size-1;r?o.delete(t):e[Db]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Kie=(e,t,o)=>Object.defineProperty(e,t,{value:o,writable:!0,configurable:!0}),xO=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,jje=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,jie=new RegExp(`($xO.source})(%|[a-z]+)`,"i"),Hje=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,RO=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,qie=e=>{let[t,o]=Wje(e);if(!t||VH())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(o&&o.startsWith("--")){let n=window.getComputedStyle(document.documentElement).getPropertyValue(o);return n||e}else{if(o&&RO.test(o))return qie(o);if(o)return o}return e},Wje=e=>{let t=RO.exec(e);if(!t)return[,];let[,o,r]=t;return[o,r]},NH,Uje=(e,t,o,r,n)=>`rgba($Math.round(t)}, $Math.round(o)}, $Math.round(r)}, $n})`,BO=e=>{NH||(NH=Hm?new RegExp(`($Object.keys(Hm).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(i=>di(i).replace(RO,qie).replace(jje,zie).replace(NH,zie)),o=t.map(i=>i.match(xO).map(Number)),n=o[0].map((i,s)=>o.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(i=>Wm(DH({},e,{output:i})));return i=>{var s;let a=!jie.test(t[0])&&((s=t.find(u=>jie.test(u)))==null?void 0:s.replace(xO,"")),l=0;return t[0].replace(xO,()=>`$n[l++](i)}$a||""}`).replace(Hje,Uje)}},Zie="react-spring: ",Xie=e=>{let t=e,o=!1;if(typeof t!="function")throw new TypeError(`$Zie}once requires a function parameter`);return(...r)=>{o||(t(...r),o=!0)}},Gje=Xie(console.warn);function Qie(){Gje(`$Zie}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var SSt=Xie(console.warn);function yw(e){return Oe.str(e)&&(e[0]=="#"||/\d/.test(e)||!VH()&&RO.test(e)||e in(Hm||{}))}var O1=VH()?cl.useEffect:cl.useLayoutEffect,$je=()=>{let e=(0,cl.useRef)(!1);return O1(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function HH(){let e=(0,cl.useState)()[1],t=$je();return()=>{t.current&&e(Math.random())}}function Jie(e,t){let[o]=(0,cl.useState)(()=>({inputs:t,result:e()})),r=(0,cl.useRef)(),n=r.current,i=n;return i?t&&i.inputs&&Yje(t,i.inputs)||(i={inputs:t,result:e()}):i=o,(0,cl.useEffect)(()=>{r.current=i,n==o&&(o.inputs=o.result=void 0)},[i]),i.result}function Yje(e,t){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}var WH=e=>(0,cl.useEffect)(e,Kje),Kje=[];var H1=c(oe()),W1=c(oe());var rse=c(oe()),If=c(oe()),A1=Symbol.for("Animated:node"),qje=e=>!!e&&e[A1]===e,Rc=e=>e&&e[A1],AO=(e,t)=>Hie(e,A1,t),M1=e=>e&&e[A1]&&e[A1].getPayload(),IO=class{constructor(){this.payload=void 0,AO(this,this)}getPayload(){return this.payload||[]}},Fb=class e extends IO{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,Oe.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,o){return Oe.num(t)&&(this.lastPosition=t,o&&(t=Math.round(t/o)*o,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){let{done:t}=this;this.done=!1,Oe.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},zb=class e extends Fb{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=Wm({output:[t,t]})}static create(t){return new e(t)}getValue(){let t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(Oe.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Wm({output:[this.getValue(),t]})),this._value=0,super.reset()}},PO={dependencies:null},jb=class extends IO{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){let o={};return ul(this.source,(r,n)=>{qje(r)?o[n]=r.getValue(t):os(r)?o[n]=di(r):t||(o[n]=r)}),o}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&Do(this.payload,t=>t.reset())}_makePayload(t){if(t){let o=new Set;return ul(t,this._addToPayload,o),Array.from(o)}}_addToPayload(t){PO.dependencies&&os(t)&&PO.dependencies.add(t);let o=M1(t);o&&Do(o,r=>this.add(r))}},UH=class e extends jb{constructor(t){super(t)}static create(t){return new e(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){let o=this.getPayload();return t.length==o.length?o.map((r,n)=>r.setValue(t[n])).some(Boolean):(super.setValue(t.map(Zje)),!0)}};function Zje(e){return(yw(e)?zb:Fb).create(e)}function MO(e){let t=Rc(e);return t?t.constructor:Oe.arr(e)?UH:yw(e)?zb:Fb}function OO(){return OO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},OO.apply(this,arguments)}var ese=(e,t)=>{let o=!Oe.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,If.forwardRef)((r,n)=>{let i=(0,If.useRef)(null),s=o&&(0,If.useCallback)(g=>{i.current=Qje(n,g)},[n]),[a,l]=Xje(r,t),u=HH(),d=()=>{let g=i.current;if(o&&!g)return;(g?t.applyAnimatedValues(g,a.getValue(!0)):!1)===!1&&u()},f=new GH(d,l),p=(0,If.useRef)();O1(()=>(p.current=f,Do(l,g=>Um(g,f)),()=>{p.current&&(Do(p.current.deps,g=>Gm(g,p.current)),ft.cancel(p.current.update))})),(0,If.useEffect)(d,[]),WH(()=>()=>{let g=p.current;Do(g.deps,h=>Gm(h,g))});let m=t.getComponentProps(a.getValue());return rse.createElement(e,OO({},m,{ref:s}))})},GH=class{constructor(t,o){this.update=t,this.deps=o}eventObserved(t){t.type=="change"&&ft.write(this.update)}};function Xje(e,t){let o=new Set;return PO.dependencies=o,e.style&&(e=OO({},e,{style:t.createAnimatedStyle(e.style)})),e=new jb(e),PO.dependencies=null,[e,o]}function Qje(e,t){return e&&(Oe.fun(e)?e(t):e.current=t),t}var tse=Symbol.for("AnimatedComponent"),nse=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:o=n=>new jb(n),getComponentProps:r=n=>n}={})=>{let n={applyAnimatedValues:t,createAnimatedStyle:o,getComponentProps:r},i=s=>{let a=ose(s)||"Anonymous";return Oe.str(s)?s=i[s]||(i[s]=ese(s,n)):s=s[tse]||(s[tse]=ese(s,n)),s.displayName=`Animated($a})`,s};return ul(e,(s,a)=>{Oe.arr(e)&&(a=ose(s)),i[a]=i(s)}),{animated:i}},ose=e=>Oe.str(e)?e:e&&Oe.str(e.displayName)?e.displayName:Oe.fun(e)&&e.name||null;function rs(){return rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},rs.apply(this,arguments)}function Hb(e,...t){return Oe.fun(e)?e(...t):e}var V1=(e,t)=>e===!0||!!(t&&e&&(Oe.fun(e)?e(t):Ds(e).includes(t))),hse=(e,t)=>Oe.obj(e)?t&&e[t]:e,bse=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Jje=e=>e,yse=(e,t=Jje)=>{let o=eHe;e.default&&e.default!==!0&&(e=e.default,o=Object.keys(e));let r={};for(let n of o){let i=t(e[n],n);Oe.und(i)||(r[n]=i)}return r},eHe=["config","onProps","onStart","onChange","onPause","onResume","onRest"],tHe={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 oHe(e){let t={},o=0;if(ul(e,(r,n)=>{tHe[n]||(t[n]=r,o++)}),o)return t}function vse(e){let t=oHe(e);if(t){let o={to:t};return ul(e,(r,n)=>n in t||(o[n]=r)),o}return rs({},e)}function F1(e){return e=di(e),Oe.arr(e)?e.map(F1):yw(e)?ka.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function KH(e){return Oe.fun(e)||Oe.arr(e)&&Oe.obj(e[0])}var rHe={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},DO=1.70158,NO=DO*1.525,ise=DO+1,sse=2*Math.PI/3,ase=2*Math.PI/4.5,LO=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,nHe={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=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?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=>ise*e*e*e-DO*e*e,easeOutBack:e=>1+ise*Math.pow(e-1,3)+DO*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((NO+1)*2*e-NO)/2:(Math.pow(2*e-2,2)*((NO+1)*(e*2-2)+NO)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*sse),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*sse)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ase))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ase)/2+1,easeInBounce:e=>1-LO(1-e),easeOutBounce:LO,easeInOutBounce:e=>e<.5?(1-LO(1-2*e))/2:(1+LO(2*e-1))/2},qH=rs({},rHe.default,{mass:1,damping:1,easing:nHe.linear,clamp:!1}),ZH=class{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,qH)}};function iHe(e,t,o){o&&(o=rs({},o),lse(o,t),t=rs({},o,t)),lse(e,t),Object.assign(e,t);for(let s in qH)e[s]==null&&(e[s]=qH[s]);let{mass:r,frequency:n,damping:i}=e;return Oe.und(n)||(n<.01&&(n=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/n,2)*r,e.friction=4*Math.PI*i*r/n),e}function lse(e,t){if(!Oe.und(t.decay))e.duration=void 0;else{let o=!Oe.und(t.tension)||!Oe.und(t.friction);(o||!Oe.und(t.frequency)||!Oe.und(t.damping)||!Oe.und(t.mass))&&(e.duration=void 0,e.decay=void 0),o&&(e.frequency=void 0)}}var cse=[],XH=class{constructor(){this.changed=!1,this.values=cse,this.toValues=null,this.fromValues=cse,this.to=void 0,this.from=void 0,this.config=new ZH,this.immediate=!1}};function _se(e,{key:t,props:o,defaultProps:r,state:n,actions:i}){return new Promise((s,a)=>{var l;let u,d,f=V1((l=o.cancel)!=null?l:r?.cancel,t);if(f)g();else{Oe.und(o.pause)||(n.paused=V1(o.pause,t));let h=r?.pause;h!==!0&&(h=n.paused||V1(h,t)),u=Hb(o.delay||0,t),h?(n.resumeQueue.add(m),i.pause()):(i.resume(),m())}function p(){n.resumeQueue.add(m),n.timeouts.delete(d),d.cancel(),u=d.time-ft.now()}function m(){u>0&&!ka.skipAnimation?(n.delayed=!0,d=ft.setTimeout(g,u),n.pauseQueue.add(p),n.timeouts.add(d)):g()}function g(){n.delayed&&(n.delayed=!1),n.pauseQueue.delete(p),n.timeouts.delete(d),e<=(n.cancelId||0)&&(f=!0);try{i.start(rs({},o,{callId:e,cancel:f}),s)}catch(h){a(h)}}})}var nW=(e,t)=>t.length==1?t[0]:t.some(o=>o.cancelled)?vw(e.get()):t.every(o=>o.noop)?wse(e.get()):Bc(e.get(),t.every(o=>o.finished)),wse=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Bc=(e,t,o=!1)=>({value:e,finished:t,cancelled:o}),vw=e=>({value:e,cancelled:!0,finished:!1});function kse(e,t,o,r){let{callId:n,parentId:i,onRest:s}=t,{asyncTo:a,promise:l}=o;return!i&&e===a&&!t.reset?l:o.promise=(async()=>{o.asyncId=n,o.asyncTo=e;let u=yse(t,(b,v)=>v==="onRest"?void 0:b),d,f,p=new Promise((b,v)=>(d=b,f=v)),m=b=>{let v=n<=(o.cancelId||0)&&vw(r)||n!==o.asyncId&&Bc(r,!1);if(v)throw b.result=v,f(b),b},g=(b,v)=>{let y=new VO,_=new FO;return(async()=>{if(ka.skipAnimation)throw z1(o),_.result=Bc(r,!1),f(_),_;m(y);let w=Oe.obj(b)?rs({},b):rs({},v,{to:b});w.parentId=n,ul(u,(x,C)=>{Oe.und(w[C])&&(w[C]=x)});let k=await r.start(w);return m(y),o.paused&&await new Promise(x=>{o.resumeQueue.add(x)}),k})()},h;if(ka.skipAnimation)return z1(o),Bc(r,!1);try{let b;Oe.arr(e)?b=(async v=>{for(let y of v)await g(y)})(e):b=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([b.then(d),p]),h=Bc(r.get(),!0,!1)}catch(b){if(b instanceof VO)h=b.result;else if(b instanceof FO)h=b.result;else throw b}finally{n==o.asyncId&&(o.asyncId=i,o.asyncTo=i?a:void 0,o.promise=i?l:void 0)}return Oe.fun(s)&&ft.batchedUpdates(()=>{s(h,r,r.item)}),h})()}function z1(e,t){gw(e.timeouts,o=>o.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var VO=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."),this.result=void 0}},FO=class extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}},QH=e=>e instanceof j1,sHe=1,j1=class extends mw{constructor(...t){super(...t),this.id=sHe++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){let t=Rc(this);return t&&t.getValue()}to(...t){return ka.to(this,t)}interpolate(...t){return Qie(),ka.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,o=!1){Vb(this,{type:"change",parent:this,value:t,idle:o})}_onPriorityChange(t){this.idle||bw.sort(this),Vb(this,{type:"priority",parent:this,priority:t})}},Wb=Symbol.for("SpringPhase"),xse=1,JH=2,eW=4,$H=e=>(e[Wb]&xse)>0,$m=e=>(e[Wb]&JH)>0,N1=e=>(e[Wb]&eW)>0,use=(e,t)=>t?e[Wb]|=JH|xse:e[Wb]&=~JH,dse=(e,t)=>t?e[Wb]|=eW:e[Wb]&=~eW,tW=class extends j1{constructor(t,o){if(super(),this.key=void 0,this.animation=new XH,this.queue=void 0,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,!Oe.und(t)||!Oe.und(o)){let r=Oe.obj(t)?rs({},t):rs({},o,{from:t});Oe.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!($m(this)||this._state.asyncTo)||N1(this)}get goal(){return di(this.animation.to)}get velocity(){let t=Rc(this);return t instanceof Fb?t.lastVelocity||0:t.getPayload().map(o=>o.lastVelocity||0)}get hasAnimated(){return $H(this)}get isAnimating(){return $m(this)}get isPaused(){return N1(this)}get isDelayed(){return this._state.delayed}advance(t){let o=!0,r=!1,n=this.animation,{config:i,toValues:s}=n,a=M1(n.to);!a&&os(n.to)&&(s=Ds(di(n.to))),n.values.forEach((d,f)=>{if(d.done)return;let p=d.constructor==zb?1:a?a[f].lastPosition:s[f],m=n.immediate,g=p;if(!m){if(g=d.lastPosition,i.tension<=0){d.done=!0;return}let h=d.elapsedTime+=t,b=n.fromValues[f],v=d.v0!=null?d.v0:d.v0=Oe.arr(i.velocity)?i.velocity[f]:i.velocity,y,_=i.precision||(b==p?.005:Math.min(1,Math.abs(p-b)*.001));if(Oe.und(i.duration))if(i.decay){let w=i.decay===!0?.998:i.decay,k=Math.exp(-(1-w)*h);g=b+v/(1-w)*(1-k),m=Math.abs(d.lastPosition-g)<=_,y=v*k}else{y=d.lastVelocity==null?v:d.lastVelocity;let w=i.restVelocity||_/10,k=i.clamp?0:i.bounce,x=!Oe.und(k),C=b==p?d.v0>0:b<p,E,R=!1,S=1,I=Math.ceil(t/S);for(let O=0;O<I&&(E=Math.abs(y)>w,!(!E&&(m=Math.abs(p-g)<=_,m)));++O){x&&(R=g==p||g>p==C,R&&(y=-y*k,g=p));let A=-i.tension*1e-6*(g-p),P=-i.friction*.001*y,L=(A+P)/i.mass;y=y+L*S,g=g+y*S}}else{let w=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,d.durationProgress>0&&(d.elapsedTime=i.duration*d.durationProgress,h=d.elapsedTime+=t)),w=(i.progress||0)+h/this._memoizedDuration,w=w>1?1:w<0?0:w,d.durationProgress=w),g=b+i.easing(w)*(p-b),y=(g-d.lastPosition)/t,m=w==1}d.lastVelocity=y,Number.isNaN(g)&&(console.warn("Got NaN while animating:",this),m=!0)}a&&!a[f].done&&(m=!1),m?d.done=!0:o=!1,d.setValue(g,i.round)&&(r=!0)});let l=Rc(this),u=l.getValue();if(o){let d=di(n.to);(u!==d||r)&&!i.decay?(l.setValue(d),this._onChange(d)):r&&i.decay&&this._onChange(u),this._stop()}else r&&this._onChange(u)}set(t){return ft.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if($m(this)){let{to:t,config:o}=this.animation;ft.batchedUpdates(()=>{this._onStart(),o.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,o){let r;return Oe.und(t)?(r=this.queue||[],this.queue=[]):r=[Oe.obj(t)?t:rs({},o,{to:t})],Promise.all(r.map(n=>this._update(n))).then(n=>nW(this,n))}stop(t){let{to:o}=this.animation;return this._focus(this.get()),z1(this._state,t&&this._lastCallId),ft.batchedUpdates(()=>this._stop(o,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){let o=this.key||"",{to:r,from:n}=t;r=Oe.obj(r)?r[o]:r,(r==null||KH(r))&&(r=void 0),n=Oe.obj(n)?n[o]:n,n==null&&(n=void 0);let i={to:r,from:n};return $H(this)||(t.reverse&&([r,n]=[n,r]),n=di(n),Oe.und(n)?Rc(this)||this._set(r):this._set(n)),i}_update(t,o){let r=rs({},t),{key:n,defaultProps:i}=this;r.default&&Object.assign(i,yse(r,(l,u)=>/^on/.test(u)?hse(l,n):l)),pse(this,r,"onProps"),D1(this,"onProps",r,this);let s=this._prepareNode(r);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?");let a=this._state;return _se(++this._lastCallId,{key:n,props:r,defaultProps:i,state:a,actions:{pause:()=>{N1(this)||(dse(this,!0),hw(a.pauseQueue),D1(this,"onPause",Bc(this,L1(this,this.animation.to)),this))},resume:()=>{N1(this)&&(dse(this,!1),$m(this)&&this._resume(),hw(a.resumeQueue),D1(this,"onResume",Bc(this,L1(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(l=>{if(r.loop&&l.finished&&!(o&&l.noop)){let u=Sse(r);if(u)return this._update(u,!0)}return l})}_merge(t,o,r){if(o.cancel)return this.stop(!0),r(vw(this));let n=!Oe.und(t.to),i=!Oe.und(t.from);if(n||i)if(o.callId>this._lastToId)this._lastToId=o.callId;else return r(vw(this));let{key:s,defaultProps:a,animation:l}=this,{to:u,from:d}=l,{to:f=u,from:p=d}=t;i&&!n&&(!o.default||Oe.und(f))&&(f=p),o.reverse&&([f,p]=[p,f]);let m=!Ku(p,d);m&&(l.from=p),p=di(p);let g=!Ku(f,u);g&&this._focus(f);let h=KH(o.to),{config:b}=l,{decay:v,velocity:y}=b;(n||i)&&(b.velocity=0),o.config&&!h&&iHe(b,Hb(o.config,s),o.config!==a.config?Hb(a.config,s):void 0);let _=Rc(this);if(!_||Oe.und(f))return r(Bc(this,!0));let w=Oe.und(o.reset)?i&&!o.default:!Oe.und(p)&&V1(o.reset,s),k=w?p:this.get(),x=F1(f),C=Oe.num(x)||Oe.arr(x)||yw(x),E=!h&&(!C||V1(a.immediate||o.immediate,s));if(g){let O=MO(f);if(O!==_.constructor)if(E)_=this._set(x);else throw Error(`Cannot animate between $_.constructor.name} and $O.name}, as the "to" prop suggests`)}let R=_.constructor,S=os(f),I=!1;if(!S){let O=w||!$H(this)&&m;(g||O)&&(I=Ku(F1(k),x),S=!I),(!Ku(l.immediate,E)&&!E||!Ku(b.decay,v)||!Ku(b.velocity,y))&&(S=!0)}if(I&&$m(this)&&(l.changed&&!w?S=!0:S||this._stop(u)),!h&&((S||os(u))&&(l.values=_.getPayload(),l.toValues=os(f)?null:R==zb?[1]:Ds(x)),l.immediate!=E&&(l.immediate=E,!E&&!w&&this._set(u)),S)){let{onRest:O}=l;Do(aHe,P=>pse(this,o,P));let A=Bc(this,L1(this,u));hw(this._pendingCalls,A),this._pendingCalls.add(r),l.changed&&ft.batchedUpdates(()=>{l.changed=!w,O?.(A,this),w?Hb(a.onRest,A):l.onStart==null||l.onStart(A,this)})}w&&this._set(k),h?r(kse(o.to,o,this._state,this)):S?this._start():$m(this)&&!g?this._pendingCalls.add(r):r(wse(k))}_focus(t){let o=this.animation;t!==o.to&&(jH(this)&&this._detach(),o.to=t,jH(this)&&this._attach())}_attach(){let t=0,{to:o}=this.animation;os(o)&&(Um(o,this),QH(o)&&(t=o.priority+1)),this.priority=t}_detach(){let{to:t}=this.animation;os(t)&&Gm(t,this)}_set(t,o=!0){let r=di(t);if(!Oe.und(r)){let n=Rc(this);if(!n||!Ku(r,n.getValue())){let i=MO(r);!n||n.constructor!=i?AO(this,i.create(r)):n.setValue(r),n&&ft.batchedUpdates(()=>{this._onChange(r,o)})}}return Rc(this)}_onStart(){let t=this.animation;t.changed||(t.changed=!0,D1(this,"onStart",Bc(this,L1(this,t.to)),this))}_onChange(t,o){o||(this._onStart(),Hb(this.animation.onChange,t,this)),Hb(this.defaultProps.onChange,t,this),super._onChange(t,o)}_start(){let t=this.animation;Rc(this).reset(di(t.to)),t.immediate||(t.fromValues=t.values.map(o=>o.lastPosition)),$m(this)||(use(this,!0),N1(this)||this._resume())}_resume(){ka.skipAnimation?this.finish():bw.start(this)}_stop(t,o){if($m(this)){use(this,!1);let r=this.animation;Do(r.values,i=>{i.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Vb(this,{type:"idle",parent:this});let n=o?vw(this.get()):Bc(this.get(),L1(this,t??r.to));hw(this._pendingCalls,n),r.changed&&(r.changed=!1,D1(this,"onRest",n,this))}}};function L1(e,t){let o=F1(t),r=F1(e.get());return Ku(r,o)}function Sse(e,t=e.loop,o=e.to){let r=Hb(t);if(r){let n=r!==!0&&vse(r),i=(n||e).reverse,s=!n||n.reset;return oW(rs({},e,{loop:t,default:!1,pause:void 0,to:!i||KH(o)?o:void 0,from:s?e.from:void 0,reset:s},n))}}function oW(e){let{to:t,from:o}=e=vse(e),r=new Set;return Oe.obj(t)&&fse(t,r),Oe.obj(o)&&fse(o,r),e.keys=r.size?Array.from(r):null,e}function fse(e,t){ul(e,(o,r)=>o!=null&&t.add(r))}var aHe=["onStart","onRest","onChange","onPause","onResume"];function pse(e,t,o){e.animation[o]=t[o]!==bse(t,o)?hse(t[o],e.key):void 0}function D1(e,t,...o){var r,n,i,s;(r=(n=e.animation)[t])==null||r.call(n,...o),(i=(s=e.defaultProps)[t])==null||i.call(s,...o)}var lHe=["onStart","onChange","onRest"],cHe=1,zO=class{constructor(t,o){this.id=cHe++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,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),o&&(this._flush=o),t&&this.start(rs({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){let t={};return this.each((o,r)=>t[r]=o.get()),t}set(t){for(let o in t){let r=t[o];Oe.und(r)||this.springs[o].set(r)}}update(t){return t&&this.queue.push(oW(t)),this}start(t){let{queue:o}=this;return t?o=Ds(t).map(oW):this.queue=[],this._flush?this._flush(this,o):(Ese(this,o),uHe(this,o))}stop(t,o){if(t!==!!t&&(o=t),o){let r=this.springs;Do(Ds(o),n=>r[n].stop(!!t))}else z1(this._state,this._lastAsyncId),this.each(r=>r.stop(!!t));return this}pause(t){if(Oe.und(t))this.start({pause:!0});else{let o=this.springs;Do(Ds(t),r=>o[r].pause())}return this}resume(t){if(Oe.und(t))this.start({pause:!1});else{let o=this.springs;Do(Ds(t),r=>o[r].resume())}return this}each(t){ul(this.springs,t)}_onFrame(){let{onStart:t,onChange:o,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,gw(t,([l,u])=>{u.value=this.get(),l(u,this,this._item)}));let s=!n&&this._started,a=i||s&&r.size?this.get():null;i&&o.size&&gw(o,([l,u])=>{u.value=a,l(u,this,this._item)}),s&&(this._started=!1,gw(r,([l,u])=>{u.value=a,l(u,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;ft.onFrame(this._onFrame)}};function uHe(e,t){return Promise.all(t.map(o=>Cse(e,o))).then(o=>nW(e,o))}async function Cse(e,t,o){let{keys:r,to:n,from:i,loop:s,onRest:a,onResolve:l}=t,u=Oe.obj(t.default)&&t.default;s&&(t.loop=!1),n===!1&&(t.to=null),i===!1&&(t.from=null);let d=Oe.arr(n)||Oe.fun(n)?n:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Do(lHe,h=>{let b=t[h];if(Oe.fun(b)){let v=e._events[h];t[h]=({finished:y,cancelled:_})=>{let w=v.get(b);w?(y||(w.finished=!1),_&&(w.cancelled=!0)):v.set(b,{value:null,finished:y||!1,cancelled:_||!1})},u&&(u[h]=t[h])}});let f=e._state;t.pause===!f.paused?(f.paused=t.pause,hw(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);let p=(r||Object.keys(e.springs)).map(h=>e.springs[h].start(t)),m=t.cancel===!0||bse(t,"cancel")===!0;(d||m&&f.asyncId)&&p.push(_se(++e._lastAsyncId,{props:t,state:f,actions:{pause:EO,resume:EO,start(h,b){m?(z1(f,e._lastAsyncId),b(vw(e))):(h.onRest=a,b(kse(d,h,f,e)))}}})),f.paused&&await new Promise(h=>{f.resumeQueue.add(h)});let g=nW(e,await Promise.all(p));if(s&&g.finished&&!(o&&g.noop)){let h=Sse(t,s,n);if(h)return Ese(e,[h]),Cse(e,h,!0)}return l&&ft.batchedUpdates(()=>l(g,e,e.item)),g}function dHe(e,t){let o=new tW;return o.key=e,t&&Um(o,t),o}function fHe(e,t,o){t.keys&&Do(t.keys,r=>{(e[r]||(e[r]=o(r)))._prepareNode(t)})}function Ese(e,t){Do(t,o=>{fHe(e.springs,o,r=>dHe(r,e))})}function pHe(e,t){if(e==null)return{};var o={},r=Object.keys(e),n,i;for(i=0;i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}var mHe=["children"],iW=e=>{let{children:t}=e,o=pHe(e,mHe),r=(0,W1.useContext)(jO),n=o.pause||!!r.pause,i=o.immediate||!!r.immediate;o=Jie(()=>({pause:n,immediate:i}),[n,i]);let{Provider:s}=jO;return H1.createElement(s,{value:o},t)},jO=gHe(iW,{});iW.Provider=jO.Provider;iW.Consumer=jO.Consumer;function gHe(e,t){return Object.assign(e,H1.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var mse;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(mse||(mse={}));var rW=class extends j1{constructor(t,o){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=Wm(...o);let r=this._get(),n=MO(r);AO(this,n.create(r))}advance(t){let o=this._get(),r=this.get();Ku(o,r)||(Rc(this).setValue(o),this._onChange(o,this.idle)),!this.idle&&gse(this._active)&&YH(this)}_get(){let t=Oe.arr(this.source)?this.source.map(di):Ds(di(this.source));return this.calc(...t)}_start(){this.idle&&!gse(this._active)&&(this.idle=!1,Do(M1(this),t=>{t.done=!1}),ka.skipAnimation?(ft.batchedUpdates(()=>this.advance()),YH(this)):bw.start(this))}_attach(){let t=1;Do(Ds(this.source),o=>{os(o)&&Um(o,this),QH(o)&&(o.idle||this._active.add(o),t=Math.max(t,o.priority+1))}),this.priority=t,this._start()}_detach(){Do(Ds(this.source),t=>{os(t)&&Gm(t,this)}),this._active.clear(),YH(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=Ds(this.source).reduce((o,r)=>Math.max(o,(QH(r)?r.priority:0)+1),0))}};function hHe(e){return e.idle!==!1}function gse(e){return!e.size||Array.from(e).every(hHe)}function YH(e){e.idle||(e.idle=!0,Do(M1(e),t=>{t.done=!0}),Vb(e,{type:"idle",parent:e}))}ka.assign({createStringInterpolator:BO,to:(e,t)=>new rW(e,t)});var MSt=bw.advance;var Bse=c(Pf());function cW(e,t){if(e==null)return{};var o={},r=Object.keys(e),n,i;for(i=0;i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}var bHe=["style","children","scrollTop","scrollLeft"],Ise=/^--/;function yHe(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Ise.test(e)&&!(U1.hasOwnProperty(e)&&U1[e])?t+"px":(""+t).trim()}var Rse={};function vHe(e,t){if(!e.nodeType||!e.setAttribute)return!1;let o=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",r=t,{style:n,children:i,scrollTop:s,scrollLeft:a}=r,l=cW(r,bHe),u=Object.values(l),d=Object.keys(l).map(f=>o||e.hasAttribute(f)?f:Rse[f]||(Rse[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));i!==void 0&&(e.textContent=i);for(let f in n)if(n.hasOwnProperty(f)){let p=yHe(f,n[f]);Ise.test(f)?e.style.setProperty(f,p):e.style[f]=p}d.forEach((f,p)=>{e.setAttribute(f,u[p])}),s!==void 0&&(e.scrollTop=s),a!==void 0&&(e.scrollLeft=a)}var U1={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},_He=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),wHe=["Webkit","Ms","Moz","O"];U1=Object.keys(U1).reduce((e,t)=>(wHe.forEach(o=>e[_He(o,t)]=e[t]),e),U1);var kHe=["x","y","z"],xHe=/^(matrix|translate|scale|rotate|skew)/,SHe=/^(translate)/,CHe=/^(rotate|skew)/,sW=(e,t)=>Oe.num(e)&&e!==0?e+t:e,HO=(e,t)=>Oe.arr(e)?e.every(o=>HO(o,t)):Oe.num(e)?e===t:parseFloat(e)===t,aW=class extends jb{constructor(t){let{x:o,y:r,z:n}=t,i=cW(t,kHe),s=[],a=[];(o||r||n)&&(s.push([o||0,r||0,n||0]),a.push(l=>[`translate3d($l.map(u=>sW(u,"px")).join(",")})`,HO(l,0)])),ul(i,(l,u)=>{if(u==="transform")s.push([l||""]),a.push(d=>[d,d===""]);else if(xHe.test(u)){if(delete i[u],Oe.und(l))return;let d=SHe.test(u)?"px":CHe.test(u)?"deg":"";s.push(Ds(l)),a.push(u==="rotate3d"?([f,p,m,g])=>[`rotate3d($f},$p},$m},$sW(g,d)})`,HO(g,0)]:f=>[`$u}($f.map(p=>sW(p,d)).join(",")})`,HO(f,u.startsWith("scale")?1:0)])}}),s.length&&(i.transform=new lW(s,a)),super(i)}},lW=class extends mw{constructor(t,o){super(),this._value=null,this.inputs=t,this.transforms=o}get(){return this._value||(this._value=this._get())}_get(){let t="",o=!0;return Do(this.inputs,(r,n)=>{let i=di(r[0]),[s,a]=this.transforms[n](Oe.arr(i)?i:r.map(di));t+=" "+s,o=o&&a}),o?"none":t}observerAdded(t){t==1&&Do(this.inputs,o=>Do(o,r=>os(r)&&Um(r,this)))}observerRemoved(t){t==0&&Do(this.inputs,o=>Do(o,r=>os(r)&&Gm(r,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Vb(this,t)}},EHe=["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"],THe=["scrollTop","scrollLeft"];ka.assign({batchedUpdates:Bse.unstable_batchedUpdates,createStringInterpolator:BO,colors:Yie});var RHe=nse(EHe,{applyAnimatedValues:vHe,createAnimatedStyle:e=>new aW(e),getComponentProps:e=>cW(e,THe)}),Pse=RHe.animated;var _w=c(F(),1),Ase=c(Dt(),1),Mse=c(ee(),1);var BHe=200;function Ose(e){return{top:e.offsetTop,left:e.offsetLeft}}function IHe({triggerAnimationOnChange:e,clientId:t}){let o=(0,_w.useRef)(),{isTyping:r,getGlobalBlockCount:n,isBlockSelected:i,isFirstMultiSelectedBlock:s,isBlockMultiSelected:a,isAncestorMultiSelected:l,isDraggingBlocks:u}=(0,Mse.useSelect)(B),{previous:d,prevRect:f}=(0,_w.useMemo)(()=>({previous:o.current&&Ose(o.current),prevRect:o.current&&o.current.getBoundingClientRect()}),[e]);return(0,_w.useLayoutEffect)(()=>{if(!d||!o.current)return;let p=(0,Ase.getScrollContainer)(o.current),m=i(t),g=m||s(t),h=u();function b(){if(!h&&g&&f){let R=o.current.getBoundingClientRect().top-f.top;R&&(p.scrollTop+=R)}}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||r()||n()>BHe){b();return}let y=m||a(t)||l(t);if(y&&h)return;let _=y?"20":"",w=new zO({x:0,y:0,config:{mass:5,tension:2e3,friction:200},onChange({value:E}){if(!o.current)return;let{x:R,y:S}=E;R=Math.round(R),S=Math.round(S);let I=R===0&&S===0;o.current.style.transformOrigin="center center",o.current.style.transform=I?null:`translate3d($R}px,$S}px,0)`,o.current.style.zIndex=I?null:_,b()}});o.current.style.transform=void 0;let k=Ose(o.current),x=Math.round(d.left-k.left),C=Math.round(d.top-k.top);return w.start({x:0,y:0,from:{x,y:C}}),()=>{w.stop(),w.set({x:0,y:0})}},[d,f,t,r,n,i,s,a,l,u]),o}var WO=IHe;var $O=c(F(),1),Of=c(Dt(),1),Nse=c(ee(),1);var UO=".block-editor-block-list__block",PHe=".block-list-appender",OHe=".block-editor-button-block-appender";function GO(e,t){return e.closest(UO)===t.closest(UO)}function qu(e,t){return t.closest([UO,PHe,OHe].join(","))===e}function dl(e,t){let{anchorNode:o,focusNode:r}=e;if(!o||!r)return;let i=(o.nodeType===o.ELEMENT_NODE?o:o.parentElement)?.closest('[contenteditable="true"]');if(!(!i||i===t||!i.contains(r)))return i}function Vo(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;let o=e.closest(UO);if(o)return o.id.slice(6)}function uW(e,t){let o=Math.min(e.left,t.left),r=Math.max(e.right,t.right),n=Math.max(e.bottom,t.bottom),i=Math.min(e.top,t.top);return new window.DOMRectReadOnly(o,i,r-o,n-i)}function dW(e){let t=e.ownerDocument.defaultView;if(!t||e.hasAttribute("data-visually-hidden"))return!1;let o=e.getBoundingClientRect();if(o.width===0||o.height===0)return!1;if(e.checkVisibility)return e.checkVisibility?.({opacityProperty:!0,contentVisibilityAuto:!0,visibilityProperty:!0});let r=t.getComputedStyle(e);return!(r.display==="none"||r.visibility==="hidden"||r.opacity==="0")}function AHe(e){let t=window.getComputedStyle(e);return t.overflowX==="auto"||t.overflowX==="scroll"||t.overflowY==="auto"||t.overflowY==="scroll"}var MHe=["core/navigation"];function ww(e){let t=e.ownerDocument.defaultView;if(!t)return new window.DOMRectReadOnly;let o=e.getBoundingClientRect(),r=e.getAttribute("data-type");if(r&&MHe.includes(r)){let s=[e],a;for(;a=s.pop();)if(!AHe(a)){for(let l of a.children)if(dW(l)){let u=l.getBoundingClientRect();o=uW(o,u),s.push(l)}}}let n=Math.max(o.left,0),i=Math.min(o.right,t.innerWidth);return o=new window.DOMRectReadOnly(n,o.top,i-n,o.height),o}function Lse({clientId:e,initialPosition:t}){let o=(0,$O.useRef)(),{isBlockSelected:r,isMultiSelecting:n,isZoomOut:i,getSelectionStart:s}=K((0,Nse.useSelect)(B));return(0,$O.useEffect)(()=>{if(!r(e)||n()||i()||t==null||!o.current)return;let{ownerDocument:a}=o.current;if(qu(o.current,a.activeElement))return;if(t===!0){o.current.focus();return}let l=Of.focus.tabbable.find(o.current).filter(v=>(0,Of.isTextField)(v)),u=t===-1,d=l[u?l.length-1:0]||o.current;if(!qu(o.current,d)){o.current.focus();return}if(!o.current.getAttribute("contenteditable")){let v=Of.focus.tabbable.findNext(o.current);if(v&&qu(o.current,v)&&(0,Of.isFormElement)(v)){v.focus();return}}let{activeElement:f}=a,p=a.defaultView.getSelection(),{clientId:m,offset:g}=s();f?.isContentEditable&&f.contains(d)&&p.anchorNode&&d.contains(p.anchorNode)&&(t===0||g!==void 0&&m===e)||(0,Of.placeCaretAtHorizontalEdge)(d,u)},[t,e]),o}var YO=c(ue(),1);var{subscribeDelegatedListener:Dse}=K(YO.privateApis);function Vse({isEnabled:e=!0}={}){return(0,YO.useRefEffect)(t=>{if(!e)return;let o;function r(s){if(s.defaultPrevented)return;s.preventDefault();let a=s.type==="mouseover";if(t.classList.toggle("is-hovered",a),clearTimeout(o),!a){t.classList.remove("is-hovered-draggable");return}let{target:l}=s;o=setTimeout(()=>{t.classList.toggle("is-hovered-draggable",!l.isContentEditable)},100)}let n=Dse(t,"mouseout",r),i=Dse(t,"mouseover",r);return()=>{n(),i(),clearTimeout(o),t.classList.remove("is-hovered"),t.classList.remove("is-hovered-draggable")}},[e])}var KO=c(ee(),1),qO=c(ue(),1);var{subscribeDelegatedListener:NHe}=K(qO.privateApis);function Fse(e){let{isBlockSelected:t,isBlockMultiSelected:o,isMultiSelecting:r}=(0,KO.useSelect)(B),{selectBlock:n,selectionChange:i}=(0,KO.useDispatch)(B);return(0,qO.useRefEffect)(s=>{function a(l){if(t(e)){l.target.isContentEditable||i(e);return}if(!r()&&!o(e)&&qu(s,l.target)){if(l.target.isContentEditable){n(e,null);return}n(e)}}return NHe(s,"focusin",a)},[t,n])}var Ym=c(F(),1);var jse=c(ee(),1),Hse=c(ue(),1),Wse=c(F(),1);var fW={onKeyDown:"keydown",onKeyUp:"keyup",onBeforeInput:"beforeinput",onInput:"input",onCompositionStart:"compositionstart",onCompositionUpdate:"compositionupdate",onCompositionEnd:"compositionend"},LHe=Object.values(fW);function Use(e){let t;for(let o in fW)typeof e[o]=="function"&&(t=t||{},t[fW[o]]=e[o]);return t}var Gse=["eventPhase","bubbles","cancelable","timeStamp","defaultPrevented","isTrusted"],zse=[...Gse,"view","detail","key","code","location","ctrlKey","shiftKey","altKey","metaKey","repeat","locale","getModifierState","charCode","keyCode","which"],G1=[...Gse,"data"],DHe={keydown:zse,keyup:zse,beforeinput:G1,input:G1,compositionstart:G1,compositionupdate:G1,compositionend:G1};function VHe(e,t){let o=!1,r={nativeEvent:e,type:e.type,target:t,currentTarget:null,preventDefault(){e.preventDefault(),r.defaultPrevented=!0},isDefaultPrevented(){return r.defaultPrevented},stopPropagation(){e.stopPropagation(),o=!0},isPropagationStopped(){return o},persist(){},isPersistent(){return!0}};for(let n of DHe[e.type]){let i=e[n];r[n]=typeof i=="function"?i.bind(e):i}return r}function $se(){let{hasMultiSelection:e,getBlockParents:t}=(0,jse.useSelect)(B),{refsMap:o,eventHandlers:r}=(0,Wse.useContext)(Ec);return(0,Hse.useRefEffect)(n=>{function i(l){if(!r.size||l.target!==n||!l.isTrusted||n.contentEditable!=="true"||e())return;let u=n.ownerDocument.defaultView.getSelection();if(!u.rangeCount)return;let d=dl(u,n),f=Vo(d);if(!f)return;let p=[f,...t(f,!0)],m;for(let g of p){let h=r.get(g)?.current?.[l.type],b=h&&o.get(g);if(b&&(m||(m=VHe(l,d)),m.currentTarget=b,h(m),m.isPropagationStopped()))break}}let s=n.ownerDocument.documentElement,a=LHe.map(l=>(s.addEventListener(l,i),()=>s.removeEventListener(l,i)));return()=>a.forEach(l=>l())},[e,t,o,r])}function Yse(e,t){let{eventHandlers:o}=(0,Ym.useContext)(Ec),r=Use(t),n=(0,Ym.useRef)();(0,Ym.useInsertionEffect)(()=>{n.current=r});let i=!!r;(0,Ym.useEffect)(()=>{if(i)return o.set(e,n),()=>o.delete(e)},[o,e,i])}var kw=c(ce(),1),qse=c(Dt(),1),Ub=c(wo(),1),ZO=c(ee(),1),Zse=c(ue(),1);function Kse(e){return!e||e==="transparent"||e==="rgba(0, 0, 0, 0)"}function Xse({clientId:e,isSelected:t}){let{getBlockRootClientId:o,isZoomOut:r,hasMultiSelection:n,isSectionBlock:i,editedContentOnlySection:s,getBlock:a}=K((0,ZO.useSelect)(B)),{removeBlock:l,resetZoomLevel:u,startDraggingBlocks:d,stopDraggingBlocks:f,editContentOnlySection:p}=K((0,ZO.useDispatch)(B));return(0,Zse.useRefEffect)(m=>{if(!t)return;function g(v){let{keyCode:y,target:_}=v;y!==Ub.ENTER&&y!==Ub.BACKSPACE&&y!==Ub.DELETE||_!==m||(0,qse.isTextField)(_)||(y===Ub.ENTER?r()&&(v.preventDefault(),u()):(v.preventDefault(),l(e)))}function h(v){if(m!==v.target||m.isContentEditable||m.ownerDocument.activeElement!==m||n()){v.preventDefault();return}let y=JSON.stringify({type:"block",srcClientIds:[e],srcRootClientId:o(e)});v.dataTransfer.effectAllowed="move",v.dataTransfer.clearData(),v.dataTransfer.setData("wp-blocks",y);let{ownerDocument:_}=m,{defaultView:w}=_;w.getSelection().removeAllRanges();let x=_.createElement("div");x.style.width="1px",x.style.height="1px",x.style.position="fixed",x.style.visibility="hidden",_.body.appendChild(x),v.dataTransfer.setDragImage(x,0,0);let C=m.getBoundingClientRect(),E=m.id,R=m.cloneNode();R.style.display="none",m.id=null,m.after(R);let S=1;{let W=m;for(;W=W.parentElement;){let{scale:X}=w.getComputedStyle(W);if(X&&X!=="none"){S=parseFloat(X);break}}}let I=1/S,O={};for(let W of["transform","transformOrigin","transition","zIndex","position","top","left","pointerEvents","opacity","backgroundColor"])O[W]=m.style[W];let A=w.scrollY,P=w.scrollX,L=v.clientX,H=v.clientY;m.style.position="relative",m.style.top="0px",m.style.left="0px";let N=v.clientX-C.left,M=v.clientY-C.top,V=C.height>200?200/C.height:1;if(m.style.zIndex="1000",m.style.transformOrigin=`$N*I}px $M*I}px`,m.style.transition="transform 0.2s ease-out",m.style.transform=`scale($V})`,m.style.opacity="0.9",Kse(w.getComputedStyle(m).backgroundColor)){let W="transparent",X=m;for(;X=X.parentElement;){let{backgroundColor:U}=w.getComputedStyle(X);if(!Kse(U)){W=U;break}}m.style.backgroundColor=W}let j=!1,D=L,z=H;function $(W){W.clientX===D&&W.clientY===z||(D=W.clientX,z=W.clientY,J())}function J(){j||(j=!0,m.style.pointerEvents="none");let W=z-H,X=D-L,U=w.scrollY,G=w.scrollX,te=U-A,re=G-P,ae=W+te,ie=X+re;m.style.top=`$ae*I}px`,m.style.left=`$ie*I}px`}function Q(){_.removeEventListener("dragover",$),_.removeEventListener("dragend",Q),_.removeEventListener("drop",Q),_.removeEventListener("scroll",J);for(let[W,X]of Object.entries(O))m.style[W]=X;R.remove(),m.id=E,x.remove(),f(),document.body.classList.remove("is-dragging-components-draggable"),_.documentElement.classList.remove("is-dragging")}_.addEventListener("dragover",$),_.addEventListener("dragend",Q),_.addEventListener("drop",Q),_.addEventListener("scroll",J),d([e]),document.body.classList.add("is-dragging-components-draggable"),_.documentElement.classList.add("is-dragging")}m.addEventListener("keydown",g),m.addEventListener("dragstart",h);function b(v){let y=i(e),_=a(e),w=(0,kw.isReusableBlock)(_),k=(0,kw.isTemplatePart)(_);!y||s===e||w||k||(v.preventDefault(),p(e))}return m.addEventListener("dblclick",b),()=>{m.removeEventListener("keydown",g),m.removeEventListener("dragstart",h),m.removeEventListener("dblclick",b)}},[e,t,o,a,kw.isReusableBlock,kw.isTemplatePart,l,r,u,n,d,f,i,s,p])}var Qse=c(ue(),1),Jse=c(F(),1);function eae(){let e=(0,Jse.useContext)(XO);return(0,Qse.useRefEffect)(t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}},[e])}var QO=c(ue(),1);function tae({isSelected:e}){let t=(0,QO.useReducedMotion)();return(0,QO.useRefEffect)(o=>{if(e){let{ownerDocument:r}=o,{defaultView:n}=r;if(!n.IntersectionObserver)return;let i=new n.IntersectionObserver(s=>{s[0].isIntersecting||o.scrollIntoView({behavior:t?"instant":"smooth"}),i.disconnect()});return i.observe(o),()=>{i.disconnect()}}},[e])}var oae=c(ue(),1),rae=c(ee(),1);function JO({clientId:e="",isEnabled:t=!0}={}){let{getEnabledClientIdsTree:o}=K((0,rae.useSelect)(B));return(0,oae.useRefEffect)(r=>{if(!t)return;let n=()=>{o(e).forEach(({clientId:s})=>{let a=r.querySelector(`[data-block="$s}"]`);a&&(a.classList.remove("has-editable-outline"),a.offsetWidth,a.classList.add("has-editable-outline"))})},i=s=>{(s.target===r||s.target.classList.contains("is-root-container"))&&(s.defaultPrevented||(s.preventDefault(),n()))};return r.addEventListener("click",i),()=>r.removeEventListener("click",i)},[t])}var nae=c(ue(),1),$1=new Map;function FHe(e,t){let o=$1.get(e);o||(o=new Set,$1.set(e,o),e.addEventListener("pointerdown",sae)),o.add(t)}function zHe(e,t){let o=$1.get(e);o&&(o.delete(t),iae(t),o.size===0&&($1.delete(e),e.removeEventListener("pointerdown",sae)))}function iae(e){let t=e.getAttribute("data-draggable");t&&(e.removeAttribute("data-draggable"),t==="true"&&!e.getAttribute("draggable")&&e.setAttribute("draggable","true"))}function sae(e){let{target:t}=e,{ownerDocument:o,isContentEditable:r,tagName:n}=t,i=["INPUT","TEXTAREA"].includes(n),s=$1.get(o);if(r||i)for(let a of s)a.getAttribute("draggable")==="true"&&a.contains(t)&&(a.removeAttribute("draggable"),a.setAttribute("data-draggable","true"));else for(let a of s)iae(a)}function aae(){return(0,nae.useRefEffect)(e=>(FHe(e.ownerDocument,e),()=>{zHe(e.ownerDocument,e)}),[])}var Kr=c(Z(),1),ns=c(F(),1),is=c(q(),1),Gb=c(ee(),1),dae=c(fl(),1),fae=c(Ns(),1);var Y1=c(Z(),1);var{getViewportBreakpoints:jHe}=K(Lo);function pW(e){let t=jHe(e);return Sj.filter(([o])=>(o!==mn.tablet.key||t.tablet!==void 0)&&(o!==mn.mobile.key||t.mobile!==void 0))}function HHe(e,t){if(!e)return!1;let o=e.attributes?.metadata?.blockVisibility;if(o===!0||typeof o!="object")return!1;let r=o.viewport;return!r||typeof r!="object"||!Sj.some(([,{key:n}])=>n===t)?!1:r[t]===!1}function cae(e,t){if(!e?.length)return!1;let o=e.filter(r=>HHe(r,t)).length;return o===0?!1:o===e.length?!0:null}function uae(e){if(!e?.length)return!1;let t=e.filter(o=>o&&o.attributes?.metadata?.blockVisibility===!1).length;return t===0?!1:t===e.length?!0:null}function mW(e,t){if(!e&&e!==!1)return null;if(e===!1)return(0,Y1.__)("Block is hidden");if(e?.viewport){let o=pW(t).filter(([r])=>e.viewport?.[r]===!1).map(([,r])=>r.label);if(o.length>0)return(0,Y1.sprintf)((0,Y1.__)("Block is hidden on %s"),o.join(", "))}return null}var Nr=c(T(),1),WHe={[mn.mobile.key]:!1,[mn.tablet.key]:!1,[mn.desktop.key]:!1},UHe=[];function gW({clientIds:e,onClose:t}){let{createSuccessNotice:o}=(0,Gb.useDispatch)(fae.store),{updateBlockAttributes:r}=(0,Gb.useDispatch)(B),n=(0,Gb.useSelect)(w=>w(B).getBlocksByClientId(e)??UHe,[e]),i=(0,Gb.useSelect)(w=>w(dae.store).getShortcutRepresentation("core/editor/toggle-list-view"),[]),s=(0,Gb.useSelect)(w=>w(B).getSettings().__experimentalFeatures?.viewport,[]),a=(0,ns.useMemo)(()=>pW(s),[s]),l=(0,ns.useMemo)(()=>{if(n?.length===0)return{hideEverywhere:!1,viewportChecked:{}};let w={};return a.forEach(([,{key:k}])=>{w[k]=cae(n,k)}),{hideEverywhere:uae(n),viewportChecked:w}},[n,a]),[u,d]=(0,ns.useState)(l?.viewportChecked??{}),[f,p]=(0,ns.useState)(l?.hideEverywhere??!1),m=(0,ns.useCallback)((w,k)=>{d({...u,[w]:k})},[u]),g=(0,ns.useMemo)(()=>{if(!f)return(0,Kr.sprintf)((0,Kr.__)("Block visibility settings updated. You can access them via the List View (%s)."),i);let w=n?.length>1?(0,Kr.__)("Blocks hidden. You can access them via the List View (%s)."):(0,Kr.__)("Block hidden. You can access it via the List View (%s).");return(0,Kr.sprintf)(w,i)},[f,n?.length,i]),h=(0,ns.useMemo)(()=>Object.values(u).some(w=>w===!0||w===null),[u]),b=(0,ns.useMemo)(()=>f!==l.hideEverywhere?!0:a.some(([,{key:w}])=>u[w]!==l.viewportChecked[w]),[f,u,l,a]),v=(0,ns.useMemo)(()=>f===null?!0:Object.values(u).some(w=>w===null),[f,u]),y=(0,ns.useCallback)(w=>{w.preventDefault();let k=f?!1:{viewport:a.reduce((C,[,{key:E}])=>(u[E]&&(C[E]=!1),C),{})},x=Object.fromEntries(n.map(({clientId:C,attributes:E})=>[C,{metadata:Xe({...E?.metadata,blockVisibility:k})}]));r(e,x,{uniqueByBlock:!0}),o(g,{id:f?"block-visibility-hidden":"block-visibility-viewports-updated",type:"snackbar"}),t()},[n,e,o,f,g,t,r,a,u]),_=n?.length>1;return(0,Nr.jsx)(is.Modal,{title:e?.length>1?(0,Kr.__)("Hide blocks"):(0,Kr.__)("Hide block"),onRequestClose:t,overlayClassName:"block-editor-block-visibility-modal",size:"small",children:(0,Nr.jsxs)("form",{onSubmit:y,children:[(0,Nr.jsxs)("fieldset",{children:[(0,Nr.jsx)("legend",{children:_?(0,Kr.__)("Select the viewport sizes for which you want to hide the blocks. Changes will apply to all selected blocks."):(0,Kr.__)("Select the viewport size for which you want to hide the block.")}),(0,Nr.jsx)("ul",{className:"block-editor-block-visibility-modal__options",children:(0,Nr.jsxs)("li",{className:"block-editor-block-visibility-modal__options-item block-editor-block-visibility-modal__options-item--everywhere",children:[(0,Nr.jsx)(is.CheckboxControl,{className:"block-editor-block-visibility-modal__options-checkbox--everywhere",label:(0,Kr.__)("Omit from published content"),checked:f===!0,indeterminate:f===null,onChange:w=>{p(w),d(WHe)}}),f!==!0&&(0,Nr.jsx)("ul",{className:"block-editor-block-visibility-modal__sub-options",children:a.map(([,{label:w,icon:k,key:x}])=>(0,Nr.jsxs)("li",{className:"block-editor-block-visibility-modal__options-item",children:[(0,Nr.jsx)(is.CheckboxControl,{label:(0,Kr.sprintf)((0,Kr.__)("Hide on %s"),w),checked:u[x]??!1,indeterminate:u[x]===null,onChange:C=>m(x,C)}),(0,Nr.jsx)(is.Icon,{icon:k,className:Y({"block-editor-block-visibility-modal__options-icon--checked":u[x]})})]},x))})]})}),_&&v&&(0,Nr.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,Kr.__)("Selected blocks have different visibility settings. The checkboxes show an indeterminate state when settings differ.")}),!_&&f===!0&&(0,Nr.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,Kr.sprintf)((0,Kr.__)("Block will be hidden in the editor, and omitted from the published markup on the frontend. You can configure it again by selecting it in the List View (%s)."),i)}),!_&&!f&&h&&(0,Nr.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,ns.createInterpolateElement)((0,Kr.sprintf)((0,Kr.__)("Block will be hidden according to the selected viewports. It will be <strong>included in the published markup on the frontend</strong>. You can configure it again by selecting it in the List View (%s)."),i),{strong:(0,Nr.jsx)("strong",{})})})]}),(0,Nr.jsxs)(is.Flex,{className:"block-editor-block-visibility-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Nr.jsx)(is.FlexItem,{children:(0,Nr.jsx)(is.Button,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,Kr.__)("Cancel")})}),(0,Nr.jsx)(is.FlexItem,{children:(0,Nr.jsx)(is.Button,{variant:"primary",type:"submit",disabled:!b,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,Kr.__)("Apply")})})]})]})})}var hW=c(ue(),1);var{getViewportBreakpoints:GHe}=K(Lo);function pl({blockVisibility:e,deviceType:t="desktop",viewportSettings:o,view:r=window}={}){let n=GHe(o),i=n.mobile?`(width <= $n.mobile})`:void 0,s=(0,hW.useMediaQuery)(i,r),a;n.tablet&&(a=n.mobile?`($n.mobile} < width <= $n.tablet})`:`(width <= $n.tablet})`);let l=(0,hW.useMediaQuery)(a,r),u;return t==="mobile"&&n.mobile?u="mobile":t==="tablet"&&n.tablet?u="tablet":s?u="mobile":l&&n.tablet?u="tablet":u="desktop",{isBlockCurrentlyHidden:e===!1||typeof e=="object"&&e?.viewport?.[u]===!1,currentViewport:u}}var bW=c(Z(),1),eA=c(q(),1),tA=c(F(),1);var pae=c(ce(),1),oA=c(ee(),1);var yW=c(T(),1);function vW({clientIds:e}){let t=(0,tA.useRef)(!1),[o]=je("blockVisibility.allowEditing"),{canToggleBlockVisibility:r,areBlocksHiddenAnywhere:n}=(0,oA.useSelect)(a=>{let{getBlocksByClientId:l,getBlockName:u,isBlockHiddenAnywhere:d}=K(a(B));return{canToggleBlockVisibility:l(e).every(({clientId:p})=>(0,pae.hasBlockSupport)(u(p),"visibility",!0)),areBlocksHiddenAnywhere:e?.every(p=>d(p))}},[e]),i=(0,oA.useDispatch)(B);if((0,tA.useEffect)(()=>{n&&(t.current=!0)},[n]),o===!1||!n&&!t.current)return null;let{showViewportModal:s}=K(i);return(0,yW.jsx)(eA.ToolbarGroup,{className:"block-editor-block-visibility-toolbar",children:(0,yW.jsx)(eA.ToolbarButton,{disabled:!r,icon:n?_c:kb,label:n?(0,bW.__)("Hidden"):(0,bW.__)("Visible"),onClick:()=>s(e),"aria-haspopup":"dialog"})})}var _W=c(Z(),1),mae=c(q(),1),rA=c(ee(),1),gae=c(fl(),1);var hae=c(T(),1);function wW({clientIds:e}){let[t]=je("blockVisibility.allowEditing"),{areBlocksHiddenAnywhere:o,shortcut:r}=(0,rA.useSelect)(s=>{let{isBlockHiddenAnywhere:a}=K(s(B));return{areBlocksHiddenAnywhere:e?.every(l=>a(l)),shortcut:s(gae.store).getShortcutRepresentation("core/block-editor/toggle-block-visibility")}},[e]),n=(0,rA.useDispatch)(B);if(t===!1)return null;let{showViewportModal:i}=K(n);return(0,hae.jsx)(mae.MenuItem,{onClick:()=>i(e),shortcut:r,children:o?(0,_W.__)("Show"):(0,_W.__)("Hide")})}var qm=c(q(),1),kW=c(ee(),1),Km=c(Z(),1);var xw=c(T(),1),{Badge:$He}=K(qm.privateApis),YHe={currentBlockVisibility:void 0,hasParentHiddenEverywhere:!1,selectedDeviceType:mn.desktop.key};function bae({clientId:e}){let{currentBlockVisibility:t,selectedDeviceType:o,viewportSettings:r,hasParentHiddenEverywhere:n}=(0,kW.useSelect)(p=>{if(!e)return YHe;let{getBlockAttributes:m,isBlockParentHiddenEverywhere:g,getSettings:h}=K(p(B)),b=h();return{currentBlockVisibility:m(e)?.metadata?.blockVisibility,selectedDeviceType:b?.[el]?.toLowerCase()||mn.desktop.key,viewportSettings:b?.__experimentalFeatures?.viewport,hasParentHiddenEverywhere:g(e)}},[e]),s=Zt(e)?.ownerDocument?.defaultView,a=s===null?void 0:s,{isBlockCurrentlyHidden:l,currentViewport:u}=pl({blockVisibility:t,deviceType:o,viewportSettings:r,view:a}),d=(0,kW.useSelect)(p=>!e||!u?!1:K(p(B)).isBlockParentHiddenAtViewport(e,u),[e,u]);if(!(l||n||d))return null;let f;if(l)if(t===!1)f=(0,Km.__)("Block is hidden");else{let p=mn[u]?.label||u;f=(0,Km.sprintf)((0,Km.__)("Block is hidden on %s"),p)}if(n)f=(0,Km.__)("Parent block is hidden");else if(d){let p=mn[u]?.label||u;f=(0,Km.sprintf)((0,Km.__)("Parent block is hidden on %s"),p)}return(0,xw.jsx)($He,{className:"block-editor-block-visibility-info",children:(0,xw.jsxs)(qm.__experimentalHStack,{spacing:2,justify:"start",children:[(0,xw.jsx)(qm.Icon,{icon:_c}),(0,xw.jsx)(qm.__experimentalText,{children:f})]})})}function KHe(e,t){let{insertBlocks:o}=(0,_ae.useDispatch)(B);return(0,$b.useRefEffect)(r=>{if(!t)return;function n(){r.removeEventListener("pointerdown",i,!0),r.removeEventListener("focusin",i,!0)}function i(){n(),o([t],void 0,e,!0,0)}return r.addEventListener("pointerdown",i,!0),r.addEventListener("focusin",i,!0),n},[t,e,o])}function q1(e={},{__unstableIsHtml:t}={}){let{clientId:o,className:r,wrapperProps:n={},isAligned:i,index:s,mode:a,name:l,blockApiVersion:u,blockTitle:d,isSelected:f,isSubtreeDisabled:p,hasOverlay:m,initialPosition:g,blockEditingMode:h,isHighlighted:b,isMultiSelected:v,isPartiallySelected:y,isReusable:_,isDragging:w,hasChildSelected:k,isEditingDisabled:x,hasEditableOutline:C,isEditingContentOnlySection:E,defaultClassName:R,isSectionBlock:S,isWithinSectionBlock:I,canMove:O,blockVisibility:A,deviceType:P,viewportSettings:L,ariaLabel:H,ghostBlock:N,rootClientId:M}=(0,yae.useContext)(Rn),V=KHe(M,N);Yse(o,n);let j=(0,$b.useRefEffect)(re=>{if(re){let{ownerDocument:ae}=re,{defaultView:ie}=ae;j.current=ie}},[]),D=(0,K1.sprintf)((0,K1.__)("Block: %s"),d),z=a==="html"&&!t?"-visual":"",$=aae(),J=!I,Q=(0,$b.useMergeRefs)([e.ref,V,j,Lse({clientId:o,initialPosition:g}),Hne(o),Fse(o),Xse({clientId:o,isSelected:f}),Vse({isEnabled:J}),eae(),WO({triggerAnimationOnChange:s,clientId:o}),(0,$b.useDisabled)({isDisabled:!m}),JO({clientId:o,isEnabled:S}),tae({isSelected:f}),O?$:void 0]),W=kt(),U=!!W[i_]?{"--wp-admin-theme-color":"var(--wp-block-synced-color)","--wp-admin-theme-color--rgb":"var(--wp-block-synced-color--rgb)"}:{},{isBlockCurrentlyHidden:G}=pl({blockVisibility:A,deviceType:P,viewportSettings:L,view:j.current});u<2&&o===W.clientId&&(0,wae.default)(`Block type "$l}" must support API version 2 or higher to work correctly with "useBlockProps" method.`);let te=!1;return(n?.style?.marginTop?.charAt(0)==="-"||n?.style?.marginBottom?.charAt(0)==="-"||n?.style?.marginLeft?.charAt(0)==="-"||n?.style?.marginRight?.charAt(0)==="-")&&(te=!0),{tabIndex:h==="disabled"?-1:0,draggable:O&&!k?!0:void 0,...n,...e,ref:Q,id:`block-$o}$z}`,role:"document","aria-label":H??(o===N?.clientId?(0,K1.__)("Add default block"):void 0)??e["aria-label"]??D,"data-block":o,"data-type":l,"data-title":d,inert:p?"true":void 0,className:Y("block-editor-block-list__block",{"wp-block":!i,"has-block-overlay":m,"is-selected":f,"is-highlighted":b,"is-multi-selected":v,"is-partially-selected":y,"is-reusable":_,"is-dragging":w,"has-child-selected":k,"is-editing-disabled":x,"has-editable-outline":C,"has-negative-margin":te,"is-editing-content-only-section":E,"is-block-hidden":G},r,e.className,n.className,R),style:{...n.style,...e.style,...U}}}q1.save=vae.__unstableGetBlockProps;var qr=c(T(),1);function qHe(e,t){let o={...e,...t};return e?.hasOwnProperty("className")&&t?.hasOwnProperty("className")&&(o.className=Y(e.className,t.className)),e?.hasOwnProperty("style")&&t?.hasOwnProperty("style")&&(o.style={...e.style,...t.style}),o}function nA({children:e,isHtml:t,...o}){return(0,qr.jsx)("div",{...q1(o,{__unstableIsHtml:t}),children:e})}function xW({block:{__unstableBlockSource:e},mode:t,isLocked:o,canRemove:r,clientId:n,isSelected:i,isSelectionEnabled:s,className:a,__unstableLayoutClassNames:l,name:u,isValid:d,attributes:f,wrapperProps:p,setAttributes:m,onReplace:g,onRemove:h,onInsertBlocksAfter:b,onMerge:v,toggleSelection:y}){let{mayDisplayControls:_,mayDisplayParentControls:w,isSelectionWithinCurrentSection:k,themeSupportsLayout:x,...C}=(0,Af.useContext)(Rn),E=Pb()||{},R=(0,qr.jsx)(A2,{name:u,isSelected:i,attributes:f,setAttributes:m,insertBlocksAfter:o?void 0:b,onReplace:r?g:void 0,onRemove:r?h:void 0,mergeBlocks:r?v:void 0,clientId:n,isSelectionEnabled:s,toggleSelection:y,__unstableLayoutClassNames:l,__unstableParentLayout:Object.keys(E).length?E:void 0,mayDisplayControls:_,mayDisplayParentControls:w,mayDisplayPatternEditingControls:k,blockEditingMode:C.blockEditingMode,isPreviewMode:C.isPreviewMode}),S=(0,Xt.getBlockType)(u);S?.getEditWrapperProps&&(p=qHe(p,S.getEditWrapperProps(f)));let I=p&&!!p["data-align"]&&!x,O=a?.includes("is-position-sticky");I&&(R=(0,qr.jsx)("div",{className:Y("wp-block",O&&a),"data-align":p["data-align"],children:R}));let A;if(d)t==="html"?A=(0,qr.jsxs)(qr.Fragment,{children:[(0,qr.jsx)("div",{style:{display:"none"},children:R}),(0,qr.jsx)(nA,{isHtml:!0,children:(0,qr.jsx)(Iie,{clientId:n})})]}):S?.apiVersion>1?A=R:A=(0,qr.jsx)(nA,{children:R});else{let N=e?(0,Xt.serializeRawBlock)(e):(0,Xt.getSaveContent)(S,f);A=(0,qr.jsxs)(nA,{className:"has-warning",children:[(0,qr.jsx)(oie,{clientId:n}),(0,qr.jsx)(Af.RawHTML,{children:(0,xae.safeHTML)(N)})]})}let{"data-align":P,...L}=p??{},H={...L,className:Y(L.className,P&&x&&`align$P}`,!(P&&O)&&a)};return(0,qr.jsx)(Rn.Provider,{value:{wrapperProps:H,isAligned:I,isSelectionWithinCurrentSection:k,...C},children:(0,qr.jsx)(aie,{fallback:(0,qr.jsx)(nA,{className:"has-warning",children:(0,qr.jsx)(iie,{})}),children:A})})}var ZHe=(0,iA.withDispatch)((e,t,o)=>{let{updateBlockAttributes:r,insertBlocks:n,mergeBlocks:i,replaceBlocks:s,toggleSelection:a,__unstableMarkLastChangeAsPersistent:l,moveBlocksToPosition:u,removeBlock:d,selectBlock:f}=e(B);return{setAttributes(p){let{getMultiSelectedBlockClientIds:m}=o.select(B),g=m(),{clientId:h,attributes:b}=t,v=g.length?g:[h],y=typeof p=="function"?p(b):p;r(v,y)},onInsertBlocks(p,m){let{rootClientId:g}=t;n(p,m,g)},onInsertBlocksAfter(p){let{clientId:m,rootClientId:g}=t,{getBlockIndex:h}=o.select(B),b=h(m);n(p,b+1,g)},onMerge(p){let{clientId:m,rootClientId:g}=t,{getPreviousBlockClientId:h,getNextBlockClientId:b,getBlock:v,getBlockAttributes:y,getBlockName:_,getBlockOrder:w,getBlockIndex:k,getBlockRootClientId:x,canInsertBlockType:C}=o.select(B);function E(){let S=v(m),I=(0,Xt.getDefaultBlockName)(),O=(0,Xt.getBlockType)(I);if(_(m)!==I){let A=(0,Xt.switchToBlockType)(S,I);A&&A.length&&s(m,A)}else if((0,Xt.isUnmodifiedDefaultBlock)(S)){let A=b(m);A&&o.batch(()=>{d(m),f(A)})}else if(O.merge){let A=O.merge({},S.attributes);s([m],[(0,Xt.createBlock)(I,A)])}}function R(S,I=!0){let O=_(S),P=(0,Xt.getBlockType)(O).category==="text",L=x(S),H=w(S),[N]=H;H.length===1&&(0,Xt.isUnmodifiedBlock)(v(N),"content")?d(S):P?o.batch(()=>{if(C(_(N),L))u([N],S,L,k(S));else{let M=(0,Xt.switchToBlockType)(v(N),(0,Xt.getDefaultBlockName)());M&&M.length&&M.every(V=>C(V.name,L))?(n(M,k(S),L,I),d(N,!1)):E()}!w(S).length&&(0,Xt.isUnmodifiedBlock)(v(S),"content")&&d(S,!1)}):E()}if(p){if(g){let I=b(g);if(I)if(_(g)===_(I)){let O=y(g),A=y(I);if(Object.keys(O).every(P=>O[P]===A[P])){o.batch(()=>{u(w(I),I,g),d(I,!1)});return}}else{i(g,I);return}}let S=b(m);if(!S)return;if((0,Xt.isUnmodifiedDefaultBlock)(v(m))){let I=S;for(;w(I).length;)I=w(I)[0];o.batch(()=>{d(m),f(I)})}else w(S).length?R(S,!1):i(m,S)}else{let S=h(m);if(S)i(S,m);else if(g){let I=h(g);if(I&&_(g)===_(I)){let O=y(g),A=y(I);if(Object.keys(O).every(P=>O[P]===A[P])){o.batch(()=>{u(w(g),g,I),d(g,!1)});return}}R(g)}else E()}},onReplace(p,m,g){p.length&&!(0,Xt.isUnmodifiedDefaultBlock)(p[p.length-1])&&l();let h=p?.length===1&&Array.isArray(p[0])?p[0]:p;s([t.clientId],h,m,g)},onRemove(){d(t.clientId)},toggleSelection(p){a(p)}}});xW=(0,sA.compose)(ZHe,(0,kae.withFilters)("editor.BlockListBlock"))(xW);function XHe(e){let{clientId:t,rootClientId:o,ghostBlock:r}=e,n=(0,Af.useMemo)(()=>r?{clientId:r.clientId,name:r.name,isValid:!0}:void 0,[r]),i=(0,iA.useSelect)(pe=>{let{isBlockSelected:ke,getBlockMode:ye,isSelectionEnabled:Pe,getTemplateLock:_e,isSectionBlock:ve,getParentSectionBlock:Se,getBlockWithoutAttributes:fe,getBlockAttributes:Ce,canRemoveBlock:ne,canMoveBlock:se,getSettings:Ee,getEditedContentOnlySection:he,getBlockEditingMode:Ae,getBlockName:et,isFirstMultiSelectedBlock:Je,getMultiSelectedBlockClientIds:_t,hasSelectedInnerBlock:Et,getBlocksByName:mt,getBlockIndex:oo,isBlockMultiSelected:Tt,isBlockSubtreeDisabled:Rt,isBlockHighlighted:Bt,__unstableIsFullySelected:gt,__unstableSelectionHasUnmergeableBlock:He,isBlockBeingDragged:we,isDragging:Me,__unstableHasActiveBlockOverlayActive:ge,getSelectedBlocksInitialCaretPosition:Re}=K(pe(B)),Ie=fe(t)??(t===n?.clientId?n:void 0);if(!Ie)return;let{hasBlockSupport:at,getActiveBlockVariation:Qe}=pe(Xt.store),po=Ce(t)??r?.attributes,{name:ro,isValid:vo}=Ie,Kt=(0,Xt.getBlockType)(ro),_o=Ee(),{supportsLayout:En,isPreviewMode:it,__experimentalBlockBindingsSupportedAttributes:Vt}=_o,Pr=Vt?.[ro],gr=po?.metadata?.blockVisibility,Gr=_o?.[el]?.toLowerCase()||"desktop",Or=_o?.__experimentalFeatures?.viewport,pn=Kt?.apiVersion>1,Pi=Tt(t),Be=Ae(t),Ht={isPreviewMode:it,blockWithoutAttributes:Ie,name:ro,attributes:po,isValid:vo,themeSupportsLayout:En,index:oo(t),isReusable:(0,Xt.isReusableBlock)(Kt),className:pn?po.className:void 0,defaultClassName:pn?(0,Xt.getBlockDefaultClassName)(ro):void 0,blockTitle:Kt?.title,bindableAttributes:Pr,blockVisibility:gr,deviceType:Gr,viewportSettings:Or,isMultiSelected:Pi,blockEditingMode:Be,isEditingDisabled:Be==="disabled"};if(it)return Ht;let lt=ke(t),no=ne(t),Ar=se(t),rr=Qe(ro,po),si=!0,lf=Et(t,si),Xa=ve(t),bc=Xa?t:Se(t),W0=ke(bc)||!!bc&&Et(bc,si),tb=(0,Xt.hasBlockSupport)(ro,"multiple",!0)?[]:mt(ro),t_=tb.length&&tb[0]!==t;return{...Ht,mode:ye(t),isSelectionEnabled:Pe(),isLocked:!!_e(o),isSectionBlock:Xa,isWithinSectionBlock:!!bc,isSelectionWithinCurrentSection:W0,blockType:Kt,canRemove:no,canMove:Ar,isSelected:lt,isEditingContentOnlySection:he()===t,blockEditingMode:Be,mayDisplayControls:lt||Je(t)&&_t().every(ob=>et(ob)===ro),mayDisplayParentControls:at(et(t),"__experimentalExposeControlsToChildren",!1)&&Et(t),blockApiVersion:Kt?.apiVersion||1,blockTitle:rr?.title||Kt?.title,isSubtreeDisabled:Be==="disabled"&&Rt(t),hasOverlay:ge(t)&&!Me(),initialPosition:lt?Re():void 0,isHighlighted:Bt(t),isMultiSelected:Pi,isPartiallySelected:Pi&&!gt()&&!He(),isDragging:we(t),hasChildSelected:lf,isEditingDisabled:Be==="disabled",hasEditableOutline:Be!=="disabled"&&Ae(o)==="disabled",originalBlockClientId:t_?tb[0]:!1,blockVisibility:gr,deviceType:Gr,viewportSettings:Or,supportsSplitting:(0,Xt.hasBlockSupport)(ro,"splitting",!1)}},[t,o,r,n]),s=(0,sA.useRefEffect)(pe=>{if(pe){let{ownerDocument:ke}=pe,{defaultView:ye}=ke;s.current=ye}},[]),{isBlockCurrentlyHidden:a}=pl({blockVisibility:i?.blockVisibility,deviceType:i?.deviceType,viewportSettings:i?.viewportSettings,view:s.current}),l=(0,Af.useMemo)(()=>({...i?.blockWithoutAttributes,attributes:i?.attributes}),[i?.blockWithoutAttributes,i?.attributes]);if(!i)return null;let{isPreviewMode:u,mode:d="visual",isSelectionEnabled:f=!1,isLocked:p=!1,canRemove:m=!1,canMove:g=!1,name:h,attributes:b,isValid:v,isSelected:y=!1,themeSupportsLayout:_,isEditingContentOnlySection:w,blockEditingMode:k,mayDisplayControls:x,mayDisplayParentControls:C,index:E,blockApiVersion:R,blockType:S,blockTitle:I,isSubtreeDisabled:O,hasOverlay:A,initialPosition:P,isHighlighted:L,isMultiSelected:H,isPartiallySelected:N,isReusable:M,isDragging:V,hasChildSelected:j,isSectionBlock:D,isWithinSectionBlock:z,isSelectionWithinCurrentSection:$,isEditingDisabled:J,hasEditableOutline:Q,className:W,defaultClassName:X,originalBlockClientId:U,bindableAttributes:G,blockVisibility:te,deviceType:re,viewportSettings:ae,supportsSplitting:ie}=i,be={isPreviewMode:u,ghostBlock:r,rootClientId:o,clientId:t,className:W,index:E,mode:d,name:h,blockApiVersion:R,blockType:S,blockTitle:I,isSelected:y,isSubtreeDisabled:O,hasOverlay:A,initialPosition:P,blockEditingMode:k,isHighlighted:L,isMultiSelected:H,isPartiallySelected:N,isReusable:M,isDragging:V,hasChildSelected:j,isSectionBlock:D,isWithinSectionBlock:z,isSelectionWithinCurrentSection:$,isEditingDisabled:J,hasEditableOutline:Q,isEditingContentOnlySection:w,defaultClassName:X,mayDisplayControls:x,mayDisplayParentControls:C,originalBlockClientId:U,themeSupportsLayout:_,canMove:g,isBlockCurrentlyHidden:a,bindableAttributes:G,blockVisibility:te,deviceType:re,viewportSettings:ae,supportsSplitting:ie};return a&&!y&&!H&&!j?null:(0,qr.jsx)(Rn.Provider,{value:be,children:(0,qr.jsx)(xW,{...e,mode:d,isSelectionEnabled:f,isLocked:p,canRemove:m,canMove:g,block:l,name:h,attributes:b,isValid:v,isSelected:y})})}var aA=(0,Af.memo)(XHe);var mq=c(ee(),1),Wxe=c(ce(),1);var fq=c(Z(),1),Vxe=c(Cae(),1),x5=c(ee(),1),S5=c(wo(),1);var Dxe=c(Yo(),1),tp=c(Z(),1),k5=c(q(),1),kx=c(ee(),1),Vy=c(ce(),1),dq=c(F(),1);var go=c(F(),1),b5=c(q(),1);var spe=c(F(),1);var Yb=c(oe(),1);function Mf({controlled:e,default:t,name:o,state:r="value"}){let{current:n}=Yb.useRef(e!==void 0),[i,s]=Yb.useState(t),a=n?e:i,l=Yb.useCallback(u=>{n||s(u)},[]);return[a,l]}var QHe=c(oe(),1),Z1={...QHe};var Tae=c(oe(),1),Eae={};function eo(e,t){let o=Tae.useRef(Eae);return o.current===Eae&&(o.current=e(t)),o}var SW=Z1.useInsertionEffect,JHe=SW&&SW!==Z1.useLayoutEffect?SW:e=>e();function de(e){let t=eo(eWe).current;return t.next=e,JHe(t.effect),t.trampoline}function eWe(){let e={next:void 0,callback:tWe,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function tWe(){}var Nf=c(oe(),1);var Rae=c(oe(),1),oWe=()=>{},le=typeof document<"u"?Rae.useLayoutEffect:oWe;var lA=c(oe(),1),CW=lA.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function Bae(){return lA.useContext(CW)}var Iae=c(T(),1);function Sw(e){let{children:t,elementsRef:o,labelsRef:r,onMapChange:n}=e,i=de(n),[,s]=Nf.useState(!1),a=eo(nWe).current,l=eo(rWe).current,u=Nf.useRef(0),d=Nf.useRef(!0),f=Nf.useRef([]),p=Nf.useRef(null),m=de(()=>{d.current||(d.current=!0,s(k=>!k))}),g=de((k,x)=>{l.set(k,x),m()}),h=de(k=>{l.delete(k),m()}),b=de(k=>{let x=new Map;return o.current.length=0,r&&(r.current.length=0),k.forEach(C=>{x.set(C.element,{...C.registration.metadata??{},index:C.index}),o.current[C.index]=C.element,r&&(r.current[C.index]=C.registration.label!==void 0?C.registration.label:C.registration.textRef?.current?.textContent??C.element.textContent)}),u.current=o.current.length,x});function v(k){if(p.current?.disconnect(),p.current=null,typeof MutationObserver!="function"||k.length<2)return;let x=new MutationObserver(E=>{if(!aWe(E))return;let R=null;for(let S of k)if(S.isConnected){if(R&&Pae(R,S)>0){x.disconnect(),m();return}R=S}});p.current=x;let C=new Set;for(let E=1;E<k.length;E+=1){let R=sWe(k[E-1],k[E]);R&&C.add(R)}C.forEach(E=>x.observe(E,{childList:!0}))}let y=de(()=>{let[k,x]=iWe(l),C=b(k);v(x),f.current=k,d.current=!1,a.forEach(E=>E(C)),i(C)});le(()=>(d.current||b(f.current),()=>{o.current=[],r&&(r.current=[])}),[o,r,b]),le(()=>{d.current&&y()}),le(()=>()=>{p.current?.disconnect(),d.current=!0},[]);let _=de(k=>(a.add(k),()=>{a.delete(k)})),w=Nf.useMemo(()=>({register:g,unregister:h,subscribeMapChange:_,nextIndexRef:u}),[g,h,_,u]);return(0,Iae.jsx)(CW.Provider,{value:w,children:t})}function rWe(){return new Map}function nWe(){return new Set}function iWe(e){let t=new Set,o=[],r=[];e.forEach((i,s)=>{if(!s.isConnected)return;let a=i.index,l={index:a??-1,element:s,registration:i};a===null?r.push(l):a>=0&&(t.add(a),o.push(l))});let n=0;return r.sort((i,s)=>Pae(i.element,s.element)),r.forEach(i=>{for(;t.has(n);)n+=1;i.index=n,o.push(i),n+=1}),t.size>0&&o.sort((i,s)=>i.index-s.index),[o,r.map(i=>i.element)]}function sWe(e,t){let o=e.parentElement;for(;o&&!o.contains(t);)o=o.parentElement;return o}function aWe(e){for(let t of e)for(let o=0;o<t.removedNodes.length;o+=1)if(t.removedNodes[o].isConnected)return!0;return!1}function Pae(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function lWe(e,t){return function(r,...n){let i=new URL(e);return i.searchParams.set("code",r.toString()),n.forEach(s=>i.searchParams.append("args[]",s)),`$t} error #$r}; visit $i} for the full message.`}}var cWe=lWe("https://base-ui.com/production-error","Base UI"),Wt=cWe;var Kb=c(oe(),1);function Vs(e,t,o,r){let n=eo(Aae).current;return uWe(n,e,t,o,r)&&Mae(n,[e,t,o,r]),n.callback}function Oae(e){let t=eo(Aae).current;return dWe(t,e)&&Mae(t,e),t.callback}function Aae(){return{callback:null,cleanup:null,refs:[]}}function uWe(e,t,o,r,n){return e.refs[0]!==t||e.refs[1]!==o||e.refs[2]!==r||e.refs[3]!==n}function dWe(e,t){return e.refs.length!==t.length||e.refs.some((o,r)=>o!==t[r])}function Mae(e,t){if(e.refs=t,t.every(o=>o==null)){e.callback=null;return}e.callback=o=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),o!=null){let r=Array(t.length).fill(null);for(let n=0;n<t.length;n+=1){let i=t[n];if(i!=null)switch(typeof i){case"function":{let s=i(o);typeof s=="function"&&(r[n]=s);break}case"object":{i.current=o;break}default:}}e.cleanup=()=>{for(let n=0;n<t.length;n+=1){let i=t[n];if(i!=null)switch(typeof i){case"function":{let s=r[n];typeof s=="function"?s():i(null);break}case"object":{i.current=null;break}default:}}}}}}var Lae=c(oe(),1);var Nae=c(oe(),1),fWe=parseInt(Nae.version,10);function Cw(e){return fWe>=e}function EW(e){if(!Lae.isValidElement(e))return null;let t=e,o=t.props;return(Cw(19)?o?.ref:t.ref)??null}function X1(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function At(){}var ml=Object.freeze([]),Ut=Object.freeze({});function Dae(e,t){let o={};for(let r in e){let n=e[r];if(t?.hasOwnProperty(r)){let i=t[r](n);i!=null&&Object.assign(o,i);continue}n===!0?o[`data-$r.toLowerCase()}`]="":n&&(o[`data-$r.toLowerCase()}`]=n.toString())}return o}function Vae(e,t){return typeof e=="function"?e(t):e}function cA(e,t){return typeof e=="function"?e(t):e}var TW={};function Mt(e,t,o,r,n){if(!o&&!r&&!n&&!e)return uA(t);let i=uA(e);return t&&(i=Q1(i,t)),o&&(i=Q1(i,o)),r&&(i=Q1(i,r)),n&&(i=Q1(i,n)),i}function Fae(e){if(e.length===0)return TW;if(e.length===1)return uA(e[0]);let t=uA(e[0]);for(let o=1;o<e.length;o+=1)t=Q1(t,e[o]);return t}function uA(e){return RW(e)?{...jae(e,TW)}:pWe(e)}function Q1(e,t){return RW(t)?jae(t,e):mWe(e,t)}function pWe(e){let t={...e};for(let o in t){let r=t[o];zae(o,r)&&(t[o]=Hae(r))}return t}function mWe(e,t){if(!t)return e;for(let o in t){let r=t[o];switch(o){case"style":{e[o]=X1(e.style,r);break}case"className":{e[o]=BW(e.className,r);break}default:zae(o,r)?e[o]=gWe(e[o],r):e[o]=r}}return e}function zae(e,t){let o=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2);return o===111&&r===110&&n>=65&&n<=90&&(typeof t=="function"||typeof t>"u")}function RW(e){return typeof e=="function"}function jae(e,t){return RW(e)?e(t):e??TW}function gWe(e,t){return t?e?(...o)=>{let r=o[0];if(Wae(r)){let i=r;J1(i);let s=t(...o);return i.baseUIHandlerPrevented||e?.(...o),s}let n=t(...o);return e?.(...o),n}:Hae(t):e}function Hae(e){return e&&((...t)=>{let o=t[0];return Wae(o)&&J1(o),e(...t)})}function J1(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function BW(e,t){return t?e?t+" "+e:t:e}function Wae(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var IW=c(oe(),1);function De(e,t,o={}){let r=t.render,n=hWe(t,o);if(o.enabled===!1)return null;let i=o.state??Ut;return vWe(e,r,n,i)}function hWe(e,t={}){let{className:o,style:r,render:n}=e,{state:i=Ut,ref:s,props:a,stateAttributesMapping:l,enabled:u=!0}=t,d=u?Vae(o,i):void 0,f=u?cA(r,i):void 0,p=u?Dae(i,l):Ut,m=u&&a?bWe(a):void 0,g=u?X1(p,m)??{}:Ut;return typeof document<"u"&&(u?Array.isArray(s)?g.ref=Oae([g.ref,EW(n),...s]):g.ref=Vs(g.ref,EW(n),s):Vs(null,null)),u?(d!==void 0&&(g.className=BW(g.className,d)),f!==void 0&&(g.style=X1(g.style,f)),g):Ut}function bWe(e){return Array.isArray(e)?Fae(e):Mt(void 0,e)}var yWe=Symbol.for("react.lazy");function vWe(e,t,o,r){if(t){if(typeof t=="function")return t(o,r);let n=Mt(o,t.props);n.ref=o.ref;let i=t;return i?.$$typeof===yWe&&(i=Kb.Children.toArray(t)[0]),Kb.cloneElement(i,n)}if(e&&typeof e=="string")return _We(e,o);throw new Error(Wt(8))}function _We(e,t){return e==="button"?(0,IW.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,IW.createElement)("img",{alt:"",...t,key:t.key}):Kb.createElement(e,t)}var dA=c(oe(),1);var Uae=0;function wWe(e,t="mui"){let[o,r]=dA.useState(e),n=e||o;return dA.useEffect(()=>{o==null&&(Uae+=1,r(`$t}-$Uae}`))},[o,t]),n}var Gae=Z1.useId;function Zm(e,t){if(Gae!==void 0){let o=Gae();return e??(t?`$t}-$o}`:o)}return wWe(e,t)}function gn(e){return Zm(e,"base-ui")}var mA=c(oe(),1);var Te={};No(Te,{cancelOpen:()=>qWe,chipRemovePress:()=>PWe,clearPress:()=>IWe,closePress:()=>RWe,closeWatcher:()=>HWe,decrementPress:()=>MWe,disabled:()=>XWe,drag:()=>$We,escapeKey:()=>jWe,focusOut:()=>zWe,imperativeAction:()=>eUe,incrementPress:()=>AWe,initial:()=>JWe,inputBlur:()=>DWe,inputChange:()=>NWe,inputClear:()=>LWe,inputPaste:()=>VWe,inputPress:()=>FWe,itemPress:()=>TWe,keyboard:()=>UWe,linkPress:()=>BWe,listNavigation:()=>WWe,missing:()=>QWe,none:()=>kWe,outsidePress:()=>EWe,pointer:()=>GWe,scrub:()=>KWe,siblingOpen:()=>ZWe,swipe:()=>tUe,trackPress:()=>OWe,triggerFocus:()=>CWe,triggerHover:()=>SWe,triggerPress:()=>xWe,wheel:()=>YWe,windowResize:()=>oUe});var kWe="none",xWe="trigger-press",SWe="trigger-hover",CWe="trigger-focus",EWe="outside-press",TWe="item-press",RWe="close-press",BWe="link-press",IWe="clear-press",PWe="chip-remove-press",OWe="track-press",AWe="increment-press",MWe="decrement-press",NWe="input-change",LWe="input-clear",DWe="input-blur",VWe="input-paste",FWe="input-press",zWe="focus-out",jWe="escape-key",HWe="close-watcher",WWe="list-navigation",UWe="keyboard",GWe="pointer",$We="drag",YWe="wheel",KWe="scrub",qWe="cancel-open",ZWe="sibling-open",XWe="disabled",QWe="missing",JWe="initial",eUe="imperative-action",tUe="swipe",oUe="window-resize";function Ke(e,t,o,r){let n=!1,i=!1,s=r??Ut;return{reason:e,event:t??new Event("base-ui"),cancel(){n=!0},allowPropagation(){i=!0},get isCanceled(){return n},get isPropagationAllowed(){return i},trigger:o,...s}}var OW=c(oe(),1);var $ae=c(oe(),1);function Ew(e){$ae.useEffect(e,ml)}var fA=null,I1t=globalThis.requestAnimationFrame,PW=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let o=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let n=0;n<o.length;n+=1)o[n]?.(t)};request(t){let o=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),o}cancel(t){let o=t-this.startId;o<0||o>=this.callbacks.length||(this.callbacks[o]=null,this.callbacksCount-=1)}},pA=new PW;var fi=class e{static create(){return new e}static request(t){return pA.request(t)}static cancel(t){return pA.cancel(t)}currentId=fA;request(t){this.cancel(),this.currentId=pA.request(()=>{this.currentId=fA,t()})}cancel=()=>{this.currentId!==fA&&(pA.cancel(this.currentId),this.currentId=fA)};disposeEffect=()=>this.cancel};function ss(){let e=eo(fi.create).current;return Ew(e.disposeEffect),e}function Ai(e,t=!1,o=!1){let[r,n]=OW.useState(e&&t?"idle":void 0),[i,s]=OW.useState(e);return e&&!i&&(s(!0),n("starting")),!e&&i&&r!=="ending"&&!o&&n("ending"),!e&&!i&&r==="ending"&&n(void 0),le(()=>{if(!e&&i&&r!=="ending"&&o){let a=fi.request(()=>{n("ending")});return()=>{fi.cancel(a)}}},[e,i,r,o]),le(()=>{if(!e||t)return;let a=fi.request(()=>{n(void 0)});return()=>{fi.cancel(a)}},[t,e]),le(()=>{if(!e||!t)return;e&&i&&r!=="idle"&&n("starting");let a=fi.request(()=>{n("idle")});return()=>{fi.cancel(a)}},[t,e,i,r]),{mounted:i,setMounted:s,transitionStatus:r}}function Yae(e){let{open:t,defaultOpen:o,onOpenChange:r,disabled:n}=e,[i,s]=Mf({controlled:t,default:o,name:"Collapsible",state:"open"}),{mounted:a,setMounted:l,transitionStatus:u}=Ai(i,!0,!0),d=gn(),[f,p]=mA.useState(),m=f===null?void 0:f??d,g=de(h=>{let b=!i,v=Ke(Te.triggerPress,h.nativeEvent);r(b,v),!v.isCanceled&&s(b)});return mA.useMemo(()=>({defaultPanelId:d,disabled:n,handleTrigger:g,mounted:a,open:i,panelId:m,setMounted:l,setOpen:s,setPanelIdState:p,transitionStatus:u}),[d,n,g,a,i,m,l,s,p,u])}var gA=c(oe(),1),AW=gA.createContext(void 0);function hA(){let e=gA.useContext(AW);if(e===void 0)throw new Error(Wt(15));return e}var qb=c(oe(),1);function Tw(e={}){let{guess:t,label:o,metadata:r,textRef:n,index:i}=e,{register:s,unregister:a,subscribeMapChange:l,nextIndexRef:u}=Bae(),d=qb.useRef(-1),[f,p]=qb.useState(i==null&&t?()=>{if(d.current===-1){let b=u.current;u.current+=1,d.current=b}return d.current}:-1),m=i??f,g=qb.useRef(null),h=qb.useCallback(b=>{let v=g.current;v&&a(v),g.current=b,b&&s(b,{metadata:r??null,index:i??null,label:o,textRef:n})},[i,s,a,r,o,n]);return le(()=>{if(i==null)return l(b=>{let v=g.current?b.get(g.current)?.index:null;v!=null&&p(v)})},[i,l]),{ref:h,index:m}}var Rw=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({}),rUe={"data-starting-style":""},nUe={"data-ending-style":""},Gn={transitionStatus(e){return e==="starting"?rUe:e==="ending"?nUe:null}};var eE=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Rw.startingStyle]="startingStyle",e[e.endingStyle=Rw.endingStyle]="endingStyle",e})({});var Kae=(function(e){return e.panelOpen="data-panel-open",e})({});var iUe={[eE.open]:""},sUe={[eE.closed]:""},qae={open(e){return e?{[Kae.panelOpen]:""}:null}},Zae={open(e){return e?iUe:sUe}};var Iw=c(oe(),1);function bA(){return typeof window<"u"}function Zr(e){return yA(e)?(e.nodeName||"").toLowerCase():"#document"}function St(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qu(e){var t;return(t=(yA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yA(e){return bA()?e instanceof Node||e instanceof St(e).Node:!1}function ct(e){return bA()?e instanceof Element||e instanceof St(e).Element:!1}function Ct(e){return bA()?e instanceof HTMLElement||e instanceof St(e).HTMLElement:!1}function Zu(e){return!bA()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof St(e).ShadowRoot}function Xb(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=On(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&n!=="inline"&&n!=="contents"}function Xae(e){return/^(table|td|th)$/.test(Zr(e))}function tE(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var aUe=/transform|translate|scale|rotate|perspective|filter/,lUe=/paint|layout|strict|content/,Zb=e=>!!e&&e!=="none",MW;function vA(e){let t=ct(e)?On(e):e;return Zb(t.transform)||Zb(t.translate)||Zb(t.scale)||Zb(t.rotate)||Zb(t.perspective)||!_A()&&(Zb(t.backdropFilter)||Zb(t.filter))||aUe.test(t.willChange||"")||lUe.test(t.contain||"")}function Qae(e){let t=Xu(e);for(;Ct(t)&&!Ju(t);){if(vA(t))return t;if(tE(t))return null;t=Xu(t)}return null}function _A(){return MW==null&&(MW=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),MW}function Ju(e){return/^(html|body|#document)$/.test(Zr(e))}function On(e){return St(e).getComputedStyle(e)}function oE(e){return ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xu(e){if(Zr(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Zu(e)&&e.host||Qu(e);return Zu(t)?t.host:t}function Jae(e){let t=Xu(e);return Ju(t)?(e.ownerDocument||e).body:Ct(t)&&Xb(t)?t:Jae(t)}function Xm(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=Jae(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),s=St(n);if(i){let a=wA(s);return t.concat(s,s.visualViewport||[],Xb(n)?n:[],a&&o?Xm(a):[])}else return t.concat(n,Xm(n,[],o))}function wA(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var kA=c(oe(),1),NW=kA.createContext(void 0);function Bw(e=!1){let t=kA.useContext(NW);if(t===void 0&&!e)throw new Error(Wt(16));return t}var ele=c(oe(),1);function tle(e){let{focusableWhenDisabled:t,disabled:o,composite:r=!1,tabIndex:n=0,isNativeButton:i}=e,s=r&&t!==!1,a=r&&t===!1;return{props:ele.useMemo(()=>{let u={onKeyDown(d){o&&t&&d.key!=="Tab"&&d.preventDefault()}};return r||(u.tabIndex=n,!i&&o&&(u.tabIndex=t?n:-1)),(i&&(t||s)||!i&&o)&&(u["aria-disabled"]=o),i&&(!t||a)&&(u.disabled=o),u},[r,o,t,s,a,i,n])}}function ot(e){return e?.ownerDocument||document}function xA(e,t,{detail:o=0}={}){e.dispatchEvent(new(St(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:o,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Ic(e={}){let{disabled:t=!1,focusableWhenDisabled:o,tabIndex:r=0,native:n=!0,composite:i}=e,s=Iw.useRef(null),a=Bw(!0),l=i??a!==void 0,{props:u}=tle({focusableWhenDisabled:o,disabled:t,composite:l,tabIndex:r,isNativeButton:n}),d=Iw.useCallback(()=>{let m=s.current;LW(m)&&l&&t&&u.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,u.disabled,l]);le(d,[d]);let f=Iw.useCallback((m={})=>{let{onClick:g,onMouseDown:h,onKeyUp:b,onKeyDown:v,onPointerDown:y,..._}=m;return Mt({onClick(w){if(t){w.preventDefault();return}g?.(w)},onMouseDown(w){t||h?.(w)},onKeyDown(w){if(t||(J1(w),v?.(w),w.baseUIHandlerPrevented))return;let k=w.target===w.currentTarget,x=w.currentTarget,C=LW(x),E=!n&&cUe(x),R=k&&(n?C:!E),S=w.key==="Enter",I=w.key===" ",O=x.getAttribute("role"),A=O?.startsWith("menuitem")||O==="option"||O==="gridcell";if(k&&l&&I){if(w.defaultPrevented&&A)return;w.preventDefault(),(!n||C)&&(w.preventBaseUIHandler(),xA(x,w));return}if(!R||n||!I&&!S){k&&E&&I&&w.preventDefault();return}w.defaultPrevented||(w.preventDefault(),S&&(w.preventBaseUIHandler(),xA(x,w)))},onKeyUp(w){if(!t){if(J1(w),b?.(w),w.target===w.currentTarget&&n&&l&&LW(w.currentTarget)&&w.key===" "){w.preventDefault();return}w.baseUIHandlerPrevented||w.target===w.currentTarget&&!n&&!l&&!w.defaultPrevented&&w.key===" "&&(w.preventBaseUIHandler(),xA(w.currentTarget,w))}},onPointerDown(w){if(t){w.preventDefault();return}y?.(w)}},n?{type:"button"}:{role:"button"},u,_)},[t,u,l,n]),p=de(m=>{s.current=m,d()});return{getButtonProps:f,buttonRef:p}}function LW(e){return Ct(e)&&e.tagName==="BUTTON"}function cUe(e){return Ct(e)&&e.tagName==="A"&&!!e.href}var as=c(oe(),1);function ut(e,t,o,r){return e.addEventListener(t,o,r),()=>{e.removeEventListener(t,o,r)}}function so(e){let t=eo(uUe,e).current;return t.next=e,le(t.effect),t}function uUe(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var rle=c(oe(),1);var ole=c(Pf(),1);function Pc(e){return e==null?e:"current"in e?e.current:e}function Qm(e,t=!1){let o=ss();return de((r,n=null)=>{o.cancel();let i=Pc(e);if(i==null)return;let s=i,a=()=>{ole.flushSync(r)};if(typeof s.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function l(){Promise.all(s.getAnimations().map(u=>u.finished)).then(()=>{n?.aborted||a()},()=>{if(n?.aborted)return;if(s.getAnimations().some(d=>d.pending||d.playState!=="finished")){l();return}a()})}if(t){let u="data-starting-style";if(!s.hasAttribute(u)){o.request(l);return}let d=new MutationObserver(()=>{s.hasAttribute(u)||(d.disconnect(),l())});d.observe(s,{attributes:!0,attributeFilter:[u]}),n?.addEventListener("abort",()=>d.disconnect(),{once:!0});return}o.request(l)})}function $n(e){let{enabled:t=!0,open:o,ref:r,onComplete:n}=e,i=de(n),s=Qm(r,o);rle.useEffect(()=>{if(!t)return;let a=new AbortController;return s(i,a.signal),()=>{a.abort()}},[t,o,i,s])}var rE={height:void 0,width:void 0};function ile(e){let{externalRef:t,hiddenUntilFound:o,id:r,keepMounted:n,mounted:i,onOpenChange:s,open:a,setMounted:l,setOpen:u,transitionStatus:d}=e,f=as.useRef(null),p=as.useRef(null),[m,g]=as.useState(rE),h=as.useRef(rE),b=as.useRef(!1),v=as.useRef(a),y=as.useRef(!1),[_,w]=as.useState(!1),k=as.useRef(null),x=Vs(t,f),C=so(a),E=Qm(f),R=!a&&!i,S=_?"idle":d,I=a&&(v.current||y.current),O=!a&&i&&p.current==="css-animation"&&m.height===void 0&&m.width===void 0?h.current:m,A=o&&R&&p.current!=="css-animation",P=de((V,j=!0)=>{j&&(h.current=V),g(V)}),L=de(()=>{k.current?.(),k.current=null}),H=de(V=>{L(),k.current=()=>{k.current=null,V()}}),N=de(()=>{a&&i&&p.current==="css-animation"&&(y.current=!0)});le(()=>{!_||d==="starting"||w(!1)},[_,d]),as.useEffect(()=>()=>{N(),L()},[N,L]),le(()=>{let V=f.current;if(!V)return;!a&&k.current&&L();let j=dUe(V,I);if(p.current=j,a&&d==="idle"&&v.current&&j==="css-animation"){h.current=Pw(V);return}if(a&&d==="starting"){let $=b.current;if(b.current=!1,j==="none"){P(Pw(V)),w(!0);return}if(j==="css-transition"){let W=fUe(V);if(P(Pw(V)),!$)return W;let X=SA(V,"transition-duration","0s");return H(X),w(!0),W}P(Pw(V));let J=SA(V,"animation-name","none");if(!$){J();return}let Q=SA(V,"animation-duration","0s");J(),H(Q),w(!0);return}if(!a&&i&&(d==="idle"||d==="starting")){if(v.current=!1,y.current=!1,j==="none"){P(rE,!1),l(!1);return}P(Pw(V));return}if(d!=="ending")return;if(j==="none"){l(!1);return}let D=Pw(V);if(!(D.height>0||D.width>0)){l(!1);return}P(D),j==="css-animation"&&SA(V,"animation-name","none")()},[i,a,L,P,l,H,I,d]),$n({enabled:a&&i&&S==="idle",open:!0,ref:f,onComplete(){a&&P(rE,!1)}}),as.useEffect(()=>{if(a||!i||S!=="ending"||!f.current)return;let j=new AbortController,D=-1;function z(){C.current||(l(!1),P(rE,!1))}return D=fi.request(()=>{E(z,j.signal)}),()=>{fi.cancel(D),j.abort()}},[C,i,a,S,E,P,l]),le(()=>{let V=f.current;!V||!o||!R||V.setAttribute("hidden","until-found")},[R,o]),as.useEffect(function(){let j=f.current;if(!j)return;function D(z){let $=Ke(Te.none,z);s(!0,$),!$.isCanceled&&(b.current=!0,u(!0))}return ut(j,"beforematch",D)},[s,u]);let M=n||o||i||a;return{height:O.height,props:{...A?{[eE.startingStyle]:""}:void 0,hidden:R,id:r},ref:x,shouldPreventOpenAnimation:I,shouldRender:M,transitionStatus:S,width:O.width}}function Pw(e){return{height:e.scrollHeight,width:e.scrollWidth}}function dUe(e,t){let o=St(e).getComputedStyle(e),r=(o.animationName.split(",").map(i=>i.trim()).some(i=>i!==""&&i!=="none")||t)&&nle(o.animationDuration),n=nle(o.transitionDuration);return r&&n||n?"css-transition":r?"css-animation":"none"}function nle(e){return e.split(",").map(t=>t.trim()).some(t=>t!==""&&Number.parseFloat(t)>0)}function SA(e,t,o){let r=e.style.getPropertyValue(t),n=e.style.getPropertyPriority(t);return e.style.setProperty(t,o),()=>{if(r===""){e.style.removeProperty(t);return}e.style.setProperty(t,r,n)}}function fUe(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(n=>{e.style.setProperty(n,"initial","important")});function o(){Object.entries(t).forEach(([n,i])=>{if(i===""){e.style.removeProperty(n);return}e.style.setProperty(n,i)})}let r=fi.request(o);return()=>{fi.cancel(r),o()}}var mo={};No(mo,{engine:()=>jW,env:()=>WW,os:()=>FW,screenReader:()=>HW});var FW={};No(FW,{android:()=>lle,apple:()=>VW,ios:()=>DW,linux:()=>bUe,mac:()=>cle,windows:()=>hUe});function pUe(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:mUe,platform:gUe,maxTouchPoints:sle}=pUe(),Qb=mUe.toLowerCase(),Jb=gUe.toLowerCase();var DW=/^i(os$|p)/.test(Jb)||Jb==="macintel"&&sle>1,ale="android",lle=Jb===ale||Qb.includes(ale),cle=!DW&&Jb.startsWith("mac"),hUe=Jb.startsWith("win"),bUe=!lle&&/^(linux|chrome os)/.test(Jb),VW=cle||DW;var jW={};No(jW,{blink:()=>vUe,gecko:()=>yUe,webkit:()=>zW});var zW=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),yUe=!zW&&Qb.includes("firefox"),vUe=!zW&&Qb.includes("chrom");var HW={};No(HW,{voiceOver:()=>_Ue});var _Ue=VW;var WW={};No(WW,{jsdom:()=>wUe});var wUe=/jsdom|happydom/.test(Qb);var nE=0,Mi=class e{static create(){return new e}currentId=nE;start(t,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=nE,o()},t)}isStarted(){return this.currentId!==nE}clear=()=>{this.currentId!==nE&&(clearTimeout(this.currentId),this.currentId=nE)};disposeEffect=()=>this.clear};function Fo(){let e=eo(Mi.create).current;return Ew(e.disposeEffect),e}var ule={},dle={},fle="";function CA(e,t){return Xb(e)?e:t}function ple(e,t,o){return/hidden|clip/.test(e.getComputedStyle(CA(t,o)).overflowY)}function kUe(e){if(typeof document>"u")return!1;let t=ot(e);return St(t).innerWidth-t.documentElement.clientWidth>0}function xUe(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let o=ot(e),r=o.documentElement,n=o.body,i=CA(r,n),s=i.style.overflowY,a=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",i.style.overflowY="scroll";let l=i.offsetWidth;i.style.overflowY="hidden";let u=i.offsetWidth;return i.style.overflowY=s,r.style.scrollbarGutter=a,l===u}function SUe(e){let t=ot(e),o=t.documentElement,r=t.body,n=CA(o,r),i={overflowY:n.style.overflowY,overflowX:n.style.overflowX};return Object.assign(n.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(n.style,i)}}function CUe(e){let t=ot(e),o=t.documentElement,r=t.body,n=St(o),i=0,s=0,a=!1,l=fi.create();if(mo.engine.webkit&&(n.visualViewport?.scale??1)!==1)return()=>{};function u(){let m=n.getComputedStyle(o),g=n.getComputedStyle(r),v=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";i=o.scrollTop,s=o.scrollLeft,ule={scrollbarGutter:o.style.scrollbarGutter,overflowY:o.style.overflowY,overflowX:o.style.overflowX},fle=o.style.scrollBehavior,dle={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let y=o.scrollHeight>o.clientHeight,_=o.scrollWidth>o.clientWidth,w=m.overflowY==="scroll"||g.overflowY==="scroll",k=m.overflowX==="scroll"||g.overflowX==="scroll",x=Math.max(0,n.innerWidth-r.clientWidth),C=Math.max(0,n.innerHeight-r.clientHeight),E=parseFloat(g.marginTop)+parseFloat(g.marginBottom),R=parseFloat(g.marginLeft)+parseFloat(g.marginRight),S=CA(o,r);if(a=xUe(e),a){o.style.scrollbarGutter=v,S.style.overflowY="hidden",S.style.overflowX="hidden";return}Object.assign(o.style,{scrollbarGutter:v,overflowY:"hidden",overflowX:"hidden"}),(y||w)&&(o.style.overflowY="scroll"),(_||k)&&(o.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:E||C?`calc(100dvh - $E+C}px)`:"100dvh",width:R||x?`calc(100vw - $R+x}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),r.scrollTop=i,r.scrollLeft=s,o.setAttribute("data-base-ui-scroll-locked",""),o.style.scrollBehavior="unset"}function d(){Object.assign(o.style,ule),Object.assign(r.style,dle),a||(o.scrollTop=i,o.scrollLeft=s,o.removeAttribute("data-base-ui-scroll-locked"),o.style.scrollBehavior=fle)}function f(){d(),l.request(u)}u();let p=ut(n,"resize",f);return()=>{l.cancel(),d(),typeof n.removeEventListener=="function"&&p()}}var UW=class{lockCount=0;restore=null;timeoutLock=Mi.create();timeoutUnlock=Mi.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;let o=ot(t),r=o.documentElement,n=o.body,i=St(r);if(ple(i,r,n)){let a=new i.MutationObserver(()=>{ple(i,r,n)||(a.disconnect(),this.restore=null,this.lock(t))}),l={attributes:!0};a.observe(r,l),a.observe(n,l),this.restore=()=>a.disconnect();return}let s=mo.os.ios||!kUe(t);this.restore=s?SUe(t):CUe(t)}},EUe=new UW;function mle(e=!0,t=null){le(()=>{if(e)return EUe.acquire(t)},[e,t])}var ls=c(oe(),1);function Fs(e){e.preventDefault(),e.stopPropagation()}function gle(e){return"nativeEvent"in e}function Ow(e){return e.pointerType===""&&e.isTrusted?!0:mo.os.android&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Aw(e){return mo.env.jsdom?!1:!mo.os.android&&e.width===0&&e.height===0||mo.os.android&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function xa(e,t){let o=["mouse","pen"];return t||o.push("",void 0),o.includes(e)}function hle(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}var iE="data-base-ui-focusable";var GW="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",sE="ArrowLeft",aE="ArrowRight",$W="ArrowUp",EA="ArrowDown";function wr(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Ge(e,t){if(!e||!t)return!1;let o=t.getRootNode?.();if(e.contains(t))return!0;if(o&&Zu(o)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function ko(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Jm(e,t){if(!ct(e))return!1;let o=e;if(t.hasElement(o))return!o.hasAttribute("data-trigger-disabled");for(let[,r]of t.entries())if(Ge(r,o))return!r.hasAttribute("data-trigger-disabled");return!1}function TA(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let o=e;return o.target!=null&&t.contains(o.target)}function ble(e){return e.matches("html,body")}function ey(e){return Ct(e)&&e.matches(GW)}function YW(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),$GW}`)!=null}function lE(e){return e?e.getAttribute("role")==="combobox"&&ey(e):!1}function yle(e){if(!e||mo.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function ty(e){return e?e.hasAttribute(iE)?e:e.querySelector(`[$iE}]`)||e:null}function TUe(e,t){return t!=null&&!xa(t)?0:typeof e=="function"?e():e}function gl(e,t,o){let r=TUe(e,o);return typeof r=="number"?r:r?.[t]}function KW(e){return typeof e=="function"?e():e}function RA(e,t){return t||e==="click"||e==="mousedown"}function vle(e){return e?.includes("mouse")&&e!=="mousedown"}var _le=c(T(),1),wle=ls.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Mi,currentIdRef:{current:null},currentContextRef:{current:null}});function RUe(e,t){e.current=t.current}function qW(e){let{children:t,delay:o,timeoutMs:r=0}=e,n=ls.useRef(o),i=ls.useRef(o),s=ls.useRef(null),a=ls.useRef(null),l=Fo();return le(()=>{if(i.current=o,!s.current){n.current=o;return}n.current={open:gl(n.current,"open"),close:gl(o,"close")}},[o,s,n,i]),(0,_le.jsx)(wle.Provider,{value:ls.useMemo(()=>({hasProvider:!0,delayRef:n,initialDelayRef:i,currentIdRef:s,timeoutMs:r,currentContextRef:a,timeout:l}),[r,l]),children:t})}function ZW(e,t={open:!1}){let{open:o}=t,r="rootStore"in e?e.rootStore:e,n=r.useState("floatingId"),i=ls.useContext(wle),{currentIdRef:s,delayRef:a,timeoutMs:l,initialDelayRef:u,currentContextRef:d,hasProvider:f,timeout:p}=i,[m,g]=ls.useState(!1),h=ls.useRef(o);return le(()=>{h.current=o},[o]),le(()=>{function b(){d.current?.setIsInstantPhase(!1),s.current=null,d.current=null,a.current=u.current,p.clear()}if(s.current&&!o&&s.current===n){if(g(!1),l){let v=n;return p.start(l,()=>{r.select("open")||s.current&&s.current!==v||b()}),()=>{(h.current||s.current!==v)&&p.clear()}}b()}},[o,n,s,a,l,u,d,p,r]),le(()=>{if(!o)return;let b=d.current,v=s.current;p.clear(),d.current={onOpenChange:r.setOpen,setIsInstantPhase:g},s.current=n,a.current={open:0,close:gl(u.current,"close")},v!==null&&v!==n?(g(!0),b?.setIsInstantPhase(!0),b?.onOpenChange(!1,Ke(Te.none))):(g(!1),b?.setIsInstantPhase(!1))},[o,n,r,s,a,u,d,p]),le(()=>()=>{if(s.current===n){if(d.current=null,!h.current)return;s.current=null,RUe(a,u),p.clear()}},[d,s,a,n,u,p]),ls.useMemo(()=>({hasProvider:f,delayRef:a,isInstantPhase:m}),[f,a,m])}var Di=c(oe(),1);function Ni(...e){return()=>{for(let t=0;t<e.length;t+=1){let o=e[t];o&&o()}}}var IA=c(oe(),1);var kle={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},BA={...kle,position:"fixed",top:0,left:0},xle={...kle,position:"absolute"};var Sle=c(T(),1),Mw=IA.forwardRef(function(t,o){let[r,n]=IA.useState();return le(()=>{mo.screenReader.voiceOver&&mo.engine.webkit&&n("button")},[]),(0,Sle.jsx)("span",{...t,ref:o,style:BA,"aria-hidden":r?void 0:!0,...{tabIndex:0,role:r},"data-base-ui-focus-guard":""})});var eg=Math.min,Oc=Math.max,tg=Math.round,uE=Math.floor,ed=e=>({x:e,y:e}),BUe={left:"right",right:"left",bottom:"top",top:"bottom"};function OA(e,t,o){return Oc(e,eg(t,o))}function td(e,t){return typeof e=="function"?e(t):e}function Li(e){return e.split("-")[0]}function Ac(e){return e.split("-")[1]}function AA(e){return e==="x"?"y":"x"}function dE(e){return e==="y"?"height":"width"}function zs(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function fE(e){return AA(zs(e))}function Tle(e,t,o){o===void 0&&(o=!1);let r=Ac(e),n=fE(e),i=dE(n),s=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=cE(s)),[s,cE(s)]}function Rle(e){let t=cE(e);return[PA(e),t,PA(t)]}function PA(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Cle=["left","right"],Ele=["right","left"],IUe=["top","bottom"],PUe=["bottom","top"];function OUe(e,t,o){switch(e){case"top":case"bottom":return o?t?Ele:Cle:t?Cle:Ele;case"left":case"right":return t?IUe:PUe;default:return[]}}function Ble(e,t,o,r){let n=Ac(e),i=OUe(Li(e),o==="start",r);return n&&(i=i.map(s=>s+"-"+n),t&&(i=i.concat(i.map(PA)))),i}function cE(e){let t=Li(e);return BUe[t]+e.slice(t.length)}function AUe(e){var t,o,r,n;return{top:(t=e.top)!=null?t:0,right:(o=e.right)!=null?o:0,bottom:(r=e.bottom)!=null?r:0,left:(n=e.left)!=null?n:0}}function MA(e){return typeof e!="number"?AUe(e):{top:e,right:e,bottom:e,left:e}}function Lf(e){let{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function og(e,t){return t<0||t>=e.length}function oy(e,t){return hl(e.current,{disabledIndices:t})}function Nw(e,t){return hl(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function hl(e,{startingIndex:t=-1,decrement:o=!1,disabledIndices:r,amount:n=1}={}){let i=t;do i+=o?-n:n;while(i>=0&&i<=e.length-1&&ry(e,i,r));return i}function ry(e,t,o){if(typeof o=="function"?o(t):o?.includes(t)??!1)return!0;let n=e[t];return n?!ny(n)||n.matches(":disabled")?!0:!o&&(n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"):!1}function MUe(e){return e.visibility==="hidden"||e.visibility==="collapse"}function ny(e,t=e?On(e):null){return!e||!e.isConnected||!t||MUe(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var NUe='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function LUe(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let o=e.getRootNode();return Zu(o)?o.host:null}function QW(e){for(let t of Array.from(e.children))if(Zr(t)==="summary")return t;return null}function DUe(e,t){let o=QW(t);return!!o&&(e===o||Ge(o,e))}function Ile(e){let t=e?Zr(e):"";return e!=null&&e.matches(NUe)&&(t!=="summary"||e.parentElement!=null&&Zr(e.parentElement)==="details"&&QW(e.parentElement)===e)&&(t!=="details"||QW(e)==null)&&(t!=="input"||e.type!=="hidden")}function Ple(e){if(!Ile(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=LUe(t)){let o=t!==e,r=Zr(t)==="slot";if(t.hasAttribute("inert")||o&&Zr(t)==="details"&&!t.open&&!DUe(e,t)||t.hasAttribute("hidden")||!r&&!VUe(t,o))return!1}return!0}function VUe(e,t){let o=On(e);return t?o.display!=="none":ny(e,o)}function Ole(e){let t=e.tabIndex;if(t<0){let o=Zr(e);if(o==="details"||o==="audio"||o==="video"||Ct(e)&&e.isContentEditable)return 0}return t}function XW(e){if(Zr(e)!=="input")return null;let t=e;return t.type==="radio"&&t.name!==""?t:null}function FUe(e,t){let o=XW(e);if(!o)return!0;let r=t.find(n=>{let i=XW(n);return i?.name===o.name&&i.form===o.form&&i.checked});return r?r===o:t.find(n=>{let i=XW(n);return i?.name===o.name&&i.form===o.form})===o}function Ale(e){if(Ct(e)&&Zr(e)==="slot"){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Ct(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Mle(e,t){Ale(e).forEach(o=>{Ile(o)&&t.push(o),Mle(o,t)})}function Nle(e,t,o){Ale(e).forEach(r=>{Ct(r)&&r.matches(t)&&o.push(r),Nle(r,t,o)})}function NA(e){return Ple(e)&&Ole(e)>=0}function JW(e){let t=[];return Mle(e,t),t.filter(Ple)}function pE(e){let t=JW(e);return t.filter(o=>Ole(o)>=0&&FUe(o,t))}function Lle(e,t){let o=pE(e),r=o.length;if(r===0)return;let n=wr(ot(e)),i=o.indexOf(n),s=i===-1?t===1?0:r-1:i+t;return o[s]}function LA(e){return Lle(ot(e).body,1)||e}function DA(e){return Lle(ot(e).body,-1)||e}function iy(e,t){let o=t||e.currentTarget,r=e.relatedTarget;return!r||!Ge(o,r)}function Dle(e){pE(e).forEach(o=>{o.dataset.tabindex=o.getAttribute("tabindex")||"",o.setAttribute("tabindex","-1")})}function eU(e){let t=[];Nle(e,"[data-tabindex]",t),t.forEach(o=>{let r=o.dataset.tabindex;delete o.dataset.tabindex,r?o.setAttribute("tabindex",r):o.removeAttribute("tabindex")})}function bl(e,t,o=!0){return e.filter(n=>n.parentId===t).flatMap(n=>[...!o||n.context?.open?[n]:[],...bl(e,n.id,o)])}function tU(e,t){let o=[],r=e.find(n=>n.id===t)?.parentId;for(;r;){let n=e.find(i=>i.id===r);r=n?.parentId,n&&(o=o.concat(n))}return o}function Df(e){return`data-base-ui-$e}`}var VA=0;function Lw(e,t={}){let{preventScroll:o=!1,sync:r=!1,shouldFocus:n}=t;cancelAnimationFrame(VA);function i(){n&&!n()||e?.focus({preventScroll:o})}if(r)return i(),At;let s=requestAnimationFrame(i);return VA=s,()=>{VA===s&&(cancelAnimationFrame(s),VA=0)}}var oU={inert:new WeakMap,"aria-hidden":new WeakMap},Vle="data-base-ui-inert",nU={inert:new WeakSet,"aria-hidden":new WeakSet},mE=new WeakMap,rU=0;function zUe(e){return nU[e]}function Hle(e){return e?Zu(e)?e.host:Hle(e.parentNode):null}var Fle=(e,t)=>t.map(o=>{if(e.contains(o))return o;let r=Hle(o);return e.contains(r)?r:null}).filter(o=>o!=null),zle=e=>{let t=new Set;return e.forEach(o=>{let r=o;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},jle=(e,t,o)=>{let r=[],n=i=>{!i||o.has(i)||Array.from(i.children).forEach(s=>{Zr(s)!=="script"&&(t.has(s)?n(s):r.push(s))})};return n(e),r};function jUe(e,t,o,r,{mark:n=!0}){let i=null;r?i="inert":o&&(i="aria-hidden");let s=null,a=null,l=Fle(t,e),u=n?jle(t,zle(l),new Set(l)):[],d=[],f=[];if(i){let p=oU[i],m=zUe(i);a=m,s=p;let g=Fle(t,Array.from(t.querySelectorAll("[aria-live]"))),h=l.concat(g);jle(t,zle(h),new Set(h)).forEach(v=>{let y=v.getAttribute(i),_=y!==null&&y!=="false",w=(p.get(v)||0)+1;p.set(v,w),d.push(v),w===1&&_&&m.add(v),_||v.setAttribute(i,i==="inert"?"":"true")})}return n&&u.forEach(p=>{let m=(mE.get(p)||0)+1;mE.set(p,m),f.push(p),m===1&&p.setAttribute(Vle,"")}),rU+=1,()=>{s&&d.forEach(p=>{let g=(s.get(p)||0)-1;s.set(p,g),g||(!a?.has(p)&&i&&p.removeAttribute(i),a?.delete(p))}),n&&f.forEach(p=>{let m=(mE.get(p)||0)-1;mE.set(p,m),m||p.removeAttribute(Vle)}),rU-=1,rU||(oU.inert=new WeakMap,oU["aria-hidden"]=new WeakMap,nU.inert=new WeakSet,nU["aria-hidden"]=new WeakSet,mE=new WeakMap)}}function iU(e,t={}){let{ariaHidden:o=!1,inert:r=!1,mark:n=!0}=t,i=ot(e[0]).body;return jUe(e,i,o,r,{mark:n})}var qo=c(oe(),1),sU=c(Pf(),1);var Wle={style:{transition:"none"}},Ule="data-base-ui-click-trigger",HUe="data-base-ui-swipe-ignore",WUe="data-swipe-ignore",$Tt=`[$HUe}]`,YTt=`[$WUe}]`,Gle={fallbackAxisSide:"none"},$le={fallbackAxisSide:"end"},Yle={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var sy=c(T(),1),Kle=qo.createContext(null),aU=()=>qo.useContext(Kle),UUe=Df("portal");function FA(e={}){let{ref:t,container:o,componentProps:r=Ut,elementProps:n}=e,i=Zm(),a=aU()?.portalNode,[l,u]=qo.useState(null),[d,f]=qo.useState(null),p=de(b=>{b!==null&&f(b)}),m=qo.useRef(null);le(()=>{if(o===null){m.current&&(m.current=null,f(null),u(null));return}let b=(o&&(yA(o)?o:o.current))??a??document.body;if(b==null){m.current&&(m.current=null,f(null),u(null));return}m.current!==b&&(m.current=b,f(null),u(b))},[o,a]);let g=De("div",r,{ref:[t,p],props:[{id:i,[UUe]:""},n]}),h=l&&g?sU.createPortal(g,l):null;return{node:d,nodeId:qo.isValidElement(g)?g.props.id:void 0,subtree:h}}var lU=qo.forwardRef(function(t,o){let{render:r,className:n,style:i,children:s,container:a,...l}=t,{node:u,nodeId:d,subtree:f}=FA({container:a,ref:o,componentProps:t,elementProps:l}),p=qo.useRef(null),m=qo.useRef(null),g=qo.useRef(null),h=qo.useRef(null),[b,v]=qo.useState(null),y=qo.useRef(!1),_=b?.modal,w=b?.open,k=!!b&&!b.modal&&b.open&&!!u;qo.useEffect(()=>{if(!u||_)return;function C(E){u&&E.relatedTarget&&iy(E)&&(E.type==="focusin"?y.current&&(eU(u),y.current=!1):(Dle(u),y.current=!0))}return Ni(ut(u,"focusin",C,!0),ut(u,"focusout",C,!0))},[u,_]),le(()=>{!u||w!==!0||!y.current||(eU(u),y.current=!1)},[w,u]);let x=qo.useMemo(()=>({beforeOutsideRef:p,afterOutsideRef:m,beforeInsideRef:g,afterInsideRef:h,portalNode:u,setFocusManagerState:v}),[u]);return(0,sy.jsxs)(qo.Fragment,{children:[f,(0,sy.jsxs)(Kle.Provider,{value:x,children:[k&&u&&(0,sy.jsx)(Mw,{"data-type":"outside",ref:p,onFocus:C=>{if(iy(C,u))g.current?.focus();else{let E=b?b.domReference:null;DA(E)?.focus()}}}),k&&u&&(0,sy.jsx)("span",{"aria-owns":d,style:Yle}),u&&sU.createPortal(s,u),k&&u&&(0,sy.jsx)(Mw,{"data-type":"outside",ref:m,onFocus:C=>{if(iy(C,u))h.current?.focus();else{let E=b?b.domReference:null;LA(E)?.focus(),b?.closeOnFocusOut&&b?.onOpenChange(!1,Ke(Te.focusOut,C.nativeEvent))}}})]})]})});var ay=c(oe(),1);function qle(){let e=new Map;return{emit(t,o){e.get(t)?.forEach(r=>r(o))},on(t,o){e.has(t)||e.set(t,new Set),e.get(t).add(o)},off(t,o){e.get(t)?.delete(o)}}}var GUe=c(T(),1),$Ue=ay.createContext(null),YUe=ay.createContext(null),rg=()=>ay.useContext($Ue)?.id||null,yl=e=>{let t=ay.useContext(YUe);return e??t};var gE=c(T(),1);function KUe(e,t){let o=St(ko(e));return e instanceof o.KeyboardEvent?"keyboard":e instanceof o.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof o.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}var Zle=20,ng=[];function cU(){ng=ng.filter(e=>e.deref()?.isConnected)}function Xle(e){cU(),e&&Zr(e)!=="body"&&(ng.push(new WeakRef(e)),ng.length>Zle&&(ng=ng.slice(-Zle)))}function Qle(){return cU(),ng[ng.length-1]?.deref()}function qUe(e){return e?NA(e)?e:pE(e)[0]||e:null}function Jle(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let o=JW(e).filter(n=>{let i=n.getAttribute("data-tabindex")||"";return NA(n)||n.hasAttribute("data-tabindex")&&!i.startsWith("-")}),r=e.getAttribute("tabindex");o.length===0?r!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(r!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function uU(e){let{context:t,children:o,disabled:r=!1,initialFocus:n=!0,returnFocus:i=!0,restoreFocus:s=!1,modal:a=!0,closeOnFocusOut:l=!0,openInteractionType:u="",nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:g}=e,h="rootStore"in t?t.rootStore:t,b=h.useState("open"),v=h.useState("domReferenceElement"),y=h.useState("floatingElement"),{events:_,dataRef:w}=h.context,k=de(()=>w.current.floatingContext?.nodeId),x=n===!1,C=lE(v)&&x,E=so(n),R=so(i),S=so(u),I=so(b),O=yl(m),A=aU(),P=Di.useRef(!1),L=Di.useRef(!1),H=Di.useRef(!1),N=Di.useRef(null),M=Di.useRef(""),V=Di.useRef(""),j=Di.useRef(null),D=Di.useRef(null),z=Vs(j,p,A?.beforeInsideRef),$=Vs(D,A?.afterInsideRef),J=Fo(),Q=Fo(),W=ss(),X=A!=null,U=ty(y),G=de((ae=U)=>ae?pE(ae):[]),te=de(()=>g?.().filter(ae=>ae!=null)??[]);Di.useEffect(()=>{if(r||!a)return;function ae(be){be.key==="Tab"&&Ge(U,wr(ot(U)))&&G().length===0&&!C&&Fs(be)}let ie=ot(U);return ut(ie,"keydown",ae)},[r,U,a,C,G]),Di.useEffect(()=>{if(r||!b)return;let ae=ot(U);function ie(){H.current=!1}function be(ke){let ye=ko(ke),Pe=te(),_e=Ge(y,ye)||Ge(v,ye)||Ge(A?.portalNode,ye)||Pe.some(ve=>ve===ye||Ge(ve,ye));H.current=!_e,V.current=ke.pointerType||"keyboard",ye?.closest(`[$Ule}]`)&&(L.current=!0,Q.start(0,()=>{L.current=!1}))}function pe(){V.current="keyboard"}return Ni(ut(ae,"pointerdown",be,!0),ut(ae,"pointerup",ie,!0),ut(ae,"pointercancel",ie,!0),ut(ae,"keydown",pe,!0),ie)},[r,y,v,U,b,A,Q,te]),Di.useEffect(()=>{if(r||!l)return;let ae=ot(U);function ie(){L.current=!0,Q.start(0,()=>{L.current=!1})}function be(Pe){let _e=ko(Pe);NA(_e)&&(N.current=_e)}function pe(Pe){let _e=Pe.relatedTarget,ve=Pe.currentTarget,Se=ko(Pe);a&&_e==null&&Se!=null&&Ge(y,Se)&&Xle(Se),queueMicrotask(()=>{let fe=k(),Ce=h.context.triggerElements,ne=te(),se=_e?.hasAttribute(Df("focus-guard"))&&[j.current,D.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,Pc(f),Pc(d)].includes(_e),Ee=!(Ge(v,_e)||Ge(y,_e)||Ge(_e,y)||Ge(A?.portalNode,_e)||ne.some(he=>he===_e||Ge(he,_e))||Ce.hasMatchingElement(he=>Ge(he,_e))||se||O&&(bl(O.nodesRef.current,fe).find(he=>Ge(he.context?.elements.floating,_e)||Ge(he.context?.elements.domReference,_e))||tU(O.nodesRef.current,fe).find(he=>[he.context?.elements.floating,ty(he.context?.elements.floating)].includes(_e)||he.context?.elements.domReference===_e)));if(ve===v&&U&&Jle(U),s&&ve!==v&&!ny(Se)&&wr(ae)===ae.body){if(Ct(U)&&(U.focus(),s==="popup")){W.request(()=>{U.focus()});return}let he=G(),Ae=N.current,et=(Ae&&he.includes(Ae)?Ae:null)||he[he.length-1]||U;Ct(et)&&et.focus()}if(w.current.insideReactTree){w.current.insideReactTree=!1;return}(C||!a)&&_e&&Ee&&!L.current&&(C||_e!==Qle())&&(P.current=!0,h.setOpen(!1,Ke(Te.focusOut,Pe)))})}function ke(){H.current||(w.current.insideReactTree=!0,J.start(0,()=>{w.current.insideReactTree=!1}))}let ye=Ct(v)?v:null;if(!(!y&&!ye))return Ni(ye&&ut(ye,"focusout",pe),ye&&ut(ye,"pointerdown",ie),y&&ut(y,"focusin",be),y&&ut(y,"focusout",pe),y&&A&&ut(y,"focusout",ke,!0))},[r,v,y,U,a,O,A,h,l,s,G,C,k,w,J,Q,W,d,f,te]),Di.useEffect(()=>{if(r||!y||!b)return;let ae=Array.from(A?.portalNode?.querySelectorAll(`[$Df("portal")}]`)||[]),be=(O?tU(O.nodesRef.current,k()):[]).find(ve=>lE(ve.context?.elements.domReference||null))?.context?.elements.domReference,ke=[...[y,...ae,j.current,D.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...te()],be,Pc(f),Pc(d),C?v:null].filter(ve=>ve!=null),ye=iU(ke,{ariaHidden:a||C,mark:!1}),Pe=[y,...ae].filter(ve=>ve!=null),_e=iU(Pe);return()=>{_e(),ye()}},[b,r,v,y,a,A,C,O,k,d,f,te]),le(()=>{if(!b||r||!Ct(U))return;M.current="",V.current="";let ae=ot(U),ie=wr(ae);queueMicrotask(()=>{let be=E.current,pe=typeof be=="function"?be(S.current||""):be;if(pe===void 0||pe===!1||Ge(U,ie))return;let ye=null,Pe=()=>(ye==null&&(ye=G(U)),ye[0]||U),_e;pe===!0||pe===null?_e=Pe():_e=Pc(pe),_e=_e||Pe();let ve=Ge(U,wr(ae));Lw(_e,{preventScroll:_e===U,shouldFocus(){if(!I.current)return!1;if(ve)return!0;let Se=wr(ae);return!(Se!==_e&&Ge(U,Se))}})})},[r,b,U,G,E,S,I]),le(()=>{if(r||!U)return;let ae=ot(U),ie=wr(ae),be=S.current==null;Xle(ie);function pe(ye){if(ye.open||(M.current=KUe(ye.nativeEvent,V.current)),ye.reason===Te.triggerHover&&ye.nativeEvent.type==="mouseleave"&&(P.current=!0),ye.reason===Te.outsidePress)if(ye.nested)P.current=!1;else if(Ow(ye.nativeEvent)||Aw(ye.nativeEvent))P.current=!1;else{let Pe=!1;ot(U).createElement("div").focus({get preventScroll(){return Pe=!0,!1}}),Pe?P.current=!1:P.current=!0}}_.on("openchange",pe);function ke(ye){let Pe=R.current,_e=typeof Pe=="function"?Pe(ye):Pe;if(_e===void 0||_e===!1)return null;_e===null&&(_e=!0);let ve=v?.isConnected?v:null,Se=ie?.isConnected&&Zr(ie)!=="body"?ie:null,fe=be?Se||ve:ve||Se;return fe||(fe=Qle()||null),typeof _e=="boolean"?fe:Pc(_e)||fe||null}return()=>{_.off("openchange",pe);let ye=wr(ae),Pe=te(),_e=Ge(y,ye)||Pe.some(Ce=>Ce===ye||Ge(Ce,ye))||O&&bl(O.nodesRef.current,k(),!1).some(Ce=>Ge(Ce.context?.elements.floating,ye)),ve=R.current,Se=M.current,fe=ke(Se);queueMicrotask(()=>{let Ce=qUe(fe),ne=typeof ve!="boolean";if(ve&&!P.current&&Ct(Ce)&&(!(!ne&&Ce!==ye&&ye!==ae.body)||_e)){let se={preventScroll:!0};Se==="keyboard"&&(se.focusVisible=!0),Ce.focus(se)}P.current=!1})}},[r,y,U,R,S,_,O,v,k,te]),le(()=>{if(!mo.engine.webkit||b||!y)return;let ae=wr(ot(y));!Ct(ae)||!ey(ae)||Ge(y,ae)&&ae.blur()},[b,y]),le(()=>{if(!(r||!A))return A.setFocusManagerState({modal:a,closeOnFocusOut:l,open:b,onOpenChange:h.setOpen,domReference:v}),()=>{A.setFocusManagerState(null)}},[r,A,a,b,h,l,v]),le(()=>{if(!(r||!U))return Jle(U),()=>{queueMicrotask(cU)}},[r,U]);let re=!r&&(a?!C:!0)&&(X||a);return(0,gE.jsxs)(Di.Fragment,{children:[re&&(0,gE.jsx)(Mw,{"data-type":"inside",ref:z,onFocus:ae=>{if(a){let ie=G();Lw(ie[ie.length-1])}else A?.portalNode&&(P.current=!1,iy(ae,A.portalNode)?LA(v)?.focus():Pc(f??A.beforeOutsideRef)?.focus())}}),o,re&&(0,gE.jsx)(Mw,{"data-type":"inside",ref:$,onFocus:ae=>{a?Lw(G()[0]):A?.portalNode&&(l&&(P.current=!0),iy(ae,A.portalNode)?DA(v)?.focus():Pc(d??A.afterOutsideRef)?.focus())}})]})}var hE=c(oe(),1);function dU(e,t={}){let{enabled:o=!0,event:r="click",toggle:n=!0,ignoreMouse:i=!1,stickIfOpen:s=!0,touchOpenDelay:a=0,reason:l=Te.triggerPress}=t,u="rootStore"in e?e.rootStore:e,d=u.context.dataRef,f=hE.useRef(void 0),p=ss(),m=Fo(),g=hE.useMemo(()=>{function h(v,y,_,w){let k=Ke(l,y,_);v&&w==="touch"&&a>0?m.start(a,()=>{u.setOpen(!0,k)}):u.setOpen(v,k)}function b(v,y,_){let w=d.current.openEvent,k=u.select("domReferenceElement")!==y;return v&&k||!v||!n?!0:w&&s?!_(w.type):!1}return{onPointerDown(v){f.current=xa(v.pointerType,!0)&&Aw(v.nativeEvent)?"virtual":v.pointerType},onMouseDown(v){let y=f.current,_=v.nativeEvent,w=u.select("open");if(v.button!==0||r==="click"||xa(y,!0)&&i)return;let k=b(w,v.currentTarget,E=>E==="click"||E==="mousedown"),x=ko(_);if(ey(x)){h(k,_,x,y);return}let C=v.currentTarget;p.request(()=>{h(k,_,C,y)})},onClick(v){if(r==="mousedown-only")return;let y=f.current;if(r==="mousedown"&&y){f.current=void 0;return}if(xa(y,!0)&&i)return;let _=u.select("open"),w=b(_,v.currentTarget,k=>k==="click"||k==="mousedown"||k==="keydown"||k==="keyup");h(w,v.nativeEvent,v.currentTarget,y)},onKeyDown(){f.current=void 0}}},[d,r,i,l,u,s,n,p,m,a]);return hE.useMemo(()=>o?{reference:g}:Ut,[o,g])}var js=c(oe(),1);function ZUe(e,t){let o=null,r=null,n=!1;return{contextElement:e||void 0,getBoundingClientRect(){let i=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},s=t.axis==="x"||t.axis==="both",a=t.axis==="y"||t.axis==="both",l=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",u=i.width,d=i.height,f=i.x,p=i.y;return o==null&&t.x&&s&&(o=i.x-t.x),r==null&&t.y&&a&&(r=i.y-t.y),f-=o||0,p-=r||0,u=0,d=0,!n||l?(u=t.axis==="y"?i.width:0,d=t.axis==="x"?i.height:0,f=s&&t.x!=null?t.x:f,p=a&&t.y!=null?t.y:p):n&&!l&&(d=t.axis==="x"?i.height:d,u=t.axis==="y"?i.width:u),n=!0,{width:u,height:d,x:f,y:p,top:p,right:f+u,bottom:p+d,left:f}}}}function ece(e){return e!=null&&e.clientX!=null}function fU(e,t={}){let{enabled:o=!0,axis:r="both"}=t,n="rootStore"in e?e.rootStore:e,i=n.useState("open"),s=n.useState("floatingElement"),a=n.useState("domReferenceElement"),l=n.context.dataRef,u=js.useRef(!1),d=js.useRef(null),[f,p]=js.useState(),[m,g]=js.useState([]),h=de(w=>{n.set("positionReference",w)}),b=de((w,k,x)=>{u.current||l.current.openEvent&&!ece(l.current.openEvent)||n.set("positionReference",ZUe(x??a,{x:w,y:k,axis:r,dataRef:l,pointerType:f}))}),v=de(w=>{i?d.current||(b(w.clientX,w.clientY,w.currentTarget),g([])):b(w.clientX,w.clientY,w.currentTarget)}),y=xa(f)?s:i;js.useEffect(()=>{if(!o){h(a);return}if(!y)return;function w(){d.current?.(),d.current=null}let k=St(s);function x(C){let E=ko(C);Ge(s,E)?w():b(C.clientX,C.clientY)}return!l.current.openEvent||ece(l.current.openEvent)?d.current=ut(k,"mousemove",x):h(a),w},[y,o,s,l,a,n,b,h,m]),js.useEffect(()=>()=>{n.set("positionReference",null)},[n]),js.useEffect(()=>{o&&!s&&(u.current=!1)},[o,s]),js.useEffect(()=>{!o&&i&&(u.current=!0)},[o,i]);let _=js.useMemo(()=>{function w(k){p(k.pointerType)}return{onPointerDown:w,onPointerEnter:w,onMouseMove:v,onMouseEnter:v}},[v]);return js.useMemo(()=>o?{reference:_,trigger:_}:{},[o,_])}var Sa=c(oe(),1);function XUe(){return!1}function QUe(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function bE(e,t={}){let{enabled:o=!0,escapeKey:r=!0,outsidePress:n=!0,outsidePressEvent:i="sloppy",referencePress:s=XUe,bubbles:a,externalTree:l}=t,u="rootStore"in e?e.rootStore:e,d=u.useState("open"),f=u.useState("floatingElement"),{dataRef:p}=u.context,m=yl(l),g=de(typeof n=="function"?n:()=>!1),h=typeof n=="function"?g:n,b=h!==!1,v=de(()=>i),{escapeKey:y,outsidePress:_}=QUe(a),w=Sa.useRef(!1),k=Sa.useRef(!1),x=Sa.useRef(!1),C=Sa.useRef(!1),E=Sa.useRef(""),R=Sa.useRef(null),S=Fo(),I=Fo(),O=de(()=>{I.clear(),p.current.insideReactTree=!1}),A=de(z=>{let $=p.current.floatingContext?.nodeId;return(m?bl(m.nodesRef.current,$):[]).some(Q=>Q.context?.open&&!Q.context.dataRef.current[z])}),P=de(z=>TA(z,u.select("floatingElement"))||TA(z,u.select("domReferenceElement"))),L=de(z=>{s()&&u.setOpen(!1,Ke(Te.triggerPress,z.nativeEvent))}),H=de(z=>{if(!d||!o||!r||z.key!=="Escape"||C.current||!y&&A("__escapeKeyBubbles"))return;let $=gle(z)?z.nativeEvent:z,J=Ke(Te.escapeKey,$);u.setOpen(!1,J),J.isCanceled||z.preventDefault(),!y&&!J.isPropagationAllowed&&z.stopPropagation()}),N=de(()=>{p.current.insideReactTree=!0,I.start(0,O)}),M=de(z=>{if(!d||!o||z.button!==0)return;let $=ko(z.nativeEvent);Ge(u.select("floatingElement"),$)&&(w.current||(w.current=!0,k.current=!1))}),V=de(z=>{!d||!o||(z.defaultPrevented||z.nativeEvent.defaultPrevented)&&w.current&&(k.current=!0)});Sa.useEffect(()=>{if(!d||!o)return O;p.current.__escapeKeyBubbles=y,p.current.__outsidePressBubbles=_;let z=new Mi,$=new Mi;function J(){z.clear(),C.current=!0}function Q(){z.start(mo.engine.webkit?5:0,()=>{C.current=!1})}function W(){x.current=!0,$.start(0,()=>{x.current=!1})}function X(){w.current=!1,k.current=!1}function U(){let ne=E.current,se=ne==="pen"||!ne?"mouse":ne,Ee=v(),he=typeof Ee=="function"?Ee():Ee;return typeof he=="string"?he:he[se]}function G(ne){let se=U();return se==="intentional"&&ne.type!=="click"||se==="sloppy"&&ne.type==="click"}function te(ne){let se=p.current.floatingContext?.nodeId,Ee=m&&bl(m.nodesRef.current,se).some(he=>TA(ne,he.context?.elements.floating));return P(ne)||Ee}function re(ne){if(G(ne)){ne.type!=="click"&&!P(ne)&&($.clear(),x.current=!1),O();return}if(p.current.insideReactTree){O();return}let se=ko(ne),Ee=`[$Df("inert")}]`,he=ct(se)?se.getRootNode():null,Ae=Array.from((Zu(he)?he:ot(u.select("floatingElement"))).querySelectorAll(Ee)),et=u.context.triggerElements;if(se&&(et.hasElement(se)||et.hasMatchingElement(_t=>Ge(_t,se))))return;let Je=ct(se)?se:null;for(;Je&&!Ju(Je);){let _t=Xu(Je);if(Ju(_t)||!ct(_t))break;Je=_t}if(!(Ae.length&&ct(se)&&!ble(se)&&!Ge(se,u.select("floatingElement"))&&Ae.every(_t=>!Ge(Je,_t)))){if(Ct(se)&&!("touches"in ne)){let _t=Ju(se),Et=On(se),mt=/auto|scroll/,oo=_t||mt.test(Et.overflowX),Tt=_t||mt.test(Et.overflowY),Rt=oo&&se.clientWidth>0&&se.scrollWidth>se.clientWidth,Bt=Tt&&se.clientHeight>0&&se.scrollHeight>se.clientHeight,gt=Et.direction==="rtl",He=Bt&&(gt?ne.offsetX<=se.offsetWidth-se.clientWidth:ne.offsetX>se.clientWidth),we=Rt&&ne.offsetY>se.clientHeight;if(He||we)return}if(!te(ne)){if(U()==="intentional"&&x.current){$.clear(),x.current=!1;return}typeof h=="function"&&!h(ne)||A("__outsidePressBubbles")||(u.setOpen(!1,Ke(Te.outsidePress,ne)),O())}}}function ae(ne){U()!=="sloppy"||ne.pointerType==="touch"||!u.select("open")||!o||P(ne)||re(ne)}function ie(ne){if(U()!=="sloppy"||!u.select("open")||!o||P(ne))return;let se=ne.touches[0];se&&(R.current={startTime:Date.now(),startX:se.clientX,startY:se.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},S.start(1e3,()=>{R.current&&(R.current.dismissOnTouchEnd=!1,R.current.dismissOnMouseDown=!1)}))}function be(ne,se){let Ee=ko(ne);if(!Ee)return;let he=ut(Ee,ne.type,()=>{se(ne),he()})}function pe(ne){E.current="touch",be(ne,ie)}function ke(ne){S.clear(),ne.type==="pointerdown"&&(E.current=ne.pointerType),!(ne.type==="mousedown"&&R.current&&!R.current.dismissOnMouseDown)&&be(ne,se=>{se.type==="pointerdown"?ae(se):re(se)})}function ye(ne){if(!w.current)return;let se=k.current;if(X(),U()==="intentional"){if(ne.type==="pointercancel"){se&&W();return}if(!te(ne)){if(se){W();return}typeof h=="function"&&!h(ne)||($.clear(),x.current=!0,O())}}}function Pe(ne){if(U()!=="sloppy"||!R.current||P(ne))return;let se=ne.touches[0];if(!se)return;let Ee=Math.abs(se.clientX-R.current.startX),he=Math.abs(se.clientY-R.current.startY),Ae=Math.sqrt(Ee*Ee+he*he);Ae>5&&(R.current.dismissOnTouchEnd=!0),Ae>10&&(re(ne),S.clear(),R.current=null)}function _e(ne){be(ne,Pe)}function ve(ne){U()!=="sloppy"||!R.current||P(ne)||(R.current.dismissOnTouchEnd&&re(ne),S.clear(),R.current=null)}function Se(ne){be(ne,ve)}let fe=ot(f),Ce=Ni(r&&Ni(ut(fe,"keydown",H),ut(fe,"compositionstart",J),ut(fe,"compositionend",Q)),b&&Ni(ut(fe,"click",ke,!0),ut(fe,"pointerdown",ke,!0),ut(fe,"pointerup",ye,!0),ut(fe,"pointercancel",ye,!0),ut(fe,"mousedown",ke,!0),ut(fe,"mouseup",ye,!0),ut(fe,"touchstart",pe,!0),ut(fe,"touchmove",_e,!0),ut(fe,"touchend",Se,!0)));return()=>{Ce(),z.clear(),$.clear(),X(),x.current=!1,O()}},[p,f,r,b,h,d,o,y,_,H,O,v,A,P,m,u,S]);let j=Sa.useMemo(()=>({onKeyDown:H,onPointerDown:L,onClick:L}),[H,L]),D=Sa.useMemo(()=>({onKeyDown:H,onPointerDown:V,onMouseDown:V,onClickCapture:N,onMouseDownCapture(z){N(),M(z)},onPointerDownCapture(z){N(),M(z)},onMouseUpCapture:N,onTouchEndCapture:N,onTouchMoveCapture:N}),[H,N,M,V]);return Sa.useMemo(()=>o?{reference:j,floating:D,trigger:j}:{},[o,j,D])}var Vi=c(oe(),1);function tce(e,t,o){let{reference:r,floating:n}=e,i=zs(t),s=fE(t),a=dE(s),l=Li(t),u=i==="y",d=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,p=r[a]/2-n[a]/2,m;switch(l){case"top":m={x:d,y:r.y-n.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-n.width,y:f};break;default:m={x:r.x,y:r.y}}let g=Ac(t);return g&&(m[s]+=p*(g==="end"?1:-1)*(o&&u?-1:1)),m}async function oce(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=td(t,e),g=MA(m),b=a[p?f==="floating"?"reference":"floating":f],v=Lf(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(b)))==null||o?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),y=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},k=Lf(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:_,strategy:l}):y);return{top:(v.top-k.top+g.top)/w.y,bottom:(k.bottom-v.bottom+g.bottom)/w.y,left:(v.left-k.left+g.left)/w.x,right:(k.right-v.right+g.right)/w.x}}var JUe=50,rce=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:s}=o,a=s.detectOverflow?s:{...s,detectOverflow:oce},l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:f}=tce(u,r,l),p=r,m=0,g={};for(let h=0;h<i.length;h++){let b=i[h];if(!b)continue;let{name:v,fn:y}=b,{x:_,y:w,data:k,reset:x}=await y({x:d,y:f,initialPlacement:r,placement:p,strategy:n,middlewareData:g,rects:u,platform:a,elements:{reference:e,floating:t}});d=_??d,f=w??f,g[v]={...g[v],...k},x&&m<JUe&&(m++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(u=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):x.rects),{x:d,y:f}=tce(u,p,l)),h=-1)}return{x:d,y:f,placement:p,strategy:n,middlewareData:g}};var nce=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...b}=td(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};let v=Li(n),y=zs(a),_=Li(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),k=p||(_||!h?[cE(a)]:Rle(a)),x=g!=="none";!p&&x&&k.push(...Ble(a,h,g,w));let C=[a,...k],E=await l.detectOverflow(t,b),R=[],S=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&R.push(E[v]),f){let P=Tle(n,s,w);R.push(E[P[0]],E[P[1]])}if(S=[...S,{placement:n,overflows:R}],!R.every(P=>P<=0)){var I,O;let P=(((I=i.flip)==null?void 0:I.index)||0)+1,L=C[P];if(L&&(!(f==="alignment"?y!==zs(L):!1)||S.every(M=>zs(M.placement)===y?M.overflows[0]>0:!0)))return{data:{index:P,overflows:S},reset:{placement:L}};let H=(O=S.filter(N=>N.overflows[0]<=0).sort((N,M)=>N.overflows[1]-M.overflows[1])[0])==null?void 0:O.placement;if(!H)switch(m){case"bestFit":{var A;let N=(A=S.filter(M=>{if(x){let V=zs(M.placement);return V===y||V==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(V=>V>0).reduce((V,j)=>V+j,0)]).sort((M,V)=>M[1]-V[1])[0])==null?void 0:A[0];N&&(H=N);break}case"initialPlacement":H=a;break}if(n!==H)return{reset:{placement:H}}}return{}}}};var ice=new Set(["left","top"]);async function eGe(e,t){let{placement:o,platform:r,elements:n}=e,i=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=Li(o),a=Ac(o),l=zs(o)==="y",u=ice.has(s)?-1:1,d=i&&l?-1:1,f=td(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),l?{x:m*d,y:p*u}:{x:p*u,y:m*d}}var sce=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:i,placement:s,middlewareData:a}=t,l=await eGe(t,e);return s===((o=a.offset)==null?void 0:o.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:s}}}}},ace=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:n,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:y=>{let{x:_,y:w}=y;return{x:_,y:w}}},...u}=td(e,t),d={x:o,y:r},f=await i.detectOverflow(t,u),p=zs(n),m=AA(p),g=d[m],h=d[p],b=(y,_)=>OA(_+f[y==="y"?"top":"left"],_,_-f[y==="y"?"bottom":"right"]);s&&(g=b(m,g)),a&&(h=b(p,h));let v=l.fn({...t,[m]:g,[p]:h});return{...v,data:{x:v.x-o,y:v.y-r,enabled:{[m]:s,[p]:a}}}}}},lce=function(e){return e===void 0&&(e={}),{options:e,fn(t){var o,r;let{x:n,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:f=!0}=td(e,t),p={x:n,y:i},m=zs(s),g=AA(m),h=p[g],b=p[m],v=td(u,t),y=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:(o=v.mainAxis)!=null?o:0,crossAxis:(r=v.crossAxis)!=null?r:0};if(d){let k=g==="y"?"height":"width",x=a.reference[g]-a.floating[k]+y.mainAxis,C=a.reference[g]+a.reference[k]-y.mainAxis;h<x?h=x:h>C&&(h=C)}if(f){var _,w;let k=g==="y"?"width":"height",x=ice.has(Li(s)),C=a.reference[m]-a.floating[k]+(x&&((_=l.offset)==null?void 0:_[m])||0)+(x?0:y.crossAxis),E=a.reference[m]+a.reference[k]+(x?0:((w=l.offset)==null?void 0:w[m])||0)-(x?y.crossAxis:0);b<C?b=C:b>E&&(b=E)}return{[g]:h,[m]:b}}}},cce=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:o,rects:r,platform:n,elements:i}=t,{apply:s=()=>{},...a}=td(e,t),l=await n.detectOverflow(t,a),u=Li(o),d=Ac(o),f=zs(o)==="y",{width:p,height:m}=r.floating,g,h;u==="top"||u==="bottom"?(g=u,h=d===(await(n.isRTL==null?void 0:n.isRTL(i.floating))?"start":"end")?"left":"right"):(h=u,g=d==="end"?"top":"bottom");let b=m-l.top-l.bottom,v=p-l.left-l.right,y=eg(m-l[g],b),_=eg(p-l[h],v),w=t.middlewareData.shift,k=!w,x=y,C=_;w!=null&&w.enabled.x&&(C=v),w!=null&&w.enabled.y&&(x=b),k&&!d&&(f?C=p-2*Oc(l.left,l.right):x=m-2*Oc(l.top,l.bottom)),await s({...t,availableWidth:C,availableHeight:x});let E=await n.getDimensions(i.floating);return p!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}};function fce(e){let t=On(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=Ct(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:r,a=tg(o)!==i||tg(r)!==s;return a&&(o=i,r=s),{width:o,height:r,$:a}}function mU(e){return ct(e)?e:e.contextElement}function Dw(e){let t=mU(e);if(!Ct(t))return ed(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:i}=fce(t),s=(i?tg(o.width):o.width)/r,a=(i?tg(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var tGe=ed(0);function pce(e){let t=St(e);return!_A()||!t.visualViewport?tGe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oGe(e,t,o){return t===void 0&&(t=!1),!!o&&t&&o===St(e)}function ly(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),i=mU(e),s=ed(1);t&&(r?ct(r)&&(s=Dw(r)):s=Dw(e));let a=oGe(i,o,r)?pce(i):ed(0),l=(n.left+a.x)/s.x,u=(n.top+a.y)/s.y,d=n.width/s.x,f=n.height/s.y;if(i&&r){let p=St(i),m=ct(r)?St(r):r,g=p,h=wA(g);for(;h&&m!==g;){let b=Dw(h),v=h.getBoundingClientRect(),y=On(h),_=v.left+(h.clientLeft+parseFloat(y.paddingLeft))*b.x,w=v.top+(h.clientTop+parseFloat(y.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,f*=b.y,l+=_,u+=w,g=St(h),h=wA(g)}}return Lf({width:d,height:f,x:l,y:u})}function zA(e,t){let o=oE(e).scrollLeft;return t?t.left+o:ly(Qu(e)).left+o}function mce(e,t){let o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-zA(e,o),n=o.top+t.scrollTop;return{x:r,y:n}}function rGe(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,i=n==="fixed",s=Qu(r),a=t?tE(t.floating):!1;if(r===s||a&&i)return o;let l={scrollLeft:0,scrollTop:0},u=ed(1),d=ed(0),f=Ct(r);if((f||!i)&&((Zr(r)!=="body"||Xb(s))&&(l=oE(r)),f)){let m=ly(r);u=Dw(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}let p=s&&!f&&!i?mce(s,l):ed(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:o.y*u.y-l.scrollTop*u.y+d.y+p.y}}function nGe(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function iGe(e){let t=oE(e),o=e.ownerDocument.body,r=Oc(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=Oc(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),i=-t.scrollLeft+zA(e),s=-t.scrollTop;return On(o).direction==="rtl"&&(i+=Oc(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:i,y:s}}var sGe=25;function aGe(e,t,o){o===void 0&&(o="viewport");let r=o==="layoutViewport",n=St(e),i=Qu(e),s=n.visualViewport,a=i.clientWidth,l=i.clientHeight,u=0,d=0;if(s){let p=!_A()||t==="fixed";r?p||(u=-s.offsetLeft,d=-s.offsetTop):(a=s.width,l=s.height,p&&(u=s.offsetLeft,d=s.offsetTop))}if(zA(i)<=0){let p=i.ownerDocument,m=p.body,g=getComputedStyle(m),h=p.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,b=Math.abs(i.clientWidth-m.clientWidth-h),v=getComputedStyle(i).scrollbarGutter==="stable both-edges"?b/2:b;v<=sGe&&(a-=v)}return{width:a,height:l,x:u,y:d}}function lGe(e,t){let o=ly(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,i=Dw(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=n*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function uce(e,t,o){let r;if(t==="viewport"||t==="layoutViewport")r=aGe(e,o,t);else if(t==="document")r=iGe(Qu(e));else if(ct(t))r=lGe(t,o);else{let n=pce(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Lf(r)}function cGe(e,t){let o=t.get(e);if(o)return o;let r=Xm(e,[],!1).filter(a=>ct(a)&&Zr(a)!=="body"),n=null,i=On(e).position==="fixed",s=i?Xu(e):e;for(;ct(s)&&!Ju(s);){let a=On(s),l=vA(s),u=n?n.position:i?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?r=r.filter(f=>f!==s):n=a,s=Xu(s)}return t.set(e,r),r}function uGe(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,s=[...o==="clippingAncestors"?tE(t)?[]:cGe(t,this._c):[].concat(o),r],a=uce(t,s[0],n),l=a.top,u=a.right,d=a.bottom,f=a.left;for(let p=1;p<s.length;p++){let m=uce(t,s[p],n);l=Oc(m.top,l),u=eg(m.right,u),d=eg(m.bottom,d),f=Oc(m.left,f)}return{width:u-f,height:d-l,x:f,y:l}}function dGe(e){let{width:t,height:o}=fce(e);return{width:t,height:o}}function fGe(e,t,o){let r=Ct(t),n=Qu(t),i=o==="fixed",s=ly(e,!0,i,t),a={scrollLeft:0,scrollTop:0},l=ed(0);if((r||!i)&&((Zr(t)!=="body"||Xb(n))&&(a=oE(t)),r)){let p=ly(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!r&&n&&(l.x=zA(n));let u=n&&!r&&!i?mce(n,a):ed(0),d=s.left+a.scrollLeft-l.x-u.x,f=s.top+a.scrollTop-l.y-u.y;return{x:d,y:f,width:s.width,height:s.height}}function pU(e){return On(e).position==="static"}function dce(e,t){if(!Ct(e)||On(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Qu(e)===o&&(o=o.ownerDocument.body),o}function gce(e,t){let o=St(e);if(tE(e))return o;if(!Ct(e)){let n=Xu(e);for(;n&&!Ju(n);){if(ct(n)&&!pU(n))return n;n=Xu(n)}return o}let r=dce(e,t);for(;r&&Xae(r)&&pU(r);)r=dce(r,t);return r&&Ju(r)&&pU(r)&&!vA(r)?o:r||Qae(e)||o}var pGe=async function(e){let t=this.getOffsetParent||gce,o=this.getDimensions,r=await o(e.floating);return{reference:fGe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function mGe(e){return On(e).direction==="rtl"}var yE={convertOffsetParentRelativeRectToViewportRelativeRect:rGe,getDocumentElement:Qu,getClippingRect:uGe,getOffsetParent:gce,getElementRects:pGe,getClientRects:nGe,getDimensions:dGe,getScale:Dw,isElement:ct,isRTL:mGe};function hce(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gGe(e,t,o){let r=null,n,i=Qu(e);function s(){var d;clearTimeout(n),(d=r)==null||d.disconnect(),r=null}function a(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),s();let p=e.getBoundingClientRect(),{left:m,top:g,width:h,height:b}=p;if(d||t(),!h||!b)return;let v=uE(g),y=uE(i.clientWidth-(m+h)),_=uE(i.clientHeight-(g+b)),w=uE(m),x={rootMargin:-v+"px "+-y+"px "+-_+"px "+-w+"px",threshold:Oc(0,eg(1,f))||1},C=!0;function E(R){let S=R[0].intersectionRatio;if(!hce(p,e.getBoundingClientRect()))return a();if(S!==f){if(!C)return a();S?a(!1,S):n=setTimeout(()=>{a(!1,1e-7)},1e3)}C=!1}try{r=new IntersectionObserver(E,{...x,root:i.ownerDocument})}catch{r=new IntersectionObserver(E,x)}r.observe(e)}let l=St(e),u=()=>a(o);return l.addEventListener("resize",u),a(!0),()=>{l.removeEventListener("resize",u),s()}}function vE(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=mU(e),d=n||i?[...u?Xm(u):[],...t?Xm(t):[]]:[];d.forEach(v=>{n&&v.addEventListener("scroll",o),i&&v.addEventListener("resize",o)});let f=u&&a?gGe(u,o,i):null,p=-1,m=null;s&&(m=new ResizeObserver(v=>{let[y]=v;y&&y.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=m)==null||_.observe(t)})),o()}),u&&!l&&m.observe(u),t&&m.observe(t));let g,h=l?ly(e):null;l&&b();function b(){let v=ly(e);h&&!hce(h,v)&&o(),h=v,g=requestAnimationFrame(b)}return o(),()=>{var v;d.forEach(y=>{n&&y.removeEventListener("scroll",o),i&&y.removeEventListener("resize",o)}),f?.(),(v=m)==null||v.disconnect(),m=null,l&&cancelAnimationFrame(g)}}var bce=sce;var yce=ace,vce=nce,_ce=cce;var wce=lce,jA=(e,t,o)=>{let r=new Map,n=o??{},i={...yE,...n.platform,_c:r};return rce(e,t,{...n,platform:i})};var hn=c(oe(),1),xce=c(oe(),1),Sce=c(Pf(),1),bGe=typeof document<"u",yGe=function(){},HA=bGe?xce.useLayoutEffect:yGe;function WA(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,r,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(r=o;r--!==0;)if(!WA(e[r],t[r]))return!1;return!0}if(n=Object.keys(e),o=n.length,o!==Object.keys(t).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(t,n[r]))return!1;for(r=o;r--!==0;){let i=n[r];if(!(i==="_owner"&&e.$$typeof)&&!WA(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Cce(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kce(e,t){let o=Cce(e);return Math.round(t*o)/o}function gU(e){let t=hn.useRef(e);return HA(()=>{t.current=e}),t}function Ece(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:r=[],platform:n,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,f]=hn.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=hn.useState(r);WA(p,r)||m(r);let[g,h]=hn.useState(null),[b,v]=hn.useState(null),y=hn.useCallback(M=>{M!==x.current&&(x.current=M,h(M))},[]),_=hn.useCallback(M=>{M!==C.current&&(C.current=M,v(M))},[]),w=i||g,k=s||b,x=hn.useRef(null),C=hn.useRef(null),E=hn.useRef(d),R=l!=null,S=gU(l),I=gU(n),O=gU(u),A=hn.useCallback(()=>{if(!x.current||!C.current)return;let M={placement:t,strategy:o,middleware:p};I.current&&(M.platform=I.current),jA(x.current,C.current,M).then(V=>{let j={...V,isPositioned:O.current!==!1};P.current&&!WA(E.current,j)&&(E.current=j,Sce.flushSync(()=>{f(j)}))})},[p,t,o,I,O]);HA(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[u]);let P=hn.useRef(!1);HA(()=>(P.current=!0,()=>{P.current=!1}),[]),HA(()=>{if(w&&(x.current=w),k&&(C.current=k),w&&k){if(S.current)return S.current(w,k,A);A()}},[w,k,A,S,R]);let L=hn.useMemo(()=>({reference:x,floating:C,setReference:y,setFloating:_}),[y,_]),H=hn.useMemo(()=>({reference:w,floating:k}),[w,k]),N=hn.useMemo(()=>{let M={position:o,left:0,top:0};if(!H.floating)return M;let V=kce(H.floating,d.x),j=kce(H.floating,d.y);return a?{...M,transform:"translate("+V+"px, "+j+"px)",...Cce(H.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:V,top:j}},[o,a,H.floating,d.x,d.y]);return hn.useMemo(()=>({...d,update:A,refs:L,elements:H,floatingStyles:N}),[d,A,L,H,N])}var hU=(e,t)=>{let o=bce(e);return{name:o.name,fn:o.fn,options:[e,t]}},bU=(e,t)=>{let o=yce(e);return{name:o.name,fn:o.fn,options:[e,t]}},yU=(e,t)=>({fn:wce(e).fn,options:[e,t]}),vU=(e,t)=>{let o=vce(e);return{name:o.name,fn:o.fn,options:[e,t]}},_U=(e,t)=>{let o=_ce(e);return{name:o.name,fn:o.fn,options:[e,t]}};var UA=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(t,o,r=!0){this.fallbackStore=t,this.componentName=o,this.throwOnMissingTrigger=r}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(t){return this.storeListeners.add(t),()=>{this.storeListeners.delete(t)}}attachStore(t){return this.attachedStores.push(t),this.setActiveStore(t),()=>{let o=this.attachedStores.lastIndexOf(t);o!==-1&&this.attachedStores.splice(o,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(t){this.attachedStoreValue!==t&&(this.attachedStoreValue=t,this.storeListeners.forEach(o=>{o()}))}openByTrigger(t){let o=this.attachedStore;if(o===null)return;let r;if(t){for(let n=this.attachedStores.length-1;n>=0&&!r;n-=1)r=this.attachedStores[n].context.triggerElements.getById(t);r??=this.fallbackStore.context.triggerElements.getById(t)}if(t&&!r&&this.throwOnMissingTrigger)throw new Error(Wt(99,this.componentName,t,this.componentName));o.setOpen(!0,Ke(Te.imperativeAction,void 0,r))}closePopup(){let t=this.attachedStore;t!==null&&t.setOpen(!1,Ke(Te.imperativeAction))}};var uy=c(oe(),1),Wce=c(Pf(),1);var jce=c(oe(),1);var Vce=c(oe(),1),CU=c(_E(),1),Fce=c(Ace(),1);var Mce=c(oe(),1);var kU=[],xU;function Nce(){return xU}function Lce(e){kU.push(e)}function SU(e){let t=(o,r)=>{let n=eo(LGe).current,i;try{xU=n;for(let s of kU)s.before(n);i=e(o,r);for(let s of kU)s.after(n);n.didInitialize=!0}finally{xU=void 0}return i};return t.displayName=e.displayName||e.name,t}function Dce(e){return Mce.forwardRef(SU(e))}function LGe(){return{didInitialize:!1}}var DGe=Cw(19),VGe=DGe?zGe:jGe;function Fe(e,t,o,r,n){return VGe(e,t,o,r,n)}function FGe(e,t,o,r,n){let i=Vce.useCallback(()=>t(e.getSnapshot(),o,r,n),[e,t,o,r,n]);return(0,CU.useSyncExternalStore)(e.subscribe,i,i)}Lce({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let o=0;o<e.syncHooks.length;o+=1){let r=e.syncHooks[o],n=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,n)||(t=!0,r.value=n)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let o=new Set;for(let n of e.syncHooks)o.add(n.store);let r=[];for(let n of o)r.push(n.subscribe(t));return()=>{for(let n of r)n()}}),(0,CU.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function zGe(e,t,o,r,n){let i=Nce();if(!i)return FGe(e,t,o,r,n);let s=i.syncIndex;i.syncIndex+=1;let a;return i.didInitialize?(a=i.syncHooks[s],(a.store!==e||a.selector!==t||!Object.is(a.a1,o)||!Object.is(a.a2,r)||!Object.is(a.a3,n))&&(a.store!==e&&(i.didChangeStore=!0),a.store=e,a.selector=t,a.a1=o,a.a2=r,a.a3=n,a.value=t(e.getSnapshot(),o,r,n))):(a={store:e,selector:t,a1:o,a2:r,a3:n,value:t(e.getSnapshot(),o,r,n)},i.syncHooks.push(a)),a.value}function jGe(e,t,o,r,n){return(0,Fce.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,o,r,n))}var $A=class{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let o=this.updateTick;for(let r of this.listeners){if(o!==this.updateTick)return;r(t)}}update(t){for(let o in t)if(!Object.is(this.state[o],t[o])){this.setState({...this.state,...t});return}}set(t,o){Object.is(this.state[t],o)||this.setState({...this.state,[t]:o})}notifyAll(){let t={...this.state};this.setState(t)}use(t,o,r,n){return Fe(this,t,o,r,n)}};var cy=c(oe(),1);var od=class extends $A{constructor(t,o={},r){super(t),this.context=o,this.selectors=r}useSyncedValue(t,o){cy.useDebugValue(t);let r=this;le(()=>{r.state[t]!==o&&r.set(t,o)},[r,t,o])}useSyncedValueWithCleanup(t,o){let r=this;le(()=>(r.state[t]!==o&&r.set(t,o),()=>{r.set(t,void 0)}),[r,t,o])}useSyncedValues(t){let o=this,r=Object.values(t);le(()=>{o.update(t)},[o,...r])}useControlledProp(t,o){cy.useDebugValue(t);let r=this,n=o!==void 0;le(()=>{n&&!Object.is(r.state[t],o)&&r.setState({...r.state,[t]:o})},[r,t,o,n])}select(t,o,r,n){let i=this.selectors[t];return i(this.state,o,r,n)}useState(t,o,r,n){return cy.useDebugValue(t),Fe(this,this.selectors[t],o,r,n)}useContextCallback(t,o){cy.useDebugValue(t);let r=de(o??At);this.context[t]=r}useStateSetter(t){let o=cy.useRef(void 0);return o.current===void 0&&(o.current=r=>{this.set(t,r)}),o.current}observe(t,o){let r;typeof t=="function"?r=t:r=this.selectors[t];let n=r(this.state);return o(n,n,this),this.subscribe(i=>{let s=r(i);if(!Object.is(n,s)){let a=n;n=s,o(s,a,this)}})}};var YA=c(oe(),1);function zce(){let[,e]=YA.useState({});return YA.useCallback(()=>{e({})},[])}var HGe={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},rd=class extends od{constructor(t){let{syncOnly:o,nested:r,onOpenChange:n,triggerElements:i,...s}=t;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:n,dataRef:{current:{}},events:qle(),nested:r,triggerElements:i},HGe),this.syncOnly=o}syncOpenEvent=(t,o)=>{(!t||!this.state.open||o!=null&&hle(o))&&(this.context.dataRef.current.openEvent=t?o:void 0)};dispatchOpenChange=(t,o)=>{this.syncOpenEvent(t,o.event);let r={open:t,reason:o.reason,nativeEvent:o.event,nested:this.context.nested,triggerElement:o.trigger};this.context.events.emit("openchange",r)};setOpen=(t,o)=>{if(this.syncOnly){this.context.onOpenChange?.(t,o);return}this.dispatchOpenChange(t,o),this.context.onOpenChange?.(t,o)}};function Hce(e){let{popupStore:t,treatPopupAsFloatingElement:o=!1,floatingRootContext:r,floatingId:n,nested:i,onOpenChange:s}=e,a=t.useState("open"),l=t.useState("activeTriggerElement"),u=t.useState(o?"popupElement":"positionerElement"),d=t.context.triggerElements,f=s,p=jce.useRef(null);r===void 0&&p.current===null&&(p.current=new rd({open:a,transitionStatus:void 0,referenceElement:l,floatingElement:u,triggerElements:d,onOpenChange:f,floatingId:n,syncOnly:!0,nested:i}));let m=r??p.current;return t.useSyncedValue("floatingId",n),le(()=>{let g={open:a,floatingId:n,referenceElement:l,floatingElement:u};ct(l)&&(g.domReferenceElement=l),m.state.positionReference===m.state.referenceElement&&(g.positionReference=l),m.update(g)},[a,n,l,u,m]),m.context.onOpenChange=f,m.context.nested=i,m}var KA={tabIndex:-1,[iE]:""};function Uce(e,t=!1){let o=Zm(),r=rg()!=null,n=eo(()=>e(o,r)).current;return Hce({popupStore:n,treatPopupAsFloatingElement:t,floatingRootContext:n.state.floatingRootContext,floatingId:o,nested:r,onOpenChange:n.setOpen}),n}function Gce({handle:e,store:t}){return le(()=>e.attachStore(t),[e,t]),null}function WGe(e,t){let o=uy.useRef(null),r=uy.useRef(null);return uy.useCallback(n=>{if(e===void 0)return;let i=!1;if(o.current!==null){let s=o.current,a=r.current,l=t.context.triggerElements.getById(s);a&&l===a&&(t.context.triggerElements.delete(s),i=!0),o.current=null,r.current=null}if(n!==null&&(o.current=e,r.current=n,t.context.triggerElements.add(e,n),i=!0),i){let s=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==s&&t.set("triggerCount",s)}},[t,e])}function UGe(e,t,o,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let n=o?.id??null;(n||t)&&(e.activeTriggerId=n,e.activeTriggerElement=o??null)}function GGe(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function $ce(e,t,o,r={}){let n=o.reason,i=n===Te.triggerHover,s=t&&n===Te.triggerFocus,a=!t&&(n===Te.triggerPress||n===Te.escapeKey),l=GGe(o);if(e.context.onOpenChange?.(t,o),o.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,o);let u=()=>{let d={...r.extraState,open:t};s?d.instantType="focus":a?d.instantType="dismiss":i&&(d.instantType=void 0),UGe(d,t,o.trigger,l()),e.update(d)};i?Wce.flushSync(u):u()}function Yce(e,t,o,r){let n=o.useState("isMountedByTrigger",e),i=WGe(e,o),s=de(l=>{let u=o.select("open"),d=o.select("activeTriggerId");if(d===e){o.update({activeTriggerElement:l,...u?r:null});return}d==null&&u&&o.update({activeTriggerId:e,activeTriggerElement:l,...r})}),a=uy.useCallback(l=>{i(l),l&&s(l)},[i,s]);return le(()=>{n&&o.update({activeTriggerElement:t.current,...r})},[n,o,t,...Object.values(r)]),{registerTrigger:a,isMountedByThisTrigger:n}}function Kce(e,t={}){let{closeOnActiveTriggerUnmount:o=!1}=t,r=uy.useRef(null),n=e.useState("open"),i=e.useState("triggerCount"),s=e.useState("activeTriggerId"),a=e.useState("activeTriggerElement");le(()=>{if(!n){r.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0);return}let l=e.context.triggerElements.size,u={};e.state.triggerCount!==l&&(u.triggerCount=l);let d=e.select("activeTriggerId"),f=null;if(d){let p=e.context.triggerElements.getById(d);if(p)r.current=d,p!==e.state.activeTriggerElement&&(u.activeTriggerElement=p);else{for(let[m,g]of e.context.triggerElements.entries())if(g===e.state.activeTriggerElement){u.activeTriggerId=m,u.activeTriggerElement=g,r.current=m;break}u.activeTriggerId===void 0&&(r.current===d?f=d:r.current=null)}}else r.current=null;if(!f&&!d&&l===1){let p=e.context.triggerElements.entries().next();if(!p.done){let[m,g]=p.value;u.activeTriggerId=m,u.activeTriggerElement=g,r.current=m}}(u.triggerCount!==void 0||u.activeTriggerId!==void 0||u.activeTriggerElement!==void 0)&&e.update(u),f&&o&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===f&&!e.context.triggerElements.getById(f)){let p=Ke(Te.none);e.setOpen(!1,p),p.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[n,e,i,s,a,o])}function qce(e,t,o){let{mounted:r,setMounted:n,transitionStatus:i}=Ai(e),s=t.useState("preventUnmountingOnClose"),a=e?!1:s;t.useSyncedValues({mounted:r,transitionStatus:i,preventUnmountingOnClose:a});let l=de(()=>{n(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),o?.(),t.context.onOpenChangeComplete?.(!1)});return $n({enabled:r&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:i}}function Zce(e,t){e.useSyncedValues(t),le(()=>()=>{e.update({activeTriggerProps:Ut,inactiveTriggerProps:Ut,popupProps:Ut})},[e])}var Vf=class{constructor(){this.idMap=new Map}add(t,o){this.idMap.set(t,o)}delete(t){this.idMap.delete(t)}hasElement(t){for(let o of this.idMap.values())if(o===t)return!0;return!1}hasMatchingElement(t){for(let o of this.idMap.values())if(t(o))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function Xce(){return new rd({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Vf,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Jce(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Xce(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Ut,inactiveTriggerProps:Ut,popupProps:Ut}}function eue(e,t,o=!1){return new rd({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:o,onOpenChange:void 0})}var wE=e=>e.triggerIdProp??e.activeTriggerId,EU=e=>e.openProp??e.open,Qce=e=>(e.popupElement?.id??e.floatingId)||void 0;function tue(e,t){return t!==void 0&&EU(e)&&wE(e)===t}function $Ge(e,t){return tue(e,t)?!0:t!==void 0&&EU(e)&&wE(e)==null&&e.triggerCount===1}var oue={open:EU,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:wE,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:Qce,isTriggerActive:(e,t)=>t!==void 0&&wE(e)===t,isOpenedByTrigger:(e,t)=>tue(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&wE(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>$Ge(e,t)?Qce(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};var TU=c(oe(),1),rue=c(_E(),1);function nue(e){let t=TU.useCallback(r=>e===void 0?At:e.subscribeStore(r),[e]),o=TU.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,rue.useSyncExternalStore)(t,o,()=>e?.serverStore)}function RU(e){let{open:t=!1,onOpenChange:o,elements:r={}}=e,n=Zm(),i=rg()!=null,s=eo(()=>new rd({open:t,transitionStatus:void 0,onOpenChange:o,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Vf,floatingId:n,syncOnly:!1,nested:i})).current;return le(()=>{let a={open:t,floatingId:n};r.reference!==void 0&&(a.referenceElement=r.reference,a.domReferenceElement=ct(r.reference)?r.reference:null),r.floating!==void 0&&(a.floatingElement=r.floating),s.update(a)},[t,n,r.reference,r.floating,s]),s.context.onOpenChange=o,s.context.nested=i,s}function iue(e){return YGe(e,e.rootContext)}function YGe(e,t){let{nodeId:o,externalTree:r}=e,n=t.useState("referenceElement"),i=t.useState("floatingElement"),s=t.useState("domReferenceElement"),a=t.useState("open"),l=t.useState("floatingId"),[u,d]=Vi.useState(null),[f,p]=Vi.useState(void 0),[m,g]=Vi.useState(void 0),h=Vi.useRef(null),b=yl(r),v=Vi.useMemo(()=>({reference:n,floating:i,domReference:s}),[n,i,s]),y=Ece({...e,elements:{...v,...u&&{reference:u}}}),_=ct(f)?f:null,w=m===void 0?t.state.floatingElement:m;t.useSyncedValue("referenceElement",f??null),t.useSyncedValue("domReferenceElement",f===void 0?s:_),t.useSyncedValue("floatingElement",w);let k=Vi.useCallback(I=>{let O=ct(I)?{getBoundingClientRect:()=>I.getBoundingClientRect(),getClientRects:()=>I.getClientRects(),contextElement:I}:I;d(O),y.refs.setReference(O)},[y.refs]),x=Vi.useCallback(I=>{(ct(I)||I===null)&&(h.current=I,p(I)),(ct(y.refs.reference.current)||y.refs.reference.current===null||I!==null&&!ct(I))&&y.refs.setReference(I)},[y.refs,p]),C=Vi.useCallback(I=>{g(I),y.refs.setFloating(I)},[y.refs]),E=Vi.useMemo(()=>({...y.refs,setReference:x,setFloating:C,setPositionReference:k,domReference:h}),[y.refs,x,C,k]),R=Vi.useMemo(()=>({...y.elements,domReference:s}),[y.elements,s]),S=Vi.useMemo(()=>({...y,dataRef:t.context.dataRef,open:a,onOpenChange:t.setOpen,events:t.context.events,floatingId:l,refs:E,elements:R,nodeId:o,rootStore:t}),[y,E,R,o,t,a,l]);return le(()=>{s&&(h.current=s)},[s]),le(()=>{t.context.dataRef.current.floatingContext=S;let I=b?.nodesRef.current.find(O=>O.id===o);I&&(I.context=S)}),Vi.useMemo(()=>({...y,context:S,refs:E,elements:R,rootStore:t}),[y,E,R,S,t])}var nd=c(oe(),1);var BU=mo.os.mac&&mo.engine.webkit;function IU(e,t={}){let{enabled:o=!0,delay:r}=t,n="rootStore"in e?e.rootStore:e,{events:i,dataRef:s}=n.context,a=nd.useRef(!1),l=nd.useRef(null),u=nd.useRef(!0),d=Fo();nd.useEffect(()=>{let p=n.select("domReferenceElement");if(!o)return;let m=St(p);function g(){let v=n.select("domReferenceElement");!n.select("open")&&Ct(v)&&v===wr(ot(v))&&(a.current=!0)}function h(){u.current=!0}function b(){u.current=!1}return Ni(ut(m,"blur",g),BU&&ut(m,"keydown",h,!0),BU&&ut(m,"pointerdown",b,!0))},[n,o]),nd.useEffect(()=>{if(!o)return;function p(m){if(m.reason===Te.triggerPress||m.reason===Te.escapeKey){let g=n.select("domReferenceElement");ct(g)&&(l.current=g,a.current=!0)}}return i.on("openchange",p),()=>{i.off("openchange",p)}},[i,o,n]);let f=nd.useMemo(()=>{function p(){a.current=!1,l.current=null}return{onMouseLeave(){p()},onFocus(m){let g=m.currentTarget;if(a.current){if(l.current===g)return;p()}let h=ko(m.nativeEvent);if(ct(h)){if(BU&&!m.relatedTarget){if(!u.current&&!ey(h))return}else if(!yle(h))return}let b=Jm(m.relatedTarget,n.context.triggerElements),{nativeEvent:v,currentTarget:y}=m,_=typeof r=="function"?r():r;if(n.select("open")&&b||_===0||_===void 0){n.setOpen(!0,Ke(Te.triggerFocus,v,y));return}d.start(_,()=>{a.current||n.setOpen(!0,Ke(Te.triggerFocus,v,y))})},onBlur(m){p();let g=m.relatedTarget,h=m.nativeEvent,b=ct(g)&&g.hasAttribute(Df("focus-guard"))&&g.getAttribute("data-type")==="outside";d.start(0,()=>{let v=n.select("domReferenceElement"),y=wr(ot(v));!g&&y===v||Ge(s.current.floatingContext?.refs.floating.current,y)||Ge(v,y)||b||Jm(g??y,n.context.triggerElements)||n.setOpen(!1,Ke(Te.triggerFocus,h))})}}},[s,r,n,d]);return nd.useMemo(()=>o?{reference:f,trigger:f}:{},[o,f])}var OU=c(oe(),1);var PU=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Mi,this.restTimeout=new Mi,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},qA=new WeakMap;function Fw(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&qA.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),qA.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function ZA(e,t){let{scopeElement:o,referenceElement:r,floatingElement:n}=t,i=qA.get(o);i&&i!==e&&Fw(i),Fw(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=o,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=n,qA.set(o,e),o.style.pointerEvents="none",r.style.pointerEvents="auto",n.style.pointerEvents="auto"}function zw(e){let t=e.context.dataRef.current,o=eo(()=>t.hoverInteractionState??PU.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=o),Ew(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function AU(e,t={}){let{enabled:o=!0,closeDelay:r=0,nodeId:n}=t,i="rootStore"in e?e.rootStore:e,s=i.useState("open"),a=i.useState("floatingElement"),l=i.useState("domReferenceElement"),{dataRef:u}=i.context,d=yl(),f=rg(),p=zw(i),m=Fo(),g=de(()=>RA(u.current.openEvent?.type,p.interactedInside)),h=de(()=>vle(u.current.openEvent?.type)),b=de(()=>{Fw(p)});le(()=>{s||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,b())},[s,p,b]),OU.useEffect(()=>b,[b]),le(()=>{if(o&&s&&p.handleCloseOptions?.blockPointerEvents&&h()&&ct(l)&&a){let v=l,y=a,_=ot(a),w=d?.nodesRef.current.find(E=>E.id===f)?.context?.elements.floating;w&&(w.style.pointerEvents="");let k=p.pointerEventsScopeElement!==y?p.pointerEventsScopeElement:null,x=w!==y?w:null,C=p.handleCloseOptions?.getScope?.()??k??x??v.closest("[data-rootownerid]")??_.body;return ZA(p,{scopeElement:C,referenceElement:v,floatingElement:y}),()=>{b()}}},[o,s,l,a,p,h,d,f,b]),OU.useEffect(()=>{if(!o)return;function v(){return!!(d&&f&&bl(d.nodesRef.current,f).length>0)}function y(E){let R=gl(r,"close",p.pointerType),S=()=>{i.setOpen(!1,Ke(Te.triggerHover,E)),d?.events.emit("floating.closed",E)};R?p.openChangeTimeout.start(R,S):(p.openChangeTimeout.clear(),S())}function _(E){let R=ko(E);if(!YW(R)){p.interactedInside=!1;return}p.interactedInside=R?.closest("[aria-haspopup]")!=null}function w(){p.openChangeTimeout.clear(),m.clear(),d?.events.off("floating.closed",x),b()}function k(E){if(v()&&d){d.events.on("floating.closed",x);return}if(Jm(E.relatedTarget,i.context.triggerElements))return;let R=u.current.floatingContext?.nodeId??n,S=E.relatedTarget;if(!(d&&R&&ct(S)&&bl(d.nodesRef.current,R,!1).some(O=>Ge(O.context?.elements.floating,S)))){if(p.handler){p.handler(E);return}b(),h()&&!g()&&y(E)}}function x(E){!d||!f||v()||m.start(0,()=>{d.events.off("floating.closed",x),i.setOpen(!1,Ke(Te.triggerHover,E)),d.events.emit("floating.closed",E)})}let C=a;return Ni(C&&ut(C,"mouseenter",w),C&&ut(C,"mouseleave",k),C&&ut(C,"pointerdown",_,!0),()=>{d?.events.off("floating.closed",x)})},[o,a,i,u,r,n,h,g,b,p,d,f,m])}var ig=c(oe(),1),sue=c(Pf(),1);var KGe={current:null};function MU(e,t={}){let{enabled:o=!0,delay:r=0,handleClose:n=null,mouseOnly:i=!1,restMs:s=0,move:a=!0,triggerElementRef:l=KGe,externalTree:u,isActiveTrigger:d=!0,getHandleCloseContext:f,isClosing:p,shouldOpen:m,guardStaleOpen:g=!1}=t,h="rootStore"in e?e.rootStore:e,{dataRef:b,events:v}=h.context,y=yl(u),_=zw(h),w=ig.useRef(!1),k=so(n),x=so(r),C=so(s),E=so(o),R=so(m),S=so(p),I=de(()=>RA(b.current.openEvent?.type,_.interactedInside)),O=de(()=>R.current?.()!==!1),A=de((H,N,M)=>{let V=h.context.triggerElements;if(V.hasElement(N))return!H||!Ge(H,N);if(!ct(M))return!1;let j=M;return V.hasMatchingElement(D=>Ge(D,j))&&(!H||!Ge(H,j))}),P=de(()=>{if(!_.handler)return;ot(h.select("domReferenceElement")).removeEventListener("mousemove",_.handler),_.handler=void 0}),L=de(()=>{Fw(_)});return d&&(_.handleCloseOptions=k.current?.__options),ig.useEffect(()=>P,[P]),ig.useEffect(()=>{if(!o)return;function H(N){N.open?w.current=!1:(w.current=N.reason===Te.triggerHover,P(),_.openChangeTimeout.clear(),_.restTimeout.clear(),_.blockMouseMove=!0,_.restTimeoutPending=!1)}return v.on("openchange",H),()=>{v.off("openchange",H)}},[o,v,_,P]),ig.useEffect(()=>{if(!o)return;function H(z,$=!0){let J=gl(x.current,"close",_.pointerType);J?_.openChangeTimeout.start(J,()=>{h.setOpen(!1,Ke(Te.triggerHover,z)),y?.events.emit("floating.closed",z)}):$&&(_.openChangeTimeout.clear(),h.setOpen(!1,Ke(Te.triggerHover,z)),y?.events.emit("floating.closed",z))}let N=l.current??(d?h.select("domReferenceElement"):null);if(!ct(N))return;function M(z){if(_.openChangeTimeout.clear(),_.blockMouseMove=!1,i&&!xa(_.pointerType))return;let $=KW(C.current),J=gl(x.current,"open",_.pointerType),Q=ko(z),W=z.currentTarget??null,X=h.select("domReferenceElement"),U=W;if(ct(Q)&&!h.context.triggerElements.hasElement(Q)){for(let ye of h.context.triggerElements.elements())if(Ge(ye,Q)){U=ye;break}}ct(W)&&ct(X)&&!h.context.triggerElements.hasElement(W)&&Ge(W,X)&&(U=X);let G=U==null?!1:A(X,U,Q),te=h.select("open"),re=S.current?.()??h.select("transitionStatus")==="ending",ae=!te&&re&&w.current,ie=!G&&ct(U)&&ct(X)&&Ge(X,U)&&ae,be=$>0&&!J,pe=G&&(te||ae)||ie,ke=!te||G;if(pe){O()&&h.setOpen(!0,Ke(Te.triggerHover,z,U));return}be||(J?_.openChangeTimeout.start(J,()=>{ke&&O()&&h.setOpen(!0,Ke(Te.triggerHover,z,U))}):ke&&O()&&h.setOpen(!0,Ke(Te.triggerHover,z,U)))}function V(z){if(I()){L();return}P();let $=h.select("domReferenceElement"),J=ot($);_.restTimeout.clear(),_.restTimeoutPending=!1;let Q=b.current.floatingContext??f?.();if(Jm(z.relatedTarget,h.context.triggerElements))return;if(k.current&&Q){h.select("open")||_.openChangeTimeout.clear();let X=l.current;_.handler=k.current({...Q,tree:y,x:z.clientX,y:z.clientY,onClose(){L(),P(),E.current&&!I()&&X===h.select("domReferenceElement")&&H(z,!0)}}),J.addEventListener("mousemove",_.handler),_.handler(z);return}(_.pointerType!=="touch"||!Ge(h.select("floatingElement"),z.relatedTarget))&&H(z)}function j(z){Ge(N,z.relatedTarget)||(_.openChangeTimeout.clear(),_.restTimeout.clear(),_.restTimeoutPending=!1)}let D=g?ut(N,"mouseout",j):void 0;return a?Ni(ut(N,"mousemove",M,{once:!0}),ut(N,"mouseenter",M),ut(N,"mouseleave",V),D):Ni(ut(N,"mouseenter",M),ut(N,"mouseleave",V),D)},[P,L,b,x,h,o,k,_,d,A,I,i,a,C,l,y,E,f,S,O,g]),ig.useMemo(()=>{if(!o)return;function H(N){_.pointerType=N.pointerType}return{onPointerDown:H,onPointerEnter:H,onMouseMove(N){let{nativeEvent:M}=N,V=N.currentTarget,j=h.select("domReferenceElement"),D=h.select("open"),z=A(j,V,N.target);if(i&&!xa(_.pointerType))return;if(D&&z&&_.handleCloseOptions?.blockPointerEvents){let Q=h.select("floatingElement");if(Q){let W=_.handleCloseOptions?.getScope?.()??V.ownerDocument.body;ZA(_,{scopeElement:W,referenceElement:V,floatingElement:Q})}}let $=KW(C.current);if(D&&!z||$===0||!z&&_.restTimeoutPending&&N.movementX**2+N.movementY**2<2)return;_.restTimeout.clear();function J(){if(_.restTimeoutPending=!1,I())return;let Q=h.select("open");!_.blockMouseMove&&(!Q||z)&&O()&&h.setOpen(!0,Ke(Te.triggerHover,M,V))}_.pointerType==="touch"?sue.flushSync(()=>{J()}):z&&D?J():(_.restTimeoutPending=!0,_.restTimeout.start($,J))}}},[o,_,I,A,i,h,C,O])}var pi=c(oe(),1);var qGe="Escape";function aue(e){return mo.engine.webkit&&e.movementX===0&&e.movementY===0}function QA(e,t,o){switch(e){case"vertical":return t;case"horizontal":return o;default:return t||o}}function XA(e,t){return QA(t,e===$W||e===EA,e===sE||e===aE)}function NU(e,t,o){return QA(t,e===EA,o?e===sE:e===aE)||e==="Enter"||e===" "||e===""}function ZGe(e,t,o){return QA(t,o?e===sE:e===aE,e===EA)}function XGe(e,t,o,r){let n=o?e===aE:e===sE,i=e===$W;return t==="both"||t==="horizontal"&&r?e===qGe:QA(t,n,i)}function LU(e,t){let{listRef:o,activeIndex:r,onNavigate:n=()=>{},enabled:i=!0,selectedIndex:s=null,allowEscape:a=!1,loopFocus:l=!1,nested:u=!1,rtl:d=!1,virtual:f=!1,focusItemOnOpen:p="auto",focusItemOnHover:m=!0,openOnArrowKeyDown:g=!0,disabledIndices:h=void 0,orientation:b="vertical",parentOrientation:v,id:y,resetOnPointerLeave:_=!0,externalTree:w,grid:k}=t,x=k!=null,C="rootStore"in e?e.rootStore:e,E=C.useState("open"),R=C.useState("floatingElement"),S=C.useState("domReferenceElement"),I=C.context.dataRef,O=ty(R),A=lE(S),P=so(O),L=rg(),H=yl(w),N=pi.useRef(p),M=pi.useRef(s??-1),V=pi.useRef(null),j=pi.useRef(!0),D=de(ne=>{n(M.current===-1?null:M.current,ne)}),z=pi.useRef(!!R),$=pi.useRef(E),J=pi.useRef(!1),Q=pi.useRef(!1),W=pi.useRef(null),X=so(h),U=so(E),G=so(s),te=so(_),re=ss(),ae=ss(),ie=de(()=>{function ne(Ae){f?H?.events.emit("virtualfocus",Ae):W.current=Lw(Ae,{sync:J.current,preventScroll:!0})}let se=o.current[M.current],Ee=Q.current;se&&ne(se),(J.current?Ae=>Ae():Ae=>re.request(Ae))(()=>{let Ae=o.current[M.current]||se;if(!Ae)return;se||ne(Ae),_e&&(Ee||!j.current)&&Ae.scrollIntoView?.({block:"nearest",inline:"nearest"})})});le(()=>{I.current.orientation=b},[I,b]),le(()=>{i&&(E&&R?(M.current=s??-1,N.current&&s!=null&&(Q.current=!0,D())):z.current&&(M.current=-1,D()))},[i,E,R,s,D]),le(()=>{if(i){if(!E){J.current=!1;return}if(R)if(r==null){if(J.current=!1,G.current!=null)return;if(z.current&&(M.current=-1,ie()),(!$.current||!z.current)&&N.current&&(V.current!=null||N.current===!0&&V.current==null)){let ne=0,se=()=>{o.current[0]==null?(ne<2&&(ne?he=>ae.request(he):queueMicrotask)(se),ne+=1):(M.current=V.current==null||NU(V.current,b,d)||u?oy(o):Nw(o),V.current=null,D())};se()}}else og(o.current,r)||(M.current=r,ie(),Q.current=!1)}},[i,E,R,r,G,u,o,b,d,D,ie,ae]),le(()=>{if(!i||R||!H||f||!z.current)return;let ne=H.nodesRef.current,se=ne.find(Ae=>Ae.id===L)?.context?.elements.floating,Ee=wr(ot(S??se??null)),he=ne.some(Ae=>Ae.context&&Ge(Ae.context.elements.floating,Ee));se&&!he&&j.current&&se.focus({preventScroll:!0})},[i,R,S,H,L,f]),le(()=>{$.current=E,z.current=!!R}),le(()=>{E||(V.current=null,N.current=p)},[E,p]);let be=r!=null,pe=de(ne=>{if(!U.current)return;let se=o.current.indexOf(ne.currentTarget);se!==-1&&(M.current!==se||r!==se)&&(M.current=se,D(ne))}),ke=de(()=>v??H?.nodesRef.current.find(ne=>ne.id===L)?.context?.dataRef?.current.orientation),ye=de(()=>oy(o,X.current)),Pe=de(ne=>{if(j.current=!1,J.current=!0,ne.which===229||!U.current&&ne.currentTarget===P.current)return;if(u&&XGe(ne.key,b,d,x)){XA(ne.key,ke())||Fs(ne),C.setOpen(!1,Ke(Te.listNavigation,ne.nativeEvent)),Ct(S)&&(f?H?.events.emit("virtualfocus",S):S.focus());return}let se=M.current,Ee=oy(o,h),he=Nw(o,h);if(A||(ne.key==="Home"&&(Fs(ne),M.current=Ee,D(ne)),ne.key==="End"&&(Fs(ne),M.current=he,D(ne))),k!=null){let Ae=k(ne,M.current,o,b,l,d,h,Ee,he);if(Ae!=null&&(M.current=Ae,D(ne)),b==="both")return}if(XA(ne.key,b)){if(Fs(ne),E&&!f&&wr(ne.currentTarget.ownerDocument)===ne.currentTarget){M.current=NU(ne.key,b,d)?Ee:he,D(ne);return}NU(ne.key,b,d)?l?se>=he?a&&se!==o.current.length?M.current=-1:(J.current=!1,M.current=Ee):M.current=hl(o.current,{startingIndex:se,disabledIndices:h}):M.current=Math.min(he,hl(o.current,{startingIndex:se,disabledIndices:h})):l?se<=Ee?a&&se!==-1?M.current=o.current.length:(J.current=!1,M.current=he):M.current=hl(o.current,{startingIndex:se,decrement:!0,disabledIndices:h}):M.current=Math.max(Ee,hl(o.current,{startingIndex:se,decrement:!0,disabledIndices:h})),og(o.current,M.current)&&(M.current=-1),D(ne)}}),_e=pi.useMemo(()=>({onFocus(se){J.current=!0,pe(se)},onClick:({currentTarget:se})=>se.focus({preventScroll:!0}),onMouseMove(se){aue(se)||(J.current=!0,Q.current=!1,m&&pe(se))},onPointerLeave(se){if(!U.current||!j.current||se.pointerType==="touch")return;J.current=!0;let Ee=se.relatedTarget;if(!(!m||o.current.includes(Ee))&&te.current&&(W.current?.(),W.current=null,M.current=-1,D(se),!f)){let he=P.current,Ae=wr(ot(he));he&&Ge(he,Ae)&&he.focus({preventScroll:!0})}}}),[pe,U,P,m,o,D,te,f]),ve=pi.useMemo(()=>f&&E&&be&&{"aria-activedescendant":`$y}-$r}`},[f,E,be,y,r]),Se=pi.useMemo(()=>({"aria-orientation":b==="both"?void 0:b,...A?{}:ve,onKeyDown(ne){if(ne.key==="Tab"&&ne.shiftKey&&E&&!f){let se=ko(ne.nativeEvent);if(se&&!Ge(P.current,se))return;Fs(ne),C.setOpen(!1,Ke(Te.focusOut,ne.nativeEvent)),Ct(S)&&S.focus();return}Pe(ne)},onPointerMove(ne){aue(ne)||(j.current=!0)}}),[ve,Pe,P,b,A,C,E,f,S]),fe=pi.useMemo(()=>{function ne(he){C.setOpen(!0,Ke(Te.listNavigation,he.nativeEvent,he.currentTarget))}function se(he){p==="auto"&&Ow(he.nativeEvent)&&(N.current=!f)}function Ee(he){N.current=p,p==="auto"&&Aw(he.nativeEvent)&&(N.current=!0)}return{onKeyDown(he){let Ae=C.select("open");j.current=!1;let et=he.key.startsWith("Arrow"),Je=ZGe(he.key,ke(),d),_t=XA(he.key,b),Et=(u?Je:_t)||he.key==="Enter"||he.key.trim()==="";if(f&&Ae)return Pe(he);if(!(!Ae&&!g&&et)){if(Et){let mt=XA(he.key,ke());V.current=u&&mt?null:he.key}if(u){Je&&(Fs(he),Ae?(M.current=ye(),D(he)):ne(he));return}_t&&(G.current!=null&&(M.current=G.current),Fs(he),!Ae&&g?ne(he):Pe(he),Ae&&D(he))}},onFocus(he){C.select("open")&&!f&&(M.current=-1,D(he))},onPointerDown:Ee,onPointerEnter:Ee,onMouseDown:se,onClick:se}},[Pe,p,ye,u,D,C,g,b,ke,d,G,f]),Ce=pi.useMemo(()=>({...ve,...fe}),[ve,fe]);return pi.useMemo(()=>i?{reference:Ce,floating:Se,item:_e,trigger:fe}:{},[i,Ce,Se,fe,_e])}var dy=c(oe(),1);function DU(e,t){let{listRef:o,elementsRef:r,activeIndex:n,onMatch:i,disabledIndices:s,onTyping:a,enabled:l=!0,resetMs:u=750,selectedIndex:d=null}=t,f="rootStore"in e?e.rootStore:e,p=f.useState("open"),m=Fo(),g=dy.useRef(""),h=dy.useRef(d??n??-1),b=dy.useRef(null),v=de(w=>{function k(P){return r?.current[P]}function x(P){let L=k(P);return L&&!ny(L)||L?.matches(":disabled")?!1:s==null||!ry(ml,P,s)}function C(P,L,H=0){if(P.length===0)return-1;let N=(H%P.length+P.length)%P.length,M=L.toLowerCase();for(let V=0;V<P.length;V+=1){let j=(N+V)%P.length;if(!(!P[j]?.toLowerCase().startsWith(M)||!x(j)))return j}return-1}let E=o.current;if(g.current.length>0&&w.key===" "&&(Fs(w),a?.(!0)),g.current.length>0&&g.current[0]!==" "&&C(E,g.current)===-1&&w.key!==" "&&a?.(!1),E==null||w.key.length!==1||w.ctrlKey||w.metaKey||w.altKey)return;p&&w.key!==" "&&(Fs(w),a?.(!0));let R=g.current==="";R&&(h.current=d??n??-1),E.every((P,L)=>P&&x(L)?P[0]?.toLowerCase()!==P[1]?.toLowerCase():!0)&&g.current===w.key&&(g.current="",h.current=b.current),g.current+=w.key,m.start(u,()=>{g.current="",h.current=b.current,a?.(!1)});let O=((R?d??n??-1:h.current)??0)+1,A=C(E,g.current,O);A!==-1?(i?.(A),b.current=A):w.key!==" "&&(g.current="",a?.(!1))}),y=de(w=>{let k=w.relatedTarget,x=f.select("domReferenceElement"),C=f.select("floatingElement");Ge(x,k)||Ge(C,k)||(m.clear(),g.current="",h.current=b.current,a?.(!1))});le(()=>{!p&&d!==null||(m.clear(),b.current=null,g.current!==""&&(g.current=""))},[p,d,m]);let _=dy.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]);return dy.useMemo(()=>l?{reference:_,floating:_}:{},[l,_])}var lue=.1,QGe=lue*lue,Co=.5;function JA(e,t,o,r,n,i){return r>=t!=i>=t&&e<=(n-o)*(t-r)/(i-r)+o}function eM(e,t,o,r,n,i,s,a,l,u){let d=!1;return JA(e,t,o,r,n,i)&&(d=!d),JA(e,t,n,i,s,a)&&(d=!d),JA(e,t,s,a,l,u)&&(d=!d),JA(e,t,l,u,o,r)&&(d=!d),d}function JGe(e,t,o){return e>=o.x&&e<=o.x+o.width&&t>=o.y&&t<=o.y+o.height}function tM(e,t,o,r,n,i){let s=Math.min(o,n),a=Math.max(o,n),l=Math.min(r,i),u=Math.max(r,i);return e>=s&&e<=a&&t>=l&&t<=u}function VU(e={}){let{blockPointerEvents:t=!1}=e,o=new Mi,r=({x:n,y:i,placement:s,elements:a,onClose:l,nodeId:u,tree:d})=>{let f=s?.split("-")[0],p=!1,m=null,g=null,h=typeof performance<"u"?performance.now():0;function b(y,_){let w=performance.now(),k=w-h;if(m===null||g===null||k===0)return m=y,g=_,h=w,!1;let x=y-m,C=_-g,E=x*x+C*C,R=k*k*QGe;return m=y,g=_,h=w,E<R}function v(){o.clear(),l()}return function(_){o.clear();let w=a.domReference,k=a.floating;if(!w||!k||f==null||n==null||i==null)return;let{clientX:x,clientY:C}=_,E=ko(_),R=_.type==="mouseleave",S=Ge(k,E),I=Ge(w,E);if(S&&(p=!0,!R))return;if(I&&(p=!1,!R)){p=!0;return}if(R&&ct(_.relatedTarget)&&Ge(k,_.relatedTarget))return;function O(){return!!(d&&bl(d.nodesRef.current,u).length>0)}function A(){O()||v()}if(O())return;let P=w.getBoundingClientRect(),L=k.getBoundingClientRect(),H=n>L.right-L.width/2,N=i>L.bottom-L.height/2,M=L.width>P.width,V=L.height>P.height,j=(M?P:L).left,D=(M?P:L).right,z=(V?P:L).top,$=(V?P:L).bottom;if(f==="top"&&i>=P.bottom-1||f==="bottom"&&i<=P.top+1||f==="left"&&n>=P.right-1||f==="right"&&n<=P.left+1){A();return}let J=!1;switch(f){case"top":J=tM(x,C,j,P.top+1,D,L.bottom-1);break;case"bottom":J=tM(x,C,j,L.top+1,D,P.bottom-1);break;case"left":J=tM(x,C,L.right-1,$,P.left+1,z);break;case"right":J=tM(x,C,P.right-1,$,L.left+1,z);break;default:}if(J)return;if(p&&!JGe(x,C,P)){A();return}if(!R&&b(x,C)){A();return}let Q=!1;switch(f){case"top":{let W=M?Co/2:Co*4,X=M||H?n+W:n-W,U=M?n-W:H?n+W:n-W,G=i+Co+1,te=H||M?L.bottom-Co:L.top,re=H?M?L.bottom-Co:L.top:L.bottom-Co;Q=eM(x,C,X,G,U,G,L.left,te,L.right,re);break}case"bottom":{let W=M?Co/2:Co*4,X=M||H?n+W:n-W,U=M?n-W:H?n+W:n-W,G=i-Co,te=H||M?L.top+Co:L.bottom,re=H?M?L.top+Co:L.bottom:L.top+Co;Q=eM(x,C,X,G,U,G,L.left,te,L.right,re);break}case"left":{let W=V?Co/2:Co*4,X=V||N?i+W:i-W,U=V?i-W:N?i+W:i-W,G=n+Co+1,te=N||V?L.right-Co:L.left,re=N?V?L.right-Co:L.left:L.right-Co;Q=eM(x,C,te,L.top,re,L.bottom,G,X,G,U);break}case"right":{let W=V?Co/2:Co*4,X=V||N?i+W:i-W,U=V?i-W:N?i+W:i-W,G=n-Co,te=N||V?L.left+Co:L.right,re=N?V?L.left+Co:L.right:L.left+Co;Q=eM(x,C,G,X,G,U,te,L.top,re,L.bottom);break}default:}Q?p||o.start(40,A):A()}};return r.__options={...e,blockPointerEvents:t},r}var oM=class extends od{setState(t){}update(t){}set(t,o){}notifyAll(){}};var M2t=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Rw.startingStyle]="startingStyle",e[e.endingStyle=Rw.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({});var e$e={"data-popup-open":""},t$e={"data-popup-open":"","data-pressed":""},o$e={"data-open":""},r$e={"data-closed":""},n$e={"data-anchor-hidden":""},rM={open(e){return e?e$e:null}},cue={open(e){return e?t$e:null}},Ff={open(e){return e?o$e:r$e},anchorHidden(e){return e?n$e:null}},nM={...Ff,...Gn};var sM="ArrowUp",aM="ArrowDown",lM="ArrowLeft",cM="ArrowRight",uM="Home",dM="End";var fM=new Set([sM,aM,lM,cM,uM,dM]),i$e="Shift",due=[i$e,"Control","Alt","Meta"];function s$e(e){return Ct(e)&&e.tagName==="INPUT"}function FU(e){return!!(s$e(e)&&e.selectionStart!=null||Ct(e)&&e.tagName==="TEXTAREA")}function zU(e,t,o,r){if(!e||!t||!t.scrollTo)return;let n=e.scrollLeft,i=e.scrollTop,s=e.clientWidth<e.scrollWidth,a=e.clientHeight<e.scrollHeight;if(s&&r!=="vertical"){let l=uue(e,t,"left"),u=iM(e),d=iM(t);o==="ltr"&&(l+t.offsetWidth+d.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?n=l+t.offsetWidth+d.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:l-d.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(n=l-d.scrollMarginLeft-u.scrollPaddingLeft)),o==="rtl"&&(l-d.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft?n=l-d.scrollMarginLeft-u.scrollPaddingLeft:l+t.offsetWidth+d.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(n=l+t.offsetWidth+d.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(a&&r!=="horizontal"){let l=uue(e,t,"top"),u=iM(e),d=iM(t);l-d.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?i=l-d.scrollMarginTop-u.scrollPaddingTop:l+t.offsetHeight+d.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(i=l+t.offsetHeight+d.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:n,top:i,behavior:"auto"})}function uue(e,t,o){let r=o==="left"?"offsetLeft":"offsetTop",n=0;for(;t.offsetParent&&(n+=t[r],t.offsetParent!==e);)t=t.offsetParent;return n}function iM(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function jw(e){return Cw(19)?e:e?"true":void 0}var fue=c(oe(),1),pue=c(T(),1),mue=fue.forwardRef(function(t,o){let{cutout:r,...n}=t,i;if(r){let s=r.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,$s.left}px $s.top}px,$s.left}px $s.bottom}px,$s.right}px $s.bottom}px,$s.right}px $s.top}px,$s.left}px $s.top}px)`}return(0,pue.jsx)("div",{ref:o,role:"presentation","data-base-ui-inert":"",...n,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:i}})});var xE=c(oe(),1);var kE=c(oe(),1);function gue(e){let t=kE.useRef(""),o=kE.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:kE.useCallback(n=>{if(n.detail===0){e(n,"keyboard");return}"pointerType"in n?e(n,n.pointerType):e(n,t.current),t.current=""},[e]),onPointerDown:o}}var hue=c(oe(),1);function pM(e,t){let o=hue.useRef(e),r=de(t);le(()=>{o.current!==e&&r(o.current),o.current=e},[e,r])}function a$e(e,t){let o=de((i,s)=>{(typeof e=="function"?e():e)||t(s||(mo.os.ios?"touch":""))}),{onClick:r,onPointerDown:n}=gue(o);return xE.useMemo(()=>({onClick:r,onPointerDown:n}),[r,n])}function bue(e){let[t,o]=xE.useState(null),r=a$e(e,o);return pM(e,n=>{n&&!e&&o(null)}),xE.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var yue=c(oe(),1);function vue(e){let t=yue.useRef(!0);t.current&&(t.current=!1,e())}var _ue=(e,t)=>Object.is(e,t);function zf(e,t,o){return e==null||t==null?Object.is(e,t):o(e,t)}function Hw(e,t,o){return!e||e.length===0?-1:e.findIndex(r=>r===void 0?!1:zf(r,t,o))}function wue(e,t,o){return e.filter(r=>!zf(t,r,o))}var kue=c(oe(),1);function mM(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}var xue=c(T(),1);function Sue(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function Cue(e){if(!Array.isArray(e))return e!=null&&"null"in e;let t=e;if(Sue(t)){for(let o of t)for(let r of o.items)if(r&&r.value==null&&r.label!=null)return!0;return!1}for(let o of t)if(o&&o.value==null&&o.label!=null)return!0;return!1}function jU(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return mM(e)}function sg(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?mM(e.value):mM(e)}function HU(e,t,o){function r(){return jU(e,o)}if(o&&e!=null)return o(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=Sue(n)?n.flatMap(s=>s.items):n;if(e==null||typeof e!="object"){let s=i.find(a=>a.value===e);return s&&s.label!=null?s.label:r()}if("value"in e){let s=i.find(a=>a&&a.value===e.value);if(s&&s.label!=null)return s.label}}return r()}function Eue(e,t,o){return e.reduce((r,n,i)=>(i>0&&r.push(", "),r.push((0,xue.jsx)(kue.Fragment,{children:HU(n,t,o)},i)),r),[])}var gM=c(oe(),1);var ag={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},l$e={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Tue={disabled:!1,...l$e},Fi={valid(e){return e===null?null:e?{"data-valid":""}:{"data-invalid":""}}};var c$e={invalid:void 0,name:void 0,validityData:{state:ag,errors:[],error:"",value:"",initialValue:null},setValidityData:At,disabled:void 0,setTouched:At,setDirty:At,setFilled:At,setFocused:At,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:Tue,registerFieldControl:At,validation:{getValidationProps:(e,t=Ut)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:At,getInputControl:()=>null,commit:async()=>{},change:At}},WU=gM.createContext(c$e);function bn(e=!0){let t=gM.useContext(WU);if(t.setValidityData===At&&!e)throw new Error(Wt(28));return t}function hM(e,t,o,r,n=!0,i){let{registerFieldControl:s}=bn(),a=eo(()=>Symbol());le(()=>{let l=a.current;if(!n){s(l,void 0);return}s(l,{controlRef:e,getValue:r,id:t,name:i,value:o})},[e,n,r,t,i,s,a,o]),le(()=>{let l=a.current;return()=>{s(l,void 0)}},[s,a])}var bM=c(oe(),1);var u$e=bM.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:At,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function vl(){return bM.useContext(u$e)}var SE=c(oe(),1);var yM=c(oe(),1);var UU=yM.createContext({controlId:void 0,registerControlId:At,labelId:void 0,setLabelId:At,messageIds:[],setMessageIds:At,getDescriptionProps:e=>e});function Yn(){return yM.useContext(UU)}function Ww(e={}){let{id:t,implicit:o=!1,controlRef:r}=e,{controlId:n,registerControlId:i}=Yn(),s=gn(t),a=o?n:void 0,l=eo(()=>Symbol()),u=SE.useRef(!1),d=SE.useRef(t!=null),f=de(()=>{!u.current||i===At||(u.current=!1,i(l.current,void 0))});return le(()=>{if(i===At)return;let p;if(o){let m=r?.current;ct(m)&&m.closest("label")!=null?p=t??null:p=a??s}else if(t!=null)d.current=!0,p=t;else if(d.current)p=s;else{f();return}if(p===void 0){f();return}u.current=!0,i(l.current,p)},[t,r,a,i,o,s,l,f]),SE.useEffect(()=>f,[f]),n??s}function Rue(e,t,o=(r,n)=>r===n){return e.length===t.length&&e.every((r,n)=>o(r,t[n]))}var vM=c(oe(),1),GU=vM.createContext(void 0);function id(){return vM.useContext(GU)?.direction??"ltr"}var _M=5;function Bue(e,t){let o=d$e(t);return e.clientX>=o.left-_M&&e.clientX<=o.right+_M&&e.clientY>=o.top-_M&&e.clientY<=o.bottom+_M}function d$e(e){let t=e.getBoundingClientRect(),o=St(e);if(mo.env.jsdom)return t;let r=o.getComputedStyle(e,"::before"),n=o.getComputedStyle(e,"::after");if(!(r.content!=="none"||n.content!=="none"))return t;let s=parseFloat(r.width)||0,a=parseFloat(r.height)||0,l=parseFloat(n.width)||0,u=parseFloat(n.height)||0,d=Math.max(t.width,s,l),f=Math.max(t.height,a,u),p=d-t.width,m=f-t.height;return{left:t.left-p/2,right:t.right+p/2,top:t.top-m/2,bottom:t.bottom+m/2}}function Iue(e){return e==null?void 0:`$e}-label`}function Pue(e,t){return e??t}var Ca=c(oe(),1);var f$e=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:d=0,offsetParent:f="real"}=td(e,t)||{};if(u==null)return{};let p=MA(d),m={x:o,y:r},g=fE(n),h=dE(g),b=await s.getDimensions(u),v=g==="y",y=v?"top":"left",_=v?"bottom":"right",w=v?"clientHeight":"clientWidth",k=i.reference[h]+i.reference[g]-m[g]-i.floating[h],x=m[g]-i.reference[g],C=f==="real"?await s.getOffsetParent?.(u):a.floating,E=a.floating[w]||i.floating[h];(!E||!await s.isElement?.(C))&&(E=a.floating[w]||i.floating[h]);let R=k/2-x/2,S=E/2-b[h]/2-1,I=Math.min(p[y],S),O=Math.min(p[_],S),A=I,P=E-b[h]-O,L=E/2-b[h]/2+R,H=OA(A,L,P),N=!l.arrow&&Ac(n)!=null&&L!==H&&i.reference[h]/2-(L<A?I:O)-b[h]/2<0,M=N?L<A?L-A:L-P:0;return{[g]:m[g]+M,data:{[g]:H,centerOffset:L-H-M,...N&&{alignmentOffset:M}},reset:N}}}),Oue=(e,t)=>({...f$e(e),options:[e,t]});var Aue={name:"hide",async fn(e){let{width:t,height:o,x:r,y:n}=e.rects.reference,i=t===0&&o===0&&r===0&&n===0,s=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:s.top-o>=0||s.right-t>=0||s.bottom-o>=0||s.left-t>=0||i}}}};var Uw={sideX:"left",sideY:"top"};var Mue="--available-width",Nue="--available-height";function Vue(e,t,o){let r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?o?"inline-start":"inline-end":"right",bottom:"bottom",left:r?o?"inline-end":"inline-start":"left"}[t]}function Lue(e,t,o){let{rects:r,placement:n}=e;return{side:Vue(t,Li(n),o),align:Ac(n)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function wM(e){return p$e(e,iue)}function p$e(e,t){let{anchor:o,positionMethod:r="absolute",side:n="bottom",sideOffset:i=0,align:s="center",alignOffset:a=0,collisionBoundary:l,collisionPadding:u=5,sticky:d=!1,arrowPadding:f=5,disableAnchorTracking:p=!1,inline:m,keepMounted:g=!1,floatingRootContext:h,mounted:b,collisionAvoidance:v,shift:y,nodeId:_,adaptiveOrigin:w,lazyFlip:k=!1,externalTree:x}=e,[C,E]=Ca.useState(null);!b&&C!==null&&E(null);let R=v.side||"flip",S=v.align||"flip",I=v.fallbackAxisSide||"end",O=y?.crossAxis??!1,A=y?.rootBoundary,P=typeof o=="function"?o:void 0,L=de(P),H=P?L:o,N=so(o),M=so(b),j=id()==="rtl",D=C||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":j?"left":"right","inline-start":j?"right":"left"}[n],z=s==="center"?D:`$D}-$s}`,$=u;typeof $=="number"?$={top:$,right:$,bottom:$,left:$}:$&&($={top:$.top||0,right:$.right||0,bottom:$.bottom||0,left:$.left||0});let J=1,Q=n==="bottom"?J:0,W=n==="top"?J:0,X=n==="right"?J:0,U=n==="left"?J:0,G={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:$},te=Ca.useRef(null),re=so(i),ae=so(a),ie=typeof i!="function"?i:0,be=typeof a!="function"?a:0,pe=[];m&&pe.push(m),pe.push(hU(ge=>{let Re=Lue(ge,n,j),Ie=typeof re.current=="function"?re.current(Re):re.current,at=typeof ae.current=="function"?ae.current(Re):ae.current;return{mainAxis:Ie,crossAxis:at,alignmentAxis:at}},[ie,be,j,n]));let ke=S==="none"&&R!=="shift",ye=!ke&&(d||O||R==="shift"),Pe=R==="none"?null:vU({...G,padding:{top:$.top+J+Q,right:$.right+J+U,bottom:$.bottom+J+W,left:$.left+J+X},mainAxis:!O&&R==="flip",crossAxis:S==="flip"?"alignment":!1,fallbackAxisSideDirection:I}),_e=ke?null:bU({...G,rootBoundary:A,mainAxis:S!=="none",crossAxis:ye,limiter:d||O?void 0:yU(ge=>{if(!te.current)return{};let{width:Re,height:Ie}=te.current.getBoundingClientRect(),at=zs(Li(ge.placement)),Qe=at==="y"?Re:Ie,po=at==="y"?$.left+$.right:$.top+$.bottom;return{offset:Qe/2+po/2}})},[G,d,O,A,$,S]);R==="shift"||S==="shift"||s==="center"?pe.push(_e,Pe):pe.push(Pe,_e),pe.push(_U({...G,apply({elements:{floating:ge},availableWidth:Re,availableHeight:Ie,rects:at}){if(!M.current)return;let Qe=ge.style;Qe.setProperty(Mue,`$Re}px`),Qe.setProperty(Nue,`$Ie}px`);let po=St(ge).devicePixelRatio||1,{x:ro,y:vo,width:Kt,height:_o}=at.reference,En=(Math.round((ro+Kt)*po)-Math.round(ro*po))/po,it=(Math.round((vo+_o)*po)-Math.round(vo*po))/po;Qe.setProperty("--anchor-width",`$En}px`),Qe.setProperty("--anchor-height",`$it}px`)}}),Oue(ge=>({element:te.current||ot(ge.elements.floating).createElement("div"),padding:f,offsetParent:"floating"}),[f]),{name:"transformOrigin",fn(ge){let{elements:Re,middlewareData:Ie,placement:at,rects:Qe,y:po}=ge,ro=Li(at),vo=zs(ro),Kt=te.current,_o=Ie.arrow?.x||0,En=Ie.arrow?.y||0,it=Kt?.clientWidth||0,Vt=Kt?.clientHeight||0,Pr=_o+it/2,gr=En+Vt/2,Gr=Math.abs(Ie.shift?.y||0),Or=Qe.reference.height/2,pn=typeof i=="function"?i(Lue(ge,n,j)):i,Pi=Gr>pn,Be={top:`$Pr}px calc(100% + $pn}px)`,bottom:`$Pr}px ${-pn}px`,left:`calc(100% + $pn}px) $gr}px`,right:`${-pn}px $gr}px`}[ro],Ht=`$Pr}px $Qe.reference.y+Or-po}px`;return Re.floating.style.setProperty("--transform-origin",ye&&vo==="y"&&Pi?Ht:Be),{}}},Aue,w),le(()=>{!b&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[b,h]);let ve=Ca.useMemo(()=>({elementResize:!p&&typeof ResizeObserver<"u",layoutShift:!p&&typeof IntersectionObserver<"u"}),[p]),{refs:Se,elements:fe,x:Ce,y:ne,middlewareData:se,update:Ee,placement:he,context:Ae,isPositioned:et,floatingStyles:Je}=t({rootContext:h,open:g?b:void 0,placement:z,middleware:pe,strategy:r,whileElementsMounted:g?void 0:(...ge)=>vE(...ge,ve),nodeId:_,externalTree:x}),{sideX:_t,sideY:Et}=se.adaptiveOrigin||Uw,mt=et?r:"fixed",oo=Ca.useMemo(()=>{let ge;return et?w?ge={position:mt,[_t]:Ce,[Et]:ne}:ge={...Je,position:mt}:ge={position:mt,top:0,left:0},ge[Mue]="100vw",ge[Nue]="100vh",et||(ge.opacity=0),ge},[w,mt,_t,Ce,Et,ne,Je,et]),Tt=Ca.useRef(null);le(()=>{if(!b)return;let ge=N.current,Re=typeof ge=="function"?ge():ge,at=(Due(Re)?Re.current:Re)||null||null;at!==Tt.current&&(Se.setPositionReference(at),Tt.current=at)},[b,Se,H,N]),Ca.useEffect(()=>{if(!b)return;let ge=N.current;typeof ge!="function"&&Due(ge)&&ge.current!==Tt.current&&(Se.setPositionReference(ge.current),Tt.current=ge.current)},[b,Se,H,N]),Ca.useEffect(()=>{if(g&&b&&fe.reference&&fe.floating)return vE(fe.reference,fe.floating,Ee,ve)},[g,b,fe,Ee,ve]);let Rt=Li(he),Bt=Vue(n,Rt,j),gt=Ac(he)||"center",He=!!se.hide?.referenceHidden;le(()=>{k&&b&&et&&Rt!==D&&E(Rt)},[k,b,et,Rt,D]);let we=Ca.useMemo(()=>({position:"absolute",top:se.arrow?.y,left:se.arrow?.x}),[se.arrow]),Me=se.arrow?.centerOffset!==0;return Ca.useMemo(()=>({positionerStyles:oo,arrowStyles:we,arrowRef:te,arrowUncentered:Me,side:Bt,align:gt,physicalSide:Rt,anchorHidden:He,refs:Se,context:Ae,isPositioned:et,update:Ee}),[oo,we,te,Me,Bt,gt,Rt,He,Se,Ae,et,Ee])}function Due(e){return e!=null&&"current"in e}function Gw(e){return e==="starting"?Wle:Ut}function kM(e,t,{styles:o,transitionStatus:r,props:n,refs:i,hidden:s,inert:a=!1}){let l={...o};return a&&(l.pointerEvents="none"),De("div",e,{state:t,ref:i,props:[{role:"presentation",hidden:s,style:l},Gw(r),n],stateAttributesMapping:Ff})}var Fue=c(oe(),1);var m$e=20;function zue(e,t,o,r){let[n,i]=Fue.useState(!1);le(()=>{if(!e||!t||o==null){i(!1);return}let s=ot(o).documentElement.clientWidth,a=o.offsetWidth;i(s>0&&a>0&&a>=s-m$e)},[e,t,o]),mle(e&&(!t||n),r)}var jue=c(oe(),1);var Hue=jue.forwardRef(function(t,o){let{className:r,render:n,orientation:i="horizontal",style:s,...a}=t;return De("div",t,{state:{orientation:i},ref:o,props:[{role:"presentation"},a]})});var Wue=c(oe(),1);var $U=Wue.forwardRef(function(t,o){let{render:r,className:n,disabled:i=!1,focusableWhenDisabled:s=!1,nativeButton:a=!0,style:l,...u}=t,{getButtonProps:d,buttonRef:f}=Ic({disabled:i,focusableWhenDisabled:s,native:a});return De("button",t,{state:{disabled:i},ref:[o,f],props:[u,d]})});var xM=c(oe(),1),YU=xM.createContext({disabled:!1});function SM(){return xM.useContext(YU)}var lg=c(oe(),1);function fy(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var KU=Object.keys(ag);function g$e(e,t){return e.matches(":disabled")?!1:!t||e.form===t?!0:e.form===null&&!e.hasAttribute("form")}function Uue(e,t){let o=null;for(let r of e.keys())if(g$e(r,t)){if(!r.validity.valid)return r;o??=r}return o}function Gue(e,t){for(let o of t.keys())o.setCustomValidity("");e?.setCustomValidity("")}function $ue(e){let{elementRef:t,formRef:o}=vl(),{setValidityData:r,validate:n,validityData:i,validationDebounceTime:s,invalid:a,markedDirtyRef:l,state:u,shouldValidateOnChange:d,registeredFieldIdRef:f}=e,{controlId:p,getDescriptionProps:m}=Yn(),g=Fo(),h=lg.useRef(null),b=eo(()=>new Map).current,v=lg.useRef(0),y=lg.useCallback((C,E)=>(b.set(C,E),()=>{b.delete(C)}),[b]),_=de(()=>{let C=Uue(b,t.current);return C&&b.get(C)?.controlRef.current||null}),w=de(async(C,E=!1)=>{v.current+=1;let R=v.current;function S(j,D=a){let z=f.current??p;if(z==null)return;let $=o.current.fields.get(z);if(!$)return;let J=fy(j,D);o.current.fields.set(z,{...$,validityData:J})}function I(j,D){let z={value:C,state:{...ag,valid:!0},error:"",errors:[],initialValue:i.initialValue};Gue(j,b),S(z,D),r(z)}let O=b.size>0?Uue(b,t.current):h.current;if(E){if(u.valid!==!1||!O)return;let j=O.validity;if(!j.valueMissing){I(O,!1);return}for(let D of KU)if(D!=="valid"&&D!=="valueMissing"&&D!=="customError"&&j[D])return}function A(j){let D=KU.reduce(($,J)=>($[J]=j.validity[J],$),{}),z=!1;for(let $ of KU)if($!=="valid"){if($==="valueMissing"&&D[$])z=!0;else if(D[$])return D}return z&&!l.current&&(D.valid=!0,D.valueMissing=!1),D}g.clear();let P=null,L=[],H=O?A(O):{...ag,valid:!0},N,M=d();if(O&&O.validationMessage&&!M)N=O.validationMessage,L=[O.validationMessage];else{let j=Array.from(o.current.fields.values()).reduce((z,$)=>($.name&&(z[$.name]=$.getValue()),z),{}),D=n(C,j);if(typeof D=="object"&&D!==null&&"then"in D){if(P=await D,R!==v.current)return}else P=D;P!==null?(H.valid=!1,H.customError=!0,Array.isArray(P)?(L=P,O?.setCustomValidity(P.join(` 87 `))):P&&(L=[P],O?.setCustomValidity(P))):M&&(Gue(O,b),H.customError=!1,O&&O.validationMessage?(N=O.validationMessage,L=[O.validationMessage]):(!O||O.validity.valid)&&!H.valid&&(H.valid=!0))}let V={value:C,state:H,error:N??(Array.isArray(P)?P[0]:P??""),errors:L,initialValue:i.initialValue};S(V),r(V)}),k=de(C=>{g.clear();let E=d();E&&C!==""&&s?(v.current+=1,g.start(s,()=>{w(C)})):w(C,!E)}),x=lg.useCallback((C,E={})=>Mt(m(E),u.valid===!1&&!u.disabled&&!C?{"aria-invalid":!0}:Ut),[m,u.disabled,u.valid]);return lg.useMemo(()=>({getValidationProps:x,inputRef:h,registeredInputs:b,registerInput:y,getInputControl:_,commit:w,change:k}),[x,b,y,_,w,k])}var cg={};No(cg,{Panel:()=>Xue,Root:()=>Kue,Trigger:()=>Zue});var CE=c(oe(),1);var CM={...Zae,...Gn};var Yue=c(T(),1),Kue=CE.forwardRef(function(t,o){let{render:r,className:n,defaultOpen:i=!1,disabled:s=!1,onOpenChange:a,open:l,style:u,...d}=t,f=de(a),p=Yae({open:l,defaultOpen:i,onOpenChange:f,disabled:s}),m=CE.useMemo(()=>({open:p.open,disabled:p.disabled,transitionStatus:p.transitionStatus}),[p.open,p.disabled,p.transitionStatus]),g=CE.useMemo(()=>({...p,onOpenChange:f,state:m}),[p,f,m]),h=De("div",t,{state:m,ref:o,props:d,stateAttributesMapping:CM});return(0,Yue.jsx)(AW.Provider,{value:g,children:h})});var que=c(oe(),1);var h$e={...qae,...Gn},Zue=que.forwardRef(function(t,o){let{panelId:r,open:n,handleTrigger:i,state:s,disabled:a}=hA(),{className:l,disabled:u=a,render:d,nativeButton:f=!0,style:p,...m}=t,{getButtonProps:g,buttonRef:h}=Ic({disabled:u,focusableWhenDisabled:!0,native:f});return De("button",t,{state:s,ref:[o,h],props:[{"aria-controls":n?r:void 0,"aria-expanded":n,onClick:i},m,g],stateAttributesMapping:h$e})});var ZU=c(oe(),1);var qU=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});var Xue=ZU.forwardRef(function(t,o){let{className:r,hiddenUntilFound:n,keepMounted:i,render:s,id:a,style:l,...u}=t,{defaultPanelId:d,mounted:f,onOpenChange:p,open:m,setMounted:g,setPanelIdState:h,setOpen:b,state:v,transitionStatus:y}=hA(),_=n??!1,w=i??!1,k=a||void 0,x=k??d;le(()=>(h(N=>k??(N===null?void 0:N)),()=>{h(N=>N===k?null:N)}),[k,h]);let{height:C,props:E,ref:R,shouldPreventOpenAnimation:S,shouldRender:I,transitionStatus:O,width:A}=ile({externalRef:o,hiddenUntilFound:_,id:x,keepMounted:w,mounted:f,onOpenChange:p,open:m,setMounted:g,setOpen:b,transitionStatus:y}),P={...v,transitionStatus:O},L=cA(l,P),H=De("div",{...t,style:void 0},{state:P,ref:R,props:[E,{style:{[qU.collapsiblePanelHeight]:C===void 0?"auto":`$C}px`,[qU.collapsiblePanelWidth]:A===void 0?"auto":`$A}px`}},u,L?{style:L}:void 0,S?{style:{animationName:"none"}}:void 0],stateAttributesMapping:CM});return I?H:null});function Que(e,t){let o=gn(e);return le(()=>(t(o),()=>{t(r=>r===o?void 0:r)}),[o,t]),o}function EM(e={}){let{id:t,fallbackControlId:o,native:r=!1,setLabelId:n,focusControl:i}=e,{controlId:s,setLabelId:a}=Yn(),l=de(m=>{a(m),n?.(m)}),u=Que(t,l),d=s??o;function f(m){if(i){i(m,d);return}if(!d)return;let g=ot(m.currentTarget).getElementById(d);Ct(g)&&b$e(g)}function p(m){ko(m.nativeEvent)?.closest("button,input,select,textarea")||(!m.defaultPrevented&&m.detail>1&&m.preventDefault(),!r&&f(m))}return r?{id:u,htmlFor:d??void 0,onMouseDown:p}:{id:u,onClick:p,onPointerDown(m){m.preventDefault()}}}function b$e(e){e.focus({focusVisible:!0})}var TM=c(oe(),1),y$e=TM.createContext(void 0);function Jue(e){let t=TM.useContext(y$e);if(t===void 0&&!e)throw new Error(Wt(69));return t}var ede=c(oe(),1);function tde(e={}){let{highlightItemOnHover:t,highlightedIndex:o,onHighlightedIndexChange:r}=Bw(),{ref:n,index:i}=Tw(e),s=o===i,a=ede.useRef(null),l=Vs(n,a);return{compositeProps:{tabIndex:s?0:-1,onFocus(){r(i)},onMouseMove(){let d=a.current;if(!t||!d)return;let f=d.hasAttribute("disabled")||d.ariaDisabled==="true";!s&&!f&&d.focus()}},compositeRef:l,index:i}}var mi=c(oe(),1),cde=c(Pf(),1);var ode=c(oe(),1);function RM(e){let[t,o]=ode.useState({current:e,previous:null});return Object.is(e,t.current)||o({current:e,previous:t.current}),t.previous}var Yw=c(oe(),1);function $w(e){let t=On(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=Ct(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:r;return(tg(o)!==i||tg(r)!==s)&&(o=i,r=s),{width:o,height:r}}function nde(e){let{popupElement:t,positionerElement:o,content:r,mounted:n,onMeasureLayout:i,onMeasureLayoutComplete:s,side:a,direction:l}=e,u=Qm(t,!0),d=ss(),f=Yw.useRef(null),p=Yw.useRef(!0),m=Yw.useRef(At),g=de(i),h=de(s),b=Yw.useMemo(()=>v$e(a,l),[a,l]);le(()=>{if(!n){m.current=At,p.current=!0,f.current=null;return}if(!t||!o)return;m.current=rde(t,b),XU(t,"auto");let v=IM(t,"position","static"),y=IM(t,"transform","none"),_=IM(t,"scale","1"),w=rde(o,{"--available-width":"max-content","--available-height":"max-content"});function k(){v(),y(),w()}function x(){k(),_()}if(g?.(),p.current||f.current===null){BM(o,"max-content");let S=$w(t);return f.current=S,BM(o,S),x(),h?.(null,S),p.current=!1,()=>{m.current(),m.current=At}}BM(o,"max-content");let C=f.current,E=$w(t);f.current=E,XU(t,C),x(),h?.(C,E),BM(o,E);let R=new AbortController;return d.request(()=>{XU(t,E),u(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},R.signal)}),()=>{R.abort(),d.cancel(),m.current(),m.current=At}},[r,t,o,u,d,n,g,h,b])}function v$e(e,t){let o=e==="top",r=e==="left"||e===(t==="rtl"?"inline-end":"inline-start");return!o&&!r?Ut:{position:"absolute",[o?"bottom":"top"]:"0",[r?"right":"left"]:"0"}}function IM(e,t,o){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,o),()=>{e.style.setProperty(t,r)}}function rde(e,t){let o=[];for(let[r,n]of Object.entries(t))o.push(IM(e,r,n));return o.length?()=>{o.forEach(r=>r())}:At}function XU(e,t){let o=t==="auto"?"auto":`$t.width}px`,r=t==="auto"?"auto":`$t.height}px`;e.style.setProperty("--popup-width",o),e.style.setProperty("--popup-height",r)}function BM(e,t){let o=t==="max-content"?"max-content":`$t.width}px`,r=t==="max-content"?"max-content":`$t.height}px`;e.style.setProperty("--positioner-width",o),e.style.setProperty("--positioner-height",r)}var ide=c(oe(),1);var sde=c(T(),1),PM=function(t){let{direction:o="ltr"}=t,r=ide.useMemo(()=>({direction:o}),[o]);return(0,sde.jsx)(GU.Provider,{value:r,children:t.children})};var ade={name:"adaptiveOrigin",async fn(e){let{x:t,y:o,rects:{floating:r},elements:{floating:n},platform:i,strategy:s,placement:a}=e,l=St(n),u=l.getComputedStyle(n);if(!(u.transitionDuration!=="0s"&&u.transitionDuration!==""))return{x:t,y:o,data:Uw};let f=await i.getOffsetParent?.(n),p={width:0,height:0};if(s==="fixed"&&l?.visualViewport)p={width:l.visualViewport.width,height:l.visualViewport.height};else if(f===l){let y=ot(n);p={width:y.documentElement.clientWidth,height:y.documentElement.clientHeight}}else await i.isElement?.(f)&&(p=await i.getDimensions(f));let m=Li(a),g=t,h=o;m==="left"&&(g=p.width-(t+r.width)),m==="top"&&(h=p.height-(o+r.height));let b=m==="left"?"right":Uw.sideX,v=m==="top"?"bottom":Uw.sideY;return{x:g,y:h,data:{sideX:b,sideY:v}}}};var Kw=c(T(),1),ude={activationDirection:e=>e?{"data-activation-direction":e}:null};function dde(e){let{store:t,side:o,children:r}=e,n=id(),i=t.useState("activeTriggerElement"),s=t.useState("activeTriggerId"),a=t.useState("open"),l=t.useState("payload"),u=t.useState("mounted"),d=t.useState("popupElement"),f=t.useState("positionerElement"),p=RM(a?i:null),m=k$e(s,l),g=mi.useRef(null),[h,b]=mi.useState(null),[v,y]=mi.useState(null),_=mi.useRef(null),w=mi.useRef(null),k=Qm(_,!0),x=ss(),C=mi.useRef(null),[E,R]=mi.useState(null),[S,I]=mi.useState(!1);le(()=>(t.set("adaptiveOrigin",ade),()=>{t.set("adaptiveOrigin",void 0)}),[t]);let O=de(()=>{_.current?.style.setProperty("animation","none"),_.current?.style.setProperty("transition","none"),w.current?.style.setProperty("display","none")}),A=de(V=>{_.current?.style.removeProperty("animation"),_.current?.style.removeProperty("transition"),w.current?.style.removeProperty("display"),V&&R(V)}),P=de(()=>{C.current?.abort();let V=new AbortController;C.current=V,k(()=>{b(null),R(null),g.current=null},V.signal)}),L=mi.useRef(null);le(()=>{(!a||!u)&&(L.current=null)},[a,u]),le(()=>{if(i&&p&&i!==p&&L.current!==i&&g.current){b(g.current),I(!0);let V=w$e(p,i);y(V),L.current=i}},[i,p]),le(()=>{h!=null&&(C.current?.abort(),I(!0),x.request(()=>{cde.flushSync(()=>{I(!1)}),P()}))},[m,h,P,x]),le(()=>{let V=_.current;if(!V)return;let j=ot(V).createElement("div");for(let D of Array.from(V.childNodes))j.appendChild(D.cloneNode(!0));g.current=j});let H=h!=null,N;H?N=(0,Kw.jsxs)(mi.Fragment,{children:[(0,Kw.jsx)("div",{"data-previous":!0,inert:jw(!0),ref:w,style:{...E?{"--popup-width":`$E.width}px`,"--popup-height":`$E.height}px`}:null,position:"absolute"},"data-ending-style":S?void 0:""},"previous"),(0,Kw.jsx)("div",{"data-current":!0,ref:_,"data-starting-style":S?"":void 0,children:r},m)]}):N=(0,Kw.jsx)("div",{"data-current":!0,ref:_,children:r},m),le(()=>{let V=w.current;!V||!h||V.replaceChildren(...Array.from(h.childNodes))},[h]),nde({popupElement:d,positionerElement:f,mounted:u,content:l,onMeasureLayout:O,onMeasureLayoutComplete:A,side:o,direction:n});let M={activationDirection:_$e(v),transitioning:H};return{children:N,state:M}}function _$e(e){if(e)return`$lde(e.horizontal,5,"right","left")} $lde(e.vertical,5,"down","up")}`}function lde(e,t,o,r){return e>t?o:e<-t?r:""}function w$e(e,t){let o=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n={x:o.left+o.width/2,y:o.top+o.height/2},i={x:r.left+r.width/2,y:r.top+r.height/2};return{horizontal:i.x-n.x,vertical:i.y-n.y}}function k$e(e,t){let[o,r]=mi.useState(0),n=mi.useRef(e),i=mi.useRef(t),s=mi.useRef(!1);return le(()=>{let a=n.current,l=i.current,u=e!==a,d=t!==l;u?(r(f=>f+1),s.current=!d):s.current&&d&&(r(f=>f+1),s.current=!1),n.current=e,i.current=t},[e,t]),`$e??"current"}-$o}`}function OM(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}var AM=c(oe(),1),x$e=AM.createContext(void 0),S$e={disableStyleElements:!1};function MM(){return AM.useContext(x$e)??S$e}function py(e,t=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,o))}var zi={};No(zi,{Control:()=>_de,Description:()=>vde,Error:()=>bde,Item:()=>xde,Label:()=>hde,Root:()=>gde,Validity:()=>kde});var Kn=c(oe(),1);var NM=c(oe(),1),C$e=NM.createContext(void 0);function fde(e=!1){let t=NM.useContext(C$e);if(!t&&!e)throw new Error(Wt(86));return t}var ug=c(oe(),1);var pde=c(T(),1),LM=function(t){let o=gn(),r=t.controlId===void 0?o:t.controlId,[n,i]=ug.useState(r),[s,a]=ug.useState(t.labelId),[l,u]=ug.useState([]),d=eo(()=>new Map),{messageIds:f}=Yn(),p=de((h,b)=>{let v=d.current;if(b===void 0){v.delete(h);return}v.set(h,b),i(y=>{if(v.size===0)return;let _;for(let w of v.values()){if(y!==void 0&&w===y)return y;_===void 0&&(_=w)}return _})}),m=ug.useCallback(h=>{let b=h["aria-describedby"]?h["aria-describedby"].split(" "):[];return b.push(...f,...l),{...h,"aria-describedby":Array.from(new Set(b)).join(" ")||void 0}},[f,l]),g=ug.useMemo(()=>({controlId:n,registerControlId:p,labelId:s,setLabelId:a,messageIds:l,setMessageIds:u,getDescriptionProps:m}),[n,p,s,a,l,u,m]);return(0,pde.jsx)(UU.Provider,{value:g,children:t.children})};var DM=c(oe(),1);function mde(e){let{commit:t,invalid:o,markedDirtyRef:r,name:n,setRegisteredFieldName:i,registeredFieldIdRef:s,setValidityData:a,validityData:l}=e,{formRef:u}=vl(),d=DM.useRef(null),f=DM.useRef(null),p=DM.useRef(!1),m=de(()=>{let w=f.current;if(w)return w.getValue?w.getValue():w.value});function g(w){return w.value===void 0?m():w.value}let h=de(()=>{let w=f.current;if(r.current=!0,!w){t(l.value);return}t(g(w))});function b(){let w=f.current;!w||!w.id||u.current.fields.set(w.id,{getValue:m,name:n??w.name,controlRef:w.controlRef,validityData:fy(l,o),validate:h})}function v(w=f.current?.id){w&&u.current.fields.delete(w)}function y(w){if(p.current)return;p.current=!0;let k=g(w);a(x=>x.initialValue===k?x:{...x,initialValue:k})}le(()=>{let w=f.current;!w||!w.id||(i(n?void 0:w.name),u.current.fields.set(w.id,{getValue:m,name:n??w.name,controlRef:w.controlRef,validityData:fy(l,o),validate:h}))},[u,m,o,n,i,h,l]),le(()=>{let w=u.current.fields;return()=>{let k=f.current?.id;k&&w.delete(k)}},[u]);let _=de((w,k)=>{if(!k){d.current===w&&(d.current=null,v(),f.current=null,i(void 0),s.current=void 0);return}let x=f.current?.id;d.current=w,f.current=k,n||i(k.name),s.current=k.id,x&&x!==k.id&&v(x),y(k),b()});return[h,_]}var VM=c(T(),1),E$e=Kn.forwardRef(function(t,o){let{errors:r,validationMode:n,submitAttemptedRef:i}=vl(),{render:s,className:a,validate:l,validationDebounceTime:u=0,validationMode:d=n,name:f,disabled:p=!1,invalid:m,dirty:g,touched:h,actionsRef:b,style:v,...y}=t,_=fde(!0)?.disabled,w=de(l||(()=>null)),k=_||p,[x,C]=Kn.useState(!1),[E,R]=Kn.useState(!1),[S,I]=Kn.useState(!1),[O,A]=Kn.useState(!1),P=g??E,L=h??x,H=Kn.useRef(P),N=Kn.useRef(void 0),[M,V]=Kn.useState(),j=f??M;le(()=>{g!==void 0&&(H.current=g)},[g]);let D=de(ke=>{g===void 0&&(ke&&(H.current=!0),R(ke))}),z=de(ke=>{h===void 0&&C(ke)}),$=de(()=>d==="onChange"||d==="onSubmit"&&i.current),J=j&&Object.hasOwn(r,j)?r[j]:null,Q=!!(Array.isArray(J)?J.length:J),W=m===!0||Q,[X,U]=Kn.useState({state:ag,error:"",errors:[],value:null,initialValue:null}),G=!W&&(k?null:X.state.valid),te=Kn.useMemo(()=>({disabled:k,touched:L,dirty:P,valid:G,filled:S,focused:O}),[k,L,P,G,S,O]),re=$ue({setValidityData:U,validate:w,validityData:X,validationDebounceTime:u,invalid:W,markedDirtyRef:H,state:te,shouldValidateOnChange:$,registeredFieldIdRef:N}),[ae,ie]=mde({commit:re.commit,invalid:W,markedDirtyRef:H,name:f,setRegisteredFieldName:V,registeredFieldIdRef:N,setValidityData:U,validityData:X});Kn.useImperativeHandle(b,()=>({validate:ae}),[ae]);let be=Kn.useMemo(()=>({invalid:W,name:j,validityData:X,setValidityData:U,disabled:k,setTouched:z,setDirty:D,setFilled:I,setFocused:A,validationMode:d,shouldValidateOnChange:$,state:te,registerFieldControl:ie,validation:re}),[W,j,X,k,z,D,I,A,d,$,te,ie,re]),pe=De("div",t,{ref:o,state:te,props:y,stateAttributesMapping:Fi});return(0,VM.jsx)(WU.Provider,{value:be,children:pe})}),gde=Kn.forwardRef(function(t,o){return(0,VM.jsx)(LM,{children:(0,VM.jsx)(E$e,{...t,ref:o})})});var EE=c(oe(),1);var hde=EE.forwardRef(function(t,o){let{render:r,className:n,style:i,id:s,nativeLabel:a=!0,...l}=t,u=bn(!1),d=SM(),{labelId:f}=Yn(),p={...u.state,disabled:u.disabled||d.disabled},m=EE.useRef(null),g=EM({id:f??s,native:a});return De("label",t,{ref:[o,m],state:p,props:[g,l],stateAttributesMapping:Fi})});var my=c(oe(),1);var QU=c(T(),1),T$e={...Fi,...Gn},bde=my.forwardRef(function(t,o){let{render:r,id:n,className:i,match:s,style:a,...l}=t,u=gn(n),{validityData:d,state:f,name:p}=bn(!1),{setMessageIds:m}=Yn(),{errors:g}=vl(),h=p&&Object.hasOwn(g,p)?g[p]:null,b=!!(Array.isArray(h)?h.length:h),v=typeof s=="string",y=!1;s===!0?y=!0:f.disabled?y=!1:v?y=!!d.state[s]:y=b||d.state.valid===!1;let{mounted:_,transitionStatus:w,setMounted:k}=Ai(y);le(()=>{if(!(!y||!u))return m(H=>H.concat(u)),()=>{m(H=>H.filter(N=>N!==u))}},[y,u,m]);let x=my.useRef(null),[C,E]=my.useState(null),[R,S]=my.useState(null),I=d.error;!v&&b?I=h:d.errors.length>1&&(I=d.errors);let O=I;Array.isArray(I)&&(O=I.length>1?(0,QU.jsx)("ul",{children:I.map(H=>(0,QU.jsx)("li",{children:H},H))}):I[0]);let A=Array.isArray(I)?JSON.stringify(I):I;y&&A!==R&&(S(A),E(O)),$n({open:y,ref:x,onComplete(){y||k(!1)}});let P={...f,transitionStatus:w},L=De("div",t,{ref:[o,x],state:P,props:[{id:u,children:y?O:C},l],stateAttributesMapping:T$e,enabled:_});return _?L:null});var yde=c(oe(),1);var vde=yde.forwardRef(function(t,o){let{render:r,id:n,className:i,style:s,...a}=t,l=gn(n),u=bn(!1),d=SM(),{setMessageIds:f}=Yn(),p={...u.state,disabled:u.disabled||d.disabled};return le(()=>{if(l)return f(g=>g.concat(l)),()=>{f(g=>g.filter(h=>h!==l))}},[l,f]),De("p",t,{ref:o,state:p,props:[{id:l},a],stateAttributesMapping:Fi})});var FM=c(oe(),1);var _de=FM.forwardRef(function(t,o){let{render:r,className:n,id:i,name:s,value:a,disabled:l=!1,onValueChange:u,defaultValue:d,autoFocus:f=!1,style:p,...m}=t,{state:g,name:h,disabled:b,setTouched:v,setDirty:y,validityData:_,setFocused:w,setFilled:k,validationMode:x,validation:C}=bn(),{clearErrors:E}=vl(),R=b||l,S=h??s,I={...g,disabled:R},{labelId:O}=Yn(),A=Ww({id:i});le(()=>{let j=a!=null;C.inputRef.current?.value||j&&a!==""?k(!0):j&&a===""&&k(!1)},[C.inputRef,k,a]);let P=FM.useRef(null);le(()=>{f&&P.current===wr(ot(P.current))&&w(!0)},[f,w]);let[L]=Mf({controlled:a,default:d,name:"FieldControl",state:"value"}),H=a!==void 0,N=H?L:void 0,M=de(()=>C.inputRef.current?.value);return hM(C.inputRef,A,N,M,!R,s),De("input",t,{ref:[o,P],state:I,props:[{id:A,disabled:R,name:S,ref:C.inputRef,"aria-labelledby":O,autoFocus:f,...H?{value:N}:{defaultValue:d},onChange(j){let D=j.currentTarget.value;u?.(D,Ke(Te.none,j.nativeEvent)),y(D!==(_.initialValue??"")),k(D!==""),j.nativeEvent.defaultPrevented||(E(S),C.change(D))},onFocus(){w(!0)},onBlur(j){v(!0),w(!1),x==="onBlur"&&C.commit(j.currentTarget.value)},onKeyDown(j){j.currentTarget.tagName==="INPUT"&&j.key==="Enter"&&(v(!0),C.commit(j.currentTarget.value))}},m,j=>C.getValidationProps(R,j)],stateAttributesMapping:Fi})});var TE=c(oe(),1);var wde=c(T(),1),kde=function(t){let{children:o}=t,{validityData:r,invalid:n}=bn(!1),i=TE.useMemo(()=>fy(r,n),[r,n]),s=i.state.valid===!1,{transitionStatus:a}=Ai(s),l=TE.useMemo(()=>({...i,validity:i.state,transitionStatus:a}),[i,a]);return(0,wde.jsx)(TE.Fragment,{children:o(l)})};var zM=c(oe(),1);var JU=c(T(),1),xde=zM.forwardRef(function(t,o){let{render:r,className:n,style:i,disabled:s=!1,...a}=t,{state:l,disabled:u}=bn(!1),d=u||s,f={...l,disabled:d},p=zM.useMemo(()=>({disabled:d}),[d]),m=De("div",t,{ref:o,state:f,props:a,stateAttributesMapping:Fi});return(0,JU.jsx)(LM,{children:(0,JU.jsx)(YU.Provider,{value:p,children:m})})});var Sde=c(oe(),1);var Cde=c(T(),1),eG=Sde.forwardRef(function(t,o){return(0,Cde.jsx)(zi.Control,{ref:o,...t})});var Tde=c(oe(),1);var qw=c(oe(),1);var jM="data-composite-item-active";var R$e=[];function Ede(e){let{loopFocus:t=!0,orientation:o="both",grid:r,onLoop:n,direction:i,highlightedIndex:s,onHighlightedIndexChange:a,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:d,disabledIndices:f,modifierKeys:p=R$e}=e,[m,g]=qw.useState(0),h=r!=null,b=qw.useRef(null),v=Vs(b,l),y=qw.useRef([]),_=qw.useRef(!1),w=s??m,k=de((S,I=!1)=>{if((a??g)(S),I){let O=y.current[S];zU(b.current,O,i,o)}}),x=de(S=>{if(S.size===0||_.current)return;_.current=!0;let I=Array.from(S.keys()),O=I.find(P=>P?.hasAttribute(jM))??null,A=O?S.get(O)?.index??-1:-1;if(A!==-1)k(A);else if(ry(I,w,f)){let P=hl(I,{disabledIndices:f});og(I,P)||k(P)}zU(b.current,O,i,o)});le(()=>{if(f==null||s!=null||!_.current)return;let S=y.current;if(ry(S,w,f)){let I=hl(S,{disabledIndices:f});og(S,I)||k(I)}},[f,s,w,y,k]);let C=de((S,I,O)=>n?n(S,I,O,y):O),E=de(S=>{let I=S.key===uM||S.key===dM;if(!fM.has(S.key)||!u&&I||B$e(S,p)||!b.current)return;let A=i==="rtl",P=A?lM:cM,L=A?cM:lM,H=o==="vertical"?aM:P,N=o==="vertical"?sM:L,M=ko(S.nativeEvent);if(M!=null&&FU(M)&&!OM(M)){let J=M.selectionStart,Q=M.selectionEnd,W=M.value;if(J==null||S.shiftKey||J!==Q||S.key!==N&&J<W.length||S.key!==H&&J>0)return}let V=w,j=oy(y,f),D=Nw(y,f);r!=null&&(V=r({disabledIndices:f,elementsRef:y,event:S,highlightedIndex:w,loopFocus:t,maxIndex:D,minIndex:j,onLoop:C,orientation:o,rtl:A}));let z=o!=="vertical"&&S.key===P||o!=="horizontal"&&S.key===aM,$=o!=="vertical"&&S.key===L||o!=="horizontal"&&S.key===sM;u&&(S.key===uM?V=j:S.key===dM&&(V=D)),V===w&&(z||$)&&(t&&V===D&&z?(V=j,n&&(V=n(S,w,V,y))):t&&V===j&&$?(V=D,n&&(V=n(S,w,V,y))):V=hl(y.current,{startingIndex:V,decrement:$,disabledIndices:f})),V!==w&&!og(y.current,V)&&(d&&S.stopPropagation(),(h||I||z||$)&&S.preventDefault(),k(V,!0),queueMicrotask(()=>{y.current[V]?.focus()}))});return{props:{ref:v,onFocus(S){let I=b.current,O=ko(S.nativeEvent);!I||O==null||!FU(O)||O.setSelectionRange(0,O.value.length)},onKeyDown:E},highlightedIndex:w,onHighlightedIndexChange:k,elementsRef:y,onMapChange:x,relayKeyboardEvent:E}}function B$e(e,t){for(let o of due)if(!t.includes(o)&&e.getModifierState(o))return!0;return!1}var tG=c(T(),1);function Rde(e){let{render:t,className:o,style:r,refs:n=ml,props:i=ml,state:s=Ut,stateAttributesMapping:a,highlightedIndex:l,onHighlightedIndexChange:u,orientation:d,grid:f,loopFocus:p,onLoop:m,enableHomeAndEndKeys:g,onMapChange:h,stopEventPropagation:b=!0,rootRef:v,disabledIndices:y,modifierKeys:_,highlightItemOnHover:w=!1,tag:k="div",...x}=e,C=id(),{props:E,highlightedIndex:R,onHighlightedIndexChange:S,elementsRef:I,onMapChange:O,relayKeyboardEvent:A}=Ede({grid:f,loopFocus:p,onLoop:m,orientation:d,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:v,stopEventPropagation:b,enableHomeAndEndKeys:g,direction:C,disabledIndices:y,modifierKeys:_}),P=De(k,e,{state:s,ref:n,props:[E,...i,x],stateAttributesMapping:a}),L=Tde.useMemo(()=>({highlightedIndex:R,onHighlightedIndexChange:S,highlightItemOnHover:w,relayKeyboardEvent:A}),[R,S,w,A]);return(0,tG.jsx)(NW.Provider,{value:L,children:(0,tG.jsx)(Sw,{elementsRef:I,onMapChange:H=>{h?.(H),O(H)},children:P})})}var HM=c(oe(),1),Bde=c(Pf(),1);var Ide=c(T(),1),Pde=HM.forwardRef(function(t,o){let{children:r,container:n,className:i,render:s,style:a,...l}=t,{node:u,subtree:d}=FA({container:n,ref:o,componentProps:t,elementProps:l});return!d&&!u?null:(0,Ide.jsxs)(HM.Fragment,{children:[d,u&&Bde.createPortal(r,u)]})});var Ode=c(T(),1),WM="base-ui-disable-scrollbar",RE={className:WM,getElement(e){return(0,Ode.jsx)("style",{nonce:e,href:WM,precedence:"base-ui:low",children:`.$WM}{scrollbar-width:none}.$WM}::-webkit-scrollbar{display:none}`})}};var Ea=1;function Zw(e,t){return Math.max(0,e-t)}function Xw(e,t){if(t<=0)return 0;let o=py(e,0,t),r=o,n=t-o,i=r<=Ea,s=n<=Ea;return i&&s?r<=n?0:t:i?0:s?t:o}var Xr={};No(Xr,{Arrow:()=>ife,Backdrop:()=>Gde,Group:()=>gfe,GroupLabel:()=>bfe,Icon:()=>zde,Item:()=>efe,ItemIndicator:()=>ofe,ItemText:()=>rfe,Label:()=>Nde,List:()=>Qde,Popup:()=>Zde,Portal:()=>Wde,Positioner:()=>$de,Root:()=>Ade,ScrollDownArrow:()=>cfe,ScrollUpArrow:()=>ffe,Separator:()=>yfe,Trigger:()=>Lde,Value:()=>Vde});var kr=c(oe(),1);var UM=c(oe(),1),oG=UM.createContext(null);function zo(){let e=UM.useContext(oG);if(e===null)throw new Error(Wt(60));return e}var ze={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:o,itemToStringValue:r}=e;return t==null?!1:o&&Array.isArray(t)?t.length>0:sg(t,r)!==""},hasNullItemLabel:(e,t)=>t?Cue(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let o=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(n=>zf(t,n,o)):zf(t,r,o)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};var BE=c(T(),1);function Ade(e){let{id:t,value:o,defaultValue:r=null,onValueChange:n,open:i,defaultOpen:s=!1,onOpenChange:a,name:l,form:u,autoComplete:d,disabled:f=!1,readOnly:p=!1,required:m=!1,modal:g=!0,actionsRef:h,inputRef:b,onOpenChangeComplete:v,items:y,multiple:_=!1,itemToStringLabel:w,itemToStringValue:k,isItemEqualToValue:x=_ue,highlightItemOnHover:C=!0,children:E}=e,{clearErrors:R}=vl(),{setDirty:S,setTouched:I,setFocused:O,validityData:A,setFilled:P,name:L,disabled:H,validation:N,validationMode:M}=bn(),V=Ww({id:t}),j=H||f,D=L??l,[z,$]=Mf({controlled:o,default:_?r??ml:r,name:"Select",state:"value"}),[J,Q]=Mf({controlled:i,default:s,name:"Select",state:"open"}),W=kr.useRef([]),X=kr.useRef([]),U=kr.useRef(null),G=kr.useRef(null),te=kr.useRef(0),re=kr.useRef(null),ae=kr.useRef([]),ie=kr.useRef(!1),be=kr.useRef(null),pe=kr.useRef(null),ke=kr.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ye=kr.useRef(!1),{mounted:Pe,setMounted:_e,transitionStatus:ve}=Ai(J),{openMethod:Se,triggerProps:fe}=bue(J),Ce=eo(()=>new od({id:V,labelId:void 0,modal:g,multiple:_,itemToStringLabel:w,itemToStringValue:k,isItemEqualToValue:x,value:z,open:J,mounted:Pe,transitionStatus:ve,items:y,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,ne=Fe(Ce,ze.activeIndex),se=Fe(Ce,ze.selectedIndex),Ee=Fe(Ce,ze.triggerElement),he=Fe(Ce,ze.positionerElement),Ae=RM(Se),et=Se??Ae,Je=kr.useMemo(()=>_?"":sg(z,k),[_,z,k]),_t=kr.useMemo(()=>_&&Array.isArray(z)?z.map(it=>sg(it,k)):sg(z,k),[_,z,k]),Et=so(Ee),mt=de(()=>_t);hM(Et,V,z,mt,!j,l);let oo=kr.useRef(z),Tt=_?Array.isArray(z)&&z.length>0:z!=null&&Je!=="";le(()=>{P(Tt)},[Tt,P]),le(function(){let Vt=z,Pr=!1;if(_){let Or=Array.isArray(z)?z:[];Pr=Or.length===0,Vt=Or[Or.length-1]}let gr=Pr?-1:Hw(ae.current,Vt,x),Gr=gr===-1?null:gr;Gr===null&&(pe.current=null),!J&&Ce.set("selectedIndex",Gr)},[_,J,z,x,Ce]);function Rt(it){let Vt=A.initialValue;return Array.isArray(it)&&Array.isArray(Vt)?!Rue(it,Vt,(Pr,gr)=>zf(Pr,gr,x)):it!==Vt}pM(z,()=>{R(D),S(Rt(z)),N.change(z)});let Bt=de((it,Vt)=>{a?.(it,Vt),!Vt.isCanceled&&(Q(it),!it&&(Vt.reason===Te.focusOut||Vt.reason===Te.outsidePress)&&(I(!0),O(!1),M==="onBlur"&&N.commit(z)))}),gt=de(()=>{_e(!1),Ce.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),v?.(!1)});$n({enabled:!h,open:J,ref:U,onComplete(){J||gt()}}),kr.useImperativeHandle(h,()=>({unmount:gt}),[gt]);let He=de((it,Vt)=>{n?.(it,Vt),!Vt.isCanceled&&$(it)}),we=de(it=>{let Vt=Zw(it.scrollHeight,it.clientHeight),Pr=Xw(it.scrollTop,Vt),gr=Pr>0,Gr=Pr<Vt;Ce.set("scrollUpArrowVisible",gr),Ce.set("scrollDownArrowVisible",Gr)}),Me=RU({open:J,onOpenChange:Bt,elements:{reference:Ee,floating:he}}),ge=dU(Me,{enabled:!p&&!j,event:"mousedown"}),Re=bE(Me),Ie=LU(Me,{enabled:!p&&!j,listRef:W,activeIndex:ne,selectedIndex:se,disabledIndices:ml,onNavigate(it){it===null&&!J||Ce.set("activeIndex",it)},focusItemOnHover:C}),at=DU(Me,{enabled:!p&&!j&&(J||!_),listRef:X,activeIndex:ne,selectedIndex:se,disabledIndices:it=>OM(W.current[it]),onMatch(it){J?Ce.set("activeIndex",it):He(ae.current[it],Ke(Te.none))},onTyping(it){ie.current=it}}),Qe=kr.useMemo(()=>Mt(at.reference,Ie.reference,Re.reference,ge.reference,fe),[ge.reference,at.reference,Ie.reference,Re.reference,fe]),po=kr.useMemo(()=>Mt(KA,at.floating,Ie.floating,Re.floating),[at.floating,Ie.floating,Re.floating]),ro=Ie.item??Ut;vue(()=>{Ce.update({popupProps:po,triggerProps:Qe})}),Ce.useSyncedValues({id:V,modal:g,multiple:_,value:z,open:J,mounted:Pe,transitionStatus:ve,popupProps:po,triggerProps:Qe,items:y,itemToStringLabel:w,itemToStringValue:k,isItemEqualToValue:x,openMethod:et});let vo=kr.useMemo(()=>({store:Ce,floatingContext:Me,required:m,disabled:j,readOnly:p,multiple:_,highlightItemOnHover:C,setValue:He,setOpen:Bt,listRef:W,popupRef:U,scrollHandlerRef:G,handleScrollArrowVisibility:we,scrollArrowsMountedCountRef:te,itemProps:ro,valueRef:re,valuesRef:ae,labelsRef:X,typingRef:ie,selectionRef:ke,firstItemTextRef:be,selectedItemTextRef:pe,validation:N,onOpenChangeComplete:v,alignItemWithTriggerActiveRef:ye,initialValueRef:oo}),[Ce,Me,m,j,p,_,C,He,Bt,ro,N,v,we]),Kt=Vs(b,N.inputRef),_o=_?void 0:D,En=kr.useMemo(()=>!_||!Array.isArray(z)||!D?null:z.map(it=>{let Vt=sg(it,k);return(0,BE.jsx)("input",{type:"hidden",form:u,name:D,value:Vt,disabled:j},Vt)}),[_,z,u,D,k,j]);return(0,BE.jsxs)(oG.Provider,{value:vo,children:[E,(0,BE.jsx)("input",{...N.getValidationProps(j,{onFocus(){Ce.state.triggerElement?.focus({focusVisible:!0})},onChange(it){if(it.nativeEvent.defaultPrevented||j||p)return;let Vt=it.currentTarget.value,Pr=Ke(Te.none,it.nativeEvent);function gr(){if(_)return;let Gr=Vt.toLowerCase(),Or=ae.current.findIndex(Pi=>sg(Pi,k).toLowerCase()===Gr||jU(Pi,w).toLowerCase()===Gr);Or===-1&&(Or=ae.current.findIndex((Pi,Be)=>{let Ht=X.current[Be];return Ht!=null&&Ht.toLowerCase()===Gr}));let pn=ae.current[Or];pn!=null&&He(pn,Pr)}Ce.set("forceMount",!0),queueMicrotask(gr)}}),id:V&&_o==null?`$V}-hidden-input`:void 0,form:u,name:_o,autoComplete:d,value:Je,disabled:j,required:m&&!(_&&Tt),readOnly:p,ref:Kt,style:D?xle:BA,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),En]})}var Mde=c(oe(),1);var Nde=Mde.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=s;delete a.id;let l=bn(),{store:u}=zo(),d=Fe(u,ze.triggerElement),f=Fe(u,ze.id),p=Iue(f),m=EM({id:p,fallbackControlId:d?.id??f,setLabelId(g){let h=typeof g=="function"?g(u.state.labelId):g;u.set("labelId",h)}});return De("div",t,{ref:o,state:l.state,props:[m,s],stateAttributesMapping:Fi})});var Qw=c(oe(),1);var I$e=400,P$e={...cue,...Fi,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},Lde=Qw.forwardRef(function(t,o){let{render:r,className:n,id:i,disabled:s=!1,nativeButton:a=!0,style:l,...u}=t,{setTouched:d,setFocused:f,validationMode:p,state:m,disabled:g}=bn(),{labelId:h}=Yn(),{store:b,setOpen:v,selectionRef:y,validation:_,readOnly:w,required:k,alignItemWithTriggerActiveRef:x,disabled:C}=zo(),E=g||C||s,R=Fe(b,ze.open),S=Fe(b,ze.mounted),I=Fe(b,ze.value),O=Fe(b,ze.triggerProps),A=Fe(b,ze.positionerElement),P=Fe(b,ze.listElement),L=Fe(b,ze.popupSide),H=Fe(b,ze.id),N=Fe(b,ze.labelId),M=Fe(b,ze.hasSelectedValue),V=S&&A?L:null,j=i??H,D=Pue(h,N);Ww({id:j});let z=so(A),$=Qw.useRef(null),{getButtonProps:J,buttonRef:Q}=Ic({disabled:E,native:a}),W=b.useStateSetter("triggerElement"),X=Fo(),U=Fo(),G=Fo();Qw.useEffect(()=>{if(R)return G.start(I$e,()=>{y.current.allowUnselectedMouseUp=!0,y.current.allowSelectedMouseUp=!0}),()=>{G.clear()};y.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},U.clear()},[R,y,U,G]);let te=Mt(O,{id:j,role:"combobox","aria-expanded":R,"aria-haspopup":"listbox","aria-controls":R?P?.id??ty(A)?.id:void 0,"aria-labelledby":D,"aria-readonly":w||void 0,"aria-required":k||void 0,tabIndex:E?-1:0,onFocus(ie){f(!0),R&&x.current&&v(!1,Ke(Te.none,ie.nativeEvent)),X.start(0,()=>{b.set("forceMount",!0)})},onBlur(ie){Ge(A,ie.relatedTarget)||(d(!0),f(!1),p==="onBlur"&&_.commit(I))},onMouseDown(ie){if(R)return;let be=ot(ie.currentTarget);function pe(ke){if(!$.current)return;let ye=ke.target;Ge($.current,ye)||Ge(z.current,ye)||Bue(ke,$.current)||v(!1,Ke(Te.cancelOpen,ke))}U.start(0,()=>{be.addEventListener("mouseup",pe,{once:!0})})}},u,J),re=_.getValidationProps(E,te);re.role="combobox";let ae={...m,open:R,disabled:E,value:I,readOnly:w,popupSide:V,placeholder:!M};return De("button",t,{ref:[o,$,Q,W],state:ae,stateAttributesMapping:P$e,props:re})});var Dde=c(oe(),1);var O$e={value:()=>null},Vde=Dde.forwardRef(function(t,o){let{className:r,render:n,children:i,placeholder:s,style:a,...l}=t,{store:u,valueRef:d}=zo(),f=Fe(u,ze.value),p=Fe(u,ze.items),m=Fe(u,ze.itemToStringLabel),g=Fe(u,ze.hasSelectedValue),h=!g&&s!=null&&i==null,b=Fe(u,ze.hasNullItemLabel,h),v={value:f,placeholder:!g},y=null;return typeof i=="function"?y=i(f):i!=null?y=i:h&&!b?y=s:Array.isArray(f)?y=Eue(f,p,m):y=HU(f,p,m),De("span",t,{state:v,ref:[o,d],props:[{children:y},l],stateAttributesMapping:O$e})});var Fde=c(oe(),1);var zde=Fde.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,{store:a}=zo(),u={open:Fe(a,ze.open)};return De("span",t,{state:u,ref:o,props:[{"aria-hidden":!0,children:"\u25BC"},s],stateAttributesMapping:rM})});var jde=c(oe(),1);var Hde=c(T(),1),Wde=jde.forwardRef(function(t,o){let{store:r}=zo(),n=Fe(r,ze.mounted),i=Fe(r,ze.forceMount);return n||i?(0,Hde.jsx)(lU,{ref:o,...t}):null});var Ude=c(oe(),1);var A$e={...Ff,...Gn},Gde=Ude.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,{store:a}=zo(),l=Fe(a,ze.open),u=Fe(a,ze.mounted),d=Fe(a,ze.transitionStatus);return De("div",t,{state:{open:l,transitionStatus:d},ref:o,props:[{role:"presentation",hidden:!u,style:{userSelect:"none",WebkitUserSelect:"none"}},s],stateAttributesMapping:A$e})});var _l=c(oe(),1);var GM=c(oe(),1),rG=GM.createContext(void 0);function dg(){let e=GM.useContext(rG);if(!e)throw new Error(Wt(59));return e}function Jw(e,t){e&&Object.assign(e.style,t)}var $M={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var IE=c(T(),1),M$e={position:"fixed"},$de=_l.forwardRef(function(t,o){let{anchor:r,className:n,render:i,positionMethod:s,side:a,align:l,sideOffset:u,alignOffset:d,collisionBoundary:f="clipping-ancestors",collisionPadding:p,arrowPadding:m,sticky:g,disableAnchorTracking:h,alignItemWithTrigger:b=!0,collisionAvoidance:v=Gle,style:y,..._}=t,{store:w,listRef:k,labelsRef:x,alignItemWithTriggerActiveRef:C,selectedItemTextRef:E,valuesRef:R,initialValueRef:S,popupRef:I,setValue:O,floatingContext:A}=zo(),P=Fe(w,ze.open),L=Fe(w,ze.mounted),H=Fe(w,ze.modal),N=Fe(w,ze.value),M=Fe(w,ze.openMethod),V=Fe(w,ze.positionerElement),j=Fe(w,ze.triggerElement),D=Fe(w,ze.isItemEqualToValue),z=Fe(w,ze.transitionStatus),$=_l.useRef(null),J=_l.useRef(null),[Q,W]=_l.useState(b),X=L&&Q&&M!=="touch";!L&&Q!==b&&W(b),_l.useImperativeHandle(C,()=>X),zue((X||H)&&P,M==="touch",V,j);let U=wM({anchor:r,floatingRootContext:A,positionMethod:s,mounted:L,side:a,sideOffset:u,align:l,alignOffset:d,arrowPadding:m,collisionBoundary:f,collisionPadding:p,sticky:g,disableAnchorTracking:h??X,collisionAvoidance:v,keepMounted:!0}),G=X?"none":U.side,te=X?M$e:U.positionerStyles,re={open:P,side:G,align:U.align,anchorHidden:U.anchorHidden};le(()=>{w.set("popupSide",U.side)},[w,U.side]);let ae=w.useStateSetter("positionerElement"),ie=kM(t,re,{styles:te,transitionStatus:z,props:_,refs:[o,ae],hidden:!L,inert:!P}),be=_l.useRef(0),pe=de(ye=>{if(R.current.length===0)return;let Pe=be.current;if(be.current=ye.size,ye.size===Pe)return;let _e=Ke(Te.none);if(Pe!==0&&!w.state.multiple&&N!==null&&Hw(R.current,N,D)===-1){let Se=S.current,Ce=Se!=null&&Hw(R.current,Se,D)!==-1?Se:null;O(Ce,_e),Ce===null&&(w.set("selectedIndex",null),E.current=null)}if(Pe!==0&&w.state.multiple&&Array.isArray(N)){let ve=N.filter(Se=>Hw(R.current,Se,D)!==-1);ve.length!==N.length&&(O(ve,_e),ve.length===0&&(w.set("selectedIndex",null),E.current=null))}if(P&&X){w.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let ve={height:""};Jw(V,ve),Jw(I.current,ve)}}),ke=_l.useMemo(()=>({...U,side:G,alignItemWithTriggerActive:X,setControlledAlignItemWithTrigger:W,scrollUpArrowRef:$,scrollDownArrowRef:J}),[U,G,X,W]);return(0,IE.jsx)(Sw,{elementsRef:k,labelsRef:x,onMapChange:pe,children:(0,IE.jsxs)(rG.Provider,{value:ke,children:[L&&H&&(0,IE.jsx)(mue,{inert:jw(!P),cutout:j}),ie]})})});var wl=c(oe(),1);var qM=c(T(),1),N$e={...Ff,...Gn},Zde=wl.forwardRef(function(t,o){let{render:r,className:n,style:i,finalFocus:s,...a}=t,{store:l,popupRef:u,onOpenChangeComplete:d,setOpen:f,valueRef:p,firstItemTextRef:m,selectedItemTextRef:g,multiple:h,handleScrollArrowVisibility:b,scrollHandlerRef:v,listRef:y,highlightItemOnHover:_,floatingContext:w}=zo(),{side:k,align:x,alignItemWithTriggerActive:C,isPositioned:E,setControlledAlignItemWithTrigger:R}=dg(),S=Jue(!0)!=null,I=id(),{nonce:O,disableStyleElements:A}=MM(),P=Fe(l,ze.id),L=Fe(l,ze.open),H=Fe(l,ze.openMethod),N=Fe(l,ze.mounted),M=Fe(l,ze.popupProps),V=Fe(l,ze.transitionStatus),j=Fe(l,ze.triggerElement),D=Fe(l,ze.positionerElement),z=Fe(l,ze.listElement),$=wl.useRef(!1),J=wl.useRef(!1),Q=wl.useRef({}),W=ss(),X=de(re=>{if(!D||!u.current||!J.current)return;let ae=D.style.top==="0px",ie=D.style.bottom==="0px";if($.current||!C||!ae&&!ie){b(re);return}let be=Kde(D),pe=PE(D.getBoundingClientRect().height,"y",be),ke=ot(D),ye=St(D),Pe=ye.getComputedStyle(D),_e=parseFloat(Pe.marginTop),ve=parseFloat(Pe.marginBottom),Se=Yde(ye.getComputedStyle(u.current)),fe=Math.min(ke.documentElement.clientHeight-_e-ve,Se),Ce=re.scrollTop,ne=YM(re),se=null,Ee=Je=>{D.style.height=`$Je}px`},he=ae?ne-Ce:Ce,Ae=Math.min(pe+he,fe);if(he<=Ea){let Je=py(he,0,fe-pe);Je>0&&Ee(pe+Je),re.scrollTop=ae?ne:0,fe-(pe+Je)<=Ea&&($.current=!0),b(re);return}if(fe-Ae>Ea)se=ae?1/0:0;else if(ie&&Ce<ne){let Je=pe+he-fe;se=Ce-(he-Je)}let et=Math.ceil(Ae);if(et!==0&&Ee(et),se!=null){let Je=py(se,0,YM(re));Math.abs(re.scrollTop-Je)>Ea&&(re.scrollTop=Je)}et>=fe-Ea&&($.current=!0),b(re)});wl.useImperativeHandle(v,()=>X,[X]),$n({open:L,ref:u,onComplete(){L&&d?.(!0)}});let U={open:L,transitionStatus:V,side:k,align:x};le(()=>{!D||!u.current||Object.keys(Q.current).length||(Q.current={top:D.style.top||"0",left:D.style.left||"0",right:D.style.right,height:D.style.height,bottom:D.style.bottom,minHeight:D.style.minHeight,maxHeight:D.style.maxHeight,marginTop:D.style.marginTop,marginBottom:D.style.marginBottom})},[u,D]),le(()=>{L||C||(J.current=!1,$.current=!1,Jw(D,Q.current))},[L,C,D,u]),le(()=>{let re=u.current;if(!L||!j||!D||!re||C&&!E||l.state.transitionStatus==="ending")return;if(J.current=!0,re.style.removeProperty("--transform-origin"),!C){W.request(()=>b(z||re));return}let ae=L$e(re);try{let ie=g.current;ie?.isConnected||(ie=!ze.hasSelectedValue(l.state)&&m.current?.isConnected?m.current:null);let be=p.current,pe=St(D),ke=pe.getComputedStyle(D),ye=pe.getComputedStyle(re),Pe=ot(j),_e=Kde(j),ve=KM(j.getBoundingClientRect(),_e),Se=KM(D.getBoundingClientRect(),_e),fe=ve.height,Ce=z||re,ne=Ce.scrollHeight,se=parseFloat(ye.borderBottomWidth),Ee=parseFloat(ke.marginTop)||10,he=parseFloat(ke.marginBottom)||10,Ae=parseFloat(ke.minHeight)||100,et=Yde(ye),Je=5,_t=5,Et=20,mt=Pe.documentElement.clientHeight-Ee-he,oo=Pe.documentElement.clientWidth,Tt=mt-ve.bottom+fe,Rt,Bt=I==="rtl"?ve.right-Se.width:ve.left,gt=0;if(ie&&be){let vo=KM(be.getBoundingClientRect(),_e);Rt=KM(ie.getBoundingClientRect(),_e),Bt=Se.left+(I==="rtl"?vo.right-Rt.right:vo.left-Rt.left);let Kt=vo.top-ve.top+vo.height/2;gt=Rt.top-Se.top+Rt.height/2-Kt}let He=Tt+gt+he+se,we=Math.min(mt,He),Me=mt-Ee-he,ge=He-we,Re=oo-_t;D.style.left=`$py(Bt,Je,Re-Se.width)}px`,D.style.height=`$we}px`,D.style.maxHeight="none",D.style.marginTop=`$Ee}px`,D.style.marginBottom=`$he}px`,re.style.height="100%";let Ie=YM(Ce),at=ge>=Ie-Ea;at&&(we=Math.min(mt,Se.height)-(ge-Ie));let Qe=ve.top<Et||ve.bottom>mt-Et||Math.ceil(we)+Ea<Math.min(ne,Ae),po=(pe.visualViewport?.scale??1)!==1&&mo.engine.webkit;if(Qe||po){Jw(D,Q.current),R(!1);return}let ro=Math.max(Ae,we);if(at){let vo=Math.max(0,mt-He);D.style.top=Se.height>=Me?"0":`$vo}px`,D.style.height=`$we}px`,Ce.scrollTop=YM(Ce)}else D.style.bottom="0",Ce.scrollTop=ge;if(Rt){let vo=Se.top,Kt=Se.height,_o=Rt.top+Rt.height/2,En=py(Kt>0?(_o-vo)/Kt*100:50,0,100);re.style.setProperty("--transform-origin",`50% $En}%`)}(ro===mt||we>=et)&&($.current=!0),b(Ce),_&&l.state.selectedIndex===null&&l.state.activeIndex===null&&y.current[0]!=null&&l.set("activeIndex",0)}finally{ae()}},[l,L,D,j,p,m,g,u,b,C,R,W,z,y,_,I,E]),wl.useEffect(()=>{if(!C||!D||!L)return;let re=St(D);function ae(ie){f(!1,Ke(Te.windowResize,ie))}return ut(re,"resize",ae)},[f,C,D,L]);let G={...z?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":h||void 0,id:`$P}-list`},onKeyDown(re){S&&fM.has(re.key)&&re.stopPropagation()},onScroll(re){z||X(re.currentTarget)},...C&&{style:z?{height:"100%"}:$M},className:!z&&C?RE.className:void 0},te=De("div",t,{ref:[o,u],state:U,stateAttributesMapping:N$e,props:[M,G,Gw(V),a]});return(0,qM.jsxs)(wl.Fragment,{children:[!A&&RE.getElement(O),(0,qM.jsx)(uU,{context:w,modal:!1,disabled:!N,openInteractionType:H,returnFocus:s,restoreFocus:!0,children:te})]})});function Yde(e){let t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function YM(e){return Zw(e.scrollHeight,e.clientHeight)}function Kde(e){return yE.getScale(e)}function PE(e,t,o){return e/o[t]}function KM(e,t){return Lf({x:PE(e.x,"x",t),y:PE(e.y,"y",t),width:PE(e.width,"x",t),height:PE(e.height,"y",t)})}var qde=[["transform","none"],["scale","1"],["translate","0 0"]];function L$e(e){let{style:t}=e,o={};for(let[r,n]of qde)o[r]=t.getPropertyValue(r),t.setProperty(r,n,"important");return()=>{for(let[r]of qde){let n=o[r];n?t.setProperty(r,n):t.removeProperty(r)}}}var Xde=c(oe(),1);var Qde=Xde.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,{store:a,scrollHandlerRef:l,multiple:u}=zo(),{alignItemWithTriggerActive:d}=dg(),f=Fe(a,ze.hasScrollArrows),p=Fe(a,ze.openMethod),g={id:`$Fe(a,ze.id)}-list`,role:"listbox","aria-multiselectable":u||void 0,onScroll(b){l.current?.(b.currentTarget)},...d&&{style:$M},className:f&&p!=="touch"?RE.className:void 0},h=a.useStateSetter("listElement");return De("div",t,{ref:[o,h],props:[g,s]})});var Mc=c(oe(),1);var ZM=c(oe(),1),nG=ZM.createContext(void 0);function OE(){let e=ZM.useContext(nG);if(!e)throw new Error(Wt(57));return e}var Jde=c(T(),1),efe=Mc.memo(Mc.forwardRef(function(t,o){let{render:r,className:n,style:i,value:s=null,label:a,disabled:l=!1,nativeButton:u=!1,...d}=t,f=Mc.useRef(null),p=Tw({guess:!0,label:a,textRef:f}),{store:m,itemProps:g,setOpen:h,setValue:b,selectionRef:v,typingRef:y,valuesRef:_,multiple:w,selectedItemTextRef:k,disabled:x,readOnly:C}=zo(),E=x||l,R=Fe(m,ze.isActive,p.index),S=Fe(m,ze.open),I=Fe(m,ze.isSelected,s),O=Fe(m,ze.isSelectedByFocus,p.index),A=Fe(m,ze.isItemEqualToValue),P=p.index,L=Mc.useRef(null);le(()=>{let W=_.current;return W[P]=s,()=>{delete W[P]}},[P,s,_]),le(()=>{let W=m.state.value,X=W;w&&Array.isArray(W)&&(X=W.length>0?W[W.length-1]:void 0),X!==void 0&&zf(s,X,A)&&(m.set("selectedIndex",P),f.current&&(k.current=f.current))},[P,w,A,m,s,k]);let H=Mc.useRef("mouse"),N=Mc.useRef(!1),{getButtonProps:M,buttonRef:V}=Ic({disabled:E,focusableWhenDisabled:!0,native:u,composite:!0}),j={disabled:E,selected:I,highlighted:R};function D(W){if(x||C)return;let X=m.state.value;if(w){let U=Array.isArray(X)?X:[],G=I?wue(U,s,A):[...U,s];b(G,Ke(Te.itemPress,W))}else b(s,Ke(Te.itemPress,W)),h(!1,Ke(Te.itemPress,W))}function z(){v.current.dragY=0}let $={role:"option","aria-selected":I,tabIndex:S&&R?0:-1,onKeyDown(W){m.set("activeIndex",P),W.key===" "&&y.current&&W.preventDefault()},onClick(W){let X=H.current!=="touch",U=W.nativeEvent.pointerType,G=X&&Ow(W.nativeEvent)&&(U!==void 0||R),te=X&&!G&&!N.current;N.current=!1,!(E||te)&&D(W.nativeEvent)},onPointerEnter(W){H.current=W.pointerType},onPointerMove(W){if(W.pointerType==="mouse"&&W.buttons===1){let X=v.current;X.dragY+=W.movementY,X.dragY**2>=64&&(X.allowUnselectedMouseUp=!0)}},onPointerDown(W){H.current=W.pointerType,N.current=!0,z()},onMouseUp(){if(z(),E||H.current==="touch"||N.current)return;let W=!v.current.allowSelectedMouseUp&&I,X=!v.current.allowUnselectedMouseUp&&!I;W||X||(N.current=!0,L.current?.click(),N.current=!1)}},J=De("div",t,{ref:[V,o,p.ref,L],state:j,props:[g,$,d,M]}),Q=Mc.useMemo(()=>({selected:I,index:P,textRef:f,selectedByFocus:O}),[I,P,f,O]);return(0,Jde.jsx)(nG.Provider,{value:Q,children:J})}));var gy=c(oe(),1);var tfe=c(T(),1),ofe=gy.forwardRef(function(t,o){let{selected:r}=OE();return t.keepMounted||r?(0,tfe.jsx)(D$e,{...t,ref:o}):null}),D$e=gy.memo(gy.forwardRef((e,t)=>{let{render:o,className:r,style:n,keepMounted:i,...s}=e,{selected:a}=OE(),l=gy.useRef(null),{transitionStatus:u,setMounted:d}=Ai(a),p=De("span",e,{ref:[t,l],state:{selected:a,transitionStatus:u},props:[{"aria-hidden":!0,children:"\u2714\uFE0F"},s],stateAttributesMapping:Gn});return $n({open:a,ref:l,onComplete(){a||d(!1)}}),p}));var ek=c(oe(),1);var rfe=ek.memo(ek.forwardRef(function(t,o){let{index:r,textRef:n,selectedByFocus:i}=OE(),{firstItemTextRef:s,selectedItemTextRef:a}=zo(),{render:l,className:u,style:d,...f}=t,p=ek.useCallback(g=>{g&&(r===0&&(s.current=g),i&&(a.current=g))},[s,a,r,i]);return De("div",t,{ref:[p,o,n],props:f})}));var nfe=c(oe(),1);var ife=nfe.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,{store:a}=zo(),{side:l,align:u,arrowRef:d,arrowStyles:f,arrowUncentered:p,alignItemWithTriggerActive:m}=dg(),h={open:Fe(a,ze.open),side:l,align:u,uncentered:p},b=De("div",t,{state:h,ref:[d,o],props:[{style:f,"aria-hidden":!0},s],stateAttributesMapping:nM});return m?null:b});var afe=c(oe(),1);var sfe=c(oe(),1);var XM=sfe.forwardRef(function(t,o){let{render:r,className:n,style:i,direction:s,keepMounted:a,...l}=t,u=s==="up",{store:d,popupRef:f,listRef:p,handleScrollArrowVisibility:m,scrollArrowsMountedCountRef:g}=zo(),{side:h,scrollDownArrowRef:b,scrollUpArrowRef:v}=dg(),y=u?ze.scrollUpArrowVisible:ze.scrollDownArrowVisible,_=Fe(d,y),w=Fe(d,ze.openMethod),k=_&&w!=="touch",x=Fo(),C=u?v:b,{mounted:E,transitionStatus:R,setMounted:S}=Ai(k);le(()=>(g.current+=1,d.set("hasScrollArrows",!0),()=>{g.current=Math.max(0,g.current-1),g.current===0&&d.set("hasScrollArrows",!1)}),[d,g]),$n({open:k,ref:C,onComplete(){k||S(!1)}});let A=De("div",t,{ref:[o,C],state:{direction:s,visible:k,side:h,transitionStatus:R},props:[{"aria-hidden":!0,children:u?"\u25B2":"\u25BC",style:{position:"absolute"},onMouseMove(L){if(L.movementX===0&&L.movementY===0||x.isStarted())return;d.set("activeIndex",null);function H(){let N=d.state.listElement??f.current;if(!N)return;d.set("activeIndex",null),m(N);let M=Zw(N.scrollHeight,N.clientHeight),V=Xw(N.scrollTop,M),j=V===(u?0:M),D=p.current;if(V!==N.scrollTop&&(N.scrollTop=V),j){x.clear();return}if(D.length>0){let z=C.current?.offsetHeight||0;N.scrollTop=V$e(D,u,V,N.clientHeight,z,M)}x.start(40,H)}x.start(40,H)},onMouseLeave(){x.clear()}},l],stateAttributesMapping:Gn});return E||a?A:null});function V$e(e,t,o,r,n,i){if(t){let d=0,f=o+n-Ea;for(let g=0;g<e.length;g+=1){let h=e[g];if(h&&h.offsetTop>=f){d=g;break}}let p=Math.max(0,d-1),m=e[p];return p<d&&m?Xw(m.offsetTop-n,i):0}let s=e.length-1,a=o+r-n+Ea;for(let d=0;d<e.length;d+=1){let f=e[d];if(f&&f.offsetTop+f.offsetHeight>a){s=Math.max(0,d-1);break}}let l=Math.min(e.length-1,s+1),u=e[l];return l>s&&u?Xw(u.offsetTop+u.offsetHeight-r+n,i):i}var lfe=c(T(),1),cfe=afe.forwardRef(function(t,o){return(0,lfe.jsx)(XM,{...t,ref:o,direction:"down"})});var ufe=c(oe(),1);var dfe=c(T(),1),ffe=ufe.forwardRef(function(t,o){return(0,dfe.jsx)(XM,{...t,ref:o,direction:"up"})});var tk=c(oe(),1);var QM=c(oe(),1),iG=QM.createContext(void 0);function pfe(){let e=QM.useContext(iG);if(e===void 0)throw new Error(Wt(56));return e}var mfe=c(T(),1),gfe=tk.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,[a,l]=tk.useState(),u=tk.useMemo(()=>({labelId:a,setLabelId:l}),[a,l]),d=De("div",t,{ref:o,props:[{role:"group","aria-labelledby":a},s]});return(0,mfe.jsx)(iG.Provider,{value:u,children:d})});var hfe=c(oe(),1);var bfe=hfe.forwardRef(function(t,o){let{render:r,className:n,style:i,id:s,...a}=t,{setLabelId:l}=pfe(),u=gn(s);return le(()=>(l(u),()=>{l(f=>f===u?void 0:f)}),[u,l]),De("div",t,{ref:o,props:[{id:u},a]})});var yfe=Hue;var vfe=c(_E(),1);function F$e(){return At}function z$e(){return!1}function j$e(){return!0}function _fe(){return(0,vfe.useSyncExternalStore)(F$e,z$e,j$e)}var l6t=c(oe(),1);var wfe=c(T(),1);function kfe(e){let{script:t}=e,{nonce:o}=MM();return _fe()?(0,wfe.jsx)("script",{nonce:o,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var Lc={};No(Lc,{Indicator:()=>Tfe,List:()=>Bfe,Panel:()=>Rfe,Root:()=>Sfe,Tab:()=>Cfe});var Qr=c(oe(),1);var JM=c(oe(),1),sG=JM.createContext(void 0);function fg(){let e=JM.useContext(sG);if(e===void 0)throw new Error(Wt(64));return e}var sd={tabActivationDirection:e=>({"data-activation-direction":e})};var aG=c(T(),1),Sfe=Qr.forwardRef(function(t,o){let{className:r,defaultValue:n=0,onValueChange:i,orientation:s="horizontal",render:a,value:l,style:u,...d}=t,f=t.defaultValue!==void 0,p=Qr.useRef([]),[m,g]=Qr.useState(()=>new Map),[h,b]=Mf({controlled:l,default:n,name:"Tabs",state:"value"}),v=l!==void 0,[y,_]=Qr.useState(()=>new Map),w=Qr.useRef(void 0),k=Qr.useCallback(U=>lG(y,U),[y]),[x,C]=Qr.useState(()=>({previousValue:h,tabActivationDirection:"none"})),{previousValue:E,tabActivationDirection:R}=x,S=R,I=!1;E!==h&&(S=xfe(E,h,s,y),I=E!=null&&h!=null&&k(h)==null);let O=I?E:h,A=E!==O||R!==S;le(()=>{A&&C({previousValue:O,tabActivationDirection:S})},[O,A,S]);let P=de((U,G)=>{let te=xfe(h,U,s,y);G.activationDirection=te,i?.(U,G),!G.isCanceled&&b(U)}),L=de((U,G)=>{i?.(U,Ke(G,void 0,void 0,{activationDirection:"none"}))}),H=de((U,G)=>(g(te=>{let re=new Map(te);return re.set(U,G),re}),()=>{g(te=>{if(te.get(U)!==G)return te;let re=new Map(te);return re.delete(U),re})})),N=Qr.useCallback(U=>m.get(U),[m]),M=Qr.useCallback(U=>{for(let G of y.values())if(U===G.value)return G.id},[y]),V=Qr.useMemo(()=>({getTabElementBySelectedValue:k,getTabIdByPanelValue:M,getTabPanelIdByValue:N,onValueChange:P,orientation:s,registerMountedTabPanel:H,setTabMap:_,tabActivationDirection:S,value:h}),[k,M,N,P,s,H,_,S,h]),j=Qr.useMemo(()=>{for(let U of y.values())if(U.value===h)return U},[y,h]),D=Qr.useMemo(()=>{for(let U of y.values())if(!U.disabled)return U.value},[y]),z=Qr.useRef(!f),$=Qr.useRef(n),J=Qr.useRef(f),Q=Qr.useRef(!1);le(()=>{if(v)return;function U(ae,ie){b(ae),C({previousValue:ae,tabActivationDirection:"none"}),L(ae,ie),z.current=!1}if(y.size===0){Q.current&&h!==null&&!w.current?.isConnected&&U(null,Te.missing);return}Q.current=!0,w.current=y.keys().next().value;let G=j?.disabled,te=j==null&&h!==null;if(!G&&h===$.current&&(J.current=!1),J.current&&G&&h===$.current)return;let re=z.current;if(G||te){let ae=D??null;if(h===ae){z.current=!1;return}let ie=Te.missing;re?ie=Te.initial:G&&(ie=Te.disabled),U(ae,ie);return}re&&j!=null&&(L(h,Te.initial),z.current=!1)},[D,v,L,j,b,y,h]);let X=De("div",t,{state:{orientation:s,tabActivationDirection:S},ref:o,props:d,stateAttributesMapping:sd});return(0,aG.jsx)(sG.Provider,{value:V,children:(0,aG.jsx)(Sw,{elementsRef:p,children:X})})});function lG(e,t){for(let[o,r]of e.entries())if(t===r.value)return o;return null}function xfe(e,t,o,r){if(e==null||t==null)return"none";let[n,i,s]=o==="horizontal"?["left","left","right"]:["top","up","down"],a=lG(r,e),l=lG(r,t);if(a==null||l==null)return a!==l&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?s:i:"none";let u=a.getBoundingClientRect()[n],d=l.getBoundingClientRect()[n];return d<u?i:d>u?s:"none"}var jf=c(oe(),1);var eN=c(oe(),1),cG=eN.createContext(void 0);function tN(){let e=eN.useContext(cG);if(e===void 0)throw new Error(Wt(65));return e}var Cfe=jf.forwardRef(function(t,o){let{className:r,disabled:n=!1,render:i,value:s,id:a,nativeButton:l=!0,style:u,...d}=t,{value:f,getTabPanelIdByValue:p,onValueChange:m,orientation:g,tabActivationDirection:h}=fg(),{activateOnFocus:b,registerTabResizeObserverElement:v,tabsListElement:y}=tN(),{highlightedIndex:_,onHighlightedIndexChange:w}=Bw(),k=gn(a),x=jf.useMemo(()=>({disabled:n,id:k,value:s}),[n,k,s]),{compositeProps:C,compositeRef:E,index:R}=tde({metadata:x}),S=s===f,I=jf.useRef(!1),O=jf.useRef(null),A=de(Q=>{O.current?.(),O.current=Q?v(Q):null});le(()=>{if(I.current){I.current=!1;return}if(!(S&&R>-1&&_!==R))return;let Q=y;if(Q!=null){let W=wr(ot(Q));if(W&&Ge(Q,W))return}n||w(R)},[S,R,_,w,n,y]);let{getButtonProps:P,buttonRef:L}=Ic({disabled:n,native:l,focusableWhenDisabled:!0}),H=p(s),N=jf.useRef(!1),M=jf.useRef(!1);function V(Q){m(s,Ke(Te.none,Q.nativeEvent,void 0,{activationDirection:"none"}))}function j(Q){S||n||V(Q)}function D(Q){S||n||b&&(!N.current||M.current)&&V(Q)}function z(Q){if(S||n)return;N.current=!0,M.current=Q.button===0;let W=ot(Q.currentTarget);function X(){N.current=!1,M.current=!1,W.removeEventListener("pointerup",X),W.removeEventListener("pointercancel",X)}W.addEventListener("pointerup",X),W.addEventListener("pointercancel",X)}return De("button",t,{state:{disabled:n,active:S,orientation:g,tabActivationDirection:h},ref:[o,L,E,A],props:[C,{role:"tab","aria-controls":H,"aria-selected":S,id:k,onClick:j,onFocus:D,onPointerDown:z,[jM]:S?"":void 0,onKeyDownCapture(){I.current=!0}},d,P],stateAttributesMapping:sd})});var ok=c(oe(),1);var oN=c(T(),1),Efe,H$e={...sd,activeTabPosition:()=>null,activeTabSize:()=>null},Tfe=ok.forwardRef(function(t,o){let{className:r,render:n,renderBeforeHydration:i=!1,style:s,...a}=t,{getTabElementBySelectedValue:l,orientation:u,tabActivationDirection:d,value:f}=fg(),{tabsListElement:p,registerIndicatorUpdateListener:m}=tN(),g=zce();ok.useEffect(()=>m(g),[m,g]);let h=0,b=0,v=0,y=0,_=0,w=0,k=!1;if(f!=null&&p!=null){let O=l(f);if(O!=null){k=!0;let{width:A,height:P}=$w(O),{width:L,height:H}=$w(p),N=O.getBoundingClientRect(),M=p.getBoundingClientRect(),V=L>0?M.width/L:1,j=H>0?M.height/H:1;if(V>Number.EPSILON&&j>Number.EPSILON){let z=N.left-M.left,$=N.top-M.top;h=z/V+p.scrollLeft-p.clientLeft,v=$/j+p.scrollTop-p.clientTop}else h=O.offsetLeft,v=O.offsetTop;_=A,w=P,b=p.scrollWidth-h-_,y=p.scrollHeight-v-w}}let x=k?{left:h,right:b,top:v,bottom:y}:null,C=k?{width:_,height:w}:null,E=k?{"--active-tab-left":`$h}px`,"--active-tab-right":`$b}px`,"--active-tab-top":`$v}px`,"--active-tab-bottom":`$y}px`,"--active-tab-width":`$_}px`,"--active-tab-height":`$w}px`}:void 0,R=k&&_>0&&w>0,I=De("span",t,{state:{orientation:u,activeTabPosition:x,activeTabSize:C,tabActivationDirection:d},ref:o,props:[{role:"presentation",style:E,hidden:!R},a,{suppressHydrationWarning:!0}],stateAttributesMapping:H$e});return f==null?null:(0,oN.jsxs)(ok.Fragment,{children:[I,i&&(Efe||(Efe=(0,oN.jsx)(kfe,{script:""})))]})});var rN=c(oe(),1);var W$e={...sd,...Gn},Rfe=rN.forwardRef(function(t,o){let{className:r,value:n,render:i,keepMounted:s=!1,style:a,...l}=t,{value:u,getTabIdByPanelValue:d,orientation:f,tabActivationDirection:p,registerMountedTabPanel:m}=fg(),g=gn(),{ref:h,index:b}=Tw(),v=n===u,{mounted:y,transitionStatus:_,setMounted:w}=Ai(v),k=!y,x=d(n),C={hidden:k,orientation:f,tabActivationDirection:p,transitionStatus:_},E=rN.useRef(null),R=De("div",t,{state:C,ref:[o,h,E],props:[{"aria-labelledby":x,hidden:k,id:g,role:"tabpanel",tabIndex:v?0:-1,inert:jw(!v),"data-index":b},l],stateAttributesMapping:W$e});return $n({open:v,ref:E,onComplete(){v||w(!1)}}),le(()=>{if(!(g==null||k&&!s))return m(n,g)},[k,s,n,g,m]),s||y?R:null});var Nc=c(oe(),1);var uG=c(T(),1),Bfe=Nc.forwardRef(function(t,o){let{activateOnFocus:r=!1,className:n,loopFocus:i=!0,render:s,style:a,...l}=t,{orientation:u,setTabMap:d,tabActivationDirection:f}=fg(),[p,m]=Nc.useState(0),[g,h]=Nc.useState(null),b=Nc.useRef(new Set),v=Nc.useRef(new Set),y=Nc.useRef(null);le(()=>{if(typeof ResizeObserver>"u")return;let E=new ResizeObserver(()=>{b.current.forEach(R=>{R()})});return y.current=E,g&&E.observe(g),v.current.forEach(R=>{E.observe(R)}),()=>{E.disconnect(),y.current=null}},[g]);let _=de(E=>(b.current.add(E),()=>{b.current.delete(E)})),w=de(E=>(v.current.add(E),y.current?.observe(E),()=>{v.current.delete(E),y.current?.unobserve(E)})),k={orientation:u,tabActivationDirection:f},x={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},C=Nc.useMemo(()=>({activateOnFocus:r,registerIndicatorUpdateListener:_,registerTabResizeObserverElement:w,tabsListElement:g}),[r,_,w,g]);return(0,uG.jsx)(cG.Provider,{value:C,children:(0,uG.jsx)(Rde,{render:s,className:n,style:a,state:k,refs:[o,h],props:[x,l],stateAttributesMapping:sd,highlightedIndex:p,enableHomeAndEndKeys:!0,loopFocus:i,orientation:u,onHighlightedIndexChange:m,onMapChange:d,disabledIndices:ml})})});var Hs={};No(Hs,{Arrow:()=>Kfe,Handle:()=>ME,Popup:()=>$fe,Portal:()=>Hfe,Positioner:()=>Ufe,Provider:()=>Zfe,Root:()=>Nfe,Trigger:()=>Ffe,Viewport:()=>Qfe,createHandle:()=>Jfe});var rk=c(oe(),1);var nN=c(oe(),1),dG=nN.createContext(void 0);function kl(e){let t=nN.useContext(dG);if(t===void 0&&!e)throw new Error(Wt(72));return t}var Ife=c(oe(),1);var Pfe={...oue,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},iN=class extends od{constructor(t,o,r){let n=new Vf;super(Afe(t,n,o,r),Mfe(n),Pfe)}setOpen=(t,o)=>{$ce(this,t,o,{extraState:{openChangeReason:o.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,Ke(Te.triggerPress,t))}};function Ofe(){let e=new Vf,t=new oM(Object.freeze(Afe(void 0,e)),Object.freeze(Mfe(e)),Pfe);return Object.assign(t,{setOpen:At,cancelPendingOpen:At})}function Afe(e,t,o,r=!1){let n={...Jce(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e};return n.floatingRootContext=eue(t,o,r),n}function Mfe(e){return{popupRef:Ife.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var AE=c(T(),1),Nfe=SU(function(t){let{disabled:o=!1,defaultOpen:r=!1,open:n,disableHoverablePopup:i=!1,trackCursorAxis:s="none",actionsRef:a,onOpenChange:l,onOpenChangeComplete:u,handle:d,triggerId:f,defaultTriggerId:p=null,children:m}=t,g=Uce((I,O)=>new iN({open:r,openProp:n,activeTriggerId:p,triggerIdProp:f},I,O));g.useControlledProp("openProp",n),g.useControlledProp("triggerIdProp",f),g.useContextCallback("onOpenChange",l),g.useContextCallback("onOpenChangeComplete",u);let h=g.useState("open"),b=!o&&h,v=g.useState("activeTriggerId"),y=g.useState("mounted"),_=g.useState("payload");g.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:i,disabled:o}),Kce(g,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:w,transitionStatus:k}=qce(b,g),x=g.useState("isInstantPhase"),C=g.useState("instantType"),E=g.useState("lastOpenChangeReason"),R=rk.useRef(null);le(()=>{h&&o&&g.setOpen(!1,Ke(Te.disabled))},[h,o,g]),le(()=>{k==="ending"&&E===Te.none||k!=="ending"&&x?(C!=="delay"&&(R.current=C),g.set("instantType","delay")):R.current!==null&&(g.set("instantType",R.current),R.current=null)},[k,x,E,C,g]),le(()=>{b&&v==null&&g.set("payload",void 0)},[g,v,b]),rk.useImperativeHandle(a,()=>({unmount:w,close:()=>g.setOpen(!1,Ke(Te.imperativeAction))}),[w,g]);let S=b||y||!o&&s!=="none";return(0,AE.jsxs)(dG.Provider,{value:g,children:[d&&(0,AE.jsx)(Gce,{handle:d,store:g}),S&&(0,AE.jsx)(U$e,{store:g,disabled:o,trackCursorAxis:s}),typeof m=="function"?m({payload:_}):m]})});function U$e({store:e,disabled:t,trackCursorAxis:o}){let r=e.useState("floatingRootContext"),n=bE(r,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),i=fU(r,{enabled:!t&&o!=="none",axis:o==="none"?void 0:o}),s=rk.useMemo(()=>Mt(i.reference,n.reference),[i.reference,n.reference]);return Zce(e,{activeTriggerProps:s,inactiveTriggerProps:s,popupProps:n.floating??Ut}),null}var aN=c(oe(),1);var sN=c(oe(),1),fG=sN.createContext(void 0);function Lfe(){return sN.useContext(fG)}var Vfe="data-base-ui-tooltip-trigger";function Dfe(e){if("composedPath"in e){let o=e.composedPath();for(let r=0;r<o.length;r+=1){let n=o[r];if(ct(n))return n}}let t=e.target;return ct(t)?t:null}function $$e(e){let t=e;for(;t;){let o=t.closest(`[$Vfe}]`);if(o)return o;let r=t.getRootNode();t="host"in r&&ct(r.host)?r.host:null}return null}var Ffe=Dce(function(t,o){let{render:r,className:n,style:i,handle:s,payload:a,disabled:l,delay:u,closeOnClick:d=!0,closeDelay:f,id:p,...m}=t,g=kl(!0),b=nue(s)??g;if(!b)throw new Error(Wt(82));let v=gn(p),y=b.useState("isTriggerActive",v),_=b.useState("isOpenedByTrigger",v),w=b.useState("floatingRootContext"),k=aN.useRef(null),x=u??600,C=f??0,{registerTrigger:E,isMountedByThisTrigger:R}=Yce(v,k,b,{payload:a,closeOnClick:d,closeDelay:C}),S=Lfe(),{delayRef:I,isInstantPhase:O,hasProvider:A}=ZW(w,{open:_}),P=zw(w);b.useSyncedValue("isInstantPhase",O);let L=b.useState("disabled"),H=l??L,N=so(H),M=b.useState("trackCursorAxis"),V=b.useState("disableHoverablePopup"),j=aN.useRef(!1),D=Fo(),z=aN.useRef(void 0);function $(){return A?gl(I.current,"open")===0?0:u??S??600:x}function J(ie){let be=k.current;if(!be||!ie)return!1;let pe=$$e(ie);return pe!==null&&pe!==be&&Ge(be,pe)}function Q(ie){let be=J(ie);return j.current=be,be&&(P.openChangeTimeout.clear(),P.restTimeout.clear(),P.restTimeoutPending=!1,D.clear()),be}let W=MU(w,{enabled:!H,mouseOnly:!0,move:!1,handleClose:!V&&M!=="both"?VU():null,restMs:$,delay(){return f==null&&A?{close:gl(I.current,"close")}:{close:C}},triggerElementRef:k,isActiveTrigger:y,isClosing:()=>b.select("transitionStatus")==="ending",shouldOpen(){return!j.current}}),X=IU(w,{enabled:!H}).reference,U=ie=>{let be=j.current,pe=Dfe(ie),ke=Q(pe),ye=k.current,Pe=ye&&pe&&Ge(ye,pe);if(ke&&b.select("open")&&b.select("lastOpenChangeReason")===Te.triggerHover){b.setOpen(!1,Ke(Te.triggerHover,ie));return}if(be&&!ke&&Pe&&!N.current&&!b.select("open")&&ye&&xa(z.current)){let _e=()=>{!j.current&&!N.current&&!b.select("open")&&b.setOpen(!0,Ke(Te.triggerHover,ie,ye))},ve=$();ve===0?(D.clear(),_e()):D.start(ve,_e)}},G=b.useState("triggerProps",R);return De("button",t,{state:{open:_},ref:[o,E,k],props:[W,X,R||M!=="none"?G:void 0,{onMouseOver(ie){U(ie.nativeEvent)},onFocus(ie){J(Dfe(ie.nativeEvent))&&ie.preventBaseUIHandler()},onMouseLeave(){j.current=!1,D.clear(),z.current=void 0},onPointerEnter(ie){z.current=ie.pointerType},onPointerDown(ie){z.current=ie.pointerType,b.set("closeOnClick",d),d&&!b.select("open")&&b.cancelPendingOpen(ie.nativeEvent)},onClick(ie){d&&!b.select("open")&&b.cancelPendingOpen(ie.nativeEvent)},id:v,"data-trigger-disabled":H?"":void 0,[Vfe]:H?void 0:""},m],stateAttributesMapping:rM})});var jfe=c(oe(),1);var lN=c(oe(),1),pG=lN.createContext(void 0);function zfe(){let e=lN.useContext(pG);if(e===void 0)throw new Error(Wt(70));return e}var mG=c(T(),1),Hfe=jfe.forwardRef(function(t,o){let{keepMounted:r=!1,...n}=t;return kl().useState("mounted")||r?(0,mG.jsx)(pG.Provider,{value:r,children:(0,mG.jsx)(Pde,{ref:o,...n})}):null});var uN=c(oe(),1);var cN=c(oe(),1),gG=cN.createContext(void 0);function nk(){let e=cN.useContext(gG);if(e===void 0)throw new Error(Wt(71));return e}var Wfe=c(T(),1),Ufe=uN.forwardRef(function(t,o){let{render:r,className:n,anchor:i,positionMethod:s="absolute",side:a="top",align:l="center",sideOffset:u=0,alignOffset:d=0,collisionBoundary:f="clipping-ancestors",collisionPadding:p=5,arrowPadding:m=5,sticky:g=!1,disableAnchorTracking:h=!1,collisionAvoidance:b=$le,style:v,...y}=t,_=kl(),w=zfe(),k=_.useState("open"),x=_.useState("mounted"),C=_.useState("trackCursorAxis"),E=_.useState("disableHoverablePopup"),R=_.useState("floatingRootContext"),S=_.useState("instantType"),I=_.useState("transitionStatus"),O=_.useState("adaptiveOrigin"),A=wM({anchor:i,positionMethod:s,floatingRootContext:R,mounted:x,side:a,sideOffset:u,align:l,alignOffset:d,collisionBoundary:f,collisionPadding:p,sticky:g,arrowPadding:m,disableAnchorTracking:h,keepMounted:w,collisionAvoidance:b,adaptiveOrigin:O}),P=uN.useMemo(()=>({open:k,side:A.side,align:A.align,anchorHidden:A.anchorHidden,instant:C!=="none"?"tracking-cursor":S}),[k,A.side,A.align,A.anchorHidden,C,S]),L=kM(t,P,{styles:A.positionerStyles,transitionStatus:I,props:y,refs:[o,_.useStateSetter("positionerElement")],hidden:!x,inert:!k||C==="both"||E});return(0,Wfe.jsx)(gG.Provider,{value:A,children:L})});var Gfe=c(oe(),1);var $fe=Gfe.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=kl(),{side:l,align:u}=nk(),d=a.useState("open"),f=a.useState("instantType"),p=a.useState("transitionStatus"),m=a.useState("popupProps"),g=a.useState("floatingRootContext"),h=a.useState("disabled"),b=a.useState("closeDelay");$n({open:d,ref:a.context.popupRef,onComplete(){d&&a.context.onOpenChangeComplete?.(!0)}}),AU(g,{enabled:!h,closeDelay:b});let v=a.useStateSetter("popupElement");return De("div",t,{state:{open:d,side:l,align:u,instant:f,transitionStatus:p},ref:[o,a.context.popupRef,v],props:[KA,m,Gw(p),s],stateAttributesMapping:nM})});var Yfe=c(oe(),1);var Kfe=Yfe.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=kl(),{arrowRef:l,side:u,align:d,arrowUncentered:f,arrowStyles:p}=nk(),m=a.useState("open"),g=a.useState("instantType");return De("div",t,{state:{open:m,side:u,align:d,uncentered:f,instant:g},ref:[o,l],props:[{style:p,"aria-hidden":!0},s],stateAttributesMapping:Ff})});var qfe=c(oe(),1);var hG=c(T(),1),Zfe=function(t){let{delay:o,closeDelay:r,timeout:n=400}=t,i=qfe.useMemo(()=>({open:o,close:r}),[o,r]);return(0,hG.jsx)(fG.Provider,{value:o,children:(0,hG.jsx)(qW,{delay:i,timeoutMs:n,children:t.children})})};var Xfe=c(oe(),1);var Qfe=Xfe.forwardRef(function(t,o){let{render:r,className:n,style:i,children:s,...a}=t,l=kl(),u=nk(),d=l.useState("instantType"),{children:f,state:p}=dde({store:l,side:u.side,children:s}),m={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:d};return De("div",t,{state:m,ref:o,props:[a,{children:f}],stateAttributesMapping:ude})});var ME=class extends UA{constructor(){super(Ofe(),"Tooltip")}open(t){this.openByTrigger(t)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Jfe(){return new ME}function Lr(e){return De(e.defaultTagName??"div",e,e)}var ope=c(F(),1),bG="data-wp-hash";function yG(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&K$e(document)),e.__wpStyleRuntime}function Y$e(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$bG}]`))if(o.getAttribute(bG)===t)return!0;return!1}function rpe(e,t,o){if(!e.head)return;let r=yG(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Y$e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(bG,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function K$e(e){let t=yG();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)rpe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function npe(e,t){let o=yG();o.styles.set(e,t);for(let r of o.documents.keys())rpe(r,e,t)}typeof process>"u",npe("3167e7d116",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{text-wrap:pretty;margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var epe={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};typeof process>"u",npe("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var tpe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},ir=(0,ope.forwardRef)(function({variant:t="body-md",render:o,className:r,...n},i){return Lr({render:o,defaultTagName:"span",ref:i,props:Mt(n,{className:Y(epe.text,tpe.heading,tpe.p,epe[t],r)})})});var lpe=c(T(),1),vG="data-wp-hash";function _G(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Z$e(document)),e.__wpStyleRuntime}function q$e(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$vG}]`))if(o.getAttribute(vG)===t)return!0;return!1}function ape(e,t,o){if(!e.head)return;let r=_G(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(q$e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(vG,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Z$e(e){let t=_G();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)ape(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function X$e(e,t){let o=_G();o.styles.set(e,t);for(let r of o.documents.keys())ape(r,e,t)}typeof process>"u",X$e("59353631d1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._96e6251aad1a6136__badge{border-radius:var(--wpds-border-radius-lg,8px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wpds-dimension-padding-sm,8px)}._99f7158cb520f750__is-high-intent{background-color:var(--wpds-color-background-surface-error,#f7e6e3);color:var(--wpds-color-foreground-content-error,#470000)}.c20ebef2365bc8b7__is-medium-intent{background-color:var(--wpds-color-background-surface-warning,#fae8c8);color:var(--wpds-color-foreground-content-warning,#2e1900)}._365e1626c6202e52__is-low-intent{background-color:var(--wpds-color-background-surface-caution,#ffea8f);color:var(--wpds-color-foreground-content-caution,#281d00)}._33f8198127ddf4ef__is-stable-intent{background-color:var(--wpds-color-background-surface-success,#ccf4d2);color:var(--wpds-color-foreground-content-success,#002900)}._04c1aca8fc449412__is-informational-intent{background-color:var(--wpds-color-background-surface-info,#e0ebf8);color:var(--wpds-color-foreground-content-info,#001b4f)}._90726e69d495ec19__is-draft-intent{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}._898f4a544993bd39__is-none-intent{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);padding-block:calc(var(--wpds-dimension-padding-xs, 4px) - var(--wpds-border-width-xs, 1px));padding-inline:calc(var(--wpds-dimension-padding-sm, 8px) - var(--wpds-border-width-xs, 1px))}}}");var ipe={badge:"_96e6251aad1a6136__badge","is-high-intent":"_99f7158cb520f750__is-high-intent","is-medium-intent":"c20ebef2365bc8b7__is-medium-intent","is-low-intent":"_365e1626c6202e52__is-low-intent","is-stable-intent":"_33f8198127ddf4ef__is-stable-intent","is-informational-intent":"_04c1aca8fc449412__is-informational-intent","is-draft-intent":"_90726e69d495ec19__is-draft-intent","is-none-intent":"_898f4a544993bd39__is-none-intent"},wG=(0,spe.forwardRef)(function({intent:t="none",className:o,...r},n){return(0,lpe.jsx)(ir,{ref:n,className:Y(ipe.badge,ipe[`is-$t}-intent`],o),...r,variant:"body-sm"})});var ao={};No(ao,{Popup:()=>mN,Portal:()=>fN,Positioner:()=>pN,Provider:()=>Ppe,Root:()=>hN,Trigger:()=>gN});var Spe=c(F(),1);var fpe=c(F(),1);var xG="data-wp-hash";function SG(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&J$e(document)),e.__wpStyleRuntime}function Q$e(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$xG}]`))if(o.getAttribute(xG)===t)return!0;return!1}function upe(e,t,o){if(!e.head)return;let r=SG(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Q$e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(xG,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function J$e(e){let t=SG();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)upe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function eYe(e,t){let o=SG();o.styles.set(e,t);for(let r of o.documents.keys())upe(r,e,t)}typeof process>"u",eYe("be37f31c1e","._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");var cpe={slot:"_11fc52b637ff8a7e__slot"},dpe="data-wp-compat-overlay-slot";function tYe(){return typeof document>"u"?null:document}function oYe(){let e;try{e=window.top?.wp}catch{}let t=e??window.wp;return typeof t?.components=="object"&&t.components!==null}var ad=null;function kG(e){return e.setAttribute("aria-hidden","false"),e}function rYe(e){let t=e.createElement("div");return t.setAttribute(dpe,""),cpe.slot&&t.classList.add(cpe.slot),e.body.appendChild(t),t}function dN(){if(typeof window>"u"||!oYe()&&window.__wpUiCompatOverlaySlotEnabled!==!0)return;let e=tYe();if(!e||!e.body)return;if(ad&&ad.ownerDocument===e&&ad.isConnected)return kG(ad);let t=e.querySelector(`[$dpe}]`);return t instanceof HTMLDivElement?(ad=kG(t),ad):(ad?.isConnected&&ad.remove(),ad=kG(rYe(e)),ad)}var ppe=c(T(),1),fN=(0,fpe.forwardRef)(function({container:t,...o},r){return(0,ppe.jsx)(Hs.Portal,{container:t??dN(),...o,ref:r})});var mpe=c(F(),1),bpe=c(T(),1),CG="data-wp-hash";function EG(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&iYe(document)),e.__wpStyleRuntime}function nYe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$CG}]`))if(o.getAttribute(CG)===t)return!0;return!1}function gpe(e,t,o){if(!e.head)return;let r=EG(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(nYe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(CG,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function iYe(e){let t=EG();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)gpe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function hpe(e,t){let o=EG();o.styles.set(e,t);for(let r of o.documents.keys())gpe(r,e,t)}typeof process>"u",hpe("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var sYe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",hpe("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var aYe={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},pN=(0,mpe.forwardRef)(function({align:t="center",className:o,side:r="top",sideOffset:n=4,...i},s){return(0,bpe.jsx)(Hs.Positioner,{ref:s,align:t,side:r,sideOffset:n,...i,className:Y(sYe["box-sizing"],aYe.positioner,o)})});var ype=c(F(),1);function ik(e,t,o){return(0,ype.cloneElement)(e??t,{children:o})}var lYe=c(_pe(),1);var wpe=c(mI(),1),{lock:E8t,unlock:kpe}=(0,wpe.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/ui");function cYe(){let e=lYe;if(e.ThemeProvider)return e.ThemeProvider;if(!e.privateApis)throw new Error("@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`.");return kpe(e.privateApis).ThemeProvider}var xpe=cYe();var NE=c(T(),1),TG="data-wp-hash";function RG(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&dYe(document)),e.__wpStyleRuntime}function uYe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$TG}]`))if(o.getAttribute(TG)===t)return!0;return!1}function Cpe(e,t,o){if(!e.head)return;let r=RG(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(uYe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(TG,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function dYe(e){let t=RG();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Cpe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function fYe(e,t){let o=RG();o.styles.set(e,t);for(let r of o.documents.keys())Cpe(r,e,t)}typeof process>"u",fYe("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var pYe={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},mYe={background:"#1e1e1e"},mN=(0,Spe.forwardRef)(function({portal:t,positioner:o,children:r,className:n,...i},s){let a=(0,NE.jsx)(xpe,{color:mYe,children:(0,NE.jsx)(Hs.Popup,{ref:s,className:Y(pYe.popup,n),...i,children:r})}),l=ik(o,(0,NE.jsx)(pN,{}),a);return ik(t,(0,NE.jsx)(fN,{}),l)});var Epe=c(F(),1),Tpe=c(T(),1),gN=(0,Epe.forwardRef)(function(t,o){return(0,Tpe.jsx)(Hs.Trigger,{ref:o,...t})});var Rpe=c(Z(),1),Bpe=c(T(),1);function sk({children:e}){return(0,Bpe.jsx)(PM,{direction:(0,Rpe.isRTL)()?"rtl":"ltr",children:e})}var BG=c(T(),1);function hN(e){return(0,BG.jsx)(sk,{children:(0,BG.jsx)(Hs.Root,{...e})})}var Ipe=c(T(),1);function Ppe({...e}){return(0,Ipe.jsx)(Hs.Provider,{...e})}var Ope=c(F(),1),Ape=c(me(),1),Mpe=c(T(),1),Jr=(0,Ope.forwardRef)(function({icon:t,size:o=24,style:r,...n},i){let s=t.props.style||r?{...t.props.style,...r}:void 0;return(0,Mpe.jsx)(Ape.SVG,{ref:i,...t.props,...n,...s?{style:s}:{},width:o,height:o})});var LE=c(F(),1),yN=c(Z(),1);var Npe=c(F(),1),IG="data-wp-hash";function PG(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&hYe(document)),e.__wpStyleRuntime}function gYe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$IG}]`))if(o.getAttribute(IG)===t)return!0;return!1}function Lpe(e,t,o){if(!e.head)return;let r=PG(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(gYe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(IG,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function hYe(e){let t=PG();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Lpe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function bYe(e,t){let o=PG();o.styles.set(e,t);for(let r of o.documents.keys())Lpe(r,e,t)}typeof process>"u",bYe("fa606a57ae","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");var yYe={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},ht=(0,Npe.forwardRef)(function({render:t,...o},r){return Lr({render:t,ref:r,props:Mt({className:yYe["visually-hidden"]},o,{"data-visually-hidden":""})})});var bN=c(T(),1);function Dpe({"aria-describedby":e,"aria-keyshortcuts":t,shortcut:o}){let r=(0,LE.useId)(),n=o?r:void 0,i=[e,n].filter(Boolean).join(" ");return{descriptionId:n,targetProps:{"aria-describedby":i||void 0,"aria-keyshortcuts":o?.ariaKeyShortcut??t}}}var Vpe=(0,LE.forwardRef)(function({descriptionId:t,shortcut:o},r){return(0,bN.jsx)(ht,{id:t,"aria-hidden":"true",render:(0,bN.jsx)("span",{ref:r}),children:(0,yN.sprintf)((0,yN.__)("Keyboard shortcut: %s"),o.label??o.ariaKeyShortcut)})}),Fpe=(0,LE.forwardRef)(function({className:t,shortcut:o},r){return(0,bN.jsx)("span",{ref:r,"aria-hidden":"true",className:t,dir:"ltr",children:o.displayShortcut})});var zpe={align:"start",sideOffset:8,collisionPadding:12};var jpe=c(Yo(),1),vN=c(F(),1),Hpe=c(Z(),1),Upe=c(T(),1),OG="data-wp-hash";function AG(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&_Ye(document)),e.__wpStyleRuntime}function vYe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$OG}]`))if(o.getAttribute(OG)===t)return!0;return!1}function Wpe(e,t,o){if(!e.head)return;let r=AG(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(vYe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(OG,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function _Ye(e){let t=AG();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Wpe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function _N(e,t){let o=AG();o.styles.set(e,t);for(let r of o.documents.keys())Wpe(r,e,t)}typeof process>"u",_N("effc4e3032",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);left:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');var DE={button:"_97b0fc33c028be1a__button","is-unstyled":"abbb272e2ce49bd6__is-unstyled","is-loading":"_914b42f315c0e580__is-loading","is-small":"_908205475f9f2a92__is-small",icon:"_9f6fc6553aeb36fe__icon","is-brand":"dd460c965226cc77__is-brand","is-outline":"_62d5a778b7b258ee__is-outline","is-minimal":"ad0619a3217c6a5b__is-minimal","is-neutral":"e722a8f96726aa99__is-neutral","is-solid":"b50b3358c5fb4d0b__is-solid","is-compact":"cf59cf1b69629838__is-compact","loading-animation":"_5a1d53da6f830c8d__loading-animation"};typeof process>"u",_N("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var wYe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",_N("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var kYe={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",_N("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var xYe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},Gpe=(0,vN.forwardRef)(function({tone:t="brand",variant:o="solid",size:r="default",className:n,focusableWhenDisabled:i=!0,disabled:s,loading:a,loadingAnnouncement:l=(0,Hpe.__)("Loading"),children:u,...d},f){let p=Y(xYe.button,wYe["box-sizing"],kYe["outset-ring--focus-except-active"],o!=="unstyled"&&DE.button,DE[`is-$t}`],DE[`is-$o}`],DE[`is-$r}`],a&&DE["is-loading"],n);return(0,vN.useEffect)(()=>{a&&l&&(0,jpe.speak)(l)},[a,l]),(0,Upe.jsx)($U,{ref:f,className:p,focusableWhenDisabled:i,disabled:s??a,...d,children:u})});var $pe=c(F(),1);var Kpe=c(T(),1),MG="data-wp-hash";function NG(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&CYe(document)),e.__wpStyleRuntime}function SYe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$MG}]`))if(o.getAttribute(MG)===t)return!0;return!1}function Ype(e,t,o){if(!e.head)return;let r=NG(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(SYe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(MG,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function CYe(e){let t=NG();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Ype(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function EYe(e,t){let o=NG();o.styles.set(e,t);for(let r of o.documents.keys())Ype(r,e,t)}typeof process>"u",EYe("effc4e3032",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);left:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');var TYe={button:"_97b0fc33c028be1a__button","is-unstyled":"abbb272e2ce49bd6__is-unstyled","is-loading":"_914b42f315c0e580__is-loading","is-small":"_908205475f9f2a92__is-small",icon:"_9f6fc6553aeb36fe__icon","is-brand":"dd460c965226cc77__is-brand","is-outline":"_62d5a778b7b258ee__is-outline","is-minimal":"ad0619a3217c6a5b__is-minimal","is-neutral":"e722a8f96726aa99__is-neutral","is-solid":"b50b3358c5fb4d0b__is-solid","is-compact":"cf59cf1b69629838__is-compact","loading-animation":"_5a1d53da6f830c8d__loading-animation"},LG=(0,$pe.forwardRef)(function({className:t,icon:o,...r},n){return(0,Kpe.jsx)(Jr,{ref:n,icon:o,className:Y(TYe.icon,t),size:24,...r})});LG.displayName="Button.Icon";var wN=Object.assign(Gpe,{Icon:LG});function qpe(e,t,o="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:o}).format(t).split(/\s/g).slice(2).join(" ")}var RYe={},VE={};function Dc(e,t){try{let r=(RYe[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in VE?VE[r]:Zpe(r,r.split(":"))}catch{if(e in VE)return VE[e];let o=e?.match(BYe);return o?Zpe(e,o.slice(1)):NaN}}var BYe=/([+-]\d\d):?(\d\d)?/;function Zpe(e,t){let o=+(t[0]||0),r=+(t[1]||0),n=+(t[2]||0)/60;return VE[e]=o*60+r>0?o*60+r+n:o*60-r-n}var pg=class e extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Dc(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),Jpe(this,t)):this.setTime(Date.now())}static tz(t,...o){return o.length?new e(...o,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let t=-Dc(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),kN(this),+this}[Symbol.for("constructDateFrom")](t){return new e(+new Date(t),this.timeZone)}},Xpe=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Xpe.test(e))return;let t=e.replace(Xpe,"$1UTC");pg.prototype[t]&&(e.startsWith("get")?pg.prototype[e]=function(){return this.internal[t]()}:(pg.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),IYe(this),+this},pg.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),kN(this),+this}))});function kN(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Dc(e.timeZone,e)*60))}function IYe(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Jpe(e)}function Jpe(e,t){let o=Array.isArray(t)?PYe(t):+e.internal,r=Dc(e.timeZone,e),n=r>0?Math.floor(r):Math.ceil(r),i=new Date(+e);i.setUTCHours(i.getUTCHours()-1);let s=-new Date(+e).getTimezoneOffset(),a=-new Date(+i).getTimezoneOffset(),l=s-a,u=s;if(l&&s!==n){let R=Date.prototype.getHours.apply(e),S=Array.isArray(t)?t[3]||0:e.internal.getUTCHours();if(R!==S){let I=new Date(+e),O=s-n;O&&I.setUTCMinutes(I.getUTCMinutes()+O);let A=Dc(e.timeZone,I);(A>0?Math.floor(A):Math.ceil(A))===n&&(u=a)}}let d=u-n;d&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+d);let f=new Date(+e);f.setUTCSeconds(0);let p=s>0?f.getSeconds():(f.getSeconds()-60)%60,m=Math.round(-(Dc(e.timeZone,e)*60))%60;(m||p)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+m+p);let g=Dc(e.timeZone,e),h=g>0?Math.floor(g):Math.ceil(g),v=-new Date(+e).getTimezoneOffset()-h,y=h!==n,_=v-d,w=h-n,k=o-h*60*1e3,x=w>0&&Qpe(e)-o===w*60*1e3&&Qpe(e,k)!==o;if(y&&_&&!x){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+_);let R=Dc(e.timeZone,e),S=R>0?Math.floor(R):Math.ceil(R),I=h-S;I&&_<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+I)}kN(e);let E=(t?o:o+m*1e3)-+e.internal;E&&Math.abs(E)<1800*1e3&&(Date.prototype.setTime.call(e,+e+E),kN(e))}function PYe(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function Qpe(e,t){let o=new Date(t??+e);return o.setUTCSeconds(o.getUTCSeconds()-Math.round(-Dc(e.timeZone,o)*60)),+o}var en=class e extends pg{static tz(t,...o){return o.length?new e(...o,t):new e(Date.now(),t)}toISOString(){let[t,o,r]=this.tzComponents(),n=`$t}$o}:$r}`;return this.internal.toISOString().slice(0,-1)+n}toString(){return`$this.toDateString()} $this.toTimeString()}`}toDateString(){let[t,o,r,n]=this.internal.toUTCString().split(" ");return`$t?.slice(0,-1)} $r} $o} $n}`}toTimeString(){let t=this.internal.toUTCString().split(" ")[4],[o,r,n]=this.tzComponents();return`$t} GMT$o}$r}$n} ($qpe(this.timeZone,this)})`}toLocaleString(t,o){return Date.prototype.toLocaleString.call(this,t,{...o,timeZone:o?.timeZone||this.timeZone})}toLocaleDateString(t,o){return Date.prototype.toLocaleDateString.call(this,t,{...o,timeZone:o?.timeZone||this.timeZone})}toLocaleTimeString(t,o){return Date.prototype.toLocaleTimeString.call(this,t,{...o,timeZone:o?.timeZone||this.timeZone})}tzComponents(){let t=this.getTimezoneOffset(),o=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),n=String(Math.abs(t)%60).padStart(2,"0");return[o,r,n]}withTimeZone(t){return new e(+this,t)}[Symbol.for("constructDateFrom")](t){return new e(+new Date(t),this.timeZone)}};var OYe=Math.pow(10,8)*24*60*60*1e3,D9t=-OYe,xN=6048e5,eme=864e5,FE=6e4,zE=36e5,tme=1e3;var AYe=3600;var ome=AYe*24,V9t=ome*7,MYe=ome*365.2425,NYe=MYe/12,F9t=NYe*3,DG=Symbol.for("constructDateFrom");function nt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&DG in e?e[DG](t):e instanceof Date?new e.constructor(t):new Date(t)}function Ne(e,t){return nt(t||e,e)}function ld(e,t,o){let r=Ne(e,o?.in);return isNaN(t)?nt(o?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function ak(e,t,o){let r=Ne(e,o?.in);if(isNaN(t))return nt(o?.in||e,NaN);if(!t)return r;let n=r.getDate(),i=nt(o?.in||e,r.getTime());i.setMonth(r.getMonth()+t+1,0);let s=i.getDate();return n>=s?i:(r.setFullYear(i.getFullYear(),i.getMonth(),n),r)}var LYe={};function Ws(){return LYe}function ji(e,t){let o=Ws(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,n=Ne(e,t?.in),i=n.getDay(),s=(i<r?7:0)+i-r;return n.setDate(n.getDate()-s),n.setHours(0,0,0,0),n}function Ta(e,t){return ji(e,{...t,weekStartsOn:1})}function SN(e,t){let o=Ne(e,t?.in),r=o.getFullYear(),n=nt(o,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let i=Ta(n),s=nt(o,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);let a=Ta(s);return o.getTime()>=i.getTime()?r+1:o.getTime()>=a.getTime()?r:r-1}function hy(e){let t=Ne(e),o=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return o.setUTCFullYear(t.getFullYear()),+e-+o}function xl(e,...t){let o=nt.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}function mg(e,t){let o=Ne(e,t?.in);return o.setHours(0,0,0,0),o}function Hf(e,t,o){let[r,n]=xl(o?.in,e,t),i=mg(r),s=mg(n),a=+i-hy(i),l=+s-hy(s);return Math.round((a-l)/eme)}function rme(e,t){let o=SN(e,t),r=nt(t?.in||e,0);return r.setFullYear(o,0,4),r.setHours(0,0,0,0),Ta(r)}function CN(e,t,o){return ld(e,t*7,o)}function EN(e,t,o){return ak(e,t*12,o)}function nme(e,t,o){let[r,n]=[+Ne(e.start,o?.in),+Ne(e.end,o?.in)].sort((a,l)=>a-l),[i,s]=[+Ne(t.start,o?.in),+Ne(t.end,o?.in)].sort((a,l)=>a-l);return o?.inclusive?r<=s&&i<=n:r<s&&i<n}function ime(e,t){let o,r=t?.in;return e.forEach(n=>{!r&&typeof n=="object"&&(r=nt.bind(null,n));let i=Ne(n,r);(!o||o<i||isNaN(+i))&&(o=i)}),nt(r,o||NaN)}function sme(e,t){let o,r=t?.in;return e.forEach(n=>{!r&&typeof n=="object"&&(r=nt.bind(null,n));let i=Ne(n,r);(!o||o>i||isNaN(+i))&&(o=i)}),nt(r,o||NaN)}function ame(e,t,o){let[r,n]=xl(o?.in,e,t);return+mg(r)==+mg(n)}function TN(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Vc(e){return!(!TN(e)&&typeof e!="number"||isNaN(+Ne(e)))}function RN(e,t,o){let[r,n]=xl(o?.in,e,t),i=r.getFullYear()-n.getFullYear(),s=r.getMonth()-n.getMonth();return i*12+s}function BN(e,t){let o=Ne(e,t?.in),r=o.getMonth();return o.setFullYear(o.getFullYear(),r+1,0),o.setHours(23,59,59,999),o}function IN(e,t){let[o,r]=xl(e,t.start,t.end);return{start:o,end:r}}function lme(e,t){let{start:o,end:r}=IN(t?.in,e),n=+o>+r,i=n?+o:+r,s=n?r:o;s.setHours(0,0,0,0),s.setDate(1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let l=[];for(;+s<=i;)l.push(nt(o,s)),s.setMonth(s.getMonth()+a);return n?l.reverse():l}function jE(e,t){let o=Ne(e,t?.in);return o.setDate(1),o.setHours(0,0,0,0),o}function cme(e,t){let o=Ne(e,t?.in),r=o.getFullYear();return o.setFullYear(r+1,0,0),o.setHours(23,59,59,999),o}function lk(e,t){let o=Ne(e,t?.in);return o.setFullYear(o.getFullYear(),0,1),o.setHours(0,0,0,0),o}function ume(e,t){let{start:o,end:r}=IN(t?.in,e),n=+o>+r,i=n?+o:+r,s=n?r:o;s.setHours(0,0,0,0),s.setMonth(0,1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let l=[];for(;+s<=i;)l.push(nt(o,s)),s.setFullYear(s.getFullYear()+a);return n?l.reverse():l}function PN(e,t){let o=Ws(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,n=Ne(e,t?.in),i=n.getDay(),s=(i<r?-7:0)+6-(i-r);return n.setDate(n.getDate()+s),n.setHours(23,59,59,999),n}function dme(e,t){return PN(e,{...t,weekStartsOn:1})}var DYe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},fme=(e,t,o)=>{let r,n=DYe[e];return typeof n=="string"?r=n:t===1?r=n.one:r=n.other.replace("{{count}}",t.toString()),o?.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};function ON(e){return(t={})=>{let o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}var VYe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},FYe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zYe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pme={date:ON({formats:VYe,defaultWidth:"full"}),time:ON({formats:FYe,defaultWidth:"full"}),dateTime:ON({formats:zYe,defaultWidth:"full"})};var jYe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mme=(e,t,o,r)=>jYe[e];function ck(e){return(t,o)=>{let r=o?.context?String(o.context):"standalone",n;if(r==="formatting"&&e.formattingValues){let s=e.defaultFormattingWidth||e.defaultWidth,a=o?.width?String(o.width):s;n=e.formattingValues[a]||e.formattingValues[s]}else{let s=e.defaultWidth,a=o?.width?String(o.width):e.defaultWidth;n=e.values[a]||e.values[s]}let i=e.argumentCallback?e.argumentCallback(t):t;return n[i]}}var HYe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},WYe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},UYe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},GYe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},$Ye={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},YYe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},KYe=(e,t)=>{let o=Number(e),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},gme={ordinalNumber:KYe,era:ck({values:HYe,defaultWidth:"wide"}),quarter:ck({values:WYe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ck({values:UYe,defaultWidth:"wide"}),day:ck({values:GYe,defaultWidth:"wide"}),dayPeriod:ck({values:$Ye,defaultWidth:"wide",formattingValues:YYe,defaultFormattingWidth:"wide"})};function uk(e){return(t,o={})=>{let r=o.width,n=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;let s=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?ZYe(a,f=>f.test(s)):qYe(a,f=>f.test(s)),u;u=e.valueCallback?e.valueCallback(l):l,u=o.valueCallback?o.valueCallback(u):u;let d=t.slice(s.length);return{value:u,rest:d}}}function qYe(e,t){for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function ZYe(e,t){for(let o=0;o<e.length;o++)if(t(e[o]))return o}function hme(e){return(t,o={})=>{let r=t.match(e.matchPattern);if(!r)return null;let n=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=o.valueCallback?o.valueCallback(s):s;let a=t.slice(n.length);return{value:s,rest:a}}}var XYe=/^(\d+)(th|st|nd|rd)?/i,QYe=/\d+/i,JYe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},eKe={any:[/^b/i,/^(a|c)/i]},tKe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},oKe={any:[/1/i,/2/i,/3/i,/4/i]},rKe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},nKe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},iKe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},sKe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},aKe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},lKe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},bme={ordinalNumber:hme({matchPattern:XYe,parsePattern:QYe,valueCallback:e=>parseInt(e,10)}),era:uk({matchPatterns:JYe,defaultMatchWidth:"wide",parsePatterns:eKe,defaultParseWidth:"any"}),quarter:uk({matchPatterns:tKe,defaultMatchWidth:"wide",parsePatterns:oKe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:uk({matchPatterns:rKe,defaultMatchWidth:"wide",parsePatterns:nKe,defaultParseWidth:"any"}),day:uk({matchPatterns:iKe,defaultMatchWidth:"wide",parsePatterns:sKe,defaultParseWidth:"any"}),dayPeriod:uk({matchPatterns:aKe,defaultMatchWidth:"any",parsePatterns:lKe,defaultParseWidth:"any"})};var Ra={code:"en-US",formatDistance:fme,formatLong:pme,formatRelative:mme,localize:gme,match:bme,options:{weekStartsOn:0,firstWeekContainsDate:1}};function yme(e,t){let o=Ne(e,t?.in);return Hf(o,lk(o))+1}function gg(e,t){let o=Ne(e,t?.in),r=+Ta(o)-+rme(o);return Math.round(r/xN)+1}function dk(e,t){let o=Ne(e,t?.in),r=o.getFullYear(),n=Ws(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=nt(t?.in||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);let a=ji(s,t),l=nt(t?.in||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);let u=ji(l,t);return+o>=+a?r+1:+o>=+u?r:r-1}function vme(e,t){let o=Ws(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=dk(e,t),i=nt(t?.in||e,0);return i.setFullYear(n,0,r),i.setHours(0,0,0,0),ji(i,t)}function hg(e,t){let o=Ne(e,t?.in),r=+ji(o,t)-+vme(o,t);return Math.round(r/xN)+1}function lo(e,t){let o=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return o+r}var Wf={y(e,t){let o=e.getFullYear(),r=o>0?o:1-o;return lo(t==="yy"?r%100:r,t.length)},M(e,t){let o=e.getMonth();return t==="M"?String(o+1):lo(o+1,2)},d(e,t){return lo(e.getDate(),t.length)},a(e,t){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];default:return o==="am"?"a.m.":"p.m."}},h(e,t){return lo(e.getHours()%12||12,t.length)},H(e,t){return lo(e.getHours(),t.length)},m(e,t){return lo(e.getMinutes(),t.length)},s(e,t){return lo(e.getSeconds(),t.length)},S(e,t){let o=t.length,r=e.getMilliseconds(),n=Math.trunc(r*Math.pow(10,o-3));return lo(n,t.length)}};var fk={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},VG={G:function(e,t,o){let r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});default:return o.era(r,{width:"wide"})}},y:function(e,t,o){if(t==="yo"){let r=e.getFullYear(),n=r>0?r:1-r;return o.ordinalNumber(n,{unit:"year"})}return Wf.y(e,t)},Y:function(e,t,o,r){let n=dk(e,r),i=n>0?n:1-n;if(t==="YY"){let s=i%100;return lo(s,2)}return t==="Yo"?o.ordinalNumber(i,{unit:"year"}):lo(i,t.length)},R:function(e,t){let o=SN(e);return lo(o,t.length)},u:function(e,t){let o=e.getFullYear();return lo(o,t.length)},Q:function(e,t,o){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return lo(r,2);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});default:return o.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,o){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return lo(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,o){let r=e.getMonth();switch(t){case"M":case"MM":return Wf.M(e,t);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,o){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return lo(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,o,r){let n=hg(e,r);return t==="wo"?o.ordinalNumber(n,{unit:"week"}):lo(n,t.length)},I:function(e,t,o){let r=gg(e);return t==="Io"?o.ordinalNumber(r,{unit:"week"}):lo(r,t.length)},d:function(e,t,o){return t==="do"?o.ordinalNumber(e.getDate(),{unit:"date"}):Wf.d(e,t)},D:function(e,t,o){let r=yme(e);return t==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):lo(r,t.length)},E:function(e,t,o){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"});default:return o.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,o,r){let n=e.getDay(),i=(n-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return lo(i,2);case"eo":return o.ordinalNumber(i,{unit:"day"});case"eee":return o.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"});default:return o.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,o,r){let n=e.getDay(),i=(n-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return lo(i,t.length);case"co":return o.ordinalNumber(i,{unit:"day"});case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"});default:return o.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,o){let r=e.getDay(),n=r===0?7:r;switch(t){case"i":return String(n);case"ii":return lo(n,t.length);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,o){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,o){let r=e.getHours(),n;switch(r===12?n=fk.noon:r===0?n=fk.midnight:n=r/12>=1?"pm":"am",t){case"b":case"bb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,o){let r=e.getHours(),n;switch(r>=17?n=fk.evening:r>=12?n=fk.afternoon:r>=4?n=fk.morning:n=fk.night,t){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,o){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return Wf.h(e,t)},H:function(e,t,o){return t==="Ho"?o.ordinalNumber(e.getHours(),{unit:"hour"}):Wf.H(e,t)},K:function(e,t,o){let r=e.getHours()%12;return t==="Ko"?o.ordinalNumber(r,{unit:"hour"}):lo(r,t.length)},k:function(e,t,o){let r=e.getHours();return r===0&&(r=24),t==="ko"?o.ordinalNumber(r,{unit:"hour"}):lo(r,t.length)},m:function(e,t,o){return t==="mo"?o.ordinalNumber(e.getMinutes(),{unit:"minute"}):Wf.m(e,t)},s:function(e,t,o){return t==="so"?o.ordinalNumber(e.getSeconds(),{unit:"second"}):Wf.s(e,t)},S:function(e,t){return Wf.S(e,t)},X:function(e,t,o){let r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return wme(r);case"XXXX":case"XX":return by(r);default:return by(r,":")}},x:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"x":return wme(r);case"xxxx":case"xx":return by(r);default:return by(r,":")}},O:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_me(r,":");default:return"GMT"+by(r,":")}},z:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_me(r,":");default:return"GMT"+by(r,":")}},t:function(e,t,o){let r=Math.trunc(+e/1e3);return lo(r,t.length)},T:function(e,t,o){return lo(+e,t.length)}};function _me(e,t=""){let o=e>0?"-":"+",r=Math.abs(e),n=Math.trunc(r/60),i=r%60;return i===0?o+String(n):o+String(n)+t+lo(i,2)}function wme(e,t){return e%60===0?(e>0?"-":"+")+lo(Math.abs(e)/60,2):by(e,t)}function by(e,t=""){let o=e>0?"-":"+",r=Math.abs(e),n=lo(Math.trunc(r/60),2),i=lo(r%60,2);return o+n+t+i}var kme=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},xme=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},cKe=(e,t)=>{let o=e.match(/(P+)(p+)?/)||[],r=o[1],n=o[2];if(!n)return kme(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",kme(r,t)).replace("{{time}}",xme(n,t))},HE={p:xme,P:cKe};var uKe=/^D+$/,dKe=/^Y+$/,fKe=["D","DD","YY","YYYY"];function AN(e){return uKe.test(e)}function MN(e){return dKe.test(e)}function WE(e,t,o){let r=pKe(e,t,o);if(console.warn(r),fKe.includes(e))throw new RangeError(r)}function pKe(e,t,o){let r=e[0]==="Y"?"years":"days of the month";return`Use \`$e.toLowerCase()}\` instead of \`$e}\` (in \`$t}\`) for formatting $r} to the input \`$o}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var mKe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gKe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hKe=/^'([^]*?)'?$/,bKe=/''/g,yKe=/[a-zA-Z]/;function Uf(e,t,o){let r=Ws(),n=o?.locale??r.locale??Ra,i=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=Ne(e,o?.in);if(!Vc(a))throw new RangeError("Invalid time value");let l=t.match(gKe).map(d=>{let f=d[0];if(f==="p"||f==="P"){let p=HE[f];return p(d,n.formatLong)}return d}).join("").match(mKe).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let f=d[0];if(f==="'")return{isToken:!1,value:vKe(d)};if(VG[f])return{isToken:!0,value:d};if(f.match(yKe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:d}});n.localize.preprocessor&&(l=n.localize.preprocessor(a,l));let u={firstWeekContainsDate:i,weekStartsOn:s,locale:n};return l.map(d=>{if(!d.isToken)return d.value;let f=d.value;(!o?.useAdditionalWeekYearTokens&&MN(f)||!o?.useAdditionalDayOfYearTokens&&AN(f))&&WE(f,t,String(e));let p=VG[f[0]];return p(a,f,n.localize,u)}).join("")}function vKe(e){let t=e.match(hKe);return t?t[1].replace(bKe,"'"):e}function Sme(e,t){let o=Ne(e,t?.in),r=o.getFullYear(),n=o.getMonth(),i=nt(o,0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function Cme(){return Object.assign({},Ws())}function Eme(e,t){let o=Ne(e,t?.in).getDay();return o===0?7:o}function Tme(e,t){return Ne(e,t?.in).getMonth()}function Rme(e,t){return Ne(e,t?.in).getFullYear()}function Bme(e,t){return+Ne(e)>+Ne(t)}function Ime(e,t){return+Ne(e)<+Ne(t)}function Pme(e,t){let o=_Ke(t)?new t(0):nt(t,0);return o.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),o.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),o}function _Ke(e){return typeof e=="function"&&e.prototype?.constructor===e}var wKe=10,NN=class{subPriority=0;validate(t,o){return!0}},LN=class extends NN{constructor(t,o,r,n,i){super(),this.value=t,this.validateValue=o,this.setValue=r,this.priority=n,i&&(this.subPriority=i)}validate(t,o){return this.validateValue(t,this.value,o)}set(t,o,r){return this.setValue(t,o,this.value,r)}},DN=class extends NN{priority=wKe;subPriority=-1;constructor(t,o){super(),this.context=t||(r=>nt(o,r))}set(t,o){return o.timestampIsSet?t:nt(t,Pme(t,this.context))}};var Ze=class{run(t,o,r,n){let i=this.parse(t,o,r,n);return i?{setter:new LN(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,o,r){return!0}};var VN=class extends Ze{priority=140;parse(t,o,r){switch(o){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,o,r){return o.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]};var Gt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Sl={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function xo(e,t){return e&&{value:t(e.value),rest:e.rest}}function jt(e,t){let o=t.match(e);return o?{value:parseInt(o[0],10),rest:t.slice(o[0].length)}:null}function Cl(e,t){let o=t.match(e);if(!o)return null;if(o[0]==="Z")return{value:0,rest:t.slice(1)};let r=o[1]==="+"?1:-1,n=o[2]?parseInt(o[2],10):0,i=o[3]?parseInt(o[3],10):0,s=o[5]?parseInt(o[5],10):0;return{value:r*(n*zE+i*FE+s*tme),rest:t.slice(o[0].length)}}function FN(e){return jt(Gt.anyDigitsSigned,e)}function bt(e,t){switch(e){case 1:return jt(Gt.singleDigit,t);case 2:return jt(Gt.twoDigits,t);case 3:return jt(Gt.threeDigits,t);case 4:return jt(Gt.fourDigits,t);default:return jt(new RegExp("^\\d{1,"+e+"}"),t)}}function pk(e,t){switch(e){case 1:return jt(Gt.singleDigitSigned,t);case 2:return jt(Gt.twoDigitsSigned,t);case 3:return jt(Gt.threeDigitsSigned,t);case 4:return jt(Gt.fourDigitsSigned,t);default:return jt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function mk(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function zN(e,t){let o=t>0,r=o?t:1-t,n;if(r<=50)n=e||100;else{let i=r+50,s=Math.trunc(i/100)*100,a=e>=i%100;n=e+s-(a?100:0)}return o?n:1-n}function jN(e){return e%400===0||e%4===0&&e%100!==0}var HN=class extends Ze{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,o,r){let n=i=>({year:i,isTwoDigitYear:o==="yy"});switch(o){case"y":return xo(bt(4,t),n);case"yo":return xo(r.ordinalNumber(t,{unit:"year"}),n);default:return xo(bt(o.length,t),n)}}validate(t,o){return o.isTwoDigitYear||o.year>0}set(t,o,r){let n=t.getFullYear();if(r.isTwoDigitYear){let s=zN(r.year,n);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}let i=!("era"in o)||o.era===1?r.year:1-r.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}};var WN=class extends Ze{priority=130;parse(t,o,r){let n=i=>({year:i,isTwoDigitYear:o==="YY"});switch(o){case"Y":return xo(bt(4,t),n);case"Yo":return xo(r.ordinalNumber(t,{unit:"year"}),n);default:return xo(bt(o.length,t),n)}}validate(t,o){return o.isTwoDigitYear||o.year>0}set(t,o,r,n){let i=dk(t,n);if(r.isTwoDigitYear){let a=zN(r.year,i);return t.setFullYear(a,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),ji(t,n)}let s=!("era"in o)||o.era===1?r.year:1-r.year;return t.setFullYear(s,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),ji(t,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var UN=class extends Ze{priority=130;parse(t,o){return o==="R"?pk(4,t):pk(o.length,t)}set(t,o,r){let n=nt(t,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Ta(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var GN=class extends Ze{priority=130;parse(t,o){return o==="u"?pk(4,t):pk(o.length,t)}set(t,o,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var $N=class extends Ze{priority=120;parse(t,o,r){switch(o){case"Q":case"QQ":return bt(o.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,o){return o>=1&&o<=4}set(t,o,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var YN=class extends Ze{priority=120;parse(t,o,r){switch(o){case"q":case"qq":return bt(o.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,o){return o>=1&&o<=4}set(t,o,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var KN=class extends Ze{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,o,r){let n=i=>i-1;switch(o){case"M":return xo(jt(Gt.month,t),n);case"MM":return xo(bt(2,t),n);case"Mo":return xo(r.ordinalNumber(t,{unit:"month"}),n);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,o){return o>=0&&o<=11}set(t,o,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}};var qN=class extends Ze{priority=110;parse(t,o,r){let n=i=>i-1;switch(o){case"L":return xo(jt(Gt.month,t),n);case"LL":return xo(bt(2,t),n);case"Lo":return xo(r.ordinalNumber(t,{unit:"month"}),n);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,o){return o>=0&&o<=11}set(t,o,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function Ome(e,t,o){let r=Ne(e,o?.in),n=hg(r,o)-t;return r.setDate(r.getDate()-n*7),Ne(r,o?.in)}var ZN=class extends Ze{priority=100;parse(t,o,r){switch(o){case"w":return jt(Gt.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return bt(o.length,t)}}validate(t,o){return o>=1&&o<=53}set(t,o,r,n){return ji(Ome(t,r,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function Ame(e,t,o){let r=Ne(e,o?.in),n=gg(r,o)-t;return r.setDate(r.getDate()-n*7),r}var XN=class extends Ze{priority=100;parse(t,o,r){switch(o){case"I":return jt(Gt.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return bt(o.length,t)}}validate(t,o){return o>=1&&o<=53}set(t,o,r){return Ta(Ame(t,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var kKe=[31,28,31,30,31,30,31,31,30,31,30,31],xKe=[31,29,31,30,31,30,31,31,30,31,30,31],QN=class extends Ze{priority=90;subPriority=1;parse(t,o,r){switch(o){case"d":return jt(Gt.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return bt(o.length,t)}}validate(t,o){let r=t.getFullYear(),n=jN(r),i=t.getMonth();return n?o>=1&&o<=xKe[i]:o>=1&&o<=kKe[i]}set(t,o,r){return t.setDate(r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var JN=class extends Ze{priority=90;subpriority=1;parse(t,o,r){switch(o){case"D":case"DD":return jt(Gt.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return bt(o.length,t)}}validate(t,o){let r=t.getFullYear();return jN(r)?o>=1&&o<=366:o>=1&&o<=365}set(t,o,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function gk(e,t,o){let r=Ws(),n=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Ne(e,o?.in),s=i.getDay(),l=(t%7+7)%7,u=7-n,d=t<0||t>6?t-(s+u)%7:(l+u)%7-(s+u)%7;return ld(i,d,o)}var eL=class extends Ze{priority=90;parse(t,o,r){switch(o){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,o){return o>=0&&o<=6}set(t,o,r,n){return t=gk(t,r,n),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]};var tL=class extends Ze{priority=90;parse(t,o,r,n){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+n.weekStartsOn+6)%7+a};switch(o){case"e":case"ee":return xo(bt(o.length,t),i);case"eo":return xo(r.ordinalNumber(t,{unit:"day"}),i);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,o){return o>=0&&o<=6}set(t,o,r,n){return t=gk(t,r,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var oL=class extends Ze{priority=90;parse(t,o,r,n){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+n.weekStartsOn+6)%7+a};switch(o){case"c":case"cc":return xo(bt(o.length,t),i);case"co":return xo(r.ordinalNumber(t,{unit:"day"}),i);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,o){return o>=0&&o<=6}set(t,o,r,n){return t=gk(t,r,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function Mme(e,t,o){let r=Ne(e,o?.in),n=Eme(r,o),i=t-n;return ld(r,i,o)}var rL=class extends Ze{priority=90;parse(t,o,r){let n=i=>i===0?7:i;switch(o){case"i":case"ii":return bt(o.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return xo(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return xo(r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return xo(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);default:return xo(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n)}}validate(t,o){return o>=1&&o<=7}set(t,o,r){return t=Mme(t,r),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var nL=class extends Ze{priority=80;parse(t,o,r){switch(o){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,o,r){return t.setHours(mk(r),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]};var iL=class extends Ze{priority=80;parse(t,o,r){switch(o){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,o,r){return t.setHours(mk(r),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]};var sL=class extends Ze{priority=80;parse(t,o,r){switch(o){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,o,r){return t.setHours(mk(r),0,0,0),t}incompatibleTokens=["a","b","t","T"]};var aL=class extends Ze{priority=70;parse(t,o,r){switch(o){case"h":return jt(Gt.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return bt(o.length,t)}}validate(t,o){return o>=1&&o<=12}set(t,o,r){let n=t.getHours()>=12;return n&&r<12?t.setHours(r+12,0,0,0):!n&&r===12?t.setHours(0,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]};var lL=class extends Ze{priority=70;parse(t,o,r){switch(o){case"H":return jt(Gt.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return bt(o.length,t)}}validate(t,o){return o>=0&&o<=23}set(t,o,r){return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]};var cL=class extends Ze{priority=70;parse(t,o,r){switch(o){case"K":return jt(Gt.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return bt(o.length,t)}}validate(t,o){return o>=0&&o<=11}set(t,o,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]};var uL=class extends Ze{priority=70;parse(t,o,r){switch(o){case"k":return jt(Gt.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return bt(o.length,t)}}validate(t,o){return o>=1&&o<=24}set(t,o,r){let n=r<=24?r%24:r;return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]};var dL=class extends Ze{priority=60;parse(t,o,r){switch(o){case"m":return jt(Gt.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return bt(o.length,t)}}validate(t,o){return o>=0&&o<=59}set(t,o,r){return t.setMinutes(r,0,0),t}incompatibleTokens=["t","T"]};var fL=class extends Ze{priority=50;parse(t,o,r){switch(o){case"s":return jt(Gt.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return bt(o.length,t)}}validate(t,o){return o>=0&&o<=59}set(t,o,r){return t.setSeconds(r,0),t}incompatibleTokens=["t","T"]};var pL=class extends Ze{priority=30;parse(t,o){let r=n=>Math.trunc(n*Math.pow(10,-o.length+3));return xo(bt(o.length,t),r)}set(t,o,r){return t.setMilliseconds(r),t}incompatibleTokens=["t","T"]};var mL=class extends Ze{priority=10;parse(t,o){switch(o){case"X":return Cl(Sl.basicOptionalMinutes,t);case"XX":return Cl(Sl.basic,t);case"XXXX":return Cl(Sl.basicOptionalSeconds,t);case"XXXXX":return Cl(Sl.extendedOptionalSeconds,t);default:return Cl(Sl.extended,t)}}set(t,o,r){return o.timestampIsSet?t:nt(t,t.getTime()-hy(t)-r)}incompatibleTokens=["t","T","x"]};var gL=class extends Ze{priority=10;parse(t,o){switch(o){case"x":return Cl(Sl.basicOptionalMinutes,t);case"xx":return Cl(Sl.basic,t);case"xxxx":return Cl(Sl.basicOptionalSeconds,t);case"xxxxx":return Cl(Sl.extendedOptionalSeconds,t);default:return Cl(Sl.extended,t)}}set(t,o,r){return o.timestampIsSet?t:nt(t,t.getTime()-hy(t)-r)}incompatibleTokens=["t","T","X"]};var hL=class extends Ze{priority=40;parse(t){return FN(t)}set(t,o,r){return[nt(t,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var bL=class extends Ze{priority=20;parse(t){return FN(t)}set(t,o,r){return[nt(t,r),{timestampIsSet:!0}]}incompatibleTokens="*"};var Nme={G:new VN,y:new HN,Y:new WN,R:new UN,u:new GN,Q:new $N,q:new YN,M:new KN,L:new qN,w:new ZN,I:new XN,d:new QN,D:new JN,E:new eL,e:new tL,c:new oL,i:new rL,a:new nL,b:new iL,B:new sL,h:new aL,H:new lL,K:new cL,k:new uL,m:new dL,s:new fL,S:new pL,X:new mL,x:new gL,t:new hL,T:new bL};var SKe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,CKe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,EKe=/^'([^]*?)'?$/,TKe=/''/g,RKe=/\S/,BKe=/[a-zA-Z]/;function Lme(e,t,o,r){let n=()=>nt(r?.in||o,NaN),i=Cme(),s=r?.locale??i.locale??Ra,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!t)return e?n():Ne(o,r?.in);let u={firstWeekContainsDate:a,weekStartsOn:l,locale:s},d=[new DN(r?.in,o)],f=t.match(CKe).map(b=>{let v=b[0];if(v in HE){let y=HE[v];return y(b,s.formatLong)}return b}).join("").match(SKe),p=[];for(let b of f){!r?.useAdditionalWeekYearTokens&&MN(b)&&WE(b,t,e),!r?.useAdditionalDayOfYearTokens&&AN(b)&&WE(b,t,e);let v=b[0],y=Nme[v];if(y){let{incompatibleTokens:_}=y;if(Array.isArray(_)){let k=p.find(x=>_.includes(x.token)||x.token===v);if(k)throw new RangeError(`The format string mustn't contain \`$k.fullToken}\` and \`$b}\` at the same time`)}else if(y.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`$b}\` and any other token at the same time`);p.push({token:v,fullToken:b});let w=y.run(e,b,s.match,u);if(!w)return n();d.push(w.setter),e=w.rest}else{if(v.match(BKe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");if(b==="''"?b="'":v==="'"&&(b=IKe(b)),e.indexOf(b)===0)e=e.slice(b.length);else return n()}}if(e.length>0&&RKe.test(e))return n();let m=d.map(b=>b.priority).sort((b,v)=>v-b).filter((b,v,y)=>y.indexOf(b)===v).map(b=>d.filter(v=>v.priority===b).sort((v,y)=>y.subPriority-v.subPriority)).map(b=>b[0]),g=Ne(o,r?.in);if(isNaN(+g))return n();let h={};for(let b of m){if(!b.validate(g,u))return n();let v=b.set(g,h,u);Array.isArray(v)?(g=v[0],Object.assign(h,v[1])):g=v}return g}function IKe(e){return e.match(EKe)[1].replace(TKe,"'")}function yy(e,t,o){let[r,n]=xl(o?.in,e,t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function Dme(e,t,o){let[r,n]=xl(o?.in,e,t);return r.getFullYear()===n.getFullYear()}function vy(e,t,o){return ld(e,-t,o)}function Vme(e,t){let o=()=>nt(t?.in,NaN),r=t?.additionalDigits??2,n=MKe(e),i;if(n.date){let u=NKe(n.date,r);i=LKe(u.restDateString,u.year)}if(!i||isNaN(+i))return o();let s=+i,a=0,l;if(n.time&&(a=DKe(n.time),isNaN(a)))return o();if(n.timezone){if(l=VKe(n.timezone),isNaN(l))return o()}else{let u=new Date(s+a),d=Ne(0,t?.in);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return Ne(s+a+l,t?.in)}var yL={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},PKe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,OKe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,AKe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function MKe(e){let t={},o=e.split(yL.dateTimeDelimiter),r;if(o.length>2)return t;if(/:/.test(o[0])?r=o[0]:(t.date=o[0],r=o[1],yL.timeZoneDelimiter.test(t.date)&&(t.date=e.split(yL.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){let n=yL.timezone.exec(r);n?(t.time=r.replace(n[1],""),t.timezone=n[1]):t.time=r}return t}function NKe(e,t){let o=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(o);if(!r)return{year:NaN,restDateString:""};let n=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?n:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function LKe(e,t){if(t===null)return new Date(NaN);let o=e.match(PKe);if(!o)return new Date(NaN);let r=!!o[4],n=UE(o[1]),i=UE(o[2])-1,s=UE(o[3]),a=UE(o[4]),l=UE(o[5])-1;if(r)return WKe(t,a,l)?FKe(t,a,l):new Date(NaN);{let u=new Date(0);return!jKe(t,i,s)||!HKe(t,n)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(n,s)),u)}}function UE(e){return e?parseInt(e):1}function DKe(e){let t=e.match(OKe);if(!t)return NaN;let o=FG(t[1]),r=FG(t[2]),n=FG(t[3]);return UKe(o,r,n)?o*zE+r*FE+n*1e3:NaN}function FG(e){return e&&parseFloat(e.replace(",","."))||0}function VKe(e){if(e==="Z")return 0;let t=e.match(AKe);if(!t)return 0;let o=t[1]==="+"?-1:1,r=parseInt(t[2]),n=t[3]&&parseInt(t[3])||0;return GKe(r,n)?o*(r*zE+n*FE):NaN}function FKe(e,t,o){let r=new Date(0);r.setUTCFullYear(e,0,4);let n=r.getUTCDay()||7,i=(t-1)*7+o+1-n;return r.setUTCDate(r.getUTCDate()+i),r}var zKe=[31,null,31,30,31,30,31,31,30,31,30,31];function Fme(e){return e%400===0||e%4===0&&e%100!==0}function jKe(e,t,o){return t>=0&&t<=11&&o>=1&&o<=(zKe[t]||(Fme(e)?29:28))}function HKe(e,t){return t>=1&&t<=(Fme(e)?366:365)}function WKe(e,t,o){return t>=1&&t<=53&&o>=0&&o<=6}function UKe(e,t,o){return e===24?t===0&&o===0:o>=0&&o<60&&t>=0&&t<60&&e>=0&&e<25}function GKe(e,t){return t>=0&&t<=59}function zme(e,t,o){let r=Ne(e,o?.in),n=r.getFullYear(),i=r.getDate(),s=nt(o?.in||e,0);s.setFullYear(n,t,15),s.setHours(0,0,0,0);let a=Sme(s);return r.setMonth(t,Math.min(i,a)),r}function jme(e,t,o){let r=Ne(e,o?.in);return isNaN(+r)?nt(o?.in||e,NaN):(r.setFullYear(t),r)}function vL(e,t,o){return ak(e,-t,o)}function Hme(e,t,o){return CN(e,-t,o)}function _L(e,t,o){return EN(e,-t,o)}function Wme(e,t){let o=t.startOfMonth(e),r=o.getDay()>0?o.getDay():7,n=t.addDays(e,-r+1),i=t.addDays(n,34);return t.getMonth(e)===t.getMonth(i)?5:4}function wL(e,t){let o=t.startOfMonth(e),r=o.getDay();return r===1?o:r===0?t.addDays(o,-6):t.addDays(o,-1*(r-1))}function Ume(e,t){let o=wL(e,t),r=Wme(e,t);return t.addDays(o,r*7-1)}var GE={...Ra,labels:{labelDayButton:(e,t,o,r)=>{let n;r&&typeof r.format=="function"?n=r.format.bind(r):n=(s,a)=>Uf(s,a,{locale:Ra,...o});let i=n(e,"PPPP");return t.today&&(i=`Today, $i}`),t.selected&&(i=`$i}, selected`),i},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week $e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,o)=>{let r;return o&&typeof o.format=="function"?r=o.format.bind(o):r=(n,i)=>Uf(n,i,{locale:Ra,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,o,r)=>{let n;r&&typeof r.format=="function"?n=r.format.bind(r):n=(s,a)=>Uf(s,a,{locale:Ra,...o});let i=n(e,"PPPP");return t?.today&&(i=`Today, $i}`),i},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,o)=>{let r;return o&&typeof o.format=="function"?r=o.format.bind(o):r=(n,i)=>Uf(n,i,{locale:Ra,...t}),r(e,"cccc")}}};var yn=class e{constructor(t,o){this.today=()=>{if(this.overrides?.today)return this.overrides.today();if(this.options.timeZone)return en.tz(this.options.timeZone);let r=this.options.Date??Date;return new r},this.newDate=(r,n,i)=>this.overrides?.newDate?this.overrides.newDate(r,n,i):this.options.timeZone?new en(r,n,i,this.options.timeZone):new Date(r,n,i),this.addDays=(r,n)=>this.overrides?.addDays?this.overrides.addDays(r,n):ld(r,n),this.addMonths=(r,n)=>this.overrides?.addMonths?this.overrides.addMonths(r,n):ak(r,n),this.addWeeks=(r,n)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,n):CN(r,n),this.addYears=(r,n)=>this.overrides?.addYears?this.overrides.addYears(r,n):EN(r,n),this.differenceInCalendarDays=(r,n)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,n):Hf(r,n),this.differenceInCalendarMonths=(r,n)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,n):RN(r,n),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):lme(r),this.eachYearOfInterval=r=>{let n=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):ume(r),i=new Set(n.map(a=>this.getYear(a)));if(i.size===n.length)return n;let s=[];return i.forEach(a=>{s.push(new Date(a,0,1))}),s},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):Ume(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):dme(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):BN(r),this.endOfWeek=(r,n)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,n):PN(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):cme(r),this.format=(r,n,i)=>{let s=this.overrides?.format?this.overrides.format(r,n,this.options):Uf(r,n,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(s):s},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):gg(r),this.getMonth=(r,n)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):Tme(r,this.options),this.getYear=(r,n)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):Rme(r,this.options),this.getWeek=(r,n)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):hg(r,this.options),this.isAfter=(r,n)=>this.overrides?.isAfter?this.overrides.isAfter(r,n):Bme(r,n),this.isBefore=(r,n)=>this.overrides?.isBefore?this.overrides.isBefore(r,n):Ime(r,n),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):TN(r),this.isSameDay=(r,n)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,n):ame(r,n),this.isSameMonth=(r,n)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,n):yy(r,n),this.isSameYear=(r,n)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,n):Dme(r,n),this.max=r=>this.overrides?.max?this.overrides.max(r):ime(r),this.min=r=>this.overrides?.min?this.overrides.min(r):sme(r),this.setMonth=(r,n)=>this.overrides?.setMonth?this.overrides.setMonth(r,n):zme(r,n),this.setYear=(r,n)=>this.overrides?.setYear?this.overrides.setYear(r,n):jme(r,n),this.startOfBroadcastWeek=(r,n)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):wL(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):mg(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):Ta(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):jE(r),this.startOfWeek=(r,n)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):ji(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):lk(r),this.options={locale:GE,...t},this.overrides=o}getDigitMap(){let{numerals:t="latn"}=this.options,o=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let n=0;n<10;n++)r[n.toString()]=o.format(n);return r}replaceDigits(t){let o=this.getDigitMap();return t.replace(/\d/g,r=>o[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&e.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){let{locale:o,timeZone:r,numerals:n}=this.options,i=o?.code;if(i&&e.yearFirstLocales.has(i))try{return new Intl.DateTimeFormat(i,{month:"long",year:"numeric",timeZone:r,numberingSystem:n}).format(t)}catch{}let s=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,s)}};yn.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);var vn=new yn;var hk=class{constructor(t,o,r=vn){this.date=t,this.displayMonth=o,this.outside=!!(o&&!r.isSameMonth(t,o)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(o,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}};var kL=class{constructor(t,o){this.date=t,this.weeks=o}};var xL=class{constructor(t,o){this.days=o,this.weekNumber=t}};var HG={};No(HG,{CaptionLabel:()=>$Ke,Chevron:()=>YKe,Day:()=>KKe,DayButton:()=>qKe,Dropdown:()=>ZKe,DropdownNav:()=>XKe,Footer:()=>QKe,Month:()=>JKe,MonthCaption:()=>eqe,MonthGrid:()=>tqe,Months:()=>oqe,MonthsDropdown:()=>rqe,Nav:()=>nqe,NextMonthButton:()=>iqe,Option:()=>sqe,PreviousMonthButton:()=>aqe,Root:()=>lqe,Select:()=>cqe,Week:()=>uqe,WeekNumber:()=>pqe,WeekNumberHeader:()=>mqe,Weekday:()=>dqe,Weekdays:()=>fqe,Weeks:()=>gqe,YearsDropdown:()=>hqe});var Gme=c(oe(),1);function $Ke(e){return Gme.default.createElement("span",{...e})}var bk=c(oe(),1);function YKe(e){let{size:t=24,orientation:o="left",className:r,style:n}=e;return bk.default.createElement("svg",{className:r,style:n,width:t,height:t,viewBox:"0 0 24 24"},o==="up"&&bk.default.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),o==="down"&&bk.default.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),o==="left"&&bk.default.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),o==="right"&&bk.default.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}var $me=c(oe(),1);function KKe(e){let{day:t,modifiers:o,...r}=e;return $me.default.createElement("td",{...r})}var SL=c(oe(),1);function qKe(e){let{day:t,modifiers:o,...r}=e,n=SL.default.useRef(null);return SL.default.useEffect(()=>{o.focused&&n.current?.focus()},[o.focused]),SL.default.createElement("button",{ref:n,...r})}var yk=c(oe(),1);var Le;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(Le||(Le={}));var Eo;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Eo||(Eo={}));var Us;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Us||(Us={}));var cs;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(cs||(cs={}));var CL=c(oe(),1),zG=(0,CL.createContext)(void 0);function cd(){let e=(0,CL.useContext)(zG);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function ZKe(e){let{options:t,className:o,...r}=e,{classNames:n,components:i,styles:s}=cd(),a=[n[Le.Dropdown],o].join(" "),l=t?.find(({value:u})=>u===r.value);return yk.default.createElement("span",{"data-disabled":r.disabled,className:n[Le.DropdownRoot],style:s?.[Le.DropdownRoot]},yk.default.createElement(i.Select,{className:a,...r},t?.map(({value:u,label:d,disabled:f})=>yk.default.createElement(i.Option,{key:u,value:u,disabled:f},d))),yk.default.createElement("span",{className:n[Le.CaptionLabel],style:s?.[Le.CaptionLabel],"aria-hidden":!0},l?.label,yk.default.createElement(i.Chevron,{orientation:"down",size:18,className:n[Le.Chevron],style:s?.[Le.Chevron]})))}var Yme=c(oe(),1);function XKe(e){return Yme.default.createElement("div",{...e})}var Kme=c(oe(),1);function QKe(e){return Kme.default.createElement("div",{...e})}var qme=c(oe(),1);function JKe(e){let{calendarMonth:t,displayIndex:o,...r}=e;return qme.default.createElement("div",{...r},e.children)}var Zme=c(oe(),1);function eqe(e){let{calendarMonth:t,displayIndex:o,...r}=e;return Zme.default.createElement("div",{...r})}var Xme=c(oe(),1);function tqe(e){return Xme.default.createElement("table",{...e})}var Qme=c(oe(),1);function oqe(e){return Qme.default.createElement("div",{...e})}var Jme=c(oe(),1);function rqe(e){let{components:t}=cd();return Jme.default.createElement(t.Dropdown,{...e})}var Gf=c(oe(),1);function nqe(e){let{onPreviousClick:t,onNextClick:o,previousMonth:r,nextMonth:n,...i}=e,{components:s,classNames:a,styles:l,labels:{labelPrevious:u,labelNext:d}}=cd(),f=(0,Gf.useCallback)(m=>{n&&o?.(m)},[n,o]),p=(0,Gf.useCallback)(m=>{r&&t?.(m)},[r,t]);return Gf.default.createElement("nav",{...i},Gf.default.createElement(s.PreviousMonthButton,{type:"button",className:a[Le.PreviousMonthButton],style:l?.[Le.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":u(r),onClick:p},Gf.default.createElement(s.Chevron,{disabled:r?void 0:!0,className:a[Le.Chevron],style:l?.[Le.Chevron],orientation:"left"})),Gf.default.createElement(s.NextMonthButton,{type:"button",className:a[Le.NextMonthButton],style:l?.[Le.NextMonthButton],tabIndex:n?void 0:-1,"aria-disabled":n?void 0:!0,"aria-label":d(n),onClick:f},Gf.default.createElement(s.Chevron,{disabled:n?void 0:!0,orientation:"right",className:a[Le.Chevron],style:l?.[Le.Chevron]})))}var ege=c(oe(),1);function iqe(e){return ege.default.createElement("button",{...e})}var tge=c(oe(),1);function sqe(e){return tge.default.createElement("option",{...e})}var oge=c(oe(),1);function aqe(e){return oge.default.createElement("button",{...e})}var rge=c(oe(),1);function lqe(e){let{rootRef:t,...o}=e;return rge.default.createElement("div",{...o,ref:t})}var nge=c(oe(),1);function cqe(e){return nge.default.createElement("select",{...e})}var ige=c(oe(),1);function uqe(e){let{week:t,...o}=e;return ige.default.createElement("tr",{...o})}var sge=c(oe(),1);function dqe(e){return sge.default.createElement("th",{...e})}var jG=c(oe(),1);function fqe(e){return jG.default.createElement("thead",{"aria-hidden":!0},jG.default.createElement("tr",{...e}))}var age=c(oe(),1);function pqe(e){let{week:t,...o}=e;return age.default.createElement("th",{...o})}var lge=c(oe(),1);function mqe(e){return lge.default.createElement("th",{...e})}var cge=c(oe(),1);function gqe(e){return cge.default.createElement("tbody",{...e})}var uge=c(oe(),1);function hqe(e){let{components:t}=cd();return uge.default.createElement(t.Dropdown,{...e})}var pt=c(oe(),1);function Gs(e,t,o=!1,r=vn){let{from:n,to:i}=e,{differenceInCalendarDays:s,isSameDay:a}=r;return n&&i?(s(i,n)<0&&([n,i]=[i,n]),s(t,n)>=(o?1:0)&&s(i,t)>=(o?1:0)):!o&&i?a(i,t):!o&&n?a(n,t):!1}function vk(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function bg(e){return!!(e&&typeof e=="object"&&"from"in e)}function _k(e){return!!(e&&typeof e=="object"&&"after"in e)}function wk(e){return!!(e&&typeof e=="object"&&"before"in e)}function EL(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function TL(e,t){return Array.isArray(e)&&e.every(t.isDate)}function El(e,t,o=vn){let r=Array.isArray(t)?t:[t],{isSameDay:n,differenceInCalendarDays:i,isAfter:s}=o;return r.some(a=>{if(typeof a=="boolean")return a;if(o.isDate(a))return n(e,a);if(TL(a,o))return a.some(l=>n(e,l));if(bg(a))return Gs(a,e,!1,o);if(EL(a))return Array.isArray(a.dayOfWeek)?a.dayOfWeek.includes(e.getDay()):a.dayOfWeek===e.getDay();if(vk(a)){let l=i(a.before,e),u=i(a.after,e),d=l>0,f=u<0;return s(a.before,a.after)?f&&d:d||f}return _k(a)?i(e,a.after)>0:wk(a)?i(a.before,e)>0:typeof a=="function"?a(e):!1})}function dge(e,t,o,r,n){let{disabled:i,hidden:s,modifiers:a,showOutsideDays:l,broadcastCalendar:u,today:d=n.today()}=t,{isSameDay:f,isSameMonth:p,startOfMonth:m,isBefore:g,endOfMonth:h,isAfter:b}=n,v=o&&m(o),y=r&&h(r),_={[Eo.focused]:[],[Eo.outside]:[],[Eo.disabled]:[],[Eo.hidden]:[],[Eo.today]:[]},w={};for(let k of e){let{date:x,displayMonth:C}=k,E=!!(C&&!p(x,C)),R=!!(v&&g(x,v)),S=!!(y&&b(x,y)),I=!!(i&&El(x,i,n)),O=!!(s&&El(x,s,n))||R||S||!u&&!l&&E||u&&l===!1&&E,A=f(x,d);E&&_.outside.push(k),I&&_.disabled.push(k),O&&_.hidden.push(k),A&&_.today.push(k),a&&Object.keys(a).forEach(P=>{let L=a?.[P];L&&El(x,L,n)&&(w[P]?w[P].push(k):w[P]=[k])})}return k=>{let x={[Eo.focused]:!1,[Eo.disabled]:!1,[Eo.hidden]:!1,[Eo.outside]:!1,[Eo.today]:!1},C={};for(let E in _){let R=_[E];x[E]=R.some(S=>S===k)}for(let E in w)C[E]=w[E].some(R=>R===k);return{...x,...C}}}function fge(e,t,o={}){return Object.entries(e).filter(([,n])=>n===!0).reduce((n,[i])=>(o[i]?n.push(o[i]):t[Eo[i]]?n.push(t[Eo[i]]):t[Us[i]]&&n.push(t[Us[i]]),n),[t[Le.Day]])}function pge(e){return{...HG,...e}}function mge(e){let t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([o,r])=>{o.startsWith("data-")&&(t[o]=r)}),t}function gge(){let e={};for(let t in Le)e[Le[t]]=`rdp-$Le[t]}`;for(let t in Eo)e[Eo[t]]=`rdp-$Eo[t]}`;for(let t in Us)e[Us[t]]=`rdp-$Us[t]}`;for(let t in cs)e[cs[t]]=`rdp-$cs[t]}`;return e}var WG={};No(WG,{formatCaption:()=>bqe,formatDay:()=>yqe,formatMonthDropdown:()=>vqe,formatWeekNumber:()=>wqe,formatWeekNumberHeader:()=>kqe,formatWeekdayName:()=>_qe,formatYearDropdown:()=>xqe});function bqe(e,t,o){return(o??new yn(t)).formatMonthYear(e)}function yqe(e,t,o){return(o??new yn(t)).format(e,"d")}function vqe(e,t=vn){return t.format(e,"LLLL")}function _qe(e,t,o){return(o??new yn(t)).format(e,"cccccc")}function wqe(e,t=vn){return e<10?t.formatNumber(`0$e.toLocaleString()}`):t.formatNumber(`$e.toLocaleString()}`)}function kqe(){return""}function xqe(e,t=vn){return t.format(e,"yyyy")}function hge(e){return{...WG,...e}}var t$={};No(t$,{labelDayButton:()=>UG,labelGrid:()=>GG,labelGridcell:()=>$G,labelMonthDropdown:()=>YG,labelNav:()=>KG,labelNext:()=>qG,labelPrevious:()=>ZG,labelWeekNumber:()=>QG,labelWeekNumberHeader:()=>JG,labelWeekday:()=>XG,labelYearDropdown:()=>e$});function UG(e,t,o,r){let n=(r??new yn(o)).format(e,"PPPP");return t.today&&(n=`Today, $n}`),t.selected&&(n=`$n}, selected`),n}function GG(e,t,o){return(o??new yn(t)).formatMonthYear(e)}function $G(e,t,o,r){let n=(r??new yn(o)).format(e,"PPPP");return t?.today&&(n=`Today, $n}`),n}function YG(e){return"Choose the Month"}function KG(){return""}var Sqe="Go to the Next Month";function qG(e,t){return Sqe}function ZG(e){return"Go to the Previous Month"}function XG(e,t,o){return(o??new yn(t)).format(e,"cccc")}function QG(e,t){return`Week $e}`}function JG(e){return"Week Number"}function e$(e){return"Choose the Year"}var Fc=(e,t,o)=>t||(o?typeof o=="function"?o:(...r)=>o:e);function bge(e,t){let o=t.locale?.labels??{};return{...t$,...e??{},labelDayButton:Fc(UG,e?.labelDayButton,o.labelDayButton),labelMonthDropdown:Fc(YG,e?.labelMonthDropdown,o.labelMonthDropdown),labelNext:Fc(qG,e?.labelNext,o.labelNext),labelPrevious:Fc(ZG,e?.labelPrevious,o.labelPrevious),labelWeekNumber:Fc(QG,e?.labelWeekNumber,o.labelWeekNumber),labelYearDropdown:Fc(e$,e?.labelYearDropdown,o.labelYearDropdown),labelGrid:Fc(GG,e?.labelGrid,o.labelGrid),labelGridcell:Fc($G,e?.labelGridcell,o.labelGridcell),labelNav:Fc(KG,e?.labelNav,o.labelNav),labelWeekNumberHeader:Fc(JG,e?.labelWeekNumberHeader,o.labelWeekNumberHeader),labelWeekday:Fc(XG,e?.labelWeekday,o.labelWeekday)}}function yge(e,t,o,r,n){let{startOfMonth:i,startOfYear:s,endOfYear:a,eachMonthOfInterval:l,getMonth:u}=n;return l({start:s(e),end:a(e)}).map(p=>{let m=r.formatMonthDropdown(p,n),g=u(p),h=t&&p<i(t)||o&&p>i(o)||!1;return{value:g,label:m,disabled:h}})}function vge(e,t={},o={}){let r={...t?.[Le.Day]};return Object.entries(e).filter(([,n])=>n===!0).forEach(([n])=>{r={...r,...o?.[n]}}),r}function _ge(e,t,o,r){let n=r??e.today(),i=o?e.startOfBroadcastWeek(n,e):t?e.startOfISOWeek(n):e.startOfWeek(n),s=[];for(let a=0;a<7;a++){let l=e.addDays(i,a);s.push(l)}return s}function wge(e,t,o,r,n=!1){if(!e||!t)return;let{startOfYear:i,endOfYear:s,eachYearOfInterval:a,getYear:l}=r,u=i(e),d=s(t),f=a({start:u,end:d});return n&&f.reverse(),f.map(p=>{let m=o.formatYearDropdown(p,r);return{value:l(p),label:m,disabled:!1}})}function kge(e,t={}){let{weekStartsOn:o,locale:r}=t,n=o??r?.options?.weekStartsOn??0,i=a=>{let l=typeof a=="number"||typeof a=="string"?new Date(a):a;return new en(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,e)},s=a=>{let l=i(a);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0,0)};return{today:()=>i(en.tz(e)),newDate:(a,l,u)=>new en(a,l,u,12,0,0,e),startOfDay:a=>i(a),startOfWeek:(a,l)=>{let u=i(a),d=l?.weekStartsOn??n,f=(u.getDay()-d+7)%7;return u.setDate(u.getDate()-f),u},startOfISOWeek:a=>{let l=i(a),u=(l.getDay()-1+7)%7;return l.setDate(l.getDate()-u),l},startOfMonth:a=>{let l=i(a);return l.setDate(1),l},startOfYear:a=>{let l=i(a);return l.setMonth(0,1),l},endOfWeek:(a,l)=>{let u=i(a),p=(((l?.weekStartsOn??n)+6)%7-u.getDay()+7)%7;return u.setDate(u.getDate()+p),u},endOfISOWeek:a=>{let l=i(a),u=(7-l.getDay())%7;return l.setDate(l.getDate()+u),l},endOfMonth:a=>{let l=i(a);return l.setMonth(l.getMonth()+1,0),l},endOfYear:a=>{let l=i(a);return l.setMonth(11,31),l},eachMonthOfInterval:a=>{let l=i(a.start),u=i(a.end),d=[],f=new en(l.getFullYear(),l.getMonth(),1,12,0,0,e),p=u.getFullYear()*12+u.getMonth();for(;f.getFullYear()*12+f.getMonth()<=p;)d.push(new en(f,e)),f.setMonth(f.getMonth()+1,1);return d},addDays:(a,l)=>{let u=i(a);return u.setDate(u.getDate()+l),u},addWeeks:(a,l)=>{let u=i(a);return u.setDate(u.getDate()+l*7),u},addMonths:(a,l)=>{let u=i(a);return u.setMonth(u.getMonth()+l),u},addYears:(a,l)=>{let u=i(a);return u.setFullYear(u.getFullYear()+l),u},eachYearOfInterval:a=>{let l=i(a.start),u=i(a.end),d=[],f=new en(l.getFullYear(),0,1,12,0,0,e);for(;f.getFullYear()<=u.getFullYear();)d.push(new en(f,e)),f.setFullYear(f.getFullYear()+1,0,1);return d},getWeek:(a,l)=>{let u=s(a);return hg(u,{weekStartsOn:l?.weekStartsOn??n,firstWeekContainsDate:l?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:a=>{let l=s(a);return gg(l)},differenceInCalendarDays:(a,l)=>{let u=s(a),d=s(l);return Hf(u,d)},differenceInCalendarMonths:(a,l)=>{let u=s(a),d=s(l);return RN(u,d)}}}var kk=c(oe(),1);var $E=e=>e instanceof HTMLElement?e:null,o$=e=>[...e.querySelectorAll("[data-animated-month]")??[]],Cqe=e=>$E(e.querySelector("[data-animated-month]")),r$=e=>$E(e.querySelector("[data-animated-caption]")),n$=e=>$E(e.querySelector("[data-animated-weeks]")),Eqe=e=>$E(e.querySelector("[data-animated-nav]")),Tqe=e=>$E(e.querySelector("[data-animated-weekdays]"));function xge(e,t,{classNames:o,months:r,focused:n,dateLib:i}){let s=(0,kk.useRef)(null),a=(0,kk.useRef)(r),l=(0,kk.useRef)(!1);(0,kk.useLayoutEffect)(()=>{let u=a.current;if(a.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||u.length===0||r.length!==u.length)return;let d=i.isSameMonth(r[0].date,u[0].date),f=i.isAfter(r[0].date,u[0].date),p=f?o[cs.caption_after_enter]:o[cs.caption_before_enter],m=f?o[cs.weeks_after_enter]:o[cs.weeks_before_enter],g=s.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(o$(h).forEach(_=>{if(!(_ instanceof HTMLElement))return;let w=Cqe(_);w&&_.contains(w)&&_.removeChild(w);let k=r$(_);k&&k.classList.remove(p);let x=n$(_);x&&x.classList.remove(m)}),s.current=h):s.current=null,l.current||d||n)return;let b=g instanceof HTMLElement?o$(g):[],v=o$(e.current);if(v?.every(y=>y instanceof HTMLElement)&&b?.every(y=>y instanceof HTMLElement)){l.current=!0;let y=[];e.current.style.isolation="isolate";let _=Eqe(e.current);_&&(_.style.zIndex="1"),v.forEach((w,k)=>{let x=b[k];if(!x)return;w.style.position="relative",w.style.overflow="hidden";let C=r$(w);C&&C.classList.add(p);let E=n$(w);E&&E.classList.add(m);let R=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),_&&(_.style.zIndex=""),C&&C.classList.remove(p),E&&E.classList.remove(m),w.style.position="",w.style.overflow="",w.contains(x)&&w.removeChild(x)};y.push(R),x.style.pointerEvents="none",x.style.position="absolute",x.style.overflow="hidden",x.setAttribute("aria-hidden","true");let S=Tqe(x);S&&(S.style.opacity="0");let I=r$(x);I&&(I.classList.add(f?o[cs.caption_before_exit]:o[cs.caption_after_exit]),I.addEventListener("animationend",R));let O=n$(x);O&&O.classList.add(f?o[cs.weeks_before_exit]:o[cs.weeks_after_exit]),w.insertBefore(x,w.firstChild)})}})}var RL=c(oe(),1);function Sge(e,t,o,r){let n=e[0],i=e[e.length-1],{ISOWeek:s,fixedWeeks:a,broadcastCalendar:l}=o??{},{addDays:u,differenceInCalendarDays:d,differenceInCalendarMonths:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfMonth:g,endOfWeek:h,isAfter:b,startOfBroadcastWeek:v,startOfISOWeek:y,startOfWeek:_}=r,w=l?v(n,r):s?y(n):_(n),k=l?p(i):s?m(g(i)):h(g(i)),x=t&&(l?p(t):s?m(t):h(t)),C=x&&b(k,x)?x:k,E=d(C,w),R=f(i,n)+1,S=[];for(let A=0;A<=E;A++){let P=u(w,A);S.push(P)}let O=(l?35:42)*R;if(a&&S.length<O){let A=O-S.length;for(let P=0;P<A;P++){let L=u(S[S.length-1],1);S.push(L)}}return S}function Cge(e){let t=[];return e.reduce((o,r)=>{let n=r.weeks.reduce((i,s)=>i.concat(s.days.slice()),t.slice());return o.concat(n.slice())},t.slice())}function Ege(e,t,o,r){let{numberOfMonths:n=1}=o,i=[];for(let s=0;s<n;s++){let a=r.addMonths(e,s);if(t&&a>t)break;i.push(a)}return i}function i$(e,t,o,r){let{month:n,defaultMonth:i,today:s=r.today(),numberOfMonths:a=1}=e,l=n||i||s,{differenceInCalendarMonths:u,addMonths:d,startOfMonth:f}=r;if(o&&u(o,l)<a-1){let p=-1*(a-1);l=d(o,p)}return t&&u(l,t)<0&&(l=t),f(l)}function Tge(e,t,o,r){let{addDays:n,endOfBroadcastWeek:i,endOfISOWeek:s,endOfMonth:a,endOfWeek:l,getISOWeek:u,getWeek:d,startOfBroadcastWeek:f,startOfISOWeek:p,startOfWeek:m}=r,g=e.reduce((h,b)=>{let v=o.broadcastCalendar?f(b,r):o.ISOWeek?p(b):m(b),y=o.broadcastCalendar?i(b):o.ISOWeek?s(a(b)):l(a(b)),_=t.filter(C=>C>=v&&C<=y),w=o.broadcastCalendar?35:42;if(o.fixedWeeks&&_.length<w){let C=t.filter(E=>{let R=w-_.length;return E>y&&E<=n(y,R)});_.push(...C)}let k=_.reduce((C,E)=>{let R=o.ISOWeek?u(E):d(E),S=C.find(O=>O.weekNumber===R),I=new hk(E,b,r);return S?S.days.push(I):C.push(new xL(R,[I])),C},[]),x=new kL(b,k);return h.push(x),h},[]);return o.reverseMonths?g.reverse():g}function Rge(e,t){let{startMonth:o,endMonth:r}=e,{startOfYear:n,startOfDay:i,startOfMonth:s,endOfMonth:a,addYears:l,endOfYear:u,today:d}=t,f=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return o?o=s(o):!o&&f&&(o=n(l(e.today??d(),-100))),r?r=a(r):!r&&f&&(r=u(e.today??d())),[o&&i(o),r&&i(r)]}function Bge(e,t,o,r){if(o.disableNavigation)return;let{pagedNavigation:n,numberOfMonths:i=1}=o,{startOfMonth:s,addMonths:a,differenceInCalendarMonths:l}=r,u=n?i:1,d=s(e);if(!t)return a(d,u);if(!(l(t,e)<i))return a(d,u)}function Ige(e,t,o,r){if(o.disableNavigation)return;let{pagedNavigation:n,numberOfMonths:i}=o,{startOfMonth:s,addMonths:a,differenceInCalendarMonths:l}=r,u=n?i??1:1,d=s(e);if(!t)return a(d,-u);if(!(l(d,t)<=0))return a(d,-u)}function Pge(e){let t=[];return e.reduce((o,r)=>o.concat(r.weeks.slice()),t.slice())}var Oge=c(oe(),1);function yg(e,t){let[o,r]=(0,Oge.useState)(e);return[t===void 0?o:t,r]}function Age(e,t){let[o,r]=Rge(e,t),{startOfMonth:n,endOfMonth:i}=t,s=i$(e,o,r,t),[a,l]=yg(s,e.month?s:void 0);(0,RL.useEffect)(()=>{let w=i$(e,o,r,t);l(w)},[e.timeZone]);let{months:u,weeks:d,days:f,previousMonth:p,nextMonth:m}=(0,RL.useMemo)(()=>{let w=Ege(a,r,{numberOfMonths:e.numberOfMonths},t),k=Sge(w,e.endMonth?i(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),x=Tge(w,k,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),C=Pge(x),E=Cge(x),R=Ige(a,o,e,t),S=Bge(a,r,e,t);return{months:x,weeks:C,days:E,previousMonth:R,nextMonth:S}},[t,a.getTime(),r?.getTime(),o?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:g,onMonthChange:h}=e,b=w=>d.some(k=>k.days.some(x=>x.isEqualTo(w))),v=w=>{if(g)return;let k=n(w);o&&k<n(o)&&(k=n(o)),r&&k>n(r)&&(k=n(r)),l(k),h?.(k)};return{months:u,weeks:d,days:f,navStart:o,navEnd:r,previousMonth:p,nextMonth:m,goToMonth:v,goToDay:w=>{b(w)||v(w.date)}}}var a$=c(oe(),1);var ud;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(ud||(ud={}));function Mge(e){return!e[Eo.disabled]&&!e[Eo.hidden]&&!e[Eo.outside]}function Nge(e,t,o,r){let n,i=-1;for(let s of e){let a=t(s);Mge(a)&&(a[Eo.focused]&&i<ud.FocusedModifier?(n=s,i=ud.FocusedModifier):r?.isEqualTo(s)&&i<ud.LastFocused?(n=s,i=ud.LastFocused):o(s.date)&&i<ud.Selected?(n=s,i=ud.Selected):a[Eo.today]&&i<ud.Today&&(n=s,i=ud.Today))}return n||(n=e.find(s=>Mge(t(s)))),n}function Lge(e,t,o,r,n,i,s){let{ISOWeek:a,broadcastCalendar:l}=i,{addDays:u,addMonths:d,addWeeks:f,addYears:p,endOfBroadcastWeek:m,endOfISOWeek:g,endOfWeek:h,max:b,min:v,startOfBroadcastWeek:y,startOfISOWeek:_,startOfWeek:w}=s,x={day:u,week:f,month:d,year:p,startOfWeek:C=>l?y(C,s):a?_(C):w(C),endOfWeek:C=>l?m(C):a?g(C):h(C)}[e](o,t==="after"?1:-1);return t==="before"&&r?x=b([r,x]):t==="after"&&n&&(x=v([n,x])),x}function s$(e,t,o,r,n,i,s,a=0){if(a>365)return;let l=Lge(e,t,o.date,r,n,i,s),u=!!(i.disabled&&El(l,i.disabled,s)),d=!!(i.hidden&&El(l,i.hidden,s)),f=l,p=new hk(l,f,s);return!u&&!d?p:s$(e,t,p,r,n,i,s,a+1)}function Dge(e,t,o,r,n){let{autoFocus:i}=e,[s,a]=(0,a$.useState)(),l=Nge(t.days,o,r||(()=>!1),s),[u,d]=(0,a$.useState)(i?l:void 0);return{isFocusTarget:h=>!!l?.isEqualTo(h),setFocused:d,focused:u,blur:()=>{a(u),d(void 0)},moveFocus:(h,b)=>{if(!u)return;let v=s$(h,b,u,t.navStart,t.navEnd,e,n);v&&(e.disableNavigation&&!t.days.some(_=>_.isEqualTo(v))||(t.goToDay(v),d(v)))}}}function Vge(e,t){let{selected:o,required:r,onSelect:n}=e,[i,s]=yg(o,n?o:void 0),a=n?o:i,{isSameDay:l}=t,u=m=>a?.some(g=>l(g,m))??!1,{min:d,max:f}=e;return{selected:a,select:(m,g,h)=>{let b=[...a??[]];if(u(m)){if(a?.length===d||r&&a?.length===1)return;b=a?.filter(v=>!l(v,m))}else a?.length===f?b=[m]:b=[...b,m];return n||s(b),n?.(b,m,g,h),b},isSelected:u}}function Fge(e,t,o=0,r=0,n=!1,i=vn){let{from:s,to:a}=t||{},{isSameDay:l,isAfter:u,isBefore:d}=i,f;if(!s&&!a)f={from:e,to:o>0?void 0:e};else if(s&&!a)l(s,e)?o===0?f={from:s,to:e}:n?f={from:s,to:void 0}:f=void 0:d(e,s)?f={from:e,to:s}:f={from:s,to:e};else if(s&&a)if(l(s,e)&&l(a,e))n?f={from:s,to:a}:f=void 0;else if(l(s,e))f={from:s,to:o>0?void 0:e};else if(l(a,e))f={from:e,to:o>0?void 0:e};else if(d(e,s))f={from:e,to:a};else if(u(e,s))f={from:s,to:e};else if(u(e,a))f={from:s,to:e};else throw new Error("Invalid range");if(f?.from&&f?.to){let p=i.differenceInCalendarDays(f.to,f.from);r>0&&p>r?f={from:e,to:void 0}:o>1&&p<o&&(f={from:e,to:void 0})}return f}function zge(e,t,o=vn){let r=Array.isArray(t)?t:[t],n=e.from,i=o.differenceInCalendarDays(e.to,e.from),s=Math.min(i,6);for(let a=0;a<=s;a++){if(r.includes(n.getDay()))return!0;n=o.addDays(n,1)}return!1}function l$(e,t,o=vn){return Gs(e,t.from,!1,o)||Gs(e,t.to,!1,o)||Gs(t,e.from,!1,o)||Gs(t,e.to,!1,o)}function BL(e,t,o=vn){let r=Array.isArray(t)?t:[t];if(r.filter(a=>typeof a!="function").some(a=>typeof a=="boolean"?a:o.isDate(a)?Gs(e,a,!1,o):TL(a,o)?a.some(l=>Gs(e,l,!1,o)):bg(a)?a.from&&a.to?l$(e,{from:a.from,to:a.to},o):!1:EL(a)?zge(e,a.dayOfWeek,o):vk(a)?o.isAfter(a.before,a.after)?l$(e,{from:o.addDays(a.after,1),to:o.addDays(a.before,-1)},o):El(e.from,a,o)||El(e.to,a,o):_k(a)||wk(a)?El(e.from,a,o)||El(e.to,a,o):!1))return!0;let s=r.filter(a=>typeof a=="function");if(s.length){let a=e.from,l=o.differenceInCalendarDays(e.to,e.from);for(let u=0;u<=l;u++){if(s.some(d=>d(a)))return!0;a=o.addDays(a,1)}}return!1}function jge(e,t){let{disabled:o,excludeDisabled:r,resetOnSelect:n,selected:i,required:s,onSelect:a}=e,[l,u]=yg(i,a?i:void 0),d=a?i:l;return{selected:d,select:(m,g,h)=>{let{min:b,max:v}=e,y;if(m){let _=d?.from,w=d?.to,k=!!_&&!!w,x=!!_&&!!w&&t.isSameDay(_,w)&&t.isSameDay(m,_);n&&(k||!d?.from)?!s&&x?y=void 0:y={from:m,to:void 0}:y=Fge(m,d,b,v,s,t)}return r&&o&&y?.from&&y.to&&BL({from:y.from,to:y.to},o,t)&&(y.from=m,y.to=void 0),a||u(y),a?.(y,m,g,h),y},isSelected:m=>d&&Gs(d,m,!1,t)}}function Hge(e,t){let{selected:o,required:r,onSelect:n}=e,[i,s]=yg(o,n?o:void 0),a=n?o:i,{isSameDay:l}=t;return{selected:a,select:(f,p,m)=>{let g=f;return!r&&a&&a&&l(f,a)&&(g=void 0),n||s(g),n?.(g,f,p,m),g},isSelected:f=>a?l(a,f):!1}}function Wge(e,t){let o=Hge(e,t),r=Vge(e,t),n=jge(e,t);switch(e.mode){case"single":return o;case"multiple":return r;case"range":return n;default:return}}function us(e,t){return e instanceof en&&e.timeZone===t?e:new en(e,t)}function xk(e,t,o){if(!o)return us(e,t);let r=us(e,t),n=new en(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(n.getTime())}function Uge(e,t,o){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?xk(e,t,o):Array.isArray(e)?e.map(r=>r instanceof Date?xk(r,t,o):r):bg(e)?{...e,from:e.from?us(e.from,t):e.from,to:e.to?us(e.to,t):e.to}:vk(e)?{before:xk(e.before,t,o),after:xk(e.after,t,o)}:_k(e)?{after:xk(e.after,t,o)}:wk(e)?{before:xk(e.before,t,o)}:e}function IL(e,t,o){return e&&(Array.isArray(e)?e.map(r=>Uge(r,t,o)):Uge(e,t,o))}function PL(e){let t=e,o=t.timeZone;if(o&&(t={...e,timeZone:o},t.today&&(t.today=us(t.today,o)),t.month&&(t.month=us(t.month,o)),t.defaultMonth&&(t.defaultMonth=us(t.defaultMonth,o)),t.startMonth&&(t.startMonth=us(t.startMonth,o)),t.endMonth&&(t.endMonth=us(t.endMonth,o)),t.mode==="single"&&t.selected?t.selected=us(t.selected,o):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(we=>us(we,o)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?us(t.selected.from,o):t.selected.from,to:t.selected.to?us(t.selected.to,o):t.selected.to}),t.disabled!==void 0&&(t.disabled=IL(t.disabled,o)),t.hidden!==void 0&&(t.hidden=IL(t.hidden,o)),t.modifiers)){let we={};Object.keys(t.modifiers).forEach(Me=>{we[Me]=IL(t.modifiers?.[Me],o)}),t.modifiers=we}let{components:r,formatters:n,labels:i,dateLib:s,locale:a,classNames:l}=(0,pt.useMemo)(()=>{let we={...GE,...t.locale},Me=t.broadcastCalendar?1:t.weekStartsOn,ge=t.noonSafe&&t.timeZone?kge(t.timeZone,{weekStartsOn:Me,locale:we}):void 0,Re=t.dateLib&&ge?{...ge,...t.dateLib}:t.dateLib??ge,Ie=new yn({locale:we,weekStartsOn:Me,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},Re);return{dateLib:Ie,components:pge(t.components),formatters:hge(t.formatters),labels:bge(t.labels,Ie.options),locale:we,classNames:{...gge(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:s.today()});let{captionLayout:u,mode:d,navLayout:f,numberOfMonths:p=1,onDayBlur:m,onDayClick:g,onDayFocus:h,onDayKeyDown:b,onDayMouseEnter:v,onDayMouseLeave:y,onNextClick:_,onPrevClick:w,showWeekNumber:k,styles:x}=t,{formatCaption:C,formatDay:E,formatMonthDropdown:R,formatWeekNumber:S,formatWeekNumberHeader:I,formatWeekdayName:O,formatYearDropdown:A}=n,P=Age(t,s),{days:L,months:H,navStart:N,navEnd:M,previousMonth:V,nextMonth:j,goToMonth:D}=P,z=dge(L,t,N,M,s),{isSelected:$,select:J,selected:Q}=Wge(t,s)??{},{blur:W,focused:X,isFocusTarget:U,moveFocus:G,setFocused:te}=Dge(t,P,z,$??(()=>!1),s),{labelDayButton:re,labelGridcell:ae,labelGrid:ie,labelMonthDropdown:be,labelNav:pe,labelPrevious:ke,labelNext:ye,labelWeekday:Pe,labelWeekNumber:_e,labelWeekNumberHeader:ve,labelYearDropdown:Se}=i,fe=(0,pt.useMemo)(()=>_ge(s,t.ISOWeek,t.broadcastCalendar,t.today),[s,t.ISOWeek,t.broadcastCalendar,t.today]),Ce=d!==void 0||g!==void 0,ne=(0,pt.useCallback)(()=>{V&&(D(V),w?.(V))},[V,D,w]),se=(0,pt.useCallback)(()=>{j&&(D(j),_?.(j))},[D,j,_]),Ee=(0,pt.useCallback)((we,Me)=>ge=>{ge.preventDefault(),ge.stopPropagation(),te(we),!Me.disabled&&(J?.(we.date,Me,ge),g?.(we.date,Me,ge))},[J,g,te]),he=(0,pt.useCallback)((we,Me)=>ge=>{te(we),h?.(we.date,Me,ge)},[h,te]),Ae=(0,pt.useCallback)((we,Me)=>ge=>{W(),m?.(we.date,Me,ge)},[W,m]),et=(0,pt.useCallback)((we,Me)=>ge=>{let Re={ArrowLeft:[ge.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[ge.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[ge.shiftKey?"year":"week","after"],ArrowUp:[ge.shiftKey?"year":"week","before"],PageUp:[ge.shiftKey?"year":"month","before"],PageDown:[ge.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Re[ge.key]){ge.preventDefault(),ge.stopPropagation();let[Ie,at]=Re[ge.key];G(Ie,at)}b?.(we.date,Me,ge)},[G,b,t.dir]),Je=(0,pt.useCallback)((we,Me)=>ge=>{v?.(we.date,Me,ge)},[v]),_t=(0,pt.useCallback)((we,Me)=>ge=>{y?.(we.date,Me,ge)},[y]),Et=(0,pt.useCallback)((we,Me)=>ge=>{let Re=Number(ge.target.value),Ie=s.setMonth(s.startOfMonth(we),Re);D(s.addMonths(Ie,-Me))},[s,D]),mt=(0,pt.useCallback)((we,Me)=>ge=>{let Re=Number(ge.target.value),Ie=s.setYear(s.startOfMonth(we),Re);D(s.addMonths(Ie,-Me))},[s,D]),{className:oo,style:Tt}=(0,pt.useMemo)(()=>({className:[l[Le.Root],t.className].filter(Boolean).join(" "),style:{...x?.[Le.Root],...t.style}}),[l,t.className,t.style,x]),Rt=mge(t),Bt=we=>{let Me=x?.[Le.Dropdown],ge=x?.[we];if(!(!Me&&!ge))return{...Me,...ge}},gt=(0,pt.useRef)(null);xge(gt,!!t.animate,{classNames:l,months:H,focused:X,dateLib:s});let He={dayPickerProps:t,selected:Q,select:J,isSelected:$,months:H,nextMonth:j,previousMonth:V,goToMonth:D,getModifiers:z,components:r,classNames:l,styles:x,labels:i,formatters:n};return pt.default.createElement(zG.Provider,{value:He},pt.default.createElement(r.Root,{rootRef:t.animate?gt:void 0,className:oo,style:Tt,dir:t.dir,id:t.id,lang:t.lang??a.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...Rt},pt.default.createElement(r.Months,{className:l[Le.Months],style:x?.[Le.Months]},!t.hideNavigation&&!f&&pt.default.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[Le.Nav],style:x?.[Le.Nav],"aria-label":pe(),onPreviousClick:ne,onNextClick:se,previousMonth:V,nextMonth:j}),H.map((we,Me)=>{let ge=t.reverseMonths?H.length-1-Me:Me;return pt.default.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:l[Le.Month],style:x?.[Le.Month],key:Me,displayIndex:Me,calendarMonth:we},f==="around"&&!t.hideNavigation&&Me===0&&pt.default.createElement(r.PreviousMonthButton,{type:"button",className:l[Le.PreviousMonthButton],style:x?.[Le.PreviousMonthButton],tabIndex:V?void 0:-1,"aria-disabled":V?void 0:!0,"aria-label":ke(V),onClick:ne,"data-animated-button":t.animate?"true":void 0},pt.default.createElement(r.Chevron,{disabled:V?void 0:!0,className:l[Le.Chevron],style:x?.[Le.Chevron],orientation:t.dir==="rtl"?"right":"left"})),pt.default.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[Le.MonthCaption],style:x?.[Le.MonthCaption],calendarMonth:we,displayIndex:Me},u?.startsWith("dropdown")?pt.default.createElement(r.DropdownNav,{className:l[Le.Dropdowns],style:x?.[Le.Dropdowns]},(()=>{let Re=u==="dropdown"||u==="dropdown-months"?pt.default.createElement(r.MonthsDropdown,{key:"month",className:l[Le.MonthsDropdown],"aria-label":be(),disabled:!!t.disableNavigation,onChange:Et(we.date,ge),options:yge(we.date,N,M,n,s),style:Bt(Le.MonthsDropdown),value:s.getMonth(we.date)}):pt.default.createElement("span",{key:"month"},R(we.date,s)),Ie=u==="dropdown"||u==="dropdown-years"?pt.default.createElement(r.YearsDropdown,{key:"year",className:l[Le.YearsDropdown],"aria-label":Se(s.options),disabled:!!t.disableNavigation,onChange:mt(we.date,ge),options:wge(N,M,n,s,!!t.reverseYears),style:Bt(Le.YearsDropdown),value:s.getYear(we.date)}):pt.default.createElement("span",{key:"year"},A(we.date,s));return s.getMonthYearOrder()==="year-first"?[Ie,Re]:[Re,Ie]})(),pt.default.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},C(we.date,s.options,s))):pt.default.createElement(r.CaptionLabel,{className:l[Le.CaptionLabel],style:x?.[Le.CaptionLabel],role:"status","aria-live":"polite"},C(we.date,s.options,s))),f==="around"&&!t.hideNavigation&&Me===p-1&&pt.default.createElement(r.NextMonthButton,{type:"button",className:l[Le.NextMonthButton],style:x?.[Le.NextMonthButton],tabIndex:j?void 0:-1,"aria-disabled":j?void 0:!0,"aria-label":ye(j),onClick:se,"data-animated-button":t.animate?"true":void 0},pt.default.createElement(r.Chevron,{disabled:j?void 0:!0,className:l[Le.Chevron],style:x?.[Le.Chevron],orientation:t.dir==="rtl"?"left":"right"})),Me===p-1&&f==="after"&&!t.hideNavigation&&pt.default.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[Le.Nav],style:x?.[Le.Nav],"aria-label":pe(),onPreviousClick:ne,onNextClick:se,previousMonth:V,nextMonth:j}),pt.default.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":d==="multiple"||d==="range","aria-label":ie(we.date,s.options,s)||void 0,className:l[Le.MonthGrid],style:x?.[Le.MonthGrid]},!t.hideWeekdays&&pt.default.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[Le.Weekdays],style:x?.[Le.Weekdays]},k&&pt.default.createElement(r.WeekNumberHeader,{"aria-label":ve(s.options),className:l[Le.WeekNumberHeader],style:x?.[Le.WeekNumberHeader],scope:"col"},I()),fe.map(Re=>pt.default.createElement(r.Weekday,{"aria-label":Pe(Re,s.options,s),className:l[Le.Weekday],key:String(Re),style:x?.[Le.Weekday],scope:"col"},O(Re,s.options,s)))),pt.default.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[Le.Weeks],style:x?.[Le.Weeks]},we.weeks.map(Re=>pt.default.createElement(r.Week,{className:l[Le.Week],key:Re.weekNumber,style:x?.[Le.Week],week:Re},k&&pt.default.createElement(r.WeekNumber,{week:Re,style:x?.[Le.WeekNumber],"aria-label":_e(Re.weekNumber,{locale:a}),className:l[Le.WeekNumber],scope:"row",role:"rowheader"},S(Re.weekNumber,s)),Re.days.map(Ie=>{let{date:at}=Ie,Qe=z(Ie);if(Qe[Eo.focused]=!Qe.hidden&&!!X?.isEqualTo(Ie),Qe[Us.selected]=$?.(at)||Qe.selected,bg(Q)){let{from:Kt,to:_o}=Q;Qe[Us.range_start]=!!(Kt&&_o&&s.isSameDay(at,Kt)),Qe[Us.range_end]=!!(Kt&&_o&&s.isSameDay(at,_o)),Qe[Us.range_middle]=Gs(Q,at,!0,s)}let po=vge(Qe,x,t.modifiersStyles),ro=fge(Qe,l,t.modifiersClassNames),vo=!Ce&&!Qe.hidden?ae(at,Qe,s.options,s):void 0;return pt.default.createElement(r.Day,{key:`$Ie.isoDate}_$Ie.displayMonthId}`,day:Ie,modifiers:Qe,className:ro.join(" "),style:po,role:"gridcell","aria-selected":Qe.selected||void 0,"aria-label":vo,"data-day":Ie.isoDate,"data-month":Ie.outside?Ie.dateMonthId:void 0,"data-selected":Qe.selected||void 0,"data-disabled":Qe.disabled||void 0,"data-hidden":Qe.hidden||void 0,"data-outside":Ie.outside||void 0,"data-focused":Qe.focused||void 0,"data-today":Qe.today||void 0},!Qe.hidden&&Ce?pt.default.createElement(r.DayButton,{className:l[Le.DayButton],style:x?.[Le.DayButton],type:"button",day:Ie,modifiers:Qe,disabled:!Qe.focused&&Qe.disabled||void 0,"aria-disabled":Qe.focused&&Qe.disabled||void 0,tabIndex:U(Ie)?0:-1,"aria-label":re(at,Qe,s.options,s),onClick:Ee(Ie,Qe),onBlur:Ae(Ie,Qe),onFocus:he(Ie,Qe),onKeyDown:et(Ie,Qe),onMouseEnter:Je(Ie,Qe),onMouseLeave:_t(Ie,Qe)},E(at,s.options,s)):!Qe.hidden&&E(Ie.date,s.options,s))}))))))})),t.footer&&pt.default.createElement(r.Footer,{className:l[Le.Footer],style:x?.[Le.Footer],role:"status","aria-live":"polite"},t.footer)))}var _y=c(F(),1);var qge=c(F(),1),Zge=c(ue(),1);var OL=c(Z(),1);var $ge=c(F(),1);var Tl=c(T(),1),c$="data-wp-hash";function u$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Bqe(document)),e.__wpStyleRuntime}function Rqe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$c$}]`))if(o.getAttribute(c$)===t)return!0;return!1}function Yge(e,t,o){if(!e.head)return;let r=u$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Rqe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(c$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Bqe(e){let t=u$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Yge(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Iqe(e,t){let o=u$();o.styles.set(e,t);for(let r of o.documents.keys())Yge(r,e,t)}typeof process>"u",Iqe("c5cdafb1bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer compositions{._28cfdc260e755391__icon-button{--wp-ui-button-aspect-ratio:1;--wp-ui-button-padding-inline:0px;--wp-ui-button-min-width:unset}.f1c70d719989a85a__icon{margin:-1px}}}");var Gge={"icon-button":"_28cfdc260e755391__icon-button",icon:"f1c70d719989a85a__icon"},d$=(0,$ge.forwardRef)(function({label:t,className:o,children:r,disabled:n,focusableWhenDisabled:i=!0,icon:s,size:a,shortcut:l,positioner:u,"aria-describedby":d,"aria-keyshortcuts":f,...p},m){let g=Y(Gge["icon-button"],o),{descriptionId:h,targetProps:b}=Dpe({"aria-describedby":d,"aria-keyshortcuts":f,shortcut:l});return(0,Tl.jsxs)(hN,{children:[(0,Tl.jsxs)(gN,{ref:m,...b,disabled:n&&!i,render:(0,Tl.jsx)(wN,{...p,size:a,"aria-label":t,disabled:n,focusableWhenDisabled:i}),className:g,children:[(0,Tl.jsx)(Jr,{icon:s,size:24,className:Gge.icon}),l&&h&&(0,Tl.jsx)(Vpe,{descriptionId:h,shortcut:l})]}),(0,Tl.jsxs)(mN,{positioner:u,children:[t,l&&(0,Tl.jsxs)(Tl.Fragment,{children:[" ",(0,Tl.jsx)(Fpe,{shortcut:l})]})]})]})});var Kge=c(F(),1),Sk=(0,Kge.createContext)({});var Hi=c(T(),1),Pqe=()=>(0,Hi.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeDasharray:"3.7677",strokeDashoffset:"3.2",strokeWidth:"1",children:(0,Hi.jsx)("path",{d:"M29.5,0.5 h-27 a2,2 0 0 0 -2,2 v27 a2,2 0 0 0 2,2 h27 a2,2 0 0 0 2,-2 v-27 a2,2 0 0 0 -2,-2"})}),Oqe=()=>(0,Hi.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeDasharray:"3.84516",strokeDashoffset:"1.9226",strokeWidth:"1",children:(0,Hi.jsx)("path",{d:"M32,0.5 h-29.5 a2,2 0 0 0 -2,2 v27 a2,2 0 0 0 2,2 h30"})}),Aqe=()=>(0,Hi.jsxs)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeDasharray:"3.9 4",strokeDashoffset:"2",strokeWidth:"1",children:[(0,Hi.jsx)("line",{x1:"0",y1:"0.5",x2:"100",y2:"0.5"}),(0,Hi.jsx)("line",{x1:"0",y1:"31.5",x2:"100",y2:"31.5"})]}),Mqe=()=>(0,Hi.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeDasharray:"3.84516",strokeDashoffset:"1.9226",strokeWidth:"1",children:(0,Hi.jsx)("path",{d:"M0,0.5 h29.5 a2,2 0 0 1 2,2 v27 a2,2 0 0 1 -2,2 h-29.5"})});function Xge(e){let{day:t,modifiers:o,children:r,...n}=e,i;return o.preview_start&&o.preview_end?i=Pqe:o.preview_start?i=Oqe:o.preview_end?i=Mqe:o.preview&&(i=Aqe),(0,Hi.jsxs)("td",{...n,children:[i&&(0,Hi.jsx)(i,{}),r]})}function Qge({rootRef:e,...t}){let{render:o,ref:r,role:n,defaultAriaLabel:i}=(0,qge.useContext)(Sk),{months:s,labels:a}=cd(),l=t["aria-label"]!==void 0||t["aria-labelledby"]!==void 0,u=t["aria-label"];if(!l&&i&&n==="application"){let f=s[0];u=f?(0,OL.sprintf)((0,OL.__)("%1$s, %2$s"),i,a.labelGrid(f.date)):i}let d=(0,Zge.useMergeRefs)([e??null,r??null]);return Lr({render:o,defaultTagName:"div",ref:d,props:{...t,role:n,"aria-label":u}})}function Jge({icon:e,className:t,children:o,"aria-label":r,"aria-disabled":n,...i}){return(0,Hi.jsx)(d$,{...i,className:t,label:r,icon:e,variant:"minimal",tone:"neutral",size:"compact",disabled:n===!0||n==="true",focusableWhenDisabled:!0})}function ehe(e){return(0,Hi.jsx)(Jge,{...e,icon:li})}function the(e){return(0,Hi.jsx)(Jge,{...e,icon:br})}var f$="data-wp-hash";function p$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Lqe(document)),e.__wpStyleRuntime}function Nqe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$f$}]`))if(o.getAttribute(f$)===t)return!0;return!1}function ohe(e,t,o){if(!e.head)return;let r=p$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Nqe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(f$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Lqe(e){let t=p$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)ohe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function AL(e,t){let o=p$();o.styles.set(e,t);for(let r of o.documents.keys())ohe(r,e,t)}typeof process>"u",AL("9d2212290a",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._2c7ac60ba97b3411__root{--wp-ui-calendar-cell-size:var(--wpds-dimension-size-md,32px);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:inline-block;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);position:relative;z-index:0}._172c492625235710__day{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);padding:0;position:relative;&:has(._1b64226e315835f8__day-button:disabled){color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&:has(._1b64226e315835f8__day-button:focus-visible),&:has(._1b64226e315835f8__day-button:hover:not(:disabled)){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}}._1b64226e315835f8__day-button{align-items:center;background:none;border:none;border-radius:var(--wpds-border-radius-sm,2px);color:inherit;cursor:var(--wpds-cursor-control,pointer);display:flex;font:inherit;font-variant-numeric:tabular-nums;height:var(--wp-ui-calendar-cell-size);justify-content:center;margin:0;padding:0;position:relative;width:var(--wp-ui-calendar-cell-size);&:before{background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border:none;border-radius:var(--wpds-border-radius-sm,2px);z-index:-1}&:after,&:before{content:"";inset:0;position:absolute}&:after{pointer-events:none;z-index:1}&:disabled{cursor:revert;&:before{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}@media (forced-colors:active){text-decoration:line-through}}&:focus-visible:before,&:hover:not(:disabled):before{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}}._66b9a8120581fd4b__caption-label{align-items:center;border:0;display:inline-flex;position:relative;text-transform:capitalize;white-space:nowrap;z-index:1}._2c7ac60ba97b3411__root[dir=rtl] ._395a75bb1930f57e__nav-button{transform:rotate(180deg);transform-origin:50%}._337e5337d49b7f3d__month-caption{align-content:center;display:flex;height:var(--wp-ui-calendar-cell-size);justify-content:center;margin-bottom:var(--wpds-dimension-gap-md,12px)}._110e46230c68e498__months{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-lg,16px);justify-content:center;max-width:fit-content;position:relative}._92915239fedb1fea__month-grid{border-collapse:separate;border-spacing:0 var(--wpds-dimension-gap-xs,4px)}._66b1d4a7b488b496__nav{align-items:center;display:flex;height:var(--wp-ui-calendar-cell-size);inset-block-start:0;inset-inline-end:0;inset-inline-start:0;justify-content:space-between;position:absolute}._7207199709ca5776__weekday{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-weight:var(--wpds-typography-font-weight-default,400);height:var(--wp-ui-calendar-cell-size);padding:0;text-align:center;text-transform:uppercase;width:var(--wp-ui-calendar-cell-size)}._058175f0f9c495e0__today:after{border:2px solid;border-radius:50%;content:"";height:0;inset-block-start:2px;inset-inline-end:2px;position:absolute;width:0;z-index:1}.acb642920fb0bef5__selected:not(._165d91a726feca9c__range-middle){&:has(._1b64226e315835f8__day-button,._1b64226e315835f8__day-button:hover:not(:disabled)){color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0)}&:has(._1b64226e315835f8__day-button:disabled){color:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}._1b64226e315835f8__day-button{&:before{background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);border:1px solid transparent}&:disabled:before{background-color:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6)}&:hover:not(:disabled):before{background-color:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e)}}}.c259c5c255fda10f__outside{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}._4d8957a0ca4ec8f0__hidden{visibility:hidden}.f2523033db055ffe__range-start:not(.c04a453de7b11520__range-end) ._1b64226e315835f8__day-button{&,&:before{border-end-end-radius:0;border-start-end-radius:0}}._165d91a726feca9c__range-middle ._1b64226e315835f8__day-button{&:before{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-color:transparent;border-radius:0;border-style:solid;border-width:1px 0}}.c04a453de7b11520__range-end:not(.f2523033db055ffe__range-start) ._1b64226e315835f8__day-button{&,&:before{border-end-start-radius:0;border-start-start-radius:0}}._81b244e7c541d95e__preview svg{color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);inset:0;pointer-events:none;position:absolute;@media (forced-colors:active){color:inherit}}._81b244e7c541d95e__preview.acb642920fb0bef5__selected:not(._165d91a726feca9c__range-middle) svg{display:none}._2c7ac60ba97b3411__root[dir=rtl] ._81b244e7c541d95e__preview svg{transform:scaleX(-1)}._81b244e7c541d95e__preview._165d91a726feca9c__range-middle ._1b64226e315835f8__day-button:before{border:none}@keyframes _255a1a462a5377db__slide-in-left{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes c21e45f616d6db39__slide-in-right{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes aed80001de9ae226__slide-out-left{0%{transform:translateX(0)}to{transform:translateX(-100%)}}@keyframes _7d4779a7f29408f2__slide-out-right{0%{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes _83ba6321b055d687__fade-in{0%{opacity:0}to{opacity:1}}@keyframes _96fbead71248d210__fade-out{0%{opacity:1}to{opacity:0}}._1563bccb09e39c30__caption-after-enter,._60ac2a7fc3208801__weeks-before-exit,._735dacf9052adecd__caption-before-exit,._7f73a6ab85101202__weeks-after-exit,._805d698b56ba4a29__weeks-after-enter,._9721326fbc23a5fb__weeks-before-enter,.c7a3082839155d29__caption-after-exit,.cb8a5ec82ad0885e__caption-before-enter{animation-duration:0s;animation-fill-mode:forwards;animation-timing-function:var(--wpds-motion-easing-balanced,cubic-bezier(.4,0,.2,1));@media not (prefers-reduced-motion){animation-duration:var(--wpds-motion-duration-lg,.3s)}}._2c7ac60ba97b3411__root[dir=rtl] ._805d698b56ba4a29__weeks-after-enter,._9721326fbc23a5fb__weeks-before-enter{animation-name:_255a1a462a5377db__slide-in-left}._2c7ac60ba97b3411__root[dir=rtl] ._7f73a6ab85101202__weeks-after-exit,._60ac2a7fc3208801__weeks-before-exit{animation-name:aed80001de9ae226__slide-out-left}._2c7ac60ba97b3411__root[dir=rtl] ._9721326fbc23a5fb__weeks-before-enter,._805d698b56ba4a29__weeks-after-enter{animation-name:c21e45f616d6db39__slide-in-right}._2c7ac60ba97b3411__root[dir=rtl] ._60ac2a7fc3208801__weeks-before-exit,._7f73a6ab85101202__weeks-after-exit{animation-name:_7d4779a7f29408f2__slide-out-right}._1563bccb09e39c30__caption-after-enter,.cb8a5ec82ad0885e__caption-before-enter{animation-name:_83ba6321b055d687__fade-in}._735dacf9052adecd__caption-before-exit,.c7a3082839155d29__caption-after-exit{animation-name:_96fbead71248d210__fade-out}}}');var Oo={root:"_2c7ac60ba97b3411__root",day:"_172c492625235710__day","day-button":"_1b64226e315835f8__day-button","caption-label":"_66b9a8120581fd4b__caption-label","nav-button":"_395a75bb1930f57e__nav-button","month-caption":"_337e5337d49b7f3d__month-caption",months:"_110e46230c68e498__months","month-grid":"_92915239fedb1fea__month-grid",nav:"_66b1d4a7b488b496__nav",weekday:"_7207199709ca5776__weekday",today:"_058175f0f9c495e0__today",selected:"acb642920fb0bef5__selected","range-middle":"_165d91a726feca9c__range-middle",outside:"c259c5c255fda10f__outside",hidden:"_4d8957a0ca4ec8f0__hidden","range-start":"f2523033db055ffe__range-start","range-end":"c04a453de7b11520__range-end",preview:"_81b244e7c541d95e__preview","weeks-before-enter":"_9721326fbc23a5fb__weeks-before-enter","weeks-before-exit":"_60ac2a7fc3208801__weeks-before-exit","weeks-after-enter":"_805d698b56ba4a29__weeks-after-enter","weeks-after-exit":"_7f73a6ab85101202__weeks-after-exit","caption-after-enter":"_1563bccb09e39c30__caption-after-enter","caption-after-exit":"c7a3082839155d29__caption-after-exit","caption-before-enter":"cb8a5ec82ad0885e__caption-before-enter","caption-before-exit":"_735dacf9052adecd__caption-before-exit","slide-in-left":"_255a1a462a5377db__slide-in-left","slide-out-left":"aed80001de9ae226__slide-out-left","slide-in-right":"c21e45f616d6db39__slide-in-right","slide-out-right":"_7d4779a7f29408f2__slide-out-right","fade-in":"_83ba6321b055d687__fade-in","fade-out":"_96fbead71248d210__fade-out"};typeof process>"u",AL("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Dqe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",AL("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var Vqe={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",AL("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var Fqe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},zqe={root:Y(Oo.root,Dqe["box-sizing"]),day:Oo.day,day_button:Y(Oo["day-button"],Fqe.button,Vqe["outset-ring--focus-visible"]),outside:Oo.outside,caption_label:Oo["caption-label"],button_next:Oo["nav-button"],button_previous:Oo["nav-button"],nav:Oo.nav,month_caption:Oo["month-caption"],months:Oo.months,month_grid:Oo["month-grid"],weekday:Oo.weekday,today:Oo.today,selected:Oo.selected,disabled:void 0,hidden:Oo.hidden,range_start:Oo["range-start"],range_end:Oo["range-end"],range_middle:Oo["range-middle"],weeks_before_enter:Oo["weeks-before-enter"],weeks_before_exit:Oo["weeks-before-exit"],weeks_after_enter:Oo["weeks-after-enter"],weeks_after_exit:Oo["weeks-after-exit"],caption_after_enter:Oo["caption-after-enter"],caption_after_exit:Oo["caption-after-exit"],caption_before_enter:Oo["caption-before-enter"],caption_before_exit:Oo["caption-before-exit"]},rhe={preview:Oo.preview},ML={animate:!0,showOutsideDays:!1,showWeekNumber:!1,hideWeekdays:!1,captionLayout:"label",fixedWeeks:!1,hideNavigation:!1,classNames:zqe,components:{Day:Xge,Root:Qge,PreviousMonthButton:ehe,NextMonthButton:the}};function NL(e){return Math.min(3,Math.max(1,e))}var LL=c(F(),1);function DL({defaultValue:e,onChange:t,value:o}){let r=typeof o<"u",n=r?o:e,[i,s]=(0,LL.useState)(n),a=r?o:i,l=(0,LL.useCallback)((d,...f)=>{s(d),t?.(d,...f)},[t]),u;return r&&typeof t=="function"?u=t:!r&&typeof t=="function"?u=l:u=s,[a,u]}var gi=c(Z(),1),nhe=c(F(),1);function jqe(e){let t=(e.getTextInfo?.()??e.textInfo)?.direction;return t?t==="rtl":["ar","he","fa","ur","ps","syr","dv","ku","ckb","ug","yi"].includes(e.language)}function Hqe(e){if(!e)return;let t;try{t=Intl.DateTimeFormat.supportedLocalesOf([e])[0]}catch{}return t}function Wqe(e){let t=(e.getWeekInfo?.()??e.weekInfo)?.firstDay;if(!(t===void 0||t<1||t>7))return t%7}var VL=({locale:e,timeZone:t,mode:o})=>(0,nhe.useMemo)(()=>{let r=typeof e=="string",n=r||e===void 0?Ra:e,i=Hqe(r?e:e?.code),s=i??"en-US",a=new Intl.Locale(s),l=i!==void 0?jqe(a):(0,gi.isRTL)(),u=r||i!==void 0?Wqe(a):void 0,d=new Intl.DateTimeFormat(s,{calendar:"gregory",year:"numeric",month:"long",timeZone:t}),f=new Intl.DateTimeFormat(s,{calendar:"gregory",weekday:"narrow",timeZone:t}),p=new Intl.DateTimeFormat(s,{calendar:"gregory",weekday:"long",timeZone:t}),m=new Intl.DateTimeFormat(s,{calendar:"gregory",weekday:"long",year:"numeric",month:"long",day:"numeric",timeZone:t}),g=new Intl.DateTimeFormat(s,{calendar:"gregory",day:"numeric",timeZone:t});return{"aria-label":o==="single"?(0,gi.__)("Date calendar"):(0,gi.__)("Date range calendar"),labels:{labelNav:()=>(0,gi.__)("Navigation bar"),labelGrid:d.format,labelGridcell:(h,b)=>{let v=m.format(h),y=v;return b?.today&&(y=(0,gi.sprintf)((0,gi.__)("Today, %s"),v)),y},labelNext:()=>(0,gi.__)("Next month"),labelPrevious:()=>(0,gi.__)("Previous month"),labelDayButton:(h,b)=>{let v=m.format(h),y=v;return b?.today&&b?.selected?(0,gi.sprintf)((0,gi.__)("Today, %s, selected"),v):(b?.today&&(y=(0,gi.sprintf)((0,gi.__)("Today, %s"),v)),b?.selected&&(y=(0,gi.sprintf)((0,gi.__)("%s, selected"),v)),y)},labelWeekday:p.format},locale:n,lang:s,dir:l?"rtl":"ltr",...u===void 0?{}:{weekStartsOn:u},formatters:{formatDay:g.format,formatWeekdayName:f.format,formatCaption:d.format},timeZone:t}},[e,t,o]);var ihe=c(ue(),1),vg=c(F(),1);function FL(e,t){let o=(0,vg.useRef)(null),r=(0,vg.useRef)(!1),n=(0,ihe.useMergeRefs)([o,e]),i=t?t.getFullYear()*12+t.getMonth():void 0,s=(0,vg.useCallback)(()=>{r.current=!0},[]),a=(0,vg.useCallback)(()=>{r.current=!1},[]);return(0,vg.useEffect)(()=>{if(!r.current)return;let l=o.current;if(!l)return;let{activeElement:u,body:d}=l.ownerDocument;if(u!==d){let g=u?.closest('[role="grid"]');r.current=!!g&&l.contains(g);return}r.current=!1;let f=l.querySelector('[role="grid"] button[tabindex="0"]:not(:disabled)'),p=l.querySelector('button:not(:disabled):not([aria-disabled="true"])'),m=l.querySelector("button:not(:disabled)");(f??p??m)?.focus()},[i]),{ref:n,onDayFocus:s,onDayBlur:a}}var m$=c(T(),1),YE=(0,_y.forwardRef)(function({defaultValue:t,value:o,onValueChange:r,numberOfMonths:n=1,locale:i,timeZone:s,month:a,render:l,role:u="application","aria-label":d,labels:f,...p},m){let{"aria-label":g,...h}=VL({locale:i,timeZone:s,mode:"single"}),b=(0,_y.useMemo)(()=>f?{...h.labels,...f}:h.labels,[h.labels,f]),v=(0,_y.useCallback)((x,C,E,R)=>{r?.(x??null,C,E,R)},[r]),[y,_]=DL({defaultValue:t,value:o,onChange:v}),w=FL(m,a),k=(0,_y.useMemo)(()=>({render:l,ref:w.ref,role:u,defaultAriaLabel:g}),[l,w.ref,u,g]);return(0,m$.jsx)(Sk.Provider,{value:k,children:(0,m$.jsx)(PL,{...ML,...h,...p,"aria-label":d,mode:"single",month:a,numberOfMonths:NL(n),labels:b,selected:y??void 0,onSelect:_,onDayFocus:w.onDayFocus,onDayBlur:w.onDayBlur})})});var zc=c(F(),1);var g$=c(T(),1);function Uqe({value:e,hoveredDate:t,excludeDisabled:o,min:r,max:n,disabled:i}){return(0,zc.useMemo)(()=>{if(!t||!e?.from)return;let s,a;return t<e.from?(s={from:t,to:e.from},a={from:t,to:e.to??e.from}):e.to&&t>e.from&&t<e.to?(s={from:e.from,to:t},a={from:e.from,to:t}):t>e.from&&(s={from:e.to??e.from,to:t},a={from:e.from,to:t}),r!==void 0&&r>0&&a&&Hf(a.to,a.from)<r&&(s={from:t,to:t}),n!==void 0&&n>0&&a&&Hf(a.to,a.from)>n&&(s={from:t,to:t}),o&&i&&a&&BL(a,i)&&(s={from:t,to:t}),s},[e,t,o,r,n,i])}var h$=(0,zc.forwardRef)(function({defaultValue:t,value:o,onValueChange:r,numberOfMonths:n=1,excludeDisabled:i,min:s,max:a,disabled:l,locale:u,timeZone:d,month:f,render:p,role:m="application","aria-label":g,labels:h,...b},v){let{"aria-label":y,..._}=VL({locale:u,timeZone:d,mode:"range"}),w=(0,zc.useMemo)(()=>h?{..._.labels,...h}:_.labels,[_.labels,h]),k=(0,zc.useCallback)((P,L,H,N)=>{r?.(P??null,L,H,N)},[r]),[x,C]=DL({defaultValue:t,value:o,onChange:k}),E=FL(v,f),[R,S]=(0,zc.useState)(void 0),I=Uqe({value:x,hoveredDate:R,excludeDisabled:i,min:s,max:a,disabled:l}),O=(0,zc.useMemo)(()=>({preview:I,preview_start:I?.from,preview_end:I?.to}),[I]),A=(0,zc.useMemo)(()=>({render:p,ref:E.ref,role:m,defaultAriaLabel:y}),[p,E.ref,m,y]);return(0,g$.jsx)(Sk.Provider,{value:A,children:(0,g$.jsx)(PL,{...ML,..._,...b,"aria-label":g,mode:"range",month:f,numberOfMonths:NL(n),disabled:l,excludeDisabled:i,min:s,max:a,labels:w,selected:x??void 0,onSelect:C,onDayFocus:E.onDayFocus,onDayBlur:E.onDayBlur,onDayMouseEnter:P=>S(P),onDayMouseLeave:()=>S(void 0),modifiers:O,modifiersClassNames:rhe})})});var dd={};No(dd,{Content:()=>HL,FullBleed:()=>ghe,Header:()=>jL,Root:()=>zL,Title:()=>bhe});var she=c(F(),1),b$="data-wp-hash";function y$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&$qe(document)),e.__wpStyleRuntime}function Gqe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$b$}]`))if(o.getAttribute(b$)===t)return!0;return!1}function ahe(e,t,o){if(!e.head)return;let r=y$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Gqe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(b$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function $qe(e){let t=y$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)ahe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function lhe(e,t){let o=y$();o.styles.set(e,t);for(let r of o.documents.keys())ahe(r,e,t)}typeof process>"u",lhe("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Yqe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",lhe("cb866dcef6","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");var Kqe={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},zL=(0,she.forwardRef)(function({render:t,...o},r){let n=Y(Kqe.root,Yqe["box-sizing"]);return Lr({defaultTagName:"div",render:t,ref:r,props:Mt({className:n},o)})});var che=c(F(),1),v$="data-wp-hash";function _$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Zqe(document)),e.__wpStyleRuntime}function qqe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$v$}]`))if(o.getAttribute(v$)===t)return!0;return!1}function uhe(e,t,o){if(!e.head)return;let r=_$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(qqe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(v$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Zqe(e){let t=_$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)uhe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Xqe(e,t){let o=_$();o.styles.set(e,t);for(let r of o.documents.keys())uhe(r,e,t)}typeof process>"u",Xqe("cb866dcef6","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");var Qqe={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},jL=(0,che.forwardRef)(function({render:t,...o},r){return Lr({defaultTagName:"div",render:t,ref:r,props:Mt({className:Qqe.header},o)})});var dhe=c(F(),1),w$="data-wp-hash";function k$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&eZe(document)),e.__wpStyleRuntime}function Jqe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$w$}]`))if(o.getAttribute(w$)===t)return!0;return!1}function fhe(e,t,o){if(!e.head)return;let r=k$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Jqe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(w$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function eZe(e){let t=k$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)fhe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function tZe(e,t){let o=k$();o.styles.set(e,t);for(let r of o.documents.keys())fhe(r,e,t)}typeof process>"u",tZe("cb866dcef6","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");var oZe={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},HL=(0,dhe.forwardRef)(function({render:t,...o},r){return Lr({defaultTagName:"div",render:t,ref:r,props:Mt({className:oZe.content},o)})});var phe=c(F(),1),x$="data-wp-hash";function S$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&nZe(document)),e.__wpStyleRuntime}function rZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$x$}]`))if(o.getAttribute(x$)===t)return!0;return!1}function mhe(e,t,o){if(!e.head)return;let r=S$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(rZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(x$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function nZe(e){let t=S$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)mhe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function iZe(e,t){let o=S$();o.styles.set(e,t);for(let r of o.documents.keys())mhe(r,e,t)}typeof process>"u",iZe("cb866dcef6","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");var sZe={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},ghe=(0,phe.forwardRef)(function({render:t,...o},r){return Lr({defaultTagName:"div",render:t,ref:r,props:Mt({className:sZe.fullbleed},o)})});var hhe=c(F(),1);var C$=c(T(),1),aZe=(0,C$.jsx)("div",{}),bhe=(0,hhe.forwardRef)(function({render:t=aZe,children:o,...r},n){return(0,C$.jsx)(ir,{ref:n,variant:"heading-lg",render:t,...r,children:o})});var yhe=c(F(),1),vhe=c(T(),1),E$=(0,yhe.forwardRef)(function(t,o){return(0,vhe.jsx)(cg.Panel,{ref:o,...t})});var _he=c(F(),1),whe=c(T(),1),T$=(0,_he.forwardRef)(function(t,o){return(0,whe.jsx)(cg.Root,{ref:o,...t})});var khe=c(F(),1),xhe=c(T(),1),R$=(0,khe.forwardRef)(function(t,o){return(0,xhe.jsx)(cg.Trigger,{ref:o,...t})});var wy={};No(wy,{Content:()=>Nhe,Header:()=>Ihe,HeaderDescription:()=>Ohe,Root:()=>Che});var She=c(F(),1);var I$=c(T(),1),Che=(0,She.forwardRef)(function({render:t,...o},r){return(0,I$.jsx)(T$,{ref:r,render:(0,I$.jsx)(zL,{render:t}),...o})});var Rhe=c(ue(),1),jc=c(F(),1);var Ehe=c(F(),1),WL=(0,Ehe.createContext)(null);var $f=c(T(),1),P$="data-wp-hash";function O$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&cZe(document)),e.__wpStyleRuntime}function lZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$P$}]`))if(o.getAttribute(P$)===t)return!0;return!1}function Bhe(e,t,o){if(!e.head)return;let r=O$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(lZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(P$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function cZe(e){let t=O$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Bhe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function A$(e,t){let o=O$();o.styles.set(e,t);for(let r of o.documents.keys())Bhe(r,e,t)}typeof process>"u",A$("64bdb4d46e","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}._92ebbaa30c8a1d05__header-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dd89d27c4f15912d__header-trigger-positioner{align-self:flex-start;flex-shrink:0;margin-block-start:calc(var(--wpds-typography-line-height-sm, 20px)/2);max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._03cfdbcd710393c9__overflow-visible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}}");var Ck={"heading-wrapper":"_626190151275d6d3__heading-wrapper","header-content":"cab17c7a373cb60d__header-content","header-description":"_92ebbaa30c8a1d05__header-description","header-trigger-positioner":"dd89d27c4f15912d__header-trigger-positioner","header-trigger-wrapper":"bcfab5f2448bafef__header-trigger-wrapper","header-trigger":"_3106f8d2b0330faa__header-trigger",header:"_5d2dfcb4085c6d0f__header",content:"e34cf37ccd0d81e0__content","overflow-visible":"_03cfdbcd710393c9__overflow-visible","content-inner":"_41bfdbf7b6c087c2__content-inner"};typeof process>"u",A$("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var The={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",A$("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var uZe={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"},Ihe=(0,jc.forwardRef)(function({children:t,className:o,render:r,"aria-describedby":n,...i},s){let[a,l]=(0,jc.useState)([]),[u,d]=(0,jc.useState)([]),f=(0,jc.useRef)(null),p=(0,jc.useCallback)(h=>(l(b=>b.includes(h)?b:[...b,h]),()=>{l(b=>b.filter(v=>v!==h))}),[]),m=(0,jc.useMemo)(()=>({registerDescriptionId:p}),[p]);(0,Rhe.useIsomorphicLayoutEffect)(()=>{let h=new Set(a),b=Array.from(f.current?.querySelectorAll("[id]")??[]).map(v=>v.id).filter(v=>h.has(v));d(v=>v.length===b.length&&v.every((y,_)=>y===b[_])?v:b)});let g=Array.from(new Set([...n?.split(/\s+/).filter(Boolean)??[],...u])).join(" ")||void 0;return Lr({defaultTagName:"div",render:r,ref:s,props:Mt(i,{className:Y(The.heading,Ck["heading-wrapper"],o),children:(0,$f.jsx)(WL.Provider,{value:m,children:(0,$f.jsxs)(R$,{className:Ck.header,render:(0,$f.jsx)(jL,{}),nativeButton:!1,"aria-describedby":g,children:[(0,$f.jsx)("div",{ref:f,className:Ck["header-content"],children:t}),(0,$f.jsx)("div",{className:Y(Ck["header-trigger-positioner"]),children:(0,$f.jsx)("div",{className:Y(Ck["header-trigger-wrapper"],The.div,uZe["outset-ring--focus-parent-visible"]),children:(0,$f.jsx)(Jr,{icon:Bn,className:Ck["header-trigger"]})})})]})})})})});var _g=c(F(),1);var L$=c(T(),1),M$="data-wp-hash";function N$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&fZe(document)),e.__wpStyleRuntime}function dZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$M$}]`))if(o.getAttribute(M$)===t)return!0;return!1}function Phe(e,t,o){if(!e.head)return;let r=N$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(dZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(M$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function fZe(e){let t=N$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Phe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function pZe(e,t){let o=N$();o.styles.set(e,t);for(let r of o.documents.keys())Phe(r,e,t)}typeof process>"u",pZe("64bdb4d46e","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}._92ebbaa30c8a1d05__header-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dd89d27c4f15912d__header-trigger-positioner{align-self:flex-start;flex-shrink:0;margin-block-start:calc(var(--wpds-typography-line-height-sm, 20px)/2);max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._03cfdbcd710393c9__overflow-visible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}}");var mZe={"heading-wrapper":"_626190151275d6d3__heading-wrapper","header-content":"cab17c7a373cb60d__header-content","header-description":"_92ebbaa30c8a1d05__header-description","header-trigger-positioner":"dd89d27c4f15912d__header-trigger-positioner","header-trigger-wrapper":"bcfab5f2448bafef__header-trigger-wrapper","header-trigger":"_3106f8d2b0330faa__header-trigger",header:"_5d2dfcb4085c6d0f__header",content:"e34cf37ccd0d81e0__content","overflow-visible":"_03cfdbcd710393c9__overflow-visible","content-inner":"_41bfdbf7b6c087c2__content-inner"},gZe=(0,L$.jsx)("div",{}),Ohe=(0,_g.forwardRef)(function({children:t,className:o,id:r,render:n=gZe,...i},s){let a=(0,_g.useId)(),l=r??a,u=(0,_g.useContext)(WL);return(0,_g.useEffect)(()=>u?.registerDescriptionId(l),[u,l]),(0,L$.jsx)(ir,{ref:s,variant:"body-md",render:n,id:l,"aria-hidden":"true",className:Y(mZe["header-description"],o),...i,children:t})});var Ahe=c(F(),1);var F$=c(T(),1),V$="data-wp-hash";function z$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&bZe(document)),e.__wpStyleRuntime}function hZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$V$}]`))if(o.getAttribute(V$)===t)return!0;return!1}function Mhe(e,t,o){if(!e.head)return;let r=z$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(hZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(V$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function bZe(e){let t=z$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Mhe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function yZe(e,t){let o=z$();o.styles.set(e,t);for(let r of o.documents.keys())Mhe(r,e,t)}typeof process>"u",yZe("64bdb4d46e","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}._92ebbaa30c8a1d05__header-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dd89d27c4f15912d__header-trigger-positioner{align-self:flex-start;flex-shrink:0;margin-block-start:calc(var(--wpds-typography-line-height-sm, 20px)/2);max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._03cfdbcd710393c9__overflow-visible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}}");var D$={"heading-wrapper":"_626190151275d6d3__heading-wrapper","header-content":"cab17c7a373cb60d__header-content","header-description":"_92ebbaa30c8a1d05__header-description","header-trigger-positioner":"dd89d27c4f15912d__header-trigger-positioner","header-trigger-wrapper":"bcfab5f2448bafef__header-trigger-wrapper","header-trigger":"_3106f8d2b0330faa__header-trigger",header:"_5d2dfcb4085c6d0f__header",content:"e34cf37ccd0d81e0__content","overflow-visible":"_03cfdbcd710393c9__overflow-visible","content-inner":"_41bfdbf7b6c087c2__content-inner"},Nhe=(0,Ahe.forwardRef)(function({className:t,render:o,children:r,hiddenUntilFound:n=!0,...i},s){return(0,F$.jsx)(E$,{ref:s,className:a=>Y(D$.content,a.open&&a.transitionStatus==="idle"&&D$["overflow-visible"],t),hiddenUntilFound:n,...i,children:(0,F$.jsx)(HL,{className:D$["content-inner"],render:o,children:r})})});var Lhe=c(F(),1),j$="data-wp-hash";function H$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&_Ze(document)),e.__wpStyleRuntime}function vZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$j$}]`))if(o.getAttribute(j$)===t)return!0;return!1}function Dhe(e,t,o){if(!e.head)return;let r=H$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(vZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(j$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function _Ze(e){let t=H$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Dhe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function wZe(e,t){let o=H$();o.styles.set(e,t);for(let r of o.documents.keys())Dhe(r,e,t)}typeof process>"u",wZe("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var kZe={stack:"_19ce0419607e1896__stack"},xZe={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},$e=(0,Lhe.forwardRef)(function({direction:t,gap:o,align:r,justify:n,wrap:i,render:s,...a},l){let u={gap:o&&xZe[o],alignItems:r,justifyContent:n,flexDirection:t,flexWrap:i};return Lr({render:s,ref:l,props:Mt(a,{style:u,className:kZe.stack})})});var Vhe=c(ue(),1),ky=c(F(),1);function Fhe(e){let t=(0,Vhe.useEvent)(e),o=(0,ky.useRef)(null),r=(0,ky.useRef)(!1),n=(0,ky.useCallback)(()=>{r.current||(o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{t(),o.current=null},0))},[t]);return(0,ky.useEffect)(()=>(r.current=!1,()=>{r.current=!0,o.current&&clearTimeout(o.current)}),[]),n}var $he=c(F(),1);var KE=c(F(),1),qE=c(T(),1),W$="data-wp-hash";function U$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&CZe(document)),e.__wpStyleRuntime}function SZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$W$}]`))if(o.getAttribute(W$)===t)return!0;return!1}function zhe(e,t,o){if(!e.head)return;let r=U$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(SZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(W$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function CZe(e){let t=U$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)zhe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function G$(e,t){let o=U$();o.styles.set(e,t);for(let r of o.documents.keys())zhe(r,e,t)}typeof process>"u",G$("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var EZe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",G$("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var TZe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",G$("e4f4f9600b",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-md,12px);background-color:var(--wpds-color-background-interactive-neutral,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:var(--wpds-border-width-xs,1px);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:max(var(--wpds-typography-font-size-md,13px),16px);height:var(--wpds-dimension-size-lg,40px);line-height:1;@media (min-width:600px){font-size:var(--wpds-typography-font-size-md,13px)}&._0c807a84cbb94e0c__is-size-compact{height:var(--wpds-dimension-size-md,32px)}&._0c807a84cbb94e0c__is-size-compact,&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-sm,8px)}&.ed67cda122dc1e7b__is-size-small{height:var(--wpds-dimension-size-sm,24px)}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}&:not(._8097270636ca6100__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-disabled,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText}}}&._8097270636ca6100__is-borderless{background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border-color:transparent}&:has(._0d7afad74a057888__input-layout-slot:focus-within){--_gcd-div-outline:none;outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-active,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}&:has(:invalid[data-validity-visible]){--focus-color:var(--wpds-color-stroke-interactive-error,#cc1818);border-color:var(--wpds-color-stroke-interactive-error,#cc1818);&:hover{border-color:var(--wpds-color-stroke-interactive-error-active,#9d0000)}}}.c192b41a12b4387b__slot-wrapper{display:contents}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}[data-slot-type=prefix] &{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}[data-slot-type=suffix] &{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}}');var Ek={"input-layout":"cb2baafdc08746bb__input-layout","is-size-compact":"_0c807a84cbb94e0c__is-size-compact","is-size-small":"ed67cda122dc1e7b__is-size-small","is-disabled":"_6fb7104732387680__is-disabled","is-borderless":"_8097270636ca6100__is-borderless","input-layout-slot":"_0d7afad74a057888__input-layout-slot","slot-wrapper":"c192b41a12b4387b__slot-wrapper","is-padding-minimal":"_0c952682762ca288__is-padding-minimal"},jhe=(0,KE.forwardRef)(function({className:t,children:o,visuallyDisabled:r,size:n="default",isBorderless:i,prefix:s,suffix:a,...l},u){return(0,qE.jsxs)("div",{ref:u,className:Y(EZe.div,TZe["box-sizing"],Ek["input-layout"],Ek[`is-size-$n}`],r&&Ek["is-disabled"],i&&Ek["is-borderless"],t),...l,children:[KE.Children.count(s)>0&&(0,qE.jsx)("div",{className:Ek["slot-wrapper"],"data-slot-type":"prefix",children:s}),o,KE.Children.count(a)>0&&(0,qE.jsx)("div",{className:Ek["slot-wrapper"],"data-slot-type":"suffix",children:a})]})});var Whe=c(F(),1),Ghe=c(T(),1),$$="data-wp-hash";function Y$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&BZe(document)),e.__wpStyleRuntime}function RZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${$$}]`))if(o.getAttribute($$)===t)return!0;return!1}function Uhe(e,t,o){if(!e.head)return;let r=Y$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(RZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute($$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function BZe(e){let t=Y$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Uhe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function IZe(e,t){let o=Y$();o.styles.set(e,t);for(let r of o.documents.keys())Uhe(r,e,t)}typeof process>"u",IZe("e4f4f9600b",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-md,12px);background-color:var(--wpds-color-background-interactive-neutral,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:var(--wpds-border-width-xs,1px);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:max(var(--wpds-typography-font-size-md,13px),16px);height:var(--wpds-dimension-size-lg,40px);line-height:1;@media (min-width:600px){font-size:var(--wpds-typography-font-size-md,13px)}&._0c807a84cbb94e0c__is-size-compact{height:var(--wpds-dimension-size-md,32px)}&._0c807a84cbb94e0c__is-size-compact,&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-sm,8px)}&.ed67cda122dc1e7b__is-size-small{height:var(--wpds-dimension-size-sm,24px)}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}&:not(._8097270636ca6100__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-disabled,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText}}}&._8097270636ca6100__is-borderless{background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border-color:transparent}&:has(._0d7afad74a057888__input-layout-slot:focus-within){--_gcd-div-outline:none;outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-active,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}&:has(:invalid[data-validity-visible]){--focus-color:var(--wpds-color-stroke-interactive-error,#cc1818);border-color:var(--wpds-color-stroke-interactive-error,#cc1818);&:hover{border-color:var(--wpds-color-stroke-interactive-error-active,#9d0000)}}}.c192b41a12b4387b__slot-wrapper{display:contents}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}[data-slot-type=prefix] &{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}[data-slot-type=suffix] &{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}}');var Hhe={"input-layout":"cb2baafdc08746bb__input-layout","is-size-compact":"_0c807a84cbb94e0c__is-size-compact","is-size-small":"ed67cda122dc1e7b__is-size-small","is-disabled":"_6fb7104732387680__is-disabled","is-borderless":"_8097270636ca6100__is-borderless","input-layout-slot":"_0d7afad74a057888__input-layout-slot","slot-wrapper":"c192b41a12b4387b__slot-wrapper","is-padding-minimal":"_0c952682762ca288__is-padding-minimal"},K$=(0,Whe.forwardRef)(function({padding:t="default",className:o,...r},n){return(0,Ghe.jsx)("div",{ref:n,className:Y(Hhe["input-layout-slot"],Hhe[`is-padding-$t}`],o),...r})});K$.displayName="InputLayout.Slot";var ds=Object.assign(jhe,{Slot:K$});var Z$=c(T(),1),q$="data-wp-hash";function X$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&OZe(document)),e.__wpStyleRuntime}function PZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$q$}]`))if(o.getAttribute(q$)===t)return!0;return!1}function Yhe(e,t,o){if(!e.head)return;let r=X$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(PZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(q$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function OZe(e){let t=X$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Yhe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Q$(e,t){let o=X$();o.styles.set(e,t);for(let r of o.documents.keys())Yhe(r,e,t)}typeof process>"u",Q$("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var AZe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",Q$("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var MZe={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",Q$("1a25f6a232","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._2ae7be2fc1bb17a3__input{--_gcd-input-padding:var(--wp-ui-input-padding-block,0px) var(--wp-ui-input-layout-padding-inline,0px);background:transparent;border:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);font-family:inherit;font-size:inherit;line-height:inherit;outline:none;padding-block:var(--wp-ui-input-padding-block,0);padding-inline:var(--wp-ui-input-layout-padding-inline,0);width:100%;&::placeholder{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}&:disabled,&[aria-disabled=true]{--_gcd-input-placeholder-color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);&::placeholder{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}@media (forced-colors:active){color:GrayText}}&[type=email],&[type=url]{direction:ltr}&[type=number]{appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{appearance:none;margin:0}}}}}");var NZe={input:"_2ae7be2fc1bb17a3__input"},Tk=(0,$he.forwardRef)(function({className:t,size:o="default",prefix:r,suffix:n,style:i,...s},a){return(0,Z$.jsx)(ds,{className:Y(MZe["outset-ring--focus-within"],t),style:i,size:o,visuallyDisabled:s.disabled,prefix:r,suffix:n,children:(0,Z$.jsx)(eG,{ref:a,className:Y(AZe.input,NZe.input),...s})})});var J$="data-wp-hash";function eY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&DZe(document)),e.__wpStyleRuntime}function LZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$J$}]`))if(o.getAttribute(J$)===t)return!0;return!1}function Khe(e,t,o){if(!e.head)return;let r=eY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(LZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(J$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function DZe(e){let t=eY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Khe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function VZe(e,t){let o=eY();o.styles.set(e,t);for(let r of o.documents.keys())Khe(r,e,t)}typeof process>"u",VZe("02571d1b6c",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&.b9a9946a395ccad8__is-width-anchor{width:var(--anchor-width)}&._7c9f1b268b013f02__is-width-content{width:auto}&._6f31db51d79ec899__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&.fa45cdb5f45e57fb__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._46a909337f6be21c__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._6083938dff06df34__is-width-available{width:var(--available-width)}}._2fff4e9defe85de5__list-chrome{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px)}.f43dc7c768d7b622__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._6eb78bc92f8d7795__status{grid-area:status}._06c7ff39d2f685b9__empty:not(:empty){grid-area:main}._06c7ff39d2f685b9__empty:not(:empty),._6eb78bc92f8d7795__status:not(:empty):not(:has([data-visually-hidden])){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var Rk={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion","is-width-anchor":"b9a9946a395ccad8__is-width-anchor","is-width-content":"_7c9f1b268b013f02__is-width-content","is-width-sm":"_6f31db51d79ec899__is-width-sm","is-width-md":"fa45cdb5f45e57fb__is-width-md","is-width-lg":"_46a909337f6be21c__is-width-lg","is-width-available":"_6083938dff06df34__is-width-available","list-chrome":"_2fff4e9defe85de5__list-chrome",list:"f43dc7c768d7b622__list _2fff4e9defe85de5__list-chrome","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon",status:"_6eb78bc92f8d7795__status",empty:"_06c7ff39d2f685b9__empty"};function qhe(e="anchor"){switch(e){case"available":return Rk["is-width-available"];case"content":return Rk["is-width-content"];case"lg":return Rk["is-width-lg"];case"md":return Rk["is-width-md"];case"sm":return Rk["is-width-sm"];case"anchor":return Rk["is-width-anchor"];default:return!1}}var aY=c(Z(),1),An=c(F(),1);var Zhe=c(F(),1),ZE=c(T(),1),oY="data-wp-hash";function rY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&zZe(document)),e.__wpStyleRuntime}function FZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$oY}]`))if(o.getAttribute(oY)===t)return!0;return!1}function Xhe(e,t,o){if(!e.head)return;let r=rY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(FZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(oY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function zZe(e){let t=rY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Xhe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function jZe(e,t){let o=rY();o.styles.set(e,t);for(let r of o.documents.keys())Xhe(r,e,t)}typeof process>"u",jZe("bbbecfe373","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.ab4d64c07c0ba587__spinner{background-color:transparent;display:inline-block;height:var(--wpds-dimension-size-2xs,16px);opacity:1;overflow:visible;position:relative;width:var(--wpds-dimension-size-2xs,16px)}.a7654e10245bb7d2__indicator,.dc51f80c84b35fe2__track{fill:transparent;stroke-width:1.5px}.dc51f80c84b35fe2__track{stroke:var(--wpds-color-background-track-neutral,#dbdbdb)}.a7654e10245bb7d2__indicator{stroke:var(--wpds-color-background-thumb-brand,var(--wp-admin-theme-color,#3858e9));stroke-linecap:round;animation:_02322d973909703c__spinner-spin 1.4s linear infinite both;transform-origin:50% 50%}@keyframes _02322d973909703c__spinner-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}}}");var tY={spinner:"ab4d64c07c0ba587__spinner",track:"dc51f80c84b35fe2__track",indicator:"a7654e10245bb7d2__indicator","spinner-spin":"_02322d973909703c__spinner-spin"},nY=(0,Zhe.forwardRef)(function({className:t,...o},r){return(0,ZE.jsxs)("svg",{className:Y(tY.spinner,t),viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...o,ref:r,children:[(0,ZE.jsx)("circle",{className:tY.track,cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,ZE.jsx)("path",{className:tY.indicator,d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})});var XE=c(T(),1),iY="data-wp-hash";function sY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&WZe(document)),e.__wpStyleRuntime}function HZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$iY}]`))if(o.getAttribute(iY)===t)return!0;return!1}function Qhe(e,t,o){if(!e.head)return;let r=sY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(HZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(iY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function WZe(e){let t=sY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Qhe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Jhe(e,t){let o=sY();o.styles.set(e,t);for(let r of o.documents.keys())Qhe(r,e,t)}typeof process>"u",Jhe("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var UZe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",Jhe("bd510b0d40",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7a7ac88e306348e7__indicator{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);align-items:flex-start;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);gap:var(--wpds-dimension-gap-xs,4px);line-height:var(--wpds-typography-line-height-xs,16px);@media not (prefers-reduced-motion){animation:_48722cc5dd090ce4__indicator-jump var(--wpds-motion-duration-md,.2s) cubic-bezier(.68,-.55,.27,1.55)}}._57a3bbbfbe38a5c6__is-invalid{color:var(--wpds-color-foreground-content-error-weak,#cc1818)}._9e944dc198aac10b__is-valid{color:var(--wpds-color-foreground-content-success-weak,#007f2f)}.e482806667437c6a__indicator-icon{flex-shrink:0}._6e46434cc23019d2__indicator-spinner{height:var(--wpds-dimension-size-3xs,12px);margin:2px;width:var(--wpds-dimension-size-3xs,12px)}@keyframes _48722cc5dd090ce4__indicator-jump{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}}}');var UL={indicator:"_7a7ac88e306348e7__indicator","indicator-jump":"_48722cc5dd090ce4__indicator-jump","is-invalid":"_57a3bbbfbe38a5c6__is-invalid","is-valid":"_9e944dc198aac10b__is-valid","indicator-icon":"e482806667437c6a__indicator-icon","indicator-spinner":"_6e46434cc23019d2__indicator-spinner"},GZe={valid:Ez,invalid:nC};function xy({id:e,type:t,message:o}){return(0,XE.jsxs)("p",{id:e,className:Y(UZe.p,UL.indicator,UL[`is-$t}`]),children:[t==="validating"?(0,XE.jsx)(nY,{className:UL["indicator-spinner"]}):(0,XE.jsx)(Jr,{className:UL["indicator-icon"],icon:GZe[t],size:16,fill:"currentColor"}),o]})}var fd=c(T(),1),$Ze=e=>(0,fd.jsx)($e,{...e,direction:"column",gap:"sm"});function YZe(e,t,o){let r;return t&&!o?r=`(${(0,aY.__)("Required")})`:!t&&o&&(r=`(${(0,aY.__)("Optional")})`),r?typeof e=="string"?`$e} $r}`:(0,fd.jsxs)(fd.Fragment,{children:[e," ",r]}):e}var ebe="data-validity-visible",Dr=(0,An.forwardRef)(function({required:t,markWhenOptional:o,customValidity:r,getValidityTarget:n,children:i,render:s=$Ze,...a},l){let[u,d]=(0,An.useState)(),[f,p]=(0,An.useState)(),[m,g]=(0,An.useState)(!1),[h,b]=(0,An.useState)(!1),v=(0,An.useRef)(null);(0,An.useEffect)(()=>{let x=n(),C=()=>{r?.type!=="validating"&&d(x?.validationMessage),g(!0),x?.setAttribute(ebe,"")};return x?.addEventListener("invalid",C),()=>x?.removeEventListener("invalid",C)},[r?.type,n]),(0,An.useEffect)(()=>{let x=n(),C=R=>{if(R.preventDefault(),!R.isTrusted)return;let S=R.target,I=Array.from(S.form?.elements??[]).find(O=>!O.validity.valid);(!S.form||I===S)&&S.focus()},E=x?.type==="radio"&&x?.name?Array.from(v.current?.querySelectorAll(`input[type="radio"][name="$x?.name}"]`)??[]).filter(R=>R!==x):[];return x?.addEventListener("invalid",C),E.forEach(R=>R.addEventListener("invalid",C)),()=>{x?.removeEventListener("invalid",C),E.forEach(R=>R.removeEventListener("invalid",C))}},[n]),(0,An.useEffect)(()=>{let x=n();if(!r?.type){x?.setCustomValidity(""),d(x?.validationMessage),p(void 0);return}switch(r.type){case"validating":{x?.setCustomValidity(""),d(void 0),p({type:"validating",message:r.message});break}case"valid":{x?.setCustomValidity(""),d(x?.validationMessage),p({type:"valid",message:r.message});break}case"invalid":{x?.setCustomValidity(r.message??""),d(x?.validationMessage),p(void 0);break}}},[r,n]),(0,An.useEffect)(()=>{if(!(!h||m)){if(r?.type==="validating"){let x=setTimeout(()=>{g(!0)},1e3);return()=>clearTimeout(x)}g(!0)}},[h,r?.type,m]);let y=x=>{if(x.relatedTarget&&x.currentTarget.contains(x.relatedTarget))return;h||(b(!0),n()?.setAttribute(ebe,""));let C=n(),E=r?.type==="validating";window.queueMicrotask(()=>{E||d(C?.validationMessage)})},_=(0,An.useId)(),w=u?(0,fd.jsx)(xy,{id:_,type:"invalid",message:u}):f?.type?(0,fd.jsx)(xy,{id:_,type:f.type,message:f.message}):null,k=m?w:null;return(0,An.useEffect)(()=>{let x=n();if(!x)return;function C(E,R){let S=(E.getAttribute("aria-describedby")??"").split(" ").filter(I=>I&&I!==_);R&&S.push(_),S.length?E.setAttribute("aria-describedby",S.join(" ")):E.removeAttribute("aria-describedby")}return C(x,!!k),()=>C(x,!1)},[k,_,n]),Lr({render:s,ref:[l,v],props:Mt(a,{onBlur:y,children:(0,fd.jsxs)(fd.Fragment,{children:[(0,An.cloneElement)(i,{label:YZe(i.props.label,t,o),required:t}),k]})})})});var hi={};No(hi,{Control:()=>kbe,Description:()=>gbe,Details:()=>vbe,Item:()=>sbe,Label:()=>ube,Root:()=>rbe,VisualLabel:()=>_Y});var tbe=c(F(),1);var uY=c(T(),1),lY="data-wp-hash";function cY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&qZe(document)),e.__wpStyleRuntime}function KZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$lY}]`))if(o.getAttribute(lY)===t)return!0;return!1}function obe(e,t,o){if(!e.head)return;let r=cY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(KZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(lY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function qZe(e){let t=cY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)obe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function ZZe(e,t){let o=cY();o.styles.set(e,t);for(let r of o.documents.keys())obe(r,e,t)}typeof process>"u",ZZe("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var XZe={"box-sizing":"_336cd3e4e743482f__box-sizing"},QZe=e=>(0,uY.jsx)($e,{...e,direction:"column",gap:"sm"}),rbe=(0,tbe.forwardRef)(function({className:t,render:o=QZe,...r},n){return(0,uY.jsx)(zi.Root,{ref:n,className:Y(XZe["box-sizing"],t),render:o,...r})});var nbe=c(F(),1),ibe=c(T(),1),sbe=(0,nbe.forwardRef)(function(t,o){return(0,ibe.jsx)(zi.Item,{ref:o,...t})});var lbe=c(F(),1);var fY=c(T(),1),dY="data-wp-hash";function pY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&eXe(document)),e.__wpStyleRuntime}function JZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$dY}]`))if(o.getAttribute(dY)===t)return!0;return!1}function cbe(e,t,o){if(!e.head)return;let r=pY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(JZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(dY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function eXe(e){let t=pY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)cbe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function tXe(e,t){let o=pY();o.styles.set(e,t);for(let r of o.documents.keys())cbe(r,e,t)}typeof process>"u",tXe("df33c48b2d",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var abe={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},ube=(0,lbe.forwardRef)(function({className:t,hideFromVision:o,variant:r,...n},i){let s=(0,fY.jsx)(zi.Label,{ref:i,className:Y(abe.label,r&&abe[`is-$r}`],t),...n});return o?(0,fY.jsx)(ht,{render:s}):s});var dbe=c(F(),1),mbe=c(T(),1),mY="data-wp-hash";function gY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&rXe(document)),e.__wpStyleRuntime}function oXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$mY}]`))if(o.getAttribute(mY)===t)return!0;return!1}function fbe(e,t,o){if(!e.head)return;let r=gY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(oXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(mY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function rXe(e){let t=gY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)fbe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function pbe(e,t){let o=gY();o.styles.set(e,t);for(let r of o.documents.keys())fbe(r,e,t)}typeof process>"u",pbe("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var nXe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",pbe("df33c48b2d",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var iXe={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},gbe=(0,dbe.forwardRef)(function({className:t,...o},r){return(0,mbe.jsx)(zi.Description,{ref:r,className:Y(nXe.p,iXe.description,t),...o})});var hbe=c(F(),1),bbe=c(Z(),1);var wg=c(T(),1),hY="data-wp-hash";function bY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&aXe(document)),e.__wpStyleRuntime}function sXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$hY}]`))if(o.getAttribute(hY)===t)return!0;return!1}function ybe(e,t,o){if(!e.head)return;let r=bY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(sXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(hY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function aXe(e){let t=bY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)ybe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function lXe(e,t){let o=bY();o.styles.set(e,t);for(let r of o.documents.keys())ybe(r,e,t)}typeof process>"u",lXe("df33c48b2d",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var cXe={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},vbe=(0,hbe.forwardRef)(function({className:t,...o},r){return(0,wg.jsxs)(wg.Fragment,{children:[(0,wg.jsx)(ht,{render:(0,wg.jsx)(zi.Description,{}),children:(0,bbe.__)("More details follow the field.")}),(0,wg.jsx)("div",{ref:r,className:Y(cXe.description,t),...o})]})});var _be=c(F(),1),wbe=c(T(),1),kbe=(0,_be.forwardRef)(function(t,o){return(0,wbe.jsx)(zi.Control,{ref:o,...t})});var Sbe=c(F(),1),yY="data-wp-hash";function vY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&dXe(document)),e.__wpStyleRuntime}function uXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$yY}]`))if(o.getAttribute(yY)===t)return!0;return!1}function Cbe(e,t,o){if(!e.head)return;let r=vY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(uXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(yY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function dXe(e){let t=vY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Cbe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function fXe(e,t){let o=vY();o.styles.set(e,t);for(let r of o.documents.keys())Cbe(r,e,t)}typeof process>"u",fXe("df33c48b2d",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var xbe={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},_Y=(0,Sbe.forwardRef)(function({className:t,render:o,variant:r,...n},i){return Lr({defaultTagName:"span",render:o,ref:i,props:Mt(n,{className:Y(xbe.label,r&&xbe[`is-$r}`],t)})})});_Y.displayName="Field.VisualLabel";var kg={};No(kg,{Group:()=>QE,GroupLabel:()=>JE,Item:()=>Mbe,Popup:()=>Gbe,Portal:()=>$L,Positioner:()=>YL,Root:()=>$be,Trigger:()=>Xbe});var Ebe=c(F(),1),Rbe=c(T(),1),wY="data-wp-hash";function kY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&mXe(document)),e.__wpStyleRuntime}function pXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$wY}]`))if(o.getAttribute(wY)===t)return!0;return!1}function Tbe(e,t,o){if(!e.head)return;let r=kY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(pXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(wY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function mXe(e){let t=kY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Tbe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function gXe(e,t){let o=kY();o.styles.set(e,t);for(let r of o.documents.keys())Tbe(r,e,t)}typeof process>"u",gXe("02571d1b6c",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&.b9a9946a395ccad8__is-width-anchor{width:var(--anchor-width)}&._7c9f1b268b013f02__is-width-content{width:auto}&._6f31db51d79ec899__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&.fa45cdb5f45e57fb__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._46a909337f6be21c__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._6083938dff06df34__is-width-available{width:var(--available-width)}}._2fff4e9defe85de5__list-chrome{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px)}.f43dc7c768d7b622__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._6eb78bc92f8d7795__status{grid-area:status}._06c7ff39d2f685b9__empty:not(:empty){grid-area:main}._06c7ff39d2f685b9__empty:not(:empty),._6eb78bc92f8d7795__status:not(:empty):not(:has([data-visually-hidden])){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var hXe={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion","is-width-anchor":"b9a9946a395ccad8__is-width-anchor","is-width-content":"_7c9f1b268b013f02__is-width-content","is-width-sm":"_6f31db51d79ec899__is-width-sm","is-width-md":"fa45cdb5f45e57fb__is-width-md","is-width-lg":"_46a909337f6be21c__is-width-lg","is-width-available":"_6083938dff06df34__is-width-available","list-chrome":"_2fff4e9defe85de5__list-chrome",list:"f43dc7c768d7b622__list _2fff4e9defe85de5__list-chrome","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon",status:"_6eb78bc92f8d7795__status",empty:"_06c7ff39d2f685b9__empty"},QE=(0,Ebe.forwardRef)(function({className:t,children:o,...r},n){return(0,Rbe.jsx)(Xr.Group,{className:Y(hXe.group,t),ref:n,...r,children:o})});var Bbe=c(F(),1);var SY=c(T(),1),xY="data-wp-hash";function CY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&yXe(document)),e.__wpStyleRuntime}function bXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$xY}]`))if(o.getAttribute(xY)===t)return!0;return!1}function Ibe(e,t,o){if(!e.head)return;let r=CY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(bXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(xY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function yXe(e){let t=CY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Ibe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function vXe(e,t){let o=CY();o.styles.set(e,t);for(let r of o.documents.keys())Ibe(r,e,t)}typeof process>"u",vXe("02571d1b6c",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&.b9a9946a395ccad8__is-width-anchor{width:var(--anchor-width)}&._7c9f1b268b013f02__is-width-content{width:auto}&._6f31db51d79ec899__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&.fa45cdb5f45e57fb__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._46a909337f6be21c__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._6083938dff06df34__is-width-available{width:var(--available-width)}}._2fff4e9defe85de5__list-chrome{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px)}.f43dc7c768d7b622__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._6eb78bc92f8d7795__status{grid-area:status}._06c7ff39d2f685b9__empty:not(:empty){grid-area:main}._06c7ff39d2f685b9__empty:not(:empty),._6eb78bc92f8d7795__status:not(:empty):not(:has([data-visually-hidden])){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var _Xe={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion","is-width-anchor":"b9a9946a395ccad8__is-width-anchor","is-width-content":"_7c9f1b268b013f02__is-width-content","is-width-sm":"_6f31db51d79ec899__is-width-sm","is-width-md":"fa45cdb5f45e57fb__is-width-md","is-width-lg":"_46a909337f6be21c__is-width-lg","is-width-available":"_6083938dff06df34__is-width-available","list-chrome":"_2fff4e9defe85de5__list-chrome",list:"f43dc7c768d7b622__list _2fff4e9defe85de5__list-chrome","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon",status:"_6eb78bc92f8d7795__status",empty:"_06c7ff39d2f685b9__empty"},JE=(0,Bbe.forwardRef)(function({className:t,children:o,...r},n){return(0,SY.jsx)(ir,{variant:"heading-sm",className:Y(_Xe["group-label"],t),render:(0,SY.jsx)(Xr.GroupLabel,{ref:n,...r}),children:o})});var Pbe=c(F(),1);var eT=c(T(),1),EY="data-wp-hash";function TY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&kXe(document)),e.__wpStyleRuntime}function wXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$EY}]`))if(o.getAttribute(EY)===t)return!0;return!1}function Obe(e,t,o){if(!e.head)return;let r=TY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(wXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(EY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function kXe(e){let t=TY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Obe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Abe(e,t){let o=TY();o.styles.set(e,t);for(let r of o.documents.keys())Obe(r,e,t)}typeof process>"u",Abe("02571d1b6c",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&.b9a9946a395ccad8__is-width-anchor{width:var(--anchor-width)}&._7c9f1b268b013f02__is-width-content{width:auto}&._6f31db51d79ec899__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&.fa45cdb5f45e57fb__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._46a909337f6be21c__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._6083938dff06df34__is-width-available{width:var(--available-width)}}._2fff4e9defe85de5__list-chrome{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px)}.f43dc7c768d7b622__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._6eb78bc92f8d7795__status{grid-area:status}._06c7ff39d2f685b9__empty:not(:empty){grid-area:main}._06c7ff39d2f685b9__empty:not(:empty),._6eb78bc92f8d7795__status:not(:empty):not(:has([data-visually-hidden])){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var GL={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion","is-width-anchor":"b9a9946a395ccad8__is-width-anchor","is-width-content":"_7c9f1b268b013f02__is-width-content","is-width-sm":"_6f31db51d79ec899__is-width-sm","is-width-md":"fa45cdb5f45e57fb__is-width-md","is-width-lg":"_46a909337f6be21c__is-width-lg","is-width-available":"_6083938dff06df34__is-width-available","list-chrome":"_2fff4e9defe85de5__list-chrome",list:"f43dc7c768d7b622__list _2fff4e9defe85de5__list-chrome","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon",status:"_6eb78bc92f8d7795__status",empty:"_06c7ff39d2f685b9__empty"};typeof process>"u",Abe("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var xXe={"box-sizing":"_336cd3e4e743482f__box-sizing"},Mbe=(0,Pbe.forwardRef)(function({className:t,value:o,size:r="default",children:n,...i},s){return(0,eT.jsxs)(Xr.Item,{className:Y(xXe["box-sizing"],GL.item,r==="small"&&GL["is-size-small"],t),value:o,ref:s,...i,children:[(0,eT.jsx)(Jr,{icon:Ps,className:Y(GL["item-icon"],GL["item-indicator-icon"]),size:r==="small"?20:24}),(0,eT.jsx)(Xr.ItemText,{children:n})]})});var Hbe=c(F(),1);var Nbe=c(F(),1);var Lbe=c(T(),1),$L=(0,Nbe.forwardRef)(function({container:t,...o},r){return(0,Lbe.jsx)(Xr.Portal,{container:t??dN(),...o,ref:r})});var Dbe=c(F(),1);var zbe=c(T(),1),RY="data-wp-hash";function BY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&CXe(document)),e.__wpStyleRuntime}function SXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$RY}]`))if(o.getAttribute(RY)===t)return!0;return!1}function Vbe(e,t,o){if(!e.head)return;let r=BY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(SXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(RY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function CXe(e){let t=BY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Vbe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Fbe(e,t){let o=BY();o.styles.set(e,t);for(let r of o.documents.keys())Vbe(r,e,t)}typeof process>"u",Fbe("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var EXe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",Fbe("aaac8c315e","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._0ab863136fb95530__positioner{z-index:var(--wp-ui-select-z-index,initial)}.a9ab07efb9ef413f__list{display:block;min-block-size:0;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}}}");var TXe={positioner:"_0ab863136fb95530__positioner",list:"a9ab07efb9ef413f__list"},YL=(0,Dbe.forwardRef)(function({className:t,...o},r){return(0,zbe.jsx)(Xr.Positioner,{...zpe,alignItemWithTrigger:!1,...o,ref:r,className:Y(EXe["box-sizing"],TXe.positioner,t)})});var tT=c(T(),1),IY="data-wp-hash";function PY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&BXe(document)),e.__wpStyleRuntime}function RXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$IY}]`))if(o.getAttribute(IY)===t)return!0;return!1}function Wbe(e,t,o){if(!e.head)return;let r=PY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(RXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(IY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function BXe(e){let t=PY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Wbe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Ube(e,t){let o=PY();o.styles.set(e,t);for(let r of o.documents.keys())Wbe(r,e,t)}typeof process>"u",Ube("02571d1b6c",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&.b9a9946a395ccad8__is-width-anchor{width:var(--anchor-width)}&._7c9f1b268b013f02__is-width-content{width:auto}&._6f31db51d79ec899__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&.fa45cdb5f45e57fb__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._46a909337f6be21c__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._6083938dff06df34__is-width-available{width:var(--available-width)}}._2fff4e9defe85de5__list-chrome{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px)}.f43dc7c768d7b622__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._6eb78bc92f8d7795__status{grid-area:status}._06c7ff39d2f685b9__empty:not(:empty){grid-area:main}._06c7ff39d2f685b9__empty:not(:empty),._6eb78bc92f8d7795__status:not(:empty):not(:has([data-visually-hidden])){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var jbe={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion","is-width-anchor":"b9a9946a395ccad8__is-width-anchor","is-width-content":"_7c9f1b268b013f02__is-width-content","is-width-sm":"_6f31db51d79ec899__is-width-sm","is-width-md":"fa45cdb5f45e57fb__is-width-md","is-width-lg":"_46a909337f6be21c__is-width-lg","is-width-available":"_6083938dff06df34__is-width-available","list-chrome":"_2fff4e9defe85de5__list-chrome",list:"f43dc7c768d7b622__list _2fff4e9defe85de5__list-chrome","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon",status:"_6eb78bc92f8d7795__status",empty:"_06c7ff39d2f685b9__empty"};typeof process>"u",Ube("aaac8c315e","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._0ab863136fb95530__positioner{z-index:var(--wp-ui-select-z-index,initial)}.a9ab07efb9ef413f__list{display:block;min-block-size:0;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}}}");var IXe={positioner:"_0ab863136fb95530__positioner",list:"a9ab07efb9ef413f__list"},Gbe=(0,Hbe.forwardRef)(function({className:t,portal:o,positioner:r,width:n,children:i,...s},a){let l=(0,tT.jsx)(Xr.Popup,{ref:a,className:Y(jbe.popup,qhe(n),t),...s,children:(0,tT.jsx)(Xr.List,{className:Y(jbe["list-chrome"],IXe.list),children:i})}),u=ik(r,(0,tT.jsx)(YL,{}),l);return ik(o,(0,tT.jsx)($L,{}),u)});var OY=c(T(),1);function $be(e){return(0,OY.jsx)(sk,{children:(0,OY.jsx)(Xr.Root,{...e})})}var Ybe=c(F(),1);var Kbe=c(Z(),1);var Ik=c(T(),1),AY="data-wp-hash";function MY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&OXe(document)),e.__wpStyleRuntime}function PXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$AY}]`))if(o.getAttribute(AY)===t)return!0;return!1}function qbe(e,t,o){if(!e.head)return;let r=MY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(PXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(AY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function OXe(e){let t=MY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)qbe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Zbe(e,t){let o=MY();o.styles.set(e,t);for(let r of o.documents.keys())qbe(r,e,t)}typeof process>"u",Zbe("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var AXe={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",Zbe("8fc4b25e27","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._6e4e0445ef20426b__trigger-wrapper{&.fa98c865fb77e675__is-minimal{width:fit-content}}._7893295e3f6d1af7__trigger{align-items:center;background-color:transparent;border:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;font-family:inherit;font-size:inherit;gap:var(--wpds-dimension-gap-xs,4px);justify-content:space-between;line-height:1.4;padding-block:4px;padding-inline-end:calc(var(--wp-ui-input-layout-padding-inline) - 4px);padding-inline-start:var(--wp-ui-input-layout-padding-inline);text-align:start;user-select:none;width:100%;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&.fa98c865fb77e675__is-minimal{width:auto}&:focus{outline:none}&[data-disabled]{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}}.e760c9339965ce84__trigger-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;._7893295e3f6d1af7__trigger[data-placeholder]:not([data-disabled]) &{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}}._308bc63e43681f99__trigger-caret{flex:0 0 auto}}}");var Bk={"trigger-wrapper":"_6e4e0445ef20426b__trigger-wrapper","is-minimal":"fa98c865fb77e675__is-minimal",trigger:"_7893295e3f6d1af7__trigger","trigger-value":"e760c9339965ce84__trigger-value","trigger-caret":"_308bc63e43681f99__trigger-caret"},Xbe=(0,Ybe.forwardRef)(function({className:t,size:o,variant:r,children:n,placeholder:i=(0,Kbe.__)("Select"),...s},a){return(0,Ik.jsx)(ds,{className:Y(AXe["outset-ring--focus-within-except-active"],Bk["trigger-wrapper"],r==="minimal"&&Bk["is-minimal"],t),size:o,isBorderless:r==="minimal",children:(0,Ik.jsxs)(Xr.Trigger,{...s,className:Y(Bk.trigger,r==="minimal"&&Bk["is-minimal"]),"data-can-disable-input-layout":!0,ref:a,children:[(0,Ik.jsx)(Xr.Value,{placeholder:i,className:Bk["trigger-value"],children:n}),(0,Ik.jsx)(Jr,{className:Bk["trigger-caret"],icon:Bn,size:18})]})})});var KL=c(F(),1);var LY=c(T(),1),NY="data-wp-hash";function DY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&NXe(document)),e.__wpStyleRuntime}function MXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$NY}]`))if(o.getAttribute(NY)===t)return!0;return!1}function Jbe(e,t,o){if(!e.head)return;let r=DY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(MXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(NY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function NXe(e){let t=DY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Jbe(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function eye(e,t){let o=DY();o.styles.set(e,t);for(let r of o.documents.keys())Jbe(r,e,t)}typeof process>"u",eye("1540cbc709","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._1e441c22c9dc5d28__wrapper{--wp-ui-textarea-min-height:var(--wpds-dimension-size-lg,40px)}._414844876c32ecee__textarea{min-height:calc(var(--wp-ui-textarea-min-height) - 2px);resize:block}}@layer compositions{._1e441c22c9dc5d28__wrapper{--wp-ui-input-padding-block:9.9px;height:auto;line-height:1.4}}}");var Qbe={wrapper:"_1e441c22c9dc5d28__wrapper",textarea:"_414844876c32ecee__textarea"};typeof process>"u",eye("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var LXe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},DXe=(e,t)=>function(r){return typeof e=="function"?e(Mt(r,t)):(0,KL.cloneElement)(e,Mt(r,t))},qL=(0,KL.forwardRef)(function({className:t,defaultValue:o,disabled:r,onValueChange:n,render:i,rows:s=4,style:a,value:l,...u},d){return(0,LY.jsx)(Tk,{className:Y(Qbe.wrapper,t),style:a,render:DXe(i||(f=>(0,LY.jsx)("textarea",{...f})),{className:Y(LXe.textarea,Qbe.textarea),ref:d,rows:s,...u}),value:l,defaultValue:o,onValueChange:n,disabled:r})});var tye=c(F(),1);var Sy=c(T(),1),VY="data-wp-hash";function FY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&FXe(document)),e.__wpStyleRuntime}function VXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$VY}]`))if(o.getAttribute(VY)===t)return!0;return!1}function oye(e,t,o){if(!e.head)return;let r=FY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(VXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(VY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function FXe(e){let t=FY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)oye(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function zXe(e,t){let o=FY();o.styles.set(e,t);for(let r of o.documents.keys())oye(r,e,t)}typeof process>"u",zXe("0c752c3d08","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer compositions{@supports (-webkit-hyphens:none) and (not (-moz-appearance:none)){.a9211a7e6af24bed__root input[type=date]:not([data-filled]):not(:focus),.a9211a7e6af24bed__root input[type=datetime-local]:not([data-filled]):not(:focus),.a9211a7e6af24bed__root input[type=time]:not([data-filled]):not(:focus){--_gcd-input-color:transparent;--_gcd-input-color-disabled:transparent;color:transparent;&:disabled::-webkit-datetime-edit-text{color:transparent}}}}}");var jXe={root:"a9211a7e6af24bed__root"},zY=(0,tye.forwardRef)(function({className:t,label:o,description:r,details:n,hideLabelFromVision:i,...s},a){return(0,Sy.jsxs)(hi.Root,{className:Y(jXe.root,t),children:[(0,Sy.jsx)(hi.Label,{hideFromVision:i,children:o}),(0,Sy.jsx)(Tk,{ref:a,...s}),r&&(0,Sy.jsx)(hi.Description,{children:r}),n&&(0,Sy.jsx)(hi.Details,{children:n})]})});var iye=c(F(),1);var rye=c(F(),1);var nye=c(T(),1),oT=(0,rye.forwardRef)(function(t,o){return(0,nye.jsx)(kg.Item,{ref:o,...t})});var pd=c(T(),1),sye=(0,iye.forwardRef)(function({className:t,children:o,items:r,label:n,description:i,details:s,hideLabelFromVision:a,placeholder:l,popupWidth:u="content",size:d="default",triggerContent:f,...p},m){return(0,pd.jsxs)(hi.Root,{className:t,children:[(0,pd.jsx)(hi.Label,{hideFromVision:a,children:n}),(0,pd.jsxs)(kg.Root,{items:r,...p,children:[(0,pd.jsx)(kg.Trigger,{ref:m,placeholder:l,size:d,children:f}),(0,pd.jsx)(kg.Popup,{width:u,children:o!==void 0?o:r?.map(g=>(0,pd.jsx)(oT,{value:g,label:g.label,disabled:g.disabled,children:g.label},g.value??"null"))})]}),i&&(0,pd.jsx)(hi.Description,{children:i}),s&&(0,pd.jsx)(hi.Details,{children:s})]})});QE.displayName="SelectControl.Group";JE.displayName="SelectControl.GroupLabel";oT.displayName="SelectControl.Item";var jY=Object.assign(sye,{Group:QE,GroupLabel:JE,Item:oT});var aye=c(F(),1);var Cy=c(T(),1),HY=(0,aye.forwardRef)(function({className:t,label:o,description:r,details:n,hideLabelFromVision:i,...s},a){return(0,Cy.jsxs)(hi.Root,{className:t,children:[(0,Cy.jsx)(hi.Label,{hideFromVision:i,children:o}),(0,Cy.jsx)(qL,{ref:a,...s}),r&&(0,Cy.jsx)(hi.Description,{children:r}),n&&(0,Cy.jsx)(hi.Details,{children:n})]})});var ZL=c(F(),1),lye=c(ue(),1);var WY=c(T(),1),Hc=(0,ZL.forwardRef)(function({required:t,markWhenOptional:o,customValidity:r,...n},i){let s=(0,ZL.useRef)(null),a=(0,lye.useMergeRefs)([i,s]);return(0,WY.jsx)(Dr,{required:t,markWhenOptional:o,customValidity:r,getValidityTarget:()=>s.current,children:(0,WY.jsx)(zY,{ref:a,...n})})});var XL=c(F(),1),cye=c(ue(),1);var UY=c(T(),1),GY=(0,XL.forwardRef)(function({required:t,markWhenOptional:o,customValidity:r,...n},i){let s=(0,XL.useRef)(null),a=(0,cye.useMergeRefs)([i,s]);return(0,UY.jsx)(Dr,{required:t,markWhenOptional:o,customValidity:r,getValidityTarget:()=>s.current,children:(0,UY.jsx)(HY,{ref:a,...n})})});var xg={};No(xg,{List:()=>pye,Panel:()=>wye,Root:()=>xye,Tab:()=>Eye});var Ey=c(F(),1);var dye=c(ue(),1),QL=c(T(),1),$Y="data-wp-hash";function YY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&WXe(document)),e.__wpStyleRuntime}function HXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${$Y}]`))if(o.getAttribute($Y)===t)return!0;return!1}function fye(e,t,o){if(!e.head)return;let r=YY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(HXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute($Y,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function WXe(e){let t=YY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)fye(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function UXe(e,t){let o=YY();o.styles.set(e,t);for(let r of o.documents.keys())fye(r,e,t)}typeof process>"u",UXe("54ae3f4680",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible) 88 &[data-orientation=vertical]{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));box-sizing:border-box}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&:after{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset:var(--wpds-dimension-padding-md,12px)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px)}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-md,12px)}[data-orientation=vertical][data-select-on-move=false] &:after{content:"";inset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}._4a20e969d15e5ac1__tab-chevron{flex-shrink:0;margin-inline-end:calc(var(--wpds-dimension-gap-xs, 4px)*-1);opacity:0;[data-orientation=horizontal] &{display:none}[role=tab]:is([aria-selected=true],:focus-visible,:hover) &{opacity:1}@media not (prefers-reduced-motion){[data-select-on-move=true] 89 [role=tab]:is([aria-selected=true]) 90 &{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var rT={tablist:"_7313adbc8a112e90__tablist","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children","tab-chevron":"_4a20e969d15e5ac1__tab-chevron"},uye=1,pye=(0,Ey.forwardRef)(function({children:t,variant:o="default",className:r,activateOnFocus:n,...i},s){let[a,l]=(0,Ey.useState)(null),[u,d]=(0,Ey.useState)({first:!1,last:!1,isScrolling:!1});(0,Ey.useEffect)(()=>{if(!a)return;let p=()=>{let{scrollWidth:y,clientWidth:_,scrollLeft:w}=a,k=Math.max(y-_,0),C=(a.dir||(typeof window<"u"?window.getComputedStyle(a).direction:"ltr"))==="rtl"&&w<0?-w:w,E={first:C>uye,last:C<k-uye,isScrolling:y>_};d(R=>R.first===E.first&&R.last===E.last&&R.isScrolling===E.isScrolling?R:E)},m=new ResizeObserver(p),g=()=>{m.disconnect(),m.observe(a),a.querySelectorAll('[role="tab"]').forEach(y=>m.observe(y))},h=new MutationObserver(g);h.observe(a,{childList:!0,subtree:!0});let b=!1,v=()=>{b||(requestAnimationFrame(()=>{p(),b=!1}),b=!0)};return a.addEventListener("scroll",v,{passive:!0}),g(),p(),()=>{a.removeEventListener("scroll",v),m.disconnect(),h.disconnect()}},[a]);let f=(0,dye.useMergeRefs)([s,p=>l(p)]);return(0,QL.jsxs)(Lc.List,{ref:f,activateOnFocus:n,"data-select-on-move":n?"true":"false",className:Y(rT.tablist,u.first&&rT["is-overflowing-first"],u.last&&rT["is-overflowing-last"],rT[`is-$o}-variant`],r),...i,tabIndex:i.tabIndex??(u.isScrolling?-1:void 0),children:[t,(0,QL.jsx)(Lc.Indicator,{className:rT.indicator})]})});var bye=c(F(),1);var Wi=c(F(),1);var nT=c(T(),1),JL=!1,KY=JL?(0,Wi.createContext)(null):null;function GXe(){let e=(0,Wi.useContext)(KY);(0,Wi.useEffect)(()=>{if(e)return e.registerTab()},[e])}function $Xe(){}var mye=JL?GXe:$Xe;function YXe(){let e=(0,Wi.useContext)(KY);(0,Wi.useEffect)(()=>{if(e)return e.registerPanel()},[e])}function KXe(){}var gye=JL?YXe:KXe;function qXe({children:e}){let t=(0,Wi.useRef)(0),o=(0,Wi.useRef)(0),r=Fhe(()=>{let a=t.current,l=o.current;if(a!==l)throw new Error(`Tabs: Tab/Panel count mismatch ($a} Tabs, $l} Panels). Each Tab must be associated with exactly one Panel. Mismatched or missing associations can break screen reader navigation and violate WAI-ARIA Tabs pattern requirements.`)}),n=(0,Wi.useCallback)(()=>(t.current+=1,r(),()=>{t.current-=1,r()}),[r]),i=(0,Wi.useCallback)(()=>(o.current+=1,r(),()=>{o.current-=1,r()}),[r]),s=(0,Wi.useMemo)(()=>({registerTab:n,registerPanel:i}),[n,i]);return(0,nT.jsx)(KY.Provider,{value:s,children:e})}function ZXe({children:e}){return(0,nT.jsx)(nT.Fragment,{children:e})}var hye=JL?qXe:ZXe;var _ye=c(T(),1),qY="data-wp-hash";function ZY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&QXe(document)),e.__wpStyleRuntime}function XXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$qY}]`))if(o.getAttribute(qY)===t)return!0;return!1}function yye(e,t,o){if(!e.head)return;let r=ZY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(XXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(qY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function QXe(e){let t=ZY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)yye(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function vye(e,t){let o=ZY();o.styles.set(e,t);for(let r of o.documents.keys())yye(r,e,t)}typeof process>"u",vye("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var JXe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",vye("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var eQe={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"},wye=(0,bye.forwardRef)(function({className:t,...o},r){return gye(),(0,_ye.jsx)(Lc.Panel,{ref:r,className:Y(JXe.div,eQe["outset-ring--focus-visible"],t),...o})});var kye=c(F(),1);var eD=c(T(),1),xye=(0,kye.forwardRef)(function({...t},o){return(0,eD.jsx)(sk,{children:(0,eD.jsx)(hye,{children:(0,eD.jsx)(Lc.Root,{ref:o,...t})})})});var Sye=c(F(),1);var iT=c(T(),1),QY="data-wp-hash";function JY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&oQe(document)),e.__wpStyleRuntime}function tQe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$QY}]`))if(o.getAttribute(QY)===t)return!0;return!1}function Cye(e,t,o){if(!e.head)return;let r=JY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(tQe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(QY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function oQe(e){let t=JY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Cye(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function rQe(e,t){let o=JY();o.styles.set(e,t);for(let r of o.documents.keys())Cye(r,e,t)}typeof process>"u",rQe("54ae3f4680",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible) 91 &[data-orientation=vertical]{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));box-sizing:border-box}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&:after{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset:var(--wpds-dimension-padding-md,12px)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px)}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-md,12px)}[data-orientation=vertical][data-select-on-move=false] &:after{content:"";inset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}._4a20e969d15e5ac1__tab-chevron{flex-shrink:0;margin-inline-end:calc(var(--wpds-dimension-gap-xs, 4px)*-1);opacity:0;[data-orientation=horizontal] &{display:none}[role=tab]:is([aria-selected=true],:focus-visible,:hover) &{opacity:1}@media not (prefers-reduced-motion){[data-select-on-move=true] 92 [role=tab]:is([aria-selected=true]) 93 &{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var XY={tablist:"_7313adbc8a112e90__tablist","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children","tab-chevron":"_4a20e969d15e5ac1__tab-chevron"},Eye=(0,Sye.forwardRef)(function({className:t,children:o,...r},n){return mye(),(0,iT.jsxs)(Lc.Tab,{ref:n,className:Y(XY.tab,t),...r,children:[(0,iT.jsx)("span",{className:XY["tab-children"],children:o}),(0,iT.jsx)(Jr,{icon:br,className:XY["tab-chevron"]})]})});var Vg=c(Z(),1),DT=c(ue(),1),y5=c(ee(),1);var Pk=c(Z(),1),Ok=c(F(),1),Rye=c(q(),1),sT=c(T(),1),Tye=[(0,Ok.createInterpolateElement)((0,Pk.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,sT.jsx)("kbd",{})}),(0,Ok.createInterpolateElement)((0,Pk.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,sT.jsx)("kbd",{})}),(0,Ok.createInterpolateElement)((0,Pk.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,sT.jsx)("kbd",{})}),(0,Pk.__)("Drag files into the editor to automatically insert media blocks."),(0,Pk.__)("Change a block's type by pressing the block icon on the toolbar.")];function nQe(){let[e]=(0,Ok.useState)(()=>Math.floor(Math.random()*Tye.length));return(0,sT.jsx)(Rye.Tip,{children:Tye[e]})}var Bye=nQe;var rx=c(ce(),1),fke=c(F(),1),pke=c(Z(),1);var Ty=c(q(),1);var tD=c(ee(),1),Iye=c(Nt(),1),Sg=c(Z(),1);var Pye=c(ce(),1);var bi=c(T(),1),{Badge:iQe}=K(Ty.privateApis);function sQe({children:e,onClick:t}){return t?(0,bi.jsx)(Ty.Button,{__next40pxDefaultSize:!0,className:"block-editor-block-card__parent-select-button",onClick:t,children:e}):e}function aQe({title:e,icon:t,description:o,blockType:r,className:n,name:i,allowParentNavigation:s,parentClientId:a,isChild:l,children:u,clientId:d,controls:f}){r&&((0,Iye.default)("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),{title:e,icon:t,description:o}=r);let{parentBlockClientId:p,parentBlockName:m}=(0,tD.useSelect)(b=>{if(a||l||!s)return{};let{getBlockParents:v,getBlockName:y,shouldRenderBlockListView:_}=K(b(B)),k=v(d,!1).find(x=>_(x));return{parentBlockClientId:k,parentBlockName:k?y(k):null}},[d,s,l,a]),{selectBlock:g}=(0,tD.useDispatch)(B),h=a?"div":"h2";return(0,bi.jsx)("div",{className:Y("block-editor-block-card",{"is-parent":a,"is-child":l},n),children:(0,bi.jsxs)($e,{direction:"column",gap:"sm",children:[(0,bi.jsxs)($e,{direction:"row",align:"center",justify:"space-between",children:[(0,bi.jsxs)($e,{direction:"row",align:"center",justify:"flex-start",children:[p&&(0,bi.jsx)(Ty.Button,{onClick:()=>g(p),label:m?(0,Sg.sprintf)((0,Sg.__)('Go to "%s" block'),(0,Pye.getBlockType)(m)?.title):(0,Sg.__)("Go to parent block"),style:{minWidth:24,padding:0},icon:(0,Sg.isRTL)()?br:li,size:"small"}),l&&(0,bi.jsx)("span",{className:"block-editor-block-card__child-indicator-icon",children:(0,bi.jsx)(Ty.Icon,{icon:(0,Sg.isRTL)()?J0:eC})}),(0,bi.jsxs)(sQe,{onClick:a?()=>{g(a)}:void 0,children:[(0,bi.jsx)(Lt,{icon:t,showColors:!0}),(0,bi.jsxs)($e,{direction:"column",gap:"xs",children:[(0,bi.jsxs)(h,{className:"block-editor-block-card__title",children:[(0,bi.jsx)("span",{className:"block-editor-block-card__name",children:i?.length?i:e}),!a&&!l&&!!i?.length&&(0,bi.jsx)(iQe,{children:e})]}),u]})]})]}),f]}),!a&&!l&&o&&(0,bi.jsx)(ir,{className:"block-editor-block-card__description",children:o})]})})}var aT=aQe;var UD=c(ue(),1),UK=c(ee(),1),Ay=c(F(),1),WK=c(Nt(),1);var Jye=c(ee(),1),Cg=c(F(),1),eve=c(q(),1),tve=c(Z(),1),Wc=c(Aye(),1);var Mye=c(F(),1),Ak=c(ee(),1),Nye=c(ue(),1);var oD=c(T(),1);function lQe(e,t,o){if(!o)return t;let r=e.get(t);return r||(r=(0,Ak.createRegistry)({},t),r.registerStore(yr,q_),e.set(t,r)),r}var cQe=(0,Nye.createHigherOrderComponent)(e=>function({useSubRegistry:o=!0,...r}){let n=(0,Ak.useRegistry)(),[i]=(0,Mye.useState)(()=>new WeakMap),s=lQe(i,n,o);return s===n?(0,oD.jsx)(e,{registry:n,...r}):(0,oD.jsx)(Ak.RegistryProvider,{value:s,children:(0,oD.jsx)(e,{registry:s,...r})})},"withRegistryProvider"),Lye=cQe;var fs=c(F(),1),zye=c(ee(),1),jye=c(ce(),1);var Dye=c(F(),1),uQe=()=>{},rD=(0,Dye.createContext)({getSelection:()=>{},onChangeSelection:uQe});var Vye=()=>{};function Hye(e,t){let o=(0,jye.cloneBlock)(e);return t.externalToInternal.set(e.clientId,o.clientId),t.internalToExternal.set(o.clientId,e.clientId),e.innerBlocks?.length&&(o.innerBlocks=e.innerBlocks.map(r=>Hye(r,t))),o}function Wye(e,t){return e.map(o=>{let r=t.internalToExternal.get(o.clientId);return{...o,clientId:r??o.clientId,innerBlocks:Wye(o.innerBlocks,t)}})}function Fye(e,t){let{selectionStart:o,selectionEnd:r,initialPosition:n}=e,i=s=>{if(!s?.clientId)return s;let a=t.internalToExternal.get(s.clientId);return{...s,clientId:a??s.clientId}};return{selectionStart:i(o),selectionEnd:i(r),initialPosition:n}}function nD({clientId:e=null,value:t,onChange:o=Vye,onInput:r=Vye}){let n=(0,zye.useRegistry)(),{getSelection:i,onChangeSelection:s}=(0,fs.useContext)(rD),{resetBlocks:a,resetSelection:l,replaceInnerBlocks:u,setHasControlledInnerBlocks:d,__unstableMarkNextChangeAsNotPersistent:f}=n.dispatch(B),{getBlockName:p,getBlocks:m,getSelectionStart:g,getSelectionEnd:h}=n.select(B),b=(0,fs.useRef)({incoming:null,outgoing:[]}),v=(0,fs.useRef)(!1),y=(0,fs.useRef)({externalToInternal:new Map,internalToExternal:new Map}),_=(0,fs.useRef)(null),w=(0,fs.useRef)(!1),k=()=>{let S=i();if(!S?.selectionStart?.clientId||S===_.current)return;let I=S.selectionStart.clientId;if(e?y.current.externalToInternal.has(I):!!p(I)){_.current=S;let A=P=>!P?.clientId||!e?P:{...P,clientId:y.current.externalToInternal.get(P.clientId)??P.clientId};w.current=!0,l(A(S.selectionStart),A(S.selectionEnd),S.initialPosition),w.current=!1}},x=()=>{t&&(e?n.batch(()=>{y.current.externalToInternal.clear(),y.current.internalToExternal.clear();let S=t.map(I=>Hye(I,y.current));f({history:"ignore"}),d(e,!0),v.current&&(b.current.incoming=S),f({history:"ignore"}),u(e,S),_.current=null}):(v.current&&(b.current.incoming=t),f({history:"ignore"}),a(t)))},C=()=>{e?(f({history:"ignore"}),d(e,!1),f({history:"ignore"}),u(e,[])):(f({history:"ignore"}),a([]))},E=(0,fs.useRef)(r),R=(0,fs.useRef)(o);(0,fs.useEffect)(()=>{E.current=r,R.current=o},[r,o]),(0,fs.useEffect)(()=>{let S=b.current.outgoing.includes(t),I=m(e)===t;S?b.current.outgoing[b.current.outgoing.length-1]===t&&(b.current.outgoing=[]):I||(b.current.outgoing=[],x(),k())},[t,e]),(0,fs.useEffect)(()=>{let{getSelectedBlocksInitialCaretPosition:S,isLastBlockChangePersistent:I,__unstableGetLastBlockChangeHistoryMode:O,__unstableIsLastBlockChangeIgnored:A,areInnerBlocksControlled:P,getBlockParents:L}=n.select(B),H=m(e),N=I(),M=O(),V=!1,j=g(),D=h();v.current=!0;let z=n.subscribe(()=>{if(e!==null&&p(e)===null)return;let $=I(),J=O(),Q=m(e),W=Q!==H;if(H=Q,W&&(b.current.incoming||A())){b.current.incoming=null,N=$,M=J;return}let U=W||V&&!W&&$&&!N,G=g(),te=h(),re=G!==j||te!==D;re&&(j=G,D=te),(U||re)&&n.batch(()=>{if(U){N=$,M=J;let ae=e?Wye(H,y.current):H,ie={selectionStart:G,selectionEnd:te,initialPosition:S()},be=e?Fye(ie,y.current):ie;b.current.outgoing.push(ae);let pe=N?R.current:E.current,ke={selection:be};M==="ignore"&&(ke.undoIgnore=!0),pe(ae,ke)}if(re&&!U&&G?.clientId&&!w.current&&(e?y.current.internalToExternal.has(G.clientId):!L(G.clientId).some(ie=>P(ie)))){let ie={selectionStart:G,selectionEnd:te,initialPosition:S()};s(e?Fye(ie,y.current):ie)}}),V=W},B);return()=>{v.current=!1,z()}},[n,e]),(0,fs.useEffect)(()=>()=>{C()},[])}var Uye=c(F(),1),Gye=c(ee(),1),$ye=c(fl(),1),tn=c(Z(),1);function Yye(){return null}function dQe(){let{registerShortcut:e,unregisterShortcut:t}=(0,Gye.useDispatch)($ye.store),[o]=je("blockVisibility.allowEditing");return(0,Uye.useEffect)(()=>{e({name:"core/block-editor/copy",category:"block",description:(0,tn.__)("Copy the selected block(s)."),keyCombination:{modifier:"primary",character:"c"}}),e({name:"core/block-editor/cut",category:"block",description:(0,tn.__)("Cut the selected block(s)."),keyCombination:{modifier:"primary",character:"x"}}),e({name:"core/block-editor/paste",category:"block",description:(0,tn.__)("Paste the selected block(s)."),keyCombination:{modifier:"primary",character:"v"}}),e({name:"core/block-editor/duplicate",category:"block",description:(0,tn.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:(0,tn.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/paste-styles",category:"block",description:(0,tn.__)("Paste the copied style to the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"v"}}),e({name:"core/block-editor/insert-before",category:"block",description:(0,tn.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:(0,tn.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:(0,tn.__)("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/stop-editing-as-blocks",category:"block",description:(0,tn.__)("Finish editing a design."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/select-all",category:"selection",description:(0,tn.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:(0,tn.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/multi-text-selection",category:"selection",description:(0,tn.__)("Select text across multiple blocks."),keyCombination:{modifier:"shift",character:"arrow"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:(0,tn.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:(0,tn.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:(0,tn.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}}),e({name:"core/block-editor/collapse-list-view",category:"list-view",description:(0,tn.__)("Collapse all other items."),keyCombination:{modifier:"alt",character:"l"}}),e({name:"core/block-editor/group",category:"block",description:(0,tn.__)("Create a group block from the selected multiple blocks."),keyCombination:{modifier:"primary",character:"g"}}),o===!1?t("core/block-editor/toggle-block-visibility"):e({name:"core/block-editor/toggle-block-visibility",category:"block",description:(0,tn.__)("Show or hide the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"h"}}),e({name:"core/block-editor/rename",category:"block",description:(0,tn.__)("Rename the selected block."),keyCombination:{modifier:"primaryAlt",character:"r"}})},[e,t,o]),null}Yye.Register=dQe;var iD=Yye;var Nk=c(F(),1),Ry=c(ee(),1),sD=c(fl(),1),Mk=c(ce(),1),eK=c(uw(),1);var By=c(T(),1);function fQe(){return(0,Ry.useSelect)(e=>K(e(Mk.store)).getBlockKeyboardShortcuts(),[])}function pQe(){let{getBlock:e,getBlockName:t,getBlockAttributes:o,getBlockEditingMode:r,getSelectedBlockClientId:n}=(0,Ry.useSelect)(B),{getBlockVariations:i,getActiveBlockVariation:s}=(0,Ry.useSelect)(Mk.store),{replaceBlocks:a,updateBlockAttributes:l}=(0,Ry.useDispatch)(B);return(0,Nk.useCallback)(({targetBlockName:u,blockNames:d,variationName:f})=>{let p=n();if(!p||r(p)!=="default")return!1;let m=t(p);if(!d.includes(m))return!1;let g=f?i(u)?.find(({name:v})=>v===f):void 0;if(m===u)return g?.attributes?(s(u,o(p))?.name!==f&&l(p,g.attributes),!0):!1;let h=e(p);if(!h)return!1;let b=g?(0,Mk.switchToBlockType)(h,u,g.name):null;return b||(b=(0,Mk.switchToBlockType)(h,u),b&&g?.attributes&&(b=b.map(v=>v.name===u?{...v,attributes:{...v.attributes,...g.attributes}}:v))),b?(a(p,b),!0):!1},[e,t,o,r,n,i,s,a,l])}function mQe({entry:e,apply:t}){return(0,sD.useShortcut)(e.name,o=>{o.defaultPrevented||t(e)&&o.preventDefault()}),null}function gQe({shortcuts:e}){let{registerShortcut:t,unregisterShortcut:o}=(0,Ry.useDispatch)(sD.store),r=(0,Nk.useRef)(new Map);return(0,Nk.useEffect)(()=>{let n=new Map,i=new Map;for(let s of e){let a={name:s.name,category:"block",description:s.description,keyCombination:s.keyCombination,aliases:s.aliases},l=JSON.stringify(a),u=n.get(s.name);if(u!==void 0){u!==l&&(0,eK.default)(`Block keyboard shortcut "$s.name}" is declared more than once with different settings.`);continue}let{modifier:d,character:f}=s.keyCombination,p=`$d??""}+$f}`;i.has(p)&&(0,eK.default)(`Block keyboard shortcut "$s.name}" uses the same key combination as "$i.get(p)}".`),i.set(p,s.name),t(a),n.set(s.name,l)}for(let s of r.current.keys())n.has(s)||o(s);r.current=n},[e,t,o]),null}function Kye(){let e=fQe(),t=pQe();return(0,By.jsxs)(By.Fragment,{children:[(0,By.jsx)(gQe,{shortcuts:e}),e.map((o,r)=>(0,By.jsx)(mQe,{entry:o,apply:t},`$o.name}-$r}`))]})}var qye=c(F(),1);function hQe(e={}){return(0,qye.useMemo)(()=>({mediaUpload:e.mediaUpload,mediaSideload:e.mediaSideload,mediaFinalize:e.mediaFinalize,mediaDelete:e.mediaDelete,maxUploadFileSize:e.maxUploadFileSize,allowedMimeTypes:e.allowedMimeTypes,allImageSizes:e.allImageSizes,bigImageSizeThreshold:e.bigImageSizeThreshold,imageStripMeta:e.imageStripMeta,imageMaxBitDepth:e.imageMaxBitDepth}),[e])}var Zye=hQe;var Ba=c(T(),1),aD=()=>{},Xye=!1,Lk=null,Dk=null,Qye=["image/heic","image/heif"];function ove(e,t,o){return!t&&e.length>1?(o((0,tve.__)("Only one file can be used here.")),!0):!1}function rve(){if(Lk!==null)return Lk;if(!window.__clientSideMediaProcessing||typeof Wc.detectClientSideMediaSupport!="function")return Lk=!1,!1;let e=(0,Wc.detectClientSideMediaSupport)();return!e||!e.supported?(Xye||(console.info(`Client-side media processing unavailable: $e.reason}. Using server-side processing.`),Xye=!0),Lk=!1,!1):(Lk=!0,!0)}function bQe(){return Dk!==null?Dk:rve()||!window.__clientSideMediaProcessing||typeof Wc.isHeicCanvasSupported!="function"||!(0,Wc.isHeicCanvasSupported)()?(Dk=!1,!1):(Dk=!0,!0)}function yQe(e,t,{allowedTypes:o,additionalData:r={},filesList:n,onError:i=aD,onFileChange:s,onSuccess:a,onBatchSuccess:l,multiple:u=!0}){ove(n,u,i)||e.dispatch(Wc.store).addItems({files:Array.from(n),onChange:s,onSuccess:d=>{t?.[q0]?.(d),a?.(d)},onBatchSuccess:l,onError:d=>i(typeof d=="string"?d:d?.message??""),additionalData:r,allowedTypes:o})}function vQe(e,t,{allowedTypes:o,additionalData:r={},filesList:n,onError:i=aD,onFileChange:s,onSuccess:a,onBatchSuccess:l,multiple:u=!0}){if(ove(n,u,i))return;let d=Array.from(n),f=d.filter(b=>Qye.includes(b.type)),p=d.filter(b=>!Qye.includes(b.type)),m=f.length>0&&p.length>0&&t?.mediaUpload,g=m?2:1,h=m?()=>{g--,g<=0&&l?.()}:l;f.length>0&&e.dispatch(Wc.store).addItems({files:f,onChange:s,onSuccess:b=>{t?.[q0]?.(b),a?.(b)},onBatchSuccess:h,onError:b=>i(typeof b=="string"?b:b?.message??""),additionalData:r,allowedTypes:o}),p.length>0&&t?.mediaUpload&&t.mediaUpload({allowedTypes:o,additionalData:r,filesList:p,onError:i,onFileChange:s,onSuccess:a,onBatchSuccess:h,multiple:u})}function _Qe(e){return nD(e),null}var Vk=Lye(e=>{let{settings:t,registry:o,stripExperimentalSettings:r=!1}=e,n=Zye(t),i=rve(),s=bQe(),a=i||s,l=!!t?.mediaUpload?.__isMediaUploadInterceptor,u=(0,Cg.useMemo)(()=>{if(a&&t?.mediaUpload&&!l){let v=(i?yQe:vQe).bind(null,o,t);return v.__isMediaUploadInterceptor=!0,{...t,mediaUpload:v}}return t},[t,o,a,i,l]),{__experimentalUpdateSettings:d}=K((0,Jye.useDispatch)(B));(0,Cg.useEffect)(()=>{d({...u,__internalIsInitialized:!0},{stripExperimentalSettings:r,reset:!0})},[u,r,d]);let f=(0,Cg.useRef)(e.selection);f.current=e.selection;let p=(0,Cg.useRef)(e.onChangeSelection??aD);p.current=e.onChangeSelection??aD;let m=(0,Cg.useMemo)(()=>({getSelection:()=>f.current,onChangeSelection:(...b)=>p.current(...b)}),[]),g=(0,Ba.jsxs)(eve.SlotFillProvider,{passthrough:!0,children:[!u?.isPreviewMode&&(0,Ba.jsxs)(Ba.Fragment,{children:[(0,Ba.jsx)(iD.Register,{}),(0,Ba.jsx)(Kye,{})]}),(0,Ba.jsx)(zne,{children:e.children})]}),h=(0,Ba.jsxs)(rD.Provider,{value:m,children:[(0,Ba.jsx)(_Qe,{clientId:e.clientId,value:e.value,onChange:e.onChange,onInput:e.onInput}),g]});return a&&!l?(0,Ba.jsx)(Wc.MediaUploadProvider,{settings:n,useSubRegistry:!1,children:h}):h}),wQe=e=>(0,Ba.jsx)(Vk,{...e,stripExperimentalSettings:!0,children:e.children}),nve=wQe;var TT=c(ue(),1),oke=c(ee(),1),WD=c(F(),1),rke=c(q(),1);var e_e=c(oe(),1),Iy=c(F(),1),t_e=c(Z(),1),Kf=c(ue(),1),o_e=c(q(),1),aK=c(ee(),1);var $ve=c(ee(),1),iK=c(Z(),1),fT=c(ue(),1),Yve=c(F(),1);var cD=c(ee(),1),cve=c(ue(),1);var sve=c(Z(),1),ave=c(Dt(),1),Rl=c(ce(),1);var ive=c(Dt(),1);function kQe(e){let t="<!--StartFragment-->",o=e.indexOf(t);if(o>-1)e=e.substring(o+t.length);else return e;let n=e.indexOf("<!--EndFragment-->");return n>-1&&(e=e.substring(0,n)),e}function xQe(e){let t="<meta charset='utf-8'>";return e.startsWith(t)?e.slice(t.length):e}function Fk({clipboardData:e}){let t="",o="";try{t=e.getData("text/plain"),o=e.getData("text/html")}catch{return}o=kQe(o),o=xQe(o);let r=(0,ive.getFilesFromDataTransfer)(e);return r.length&&!SQe(r,o)?{files:r}:{html:o,plainText:t,files:[]}}function SQe(e,t){if(t&&e?.length===1&&e[0].type.indexOf("image/")===0){let o=/<\s*img\b/gi;if(t.match(o)?.length!==1)return!0;let r=/<\s*img\b[^>]*\bsrc="file:\/\//i;if(t.match(r))return!0}return!1}var tK=Symbol("requiresWrapperOnCopy");function lD(e,t,o){let r=t,[n]=t;if(n&&o.select(Rl.store).getBlockType(n.name)[tK]){let{getBlockRootClientId:a,getBlockName:l,getBlockAttributes:u}=o.select(B),d=a(n.clientId),f=l(d);f&&(r=(0,Rl.createBlock)(f,u(d),r))}let i=(0,Rl.serialize)(r);e.clipboardData.setData("text/plain",CQe(i)),e.clipboardData.setData("text/html",i)}function lve(e,t){let{plainText:o,html:r,files:n}=Fk(e),i=[];if(n.length){let s=(0,Rl.getBlockTransforms)("from");i=n.reduce((a,l)=>{let u=(0,Rl.findTransform)(s,d=>d.type==="files"&&d.isMatch([l]));return u&&a.push(u.transform([l])),a},[]).flat()}else i=(0,Rl.pasteHandler)({HTML:r,plainText:o,mode:"BLOCKS",canUserUseUnfilteredHTML:t});return i}function CQe(e){return e=e.replace(/<br>/g,` 94 `),(0,ave.__unstableStripHTML)(e).trim().replace(/\n\n+/g,` 95 96 `)}function xr(e,t,{focus:o=!0}={}){return e.contentEditable===String(t)?t:(e.contentEditable=t,t?e.isContentEditable?(e.setAttribute("role","textbox"),e.setAttribute("aria-multiline","true"),e.setAttribute("aria-label",(0,sve.__)("Editor canvas")),o&&e.focus({preventScroll:!0}),!0):(e.removeAttribute("contenteditable"),!1):(e.removeAttribute("role"),e.removeAttribute("aria-multiline"),e.removeAttribute("aria-label"),!1))}function uve(){let e=(0,cD.useRegistry)(),t=(0,cD.useSelect)(o=>{let{getSelectedBlockClientId:r,canHostEditableRoot:n,isZoomOut:i}=K(o(B));return!i()&&n(r())},[]);return(0,cve.useRefEffect)(o=>{if(!t)return;let{getSelectedBlockClientId:r,hasMultiSelection:n,isMultiSelecting:i}=e.select(B);if(!xr(o,!0,{focus:!1}))return;let{activeElement:s}=o.ownerDocument,a=o.ownerDocument.defaultView.getSelection();return s!==o&&s?.isContentEditable&&o.contains(s)&&Vo(s)===r()&&a.anchorNode&&s.contains(a.anchorNode)&&o.focus(),()=>{if(!(n()||i())&&(xr(o,!1),o.ownerDocument.activeElement===o)){let l=dl(o.ownerDocument.defaultView.getSelection(),o);l&&Vo(l)===r()&&l.focus()}}},[t,e])}var lT=c(wo(),1),dve=c(ee(),1),fve=c(ue(),1);function pve(){let{hasMultiSelection:e}=(0,dve.useSelect)(B);return(0,fve.useRefEffect)(t=>{function o(r){if(r.defaultPrevented||r.keyCode!==lT.HOME&&r.keyCode!==lT.END||r.metaKey||r.ctrlKey||r.altKey||!r.target.isContentEditable||e())return;let n=t.ownerDocument.defaultView.getSelection();dl(n,t)&&(r.preventDefault(),n.modify(r.shiftKey?"extend":"move",r.keyCode===lT.HOME?"backward":"forward","lineboundary"))}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}},[])}var mve=c(ue(),1),gve=c(ee(),1);function EQe(e){let{isMultiSelecting:t,getMultiSelectedBlockClientIds:o,hasMultiSelection:r,getSelectedBlockClientId:n,getSelectedBlocksInitialCaretPosition:i,__unstableIsFullySelected:s}=e(B);return{isMultiSelecting:t(),multiSelectedBlockClientIds:o(),hasMultiSelection:r(),selectedBlockClientId:n(),initialPosition:i(),isFullSelection:s()}}function hve(){let{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:o,hasMultiSelection:r,selectedBlockClientId:n,isFullSelection:i}=(0,gve.useSelect)(EQe,[]);return(0,mve.useRefEffect)(s=>{let{ownerDocument:a}=s,{defaultView:l}=a;if(e==null||!r||t)return;let{length:u}=o;u<2||i&&(xr(s,!0),l.getSelection().removeAllRanges())},[r,t,o,n,e,i])}var zk=c(Dt(),1),dD=c(wo(),1),oK=c(Z(),1),fD=c(ee(),1),jk=c(ue(),1),cT=c(F(),1);var uD=c(T(),1),bve={position:"absolute",inset:0,pointerEvents:"none",outline:"none"},TQe=["Enter"," ","F2","Escape"];function rK(){let e=(0,cT.useRef)(),t=(0,cT.useRef)(),o=(0,cT.useRef)(),r=(0,jk.useInstanceId)(rK,"block-editor-writing-flow__canvas-stop-hint"),{hasMultiSelection:n,getSelectedBlockClientId:i,getBlockCount:s,getBlockOrder:a,getLastFocus:l,getSectionRootClientId:u,getEditedContentOnlySection:d,isZoomOut:f}=K((0,fD.useSelect)(B)),{setLastFocus:p}=K((0,fD.useDispatch)(B)),m=(0,cT.useRef)();function g(){if(e.current.ownerDocument.defaultView.focus(),n())e.current.focus();else if(i())l()?.current?l().current.focus():e.current.querySelector(`[data-block="$i()}"]`).focus();else if(f()){let x=u(),C=a(x);C.length?e.current.querySelector(`[data-block="$C[0]}"]`).focus():x?e.current.querySelector(`[data-block="$x}"]`).focus():e.current.focus()}else{let x=zk.focus.tabbable.find(e.current);x.length?x[0].focus():e.current.focus()}}function h(x){if(x.defaultPrevented||x.ctrlKey||x.metaKey||x.altKey)return;let{key:C}=x;if(!x.shiftKey&&TQe.includes(C)){x.preventDefault(),g();return}C==="Tab"&&!x.shiftKey&&(x.preventDefault(),zk.focus.tabbable.findNext(o.current)?.focus())}function b(){if(m.current){m.current=null;return}g()}let v=(0,uD.jsx)("div",{ref:t,tabIndex:"0",role:"button","aria-label":(0,oK.__)("Editor canvas"),"aria-describedby":r,className:"block-editor-writing-flow__canvas-stop",style:bve,onFocus:b,onKeyDown:h,onClick:g,children:(0,uD.jsx)("div",{className:"block-editor-writing-flow__canvas-stop-hint",id:r,children:(0,oK.__)("Press Enter to edit the document")})});function y(){if(m.current){m.current=null;return}g()}let _=(0,uD.jsx)("div",{ref:o,tabIndex:"0",onFocus:y,style:bve}),w=(0,jk.useRefEffect)(x=>{function C(S){if(S.defaultPrevented)return;if(S.key==="Escape"&&!S.shiftKey&&!S.ctrlKey&&!S.metaKey&&!S.altKey){if(d())return;t.current&&(S.preventDefault(),m.current=!0,t.current.focus());return}if(S.keyCode!==dD.TAB||!o.current||!t.current)return;let{target:I,shiftKey:O}=S,A=O?"findPrevious":"findNext",P=zk.focus.tabbable[A](I),L=I.closest("[data-block]"),H=L&&P&&(GO(L,P)||qu(L,P));if((0,zk.isFormElement)(P)&&H)return;let N=O?t:o;m.current=!0,N.current.focus()}function E(S){x.contains(S.relatedTarget)||p({current:S.target});let{ownerDocument:I}=x;!S.relatedTarget&&S.target.hasAttribute("data-block")&&I.activeElement===I.body&&s()===0&&x.focus()}let R=(0,dD.withIgnoreIMEEvents)(C);return x.addEventListener("keydown",R),x.addEventListener("focusout",E),()=>{x.removeEventListener("keydown",R),x.removeEventListener("focusout",E)}},[]),k=(0,jk.useMergeRefs)([e,w]);return[v,k,_]}var pD=c(wo(),1),yve=c(ee(),1),vve=c(ue(),1);function _ve(){let{didAutomaticChange:e,getSettings:t}=(0,yve.useSelect)(B);function o(r){let{keyCode:n}=r;if(r.defaultPrevented||n!==pD.BACKSPACE&&n!==pD.ESCAPE)return;let{__experimentalUndo:i}=t();i&&e()&&(r.preventDefault(),i())}return(0,vve.useRefEffect)(r=>(r.addEventListener("keydown",o),()=>{r.removeEventListener("keydown",o)}),[])}var on=c(Dt(),1),md=c(wo(),1),mD=c(ee(),1),wve=c(ue(),1),gD=c(ce(),1);function RQe(e,t,o){let r=t===md.UP||t===md.DOWN,{tagName:n}=e,i=e.getAttribute("type");return r&&!o?n==="INPUT"?!["date","datetime-local","month","number","range","time","week"].includes(i):!0:n==="INPUT"?["button","checkbox","number","color","file","image","radio","reset","submit"].includes(i):n!=="TEXTAREA"}function nK(e,t,o,r){let n=on.focus.focusable.find(o);t&&n.reverse(),n=n.slice(n.indexOf(e)+1);let i;r&&(i=e.getBoundingClientRect());function s(a){if(a.children.length===1&&GO(a,a.firstElementChild)&&a.firstElementChild.getAttribute("contenteditable")==="true")return;let l=(0,gD.getBlockType)(a.getAttribute("data-type"));if(a.contentEditable!=="true"&&Vo(a)&&l&&(l.merge||(0,gD.hasBlockSupport)(l,"__experimentalOnMerge"))&&on.focus.focusable.find(a).filter(u=>!(0,on.isFormElement)(u)).length!==0||!on.focus.tabbable.isTabbableIndex(a)||a.isContentEditable&&a.contentEditable!=="true"&&Vo(a.closest('[contenteditable="true"]')))return!1;if(r){let u=a.getBoundingClientRect();if(u.left>=i.right||u.right<=i.left)return!1}return!0}return n.find(s)}function kve(){let{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getNextBlockClientId:o,getPreviousBlockClientId:r,getSelectedBlockClientId:n,getSelectionStart:i,getSettings:s,hasMultiSelection:a,__unstableIsFullySelected:l}=(0,mD.useSelect)(B),{selectBlock:u,multiSelect:d}=(0,mD.useDispatch)(B);return(0,wve.useRefEffect)(f=>{let p;function m(){p=null}function g(b,v){let y=nK(b,v,f);return y&&Vo(y)}function h(b){if(b.defaultPrevented)return;let{keyCode:v,shiftKey:y,ctrlKey:_,altKey:w,metaKey:k}=b,x=b.target===f&&dl(f.ownerDocument.defaultView.getSelection(),f)||b.target,C=v===md.UP,E=v===md.DOWN,R=v===md.LEFT,S=v===md.RIGHT,I=C||R,O=R||S,A=C||E,P=O||A,L=y||_||w||k,H=A?on.isVerticalEdge:on.isHorizontalEdge,{ownerDocument:N}=f,{defaultView:M}=N;if(!P||s().isPreviewMode)return;if(a()){if(y){let D=M.getSelection();if(l()&&(!D.rangeCount||D.isCollapsed)){let z=e(),$=t(),J=I?r($):o($);J&&(d(z,J),b.preventDefault())}return}if(!l())return;b.preventDefault(),I?u(e()):u(t(),-1);return}if(y&&n()&&!i().attributeKey){let D=n(),z=I?r(D):o(D);z&&(d(D,z),b.preventDefault());return}if(!RQe(x,v,L))return;A?p||(p=(0,on.computeCaretRect)(M)):p=null;let V=(0,on.isRTL)(x)?!I:I,{keepCaretInsideBlock:j}=s();if(y)H(x,I)&&(g(x,I)?xr(f,!0):f.contentEditable==="true"&&(M.getSelection().extend(x,I?0:x.childNodes.length),b.preventDefault()));else if(A&&(0,on.isVerticalEdge)(x,I)&&(!w||(0,on.isHorizontalEdge)(x,V))&&!j){let D=nK(x,I,f,!0);D&&((0,on.placeCaretAtVerticalEdge)(D,w?!I:I,w?void 0:p),b.preventDefault())}else if(O&&M.getSelection().isCollapsed&&(0,on.isHorizontalEdge)(x,V)&&!j){let D=nK(x,V,f);(0,on.placeCaretAtHorizontalEdge)(D,I),b.preventDefault()}}return f.addEventListener("mousedown",m),f.addEventListener("keydown",h),()=>{f.removeEventListener("mousedown",m),f.removeEventListener("keydown",h)}},[])}var xve=c(ue(),1),Sve=c(ee(),1),gd=c(wo(),1);function Cve(){let e=(0,Sve.useSelect)(t=>t(B).getSettings().isPreviewMode,[]);return(0,xve.useRefEffect)(t=>{if(!e)return;function o(r){let{keyCode:n,shiftKey:i,target:s}=r,a=n===gd.TAB,l=n===gd.UP,u=n===gd.DOWN,d=n===gd.LEFT;if(!a&&!(l||u||d||n===gd.RIGHT))return;let m=a?i:l||d,g=Array.from(t.querySelectorAll("[data-block]"));if(!g.length)return;let h=s.closest("[data-block]"),b=h?g.indexOf(h):-1;if(b===-1||a&&(m&&b===0||!m&&b===g.length-1))return;let v;m?v=b<=0?g.length-1:b-1:v=b===-1||b>=g.length-1?0:b+1,r.preventDefault(),g[v].focus()}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}},[e])}var Eve=c(Dt(),1),hD=c(ee(),1),Tve=c(fl(),1),Rve=c(ue(),1);function Bve(){let{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:o}=(0,hD.useSelect)(B),{multiSelect:r,selectBlock:n}=(0,hD.useDispatch)(B),i=(0,Tve.__unstableUseShortcutEventMatch)();return(0,Rve.useRefEffect)(s=>{function a(l){if(!i("core/block-editor/select-all",l))return;let u=t(),{ownerDocument:d}=s,f=d.defaultView.getSelection(),p=l.target===s&&dl(f,s)||l.target;if(u.length<2&&!(0,Eve.isEntirelySelected)(p)){if(l.target===s&&p!==s){l.preventDefault();let v=d.createRange();v.selectNodeContents(p),f.removeAllRanges(),f.addRange(v),d.dispatchEvent(new Event("selectionchange"))}return}l.preventDefault();let[m]=u,g=Vo(d.activeElement);if(g&&g!==m&&!qu(d.getElementById("block-"+m),d.activeElement)){n(g);return}let h=o(m),b=e(h);if(u.length===b.length){h&&(s.ownerDocument.defaultView.getSelection().removeAllRanges(),n(h));return}r(b[0],b[b.length-1])}return s.addEventListener("keydown",a),()=>{s.removeEventListener("keydown",a)}},[])}var bD=c(ee(),1),Ive=c(ue(),1);function Pve(){let{startMultiSelect:e,stopMultiSelect:t}=(0,bD.useDispatch)(B),{getSettings:o,isSelectionEnabled:r,hasSelectedBlock:n,isDraggingBlocks:i,isMultiSelecting:s}=(0,bD.useSelect)(B);return(0,Ive.useRefEffect)(a=>{let{ownerDocument:l}=a,{defaultView:u}=l,d,f;function p(){t(),u.removeEventListener("mouseup",p),f=u.requestAnimationFrame(()=>{if(!n())return;xr(a,!1);let b=u.getSelection();if(b.rangeCount){let v=b.getRangeAt(0),{commonAncestorContainer:y}=v,_=v.cloneRange();d.contains(y)&&(d.focus(),b.removeAllRanges(),b.addRange(_))}})}let m;function g({target:b}){m=b}function h({buttons:b,target:v,relatedTarget:y}){v.contains(m)&&(v.contains(y)||i()||b===1&&(s()||a!==v&&(v.getAttribute("contenteditable")!=="true"&&!o().isPreviewMode||r()&&(d=v,e(),u.addEventListener("mouseup",p),xr(a,!0)))))}return a.addEventListener("mouseout",h),a.addEventListener("mousedown",g),()=>{a.removeEventListener("mouseout",h),u.removeEventListener("mouseup",p),u.cancelAnimationFrame(f)}},[e,t,r,n])}var vD=c(ee(),1),Mve=c(ue(),1),Hk=c($r(),1),Nve=c(Dt(),1);var{ownsSelection:BQe}=K(Hk.privateApis);function Ove(e){let{anchorNode:t,anchorOffset:o}=e;return t.nodeType===t.TEXT_NODE||o===0?t:t.childNodes[o-1]}function Ave(e,t){let{focusNode:o,focusOffset:r}=e;return o.nodeType===o.TEXT_NODE||r===o.childNodes.length?o:r===0&&(0,Nve.isSelectionForward)(e)&&t?o.previousSibling??o.parentElement:o.childNodes[r]}function IQe(e,t){let o=0;for(;e[o]===t[o];)o++;return o}function yD(e){return(e.nodeType===e.ELEMENT_NODE?e:e.parentElement)?.closest("[data-wp-block-attribute-key]")}function Lve(){let{multiSelect:e,selectBlock:t,selectionChange:o,startMultiSelect:r,stopMultiSelect:n}=(0,vD.useDispatch)(B),{getBlockParents:i,getBlockSelectionStart:s,isMultiSelecting:a,getSelectionStart:l,getSelectionEnd:u,getSelectedBlockClientId:d,canHostEditableRoot:f}=K((0,vD.useSelect)(B));return(0,Mve.useRefEffect)(p=>{let{ownerDocument:m}=p,{defaultView:g}=m,h=!1;function b(k){h=k.detail===3,k.shiftKey&&r()}function v(){h=!1}function y(k){let x=g.getSelection();if(!x.rangeCount)return;let C=Ove(x),E=Ave(x,h);if(!p.contains(C)||!p.contains(E))return;let R=k.shiftKey&&k.type==="mouseup";if(x.isCollapsed&&!R){let A=Vo(C);if(!a()&&A&&A===d()&&f(A)){xr(p,!0);let{activeElement:P}=m;P!==p&&P?.isContentEditable&&p.contains(P)&&Vo(P)===A&&p.focus();return}if(p.contentEditable==="true"&&!a()){xr(p,!1);let P=C.nodeType===C.ELEMENT_NODE?C:C.parentElement;P=P?.closest("[contenteditable]"),P?.focus()}return}let S=Vo(C),I=Vo(E);if(R){let A=s(),P=Vo(k.target),L=P!==I;(S===I&&x.isCollapsed||!I||L)&&(I=P),S!==A&&(S=A)}if(S===void 0&&I===void 0){xr(p,!1);return}if(k.type==="mouseup"&&!k.shiftKey&&!a()&&S===I){let A=Vo(k.target);if(A&&A!==S){x.removeAllRanges();return}}if(S===I)if(a())e(S,S);else{let A=!x.isCollapsed&&(yD(C)||yD(E));if(A&&(A.contentEditable!=="true"||m.activeElement!==A&&!BQe(A))){let P=x.getRangeAt(0),L=(0,Hk.create)({element:A,range:P,__unstableIsEditableTree:!0}),H={start:{clientId:S,attributeKey:A.dataset.wpBlockAttributeKey,offset:L.start??0},end:{clientId:S,attributeKey:A.dataset.wpBlockAttributeKey,offset:L.end??L.text.length}},{start:N,end:M}=H,V=l(),j=u();(V.clientId!==N.clientId||j.clientId!==M.clientId||V.attributeKey!==N.attributeKey||V.offset!==N.offset||j.offset!==M.offset)&&o(H)}else t(S)}else{let A=[...i(S),S],P=[...i(I),I],L=IQe(A,P);if(!(L>=A.length||L>=P.length)&&(A[L]!==S||P[L]!==I)){e(A[L],P[L]);return}let N=yD(C),M=yD(E);if(N&&M){let V=x.getRangeAt(0),j=(0,Hk.create)({element:N,range:V,__unstableIsEditableTree:!0}),D=(0,Hk.create)({element:M,range:V,__unstableIsEditableTree:!0}),z=j.start??j.end,$=D.start??D.end;o({start:{clientId:S,attributeKey:N.dataset.wpBlockAttributeKey,offset:z},end:{clientId:I,attributeKey:M.dataset.wpBlockAttributeKey,offset:$}})}else e(S,I)}}function _(k){let x=g.getSelection();if(!x.rangeCount||x.isCollapsed)return;let C=Vo(Ove(x)),E=Vo(Ave(x,h));C!==E&&y(k)}m.addEventListener("selectionchange",y);function w(k){y(k),n()}return g.addEventListener("mouseup",w),p.addEventListener("mousedown",b),p.addEventListener("keydown",v),m.addEventListener("copy",_,!0),m.addEventListener("cut",_,!0),m.addEventListener("paste",_,!0),()=>{m.removeEventListener("selectionchange",y),g.removeEventListener("mouseup",w),p.removeEventListener("mousedown",b),p.removeEventListener("keydown",v),m.removeEventListener("copy",_,!0),m.removeEventListener("cut",_,!0),m.removeEventListener("paste",_,!0)}},[e,t,o,i])}var _D=c(ee(),1),Dve=c(ue(),1);function Vve(){let{selectBlock:e}=(0,_D.useDispatch)(B),{isSelectionEnabled:t,getBlockSelectionStart:o,getSelectionStart:r,hasMultiSelection:n}=(0,_D.useSelect)(B);return(0,Dve.useRefEffect)(i=>{function s(a){if(!t()||a.button!==0)return;let l=o(),u=Vo(a.target);if(a.shiftKey){if(l&&l!==u){let{clientId:d,attributeKey:f}=r();xr(i,!0,{focus:!!f});let{ownerDocument:p}=i,m=p.defaultView.getSelection(),g=!f&&p.getElementById(`block-$d}`);if(g&&!(m.anchorNode&&g.contains(m.anchorNode))){let h=g.compareDocumentPosition(a.target)&i.DOCUMENT_POSITION_FOLLOWING;m.setPosition(g,h?0:g.childNodes.length)}}}else n()&&e(u)}return i.addEventListener("mousedown",s),()=>{i.removeEventListener("mousedown",s)}},[e,t,o,r,n])}var wD=c(ee(),1),Fve=c(ue(),1),Yf=c(wo(),1),$s=c(ce(),1);function zve(){let{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,getSelectedBlockClientId:o,__unstableIsSelectionMergeable:r,hasMultiSelection:n,getBlockName:i,canInsertBlockType:s,getBlockRootClientId:a,getSelectionStart:l,getSelectionEnd:u,getBlockAttributes:d,getNextBlockClientId:f,getBlockOrder:p,getBlockEditingMode:m,getBlockListSettings:g}=(0,wD.useSelect)(B),{replaceBlocks:h,__unstableSplitSelection:b,removeBlocks:v,__unstableDeleteSelection:y,__unstableExpandSelection:_,__unstableMarkAutomaticChange:w,insertAfterBlock:k,insertBlock:x,selectBlock:C}=(0,wD.useDispatch)(B);return(0,Fve.useRefEffect)(E=>{function R(O){if(O.inputType==="insertParagraph"&&!O.defaultPrevented&&!n()&&(S(O),O.defaultPrevented)||E.contentEditable!=="true")return;if(n()){O.preventDefault();return}let A=E.ownerDocument.defaultView.getSelection();dl(A,E)||O.preventDefault()}function S(O){if(!O.defaultPrevented){if(!n()){if(O.keyCode===Yf.ENTER||O.inputType==="insertParagraph"){if(O.shiftKey||O.type==="keydown"&&O.target.ownerDocument.activeElement.isContentEditable)return;let P=o();if(!P)return;let L=i(P),H=l(),N=u();if(H.attributeKey===N.attributeKey){let j=d(P)[H.attributeKey],D=(0,$s.getBlockTransforms)("from").filter(({type:$})=>$==="enter"),z=(0,$s.findTransform)(D,$=>$.regExp.test(j));if(z){h(P,z.transform({content:j})),w();return}}let M=a(P),{activeElement:V}=O.target.ownerDocument;if(!e()&&(s((0,$s.getDefaultBlockName)(),M)||s(L,M))&&((0,$s.hasBlockSupport)(L,"splitting",!1)||O.__deprecatedOnSplit))O.preventDefault(),b();else if((V.getAttribute("data-block")===P||V.isContentEditable)&&Vo(V)===P){let{defaultBlock:j}=M&&g(M)||{};if(s(j?.name??(0,$s.getDefaultBlockName)(),M))O.preventDefault(),k(P);else{let D=function($){let J=null;for(;typeof $=="string"&&!(J=f($));)$=a($);return J};var A=D;if(!p(P).length){let{defaultBlock:$}=g(P)??{},J=$?.name??(0,$s.getDefaultBlockName)();if(s(J,P)){O.preventDefault(),x((0,$s.createBlock)(J,$?.attributes),0,P);return}}let z=p(P)[0]??D(P);for(;z&&m(z)==="disabled";)z=D(z);z&&(O.preventDefault(),C(z,!0))}}}return}O.keyCode===Yf.ENTER?(xr(E,!1),O.preventDefault(),e()?h(t(),(0,$s.createBlock)((0,$s.getDefaultBlockName)())):b()):O.keyCode===Yf.BACKSPACE||O.keyCode===Yf.DELETE?(xr(E,!1),O.preventDefault(),e()?v(t()):r()?y(O.keyCode===Yf.DELETE):_()):O.key.length===1&&!(O.metaKey||O.ctrlKey)&&(xr(E,!1),r()?y(O.keyCode===Yf.DELETE):(O.preventDefault(),E.ownerDocument.defaultView.getSelection().removeAllRanges()))}}function I(O){n()&&(xr(E,!1),r()?y():(O.preventDefault(),E.ownerDocument.defaultView.getSelection().removeAllRanges()))}return E.addEventListener("beforeinput",R),E.addEventListener("keydown",S),E.addEventListener("compositionstart",I),()=>{E.removeEventListener("beforeinput",R),E.removeEventListener("keydown",S),E.removeEventListener("compositionstart",I)}},[])}var hd=c(ce(),1),Uk=c(Dt(),1),Gk=c(ee(),1),Gve=c(ue(),1);var jve=c(F(),1),Hve=c(ce(),1),uT=c(ee(),1),Bl=c(Z(),1),Wve=c(Ns(),1);function Wk(){let{getBlockName:e}=(0,uT.useSelect)(B),{getBlockType:t}=(0,uT.useSelect)(Hve.store),{createSuccessNotice:o}=(0,uT.useDispatch)(Wve.store);return(0,jve.useCallback)((r,n)=>{let i="";if(r==="copyStyles")i=(0,Bl.__)("Styles copied to clipboard.");else if(n.length===1){let s=n[0],a=t(e(s))?.title;r==="copy"?i=(0,Bl.sprintf)((0,Bl.__)('Copied "%s" to clipboard.'),a):i=(0,Bl.sprintf)((0,Bl.__)('Moved "%s" to clipboard.'),a)}else r==="copy"?i=(0,Bl.sprintf)((0,Bl._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",n.length),n.length):i=(0,Bl.sprintf)((0,Bl._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",n.length),n.length);o(i,{type:"snackbar"})},[o,e,t])}function Uve(e,t){let o=e.defaultView.getSelection();if(Vo(o.anchorNode)!==t)return!1;let r=e.getElementById(`block-$t}`);return!!r?.isContentEditable&&(0,Uk.isEntirelySelected)(r)}function dT(){let e=(0,Gk.useRegistry)(),{getBlocksByClientId:t,getSelectedBlockClientIds:o,hasMultiSelection:r,getSettings:n,getBlockName:i,__unstableIsFullySelected:s,__unstableIsSelectionCollapsed:a,__unstableIsSelectionMergeable:l,__unstableGetSelectedBlocksWithPartialSelection:u,canInsertBlockType:d,getBlockRootClientId:f}=(0,Gk.useSelect)(B),{flashBlock:p,removeBlocks:m,replaceBlocks:g,__unstableDeleteSelection:h,__unstableExpandSelection:b,__unstableSplitSelection:v}=(0,Gk.useDispatch)(B),y=Wk();return(0,Gve.useRefEffect)(_=>{function w(k){if(k.defaultPrevented)return;let x=o();if(x.length===0)return;let C=k.type==="copy"&&!r()&&Uve(k.target.ownerDocument,x[0]);if(!r()){let{ownerDocument:O}=k.target;if((k.type==="copy"||k.type==="cut"?(0,Uk.documentHasUncollapsedSelection)(O):(0,Uk.documentHasSelection)(O)&&!O.activeElement.isContentEditable)&&!C)return}let{activeElement:E}=k.target.ownerDocument;if(!_.contains(E))return;let R=l(),S=a()||s()||C,I=!S&&!R;if(k.type==="copy"||k.type==="cut")if(k.preventDefault(),x.length===1&&p(x[0]),I)b();else{y(k.type,x);let O;if(S)O=t(x);else{let[A,P]=u(),L=t(x.slice(1,x.length-1));O=[A,...L,P]}lD(k,O,e)}if(k.type==="cut")S&&!I?m(x):(xr(k.target.ownerDocument.activeElement,!1),h());else if(k.type==="paste"){let{__experimentalCanUserUseUnfilteredHTML:O,mediaUpload:A}=n();if(k.clipboardData.getData("rich-text")==="true")return;let{plainText:L,html:H,files:N}=Fk(k),M=s(),V=[];if(N.length){if(!A){k.preventDefault();return}let $=(0,hd.getBlockTransforms)("from");V=N.reduce((J,Q)=>{let W=(0,hd.findTransform)($,X=>X.type==="files"&&X.isMatch([Q]));return W&&J.push(W.transform([Q])),J},[]).flat()}else V=(0,hd.pasteHandler)({HTML:H,plainText:L,mode:M?"BLOCKS":"AUTO",canUserUseUnfilteredHTML:O});if(typeof V=="string")return;if(M){g(x,V,V.length-1,-1),k.preventDefault();return}if(!r()&&Uve(k.target.ownerDocument,x[0])){g(x,V,V.length-1,-1),k.preventDefault();return}if(!r()&&!(0,hd.hasBlockSupport)(i(x[0]),"splitting",!1)&&!k.__deprecatedOnSplit)return;let[j]=x,D=f(j),z=[];for(let $ of V)if(d($.name,D))z.push($);else{let J=i(D),Q=$.name!==J?(0,hd.switchToBlockType)($,J):[$];if(!Q)return;for(let W of Q)for(let X of W.innerBlocks)z.push(X)}v(z),k.preventDefault()}}return _.ownerDocument.addEventListener("copy",w),_.ownerDocument.addEventListener("cut",w),_.ownerDocument.addEventListener("paste",w),()=>{_.ownerDocument.removeEventListener("copy",w),_.ownerDocument.removeEventListener("cut",w),_.ownerDocument.removeEventListener("paste",w)}},[])}var $k=c(T(),1);function sK(){let[e,t,o]=rK(),r=(0,$ve.useSelect)(n=>n(B).hasMultiSelection(),[]);return[e,(0,fT.useMergeRefs)([_ve(),t,$se(),dT(),zve(),uve(),pve(),Pve(),Lve(),Vve(),hve(),Bve(),kve(),Cve(),(0,fT.useRefEffect)(n=>(n.tabIndex=0,n.dataset.hasMultiSelection=r,r?(n.setAttribute("aria-label",(0,iK.__)("Multiple selected blocks")),()=>{delete n.dataset.hasMultiSelection,n.contentEditable==="true"?n.setAttribute("aria-label",(0,iK.__)("Editor canvas")):n.removeAttribute("aria-label")}):()=>{delete n.dataset.hasMultiSelection}),[r])]),o]}function PQe({children:e,...t},o){let[r,n,i]=sK();return(0,$k.jsxs)($k.Fragment,{children:[r,(0,$k.jsx)("div",{...t,ref:(0,fT.useMergeRefs)([n,o]),className:Y(t.className,"block-editor-writing-flow"),children:e}),i]})}var kD=(0,Yve.forwardRef)(PQe);var xD=null;function Kve(){return xD||(xD=Array.from(document.styleSheets).reduce((e,t)=>{try{t.cssRules}catch{return e}let{ownerNode:o,cssRules:r}=t;if(o===null||!r||o.id.startsWith("wp-")||!o.id)return e;function n(i){return Array.from(i).find(({selectorText:s,conditionText:a,cssRules:l})=>a?n(l):s&&(s.includes(".editor-styles-wrapper")||s.includes(".wp-block")))}if(n(r)){let i=o.tagName==="STYLE";if(i){let s=o.id.replace("-inline-css","-css"),a=document.getElementById(s);a&&e.push(a.cloneNode(!0))}if(e.push(o.cloneNode(!0)),!i){let s=o.id.replace("-css","-inline-css"),a=document.getElementById(s);a&&e.push(a.cloneNode(!0))}}return e},[]),xD)}var yi=c(F(),1),pT=c(ue(),1);function qve({frameSize:e,containerWidth:t,maxContainerWidth:o,scaleContainerWidth:r}){return(Math.min(t,o)-e*2)/r}function OQe(e,t){let{scaleValue:o,scrollHeight:r}=e,{frameSize:n,scaleValue:i}=t;return r*(i/o)+n*2}function AQe(e,t){let{containerHeight:o,frameSize:r,scaleValue:n,scrollTop:i}=e,{containerHeight:s,frameSize:a,scaleValue:l,scrollHeight:u}=t,d=i;d=(d+o/2-r)/n-o/2,d=(d+s/2)*l+a-s/2,d=i<=r?0:d;let f=u-s;return Math.round(Math.min(Math.max(0,d),Math.max(0,f)))}function MQe(e,t){let{scaleValue:o,frameSize:r,scrollTop:n}=e,{scaleValue:i,frameSize:s,scrollTop:a}=t;return[{translate:"0 0",scale:o,paddingTop:`$r/o}px`,paddingBottom:`$r/o}px`},{translate:`0 $n-a}px`,scale:i,paddingTop:`$s/i}px`,paddingBottom:`$s/i}px`}]}var Zve={width:null,height:null};function Xve(e){let t=e.at(-1).contentBoxSize[0];return{width:t.inlineSize,height:t.blockSize}}function Qve({frameSize:e,iframeDocument:t,maxContainerWidth:o=750,scale:r}){let[{height:n},i]=(0,yi.useState)(Zve),s=(0,pT.useResizeObserver)(E=>{i(Xve(E))}),[{width:a,height:l},u]=(0,yi.useState)(Zve),d=(0,pT.useResizeObserver)(E=>{u(Xve(E))}),f=(0,yi.useRef)(0),p=r!==1,m=(0,pT.useReducedMotion)(),g=r==="auto-scaled",h=(0,yi.useRef)(!1),b=(0,yi.useRef)(null);(0,yi.useEffect)(()=>{p||(f.current=a)},[a,p]);let v=Math.max(f.current,a),y=g?qve({frameSize:e,containerWidth:a,maxContainerWidth:o,scaleContainerWidth:v}):r,_=(0,yi.useRef)({scaleValue:y,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),w=(0,yi.useRef)({scaleValue:y,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),k=(0,yi.useCallback)(()=>{let{scrollTop:E}=_.current,{scrollTop:R}=w.current;return t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scroll-top",`$E}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scroll-top-next",`$R}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-overflow-behavior",_.current.scrollHeight===_.current.containerHeight?"auto":"scroll"),t.documentElement.classList.add("zoom-out-animation"),t.documentElement.animate(MQe(_.current,w.current),{easing:"cubic-bezier(0.46, 0.03, 0.52, 0.96)",duration:400})},[t]),x=(0,yi.useCallback)(()=>{h.current=!1,b.current=null,t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale",w.current.scaleValue),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-frame-size",`$w.current.frameSize}px`),t.documentElement.classList.remove("zoom-out-animation"),t.documentElement.scrollTop=w.current.scrollTop,t.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-scroll-top"),t.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-scroll-top-next"),t.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-overflow-behavior"),_.current=w.current},[t]),C=(0,yi.useRef)(!1);return(0,yi.useEffect)(()=>{if(!t)return;let E=C.current!==p;if(C.current=p,!!E&&(h.current=!0,!!p))return t.documentElement.classList.add("is-zoomed-out"),()=>{t.documentElement.classList.remove("is-zoomed-out")}},[t,p]),(0,yi.useEffect)(()=>{if(t&&(g&&_.current.scaleValue!==1&&(_.current.scaleValue=qve({frameSize:_.current.frameSize,containerWidth:a,maxContainerWidth:o,scaleContainerWidth:a})),y<1&&(h.current||(t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale",y),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-frame-size",`$e}px`)),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-content-height",`$n}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-inner-height",`$l}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-container-width",`$a}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale-container-width",`$v}px`)),h.current))if(h.current=!1,b.current){b.current.reverse();let E=_.current,R=w.current;_.current=R,w.current=E}else _.current.scrollTop=t.documentElement.scrollTop,_.current.scrollHeight=t.documentElement.scrollHeight,_.current.containerHeight=l,w.current={scaleValue:y,frameSize:e,containerHeight:t.documentElement.clientHeight},w.current.scrollHeight=OQe(_.current,w.current),w.current.scrollTop=AQe(_.current,w.current),b.current=k(),m?x():b.current.onfinish=x},[k,x,m,g,y,e,t,n,a,l,o,v]),{isZoomedOut:p,scaleContainerWidth:v,contentRef:s,containerRef:d}}var Uc=c(T(),1);function r_e(e,t,o){let r={};for(let s in e)r[s]=e[s];if(e instanceof o.contentDocument.defaultView.MouseEvent){let s=o.getBoundingClientRect();r.clientX+=s.left,r.clientY+=s.top}let n=new t(e.type,r);r.defaultPrevented&&n.preventDefault(),!o.dispatchEvent(n)&&e.preventDefault()}function NQe(e){return(0,Kf.useRefEffect)(()=>{let{defaultView:t}=e;if(!t)return;let{frameElement:o}=t,r=e.documentElement,n=["dragover","mousemove"],i={};for(let s of n)i[s]=a=>{let u=Object.getPrototypeOf(a).constructor.name,d=window[u];r_e(a,d,o)},r.addEventListener(s,i[s]);return()=>{for(let s of n)r.removeEventListener(s,i[s])}})}var Jve=new WeakMap,LQe=globalThis.FinalizationRegistry?new globalThis.FinalizationRegistry(e=>URL.revokeObjectURL(e)):void 0;function DQe(e){let t=Jve.get(e);if(t)return t;let o="";e_e.version.split(".")[0]==="18"&&(o="<body><script>document.currentScript.parentElement.remove()<\/script></body>");let r=`<!doctype html> 97 <html> 98 <head> 99 <meta charset="utf-8"> 100 <base href="$window.location.href}"> 101 <style> 102 html{ 103 height: auto !important; 104 min-height: 100%; 105 } 106 /* Lowest specificity to not override global styles */ 107 :where(body) { 108 margin: 0; 109 /* Default background color in case zoom out mode background 110 colors the html element */ 111 background-color: white; 112 } 113 </style> 114 $e.styles??""} 115 $e.scripts??""} 116 </head> 117 $o} 118 </html>`;return t=URL.createObjectURL(new Blob([r],{type:"text/html"})),Jve.set(e,t),LQe?.register(e,t),t}function VQe({contentRef:e,children:t,tabIndex:o=0,scale:r=1,frameSize:n=0,readonly:i,forwardedRef:s,title:a=(0,t_e.__)("Editor canvas"),...l}){let{resolvedAssets:u,isPreviewMode:d}=(0,aK.useSelect)(A=>{let P=A(B).getSettings();return{resolvedAssets:P.__unstableResolvedAssets,isPreviewMode:P.isPreviewMode}},[]),[f,p]=(0,Iy.useState)(),[m,g]=(0,Iy.useState)([]),[h,b,v]=sK(),y=(0,Kf.useRefEffect)(A=>{let P;function L(V){V.preventDefault()}function H(V){V.target.tagName==="A"&&V.target.getAttribute("href")?.startsWith("#")&&(V.preventDefault(),P.defaultView.location.hash=V.target.getAttribute("href").slice(1))}let{ownerDocument:N}=A;g(Array.from(N.body.classList).filter(V=>V.startsWith("admin-color-")||V.startsWith("post-type-")||V==="wp-embed-responsive"));function M(){let{contentDocument:V}=A,{documentElement:j}=V;P=V,p(V),j.classList.add("block-editor-iframe__html"),V.dir=N.dir;for(let D of Kve())V.getElementById(D.id)||(V.head.appendChild(D.cloneNode(!0)),d||console.warn(`$D.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,D));P.addEventListener("dragover",L,!1),P.addEventListener("drop",L,!1),P.addEventListener("click",H)}return A.addEventListener("load",M),()=>{p(void 0),A.removeEventListener("load",M),P?.removeEventListener("dragover",L),P?.removeEventListener("drop",L),P?.removeEventListener("click",H)}},[]),{contentRef:_,containerRef:w,isZoomedOut:k,scaleContainerWidth:x}=Qve({scale:r,frameSize:parseInt(n),iframeDocument:f}),C=(0,Kf.useDisabled)({isDisabled:!i}),E=(0,Kf.useMergeRefs)([NQe(f),e,b,C,_]),R=(0,Kf.useRefEffect)(A=>A.ownerDocument.defaultView?(E(A),()=>E(null)):()=>{},[E]),S=DQe(u),I=o>=0&&!d,O=(0,Uc.jsxs)(Uc.Fragment,{children:[I&&h,(0,Uc.jsx)("iframe",{...l,style:{...l.style,height:l.style?.height,border:0},ref:(0,Kf.useMergeRefs)([s,y]),tabIndex:o,src:S,title:a,onKeyDown:A=>{if(l.onKeyDown&&l.onKeyDown(A),A.currentTarget.ownerDocument!==A.target.ownerDocument){let{stopPropagation:P}=A.nativeEvent;A.nativeEvent.stopPropagation=()=>{},A.stopPropagation(),A.nativeEvent.stopPropagation=P,r_e(A,window.KeyboardEvent,A.currentTarget)}},children:f&&(0,Iy.createPortal)((0,Uc.jsx)("body",{ref:R,className:Y("block-editor-iframe__body","editor-styles-wrapper",...m),children:(0,Uc.jsx)(o_e.__experimentalStyleProvider,{document:f,children:t})}),f.documentElement)}),I&&v]});return(0,Uc.jsx)("div",{className:"block-editor-iframe__container",ref:w,children:(0,Uc.jsx)("div",{className:Y("block-editor-iframe__scale-container",k&&"is-zoomed-out"),style:{"--wp-block-editor-iframe-zoom-out-scale-container-width":k&&`$x}px`},children:O})})}function FQe(e,t){return(0,aK.useSelect)(r=>r(B).getSettings().__internalIsInitialized,[])?(0,Uc.jsx)(VQe,{...e,forwardedRef:t}):null}var Yk=(0,Iy.forwardRef)(FQe);var eke=c(q(),1),ex=c(F(),1),tke=c(ee(),1);var CD={attribute:/\[\s*(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)\s*(?:(?<operator>\W?=)\s*(?<value>.+?)\s*(\s(?<caseSensitive>[iIsS]))?\s*)?\]/gu,id:/#(?<name>[-\w\P{ASCII}]+)/gu,class:/\.(?<name>[-\w\P{ASCII}]+)/gu,comma:/\s*,\s*/g,combinator:/\s*[\s>+~]\s*/g,"pseudo-element":/::(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>¶*)\))?/gu,"pseudo-class":/:(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>¶*)\))?/gu,universal:/(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?\*/gu,type:/(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)/gu},zQe=new Set(["combinator","comma"]);var jQe=e=>{switch(e){case"pseudo-element":case"pseudo-class":return new RegExp(CD[e].source.replace("(?<argument>\xB6*)","(?<argument>.*)"),"gu");default:return CD[e]}};function HQe(e,t){let o=0,r="";for(;t<e.length;t++){let n=e[t];switch(n){case"(":++o;break;case")":--o;break}if(r+=n,o===0)return r}return r}function WQe(e,t=CD){if(!e)return[];let o=[e];for(let[n,i]of Object.entries(t))for(let s=0;s<o.length;s++){let a=o[s];if(typeof a!="string")continue;i.lastIndex=0;let l=i.exec(a);if(!l)continue;let u=l.index-1,d=[],f=l[0],p=a.slice(0,u+1);p&&d.push(p),d.push({...l.groups,type:n,content:f});let m=a.slice(u+f.length+1);m&&d.push(m),o.splice(s,1,...d)}let r=0;for(let n of o)switch(typeof n){case"string":throw new Error(`Unexpected sequence $n} found at index $r}`);case"object":r+=n.content.length,n.pos=[r-n.content.length,r],zQe.has(n.type)&&(n.content=n.content.trim()||" ");break}return o}var UQe=/(['"])([^\\\n]+?)\1/g,GQe=/\\./g;function lK(e,t=CD){if(e=e.trim(),e==="")return[];let o=[];e=e.replace(GQe,(i,s)=>(o.push({value:i,offset:s}),"\uE000".repeat(i.length))),e=e.replace(UQe,(i,s,a,l)=>(o.push({value:i,offset:l}),`$s}${"\uE001".repeat(a.length)}$s}`));{let i=0,s;for(;(s=e.indexOf("(",i))>-1;){let a=HQe(e,s);o.push({value:a,offset:s}),e=`$e.substring(0,s)}(${"\xB6".repeat(a.length-2)})$e.substring(s+a.length)}`,i=s+a.length}}let r=WQe(e,t),n=new Set;for(let i of o.reverse())for(let s of r){let{offset:a,value:l}=i;if(!(s.pos[0]<=a&&a+l.length<=s.pos[1]))continue;let{content:u}=s,d=a-s.pos[0];s.content=u.slice(0,d)+l+u.slice(d+l.length),s.content!==u&&n.add(s)}for(let i of n){let s=jQe(i.type);if(!s)throw new Error(`Unknown token type: $i.type}`);s.lastIndex=0;let a=s.exec(i.content);if(!a)throw new Error(`Unable to parse content for $i.type}: $i.content}`);Object.assign(i,a.groups)}return r}function*SD(e,t){switch(e.type){case"list":for(let o of e.list)yield*SD(o,e);break;case"complex":yield*SD(e.left,e),yield*SD(e.right,e);break;case"compound":yield*e.list.map(o=>[o,e]);break;default:yield[e,t]}}function n_e(e){let t;return Array.isArray(e)?t=e:t=[...SD(e)].map(([o])=>o),t.map(o=>o.content).join("")}var qwe=c(Rwe(),1),Zwe=c(ED(),1),Xwe=c(Pwe(),1),Qwe=c(Ywe(),1),Kwe=new Map,Jwe=[{type:"type",content:"body"},{type:"type",content:"html"},{type:"pseudo-class",content:":root"},{type:"pseudo-class",content:":where(body)"},{type:"pseudo-class",content:":where(:root)"},{type:"pseudo-class",content:":where(html)"}];function get(e,t){let o=lK(t),r=o.findLastIndex(({content:s,type:a})=>Jwe.some(l=>s===l.content&&a===l.type)),n=-1;for(let s=r+1;s<o.length;s++)if(o[s].type==="combinator"){n=s;break}let i=lK(e);return o.splice(n===-1?o.length:n,0,{type:"combinator",content:" ",pos:[0,0]},...i),n_e(o)}function het({css:e,ignoredSelectors:t=[],baseURL:o},r="",n){if(!r&&!o)return e;try{let i=[...t,...n?.ignoredSelectors??[],r];return new qwe.default([r&&(0,Xwe.default)({prefix:r,transform(s,a,l){return i.some(d=>d instanceof RegExp?a.match(d):a.includes(d))?a:Jwe.some(d=>a.startsWith(d.content))?get(s,a):l}}),o&&(0,Qwe.default)({rootUrl:o})].filter(Boolean)).process(e,{}).css}catch(i){return i instanceof Zwe.default?console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",i.message+` 119 `+i.showSourceCode(!1)):console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",i),null}}var bet=(e,t="",o)=>{let r=Kwe.get(t);return r||(r=new WeakMap,Kwe.set(t,r)),e.map(n=>{let i=r.get(n);return i||(i=het(n,t,o),r.set(n,i)),i})},Jk=bet;var Ig=c(T(),1);am([lm,s_]);function yet(e,t){return(0,ex.useCallback)(o=>{if(!o)return;let{ownerDocument:r}=o,{defaultView:n,body:i}=r,s=t?r.querySelector(t):i,a;if(s)a=n?.getComputedStyle(s,null).getPropertyValue("background-color");else{let u=r.createElement("div");u.classList.add("editor-styles-wrapper"),i.appendChild(u),a=n?.getComputedStyle(u,null).getPropertyValue("background-color"),i.removeChild(u)}let l=Go(a);l.luminance()>.5||l.alpha()===0?i.classList.remove("is-dark-theme"):i.classList.add("is-dark-theme")},[e,t])}function vet({styles:e,scope:t,transformOptions:o}){let r=(0,tke.useSelect)(s=>K(s(B)).getStyleOverrides(),[]),[n,i]=(0,ex.useMemo)(()=>{let s=Object.values(e??[]),a=[...r.filter(([,l])=>l?.__unstableType!=="custom-css"),...r.filter(([,l])=>l?.__unstableType==="custom-css")];for(let[l,u]of a){let d=s.findIndex(({id:p})=>l===p),f={...u,id:l};d===-1?s.push(f):s[d]=f}return[Jk(s.filter(l=>l?.css),t,o),s.filter(l=>l.__unstableType==="svgs").map(l=>l.assets).join("")]},[e,r,t,o]);return(0,Ig.jsxs)(Ig.Fragment,{children:[(0,Ig.jsx)("style",{ref:yet(n,t)}),n.map((s,a)=>(0,Ig.jsx)("style",{children:s},a)),(0,Ig.jsx)(eke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 0 0",width:"0",height:"0",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"},dangerouslySetInnerHTML:{__html:i}})]})}var qf=(0,ex.memo)(vet);var Il=c(T(),1),_et=(0,WD.memo)(tx),HK=2e3,wet=[];function ket({viewportWidth:e,containerWidth:t,minHeight:o,additionalStyles:r=wet}){e||(e=t);let[n,{height:i}]=(0,TT.useResizeObserver)(),{styles:s}=(0,oke.useSelect)(d=>({styles:d(B).getSettings().styles}),[]),a=(0,WD.useMemo)(()=>s&&[...s,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...r],[s,r]),l=t/e,u=i?t/(i*l):0;return(0,Il.jsx)(rke.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale($l})`,aspectRatio:u,maxHeight:i>HK?HK*l:void 0,minHeight:o},children:(0,Il.jsxs)(Yk,{contentRef:(0,TT.useRefEffect)(d=>{let{ownerDocument:{documentElement:f}}=d;f.classList.add("block-editor-block-preview__content-iframe"),f.style.position="absolute",f.style.width="100%",d.style.boxSizing="border-box",d.style.position="absolute",d.style.width="100%"},[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:i,pointerEvents:"none",maxHeight:HK,minHeight:l!==0&&l<1&&o?o/l:o},children:[(0,Il.jsx)(qf,{styles:a}),n,(0,Il.jsx)(_et,{renderAppender:!1})]})})}function nke(e){let[t,{width:o}]=(0,TT.useResizeObserver)();return(0,Il.jsxs)(Il.Fragment,{children:[(0,Il.jsx)("div",{style:{position:"relative",width:"100%",height:0},children:t}),(0,Il.jsx)("div",{className:"block-editor-block-preview__container",children:!!o&&(0,Il.jsx)(ket,{...e,containerWidth:o})})]})}var ox=c(F(),1),lke=c(ske(),1),ake=(0,lke.createQueue)();function cke({children:e,placeholder:t}){let[o,r]=(0,ox.useState)(!1);return(0,ox.useEffect)(()=>{let n={};return ake.add(n,()=>{(0,ox.flushSync)(()=>{r(!0)})}),()=>{ake.cancel(n)}},[]),o?e:t}var My=c(T(),1),xet=[];function Cet({blocks:e,viewportWidth:t=1200,minHeight:o,additionalStyles:r=xet,__experimentalMinHeight:n,__experimentalPadding:i}){n&&(o=n,(0,WK.default)("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),i&&(r=[...r,{css:`body { padding: $i}px; }`}],(0,WK.default)("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));let s=(0,UK.useSelect)(u=>u(B).getSettings(),[]),a=(0,Ay.useMemo)(()=>({...s,isPreviewMode:!0}),[s]),l=(0,Ay.useMemo)(()=>Array.isArray(e)?e:[e],[e]);return!e||e.length===0?null:(0,My.jsx)(Vk,{value:l,settings:a,children:(0,My.jsx)(nke,{viewportWidth:t,minHeight:o,additionalStyles:r})})}var uke=(0,Ay.memo)(Cet);uke.Async=cke;var Ys=uke;function dke({blocks:e,props:t={},layout:o}){let r=(0,UK.useSelect)(u=>u(B).getSettings(),[]),n=(0,Ay.useMemo)(()=>({...r,styles:void 0,isPreviewMode:!0}),[r]),i=(0,UD.useDisabled)(),s=(0,UD.useMergeRefs)([t.ref,i]),a=(0,Ay.useMemo)(()=>Array.isArray(e)?e:[e],[e]),l=(0,My.jsxs)(Vk,{value:a,settings:n,children:[(0,My.jsx)(qf,{}),(0,My.jsx)(RT,{renderAppender:!1,layout:o})]});return{...t,ref:s,className:Y(t.className,"block-editor-block-preview__live-content","components-disabled"),children:e?.length?l:null}}var Pg=c(T(),1);function Eet({item:e}){let{name:t,title:o,icon:r,description:n,initialAttributes:i,example:s}=e,a=(0,rx.isReusableBlock)(e),l=(0,fke.useMemo)(()=>s?(0,rx.getBlockFromExample)(t,{attributes:{...s.attributes,...i},innerBlocks:s.innerBlocks,innerContent:s.innerContent}):(0,rx.createBlock)(t,i),[t,s,i]),u=144,d=280,f=s?.viewportWidth??500,p=d/f,m=p!==0&&p<1&&u?u/p:u;return(0,Pg.jsxs)("div",{className:"block-editor-inserter__preview-container",children:[(0,Pg.jsx)("div",{className:"block-editor-inserter__preview",children:a||s?(0,Pg.jsx)("div",{className:"block-editor-inserter__preview-content",children:(0,Pg.jsx)(Ys,{blocks:l,viewportWidth:f,minHeight:u,additionalStyles:[{css:` 120 body { 121 padding: 24px; 122 min-height:$Math.round(m)}px; 123 display:flex; 124 align-items:center; 125 } 126 .is-root-container { width: 100%; } 127 `}]})}):(0,Pg.jsx)("div",{className:"block-editor-inserter__preview-content-missing",children:(0,pke.__)("No preview available.")})}),!a&&(0,Pg.jsx)(aT,{title:o,icon:r,description:n})]})}var mke=Eet;var cx=c(Z(),1),Qf=c(F(),1),XK=c(ue(),1);var Rke=c(ce(),1),Bke=c(ue(),1);var lx=c(F(),1),Og=c(ce(),1),Eke=c(q(),1),BT=c(wo(),1);var kke=c(q(),1),xke=c(F(),1);var nx=c(F(),1),gke=c(Z(),1),hke=c(Yo(),1),bke=c(T(),1);function Tet(e,t){let[o,r]=(0,nx.useState)(!1);return(0,nx.useEffect)(()=>{o&&(0,hke.speak)((0,gke.__)("Use left and right arrow keys to move through blocks"))},[o]),(0,bke.jsx)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{r(!0)},onBlur:n=>{!n.currentTarget.contains(n.relatedTarget)&&r(!1)},...e})}var GK=(0,nx.forwardRef)(Tet);var yke=c(F(),1),vke=c(q(),1),_ke=c(T(),1);function Ret(e,t){return(0,_ke.jsx)(vke.Composite.Group,{role:"presentation",ref:t,...e})}var $K=(0,yke.forwardRef)(Ret);var $D=c(q(),1),wke=c(F(),1),GD=c(T(),1);function Bet({isFirst:e,as:t,children:o,...r},n){return(0,GD.jsx)($D.Composite.Item,{ref:n,role:"option",accessibleWhenDisabled:!0,...r,render:i=>{let s={...i,tabIndex:e?0:i.tabIndex};return t?(0,GD.jsx)(t,{...s,children:o}):typeof o=="function"?o(s):(0,GD.jsx)($D.Button,{__next40pxDefaultSize:!0,...s,children:o})}})}var YK=(0,wke.forwardRef)(Bet);var KK=c(T(),1);function Iet({key:e,children:t}){return(0,KK.jsx)(xke.Fragment,{children:t},e)}function Pet({children:e}){return(0,KK.jsx)(kke.Composite,{focusShift:!0,focusWrap:"horizontal",render:Iet,children:e})}var YD=Pet;var Ske=c(q(),1),qD=c(ce(),1),ZD=c(ee(),1),Cke=c(F(),1);var sx=c(Z(),1),ix=c(q(),1);var Yc=c(T(),1);function KD({count:e,icon:t,isPattern:o,fadeWhenDisabled:r}){let n=o&&(0,sx.__)("Pattern");return(0,Yc.jsx)("div",{className:"block-editor-block-draggable-chip-wrapper",children:(0,Yc.jsx)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip",children:(0,Yc.jsxs)(ix.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content",children:[(0,Yc.jsx)(ix.FlexItem,{children:t?(0,Yc.jsx)(Lt,{icon:t}):n||(0,sx.sprintf)((0,sx._n)("%d block","%d blocks",e),e)}),(0,Yc.jsx)(ix.FlexItem,{children:(0,Yc.jsx)(Lt,{icon:rC})}),r&&(0,Yc.jsx)(ix.FlexItem,{className:"block-editor-block-draggable-chip__disabled",children:(0,Yc.jsx)("span",{className:"block-editor-block-draggable-chip__disabled-icon"})})]})})})}var qK=c(T(),1),Oet=({isEnabled:e,blocks:t,icon:o,children:r,pattern:n})=>{let i=t.length===1?t[0].name:void 0,s=(0,ZD.useSelect)(f=>i&&f(qD.store).getBlockType(i)?.icon,[i]),{startDragging:a,stopDragging:l}=K((0,ZD.useDispatch)(B)),u=(0,Cke.useMemo)(()=>n?.type===nr.user&&n?.syncStatus!=="unsynced"?[(0,qD.createBlock)("core/block",{ref:n.id})]:void 0,[n?.type,n?.syncStatus,n?.id]);if(!e)return r({draggable:!1,onDragStart:void 0,onDragEnd:void 0});let d=u??t;return(0,qK.jsx)(Ske.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:{type:"inserter",blocks:d},onDragStart:f=>{a();let p=new Set;for(let m of d){let g=`wp-block:$m.name}`;p.has(g)||(f.dataTransfer.items.add("",g),p.add(g))}},onDragEnd:()=>{l()},__experimentalDragComponent:(0,qK.jsx)(KD,{count:t.length,icon:o||!n&&s,isPattern:!!n}),children:({onDraggableStart:f,onDraggableEnd:p})=>r({draggable:!0,onDragStart:f,onDragEnd:p})})},ax=Oet;var Zf=c(T(),1);function Aet({className:e,isFirst:t,item:o,onSelect:r,onHover:n,isDraggable:i,...s}){let a=(0,lx.useRef)(!1),l=o.icon?{backgroundColor:o.icon.background,color:o.icon.foreground}:{},u=(0,lx.useMemo)(()=>[(0,Og.createBlock)(o.name,o.initialAttributes,(0,Og.createBlocksFromInnerBlocksTemplate)(o.innerBlocks),o.innerContent)],[o.name,o.initialAttributes,o.innerBlocks,o.innerContent]),d=(0,Og.isReusableBlock)(o)&&o.syncStatus!=="unsynced"||(0,Og.isTemplatePart)(o);return(0,Zf.jsx)(ax,{isEnabled:i&&!o.isDisabled,blocks:u,icon:o.icon,children:({draggable:f,onDragStart:p,onDragEnd:m})=>(0,Zf.jsx)("div",{className:Y("block-editor-block-types-list__list-item",{"is-synced":d}),draggable:f,onDragStart:g=>{a.current=!0,p&&(n(null),p(g))},onDragEnd:g=>{a.current=!1,m&&m(g)},children:(0,Zf.jsxs)(YK,{isFirst:t,className:Y("block-editor-block-types-list__item",e),disabled:o.isDisabled,onClick:g=>{g.preventDefault(),r(o,(0,BT.isAppleOS)()?g.metaKey:g.ctrlKey),n(null)},onKeyDown:g=>{let{keyCode:h}=g;h===BT.ENTER&&(g.preventDefault(),r(o,(0,BT.isAppleOS)()?g.metaKey:g.ctrlKey),n(null))},onMouseEnter:()=>{a.current||n(o)},onMouseLeave:()=>n(null),...s,children:[(0,Zf.jsx)("span",{className:"block-editor-block-types-list__item-icon",style:l,children:(0,Zf.jsx)(Lt,{icon:o.icon,showColors:!0})}),(0,Zf.jsx)("span",{className:"block-editor-block-types-list__item-title",children:(0,Zf.jsx)(Eke.__experimentalTruncate,{numberOfLines:3,children:o.title})})]})})})}var Tke=(0,lx.memo)(Aet);var IT=c(T(),1);function Met(e,t){let o=[];for(let r=0,n=e.length;r<n;r+=t)o.push(e.slice(r,r+t));return o}function Ike({items:e=[],onSelect:t,onHover:o=()=>{},children:r,label:n,isDraggable:i=!0}){let s="block-editor-block-types-list",a=(0,Bke.useInstanceId)(Ike,s);return(0,IT.jsxs)(GK,{className:s,"aria-label":n,children:[Met(e,3).map((l,u)=>(0,IT.jsx)($K,{children:l.map((d,f)=>(0,IT.jsx)(Tke,{item:d,className:(0,Rke.getBlockMenuDefaultClassName)(d.id),onSelect:t,onHover:o,isDraggable:i&&!d.isDisabled,isFirst:u===0&&f===0,rowId:`$a}-$u}`},d.id))},u)),r]})}var Ny=Ike;var Pke=c(q(),1),Xf=c(T(),1);function Net({title:e,icon:t,children:o}){return(0,Xf.jsxs)(Xf.Fragment,{children:[(0,Xf.jsxs)("div",{className:"block-editor-inserter__panel-header",children:[(0,Xf.jsx)("h2",{className:"block-editor-inserter__panel-title",children:e}),(0,Xf.jsx)(Pke.Icon,{icon:t})]}),(0,Xf.jsx)("div",{className:"block-editor-inserter__panel-content",children:o})]})}var Ag=Net;var Oke=c(Z(),1),ZK=c(T(),1);function Let({children:e=(0,Oke.__)("No results found.")}){return(0,ZK.jsx)("div",{className:"block-editor-inserter__no-results",children:(0,ZK.jsx)("p",{children:e})})}var Kc=Let;var Mn=c(T(),1),Det=e=>e.name.split("/")[0],Vet=6,Fet=[];function Ake({items:e,collections:t,categories:o,onSelectItem:r,onHover:n,showMostUsedBlocks:i,className:s}){let a=(0,Qf.useMemo)(()=>ju(e,"frecency","desc").slice(0,Vet),[e]),l=(0,Qf.useMemo)(()=>e.filter(g=>!g.category),[e]),u=(0,Qf.useMemo)(()=>{let g={...t};return Object.keys(t).forEach(h=>{g[h]=e.filter(b=>Det(b)===h),g[h].length===0&&delete g[h]}),g},[e,t]);(0,Qf.useEffect)(()=>()=>n(null),[]);let d=(0,XK.useAsyncList)(o),f=o.length===d.length,p=(0,Qf.useMemo)(()=>Object.entries(t),[t]),m=(0,XK.useAsyncList)(f?p:Fet);return(0,Mn.jsxs)("div",{className:s,children:[i&&e.length>3&&!!a.length&&(0,Mn.jsx)(Ag,{title:(0,cx._x)("Most used","blocks"),children:(0,Mn.jsx)(Ny,{items:a,onSelect:r,onHover:n,label:(0,cx._x)("Most used","blocks")})}),d.map(g=>{let h=e.filter(b=>b.category===g.slug);return!h||!h.length?null:(0,Mn.jsx)(Ag,{title:g.title,icon:g.icon,children:(0,Mn.jsx)(Ny,{items:h,onSelect:r,onHover:n,label:g.title})},g.slug)}),f&&l.length>0&&(0,Mn.jsx)(Ag,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,cx.__)("Uncategorized"),children:(0,Mn.jsx)(Ny,{items:l,onSelect:r,onHover:n,label:(0,cx.__)("Uncategorized")})}),m.map(([g,h])=>{let b=u[g];return!b||!b.length?null:(0,Mn.jsx)(Ag,{title:h.title,icon:h.icon,children:(0,Mn.jsx)(Ny,{items:b,onSelect:r,onHover:n,label:h.title})},g)})]})}function zet({rootClientId:e,onInsert:t,onHover:o,showMostUsedBlocks:r},n){let[i,s,a,l]=Om(e,t);if(!i.length)return(0,Mn.jsx)(Kc,{});let u=[],d=[];for(let f of i)f.category!=="reusable"&&(f.isSearchOnly||(f.isAllowedInCurrentRoot?u.push(f):d.push(f)));return(0,Mn.jsx)(YD,{children:(0,Mn.jsxs)("div",{ref:n,children:[!!u.length&&(0,Mn.jsx)(Mn.Fragment,{children:(0,Mn.jsx)(Ake,{items:u,categories:s,collections:a,onSelectItem:l,onHover:o,showMostUsedBlocks:r,className:"block-editor-inserter__insertable-blocks-at-selection"})}),(0,Mn.jsx)(Ake,{items:d,categories:s,collections:a,onSelectItem:l,onHover:o,showMostUsedBlocks:r,className:"block-editor-inserter__all-blocks"})]})})}var Mke=(0,Qf.forwardRef)(zet);var txe=c(F(),1),oxe=c(ue(),1),rxe=c(q(),1),nxe=c(Z(),1);var qke=c(q(),1);var rq=c(F(),1),Zke=c(Z(),1);var Nke=c(q(),1);var QK=c(Z(),1),ux=c(T(),1);function jet({patternCategories:e,searchValue:t,setSearchValue:o}){return(0,ux.jsxs)($e,{direction:"column",gap:"lg",className:"block-editor-block-patterns-explorer__sidebar",children:[(0,ux.jsx)(Nke.SearchControl,{onChange:o,value:t,label:(0,QK.__)("Search"),placeholder:(0,QK.__)("Search")}),(0,ux.jsx)(xg.List,{children:e.map(({name:r,label:n})=>(0,ux.jsx)(xg.Tab,{value:r,children:n},r))})]})}var Lke=jet;var Jf=c(F(),1),gx=c(Z(),1),Gke=c(ue(),1);var $ke=c(Yo(),1);var Dke=c(ce(),1),vd=c(F(),1),PT=c(q(),1);var Vke=c(ue(),1),Fke=c(Z(),1);var Ks=c(q(),1),Pl=c(Z(),1),Ui=c(T(),1);function dx({currentPage:e,numPages:t,changePage:o,totalItems:r}){return(0,Ui.jsxs)(Ks.__experimentalVStack,{className:"block-editor-patterns__grid-pagination-wrapper",children:[(0,Ui.jsx)(Ks.__experimentalText,{variant:"muted",children:(0,Pl.sprintf)((0,Pl._n)("%s item","%s items",r),r)}),t>1&&(0,Ui.jsxs)(Ks.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",className:"block-editor-patterns__grid-pagination",children:[(0,Ui.jsxs)(Ks.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-previous",children:[(0,Ui.jsx)(Ks.Button,{variant:"tertiary",onClick:()=>o(1),disabled:e===1,"aria-label":(0,Pl.__)("First page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,Ui.jsx)("span",{children:"\xAB"})}),(0,Ui.jsx)(Ks.Button,{variant:"tertiary",onClick:()=>o(e-1),disabled:e===1,"aria-label":(0,Pl.__)("Previous page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,Ui.jsx)("span",{children:"\u2039"})})]}),(0,Ui.jsx)(Ks.__experimentalText,{variant:"muted",children:(0,Pl.sprintf)((0,Pl._x)("%1$s of %2$s","paging"),e,t)}),(0,Ui.jsxs)(Ks.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-next",children:[(0,Ui.jsx)(Ks.Button,{variant:"tertiary",onClick:()=>o(e+1),disabled:e===t,"aria-label":(0,Pl.__)("Next page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,Ui.jsx)("span",{children:"\u203A"})}),(0,Ui.jsx)(Ks.Button,{variant:"tertiary",onClick:()=>o(t),disabled:e===t,"aria-label":(0,Pl.__)("Last page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,Ui.jsx)("span",{children:"\xBB"})})]})]})]})}var jo=c(T(),1),Het=({showTooltip:e,title:t,children:o})=>e?(0,jo.jsxs)(ao.Root,{children:[(0,jo.jsx)(ao.Trigger,{render:o}),(0,jo.jsx)(ao.Popup,{children:t})]}):(0,jo.jsx)(jo.Fragment,{children:o});function zke({id:e,isDraggable:t,pattern:o,onClick:r,onHover:n,showTitlesAsTooltip:i,category:s,isSelected:a}){let[l,u]=(0,vd.useState)(!1),{blocks:d,viewportWidth:f}=o,m=`block-editor-block-patterns-list__item-description-${(0,Vke.useInstanceId)(zke)}`,g=o.type===nr.user,h=(0,vd.useMemo)(()=>!s||!t?d:(d??[]).map(b=>{let v=(0,Dke.cloneBlock)(b);return v.attributes.metadata?.categories?.includes(s)&&(v.attributes.metadata.categories=[s]),v}),[d,t,s]);return(0,jo.jsx)(ax,{isEnabled:t,blocks:h,pattern:o,children:({draggable:b,onDragStart:v,onDragEnd:y})=>(0,jo.jsx)("div",{className:"block-editor-block-patterns-list__list-item",draggable:b,onDragStart:_=>{u(!0),v&&(n?.(null),v(_))},onDragEnd:_=>{u(!1),y&&y(_)},children:(0,jo.jsx)(Het,{showTooltip:i&&!g,title:o.title,children:(0,jo.jsxs)(PT.Composite.Item,{render:(0,jo.jsx)("div",{role:"option","aria-label":o.title,"aria-describedby":o.description?m:void 0,className:Y("block-editor-block-patterns-list__item",{"block-editor-block-patterns-list__list-item-synced":o.type===nr.user&&!o.syncStatus,"is-selected":a})}),id:e,onClick:()=>{r(o,d),n?.(null)},onMouseEnter:()=>{l||n?.(o)},onMouseLeave:()=>n?.(null),children:[(0,jo.jsx)(Ys.Async,{placeholder:(0,jo.jsx)(Wet,{}),children:(0,jo.jsx)(Ys,{blocks:d,viewportWidth:f})}),(!i||g)&&(0,jo.jsxs)(PT.__experimentalHStack,{className:"block-editor-patterns__pattern-details",spacing:2,children:[g&&!o.syncStatus&&(0,jo.jsx)("div",{className:"block-editor-patterns__pattern-icon-wrapper",children:(0,jo.jsx)(xt,{className:"block-editor-patterns__pattern-icon",icon:tl})}),(0,jo.jsx)(ir,{render:(0,jo.jsx)("div",{}),className:"block-editor-block-patterns-list__item-title",variant:"body-sm",children:o.title})]}),!!o.description&&(0,jo.jsx)(ht,{id:m,children:o.description})]})})})})}function Wet(){return(0,jo.jsx)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}function Uet({isDraggable:e,blockPatterns:t,onHover:o,onClickPattern:r,orientation:n,category:i,label:s=(0,Fke.__)("Patterns"),showTitlesAsTooltip:a,pagingProps:l},u){let[d,f]=(0,vd.useState)(void 0),[p,m]=(0,vd.useState)(null);(0,vd.useEffect)(()=>{let h=t[0]?.name;f(h)},[t]);let g=(h,b)=>{m(h.name),r(h,b)};return(0,jo.jsxs)(PT.Composite,{orientation:n,activeId:d,setActiveId:f,role:"listbox",className:"block-editor-block-patterns-list","aria-label":s,ref:u,children:[t.map(h=>(0,jo.jsx)(zke,{id:h.name,pattern:h,onClick:g,onHover:o,isDraggable:e,showTitlesAsTooltip:a,category:i,isSelected:!!p&&p===h.name},h.name)),l&&(0,jo.jsx)(dx,{...l})]})}var _d=(0,vd.forwardRef)(Uet);var Ly=c(ee(),1),Hke=c(ce(),1),XD=c(Z(),1),Wke=c(Yo(),1),JK=c(F(),1);function jke({destinationRootClientId:e,destinationIndex:t,rootClientId:o,registry:r}){if(o===e)return t;let n=["",...r.select(B).getBlockParents(e),e],i=n.indexOf(o);return i!==-1?r.select(B).getBlockIndex(n[i+1])+1:r.select(B).getBlockOrder(o).length}function Get({rootClientId:e="",insertionIndex:t,clientId:o,isAppender:r,onSelect:n,shouldFocusBlock:i=!0,selectBlockOnInsert:s=!0}){let a=(0,Ly.useRegistry)(),{getSelectedBlock:l,getClosestAllowedInsertionPoint:u,getBlockInsertionPoint:d}=K((0,Ly.useSelect)(B)),{destinationRootClientId:f,destinationIndex:p}=(0,Ly.useSelect)(w=>{let{getSelectedBlockClientId:k,getBlockRootClientId:x,getBlockIndex:C,getBlockOrder:E,getInsertionPoint:R}=K(w(B)),S=k(),I=e,O,A=R();return t!==void 0?O=t:A&&A.hasOwnProperty("index")?(I=A?.rootClientId?A.rootClientId:e,O=A.index):o?O=C(o):!r&&S?(I=x(S),O=C(S)+1):O=E(I).length,{destinationRootClientId:I,destinationIndex:O}},[e,t,o,r]),{replaceBlocks:m,insertBlocks:g,showInsertionPoint:h,hideInsertionPoint:b,setLastFocus:v}=K((0,Ly.useDispatch)(B)),y=(0,JK.useCallback)((w,k,x=!1,C)=>{(x||i||s)&&v(null);let E=l();!r&&E&&(0,Hke.isUnmodifiedDefaultBlock)(E,"content")?m(E.clientId,w,null,i||x?0:null,k):g(w,r||C===void 0?p:jke({destinationRootClientId:f,destinationIndex:p,rootClientId:C,registry:a}),r||C===void 0?f:C,s,i||x?0:null,k);let R=Array.isArray(w)?w.length:1,S=(0,XD.sprintf)((0,XD._n)("%d block added.","%d blocks added.",R),R);(0,Wke.speak)(S),n&&n(w)},[r,l,m,g,f,p,n,i,s,v,a]),_=(0,JK.useCallback)(w=>{if(w){let k=u(w.name,f);k!==null&&h(k,jke({destinationRootClientId:f,destinationIndex:p,rootClientId:k,registry:a}))}else d()?.__unstableWithInserter||b()},[u,d,h,b,f,p,a]);return[f,y,_]}var Mg=Get;var fx=c(F(),1),QD=c(ce(),1),px=c(ee(),1),JD=c(Z(),1),Uke=c(Ns(),1);var $et=(e,t,o,r)=>{let n=(0,fx.useMemo)(()=>({[Em]:!!r}),[r]),i=(0,px.useSelect)(g=>{let{getSettings:h}=K(g(B));return h()[wI]??!1},[]),{patternCategories:s,patterns:a,userPatternCategories:l}=(0,px.useSelect)(g=>{let{getSettings:h,__experimentalGetAllowedPatterns:b}=K(g(B)),v=h(),y=v[pf];return{patterns:b(t,n),userPatternCategories:y?y(g):v.__experimentalUserPatternCategories,patternCategories:v.__experimentalBlockPatternCategories}},[t,n]),u=(0,fx.useMemo)(()=>a.filter(g=>!(g.categories?.includes("navigation")&&!i)),[a,i]),{getClosestAllowedInsertionPointForPattern:d}=K((0,px.useSelect)(B)),f=(0,fx.useMemo)(()=>{let g=[...s];return l?.forEach(h=>{g.find(b=>b.name===h.name)||g.push(h)}),g},[s,l]),{createSuccessNotice:p}=(0,px.useDispatch)(Uke.store),m=(0,fx.useCallback)((g,h)=>{let b=r?t:d(g,t);if(b===null)return;let v=g.type===nr.user&&g.syncStatus!=="unsynced"?[(0,QD.createBlock)("core/block",{ref:g.id})]:h;e((v??[]).map(y=>{let _=(0,QD.cloneBlock)(y);return _.attributes.metadata?.categories?.includes(o)&&(_.attributes.metadata.categories=[o]),_}),g.name,!1,b),p((0,JD.sprintf)((0,JD.__)('Pattern "%s" inserted.'),g.title),{type:"snackbar",id:"inserter-notice"})},[p,e,o,t,d,r]);return[u,f,m]},Ng=$et;var mx=c(F(),1),eq=c(ue(),1),tq=c(Dt(),1),e5=20;function t5(e,t,o,r=""){let[n,i]=(0,mx.useState)(1),s=(0,eq.usePrevious)(t),a=(0,eq.usePrevious)(r);(s!==t||a!==r)&&n!==1&&i(1);let l=e.length,u=n-1,d=(0,mx.useMemo)(()=>e.slice(u*e5,u*e5+e5),[u,e]),f=Math.ceil(e.length/e5),p=m=>{(0,tq.getScrollContainer)(o?.current)?.scrollTo(0,0),i(m)};return(0,mx.useEffect)(function(){(0,tq.getScrollContainer)(o?.current)?.scrollTo(0,0)},[t,o]),{totalItems:l,categoryPatterns:d,numPages:f,changePage:p,currentPage:n}}var wd=c(T(),1);function Yet({searchValue:e,selectedCategory:t,patternCategories:o,rootClientId:r,onModalClose:n}){let i=(0,Jf.useRef)(),s=(0,Gke.useDebounce)($ke.speak,500),[a,l]=Mg({rootClientId:r,shouldFocusBlock:!0}),[u,,d]=Ng(l,a,t),f=(0,Jf.useMemo)(()=>o.map(v=>v.name),[o]),p=(0,Jf.useMemo)(()=>{let v=u.filter(y=>{if(t===Tb.name||t===wf.name&&y.type===nr.user||t===U_.name&&y.blockTypes?.includes("core/post-content"))return!0;if(t==="uncategorized"){let _=y.categories?.some(w=>f.includes(w))??!1;return!y.categories?.length||!_}return y.categories?.includes(t)});return e?v1(v,e):v},[e,u,t,f]);(0,Jf.useEffect)(()=>{if(!e)return;let v=p.length,y=(0,gx.sprintf)((0,gx._n)("%d result found.","%d results found.",v),v);s(y)},[e,s,p.length]);let m=t5(p,t,i),[g,h]=(0,Jf.useState)(e);e!==g&&(h(e),m.changePage(1));let b=!!p?.length;return(0,wd.jsx)("div",{className:"block-editor-block-patterns-explorer__list",ref:i,children:b?(0,wd.jsxs)(wd.Fragment,{children:[(0,wd.jsx)(_d,{blockPatterns:m.categoryPatterns,onClickPattern:(v,y)=>{d(v,y),n()},isDraggable:!1}),(0,wd.jsx)(dx,{...m})]}):(0,wd.jsx)(ir,{render:(0,wd.jsx)("p",{}),className:"block-editor-block-patterns-explorer__no-results",children:(0,gx.__)("No results found.")})})}var Yke=Yet;var oq=c(F(),1),hx=c(Z(),1),Kke=c(Yo(),1);function Ket(e,t){return!e.categories||!e.categories.length?!1:e.categories.some(o=>t.some(r=>r.name===o))}function bx(e,t="all"){let[o,r]=Ng(void 0,e),n=(0,oq.useMemo)(()=>t==="all"?o:o.filter(s=>!v2(s,t)),[t,o]);return(0,oq.useMemo)(()=>{let s=r.filter(a=>n.some(l=>l.categories?.includes(a.name))).sort((a,l)=>a.label.localeCompare(l.label));return n.some(a=>!Ket(a,r))&&!s.find(a=>a.name==="uncategorized")&&s.push({name:"uncategorized",label:(0,hx._x)("Uncategorized")}),n.some(a=>a.blockTypes?.includes("core/post-content"))&&s.unshift(U_),n.some(a=>a.type===nr.user)&&s.unshift(wf),n.length>0&&s.unshift({name:Tb.name,label:Tb.label}),(0,Kke.speak)((0,hx.sprintf)((0,hx._n)("%d category button displayed.","%d category buttons displayed.",s.length),s.length)),s},[r,n])}var Lg=c(T(),1);function qet({initialCategory:e,rootClientId:t,onModalClose:o}){let[r,n]=(0,rq.useState)(""),[i,s]=(0,rq.useState)(e?.name),a=bx(t);return(0,Lg.jsxs)(xg.Root,{className:"block-editor-block-patterns-explorer",orientation:"vertical",value:i,onValueChange:s,children:[(0,Lg.jsx)(Lke,{patternCategories:a,searchValue:r,setSearchValue:n}),a.map(({name:l})=>(0,Lg.jsx)(xg.Panel,{value:l,tabIndex:-1,className:"block-editor-block-patterns-explorer__panel",children:(0,Lg.jsx)(Yke,{searchValue:r,selectedCategory:l,patternCategories:a,rootClientId:t,onModalClose:o})},l))]})}function Zet({onModalClose:e,...t}){return(0,Lg.jsx)(qke.Modal,{title:(0,Zke.__)("Patterns"),onRequestClose:e,isFullScreen:!0,children:(0,Lg.jsx)(qet,{onModalClose:e,...t})})}var Xke=Zet;var yx=c(Z(),1),sr=c(q(),1);var qn=c(T(),1);function Xet({title:e}){return(0,qn.jsx)(sr.__experimentalVStack,{spacing:0,children:(0,qn.jsx)(sr.__experimentalView,{children:(0,qn.jsx)(sr.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3,children:(0,qn.jsxs)(sr.__experimentalHStack,{spacing:2,children:[(0,qn.jsx)(sr.Navigator.BackButton,{style:{minWidth:24,padding:0},icon:(0,yx.isRTL)()?br:li,size:"small",label:(0,yx.__)("Back")}),(0,qn.jsx)(sr.__experimentalSpacer,{children:(0,qn.jsx)(sr.__experimentalHeading,{level:5,children:e})})]})})})})}function o5({categories:e,children:t,screenClassName:o}){return(0,qn.jsxs)(sr.Navigator,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation",children:[(0,qn.jsx)(sr.Navigator.Screen,{path:"/",children:(0,qn.jsx)(sr.__experimentalItemGroup,{children:e.map(r=>(0,qn.jsx)(sr.Navigator.Button,{path:`/category/$r.name}`,as:sr.__experimentalItem,isAction:!0,children:(0,qn.jsxs)(sr.__experimentalHStack,{children:[(0,qn.jsx)(sr.FlexBlock,{children:r.label}),(0,qn.jsx)(xt,{icon:(0,yx.isRTL)()?li:br})]})},r.name))})}),e.map(r=>(0,qn.jsxs)(sr.Navigator.Screen,{className:o,path:`/category/$r.name}`,children:[(0,qn.jsx)(Xet,{title:(0,yx.__)("Back")}),t(r)]},r.name))]})}var Ol=c(F(),1),nq=c(Z(),1),qc=c(q(),1);var Zs=c(q(),1),qs=c(Z(),1);var r5=c(F(),1);var vi=c(T(),1),Qke=e=>e!=="all"&&e!=="user",Qet=e=>e.name===wf.name,Jet=[{value:"all",label:(0,qs._x)("All","patterns")},{value:nr.directory,label:(0,qs.__)("Pattern Directory")},{value:nr.theme,label:(0,qs.__)("Theme & Plugins")},{value:nr.user,label:(0,qs.__)("User")}];function Jke({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:o,patternSourceFilter:r,scrollContainerRef:n,category:i}){let s=i.name===wf.name?nr.user:r,a=Qke(s),l=Qet(i),u=(0,r5.useMemo)(()=>[{value:"all",label:(0,qs._x)("All","patterns")},{value:a1.full,label:(0,qs._x)("Synced","patterns"),disabled:a},{value:a1.unsynced,label:(0,qs._x)("Not synced","patterns"),disabled:a}],[a]);function d(f){t(f),Qke(f)&&e("all")}return(0,vi.jsx)(vi.Fragment,{children:(0,vi.jsx)(Zs.DropdownMenu,{popoverProps:{placement:"right-end"},label:(0,qs.__)("Filter patterns"),toggleProps:{size:"compact"},icon:(0,vi.jsx)(xt,{icon:(0,vi.jsx)(Zs.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,vi.jsx)(Zs.Path,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"currentColor"})})}),children:()=>(0,vi.jsxs)(vi.Fragment,{children:[!l&&(0,vi.jsx)(Zs.MenuGroup,{label:(0,qs.__)("Source"),children:(0,vi.jsx)(Zs.MenuItemsChoice,{choices:Jet,onSelect:f=>{d(f),n.current?.scrollTo(0,0)},value:s})}),(0,vi.jsx)(Zs.MenuGroup,{label:(0,qs.__)("Type"),children:(0,vi.jsx)(Zs.MenuItemsChoice,{choices:u,onSelect:f=>{e(f),n.current?.scrollTo(0,0)},value:o})}),(0,vi.jsx)("div",{className:"block-editor-inserter__patterns-filter-help",children:(0,r5.createInterpolateElement)((0,qs.__)("Patterns are available from the <Link>WordPress.org Pattern Directory</Link>, bundled in the active theme, or created by users on this site. Only patterns created on this site can be synced."),{Link:(0,vi.jsx)(Zs.ExternalLink,{href:(0,qs.__)("https://wordpress.org/patterns/")})})})]})})})}var ps=c(T(),1),ett=()=>{};function n5({rootClientId:e,onInsert:t,onHover:o=ett,category:r,showTitlesAsTooltip:n}){let[i,,s]=Ng(t,e,r?.name),[a,l]=(0,Ol.useState)("all"),[u,d]=(0,Ol.useState)("all"),f=bx(e,u),p=(0,Ol.useRef)(),m=(0,Ol.useMemo)(()=>i.filter(y=>v2(y,u,a)?!1:r.name===Tb.name||r.name===wf.name&&y.type===nr.user||r.name===U_.name&&y.blockTypes?.includes("core/post-content")?!0:r.name==="uncategorized"?y.categories?!y.categories.some(_=>f.some(w=>w.name===_)):!0:y.categories?.includes(r.name)),[i,f,r.name,u,a]),g=t5(m,r,p),{changePage:h}=g;(0,Ol.useEffect)(()=>()=>o(null),[]);let b=(0,Ol.useCallback)(y=>{l(y),h(1)},[l,h]),v=(0,Ol.useCallback)(y=>{d(y),h(1)},[d,h]);return(0,ps.jsxs)(ps.Fragment,{children:[(0,ps.jsxs)(qc.__experimentalVStack,{spacing:2,className:"block-editor-inserter__patterns-category-panel-header",children:[(0,ps.jsxs)(qc.__experimentalHStack,{children:[(0,ps.jsx)(qc.FlexBlock,{children:(0,ps.jsx)(qc.__experimentalHeading,{className:"block-editor-inserter__patterns-category-panel-title",size:13,level:4,as:"div",children:r.label})}),(0,ps.jsx)(Jke,{patternSyncFilter:a,patternSourceFilter:u,setPatternSyncFilter:b,setPatternSourceFilter:v,scrollContainerRef:p,category:r})]}),!m.length&&(0,ps.jsx)(qc.__experimentalText,{variant:"muted",className:"block-editor-inserter__patterns-category-no-results",children:(0,nq.__)("No results found")})]}),m.length>0&&(0,ps.jsxs)(ps.Fragment,{children:[(0,ps.jsx)(qc.__experimentalText,{size:"12",as:"p",className:"block-editor-inserter__help-text",children:(0,nq.__)("Drag and drop patterns into the canvas.")}),(0,ps.jsx)(_d,{ref:p,blockPatterns:g.categoryPatterns,onClickPattern:s,onHover:o,label:r.label,orientation:"vertical",category:r.name,isDraggable:!0,showTitlesAsTooltip:n,patternFilter:u,pagingProps:g})]})]})}var s5=c(ue(),1),a5=c(q(),1),exe=c(F(),1);var Dy=c(T(),1),{Tabs:i5}=K(a5.privateApis);function ttt({categories:e,selectedCategory:t,onSelectCategory:o,children:r}){let s={type:"tween",duration:(0,s5.useReducedMotion)()?0:.25,ease:[.6,0,.4,1]},a=(0,s5.usePrevious)(t),l=t?t.name:null,[u,d]=(0,exe.useState)(),f=e?.[0]?.name;return l===null&&!u&&f&&d(f),(0,Dy.jsxs)(i5,{selectOnMove:!1,selectedTabId:l,orientation:"vertical",onSelect:p=>{o(e.find(m=>m.name===p))},activeTabId:u,onActiveTabIdChange:d,children:[(0,Dy.jsx)(i5.TabList,{className:"block-editor-inserter__category-tablist",children:e.map(p=>(0,Dy.jsx)(i5.Tab,{tabId:p.name,"aria-current":p===t?"true":void 0,children:p.label},p.name))}),e.map(p=>(0,Dy.jsx)(i5.TabPanel,{tabId:p.name,focusable:!1,children:(0,Dy.jsx)(a5.__unstableMotion.div,{className:"block-editor-inserter__category-panel",initial:a?"open":"closed",animate:"open",variants:{open:{transform:"translateX( 0 )",transitionEnd:{zIndex:"1"}},closed:{transform:"translateX( -100% )",zIndex:"-1"}},transition:s,children:r})},p.name))]})}var l5=ttt;var Ia=c(T(),1);function ott({onSelectCategory:e,selectedCategory:t,onInsert:o,rootClientId:r,children:n}){let[i,s]=(0,txe.useState)(!1),a=bx(r),l=(0,oxe.useViewportMatch)("medium","<");return a.length?(0,Ia.jsxs)(Ia.Fragment,{children:[!l&&(0,Ia.jsxs)("div",{className:"block-editor-inserter__block-patterns-tabs-container",children:[(0,Ia.jsx)(l5,{categories:a,selectedCategory:t,onSelectCategory:e,children:n}),(0,Ia.jsx)(rxe.Button,{__next40pxDefaultSize:!0,className:"block-editor-inserter__patterns-explore-button",onClick:()=>s(!0),variant:"secondary",children:(0,nxe.__)("Explore all patterns")})]}),l&&(0,Ia.jsx)(o5,{categories:a,children:u=>(0,Ia.jsx)("div",{className:"block-editor-inserter__category-panel",children:(0,Ia.jsx)(n5,{onInsert:o,rootClientId:r,category:u},u.name)})}),i&&(0,Ia.jsx)(Xke,{initialCategory:t||a[0],patternCategories:a,onModalClose:()=>s(!1),rootClientId:r})]}):(0,Ia.jsx)(Kc,{})}var ixe=ott;var Cxe=c(Z(),1),Exe=c(ue(),1),Txe=c(q(),1),vx=c(F(),1);var Sd=c(q(),1),Cr=c(Z(),1),$i=c(F(),1),AT=c(ue(),1),kxe=c(ee(),1),xxe=c(Dt(),1),Sxe=c(Ns(),1);var pxe=c(q(),1),mxe=c(Z(),1);var Sr=c(q(),1),Gi=c(Z(),1),kd=c(F(),1),sq=c(ce(),1);var OT=c(ee(),1),cxe=c(Ns(),1),uxe=c(iq(),1),dxe=c(ma(),1);var axe=c(ce(),1),lxe=c(T(),1),rtt={image:"img",video:"video",audio:"audio"};function c5(e,t){let o={id:e.id||void 0,caption:e.caption||void 0},r=e.url,n=e.alt||void 0;t==="image"?(o.url=r,o.alt=n):["video","audio"].includes(t)&&(o.src=r);let i=rtt[t],s=(0,lxe.jsx)(i,{src:e.previewUrl||r,alt:n,controls:t==="audio"?!0:void 0,inert:"true",onError:({currentTarget:a})=>{a.src===e.previewUrl&&(a.src=r)}});return[(0,axe.createBlock)(`core/$t}`,o),s]}var co=c(T(),1),ntt=["image"],itt={placement:"bottom-end",className:"block-editor-inserter__media-list__item-preview-options__popover"};function stt({category:e,media:t,onDetach:o}){if(!e.getReportUrl&&!o)return null;let r=e.getReportUrl?.(t);return(0,co.jsx)(Sr.DropdownMenu,{className:"block-editor-inserter__media-list__item-preview-options",label:(0,Gi.__)("Options"),popoverProps:itt,icon:ga,children:()=>(0,co.jsxs)(Sr.MenuGroup,{children:[r&&(0,co.jsx)(Sr.MenuItem,{onClick:()=>window.open(r,"_blank").focus(),icon:b7,children:(0,Gi.sprintf)((0,Gi.__)("Report %s"),e.mediaType)}),o&&(0,co.jsx)(Sr.MenuItem,{onClick:()=>o(t),icon:Os,children:e.postTypeLabel?(0,Gi.sprintf)((0,Gi.__)("Detach from %s"),e.postTypeLabel):(0,Gi.__)("Detach from post")})]})})}function att({onClose:e,onSubmit:t}){return(0,co.jsxs)(Sr.Modal,{title:(0,Gi.__)("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal",children:[(0,co.jsxs)(Sr.__experimentalVStack,{spacing:3,children:[(0,co.jsx)("p",{children:(0,Gi.__)("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")}),(0,co.jsx)("p",{children:(0,Gi.__)("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation.")})]}),(0,co.jsxs)(Sr.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,co.jsx)(Sr.FlexItem,{children:(0,co.jsx)(Sr.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,Gi.__)("Cancel")})}),(0,co.jsx)(Sr.FlexItem,{children:(0,co.jsx)(Sr.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:t,children:(0,Gi.__)("Insert")})})]})]})}function fxe({media:e,onClick:t,onDetach:o,category:r}){let[n,i]=(0,kd.useState)(!1),[s,a]=(0,kd.useState)(!1),[l,u]=(0,kd.useState)(!1),[d,f]=(0,kd.useMemo)(()=>c5(e,r.mediaType),[e,r.mediaType]),{createErrorNotice:p,createSuccessNotice:m}=(0,OT.useDispatch)(cxe.store),{getSettings:g,getBlock:h}=(0,OT.useSelect)(B),{updateBlockAttributes:b}=(0,OT.useDispatch)(B),v=(0,kd.useCallback)(k=>{if(l)return;let x=g(),C=(0,sq.cloneBlock)(k),{id:E,url:R,caption:S}=C.attributes;if(!E&&!x.mediaUpload){i(!0);return}if(E){t(C);return}u(!0),window.fetch(R).then(I=>I.blob()).then(I=>{let O=(0,dxe.getFilename)(R)||"image.jpg",A=new File([I],O,{type:I.type});x.mediaUpload({filesList:[A],additionalData:{caption:S},onFileChange([P]){(0,uxe.isBlobURL)(P.url)||(h(C.clientId)?b(C.clientId,{...C.attributes,id:P.id,url:P.url}):(t({...C,attributes:{...C.attributes,id:P.id,url:P.url}}),m((0,Gi.__)("Image uploaded and inserted."),{type:"snackbar",id:"inserter-notice"})),u(!1))},allowedTypes:ntt,onError(P){p(P,{type:"snackbar",id:"inserter-notice"}),u(!1)}})}).catch(()=>{i(!0),u(!1)})},[l,g,t,m,b,p,h]),y=typeof e.title=="string"?e.title:e.title?.rendered||(0,Gi.__)("no title"),_=(0,kd.useCallback)(()=>a(!0),[]),w=(0,kd.useCallback)(()=>a(!1),[]);return(0,co.jsxs)(co.Fragment,{children:[(0,co.jsx)(ax,{isEnabled:!0,blocks:[d],children:({draggable:k,onDragStart:x,onDragEnd:C})=>(0,co.jsx)("div",{className:Y("block-editor-inserter__media-list__list-item",{"is-hovered":s}),draggable:k,onDragStart:x,onDragEnd:C,children:(0,co.jsxs)("div",{onMouseEnter:_,onMouseLeave:w,children:[(0,co.jsxs)(ao.Root,{children:[(0,co.jsx)(ao.Trigger,{render:(0,co.jsx)(Sr.Composite.Item,{render:(0,co.jsx)("div",{"aria-label":y,role:"option",className:"block-editor-inserter__media-list__item"}),onClick:()=>v(d),children:(0,co.jsxs)("div",{className:"block-editor-inserter__media-list__item-preview",children:[f,l&&(0,co.jsx)("div",{className:"block-editor-inserter__media-list__item-preview-spinner",children:(0,co.jsx)(Sr.Spinner,{})})]})})}),(0,co.jsx)(ao.Popup,{children:y})]}),!l&&(0,co.jsx)(stt,{category:r,media:e,onDetach:o})]})})}),n&&(0,co.jsx)(att,{onClose:()=>i(!1),onSubmit:()=>{t((0,sq.cloneBlock)(d)),m((0,Gi.__)("Image inserted."),{type:"snackbar",id:"inserter-notice"}),i(!1)}})]})}var aq=c(T(),1);function ltt({mediaList:e,category:t,onClick:o,onDetach:r,label:n=(0,mxe.__)("Media List")}){return(0,aq.jsx)(pxe.Composite,{role:"listbox",className:"block-editor-inserter__media-list","aria-label":n,children:e.map((i,s)=>(0,aq.jsx)(fxe,{media:i,category:t,onClick:o,onDetach:r},i.id||i.sourceId||s))})}var gxe=ltt;var hxe=c(q(),1),ctt=()=>null,xd=(0,hxe.withFilters)("editor.MediaUpload")(ctt);var bxe=c(ee(),1);function utt({fallback:e=null,children:t}){return(0,bxe.useSelect)(r=>{let{getSettings:n}=r(B);return!!n().mediaUpload},[])?t:e}var Pa=utt;var ms=c(F(),1),lq=c(ee(),1);function yxe(e){return Array.isArray(e)?{mediaItems:e}:{mediaItems:e?.mediaItems??[],totalItems:e?.totalItems,totalPages:e?.totalPages}}function vxe(e,t={},o){let[r,n]=(0,ms.useState)(),[i,s]=(0,ms.useState)({}),[a,l]=(0,ms.useState)(!1),u=(0,ms.useRef)(),d=(0,ms.useRef)(),f=(0,ms.useRef)(),p=(0,ms.useRef)();return(0,ms.useEffect)(()=>{(async()=>{let m=JSON.stringify({category:e.name,...t}),g={};u.current=g,l(!0),(d.current!==m||f.current!==e.fetch)&&n([]),(p.current!==e.name||f.current!==e.fetch)&&s({}),d.current=m,f.current=e.fetch,p.current=e.name;let{page:h,...b}=t,v=h>1?t:b,{mediaItems:y,totalItems:_,totalPages:w}=yxe(await e.fetch?.(v));g===u.current&&(n(y),s({totalItems:_,totalPages:w}),l(!1))})()},[e.name,e.fetch,...Object.values(t),o]),{mediaList:r,isLoading:a,totalItems:i.totalItems,totalPages:i.totalPages}}function _xe(e,t=400){let[o,r]=(0,ms.useState)(!1);return(0,ms.useEffect)(()=>{if(!e)return;let n=setTimeout(()=>r(!0),t);return()=>{clearTimeout(n),r(!1)}},[e,t]),o}function wxe(e){let[t,o]=(0,ms.useState)([]),r=(0,lq.useSelect)(a=>K(a(B)).getInserterMediaCategories(),[]),{canInsertImage:n,canInsertVideo:i,canInsertAudio:s}=(0,lq.useSelect)(a=>{let{canInsertBlockType:l}=a(B);return{canInsertImage:l("core/image",e),canInsertVideo:l("core/video",e),canInsertAudio:l("core/audio",e)}},[e]);return(0,ms.useEffect)(()=>{(async()=>{let a=[];if(!r)return;let l=new Map(await Promise.all(r.map(async d=>{if(d.isExternalResource)return[d.name,!0];let f=[];try{let{mediaItems:p}=yxe(await d.fetch({per_page:1}));f=p}catch{}return[d.name,!!f.length]}))),u={image:n,video:i,audio:s};r.forEach(d=>{u[d.mediaType]&&(l.get(d.name)||d.emptyMessage)&&a.push(d)}),a.length&&o(a)})()},[n,i,s,r]),t}var _n=c(T(),1),dtt=20,ftt=["image"];function ptt({onSelect:e}){return(0,_n.jsx)(Pa,{children:(0,_n.jsx)(xd,{multiple:"add",onSelect:e,allowedTypes:ftt,title:(0,Cr.__)("Attach images"),render:({open:t})=>(0,_n.jsx)(Sd.Button,{__next40pxDefaultSize:!0,className:"block-editor-inserter__media-panel-attach","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal",onClick:o=>{o.target.focus(),t()},variant:"secondary",children:(0,Cr.__)("Attach images")})})})}function MT({rootClientId:e,onInsert:t,category:o}){let[r,n,i]=(0,AT.useDebouncedInput)(),[s,a]=(0,$i.useState)(1),l=(0,AT.usePrevious)(o.name),u=(0,AT.usePrevious)(i);(l!==o.name||u!==i)&&s!==1&&a(1);let d=(0,$i.useMemo)(()=>({per_page:dtt,page:s,search:i}),[s,i]),[f,p]=(0,$i.useState)(0),{mediaList:m,isLoading:g,totalItems:h,totalPages:b}=vxe(o,d,f),v=b||1;typeof b=="number"&&s>v&&a(v);let y=!o.isExternalResource,_=y?o.attach:void 0,w=y?o.detach:void 0,k=y?o.subscribe:void 0,x=v>1,C=x||!!_,E=(0,$i.useRef)(),R=(0,$i.useCallback)(z=>{(0,xxe.getScrollContainer)(E.current)?.scrollTo(0,0),a(z)},[]),{createErrorNotice:S,createSuccessNotice:I,createWarningNotice:O}=(0,kxe.useDispatch)(Sxe.store),A=_xe(g),P=(0,$i.useCallback)(()=>{y&&o.invalidate?.(d),p(z=>z+1)},[o,d,y]);(0,$i.useEffect)(()=>{if(k)return k(()=>p(z=>z+1),d)},[k,d]);let L=(0,$i.useCallback)(async z=>{try{let $=await _(z);if(!$){O((0,Cr.__)("No images were attached."),{type:"snackbar",id:"inserter-notice"});return}P(),I(o.postTypeLabel?(0,Cr.sprintf)((0,Cr._n)("%1$d image attached to %2$s.","%1$d images attached to %2$s.",$),$,o.postTypeLabel):(0,Cr.sprintf)((0,Cr._n)("%d image attached to post.","%d images attached to post.",$),$),{type:"snackbar",id:"inserter-notice"})}catch{S((0,Cr.__)("Could not attach images."),{type:"snackbar",id:"inserter-notice"})}},[_,o,P,S,I,O]),H=(0,$i.useCallback)(async z=>{try{await w(z),P(),I(o.postTypeLabel?(0,Cr.sprintf)((0,Cr.__)("Image detached from %s."),o.postTypeLabel):(0,Cr.__)("Image detached from post."),{type:"snackbar",id:"inserter-notice"})}catch{S((0,Cr.__)("Could not detach image."),{type:"snackbar",id:"inserter-notice"})}},[w,o,P,S,I]),[N,M]=(0,$i.useState)(),V=(0,$i.useCallback)(()=>{let z=N;M(void 0),H(z)},[H,N]),j="block-editor-inserter__media-panel",D=o.labels.search_items||(0,Cr.__)("Search");return(0,_n.jsxs)("div",{ref:E,className:Y(j,{"has-footer":C}),children:[(0,_n.jsx)(Sd.SearchControl,{className:`$j}-search`,onChange:n,value:r,label:D,placeholder:D}),g&&!m?.length&&(0,_n.jsx)("div",{className:`$j}-spinner`,children:(0,_n.jsx)(Sd.Spinner,{})}),!g&&!m?.length&&(0,_n.jsx)(Kc,{children:o.emptyMessage&&!i?o.emptyMessage:(0,Cr.__)("No results found.")}),!!m?.length&&(0,_n.jsx)("div",{className:Y(`$j}-results`,{"is-loading":A}),"aria-busy":A,children:(0,_n.jsx)(gxe,{rootClientId:e,onClick:t,onDetach:w?M:void 0,mediaList:m,category:o})}),C&&(0,_n.jsxs)($e,{direction:"column",gap:"sm",className:`$j}-footer`,children:[x&&(0,_n.jsx)(dx,{currentPage:s,numPages:v,changePage:R,totalItems:h}),_&&(0,_n.jsx)(ptt,{onSelect:L})]}),N&&(0,_n.jsxs)(Sd.Modal,{title:(0,Cr.__)("Detach image"),onRequestClose:()=>M(void 0),overlayClassName:`$j}-detach-modal`,children:[(0,_n.jsx)("p",{children:o.postTypeLabel?(0,Cr.sprintf)((0,Cr.__)("Detach this image from the current %s? The image will remain in the Media Library."),o.postTypeLabel):(0,Cr.__)("Detach this image from the current post? The image will remain in the Media Library.")}),(0,_n.jsxs)("div",{className:`$j}-detach-actions`,children:[(0,_n.jsx)(Sd.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>M(void 0),children:(0,Cr.__)("Cancel")}),(0,_n.jsx)(Sd.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:V,children:(0,Cr.__)("Detach")})]})]})]})}var Oa=c(T(),1),mtt=["image","video","audio"];function gtt({rootClientId:e,selectedCategory:t,onSelectCategory:o,onInsert:r,children:n}){let i=wxe(e),s=(0,Exe.useViewportMatch)("medium","<"),a="block-editor-inserter__media-tabs",l=(0,vx.useCallback)(d=>{if(!d?.url)return;let f=window.__experimentalDataViewsMediaModal&&d.mime_type?d.mime_type.split("/")[0]:d.type,[p]=c5(d,f);r(p)},[r]),u=(0,vx.useMemo)(()=>i.map(d=>({...d,label:d.labels.name})),[i]);return(0,vx.useEffect)(()=>{if(!t)return;let d=u.find(f=>f.name===t.name);d&&d!==t?o(d):d||o(null)},[u,o,t]),u.length?(0,Oa.jsxs)(Oa.Fragment,{children:[!s&&(0,Oa.jsxs)("div",{className:`$a}-container`,children:[(0,Oa.jsx)(l5,{categories:u,selectedCategory:t,onSelectCategory:o,children:n}),(0,Oa.jsx)(Pa,{children:(0,Oa.jsx)(xd,{multiple:!1,onSelect:l,allowedTypes:mtt,render:({open:d})=>(0,Oa.jsx)(Txe.Button,{__next40pxDefaultSize:!0,onClick:f=>{f.target.focus(),d()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal",children:(0,Cxe.__)("Open Media Library")})})})]}),s&&(0,Oa.jsx)(o5,{categories:u,screenClassName:"block-editor-inserter__media-mobile-screen",children:d=>(0,Oa.jsx)(MT,{onInsert:r,rootClientId:e,category:d})})]}):(0,Oa.jsx)(Kc,{})}var cq=gtt;var NT=c(F(),1),Dg=c(Z(),1);var d5=c(ue(),1),Ixe=c(Yo(),1),Pxe=c(ee(),1);var Rxe=c(q(),1),{Fill:Bxe,Slot:htt}=(0,Rxe.createSlotFill)("__unstableInserterMenuExtension");Bxe.Slot=htt;var u5=Bxe;var Xs=c(T(),1),btt=9,ytt=[];function vtt({filterValue:e,onSelect:t,onHover:o,onHoverPattern:r,rootClientId:n,clientId:i,isAppender:s,__experimentalInsertionIndex:a,maxBlockPatterns:l,maxBlockTypes:u,showBlockDirectory:d=!1,isDraggable:f=!0,shouldFocusBlock:p=!0,prioritizePatterns:m,selectBlockOnInsert:g,isQuick:h}){let b=(0,d5.useDebounce)(Ixe.speak,500),{prioritizedBlocks:v}=(0,Pxe.useSelect)(N=>({prioritizedBlocks:N(B).getBlockListSettings(n)?.prioritizedInserterBlocks||ytt}),[n]),[y,_]=Mg({onSelect:t,rootClientId:n,clientId:i,isAppender:s,insertionIndex:a,shouldFocusBlock:p,selectBlockOnInsert:g}),[w,k,x,C]=Om(y,_,h),[E,,R]=Ng(_,y,void 0,h),S=(0,NT.useMemo)(()=>{if(l===0)return[];let N=v1(E,e);return l!==void 0?N.slice(0,l):N},[e,E,l]),I=u;m&&S.length>2&&(I=0);let O=(0,NT.useMemo)(()=>{if(I===0)return[];let N=w.filter(j=>j.name!=="core/block"),M=ju(N,"frecency","desc");!e&&v.length&&(M=G2(M,v));let V=H2(M,k,x,e);return I!==void 0?V.slice(0,I):V},[e,w,k,x,I,v]);(0,NT.useEffect)(()=>{if(!e)return;let N=O.length+S.length,M=(0,Dg.sprintf)((0,Dg._n)("%d result found.","%d results found.",N),N);b(M)},[e,b,O,S]);let A=(0,d5.useAsyncList)(O,{step:btt}),P=O.length>0||S.length>0,L=!!O.length&&(0,Xs.jsx)(Ag,{title:(0,Xs.jsx)(ht,{children:(0,Dg.__)("Blocks")}),children:(0,Xs.jsx)(Ny,{items:A,onSelect:C,onHover:o,label:(0,Dg.__)("Blocks"),isDraggable:f})}),H=!!S.length&&(0,Xs.jsx)(Ag,{title:(0,Xs.jsx)(ht,{children:(0,Dg.__)("Patterns")}),children:(0,Xs.jsx)("div",{className:"block-editor-inserter__quick-inserter-patterns",children:(0,Xs.jsx)(_d,{blockPatterns:S,onClickPattern:R,onHover:r,isDraggable:f})})});return(0,Xs.jsxs)(YD,{children:[!d&&!P&&(0,Xs.jsx)(Kc,{}),m?H:L,!!O.length&&!!S.length&&(0,Xs.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"}),m?L:H,d&&(0,Xs.jsx)(u5.Slot,{fillProps:{onSelect:C,onHover:o,filterValue:e,hasItems:P,rootClientId:y},children:N=>N.length?N:P?null:(0,Xs.jsx)(Kc,{})})]})}var f5=vtt;var m5=c(q(),1),Oxe=c(F(),1);var ep=c(T(),1),{Tabs:p5}=K(m5.privateApis);function _tt({defaultTabId:e,onClose:t,onSelect:o,selectedTab:r,tabs:n,closeButtonLabel:i},s){return(0,ep.jsx)("div",{className:"block-editor-tabbed-sidebar",children:(0,ep.jsxs)(p5,{selectOnMove:!1,defaultTabId:e,onSelect:o,selectedTabId:r,children:[(0,ep.jsxs)("div",{className:"block-editor-tabbed-sidebar__tablist-and-close-button",children:[(0,ep.jsx)(m5.Button,{className:"block-editor-tabbed-sidebar__close-button",icon:pb,label:i,onClick:()=>t(),size:"compact"}),(0,ep.jsx)(p5.TabList,{className:"block-editor-tabbed-sidebar__tablist",ref:s,children:n.map(a=>(0,ep.jsx)(p5.Tab,{tabId:a.name,className:"block-editor-tabbed-sidebar__tab",children:a.title},a.name))})]}),n.map(a=>(0,ep.jsx)(p5.TabPanel,{tabId:a.name,focusable:!1,className:"block-editor-tabbed-sidebar__tabpanel",ref:a.panelRef,children:a.panel},a.name))]})})}var g5=(0,Oxe.forwardRef)(_tt);var h5=c(ee(),1),_x=c(F(),1);function LT(e=!0){let{setZoomLevel:t,resetZoomLevel:o}=K((0,h5.useDispatch)(B)),{isZoomedOut:r,isZoomOut:n}=(0,h5.useSelect)(a=>{let{isZoomOut:l}=K(a(B));return{isZoomedOut:l(),isZoomOut:l}},[]),i=(0,_x.useRef)(!1),s=(0,_x.useRef)(e);(0,_x.useEffect)(()=>{r!==s.current&&(i.current=!1)},[r]),(0,_x.useEffect)(()=>(s.current=e,e!==n()&&(i.current=!0,e?t("auto-scaled"):o()),()=>{i.current&&n()&&o()}),[e,n,o,t])}var uo=c(T(),1),Axe=()=>{};function wtt({rootClientId:e,clientId:t,isAppender:o,__experimentalInsertionIndex:r,onSelect:n,showInserterHelpPanel:i,showMostUsedBlocks:s,__experimentalFilterValue:a="",shouldFocusBlock:l=!0,onPatternCategorySelection:u,onClose:d,__experimentalInitialTab:f,__experimentalInitialCategory:p},m){let{isZoomOutMode:g,hasSectionRootClientId:h}=(0,y5.useSelect)(ve=>{let{isZoomOut:Se,getSectionRootClientId:fe}=K(ve(B));return{isZoomOutMode:Se(),hasSectionRootClientId:!!fe()}},[]),[b,v,y]=(0,DT.useDebouncedInput)(a),[_,w]=(0,go.useState)(null),[k,x]=(0,go.useState)(p),[C,E]=(0,go.useState)("all"),[R,S]=(0,go.useState)(null),I=(0,DT.useViewportMatch)("large"),A=(0,DT.useViewportMatch)("medium","<")?d:Axe;function P(){return f||(g?"patterns":"blocks")}let[L,H]=(0,go.useState)(P());LT(h&&(L==="patterns"||L==="media")&&I);let[M,V,j]=Mg({rootClientId:e,clientId:t,isAppender:o,insertionIndex:r,shouldFocusBlock:l}),{hideInsertionPoint:D}=(0,y5.useDispatch)(B),z=(0,go.useRef)(),$=(0,go.useCallback)((ve,Se,fe,Ce)=>{D(),V(ve,Se,fe,Ce),n(ve),A(),window.requestAnimationFrame(()=>{!l&&!z.current?.contains(m.current.ownerDocument.activeElement)&&z.current?.querySelector("button").focus()})},[D,V,A,n,m,l]),J=(0,go.useCallback)((ve,Se,...fe)=>{D(),V(ve,{patternName:Se},...fe),n(),A()},[D,V,A,n]),Q=(0,go.useCallback)(ve=>{j(ve),w(ve)},[j,w]),W=(0,go.useCallback)((ve,Se)=>{x(ve),E(Se),u?.()},[x,u]),X=L==="patterns"&&!y&&!!k,U=L==="media"&&!!R,[G,te]=(0,go.useState)(!1),re=(0,go.useRef)(null),ae=(0,go.useRef)(null),ie=(0,go.useRef)(null);(0,go.useEffect)(()=>{let ve=fe=>{te(fe.currentTarget.scrollTop>0)},Se=[re.current,ae.current,ie.current].filter(Boolean);return Se.forEach(fe=>fe.addEventListener("scroll",ve)),()=>{Se.forEach(fe=>fe.removeEventListener("scroll",ve))}},[]);let be=(0,go.useMemo)(()=>L==="media"?null:(0,uo.jsxs)(uo.Fragment,{children:[(0,uo.jsx)(b5.SearchControl,{className:Y("block-editor-inserter__search",{"is-scrolled":G}),onChange:ve=>{_&&w(null),v(ve)},value:b,label:(0,Vg.__)("Search"),placeholder:(0,Vg.__)("Search")}),!!y&&(0,uo.jsx)(f5,{filterValue:y,onSelect:n,onHover:Q,rootClientId:e,clientId:t,isAppender:o,__experimentalInsertionIndex:r,showBlockDirectory:!0,shouldFocusBlock:l,prioritizePatterns:L==="patterns"})]}),[L,_,w,v,b,y,n,Q,l,t,e,r,o,G]),pe=(0,go.useMemo)(()=>(0,uo.jsxs)(uo.Fragment,{children:[(0,uo.jsx)("div",{className:"block-editor-inserter__block-list",children:(0,uo.jsx)(Mke,{ref:z,rootClientId:M,onInsert:$,onHover:Q,showMostUsedBlocks:s})}),i&&(0,uo.jsxs)("div",{className:"block-editor-inserter__tips",children:[(0,uo.jsx)(ht,{render:(0,uo.jsx)("h2",{}),children:(0,Vg.__)("A tip for using the block editor")}),(0,uo.jsx)(Bye,{})]})]}),[M,$,Q,s,i]),ke=(0,go.useMemo)(()=>(0,uo.jsx)(ixe,{rootClientId:M,onInsert:J,onSelectCategory:W,selectedCategory:k,children:X&&(0,uo.jsx)(n5,{rootClientId:M,onInsert:J,category:k,patternFilter:C,showTitlesAsTooltip:!0})}),[M,J,W,C,k,X]),ye=(0,go.useMemo)(()=>(0,uo.jsx)(cq,{rootClientId:M,selectedCategory:R,onSelectCategory:S,onInsert:$,children:U&&(0,uo.jsx)(MT,{rootClientId:M,onInsert:$,category:R})}),[M,$,R,S,U]),Pe=ve=>{ve!=="patterns"&&x(null),H(ve)},_e=(0,go.useRef)();return(0,go.useLayoutEffect)(()=>{if(!_e.current)return;let ve=window.requestAnimationFrame(()=>{_e.current?.querySelector('[role="tab"][aria-selected="true"]')?.focus()});return()=>window.cancelAnimationFrame(ve)},[]),(0,uo.jsxs)("div",{className:Y("block-editor-inserter__menu",{"show-panel":X||U,"is-zoom-out":g}),ref:m,children:[(0,uo.jsx)("div",{className:"block-editor-inserter__main-area",children:(0,uo.jsx)(g5,{ref:_e,onSelect:Pe,onClose:d,selectedTab:L,closeButtonLabel:(0,Vg.__)("Close Block Inserter"),tabs:[{name:"blocks",title:(0,Vg.__)("Blocks"),panelRef:re,panel:(0,uo.jsxs)(uo.Fragment,{children:[be,L==="blocks"&&!y&&pe]})},{name:"patterns",title:(0,Vg.__)("Patterns"),panelRef:ae,panel:(0,uo.jsxs)(uo.Fragment,{children:[be,L==="patterns"&&!y&&ke]})},{name:"media",title:(0,Vg.__)("Media"),panelRef:ie,panel:(0,uo.jsxs)(uo.Fragment,{children:[be,ye]})}]})}),i&&_&&(0,uo.jsx)(b5.Popover,{className:"block-editor-inserter__preview-container__popover",placement:"right-start",offset:{mainAxis:16,crossAxis:16},focusOnMount:!1,animate:!1,children:(0,uo.jsx)(mke,{item:_})})]})}var uq=(0,go.forwardRef)(wtt);function ktt(e,t){return(0,uo.jsx)(uq,{...e,onPatternCategorySelection:Axe,ref:t})}var Mxe=(0,go.forwardRef)(ktt);var v5=c(F(),1),VT=c(Z(),1),_5=c(q(),1),Nxe=c(ee(),1);var Fg=c(T(),1),xtt=6,Stt=6,Ctt=2;function w5({onSelect:e,rootClientId:t,clientId:o,isAppender:r,selectBlockOnInsert:n,hasSearch:i=!0}){let[s,a]=(0,v5.useState)(""),[l,u]=Mg({onSelect:e,rootClientId:t,clientId:o,isAppender:r,selectBlockOnInsert:n}),[d]=Om(l,u,!0),{setInserterIsOpened:f,insertionIndex:p}=(0,Nxe.useSelect)(h=>{let{getSettings:b,getBlockIndex:v,getBlockCount:y}=h(B),_=b(),w=v(o),k=y();return{setInserterIsOpened:_.__experimentalSetIsInserterOpened,insertionIndex:w===-1?k:w}},[o]),m=i&&d.length>xtt;(0,v5.useEffect)(()=>{f&&f(!1)},[f]);let g=()=>{f({filterValue:s,onSelect:e,rootClientId:t,insertionIndex:p})};return(0,Fg.jsxs)("div",{className:Y("block-editor-inserter__quick-inserter",{"has-search":m,"has-expand":f}),children:[m&&(0,Fg.jsx)(_5.SearchControl,{className:"block-editor-inserter__search",value:s,onChange:h=>{a(h)},label:(0,VT.__)("Search"),placeholder:(0,VT.__)("Search")}),(0,Fg.jsxs)("div",{className:"block-editor-inserter__quick-inserter-results",children:[(0,Fg.jsx)(f5,{filterValue:s,onSelect:e,rootClientId:t,clientId:o,isAppender:r,maxBlockPatterns:s?Ctt:0,maxBlockTypes:Stt,isDraggable:!1,selectBlockOnInsert:n,isQuick:!0}),f&&(0,Fg.jsx)("div",{className:"block-editor-inserter__quick-inserter-expand",children:(0,Fg.jsx)(_5.Button,{className:"block-editor-inserter__quick-inserter-expand-toggle",__next40pxDefaultSize:!0,variant:"secondary",onClick:g,"aria-label":(0,VT.__)("Browse all. This will open the main inserter panel in the editor toolbar."),children:(0,VT.__)("Browse all")})})]})]})}var Ett=50;function Lxe(e,t){if(!e||!e.attributes||!t?.__experimentalLabel)return null;let o=t.__experimentalLabel(e.attributes,{context:"appender"});return typeof o=="string"&&o.length<Ett&&o.length>0?o:null}var wx=c(T(),1),Ttt=({onToggle:e,disabled:t,isOpen:o,blockTitle:r,hasSingleBlockType:n,appenderLabel:i,toggleProps:s={}},a)=>{let{as:l=k5.Button,label:u,onClick:d,...f}=s,p=u;!p&&i?p=i:!p&&n?p=(0,tp.sprintf)((0,tp._x)("Add %s","directly add the only allowed block"),r.toLowerCase()):p||(p=(0,tp._x)("Add block","Generic label for block inserter button"));function m(g){e&&e(g),d&&d(g)}return(0,wx.jsx)(l,{ref:a,__next40pxDefaultSize:s.as?void 0:!0,icon:Ms,label:p,tooltipPosition:"bottom",onClick:m,className:"block-editor-inserter__toggle","aria-haspopup":n?!1:"true","aria-expanded":n?!1:o,isPressed:!n&&o,disabled:t,...f})},Rtt=(0,dq.forwardRef)(Ttt),Btt=({clientId:e,rootClientId:t,disabled:o,isAppender:r,position:n,selectBlockOnInsert:i,shouldDirectInsert:s=!0,showInserterHelpPanel:a,__experimentalIsQuick:l,onSelectOrClose:u,onToggle:d,renderToggle:f,toggleProps:p},m)=>{let{hasItems:g,hasSingleBlockType:h,blockTitle:b,allowedBlockType:v,blockToInsert:y,appenderLabel:_,targetRootClientId:w}=(0,kx.useSelect)(N=>{let{getBlockRootClientId:M,hasInserterItems:V,getAllowedBlocks:j,getDirectInsertBlock:D,getBlockListSettings:z}=N(B),{getBlockVariations:$,getBlockType:J}=N(Vy.store),Q=t||M(e)||void 0,W=j(Q),X=s&&D(Q),{defaultBlock:U}=z(Q)??{},G=W?.length===1&&$(W[0].name,"inserter")?.length===0,te=G?W[0]:null,re=X||null;!re&&G&&U?.name===te.name&&(re=U);let ae=X?J(X.name):null;return{hasItems:V(Q),hasSingleBlockType:G,blockTitle:te?te.title:"",allowedBlockType:te,blockToInsert:re,appenderLabel:Lxe(X,ae),targetRootClientId:Q}},[t,e,s]),{insertBlock:k}=(0,kx.useDispatch)(B),{getBlock:x,getBlockIndex:C,getBlockOrder:E,getBlockRootClientId:R,getBlockSelectionEnd:S,getPreviousBlockClientId:I}=(0,kx.useSelect)(B),{getActiveBlockVariation:O,getBlockType:A}=(0,kx.useSelect)(Vy.store);if(!g&&(r||w||e))return null;function P(){let N=y?.name??v.name;function M(){let J;if(e){let Q=x(e),W=x(I(e));Q?.name===W?.name&&(J=W?.attributes)}else if(w){let Q=x(w)?.innerBlocks?.at(-1);Q?.name===N&&(J=Q.attributes)}return Y_(N,J)}function V(){if(e)return C(e);let J=S();return!r&&J&&R(J)===w?C(J)+1:E(w).length}let j=M(),D=(0,Vy.createBlock)(N,{...y?.attributes,...j});k(D,V(),w,i),u?.(D);let z=A(N),$;if(z&&($=(0,Vy.__experimentalGetBlockLabel)(z,D.attributes),$===z.title&&($=O(N,D.attributes)?.title||$)),$){let J=(0,tp.sprintf)((0,tp.__)("%s block added"),$);(0,Dxe.speak)(J)}}function L({onToggle:N,isOpen:M}){let V={onToggle:N,isOpen:M,disabled:o||!g,blockTitle:b,hasSingleBlockType:h,appenderLabel:_,toggleProps:p};return f?f(V):(0,wx.jsx)(Rtt,{ref:m,...V})}function H({onClose:N}){return l?(0,wx.jsx)(w5,{onSelect:M=>{let V=Array.isArray(M)&&M?.length?M[0]:M;u&&typeof u=="function"&&u(V),N()},rootClientId:w,clientId:e,isAppender:r,selectBlockOnInsert:i}):(0,wx.jsx)(Mxe,{onSelect:()=>{N()},onClose:N,rootClientId:w,clientId:e,isAppender:r,showInserterHelpPanel:a})}return h||y?L({onToggle:P}):(0,wx.jsx)(k5.Dropdown,{className:"block-editor-inserter",contentClassName:Y("block-editor-inserter__popover",{"is-quick":l}),popoverProps:{position:n,shift:!0},onToggle:d,expandOnMobile:!0,headerTitle:(0,tp.__)("Add a block"),renderToggle:L,renderContent:H,onClose:u})},Itt=(0,dq.forwardRef)(Btt),Qs=Itt;var FT=c(T(),1),Ptt="\uFEFF";function xx({rootClientId:e}){let{showPrompt:t,isLocked:o,placeholder:r,isManualGrid:n}=(0,x5.useSelect)(u=>{let{getBlockCount:d,getSettings:f,getTemplateLock:p,getBlockAttributes:m}=u(B),g=!d(e),{bodyPlaceholder:h}=f();return{showPrompt:g,isLocked:!!p(e),placeholder:h,isManualGrid:m(e)?.layout?.isManualPlacement}},[e]),{insertDefaultBlock:i,startTyping:s}=(0,x5.useDispatch)(B);if(o||n)return null;let a=(0,Vxe.decodeEntities)(r)||(0,fq.__)("Type / to choose a block"),l=()=>{i(void 0,e),s()};return(0,FT.jsxs)("div",{"data-root-client-id":e||"",className:Y("block-editor-default-block-appender",{"has-visible-prompt":t}),children:[(0,FT.jsx)("p",{tabIndex:"0",role:"button","aria-label":(0,fq.__)("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:u=>{(S5.ENTER===u.keyCode||S5.SPACE===u.keyCode)&&l()},onClick:()=>l(),onFocus:()=>{t&&l()},children:t?a:Ptt}),(0,FT.jsx)(Qs,{rootClientId:e,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0})]})}var Fxe=c(q(),1),pq=c(F(),1),zT=c(Z(),1);var zxe=c(Nt(),1);var C5=c(T(),1);function jxe({rootClientId:e,className:t,onFocus:o,tabIndex:r,onSelect:n},i){return(0,C5.jsx)(Qs,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,onSelectOrClose:(...s)=>{n&&typeof n=="function"&&n(...s)},renderToggle:({onToggle:s,disabled:a,isOpen:l,blockTitle:u,hasSingleBlockType:d,appenderLabel:f})=>{let p=!d,m;return f?m=f:d?m=(0,zT.sprintf)((0,zT._x)("Add %s","directly add the only allowed block"),u.toLowerCase()):m=(0,zT._x)("Add block","Generic label for block inserter button"),(0,C5.jsx)(Fxe.Button,{__next40pxDefaultSize:!0,ref:i,onFocus:o,tabIndex:r,className:Y(t,"block-editor-button-block-appender"),onClick:s,"aria-haspopup":p?"true":void 0,"aria-expanded":p?l:void 0,disabled:a,label:m,showTooltip:!0,children:(0,C5.jsx)(xt,{icon:Ms})})},isAppender:!0})}var Hxe=(0,pq.forwardRef)((e,t)=>((0,zxe.default)("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),jxe(e,t))),zg=(0,pq.forwardRef)(jxe);var Sx=c(T(),1);function Ott({rootClientId:e}){return(0,mq.useSelect)(o=>o(B).canInsertBlockType((0,Wxe.getDefaultBlockName)(),e))?(0,Sx.jsx)(xx,{rootClientId:e}):(0,Sx.jsx)(zg,{rootClientId:e,className:"block-list-appender__toggle"})}function Uxe({rootClientId:e,CustomAppender:t,className:o,tagName:r="div"}){let n=(0,mq.useSelect)(i=>{let{getBlockInsertionPoint:s,isBlockInsertionPointVisible:a,getBlockCount:l}=i(B),u=s();return a()&&e===u?.rootClientId&&l(e)===0},[e]);return(0,Sx.jsx)(r,{tabIndex:-1,className:Y("block-list-appender wp-block",o,{"is-drag-over":n}),contentEditable:!1,"data-block":!0,children:t?(0,Sx.jsx)(t,{}):(0,Sx.jsx)(Ott,{rootClientId:e})})}var iSe=c(ue(),1),HT=c(ee(),1),sSe=c(F(),1),aSe=c(Z(),1);var Cx=c(ee(),1),Hg=c(F(),1),R5=c(q(),1),rSe=c(ue(),1);var Yxe=c(ee(),1),jg=c(F(),1),Kxe=c(q(),1),qxe=c(Z(),1);var $xe=c(ue(),1),gq=c(Dt(),1),Gxe=new WeakMap;function Att(e){let t=(0,$xe.useRefEffect)(o=>{function r(i){let{deltaX:s,deltaY:a,target:l}=i,u=e.current,d=Gxe.get(u);d||(d=(0,gq.getScrollContainer)(u),Gxe.set(u,d));let f=(0,gq.getScrollContainer)(l);o.contains(f)||d.scrollBy(s,a)}let n={passive:!0};return o.addEventListener("wheel",r,n),()=>{o.removeEventListener("wheel",r,n)}},[e]);return e?t:null}var Fy=Att;var hq=c(T(),1),Mtt=Number.MAX_SAFE_INTEGER;function Ntt({previousClientId:e,nextClientId:t,children:o,__unstablePopoverSlot:r,__unstableContentRef:n,operation:i="insert",nearestSide:s="right",...a}){let[l,u]=(0,jg.useReducer)(y=>(y+1)%Mtt,0),{orientation:d,rootClientId:f,isVisible:p}=(0,Yxe.useSelect)(y=>{let{getBlockListSettings:_,getBlockRootClientId:w,isBlockVisible:k}=y(B),x=w(e??t);return{orientation:_(x)?.orientation||"vertical",rootClientId:x,isVisible:k(e)&&k(t)}},[e,t]),m=Zt(e),g=Zt(t),h=d==="vertical",b=(0,jg.useMemo)(()=>l<0||!m&&!g||!p?void 0:{contextElement:i==="group"?g||m:m||g,getBoundingClientRect(){let _=m?m.getBoundingClientRect():null,w=g?g.getBoundingClientRect():null,k=0,x=0,C=0,E=0;if(i==="group"){let R=w||_;x=R.top,C=0,E=R.bottom-R.top,k=s==="left"?R.left-2:R.right-2}else h?(x=_?_.bottom:w.top,C=w&&_?(_.width+w.width)/2:(_||w).width,E=w&&_?w.top-_.bottom:0,k=w&&_?(_.left+w.left)/2:(_||w).left):(x=_?_.top:w.top,E=_?_.height:w.height,(0,qxe.isRTL)()?(k=w?w.right:_.left,C=_&&w?_.left-w.right:0):(k=_?_.right:w.left,C=_&&w?w.left-_.right:0),C=Math.max(C,0));return new window.DOMRect(k,x,C,E)}},[m,g,l,h,p,i,s]),v=Fy(n);return(0,jg.useLayoutEffect)(()=>{if(!m)return;let y=new window.MutationObserver(u);return y.observe(m,{attributes:!0}),()=>{y.disconnect()}},[m]),(0,jg.useLayoutEffect)(()=>{if(!g)return;let y=new window.MutationObserver(u);return y.observe(g,{attributes:!0}),()=>{y.disconnect()}},[g]),(0,jg.useLayoutEffect)(()=>{if(m)return m.ownerDocument.defaultView.addEventListener("resize",u),()=>{m.ownerDocument.defaultView?.removeEventListener("resize",u)}},[m]),!m&&!g||!p?null:(0,hq.jsx)(Kxe.Popover,{ref:v,animate:!1,anchor:b,focusOnMount:!1,__unstableSlotName:r,inline:!r,...a,className:Y("block-editor-block-popover","block-editor-block-popover__inbetween",a.className),resize:!1,flip:!1,placement:"overlay",variant:"unstyled",children:(0,hq.jsx)("div",{className:"block-editor-block-popover__inbetween-container",children:o})},t+"--"+f)}var E5=Ntt;var Jxe=c(ee(),1),eSe=c(ue(),1),tSe=c(q(),1);var rp=c(F(),1);var Zxe=c(ue(),1),Xxe=c(q(),1),op=c(F(),1);var bq=c(T(),1),Ltt=Number.MAX_SAFE_INTEGER;function Dtt({clientId:e,bottomClientId:t,children:o,__unstablePopoverSlot:r,__unstableContentRef:n,shift:i=!0,...s},a){let l=Zt(e),u=Zt(t??e),d=(0,Zxe.useMergeRefs)([a,Fy(n)]),[f,p]=(0,op.useReducer)(g=>(g+1)%Ltt,0);(0,op.useLayoutEffect)(()=>{if(!l)return;let g,h=new window.MutationObserver(()=>{g||(g=window.requestAnimationFrame(()=>{g=null,p()}))});return h.observe(l,{attributes:!0}),()=>{h.disconnect(),g&&window.cancelAnimationFrame(g)}},[l]);let m=(0,op.useMemo)(()=>{if(!(f<0||!l||t&&!u))return{getBoundingClientRect(){return u?uW(ww(l),ww(u)):ww(l)},contextElement:l}},[f,l,t,u]);return!l||t&&!u?null:(0,bq.jsx)(Xxe.Popover,{ref:d,animate:!1,focusOnMount:!1,anchor:m,__unstableSlotName:r,inline:!r,placement:"top-start",resize:!1,flip:!1,shift:i,...s,className:Y("block-editor-block-popover",s.className),variant:"unstyled",children:o})}var zy=(0,op.forwardRef)(Dtt),Vtt=({clientId:e,bottomClientId:t,children:o,...r},n)=>(0,bq.jsx)(zy,{...r,bottomClientId:t,clientId:e,__unstableContentRef:void 0,__unstablePopoverSlot:void 0,ref:n,children:o}),Qxe=(0,op.forwardRef)(Vtt);var T5=c(T(),1);function Ftt({clientId:e,bottomClientId:t,children:o,shift:r=!1,additionalStyles:n,...i},s){t??=e;let a=Zt(e);return(0,T5.jsx)(zy,{ref:s,clientId:e,bottomClientId:t,shift:r,...i,children:a&&e===t?(0,T5.jsx)(ztt,{selectedElement:a,additionalStyles:n,children:o}):o})}function ztt({selectedElement:e,additionalStyles:t={},children:o}){let[r,n]=(0,rp.useState)(e.offsetWidth),[i,s]=(0,rp.useState)(e.offsetHeight);(0,rp.useEffect)(()=>{let l=new window.ResizeObserver(()=>{n(e.offsetWidth),s(e.offsetHeight)});return l.observe(e,{box:"border-box"}),()=>l.disconnect()},[e]);let a=(0,rp.useMemo)(()=>({position:"absolute",width:r,height:i,...t}),[r,i,t]);return(0,T5.jsx)("div",{style:a,children:o})}var Al=(0,rp.forwardRef)(Ftt);var yq=c(T(),1),jT={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};function jtt({__unstablePopoverSlot:e,__unstableContentRef:t}){let{clientId:o}=(0,Jxe.useSelect)(n=>{let{getBlockOrder:i,getBlockInsertionPoint:s}=n(B),a=s(),l=i(a.rootClientId);return l.length?{clientId:l[a.index]}:{}},[]),r=(0,eSe.useReducedMotion)();return(0,yq.jsx)(Al,{clientId:o,__unstablePopoverSlot:e,__unstableContentRef:t,className:"block-editor-block-popover__drop-zone",children:(0,yq.jsx)(tSe.__unstableMotion.div,{"data-testid":"block-popover-drop-zone",initial:r?jT.show:jT.hide,animate:jT.show,exit:r?jT.show:jT.exit,className:"block-editor-block-popover__drop-zone-foreground"})})}var oSe=jtt;var np=c(T(),1),Ex=(0,Hg.createContext)();Ex.displayName="InsertionPointOpenRefContext";function Htt({__unstablePopoverSlot:e,__unstableContentRef:t,operation:o="insert",nearestSide:r="right"}){let{selectBlock:n,hideInsertionPoint:i}=(0,Cx.useDispatch)(B),s=(0,Hg.useContext)(Ex),a=(0,Hg.useRef)(),{orientation:l,previousClientId:u,nextClientId:d,rootClientId:f,isInserterShown:p,isDistractionFree:m,isZoomOutMode:g}=(0,Cx.useSelect)(R=>{let{getBlockOrder:S,getBlockListSettings:I,getBlockInsertionPoint:O,isBlockBeingDragged:A,getPreviousBlockClientId:P,getNextBlockClientId:L,getSettings:H,isZoomOut:N}=K(R(B)),M=O(),V=S(M.rootClientId);if(!V.length)return{};let j=V[M.index-1],D=V[M.index];for(;A(j);)j=P(j);for(;A(D);)D=L(D);let z=H();return{previousClientId:j,nextClientId:D,orientation:I(M.rootClientId)?.orientation||"vertical",rootClientId:M.rootClientId,isDistractionFree:z.isDistractionFree,isInserterShown:M?.__unstableWithInserter,isZoomOutMode:N()}},[]),{getBlockEditingMode:h}=(0,Cx.useSelect)(B),b=(0,rSe.useReducedMotion)();function v(R){R.target===a.current&&d&&h(d)!=="disabled"&&n(d,-1)}function y(R){R.target===a.current&&!s.current&&i()}function _(R){R.target!==a.current&&(s.current=!0)}let w=(0,Hg.useCallback)(R=>{!R&&s.current&&(s.current=!1)},[s]),k={start:{opacity:0,scale:0},rest:{opacity:1,scale:1,transition:{delay:p?.5:0,type:"tween"}},hover:{opacity:1,scale:1,transition:{delay:.5,type:"tween"}}},x={start:{scale:b?1:0},rest:{scale:1,transition:{delay:.4,type:"tween"}}};if(m||g&&o!=="insert")return null;let E=Y("block-editor-block-list__insertion-point",l==="horizontal"||o==="group"?"is-horizontal":"is-vertical");return(0,np.jsx)(E5,{previousClientId:u,nextClientId:d,__unstablePopoverSlot:e,__unstableContentRef:t,operation:o,nearestSide:r,children:(0,np.jsxs)(R5.__unstableMotion.div,{layout:!b,initial:b?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:a,tabIndex:-1,onClick:v,onFocus:_,className:Y(E,{"is-with-inserter":p}),onHoverEnd:y,children:[(0,np.jsx)(R5.__unstableMotion.div,{variants:k,className:"block-editor-block-list__insertion-point-indicator","data-testid":"block-list-insertion-point-indicator"}),p&&(0,np.jsx)(R5.__unstableMotion.div,{variants:x,className:Y("block-editor-block-list__insertion-point-inserter"),children:(0,np.jsx)(Qs,{ref:w,position:"bottom center",clientId:d,rootClientId:f,__experimentalIsQuick:!0,onToggle:R=>{s.current=R},onSelectOrClose:()=>{s.current=!1}})})]})})}function nSe(e){let{insertionPoint:t,isVisible:o,isBlockListEmpty:r}=(0,Cx.useSelect)(n=>{let{getBlockInsertionPoint:i,isBlockInsertionPointVisible:s,getBlockCount:a}=n(B),l=i();return{insertionPoint:l,isVisible:s(),isBlockListEmpty:a(l?.rootClientId)===0}},[]);return!o||r?null:t.operation==="replace"?(0,np.jsx)(oSe,{...e},`$t.rootClientId}-$t.index}`):(0,np.jsx)(Htt,{operation:t.operation,nearestSide:t.nearestSide,...e})}function lSe(){let e=(0,sSe.useContext)(Ex),t=(0,HT.useSelect)(h=>{let b=h(B).getSettings();return b.isDistractionFree||b.isPreviewMode||K(h(B)).isZoomOut()},[]),{getBlockListSettings:o,getBlockIndex:r,isMultiSelecting:n,getSelectedBlockClientIds:i,getSettings:s,getTemplateLock:a,__unstableIsWithinBlockOverlay:l,getBlockEditingMode:u,getBlockName:d,getBlockAttributes:f,getParentSectionBlock:p}=K((0,HT.useSelect)(B)),{showInsertionPoint:m,hideInsertionPoint:g}=(0,HT.useDispatch)(B);return(0,iSe.useRefEffect)(h=>{if(t)return;function b(v){if(e===void 0||e.current||v.target.nodeType===v.target.TEXT_NODE||n())return;if(!v.target.classList.contains("block-editor-block-list__layout")){g();return}let y;if(v.target.classList.contains("is-root-container")||(y=(v.target.getAttribute("data-block")?v.target:v.target.closest("[data-block]")).getAttribute("data-block")),a(y)||u(y)==="disabled"||d(y)==="core/block"||y&&f(y).layout?.isManualPlacement)return;let _=o(y),w=_?.orientation||"vertical",k=!!_?.__experimentalCaptureToolbars,x=v.clientY,C=v.clientX,R=Array.from(v.target.children).find(A=>{let P=A.getBoundingClientRect();return A.classList.contains("wp-block")&&w==="vertical"&&P.top>x||A.classList.contains("wp-block")&&w==="horizontal"&&((0,aSe.isRTL)()?P.right<C:P.left>C)});if(!R){g();return}if(!R.id&&(R=R.firstElementChild,!R)){g();return}let S=R.id.slice(6);if(!S||l(S)||p(S)||i().includes(S)&&w==="vertical"&&!k&&!s().hasFixedToolbar)return;let I=R.getBoundingClientRect();if(w==="horizontal"&&(v.clientY>I.bottom||v.clientY<I.top)||w==="vertical"&&(v.clientX>I.right||v.clientX<I.left)){g();return}let O=r(S);if(O===0){g();return}m(y,O,{__unstableWithInserter:!0})}return h.addEventListener("mousemove",b),()=>{h.removeEventListener("mousemove",b)}},[e,o,r,n,m,g,i,t])}var B5=c(ee(),1),cSe=c(ue(),1);var uSe=c(T(),1);function jy(){let{getSettings:e,hasSelectedBlock:t,hasMultiSelection:o}=(0,B5.useSelect)(B),{clearSelectedBlock:r}=(0,B5.useDispatch)(B),{clearBlockSelection:n}=e();return(0,cSe.useRefEffect)(i=>{if(!n)return;function s(a){!t()&&!o()||a.target===i&&r()}return i.addEventListener("mousedown",s),()=>{i.removeEventListener("mousedown",s)}},[t,o,r,n])}function dSe(e){return(0,uSe.jsx)("div",{ref:jy(),...e})}var OSe=c(ue(),1),Bx=c(F(),1),ASe=c(ee(),1),Gy=c(ce(),1);var fSe=c(T(),1);function pSe({showSeparator:e,isFloating:t,onAddBlock:o,isToggle:r}){let{clientId:n}=kt();return(0,fSe.jsx)(zg,{className:Y({"block-list-appender__toggle":r}),rootClientId:n,showSeparator:e,isFloating:t,onAddBlock:o})}var mSe=c(T(),1);function gSe(){let{clientId:e}=kt();return(0,mSe.jsx)(xx,{rootClientId:e})}var P5=c(F(),1),ySe=c(ee(),1),I5=c(Nt(),1),vSe=c(Tx(),1);var WT=new WeakMap;function Wtt(){let e;return t=>((e===void 0||!(0,vSe.isShallowEqual)(e,t))&&(e=t),e)}function bSe(e){let[t]=(0,P5.useState)(Wtt);return t(e)}function _Se(e,t,o,r,n,i,s,a,l,u,d,f){let p=(0,ySe.useRegistry)(),m=bSe(o),g=bSe(r),h=l===void 0||t==="contentOnly"?t:l;(0,P5.useLayoutEffect)(()=>{let b={allowedBlocks:m,prioritizedInserterBlocks:g,templateLock:h};if(u!==void 0&&(b.__experimentalCaptureToolbars=u),d!==void 0)b.orientation=d;else{let v=sl(f?.type);b.orientation=v.getOrientation(f)}s!==void 0&&((0,I5.default)("__experimentalDefaultBlock",{alternative:"defaultBlock",since:"6.3",version:"6.4"}),b.defaultBlock=s),n!==void 0&&(b.defaultBlock=n),a!==void 0&&((0,I5.default)("__experimentalDirectInsert",{alternative:"directInsert",since:"6.3",version:"6.4"}),b.directInsert=a),i!==void 0&&(b.directInsert=i),b.directInsert!==void 0&&typeof b.directInsert!="boolean"&&(0,I5.default)("Using `Function` as a `directInsert` argument",{alternative:"`boolean` values",since:"6.5"}),WT.get(p)||WT.set(p,{}),WT.get(p)[e]=b,window.queueMicrotask(()=>{let v=WT.get(p);if(Object.keys(v).length){let{updateBlockListSettings:y}=p.dispatch(B);y(v),WT.set(p,{})}})},[e,m,g,h,n,i,s,a,u,d,f,p])}var vq=c(ab(),1),O5=c(F(),1),wSe=c(ee(),1),A5=c(ce(),1),_q=c(Nt(),1);function kSe(e,t,o,r){t!==void 0&&(0,_q.default)("The template prop of InnerBlocks and useInnerBlocksProps",{since:"7.2",alternative:"a `template` declared in the block type settings"}),r!==void 0&&(0,_q.default)("The templateInsertUpdatesSelection prop of InnerBlocks and useInnerBlocksProps",{since:"7.2",alternative:"`templateInsertUpdatesSelection` declared in the block type settings"});let n=(0,wSe.useRegistry)(),i=(0,O5.useRef)(null);(0,O5.useLayoutEffect)(()=>{let s=!1,{getBlockName:a,getBlocks:l,getSelectedBlocksInitialCaretPosition:u,isBlockSelected:d}=n.select(B),{replaceInnerBlocks:f,__unstableMarkNextChangeAsNotPersistent:p}=n.dispatch(B);return window.queueMicrotask(()=>{if(s)return;let m=t,g=r;if(t===void 0){let _=(0,A5.getBlockType)(a(e));m=_?.template,g=_?.templateInsertUpdatesSelection}let h=l(e),b=(0,vq.default)(m,i.current);if(!(h.length===0||o==="all"||o==="contentOnly")||b)return;i.current=m;let y=(0,A5.synchronizeBlocksWithTemplate)(h,m);(0,vq.default)(y,h)||(p({history:"ignore"}),f(e,y,h.length===0&&g&&y.length!==0&&d(e),u()))}),()=>{s=!0}},[t,o,e,n,r])}var xSe=c(ce(),1),SSe=c(ee(),1);function CSe(e){return(0,SSe.useSelect)(t=>{let o=t(B).getBlock(e);if(!o)return;let r=t(xSe.store).getBlockType(o.name);if(r&&Object.keys(r.providesContext).length!==0)return Object.fromEntries(Object.entries(r.providesContext).map(([n,i])=>[n,o.attributes[i]]))},[e])}var Uy=c(ee(),1),L5=c(F(),1),D5=c(ue(),1),BSe=c(Z(),1),Rx=c(ce(),1);var wq=c(F(),1),Js=c(ce(),1),Hy=c(ee(),1),ESe=c(Dt(),1);function kq(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch{return t}return t}function Utt(e,t,o,r,n,i,s,a,l){return u=>{let{srcRootClientId:d,srcClientIds:f,type:p,blocks:m}=kq(u);if(p==="inserter"){s();let g=m.map(h=>(0,Js.cloneBlock)(h));i(g,!0,null)}if(p==="block"){let g=o(f[0]);if(d===e&&g===t||f.includes(e)||r(f).some(y=>y===e))return;if(a==="group"){let y=f.map(_=>l(_));i(y,!0,null,f);return}let h=d===e,b=f.length,v=h&&g<t?t-b:t;n(f,d,v)}}}function Gtt(e,t,o,r,n){return i=>{if(!t().mediaUpload)return;let s=(0,Js.findTransform)((0,Js.getBlockTransforms)("from"),a=>a.type==="files"&&r(a.blockName,e)&&a.isMatch(i));if(s){let a=s.transform(i,o);n(a)}}}function $tt(e){return t=>{let o=(0,Js.pasteHandler)({HTML:t,mode:"BLOCKS"});o.length&&e(o)}}function M5(e,t,o={}){let{operation:r="insert",nearestSide:n="right"}=o,{canInsertBlockType:i,getBlockIndex:s,getClientIdsOfDescendants:a,getBlockOrder:l,getBlocksByClientId:u,getSettings:d,getBlock:f}=(0,Hy.useSelect)(B),{getGroupingBlockName:p}=(0,Hy.useSelect)(Js.store),{insertBlocks:m,moveBlocksToPosition:g,updateBlockAttributes:h,clearSelectedBlock:b,replaceBlocks:v,removeBlocks:y}=(0,Hy.useDispatch)(B),_=(0,Hy.useRegistry)(),w=(0,wq.useCallback)((R,S=!0,I=0,O=[])=>{Array.isArray(R)||(R=[R]);let P=l(e)[t];if(r==="replace")v(P,R,void 0,I);else if(r==="group"){let L=f(P);n==="left"?R.push(L):R.unshift(L);let H=R.map(j=>(0,Js.cloneSanitizedBlock)(j)),N=R.every(j=>j.name==="core/image"),M=i("core/gallery",e),V=(0,Js.createBlock)(N&&M?"core/gallery":p(),{layout:{type:"flex",flexWrap:N&&M?null:"nowrap"}},H);v([P,...O],V,void 0,I)}else m(R,t,e,S,I)},[l,e,t,r,v,f,n,i,p,m]),k=(0,wq.useCallback)((R,S,I)=>{if(r==="replace"){let O=u(R),P=l(e)[t];_.batch(()=>{y(R,!1),v(P,O,void 0,0)})}else g(R,S,e,I)},[r,l,u,g,_,y,v,t,e]),x=Utt(e,t,s,a,k,w,b,r,f),C=Gtt(e,d,h,i,w),E=$tt(w);return R=>{let S=(0,ESe.getFilesFromDataTransfer)(R.dataTransfer),I=R.dataTransfer.getData("text/html");I?E(I):S.length?C(S):x(R)}}function Ytt(e,t,o){let r=o==="top"||o==="bottom",{x:n,y:i}=e,s=r?n:i,a=r?i:n,l=r?t.left:t.top,u=r?t.right:t.bottom,d=t[o],f;return s>=l&&s<=u?f=s:s<u?f=l:f=u,Math.sqrt((s-f)**2+(a-d)**2)}function Wy(e,t,o=["top","bottom","left","right"]){let r,n;return o.forEach(i=>{let s=Ytt(e,t,i);(r===void 0||s<r)&&(r=s,n=i)}),[r,n]}function N5(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}function TSe(e,t){return t.top<=e.y&&t.bottom>=e.y}var xq=30,Ktt=120,qtt=120;function Ztt(e,t,o="vertical",r={}){let n=o==="horizontal"?["left","right"]:["top","bottom"],i=0,s="before",a=1/0,l=null,u="right",{dropZoneElement:d,parentBlockOrientation:f,rootBlockIndex:p=0}=r;if(d&&f!=="horizontal"){let v=d.getBoundingClientRect(),[y,_]=Wy(t,v,["top","bottom"]);if(v.height>Ktt&&y<xq){if(_==="top")return[p,"before"];if(_==="bottom")return[p+1,"after"]}}let m=(0,BSe.isRTL)();if(d&&f==="horizontal"){let v=d.getBoundingClientRect(),[y,_]=Wy(t,v,["left","right"]);if(v.width>qtt&&y<xq){if(m&&_==="right"||!m&&_==="left")return[p,"before"];if(m&&_==="left"||!m&&_==="right")return[p+1,"after"]}}e.forEach(({isUnmodifiedDefaultBlock:v,getBoundingClientRect:y,blockIndex:_,blockOrientation:w})=>{let k=y();if(!k)return;let[x,C]=Wy(t,k,n),[E,R]=Wy(t,k,["left","right"]),S=N5(t,k);v&&S?x=0:o==="vertical"&&w!=="horizontal"&&(S&&E<xq||!S&&TSe(t,k))&&(l=_,u=R),x<a&&(s=C==="bottom"||!m&&C==="right"||m&&C==="left"?"after":"before",a=x,i=_)});let g=i+(s==="after"?1:-1),h=!!e[i]?.isUnmodifiedDefaultBlock,b=!!e[g]?.isUnmodifiedDefaultBlock;return l!==null?[l,"group",u]:!h&&!b?[s==="after"?i+1:i,"insert"]:[h?i:g,"replace"]}function V5(e,t,o,r){let n=!0;if(t){let a=t?.map(({name:l})=>l);n=o.every(l=>a?.includes(l))}let s=o.map(a=>e(a)).every(a=>{let[l]=a?.parent||[];return l?l===r:!0});return n&&s}function RSe(e,t){let{defaultView:o}=t;return!!(o&&e instanceof o.HTMLElement&&e.closest("[data-is-insertion-point]"))}function ISe({dropZoneElement:e,rootClientId:t="",parentClientId:o="",isDisabled:r=!1}={}){let n=(0,Uy.useRegistry)(),[i,s]=(0,L5.useState)({index:null,operation:"insert"}),{getBlockType:a,getBlockVariations:l,getGroupingBlockName:u}=(0,Uy.useSelect)(Rx.store),{canInsertBlockType:d,getBlockListSettings:f,getBlocks:p,getBlockIndex:m,getDraggedBlockClientIds:g,getBlockNamesByClientId:h,getAllowedBlocks:b,isDragging:v,isGroupable:y,isZoomOut:_,getSectionRootClientId:w,getBlockParents:k}=K((0,Uy.useSelect)(B)),{showInsertionPoint:x,hideInsertionPoint:C,startDragging:E,stopDragging:R}=K((0,Uy.useDispatch)(B)),S=M5(i.operation==="before"||i.operation==="after"?o:t,i.index,{operation:i.operation,nearestSide:i.nearestSide}),I=(0,D5.useThrottle)((0,L5.useCallback)((O,A)=>{v()||E();let P=g(),L=[t,...k(t,!0)];if(P.some(G=>L.includes(G)))return;let N=b(t),M=h([t])[0],V=h(P);if(!V5(a,N,V,M))return;let D=w();if(_()&&D!==t)return;let z=p(t).filter(G=>!((0,Rx.hasBlockSupport)(G.name,"visibility",!0)&&G.attributes?.metadata?.blockVisibility===!1));if(z.length===0){n.batch(()=>{s({index:0,operation:"insert"}),x(t,0,{operation:"insert"})});return}let $=z.map(G=>{let te=G.clientId;return{isUnmodifiedDefaultBlock:(0,Rx.isUnmodifiedDefaultBlock)(G),getBoundingClientRect:()=>{let re=A.getElementById(`block-$te}`);return re?re.getBoundingClientRect():null},blockIndex:m(te),blockOrientation:f(te)?.orientation}}),J=Ztt($,{x:O.clientX,y:O.clientY},f(t)?.orientation,{dropZoneElement:e,parentBlockClientId:o,parentBlockOrientation:o?f(o)?.orientation:void 0,rootBlockIndex:m(t)}),[Q,W,X]=J,U=$[Q]?.isUnmodifiedDefaultBlock;if(!(_()&&!U&&W!=="insert")){if(W==="group"){let G=z[Q],te=[G.name,...V].every(pe=>pe==="core/image"),re=d("core/gallery",t),ae=y([G.clientId,g()]),ie=l(u(),"block"),be=ie&&ie.find(({name:pe})=>pe==="group-row");if(te&&!re&&(!ae||!be)||!te&&(!ae||!be))return}n.batch(()=>{s({index:Q,operation:W,nearestSide:X});let G=["before","after"].includes(W)?o:t;x(G,Q,{operation:W,nearestSide:X})})}},[v,b,t,h,g,a,w,_,p,f,e,o,m,n,E,x,d,y,l,u]),200);return(0,D5.__experimentalUseDropZone)({dropZoneElement:e,isDisabled:r,onDrop:S,onDragOver(O){I(O,O.currentTarget.ownerDocument)},onDragLeave(O){let{ownerDocument:A}=O.currentTarget;RSe(O.relatedTarget,A)||RSe(O.target,A)||(I.cancel(),C())},onDragEnd(){I.cancel(),R(),C()}})}var ip=c(T(),1),PSe={};function Xtt({children:e,clientId:t}){let o=CSe(t);return(0,ip.jsx)(fI,{value:o,children:e})}var Qtt=(0,Bx.memo)(RT);function MSe(e){let{clientId:t,allowedBlocks:o,prioritizedInserterBlocks:r,defaultBlock:n,directInsert:i,__experimentalDefaultBlock:s,__experimentalDirectInsert:a,template:l,templateLock:u,wrapperRef:d,templateInsertUpdatesSelection:f,__experimentalCaptureToolbars:p,__experimentalAppenderTagName:m,renderAppender:g,orientation:h,placeholder:b,layout:v,name:y,blockType:_,parentLock:w,defaultLayout:k}=e;_Se(t,w,o,r,n,i,s,a,u,p,h,v),kSe(t,l,u,f);let x=(0,Gy.getBlockSupport)(y,"layout")||(0,Gy.getBlockSupport)(y,"__experimentalLayout")||PSe,{allowSizingOnChildren:C=!1}=x,E=v||x.default||PSe,R=(0,Bx.useMemo)(()=>({...k,...E,...C&&{allowSizingOnChildren:!0}}),[k,E,C]),S=(0,ip.jsx)(Qtt,{rootClientId:t,renderAppender:g,__experimentalAppenderTagName:m,layout:R,wrapperRef:d,placeholder:b});return!_?.providesContext||Object.keys(_.providesContext).length===0?S:(0,ip.jsx)(Xtt,{clientId:t,children:S})}function Jtt(e){return nD(e),(0,ip.jsx)(MSe,{...e})}var F5=(0,Bx.forwardRef)((e,t)=>{let o=$y({ref:t},e);return(0,ip.jsx)("div",{className:"block-editor-inner-blocks",children:(0,ip.jsx)("div",{...o})})});function $y(e={},t={}){let{__unstableDisableLayoutClassNames:o,__unstableDisableDropZone:r,dropZoneElement:n,layout:i}=t,{clientId:s,layout:a=null,__unstableLayoutClassNames:l=""}=kt(),u=i??a,d=(0,ASe.useSelect)(x=>{let{getBlockName:C,isZoomOut:E,getTemplateLock:R,getBlockRootClientId:S,getBlockEditingMode:I,getBlockSettings:O,getSectionRootClientId:A}=K(x(B));if(!s){let D=A();return{isDropZoneDisabled:E()&&D!==""}}let{hasBlockSupport:P,getBlockType:L}=x(Gy.store),H=C(s),N=I(s),M=S(s),[V]=O(s,"layout"),j=N==="disabled";if(E()){let D=A();j=s!==D}return{__experimentalCaptureToolbars:P(H,"__experimentalExposeControlsToChildren",!1),name:H,blockType:L(H),parentLock:R(M),parentClientId:M,isDropZoneDisabled:j,defaultLayout:V}},[s]),{__experimentalCaptureToolbars:f,name:p,blockType:m,parentLock:g,parentClientId:h,isDropZoneDisabled:b,defaultLayout:v}=d,y=ISe({dropZoneElement:n,rootClientId:s,parentClientId:h}),_=(0,OSe.useMergeRefs)([e.ref,r||b||u?.isManualPlacement&&window.__experimentalEnableGridInteractivity?null:y]),w={__experimentalCaptureToolbars:f,layout:u,name:p,blockType:m,parentLock:g,defaultLayout:v,...t},k=w.value&&w.onChange?Jtt:MSe;return{...e,ref:_,className:Y(e.className,"block-editor-block-list__layout",o?"":l),children:s?(0,ip.jsx)(k,{...w,clientId:s}):(0,ip.jsx)(RT,{...t})}}$y.save=Gy.__unstableGetInnerBlocksProps;F5.DefaultBlockAppender=gSe;F5.ButtonBlockAppender=pSe;F5.Content=()=>$y.save().children;var UT=F5;var GT=c(q(),1),NSe=c(ue(),1),LSe=c(ee(),1),DSe=c(F(),1),VSe=c(Z(),1);var z5=c(T(),1);function Sq({clientId:e,rootClientId:t="",position:o="top"}){let[r,n]=(0,DSe.useState)(!1),{sectionRootClientId:i,sectionClientIds:s,insertionPoint:a,blockInsertionPointVisible:l,blockInsertionPoint:u,blocksBeingDragged:d}=(0,LSe.useSelect)(k=>{let{getInsertionPoint:x,getBlockOrder:C,getSectionRootClientId:E,isBlockInsertionPointVisible:R,getBlockInsertionPoint:S,getDraggedBlockClientIds:I}=K(k(B)),O=E(),A=C(O);return{sectionRootClientId:O,sectionClientIds:A,insertionPoint:x(),blockInsertionPoint:S(),blockInsertionPointVisible:R(),blocksBeingDragged:I()}},[]),f=(0,NSe.useReducedMotion)();if(!e)return;let p=!1;if(!(t===i&&s&&s.includes(e)))return null;let g=a?.index===0&&e===s[a.index],h=a&&a.hasOwnProperty("index")&&e===s[a.index-1];o==="top"&&(p=g||l&&u.index===0&&e===s[u.index]),o==="bottom"&&(p=h||l&&e===s[u.index-1]);let b=d[0],v=d.includes(e),y=s.indexOf(b),w=(y>0?s[y-1]:null)===e;return(v||w)&&(p=!1),(0,z5.jsx)(GT.__unstableAnimatePresence,{children:p&&(0,z5.jsx)(GT.__unstableMotion.div,{initial:{height:0},animate:{height:"calc(1 * var(--wp-block-editor-iframe-zoom-out-frame-size) / var(--wp-block-editor-iframe-zoom-out-scale)"},exit:{height:0},transition:{type:"tween",duration:f?0:.2,ease:[.6,0,.4,1]},className:Y("block-editor-block-list__zoom-out-separator",{"is-dragged-over":r}),"data-is-insertion-point":"true",onDragOver:()=>n(!0),onDragLeave:()=>n(!1),children:(0,z5.jsx)(GT.__unstableMotion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:-.125}},transition:{ease:"linear",duration:.1,delay:.125},children:(0,VSe.__)("Drop pattern.")})})})}var gs=c(T(),1),XO=(0,sp.createContext)();XO.displayName="IntersectionObserverContext";var j5=new WeakMap,eot={trailing:!0};function tot({className:e,...t}){let{isOutlineMode:o,isFocusMode:r,isPreviewMode:n,editedContentOnlySection:i}=(0,Ml.useSelect)(f=>{let{getSettings:p,isTyping:m,hasBlockSpotlight:g,getEditedContentOnlySection:h}=K(f(B)),{outlineMode:b,focusMode:v,isPreviewMode:y}=p();return{isOutlineMode:b&&!m(),isFocusMode:!y&&(v||g()),isPreviewMode:y,editedContentOnlySection:h()}},[]),s=(0,Ml.useRegistry)(),{setBlockVisibility:a}=(0,Ml.useDispatch)(B),l=(0,H5.useDebounce)((0,sp.useCallback)(()=>{let f={};j5.get(s).forEach(([p,m])=>{f[p]=m}),a(f)},[s]),300,eot),u=(0,sp.useMemo)(()=>{let{IntersectionObserver:f}=window;if(f)return new f(p=>{j5.get(s)||j5.set(s,[]);for(let m of p){let g=m.target.getAttribute("data-block");j5.get(s).push([g,m.isIntersecting])}l()})},[]),d=$y({ref:(0,H5.useMergeRefs)([jy(),lSe()]),className:Y("is-root-container",e,{"is-outline-mode":o,"is-focus-mode":r,"is-preview-mode":n})},t);return(0,gs.jsxs)(XO.Provider,{value:u,children:[(0,gs.jsx)("div",{...d}),!!i&&(0,gs.jsx)(oot,{clientId:i})]})}function oot({clientId:e}){let{stopEditingContentOnlySection:t}=K((0,Ml.useDispatch)(B)),o=(0,Ml.useSelect)(r=>{let{isBlockSelected:n,hasSelectedInnerBlock:i,getBlockSelectionStart:s}=r(B);return!s()||n(e)||i(e,!0)},[e]);return(0,sp.useEffect)(()=>{o||t()},[o,t]),null}function tx(e){return(0,gs.jsx)(aI,{value:p9,children:(0,gs.jsx)(tot,{...e})})}var rot=[],not=new Set;function iot({placeholder:e,rootClientId:t,renderAppender:o,__experimentalAppenderTagName:r,layout:n=uH}){let i=o!==!1,s=!!o,{order:a,isZoomOut:l,selectedBlocks:u,visibleBlocks:d,ghostBlockName:f,ghostBlockAttributes:p,shouldRenderAppender:m}=(0,Ml.useSelect)(v=>{let{getSettings:y,getBlockOrder:_,getSelectedBlockClientIds:w,__unstableGetVisibleBlocks:k,getTemplateLock:x,getBlockEditingMode:C,isSectionBlock:E,isContainerInsertableToInContentOnlyMode:R,getBlockName:S,getBlockListSettings:I,isZoomOut:O,canInsertBlockType:A}=K(v(B)),P=_(t);if(y().isPreviewMode)return{order:P,selectedBlocks:rot,visibleBlocks:not};let L,H;if(i&&!s&&!P.length){let $=(t?I(t)?.defaultBlock:void 0)??{name:(0,$T.getDefaultBlockName)()};$.name&&A($.name,t)&&(L=$.name,H=$.attributes)}let N=w(),M=N[0],V=!t&&!M&&(!P.length||!A((0,$T.getDefaultBlockName)(),t)),j=!!(t&&M&&t===M),D=x(t),z=(!E(t)||R(S(M),t))&&C(t)!=="disabled"&&(!D||D==="contentOnly")&&i&&!O();return{order:P,selectedBlocks:N,visibleBlocks:k(),isZoomOut:O(),ghostBlockName:z?L:void 0,ghostBlockAttributes:H,shouldRenderAppender:z&&(s||j||V)}},[t,i,s]),g=(0,sp.useMemo)(()=>f?(0,$T.createBlock)(f,p):null,[f,p]),h=!!g,b=h?[...a,g.clientId]:a;return(0,gs.jsxs)(oO,{value:n,children:[b.map(v=>(0,gs.jsxs)(Ml.AsyncModeProvider,{value:v!==g?.clientId&&!d.has(v)&&!u.includes(v),children:[l&&(0,gs.jsx)(Sq,{clientId:v,rootClientId:t,position:"top"}),(0,gs.jsx)(aA,{rootClientId:t,clientId:v,ghostBlock:v===g?.clientId?g:void 0}),l&&(0,gs.jsx)(Sq,{clientId:v,rootClientId:t,position:"bottom"})]},v)),a.length<1&&e,m&&!h&&(0,gs.jsx)(Uxe,{tagName:r,rootClientId:t,CustomAppender:o})]})}function RT(e){return(0,gs.jsx)(Ml.AsyncModeProvider,{value:!1,children:(0,gs.jsx)(iot,{...e})})}var Qx=c(ee(),1),cZ=c(Dt(),1),uZ=c(q(),1),sEe=c(fl(),1),lV=c(F(),1),cV=c(ce(),1),dZ=c(Yo(),1),Jx=c(Z(),1);var m0e=c(ue(),1),g0e=c(ee(),1),h0e=c(Dt(),1),Cd=c(F(),1);var Xc=c(Z(),1),qy=c(ce(),1),l0e=c(ue(),1),c0e=c(ee(),1),e3=c(F(),1);var q5=c(q(),1),$Se=c(uw(),1),YSe=c(Nt(),1),Px=c(F(),1);var Nn=c(q(),1),FSe=(0,Nn.createSlotFill)("InspectorControls"),sot=(0,Nn.createSlotFill)("InspectorAdvancedControls"),aot=(0,Nn.createSlotFill)("InspectorControlsBindings"),lot=(0,Nn.createSlotFill)("InspectorControlsBackground"),cot=(0,Nn.createSlotFill)("InspectorControlsBorder"),uot=(0,Nn.createSlotFill)("InspectorControlsColor"),dot=(0,Nn.createSlotFill)("InspectorControlsFilter"),fot=(0,Nn.createSlotFill)("InspectorControlsDimensions"),pot=(0,Nn.createSlotFill)("InspectorControlsLayout"),mot=(0,Nn.createSlotFill)("InspectorControlsElements"),got=(0,Nn.createSlotFill)("InspectorControlsPosition"),hot=(0,Nn.createSlotFill)("InspectorControlsTypography"),bot=(0,Nn.createSlotFill)("InspectorControlsViewport"),yot=(0,Nn.createSlotFill)("InspectorControlsListView"),vot=(0,Nn.createSlotFill)("InspectorControlsStyles"),_ot=(0,Nn.createSlotFill)("InspectorControlsEffects"),wot=(0,Nn.createSlotFill)("InspectorControlsContent"),kot={default:FSe,advanced:sot,background:lot,bindings:aot,border:cot,color:uot,content:wot,dimensions:fot,effects:_ot,elements:mot,filter:dot,layout:pot,list:yot,position:got,settings:FSe,styles:vot,typography:hot,viewport:bot},Zc=kot,YT=(0,Nn.createSlotFill)(Symbol("PrivateInspectorControlsAllowedBlocks"));var W5=c(F(),1);var KT="default",ea={viewport:KT,pseudo:KT},zSe=(0,W5.createContext)(ea),U5=zSe.Provider;function Nl(){return(0,W5.useContext)(zSe)}function _i(e){return!!e?.viewport&&e.viewport!==KT}function Aa(e){return!!e?.pseudo&&e.pseudo!==KT}function Zn(e){return!_i(e)&&!Aa(e)}function jSe(e){return Zn(e)?[]:[e.viewport,e.pseudo].filter(t=>t&&t!==KT)}function Ao(e,t){let o=jSe(t);return o.length?bf(e,o):e}function wn(e,t,o){let r=jSe(t);return r.length?Xe(Ue(e,r,o)):Xe(o)}function HSe(e,t){return!t||Zn(e)?t:o=>{let r=Ao(o?.style,e)||{},n=t({style:r}),i=n&&typeof n=="object"&&!Array.isArray(n)&&Object.prototype.hasOwnProperty.call(n,"style")?n.style:n;return{style:wn(o?.style,e,i)}}}var Ix=c(q(),1),$5=c(F(),1),WSe=c(ue(),1),Y5=c(ee(),1);var G5=c(T(),1),USe=Symbol("ListViewContentPopover"),{Fill:GSe,Slot:xot}=(0,Ix.createSlotFill)(USe);function Sot(){return(0,WSe.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:35,resize:!1}}}function K5({listViewRef:e}){let{popoverProps:t}=Sot(),o=(0,Ix.__experimentalUseSlotFills)(USe),r=!!(o&&o.length),{selectedClientId:n,isOpen:i}=(0,Y5.useSelect)(u=>{let{getSelectedBlockClientId:d}=u(B),f=K(u(B));return{selectedClientId:d(),isOpen:f.isListViewContentPanelOpen()}},[]),[s,a]=(0,$5.useState)(null);(0,$5.useLayoutEffect)(()=>{if(!n||!e?.current){a(null);return}let u=e.current.querySelector(`[data-block="$n}"]`);a(u)},[n,e]);let{closeListViewContentPanel:l}=K((0,Y5.useDispatch)(B));return!i||!r||!s?null:(0,G5.jsx)(Ix.Popover,{...t??{},className:"block-editor-inspector-list-view-content-popover",anchor:s,onClose:l,children:(0,G5.jsx)("div",{style:{width:"280px"},children:(0,G5.jsx)(xot,{})})})}var Yy=c(T(),1),Cot=["content","list"];function Ky({children:e,group:t="default",__experimentalGroup:o,resetAllFilter:r}){o&&((0,YSe.default)("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=o);let n=kt(),i=n[Nu],s=n[r_],a=n[U0],l=Zc[t]?.Fill;if(!l)return(0,$Se.default)(`Unknown InspectorControls group "$t}" provided.`),null;if(s){let d=n.name==="core/template-part",f=Cot.includes(t);if(!(d||f))return null}else if(!i)return null;let u=t==="content"&&s&&a;return u&&!i?null:(0,Yy.jsx)(q5.__experimentalStyleProvider,{document,children:u?(0,Yy.jsx)(GSe,{children:e}):(0,Yy.jsx)(l,{children:d=>(0,Yy.jsx)(Tot,{fillProps:d,resetAllFilter:r,children:e})})})}function Eot({resetAllFilter:e,children:t}){let{registerResetAllFilter:o,deregisterResetAllFilter:r}=(0,Px.useContext)(q5.__experimentalToolsPanelContext),n=Nl(),i=(0,Px.useMemo)(()=>HSe(n,e),[e,n]);return(0,Px.useEffect)(()=>{if(i&&o&&r)return o(i),()=>{r(i)}},[i,o,r]),t}function Tot({children:e,resetAllFilter:t,fillProps:o}){let{forwardedContext:r=[]}=o,n=(0,Yy.jsx)(Eot,{resetAllFilter:t,children:e});return r.reduce((i,[s,a])=>(0,Yy.jsx)(s,{...a,children:i}),n)}var t0e=c(q(),1),o0e=c(F(),1),r0e=c(uw(),1),n0e=c(Nt(),1);var qSe=c(q(),1),Z5=c(ee(),1),ZSe=c(F(),1);var KSe=c(ue(),1);function Vr(){return(0,KSe.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}function Ox(e,t){if(!e||!t)return t;let o=e.split(","),r=t.split(","),n=[];return o.forEach(i=>{r.forEach(s=>{n.push(`$i.trim()} $s.trim()}`)})}),n.join(", ")}function qT(e){if(typeof e!="string")return;let[,t]=e.match(/^var:preset\|duotone\|(.+)$/)??[];return t}var XSe=c(T(),1);function QSe({children:e,group:t,label:o}){let{updateBlockAttributes:r}=(0,Z5.useDispatch)(B),{getBlockAttributes:n,getBlockName:i,getMultiSelectedBlockClientIds:s,getSelectedBlockClientId:a,hasMultiSelection:l}=(0,Z5.useSelect)(B),u=Vr(),d=a(),f=(0,ZSe.useCallback)((p=[])=>{let m={},g=l()?s():[d];g.forEach(h=>{let b=n(h)||{},{style:v}=b,y={style:v},_={attributes:b,clientId:h,name:i(h)};p.forEach(w=>{y={...y,...w(y,_)}}),y={...y,style:Xe(y.style)},m[h]=y}),r(g,m,!0)},[n,i,s,l,d,r]);return(0,XSe.jsx)(qSe.__experimentalToolsPanel,{className:`$t}-block-support-panel`,label:o,resetAll:f,panelId:d,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:u,children:e},d)}var Cq=c(q(),1),X5=c(F(),1),JSe=c(T(),1);function e0e({Slot:e,fillProps:t,...o}){let r=(0,X5.useContext)(Cq.__experimentalToolsPanelContext),n=(0,X5.useMemo)(()=>({...t??{},forwardedContext:[...t?.forwardedContext??[],[Cq.__experimentalToolsPanelContext.Provider,{value:r}]]}),[r,t]);return(0,JSe.jsx)(e,{...o,fillProps:n,bubblesVirtually:!0})}var Q5=c(T(),1);function Rot({__experimentalGroup:e,group:t="default",label:o,fillProps:r,...n},i){e&&((0,n0e.default)("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);let s=Zc[t],a=(0,t0e.__experimentalUseSlotFills)(s?.name);if(!s)return(0,r0e.default)(`Unknown InspectorControls group "$t}" provided.`),null;if(!a?.length)return null;let{Slot:l}=s;return o?(0,Q5.jsx)(QSe,{group:t,label:o,children:(0,Q5.jsx)(e0e,{...n,fillProps:r,Slot:l})}):(0,Q5.jsx)(l,{...n,ref:i,fillProps:r,bubblesVirtually:!0})}var Eq=(0,o0e.forwardRef)(Rot);var Tq=c(T(),1),i0e=Ky;i0e.Slot=Eq;var Wg=e=>(0,Tq.jsx)(Ky,{...e,group:"advanced"});Wg.Slot=function(t){return(0,Tq.jsx)(Eq,{...t,group:"advanced"})};Wg.slotName="InspectorAdvancedControls";var Ve=i0e;var s0e=c(ee(),1),Ug=c(ce(),1),ZT=c(Z(),1);function J5(e){let t=e?.style?.position?.type;return t==="sticky"?(0,ZT.__)("Sticky"):t==="fixed"?(0,ZT.__)("Fixed"):null}function Ln(e){return(0,s0e.useSelect)(t=>{if(!e)return null;let o=t(B),{getBlockName:r,getBlockAttributes:n,getBlock:i,__experimentalGetParsedPattern:s}=o,{getBlockType:a,getActiveBlockVariation:l}=t(Ug.store),u=r(e),d=a(u);if(!d)return null;let f=n(e),{isSectionBlock:p}=K(o),m=f?.metadata?.patternName;if(m&&p(e)){let w=s(m),k=J5(f);return{isSynced:!1,title:(0,ZT.__)("Pattern"),icon:tl,description:w?.description||(0,ZT.__)("A block pattern."),anchor:f?.anchor,positionLabel:k,positionType:f?.style?.position?.type,name:w?.title||f?.metadata?.name}}let g=l(u,f,void 0,i?.(e)?.innerContent),h=(0,Ug.isReusableBlock)(d)||(0,Ug.isTemplatePart)(d),v=(h?(0,Ug.__experimentalGetBlockLabel)(d,f):void 0)||d.title,y=J5(f),_={isSynced:h,title:v,icon:d.icon,description:d.description,anchor:f?.anchor,positionLabel:y,positionType:f?.style?.position?.type,name:f?.metadata?.name};return g?{isSynced:h,title:g.title||d.title,icon:g.icon||d.icon,description:g.description||d.description,anchor:f?.anchor,positionLabel:y,positionType:f?.style?.position?.type,name:f?.metadata?.name}:_},[e])}var Gg=c(T(),1),XT="position",Rq={key:"default",value:"",label:(0,Xc.__)("Default")},Bq={key:"sticky",value:"sticky",label:(0,Xc._x)("Sticky","Name for the value of the CSS position property"),hint:(0,Xc.__)("The block will stick to the top of the window instead of scrolling.")},a0e={key:"fixed",value:"fixed",label:(0,Xc._x)("Fixed","Name for the value of the CSS position property"),hint:(0,Xc.__)("The block will not move when the page is scrolled.")},Bot=["top","right","bottom","left"],Iot=["sticky","fixed"];function Pot({selector:e,style:t}){let o="",{type:r}=t?.position||{};return Iot.includes(r)&&(o+=`$e} {`,o+=`position: $r};`,Bot.forEach(n=>{t?.position?.[n]!==void 0&&(o+=`$n}: $t.position[n]};`)}),(r==="sticky"||r==="fixed")&&(o+="z-index: 10"),o+="}"),o}function Oot(e){let t=(0,qy.getBlockSupport)(e,XT);return!!(t===!0||t?.sticky)}function Aot(e){let t=(0,qy.getBlockSupport)(e,XT);return!!(t===!0||t?.fixed)}function Mot(e){return!!(0,qy.getBlockSupport)(e,XT)}function u0e(e){let t=e?.style?.position?.type;return t==="sticky"||t==="fixed"}function d0e({name:e}={}){let[t,o]=je("position.fixed","position.sticky"),r=!t&&!o;return!Mot(e)||r}function Not({style:e={},clientId:t,name:o,setAttributes:r}){let n=Aot(o),i=Oot(o),s=e?.position?.type,{firstParentClientId:a}=(0,c0e.useSelect)(g=>{let{getBlockParents:h}=g(B),b=h(t);return{firstParentClientId:b[b.length-1]}},[t]),l=Ln(a),u=i&&s===Bq.value&&l?(0,Xc.sprintf)((0,Xc.__)("The block will stick to the scrollable area of the parent %s block."),l.title):null,d=(0,e3.useMemo)(()=>{let g=[Rq];return(i||s===Bq.value)&&g.push(Bq),(n||s===a0e.value)&&g.push(a0e),g},[n,i,s]),f=g=>{let b={...e,position:{...e?.position,type:g,top:g==="sticky"||g==="fixed"?"0px":void 0}};r({style:Xe(b)})},p=s&&d.find(g=>g.value===s)||Rq,m=(0,e3.useId)();return d.length>1?(0,Gg.jsx)(Ve,{group:"position",children:(0,Gg.jsx)(jY,{label:(0,Xc.__)("Position"),hideLabelFromVision:!0,description:u,popupWidth:"anchor",items:d,value:p,onValueChange:g=>{f(g.value)},children:d.map(g=>{let h=g.hint?`$m}-$g.key}`:void 0;return(0,Gg.jsxs)(jY.Item,{value:g,label:g.label,"aria-describedby":h,children:[(0,Gg.jsx)("div",{children:g.label}),g.hint&&(0,Gg.jsx)("div",{id:h,className:"block-editor-hooks__position-control-item-hint","aria-hidden":"true",children:g.hint})]},g.key)})})}):null}var Iq={edit:function(t){return d0e(t)?null:(0,Gg.jsx)(Not,{...t})},useBlockProps:Dot,attributeKeys:["style"],hasSupport(e){return(0,qy.hasBlockSupport)(e,XT)}},Lot={};function Dot({name:e,style:t}){let o=(0,qy.hasBlockSupport)(e,XT),r=d0e({name:e}),n=o&&!r,i=(0,l0e.useInstanceId)(Lot),s=`.wp-container-$i}.wp-container-$i}`,a;n&&(a=Pot({selector:s,style:t})||"");let l=Y({[`wp-container-$i}`]:n&&!!a,[`is-position-$t?.position?.type}`]:n&&!!a&&!!t?.position?.type});return Qc({css:a}),{className:l}}var b0e={placement:"top-start"},f0e={...b0e,flip:!1,shift:!0},Vot={...b0e,flip:!0,shift:!1};function p0e(e,t,o,r,n){if(!e||!t)return f0e;let i=o?.scrollTop||0,s=ww(t),a=e.getBoundingClientRect(),l=i+a.top,u=e.ownerDocument.documentElement.clientHeight,d=l+r,f=s.top>d,p=s.height>u-r;return!n&&(f||p)?f0e:Vot}function t3({contentElement:e,clientId:t}){let o=Zt(t),[r,n]=(0,Cd.useState)(0),{blockIndex:i,isSticky:s}=(0,g0e.useSelect)(p=>{let{getBlockIndex:m,getBlockAttributes:g}=p(B);return{blockIndex:m(t),isSticky:u0e(g(t))}},[t]),a=(0,Cd.useMemo)(()=>{if(e)return(0,h0e.getScrollContainer)(e)},[e]),[l,u]=(0,Cd.useState)(()=>p0e(e,o,a,r,s)),d=(0,m0e.useRefEffect)(p=>{n(p.offsetHeight)},[]),f=(0,Cd.useCallback)(()=>u(p0e(e,o,a,r,s)),[e,o,a,r,s]);return(0,Cd.useLayoutEffect)(f,[i,f]),(0,Cd.useLayoutEffect)(()=>{if(!e||!o)return;let p=e?.ownerDocument?.defaultView;p?.addEventListener?.("resize",f);let m,g=o?.ownerDocument?.defaultView;return g?.ResizeObserver&&(m=new g.ResizeObserver(f),m.observe(o)),()=>{p?.removeEventListener?.("resize",f),m&&m.disconnect()}},[f,e,o]),{...l,ref:d}}var y0e=c(ee(),1);function o3(e){return(0,y0e.useSelect)(o=>{let{getBlockRootClientId:r,getBlockParents:n,__experimentalGetBlockListSettingsForBlocks:i,isBlockInsertionPointVisible:s,getBlockInsertionPoint:a,getBlockOrder:l,hasMultiSelection:u,getLastMultiSelectedBlockClientId:d}=o(B),f=n(e),p=i(f),m=f.find(h=>p[h]?.__experimentalCaptureToolbars),g=!1;if(s()){let h=a();g=l(h.rootClientId)[h.index]===e}return{capturingClientId:m,isInsertionPointVisible:g,lastClientId:u()?d():null,rootClientId:r(e)}},[e])}var r3=c(T(),1);function v0e({clientId:e,__unstableContentRef:t}){let{isInsertionPointVisible:o,lastClientId:r,rootClientId:n}=o3(e),i=t3({contentElement:t?.current,clientId:e});return(0,r3.jsx)(Al,{clientId:e,bottomClientId:r,className:Y("block-editor-block-list__block-side-inserter-popover",{"is-insertion-point-visible":o}),__unstableContentRef:t,...i,children:(0,r3.jsx)("div",{className:"block-editor-block-list__empty-block-inserter",children:(0,r3.jsx)(Qs,{position:"bottom right",rootClientId:n,clientId:e,__experimentalIsQuick:!0})})})}var q1e=c(ee(),1),Xx=c(F(),1),Z1e=c(fl(),1);var U1e=c(Z(),1),G1e=c(ee(),1),iZ=c(F(),1),$1e=c(ue(),1),bp=c(ce(),1),Y1e=c(q(),1);var Zy=c(q(),1),I0e=c(ee(),1),P0e=c(Z(),1);var S0e=c(ce(),1),C0e=c(q(),1),QT=c(ee(),1),JT=c(F(),1),E0e=c(ue(),1);var w0e=c(Dt(),1),Ed=c(F(),1),n3=50,k0e=25,Fot=1e3,_0e=Fot*(k0e/1e3);function x0e(){let e=(0,Ed.useRef)(null),t=(0,Ed.useRef)(null),o=(0,Ed.useRef)(null),r=(0,Ed.useRef)(null);(0,Ed.useEffect)(()=>()=>{r.current&&(clearInterval(r.current),r.current=null)},[]);let n=(0,Ed.useCallback)(a=>{e.current=a.clientY,o.current=(0,w0e.getScrollContainer)(a.target),r.current=setInterval(()=>{if(o.current&&t.current){let l=o.current.scrollTop+t.current;o.current.scroll({top:l})}},k0e)},[]),i=(0,Ed.useCallback)(a=>{if(!o.current)return;let l=o.current.offsetHeight,u=e.current-o.current.offsetTop,d=a.clientY-o.current.offsetTop;if(a.clientY>u){let f=Math.max(l-u-n3,0),p=Math.max(d-u-n3,0),m=f===0||p===0?0:p/f;t.current=_0e*m}else if(a.clientY<u){let f=Math.max(u-n3,0),p=Math.max(u-d-n3,0),m=f===0||p===0?0:p/f;t.current=-_0e*m}else t.current=0},[]);return[n,i,()=>{e.current=null,o.current=null,r.current&&(clearInterval(r.current),r.current=null)}]}var Pq=c(T(),1),zot=({appendToOwnerDocument:e,children:t,clientIds:o,cloneClassname:r,elementId:n,onDragStart:i,onDragEnd:s,fadeWhenDisabled:a=!1,dragComponent:l})=>{let{srcRootClientId:u,isDraggable:d,icon:f,visibleInserter:p,getBlockType:m}=(0,QT.useSelect)(S=>{let{canMoveBlocks:I,getBlockRootClientId:O,getBlockName:A,getBlockAttributes:P,isBlockInsertionPointVisible:L}=S(B),{getBlockType:H,getActiveBlockVariation:N}=S(S0e.store),M=O(o[0]),V=A(o[0]),j=N(V,P(o[0]));return{srcRootClientId:M,isDraggable:I(o),icon:j?.icon||H(V)?.icon,visibleInserter:L(),getBlockType:H}},[o]),g=(0,JT.useRef)(!1),[h,b,v]=x0e(),{getAllowedBlocks:y,getBlockNamesByClientId:_,getBlockRootClientId:w}=(0,QT.useSelect)(B),{startDraggingBlocks:k,stopDraggingBlocks:x}=(0,QT.useDispatch)(B);(0,JT.useEffect)(()=>()=>{g.current&&x()},[]);let E=Zt(o[0])?.closest("body");return(0,JT.useEffect)(()=>{if(!E||!a)return;let I=(0,E0e.throttle)(O=>{if(!O.target.closest("[data-block]"))return;let A=_(o),P=O.target.closest("[data-block]").getAttribute("data-block"),L=y(P),H=_([P])[0],N;if(L?.length===0){let M=w(P),V=_([M])[0],j=y(M);N=V5(m,j,A,V)}else N=V5(m,L,A,H);!N&&!p?window?.document?.body?.classList?.add("block-draggable-invalid-drag-token"):window?.document?.body?.classList?.remove("block-draggable-invalid-drag-token")},200);return E.addEventListener("dragover",I),()=>{E.removeEventListener("dragover",I)}},[o,E,a,y,_,w,m,p]),d?(0,Pq.jsx)(C0e.Draggable,{appendToOwnerDocument:e,cloneClassname:r,__experimentalTransferDataType:"wp-blocks",transferData:{type:"block",srcClientIds:o,srcRootClientId:u},onDragStart:S=>{window.requestAnimationFrame(()=>{k(o),g.current=!0,h(S),i&&i()})},onDragOver:b,onDragEnd:()=>{x(),g.current=!1,v(),s&&s()},__experimentalDragComponent:l!==void 0?l:(0,Pq.jsx)(KD,{count:o.length,icon:f,fadeWhenDisabled:!0}),elementId:n,children:({onDraggableStart:S,onDraggableEnd:I})=>t({draggable:!0,onDragStart:S,onDragEnd:I})}):t({draggable:!1})},i3=zot;var R0e=c(ce(),1),B0e=c(q(),1);var s3=c(ue(),1),a3=c(ee(),1),Ax=c(F(),1),hs=c(Z(),1),l3=c(wo(),1);var dt=c(Z(),1),$g=(e,t)=>e==="up"?t==="horizontal"?(0,dt.isRTL)()?"right":"left":"up":e==="down"?t==="horizontal"?(0,dt.isRTL)()?"left":"right":"down":null;function T0e(e,t,o,r,n,i,s){let a=o+1;if(e>1)return jot(e,o,r,n,i,s);if(r&&n)return(0,dt.sprintf)((0,dt.__)("Block %s is the only block, and cannot be moved"),t);if(i>0&&!n){let l=$g("down",s);if(l==="down")return(0,dt.sprintf)((0,dt.__)("Move %1$s block from position %2$d down to position %3$d"),t,a,a+1);if(l==="left")return(0,dt.sprintf)((0,dt.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a+1);if(l==="right")return(0,dt.sprintf)((0,dt.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a+1)}if(i>0&&n){let l=$g("down",s);if(l==="down")return(0,dt.sprintf)((0,dt.__)("Block %1$s is at the end of the content and can\u2019t be moved down"),t);if(l==="left")return(0,dt.sprintf)((0,dt.__)("Block %1$s is at the end of the content and can\u2019t be moved left"),t);if(l==="right")return(0,dt.sprintf)((0,dt.__)("Block %1$s is at the end of the content and can\u2019t be moved right"),t)}if(i<0&&!r){let l=$g("up",s);if(l==="up")return(0,dt.sprintf)((0,dt.__)("Move %1$s block from position %2$d up to position %3$d"),t,a,a-1);if(l==="left")return(0,dt.sprintf)((0,dt.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a-1);if(l==="right")return(0,dt.sprintf)((0,dt.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a-1)}if(i<0&&r){let l=$g("up",s);if(l==="up")return(0,dt.sprintf)((0,dt.__)("Block %1$s is at the beginning of the content and can\u2019t be moved up"),t);if(l==="left")return(0,dt.sprintf)((0,dt.__)("Block %1$s is at the beginning of the content and can\u2019t be moved left"),t);if(l==="right")return(0,dt.sprintf)((0,dt.__)("Block %1$s is at the beginning of the content and can\u2019t be moved right"),t)}}function jot(e,t,o,r,n,i){let s=t+1;if(o&&r)return(0,dt.__)("All blocks are selected, and cannot be moved");if(n>0&&!r){let a=$g("down",i);if(a==="down")return(0,dt.sprintf)((0,dt.__)("Move %1$d blocks from position %2$d down by one place"),e,s);if(a==="left")return(0,dt.sprintf)((0,dt.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if(a==="right")return(0,dt.sprintf)((0,dt.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(n>0&&r){let a=$g("down",i);if(a==="down")return(0,dt.__)("Blocks cannot be moved down as they are already at the bottom");if(a==="left")return(0,dt.__)("Blocks cannot be moved left as they are already are at the leftmost position");if(a==="right")return(0,dt.__)("Blocks cannot be moved right as they are already are at the rightmost position")}if(n<0&&!o){let a=$g("up",i);if(a==="up")return(0,dt.sprintf)((0,dt.__)("Move %1$d blocks from position %2$d up by one place"),e,s);if(a==="left")return(0,dt.sprintf)((0,dt.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if(a==="right")return(0,dt.sprintf)((0,dt.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(n<0&&o){let a=$g("up",i);if(a==="up")return(0,dt.__)("Blocks cannot be moved up as they are already at the top");if(a==="left")return(0,dt.__)("Blocks cannot be moved left as they are already are at the leftmost position");if(a==="right")return(0,dt.__)("Blocks cannot be moved right as they are already are at the rightmost position")}}var ap=c(T(),1),Hot=(e,t)=>e==="up"?t==="horizontal"?(0,hs.isRTL)()?br:li:fb:e==="down"?t==="horizontal"?(0,hs.isRTL)()?li:br:Bn:null,Wot=(e,t)=>e==="up"?t==="horizontal"?(0,hs.isRTL)()?(0,hs.__)("Move right"):(0,hs.__)("Move left"):(0,hs.__)("Move up"):e==="down"?t==="horizontal"?(0,hs.isRTL)()?(0,hs.__)("Move left"):(0,hs.__)("Move right"):(0,hs.__)("Move down"):null,Oq=(0,Ax.forwardRef)(({clientIds:e,direction:t,orientation:o,...r},n)=>{let i=(0,s3.useInstanceId)(Oq),s=(0,Ax.useMemo)(()=>Array.isArray(e)?e:[e],[e]),a=s.length,l=(0,s3.useViewportMatch)("small","<"),{blockType:u,isDisabled:d,rootClientId:f,isFirst:p,isLast:m,firstIndex:g,orientation:h="vertical"}=(0,a3.useSelect)(x=>{let{getBlockIndex:C,getBlockRootClientId:E,getBlockOrder:R,getBlock:S,getBlockListSettings:I}=x(B),O=s[0],A=E(O),P=C(O),L=C(s[s.length-1]),H=R(A),N=S(O),M=P===0,V=L===H.length-1,{orientation:j}=I(A)||{};return{blockType:N?(0,R0e.getBlockType)(N.name):null,isDisabled:t==="up"?M:V,rootClientId:A,firstIndex:P,isFirst:M,isLast:V,orientation:o||j}},[t,o,s]),{moveBlocksDown:b,moveBlocksUp:v}=(0,a3.useDispatch)(B),y=t==="up"?v:b,_=x=>{y(e,f),r.onClick&&r.onClick(x)},w=`block-editor-block-mover-button__description-$i}`,k=t==="up"?"t":"y";return(0,ap.jsxs)(ap.Fragment,{children:[(0,ap.jsx)(B0e.Button,{__next40pxDefaultSize:!0,ref:n,className:Y("block-editor-block-mover-button",`is-$t}-button`),icon:Hot(t,h),label:Wot(t,h),tooltipPosition:!l&&t==="down"&&h==="vertical"?"bottom":"top","aria-describedby":w,...r,onClick:d?null:_,disabled:d,accessibleWhenDisabled:!0,shortcut:l3.displayShortcut.secondary(k)}),(0,ap.jsx)(ht,{id:w,children:(0,hs.sprintf)((0,hs.__)("%1$s (%2$s)"),T0e(a,u&&u.title,g,p,m,t==="up"?-1:1,h),l3.shortcutAriaLabel.secondary(k))})]})}),c3=(0,Ax.forwardRef)((e,t)=>(0,ap.jsx)(Oq,{direction:"up",ref:t,...e})),u3=(0,Ax.forwardRef)((e,t)=>(0,ap.jsx)(Oq,{direction:"down",ref:t,...e}));var Td=c(T(),1);function Uot({clientIds:e,hideDragHandle:t}){let{canMove:o,rootClientId:r,isFirst:n,isLast:i,orientation:s,isManualGrid:a}=(0,I0e.useSelect)(l=>{let{getBlockIndex:u,getBlockListSettings:d,canMoveBlocks:f,getBlockOrder:p,getBlockRootClientId:m,getBlockAttributes:g}=l(B),h=Array.isArray(e)?e:[e],b=h[0],v=m(b),y=u(b),_=u(h[h.length-1]),w=p(v),{layout:k={}}=g(v)??{};return{canMove:f(e),rootClientId:v,isFirst:y===0,isLast:_===w.length-1,orientation:d(v)?.orientation,isManualGrid:k.type==="grid"&&k.isManualPlacement&&window.__experimentalEnableGridInteractivity}},[e]);return!o||n&&i&&!r||t&&a?null:(0,Td.jsxs)(Zy.ToolbarGroup,{className:Y("block-editor-block-mover",{"is-horizontal":s==="horizontal"}),children:[!t&&(0,Td.jsx)(i3,{clientIds:e,fadeWhenDisabled:!0,children:l=>(0,Td.jsx)(Zy.Button,{__next40pxDefaultSize:!0,icon:rC,className:"block-editor-block-mover__drag-handle",label:(0,P0e.__)("Drag"),tabIndex:"-1",...l})}),!a&&(0,Td.jsxs)("div",{className:"block-editor-block-mover__move-button-container",children:[(0,Td.jsx)(Zy.ToolbarItem,{children:l=>(0,Td.jsx)(c3,{clientIds:e,...l})}),(0,Td.jsx)(Zy.ToolbarItem,{children:l=>(0,Td.jsx)(u3,{clientIds:e,...l})})]})]})}var d3=Uot;var tR=c(q(),1),f3=c(ee(),1),qg=c(Z(),1),M0e=c(F(),1),p3=c(ce(),1);var eR=c(ee(),1),Yg=c(F(),1);var{clearTimeout:O0e,setTimeout:Got}=window,A0e=200;function $ot({ref:e,isFocused:t,highlightParent:o,debounceTimeout:r=A0e}){let{getSelectedBlockClientId:n,getBlockRootClientId:i}=(0,eR.useSelect)(B),{toggleBlockHighlight:s}=(0,eR.useDispatch)(B),a=(0,Yg.useRef)(),l=(0,eR.useSelect)(h=>h(B).getSettings().isDistractionFree,[]),u=h=>{if(h&&l)return;let b=n(),v=o?i(b):b;s(v,h)},d=()=>e?.current&&e.current.matches(":hover"),f=()=>{let h=d();return!t&&!h},p=()=>{let h=a.current;h&&O0e&&O0e(h)},m=h=>{h&&h.stopPropagation(),p(),u(!0)},g=h=>{h&&h.stopPropagation(),p(),a.current=Got(()=>{f()&&u(!1)},r)};return(0,Yg.useEffect)(()=>()=>{u(!1),p()},[]),{debouncedShowGestures:m,debouncedHideGestures:g}}function Mx({ref:e,highlightParent:t=!1,debounceTimeout:o=A0e}){let[r,n]=(0,Yg.useState)(!1),{debouncedShowGestures:i,debouncedHideGestures:s}=$ot({ref:e,debounceTimeout:o,isFocused:r,highlightParent:t}),a=(0,Yg.useRef)(!1),l=()=>e?.current&&e.current.contains(e.current.ownerDocument.activeElement);return(0,Yg.useEffect)(()=>{let u=e.current,d=()=>{l()&&(n(!0),i())},f=()=>{l()||(n(!1),s())};return u&&!a.current&&(u.addEventListener("focus",d,!0),u.addEventListener("blur",f,!0),a.current=!0),()=>{u&&(u.removeEventListener("focus",d),u.removeEventListener("blur",f))}},[e,a,n,i,s]),{onMouseMove:i,onMouseLeave:s}}var Kg=c(T(),1);function N0e(){let{selectBlock:e}=(0,f3.useDispatch)(B),{parentClientId:t,nextSiblingClientId:o,showInserter:r}=(0,f3.useSelect)(l=>{let{getBlockParents:u,getSelectedBlockClientIds:d,getParentSectionBlock:f,getBlockName:p,getNextBlockClientId:m}=K(l(B)),[g]=d(),h=f(g),b=u(g),v=b[b.length-1],y=h??v,_=(0,p3.getBlockType)(p(y)),w=_?.merge||(0,p3.hasBlockSupport)(_,"__experimentalOnMerge");return{parentClientId:y,nextSiblingClientId:m(g),showInserter:!!y&&y===v&&!w}},[]),n=Ln(t),i=(0,M0e.useRef)(),s=Mx({ref:i,highlightParent:!0}),a=(0,Kg.jsx)(tR.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(t),label:(0,qg.sprintf)((0,qg.__)("Select parent block: %s"),n?.title),showTooltip:!0,icon:(0,Kg.jsx)(Lt,{icon:n?.icon})});return(0,Kg.jsxs)("div",{className:"block-editor-block-parent-selector",ref:i,...s,children:[!r&&a,r&&(0,Kg.jsxs)(tR.ToolbarGroup,{children:[a,(0,Kg.jsx)(Qs,{position:"bottom right",rootClientId:t,clientId:o,isAppender:!o,__experimentalIsQuick:!0,renderToggle:({onToggle:l,isOpen:u,disabled:d,blockTitle:f,hasSingleBlockType:p})=>(0,Kg.jsx)(tR.ToolbarButton,{className:"block-editor-block-parent-selector__inserter",onClick:l,"aria-expanded":u,disabled:d,label:p?(0,qg.sprintf)((0,qg._x)("Add %s","directly add the only allowed block"),f.toLowerCase()):(0,qg._x)("Add block","Generic label for block inserter button"),showTooltip:!0,icon:Ms})})]})]},t)}var m3=c(q(),1);var Xy=c(q(),1),Yot=(0,Xy.createSlotFill)("BlockControls"),Kot=(0,Xy.createSlotFill)("BlockControlsBlock"),qot=(0,Xy.createSlotFill)("BlockFormatControls"),Zot=(0,Xy.createSlotFill)("BlockControlsOther"),Xot=(0,Xy.createSlotFill)("BlockControlsParent"),Qot=(0,Xy.createSlotFill)("BlockControlsStyleState"),Jot={default:Yot,block:Kot,inline:qot,other:Zot,parent:Xot,"style-state":Qot},oR=Jot;function L0e(e,t){let o=kt();return o[Nu]?oR[e]?.Fill:o[o_]&&t?oR.parent.Fill:null}var lp=c(T(),1);function Aq({group:e="default",controls:t,children:o,__experimentalShareWithChildBlocks:r=!1}){let n=L0e(e,r);if(!n)return null;let i=(0,lp.jsxs)(lp.Fragment,{children:[e==="default"&&(0,lp.jsx)(m3.ToolbarGroup,{controls:t}),o]});return(0,lp.jsx)(m3.__experimentalStyleProvider,{document,children:(0,lp.jsx)(n,{children:s=>{let{forwardedContext:a=[]}=s;return a.reduce((l,[u,d])=>(0,lp.jsx)(u,{...d,children:l}),i)}})})}var rR=c(F(),1),cp=c(q(),1),V0e=c(uw(),1);var Mq=c(T(),1),{ComponentsContext:D0e}=K(cp.privateApis);function Nq({group:e="default",...t}){let o=(0,rR.useContext)(cp.__experimentalToolbarContext),r=(0,rR.useContext)(D0e),n=(0,rR.useMemo)(()=>({forwardedContext:[[cp.__experimentalToolbarContext.Provider,{value:o}],[D0e.Provider,{value:r}]]}),[o,r]),i=oR[e],s=(0,cp.__experimentalUseSlotFills)(i.name);if(!i)return(0,V0e.default)(`Unknown BlockControls group "$e}" provided.`),null;if(!s?.length)return null;let{Slot:a}=i,l=(0,Mq.jsx)(a,{...t,bubblesVirtually:!0,fillProps:n});return e==="default"?l:(0,Mq.jsx)(cp.ToolbarGroup,{children:l})}var Lq=c(T(),1),F0e=Aq;F0e.Slot=Nq;var Dq=e=>(0,Lq.jsx)(Aq,{group:"inline",...e});Dq.Slot=function(t){return(0,Lq.jsx)(Nq,{group:"inline",...t})};var Ko=F0e;var z0e=c(q(),1),{Fill:j0e,Slot:ert}=(0,z0e.createSlotFill)("__unstableBlockToolbarLastItem");j0e.Slot=ert;var g3=j0e;var M3=c(q(),1);var jx=c(ce(),1),bs=c(q(),1),Xg=c(ee(),1);var O3=c(F(),1),Vl=c(Z(),1),HCe=c(fl(),1),pp=c(ue(),1);var Dx=c(ee(),1),Vx=c(ce(),1);var rCe=c(F(),1),iR=c(ce(),1),nR=c(ee(),1),nCe=c(Ns(),1),up=c(Z(),1);var Ma=c(ce(),1),trt="align";var H0e="__experimentalBorder",h3="color",ort="customClassName",W0e="typography.__experimentalFontFamily",U0e="typography.fontSize",rrt="typography.lineHeight",nrt="typography.__experimentalFontStyle",irt="typography.__experimentalFontWeight",G0e="typography.textAlign",srt="typography.textColumns",art="typography.__experimentalTextDecoration",lrt="typography.__experimentalWritingMode",crt="typography.__experimentalTextTransform",urt="typography.__experimentalLetterSpacing",drt="layout",frt=[rrt,U0e,nrt,irt,W0e,G0e,srt,art,crt,lrt,urt],prt=["shadow"],mrt="spacing",grt=[...prt,...frt,H0e,h3,mrt],$0e=e=>(0,Ma.hasBlockSupport)(e,trt);function Y0e(e,t="any"){let o=(0,Ma.getBlockSupport)(e,H0e);return o===!0?!0:t==="any"?!!(o?.color||o?.radius||o?.width||o?.style):!!o?.[t]}var K0e=e=>{let t=(0,Ma.getBlockSupport)(e,h3);return t!==null&&typeof t=="object"&&!!t.gradients},q0e=e=>{let t=(0,Ma.getBlockSupport)(e,h3);return t&&t.background!==!1},Z0e=e=>(0,Ma.hasBlockSupport)(e,G0e);var X0e=e=>{let t=(0,Ma.getBlockSupport)(e,h3);return t&&t.text!==!1};var Q0e=e=>(0,Ma.hasBlockSupport)(e,ort,!0);var J0e=e=>(0,Ma.hasBlockSupport)(e,W0e);var eCe=e=>(0,Ma.hasBlockSupport)(e,U0e);var tCe=e=>(0,Ma.hasBlockSupport)(e,drt);var oCe=e=>grt.some(t=>(0,Ma.hasBlockSupport)(e,t));function hrt(e){try{let t=(0,iR.parse)(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return!(t.length===1&&t[0].name==="core/freeform")}catch{return!1}}var brt={align:$0e,borderColor:e=>Y0e(e,"color"),backgroundColor:q0e,textAlign:Z0e,textColor:X0e,gradient:K0e,className:Q0e,fontFamily:J0e,fontSize:eCe,layout:tCe,style:oCe};function yrt(e,t){return Object.entries(brt).reduce((o,[r,n])=>(n(e.name)&&n(t.name)&&(o[r]=e.attributes[r]),o),{})}function Vq(e,t,o){for(let r=0;r<Math.min(t.length,e.length);r+=1)o(e[r].clientId,yrt(t[r],e[r])),Vq(e[r].innerBlocks,t[r].innerBlocks,o)}function Nx(){let e=(0,nR.useRegistry)(),{updateBlockAttributes:t}=(0,nR.useDispatch)(B),{createSuccessNotice:o,createWarningNotice:r,createErrorNotice:n}=(0,nR.useDispatch)(nCe.store);return(0,rCe.useCallback)(async i=>{let s="";try{if(!window.navigator.clipboard){n((0,up.__)("Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers."),{type:"snackbar"});return}s=await window.navigator.clipboard.readText()}catch{n((0,up.__)("Unable to paste styles. Please allow browser clipboard permissions before continuing."),{type:"snackbar"});return}if(!s||!hrt(s)){r((0,up.__)("Unable to paste styles. Block styles couldn't be found within the copied content."),{type:"snackbar"});return}let a=(0,iR.parse)(s);if(a.length===1?e.batch(()=>{Vq(i,i.map(()=>a[0]),t)}):e.batch(()=>{Vq(i,a,t)}),i.length===1){let l=(0,iR.getBlockType)(i[0].name)?.title;o((0,up.sprintf)((0,up.__)("Pasted styles to %s."),l),{type:"snackbar"})}else o((0,up.sprintf)((0,up.__)("Pasted styles to %d blocks."),i.length),{type:"snackbar"})},[e.batch,t,o,r,n])}var Lx=c(ce(),1);function Ll(e,t){let o=(0,Lx.findTransform)((0,Lx.getBlockTransforms)("from",t),r=>r.type==="block"&&r.isMultiBlock&&r.blocks.includes("*"));if(o?.__experimentalConvert){let r=o.__experimentalConvert(e);return Array.isArray(r)?r:[r]}return(0,Lx.switchToBlockType)(e,t)}function iCe({clientIds:e,children:t,__experimentalUpdateSelection:o}){let{getDefaultBlockName:r,getGroupingBlockName:n}=(0,Dx.useSelect)(Vx.store),i=(0,Dx.useSelect)(_=>{let{canInsertBlockType:w,getBlockRootClientId:k,getBlocksByClientId:x,getDirectInsertBlock:C,canRemoveBlocks:E}=_(B),R=x(e),S=k(e[0]),I=w(r(),S),O=S?C(S):null;return{canRemove:E(e),canInsertBlock:R.every(A=>(I||!!O)&&w(A.name,S)),canCopyStyles:R.every(A=>!!A&&((0,Vx.hasBlockSupport)(A.name,"color")||(0,Vx.hasBlockSupport)(A.name,"typography"))),canDuplicate:R.every(A=>!!A&&(0,Vx.hasBlockSupport)(A.name,"multiple",!0)&&w(A.name,S))}},[e,r]),{getBlocksByClientId:s,getBlocks:a}=(0,Dx.useSelect)(B),{canRemove:l,canInsertBlock:u,canCopyStyles:d,canDuplicate:f}=i,{removeBlocks:p,replaceBlocks:m,duplicateBlocks:g,insertAfterBlock:h,insertBeforeBlock:b,flashBlock:v}=(0,Dx.useDispatch)(B),y=Nx();return t({canCopyStyles:d,canDuplicate:f,canInsertBlock:u,canRemove:l,onDuplicate(){return g(e,o)},onRemove(){return p(e,o)},onInsertBefore(){b(e[0])},onInsertAfter(){h(e[e.length-1])},onGroup(){if(!e.length)return;let _=n(),w=Ll(s(e),_);w&&m(e,w)},onUngroup(){if(!e.length)return;let _=a(e[0]);_.length&&m(e,_)},onCopy(){e.length===1&&v(e[0])},async onPasteStyles(){await y(s(e))}})}var sCe=c(q(),1),vrt=(0,sCe.createSlotFill)(Symbol("NoteIconSlotFill")),b3=vrt;var aCe=c(Z(),1),lCe=c(q(),1),y3=c(ce(),1),v3=c(ee(),1);var cCe=c(T(),1);function _rt({clientId:e}){let t=(0,v3.useSelect)(r=>r(B).getBlock(e),[e]),{replaceBlocks:o}=(0,v3.useDispatch)(B);return!t||t.name!=="core/html"?null:(0,cCe.jsx)(lCe.MenuItem,{onClick:()=>o(e,(0,y3.rawHandler)({HTML:(0,y3.getBlockContent)(t)})),children:(0,aCe.__)("Convert to Blocks")})}var uCe=_rt;var dCe=c(q(),1),{Fill:fCe,Slot:wrt}=(0,dCe.createSlotFill)("__unstableBlockSettingsMenuFirstItem");fCe.Slot=wrt;var _3=fCe;var zx=c(q(),1),MCe=c(ce(),1),NCe=c(ee(),1);var zq=c(q(),1),jq=c(Z(),1),k3=c(ee(),1),hCe=c(wo(),1);var pCe=c(ce(),1),mCe=c(ee(),1);function sR(e){return(0,mCe.useSelect)(t=>{let{getBlocksByClientId:o,getSelectedBlockClientIds:r,isUngroupable:n,isGroupable:i}=t(B),{getGroupingBlockName:s,getBlockType:a}=t(pCe.store),l=e?.length?e:r(),u=o(l),[d]=u,f=l.length===1&&n(l[0]);return{clientIds:l,isGroupable:i(l),isUngroupable:f,blocksSelection:u,groupingBlockName:s(),onUngroup:f&&a(d.name)?.transforms?.ungroup}},[e])}var w3=c(ee(),1),gCe=c(ce(),1),Qy=c(q(),1);var aR=c(Z(),1);var Jy=c(T(),1),krt={group:{type:"constrained"},row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"},grid:{type:"grid"}};function xrt(){let{blocksSelection:e,clientIds:t,groupingBlockName:o,isGroupable:r}=sR(),{replaceBlocks:n}=(0,w3.useDispatch)(B),{canRemove:i,variations:s}=(0,w3.useSelect)(g=>{let{canRemoveBlocks:h}=g(B),{getBlockVariations:b}=g(gCe.store);return{canRemove:h(t),variations:b(o,"transform")}},[t,o]),a=g=>{let h=Ll(e,o);typeof g!="string"&&(g="group"),h&&h.length>0&&(h[0].attributes.layout=krt[g],n(t,h))},l=()=>a("row"),u=()=>a("stack"),d=()=>a("grid");if(!r||!i)return null;let f=!!s.find(({name:g})=>g==="group-row"),p=!!s.find(({name:g})=>g==="group-stack"),m=!!s.find(({name:g})=>g==="group-grid");return(0,Jy.jsxs)(Qy.ToolbarGroup,{children:[(0,Jy.jsx)(Qy.ToolbarButton,{icon:aC,label:(0,aR._x)("Group","action: convert blocks to group"),onClick:a}),f&&(0,Jy.jsx)(Qy.ToolbarButton,{icon:Pz,label:(0,aR._x)("Row","action: convert blocks to row"),onClick:l}),p&&(0,Jy.jsx)(Qy.ToolbarButton,{icon:$z,label:(0,aR._x)("Stack","action: convert blocks to stack"),onClick:u}),m&&(0,Jy.jsx)(Qy.ToolbarButton,{icon:sC,label:(0,aR._x)("Grid","action: convert blocks to grid"),onClick:d})]})}var Fq=xrt;var ev=c(T(),1);function bCe({clientIds:e,isGroupable:t,isUngroupable:o,onUngroup:r,blocksSelection:n,groupingBlockName:i,onClose:s=()=>{}}){let{getSelectedBlockClientIds:a}=(0,k3.useSelect)(B),{replaceBlocks:l}=(0,k3.useDispatch)(B),u=()=>{let p=Ll(n,i);p&&l(e,p)},d=()=>{let p=n[0].innerBlocks;p.length&&(r&&(p=r(n[0].attributes,n[0].innerBlocks)),l(e,p))};if(!t&&!o)return null;let f=a();return(0,ev.jsxs)(ev.Fragment,{children:[t&&(0,ev.jsx)(zq.MenuItem,{shortcut:f.length>1?hCe.displayShortcut.primary("g"):void 0,onClick:()=>{u(),s()},children:(0,jq._x)("Group","verb")}),o&&(0,ev.jsx)(zq.MenuItem,{onClick:()=>{d(),s()},children:(0,jq._x)("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor")})]})}var Hq=c(Z(),1),_Ce=c(F(),1),wCe=c(q(),1);var yCe=c(ee(),1);function dp(e){return(0,yCe.useSelect)(t=>{let{canLockBlockType:o,getBlockName:r,isEditLockedBlock:n,isMoveLockedBlock:i,isRemoveLockedBlock:s,isLockedBlock:a}=K(t(B));return{isEditLocked:n(e),isMoveLocked:i(e),isRemoveLocked:s(e),canLock:o(r(e)),isLocked:a(e)}},[e])}var Dl=c(Z(),1),lR=c(F(),1),rn=c(q(),1);var x3=c(ee(),1),vCe=c(ce(),1);var Zo=c(T(),1),Srt=["core/navigation"];function Crt(e){return e.remove&&e.move?"all":e.remove&&!e.move?"insert":!1}function S3({clientId:e,onClose:t}){let[o,r]=(0,lR.useState)({move:!1,remove:!1}),{isEditLocked:n,isMoveLocked:i,isRemoveLocked:s}=dp(e),{allowsEditLocking:a,templateLock:l,hasTemplateLock:u}=(0,x3.useSelect)(v=>{let{getBlockName:y,getBlockAttributes:_}=v(B),w=y(e),k=(0,vCe.getBlockType)(w);return{allowsEditLocking:Srt.includes(w),templateLock:_(e)?.templateLock,hasTemplateLock:!!k?.attributes?.templateLock}},[e]),[d,f]=(0,lR.useState)(!!l),{updateBlockAttributes:p}=(0,x3.useDispatch)(B),m=Ln(e);(0,lR.useEffect)(()=>{r({move:i,remove:s,...a?{edit:n}:{}})},[n,i,s,a]);let g=Object.values(o).every(Boolean),h=Object.values(o).some(Boolean)&&!g,b=o.move!==i||o.remove!==s||a&&o.edit!==n||u&&d!==!!l;return(0,Zo.jsx)(rn.Modal,{title:(0,Dl.sprintf)((0,Dl.__)("Lock %s"),m.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t,size:"small",children:(0,Zo.jsxs)("form",{onSubmit:v=>{v.preventDefault(),b&&(p([e],{lock:o,templateLock:d?Crt(o):void 0}),t())},children:[(0,Zo.jsxs)("fieldset",{className:"block-editor-block-lock-modal__options",children:[(0,Zo.jsx)("legend",{children:(0,Dl.__)("Select the features you want to lock")}),(0,Zo.jsx)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:(0,Zo.jsxs)("li",{children:[(0,Zo.jsx)(rn.CheckboxControl,{className:"block-editor-block-lock-modal__options-all",label:(0,Dl.__)("Lock all"),checked:g,indeterminate:h,onChange:v=>r({move:v,remove:v,...a?{edit:v}:{}})}),(0,Zo.jsxs)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:[a&&(0,Zo.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,Zo.jsx)(rn.CheckboxControl,{label:(0,Dl.__)("Lock editing"),checked:!!o.edit,onChange:v=>r(y=>({...y,edit:v}))}),(0,Zo.jsx)(rn.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.edit?vb:gf})]}),(0,Zo.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,Zo.jsx)(rn.CheckboxControl,{label:(0,Dl.__)("Lock movement"),checked:o.move,onChange:v=>r(y=>({...y,move:v}))}),(0,Zo.jsx)(rn.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.move?vb:gf})]}),(0,Zo.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,Zo.jsx)(rn.CheckboxControl,{label:(0,Dl.__)("Lock removal"),checked:o.remove,onChange:v=>r(y=>({...y,remove:v}))}),(0,Zo.jsx)(rn.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.remove?vb:gf})]})]})]})}),u&&(0,Zo.jsx)(rn.ToggleControl,{className:"block-editor-block-lock-modal__template-lock",label:(0,Dl.__)("Apply to all blocks inside"),checked:d,disabled:o.move&&!o.remove,onChange:()=>f(!d)})]}),(0,Zo.jsxs)(rn.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Zo.jsx)(rn.FlexItem,{children:(0,Zo.jsx)(rn.Button,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,Dl.__)("Cancel")})}),(0,Zo.jsx)(rn.FlexItem,{children:(0,Zo.jsx)(rn.Button,{variant:"primary",type:"submit",disabled:!b,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,Dl.__)("Apply")})})]})]})})}var tv=c(T(),1);function Wq({clientId:e}){let{canLock:t,isLocked:o}=dp(e),[r,n]=(0,_Ce.useReducer)(s=>!s,!1);if(!t)return null;let i=o?(0,Hq.__)("Unlock"):(0,Hq.__)("Lock");return(0,tv.jsxs)(tv.Fragment,{children:[(0,tv.jsx)(wCe.MenuItem,{icon:o?gf:lz,onClick:n,"aria-expanded":r,"aria-haspopup":"dialog",children:i}),r&&(0,tv.jsx)(S3,{clientId:e,onClose:n})]})}var C3=c(Z(),1),E3=c(q(),1),Fx=c(F(),1);var Zg=c(T(),1);function Uq({clientId:e}){let{canLock:t,isLocked:o}=dp(e),[r,n]=(0,Fx.useReducer)(a=>!a,!1),i=(0,Fx.useRef)(!1);if((0,Fx.useEffect)(()=>{o&&(i.current=!0)},[o]),!o&&!i.current)return null;let s=o?(0,C3.__)("Unlock"):(0,C3.__)("Lock");return!t&&o&&(s=(0,C3.__)("Locked")),(0,Zg.jsxs)(Zg.Fragment,{children:[(0,Zg.jsx)(E3.ToolbarGroup,{className:"block-editor-block-lock-toolbar",children:(0,Zg.jsx)(E3.ToolbarButton,{disabled:!t,icon:o?vb:gf,label:s,onClick:n,"aria-expanded":r,"aria-haspopup":"dialog"})}),r&&(0,Zg.jsx)(S3,{clientId:e,onClose:n})]})}var Gq=c(Z(),1),kCe=c(q(),1),T3=c(ce(),1),R3=c(ee(),1);var xCe=c(T(),1),Ert=()=>{};function SCe({clientId:e,onToggle:t=Ert}){let{blockType:o,mode:r,enabled:n}=(0,R3.useSelect)(a=>{let{getBlock:l,getBlockMode:u,getSettings:d}=a(B),f=l(e);return{mode:u(e),blockType:f?(0,T3.getBlockType)(f.name):null,enabled:d().codeEditingEnabled&&!!f?.isValid}},[e]),{toggleBlockMode:i}=(0,R3.useDispatch)(B);if(!o||!(0,T3.hasBlockSupport)(o,"html",!0)||!n)return null;let s=r==="visual"?(0,Gq.__)("Edit as HTML"):(0,Gq.__)("Edit visually");return(0,xCe.jsx)(kCe.MenuItem,{onClick:()=>{i(e),t()},children:s})}var RCe=c(q(),1),BCe=c(Z(),1),ICe=c(F(),1),PCe=c(ee(),1),OCe=c(fl(),1);var eu=c(q(),1),Jc=c(Z(),1),ECe=c(F(),1),TCe=c(Yo(),1),B3=c(ee(),1);function CCe(e){return e?.trim()?.length===0}var fp=c(T(),1);function ov({clientId:e,onClose:t}){let[o,r]=(0,ECe.useState)(),n=Ln(e),{metadata:i}=(0,B3.useSelect)(b=>{let{getBlockAttributes:v}=b(B);return{metadata:v(e)?.metadata}},[e]),{updateBlockAttributes:s}=(0,B3.useDispatch)(B),a=i?.name||"",l=n?.title,u=!!a&&!!i?.bindings&&Object.values(i.bindings).some(b=>b.source==="core/pattern-overrides"),d=o!==void 0&&o!==a,f=o===l,p=CCe(o),m=d||f,g=b=>b.target.select(),h=()=>{let b=f||p?void 0:o,v=f||p?(0,Jc.sprintf)((0,Jc.__)('Block name reset to: "%s".'),o):(0,Jc.sprintf)((0,Jc.__)('Block name changed to: "%s".'),o);(0,TCe.speak)(v,"assertive"),s([e],{metadata:Xe({...i,name:b})}),t()};return(0,fp.jsx)(eu.Modal,{title:(0,Jc.__)("Rename"),onRequestClose:t,overlayClassName:"block-editor-block-rename-modal",focusOnMount:"firstContentElement",size:"small",children:(0,fp.jsx)("form",{onSubmit:b=>{b.preventDefault(),m&&h()},children:(0,fp.jsxs)(eu.__experimentalVStack,{spacing:"3",children:[(0,fp.jsx)(eu.TextControl,{value:o??a,label:(0,Jc.__)("Name"),help:u?(0,Jc.__)("This block allows overrides. Changing the name can cause problems with content entered into instances of this pattern."):void 0,placeholder:l,onChange:r,onFocus:g}),(0,fp.jsxs)(eu.__experimentalHStack,{justify:"right",children:[(0,fp.jsx)(eu.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,Jc.__)("Cancel")}),(0,fp.jsx)(eu.Button,{__next40pxDefaultSize:!0,accessibleWhenDisabled:!0,disabled:!m,variant:"primary",type:"submit",children:(0,Jc.__)("Save")})]})]})})})}var rv=c(T(),1);function $q({clientId:e}){let[t,o]=(0,ICe.useState)(!1),r=(0,PCe.useSelect)(n=>n(OCe.store).getShortcutRepresentation("core/block-editor/rename"),[]);return(0,rv.jsxs)(rv.Fragment,{children:[(0,rv.jsx)(RCe.MenuItem,{onClick:()=>{o(!0)},"aria-expanded":t,"aria-haspopup":"dialog",shortcut:r,children:(0,BCe.__)("Rename")}),t&&(0,rv.jsx)(ov,{clientId:e,onClose:()=>o(!1)})]})}var ACe=c(ce(),1);function cR(e){return{canRename:!!e&&(0,ACe.getBlockSupport)(e,"renaming",!0)}}var tu=c(T(),1),{Fill:Trt,Slot:Rrt}=(0,zx.createSlotFill)("BlockSettingsMenuControls"),Brt=({fillProps:e,clientIds:t=null})=>{let{selectedBlocks:o,selectedClientIds:r,isContentOnly:n,canToggleSelectedBlocksVisibility:i,canEdit:s}=(0,NCe.useSelect)(b=>{let{getBlocksByClientId:v,getBlockNamesByClientId:y,getSelectedBlockClientIds:_,getBlockEditingMode:w,canEditBlock:k}=b(B),x=t!==null?t:_();return{selectedBlocks:y(x),selectedClientIds:x,isContentOnly:w(x[0])==="contentOnly",canToggleSelectedBlocksVisibility:v(x).every(C=>(0,MCe.hasBlockSupport)(C.name,"visibility",!0)),canEdit:k(x[0])}},[t]),{canLock:a}=dp(r[0]),{canRename:l}=cR(o[0]),u=r.length===1&&a&&!n,d=r.length===1&&l&&!n,f=i&&!n,p=sR(r),{isGroupable:m,isUngroupable:g}=p,h=(m||g)&&!n;return(0,tu.jsx)(Rrt,{fillProps:{...e,canEdit:s,selectedBlocks:o,selectedClientIds:r},children:b=>!b?.length>0&&!h&&!u?null:(0,tu.jsxs)(zx.MenuGroup,{children:[h&&(0,tu.jsx)(bCe,{...p,onClose:e?.onClose}),s&&u&&(0,tu.jsx)(Wq,{clientId:r[0]}),s&&d&&(0,tu.jsx)($q,{clientId:r[0]}),s&&f&&(0,tu.jsx)(wW,{clientIds:r}),b,s&&e?.count===1&&!n&&(0,tu.jsx)(SCe,{clientId:e?.firstBlockClientId,onToggle:e?.onClose})]})})};function LCe({...e}){return(0,tu.jsx)(zx.__experimentalStyleProvider,{document,children:(0,tu.jsx)(Trt,{...e})})}LCe.Slot=Brt;var I3=LCe;var DCe=c(F(),1),VCe=c(q(),1),FCe=c(ue(),1),zCe=c(ee(),1),P3=c(Z(),1);var Yq=c(T(),1);function jCe({parentClientId:e,parentBlockType:t}){let o=(0,FCe.useViewportMatch)("medium","<"),{selectBlock:r}=(0,zCe.useDispatch)(B),n=(0,DCe.useRef)(),i=Mx({ref:n,highlightParent:!0});return o?(0,Yq.jsx)(VCe.MenuItem,{...i,ref:n,icon:(0,Yq.jsx)(Lt,{icon:t.icon}),onClick:()=>r(e),children:(0,P3.sprintf)((0,P3.__)("Select parent block (%s)"),t.title)}):null}var ho=c(T(),1),Irt={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"};function Kq({clientIds:e,onCopy:t,label:o,shortcut:r,eventType:n="copy",__experimentalUpdateSelection:i=!1}){let{getBlocksByClientId:s}=(0,Xg.useSelect)(B),{removeBlocks:a}=(0,Xg.useDispatch)(B),l=Wk(),u=(0,pp.useCopyToClipboard)(()=>(0,jx.serialize)(s(e)),()=>{switch(n){case"copy":case"copyStyles":t(),l(n,e);break;case"cut":l(n,e),a(e,i);break;default:break}}),d=o||(0,Vl.__)("Copy");return(0,ho.jsx)(bs.MenuItem,{ref:u,shortcut:r,children:d})}function qq({clientId:e,clientIds:t,children:o,__experimentalSelectBlock:r,isContentOnlyListView:n,...i}){let s=t.length,a=t[0],{firstParentClientId:l,parentBlockType:u,previousBlockClientId:d,selectedBlockClientIds:f,isContentOnly:p,isZoomOut:m,canEdit:g,canMove:h,isFirst:b,isLast:v}=(0,Xg.useSelect)(O=>{let{getBlockName:A,getBlockRootClientId:P,getPreviousBlockClientId:L,getSelectedBlockClientIds:H,getBlockAttributes:N,getBlockEditingMode:M,isZoomOut:V,canEditBlock:j,canMoveBlocks:D,getBlockIndex:z,getBlockCount:$}=K(O(B)),{getActiveBlockVariation:J}=O(jx.store),Q=P(a),W=Q&&A(Q);return{firstParentClientId:Q,parentBlockType:Q&&(J(W,N(Q))||(0,jx.getBlockType)(W)),previousBlockClientId:L(a),selectedBlockClientIds:H(),isContentOnly:M(a)==="contentOnly",isZoomOut:V(),canEdit:j(a),canMove:D(t),isFirst:z(a)===0,isLast:z(a)===$(Q)-1}},[a,t]),{getBlockOrder:y,getSelectedBlockClientIds:_}=(0,Xg.useSelect)(B),{moveBlocksDown:w,moveBlocksUp:k}=(0,Xg.useDispatch)(B),x=(0,Xg.useSelect)(O=>{let{getShortcutRepresentation:A}=O(HCe.store);return{copy:A("core/block-editor/copy"),cut:A("core/block-editor/cut"),duplicate:A("core/block-editor/duplicate"),remove:A("core/block-editor/remove"),insertAfter:A("core/block-editor/insert-after"),insertBefore:A("core/block-editor/insert-before")}},[]),C=f.length>0;async function E(O){if(!r)return;let A=await O;A&&A[0]&&r(A[0],!1)}function R(){if(!r)return;let O=d||l;O||(O=y()[0]);let A=C&&_().length===0;r(O,A)}let I=!f?.includes(l)&&!!l;return(0,ho.jsx)(iCe,{clientIds:t,__experimentalUpdateSelection:!r,children:({canCopyStyles:O,canDuplicate:A,canInsertBlock:P,canRemove:L,onDuplicate:H,onInsertAfter:N,onInsertBefore:M,onRemove:V,onCopy:j,onPasteStyles:D})=>!L&&!A&&!P&&p?null:(0,ho.jsx)(bs.DropdownMenu,{icon:ga,label:(0,Vl.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Irt,noIcons:!0,...i,children:({onClose:$})=>(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsxs)(bs.MenuGroup,{children:[(0,ho.jsx)(_3.Slot,{fillProps:{onClose:$}}),I&&(0,ho.jsx)(jCe,{parentClientId:l,parentBlockType:u}),h&&n&&(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsx)(bs.MenuItem,{icon:fb,disabled:b,accessibleWhenDisabled:!0,onClick:(0,pp.pipe)($,()=>{k(t,l)}),children:(0,Vl.__)("Move up")}),(0,ho.jsx)(bs.MenuItem,{icon:Bn,disabled:v,accessibleWhenDisabled:!0,onClick:(0,pp.pipe)($,()=>{w(t,l)}),children:(0,Vl.__)("Move down")})]}),g&&s===1&&(0,ho.jsx)(uCe,{clientId:a}),!p&&(0,ho.jsx)(Kq,{clientIds:t,onCopy:j,shortcut:x.copy}),L&&!p&&(0,ho.jsx)(Kq,{clientIds:t,label:(0,Vl.__)("Cut"),eventType:"cut",shortcut:x.cut,__experimentalUpdateSelection:!r}),A&&(0,ho.jsx)(bs.MenuItem,{onClick:(0,pp.pipe)($,H,E),shortcut:x.duplicate,children:(0,Vl.__)("Duplicate")}),P&&!m&&(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsx)(bs.MenuItem,{onClick:(0,pp.pipe)($,M),shortcut:x.insertBefore,children:(0,Vl.__)("Add before")}),(0,ho.jsx)(bs.MenuItem,{onClick:(0,pp.pipe)($,N),shortcut:x.insertAfter,children:(0,Vl.__)("Add after")})]}),g&&s===1&&(0,ho.jsx)(b3.Slot,{fillProps:{clientId:a,onClose:$}})]}),O&&!p&&(0,ho.jsxs)(bs.MenuGroup,{children:[(0,ho.jsx)(Kq,{clientIds:t,onCopy:j,label:(0,Vl.__)("Copy styles"),eventType:"copyStyles"}),g&&(0,ho.jsx)(bs.MenuItem,{onClick:D,children:(0,Vl.__)("Paste styles")})]}),!p&&(0,ho.jsx)(I3.Slot,{fillProps:{onClose:$,count:s,firstBlockClientId:a},clientIds:t}),typeof o=="function"?o({onClose:$}):O3.Children.map(J=>(0,O3.cloneElement)(J,{onClose:$})),L&&(0,ho.jsx)(bs.MenuGroup,{children:(0,ho.jsx)(bs.MenuItem,{onClick:(0,pp.pipe)($,V,R),shortcut:x.remove,children:(0,Vl.__)("Delete")})})]})})})}var WCe=qq;var UCe=c(q(),1),Prt=(0,UCe.createSlotFill)(Symbol("NoteIconToolbarSlotFill")),A3=Prt;var Hx=c(T(),1);function Ort({clientIds:e,...t}){return(0,Hx.jsxs)(M3.ToolbarGroup,{children:[(0,Hx.jsx)(A3.Slot,{}),(0,Hx.jsx)(M3.ToolbarItem,{children:o=>(0,Hx.jsx)(WCe,{clientIds:e,toggleProps:o,...t})})]})}var N3=Ort;var L3=c(q(),1),GCe=c(Z(),1),D3=c(ee(),1);var Zq=c(T(),1);function $Ce({clientIds:e}){let t=e.length===1?e[0]:void 0,o=(0,D3.useSelect)(n=>!!t&&n(B).getBlockMode(t)==="html",[t]),{toggleBlockMode:r}=(0,D3.useDispatch)(B);return o?(0,Zq.jsx)(L3.ToolbarGroup,{children:(0,Zq.jsx)(L3.ToolbarButton,{onClick:()=>{r(t)},children:(0,GCe.__)("Edit visually")})}):null}var V3=c(q(),1),wi=c(F(),1),qCe=c(ee(),1),ZCe=c(Nt(),1),Qq=c(Dt(),1),XCe=c(fl(),1),QCe=c(wo(),1);var Xq=c(T(),1);function Art(e){let t="toolbarItem";return!e.some(o=>!(t in o.dataset))}function YCe(e){return Array.from(e.querySelectorAll("[data-toolbar-item]:not([disabled])"))}function KCe(e){return e.contains(e.ownerDocument.activeElement)}function Mrt(e){let[t]=Qq.focus.tabbable.find(e);t&&t.focus({preventScroll:!0})}function Nrt(e){let[o,r]=(0,wi.useState)(!0),n=(0,wi.useCallback)(()=>{let i=Qq.focus.tabbable.find(e.current),s=Art(i);s||(0,ZCe.default)("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),r(s)},[e]);return(0,wi.useLayoutEffect)(()=>{let i=new window.MutationObserver(n);return i.observe(e.current,{childList:!0,subtree:!0}),()=>i.disconnect()},[n,o,e]),o}function Lrt({toolbarRef:e,focusOnMount:t,isAccessibleToolbar:o,defaultIndex:r,onIndexChange:n,shouldUseKeyboardFocusShortcut:i,focusEditorOnEscape:s}){let[a]=(0,wi.useState)(t),[l]=(0,wi.useState)(r),{getLastFocus:u,getSelectedBlockClientId:d}=K((0,qCe.useSelect)(B)),{refsMap:f}=(0,wi.useContext)(Ec),p=(0,wi.useCallback)(()=>{Mrt(e.current)},[e]);(0,XCe.useShortcut)("core/block-editor/focus-toolbar",()=>{i&&p()}),(0,wi.useEffect)(()=>{a&&p()},[o,a,p]),(0,wi.useEffect)(()=>{let g=e.current,h=0;return!a&&!KCe(g)&&(h=window.requestAnimationFrame(()=>{let b=YCe(g),v=l||0;b[v]&&KCe(g)&&b[v].focus({preventScroll:!0})})),()=>{if(window.cancelAnimationFrame(h),!n||!g)return;let v=YCe(g).findIndex(y=>y.tabIndex===0);n(v)}},[l,a,n,e]),(0,wi.useEffect)(()=>{if(!s)return;let g=e.current,h=b=>{if(b.keyCode!==QCe.ESCAPE)return;let v=u()?.current??f.get(d());v&&(b.preventDefault(),v.focus())};return g.addEventListener("keydown",h),()=>{g.removeEventListener("keydown",h)}},[s,u,d,f,e])}function Wx({children:e,focusOnMount:t,focusEditorOnEscape:o=!1,shouldUseKeyboardFocusShortcut:r=!0,__experimentalInitialIndex:n,__experimentalOnIndexChange:i,orientation:s="horizontal",...a}){let l=(0,wi.useRef)(),u=Nrt(l);return Lrt({toolbarRef:l,focusOnMount:t,defaultIndex:n,onIndexChange:i,isAccessibleToolbar:u,shouldUseKeyboardFocusShortcut:r,focusEditorOnEscape:o}),u?(0,Xq.jsx)(V3.Toolbar,{label:a["aria-label"],ref:l,orientation:s,...a,children:e}):(0,Xq.jsx)(V3.NavigableMenu,{orientation:s,role:"toolbar",ref:l,...a,children:e})}var JCe=c(ee(),1),F3=c(ce(),1);function z3(){return(0,JCe.useSelect)(t=>{let{getBlockEditingMode:o,getBlockName:r,getBlockSelectionStart:n}=t(B),i=n(),s=i&&(0,F3.getBlockType)(r(i));return s&&(0,F3.hasBlockSupport)(s,"__experimentalToolbar",!0)&&o(i)!=="disabled"},[])}var Qg=c(q(),1),e1e=c(Z(),1),t1e=c(ce(),1),o1e=c(F(),1),j3=c(ee(),1);var Ux=c(T(),1),Jq=[],Drt=6,Vrt={placement:"bottom-start"};function r1e({clientId:e}){let{categories:t,currentPatternName:o,patterns:r}=(0,j3.useSelect)(a=>{let{getBlockAttributes:l,getBlockRootClientId:u,__experimentalGetAllowedPatterns:d}=a(B),f=l(e),p=f?.metadata?.categories||Jq,m=u(e),g=p.length>0?d(m):Jq;return{categories:p,currentPatternName:f?.metadata?.patternName,patterns:g}},[e]),{replaceBlocks:n}=(0,j3.useDispatch)(B),i=(0,o1e.useMemo)(()=>t.length===0||!r||r.length===0?Jq:r.filter(a=>{let l=a.source==="core"||a.source?.startsWith("pattern-directory")&&a.source!=="pattern-directory/theme";return a.blocks.length===1&&!l&&o!==a.name&&a.categories?.some(u=>t.includes(u))&&(a.syncStatus==="unsynced"||!a.id)}).slice(0,Drt),[t,o,r]);if(i.length<2)return null;let s=a=>{let l=(a.blocks??[]).map(u=>(0,t1e.cloneBlock)(u));l[0].attributes.metadata={...l[0].attributes.metadata,categories:t},n(e,l)};return(0,Ux.jsx)(Qg.Dropdown,{popoverProps:Vrt,renderToggle:({onToggle:a,isOpen:l})=>(0,Ux.jsx)(Qg.ToolbarGroup,{children:(0,Ux.jsx)(Qg.ToolbarButton,{onClick:()=>a(!l),"aria-expanded":l,children:(0,e1e.__)("Change design")})}),renderContent:()=>(0,Ux.jsx)(Qg.__experimentalDropdownContentWrapper,{className:"block-editor-block-toolbar-change-design-content-wrapper",paddingSize:"none",children:(0,Ux.jsx)(_d,{blockPatterns:i,onClickPattern:s,showTitlesAsTooltip:!0})})})}var ou=c(q(),1),c1e=c(Z(),1),G3=c(ee(),1);var U3=c(ee(),1),eh=c(ce(),1),l1e=c(F(),1);var eZ=c(H3(),1),i1e=c(Z(),1);function s1e(e,t){for(let o of new eZ.default(t).values()){if(o.indexOf("is-style-")===-1)continue;let r=o.substring(9),n=e?.find(({name:i})=>i===r);if(n)return n}return W3(e)}function Jg(e,t,o){let r=new eZ.default(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+o.name),r.value}function a1e(e){return!e||e.length===0?[]:W3(e)?e:[{name:"default",label:(0,i1e._x)("Default","block style"),isDefault:!0},...e]}function W3(e){return e?.find(t=>t.isDefault)}function Frt(e,t){return(0,l1e.useMemo)(()=>{let o=t?.example,r=t?.name;if(o&&r)return(0,eh.getBlockFromExample)(r,{attributes:o.attributes,innerBlocks:o.innerBlocks,innerContent:o.innerContent});if(e)return(0,eh.cloneBlock)(e)},[e,t?.example,t?.name])}function Gx({clientId:e,onSwitch:t}){let o=p=>{let{getBlock:m}=p(B),g=m(e);if(!g)return{};let h=(0,eh.getBlockType)(g.name),{getBlockStyles:b}=p(eh.store);return{block:h?.example?null:g,blockType:h,styles:b(g.name),className:g.attributes.className||""}},{styles:r,block:n,blockType:i,className:s}=(0,U3.useSelect)(o,[e]),{updateBlockAttributes:a}=(0,U3.useDispatch)(B),l=a1e(r),u=s1e(l,s),d=Frt(n,i);return{onSelect:p=>{let m=Jg(s,u,p);a(e,{className:m}),t()},stylesToRender:l,activeStyle:u,genericPreviewBlock:d,className:s}}var th=c(T(),1),{getVariationStyle:zrt}=K(Lo),jrt=(0,th.jsxs)(ou.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,th.jsx)(ou.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3z"}),(0,th.jsx)(ou.Path,{stroke:"currentColor",strokeWidth:"1.5",d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3z"})]});function Hrt({clientId:e}){let{stylesToRender:t,activeStyle:o,className:r}=Gx({clientId:e}),{updateBlockAttributes:n}=(0,G3.useDispatch)(B),{globalSettings:i,globalStyles:s,blockName:a}=(0,G3.useSelect)(d=>{let f=d(B).getSettings();return{globalSettings:f.__experimentalFeatures,globalStyles:f[Is],blockName:d(B).getBlockName(e)}},[e]),l=o?.name?zrt({settings:i,styles:s},a,o.name)?.color?.background:void 0;return!t||t.length===0?null:(0,th.jsx)(ou.ToolbarGroup,{children:(0,th.jsx)(ou.ToolbarButton,{onClick:()=>{let f=(t.findIndex(g=>g.name===o.name)+1)%t.length,p=t[f],m=Jg(r,o,p);n(e,{className:m})},label:(0,c1e.__)("Shuffle styles"),children:(0,th.jsx)(ou.Icon,{icon:jrt,style:{fill:l||"transparent"}})})})}var u1e=Hrt;var K3=c(q(),1),tZ=c(Z(),1),d1e=c(ee(),1),q3=c(ce(),1);var $3=c(ee(),1);function Y3(e){let{isSectionBlock:t,isWithinSection:o,isWithinEditedSection:r,isEditingContentOnlySection:n,editedContentOnlySection:i}=(0,$3.useSelect)(u=>{let{isSectionBlock:d,getParentSectionBlock:f,getEditedContentOnlySection:p,isWithinEditedContentOnlySection:m}=K(u(B)),g=p();return{isSectionBlock:d(e),isWithinSection:d(e)||!!f(e),isWithinEditedSection:m(e),isEditingContentOnlySection:g===e,editedContentOnlySection:g}},[e]),s=(0,$3.useDispatch)(B),{editContentOnlySection:a,stopEditingContentOnlySection:l}=K(s);return{isSectionBlock:t,isWithinSection:o,isWithinEditedSection:r,isEditingContentOnlySection:n,editedContentOnlySection:i,editContentOnlySection:a,stopEditingContentOnlySection:l}}var oZ=c(T(),1);function f1e({clientId:e}){let{isSectionBlock:t,isEditingContentOnlySection:o,editContentOnlySection:r,stopEditingContentOnlySection:n}=Y3(e),i=(0,d1e.useSelect)(l=>{if(!e)return null;let{getBlockName:u}=l(B),d=u(e);return d?{name:d}:null},[e]);if(!e||!t&&!o||(0,q3.isReusableBlock)(i)||(0,q3.isTemplatePart)(i))return null;let s=o;return(0,oZ.jsx)(K3.ToolbarGroup,{children:(0,oZ.jsx)(K3.ToolbarButton,{onClick:()=>{s?n():r(e)},children:s?(0,tZ.__)("Exit pattern"):(0,tZ.__)("Edit pattern")})})}var F1e=c(q(),1),z1e=c(Z(),1),j1e=c(ee(),1);var mR=c(ce(),1),H1e=c($_(),1);var Rd=c(Z(),1);var rh=c(q(),1),nh=c(ce(),1),rV=c(ee(),1);var v1e=c(Z(),1),dR=c(q(),1),X3=c(ce(),1),Q3=c(F(),1);var p1e=c(q(),1),m1e=c(ue(),1);var uR=c(T(),1);function oh({blocks:e,placement:t="right-start",offset:o=16,anchor:r}){return(0,m1e.useViewportMatch)("medium","<")?null:(0,uR.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,uR.jsx)(p1e.Popover,{className:"block-editor-block-switcher__popover-preview",placement:t,focusOnMount:!1,offset:o,anchor:r,children:(0,uR.jsx)("div",{className:"block-editor-block-switcher__preview",children:(0,uR.jsx)(Ys,{viewportWidth:601,blocks:e})})})})}var g1e=c(q(),1),$x=c(ce(),1),h1e=c(ee(),1),Z3=c(F(),1);var mp=c(T(),1),Wrt={};function b1e({clientIds:e,blocks:t}){let{activeBlockVariation:o,blockVariationTransformations:r}=(0,h1e.useSelect)(i=>{let{getBlockAttributes:s,canRemoveBlocks:a}=i(B),{getActiveBlockVariation:l,getBlockVariations:u}=i($x.store),d=a(e);if(t.length!==1||!d)return Wrt;let[f]=t;return{blockVariationTransformations:u(f.name,"transform"),activeBlockVariation:l(f.name,s(f.clientId))}},[e,t]);return(0,Z3.useMemo)(()=>r?.filter(({name:i})=>i!==o?.name),[r,o])}var Urt=({transformations:e,onSelect:t,blocks:o})=>{let[r,n]=(0,Z3.useState)();return(0,mp.jsxs)(mp.Fragment,{children:[r&&(0,mp.jsx)(oh,{blocks:(0,$x.cloneBlock)(o[0],e.find(({name:i})=>i===r).attributes)}),e?.map(i=>(0,mp.jsx)(Grt,{item:i,onSelect:t,setHoveredTransformItemName:n},i.name))]})};function Grt({item:e,onSelect:t,setHoveredTransformItemName:o}){let{name:r,icon:n,title:i}=e;return(0,mp.jsxs)(g1e.MenuItem,{className:(0,$x.getBlockMenuDefaultClassName)(r),onClick:s=>{s.preventDefault(),t(r)},onMouseLeave:()=>o(null),onMouseEnter:()=>o(r),onFocus:()=>o(r),onBlur:()=>o(null),children:[(0,mp.jsx)(Lt,{icon:n,showColors:!0}),i]})}var y1e=Urt;var ta=c(T(),1);function $rt(e){let t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},o=(0,Q3.useMemo)(()=>{let r=Object.keys(t),n=e.reduce((i,s)=>{let{name:a}=s;return r.includes(a)?i.priorityTextTransformations.push(s):i.restTransformations.push(s),i},{priorityTextTransformations:[],restTransformations:[]});if(n.priorityTextTransformations.length===1&&n.priorityTextTransformations[0].name==="core/quote"){let i=n.priorityTextTransformations.pop();n.restTransformations.push(i)}return n},[e]);return o.priorityTextTransformations.sort(({name:r},{name:n})=>t[r]<t[n]?-1:1),o}var Yrt=({className:e,possibleBlockTransformations:t,possibleBlockVariationTransformations:o,onSelect:r,onSelectVariation:n,blocks:i})=>{let[s,a]=(0,Q3.useState)(),{priorityTextTransformations:l,restTransformations:u}=$rt(t),d=l.length&&u.length,f=!!u.length&&(0,ta.jsx)(Krt,{restTransformations:u,onSelect:r,setHoveredTransformItem:a});return(0,ta.jsxs)(ta.Fragment,{children:[(0,ta.jsxs)(dR.MenuGroup,{label:(0,v1e.__)("Transform to"),className:e,children:[s&&(0,ta.jsx)(oh,{blocks:(0,X3.switchToBlockType)(i,s.name,s.variationName)}),!!o?.length&&(0,ta.jsx)(y1e,{transformations:o,blocks:i,onSelect:n}),l.map(p=>(0,ta.jsx)(_1e,{item:p,onSelect:r,setHoveredTransformItem:a},p.id||p.name)),!d&&f]}),!!d&&(0,ta.jsx)(dR.MenuGroup,{className:e,children:f})]})};function Krt({restTransformations:e,onSelect:t,setHoveredTransformItem:o}){return e.map(r=>(0,ta.jsx)(_1e,{item:r,onSelect:t,setHoveredTransformItem:o},r.id||r.name))}function _1e({item:e,onSelect:t,setHoveredTransformItem:o}){let{name:r,icon:n,title:i,isDisabled:s}=e;return(0,ta.jsxs)(dR.MenuItem,{className:(0,X3.getBlockMenuDefaultClassName)(r),onClick:a=>{a.preventDefault(),t(r,e.variationName)},disabled:s,onMouseLeave:()=>o(null),onMouseEnter:()=>o(e),onFocus:()=>o(e),onBlur:()=>o(null),children:[(0,ta.jsx)(Lt,{icon:n,showColors:!0}),i]})}var w1e=Yrt;var S1e=c(Z(),1),C1e=c(q(),1),eV=c(F(),1);var J3=c(q(),1);var Yx=c(T(),1),k1e=()=>{};function x1e({stylesToRender:e,activeStyle:t,onSelect:o=k1e,onHoverStyle:r=k1e}){return!e||e.length===0?null:(0,Yx.jsx)(Yx.Fragment,{children:e.map(n=>{let i=n.label||n.name;return(0,Yx.jsx)(J3.MenuItem,{icon:t.name===n.name?Ps:null,onClick:()=>o(n),onFocus:()=>r(n),onBlur:()=>r(null),onMouseEnter:()=>r(n),onMouseLeave:()=>r(null),children:(0,Yx.jsx)(J3.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0,children:i})},n.name)})})}var fR=c(T(),1);function tV({hoveredBlock:e,onSwitch:t}){let{clientId:o}=e,[r,n]=(0,eV.useState)(null),{onSelect:i,stylesToRender:s,activeStyle:a,genericPreviewBlock:l,className:u}=Gx({clientId:o,onSwitch:t}),d=(0,eV.useMemo)(()=>{if(!r||!l)return null;let f=Jg(u,a,r);return[{...l,attributes:{...l.attributes||{},className:f}}]},[r,l,u,a]);return!s||s.length===0?null:(0,fR.jsxs)(C1e.MenuGroup,{label:(0,S1e.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup",children:[d&&(0,fR.jsx)(oh,{blocks:d}),(0,fR.jsx)(x1e,{stylesToRender:s,activeStyle:a,onSelect:i,onHoverStyle:n})]})}var nZ=c(Z(),1),P1e=c(F(),1),oV=c(ue(),1);var gp=c(q(),1);var R1e=c(F(),1),B1e=c(ce(),1);var E1e=c(ce(),1),rZ=(e,t,o=new Set)=>{let{clientId:r,name:n,innerBlocks:i=[]}=e;if(!o.has(r)){if(n===t)return e;for(let s of i){let a=rZ(s,t,o);if(a)return a}}},T1e=(e,t)=>{let o=(0,E1e.getBlockAttributesNamesByRole)(e,"content");return o?.length?o.reduce((r,n)=>(t[n]&&(r[n]=t[n]),r),{}):t};var qrt=(e,t)=>{let o=T1e(t.name,t.attributes);e.attributes={...e.attributes,...o}},Zrt=(e,t)=>{let o=t.map(n=>(0,B1e.cloneBlock)(n)),r=new Set;for(let n of e){let i=!1;for(let s of o){let a=rZ(s,n.name,r);if(a){i=!0,r.add(a.clientId),qrt(a,n);break}}if(!i)return}return o},Xrt=(e,t)=>(0,R1e.useMemo)(()=>e.reduce((o,r)=>{let n=Zrt(t,r.blocks);return n&&o.push({...r,transformedBlocks:n}),o},[]),[e,t]),I1e=Xrt;var ki=c(T(),1);function Qrt({blocks:e,patterns:t,onSelect:o}){let[r,n]=(0,P1e.useState)(!1),i=I1e(t,e);return i.length?(0,ki.jsxs)(gp.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup",children:[r&&(0,ki.jsx)(Jrt,{patterns:i,onSelect:o}),(0,ki.jsx)(gp.MenuItem,{onClick:s=>{s.preventDefault(),n(!r)},icon:br,children:(0,nZ.__)("Patterns")})]}):null}function Jrt({patterns:e,onSelect:t}){let o=(0,oV.useViewportMatch)("medium","<");return(0,ki.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,ki.jsx)(gp.Popover,{className:"block-editor-block-switcher__popover-preview",placement:o?"bottom":"right-start",offset:16,children:(0,ki.jsx)("div",{className:"block-editor-block-switcher__preview is-pattern-list-preview",children:(0,ki.jsx)(ent,{patterns:e,onSelect:t})})})})}function ent({patterns:e,onSelect:t}){return(0,ki.jsx)(gp.Composite,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,nZ.__)("Patterns list"),children:e.map(o=>(0,ki.jsx)(O1e,{pattern:o,onSelect:t},o.name))})}function O1e({pattern:e,onSelect:t}){let o="block-editor-block-switcher__preview-patterns-container",r=(0,oV.useInstanceId)(O1e,`$o}-list__item-description`);return(0,ki.jsxs)("div",{className:`$o}-list__list-item`,children:[(0,ki.jsxs)(gp.Composite.Item,{render:(0,ki.jsx)("div",{role:"option","aria-label":e.title,"aria-describedby":e.description?r:void 0,className:`$o}-list__item`}),onClick:()=>t(e.transformedBlocks),children:[(0,ki.jsx)(Ys,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),(0,ki.jsx)("div",{className:`$o}-list__item-title`,children:e.title})]}),!!e.description&&(0,ki.jsx)(ht,{id:r,children:e.description})]})}var A1e=Qrt;var Na=c(T(),1);function tnt({onClose:e,clientIds:t}){let{replaceBlocks:o,multiSelect:r,updateBlockAttributes:n}=(0,rV.useDispatch)(B),{possibleBlockTransformations:i,patterns:s,blocks:a,isUsingBindings:l,canRemove:u,hasBlockStyles:d}=(0,rV.useSelect)(E=>{let{getBlockAttributes:R,getBlocksByClientId:S,getBlockRootClientId:I,getBlockTransformItems:O,__experimentalGetPatternTransformItems:A,canRemoveBlocks:P,getBlockName:L}=E(B),{getBlockStyles:H}=E(nh.store),N=I(t[0]),M=S(t),V=t.length===1,j=V&&L(t[0]),D=V&&!!H(j)?.length;return{blocks:M,possibleBlockTransformations:O(M,N),patterns:A(M,N),isUsingBindings:t.every(z=>!!R(z)?.metadata?.bindings),canRemove:P(t),hasBlockStyles:D}},[t]),f=b1e({clientIds:t,blocks:a});function p(E){E.length>1&&r(E[0].clientId,E[E.length-1].clientId)}function m(E,R){let S=(0,nh.switchToBlockType)(a,E,R);o(t,S),p(S)}function g(E){n(a[0].clientId,{...f.find(({name:R})=>R===E).attributes})}function h(E){o(t,E),p(E)}let b=a.length===1,v=b&&((0,nh.isTemplatePart)(a[0])||(0,nh.isReusableBlock)(a[0])),y=!!i?.length&&u&&!v,_=!!f?.length,w=!!s?.length&&u,k=y||_;if(!(d||k||w))return(0,Na.jsx)("p",{className:"block-editor-block-switcher__no-transforms",children:(0,Rd.__)("No transforms.")});let C=b?(0,Rd._x)("This block is connected.","block toolbar button label and description"):(0,Rd._x)("These blocks are connected.","block toolbar button label and description");return(0,Na.jsxs)("div",{className:"block-editor-block-switcher__container",children:[w&&(0,Na.jsx)(A1e,{blocks:a,patterns:s,onSelect:E=>{h(E),e()}}),k&&(0,Na.jsx)(w1e,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:i,possibleBlockVariationTransformations:f,blocks:a,onSelect:(E,R)=>{m(E,R),e()},onSelectVariation:E=>{g(E),e()}}),d&&(0,Na.jsx)(tV,{hoveredBlock:a[0],onSwitch:e}),l&&(0,Na.jsx)(rh.MenuGroup,{children:(0,Na.jsx)(ir,{className:"block-editor-block-switcher__binding-indicator",children:C})})]})}var ont=({children:e,clientIds:t,label:o,text:r})=>{let i=t.length===1?(0,Rd.__)("Change block type or style"):(0,Rd.sprintf)((0,Rd._n)("Change type of %d block","Change type of %d blocks",t.length),t.length);return(0,Na.jsx)(rh.ToolbarGroup,{children:(0,Na.jsx)(rh.ToolbarItem,{children:s=>(0,Na.jsx)(rh.DropdownMenu,{className:"block-editor-block-switcher",label:o,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:e,text:r,toggleProps:{description:i,...s},menuProps:{orientation:"both"},children:({onClose:a})=>(0,Na.jsx)(tnt,{onClose:a,clientIds:t})})})})},M1e=ont;var N1e=c(Z(),1),qx=c(q(),1);var Kx=c(T(),1);function L1e({clientIds:e,children:t,label:o,text:r}){return(0,Kx.jsx)(qx.ToolbarGroup,{children:(0,Kx.jsx)(qx.ToolbarItem,{children:n=>(0,Kx.jsx)(qx.DropdownMenu,{className:"block-editor-block-switcher",label:o,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:t,text:r,toggleProps:{description:(0,N1e.__)("Change block style"),...n},menuProps:{orientation:"both"},children:({onClose:i})=>(0,Kx.jsx)("div",{className:"block-editor-block-switcher__container",children:(0,Kx.jsx)(tV,{hoveredBlock:{clientId:e[0]},onSwitch:i})})})})})}var nV=c(q(),1);var pR=c(Z(),1),iV=c(F(),1),D1e=c(ee(),1);var hp=c(T(),1);function rnt({clientIds:e,blockTitle:t}){let o=(0,D1e.useSelect)(i=>{let{getBlockAttributes:s}=i(B);return s(e?.[0])?.metadata?.name},[e]),r=e.length===1,n;return r&&o?n=(0,pR.sprintf)((0,pR.__)('This %1$s is editable using the "%2$s" override.'),t.toLowerCase(),o):n=(0,pR.__)("These blocks are editable using overrides."),(0,hp.jsx)(ir,{children:n})}function V1e({icon:e,clientIds:t,blockTitle:o,label:r}){let[n,i]=(0,iV.useState)(!1),s=(0,iV.useRef)();return(0,hp.jsxs)(hp.Fragment,{children:[(0,hp.jsx)(nV.ToolbarButton,{ref:s,className:"block-editor-block-toolbar__pattern-overrides-indicator",icon:e,label:r,onClick:()=>i(!n),"aria-expanded":n}),n&&(0,hp.jsx)(nV.Popover,{anchor:s.current,onClose:()=>i(!1),placement:"bottom-start",offset:16,className:"block-editor-block-toolbar__pattern-overrides-popover",children:(0,hp.jsx)(rnt,{clientIds:t,blockTitle:o})})]})}var Zx=c(T(),1);function nnt({select:e,clientIds:t}){let{getBlockName:o,getBlockAttributes:r,getBlockParentsByBlockName:n,canRemoveBlocks:i,getTemplateLock:s,getBlockEditingMode:a,canEditBlock:l,isSectionBlock:u}=K(e(B)),{getBlockStyles:d}=e(mR.store),f=t.some(S=>s(S)==="contentOnly"),p=t.length===1,m=p&&o(t[0]),g=p&&!!d(m)?.length,h=t.some(S=>!!r(S)?.metadata?.patternName&&u(S)),b=t.every(S=>$0(r(S)?.metadata?.bindings)),v=t.every(S=>n(S,"core/block",!0).length>0),y=i(t),_=t.every(S=>l(S)),w=a(t[0]),k=w==="default",x=w==="contentOnly",E=!h&&k&&(g||y)&&!f&&_,R=b&&v;return E?"switcher":x&&g&&!b&&_?"styles-only":R?"pattern-overrides":"default"}function int({select:e,clientIds:t}){let{getBlockName:o,getBlockAttributes:r,getBlock:n,isSectionBlock:i}=K(e(B)),s=t.length===1,a=t[0],l=r(a);if(s&&l?.metadata?.patternName&&i(a))return tl;let u=o(a),d=(0,mR.getBlockType)(u);if(s){let{getActiveBlockVariation:m}=e(mR.store);return m(u,l,void 0,n?.(a)?.innerContent)?.icon||d?.icon}let f=t.map(m=>o(m));return new Set(f).size===1?d?.icon:mb}function W1e({clientIds:e,isSynced:t}){let{icon:o,showIconLabels:r,variant:n}=(0,j1e.useSelect)(f=>({icon:int({select:f,clientIds:e}),showIconLabels:f(H1e.store).get("core","showIconLabels"),variant:nnt({select:f,clientIds:e})}),[e]),i=ui({clientId:e?.[0],maximumLength:35}),s=e.length===1,a=s&&t&&!r,l=s?i:(0,z1e.__)("Multiple blocks selected"),u=a&&i?i:void 0,d=(0,Zx.jsx)(Lt,{className:"block-editor-block-toolbar__block-icon",icon:o});return n==="switcher"?(0,Zx.jsx)(M1e,{clientIds:e,label:l,text:u,children:d}):n==="styles-only"?(0,Zx.jsx)(L1e,{clientIds:e,label:l,text:u,children:d}):n==="pattern-overrides"?(0,Zx.jsx)(V1e,{icon:d,clientIds:e,blockTitle:i,label:l}):(0,Zx.jsx)(F1e.ToolbarButton,{disabled:!0,className:"block-editor-block-toolbar__block-icon-button",title:l,icon:d,text:u})}var $t=c(T(),1);function sZ({hideDragHandle:e,focusOnMount:t,__experimentalInitialIndex:o,__experimentalOnIndexChange:r,variant:n="unstyled"}){let{blockClientId:i,blockClientIds:s,isDefaultEditingMode:a,blockType:l,toolbarKey:u,shouldShowVisualToolbar:d,showParentSelector:f,isUsingBindings:p,isSectionContainer:m,hasContentOnlyLocking:g,showShuffleButton:h,showSlots:b,showGroupButtons:v,showLockButtons:y,showBlockVisibilityButton:_,showSwitchSectionStyleButton:w,areSelectedBlocksHiddenOnViewport:k,showStyleStateSlot:x,canEdit:C}=(0,G1e.useSelect)(N=>{let{canEditBlock:M}=N(B),{getBlockName:V,getBlockMode:j,getBlockParents:D,getSelectedBlockClientIds:z,isBlockValid:$,getBlockEditingMode:J,getBlockAttributes:Q,getSettings:W,getTemplateLock:X,getParentSectionBlock:U,isZoomOut:G,isSectionBlock:te,isBlockHiddenAtViewport:re,getSelectedBlockStyleState:ae,isResponsiveEditing:ie}=K(N(B)),be=z(),pe=be[0],ke=D(pe),Pe=U(pe)??ke[ke.length-1],_e=V(Pe),ve=(0,bp.getBlockType)(_e),Se=J(pe),fe=Se==="default",Ce=V(pe),ne=be.every(Tt=>$(Tt)),se=be.every(Tt=>j(Tt)==="visual"),Ee=be.every(Tt=>!!Q(Tt)?.metadata?.bindings),he=be.some(Tt=>X(Tt)==="contentOnly"),Ae=G(),et=te(pe),Je=M(pe),_t=Je&&(Ae||et),Et=W()?.[el]?.toLowerCase()||"desktop",mt=be.length>0&&be.every(Tt=>re(Tt,Et)),oo=ie()&&_i(ae(pe));return{blockClientId:pe,blockClientIds:be,isDefaultEditingMode:fe,blockType:pe&&(0,bp.getBlockType)(Ce),shouldShowVisualToolbar:ne&&se,toolbarKey:`$pe}$Pe}`,showParentSelector:!Ae&&ve&&Se!=="contentOnly"&&J(Pe)!=="disabled"&&(0,bp.hasBlockSupport)(ve,"__experimentalParentSelector",!0)&&be.length===1,isUsingBindings:Ee,isSectionContainer:et,hasContentOnlyLocking:he,showShuffleButton:Ae,showSlots:!Ae&&!oo,showStyleStateSlot:!Ae&&oo,showGroupButtons:!Ae,showLockButtons:!Ae,showBlockVisibilityButton:!Ae,showSwitchSectionStyleButton:_t,areSelectedBlocksHiddenOnViewport:mt,canEdit:Je}},[]),E=(0,iZ.useRef)(null),R=(0,iZ.useRef)(),S=Mx({ref:R}),I=!(0,$1e.useViewportMatch)("medium","<");if(!z3())return null;let A=s.length>1,P=(0,bp.isReusableBlock)(l)||(0,bp.isTemplatePart)(l),L=Y("block-editor-block-contextual-toolbar",{"has-parent":f}),H=Y("block-editor-block-toolbar",{"is-synced":P,"is-connected":p});return(0,$t.jsx)(Wx,{focusEditorOnEscape:!0,className:L,"aria-label":(0,U1e.__)("Block tools"),variant:n==="toolbar"?void 0:n,focusOnMount:t,__experimentalInitialIndex:o,__experimentalOnIndexChange:r,children:(0,$t.jsxs)("div",{ref:E,className:H,children:[f&&!A&&I&&(0,$t.jsx)(N0e,{}),(d||A)&&(0,$t.jsx)("div",{ref:R,...S,children:(0,$t.jsxs)(Y1e.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls",children:[(0,$t.jsx)(W1e,{clientIds:s,isSynced:P}),a&&_&&(0,$t.jsx)(vW,{clientIds:s}),!A&&a&&y&&(0,$t.jsx)(Uq,{clientId:i}),(0,$t.jsx)(d3,{clientIds:s,hideDragHandle:e})]})}),!k&&!g&&d&&A&&v&&(0,$t.jsx)(Fq,{}),!A&&C&&(0,$t.jsx)(f1e,{clientId:s[0]}),!k&&h&&(0,$t.jsx)(r1e,{clientId:s[0]}),!k&&w&&(0,$t.jsx)(u1e,{clientId:s[0]}),!k&&d&&(0,$t.jsxs)($t.Fragment,{children:[!m&&(0,$t.jsxs)($t.Fragment,{children:[b&&(0,$t.jsxs)($t.Fragment,{children:[(0,$t.jsx)(Ko.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),(0,$t.jsx)(Ko.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),(0,$t.jsx)(Ko.Slot,{className:"block-editor-block-toolbar__slot"}),(0,$t.jsx)(Ko.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"})]}),x&&(0,$t.jsx)(Ko.Slot,{group:"style-state",className:"block-editor-block-toolbar__slot"})]}),b&&(0,$t.jsxs)($t.Fragment,{children:[(0,$t.jsx)(Ko.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),(0,$t.jsx)(g3.Slot,{})]})]}),(0,$t.jsx)($Ce,{clientIds:s}),(0,$t.jsx)(N3,{clientIds:s})]})},u)}function K1e({hideDragHandle:e,variant:t}){return(0,$t.jsx)(sZ,{hideDragHandle:e,variant:t,focusOnMount:void 0,__experimentalInitialIndex:void 0,__experimentalOnIndexChange:void 0})}var aZ=c(T(),1);function X1e({clientId:e,isTyping:t,__unstableContentRef:o}){let{capturingClientId:r,isInsertionPointVisible:n,lastClientId:i}=o3(e),s=(0,Xx.useRef)();(0,Xx.useEffect)(()=>{s.current=void 0},[e]);let{stopTyping:a}=(0,q1e.useDispatch)(B),l=(0,Xx.useRef)(!1);(0,Z1e.useShortcut)("core/block-editor/focus-toolbar",()=>{l.current=!0,a(!0)}),(0,Xx.useEffect)(()=>{l.current=!1});let u=r||e,d=t3({contentElement:o?.current,clientId:u});return!t&&(0,aZ.jsx)(zy,{clientId:u,bottomClientId:i,className:Y("block-editor-block-list__block-popover",{"is-insertion-point-visible":n}),resize:!1,...d,__unstableContentRef:o,children:(0,aZ.jsx)(sZ,{focusOnMount:l.current,__experimentalInitialIndex:s.current,__experimentalOnIndexChange:f=>{s.current=f},variant:"toolbar"})})}var sV=c(ee(),1),aV=c(F(),1);var Q1e=c(q(),1);var J1e=c(Z(),1),eEe=c(T(),1);function snt({onClick:e}){return(0,eEe.jsx)(Q1e.Button,{variant:"primary",icon:Ms,size:"compact",className:Y("block-editor-button-pattern-inserter__button","block-editor-block-tools__zoom-out-mode-inserter-button"),onClick:e,label:(0,J1e._x)("Add pattern","Generic label for pattern inserter button")})}var tEe=snt;var lZ=c(T(),1);function ant(){let[e,t]=(0,aV.useState)(!1),{hasSelection:o,blockOrder:r,setInserterIsOpened:n,sectionRootClientId:i,selectedBlockClientId:s,blockInsertionPoint:a,insertionPointVisible:l}=(0,sV.useSelect)(g=>{let{getSettings:h,getBlockOrder:b,getSelectionStart:v,getSelectedBlockClientId:y,getSectionRootClientId:_,getBlockInsertionPoint:w,isBlockInsertionPointVisible:k}=K(g(B)),x=_();return{hasSelection:!!v().clientId,blockOrder:b(x),sectionRootClientId:x,setInserterIsOpened:h().__experimentalSetIsInserterOpened,selectedBlockClientId:y(),blockInsertionPoint:w(),insertionPointVisible:k()}},[]),{showInsertionPoint:u}=K((0,sV.useDispatch)(B));if((0,aV.useEffect)(()=>{let g=setTimeout(()=>{t(!0)},500);return()=>{clearTimeout(g)}},[]),!e||!o)return null;let d=s,p=r.findIndex(g=>s===g)+1,m=r[p];return l&&a?.index===p?null:(0,lZ.jsx)(E5,{previousClientId:d,nextClientId:m,children:(0,lZ.jsx)(tEe,{onClick:()=>{n({rootClientId:i,insertionIndex:p,tab:"patterns",category:"all"}),u(i,p,{operation:"insert"})}})})}var oEe=ant;var rEe=c(ee(),1),nEe=c(ce(),1);function iEe(){return(0,rEe.useSelect)(e=>{let{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:o,getBlock:r,getBlockMode:n,getSettings:i,isTyping:s,isBlockInterfaceHidden:a}=K(e(B)),l=t()||o(),u=r(l),d=!!l&&!!u,f=d&&(0,nEe.isUnmodifiedDefaultBlock)(u,"content")&&n(l)!=="html",p=l&&!s()&&f,m=!a()&&!i().hasFixedToolbar&&!p&&d&&!f;return{showEmptyBlockSideInserter:p,showBlockToolbarPopover:m}},[])}var Fl=c(T(),1);function lnt(e){let{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:o,getSettings:r,isTyping:n,isDragging:i,isZoomOut:s,getViewportModalClientIds:a}=K(e(B));return{clientId:t()||o(),hasFixedToolbar:r().hasFixedToolbar,isTyping:n(),isZoomOutMode:s(),isDragging:i(),viewportModalClientIds:a(),blockVisibilitySetting:e(B).getSettings().__experimentalFeatures?.blockVisibility?.allowEditing}}function gR({children:e,__unstableContentRef:t,...o}){let{clientId:r,hasFixedToolbar:n,isTyping:i,isZoomOutMode:s,isDragging:a,viewportModalClientIds:l,blockVisibilitySetting:u}=(0,Qx.useSelect)(lnt,[]),d=(0,sEe.__unstableUseShortcutEventMatch)(),{getBlocksByClientId:f,getSelectedBlockClientIds:p,getBlockRootClientId:m,getBlockEditingMode:g,getBlockName:h,isGroupable:b,getEditedContentOnlySection:v,canEditBlock:y}=K((0,Qx.useSelect)(B)),{getGroupingBlockName:_}=(0,Qx.useSelect)(cV.store),{showEmptyBlockSideInserter:w,showBlockToolbarPopover:k}=iEe(),x=Nx(),[C,E]=(0,lV.useState)(null),{canRename:R}=cR(h(p()[0])),{duplicateBlocks:S,removeBlocks:I,replaceBlocks:O,insertAfterBlock:A,insertBeforeBlock:P,selectBlock:L,moveBlocksUp:H,moveBlocksDown:N,expandBlock:M,stopEditingContentOnlySection:V,showViewportModal:j,hideViewportModal:D}=K((0,Qx.useDispatch)(B));function z(Q){if(!Q.defaultPrevented){if(d("core/block-editor/move-up",Q)||d("core/block-editor/move-down",Q)){let W=p();if(W.length){Q.preventDefault();let X=m(W[0]);(d("core/block-editor/move-up",Q)?"up":"down")==="up"?H(W,X):N(W,X);let G=Array.isArray(W)?W.length:1,te=(0,Jx.sprintf)((0,Jx._n)("%d block moved.","%d blocks moved.",W.length),G);(0,dZ.speak)(te)}}else if(d("core/block-editor/duplicate",Q)){let W=p();W.length&&(Q.preventDefault(),S(W))}else if(d("core/block-editor/remove",Q)){let W=p();W.length&&(Q.preventDefault(),I(W))}else if(d("core/block-editor/paste-styles",Q)){let W=p();if(W.length){Q.preventDefault();let X=f(W);x(X)}}else if(d("core/block-editor/insert-after",Q)){let W=p();W.length&&(Q.preventDefault(),A(W[W.length-1]))}else if(d("core/block-editor/insert-before",Q)){let W=p();W.length&&(Q.preventDefault(),P(W[0]))}else if(d("core/block-editor/unselect",Q)){if(Q.target.closest("[role=toolbar]"))return;let W=p();W.length>1&&(Q.preventDefault(),L(W[0]))}else if(d("core/block-editor/collapse-list-view",Q)){if((0,cZ.isTextField)(Q.target)||(0,cZ.isTextField)(Q.target?.contentWindow?.document?.activeElement))return;Q.preventDefault(),M(r)}else if(d("core/block-editor/group",Q)){let W=p();if(W.length>1&&b(W)){Q.preventDefault();let X=f(W),U=_(),G=Ll(X,U);O(W,G),(0,dZ.speak)((0,Jx.__)("Selected blocks are grouped."))}}else if(d("core/block-editor/rename",Q)){let W=p();if(W.length===1){let X=g(W[0])==="contentOnly";R&&!X&&y(W[0])&&(Q.preventDefault(),E(W[0]))}}else if(d("core/block-editor/toggle-block-visibility",Q)){if(u===!1)return;let W=p();if(W.length){if(Q.preventDefault(),!f(W).every(G=>(0,cV.hasBlockSupport)(G.name,"visibility",!0))||W.some(G=>g(G)!=="default"||!y(G)))return;j(W)}}d("core/block-editor/stop-editing-as-blocks",Q)&&v()&&V()}}let $=Fy(t),J=Fy(t);return(0,Fl.jsxs)("div",{...o,onKeyDown:z,className:Y(o.className,{"block-editor-block-tools--is-dragging":a}),children:[(0,Fl.jsxs)(Ex.Provider,{value:(0,lV.useRef)(!1),children:[!i&&!s&&(0,Fl.jsx)(nSe,{__unstableContentRef:t}),w&&(0,Fl.jsx)(v0e,{__unstableContentRef:t,clientId:r}),k&&(0,Fl.jsx)(X1e,{__unstableContentRef:t,clientId:r,isTyping:i}),!s&&!n&&(0,Fl.jsx)(uZ.Popover.Slot,{name:"block-toolbar",ref:$}),e,(0,Fl.jsx)(uZ.Popover.Slot,{name:"__unstable-block-tools-after",ref:J}),s&&!a&&(0,Fl.jsx)(oEe,{__unstableContentRef:t})]}),C&&(0,Fl.jsx)(ov,{clientId:C,onClose:()=>E(null)}),l&&(0,Fl.jsx)(gW,{clientIds:l,onClose:D})]})}var hR=c(ue(),1),eS=c(ee(),1),fZ=c(Dt(),1),Yi=c(wo(),1);var aEe=c(T(),1),cnt=new Set([Yi.UP,Yi.RIGHT,Yi.DOWN,Yi.LEFT,Yi.ENTER,Yi.BACKSPACE]);function unt(e){let{keyCode:t,shiftKey:o}=e;return!o&&cnt.has(t)}function bR(){let e=(0,eS.useSelect)(o=>o(B).isTyping(),[]),{stopTyping:t}=(0,eS.useDispatch)(B);return(0,hR.useRefEffect)(o=>{if(!e)return;let{ownerDocument:r}=o,n,i;function s(a){let{clientX:l,clientY:u}=a;n&&i&&(n!==l||i!==u)&&t(),n=l,i=u}return r.addEventListener("mousemove",s),()=>{r.removeEventListener("mousemove",s)}},[e,t])}function yR(){let e=(0,eS.useSelect)(i=>i(B).isTyping(),[]),{startTyping:t,stopTyping:o}=(0,eS.useDispatch)(B),r=bR(),n=(0,hR.useRefEffect)(i=>{if(e){let d=function(h){let{target:b}=h;m=g.setTimeout(()=>{(0,fZ.isTextField)(b)||o()})},f=function(h){let{keyCode:b}=h;(b===Yi.ESCAPE||b===Yi.TAB)&&o()},p=function(){g.getSelection().isCollapsed||o()};var s=d,a=f,l=p;let m,{defaultView:g}=i.ownerDocument;return i.addEventListener("focus",d),i.addEventListener("keydown",f),i.ownerDocument.addEventListener("selectionchange",p),()=>{g.clearTimeout(m),i.removeEventListener("focus",d),i.removeEventListener("keydown",f),i.ownerDocument.removeEventListener("selectionchange",p)}}function u(d){let{type:f,target:p}=d;!(0,fZ.isTextField)(p)||!i.contains(p)||f==="keydown"&&!unt(d)||t()}return i.addEventListener("keypress",u),i.addEventListener("keydown",u),()=>{i.removeEventListener("keypress",u),i.removeEventListener("keydown",u)}},[e,t,o]);return(0,hR.useMergeRefs)([r,n])}function dnt({children:e}){return(0,aEe.jsx)("div",{ref:yR(),children:e})}var lEe=dnt;var zl=c(Z(),1),vp=c(ce(),1),yp=c(ee(),1),pZ=c(uEe(),1);var fnt=()=>function(){let{replaceBlocks:t,multiSelect:o}=(0,yp.useDispatch)(B),{blocks:r,clientIds:n,canRemove:i,possibleBlockTransformations:s,invalidSelection:a}=(0,yp.useSelect)(m=>{let{getBlockRootClientId:g,getBlockTransformItems:h,getSelectedBlockClientIds:b,getBlocksByClientId:v,canRemoveBlocks:y}=m(B),_=b(),w=v(_);if(w.filter(x=>!x).length>0)return{invalidSelection:!0};let k=g(_[0]);return{blocks:w,clientIds:_,possibleBlockTransformations:h(w,k),canRemove:y(_),invalidSelection:!1}},[]);if(a)return{isLoading:!1,commands:[]};let l=r.length===1&&(0,vp.isTemplatePart)(r[0]);function u(m){m.length>1&&o(m[0].clientId,m[m.length-1].clientId)}function d(m,g){let h=(0,vp.switchToBlockType)(r,m,g);t(n,h),u(h)}let f=!!s.length&&i&&!l;return!n||n.length<1||!f?{isLoading:!1,commands:[]}:{isLoading:!1,commands:s.map(m=>{let{id:g,name:h,title:b,icon:v,variationName:y}=m,_=!v?.src||v?.src==="block-default"?{src:tC}:v;return{name:"core/block-editor/transform-to-"+(g||h).replace(/\//g,"-"),label:(0,zl.sprintf)((0,zl.__)("Transform to %s"),b),icon:_?.src,category:"command",callback:({close:w})=>{d(h,y),w()}}})}},pnt=()=>function(){let{clientIds:t,isUngroupable:o,isGroupable:r,blockVisibilitySetting:n}=(0,yp.useSelect)(P=>{let{getSelectedBlockClientIds:L,getSettings:H,isUngroupable:N,isGroupable:M}=P(B);return{clientIds:L(),isUngroupable:N(),isGroupable:M(),blockVisibilitySetting:H().__experimentalFeatures?.blockVisibility?.allowEditing}},[]),{canInsertBlockType:i,getBlockRootClientId:s,getBlocksByClientId:a,canRemoveBlocks:l,isBlockHiddenAnywhere:u}=K((0,yp.useSelect)(B)),{getBlockEditingMode:d}=(0,yp.useSelect)(B),{getDefaultBlockName:f,getGroupingBlockName:p}=(0,yp.useSelect)(vp.store),m=a(t),g=(0,yp.useDispatch)(B),{removeBlocks:h,replaceBlocks:b,duplicateBlocks:v,insertAfterBlock:y,insertBeforeBlock:_}=g,w=()=>{if(!m.length)return;let P=p(),L=Ll(m,P);L&&b(t,L)},k=()=>{if(!m.length)return;let P=m[0].innerBlocks;P.length&&b(t,P)};if(!t||t.length<1)return{isLoading:!1,commands:[]};let{showViewportModal:x}=K(g),C=s(t[0]),E=i(f(),C),R=m.every(P=>!!P&&(0,vp.hasBlockSupport)(P.name,"multiple",!0)&&i(P.name,C)),S=l(t),I=[];R&&I.push({name:"duplicate",label:(0,zl.__)("Duplicate"),callback:()=>v(t,!0),icon:mb}),E&&I.push({name:"add-before",label:(0,zl.__)("Add before"),callback:()=>{let P=Array.isArray(t)?t[0]:P;_(P)},icon:Ms},{name:"add-after",label:(0,zl.__)("Add after"),callback:()=>{let P=Array.isArray(t)?t[t.length-1]:P;y(P)},icon:Ms}),r&&I.push({name:"Group",label:(0,zl.__)("Group"),callback:w,icon:aC}),o&&I.push({name:"ungroup",label:(0,zl.__)("Ungroup"),callback:k,icon:sj}),S&&I.push({name:"remove",label:(0,zl.__)("Delete"),callback:()=>h(t,!0),icon:nj});let O=m.every(P=>!!P&&(0,vp.hasBlockSupport)(P.name,"visibility",!0)),A=t.every(P=>d(P)==="default");if(O&&A&&n!==!1){let P=t.some(L=>u(L));I.push({name:"toggle-visibility",label:P?(0,zl.__)("Show"):(0,zl.__)("Hide"),callback:()=>x(t),icon:P?kb:_c})}return{isLoading:!1,commands:I.map(P=>({...P,name:"core/block-editor/action-"+P.name,category:"command",callback:({close:L})=>{P.callback(),L()}}))}},uV=()=>{(0,pZ.useCommandLoader)({name:"core/block-editor/blockTransforms",hook:fnt()}),(0,pZ.useCommandLoader)({name:"core/block-editor/blockQuickActions",hook:pnt(),context:"block-selection-edit"})};var ys=c(T(),1),dV=(0,mEe.createSlotFill)(Symbol("BlockCanvasCover"));function dEe({children:e}){return(0,ys.jsx)("div",{className:"block-canvas-cover",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},children:e})}var mnt={ignoredSelectors:[/\.editor-styles-wrapper/gi]};function mZ({shouldIframe:e=!0,height:t="300px",children:o=(0,ys.jsx)(tx,{}),styles:r,contentRef:n,iframeProps:i}){uV();let s=(0,fV.useViewportMatch)("medium","<"),a=bR(),l=jy(),u=(0,fEe.useRef)(),d=(0,fV.useMergeRefs)([n,l,u,yR()]),f=(0,pEe.useSelect)(m=>K(m(B)).getZoomLevel(),[]),p=f!==100&&!s?{scale:f,frameSize:"40px"}:{};return e?(0,ys.jsx)(gR,{__unstableContentRef:u,style:{height:t,display:"flex"},children:(0,ys.jsxs)(Yk,{...i,...p,ref:a,contentRef:d,style:{...i?.style},name:"editor-canvas",children:[(0,ys.jsx)(dV.Slot,{fillProps:{containerRef:u},children:m=>m.map((g,h)=>(0,ys.jsx)(dEe,{children:g},h))}),(0,ys.jsx)(qf,{styles:r}),o]})}):(0,ys.jsxs)(gR,{__unstableContentRef:u,style:{height:t,display:"flex"},children:[(0,ys.jsx)(dV.Slot,{fillProps:{containerRef:u},children:m=>m.map((g,h)=>(0,ys.jsx)(dEe,{children:g},h))}),(0,ys.jsx)(qf,{styles:r,scope:":where(.editor-styles-wrapper)",transformOptions:mnt}),(0,ys.jsx)(kD,{ref:d,className:"editor-styles-wrapper",tabIndex:-1,style:{height:"100%",width:"100%",overflow:"auto"},children:o})]})}function gnt({children:e,height:t,styles:o}){return(0,ys.jsx)(mZ,{height:t,styles:o,children:e})}var gEe=gnt;var Bd=c(q(),1),hEe=c(Z(),1),bEe=c(wo(),1),yEe=c(Nt(),1),jl=c(T(),1),hnt=()=>(0,jl.jsx)(Bd.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,jl.jsx)(Bd.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"})}),bnt=({style:e,className:t})=>(0,jl.jsx)("div",{className:"block-library-colors-selector__icon-container",children:(0,jl.jsx)("div",{className:`$t} block-library-colors-selector__state-selection`,style:e,children:(0,jl.jsx)(hnt,{})})}),ynt=({TextColor:e,BackgroundColor:t})=>function({onToggle:r,isOpen:n}){let i=s=>{!n&&s.keyCode===bEe.DOWN&&(s.preventDefault(),r())};return(0,jl.jsx)(Bd.ToolbarGroup,{children:(0,jl.jsx)(Bd.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:(0,hEe.__)("Open Colors Selector"),onClick:r,onKeyDown:i,icon:(0,jl.jsx)(t,{children:(0,jl.jsx)(e,{children:(0,jl.jsx)(bnt,{})})})})})},vnt=({children:e,...t})=>((0,yEe.default)("wp.blockEditor.BlockColorsStyleSelector",{alternative:"block supports API",since:"6.1",version:"6.3"}),(0,jl.jsx)(Bd.Dropdown,{popoverProps:{placement:"bottom-start"},className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:ynt(t),renderContent:()=>e})),vEe=vnt;var BTe=c(Nt(),1),BV=c(q(),1),wZ=c(Z(),1),ITe=c(ee(),1),PTe=c(F(),1);var sh=c(ue(),1),CTe=c(Tx(),1),ETe=c(q(),1);var kR=c(ee(),1),TTe=c(Nt(),1),Qn=c(F(),1),_Z=c(Z(),1);var xV=c(q(),1),tTe=c(F(),1),SV=c(ee(),1);var kEe=c(ue(),1),xEe=c(Yo(),1),SEe=c(ee(),1),yV=c(F(),1),oS=c(Z(),1);var ih=c(F(),1),pV=(0,ih.createContext)({});pV.displayName="ListViewContext";var tS=()=>(0,ih.useContext)(pV),mV=(0,ih.createContext)({});mV.displayName="ListViewTreeStateContext";var _Ee=()=>(0,ih.useContext)(mV),gV=(0,ih.createContext)(null);gV.displayName="ListViewInsertedBlockContext";var hV=()=>(0,ih.useContext)(gV);var wEe=c(oe(),1);function bV({children:e,...t}){return(0,wEe.createElement)("div",{hidden:!0,...t,key:e},e)}var vR=c(T(),1),gZ=(0,yV.forwardRef)(({nestingLevel:e,blockCount:t,clientId:o,...r},n)=>{let{setInsertedBlockClientId:i}=tS(),s=hV(),a=(0,kEe.useInstanceId)(gZ),{directInsert:l,hideInserter:u}=(0,SEe.useSelect)(g=>{let{getBlockListSettings:h,getTemplateLock:b,isZoomOut:v}=K(g(B)),_=h(o)?.directInsert||!1,w=!!b(o)||v();return{directInsert:_,hideInserter:w}},[o]),d=ui({clientId:o,context:"list-view"}),f=ui({clientId:s,context:"list-view"});if((0,yV.useEffect)(()=>{f?.length&&(0,xEe.speak)((0,oS.sprintf)((0,oS.__)("%s block inserted"),f),"assertive")},[f]),u)return null;let p=`list-view-appender__$a}`,m=(0,oS.sprintf)((0,oS.__)("Append to %1$s block at position %2$d, Level %3$d"),d,t+1,e);return(0,vR.jsxs)("div",{className:"list-view-appender",children:[(0,vR.jsx)(Qs,{ref:n,rootClientId:o,position:"bottom right",isAppender:!0,selectBlockOnInsert:!1,shouldDirectInsert:l,__experimentalIsQuick:!0,...r,toggleProps:{"aria-describedby":p},onSelectOrClose:g=>{g?.clientId&&i(g.clientId)}}),(0,vR.jsx)(bV,{id:p,children:m})]})});var iv=c(ce(),1),sv=c(q(),1),wV=c(ue(),1);var sn=c(F(),1),nS=c(ee(),1),yZ=c(Z(),1),kV=c(wo(),1),ZEe=c(Tx(),1),XEe=c(fl(),1),QEe=c(Yo(),1);var CEe=c(q(),1),EEe=c(ue(),1),TEe=c(F(),1);var REe=c(T(),1),_nt=Pse(CEe.__experimentalTreeGridRow),wnt=(0,TEe.forwardRef)(({isDragged:e,isSelected:t,position:o,level:r,rowCount:n,children:i,className:s,path:a,...l},u)=>{let d=WO({clientId:l["data-block"],enableAnimation:!0,triggerAnimationOnChange:a}),f=(0,EEe.useMergeRefs)([u,d]);return(0,REe.jsx)(_nt,{ref:f,className:Y("block-editor-list-view-leaf",s),level:r,positionInSet:o,setSize:n,isExpanded:void 0,...l,children:i})}),BEe=wnt;var IEe=c(Dt(),1),PEe=c(F(),1);function OEe({isSelected:e,selectedClientIds:t,rowItemRef:o}){let r=t.length===1;(0,PEe.useLayoutEffect)(()=>{if(!e||!r||!o.current)return;let n=(0,IEe.getScrollContainer)(o.current),{ownerDocument:i}=o.current;if(n===i.body||n===i.documentElement||!n)return;let a=o.current.getBoundingClientRect(),l=n.getBoundingClientRect();(a.top<l.top||a.bottom>l.bottom)&&o.current.scrollIntoView()},[e,r,o])}var HEe=c(F(),1);var DEe=c(q(),1),VEe=c(F(),1),FEe=c(ee(),1),zEe=c(ce(),1);var _V=c(wo(),1);var AEe=c(Z(),1),hZ=c(T(),1);function vV({onClick:e}){return(0,hZ.jsx)("span",{className:"block-editor-list-view__expander",onClick:e?t=>e(t,{forceToggle:!0}):void 0,"aria-hidden":"true","data-testid":"list-view-expander",children:(0,hZ.jsx)(xt,{icon:(0,AEe.isRTL)()?oC:hm})})}var MEe=c(F(),1),NEe=c(ee(),1);var knt=3,bZ={"core/image":({clientId:e,attributes:t})=>{if(t.url)return{url:t.url,alt:t.alt||"",clientId:e}},"core/cover":({clientId:e,attributes:t})=>{if(t.backgroundType==="image"&&t.url)return{url:t.url,alt:t.alt||"",clientId:e}},"core/media-text":({clientId:e,attributes:t})=>{if(t.mediaType==="image"&&t.mediaUrl)return{url:t.mediaUrl,alt:t.mediaAlt||"",clientId:e}},"core/gallery":({innerBlocks:e})=>{let t=[],o=e?.length?bZ[e[0].name]:void 0;if(!o)return t;for(let r of e){let n=o(r);if(n&&t.push(n),t.length>=knt)return t}return t}};function xnt(e,t){let o=e?bZ[e.name](e):void 0;return o?Array.isArray(o)?t?[]:o:[o]:[]}function LEe({clientId:e,isExpanded:t}){let{block:o}=(0,NEe.useSelect)(n=>{let{getBlockName:i,getBlock:s}=n(B);return{block:!!bZ[i(e)]?s(e):void 0}},[e]);return(0,MEe.useMemo)(()=>xnt(o,t),[o,t])}var nn=c(T(),1);function Snt({className:e,clientId:t,onClick:o,onContextMenu:r,onMouseDown:n,onToggleExpanded:i,tabIndex:s,onFocus:a,onDragStart:l,onDragEnd:u,draggable:d,isExpanded:f,isSelected:p,ariaDescribedBy:m,visibilityLabel:g,isDisabled:h=!1},b){let v=ui({clientId:t,context:"list-view"}),{icon:y,anchor:_,isSticky:w,isLocked:k}=(0,FEe.useSelect)(S=>{let{getBlockName:I,getBlockAttributes:O,getBlock:A,isSectionBlock:P,isLockedBlock:L}=K(S(B)),{getBlockType:H,getActiveBlockVariation:N}=S(zEe.store),M=O(t),V=I(t),j=tl;return(!M?.metadata?.patternName||!P(t))&&(j=N(V,M,void 0,A(t)?.innerContent)?.icon||H(V)?.icon),{icon:j,anchor:M?.anchor,isSticky:M?.style?.position?.type==="sticky",isLocked:L(t)}},[t]),x=k,C=LEe({clientId:t,isExpanded:f}),E=S=>{S.dataTransfer.clearData(),l?.(S)};function R(S){(S.keyCode===_V.ENTER||S.keyCode===_V.SPACE)&&o(S)}return(0,nn.jsxs)("a",{className:Y("block-editor-list-view-block-select-button",e),onClick:o,onContextMenu:r,onKeyDown:R,onMouseDown:n,ref:b,tabIndex:s,onFocus:a,onDragStart:E,onDragEnd:u,draggable:d,href:h?void 0:`#block-$t}`,"aria-disabled":h?!0:void 0,"aria-describedby":m,"aria-expanded":f,children:[(0,nn.jsx)(vV,{onClick:i}),(0,nn.jsx)(Lt,{icon:y,showColors:!p,context:"list-view"}),(0,nn.jsxs)($e,{align:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",gap:"xs",children:[(0,nn.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,nn.jsx)(DEe.__experimentalTruncate,{ellipsizeMode:"auto",children:v})}),!!_&&(0,nn.jsx)("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper",children:(0,nn.jsx)("span",{className:"block-editor-list-view-block-select-button__anchor",children:_})}),w&&(0,nn.jsx)("span",{className:"block-editor-list-view-block-select-button__sticky",children:(0,nn.jsx)(xt,{icon:bz})}),C.length?(0,nn.jsx)("span",{className:"block-editor-list-view-block-select-button__images","aria-hidden":!0,children:C.map((S,I)=>(0,nn.jsx)("span",{className:"block-editor-list-view-block-select-button__image",style:{backgroundImage:`url($S.url})`,zIndex:C.length-I}},S.clientId))}):null,!!g&&(0,nn.jsxs)(ao.Root,{children:[(0,nn.jsx)(ao.Trigger,{render:(0,nn.jsx)("span",{className:"block-editor-list-view-block-select-button__block-visibility","aria-hidden":"true",children:(0,nn.jsx)(xt,{icon:_c})})}),(0,nn.jsx)(ao.Popup,{children:g})]}),x&&(0,nn.jsx)("span",{className:"block-editor-list-view-block-select-button__lock",children:(0,nn.jsx)(xt,{icon:uz})})]})]})}var jEe=(0,VEe.forwardRef)(Snt);var _p=c(T(),1);function Cnt({clientId:e}){let{AdditionalBlockContent:t,setInsertedBlockClientId:o}=tS(),r=hV();return!t||r!==e?null:(0,_p.jsx)(t,{insertedBlockClientId:r,setInsertedBlockClientId:o})}var Ent=(0,HEe.forwardRef)(({onClick:e,onToggleExpanded:t,clientId:o,isExpanded:r,selectedClientIds:n,...i},s)=>{let a=n.includes(o)?n:[o];return(0,_p.jsxs)(_p.Fragment,{children:[(0,_p.jsx)(Cnt,{clientId:o}),(0,_p.jsx)(i3,{appendToOwnerDocument:!0,clientIds:a,cloneClassname:"block-editor-list-view-draggable-chip",children:({draggable:l,onDragStart:u,onDragEnd:d})=>(0,_p.jsx)(jEe,{ref:s,className:"block-editor-list-view-block-contents",clientId:o,onClick:e,onToggleExpanded:t,draggable:l,onDragStart:u,onDragEnd:d,isExpanded:r,...i})})]})}),WEe=Ent;var nv=c(Z(),1),UEe=c(Dt(),1),_R=32,GEe=(e,t,o)=>(0,nv.sprintf)((0,nv.__)("Block %1$d of %2$d, Level %3$d."),e,t,o),$Ee=(e,t)=>[e?`${(0,nv.sprintf)((0,nv.__)("Position: %s"),e)}.`:void 0,t?(0,nv.__)("This block is locked."):void 0].filter(Boolean).join(" "),YEe=(e,t)=>Array.isArray(t)&&t.length?t.indexOf(e)!==-1:t===e;function KEe(e,t,o,r){let n=[...o,e],i=[...r,t],s=Math.min(n.length,i.length)-1,a=n[s],l=i[s];return{start:a,end:l}}function rS(e,t,o){if(!t)return;let r=`[role=row][data-block="$e}"]`;return new Promise(n=>{if(t.querySelector(r))return n(t.querySelector(r));let i=null,s=new window.MutationObserver(()=>{t.querySelector(r)&&(clearTimeout(i),s.disconnect(),n(t.querySelector(r)))});s.observe(t,{childList:!0,subtree:!0}),o?.addEventListener("abort",()=>{clearTimeout(i),s.disconnect(),n(null)},{once:!0}),i=setTimeout(()=>{s.disconnect(),n(null)},3e3)}).then(n=>{o?.aborted||n&&n.isConnected&&UEe.focus.focusable.find(n)?.[0]?.focus()})}function qEe({blockIndexes:e,blockDropTargetIndex:t,blockDropPosition:o,clientId:r,firstDraggedBlockIndex:n,isDragged:i}){let s,a,l;if(!i){a=!1;let u=e[r];l=u>n,t!=null&&n!==void 0?u!==void 0&&(u>=n&&u<t?s="up":u<n&&u>=t?s="down":s="normal",a=typeof t=="number"&&t-1===u&&o==="inside"):t===null&&n!==void 0?u!==void 0&&u>=n?s="up":s="normal":t!=null&&n===void 0?u!==void 0&&(u<t?s="normal":s="down"):t===null&&(s="normal")}return{displacement:s,isNesting:a,isAfterDraggedBlocks:l}}var Xn=c(T(),1);function JEe({clientId:e,displacement:t,isAfterDraggedBlocks:o,isDragged:r,isNesting:n,isSelected:i,isBranchSelected:s,selectBlock:a,position:l,level:u,rowCount:d,siblingBlockCount:f,showBlockMovers:p,path:m,isExpanded:g,selectedClientIds:h,isSyncedBranch:b}){let v=(0,sn.useRef)(null),y=(0,sn.useRef)(null),_=(0,sn.useRef)(null),[w,k]=(0,sn.useState)(!1),[x,C]=(0,sn.useState)(),[E,R]=(0,sn.useState)(!1),S=i&&h[0]===e,I=i&&h[h.length-1]===e,{toggleBlockHighlight:O,duplicateBlocks:A,multiSelect:P,replaceBlocks:L,removeBlocks:H,insertAfterBlock:N,insertBeforeBlock:M,showViewportModal:V,stopEditingContentOnlySection:j}=K((0,nS.useDispatch)(B)),D=(0,wV.useDebounce)(O,50),{canInsertBlockType:z,getSelectedBlockClientIds:$,getPreviousBlockClientId:J,getBlockRootClientId:Q,getBlockOrder:W,getBlockParents:X,getBlockEditingMode:U,getBlocksByClientId:G,canEditBlock:te,canMoveBlock:re,canRemoveBlocks:ae,isGroupable:ie}=(0,nS.useSelect)(B),{getGroupingBlockName:be}=(0,nS.useSelect)(iv.store),pe=Nx(),{blockName:ke,blockVisibility:ye,blockEditingMode:Pe,allowRightClickOverrides:_e,editedSection:ve,viewportSettings:Se,blockVisibilitySetting:fe,positionLabel:Ce,isSynced:ne,isLocked:se}=(0,nS.useSelect)(Be=>{let{getBlockName:Ht,getBlockAttributes:lt,getBlockEditingMode:no,getSettings:Ar,getEditedContentOnlySection:rr,isSyncedBlock:si,isLockedBlock:lf}=K(Be(B)),Xa=Ar(),bc=lt(e);return{blockName:Ht(e),blockVisibility:bc?.metadata?.blockVisibility,blockEditingMode:no(e),allowRightClickOverrides:Xa.allowRightClickOverrides,editedSection:rr(),viewportSettings:Xa.__experimentalFeatures?.viewport,blockVisibilitySetting:Xa.__experimentalFeatures?.blockVisibility?.allowEditing,positionLabel:J5(bc),isSynced:si(e),isLocked:lf(e)}},[e]),Ee=Pe==="disabled",he=!!ke&&(0,iv.hasBlockSupport)(ke,"renaming",!0),Ae=(0,iv.hasBlockSupport)(ke,"__experimentalToolbar",!0),Je=`list-view-block-select-button__description-${(0,wV.useInstanceId)(JEe)}`,{BlockSettingsMenu:_t,listViewInstanceId:Et,updateExpansion:mt,setInsertedBlockClientId:oo,treeGridElementRef:Tt,rootClientId:Rt}=tS(),Bt=(0,XEe.__unstableUseShortcutEventMatch)();function gt(){let Be=$(),Ht=Be.includes(e),lt=Ht?Be[0]:e,no=Q(lt);return{blocksToUpdate:Ht?Be:[e],firstBlockClientId:lt,firstBlockRootClientId:no,selectedBlockClientIds:Be}}async function He(Be){if(Be.defaultPrevented||Be.target.closest("[role=dialog]"))return;if(ve&&Bt("core/block-editor/unselect",Be)){Be.stopPropagation(),Be.preventDefault(),j();return}let Ht=[kV.BACKSPACE,kV.DELETE].includes(Be.keyCode);if(Bt("core/block-editor/unselect",Be)&&h.length>0)Be.stopPropagation(),Be.preventDefault(),a(Be,void 0);else if(Ht||Bt("core/block-editor/remove",Be)){let{blocksToUpdate:lt,firstBlockClientId:no,firstBlockRootClientId:Ar,selectedBlockClientIds:rr}=gt();if(!ae(lt))return;let si=J(no)??Ar;H(lt,!1);let lf=rr.length>0&&$().length===0;si||(si=W()[0]),Re(si,lf)}else if(Bt("core/block-editor/paste-styles",Be)){Be.preventDefault();let{blocksToUpdate:lt}=gt(),no=G(lt);pe(no)}else if(Bt("core/block-editor/duplicate",Be)){Be.preventDefault();let{blocksToUpdate:lt,firstBlockRootClientId:no}=gt();if(G(lt).every(rr=>!!rr&&(0,iv.hasBlockSupport)(rr.name,"multiple",!0)&&z(rr.name,no))){let rr=await A(lt,!1);rr?.length&&Re(rr[0],!1)}}else if(Bt("core/block-editor/insert-before",Be)){Be.preventDefault();let{blocksToUpdate:lt}=gt();await M(lt[0]);let no=$();Re(no[0],!1)}else if(Bt("core/block-editor/insert-after",Be)){Be.preventDefault();let{blocksToUpdate:lt}=gt();await N(lt.at(-1));let no=$();Re(no[0],!1)}else if(Bt("core/block-editor/select-all",Be)){Be.preventDefault();let{firstBlockRootClientId:lt,selectedBlockClientIds:no}=gt(),Ar=W(lt);if(!Ar.length)return;if((0,ZEe.isShallowEqual)(no,Ar)&<&<!==Rt){Re(lt,!0);return}P(Ar[0],Ar[Ar.length-1],null)}else if(Bt("core/block-editor/collapse-list-view",Be)){Be.preventDefault();let{firstBlockClientId:lt}=gt(),no=X(lt,!1);mt({type:"replace",clientIds:no})}else if(Bt("core/block-editor/group",Be)){let{blocksToUpdate:lt}=gt();if(lt.length>1&&ie(lt)){Be.preventDefault();let no=G(lt),Ar=be(),rr=Ll(no,Ar);L(lt,rr),(0,QEe.speak)((0,yZ.__)("Selected blocks are grouped."));let si=$();Re(si[0],!1)}}else if(Bt("core/block-editor/toggle-block-visibility",Be)){if(fe===!1)return;Be.preventDefault();let{blocksToUpdate:lt}=gt();if(!G(lt).every(rr=>(0,iv.hasBlockSupport)(rr.name,"visibility",!0))||lt.some(rr=>U(rr)!=="default"))return;V(lt)}else if(Bt("core/block-editor/rename",Be)){let{blocksToUpdate:lt}=gt(),no=U(lt[0])==="contentOnly";lt.length===1&&he&&!no&&(Be.preventDefault(),R(!0))}}let we=(0,sn.useCallback)(()=>{k(!0),D(e,!0)},[e,k,D]),Me=(0,sn.useCallback)(()=>{k(!1),D(e,!1)},[e,k,D]),ge=(0,sn.useCallback)(Be=>{let Ht=Be?.detail===0;a(Be,e,Ht?0:null),Be.preventDefault()},[e,a]),Re=(0,sn.useCallback)((Be,Ht)=>{Ht&&a(void 0,Be,null,null),rS(Be,Tt?.current)},[a,Tt]),Ie=(0,sn.useCallback)(Be=>{Be.preventDefault(),Be.stopPropagation(),g!==void 0&&mt({type:g?"collapse":"expand",clientIds:[e]})},[e,mt,g]),at=(0,sn.useCallback)(Be=>{let{ownerDocument:Ht}=_?.current||{};!Ht||!Ht.hasFocus()||Ae&&_e&&(_.current?.click(),C(new window.DOMRect(Be.clientX,Be.clientY,0,0)),Be.preventDefault())},[_e,_,Ae]),Qe=(0,sn.useCallback)(Be=>{_e&&Be.button===2&&Be.preventDefault()},[_e]),po=(0,sn.useMemo)(()=>{let{ownerDocument:Be}=y?.current||{};if(!(!x||!Be))return{ownerDocument:Be,getBoundingClientRect(){return x}}},[x]),ro=(0,sn.useCallback)(()=>{C(void 0)},[C]);if(OEe({isSelected:i,rowItemRef:y,selectedClientIds:h}),!ke)return null;let vo=GEe(l,f,u),Kt=$Ee(Ce,se),_o=mW(ye,Se),En=f>0,it=Ae&&!Ee,Vt=p&&En&&!Ee,Pr=Y("block-editor-list-view-block__mover-cell",{"is-visible":w||i}),gr=Y("block-editor-list-view-block__menu-cell",{"is-visible":w||S}),Gr;Vt?Gr=2:it||(Gr=3);let Or=Y({"is-selected":i,"is-first-selected":S,"is-last-selected":I,"is-branch-selected":s,"is-synced-branch":b,"is-dragging":r,"has-single-cell":!Ae,"is-synced":ne,"is-draggable":re&&!Ee,"is-displacement-normal":t==="normal","is-displacement-up":t==="up","is-displacement-down":t==="down","is-after-dragged-blocks":o,"is-nesting":n,"is-disabled":Ee}),pn=h.includes(e)?h:[e],Pi=Be=>Ee?-1:i&&h.length===1?0:Be;return(0,Xn.jsxs)(BEe,{className:Or,isDragged:r,onKeyDown:He,onMouseEnter:Ee?void 0:we,onMouseLeave:Ee?void 0:Me,onFocus:Ee?void 0:we,onBlur:Ee?void 0:Me,level:u,position:l,rowCount:d,path:m,id:`list-view-$Et}-block-$e}`,"data-block":e,"data-expanded":te?g:void 0,ref:y,children:[(0,Xn.jsx)(sv.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:Gr,ref:v,"aria-selected":!!i,children:({ref:Be,tabIndex:Ht,onFocus:lt})=>(0,Xn.jsxs)("div",{className:"block-editor-list-view-block__contents-container",children:[(0,Xn.jsx)(WEe,{clientId:e,onClick:ge,onContextMenu:Ee?void 0:at,onMouseDown:Qe,onToggleExpanded:Ee?void 0:Ie,ref:Be,tabIndex:Pi(Ht),onFocus:lt,isExpanded:te?g:void 0,isSelected:i,selectedClientIds:h,ariaDescribedBy:Je,visibilityLabel:_o,isDisabled:Ee}),(0,Xn.jsx)(bV,{id:Je,children:[vo,Kt,_o].filter(Boolean).join(" ")})]})}),Vt&&(0,Xn.jsx)(Xn.Fragment,{children:(0,Xn.jsxs)(sv.__experimentalTreeGridCell,{className:Pr,withoutGridItem:!0,children:[(0,Xn.jsx)(sv.__experimentalTreeGridItem,{children:({ref:Be,tabIndex:Ht,onFocus:lt})=>(0,Xn.jsx)(c3,{orientation:"vertical",clientIds:[e],ref:Be,tabIndex:Ht,onFocus:lt})}),(0,Xn.jsx)(sv.__experimentalTreeGridItem,{children:({ref:Be,tabIndex:Ht,onFocus:lt})=>(0,Xn.jsx)(u3,{orientation:"vertical",clientIds:[e],ref:Be,tabIndex:Ht,onFocus:lt})})]})}),it&&_t&&(0,Xn.jsx)(sv.__experimentalTreeGridCell,{className:gr,"aria-selected":!!i,ref:_,children:({ref:Be,tabIndex:Ht,onFocus:lt})=>(0,Xn.jsx)(_t,{clientId:e,clientIds:pn,icon:ga,label:(0,yZ.__)("Options"),popoverProps:{anchor:po},toggleProps:{ref:Be,className:"block-editor-list-view-block__menu",tabIndex:Ht,onClick:ro,onFocus:lt,size:"small"},disableOpenOnArrowDown:!0,updateExpansion:mt,setInsertedBlockClientId:oo,__experimentalSelectBlock:Re,isContentOnlyListView:!!Rt&&U(Rt)==="contentOnly"})}),E&&(0,Xn.jsx)(ov,{clientId:e,onClose:()=>R(!1)})]})}var eTe=(0,sn.memo)(JEe);var La=c(T(),1);function oTe(e,t,o,r){return o?.includes(e.clientId)?0:t[e.clientId]??r?e.innerBlocks.reduce((s,a)=>s+oTe(a,t,o,r),1):1}var Tnt=()=>{};function rTe(e){let{blocks:t,selectBlock:o=Tnt,showBlockMovers:r,selectedClientIds:n,level:i=1,path:s="",isBranchSelected:a=!1,listPosition:l=0,fixedListWindow:u,isExpanded:d,parentId:f,isSyncedBranch:p=!1,showAppender:m=!0}=e,{canParentExpand:g,isParentSynced:h}=(0,SV.useSelect)(H=>{if(!f)return{canParentExpand:!0,isParentSynced:!1};let{canEditBlock:N,isSyncedBlock:M}=K(H(B));return{canParentExpand:N(f),isParentSynced:M(f)}},[f]),b=p||h,{blockDropPosition:v,blockDropTargetIndex:y,firstDraggedBlockIndex:_,blockIndexes:w,expansionState:k,draggedClientIds:x}=_Ee();if(!g)return null;let C=m&&i===1,E=t.filter(Boolean),R=E.length,S=C?R+1:R,I=l,O=[],A=0,P,L=()=>{A&&(O.push((0,La.jsx)("tr",{children:(0,La.jsx)("td",{className:"block-editor-list-view-placeholder",style:{height:A*_R}})},`placeholder-$P}`)),A=0,P=void 0)};return E.forEach((H,N)=>{let{clientId:M,innerBlocks:V}=H,j=I;I+=oTe(H,k,x,d);let D=!!x?.includes(M),{itemInView:z}=u,$=z(j),J=N+1,Q=s.length>0?`$s}_$J}`:`$J}`,W=!!V?.length,X=W?k[M]??d:void 0,U=YEe(M,n),G=a||U&&W,te=D||$||U&&M===n[0]||N===0||N===R-1,re=W&&X&&!D;if(!te&&(A+=1,P??=M,!re))return;L();let{displacement:ae,isAfterDraggedBlocks:ie,isNesting:be}=qEe({blockIndexes:w,blockDropTargetIndex:y,blockDropPosition:v,clientId:M,firstDraggedBlockIndex:_,isDragged:D});O.push((0,La.jsxs)(SV.AsyncModeProvider,{value:!U,children:[te&&(0,La.jsx)(eTe,{clientId:M,selectBlock:o,isSelected:U,isBranchSelected:G,isDragged:D,level:i,position:J,rowCount:S,siblingBlockCount:R,showBlockMovers:r,path:Q,isExpanded:D?!1:X,selectedClientIds:n,isSyncedBranch:b,displacement:ae,isAfterDraggedBlocks:ie,isNesting:be}),re&&(0,La.jsx)(rTe,{parentId:M,blocks:V,selectBlock:o,showBlockMovers:r,level:i+1,path:Q,listPosition:j+1,fixedListWindow:u,isBranchSelected:G,selectedClientIds:n,isExpanded:d,isSyncedBranch:b})]},M))}),L(),(0,La.jsxs)(La.Fragment,{children:[O,C&&(0,La.jsx)(xV.__experimentalTreeGridRow,{level:i,setSize:S,positionInSet:S,isExpanded:!0,children:(0,La.jsx)(xV.__experimentalTreeGridCell,{children:H=>(0,La.jsx)(gZ,{clientId:f,nestingLevel:i,blockCount:R,...H})})})]})}var nTe=(0,tTe.memo)(rTe);var EV=c(q(),1),CV=c(Dt(),1),wp=c(F(),1),vZ=c(Z(),1);var Hl=c(T(),1);function iTe({draggedBlockClientId:e,listViewRef:t,blockDropTarget:o}){let r=Ln(e),n=ui({clientId:e,context:"list-view"}),{rootClientId:i,clientId:s,dropPosition:a}=o||{},[l,u]=(0,wp.useMemo)(()=>{if(!t.current)return[];let y=i?t.current.querySelector(`[data-block="$i}"]`):void 0,_=s?t.current.querySelector(`[data-block="$s}"]`):void 0;return[y,_]},[t,i,s]),d=u||l,f=(0,vZ.isRTL)(),p=(0,wp.useCallback)((y,_)=>{if(!d)return 0;let w=d.offsetWidth,k=(0,CV.getScrollContainer)(d,"horizontal"),x=d.ownerDocument,C=k===x.body||k===x.documentElement;if(k&&!C){let E=k.getBoundingClientRect(),R=(0,vZ.isRTL)()?E.right-y.right:y.left-E.left,S=k.clientWidth;if(S<w+R&&(w=S-R),!f&&y.left+_<E.left)return w-=E.left-y.left,w;if(f&&y.right-_>E.right)return w-=y.right-E.right,w}return w-_},[f,d]),m=(0,wp.useMemo)(()=>{if(!d)return{};let y=d.getBoundingClientRect();return{width:p(y,0)}},[p,d]),g=(0,wp.useMemo)(()=>{if(!d)return{};let y=(0,CV.getScrollContainer)(d),_=d.ownerDocument,w=y===_.body||y===_.documentElement;if(y&&!w){let k=y.getBoundingClientRect(),x=d.getBoundingClientRect(),C=f?k.right-x.right:x.left-k.left;if(!f&&k.left>x.left)return{transform:`translateX( $C}px )`};if(f&&k.right<x.right)return{transform:`translateX( $C*-1}px )`}}return{}},[f,d]),h=(0,wp.useMemo)(()=>{if(!l)return 1;let y=parseInt(l.getAttribute("aria-level"),10);return y?y+1:1},[l]),b=(0,wp.useMemo)(()=>d?d.classList.contains("is-branch-selected"):!1,[d]),v=(0,wp.useMemo)(()=>{if(!(!d||!(a==="top"||a==="bottom"||a==="inside")))return{contextElement:d,getBoundingClientRect(){let _=d.getBoundingClientRect(),w=_.left,k=0,x=(0,CV.getScrollContainer)(d,"horizontal"),C=d.ownerDocument,E=x===C.body||x===C.documentElement;if(x&&!E){let I=x.getBoundingClientRect(),O=f?x.offsetWidth-x.clientWidth:0;w<I.left+O&&(w=I.left+O)}a==="top"?k=_.top-_.height*2:k=_.top;let R=p(_,0),S=_.height;return new window.DOMRect(w,k,R,S)}}},[d,a,p,f]);return d?(0,Hl.jsx)(EV.Popover,{animate:!1,anchor:v,focusOnMount:!1,className:"block-editor-list-view-drop-indicator--preview",variant:"unstyled",flip:!1,resize:!0,children:(0,Hl.jsx)("div",{style:m,className:Y("block-editor-list-view-drop-indicator__line",{"block-editor-list-view-drop-indicator__line--darker":b}),children:(0,Hl.jsxs)("div",{className:"block-editor-list-view-leaf","aria-level":h,children:[(0,Hl.jsxs)("div",{className:Y("block-editor-list-view-block-select-button","block-editor-list-view-block-contents"),style:g,children:[(0,Hl.jsx)(vV,{onClick:()=>{}}),(0,Hl.jsx)(Lt,{icon:r?.icon,showColors:!0,context:"list-view"}),(0,Hl.jsx)($e,{align:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",gap:"xs",children:(0,Hl.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,Hl.jsx)(EV.__experimentalTruncate,{ellipsizeMode:"auto",children:n})})})]}),(0,Hl.jsx)("div",{className:"block-editor-list-view-block__menu-cell"})]})})}):null}var sTe=c(Yo(),1),iS=c(Z(),1),wR=c(ee(),1),aTe=c(F(),1),Da=c(wo(),1),lTe=c(ce(),1);function cTe(){let{clearSelectedBlock:e,multiSelect:t,selectBlock:o}=(0,wR.useDispatch)(B),{getBlockName:r,getBlockParents:n,getBlockSelectionStart:i,getSelectedBlockClientIds:s,hasMultiSelection:a,hasSelectedBlock:l}=(0,wR.useSelect)(B),{getBlockType:u}=(0,wR.useSelect)(lTe.store);return{updateBlockSelection:(0,aTe.useCallback)(async(f,p,m,g)=>{if(!f?.shiftKey&&f?.keyCode!==Da.ESCAPE){o(p,g);return}f.preventDefault();let h=f.type==="keydown"&&f.keyCode===Da.ESCAPE,b=f.type==="keydown"&&(f.keyCode===Da.UP||f.keyCode===Da.DOWN||f.keyCode===Da.HOME||f.keyCode===Da.END);if(!b&&!l()&&!a()){o(p,null);return}let v=s(),y=[...n(p),p];if((h||b&&!v.some(x=>y.includes(x)))&&await e(),!h){let x=i(),C=p;b&&(!l()&&!a()&&(x=p),m&&(C=m));let E=n(x),R=n(C),{start:S,end:I}=KEe(x,C,E,R);await t(S,I,null)}let _=s();if((f.keyCode===Da.HOME||f.keyCode===Da.END)&&_.length>1)return;let w=v.filter(x=>!_.includes(x)),k;if(w.length===1){let x=u(r(w[0]))?.title;x&&(k=(0,iS.sprintf)((0,iS.__)("%s deselected."),x))}else w.length>1&&(k=(0,iS.sprintf)((0,iS.__)("%s blocks deselected."),w.length));k&&(0,sTe.speak)(k,"assertive")},[e,r,u,n,i,s,a,l,t,o])}}var uTe=c(F(),1);function dTe(e){return(0,uTe.useMemo)(()=>{let o={},r=0,n=i=>{i.forEach(s=>{o[s.clientId]=r,r++,s.innerBlocks.length>0&&n(s.innerBlocks)})};return n(e),o},[e])}var fTe=c(ee(),1);function pTe({blocks:e,rootClientId:t}){return(0,fTe.useSelect)(o=>{let{getDraggedBlockClientIds:r,getSelectedBlockClientIds:n,getListViewClientIdsTree:i}=K(o(B));return{selectedClientIds:n(),draggedClientIds:r(),clientIdsTree:e??i(t)}},[e,t])}var mTe=c(F(),1),gTe=c(ee(),1);function hTe({updateExpansion:e}){let{expandedBlock:t,getBlockParents:o}=(0,gTe.useSelect)(r=>{let{getBlockParents:n,getExpandedBlock:i}=K(r(B));return{expandedBlock:i(),getBlockParents:n}},[]);(0,mTe.useEffect)(()=>{if(t){let r=o(t,!1);e({type:"replace",clientIds:r})}},[e,t,o])}var bTe=c(ee(),1),av=c(F(),1),lv=c(ue(),1),yTe=c(Z(),1);var kp=24;function Rnt(e,t,o=1,r=!1){let n=r?t.right-o*kp:t.left+o*kp;return r?e.x>n:e.x<n}function Bnt(e,t,o=1,r=!1){let n=r?t.right-o*kp:t.left+o*kp,i=r?n-e.x:e.x-n,s=Math.round(i/kp);return Math.abs(s)}function Int(e,t){let o=[],r=e;for(;r;)o.push({...r}),r=t.find(n=>n.clientId===r.rootClientId);return o}function vTe(e,t){let o=e[t+1];return o&&o.isDraggedBlock?vTe(e,t+1):o}function Pnt(e,t,o=1,r=!1){let n=r?t.right-o*kp:t.left+o*kp;return(r?e.x<n-kp:e.x>n+kp)&&e.y<t.bottom}var Ont=["top","bottom"];function Ant(e,t,o=!1){let r,n,i,s,a;for(let f=0;f<e.length;f++){let p=e[f];if(p.isDraggedBlock)continue;let m=p.element.getBoundingClientRect(),[g,h]=Wy(t,m,Ont),b=N5(t,m);if(i===void 0||g<i||b){i=g;let v=e.indexOf(p),y=e[v-1];if(h==="top"&&y&&y.rootClientId===p.rootClientId&&!y.isDraggedBlock?(n=y,r="bottom",s=y.element.getBoundingClientRect(),a=v-1):(n=p,r=h,s=m,a=v),b)break}}if(!n)return;let l=Int(n,e),u=r==="bottom";if(u&&n.canInsertDraggedBlocksAsChild&&(n.innerBlockCount>0&&n.isExpanded||Pnt(t,s,l.length,o))){let f=n.isExpanded?0:n.innerBlockCount||0;return{rootClientId:n.clientId,clientId:n.clientId,blockIndex:f,dropPosition:"inside"}}if(u&&n.rootClientId&&Rnt(t,s,l.length,o)){let f=vTe(e,a),p=n.nestingLevel,m=f?f.nestingLevel:1;if(p&&m){let g=Bnt(t,s,l.length,o),h=Math.max(Math.min(g,p-m),0);if(l[h]){let b=n.blockIndex;if(l[h].nestingLevel===f?.nestingLevel)b=f?.blockIndex;else for(let v=a;v>=0;v--){let y=e[v];if(y.rootClientId===l[h].rootClientId){b=y.blockIndex+1;break}}return{rootClientId:l[h].rootClientId,clientId:n.clientId,blockIndex:b,dropPosition:r}}}}if(!n.canInsertDraggedBlocksAsSibling)return;let d=u?1:0;return{rootClientId:n.rootClientId,clientId:n.clientId,blockIndex:n.blockIndex+d,dropPosition:r}}var Mnt={leading:!1,trailing:!0};function _Te({dropZoneElement:e,updateExpansion:t}){let{getBlockRootClientId:o,getBlockIndex:r,getBlockCount:n,getDraggedBlockClientIds:i,canInsertBlocks:s}=(0,bTe.useSelect)(B),[a,l]=(0,av.useState)(),{rootClientId:u,blockIndex:d}=a||{},f=M5(u,d),p=(0,yTe.isRTL)(),m=(0,lv.usePrevious)(u),g=(0,av.useCallback)(_=>{let{rootClientId:w}=_||{};w&&_?.dropPosition==="inside"&&t({type:"expand",clientIds:[w]})},[t]),h=(0,lv.useThrottle)(g,500,Mnt);(0,av.useEffect)(()=>{if(a?.dropPosition!=="inside"||m!==a?.rootClientId){h.cancel();return}h(a)},[m,a,h]);let b=i(),v=(0,lv.useThrottle)((0,av.useCallback)((_,w)=>{let k={x:_.clientX,y:_.clientY},x=!!b?.length,E=Array.from(w.querySelectorAll("[data-block]")).map(S=>{let I=S.dataset.block,O=S.dataset.expanded==="true",A=S.classList.contains("is-dragging"),P=parseInt(S.getAttribute("aria-level"),10),L=o(I);return{clientId:I,isExpanded:O,rootClientId:L,blockIndex:r(I),element:S,nestingLevel:P||void 0,isDraggedBlock:x?A:!1,innerBlockCount:n(I),canInsertDraggedBlocksAsSibling:x?s(b,L):!0,canInsertDraggedBlocksAsChild:x?s(b,I):!0}}),R=Ant(E,k,p);R&&l(R)},[s,b,n,r,o,p]),50);return{ref:(0,lv.__experimentalUseDropZone)({dropZoneElement:e,onDrop(_){v.cancel(),a&&f(_),l(void 0)},onDragLeave(){v.cancel(),l(null)},onDragOver(_){v(_,_.currentTarget)},onDragEnd(){v.cancel(),l(void 0)}}),target:a}}var TV=c(F(),1),wTe=c(ee(),1);function kTe({firstSelectedBlockClientId:e,updateExpansion:t}){let[o,r]=(0,TV.useState)(null),{selectedBlockParentClientIds:n}=(0,wTe.useSelect)(i=>{let{getBlockParents:s}=i(B);return{selectedBlockParentClientIds:s(e,!1)}},[e]);return(0,TV.useEffect)(()=>{o!==e&&n?.length&&t({type:"expand",clientIds:n})},[e,n,o,t]),{setSelectedTreeId:r}}var sS=c(ee(),1),xTe=c(ue(),1);function STe({selectBlock:e}){let t=(0,sS.useRegistry)(),{getBlockOrder:o,getBlockRootClientId:r,getBlocksByClientId:n,getPreviousBlockClientId:i,getSelectedBlockClientIds:s,getSettings:a,canInsertBlockType:l,canRemoveBlocks:u}=(0,sS.useSelect)(B),{flashBlock:d,removeBlocks:f,replaceBlocks:p,insertBlocks:m}=(0,sS.useDispatch)(B),g=Wk();return(0,xTe.useRefEffect)(h=>{function b(_,w){w&&e(void 0,_,null,null),rS(_,h)}function v(_){let w=s(),k=w.includes(_),x=k?w[0]:_,C=r(x);return{blocksToUpdate:k?w:[_],firstBlockClientId:x,firstBlockRootClientId:C,originallySelectedBlockClientIds:w}}function y(_){if(_.defaultPrevented||!h.contains(_.target.ownerDocument.activeElement))return;let k=_.target.ownerDocument.activeElement?.closest("[role=row]")?.dataset?.block;if(!k)return;let{blocksToUpdate:x,firstBlockClientId:C,firstBlockRootClientId:E,originallySelectedBlockClientIds:R}=v(k);if(x.length!==0){if(_.preventDefault(),_.type==="copy"||_.type==="cut"){x.length===1&&d(x[0]),g(_.type,x);let S=n(x);lD(_,S,t)}if(_.type==="cut"){if(!u(x))return;let S=i(C)??E;f(x,!1);let I=R.length>0&&s().length===0;S||(S=o()[0]),b(S,I)}else if(_.type==="paste"){let{__experimentalCanUserUseUnfilteredHTML:S}=a(),I=lve(_,S);if(x.length===1){let[O]=x;if(I.every(A=>l(A.name,O))){m(I,void 0,O),b(I[0]?.clientId,!1);return}}p(x,I,I.length-1,-1),b(I[0]?.clientId,!1)}}}return h.ownerDocument.addEventListener("copy",y),h.ownerDocument.addEventListener("cut",y),h.ownerDocument.addEventListener("paste",y),()=>{h.ownerDocument.removeEventListener("copy",y),h.ownerDocument.removeEventListener("cut",y),h.ownerDocument.removeEventListener("paste",y)}},[])}var ru=c(T(),1),Nnt=(e,t)=>{let{type:o,clientIds:r}=t;if(o==="replace"){let s=Object.fromEntries(r.map(a=>[a,!0]));return(0,CTe.isShallowEqual)(e,s)?e:s}if(o!=="expand"&&o!=="collapse")return e;let n=o==="expand",i=r.filter(s=>e[s]!==n);return i.length?{...e,...Object.fromEntries(i.map(s=>[s,n]))}:e};function RTe({id:e,blocks:t,dropZoneElement:o,showBlockMovers:r=!1,isExpanded:n=!1,showAppender:i=!1,focusOnMount:s=!1,blockSettingsMenu:a=qq,rootClientId:l,description:u,onSelect:d,additionalBlockContent:f},p){t&&(0,TTe.default)("`blocks` property in `wp.blockEditor.__experimentalListView`",{since:"6.3",alternative:"`rootClientId` property"});let m=(0,sh.useInstanceId)(RTe),{clientIdsTree:g,draggedClientIds:h,selectedClientIds:b}=pTe({blocks:t,rootClientId:l}),v=dTe(g),{getBlock:y,getSelectedBlockClientIds:_}=(0,kR.useSelect)(B),{visibleBlockCount:w}=(0,kR.useSelect)(G=>{let{getGlobalBlockCount:te,getClientIdsOfDescendants:re}=G(B),ae=h?.length>0?re(h).length+1:0;return{visibleBlockCount:te()-ae}},[h]),{updateBlockSelection:k}=cTe(),[x,C]=(0,Qn.useReducer)(Nnt,{}),[E,R]=(0,Qn.useState)(null),{setSelectedTreeId:S}=kTe({firstSelectedBlockClientId:b[0],updateExpansion:C}),I=(0,Qn.useCallback)((G,te,re)=>{k(G,te,null,re),S(te),d&&d(y(te))},[S,k,d,y]),{ref:O,target:A}=_Te({dropZoneElement:o,updateExpansion:C}),P=(0,Qn.useRef)(),L=STe({selectBlock:I}),H=(0,sh.useRefEffect)(G=>{if(!s)return;let te=new window.AbortController,re=be=>rS(be,G,te.signal).then(()=>te.abort());G.ownerDocument.addEventListener("focusin",()=>te.abort(),{once:!0,signal:te.signal});let[ae]=_();if(ae)return re(ae),()=>te.abort();let ie=setTimeout(()=>{let be=G.querySelector("[role=row][data-block]")?.dataset.block;be&&re(be)},0);return()=>{clearTimeout(ie),te.abort()}},[s,_]),N=(0,sh.useMergeRefs)([L,H,P,O,p]),M=(0,Qn.useCallback)(G=>{let te=G?.dataset?.block;te&&C({type:"expand",clientIds:[te]})},[]),V=(0,Qn.useCallback)(G=>{let te=G?.dataset?.block;te&&C({type:"collapse",clientIds:[te]})},[]),j=(0,Qn.useCallback)((G,te,re)=>{G.shiftKey&&k(G,te?.dataset?.block,re?.dataset?.block)},[k]);hTe({updateExpansion:C});let D=h?.[0],{blockDropTargetIndex:z,blockDropPosition:$,firstDraggedBlockIndex:J}=(0,Qn.useMemo)(()=>{let G,te;if(A?.clientId){let re=v[A.clientId];G=re===void 0||A?.dropPosition==="top"?re:re+1}else A===null&&(G=null);if(D){let re=v[D];te=re===void 0||A?.dropPosition==="top"?re:re+1}return{blockDropTargetIndex:G,blockDropPosition:A?.dropPosition,firstDraggedBlockIndex:te}},[A,v,D]),Q=(0,Qn.useMemo)(()=>({AdditionalBlockContent:f,BlockSettingsMenu:a,listViewInstanceId:m,rootClientId:l,setInsertedBlockClientId:R,treeGridElementRef:P,updateExpansion:C}),[f,a,m,l,R,C]),W=(0,Qn.useMemo)(()=>({blockDropPosition:$,blockDropTargetIndex:z,blockIndexes:v,draggedClientIds:h,expansionState:x,firstDraggedBlockIndex:J}),[$,z,v,h,x,J]),[X]=(0,sh.__experimentalUseFixedWindowList)(P,_R,w,{expandedState:x,useWindowing:!0,windowOverscan:40});if(!g.length&&!i)return null;let U=u&&`block-editor-list-view-description-$m}`;return(0,ru.jsxs)(kR.AsyncModeProvider,{value:!0,children:[(0,ru.jsx)(iTe,{draggedBlockClientId:D,listViewRef:P,blockDropTarget:A}),u&&(0,ru.jsx)(ht,{id:U,children:u}),(0,ru.jsx)(ETe.__experimentalTreeGrid,{id:e,className:Y("block-editor-list-view-tree",{"is-dragging":h?.length>0&&z!==void 0}),"aria-label":(0,_Z.__)("Block navigation structure"),ref:N,onCollapseRow:V,onExpandRow:M,onFocusRow:j,applicationAriaLabel:(0,_Z.__)("Block navigation structure"),"aria-describedby":U,style:{"--wp-admin--list-view-dragged-items-height":h?.length?`$_R*(h.length-1)}px`:null},children:(0,ru.jsx)(pV.Provider,{value:Q,children:(0,ru.jsx)(gV.Provider,{value:E,children:(0,ru.jsx)(mV.Provider,{value:W,children:(0,ru.jsx)(nTe,{blocks:g,parentId:l,selectBlock:I,showBlockMovers:r,fixedListWindow:X,selectedClientIds:b,isExpanded:n,showAppender:i})})})})})]})}var xR=(0,Qn.forwardRef)(RTe),RV=(0,Qn.forwardRef)((e,t)=>(0,ru.jsx)(xR,{ref:t,...e,showAppender:!1,rootClientId:null,onSelect:null,additionalBlockContent:null,blockSettingsMenu:void 0}));var ah=c(T(),1);function Lnt({isEnabled:e,onToggle:t,isOpen:o,innerRef:r,...n}){return(0,ah.jsx)(BV.Button,{__next40pxDefaultSize:!0,...n,ref:r,icon:xC,"aria-expanded":o,"aria-haspopup":"true",onClick:e?t:void 0,label:(0,wZ.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e})}function Dnt({isDisabled:e,...t},o){(0,BTe.default)("wp.blockEditor.BlockNavigationDropdown",{since:"6.1",alternative:"wp.components.Dropdown and wp.blockEditor.ListView"});let n=(0,ITe.useSelect)(i=>!!i(B).getBlockCount(),[])&&!e;return(0,ah.jsx)(BV.Dropdown,{contentClassName:"block-editor-block-navigation__popover",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:i,onToggle:s})=>(0,ah.jsx)(Lnt,{...t,innerRef:o,isOpen:i,onToggle:s,isEnabled:n}),renderContent:()=>(0,ah.jsxs)("div",{className:"block-editor-block-navigation__container",children:[(0,ah.jsx)("p",{className:"block-editor-block-navigation__label",children:(0,wZ.__)("List view")}),(0,ah.jsx)(RV,{})]})})}var OTe=(0,PTe.forwardRef)(Dnt);var aS=c(F(),1),MTe=c(ee(),1),PV=c(ue(),1),Id=c(q(),1);var IV=c(Z(),1);var nu=c(T(),1),ATe=()=>{},kZ=(e,t)=>`$e}-$t.name}`;function NTe({clientId:e,onSwitch:t=ATe,onHoverClassName:o=ATe}){let r=(0,MTe.useSelect)(E=>E(B).canEditBlock(e),[e]),{onSelect:n,stylesToRender:i,activeStyle:s,genericPreviewBlock:a,className:l}=Gx({clientId:e,onSwitch:t}),[u,d]=(0,aS.useState)(null),[f,p]=(0,aS.useState)(null),m=Vr(),g=(0,PV.useInstanceId)(NTe,"block-editor-block-styles"),h=(0,aS.useMemo)(()=>{let E=[];for(let R=0;R<(i?.length??0);R+=2)E.push(i.slice(R,R+2));return E},[i]),b=(0,aS.useMemo)(()=>{if(!u||!a)return null;let E=Jg(l,s,u);return[{...a,attributes:{...a.attributes||{},className:E}}]},[u,a,l,s]);if(!r||!i||i.length===0)return null;let v=(0,PV.debounce)(d,250),y=E=>{n(E),o(null),d(null),v.cancel()},_=E=>{if(u===E){v.cancel();return}v(E),o(E?.name??null)},w=E=>{let R=i.find(S=>kZ(g,S)===E);R&&R.name!==s.name&&y(R)},k=W3(i),x=()=>s?.name!==k?.name,C=()=>{y(k)};return(0,nu.jsx)(Id.__experimentalToolsPanel,{label:(0,IV.__)("Styles"),resetAll:C,panelId:e,hasInnerWrapper:!0,dropdownMenuProps:m,children:(0,nu.jsx)(Id.__experimentalToolsPanelItem,{hasValue:x,label:(0,IV.__)("Variation"),onDeselect:C,isShownByDefault:!0,panelId:e,children:(0,nu.jsxs)("div",{ref:p,className:"block-editor-block-styles",children:[(0,nu.jsx)(Id.Composite,{role:"radiogroup","aria-label":(0,IV.__)("Styles"),className:"block-editor-block-styles__variants",activeId:kZ(g,s),setActiveId:w,focusLoop:!0,focusWrap:!0,focusShift:!0,children:h.map((E,R)=>(0,nu.jsx)(Id.Composite.Row,{className:"block-editor-block-styles__row",children:E.map(S=>(0,nu.jsx)(Id.Composite.Item,{id:kZ(g,S),render:(0,nu.jsx)(wN,{className:"block-editor-block-styles__item",tone:"neutral",variant:s.name===S.name?"solid":"outline"}),role:"radio","aria-checked":s.name===S.name,onMouseEnter:()=>_(S),onFocus:()=>_(S),onMouseLeave:()=>_(null),onBlur:()=>_(null),onClick:()=>y(S),children:(0,nu.jsx)(Id.__experimentalTruncate,{numberOfLines:3,className:"block-editor-block-styles__item-text",children:S.label||S.name})},S.name))},R))}),b&&(0,nu.jsx)(oh,{blocks:b,placement:"left-start",offset:34,anchor:f})]})})})}var lS=NTe;var zTe=c(q(),1),cS=c(Z(),1);var DTe=c(q(),1),VTe=c(T(),1),LTe={0:mz,1:F7,2:j7,3:W7,4:G7,5:Y7,6:q7};function xZ({level:e}){return LTe[e]?(0,VTe.jsx)(DTe.Icon,{icon:LTe[e]}):null}var OV=c(T(),1),FTe=[1,2,3,4,5,6],Vnt={className:"block-library-heading-level-dropdown"};function jTe({options:e=FTe,value:t,onChange:o}){let r=e.filter(n=>n===0||FTe.includes(n)).sort((n,i)=>n-i);return(0,OV.jsx)(zTe.ToolbarDropdownMenu,{popoverProps:Vnt,icon:(0,OV.jsx)(xZ,{level:t}),label:(0,cS.__)("Change level"),controls:r.map(n=>{let i=n===t;return{icon:(0,OV.jsx)(xZ,{level:n}),title:n===0?(0,cS.__)("Paragraph"):(0,cS.sprintf)((0,cS.__)("Heading %d"),n),isActive:i,onClick(){o(n)},role:"menuitemradio"}})})}var SR=c(Z(),1),CR=c(q(),1);var xp=c(T(),1);function Fnt({icon:e=rz,label:t=(0,SR.__)("Choose variation"),instructions:o=(0,SR.__)("Select a variation to start with:"),variations:r,onSelect:n,allowSkip:i}){let s=Y("block-editor-block-variation-picker",{"has-many-variations":r.length>4});return(0,xp.jsxs)(CR.Placeholder,{icon:e,label:t,instructions:o,className:s,children:[(0,xp.jsx)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,SR.__)("Block variations"),children:r.map(a=>(0,xp.jsxs)("li",{children:[(0,xp.jsx)(CR.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:a.icon&&a.icon.src?a.icon.src:a.icon,iconSize:48,onClick:()=>n(a),className:"block-editor-block-variation-picker__variation",label:a.description||a.title}),(0,xp.jsx)("span",{className:"block-editor-block-variation-picker__variation-label",children:a.title})]},a.name))}),i&&(0,xp.jsx)("div",{className:"block-editor-block-variation-picker__skip",children:(0,xp.jsx)(CR.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>n(),children:(0,SR.__)("Skip")})})]})}var HTe=Fnt;var $Te=c(ee(),1),YTe=c(ce(),1),CZ=c(q(),1);var SZ=c(F(),1),EZ=c(ue(),1),KTe=c(Z(),1);var Sp=c(Z(),1),uS=c(q(),1);var lh={carousel:"carousel",grid:"grid"};var Va=c(T(),1),znt=({onBlockPatternSelect:e})=>(0,Va.jsx)("div",{className:"block-editor-block-pattern-setup__actions",children:(0,Va.jsx)(uS.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:e,children:(0,Sp.__)("Choose")})}),jnt=({handlePrevious:e,handleNext:t,activeSlide:o,totalSlides:r})=>(0,Va.jsxs)("div",{className:"block-editor-block-pattern-setup__navigation",children:[(0,Va.jsx)(uS.Button,{size:"compact",icon:(0,Sp.isRTL)()?br:li,label:(0,Sp.__)("Previous pattern"),onClick:e,disabled:o===0,accessibleWhenDisabled:!0}),(0,Va.jsx)(uS.Button,{size:"compact",icon:(0,Sp.isRTL)()?li:br,label:(0,Sp.__)("Next pattern"),onClick:t,disabled:o===r-1,accessibleWhenDisabled:!0})]}),Hnt=({viewMode:e,setViewMode:t,handlePrevious:o,handleNext:r,activeSlide:n,totalSlides:i,onBlockPatternSelect:s})=>{let a=e===lh.carousel,l=(0,Va.jsxs)("div",{className:"block-editor-block-pattern-setup__display-controls",children:[(0,Va.jsx)(uS.Button,{size:"compact",icon:YC,label:(0,Sp.__)("Carousel view"),onClick:()=>t(lh.carousel),isPressed:a}),(0,Va.jsx)(uS.Button,{size:"compact",icon:sC,label:(0,Sp.__)("Grid view"),onClick:()=>t(lh.grid),isPressed:e===lh.grid})]});return(0,Va.jsxs)("div",{className:"block-editor-block-pattern-setup__toolbar",children:[a&&(0,Va.jsx)(jnt,{handlePrevious:o,handleNext:r,activeSlide:n,totalSlides:i}),l,a&&(0,Va.jsx)(znt,{onBlockPatternSelect:s})]})},WTe=Hnt;var UTe=c(ee(),1);function Wnt(e,t,o){return(0,UTe.useSelect)(r=>{let{getBlockRootClientId:n,getPatternsByBlockTypes:i,__experimentalGetAllowedPatterns:s}=r(B),a=n(e);return o?s(a).filter(o):i(t,a)},[e,t,o])}var GTe=Wnt;var ar=c(T(),1),Unt=({viewMode:e,activeSlide:t,patterns:o,onBlockPatternSelect:r,showTitles:n})=>{let i="block-editor-block-pattern-setup__container";if(e===lh.carousel){let s=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return(0,ar.jsx)("div",{className:"block-editor-block-pattern-setup__carousel",children:(0,ar.jsx)("div",{className:i,children:(0,ar.jsx)("div",{className:"carousel-container",children:o.map((a,l)=>(0,ar.jsx)(ZTe,{active:l===t,className:s.get(l)||"",pattern:a},a.name))})})})}return(0,ar.jsx)("div",{className:"block-editor-block-pattern-setup__grid",children:(0,ar.jsx)(CZ.Composite,{role:"listbox",className:i,"aria-label":(0,KTe.__)("Patterns list"),children:o.map(s=>(0,ar.jsx)(qTe,{pattern:s,onSelect:r,showTitles:n},s.name))})})};function qTe({pattern:e,onSelect:t,showTitles:o}){let r="block-editor-block-pattern-setup-list",{blocks:n,description:i,viewportWidth:s=700}=e,a=(0,EZ.useInstanceId)(qTe,`$r}__item-description`);return(0,ar.jsx)("div",{className:`$r}__list-item`,children:(0,ar.jsxs)(CZ.Composite.Item,{render:(0,ar.jsx)("div",{"aria-describedby":i?a:void 0,"aria-label":e.title,className:`$r}__item`}),id:`$r}__pattern__$e.name}`,role:"option",onClick:()=>t(n),children:[(0,ar.jsx)(Ys,{blocks:n,viewportWidth:s}),o&&(0,ar.jsx)("div",{className:`$r}__item-title`,children:e.title}),!!i&&(0,ar.jsx)(ht,{id:a,children:i})]})})}function ZTe({active:e,className:t,pattern:o,minHeight:r}){let{blocks:n,title:i,description:s}=o,a=(0,EZ.useInstanceId)(ZTe,"block-editor-block-pattern-setup-list__item-description");return(0,ar.jsxs)("div",{"aria-hidden":!e,role:"img",className:`pattern-slide $t}`,"aria-label":i,"aria-describedby":s?a:void 0,children:[(0,ar.jsx)(Ys,{blocks:n,minHeight:r}),!!s&&(0,ar.jsx)(ht,{id:a,children:s})]})}var Gnt=({clientId:e,blockName:t,filterPatternsFn:o,onBlockPatternSelect:r,initialViewMode:n=lh.carousel,showTitles:i=!1})=>{let[s,a]=(0,SZ.useState)(n),[l,u]=(0,SZ.useState)(0),{replaceBlock:d}=(0,$Te.useDispatch)(B),f=GTe(e,t,o);if(!f?.length)return null;let m=r||(g=>{let h=g.map(b=>(0,YTe.cloneBlock)(b));d(e,h)});return(0,ar.jsx)(ar.Fragment,{children:(0,ar.jsxs)("div",{className:`block-editor-block-pattern-setup view-mode-$s}`,children:[(0,ar.jsx)(Unt,{viewMode:s,activeSlide:l,patterns:f,onBlockPatternSelect:m,showTitles:i}),(0,ar.jsx)(WTe,{viewMode:s,setViewMode:a,activeSlide:l,totalSlides:f.length,handleNext:()=>{u(g=>Math.min(g+1,f.length-1))},handlePrevious:()=>{u(g=>Math.max(g-1,0))},onBlockPatternSelect:()=>{m(f[l].blocks)}})]})})},XTe=Gnt;var TZ=c(ce(),1),Cp=c(Z(),1),Ep=c(q(),1);var AV=c(ee(),1),QTe=c(F(),1);var an=c(T(),1),{Menu:cv}=K(Ep.privateApis);function $nt({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,an.jsxs)("fieldset",{className:e,children:[(0,an.jsx)(ht,{render:(0,an.jsx)("legend",{}),children:(0,Cp.__)("Transform to variation")}),r.map(n=>(0,an.jsx)(Ep.Button,{__next40pxDefaultSize:!0,size:"compact",icon:(0,an.jsx)(Lt,{icon:n.icon,showColors:!0}),isPressed:o===n.name,label:o===n.name?n.title:(0,Cp.sprintf)((0,Cp.__)("Transform to %s"),n.title),onClick:()=>t(n.name),"aria-label":n.title,showTooltip:!0},n.name))]})}function Ynt({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,an.jsx)("div",{className:e,children:(0,an.jsxs)(cv,{children:[(0,an.jsx)(cv.TriggerButton,{render:(0,an.jsx)(Ep.Button,{className:"block-editor-block-variation-transforms__button",__next40pxDefaultSize:!0,variant:"secondary",children:(0,Cp.__)("Transform to variation")})}),(0,an.jsx)(cv.Popover,{position:"bottom",children:(0,an.jsx)(cv.Group,{children:r.map(n=>(0,an.jsxs)(cv.RadioItem,{value:n.name,checked:o===n.name,onChange:()=>t(n.name),children:[(0,an.jsx)(cv.ItemLabel,{children:n.title}),n.description&&(0,an.jsx)(cv.ItemHelpText,{children:n.description})]},n.name))})})]})})}function Knt({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,an.jsx)("div",{className:e,children:(0,an.jsx)(Ep.__experimentalToggleGroupControl,{label:(0,Cp.__)("Transform to variation"),value:o,hideLabelFromVision:!0,onChange:t,children:r.map(n=>(0,an.jsx)(Ep.__experimentalToggleGroupControlOptionIcon,{icon:(0,an.jsx)(Lt,{icon:n.icon,showColors:!0}),value:n.name,label:o===n.name?n.title:(0,Cp.sprintf)((0,Cp.__)("Transform to %s"),n.title)},n.name))})})}function qnt({blockClientId:e}){let{updateBlockAttributes:t}=(0,AV.useDispatch)(B),{activeBlockVariation:o,variations:r,canEdit:n,isContentOnly:i,isSection:s}=(0,AV.useSelect)(g=>{let{getActiveBlockVariation:h,getBlockVariations:b}=g(TZ.store),{getBlockName:v,getBlockAttributes:y,getBlockEditingMode:_,isSectionBlock:w}=K(g(B)),{canEditBlock:k}=g(B),x=e&&v(e),{hasContentRoleAttribute:C}=K(g(TZ.store)),E=C(x);return{activeBlockVariation:h(x,y(e),"transform"),variations:x&&b(x,"transform"),canEdit:k(e),isContentOnly:_(e)==="contentOnly"&&!E,isSection:w(e)}},[e]),a=o?.name,l=(0,QTe.useMemo)(()=>{let g=new Set;return r?(r.forEach(h=>{h.icon&&g.add(h.icon?.src||h.icon)}),g.size===r.length):!1},[r]),u=g=>{t(e,{...r.find(({name:h})=>h===g).attributes})};if(!r?.length||!n||i||s)return null;let d="block-editor-block-variation-transforms",p=r.length>6?$nt:Knt;return(0,an.jsx)(l?p:Ynt,{className:d,onSelectVariation:u,selectedValue:a,variations:r})}var MV=qnt;var ch=c(Z(),1),NV=c(q(),1);var JTe=c(T(),1),RZ={top:{icon:kC,title:(0,ch._x)("Align top","Block vertical alignment setting")},center:{icon:fC,title:(0,ch._x)("Align middle","Block vertical alignment setting")},bottom:{icon:uC,title:(0,ch._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:vC,title:(0,ch._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:hC,title:(0,ch._x)("Space between","Block vertical alignment setting")}},Znt=["top","center","bottom"],Xnt="top";function Qnt({value:e,onChange:t,controls:o=Znt,isCollapsed:r=!0,isToolbar:n,label:i=(0,ch.__)("Align content vertically")}){function s(f){return()=>t(e===f?void 0:f)}let a=RZ[e],l=RZ[Xnt],u=n?NV.ToolbarGroup:NV.ToolbarDropdownMenu,d=n?{isCollapsed:r}:{};return(0,JTe.jsx)(u,{icon:a?a.icon:l.icon,label:i,controls:o.map(f=>({...RZ[f],isActive:e===f,role:r?"menuitemradio":void 0,onClick:s(f)})),...d})}var BZ=Qnt;var IZ=c(T(),1),J2=e=>(0,IZ.jsx)(BZ,{...e,isToolbar:!1}),eRe=e=>(0,IZ.jsx)(BZ,{...e,isToolbar:!0});var oa=c(q(),1),ER=c(F(),1),FV=c(Z(),1);var tRe=c(q(),1);var PZ=c(Z(),1),oRe=c(T(),1);function rRe({isLinked:e,...t}){let o=e?(0,PZ.__)("Unlink radii"):(0,PZ.__)("Link radii");return(0,oRe.jsx)(tRe.Button,{...t,className:"components-border-radius-control__linked-button",size:"small",icon:e?As:Os,iconSize:24,label:o})}var nRe=c(q(),1);function Jnt(e){return[...e].sort((o,r)=>e.filter(n=>n===r).length-e.filter(n=>n===o).length).shift()}function iRe(e={}){if(typeof e=="string")return e;let t=Object.values(e).map(a=>{let l=(0,nRe.__experimentalParseQuantityAndUnitFromRawValue)(a);return typeof a=="string"&&l[0]===void 0?[a,""]:l}),o=t.map(a=>a[0]??""),r=t.map(a=>a[1]),n=o.every(a=>a===o[0])?o[0]:"",i=Jnt(r);return n===0||n?`$n}$i||""}`:void 0}function sRe(e={}){if(typeof e=="string"||!e||typeof e!="object")return!1;let t=Object.values(e);if(t.length===0)return!1;let o=t[0];return!t.every(n=>n===o)}function aRe(e){return e?typeof e=="string"?!0:!!Object.values(e).filter(o=>!!o||o===0).length:!1}var Wl=c(q(),1),uRe=c(ue(),1),uh=c(Z(),1);var uv=c(F(),1);var OZ=24,lRe=8,LV={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rem:{max:10,steps:.1},svw:{max:100,steps:1},lvw:{max:100,steps:1},dvw:{max:100,steps:1},svh:{max:100,steps:1},lvh:{max:100,steps:1},dvh:{max:100,steps:1},vi:{max:100,steps:1},svi:{max:100,steps:1},lvi:{max:100,steps:1},dvi:{max:100,steps:1},vb:{max:100,steps:1},svb:{max:100,steps:1},lvb:{max:100,steps:1},dvb:{max:100,steps:1},vmin:{max:100,steps:1},svmin:{max:100,steps:1},lvmin:{max:100,steps:1},dvmin:{max:100,steps:1},vmax:{max:100,steps:1},svmax:{max:100,steps:1},lvmax:{max:100,steps:1},dvmax:{max:100,steps:1}};var DV=c(q(),1);var iu=c(T(),1);function cRe({allowNegativeOnDrag:e,ariaLabel:t,allPlaceholder:o,minValue:r,parsedQuantity:n,computedUnit:i,units:s,isMixed:a,step:l,max:u,showTooltip:d,value:f,minimumCustomValue:p,onCustomValueChange:m,onCustomValueSliderChange:g,onUnitChange:h,onMouseOut:b,onMouseOver:v,setMinValue:y}){let _=(0,iu.jsx)(DV.__experimentalUnitControl,{className:"preset-input-control__unit-control",disableUnits:a,hideLabelFromVision:!0,label:t,min:r,onChange:m,onUnitChange:h,onBlur:b,onFocus:v,onMouseOut:b,onMouseOver:v,units:s,value:[n,i].join(""),placeholder:o,onDragStart:()=>{e&&f?.charAt(0)==="-"&&y(0)},onDrag:()=>{e&&f?.charAt(0)==="-"&&y(0)},onDragEnd:()=>{e&&y(p)}}),w=d?(0,iu.jsxs)(ao.Root,{children:[(0,iu.jsx)(ao.Trigger,{render:(0,iu.jsx)("div",{className:"preset-input-control__tooltip-wrapper",children:_})}),(0,iu.jsx)(ao.Popup,{children:t})]}):_;return(0,iu.jsxs)(iu.Fragment,{children:[w,(0,iu.jsx)(DV.RangeControl,{className:"preset-input-control__custom-value-range",hideLabelFromVision:!0,initialPosition:0,label:t,max:u,min:0,onBlur:b,onChange:g,onFocus:v,onMouseOut:b,onMouseOver:v,step:l,value:n,withInputField:!1})]})}var dh=c(T(),1);function dv({allowNegativeOnDrag:e=!1,ariaLabel:t,className:o,customValueSettings:r=LV,disableCustomValues:n,icon:i,isMixed:s,value:a,minimumCustomValue:l,onChange:u,onMouseOut:d,onMouseOver:f,onUnitChange:p,placeholder:m,presets:g=[],presetType:h,selectedUnit:b,showTooltip:v,units:y}){let _=(0,uv.useMemo)(()=>Xre(a,g,h),[a,g,h]),w=o??"preset-input-control",k=g.slice(1,g.length-1).map((G,te)=>({value:te+1,label:void 0})),x=k.length>0,C=g.length<=lRe,E=s?(0,uh.__)("Mixed"):m??null,[R,S]=(0,uv.useState)(l),[I,O]=(0,uv.useState)(!n&&_!==void 0&&!Uu(_,h)),A=null,P=(0,uRe.usePrevious)(_);(0,uv.useEffect)(()=>{_&&P!==_&&!Uu(_,h)&&I!==!0&&O(!0)},[_,P,h,I]);let L=!C&&!I&&_!==void 0&&(!Uu(_,h)||Uu(_,h)&&s),H=g;L?(H=[...g,{name:s?(0,uh.__)("Mixed"):(0,uh.sprintf)((0,uh.__)("Custom (%s)"),_),slug:"custom",size:_}],A=H.length-1):s||(A=I?aH(_,g,h):Zre(_,g,h));let N=H.map((G,te)=>({key:te,name:G.name})),M=Uu(_,h)?aH(_,g,h):_,[V,j]=(0,Wl.__experimentalParseQuantityAndUnitFromRawValue)(M),D=j||b||"px",z=y?.find(G=>G.value===D),$=z?.step??r[D]?.steps??.1,J=z?.max??r[D]?.max??10,Q=G=>{if(G===void 0||G===""){u(void 0);return}isNaN(parseFloat(G))||u(G)},W=G=>{u([G,D].join(""))},X=G=>_===void 0?void 0:g[G]?.name,U=(G,te)=>{let re=parseInt(G,10);if(te==="selectList"){if(re===0&&g[0]?.slug==="0")return"0";if(re===0)return}else if(re===0)return"0";return`var:preset|$h}|$g[G]?.slug}`};return(0,dh.jsxs)(Wl.__experimentalHStack,{className:`preset-input-control__wrapper $w}__wrapper`,children:[i&&(0,dh.jsx)(Wl.Icon,{className:"preset-input-control__icon",icon:i,size:OZ}),(!x||I)&&(0,dh.jsx)(cRe,{allowNegativeOnDrag:e,ariaLabel:t,allPlaceholder:E,minValue:R,parsedQuantity:V,computedUnit:D,units:y,isMixed:s,step:$,max:J,showTooltip:v,value:_,minimumCustomValue:l,onCustomValueChange:Q,onCustomValueSliderChange:W,onUnitChange:p,onMouseOut:d,onMouseOver:f,setMinValue:S}),x&&C&&!I&&(0,dh.jsx)(Wl.RangeControl,{"aria-valuenow":A,"aria-valuetext":g[A]?.name,className:"preset-input-control__preset-range",hideLabelFromVision:!0,initialPosition:0,label:t,max:g.length-1,marks:k,min:0,onBlur:d,onChange:G=>u(U(G)),onFocus:f,onMouseDown:G=>{G?.nativeEvent?.offsetX<35&&_===void 0&&u("0")},onMouseOut:d,onMouseOver:f,renderTooltipContent:X,step:1,value:A,withInputField:!1}),x&&!C&&!I&&(0,dh.jsx)(Wl.CustomSelectControl,{className:"preset-input-control__custom-select-control",hideLabelFromVision:!0,label:t,onBlur:d,onChange:G=>{L&&G.selectedItem.key===N.length-1?O(!0):u(U(G.selectedItem.key,"selectList"))},onFocus:f,onMouseOut:d,onMouseOver:f,options:N,value:N.find(G=>G.key===A)||""}),x&&!n&&(0,dh.jsx)(Wl.Button,{className:"preset-input-control__custom-toggle",icon:Nz,iconSize:OZ,isPressed:I,label:I?(0,uh.__)("Use preset"):(0,uh.__)("Set custom value"),onClick:()=>{O(!I)},size:"small"})]})}var dS=c(Z(),1);var dRe=8,VV=[],AZ={all:(0,dS.__)("Border radius"),topLeft:(0,dS.__)("Top left"),topRight:(0,dS.__)("Top right"),bottomLeft:(0,dS.__)("Bottom left"),bottomRight:(0,dS.__)("Bottom right")},MZ={all:i7,topLeft:l7,topRight:c7,bottomLeft:s7,bottomRight:a7},NZ=0;var Tp=c(T(),1);function eit(e){let t=e?.default??VV,o=e?.custom??VV,r=e?.theme??VV;return(0,ER.useMemo)(()=>{let n=[{name:(0,FV.__)("None"),slug:"0",size:0},...o,...r,...t];return n.length>dRe?[{name:(0,FV.__)("Default"),slug:"default",size:void 0},...n]:n},[o,r,t])}function fRe(e,t){return t==="all"?iRe(e):typeof e=="string"?e:e?.[t]}function pRe(e,t){return t==="all"?e.flat:e[t]}function mRe(e,t,o){return r=>{o(e==="all"?{topLeft:r,topRight:r,bottomLeft:r,bottomRight:r}:{...typeof t!="string"?t||{}:{topLeft:t,topRight:t,bottomLeft:t,bottomRight:t},[e]:r})}}function gRe(e,t,o){return r=>{let n={...t};e==="all"?(n.flat=r,n.topLeft=r,n.topRight=r,n.bottomLeft=r,n.bottomRight=r):n[e]=r,o(n)}}function zV({onChange:e,values:t,presets:o}){let[r,n]=(0,ER.useState)(!aRe(t)||!sRe(t)),i=eit(o),[s,a]=(0,ER.useState)({flat:typeof t=="string"?(0,oa.__experimentalParseQuantityAndUnitFromRawValue)(t)[1]:void 0,topLeft:(0,oa.__experimentalParseQuantityAndUnitFromRawValue)(t?.topLeft)[1],topRight:(0,oa.__experimentalParseQuantityAndUnitFromRawValue)(t?.topRight)[1],bottomLeft:(0,oa.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomLeft)[1],bottomRight:(0,oa.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomRight)[1]}),[l]=je("spacing.units"),u=(0,oa.__experimentalUseCustomUnits)({availableUnits:l||["px","em","rem"]}),d=()=>n(!r);return(0,Tp.jsxs)("fieldset",{className:"components-border-radius-control",children:[(0,Tp.jsxs)(oa.__experimentalHStack,{className:"components-border-radius-control__header",children:[(0,Tp.jsx)(oa.BaseControl.VisualLabel,{as:"legend",children:(0,FV.__)("Radius")}),(0,Tp.jsx)(rRe,{onClick:d,isLinked:r})]}),r?(0,Tp.jsx)(dv,{ariaLabel:AZ.all,className:"components-border-radius-control",icon:MZ.all,minimumCustomValue:NZ,onChange:mRe("all",t,e),onUnitChange:gRe("all",s,a),presets:i,presetType:"border-radius",selectedUnit:pRe(s,"all"),showTooltip:!0,units:u,value:fRe(t,"all")}):(0,Tp.jsx)(oa.__experimentalVStack,{children:["topLeft","topRight","bottomLeft","bottomRight"].map(f=>(0,Tp.jsx)(dv,{ariaLabel:AZ[f],className:"components-border-radius-control",icon:MZ[f],minimumCustomValue:NZ,onChange:mRe(f,t,e),onUnitChange:gRe(f,s,a),presets:i,presetType:"border-radius",selectedUnit:pRe(s,f),showTooltip:!0,units:u,value:fRe(t,f)},f))})]})}var yRe=c(q(),1);var hRe=c(ue(),1);var bRe=c(T(),1),jV=(0,hRe.createHigherOrderComponent)(e=>function(o){let[r,n,i,s,a]=je("color.palette.default","color.palette.theme","color.palette.custom","color.custom","color.defaultPalette"),l=a?[...n||[],...r||[],...i||[]]:[...n||[],...i||[]],{colors:u=l,disableCustomColors:d=!s}=o,f=u&&u.length>0||!d;return(0,bRe.jsx)(e,{...o,colors:u,disableCustomColors:d,hasColorsToChoose:f})},"withColorContext");var vRe=jV(yRe.ColorPalette);var LZ=c(Z(),1),Fa=c(q(),1);var Xo=c(T(),1),{Tabs:fS}=K(Fa.privateApis),tit=["colors","disableCustomColors","gradients","disableCustomGradients"],Pd={color:"color",gradient:"gradient"};function _Re({colors:e,gradients:t,disableCustomColors:o,disableCustomGradients:r,__experimentalIsRenderedInSidebar:n,className:i,label:s,onColorChange:a,onGradientChange:l,colorValue:u,colorSlug:d,gradientValue:f,gradientSlug:p,clearable:m,showTitle:g=!0,enableAlpha:h,headingLevel:b,noticeProps:v}){let y=a&&(e&&e.length>0||!o),_=l&&(t&&t.length>0||!r);if(!y&&!_)return null;let k=(0,Xo.jsx)(Fa.ColorPalette,{value:u,selectedSlug:d,onChange:_?(E,R,S)=>{a(E,S),l()}:(E,R,S)=>a(E,S),colors:e,disableCustomColors:o,__experimentalIsRenderedInSidebar:n,clearable:m,enableAlpha:h,headingLevel:b}),x={[Pd.color]:(0,Xo.jsxs)(Xo.Fragment,{children:[k,v&&(0,Xo.jsx)(Fa.Notice,{isDismissible:!1,...v})]}),[Pd.gradient]:(0,Xo.jsx)(Fa.GradientPicker,{value:f,selectedSlug:p,onChange:y?(E,R,S)=>{l(E,S),a()}:(E,R,S)=>l(E,S),gradients:t,disableCustomGradients:r,__experimentalIsRenderedInSidebar:n,clearable:m,headingLevel:b})},C=E=>(0,Xo.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:x[E]});return(0,Xo.jsx)(Fa.BaseControl,{className:Y("block-editor-color-gradient-control",i),children:(0,Xo.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,Xo.jsxs)(Fa.__experimentalVStack,{spacing:1,children:[g&&(0,Xo.jsx)("legend",{children:(0,Xo.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,Xo.jsx)(Fa.BaseControl.VisualLabel,{children:s})})}),y&&_&&(0,Xo.jsx)("div",{children:(0,Xo.jsxs)(fS,{defaultTabId:f?Pd.gradient:!!y&&Pd.color,children:[(0,Xo.jsxs)(fS.TabList,{children:[(0,Xo.jsx)(fS.Tab,{tabId:Pd.color,children:(0,LZ.__)("Color")}),(0,Xo.jsx)(fS.Tab,{tabId:Pd.gradient,children:(0,LZ.__)("Gradient")})]}),(0,Xo.jsx)(fS.TabPanel,{tabId:Pd.color,className:"block-editor-color-gradient-control__panel",focusable:!1,children:x.color}),(0,Xo.jsx)(fS.TabPanel,{tabId:Pd.gradient,className:"block-editor-color-gradient-control__panel",focusable:!1,children:x.gradient})]})}),!_&&C(Pd.color),!y&&C(Pd.gradient)]})})})}function oit(e){let[t,o,r,n]=je("color.palette","color.gradients","color.custom","color.customGradient");return(0,Xo.jsx)(_Re,{colors:t,gradients:o,disableCustomColors:!r,disableCustomGradients:!n,...e})}function rit(e){return tit.every(t=>e.hasOwnProperty(t))?(0,Xo.jsx)(_Re,{...e}):(0,Xo.jsx)(oit,{...e})}var fh=rit;var wRe=c(T(),1);function kRe({onChange:e,value:t,...o}){return(0,wRe.jsx)(fh,{...o,onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0})}var su=c(Z(),1),xRe=c(q(),1),SRe=c(Yo(),1),DZ=c(T(),1);am([lm,s_]);function VZ({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:o,fallbackLinkColor:r,fontSize:n,isLargeText:i,textColor:s,linkColor:a,messageOverride:l,enableAlphaChecker:u=!1}){let d=e||t;if(!d)return null;let f=s||o,p=a||r;if(!f&&!p)return null;let m=[{color:f,description:(0,su.__)("text color")},{color:p,description:(0,su.__)("link color")}],g=Go(d),h=g.alpha()<1,b=g.brightness(),v={level:"AA",size:i||i!==!1&&n>=24?"large":"small"},y="",_="";for(let w of m){if(!w.color)continue;let k=Go(w.color),x=k.isReadable(g,v),C=k.alpha()<1;if(!x){if(h||C)continue;if(l){y=l,_=l;break}y=b<k.brightness()?(0,su.sprintf)((0,su.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),w.description):(0,su.sprintf)((0,su.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),w.description),_=(0,su.__)("This color combination may be hard for people to read.");break}C&&u&&(y=(0,su.__)("Transparent text may be hard for people to read."),_=(0,su.__)("Transparent text may be hard for people to read."))}return y?{message:y,speakMessage:_}:null}function nit(e){let t=VZ(e);return t?((0,SRe.speak)(t.speakMessage),(0,DZ.jsx)("div",{className:"block-editor-contrast-checker",children:(0,DZ.jsx)(xRe.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,children:t.message})})):null}var CRe=nit;var xi=c(Z(),1),TR=c(Ul(),1),HV=c(F(),1),lu=c(q(),1);var au=c(T(),1),ph=new Date;ph.setDate(20);ph.setMonth(ph.getMonth()-3);ph.getMonth()===4&&ph.setMonth(3);function TRe({format:e,defaultFormat:t,onChange:o}){return(0,au.jsxs)(lu.__experimentalVStack,{as:"fieldset",spacing:4,className:"block-editor-date-format-picker",children:[(0,au.jsx)(ht,{render:(0,au.jsx)("legend",{}),children:(0,xi.__)("Date format")}),(0,au.jsx)(lu.ToggleControl,{label:(0,xi.__)("Default format"),help:`${(0,xi.__)("Example:")} ${(0,TR.dateI18n)(t,ph)}`,checked:!e,onChange:r=>o(r?null:t)}),e&&(0,au.jsx)(iit,{format:e,onChange:o})]})}function iit({format:e,onChange:t}){let r=[...[...new Set(["Y-m-d",(0,xi._x)("n/j/Y","short date format"),(0,xi._x)("n/j/Y g:i A","short date format with time"),(0,xi._x)("M j, Y","medium date format"),(0,xi._x)("M j, Y g:i A","medium date format with time"),(0,xi._x)("F j, Y","long date format"),(0,xi._x)("M j","short date format without the year")])].map((a,l)=>({key:`suggested-$l}`,name:(0,TR.dateI18n)(a,ph),format:a})),{key:"human-diff",name:(0,TR.humanTimeDiff)(ph),format:"human-diff"}],n={key:"custom",name:(0,xi.__)("Custom"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",hint:(0,xi.__)("Enter your own date format")},[i,s]=(0,HV.useState)(()=>!!e&&!r.some(a=>a.format===e));return(0,au.jsxs)(lu.__experimentalVStack,{children:[(0,au.jsx)(lu.CustomSelectControl,{label:(0,xi.__)("Choose a format"),options:[...r,n],value:i?n:r.find(a=>a.format===e)??n,onChange:({selectedItem:a})=>{a===n?s(!0):(s(!1),t(a.format))}}),i&&(0,au.jsx)(lu.TextControl,{label:(0,xi.__)("Custom format"),hideLabelFromVision:!0,help:(0,HV.createInterpolateElement)((0,xi.__)("Enter a date or time <Link>format string</Link>."),{Link:(0,au.jsx)(lu.ExternalLink,{href:(0,xi.__)("https://wordpress.org/documentation/article/customize-date-and-time-format/")})}),value:e,onChange:a=>t(a)})]})}var Gl=c(q(),1),RR=c(Z(),1),RRe=c(wo(),1);var BRe=c(ue(),1),Od=c(T(),1);function IRe({id:e,colorPalette:t,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:n,value:i,selectedSlug:s,onChange:a}){let l;i==="unset"?l=(0,Od.jsx)(Gl.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):i?l=(0,Od.jsx)(Gl.DuotoneSwatch,{values:i}):l=(0,Od.jsx)(xt,{icon:w7});let u=(0,RR.__)("Apply duotone filter"),f=`${(0,BRe.useInstanceId)(IRe,"duotone-control",e)}__description`;return(0,Od.jsx)(Gl.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:(0,RR.__)("Duotone")},renderToggle:({isOpen:p,onToggle:m})=>(0,Od.jsx)(Gl.ToolbarButton,{showTooltip:!0,onClick:m,"aria-haspopup":"true","aria-expanded":p,onKeyDown:h=>{!p&&h.keyCode===RRe.DOWN&&(h.preventDefault(),m())},label:u,icon:l}),renderContent:()=>(0,Od.jsxs)(Gl.MenuGroup,{label:(0,RR.__)("Duotone"),children:[(0,Od.jsx)("p",{children:(0,RR.__)("Create a two-tone color effect without losing your original image.")}),(0,Od.jsx)(Gl.DuotonePicker,{"aria-label":u,"aria-describedby":f,colorPalette:t,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:n,value:i,selectedSlug:s,onChange:a})]})})}var WV=IRe;var MRe=c(q(),1),NRe=c(F(),1),za=c(Z(),1);var Jn=c(Z(),1);var UV=c(Z(),1);function PRe(e){if(!e)return{};if(typeof e=="object")return e;let t;switch(e){case"normal":t=(0,UV._x)("Regular","font style");break;case"italic":t=(0,UV._x)("Italic","font style");break;case"oblique":t=(0,UV._x)("Oblique","font style");break;default:t=e;break}return{name:t,value:e}}var cu=c(Z(),1);function FZ(e){if(!e)return{};if(typeof e=="object")return e;let t;switch(e){case"normal":case"400":t=(0,cu._x)("Regular","font weight");break;case"bold":case"700":t=(0,cu._x)("Bold","font weight");break;case"100":t=(0,cu._x)("Thin","font weight");break;case"200":t=(0,cu._x)("Extra Light","font weight");break;case"300":t=(0,cu._x)("Light","font weight");break;case"500":t=(0,cu._x)("Medium","font weight");break;case"600":t=(0,cu._x)("Semi Bold","font weight");break;case"800":t=(0,cu._x)("Extra Bold","font weight");break;case"900":t=(0,cu._x)("Black","font weight");break;case"1000":t=(0,cu._x)("Extra Black","font weight");break;default:t=e;break}return{name:t,value:e}}var ORe=[{name:(0,Jn._x)("Regular","font style"),value:"normal"},{name:(0,Jn._x)("Italic","font style"),value:"italic"}],ARe=[{name:(0,Jn._x)("Thin","font weight"),value:"100"},{name:(0,Jn._x)("Extra Light","font weight"),value:"200"},{name:(0,Jn._x)("Light","font weight"),value:"300"},{name:(0,Jn._x)("Regular","font weight"),value:"400"},{name:(0,Jn._x)("Medium","font weight"),value:"500"},{name:(0,Jn._x)("Semi Bold","font weight"),value:"600"},{name:(0,Jn._x)("Bold","font weight"),value:"700"},{name:(0,Jn._x)("Extra Bold","font weight"),value:"800"},{name:(0,Jn._x)("Black","font weight"),value:"900"},{name:(0,Jn._x)("Extra Black","font weight"),value:"1000"}];function pS(e){let t=[],o=[],r=[],n=!e||e?.length===0,i=!1;return e?.forEach(s=>{if(typeof s.fontWeight=="string"&&/\s/.test(s.fontWeight.trim())){i=!0;let[u,d]=s.fontWeight.split(" "),f=parseInt(u.slice(0,1)),p=d==="1000"?10:parseInt(d.slice(0,1));for(let m=f;m<=p;m++){let g=`$m.toString()}00`;o.some(h=>h.value===g)||o.push(FZ(g))}}let a=FZ(typeof s.fontWeight=="number"?s.fontWeight.toString():s.fontWeight),l=PRe(s.fontStyle);l&&Object.keys(l).length&&(t.some(u=>u.value===l.value)||t.push(l)),a&&Object.keys(a).length&&(o.some(u=>u.value===a.value)||i||o.push(a))}),o.some(s=>(s.value??"")>="600")||o.push({name:(0,Jn._x)("Bold","font weight"),value:"700"}),t.some(s=>s.value==="italic")||t.push({name:(0,Jn._x)("Italic","font style"),value:"italic"}),n&&(t=ORe,o=ARe),t=t.length===0?ORe:t,o=o.length===0?ARe:o,t.forEach(({name:s,value:a})=>{o.forEach(({name:l,value:u})=>{let d=a==="normal"?l:(0,Jn.sprintf)((0,Jn._x)("%1$s %2$s","font"),l??"",s??"");r.push({key:`$a}-$u}`,name:d??"",style:{fontStyle:a,fontWeight:u}})})}),{fontStyles:t,fontWeights:o,combinedStyleAndWeightOptions:r,isSystemFont:n,isVariableFont:i}}var LRe=c(T(),1),sit=(e,t)=>e?t?(0,za.__)("Appearance"):(0,za.__)("Font style"):(0,za.__)("Font weight");function GV(e){let{__next40pxDefaultSize:t,onChange:o,hasFontStyles:r=!0,hasFontWeights:n=!0,fontFamilyFaces:i,value:{fontStyle:s,fontWeight:a},...l}=e,u=r||n,d=sit(r,n),f={key:"default",name:(0,za.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},{fontStyles:p,fontWeights:m,combinedStyleAndWeightOptions:g}=pS(i),h=()=>{let k=[f];return g&&k.push(...g),k},b=()=>{let k=[f];return p.forEach(({name:x,value:C})=>{k.push({key:C,name:x,style:{fontStyle:C,fontWeight:void 0}})}),k},v=()=>{let k=[f];return m.forEach(({name:x,value:C})=>{k.push({key:C,name:x,style:{fontStyle:void 0,fontWeight:C}})}),k},y=(0,NRe.useMemo)(()=>r&&n?h():r?b():v(),[e.options,p,m,g]),_=y.find(k=>k.style.fontStyle===s&&k.style.fontWeight===a)||y[0];return u&&(0,LRe.jsx)(MRe.CustomSelectControl,{...l,className:"components-font-appearance-control",label:d,describedBy:_?r?n?(0,za.sprintf)((0,za.__)("Currently selected font appearance: %s"),_.name):(0,za.sprintf)((0,za.__)("Currently selected font style: %s"),_.name):(0,za.sprintf)((0,za.__)("Currently selected font weight: %s"),_.name):(0,za.__)("No selected font appearance"),options:y,value:_,onChange:({selectedItem:k})=>o(k.style)})}var DRe=c(q(),1),zZ=c(Z(),1);var VRe=c(T(),1);function $V({__next40pxDefaultSize:e,value:t="",onChange:o,fontFamilies:r,className:n,...i}){let[s]=je("typography.fontFamilies");if(r||(r=s),!r||r.length===0)return null;let a=[{key:"",name:(0,zZ.__)("Default")},...r.map(({fontFamily:u,name:d})=>({key:u,name:d||u,style:{fontFamily:u}}))],l=a.find(u=>u.key===t)??"";return(0,VRe.jsx)(DRe.CustomSelectControl,{label:(0,zZ.__)("Font"),value:l,onChange:({selectedItem:u})=>o(u.key),options:a,className:Y("block-editor-font-family-control",n),...i})}var YV=c(q(),1),FRe=c(Z(),1);var zRe=c(T(),1);function KV({value:e,onChange:t,__unstableInputWidth:o="60px",...r}){let[n]=je("spacing.units"),i=(0,YV.__experimentalUseCustomUnits)({availableUnits:n||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return(0,zRe.jsx)(YV.__experimentalUnitControl,{...r,label:(0,FRe.__)("Letter spacing"),value:e,__unstableInputWidth:o,units:i,onChange:t})}var BR=c(Z(),1),qV=c(q(),1),jZ=c(T(),1),ait=[{label:(0,BR.__)("None"),value:"none",icon:In},{label:(0,BR.__)("Underline"),value:"underline",icon:B7},{label:(0,BR.__)("Strikethrough"),value:"line-through",icon:T7}];function ZV({value:e,onChange:t,className:o}){return(0,jZ.jsx)(qV.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,BR.__)("Decoration"),className:Y("block-editor-text-decoration-control",o),value:e,onChange:r=>{t(r===e?void 0:r)},children:ait.map(r=>(0,jZ.jsx)(qV.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var mS=c(Z(),1);var XV=c(q(),1),HZ=c(T(),1),lit=[{label:(0,mS.__)("None"),value:"none",icon:In},{label:(0,mS.__)("Uppercase"),value:"uppercase",icon:P7},{label:(0,mS.__)("Lowercase"),value:"lowercase",icon:C7},{label:(0,mS.__)("Capitalize"),value:"capitalize",icon:x7}];function QV({className:e,value:t,onChange:o}){return(0,HZ.jsx)(XV.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,mS.__)("Letter case"),className:Y("block-editor-text-transform-control",e),value:t,onChange:r=>{o(r===t?void 0:r)},children:lit.map(r=>(0,HZ.jsx)(XV.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var gS=c(Z(),1);var JV=c(q(),1),WZ=c(T(),1),cit=[{label:(0,gS.__)("Horizontal"),value:"horizontal-tb",icon:ej},{label:(0,gS.__)("Vertical"),value:(0,gS.isRTL)()?"vertical-lr":"vertical-rl",icon:oj}];function e6({className:e,value:t,onChange:o}){return(0,WZ.jsx)(JV.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,gS.__)("Orientation"),className:Y("block-editor-writing-mode-control",e),value:t,onChange:r=>{o(r===t?void 0:r)},children:cit.map(r=>(0,WZ.jsx)(JV.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var vs=c(q(),1),jRe=c(F(),1),HRe=c(Z(),1);var Dn=c(T(),1),uit=({setting:e,children:t,panelId:o,...r})=>{let n=()=>{e.colorValue?e.onColorChange():e.gradientValue&&e.onGradientChange()};return(0,Dn.jsx)(vs.__experimentalToolsPanelItem,{hasValue:()=>!!e.colorValue||!!e.gradientValue,label:e.label,onDeselect:n,isShownByDefault:e.isShownByDefault!==void 0?e.isShownByDefault:!0,...r,className:Y("block-editor-color-gradient-item","block-editor-tools-panel-color-gradient-settings__item"),panelId:o,resetAllFilter:e.resetAllFilter,children:t})},dit=({colorValue:e,label:t})=>(0,Dn.jsxs)(vs.__experimentalHStack,{justify:"flex-start",children:[(0,Dn.jsx)(vs.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,Dn.jsx)(vs.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),fit=e=>function({onToggle:o,isOpen:r}){let{clearable:n,colorValue:i,gradientValue:s,onColorChange:a,onGradientChange:l,label:u}=e,d=(0,jRe.useRef)(void 0),f={onClick:o,className:Y("block-editor-panel-color-gradient-settings__dropdown",{"is-open":r}),"aria-expanded":r,ref:d},p=()=>{i?a():s&&l()},m=i??s;return(0,Dn.jsxs)(Dn.Fragment,{children:[(0,Dn.jsx)(vs.Button,{__next40pxDefaultSize:!0,...f,children:(0,Dn.jsx)(dit,{colorValue:m,label:u})}),n&&m&&(0,Dn.jsx)(vs.Button,{__next40pxDefaultSize:!0,label:(0,HRe.__)("Reset"),className:"block-editor-panel-color-gradient-settings__reset",size:"small",icon:In,onClick:()=>{p(),r&&o(),d.current?.focus()}})]})};function t6({colors:e,disableCustomColors:t,disableCustomGradients:o,enableAlpha:r,gradients:n,settings:i,__experimentalIsRenderedInSidebar:s,...a}){let l;return s&&(l={placement:"left-start",offset:36,shift:!0}),(0,Dn.jsx)(Dn.Fragment,{children:i.map((u,d)=>{let f={clearable:!1,colorValue:u.colorValue,colors:e,disableCustomColors:t,disableCustomGradients:o,enableAlpha:r,gradientValue:u.gradientValue,gradients:n,label:u.label,onColorChange:u.onColorChange,onGradientChange:u.onGradientChange,showTitle:!1,__experimentalIsRenderedInSidebar:s,...u},p={clearable:u.clearable,label:u.label,colorValue:u.colorValue,gradientValue:u.gradientValue,onColorChange:u.onColorChange,onGradientChange:u.onGradientChange};return u&&(0,Dn.jsx)(uit,{setting:u,...a,children:(0,Dn.jsx)(vs.Dropdown,{popoverProps:l,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:fit(p),renderContent:()=>(0,Dn.jsx)(vs.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,Dn.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,Dn.jsx)(fh,{...f})})})})},d)})})}var o6=c(q(),1),WRe=c(ee(),1),URe=c(ue(),1);var UZ=c(F(),1),fv=c(Z(),1);function mh(){let[e,t,o,r,n,i,s,a,l,u]=je("color.custom","color.palette.custom","color.palette.theme","color.palette.default","color.defaultPalette","color.customGradient","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients"),d={disableCustomColors:!e,disableCustomGradients:!i};return d.colors=(0,UZ.useMemo)(()=>{let f=[];return o&&o.length&&f.push({name:(0,fv._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",colors:o}),n&&r&&r.length&&f.push({name:(0,fv._x)("Default","Indicates this palette comes from WordPress."),slug:"default",colors:r}),t&&t.length&&f.push({name:(0,fv._x)("Custom","Indicates this palette is created by the user."),slug:"custom",colors:t}),f},[t,o,r,n]),d.gradients=(0,UZ.useMemo)(()=>{let f=[];return a&&a.length&&f.push({name:(0,fv._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",gradients:a}),u&&l&&l.length&&f.push({name:(0,fv._x)("Default","Indicates this palette comes from WordPress."),slug:"default",gradients:l}),s&&s.length&&f.push({name:(0,fv._x)("Custom","Indicates this palette is created by the user."),slug:"custom",gradients:s}),f},[s,a,l,u]),d.hasColorsOrGradients=!!d.colors.length||!!d.gradients.length,d}var $l=c(T(),1),pit=["colors","disableCustomColors","gradients","disableCustomGradients"],GZ=({className:e,colors:t,gradients:o,disableCustomColors:r,disableCustomGradients:n,children:i,settings:s,title:a,showTitle:l=!0,__experimentalIsRenderedInSidebar:u,enableAlpha:d})=>{let f=(0,URe.useInstanceId)(GZ),{batch:p}=(0,WRe.useRegistry)();return(!t||t.length===0)&&(!o||o.length===0)&&r&&n&&s?.every(m=>(!m.colors||m.colors.length===0)&&(!m.gradients||m.gradients.length===0)&&(m.disableCustomColors===void 0||m.disableCustomColors)&&(m.disableCustomGradients===void 0||m.disableCustomGradients))?null:(0,$l.jsx)(o6.__experimentalToolsPanel,{className:Y("block-editor-panel-color-gradient-settings",e),hasInnerWrapper:!0,label:l?a:void 0,resetAll:()=>{p(()=>{s.forEach(({colorValue:m,gradientValue:g,onColorChange:h,onGradientChange:b})=>{m?h():g&&b()})})},panelId:f,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",children:(0,$l.jsxs)("div",{className:"block-editor-panel-color-gradient-settings__inner-wrapper",children:[(0,$l.jsx)(t6,{settings:s,panelId:f,colors:t,gradients:o,disableCustomColors:r,disableCustomGradients:n,__experimentalIsRenderedInSidebar:u,enableAlpha:d}),!!i&&(0,$l.jsxs)($l.Fragment,{children:[(0,$l.jsx)(o6.__experimentalSpacer,{marginTop:4,marginBottom:0}),i]})]})})},mit=e=>{let t=mh();return(0,$l.jsx)(GZ,{...t,...e})},git=e=>pit.every(t=>e.hasOwnProperty(t))?(0,$l.jsx)(GZ,{...e}):(0,$l.jsx)(mit,{...e}),r6=git;var n6=c(F(),1),pv=c(q(),1),YZ=c(Z(),1);var IR=c(T(),1),$Z=[],hit={...LV,px:{max:1e3,steps:1},em:{max:50,steps:.1},rem:{max:50,steps:.1}};function bit(e){let t=e?.default??$Z,o=e?.custom??$Z,r=e?.theme??$Z;return(0,n6.useMemo)(()=>[{name:(0,YZ.__)("None"),slug:"0",size:0},...o,...r,...t],[o,r,t])}function mv({label:e=(0,YZ.__)("Dimension"),onChange:t,value:o,placeholder:r,className:n,dimensionSizes:i}){let[s,a]=je("dimensions.dimensionSizes","spacing.units"),l=i??s,u=(0,pv.__experimentalUseCustomUnits)({availableUnits:a||["%","px","em","rem","vh","vw"]}),d=bit(l),[f,p]=(0,n6.useState)(()=>{let[,g]=(0,pv.__experimentalParseQuantityAndUnitFromRawValue)(o);return g||u[0]?.value||"px"}),m=g=>{let[h,b]=(0,pv.__experimentalParseQuantityAndUnitFromRawValue)(o);["em","rem"].includes(g)&&b==="px"?t((h/16).toFixed(2)+g):["em","rem"].includes(b)&&g==="px"?t(Math.round(h*16)+g):["%","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax"].includes(g)&&h>100&&t(100+g),p(g)};return(0,IR.jsxs)("fieldset",{className:Y("block-editor-dimension-control",n),children:[(0,IR.jsx)(pv.BaseControl.VisualLabel,{as:"legend",children:e}),(0,IR.jsx)(dv,{ariaLabel:e,className:"block-editor-dimension-control",customValueSettings:hit,minimumCustomValue:0,onChange:t,onUnitChange:m,placeholder:r,presets:d,presetType:"dimension",selectedUnit:f,showTooltip:!0,units:u,value:o})]})}var $Re=c(F(),1),ei=c(q(),1),YRe=c(Z(),1),KRe=c(Nt(),1);var Ad=c(T(),1),GRe={px:{max:1e3,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:50,step:.1},rem:{max:50,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}};function qRe({label:e=(0,YRe.__)("Height"),onChange:t,value:o}){(0,KRe.default)("wp.blockEditor.HeightControl",{since:"7.0",version:"7.2",alternative:"wp.blockEditor.DimensionControl"});let r=parseFloat(o),[n]=je("spacing.units"),i=(0,ei.__experimentalUseCustomUnits)({availableUnits:n||["%","px","em","rem","vh","vw"]}),s=(0,$Re.useMemo)(()=>(0,ei.__experimentalParseQuantityAndUnitFromRawValue)(o),[o])[1]||i[0]?.value||"px",a=u=>{t([u,s].join(""))},l=u=>{let[d,f]=(0,ei.__experimentalParseQuantityAndUnitFromRawValue)(o);["em","rem"].includes(u)&&f==="px"?t((d/16).toFixed(2)+u):["em","rem"].includes(f)&&u==="px"?t(Math.round(d*16)+u):["%","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax"].includes(u)&&d>100&&t(100+u)};return(0,Ad.jsxs)("fieldset",{className:"block-editor-height-control",children:[(0,Ad.jsx)(ei.BaseControl.VisualLabel,{as:"legend",children:e}),(0,Ad.jsxs)(ei.Flex,{children:[(0,Ad.jsx)(ei.FlexItem,{isBlock:!0,children:(0,Ad.jsx)(ei.__experimentalUnitControl,{value:o,units:i,onChange:t,onUnitChange:l,min:0,label:e,hideLabelFromVision:!0})}),(0,Ad.jsx)(ei.FlexItem,{isBlock:!0,children:(0,Ad.jsx)(ei.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,Ad.jsx)(ei.RangeControl,{value:r,min:0,max:GRe[s]?.max??100,step:GRe[s]?.step??.1,withInputField:!1,onChange:a,label:e,hideLabelFromVision:!0})})})]})]})}var MR=c(q(),1),QBe=c(Nt(),1);var Yl=c(oe()),wBe=c(hBe());function kit(e,t,o,r,n,i){i===void 0&&(i=0);var s=hS(e,t,i),a=s.width,l=s.height,u=Math.min(a,o),d=Math.min(l,r);return u>d*n?{width:d*n,height:d}:{width:u,height:u/n}}function xit(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function PR(e,t,o,r,n){n===void 0&&(n=0);var i=hS(t.width,t.height,n),s=i.width,a=i.height;return{x:bBe(e.x,s,o.width,r),y:bBe(e.y,a,o.height,r)}}function bBe(e,t,o,r){var n=t*r/2-o/2;return u6(e,-n,n)}function yBe(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function vBe(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI}function Sit(e,t,o,r,n,i,s){i===void 0&&(i=0),s===void 0&&(s=!0);var a=s?Cit:Eit,l=hS(t.width,t.height,i),u=hS(t.naturalWidth,t.naturalHeight,i),d={x:a(100,((l.width-o.width/n)/2-e.x/n)/l.width*100),y:a(100,((l.height-o.height/n)/2-e.y/n)/l.height*100),width:a(100,o.width/l.width*100/n),height:a(100,o.height/l.height*100/n)},f=Math.round(a(u.width,d.width*u.width/100)),p=Math.round(a(u.height,d.height*u.height/100)),m=u.width>=u.height*r,g=m?{width:Math.round(p*r),height:p}:{width:f,height:Math.round(f/r)},h=hr(hr({},g),{x:Math.round(a(u.width-g.width,d.x*u.width/100)),y:Math.round(a(u.height-g.height,d.y*u.height/100))});return{croppedAreaPercentages:d,croppedAreaPixels:h}}function Cit(e,t){return Math.min(e,Math.max(0,t))}function Eit(e,t){return t}function Tit(e,t,o,r,n,i){var s=hS(t.width,t.height,o),a=u6(r.width/s.width*(100/e.width),n,i),l={x:a*s.width/2-r.width/2-s.width*a*(e.x/100),y:a*s.height/2-r.height/2-s.height*a*(e.y/100)};return{crop:l,zoom:a}}function Rit(e,t,o){var r=xit(t);return o.height>o.width?o.height/(e.height*r):o.width/(e.width*r)}function Bit(e,t,o,r,n,i){o===void 0&&(o=0);var s=hS(t.naturalWidth,t.naturalHeight,o),a=u6(Rit(e,t,r),n,i),l=r.height>r.width?r.height/e.height:r.width/e.width,u={x:((s.width-e.width)/2-e.x)*l,y:((s.height-e.height)/2-e.y)*l};return{crop:u,zoom:a}}function _Be(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function Iit(e){return e*Math.PI/180}function hS(e,t,o){var r=Iit(o);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function u6(e,t,o){return Math.min(Math.max(e,t),o)}function c6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(o){return typeof o=="string"&&o.length>0}).join(" ").trim()}var Pit=`.reactEasyCrop_Container { 128 position: absolute; 129 top: 0; 130 left: 0; 131 right: 0; 132 bottom: 0; 133 overflow: hidden; 134 user-select: none; 135 touch-action: none; 136 cursor: move; 137 display: flex; 138 justify-content: center; 139 align-items: center; 140 } 141 142 .reactEasyCrop_Image, 143 .reactEasyCrop_Video { 144 will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */ 145 } 146 147 .reactEasyCrop_Contain { 148 max-width: 100%; 149 max-height: 100%; 150 margin: auto; 151 position: absolute; 152 top: 0; 153 bottom: 0; 154 left: 0; 155 right: 0; 156 } 157 .reactEasyCrop_Cover_Horizontal { 158 width: 100%; 159 height: auto; 160 } 161 .reactEasyCrop_Cover_Vertical { 162 width: auto; 163 height: 100%; 164 } 165 166 .reactEasyCrop_CropArea { 167 position: absolute; 168 left: 50%; 169 top: 50%; 170 transform: translate(-50%, -50%); 171 border: 1px solid rgba(255, 255, 255, 0.5); 172 box-sizing: border-box; 173 box-shadow: 0 0 0 9999em; 174 color: rgba(0, 0, 0, 0.5); 175 overflow: hidden; 176 } 177 178 .reactEasyCrop_CropAreaRound { 179 border-radius: 50%; 180 } 181 182 .reactEasyCrop_CropAreaGrid::before { 183 content: ' '; 184 box-sizing: border-box; 185 position: absolute; 186 border: 1px solid rgba(255, 255, 255, 0.5); 187 top: 0; 188 bottom: 0; 189 left: 33.33%; 190 right: 33.33%; 191 border-top: 0; 192 border-bottom: 0; 193 } 194 195 .reactEasyCrop_CropAreaGrid::after { 196 content: ' '; 197 box-sizing: border-box; 198 position: absolute; 199 border: 1px solid rgba(255, 255, 255, 0.5); 200 top: 33.33%; 201 bottom: 33.33%; 202 left: 0; 203 right: 0; 204 border-left: 0; 205 border-right: 0; 206 } 207 `,Oit=1,Ait=3,Mit=1,kBe=(function(e){Yee(t,e);function t(){var o=e!==null&&e.apply(this,arguments)||this;return o.cropperRef=Yl.createRef(),o.imageRef=Yl.createRef(),o.videoRef=Yl.createRef(),o.containerPosition={x:0,y:0},o.containerRef=null,o.styleRef=null,o.containerRect=null,o.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},o.dragStartPosition={x:0,y:0},o.dragStartCrop={x:0,y:0},o.gestureZoomStart=0,o.gestureRotationStart=0,o.isTouching=!1,o.lastPinchDistance=0,o.lastPinchRotation=0,o.rafDragTimeout=null,o.rafPinchTimeout=null,o.wheelTimer=null,o.currentDoc=typeof document<"u"?document:null,o.currentWindow=typeof window<"u"?window:null,o.resizeObserver=null,o.previousCropSize=null,o.isInitialized=!1,o.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},o.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!o.containerRef)){var r=!0;o.resizeObserver=new window.ResizeObserver(function(n){if(r){r=!1;return}o.computeSizes()}),o.resizeObserver.observe(o.containerRef)}},o.preventZoomSafari=function(r){return r.preventDefault()},o.cleanEvents=function(){o.currentDoc&&(o.currentDoc.removeEventListener("mousemove",o.onMouseMove),o.currentDoc.removeEventListener("mouseup",o.onDragStopped),o.currentDoc.removeEventListener("touchmove",o.onTouchMove),o.currentDoc.removeEventListener("touchend",o.onDragStopped),o.currentDoc.removeEventListener("gesturechange",o.onGestureChange),o.currentDoc.removeEventListener("gestureend",o.onGestureEnd),o.currentDoc.removeEventListener("scroll",o.onScroll))},o.clearScrollEvent=function(){o.containerRef&&o.containerRef.removeEventListener("wheel",o.onWheel),o.wheelTimer&&clearTimeout(o.wheelTimer)},o.onMediaLoad=function(){var r=o.computeSizes();r&&(o.previousCropSize=r,o.emitCropData(),o.setInitialCrop(r),o.isInitialized=!0),o.props.onMediaLoaded&&o.props.onMediaLoaded(o.mediaSize)},o.setInitialCrop=function(r){if(o.props.initialCroppedAreaPercentages){var n=Tit(o.props.initialCroppedAreaPercentages,o.mediaSize,o.props.rotation,r,o.props.minZoom,o.props.maxZoom),i=n.crop,s=n.zoom;o.props.onCropChange(i),o.props.onZoomChange&&o.props.onZoomChange(s)}else if(o.props.initialCroppedAreaPixels){var a=Bit(o.props.initialCroppedAreaPixels,o.mediaSize,o.props.rotation,r,o.props.minZoom,o.props.maxZoom),i=a.crop,s=a.zoom;o.props.onCropChange(i),o.props.onZoomChange&&o.props.onZoomChange(s)}},o.computeSizes=function(){var r,n,i,s,a,l,u=o.imageRef.current||o.videoRef.current;if(u&&o.containerRef){o.containerRect=o.containerRef.getBoundingClientRect(),o.saveContainerPosition();var d=o.containerRect.width/o.containerRect.height,f=((r=o.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((n=o.videoRef.current)===null||n===void 0?void 0:n.videoWidth)||0,p=((i=o.imageRef.current)===null||i===void 0?void 0:i.naturalHeight)||((s=o.videoRef.current)===null||s===void 0?void 0:s.videoHeight)||0,m=u.offsetWidth<f||u.offsetHeight<p,g=f/p,h=void 0;if(m)switch(o.state.mediaObjectFit){default:case"contain":h=d>g?{width:o.containerRect.height*g,height:o.containerRect.height}:{width:o.containerRect.width,height:o.containerRect.width/g};break;case"horizontal-cover":h={width:o.containerRect.width,height:o.containerRect.width/g};break;case"vertical-cover":h={width:o.containerRect.height*g,height:o.containerRect.height};break}else h={width:u.offsetWidth,height:u.offsetHeight};o.mediaSize=hr(hr({},h),{naturalWidth:f,naturalHeight:p}),o.props.setMediaSize&&o.props.setMediaSize(o.mediaSize);var b=o.props.cropSize?o.props.cropSize:kit(o.mediaSize.width,o.mediaSize.height,o.containerRect.width,o.containerRect.height,o.props.aspect,o.props.rotation);return(((a=o.state.cropSize)===null||a===void 0?void 0:a.height)!==b.height||((l=o.state.cropSize)===null||l===void 0?void 0:l.width)!==b.width)&&o.props.onCropSizeChange&&o.props.onCropSizeChange(b),o.setState({cropSize:b},o.recomputeCropPosition),o.props.setCropSize&&o.props.setCropSize(b),b}},o.saveContainerPosition=function(){if(o.containerRef){var r=o.containerRef.getBoundingClientRect();o.containerPosition={x:r.left,y:r.top}}},o.onMouseDown=function(r){o.currentDoc&&(r.preventDefault(),o.currentDoc.addEventListener("mousemove",o.onMouseMove),o.currentDoc.addEventListener("mouseup",o.onDragStopped),o.saveContainerPosition(),o.onDragStart(t.getMousePoint(r)))},o.onMouseMove=function(r){return o.onDrag(t.getMousePoint(r))},o.onScroll=function(r){o.currentDoc&&(r.preventDefault(),o.saveContainerPosition())},o.onTouchStart=function(r){o.currentDoc&&(o.isTouching=!0,!(o.props.onTouchRequest&&!o.props.onTouchRequest(r))&&(o.currentDoc.addEventListener("touchmove",o.onTouchMove,{passive:!1}),o.currentDoc.addEventListener("touchend",o.onDragStopped),o.saveContainerPosition(),r.touches.length===2?o.onPinchStart(r):r.touches.length===1&&o.onDragStart(t.getTouchPoint(r.touches[0]))))},o.onTouchMove=function(r){r.preventDefault(),r.touches.length===2?o.onPinchMove(r):r.touches.length===1&&o.onDrag(t.getTouchPoint(r.touches[0]))},o.onGestureStart=function(r){o.currentDoc&&(r.preventDefault(),o.currentDoc.addEventListener("gesturechange",o.onGestureChange),o.currentDoc.addEventListener("gestureend",o.onGestureEnd),o.gestureZoomStart=o.props.zoom,o.gestureRotationStart=o.props.rotation)},o.onGestureChange=function(r){if(r.preventDefault(),!o.isTouching){var n=t.getMousePoint(r),i=o.gestureZoomStart-1+r.scale;if(o.setNewZoom(i,n,{shouldUpdatePosition:!0}),o.props.onRotationChange){var s=o.gestureRotationStart+r.rotation;o.props.onRotationChange(s)}}},o.onGestureEnd=function(r){o.cleanEvents()},o.onDragStart=function(r){var n,i,s=r.x,a=r.y;o.dragStartPosition={x:s,y:a},o.dragStartCrop=hr({},o.props.crop),(i=(n=o.props).onInteractionStart)===null||i===void 0||i.call(n)},o.onDrag=function(r){var n=r.x,i=r.y;o.currentWindow&&(o.rafDragTimeout&&o.currentWindow.cancelAnimationFrame(o.rafDragTimeout),o.rafDragTimeout=o.currentWindow.requestAnimationFrame(function(){if(o.state.cropSize&&!(n===void 0||i===void 0)){var s=n-o.dragStartPosition.x,a=i-o.dragStartPosition.y,l={x:o.dragStartCrop.x+s,y:o.dragStartCrop.y+a},u=o.props.restrictPosition?PR(l,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):l;o.props.onCropChange(u)}}))},o.onDragStopped=function(){var r,n;o.isTouching=!1,o.cleanEvents(),o.emitCropData(),(n=(r=o.props).onInteractionEnd)===null||n===void 0||n.call(r)},o.onWheel=function(r){if(o.currentWindow&&!(o.props.onWheelRequest&&!o.props.onWheelRequest(r))){r.preventDefault();var n=t.getMousePoint(r),i=(0,wBe.default)(r).pixelY,s=o.props.zoom-i*o.props.zoomSpeed/200;o.setNewZoom(s,n,{shouldUpdatePosition:!0}),o.state.hasWheelJustStarted||o.setState({hasWheelJustStarted:!0},function(){var a,l;return(l=(a=o.props).onInteractionStart)===null||l===void 0?void 0:l.call(a)}),o.wheelTimer&&clearTimeout(o.wheelTimer),o.wheelTimer=o.currentWindow.setTimeout(function(){return o.setState({hasWheelJustStarted:!1},function(){var a,l;return(l=(a=o.props).onInteractionEnd)===null||l===void 0?void 0:l.call(a)})},250)}},o.getPointOnContainer=function(r,n){var i=r.x,s=r.y;if(!o.containerRect)throw new Error("The Cropper is not mounted");return{x:o.containerRect.width/2-(i-n.x),y:o.containerRect.height/2-(s-n.y)}},o.getPointOnMedia=function(r){var n=r.x,i=r.y,s=o.props,a=s.crop,l=s.zoom;return{x:(n+a.x)/l,y:(i+a.y)/l}},o.setNewZoom=function(r,n,i){var s=i===void 0?{}:i,a=s.shouldUpdatePosition,l=a===void 0?!0:a;if(!(!o.state.cropSize||!o.props.onZoomChange)){var u=u6(r,o.props.minZoom,o.props.maxZoom);if(l){var d=o.getPointOnContainer(n,o.containerPosition),f=o.getPointOnMedia(d),p={x:f.x*u-d.x,y:f.y*u-d.y},m=o.props.restrictPosition?PR(p,o.mediaSize,o.state.cropSize,u,o.props.rotation):p;o.props.onCropChange(m)}o.props.onZoomChange(u)}},o.getCropData=function(){if(!o.state.cropSize)return null;var r=o.props.restrictPosition?PR(o.props.crop,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):o.props.crop;return Sit(r,o.mediaSize,o.state.cropSize,o.getAspect(),o.props.zoom,o.props.rotation,o.props.restrictPosition)},o.emitCropData=function(){var r=o.getCropData();if(r){var n=r.croppedAreaPercentages,i=r.croppedAreaPixels;o.props.onCropComplete&&o.props.onCropComplete(n,i),o.props.onCropAreaChange&&o.props.onCropAreaChange(n,i)}},o.emitCropAreaChange=function(){var r=o.getCropData();if(r){var n=r.croppedAreaPercentages,i=r.croppedAreaPixels;o.props.onCropAreaChange&&o.props.onCropAreaChange(n,i)}},o.recomputeCropPosition=function(){if(o.state.cropSize){var r=o.props.crop;if(o.isInitialized&&o.previousCropSize){var n=Math.abs(o.previousCropSize.width-o.state.cropSize.width)>1e-6||Math.abs(o.previousCropSize.height-o.state.cropSize.height)>1e-6;if(n){var i=o.state.cropSize.width/o.previousCropSize.width,s=o.state.cropSize.height/o.previousCropSize.height;r={x:o.props.crop.x*i,y:o.props.crop.y*s}}}var a=o.props.restrictPosition?PR(r,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):r;o.previousCropSize=o.state.cropSize,o.props.onCropChange(a),o.emitCropData()}},o.onKeyDown=function(r){var n,i,s=o.props,a=s.crop,l=s.onCropChange,u=s.keyboardStep,d=s.zoom,f=s.rotation,p=u;if(o.state.cropSize){r.shiftKey&&(p*=.2);var m=hr({},a);switch(r.key){case"ArrowUp":m.y-=p,r.preventDefault();break;case"ArrowDown":m.y+=p,r.preventDefault();break;case"ArrowLeft":m.x-=p,r.preventDefault();break;case"ArrowRight":m.x+=p,r.preventDefault();break;default:return}o.props.restrictPosition&&(m=PR(m,o.mediaSize,o.state.cropSize,d,f)),r.repeat||(i=(n=o.props).onInteractionStart)===null||i===void 0||i.call(n),l(m)}},o.onKeyUp=function(r){var n,i;switch(r.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":r.preventDefault();break;default:return}o.emitCropData(),(i=(n=o.props).onInteractionEnd)===null||i===void 0||i.call(n)},o}return t.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=Pit,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},t.prototype.componentWillUnmount=function(){var o,r;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(o=this.resizeObserver)===null||o===void 0||o.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((r=this.styleRef.parentNode)===null||r===void 0||r.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(o){var r,n,i,s,a,l,u,d,f;o.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):o.aspect!==this.props.aspect?this.computeSizes():o.objectFit!==this.props.objectFit?this.computeSizes():o.zoom!==this.props.zoom?this.recomputeCropPosition():((r=o.cropSize)===null||r===void 0?void 0:r.height)!==((n=this.props.cropSize)===null||n===void 0?void 0:n.height)||((i=o.cropSize)===null||i===void 0?void 0:i.width)!==((s=this.props.cropSize)===null||s===void 0?void 0:s.width)?this.computeSizes():(((a=o.crop)===null||a===void 0?void 0:a.x)!==((l=this.props.crop)===null||l===void 0?void 0:l.x)||((u=o.crop)===null||u===void 0?void 0:u.y)!==((d=this.props.crop)===null||d===void 0?void 0:d.y))&&this.emitCropAreaChange(),o.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),o.video!==this.props.video&&((f=this.videoRef.current)===null||f===void 0||f.load());var p=this.getObjectFit();p!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:p},this.computeSizes)},t.prototype.getAspect=function(){var o=this.props,r=o.cropSize,n=o.aspect;return r?r.width/r.height:n},t.prototype.getObjectFit=function(){var o,r,n,i;if(this.props.objectFit==="cover"){var s=this.imageRef.current||this.videoRef.current;if(s&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var a=this.containerRect.width/this.containerRect.height,l=((o=this.imageRef.current)===null||o===void 0?void 0:o.naturalWidth)||((r=this.videoRef.current)===null||r===void 0?void 0:r.videoWidth)||0,u=((n=this.imageRef.current)===null||n===void 0?void 0:n.naturalHeight)||((i=this.videoRef.current)===null||i===void 0?void 0:i.videoHeight)||0,d=l/u;return d<a?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(o){var r=t.getTouchPoint(o.touches[0]),n=t.getTouchPoint(o.touches[1]);this.lastPinchDistance=yBe(r,n),this.lastPinchRotation=vBe(r,n),this.onDragStart(_Be(r,n))},t.prototype.onPinchMove=function(o){var r=this;if(!(!this.currentDoc||!this.currentWindow)){var n=t.getTouchPoint(o.touches[0]),i=t.getTouchPoint(o.touches[1]),s=_Be(n,i);this.onDrag(s),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var a=yBe(n,i),l=r.props.zoom*(a/r.lastPinchDistance);r.setNewZoom(l,s,{shouldUpdatePosition:!1}),r.lastPinchDistance=a;var u=vBe(n,i),d=r.props.rotation+(u-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(d),r.lastPinchRotation=u})}},t.prototype.render=function(){var o=this,r,n=this.props,i=n.image,s=n.video,a=n.mediaProps,l=n.cropperProps,u=n.transform,d=n.crop,f=d.x,p=d.y,m=n.rotation,g=n.zoom,h=n.cropShape,b=n.showGrid,v=n.roundCropAreaPixels,y=n.style,_=y.containerStyle,w=y.cropAreaStyle,k=y.mediaStyle,x=n.classes,C=x.containerClassName,E=x.cropAreaClassName,R=x.mediaClassName,S=(r=this.state.mediaObjectFit)!==null&&r!==void 0?r:this.getObjectFit();return Yl.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(O){return o.containerRef=O},"data-testid":"container",style:_,className:c6("reactEasyCrop_Container",C)},i?Yl.createElement("img",hr({alt:"",className:c6("reactEasyCrop_Image",S==="contain"&&"reactEasyCrop_Contain",S==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",S==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",R)},a,{src:i,ref:this.imageRef,style:hr(hr({},k),{transform:u||"translate(".concat(f,"px, ").concat(p,"px) rotate(").concat(m,"deg) scale(").concat(g,")")}),onLoad:this.onMediaLoad})):s&&Yl.createElement("video",hr({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:c6("reactEasyCrop_Video",S==="contain"&&"reactEasyCrop_Contain",S==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",S==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",R)},a,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:hr(hr({},k),{transform:u||"translate(".concat(f,"px, ").concat(p,"px) rotate(").concat(m,"deg) scale(").concat(g,")")}),controls:!1}),(Array.isArray(s)?s:[{src:s}]).map(function(I){return Yl.createElement("source",hr({key:I.src},I))})),this.state.cropSize&&Yl.createElement("div",hr({ref:this.cropperRef,style:hr(hr({},w),{width:v?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:v?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:c6("reactEasyCrop_CropArea",h==="round"&&"reactEasyCrop_CropAreaRound",b&&"reactEasyCrop_CropAreaGrid",E)},l)))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:Ait,minZoom:Oit,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:Mit},t.getMousePoint=function(o){return{x:Number(o.clientX),y:Number(o.clientY)}},t.getTouchPoint=function(o){return{x:Number(o.clientX),y:Number(o.clientY)}},t})(Yl.Component);var PBe=c(F(),1);var yS=c(F(),1);var xBe=Object.prototype.hasOwnProperty;function SBe(e,t,o){for(o of e.keys())if(hv(o,t))return o}function hv(e,t){var o,r,n;if(e===t)return!0;if(e&&t&&(o=e.constructor)===t.constructor){if(o===Date)return e.getTime()===t.getTime();if(o===RegExp)return e.toString()===t.toString();if(o===Array){if((r=e.length)===t.length)for(;r--&&hv(e[r],t[r]););return r===-1}if(o===Set){if(e.size!==t.size)return!1;for(r of e)if(n=r,n&&typeof n=="object"&&(n=SBe(t,n),!n)||!t.has(n))return!1;return!0}if(o===Map){if(e.size!==t.size)return!1;for(r of e)if(n=r[0],n&&typeof n=="object"&&(n=SBe(t,n),!n)||!hv(r[1],t.get(n)))return!1;return!0}if(o===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(o===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!o||typeof e=="object"){r=0;for(o in e)if(xBe.call(e,o)&&++r&&!xBe.call(t,o)||!(o in t)||!hv(e[o],t[o]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var uu=c(F(),1);var bS=1,CBe=5;var d6=e=>e>=0?e%360:(360+e%360)%360,Nit=e=>new Promise((t,o)=>{let r=new Image;r.addEventListener("load",()=>t(r)),r.addEventListener("error",n=>o(n)),r.setAttribute("crossOrigin","anonymous"),r.src=e});function EBe(e){return e*Math.PI/180}function Lit(e,t,o){let r=EBe(o);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}async function TBe(e,t,o=0,r={horizontal:!1,vertical:!1}){try{let n=await Nit(e),i=document.createElement("canvas"),s=i.getContext("2d");if(!s)return null;let a=EBe(o),{width:l,height:u}=Lit(n.width,n.height,o);i.width=l,i.height=u,s.translate(l/2,u/2),s.rotate(a),s.scale(r.horizontal?-1:1,r.vertical?-1:1),s.translate(-n.width/2,-n.height/2),s.drawImage(n,0,0);let d=document.createElement("canvas"),f=d.getContext("2d");return f?(d.width=t.width,d.height=t.height,f.drawImage(i,t.x,t.y,t.width,t.height,0,0,t.width,t.height),new Promise(p=>{d.toBlob(m=>{m&&p(URL.createObjectURL(m))},"image/jpeg")})):null}catch{return null}}var bv={crop:{x:0,y:0,width:100,height:100},zoom:bS,rotation:0,aspectRatio:1,flip:{horizontal:!1,vertical:!1}},Dit={x:0,y:0},oX={crop:Dit,croppedArea:bv.crop,croppedAreaPixels:null,zoom:bv.zoom,rotation:bv.rotation,flip:bv.flip,aspectRatio:bv.aspectRatio,mediaSize:null};function RBe(){let[e,t]=(0,uu.useState)(oX),[o,r]=(0,uu.useState)(null),n=(0,uu.useCallback)(u=>{t(d=>{let p={...typeof u=="function"?u(d):u};return"rotation"in p&&p.rotation!==void 0&&(p.rotation=d6(p.rotation)),{...d,...p}})},[]),i=(0,uu.useCallback)((u=null)=>{if(!u){r(null),n(oX);return}if(typeof u=="object"){let d={...bv,...u};r(d),n(d)}},[n,r]),s=(0,uu.useCallback)(()=>{if(o){let u={crop:{x:0,y:0},croppedAreaPixels:null};o.crop&&(u.croppedArea=o.crop),o.zoom!==void 0&&(u.zoom=o.zoom),o.rotation!==void 0&&(u.rotation=o.rotation),o.aspectRatio!==void 0&&(u.aspectRatio=o.aspectRatio),o.flip!==void 0&&(u.flip=o.flip),n(u)}else n({...oX})},[o,n]),a=(0,uu.useMemo)(()=>{if(o){let d={crop:e.croppedAreaPixels||e.croppedArea,zoom:e.zoom,rotation:d6(e.rotation),aspectRatio:e.aspectRatio,flip:e.flip};return hv(d,o)===!1}let u={crop:e.croppedArea,zoom:e.zoom,rotation:d6(e.rotation),aspectRatio:e.aspectRatio,flip:e.flip};return hv(u,bv)===!1},[e,o]),l=(0,uu.useCallback)(async u=>e.croppedAreaPixels?TBe(u,e.croppedAreaPixels,e.rotation,e.flip):null,[e.croppedAreaPixels,e.rotation,e.flip]);return(0,uu.useMemo)(()=>({cropperState:e,setCropperState:n,resetState:o,setResetState:i,isDirty:a,reset:s,getCroppedImage:l}),[e,n,o,i,a,s,l])}var BBe=c(T(),1),IBe=(0,yS.createContext)({cropperState:{crop:{x:0,y:0},croppedArea:{x:0,y:0,width:100,height:100},croppedAreaPixels:null,zoom:bS,rotation:0,aspectRatio:1,flip:{horizontal:!1,vertical:!1},mediaSize:null},setCropperState:()=>{},resetState:null,setResetState:()=>{},isDirty:!1,reset:()=>{},getCroppedImage:()=>Promise.resolve(null)});function rX({children:e}){let t=RBe(),o=(0,yS.useMemo)(()=>({...t}),[t]);return(0,BBe.jsx)(IBe.Provider,{value:o,children:e})}var OR=()=>{let e=(0,yS.useContext)(IBe);if(!e)throw new Error("Missing ImageCropperContext");return e};var OBe=c(T(),1);function nX({src:e,onLoad:t,minZoom:o=bS,maxZoom:r=CBe,...n}){let{cropperState:i,setCropperState:s}=OR(),{crop:a,zoom:l,rotation:u,aspectRatio:d,flip:f}=i,p=v=>s({crop:v}),m=v=>s({zoom:v}),g=v=>s({rotation:v}),h=v=>s({mediaSize:v}),b=(0,PBe.useCallback)((v,y)=>{s({croppedArea:v,croppedAreaPixels:y})},[s]);return(0,OBe.jsx)(kBe,{classes:{containerClassName:"image-cropper__container",cropAreaClassName:"image-cropper__crop-area",mediaClassName:"image-cropper__image"},minZoom:o,maxZoom:r,rotation:u,image:e,setMediaSize:h,crop:a,zoom:l,aspect:d,onCropChange:p,onZoomChange:m,onCropComplete:b,onMediaLoaded:v=>{t?.(v)},onRotationChange:g,transform:[`translate($a.x}px, $a.y}px)`,`rotateZ($u}deg)`,`rotateY($f.horizontal?180:0}deg)`,`rotateX($f.vertical?180:0}deg)`,`scale($l})`].join(" "),...n})}var wS=c(q(),1),_S=c(Z(),1);var ABe=100,MBe=300,f6={placement:"bottom-start"};var vS=c(F(),1);var p6=c(ee(),1),yv=c(F(),1),Rp=c(Z(),1),NBe=c(Ns(),1),LBe=c(Dt(),1);var Vit={crop:(0,Rp.__)("Image cropped."),rotate:(0,Rp.__)("Image rotated."),cropAndRotate:(0,Rp.__)("Image cropped and rotated.")};function DBe({crop:e,rotation:t,url:o,id:r,onSaveImage:n,onFinishEditing:i}){let{createErrorNotice:s,createSuccessNotice:a}=(0,p6.useDispatch)(NBe.store),[l,u]=(0,yv.useState)(!1),{editMediaEntity:d}=(0,p6.useSelect)(m=>({editMediaEntity:m(B).getSettings()?.[vI]}),[]),f=(0,yv.useCallback)(()=>{u(!1),i()},[i]),p=(0,yv.useCallback)(async()=>{if(!d){i(),s((0,Rp.__)("Sorry, you are not allowed to edit images on this site."),{id:"image-editing-error",type:"snackbar"});return}u(!0);let m=[];if(t>0&&m.push({type:"rotate",args:{angle:t}}),(e.width<99.9||e.height<99.9)&&m.push({type:"crop",args:{left:e.x,top:e.y,width:e.width,height:e.height}}),m.length===0){u(!1),i();return}let g=m.length===1?m[0].type:"cropAndRotate";try{let h=await d(r,{src:o,modifiers:m},{throwOnError:!0});h&&(n({id:h.id,url:h.source_url}),a(Vit[g],{type:"snackbar",actions:[{label:(0,Rp.__)("Undo"),onClick:()=>{n({id:r,url:o})}}]}))}catch(h){s((0,Rp.sprintf)((0,Rp.__)("Could not edit image. %s"),(0,LBe.__unstableStripHTML)(h.message)),{id:"image-editing-error",type:"snackbar"})}finally{u(!1),i()}},[e,t,r,o,n,s,a,i,d]);return(0,yv.useMemo)(()=>({isInProgress:l,apply:p,cancel:f}),[l,p,f])}var du=c(F(),1),VBe=c(Bo(),1);function FBe({url:e,naturalWidth:t,naturalHeight:o}){let[r,n]=(0,du.useState)(),{cropperState:i,setCropperState:s}=OR(),{zoom:a,aspectRatio:l,crop:u,croppedArea:d}=i,f=(0,du.useCallback)(y=>{s({zoom:y})},[s]),p=(0,du.useCallback)(y=>{s({aspectRatio:y})},[s]),m=t/o,g=o/t;(0,du.useEffect)(()=>{p(m)},[]);let[h,b]=(0,du.useState)(0),v=(0,du.useCallback)(()=>{let y=(h+90)%360,_=m,k=a!==1||!(m===l||g===l);if(h%180===90&&(_=1/m),y===0){n(),b(y),s({aspectRatio:k?l:m,crop:{x:-(u.y*_),y:u.x*_}});return}function x(R){let S=document.createElement("canvas"),I=0,O=0;y%180?(S.width=R.target.height,S.height=R.target.width):(S.width=R.target.width,S.height=R.target.height),(y===90||y===180)&&(I=S.width),(y===270||y===180)&&(O=S.height);let A=S.getContext("2d");A.translate(I,O),A.rotate(y*Math.PI/180),A.drawImage(R.target,0,0),S.toBlob(P=>{n(URL.createObjectURL(P)),b(y);let L=k?l:S.width/S.height;s({aspectRatio:L,crop:{x:-(u.y*_),y:u.x*_}})})}let C=new window.Image;C.src=e,C.onload=x;let E=(0,VBe.applyFilters)("media.crossOrigin",void 0,e);typeof E=="string"&&(C.crossOrigin=E)},[h,m,e,s,u,a,l,g,b]);return(0,du.useMemo)(()=>({editedUrl:r,setEditedUrl:n,crop:d,zoom:a,setZoom:f,rotation:h,rotateClockwise:v,aspect:l,setAspect:p,defaultAspect:m}),[r,d,a,f,h,v,l,p,m])}var zBe=c(T(),1),iX=(0,vS.createContext)({});iX.displayName="ImageEditingContext";var Md=()=>(0,vS.useContext)(iX);function jBe({id:e,url:t,naturalWidth:o,naturalHeight:r,onFinishEditing:n,onSaveImage:i,children:s}){let a=FBe({url:t,naturalWidth:o,naturalHeight:r}),l=DBe({id:e,url:t,onSaveImage:i,onFinishEditing:n,...a}),u=(0,vS.useMemo)(()=>({...a,...l}),[a,l]);return(0,zBe.jsx)(iX.Provider,{value:u,children:s})}var Kl=c(T(),1);function m6({aspectRatios:e,isDisabled:t,label:o,onClick:r,value:n}){return(0,Kl.jsx)(wS.MenuGroup,{label:o,children:e.map(({name:i,slug:s,ratio:a})=>(0,Kl.jsx)(wS.MenuItem,{disabled:t,onClick:()=>{r(a)},role:"menuitemradio",isSelected:a===n,icon:a===n?Ps:void 0,children:i},s))})}function Fit(e){let[t,o,...r]=e.split("/").map(Number);return t<=0||o<=0||Number.isNaN(t)||Number.isNaN(o)||r.length?NaN:o?t/o:t}function sX({ratio:e,...t}){return{ratio:Fit(e),...t}}function HBe({toggleProps:e}){let{isInProgress:t,aspect:o,setAspect:r,defaultAspect:n}=Md(),[i,s,a]=je("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios");return(0,Kl.jsx)(wS.DropdownMenu,{icon:V9,label:(0,_S.__)("Aspect Ratio"),popoverProps:f6,toggleProps:e,children:({onClose:l})=>(0,Kl.jsxs)(Kl.Fragment,{children:[(0,Kl.jsx)(m6,{isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:[{slug:"original",name:(0,_S.__)("Original"),ratio:n},...a?i.map(sX).filter(({ratio:u})=>u===1):[]]}),s?.length>0&&(0,Kl.jsx)(m6,{label:(0,_S.__)("Theme"),isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:s}),a&&(0,Kl.jsx)(m6,{label:(0,_S.__)("Landscape"),isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:i.map(sX).filter(({ratio:u})=>u>1)}),a&&(0,Kl.jsx)(m6,{label:(0,_S.__)("Portrait"),isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:i.map(sX).filter(({ratio:u})=>u<1)})]})})}var WBe=c(q(),1),UBe=c(ue(),1);var gh=c(T(),1);function GBe({url:e,width:t,height:o,naturalHeight:r,naturalWidth:n,borderProps:i}){let{isInProgress:s,editedUrl:a,rotation:l}=Md(),[u,{width:d}]=(0,UBe.useResizeObserver)(),f=o||d*r/n;l%180===90&&(f=d*n/r);let p=(0,gh.jsxs)("div",{className:Y("wp-block-image__crop-area",i?.className,{"is-applying":s}),style:{...i?.style,width:t||d,height:f},children:[(0,gh.jsx)(nX,{src:a||e}),s&&(0,gh.jsx)(WBe.Spinner,{})]});return(0,gh.jsxs)(gh.Fragment,{children:[u,p]})}var hh=c(q(),1),aX=c(Z(),1);var AR=c(T(),1);function $Be(){let{isInProgress:e,zoom:t,setZoom:o}=Md();return(0,AR.jsx)(hh.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:f6,renderToggle:({isOpen:r,onToggle:n})=>(0,AR.jsx)(hh.ToolbarButton,{icon:Az,label:(0,aX.__)("Zoom"),onClick:n,"aria-expanded":r,disabled:e}),renderContent:()=>(0,AR.jsx)(hh.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,AR.jsx)(hh.RangeControl,{label:(0,aX.__)("Zoom"),min:ABe,max:MBe,value:Math.round(t*100),onChange:r=>o(r/100)})})})}var YBe=c(q(),1),KBe=c(Z(),1);var qBe=c(T(),1);function ZBe(){let{isInProgress:e,rotateClockwise:t}=Md();return(0,qBe.jsx)(YBe.ToolbarButton,{icon:Bz,label:(0,KBe.__)("Rotate"),onClick:t,disabled:e})}var lX=c(q(),1),cX=c(Z(),1);var vv=c(T(),1);function XBe(){let{isInProgress:e,apply:t,cancel:o}=Md();return(0,vv.jsxs)(vv.Fragment,{children:[(0,vv.jsx)(lX.ToolbarButton,{onClick:t,disabled:e,children:(0,cX.__)("Apply")}),(0,vv.jsx)(lX.ToolbarButton,{onClick:o,children:(0,cX.__)("Cancel")})]})}var ja=c(T(),1);function JBe({id:e,url:t,width:o,height:r,naturalHeight:n,naturalWidth:i,onSaveImage:s,onFinishEditing:a,borderProps:l}){return(0,QBe.default)("wp.blockEditor.__experimentalImageEditor",{since:"7.1",hint:"The Media Editor modal is now the default crop experience for core blocks. This component will be removed in a future major release."}),(0,ja.jsx)(rX,{children:(0,ja.jsxs)(jBe,{id:e,url:t,naturalWidth:i,naturalHeight:n,onSaveImage:s,onFinishEditing:a,children:[(0,ja.jsx)(GBe,{borderProps:l,url:t,width:o,height:r,naturalHeight:n,naturalWidth:i}),(0,ja.jsxs)(Ko,{children:[(0,ja.jsxs)(MR.ToolbarGroup,{children:[(0,ja.jsx)($Be,{}),(0,ja.jsx)(MR.ToolbarItem,{children:u=>(0,ja.jsx)(HBe,{toggleProps:u})}),(0,ja.jsx)(ZBe,{})]}),(0,ja.jsx)(MR.ToolbarGroup,{children:(0,ja.jsx)(XBe,{})})]})]})})}var Ha=c(q(),1),bh=c(Z(),1);var kS=c(F(),1);function eIe(e,t,o,r,n){let[i,s]=(0,kS.useState)(t??r??""),[a,l]=(0,kS.useState)(e??o??"");return(0,kS.useEffect)(()=>{t===void 0&&r!==void 0&&s(r),e===void 0&&o!==void 0&&l(o)},[r,o]),(0,kS.useEffect)(()=>{t!==void 0&&Number.parseInt(t)!==Number.parseInt(i)&&s(t),e!==void 0&&Number.parseInt(e)!==Number.parseInt(a)&&l(e)},[t,e]),{currentHeight:a,currentWidth:i,updateDimension:(f,p)=>{let m=p===""?void 0:parseInt(p,10);f==="width"?s(m):l(m),n({[f]:m})},updateDimensions:(f,p)=>{l(f??o),s(p??r),n({height:f,width:p})}}}var ql=c(T(),1),tIe=[25,50,75,100],zit=()=>{};function oIe(e,t,o){let r=Math.round(t*(e/100)),n=Math.round(o*(e/100));return{scaledWidth:r,scaledHeight:n}}function rIe({imageSizeHelp:e,imageWidth:t,imageHeight:o,imageSizeOptions:r=[],isResizable:n=!0,slug:i,width:s,height:a,onChange:l,onChangeImage:u=zit}){let{currentHeight:d,currentWidth:f,updateDimension:p,updateDimensions:m}=eIe(a,s,o,t,l),g=b=>{if(b===void 0){m();return}let{scaledWidth:v,scaledHeight:y}=oIe(b,t,o);m(y,v)},h=tIe.find(b=>{let{scaledWidth:v,scaledHeight:y}=oIe(b,t,o);return f===v&&d===y});return(0,ql.jsxs)(Ha.__experimentalVStack,{className:"block-editor-image-size-control",spacing:"4",children:[r&&r.length>0&&(0,ql.jsx)(Ha.SelectControl,{label:(0,bh.__)("Resolution"),value:i,options:r,onChange:u,help:e}),n&&(0,ql.jsxs)(ql.Fragment,{children:[(0,ql.jsxs)(Ha.__experimentalHStack,{align:"baseline",spacing:"4",children:[(0,ql.jsx)(Ha.__experimentalNumberControl,{label:(0,bh.__)("Width"),value:f,min:1,onChange:b=>p("width",b)}),(0,ql.jsx)(Ha.__experimentalNumberControl,{label:(0,bh.__)("Height"),value:d,min:1,onChange:b=>p("height",b)})]}),(0,ql.jsx)(Ha.__experimentalToggleGroupControl,{label:(0,bh.__)("Image size presets"),hideLabelFromVision:!0,onChange:g,value:h,isBlock:!0,children:tIe.map(b=>(0,ql.jsx)(Ha.__experimentalToggleGroupControlOption,{value:b,label:(0,bh.sprintf)((0,bh.__)("%d%%"),b)},b))})]})]})}var g6=c(q(),1);var _v=c(Z(),1),iIe=c(T(),1),nIe={left:ym,center:bm,right:vm,"space-between":S_,stretch:T_};function jit({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:o,value:r,popoverProps:n,isToolbar:i}){let s=f=>{o(f===r?void 0:f)},a=r?nIe[r]:nIe.left,l=[{name:"left",icon:ym,title:(0,_v.__)("Justify items left"),isActive:r==="left",onClick:()=>s("left")},{name:"center",icon:bm,title:(0,_v.__)("Justify items center"),isActive:r==="center",onClick:()=>s("center")},{name:"right",icon:vm,title:(0,_v.__)("Justify items right"),isActive:r==="right",onClick:()=>s("right")},{name:"space-between",icon:S_,title:(0,_v.__)("Space between items"),isActive:r==="space-between",onClick:()=>s("space-between")},{name:"stretch",icon:T_,title:(0,_v.__)("Stretch items"),isActive:r==="stretch",onClick:()=>s("stretch")}],u=i?g6.ToolbarGroup:g6.ToolbarDropdownMenu,d=i?{isCollapsed:t}:{};return(0,iIe.jsx)(u,{icon:a,popoverProps:n,label:(0,_v.__)("Change items justification"),controls:l.filter(f=>e.includes(f.name)),...d})}var uX=jit;var dX=c(T(),1),sw=e=>(0,dX.jsx)(uX,{...e,isToolbar:!1}),sIe=e=>(0,dX.jsx)(uX,{...e,isToolbar:!0});var _s=c(q(),1),fu=c(Z(),1),Fr=c(F(),1),R6=c(ue(),1),QIe=c(Dt(),1),JIe=c(wo(),1),ePe=c(Tx(),1),B6=c(ee(),1),_X=c($_(),1);var tPe=c(Nt(),1),I6=c(ma(),1);var xS=c(q(),1);var h6=c(ue(),1),b6=c(Z(),1),aIe=c(F(),1),Bp=c(T(),1);function lIe({children:e,settingsOpen:t,setSettingsOpen:o}){let r=(0,h6.useReducedMotion)(),n=r?aIe.Fragment:xS.__unstableAnimatePresence,i=r?"div":xS.__unstableMotion.div,a=`link-control-settings-drawer-${(0,h6.useInstanceId)(lIe)}`;return(0,Bp.jsxs)(Bp.Fragment,{children:[(0,Bp.jsx)(xS.Button,{__next40pxDefaultSize:!0,className:"block-editor-link-control__drawer-toggle","aria-expanded":t,onClick:()=>o(!t),icon:(0,b6.isRTL)()?oC:hm,"aria-controls":a,children:(0,b6._x)("Advanced","Additional link settings")}),(0,Bp.jsx)(n,{children:t&&(0,Bp.jsx)(i,{className:"block-editor-link-control__drawer",hidden:!t,id:a,initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},transition:{duration:.1},children:(0,Bp.jsx)("div",{className:"block-editor-link-control__drawer-inner",children:e})})})]})}var cIe=lIe;var x6=c(F(),1),yX=c(Z(),1),RIe=c(Nt(),1);var NR=c(Z(),1),_Ie=c(q(),1);var wIe=c(Nt(),1);var y6=c(Z(),1),uIe=c(q(),1),dIe=c(F(),1);var fX=c(T(),1),Hit=({searchTerm:e,onClick:t,itemProps:o,buttonText:r})=>{if(!e)return null;let n;return r?n=typeof r=="function"?r(e):r:n=(0,dIe.createInterpolateElement)((0,y6.sprintf)((0,y6.__)("Create: <mark>%s</mark>"),e),{mark:(0,fX.jsx)("mark",{})}),(0,fX.jsx)(uIe.MenuItem,{...o,iconPosition:"left",icon:Ms,className:"block-editor-link-control__search-item",onClick:t,children:n})},fIe=Hit;var Ip=c(Z(),1),_6=c(q(),1);var pIe=c(Dt(),1),CS=c(ma(),1),mIe=c(ue(),1),gIe=c(Nt(),1),SS=c(T(),1),v6={post:{icon:Cz,label:(0,Ip.__)("Post")},page:{icon:_b,label:(0,Ip.__)("Page")},post_tag:{icon:Qz,label:(0,Ip.__)("Tag")},category:{icon:H9,label:(0,Ip.__)("Category")},attachment:{icon:v7,label:(0,Ip.__)("Attachment")}};function Wit({isURL:e,suggestion:t}){let o=null;return e?o=iC:t.type in v6&&(o=v6[t.type].icon,t.type==="page"&&(t.isFrontPage&&(o=X7),t.isBlogHome&&(o=fj))),o?(0,SS.jsx)(xt,{className:"block-editor-link-control__search-item-icon",icon:o}):null}function Uit(e){return e?.trim()?.length?e?.replace(/^\/?/,"/"):e}function Git(e){return e?.trim()?.length?e?.replace(/\/$/,""):e}var $it=(e,...t)=>(...o)=>e(...o,...t),Yit=e=>t=>t==null||t!==t?e:t;function Kit(e){return e&&(0,mIe.pipe)(CS.safeDecodeURI,CS.getPath,Yit(""),$it(CS.filterURLForDisplay,24),Git,Uit)(e)}var hIe=({itemProps:e,suggestion:t,searchTerm:o,onClick:r,isURL:n=!1,shouldShowType:i=!1})=>{let s=n?(0,Ip.__)("Press ENTER to add this link"):Kit(t.url);return(0,SS.jsx)(_6.MenuItem,{...e,info:s,iconPosition:"left",icon:(0,SS.jsx)(Wit,{suggestion:t,isURL:n}),onClick:r,shortcut:i&&qit(t),className:"block-editor-link-control__search-item",children:(0,SS.jsx)(_6.TextHighlight,{text:(0,pIe.__unstableStripHTML)(t.title),highlight:o})})};function qit(e){return e.isFrontPage?(0,Ip.__)("Front page"):e.isBlogHome?(0,Ip.__)("Blog home"):e.type in v6?v6[e.type].label:e.type}var bIe=hIe,yIe=e=>((0,gIe.default)("wp.blockEditor.__experimentalLinkControlSearchItem",{since:"6.8"}),(0,SS.jsx)(hIe,{...e}));var vIe=c(Z(),1),wv="__CREATE__",pX="tel",w6="link",mX="mailto",gX="internal",ES=[w6,mX,pX,gX],hX=[{id:"opensInNewTab",title:(0,vIe.__)("Open in new tab")}];var kv=c(T(),1);function kIe({withCreateSuggestion:e,currentInputValue:t,handleSuggestionClick:o,suggestionsListProps:r,buildSuggestionItemProps:n,suggestions:i,selectedSuggestion:s,isLoading:a,isInitialSuggestions:l,createSuggestionButtonText:u,suggestionsQuery:d}){let f=Y("block-editor-link-control__search-results",{"is-loading":a}),p=i.length===1&&ES.includes(i[0].type),m=e&&!p&&!l,g=!d?.type,h=l?(0,NR.__)("Suggestions"):(0,NR.sprintf)((0,NR.__)('Search results for "%s"'),t);return(0,kv.jsx)("div",{className:"block-editor-link-control__search-results-wrapper",children:(0,kv.jsx)("div",{...r,className:f,"aria-label":h,children:(0,kv.jsx)(_Ie.MenuGroup,{children:i.map((b,v)=>m&&wv===b.type?(0,kv.jsx)(fIe,{searchTerm:t,buttonText:u,onClick:()=>o(b),itemProps:n(b,v),isSelected:v===s},b.type):wv===b.type?null:(0,kv.jsx)(bIe,{itemProps:n(b,v),suggestion:b,index:v,onClick:()=>{o(b)},isSelected:v===s,isURL:ES.includes(b.type),searchTerm:t,shouldShowType:g,isFrontPage:b?.isFrontPage,isBlogHome:b?.isBlogHome},`$b.id}-$b.type}`))})})})}var xIe=kIe,SIe=e=>((0,wIe.default)("wp.blockEditor.__experimentalLinkControlSearchResults",{since:"6.8"}),(0,kv.jsx)(kIe,{...e}));var CIe=c(F(),1),EIe=c(ee(),1);var k6=c(ma(),1);function LR(e){let t=e?.trim();if(!t)return{url:t,type:w6};let o=w6,r=(0,k6.getProtocol)(t)||"";return r.includes("mailto")?o=mX:r.includes("tel")?o=pX:t?.startsWith("#")&&(o=gX),rb(t)||nb(t)||t.startsWith("?")||r?{url:t,type:o}:{url:(0,k6.prependHTTPS)(t),type:o}}var Zit=()=>Promise.resolve([]),Xit=e=>{let{url:t,type:o}=LR(e);return Promise.resolve([{id:e,title:e,url:t,type:o}])},Qit=async(e,t,o,r,n,i)=>{let{isInitialSuggestions:s}=t,a=await o(e,t);return a.map(l=>Number(l.id)===n?(l.isFrontPage=!0,l):(Number(l.id)===i&&(l.isBlogHome=!0),l)),s||ib(e)||!r?a:a.concat({title:e,url:e,type:wv})};function TIe(e,t,o){let{fetchSearchSuggestions:r,pageOnFront:n,pageForPosts:i}=(0,EIe.useSelect)(a=>{let{getSettings:l}=a(B);return{pageOnFront:l().pageOnFront,pageForPosts:l().pageForPosts,fetchSearchSuggestions:l().__experimentalFetchLinkSuggestions}},[]),s=t?Xit:Zit;return(0,CIe.useCallback)((a,{isInitialSuggestions:l})=>ib(a)?s(a,{isInitialSuggestions:l}):Qit(a,{...e,isInitialSuggestions:l},r,o,n,i),[s,r,n,i,e,o])}var TS=c(T(),1),Jit=()=>Promise.resolve([]),bX=()=>{},BIe=(0,x6.forwardRef)(({value:e,children:t,currentLink:o={},className:r=null,placeholder:n=null,withCreateSuggestion:i=!1,onCreateSuggestion:s=bX,onChange:a=bX,onSelect:l=bX,showSuggestions:u=!0,renderSuggestions:d=x=>(0,TS.jsx)(xIe,{...x}),fetchSuggestions:f=null,allowDirectEntry:p=!0,showInitialSuggestions:m=!1,suggestionsQuery:g={},withURLSuggestion:h=!0,createSuggestionButtonText:b,hideLabelFromVision:v=!1,suffix:y,isEntity:_=!1,customValidity:w},k)=>{let x=TIe(g,p,i,h),C=u?f||x:Jit,[E,R]=(0,x6.useState)(),S=(L,H)=>{a(L),R(H)},I=L=>d({...L,withCreateSuggestion:i,createSuggestionButtonText:b,suggestionsQuery:g,handleSuggestionClick:H=>{L.handleSuggestionClick&&L.handleSuggestionClick(H),O(H)}}),O=async L=>{let H=L;if(wv===L.type){try{H=await s(L.title),H?.url&&l(H)}catch{}return}if(p||H&&Object.keys(H).length>=1){let{id:N,url:M,kind:V,type:j,...D}=o??{};l({...D,...H},H)}},A=n??(0,yX.__)("Search or type URL"),P=v&&n!==""?A:(0,yX.__)("Link");return(0,TS.jsxs)("div",{className:"block-editor-link-control__search-input-container",children:[(0,TS.jsx)(Pp,{disableSuggestions:o?.url===e,label:P,hideLabelFromVision:v,className:r,value:e,onChange:S,placeholder:A,__experimentalRenderSuggestions:u?I:null,__experimentalFetchLinkSuggestions:C,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:m,customValidity:w,required:!1,onSubmit:(L,H)=>{let N=L||E;!N&&!e?.trim()?.length?H.preventDefault():O(N||{url:e})},inputRef:k,suffix:y,disabled:_}),t]})}),IIe=BIe,PIe=e=>((0,RIe.default)("wp.blockEditor.__experimentalLinkControlSearchInput",{since:"6.8"}),(0,TS.jsx)(BIe,{...e}));var yh=c(Z(),1),kn=c(q(),1),LIe=c(ue(),1),E6=c(ma(),1);var DIe=c(Dt(),1),T6=c(ee(),1),VIe=c(Ns(),1),FIe=c($_(),1);var OIe=c(q(),1),{Slot:AIe,Fill:MIe}=(0,OIe.createSlotFill)("BlockEditorLinkControlViewer");var NIe=c(ee(),1),S6=c(F(),1);function est(e,t){switch(t.type){case"RESOLVED":return{...e,isFetching:!1,richData:t.richData};case"ERROR":return{...e,isFetching:!1,richData:null};case"LOADING":return{...e,isFetching:!0};default:throw new Error(`Unexpected action type $t.type}`)}}function tst(e){let[t,o]=(0,S6.useReducer)(est,{richData:null,isFetching:!1}),{fetchRichUrlData:r}=(0,NIe.useSelect)(n=>{let{getSettings:i}=n(B);return{fetchRichUrlData:i().__experimentalFetchRichUrlData}},[]);return(0,S6.useEffect)(()=>{if(e?.length&&r&&typeof AbortController<"u"){o({type:"LOADING"});let n=new window.AbortController,i=n.signal;return r(e,{signal:i}).then(s=>{o({type:"RESOLVED",richData:s})}).catch(()=>{i.aborted||o({type:"ERROR"})}),()=>{n.abort()}}},[e]),t}var C6=tst;var Ho=c(T(),1),{Badge:ost}=K(kn.privateApis);function zIe({value:e,onEditClick:t,hasRichPreviews:o=!1,hasUnlinkControl:r=!1,onRemove:n}){let i=(0,T6.useSelect)(b=>b(FIe.store).get("core","showIconLabels"),[]),s=o?e?.url:null,{richData:a,isFetching:l}=C6(s),u=a&&Object.keys(a).length,d=e&&(0,E6.filterURLForDisplay)((0,E6.safeDecodeURI)(e.url),24)||"",f=!e?.url?.length,p=!f&&(0,DIe.__unstableStripHTML)(e?.entityTitle||a?.title||e?.title||d),m;a?.icon?m=(0,Ho.jsx)("img",{src:a?.icon,alt:""}):f?m=(0,Ho.jsx)(xt,{icon:ez,size:32}):m=(0,Ho.jsx)(xt,{icon:iC});let{createNotice:g}=(0,T6.useDispatch)(VIe.store),h=(0,LIe.useCopyToClipboard)(e.url,()=>{g("info",(0,yh.__)("Link copied to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,Ho.jsx)(kn.Flex,{role:"group","aria-label":(0,yh.__)("Manage link"),className:Y("block-editor-link-control__preview",{"is-current":!0,"is-rich":u,"is-fetching":!!l,"is-preview":!0,"is-error":f,"is-url-title":p===d}),children:(0,Ho.jsxs)(kn.Flex,{gap:0,align:"flex-start",children:[(0,Ho.jsxs)(kn.Flex,{className:"block-editor-link-control__link-information",role:"figure","aria-label":(0,yh.__)("Link information"),justify:"start",align:"flex-start",children:[e?.image?(0,Ho.jsx)(kn.Flex,{className:"block-editor-link-control__preview-image",justify:"center",children:(0,Ho.jsx)("img",{src:e?.image,alt:""})}):(0,Ho.jsx)(kn.Flex,{className:Y("block-editor-link-control__preview-icon",{"is-image":a?.icon}),justify:"center",children:m}),(0,Ho.jsx)(kn.Flex,{className:"block-editor-link-control__preview-details",direction:"column",gap:2,children:f?(0,Ho.jsx)("span",{className:"block-editor-link-control__preview-error-notice",children:(0,yh.__)("Link is empty")}):(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsx)(kn.ExternalLink,{className:"block-editor-link-control__preview-title",href:e.url,children:(0,Ho.jsx)(kn.__experimentalTruncate,{numberOfLines:1,children:p})}),(0,Ho.jsx)("span",{className:"block-editor-link-control__preview-info",children:(0,Ho.jsx)(kn.__experimentalTruncate,{numberOfLines:1,children:d})}),e?.badges?.length>0&&(0,Ho.jsx)(kn.__experimentalHStack,{className:"block-editor-link-control__preview-badges",alignment:"left",gap:1,children:e.badges.map((b,v)=>(0,Ho.jsx)(ost,{intent:b.intent,children:b.label},`$b.label}|$b.intent}|$v}`))})]})})]}),(0,Ho.jsx)(kn.Button,{icon:wb,label:(0,yh.__)("Edit link"),onClick:t,size:"compact",showTooltip:!i}),r&&(0,Ho.jsx)(kn.Button,{icon:Os,label:(0,yh.__)("Remove link"),onClick:n,size:"compact",showTooltip:!i}),(0,Ho.jsx)(kn.Button,{icon:o7,label:(0,yh.__)("Copy link"),ref:h,accessibleWhenDisabled:!0,disabled:f,size:"compact",showTooltip:!i}),(0,Ho.jsx)(AIe,{fillProps:e})]})})}var jIe=c(Z(),1),HIe=c(q(),1);var xv=c(T(),1),rst=()=>{},nst=({value:e,onChange:t=rst,settings:o})=>{if(!o||!o.length)return null;let r=i=>s=>{t({...e,[i.id]:s})},n=o.map(i=>{if("render"in i){if(typeof i.render=="function"){let s=i.render(i,e,t);return(0,xv.jsx)("div",{className:"block-editor-link-control__setting",children:s},i.id)}return null}return(0,xv.jsx)(HIe.CheckboxControl,{className:"block-editor-link-control__setting",label:i.title,onChange:r(i),checked:e?!!e[i.id]:!1,help:i?.help},i.id)}).filter(Boolean);return(0,xv.jsxs)("fieldset",{className:"block-editor-link-control__settings",children:[(0,xv.jsx)(ht,{render:(0,xv.jsx)("legend",{}),children:(0,jIe.__)("Currently selected link settings")}),n]})},WIe=nst;var UIe=c(Z(),1),Sv=c(F(),1);function GIe(e){let t=(0,Sv.useRef)(),[o,r]=(0,Sv.useState)(!1),[n,i]=(0,Sv.useState)(null),s=async function(a){r(!0),i(null);try{return t.current=ist(Promise.resolve(e(a))),await t.current.promise}catch(l){if(l&&l.isCanceled)return;throw i(l.message||(0,UIe.__)("An unknown error occurred during creation. Please try again.")),l}finally{r(!1)}};return(0,Sv.useEffect)(()=>()=>{t.current&&t.current.cancel()},[]),{createPage:s,isCreatingPage:o,errorMessage:n}}var ist=e=>{let t=!1;return{promise:new Promise((r,n)=>{e.then(i=>t?n({isCanceled:!0}):r(i),i=>n(t?{isCanceled:!0}:i))}),cancel(){t=!0}}};var vX=c(F(),1),KIe=c(YIe(),1);function qIe(e){let[t,o]=(0,vX.useState)(e||{}),[r,n]=(0,vX.useState)(e);return(0,KIe.default)(e,r)||(n(e),o(e)),[t,o,l=>{o({...t,url:l})},l=>{o({...t,title:l})},l=>u=>{let d=Object.keys(u).reduce((f,p)=>(l.includes(p)&&(f[p]=u[p]),f),{});o({...t,...d})}]}var Qo=c(T(),1),wX=()=>{},ZIe="core/block-editor",XIe="linkControlSettingsDrawer";function Cv({searchInputPlaceholder:e,value:t,settings:o=hX,onChange:r=wX,onInputChange:n,onRemove:i,onCancel:s,noDirectEntry:a=!1,showSuggestions:l=!0,showInitialSuggestions:u,forceIsEditingLink:d,createSuggestion:f,withCreateSuggestion:p,inputValue:m="",suggestionsQuery:g={},noURLSuggestion:h=!1,createSuggestionButtonText:b,hasRichPreviews:v=!1,hasTextControl:y=!1,renderControlBottom:_=null,handleEntities:w=!1}){p===void 0&&f&&(p=!0);let[k,x]=(0,Fr.useState)(!1),[C,E]=(0,Fr.useState)(void 0),{advancedSettingsPreference:R}=(0,B6.useSelect)(He=>({advancedSettingsPreference:He(_X.store).get(ZIe,XIe)??!1}),[]),{set:S}=(0,B6.useDispatch)(_X.store),I=He=>{S&&S(ZIe,XIe,He),x(He)},O=R||k,A=(0,Fr.useRef)(!0),P=(0,Fr.useRef)(),L=(0,R6.useMergeRefs)([P,lw()]),H=(0,Fr.useRef)(),N=(0,Fr.useRef)(),M=(0,Fr.useRef)(),V=o.map(({id:He})=>He),[j,D,z,$,J]=qIe(t),Q=He=>{z(He),n?.(He)},W=w&&!!j?.id,X=(0,R6.useInstanceId)(Cv,"link-control"),U=W?`$X}__help`:null,G=t&&!(0,ePe.isShallowEqualObjects)(j,t),[te,re]=(0,Fr.useState)(d!==void 0?d:!t||!t.url),{createPage:ae,isCreatingPage:ie,errorMessage:be}=GIe(f);(0,Fr.useEffect)(()=>{d!==void 0&&re(d)},[d]),(0,Fr.useEffect)(()=>{if(A.current)return;(QIe.focus.focusable.find(P.current)[0]||P.current).focus()},[te,ie]),(0,Fr.useEffect)(()=>(A.current=!1,()=>{A.current=!0}),[]);let pe=(0,Fr.useRef)();(0,Fr.useEffect)(()=>{if(pe.current===void 0){pe.current=m;return}pe.current!==m&&(console.warn("LinkControl: The inputValue prop is uncontrolled and only sets the initial value. onInputChange is an observer for the input value. Changes to inputValue from the parent will not update the search input."),pe.current=m)},[m]),(0,Fr.useEffect)(()=>{if(C?.type==="invalid"){let He=N.current;He&&typeof He.reportValidity=="function"&&He.reportValidity()}},[C]);let ke=t?.url?.trim()?.length>0,ye=()=>{re(!1)},Pe=He=>{let we={type:"invalid",message:(0,fu.__)("Please enter a valid URL.")},Me={type:"valid"},ge=He?.trim();if(!ge?.length||!ib(ge))return we;if(rb(ge)||nb(ge))return Me;let Re=(0,I6.prependHTTPS)(ge);return(0,I6.isURL)(Re)?Me:we},_e=He=>{if(!(He&&He.id&&He.type&&!ES.includes(He.type))){let ge=He?.url||et,Re=Pe(ge);if(Re.type==="invalid"){E(Re);return}let{url:Ie}=LR(ge);He={...He,url:Ie}}He?.kind==="taxonomy"&&He?.url&&(M.current=He.url);let Me=Object.keys(He).reduce((ge,Re)=>(V.includes(Re)||(ge[Re]=He[Re]),ge),{});r({...j,...Me,title:j?.title||He?.title}),E(void 0),ye()},ve=()=>{if(Je)return!1;let He=et.trim(),we=j&&j.id&&j.type&&!ES.includes(j.type),Me=t?.url===He;if(we&&Me)return E(void 0),!0;let ge=Pe(et);return ge.type==="invalid"?(E(ge),!1):(E(void 0),!0)},Se=()=>{G&&r({...t,...j,url:LR(et).url}),ye(),E(void 0)},fe=()=>{ve()&&Se()},Ce=He=>{let{keyCode:we}=He;we===JIe.ENTER&&!Je&&(He.preventDefault(),fe())},ne=()=>{D(t)},se=He=>{He.preventDefault(),He.stopPropagation(),ne(),E(void 0),ke?ye():i?.(),s?.()},[Ee,he]=(0,Fr.useState)(!1),Ae=()=>{let{id:He,kind:we,type:Me,...ge}=j;D({...ge,id:void 0,kind:void 0,type:void 0,url:void 0}),he(!0)};(0,Fr.useEffect)(()=>{Ee&&(N.current?.focus(),he(!1))},[Ee]);let et=j?.url!==void 0?j.url:m||"",Je=!et?.trim()?.length;(0,Fr.useEffect)(()=>{E(void 0)},[et]);let _t=!C,Et=i&&t&&!te&&!ie,mt=te&&ke,oo=ke&&y,Tt=(te||!t)&&!ie,Rt=Je||!_t||t&&!G,Bt=!!o?.length&&te&&ke,gt=(0,Fr.useMemo)(()=>t?.kind==="taxonomy"&&!t?.url&&M.current?{...t,url:M.current}:t,[t]);return(0,Qo.jsxs)("div",{tabIndex:-1,ref:L,className:"block-editor-link-control",children:[ie&&(0,Qo.jsxs)("div",{className:"block-editor-link-control__loading",children:[(0,Qo.jsx)(_s.Spinner,{})," ",(0,fu.__)("Creating"),"\u2026"]}),Tt&&(0,Qo.jsxs)(Qo.Fragment,{children:[(0,Qo.jsxs)("div",{className:Y({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":oo,"has-actions":mt}),children:[oo&&(0,Qo.jsx)(_s.TextControl,{ref:H,className:"block-editor-link-control__field block-editor-link-control__text-content",label:(0,fu.__)("Text"),value:j?.title,onChange:$,onKeyDown:Ce}),(0,Qo.jsx)(IIe,{ref:N,currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:et,withCreateSuggestion:p,onCreateSuggestion:ae,onChange:Q,onSelect:_e,showInitialSuggestions:u,allowDirectEntry:!a,showSuggestions:l,suggestionsQuery:g,withURLSuggestion:!h,createSuggestionButtonText:b,hideLabelFromVision:!oo,isEntity:W,customValidity:C,suffix:(0,Qo.jsx)(sst,{isEntity:W,showActions:mt,isDisabled:Rt,onUnlink:Ae,onSubmit:fe,helpTextId:U})}),W&&U&&(0,Qo.jsx)("p",{id:U,className:"block-editor-link-control__help",children:(0,fu.sprintf)((0,fu.__)("Synced with the selected %s."),j?.type||"item")})]}),be&&(0,Qo.jsx)(_s.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1,children:be})]}),t&&!te&&!ie&&(0,Qo.jsx)(zIe,{value:gt,onEditClick:()=>re(!0),hasRichPreviews:v,hasUnlinkControl:Et,onRemove:()=>{i(),re(!0)}},gt?.url),Bt&&(0,Qo.jsx)("div",{className:"block-editor-link-control__tools",children:!Je&&(0,Qo.jsx)(cIe,{settingsOpen:O,setSettingsOpen:I,children:(0,Qo.jsx)(WIe,{value:j,settings:o,onChange:J(V)})})}),mt&&(0,Qo.jsxs)(_s.__experimentalHStack,{justify:"right",className:"block-editor-link-control__search-actions",children:[(0,Qo.jsx)(_s.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:se,children:(0,fu.__)("Cancel")}),(0,Qo.jsx)(_s.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:Rt?wX:fe,className:"block-editor-link-control__search-submit","aria-disabled":Rt,children:(0,fu.__)("Apply")})]}),!ie&&_&&_()]})}function sst({isEntity:e,showActions:t,isDisabled:o,onUnlink:r,onSubmit:n,helpTextId:i}){if(e)return(0,Qo.jsx)(_s.Button,{icon:Os,onClick:r,"aria-describedby":i,showTooltip:!0,label:(0,fu.__)("Unsync and edit"),__next40pxDefaultSize:!0});if(!t)return(0,Qo.jsx)(_s.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,Qo.jsx)(_s.Button,{onClick:o?wX:n,label:(0,fu.__)("Submit"),icon:mf,className:"block-editor-link-control__search-submit","aria-disabled":o,size:"small"})})}Cv.ViewerFill=MIe;Cv.DEFAULT_LINK_SETTINGS=hX;var P6=e=>((0,tPe.default)("wp.blockEditor.__experimentalLinkControl",{since:"6.8",alternative:"wp.blockEditor.LinkControl"}),(0,Qo.jsx)(Cv,{...e}));P6.ViewerFill=Cv.ViewerFill;P6.DEFAULT_LINK_SETTINGS=Cv.DEFAULT_LINK_SETTINGS;var vh=Cv;var rPe=c(Z(),1),nPe=c(q(),1);var DR=1.5,kX=.01,xX=10,SX="";function oPe(e){return e!==void 0&&e!==SX}var CX=c(T(),1),ast=({__next40pxDefaultSize:e,value:t,onChange:o,__unstableInputWidth:r="60px",...n})=>{let i=oPe(t),s=(d,f)=>{if(i)return d;let p=kX*xX;switch(`$d}`){case`$p}`:return DR+p;case"0":return f?d:DR-p;case"":return DR;default:return d}},a=(d,f)=>{let p=["insertText","insertFromPaste"].includes(f.payload.event.nativeEvent?.inputType),m=s(d.value,p);return{...d,value:m}},l=i?t:SX;return(0,CX.jsx)("div",{className:"block-editor-line-height-control",children:(0,CX.jsx)(nPe.__experimentalNumberControl,{placeholder:DR,...n,__unstableInputWidth:r,__unstableStateReducer:a,onChange:(d,{event:f})=>{if(d===""){o();return}if(f.type==="click"){o(s(`$d}`,!1));return}o(`$d}`)},label:(0,rPe.__)("Line height"),step:kX,spinFactor:xX,value:l,min:0,spinControls:"custom"})})},O6=ast;var pu=c(Z(),1),iPe=c(Yo(),1),ws=c(q(),1),M6=c(ee(),1),sPe=c(wo(),1);var aPe=c(ue(),1),lPe=c(Dt(),1),cPe=c(Ns(),1),uPe=c(F(),1);function A6(e,t,o){if(o)return o;if(!t||typeof t!="object"||Object.keys(t).length===0)return e&&e.length>0?e.map(n=>`$n}/*`).join(","):void 0;if(!e||e.length===0)return;let r=[];for(let[,n]of Object.entries(t))e.some(s=>s.includes("/")?n===s:n.startsWith(`$s}/`))&&r.push(n);return r.length>0?r.join(","):e.map(n=>`$n}/*`).join(",")}var ti=c(T(),1),lst=()=>{},cst=0,ust=({mediaURL:e,mediaId:t,mediaIds:o,allowedTypes:r,accept:n,onError:i,onSelect:s,onSelectURL:a,onReset:l,onToggleFeaturedImage:u,useFeaturedImage:d,onFilesUpload:f=lst,name:p=(0,pu.__)("Replace"),createNotice:m,removeNotice:g,children:h,multiple:b=!1,addToGallery:v,handleUpload:y=!0,variant:_,popoverProps:w,renderToggle:k,className:x})=>{let{mediaUpload:C,allowedMimeTypes:E}=(0,M6.useSelect)(M=>{let{getSettings:V}=M(B),j=V();return{mediaUpload:j.mediaUpload,allowedMimeTypes:j.allowedMimeTypes}},[]),R=`block-editor/media-replace-flow/error-notice/${++cst}`,S=(0,uPe.useMemo)(()=>A6(r,E,n),[r,E,n]),I=M=>{let V=(0,lPe.__unstableStripHTML)(M);if(i){i(V);return}setTimeout(()=>{m("error",V,{speak:!0,id:R,isDismissible:!0})},1e3)},O=(M,V)=>{let j=!!(e||t||o?.length);d&&u&&u(),V(),s(M),(0,iPe.speak)(j?(0,pu.__)("The media file has been replaced"):(0,pu.__)("The media file has been added")),g(R)},A=(M,V)=>{let j=M.target.files;if(!y)return V(),s(j);f(j),C({allowedTypes:r,filesList:j,onFileChange:([D])=>{O(D,V)},onError:I})},P=M=>{M.keyCode===sPe.DOWN&&(M.preventDefault(),M.target.click())},H=b&&(!r||r.length===0?!1:r.every(M=>M==="image"||M.startsWith("image/"))),N={...w,variant:_};return(0,ti.jsx)(ws.Dropdown,{popoverProps:N,className:x,contentClassName:Y("block-editor-media-replace-flow__options",_&&`is-variant-${_}`),renderToggle:({isOpen:M,onToggle:V})=>k?k({"aria-expanded":M,"aria-haspopup":"true",onClick:V,onKeyDown:P,children:p}):(0,ti.jsx)(ws.ToolbarButton,{"aria-expanded":M,"aria-haspopup":"true",onClick:V,onKeyDown:P,children:p}),renderContent:({onClose:M})=>(0,ti.jsxs)(ti.Fragment,{children:[(0,ti.jsxs)(ws.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu",children:[(0,ti.jsxs)(Pa,{children:[(0,ti.jsx)(xd,{gallery:H,addToGallery:v,multiple:b,value:b?o:t,onSelect:V=>O(V,M),allowedTypes:r,render:({open:V})=>(0,ti.jsx)(ws.MenuItem,{icon:B_,onClick:V,children:(0,pu.__)("Open Media Library")})}),(0,ti.jsx)(ws.FormFileUpload,{onChange:V=>{A(V,M)},accept:S,multiple:!!b,render:({openFileDialog:V})=>(0,ti.jsx)(ws.MenuItem,{icon:uj,onClick:()=>{V()},children:(0,pu._x)("Upload","verb")})})]}),u&&(0,ti.jsx)(ws.MenuItem,{icon:xz,onClick:u,isPressed:d,children:(0,pu.__)("Use featured image")}),typeof h=="function"?h({onClose:M}):h,e&&l&&(0,ti.jsx)(ws.MenuItem,{onClick:()=>{l(),M()},children:(0,pu.__)("Reset")})]}),a&&(0,ti.jsxs)("form",{className:"block-editor-media-flow__url-input",children:[(0,ti.jsx)("span",{className:"block-editor-media-replace-flow__image-url-label",children:(0,pu.__)("Current media URL:")}),(0,ti.jsx)(vh,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:V})=>{a(V)},searchInputPlaceholder:(0,pu.__)("Paste or type URL")})]})]})})},RS=(0,aPe.compose)([(0,M6.withDispatch)(e=>{let{createNotice:t,removeNotice:o}=e(cPe.store);return{createNotice:t,removeNotice:o}}),(0,ws.withFilters)("editor.MediaReplaceFlow")])(ust);var cn=c(q(),1),ln=c(Z(),1),kh=c(F(),1),SPe=c(ee(),1);var CPe=c(Nt(),1);var RX=c(Z(),1),L6=c(F(),1),BS=c(q(),1);var xPe=c(Nt(),1);var pPe=c(Z(),1),mPe=c(q(),1);var dPe=c(q(),1),N6=c(ma(),1),EX=c(T(),1);function fPe({url:e,urlLabel:t,className:o}){let r=Y(o,"block-editor-url-popover__link-viewer-url");return e?(0,EX.jsx)(dPe.ExternalLink,{className:r,href:e,children:t||(0,N6.filterURLForDisplay)((0,N6.safeDecodeURI)(e))}):(0,EX.jsx)("span",{className:r})}var VR=c(T(),1);function gPe({className:e,linkClassName:t,onEditLinkClick:o,url:r,urlLabel:n,...i}){return(0,VR.jsxs)("div",{className:Y("block-editor-url-popover__link-viewer",e),...i,children:[(0,VR.jsx)(fPe,{url:r,urlLabel:n,className:t}),o&&(0,VR.jsx)(mPe.Button,{icon:wb,label:(0,pPe.__)("Edit"),onClick:o,size:"compact"})]})}var _Pe=c(Z(),1),wPe=c(q(),1);var TX=c(Yo(),1),Op=c(Z(),1),Si=c(F(),1),Wa=c(wo(),1),Xl=c(q(),1),Ev=c(ue(),1),hPe=c(ee(),1),bPe=c(ma(),1);var Zl=c(T(),1),yPe=c(oe(),1),{ValidatedInputControl:dst}=K(Xl.privateApis),FR=()=>{};function vPe(e){return typeof e=="function"}function Pp(e){let{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:o,__experimentalRenderControl:r,__experimentalRenderSuggestions:n,__experimentalShowInitialSuggestions:i=!1,autocompleteRef:s,className:a,customValidity:l,disableSuggestions:u,disabled:d=!1,help:f=null,hideLabelFromVision:p=!1,inputRef:m,isFullWidth:g,label:h=null,markWhenOptional:b,onChange:v,onKeyDown:y,onSubmit:_,placeholder:w=(0,Op.__)("Paste URL or type to search"),required:k=!0,suffix:x,value:C=""}=e,E=(0,Ev.useInstanceId)(Pp),{getSettings:R}=(0,hPe.useSelect)(B),S=(0,Ev.useDebounce)(TX.speak,500),[I,O]=(0,Si.useState)([]),[A,P]=(0,Si.useState)(null),[L,H]=(0,Si.useState)(null),[N,M]=(0,Si.useState)(!1),[V,j]=(0,Si.useState)(!1),[D,z]=(0,Si.useState)(!1),$=(0,Si.useRef)(),J=(0,Si.useRef)([]),Q=(0,Si.useRef)(null),W=m??$,X=`url-input-control-${E}`,U=`block-editor-url-input-suggestions-${E}`,G=`block-editor-url-input-suggestion-${E}`,te=N&&u!==!0&&(i||!!C.length),re=(0,Ev.useEvent)((fe="")=>{let Ce=vPe(t)?t:R().__experimentalFetchLinkSuggestions;if(!Ce)return;let ne=!fe?.length,se=fe.trim();if(!ne&&(se.length<2||!o&&(0,bPe.isURL)(se))){Q.current?.cancel?.(),Q.current=null,O([]),M(!1),P(se),H(null),j(!1);return}H(null),j(!0);let Ee=Ce(se,{isInitialSuggestions:ne});Q.current=Ee,Ee.then(he=>{Q.current===Ee&&(O(he),P(se),j(!1),M(!!he.length),he.length?S((0,Op.sprintf)((0,Op._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",he.length),he.length),"assertive"):S((0,Op.__)("No results."),"assertive"))}).catch(()=>{Q.current===Ee&&j(!1)}).finally(()=>{Q.current===Ee&&(Q.current=null)})}),ae=(0,Ev.useDebounce)(re,200);(0,Si.useEffect)(()=>{!u&&!D&&(C.length||i)&&ae(C)},[C,D,u,i,ae]),(0,Si.useEffect)(()=>{te||M(!1)},[te]),(0,Si.useEffect)(()=>{te&&L!==null&&J.current[L]?.scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"})},[te,L]),(0,Si.useEffect)(()=>()=>{Q.current?.cancel?.(),Q.current=null},[]);function ie(fe){v(fe.url,fe),H(null),M(!1)}function be(fe){ie(fe),W.current.focus()}function pe(fe){v(fe)}function ke(){z(!0),ae.cancel()}function ye(){z(!1)}function Pe(){C&&!u&&!I.length&&Q.current===null&&ae(C)}function _e(fe){if(y?.(fe),!te||!I.length||V){if(!fe.shiftKey&&(fe.keyCode===Wa.UP||fe.keyCode===Wa.DOWN)){let ne=fe.keyCode===Wa.UP?0:fe.target.value.length;(fe.target.selectionStart!==ne||fe.target.selectionEnd!==ne)&&(fe.preventDefault(),fe.target.setSelectionRange(ne,ne))}else fe.keyCode===Wa.ENTER&&_&&(fe.preventDefault(),_(null,fe));return}let Ce=I[L]??null;switch(fe.keyCode){case Wa.UP:case Wa.DOWN:{fe.preventDefault();let ne=fe.keyCode===Wa.UP?-1:1;H(((L??(ne===-1?0:-1))+ne+I.length)%I.length);break}case Wa.TAB:{Ce&&(ie(Ce),(0,TX.speak)((0,Op.__)("Link selected.")));break}case Wa.ENTER:{fe.preventDefault(),Ce&&ie(Ce),_?.(Ce,fe);break}}}let ve={id:X,label:h,className:Y("block-editor-url-input",a,{"is-full-width":g}),hideLabelFromVision:p},Se={id:X,value:C,required:k,type:"text",name:X,autoComplete:"off",onChange:d?FR:pe,onCompositionStart:d?FR:ke,onCompositionEnd:d?FR:ye,onFocus:d?FR:Pe,onKeyDown:d?FR:_e,placeholder:w,role:"combobox","aria-label":h?void 0:(0,Op.__)("URL"),"aria-expanded":te,"aria-autocomplete":"list","aria-owns":U,"aria-activedescendant":L!==null?`${G}-${L}`:void 0,ref:W,disabled:d,suffix:x,help:f};return(0,Zl.jsxs)(Zl.Fragment,{children:[(0,Zl.jsx)(fst,{controlProps:ve,inputProps:Se,isLoading:V,customValidity:l,markWhenOptional:b,renderControl:r}),te&&I.length>0&&(0,Zl.jsx)(pst,{autocompleteRef:s,className:a,handleSuggestionClick:be,isLoading:V,renderSuggestions:n,selectedSuggestion:L,suggestionNodesRef:J,suggestionOptionIdPrefix:G,suggestions:I,suggestionsListboxId:U,suggestionsValue:A})]})}function fst({controlProps:e,inputProps:t,isLoading:o,customValidity:r,markWhenOptional:n,renderControl:i}){let[s,a]=(0,Si.useState)(r!==void 0);return r!==void 0&&!s&&a(!0),i?i(e,t,o):(0,Zl.jsxs)(Xl.BaseControl,{...e,children:[(0,Zl.jsx)(s?dst:Xl.__experimentalInputControl,{...t,...s&&{customValidity:r,...n!==void 0&&{markWhenOptional:n}}}),o&&(0,Zl.jsx)(Xl.Spinner,{})]})}function pst({autocompleteRef:e,className:t,handleSuggestionClick:o,isLoading:r,renderSuggestions:n,selectedSuggestion:i,suggestionNodesRef:s,suggestionOptionIdPrefix:a,suggestions:l,suggestionsListboxId:u,suggestionsValue:d}){let f={id:u,ref:e,role:"listbox"},p=(m,g)=>({role:"option",tabIndex:"-1",id:`${a}-${g}`,ref:h=>{s.current[g]=h},"aria-selected":g===i?!0:void 0});return vPe(n)?n({suggestions:l,selectedSuggestion:i,suggestionsListProps:f,buildSuggestionItemProps:p,isLoading:r,handleSuggestionClick:o,isInitialSuggestions:!d?.length,currentInputValue:d}):(0,Zl.jsx)(Xl.Popover,{placement:"bottom",focusOnMount:!1,children:(0,Zl.jsx)("div",{...f,className:Y("block-editor-url-input__suggestions",{[`${t}__suggestions`]:t}),children:l.map((m,g)=>(0,yPe.createElement)(Xl.Button,{__next40pxDefaultSize:!0,...p(m,g),key:m.id,className:Y("block-editor-url-input__suggestion",{"is-selected":g===i}),onClick:()=>o(m)},m.title))})})}var zR=c(T(),1);function kPe({autocompleteRef:e,className:t,onChangeInputValue:o,value:r,...n}){return(0,zR.jsxs)("form",{className:Y("block-editor-url-popover__link-editor",t),...n,children:[(0,zR.jsx)(Pp,{value:r,onChange:o,autocompleteRef:e}),(0,zR.jsx)(wPe.Button,{icon:mf,label:(0,_Pe.__)("Apply"),type:"submit",size:"compact"})]})}var _h=c(T(),1),{__experimentalPopoverLegacyPositionToPlacement:mst}=K(BS.privateApis),gst="bottom",BX=(0,L6.forwardRef)(({additionalControls:e,children:t,renderSettings:o,placement:r,focusOnMount:n="firstElement",position:i,...s},a)=>{i!==void 0&&(0,xPe.default)("`position` prop in wp.blockEditor.URLPopover",{since:"6.2",alternative:"`placement` prop"});let l;r!==void 0?l=r:i!==void 0&&(l=mst(i)),l=l||gst;let[u,d]=(0,L6.useState)(!1),f=!!o&&u,p=()=>{d(!u)};return(0,_h.jsxs)(BS.Popover,{ref:a,role:"dialog","aria-modal":"true","aria-label":(0,RX.__)("Edit URL"),className:"block-editor-url-popover",focusOnMount:n,placement:l,shift:!0,variant:"toolbar",...s,children:[(0,_h.jsx)("div",{className:"block-editor-url-popover__input-container",children:(0,_h.jsxs)("div",{className:"block-editor-url-popover__row",children:[t,!!o&&(0,_h.jsx)(BS.Button,{className:"block-editor-url-popover__settings-toggle",icon:Bn,label:(0,RX.__)("Link settings"),onClick:p,"aria-expanded":u,size:"compact"})]})}),f&&(0,_h.jsx)("div",{className:"block-editor-url-popover__settings",children:o()}),e&&!f&&(0,_h.jsx)("div",{className:"block-editor-url-popover__additional-controls",children:e})]})});BX.LinkEditor=kPe;BX.LinkViewer=gPe;var wh=BX;var fo=c(T(),1),hst=()=>{},bst=({src:e,onChange:t,onSubmit:o,onClose:r,popoverAnchor:n})=>(0,fo.jsx)(wh,{anchor:n,onClose:r,children:(0,fo.jsx)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:o,children:(0,fo.jsx)(cn.__experimentalInputControl,{label:(0,ln.__)("URL"),type:"text",hideLabelFromVision:!0,placeholder:(0,ln.__)("Paste or type URL"),onChange:t,value:e,suffix:(0,fo.jsx)(cn.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,fo.jsx)(cn.Button,{size:"small",icon:mf,label:(0,ln.__)("Apply"),type:"submit"})})})})}),yst=({src:e,onChangeSrc:t,onSelectURL:o})=>{let[r,n]=(0,kh.useState)(null),[i,s]=(0,kh.useState)(!1),a=()=>{s(!0)},l=()=>{s(!1),r?.focus()},u=d=>{d.preventDefault(),e&&o&&(o(e),l())};return(0,fo.jsxs)("div",{className:"block-editor-media-placeholder__url-input-container",children:[(0,fo.jsx)(cn.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__button",onClick:a,isPressed:i,variant:"secondary","aria-haspopup":"dialog",ref:n,children:(0,ln.__)("Insert from URL")}),i&&(0,fo.jsx)(bst,{src:e,onChange:t,onSubmit:u,onClose:l,popoverAnchor:r})]})};function vst({value:e={},allowedTypes:t,className:o,icon:r,labels:n={},mediaPreview:i,notices:s,isAppender:a,accept:l,addToGallery:u,multiple:d=!1,handleUpload:f=!0,disableDropZone:p,disableMediaButtons:m,onError:g,onSelect:h,onCancel:b,onSelectURL:v,onToggleFeaturedImage:y,onDoubleClick:_,onFilesPreUpload:w=hst,onHTMLDrop:k,children:x,mediaLibraryButton:C,placeholder:E,style:R}){k&&(0,CPe.default)("wp.blockEditor.MediaPlaceholder onHTMLDrop prop",{since:"6.2",version:"6.4"});let{mediaUpload:S,allowedMimeTypes:I}=(0,SPe.useSelect)(W=>{let{getSettings:X}=W(B),U=X();return{mediaUpload:U.mediaUpload,allowedMimeTypes:U.allowedMimeTypes}},[]),[O,A]=(0,kh.useState)("");(0,kh.useEffect)(()=>{A(e?.src??"")},[e?.src]);let P=(0,kh.useMemo)(()=>A6(t,I,l),[t,I,l]),L=()=>!t||t.length===0?!1:t.every(W=>W==="image"||W.startsWith("image/")),H=W=>{if(!f||typeof f=="function"&&!f(W))return h(W);w(W);let X;if(d)if(u){let U=[];X=G=>{let te=(e??[]).filter(re=>re.id?!U.some(({id:ae})=>Number(ae)===Number(re.id)):!U.some(({urlSlug:ae})=>re.url.includes(ae)));h(te.concat(G)),U=G.map(re=>{let ae=re.url.lastIndexOf("."),ie=re.url.slice(0,ae);return{id:re.id,urlSlug:ie}})}}else X=h;else X=([U])=>h(U);S({allowedTypes:t,filesList:W,onFileChange:X,onError:g,multiple:d})};async function N(W){let{blocks:X}=kq(W);if(!X?.length)return;let U=await Promise.all(X.map(G=>{let te=G.name.split("/")[1];return G.attributes.id?(G.attributes.type=te,G.attributes):new Promise((re,ae)=>{window.fetch(G.attributes.url).then(ie=>ie.blob()).then(ie=>S({filesList:[ie],additionalData:{title:G.attributes.title,alt_text:G.attributes.alt,caption:G.attributes.caption,type:te},onFileChange:([be])=>{be.id&&re(be)},allowedTypes:t,onError:ae})).catch(()=>re(G.attributes.url))})})).catch(G=>g(G));U?.length&&h(d?U:U[0])}let M=W=>{H(W.target.files)},j=E??(W=>{let{instructions:X,title:U}=n;if(!S&&!v&&(X=(0,ln.__)("To edit this block, you need permission to upload media.")),X===void 0||U===void 0){let te=t??[],[re]=te,ae=te.length===1,ie=ae&&re==="audio",be=ae&&re==="image",pe=ae&&re==="video";X===void 0&&S&&(X=(0,ln.__)("Drag and drop an image or video, upload, or choose from your library."),ie?X=(0,ln.__)("Drag and drop an audio file, upload, or choose from your library."):be?X=(0,ln.__)("Drag and drop an image, upload, or choose from your library."):pe&&(X=(0,ln.__)("Drag and drop a video, upload, or choose from your library."))),U===void 0&&(U=(0,ln.__)("Media"),ie?U=(0,ln.__)("Audio"):be?U=(0,ln.__)("Image"):pe&&(U=(0,ln.__)("Video")))}let G=Y("block-editor-media-placeholder",o,{"is-appender":a});return(0,fo.jsxs)(cn.Placeholder,{icon:r,label:U,instructions:X,className:G,notices:s,onDoubleClick:_,preview:i,style:R,children:[W,x]})}),D=()=>p?null:(0,fo.jsx)(cn.DropZone,{onFilesDrop:H,onDrop:N,isEligible:W=>{let X="wp-block:core/",U=[];for(let G of W.types)G.startsWith(X)&&U.push(G.slice(X.length));return U.length>0&&U.every(G=>t.includes(G))&&(d?!0:U.length===1)}}),z=()=>b&&(0,fo.jsx)(cn.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__cancel-button",title:(0,ln.__)("Cancel"),variant:"link",onClick:b,children:(0,ln.__)("Cancel")}),$=()=>v&&(0,fo.jsx)(yst,{src:O,onChangeSrc:A,onSelectURL:v}),J=()=>y&&(0,fo.jsx)("div",{className:"block-editor-media-placeholder__url-input-container",children:(0,fo.jsx)(cn.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__button",onClick:y,variant:"secondary",children:(0,ln.__)("Use featured image")})}),Q=()=>{let X=C??(({open:G})=>(0,fo.jsx)(cn.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{G()},children:(0,ln.__)("Media Library")})),U=(0,fo.jsx)(xd,{addToGallery:u,gallery:d&&L(),multiple:d,onSelect:h,allowedTypes:t,mode:"browse",value:Array.isArray(e)?e.map(({id:G})=>G):e.id,render:X});if(S&&a)return(0,fo.jsxs)(fo.Fragment,{children:[D(),(0,fo.jsx)(cn.FormFileUpload,{onChange:M,accept:P,multiple:!!d,render:({openFileDialog:G})=>{let te=(0,fo.jsxs)(fo.Fragment,{children:[(0,fo.jsx)(cn.Button,{__next40pxDefaultSize:!0,variant:"primary",className:Y("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:G,children:(0,ln._x)("Upload","verb")}),U,$(),J(),z()]});return j(te)}})]});if(S){let G=(0,fo.jsxs)(fo.Fragment,{children:[D(),(0,fo.jsx)(cn.FormFileUpload,{render:({openFileDialog:te})=>(0,fo.jsx)(cn.Button,{__next40pxDefaultSize:!0,onClick:te,variant:"primary",className:Y("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),children:(0,ln._x)("Upload","verb")}),onChange:M,accept:P,multiple:!!d}),U,$(),J(),z()]});return j(G)}return j(U)};return m?(0,fo.jsx)(Pa,{children:D()}):(0,fo.jsx)(Pa,{fallback:j($()),children:Q()})}var EPe=(0,cn.withFilters)("editor.MediaPlaceholder")(vst);var TPe=c(T(),1),_st=({colorSettings:e,...t})=>{let o=e.map(r=>{if(!r)return r;let{value:n,onChange:i,...s}=r;return{...s,colorValue:n,onColorChange:i}});return(0,TPe.jsx)(r6,{settings:o,gradients:[],disableCustomGradients:!0,...t})},RPe=_st;var A2e=c(CH(),1);var M2e=c(F(),1);var I2e=c(F(),1);var k2e=c(ab(),1),oi=c(F(),1),Mp=c(ee(),1),Y6=c(ue(),1),x2e=c($r(),1),S2e=c(q(),1),C2e=c(ce(),1),E2e=c(Nt(),1),DS=c(Z(),1);var BPe=c(Z(),1),D6=c(q(),1);var IX=c(Z(),1),Tv=c(q(),1);var Ap=c(T(),1),wst={placement:"bottom-start"},kst=()=>(0,Ap.jsxs)(Ap.Fragment,{children:[["bold","italic","link","unknown"].map(e=>(0,Ap.jsx)(Tv.Slot,{name:`RichText.ToolbarControls.${e}`},e)),(0,Ap.jsx)(Tv.Slot,{name:"RichText.ToolbarControls",children:e=>{if(!e.length)return null;let o=e.map(([{props:r}])=>r).some(({isActive:r})=>r);return(0,Ap.jsx)(Tv.ToolbarItem,{children:r=>(0,Ap.jsx)(Tv.DropdownMenu,{icon:Bn,label:(0,IX.__)("More"),toggleProps:{...r,className:Y(r.className,{"is-pressed":o}),description:(0,IX.__)("Displays more block tools")},controls:ju(e.map(([{props:n}])=>n),"title"),popoverProps:wst})})}})]}),PX=kst;var xh=c(T(),1);function xst({popoverAnchor:e}){return(0,xh.jsx)(D6.Popover,{placement:"top",focusOnMount:!1,anchor:e,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar",children:(0,xh.jsx)(Wx,{className:"block-editor-rich-text__inline-format-toolbar-group","aria-label":(0,BPe.__)("Format tools"),children:(0,xh.jsx)(D6.ToolbarGroup,{children:(0,xh.jsx)(PX,{})})})})}var Sst=({inline:e,editableContentElement:t})=>e?(0,xh.jsx)(xst,{popoverAnchor:t}):(0,xh.jsx)(Ko,{group:"inline",children:(0,xh.jsx)(PX,{})}),IPe=Sst;var V6=c(F(),1),PPe=c(ee(),1);function OPe({html:e,value:t}){let o=(0,V6.useRef)(),r=!!t.activeFormats?.length,{__unstableMarkLastChangeAsPersistent:n}=(0,PPe.useDispatch)(B);(0,V6.useLayoutEffect)(()=>{if(!o.current){o.current=t.text;return}if(o.current!==t.text){let i=window.setTimeout(()=>{n()},1e3);return o.current=t.text,()=>{window.clearTimeout(i)}}n()},[e,r])}var MS=c(F(),1),i2e=c(ue(),1);var Rv=c($r(),1),APe=c(Bo(),1);var{subscribeOwnedListener:Cst}=K(Rv.privateApis),Est=["`",'"',"'","\u201C\u201D","\u2018\u2019"],MPe=e=>t=>{function o(r){let{inputType:n,data:i}=r,{value:s,onChange:a,registry:l}=e.current;if(n!=="insertText"||(0,Rv.isCollapsed)(s))return;let u=(0,APe.applyFilters)("blockEditor.wrapSelectionSettings",Est).find(([k,x])=>k===i||x===i);if(!u)return;let[d,f=d]=u,p=s.start,m=s.end+d.length,g=(0,Rv.insert)(s,d,p,p);g=(0,Rv.insert)(g,f,m,m);let{__unstableMarkLastChangeAsPersistent:h,__unstableMarkAutomaticChange:b}=l.dispatch(B);h(),a(g),b();let v={};for(let k in r)v[k]=r[k];v.data=f;let{ownerDocument:y}=t,{defaultView:_}=y,w=new _.InputEvent("input",v);window.queueMicrotask(()=>{t.dispatchEvent(w)}),r.preventDefault()}return Cst(t,"beforeinput",o,!0)};var PS=c($r(),1),IS=c(ce(),1);var NPe=c($r(),1);function LPe(e){let t="tales of gutenberg",o=" \u{1F421}\u{1F422}\u{1F980}\u{1F424}\u{1F98B}\u{1F418}\u{1F427}\u{1F439}\u{1F981}\u{1F984}\u{1F98D}\u{1F43C}\u{1F43F}\u{1F383}\u{1F434}\u{1F41D}\u{1F406}\u{1F995}\u{1F994}\u{1F331}\u{1F347}\u03C0\u{1F34C}\u{1F409}\u{1F4A7}\u{1F968}\u{1F30C}\u{1F342}\u{1F360}\u{1F966}\u{1F95A}\u{1F95D}\u{1F39F}\u{1F965}\u{1F952}\u{1F6F5}\u{1F956}\u{1F352}\u{1F36F}\u{1F3BE}\u{1F3B2}\u{1F43A}\u{1F41A}\u{1F42E}\u231B\uFE0F",{start:r,text:n}=e;return r<t.length||n.slice(r-t.length,r).toLowerCase()!==t?e:(0,NPe.insert)(e,o)}var{subscribeOwnedListener:DPe}=K(PS.privateApis);function VPe(e){let t=e.length;for(;t--;){let o=p1(e[t].attributes);if(o)return e[t].attributes[o]=e[t].attributes[o].toString().replace(Sf,""),[e[t].clientId,o,0,0];let r=VPe(e[t].innerBlocks);if(r)return r}return[]}var FPe=e=>t=>{function o(){let{getValue:s,onReplace:a,selectionChange:l,registry:u}=e.current;if(!a)return;let d=s(),{start:f,text:p}=d;if(p.slice(f-1,f)!==" ")return;let g=p.slice(0,f).trim(),h=(0,IS.getBlockTransforms)("from").filter(({type:_})=>_==="prefix"),b=(0,IS.findTransform)(h,({prefix:_})=>g===_);if(!b)return;let v=(0,PS.toHTMLString)({value:(0,PS.insert)(d,Sf,0,f)}),y=b.transform(v);return u.batch(()=>{l(...VPe([y])),a([y])}),u.dispatch(B).__unstableMarkAutomaticChange(),!0}function r(s){let{inputType:a,type:l}=s,{getValue:u,onChange:d,__unstableAllowPrefixTransformations:f,formatTypes:p,registry:m,onReplace:g}=e.current;if(a!=="insertText"&&l!=="compositionend"||f&&o())return;let h=u();if(g){let _=(0,IS.getBlockTransforms)("from").filter(k=>k.type==="input"),w=(0,IS.findTransform)(_,k=>k.regExp.test(h.text));if(w){g(w.transform()),m.dispatch(B).__unstableMarkAutomaticChange();return}}let b=p.reduce((_,{__unstableInputRule:w})=>(w&&(_=w(_)),_),LPe(h)),{__unstableMarkLastChangeAsPersistent:v,__unstableMarkAutomaticChange:y}=m.dispatch(B);b!==h&&(v(),d({...b,activeFormats:h.activeFormats}),y())}let n=DPe(t,"input",r,!0),i=DPe(t,"compositionend",r,!0);return()=>{n(),i()}};var zPe=c($r(),1);var{subscribeOwnedListener:Tst}=K(zPe.privateApis),jPe=e=>t=>{function o(r){if(r.inputType!=="insertReplacementText")return;let{registry:n}=e.current;n.dispatch(B).__unstableMarkLastChangeAsPersistent()}return Tst(t,"beforeinput",o)};var F6=c(wo(),1),HPe=c($r(),1);var{subscribeOwnedListener:Rst}=K(HPe.privateApis),WPe=()=>e=>{function t(o){(F6.isKeyboardEvent.primary(o,"z")||F6.isKeyboardEvent.primary(o,"y")||F6.isKeyboardEvent.primaryShift(o,"z"))&&o.preventDefault()}return Rst(e,"keydown",t,!0)};var UPe=c($r(),1);var{subscribeOwnedListener:Bst}=K(UPe.privateApis),GPe=e=>t=>{let{keyboardShortcuts:o}=e.current;function r(n){for(let i of o.current)i(n)}return Bst(t,"keydown",r,!0)};var $Pe=c($r(),1);var{subscribeOwnedListener:Ist}=K($Pe.privateApis),YPe=e=>t=>{let{inputEvents:o}=e.current;function r(n){for(let i of o.current)i(n)}return Ist(t,"input",r)};var qPe=c(ce(),1),Ql=c($r(),1),ZPe=c(ma(),1),XPe=c(ue(),1);var Pst=c(F(),1),Ost=c(ce(),1),Ast=c(T(),1);function KPe(e,t){if(t?.length){let o=e.formats.length;for(;o--;)e.formats[o]=[...t,...e.formats[o]||[]]}}function z6(e){if(!(e!==!0&&e!=="p"&&e!=="li"))return e===!0?"p":e}function OS({allowedFormats:e,disableFormats:t}){return t?OS.EMPTY_ARRAY:e}OS.EMPTY_ARRAY=[];var{subscribeDelegatedListener:Mst}=K(XPe.privateApis),{ownsSelection:Nst}=K(Ql.privateApis),QPe=e=>t=>{function o(n){let{disableFormats:i,onChange:s,value:a,formatTypes:l,tagName:u,onReplace:d,__unstableEmbedURLOnPaste:f,preserveWhiteSpace:p,pastePlainText:m,registry:g}=e.current;if(!t.contains(n.target)&&!Nst(t)||n.defaultPrevented)return;let h=Fk(n);if(!h)return;n.preventDefault();let{plainText:b,html:v,files:y}=h;if(y.length)return;if(window.console.log(`Received HTML (RichText): 208 209 `,v),window.console.log(`Received plain text (RichText): 210 211 `,b),i){s((0,Ql.insert)(a,b));return}let _=n.clipboardData.getData("rich-text")==="true";function w(E){let R=l.reduce((S,{__unstablePasteRule:I})=>(I&&S===a&&(S=I(a,{html:v,plainText:b})),S),a);if(R!==a)s(R);else{let S=(0,Ql.create)({html:E});KPe(S,a.activeFormats),s((0,Ql.insert)(a,S))}}if(_){w(v);return}if(m){s((0,Ql.insert)(a,(0,Ql.create)({text:b})));return}let k="INLINE",x=b.trim();f&&(0,Ql.isEmpty)(a)&&(0,ZPe.isURL)(x)&&/^https?:/.test(x)&&(k="BLOCKS");let C=(0,qPe.pasteHandler)({HTML:v,plainText:b,mode:k,tagName:u,preserveWhiteSpace:p});if(typeof C=="string"){w(C);return}!C.length||!d||!(0,Ql.isEmpty)(a)||(k==="BLOCKS"&&(w(v),g.dispatch(B).__unstableMarkLastChangeAsPersistent()),d(C,C.length-1,-1))}let{defaultView:r}=t.ownerDocument;return Mst(r,"paste",o)};var jR=c(wo(),1),AS=c($r(),1);var{subscribeOwnedListener:Lst}=K(AS.privateApis),JPe=e=>t=>{function o(r){let{keyCode:n}=r;if(r.defaultPrevented)return;let{value:i,onMerge:s,onRemove:a}=e.current;if(n===jR.DELETE||n===jR.BACKSPACE){let{start:l,end:u,text:d}=i,f=n===jR.BACKSPACE,p=i.activeFormats&&!!i.activeFormats.length;if(!(0,AS.isCollapsed)(i)||p||f&&l!==0||!f&&u!==d.length)return;s?s(!f):a&&(0,AS.isEmpty)(i)&&f&&a(!f),r.preventDefault()}}return Lst(t,"keydown",o)};var t2e=c(wo(),1),Bv=c($r(),1),o2e=c(ue(),1);var{subscribeOwnedListener:e2e,ownsSelection:Dst}=K(Bv.privateApis),{subscribeDelegatedListener:Vst}=K(o2e.privateApis),r2e=e=>t=>{function o(u){if(u.keyCode!==t2e.ENTER)return;let{onReplace:d,onSplit:f,supportsSplitting:p,disableLineBreaks:m,onChange:g,getValue:h,onSplitAtDoubleLineEnd:b,registry:v,onSplitAtEnd:y}=e.current,_=h(),{text:w,start:k,end:x}=_;u.shiftKey?m||(u.preventDefault(),g((0,Bv.insert)(_,` 212 `))):y&&k===x&&x===w.length?(u.preventDefault(),y()):!p&&!(d&&f)&&!m&&!u.defaultPrevented&&(u.preventDefault(),b&&k===x&&x===w.length&&w.slice(-2)===` 213 214 `?v.batch(()=>{let C={..._};C.start=C.end-2,g((0,Bv.remove)(C)),b()}):g((0,Bv.insert)(_,` 215 `)))}function r(u){if(u.inputType!=="insertParagraph")return;let{onReplace:d,onSplit:f}=e.current;d&&f&&(u.__deprecatedOnSplit=!0)}function n(u){u.defaultPrevented||u.inputType!=="insertParagraph"&&u.inputType!=="insertLineBreak"||u.target!==t&&!Dst(t)||u.preventDefault()}let{defaultView:i}=t.ownerDocument,s=Vst(i,"beforeinput",n),a=e2e(t,"keydown",o,!0),l=e2e(t,"beforeinput",r,!0);return()=>{s(),a(),l()}};var n2e=e=>t=>{function o(){let{registry:r}=e.current;if(!r.select(B).isMultiSelecting())return;let n=t.parentElement.closest('[contenteditable="true"]');n&&n.focus()}return t.addEventListener("focus",o),()=>{t.removeEventListener("focus",o)}};var Fst=[MPe,FPe,jPe,WPe,GPe,YPe,QPe,JPe,r2e,n2e];function j6(e){let t=(0,MS.useRef)(e);(0,MS.useInsertionEffect)(()=>{t.current=e});let o=(0,MS.useMemo)(()=>Fst.map(r=>r(t)),[t]);return(0,i2e.useRefEffect)(r=>{if(!e.isSelected)return;let n=o.map(i=>i(r));return()=>{n.forEach(i=>i())}},[o,e.isSelected])}var H6=c($r(),1),W6=c(F(),1);var s2e=c(T(),1),a2e=c(oe(),1),zst={},OX=Symbol("usesContext");function jst({onChange:e,onFocus:t,value:o,forwardedRef:r,settings:n,isVisible:i}){let{name:s,edit:a,[OX]:l}=n,u=(0,W6.useContext)(Hn),d=(0,W6.useMemo)(()=>l?Object.fromEntries(Object.entries(u).filter(([h])=>l.includes(h))):zst,[l,u]);if(!a)return null;let f=(0,H6.getActiveFormat)(o,s),p=f!==void 0,m=(0,H6.getActiveObject)(o),g=m!==void 0&&m.type===s;return(0,s2e.jsx)(a,{isActive:p,isVisible:i,activeAttributes:p?f.attributes||{}:{},isObjectActive:g,activeObjectAttributes:g?m.attributes||{}:{},value:o,onChange:e,onFocus:t,contentRef:r,context:d},s)}function U6({formatTypes:e,...t}){return e.map(o=>(0,a2e.createElement)(jst,{settings:o,...t,key:o.name}))}var l2e=c(F(),1),c2e=c(ce(),1),u2e=c(Nt(),1);var AX=c(T(),1);function MX(e,t){if(NS.isEmpty(e)){let o=z6(t);return o?`<${o}></${o}>`:""}return Array.isArray(e)?((0,u2e.default)("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),c2e.children.toHTML(e)):typeof e=="string"?e:e.toHTMLString()}function HR({value:e,tagName:t,multiline:o,format:r,...n}){return e=(0,AX.jsx)(l2e.RawHTML,{children:MX(e,o)}),t?(0,AX.jsx)(t,{...n,children:e}):e}var g2e=c(F(),1),LX=c(ce(),1),h2e=c($r(),1),b2e=c(Nt(),1);var LS=c(F(),1),d2e=c(Nt(),1),WR=c(ee(),1),f2e=c(wo(),1),Sh=c($r(),1),p2e=c(ue(),1);var G6=c(T(),1),{subscribeOwnedListener:Hst}=K(Sh.privateApis);function Wst(e){let{getSelectionStart:t,getSelectionEnd:o}=(0,WR.useSelect)(B),{selectionChange:r}=(0,WR.useDispatch)(B);return(0,p2e.useRefEffect)(n=>{function i(s){if(s.keyCode!==f2e.ENTER)return;s.preventDefault();let{value:a,values:l,onChange:u,index:d,identifier:f,clientId:p}=e.current,{offset:m}=t(),{offset:g}=o();if(typeof m!="number"||typeof g!="number")return;let h=(0,Sh.create)({html:a});h.start=m,h.end=g;let b=(0,Sh.split)(h).map(y=>(0,Sh.toHTMLString)({value:y})),v=l.slice();v.splice(d,1,...b),u(v),r(p,`${f}-${d+1}`,0,0)}return Hst(n,"keydown",i,!0)},[])}function Ust(e){let{value:t,values:o,onChange:r,index:n,identifier:i,multilineTagName:s,...a}=e,{clientId:l}=kt(),{selectionChange:u}=(0,WR.useDispatch)(B),d=(0,LS.useRef)();(0,LS.useInsertionEffect)(()=>{d.current={...e,clientId:l}});let f=Wst(d);return(0,G6.jsx)(NX,{identifier:`${i}-${n}`,tagName:s,value:t,onChange:p=>{let m=o.slice();m[n]=p,r(m)},isSelected:void 0,ref:f,onMerge:p=>{let m=o.slice(),g=0;if(p){if(!m[n+1])return;m.splice(n,2,m[n]+m[n+1]),g=m[n].length-1}else{if(!m[n-1])return;m.splice(n-1,2,m[n-1]+m[n]),g=m[n-1].length-1}r(m),u(l,`${i}-${n-(p?0:1)}`,g,g)},...a},n)}function Gst({children:e,identifier:t,tagName:o="div",value:r="",onChange:n,multiline:i,...s},a){(0,d2e.default)("wp.blockEditor.RichText multiline prop",{since:"6.1",version:"6.3",alternative:"nested blocks (InnerBlocks)",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/"});let l=z6(i);r=r||`<${l}></${l}>`;let d=`</${l}>${r}<${l}>`.split(`</${l}><${l}>`);d.shift(),d.pop();function f(p){n(`<${l}>${p.join(`</${l}><${l}>`)}</${l}>`)}return(0,G6.jsx)(o,{ref:a,children:d.map((p,m)=>(0,G6.jsx)(Ust,{values:d,value:p,onChange:f,index:m,identifier:t,multilineTagName:l,...s},m))})}var m2e=(0,LS.forwardRef)(Gst);var y2e=c(T(),1);function v2e(e){return(0,g2e.forwardRef)((t,o)=>{let r=t.value,n=t.onChange;Array.isArray(r)&&((0,b2e.default)("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),r=LX.children.toHTML(t.value),n=s=>t.onChange(LX.children.fromDOM((0,h2e.__unstableCreateElement)(document,s).childNodes)));let i=t.multiline?m2e:e;return(0,y2e.jsx)(i,{...t,value:r,onChange:n,ref:o})})}var $6=c(q(),1),_2e=c(wo(),1),DX=c(T(),1);function VX({name:e,shortcutType:t,shortcutCharacter:o,...r}){let n,i="RichText.ToolbarControls";return e&&(i+=`.${e}`),t&&o&&(n=_2e.displayShortcut[t](o)),(0,DX.jsx)($6.Fill,{name:i,children:(0,DX.jsx)($6.ToolbarButton,{...r,shortcut:n})})}var Ua=c(T(),1),{useRichText:$st,KeyboardShortcutContext:Yst,InputEventContext:Kst,RichTextShortcut:T2e,RichTextInputEvent:R2e}=K(x2e.privateApis),w2e=Symbol("instanceId");function B2e({children:e,tagName:t="div",value:o="",onChange:r,isSelected:n,multiline:i,inlineToolbar:s,wrapperClassName:a,autocompleters:l,onReplace:u,placeholder:d,allowedFormats:f,withoutInteractiveFormatting:p,onRemove:m,onMerge:g,onSplit:h,__unstableOnSplitAtEnd:b,__unstableOnSplitAtDoubleLineEnd:v,identifier:y,preserveWhiteSpace:_,__unstablePastePlainText:w,__unstableEmbedURLOnPaste:k,__unstableDisableFormats:x,disableLineBreaks:C,__unstableAllowPrefixTransformations:E,readOnly:R,...S},I){h&&(0,E2e.default)("wp.blockEditor.RichText onSplit prop",{since:"6.4",alternative:'block.json support key: "splitting"'});let{supportsSplitting:O}=(0,oi.useContext)(Rn),A=(0,Y6.useInstanceId)(B2e),P=(0,oi.useRef)(),[L,H]=(0,oi.useState)(null),N=kt(),{clientId:M,isSelected:V,name:j}=N,D=N[i_],z=N[n_]==="default",$=(0,oi.useContext)(Hn),J=(0,Mp.useRegistry)(),Q=we=>{if(!V)return{isSelected:!1};let{getSelectionStart:Me,getSelectionEnd:ge}=we(B),Re=Me(),Ie=ge(),at;return n===void 0?at=Re.clientId===M&&Ie.clientId===M&&(y?Re.attributeKey===y:Re[w2e]===A):n&&(at=Re.clientId===M),{selectionStart:at?Re.offset:void 0,selectionEnd:at?Ie.offset:void 0,isSelected:at}},{selectionStart:W,selectionEnd:X,isSelected:U}=(0,Mp.useSelect)(Q,[M,y,A,n,V]),{disableBoundBlock:G,bindingsPlaceholder:te,bindingsLabel:re}=(0,Mp.useSelect)(we=>{if(!D?.[y])return{};let{__experimentalBlockBindingsSupportedAttributes:Me}=we(B).getSettings();if(!Me?.[j])return{};let Re=D[y],Ie=(0,C2e.getBlockBindingsSource)(Re.source),at={};if(Ie?.usesContext?.length)for(let it of Ie.usesContext)at[it]=$[it];let Qe=!Ie?.canUserEditValue?.({select:we,context:at,args:Re.args});if(o.length>0)return{disableBoundBlock:Qe,bindingsPlaceholder:null,bindingsLabel:null};let{getBlockAttributes:po}=we(B),ro=po(M),vo=null;Ie?.getFieldsList&&(vo=Ie.getFieldsList({select:we,context:at})?.find(Vt=>(0,k2e.default)(Vt.args,Re?.args))?.label);let Kt=vo??Ie?.label,_o=Qe?Kt:(0,DS.sprintf)((0,DS.__)("Add %s"),Kt),En=Qe?Re?.args?.key||Ie?.label:(0,DS.sprintf)((0,DS.__)("Empty %s; start writing to edit its value"),Re?.args?.key||Ie?.label);return{disableBoundBlock:Qe,bindingsPlaceholder:ro?.placeholder||_o,bindingsLabel:En}},[D,y,j,o,M,$]),ae=!!$?.["pattern/overrides"],ie=D?.__default?.source==="core/pattern-overrides",pe=R||G||ae&&!ie,ke=(0,Mp.useSelect)(we=>{if(pe||!z||!V)return!1;let{getSelectedBlockClientId:Me,canHostEditableRoot:ge}=K(we(B));return ge(Me())},[pe,z,V]),{getSelectionStart:ye,getSelectionEnd:Pe,getBlockRootClientId:_e}=(0,Mp.useSelect)(B),{selectionChange:ve}=(0,Mp.useDispatch)(B),Se=OS({allowedFormats:f,disableFormats:x}),fe=!Se||Se.length>0,Ce=(0,oi.useCallback)((we,Me)=>{let ge={},Re=we===void 0&&Me===void 0,Ie={clientId:M,[y?"attributeKey":w2e]:y||A};if(typeof we=="number"||Re){if(Me===void 0&&_e(M)!==_e(Pe().clientId))return;ge.start={...Ie,offset:we}}if(typeof Me=="number"||Re){if(we===void 0&&_e(M)!==_e(ye().clientId))return;ge.end={...Ie,offset:Me}}ve(ge)},[M,_e,Pe,ye,y,A,ve]),{value:ne,getValue:se,onChange:Ee,ref:he,formatTypes:Ae}=$st({value:o,onChange:r,selectionStart:W,selectionEnd:X,onSelectionChange:Ce,placeholder:te||d,__unstableIsSelected:U,__unstableDisableFormats:x,preserveWhiteSpace:_,__unstableDependencies:[t],allowedFormats:Se,withoutInteractiveFormatting:p,__unstableFormatTypeHandlerContext:(0,oi.useMemo)(()=>({richTextIdentifier:y,blockClientId:M}),[y,M])}),et=Kre({onReplace:u,completers:l,record:ne,onChange:Ee}),{"aria-autocomplete":Je,"aria-haspopup":_t,"aria-controls":Et,"aria-owns":mt,"aria-activedescendant":oo}=et;(0,oi.useEffect)(()=>{if(!U)return;let we=P.current?.parentElement?.closest('[contenteditable="true"]');if(!we)return;let Me={"aria-autocomplete":Je,"aria-haspopup":_t,"aria-controls":Et,"aria-owns":mt,"aria-activedescendant":oo};for(let[ge,Re]of Object.entries(Me))Re===void 0?we.removeAttribute(ge):we.setAttribute(ge,Re);return()=>{for(let ge of Object.keys(Me))we.removeAttribute(ge)}},[U,Je,_t,Et,mt,oo]),OPe({html:o,value:ne});let Tt=(0,oi.useRef)(new Set),Rt=(0,oi.useRef)(new Set);function Bt(){P.current?.focus()}let gt=S.tabIndex;ke?gt=S.tabIndex??0:!pe&&S.tabIndex===0&&(gt=null);let He=t;return(0,Ua.jsxs)(Ua.Fragment,{children:[U&&(0,Ua.jsx)(Yst.Provider,{value:Tt,children:(0,Ua.jsx)(Kst.Provider,{value:Rt,children:(0,Ua.jsxs)(S2e.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after",children:[e&&e({value:ne,onChange:Ee,onFocus:Bt}),(0,Ua.jsx)(U6,{value:ne,onChange:Ee,onFocus:Bt,formatTypes:Ae,forwardedRef:P})]})})}),U&&fe&&(0,Ua.jsx)(IPe,{inline:s,editableContentElement:L}),(0,Ua.jsx)(He,{role:"textbox","aria-multiline":!C,"aria-readonly":pe,...S,draggable:void 0,"aria-label":re||S["aria-label"]||d,...et,ref:(0,Y6.useMergeRefs)([he,I,et.ref,S.ref,j6({registry:J,getValue:se,onChange:Ee,__unstableAllowPrefixTransformations:E,formatTypes:Ae,onReplace:u,selectionChange:ve,isSelected:U,disableFormats:x,value:ne,tagName:t,onSplit:h,__unstableEmbedURLOnPaste:k,pastePlainText:w,onMerge:g,onRemove:m,disableLineBreaks:C,onSplitAtEnd:b,onSplitAtDoubleLineEnd:v,keyboardShortcuts:Tt,inputEvents:Rt,supportsSplitting:O}),P,H]),contentEditable:!pe,suppressContentEditableWarning:!0,className:Y("block-editor-rich-text__editable",S.className,"rich-text"),tabIndex:gt,"data-wp-block-attribute-key":y})]})}var NX=(0,oi.forwardRef)(B2e),UR=v2e(NX);UR.Content=HR;UR.isEmpty=e=>!e||e.length===0;var FX=(0,oi.forwardRef)((e,t)=>{if(kt()[sI]){let{children:n,tagName:i="div",value:s,onChange:a,isSelected:l,multiline:u,inlineToolbar:d,wrapperClassName:f,autocompleters:p,onReplace:m,placeholder:g,allowedFormats:h,withoutInteractiveFormatting:b,onRemove:v,onMerge:y,onSplit:_,__unstableOnSplitAtEnd:w,__unstableOnSplitAtDoubleLineEnd:k,identifier:x,preserveWhiteSpace:C,__unstablePastePlainText:E,__unstableEmbedURLOnPaste:R,__unstableDisableFormats:S,disableLineBreaks:I,__unstableAllowPrefixTransformations:O,readOnly:A,...P}=e;return(0,Ua.jsx)(i,{ref:t,...P,dangerouslySetInnerHTML:{__html:MX(s,u)||"<br>"}})}return(0,Ua.jsx)(UR,{ref:t,...e,readOnly:!1})});FX.Content=HR;FX.isEmpty=e=>!e||e.length===0;var NS=FX;var zX=c(T(),1),P2e=(0,I2e.forwardRef)((e,t)=>(0,zX.jsx)(NS,{ref:t,...e,__unstableDisableFormats:!0}));P2e.Content=function({value:t="",tagName:o="div",...r}){return(0,zX.jsx)(o,{...r,children:t})};var O2e=P2e;var jX=c(T(),1),qst=(0,M2e.forwardRef)(({__experimentalVersion:e,...t},o)=>{if(e===2)return(0,jX.jsx)(O2e,{ref:o,...t});let{className:r,onChange:n,...i}=t;return(0,jX.jsx)(A2e.default,{ref:o,className:Y("block-editor-plain-text",r),onChange:s=>n(s.target.value),...i})}),N2e=qst;var Nd=c(Z(),1),D2e=c(F(),1),V2e=c(q(),1);var L2e=c(ue(),1);var K6=c(Z(),1),Ch=c(T(),1);function q6({property:e,viewport:t,desc:o}){let r=(0,L2e.useInstanceId)(q6),n=o||(0,K6.sprintf)((0,K6._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),e,t.label);return(0,Ch.jsxs)(Ch.Fragment,{children:[(0,Ch.jsx)("span",{"aria-describedby":`rbc-desc-${r}`,children:t.label}),(0,Ch.jsx)(ht,{id:`rbc-desc-${r}`,render:(0,Ch.jsx)("span",{}),children:n})]})}var Ld=c(T(),1);function Zst(e){let{title:t,property:o,toggleLabel:r,onIsResponsiveChange:n,renderDefaultControl:i,renderResponsiveControls:s,isResponsive:a=!1,defaultLabel:l={id:"all",label:(0,Nd._x)("All","screen sizes")},viewports:u=[{id:"small",label:(0,Nd.__)("Small screens")},{id:"medium",label:(0,Nd.__)("Medium screens")},{id:"large",label:(0,Nd.__)("Large screens")}]}=e;if(!t||!o||!i)return null;let d=r||(0,Nd.sprintf)((0,Nd.__)("Use the same %s on all screen sizes."),o),f=(0,Nd.__)("Choose whether to use the same value for all screen sizes or a unique value for each screen size."),p=i((0,Ld.jsx)(q6,{property:o,viewport:l}),l),m=()=>u.map(g=>(0,Ld.jsx)(D2e.Fragment,{children:i((0,Ld.jsx)(q6,{property:o,viewport:g}),g)},g.id));return(0,Ld.jsxs)("fieldset",{className:"block-editor-responsive-block-control",children:[(0,Ld.jsx)("legend",{className:"block-editor-responsive-block-control__title",children:t}),(0,Ld.jsxs)("div",{className:"block-editor-responsive-block-control__inner",children:[(0,Ld.jsx)(V2e.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:d,checked:!a,onChange:n,help:f}),(0,Ld.jsxs)("div",{className:Y("block-editor-responsive-block-control__group",{"is-responsive":a}),children:[!a&&p,a&&(s?s(u):m())]})]})]})}var F2e=Zst;var Z6=c(q(),1);var z2e=c(T(),1);function j2e({units:e,...t}){let[o]=je("spacing.units"),r=(0,Z6.__experimentalUseCustomUnits)({availableUnits:o||["%","px","em","rem","vw"],units:e});return(0,z2e.jsx)(Z6.__experimentalUnitControl,{units:r,...t})}var GR=c(Z(),1),H2e=c(F(),1),VS=c(q(),1);var Dd=c(T(),1);function Xst({url:e,onChange:t}){let[o,r]=(0,H2e.useReducer)(i=>!i,!1),n=i=>{i.preventDefault(),r()};return(0,Dd.jsxs)("div",{className:"block-editor-url-input__button",children:[(0,Dd.jsx)(VS.Button,{size:"compact",icon:As,label:e?(0,GR.__)("Edit link"):(0,GR.__)("Insert link"),onClick:r,className:"components-toolbar__control",isPressed:!!e}),o&&(0,Dd.jsx)("form",{className:"block-editor-url-input__button-modal",onSubmit:n,children:(0,Dd.jsxs)("div",{className:"block-editor-url-input__button-modal-line",children:[(0,Dd.jsx)(VS.Button,{__next40pxDefaultSize:!0,className:"block-editor-url-input__back",icon:J0,label:(0,GR.__)("Close"),onClick:r}),(0,Dd.jsx)(Pp,{value:e||"",onChange:t,suffix:(0,Dd.jsx)(VS.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,Dd.jsx)(VS.Button,{size:"small",icon:mf,label:(0,GR.__)("Submit"),type:"submit"})})})]})})]})}var W2e=Xst;var na=c(Z(),1),Jl=c(F(),1),K2e=c(Dt(),1),Vn=c(q(),1);var q2e=c(ma(),1);var Wo=c(T(),1),HX="none",U2e="custom",G2e="media",$2e="attachment",Y2e=["noopener"],Z2e=({linkDestination:e,onChangeUrl:t,url:o,mediaType:r="image",mediaUrl:n,mediaLink:i,linkTarget:s,linkClass:a,rel:l,showLightboxSetting:u,lightboxEnabled:d,onSetLightbox:f,resetLightbox:p})=>{let[m,g]=(0,Jl.useState)(!1),[h,b]=(0,Jl.useState)(null),v=()=>{g(!0)},[y,_]=(0,Jl.useState)(!1),[w,k]=(0,Jl.useState)(null),x=(0,Jl.useRef)(null),C=(0,Jl.useRef)();(0,Jl.useEffect)(()=>{if(!C.current)return;(K2e.focus.focusable.find(C.current)[0]||C.current).focus()},[y,o,d]);let E=()=>{(e===G2e||e===$2e)&&k(""),_(!0)},R=()=>{_(!1)},S=()=>{k(null),R(),g(!1)},I=W=>{let X=W?"_blank":void 0,U;if(X){let G=(l??"").split(" ");Y2e.forEach(te=>{G.includes(te)||G.push(te)}),U=G.join(" ")}else{let G=(l??"").split(" ").filter(te=>Y2e.includes(te)===!1);U=G.length?G.join(" "):void 0}return{linkTarget:X,rel:U}},O=()=>W=>{let X=x.current;X&&X.contains(W.target)||(g(!1),k(null),R())},A=()=>W=>{if(w){let X=L().find(U=>U.url===w)?.linkDestination||U2e;t({href:(0,q2e.prependHTTPS)(w),linkDestination:X,lightbox:{enabled:!1}})}R(),k(null),W.preventDefault()},P=()=>{t({linkDestination:HX,href:""})},L=()=>{let W=[{linkDestination:G2e,title:(0,na.__)("Link to image file"),url:r==="image"?n:void 0,icon:lC}];return r==="image"&&i&&W.push({linkDestination:$2e,title:(0,na.__)("Link to attachment page"),url:r==="image"?i:void 0,icon:_b}),W},H=W=>{let X=L(),U;W?U=(X.find(G=>G.url===W)||{linkDestination:U2e}).linkDestination:U=HX,t({linkDestination:U,href:W})},N=W=>{let X=I(W);t(X)},M=W=>{t({rel:W})},V=W=>{t({linkClass:W})},j=(0,Wo.jsxs)(Vn.__experimentalVStack,{spacing:"3",children:[(0,Wo.jsx)(Vn.ToggleControl,{label:(0,na.__)("Open in new tab"),onChange:N,checked:s==="_blank"}),(0,Wo.jsx)(Vn.TextControl,{label:(0,na.__)("Link relation"),value:l??"",onChange:M,help:(0,Jl.createInterpolateElement)((0,na.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Wo.jsx)(Vn.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})})}),(0,Wo.jsx)(Vn.TextControl,{label:(0,na.__)("Link CSS class"),value:a||"",onChange:V})]}),D=w!==null?w:o,z=!d||d&&!u,$=!D&&z,J=(L().find(W=>W.linkDestination===e)||{}).title,Q=()=>{if(d&&u&&!o&&!y)return(0,Wo.jsxs)("div",{className:"block-editor-url-popover__expand-on-click",children:[(0,Wo.jsx)(xt,{icon:lP}),(0,Wo.jsxs)("div",{className:"text",children:[(0,Wo.jsx)("p",{children:(0,na.__)("Enlarge on click")}),(0,Wo.jsx)("p",{className:"description",children:(0,na.__)("Scales the image with a lightbox effect")})]}),(0,Wo.jsx)(Vn.Button,{icon:Os,label:(0,na.__)("Disable enlarge on click"),onClick:()=>{f?.(!1)},size:"compact"})]});if(!o||y)return(0,Wo.jsx)(wh.LinkEditor,{className:"block-editor-url-popover__link-container-content",value:D,onChangeInputValue:k,onSubmit:A(),autocompleteRef:x});if(o&&!y)return(0,Wo.jsxs)(Wo.Fragment,{children:[(0,Wo.jsx)(wh.LinkViewer,{className:"block-editor-url-popover__link-container-content",url:o,onEditLinkClick:E,urlLabel:J}),(0,Wo.jsx)(Vn.Button,{icon:Os,label:(0,na.__)("Remove link"),onClick:()=>{P(),p?.()},size:"compact"})]})};return(0,Wo.jsxs)(Wo.Fragment,{children:[(0,Wo.jsx)(Vn.ToolbarButton,{icon:As,className:"components-toolbar__control",label:(0,na.__)("Link"),"aria-expanded":m,onClick:v,ref:b,isActive:!!o||d&&u}),m&&(0,Wo.jsx)(wh,{ref:C,anchor:h,onFocusOutside:O(),onClose:S,renderSettings:z?()=>j:null,additionalControls:$&&(0,Wo.jsxs)(Vn.NavigableMenu,{children:[L().map(W=>(0,Wo.jsx)(Vn.MenuItem,{icon:W.icon,iconPosition:"left",onClick:()=>{k(null),H(W.url),R()},children:W.title},W.linkDestination)),u&&(0,Wo.jsx)(Vn.MenuItem,{className:"block-editor-url-popover__expand-on-click",icon:lP,info:(0,na.__)("Scale the image with a lightbox effect."),iconPosition:"left",onClick:()=>{k(null),t({linkDestination:HX,href:""}),f?.(!0),R()},children:(0,na.__)("Enlarge on click")},"expand-on-click")]}),offset:13,children:Q()})]})};var zS=c(q(),1),uOe=c(F(),1),J6=c(Z(),1);var X2e=c(F(),1),UX=c(Z(),1);var WX=[],Qst=new Intl.Collator("und",{numeric:!0}).compare;function X6(){let[e,t,o,r]=je("spacing.spacingSizes.custom","spacing.spacingSizes.theme","spacing.spacingSizes.default","spacing.defaultSpacingSizes"),n=e??WX,i=t??WX,s=o&&r!==!1?o:WX;return(0,X2e.useMemo)(()=>{let a=[{name:(0,UX.__)("None"),slug:"0",size:0},...n,...i,...s];return a.every(({slug:l})=>/^[0-9]/.test(l))&&a.sort((l,u)=>Qst(l.slug,u.slug)),a.length>Jre?[{name:(0,UX.__)("Default"),slug:"default",size:void 0},...a]:a},[n,i,s])}var Q2e=c(F(),1),J2e=c(ee(),1),Q6=c(Z(),1),eOe=c(q(),1);var tOe=c(T(),1),Jst={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rm:{max:10,steps:.1},svw:{max:100,steps:1},lvw:{max:100,steps:1},dvw:{max:100,steps:1},svh:{max:100,steps:1},lvh:{max:100,steps:1},dvh:{max:100,steps:1},vi:{max:100,steps:1},svi:{max:100,steps:1},lvi:{max:100,steps:1},dvi:{max:100,steps:1},vb:{max:100,steps:1},svb:{max:100,steps:1},lvb:{max:100,steps:1},dvb:{max:100,steps:1},vmin:{max:100,steps:1},svmin:{max:100,steps:1},lvmin:{max:100,steps:1},dvmin:{max:100,steps:1},vmax:{max:100,steps:1},svmax:{max:100,steps:1},lvmax:{max:100,steps:1},dvmax:{max:100,steps:1}};function FS({icon:e,isMixed:t=!1,minimumCustomValue:o,onChange:r,onMouseOut:n,onMouseOver:i,showSideInLabel:s=!0,side:a,spacingSizes:l,type:u,value:d,...f}){let p=(0,J2e.useSelect)(w=>w(B).getSettings()?.disableCustomSpacingSizes),[m]=je("spacing.units"),g=(0,eOe.__experimentalUseCustomUnits)({availableUnits:m||["px","em","rem"]}),h=(0,Q2e.useMemo)(()=>l?.map(w=>({name:w.name,slug:w.slug,size:w.size}))||[],[l]),b=(Nm.includes(a)||["vertical","horizontal"].includes(a))&&s?Gu[a]:"",v=s?u?.toLowerCase():u,y=(0,Q6.sprintf)((0,Q6._x)("%1$s %2$s","spacing"),b,v).trim(),_=g[0]?.value||"px";return(0,tOe.jsx)(dv,{allowNegativeOnDrag:o<0,ariaLabel:y,className:"spacing-sizes-control",customValueSettings:Jst,disableCustomValues:p,icon:e,isMixed:t,minimumCustomValue:o,onChange:r,onMouseOut:n,onMouseOver:i,presets:h,presetType:"spacing",selectedUnit:_,units:g,value:d,...f})}var $R=c(T(),1),oOe=["vertical","horizontal"];function rOe({minimumCustomValue:e,onChange:t,onMouseOut:o,onMouseOver:r,sides:n,spacingSizes:i,type:s,values:a}){let l=d=>f=>{if(!t)return;let p={...Object.keys(a).reduce((m,g)=>(m[g]=nw(a[g],i),m),{})};d==="vertical"&&(p.top=f,p.bottom=f),d==="horizontal"&&(p.left=f,p.right=f),t(p)},u=n?.length?oOe.filter(d=>lH(n,d)):oOe;return(0,$R.jsx)($R.Fragment,{children:u.map(d=>{let f=d==="vertical"?a.top:a.left;return(0,$R.jsx)(FS,{icon:X2[d],label:Gu[d],minimumCustomValue:e,onChange:l(d),onMouseOut:o,onMouseOver:r,side:d,spacingSizes:i,type:s,value:f,withInputField:!1},`spacing-sizes-control-${d}`)})})}var YR=c(T(),1);function nOe({minimumCustomValue:e,onChange:t,onMouseOut:o,onMouseOver:r,sides:n,spacingSizes:i,type:s,values:a}){let l=n?.length?Nm.filter(d=>n.includes(d)):Nm,u=d=>f=>{let p={...Object.keys(a).reduce((m,g)=>(m[g]=nw(a[g],i),m),{})};p[d]=f,t(p)};return(0,YR.jsx)(YR.Fragment,{children:l.map(d=>(0,YR.jsx)(FS,{icon:X2[d],label:Gu[d],minimumCustomValue:e,onChange:u(d),onMouseOut:o,onMouseOver:r,side:d,spacingSizes:i,type:s,value:a[d],withInputField:!1},`spacing-sizes-control-${d}`))})}var iOe=c(T(),1);function sOe({minimumCustomValue:e,onChange:t,onMouseOut:o,onMouseOver:r,showSideInLabel:n,side:i,spacingSizes:s,type:a,values:l}){let u=d=>f=>{let p={...Object.keys(l).reduce((m,g)=>(m[g]=nw(l[g],s),m),{})};p[d]=f,t(p)};return(0,iOe.jsx)(FS,{label:Gu[i],minimumCustomValue:e,onChange:u(i),onMouseOut:o,onMouseOver:r,showSideInLabel:n,side:i,spacingSizes:s,type:a,value:l[i],withInputField:!1})}var aOe=c(q(),1);var GX=c(Z(),1),lOe=c(T(),1);function cOe({isLinked:e,...t}){let o=e?(0,GX.__)("Unlink sides"):(0,GX.__)("Link sides");return(0,lOe.jsx)(aOe.Button,{...t,size:"small",icon:e?As:Os,iconSize:24,label:o})}var Vd=c(T(),1);function jS({inputProps:e,label:t,minimumCustomValue:o=0,onChange:r,onMouseOut:n,onMouseOver:i,showSideInLabel:s=!0,sides:a=Nm,useSelect:l,values:u}){let d=X6(),f=u||ene,p=a?.length===1,m=a?.includes("horizontal")&&a?.includes("vertical")&&a?.length===2,[g,h]=(0,uOe.useState)(one(f,a)),b=()=>{h(g===Ef.axial?Ef.custom:Ef.axial)},y={...e,minimumCustomValue:o,onChange:x=>{let C={...u,...x};r(C)},onMouseOut:n,onMouseOver:i,sides:a,spacingSizes:d,type:t,useSelect:l,values:f},_=()=>g===Ef.axial?(0,Vd.jsx)(rOe,{...y}):g===Ef.custom?(0,Vd.jsx)(nOe,{...y}):(0,Vd.jsx)(sOe,{side:g,...y,showSideInLabel:s}),w=Nm.includes(g)&&s?Gu[g]:"",k=(0,J6.sprintf)((0,J6._x)("%1$s %2$s","spacing control label"),t,w).trim();return(0,Vd.jsxs)("fieldset",{className:"spacing-sizes-control",children:[(0,Vd.jsxs)(zS.__experimentalHStack,{className:"spacing-sizes-control__header",children:[(0,Vd.jsx)(zS.BaseControl.VisualLabel,{as:"legend",className:"spacing-sizes-control__label",children:k}),!p&&!m&&(0,Vd.jsx)(cOe,{label:t,onClick:b,isLinked:g===Ef.axial})]}),(0,Vd.jsx)(zS.__experimentalVStack,{spacing:.5,children:_()})]})}var dOe=c(Nt(),1);function fOe(){return(0,dOe.default)("wp.blockEditor.PreviewOptions",{version:"6.5"}),null}var pOe=c(Nt(),1);function mOe(){(0,pOe.default)("wp.blockEditor.useResizeCanvas",{since:"7.1",hint:"Device preview is now handled by the editor canvas. This hook no longer does anything."})}var Ei=c(Z(),1),r0=c(ce(),1),n0=c(q(),1),fB=c(ee(),1),aMe=c(F(),1);var $X=c(q(),1);var e4=c(Z(),1),t4=c(ee(),1),o4=c(ce(),1);var Iv=c(T(),1);function eat({attributes:e={},onNavigateToEntityRecord:t,isTemplatePartBlock:o}){let{ref:r,theme:n,slug:i}=e,s=o?n&&i&&`${n}//${i}`:r;return(0,Iv.jsx)($e,{direction:"column",className:"block-editor-block-inspector-edit-contents",children:(0,Iv.jsx)($X.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{s&&t({postId:s,postType:o?"wp_template_part":"wp_block"})},accessibleWhenDisabled:!0,disabled:!s,children:(0,e4.__)("Edit original")})})}function tat({clientId:e,editedContentOnlySection:t,editContentOnlySection:o,stopEditingContentOnlySection:r}){let{selectBlock:n}=(0,t4.useDispatch)(B);return(0,Iv.jsx)($e,{direction:"column",className:"block-editor-block-inspector-edit-contents",children:(0,Iv.jsx)($X.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{t?(r(),n(e)):(o(e),n(e))},children:t?(0,e4.__)("Exit pattern"):(0,e4.__)("Edit pattern")})})}function gOe({clientId:e}){let{isWithinSection:t,isWithinEditedSection:o,editedContentOnlySection:r,editContentOnlySection:n,stopEditingContentOnlySection:i}=Y3(e),{block:s,onNavigateToEntityRecord:a,canEdit:l}=(0,t4.useSelect)(p=>{let{getBlock:m,getSettings:g,canEditBlock:h}=p(B);return{block:m(e),onNavigateToEntityRecord:g().onNavigateToEntityRecord,canEdit:h(e)}},[e]);if(!l||!t&&!o)return null;let u=(0,o4.isReusableBlock)(s),d=(0,o4.isTemplatePart)(s);return(u||d)&&a?(0,Iv.jsx)(eat,{attributes:s?.attributes,onNavigateToEntityRecord:a,isTemplatePartBlock:d}):(0,Iv.jsx)(tat,{clientId:e,editedContentOnlySection:r,editContentOnlySection:n,stopEditingContentOnlySection:i})}var hOe=c(ee(),1),bOe=c(Z(),1),yOe=c(q(),1),vOe=c(F(),1);var _Oe=c(T(),1);function r4(){let e=(0,hOe.useSelect)(r=>r(B).getBlockSelectionStart(),[]),t=(0,vOe.useRef)();return Nb(e,t),e?(0,_Oe.jsx)(yOe.Button,{__next40pxDefaultSize:!0,variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{t.current?.focus()},children:(0,bOe.__)("Skip to the selected block")}):null}var HS=c(Z(),1),wOe=c(ee(),1);var Pv=c(T(),1);function YX(){let{selectedBlockCount:e,totalBlockCount:t}=(0,wOe.useSelect)(o=>{let{getSelectedBlockCount:r,getMultiSelectedBlockClientIds:n,getClientIdsOfDescendants:i}=o(B),s=r();return{selectedBlockCount:s,totalBlockCount:s+i(n()).length}},[]);return(0,Pv.jsxs)($e,{direction:"row",align:"center",justify:"flex-start",gap:"sm",className:"block-editor-multi-selection-inspector__card",children:[(0,Pv.jsx)(Lt,{icon:mb,showColors:!0}),(0,Pv.jsxs)($e,{direction:"column",children:[(0,Pv.jsx)("div",{className:"block-editor-multi-selection-inspector__card-title",children:(0,HS.sprintf)((0,HS._n)("%d Block","%d Blocks",e),e)}),t>e&&(0,Pv.jsx)("div",{className:"block-editor-multi-selection-inspector__card-description",children:(0,HS.sprintf)((0,HS._n)("%d including nested block","%d including nested blocks",t),t)})]})]})}var kOe=c(q(),1),oat=Symbol("BlockInspectorPreTabs"),{Fill:b0o,Slot:xOe}=(0,kOe.createSlotFill)(oat);var W4=c(q(),1),gu=c(F(),1),qAe=c($_(),1),t0=c(ee(),1);var KR=c(Z(),1),n4={name:"settings",title:(0,KR.__)("Settings"),value:"settings",icon:e7},i4={name:"styles",title:(0,KR.__)("Styles"),value:"styles",icon:Yz},s4={name:"content",title:(0,KR.__)("Content"),value:"content",icon:_b},Np={name:"list",title:(0,KR.__)("List View"),value:"list-view",icon:xC};var KX=c(q(),1);var qR=c(q(),1),SOe=c(Z(),1);var ZR=c(T(),1),rat=({initialOpen:e=!1})=>{let t=(0,qR.__experimentalUseSlotFills)(Wg.slotName),o=(0,qR.__experimentalUseSlotFills)(YT.name),r=!!(t&&t.length),n=!!(o&&o.length);return!r&&!n?null:(0,ZR.jsxs)(qR.PanelBody,{className:"block-editor-block-inspector__advanced",title:(0,SOe.__)("Advanced"),initialOpen:e,children:[(0,ZR.jsx)(Ve.Slot,{group:"advanced"}),(0,ZR.jsx)(YT.Slot,{})]})},a4=rat;var Lp=c(T(),1),nat=({showAdvancedControls:e=!1})=>{let t=(0,KX.__experimentalUseSlotFills)(Zc.default.name),o=(0,KX.__experimentalUseSlotFills)(Zc.bindings.name),r=!!t?.length||!!o?.length;return(0,Lp.jsxs)(Lp.Fragment,{children:[(0,Lp.jsx)(Ve.Slot,{}),(0,Lp.jsx)(Ve.Slot,{group:"bindings"}),e&&(0,Lp.jsx)("div",{children:(0,Lp.jsx)(a4,{initialOpen:!r})})]})},COe=nat;var Hp=c(Z(),1),F4=c(ee(),1),EQ=c(F(),1);var WS=c(q(),1),l4=c(ee(),1),qX=c(Z(),1);var XR=c(T(),1),iat=()=>{let{selectedClientIds:e,selectedBlocks:t,hasPositionAttribute:o}=(0,l4.useSelect)(s=>{let{getBlocksByClientId:a,getSelectedBlockClientIds:l}=s(B),u=l(),d=a(u);return{selectedClientIds:u,selectedBlocks:d,hasPositionAttribute:d?.some(({attributes:f})=>!!f?.style?.position?.type)}},[]),{updateBlockAttributes:r}=(0,l4.useDispatch)(B),n=Vr();function i(){if(!e?.length||!t?.length)return;let s=Object.fromEntries(t?.map(({clientId:a,attributes:l})=>[a,{style:Xe({...l?.style,position:{...l?.style?.position,type:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0}})}]));r(e,s,!0)}return(0,XR.jsx)(WS.__experimentalToolsPanel,{className:"block-editor-block-inspector__position",label:(0,qX.__)("Position"),resetAll:i,dropdownMenuProps:n,children:(0,XR.jsx)(WS.__experimentalToolsPanelItem,{isShownByDefault:o,label:(0,qX.__)("Position"),hasValue:()=>o,onDeselect:i,children:(0,XR.jsx)(Ve.Slot,{group:"position"})})})},sat=()=>{let e=(0,WS.__experimentalUseSlotFills)(Zc.position.name);return!(e&&e.length)?null:(0,XR.jsx)(iat,{})},c4=sat;var fQ=c(ce(),1),C4=c(F(),1),iAe=c(ee(),1),sAe=c(Z(),1);var IOe=c(q(),1),f4=c(F(),1),Ci=c(Z(),1),POe=c(F_(),1);var xn=c(q(),1),ROe=c(F(),1),ZX=c(Z(),1);var US=c(q(),1);var EOe=c(Z(),1),Eh=c(T(),1),Fn=()=>!!window.__experimentalGlobalStylesInheritanceUI;function ec(e,t,o){let r=!!e&&!t,n=Y(o,{"is-inherited-from-global-styles":r,"has-local-override-from-global-styles":!!t});return{...n?{className:n}:{},isInherited:r,hasLocalOverride:!!t}}function Dp({onResetToInherited:e,className:t}){return(0,Eh.jsxs)(US.Button,{__next40pxDefaultSize:!1,label:(0,EOe.__)("Reset to inherited value"),showTooltip:!0,className:Y("has-local-override-from-global-styles__reset",t),onClick:o=>{o.preventDefault(),o.stopPropagation(),e?.()},children:[(0,Eh.jsx)("span",{"aria-hidden":"true",className:"has-local-override-from-global-styles__dot"}),(0,Eh.jsx)(US.Icon,{className:"has-local-override-from-global-styles__reset-icon",icon:In})]})}function Yt({className:e,isInherited:t,hasLocalOverride:o,label:r,onDeselect:n,showLocalOverrideActionsInLabel:i=!0,hasInlineEndToggle:s=!1,children:a,...l}){return(0,Eh.jsxs)(US.__experimentalToolsPanelItem,{className:e,label:r,onDeselect:n,...l,children:[a,o&&i&&(0,Eh.jsx)("div",{className:Y("global-styles-inheritance-affordance",{"global-styles-inheritance-affordance--offset-toggle":s}),children:(0,Eh.jsx)(Dp,{onResetToInherited:n})})]})}var Mo=c(T(),1),{Tabs:u4}=K(xn.privateApis);function aat({tabs:e,colorGradientControlSettings:t,contrastWarning:o}){let{key:r,...n}=e[0]??{},i=(e.find(s=>s.userValue!==void 0)??e.find(s=>s.isPlaceholder||s.inheritedValue!==void 0))?.key;return(0,Mo.jsx)(xn.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,Mo.jsxs)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:[e.length===1&&(0,Mo.jsx)(TOe,{...n,colorGradientControlSettings:t,contrastWarning:o},r),e.length>1&&(0,Mo.jsxs)(u4,{defaultTabId:i,children:[(0,Mo.jsx)(u4.TabList,{children:e.map(s=>(0,Mo.jsx)(u4.Tab,{tabId:s.key,children:s.label},s.key))}),e.map(s=>{let{key:a,...l}=s;return(0,Mo.jsx)(u4.TabPanel,{tabId:a,focusable:!1,children:(0,Mo.jsx)(TOe,{...l,colorGradientControlSettings:t,contrastWarning:o},a)},a)})]})]})})}var lat={placement:"left-start",offset:36,shift:!0},cat=({indicators:e,label:t})=>(0,Mo.jsxs)(xn.__experimentalHStack,{justify:"flex-start",children:[(0,Mo.jsx)(xn.__experimentalZStack,{isLayered:!1,offset:-8,children:e.map((o,r)=>(0,Mo.jsx)(xn.Flex,{expanded:!1,children:(0,Mo.jsx)(xn.ColorIndicator,{colorValue:o})},r))}),(0,Mo.jsx)(xn.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",children:t})]});function TOe({isGradient:e,inheritedValue:t,inheritedSlug:o,userSlug:r,userValue:n,setValue:i,isPlaceholder:s,colorGradientControlSettings:a,contrastWarning:l}){let u=n??t,d=n!==void 0?r:o,f=(p,m)=>{if(s&&p===void 0){i(t,o);return}i(p,m)};return(0,Mo.jsx)(fh,{...a,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:e?void 0:u,colorSlug:e?void 0:d,gradientValue:e?u:void 0,gradientSlug:e?d:void 0,onColorChange:e?void 0:f,onGradientChange:e?f:void 0,clearable:n!==void 0,headingLevel:3,noticeProps:!e&&l?{children:l,status:"warning",spokenMessage:null,className:"block-editor-panel-color-gradient-settings__contrast-notice"}:void 0})}function Th({label:e,hasValue:t,resetValue:o,isShownByDefault:r,indicators:n,tabs:i,colorGradientControlSettings:s,panelId:a,contrastWarning:l,className:u="block-editor-tools-panel-color-gradient-settings__item",isPlaceholder:d=!1,hasInheritedValue:f=!1,showInheritanceLabelIndicators:p=Fn()}){let m=(0,ROe.useRef)(void 0),g=Y("block-editor-color-gradient-item",u),h=p&&t()&&f,b=p?ec(d,h,g):{className:g};return(0,Mo.jsx)(Yt,{...b,showLocalOverrideActionsInLabel:!1,hasValue:t,label:e,onDeselect:o,isShownByDefault:r,panelId:a,children:(0,Mo.jsx)(xn.Dropdown,{popoverProps:lat,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:v,isOpen:y})=>{let _={onClick:v,className:Y("block-editor-panel-color-gradient-settings__dropdown",{"is-open":y,"has-contrast-warning":!!l}),"aria-expanded":y,ref:m};return(0,Mo.jsxs)(Mo.Fragment,{children:[(0,Mo.jsx)(xn.Button,{..._,__next40pxDefaultSize:!0,children:(0,Mo.jsx)(cat,{indicators:n,label:e})}),t()&&(h?(0,Mo.jsx)(Dp,{className:"block-editor-panel-color-gradient-settings__reset",onResetToInherited:()=>{o(),y&&v(),m.current?.focus()}}):(0,Mo.jsx)(xn.Button,{__next40pxDefaultSize:!0,label:(0,ZX.__)("Reset"),className:"block-editor-panel-color-gradient-settings__reset",size:"small",icon:In,onClick:()=>{o(),y&&v(),m.current?.focus()}})),l&&(0,Mo.jsx)(xn.Button,{__next40pxDefaultSize:!0,size:"small",icon:U9,label:(0,ZX.__)("Low contrast"),className:"block-editor-panel-color-gradient-settings__contrast-warning","aria-expanded":y,onClick:v})]})},renderContent:()=>(0,Mo.jsx)(aat,{tabs:i,colorGradientControlSettings:s,contrastWarning:l})})})}var QR=c(F(),1),BOe=c(ee(),1),XX=c(ce(),1),Ov=c(Z(),1);function d4(e,t,o){let{supportedStyles:r,supports:n}=(0,BOe.useSelect)(i=>({supportedStyles:K(i(XX.store)).getSupportedStyles(t,o),supports:i(XX.store).getBlockType(t)?.supports}),[t,o]);return(0,QR.useMemo)(()=>{let i={...e};return r.includes("fontSize")||(i.typography={...i.typography,fontSizes:{},customFontSize:!1,defaultFontSizes:!1}),r.includes("fontFamily")||(i.typography={...i.typography,fontFamilies:{}}),i.color={...i.color,text:i.color?.text&&r.includes("color"),background:i.color?.background&&(r.includes("background")||r.includes("backgroundColor")),button:i.color?.button&&r.includes("buttonColor"),heading:i.color?.heading&&r.includes("headingColor"),link:i.color?.link&&r.includes("linkColor"),caption:i.color?.caption&&r.includes("captionColor")},!r.includes("background")&&!r.includes("backgroundGradient")&&(i.color.gradients=[],i.color.customGradient=!1),r.includes("filter")||(i.color.defaultDuotone=!1,i.color.customDuotone=!1),["lineHeight","fontStyle","fontWeight","letterSpacing","textAlign","textTransform","textDecoration","textIndent","writingMode"].forEach(s=>{r.includes(s)||(i.typography={...i.typography,[s]:!1})}),r.includes("textIndent")&&(i.typography={...i.typography,textIndent:i.typography?.textIndent??"subsequent"}),r.includes("columnCount")||(i.typography={...i.typography,textColumns:!1}),["contentSize","wideSize"].forEach(s=>{r.includes(s)||(i.layout={...i.layout,[s]:!1})}),["padding","margin","blockGap"].forEach(s=>{r.includes(s)||(i.spacing={...i.spacing,[s]:!1});let a=Array.isArray(n?.spacing?.[s])?n?.spacing?.[s]:n?.spacing?.[s]?.sides;a?.length&&i.spacing?.[s]&&(i.spacing={...i.spacing,[s]:{...i.spacing?.[s],sides:a}})}),["aspectRatio","height","minHeight","minWidth","width"].forEach(s=>{r.includes(s)||(i.dimensions={...i.dimensions,[s]:!1})}),["radius","color","style","width"].forEach(s=>{r.includes("border"+s.charAt(0).toUpperCase()+s.slice(1))||(i.border={...i.border,[s]:!1})}),[["backgroundImage","backgroundImage"],["backgroundSize","backgroundSize"],["backgroundGradient","gradient"]].forEach(([s,a])=>{r.includes(s)||(i.background={...i.background,[a]:!1})}),i.shadow=r.includes("shadow")?i.shadow:!1,i},[e,r,n])}function Fd(e){let t=e?.color?.palette?.custom,o=e?.color?.palette?.theme,r=e?.color?.palette?.default,n=e?.color?.defaultPalette;return(0,QR.useMemo)(()=>{let i=[];return o&&o.length&&i.push({name:(0,Ov._x)("Theme","Indicates this palette comes from the theme."),colors:o}),n&&r&&r.length&&i.push({name:(0,Ov._x)("Default","Indicates this palette comes from WordPress."),colors:r}),t&&t.length&&i.push({name:(0,Ov._x)("Custom","Indicates this palette is created by the user."),colors:t}),i},[t,o,r,n])}function JR(e){let t=e?.color?.gradients?.custom,o=e?.color?.gradients?.theme,r=e?.color?.gradients?.default,n=e?.color?.defaultGradients;return(0,QR.useMemo)(()=>{let i=[];return o&&o.length&&i.push({name:(0,Ov._x)("Theme","Indicates this palette comes from the theme."),gradients:o}),n&&r&&r.length&&i.push({name:(0,Ov._x)("Default","Indicates this palette comes from WordPress."),gradients:r}),t&&t.length&&i.push({name:(0,Ov._x)("Custom","Indicates this palette is created by the user."),gradients:t}),i},[t,o,r,n])}function GS(e){let t=Fd(e),o=JR(e),r=e?.color?.custom,n=e?.color?.customGradient,i=(0,QR.useMemo)(()=>t.flatMap(({colors:l})=>l),[t]),s=l=>ol({settings:e},"",l),a=(l,u)=>{if(u)return"var:preset|gradient|"+u;let f=o.flatMap(({gradients:p})=>p).find(({gradient:p})=>p===l);return f?"var:preset|gradient|"+f.slug:l};return{colors:t,gradients:o,allColors:i,areCustomSolidsEnabled:r,areCustomGradientsEnabled:n,hasSolidColors:t.length>0||r,hasGradientColors:o.length>0||n,decodeValue:s,encodeGradientValue:a}}function Uo(e,t){if(typeof e!="string")return;let o=`var:preset|${t}|`;if(e.startsWith(o))return e.slice(o.length);let r=`--wp--preset--${t}--`;return e.match(new RegExp(`^var\\(${r}([^)]+)\\)$`))?.[1]}function Vp(e,t,o){if(o)return"var:preset|color|"+o;let r=e.find(({color:n})=>n===t);return r?"var:preset|color|"+r.slug:t}var $S=c(T(),1);function p4(e){let t=OOe(e),o=MOe(e),r=NOe(e),n=AOe(e);return t||o||r||n}function QX(e){let t=Fd(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function OOe(e){let t=Fd(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function AOe(e){let t=Fd(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function MOe(e){let t=Fd(e),o=JR(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function NOe(e){let t=Fd(e),o=JR(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function JX(e){let t=Fd(e),o=JR(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function eQ({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,label:i}){let s=Vr(),a=()=>{let l=e(o);t(l)};return(0,$S.jsx)(IOe.__experimentalToolsPanel,{label:i||(0,Ci.__)("Elements"),resetAll:a,panelId:r,hasInnerWrapper:!0,headingLevel:3,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:s,children:(0,$S.jsx)("div",{className:"color-block-support-panel__inner-wrapper",children:n})})}var uat={link:!0,heading:!0,button:!0,caption:!0};function m4({as:e=eQ,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=uat,label:a,children:l,contrastWarning:u,additionalElements:d,showInheritanceLabelIndicators:f=Fn()}){let{colors:p,gradients:m,areCustomSolidsEnabled:g,areCustomGradientsEnabled:h,hasSolidColors:b,hasGradientColors:v,allColors:y,decodeValue:_,encodeGradientValue:w}=GS(n),k=D=>(0,POe.getCSSValueFromRawStyle)(_(D)),x=OOe(n),C=k(r?.elements?.link?.color?.text),E=_(t?.elements?.link?.color?.text),R=(D,z)=>{o(Ue(t,["elements","link","color","text"],Vp(y,D,z)))},S=k(r?.elements?.link?.[":hover"]?.color?.text),I=_(t?.elements?.link?.[":hover"]?.color?.text),O=(D,z)=>{o(Ue(t,["elements","link",":hover","color","text"],Vp(y,D,z)))},A=()=>!!E||!!I,P=()=>{let D=Ue(t,["elements","link",":hover","color","text"],void 0);D=Ue(D,["elements","link","color","text"],void 0),o(D)},L=AOe(n),H=NOe(n),N=MOe(n),M=(0,f4.useMemo)(()=>[{name:"caption",label:(0,Ci.__)("Captions"),showPanel:L},{name:"button",label:(0,Ci.__)("Button"),showPanel:H},{name:"heading",label:(0,Ci.__)("Heading"),showPanel:N},{name:"h1",label:(0,Ci.__)("H1"),showPanel:N},{name:"h2",label:(0,Ci.__)("H2"),showPanel:N},{name:"h3",label:(0,Ci.__)("H3"),showPanel:N},{name:"h4",label:(0,Ci.__)("H4"),showPanel:N},{name:"h5",label:(0,Ci.__)("H5"),showPanel:N},{name:"h6",label:(0,Ci.__)("H6"),showPanel:N},...d?.map(D=>({...D,showPanel:b||v}))??[]],[d,v,b,L,H,N]),V=(0,f4.useCallback)(D=>({...D,elements:{...D?.elements,link:{...D?.elements?.link,color:void 0,":hover":{color:void 0}},...M.reduce((z,$)=>({...z,[$.name]:{...D?.elements?.[$.name],color:void 0}}),{})}}),[M]),j=[x&&{key:"link",label:(0,Ci.__)("Link"),hasValue:A,resetValue:P,isShownByDefault:s.link,indicators:[E??C,I??S],isPlaceholder:E===void 0&&I===void 0&&(C!==void 0||S!==void 0),hasInheritedValue:C!==void 0||S!==void 0,contrastWarning:u,tabs:[{key:"link",label:(0,Ci.__)("Default"),inheritedValue:C,inheritedSlug:Uo(r?.elements?.link?.color?.text,"color"),userSlug:Uo(t?.elements?.link?.color?.text,"color"),setValue:R,userValue:E,isPlaceholder:E===void 0&&C!==void 0},{key:"hover",label:(0,Ci.__)("Hover"),inheritedValue:S,inheritedSlug:Uo(r?.elements?.link?.[":hover"]?.color?.text,"color"),userSlug:Uo(t?.elements?.link?.[":hover"]?.color?.text,"color"),setValue:O,userValue:I,isPlaceholder:I===void 0&&S!==void 0}]}].filter(Boolean);return M.forEach(({name:D,label:z,showPanel:$})=>{if(!$)return;let J=k(r?.elements?.[D]?.color?.background),Q=k(r?.elements?.[D]?.color?.gradient),W=k(r?.elements?.[D]?.color?.text),X=_(t?.elements?.[D]?.color?.background),U=_(t?.elements?.[D]?.color?.gradient),G=_(t?.elements?.[D]?.color?.text),te=()=>!!(G||X||U),re=()=>{let Se=Ue(t,["elements",D,"color","background"],void 0);Se.elements[D].color.gradient=void 0,Se.elements[D].color.text=void 0,o(Se)},ae=(Se,fe)=>{o(Ue(t,["elements",D,"color","text"],Vp(y,Se,fe)))},ie=(Se,fe)=>{let Ce=Ue(t,["elements",D,"color","background"],Vp(y,Se,fe));Ce.elements[D].color.gradient=void 0,o(Ce)},be=(Se,fe)=>{let Ce=Ue(t,["elements",D,"color","gradient"],w(Se,fe));Ce.elements[D].color.background=void 0,o(Ce)},pe=D!=="caption",ke=G===void 0&&W!==void 0,ye=X===void 0&&J!==void 0,Pe=U===void 0&&Q!==void 0,_e=G===void 0&&X===void 0&&U===void 0&&(W!==void 0||J!==void 0||Q!==void 0),ve=W!==void 0||J!==void 0||Q!==void 0;j.push({key:D,label:z,hasValue:te,resetValue:re,isShownByDefault:s[D],indicators:pe?[G??W,U??Q??X??J]:[G??W],isPlaceholder:_e,hasInheritedValue:ve,tabs:[b&&{key:"text",label:(0,Ci.__)("Text"),inheritedValue:W,inheritedSlug:Uo(r?.elements?.[D]?.color?.text,"color"),userSlug:Uo(t?.elements?.[D]?.color?.text,"color"),setValue:ae,userValue:G,isPlaceholder:ke},b&&pe&&{key:"background",label:(0,Ci.__)("Background"),inheritedValue:J,inheritedSlug:Uo(r?.elements?.[D]?.color?.background,"color"),userSlug:Uo(t?.elements?.[D]?.color?.background,"color"),setValue:ie,userValue:X,isPlaceholder:ye},v&&pe&&{key:"gradient",label:(0,Ci.__)("Gradient"),inheritedValue:Q,inheritedSlug:Uo(r?.elements?.[D]?.color?.gradient,"gradient"),userSlug:Uo(t?.elements?.[D]?.color?.gradient,"gradient"),setValue:be,userValue:U,isGradient:!0,isPlaceholder:Pe}].filter(Boolean)})}),(0,$S.jsxs)(e,{resetAllFilter:V,value:t,onChange:o,panelId:i,label:a,children:[j.map(D=>{let{key:z,...$}=D;return(0,$S.jsx)(Th,{...$,showInheritanceLabelIndicators:f,colorGradientControlSettings:{colors:p,disableCustomColors:!g,gradients:m,disableCustomGradients:!h},panelId:i},z)}),l]})}var nB=c(F(),1),rQ=c(ee(),1),VOe=c(ce(),1);var oB=c(ce(),1),eB=c(ee(),1),g4=c(F(),1);var tB=c(T(),1),{getVariationStyle:dat}=K(Lo),tQ="is-style-";function LOe(e){return e?e.split(/\s+/).reduce((t,o)=>{if(o.startsWith(tQ)){let r=o.slice(tQ.length);r!=="default"&&t.push(r)}return t},[]):[]}function rB(e,t=[]){let o=LOe(e);if(!o)return null;for(let r of o)if(t.some(n=>n.name===r))return r;return null}function fat({override:e}){Ga(e)}function oQ({config:e}){let{overrides:t}=(0,eB.useSelect)(n=>({overrides:K(n(B)).getStyleOverrides()}),[]),{getBlockName:o}=(0,eB.useSelect)(B),r=(0,g4.useMemo)(()=>{if(!t?.length)return;let n=[],i=[];for(let[,s]of t)if(s?.variation&&s?.clientId&&!i.includes(s.clientId)){let a=o(s.clientId),l=e?.styles?.blocks?.[a]?.variations?.[s.variation];if(l){let u={settings:e?.settings,styles:{blocks:{[a]:{variations:{[`${s.variation}-${s.clientId}`]:l}}}}},d=d2((0,oB.getBlockTypes)(),s.clientId),h=u2(u,d,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0});n.push({id:`${s.variation}-${s.clientId}`,css:h,__unstableType:"variation",variation:s.variation,clientId:s.clientId}),i.push(s.clientId)}}return n},[e,t,o]);return!r||!r.length?null:(0,tB.jsx)(tB.Fragment,{children:r.map(n=>(0,tB.jsx)(fat,{override:n},n.id))})}function pat(e,t,o){let{globalSettings:r,globalStyles:n}=(0,eB.useSelect)(i=>{let s=i(B).getSettings();return{globalSettings:s.__experimentalFeatures,globalStyles:s[Is]}},[]);return(0,g4.useMemo)(()=>{let i=dat({settings:r,styles:n},e,t);return{settings:r,styles:{blocks:{[e]:{variations:{[`${t}-${o}`]:i}}}}}},[r,n,t,o,e])}function mat({name:e,className:t,clientId:o}){let{getBlockStyles:r}=(0,eB.useSelect)(oB.store),n=r(e),i=rB(t,n),s=`${tQ}${i}-${o}`,{settings:a,styles:l}=pat(e,i,o),u=(0,g4.useMemo)(()=>{if(!i)return;let d={settings:a,styles:l},f=d2((0,oB.getBlockTypes)(),o);return u2(d,f,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0})},[i,a,l,o]);return Ga({id:`variation-${o}`,css:u,__unstableType:"variation",variation:i,clientId:o}),i?{className:s}:{}}var DOe={hasSupport:()=>!0,attributeKeys:["className"],isMatch:({className:e})=>LOe(e).length>0,useBlockProps:mat};var{resolveStyle:gat}=K(Lo),hat={value:void 0,sources:void 0};function bat(){let{rawGlobalStylesData:e,links:t}=(0,rQ.useSelect)(o=>{let r=o(B).getSettings();return{rawGlobalStylesData:r[Is]??null,links:r[c_]??null}},[]);return(0,nB.useMemo)(()=>e?{styles:e,_links:t??void 0}:null,[e,t])}var FOe={"core/accordion-heading":{contextKey:"core/accordion-heading-level",fallbackLevel:3}};function yat(e,t,o){let r=FOe[e];return r?t||o||r.fallbackLevel:t}function vat(e){let t=(0,nB.useContext)(Hn),o=FOe[e]?.contextKey;return o?t[o]:void 0}function _at(e,t){switch(e){case"core/button":return["button"];case"core/accordion-heading":case"core/heading":case"core/post-title":case"core/site-title":case"core/query-title":case"core/comments-title":case"core/term-name":case"core/site-tagline":return t===0?[]:t?["heading",`h${t}`]:["heading"];case"core/read-more":case"core/loginout":case"core/post-navigation-link":case"core/query-pagination-next":case"core/query-pagination-previous":case"core/query-pagination-numbers":case"core/comments-pagination-next":case"core/comments-pagination-previous":case"core/comments-pagination-numbers":case"core/comment-edit-link":case"core/comment-reply-link":case"core/post-comments-link":return["link"];default:return[]}}function wat(e,t){let{clientId:o}=kt(),r=vat(e);return(0,rQ.useSelect)(n=>{if(!e)return{variationName:null,headingLevel:void 0};let i=n(VOe.store).getBlockStyles(e),{level:s}=n(B).getBlockAttributes(o)||{};return{variationName:t?rB(t,i):null,headingLevel:yat(e,s,r)}},[e,t,o,r])}function tc(e,t,o=null){let{variationName:r,headingLevel:n}=wat(e,t),i=bat();return(0,nB.useMemo)(()=>Fn()?e?gat(i,{blockName:e,variationName:r,elements:_at(e,n),viewport:o?.viewport??null,pseudoState:o?.pseudo??null}):{value:{},sources:{}}:hat,[e,r,n,i,o])}var cQ=c(Bo(),1),qS=c(ce(),1),rAe=c(F(),1);var KS=c(ce(),1),JOe=c(ee(),1),eAe=c(Z(),1);var Av=c(F(),1),jOe=c(ee(),1),HOe=c(ce(),1);var WOe=c(Yo(),1);function h4(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function zOe(e,t){if(!e||!t)return{};let o=ha(t,"color.text",{fallback:!0}),r=ha(t,"color.background",{fallback:!0}),n=e.querySelector(o)||e,i=e.querySelector(r)||e,s=e.querySelector("a"),a=h4(n,"color"),l=s&&s.textContent?h4(s,"color"):void 0,u=i,d=h4(u,"background-color");for(;d==="rgba(0, 0, 0, 0)"&&u.parentNode&&u.parentNode.nodeType===u.parentNode.ELEMENT_NODE;)u=u.parentNode,d=h4(u,"background-color");return{textColor:a,backgroundColor:d,linkColor:l}}function kat(e,t){return Object.keys(t).some(r=>e[r]!==t[r])?t:e}function YS({clientId:e,name:t,enabled:o=!0,checkTextColor:r=!0,checkLinkColor:n=!0,messageOverride:i}){let s=Zt(e),[a,l]=(0,Av.useReducer)(kat,{}),u=(0,jOe.useSelect)(p=>t&&o?p(HOe.store).getBlockType(t):void 0,[t,o]);(0,Av.useLayoutEffect)(()=>{!o||!s||!u||window.requestAnimationFrame(()=>window.requestAnimationFrame(()=>l(zOe(s,u))))}),(0,Av.useLayoutEffect)(()=>{if(!o||!s||!u)return;let p=new window.MutationObserver(()=>{l(zOe(s,u))});return p.observe(s,{attributes:!0,attributeFilter:["class","style"],subtree:!0}),()=>{p.disconnect()}},[o,s,u]);let d=o?VZ({backgroundColor:a.backgroundColor,textColor:r?a.textColor:void 0,linkColor:n?a.linkColor:void 0,messageOverride:i,enableAlphaChecker:!0}):null,f=d?.speakMessage;return(0,Av.useEffect)(()=>{f&&(0,WOe.speak)(f)},[f]),d?.message}var XOe=c(q(),1),QOe=c(F(),1),zp=c(Z(),1);var Pt=c(q(),1);var Jo=c(Z(),1),GOe=c(Ns(),1),nQ=c(ma(),1),Fp=c(F(),1),sB=c(ee(),1),$Oe=c(Dt(),1),YOe=c(iq(),1);var yt=c(T(),1),b4="image",xat={placement:"left-start",offset:36,shift:!0,className:"block-editor-global-styles-background-panel__popover"},y4=()=>{},iB=e=>{window.requestAnimationFrame(()=>{let[t]=$Oe.focus.tabbable.find(e?.current);t&&t.focus()})};function Sat(e){return e==="cover"||e===void 0?(0,Jo.__)("Image covers the space evenly."):e==="contain"?(0,Jo.__)("Image is contained without distortion."):(0,Jo.__)("Image has a fixed width.")}var Cat=e=>{if(!e||isNaN(e.x)&&isNaN(e.y))return;let t=isNaN(e.x)?.5:e.x,o=isNaN(e.y)?.5:e.y;return`${t*100}% ${o*100}%`},Eat=e=>{if(!e)return{x:void 0,y:void 0};let[t,o]=e.split(" ").map(r=>parseFloat(r)/100);return t=isNaN(t)?void 0:t,o=isNaN(o)?t:o,{x:t,y:o}};function KOe({as:e="span",imgUrl:t,toggleProps:o={},filename:r,label:n,onToggleCallback:i=y4}){let{isOpen:s,...a}=o;(0,Fp.useEffect)(()=>{typeof s<"u"&&i(s)},[s,i]);let l=()=>(0,yt.jsxs)(Pt.__experimentalHStack,{className:"block-editor-global-styles-background-panel__inspector-preview-inner",children:[(0,yt.jsx)("span",{className:"block-editor-global-styles-background-panel__inspector-image-indicator",style:{backgroundImage:t?`url(${t})`:void 0}}),(0,yt.jsxs)(Pt.FlexBlock,{children:[(0,yt.jsx)(Pt.__experimentalTruncate,{numberOfLines:1,className:"block-editor-global-styles-background-panel__inspector-media-replace-title",children:n}),(0,yt.jsx)(ht,{render:(0,yt.jsx)("span",{}),children:t?(0,Jo.sprintf)((0,Jo.__)("Background image: %s"),r||n):(0,Jo.__)("No background image selected")})]})]});return e==="button"?(0,yt.jsx)(Pt.Button,{__next40pxDefaultSize:!0,...a,children:l()}):l()}function Tat({label:e,filename:t,url:o,children:r,onToggle:n=y4,hasImageValue:i,onReset:s,hasLocalOverride:a,containerRef:l}){if(!i)return;let u=e||(0,nQ.getFilename)(o)||(0,Jo.__)("Image");return(0,yt.jsx)(Pt.Dropdown,{popoverProps:xat,renderToggle:({onToggle:d,isOpen:f})=>{let p={onClick:d,className:"block-editor-global-styles-background-panel__dropdown-toggle","aria-expanded":f,"aria-label":(0,Jo.__)("Background size, position and repeat options."),isOpen:f};return(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(KOe,{imgUrl:o,filename:t,label:u,toggleProps:p,as:"button",onToggleCallback:n}),s&&(a?(0,yt.jsx)(Dp,{className:"block-editor-global-styles-background-panel__reset",onResetToInherited:()=>{s(),f&&d(),iB(l)}}):(0,yt.jsx)(Pt.Button,{__next40pxDefaultSize:!0,label:(0,Jo.__)("Reset"),className:"block-editor-global-styles-background-panel__reset",size:"small",icon:In,onClick:()=>{s(),f&&d(),iB(l)}}))]})},renderContent:()=>(0,yt.jsx)(Pt.__experimentalDropdownContentWrapper,{className:"block-editor-global-styles-background-panel__dropdown-content-wrapper",paddingSize:"medium",children:r})})}function Rat(){return(0,yt.jsx)(Pt.Placeholder,{className:"block-editor-global-styles-background-panel__loading",children:(0,yt.jsx)(Pt.Spinner,{})})}function UOe({onChange:e,style:t,inheritedValue:o,onRemoveImage:r=y4,onResetImage:n=y4,displayInPanel:i,defaultValues:s,containerRef:a}){let[l,u]=(0,Fp.useState)(!1),{getSettings:d}=(0,sB.useSelect)(B),{id:f,title:p,url:m}=t?.background?.backgroundImage||{...o?.background?.backgroundImage},{createErrorNotice:g}=(0,sB.useDispatch)(GOe.store),h=S=>{g(S,{type:"snackbar"}),u(!1)},b=()=>e(Ue(t,["background","backgroundImage"],void 0)),v=S=>{if(!S||!S.url){b(),u(!1);return}if((0,YOe.isBlobURL)(S.url)){u(!0);return}if(S.media_type&&S.media_type!==b4||!S.media_type&&S.type&&S.type!==b4){h((0,Jo.__)("Only images can be used as a background image."));return}let I=t?.background?.backgroundSize||s?.backgroundSize,O=t?.background?.backgroundPosition;e(Ue(t,["background"],{...t?.background,backgroundImage:{url:S.url,id:S.id,source:"file",title:S.title||void 0},backgroundPosition:!O&&(I==="auto"||!I)?"50% 0":O,backgroundSize:I})),u(!1),iB(a)},y=S=>{!S||S===m||e(Ue(t,["background"],{...t?.background,backgroundImage:{url:S,source:"url"}}))},_=S=>{d().mediaUpload({allowedTypes:[b4],filesList:S,onFileChange([I]){v(I)},onError:h,multiple:!1})},w=mu(t),k=()=>e(Ue(t,["background"],{backgroundImage:"none"})),x=!w&&mu(o),C=typeof t?.background?.backgroundImage=="string"?t.background.backgroundImage:m,E=/^https?:\/\//.test(C??"")?C:void 0,R=p||(0,nQ.getFilename)(m)||(0,Jo.__)("Image");return(0,yt.jsxs)("div",{className:"block-editor-global-styles-background-panel__image-tools-panel-item",children:[l&&(0,yt.jsx)(Rat,{}),(0,yt.jsx)(RS,{mediaId:f,mediaURL:E,allowedTypes:[b4],accept:"image/*",onSelect:v,onSelectURL:y,popoverProps:{className:Y({"block-editor-global-styles-background-panel__media-replace-popover":i})},name:(0,yt.jsx)(KOe,{imgUrl:m,filename:p,label:R}),renderToggle:S=>(0,yt.jsx)(Pt.Button,{...S,__next40pxDefaultSize:!0}),onError:h,onReset:()=>{iB(a),n()},children:x&&(0,yt.jsx)(Pt.MenuItem,{onClick:()=>{iB(a),k(),r()},children:(0,Jo.__)("Remove")})}),(0,yt.jsx)(Pt.DropZone,{onFilesDrop:_,label:(0,Jo.__)("Drop to upload")})]})}function Bat({onChange:e,style:t,inheritedValue:o,defaultValues:r}){let n=t?.background?.backgroundSize,i=t?.background?.backgroundRepeat,s=t?.background?.backgroundPosition,a=t?.background?.backgroundAttachment,l=o?.background?.backgroundSize,u=o?.background?.backgroundRepeat,d=o?.background?.backgroundPosition,f=o?.background?.backgroundAttachment,p=n||l,m=i||u,g=t?.background?.backgroundImage?.url||o?.background?.backgroundImage?.url,h=t?.background?.backgroundImage?.id,b=s||d,v=a||f,y=!p&&h?r?.backgroundSize:p||"auto";y=["cover","contain","auto"].includes(y)?y:"auto";let _=!(m==="no-repeat"||y==="cover"&&m===void 0),w=R=>{let S=m,I=b;R==="contain"&&(S="no-repeat",I=void 0),R==="cover"&&(S=void 0,I=void 0),(y==="cover"||y==="contain")&&R==="auto"&&(S=void 0,t?.background?.backgroundImage?.id&&(I="50% 0")),!R&&y==="auto"&&(R="auto"),e(Ue(t,["background"],{...t?.background,backgroundPosition:I,backgroundRepeat:S,backgroundSize:R}))},k=R=>{e(Ue(t,["background","backgroundPosition"],Cat(R)))},x=()=>e(Ue(t,["background","backgroundRepeat"],_===!0?"no-repeat":"repeat")),C=()=>e(Ue(t,["background","backgroundAttachment"],v==="fixed"?"scroll":"fixed")),E=!b&&h&&p==="contain"?r?.backgroundPosition:b;return(0,yt.jsxs)(Pt.__experimentalVStack,{spacing:3,className:"single-column",children:[(0,yt.jsx)(Pt.FocalPointPicker,{label:(0,Jo.__)("Focal point"),url:g,value:Eat(E),onChange:k}),(0,yt.jsx)(Pt.ToggleControl,{label:(0,Jo.__)("Fixed background"),checked:v==="fixed",onChange:C}),(0,yt.jsxs)(Pt.__experimentalToggleGroupControl,{label:(0,Jo.__)("Size"),value:y,onChange:w,isBlock:!0,help:Sat(p||r?.backgroundSize),children:[(0,yt.jsx)(Pt.__experimentalToggleGroupControlOption,{value:"cover",label:(0,Jo._x)("Cover","Size option for background image control")},"cover"),(0,yt.jsx)(Pt.__experimentalToggleGroupControlOption,{value:"contain",label:(0,Jo._x)("Contain","Size option for background image control")},"contain"),(0,yt.jsx)(Pt.__experimentalToggleGroupControlOption,{value:"auto",label:(0,Jo._x)("Tile","Size option for background image control")},"tile")]}),(0,yt.jsxs)(Pt.__experimentalHStack,{justify:"flex-start",spacing:2,as:"span",children:[(0,yt.jsx)(Pt.__experimentalUnitControl,{"aria-label":(0,Jo.__)("Background image width"),onChange:w,value:p,__unstableInputWidth:"100px",min:0,placeholder:(0,Jo.__)("Auto"),disabled:y!=="auto"||y===void 0}),(0,yt.jsx)(Pt.ToggleControl,{label:(0,Jo.__)("Repeat"),checked:_,onChange:x,disabled:y==="cover"})]})]})}function qOe({value:e,onChange:t,inheritedValue:o=e,settings:r,defaultValues:n={},showInheritanceLabelIndicators:i=Fn()}){let{globalStyles:s,_links:a}=(0,sB.useSelect)(w=>{let{getSettings:k}=w(B),x=k();return{globalStyles:x[Is],_links:x[c_]}},[]),l=(0,Fp.useMemo)(()=>{let w={background:{}};return o?.background?(Object.entries(o?.background).forEach(([k,x])=>{w.background[k]=_m(x,{styles:s,_links:a})}),w):o},[s,a,o]),u=()=>t(Ue(e,["background"],{gradient:e?.background?.gradient})),{title:d,url:f}=e?.background?.backgroundImage||{...l?.background?.backgroundImage},p=mu(e),m=p||mu(l),g=i&&p&&mu(l),h=e?.background?.backgroundImage||o?.background?.backgroundImage,b=m&&h!=="none"&&(r?.background?.backgroundSize||r?.background?.backgroundPosition||r?.background?.backgroundRepeat),[v,y]=(0,Fp.useState)(!1),_=(0,Fp.useRef)();return(0,yt.jsx)("div",{ref:_,className:Y("block-editor-global-styles-background-panel__inspector-media-replace-container",{"is-open":v}),children:b?(0,yt.jsx)(Tat,{label:d,filename:d,url:f,onToggle:y,hasImageValue:m,hasLocalOverride:g,onReset:p?u:void 0,containerRef:_,children:(0,yt.jsxs)(Pt.__experimentalVStack,{spacing:3,className:"single-column",children:[(0,yt.jsx)(UOe,{onChange:t,style:e,inheritedValue:l,displayInPanel:!0,onResetImage:()=>{y(!1),u()},onRemoveImage:()=>y(!1),defaultValues:n,containerRef:_}),(0,yt.jsx)(Bat,{onChange:t,style:e,defaultValues:n,inheritedValue:l})]})}):(0,yt.jsx)(UOe,{onChange:t,style:e,inheritedValue:l,defaultValues:n,onResetImage:()=>{y(!1),u()},onRemoveImage:()=>y(!1),containerRef:_})})}var zd=c(T(),1),Iat={backgroundImage:!0,backgroundColor:!0,gradient:!0};function ZOe(e,t){return e?.background?.[t]}function v4(e){let t=JX(e),{backgroundImage:o,gradient:r}=e?.background||{};return o||r||t}function mu(e){return!!e?.background?.backgroundImage?.id||typeof e?.background?.backgroundImage=="string"||!!e?.background?.backgroundImage?.url}function iQ(e){return typeof e?.background?.gradient=="string"&&e?.background?.gradient!==""}function Pat(e){return!!e?.color?.background}function Oat(e){return!!e?.color?.gradient}function sQ({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,headerLabel:i}){let s=Vr();return(0,zd.jsx)(XOe.__experimentalToolsPanel,{label:i,resetAll:()=>{let l=e(o);t(l)},panelId:r,hasInnerWrapper:!0,className:"background-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:s,children:(0,zd.jsx)("div",{className:"background-block-support-panel__inner-wrapper",children:n})})}function _4({as:e=sQ,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=Iat,defaultValues:a={},headerLabel:l=(0,zp.__)("Background"),contrastWarning:u,showInheritanceLabelIndicators:d=Fn()}){let{colors:f,gradients:p,allColors:m,areCustomSolidsEnabled:g,areCustomGradientsEnabled:h,hasSolidColors:b,hasGradientColors:v,decodeValue:y,encodeGradientValue:_}=GS(n),w=ZOe(n,"gradient"),k=JX(n),x=k&&b,C=v&&w,E=k&&v&&!w,R=ZOe(n,"backgroundImage"),S=(0,QOe.useCallback)(X=>{let U=x,G=w||E;return!U&&!G?{...X,background:{}}:{...X,background:{},color:{...X?.color,...U&&{background:void 0},...G&&{gradient:void 0}}}},[w,x,E]);if(!R&&!x&&!C&&!E)return null;let I=()=>o(Ue(t,["background","backgroundImage"],void 0)),O=()=>{let X=Ue(t,["background","gradient"],void 0);X=Ue(X,["color","gradient"],void 0),o(X)},A=y(r?.color?.background),P=y(t?.color?.background),L=(X,U)=>{let G=Ue(t,["color","background"],Vp(m,X,U));E&&(G.color.gradient=void 0),o(G)},H=()=>{let X=Ue(t,["color","background"],void 0);E&&(X.color.gradient=void 0),o(X)},N=y(r?.color?.gradient),M=y(t?.color?.gradient),V=(X,U)=>{let G=Ue(t,["color","gradient"],_(X,U));G.color.background=void 0,o(G)},j=()=>o(Ue(t,["color","gradient"],void 0)),D=y(t?.background?.gradient??t?.color?.gradient),z=y(r?.background?.gradient??r?.color?.gradient),$=(X,U)=>{let G=Ue(t,["background","gradient"],_(X,U));G=Ue(G,["color","gradient"],void 0),o(G)},J=(X,U,G)=>d?ec(X,U,G):{className:G},Q=mu({background:{backgroundImage:r?.background?.backgroundImage}}),W=mu(t);return(0,zd.jsxs)(e,{resetAllFilter:S,value:t,onChange:o,panelId:i,headerLabel:l,children:[R&&(0,zd.jsx)(Yt,{...J(Q&&!W,W&&Q,"block-editor-color-gradient-item"),showLocalOverrideActionsInLabel:!1,hasValue:()=>mu(t),label:(0,zp.__)("Image"),onDeselect:I,isShownByDefault:s.backgroundImage,panelId:i,children:(0,zd.jsx)(qOe,{value:t,onChange:o,settings:n,inheritedValue:r,defaultControls:s,defaultValues:a,showInheritanceLabelIndicators:d})}),x&&(0,zd.jsx)(Th,{label:(0,zp.__)("Color"),hasValue:()=>Pat(t),resetValue:H,isShownByDefault:s.backgroundColor,indicators:[P??A],contrastWarning:u,showInheritanceLabelIndicators:d,isPlaceholder:P===void 0&&A!==void 0,hasInheritedValue:A!==void 0,tabs:[{key:"background",label:(0,zp.__)("Color"),inheritedValue:A,inheritedSlug:Uo(r?.color?.background,"color"),userSlug:Uo(t?.color?.background,"color"),setValue:L,userValue:P,isPlaceholder:P===void 0&&A!==void 0}],colorGradientControlSettings:{colors:f,disableCustomColors:!g},panelId:i}),C&&(0,zd.jsx)(Th,{label:(0,zp.__)("Gradient"),hasValue:()=>iQ(t),resetValue:O,isShownByDefault:s.gradient,indicators:[D??z],showInheritanceLabelIndicators:d,isPlaceholder:D===void 0&&z!==void 0,hasInheritedValue:z!==void 0,tabs:[{key:"gradient",label:(0,zp.__)("Gradient"),inheritedValue:z,inheritedSlug:Uo(r?.background?.gradient??r?.color?.gradient,"gradient"),userSlug:Uo(t?.background?.gradient??t?.color?.gradient,"gradient"),setValue:$,userValue:D,isGradient:!0,isPlaceholder:D===void 0&&z!==void 0}],colorGradientControlSettings:{gradients:p,disableCustomGradients:!h},panelId:i}),E&&(0,zd.jsx)(Th,{label:(0,zp.__)("Gradient"),hasValue:()=>Oat(t),resetValue:j,isShownByDefault:s.gradient,indicators:[M??N],showInheritanceLabelIndicators:d,isPlaceholder:M===void 0&&N!==void 0,hasInheritedValue:N!==void 0,tabs:[{key:"gradient",label:(0,zp.__)("Gradient"),inheritedValue:N,inheritedSlug:Uo(r?.color?.gradient,"gradient"),userSlug:Uo(t?.color?.gradient,"gradient"),setValue:V,userValue:M,isGradient:!0,isPlaceholder:M===void 0&&N!==void 0}],colorGradientControlSettings:{gradients:p,disableCustomGradients:!h},panelId:i})]})}var lQ=c(T(),1),Mv="background",aQ={backgroundSize:"cover",backgroundPosition:"50% 50%"};function aB(e,t="any"){let o=(0,KS.getBlockSupport)(e,Mv);return o===!0?!0:t==="any"?!!o?.backgroundImage||!!o?.backgroundSize||!!o?.backgroundRepeat||!!o?.gradient:!!o?.[t]}function w4(e){if(!e||!e?.backgroundImage?.url)return;let t;return e?.backgroundSize||(t={backgroundSize:aQ.backgroundSize}),e?.backgroundSize==="contain"&&!e?.backgroundPosition&&(t={backgroundPosition:aQ.backgroundPosition}),t}function Aat({name:e,style:t}){if(!aB(e)||!t?.background?.backgroundImage)return;let o=w4(t?.background);if(o)return{style:{...o}}}function tAe(e){return mu(e)||iQ(e)?"has-background":""}function Mat(e){let t=e.className?.includes("has-background")?e.className.split(" ").filter(o=>o!=="has-background").join(" ")||void 0:e.className;return{...e,className:t,backgroundColor:void 0,gradient:void 0,style:Xe({...e.style,background:void 0,color:{...e.style?.color,background:void 0,gradient:void 0}})}}function Nat({children:e}){return(0,lQ.jsx)(Ve,{group:"background",resetAllFilter:Mat,children:e})}function k4({clientId:e,name:t,setAttributes:o,settings:r,asWrapper:n}){let i=Nl(),{style:s,className:a,backgroundColor:l,gradient:u}=(0,JOe.useSelect)(S=>{let{getBlockAttributes:I}=S(B),O=I(e);return{style:O?.style,className:O?.className,backgroundColor:O?.backgroundColor,gradient:O?.gradient}},[e]),{value:d}=tc(t,a,i),f=aB(t,"gradient")&&!!r?.background?.gradient,p=(0,KS.getBlockSupport)(t,"color"),m=p&&p.background!==!1,g=!!p?.gradients,h=!Zn(i),b={...s,color:{...s?.color,background:l?"var:preset|color|"+l:s?.color?.background,gradient:!f&&u?"var:preset|gradient|"+u:s?.color?.gradient},...f&&{background:{...s?.background,gradient:u?"var:preset|gradient|"+u:s?.background?.gradient??s?.color?.gradient}}},v=h?Ao(s,i):b,y=!v?.color?.gradient&&!v?.background?.gradient&&!!v?.color?.background&&(r?.color?.text||r?.color?.link)&&(0,KS.getBlockSupport)(t,["color","enableContrastChecker"])!==!1,_=YS({clientId:e,name:t,enabled:!!y,messageOverride:(0,eAe.__)("This color combination has poor contrast. Consider increasing contrast between background and foreground.")});if(!v4(r)||!aB(t)&&!m&&!g)return null;let w=S=>{if(h){o({style:wn(s,i,S)});return}let I=S?.color?.background,O=Uo(I,"color"),A=f?S?.background?.gradient:S?.color?.gradient,P=Uo(A,"gradient"),L=P?void 0:S?.color?.gradient,H={...S,color:{...S?.color,background:O?void 0:I,gradient:f?void 0:L}};f&&(H.background={...H.background,gradient:S?.background?.gradient});let N=f&&!!s?.color?.gradient,M={style:Xe(H),backgroundColor:O,gradient:f?void 0:P},V=!!P||!!A;N&&V?M.className=Y(a,"has-background"):!V&&a?.includes("has-background")&&(M.className=a.split(" ").filter(j=>j!=="has-background").join(" ")||void 0),o(M)},k={...r,background:{...r.background,backgroundSize:r?.background?.backgroundSize&&aB(t,"backgroundSize")}},x=(0,KS.getBlockSupport)(t,[Mv,"__experimentalDefaultControls"]),C=(0,KS.getBlockSupport)(t,["color","__experimentalDefaultControls"]),E={...x,backgroundColor:C?.background,gradient:x?.gradient??C?.background};return(0,lQ.jsx)(_4,{as:n||Nat,panelId:e,defaultValues:aQ,settings:k,onChange:w,defaultControls:E,value:h?Ao(s,i):b,contrastWarning:_,inheritedValue:d})}var oAe={useBlockProps:Aat,attributeKeys:["style"],hasSupport:aB};var ri="color",x4=e=>{let t=(0,qS.getBlockSupport)(e,ri);return t&&(t.link===!0||t.gradient===!0||t.background!==!1||t.text!==!1)},Lat=e=>{let t=(0,qS.getBlockSupport)(e,ri);return t!==null&&typeof t=="object"&&!!t.link},uQ=e=>{let t=(0,qS.getBlockSupport)(e,ri);return t!==null&&typeof t=="object"&&!!t.gradients},Dat=e=>{let t=(0,qS.getBlockSupport)(e,ri);return t&&t.background!==!1},Vat=e=>{let t=(0,qS.getBlockSupport)(e,ri);return t&&t.text!==!1};function Fat(e){return x4(e)&&(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),uQ(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}})),e}function nAe(e,t,o){if(!x4(t)||io(t,ri))return e;let r=uQ(t),{backgroundColor:n,textColor:i,gradient:s,style:a}=o,l=h=>!io(t,ri,h),u=l("text")?Ja("color",i):void 0,d=l("gradients")?J_(s):void 0,f=l("background")?Ja("background-color",n):void 0,p=l("background")||l("gradients"),m=n||a?.color?.background||r&&(s||a?.color?.gradient),g=Y(e.className,u,d,{[f]:(!r||!a?.color?.gradient)&&!!f,"has-text-color":l("text")&&(i||a?.color?.text),"has-background":p&&m,"has-link-color":l("link")&&a?.elements?.link?.color});return e.className=g||void 0,e}function zat({name:e,backgroundColor:t,textColor:o,gradient:r,style:n}){let[i,s,a]=je("color.palette.custom","color.palette.theme","color.palette.default"),l=(0,rAe.useMemo)(()=>[...i||[],...s||[],...a||[]],[i,s,a]);if(!x4(e)||io(e,ri))return{};let u={};o&&!io(e,ri,"text")&&(u.color=Lu(l,o)?.color),t&&!io(e,ri,"background")&&(u.backgroundColor=Lu(l,t)?.color);let d=nAe({style:u},e,{textColor:o,backgroundColor:t,gradient:r,style:n}),f=t||n?.color?.background||r||n?.color?.gradient;return{...d,className:Y(d.className,!f&&tAe(n))}}var dQ={useBlockProps:zat,addSaveProps:nAe,attributeKeys:["backgroundColor","textColor","gradient","style"],hasSupport:x4},jat={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};function Hat(e,t,o,r){let n=e.name,i={linkColor:Lat(n),textColor:Vat(n),backgroundColor:Dat(n),gradient:uQ(n)};return S4(i,jat,e,t,o,r)}(0,cQ.addFilter)("blocks.registerBlockType","core/color/addAttribute",Fat);(0,cQ.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",Hat);var pQ=c(T(),1);function Wat({children:e,resetAllFilter:t}){let o=(0,C4.useCallback)(r=>{let n=t(r.style);return{...r,style:Xe(n)}},[t]);return(0,pQ.jsx)(Ve,{group:"elements",resetAllFilter:o,children:e})}function E4({clientId:e,name:t,setAttributes:o,settings:r,asWrapper:n,label:i,defaultControls:s}){let a=Nl(),l=p4(r),{style:u,className:d}=(0,iAe.useSelect)(y=>{if(!l)return{};let _=y(B).getBlockAttributes(e);return{style:_?.style,className:_?.className}},[e,l]),{value:f}=tc(t,d,a),p=!Zn(a),m=(0,C4.useMemo)(()=>p?Ao(u,a):u,[p,a,u]),g=p?y=>{o({style:wn(u,a,y)})}:y=>{o({style:Xe(y)})},h=!!m?.elements?.link?.color?.text&&r?.color?.link&&(0,fQ.getBlockSupport)(t,[ri,"enableContrastChecker"])!==!1,b=YS({clientId:e,name:t,enabled:!!h,checkTextColor:!1,messageOverride:(0,sAe.__)("This link color has poor contrast against the background. Consider increasing contrast.")});return l?(s=s||(0,fQ.getBlockSupport)(t,[ri,"__experimentalDefaultControls"]),(0,pQ.jsx)(m4,{as:n||Wat,panelId:e,settings:r,value:m,onChange:g,defaultControls:s,label:i,contrastWarning:b,inheritedValue:f})):null}var dB=c(ce(),1),D4=c(F(),1),zAe=c(ee(),1),jAe=c(Z(),1);var rc=c(q(),1),zr=c(Z(),1),Nv=c(F(),1);var ZS=c(Z(),1);var aAe=c(F(),1),T4=c(q(),1),mQ=c(T(),1),Uat=[{label:(0,ZS.__)("Align text left"),value:"left",icon:mm},{label:(0,ZS.__)("Align text center"),value:"center",icon:lb},{label:(0,ZS.__)("Align text right"),value:"right",icon:gm},{label:(0,ZS.__)("Justify text"),value:"justify",icon:I9}],Gat=["left","center","right"];function R4({className:e,value:t,onChange:o,options:r=Gat}){let n=(0,aAe.useMemo)(()=>Uat.filter(i=>r.includes(i.value)),[r]);return n.length?(0,mQ.jsx)(T4.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,ZS.__)("Text alignment"),className:Y("block-editor-text-alignment-control",e),value:t,onChange:i=>{o(i===t?void 0:i)},children:n.map(i=>(0,mQ.jsx)(T4.__experimentalToggleGroupControlOptionIcon,{value:i.value,icon:i.icon,label:i.label},i.value))}):null}var Sn=c(q(),1),lB=c(Z(),1);var oc=c(T(),1);function lAe({value:e,onChange:t,__unstableInputWidth:o="60px",withSlider:r=!1,hasBottomMargin:n=!1,help:i,className:s,placeholder:a,...l}){let[u]=je("spacing.units"),d=(0,Sn.__experimentalUseCustomUnits)({availableUnits:u||["px","em","rem","ch","%","vw","vh"],defaultValues:{px:16,em:2,rem:2,ch:2}}),[f,p]=(0,Sn.__experimentalParseQuantityAndUnitFromRawValue)(e,d),m=!!p&&["em","rem","%","ch","vw","vh"].includes(p);return r?(0,oc.jsxs)(Sn.__experimentalView,{style:n?{marginBottom:12}:void 0,children:[(0,oc.jsx)(Sn.BaseControl.VisualLabel,{children:(0,lB.__)("Line indent")}),(0,oc.jsxs)(Sn.Flex,{children:[(0,oc.jsx)(Sn.FlexItem,{isBlock:!0,children:(0,oc.jsx)(Sn.__experimentalUnitControl,{label:(0,lB.__)("Line indent"),labelPosition:"top",hideLabelFromVision:!0,value:e,onChange:t,units:d,__unstableInputWidth:o,min:0,className:s,placeholder:a})}),r&&(0,oc.jsx)(Sn.FlexItem,{isBlock:!0,children:(0,oc.jsx)(Sn.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,oc.jsx)(Sn.RangeControl,{label:(0,lB.__)("Line indent"),hideLabelFromVision:!0,value:f,withInputField:!1,onChange:g=>{t?.(g===void 0?void 0:g+(p??"px"))},min:0,max:m?10:100,step:m?.1:1,initialPosition:0})})})]}),i&&(0,oc.jsx)("p",{className:"components-base-control__help",children:i})]}):(0,oc.jsx)(Sn.__experimentalUnitControl,{...l,label:(0,lB.__)("Line indent"),value:e,__unstableInputWidth:o,units:d,onChange:t,help:i,className:s,placeholder:a})}function uAe(e,t){let o=e?.typography?.fontFamilies,r=["default","theme","custom"].flatMap(i=>o?.[i]??[]),n=r.find(i=>i.fontFamily===t)?.fontFace??[];return{fontFamilies:r,fontFamilyFaces:n}}function cAe(e,t){return t=typeof t=="number"?t.toString():t,!t||typeof t!="string"?"":!e||e.length===0?t:e?.reduce((r,{value:n})=>{let i=Math.abs(parseInt(n)-parseInt(t)),s=Math.abs(parseInt(r)-parseInt(t));return i<s?n:r},e[0]?.value)}function $at(e,t){return typeof t!="string"||!t||!["normal","italic","oblique"].includes(t)?"":!e||e.length===0||e.find(r=>r.value===t)?t:t==="oblique"&&!e.find(r=>r.value==="oblique")?"italic":""}function dAe(e,t,o){let r=t,n=o,{fontStyles:i,fontWeights:s,combinedStyleAndWeightOptions:a}=pS(e),l=i?.some(({value:d})=>d===t),u=s?.some(({value:d})=>d?.toString()===o?.toString());return l||(r=t?$at(i,t):a?.find(d=>d.style.fontWeight===cAe(s,o))?.style?.fontStyle),u||(n=o?cAe(s,o):a?.find(d=>d.style.fontStyle===(r||t))?.style?.fontWeight),{nearestFontStyle:r,nearestFontWeight:n}}var bo=c(T(),1),Yat=1,Kat=6;function qat(e,t){let o=e?.elements?.link?.color?.text;if(o!==void 0)return o===e?.color?.text;let r=t?.elements?.link?.color?.text;return r===void 0||t?.color?.text===r}function B4(e){let t=pAe(e),o=mAe(e),r=gAe(e),n=hAe(e),i=yAe(e),s=bAe(e),a=vAe(e),l=kAe(e),u=_Ae(e),d=wAe(e),f=fAe(e),p=QX(e);return t||o||r||n||i||s||f||a||l||u||d||p}function fAe(e){return e?.typography?.defaultFontSizes!==!1&&e?.typography?.fontSizes?.default?.length||e?.typography?.fontSizes?.theme?.length||e?.typography?.fontSizes?.custom?.length||e?.typography?.customFontSize}function pAe(e){return["default","theme","custom"].some(t=>e?.typography?.fontFamilies?.[t]?.length)}function mAe(e){return e?.typography?.lineHeight}function gAe(e){return e?.typography?.fontStyle||e?.typography?.fontWeight}function Zat(e){return e?.typography?.fontStyle?e?.typography?.fontWeight?(0,zr.__)("Appearance"):(0,zr.__)("Font style"):(0,zr.__)("Font weight")}function hAe(e){return e?.typography?.letterSpacing}function bAe(e){return e?.typography?.textTransform}function yAe(e){return e?.typography?.textAlign}function vAe(e){return e?.typography?.textDecoration}function _Ae(e){return e?.typography?.writingMode}function wAe(e){return e?.typography?.textColumns}function kAe(e){return e?.typography?.textIndent}function Xat(e){let t=e?.typography?.fontSizes,o=!!e?.typography?.defaultFontSizes;return[...t?.custom??[],...t?.theme??[],...o?t?.default??[]:[]]}function hQ({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n}){let i=Vr(),s=()=>{let a=e(o);t(a)};return(0,bo.jsx)(rc.__experimentalToolsPanel,{label:(0,zr.__)("Typography"),resetAll:s,panelId:r,__experimentalFirstVisibleItemClass:"first",dropdownMenuProps:i,children:n})}var Qat={textColor:!0,fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textAlign:!0,textTransform:!0,textDecoration:!0,textIndent:!0,writingMode:!0,textColumns:!0},Jat=[void 0,null,""];function st(e){return!Jat.includes(e)}function gQ(e){if(!st(e))return;let[t]=(0,rc.__experimentalParseQuantityAndUnitFromRawValue)(e);return t}function I4({as:e=hQ,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=Qat,isGlobalStyles:a=!1,showInheritanceLabelIndicators:l=Fn(),contrastWarning:u}){let{colors:d,allColors:f,areCustomSolidsEnabled:p,decodeValue:m}=GS(n),g=(We,Tn,Mu)=>ec(l&&We,l&&Tn,Mu),h=QX(n),b=m(r?.color?.text),v=m(t?.color?.text),y=()=>!!t?.color?.text,_=(We,Tn)=>{let Mu=Vp(f,We,Tn),yc=Ue(t,["color","text"],Mu);(Fn()?qat(t,r):r?.color?.text===r?.elements?.link?.color?.text)&&(yc=Ue(yc,["elements","link","color","text"],Mu)),o(yc)},w=()=>_(void 0),k=pAe(n),x=m(r?.typography?.fontFamily),C=m(t?.typography?.fontFamily)??x,E=!st(t?.typography?.fontFamily)&&st(x),{fontFamilies:R,fontFamilyFaces:S}=(0,Nv.useMemo)(()=>uAe(n,C),[n,C]),I=We=>{let Tn=R?.find(({fontFamily:vc})=>vc===We)?.slug,Mu=Tn?`var:preset|font-family|${Tn}`:We,yc=Ue(t,["typography","fontFamily"],st(Mu)?Mu:void 0),d9=R?.find(({fontFamily:vc})=>vc===We)?.fontFace??[],{fontStyles:EVe,fontWeights:TVe}=pS(d9),RVe=EVe?.some(({value:vc})=>vc===ke),BVe=TVe?.some(({value:vc})=>vc?.toString()===ye?.toString());if(!RVe||!BVe){let{nearestFontStyle:vc,nearestFontWeight:f9}=dAe(d9,ke,ye);vc||f9?yc={...yc,typography:{...yc?.typography,fontStyle:st(vc)?vc:void 0,fontWeight:st(f9)?f9:void 0}}:(ke||ye)&&(yc={...yc,typography:{...yc?.typography,fontStyle:void 0,fontWeight:void 0}})}o(yc)},O=()=>st(t?.typography?.fontFamily),A=()=>I(void 0),P=fAe(n),L=!n?.typography?.customFontSize,H=Xat(n),N=t?.typography?.fontSize,M=r?.typography?.fontSize,V=N??M,j=m(V),D=m(M),z=!st(N)&&st(M),$=We=>{if(!We||typeof We!="string")return;if(We.startsWith("var:preset|font-size|"))return We.replace("var:preset|font-size|","");let Tn=We.match(/^var\(--wp--preset--font-size--([^)]+)\)$/);if(Tn)return Tn[1]},J=$(V),Q=$(M),W=(We,Tn)=>{let Mu=Tn?.slug?`var:preset|font-size|${Tn?.slug}`:We;o(Ue(t,["typography","fontSize"],st(Mu)?Mu:void 0))},X=(We,Tn)=>{if(z&&We===void 0&&!Tn){Q?W(void 0,{slug:Q}):W(D);return}W(We,Tn)},U=()=>st(t?.typography?.fontSize),G=()=>W(void 0),te=gAe(n),re=Zat(n),ae=n?.typography?.fontStyle,ie=n?.typography?.fontWeight,be=m(r?.typography?.fontStyle),pe=m(r?.typography?.fontWeight),ke=m(t?.typography?.fontStyle)??be,ye=m(t?.typography?.fontWeight)??pe,Pe=!st(t?.typography?.fontStyle)&&!st(t?.typography?.fontWeight)&&(st(be)||st(pe)),_e=(0,Nv.useCallback)(({fontStyle:We,fontWeight:Tn})=>{(We!==ke||Tn!==ye)&&o({...t,typography:{...t?.typography,fontStyle:st(We)?We:void 0,fontWeight:st(Tn)?Tn:void 0}})},[ke,ye,o,t]),ve=(0,Nv.useCallback)(We=>{if(Pe&&We.fontStyle===ke&&We.fontWeight===ye){o({...t,typography:{...t?.typography,fontStyle:st(ke)?ke:void 0,fontWeight:st(ye)?ye:void 0}});return}_e(We)},[Pe,ke,ye,o,t,_e]),Se=()=>st(t?.typography?.fontStyle)||st(t?.typography?.fontWeight),fe=(0,Nv.useCallback)(()=>{_e({})},[_e]),Ce=mAe(n),ne=m(t?.typography?.lineHeight),se=m(r?.typography?.lineHeight),Ee=!st(t?.typography?.lineHeight)&&st(se),he=We=>{o(Ue(t,["typography","lineHeight"],st(We)?We:void 0))},Ae=()=>st(t?.typography?.lineHeight),et=()=>he(void 0),Je=hAe(n),_t=m(t?.typography?.letterSpacing),Et=m(r?.typography?.letterSpacing),mt=!st(t?.typography?.letterSpacing)&&st(Et),oo=We=>{o(Ue(t,["typography","letterSpacing"],st(We)?We:void 0))},Tt=()=>st(t?.typography?.letterSpacing),Rt=()=>oo(void 0),Bt=kAe(n),gt=m(t?.typography?.textIndent),He=m(r?.typography?.textIndent),we=!st(t?.typography?.textIndent)&&st(He),ge=(n?.typography?.textIndent??"subsequent")==="all",Re=We=>{o(Ue(t,["typography","textIndent"],st(We)?We:void 0))},Ie=We=>{o({...t,settings:{typography:{textIndent:We?"all":"subsequent"}}})},at=()=>st(t?.typography?.textIndent),Qe=()=>{o(Ue(t,["typography","textIndent"],void 0))},po=ge?(0,zr.__)("Indents the first line of all paragraphs."):(0,zr.__)("Indents the first line of each paragraph after the first one."),ro=wAe(n),vo=m(t?.typography?.textColumns),Kt=m(r?.typography?.textColumns),_o=!st(t?.typography?.textColumns)&&st(Kt),En=We=>{o(Ue(t,["typography","textColumns"],st(We)?We:void 0))},it=()=>st(t?.typography?.textColumns),Vt=()=>En(void 0),Pr=bAe(n),gr=m(r?.typography?.textTransform),Gr=m(t?.typography?.textTransform)??gr,Or=!st(t?.typography?.textTransform)&&st(gr),pn=We=>{o(Ue(t,["typography","textTransform"],st(We)?We:void 0))},Pi=We=>{if(Or&&We===void 0){pn(gr);return}pn(We)},Be=()=>st(t?.typography?.textTransform),Ht=()=>pn(void 0),lt=vAe(n),no=m(r?.typography?.textDecoration),Ar=m(t?.typography?.textDecoration)??no,rr=!st(t?.typography?.textDecoration)&&st(no),si=We=>{o(Ue(t,["typography","textDecoration"],st(We)?We:void 0))},lf=We=>{if(rr&&We===void 0){si(no);return}si(We)},Xa=()=>st(t?.typography?.textDecoration),bc=()=>si(void 0),W0=_Ae(n),cf=m(r?.typography?.writingMode),tb=m(t?.typography?.writingMode)??cf,t_=!st(t?.typography?.writingMode)&&st(cf),ob=We=>{o(Ue(t,["typography","writingMode"],st(We)?We:void 0))},oI=We=>{if(t_&&We===void 0){ob(cf);return}ob(We)},rI=()=>st(t?.typography?.writingMode),c9=()=>ob(void 0),u9=yAe(n),uf=m(r?.typography?.textAlign),tt=m(t?.typography?.textAlign)??uf,ai=!st(t?.typography?.textAlign)&&st(uf),sm=We=>{o(Ue(t,["typography","textAlign"],st(We)?We:void 0))},xVe=We=>{if(ai&&We===void 0){sm(uf);return}sm(We)},Bee=()=>st(t?.typography?.textAlign),SVe=()=>sm(void 0),CVe=(0,Nv.useCallback)(We=>h?{...We,typography:{},color:{...We?.color,text:void 0}}:{...We,typography:{}},[h]);return(0,bo.jsxs)(e,{resetAllFilter:CVe,value:t,onChange:o,panelId:i,children:[h&&(0,bo.jsx)(Th,{label:(0,zr.__)("Color"),hasValue:y,resetValue:w,isShownByDefault:s.textColor,indicators:[v??b],contrastWarning:u,showInheritanceLabelIndicators:l,isPlaceholder:v===void 0&&b!==void 0,hasInheritedValue:b!==void 0,tabs:[{key:"text",label:(0,zr.__)("Color"),inheritedValue:b,inheritedSlug:Uo(r?.color?.text,"color"),userSlug:Uo(t?.color?.text,"color"),setValue:_,userValue:v,isPlaceholder:v===void 0&&b!==void 0}],colorGradientControlSettings:{colors:d,disableCustomColors:!p},panelId:i}),k&&(0,bo.jsx)(Yt,{...g(E,O()&&x!==void 0),label:(0,zr.__)("Font"),hasValue:O,onDeselect:A,isShownByDefault:s.fontFamily,panelId:i,children:(0,bo.jsx)($V,{fontFamilies:R,value:C,onChange:I})}),P&&(0,bo.jsx)(Yt,{...g(z,U()&&M!==void 0),label:(0,zr.__)("Size"),hasValue:U,hasInlineEndToggle:!0,onDeselect:G,isShownByDefault:s.fontSize,panelId:i,children:(0,bo.jsx)(rc.FontSizePicker,{value:J||j,valueMode:J?"slug":"literal",onChange:X,fontSizes:H,disableCustomFontSizes:L,withReset:!1,withSlider:!0})}),te&&(0,bo.jsx)(Yt,{...g(Pe,Se()&&(be!==void 0||pe!==void 0)),label:re,hasValue:Se,onDeselect:fe,isShownByDefault:s.fontAppearance,panelId:i,children:(0,bo.jsx)(GV,{value:{fontStyle:ke,fontWeight:ye},onChange:ve,hasFontStyles:ae,hasFontWeights:ie,fontFamilyFaces:S})}),Ce&&(0,bo.jsx)(Yt,{...g(Ee,Ae()&&se!==void 0,"single-column"),label:(0,zr.__)("Line height"),hasValue:Ae,onDeselect:et,isShownByDefault:s.lineHeight,panelId:i,children:(0,bo.jsx)(O6,{__unstableInputWidth:"auto",value:ne??se,onChange:he,...Ee?{placeholder:gQ(se)}:{}})}),Je&&(0,bo.jsx)(Yt,{...g(mt,Tt()&&Et!==void 0,"single-column"),label:(0,zr.__)("Letter spacing"),hasValue:Tt,onDeselect:Rt,isShownByDefault:s.letterSpacing,panelId:i,children:(0,bo.jsx)(KV,{value:_t??Et,onChange:oo,__unstableInputWidth:"auto",placeholder:mt?gQ(Et):void 0})}),Bt&&(0,bo.jsxs)(Yt,{...g(we,at()&&He!==void 0),label:(0,zr.__)("Line indent"),hasValue:at,onDeselect:Qe,isShownByDefault:s.textIndent,panelId:i,children:[(0,bo.jsx)(lAe,{value:gt??He,onChange:Re,__unstableInputWidth:"auto",withSlider:!0,hasBottomMargin:a,placeholder:we?gQ(He):void 0}),a&&(0,bo.jsx)(rc.ToggleControl,{label:(0,zr.__)("Indent all paragraphs"),checked:ge,onChange:Ie,help:po})]}),ro&&(0,bo.jsx)(Yt,{...g(_o,it()&&Kt!==void 0,"single-column"),label:(0,zr.__)("Columns"),hasValue:it,onDeselect:Vt,isShownByDefault:s.textColumns,panelId:i,children:(0,bo.jsx)(rc.__experimentalNumberControl,{label:(0,zr.__)("Columns"),max:Kat,min:Yat,onChange:En,placeholder:_o?Kt:void 0,spinControls:"custom",value:vo,initialPosition:1})}),lt&&(0,bo.jsx)(Yt,{...g(rr,Xa()&&no!==void 0,"single-column"),label:(0,zr.__)("Decoration"),hasValue:Xa,onDeselect:bc,isShownByDefault:s.textDecoration,panelId:i,children:(0,bo.jsx)(ZV,{value:Ar,onChange:lf,__unstableInputWidth:"auto"})}),W0&&(0,bo.jsx)(Yt,{...g(t_,rI()&&cf!==void 0,"single-column"),label:(0,zr.__)("Orientation"),hasValue:rI,onDeselect:c9,isShownByDefault:s.writingMode,panelId:i,children:(0,bo.jsx)(e6,{value:tb,onChange:oI})}),Pr&&(0,bo.jsx)(Yt,{...g(Or,Be()&&gr!==void 0),label:(0,zr.__)("Letter case"),hasValue:Be,onDeselect:Ht,isShownByDefault:s.textTransform,panelId:i,children:(0,bo.jsx)(QV,{value:Gr,onChange:Pi,showNone:!0,isBlock:!0})}),u9&&(0,bo.jsxs)(Yt,{...g(ai,Bee()&&uf!==void 0),label:(0,zr.__)("Text alignment"),hasValue:Bee,onDeselect:SVe,isShownByDefault:s.textAlign,panelId:i,children:[(0,bo.jsx)(R4,{value:tt,onChange:xVe,options:["left","center","right","justify"]}),tt==="justify"&&(0,bo.jsx)("div",{children:(0,bo.jsx)(rc.Notice,{status:"warning",isDismissible:!1,children:(0,zr.__)("Justified text can reduce readability. For better accessibility, use left-aligned text instead.")})})]})]})}var elt=c(ce(),1);var tlt=c(T(),1),xAe="typography.lineHeight";var SAe=c(Bo(),1),P4=c(ce(),1),CAe=c(H3(),1);var cB="typography.__experimentalFontFamily";function olt(e){return(0,P4.hasBlockSupport)(e,cB)&&(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}})),e}function EAe(e,t,o){if(!(0,P4.hasBlockSupport)(t,cB)||io(t,nc,"fontFamily")||!o?.fontFamily)return e;let r=new CAe.default(e.className);r.add(`has-${Bs(o?.fontFamily)}-font-family`);let n=r.value;return e.className=n||void 0,e}function rlt({name:e,fontFamily:t}){return EAe({},e,{fontFamily:t})}var bQ={useBlockProps:rlt,addSaveProps:EAe,attributeKeys:["fontFamily"],hasSupport(e){return(0,P4.hasBlockSupport)(e,cB)}};(0,SAe.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",olt);var yQ=c(Bo(),1),XS=c(ce(),1),TAe=c(H3(),1);var nlt=c(T(),1),Lv="typography.fontSize";function ilt(e){return(0,XS.hasBlockSupport)(e,Lv)&&(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}})),e}function RAe(e,t,o){if(!(0,XS.hasBlockSupport)(t,Lv)||io(t,nc,"fontSize"))return e;let r=new TAe.default(e.className);r.add(Im(o.fontSize));let n=r.value;return e.className=n||void 0,e}function slt({name:e,fontSize:t,style:o}){let[r,n,i]=je("typography.fontSizes","typography.fluid","layout");if(!(0,XS.hasBlockSupport)(e,Lv)||io(e,nc,"fontSize")||!t&&!o?.typography?.fontSize)return;let s;if(o?.typography?.fontSize&&(s={style:{fontSize:hf({size:o.typography.fontSize},{typography:{fluid:n},layout:i})}}),t&&(s={style:{fontSize:ew(r,t,o?.typography?.fontSize).size}}),!!s)return RAe(s,e,{fontSize:t})}var vQ={useBlockProps:slt,addSaveProps:RAe,attributeKeys:["fontSize","style"],hasSupport(e){return(0,XS.hasBlockSupport)(e,Lv)}},alt={fontSize:[["fontSize"],["style","typography","fontSize"]]};function llt(e,t,o,r){let n=e.name,i={fontSize:(0,XS.hasBlockSupport)(n,Lv)};return S4(i,alt,e,t,o,r)}(0,yQ.addFilter)("blocks.registerBlockType","core/font/addAttribute",ilt);(0,yQ.addFilter)("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",llt);var A4=c(Z(),1),QS=c(ce(),1);var PAe=c(ee(),1);var O4=c(ee(),1),BAe=c(F(),1);function jr(e){let t=kt(),{clientId:o=""}=t,r=(0,O4.useRegistry)(),n=(0,O4.useSelect)(i=>o?null:i(B).getBlockEditingMode(),[o]);return(0,BAe.useEffect)(()=>{if(!e)return;let{setBlockEditingMode:i,unsetBlockEditingMode:s,__unstableMarkNextChangeAsNotPersistent:a}=r.dispatch(B);return a(),i(o,e),()=>{a(),s(o)}},[r,o,e]),o?t[n_]:n}var _Q=c(T(),1),JS="typography.textAlign",clt=[{icon:mm,title:(0,A4.__)("Align text left"),align:"left"},{icon:lb,title:(0,A4.__)("Align text center"),align:"center"},{icon:gm,title:(0,A4.__)("Align text right"),align:"right"}],IAe=["left","center","right"],ult=[];function wQ(e){return Array.isArray(e)?IAe.filter(t=>e.includes(t)):e===!0?IAe:ult}function dlt(e,t){return e&&_i(t)?"style-state":"block"}function flt({clientId:e,style:t,name:o,setAttributes:r}){let i=jd(o)?.typography?.textAlign,s=jr(),{selectedState:a,isResponsiveEditing:l}=(0,PAe.useSelect)(g=>{let{getSelectedBlockStyleState:h,isResponsiveEditing:b}=K(g(B));return{selectedState:h(e),isResponsiveEditing:b()}},[e]);if(!i||s!=="default")return null;let u=wQ((0,QS.getBlockSupport)(o,JS));if(!u.length)return null;let d=clt.filter(g=>u.includes(g.align)),f=Ao(t,a),p=dlt(l,a),m=g=>{let h={...f,typography:{...f?.typography,textAlign:g}};r({style:wn(t,a,h)})};return(0,_Q.jsx)(Ko,{group:p,children:(0,_Q.jsx)(F2,{value:f?.typography?.textAlign,onChange:m,alignmentControls:d})})}var M4={edit:flt,useBlockProps:plt,addSaveProps:mlt,attributeKeys:["style"],hasSupport(e){return(0,QS.hasBlockSupport)(e,JS,!1)}};function plt({name:e,style:t}){if(!t?.typography?.textAlign||!wQ((0,QS.getBlockSupport)(e,JS)).length||io(e,nc,"textAlign"))return null;let r=t.typography.textAlign;return{className:Y({[`has-text-align-${r}`]:r})}}function mlt(e,t,o){if(!o?.style?.typography?.textAlign)return e;let{textAlign:r}=o.style.typography,n=(0,QS.getBlockSupport)(t,JS);return wQ(n).includes(r)&&!io(t,nc,"textAlign")&&(e.className=Y(`has-text-align-${r}`,e.className)),e}var xQ=c(Bo(),1),Rh=c(ce(),1),Dv=c(F(),1),SQ=c(ee(),1),uB=c(Z(),1),N4=c(q(),1),VAe=c(ue(),1);function glt(e,t){let o=e.scrollHeight>e.clientHeight,r=0,n=2400,i=r,s=window.getComputedStyle(e),a=parseFloat(s.paddingLeft)||0,l=parseFloat(s.paddingRight)||0,u=document.createRange();u.selectNodeContents(e);let d=e,f=e.parentElement;if(f){let m=window.getComputedStyle(f);m?.display==="flex"&&(d=f,a+=parseFloat(m.paddingLeft)||0,l+=parseFloat(m.paddingRight)||0)}let p=d.clientHeight;for(;r<=n;){let m=Math.floor((r+n)/2);t(m);let h=u.getBoundingClientRect().width,b=e.scrollWidth<=d.clientWidth&&h<=d.clientWidth-a-l,v=o||e.scrollHeight<=d.clientHeight||e.scrollHeight<=p;d.clientHeight>p&&(p=d.clientHeight),b&&v?(i=m,r=m+1):n=m-1}return u.detach(),i}function OAe(e,t){if(!e)return;t(0);let o=glt(e,t);return t(o),o}var AAe=c(F(),1),MAe=c(Z(),1),NAe=c(q(),1),LAe=c(Yo(),1),kQ=c(T(),1);function DAe(){let e=(0,MAe.__)("The text may be too small to read. Consider using a larger container or less text.");return(0,AAe.useEffect)(()=>{(0,LAe.speak)(e)},[e]),(0,kQ.jsx)("div",{className:"block-editor-fit-text-size-warning",children:(0,kQ.jsx)(NAe.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,children:e})})}var ia=c(T(),1),hlt={},blt=12,jp="typography.fitText";function ylt(e){return!(0,Rh.hasBlockSupport)(e,jp)||e.attributes?.fitText?e:{...e,attributes:{...e.attributes,fitText:{type:"boolean"}}}}function vlt({fitText:e,name:t,clientId:o}){let[r,n]=(0,Dv.useState)(null),i=(0,Rh.hasBlockSupport)(t,jp),s=Zt(o),{blockAttributes:a,parentId:l,blockMode:u}=(0,SQ.useSelect)(f=>{if(!o||!i||!e)return hlt;let p=f(B).getBlockMode(o);return p==="html"?{blockMode:p}:{blockAttributes:f(B).getBlockAttributes(o),parentId:f(B).getBlockRootClientId(o),blockMode:p}},[o,i,e]),d=(0,Dv.useCallback)(()=>{if(!s||!i||!e)return;let f=`fit-text-${o}`,p=s.ownerDocument.getElementById(f);p||(p=s.ownerDocument.createElement("style"),p.id=f,s.ownerDocument.head.appendChild(p));let m=`#block-${o}`,h=OAe(s,b=>{b===0?p.textContent="":p.textContent=`${m} { font-size: ${b}px !important; }`});n(h)},[s,o,i,e]);return(0,Dv.useEffect)(()=>{if(!e||!s||!o||!i||u==="html")return;let f=s,p=f.style.visibility,m=null,g=null,h=null;m=window.requestAnimationFrame(()=>{f.style.visibility="hidden",g=window.requestAnimationFrame(()=>{d(),h=setTimeout(()=>{f.style.visibility=p},10)})});let b;return window.ResizeObserver&&f.parentElement&&(b=new window.ResizeObserver(d),b.observe(f.parentElement),b.observe(f)),()=>{m!==null&&window.cancelAnimationFrame(m),g!==null&&window.cancelAnimationFrame(g),h!==null&&clearTimeout(h),b&&b.disconnect();let v=`fit-text-${o}`,y=f.ownerDocument.getElementById(v);y&&y.remove()}},[e,o,l,d,s,i,u]),(0,Dv.useEffect)(()=>{if(e&&s&&i&&u!=="html"){let f=window.requestAnimationFrame(()=>{s&&d()});return()=>window.cancelAnimationFrame(f)}},[a,e,d,s,i,u]),{fontSize:r}}function _lt({clientId:e,fitText:t=!1,setAttributes:o,name:r,fontSize:n,style:i}){let s=(0,SQ.useSelect)(a=>{let{hasSelectedStyleState:l}=K(a(B));return l(e)},[e]);return!(0,Rh.hasBlockSupport)(r,jp)||s?null:(0,ia.jsx)(N4.__experimentalToolsPanelItem,{hasValue:()=>t,label:(0,uB.__)("Fit text"),onDeselect:()=>o({fitText:void 0}),resetAllFilter:()=>({fitText:void 0}),panelId:e,children:(0,ia.jsx)(N4.ToggleControl,{label:(0,uB.__)("Fit text"),checked:t,onChange:()=>{let a=!t||void 0,l={fitText:a};a&&(n&&(l.fontSize=void 0),i?.typography?.fontSize&&(l.style={...i,typography:{...i?.typography,fontSize:void 0}})),o(l)},help:t?(0,uB.__)("Text will resize to fit its container."):(0,uB.__)("The text will resize to fit its container, resetting other font size settings.")})})}function wlt(e,t,o){if(!(0,Rh.hasBlockSupport)(t,jp))return e;let{fitText:r}=o;if(!r)return e;let n=e.className?`${e.className} has-fit-text`:"has-fit-text";return{...e,className:n}}function klt({name:e,fitText:t}){return t&&(0,Rh.hasBlockSupport)(e,jp)?{className:"has-fit-text"}:{}}(0,xQ.addFilter)("blocks.registerBlockType","core/fit-text/addAttribute",ylt);var xlt=e=>(0,Rh.hasBlockSupport)(e,jp);function Slt({fitText:e,name:t,clientId:o,isSelected:r}){let{fontSize:n}=vlt({fitText:e,name:t,clientId:o});return r&&n&&n<blt?(0,ia.jsx)(Ve,{group:"typography",children:(0,ia.jsx)(DAe,{})}):null}var Clt=(0,VAe.createHigherOrderComponent)(e=>function(o){let{name:r,attributes:n,clientId:i,isSelected:s,setAttributes:a}=o,{fitText:l}=n;return(0,Rh.hasBlockSupport)(r,jp)?(0,ia.jsxs)(ia.Fragment,{children:[(0,ia.jsx)(e,{...o}),(0,ia.jsx)(Ve,{group:"typography",children:(0,ia.jsx)(_lt,{clientId:i,fitText:l,setAttributes:a,name:r,fontSize:n.fontSize,style:n.style})}),l&&(0,ia.jsx)(Slt,{fitText:l,name:r,clientId:i,isSelected:s})]}):(0,ia.jsx)(e,{...o})},"addFitTextControl");(0,xQ.addFilter)("editor.BlockEdit","core/fit-text/add-fit-text-control",Clt);var L4={useBlockProps:klt,addSaveProps:wlt,attributeKeys:["fitText","fontSize","style"],hasSupport:xlt,edit:()=>null};var CQ=c(T(),1);function FAe(e,t){return Object.fromEntries(Object.entries(e).filter(([o])=>!t.includes(o)))}var Elt="typography.__experimentalLetterSpacing",Tlt="typography.__experimentalTextTransform",Rlt="typography.__experimentalTextDecoration",Blt="typography.textIndent",Ilt="typography.textColumns",Plt="typography.__experimentalFontStyle",Olt="typography.__experimentalFontWeight",Alt="typography.__experimentalWritingMode",nc="typography",HAe=[xAe,Lv,Plt,Olt,cB,JS,Ilt,Rlt,Blt,Alt,Tlt,Elt,jp];function WAe(e){let t={...FAe(e,["fontFamily"])},o=e?.typography?.fontSize,r=e?.typography?.fontFamily,n=e?.color?.text,i=typeof o=="string"&&o?.startsWith("var:preset|font-size|")?o.substring(21):void 0,s=r?.startsWith("var:preset|font-family|")?r.substring(23):void 0,a=Uo(n,"color");return t.typography={...FAe(t.typography,["fontFamily"]),fontSize:i?void 0:o},t.color={...t.color,text:a?void 0:n},{style:Xe(t),fontFamily:s,fontSize:i,textColor:a}}function UAe(e){return{...e.style,typography:{...e.style?.typography,fontFamily:e.fontFamily?"var:preset|font-family|"+e.fontFamily:void 0,fontSize:e.fontSize?"var:preset|font-size|"+e.fontSize:e.style?.typography?.fontSize},color:{...e.style?.color,text:e.textColor?"var:preset|color|"+e.textColor:e.style?.color?.text}}}function Mlt({children:e,resetAllFilter:t}){let o=(0,D4.useCallback)(r=>{let n=UAe(r),i=t(n);return{...r,...WAe(i)}},[t]);return(0,CQ.jsx)(Ve,{group:"typography",resetAllFilter:o,children:e})}function V4({clientId:e,name:t,setAttributes:o,settings:r,asWrapper:n}){let i=Nl(),s=B4(r),{style:a,fontFamily:l,fontSize:u,fitText:d,textColor:f,className:p}=(0,zAe.useSelect)(C=>{if(!s)return{};let{style:E,fontFamily:R,fontSize:S,fitText:I,textColor:O,className:A}=C(B).getBlockAttributes(e)||{};return{style:E,fontFamily:R,fontSize:S,fitText:I,textColor:O,className:A}},[e,s]),m=!Zn(i),{value:g}=tc(t,p,i),h=(0,D4.useMemo)(()=>m?Ao(a,i):UAe({style:a,fontFamily:l,fontSize:u,textColor:f}),[m,i,a,u,l,f]),b=m?C=>{o({style:wn(a,i,C)})}:C=>{let E=WAe(C);(E.fontSize||E.style?.typography?.fontSize)&&d&&(E.fitText=void 0),o(E)},v=!h?.color?.gradient&&!!h?.color?.text&&r?.color?.text&&(0,dB.getBlockSupport)(t,["color","enableContrastChecker"])!==!1,y=YS({clientId:e,name:t,enabled:!!v,checkLinkColor:!1,messageOverride:(0,jAe.__)("This color has poor contrast against the background. Consider increasing contrast.")});if(!s)return null;let _=(0,dB.getBlockSupport)(t,[nc,"__experimentalDefaultControls"]),w=(0,dB.getBlockSupport)(t,["color","__experimentalDefaultControls"]),k={..._,textColor:w?.text};return(0,CQ.jsx)(I4,{as:n||Mlt,panelId:e,settings:r,value:h,onChange:b,defaultControls:k,contrastWarning:y,inheritedValue:g})}var lr=c(T(),1);function TQ({blockName:e,clientId:t,contentClientIds:o}){let r=jd(e),{updateBlockAttributes:n}=(0,F4.useDispatch)(B),{hasButtons:i,hasHeading:s}=(0,F4.useSelect)(d=>{let f=d(B).getBlockNamesByClientId(o);return{hasButtons:f.includes("core/buttons"),hasHeading:f.includes("core/heading")}},[o]),a=d=>{n(t,d)},l=(0,EQ.useMemo)(()=>({...r,typography:{}}),[r]),u=(0,EQ.useMemo)(()=>({...r,background:{...r.background,backgroundImage:!1,backgroundSize:!1}}),[r]);return(0,lr.jsxs)(lr.Fragment,{children:[(0,lr.jsx)(V4,{clientId:t,name:e,settings:l,setAttributes:a,asWrapper:hQ}),(0,lr.jsx)(k4,{clientId:t,name:e,settings:u,setAttributes:a,asWrapper:sQ}),(0,lr.jsx)(E4,{clientId:t,name:e,settings:r,setAttributes:a,asWrapper:eQ,label:(0,Hp.__)("Elements"),defaultControls:{button:i,heading:s}})]})}var Nlt=({blockName:e,clientId:t,hasBlockStyles:o,isSectionBlock:r,contentClientIds:n})=>(0,lr.jsxs)(lr.Fragment,{children:[o&&(0,lr.jsx)(lS,{clientId:t}),r&&e!=="core/template-part"&&(0,lr.jsx)(TQ,{blockName:e,clientId:t,contentClientIds:n}),(!r||e==="core/template-part")&&(0,lr.jsxs)(lr.Fragment,{children:[(0,lr.jsx)(Ve.Slot,{group:"typography",label:(0,Hp.__)("Typography")}),(0,lr.jsx)(Ve.Slot,{group:"color",label:(0,Hp.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,lr.jsx)(Ve.Slot,{group:"background",label:(0,Hp.__)("Background"),className:"background-block-support-panel__inner-wrapper"}),(0,lr.jsx)(Ve.Slot,{group:"filter"}),(0,lr.jsx)(Ve.Slot,{group:"layout",label:(0,Hp.__)("Layout")}),(0,lr.jsx)(Ve.Slot,{group:"dimensions",label:(0,Hp.__)("Dimensions")}),(0,lr.jsx)(Ve.Slot,{group:"border",label:(0,Hp.__)("Borders")}),(0,lr.jsx)(Ve.Slot,{group:"elements",label:(0,Hp.__)("Elements"),className:"elements-block-support-panel__inner-wrapper"}),(0,lr.jsx)(c4,{}),(0,lr.jsx)(Ve.Slot,{group:"styles"})]})]}),GAe=Nlt;var YAe=c(q(),1),KAe=c(Z(),1);var $Ae=c(ce(),1),z4=c(ee(),1),$a=c(q(),1);var ic=c(T(),1);function j4({clientIds:e,onSelect:t,onSwitchToListView:o,hasListViewTab:r}){return e.length?(0,ic.jsx)($a.__experimentalVStack,{spacing:1,children:e.map(n=>(0,ic.jsx)(Llt,{onSelect:t,onSwitchToListView:o,hasListViewTab:r,clientId:n},n))}):null}function Llt({clientId:e,onSelect:t,onSwitchToListView:o,hasListViewTab:r}){let n=Ln(e),{isSelected:i,childBlocks:s,shouldRenderListView:a,blockName:l}=(0,z4.useSelect)(h=>{let{isBlockSelected:b,hasSelectedInnerBlock:v,getBlockOrder:y,getBlockName:_,shouldRenderBlockListView:w}=K(h(B)),k=_(e);return{isSelected:b(e)||v(e,!0),childBlocks:y(e),shouldRenderListView:w(e),blockName:k}},[e]),u=(0,$Ae.getBlockType)(l),f=ui({clientId:e,context:"list-view"})||u?.title||l,{selectBlock:p}=(0,z4.useDispatch)(B),g=s&&s.length>0&&r&&a;return(0,ic.jsx)($a.Button,{__next40pxDefaultSize:!0,className:"block-editor-block-quick-navigation__item",isPressed:i,onClick:async()=>{await p(e),g&&o&&o(e),t&&t(e)},children:(0,ic.jsxs)($a.Flex,{children:[(0,ic.jsx)($a.FlexItem,{children:(0,ic.jsx)(Lt,{icon:n?.icon})}),(0,ic.jsx)($a.FlexBlock,{style:{textAlign:"left"},children:(0,ic.jsx)($a.__experimentalTruncate,{children:f})}),g&&(0,ic.jsx)($a.FlexItem,{children:(0,ic.jsx)(xt,{icon:br,size:24})})]})})}var e0=c(T(),1),Dlt=({contentClientIds:e,onSwitchToListView:t,hasListViewTab:o})=>{if(!e||e.length===0)return null;let r=window?.__experimentalContentOnlyInspectorFields;return(0,e0.jsx)(e0.Fragment,{children:!r&&(0,e0.jsx)(YAe.PanelBody,{title:(0,KAe.__)("Content"),children:(0,e0.jsx)(j4,{clientIds:e,onSwitchToListView:t,hasListViewTab:o})})})},H4=Dlt;var un=c(T(),1),{Tabs:Bh}=K(W4.privateApis);function RQ({blockName:e,clientId:t,hasBlockStyles:o,tabs:r,isSectionBlock:n,contentClientIds:i}){let s=(0,gu.useRef)(null),a=(0,t0.useSelect)(w=>w(qAe.store).get("core","showIconLabels"),[]),{requestedTab:l}=(0,t0.useSelect)(w=>({requestedTab:K(w(B)).getRequestedInspectorTab()})),[u,d]=(0,gu.useState)(()=>l?.tabName??r[0]?.name),f=(0,gu.useRef)(!1),p=(0,gu.useRef)(!1),{__unstableSetOpenListViewPanel:m,__unstableIncrementListViewExpandRevision:g,__unstableSetAllListViewPanelsOpen:h}=(0,t0.useDispatch)(B),{clearRequestedInspectorTab:b}=K((0,t0.useDispatch)(B));(0,gu.useEffect)(()=>{f.current=!1},[t]),(0,gu.useEffect)(()=>{l&&(d(l.tabName),l.tabName===Np.name&&l.options?.openPanel&&(m(l.options.openPanel),g()),p.current=!0,f.current=!0,b())},[l,m,g,b]),(0,gu.useEffect)(()=>{u===Np.name&&!f.current&&(h(),g())},[t,u,h,g]),(0,gu.useEffect)(()=>{if(!r?.length||f.current&&r.some(k=>k.name===u))return;let w=r[0]?.name;u!==w&&d(w)},[r,u]);let v=w=>{d(w),f.current=!0,w===Np.name&&!p.current&&(h(),g()),p.current=!1},y=r.some(w=>w.name===Np.name),_=w=>{y&&(m(w),g(),p.current=!0,v(Np.name))};return(0,un.jsx)("div",{className:"block-editor-block-inspector__tabs",children:(0,un.jsxs)(Bh,{selectedTabId:u,onSelect:v,children:[(0,un.jsx)(Bh.TabList,{children:r.map(w=>a?(0,un.jsx)(Bh.Tab,{tabId:w.name,children:w.title},w.name):(0,un.jsxs)(ao.Root,{children:[(0,un.jsx)(Bh.Tab,{tabId:w.name,"aria-label":w.title,render:(0,un.jsx)(ao.Trigger,{}),children:(0,un.jsx)(W4.Icon,{icon:w.icon})}),(0,un.jsx)(ao.Popup,{children:w.title})]},w.name))}),(0,un.jsxs)(Bh.TabPanel,{tabId:s4.name,focusable:!1,children:[(0,un.jsx)(H4,{contentClientIds:i,onSwitchToListView:_,hasListViewTab:y}),(0,un.jsx)(Ve.Slot,{group:"content"})]}),(0,un.jsxs)(Bh.TabPanel,{tabId:Np.name,focusable:!1,children:[(0,un.jsx)(Ve.Slot,{group:"list",ref:s}),(0,un.jsx)(K5,{listViewRef:s})]}),(0,un.jsx)(Bh.TabPanel,{tabId:n4.name,focusable:!1,children:(0,un.jsx)(COe,{showAdvancedControls:!!e})}),(0,un.jsx)(Bh.TabPanel,{tabId:i4.name,focusable:!1,children:(0,un.jsx)(GAe,{blockName:e,clientId:t,hasBlockStyles:o,isSectionBlock:n,contentClientIds:i})})]},t)})}var sa=c(q(),1),ZAe=c(ee(),1);var Vlt=[];function Flt(e,t={}){return t[e]!==void 0?t[e]:t.default!==void 0?t.default:!0}function XAe(e,t,o,r){let n=[],{bindings:i,border:s,color:a,content:l,default:u,layout:d,dimensions:f,list:p,position:m,styles:g,typography:h,effects:b}=Zc,v=(0,sa.__experimentalUseSlotFills)(p.name),y=!!v&&v.length,_=(0,sa.__experimentalUseSlotFills)(l.name),w=!!_&&_.length,x=[...(0,sa.__experimentalUseSlotFills)(s.name)||[],...(0,sa.__experimentalUseSlotFills)(a.name)||[],...(0,sa.__experimentalUseSlotFills)(d.name)||[],...(0,sa.__experimentalUseSlotFills)(m.name)||[],...(0,sa.__experimentalUseSlotFills)(f.name)||[],...(0,sa.__experimentalUseSlotFills)(g.name)||[],...(0,sa.__experimentalUseSlotFills)(h.name)||[],...(0,sa.__experimentalUseSlotFills)(b.name)||[]].length,C=[...(0,sa.__experimentalUseSlotFills)(Wg.slotName)||[],...(0,sa.__experimentalUseSlotFills)(i.name)||[]],E=[...(0,sa.__experimentalUseSlotFills)(u.name)||[],...y&&x>1?C:[]],R=window?.__experimentalContentOnlyInspectorFields,S=w||!R&&t?.length;S&&n.push(s4),y&&n.push(Np),(E.length||C.length&&(S||y))&&n.push(n4);let{tabSettings:I,isPreviewMode:O}=(0,ZAe.useSelect)(P=>{let L=P(B).getSettings();return{tabSettings:L.blockInspectorTabs,isPreviewMode:L.isPreviewMode}},[]);return!O&&(r||x)&&n.push(i4),Flt(e,I)?n:Vlt}var QAe=c(q(),1);var BQ=c(T(),1),{Fill:zlt,Slot:jlt}=(0,QAe.createSlotFill)(Symbol("InspectorControlsLastItem")),JAe=e=>kt()[Nu]?(0,BQ.jsx)(zlt,{...e}):null;JAe.Slot=function(t){return(0,BQ.jsx)(jlt,{...t})};var U4=JAe;var eMe=c(ee(),1);function tMe(e){return(0,eMe.useSelect)(t=>{if(e){let o=t(B).getSettings().blockInspectorAnimation,r=o?.animationParent,{getSelectedBlockClientId:n,getBlockParentsByBlockName:i}=t(B),s=n();return!i(s,r,!0)[0]&&e.name!==r?null:o?.[e.name]}return null},[e])}var Y4=c(F(),1);var Ph=c(Z(),1);var Hd=c(Z(),1);var Ih=c(q(),1);var hu=c(T(),1);function G4({viewportStates:e=[],pseudoStates:t=[],viewportValue:o="default",pseudoStateValue:r="default",onChangeViewport:n,onChangePseudoState:i,showText:s=!0,popoverProps:a={}}){if(!e.length&&!t.length)return null;let l=[{label:(0,Hd.__)("Default"),value:"default"},...e.map(v=>({label:v.label,value:v.value}))],u=[{label:(0,Hd.__)("Default"),value:"default"},...t.map(v=>({label:v.label,value:v.value}))],d=e.length>0,f=t.length>0,p=(0,Hd.__)("States"),m=[];if(d&&o!=="default"){let v=l.find(y=>y.value===o);v&&m.push({key:`viewport-${v.value}`,label:v.label})}if(f&&r!=="default"){let v=u.find(y=>y.value===r);v&&m.push({key:`pseudo-${v.value}`,label:v.label})}let g=m.length?m.map(v=>v.label).join(", "):(0,Hd.__)("Default"),h=s?Bn:ga,b=s?{size:"compact",iconPosition:"right"}:{size:"small"};return(0,hu.jsx)($e,{direction:"column",gap:"sm",align:"flex-end",className:"block-editor-global-styles-state-control",children:(0,hu.jsx)(Ih.DropdownMenu,{icon:h,label:s?p:(0,Hd.sprintf)((0,Hd.__)("State: %s"),g),popoverProps:{placement:"right-start",...a},text:s?p:void 0,toggleProps:b,children:({onClose:v})=>(0,hu.jsxs)(hu.Fragment,{children:[d&&(0,hu.jsx)(Ih.MenuGroup,{label:(0,Hd.__)("Viewport"),children:l.map(y=>(0,hu.jsx)(Ih.MenuItem,{onClick:()=>{n?.(y.value),f||v()},icon:o===y.value?Ps:null,children:y.label},`viewport-${y.value}`))}),f&&(0,hu.jsx)(Ih.MenuGroup,{label:(0,Hd.__)("Pseudo state"),children:u.map(y=>(0,hu.jsx)(Ih.MenuItem,{onClick:()=>{i?.(y.value),d||v()},icon:r===y.value?Ps:null,children:y.label},`pseudo-${y.value}`))})]})})})}var oMe=c(q(),1),o0=c(Z(),1);var Wd=c(T(),1),{Badge:Hlt}=K(oMe.privateApis);function $4({viewportStates:e=[],pseudoStates:t=[],viewportValue:o="default",pseudoStateValue:r="default",className:n="block-editor-global-styles-state-control__badges"}){let i=[],s=e.find(l=>l.value===o),a=t.find(l=>l.value===r);return s&&i.push({key:`viewport-${s.value}`,label:s.label,tooltipText:(0,o0.sprintf)((0,o0.__)("Style changes apply to the %s viewport."),s.label)}),a&&i.push({key:`pseudo-${a.value}`,label:a.label,tooltipText:(0,o0.sprintf)((0,o0.__)("Style changes apply to the %s state."),a.label)}),(0,Wd.jsx)($e,{className:n,direction:"row",justify:"flex-start",gap:"xs",wrap:"wrap",children:i.map(l=>{let u=(0,Wd.jsxs)(Hlt,{className:"block-editor-global-styles-state-control__badge",intent:"info",children:[l.label,!!l.tooltipText&&(0,Wd.jsx)(ht,{render:(0,Wd.jsx)("span",{}),children:l.tooltipText})]},l.key);return l.tooltipText?(0,Wd.jsxs)(ao.Root,{children:[(0,Wd.jsx)(ao.Trigger,{render:(0,Wd.jsx)("span",{className:"block-editor-global-styles-state-control__badge-tooltip-trigger",children:u})}),(0,Wd.jsx)(ao.Popup,{children:l.tooltipText})]},l.key):u})})}var PQ=c(T(),1),{getViewportBreakpoints:Wlt}=K(Lo),rMe={":hover":(0,Ph._x)("Hover","Name for the CSS pseudo-class selector"),":focus":(0,Ph._x)("Focus","Name for the CSS pseudo-class selector"),":focus-visible":(0,Ph._x)("Focus-visible","Name for the CSS pseudo-class selector"),":active":(0,Ph._x)("Active","Name for the CSS pseudo-class selector")},Ult={"@tablet":(0,Ph.__)("Tablet"),"@mobile":(0,Ph.__)("Mobile")};function Glt(e){let t=Wlt(e);return Object.entries(Ult).filter(([o])=>(o!=="@tablet"||t.tablet!==void 0)&&(o!=="@mobile"||t.mobile!==void 0)).map(([o,r])=>({value:o,label:r}))}var K4={"core/button":[":hover",":focus",":focus-visible",":active"],"core/navigation-link":[":hover",":focus",":focus-visible",":active"]};function nMe(e){return(K4[e]??[]).filter(o=>rMe[o]).map(o=>({value:o,label:rMe[o]}))}var IQ="default",$lt=[];function iMe({name:e,value:t,onChange:o}){let r=(0,Y4.useMemo)(()=>nMe(e),[e]),n=Vr();return r.length?(0,PQ.jsx)(G4,{pseudoStates:r,pseudoStateValue:t?.pseudo??IQ,onChangePseudoState:i=>o({pseudo:i}),popoverProps:n.popoverProps,showText:!1}):null}function sMe({name:e,value:t,isResponsiveEditing:o}){let r=(0,Y4.useMemo)(()=>nMe(e),[e]),[n]=je("viewport"),i=(0,Y4.useMemo)(()=>Glt(n),[n]);return!r.length&&!o?null:(0,PQ.jsx)($4,{viewportStates:o?i:$lt,pseudoStates:r,viewportValue:t?.viewport??IQ,pseudoStateValue:t?.pseudo??IQ})}var Ye=c(T(),1);function lMe({showAdvancedControls:e=!0,showPositionControls:t=!0,showBindingsControls:o=!0}){return(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)(Ve.Slot,{}),(0,Ye.jsx)(Ve.Slot,{group:"typography",label:(0,Ei.__)("Typography")}),(0,Ye.jsx)(Ve.Slot,{group:"color",label:(0,Ei.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,Ye.jsx)(Ve.Slot,{group:"background",label:(0,Ei.__)("Background"),className:"background-block-support-panel__inner-wrapper"}),(0,Ye.jsx)(Ve.Slot,{group:"layout",label:(0,Ei.__)("Layout")}),(0,Ye.jsx)(Ve.Slot,{group:"dimensions",label:(0,Ei.__)("Dimensions")}),(0,Ye.jsx)(Ve.Slot,{group:"border",label:(0,Ei.__)("Borders")}),(0,Ye.jsx)(Ve.Slot,{group:"elements",label:(0,Ei.__)("Elements"),className:"elements-block-support-panel__inner-wrapper"}),t&&(0,Ye.jsx)(c4,{}),(0,Ye.jsx)(Ve.Slot,{group:"styles"}),o&&(0,Ye.jsx)(Ve.Slot,{group:"bindings"}),e&&(0,Ye.jsx)("div",{children:(0,Ye.jsx)(a4,{})})]})}function Ylt({blockName:e,clientId:t,contentClientIds:o,isSectionBlock:r,selectedBlockStyleState:n}){let i=_i(n)&&!Aa(n),s=r&&e!=="core/template-part";return(0,Ye.jsxs)(Ye.Fragment,{children:[s&&(0,Ye.jsx)(U5,{value:n,children:(0,Ye.jsx)(TQ,{blockName:e,clientId:t,contentClientIds:o})}),!s&&(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)(Ve.Slot,{group:"typography",label:(0,Ei.__)("Typography")}),(0,Ye.jsx)(Ve.Slot,{group:"color",label:(0,Ei.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,Ye.jsx)(Ve.Slot,{group:"background",label:(0,Ei.__)("Background"),className:"background-block-support-panel__inner-wrapper"}),i&&(0,Ye.jsx)(Ve.Slot,{group:"layout",label:(0,Ei.__)("Layout")}),(0,Ye.jsx)(Ve.Slot,{group:"dimensions",label:(0,Ei.__)("Dimensions")}),(0,Ye.jsx)(Ve.Slot,{group:"border",label:(0,Ei.__)("Borders")}),(0,Ye.jsx)(Ve.Slot,{group:"elements",label:(0,Ei.__)("Elements"),className:"elements-block-support-panel__inner-wrapper"})]}),i&&(0,Ye.jsx)(Ve.Slot,{group:"viewport"})]})}function Klt(){let{selectedBlockCount:e,renderedBlockName:t,renderedBlockClientId:o,blockType:r,isSectionBlock:n,isSectionBlockInSelection:i,hasBlockStyles:s,editedContentOnlySection:a,blockEditingMode:l,selectedBlockStyleState:u,showStateOnCanvas:d,isResponsiveEditing:f,blockStatesEditingEnabled:p}=(0,fB.useSelect)(k=>{let{getSettings:x,getSelectedBlockClientId:C,getSelectedBlockClientIds:E,getSelectedBlockCount:R,getBlockName:S,getParentSectionBlock:I,isSectionBlock:O,getEditedContentOnlySection:A,isWithinEditedContentOnlySection:P,getBlockEditingMode:L,getSelectedBlockStyleState:H,isSelectedBlockStyleStateShownOnCanvas:N,isResponsiveEditing:M}=K(k(B)),{getBlockStyles:V}=k(r0.store),j=C(),z=P(j)?j:I(j)||j,$=z&&S(z),J=$&&(0,r0.getBlockType)($),W=E().some(G=>O(G)),X=$&&V($),U=X&&X.length>0;return{selectedBlockCount:R(),renderedBlockClientId:z,renderedBlockName:$,blockType:J,isSectionBlockInSelection:W,isSectionBlock:O(z),hasBlockStyles:U,editedContentOnlySection:A(),blockEditingMode:L(z),selectedBlockStyleState:H(z),showStateOnCanvas:N(z),isResponsiveEditing:M(),blockStatesEditingEnabled:x().blockStatesEditingEnabled}},[]),m=(0,fB.useSelect)(k=>{if(!n||!o)return[];let{getClientIdsOfDescendants:x,getBlockEditingMode:C,shouldRenderBlockListView:E}=K(k(B)),R=x(o),S=new Set;return R.forEach(I=>{E(I)&&x(I).forEach(A=>S.add(A))}),R.filter(I=>!S.has(I)&&C(I)==="contentOnly")},[n,o]),g=XAe(r?.name,m,n,s),h=g?.length>1,b=tMe(r),v=e>1,y=!Zn(u);if(v&&!i)return(0,Ye.jsxs)("div",{className:"block-editor-block-inspector",children:[(0,Ye.jsx)(YX,{}),h?(0,Ye.jsx)(RQ,{tabs:g}):(0,Ye.jsx)(lMe,{showAdvancedControls:!1,showPositionControls:!1,showBindingsControls:!1})]});if(v&&i)return(0,Ye.jsx)("div",{className:"block-editor-block-inspector",children:(0,Ye.jsx)(YX,{})});let _=t===(0,r0.getUnregisteredTypeHandlerName)();return!r||!o||_?(0,Ye.jsx)("span",{className:"block-editor-block-inspector__no-blocks",children:(0,Ei.__)("No block selected.")}):(0,Ye.jsx)(qlt,{animate:b,wrapper:k=>(0,Ye.jsx)(Zlt,{blockInspectorAnimationSettings:b,renderedBlockClientId:o,children:k}),children:(0,Ye.jsx)(Xlt,{renderedBlockClientId:o,blockName:r.name,isSectionBlock:n,availableTabs:g,contentClientIds:m,hasBlockStyles:s,editedContentOnlySection:a,blockEditingMode:l,selectedBlockStyleState:u,showStateOnCanvas:d,isResponsiveEditing:f,blockStatesEditingEnabled:p,isBlockStyleStateSelected:y})})}var qlt=({animate:e,wrapper:t,children:o})=>e?t(o):o,Zlt=({blockInspectorAnimationSettings:e,renderedBlockClientId:t,children:o})=>{let r=e&&e.enterDirection==="leftToRight"?-50:50;return(0,Ye.jsx)(n0.__unstableMotion.div,{animate:{x:0,opacity:1,transition:{ease:"easeInOut",duration:.14}},initial:{x:r,opacity:0},children:o},t)},Xlt=({renderedBlockClientId:e,blockName:t,isSectionBlock:o,availableTabs:r,contentClientIds:n,hasBlockStyles:i,editedContentOnlySection:s,blockEditingMode:a,selectedBlockStyleState:l,showStateOnCanvas:u,isResponsiveEditing:d,blockStatesEditingEnabled:f=!0})=>{let p=(0,aMe.useRef)(null),m=r?.length>1,g=Aa(l),h=_i(l)&&d||Aa(l),b=s&&s!==e,v=Ln(s),y=Ln(e),_=y.isSynced,{setSelectedBlockStyleState:w,setSelectedBlockStyleStateCanvasPreview:k}=K((0,fB.useDispatch)(B)),x=E=>{w(e,E)},C=E=>{k(e,E)};return(0,Ye.jsxs)("div",{className:"block-editor-block-inspector",children:[b&&(0,Ye.jsx)(aT,{...v,className:v?.isSynced&&"is-synced",parentClientId:s}),(0,Ye.jsx)(aT,{...y,allowParentNavigation:!0,className:_&&"is-synced",isChild:b,clientId:e,controls:a==="default"&&f&&(0,Ye.jsx)(iMe,{name:t,value:l,onChange:x})}),a==="default"&&h&&(0,Ye.jsxs)(n0.__experimentalSpacer,{paddingX:4,paddingY:2,children:[g&&(0,Ye.jsx)(n0.ToggleControl,{label:(0,Ei.__)("Show state on canvas"),checked:u,onChange:C}),(0,Ye.jsx)(sMe,{name:t,value:l,isResponsiveEditing:d})]}),(0,Ye.jsx)(bae,{clientId:e}),(0,Ye.jsx)(gOe,{clientId:e}),!h&&(0,Ye.jsx)(MV,{blockClientId:e}),(0,Ye.jsx)(xOe,{}),h&&(0,Ye.jsx)(Ylt,{clientId:e,contentClientIds:n,isSectionBlock:o,selectedBlockStyleState:l}),!h&&m&&(0,Ye.jsx)(Ye.Fragment,{children:(0,Ye.jsx)(RQ,{hasBlockStyles:i,clientId:e,blockName:t,tabs:r,isSectionBlock:o,contentClientIds:n})}),!h&&!m&&(0,Ye.jsxs)(Ye.Fragment,{children:[i&&(0,Ye.jsx)(lS,{clientId:e}),(0,Ye.jsx)(H4,{contentClientIds:n}),(0,Ye.jsx)(Ve.Slot,{group:"content"}),(0,Ye.jsx)(Ve.Slot,{group:"list",ref:p}),(0,Ye.jsx)(K5,{listViewRef:p}),!o&&(0,Ye.jsx)(lMe,{})]}),!h&&(0,Ye.jsx)(U4.Slot,{}),(0,Ye.jsx)(r4,{},"back")]})},cMe=Klt;var OQ=c(Nt(),1);var uMe=c(T(),1),dMe=()=>((0,OQ.default)("__unstableUseClipboardHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),dT());function fMe(e){return(0,OQ.default)("CopyHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),(0,uMe.jsx)("div",{...e,ref:dT()})}var pMe=c(ee(),1),AQ=c(F(),1);var MQ=c(T(),1),Qlt=()=>{};function Jlt({rootClientId:e,clientId:t,isAppender:o,showInserterHelpPanel:r,showMostUsedBlocks:n=!1,__experimentalInsertionIndex:i,__experimentalInitialTab:s,__experimentalInitialCategory:a,__experimentalFilterValue:l,onPatternCategorySelection:u,onSelect:d=Qlt,shouldFocusBlock:f=!1,onClose:p},m){let{destinationRootClientId:g}=(0,pMe.useSelect)(h=>{let{getBlockRootClientId:b}=h(B);return{destinationRootClientId:e||b(t)||void 0}},[t,e]);return(0,MQ.jsx)(uq,{onSelect:d,rootClientId:g,clientId:t,isAppender:o,showInserterHelpPanel:r,showMostUsedBlocks:n,__experimentalInsertionIndex:i,__experimentalFilterValue:l,onPatternCategorySelection:u,__experimentalInitialTab:s,__experimentalInitialCategory:a,shouldFocusBlock:f,ref:m,onClose:p})}var NQ=(0,AQ.forwardRef)(Jlt);function ect(e,t){return(0,MQ.jsx)(NQ,{...e,onPatternCategorySelection:void 0,ref:t})}var mMe=(0,AQ.forwardRef)(ect);var gMe=c(Nt(),1);function hMe(){return(0,gMe.default)("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in.",since:"5.8"}),null}var bMe=c(ue(),1),pB=c(Dt(),1),Oh=c(wo(),1),yMe=c(T(),1),tct=window.navigator.userAgent.indexOf("Trident")!==-1,oct=new Set([Oh.UP,Oh.DOWN,Oh.LEFT,Oh.RIGHT]),rct=.75;function LQ(){return(0,bMe.useRefEffect)(e=>{let{ownerDocument:t}=e,{defaultView:o}=t,r,n,i;function s(){r||(r=o.requestAnimationFrame(()=>{f(),r=null}))}function a(h){n&&o.cancelAnimationFrame(n),n=o.requestAnimationFrame(()=>{l(h),n=null})}function l({keyCode:h}){if(!m())return;let b=(0,pB.computeCaretRect)(o);if(!b)return;if(!i){i=b;return}if(oct.has(h)){i=b;return}let v=b.top-i.top;if(v===0)return;let y=(0,pB.getScrollContainer)(e);if(!y)return;let _=y===t.body||y===t.documentElement,w=_?o.scrollY:y.scrollTop,k=_?0:y.getBoundingClientRect().top,x=_?i.top/o.innerHeight:(i.top-k)/(o.innerHeight-k);if(w===0&&x<rct&&g()){i=b;return}let C=_?o.innerHeight:y.clientHeight;if(i.top+i.height>k+C||i.top<k){i=b;return}_?o.scrollBy(0,v):y.scrollTop+=v}function u(){t.addEventListener("selectionchange",d)}function d(){t.removeEventListener("selectionchange",d),f()}function f(){m()&&(i=(0,pB.computeCaretRect)(o))}function p(){let{activeElement:h}=t;if(!h)return null;if(!h.isContentEditable||!h.contains(e))return h;let{anchorNode:b}=o.getSelection();return b?(b.nodeType===b.ELEMENT_NODE?b:b.parentElement)?.closest('[contenteditable="true"]')??null:null}function m(){let h=p();return!!h&&e.contains(h)&&h.isContentEditable}function g(){let h=e.querySelectorAll('[contenteditable="true"]');return h[h.length-1]===p()}return o.addEventListener("scroll",s,!0),o.addEventListener("resize",s,!0),e.addEventListener("keydown",a),e.addEventListener("keyup",l),e.addEventListener("mousedown",u),e.addEventListener("touchstart",u),()=>{o.removeEventListener("scroll",s,!0),o.removeEventListener("resize",s,!0),e.removeEventListener("keydown",a),e.removeEventListener("keyup",l),e.removeEventListener("mousedown",u),e.removeEventListener("touchstart",u),t.removeEventListener("selectionchange",d),o.cancelAnimationFrame(r),o.cancelAnimationFrame(n)}},[])}function nct({children:e}){return(0,yMe.jsx)("div",{ref:LQ(),className:"block-editor__typewriter",children:e})}var ict=tct?e=>e.children:nct,vMe=ict;var Vv=c(F(),1),DQ=c(Nt(),1);var VQ=c(T(),1),q4=(0,Vv.createContext)({});q4.displayName="RenderedRefsContext";function sct(e,t,o){let r={...e,[t]:e[t]?new Set(e[t]):new Set};return r[t].add(o),r}function FQ({children:e,uniqueId:t,blockName:o=""}){let r=(0,Vv.useContext)(q4),{name:n}=kt();o=o||n;let i=(0,Vv.useMemo)(()=>sct(r,o,t),[r,o,t]);return(0,VQ.jsx)(q4.Provider,{value:i,children:e})}function zQ(e,t=""){let o=(0,Vv.useContext)(q4),{name:r}=kt();return t=t||r,!!o[t]?.has(e)}var _Me=e=>((0,DQ.default)("wp.blockEditor.__experimentalRecursionProvider",{since:"6.5",alternative:"wp.blockEditor.RecursionProvider"}),(0,VQ.jsx)(FQ,{...e})),wMe=(...e)=>((0,DQ.default)("wp.blockEditor.__experimentalUseHasRecursion",{since:"6.5",alternative:"wp.blockEditor.useHasRecursion"}),zQ(...e));var X4=c(q(),1),jQ=c(Z(),1),HQ=c(F(),1),xMe=c(Ul(),1);var Wp=c(q(),1);var kMe=c(Z(),1);var Ud=c(T(),1);function Z4({title:e,help:t,actions:o=[],onClose:r}){return(0,Ud.jsxs)(Wp.__experimentalVStack,{className:"block-editor-inspector-popover-header",spacing:4,children:[(0,Ud.jsxs)(Wp.__experimentalHStack,{alignment:"center",children:[(0,Ud.jsx)(ir,{variant:"heading-md",render:(0,Ud.jsx)("h2",{}),className:"block-editor-inspector-popover-header__heading",children:e}),(0,Ud.jsx)(Wp.__experimentalSpacer,{}),o.map(({label:n,icon:i,onClick:s})=>(0,Ud.jsx)(Wp.Button,{size:"small",className:"block-editor-inspector-popover-header__action",label:n,icon:i,variant:!i&&"tertiary",onClick:s,children:!i&&n},n)),r&&(0,Ud.jsx)(Wp.Button,{size:"small",className:"block-editor-inspector-popover-header__action",label:(0,kMe.__)("Close"),icon:pb,onClick:r})]}),t&&(0,Ud.jsx)(ir,{children:t})]})}var i0=c(T(),1);function act({onClose:e,onChange:t,showPopoverHeader:o=!0,showPopoverHeaderActions:r,isCompact:n,currentDate:i,title:s,...a},l){let u={startOfWeek:(0,xMe.getSettings)().l10n.startOfWeek,onChange:t,currentDate:n?void 0:i,currentTime:n?i:void 0,...a},d=n?X4.TimePicker:X4.DateTimePicker;return(0,i0.jsxs)("div",{ref:l,className:"block-editor-publish-date-time-picker",children:[o&&(0,i0.jsx)(Z4,{title:s||(0,jQ.__)("Publish"),actions:r?[{label:(0,jQ.__)("Reset"),onClick:()=>t?.(null)}]:void 0,onClose:e}),(0,i0.jsx)(d,{...u})]})}var WQ=(0,HQ.forwardRef)(act);function lct(e,t){return(0,i0.jsx)(WQ,{...e,showPopoverHeaderActions:!0,isCompact:!1,ref:t})}var SMe=(0,HQ.forwardRef)(lct);var CMe=c(Nt(),1),EMe=c(F(),1);function cct(){return(0,CMe.default)("wp.blockEditor.ToolSelector",{since:"6.9",hint:"The ToolSelector component no longer renders anything."}),null}var TMe=(0,EMe.forwardRef)(cct);var gB=c(T(),1),Xe=e=>{if(e===null||typeof e!="object"||Array.isArray(e))return e;let t=Object.entries(e).map(([o,r])=>[o,Xe(r)]).filter(([,o])=>o!==void 0);return t.length?Object.fromEntries(t):void 0};function S4(e,t,o,r,n,i){if(Object.values(e??{}).every(l=>!l)||i.length===1&&o.innerBlocks.length===r.length)return o;let s=r[0]?.attributes;if(i.length>1&&r.length>1)if(r[n])s=r[n]?.attributes;else return o;let a=o;return Object.entries(e).forEach(([l,u])=>{u&&t[l].forEach(d=>{let f=bf(s,d);f&&(a={...a,attributes:Ue(a.attributes,d,f)})})}),a}function io(e,t,o){let n=(0,RMe.getBlockSupport)(e,t)?.__experimentalSkipSerialization;return Array.isArray(n)?n.includes(o):n}var Up=new WeakMap;function Qc({id:e,css:t}){return Ga({id:e,css:t})}function Ga({id:e,css:t,assets:o,__unstableType:r,variation:n,clientId:i}={}){let{setStyleOverride:s,deleteStyleOverride:a}=K((0,Q4.useDispatch)(B)),l=(0,Q4.useRegistry)(),u=(0,sc.useId)();(0,sc.useEffect)(()=>{if(!t&&!o)return;let d=e||u,f={id:e,css:t,assets:o,__unstableType:r,variation:n,clientId:i};return Up.get(l)||Up.set(l,[]),Up.get(l).push([d,f]),window.queueMicrotask(()=>{Up.get(l)?.length&&l.batch(()=>{Up.get(l).forEach(p=>{s(...p)}),Up.set(l,[])})}),()=>{Up.get(l)?.find(([m])=>m===d)?Up.set(l,Up.get(l).filter(([m])=>m!==d)):a(d)}},[e,t,i,o,r,u,s,a,l,n])}function jd(e,t){let[o,r,n,i,s,a,l,u,d,f,p,m,g,h,b,v,y,_,w,k,x,C,E,R,S,I,O,A,P,L,H,N,M,V,j,D,z,$,J,Q,W,X,U,G,te,re,ae,ie,be,pe,ke,ye,Pe,_e,ve,Se,fe,Ce,ne,se,Ee,he,Ae]=je("background.backgroundImage","background.backgroundSize","background.gradient","typography.fontFamilies.custom","typography.fontFamilies.default","typography.fontFamilies.theme","typography.defaultFontSizes","typography.fontSizes.custom","typography.fontSizes.default","typography.fontSizes.theme","typography.customFontSize","typography.fontStyle","typography.fontWeight","typography.lineHeight","typography.textAlign","typography.textColumns","typography.textDecoration","typography.textIndent","typography.writingMode","typography.textTransform","typography.letterSpacing","spacing.padding","spacing.margin","spacing.blockGap","spacing.defaultSpacingSizes","spacing.customSpacingSize","spacing.spacingSizes.custom","spacing.spacingSizes.default","spacing.spacingSizes.theme","spacing.units","dimensions.aspectRatio","dimensions.height","dimensions.minHeight","dimensions.minWidth","dimensions.width","dimensions.dimensionSizes","layout","border.color","border.radius","border.style","border.width","border.radiusSizes","color.custom","color.palette.custom","color.customDuotone","color.palette.theme","color.palette.default","color.defaultPalette","color.defaultDuotone","color.duotone.custom","color.duotone.theme","color.duotone.default","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients","color.customGradient","color.background","color.link","color.text","color.heading","color.button","shadow"),et=(0,sc.useMemo)(()=>({background:{backgroundImage:o,backgroundSize:r,gradient:n},color:{palette:{custom:G,theme:re,default:ae},gradients:{custom:Pe,theme:_e,default:ve},duotone:{custom:pe,theme:ke,default:ye},defaultGradients:Se,defaultPalette:ie,defaultDuotone:be,custom:U,customGradient:fe,customDuotone:te,background:Ce,link:ne,heading:Ee,button:he,text:se},typography:{fontFamilies:{custom:i,default:s,theme:a},fontSizes:{custom:u,default:d,theme:f},customFontSize:p,defaultFontSizes:l,fontStyle:m,fontWeight:g,lineHeight:h,textAlign:b,textColumns:v,textDecoration:y,textIndent:_,textTransform:k,letterSpacing:x,writingMode:w},spacing:{spacingSizes:{custom:O,default:A,theme:P},customSpacingSize:I,defaultSpacingSizes:S,padding:C,margin:E,blockGap:R,units:L},border:{color:$,radius:J,style:Q,width:W,radiusSizes:X},dimensions:{aspectRatio:H,height:N,minHeight:M,minWidth:V,width:j,dimensionSizes:D},layout:z,parentLayout:t,shadow:Ae}),[o,r,n,i,s,a,l,u,d,f,p,m,g,h,b,v,y,_,k,x,w,C,E,R,S,I,O,A,P,L,H,N,M,V,j,D,z,t,$,J,Q,W,X,U,G,te,re,ae,ie,be,pe,ke,ye,Pe,_e,ve,Se,fe,Ce,ne,se,Ee,he,Ae]);return d4(et,e)}function BMe(e){e=e.map(o=>({...o,Edit:(0,sc.memo)(o.edit)}));let t=(0,UQ.createHigherOrderComponent)(o=>function(n){let i=kt();return[...e.map((s,a)=>{let{Edit:l,hasSupport:u,attributeKeys:d=[],shareWithChildBlocks:f,supportsPatternEditing:p}=s;if(!(p&&i[r_]||i[Nu]||i[o_]&&f)||!u(n.name))return null;let g={};for(let h of d)n.attributes[h]&&(g[h]=n.attributes[h]);return(0,gB.jsx)(l,{name:n.name,isSelected:n.isSelected,clientId:n.clientId,setAttributes:n.setAttributes,__unstableParentLayout:n.__unstableParentLayout,...g},a)}),(0,gB.jsx)(o,{...n},"edit")]},"withBlockEditHooks");(0,mB.addFilter)("editor.BlockEdit","core/editor/hooks",t)}function uct({index:e,useBlockProps:t,setAllWrapperProps:o,...r}){let n=t(r),i=s=>o(a=>{let l=[...a];return l[e]=s,l});return(0,sc.useEffect)(()=>(i(n),()=>{i(void 0)})),null}var dct=(0,sc.memo)(uct);function IMe(e){let t=(0,UQ.createHigherOrderComponent)(o=>function(n){let[i,s]=(0,sc.useState)(Array(e.length).fill(void 0));return[...e.map((a,l)=>{let{hasSupport:u,attributeKeys:d=[],useBlockProps:f,isMatch:p}=a,m={};for(let g of d)n.attributes[g]&&(m[g]=n.attributes[g]);return!Object.keys(m).length||!u(n.name)||p&&!p(m)?null:(0,gB.jsx)(dct,{index:l,useBlockProps:f,setAllWrapperProps:s,name:n.name,clientId:n.clientId,...m},l)}),(0,gB.jsx)(o,{...n,wrapperProps:i.filter(Boolean).reduce((a,l)=>({...a,...l,className:Y(a.className,l.className),style:{...a.style,...l.style}}),n.wrapperProps||{})},"edit")]},"withBlockListBlockHooks");(0,mB.addFilter)("editor.BlockListBlock","core/editor/hooks",t)}function PMe(e){function t(o,r,n){return e.reduce((i,s)=>{let{hasSupport:a,attributeKeys:l=[],addSaveProps:u}=s,d={};for(let f of l)n[f]&&(d[f]=n[f]);return!Object.keys(d).length||!a(r)?i:u(i,r,d)},o)}(0,mB.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",t,0),(0,mB.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",o=>(o.hasOwnProperty("className")&&!o.className&&delete o.className,o))}var OMe=c(ce(),1),AMe=c(Bo(),1);function fct(e){let{apiVersion:t=1}=e;return t<2&&(0,OMe.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}(0,AMe.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",fct);function MMe(e){e.hasAttribute("crossorigin")||e.setAttribute("crossorigin","anonymous")}if(window.crossOriginIsolated){let e=function(){document.body?t.observe(document.body,{childList:!0,attributes:!0,subtree:!0}):document.readyState==="loading"&&document.addEventListener("DOMContentLoaded",()=>{document.body&&t.observe(document.body,{childList:!0,attributes:!0,subtree:!0})})};pct=e;let t=new window.MutationObserver(o=>{o.forEach(r=>{[r.addedNodes,r.target].forEach(n=>{(n instanceof window.NodeList?n:[n]).forEach(s=>{let a=s;a.querySelectorAll&&(a.querySelectorAll("source,script,video,link").forEach(l=>{MMe(l)}),["SOURCE","SCRIPT","VIDEO","LINK"].includes(a.nodeName)&&MMe(a))})})})});e()}var pct;var NMe=c(Bo(),1),ac=c(ce(),1);var GQ=c(T(),1),$Q=["left","center","right","wide","full"],mct=["wide","full"];function YQ(e,t=!0,o=!0){let r;return Array.isArray(e)?r=$Q.filter(n=>e.includes(n)):e===!0?r=[...$Q]:r=[],!o||e===!0&&!t?r.filter(n=>!mct.includes(n)):r}function gct(e){return"type"in(e.attributes?.align??{})||(0,ac.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...$Q,""]}}),e}function hct({name:e,align:t,setAttributes:o}){let r=YQ((0,ac.getBlockSupport)(e,"align"),(0,ac.hasBlockSupport)(e,"alignWide",!0)),n=_1(r).map(({name:a})=>a),i=jr();return!n.length||i!=="default"?null:(0,GQ.jsx)(Ko,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,GQ.jsx)(nO,{value:t,onChange:a=>{a||(0,ac.getBlockType)(e)?.attributes?.align?.default&&(a=""),o({align:a})},controls:n})})}var J4={shareWithChildBlocks:!0,edit:hct,useBlockProps:bct,addSaveProps:yct,attributeKeys:["align"],hasSupport(e){return(0,ac.hasBlockSupport)(e,"align",!1)}};function bct({name:e,align:t}){let o=YQ((0,ac.getBlockSupport)(e,"align"),(0,ac.hasBlockSupport)(e,"alignWide",!0));return _1(o).some(n=>n.name===t)?{"data-align":t}:{}}function yct(e,t,o){let{align:r}=o,n=(0,ac.getBlockSupport)(t,"align"),i=(0,ac.hasBlockSupport)(t,"alignWide",!0);return YQ(n,i).includes(r)&&(e.className=Y(`align${r}`,e.className)),e}(0,NMe.addFilter)("blocks.registerBlockType","core/editor/align/addAttribute",gct);var LMe=c(Bo(),1);function vct(e){return"type"in(e.attributes?.lock??{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}(0,LMe.addFilter)("blocks.registerBlockType","core/lock/addAttribute",vct);var QQ=c(Bo(),1),u0=c(ce(),1);var hB=c(q(),1),oF=c(Z(),1),KMe=c(F(),1),qMe=c(ee(),1),rF=c(ce(),1);var lc=c(q(),1),GMe=c(F(),1),c0=c(Z(),1),$Me=c(ee(),1);var ZQ=c(ce(),1),HMe=c(ee(),1),l0=c(q(),1),bu=c(Z(),1),eF=c(F(),1),WMe=c(ue(),1),UMe=c(Yo(),1);var KQ=c(F(),1),FMe=c(ue(),1),zMe=c(q(),1);var DMe=c(q(),1);var s0=c(T(),1);function _ct({blockTypes:e,value:t,onItemChange:o}){return(0,s0.jsx)("ul",{className:"block-editor-block-manager__checklist",children:e.map(r=>(0,s0.jsxs)("li",{className:"block-editor-block-manager__checklist-item",children:[(0,s0.jsx)(DMe.CheckboxControl,{label:r.title,checked:t.includes(r.name),onChange:(...n)=>o(r,...n)}),(0,s0.jsx)(Lt,{icon:r.icon})]},r.name))})}var VMe=_ct;var a0=c(T(),1);function jMe({title:e,blockTypes:t,selectedBlockTypes:o,onChange:r}){let n=(0,FMe.useInstanceId)(jMe),i=(0,KQ.useCallback)((f,p)=>{r(p?[...o,f]:o.filter(({name:m})=>m!==f.name))},[o,r]),s=(0,KQ.useCallback)(f=>{r(f?[...o,...t.filter(p=>!o.find(({name:m})=>m===p.name))]:o.filter(p=>!t.find(({name:m})=>m===p.name)))},[t,o,r]);if(!t.length)return null;let a=t.map(({name:f})=>f).filter(f=>(o??[]).some(p=>p.name===f)),l="block-editor-block-manager__category-title-"+n,u=a.length===t.length,d=!u&&a.length>0;return(0,a0.jsxs)("div",{role:"group","aria-labelledby":l,className:"block-editor-block-manager__category",children:[(0,a0.jsx)(zMe.CheckboxControl,{checked:u,onChange:s,className:"block-editor-block-manager__category-title",indeterminate:d,label:(0,a0.jsx)("span",{id:l,children:e})}),(0,a0.jsx)(VMe,{blockTypes:t,value:a,onItemChange:i})]})}var qQ=jMe;var Gp=c(T(),1);function tF({blockTypes:e,selectedBlockTypes:t,onChange:o,showSelectAll:r=!0}){let n=(0,WMe.useDebounce)(UMe.speak,500),[i,s]=(0,eF.useState)(""),{categories:a,isMatchingSearchTerm:l}=(0,HMe.useSelect)(p=>({categories:p(ZQ.store).getCategories(),isMatchingSearchTerm:p(ZQ.store).isMatchingSearchTerm}),[]),u=e.filter(p=>!i||l(p,i)),d=t.length>0&&t.length!==e.length,f=e.length>0&&t.length===e.length;return(0,eF.useEffect)(()=>{if(!i)return;let p=u.length,m=(0,bu.sprintf)((0,bu._n)("%d result found.","%d results found.",p),p);n(m)},[u?.length,i,n]),(0,Gp.jsxs)(l0.__experimentalVStack,{className:"block-editor-block-manager__content",spacing:4,children:[(0,Gp.jsx)(l0.SearchControl,{label:(0,bu.__)("Search for a block"),placeholder:(0,bu.__)("Search for a block"),value:i,onChange:p=>s(p),className:"block-editor-block-manager__search"}),r&&(0,Gp.jsx)(l0.CheckboxControl,{className:"block-editor-block-manager__select-all",label:(0,bu.__)("Select all"),checked:f,onChange:()=>{o(f?[]:e)},indeterminate:d}),(0,Gp.jsxs)("div",{tabIndex:"0",role:"region","aria-label":(0,bu.__)("Available block types"),className:"block-editor-block-manager__results",children:[u.length===0&&(0,Gp.jsx)("p",{className:"block-editor-block-manager__no-results",children:(0,bu.__)("No blocks found.")}),a.map(p=>(0,Gp.jsx)(qQ,{title:p.title,blockTypes:u.filter(m=>m.category===p.slug),selectedBlockTypes:t,onChange:o},p.slug)),(0,Gp.jsx)(qQ,{title:(0,bu.__)("Uncategorized"),blockTypes:u.filter(({category:p})=>!p),selectedBlockTypes:t,onChange:o})]})]})}var yu=c(T(),1);function YMe({clientId:e,blockTypes:t,selectedBlockTypes:o,onClose:r}){let[n,i]=(0,GMe.useState)(o),{updateBlockAttributes:s}=(0,$Me.useDispatch)(B),a=()=>{let l=n.length===t.length,u=n.map(({name:d})=>d);s(e,{allowedBlocks:l?void 0:u}),r()};return(0,yu.jsx)(lc.Modal,{title:(0,c0._x)("Manage allowed blocks","modal title"),onRequestClose:r,overlayClassName:"block-editor-block-allowed-blocks-modal",focusOnMount:"firstContentElement",size:"medium",children:(0,yu.jsxs)(lc.__experimentalVStack,{as:"form",onSubmit:l=>{l.preventDefault(),a()},spacing:"4",children:[(0,yu.jsx)(ir,{children:(0,c0.__)("Select which blocks can be added inside this container.")}),(0,yu.jsx)(tF,{blockTypes:t,selectedBlockTypes:n,onChange:l=>{i(l)}}),(0,yu.jsxs)(lc.Flex,{className:"block-editor-block-allowed-blocks-modal__actions",justify:"flex-end",expanded:!1,children:[(0,yu.jsx)(lc.FlexItem,{children:(0,yu.jsx)(lc.Button,{variant:"tertiary",onClick:r,__next40pxDefaultSize:!0,children:(0,c0.__)("Cancel")})}),(0,yu.jsx)(lc.FlexItem,{children:(0,yu.jsx)(lc.Button,{variant:"primary",type:"submit",__next40pxDefaultSize:!0,children:(0,c0.__)("Apply")})})]})]})})}var Fv=c(T(),1);function ZMe({clientId:e}){let[t,o]=(0,KMe.useState)(!1),{blockTypes:r,selectedBlockNames:n}=(0,qMe.useSelect)(a=>{let{getBlockAttributes:l}=a(B);return{blockTypes:a(rF.store).getBlockTypes(),selectedBlockNames:l(e)?.allowedBlocks}},[e]),i=r.filter(a=>(0,rF.hasBlockSupport)(a,"inserter",!0)&&(!a.parent||a.parent.includes("core/post-content")));if(!i)return null;let s=n===void 0?i:i.filter(a=>n.includes(a.name));return(0,Fv.jsxs)("div",{className:"block-editor-block-allowed-blocks-control",children:[(0,Fv.jsxs)(hB.BaseControl,{help:(0,oF.__)("Specify which blocks are allowed inside this container."),children:[(0,Fv.jsx)(hB.BaseControl.VisualLabel,{children:(0,oF.__)("Allowed Blocks")}),(0,Fv.jsx)(hB.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{o(!0)},className:"block-editor-block-allowed-blocks-control__button",children:(0,oF.__)("Manage allowed blocks")})]}),t&&(0,Fv.jsx)(YMe,{clientId:e,blockTypes:i,selectedBlockTypes:s,onClose:()=>o(!1)})]})}var XQ=c(T(),1);function wct({clientId:e}){return jr()==="contentOnly"?null:(0,XQ.jsx)(YT.Fill,{children:(0,XQ.jsx)(ZMe,{clientId:e})})}var XMe={edit:wct,attributeKeys:["allowedBlocks"],hasSupport(e){return(0,u0.hasBlockSupport)(e,"allowedBlocks")}};function kct(e){return e?.attributes?.allowedBlocks?.type||(0,u0.hasBlockSupport)(e,"allowedBlocks")&&(e.attributes={...e.attributes,allowedBlocks:{type:"array"}}),e}(0,QQ.addFilter)("blocks.registerBlockType","core/allowedBlocks/attribute",kct);function xct(e,t,o,r){if(!(0,u0.hasBlockSupport)(e.name,"allowedBlocks")||t.length!==1&&r.length===1&&e.innerBlocks.length===t.length||r.length===1&&t.length>1||r.length>1&&t.length===1||r.length>1&&t.length>1&&r.length!==t.length||e.attributes.allowedBlocks)return e;let n=t[o]?.attributes?.allowedBlocks;if(!n)return e;let s=(0,u0.getBlockType)(e.name)?.allowedBlocks||[];if(!s.length)return{...e,attributes:{...e.attributes,allowedBlocks:n}};let a=n.filter(l=>s.includes(l));return{...e,attributes:{...e.attributes,allowedBlocks:a}}}(0,QQ.addFilter)("blocks.switchToBlockType.transformedBlock","core/allowedBlocks/addTransforms",xct);var QMe=c(Bo(),1),nF=c(q(),1),bB=c(Z(),1),iF=c(ce(),1);var Ah=c(T(),1),Sct=/[\s#]/g;function Cct(e){return"type"in(e.attributes?.anchor??{})||(0,iF.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:{type:"string"}}),e}function Ect({anchor:e,setAttributes:t}){return jr()!=="default"?null:(0,Ah.jsx)(Ve,{group:"advanced",children:(0,Ah.jsx)(nF.TextControl,{className:"html-anchor-control",label:(0,bB.__)("HTML anchor"),help:(0,Ah.jsxs)(Ah.Fragment,{children:[(0,bB.__)("Enter a word or two\u2014without spaces\u2014to make a unique web address just for this block, called an \u201Canchor\u201D. Then, you\u2019ll be able to link directly to this section of your page.")," ",(0,Ah.jsx)(nF.ExternalLink,{href:(0,bB.__)("https://wordpress.org/documentation/article/page-jumps/"),children:(0,bB.__)("Learn more about anchors")})]}),value:e||"",placeholder:null,onChange:r=>{r=r.replace(Sct,"-"),t({anchor:r!==""?r:void 0})},autoCapitalize:"none",autoComplete:"off"})})}var JQ={addSaveProps:Tct,edit:Ect,attributeKeys:["anchor"],hasSupport(e){return(0,iF.hasBlockSupport)(e,"anchor")}};function Tct(e,t,o){return(0,iF.hasBlockSupport)(t,"anchor")&&(e.id=o.anchor===""?null:o.anchor),e}(0,QMe.addFilter)("blocks.registerBlockType","core/anchor/attribute",Cct);var JMe=c(Bo(),1),sF=c(ce(),1);function Rct(e){return e?.attributes?.ariaLabel?.type||(0,sF.hasBlockSupport)(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:{type:"string"}}),e}function Bct(e,t,o){return(0,sF.hasBlockSupport)(t,"ariaLabel")&&!io(t,"ariaLabel","ariaLabel")&&(e["aria-label"]=o.ariaLabel===""?null:o.ariaLabel),e}var eNe={addSaveProps:Bct,attributeKeys:["ariaLabel"],hasSupport(e){return(0,sF.hasBlockSupport)(e,"ariaLabel")}};(0,JMe.addFilter)("blocks.registerBlockType","core/ariaLabel/attribute",Rct);var R0=c(ce(),1),t5e=c(ue(),1),l8=c(q(),1),c8=c(ee(),1);var eJ=c(Z(),1);var cr="isAny",ur="isNone",aF="isAll",Ki="isNotAll",Cn="between",ks="inThePast",aa="over",Er="is",Tr="isNot",Mh="lessThan",Nh="greaterThan",Lh="lessThanOrEqual",Dh="greaterThanOrEqual",vu="before",_u="after",wu="beforeInc",ku="afterInc",Gd="contains",$d="notContains",Yd="startsWith",xu="on",Su="notOn";var tPo={asc:(0,eJ.__)("Sort ascending"),desc:(0,eJ.__)("Sort descending")};var yB=c(F(),1),Ict=[];function la({elements:e,getElements:t}){let o=Array.isArray(e)&&e.length>0?e:Ict,[r,n]=(0,yB.useState)(o),[i,s]=(0,yB.useState)(!1);return(0,yB.useEffect)(()=>{if(!t){n(o);return}let a=!1;return s(!0),t().then(l=>{if(!a){let u=Array.isArray(l)&&l.length>0?l:o;n(u)}}).catch(()=>{a||n(o)}).finally(()=>{a||s(!1)}),()=>{a=!0}},[t,o]),{elements:r,isLoading:i}}var qe=c(Z(),1),Hr=c(F(),1),vB=c(Ul(),1);var Pct=/(?:[Zz]|[+-](?:[01]\d|2[0-3]):?[0-5]\d)$/,Oct=["HH:mm","HH:mm:ss"],Act=new Date(2e3,0,1);function xs(e){if(typeof e!="string")return null;let t=e.trim().replace(Pct,"");for(let o of Oct){let r=Lme(t,o,Act);if(Vc(r))return r.getHours()*3600+r.getMinutes()*60+r.getSeconds()}return null}var tJ=c(T(),1),dn={Name:(0,tJ.jsx)("span",{className:"dataviews-filters__summary-filter-text-name"}),Value:(0,tJ.jsx)("span",{className:"dataviews-filters__summary-filter-text-value"})};function d0(e,t){let o=xs(t);return o!==null?[xs(e)??NaN,o]:[(0,vB.getDate)(e).getTime(),(0,vB.getDate)(t).getTime()]}function tNe(e,t){switch(t){case"days":return vy(new Date,e);case"weeks":return Hme(new Date,e);case"months":return vL(new Date,e);case"years":return _L(new Date,e);default:return new Date}}var oNe={label:(0,qe.__)("Is none of"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is none of: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),dn),filter:((e,t,o)=>{if(!o?.length)return!0;let r=t.getValue({item:e});return Array.isArray(r)?!o.some(n=>r.includes(n)):typeof r=="string"||typeof r=="number"?!o.includes(r):!1}),selection:"multi"},rNe=[{name:cr,label:(0,qe.__)("Includes"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s includes: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),dn),filter(e,t,o){if(!o?.length)return!0;let r=t.getValue({item:e});return Array.isArray(r)?o.some(n=>r.includes(n)):typeof r=="string"||typeof r=="number"?o.includes(r):!1},selection:"multi"},{name:ur,...oNe},{name:aF,label:(0,qe.__)("Includes all"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s includes all: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),dn),filter(e,t,o){if(!o?.length)return!0;let r=t.getValue({item:e});return Array.isArray(r)?o.every(n=>r.includes(n)):!1},selection:"multi"},{name:Ki,...oNe},{name:Cn,label:(0,qe.__)("Between (inc)"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s between (inc): </Name><Value>%2$s and %3$s</Value>"),e.name,t[0].label[0],t[0].label[1]),dn),filter(e,t,o){if(!Array.isArray(o)||o.length!==2||o.includes(void 0)||o.includes("")||o.includes(null))return!0;let r=t.getValue({item:e}),[n,i]=o.map(xs);if(n!==null&&i!==null){let s=xs(r);return s!==null&&s>=n&&s<=i}return typeof r=="number"||r instanceof Date||typeof r=="string"?r>=o[0]&&r<=o[1]:!1},selection:"custom"},{name:ks,label:(0,qe.__)("In the past"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is in the past: </Name><Value>%2$s</Value>"),e.name,`${t[0].value.value} ${t[0].value.unit}`),dn),filter(e,t,o){if(o?.value===void 0||o?.unit===void 0)return!0;let r=tNe(o.value,o.unit),n=(0,vB.getDate)(t.getValue({item:e}));return n>=r&&n<=new Date},selection:"custom"},{name:aa,label:(0,qe.__)("Over"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is over: </Name><Value>%2$s</Value>"),e.name,`${t[0].value.value} ${t[0].value.unit}`),dn),filter(e,t,o){if(o?.value===void 0||o?.unit===void 0)return!0;let r=tNe(o.value,o.unit);return(0,vB.getDate)(t.getValue({item:e}))<r},selection:"custom"},{name:Er,label:(0,qe.__)("Is"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),e.name,t[0].label),dn),filter(e,t,o){return o===t.getValue({item:e})||o===void 0},selection:"single"},{name:Tr,label:(0,qe.__)("Is not"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),e.name,t[0].label),dn),filter(e,t,o){return o!==t.getValue({item:e})},selection:"single"},{name:Mh,label:(0,qe.__)("Less than"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is less than: </Name><Value>%2$s</Value>"),e.name,t[0].label),dn),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})<o},selection:"single"},{name:Nh,label:(0,qe.__)("Greater than"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is greater than: </Name><Value>%2$s</Value>"),e.name,t[0].label),dn),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})>o},selection:"single"},{name:Lh,label:(0,qe.__)("Less than or equal"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is less than or equal to: </Name><Value>%2$s</Value>"),e.name,t[0].label),dn),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})<=o},selection:"single"},{name:Dh,label:(0,qe.__)("Greater than or equal"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is greater than or equal to: </Name><Value>%2$s</Value>"),e.name,t[0].label),dn),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})>=o},selection:"single"},{name:vu,label:(0,qe.__)("Before"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is before: </Name><Value>%2$s</Value>"),e.name,t[0].label),dn),filter(e,t,o){if(o===void 0)return!0;let[r,n]=d0(t.getValue({item:e}),o);return r<n},selection:"single"},{name:_u,label:(0,qe.__)("After"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is after: </Name><Value>%2$s</Value>"),e.name,t[0].label),dn),filter(e,t,o){if(o===void 0)return!0;let[r,n]=d0(t.getValue({item:e}),o);return r>n},selection:"single"},{name:wu,label:(0,qe.__)("Before (inc)"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is on or before: </Name><Value>%2$s</Value>"),e.name,t[0].label),dn),filter(e,t,o){if(o===void 0)return!0;let[r,n]=d0(t.getValue({item:e}),o);return r<=n},selection:"single"},{name:ku,label:(0,qe.__)("After (inc)"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is on or after: </Name><Value>%2$s</Value>"),e.name,t[0].label),dn),filter(e,t,o){if(o===void 0)return!0;let[r,n]=d0(t.getValue({item:e}),o);return r>=n},selection:"single"},{name:Gd,label:(0,qe.__)("Contains"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s contains: </Name><Value>%2$s</Value>"),e.name,t[0].label),dn),filter(e,t,o){if(o===void 0)return!0;let r=t.getValue({item:e});return typeof r=="string"&&o&&r.toLowerCase().includes(String(o).toLowerCase())},selection:"single"},{name:$d,label:(0,qe.__)("Doesn't contain"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s doesn't contain: </Name><Value>%2$s</Value>"),e.name,t[0].label),dn),filter(e,t,o){if(o===void 0)return!0;let r=t.getValue({item:e});return typeof r=="string"&&o&&!r.toLowerCase().includes(String(o).toLowerCase())},selection:"single"},{name:Yd,label:(0,qe.__)("Starts with"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s starts with: </Name><Value>%2$s</Value>"),e.name,t[0].label),dn),filter(e,t,o){if(o===void 0)return!0;let r=t.getValue({item:e});return typeof r=="string"&&o&&r.toLowerCase().startsWith(String(o).toLowerCase())},selection:"single"},{name:xu,label:(0,qe.__)("On"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),e.name,t[0].label),dn),filter(e,t,o){if(o===void 0)return!0;let[r,n]=d0(t.getValue({item:e}),o);return r===n},selection:"single"},{name:Su,label:(0,qe.__)("Not on"),filterText:(e,t)=>(0,Hr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),e.name,t[0].label),dn),filter(e,t,o){if(o===void 0)return!0;let[r,n]=d0(t.getValue({item:e}),o);return r!==n},selection:"single"}],nNe=e=>rNe.find(t=>t.name===e),iNe=()=>rNe.map(e=>e.name);var _Ne=c(F(),1);var lF=c(F(),1),sNe=c(ue(),1),aNe=c(q(),1);var oJ=c(T(),1),Mct=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,lF.useRef)(null),s=(0,sNe.useMergeRefs)([n,i]);return(0,oJ.jsx)(Dr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,ref:s,customValidity:t,getValidityTarget:()=>i.current?.querySelector('input[type="checkbox"]'),children:(0,oJ.jsx)(aNe.CheckboxControl,{...r})})},cF=(0,lF.forwardRef)(Mct);cF.displayName="ValidatedCheckboxControl";var f0=c(F(),1),lNe=c(ue(),1),cNe=c(q(),1);var rJ=c(T(),1),Nct=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,f0.useRef)(null),s=(0,lNe.useMergeRefs)([n,i]);return(0,f0.useEffect)(()=>{let a=i.current?.querySelector('input[role="combobox"]');a&&(a.required=e??!1)},[e]),(0,rJ.jsx)(Dr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,ref:s,customValidity:t,getValidityTarget:()=>i.current?.querySelector('input[role="combobox"]'),children:(0,rJ.jsx)(cNe.ComboboxControl,{...r})})},uF=(0,f0.forwardRef)(Nct);uF.displayName="ValidatedComboboxControl";var dF=c(F(),1),uNe=c(q(),1);var p0=c(T(),1),Lct=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,dF.useRef)(null);return(0,p0.jsxs)("div",{className:"dataviews-validated-control__wrapper-with-error-delegate",ref:n,children:[(0,p0.jsx)(Dr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,customValidity:t,getValidityTarget:()=>i.current,children:(0,p0.jsx)(uNe.FormTokenField,{...r})}),(0,p0.jsx)("input",{className:"dataviews-validated-control__error-delegate",type:"text",ref:i,required:e,value:r.value&&r.value.length>0?"hasvalue":"",tabIndex:-1,onChange:()=>{},onFocus:s=>{s.target.previousElementSibling?.querySelector('input[type="text"]')?.focus()}})]})},fF=(0,dF.forwardRef)(Lct);fF.displayName="ValidatedFormTokenField";var pF=c(F(),1),dNe=c(ue(),1),fNe=c(q(),1);var nJ=c(T(),1),Dct=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,pF.useRef)(null),s=(0,dNe.useMergeRefs)([n,i]);return(0,nJ.jsx)(Dr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,customValidity:t,getValidityTarget:()=>i.current,children:(0,nJ.jsx)(fNe.__experimentalNumberControl,{ref:s,...r})})},mF=(0,pF.forwardRef)(Dct);mF.displayName="ValidatedNumberControl";var gF=c(F(),1),pNe=c(ue(),1),mNe=c(q(),1);var iJ=c(T(),1),Vct=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,gF.useRef)(null),s=(0,pNe.useMergeRefs)([n,i]);return(0,iJ.jsx)(Dr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,ref:s,customValidity:t,getValidityTarget:()=>i.current?.querySelector('input[type="radio"]'),children:(0,iJ.jsx)(mNe.RadioControl,{...r})})},hF=(0,gF.forwardRef)(Vct);hF.displayName="ValidatedRadioControl";var bF=c(F(),1),gNe=c(ue(),1),hNe=c(q(),1);var sJ=c(T(),1),Fct=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,bF.useRef)(null),s=(0,gNe.useMergeRefs)([n,i]);return(0,sJ.jsx)(Dr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,customValidity:t,getValidityTarget:()=>i.current,children:(0,sJ.jsx)(hNe.SelectControl,{ref:s,...r})})},yF=(0,bF.forwardRef)(Fct);yF.displayName="ValidatedSelectControl";var vF=c(F(),1),bNe=c(ue(),1),yNe=c(q(),1);var aJ=c(T(),1),zct=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,vF.useRef)(null),s=(0,bNe.useMergeRefs)([n,i]);return(0,aJ.jsx)(Dr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,customValidity:t,getValidityTarget:()=>i.current,children:(0,aJ.jsx)(yNe.ToggleControl,{ref:s,required:e,...r})})},_F=(0,vF.forwardRef)(zct);_F.displayName="ValidatedToggleControl";var g0=c(F(),1),vNe=c(q(),1);var m0=c(T(),1),jct=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,g0.useRef)(null),s=(0,g0.useId)();return(0,m0.jsxs)("div",{className:"dataviews-validated-control__wrapper-with-error-delegate",children:[(0,m0.jsx)(Dr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,customValidity:t,getValidityTarget:()=>i.current,children:(0,m0.jsx)(vNe.__experimentalToggleGroupControl,{ref:n,...r})}),(0,m0.jsx)("input",{className:"dataviews-validated-control__error-delegate",type:"radio",ref:i,required:e,checked:r.value!==void 0,tabIndex:-1,name:s,onChange:()=>{},onFocus:a=>{a.target.previousElementSibling?.querySelector('[data-active-item="true"]')?.focus()}})]})},wF=(0,g0.forwardRef)(jct);wF.displayName="ValidatedToggleGroupControl";function So(e,t){let o;return e?.required&&t?.required?o=t.required.message?{type:t.required.type,message:t.required.message}:void 0:e?.pattern&&t?.pattern?o=t.pattern:e?.min&&t?.min?o=t.min:e?.max&&t?.max?o=t.max:e?.minLength&&t?.minLength?o=t.minLength:e?.maxLength&&t?.maxLength?o=t.maxLength:e?.elements&&t?.elements?o=t.elements:t?.custom&&(o=t.custom),o}var wNe=c(T(),1);function kNe({field:e,onChange:t,data:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{getValue:s,setValue:a,label:l,description:u,isValid:d}=e,f=e.isDisabled({item:o,field:e}),p=(0,_Ne.useCallback)(()=>{t(a({item:o,value:!s({item:o})}))},[o,s,t,a]);return(0,wNe.jsx)(cF,{required:!!e.isValid?.required,markWhenOptional:n,customValidity:So(d,i),hidden:r,label:l,help:u,checked:s({item:o}),onChange:p,disabled:f})}var xNe=c(q(),1),SNe=c(F(),1);var lJ=c(T(),1);function kF({data:e,field:t,onChange:o,hideLabelFromVision:r,validity:n}){let{label:i,description:s,placeholder:a,getValue:l,setValue:u,isValid:d}=t,f=l({item:e})??"",p=(0,SNe.useCallback)(h=>o(u({item:e,value:h??""})),[e,o,u]),{elements:m,isLoading:g}=la({elements:t.elements,getElements:t.getElements});return g?(0,lJ.jsx)(xNe.Spinner,{}):(0,lJ.jsx)(uF,{required:!!t.isValid?.required,customValidity:So(d,n),label:i,value:f,help:s,placeholder:a,options:m,onChange:p,hideLabelFromVision:r,allowReset:!0,expandOnFocus:!0})}var BNe=c(q(),1),cc=c(F(),1),v0=c(Z(),1),INe=c(Yo(),1),ca=c(Ul(),1);var b0=c(q(),1),cJ=c(F(),1),Kd=c(Z(),1);var h0=c(T(),1),Hct={[ks]:[{value:"days",label:(0,Kd.__)("Days")},{value:"weeks",label:(0,Kd.__)("Weeks")},{value:"months",label:(0,Kd.__)("Months")},{value:"years",label:(0,Kd.__)("Years")}],[aa]:[{value:"days",label:(0,Kd.__)("Days ago")},{value:"weeks",label:(0,Kd.__)("Weeks ago")},{value:"months",label:(0,Kd.__)("Months ago")},{value:"years",label:(0,Kd.__)("Years ago")}]};function xF({className:e,data:t,field:o,onChange:r,hideLabelFromVision:n,operator:i}){let s=Hct[i===ks?"inThePast":"over"],{id:a,label:l,description:u,getValue:d,setValue:f}=o,p=o.isDisabled({item:t,field:o}),m=d({item:t}),{value:g="",unit:h=s[0].value}=m&&typeof m=="object"?m:{},b=(0,cJ.useCallback)(y=>r(f({item:t,value:{value:Number(y),unit:h}})),[r,f,t,h]),v=(0,cJ.useCallback)(y=>r(f({item:t,value:{value:g,unit:y}})),[r,f,t,g]);return(0,h0.jsx)(b0.BaseControl,{id:a,className:Y(e,"dataviews-controls__relative-date"),label:l,hideLabelFromVision:n,help:u,children:(0,h0.jsxs)($e,{direction:"row",gap:"sm",children:[(0,h0.jsx)(b0.__experimentalNumberControl,{className:"dataviews-controls__relative-date-number",spinControls:"none",min:1,step:1,value:g,onChange:b,disabled:p}),(0,h0.jsx)(b0.SelectControl,{className:"dataviews-controls__relative-date-unit",label:(0,Kd.__)("Unit"),value:h,options:s,onChange:v,hideLabelFromVision:!0,disabled:p})]})})}function _B(e,t){return t?new en(e,t):e}var CNe=c(F(),1);function wB(e,t){let o=typeof e.min?.constraint=="string"?e.min.constraint:void 0,r=typeof e.max?.constraint=="string"?e.max.constraint:void 0,n=(0,CNe.useMemo)(()=>{let i=[];if(o){let s=t(o);s&&i.push({before:s})}if(r){let s=t(r);s&&i.push({after:s})}return i.length>0?i:void 0},[o,r,t]);return{minConstraint:o,maxConstraint:r,disabledMatchers:n}}var Wct={ary:"ar-MA",haz:"fa"};function kB(e){let t=e?.trim().split(/[_-]/)??[],o=t.shift()?.toLowerCase();if(!o)return;let r=[Wct[o]??o];for(let n of t)(/^[a-z]{4}$/i.test(n)||/^([a-z]{2}|\d{3})$/i.test(n))&&r.push(n);return r.join("-")}var ENe=c(Ul(),1),xB=c(Z(),1);function TNe(){let{timezone:e}=(0,ENe.getSettings)(),t=-1*(new Date().getTimezoneOffset()/60);if(Number(e.offset)===t)return;let o=Number(e.offset)>=0?"+":"",r=e.abbr!==""&&isNaN(Number(e.abbr))?e.abbr:`UTC${o}${e.offsetFormatted}`,n=e.string.replaceAll("_"," "),i=r;return e.string==="UTC"?i=(0,xB.__)("Coordinated Universal Time"):n.trim().length>0&&(i=`(${r}) ${n}`),(0,xB.sprintf)((0,xB.__)("Timezone: %s"),i)}var RNe=c(Ul(),1);function y0(e){if(!e)return null;let t=(0,RNe.getDate)(e);return t&&Vc(t)?t:null}var Vh=c(T(),1),uJ=e=>e?(0,ca.dateI18n)("Y-m-d\\TH:i",(0,ca.getDate)(e)):"";function Uct({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,config:s}){let{compact:a}=s||{},{id:l,label:u,description:d,setValue:f,getValue:p,isValid:m}=t,g=t.isDisabled({item:e,field:t}),h=p({item:e}),b=typeof h=="string"?h:void 0,{timezone:v}=(0,ca.getSettings)(),y=v.string||(0,ca.dateI18n)("P"),[_,w]=(0,cc.useState)(()=>{let N=y0(b);return _B(N||new Date,y)});(0,cc.useEffect)(()=>{let N=y0(b);if(N){let M=_B(N,y);w(V=>yy(M,_B(V,y))?V:M)}},[y,b]);let k=(0,cc.useRef)(null),x=(0,cc.useRef)(void 0),{minConstraint:C,maxConstraint:E,disabledMatchers:R}=wB(m,y0),S=(0,cc.useCallback)(N=>o(f({item:e,value:N})),[e,o,f]);(0,cc.useEffect)(()=>()=>clearTimeout(x.current),[]);let I=(0,cc.useCallback)(N=>{if(N){let M=(0,ca.dateI18n)("Y-m-d",N),V=b?(0,ca.dateI18n)("H:i",(0,ca.getDate)(b)):"00:00",j=(0,ca.getDate)(`${M}T${V}`);S(j.toISOString())}else S(void 0);clearTimeout(x.current),x.current=setTimeout(()=>{let M=k.current;M&&(M.dispatchEvent(new Event("invalid",{cancelable:!0})),M.validationMessage&&(0,INe.speak)(M.validationMessage))},0)},[S,b]),O=(0,cc.useCallback)(N=>{if(N){let M=(0,ca.getDate)(N);S(M.toISOString());let V=y0(M.toISOString());V&&w(_B(V,y))}else S(void 0)},[S,y]),{format:A}=t,P=A.weekStartsOn??(0,ca.getSettings)().l10n.startOfWeek,L=kB((0,ca.getSettings)().l10n.locale),H=u;return m?.required&&!n&&!r?H=`${u} (${(0,v0.__)("Required")})`:!m?.required&&n&&!r&&(H=`${u} (${(0,v0.__)("Optional")})`),(0,Vh.jsx)(BNe.BaseControl,{id:l,label:H,help:d,hideLabelFromVision:r,children:(0,Vh.jsxs)($e,{direction:"column",gap:"lg",children:[(0,Vh.jsx)(Hc,{ref:k,required:!!m?.required,customValidity:So(m,i),type:"datetime-local",label:(0,v0.__)("Date time"),hideLabelFromVision:!0,value:uJ(b),onValueChange:O,disabled:g,description:TNe(),min:C?uJ(C):void 0,max:E?uJ(E):void 0}),!a&&(0,Vh.jsx)(YE,{style:{width:"100%"},value:b?y0(b):null,onValueChange:I,month:_,onMonthChange:w,timeZone:y,locale:L,dir:(0,v0.isRTL)()?"rtl":"ltr",weekStartsOn:P,disabled:g||R})]})})}function PNe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s,config:a}){return i===ks||i===aa?(0,Vh.jsx)(xF,{className:"dataviews-controls__datetime",data:e,field:t,onChange:o,hideLabelFromVision:r,operator:i}):(0,Vh.jsx)(Uct,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s,config:a})}var uc=c(q(),1),ONe=c(Yo(),1),to=c(F(),1),Wr=c(Z(),1),Ss=c(Ul(),1);var er=c(T(),1),Gct=[{id:"today",label:(0,Wr.__)("Today"),getValue:()=>(0,Ss.getDate)(null)},{id:"yesterday",label:(0,Wr.__)("Yesterday"),getValue:()=>{let e=(0,Ss.getDate)(null);return vy(e,1)}},{id:"past-week",label:(0,Wr.__)("Past week"),getValue:()=>{let e=(0,Ss.getDate)(null);return vy(e,7)}},{id:"past-month",label:(0,Wr.__)("Past month"),getValue:()=>{let e=(0,Ss.getDate)(null);return vL(e,1)}}],$ct=[{id:"last-7-days",label:(0,Wr.__)("Last 7 days"),getValue:()=>{let e=(0,Ss.getDate)(null);return[vy(e,7),e]}},{id:"last-30-days",label:(0,Wr.__)("Last 30 days"),getValue:()=>{let e=(0,Ss.getDate)(null);return[vy(e,30),e]}},{id:"month-to-date",label:(0,Wr.__)("Month to date"),getValue:()=>{let e=(0,Ss.getDate)(null);return[jE(e),e]}},{id:"last-year",label:(0,Wr.__)("Last year"),getValue:()=>{let e=(0,Ss.getDate)(null);return[_L(e,1),e]}},{id:"year-to-date",label:(0,Wr.__)("Year to date"),getValue:()=>{let e=(0,Ss.getDate)(null);return[lk(e),e]}}],Cu=e=>{if(!e)return null;let t=Vme(e);return Vc(t)?t:null},SF=e=>e?typeof e=="string"?e:Uf(e,"yyyy-MM-dd"):"";function ANe({field:e,validity:t,inputRefs:o,isTouched:r,setIsTouched:n,children:i}){let{isValid:s}=e,[a,l]=(0,to.useState)(void 0),u=(0,to.useCallback)(()=>{let f=Array.isArray(o)?o:[o];for(let p of f){let m=p.current;if(m&&!m.validity.valid){l({type:"invalid",message:m.validationMessage});return}}l(void 0)},[o]);return(0,to.useEffect)(()=>{let f=Array.isArray(o)?o:[o],p=t?So(s,t):void 0;for(let m of f){let g=m.current;g&&g.setCustomValidity(p?.type==="invalid"&&p.message?p.message:"")}},[o,s,t]),(0,to.useEffect)(()=>{let f=Array.isArray(o)?o:[o],p=m=>{m.preventDefault(),n(!0)};for(let m of f)m.current?.addEventListener("invalid",p);return()=>{for(let m of f)m.current?.removeEventListener("invalid",p)}},[o,n]),(0,to.useEffect)(()=>{if(!r)return;let f=t?So(s,t):void 0;f?l(f):u()},[r,s,t,u]),(0,to.useEffect)(()=>{r&&a?.message&&(0,ONe.speak)(a.message)},[r,a?.message]),(0,er.jsxs)($e,{direction:"column",gap:"sm",onBlur:f=>{r||(!f.relatedTarget||!f.currentTarget.contains(f.relatedTarget))&&n(!0)},children:[i,a&&(0,er.jsx)(xy,{type:a.type,message:a.message})]})}function Yct({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{id:s,label:a,description:l,setValue:u,getValue:d,isValid:f,format:p}=t,m=t.isDisabled({item:e,field:t}),[g,h]=(0,to.useState)(null),b=p.weekStartsOn??(0,Ss.getSettings)().l10n.startOfWeek,v=kB((0,Ss.getSettings)().l10n.locale),y=d({item:e}),_=typeof y=="string"?y:void 0,[w,k]=(0,to.useState)(()=>Cu(_)||new Date);(0,to.useEffect)(()=>{let N=Cu(_);N&&k(M=>yy(N,M)?M:N)},[_]);let[x,C]=(0,to.useState)(!1),E=(0,to.useRef)(null),{minConstraint:R,maxConstraint:S,disabledMatchers:I}=wB(f,Cu),O=(0,to.useCallback)(N=>o(u({item:e,value:N})),[e,o,u]),A=(0,to.useCallback)(N=>{let M=N?SF(N):void 0;O(M),h(null),C(!0)},[O]),P=(0,to.useCallback)(N=>{let M=N.getValue(),V=SF(M);k(M),O(V),h(N.id),C(!0)},[O]),L=(0,to.useCallback)(N=>{if(O(N),N){let M=Cu(N);M&&k(M)}h(null),C(!0)},[O]),H=a;return f?.required&&!n?H=`${a} (${(0,Wr.__)("Required")})`:!f?.required&&n&&(H=`${a} (${(0,Wr.__)("Optional")})`),(0,er.jsx)(ANe,{field:t,validity:i,inputRefs:E,isTouched:x,setIsTouched:C,children:(0,er.jsx)(uc.BaseControl,{id:s,className:"dataviews-controls__date",label:H,help:l,hideLabelFromVision:r,children:(0,er.jsxs)($e,{direction:"column",gap:"lg",children:[(0,er.jsxs)($e,{direction:"row",gap:"sm",wrap:"wrap",justify:"flex-start",children:[Gct.map(N=>{let M=g===N.id;return(0,er.jsx)(uc.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:M,size:"small",disabled:m,accessibleWhenDisabled:!0,onClick:()=>P(N),children:N.label},N.id)}),(0,er.jsx)(uc.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:!g,size:"small",disabled:!!g||m,accessibleWhenDisabled:!0,children:(0,Wr.__)("Custom")})]}),(0,er.jsx)(uc.__experimentalInputControl,{ref:E,type:"date",label:(0,Wr.__)("Date"),hideLabelFromVision:!0,value:_,onChange:L,required:!!t.isValid?.required,disabled:m,min:R,max:S}),(0,er.jsx)(YE,{style:{width:"100%"},value:_?Cu(_):null,onValueChange:A,month:w,onMonthChange:k,locale:v,dir:(0,Wr.isRTL)()?"rtl":"ltr",weekStartsOn:b,disabled:m||I,disableNavigation:m})]})})})}function Kct({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{id:s,label:a,description:l,getValue:u,setValue:d,isValid:f,format:p}=t,m=t.isDisabled({item:e,field:t}),g,h=u({item:e});Array.isArray(h)&&h.length===2&&h.every(z=>typeof z=="string")&&(g=h);let b=p.weekStartsOn??(0,Ss.getSettings)().l10n.startOfWeek,v=kB((0,Ss.getSettings)().l10n.locale),{minConstraint:y,maxConstraint:_,disabledMatchers:w}=wB(f,Cu),k=(0,to.useCallback)(z=>{o(d({item:e,value:z}))},[e,o,d]),[x,C]=(0,to.useState)(null),E=(0,to.useMemo)(()=>{if(!g)return null;let[z,$]=g;return{from:Cu(z)||void 0,to:Cu($)||void 0}},[g]),[R,S]=(0,to.useState)(()=>E?.from||new Date),[I,O]=g??[];(0,to.useEffect)(()=>{S(z=>{let $=Cu(I),J=Cu(O),Q=$??J,W=$&&J?nme({start:$,end:J},{start:jE(z),end:BN(z)},{inclusive:!0}):[$,J].some(X=>X&&yy(X,z));return Q&&!W?Q:z})},[I,O]);let[A,P]=(0,to.useState)(!1),L=(0,to.useRef)(null),H=(0,to.useRef)(null),N=(0,to.useCallback)((z,$)=>{if(!z&&!$){k(void 0);return}k([SF(z),SF($)])},[k]),M=(0,to.useCallback)(z=>{N(z?.from,z?.to),C(null),P(!0)},[N]),V=(0,to.useCallback)(z=>{let[$,J]=z.getValue();S($),N($,J),C(z.id),P(!0)},[N]),j=(0,to.useCallback)((z,$)=>{let[J,Q]=g||[void 0,void 0];if(N(z==="from"?$:J,z==="to"?$:Q),$){let U=Cu($);U&&S(U)}C(null),P(!0)},[g,N]),D=a;return t.isValid?.required&&!n?D=`${a} (${(0,Wr.__)("Required")})`:!t.isValid?.required&&n&&(D=`${a} (${(0,Wr.__)("Optional")})`),(0,er.jsx)(ANe,{field:t,validity:i,inputRefs:[L,H],isTouched:A,setIsTouched:P,children:(0,er.jsx)(uc.BaseControl,{id:s,className:"dataviews-controls__date",label:D,help:l,hideLabelFromVision:r,children:(0,er.jsxs)($e,{direction:"column",gap:"lg",children:[(0,er.jsxs)($e,{direction:"row",gap:"sm",wrap:"wrap",justify:"flex-start",children:[$ct.map(z=>{let $=x===z.id;return(0,er.jsx)(uc.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:$,size:"small",disabled:m,accessibleWhenDisabled:!0,onClick:()=>V(z),children:z.label},z.id)}),(0,er.jsx)(uc.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:!x,size:"small",accessibleWhenDisabled:!0,disabled:!!x||m,children:(0,Wr.__)("Custom")})]}),(0,er.jsxs)($e,{direction:"row",gap:"sm",justify:"space-between",className:"dataviews-controls__date-range-inputs",children:[(0,er.jsx)(uc.__experimentalInputControl,{ref:L,type:"date",label:(0,Wr.__)("From"),hideLabelFromVision:!0,value:g?.[0],onChange:z=>j("from",z),required:!!t.isValid?.required,disabled:m,min:y,max:_}),(0,er.jsx)(uc.__experimentalInputControl,{ref:H,type:"date",label:(0,Wr.__)("To"),hideLabelFromVision:!0,value:g?.[1],onChange:z=>j("to",z),required:!!t.isValid?.required,disabled:m,min:y,max:_})]}),(0,er.jsx)(h$,{style:{width:"100%"},value:E,onValueChange:M,month:R,onMonthChange:S,locale:v,dir:(0,Wr.isRTL)()?"rtl":"ltr",weekStartsOn:b,disabled:m||w})]})})})}function MNe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s}){return i===ks||i===aa?(0,er.jsx)(xF,{className:"dataviews-controls__date",data:e,field:t,onChange:o,hideLabelFromVision:r,operator:i}):i===Cn?(0,er.jsx)(Kct,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s}):(0,er.jsx)(Yct,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s})}var NNe=c(q(),1),LNe=c(F(),1);var dJ=c(T(),1);function CF({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{type:s,label:a,description:l,getValue:u,setValue:d,isValid:f}=t,p=t.isDisabled({item:e,field:t}),m=s==="array",g=u({item:e})??(m?[]:""),h=(0,LNe.useCallback)(y=>o(d({item:e,value:y})),[e,o,d]),{elements:b,isLoading:v}=la({elements:t.elements,getElements:t.getElements});return v?(0,dJ.jsx)(NNe.Spinner,{}):(0,dJ.jsx)(yF,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:So(f,i),label:a,value:g,help:l,options:b,onChange:h,hideLabelFromVision:r,multiple:m,disabled:p})}var fJ=c(T(),1),qct=10;function DNe(e){let{field:t}=e,{elements:o}=la({elements:t.elements,getElements:t.getElements});return o.length>=qct?(0,fJ.jsx)(kF,{...e}):(0,fJ.jsx)(CF,{...e})}var VNe=c(F(),1);var FNe=c(T(),1);function qd({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,type:i,prefix:s,suffix:a,validity:l}){let{label:u,placeholder:d,description:f,getValue:p,setValue:m,isValid:g}=t,h=p({item:e}),b=t.isDisabled({item:e,field:t}),v=(0,VNe.useCallback)(y=>o(m({item:e,value:y})),[e,m,o]);return(0,FNe.jsx)(Hc,{required:!!g.required,markWhenOptional:n,customValidity:So(g,l),label:u,placeholder:d,value:h??"",description:typeof f=="string"?f:void 0,details:typeof f=="string"?void 0:f,onValueChange:v,hideLabelFromVision:r,type:i,prefix:s,suffix:a,disabled:b,pattern:g.pattern?g.pattern.constraint:void 0,minLength:g.minLength?g.minLength.constraint:void 0,maxLength:g.maxLength?g.maxLength.constraint:void 0})}var EF=c(T(),1);function zNe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,EF.jsx)(qd,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"email",prefix:(0,EF.jsx)(ds.Slot,{padding:"minimal",children:(0,EF.jsx)(Jr,{icon:m7})})})}var TF=c(T(),1);function jNe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,TF.jsx)(qd,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"tel",prefix:(0,TF.jsx)(ds.Slot,{padding:"minimal",children:(0,TF.jsx)(Jr,{icon:EC})})})}var RF=c(T(),1);function HNe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,RF.jsx)(qd,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"url",prefix:(0,RF.jsx)(ds.Slot,{padding:"minimal",children:(0,RF.jsx)(Jr,{icon:As})})})}var zv=c(q(),1),SB=c(F(),1),BF=c(Z(),1);var Fh=c(T(),1);function WNe(e){if(e===""||e===void 0)return"";let t=Number(e);return Number.isFinite(t)?t:""}function Zct({value:e,onChange:t,hideLabelFromVision:o,step:r}){let[n="",i=""]=e,s=(0,SB.useCallback)(l=>t([WNe(l),i]),[t,i]),a=(0,SB.useCallback)(l=>t([n,WNe(l)]),[t,n]);return(0,Fh.jsx)(zv.BaseControl,{help:(0,BF.__)("The max. value must be greater than the min. value."),children:(0,Fh.jsxs)(zv.Flex,{direction:"row",gap:4,children:[(0,Fh.jsx)(zv.__experimentalNumberControl,{label:(0,BF.__)("Min."),value:n,max:i?Number(i)-r:void 0,onChange:s,hideLabelFromVision:o,step:r}),(0,Fh.jsx)(zv.__experimentalNumberControl,{label:(0,BF.__)("Max."),value:i,min:n?Number(n)+r:void 0,onChange:a,hideLabelFromVision:o,step:r})]})})}function IF({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s}){let a=t.format?.decimals??0,l=Math.pow(10,Math.abs(a)*-1),{label:u,description:d,getValue:f,setValue:p,isValid:m}=t,g=f({item:e})??"",h=t.isDisabled({item:e,field:t}),b=(0,SB.useCallback)(y=>{o(p({item:e,value:["",void 0].includes(y)?void 0:Number(y)}))},[e,o,p]),v=(0,SB.useCallback)(y=>{o(p({item:e,value:y}))},[e,o,p]);if(i===Cn){let y=["",""];return Array.isArray(g)&&g.length===2&&g.every(_=>typeof _=="number"||_==="")&&(y=g),(0,Fh.jsx)(Zct,{value:y,onChange:v,hideLabelFromVision:r,step:l})}return(0,Fh.jsx)(mF,{required:!!m.required,markWhenOptional:n,customValidity:So(m,s),label:u,help:d,value:g,onChange:b,hideLabelFromVision:r,step:l,min:typeof m.min?.constraint=="number"?m.min.constraint:void 0,max:typeof m.max?.constraint=="number"?m.max.constraint:void 0,disabled:h})}var UNe=c(T(),1);function GNe(e){return(0,UNe.jsx)(IF,{...e})}var $Ne=c(T(),1);function YNe(e){return(0,$Ne.jsx)(IF,{...e})}var KNe=c(q(),1),qNe=c(F(),1);var pJ=c(T(),1);function ZNe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,description:a,getValue:l,setValue:u,isValid:d}=t,f=t.isDisabled({item:e,field:t}),{elements:p,isLoading:m}=la({elements:t.elements,getElements:t.getElements}),g=l({item:e}),h=(0,qNe.useCallback)(b=>o(u({item:e,value:b})),[e,o,u]);return m?(0,pJ.jsx)(KNe.Spinner,{}):(0,pJ.jsx)(hF,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:So(d,i),label:s,help:a,onChange:h,options:p,selected:g,hideLabelFromVision:r,disabled:f})}var mJ=c(F(),1);var XNe=c(T(),1);function QNe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,config:i,validity:s}){let{prefix:a,suffix:l}=i||{};return(0,XNe.jsx)(qd,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s,prefix:a?(0,mJ.createElement)(a):void 0,suffix:l?(0,mJ.createElement)(l):void 0})}var eLe=c(q(),1),CB=c(F(),1),PF=c(Z(),1);var zh=c(T(),1);function JNe(e,t){return(e??"").replace(/\\./g,"").includes("s")||t.some(n=>(xs(n)??0)%60!==0)?1:void 0}function gJ(e){let t=xs(e);if(t===null)return"";let o=[Math.floor(t/3600),Math.floor(t%3600/60)];return t%60!==0&&o.push(t%60),o.map(r=>String(r).padStart(2,"0")).join(":")}function Xct({value:e,onChange:t,hideLabelFromVision:o,disabled:r,step:n,min:i,max:s}){let[a="",l=""]=e,u=(0,CB.useCallback)(f=>t([f??"",l]),[t,l]),d=(0,CB.useCallback)(f=>t([a,f??""]),[t,a]);return(0,zh.jsx)(eLe.BaseControl,{help:(0,PF.__)("The end time must be later than the start time."),children:(0,zh.jsxs)($e,{direction:"row",gap:"sm",justify:"space-between",children:[(0,zh.jsx)(Hc,{type:"time",label:(0,PF.__)("From"),value:a,onValueChange:u,hideLabelFromVision:o,disabled:r,step:n,min:i,max:l||s}),(0,zh.jsx)(Hc,{type:"time",label:(0,PF.__)("To"),value:l,onValueChange:d,hideLabelFromVision:o,disabled:r,step:n,min:a||i,max:s})]})})}function tLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s}){let{label:a,placeholder:l,description:u,getValue:d,setValue:f,isValid:p}=t,m=d({item:e}),g=t.isDisabled({item:e,field:t}),h=t.format?.time,b=typeof p.min?.constraint=="string"?p.min.constraint:void 0,v=typeof p.max?.constraint=="string"?p.max.constraint:void 0,y=(0,CB.useCallback)(w=>o(f({item:e,value:w===""?void 0:w})),[e,o,f]),_=(0,CB.useCallback)(([w,k])=>o(f({item:e,value:[w||void 0,k||void 0]})),[e,o,f]);if(i===Cn){let w=["",""];return Array.isArray(m)&&m.length===2&&(w=[gJ(m[0]),gJ(m[1])]),(0,zh.jsx)(Xct,{value:w,onChange:_,hideLabelFromVision:r,disabled:g,step:JNe(h,w),min:b,max:v})}return(0,zh.jsx)(Hc,{required:!!p.required,markWhenOptional:n,customValidity:So(p,s),type:"time",label:a,placeholder:l,description:typeof u=="string"?u:void 0,details:typeof u=="string"?void 0:u,value:gJ(m),onValueChange:y,hideLabelFromVision:r,disabled:g,step:JNe(h,[m]),min:b,max:v})}var oLe=c(F(),1);var rLe=c(T(),1);function nLe({field:e,onChange:t,data:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,description:a,getValue:l,setValue:u,isValid:d}=e,f=e.isDisabled({item:o,field:e}),p=(0,oLe.useCallback)(()=>{t(u({item:o,value:!l({item:o})}))},[t,u,o,l]);return(0,rLe.jsx)(_F,{required:!!d.required,markWhenOptional:n,customValidity:So(d,i),hidden:r,label:s,help:a,checked:l({item:o}),onChange:p,disabled:f})}var iLe=c(F(),1);var sLe=c(T(),1);function aLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,config:i,validity:s}){let{rows:a=4}=i||{},l=t.isDisabled({item:e,field:t}),{label:u,placeholder:d,description:f,setValue:p,isValid:m}=t,g=t.getValue({item:e}),h=(0,iLe.useCallback)(b=>o(p({item:e,value:b})),[e,o,p]);return(0,sLe.jsx)(GY,{required:!!m.required,markWhenOptional:n,customValidity:So(m,s),label:u,placeholder:d,value:g??"",description:typeof f=="string"?f:void 0,details:typeof f=="string"?void 0:f,onValueChange:h,rows:a,disabled:l,minLength:m.minLength?m.minLength.constraint:void 0,maxLength:m.maxLength?m.maxLength.constraint:void 0,hideLabelFromVision:r})}var AF=c(q(),1),lLe=c(F(),1);var OF=c(T(),1);function cLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{getValue:s,setValue:a,isValid:l}=t,u=t.isDisabled({item:e,field:t}),d=s({item:e}),f=(0,lLe.useCallback)(h=>o(a({item:e,value:h})),[e,o,a]),{elements:p,isLoading:m}=la({elements:t.elements,getElements:t.getElements});if(m)return(0,OF.jsx)(AF.Spinner,{});if(p.length===0)return null;let g=p.find(h=>h.value===d);return(0,OF.jsx)(wF,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:So(l,i),isBlock:!0,label:t.label,help:g?.description||t.description,onChange:f,value:d,hideLabelFromVision:r,children:p.map(h=>(0,OF.jsx)(AF.__experimentalToggleGroupControlOption,{label:h.label,value:h.value,disabled:u},h.value))})}var uLe=c(q(),1),MF=c(F(),1);var EB=c(T(),1);function dLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,placeholder:a,description:l,getValue:u,setValue:d,isValid:f}=t,p=u({item:e}),m=t.isDisabled({item:e,field:t}),{elements:g,isLoading:h}=la({elements:t.elements,getElements:t.getElements}),b=(0,MF.useMemo)(()=>Array.isArray(p)?p.map(y=>g?.find(w=>w.value===y)||{value:y,label:y}):[],[p,g]),v=(0,MF.useCallback)(y=>{let _=y.map(w=>typeof w=="object"&&"value"in w?w.value:w);o(d({item:e,value:_}))},[o,d,e]);return h?(0,EB.jsx)(uLe.Spinner,{}):(0,EB.jsx)(fF,{required:!!f?.required,markWhenOptional:n,customValidity:So(f,i),label:r?void 0:s,value:b,onChange:v,placeholder:a,suggestions:g?.map(y=>y.value),disabled:m,__experimentalValidateInput:y=>t.isValid?.elements&&g?g.some(_=>_.value===y||_.label===y):!0,__experimentalExpandOnFocus:g&&g.length>0,help:l??(t.isValid?.elements?"":void 0),displayTransform:y=>typeof y=="object"&&"label"in y?y.label:typeof y=="string"&&g&&g.find(w=>w.value===y)?.label||y,__experimentalRenderItem:({item:y})=>{if(typeof y=="string"&&g){let _=g.find(w=>w.value===y);return(0,EB.jsx)("span",{children:_?.label||y})}return(0,EB.jsx)("span",{children:y})}})}var Zd=c(q(),1);var hJ=c(F(),1),fLe=c(Z(),1);var $p=c(T(),1),Qct=({color:e,onColorChange:t,disabled:o})=>{let r=e&&Go(e).isValid()?e:"#ffffff";return(0,$p.jsx)(Zd.Dropdown,{className:"dataviews-controls__color-picker-dropdown",popoverProps:{resize:!1},renderToggle:({onToggle:n})=>(0,$p.jsx)(Zd.Button,{onClick:n,"aria-label":(0,fLe.__)("Open color picker"),size:"small",disabled:o,accessibleWhenDisabled:!0,icon:()=>(0,$p.jsx)(Zd.ColorIndicator,{colorValue:r})}),renderContent:()=>(0,$p.jsx)(Zd.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,$p.jsx)(Zd.ColorPicker,{color:r,onChange:t,enableAlpha:!0})})})};function pLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,placeholder:a,description:l,setValue:u,isValid:d}=t,f=t.isDisabled({item:e,field:t}),p=t.getValue({item:e})||"",m=(0,hJ.useCallback)(h=>{o(u({item:e,value:h}))},[e,o,u]),g=(0,hJ.useCallback)(h=>{o(u({item:e,value:h||""}))},[e,o,u]);return(0,$p.jsx)(Hc,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:So(d,i),label:s,placeholder:a,value:p,description:typeof l=="string"?l:void 0,details:typeof l=="string"?void 0:l,onValueChange:g,hideLabelFromVision:r,type:"text",disabled:f,prefix:(0,$p.jsx)(ds.Slot,{padding:"minimal",children:(0,$p.jsx)(Qct,{color:p,onColorChange:m,disabled:f})})})}var mLe=c(q(),1);var LF=c(F(),1),bJ=c(Z(),1);var NF=c(T(),1);function gLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let[s,a]=(0,LF.useState)(!1),l=t.isDisabled({item:e,field:t}),u=(0,LF.useCallback)(()=>{a(d=>!d)},[]);return(0,NF.jsx)(qd,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:s?"text":"password",suffix:(0,NF.jsx)(ds.Slot,{padding:"minimal",children:(0,NF.jsx)(mLe.Button,{icon:s?_c:kb,onClick:u,size:"small",label:s?(0,bJ.__)("Hide password"):(0,bJ.__)("Show password"),disabled:l,accessibleWhenDisabled:!0})})})}function DF(e){return Array.isArray(e.elements)&&e.elements.length>0||typeof e.getElements=="function"}var bLe=c(T(),1),hLe={adaptiveSelect:DNe,array:dLe,checkbox:kNe,color:pLe,combobox:kF,datetime:PNe,date:MNe,email:zNe,telephone:jNe,url:HNe,integer:GNe,number:YNe,password:gLe,radio:ZNe,select:CF,text:QNe,time:tLe,toggle:nLe,textarea:aLe,toggleGroup:cLe};function Jct(e){return e&&typeof e=="object"&&typeof e.control=="string"}function eut(e){let{control:t,...o}=e,r=VF(t);return r===null?null:function(i){return(0,bLe.jsx)(r,{...i,config:o})}}function yLe(e,t){return typeof e.Edit=="function"?e.Edit:typeof e.Edit=="string"?VF(e.Edit):Jct(e.Edit)?eut(e.Edit):DF(e)&&e.type!=="array"?VF("adaptiveSelect"):t===null?null:VF(t)}function VF(e){return Object.keys(hLe).includes(e)?hLe[e]:null}function tut(e,t,o){if(e.filterBy===!1)return!1;let r=e.filterBy?.operators?.filter(n=>o.includes(n))??t;return r.length===0?!1:{isPrimary:!!e.filterBy?.isPrimary,operators:r}}var vLe=tut;var out=e=>({item:t})=>{let o=e.split("."),r=t;for(let n of o)r.hasOwnProperty(n)?r=r[n]:r=void 0;return r},_Le=out;var rut=e=>({value:t})=>{let o=e.split("."),r={},n=r;for(let i of o.slice(0,-1))n[i]={},n=n[i];return n[o.at(-1)]=t,r},wLe=rut;var xLe=c(Z(),1);function FF({item:e,field:t}){let{elements:o,isLoading:r}=la({elements:t.elements,getElements:t.getElements}),n=t.getValue({item:e});return r||o.length===0?n:o?.find(i=>i.value===n)?.label||t.getValue({item:e})}var kLe=c(T(),1);function dr({item:e,field:t}){return t.hasElements?(0,kLe.jsx)(FF,{item:e,field:t}):t.getValueFormatted({item:e,field:t})}var Xd=(e,t,o)=>o==="asc"?e.localeCompare(t):t.localeCompare(e);function fr(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)}function Qd(e,t){if(typeof t.isValid.minLength?.constraint!="number")return!1;let o=t.getValue({item:e});return[void 0,"",null].includes(o)?!0:String(o).length>=t.isValid.minLength.constraint}function Jd(e,t){if(typeof t.isValid.maxLength?.constraint!="number")return!1;let o=t.getValue({item:e});return[void 0,"",null].includes(o)?!0:String(o).length<=t.isValid.maxLength.constraint}function ef(e,t){if(t.isValid.pattern?.constraint===void 0)return!0;try{let o=new RegExp(t.isValid.pattern.constraint),r=t.getValue({item:e});return[void 0,"",null].includes(r)?!0:o.test(String(r))}catch{return!1}}function To(e,t){let r=(t.elements??[]).map(i=>i.value);if(r.length===0)return!0;let n=t.getValue({item:e});return[].concat(n).every(i=>r.includes(i))}function nut({item:e,field:t}){return t.getValue({item:e})}var Cs=nut;var iut=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function sut(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!iut.test(o)?(0,xLe.__)("Value must be a valid email address."):null}var SLe={type:"email",render:dr,Edit:"email",sort:Xd,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[cr,ur],validOperators:[Er,Tr,Gd,$d,Yd,cr,ur,Ki],format:{},getValueFormatted:Cs,validate:{required:fr,pattern:ef,minLength:Qd,maxLength:Jd,elements:To,custom:sut}};var CLe=c(Z(),1);var _0=(e,t,o)=>o==="asc"?e-t:t-e;function zF(e,t){if(typeof t.isValid.min?.constraint!="number")return!1;let o=t.getValue({item:e});return[void 0,"",null].includes(o)?!0:Number(o)>=t.isValid.min.constraint}function jF(e,t){if(typeof t.isValid.max?.constraint!="number")return!1;let o=t.getValue({item:e});return[void 0,"",null].includes(o)?!0:Number(o)<=t.isValid.max.constraint}var ELe={separatorThousand:","};function aut({item:e,field:t}){let o=t.getValue({item:e});if(o==null)return"";if(o=Number(o),!Number.isFinite(o))return String(o);let r;t.type!=="integer"?r=ELe:r=t.format;let{separatorThousand:n}=r,i=Math.trunc(o);return n?String(i).replace(/\B(?=(\d{3})+(?!\d))/g,n):String(i)}function lut(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!Number.isInteger(o)?(0,CLe.__)("Value must be an integer."):null}var TLe={type:"integer",render:dr,Edit:"integer",sort:_0,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Er,Tr,Mh,Nh,Lh,Dh,Cn],validOperators:[Er,Tr,Mh,Nh,Lh,Dh,Cn,cr,ur,Ki],format:ELe,getValueFormatted:aut,validate:{required:fr,min:zF,max:jF,elements:To,custom:lut}};var RLe=c(Z(),1);var BLe={separatorThousand:",",separatorDecimal:".",decimals:2};function cut({item:e,field:t}){let o=t.getValue({item:e});if(o==null)return"";if(o=Number(o),!Number.isFinite(o))return String(o);let r;t.type!=="number"?r=BLe:r=t.format;let{separatorThousand:n,separatorDecimal:i,decimals:s}=r,a=o.toFixed(s),[l,u]=a.split("."),d=n?l.replace(/\B(?=(\d{3})+(?!\d))/g,n):l;return s===0?d:d+i+u}function uut(e){return e===""||e===void 0||e===null}function dut(e,t){let o=t.getValue({item:e});return!uut(o)&&!Number.isFinite(o)?(0,RLe.__)("Value must be a number."):null}var ILe={type:"number",render:dr,Edit:"number",sort:_0,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Er,Tr,Mh,Nh,Lh,Dh,Cn],validOperators:[Er,Tr,Mh,Nh,Lh,Dh,Cn,cr,ur,Ki],format:BLe,getValueFormatted:cut,validate:{required:fr,min:zF,max:jF,elements:To,custom:dut}};var PLe={type:"text",render:dr,Edit:"text",sort:Xd,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[cr,ur],validOperators:[Er,Tr,Gd,$d,Yd,cr,ur,Ki],format:{},getValueFormatted:Cs,validate:{required:fr,pattern:ef,minLength:Qd,maxLength:Jd,elements:To}};var jv=c(Ul(),1);var OLe=c(Ul(),1);function ALe(e){if(!Vc(new Date(e)))return null;let t=(0,OLe.getDate)(e);return t&&Vc(t)?t.getTime():null}function HF(e,t,o,r){let n=t.isValid[o]?.constraint;if(typeof n!="string")return!1;let i=t.getValue({item:e}),s=Array.isArray(i)?i[o==="min"?0:i.length-1]:i;if(s==null||s==="")return!0;let a=r(n),l=r(String(s));return a===null||l===null?!1:o==="min"?l>=a:l<=a}function WF(e,t){return HF(e,t,"min",ALe)}function UF(e,t){return HF(e,t,"max",ALe)}function MLe(e,t){return HF(e,t,"min",xs)}function NLe(e,t){return HF(e,t,"max",xs)}var LLe={datetime:(0,jv.getSettings)().formats.datetime,weekStartsOn:(0,jv.getSettings)().l10n.startOfWeek};function fut({item:e,field:t}){let o=t.getValue({item:e});if(["",void 0,null].includes(o))return"";let r;return t.type!=="datetime"?r=LLe:r=t.format,(0,jv.dateI18n)(r.datetime,(0,jv.getDate)(o))}var put=(e,t,o)=>{let r=new Date(e).getTime(),n=new Date(t).getTime();return o==="asc"?r-n:n-r},DLe={type:"datetime",render:dr,Edit:"datetime",sort:put,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[xu,Su,vu,_u,wu,ku,ks,aa],validOperators:[xu,Su,vu,_u,wu,ku,ks,aa],format:LLe,getValueFormatted:fut,validate:{required:fr,elements:To,min:WF,max:UF}};var Hv=c(Ul(),1);var VLe={date:(0,Hv.getSettings)().formats.date,weekStartsOn:(0,Hv.getSettings)().l10n.startOfWeek};function mut({item:e,field:t}){let o=t.getValue({item:e});if(["",void 0,null].includes(o))return"";let r;return t.type!=="date"?r=VLe:r=t.format,(0,Hv.dateI18n)(r.date,(0,Hv.getDate)(o))}var gut=(e,t,o)=>{let r=new Date(e).getTime(),n=new Date(t).getTime();return o==="asc"?r-n:n-r},FLe={type:"date",render:dr,Edit:"date",sort:gut,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[xu,Su,vu,_u,wu,ku,ks,aa,Cn],validOperators:[xu,Su,vu,_u,wu,ku,ks,aa,Cn],format:VLe,getValueFormatted:mut,validate:{required:fr,elements:To,min:WF,max:UF}};var w0=c(Ul(),1);var zLe={time:(0,w0.getSettings)().formats.time},hut="2000-01-01";function but(e){let t=Math.floor(e/3600),o=Math.floor(e%3600/60),r=e%60,n=[t,o,r].map(i=>String(i).padStart(2,"0")).join(":");return(0,w0.getDate)(`${hut}T${n}`)}function yut({item:e,field:t}){let o=xs(t.getValue({item:e}));if(o===null)return"";let r;return t.type!=="time"?r=zLe:r=t.format,(0,w0.dateI18n)(r.time,but(o))}var vut=(e,t,o)=>{let r=xs(e),n=xs(t);return r===null||n===null?r===n?0:r===null?1:-1:o==="asc"?r-n:n-r},jLe={type:"time",render:dr,Edit:"time",sort:vut,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[xu,Su,vu,_u,wu,ku,Cn],validOperators:[xu,Su,vu,_u,wu,ku,Cn],format:zLe,getValueFormatted:yut,validate:{required:fr,elements:To,min:MLe,max:NLe}};var GF=c(Z(),1);function HLe(e,t){return t.getValue({item:e})===!0}function _ut({item:e,field:t}){let o=t.getValue({item:e});return o===!0?(0,GF.__)("True"):o===!1?(0,GF.__)("False"):""}function wut(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&![!0,!1].includes(o)?(0,GF.__)("Value must be true, false, or undefined"):null}var kut=(e,t,o)=>{let r=!!e;return r===!!t?0:o==="asc"?r?1:-1:r?-1:1},WLe={type:"boolean",render:dr,Edit:"checkbox",sort:kut,validate:{required:HLe,elements:To,custom:wut},enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Er,Tr],validOperators:[Er,Tr],format:{},getValueFormatted:_ut};var ULe={type:"media",render:()=>null,Edit:null,sort:()=>0,enableSorting:!1,enableGlobalSearch:!1,defaultOperators:[],validOperators:[],format:{},getValueFormatted:Cs,validate:{}};var yJ=c(Z(),1);function GLe(e,t){let o=t.getValue({item:e});return Array.isArray(o)&&o.length>0&&o.every(r=>![void 0,"",null].includes(r))}function $Le({item:e,field:t}){let o=t.getValue({item:e});return(Array.isArray(o)?o:[]).join(", ")}function xut({item:e,field:t}){return $Le({item:e,field:t})}function Sut(e,t){let o=t.getValue({item:e});return[void 0,"",null].includes(o)?null:Array.isArray(o)?o.every(r=>typeof r=="string")?null:(0,yJ.__)("Every value must be a string."):(0,yJ.__)("Value must be an array.")}var Cut=(e,t,o)=>{let r=Array.isArray(e)?e:[],n=Array.isArray(t)?t:[];if(r.length!==n.length)return o==="asc"?r.length-n.length:n.length-r.length;let i=r.join(","),s=n.join(",");return o==="asc"?i.localeCompare(s):s.localeCompare(i)},YLe={type:"array",render:xut,Edit:"array",sort:Cut,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[cr,ur],validOperators:[cr,ur,aF,Ki],format:{},getValueFormatted:$Le,validate:{required:GLe,elements:To,custom:Sut}};function Eut({item:e,field:t}){return t.getValue({item:e})?"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022":""}var KLe={type:"password",render:dr,Edit:"password",sort:()=>0,enableSorting:!1,enableGlobalSearch:!1,defaultOperators:[],validOperators:[],format:{},getValueFormatted:Eut,validate:{required:fr,pattern:ef,minLength:Qd,maxLength:Jd,elements:To}};var qLe={type:"telephone",render:dr,Edit:"telephone",sort:Xd,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[cr,ur],validOperators:[Er,Tr,Gd,$d,Yd,cr,ur,Ki],format:{},getValueFormatted:Cs,validate:{required:fr,pattern:ef,minLength:Qd,maxLength:Jd,elements:To}};var ZLe=c(Z(),1);var k0=c(T(),1);function Tut({item:e,field:t}){if(t.hasElements)return(0,k0.jsx)(FF,{item:e,field:t});let o=Cs({item:e,field:t});return!o||!Go(o).isValid()?o:(0,k0.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,k0.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"50%",backgroundColor:o,border:"1px solid #ddd",flexShrink:0}}),(0,k0.jsx)("span",{children:o})]})}function Rut(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!Go(o).isValid()?(0,ZLe.__)("Value must be a valid color."):null}var But=(e,t,o)=>{let r=Go(e),n=Go(t);if(!r.isValid()&&!n.isValid())return 0;if(!r.isValid())return o==="asc"?1:-1;if(!n.isValid())return o==="asc"?-1:1;let i=r.toHsl(),s=n.toHsl();return i.h!==s.h?o==="asc"?i.h-s.h:s.h-i.h:i.s!==s.s?o==="asc"?i.s-s.s:s.s-i.s:o==="asc"?i.l-s.l:s.l-i.l},XLe={type:"color",render:Tut,Edit:"color",sort:But,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[cr,ur],validOperators:[Er,Tr,cr,ur],format:{},getValueFormatted:Cs,validate:{required:fr,elements:To,custom:Rut}};var QLe={type:"url",render:dr,Edit:"url",sort:Xd,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[cr,ur],validOperators:[Er,Tr,Gd,$d,Yd,cr,ur,Ki],format:{},getValueFormatted:Cs,validate:{required:fr,pattern:ef,minLength:Qd,maxLength:Jd,elements:To}};var Iut=(e,t,o)=>typeof e=="number"&&typeof t=="number"?_0(e,t,o):Xd(e,t,o),JLe={render:dr,Edit:null,sort:Iut,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Er,Tr],validOperators:iNe(),format:{},getValueFormatted:Cs,validate:{required:fr,elements:To}};function Put(e){return e==="integer"||e==="number"}function Out(e){return e==="date"||e==="datetime"||e==="time"}function eDe(e,t,o){let r=t.validate[o];if(r&&(typeof e=="number"&&Put(t.type)||typeof e=="string"&&Out(t.type)))return{constraint:e,validate:r}}function tDe(e,t){let o=e.isValid,r;o?.required===!0&&t.validate.required!==void 0&&(r={constraint:!0,validate:t.validate.required});let n;(o?.elements===!0||o?.elements===void 0&&(e.elements||e.getElements))&&t.validate.elements!==void 0&&(n={constraint:!0,validate:t.validate.elements});let i=eDe(o?.min,t,"min"),s=eDe(o?.max,t,"max"),a=o?.minLength,l;typeof a=="number"&&t.validate.minLength!==void 0&&(l={constraint:a,validate:t.validate.minLength});let u=o?.maxLength,d;typeof u=="number"&&t.validate.maxLength!==void 0&&(d={constraint:u,validate:t.validate.maxLength});let f=o?.pattern,p;f!==void 0&&t.validate.pattern!==void 0&&(p={constraint:f,validate:t.validate.pattern});let m=o?.custom??t.validate.custom;return{required:r,elements:n,min:i,max:s,minLength:l,maxLength:d,pattern:p,custom:m}}function oDe(e){return e.validOperators.reduce((t,o)=>{let r=nNe(o);return r?.filter&&(t[o]=r.filter),t},{})}function Aut(e,t){return{...t.format,...e.format}}var rDe=Aut;function Mut(e){let t=[SLe,TLe,ILe,PLe,DLe,FLe,jLe,WLe,ULe,YLe,KLe,qLe,XLe,QLe].find(o=>o?.type===e);return t||JLe}function $F(e){return e.map(t=>{let o=Mut(t.type),r=t.getValue||_Le(t.id),n=function(i,s,a){let l=r({item:i}),u=r({item:s});return t.sort?t.sort(l,u,a):o.sort(l,u,a)};return{id:t.id,label:t.label||t.id,header:t.header||t.label||t.id,description:t.description,placeholder:t.placeholder,getValue:r,setValue:t.setValue||wLe(t.id),elements:t.elements,getElements:t.getElements,hasElements:DF(t),isVisible:t.isVisible,isDisabled:typeof t.isDisabled=="function"?t.isDisabled:()=>!!t.isDisabled,enableHiding:t.enableHiding??!0,readOnly:t.readOnly??!1,type:o.type,render:t.render??o.render,Edit:yLe(t,o.Edit),sort:n,enableSorting:t.enableSorting??o.enableSorting,enableGlobalSearch:t.enableGlobalSearch??o.enableGlobalSearch,isValid:tDe(t,o),filterBy:vLe(t,o.defaultOperators,o.validOperators),filter:oDe(o),format:rDe(t,o),getValueFormatted:t.getValueFormatted??o.getValueFormatted}})}var SJ=c(F(),1);var nDe=c(F(),1),iDe=c(T(),1),vJ=(0,nDe.createContext)({fields:[]});vJ.displayName="DataFormContext";function sDe({fields:e,children:t}){return(0,iDe.jsx)(vJ.Provider,{value:{fields:e},children:t})}var dc=vJ;var r8=c(F(),1);var qF=c(F(),1),RB=c(q(),1);function YF(e){return!!e&&(e.readOnly===!0||!!e.Edit)}var TB=c(Z(),1),qi={type:"regular",labelPosition:"top"},Nut=e=>typeof e=="string"?[{id:e,visibility:"when-collapsed"}]:e.map(t=>typeof t=="string"?{id:t,visibility:"when-collapsed"}:{id:t.id,visibility:t.visibility});function aDe(e){let t=qi;if(e?.type==="regular")t={type:"regular",labelPosition:e?.labelPosition??"top"};else if(e?.type==="panel"){let o=e.summary??[],r=Array.isArray(o)?o:[o],n=e?.openAs,i;typeof n=="object"&&n.type==="modal"?i={type:"modal",applyLabel:n.applyLabel?.trim()||(0,TB.__)("Apply"),cancelLabel:n.cancelLabel?.trim()||(0,TB.__)("Cancel")}:n==="modal"?i={type:"modal",applyLabel:(0,TB.__)("Apply"),cancelLabel:(0,TB.__)("Cancel")}:i={type:"dropdown"},t={type:"panel",labelPosition:e?.labelPosition??"side",openAs:i,summary:r,editVisibility:e?.editVisibility??"on-hover",showPlaceholderIfEmpty:e?.showPlaceholderIfEmpty??!1}}else if(e?.type==="card")if(e.withHeader===!1)t={type:"card",withHeader:!1,isOpened:!0,summary:[],isCollapsible:!1};else{let o=e.summary??[];t={type:"card",withHeader:!0,isOpened:typeof e.isOpened=="boolean"?e.isOpened:!0,summary:Nut(o),isCollapsible:e.isCollapsible===void 0?!0:e.isCollapsible}}else e?.type==="row"?t={type:"row",alignment:e?.alignment??"center",styles:e?.styles??{}}:e?.type==="details"&&(t={type:"details",summary:e?.summary??""});return t}function lDe(e){let t=aDe(e?.layout),o=(e.fields??[]).map(r=>{if(typeof r=="string")return{id:r,layout:t};let n=r.layout?aDe(r.layout):t;return{id:r.id,layout:n,...!!r.label&&{label:r.label},...!!r.description&&{description:r.description},..."children"in r&&Array.isArray(r.children)&&{children:lDe({fields:r.children,layout:qi}).fields}}});return{layout:t,fields:o}}var KF=lDe;var pr=c(T(),1);function Lut({title:e}){return(0,pr.jsx)($e,{direction:"column",className:"dataforms-layouts-regular__header",gap:"lg",children:(0,pr.jsx)($e,{direction:"row",align:"center",children:(0,pr.jsx)(RB.__experimentalHeading,{level:2,size:13,children:e})})})}function cDe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{fields:s}=(0,qF.useContext)(dc),a=t.layout,l=(0,qF.useMemo)(()=>({layout:qi,fields:t.children?t.children:[]}),[t]);if(t.children)return(0,pr.jsxs)(pr.Fragment,{children:[!r&&t.label&&(0,pr.jsx)(Lut,{title:t.label}),(0,pr.jsx)(ua,{data:e,form:l,onChange:o,validity:i?.children})]});let u=a.labelPosition,d=s.find(f=>f.id===t.id);return YF(d)?u==="side"?(0,pr.jsxs)($e,{direction:"row",className:"dataforms-layouts-regular__field",gap:"sm",children:[(0,pr.jsx)("div",{className:Y("dataforms-layouts-regular__field-label",`dataforms-layouts-regular__field-label--label-position-${u}`),children:(0,pr.jsx)(RB.BaseControl.VisualLabel,{children:d.label})}),(0,pr.jsx)("div",{className:"dataforms-layouts-regular__field-control",children:d.readOnly===!0?(0,pr.jsx)(d.render,{item:e,field:d}):d.Edit&&(0,pr.jsx)(d.Edit,{data:e,field:d,onChange:o,hideLabelFromVision:!0,markWhenOptional:n,validity:i},d.id)})]}):(0,pr.jsx)("div",{className:"dataforms-layouts-regular__field",children:d.readOnly===!0?(0,pr.jsx)(pr.Fragment,{children:(0,pr.jsxs)(pr.Fragment,{children:[!r&&u!=="none"&&(0,pr.jsx)(RB.BaseControl.VisualLabel,{children:d.label}),(0,pr.jsx)(d.render,{item:e,field:d})]})}):d.Edit&&(0,pr.jsx)(d.Edit,{data:e,field:d,onChange:o,hideLabelFromVision:u==="none"?!0:r,markWhenOptional:n,validity:i})}):null}var kJ=c(i2(),1),Wv=c(q(),1),Eu=c(F(),1),JF=c(ue(),1);var gDe=c(q(),1),x0=c(Z(),1);var hDe=c(ue(),1);function Dut(e,t){return Y("dataforms-layouts-panel__field-label",`dataforms-layouts-panel__field-label--label-position-${e}`,{"has-error":t})}var uDe=Dut;var dDe=c(q(),1);var jh=c(T(),1);function Vut({showError:e,errorMessage:t,fieldLabel:o,errorId:r}){return e?(0,jh.jsxs)("span",{className:"dataforms-layouts-panel__field-label-error-content",children:[(0,jh.jsx)(dDe.Icon,{icon:nC,size:16}),(0,jh.jsx)(ht,{id:r,children:t}),o]}):(0,jh.jsx)(jh.Fragment,{children:o})}var _J=Vut;function fDe(e){if(!e)return;let t=Object.keys(e).filter(o=>o!=="children");for(let o of t){let r=e[o];if(r!==void 0&&r.type==="invalid")return r.message?r.message:o==="required"?"A required field is empty":"Unidentified validation error"}if(e.children)for(let o of Object.values(e.children)){let r=fDe(o);if(r)return r}}var pDe=fDe;var da=c(T(),1);function mDe({item:e,field:t,showPlaceholderIfEmpty:o}){return o&&t.placeholder&&[void 0,null,""].includes(t.getValue({item:e}))?(0,da.jsx)("span",{className:"dataforms-layouts-panel__field-placeholder",children:t.placeholder}):(0,da.jsx)(t.render,{item:e,field:t})}function BB({data:e,field:t,fieldLabel:o,summaryFields:r,validity:n,touched:i,disabled:s,isOpen:a,onClick:l}){let{labelPosition:u,editVisibility:d,showPlaceholderIfEmpty:f}=t.layout,p=pDe(n),m=i&&!!p,g=uDe(u,m),h=Y("dataforms-layouts-panel__field-trigger",`dataforms-layouts-panel__field-trigger--label-${u}`,{"is-disabled":s,"dataforms-layouts-panel__field-trigger--edit-always":d==="always"}),b=(0,hDe.useInstanceId)(BB,"dataforms-layouts-panel__field-control"),v=`${b}-error`,y=m?(0,x0.sprintf)((0,x0._x)("Edit %s (has errors)","field"),o||""):(0,x0.sprintf)((0,x0._x)("Edit %s","field"),o||"");return(0,da.jsxs)("div",{className:h,children:[u!=="none"&&(0,da.jsx)("span",{className:g,children:(0,da.jsx)(_J,{showError:m,errorMessage:p,fieldLabel:o,errorId:v})}),u==="none"&&m&&(0,da.jsx)(_J,{showError:!0,errorMessage:p,errorId:v}),(0,da.jsx)("span",{id:`${b}`,className:"dataforms-layouts-panel__field-control",children:r.length>1?(0,da.jsx)("span",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%",gap:"2px"},children:r.map(_=>(0,da.jsx)("span",{style:{width:"100%"},children:(0,da.jsx)(mDe,{item:e,field:_,showPlaceholderIfEmpty:f})},_.id))}):r.map(_=>(0,da.jsx)(mDe,{item:e,field:_,showPlaceholderIfEmpty:f},_.id))}),!s&&(0,da.jsx)(gDe.Button,{className:"dataforms-layouts-panel__field-trigger-icon",label:y,icon:wb,size:"small","aria-expanded":a,"aria-haspopup":"dialog","aria-describedby":m?`${b} ${v}`:b,onClick:l})]})}var bDe=c(i2(),1),wJ=c(ab(),1),tf=c(F(),1),Es=c(Z(),1);function yDe(e){return e?Object.values(e).every(t=>Object.entries(t).every(([o,r])=>o==="children"&&r&&typeof r=="object"?yDe(r):r.type!=="invalid"&&r.type!=="validating")):!0}function Fut(e,t){let o=KF(e);if(o.fields.length===0)return[];let r=new Map;t.forEach(s=>{r.set(s.id,s)});function n(s){if("children"in s&&Array.isArray(s.children)){let u=s.children.map(n).filter(d=>d!==null);return u.length===0?null:{id:s.id,children:u}}let a=r.get(s.id);if(!a)return null;let[l]=$F([a]);return{id:s.id,children:[],field:l}}return o.fields.map(n).filter(s=>s!==null)}function S0(e,t,o){if(e||(e={}),o.length===0)return e;let r={...e},n=r;for(let s=0;s<o.length-1;s++){let a=o[s];n[a]||(n[a]={}),n[a]={...n[a]},n=n[a]}let i=o[o.length-1];return n[i]={...n[i]||{},...t},r}function vDe(e,t,o){if(!e||t.length===0)return e;let r={...e},n=r;for(let a=0;a<t.length-1;a++){let l=t[a];if(!n[l])return e;n[l]={...n[l]},n=n[l]}let i=t[t.length-1];if(!n[i])return e;let s={...n[i]};if(delete s[o],Object.keys(s).length===0?delete n[i]:n[i]=s,Object.keys(r).length!==0)return r}function zut(e,t,o){let{elementsCounterRef:r,setFormValidity:n,path:i,item:s}=o,a=(r.current[t.id]||0)+1;r.current[t.id]=a,e.then(l=>{if(a===r.current[t.id]){if(!Array.isArray(l)){n(u=>S0(u,{elements:{type:"invalid",message:(0,Es.__)("Could not validate elements.")}},[...i,t.id]));return}t.field?.isValid.elements&&!t.field.isValid.elements.validate(s,{...t.field,elements:l})?n(u=>S0(u,{elements:{type:"invalid",message:(0,Es.__)("Value must be one of the elements.")}},[...i,t.id])):n(u=>vDe(u,[...i,t.id],"elements"))}}).catch(l=>{if(a!==r.current[t.id])return;let u;l instanceof Error?u=l.message:u=String(l)||(0,Es.__)("Unknown error when running elements validation asynchronously."),n(d=>S0(d,{elements:{type:"invalid",message:u}},[...i,t.id]))})}function jut(e,t,o){let{customCounterRef:r,setFormValidity:n,path:i}=o,s=(r.current[t.id]||0)+1;r.current[t.id]=s,e.then(a=>{if(s===r.current[t.id]){if(a===null){n(l=>vDe(l,[...i,t.id],"custom"));return}if(typeof a=="string"){n(l=>S0(l,{custom:{type:"invalid",message:a}},[...i,t.id]));return}n(l=>S0(l,{custom:{type:"invalid",message:(0,Es.__)("Validation could not be processed.")}},[...i,t.id]))}}).catch(a=>{if(s!==r.current[t.id])return;let l;a instanceof Error?l=a.message:l=String(a)||(0,Es.__)("Unknown error when running custom validation asynchronously."),n(u=>S0(u,{custom:{type:"invalid",message:l}},[...i,t.id]))})}function _De(e,t){return e.children.length===0&&!!e.field?.isVisible&&!e.field.isVisible(t)}function wDe(e,t,o){if(_De(t,e)){let{customCounterRef:i,elementsCounterRef:s}=o;i.current[t.id]&&(i.current[t.id]+=1),s.current[t.id]&&(s.current[t.id]+=1);return}if(t.field?.isValid.required&&!t.field.isValid.required.validate(e,t.field))return{required:{type:"invalid"}};if(t.field?.isValid.pattern&&!t.field.isValid.pattern.validate(e,t.field))return{pattern:{type:"invalid",message:(0,Es.__)("Value does not match the required pattern.")}};if(t.field?.isValid.min&&!t.field.isValid.min.validate(e,t.field))return{min:{type:"invalid",message:(0,Es.__)("Value is below the minimum.")}};if(t.field?.isValid.max&&!t.field.isValid.max.validate(e,t.field))return{max:{type:"invalid",message:(0,Es.__)("Value is above the maximum.")}};if(t.field?.isValid.minLength&&!t.field.isValid.minLength.validate(e,t.field))return{minLength:{type:"invalid",message:(0,Es.__)("Value is too short.")}};if(t.field?.isValid.maxLength&&!t.field.isValid.maxLength.validate(e,t.field))return{maxLength:{type:"invalid",message:(0,Es.__)("Value is too long.")}};if(t.field?.isValid.elements&&t.field.hasElements&&!t.field.getElements&&Array.isArray(t.field.elements)&&!t.field.isValid.elements.validate(e,t.field))return{elements:{type:"invalid",message:(0,Es.__)("Value must be one of the elements.")}};let r;if(t.field&&t.field.isValid.custom)try{let i=t.field.getValue({item:e});r=t.field.isValid.custom((0,bDe.default)(e,t.field.setValue({item:e,value:i})),t.field)}catch(i){let s;return i instanceof Error?s=i.message:s=String(i)||(0,Es.__)("Unknown error when running custom validation."),{custom:{type:"invalid",message:s}}}if(typeof r=="string")return{custom:{type:"invalid",message:r}};let n={};if(t.field&&t.field.isValid.elements&&t.field.hasElements&&typeof t.field.getElements=="function"&&(zut(t.field.getElements(),t,o),n.elements={type:"validating",message:(0,Es.__)("Validating\u2026")}),r instanceof Promise&&(jut(r,t,o),n.custom={type:"validating",message:(0,Es.__)("Validating\u2026")}),Object.keys(n).length>0)return n;if(t.children.length>0){let i={};t.children.forEach(a=>{i[a.id]=wDe(e,a,{...o,path:[...o.path,t.id,"children"]})});let s={};return Object.entries(i).forEach(([a,l])=>{l!==void 0&&(s[a]=l)}),Object.keys(s).length===0?void 0:{children:s}}}function kDe(e,t){let o=e?.field?.getValue({item:t}),r=_De(e,t);if(e.children.length===0)return{value:o,isHidden:r};let n=e.children.map(i=>kDe(i,t));return{value:o,isHidden:r,children:n}}function Hut(e,t,o){let[r,n]=(0,tf.useState)(),i=(0,tf.useRef)({}),s=(0,tf.useRef)({}),a=(0,tf.useRef)({}),l=(0,tf.useCallback)(()=>{let u={customCounterRef:i,elementsCounterRef:s,setFormValidity:n,path:[],item:e},d=Fut(o,t);if(d.length===0){n(void 0);return}let f={},p=[];d.forEach(m=>{let g=kDe(m,e);if(a.current.hasOwnProperty(m.id)&&(0,wJ.default)(a.current[m.id],g)){p.push(m.id);return}a.current[m.id]=g;let h=wDe(e,m,u);h!==void 0&&(f[m.id]=h)}),n(m=>{let g={...m,...f},h=[...p,...Object.keys(f)];return Object.keys(g).forEach(v=>{g&&!h.includes(v)&&delete g[v]}),Object.keys(g).length===0&&(g=void 0),(0,wJ.default)(m,g)?m:g})},[e,t,o]);return(0,tf.useEffect)(()=>{l()},[l]),{validity:r,isValid:yDe(r)}}var xDe=Hut;var ZF=c(F(),1);function Hh(e,t){let o=(0,ZF.useCallback)(()=>{let r=e.current?.querySelectorAll("input, textarea, select"),n=0;return r?.forEach(i=>{i.willValidate&&!i.validity.valid&&(n++,i.dispatchEvent(new Event("invalid",{cancelable:!0})))}),n},[e]);return(0,ZF.useEffect)(()=>{t&&o()},[t,o]),o}var SDe=c(F(),1);function Wut(e){return Array.isArray(e)?e.map(t=>typeof t=="string"?t:t.id):[]}var XF=(e,t)=>Array.isArray(e)&&e.length>0?Wut(e).map(r=>t.find(n=>n.id===r)).filter(r=>r!==void 0):[];var Uut=(e,t)=>{if(e.children){let o=e.children.filter(r=>!r.children);return o.length===0?void 0:t.find(r=>r.id===o[0].id)}return t.find(o=>o.id===e.id)};function Gut(e){let{fields:t}=(0,SDe.useContext)(dc),o=e.layout,r=XF(o.summary,t),n=Uut(e,t),i=e.children?e.label:n?.label;return r.length===0?{summaryFields:n?[n]:[],fieldDefinition:n,fieldLabel:i}:{summaryFields:r,fieldDefinition:n,fieldLabel:i}}var QF=Gut;var Ts=c(T(),1);function $ut({data:e,field:t,onChange:o,fieldLabel:r,onClose:n,touched:i}){let{openAs:s}=t.layout,{applyLabel:a,cancelLabel:l}=s,{fields:u}=(0,Eu.useContext)(dc),[d,f]=(0,Eu.useState)({}),p=(0,Eu.useMemo)(()=>(0,kJ.default)(e,d,{arrayMerge:(k,x)=>x}),[e,d]),m=(0,Eu.useMemo)(()=>({layout:qi,fields:t.children?t.children:[{id:t.id,layout:qi}]}),[t]),g=u.map(k=>({...k,Edit:k.Edit===null?void 0:k.Edit,isValid:{required:k.isValid.required?.constraint,elements:k.isValid.elements?.constraint,min:k.isValid.min?.constraint,max:k.isValid.max?.constraint,pattern:k.isValid.pattern?.constraint,minLength:k.isValid.minLength?.constraint,maxLength:k.isValid.maxLength?.constraint}})),{validity:h}=xDe(p,g,m),b=()=>{o(d),n()},v=k=>{f(x=>(0,kJ.default)(x,k,{arrayMerge:(C,E)=>E}))},y=(0,JF.useFocusOnMount)("firstInputElement"),_=(0,Eu.useRef)(null),w=(0,JF.useMergeRefs)([y,_]);return Hh(_,i),(0,Ts.jsxs)(Wv.Modal,{className:"dataforms-layouts-panel__modal",onRequestClose:n,isFullScreen:!1,title:r,size:"medium",children:[(0,Ts.jsx)("div",{ref:w,children:(0,Ts.jsx)(ua,{data:p,form:m,onChange:v,validity:h,children:(k,x,C,E)=>(0,Ts.jsx)(k,{data:p,field:x,onChange:v,hideLabelFromVision:m.fields.length<2,markWhenOptional:E,validity:C},x.id)})}),(0,Ts.jsxs)($e,{direction:"row",className:"dataforms-layouts-panel__modal-footer",gap:"md",children:[(0,Ts.jsx)(Wv.__experimentalSpacer,{style:{flex:1}}),(0,Ts.jsx)(Wv.Button,{variant:"tertiary",onClick:n,__next40pxDefaultSize:!0,children:l}),(0,Ts.jsx)(Wv.Button,{variant:"primary",onClick:b,__next40pxDefaultSize:!0,children:a})]})]})}function Yut({data:e,field:t,onChange:o,validity:r}){let[n,i]=(0,Eu.useState)(!1),[s,a]=(0,Eu.useState)(!1),{fieldDefinition:l,fieldLabel:u,summaryFields:d}=QF(t);if(!l)return null;let f=()=>{a(!1),i(!0)};return(0,Ts.jsxs)(Ts.Fragment,{children:[(0,Ts.jsx)(BB,{data:e,field:t,fieldLabel:u,summaryFields:d,validity:r,touched:n,disabled:l.readOnly===!0,onClick:()=>a(!0),isOpen:s}),s&&(0,Ts.jsx)($ut,{data:e,field:t,onChange:o,fieldLabel:u??"",onClose:f,touched:n})]})}var CDe=Yut;var Wh=c(q(),1),EDe=c(Z(),1),Yp=c(F(),1);var TDe=c(ue(),1);var Zi=c(T(),1);function Kut({title:e,onClose:t}){return(0,Zi.jsx)($e,{direction:"column",className:"dataforms-layouts-panel__dropdown-header",gap:"lg",children:(0,Zi.jsxs)($e,{direction:"row",gap:"sm",align:"center",children:[e&&(0,Zi.jsx)(Wh.__experimentalHeading,{level:2,size:13,children:e}),(0,Zi.jsx)(Wh.__experimentalSpacer,{style:{flex:1}}),t&&(0,Zi.jsx)(Wh.Button,{label:(0,EDe.__)("Close"),icon:pb,onClick:t,size:"small"})]})})}function qut({touched:e,children:t}){let o=(0,Yp.useRef)(null);return Hh(o,e),(0,Zi.jsx)("div",{ref:o,children:t})}function Zut({data:e,field:t,onChange:o,validity:r}){let[n,i]=(0,Yp.useState)(!1),[s,a]=(0,Yp.useState)(null),l=(0,Yp.useMemo)(()=>({anchor:s,placement:"left-start",offset:36,shift:!0}),[s]),[u,d]=(0,TDe.__experimentalUseDialog)({focusOnMount:"firstInputElement"}),f=(0,Yp.useMemo)(()=>({layout:qi,fields:t.children?t.children:[{id:t.id,layout:qi}]}),[t]),p=(0,Yp.useMemo)(()=>{if(r!==void 0)return t.children?r?.children:{[t.id]:r}},[r,t]),{fieldDefinition:m,fieldLabel:g,summaryFields:h}=QF(t);return m?(0,Zi.jsx)("div",{ref:a,className:"dataforms-layouts-panel__field-dropdown-anchor",children:(0,Zi.jsx)(Wh.Dropdown,{contentClassName:"dataforms-layouts-panel__field-dropdown",popoverProps:l,focusOnMount:!1,onToggle:b=>{b||i(!0)},renderToggle:({isOpen:b,onToggle:v})=>(0,Zi.jsx)(BB,{data:e,field:t,fieldLabel:g,summaryFields:h,validity:r,touched:n,disabled:m.readOnly===!0,isOpen:b,onClick:v}),renderContent:({onClose:b})=>(0,Zi.jsx)(qut,{touched:n,children:(0,Zi.jsxs)("div",{ref:u,...d,children:[(0,Zi.jsx)(Kut,{title:g,onClose:b}),(0,Zi.jsx)(ua,{data:e,form:f,onChange:o,validity:p,children:(v,y,_,w)=>(0,Zi.jsx)(v,{data:e,field:y,onChange:o,hideLabelFromVision:(f?.fields??[]).length<2,markWhenOptional:w,validity:_},y.id)})]})})})}):null}var RDe=Zut;var xJ=c(T(),1);function BDe({data:e,field:t,onChange:o,validity:r}){return t.layout.openAs.type==="modal"?(0,xJ.jsx)(CDe,{data:e,field:t,onChange:o,validity:r}):(0,xJ.jsx)(RDe,{data:e,field:t,onChange:o,validity:r})}var Xi=c(F(),1),ODe=c(Yo(),1),ADe=c(ue(),1);var e8=c(Z(),1);function IDe(e){if(!e)return 0;let t=0,o=Object.keys(e).filter(r=>r!=="children");for(let r of o)e[r]?.type==="invalid"&&t++;if(e.children)for(let r of Object.values(e.children))t+=IDe(r);return t}function C0(e){let t=IDe(e);if(t!==0)return(0,e8.sprintf)((0,e8._n)("%d field needs attention","%d fields need attention",t),t)}var PDe=c(T(),1);function t8({validity:e}){let t=C0(e);return t?(0,PDe.jsx)(wG,{intent:"high",children:t}):null}var Ur=c(T(),1);function Xut(e,t,o){if(!t||Array.isArray(t)&&t.length===0)return!1;let n=(Array.isArray(t)?t:[t]).find(i=>typeof i=="string"?i===e.id:typeof i=="object"&&"id"in i?i.id===e.id:!1);return n?typeof n=="string"?!0:typeof n=="object"&&"visibility"in n?n.visibility==="always"||n.visibility==="when-collapsed"&&!o:!0:!1}function Qut({data:e,fields:t,label:o,layout:r,isOpen:n,touched:i,validity:s}){let l=XF(r.summary,t).filter(f=>Xut(f,r.summary,n)),u=i&&r.isCollapsible,d=l.length>0&&r.withHeader;return(0,Ur.jsxs)($e,{align:"center",justify:"space-between",className:"dataforms-layouts-card__field-header-content",children:[(0,Ur.jsx)(dd.Title,{children:o}),(u||d)&&(0,Ur.jsxs)(wy.HeaderDescription,{className:"dataforms-layouts-card__field-header-content-description",children:[u&&(0,Ur.jsx)(t8,{validity:s}),d&&(0,Ur.jsx)("div",{className:"dataforms-layouts-card__field-summary",children:l.map(f=>(0,Ur.jsx)(f.render,{item:e,field:f},f.id))})]})]})}function Jut({data:e,field:t,form:o,onChange:r,hideLabelFromVision:n,markWhenOptional:i,validity:s,withHeader:a}){if(t.children)return(0,Ur.jsxs)(Ur.Fragment,{children:[t.description&&(0,Ur.jsx)("div",{className:"dataforms-layouts-card__field-description",children:t.description}),(0,Ur.jsx)(ua,{data:e,form:o,onChange:r,validity:s?.children})]});let l=Uv("regular")?.component;return l?(0,Ur.jsx)(l,{data:e,field:t,onChange:r,hideLabelFromVision:n||a,markWhenOptional:i,validity:s}):null}function MDe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{fields:s}=(0,Xi.useContext)(dc),a=t.layout,l=(0,Xi.useRef)(null),u=(0,Xi.useRef)(!1),d=(0,Xi.useMemo)(()=>({layout:qi,fields:t.children??[]}),[t]),{isOpened:f,isCollapsible:p}=a,[m,g]=(0,Xi.useState)(f),[h,b]=(0,Xi.useState)(!1);(0,Xi.useEffect)(()=>{g(f)},[f]);let v=(0,Xi.useCallback)(S=>{S||b(!0),g(S)},[]),y=Hh(l,(p?m:!0)&&h),_=(0,Xi.useCallback)(()=>{u.current=!0},[]),w=(0,Xi.useCallback)(()=>{if(!u.current||(b(!0),p&&!m))return;let S=y(),I=C0(i);S>0&&I&&(0,ODe.speak)(I,"polite")},[p,m,y,i]),k=(0,ADe.__experimentalUseFocusOutside)(w),x=t.label,C;if(t.children)C=!!x&&a.withHeader;else{let S=s.find(I=>I.id===t.id);if(!YF(S))return null;x=S.label,C=!!x&&a.withHeader}let E=(0,Ur.jsx)(Jut,{data:e,field:t,form:d,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,withHeader:C}),R=(0,Ur.jsx)(Qut,{data:e,fields:s,label:x,layout:a,isOpen:p?!!m:!0,touched:h,validity:i});return C&&p?(0,Ur.jsxs)(wy.Root,{className:"dataforms-layouts-card__field",open:m,onOpenChange:v,...k,children:[(0,Ur.jsx)(wy.Header,{children:R}),(0,Ur.jsx)(wy.Content,{ref:l,onFocus:_,children:E})]}):(0,Ur.jsxs)(dd.Root,{className:"dataforms-layouts-card__field",...k,children:[C&&(0,Ur.jsx)(dd.Header,{children:R}),(0,Ur.jsx)(dd.Content,{ref:l,onFocus:_,children:E})]})}var NDe=c(q(),1);var ni=c(T(),1);function edt({title:e}){return(0,ni.jsx)($e,{direction:"column",className:"dataforms-layouts-row__header",gap:"lg",children:(0,ni.jsx)($e,{direction:"row",align:"center",children:(0,ni.jsx)(NDe.__experimentalHeading,{level:2,size:13,children:e})})})}var tdt=({children:e})=>(0,ni.jsx)(ni.Fragment,{children:e});function LDe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let s=t.layout;if(t.children){let l={layout:qi,fields:t.children};return(0,ni.jsxs)("div",{className:"dataforms-layouts-row__field",children:[!r&&t.label&&(0,ni.jsx)(edt,{title:t.label}),(0,ni.jsx)($e,{direction:"row",align:s.alignment,gap:"lg",children:(0,ni.jsx)(ua,{data:e,form:l,onChange:o,validity:i?.children,as:tdt,children:(u,d,f)=>(0,ni.jsx)("div",{className:"dataforms-layouts-row__field-control",style:s.styles[d.id],children:(0,ni.jsx)(u,{data:e,field:d,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:f})},d.id)})})]})}let a=Uv("regular")?.component;return a?(0,ni.jsx)(ni.Fragment,{children:(0,ni.jsx)("div",{className:"dataforms-layouts-row__field-control",children:(0,ni.jsx)(a,{data:e,field:t,onChange:o,markWhenOptional:n,validity:i})})}):null}var Qi=c(F(),1),DDe=c(Z(),1),VDe=c(Yo(),1),FDe=c(ue(),1);var Kp=c(T(),1);function zDe({data:e,field:t,onChange:o,validity:r}){let{fields:n}=(0,Qi.useContext)(dc),i=(0,Qi.useRef)(null),s=(0,Qi.useRef)(null),a=(0,Qi.useRef)(!1),[l,u]=(0,Qi.useState)(!1),[d,f]=(0,Qi.useState)(!1),p=(0,Qi.useMemo)(()=>({layout:qi,fields:t.children??[]}),[t]);(0,Qi.useEffect)(()=>{let w=i.current;if(!w)return;let k=()=>{let x=w.open;x||u(!0),f(x)};return w.addEventListener("toggle",k),()=>{w.removeEventListener("toggle",k)}},[]);let m=Hh(s,d&&l),g=(0,Qi.useCallback)(()=>{a.current=!0},[]),h=(0,Qi.useCallback)(()=>{if(!a.current||(u(!0),!i.current?.open))return;let w=m(),k=C0(r);w>0&&k&&(0,VDe.speak)(k,"polite")},[m,r]),b=(0,FDe.__experimentalUseFocusOutside)(h);if(!t.children)return null;let v=t.layout.summary??"",y=v?n.find(w=>w.id===v):void 0,_;return y&&y.render?_=(0,Kp.jsx)(y.render,{item:e,field:y}):_=t.label||(0,DDe.__)("More details"),(0,Kp.jsxs)("details",{ref:i,className:"dataforms-layouts-details__details",...b,children:[(0,Kp.jsx)("summary",{className:"dataforms-layouts-details__summary",children:(0,Kp.jsxs)($e,{direction:"row",align:"center",gap:"md",className:"dataforms-layouts-details__summary-content",children:[_,l&&(0,Kp.jsx)(t8,{validity:r})]})}),(0,Kp.jsx)("div",{ref:s,className:"dataforms-layouts-details__content",onFocus:g,children:(0,Kp.jsx)(ua,{data:e,form:p,onChange:o,validity:r?.children})})]})}var Gv=c(T(),1),odt=[{type:"regular",component:cDe,wrapper:({children:e})=>(0,Gv.jsx)($e,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:e})},{type:"panel",component:BDe,wrapper:({children:e})=>(0,Gv.jsx)($e,{direction:"column",className:"dataforms-layouts__wrapper",gap:"md",children:e})},{type:"card",component:MDe,wrapper:({children:e})=>(0,Gv.jsx)($e,{direction:"column",className:"dataforms-layouts__wrapper",gap:"xl",children:e})},{type:"row",component:LDe,wrapper:({children:e,layout:t})=>(0,Gv.jsx)($e,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:(0,Gv.jsx)("div",{className:"dataforms-layouts-row__field",children:(0,Gv.jsx)($e,{direction:"row",gap:"lg",align:t.alignment,children:e})})})},{type:"details",component:zDe}];function Uv(e){return odt.find(t=>t.type===e)}var o8=c(T(),1),rdt=({children:e})=>(0,o8.jsx)($e,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:e});function ua({data:e,form:t,onChange:o,validity:r,children:n,as:i}){let{fields:s}=(0,r8.useContext)(dc),a=(0,r8.useMemo)(()=>{let d=s.filter(p=>!!p.isValid?.required).length,f=s.length-d;return d>f},[s]);function l(d){return s.find(f=>f.id===d.id)}let u=i??Uv(t.layout.type)?.wrapper??rdt;return(0,o8.jsx)(u,{layout:t.layout,children:t.fields.map(d=>{let f=Uv(d.layout.type)?.component;if(!f)return null;let p=d.children?void 0:l(d);return p&&p.isVisible&&!p.isVisible(e)?null:n?n(f,d,r?.[d.id],a):(0,o8.jsx)(f,{data:e,field:d,onChange:o,markWhenOptional:a,validity:r?.[d.id]},d.id)})})}var CJ=c(T(),1);function IB({data:e,form:t,fields:o,onChange:r,validity:n}){let i=(0,SJ.useMemo)(()=>KF(t),[t]),s=(0,SJ.useMemo)(()=>$F(o),[o]);return t.fields?(0,CJ.jsx)(sDe,{fields:s,children:(0,CJ.jsx)(ua,{data:e,form:i,onChange:r,validity:n})}):null}var $h=c(F(),1),o5e=c(Z(),1);var T0=c(q(),1);var EJ=c(Z(),1);var jDe=c(ue(),1);function E0({isControl:e}={isControl:!1}){return(0,jDe.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:e?35:259}}}var n8=c(T(),1);function HDe({fields:e,visibleFields:t,onToggleField:o}){let{popoverProps:r}=E0();return!e||e.length===0?null:(0,n8.jsx)(T0.DropdownMenu,{icon:ga,label:(0,EJ.__)("Options"),popoverProps:r,toggleProps:{size:"small"},children:({onClose:n})=>(0,n8.jsx)(T0.MenuGroup,{label:(0,EJ.__)("Show / Hide"),children:e.map(i=>{let s=t.includes(i.id);return(0,n8.jsx)(T0.MenuItem,{isSelected:s,onClick:()=>{o(i.id),n()},role:"menuitemcheckbox",icon:s?Ps:null,children:i.label},i.id)})})})}var i8=c(q(),1),WDe=c(ue(),1),UDe=c(ee(),1),qp=c(F(),1),GDe=c($r(),1);var Tu=c(T(),1),{useRichText:ndt,KeyboardShortcutContext:idt,InputEventContext:sdt}=K(GDe.privateApis);function $De({data:e,field:t,hideLabelFromVision:o,onChange:r,config:n={}}){let i=(0,UDe.useRegistry)(),s=t.getValue({item:e}),a=t.config||{},{clientId:l}=n,[u,d]=(0,qp.useState)({start:void 0,end:void 0}),[f,p]=(0,qp.useState)(!1),m=(0,qp.useRef)(),g=(0,qp.useRef)(new Set),h=(0,qp.useRef)(new Set),b=OS({allowedFormats:a?.allowedFormats,disableFormats:a?.disableFormats});function v(){m.current?.focus()}let{value:y,getValue:_,onChange:w,ref:k,formatTypes:x}=ndt({value:s,onChange(R){r(t.setValue({item:e,value:R}))},selectionStart:u.start,selectionEnd:u.end,onSelectionChange:(R,S)=>d({start:R,end:S}),__unstableIsSelected:f,preserveWhiteSpace:!!a?.preserveWhiteSpace,placeholder:a?.placeholder,__unstableDisableFormats:a?.disableFormats,allowedFormats:b,withoutInteractiveFormatting:a?.withoutInteractiveFormatting,__unstableFormatTypeHandlerContext:(0,qp.useMemo)(()=>({richTextIdentifier:t.id,blockClientId:l}),[t.id,l])}),{baseControlProps:C,controlProps:E}=(0,i8.useBaseControlProps)({hideLabelFromVision:o??t.hideLabelFromVision,label:t.label});return(0,Tu.jsxs)(Tu.Fragment,{children:[f&&(0,Tu.jsx)(idt.Provider,{value:h,children:(0,Tu.jsx)(sdt.Provider,{value:g,children:(0,Tu.jsx)("div",{children:(0,Tu.jsx)(U6,{value:y,onChange:w,onFocus:v,formatTypes:x,forwardedRef:m,isVisible:!1})})})}),(0,Tu.jsx)(i8.BaseControl,{...C,children:(0,Tu.jsx)("div",{className:"block-editor-content-only-controls__rich-text",role:"textbox","aria-multiline":!a?.disableLineBreaks,ref:(0,WDe.useMergeRefs)([k,j6({registry:i,getValue:_,onChange:w,formatTypes:x,selectionChange:d,isSelected:f,disableFormats:a?.disableFormats,value:y,tagName:"div",disableLineBreaks:a?.disableLineBreaks,keyboardShortcuts:h,inputEvents:g}),m]),onFocus:()=>p(!0),onBlur:()=>p(!1),contentEditable:!0,...E})})]})}var Gh=c(q(),1),YDe=c(ee(),1),KDe=c(Dt(),1),qDe=c(F(),1),Uh=c(Z(),1);var Rr=c(T(),1),adt=e=>{window.requestAnimationFrame(()=>{let[t]=KDe.focus.tabbable.find(e?.current);t&&t.focus()})};function ldt({data:e,field:t,attachment:o,config:r}){let{allowedTypes:n=[],multiple:i=!1}=r||{};if(i)return"todo multiple";if(o?.media_type==="image"||o?.poster)return(0,Rr.jsx)("div",{className:"block-editor-content-only-controls__media-thumbnail",children:(0,Rr.jsx)("img",{alt:"",width:20,height:20,src:o.media_type==="image"?o.source_url:o.poster})});if(n.length===1){let a=t.getValue({item:e})?.url;if(n[0]==="image"&&a)return(0,Rr.jsx)("div",{className:"block-editor-content-only-controls__media-thumbnail",children:(0,Rr.jsx)("img",{alt:"",width:20,height:20,src:a})});let l;if(n[0]==="image"?l=lC:n[0]==="video"?l=mj:n[0]==="audio"?l=z9:l=B_,l)return(0,Rr.jsx)(Gh.Icon,{icon:l,size:20})}return(0,Rr.jsx)(Gh.Icon,{icon:B_,size:20})}function ZDe({data:e,field:t,onChange:o,config:r={}}){let{popoverProps:n}=E0({isControl:!0}),i=t.getValue({item:e}),{allowedTypes:s=[],multiple:a=!1,useFeaturedImage:l=!1}=r,u=i?.id,d=i?.url,f=(0,YDe.useSelect)(g=>{if(!u)return;let b=g(B).getSettings()[_I];if(b)return b(g,u)},[u]),p;if(s.length===1){let g=s[0];g==="image"?p=(0,Uh.__)("Image"):g==="video"?p=(0,Uh.__)("Video"):g==="audio"?p=(0,Uh.__)("Audio"):g==="application"?p=(0,Uh.__)("File"):p=(0,Uh.__)("Media")}else p=(0,Uh.__)("Media");let m=(0,qDe.useRef)();return(0,Rr.jsx)(Pa,{children:(0,Rr.jsxs)("div",{ref:m,className:"block-editor-content-only-controls",children:[(0,Rr.jsx)(RS,{className:"block-editor-content-only-controls__media-replace-flow",allowedTypes:s,mediaId:u,mediaURL:d,multiple:a,popoverProps:n,onReset:()=>{o(t.setValue({item:e,value:{}}))},...l&&{useFeaturedImage:!!i?.featuredImage,onToggleFeaturedImage:()=>{o(t.setValue({item:e,value:{featuredImage:!i?.featuredImage}}))}},onSelect:g=>{if(g.id&&g.url){let h={...g,mediaType:g.media_type};l&&(h.featuredImage=!1),o(t.setValue({item:e,value:h}))}},renderToggle:g=>(0,Rr.jsx)(Gh.Button,{__next40pxDefaultSize:!0,className:"block-editor-content-only-controls__media",...g,children:(0,Rr.jsxs)(Gh.__experimentalGrid,{rowGap:0,columnGap:8,templateColumns:"20px 1fr",className:"block-editor-content-only-controls__media-row",children:[d&&(0,Rr.jsxs)(Rr.Fragment,{children:[(0,Rr.jsx)(ldt,{attachment:f,field:t,data:e,config:r}),(0,Rr.jsx)("span",{className:"block-editor-content-only-controls__media-title",children:f?.title?.raw&&f?.title?.raw!==""?f?.title?.raw:d})]}),!d&&(0,Rr.jsxs)(Rr.Fragment,{children:[(0,Rr.jsx)("span",{className:"block-editor-content-only-controls__media-placeholder",style:{width:"20px",height:"20px"}}),(0,Rr.jsx)("span",{className:"block-editor-content-only-controls__media-title",children:p})]})]})})}),d&&(0,Rr.jsx)(Gh.Button,{label:(0,Uh.__)("Reset"),className:"block-editor-content-only-controls__media-reset",size:"small",icon:In,onClick:()=>{o(t.setValue({item:e,value:{}})),adt(m)}})]})})}var Zp=c(q(),1),a8=c(F(),1),XDe=c(Z(),1);var QDe=c(ma(),1);var Ti=c(T(),1),TJ="noopener",JDe="_blank",s8="nofollow";function cdt({rel:e="",url:t="",opensInNewTab:o,nofollow:r}){let n,i=e;if(o)n=JDe,i=i?.includes(TJ)?i:i+` ${TJ}`;else{let s=new RegExp(`\\b${TJ}\\s*`,"g");i=i?.replace(s,"").trim()}if(r)i=i?.includes(s8)?i:(i+` ${s8}`).trim();else{let s=new RegExp(`\\b${s8}\\s*`,"g");i=i?.replace(s,"").trim()}return{url:(0,QDe.prependHTTP)(t),linkTarget:n,rel:i||void 0}}function e5e({data:e,field:t,onChange:o}){let[r,n]=(0,a8.useState)(!1),{popoverProps:i}=E0({isControl:!0}),s=t.getValue({item:e}),a=s?.url,l=s?.rel||"",d=s?.linkTarget===JDe,f=l===s8,p=(0,a8.useMemo)(()=>({url:a,opensInNewTab:d,nofollow:f}),[a,d,f]);return(0,Ti.jsxs)(Ti.Fragment,{children:[(0,Ti.jsx)(Zp.Button,{__next40pxDefaultSize:!0,className:"block-editor-content-only-controls__link",onClick:()=>{n(!0)},children:(0,Ti.jsxs)(Zp.__experimentalGrid,{rowGap:0,columnGap:8,templateColumns:"24px 1fr",className:"block-editor-content-only-controls__link-row",children:[a&&(0,Ti.jsxs)(Ti.Fragment,{children:[(0,Ti.jsx)(Zp.Icon,{icon:As,size:24}),(0,Ti.jsx)("span",{className:"block-editor-content-only-controls__link-title",children:a})]}),!a&&(0,Ti.jsxs)(Ti.Fragment,{children:[(0,Ti.jsx)(Zp.Icon,{icon:As,size:24,style:{opacity:.3}}),(0,Ti.jsx)("span",{className:"block-editor-content-only-controls__link-title",children:(0,XDe.__)("Link")})]})]})}),r&&(0,Ti.jsx)(Zp.Popover,{onClose:()=>{n(!1)},...i??{},children:(0,Ti.jsx)(vh,{value:p,onChange:m=>{let g=cdt({rel:l,...m});o(t.setValue({item:e,value:g}))},onRemove:()=>{o(t.setValue({item:e,value:{}}))}})})]})}var Ri=c(T(),1),{fieldsKey:r5e,formKey:RJ}=K(R0.privateApis);function BJ(e,t={}){return function(r){return(0,Ri.jsx)(e,{...r,config:t})}}function udt({clientId:e,blockType:t,setAttributes:o,isMultiBlock:r=!1}){let n=ui({clientId:e,context:"list-view"}),i=Ln(e),s=t?.[r5e],a=(0,$h.useContext)(Hn),l=(0,c8.useSelect)(v=>{let y=v(B).getBlockAttributes(e);if(!y?.metadata?.bindings)return y;let{__experimentalBlockBindingsSupportedAttributes:_}=v(B).getSettings(),w=_?.[t?.name],k=w?pI(y.metadata.bindings,w):y.metadata.bindings,{getBlockBindingsSource:x}=K(v(R0.store));return Object.entries(k).reduce((C,[E,R])=>{if(E==="__default")return C;let S=x(R.source);if(!S)return C;let I=S.getValues({select:v,clientId:e,context:a,bindings:{[E]:R}});return{...C,...I}},y)},[a,e,t?.name]),{selectBlock:u,toggleBlockHighlight:d}=(0,c8.useDispatch)(B),f=(0,t5e.useDebounce)(d,50),p=(0,$h.useMemo)(()=>r?{...t?.[RJ],fields:[t?.[RJ]?.fields?.[0]]}:t?.[RJ],[t,r]),[m,g]=(0,$h.useState)(p),h=(0,$h.useMemo)(()=>s?.length?s.map(v=>{let y={...v};return typeof v.Edit=="string"&&v.Edit==="rich-text"?y.Edit=BJ($De,{clientId:e}):typeof v.Edit=="string"&&v.Edit==="link"?y.Edit=BJ(e5e):typeof v.Edit=="object"&&v.Edit.control==="media"&&(y.Edit=BJ(ZDe,{...v.Edit})),y}):[],[s,e]);if(!s?.length)return null;let b=v=>{g(y=>y.fields?.includes(v)?{...y,fields:y.fields.filter(_=>_!==v)}:{...y,fields:[...y.fields||[],v]})};return(0,Ri.jsxs)("div",{className:"block-editor-block-fields__container",onMouseEnter:r?()=>f(e,!0):void 0,onMouseLeave:()=>r?f(e,!1):void 0,onFocus:r?()=>{u(e,null)}:void 0,children:[(0,Ri.jsx)("div",{className:"block-editor-block-fields__header",children:(0,Ri.jsxs)(l8.__experimentalHStack,{spacing:1,children:[r&&(0,Ri.jsxs)(Ri.Fragment,{children:[(0,Ri.jsx)(Lt,{className:"block-editor-block-fields__header-icon",icon:i?.icon}),(0,Ri.jsx)("h2",{className:"block-editor-block-fields__header-title",children:(0,Ri.jsx)(l8.__experimentalTruncate,{numberOfLines:1,children:n})}),(0,Ri.jsx)(HDe,{fields:h,visibleFields:m.fields,onToggleField:b})]}),!r&&(0,Ri.jsx)("h2",{className:"block-editor-block-fields__header-title",children:(0,o5e.__)("Content")})]})}),(0,Ri.jsx)(IB,{data:l,fields:h,form:m,onChange:o})]})}function ddt(e){return!!(window?.__experimentalContentOnlyInspectorFields&&(0,R0.getBlockType)(e)?.[r5e])}function fdt(e){let{blockType:t,isSelectionWithinCurrentSection:o}=(0,$h.useContext)(Rn);return(0,Ri.jsx)(Ky,{group:"content",children:(0,Ri.jsx)(udt,{...e,blockType:t,isMultiBlock:o})})}var n5e={edit:fdt,hasSupport:ddt,attributeKeys:[],supportsPatternEditing:!0};var OJ=c(Bo(),1),i5e=c(q(),1),IJ=c(Z(),1),PB=c(ce(),1);var PJ=c(T(),1);function pdt(e){return(0,PB.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e}function mdt({className:e,setAttributes:t}){return jr()!=="default"?null:(0,PJ.jsx)(Ve,{group:"advanced",children:(0,PJ.jsx)(i5e.TextControl,{autoComplete:"off",label:(0,IJ.__)("Additional CSS class(es)"),value:e||"",onChange:r=>{t({className:r!==""?r:void 0})},help:(0,IJ.__)("Separate multiple classes with spaces.")})})}var AJ={edit:mdt,addSaveProps:gdt,attributeKeys:["className"],hasSupport(e){return(0,PB.hasBlockSupport)(e,"customClassName",!0)}};function gdt(e,t,o){return(0,PB.hasBlockSupport)(t,"customClassName",!0)&&o.className&&(e.className=Y(e.className,o.className)),e}function hdt(e,t,o,r){if(!(0,PB.hasBlockSupport)(e.name,"customClassName",!0)||r.length===1&&e.innerBlocks.length===t.length||r.length===1&&t.length>1||r.length>1&&t.length===1)return e;if(t[o]){let n=t[o]?.attributes.className;if(n&&e.attributes.className===void 0)return{...e,attributes:{...e.attributes,className:n}}}return e}(0,OJ.addFilter)("blocks.registerBlockType","core/editor/custom-class-name/attribute",pdt);(0,OJ.addFilter)("blocks.switchToBlockType.transformedBlock","core/customClassName/addTransforms",hdt);var s5e=c(Bo(),1),OB=c(ce(),1);function bdt(e,t){return(0,OB.hasBlockSupport)(t,"className",!0)&&(typeof e.className=="string"?e.className=[...new Set([(0,OB.getBlockDefaultClassName)(t.name),...e.className.split(" ")])].join(" ").trim():e.className=(0,OB.getBlockDefaultClassName)(t.name)),e}(0,s5e.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",bdt);var YJ=c(F(),1),i3e=c(Bo(),1),s3e=c(ee(),1);var Bu=c(ce(),1),a3e=c(ue(),1),sf=c(F_(),1);var LB=c(ce(),1),zJ=c(q(),1),T8=c(F(),1),W5e=c(Bo(),1),U5e=c(ee(),1);var FJ={};No(FJ,{AdvancedPanel:()=>C8,BackgroundPanel:()=>_4,BorderPanel:()=>_8,ColorPanel:()=>m4,DimensionsPanel:()=>h8,FiltersPanel:()=>k8,ImageSettingsPanel:()=>V5e,StateControl:()=>G4,StateControlBadges:()=>$4,TypographyPanel:()=>I4,useHasBackgroundPanel:()=>v4,useHasBorderPanel:()=>v8,useHasBorderPanelControls:()=>DJ,useHasColorPanel:()=>p4,useHasDimensionsPanel:()=>g8,useHasFiltersPanel:()=>N5e,useHasImageSettingsPanel:()=>D5e,useHasTypographyPanel:()=>B4,useSettingsForBlockElement:()=>d4});var tr=c(Z(),1),Ii=c(q(),1);var m8=c(F(),1);var yo=c(q(),1),Br=c(Z(),1),l5e=c(F(),1),u8=c(ee(),1);var a5e=c(ee(),1);function $v(e,t){let{getBlockOrder:o,getBlockAttributes:r}=(0,a5e.useSelect)(B);return(i,s)=>{let a=(s-1)*t+i-1,l=0;for(let u of o(e)){let{columnStart:d,rowStart:f}=r(u).style?.layout??{};(f-1)*t+d-1<a&&l++}return l}}var mr=c(T(),1),Bi={fit:"fit",grow:"fill",max:"fixed",fixed:"fixedNoShrink"},ydt=[Bi.max,Bi.fixed];function MJ(e){return ydt.includes(e)}function vdt(e){let{orientation:t="horizontal"}=e??{};return t==="horizontal"?(0,Br._x)("Max","Block with maximum width in flex layout"):(0,Br._x)("Max","Block with maximum height in flex layout")}function _dt(e,t){let{orientation:o="horizontal"}=t??{};return e===Bi.grow?(0,Br.__)("Stretch to fill available space."):e===Bi.max&&o==="horizontal"?(0,Br.__)("Specify a maximum width."):e===Bi.max?(0,Br.__)("Specify a maximum height."):e===Bi.fixed&&o==="horizontal"?(0,Br.__)("Specify a fixed width."):e===Bi.fixed?(0,Br.__)("Specify a fixed height."):(0,Br.__)("Fit contents.")}function c5e({value:e={},onChange:t,parentLayout:o,isShownByDefault:r,panelId:n,showGridSpanDefaults:i=!0}){let{type:s,default:{type:a="default"}={}}=o??{},l=s||a;return l==="flex"?(0,mr.jsx)(wdt,{childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n}):l==="grid"?(0,mr.jsx)(xdt,{childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n,showGridSpanDefaults:i}):null}function wdt({childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n}){let{selfStretch:i,flexSize:s}=e,{orientation:a="horizontal"}=o??{},l=i||Bi.fit,u=MJ(l),d=()=>!!i,f=a==="horizontal"?(0,Br.__)("Width"):(0,Br.__)("Height"),[p]=je("spacing.units"),m=(0,yo.__experimentalUseCustomUnits)({availableUnits:p||["%","px","em","rem","vh","vw"]}),g=()=>{t({selfStretch:void 0,flexSize:void 0})};return(0,l5e.useEffect)(()=>{MJ(i)&&!s&&t({...e,selfStretch:Bi.fit})},[]),(0,mr.jsxs)(yo.__experimentalVStack,{as:yo.__experimentalToolsPanelItem,spacing:2,hasValue:d,label:f,onDeselect:g,isShownByDefault:r,panelId:n,children:[(0,mr.jsxs)(yo.__experimentalToggleGroupControl,{label:kdt(o),value:l,help:_dt(l,o),onChange:h=>{let b=MJ(h)?s:null;t({selfStretch:h,flexSize:b})},isBlock:!0,children:[(0,mr.jsx)(yo.__experimentalToggleGroupControlOption,{value:Bi.fit,label:(0,Br._x)("Fit","Intrinsic block width in flex layout")},Bi.fit),(0,mr.jsx)(yo.__experimentalToggleGroupControlOption,{value:Bi.grow,label:(0,Br._x)("Grow","Block with expanding width in flex layout")},Bi.grow),(0,mr.jsx)(yo.__experimentalToggleGroupControlOption,{value:Bi.max,label:vdt(o)},Bi.max),(0,mr.jsx)(yo.__experimentalToggleGroupControlOption,{value:Bi.fixed,label:(0,Br._x)("Fixed","Block with fixed width in flex layout")},Bi.fixed)]}),u&&(0,mr.jsx)(yo.__experimentalUnitControl,{units:m,onChange:h=>{t({selfStretch:l,flexSize:h})},value:s,min:0,label:f,hideLabelFromVision:!0})]})}function kdt(e){let{orientation:t="horizontal"}=e??{};return t==="horizontal"?(0,Br.__)("Width"):(0,Br.__)("Height")}function xdt({childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n,showGridSpanDefaults:i}){let{columnStart:s,rowStart:a,columnSpan:l,rowSpan:u}=e,{columnCount:d,rowCount:f}=o??{},p=(0,u8.useSelect)(E=>E(B).getBlockRootClientId(n)),{moveBlocksToPosition:m,__unstableMarkNextChangeAsNotPersistent:g}=(0,u8.useDispatch)(B),h=$v(p,d||3),b=()=>!!s||!!a,v=()=>!!l||!!u,y=()=>{t({columnStart:void 0,rowStart:void 0})},_=()=>{t({columnSpan:void 0,rowSpan:void 0})},w=d?d-(s??1)+1:void 0,k=window.__experimentalEnableGridInteractivity&&f?f-(a??1)+1:void 0,x=l??(i?1:void 0),C=u??(i?1:void 0);return(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsxs)(yo.Flex,{as:yo.__experimentalToolsPanelItem,hasValue:v,label:(0,Br.__)("Grid span"),onDeselect:_,isShownByDefault:r,panelId:n,children:[(0,mr.jsx)(yo.FlexItem,{style:{width:"50%"},children:(0,mr.jsx)(yo.__experimentalInputControl,{label:(0,Br.__)("Column span"),type:"number",onChange:E=>{let R=E===""?1:parseInt(E,10),S=w?Math.min(R,w):R;t({columnStart:s,rowStart:a,rowSpan:u,columnSpan:S})},value:x,min:1,max:w})}),(0,mr.jsx)(yo.FlexItem,{style:{width:"50%"},children:(0,mr.jsx)(yo.__experimentalInputControl,{label:(0,Br.__)("Row span"),type:"number",onChange:E=>{let R=E===""?1:parseInt(E,10),S=k?Math.min(R,k):R;t({columnStart:s,rowStart:a,columnSpan:l,rowSpan:S})},value:C,min:1,max:k})})]}),window.__experimentalEnableGridInteractivity&&(0,mr.jsxs)(yo.Flex,{as:yo.__experimentalToolsPanelItem,hasValue:b,label:(0,Br.__)("Grid placement"),onDeselect:y,isShownByDefault:!1,panelId:n,children:[(0,mr.jsx)(yo.FlexItem,{style:{width:"50%"},children:(0,mr.jsx)(yo.__experimentalInputControl,{label:(0,Br.__)("Column"),type:"number",onChange:E=>{let R=E===""?1:parseInt(E,10);t({columnStart:R,rowStart:a,columnSpan:l,rowSpan:u}),g(),m([n],p,p,h(R,a))},value:s??1,min:1,max:d?d-(l??1)+1:void 0})}),(0,mr.jsx)(yo.FlexItem,{style:{width:"50%"},children:(0,mr.jsx)(yo.__experimentalInputControl,{label:(0,Br.__)("Row"),type:"number",onChange:E=>{let R=E===""?1:parseInt(E,10);t({columnStart:s,rowStart:R,columnSpan:l,rowSpan:u}),g(),m([n],p,p,h(s,R))},value:a??1,min:1,max:f?f-(u??1)+1:void 0})})]})]})}var f5e=c(q(),1),B0=c(Z(),1);function u5e(e){if(typeof e!="string")return null;let t=e.split("/");if(t.length>2)return null;let[o,r="1"]=t,n=Number(o.trim()),i=Number(r.trim());return!Number.isFinite(n)||!Number.isFinite(i)||n<=0||i<=0?null:n/i}function d5e(e,t){let o=t.find(n=>n.value===e);if(o)return o;let r=u5e(e);return r===null?null:t.find(n=>u5e(n.value)===r)??null}var NJ=c(T(),1);function d8({panelId:e,value:t,onChange:o=()=>{},options:r,defaultValue:n="auto",hasValue:i,isShownByDefault:s=!0,className:a,isInherited:l,hasLocalOverride:u}){let[d,f,p]=je("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),m=f?.map(({name:y,ratio:_})=>({label:y,value:_})),g=d?.map(({name:y,ratio:_})=>({label:y,value:_})),h=[{label:(0,B0._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...p?g:[],...m||[],{label:(0,B0._x)("Custom","Aspect ratio option for dimensions control"),value:"custom",disabled:!0,hidden:!0}],b=r??h,v=t==null||t==="auto"?"auto":d5e(t,b)?.value??"custom";return(0,NJ.jsx)(Yt,{className:a,isInherited:l,hasLocalOverride:u,hasValue:i||(()=>v!==n),label:(0,B0.__)("Aspect ratio"),onDeselect:()=>o(void 0),isShownByDefault:s,panelId:e,children:(0,NJ.jsx)(f5e.SelectControl,{label:(0,B0.__)("Aspect ratio"),value:v,options:b,onChange:o})})}var Qt=c(T(),1),LJ=["horizontal","vertical"];function p5e(e,t){return e?.length===1?!1:t?!(e?.includes("horizontal")&&e?.includes("vertical")&&e?.length===2):!0}function g8(e,t=ea){return b5e(e)||y5e(e)||v5e(e)||_5e(e)||w5e(e)||k5e(e)||x5e(e)||S5e(e)||C5e(e)||E5e(e,t)||T5e(e,t)}function b5e(e){return e?.layout?.contentSize}function y5e(e){return e?.layout?.wideSize}function v5e(e){return e?.spacing?.padding}function _5e(e){return e?.spacing?.margin}function w5e(e){return e?.spacing?.blockGap}function k5e(e){return e?.dimensions?.height}function x5e(e){return e?.dimensions?.minHeight}function S5e(e){return e?.dimensions?.minWidth}function C5e(e){return e?.dimensions?.width}function E5e(e,t=ea){return!Aa(t)&&e?.dimensions?.aspectRatio}function T5e(e,t=ea){if(Aa(t))return!1;let{type:o="default",default:{type:r="default"}={},allowSizingOnChildren:n=!1}=e?.parentLayout??{},i=(r==="flex"||o==="flex"||r==="grid"||o==="grid")&&n;return!!e?.layout&&i}function Sdt(e){let{defaultSpacingSizes:t,spacingSizes:o}=e?.spacing||{};return t!==!1&&o?.default?.length>0||o?.theme?.length>0||o?.custom?.length>0}function m5e(e,t){if(!t||!e)return e;let o={};return t.forEach(r=>{r==="vertical"&&(o.top=e.top,o.bottom=e.bottom),r==="horizontal"&&(o.left=e.left,o.right=e.right),o[r]=e?.[r]}),o}var Cdt=[void 0,null,""];function vt(e){return!Cdt.includes(e)}function f8(e){if(!vt(e))return;let[t]=(0,Ii.__experimentalParseQuantityAndUnitFromRawValue)(e);return t}function p8(e){return vt(e)&&typeof e=="string"?{top:e,right:e,bottom:e,left:e}:e}function g5e(e){if(!vt(e))return;if(typeof e=="string")return e!==""?e:void 0;if(typeof e!="object")return;let o=["top","right","bottom","left"].map(i=>e[i]);if(!o.every(vt))return;let n=o[0];return o.every(i=>i===n)?n:void 0}function h5e(e){return vt(e)?typeof e=="string"?e!=="":typeof e!="object"?!1:["top","right","bottom","left"].some(t=>vt(e[t])):!1}function Edt(e,t){return vt(e)?typeof e=="string"?t?{top:e,right:e,bottom:e,left:e}:{top:e}:{...e,right:e?.left,bottom:e?.top}:e}function Tdt({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n}){let i=Vr(),s=()=>{let a=e(o);t(a)};return(0,Qt.jsx)(Ii.__experimentalToolsPanel,{label:(0,tr.__)("Dimensions"),resetAll:s,panelId:r,dropdownMenuProps:i,children:n})}var fc={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,height:!0,minHeight:!0,minWidth:!0,width:!0,aspectRatio:!0,childLayout:!0};function h8({as:e=Tdt,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=fc,onVisualize:a=()=>{},includeLayoutControls:l=!1,allowAxialBlockGap:u=!0,styleState:d=ea,showInheritanceLabelIndicators:f=Fn()}){let{dimensions:p,spacing:m}=n,g=tt=>tt&&typeof tt=="object"?Object.keys(tt).reduce((ai,sm)=>(ai[sm]=ol({settings:{dimensions:p,spacing:m}},"",tt[sm]),ai),{}):ol({settings:{dimensions:p,spacing:m}},"",tt),h=(tt,ai,sm)=>ec(f&&tt,f&&ai,sm),b=Sdt(n),v=(0,Ii.__experimentalUseCustomUnits)({availableUnits:n?.spacing?.units||["%","px","em","rem","vw"]}),y=-1/0,[_,w]=(0,m8.useState)(y),k=(0,m8.useCallback)(tt=>({...tt,layout:Xe({...tt?.layout,contentSize:void 0,wideSize:void 0,selfStretch:void 0,flexSize:void 0,columnStart:void 0,rowStart:void 0,columnSpan:void 0,rowSpan:void 0}),spacing:{...tt?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...tt?.dimensions,height:void 0,minHeight:void 0,minWidth:void 0,aspectRatio:void 0,width:void 0}}),[]),x=b5e(n)&&l,C=g(t?.layout?.contentSize),E=g(r?.layout?.contentSize),R=!vt(t?.layout?.contentSize)&&vt(E),S=tt=>{o(Ue(t,["layout","contentSize"],vt(tt)?tt:void 0))},I=()=>vt(t?.layout?.contentSize),O=()=>S(void 0),A=y5e(n)&&l,P=g(t?.layout?.wideSize),L=g(r?.layout?.wideSize),H=!vt(t?.layout?.wideSize)&&vt(L),N=tt=>{o(Ue(t,["layout","wideSize"],vt(tt)?tt:void 0))},M=()=>vt(t?.layout?.wideSize),V=()=>N(void 0),j=v5e(n),D=p8(g(r?.spacing?.padding)),z=p8(g(t?.spacing?.padding)),$=vt(t?.spacing?.padding)?z:D,J=g5e(D),Q=!vt(t?.spacing?.padding)&&J!==void 0,W=h5e(D),X=!vt(t?.spacing?.padding)&&W,U=Array.isArray(n?.spacing?.padding)?n?.spacing?.padding:n?.spacing?.padding?.sides,G=U&&U.some(tt=>LJ.includes(tt)),te=tt=>{let ai=m5e(tt,U);o(Ue(t,["spacing","padding"],ai))},re=()=>vt(t?.spacing?.padding)&&Object.keys(t?.spacing?.padding).length,ae=()=>te(void 0),ie=()=>a("padding"),be=_5e(n),pe=p8(g(r?.spacing?.margin)),ke=p8(g(t?.spacing?.margin)),ye=vt(t?.spacing?.margin)?ke:pe,Pe=g5e(pe),_e=!vt(t?.spacing?.margin)&&Pe!==void 0,ve=h5e(pe),Se=!vt(t?.spacing?.margin)&&ve,fe=Array.isArray(n?.spacing?.margin)?n?.spacing?.margin:n?.spacing?.margin?.sides,Ce=fe&&fe.some(tt=>LJ.includes(tt)),ne=tt=>{let ai=m5e(tt,fe);o(Ue(t,["spacing","margin"],ai))},se=()=>vt(t?.spacing?.margin)&&Object.keys(t?.spacing?.margin).length,Ee=()=>ne(void 0),he=()=>a("margin"),Ae=w5e(n),et=Array.isArray(n?.spacing?.blockGap)?n?.spacing?.blockGap:n?.spacing?.blockGap?.sides,Je=u&&et&&et.some(tt=>LJ.includes(tt)),_t=g(t?.spacing?.blockGap),Et=g(r?.spacing?.blockGap),mt=!Je&&typeof _t=="object"?_t?.top:_t,oo=!Je&&typeof Et=="object"?Et?.top:Et,Tt=vt(t?.spacing?.blockGap)?_t:Et,Rt=Edt(Tt,Je),Bt=!vt(t?.spacing?.blockGap)&&typeof oo=="string"&&oo!=="",gt=tt=>{o(Ue(t,["spacing","blockGap"],tt))},He=tt=>{vt(tt)||gt(null),!Je&&tt?.hasOwnProperty("top")?gt(tt.top):gt({top:tt?.top,left:tt?.left})},we=()=>gt(void 0),Me=()=>vt(t?.spacing?.blockGap),ge=x5e(n),Re=g(t?.dimensions?.minHeight),Ie=g(r?.dimensions?.minHeight),at=!vt(t?.dimensions?.minHeight)&&vt(Ie),Qe=tt=>{let ai=Ue(t,["dimensions","minHeight"],tt);o(Ue(ai,["dimensions","aspectRatio"],void 0))},po=()=>{Qe(void 0)},ro=()=>vt(t?.dimensions?.minHeight),vo=k5e(n),Kt=g(t?.dimensions?.height),_o=g(r?.dimensions?.height),En=!vt(t?.dimensions?.height)&&vt(_o),it=tt=>{let ai=Ue(t,["dimensions","height"],tt);o(Ue(ai,["dimensions","aspectRatio"],void 0))},Vt=()=>{it(void 0)},Pr=()=>vt(t?.dimensions?.height),gr=S5e(n),Gr=g(t?.dimensions?.minWidth),Or=g(r?.dimensions?.minWidth),pn=!vt(t?.dimensions?.minWidth)&&vt(Or),Pi=tt=>{o(Ue(t,["dimensions","minWidth"],tt))},Be=()=>{Pi(void 0)},Ht=()=>vt(t?.dimensions?.minWidth),lt=C5e(n),no=g(t?.dimensions?.width),Ar=g(r?.dimensions?.width),rr=!vt(t?.dimensions?.width)&&vt(Ar),si=tt=>{o(Ue(t,["dimensions","width"],tt))},lf=()=>{si(void 0)},Xa=()=>vt(t?.dimensions?.width),bc=E5e(n,d),W0=g(t?.dimensions?.aspectRatio),cf=g(r?.dimensions?.aspectRatio),tb=W0??cf,t_=!vt(t?.dimensions?.aspectRatio)&&vt(cf),ob=tt=>{let ai=Ue(t,["dimensions","aspectRatio"],tt);o(Ue(ai,["dimensions","minHeight"],void 0))},oI=()=>vt(t?.dimensions?.aspectRatio),rI=T5e(n,d),c9=t?.layout,u9=tt=>{o({...t,layout:{...t?.layout,...tt}})},uf=()=>a(!1);return(0,Qt.jsxs)(e,{resetAllFilter:k,value:t,onChange:o,panelId:i,children:[(x||A)&&(0,Qt.jsx)("span",{className:"span-columns",children:(0,tr.__)("Set the width of the main content area.")}),x&&(0,Qt.jsx)(Yt,{...h(R,I()&&E!==void 0),label:(0,tr.__)("Content width"),hasValue:I,onDeselect:O,isShownByDefault:s.contentSize??fc.contentSize,panelId:i,children:(0,Qt.jsx)(Ii.__experimentalUnitControl,{label:(0,tr.__)("Content width"),labelPosition:"top",value:C??E,placeholder:R?f8(E):void 0,onChange:tt=>{S(tt)},units:v,prefix:(0,Qt.jsx)(Ii.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Qt.jsx)(xt,{icon:cb})})})}),A&&(0,Qt.jsx)(Yt,{...h(H,M()&&L!==void 0),label:(0,tr.__)("Wide width"),hasValue:M,onDeselect:V,isShownByDefault:s.wideSize??fc.wideSize,panelId:i,children:(0,Qt.jsx)(Ii.__experimentalUnitControl,{label:(0,tr.__)("Wide width"),labelPosition:"top",value:P??L,placeholder:H?f8(L):void 0,onChange:tt=>{N(tt)},units:v,prefix:(0,Qt.jsx)(Ii.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Qt.jsx)(xt,{icon:xb})})})}),j&&(0,Qt.jsxs)(Yt,{hasValue:re,label:(0,tr.__)("Padding"),hasInlineEndToggle:p5e(U,b),onDeselect:ae,isShownByDefault:s.padding??fc.padding,...h(X,re()&&W,{"tools-panel-item-spacing":b}),panelId:i,children:[!b&&(0,Qt.jsx)(Ii.BoxControl,{values:z,onChange:te,label:(0,tr.__)("Padding"),sides:U,units:v,allowReset:!1,splitOnAxis:G,inputProps:{onMouseOver:ie,onMouseOut:uf,placeholder:Q?J:void 0}}),b&&(0,Qt.jsx)(jS,{values:$,onChange:te,label:(0,tr.__)("Padding"),sides:U,units:v,allowReset:!1,onMouseOver:ie,onMouseOut:uf})]}),be&&(0,Qt.jsxs)(Yt,{hasValue:se,label:(0,tr.__)("Margin"),hasInlineEndToggle:p5e(fe,b),onDeselect:Ee,isShownByDefault:s.margin??fc.margin,...h(Se,se()&&ve,{"tools-panel-item-spacing":b}),panelId:i,children:[!b&&(0,Qt.jsx)(Ii.BoxControl,{values:ke,onChange:ne,inputProps:{min:_,onDragStart:()=>{w(0)},onDragEnd:()=>{w(y)},onMouseOver:he,onMouseOut:uf,placeholder:_e?Pe:void 0},label:(0,tr.__)("Margin"),sides:fe,units:v,allowReset:!1,splitOnAxis:Ce}),b&&(0,Qt.jsx)(jS,{values:ye,onChange:ne,minimumCustomValue:-1/0,label:(0,tr.__)("Margin"),sides:fe,units:v,allowReset:!1,onMouseOver:he,onMouseOut:uf})]}),Ae&&(0,Qt.jsxs)(Yt,{hasValue:Me,label:(0,tr.__)("Block spacing"),hasInlineEndToggle:Je,onDeselect:we,isShownByDefault:s.blockGap??fc.blockGap,...h(Bt,Me()&&Et!==void 0,{"tools-panel-item-spacing":b,"single-column":!b&&!Je}),panelId:i,children:[!b&&(Je?(0,Qt.jsx)(Ii.BoxControl,{label:(0,tr.__)("Block spacing"),min:0,onChange:He,units:v,sides:et,values:Rt,allowReset:!1,splitOnAxis:Je}):(0,Qt.jsx)(Ii.__experimentalUnitControl,{label:(0,tr.__)("Block spacing"),min:0,onChange:gt,units:v,value:mt??void 0,placeholder:Bt?oo:void 0})),b&&(0,Qt.jsx)(jS,{label:(0,tr.__)("Block spacing"),min:0,onChange:He,showSideInLabel:!1,sides:Je?et:["top"],values:Rt,allowReset:!1},Je?"axial-gap":"single-gap")]}),rI&&(0,Qt.jsx)(c5e,{value:c9,onChange:u9,parentLayout:n?.parentLayout,panelId:i,showGridSpanDefaults:!_i(d),isShownByDefault:s.childLayout??fc.childLayout}),ge&&(0,Qt.jsx)(Yt,{...h(at,ro()&&Ie!==void 0),hasValue:ro,label:(0,tr.__)("Minimum height"),onDeselect:po,isShownByDefault:s.minHeight??fc.minHeight,panelId:i,children:(0,Qt.jsx)(mv,{label:(0,tr.__)("Minimum height"),value:Re??Ie,onChange:Qe,placeholder:at?f8(Ie):void 0,dimensionSizes:p?.dimensionSizes})}),gr&&(0,Qt.jsx)(Yt,{...h(pn,Ht()&&Or!==void 0),hasValue:Ht,label:(0,tr.__)("Minimum width"),onDeselect:Be,isShownByDefault:s.minWidth??fc.minWidth,panelId:i,children:(0,Qt.jsx)(mv,{label:(0,tr.__)("Minimum width"),value:Gr??Or,onChange:Pi,placeholder:pn?f8(Or):void 0,dimensionSizes:p?.dimensionSizes})}),vo&&(0,Qt.jsx)(Yt,{...h(En,Pr()&&_o!==void 0),hasValue:Pr,label:(0,tr.__)("Height"),onDeselect:Vt,isShownByDefault:s.height??fc.height,panelId:i,children:(0,Qt.jsx)(mv,{label:(0,tr.__)("Height"),value:Kt,onChange:it,placeholder:En?_o:void 0,dimensionSizes:p?.dimensionSizes})}),lt&&(0,Qt.jsx)(Yt,{...h(rr,Xa()&&Ar!==void 0),hasValue:Xa,label:(0,tr.__)("Width"),onDeselect:lf,isShownByDefault:s.width??fc.width,panelId:i,children:(0,Qt.jsx)(mv,{label:(0,tr.__)("Width"),value:no,onChange:si,placeholder:rr?Ar:void 0,dimensionSizes:p?.dimensionSizes})}),bc&&(0,Qt.jsx)(d8,{hasValue:oI,value:tb,onChange:ob,panelId:i,...h(t_,oI()&&cf!==void 0),isShownByDefault:s.aspectRatio??fc.aspectRatio})]})}var Rs=c(q(),1),of=c(F(),1),Kv=c(Z(),1);var Yv=c(Z(),1),zn=c(q(),1),AB=c(F(),1);var Ro=c(T(),1),b8=[];function Rdt({shadow:e,onShadowChange:t,settings:o}){let r=y8(o),n=(0,AB.useMemo)(()=>r.length?[{name:(0,Yv.__)("Unset"),slug:"unset",shadow:"none"},...r]:r,[r]);return(0,Ro.jsx)("div",{className:"block-editor-global-styles__shadow-popover-container",children:(0,Ro.jsxs)(zn.__experimentalVStack,{spacing:4,children:[(0,Ro.jsx)(zn.__experimentalHeading,{level:5,children:(0,Yv.__)("Drop shadow")}),(0,Ro.jsx)(Bdt,{presets:n,activeShadow:e,onSelect:t}),(0,Ro.jsx)("div",{className:"block-editor-global-styles__clear-shadow",children:(0,Ro.jsx)(zn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(void 0),disabled:!e,accessibleWhenDisabled:!0,children:(0,Yv.__)("Clear")})})]})})}function Bdt({presets:e,activeShadow:t,onSelect:o}){return e?(0,Ro.jsx)(zn.Composite,{role:"listbox",className:"block-editor-global-styles__shadow__list","aria-label":(0,Yv.__)("Drop shadows"),children:e.map(({name:r,slug:n,shadow:i})=>(0,Ro.jsx)(Idt,{label:r,isActive:i===t,type:n==="unset"?"unset":"preset",onSelect:()=>o(i===t?void 0:i),shadow:i},n))}):null}function Idt({type:e,label:t,isActive:o,onSelect:r,shadow:n}){return(0,Ro.jsxs)(ao.Root,{children:[(0,Ro.jsx)(ao.Trigger,{render:(0,Ro.jsx)(zn.Composite.Item,{role:"option","aria-label":t,"aria-selected":o,className:Y("block-editor-global-styles__shadow__item",{"is-active":o}),render:(0,Ro.jsx)("button",{className:Y("block-editor-global-styles__shadow-indicator",{unset:e==="unset"}),onClick:r,style:{boxShadow:n},"aria-label":t,children:o&&(0,Ro.jsx)(xt,{icon:Ps})})})}),(0,Ro.jsx)(ao.Popup,{children:t})]})}function R5e({shadow:e,onShadowChange:t,settings:o,className:r,hasLocalValue:n=!!e,hasLocalOverride:i=!1,onReset:s}){return(0,Ro.jsx)(zn.Dropdown,{popoverProps:{placement:"left-start",offset:36,shift:!0},className:Y("block-editor-global-styles__shadow-dropdown",r),renderToggle:Pdt(e,t,{hasLocalValue:n,hasLocalOverride:i,onReset:s??(()=>t(void 0))}),renderContent:()=>(0,Ro.jsx)(zn.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,Ro.jsx)(Rdt,{shadow:e,onShadowChange:t,settings:o})})})}function Pdt(e,t,o){let{hasLocalValue:r,hasLocalOverride:n,onReset:i}=o;return function({onToggle:a,isOpen:l}){let u=(0,AB.useRef)(void 0),d={onClick:a,className:Y("block-editor-global-styles__shadow-dropdown-toggle",{"is-open":l}),"aria-expanded":l,ref:u},f=()=>{l&&a(),i(),u.current?.focus()};return(0,Ro.jsxs)(Ro.Fragment,{children:[(0,Ro.jsx)(zn.Button,{__next40pxDefaultSize:!0,...d,children:(0,Ro.jsxs)(zn.__experimentalHStack,{justify:"flex-start",children:[(0,Ro.jsx)(xt,{className:"block-editor-global-styles__toggle-icon",icon:Dz,size:24}),(0,Ro.jsx)(zn.FlexItem,{children:(0,Yv.__)("Drop shadow")})]})}),r&&(n?(0,Ro.jsx)(Dp,{className:"block-editor-global-styles__shadow-editor__remove-button",onResetToInherited:f}):(0,Ro.jsx)(zn.Button,{__next40pxDefaultSize:!0,size:"small",icon:In,label:(0,Yv.__)("Remove"),className:"block-editor-global-styles__shadow-editor__remove-button",onClick:f}))]})}}function y8(e){return(0,AB.useMemo)(()=>{if(!e?.shadow)return b8;let t=e?.shadow?.defaultPresets,{default:o,theme:r,custom:n}=e?.shadow?.presets??{},i=[...t&&o||b8,...r||b8,...n||b8];return i.filter((s,a)=>i.findLastIndex(({slug:l})=>l===s.slug)===a)},[e])}var Ru=c(T(),1);function v8(e){return Object.values(DJ(e)).some(Boolean)}function DJ(e){return{hasBorderColor:B5e(e),hasBorderRadius:I5e(e),hasBorderStyle:P5e(e),hasBorderWidth:O5e(e),hasShadow:A5e(e)}}function B5e(e){return e?.border?.color}function I5e(e){return e?.border?.radius}function P5e(e){return e?.border?.style}function O5e(e){return e?.border?.width}function A5e(e){let t=y8(e);return!!e?.shadow&&t.length>0}function Odt({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,label:i}){let s=Vr();return(0,Ru.jsx)(Rs.__experimentalToolsPanel,{label:i,resetAll:()=>{let l=e(o);t(l)},panelId:r,dropdownMenuProps:s,children:n})}var Adt={radius:!0,color:!0,width:!0,shadow:!0};function _8({as:e=Odt,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=Adt,showInheritanceLabelIndicators:a=Fn()}){let l=Fd(n),u=n?.color?.custom,d=(0,of.useCallback)(U=>ol({settings:n},"",U),[n]),f=(U,G,te)=>ec(a&&U,a&&G,te),p=U=>{let te=l.flatMap(({colors:re})=>re).find(({color:re})=>re===U);return te?"var:preset|color|"+te.slug:U},m=(0,of.useCallback)(U=>{if(U){if((0,Rs.__experimentalHasSplitBorders)(U)){let G={...U};return["top","right","bottom","left"].forEach(te=>{G[te]={...G[te],color:d(G[te]?.color)}}),G}return{...U,color:U.color?d(U.color):void 0}}},[d]),g=(0,of.useMemo)(()=>m(t?.border),[t?.border,m]),h=(0,of.useMemo)(()=>m(r?.border),[r?.border,m]),b=!(0,Rs.__experimentalIsDefinedBorder)(t?.border)&&!!h&&(0,Rs.__experimentalIsDefinedBorder)(h),v=b?h:g,y=U=>o({...t,border:U}),_=B5e(n),w=P5e(n),k=O5e(n),x=I5e(n),C=(0,of.useMemo)(()=>typeof t?.border?.radius!="object"?d(t?.border?.radius):{topLeft:d(t?.border?.radius?.topLeft),topRight:d(t?.border?.radius?.topRight),bottomLeft:d(t?.border?.radius?.bottomLeft),bottomRight:d(t?.border?.radius?.bottomRight)},[t?.border?.radius,d]),E=(0,of.useMemo)(()=>{let U=r?.border?.radius;return typeof U!="object"?d(U):{topLeft:d(U?.topLeft),topRight:d(U?.topRight),bottomLeft:d(U?.bottomLeft),bottomRight:d(U?.bottomRight)}},[r?.border?.radius,d]),R=U=>y({...t?.border,radius:U}),S=()=>{let U=t?.border?.radius;return typeof U=="object"?Object.entries(U).some(([,G])=>!!G):!!U},I=!S()&&E!==void 0&&E!=="",O=(0,of.useMemo)(()=>{if(!I)return C;if(typeof E=="string")return E;let U=E;return U?{all:U.topLeft&&U.topLeft===U.topRight&&U.topLeft===U.bottomLeft&&U.topLeft===U.bottomRight?U.topLeft:void 0,...U}:C},[I,C,E]),A=A5e(n),P=d(t?.shadow),L=d(r?.shadow),H=P===void 0&&L!==void 0&&L!=="",N=H?L:P,M=y8(n),V=U=>{let G=M.findLast(({shadow:te})=>te===U)?.slug;o(Ue(t,["shadow"],G?`var:preset|shadow|${G}`:U||void 0))},j=U=>{if(H&&U===void 0){V(L);return}V(U)},D=()=>!!t?.shadow,z=()=>V(void 0),$=a&&D()&&L!==void 0,J=()=>{if(S())return y({radius:t?.border?.radius});y(void 0)},Q=U=>{let G={...U};(0,Rs.__experimentalHasSplitBorders)(G)?["top","right","bottom","left"].forEach(te=>{G[te]&&(G[te]={...G[te],color:p(G[te]?.color)})}):G&&(G.color=p(G.color)),y({...G,radius:t?.border?.radius})},W=(0,of.useCallback)(U=>({...U,border:void 0,shadow:void 0}),[]),X=s?.color||s?.width;return(0,Ru.jsxs)(e,{resetAllFilter:W,value:t,onChange:o,panelId:i,label:(0,Kv.__)("Borders"),children:[(k||_)&&(0,Ru.jsx)(Yt,{...f(b,(0,Rs.__experimentalIsDefinedBorder)(t?.border)&&!!h&&(0,Rs.__experimentalIsDefinedBorder)(h)),hasValue:()=>(0,Rs.__experimentalIsDefinedBorder)(t?.border),label:(0,Kv.__)("Border"),hasInlineEndToggle:!0,onDeselect:()=>J(),isShownByDefault:X,panelId:i,children:(0,Ru.jsx)(Rs.BorderBoxControl,{colors:l,disableCustomColors:!u,enableAlpha:!0,enableStyle:w,label:(0,Kv.__)("Border"),onChange:Q,popoverOffset:40,popoverPlacement:"left-start",value:v,__experimentalIsRenderedInSidebar:!0})}),x&&(0,Ru.jsx)(Yt,{...f(I,S()&&E!==void 0),hasValue:S,label:(0,Kv.__)("Radius"),hasInlineEndToggle:!0,onDeselect:()=>R(void 0),isShownByDefault:s.radius,panelId:i,children:(0,Ru.jsx)(zV,{presets:n?.border?.radiusSizes,values:O,onChange:U=>{R(U||void 0)}})}),A&&(0,Ru.jsxs)(Yt,{...f(H,D()&&L!==void 0),label:(0,Kv.__)("Shadow"),hasValue:D,onDeselect:z,isShownByDefault:s.shadow,showLocalOverrideActionsInLabel:!1,panelId:i,children:[(0,Ru.jsx)(Rs.BaseControl.VisualLabel,{children:(0,Kv.__)("Shadow")}),(0,Ru.jsx)(R5e,{shadow:N,onShadowChange:j,settings:n,hasLocalValue:D(),hasLocalOverride:$,onReset:z})]})]})}var or=c(q(),1),Xp=c(Z(),1),I0=c(F(),1);var Ir=c(T(),1),w8=[];function M5e(e,{presetSetting:t,defaultSetting:o}){let r=!e?.color?.[o],n=e?.color?.[t]?.custom||w8,i=e?.color?.[t]?.theme||w8,s=e?.color?.[t]?.default||w8;return(0,I0.useMemo)(()=>[...n,...i,...r?w8:s],[r,n,i,s])}function N5e(e){return L5e(e)}function L5e(e){return e.color.customDuotone||e.color.defaultDuotone||e.color.duotone.length>0}function Mdt({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n}){let i=Vr(),s=()=>{let a=e(o);t(a)};return(0,Ir.jsx)(or.__experimentalToolsPanel,{label:(0,Xp._x)("Filters","Name for applying graphical effects"),resetAll:s,panelId:r,dropdownMenuProps:i,children:n})}var Ndt={duotone:!0},Ldt={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:(0,Xp.__)("Duotone")},Ddt=({indicator:e,label:t})=>(0,Ir.jsxs)(or.__experimentalHStack,{justify:"flex-start",children:[(0,Ir.jsx)(or.__experimentalZStack,{isLayered:!1,offset:-8,children:(0,Ir.jsx)(or.Flex,{expanded:!1,children:e==="unset"||!e?(0,Ir.jsx)(or.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):(0,Ir.jsx)(or.DuotoneSwatch,{values:e})})}),(0,Ir.jsx)(or.FlexItem,{className:"block-editor-panel-duotone-settings__label",title:t,children:t})]}),Vdt=(e,t)=>function({onToggle:r,isOpen:n}){let{hasLocalValue:i,hasLocalOverride:s,onReset:a}=t,l=(0,I0.useRef)(void 0),u={onClick:r,className:Y("block-editor-global-styles-filters-panel__dropdown-toggle",{"is-open":n}),"aria-expanded":n,ref:l},d=()=>{n&&r(),a(),l.current?.focus()};return(0,Ir.jsxs)(Ir.Fragment,{children:[(0,Ir.jsx)(or.Button,{__next40pxDefaultSize:!0,...u,children:(0,Ir.jsx)(Ddt,{indicator:e,label:(0,Xp.__)("Duotone")})}),i&&(s?(0,Ir.jsx)(Dp,{className:"block-editor-panel-duotone-settings__reset",onResetToInherited:d}):(0,Ir.jsx)(or.Button,{size:"small",icon:In,label:(0,Xp.__)("Reset"),className:"block-editor-panel-duotone-settings__reset",onClick:d}))]})};function k8({as:e=Mdt,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=Ndt,showInheritanceLabelIndicators:a=Fn()}){let l=S=>ol({settings:n},"",S),u=(S,I,O)=>ec(a&&S,a&&I,O),d=L5e(n),f=M5e(n,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),p=M5e(n,{presetSetting:"palette",defaultSetting:"defaultPalette"}),m=l(t?.filter?.duotone),g=l(r?.filter?.duotone),h=m??g,b=qT(t?.filter?.duotone),v=qT(r?.filter?.duotone),y=m!==void 0?b:v,_=m===void 0&&g!==void 0,w=(S,I)=>{let O=I??f.find(({colors:P})=>P===S)?.slug,A=O?`var:preset|duotone|${O}`:S;o(Ue(t,["filter","duotone"],A))},k=(S,I,O)=>{if(S===void 0&&_&&g!==void 0){w(g,v);return}w(S,O)},x=()=>!!t?.filter?.duotone,C=()=>w(void 0),E=a&&x()&&g!==void 0,R=(0,I0.useCallback)(S=>({...S,filter:{...S.filter,duotone:void 0}}),[]);return(0,Ir.jsx)(e,{resetAllFilter:R,value:t,onChange:o,panelId:i,children:d&&(0,Ir.jsx)(Yt,{...u(_,m!==void 0&&g!==void 0),label:(0,Xp.__)("Duotone"),hasValue:x,onDeselect:C,isShownByDefault:s.duotone,showLocalOverrideActionsInLabel:!1,panelId:i,children:(0,Ir.jsx)(or.Dropdown,{popoverProps:Ldt,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:Vdt(h,{hasLocalValue:x(),hasLocalOverride:E,onReset:C}),renderContent:()=>(0,Ir.jsx)(or.__experimentalDropdownContentWrapper,{paddingSize:"small",children:(0,Ir.jsxs)(or.MenuGroup,{label:(0,Xp.__)("Duotone"),children:[(0,Ir.jsx)("p",{children:(0,Xp.__)("Create a two-tone color effect without losing your original image.")}),(0,Ir.jsx)(or.DuotonePicker,{colorPalette:p,duotonePalette:f,disableCustomColors:!0,disableCustomDuotone:!0,value:h,selectedSlug:y,onChange:k})]})})})})})}var P0=c(q(),1),MB=c(Z(),1);var qv=c(T(),1);function D5e(e,t,o){return e==="core/image"&&o?.lightbox?.allowEditing||!!t?.lightbox}function V5e({onChange:e,value:t,inheritedValue:o,panelId:r}){let n=Vr(),i=()=>{e(void 0)},s=l=>{e({enabled:l})},a=!1;return o?.lightbox?.enabled&&(a=o.lightbox.enabled),(0,qv.jsx)(qv.Fragment,{children:(0,qv.jsx)(P0.__experimentalToolsPanel,{label:(0,MB._x)("Settings","Image settings"),resetAll:i,panelId:r,dropdownMenuProps:n,children:(0,qv.jsx)(P0.__experimentalToolsPanelItem,{hasValue:()=>!!t?.lightbox,label:(0,MB.__)("Enlarge on click"),onDeselect:i,isShownByDefault:!0,panelId:r,children:(0,qv.jsx)(P0.ToggleControl,{label:(0,MB.__)("Enlarge on click"),checked:a,onChange:s})})})})}var x8=c(q(),1);var z5e=c(F(),1),S8=c(Z(),1);var NB=c(T(),1);function VJ(e){return!(typeof e=="string"&&/<\/?\w/.test(e))}function j5e(e){return VJ(e)?null:(0,S8.__)("The custom CSS is invalid. Do not use <> markup.")}function F5e(e){if(!e)return null;let t=j5e(e);if(t)return t;let[o]=Jk([{css:e}],".for-validation-only");return o===null?(0,S8.__)("There is an error with your CSS structure."):null}function C8({value:e,onChange:t,inheritedValue:o=e,help:r}){let n=o?.css,[i,s]=(0,z5e.useState)(()=>F5e(n));function a(u){t({...e,css:u}),s(j5e(u))}function l(u){s(F5e(u?.target?.value))}return(0,NB.jsxs)($e,{direction:"column",gap:"md",className:"block-editor-global-styles-advanced-panel",children:[i&&(0,NB.jsx)(x8.Notice,{status:"error",onRemove:()=>s(null),children:i}),(0,NB.jsx)(x8.TextareaControl,{label:(0,S8.__)("Additional CSS"),value:n,onChange:u=>a(u),onBlur:l,className:"block-editor-global-styles-advanced-panel__custom-css-input",spellCheck:!1,help:r})]})}var jJ=c(T(),1),Xv="__experimentalBorder",DB="shadow",H5e=(e,t,o)=>{let r;return e.some(n=>n.colors.some(i=>i[t]===o?(r=i,!0):!1)),r},Zv=({colors:e,namedColor:t,customColor:o})=>{if(t){let n=H5e(e,"slug",t);if(n)return n}if(!o)return{color:void 0};let r=H5e(e,"color",o);return r||{color:o}};function E8(e){let t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function G5e(e){if((0,zJ.__experimentalHasSplitBorders)(e?.border))return{style:e,borderColor:void 0};let t=e?.border?.color,o=t?.startsWith("var:preset|color|")?t.substring(17):void 0,r={...e};return r.border={...r.border,color:o?void 0:t},{style:Xe(r),borderColor:o}}function $5e(e){return(0,zJ.__experimentalHasSplitBorders)(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?"var:preset|color|"+e.borderColor:e.style?.border?.color}}}function Fdt({label:e,children:t,resetAllFilter:o}){let r=(0,T8.useCallback)(n=>{let i=$5e(n),s=o(i);return{...n,...G5e(s)}},[o]);return(0,jJ.jsx)(Ve,{group:"border",resetAllFilter:r,label:e,children:t})}function Y5e({clientId:e,name:t,setAttributes:o,settings:r}){let n=Nl(),i=v8(r),{style:s,borderColor:a,className:l}=(0,U5e.useSelect)(g=>{if(!i)return{};let{style:h,borderColor:b,className:v}=g(B).getBlockAttributes(e)||{};return{style:h,borderColor:b,className:v}},[e,i]),{value:u}=tc(t,l,n),d=!Zn(n),f=(0,T8.useMemo)(()=>d?Ao(s,n):$5e({style:s,borderColor:a}),[d,n,s,a]),p=d?g=>{o({style:wn(s,n,g)})}:g=>{o(G5e(g))};if(!i)return null;let m={...(0,LB.getBlockSupport)(t,[Xv,"__experimentalDefaultControls"]),...(0,LB.getBlockSupport)(t,[DB,"__experimentalDefaultControls"])};return(0,jJ.jsx)(_8,{as:Fdt,panelId:e,settings:r,value:f,onChange:p,defaultControls:m,inheritedValue:u})}function R8(e,t="any"){let o=(0,LB.getBlockSupport)(e,Xv);return o===!0?!0:t==="any"?!!(o?.color||o?.radius||o?.width||o?.style):!!o?.[t]}function zdt(e){return!R8(e,"color")||e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}}function K5e(e,t,o){if(!R8(t,"color")||io(t,Xv,"color"))return e;let r=HJ(o),n=Y(e.className,r);return e.className=n||void 0,e}function HJ(e){let{borderColor:t,style:o}=e,r=Ja("border-color",t);return Y({"has-border-color":t||o?.border?.color,[r]:!!r})}function jdt({name:e,borderColor:t,style:o}){let{colors:r}=mh();if(!R8(e,"color")||io(e,Xv,"color"))return{};let{color:n}=Zv({colors:r,namedColor:t}),{color:i}=Zv({colors:r,namedColor:E8(o?.border?.top?.color)}),{color:s}=Zv({colors:r,namedColor:E8(o?.border?.right?.color)}),{color:a}=Zv({colors:r,namedColor:E8(o?.border?.bottom?.color)}),{color:l}=Zv({colors:r,namedColor:E8(o?.border?.left?.color)});return K5e({style:Xe({borderTopColor:i||n,borderRightColor:s||n,borderBottomColor:a||n,borderLeftColor:l||n})||{}},e,{borderColor:t,style:o})}var WJ={useBlockProps:jdt,addSaveProps:K5e,attributeKeys:["borderColor","style"],hasSupport(e){return R8(e,"color")}};(0,W5e.addFilter)("blocks.registerBlockType","core/border/addAttributes",zdt);var O0=c(F(),1),B8=c(ee(),1),FB=c(ce(),1),J5e=c(Nt(),1);var rf=c(F(),1),q5e=c(Tx(),1);var VB=c(T(),1);function Z5e({clientId:e,value:t,computeStyle:o,forceShow:r}){let n=Zt(e),[i,s]=(0,rf.useReducer)(()=>o(n));(0,rf.useEffect)(()=>{n&&r&&s()},[n,r]),(0,rf.useEffect)(()=>{if(!n)return;let d=new window.MutationObserver(s);return d.observe(n,{attributes:!0,attributeFilter:["style","class"]}),()=>{d.disconnect()}},[n]);let a=(0,rf.useRef)(t),[l,u]=(0,rf.useState)(!1);return(0,rf.useEffect)(()=>{if((0,q5e.isShallowEqual)(t,a.current)||r)return;u(!0),a.current=t;let d=setTimeout(()=>{u(!1)},400);return()=>{u(!1),clearTimeout(d)}},[t,r]),!l&&!r?null:(0,VB.jsx)(Al,{clientId:e,__unstablePopoverSlot:"block-toolbar",children:(0,VB.jsx)("div",{className:"block-editor__spacing-visualizer",style:i})})}function Yh(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function X5e({clientId:e,value:t,forceShow:o}){return(0,VB.jsx)(Z5e,{clientId:e,value:t?.spacing?.margin,computeStyle:r=>{let n=Yh(r,"margin-top"),i=Yh(r,"margin-right"),s=Yh(r,"margin-bottom"),a=Yh(r,"margin-left");return{borderTopWidth:n,borderRightWidth:i,borderBottomWidth:s,borderLeftWidth:a,top:n?`-${n}`:0,right:i?`-${i}`:0,bottom:s?`-${s}`:0,left:a?`-${a}`:0}},forceShow:o})}function Q5e({clientId:e,value:t,forceShow:o}){return(0,VB.jsx)(Z5e,{clientId:e,value:t?.spacing?.padding,computeStyle:r=>({borderTopWidth:Yh(r,"padding-top"),borderRightWidth:Yh(r,"padding-right"),borderBottomWidth:Yh(r,"padding-bottom"),borderLeftWidth:Yh(r,"padding-left")}),forceShow:o})}var Qp=c(T(),1),nf="dimensions",zB="spacing";function Hdt(){let[e,t]=(0,O0.useState)(!1),{hideBlockInterface:o,showBlockInterface:r}=K((0,B8.useDispatch)(B));return(0,O0.useEffect)(()=>{e?o():r()},[e,r,o]),[e,t]}function Wdt({children:e,resetAllFilter:t}){let o=(0,O0.useCallback)(r=>{let n=r.style,i=t(n);return{...r,style:i}},[t]);return(0,Qp.jsx)(Ve,{group:"dimensions",resetAllFilter:o,children:e})}function e3e({clientId:e,name:t,setAttributes:o,settings:r}){let n=Nl(),i=!Zn(n),s=g8(r,n),{style:a,className:l,layout:u}=(0,B8.useSelect)(_=>{if(!s)return{};let w=_(B).getBlockAttributes(e)||{};return{style:w.style,className:w.className,layout:w.layout}},[e,s]),{value:d}=tc(t,l,n),[f,p]=Hdt(),m=i?Ao(a,n):a,g=i?_=>{o({style:wn(a,n,_)})}:_=>{o({style:Xe(_)})};if(!s)return null;let h=(0,FB.getBlockSupport)(t,[nf,"__experimentalDefaultControls"]),b=(0,FB.getBlockSupport)(t,[zB,"__experimentalDefaultControls"]),{default:v}=(0,FB.getBlockSupport)(t,"layout")||{},y={minHeight:!1,minWidth:!1,...h,...b};return(0,Qp.jsxs)(Qp.Fragment,{children:[(0,Qp.jsx)(h8,{as:Wdt,panelId:e,settings:r,allowAxialBlockGap:rne(u,v),value:m,onChange:g,defaultControls:y,styleState:n,onVisualize:i?void 0:p,inheritedValue:d}),!i&&!!r?.spacing?.padding&&f==="padding"&&(0,Qp.jsx)(Q5e,{forceShow:f==="padding",clientId:e,value:m}),!i&&!!r?.spacing?.margin&&f==="margin"&&(0,Qp.jsx)(X5e,{forceShow:f==="margin",clientId:e,value:m})]})}function t3e(e,t="any"){let o=(0,FB.getBlockSupport)(e,nf);return o===!0?!0:t==="any"?!!(o?.aspectRatio||o?.height||o?.minHeight||o?.width||o?.minWidth):!!o?.[t]}function UJ(e){return e?`${e}`.trim().toLowerCase()!=="auto":!1}var o3e={useBlockProps:Udt,attributeKeys:["height","minHeight","width","style"],hasSupport(e){return t3e(e)}};function Udt({name:e,height:t,minHeight:o,style:r}){if(!t3e(e,"aspectRatio")||io(e,nf,"aspectRatio"))return{};let n=UJ(r?.dimensions?.aspectRatio),i=Y({"has-aspect-ratio":n}),s={};return n?(s.minHeight="unset",s.height="unset"):(o||r?.dimensions?.minHeight||t||r?.dimensions?.height)&&(s.aspectRatio="unset"),{className:i,style:s}}function GJ(){(0,J5e.default)("wp.blockEditor.__experimentalUseCustomSides",{since:"6.3",version:"6.4"})}var Gdt=c(ce(),1);function r3e(e,t,o=""){if(typeof t!="string"||!t)return Vu(e).map(i=>`${i.trim()}${o}`).join(", ");let r=Vu(e).filter(i=>i.trim()),n=Vu(t).filter(i=>i.trim());return n.length?n.map(i=>{i=i.trim();let s=i.match(/^([.#]?[-_a-zA-Z0-9]+|\[[^\]]+\])/);return s?r.map(a=>`${a.trim()}${i.slice(s[0].length)}${o}`).join(", "):r.map(a=>`${a.trim()}${o}`).join(", ")}).join(", "):r.map(i=>`${i.trim()}${o}`).join(", ")}var Kh=c(T(),1),{getResponsiveMediaQueries:$dt}=K(Lo),Ydt=["Top","Right","Bottom","Left"],Kdt=[...HAe,Xv,ri,nf,Mv,zB,DB],KJ=e=>Kdt.some(t=>(0,Bu.hasBlockSupport)(e,t));function Ya(e={}){let t={};return(0,sf.getCSSRules)(e).forEach(o=>{t[o.key]=o.value}),t}function qdt(e){let t=e?.border;if(!t)return;let o=!!t.style,r=!!t.color,n=!!t.width,i={};return!o&&(r||n)&&(i.style="solid"),Ydt.forEach(s=>{let a=s.toLowerCase(),l=t[a],u=!!l?.style,d=!!l?.color,f=!!l?.width;!o&&!u&&(d||f)&&(i[a]={style:"solid"})}),Xe({border:Xe(i)})}function Zdt(e,t){if(!!!e?.color?.background)return;let r=!!e?.color?.gradient,n=!!e?.background?.gradient||!!e?.background?.backgroundImage;if(r||n)return;let i="background-image: unset !important";return t?`${t} { ${i}; }`:`${i};`}function Xdt(e){let t=e?.dimensions;if(t){if(UJ(t.aspectRatio))return{dimensions:{minHeight:"unset",height:"unset"}};if(t.minHeight||t.height)return{dimensions:{aspectRatio:"unset"}}}}function Qdt(e,t){let o=e?.typography?.textAlign;if(typeof o!="string"||!o)return;let r=`text-align: ${(0,sf.getCSSValueFromRawStyle)(o)} !important`;return t?`${t} { ${r}; }`:`${r};`}function Jdt(e,t){let o=Xdt(e),r=o?qJ(e,o):e,n=(0,sf.compileCSS)(r,{selector:t}),i=n?n.replace(/;/g," !important;"):void 0,s=qdt(e),a=s?(0,sf.compileCSS)(s,{selector:t}):void 0,l=Qdt(e,t),u=Zdt(e,t);return[i,l,a,u].filter(Boolean).join(` 216 `)}function P8(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function qJ(e={},t={}){let o={...e};return Object.entries(t).forEach(([r,n])=>{o[r]=P8(n)&&P8(o[r])?qJ(o[r],n):n}),o}function I8(e,t,o){let r=t||"",n=e.get(r)||{selector:t,style:{}};e.set(r,{selector:t,style:qJ(n.style,o)})}function eft(e,t){let o=(0,Bu.getBlockType)(t)?.selectors||{},r=new Map;return Object.entries(e||{}).forEach(([n,i])=>{let s=o[n];if(typeof s=="string"){I8(r,s,{[n]:i});return}if(P8(s)&&P8(i)){let a={...i};Object.entries(s).forEach(([l,u])=>{l==="root"||typeof u!="string"||!Object.hasOwn(i,l)||(I8(r,u,{[n]:{[l]:i[l]}}),delete a[l])}),Object.keys(a).length&&I8(r,s.root||o.root,{[n]:a});return}I8(r,o.root,{[n]:i})}),Array.from(r.values())}function ZJ(e,t){let{name:o,baseSelector:r,state:n=""}=t,i=eft(e,o).map(({selector:s,style:a})=>Jdt(a,r3e(r,s,n))).filter(Boolean);return i.length?i.join(` 217 `):void 0}function tft(e,t){if(!e)return e;let o={...e};return t.forEach(r=>{delete o[r]}),o}function l3e(e,t,o){let r=K4[t];if(!r)return[];let n=[];return r.forEach(i=>{let s=e?.[i];if(s){let a=ZJ(s,{name:t,baseSelector:o,state:i});a&&n.push(a)}}),n}function oft(e,t,o,r){let n=[],s=["elements",...K4[t]??[]],a=$dt(r);return Object.entries(a).forEach(([l,u])=>{let d=Ao(e,{viewport:l,pseudo:ea.pseudo});if(!d)return;let f=[],p=ZJ(tft(d,s),{name:t,baseSelector:o});p&&f.push(p);let m=d3e(d.elements,t,o);m&&f.push(m),f.push(...l3e(d,t,o)),f.length&&n.push(`${u}{${f.join("")}}`)}),n}function n3e(e,t){let o=Ao(e,t);if(!_i(t))return o;let r={...t,viewport:ea.viewport},n=Ao(e,r);return n&&o?s2(n,o):o||n}function rft(e){return!KJ(e)&&!(0,Bu.hasBlockSupport)(e,"customCSS",!0)||e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e}var c3e={[`${Xv}.__experimentalSkipSerialization`]:["border"],[`${ri}.__experimentalSkipSerialization`]:[ri],[`${nc}.__experimentalSkipSerialization`]:[nc],[`${nf}.__experimentalSkipSerialization`]:[nf],[`${zB}.__experimentalSkipSerialization`]:[zB],[`${DB}.__experimentalSkipSerialization`]:[DB]},nft={...c3e,[`${nf}.aspectRatio`]:[`${nf}.aspectRatio`],[`${Mv}`]:[Mv]},ift={[`${nf}.aspectRatio`]:!0,[`${Mv}`]:!0},sft={gradients:"gradient"};function $J(e,t,o=!1){if(!e)return e;let r=e;return o||(r=JSON.parse(JSON.stringify(e))),Array.isArray(t)||(t=[t]),t.forEach(n=>{if(Array.isArray(n)||(n=n.split(".")),n.length>1){let[i,...s]=n;$J(r[i],[s],!0)}else n.length===1&&delete r[n[0]]}),r}function u3e(e,t,o,r=nft){if(!KJ(t))return e;let{style:n}=o;return Object.entries(r).forEach(([i,s])=>{let a=ift[i]||(0,Bu.getBlockSupport)(t,i);a===!0&&(n=$J(n,s)),Array.isArray(a)&&a.forEach(l=>{let u=sft[l]||l;n=$J(n,[[...s,u]])})}),e.style={...Ya(n),...e.style},e}function aft({clientId:e,name:t,setAttributes:o,style:r,__unstableParentLayout:n}){let i=jd(t,n),s=jr(),{globalBlockStyles:a,selectedState:l,showStateOnCanvas:u}=(0,s3e.useSelect)(g=>{let h=g(B),{getSelectedBlockStyleState:b,isSelectedBlockStyleStateShownOnCanvas:v}=K(h);return{globalBlockStyles:h.getSettings()?.[Is]?.blocks?.[t],selectedState:b(e),showStateOnCanvas:v(e)}},[e,t]),d=Aa(l),f=(0,YJ.useMemo)(()=>{if(!u||!d)return;let g=n3e(a,l),h=n3e(r,l),b;if(g&&h)b=s2(g,h);else if(h)b=h;else if(g)b=g;else return;return ZJ(b,{name:t,baseSelector:`[data-block="${e}"]`})},[u,d,a,r,l,e,t]);if(Qc({css:f}),s!=="default")return null;let p={...i,typography:{...i.typography,textAlign:!1}},m={clientId:e,name:t,setAttributes:o,settings:p};return(0,Kh.jsxs)(U5,{value:l,children:[(0,Kh.jsx)(E4,{...m}),(0,Kh.jsx)(k4,{...m}),(0,Kh.jsx)(V4,{...m}),(0,Kh.jsx)(Y5e,{...m}),(0,Kh.jsx)(e3e,{...m})]})}var O8={edit:aft,hasSupport:KJ,addSaveProps:u3e,attributeKeys:["style"],useBlockProps:uft},lft=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}],cft={};function d3e(e,t,o){if(!e)return;let r=[];return lft.forEach(({elementType:n,pseudo:i,elements:s})=>{if(io(t,ri,n))return;let l=e?.[n];if(l){let u=Ox(o,Bu.__EXPERIMENTAL_ELEMENTS[n]);r.push((0,sf.compileCSS)(l,{selector:u})),i&&i.forEach(d=>{l[d]&&r.push((0,sf.compileCSS)(l[d],{selector:Ox(o,`${Bu.__EXPERIMENTAL_ELEMENTS[n]}${d}`)}))})}s&&s.forEach(u=>{e[u]&&r.push((0,sf.compileCSS)(e[u],{selector:Ox(o,Bu.__EXPERIMENTAL_ELEMENTS[u])}))})}),r.length>0?r.join(""):void 0}function uft({clientId:e,name:t,style:o}){let r=(0,a3e.useInstanceId)(cft,"wp-elements"),n=`.${r}`,i=o?.elements,[s]=je("viewport"),a=(0,YJ.useMemo)(()=>{let l=[],u=d3e(i,t,n);return u&&l.push(u),l.push(...l3e(o,t,n)),l.push(...oft(o,t,n,s)),l.length>0?l.join(""):void 0},[n,i,t,o,s]);return Ga({css:a,clientId:e}),u3e({className:r},t,{style:o},c3e)}(0,i3e.addFilter)("blocks.registerBlockType","core/style/addAttribute",rft);var f3e=c(Bo(),1),p3e=c(ce(),1),dft=e=>(0,p3e.hasBlockSupport)(e,"__experimentalSettings",!1);function fft(e){return dft(e)&&(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}})),e}(0,f3e.addFilter)("blocks.registerBlockType","core/settings/addAttribute",fft);var qh=c(ce(),1),m3e=c(ue(),1),g3e=c(Bo(),1),jB=c(F(),1),h3e=c(ee(),1);var Jp=c(T(),1),{getDuotoneFilter:pft,getDuotoneStylesheet:mft,getDuotoneUnsetStylesheet:gft}=K(Lo),XJ=[],hft=window?.navigator.userAgent&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&!window.navigator.userAgent.includes("Chromium");am([lm]);function QJ({presetSetting:e,defaultSetting:t}){let[o,r,n,i]=je(t,`${e}.custom`,`${e}.theme`,`${e}.default`);return(0,jB.useMemo)(()=>[...r||XJ,...n||XJ,...o&&i||XJ],[o,r,n,i])}function b3e(e,t){if(!e)return;let o=t?.find(({slug:r})=>e===`var:preset|duotone|${r}`);return o?o.colors:void 0}function bft(e,t){if(!e||!Array.isArray(e))return;let o=t?.find(r=>r?.colors?.every((n,i)=>n===e[i]));return o?`var:preset|duotone|${o.slug}`:void 0}function yft({style:e,setAttributes:t,name:o,clientId:r}){let n=e?.color?.duotone,i=jd(o),s=jr(),a=(0,h3e.useSelect)(b=>r?b(B).getBlockAttributes(r)?.className:void 0,[r]),{value:l}=tc(o,a),u=QJ({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),d=QJ({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),[f,p]=je("color.custom","color.customDuotone"),m=!f,g=!p||d?.length===0&&m;if(u?.length===0&&g||s!=="default")return null;let h=n==="unset"||Array.isArray(n)?n:b3e(n,u);return(0,Jp.jsxs)(Jp.Fragment,{children:[(0,Jp.jsx)(Ve,{group:"filter",children:(0,Jp.jsx)(k8,{value:{filter:{duotone:n}},onChange:b=>{let v={...e,color:{...b?.filter}};t({style:Xe(v)})},settings:i,inheritedValue:l})}),(0,Jp.jsx)(Ko,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,Jp.jsx)(WV,{duotonePalette:u,colorPalette:d,disableCustomDuotone:g,disableCustomColors:m,value:h,selectedSlug:qT(n),onChange:(b,v,y)=>{let _=y?`var:preset|duotone|${y}`:bft(b,u),w={...e,color:{...e?.color,duotone:_??b}};t({style:Xe(w)})},settings:i})})]})}var JJ={shareWithChildBlocks:!0,edit:yft,useBlockProps:kft,attributeKeys:["style"],hasSupport(e){return(0,qh.hasBlockSupport)(e,"filter.duotone")}};function vft(e){return(0,qh.hasBlockSupport)(e,"filter.duotone")&&(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}})),e}function _ft({clientId:e,id:t,selector:o,attribute:r}){let n=QJ({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),i=Array.isArray(r),s=i?void 0:b3e(r,n),a=typeof r=="string"&&s,l=typeof r=="string"&&!a,u=null;a?u=s:(l||i)&&(u=r);let p=o.split(",").map(h=>`.${t}${h.trim()}`).join(", "),m=Array.isArray(u)||u==="unset";Ga(m?{css:u!=="unset"?mft(p,t):gft(p),__unstableType:"presets"}:void 0),Ga(m?{assets:u!=="unset"?pft(t,u):"",__unstableType:"svgs"}:void 0);let g=Zt(e);(0,jB.useEffect)(()=>{if(m&&g&&hft){let h=g.style.display;g.style.setProperty("display","inline-block"),g.offsetHeight,g.style.setProperty("display",h)}},[m,g,u])}var wft={};function kft({clientId:e,name:t,style:o}){let r=(0,m3e.useInstanceId)(wft),n=(0,jB.useMemo)(()=>{let l=(0,qh.getBlockType)(t);if(l){if(!(0,qh.getBlockSupport)(l,"filter.duotone",!1))return null;let d=(0,qh.getBlockSupport)(l,"color.__experimentalDuotone",!1);if(d){let f=ha(l);return typeof d=="string"?Ox(f,d):f}return ha(l,"filter.duotone",{fallback:!0})}},[t]),i=o?.color?.duotone,s=`wp-duotone-${r}`,a=n&&i;return _ft({clientId:e,id:s,selector:n,attribute:i}),{className:a?s:""}}(0,g3e.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",vft);var M8=c(F(),1),HB=c(ee(),1),y3e=c(ue(),1),WB=c(ce(),1),UB=c(Z(),1);var v3e=c(Ns(),1);var A8=c(T(),1),xft={},Sft={};function Cft({blockName:e,setAttributes:t,style:o}){if(jr()!=="default")return null;let n=(0,WB.getBlockType)(e);function i(a){let l=a?.css?.trim()?a.css:void 0;t({style:Xe({...a,css:l})})}let s=(0,UB.sprintf)((0,UB.__)("Add your own CSS to customize the appearance of the %s block. You do not need to include a CSS selector, just add the property and value, e.g. color: red;."),n?.title);return(0,A8.jsx)(Ve,{group:"advanced",children:(0,A8.jsx)(C8,{value:o,onChange:i,inheritedValue:o,help:s})})}var Eft="custom-css-edit-warning";function Tft({clientId:e,name:t,setAttributes:o}){let{style:r,canEditCSS:n}=(0,HB.useSelect)(i=>{let{getBlockAttributes:s,getSettings:a}=i(B);return{style:s(e)?.style||Sft,canEditCSS:a().canEditCSS}},[e]);return n?(0,A8.jsx)(Cft,{blockName:t,setAttributes:o,style:r}):null}function Rft({style:e,clientId:t}){let o=e?.css,r=typeof o=="string"&&o.trim().length>0&&VJ(o),n=(0,HB.useSelect)(d=>d(B).getSettings().canEditCSS,[]),{createWarningNotice:i}=(0,HB.useDispatch)(v3e.store),s=!!o?.trim();(0,M8.useEffect)(()=>{!n&&s&&i((0,UB.__)("This post contains blocks with custom CSS. You do not have permission to edit CSS. If you save this post, the custom CSS will be removed."),{id:Eft,isDismissible:!0})},[n,s,i]);let a=(0,y3e.useInstanceId)(xft,"wp-custom-css"),l=`.${a}`,u=(0,M8.useMemo)(()=>{if(r)return f2(o,l)},[o,l,r]);return Ga({css:u,clientId:t,__unstableType:"custom-css"}),r?{className:`has-custom-css ${a}`}:{}}function Bft(e,t,o){if(!(0,WB.hasBlockSupport)(t,"customCSS",!0)||!o?.style?.css?.trim())return e;let r=e.className?`${e.className} has-custom-css`:"has-custom-css";return{...e,className:r}}var N8={edit:Tft,useBlockProps:Rft,addSaveProps:Bft,attributeKeys:["style"],hasSupport(e){return(0,WB.hasBlockSupport)(e,"customCSS",!0)}};var D8=c(ue(),1),tee=c(Bo(),1),w3e=c(F(),1),Iu=c(ce(),1);var V8=c(ee(),1),em=c(q(),1),Qv=c(Z(),1);var ii=c(T(),1),Ift="is-style-",L8="layout",eee=["selfStretch","flexSize","columnStart","columnSpan","rowStart","rowSpan"],{getResponsiveMediaQueries:Pft}=K(Lo);function Oft(e={},t){let o=e?.default;return t?.attributes?.layout??o}function _3e(e={},t){return Xe({...Oft(e,t)})}function Aft(e={},t={},o={}){let r={},n=Object.fromEntries(eee.filter(i=>Object.hasOwn(o||{},i)).map(i=>[i,o[i]]));return Object.entries(e||{}).forEach(([i,s])=>{let a=Object.hasOwn(t||{},i);!eee.includes(i)&&s!==t?.[i]&&(r[i]=s===void 0&&a?null:s)}),Xe({...n,...r})}function Mft({layoutType:e,constrainedType:t,layoutBlockSupport:o,showInheritToggle:r,showLayoutTypeSwitcher:n,displayControlsForLegacyLayouts:i}){let s=e?.name!=="default"&&e?.hasInspectorControls(o),a=i&&t?.hasInspectorControls(o);return!!(r||n||s||a)}function Nft(e={}){return Object.fromEntries(Object.entries(e||{}).filter(([t])=>!eee.includes(t)))}function oee(e){return(0,Iu.hasBlockSupport)(e,"layout")||(0,Iu.hasBlockSupport)(e,"__experimentalLayout")}function F8(e={},t=""){let{layout:o}=e,{default:r}=(0,Iu.getBlockSupport)(t,L8)||{},n=o?.inherit||o?.contentSize||o?.wideSize?{...o,type:"constrained"}:o||r||{},i=[];if(va[n?.type||"default"]?.className){let a=va[n?.type||"default"]?.className,l=t.split("/"),d=`wp-block-${l[0]==="core"?l.pop():l.join("-")}-${a}`;i.push(a,d)}return(0,V8.useSelect)(a=>!n?.inherit&&!n?.contentSize&&n?.type!=="constrained"?!1:a(B).getSettings().__experimentalFeatures?.useRootPaddingAwareAlignments,[n?.contentSize,n?.inherit,n?.type])&&i.push("has-global-padding"),n?.orientation&&i.push(`is-${Bs(n.orientation)}`),n?.justifyContent&&i.push(`is-content-justification-${Bs(n.justifyContent)}`),n?.flexWrap&&n.flexWrap==="nowrap"&&i.push("is-nowrap"),i}function ree(e={},t,o){let{layout:r={},style:n={}}=e,i=r?.inherit||r?.contentSize||r?.wideSize?{...r,type:"constrained"}:r||{},s=sl(i?.type||"default"),[a]=je("spacing.blockGap"),l=a!==null;return s?.getLayoutStyle?.({blockName:t,selector:o,layout:r,style:n,hasBlockGapSupport:l})}function Lft({attributes:e={},blockName:t,selector:o,layout:r={},hasBlockGapSupport:n,globalBlockGapValue:i,viewportSettings:s}){return Object.entries(Pft(s)).map(([a,l])=>{let u=Ao(e?.style,{viewport:a,pseudo:ea.pseudo}),d=Nft(u?.layout),f=Object.keys(d).length>0,p=u?.spacing&&Object.hasOwn(u.spacing,"blockGap"),m=u?.spacing&&Object.hasOwn(u.spacing,"padding");if(!f&&!p&&!m)return"";let h=sl(r?.type||"default")?.getLayoutStyle?.({blockName:t,selector:o,layout:r,viewportOverrides:d,style:u,hasBlockGapSupport:n,globalBlockGapValue:i});return h?`${l}{${h}}`:""}).filter(Boolean).join("")}function Dft({layout:e,style:t,setAttributes:o,name:r,clientId:n}){let i=jd(r),{layout:s}=i,{themeSupportsLayout:a,activeBlockVariation:l,selectedState:u,isResponsiveEditing:d}=(0,V8.useSelect)(G=>{let{getBlockAttributes:te,getSettings:re,getSelectedBlockStyleState:ae,isResponsiveEditing:ie}=K(G(B));return{activeBlockVariation:G(Iu.store).getActiveBlockVariation(r,te(n)||{},"block"),themeSupportsLayout:re().supportsLayout,selectedState:ae(n),isResponsiveEditing:ie()}},[r,n]),f=jr(),p=_i(u)&&!Aa(u),m=(0,w3e.useCallback)((...G)=>{let te=G[0]||{},re=G[1]||{};if(p){let be=Ao(te.style??t,u)||{},pe=Xe({...be,layout:void 0});return{style:wn(te.style??t,u,pe)}}let ae=re.name||r,ie=(0,Iu.getBlockSupport)(ae,L8,{});return{layout:_3e(ie,l)}},[r,l,p,u,t]);if(f!=="default")return null;let g=(0,Iu.getBlockSupport)(r,L8,{}),h={...s,...g},{allowSwitching:b,allowEditing:v=!0,allowInheriting:y=!0,default:_}=h;if(!v)return null;let w=e||_||{},k=p?Ao(t,u):void 0,x=k?.layout,C=p?Xe({...w,...x})||{}:w,E=p?w:_3e(g,l),R={...g,...C},{type:S,default:{type:I="default"}={}}=R,O=S||I,A=!!(y&&(!O||O==="default"||O==="constrained"||R.inherit)),{inherit:P=!1,contentSize:L=null}=C;if((O==="default"||O==="constrained")&&!a)return null;let H=sl(O),N=sl("constrained"),M=!C.type&&(L||P),V=!!P||!!L,j=Zn(u)&&!P&&b,D=Mft({layoutType:H,constrainedType:N,layoutBlockSupport:h,showInheritToggle:A,showLayoutTypeSwitcher:j,displayControlsForLegacyLayouts:M}),z=G=>{if(p){let te=Xe({...k,layout:Aft(G,w,k?.layout)});o({style:wn(t,u,te)});return}o({layout:Xe(G)})},$=G=>z({type:G}),J=()=>z(E),Q=()=>z({type:"default"}),W=()=>H?.name==="constrained"||V,X=()=>p?(C?.type??"default")!==(E?.type??"default"):e?.type==="constrained",U=()=>(C?.type??"default")!==(E?.type??"default");return(0,ii.jsxs)(ii.Fragment,{children:[D&&(0,ii.jsxs)(Ve,{group:"layout",resetAllFilter:m,children:[A&&(0,ii.jsx)(em.__experimentalToolsPanelItem,{label:(0,Qv.__)("Use content width"),hasValue:X,onDeselect:Q,isShownByDefault:!0,panelId:n,children:(0,ii.jsx)(em.ToggleControl,{label:(0,Qv.__)("Inner blocks use content width"),checked:W(),onChange:()=>z({type:W()?"default":"constrained"}),help:W()?(0,Qv.__)("Nested blocks use content width with options for full and wide widths."):(0,Qv.__)("Nested blocks will fill the width of this container.")})}),j&&(0,ii.jsx)(em.__experimentalToolsPanelItem,{label:(0,Qv.__)("Layout type"),hasValue:U,onDeselect:J,isShownByDefault:!0,panelId:n,children:(0,ii.jsx)(Vft,{type:O,onChange:$})}),H&&H.name!=="default"&&(0,ii.jsx)(H.inspectorControls,{layout:C,value:e,onChange:z,layoutBlockSupport:h,resetLayout:E,name:r,clientId:n}),N&&M&&(0,ii.jsx)(N.inspectorControls,{layout:C,value:e,onChange:z,layoutBlockSupport:h,resetLayout:E,name:r,clientId:n})]}),!P&&H&&(0,ii.jsx)(H.toolBarControls,{layout:C,onChange:z,layoutBlockSupport:g,controlsGroup:d&&_i(u)&&!Aa(u)?"style-state":"block",name:r,clientId:n})]})}var k3e={shareWithChildBlocks:!0,edit:Dft,attributeKeys:["layout","style"],hasSupport(e){return oee(e)}};function Vft({type:e,onChange:t}){return(0,ii.jsx)(em.__experimentalToggleGroupControl,{isBlock:!0,label:(0,Qv.__)("Layout type"),hideLabelFromVision:!0,isAdaptiveWidth:!0,value:e,onChange:t,children:hne().map(({name:o,label:r})=>(0,ii.jsx)(em.__experimentalToggleGroupControlOption,{value:o,label:r},o))})}function Fft(e){return"type"in(e.attributes?.layout??{})||oee(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e}function zft({block:e,props:t,blockGapSupport:o,globalBlockGapValue:r,viewportSettings:n,layoutClasses:i}){let{name:s,attributes:a}=t,l=(0,D8.useInstanceId)(e),{layout:u}=a,{default:d}=(0,Iu.getBlockSupport)(s,L8)||{},f=u?.inherit||u?.contentSize||u?.wideSize?{...u,type:"constrained"}:u||d||{},p=`wp-container-${Bs(s)}-is-layout-`,m=`.${p}${l}`,g=o!==null,b=sl(f?.type||"default")?.getLayoutStyle?.({blockName:s,selector:m,layout:f,style:a?.style,hasBlockGapSupport:g,globalBlockGapValue:r}),v=Lft({attributes:a,blockName:s,selector:m,layout:f,hasBlockGapSupport:g,globalBlockGapValue:r,viewportSettings:n}),y=[b,v].filter(Boolean).join(""),_=Y({[`${p}${l}`]:!!y},i);return Qc({css:y}),(0,ii.jsx)(e,{...t,__unstableLayoutClassNames:_})}var jft=(0,D8.createHigherOrderComponent)(e=>function(o){let{clientId:r,name:n,attributes:i}=o,s=oee(n),a=F8(i,n),l=(0,V8.useSelect)(u=>{if(!s)return;let{getSettings:d,getBlockSettings:f}=K(u(B)),p=d(),{disableLayoutStyles:m}=p;if(m)return;let[g]=f(r,"spacing.blockGap"),h=p[Is],b,v=i?.className;if(v?.includes(Ift)){let{getBlockStyles:_}=u(Iu.store),w=_(n),k=rB(v,w);b=k?h?.blocks?.[n]?.variations?.[k]?.spacing?.blockGap:void 0}let y=b??h?.blocks?.[n]?.spacing?.blockGap??h?.spacing?.blockGap;return{blockGapSupport:g,globalBlockGapValue:y,viewportSettings:p?.__experimentalFeatures?.viewport}},[s,r,i?.className,n]);return l?(0,ii.jsx)(zft,{block:e,props:o,layoutClasses:a,...l}):(0,ii.jsx)(e,{...o,__unstableLayoutClassNames:s?a:void 0})},"withLayoutStyles");(0,tee.addFilter)("blocks.registerBlockType","core/layout/addAttribute",Fft);(0,tee.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",jft);var P3e=c(ue(),1),U8=c(ee(),1),O3e=c(F(),1);var pc=c(F(),1),Zh=c(ee(),1),S3e=c(ue(),1);function $B(e,t){return Array.from({length:t},(o,r)=>e+r)}var Pu=class{constructor({columnStart:e,rowStart:t,columnEnd:o,rowEnd:r,columnSpan:n,rowSpan:i}={}){this.columnStart=e??1,this.rowStart=t??1,n!==void 0?this.columnEnd=this.columnStart+n-1:this.columnEnd=o??this.columnStart,i!==void 0?this.rowEnd=this.rowStart+i-1:this.rowEnd=r??this.rowStart}get columnSpan(){return this.columnEnd-this.columnStart+1}get rowSpan(){return this.rowEnd-this.rowStart+1}contains(e,t){return e>=this.columnStart&&e<=this.columnEnd&&t>=this.rowStart&&t<=this.rowEnd}containsRect(e){return this.contains(e.columnStart,e.rowStart)&&this.contains(e.columnEnd,e.rowEnd)}intersectsRect(e){return this.columnStart<=e.columnEnd&&this.columnEnd>=e.columnStart&&this.rowStart<=e.rowEnd&&this.rowEnd>=e.rowStart}};function fn(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function GB(e,t){let o=[];for(let r of e.split(" ")){let n=o[o.length-1],i=n?n.end+t:0,s=i+parseFloat(r);o.push({start:i,end:s})}return o}function tm(e,t,o="start"){return e.reduce((r,n,i)=>Math.abs(n[o]-t)<Math.abs(e[r][o]-t)?i:r,0)}function Hft(e,t){let o=parseFloat(fn(e,"column-gap")),r=parseFloat(fn(e,"row-gap")),n=GB(fn(e,"grid-template-columns"),o),i=GB(fn(e,"grid-template-rows"),r),s=tm(n,t.left)+1,a=tm(i,t.top)+1,l=tm(n,t.right,"end")+1,u=tm(i,t.bottom,"end")+1;return new Pu({columnStart:s,columnEnd:l,rowStart:a,rowEnd:u})}function x3e(e){return Hft(e.parentElement,new window.DOMRect(e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight))}function nee(e){let t=fn(e,"grid-template-columns"),o=fn(e,"grid-template-rows"),r=fn(e,"border-top-width"),n=fn(e,"border-right-width"),i=fn(e,"border-bottom-width"),s=fn(e,"border-left-width"),a=fn(e,"padding-top"),l=fn(e,"padding-right"),u=fn(e,"padding-bottom"),d=fn(e,"padding-left"),f=t.split(" ").length,p=o.split(" ").length,m=f*p;return{numColumns:f,numRows:p,numItems:m,currentColor:fn(e,"color"),style:{gridTemplateColumns:t,gridTemplateRows:o,gap:fn(e,"gap"),inset:` 218 calc(${a} + ${r}) 219 calc(${l} + ${n}) 220 calc(${u} + ${i}) 221 calc(${d} + ${s}) 222 `}}}var Ka=c(T(),1);function YB({clientId:e,contentRef:t,parentLayout:o,childGridClientId:r}){let n=(0,Zh.useSelect)(a=>a(B).getSettings().isDistractionFree,[]),i=Zt(e);if(n||!i)return null;let s=o?.isManualPlacement&&window.__experimentalEnableGridInteractivity;return(0,Ka.jsx)(Wft,{gridClientId:e,gridElement:i,isManualGrid:s,ref:t,childGridClientId:r})}var Wft=(0,pc.forwardRef)(({gridClientId:e,gridElement:t,isManualGrid:o,childGridClientId:r},n)=>{let[i,s]=(0,pc.useState)(()=>nee(t)),[a,l]=(0,pc.useState)(!1),u=Zt(r),d=(0,pc.useMemo)(()=>u?x3e(u):null,[u]);return(0,pc.useEffect)(()=>{let f=()=>s(nee(t)),p=new window.ResizeObserver(f);p.observe(t,{box:"border-box"});let m=new window.ResizeObserver(f);m.observe(t);for(let g of t.children)m.observe(g);return()=>{p.disconnect(),m.disconnect()}},[t]),(0,pc.useEffect)(()=>{function f(){l(!0)}function p(){l(!1)}return document.addEventListener("drag",f),document.addEventListener("dragend",p),()=>{document.removeEventListener("drag",f),document.removeEventListener("dragend",p)}},[]),(0,Ka.jsx)(Al,{className:Y("block-editor-grid-visualizer",{"is-dropping-allowed":a}),clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",children:(0,Ka.jsx)("div",{ref:n,className:"block-editor-grid-visualizer__grid",style:i.style,children:o?(0,Ka.jsx)(Gft,{gridClientId:e,gridInfo:i,childGridRect:d}):(0,Ka.jsx)(Uft,{gridInfo:i,childGridRect:d})})})});function Uft({gridInfo:e,childGridRect:t}){return $B(1,e.numRows).map(o=>$B(1,e.numColumns).map(r=>{let n=e.currentColor;return t?.contains(r,o)&&(n="transparent"),(0,Ka.jsx)(C3e,{color:n},`${o}-${r}`)}))}function Gft({gridClientId:e,gridInfo:t,childGridRect:o}){let[r,n]=(0,pc.useState)(null),i=(0,Zh.useSelect)(a=>{let{getBlockOrder:l,getBlockStyles:u}=K(a(B)),d=l(e);return u(d)},[e]),s=(0,pc.useMemo)(()=>{let a=[];for(let l of Object.values(i)){let{columnStart:u,rowStart:d,columnSpan:f=1,rowSpan:p=1}=l?.layout??{};!u||!d||a.push(new Pu({columnStart:u,rowStart:d,columnSpan:f,rowSpan:p}))}return a},[i]);return $B(1,t.numRows).map(a=>$B(1,t.numColumns).map(l=>{let u=o?.contains(l,a),d=t.currentColor;u&&(d="transparent");let f=s.some(m=>m.contains(l,a)),p=r?.contains(l,a)??!1;return(0,Ka.jsx)(C3e,{color:d,className:p&&"is-highlighted",children:f&&!u?(0,Ka.jsx)($ft,{column:l,row:a,gridClientId:e,gridInfo:t,setHighlightedRect:n}):(0,Ka.jsx)(Yft,{column:l,row:a,gridClientId:e,gridInfo:t,setHighlightedRect:n})},`${a}-${l}`)}))}function C3e({color:e,children:t,className:o}){return(0,Ka.jsx)("div",{className:Y("block-editor-grid-visualizer__cell",o),style:{boxShadow:`inset 0 0 0 1px color-mix(in srgb, ${e} 20%, #0000)`,color:e},children:t})}function E3e(e,t,o,r,n){let{getBlockAttributes:i,getBlockRootClientId:s,canInsertBlockType:a,getBlockName:l}=(0,Zh.useSelect)(B),{updateBlockAttributes:u,moveBlocksToPosition:d,__unstableMarkNextChangeAsNotPersistent:f}=(0,Zh.useDispatch)(B),p=$v(o,r.numColumns);return Kft({validateDrag(m){let g=l(m);if(!a(g,o))return!1;let h=i(m),b=new Pu({columnStart:e,rowStart:t,columnSpan:h.style?.layout?.columnSpan,rowSpan:h.style?.layout?.rowSpan});return new Pu({columnSpan:r.numColumns,rowSpan:r.numRows}).containsRect(b)},onDragEnter(m){let g=i(m);n(new Pu({columnStart:e,rowStart:t,columnSpan:g.style?.layout?.columnSpan,rowSpan:g.style?.layout?.rowSpan}))},onDragLeave(){n(m=>m?.columnStart===e&&m?.rowStart===t?null:m)},onDrop(m){n(null);let g=i(m);u(m,{style:{...g.style,layout:{...g.style?.layout,columnStart:e,rowStart:t}}}),f(),d([m],s(m),o,p(e,t))}})}function $ft({column:e,row:t,gridClientId:o,gridInfo:r,setHighlightedRect:n}){return(0,Ka.jsx)("div",{className:"block-editor-grid-visualizer__drop-zone",ref:E3e(e,t,o,r,n)})}function Yft({column:e,row:t,gridClientId:o,gridInfo:r,setHighlightedRect:n}){let{updateBlockAttributes:i,moveBlocksToPosition:s,__unstableMarkNextChangeAsNotPersistent:a}=(0,Zh.useDispatch)(B),l=$v(o,r.numColumns);return(0,Ka.jsx)(zg,{rootClientId:o,className:"block-editor-grid-visualizer__appender",ref:E3e(e,t,o,r,n),style:{color:r.currentColor},onSelect:u=>{u&&(i(u.clientId,{style:{layout:{columnStart:e,rowStart:t}}}),a(),s([u.clientId],o,o,l(e,t)))}})}function Kft({validateDrag:e,onDragEnter:t,onDragLeave:o,onDrop:r}){let{getDraggedBlockClientIds:n}=(0,Zh.useSelect)(B);return(0,S3e.__experimentalUseDropZone)({onDragEnter(){let[i]=n();i&&e(i)&&t(i)},onDragLeave(){o()},onDrop(){let[i]=n();i&&e(i)&&r(i)}})}var T3e=c(q(),1),KB=c(F(),1);var z8=c(T(),1);function iee({clientId:e,bounds:t,onChange:o,parentLayout:r}){let n=Zt(e),i=n?.parentElement,{isManualPlacement:s}=r;return!n||!i?null:(0,z8.jsx)(qft,{clientId:e,bounds:t,blockElement:n,rootBlockElement:i,onChange:o,isManualGrid:s&&window.__experimentalEnableGridInteractivity})}function qft({clientId:e,bounds:t,blockElement:o,rootBlockElement:r,onChange:n,isManualGrid:i}){let[s,a]=(0,KB.useState)(null),[l,u]=(0,KB.useState)({top:!1,bottom:!1,left:!1,right:!1});(0,KB.useEffect)(()=>{let m=new window.ResizeObserver(()=>{let g=o.getBoundingClientRect(),h=r.getBoundingClientRect(),b=g.top>h.top,v=g.bottom<h.bottom,y=g.left>h.left,_=g.right<h.right;u({top:(i||!v)&&b,bottom:v,left:(i||!_)&&y,right:_})});return m.observe(o),()=>m.disconnect()},[o,r,i]);let d={right:"left",left:"right"},f={top:"flex-end",bottom:"flex-start"},p={display:"flex",justifyContent:"center",alignItems:"center",...d[s]&&{justifyContent:d[s]},...f[s]&&{alignItems:f[s]}};return(0,z8.jsx)(Al,{className:"block-editor-grid-item-resizer",clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",additionalStyles:p,children:(0,z8.jsx)(T3e.ResizableBox,{className:"block-editor-grid-item-resizer__box",size:{width:"100%",height:"100%"},enable:{bottom:l.bottom,bottomLeft:!1,bottomRight:!1,left:l.left,right:l.right,top:l.top,topLeft:!1,topRight:!1},bounds:t,boundsByDirection:!0,onPointerDown:({target:m,pointerId:g})=>{m.setPointerCapture(g)},onResizeStart:(m,g)=>{a(g)},onResizeStop:(m,g,h)=>{let b=parseFloat(fn(r,"column-gap")),v=parseFloat(fn(r,"row-gap")),y=GB(fn(r,"grid-template-columns"),b),_=GB(fn(r,"grid-template-rows"),v),w=new window.DOMRect(o.offsetLeft+h.offsetLeft,o.offsetTop+h.offsetTop,h.offsetWidth,h.offsetHeight),k=tm(y,w.left)+1,x=tm(_,w.top)+1,C=tm(y,w.right,"end")+1,E=tm(_,w.bottom,"end")+1;n({columnSpan:C-k+1,rowSpan:E-x+1,columnStart:i?k:void 0,rowStart:i?x:void 0})}})})}var mc=c(Z(),1),j8=c(q(),1);var R3e=c(ee(),1),B3e=c(ue(),1);var Ji=c(T(),1);function see({layout:e,parentLayout:t,onChange:o,gridClientId:r,blockClientId:n}){let{moveBlocksToPosition:i,__unstableMarkNextChangeAsNotPersistent:s}=(0,R3e.useDispatch)(B),a=e?.columnStart??1,l=e?.rowStart??1,u=e?.columnSpan??1,d=e?.rowSpan??1,f=a+u-1,p=l+d-1,m=t?.columnCount,g=t?.rowCount,h=$v(r,m);return(0,Ji.jsx)(Ko,{group:"parent",children:(0,Ji.jsxs)(j8.ToolbarGroup,{className:"block-editor-grid-item-mover__move-button-container",children:[(0,Ji.jsx)("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-left",children:(0,Ji.jsx)(qB,{icon:(0,mc.isRTL)()?br:li,label:(0,mc.__)("Move left"),description:(0,mc.__)("Move left"),isDisabled:a<=1,onClick:()=>{o({columnStart:a-1}),s(),i([n],r,r,h(a-1,l))}})}),(0,Ji.jsxs)("div",{className:"block-editor-grid-item-mover__move-vertical-button-container",children:[(0,Ji.jsx)(qB,{className:"is-up-button",icon:fb,label:(0,mc.__)("Move up"),description:(0,mc.__)("Move up"),isDisabled:l<=1,onClick:()=>{o({rowStart:l-1}),s(),i([n],r,r,h(a,l-1))}}),(0,Ji.jsx)(qB,{className:"is-down-button",icon:Bn,label:(0,mc.__)("Move down"),description:(0,mc.__)("Move down"),isDisabled:g&&p>=g,onClick:()=>{o({rowStart:l+1}),s(),i([n],r,r,h(a,l+1))}})]}),(0,Ji.jsx)("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-right",children:(0,Ji.jsx)(qB,{icon:(0,mc.isRTL)()?li:br,label:(0,mc.__)("Move right"),description:(0,mc.__)("Move right"),isDisabled:m&&f>=m,onClick:()=>{o({columnStart:a+1}),s(),i([n],r,r,h(a+1,l))}})})]})})}function qB({className:e,icon:t,label:o,isDisabled:r,onClick:n,description:i}){let a=`block-editor-grid-item-mover-button__description-${(0,B3e.useInstanceId)(qB)}`;return(0,Ji.jsxs)(Ji.Fragment,{children:[(0,Ji.jsx)(j8.ToolbarButton,{className:Y("block-editor-grid-item-mover-button",e),icon:t,label:o,"aria-describedby":a,onClick:r?null:n,disabled:r,accessibleWhenDisabled:!0}),(0,Ji.jsx)(ht,{id:a,children:i})]})}var ZB=c(ee(),1),W8=c(F(),1),H8=c(ue(),1);function aee({clientId:e}){let{gridLayout:t,blockOrder:o,selectedBlockLayout:r}=(0,ZB.useSelect)(p=>{let{getBlockAttributes:m,getBlockOrder:g}=p(B),h=p(B).getSelectedBlock();return{gridLayout:m(e).layout??{},blockOrder:g(e),selectedBlockLayout:h?.attributes.style?.layout}},[e]),{getBlockAttributes:n,getBlockRootClientId:i}=(0,ZB.useSelect)(B),{updateBlockAttributes:s,__unstableMarkNextChangeAsNotPersistent:a}=(0,ZB.useDispatch)(B),l=(0,W8.useMemo)(()=>r?new Pu(r):null,[r]),u=(0,H8.usePrevious)(l),d=(0,H8.usePrevious)(t.isManualPlacement),f=(0,H8.usePrevious)(o);(0,W8.useEffect)(()=>{let p={};if(t.isManualPlacement){let m=[];for(let h of o){let{columnStart:b,rowStart:v,columnSpan:y=1,rowSpan:_=1}=n(h).style?.layout??{};!b||!v||m.push(new Pu({columnStart:b,rowStart:v,columnSpan:y,rowSpan:_}))}for(let h of o){let b=n(h),{columnStart:v,rowStart:y,columnSpan:_=1,rowSpan:w=1}=b.style?.layout??{};if(v&&y)continue;let[k,x]=Zft(m,t.columnCount,_,w,u?.columnEnd,u?.rowEnd);m.push(new Pu({columnStart:k,rowStart:x,columnSpan:_,rowSpan:w})),p[h]={style:{...b.style,layout:{...b.style?.layout,columnStart:k,rowStart:x}}}}let g=Math.max(...m.map(h=>h.rowEnd));(!t.rowCount||t.rowCount<g)&&(p[e]={layout:{...t,rowCount:g}});for(let h of f??[])if(!o.includes(h)){let b=i(h);if(b===null||n(b)?.layout?.type==="grid")continue;let y=n(h),{columnStart:_,rowStart:w,columnSpan:k,rowSpan:x,...C}=y.style?.layout??{};if(_||w||k||x){let E=Object.keys(C).length===0;p[h]=Ue(y,["style","layout"],E?void 0:C)}}}else{if(d===!0)for(let m of o){let g=n(m),{columnStart:h,rowStart:b,...v}=g.style?.layout??{};if(h||b){let y=Object.keys(v).length===0;p[m]=Ue(g,["style","layout"],y?void 0:v)}}t.rowCount&&(p[e]={layout:{...t,rowCount:void 0}})}Object.keys(p).length&&(a(),s(Object.keys(p),p,!0))},[e,t,f,o,u,d,a,n,i,s])}function Zft(e,t,o,r,n=1,i=1){for(let s=i;;s++)for(let a=s===i?n:1;a<=t;a++){let l=new Pu({columnStart:a,rowStart:s,columnSpan:o,rowSpan:r});if(!e.some(u=>u.intersectsRect(l)))return[a,s]}}var om=c(T(),1),{getResponsiveMediaQueries:Xft}=K(Lo),Qft={},Xh={fit:"fit",grow:"fill",max:"fixed",fixed:"fixedNoShrink"},Jft=[Xh.max,Xh.fixed];function I3e(e){return Jft.includes(e)}function A3e({selector:e,declarations:t}){return`${e} { 223 ${Object.entries(t).map(([o,r])=>`${o}: ${r}`).join("; ")}; 224 }`}function M3e({selector:e,layout:t={},viewportOverrides:o,parentLayout:r={},includeContainerQuery:n=!0}){let i=o!==void 0,s=i?{...t,...o}:t,a=_=>Object.hasOwn(o||{},_),{selfStretch:l,flexSize:u,columnStart:d,rowStart:f,columnSpan:p,rowSpan:m}=s,g=t.selfStretch,{columnCount:h,minimumColumnWidth:b}=r,v=[],y={};if((!i||a("selfStretch")||a("flexSize"))&&(i&&(l===Xh.fit||l===Xh.grow)&&I3e(g)&&t.flexSize&&(y["flex-basis"]="unset",g===Xh.fixed&&(y["flex-shrink"]="unset")),I3e(l)&&u?(y["flex-basis"]=u,l===Xh.fixed?y["flex-shrink"]="0":i&&g===Xh.fixed&&(y["flex-shrink"]="unset"),y["box-sizing"]="border-box"):l===Xh.grow&&(y["flex-grow"]="1")),(!i||a("columnStart")||a("columnSpan"))&&(d&&p?y["grid-column"]=`${d} / span ${p}`:d?y["grid-column"]=`${d}`:p&&(y["grid-column"]=`span ${p}`)),(!i||a("rowStart")||a("rowSpan"))&&(f&&m?y["grid-row"]=`${f} / span ${m}`:f?y["grid-row"]=`${f}`:m&&(y["grid-row"]=`span ${m}`)),Object.keys(y).length&&v.push({selector:e,declarations:y}),n&&!i&&(p||d)&&(b||!h)){let _=parseFloat(b);isNaN(_)&&(_=12);let w=b?.replace(_,"");["px","rem","em"].includes(w)||(w="rem");let k=2;p&&d?k=p+d-1:p?k=p:k=d;let x=w==="px"?24:1.5,C=k*_+(k-1)*x,E=_*2+x-1,R=p&&p>1?"1/-1":"auto";v.push({rulesGroup:`@container (max-width: ${Math.max(C,E)}${w})`,selector:e,declarations:{"grid-column":R,"grid-row":"auto"}})}return v}function ept({selector:e,layout:t={},parentLayout:o={},includeContainerQuery:r=!0}){return M3e({selector:e,layout:t,parentLayout:o,includeContainerQuery:r}).map(n=>{let i=A3e(n);return n.rulesGroup?`${n.rulesGroup} { 225 ${i} 226 }`:i}).join("")}function tpt({style:e={},selector:t,parentLayout:o={},viewportSettings:r}){let n=e?.layout??{};return Object.entries(Xft(r)).map(([i,s])=>{let a=Ao(e,{viewport:i,pseudo:ea.pseudo})?.layout;if(!a||!Object.keys(a).length)return"";let u=M3e({selector:t,layout:n,viewportOverrides:a,parentLayout:o,includeContainerQuery:!1}).map(A3e).join("");return u?`${s}{${u}}`:""}).filter(Boolean).join("")}function opt(e,t,o){if(!_i(o))return{...e,layout:{...e?.layout,...t}};let r={viewport:o.viewport,pseudo:ea.pseudo},n=Ao(e,r);return wn(e,r,{...n,layout:{...n?.layout,...t}})}function rpt({style:e}){let{shouldRenderChildLayoutStyles:t,viewportSettings:o}=(0,U8.useSelect)(p=>{let m=p(B).getSettings();return{shouldRenderChildLayoutStyles:!m.disableLayoutStyles,viewportSettings:m?.__experimentalFeatures?.viewport}}),r=e?.layout??{},{columnStart:n,rowStart:i,columnSpan:s,rowSpan:a}=r,l=Pb()||{},u=(0,P3e.useInstanceId)(Qft),d=`.wp-container-content-${u}`,f="";if(t&&(f=[ept({selector:d,layout:r,parentLayout:l}),tpt({style:e,selector:d,parentLayout:l,viewportSettings:o})].join("")),Qc({css:f}),!!f)return{className:`wp-container-content-${u}`}}function npt({clientId:e,style:t,setAttributes:o}){let r=Pb()||{},{type:n="default",allowSizingOnChildren:i=!1,isManualPlacement:s}=r;return n!=="grid"?null:(0,om.jsx)(ipt,{clientId:e,style:t,setAttributes:o,allowSizingOnChildren:i,isManualPlacement:s,parentLayout:r})}function ipt({clientId:e,style:t,setAttributes:o,allowSizingOnChildren:r,isManualPlacement:n,parentLayout:i}){let{rootClientId:s,isVisible:a,parentBlockVisibility:l,blockBlockVisibility:u,deviceType:d,viewportSettings:f,isChildBlockAGrid:p,selectedState:m}=(0,U8.useSelect)(S=>{let{getBlockRootClientId:I,getBlockEditingMode:O,getTemplateLock:A,getBlockAttributes:P,getSettings:L,getSelectedBlockStyleState:H}=K(S(B)),N=I(e);if(A(N)||O(N)!=="default")return{rootClientId:N,isVisible:!1};let M=P(N),V=P(e),j=L(),D=j?.[el]?.toLowerCase()||mn.desktop.key;return{rootClientId:N,isVisible:!0,parentBlockVisibility:M?.metadata?.blockVisibility,blockBlockVisibility:V?.metadata?.blockVisibility,deviceType:D,viewportSettings:j?.__experimentalFeatures?.viewport,isChildBlockAGrid:V?.layout?.type==="grid",selectedState:H(e)}},[e]),h=Zt(e)?.ownerDocument?.defaultView,b=h===null?void 0:h,{isBlockCurrentlyHidden:v,currentViewport:y}=pl({blockVisibility:l,deviceType:d,view:b,viewportSettings:f}),_=(0,U8.useSelect)(S=>{if(!s)return!1;let{isBlockParentHiddenAtViewport:I}=K(S(B));return I(s,y)},[s,y]),{isBlockCurrentlyHidden:w}=pl({blockVisibility:u,deviceType:d,view:b,viewportSettings:f}),[k,x]=(0,O3e.useState)(),C=p?e:void 0;if(!a||v||_)return null;let E=r&&!w;function R(S){o({style:opt(t,S,m)})}return(0,om.jsxs)(om.Fragment,{children:[(0,om.jsx)(YB,{clientId:s,contentRef:x,parentLayout:i,childGridClientId:C}),E&&(0,om.jsx)(iee,{clientId:e,bounds:k,onChange:R,parentLayout:i}),n&&window.__experimentalEnableGridInteractivity&&(0,om.jsx)(see,{layout:t?.layout,parentLayout:i,onChange:R,gridClientId:s,blockClientId:e})]})}var lee={useBlockProps:rpt,edit:npt,attributeKeys:["style"],hasSupport(){return!0}};var uee=c(Bo(),1),cee=c(ce(),1),N3e="metadata";function spt(e){return e?.attributes?.[N3e]?.type||(e.attributes={...e.attributes,[N3e]:{type:"object"}}),e}function apt(e,t,o,r){if(r.length===1&&e.innerBlocks.length===t.length||r.length===1&&t.length>1||r.length>1&&t.length===1||r.length>1&&t.length>1&&r.length!==t.length)return e;let n=t[o]?.attributes?.metadata;if(!n)return e;let i={};return n.noteId&&!e.attributes?.metadata?.noteId&&(i.noteId=n.noteId),n.name&&!e.attributes?.metadata?.name&&(0,cee.hasBlockSupport)(e.name,"renaming",!0)&&(i.name=n.name),n.blockVisibility!==void 0&&!e.attributes?.metadata?.blockVisibility&&(0,cee.hasBlockSupport)(e.name,"visibility",!0)&&(i.blockVisibility=n.blockVisibility),Object.keys(i).length>0?{...e,attributes:{...e.attributes,metadata:{...e.attributes.metadata,...i}}}:e}(0,uee.addFilter)("blocks.registerBlockType","core/metadata/addMetaAttribute",spt);(0,uee.addFilter)("blocks.switchToBlockType.transformedBlock","core/metadata/addTransforms",apt);var dee=c(Z(),1),G8=c(F(),1),$8=c(q(),1),Y8=c(ce(),1),A0=c(ee(),1);var Qh=c(T(),1),lpt={};function cpt({name:e,clientId:t,metadata:{ignoredHookedBlocks:o=[]}={}}){let r=(0,A0.useSelect)(m=>m(Y8.store).getBlockTypes(),[]),n=(0,G8.useMemo)(()=>r?.filter(({name:m,blockHooks:g})=>g&&e in g||o.includes(m)),[r,e,o]),i=(0,A0.useSelect)(m=>{let{getBlocks:g,getBlockRootClientId:h,getGlobalBlockCount:b}=m(B),v=h(t),y=n.reduce((_,w)=>{if(b(w.name)===0)return _;let k=w?.blockHooks?.[e],x;switch(k){case"before":case"after":x=g(v);break;case"first_child":case"last_child":x=g(t);break;case void 0:x=[...g(v),...g(t)];break}let C=x?.find(E=>E.name===w.name);return C?{..._,[w.name]:C.clientId}:_},{});return Object.values(y).length>0?y:lpt},[n,e,t]),{getBlockIndex:s,getBlockCount:a,getBlockRootClientId:l}=(0,A0.useSelect)(B),{insertBlock:u,removeBlock:d}=(0,A0.useDispatch)(B);if(!n.length)return null;let f=n.reduce((m,g)=>{let[h]=g.name.split("/");return m[h]||(m[h]=[]),m[h].push(g),m},{}),p=(m,g)=>{let h=s(t),b=a(t),v=l(t);switch(g){case"before":case"after":u(m,g==="after"?h+1:h,v,!1);break;case"first_child":case"last_child":u(m,g==="first_child"?0:b,t,!1);break;case void 0:u(m,h+1,v,!1);break}};return(0,Qh.jsx)(Ve,{children:(0,Qh.jsxs)($8.PanelBody,{className:"block-editor-hooks__block-hooks",title:(0,dee.__)("Plugins"),initialOpen:!0,children:[(0,Qh.jsx)("p",{className:"block-editor-hooks__block-hooks-helptext",children:(0,dee.__)("Manage the inclusion of blocks added automatically by plugins.")}),Object.keys(f).map(m=>(0,Qh.jsxs)(G8.Fragment,{children:[(0,Qh.jsx)("h3",{children:m}),f[m].map(g=>{let h=g.name in i;return(0,Qh.jsx)($8.ToggleControl,{checked:h,label:g.title,onChange:()=>{if(!h){let b=g.blockHooks[e];p((0,Y8.createBlock)(g.name),b);return}d(i[g.name],!1)}},g.title)})]},m))]})})}var L3e={edit:cpt,attributeKeys:["metadata"],hasSupport(){return!0}};var fee=c(Z(),1),D3e=c(ce(),1),M0=c(q(),1),V3e=c(ee(),1),F3e=c(F(),1),z3e=c(ue(),1);var Jh=c(T(),1),upt=()=>(0,z3e.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}},dpt=({name:e,metadata:t})=>{let o=(0,F3e.useContext)(Hn),{removeAllBlockBindings:r}=Tf(),n=upt(),{bindableAttributes:i,hasCompatibleFields:s}=(0,V3e.useSelect)(l=>{let{__experimentalBlockBindingsSupportedAttributes:u}=l(B).getSettings(),{getAllBlockBindingsSources:d,getBlockBindingsSourceFieldsList:f}=K(l(D3e.store));return{bindableAttributes:u?.[e],hasCompatibleFields:Object.values(d()).some(p=>f(p,o)?.length>0)}},[e,o]);if(!i||i.length===0)return null;let{bindings:a}=t||{};return a===void 0&&!s?null:(0,Jh.jsx)(Ve,{group:"bindings",children:(0,Jh.jsxs)(M0.__experimentalToolsPanel,{label:(0,fee.__)("Attributes"),resetAll:()=>{r()},dropdownMenuProps:n,className:"block-editor-bindings__panel",children:[(0,Jh.jsx)(M0.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:i.map(l=>(0,Jh.jsx)(x1,{attribute:l,blockName:e,binding:a?.[l]},l))}),(0,Jh.jsx)(M0.__experimentalText,{as:"div",variant:"muted",children:(0,Jh.jsx)("p",{children:(0,fee.__)("Attributes connected to custom fields or other dynamic data.")})})]})})},j3e={edit:dpt,attributeKeys:["metadata"],hasSupport(e){return!["core/post-date","core/navigation-link","core/navigation-submenu"].includes(e)}};var H3e=c(Z(),1),W3e=c(q(),1),Z8=c(ee(),1),X8=c(ce(),1),U3e=c(F(),1);var K8=c(ee(),1);function q8(e){let{isOpened:t,expandRevision:o}=(0,K8.useSelect)(i=>{let{isListViewPanelOpened:s,getListViewExpandRevision:a}=K(i(B));return{isOpened:s(e),expandRevision:a()}},[e]),{__unstableToggleListViewPanel:r}=(0,K8.useDispatch)(B);return{isOpened:t,expandRevision:o,handleToggle:i=>{r(e,i)}}}var N0=c(T(),1),fpt="listView";function ppt(e){return(0,X8.hasBlockSupport)(e,fpt)}function mpt({clientId:e,name:t}){let{isSelectionWithinCurrentSection:o}=(0,U3e.useContext)(Rn),{isOpened:r,expandRevision:n,handleToggle:i}=q8(e),{openListViewContentPanel:s}=K((0,Z8.useDispatch)(B)),{isEnabled:a,hasChildren:l,isNestedListView:u}=(0,Z8.useSelect)(m=>{let{getBlockCount:g,getBlockParents:h,shouldRenderBlockListView:b}=K(m(B)),y=h(e,!1).find(_=>b(_));return{isEnabled:b(e),hasChildren:!!g(e),isNestedListView:y}},[e]),f=(0,X8.getBlockType)(t)?.title||t;return!a||u?null:(0,N0.jsx)(Ky,{group:"list",children:(0,N0.jsxs)(W3e.PanelBody,{title:o?f:void 0,opened:r,onToggle:i,children:[!l&&(0,N0.jsx)("p",{className:"block-editor-block-inspector__no-blocks",children:(0,H3e.__)("No items yet.")}),(0,N0.jsx)(xR,{rootClientId:e,isExpanded:!0,description:f,showAppender:!0,onSelect:s},`${e}-${n}`)]})})}var G3e={edit:mpt,hasSupport:ppt,attributeKeys:[],supportsPatternEditing:!0};var $3e=c(Bo(),1),Y3e=c(ce(),1);function gpt(e){return e.__experimentalLabel||(0,Y3e.hasBlockSupport)(e,"renaming",!0)&&(e.__experimentalLabel=(o,{context:r})=>{let{metadata:n}=o;if((r==="list-view"||r==="breadcrumb")&&n?.name)return n.name}),e}(0,$3e.addFilter)("blocks.registerBlockType","core/metadata/addLabelCallback",gpt);var K3e=c(ue(),1),q3e=c(Bo(),1),pee=c(ee(),1);var gc=c(T(),1);function hpt(e){aee(e)}function bpt({clientId:e,layout:t}){let{isVisible:o,blockVisibility:r,deviceType:n,viewportSettings:i}=(0,pee.useSelect)(p=>{let{isBlockSelected:m,hasSelectedInnerBlock:g,isDraggingBlocks:h,getTemplateLock:b,getBlockEditingMode:v,getBlockAttributes:y,getSettings:_}=p(B);if(!h()&&!m(e)||b(e)||v(e)!=="default"||g(e))return{isVisible:!1};let w=y(e),k=_(),x=k?.[el]?.toLowerCase()||mn.desktop.key;return{isVisible:!0,blockVisibility:w?.metadata?.blockVisibility,deviceType:x,viewportSettings:k?.__experimentalFeatures?.viewport}},[e]),a=Zt(e)?.ownerDocument?.defaultView,l=a===null?void 0:a,{isBlockCurrentlyHidden:u,currentViewport:d}=pl({blockVisibility:r,deviceType:n,view:l,viewportSettings:i}),f=(0,pee.useSelect)(p=>{if(!o)return!1;let{isBlockParentHiddenAtViewport:m}=K(p(B));return m(e,d)},[e,d,o]);return(0,gc.jsxs)(gc.Fragment,{children:[(0,gc.jsx)(hpt,{clientId:e}),o&&!u&&!f&&(0,gc.jsx)(YB,{clientId:e,parentLayout:t})]})}var ypt=(0,K3e.createHigherOrderComponent)(e=>function(o){return o.attributes.layout?.type!=="grid"?(0,gc.jsx)(e,{...o},"edit"):(0,gc.jsxs)(gc.Fragment,{children:[(0,gc.jsx)(bpt,{clientId:o.clientId,layout:o.attributes.layout}),(0,gc.jsx)(e,{...o},"edit")]})},"addGridVisualizerToBlockEdit");(0,q3e.addFilter)("editor.BlockEdit","core/editor/grid-visualizer",ypt);var XB=c(ce(),1),X3e=c(q(),1),Q3e=c(ee(),1);var J8=c(F(),1),J3e=c(Z(),1);function Z3e(e){let t=[],o=[];return Object.entries(e).forEach(([r,n])=>{if(!n.autoGenerateControl)return;let i=vpt(r,n);i&&(t.push(i),o.push(r))}),{fields:t,form:{fields:o}}}function vpt(e,t){let o=t.type,r={id:e,label:t.label||e,type:o==="string"?"text":o};return t.enum&&Array.isArray(t.enum)&&(r.elements=t.enum.map(n=>({value:n,label:String(n)}))),r}var Q8=c(T(),1);function _pt(e){return e?Object.values(e).some(t=>t?.autoGenerateControl):!1}function wpt({name:e,clientId:t,setAttributes:o}){let r=jr(),n=(0,J8.useContext)(Hn),i=(0,Q3e.useSelect)(u=>{let d=u(B).getBlockAttributes(t);if(!d?.metadata?.bindings)return d;let{getBlockBindingsSource:f}=K(u(XB.store));return Object.entries(d.metadata.bindings).reduce((p,[m,g])=>{let h=f(g.source);if(!h)return p;let b=h.getValues({select:u,context:n,bindings:{[m]:g}});return{...p,...b}},d)},[n,t]),s=(0,XB.getBlockType)(e),{fields:a,form:l}=(0,J8.useMemo)(()=>s?.attributes?Z3e(s.attributes):{fields:[],form:{fields:[]}},[s?.attributes]);return r!=="default"||!a||a.length===0?null:(0,Q8.jsx)(Ve,{children:(0,Q8.jsx)(X3e.PanelBody,{title:(0,J3e.__)("Settings"),children:(0,Q8.jsx)(IB,{data:i,fields:a,form:l,onChange:o})})})}var eVe={edit:wpt,attributeKeys:[],hasSupport(e){let t=(0,XB.getBlockType)(e);return _pt(t?.attributes)}};function e9(e){let{style:t}=e,o=t?.dimensions||{},r=Ya({dimensions:o});return{className:o.aspectRatio?"has-aspect-ratio":void 0,style:r}}function t9(e){let t=e.style?.border||{};return{className:HJ(e)||void 0,style:Ya({border:t})}}function mee(e){let{colors:t}=mh(),o=t9(e),{borderColor:r}=e;if(r){let n=Zv({colors:t,namedColor:r});o.style.borderColor=n.color}return o}function gee(e){let t=e.style?.shadow||"";return{style:Ya({shadow:t})}}var hee=c(F(),1);function o9(e){let{backgroundColor:t,textColor:o,gradient:r,style:n}=e,i=Ja("background-color",t),s=Ja("color",o),a=J_(r),l=a||n?.color?.gradient,u=Y(s,a,{[i]:!l&&!!i,"has-text-color":o||n?.color?.text,"has-background":t||n?.color?.background||r||n?.color?.gradient,"has-link-color":n?.elements?.link?.color}),d=n?.color||{},f=Ya({color:d});return{className:u||void 0,style:f}}function bee(e){let{backgroundColor:t,textColor:o,gradient:r}=e,[n,i,s,a,l,u]=je("color.palette.custom","color.palette.theme","color.palette.default","color.gradients.custom","color.gradients.theme","color.gradients.default"),d=(0,hee.useMemo)(()=>[...n||[],...i||[],...s||[]],[n,i,s]),f=(0,hee.useMemo)(()=>[...a||[],...l||[],...u||[]],[a,l,u]),p=o9(e);if(t){let m=Lu(d,t);p.style.backgroundColor=m.color}if(r&&(p.style.background=D2(f,r)),o){let m=Lu(d,o);p.style.color=m.color}return p}function yee(e){let{style:t}=e,o=t?.spacing||{};return{style:Ya({spacing:o})}}function vee(e,t){let o=e?.style?.typography||{};o={...o,fontSize:hf({size:e?.style?.typography?.fontSize},t)};let r=Ya({typography:o}),n=e?.fontFamily?`has-${Bs(e.fontFamily)}-font-family`:"",i=e?.style?.typography?.textAlign?`has-text-align-${e?.style?.typography?.textAlign}`:"";return{className:Y(n,i,Im(e?.fontSize)),style:r}}var r9=c(F(),1);function _ee(e){let[t,o]=(0,r9.useState)(e);return(0,r9.useEffect)(()=>{e&&o(e)},[e]),t}BMe([J4,M4,JQ,AJ,O8,N8,JJ,L4,Iq,k3e,L3e,j3e,lee,XMe,n5e,G3e,eVe].filter(Boolean));IMe([J4,M4,oAe,O8,dQ,o3e,JJ,bQ,vQ,L4,WJ,N8,Iq,DOe,lee]);PMe([J4,M4,JQ,eNe,AJ,WJ,N8,L4,dQ,O8,bQ,vQ]);var tVe={button:"wp-element-button",caption:"wp-element-caption"},kpt=e=>tVe[e]?tVe[e]:"";var oVe=()=>"";var L0=c(F(),1),QB=c(ce(),1),kee=c($r(),1);var rVe=c(T(),1);function xee(e,t,o){if(e==null||e===!1)return;if(Array.isArray(e))return wee(e,t,o);switch(typeof e){case"string":case"number":return}let{type:r,props:n}=e;switch(r){case L0.StrictMode:case L0.Fragment:return wee(n.children,t,o);case L0.RawHTML:return;case UT.Content:return nVe(t,o);case HR:t.push(n.value);return}switch(typeof r){case"string":return typeof n.children<"u"?wee(n.children,t,o):void 0;case"function":let i=r.prototype&&typeof r.prototype.render=="function"?new r(n).render():r(n);return xee(i,t,o)}}function wee(e,...t){e=Array.isArray(e)?e:[e];for(let o=0;o<e.length;o++)xee(e[o],...t)}function nVe(e,t){for(let o=0;o<t.length;o++){let{name:r,attributes:n,innerBlocks:i}=t[o],s=(0,QB.getSaveElement)(r,n,(0,rVe.jsx)(UT.Content,{}));xee(s,e,i)}}function iVe(e=[]){QB.__unstableGetBlockProps.skipFilters=!0;let t=[];return nVe(t,e),QB.__unstableGetBlockProps.skipFilters=!1,t.map(o=>o instanceof kee.RichTextData?o:kee.RichTextData.fromHTMLString(o))}var sVe=c(q(),1);var See=c(T(),1);function aVe({clientId:e,resizableBoxProps:t,...o}){return(0,See.jsx)(Al,{clientId:e,__unstablePopoverSlot:"block-toolbar",...o,children:(0,See.jsx)(sVe.ResizableBox,{...t})})}var eI=c(F(),1),n9=c(ee(),1),Ou=c(q(),1),JB=c(Z(),1);var hc=c(T(),1);function lVe({rules:e}){let[t,o]=(0,eI.useState)(!1),{clientIds:r,selectPrevious:n,message:i}=(0,n9.useSelect)(g=>K(g(B)).getRemovalPromptData()),{clearBlockRemovalPrompt:s,setBlockRemovalRules:a,privateRemoveBlocks:l}=K((0,n9.useDispatch)(B));if((0,eI.useEffect)(()=>(a(e),()=>{a()}),[e,a]),(0,eI.useEffect)(()=>{o(!1)},[r]),!i)return;let u=typeof i=="object"&&i!==null,d=u?i.description:i,f=u&&i.requireConfirmation,p=f&&!t,m=()=>{l(r,n,!0),s()};return(0,hc.jsx)(Ou.Modal,{title:(0,JB.__)("Confirm deletion"),onRequestClose:s,size:"medium",children:(0,hc.jsxs)(Ou.__experimentalVStack,{spacing:4,children:[(0,hc.jsxs)("div",{children:[(0,hc.jsx)("p",{children:d}),u&&(i.warning||i.subtext)&&(0,hc.jsxs)("p",{children:[i.warning&&(0,hc.jsx)("strong",{children:i.warning}),i.warning&&i.subtext&&" ",i.subtext]})]}),f&&(0,hc.jsx)(Ou.CheckboxControl,{label:(0,JB.__)("I understand the consequences"),checked:t,onChange:o}),(0,hc.jsxs)(Ou.__experimentalHStack,{justify:"right",children:[(0,hc.jsx)(Ou.Button,{variant:"tertiary",onClick:s,__next40pxDefaultSize:!0,children:(0,JB.__)("Cancel")}),(0,hc.jsx)(Ou.Button,{variant:"primary",onClick:m,disabled:p,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,JB.__)("Delete")})]})]})})}var F0=c(F(),1);var D0=c(q(),1),uVe=c(F(),1),fa=c(Z(),1),i9=c(T(),1),cVe=[{value:"fill",label:(0,fa._x)("Fill","Scale option for dimensions control"),help:(0,fa.__)("Fill the space by stretching the content.")},{value:"contain",label:(0,fa._x)("Contain","Scale option for dimensions control"),help:(0,fa.__)("Fit the content to the space without clipping.")},{value:"cover",label:(0,fa._x)("Cover","Scale option for dimensions control"),help:(0,fa.__)("Fill the space by clipping what doesn't fit.")},{value:"none",label:(0,fa._x)("None","Scale option for dimensions control"),help:(0,fa.__)("Do not adjust the sizing of the content. Content that is too large will be clipped, and content that is too small will have additional padding.")},{value:"scale-down",label:(0,fa._x)("Scale down","Scale option for dimensions control"),help:(0,fa.__)("Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.")}];function dVe({panelId:e,value:t,onChange:o,options:r=cVe,defaultValue:n=cVe[0].value,isShownByDefault:i=!0}){let s=t??n,a=(0,uVe.useMemo)(()=>r.reduce((l,u)=>(l[u.value]=u.help,l),{}),[r]);return(0,i9.jsx)(D0.__experimentalToolsPanelItem,{label:(0,fa._x)("Scale","Image scaling options"),isShownByDefault:i,hasValue:()=>s!==n,onDeselect:()=>o(n),panelId:e,children:(0,i9.jsx)(D0.__experimentalToggleGroupControl,{label:(0,fa._x)("Scale","Image scaling options"),isBlock:!0,help:a[s],value:s,onChange:o,children:r.map(l=>(0,i9.jsx)(D0.__experimentalToggleGroupControlOption,{...l},l.value))})})}var V0=c(q(),1),Jv=c(Z(),1),rm=c(T(),1);function fVe({panelId:e,value:t={},onChange:o=()=>{},units:r,isShownByDefault:n=!0}){let i=t.width==="auto"?"":t.width??"",s=t.height==="auto"?"":t.height??"",a=l=>u=>{let d={...t};u?d[l]=u:delete d[l],o(d)};return(0,rm.jsxs)(rm.Fragment,{children:[(0,rm.jsx)(V0.__experimentalToolsPanelItem,{style:{gridColumn:"span 1"},label:(0,Jv.__)("Width"),isShownByDefault:n,hasValue:()=>i!=="",onDeselect:a("width"),panelId:e,children:(0,rm.jsx)(V0.__experimentalUnitControl,{label:(0,Jv.__)("Width"),placeholder:(0,Jv.__)("Auto"),labelPosition:"top",units:r,min:0,value:i,onChange:a("width")})}),(0,rm.jsx)(V0.__experimentalToolsPanelItem,{style:{gridColumn:"span 1"},label:(0,Jv.__)("Height"),isShownByDefault:n,hasValue:()=>s!=="",onDeselect:a("height"),panelId:e,children:(0,rm.jsx)(V0.__experimentalUnitControl,{label:(0,Jv.__)("Height"),placeholder:(0,Jv.__)("Auto"),labelPosition:"top",units:r,min:0,value:s,onChange:a("height")})})]})}var eb=c(T(),1);function xpt({panelId:e,value:t={},onChange:o=()=>{},aspectRatioOptions:r,defaultAspectRatio:n="auto",scaleOptions:i,defaultScale:s="cover",unitsOptions:a,tools:l=["aspectRatio","widthHeight","scale"]}){let u=t.width===void 0||t.width==="auto"?null:t.width,d=t.height===void 0||t.height==="auto"?null:t.height,f=t.aspectRatio===void 0||t.aspectRatio==="auto"?null:t.aspectRatio,p=t.scale===void 0?null:t.scale,m=!!(u&&d),g=(0,F0.useRef)(p),h=(0,F0.useRef)(f);(0,F0.useEffect)(()=>{p&&(g.current=p)},[p]),(0,F0.useEffect)(()=>{m||(h.current=f)},[f,m]);let b=m?"custom":f,v=f||u&&d;return(0,eb.jsxs)(eb.Fragment,{children:[l.includes("aspectRatio")&&(0,eb.jsx)(d8,{panelId:e,options:r,defaultValue:n,value:b,onChange:y=>{let _={...t};y=y==="auto"?null:y,y?_.aspectRatio=y:delete _.aspectRatio,y?_.scale=g.current??s:delete _.scale,y!=="custom"&&u&&d&&delete _.height,o(_)}}),l.includes("widthHeight")&&(0,eb.jsx)(fVe,{panelId:e,units:a,value:{width:u,height:d},onChange:({width:y,height:_})=>{let w={...t};y=y==="auto"?null:y,_=_==="auto"?null:_,y?w.width=y:delete w.width,_?w.height=_:delete w.height,y&&_?delete w.aspectRatio:h.current&&(w.aspectRatio=h.current),!h.current&&!!y!=!!_?delete w.scale:w.scale=g.current??s,o(w)}}),l.includes("scale")&&v&&(0,eb.jsx)(dVe,{panelId:e,options:i,defaultValue:s,value:p,onChange:y=>{let _={...t};y?_.scale=y:delete _.scale,o(_)}})]})}var pVe=xpt;var s9=c(q(),1),nm=c(Z(),1),Cee=c(T(),1),mVe=[{label:(0,nm._x)("Thumbnail","Image size option for resolution control"),value:"thumbnail"},{label:(0,nm._x)("Medium","Image size option for resolution control"),value:"medium"},{label:(0,nm._x)("Large","Image size option for resolution control"),value:"large"},{label:(0,nm._x)("Full Size","Image size option for resolution control"),value:"full"}];function gVe({panelId:e,value:t,onChange:o,options:r=mVe,defaultValue:n=mVe[0].value,isShownByDefault:i=!0,resetAllFilter:s}){let a=t??n;return(0,Cee.jsx)(s9.__experimentalToolsPanelItem,{hasValue:()=>a!==n,label:(0,nm.__)("Resolution"),onDeselect:()=>o(n),isShownByDefault:i,panelId:e,resetAllFilter:s,children:(0,Cee.jsx)(s9.SelectControl,{label:(0,nm.__)("Resolution"),value:a,options:r,onChange:o,help:(0,nm.__)("Select the size of the source image.")})})}var e_=c(Z(),1),z0=c(q(),1),bVe=c(ee(),1);var Au=c(Z(),1),hVe={a:(0,Au.__)("The <a> element should be used for links that navigate to a different page or to a different section within the same page."),article:(0,Au.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,Au.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),button:(0,Au.__)("The <button> element should be used for interactive controls that perform an action on the current page, such as opening a modal or toggling content visibility."),div:(0,Au.__)("The <div> element should only be used if the block is a design element with no semantic meaning."),footer:(0,Au.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.)."),header:(0,Au.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,Au.__)("The <main> element should be used for the primary content of your document only."),nav:(0,Au.__)("The <nav> element should be used to identify groups of links that are intended to be used for website or page content navigation."),section:(0,Au.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element.")};var tI=c(T(),1);function yVe({tagName:e,onChange:t,clientId:o,options:r=[{label:(0,e_.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}]}){let n=!!o&&r.some(a=>a.value==="main"),i=(0,bVe.useSelect)(a=>{if(!n)return!1;let{getClientIdsWithDescendants:l,getBlockAttributes:u}=a(B);return l().some(d=>d===o?!1:u(d)?.tagName==="main")},[o,n]),s=r.map(a=>a.value==="main"&&i&&e!=="main"?{...a,disabled:!0,label:(0,e_.sprintf)((0,e_.__)("%s (Already in use)"),a.label)}:a);return(0,tI.jsxs)(z0.__experimentalVStack,{spacing:2,className:"block-editor-html-element-control",children:[(0,tI.jsx)(z0.SelectControl,{label:(0,e_.__)("HTML element"),options:s,value:e,onChange:t,help:hVe[e]}),e==="main"&&i&&(0,tI.jsx)(z0.Notice,{status:"warning",isDismissible:!1,children:(0,e_.__)("Multiple <main> elements detected. The duplicate may be in your content or template. This is not valid HTML and may cause accessibility issues. Please change this HTML element.")})]})}var im=c(q(),1);var j0=c(F(),1),a9=c(Z(),1);var pa=c(q(),1);var vVe=c(Dt(),1);var qa=c(T(),1),{Badge:Spt}=K(pa.privateApis);function _Ve({title:e,url:t,image:o,badges:r}){return(0,qa.jsxs)(pa.__experimentalHStack,{justify:"space-between",alignment:"top",children:[(0,qa.jsx)(pa.FlexItem,{className:"link-preview-button__content",children:(0,qa.jsxs)(pa.__experimentalHStack,{alignment:"top",children:[o&&(0,qa.jsx)(pa.FlexItem,{className:"link-preview-button__image-container",children:(0,qa.jsx)("img",{className:"link-preview-button__image",src:o,alt:""})}),(0,qa.jsxs)(pa.__experimentalVStack,{className:"link-preview-button__details",alignment:"topLeft",children:[(0,qa.jsx)(pa.__experimentalTruncate,{numberOfLines:1,className:"link-preview-button__title",children:(0,vVe.__unstableStripHTML)(e)}),t&&(0,qa.jsx)(pa.__experimentalTruncate,{numberOfLines:1,className:"link-preview-button__hint",children:t}),r&&r.length>0&&(0,qa.jsx)(pa.__experimentalHStack,{className:"link-preview-button__badges",alignment:"left",children:r.map(n=>(0,qa.jsx)(Spt,{intent:n.intent,children:n.label},`${n.label}|${n.intent}`))})]})]})}),(0,qa.jsx)(xt,{icon:Bn,className:"link-preview-button__icon"})]})}var Za=c(T(),1);function Eee({preview:e,onSelect:t,suggestionsQuery:o,label:r,help:n}){let[i,s]=(0,j0.useState)(!1),a=(0,j0.useId)(),l=`link-picker-title-${a}`,u=`link-picker-description-${a}`,d=(0,j0.useRef)(null),{baseControlProps:f,controlProps:p}=(0,im.useBaseControlProps)({help:n}),m=g=>{if(s(!1),g){let h={url:g.url,kind:g.kind,type:g.type,id:g.id,title:g.title};t(h)}};return(0,Za.jsxs)(im.BaseControl,{...f,children:[(0,Za.jsx)(im.BaseControl.VisualLabel,{children:r}),(0,Za.jsxs)(im.Button,{ref:d,onClick:()=>s(!i),"aria-haspopup":"dialog","aria-expanded":i,"aria-describedby":p["aria-describedby"],variant:"secondary",__next40pxDefaultSize:!0,className:"link-preview-button",children:[r&&(0,Za.jsxs)(ht,{children:[r,":"]}),(0,Za.jsx)(_Ve,{title:e.title||(0,a9.__)("Add link"),url:e.url,image:e.image,badges:e.badges})]}),i&&(0,Za.jsx)(im.Popover,{anchor:d.current,onClose:()=>s(!1),placement:"left-start",offset:36,shift:!0,children:(0,Za.jsxs)("div",{role:"dialog","aria-labelledby":l,"aria-describedby":u,children:[(0,Za.jsxs)(ht,{children:[(0,Za.jsx)("h2",{id:l,children:(0,a9.__)("Select a link")}),(0,Za.jsx)("p",{id:u,children:(0,a9.__)("Search for and add a link to the navigation item.")})]}),(0,Za.jsx)(vh,{value:null,onChange:m,suggestionsQuery:o,showInitialSuggestions:!0,forceIsEditingLink:!0,settings:[]})]})})]})}var af=c(F(),1),l9=c(ee(),1),wVe=c(Dt(),1);var H0=c(T(),1),Tee="wp-inner-block-slot",Cpt={type:"default",alignments:[]};function kVe({clientId:e}){let{innerContent:t,order:o,selectedClientIds:r}=(0,l9.useSelect)(l=>{let{getBlock:u,getBlockOrder:d,getSelectedBlockClientIds:f}=l(B);return{innerContent:u(e)?.innerContent,order:d(e),selectedClientIds:f()}},[e]),n=(0,af.useMemo)(()=>{let l=0;return(t??[]).map(u=>u===null?`<${Tee} data-slot-index="${l++}" style="display: contents"></${Tee}>`:u).join("")},[t]),i=(0,af.useRef)(),[s,a]=(0,af.useState)([]);return(0,af.useLayoutEffect)(()=>{let l=i.current;l.innerHTML=(0,wVe.safeHTML)(n),a(Array.from(l.querySelectorAll(Tee)).sort((u,d)=>Number(u.dataset.slotIndex)-Number(d.dataset.slotIndex)))},[n]),(0,H0.jsxs)(oO,{value:Cpt,children:[(0,H0.jsx)("div",{ref:i,className:"block-editor-inner-content",style:{display:"contents"}}),o.map((l,u)=>s[u]?(0,af.createPortal)((0,H0.jsx)(l9.AsyncModeProvider,{value:!r.includes(l),children:(0,H0.jsx)(aA,{rootClientId:e,clientId:l})}),s[u],l):null)]})}var{getDuotoneFilter:Ept}=K(Lo),Ree={};lte(Ree,{...FJ,ExperimentalBlockCanvas:mZ,BlockCanvasCover:dV,ExperimentalBlockEditorProvider:Vk,getDuotoneFilter:Ept,getRichTextValues:iVe,PrivateQuickInserter:w5,extractWords:j2,getNormalizedSearchTerms:y1,normalizeString:b1,PrivateListView:xR,ResizableBoxPopover:aVe,InspectorControlsLastItem:U4,useHasBlockToolbar:z3,cleanEmptyObject:Xe,getStyleForState:Ao,isDefaultBlockStyleState:Zn,setStyleForState:wn,usePrivateStyleOverride:Ga,BlockQuickNavigation:j4,LayoutStyle:bne,BlockManager:tF,BlockRemovalWarningModal:lVe,useLayoutClasses:F8,useLayoutStyles:ree,DimensionsTool:pVe,ResolutionTool:gVe,TabbedSidebar:g5,TextAlignmentControl:R4,usesContextKey:OX,useFlashEditableBlocks:JO,HTMLElementControl:yVe,useZoomOut:LT,globalStylesDataKey:Is,globalStylesLinksDataKey:c_,selectBlockPatternsKey:cm,requiresWrapperOnCopy:tK,PrivateRichText:UR,PrivateInserterLibrary:NQ,reusableBlocksSelectKey:yI,userPatternCategoriesSelectKey:pf,PrivateBlockPopover:zy,PrivatePublishDateTimePicker:WQ,useSpacingSizes:X6,useBlockDisplayTitle:ui,BlockStyleVariationOverridesWithConfig:oQ,setBackgroundStyleDefaults:w4,sectionRootClientIdKey:um,NoteIconSlotFill:b3,NoteIconToolbarSlotFill:A3,mediaEditKey:vI,getMediaSelectKey:_I,deviceTypeKey:el,isIsolatedEditorKey:dm,isNavigationOverlayContextKey:wI,isNavigationPostEditorKey:hte,mediaUploadOnSuccessKey:q0,mediaSideloadFromUrlKey:bte,openMediaEditorModalKey:yte,useBlockElement:Zt,useBlockElementRef:Nb,LinkPicker:Eee,useRemoteUrlData:C6,PrivateBlockContext:Rn,useListViewPanelState:q8,isHashLink:rb,isRelativePath:nb,InnerContent:kVe,useNativeUndo:lw,usesNativeUndo:Tie,isElementVisible:dW});return NVe(Tpt);})(); 227 /*! Bundled license information: 228 229 autosize/dist/autosize.js: 230 (*! 231 autosize 4.0.2 232 license: MIT 233 http://www.jacklmoore.com/autosize 234 *) 235 236 use-sync-external-store/cjs/use-sync-external-store-shim.production.js: 237 (** 238 * @license React 239 * use-sync-external-store-shim.production.js 240 * 241 * Copyright (c) Meta Platforms, Inc. and affiliates. 242 * 243 * This source code is licensed under the MIT license found in the 244 * LICENSE file in the root directory of this source tree. 245 *) 246 247 use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js: 248 (** 249 * @license React 250 * use-sync-external-store-shim/with-selector.production.js 251 * 252 * Copyright (c) Meta Platforms, Inc. and affiliates. 253 * 254 * This source code is licensed under the MIT license found in the 255 * LICENSE file in the root directory of this source tree. 256 *) 257 258 normalize-wheel/src/isEventSupported.js: 259 (** 260 * Checks if an event is supported in the current execution environment. 261 * 262 * NOTE: This will not work correctly for non-generic events such as `change`, 263 * `reset`, `load`, `error`, and `select`. 264 * 265 * Borrows from Modernizr. 266 * 267 * @param {string} eventNameSuffix Event name, e.g. "click". 268 * @param {?boolean} capture Check if the capture phase is supported. 269 * @return {boolean} True if the event is supported. 270 * @internal 271 * @license Modernizr 3.0.0pre (Custom Build) | MIT 272 *) 273 274 is-plain-object/dist/is-plain-object.mjs: 275 (*! 276 * is-plain-object <https://github.com/jonschlinkert/is-plain-object> 277 * 278 * Copyright (c) 2014-2017, Jon Schlinkert. 279 * Released under the MIT License. 280 *) 281 */ 282 (window.wp ||= {}).blockEditor = wp.blockEditor; 283 })();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Sat Sep 19 08:20:30 2026 | Cross-referenced by PHPXref |