- md5
- 8999d16612014079cc03967022762d3b
- sha1
- 101e78bc79ce9ac8da45df2be447b646be29f6ec
- sha256
- 8d2230c6ab5e699a22a877c9b5650a1e0f7b0eae1b7e7cb2177a4080aede2cbc
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
"use strict";var wp;(wp||={}).editor=(()=>{var xie=Object.create;var _1=Object.defineProperty;var Tie=Object.getOwnPropertyDescriptor;var Cie=Object.getOwnPropertyNames;var Pie=Object.getPrototypeOf,kie=Object.prototype.hasOwnProperty;var qn=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Oe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Zc=(e,t)=>{for(var r in t)_1(e,r,{get:t[r],enumerable:!0})},hN=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Cie(t))!kie.call(e,n)&&n!==r&&_1(e,n,{get:()=>t[n],enumerable:!(o=Tie(t,n))||o.enumerable});return e};var i=(e,t,r)=>(r=e!=null?xie(Pie(e)):{},hN(t||!e||!e.__esModule?_1(r,"default",{value:e,enumerable:!0}):r,e)),Eie=e=>hN(_1({},"__esModule",{value:!0}),e);var O=Oe((IAe,gN)=>{gN.exports=window.wp.data});var W=Oe((FAe,vN)=>{vN.exports=window.wp.coreData});var N=Oe((NAe,yN)=>{yN.exports=window.wp.element});var pe=Oe((BAe,bN)=>{bN.exports=window.wp.compose});var fo=Oe((DAe,SN)=>{SN.exports=window.wp.hooks});var $=Oe((LAe,_N)=>{_N.exports=window.wp.blockEditor});var Xe=Oe((HAe,EN)=>{EN.exports=window.wp.blocks});var mo=Oe((GAe,AN)=>{AN.exports=window.wp.date});var zr=Oe((WAe,RN)=>{RN.exports=window.wp.url});var Ws=Oe((YAe,ON)=>{ON.exports=window.wp.deprecated});var dt=Oe((qAe,IN)=>{IN.exports=window.wp.preferences});var ue=Oe((XAe,LN)=>{LN.exports=window.wp.primitives});var x=Oe((QAe,MN)=>{MN.exports=window.ReactJSXRuntime});var Mv=Oe((ZOe,VN)=>{VN.exports=window.wp.privateApis});var Wv=Oe((nIe,$N)=>{$N.exports=window.wp.a11y});var Yv=Oe((sIe,eB)=>{eB.exports=window.wp.apiFetch});var ct=Oe((iIe,tB)=>{tB.exports=window.wp.notices});var E=Oe((aIe,rB)=>{rB.exports=window.wp.i18n});var vt=Oe((pIe,uB)=>{uB.exports=window.wp.htmlEntities});var R=Oe((vIe,dB)=>{dB.exports=window.wp.components});var Li=Oe((qIe,OB)=>{OB.exports=window.wp.patterns});var Qv=Oe((t6e,DB)=>{DB.exports=window.wp.blob});var Hd=Oe((r6e,LB)=>{LB.exports=window.wp.mediaUtils});var Xn=Oe((n6e,HB)=>{HB.exports=window.React});var q5=Oe((_6e,ND)=>{ND.exports=window.ReactDOM});var O_=Oe((J6e,R_)=>{var sL={\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"},iL=Object.keys(sL).join("|"),Lde=new RegExp(iL,"g"),Mde=new RegExp(iL,"");function Vde(e){return sL[e]}var aL=function(e){return e.replace(Lde,Vde)},jde=function(e){return!!e.match(Mde)};R_.exports=aL;R_.exports.has=jde;R_.exports.remove=aL});var nI=Oe((SNe,jV)=>{jV.exports=window.wp.styleEngine});var aI=Oe((INe,qV)=>{"use strict";qV.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,n,s;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;for(n of t.entries())if(!e(n[1],r.get(n[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(t[n]!==r[n])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),o=s.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[n]))return!1;for(n=o;n--!==0;){var a=s[n];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r}});var rw=Oe((NNe,XV)=>{"use strict";var wme=function(t){return xme(t)&&!Tme(t)};function xme(e){return!!e&&typeof e=="object"}function Tme(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||kme(e)}var Cme=typeof Symbol=="function"&&Symbol.for,Pme=Cme?Symbol.for("react.element"):60103;function kme(e){return e.$$typeof===Pme}function Eme(e){return Array.isArray(e)?[]:{}}function Ey(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Tp(Eme(e),e,t):e}function Ame(e,t,r){return e.concat(t).map(function(o){return Ey(o,r)})}function Rme(e,t){if(!t.customMerge)return Tp;var r=t.customMerge(e);return typeof r=="function"?r:Tp}function Ome(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ZV(e){return Object.keys(e).concat(Ome(e))}function KV(e,t){try{return t in e}catch{return!1}}function Ime(e,t){return KV(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Fme(e,t,r){var o={};return r.isMergeableObject(e)&&ZV(e).forEach(function(n){o[n]=Ey(e[n],r)}),ZV(t).forEach(function(n){Ime(e,n)||(KV(e,n)&&r.isMergeableObject(t[n])?o[n]=Rme(n,r)(e[n],t[n],r):o[n]=Ey(t[n],r))}),o}function Tp(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ame,r.isMergeableObject=r.isMergeableObject||wme,r.cloneUnlessOtherwiseSpecified=Ey;var o=Array.isArray(t),n=Array.isArray(e),s=o===n;return s?o?r.arrayMerge(e,t,r):Fme(e,t,r):Ey(t,r)}Tp.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(o,n){return Tp(o,n,r)},{})};var Nme=Tp;XV.exports=Nme});var _I=Oe((LBe,V8)=>{V8.exports=window.wp.commands});var z8=Oe((MBe,j8)=>{j8.exports=window.wp.viewport});var yu=Oe((VBe,U8)=>{U8.exports=window.wp.plugins});var x7=Oe((QDe,w7)=>{w7.exports=window.wp.uploadMedia});var Es=Oe((aLe,D7)=>{D7.exports=window.wp.keyboardShortcuts});var yo=Oe((cLe,M7)=>{M7.exports=window.wp.keycodes});var pH=Oe((wWe,mH)=>{"use strict";mH.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,n,s;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),o=s.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[n]))return!1;for(n=o;n--!==0;){var a=s[n];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r}});var fh=Oe((VWe,NH)=>{NH.exports=window.wp.dom});var Pb=Oe((ZYe,_G)=>{_G.exports=window.wp.richText});var BW=Oe((cZe,NW)=>{NW.exports=window.wp.warning});var bK=Oe((VJe,yK)=>{"use strict";var Sxe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";yK.exports=Sxe});var xK=Oe((jJe,wK)=>{"use strict";var _xe=bK();function SK(){}function _K(){}_K.resetWarningCache=SK;wK.exports=function(){function e(o,n,s,a,l,c){if(c!==_xe){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 r={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:_K,resetWarningCache:SK};return r.PropTypes=r,r}});var CK=Oe((HJe,TK)=>{TK.exports=xK()();var zJe,UJe});var kK=Oe((aP,PK)=>{(function(e,t){if(typeof define=="function"&&define.amd)define(["module","exports"],t);else if(typeof aP<"u")t(PK,aP);else{var r={exports:{}};t(r,r.exports),e.autosize=r.exports}})(aP,function(e,t){"use strict";var r=typeof Map=="function"?new Map:(function(){var c=[],u=[];return{has:function(f){return c.indexOf(f)>-1},get:function(f){return u[c.indexOf(f)]},set:function(f,m){c.indexOf(f)===-1&&(c.push(f),u.push(m))},delete:function(f){var m=c.indexOf(f);m>-1&&(c.splice(m,1),u.splice(m,1))}}})(),o=function(u){return new Event(u,{bubbles:!0})};try{new Event("test")}catch{o=function(d){var f=document.createEvent("Event");return f.initEvent(d,!0,!1),f}}function n(c){if(!c||!c.nodeName||c.nodeName!=="TEXTAREA"||r.has(c))return;var u=null,d=null,f=null;function m(){var w=window.getComputedStyle(c,null);w.resize==="vertical"?c.style.resize="none":w.resize==="both"&&(c.style.resize="horizontal"),w.boxSizing==="content-box"?u=-(parseFloat(w.paddingTop)+parseFloat(w.paddingBottom)):u=parseFloat(w.borderTopWidth)+parseFloat(w.borderBottomWidth),isNaN(u)&&(u=0),v()}function h(w){{var T=c.style.width;c.style.width="0px",c.offsetWidth,c.style.width=T}c.style.overflowY=w}function g(w){for(var T=[];w&&w.parentNode&&w.parentNode instanceof Element;)w.parentNode.scrollTop&&T.push({node:w.parentNode,scrollTop:w.parentNode.scrollTop}),w=w.parentNode;return T}function y(){if(c.scrollHeight!==0){var w=g(c),T=document.documentElement&&document.documentElement.scrollTop;c.style.height="",c.style.height=c.scrollHeight+u+"px",d=c.clientWidth,w.forEach(function(C){C.node.scrollTop=C.scrollTop}),T&&(document.documentElement.scrollTop=T)}}function v(){y();var w=Math.round(parseFloat(c.style.height)),T=window.getComputedStyle(c,null),C=T.boxSizing==="content-box"?Math.round(parseFloat(T.height)):c.offsetHeight;if(C<w?T.overflowY==="hidden"&&(h("scroll"),y(),C=T.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(c,null).height)):c.offsetHeight):T.overflowY!=="hidden"&&(h("hidden"),y(),C=T.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(c,null).height)):c.offsetHeight),f!==C){f=C;var A=o("autosize:resized");try{c.dispatchEvent(A)}catch{}}}var b=function(){c.clientWidth!==d&&v()},S=function(w){window.removeEventListener("resize",b,!1),c.removeEventListener("input",v,!1),c.removeEventListener("keyup",v,!1),c.removeEventListener("autosize:destroy",S,!1),c.removeEventListener("autosize:update",v,!1),Object.keys(w).forEach(function(T){c.style[T]=w[T]}),r.delete(c)}.bind(c,{height:c.style.height,resize:c.style.resize,overflowY:c.style.overflowY,overflowX:c.style.overflowX,wordWrap:c.style.wordWrap});c.addEventListener("autosize:destroy",S,!1),"onpropertychange"in c&&"oninput"in c&&c.addEventListener("keyup",v,!1),window.addEventListener("resize",b,!1),c.addEventListener("input",v,!1),c.addEventListener("autosize:update",v,!1),c.style.overflowX="hidden",c.style.wordWrap="break-word",r.set(c,{destroy:S,update:v}),m()}function s(c){var u=r.get(c);u&&u.destroy()}function a(c){var u=r.get(c);u&&u.update()}var l=null;typeof window>"u"||typeof window.getComputedStyle!="function"?(l=function(u){return u},l.destroy=function(c){return c},l.update=function(c){return c}):(l=function(u,d){return u&&Array.prototype.forEach.call(u.length?u:[u],function(f){return n(f,d)}),u},l.destroy=function(c){return c&&Array.prototype.forEach.call(c.length?c:[c],s),c},l.update=function(c){return c&&Array.prototype.forEach.call(c.length?c:[c],a),c}),t.default=l,e.exports=t.default})});var AK=Oe((GJe,EK)=>{var wxe=function(e,t,r){return r=window.getComputedStyle,(r?r(e):e.currentStyle)[t.replace(/-(\w)/gi,function(o,n){return n.toUpperCase()})]};EK.exports=wxe});var OK=Oe((WJe,RK)=>{var U3=AK();function xxe(e){var t=U3(e,"line-height"),r=parseFloat(t,10);if(t===r+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=U3(e,"line-height"),r=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(t.indexOf("pt")!==-1?(r*=4,r/=3):t.indexOf("mm")!==-1?(r*=96,r/=25.4):t.indexOf("cm")!==-1?(r*=96,r/=2.54):t.indexOf("in")!==-1?r*=96:t.indexOf("pc")!==-1&&(r*=16),r=Math.round(r),t==="normal"){var n=e.nodeName,s=document.createElement(n);s.innerHTML=" ",n.toUpperCase()==="TEXTAREA"&&s.setAttribute("rows","1");var a=U3(e,"font-size");s.style.fontSize=a,s.style.padding="0px",s.style.border="0px";var l=document.body;l.appendChild(s);var c=s.offsetHeight;r=c,l.removeChild(s)}return r}RK.exports=xxe});var FK=Oe(Sc=>{"use strict";var Txe=Sc&&Sc.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])};return function(t,r){e(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})(),H3=Sc&&Sc.__assign||Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Cxe=Sc&&Sc.__rest||function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&(r[o[n]]=e[o[n]]);return r};Sc.__esModule=!0;var cP=Xn(),r0=CK(),lP=kK(),Pxe=OK(),kxe=Pxe,IK="autosize:resized",Exe=(function(e){Txe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.state={lineHeight:null},r.textarea=null,r.onResize=function(o){r.props.onResize&&r.props.onResize(o)},r.updateLineHeight=function(){r.textarea&&r.setState({lineHeight:kxe(r.textarea)})},r.onChange=function(o){var n=r.props.onChange;r.currentValue=o.currentTarget.value,n&&n(o)},r}return t.prototype.componentDidMount=function(){var r=this,o=this.props,n=o.maxRows,s=o.async;typeof n=="number"&&this.updateLineHeight(),typeof n=="number"||s?setTimeout(function(){return r.textarea&&lP(r.textarea)}):this.textarea&&lP(this.textarea),this.textarea&&this.textarea.addEventListener(IK,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(IK,this.onResize),lP.destroy(this.textarea))},t.prototype.render=function(){var r=this,o=this,n=o.props,s=n.onResize,a=n.maxRows,l=n.onChange,c=n.style,u=n.innerRef,d=n.children,f=Cxe(n,["onResize","maxRows","onChange","style","innerRef","children"]),m=o.state.lineHeight,h=a&&m?m*a:null;return cP.createElement("textarea",H3({},f,{onChange:this.onChange,style:h?H3({},c,{maxHeight:h}):c,ref:function(g){r.textarea=g,typeof r.props.innerRef=="function"?r.props.innerRef(g):r.props.innerRef&&(r.props.innerRef.current=g)}}),d)},t.prototype.componentDidUpdate=function(){this.textarea&&lP.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:r0.number,maxRows:r0.number,onResize:r0.func,innerRef:r0.any,async:r0.bool},t})(cP.Component);Sc.TextareaAutosize=cP.forwardRef(function(e,t){return cP.createElement(Exe,H3({},e,{innerRef:t}))})});var G3=Oe((qJe,NK)=>{"use strict";var Axe=FK();NK.exports=Axe.TextareaAutosize});var l0=Oe((F$e,fX)=>{fX.exports=window.wp.wordcount});var BX=Oe((K$e,NX)=>{NX.exports=window.wp.serverSideRender});var B4=Oe(N4=>{"use strict";Object.defineProperty(N4,"__esModule",{value:!0});N4.default=_$;function _$(){}_$.prototype={diff:function(t,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=o.callback;typeof o=="function"&&(n=o,o={}),this.options=o;var s=this;function a(y){return n?(setTimeout(function(){n(void 0,y)},0),!0):y}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var l=r.length,c=t.length,u=1,d=l+c,f=[{newPos:-1,components:[]}],m=this.extractCommon(f[0],r,t,0);if(f[0].newPos+1>=l&&m+1>=c)return a([{value:this.join(r),count:r.length}]);function h(){for(var y=-1*u;y<=u;y+=2){var v=void 0,b=f[y-1],S=f[y+1],w=(S?S.newPos:0)-y;b&&(f[y-1]=void 0);var T=b&&b.newPos+1<l,C=S&&0<=w&&w<c;if(!T&&!C){f[y]=void 0;continue}if(!T||C&&b.newPos<S.newPos?(v=oPe(S),s.pushComponent(v.components,void 0,!0)):(v=b,v.newPos++,s.pushComponent(v.components,!0,void 0)),w=s.extractCommon(v,r,t,y),v.newPos+1>=l&&w+1>=c)return a(rPe(s,v.components,r,t,s.useLongestToken));f[y]=v}u++}if(n)(function y(){setTimeout(function(){if(u>d)return n();h()||y()},0)})();else for(;u<=d;){var g=h();if(g)return g}},pushComponent:function(t,r,o){var n=t[t.length-1];n&&n.added===r&&n.removed===o?t[t.length-1]={count:n.count+1,added:r,removed:o}:t.push({count:1,added:r,removed:o})},extractCommon:function(t,r,o,n){for(var s=r.length,a=o.length,l=t.newPos,c=l-n,u=0;l+1<s&&c+1<a&&this.equals(r[l+1],o[c+1]);)l++,c++,u++;return u&&t.components.push({count:u}),t.newPos=l,c},equals:function(t,r){return this.options.comparator?this.options.comparator(t,r):t===r||this.options.ignoreCase&&t.toLowerCase()===r.toLowerCase()},removeEmpty:function(t){for(var r=[],o=0;o<t.length;o++)t[o]&&r.push(t[o]);return r},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function rPe(e,t,r,o,n){for(var s=0,a=t.length,l=0,c=0;s<a;s++){var u=t[s];if(u.removed){if(u.value=e.join(o.slice(c,c+u.count)),c+=u.count,s&&t[s-1].added){var f=t[s-1];t[s-1]=t[s],t[s]=f}}else{if(!u.added&&n){var d=r.slice(l,l+u.count);d=d.map(function(h,g){var y=o[c+g];return y.length>h.length?y:h}),u.value=e.join(d)}else u.value=e.join(r.slice(l,l+u.count));l+=u.count,u.added||(c+=u.count)}}var m=t[a-1];return a>1&&typeof m.value=="string"&&(m.added||m.removed)&&e.equals("",m.value)&&(t[a-2].value+=m.value,t.pop()),t}function oPe(e){return{newPos:e.newPos,components:e.components.slice(0)}}});var D4=Oe(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});R0.diffArrays=iPe;R0.arrayDiff=void 0;var nPe=sPe(B4());function sPe(e){return e&&e.__esModule?e:{default:e}}var A0=new nPe.default;R0.arrayDiff=A0;A0.tokenize=function(e){return e.slice()};A0.join=A0.removeEmpty=function(e){return e};function iPe(e,t,r){return A0.diff(e,t,r)}});var x$=Oe(M4=>{"use strict";Object.defineProperty(M4,"__esModule",{value:!0});M4.generateOptions=aPe;function aPe(e,t){if(typeof e=="function")t.callback=e;else if(e)for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}});var P$=Oe(Cg=>{"use strict";Object.defineProperty(Cg,"__esModule",{value:!0});Cg.diffWords=dPe;Cg.diffWordsWithSpace=fPe;Cg.wordDiff=void 0;var lPe=uPe(B4()),cPe=x$();function uPe(e){return e&&e.__esModule?e:{default:e}}var T$=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,C$=/\S/,O0=new lPe.default;Cg.wordDiff=O0;O0.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!C$.test(e)&&!C$.test(t)};O0.tokenize=function(e){for(var t=e.split(/(\s+|[()[\]{}'"]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&T$.test(t[r])&&T$.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};function dPe(e,t,r){return r=(0,cPe.generateOptions)(r,{ignoreWhitespace:!0}),O0.diff(e,t,r)}function fPe(e,t,r){return O0.diff(e,t,r)}});var E$=Oe((Sst,k$)=>{k$.exports=window.wp.blockSerializationDefaultParser});var RAe={};Zc(RAe,{AlignmentToolbar:()=>Vxe,Autocomplete:()=>Mxe,AutosaveMonitor:()=>Ix,BlockAlignmentToolbar:()=>jxe,BlockControls:()=>zxe,BlockEdit:()=>Uxe,BlockEditorKeyboardShortcuts:()=>Hxe,BlockFormatControls:()=>Gxe,BlockIcon:()=>Wxe,BlockInspector:()=>Yxe,BlockList:()=>qxe,BlockMover:()=>Zxe,BlockNavigationDropdown:()=>Kxe,BlockSelectionClearer:()=>Xxe,BlockSettingsMenu:()=>Qxe,BlockTitle:()=>Jxe,BlockToolbar:()=>$xe,CharacterCount:()=>dg,ColorPalette:()=>eTe,ContrastChecker:()=>tTe,CopyHandler:()=>rTe,DefaultBlockAppender:()=>oTe,DocumentBar:()=>Zx,DocumentOutline:()=>bh,DocumentOutlineCheck:()=>CG,EditorHistoryRedo:()=>eT,EditorHistoryUndo:()=>oT,EditorKeyboardShortcuts:()=>vf,EditorKeyboardShortcutsRegister:()=>IG,EditorNotices:()=>HG,EditorProvider:()=>f9,EditorSnackbars:()=>qG,EntitiesSavedStates:()=>dT,ErrorBoundary:()=>iW,FontSizePicker:()=>nTe,InnerBlocks:()=>iTe,Inserter:()=>sTe,InspectorAdvancedControls:()=>aTe,InspectorControls:()=>lTe,LocalAutosaveMonitor:()=>uW,MediaPlaceholder:()=>pTe,MediaUpload:()=>hTe,MediaUploadCheck:()=>gTe,MultiSelectScrollIntoView:()=>vTe,NavigableToolbar:()=>yTe,ObserveTyping:()=>bTe,PageAttributesCheck:()=>wh,PageAttributesOrder:()=>gW,PageAttributesPanel:()=>vT,PageAttributesParent:()=>kW,PageTemplate:()=>_T,PanelColorSettings:()=>cTe,PlainText:()=>uTe,PluginBlockSettingsMenuItem:()=>YW,PluginDocumentSettingPanel:()=>PT,PluginMoreMenuItem:()=>XW,PluginPostPublishPanel:()=>ET,PluginPostStatusInfo:()=>RT,PluginPrePublishPanel:()=>IT,PluginPreviewMenuItem:()=>sY,PluginSidebar:()=>Kf,PluginSidebarMoreMenuItem:()=>lY,PostAuthor:()=>VT,PostAuthorCheck:()=>jT,PostAuthorPanel:()=>HT,PostComments:()=>qT,PostDiscussionPanel:()=>$T,PostExcerpt:()=>Bb,PostExcerptCheck:()=>$f,PostExcerptPanel:()=>fq,PostFeaturedImage:()=>Mb,PostFeaturedImageCheck:()=>gc,PostFeaturedImagePanel:()=>cC,PostFormat:()=>jb,PostFormatCheck:()=>Mh,PostLastRevision:()=>fC,PostLastRevisionCheck:()=>rm,PostLastRevisionPanel:()=>Iq,PostLockedModal:()=>Dq,PostPendingStatus:()=>jq,PostPendingStatusCheck:()=>pC,PostPingbacks:()=>QT,PostPreviewButton:()=>Ju,PostPublishButton:()=>Hh,PostPublishButtonLabel:()=>vC,PostPublishPanel:()=>VC,PostSavedState:()=>XC,PostSchedule:()=>Yh,PostScheduleCheck:()=>QC,PostScheduleLabel:()=>qh,PostSchedulePanel:()=>eP,PostSticky:()=>UC,PostStickyCheck:()=>jC,PostSwitchToDraftButton:()=>uK,PostSyncStatus:()=>oP,PostTaxonomies:()=>tg,PostTaxonomiesCheck:()=>nP,PostTaxonomiesFlatTermSelector:()=>R3,PostTaxonomiesHierarchicalTermSelector:()=>F3,PostTaxonomiesPanel:()=>iP,PostTemplatePanel:()=>DT,PostTextEditor:()=>o0,PostTitle:()=>yP,PostTitleRaw:()=>SP,PostTrash:()=>xP,PostTrashCheck:()=>_P,PostTypeSupportCheck:()=>er,PostURL:()=>a0,PostURLCheck:()=>PP,PostURLLabel:()=>aX,PostURLPanel:()=>RP,PostVisibility:()=>Wb,PostVisibilityCheck:()=>dX,PostVisibilityLabel:()=>_C,RichText:()=>VX,RichTextShortcut:()=>dTe,RichTextToolbarButton:()=>fTe,ServerSideRender:()=>LX.default,SkipToSelectedBlock:()=>STe,TableOfContents:()=>EX,TextEditorGlobalKeyboardShortcuts:()=>DTe,ThemeSupportCheck:()=>iC,TimeToRead:()=>ug,URLInput:()=>_Te,URLInputButton:()=>wTe,URLPopover:()=>xTe,UnsavedChangesWarning:()=>FX,VisualEditorGlobalKeyboardShortcuts:()=>BTe,Warning:()=>TTe,WordCount:()=>cg,WritingFlow:()=>CTe,__unstableRichTextInputEvent:()=>mTe,cleanForSlug:()=>NV,createCustomColorsHOC:()=>PTe,getColorClassName:()=>kTe,getColorObjectByAttributeValues:()=>ETe,getColorObjectByColorValue:()=>ATe,getFontSize:()=>RTe,getFontSizeClass:()=>OTe,getTemplatePartIcon:()=>Xc,mediaUpload:()=>$_,privateApis:()=>bie,registerEntityAction:()=>PAe,registerEntityField:()=>EAe,store:()=>_,storeConfig:()=>_y,transformStyles:()=>Sie.transformStyles,unregisterEntityAction:()=>kAe,unregisterEntityField:()=>AAe,useEntitiesSavedStatesIsDirty:()=>uT,usePostScheduleLabel:()=>Zh,usePostURLLabel:()=>K3,usePostVisibilityLabel:()=>_3,userAutocompleter:()=>Rx,withColorContext:()=>ITe,withColors:()=>FTe,withFontSizes:()=>NTe});var wH=i(O(),1),xH=i(W(),1),TH=i(N(),1),CH=i(pe(),1),PH=i(fo(),1);var Ax=i(O(),1);var PN=i(O(),1);var wN=i($(),1),xN={...wN.SETTINGS_DEFAULTS,richEditingEnabled:!0,codeEditingEnabled:!0,fontLibraryEnabled:!0,enableCustomFields:void 0,defaultRenderingMode:"post-only"};var TN=i(O(),1);function Aie(e={},t){return t.type==="SET_IS_READY"?{...e,[t.kind]:{...e[t.kind],[t.name]:!0}}:e}function Rie(e={},t){switch(t.type){case"REGISTER_ENTITY_ACTION":return{...e,[t.kind]:{...e[t.kind],[t.name]:[...(e[t.kind]?.[t.name]??[]).filter(r=>r.id!==t.config.id),t.config]}};case"UNREGISTER_ENTITY_ACTION":return{...e,[t.kind]:{...e[t.kind],[t.name]:(e[t.kind]?.[t.name]??[]).filter(r=>r.id!==t.actionId)}}}return e}function Oie(e={},t){switch(t.type){case"REGISTER_ENTITY_FIELD":return{...e,[t.kind]:{...e[t.kind],[t.name]:[...(e[t.kind]?.[t.name]??[]).filter(r=>r.id!==t.config.id),t.config]}};case"UNREGISTER_ENTITY_FIELD":return{...e,[t.kind]:{...e[t.kind],[t.name]:(e[t.kind]?.[t.name]??[]).filter(r=>r.id!==t.fieldId)}}}return e}var CN=(0,TN.combineReducers)({actions:Rie,fields:Oie,isReady:Aie});function w1(e){return e&&typeof e=="object"&&"raw"in e?e.raw:e}function Iie(e=null,t){return t.type==="SET_EDITED_POST"?t.postId:e}function Fie(e=null,t){return t.type==="SET_CURRENT_TEMPLATE_ID"?t.id:e}function Nie(e=null,t){return t.type==="SET_EDITED_POST"?t.postType:e}function Bie(e={isValid:!0},t){return t.type==="SET_TEMPLATE_VALIDITY"?{...e,isValid:t.isValid}:e}function Die(e={},t){switch(t.type){case"REQUEST_POST_UPDATE_START":case"REQUEST_POST_UPDATE_FINISH":return{pending:t.type==="REQUEST_POST_UPDATE_START",options:t.options||{}}}return e}function Lie(e={},t){switch(t.type){case"REQUEST_POST_DELETE_START":case"REQUEST_POST_DELETE_FINISH":return{pending:t.type==="REQUEST_POST_DELETE_START"}}return e}function Mie(e={isLocked:!1},t){return t.type==="UPDATE_POST_LOCK"?t.lock:e}function Vie(e={},t){switch(t.type){case"LOCK_POST_SAVING":return{...e,[t.lockName]:!0};case"UNLOCK_POST_SAVING":{let{[t.lockName]:r,...o}=e;return o}}return e}function jie(e={},t){switch(t.type){case"LOCK_POST_AUTOSAVING":return{...e,[t.lockName]:!0};case"UNLOCK_POST_AUTOSAVING":{let{[t.lockName]:r,...o}=e;return o}}return e}function zie(e=xN,t){return t.type==="UPDATE_EDITOR_SETTINGS"?{...e,...t.settings}:e}function Uie(e="post-only",t){return t.type==="SET_RENDERING_MODE"?t.mode:e}function Hie(e="Desktop",t){return t.type==="SET_DEVICE_TYPE"?t.deviceType:e}function Gie(e=[],t){switch(t.type){case"REMOVE_PANEL":if(!e.includes(t.panelName))return[...e,t.panelName]}return e}function Wie(e=!1,t){switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return t.isOpen?!1:e;case"SET_IS_INSERTER_OPENED":return t.value}return e}function Yie(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return t.value?!1:e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen}return e}function qie(e={current:null}){return e}function Zie(e={current:null}){return e}function Kie(e=!1,t){switch(t.type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e}function Xie(e="/",t){switch(t.type){case"SET_STYLES_PATH":return t.path;case"RESET_STYLES_NAVIGATION":return"/"}return e}function Qie(e=!1,t){switch(t.type){case"SET_SHOW_STYLEBOOK":return t.show;case"RESET_STYLES_NAVIGATION":return!1}return e}function Jie(e=0,t){return t.type==="SET_CANVAS_MIN_HEIGHT"?t.minHeight:e}function $ie(e=null,t){return t.type==="SET_CURRENT_REVISION_ID"?t.revisionId:e}function eae(e={},t){return t.type==="SELECT_NOTE"?{noteId:t.noteId,options:t.options}:e}var kN=(0,PN.combineReducers)({postId:Iie,postType:Nie,templateId:Fie,saving:Die,deleting:Lie,postLock:Mie,template:Bie,postSavingLock:Vie,editorSettings:zie,postAutosavingLock:jie,renderingMode:Uie,deviceType:Hie,removedPanels:Gie,blockInserterPanel:Wie,inserterSidebarToggleRef:Zie,listViewPanel:Yie,listViewToggleRef:qie,publishSidebarActive:Kie,stylesPath:Xie,showStylebook:Qie,canvasMinHeight:Jie,revisionId:$ie,selectedNote:eae,dataviews:CN});var r5={};Zc(r5,{__experimentalGetDefaultTemplatePartAreas:()=>Yle,__experimentalGetDefaultTemplateType:()=>qle,__experimentalGetDefaultTemplateTypes:()=>Wle,__experimentalGetTemplateInfo:()=>Zle,__unstableIsEditorReady:()=>jae,canInsertBlockType:()=>zle,canUserUseUnfilteredHTML:()=>Iae,didPostSaveRequestFail:()=>bae,didPostSaveRequestSucceed:()=>yae,getActivePostLock:()=>Oae,getAdjacentBlockClientId:()=>fle,getAutosaveAttribute:()=>YN,getBlock:()=>Qae,getBlockAttributes:()=>Xae,getBlockCount:()=>ole,getBlockHierarchyRootClientId:()=>dle,getBlockIndex:()=>Ple,getBlockInsertionPoint:()=>Dle,getBlockListSettings:()=>Gle,getBlockMode:()=>Fle,getBlockName:()=>Zae,getBlockOrder:()=>Cle,getBlockRootClientId:()=>ule,getBlockSelectionEnd:()=>sle,getBlockSelectionStart:()=>nle,getBlocks:()=>Jae,getBlocksByClientId:()=>rle,getClientIdsOfDescendants:()=>$ae,getClientIdsWithDescendants:()=>ele,getCurrentPost:()=>po,getCurrentPostAttribute:()=>Vv,getCurrentPostId:()=>Zs,getCurrentPostLastRevisionId:()=>aae,getCurrentPostRevisionsCount:()=>iae,getCurrentPostType:()=>Ts,getCurrentTemplateId:()=>sae,getDeviceType:()=>Uae,getEditedPostAttribute:()=>Qt,getEditedPostContent:()=>Hv,getEditedPostPreviewLink:()=>wae,getEditedPostSlug:()=>Pae,getEditedPostVisibility:()=>cae,getEditorBlocks:()=>Nae,getEditorMode:()=>Wae,getEditorSelection:()=>Vae,getEditorSelectionEnd:()=>Mae,getEditorSelectionStart:()=>Lae,getEditorSettings:()=>zae,getFirstMultiSelectedBlockClientId:()=>yle,getGlobalBlockCount:()=>tle,getInserterItems:()=>Ule,getLastMultiSelectedBlockClientId:()=>ble,getMultiSelectedBlockClientIds:()=>gle,getMultiSelectedBlocks:()=>vle,getMultiSelectedBlocksEndClientId:()=>Tle,getMultiSelectedBlocksStartClientId:()=>xle,getNextBlockClientId:()=>ple,getPermalink:()=>Cae,getPermalinkParts:()=>XN,getPostEdits:()=>Uv,getPostLockUser:()=>Rae,getPostTypeLabel:()=>Kle,getPreviousBlockClientId:()=>mle,getRenderingMode:()=>ZS,getSelectedBlock:()=>cle,getSelectedBlockClientId:()=>lle,getSelectedBlockCount:()=>ile,getSelectedBlocksInitialCaretPosition:()=>hle,getStateBeforeOptimisticTransaction:()=>Yae,getSuggestedPostFormat:()=>xae,getTemplate:()=>Vle,getTemplateLock:()=>jle,hasChangedContent:()=>WN,hasEditorRedo:()=>rae,hasEditorUndo:()=>tae,hasInserterItems:()=>Hle,hasMultiSelection:()=>Rle,hasNonPostEntityChanges:()=>oae,hasSelectedBlock:()=>ale,hasSelectedInnerBlock:()=>Ele,inSomeHistory:()=>qae,isAncestorMultiSelected:()=>wle,isAutosavingPost:()=>Sae,isBlockInsertionPointVisible:()=>Lle,isBlockMultiSelected:()=>_le,isBlockSelected:()=>kle,isBlockValid:()=>Kae,isBlockWithinSelection:()=>Ale,isCaretWithinFormattedText:()=>Ble,isCleanNewPost:()=>nae,isCollaborationEnabledForCurrentPost:()=>Qle,isCurrentPostPending:()=>uae,isCurrentPostPublished:()=>t5,isCurrentPostScheduled:()=>dae,isDeletingPost:()=>gae,isEditedPostAutosaveable:()=>mae,isEditedPostBeingScheduled:()=>pae,isEditedPostDateFloating:()=>hae,isEditedPostDirty:()=>YS,isEditedPostEmpty:()=>ZN,isEditedPostNew:()=>GN,isEditedPostPublishable:()=>fae,isEditedPostSaveable:()=>qN,isEditorPanelEnabled:()=>Bae,isEditorPanelOpened:()=>Dae,isEditorPanelRemoved:()=>JN,isFirstMultiSelectedBlock:()=>Sle,isInserterOpened:()=>Gae,isListViewOpened:()=>Hae,isMultiSelecting:()=>Ole,isPermalinkEditable:()=>KN,isPostAutosavingLocked:()=>QN,isPostLockTakeover:()=>Aae,isPostLocked:()=>kae,isPostSavingLocked:()=>Eae,isPreviewingPost:()=>_ae,isPublishSidebarEnabled:()=>Fae,isPublishSidebarOpened:()=>Xle,isPublishingPost:()=>Tae,isSavingNonPostEntityChanges:()=>vae,isSavingPost:()=>Wm,isSelectionEnabled:()=>Ile,isTyping:()=>Nle,isValidTemplate:()=>Mle});var Qc=i(Xe(),1),Gm=i(mo(),1),jv=i(zr(),1),lt=i(O(),1),Sa=i(Ws(),1),HN=i(N(),1),qS=i($(),1),qt=i(W(),1),Gv=i(dt(),1);var FN=new Set(["meta"]),NN="core/editor",QE=/%(?:postname|pagename)%/,JE=60*1e3,BN=["title","excerpt","content"];var _t="wp_template",Ur="wp_template_part",Ys="wp_block",Dd="wp_navigation",dr="attachment",x1={custom:"custom",theme:"theme",plugin:"plugin"},$E=["wp_template","wp_template_part"],DN=[...$E,"wp_block","wp_navigation"],Kc=[_t,Ur,Ys,Dd];var T1=i(N(),1),Oo=(0,T1.forwardRef)(({icon:e,size:t=24,...r},o)=>(0,T1.cloneElement)(e,{width:t,height:t,...r,ref:o}));var C1=i(ue(),1),eA=i(x(),1),tA=(0,eA.jsx)(C1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,eA.jsx)(C1.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"})});var P1=i(ue(),1),rA=i(x(),1),oA=(0,rA.jsx)(P1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,rA.jsx)(P1.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})});var k1=i(ue(),1),nA=i(x(),1),sA=(0,nA.jsx)(k1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,nA.jsx)(k1.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 E1=i(ue(),1),iA=i(x(),1),aA=(0,iA.jsx)(E1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,iA.jsx)(E1.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.53 4.47a.75.75 0 1 0-1.06 1.06l8 8a.75.75 0 1 0 1.06-1.06l-8-8Zm5 1a.75.75 0 1 0-1.06 1.06l2 2a.75.75 0 1 0 1.06-1.06l-2-2Zm-11.06 10a.75.75 0 0 1 1.06 0l2 2a.75.75 0 1 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06Zm.06-5a.75.75 0 0 0-1.06 1.06l8 8a.75.75 0 1 0 1.06-1.06l-8-8Zm-.06-3a.75.75 0 0 1 1.06 0l10 10a.75.75 0 1 1-1.06 1.06l-10-10a.75.75 0 0 1 0-1.06Zm3.06-2a.75.75 0 0 0-1.06 1.06l10 10a.75.75 0 1 0 1.06-1.06l-10-10Z"})});var A1=i(ue(),1),lA=i(x(),1),bl=(0,lA.jsx)(A1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,lA.jsx)(A1.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})});var R1=i(ue(),1),cA=i(x(),1),uA=(0,cA.jsx)(R1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,cA.jsx)(R1.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 O1=i(ue(),1),dA=i(x(),1),xs=(0,dA.jsx)(O1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,dA.jsx)(O1.Path,{d:"M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z"})});var I1=i(ue(),1),fA=i(x(),1),hv=(0,fA.jsx)(I1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,fA.jsx)(I1.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});var F1=i(ue(),1),mA=i(x(),1),pA=(0,mA.jsx)(F1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,mA.jsx)(F1.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});var N1=i(ue(),1),hA=i(x(),1),Wt=(0,hA.jsx)(N1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,hA.jsx)(N1.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})});var B1=i(ue(),1),gA=i(x(),1),vA=(0,gA.jsx)(B1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,gA.jsx)(B1.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})});var D1=i(ue(),1),yA=i(x(),1),Yt=(0,yA.jsx)(D1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,yA.jsx)(D1.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})});var L1=i(ue(),1),bA=i(x(),1),gv=(0,bA.jsx)(L1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,bA.jsx)(L1.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});var M1=i(ue(),1),SA=i(x(),1),Zn=(0,SA.jsx)(M1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,SA.jsx)(M1.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})});var V1=i(ue(),1),_A=i(x(),1),wA=(0,_A.jsx)(V1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_A.jsx)(V1.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})});var j1=i(ue(),1),xA=i(x(),1),TA=(0,xA.jsx)(j1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xA.jsx)(j1.Path,{d:"M17.3 10.1C17.3 7.60001 15.2 5.70001 12.5 5.70001C10.3 5.70001 8.4 7.10001 7.9 9.00001H7.7C5.7 9.00001 4 10.7 4 12.8C4 14.9 5.7 16.6 7.7 16.6H9.5V15.2H7.7C6.5 15.2 5.5 14.1 5.5 12.9C5.5 11.7 6.5 10.5 7.7 10.5H9L9.3 9.40001C9.7 8.10001 11 7.20001 12.5 7.20001C14.3 7.20001 15.8 8.50001 15.8 10.1V11.4L17.1 11.6C17.9 11.7 18.5 12.5 18.5 13.4C18.5 14.4 17.7 15.2 16.8 15.2H14.5V16.6H16.7C18.5 16.6 19.9 15.1 19.9 13.3C20 11.7 18.8 10.4 17.3 10.1Z M14.1245 14.2426L15.1852 13.182L12.0032 10L8.82007 13.1831L9.88072 14.2438L11.25 12.8745V18H12.75V12.8681L14.1245 14.2426Z"})});var z1=i(ue(),1),CA=i(x(),1),PA=(0,CA.jsx)(z1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,CA.jsx)(z1.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"})});var U1=i(ue(),1),kA=i(x(),1),EA=(0,kA.jsx)(U1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,kA.jsx)(U1.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})});var H1=i(ue(),1),AA=i(x(),1),RA=(0,AA.jsx)(H1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,AA.jsx)(H1.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-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})});var G1=i(ue(),1),OA=i(x(),1),vv=(0,OA.jsx)(G1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,OA.jsx)(G1.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})});var W1=i(ue(),1),IA=i(x(),1),FA=(0,IA.jsx)(W1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,IA.jsx)(W1.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"})});var Y1=i(ue(),1),NA=i(x(),1),yv=(0,NA.jsx)(Y1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,NA.jsx)(Y1.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 q1=i(ue(),1),BA=i(x(),1),Z1=(0,BA.jsx)(q1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,BA.jsx)(q1.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 K1=i(ue(),1),DA=i(x(),1),LA=(0,DA.jsx)(K1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,DA.jsx)(K1.Path,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"})});var X1=i(ue(),1),MA=i(x(),1),zm=(0,MA.jsx)(X1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,MA.jsx)(X1.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 0 4-4H8a4 4 0 0 0 4 4Z"})});var Q1=i(ue(),1),VA=i(x(),1),Ld=(0,VA.jsx)(Q1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,VA.jsx)(Q1.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"})});var J1=i(ue(),1),jA=i(x(),1),Md=(0,jA.jsx)(J1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,jA.jsx)(J1.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"})});var $1=i(ue(),1),zA=i(x(),1),UA=(0,zA.jsx)($1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,zA.jsx)($1.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 eS=i(ue(),1),HA=i(x(),1),Sl=(0,HA.jsx)(eS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,HA.jsx)(eS.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 tS=i(ue(),1),GA=i(x(),1),Kn=(0,GA.jsx)(tS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,GA.jsx)(tS.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 rS=i(ue(),1),WA=i(x(),1),YA=(0,WA.jsx)(rS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,WA.jsx)(rS.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 oS=i(ue(),1),qA=i(x(),1),bv=(0,qA.jsx)(oS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,qA.jsx)(oS.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var nS=i(ue(),1),ZA=i(x(),1),KA=(0,ZA.jsx)(nS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ZA.jsx)(nS.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})});var sS=i(ue(),1),XA=i(x(),1),Sv=(0,XA.jsx)(sS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,XA.jsx)(sS.Path,{d:"M18.5 10.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 iS=i(ue(),1),QA=i(x(),1),JA=(0,QA.jsx)(iS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,QA.jsx)(iS.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})});var _v=i(ue(),1),wv=i(x(),1),$A=(0,wv.jsxs)(_v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,wv.jsx)(_v.Path,{d:"m16 15.5h-8v-1.5h8zm-7.5-2.5h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm-9-3h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2z"}),(0,wv.jsx)(_v.Path,{d:"m18.5 6.5h-13a.5.5 0 0 0 -.5.5v9.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9.5a.5.5 0 0 0 -.5-.5zm-13-1.5h13a2 2 0 0 1 2 2v9.5a2 2 0 0 1 -2 2h-13a2 2 0 0 1 -2-2v-9.5a2 2 0 0 1 2-2z"})]});var aS=i(ue(),1),eR=i(x(),1),Bi=(0,eR.jsx)(aS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,eR.jsx)(aS.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 lS=i(ue(),1),tR=i(x(),1),rR=(0,tR.jsx)(lS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,tR.jsx)(lS.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})});var cS=i(ue(),1),oR=i(x(),1),xv=(0,oR.jsx)(cS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oR.jsx)(cS.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})});var uS=i(ue(),1),nR=i(x(),1),sR=(0,nR.jsx)(uS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,nR.jsx)(uS.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 dS=i(ue(),1),iR=i(x(),1),Um=(0,iR.jsx)(dS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,iR.jsx)(dS.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 fS=i(ue(),1),aR=i(x(),1),Ir=(0,aR.jsx)(fS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,aR.jsx)(fS.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var mS=i(ue(),1),lR=i(x(),1),Tv=(0,lR.jsx)(mS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,lR.jsx)(mS.Path,{d:"M18.5 10a1.5 1.5 0 0 1 1.5 1.5v7a1.5 1.5 0 0 1-1.5 1.5h-7a1.5 1.5 0 0 1-1.5-1.5v-7a1.5 1.5 0 0 1 1.5-1.5zM16 4a2 2 0 0 1 2 2v2h-1.5V6a.5.5 0 0 0-.5-.5H6a.5.5 0 0 0-.5.5v3H8v1.5H5.5V16a.5.5 0 0 0 .5.5h2V18H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z"})});var pS=i(ue(),1),cR=i(x(),1),uR=(0,cR.jsx)(pS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,cR.jsx)(pS.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-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})});var hS=i(ue(),1),dR=i(x(),1),_l=(0,dR.jsx)(hS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,dR.jsx)(hS.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})});var gS=i(ue(),1),fR=i(x(),1),Cv=(0,fR.jsx)(gS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,fR.jsx)(gS.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5A6.5 6.5 0 0 1 6.93 7.931l9.139 9.138A6.473 6.473 0 0 1 12 18.5Zm5.123-2.498a6.5 6.5 0 0 0-9.124-9.124l9.124 9.124ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"})});var Pv=i(ue(),1),kv=i(x(),1),Hm=(0,kv.jsxs)(Pv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,kv.jsx)(Pv.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,kv.jsx)(Pv.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 vS=i(ue(),1),mR=i(x(),1),Ev=(0,mR.jsx)(vS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,mR.jsx)(vS.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});var yS=i(ue(),1),pR=i(x(),1),Av=(0,pR.jsx)(yS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,pR.jsx)(yS.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 1-4-4h4V8a4 4 0 0 1 0 8Z"})});var bS=i(ue(),1),hR=i(x(),1),wl=(0,hR.jsx)(bS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,hR.jsx)(bS.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var SS=i(ue(),1),gR=i(x(),1),xl=(0,gR.jsx)(SS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,gR.jsx)(SS.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})});var _S=i(ue(),1),vR=i(x(),1),Vd=(0,vR.jsx)(_S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,vR.jsx)(_S.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"})});var wS=i(ue(),1),yR=i(x(),1),Rv=(0,yR.jsx)(wS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,yR.jsx)(wS.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"})});var xS=i(ue(),1),bR=i(x(),1),SR=(0,bR.jsx)(xS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,bR.jsx)(xS.Path,{d:"M7 11.5h10V13H7z"})});var TS=i(ue(),1),_R=i(x(),1),wR=(0,_R.jsx)(TS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_R.jsx)(TS.Path,{d:"M12 4V2.2L9 4.8l3 2.5V5.5c3.6 0 6.5 2.9 6.5 6.5 0 2.9-1.9 5.3-4.5 6.2v.2l-.1-.2c-.4.1-.7.2-1.1.2l.2 1.5c.3 0 .6-.1 1-.2 3.5-.9 6-4 6-7.7 0-4.4-3.6-8-8-8zm-7.9 7l1.5.2c.1-1.2.5-2.3 1.2-3.2l-1.1-.9C4.8 8.2 4.3 9.6 4.1 11zm1.5 1.8l-1.5.2c.1.7.3 1.4.5 2 .3.7.6 1.3 1 1.8l1.2-.8c-.3-.5-.6-1-.8-1.5s-.4-1.1-.4-1.7zm1.5 5.5c1.1.9 2.4 1.4 3.8 1.6l.2-1.5c-1.1-.1-2.2-.5-3.1-1.2l-.9 1.1z"})});var CS=i(ue(),1),xR=i(x(),1),TR=(0,xR.jsx)(CS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xR.jsx)(CS.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 PS=i(ue(),1),CR=i(x(),1),Ov=(0,CR.jsx)(PS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,CR.jsx)(PS.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm9 1V8h-1.5v3.5h-2V13H13Z"})});var kS=i(ue(),1),PR=i(x(),1),jd=(0,PR.jsx)(kS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,PR.jsx)(kS.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 Iv=i(ue(),1),Fv=i(x(),1),kR=(0,Fv.jsxs)(Iv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Fv.jsx)(Iv.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,Fv.jsx)(Iv.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 ES=i(ue(),1),ER=i(x(),1),Nv=(0,ER.jsx)(ES.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ER.jsx)(ES.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 AS=i(ue(),1),AR=i(x(),1),RR=(0,AR.jsx)(AS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,AR.jsx)(AS.Path,{d:"M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"})});var RS=i(ue(),1),OR=i(x(),1),Bv=(0,OR.jsx)(RS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,OR.jsx)(RS.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.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var OS=i(ue(),1),IR=i(x(),1),FR=(0,IR.jsx)(OS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,IR.jsx)(OS.Path,{fill:"none",d:"M5.75 12.75V18.25H11.25M12.75 5.75H18.25V11.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"square"})});var IS=i(ue(),1),NR=i(x(),1),BR=(0,NR.jsx)(IS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,NR.jsx)(IS.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z"})});var FS=i(ue(),1),DR=i(x(),1),LR=(0,DR.jsx)(FS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,DR.jsx)(FS.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"})});var NS=i(ue(),1),MR=i(x(),1),VR=(0,MR.jsx)(NS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,MR.jsx)(NS.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z"})});var BS=i(ue(),1),jR=i(x(),1),zd=(0,jR.jsx)(BS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,jR.jsx)(BS.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-17.6 1L10 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 DS=i(ue(),1),zR=i(x(),1),Dv=(0,zR.jsx)(DS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,zR.jsx)(DS.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 LS=i(ue(),1),UR=i(x(),1),MS=(0,UR.jsx)(LS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,UR.jsx)(LS.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 VS=i(ue(),1),HR=i(x(),1),Tl=(0,HR.jsx)(VS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,HR.jsx)(VS.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 jS=i(ue(),1),GR=i(x(),1),WR=(0,GR.jsx)(jS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,GR.jsx)(jS.Path,{d:"m8.6 7 3.9 10.8h-1.7l-1-2.8H5.7l-1 2.8H3L6.9 7h1.7Zm-2.4 6.6h3L7.7 9.3l-1.5 4.3ZM17.691 8.879c.473 0 .88.055 1.221.165.352.1.643.264.875.495.274.253.456.572.544.957.088.374.132.83.132 1.37v4.554c0 .274.033.472.099.593.077.11.198.166.363.166.11 0 .215-.028.313-.083.11-.055.237-.137.38-.247l.165.28a3.304 3.304 0 0 1-.71.446c-.23.11-.527.165-.89.165-.352 0-.639-.055-.858-.165-.22-.11-.386-.27-.495-.479-.1-.209-.149-.468-.149-.775-.286.462-.627.814-1.023 1.056-.396.242-.858.363-1.386.363-.462 0-.858-.088-1.188-.264a1.752 1.752 0 0 1-.742-.726 2.201 2.201 0 0 1-.248-1.056c0-.484.11-.875.33-1.172.22-.308.5-.556.841-.742.352-.187.721-.341 1.106-.462.396-.132.765-.253 1.106-.363.351-.121.637-.259.857-.413.232-.154.347-.357.347-.61V10.81c0-.396-.066-.71-.198-.941a1.05 1.05 0 0 0-.511-.511 1.763 1.763 0 0 0-.76-.149c-.253 0-.522.039-.808.116a1.165 1.165 0 0 0-.677.412 1.1 1.1 0 0 1 .595.396c.165.187.247.424.247.71 0 .307-.104.55-.313.726-.198.176-.451.263-.76.263-.34 0-.594-.104-.758-.313a1.231 1.231 0 0 1-.248-.759c0-.297.072-.539.214-.726.154-.187.352-.363.595-.528.264-.176.6-.324 1.006-.445.418-.121.88-.182 1.386-.182Zm.99 3.729a1.57 1.57 0 0 1-.528.462c-.231.121-.479.248-.742.38a5.377 5.377 0 0 0-.76.462c-.23.165-.423.38-.577.643-.154.264-.231.6-.231 1.007 0 .429.11.77.33 1.023.22.242.517.363.891.363.308 0 .594-.088.858-.264.275-.176.528-.44.759-.792v-3.284Z"})});var zS=i(ue(),1),YR=i(x(),1),Lv=(0,YR.jsx)(zS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,YR.jsx)(zS.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})});var US=i(ue(),1),qR=i(x(),1),ZR=(0,qR.jsx)(US.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,qR.jsx)(US.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.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 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 WS=i(ue(),1),$R=i(x(),1),e5=(0,$R.jsx)(WS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,$R.jsx)(WS.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})});function Xc(e){return e==="header"?Sv:e==="footer"?bv:e==="sidebar"?Bv:e==="navigation-overlay"?Tv:zd}var jN=i(Mv(),1),{lock:zN,unlock:D}=(0,jN.__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/editor");var UN={},qs=e=>{if(!e)return UN;let{templateTypes:t,templateAreas:r,template:o}=e,{description:n,slug:s,title:a,area:l}=o,{title:c,description:u}=Object.values(t).find(g=>g.slug===s)??UN,d=typeof a=="string"?a:a?.rendered,f=typeof n=="string"?n:n?.raw,h=r?.map(g=>({...g,icon:Xc(g.icon)}))?.find(g=>l===g.area)?.icon||Bi;return{title:d&&d!==s?d:c||s,description:f||u,icon:h}};var zv={},tae=(0,lt.createRegistrySelector)(e=>()=>e(qt.store).hasUndo()),rae=(0,lt.createRegistrySelector)(e=>()=>e(qt.store).hasRedo());function GN(e){return po(e).status==="auto-draft"}function WN(e){return"content"in Uv(e)}var YS=(0,lt.createRegistrySelector)(e=>t=>{let r=Ts(t),o=Zs(t);return e(qt.store).hasEditsForEntityRecord("postType",r,o)}),oae=(0,lt.createRegistrySelector)(e=>t=>{let r=e(qt.store).__experimentalGetDirtyEntityRecords(),{type:o,id:n}=po(t);return r.some(s=>s.kind!=="postType"||s.name!==o||s.key!==n)});function nae(e){return!YS(e)&&GN(e)}var po=(0,lt.createRegistrySelector)(e=>t=>{let r=Zs(t),o=Ts(t),n=e(qt.store).getRawEntityRecord("postType",o,r);return n||zv});function Ts(e){return e.postType}function Zs(e){return e.postId}function sae(e){return e.templateId}function iae(e){return po(e)._links?.["version-history"]?.[0]?.count??0}function aae(e){return po(e)._links?.["predecessor-version"]?.[0]?.id??null}var Uv=(0,lt.createRegistrySelector)(e=>t=>{let r=Ts(t),o=Zs(t);return e(qt.store).getEntityRecordEdits("postType",r,o)||zv});function Vv(e,t){switch(t){case"type":return Ts(e);case"id":return Zs(e);default:let r=po(e);if(!r.hasOwnProperty(t))break;return w1(r[t])}}var lae=(0,lt.createSelector)((e,t)=>{let r=Uv(e);return r.hasOwnProperty(t)?{...Vv(e,t),...r[t]}:Vv(e,t)},(e,t)=>[Vv(e,t),Uv(e)[t]]);function Qt(e,t){if(t==="content")return Hv(e);let r=Uv(e);return r.hasOwnProperty(t)?FN.has(t)?lae(e,t):r[t]:Vv(e,t)}var YN=(0,lt.createRegistrySelector)(e=>(t,r)=>{if(!BN.includes(r)&&r!=="preview_link")return;let o=Ts(t),n=Zs(t),s=e(qt.store).getCurrentUser()?.id,a=e(qt.store).getAutosave(o,n,s);if(a)return w1(a[r])});function cae(e){return Qt(e,"status")==="private"?"private":Qt(e,"password")?"password":"public"}function uae(e){return po(e).status==="pending"}function t5(e,t){let r=t||po(e);return["publish","private"].indexOf(r.status)!==-1||r.status==="future"&&!(0,Gm.isInTheFuture)(new Date(Number((0,Gm.getDate)(r.date))-JE))}function dae(e){return po(e).status==="future"&&!t5(e)}function fae(e){let t=po(e);return t.type===dr?YS(e):YS(e)||["publish","private","future"].indexOf(t.status)===-1}function qN(e){return Wm(e)?!1:!!Qt(e,"title")||!!Qt(e,"excerpt")||!ZN(e)||HN.Platform.OS==="native"}var ZN=(0,lt.createRegistrySelector)(e=>t=>{let r=Zs(t),o=Ts(t),n=e(qt.store).getEditedEntityRecord("postType",o,r);if(typeof n.content!="function")return!n.content;let s=Qt(t,"blocks");if(s.length===0)return!0;if(s.length>1)return!1;let a=s[0].name;return a!==(0,Qc.getDefaultBlockName)()&&a!==(0,Qc.getFreeformContentHandlerName)()?!1:!Hv(t)}),mae=(0,lt.createRegistrySelector)(e=>t=>{if(!qN(t)||QN(t))return!1;let r=Ts(t);if(!e(qt.store).getPostType(r)?.supports?.autosave)return!1;let n=Zs(t),s=e(qt.store).hasFetchedAutosaves(r,n),a=e(qt.store).getCurrentUser()?.id,l=e(qt.store).getAutosave(r,n,a);return s?!l||WN(t)?!0:["title","excerpt","meta"].some(c=>w1(l[c])!==Qt(t,c)):!1});function pae(e){let t=Qt(e,"date"),r=new Date(Number((0,Gm.getDate)(t))-JE);return(0,Gm.isInTheFuture)(r)}function hae(e){let t=Qt(e,"date"),r=Qt(e,"modified"),o=po(e).status;return o==="draft"||o==="auto-draft"||o==="pending"?t===r||t===null:!1}function gae(e){return!!e.deleting.pending}function Wm(e){return!!e.saving.pending}var vae=(0,lt.createRegistrySelector)(e=>t=>{let r=e(qt.store).__experimentalGetEntitiesBeingSaved(),{type:o,id:n}=po(t);return r.some(s=>s.kind!=="postType"||s.name!==o||s.key!==n)}),yae=(0,lt.createRegistrySelector)(e=>t=>{let r=Ts(t),o=Zs(t);return!e(qt.store).getLastEntitySaveError("postType",r,o)}),bae=(0,lt.createRegistrySelector)(e=>t=>{let r=Ts(t),o=Zs(t);return!!e(qt.store).getLastEntitySaveError("postType",r,o)});function Sae(e){return Wm(e)&&!!e.saving.options?.isAutosave}function _ae(e){return Wm(e)&&!!e.saving.options?.isPreview}function wae(e){if(e.saving.pending||Wm(e))return;let t=YN(e,"preview_link");(!t||po(e).status==="draft")&&(t=Qt(e,"link"),t&&(t=(0,jv.addQueryArgs)(t,{preview:!0})));let r=Qt(e,"featured_media");return t&&r?(0,jv.addQueryArgs)(t,{_thumbnail_id:r}):t}var xae=(0,lt.createRegistrySelector)(e=>()=>{let t=e(qS.store).getBlocks();if(t.length>2)return null;let r;if(t.length===1&&(r=t[0].name,r==="core/embed")){let o=t[0].attributes?.providerNameSlug;["youtube","vimeo"].includes(o)?r="core/video":["spotify","soundcloud"].includes(o)&&(r="core/audio")}switch(t.length===2&&t[1].name==="core/paragraph"&&(r=t[0].name),r){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":return"video";case"core/audio":return"audio";default:return null}}),Hv=(0,lt.createRegistrySelector)(e=>t=>{let r=Zs(t),o=Ts(t),n=e(qt.store).getEditedEntityRecord("postType",o,r);if(n){if(typeof n.content=="function")return n.content(n);if(n.blocks)return(0,Qc.__unstableSerializeAndClean)(n.blocks);if(n.content)return n.content}return""});function Tae(e){return Wm(e)&&!t5(e)&&Qt(e,"status")==="publish"}function KN(e){let t=Qt(e,"permalink_template");return QE.test(t)}function Cae(e){let t=XN(e);if(!t)return null;let{prefix:r,postName:o,suffix:n}=t;return KN(e)?r+o+n:r}function Pae(e){return Qt(e,"slug")||(0,jv.cleanForSlug)(Qt(e,"title"))||Zs(e)}function XN(e){let t=Qt(e,"permalink_template");if(!t)return null;let r=Qt(e,"slug")||Qt(e,"generated_slug"),[o,n]=t.split(QE);return{prefix:o,postName:r,suffix:n}}function kae(e){return e.postLock.isLocked}function Eae(e){return Object.keys(e.postSavingLock).length>0}function QN(e){return Object.keys(e.postAutosavingLock).length>0}function Aae(e){return e.postLock.isTakeover}function Rae(e){return e.postLock.user}function Oae(e){return e.postLock.activePostLock}function Iae(e){return!!po(e)._links?.hasOwnProperty("wp:action-unfiltered-html")}var Fae=(0,lt.createRegistrySelector)(e=>()=>!!e(Gv.store).get("core","isPublishSidebarEnabled")),Nae=(0,lt.createSelector)(e=>Qt(e,"blocks")||(0,Qc.parse)(Hv(e)),e=>[Qt(e,"blocks"),Hv(e)]);function JN(e,t){return e.removedPanels.includes(t)}var Bae=(0,lt.createRegistrySelector)(e=>(t,r)=>{let o=e(Gv.store).get("core","inactivePanels");return!JN(t,r)&&!o?.includes(r)}),Dae=(0,lt.createRegistrySelector)(e=>(t,r)=>!!e(Gv.store).get("core","openPanels")?.includes(r));function Lae(e){return(0,Sa.default)("select('core/editor').getEditorSelectionStart",{since:"5.8",alternative:"select('core/editor').getEditorSelection"}),Qt(e,"selection")?.selectionStart}function Mae(e){return(0,Sa.default)("select('core/editor').getEditorSelectionStart",{since:"5.8",alternative:"select('core/editor').getEditorSelection"}),Qt(e,"selection")?.selectionEnd}function Vae(e){return Qt(e,"selection")}function jae(e){return!!e.postId}function zae(e){return e.editorSettings}function ZS(e){return e.renderingMode}var Uae=(0,lt.createRegistrySelector)(e=>t=>D(e(qS.store)).isZoomOut()?"Desktop":t.deviceType);function Hae(e){return e.listViewPanel}function Gae(e){return!!e.blockInserterPanel}var Wae=(0,lt.createRegistrySelector)(e=>()=>e(Gv.store).get("core","editorMode")??"visual");function Yae(){return(0,Sa.default)("select('core/editor').getStateBeforeOptimisticTransaction",{since:"5.7",hint:"No state history is kept on this store anymore"}),null}function qae(){return(0,Sa.default)("select('core/editor').inSomeHistory",{since:"5.7",hint:"No state history is kept on this store anymore"}),!1}function Le(e){return(0,lt.createRegistrySelector)(t=>(r,...o)=>((0,Sa.default)("`wp.data.select( 'core/editor' )."+e+"`",{since:"5.3",alternative:"`wp.data.select( 'core/block-editor' )."+e+"`",version:"6.2"}),t(qS.store)[e](...o)))}var Zae=Le("getBlockName"),Kae=Le("isBlockValid"),Xae=Le("getBlockAttributes"),Qae=Le("getBlock"),Jae=Le("getBlocks"),$ae=Le("getClientIdsOfDescendants"),ele=Le("getClientIdsWithDescendants"),tle=Le("getGlobalBlockCount"),rle=Le("getBlocksByClientId"),ole=Le("getBlockCount"),nle=Le("getBlockSelectionStart"),sle=Le("getBlockSelectionEnd"),ile=Le("getSelectedBlockCount"),ale=Le("hasSelectedBlock"),lle=Le("getSelectedBlockClientId"),cle=Le("getSelectedBlock"),ule=Le("getBlockRootClientId"),dle=Le("getBlockHierarchyRootClientId"),fle=Le("getAdjacentBlockClientId"),mle=Le("getPreviousBlockClientId"),ple=Le("getNextBlockClientId"),hle=Le("getSelectedBlocksInitialCaretPosition"),gle=Le("getMultiSelectedBlockClientIds"),vle=Le("getMultiSelectedBlocks"),yle=Le("getFirstMultiSelectedBlockClientId"),ble=Le("getLastMultiSelectedBlockClientId"),Sle=Le("isFirstMultiSelectedBlock"),_le=Le("isBlockMultiSelected"),wle=Le("isAncestorMultiSelected"),xle=Le("getMultiSelectedBlocksStartClientId"),Tle=Le("getMultiSelectedBlocksEndClientId"),Cle=Le("getBlockOrder"),Ple=Le("getBlockIndex"),kle=Le("isBlockSelected"),Ele=Le("hasSelectedInnerBlock"),Ale=Le("isBlockWithinSelection"),Rle=Le("hasMultiSelection"),Ole=Le("isMultiSelecting"),Ile=Le("isSelectionEnabled"),Fle=Le("getBlockMode"),Nle=Le("isTyping"),Ble=Le("isCaretWithinFormattedText"),Dle=Le("getBlockInsertionPoint"),Lle=Le("isBlockInsertionPointVisible"),Mle=Le("isValidTemplate"),Vle=Le("getTemplate"),jle=Le("getTemplateLock"),zle=Le("canInsertBlockType"),Ule=Le("getInserterItems"),Hle=Le("hasInserterItems"),Gle=Le("getBlockListSettings"),Wle=(0,lt.createRegistrySelector)(e=>()=>((0,Sa.default)("select('core/editor').__experimentalGetDefaultTemplateTypes",{since:"6.8",alternative:"select('core/core-data').getCurrentTheme()?.default_template_types"}),e(qt.store).getCurrentTheme()?.default_template_types)),Yle=(0,lt.createRegistrySelector)(e=>(0,lt.createSelector)(()=>((0,Sa.default)("select('core/editor').__experimentalGetDefaultTemplatePartAreas",{since:"6.8",alternative:"select('core/core-data').getCurrentTheme()?.default_template_part_areas"}),(e(qt.store).getCurrentTheme()?.default_template_part_areas||[]).map(r=>({...r,icon:Xc(r.icon)}))))),qle=(0,lt.createRegistrySelector)(e=>(0,lt.createSelector)((t,r)=>{(0,Sa.default)("select('core/editor').__experimentalGetDefaultTemplateType",{since:"6.8"});let o=e(qt.store).getCurrentTheme()?.default_template_types;return o?Object.values(o).find(n=>n.slug===r)??zv:zv})),Zle=(0,lt.createRegistrySelector)(e=>(0,lt.createSelector)((t,r)=>{if((0,Sa.default)("select('core/editor').__experimentalGetTemplateInfo",{since:"6.8"}),!r)return zv;let o=e(qt.store).getCurrentTheme(),n=o?.default_template_types||[],s=o?.default_template_part_areas||[];return qs({template:r,templateAreas:s,templateTypes:n})})),Kle=(0,lt.createRegistrySelector)(e=>t=>{let r=Ts(t);return e(qt.store).getPostType(r)?.labels?.singular_name});function Xle(e){return e.publishSidebarActive}var Qle=(0,lt.createRegistrySelector)(e=>t=>{if(!D(e(qt.store)).isCollaborationSupported())return!1;let r=Ts(t);return!!(e(qt.store).getEntityConfig("postType",r)?.syncConfig&&window._wpCollaborationEnabled)});var s5={};Zc(s5,{__experimentalTearDownEditor:()=>$le,__unstableSaveForPreview:()=>cce,autosave:()=>lce,clearSelectedBlock:()=>Gce,closePublishSidebar:()=>Nce,createUndoLevel:()=>fce,disablePublishSidebar:()=>hce,editPost:()=>oce,enablePublishSidebar:()=>pce,enterFormattedText:()=>cue,exitFormattedText:()=>uue,hideInsertionPoint:()=>eue,insertBlock:()=>Qce,insertBlocks:()=>Jce,insertDefaultBlock:()=>due,lockPostAutosaving:()=>yce,lockPostSaving:()=>gce,mergeBlocks:()=>oue,moveBlockToPosition:()=>Xce,moveBlocksDown:()=>Zce,moveBlocksUp:()=>Kce,multiSelect:()=>Hce,openPublishSidebar:()=>Fce,receiveBlocks:()=>Lce,redo:()=>uce,refreshPost:()=>ice,removeBlock:()=>sue,removeBlocks:()=>nue,removeEditorPanel:()=>Pce,replaceBlock:()=>qce,replaceBlocks:()=>Yce,resetBlocks:()=>Dce,resetEditorBlocks:()=>Sce,resetPost:()=>ece,savePost:()=>nce,selectBlock:()=>jce,setDeviceType:()=>xce,setEditedPost:()=>cB,setIsInserterOpened:()=>kce,setIsListViewOpened:()=>Ece,setRenderingMode:()=>wce,setTemplateValidity:()=>tue,setupEditor:()=>Jle,setupEditorState:()=>rce,showInsertionPoint:()=>$ce,startMultiSelect:()=>zce,startTyping:()=>aue,stopMultiSelect:()=>Uce,stopTyping:()=>lue,switchEditorMode:()=>Ice,synchronizeTemplate:()=>rue,toggleBlockMode:()=>iue,toggleDistractionFree:()=>Ace,toggleEditorPanelEnabled:()=>Tce,toggleEditorPanelOpened:()=>Cce,togglePublishSidebar:()=>Bce,toggleSelection:()=>Wce,toggleSpotlightMode:()=>Rce,toggleTopToolbar:()=>Oce,trashPost:()=>ace,undo:()=>dce,unlockPostAutosaving:()=>bce,unlockPostSaving:()=>vce,updateBlock:()=>Mce,updateBlockAttributes:()=>Vce,updateBlockListSettings:()=>fue,updateEditorSettings:()=>_ce,updatePost:()=>tce,updatePostLock:()=>mce});var n5=i(Wv(),1),lB=i(Yv(),1),$c=i(Ws(),1),Ym=i(Xe(),1),Di=i(ct(),1),Tn=i(W(),1),Jc=i($(),1),qm=i(fo(),1),Fr=i(dt(),1),Hr=i(E(),1);function o5(e,t){return`wp-autosave-block-editor-post-${t?"auto-draft":e}`}function oB(e,t){return window.sessionStorage.getItem(o5(e,t))}function nB(e,t,r,o,n){window.sessionStorage.setItem(o5(e,t),JSON.stringify({post_title:r,content:o,excerpt:n}))}function KS(e,t){window.sessionStorage.removeItem(o5(e,t))}var Cs=i(E(),1);function sB(e){let{previousPost:t,post:r,postType:o}=e;if(e.options?.isAutosave)return[];let n=["publish","private","future"],s=n.includes(t.status),a=n.includes(r.status),l=r.status==="trash"&&t.status!=="trash",c,u=o?.viewable??!1,d;l?(c=o.labels.item_trashed,u=!1):r.type===dr?(c=(0,Cs.__)("Media updated."),u=!1):!s&&!a?(c=(0,Cs.__)("Draft saved."),d=!0):s&&!a?(c=o.labels.item_reverted_to_draft,u=!1):!s&&a?c={publish:o.labels.item_published,private:o.labels.item_published_privately,future:o.labels.item_scheduled}[r.status]:c=o.labels.item_updated;let f=[];return u&&f.push({label:d?(0,Cs.__)("View Preview"):o.labels.view_item,url:r.link,openInNewTab:!0}),[c,{id:"editor-save",type:"snackbar",actions:f}]}function iB(e){let{post:t,edits:r,error:o}=e;if(o&&o.code==="rest_autosave_no_changes")return[];let s=["publish","private","future"].indexOf(t.status)!==-1;if(o.code==="offline_error"){let c={publish:(0,Cs.__)("Publishing failed because you were offline. Please verify your connection and try again."),private:(0,Cs.__)("Publishing failed because you were offline. Please verify your connection and try again."),future:(0,Cs.__)("Scheduling failed because you were offline. Please verify your connection and try again."),default:(0,Cs.__)("Updating failed because you were offline. Please verify your connection and try again.")};return[!s&&r.status in c?c[r.status]:c.default,{id:"editor-save"}]}let a={publish:(0,Cs.__)("Publishing failed."),private:(0,Cs.__)("Publishing failed."),future:(0,Cs.__)("Scheduling failed."),default:(0,Cs.__)("Updating failed.")},l=!s&&r.status in a?a[r.status]:a.default;return o.message&&!/<\/?[^>]*>/.test(o.message)&&(l=[l,o.message].join(" ")),[l,{id:"editor-save"}]}function aB(e){return[e.error.message&&e.error.code!=="unknown_error"?e.error.message:(0,Cs.__)("Trashing failed"),{id:"editor-trash-fail"}]}var Jle=(e,t,r)=>({dispatch:o})=>{if(o.setEditedPost(e.type,e.id),e.status==="auto-draft"&&r){let s;"content"in t?s=t.content:s=e.content.raw;let a=(0,Ym.parse)(s);a=(0,Ym.synchronizeBlocksWithTemplate)(a,r),o.resetEditorBlocks(a,{__unstableShouldCreateUndoLevel:!1})}t&&Object.entries(t).some(([s,a])=>a!==(e[s]?.raw??e[s]))&&o.editPost(t)};function $le(){return(0,$c.default)("wp.data.dispatch( 'core/editor' ).__experimentalTearDownEditor",{since:"6.5"}),{type:"DO_NOTHING"}}function ece(){return(0,$c.default)("wp.data.dispatch( 'core/editor' ).resetPost",{since:"6.0",version:"6.3",alternative:"Initialize the editor with the setupEditorState action"}),{type:"DO_NOTHING"}}function tce(){return(0,$c.default)("wp.data.dispatch( 'core/editor' ).updatePost",{since:"5.7",alternative:"Use the core entities store instead"}),{type:"DO_NOTHING"}}function rce(e){return(0,$c.default)("wp.data.dispatch( 'core/editor' ).setupEditorState",{since:"6.5",alternative:"wp.data.dispatch( 'core/editor' ).setEditedPost"}),cB(e.type,e.id)}function cB(e,t){return{type:"SET_EDITED_POST",postType:e,postId:t}}var oce=(e,t)=>({select:r,registry:o})=>{let{id:n,type:s}=r.getCurrentPost();o.dispatch(Tn.store).editEntityRecord("postType",s,n,e,t)},nce=(e={})=>async({select:t,dispatch:r,registry:o})=>{if(!t.isEditedPostSaveable())return;let n=t.getEditedPostContent();e.isAutosave||r.editPost({content:n},{undoIgnore:!0});let s=t.getCurrentPost(),a={id:s.id,...o.select(Tn.store).getEntityRecordNonTransientEdits("postType",s.type,s.id),content:n};r({type:"REQUEST_POST_UPDATE_START",options:e});let l=!1;try{a=await(0,qm.applyFiltersAsync)("editor.preSavePost",a,e)}catch(c){l=c}if(!l)try{await o.dispatch(Tn.store).saveEntityRecord("postType",s.type,a,e)}catch(c){l=c.message&&c.code!=="unknown_error"?c.message:(0,Hr.__)("An error occurred while updating.")}if(l||(l=o.select(Tn.store).getLastEntitySaveError("postType",s.type,s.id)),!l)try{await(0,qm.applyFilters)("editor.__unstableSavePost",Promise.resolve(),e)}catch(c){l=c}if(!l)try{await(0,qm.doActionAsync)("editor.savePost",{id:s.id,type:s.type},e)}catch(c){l=c}if(r({type:"REQUEST_POST_UPDATE_FINISH",options:e}),typeof window<"u"&&window.__experimentalTemplateActivate&&!e.isAutosave&&s.type==="wp_template"&&(typeof s.id=="number"||/^\d+$/.test(s.id))&&sce({select:t,dispatch:r,registry:o}),l){let c=iB({post:s,edits:a,error:l});c.length&&o.dispatch(Di.store).createErrorNotice(...c)}else{let c=t.getCurrentPost(),u=sB({previousPost:s,post:c,postType:await o.resolveSelect(Tn.store).getPostType(c.type),options:e});u.length&&o.dispatch(Di.store).createSuccessNotice(...u),e.isAutosave||o.dispatch(Jc.store).__unstableMarkLastChangeAsPersistent()}};async function sce({select:e,registry:t}){if(e.getEditorSettings().onNavigateToPreviousEntityRecord)return;let{id:o,slug:n}=e.getCurrentPost();if((await t.select(Tn.store).getEntityRecord("root","site")).active_templates[n]===o)return;let l=(await t.resolveSelect(Tn.store).getCurrentTheme())?.default_template_types.find(c=>c.slug===n);await t.dispatch(Di.store).createNotice("info",(0,Hr.sprintf)((0,Hr.__)('Do you want to activate this "%s" template?'),l?.title??n),{id:"template-activate-notice",actions:[{label:(0,Hr.__)("Activate"),onClick:async()=>{await t.dispatch(Di.store).createNotice("info",(0,Hr.__)("Activating template\u2026"),{id:"template-activate-notice"});try{let c=await t.select(Tn.store).getEntityRecord("root","site");await t.dispatch(Tn.store).saveEntityRecord("root","site",{active_templates:{...c.active_templates,[n]:o}},{throwOnError:!0}),await t.dispatch(Di.store).createSuccessNotice((0,Hr.__)("Template activated."),{id:"template-activate-notice"})}catch(c){throw await t.dispatch(Di.store).createErrorNotice((0,Hr.__)("Template activation failed."),{id:"template-activate-notice"}),c}}}]})}function ice(){return(0,$c.default)("wp.data.dispatch( 'core/editor' ).refreshPost",{since:"6.0",version:"6.3",alternative:"Use the core entities store instead"}),{type:"DO_NOTHING"}}var ace=()=>async({select:e,dispatch:t,registry:r})=>{let o=e.getCurrentPostType(),n=await r.resolveSelect(Tn.store).getPostType(o),{rest_base:s,rest_namespace:a="wp/v2"}=n;t({type:"REQUEST_POST_DELETE_START"});try{let l=e.getCurrentPost();await(0,lB.default)({path:`/${a}/${s}/${l.id}`,method:"DELETE"}),await t.savePost()}catch(l){r.dispatch(Di.store).createErrorNotice(...aB({error:l}))}t({type:"REQUEST_POST_DELETE_FINISH"})},lce=({local:e=!1,...t}={})=>async({select:r,dispatch:o})=>{let n=r.getCurrentPost();if(e){let s=r.isEditedPostNew(),a=r.getEditedPostAttribute("title"),l=r.getEditedPostAttribute("content"),c=r.getEditedPostAttribute("excerpt");nB(n.id,s,a,l,c)}else await o.savePost({isAutosave:!0,...t})},cce=({forceIsAutosaveable:e}={})=>async({select:t,dispatch:r})=>((e||t.isEditedPostAutosaveable())&&!t.isPostLocked()&&(["draft","auto-draft"].includes(t.getEditedPostAttribute("status"))?await r.savePost({isPreview:!0}):await r.autosave({isPreview:!0})),t.getEditedPostPreviewLink()),uce=()=>({registry:e})=>{e.dispatch(Tn.store).redo()},dce=()=>({registry:e})=>{e.dispatch(Tn.store).undo()};function fce(){return(0,$c.default)("wp.data.dispatch( 'core/editor' ).createUndoLevel",{since:"6.0",version:"6.3",alternative:"Use the core entities store instead"}),{type:"DO_NOTHING"}}function mce(e){return{type:"UPDATE_POST_LOCK",lock:e}}var pce=()=>({registry:e})=>{e.dispatch(Fr.store).set("core","isPublishSidebarEnabled",!0)},hce=()=>({registry:e})=>{e.dispatch(Fr.store).set("core","isPublishSidebarEnabled",!1)};function gce(e){return{type:"LOCK_POST_SAVING",lockName:e}}function vce(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function yce(e){return{type:"LOCK_POST_AUTOSAVING",lockName:e}}function bce(e){return{type:"UNLOCK_POST_AUTOSAVING",lockName:e}}var Sce=(e,t={})=>({select:r,dispatch:o,registry:n})=>{let{__unstableShouldCreateUndoLevel:s,selection:a}=t,l={blocks:e,selection:a};if(s!==!1){let{id:c,type:u}=r.getCurrentPost();if(n.select(Tn.store).getEditedEntityRecord("postType",u,c).blocks===l.blocks){n.dispatch(Tn.store).__unstableCreateUndoLevel("postType",u,c);return}l.content=({blocks:f=[]})=>(0,Ym.__unstableSerializeAndClean)(f)}o.editPost(l)};function _ce(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}var wce=e=>({dispatch:t,registry:r,select:o})=>{o.__unstableIsEditorReady()&&!o.getEditorSettings().isPreviewMode&&r.dispatch(Jc.store).clearSelectedBlock(),t({type:"SET_RENDERING_MODE",mode:e})};function xce(e){return{type:"SET_DEVICE_TYPE",deviceType:e}}var Tce=e=>({registry:t})=>{let r=t.select(Fr.store).get("core","inactivePanels")??[],o=!!r?.includes(e),n;o?n=r.filter(s=>s!==e):n=[...r,e],t.dispatch(Fr.store).set("core","inactivePanels",n)},Cce=e=>({registry:t})=>{let r=t.select(Fr.store).get("core","openPanels")??[],o=!!r?.includes(e),n;o?n=r.filter(s=>s!==e):n=[...r,e],t.dispatch(Fr.store).set("core","openPanels",n)};function Pce(e){return{type:"REMOVE_PANEL",panelName:e}}var kce=e=>({dispatch:t,registry:r})=>{typeof e=="object"&&e.hasOwnProperty("rootClientId")&&e.hasOwnProperty("insertionIndex")&&D(r.dispatch(Jc.store)).setInsertionPoint({rootClientId:e.rootClientId,index:e.insertionIndex}),t({type:"SET_IS_INSERTER_OPENED",value:e})};function Ece(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}var Ace=({createNotice:e=!0}={})=>({dispatch:t,registry:r})=>{let o=r.select(Fr.store).get("core","distractionFree");o&&r.dispatch(Fr.store).set("core","fixedToolbar",!1),o||r.batch(()=>{r.dispatch(Fr.store).set("core","fixedToolbar",!0),t.setIsInserterOpened(!1),t.setIsListViewOpened(!1),D(r.dispatch(Jc.store)).resetZoomLevel()}),r.batch(()=>{r.dispatch(Fr.store).set("core","distractionFree",!o),e&&r.dispatch(Di.store).createInfoNotice(o?(0,Hr.__)("Distraction free mode deactivated."):(0,Hr.__)("Distraction free mode activated."),{id:"core/editor/distraction-free-mode/notice",type:"snackbar",actions:[{label:(0,Hr.__)("Undo"),onClick:()=>{r.batch(()=>{r.dispatch(Fr.store).set("core","fixedToolbar",o),r.dispatch(Fr.store).toggle("core","distractionFree")})}}]})})},Rce=()=>({registry:e})=>{e.dispatch(Fr.store).toggle("core","focusMode");let t=e.select(Fr.store).get("core","focusMode");e.dispatch(Di.store).createInfoNotice(t?(0,Hr.__)("Spotlight mode activated."):(0,Hr.__)("Spotlight mode deactivated."),{id:"core/editor/toggle-spotlight-mode/notice",type:"snackbar",actions:[{label:(0,Hr.__)("Undo"),onClick:()=>{e.dispatch(Fr.store).toggle("core","focusMode")}}]})},Oce=()=>({registry:e})=>{e.dispatch(Fr.store).toggle("core","fixedToolbar");let t=e.select(Fr.store).get("core","fixedToolbar");e.dispatch(Di.store).createInfoNotice(t?(0,Hr.__)("Top toolbar activated."):(0,Hr.__)("Top toolbar deactivated."),{id:"core/editor/toggle-top-toolbar/notice",type:"snackbar",actions:[{label:(0,Hr.__)("Undo"),onClick:()=>{e.dispatch(Fr.store).toggle("core","fixedToolbar")}}]})},Ice=e=>({dispatch:t,registry:r})=>{r.dispatch(Fr.store).set("core","editorMode",e),e!=="visual"&&(r.dispatch(Jc.store).clearSelectedBlock(),D(r.dispatch(Jc.store)).resetZoomLevel()),e==="visual"?(0,n5.speak)((0,Hr.__)("Visual editor selected"),"assertive"):e==="text"&&(r.select(Fr.store).get("core","distractionFree")&&t.toggleDistractionFree(),(0,n5.speak)((0,Hr.__)("Code editor selected"),"assertive"))};function Fce(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function Nce(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function Bce(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}var gt=e=>(...t)=>({registry:r})=>{(0,$c.default)("`wp.data.dispatch( 'core/editor' )."+e+"`",{since:"5.3",alternative:"`wp.data.dispatch( 'core/block-editor' )."+e+"`",version:"6.2"}),r.dispatch(Jc.store)[e](...t)},Dce=gt("resetBlocks"),Lce=gt("receiveBlocks"),Mce=gt("updateBlock"),Vce=gt("updateBlockAttributes"),jce=gt("selectBlock"),zce=gt("startMultiSelect"),Uce=gt("stopMultiSelect"),Hce=gt("multiSelect"),Gce=gt("clearSelectedBlock"),Wce=gt("toggleSelection"),Yce=gt("replaceBlocks"),qce=gt("replaceBlock"),Zce=gt("moveBlocksDown"),Kce=gt("moveBlocksUp"),Xce=gt("moveBlockToPosition"),Qce=gt("insertBlock"),Jce=gt("insertBlocks"),$ce=gt("showInsertionPoint"),eue=gt("hideInsertionPoint"),tue=gt("setTemplateValidity"),rue=gt("synchronizeTemplate"),oue=gt("mergeBlocks"),nue=gt("removeBlocks"),sue=gt("removeBlock"),iue=gt("toggleBlockMode"),aue=gt("startTyping"),lue=gt("stopTyping"),cue=gt("enterFormattedText"),uue=gt("exitFormattedText"),due=gt("insertDefaultBlock"),fue=gt("updateBlockListSettings");var w6={};Zc(w6,{createTemplate:()=>$1e,hideBlockTypes:()=>tSe,registerEntityAction:()=>W1e,registerEntityField:()=>q1e,registerPostTypeSchema:()=>Q1e,removeTemplates:()=>nSe,resetStylesNavigation:()=>lSe,restoreRevision:()=>dSe,revertTemplate:()=>oSe,saveDirtyEntities:()=>rSe,selectNote:()=>fSe,setCanvasMinHeight:()=>cSe,setCurrentRevisionId:()=>uSe,setCurrentTemplateId:()=>J1e,setDefaultRenderingMode:()=>sSe,setIsReady:()=>K1e,setShowStylebook:()=>aSe,setStylesPath:()=>iSe,showBlockTypes:()=>eSe,unregisterEntityAction:()=>Y1e,unregisterEntityField:()=>Z1e});var Nn=i(W(),1),st=i(E(),1),Fn=i(ct(),1),uH=i($(),1),Vf=i(dt(),1),dH=i(zr(),1),fH=i(Yv(),1),Px=i(Xe(),1),_6=i(vt(),1),kx=i(mo(),1);function XS(e){return e?e.source===x1.custom&&(!!e?.plugin||e?.has_theme_file):!1}var Cx=i(W(),1),cH=i(fo(),1);var wB=i(E(),1);var Cn=i(R(),1);var e_=i(pe(),1),gB=i(O(),1),Zm=i(N(),1),vB=i(ct(),1),yB=i(zr(),1),Ud=i(E(),1);var hB=i(zr(),1);var QS=i(vt(),1),fB=i(E(),1);function mB(e){return e.type==="wp_template"}function pB(e){return e.type==="wp_template_part"}function Cl(e){return e.type==="wp_template"||e.type==="wp_template_part"}function Ue(e,t=(0,fB.__)("(no title)")){let r="";return typeof e.title=="string"?r=(0,QS.decodeEntities)(e.title):e.title&&"rendered"in e.title?r=(0,QS.decodeEntities)(e.title.rendered):e.title&&"raw"in e.title&&(r=(0,QS.decodeEntities)(e.title.raw)),r||t}function JS(e){return e?[e.source,e.source].includes("custom")&&!(e.type==="wp_template"&&e?.plugin)&&!e.has_theme_file:!1}var $S=e=>typeof e!="object"?"":e.slug||(0,hB.cleanForSlug)(Ue(e))||e.id.toString();var ho=i(x(),1),bB=({field:e,onChange:t,data:r})=>{let{id:o}=e,n=e.getValue({item:r})||$S(r),s=r.permalink_template||"",a=/%(?:postname|pagename)%/,[l,c]=s.split(a),u=l,d=c,f=a.test(s),m=(0,Zm.useRef)(n),h=n||m.current,g=f?`${u}${h}${d}`:(0,yB.safeDecodeURIComponent)(r.link||"");(0,Zm.useEffect)(()=>{n&&m.current===void 0&&(m.current=n)},[n]);let y=(0,Zm.useCallback)(w=>t({[o]:w}),[o,t]),{createNotice:v}=(0,gB.useDispatch)(vB.store),b=(0,e_.useCopyToClipboard)(g,()=>{v("info",(0,Ud.__)("Copied Permalink to clipboard."),{isDismissible:!0,type:"snackbar"})}),S="editor-post-url__slug-description-"+(0,e_.useInstanceId)(bB);return(0,ho.jsxs)("fieldset",{className:"fields-controls__slug",children:[f&&(0,ho.jsxs)(Cn.__experimentalVStack,{children:[(0,ho.jsxs)(Cn.__experimentalVStack,{spacing:"0px",children:[(0,ho.jsx)("span",{children:(0,Ud.__)("Customize the last part of the Permalink.")}),(0,ho.jsx)(Cn.ExternalLink,{href:"https://wordpress.org/documentation/article/page-post-settings-sidebar/#permalink",children:(0,Ud.__)("Learn more")})]}),(0,ho.jsx)(Cn.__experimentalInputControl,{__next40pxDefaultSize:!0,prefix:(0,ho.jsx)(Cn.__experimentalInputControlPrefixWrapper,{children:"/"}),suffix:(0,ho.jsx)(Cn.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,ho.jsx)(Cn.Button,{size:"small",icon:yv,ref:b,label:(0,Ud.__)("Copy")})}),label:(0,Ud.__)("Link"),hideLabelFromVision:!0,value:n,autoComplete:"off",spellCheck:"false",type:"text",className:"fields-controls__slug-input",onChange:w=>{y(w)},onBlur:()=>{n===""&&y(m.current)},"aria-describedby":S}),(0,ho.jsxs)("div",{className:"fields-controls__slug-help",children:[(0,ho.jsx)("span",{className:"fields-controls__slug-help-visual-label",children:(0,Ud.__)("Permalink:")}),(0,ho.jsxs)(Cn.ExternalLink,{className:"fields-controls__slug-help-link",href:g,children:[(0,ho.jsx)("span",{className:"fields-controls__slug-help-prefix",children:u}),(0,ho.jsx)("span",{className:"fields-controls__slug-help-slug",children:h}),(0,ho.jsx)("span",{className:"fields-controls__slug-help-suffix",children:d})]})]})]}),!f&&(0,ho.jsx)(Cn.ExternalLink,{className:"fields-controls__slug-help",href:g,children:g})]})},SB=bB;var t_=i(N(),1);var mue=({item:e})=>{let t=$S(e),r=(0,t_.useRef)(t);return(0,t_.useEffect)(()=>{t&&r.current===void 0&&(r.current=t)},[t]),`${t||r.current}`},_B=mue;var pue={id:"slug",type:"text",label:(0,wB.__)("Slug"),Edit:SB,render:_B,filterBy:!1},i5=pue;var a5=i(E(),1);function xB(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=xB(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function hue(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=xB(e))&&(o&&(o+=" "),o+=t);return o}var re=hue;var TB=i(R(),1),CB=i(E(),1);var qv=i(x(),1);function Zv({item:e,className:t,children:r}){let o=Ue(e);return(0,qv.jsxs)(TB.__experimentalHStack,{className:re("fields-field__title",t),alignment:"center",justify:"flex-start",children:[(0,qv.jsx)("span",{children:o||(0,CB.__)("(no title)")}),r]})}function r_({item:e}){return(0,qv.jsx)(Zv,{item:e})}var gue={type:"text",id:"title",label:(0,a5.__)("Title"),placeholder:(0,a5.__)("No title"),getValue:({item:e})=>Ue(e),render:r_,enableHiding:!0,enableGlobalSearch:!0,filterBy:!1},o_=gue;var u5=i(E(),1);var l5=i(E(),1),kB=i(O(),1),EB=i(W(),1),AB=i(R(),1);var PB=i(Mv(),1),{lock:DIe,unlock:Io}=(0,PB.__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/fields");var c5=i(x(),1),{Badge:vue}=Io(AB.privateApis);function RB({item:e}){let{frontPageId:t,postsPageId:r}=(0,kB.useSelect)(o=>{let{getEntityRecord:n}=o(EB.store),s=n("root","site");return{frontPageId:s?.page_on_front,postsPageId:s?.page_for_posts}},[]);return(0,c5.jsx)(Zv,{item:e,className:"fields-field__page-title",children:[t,r].includes(e.id)&&(0,c5.jsx)(vue,{children:e.id===t?(0,l5.__)("Homepage"):(0,l5.__)("Posts Page")})})}var yue={type:"text",id:"title",label:(0,u5.__)("Title"),placeholder:(0,u5.__)("No title"),getValue:({item:e})=>Ue(e),render:RB,enableHiding:!1,enableGlobalSearch:!0,filterBy:!1},d5=yue;var f5=i(E(),1);var bue={type:"text",label:(0,f5.__)("Template"),placeholder:(0,f5.__)("No title"),id:"title",getValue:({item:e})=>Ue(e),render:r_,enableHiding:!1,enableGlobalSearch:!0,filterBy:!1},Kv=bue;var m5=i(E(),1);var IB=i(E(),1);var FB=i(R(),1),NB=i(Li(),1);var n_=i(x(),1),{PATTERN_TYPES:Sue}=Io(NB.privateApis);function BB({item:e}){return(0,n_.jsx)(Zv,{item:e,className:"fields-field__pattern-title",children:e.type===Sue.theme&&(0,n_.jsx)(FB.Tooltip,{placement:"top",text:(0,IB.__)("This pattern cannot be edited."),children:(0,n_.jsx)(Oo,{icon:sR,size:24})})})}var _ue={type:"text",id:"title",label:(0,m5.__)("Title"),placeholder:(0,m5.__)("No title"),getValue:({item:e})=>Ue(e),render:BB,enableHiding:!1,enableGlobalSearch:!0,filterBy:!1},Xv=_ue;var qD=i(E(),1);var ut=i(R(),1),Qd=i(Qv(),1),J5=i(W(),1),hy=i(O(),1),Jt=i(N(),1),En=i(E(),1);var sp=i(Hd(),1),jD=i(ct(),1);var h5=$v(),He=e=>Jv(e,h5),g5=$v();He.write=e=>Jv(e,g5);var s_=$v();He.onStart=e=>Jv(e,s_);var v5=$v();He.onFrame=e=>Jv(e,v5);var y5=$v();He.onFinish=e=>Jv(e,y5);var Km=[];He.setTimeout=(e,t)=>{let r=He.now()+t,o=()=>{let s=Km.findIndex(a=>a.cancel==o);~s&&Km.splice(s,1),tu-=~s?1:0},n={time:r,handler:e,cancel:o};return Km.splice(MB(r),0,n),tu+=1,VB(),n};var MB=e=>~(~Km.findIndex(t=>t.time>e)||~Km.length);He.cancel=e=>{s_.delete(e),v5.delete(e),y5.delete(e),h5.delete(e),g5.delete(e)};He.sync=e=>{p5=!0,He.batchedUpdates(e),p5=!1};He.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function o(...n){t=n,He.onStart(r)}return o.handler=e,o.cancel=()=>{s_.delete(r),t=null},o};var b5=typeof window<"u"?window.requestAnimationFrame:()=>{};He.use=e=>b5=e;He.now=typeof performance<"u"?()=>performance.now():Date.now;He.batchedUpdates=e=>e();He.catch=console.error;He.frameLoop="always";He.advance=()=>{He.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):zB()};var eu=-1,tu=0,p5=!1;function Jv(e,t){p5?(t.delete(e),e(0)):(t.add(e),VB())}function VB(){eu<0&&(eu=0,He.frameLoop!=="demand"&&b5(jB))}function wue(){eu=-1}function jB(){~eu&&(b5(jB),He.batchedUpdates(zB))}function zB(){let e=eu;eu=He.now();let t=MB(eu);if(t&&(UB(Km.splice(0,t),r=>r.handler()),tu-=t),!tu){wue();return}s_.flush(),h5.flush(e?Math.min(64,eu-e):16.667),v5.flush(),g5.flush(),y5.flush()}function $v(){let e=new Set,t=e;return{add(r){tu+=t==e&&!e.has(r)?1:0,e.add(r)},delete(r){return tu-=t==e&&e.has(r)?1:0,e.delete(r)},flush(r){t.size&&(e=new Set,tu-=t.size,UB(t,o=>o(r)&&e.add(o)),tu+=e.size,t=e)}}}function UB(e,t){e.forEach(r=>{try{t(r)}catch(o){He.catch(o)}})}var Xs=i(Xn());function u_(){}var KB=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),ce={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 _a(e,t){if(ce.arr(e)){if(!ce.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}var Vt=(e,t)=>e.forEach(t);function Qs(e,t,r){if(ce.arr(e)){for(let o=0;o<e.length;o++)t.call(r,e[o],`${o}`);return}for(let o in e)e.hasOwnProperty(o)&&t.call(r,e[o],o)}var Qn=e=>ce.und(e)?[]:ce.arr(e)?e:[e];function $m(e,t){if(e.size){let r=Array.from(e);e.clear(),Vt(r,t)}}var ep=(e,...t)=>$m(e,r=>r(...t)),C5=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),P5,XB,ru=null,QB=!1,k5=u_,xue=e=>{e.to&&(XB=e.to),e.now&&(He.now=e.now),e.colors!==void 0&&(ru=e.colors),e.skipAnimation!=null&&(QB=e.skipAnimation),e.createStringInterpolator&&(P5=e.createStringInterpolator),e.requestAnimationFrame&&He.use(e.requestAnimationFrame),e.batchedUpdates&&(He.batchedUpdates=e.batchedUpdates),e.willAdvance&&(k5=e.willAdvance),e.frameLoop&&(He.frameLoop=e.frameLoop)},Ps=Object.freeze({__proto__:null,get createStringInterpolator(){return P5},get to(){return XB},get colors(){return ru},get skipAnimation(){return QB},get willAdvance(){return k5},assign:xue}),ey=new Set,Ks=[],S5=[],l_=0,tp={get idle(){return!ey.size&&!Ks.length},start(e){l_>e.priority?(ey.add(e),He.onStart(Tue)):(JB(e),He(x5))},advance:x5,sort(e){if(l_)He.onFrame(()=>tp.sort(e));else{let t=Ks.indexOf(e);~t&&(Ks.splice(t,1),$B(e))}},clear(){Ks=[],ey.clear()}};function Tue(){ey.forEach(JB),ey.clear(),He(x5)}function JB(e){Ks.includes(e)||$B(e)}function $B(e){Ks.splice(Cue(Ks,t=>t.priority>e.priority),0,e)}function x5(e){let t=S5;for(let r=0;r<Ks.length;r++){let o=Ks[r];l_=o.priority,o.idle||(k5(o),o.advance(e),o.idle||t.push(o))}return l_=0,S5=Ks,S5.length=0,Ks=t,Ks.length>0}function Cue(e,t){let r=e.findIndex(t);return r<0?e.length:r}var eD={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},Mi="[-+]?\\d*\\.?\\d+",c_=Mi+"%";function d_(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Pue=new RegExp("rgb"+d_(Mi,Mi,Mi)),kue=new RegExp("rgba"+d_(Mi,Mi,Mi,Mi)),Eue=new RegExp("hsl"+d_(Mi,c_,c_)),Aue=new RegExp("hsla"+d_(Mi,c_,c_,Mi)),Rue=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Oue=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Iue=/^#([0-9a-fA-F]{6})$/,Fue=/^#([0-9a-fA-F]{8})$/;function Nue(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Iue.exec(e))?parseInt(t[1]+"ff",16)>>>0:ru&&ru[e]!==void 0?ru[e]:(t=Pue.exec(e))?(Xm(t[1])<<24|Xm(t[2])<<16|Xm(t[3])<<8|255)>>>0:(t=kue.exec(e))?(Xm(t[1])<<24|Xm(t[2])<<16|Xm(t[3])<<8|YB(t[4]))>>>0:(t=Rue.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Fue.exec(e))?parseInt(t[1],16)>>>0:(t=Oue.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Eue.exec(e))?(GB(WB(t[1]),i_(t[2]),i_(t[3]))|255)>>>0:(t=Aue.exec(e))?(GB(WB(t[1]),i_(t[2]),i_(t[3]))|YB(t[4]))>>>0:null}function _5(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function GB(e,t,r){let o=r<.5?r*(1+t):r+t-r*t,n=2*r-o,s=_5(n,o,e+1/3),a=_5(n,o,e),l=_5(n,o,e-1/3);return Math.round(s*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function Xm(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function WB(e){return(parseFloat(e)%360+360)%360/360}function YB(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function i_(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function qB(e){let t=Nue(e);if(t===null)return e;t=t||0;let r=(t&4278190080)>>>24,o=(t&16711680)>>>16,n=(t&65280)>>>8,s=(t&255)/255;return`rgba(${r}, ${o}, ${n}, ${s})`}var ou=(e,t,r)=>{if(ce.fun(e))return e;if(ce.arr(e))return ou({range:e,output:t,extrapolate:r});if(ce.str(e.output[0]))return P5(e);let o=e,n=o.output,s=o.range||[0,1],a=o.extrapolateLeft||o.extrapolate||"extend",l=o.extrapolateRight||o.extrapolate||"extend",c=o.easing||(u=>u);return u=>{let d=Due(u,s);return Bue(u,s[d],s[d+1],n[d],n[d+1],c,a,l,o.map)}};function Bue(e,t,r,o,n,s,a,l,c){let u=c?c(e):e;if(u<t){if(a==="identity")return u;a==="clamp"&&(u=t)}if(u>r){if(l==="identity")return u;l==="clamp"&&(u=r)}return o===n?o:t===r?e<=t?o:n:(t===-1/0?u=-u:r===1/0?u=u-t:u=(u-t)/(r-t),u=s(u),o===-1/0?u=-u:n===1/0?u=u+o:u=u*(n-o)+o,u)}function Due(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}function T5(){return T5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},T5.apply(this,arguments)}var Qm=Symbol.for("FluidValue.get"),Gd=Symbol.for("FluidValue.observers"),Pn=e=>!!(e&&e[Qm]),Fo=e=>e&&e[Qm]?e[Qm]():e,E5=e=>e[Gd]||null;function Lue(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Wd(e,t){let r=e[Gd];r&&r.forEach(o=>{Lue(o,t)})}var Jm=class{constructor(t){if(this[Qm]=void 0,this[Gd]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");Mue(this,t)}},Mue=(e,t)=>tD(e,Qm,t);function nu(e,t){if(e[Qm]){let r=e[Gd];r||tD(e,Gd,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function su(e,t){let r=e[Gd];if(r&&r.has(t)){let o=r.size-1;o?r.delete(t):e[Gd]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var tD=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),a_=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Vue=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ZB=new RegExp(`(${a_.source})(%|[a-z]+)`,"i"),jue=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,f_=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,rD=e=>{let[t,r]=zue(e);if(!t||C5())return e;let o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(r&&r.startsWith("--")){let n=window.getComputedStyle(document.documentElement).getPropertyValue(r);return n||e}else{if(r&&f_.test(r))return rD(r);if(r)return r}return e},zue=e=>{let t=f_.exec(e);if(!t)return[,];let[,r,o]=t;return[r,o]},w5,Uue=(e,t,r,o,n)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(o)}, ${n})`,m_=e=>{w5||(w5=ru?new RegExp(`(${Object.keys(ru).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(s=>Fo(s).replace(f_,rD).replace(Vue,qB).replace(w5,qB)),r=t.map(s=>s.match(a_).map(Number)),n=r[0].map((s,a)=>r.map(l=>{if(!(a in l))throw Error('The arity of each "output" value must be equal');return l[a]})).map(s=>ou(T5({},e,{output:s})));return s=>{var a;let l=!ZB.test(t[0])&&((a=t.find(u=>ZB.test(u)))==null?void 0:a.replace(a_,"")),c=0;return t[0].replace(a_,()=>`${n[c++](s)}${l||""}`).replace(jue,Uue)}},oD="react-spring: ",nD=e=>{let t=e,r=!1;if(typeof t!="function")throw new TypeError(`${oD}once requires a function parameter`);return(...o)=>{r||(t(...o),r=!0)}},Hue=nD(console.warn);function sD(){Hue(`${oD}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var i6e=nD(console.warn);function rp(e){return ce.str(e)&&(e[0]=="#"||/\d/.test(e)||!C5()&&f_.test(e)||e in(ru||{}))}var ty=C5()?Xs.useEffect:Xs.useLayoutEffect,Gue=()=>{let e=(0,Xs.useRef)(!1);return ty(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function A5(){let e=(0,Xs.useState)()[1],t=Gue();return()=>{t.current&&e(Math.random())}}function iD(e,t){let[r]=(0,Xs.useState)(()=>({inputs:t,result:e()})),o=(0,Xs.useRef)(),n=o.current,s=n;return s?t&&s.inputs&&Wue(t,s.inputs)||(s={inputs:t,result:e()}):s=r,(0,Xs.useEffect)(()=>{o.current=s,n==r&&(r.inputs=r.result=void 0)},[s]),s.result}function Wue(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var R5=e=>(0,Xs.useEffect)(e,Yue),Yue=[];var dy=i(Xn()),fy=i(Xn());var uD=i(Xn()),Pl=i(Xn()),ry=Symbol.for("Animated:node"),que=e=>!!e&&e[ry]===e,Vi=e=>e&&e[ry],v_=(e,t)=>KB(e,ry,t),oy=e=>e&&e[ry]&&e[ry].getPayload(),p_=class{constructor(){this.payload=void 0,v_(this,this)}getPayload(){return this.payload||[]}},Yd=class e extends p_{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,ce.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,r){return ce.num(t)&&(this.lastPosition=t,r&&(t=Math.round(t/r)*r,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){let{done:t}=this;this.done=!1,ce.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},qd=class e extends Yd{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=ou({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(ce.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=ou({output:[this.getValue(),t]})),this._value=0,super.reset()}},h_={dependencies:null},Zd=class extends p_{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){let r={};return Qs(this.source,(o,n)=>{que(o)?r[n]=o.getValue(t):Pn(o)?r[n]=Fo(o):t||(r[n]=o)}),r}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&Vt(this.payload,t=>t.reset())}_makePayload(t){if(t){let r=new Set;return Qs(t,this._addToPayload,r),Array.from(r)}}_addToPayload(t){h_.dependencies&&Pn(t)&&h_.dependencies.add(t);let r=oy(t);r&&Vt(r,o=>this.add(o))}},O5=class e extends Zd{constructor(t){super(t)}static create(t){return new e(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){let r=this.getPayload();return t.length==r.length?r.map((o,n)=>o.setValue(t[n])).some(Boolean):(super.setValue(t.map(Zue)),!0)}};function Zue(e){return(rp(e)?qd:Yd).create(e)}function y_(e){let t=Vi(e);return t?t.constructor:ce.arr(e)?O5:rp(e)?qd:Yd}function g_(){return g_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},g_.apply(this,arguments)}var aD=(e,t)=>{let r=!ce.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,Pl.forwardRef)((o,n)=>{let s=(0,Pl.useRef)(null),a=r&&(0,Pl.useCallback)(g=>{s.current=Xue(n,g)},[n]),[l,c]=Kue(o,t),u=A5(),d=()=>{let g=s.current;if(r&&!g)return;(g?t.applyAnimatedValues(g,l.getValue(!0)):!1)===!1&&u()},f=new I5(d,c),m=(0,Pl.useRef)();ty(()=>(m.current=f,Vt(c,g=>nu(g,f)),()=>{m.current&&(Vt(m.current.deps,g=>su(g,m.current)),He.cancel(m.current.update))})),(0,Pl.useEffect)(d,[]),R5(()=>()=>{let g=m.current;Vt(g.deps,y=>su(y,g))});let h=t.getComponentProps(l.getValue());return uD.createElement(e,g_({},h,{ref:a}))})},I5=class{constructor(t,r){this.update=t,this.deps=r}eventObserved(t){t.type=="change"&&He.write(this.update)}};function Kue(e,t){let r=new Set;return h_.dependencies=r,e.style&&(e=g_({},e,{style:t.createAnimatedStyle(e.style)})),e=new Zd(e),h_.dependencies=null,[e,r]}function Xue(e,t){return e&&(ce.fun(e)?e(t):e.current=t),t}var lD=Symbol.for("AnimatedComponent"),dD=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=n=>new Zd(n),getComponentProps:o=n=>n}={})=>{let n={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:o},s=a=>{let l=cD(a)||"Anonymous";return ce.str(a)?a=s[a]||(s[a]=aD(a,n)):a=a[lD]||(a[lD]=aD(a,n)),a.displayName=`Animated(${l})`,a};return Qs(e,(a,l)=>{ce.arr(e)&&(l=cD(a)),s[l]=s(a)}),{animated:s}},cD=e=>ce.str(e)?e:e&&ce.str(e.displayName)?e.displayName:ce.fun(e)&&e.name||null;function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},kn.apply(this,arguments)}function Kd(e,...t){return ce.fun(e)?e(...t):e}var ay=(e,t)=>e===!0||!!(t&&e&&(ce.fun(e)?e(t):Qn(e).includes(t))),xD=(e,t)=>ce.obj(e)?t&&e[t]:e,TD=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Que=e=>e,CD=(e,t=Que)=>{let r=Jue;e.default&&e.default!==!0&&(e=e.default,r=Object.keys(e));let o={};for(let n of r){let s=t(e[n],n);ce.und(s)||(o[n]=s)}return o},Jue=["config","onProps","onStart","onChange","onPause","onResume","onRest"],$ue={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 ede(e){let t={},r=0;if(Qs(e,(o,n)=>{$ue[n]||(t[n]=o,r++)}),r)return t}function PD(e){let t=ede(e);if(t){let r={to:t};return Qs(e,(o,n)=>n in t||(r[n]=o)),r}return kn({},e)}function ly(e){return e=Fo(e),ce.arr(e)?e.map(ly):rp(e)?Ps.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function B5(e){return ce.fun(e)||ce.arr(e)&&ce.obj(e[0])}var tde={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}},__=1.70158,b_=__*1.525,fD=__+1,mD=2*Math.PI/3,pD=2*Math.PI/4.5,S_=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,rde={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=>fD*e*e*e-__*e*e,easeOutBack:e=>1+fD*Math.pow(e-1,3)+__*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((b_+1)*2*e-b_)/2:(Math.pow(2*e-2,2)*((b_+1)*(e*2-2)+b_)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*mD),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*mD)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*pD))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*pD)/2+1,easeInBounce:e=>1-S_(1-e),easeOutBounce:S_,easeInOutBounce:e=>e<.5?(1-S_(1-2*e))/2:(1+S_(2*e-1))/2},D5=kn({},tde.default,{mass:1,damping:1,easing:rde.linear,clamp:!1}),L5=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,D5)}};function ode(e,t,r){r&&(r=kn({},r),hD(r,t),t=kn({},r,t)),hD(e,t),Object.assign(e,t);for(let a in D5)e[a]==null&&(e[a]=D5[a]);let{mass:o,frequency:n,damping:s}=e;return ce.und(n)||(n<.01&&(n=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/n,2)*o,e.friction=4*Math.PI*s*o/n),e}function hD(e,t){if(!ce.und(t.decay))e.duration=void 0;else{let r=!ce.und(t.tension)||!ce.und(t.friction);(r||!ce.und(t.frequency)||!ce.und(t.damping)||!ce.und(t.mass))&&(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}}var gD=[],M5=class{constructor(){this.changed=!1,this.values=gD,this.toValues=null,this.fromValues=gD,this.to=void 0,this.from=void 0,this.config=new L5,this.immediate=!1}};function kD(e,{key:t,props:r,defaultProps:o,state:n,actions:s}){return new Promise((a,l)=>{var c;let u,d,f=ay((c=r.cancel)!=null?c:o?.cancel,t);if(f)g();else{ce.und(r.pause)||(n.paused=ay(r.pause,t));let y=o?.pause;y!==!0&&(y=n.paused||ay(y,t)),u=Kd(r.delay||0,t),y?(n.resumeQueue.add(h),s.pause()):(s.resume(),h())}function m(){n.resumeQueue.add(h),n.timeouts.delete(d),d.cancel(),u=d.time-He.now()}function h(){u>0&&!Ps.skipAnimation?(n.delayed=!0,d=He.setTimeout(g,u),n.pauseQueue.add(m),n.timeouts.add(d)):g()}function g(){n.delayed&&(n.delayed=!1),n.pauseQueue.delete(m),n.timeouts.delete(d),e<=(n.cancelId||0)&&(f=!0);try{s.start(kn({},r,{callId:e,cancel:f}),a)}catch(y){l(y)}}})}var W5=(e,t)=>t.length==1?t[0]:t.some(r=>r.cancelled)?op(e.get()):t.every(r=>r.noop)?ED(e.get()):ji(e.get(),t.every(r=>r.finished)),ED=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),ji=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),op=e=>({value:e,cancelled:!0,finished:!1});function AD(e,t,r,o){let{callId:n,parentId:s,onRest:a}=t,{asyncTo:l,promise:c}=r;return!s&&e===l&&!t.reset?c:r.promise=(async()=>{r.asyncId=n,r.asyncTo=e;let u=CD(t,(v,b)=>b==="onRest"?void 0:v),d,f,m=new Promise((v,b)=>(d=v,f=b)),h=v=>{let b=n<=(r.cancelId||0)&&op(o)||n!==r.asyncId&&ji(o,!1);if(b)throw v.result=b,f(v),v},g=(v,b)=>{let S=new w_,w=new x_;return(async()=>{if(Ps.skipAnimation)throw cy(r),w.result=ji(o,!1),f(w),w;h(S);let T=ce.obj(v)?kn({},v):kn({},b,{to:v});T.parentId=n,Qs(u,(A,F)=>{ce.und(T[F])&&(T[F]=A)});let C=await o.start(T);return h(S),r.paused&&await new Promise(A=>{r.resumeQueue.add(A)}),C})()},y;if(Ps.skipAnimation)return cy(r),ji(o,!1);try{let v;ce.arr(e)?v=(async b=>{for(let S of b)await g(S)})(e):v=Promise.resolve(e(g,o.stop.bind(o))),await Promise.all([v.then(d),m]),y=ji(o.get(),!0,!1)}catch(v){if(v instanceof w_)y=v.result;else if(v instanceof x_)y=v.result;else throw v}finally{n==r.asyncId&&(r.asyncId=s,r.asyncTo=s?l:void 0,r.promise=s?c:void 0)}return ce.fun(a)&&He.batchedUpdates(()=>{a(y,o,o.item)}),y})()}function cy(e,t){$m(e.timeouts,r=>r.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var w_=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}},x_=class extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}},V5=e=>e instanceof uy,nde=1,uy=class extends Jm{constructor(...t){super(...t),this.id=nde++,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=Vi(this);return t&&t.getValue()}to(...t){return Ps.to(this,t)}interpolate(...t){return sD(),Ps.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,r=!1){Wd(this,{type:"change",parent:this,value:t,idle:r})}_onPriorityChange(t){this.idle||tp.sort(this),Wd(this,{type:"priority",parent:this,priority:t})}},Xd=Symbol.for("SpringPhase"),RD=1,j5=2,z5=4,F5=e=>(e[Xd]&RD)>0,iu=e=>(e[Xd]&j5)>0,ny=e=>(e[Xd]&z5)>0,vD=(e,t)=>t?e[Xd]|=j5|RD:e[Xd]&=~j5,yD=(e,t)=>t?e[Xd]|=z5:e[Xd]&=~z5,U5=class extends uy{constructor(t,r){if(super(),this.key=void 0,this.animation=new M5,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,!ce.und(t)||!ce.und(r)){let o=ce.obj(t)?kn({},t):kn({},r,{from:t});ce.und(o.default)&&(o.default=!0),this.start(o)}}get idle(){return!(iu(this)||this._state.asyncTo)||ny(this)}get goal(){return Fo(this.animation.to)}get velocity(){let t=Vi(this);return t instanceof Yd?t.lastVelocity||0:t.getPayload().map(r=>r.lastVelocity||0)}get hasAnimated(){return F5(this)}get isAnimating(){return iu(this)}get isPaused(){return ny(this)}get isDelayed(){return this._state.delayed}advance(t){let r=!0,o=!1,n=this.animation,{config:s,toValues:a}=n,l=oy(n.to);!l&&Pn(n.to)&&(a=Qn(Fo(n.to))),n.values.forEach((d,f)=>{if(d.done)return;let m=d.constructor==qd?1:l?l[f].lastPosition:a[f],h=n.immediate,g=m;if(!h){if(g=d.lastPosition,s.tension<=0){d.done=!0;return}let y=d.elapsedTime+=t,v=n.fromValues[f],b=d.v0!=null?d.v0:d.v0=ce.arr(s.velocity)?s.velocity[f]:s.velocity,S,w=s.precision||(v==m?.005:Math.min(1,Math.abs(m-v)*.001));if(ce.und(s.duration))if(s.decay){let T=s.decay===!0?.998:s.decay,C=Math.exp(-(1-T)*y);g=v+b/(1-T)*(1-C),h=Math.abs(d.lastPosition-g)<=w,S=b*C}else{S=d.lastVelocity==null?b:d.lastVelocity;let T=s.restVelocity||w/10,C=s.clamp?0:s.bounce,A=!ce.und(C),F=v==m?d.v0>0:v<m,L,j=!1,z=1,M=Math.ceil(t/z);for(let k=0;k<M&&(L=Math.abs(S)>T,!(!L&&(h=Math.abs(m-g)<=w,h)));++k){A&&(j=g==m||g>m==F,j&&(S=-S*C,g=m));let I=-s.tension*1e-6*(g-m),U=-s.friction*.001*S,G=(I+U)/s.mass;S=S+G*z,g=g+S*z}}else{let T=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,d.durationProgress>0&&(d.elapsedTime=s.duration*d.durationProgress,y=d.elapsedTime+=t)),T=(s.progress||0)+y/this._memoizedDuration,T=T>1?1:T<0?0:T,d.durationProgress=T),g=v+s.easing(T)*(m-v),S=(g-d.lastPosition)/t,h=T==1}d.lastVelocity=S,Number.isNaN(g)&&(console.warn("Got NaN while animating:",this),h=!0)}l&&!l[f].done&&(h=!1),h?d.done=!0:r=!1,d.setValue(g,s.round)&&(o=!0)});let c=Vi(this),u=c.getValue();if(r){let d=Fo(n.to);(u!==d||o)&&!s.decay?(c.setValue(d),this._onChange(d)):o&&s.decay&&this._onChange(u),this._stop()}else o&&this._onChange(u)}set(t){return He.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(iu(this)){let{to:t,config:r}=this.animation;He.batchedUpdates(()=>{this._onStart(),r.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,r){let o;return ce.und(t)?(o=this.queue||[],this.queue=[]):o=[ce.obj(t)?t:kn({},r,{to:t})],Promise.all(o.map(n=>this._update(n))).then(n=>W5(this,n))}stop(t){let{to:r}=this.animation;return this._focus(this.get()),cy(this._state,t&&this._lastCallId),He.batchedUpdates(()=>this._stop(r,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 r=this.key||"",{to:o,from:n}=t;o=ce.obj(o)?o[r]:o,(o==null||B5(o))&&(o=void 0),n=ce.obj(n)?n[r]:n,n==null&&(n=void 0);let s={to:o,from:n};return F5(this)||(t.reverse&&([o,n]=[n,o]),n=Fo(n),ce.und(n)?Vi(this)||this._set(o):this._set(n)),s}_update(t,r){let o=kn({},t),{key:n,defaultProps:s}=this;o.default&&Object.assign(s,CD(o,(c,u)=>/^on/.test(u)?xD(c,n):c)),SD(this,o,"onProps"),iy(this,"onProps",o,this);let a=this._prepareNode(o);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 l=this._state;return kD(++this._lastCallId,{key:n,props:o,defaultProps:s,state:l,actions:{pause:()=>{ny(this)||(yD(this,!0),ep(l.pauseQueue),iy(this,"onPause",ji(this,sy(this,this.animation.to)),this))},resume:()=>{ny(this)&&(yD(this,!1),iu(this)&&this._resume(),ep(l.resumeQueue),iy(this,"onResume",ji(this,sy(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(c=>{if(o.loop&&c.finished&&!(r&&c.noop)){let u=OD(o);if(u)return this._update(u,!0)}return c})}_merge(t,r,o){if(r.cancel)return this.stop(!0),o(op(this));let n=!ce.und(t.to),s=!ce.und(t.from);if(n||s)if(r.callId>this._lastToId)this._lastToId=r.callId;else return o(op(this));let{key:a,defaultProps:l,animation:c}=this,{to:u,from:d}=c,{to:f=u,from:m=d}=t;s&&!n&&(!r.default||ce.und(f))&&(f=m),r.reverse&&([f,m]=[m,f]);let h=!_a(m,d);h&&(c.from=m),m=Fo(m);let g=!_a(f,u);g&&this._focus(f);let y=B5(r.to),{config:v}=c,{decay:b,velocity:S}=v;(n||s)&&(v.velocity=0),r.config&&!y&&ode(v,Kd(r.config,a),r.config!==l.config?Kd(l.config,a):void 0);let w=Vi(this);if(!w||ce.und(f))return o(ji(this,!0));let T=ce.und(r.reset)?s&&!r.default:!ce.und(m)&&ay(r.reset,a),C=T?m:this.get(),A=ly(f),F=ce.num(A)||ce.arr(A)||rp(A),L=!y&&(!F||ay(l.immediate||r.immediate,a));if(g){let k=y_(f);if(k!==w.constructor)if(L)w=this._set(A);else throw Error(`Cannot animate between ${w.constructor.name} and ${k.name}, as the "to" prop suggests`)}let j=w.constructor,z=Pn(f),M=!1;if(!z){let k=T||!F5(this)&&h;(g||k)&&(M=_a(ly(C),A),z=!M),(!_a(c.immediate,L)&&!L||!_a(v.decay,b)||!_a(v.velocity,S))&&(z=!0)}if(M&&iu(this)&&(c.changed&&!T?z=!0:z||this._stop(u)),!y&&((z||Pn(u))&&(c.values=w.getPayload(),c.toValues=Pn(f)?null:j==qd?[1]:Qn(A)),c.immediate!=L&&(c.immediate=L,!L&&!T&&this._set(u)),z)){let{onRest:k}=c;Vt(sde,U=>SD(this,r,U));let I=ji(this,sy(this,u));ep(this._pendingCalls,I),this._pendingCalls.add(o),c.changed&&He.batchedUpdates(()=>{c.changed=!T,k?.(I,this),T?Kd(l.onRest,I):c.onStart==null||c.onStart(I,this)})}T&&this._set(C),y?o(AD(r.to,r,this._state,this)):z?this._start():iu(this)&&!g?this._pendingCalls.add(o):o(ED(C))}_focus(t){let r=this.animation;t!==r.to&&(E5(this)&&this._detach(),r.to=t,E5(this)&&this._attach())}_attach(){let t=0,{to:r}=this.animation;Pn(r)&&(nu(r,this),V5(r)&&(t=r.priority+1)),this.priority=t}_detach(){let{to:t}=this.animation;Pn(t)&&su(t,this)}_set(t,r=!0){let o=Fo(t);if(!ce.und(o)){let n=Vi(this);if(!n||!_a(o,n.getValue())){let s=y_(o);!n||n.constructor!=s?v_(this,s.create(o)):n.setValue(o),n&&He.batchedUpdates(()=>{this._onChange(o,r)})}}return Vi(this)}_onStart(){let t=this.animation;t.changed||(t.changed=!0,iy(this,"onStart",ji(this,sy(this,t.to)),this))}_onChange(t,r){r||(this._onStart(),Kd(this.animation.onChange,t,this)),Kd(this.defaultProps.onChange,t,this),super._onChange(t,r)}_start(){let t=this.animation;Vi(this).reset(Fo(t.to)),t.immediate||(t.fromValues=t.values.map(r=>r.lastPosition)),iu(this)||(vD(this,!0),ny(this)||this._resume())}_resume(){Ps.skipAnimation?this.finish():tp.start(this)}_stop(t,r){if(iu(this)){vD(this,!1);let o=this.animation;Vt(o.values,s=>{s.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),Wd(this,{type:"idle",parent:this});let n=r?op(this.get()):ji(this.get(),sy(this,t??o.to));ep(this._pendingCalls,n),o.changed&&(o.changed=!1,iy(this,"onRest",n,this))}}};function sy(e,t){let r=ly(t),o=ly(e.get());return _a(o,r)}function OD(e,t=e.loop,r=e.to){let o=Kd(t);if(o){let n=o!==!0&&PD(o),s=(n||e).reverse,a=!n||n.reset;return H5(kn({},e,{loop:t,default:!1,pause:void 0,to:!s||B5(r)?r:void 0,from:a?e.from:void 0,reset:a},n))}}function H5(e){let{to:t,from:r}=e=PD(e),o=new Set;return ce.obj(t)&&bD(t,o),ce.obj(r)&&bD(r,o),e.keys=o.size?Array.from(o):null,e}function bD(e,t){Qs(e,(r,o)=>r!=null&&t.add(o))}var sde=["onStart","onRest","onChange","onPause","onResume"];function SD(e,t,r){e.animation[r]=t[r]!==TD(t,r)?xD(t[r],e.key):void 0}function iy(e,t,...r){var o,n,s,a;(o=(n=e.animation)[t])==null||o.call(n,...r),(s=(a=e.defaultProps)[t])==null||s.call(a,...r)}var ide=["onStart","onChange","onRest"],ade=1,T_=class{constructor(t,r){this.id=ade++,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),r&&(this._flush=r),t&&this.start(kn({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((r,o)=>t[o]=r.get()),t}set(t){for(let r in t){let o=t[r];ce.und(o)||this.springs[r].set(o)}}update(t){return t&&this.queue.push(H5(t)),this}start(t){let{queue:r}=this;return t?r=Qn(t).map(H5):this.queue=[],this._flush?this._flush(this,r):(FD(this,r),lde(this,r))}stop(t,r){if(t!==!!t&&(r=t),r){let o=this.springs;Vt(Qn(r),n=>o[n].stop(!!t))}else cy(this._state,this._lastAsyncId),this.each(o=>o.stop(!!t));return this}pause(t){if(ce.und(t))this.start({pause:!0});else{let r=this.springs;Vt(Qn(t),o=>r[o].pause())}return this}resume(t){if(ce.und(t))this.start({pause:!1});else{let r=this.springs;Vt(Qn(t),o=>r[o].resume())}return this}each(t){Qs(this.springs,t)}_onFrame(){let{onStart:t,onChange:r,onRest:o}=this._events,n=this._active.size>0,s=this._changed.size>0;(n&&!this._started||s&&!this._started)&&(this._started=!0,$m(t,([c,u])=>{u.value=this.get(),c(u,this,this._item)}));let a=!n&&this._started,l=s||a&&o.size?this.get():null;s&&r.size&&$m(r,([c,u])=>{u.value=l,c(u,this,this._item)}),a&&(this._started=!1,$m(o,([c,u])=>{u.value=l,c(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;He.onFrame(this._onFrame)}};function lde(e,t){return Promise.all(t.map(r=>ID(e,r))).then(r=>W5(e,r))}async function ID(e,t,r){let{keys:o,to:n,from:s,loop:a,onRest:l,onResolve:c}=t,u=ce.obj(t.default)&&t.default;a&&(t.loop=!1),n===!1&&(t.to=null),s===!1&&(t.from=null);let d=ce.arr(n)||ce.fun(n)?n:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Vt(ide,y=>{let v=t[y];if(ce.fun(v)){let b=e._events[y];t[y]=({finished:S,cancelled:w})=>{let T=b.get(v);T?(S||(T.finished=!1),w&&(T.cancelled=!0)):b.set(v,{value:null,finished:S||!1,cancelled:w||!1})},u&&(u[y]=t[y])}});let f=e._state;t.pause===!f.paused?(f.paused=t.pause,ep(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);let m=(o||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),h=t.cancel===!0||TD(t,"cancel")===!0;(d||h&&f.asyncId)&&m.push(kD(++e._lastAsyncId,{props:t,state:f,actions:{pause:u_,resume:u_,start(y,v){h?(cy(f,e._lastAsyncId),v(op(e))):(y.onRest=l,v(AD(d,y,f,e)))}}})),f.paused&&await new Promise(y=>{f.resumeQueue.add(y)});let g=W5(e,await Promise.all(m));if(a&&g.finished&&!(r&&g.noop)){let y=OD(t,a,n);if(y)return FD(e,[y]),ID(e,y,!0)}return c&&He.batchedUpdates(()=>c(g,e,e.item)),g}function cde(e,t){let r=new U5;return r.key=e,t&&nu(r,t),r}function ude(e,t,r){t.keys&&Vt(t.keys,o=>{(e[o]||(e[o]=r(o)))._prepareNode(t)})}function FD(e,t){Vt(t,r=>{ude(e.springs,r,o=>cde(o,e))})}function dde(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,s;for(s=0;s<o.length;s++)n=o[s],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var fde=["children"],Y5=e=>{let{children:t}=e,r=dde(e,fde),o=(0,fy.useContext)(C_),n=r.pause||!!o.pause,s=r.immediate||!!o.immediate;r=iD(()=>({pause:n,immediate:s}),[n,s]);let{Provider:a}=C_;return dy.createElement(a,{value:r},t)},C_=mde(Y5,{});Y5.Provider=C_.Provider;Y5.Consumer=C_.Consumer;function mde(e,t){return Object.assign(e,dy.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var _D;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(_D||(_D={}));var G5=class extends uy{constructor(t,r){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=ou(...r);let o=this._get(),n=y_(o);v_(this,n.create(o))}advance(t){let r=this._get(),o=this.get();_a(r,o)||(Vi(this).setValue(r),this._onChange(r,this.idle)),!this.idle&&wD(this._active)&&N5(this)}_get(){let t=ce.arr(this.source)?this.source.map(Fo):Qn(Fo(this.source));return this.calc(...t)}_start(){this.idle&&!wD(this._active)&&(this.idle=!1,Vt(oy(this),t=>{t.done=!1}),Ps.skipAnimation?(He.batchedUpdates(()=>this.advance()),N5(this)):tp.start(this))}_attach(){let t=1;Vt(Qn(this.source),r=>{Pn(r)&&nu(r,this),V5(r)&&(r.idle||this._active.add(r),t=Math.max(t,r.priority+1))}),this.priority=t,this._start()}_detach(){Vt(Qn(this.source),t=>{Pn(t)&&su(t,this)}),this._active.clear(),N5(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=Qn(this.source).reduce((r,o)=>Math.max(r,(V5(o)?o.priority:0)+1),0))}};function pde(e){return e.idle!==!1}function wD(e){return!e.size||Array.from(e).every(pde)}function N5(e){e.idle||(e.idle=!0,Vt(oy(e),t=>{t.done=!0}),Wd(e,{type:"idle",parent:e}))}Ps.assign({createStringInterpolator:m_,to:(e,t)=>new G5(e,t)});var g6e=tp.advance;var DD=i(q5());function Q5(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,s;for(s=0;s<o.length;s++)n=o[s],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var hde=["style","children","scrollTop","scrollLeft"],LD=/^--/;function gde(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!LD.test(e)&&!(my.hasOwnProperty(e)&&my[e])?t+"px":(""+t).trim()}var BD={};function vde(e,t){if(!e.nodeType||!e.setAttribute)return!1;let r=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",o=t,{style:n,children:s,scrollTop:a,scrollLeft:l}=o,c=Q5(o,hde),u=Object.values(c),d=Object.keys(c).map(f=>r||e.hasAttribute(f)?f:BD[f]||(BD[f]=f.replace(/([A-Z])/g,m=>"-"+m.toLowerCase())));s!==void 0&&(e.textContent=s);for(let f in n)if(n.hasOwnProperty(f)){let m=gde(f,n[f]);LD.test(f)?e.style.setProperty(f,m):e.style[f]=m}d.forEach((f,m)=>{e.setAttribute(f,u[m])}),a!==void 0&&(e.scrollTop=a),l!==void 0&&(e.scrollLeft=l)}var my={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},yde=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),bde=["Webkit","Ms","Moz","O"];my=Object.keys(my).reduce((e,t)=>(bde.forEach(r=>e[yde(r,t)]=e[t]),e),my);var Sde=["x","y","z"],_de=/^(matrix|translate|scale|rotate|skew)/,wde=/^(translate)/,xde=/^(rotate|skew)/,Z5=(e,t)=>ce.num(e)&&e!==0?e+t:e,P_=(e,t)=>ce.arr(e)?e.every(r=>P_(r,t)):ce.num(e)?e===t:parseFloat(e)===t,K5=class extends Zd{constructor(t){let{x:r,y:o,z:n}=t,s=Q5(t,Sde),a=[],l=[];(r||o||n)&&(a.push([r||0,o||0,n||0]),l.push(c=>[`translate3d(${c.map(u=>Z5(u,"px")).join(",")})`,P_(c,0)])),Qs(s,(c,u)=>{if(u==="transform")a.push([c||""]),l.push(d=>[d,d===""]);else if(_de.test(u)){if(delete s[u],ce.und(c))return;let d=wde.test(u)?"px":xde.test(u)?"deg":"";a.push(Qn(c)),l.push(u==="rotate3d"?([f,m,h,g])=>[`rotate3d(${f},${m},${h},${Z5(g,d)})`,P_(g,0)]:f=>[`${u}(${f.map(m=>Z5(m,d)).join(",")})`,P_(f,u.startsWith("scale")?1:0)])}}),a.length&&(s.transform=new X5(a,l)),super(s)}},X5=class extends Jm{constructor(t,r){super(),this._value=null,this.inputs=t,this.transforms=r}get(){return this._value||(this._value=this._get())}_get(){let t="",r=!0;return Vt(this.inputs,(o,n)=>{let s=Fo(o[0]),[a,l]=this.transforms[n](ce.arr(s)?s:o.map(Fo));t+=" "+a,r=r&&l}),r?"none":t}observerAdded(t){t==1&&Vt(this.inputs,r=>Vt(r,o=>Pn(o)&&nu(o,this)))}observerRemoved(t){t==0&&Vt(this.inputs,r=>Vt(r,o=>Pn(o)&&su(o,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Wd(this,t)}},Tde=["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"],Cde=["scrollTop","scrollLeft"];Ps.assign({batchedUpdates:DD.unstable_batchedUpdates,createStringInterpolator:m_,colors:eD});var Pde=dD(Tde,{applyAnimatedValues:vde,createAnimatedStyle:e=>new K5(e),getComponentProps:e=>Q5(e,Cde)}),C6e=Pde.animated;var py=i(N(),1);function MD(e){return{top:e.offsetTop,left:e.offsetLeft}}function VD(e){let t=(0,py.useRef)(null),r=(0,py.useRef)(void 0);return t.current&&(r.current=MD(t.current)),(0,py.useLayoutEffect)(()=>{let o=r.current;if(!o||!t.current||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let n=new T_({x:0,y:0,config:{mass:5,tension:2e3,friction:200},onChange({value:c}){if(!t.current)return;let{x:u,y:d}=c;u=Math.round(u),d=Math.round(d);let f=u===0&&d===0;t.current.style.transform=f?"":`translate3d(${u}px,${d}px,0)`}});t.current.style.transform="";let s=MD(t.current),a=Math.round(o.left-s.left),l=Math.round(o.top-s.top);return n.start({x:0,y:0,from:{x:a,y:l}}),()=>{n.stop(),n.set({x:0,y:0})}},[e]),t}var xe=i(x(),1),{MediaUploadModal:kde}=Io(sp.privateApis);function zD({children:e,index:t,className:r}){let o=VD(t);return(0,xe.jsx)("div",{ref:o,className:r,children:e})}function np(e){return Array.isArray(e)?e:e?[e]:[]}function Ede({render:e,multiple:t,...r}){let[o,n]=(0,Jt.useState)(!1);return window.__experimentalDataViewsMediaModal?(0,xe.jsxs)(xe.Fragment,{children:[e&&e({open:()=>n(!0)}),o&&(0,xe.jsx)(kde,{...r,multiple:t,isOpen:o,onClose:()=>{n(!1),r.onClose?.()},onSelect:s=>{n(!1),r.onSelect?.(s)}})]}):(0,xe.jsx)(sp.MediaUpload,{...r,render:e,multiple:t?"add":void 0})}function $5({open:e,children:t,label:r,showTooltip:o=!1,onFilesDrop:n,attachment:s,isUploading:a=!1}){let l=s&&(0,Qd.isBlobURL)(s.source_url),c=(0,xe.jsxs)("div",{className:re("fields__media-edit-picker-button",{"has-attachment":s}),role:"button",tabIndex:0,onClick:()=>{a||e()},onKeyDown:u=>{a||(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),e())},"aria-label":r,"aria-disabled":a,children:[t,l&&(0,xe.jsx)("span",{className:"fields__media-edit-picker-button-spinner",children:(0,xe.jsx)(ut.Spinner,{})}),!a&&(0,xe.jsx)(ut.DropZone,{onFilesDrop:u=>n(u,s?.id)})]});return o?(0,xe.jsx)(ut.Tooltip,{text:r,placement:"top",children:c}):c}var Ade=["application/zip","application/x-zip-compressed","application/x-rar-compressed","application/x-7z-compressed","application/x-tar","application/x-gzip"];function Rde({attachment:e}){return(0,xe.jsx)(ut.__experimentalTruncate,{className:"fields__media-edit-filename",children:e.title.rendered})}function UD(e){return(0,xe.jsx)($5,{...e,children:(0,xe.jsx)("span",{className:"fields__media-edit-placeholder",children:e.label})})}function HD({itemId:e,index:t,totalItems:r,isUploading:o,moveItem:n,orientation:s="vertical"}){let a=s==="horizontal";return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(ut.Button,{__next40pxDefaultSize:!0,icon:a?Wt:gv,label:a?(0,En.__)("Move left"):(0,En.__)("Move up"),size:"small",disabled:o||t===0,accessibleWhenDisabled:!0,tooltipPosition:"top",onClick:l=>{l.stopPropagation(),n(e,"up")}}),(0,xe.jsx)(ut.Button,{__next40pxDefaultSize:!0,icon:a?Yt:hv,label:a?(0,En.__)("Move right"):(0,En.__)("Move down"),size:"small",disabled:o||t===r-1,accessibleWhenDisabled:!0,tooltipPosition:"top",onClick:l=>{l.stopPropagation(),n(e,"down")}})]})}function GD({attachment:e}){let t=e.source_url,r=e.mime_type||"";return r.startsWith("image")?(0,xe.jsx)("img",{className:"fields__media-edit-thumbnail",alt:e.alt_text||"",src:t}):r.startsWith("audio")?(0,xe.jsx)(ut.Icon,{icon:sA}):r.startsWith("video")?(0,xe.jsx)(ut.Icon,{icon:JR}):Ade.includes(r)?(0,xe.jsx)(ut.Icon,{icon:oA}):(0,xe.jsx)(ut.Icon,{icon:YA})}function Ode({allItems:e,addButtonLabel:t,multiple:r,removeItem:o,moveItem:n,open:s,onFilesDrop:a,isUploading:l,setTargetItemId:c}){return(0,xe.jsxs)("div",{className:re("fields__media-edit-expanded",{"is-multiple":r,"is-single":!r,"is-empty":!e?.length}),children:[e?.map((u,d)=>{let f=u.mime_type?.startsWith("image"),m=(0,Qd.isBlobURL)(u.source_url),h=u.id;return(0,xe.jsxs)(zD,{index:d,className:re("fields__media-edit-expanded-item",{"has-preview-image":f}),children:[(0,xe.jsx)($5,{open:()=>{c(h),s()},label:m?(0,En.__)("Replace"):(0,En.sprintf)((0,En.__)("Replace %s"),u.title.rendered),showTooltip:!0,onFilesDrop:a,attachment:u,isUploading:l,children:(0,xe.jsx)("div",{className:"fields__media-edit-expanded-preview",children:(0,xe.jsx)(ut.__experimentalVStack,{spacing:0,alignment:"center",justify:"center",className:"fields__media-edit-expanded-preview-stack",children:(!m||f)&&(0,xe.jsx)(GD,{attachment:u})})})}),!m&&(0,xe.jsx)("div",{className:"fields__media-edit-expanded-overlay",children:(0,xe.jsxs)(ut.__experimentalHStack,{className:"fields__media-edit-expanded-actions",spacing:0,alignment:"flex-end",expanded:!1,children:[r&&e.length>1&&(0,xe.jsx)(HD,{itemId:h,index:d,totalItems:e.length,isUploading:l,moveItem:n,orientation:"horizontal"}),(0,xe.jsx)(ut.Button,{__next40pxDefaultSize:!0,icon:Zn,label:(0,En.__)("Remove"),size:"small",disabled:l,accessibleWhenDisabled:!0,tooltipPosition:"top",onClick:g=>{g.stopPropagation(),o(h)}})]})})]},u.id)}),(r||!e?.length)&&(0,xe.jsx)(UD,{open:()=>{c(void 0),s()},label:t,onFilesDrop:a,isUploading:l})]})}function Ide({allItems:e,addButtonLabel:t,multiple:r,removeItem:o,moveItem:n,open:s,onFilesDrop:a,isUploading:l,setTargetItemId:c}){return(0,xe.jsxs)(xe.Fragment,{children:[!!e?.length&&(0,xe.jsx)("div",{className:re("fields__media-edit-compact-group",{"is-single":e.length===1}),children:(0,xe.jsx)(ut.__experimentalVStack,{spacing:0,children:e.map((u,d)=>{let f=(0,Qd.isBlobURL)(u.source_url),m=r&&e.length>1,h=u.id;return(0,xe.jsxs)(zD,{index:d,className:"fields__media-edit-compact",children:[(0,xe.jsx)($5,{open:()=>{c(h),s()},label:(0,En.__)("Replace"),showTooltip:!0,onFilesDrop:a,attachment:u,isUploading:l,children:(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(GD,{attachment:u}),!f&&(0,xe.jsx)(Rde,{attachment:u})]})}),!f&&(0,xe.jsxs)(ut.__experimentalHStack,{className:"fields__media-edit-compact-movers",spacing:0,alignment:"flex-end",expanded:!1,children:[m&&(0,xe.jsx)(HD,{itemId:h,index:d,totalItems:e.length,isUploading:l,moveItem:n,orientation:"vertical"}),(0,xe.jsx)(ut.Button,{__next40pxDefaultSize:!0,icon:Zn,label:(0,En.__)("Remove"),size:"small",disabled:l,accessibleWhenDisabled:!0,tooltipPosition:"top",onClick:g=>{g.stopPropagation(),o(h)}})]})]},u.id)})})}),(r||!e?.length)&&(0,xe.jsx)(UD,{open:()=>{c(void 0),s()},label:t,onFilesDrop:a,isUploading:l})]})}function WD({data:e,field:t,onChange:r,hideLabelFromVision:o,allowedTypes:n=["image"],multiple:s,isExpanded:a,validity:l}){let c=t.getValue({item:e}),[u,d]=(0,Jt.useState)(!1),f=(0,Jt.useRef)(null),[m,h]=(0,Jt.useState)(void 0);(0,Jt.useEffect)(()=>{let B=f.current,V=()=>{d(!0)};return B?.addEventListener("invalid",V),()=>B?.removeEventListener("invalid",V)},[]);let g=(0,hy.useSelect)(B=>{if(!c)return null;let H=[...np(c)].sort((ne,se)=>ne-se),{getEntityRecords:X}=B(J5.store);return X("postType","attachment",{include:H})},[c]),y=(0,Jt.useRef)(null);g!==null&&(y.current=g);let v=g;if(g===null&&y.current&&c){let B=new Set(y.current.map(V=>V.id));np(c).every(V=>B.has(V))&&(v=y.current)}let b=(0,Jt.useMemo)(()=>{if(!v)return null;let B=np(c),V=new Map(v.map(H=>[H.id,H]));return B.map(H=>V.get(H)).filter(H=>H!==void 0)},[v,c]),{createErrorNotice:S}=(0,hy.useDispatch)(jD.store),{receiveEntityRecords:w}=(0,hy.useDispatch)(J5.store),[T,C]=(0,Jt.useState)(),A=(0,Jt.useRef)(void 0),[F,L]=(0,Jt.useState)(!1),[j,z]=(0,Jt.useState)([]);(0,Jt.useEffect)(()=>{F&&(L(!1),A.current?.())},[F]);let M=(0,Jt.useCallback)(B=>r(t.setValue({item:e,value:B})),[e,t,r]),k=(0,Jt.useCallback)(B=>{let H=np(c).filter(X=>X!==B);d(!0),M(H.length?H:void 0)},[c,M]),I=(0,Jt.useCallback)((B,V)=>{if(!b)return;let H=b.map(se=>se.id),X=H.indexOf(B),ne=V==="up"?X-1:X+1;[H[X],H[ne]]=[H[ne],H[X]],M(H)},[b,M]),U=(0,Jt.useCallback)((B,V)=>{C(V),(0,sp.uploadMedia)({allowedTypes:n?.length?n:void 0,filesList:B,onFileChange(H){let X=H.filter(ye=>(0,Qd.isBlobURL)(ye.url)).map(ye=>ye.url);if(z(X),X.length)return;w("postType","attachment",[],void 0,!0);let ne=H.map(ye=>ye.id);if(!s){M(ne[0]),C(void 0);return}let se=np(c);if(V===void 0)M([...se,...ne]);else{let ye=[...se];ye.splice(se.indexOf(V),1,...ne),M(ye)}C(void 0)},onError(H){C(void 0),z([]),S(H.message,{type:"snackbar"})},multiple:!!s})},[n,c,s,S,M,w]),G=t.placeholder||(s?(0,En.__)("Choose files"):(0,En.__)("Choose file")),Y=(0,Jt.useMemo)(()=>{if(!j.length)return b;let B=[...b||[]],V=j.map(H=>({id:H,source_url:H,mime_type:(0,Qd.getBlobTypeByURL)(H)}));if(T!==void 0){let H=B.findIndex(X=>X.id===T);B.splice(H,1,...V)}else B.push(...V);return B},[b,T,j]);(0,Jt.useEffect)(()=>{if(!u)return;let B=f.current;if(B)if(l){let V=l?.custom;h(V),V?.type==="invalid"?B.setCustomValidity(V.message||(0,En.__)("Invalid")):B.setCustomValidity("")}else B.setCustomValidity(""),h(void 0)},[u,t.isValid,l]);let Z=(0,Jt.useCallback)(B=>{u||(!B.relatedTarget||!B.currentTarget.contains(B.relatedTarget))&&d(!0)},[u]);return(0,xe.jsxs)("div",{onBlur:Z,children:[(0,xe.jsx)("fieldset",{className:"fields__media-edit","data-field-id":t.id,children:(0,xe.jsx)(Ede,{onSelect:B=>{if(!s){M(B.id),C(void 0);return}let V=Array.isArray(B)?B.map(X=>X.id):[B.id],H=np(c);if(!H.length)M(V);else if(T===void 0){let X=H.filter(se=>V.includes(se)),ne=V.filter(se=>!H.includes(se));M([...X,...ne])}else if(B.id!==T){let X=H.filter(ne=>ne!==B.id);M(X.map(ne=>ne===T?B.id:ne))}C(void 0)},onClose:()=>C(void 0),allowedTypes:n,value:T!==void 0?T:c,multiple:s&&T===void 0,title:t.label,render:({open:B})=>{A.current=B;let V=a?Ode:Ide;return(0,xe.jsxs)(ut.__experimentalVStack,{spacing:2,children:[t.label&&(o?(0,xe.jsx)(ut.VisuallyHidden,{as:"legend",children:t.label}):(0,xe.jsx)(ut.BaseControl.VisualLabel,{as:"legend",style:{marginBottom:0},children:t.label})),(0,xe.jsx)(V,{allItems:Y,addButtonLabel:G,multiple:s,removeItem:k,moveItem:I,open:()=>L(!0),onFilesDrop:U,isUploading:!!j.length,setTargetItemId:C}),t.description&&(0,xe.jsx)(ut.__experimentalText,{variant:"muted",children:t.description})]})}})}),(0,xe.jsx)(ut.VisuallyHidden,{children:(0,xe.jsx)("input",{type:"text",ref:f,value:c??"",tabIndex:-1,"aria-hidden":"true",onChange:()=>{}})}),m&&(0,xe.jsx)("div",{"aria-live":"polite",children:(0,xe.jsxs)("p",{className:re("components-validated-control__indicator",{"is-invalid":m.type==="invalid","is-valid":m.type==="valid"}),children:[(0,xe.jsx)(ut.Icon,{className:"components-validated-control__indicator-icon",icon:Sl,size:16,fill:"currentColor"}),m.message]})})]})}var eO=i(x(),1),YD=({item:e,config:t})=>{let r=e?._embedded?.["wp:featuredmedia"]?.[0],o=r?.source_url;return o?(0,eO.jsx)("img",{className:"fields-controls__featured-image-image",src:o,alt:"",srcSet:r?.media_details?.sizes?Object.values(r.media_details.sizes).map(n=>`${n.source_url} ${n.width}w`).join(", "):void 0,sizes:t?.sizes||"100vw"}):(0,eO.jsx)("span",{className:"fields-controls__featured-image-placeholder"})};var ZD=i(x(),1),Fde={id:"featured_media",type:"media",label:(0,qD.__)("Featured Image"),Edit:e=>(0,ZD.jsx)(WD,{...e,isExpanded:!0}),render:YD,setValue:({value:e})=>({featured_media:e??0}),enableSorting:!1,filterBy:!1},tO=Fde;var nL=i(E(),1);var E_=i(N(),1),rO=i(W(),1),XD=i(R(),1),QD=i(O(),1),JD=i(E(),1);var KD=i(O(),1),au=i(W(),1);function Nde(e,t){return t?e==="page"?`${e}-${t}`:`single-${e}-${t}`:e==="page"?"page":`single-${e}`}var gy="";function k_(e,t,r){return(0,KD.useSelect)(o=>{if(!e||!t)return gy;let n=String(t),s=Io(o(au.store)).getHomePage();if(e==="page"&&s?.postType==="page"&&s?.postId===n){let f=o(au.store).getEntityRecords("postType","wp_template",{per_page:-1})?.find(m=>m.slug==="front-page");if(f)return Ue(f)}let a=Io(o(au.store)).getPostsPageId();if(e==="page"&&a===n){let d=o(au.store).getDefaultTemplateId({slug:"home"});if(!d)return gy;let f=o(au.store).getEntityRecord("postType","wp_template",d);return f?Ue(f):gy}let l=Nde(e,r),c=o(au.store).getDefaultTemplateId({slug:l});if(!c)return gy;let u=o(au.store).getEntityRecord("postType","wp_template",c);return u?Ue(u):gy},[e,t,r])}var $D=i(x(),1),Bde=[],eL=({data:e,field:t,onChange:r})=>{let{id:o}=t,n=e.type,s=typeof e.id=="number"?e.id:parseInt(e.id,10),a=e.slug,{templates:l,canSwitchTemplate:c}=(0,QD.useSelect)(h=>{let g=h(rO.store).getEntityRecords("postType","wp_template",{per_page:-1,post_type:n})??Bde,{getHomePage:y,getPostsPageId:v}=Io(h(rO.store)),b=String(s),S=b!==void 0&&v()===b,w=b!==void 0&&n==="page"&&y()?.postId===b;return{templates:g,canSwitchTemplate:!S&&!w}},[s,n]),u=k_(n,s,a),d=t.getValue({item:e}),f=(0,E_.useCallback)(h=>r({[o]:h}),[o,r]),m=(0,E_.useMemo)(()=>{let h=l.map(g=>({label:Ue(g),value:g.slug}));return[{label:u,value:""},...h]},[l,u]);return(0,$D.jsx)(XD.SelectControl,{__next40pxDefaultSize:!0,label:(0,JD.__)("Template"),hideLabelFromVision:!0,value:d,options:m,onChange:f,disabled:!c})};var tL=i(O(),1),rL=i(W(),1);var A_=i(x(),1),oL=({item:e,field:t})=>{let r=e.type,o=e.slug,n=e.id,s=t.getValue({item:e}),a=k_(r,n,o),l=(0,tL.useSelect)(c=>{if(!s)return;let d=c(rL.store).getEntityRecords("postType","wp_template",{per_page:-1,post_type:r})?.find(f=>f.slug===s);return d?Ue(d):void 0},[r,s]);return(0,A_.jsx)(A_.Fragment,{children:l??a})};var Dde={id:"template",type:"text",label:(0,nL.__)("Template"),Edit:eL,render:oL,enableSorting:!1,filterBy:!1},oO=Dde;var bL=i(E(),1);var nO=i(O_(),1),I_=i(R(),1),sO=i(O(),1),El=i(N(),1),iO=i(W(),1),dL=i(pe(),1),fL=i(vt(),1),lu=i(E(),1),mL=i(zr(),1);var lL=i(vt(),1),cL=i(E(),1);function vy(e){return typeof e.title=="object"&&"rendered"in e.title&&e.title.rendered?(0,lL.decodeEntities)(e.title.rendered):`#${e?.id} (${(0,cL.__)("no title")})`}var kl=i(x(),1);function zde(e){let t=e.map(n=>({children:[],...n}));if(t.some(({parent:n})=>n==null))return t;let r=t.reduce((n,s)=>{let{parent:a}=s;return n[a]||(n[a]=[]),n[a].push(s),n},{}),o=n=>n.map(s=>{let a=r[s.id];return{...s,children:a&&a.length?o(a):[]}});return o(r[0]||[])}var uL=(e,t)=>{let r=(0,nO.default)(e||"").toLowerCase(),o=(0,nO.default)(t||"").toLowerCase();return r===o?0:r.startsWith(o)?r.length:1/0};function Ude({data:e,onChangeControl:t}){let[r,o]=(0,El.useState)(null),n=e.parent,s=e.id,a=e.type,{parentPostTitle:l,pageItems:c,isHierarchical:u}=(0,sO.useSelect)(h=>{let{getEntityRecord:g,getEntityRecords:y,getPostType:v}=h(iO.store),b=v(a),S=b?.hierarchical&&b.viewable,w=n?g("postType",a,n):null,T={per_page:100,exclude:s,parent_exclude:s,orderby:"menu_order",order:"asc",_fields:"id,title,parent",...r!==null&&{search:r,orderby:"relevance"}};return{isHierarchical:S,parentPostTitle:w?vy(w):"",pageItems:S?y("postType",a,T):null}},[r,n,s,a]),d=(0,El.useMemo)(()=>{let h=(b,S=0)=>b.map(C=>[{value:C.id,label:"\u2014 ".repeat(S)+(0,fL.decodeEntities)(C.name),rawName:C.name},...h(C.children||[],S+1)]).sort(([C],[A])=>{let F=uL(C.rawName,r??""),L=uL(A.rawName,r??"");return F>=L?1:-1}).flat();if(!c)return[];let g=c.map(b=>({id:b.id,parent:b.parent??null,name:vy(b)}));r||(g=zde(g));let y=h(g),v=y.find(b=>b.value===n);return n&&l&&!v&&y.unshift({value:n,label:l,rawName:""}),y.map(b=>({...b,value:b.value.toString()}))},[c,r,l,n]);if(!u)return null;let f=h=>{o(h)},m=h=>{if(h)return t(parseInt(h,10)??0);t(0)};return(0,kl.jsx)(I_.ComboboxControl,{__next40pxDefaultSize:!0,label:(0,lu.__)("Parent"),help:(0,lu.__)("Choose a parent page."),value:n?.toString(),options:d,onFilterValueChange:(0,dL.debounce)(h=>f(h),300),onChange:m,hideLabelFromVision:!0})}var pL=({data:e,field:t,onChange:r})=>{let{id:o}=t,n=(0,sO.useSelect)(a=>a(iO.store).getEntityRecord("root","__unstableBase")?.home,[]),s=(0,El.useCallback)(a=>r({[o]:a}),[o,r]);return(0,kl.jsx)("fieldset",{className:"fields-controls__parent",children:(0,kl.jsxs)("div",{children:[(0,El.createInterpolateElement)((0,lu.sprintf)((0,lu.__)('Child pages inherit characteristics from their parent, such as URL structure. For instance, if "Pricing" is a child of "Services", its URL would be %1$s<wbr />/services<wbr />/pricing.'),(0,mL.filterURLForDisplay)(n).replace(/([/.])/g,"<wbr />$1")),{wbr:(0,kl.jsx)("wbr",{})}),(0,kl.jsx)("p",{children:(0,El.createInterpolateElement)((0,lu.__)("They also show up as sub-items in the default navigation menu. <a>Learn more.</a>"),{a:(0,kl.jsx)(I_.ExternalLink,{href:(0,lu.__)("https://wordpress.org/documentation/article/page-post-settings-sidebar/#page-attributes"),children:void 0})})}),(0,kl.jsx)(Ude,{data:e,onChangeControl:s})]})})};var hL=i(O(),1),gL=i(W(),1),vL=i(E(),1);var ip=i(x(),1),yL=({item:e})=>{let t=(0,hL.useSelect)(r=>{let{getEntityRecord:o}=r(gL.store);return e?.parent?o("postType",e.type,e.parent):null},[e.parent,e.type]);return t?(0,ip.jsx)(ip.Fragment,{children:vy(t)}):(0,ip.jsx)(ip.Fragment,{children:(0,vL.__)("None")})};var Hde={id:"parent",type:"text",label:(0,bL.__)("Parent"),Edit:pL,render:yL,enableSorting:!0,filterBy:!1},aO=Hde;var wL=i(E(),1);var lp=i(R(),1),SL=i(N(),1),yy=i(E(),1),ap=i(x(),1);function Gde({data:e,onChange:t,field:r}){let[o,n]=(0,SL.useState)(!!r.getValue({item:e})),s=a=>{n(a),a||t({password:""})};return(0,ap.jsxs)(lp.__experimentalVStack,{as:"fieldset",spacing:4,className:"fields-controls__password",children:[(0,ap.jsx)(lp.CheckboxControl,{label:(0,yy.__)("Password protected"),help:(0,yy.__)("Only visible to those who know the password"),checked:o,onChange:s}),o&&(0,ap.jsx)("div",{className:"fields-controls__password-input",children:(0,ap.jsx)(lp.TextControl,{label:(0,yy.__)("Password"),onChange:a=>t({password:a}),value:r.getValue({item:e})||"",placeholder:(0,yy.__)("Use a secure password"),type:"text",__next40pxDefaultSize:!0,maxLength:255})})]})}var _L=Gde;var Wde={id:"password",type:"text",label:(0,wL.__)("Password"),Edit:_L,enableSorting:!1,enableHiding:!1,isVisible:e=>e.status!=="private",filterBy:!1},lO=Wde;var TL=i(E(),1);var N_=i(R(),1);var Js=i(E(),1),Yde=[{value:"draft",label:(0,Js.__)("Draft"),icon:zm,description:(0,Js.__)("Not ready to publish.")},{value:"future",label:(0,Js.__)("Scheduled"),icon:Ov,description:(0,Js.__)("Publish automatically on a chosen date.")},{value:"pending",label:(0,Js.__)("Pending Review"),icon:Av,description:(0,Js.__)("Waiting for review before publishing.")},{value:"private",label:(0,Js.__)("Private"),icon:Cv,description:(0,Js.__)("Only visible to site admins and editors.")},{value:"publish",label:(0,Js.__)("Published"),icon:Vd,description:(0,Js.__)("Visible to everyone.")},{value:"trash",label:(0,Js.__)("Trash"),icon:Tl}],F_=Yde;var cp=i(x(),1);function qde({item:e}){let t=F_.find(({value:n})=>n===e.status),r=t?.label||e.status,o=t?.icon;return(0,cp.jsxs)(N_.__experimentalHStack,{alignment:"left",spacing:0,children:[o&&(0,cp.jsx)("div",{className:"edit-site-post-list__status-icon",children:(0,cp.jsx)(N_.Icon,{icon:o})}),(0,cp.jsx)("span",{children:r})]})}var xL=qde;var Zde="isAny",Kde={label:(0,TL.__)("Status"),id:"status",type:"text",elements:F_,render:xL,Edit:"radio",enableSorting:!1,filterBy:{operators:[Zde]}},cO=Kde;var up=i(E(),1),Xde={id:"comment_status",label:(0,up.__)("Comments"),type:"text",Edit:"radio",enableSorting:!1,enableHiding:!1,filterBy:!1,elements:[{value:"open",label:(0,up.__)("Open"),description:(0,up.__)("Visitors can add new comments and replies.")},{value:"closed",label:(0,up.__)("Closed"),description:(0,up.__)("Visitors cannot add new comments or replies. Existing comments remain visible.")}]},uO=Xde;var Al=i(E(),1),B_=i(R(),1),dO=i(x(),1);function Qde({data:e,onChange:t}){let r=e?.ping_status??"open",o=n=>{t({...e,ping_status:n?"open":"closed"})};return(0,dO.jsx)(B_.CheckboxControl,{label:(0,Al.__)("Enable pingbacks & trackbacks"),checked:r==="open",onChange:o,help:(0,dO.jsx)(B_.ExternalLink,{href:(0,Al.__)("https://wordpress.org/documentation/article/trackbacks-and-pingbacks/"),children:(0,Al.__)("Learn more about pingbacks & trackbacks")})})}var Jde={id:"ping_status",label:(0,Al.__)("Trackbacks & Pingbacks"),type:"text",Edit:Qde,enableSorting:!1,enableHiding:!1,filterBy:!1,elements:[{value:"open",label:(0,Al.__)("Allow"),description:(0,Al.__)("Allow link notifications from other blogs (pingbacks and trackbacks) on new articles.")},{value:"closed",label:(0,Al.__)("Don't allow"),description:(0,Al.__)("Don't allow link notifications from other blogs (pingbacks and trackbacks) on new articles.")}]},fO=Jde;var dp=i(E(),1),$de={id:"discussion",label:(0,dp.__)("Discussion"),type:"text",render:({item:e})=>{let t=e.comment_status==="open",r=e.ping_status==="open";return t&&r?(0,dp.__)("Open"):t&&!r?(0,dp.__)("Comments only"):!t&&r?(0,dp.__)("Pings only"):(0,dp.__)("Closed")},filterBy:!1},mO=$de;var PL=i(E(),1);var xa=i(E(),1),Sy=i(N(),1),cu=i(mo(),1),wa=i(x(),1),by=e=>(0,cu.dateI18n)((0,cu.getSettings)().formats.datetimeAbbreviated,(0,cu.getDate)(e)),efe=({item:e})=>{if(["draft","private"].includes(e.status??""))return(0,Sy.createInterpolateElement)((0,xa.sprintf)((0,xa.__)("<span>Modified: <time>%s</time></span>"),by(e.date??null)),{span:(0,wa.jsx)("span",{}),time:(0,wa.jsx)("time",{})});if(e.status==="future")return(0,Sy.createInterpolateElement)((0,xa.sprintf)((0,xa.__)("<span>Scheduled: <time>%s</time></span>"),by(e.date??null)),{span:(0,wa.jsx)("span",{}),time:(0,wa.jsx)("time",{})});if(e.status==="publish")return(0,Sy.createInterpolateElement)((0,xa.sprintf)((0,xa.__)("<span>Published: <time>%s</time></span>"),by(e.date??null)),{span:(0,wa.jsx)("span",{}),time:(0,wa.jsx)("time",{})});let n=(0,cu.getDate)(e.modified??null)>(0,cu.getDate)(e.date??null)?e.modified:e.date;return e.status==="pending"?(0,Sy.createInterpolateElement)((0,xa.sprintf)((0,xa.__)("<span>Modified: <time>%s</time></span>"),by(n??null)),{span:(0,wa.jsx)("span",{}),time:(0,wa.jsx)("time",{})}):(0,wa.jsx)("time",{children:by(e.date??null)})},CL=efe;var tfe={id:"date",type:"datetime",label:(0,PL.__)("Date"),render:CL,filterBy:{operators:["before","after"]}},pO=tfe;var IL=i(E(),1),FL=i(O(),1),NL=i(W(),1);var kL=i(E(),1),EL=i(N(),1);var D_=i(R(),1),AL=i(O(),1),RL=i(W(),1),uu=i(x(),1);function rfe({item:e}){let t=e?.author,r=e?._embedded?.author?.[0]?.id,o=!!(t&&r&&t!==r),n=(0,AL.useSelect)(u=>{if(!o)return null;let{getEntityRecord:d}=u(RL.store);return t?d("root","user",t):null},[t,o]),s=n?.name||e?._embedded?.author?.[0]?.name,a=n?.avatar_urls?.[48]||e?._embedded?.author?.[0]?.avatar_urls?.[48],[l,c]=(0,EL.useState)(!1);return(0,uu.jsxs)(D_.__experimentalHStack,{alignment:"left",spacing:0,children:[!!a&&(0,uu.jsx)("div",{className:re("page-templates-author-field__avatar",{"is-loaded":l}),children:(0,uu.jsx)("img",{onLoad:()=>c(!0),alt:(0,kL.__)("Author avatar"),src:a})}),!a&&(0,uu.jsx)("div",{className:"page-templates-author-field__icon",children:(0,uu.jsx)(D_.Icon,{icon:vv})}),(0,uu.jsx)("span",{className:"page-templates-author-field__name",children:s})]})}var OL=rfe;var ofe={label:(0,IL.__)("Author"),id:"author",type:"integer",getElements:async()=>(await(0,FL.resolveSelect)(NL.store).getEntityRecords("root","user",{per_page:-1,who:"authors",_fields:"id,name",context:"view"})??[]).map(({id:t,name:r})=>({value:t,label:r})),setValue:({value:e})=>({author:Number(e)}),render:OL,sort:(e,t,r)=>{let o=e._embedded?.author?.[0]?.name||"",n=t._embedded?.author?.[0]?.name||"";return r==="asc"?o.localeCompare(n):n.localeCompare(o)},filterBy:{operators:["isAny","isNone"]}},hO=ofe;var BL=i(E(),1),nfe={id:"notesCount",label:(0,BL.__)("Notes"),type:"integer",enableSorting:!1,filterBy:!1},gO=nfe;var DL=i(E(),1),sfe={id:"view-post",label:(0,DL._x)("View","verb"),isPrimary:!0,icon:Kn,isEligible(e){return e.status!=="trash"},callback(e,{onActionPerformed:t}){let r=e[0];window.open(r?.link,"_blank"),t&&t(e)}},vO=sfe;var yO=i(O(),1),LL=i(W(),1),du=i(E(),1),ML=i(ct(),1),VL=i(N(),1),Ol=i(R(),1),Rl=i(x(),1);function ife(e){return typeof e.menu_order=="number"&&Number.isInteger(e.menu_order)}function afe({items:e,closeModal:t,onActionPerformed:r}){let[o,n]=(0,VL.useState)(e[0]),{editEntityRecord:s,saveEditedEntityRecord:a}=(0,yO.useDispatch)(LL.store),{createSuccessNotice:l,createErrorNotice:c}=(0,yO.useDispatch)(ML.store),u=ife(o);async function d(f){if(f.preventDefault(),!!u)try{await s("postType",o.type,o.id,{menu_order:o.menu_order}),t?.(),await a("postType",o.type,o.id,{throwOnError:!0}),l((0,du.__)("Order updated."),{type:"snackbar"}),r?.(e)}catch(m){let h=m,g=h.message&&h.code!=="unknown_error"?h.message:(0,du.__)("An error occurred while updating the order");c(g,{type:"snackbar"})}}return(0,Rl.jsx)("form",{onSubmit:d,children:(0,Rl.jsxs)(Ol.__experimentalVStack,{spacing:"5",children:[(0,Rl.jsx)("div",{children:(0,du.__)("Determines the order of pages. Pages with the same order value are sorted alphabetically. Negative order values are supported.")}),(0,Rl.jsx)(Ol.__experimentalInputControl,{__next40pxDefaultSize:!0,label:(0,du.__)("Order"),type:"number",value:typeof o.menu_order=="number"&&Number.isInteger(o.menu_order)?String(o.menu_order):"",onChange:f=>{let m=parseInt(f,10);n({...o,menu_order:isNaN(m)?void 0:m})}}),(0,Rl.jsxs)(Ol.__experimentalHStack,{justify:"right",children:[(0,Rl.jsx)(Ol.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t?.()},children:(0,du.__)("Cancel")}),(0,Rl.jsx)(Ol.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:!u,children:(0,du.__)("Save")})]})]})})}var lfe={id:"order-pages",label:(0,du.__)("Order"),isEligible({status:e}){return e!=="trash"},modalFocusOnMount:"firstContentElement",RenderModal:afe},bO=lfe;var SO=i(O(),1),jL=i(W(),1),Ko=i(E(),1),zL=i(ct(),1),_O=i(N(),1),Fl=i(R(),1);var Il=i(x(),1),cfe={id:"duplicate-post",label:(0,Ko._x)("Duplicate","action label"),isEligible({status:e}){return e!=="trash"},modalFocusOnMount:"firstContentElement",RenderModal:({items:e,closeModal:t,onActionPerformed:r})=>{let[o,n]=(0,_O.useState)({...e[0],title:(0,Ko.sprintf)((0,Ko._x)("%s (Copy)","post"),Ue(e[0]))}),[s,a]=(0,_O.useState)(!1),{saveEntityRecord:l}=(0,SO.useDispatch)(jL.store),{createSuccessNotice:c,createErrorNotice:u}=(0,SO.useDispatch)(zL.store);async function d(f){if(f.preventDefault(),s)return;let m=o.type==="wp_template",h={status:m?"publish":"draft",title:o.title,slug:m?o.slug:o.title||(0,Ko.__)("No title"),comment_status:o.comment_status,content:typeof o.content=="string"?o.content:o.content.raw,excerpt:typeof o.excerpt=="string"?o.excerpt:o.excerpt?.raw,meta:o.meta,parent:o.parent,password:o.password,template:o.template,format:o.format,featured_media:o.featured_media,menu_order:o.menu_order,ping_status:o.ping_status},g="wp:action-assign-";Object.keys(o?._links||{}).filter(v=>v.startsWith(g)).map(v=>v.slice(g.length)).forEach(v=>{o.hasOwnProperty(v)&&(h[v]=o[v])}),a(!0);try{let v=await l("postType",o.type,h,{throwOnError:!0});c((0,Ko.sprintf)((0,Ko.__)('"%s" successfully created.'),Ue(v)),{id:"duplicate-post-action",type:"snackbar"}),r&&r([v])}catch(v){let b=v,S=b.message&&b.code!=="unknown_error"?b.message:(0,Ko.__)("An error occurred while duplicating the page.");u(S,{type:"snackbar"})}finally{a(!1),t?.()}}return(0,Il.jsx)("form",{onSubmit:d,children:(0,Il.jsxs)(Fl.__experimentalVStack,{spacing:3,children:[typeof o.id=="string"&&(0,Il.jsx)("div",{children:(0,Ko.__)("You are about to duplicate a bundled template. Changes will not be live until you activate the new template.")}),(0,Il.jsx)(Fl.__experimentalInputControl,{__next40pxDefaultSize:!0,label:(0,Ko.__)("Title"),placeholder:(0,Ko.__)("No title"),value:Ue(o),onChange:f=>n(m=>({...m,title:f||(0,Ko.__)("No title")}))}),(0,Il.jsxs)(Fl.__experimentalHStack,{spacing:2,justify:"end",children:[(0,Il.jsx)(Fl.Button,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,Ko.__)("Cancel")}),(0,Il.jsx)(Fl.Button,{variant:"primary",type:"submit",isBusy:s,"aria-disabled":s,__next40pxDefaultSize:!0,children:(0,Ko._x)("Duplicate","action label")})]})]})})}},wO=cfe;var xO=i(O(),1),UL=i(W(),1),Jd=i(E(),1),HL=i(N(),1),GL=i(Li(),1),Nl=i(R(),1),WL=i(ct(),1);var fu=i(x(),1),{PATTERN_TYPES:ufe}=Io(GL.privateApis),dfe={id:"rename-post",label:(0,Jd.__)("Rename"),modalFocusOnMount:"firstContentElement",isEligible(e){if(e.status==="trash"||e.type==="wp_template"&&typeof e.id=="string"&&window?.__experimentalTemplateActivate)return!1;let t=["wp_template","wp_template_part"];return window?.__experimentalTemplateActivate||t.push("wp_template"),t.includes(e.type)?mB(e)&&!window?.__experimentalTemplateActivate?JS(e)&&e.is_custom&&e.permissions?.update:pB(e)?e.source==="custom"&&!e?.has_theme_file&&e.permissions?.update:e.type===ufe.user&&e.permissions?.update:e.permissions?.update},RenderModal:({items:e,closeModal:t,onActionPerformed:r})=>{let[o]=e,[n,s]=(0,HL.useState)(()=>Ue(o,"")),{editEntityRecord:a,saveEditedEntityRecord:l}=(0,xO.useDispatch)(UL.store),{createSuccessNotice:c,createErrorNotice:u}=(0,xO.useDispatch)(WL.store);async function d(f){f.preventDefault();try{await a("postType",o.type,o.id,{title:n}),s(""),t?.(),await l("postType",o.type,o.id,{throwOnError:!0}),c((0,Jd.__)("Name updated"),{type:"snackbar"}),r?.(e)}catch(m){let h=m,g=h.message&&h.code!=="unknown_error"?h.message:(0,Jd.__)("An error occurred while updating the name");u(g,{type:"snackbar"})}}return(0,fu.jsx)("form",{onSubmit:d,children:(0,fu.jsxs)(Nl.__experimentalVStack,{spacing:"5",children:[(0,fu.jsx)(Nl.TextControl,{__next40pxDefaultSize:!0,label:(0,Jd.__)("Name"),value:n,onChange:s,required:!0}),(0,fu.jsxs)(Nl.__experimentalHStack,{justify:"right",children:[(0,fu.jsx)(Nl.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t?.()},children:(0,Jd.__)("Cancel")}),(0,fu.jsx)(Nl.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Jd.__)("Save")})]})]})})}},TO=dfe;var Xo=i(O(),1),$d=i(W(),1),Gr=i(E(),1),mu=i(ct(),1),YL=i(N(),1),L_=i(Xe(),1),Bl=i(R(),1),qL=i(zr(),1),ZL=i(Yv(),1);var ef=i(x(),1),ffe=e=>e?e.source==="custom"&&(!!e?.plugin||e?.has_theme_file):!1,mfe=async(e,{allowUndo:t=!0}={})=>{let r="edit-site-template-reverted";if((0,Xo.dispatch)(mu.store).removeNotice(r),!ffe(e)){(0,Xo.dispatch)(mu.store).createErrorNotice((0,Gr.__)("This template is not revertable."),{type:"snackbar"});return}try{let o=(0,Xo.select)($d.store).getEntityConfig("postType",e.type);if(!o){(0,Xo.dispatch)(mu.store).createErrorNotice((0,Gr.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});return}let n=(0,qL.addQueryArgs)(`${o.baseURL}/${e.id}`,{context:"edit",source:e.origin}),s=await(0,ZL.default)({path:n});if(!s){(0,Xo.dispatch)(mu.store).createErrorNotice((0,Gr.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});return}let a=({blocks:u=[]})=>(0,L_.__unstableSerializeAndClean)(u),l=(0,Xo.select)($d.store).getEditedEntityRecord("postType",e.type,e.id);(0,Xo.dispatch)($d.store).editEntityRecord("postType",e.type,e.id,{content:a,blocks:l.blocks,source:"custom"},{undoIgnore:!0});let c=(0,L_.parse)(s?.content?.raw);if((0,Xo.dispatch)($d.store).editEntityRecord("postType",e.type,s.id,{content:a,blocks:c,source:"theme"}),t){let u=()=>{(0,Xo.dispatch)($d.store).editEntityRecord("postType",e.type,l.id,{content:a,blocks:l.blocks,source:"custom"})};(0,Xo.dispatch)(mu.store).createSuccessNotice((0,Gr.__)("Template reset."),{type:"snackbar",id:r,actions:[{label:(0,Gr.__)("Undo"),onClick:u}]})}}catch(o){let n=o.message&&o.code!=="unknown_error"?o.message:(0,Gr.__)("Template revert failed. Please reload.");(0,Xo.dispatch)(mu.store).createErrorNotice(n,{type:"snackbar"})}},pfe={id:"reset-post",label:(0,Gr.__)("Reset"),isEligible:e=>window?.__experimentalTemplateActivate?e.type==="wp_template_part"&&e?.source==="custom"&&e?.has_theme_file:Cl(e)&&e?.source==="custom"&&(!!(e.type==="wp_template"&&e?.plugin)||e?.has_theme_file),icon:bl,supportsBulk:!0,hideModalHeader:!0,modalFocusOnMount:"firstContentElement",RenderModal:({items:e,closeModal:t,onActionPerformed:r})=>{let[o,n]=(0,YL.useState)(!1),{saveEditedEntityRecord:s}=(0,Xo.useDispatch)($d.store),{createSuccessNotice:a,createErrorNotice:l}=(0,Xo.useDispatch)(mu.store),c=async()=>{try{for(let u of e)await mfe(u,{allowUndo:!1}),await s("postType",u.type,u.id);a(e.length>1?(0,Gr.sprintf)((0,Gr.__)("%d items reset."),e.length):(0,Gr.sprintf)((0,Gr.__)('"%s" reset.'),Ue(e[0])),{type:"snackbar",id:"revert-template-action"})}catch(u){let d;e[0].type==="wp_template"?d=e.length===1?(0,Gr.__)("An error occurred while reverting the template."):(0,Gr.__)("An error occurred while reverting the templates."):d=e.length===1?(0,Gr.__)("An error occurred while reverting the template part."):(0,Gr.__)("An error occurred while reverting the template parts.");let f=u,m=f.message&&f.code!=="unknown_error"?f.message:d;l(m,{type:"snackbar"})}};return(0,ef.jsxs)(Bl.__experimentalVStack,{spacing:"5",children:[(0,ef.jsx)(Bl.__experimentalText,{children:(0,Gr.__)("Reset to default and clear all customizations?")}),(0,ef.jsxs)(Bl.__experimentalHStack,{justify:"right",children:[(0,ef.jsx)(Bl.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:o,accessibleWhenDisabled:!0,children:(0,Gr.__)("Cancel")}),(0,ef.jsx)(Bl.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:async()=>{n(!0),await c(),r?.(e),n(!1),t?.()},isBusy:o,disabled:o,accessibleWhenDisabled:!0,children:(0,Gr.__)("Reset")})]})]})}},CO=pfe;var M_=i(E(),1),KL=i(Li(),1);var XL=i(x(),1),{CreatePatternModalContents:hfe,useDuplicatePatternProps:gfe}=Io(KL.privateApis),vfe={id:"duplicate-pattern",label:(0,M_._x)("Duplicate","action label"),isEligible:e=>e.type!=="wp_template_part",modalHeader:(0,M_._x)("Duplicate pattern","action label"),modalFocusOnMount:"firstContentElement",RenderModal:({items:e,closeModal:t})=>{let[r]=e,o=gfe({pattern:r,onSuccess:()=>t?.()});return(0,XL.jsx)(hfe,{onClose:t,confirmLabel:(0,M_._x)("Duplicate","action label"),...o})}},PO=vfe;var fp=function(){return fp=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},fp.apply(this,arguments)};function QL(e){return e.toLowerCase()}var yfe=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],bfe=/[^A-Z0-9]+/gi;function $L(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,o=r===void 0?yfe:r,n=t.stripRegexp,s=n===void 0?bfe:n,a=t.transform,l=a===void 0?QL:a,c=t.delimiter,u=c===void 0?" ":c,d=JL(JL(e,o,"$1\0$2"),s,"\0"),f=0,m=d.length;d.charAt(f)==="\0";)f++;for(;d.charAt(m-1)==="\0";)m--;return d.slice(f,m).split("\0").map(l).join(u)}function JL(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(o,n){return o.replace(n,r)},e)}function eM(e,t){return t===void 0&&(t={}),$L(e,fp({delimiter:"."},t))}function tf(e,t){return t===void 0&&(t={}),eM(e,fp({delimiter:"-"},t))}"stream"in Blob.prototype||Object.defineProperty(Blob.prototype,"stream",{value(){return new Response(this).body}}),"setBigUint64"in DataView.prototype||Object.defineProperty(DataView.prototype,"setBigUint64",{value(e,t,r){let o=Number(0xffffffffn&t),n=Number(t>>32n);this.setUint32(e+(r?0:4),o,r),this.setUint32(e+(r?4:0),n,r)}});var pp=e=>new DataView(new ArrayBuffer(e)),Dl=e=>new Uint8Array(e.buffer||e),mp=e=>new TextEncoder().encode(String(e)),rf=e=>Math.min(4294967295,Number(e)),tM=e=>Math.min(65535,Number(e));function Sfe(e,t){if(t===void 0||t instanceof Date||(t=new Date(t)),e instanceof File)return{isFile:1,t:t||new Date(e.lastModified),i:e.stream()};if(e instanceof Response)return{isFile:1,t:t||new Date(e.headers.get("Last-Modified")||Date.now()),i:e.body};if(t===void 0)t=new Date;else if(isNaN(t))throw new Error("Invalid modification date.");if(e===void 0)return{isFile:0,t};if(typeof e=="string")return{isFile:1,t,i:mp(e)};if(e instanceof Blob)return{isFile:1,t,i:e.stream()};if(e instanceof Uint8Array||e instanceof ReadableStream)return{isFile:1,t,i:e};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return{isFile:1,t,i:Dl(e)};if(Symbol.asyncIterator in e)return{isFile:1,t,i:oM(e[Symbol.asyncIterator]())};throw new TypeError("Unsupported input format.")}function oM(e,t=e){return new ReadableStream({async pull(r){let o=0;for(;r.desiredSize>o;){let n=await e.next();if(!n.value){r.close();break}{let s=_fe(n.value);r.enqueue(s),o+=s.byteLength}}},cancel(r){t.throw?.(r)}})}function _fe(e){return typeof e=="string"?mp(e):e instanceof Uint8Array?e:Dl(e)}function nM(e,t,r){let[o,n]=(function(s){return s?s instanceof Uint8Array?[s,1]:ArrayBuffer.isView(s)||s instanceof ArrayBuffer?[Dl(s),1]:[mp(s),0]:[void 0,0]})(t);if(e instanceof File)return{o:kO(o||mp(e.name)),u:BigInt(e.size),l:n};if(e instanceof Response){let s=e.headers.get("content-disposition"),a=s&&s.match(/;\s*filename\*?=["']?(.*?)["']?$/i),l=a&&a[1]||e.url&&new URL(e.url).pathname.split("/").findLast(Boolean),c=l&&decodeURIComponent(l),u=r||+e.headers.get("content-length");return{o:kO(o||mp(c)),u:BigInt(u),l:n}}return o=kO(o,e!==void 0||r!==void 0),typeof e=="string"?{o,u:BigInt(mp(e).length),l:n}:e instanceof Blob?{o,u:BigInt(e.size),l:n}:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?{o,u:BigInt(e.byteLength),l:n}:{o,u:wfe(e,r),l:n}}function wfe(e,t){return t>-1?BigInt(t):e?void 0:0n}function kO(e,t=1){if(!e||e.every((r=>r===47)))throw new Error("The file must have a name.");if(t)for(;e[e.length-1]===47;)e=e.subarray(0,-1);else e[e.length-1]!==47&&(e=new Uint8Array([...e,47]));return e}var sM=new Uint32Array(256);for(let e=0;e<256;++e){let t=e;for(let r=0;r<8;++r)t=t>>>1^(1&t&&3988292384);sM[e]=t}function rM(e,t=0){t^=-1;for(var r=0,o=e.length;r<o;r++)t=t>>>8^sM[255&t^e[r]];return(-1^t)>>>0}function iM(e,t,r=0){let o=e.getSeconds()>>1|e.getMinutes()<<5|e.getHours()<<11,n=e.getDate()|e.getMonth()+1<<5|e.getFullYear()-1980<<9;t.setUint16(r,o,1),t.setUint16(r+2,n,1)}function xfe({o:e,l:t},r){return 8*(!t||(r??(function(o){try{Tfe.decode(o)}catch{return 0}return 1})(e)))}var Tfe=new TextDecoder("utf8",{fatal:1});function Cfe(e,t=0){let r=pp(30);return r.setUint32(0,1347093252),r.setUint32(4,754976768|t),iM(e.t,r,10),r.setUint16(26,e.o.length,1),Dl(r)}async function*Pfe(e){let{i:t}=e;if("then"in t&&(t=await t),t instanceof Uint8Array)yield t,e.m=rM(t,0),e.u=BigInt(t.length);else{e.u=0n;let r=t.getReader();for(;;){let{value:o,done:n}=await r.read();if(n)break;e.m=rM(o,e.m),e.u+=BigInt(o.length),yield o}}}function kfe(e,t){let r=pp(16+(t?8:0));return r.setUint32(0,1347094280),r.setUint32(4,e.isFile?e.m:0,1),t?(r.setBigUint64(8,e.u,1),r.setBigUint64(16,e.u,1)):(r.setUint32(8,rf(e.u),1),r.setUint32(12,rf(e.u),1)),Dl(r)}function Efe(e,t,r=0,o=0){let n=pp(46);return n.setUint32(0,1347092738),n.setUint32(4,755182848),n.setUint16(8,2048|r),iM(e.t,n,12),n.setUint32(16,e.isFile?e.m:0,1),n.setUint32(20,rf(e.u),1),n.setUint32(24,rf(e.u),1),n.setUint16(28,e.o.length,1),n.setUint16(30,o,1),n.setUint16(40,e.isFile?33204:16893,1),n.setUint32(42,rf(t),1),Dl(n)}function Afe(e,t,r){let o=pp(r);return o.setUint16(0,1,1),o.setUint16(2,r-4,1),16&r&&(o.setBigUint64(4,e.u,1),o.setBigUint64(12,e.u,1)),o.setBigUint64(r-8,t,1),Dl(o)}function aM(e){return e instanceof File||e instanceof Response?[[e],[e]]:[[e.input,e.name,e.size],[e.input,e.lastModified]]}var Rfe=e=>(function(t){let r=BigInt(22),o=0n,n=0;for(let s of t){if(!s.o)throw new Error("Every file must have a non-empty name.");if(s.u===void 0)throw new Error(`Missing size for file "${new TextDecoder().decode(s.o)}".`);let a=s.u>=0xffffffffn,l=o>=0xffffffffn;o+=BigInt(46+s.o.length+(a&&8))+s.u,r+=BigInt(s.o.length+46+(12*l|28*a)),n||(n=a)}return(n||o>=0xffffffffn)&&(r+=BigInt(76)),r+o})((function*(t){for(let r of t)yield nM(...aM(r)[0])})(e));function lM(e,t={}){let r={"Content-Type":"application/zip","Content-Disposition":"attachment"};return(typeof t.length=="bigint"||Number.isInteger(t.length))&&t.length>0&&(r["Content-Length"]=String(t.length)),t.metadata&&(r["Content-Length"]=String(Rfe(t.metadata))),new Response(Ofe(e,t),{headers:r})}function Ofe(e,t={}){let r=(function(o){let n=o[Symbol.iterator in o?Symbol.iterator:Symbol.asyncIterator]();return{async next(){let s=await n.next();if(s.done)return s;let[a,l]=aM(s.value);return{done:0,value:Object.assign(Sfe(...l),nM(...a))}},throw:n.throw?.bind(n),[Symbol.asyncIterator](){return this}}})(e);return oM((async function*(o,n){let s=[],a=0n,l=0n,c=0;for await(let f of o){let m=xfe(f,n.buffersAreUTF8);yield Cfe(f,m),yield new Uint8Array(f.o),f.isFile&&(yield*Pfe(f));let h=f.u>=0xffffffffn,g=12*(a>=0xffffffffn)|28*h;yield kfe(f,h),s.push(Efe(f,a,m,g)),s.push(f.o),g&&s.push(Afe(f,a,g)),h&&(a+=8n),l++,a+=BigInt(46+f.o.length)+f.u,c||(c=h)}let u=0n;for(let f of s)yield f,u+=BigInt(f.length);if(c||a>=0xffffffffn){let f=pp(76);f.setUint32(0,1347094022),f.setBigUint64(4,BigInt(44),1),f.setUint32(12,755182848),f.setBigUint64(24,l,1),f.setBigUint64(32,l,1),f.setBigUint64(40,u,1),f.setBigUint64(48,a,1),f.setUint32(56,1347094023),f.setBigUint64(64,a+u,1),f.setUint32(72,1,1),yield Dl(f)}let d=pp(22);d.setUint32(0,1347093766),d.setUint16(8,tM(l),1),d.setUint16(10,tM(l),1),d.setUint32(12,rf(u),1),d.setUint32(16,rf(a),1),yield Dl(d)})(r,t),r)}var EO=i(Qv(),1),AO=i(E(),1);function cM(e){return JSON.stringify({__file:e.type,title:Ue(e),content:typeof e.content=="string"?e.content:e.content?.raw,syncStatus:e.wp_pattern_sync_status},null,2)}var Ife={id:"export-pattern",label:(0,AO.__)("Export as JSON"),icon:LA,supportsBulk:!0,isEligible:e=>e.type==="wp_block",callback:async e=>{if(e.length===1)return(0,EO.downloadBlob)(`${tf(Ue(e[0])||e[0].slug)}.json`,cM(e[0]),"application/json");let t={},r=e.map(o=>{let n=tf(Ue(o)||o.slug);return t[n]=(t[n]||0)+1,{name:`${n+(t[n]>1?"-"+(t[n]-1):"")}.json`,lastModified:new Date,input:cM(o)}});return(0,EO.downloadBlob)((0,AO.__)("patterns-export")+".zip",await lM(r).blob(),"application/zip")}},RO=Ife;var uM=i(zr(),1),V_=i(E(),1),Ffe={id:"view-post-revisions",context:"list",label(e){let t=e[0]._links?.["version-history"]?.[0]?.count??0;return(0,V_.sprintf)((0,V_.__)("View revisions (%d)"),t)},isEligible(e){if(e.status==="trash")return!1;let t=e?._links?.["predecessor-version"]?.[0]?.id??null,r=e?._links?.["version-history"]?.[0]?.count??0;return!!t&&r>1},callback(e,{onActionPerformed:t}){let r=e[0],o=(0,uM.addQueryArgs)("revision.php",{revision:r?._links?.["predecessor-version"]?.[0]?.id});document.location.href=o,t&&t(e)}},OO=Ffe;var dM=i(W(),1),$r=i(E(),1),fM=i(ct(),1);var mM=i(N(),1),IO=i(O(),1),Ll=i(R(),1),pM=i(vt(),1);var of=i(x(),1),Nfe={id:"permanently-delete",label:(0,$r.__)("Permanently delete"),supportsBulk:!0,icon:Tl,isEligible(e){if(Cl(e)||e.type==="wp_block")return!1;let{status:t,permissions:r}=e;return t==="trash"&&r?.delete},hideModalHeader:!0,modalFocusOnMount:"firstContentElement",RenderModal:({items:e,closeModal:t,onActionPerformed:r})=>{let[o,n]=(0,mM.useState)(!1),{createSuccessNotice:s,createErrorNotice:a}=(0,IO.useDispatch)(fM.store),{deleteEntityRecord:l}=(0,IO.useDispatch)(dM.store);return(0,of.jsxs)(Ll.__experimentalVStack,{spacing:"5",children:[(0,of.jsx)(Ll.__experimentalText,{children:e.length>1?(0,$r.sprintf)((0,$r._n)("Are you sure you want to permanently delete %d item?","Are you sure you want to permanently delete %d items?",e.length),e.length):(0,$r.sprintf)((0,$r.__)('Are you sure you want to permanently delete "%s"?'),(0,pM.decodeEntities)(Ue(e[0])))}),(0,of.jsxs)(Ll.__experimentalHStack,{justify:"right",children:[(0,of.jsx)(Ll.Button,{variant:"tertiary",onClick:t,disabled:o,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,$r.__)("Cancel")}),(0,of.jsx)(Ll.Button,{variant:"primary",onClick:async()=>{n(!0);let c=await Promise.allSettled(e.map(u=>l("postType",u.type,u.id,{force:!0},{throwOnError:!0})));if(c.every(({status:u})=>u==="fulfilled")){let u;c.length===1?u=(0,$r.sprintf)((0,$r.__)('"%s" permanently deleted.'),Ue(e[0])):u=(0,$r.__)("The items were permanently deleted."),s(u,{type:"snackbar",id:"permanently-delete-post-action"}),r?.(e)}else{let u;if(c.length===1){let d=c[0];d.reason?.message?u=d.reason.message:u=(0,$r.__)("An error occurred while permanently deleting the item.")}else{let d=new Set,f=c.filter(({status:m})=>m==="rejected");for(let m of f){let h=m;h.reason?.message&&d.add(h.reason.message)}d.size===0?u=(0,$r.__)("An error occurred while permanently deleting the items."):d.size===1?u=(0,$r.sprintf)((0,$r.__)("An error occurred while permanently deleting the items: %s"),[...d][0]):u=(0,$r.sprintf)((0,$r.__)("Some errors occurred while permanently deleting the items: %s"),[...d].join(","))}a(u,{type:"snackbar"})}n(!1),t?.()},isBusy:o,disabled:o,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,$r.__)("Delete permanently")})]})]})}},FO=Nfe;var hM=i(W(),1),An=i(E(),1),gM=i(ct(),1);var Bfe={id:"restore",label:(0,An.__)("Restore"),isPrimary:!0,icon:bl,supportsBulk:!0,isEligible(e){return!Cl(e)&&e.type!=="wp_block"&&e.status==="trash"&&e.permissions?.update},async callback(e,{registry:t,onActionPerformed:r}){let{createSuccessNotice:o,createErrorNotice:n}=t.dispatch(gM.store),{editEntityRecord:s,saveEditedEntityRecord:a}=t.dispatch(hM.store);await Promise.allSettled(e.map(c=>s("postType",c.type,c.id,{status:"draft"})));let l=await Promise.allSettled(e.map(c=>a("postType",c.type,c.id,{throwOnError:!0})));if(l.every(({status:c})=>c==="fulfilled")){let c;e.length===1?c=(0,An.sprintf)((0,An.__)('"%s" has been restored.'),Ue(e[0])):e[0].type==="page"?c=(0,An.sprintf)((0,An.__)("%d pages have been restored."),e.length):c=(0,An.sprintf)((0,An.__)("%d posts have been restored."),e.length),o(c,{type:"snackbar",id:"restore-post-action"}),r&&r(e)}else{let c;if(l.length===1){let u=l[0];u.reason?.message?c=u.reason.message:c=(0,An.__)("An error occurred while restoring the post.")}else{let u=new Set,d=l.filter(({status:f})=>f==="rejected");for(let f of d){let m=f;m.reason?.message&&u.add(m.reason.message)}u.size===0?c=(0,An.__)("An error occurred while restoring the posts."):u.size===1?c=(0,An.sprintf)((0,An.__)("An error occurred while restoring the posts: %s"),[...u][0]):c=(0,An.sprintf)((0,An.__)("Some errors occurred while restoring the posts: %s"),[...u].join(","))}n(c,{type:"snackbar"})}}},NO=Bfe;var BO=i(O(),1),vM=i(W(),1),Nr=i(E(),1),yM=i(ct(),1),bM=i(N(),1),Ml=i(R(),1);var nf=i(x(),1),Dfe={id:"move-to-trash",label:(0,Nr._x)("Trash","verb"),isPrimary:!0,icon:Tl,isEligible(e){return e.type==="wp_template_part"||e.type==="wp_block"||e.type==="wp_template"&&typeof e.id=="string"?!1:!!e.status&&!["auto-draft","trash"].includes(e.status)&&e.permissions?.delete},supportsBulk:!0,hideModalHeader:!0,modalFocusOnMount:"firstContentElement",RenderModal:({items:e,closeModal:t,onActionPerformed:r})=>{let[o,n]=(0,bM.useState)(!1),{createSuccessNotice:s,createErrorNotice:a}=(0,BO.useDispatch)(yM.store),{deleteEntityRecord:l}=(0,BO.useDispatch)(vM.store);return(0,nf.jsxs)(Ml.__experimentalVStack,{spacing:"5",children:[(0,nf.jsx)(Ml.__experimentalText,{children:e.length===1?(0,Nr.sprintf)((0,Nr.__)('Are you sure you want to move "%s" to the trash?'),Ue(e[0])):(0,Nr.sprintf)((0,Nr._n)("Are you sure you want to move %d item to the trash ?","Are you sure you want to move %d items to the trash ?",e.length),e.length)}),(0,nf.jsxs)(Ml.__experimentalHStack,{justify:"right",children:[(0,nf.jsx)(Ml.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:o,accessibleWhenDisabled:!0,children:(0,Nr.__)("Cancel")}),(0,nf.jsx)(Ml.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:async()=>{n(!0);let c=await Promise.allSettled(e.map(u=>l("postType",u.type,u.id.toString(),{},{throwOnError:!0})));if(c.every(({status:u})=>u==="fulfilled")){let u;c.length===1?u=(0,Nr.sprintf)((0,Nr.__)('"%s" moved to the trash.'),Ue(e[0])):u=(0,Nr.sprintf)((0,Nr._n)("%d item moved to the trash.","%d items moved to the trash.",e.length),e.length),s(u,{type:"snackbar",id:"move-to-trash-action"})}else{let u;if(c.length===1){let d=c[0];d.reason?.message?u=d.reason.message:u=(0,Nr.__)("An error occurred while moving the item to the trash.")}else{let d=new Set,f=c.filter(({status:m})=>m==="rejected");for(let m of f){let h=m;h.reason?.message&&d.add(h.reason.message)}d.size===0?u=(0,Nr.__)("An error occurred while moving the items to the trash."):d.size===1?u=(0,Nr.sprintf)((0,Nr.__)("An error occurred while moving the item to the trash: %s"),[...d][0]):u=(0,Nr.sprintf)((0,Nr.__)("Some errors occurred while moving the items to the trash: %s"),[...d].join(","))}a(u,{type:"snackbar"})}r&&r(e),n(!1),t?.()},isBusy:o,disabled:o,accessibleWhenDisabled:!0,children:(0,Nr._x)("Trash","verb")})]})]})}},DO=Dfe;var Ct=i(E(),1),xM=i(N(),1),Vl=i(R(),1),TM=i(Li(),1),MO=i(vt(),1);var SM=i(ct(),1),_M=i(W(),1),LO=i(O(),1);function Lfe(e){let t=new Set;if(e.length===1){let r=e[0];r.reason?.message&&t.add(r.reason.message)}else{let r=e.filter(({status:o})=>o==="rejected");for(let o of r){let n=o;n.reason?.message&&t.add(n.reason.message)}}return t}var wM=async(e,t,r)=>{let{createSuccessNotice:o,createErrorNotice:n}=(0,LO.dispatch)(SM.store),{deleteEntityRecord:s}=(0,LO.dispatch)(_M.store),a=await Promise.allSettled(e.map(l=>s("postType",l.type,l.id,{force:!0},{throwOnError:!0})));if(a.every(({status:l})=>l==="fulfilled")){let l;a.length===1?l=t.success.messages.getMessage(e[0]):l=t.success.messages.getBatchMessage(e),o(l,{type:t.success.type??"snackbar",id:t.success.id}),r.onActionPerformed?.(e)}else{let l=Lfe(a),c="";a.length===1?c=t.error.messages.getMessage(l):c=t.error.messages.getBatchMessage(l),n(c,{type:t.error.type??"snackbar",id:t.error.id}),r.onActionError?.()}};var sf=i(x(),1),{PATTERN_TYPES:Mfe}=Io(TM.privateApis),Vfe={id:"delete-post",label:(0,Ct.__)("Delete"),isPrimary:!0,icon:Tl,isEligible(e){return Cl(e)?JS(e):e.type===Mfe.user},supportsBulk:!0,hideModalHeader:!0,modalFocusOnMount:"firstContentElement",RenderModal:({items:e,closeModal:t,onActionPerformed:r})=>{let[o,n]=(0,xM.useState)(!1),s=e.every(a=>Cl(a)&&a?.has_theme_file);return(0,sf.jsxs)(Vl.__experimentalVStack,{spacing:"5",children:[(0,sf.jsx)(Vl.__experimentalText,{children:e.length>1?(0,Ct.sprintf)((0,Ct._n)("Delete %d item?","Delete %d items?",e.length),e.length):(0,Ct.sprintf)((0,Ct._x)('Delete "%s"?',"template part"),Ue(e[0]))}),(0,sf.jsxs)(Vl.__experimentalHStack,{justify:"right",children:[(0,sf.jsx)(Vl.Button,{variant:"tertiary",onClick:t,disabled:o,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,Ct.__)("Cancel")}),(0,sf.jsx)(Vl.Button,{variant:"primary",onClick:async()=>{n(!0),await wM(e,{success:{messages:{getMessage:l=>s?(0,Ct.sprintf)((0,Ct.__)('"%s" reset.'),(0,MO.decodeEntities)(Ue(l))):(0,Ct.sprintf)((0,Ct._x)('"%s" deleted.',"template part"),(0,MO.decodeEntities)(Ue(l))),getBatchMessage:()=>s?(0,Ct.__)("Items reset."):(0,Ct.__)("Items deleted.")}},error:{messages:{getMessage:l=>l.size===1?[...l][0]:s?(0,Ct.__)("An error occurred while reverting the item."):(0,Ct.__)("An error occurred while deleting the item."),getBatchMessage:l=>l.size===0?s?(0,Ct.__)("An error occurred while reverting the items."):(0,Ct.__)("An error occurred while deleting the items."):l.size===1?s?(0,Ct.sprintf)((0,Ct.__)("An error occurred while reverting the items: %s"),[...l][0]):(0,Ct.sprintf)((0,Ct.__)("An error occurred while deleting the items: %s"),[...l][0]):s?(0,Ct.sprintf)((0,Ct.__)("Some errors occurred while reverting the items: %s"),[...l].join(",")):(0,Ct.sprintf)((0,Ct.__)("Some errors occurred while deleting the items: %s"),[...l].join(","))}}},{onActionPerformed:r}),n(!1),t?.()},isBusy:o,disabled:o,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,Ct.__)("Delete")})]})]})}},VO=Vfe;var BM=i(O(),1),jl=i(E(),1),DM=i(ct(),1),LM=i(N(),1),MM=i(Xe(),1);var Qo=i(R(),1),IM=i(pe(),1),z_=i(W(),1),gp=i(O(),1),j_=i(N(),1),hp=i(E(),1);var FM=i(ct(),1),NM=i(Xe(),1);var CM=i(O(),1),PM=i(W(),1),kM=()=>(0,CM.useSelect)(e=>e(PM.store).getEntityRecords("postType","wp_template_part",{per_page:-1}),[])??[],EM=(e,t)=>{let r=e.toLowerCase(),o=t.map(s=>s.title.rendered.toLowerCase());if(!o.includes(r))return e;let n=2;for(;o.includes(`${r} ${n}`);)n++;return`${e} ${n}`},AM=e=>tf(e).replace(/[^\w-]+/g,"")||"wp-custom-part";var eo=i(x(),1);function RM(e,t){return`fields-create-template-part-modal__area-option-${e}-${t}`}function OM(e,t){return`fields-create-template-part-modal__area-option-description-${e}-${t}`}function vp({modalTitle:e,...t}){let r=(0,gp.useSelect)(o=>o(z_.store).getPostType("wp_template_part")?.labels?.add_new_item,[]);return(0,eo.jsx)(Qo.Modal,{title:e||r,onRequestClose:t.closeModal,overlayClassName:"fields-create-template-part-modal",focusOnMount:"firstContentElement",size:"medium",children:(0,eo.jsx)(jO,{...t})})}var jfe=e=>e==="header"?Sv:e==="footer"?bv:e==="sidebar"?Bv:e==="navigation-overlay"?Tv:zd;function jO({defaultArea:e="uncategorized",blocks:t=[],confirmLabel:r=(0,hp.__)("Add"),closeModal:o,onCreate:n,onError:s,defaultTitle:a=""}){let{createErrorNotice:l}=(0,gp.useDispatch)(FM.store),{saveEntityRecord:c}=(0,gp.useDispatch)(z_.store),u=kM(),[d,f]=(0,j_.useState)(a),[m,h]=(0,j_.useState)(e),[g,y]=(0,j_.useState)(!1),v=(0,IM.useInstanceId)(vp),b=(0,gp.useSelect)(w=>w(z_.store).getCurrentTheme()?.default_template_part_areas,[]);async function S(){if(!(!d||g))try{y(!0);let w=EM(d,u),T=AM(w),C=await c("postType","wp_template_part",{slug:T,title:w,content:(0,NM.serialize)(t),area:m},{throwOnError:!0});await n(C)}catch(w){let T=w instanceof Error&&"code"in w&&w.message&&w.code!=="unknown_error"?w.message:(0,hp.__)("An error occurred while creating the template part.");l(T,{type:"snackbar"}),s?.()}finally{y(!1)}}return(0,eo.jsx)("form",{onSubmit:async w=>{w.preventDefault(),await S()},children:(0,eo.jsxs)(Qo.__experimentalVStack,{spacing:"4",children:[(0,eo.jsx)(Qo.TextControl,{__next40pxDefaultSize:!0,label:(0,hp.__)("Name"),value:d,onChange:f,required:!0}),(0,eo.jsxs)("fieldset",{className:"fields-create-template-part-modal__area-fieldset",children:[(0,eo.jsx)(Qo.BaseControl.VisualLabel,{as:"legend",children:(0,hp.__)("Area")}),(0,eo.jsx)("div",{className:"fields-create-template-part-modal__area-radio-group",children:(b??[]).map(w=>{let T=jfe(w.icon);return(0,eo.jsxs)("div",{className:"fields-create-template-part-modal__area-radio-wrapper",children:[(0,eo.jsx)("input",{type:"radio",id:RM(w.area,v),name:`fields-create-template-part-modal__area-${v}`,value:w.area,checked:m===w.area,onChange:()=>{h(w.area)},"aria-describedby":OM(w.area,v)}),(0,eo.jsx)(Qo.Icon,{icon:T,className:"fields-create-template-part-modal__area-radio-icon"}),(0,eo.jsx)("label",{htmlFor:RM(w.area,v),className:"fields-create-template-part-modal__area-radio-label",children:w.label}),(0,eo.jsx)(Qo.Icon,{icon:xs,className:"fields-create-template-part-modal__area-radio-checkmark"}),(0,eo.jsx)("p",{className:"fields-create-template-part-modal__area-radio-description",id:OM(w.area,v),children:w.description})]},w.area)})})]}),(0,eo.jsxs)(Qo.__experimentalHStack,{justify:"right",children:[(0,eo.jsx)(Qo.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{o()},children:(0,hp.__)("Cancel")}),(0,eo.jsx)(Qo.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit","aria-disabled":!d||g,isBusy:g,children:r})]})]})})}var VM=i(x(),1),zfe={id:"duplicate-template-part",label:(0,jl._x)("Duplicate","action label"),isEligible:e=>e.type==="wp_template_part",modalHeader:(0,jl._x)("Duplicate template part","action label"),modalFocusOnMount:"firstContentElement",RenderModal:({items:e,closeModal:t})=>{let[r]=e,o=(0,LM.useMemo)(()=>r.blocks??(0,MM.parse)(typeof r.content=="string"?r.content:r.content.raw,{__unstableSkipMigrationLogs:!0}),[r.content,r.blocks]),{createSuccessNotice:n}=(0,BM.useDispatch)(DM.store);function s(a){n((0,jl.sprintf)((0,jl._x)('"%s" duplicated.',"template part"),Ue(a)),{type:"snackbar",id:"edit-site-patterns-success"}),t?.()}return(0,VM.jsx)(jO,{blocks:o,defaultArea:r.area,defaultTitle:(0,jl.sprintf)((0,jl._x)("%s (Copy)","template part"),Ue(r)),onCreate:s,onError:t,confirmLabel:(0,jl._x)("Duplicate","action label"),closeModal:t??(()=>{})})}},zO=zfe;var jM=i(E(),1),zM=i(R(),1),UM=i(x(),1),Ufe={id:"alt_text",type:"text",label:(0,jM.__)("Alt text"),isVisible:e=>e?.media_type==="image",render:({item:e})=>e?.alt_text||"-",Edit:({field:e,onChange:t,data:r})=>(0,UM.jsx)(zM.TextareaControl,{label:e.label,value:r.alt_text||"",onChange:o=>t({alt_text:o}),rows:2}),enableSorting:!1,filterBy:!1},UO=Ufe;var ZM=i(E(),1);var H_=i(N(),1),HM=i(E(),1);function U_(e){return e?typeof e=="string"?e:typeof e=="object"&&(e.rendered||e.raw)||"":""}var G_=i(x(),1);function GM({item:e}){let[t,r]=(0,H_.useState)(null),o=e.post,n=e._embedded?.["wp:attached-to"]?.[0]?.id,s=e._embedded?.["wp:attached-to"]?.[0]?.title;return(0,H_.useEffect)(()=>{o&&o===n&&r(U_(s)||n?.toString()||""),o||r((0,HM.__)("(Unattached)"))},[o,n,s]),(0,G_.jsx)(G_.Fragment,{children:t})}var Y_=i(W(),1),q_=i(R(),1),W_=i(E(),1),af=i(N(),1),WM=i(pe(),1),YM=i(O(),1);var HO=i(x(),1);function qM({data:e,onChange:t}){let r=e.post&&e?._embedded?.["wp:attached-to"]?.[0]?[{label:U_(e._embedded?.["wp:attached-to"]?.[0]?.title),value:e.post.toString()}]:[],[o,n]=(0,af.useState)(r),[s,a]=(0,af.useState)([]),[l,c]=(0,af.useState)(!1),[u,d]=(0,af.useState)(e?.post?.toString()??null),f=(0,YM.useSelect)(v=>v(Y_.store).getPostTypes(),[]),m=()=>{t({post:0,_embedded:{...e?._embedded,"wp:attached-to":void 0}}),n([])},h=async v=>{c(!0);let b=await(0,Y_.__experimentalFetchLinkSuggestions)(v,{type:"post",isInitialSuggestions:!0},{});a(b);let S=b.map(w=>({label:w.title,value:w.id.toString()}));n(S),c(!1)},g=v=>{if(!v){m();return}if(d(v),v){let b=s.find(S=>S.id===Number(v));if(b&&f){let S=f.find(T=>T.slug===b?.type),w={...S&&{type:S.slug},id:Number(v),title:{raw:b.title,rendered:b.title}};t({post:Number(v),_embedded:{...e?._embedded,"wp:attached-to":[w]}})}}},y=e.post?(0,af.createInterpolateElement)((0,W_.__)("Search for a post or page to attach this media to or <button>detach current</button>."),{button:(0,HO.jsx)(q_.Button,{__next40pxDefaultSize:!0,onClick:m,variant:"link",accessibleWhenDisabled:!0})}):(0,W_.__)("Search for a post or page to attach this media to.");return(0,HO.jsx)(q_.ComboboxControl,{className:"dataviews-media-field__attached-to",__next40pxDefaultSize:!0,isLoading:l,label:(0,W_.__)("Attached to"),help:y,value:u,options:o,onFilterValueChange:(0,WM.debounce)(v=>h(v),300),onChange:g,hideLabelFromVision:!0})}var Hfe={id:"attached_to",type:"text",label:(0,ZM.__)("Attached to"),Edit:qM,render:GM,enableSorting:!1,filterBy:!1},GO=Hfe;var QM=i(E(),1),JM=i(O(),1),$M=i(W(),1);var KM=i(E(),1),yp=i(N(),1);var Z_=i(R(),1),pu=i(x(),1);function XM({item:e}){let t=e?._embedded?.author?.[0],r=t?.name,o=t?.avatar_urls?.[48],[n,s]=(0,yp.useState)("loading");(0,yp.useEffect)(()=>{s("loading")},[o]);let a=(0,yp.useCallback)(c=>{c?.complete&&s("instant")},[]),l=()=>{n==="loading"&&s("loaded")};return(0,pu.jsxs)(Z_.__experimentalHStack,{alignment:"left",spacing:0,children:[!!o&&(0,pu.jsx)("div",{className:re("media-author-field__avatar",{"is-loading":n==="loading","is-loaded":n==="loaded"}),children:(0,pu.jsx)("img",{ref:a,onLoad:l,alt:(0,KM.__)("Author avatar"),src:o})}),!o&&(0,pu.jsx)("div",{className:"media-author-field__icon",children:(0,pu.jsx)(Z_.Icon,{icon:vv})}),(0,pu.jsx)("span",{className:"media-author-field__name",children:r})]})}var Gfe={label:(0,QM.__)("Author"),id:"author",type:"integer",getElements:async()=>(await(0,JM.resolveSelect)($M.store).getEntityRecords("root","user",{per_page:-1,who:"authors",_fields:"id,name",context:"view"})??[]).map(({id:t,name:r})=>({value:t,label:r})),render:XM,sort:(e,t,r)=>{let o=e._embedded?.author?.[0]?.name||"",n=t._embedded?.author?.[0]?.name||"";return r==="asc"?o.localeCompare(n):n.localeCompare(o)},filterBy:{operators:["isAny","isNone"]},readOnly:!0},WO=Gfe;var eV=i(E(),1),tV=i(R(),1);function hu(e){return e?typeof e=="string"?e:typeof e=="object"&&"raw"in e&&e.raw||"":""}var rV=i(x(),1),Wfe={id:"caption",type:"text",label:(0,eV.__)("Caption"),getValue:({item:e})=>hu(e?.caption),render:({item:e})=>hu(e?.caption)||"-",Edit:({field:e,onChange:t,data:r})=>(0,rV.jsx)(tV.TextareaControl,{label:e.label,value:hu(r.caption)||"",onChange:o=>t({caption:o}),rows:2}),enableSorting:!1,filterBy:!1},YO=Wfe;var oV=i(E(),1),nV=i(mo(),1),Yfe={id:"date",type:"datetime",label:(0,oV.__)("Date added"),filterBy:{operators:["before","after"]},format:{datetime:(0,nV.getSettings)().formats.datetimeAbbreviated},readOnly:!0},qO=Yfe;var sV=i(E(),1),iV=i(R(),1);var ZO=i(x(),1),qfe={id:"description",type:"text",label:(0,sV.__)("Description"),getValue:({item:e})=>hu(e?.description),render:({item:e})=>(0,ZO.jsx)("div",{children:hu(e?.description)||"-"}),Edit:({field:e,onChange:t,data:r})=>(0,ZO.jsx)(iV.TextareaControl,{label:e.label,value:hu(r.description)||"",onChange:o=>t({description:o}),rows:5}),enableSorting:!1,filterBy:!1},KO=qfe;var dV=i(E(),1),fV=i(zr(),1);var K_=i(R(),1),lV=i(N(),1),cV=i(zr(),1),bp=i(x(),1),aV=15;function uV({item:e}){let t=(0,lV.useMemo)(()=>e?.source_url?(0,cV.getFilename)(e.source_url):null,[e?.source_url]);return t?t.length>aV?(0,bp.jsx)(K_.Tooltip,{text:t,children:(0,bp.jsx)(K_.__experimentalTruncate,{limit:aV,ellipsizeMode:"tail",children:t})}):(0,bp.jsx)(bp.Fragment,{children:t}):""}var Zfe={id:"filename",type:"text",label:(0,dV.__)("File name"),getValue:({item:e})=>(0,fV.getFilename)(e?.source_url||""),render:uV,enableSorting:!1,filterBy:!1,readOnly:!0},XO=Zfe;var Jo=i(E(),1),pV=1024,hV=1024*pV,gV=1024*hV,vV=1024*gV,yV=1024*vV,bV=1024*yV,SV=1024*bV,Kfe=1024*SV;function mV(e,t,r=2){return(0,Jo.sprintf)((0,Jo._x)("%1$s %2$s","file size"),e.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:r}),t)}function Xfe(e,t=2){if(e===0)return mV(0,(0,Jo._x)("B","unit symbol"),t);let r={[(0,Jo._x)("YB","unit symbol")]:Kfe,[(0,Jo._x)("ZB","unit symbol")]:SV,[(0,Jo._x)("EB","unit symbol")]:bV,[(0,Jo._x)("PB","unit symbol")]:yV,[(0,Jo._x)("TB","unit symbol")]:vV,[(0,Jo._x)("GB","unit symbol")]:gV,[(0,Jo._x)("MB","unit symbol")]:hV,[(0,Jo._x)("KB","unit symbol")]:pV,[(0,Jo._x)("B","unit symbol")]:1};for(let[o,n]of Object.entries(r))if(e>=n)return mV(e/n,o,t);return""}var Qfe={id:"filesize",type:"text",label:(0,Jo.__)("File size"),getValue:({item:e})=>e?.media_details?.filesize?Xfe(e?.media_details?.filesize):"",isVisible:e=>!!e?.media_details?.filesize,enableSorting:!1,filterBy:!1,readOnly:!0},QO=Qfe;var Sp=i(E(),1),Jfe={id:"media_dimensions",type:"text",label:(0,Sp.__)("Dimensions"),getValue:({item:e})=>e?.media_details?.width&&e?.media_details?.height?(0,Sp.sprintf)((0,Sp._x)("%1$s \xD7 %2$s","image dimensions"),e?.media_details?.width?.toString(),e?.media_details?.height?.toString()):"",isVisible:e=>!!(e?.media_details?.width&&e?.media_details?.height),enableSorting:!1,filterBy:!1,readOnly:!0},JO=Jfe;var _V=i(E(),1),$fe={id:"mime_type",type:"text",label:(0,_V.__)("File type"),getValue:({item:e})=>e?.mime_type||"",render:({item:e})=>e?.mime_type||"-",enableSorting:!1,filterBy:!1,readOnly:!0},$O=$fe;var aH=i(E(),1);var nH=i(E(),1),S6=i($(),1),sH=i(O(),1),_b=i(W(),1);var As=i(N(),1),Mp=i(O(),1),LI=i(E(),1),Ui=i(W(),1),Vp=i($(),1),c9=i(ct(),1),u9=i(Li(),1),d9=i(Xe(),1);var wV=i(N(),1),_p=i(O(),1),xV=i(pe(),1),TV=i($(),1);var X_=i(x(),1);function eme(e,t,r){if(!r)return t;let o=e.get(t);return o||(o=(0,_p.createRegistry)({"core/block-editor":TV.storeConfig},t),o.registerStore("core/editor",_y),e.set(t,o)),o}var tme=(0,xV.createHigherOrderComponent)(e=>({useSubRegistry:t=!0,...r})=>{let o=(0,_p.useRegistry)(),[n]=(0,wV.useState)(()=>new WeakMap),s=eme(n,o,t);return s===o?(0,X_.jsx)(e,{registry:o,...r}):(0,X_.jsx)(_p.RegistryProvider,{value:s,children:(0,X_.jsx)(e,{registry:s,...r})})},"withRegistryProvider"),CV=tme;var uf=i(N(),1),Rp=i(O(),1),ks=i(W(),1),T8=i(E(),1),C8=i(dt(),1),P8=i(pe(),1),k8=i(Xe(),1),cw=i($(),1);var to=i(E(),1),PV=i(O(),1),Q_=i(vt(),1),kV=i(W(),1),gu=(e,t)=>`<a ${tI(e)}>${t}</a>`,tI=e=>`href="${e}" target="_blank" rel="noreferrer noopener"`,rme=(e,t)=>{let r=e.trim();return e!=="pdm"&&(r=e.toUpperCase().replace("SAMPLING","Sampling")),t&&(r+=` ${t}`),["pdm","cc0"].includes(e)||(r=`CC ${r}`),r},ome=e=>{let{title:t,foreign_landing_url:r,creator:o,creator_url:n,license:s,license_version:a,license_url:l}=e,c=rme(s,a),u=(0,Q_.decodeEntities)(o),d;return u?d=t?(0,to.sprintf)((0,to._x)('"%1$s" by %2$s/ %3$s',"caption"),gu(r,(0,Q_.decodeEntities)(t)),n?gu(n,u):u,l?gu(`${l}?ref=openverse`,c):c):(0,to.sprintf)((0,to._x)("<a %1$s>Work</a> by %2$s/ %3$s","caption"),tI(r),n?gu(n,u):u,l?gu(`${l}?ref=openverse`,c):c):d=t?(0,to.sprintf)((0,to._x)('"%1$s"/ %2$s',"caption"),gu(r,(0,Q_.decodeEntities)(t)),l?gu(`${l}?ref=openverse`,c):c):(0,to.sprintf)((0,to._x)("<a %1$s>Work</a>/ %2$s","caption"),tI(r),l?gu(`${l}?ref=openverse`,c):c),d.replace(/\s{2}/g," ")},eI=async(e={})=>(await(0,PV.resolveSelect)(kV.store).getEntityRecords("postType","attachment",{...e,orderBy:e?.search?"relevance":"date"})).map(r=>({...r,alt:r.alt_text,url:r.source_url,previewUrl:r.media_details?.sizes?.medium?.source_url,caption:r.caption?.raw})),nme=[{name:"images",labels:{name:(0,to.__)("Images"),search_items:(0,to.__)("Search images")},mediaType:"image",async fetch(e={}){return eI({...e,media_type:"image"})}},{name:"videos",labels:{name:(0,to.__)("Videos"),search_items:(0,to.__)("Search videos")},mediaType:"video",async fetch(e={}){return eI({...e,media_type:"video"})}},{name:"audio",labels:{name:(0,to.__)("Audio"),search_items:(0,to.__)("Search audio")},mediaType:"audio",async fetch(e={}){return eI({...e,media_type:"audio"})}},{name:"openverse",labels:{name:(0,to.__)("Openverse"),search_items:(0,to.__)("Search Openverse")},mediaType:"image",async fetch(e={}){let r={...e,...{mature:!1,excluded_source:"flickr,inaturalist,wikimedia",license:"pdm,cc0"}},o={per_page:"page_size",search:"q"},n=new URL("https://api.openverse.org/v1/images/");return Object.entries(r).forEach(([c,u])=>{let d=o[c]||c;n.searchParams.set(d,u)}),(await(await window.fetch(n,{headers:{"User-Agent":"WordPress/inserter-media-fetch"}})).json()).results.map(c=>({...c,title:c.title?.toLowerCase().startsWith("file:")?c.title.slice(5):c.title,sourceId:c.id,id:void 0,caption:ome(c),previewUrl:c.thumbnail}))},getReportUrl:({sourceId:e})=>`https://wordpress.org/openverse/image/${e}/report/`,isExternalResource:!0}],EV=nme;var J_,sme=new Uint8Array(16);function rI(){if(!J_&&(J_=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!J_))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return J_(sme)}var No=[];for(let e=0;e<256;++e)No.push((e+256).toString(16).slice(1));function AV(e,t=0){return No[e[t+0]]+No[e[t+1]]+No[e[t+2]]+No[e[t+3]]+"-"+No[e[t+4]]+No[e[t+5]]+"-"+No[e[t+6]]+No[e[t+7]]+"-"+No[e[t+8]]+No[e[t+9]]+"-"+No[e[t+10]]+No[e[t+11]]+No[e[t+12]]+No[e[t+13]]+No[e[t+14]]+No[e[t+15]]}var ime=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),oI={randomUUID:ime};function ame(e,t,r){if(oI.randomUUID&&!t&&!e)return oI.randomUUID();e=e||{};let o=e.random||(e.rng||rI)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){r=r||0;for(let n=0;n<16;++n)t[r+n]=o[n];return t}return AV(o)}var wp=ame;var wy=i(O(),1),RV=i(W(),1),OV=i(Hd(),1);var lme=()=>{};function $_({additionalData:e={},allowedTypes:t,filesList:r,maxUploadFileSize:o,onError:n=lme,onFileChange:s,onSuccess:a,multiple:l=!0}){let{receiveEntityRecords:c}=(0,wy.dispatch)(RV.store),{getCurrentPost:u,getEditorSettings:d}=(0,wy.select)(_),{lockPostAutosaving:f,unlockPostAutosaving:m,lockPostSaving:h,unlockPostSaving:g}=(0,wy.dispatch)(_),y=d().allowedMimeTypes,v=`image-upload-${wp()}`,b=!1;o=o||d().maxUploadFileSize;let S=u(),w=typeof S?.id=="number"?S.id:S?.wp_id,T=()=>{window.__clientSideMediaProcessing||(h(v),f(v),b=!0)},C=w?{post:w}:{},A=()=>{window.__clientSideMediaProcessing||(g(v),m(v),b=!1)};(0,OV.uploadMedia)({allowedTypes:t,filesList:r,onFileChange:F=>{window.__clientSideMediaProcessing||(b?A():T()),s?.(F);let L=F.filter(j=>j?.id);L?.length&&c("postType","attachment",L,void 0,!0)},onSuccess:a,additionalData:{...C,...e},maxUploadFileSize:o,onError:({message:F})=>{window.__clientSideMediaProcessing||A(),n(F)},wpAllowedMimeTypes:y,multiple:l})}var IV=i(zr(),1),FV=i(Ws(),1);function NV(e){return(0,FV.default)("wp.editor.cleanForSlug",{since:"12.7",plugin:"Gutenberg",alternative:"wp.url.cleanForSlug"}),(0,IV.cleanForSlug)(e)}var BV=i(O(),1),DV=i(W(),1);function LV(e){let{invalidateResolution:t}=(0,BV.dispatch)(DV.store);for(let r of e)r.id&&(t("getEntityRecord",["postType","attachment",r.id,{context:"view"}]),t("getEntityRecord",["postType","attachment",r.id]))}var MV=i(Hd(),1);var{sideloadMedia:cme}=D(MV.privateApis),VV=cme;var w8=i($(),1),kp=i(W(),1),Ep=i(O(),1),Ap=i(N(),1);function vu(e,t,r){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};let o=t.pop(),n=e;for(let s of t){let a=n[s];n=n[s]=Array.isArray(a)?[...a]:{...a}}return n[o]=r,e}var Pt=(e,t,r)=>{let o=Array.isArray(t)?t:t.split("."),n=e;return o.forEach(s=>{n=n?.[s]}),n??r};var ume=["appearanceTools","useRootPaddingAwareAlignments","background.backgroundImage","background.backgroundRepeat","background.backgroundSize","background.backgroundPosition","border.color","border.radius","border.radiusSizes","border.style","border.width","shadow.presets","shadow.defaultPresets","color.background","color.button","color.caption","color.custom","color.customDuotone","color.customGradient","color.defaultDuotone","color.defaultGradients","color.defaultPalette","color.duotone","color.gradients","color.heading","color.link","color.palette","color.text","custom","dimensions.aspectRatio","dimensions.height","dimensions.minHeight","dimensions.width","dimensions.dimensionSizes","layout.contentSize","layout.definitions","layout.wideSize","lightbox.enabled","lightbox.allowEditing","position.fixed","position.sticky","spacing.customSpacingSize","spacing.defaultSpacingSizes","spacing.spacingSizes","spacing.spacingScale","spacing.blockGap","spacing.margin","spacing.padding","spacing.units","typography.fluid","typography.customFontSize","typography.defaultFontSizes","typography.dropCap","typography.fontFamilies","typography.fontSizes","typography.fontStyle","typography.fontWeight","typography.letterSpacing","typography.lineHeight","typography.textAlign","typography.textColumns","typography.textDecoration","typography.textIndent","typography.textTransform","typography.writingMode"];function lf(e,t,r){let o=r?".blocks."+r:"",n=t?"."+t:"",s=`settings${o}${n}`,a=`settings${n}`;if(t)return Pt(e,s)??Pt(e,a);let l={};return ume.forEach(c=>{let u=Pt(e,`settings${o}.${c}`)??Pt(e,`settings.${c}`);u!==void 0&&(l=vu(l,c.split("."),u))}),l}function xy(e,t,r,o){let n=o?".blocks."+o:"",s=t?"."+t:"",a=`settings${n}${s}`;return vu(e,a.split("."),r)}var UV=i(nI(),1);var dme="1600px",fme="320px",mme=1,pme=.25,hme=.75,gme="14px";function zV({minimumFontSize:e,maximumFontSize:t,fontSize:r,minimumViewportWidth:o=fme,maximumViewportWidth:n=dme,scaleFactor:s=mme,minimumFontSizeLimit:a}){if(a=Ta(a)?a:gme,r){let w=Ta(r);if(!w?.unit||!w?.value)return null;let T=Ta(a,{coerceTo:w.unit});if(T?.value&&!e&&!t&&w?.value<=T?.value)return null;if(t||(t=`${w.value}${w.unit}`),!e){let C=w.unit==="px"?w.value:w.value*16,A=Math.min(Math.max(1-.075*Math.log2(C),pme),hme),F=Ty(w.value*A,3);T?.value&&F<T?.value?e=`${T.value}${T.unit}`:e=`${F}${w.unit}`}}let l=Ta(e),c=l?.unit||"rem",u=Ta(t,{coerceTo:c});if(!l||!u)return null;let d=Ta(e,{coerceTo:"rem"}),f=Ta(n,{coerceTo:c}),m=Ta(o,{coerceTo:c});if(!f||!m||!d)return null;let h=f.value-m.value;if(!h)return null;let g=Ty(m.value/100,3),y=Ty(g,3)+c,v=100*((u.value-l.value)/h),b=Ty((v||1)*s,3),S=`${d.value}${d.unit} + ((1vw - ${y}) * ${b})`;return`clamp(${e}, ${S}, ${t})`}function Ta(e,t={}){if(typeof e!="string"&&typeof e!="number")return null;isFinite(e)&&(e=`${e}px`);let{coerceTo:r,rootSizeValue:o,acceptableUnits:n}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},s=n?.join("|"),a=new RegExp(`^(\\d*\\.?\\d+)(${s}){1,1}$`),l=e.toString().match(a);if(!l||l.length<3)return null;let[,c,u]=l,d=parseFloat(c);return r==="px"&&(u==="em"||u==="rem")&&(d=d*o,u=r),u==="px"&&(r==="em"||r==="rem")&&(d=d/o,u=r),(r==="em"||r==="rem")&&(u==="em"||u==="rem")&&(u=r),u?{value:Ty(d,3),unit:u}:null}function Ty(e,t=3){let r=Math.pow(10,t);return Math.round(e*r)/r}function sI(e){let t=e?.fluid;return t===!0||t&&typeof t=="object"&&Object.keys(t).length>0}function vme(e){let t=e?.typography??{},r=e?.layout,o=Ta(r?.wideSize)?r?.wideSize:null;return sI(t)&&o?{fluid:{maxViewportWidth:o,...typeof t.fluid=="object"?t.fluid:{}}}:{fluid:t?.fluid}}function ew(e,t){let{size:r}=e;if(!r||r==="0"||e?.fluid===!1||!sI(t?.typography)&&!sI(e))return r;let o=vme(t)?.fluid??{},n=zV({minimumFontSize:typeof e?.fluid=="boolean"?void 0:e?.fluid?.min,maximumFontSize:typeof e?.fluid=="boolean"?void 0:e?.fluid?.max,fontSize:r,minimumFontSizeLimit:typeof o=="object"?o?.minFontSize:void 0,maximumViewportWidth:typeof o=="object"?o?.maxViewportWidth:void 0,minimumViewportWidth:typeof o=="object"?o?.minViewportWidth:void 0});return n||r}var Ca="body",Cy=":root",xp=[{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)=>ew(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 zi(e,t){if(!e||!t)return t;let r=e.split(","),o=t.split(","),n=[];return r.forEach(s=>{o.forEach(a=>{n.push(`${s.trim()} ${a.trim()}`)})}),n.join(", ")}function HV(e,t){if(!e||!t)return;let r={};return Object.entries(t).forEach(([o,n])=>{typeof n=="string"&&(r[o]=zi(e,n)),typeof n=="object"&&(r[o]={},Object.entries(n).forEach(([s,a])=>{r[o][s]=zi(e,a)}))}),r}function GV(e,t){return e.includes(",")?e.split(",").map(n=>n+t).join(","):e+t}function WV(e,t){let r=`.is-style-${e}`;if(!t)return r;let o=/((?::\([^)]+\))?\s*)([^\s:]+)/,n=(a,l,c)=>l+c+r;return t.split(",").map(a=>a.replace(o,n)).join(",")}function yme(e,t){if(!e||!t)return e;if(typeof e=="object"&&"ref"in e&&e?.ref){let r=(0,UV.getCSSValueFromRawStyle)(Pt(t,e.ref));return typeof r=="object"&&r!==null&&"ref"in r&&r?.ref?void 0:r===void 0?e:r}return e}function bme(e,t){if(!e||!t||!Array.isArray(t))return e;let r=t.find(o=>o?.name===e);return r?.href?r?.href:e}function iI(e,t){if(!e||!t)return e;let r=yme(e,t);return typeof r=="object"&&r!==null&&"url"in r&&r?.url&&(r.url=bme(r.url,t?._links?.["wp:theme-file"])),r}function YV(e,t,r=[],o="slug",n){let s=[t?Pt(e,["blocks",t,...r]):void 0,Pt(e,r)].filter(Boolean);for(let a of s)if(a){let l=["custom","theme","default"];for(let c of l){let u=a[c];if(u){let d=u.find(f=>f[o]===n);if(d)return o==="slug"||YV(e,t,r,"slug",d.slug)[o]===d[o]?d:void 0}}}}function Sme(e,t,r,[o,n]=[]){let s=xp.find(l=>l.cssVarInfix===o);if(!s||!e.settings)return r;let a=YV(e.settings,t,s.path,"slug",n);if(a){let{valueKey:l}=s,c=a[l];return tw(e,t,c)}return r}function _me(e,t,r,o=[]){let n=(t?Pt(e?.settings??{},["blocks",t,"custom",...o]):void 0)??Pt(e?.settings??{},["custom",...o]);return n?tw(e,t,n):r}function tw(e,t,r){if(!r||typeof r!="string")if(typeof r=="object"&&r!==null&&"ref"in r&&typeof r.ref=="string"){let u=Pt(e,r.ref);if(!u||typeof u=="object"&&"ref"in u)return u;r=u}else return r;let o="var:",n="var(--wp--",s=")",a;if(r.startsWith(o))a=r.slice(o.length).split("|");else if(r.startsWith(n)&&r.endsWith(s))a=r.slice(n.length,-s.length).split("--");else return r;let[l,...c]=a;return l==="preset"?Sme(e,t,r,c):l==="custom"?_me(e,t,r,c):r}function Py(e,t,r,o=!0){let n=t?"."+t:"",s=r?`styles.blocks.${r}${n}`:`styles${n}`;if(!e)return;let a=Pt(e,s);return o?tw(e,r,a):a}function ky(e,t,r,o){let n=t?"."+t:"",s=o?`styles.blocks.${o}${n}`:`styles${n}`;return vu(e,s.split("."),r)}var lI=i(aI(),1);function cf(e,t){return typeof e!="object"||typeof t!="object"?e===t:(0,lI.default)(e?.styles,t?.styles)&&(0,lI.default)(e?.settings,t?.settings)}var $V=i(rw(),1);function QV(e){return Object.prototype.toString.call(e)==="[object Object]"}function JV(e){var t,r;return QV(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(QV(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}function go(e,t){return(0,$V.default)(e,t,{isMergeableObject:JV,customMerge:r=>{if(r==="backgroundImage")return(o,n)=>n??o}})}function e8(e,t){var r=0,o,n;t=t||{};function s(){var a=o,l=arguments.length,c,u;e:for(;a;){if(a.args.length!==arguments.length){a=a.next;continue}for(u=0;u<l;u++)if(a.args[u]!==arguments[u]){a=a.next;continue e}return a!==o&&(a===n&&(n=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=o,a.prev=null,o.prev=a,o=a),a.val}for(c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return a={args:c,val:e.apply(null,c)},o?(o.prev=a,a.next=o):n=a,r===t.maxSize?(n=n.prev,n.next=null):r++,o=a,a.val}return s.clear=function(){o=null,n=null,r=0},s}var ft=i(E(),1),t8=i(Xe(),1),ow=new Map,Bme=[],cI={caption:(0,ft.__)("Caption"),link:(0,ft.__)("Link"),button:(0,ft.__)("Button"),heading:(0,ft.__)("Heading"),h1:(0,ft.__)("H1"),h2:(0,ft.__)("H2"),h3:(0,ft.__)("H3"),h4:(0,ft.__)("H4"),h5:(0,ft.__)("H5"),h6:(0,ft.__)("H6"),"settings.color":(0,ft.__)("Color"),"settings.typography":(0,ft.__)("Typography"),"settings.shadow":(0,ft.__)("Shadow"),"settings.layout":(0,ft.__)("Layout"),"styles.color":(0,ft.__)("Colors"),"styles.spacing":(0,ft.__)("Spacing"),"styles.background":(0,ft.__)("Background"),"styles.typography":(0,ft.__)("Typography")},Dme=e8(()=>(0,t8.getBlockTypes)().reduce((e,{name:t,title:r})=>(e[t]=r,e),{})),nw=e=>e!==null&&typeof e=="object";function Lme(e){if(cI[e])return cI[e];let t=e.split(".");if(t?.[0]==="blocks")return Dme()?.[t[1]]||t[1];if(t?.[0]==="elements")return cI[t[1]]||t[1]}function r8(e,t,r=""){if(!nw(e)&&!nw(t))return e!==t?r.split(".").slice(0,2).join("."):void 0;e=nw(e)?e:{},t=nw(t)?t:{};let o=new Set([...Object.keys(e),...Object.keys(t)]),n=[];for(let s of o){let a=r?r+"."+s:s,l=r8(e[s],t[s],a);l&&(n=n.concat(l))}return n}function Mme(e,t){let r=JSON.stringify({next:e,previous:t});if(ow.has(r))return ow.get(r);let o=r8({styles:{background:e?.styles?.background,color:e?.styles?.color,typography:e?.styles?.typography,spacing:e?.styles?.spacing},blocks:e?.styles?.blocks,elements:e?.styles?.elements,settings:e?.settings},{styles:{background:t?.styles?.background,color:t?.styles?.color,typography:t?.styles?.typography,spacing:t?.styles?.spacing},blocks:t?.styles?.blocks,elements:t?.styles?.elements,settings:t?.settings});if(!o||Array.isArray(o)&&!o.length)return ow.set(r,[]),[];let n=Array.isArray(o)?o:[o],s=[...new Set(n)].reduce((a,l)=>{let c=Lme(l);return c&&a.push([l.split(".")[0],c]),a},[]);return ow.set(r,s),s}function Ay(e,t,r={}){let o=Mme(e,t),n=o.length,{maxResults:s}=r;return n?(s&&n>s&&(o=o.slice(0,s)),Object.entries(o.reduce((a,l)=>{let c=a[l[0]]||[];return c.includes(l[1])||(a[l[0]]=[...c,l[1]]),a},{})).map(([a,l])=>{let c=l.length,u=l.join((0,ft.__)(", "));switch(a){case"blocks":return(0,ft.sprintf)((0,ft._n)("%s block.","%s blocks.",c),u);case"elements":return(0,ft.sprintf)((0,ft._n)("%s element.","%s elements.",c),u);case"settings":return(0,ft.sprintf)((0,ft.__)("%s settings."),u);case"styles":return(0,ft.sprintf)((0,ft.__)("%s styles."),u);default:return(0,ft.sprintf)((0,ft.__)("%s."),u)}})):Bme}var $o=i(Xe(),1),Oy=i(nI(),1),S8=i(O(),1);function Cp(e,t="root",r={}){if(!t)return null;let{fallback:o=!1}=r,{name:n,selectors:s,supports:a}=e,l=s&&Object.keys(s).length>0,c=Array.isArray(t)?t.join("."):t,u=null;if(l&&s.root?u=s?.root:a?.__experimentalSelector?u=a.__experimentalSelector:u=".wp-block-"+n.replace("core/","").replace("/","-"),c==="root")return u;let d=Array.isArray(t)?t:t.split(".");if(d.length===1){let m=o?u:null;if(l)return Pt(s,`${c}.root`,null)||Pt(s,c,null)||m;let h=a?Pt(a,`${c}.__experimentalSelector`,null):void 0;return h?zi(u,h):m}let f;return l&&(f=Pt(s,c,null)),f||(o?Cp(e,d[0],r):null)}var Vme={grad:.9,turn:360,rad:360/(2*Math.PI)},zl=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},vo=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},$s=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},u8=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},o8=function(e){return{r:$s(e.r,0,255),g:$s(e.g,0,255),b:$s(e.b,0,255),a:$s(e.a)}},uI=function(e){return{r:vo(e.r),g:vo(e.g),b:vo(e.b),a:vo(e.a,3)}},jme=/^#([0-9a-f]{3,8})$/i,sw=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},d8=function(e){var t=e.r,r=e.g,o=e.b,n=e.a,s=Math.max(t,r,o),a=s-Math.min(t,r,o),l=a?s===t?(r-o)/a:s===r?2+(o-t)/a:4+(t-r)/a:0;return{h:60*(l<0?l+6:l),s:s?a/s*100:0,v:s/255*100,a:n}},f8=function(e){var t=e.h,r=e.s,o=e.v,n=e.a;t=t/360*6,r/=100,o/=100;var s=Math.floor(t),a=o*(1-r),l=o*(1-(t-s)*r),c=o*(1-(1-t+s)*r),u=s%6;return{r:255*[o,l,a,a,c,o][u],g:255*[c,o,o,l,a,a][u],b:255*[a,a,c,o,o,l][u],a:n}},n8=function(e){return{h:u8(e.h),s:$s(e.s,0,100),l:$s(e.l,0,100),a:$s(e.a)}},s8=function(e){return{h:vo(e.h),s:vo(e.s),l:vo(e.l),a:vo(e.a,3)}},i8=function(e){return f8((r=(t=e).s,{h:t.h,s:(r*=((o=t.l)<50?o:100-o)/100)>0?2*r/(o+r)*100:0,v:o+r,a:t.a}));var t,r,o},Ry=function(e){return{h:(t=d8(e)).h,s:(n=(200-(r=t.s))*(o=t.v)/100)>0&&n<200?r*o/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,r,o,n},zme=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ume=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Hme=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Gme=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,mI={string:[[function(e){var t=jme.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?vo(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?vo(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Hme.exec(e)||Gme.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:o8({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=zme.exec(e)||Ume.exec(e);if(!t)return null;var r,o,n=n8({h:(r=t[1],o=t[2],o===void 0&&(o="deg"),Number(r)*(Vme[o]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return i8(n)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,o=e.b,n=e.a,s=n===void 0?1:n;return zl(t)&&zl(r)&&zl(o)?o8({r:Number(t),g:Number(r),b:Number(o),a:Number(s)}):null},"rgb"],[function(e){var t=e.h,r=e.s,o=e.l,n=e.a,s=n===void 0?1:n;if(!zl(t)||!zl(r)||!zl(o))return null;var a=n8({h:Number(t),s:Number(r),l:Number(o),a:Number(s)});return i8(a)},"hsl"],[function(e){var t=e.h,r=e.s,o=e.v,n=e.a,s=n===void 0?1:n;if(!zl(t)||!zl(r)||!zl(o))return null;var a=(function(l){return{h:u8(l.h),s:$s(l.s,0,100),v:$s(l.v,0,100),a:$s(l.a)}})({h:Number(t),s:Number(r),v:Number(o),a:Number(s)});return f8(a)},"hsv"]]},a8=function(e,t){for(var r=0;r<t.length;r++){var o=t[r][0](e);if(o)return[o,t[r][1]]}return[null,void 0]},Wme=function(e){return typeof e=="string"?a8(e.trim(),mI.string):typeof e=="object"&&e!==null?a8(e,mI.object):[null,void 0]};var dI=function(e,t){var r=Ry(e);return{h:r.h,s:$s(r.s+100*t,0,100),l:r.l,a:r.a}},fI=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},l8=function(e,t){var r=Ry(e);return{h:r.h,s:r.s,l:$s(r.l+100*t,0,100),a:r.a}},pI=(function(){function e(t){this.parsed=Wme(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 vo(fI(this.rgba),2)},e.prototype.isDark=function(){return fI(this.rgba)<.5},e.prototype.isLight=function(){return fI(this.rgba)>=.5},e.prototype.toHex=function(){return t=uI(this.rgba),r=t.r,o=t.g,n=t.b,a=(s=t.a)<1?sw(vo(255*s)):"","#"+sw(r)+sw(o)+sw(n)+a;var t,r,o,n,s,a},e.prototype.toRgb=function(){return uI(this.rgba)},e.prototype.toRgbString=function(){return t=uI(this.rgba),r=t.r,o=t.g,n=t.b,(s=t.a)<1?"rgba("+r+", "+o+", "+n+", "+s+")":"rgb("+r+", "+o+", "+n+")";var t,r,o,n,s},e.prototype.toHsl=function(){return s8(Ry(this.rgba))},e.prototype.toHslString=function(){return t=s8(Ry(this.rgba)),r=t.h,o=t.s,n=t.l,(s=t.a)<1?"hsla("+r+", "+o+"%, "+n+"%, "+s+")":"hsl("+r+", "+o+"%, "+n+"%)";var t,r,o,n,s},e.prototype.toHsv=function(){return t=d8(this.rgba),{h:vo(t.h),s:vo(t.s),v:vo(t.v),a:vo(t.a,3)};var t},e.prototype.invert=function(){return xr({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),xr(dI(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),xr(dI(this.rgba,-t))},e.prototype.grayscale=function(){return xr(dI(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),xr(l8(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),xr(l8(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"?xr({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):vo(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=Ry(this.rgba);return typeof t=="number"?xr({h:t,s:r.s,l:r.l,a:r.a}):vo(r.h)},e.prototype.isEqual=function(t){return this.toHex()===xr(t).toHex()},e})(),xr=function(e){return e instanceof pI?e:new pI(e)},c8=[],iw=function(e){e.forEach(function(t){c8.indexOf(t)<0&&(t(pI,mI),c8.push(t))})};function Yme(e=[]){let t={r:[],g:[],b:[],a:[]};return e.forEach(r=>{let o=xr(r).toRgb();t.r.push(o.r/255),t.g.push(o.g/255),t.b.push(o.b/255),t.a.push(o.a)}),t}function m8(e,t){let r=Yme(t);return`
<svg
xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 0 0"
width="0"
height="0"
focusable="false"
role="none"
aria-hidden="true"
style="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"
>
<defs>
<filter id="${e}">
<!--
Use sRGB instead of linearRGB so transparency looks correct.
Use perceptual brightness to convert to grayscale.
-->
<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>
<!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. -->
<feComponentTransfer color-interpolation-filters="sRGB">
<feFuncR type="table" tableValues="${r.r.join(" ")}"></feFuncR>
<feFuncG type="table" tableValues="${r.g.join(" ")}"></feFuncG>
<feFuncB type="table" tableValues="${r.b.join(" ")}"></feFuncB>
<feFuncA type="table" tableValues="${r.a.join(" ")}"></feFuncA>
</feComponentTransfer>
<!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. -->
<feComposite in2="SourceGraphic" operator="in"></feComposite>
</filter>
</defs>
</svg>`}function Ul(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 hI(e){if(!e)return;let t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function qme(e){if(!e)return null;let t=typeof e=="string";return{top:t?e:e?.top,left:t?e:e?.left}}function gI(e,t="0"){let r=qme(e);if(!r)return null;let o=hI(r?.top)||t,n=hI(r?.left)||t;return o===n?o:`${o} ${n}`}var p8={backgroundSize:"cover",backgroundPosition:"50% 50%"};function h8(e){if(!e||!e?.backgroundImage?.url)return;let t;return e?.backgroundSize||(t={backgroundSize:p8.backgroundSize}),e?.backgroundSize==="contain"&&!e?.backgroundPosition&&(t={backgroundPosition:p8.backgroundPosition}),t}var g8={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 Zme={button:"wp-element-button",caption:"wp-element-caption"},Kme={__experimentalBorder:"border",color:"color",dimensions:"dimensions",spacing:"spacing",typography:"typography"};function Xme(e={},t){return xp.reduce((r,{path:o,valueKey:n,valueFunc:s,cssVarInfix:a})=>{let l=Pt(e,o,[]);return["default","theme","custom"].forEach(c=>{l[c]&&l[c].forEach(u=>{n&&!s?r.push(`--wp--preset--${a}--${Ul(u.slug)}: ${u[n]}`):s&&typeof s=="function"&&r.push(`--wp--preset--${a}--${Ul(u.slug)}: ${s(u,t)}`)})}),r},[])}function Qme(e="*",t={}){return xp.reduce((r,{path:o,cssVarInfix:n,classes:s})=>{if(!s)return r;let a=Pt(t,o,[]);return["default","theme","custom"].forEach(l=>{a[l]&&a[l].forEach(({slug:c})=>{s.forEach(({classSuffix:u,propertyName:d})=>{let f=`.has-${Ul(c)}-${u}`,m=e.split(",").map(g=>`${g}${f}`).join(","),h=`var(--wp--preset--${n}--${Ul(c)})`;r+=`${m}{${d}: ${h} !important;}`})})}),r},"")}function Jme(e={}){return xp.filter(t=>t.path.at(-1)==="duotone").flatMap(t=>{let r=Pt(e,t.path,{});return["default","theme"].filter(o=>r[o]).flatMap(o=>r[o].map(n=>m8(`wp-duotone-${n.slug}`,n.colors))).join("")})}function _8(e={},t,r){let o=[];return Object.keys(e).forEach(n=>{let s=t+Ul(n.replace("/","-")),a=e[n];if(a instanceof Object){let l=s+r;o=[...o,..._8(a,l,r)]}else o.push(`${s}: ${a}`)}),o}function $me(e,t){let r=e.split(","),o=[];return r.forEach(n=>{o.push(`${t.trim()}${n.trim()}`)}),o.join(", ")}var v8=(e,t,r)=>{if(r!=="core/paragraph"||(t?.blocks?.["core/paragraph"]?.typography?.textIndent??t?.typography?.textIndent??"subsequent")!=="all")return e;let s=".wp-block-paragraph + .wp-block-paragraph",a=".wp-block-paragraph";if(s in e){let l=e[s],c={...e};return delete c[s],c[a]=l,c}return e},y8=(e,t)=>{let r={};return Object.entries(e).forEach(([o,n])=>{if(o==="root"||!t?.[o])return;let s=typeof n=="string";if(!s&&typeof n=="object"&&n!==null&&Object.entries(n).forEach(([a,l])=>{if(a==="root"||!t?.[o][a])return;let c={[o]:{[a]:t[o][a]}},u=Pp(c);r[l]=[...r[l]||[],...u],delete t[o][a]}),s||typeof n=="object"&&n!==null&&"root"in n){let a=s?n:n.root,l={[o]:t[o]},c=Pp(l);r[a]=[...r[a]||[],...c],delete t[o]}}),r};function Pp(e={},t="",r,o={},n=!1){let s=Ca===t,a=Object.entries($o.__EXPERIMENTAL_STYLE_PROPERTY).reduce((c,[u,{value:d,properties:f,useEngine:m,rootOnly:h}])=>{if(h&&!s)return c;let g=d;if(g[0]==="elements"||m)return c;let y=Pt(e,g);if(u==="--wp--style--root--padding"&&(typeof y=="string"||!r))return c;if(f&&typeof y!="string")Object.entries(f).forEach(v=>{let[b,S]=v;if(!Pt(y,[S],!1))return;let w=b.startsWith("--")?b:Ul(b);c.push(`${w}: ${(0,Oy.getCSSValueFromRawStyle)(Pt(y,[S]))}`)});else if(Pt(e,g,!1)){let v=u.startsWith("--")?u:Ul(u);c.push(`${v}: ${(0,Oy.getCSSValueFromRawStyle)(Pt(e,g))}`)}return c},[]);return e.background&&(e.background?.backgroundImage&&(e.background.backgroundImage=iI(e.background.backgroundImage,o)),!s&&e.background?.backgroundImage?.id&&(e={...e,background:{...e.background,...h8(e.background)}})),(0,Oy.getCSSRules)(e).forEach(c=>{if(s&&(r||n)&&c.key.startsWith("padding"))return;let u=c.key.startsWith("--")?c.key:Ul(c.key),d=iI(c.value,o);u==="font-size"&&(d=ew({name:"",slug:"",size:d},o?.settings)),u==="aspect-ratio"&&a.push("min-height: unset"),a.push(`${u}: ${d}`)}),a}function b8({layoutDefinitions:e=g8,style:t,selector:r,hasBlockGapSupport:o,hasFallbackGapSupport:n,fallbackGapValue:s}){let a="",l=o?gI(t?.spacing?.blockGap):"";if(n&&(r===Ca?l=l||"0.5em":!o&&s&&(l=s)),l&&e&&(Object.values(e).forEach(({className:c,name:u,spacingStyles:d})=>{!o&&u!=="flex"&&u!=="grid"||d?.length&&d.forEach(f=>{let m=[];if(f.rules&&Object.entries(f.rules).forEach(([h,g])=>{m.push(`${h}: ${g||l}`)}),m.length){let h="";o?h=r===Ca?`:root :where(.${c})${f?.selector||""}`:`:root :where(${r}-${c})${f?.selector||""}`:h=r===Ca?`:where(.${c}${f?.selector||""})`:`:where(${r}.${c}${f?.selector||""})`,a+=`${h} { ${m.join("; ")}; }`}})}),r===Ca&&o&&(a+=`${Cy} { --wp--style--block-gap: ${l}; }`)),r===Ca&&e){let c=["block","flex","grid"];Object.values(e).forEach(({className:u,displayMode:d,baseStyles:f})=>{d&&c.includes(d)&&(a+=`${r} .${u} { display:${d}; }`),f?.length&&f.forEach(m=>{let h=[];if(m.rules&&Object.entries(m.rules).forEach(([g,y])=>{h.push(`${g}: ${y}`)}),h.length){let g=`.${u}${m?.selector||""}`;a+=`${g} { ${h.join("; ")}; }`}})})}return a}var epe=["border","color","dimensions","spacing","typography","filter","outline","shadow","background"];function aw(e){if(!e)return{};let o=Object.entries(e).filter(([n])=>epe.includes(n)).map(([n,s])=>[n,JSON.parse(JSON.stringify(s))]);return Object.fromEntries(o)}var tpe=(e,t)=>{let r=[];if(!e?.styles)return r;let o=aw(e.styles);return o&&r.push({styles:o,selector:Ca,skipSelectorWrapper:!0}),Object.entries($o.__EXPERIMENTAL_ELEMENTS).forEach(([n,s])=>{e.styles?.elements?.[n]&&r.push({styles:e.styles?.elements?.[n]??{},selector:s,skipSelectorWrapper:!Zme[n]})}),Object.entries(e.styles?.blocks??{}).forEach(([n,s])=>{let a=aw(s),l=s,c=[];if(l?.variations){let u={};Object.entries(l.variations).forEach(([d,f])=>{let m=f;u[d]=aw(m),m?.css&&(u[d].css=m.css);let h=typeof t!="string"?t[n]?.styleVariationSelectors?.[d]:void 0;Object.entries(m?.elements??{}).forEach(([g,y])=>{y&&$o.__EXPERIMENTAL_ELEMENTS[g]&&c.push({styles:y,selector:zi(h,$o.__EXPERIMENTAL_ELEMENTS[g])})}),Object.entries(m?.blocks??{}).forEach(([g,y])=>{let v=typeof t!="string"?zi(h,t[g]?.selector):void 0,b=typeof t!="string"?zi(h,t[g]?.duotoneSelector):void 0,S=typeof t!="string"?HV(h,t[g]?.featureSelectors??{}):void 0,w=aw(y);y?.css&&(w.css=y.css),!(!v||typeof t=="string")&&(c.push({selector:v,duotoneSelector:b,featureSelectors:S,fallbackGapValue:t[g]?.fallbackGapValue,hasLayoutSupport:t[g]?.hasLayoutSupport,styles:w}),Object.entries(y.elements??{}).forEach(([T,C])=>{C&&$o.__EXPERIMENTAL_ELEMENTS[T]&&c.push({styles:C,selector:zi(v,$o.__EXPERIMENTAL_ELEMENTS[T])})}))})}),a.variations=u}typeof t!="string"&&t?.[n]?.selector&&r.push({duotoneSelector:t[n].duotoneSelector,fallbackGapValue:t[n].fallbackGapValue,hasLayoutSupport:t[n].hasLayoutSupport,selector:t[n].selector,styles:a,featureSelectors:t[n].featureSelectors,styleVariationSelectors:t[n].styleVariationSelectors,name:n}),Object.entries(l?.elements??{}).forEach(([u,d])=>{typeof t!="string"&&d&&t?.[n]&&$o.__EXPERIMENTAL_ELEMENTS[u]&&r.push({styles:d,selector:t[n]?.selector.split(",").map(f=>$o.__EXPERIMENTAL_ELEMENTS[u].split(",").map(h=>f+" "+h)).join(",")})}),r.push(...c)}),r},yI=(e,t)=>{let r=[];if(!e?.settings)return r;let o=a=>{let l={};return xp.forEach(({path:c})=>{let u=Pt(a,c,!1);u!==!1&&(l=vu(l,c,u))}),l},n=o(e.settings),s=e.settings?.custom;return(Object.keys(n).length>0||s)&&r.push({presets:n,custom:s,selector:Cy}),Object.entries(e.settings?.blocks??{}).forEach(([a,l])=>{let c=l.custom;if(typeof t=="string"||!t[a])return;let u=o(l);(Object.keys(u).length>0||c)&&r.push({presets:u,custom:c,selector:t[a]?.selector})}),r},rpe=(e,t)=>{let r=yI(e,t),o="";return r.forEach(({presets:n,custom:s,selector:a})=>{let l=e?.settings?Xme(n,e?.settings):[],c=_8(s,"--wp--custom--","--");c.length>0&&l.push(...c),l.length>0&&(o+=`${a}{${l.join(";")};}`)}),o},ope=(e,t,r,o,n=!1,s=!1,a={})=>{let l={blockGap:!0,blockStyles:!0,layoutStyles:!0,marginReset:!0,presets:!0,rootPadding:!0,variationStyles:!1,...a},c=tpe(e,t),u=yI(e,t),d=e?.settings?.useRootPaddingAwareAlignments,{contentSize:f,wideSize:m}=e?.settings?.layout||{},h=l.marginReset||l.rootPadding||l.layoutStyles,g="";if(l.presets&&(f||m)&&(g+=`${Cy} {`,g=f?g+` --wp--style--global--content-size: ${f};`:g,g=m?g+` --wp--style--global--wide-size: ${m};`:g,g+="}"),h&&(g+=":where(body) {margin: 0;",l.rootPadding&&d&&(g+=`padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }
.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }
.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }
.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; }
.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0;
`),g+="}"),l.blockStyles&&c.forEach(({selector:y,duotoneSelector:v,styles:b,fallbackGapValue:S,hasLayoutSupport:w,featureSelectors:T,styleVariationSelectors:C,skipSelectorWrapper:A,name:F})=>{if(T){let z=y8(T,b);z=v8(z,e.settings,F),Object.entries(z).forEach(([M,k])=>{if(k.length){let I=k.join(";");g+=`:root :where(${M}){${I};}`}})}if(v){let z={};b?.filter&&(z.filter=b.filter,delete b.filter);let M=Pp(z);M.length&&(g+=`${v}{${M.join(";")};}`)}!n&&(Ca===y||w)&&(g+=b8({style:b,selector:y,hasBlockGapSupport:r,hasFallbackGapSupport:o,fallbackGapValue:S}));let L=Pp(b,y,d,e,s);if(L?.length){let z=A?y:`:root :where(${y})`;g+=`${z}{${L.join(";")};}`}b?.css&&(g+=vI(b.css,`:root :where(${y})`)),l.variationStyles&&C&&Object.entries(C).forEach(([z,M])=>{let k=b?.variations?.[z];if(k){if(T){let U=y8(T,k);U=v8(U,e.settings,F),Object.entries(U).forEach(([G,Y])=>{if(Y.length){let Z=$me(G,M),B=Y.join(";");g+=`:root :where(${Z}){${B};}`}})}let I=Pp(k,M,d,e);if(I.length&&(g+=`:root :where(${M}){${I.join(";")};}`),k?.css&&(g+=vI(k.css,`:root :where(${M})`)),w&&k?.spacing?.blockGap){let U=M+y;g+=b8({style:k,selector:U,hasBlockGapSupport:!0,hasFallbackGapSupport:o,fallbackGapValue:S})}}});let j=Object.entries(b).filter(([z])=>z.startsWith(":"));j?.length&&j.forEach(([z,M])=>{let k=Pp(M);if(!k?.length)return;let U=`:root :where(${y.split(",").map(G=>G+z).join(",")}){${k.join(";")};}`;g+=U})}),l.layoutStyles&&(g=g+".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",g=g+".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",g=g+".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"),l.blockGap&&r){let y=gI(e?.styles?.spacing?.blockGap)||"0.5em";g=g+`:root :where(.wp-site-blocks) > * { margin-block-start: ${y}; margin-block-end: 0; }`,g=g+":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }",g=g+":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"}return l.presets&&u.forEach(({selector:y,presets:v})=>{(Ca===y||Cy===y)&&(y="");let b=Qme(y,v);b.length>0&&(g+=b)}),g};function npe(e,t){return yI(e,t).flatMap(({presets:o})=>Jme(o))}var spe=(e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;let r={root:t};return Object.entries(Kme).forEach(([o,n])=>{let s=Cp(e,o);s&&(r[n]=s)}),r},ipe=(e,t)=>{let{getBlockStyles:r}=(0,S8.select)($o.store),o={};return e.forEach(n=>{let s=n.name,a=Cp(n);if(!a)return;let l=Cp(n,"filter.duotone");if(!l){let h=Cp(n),g=(0,$o.getBlockSupport)(n,"color.__experimentalDuotone",!1);l=g&&h&&zi(h,g)}let c=!!n?.supports?.layout||!!n?.supports?.__experimentalLayout,u=n?.supports?.spacing?.blockGap?.__experimentalDefault,d=r(s),f={};d?.forEach(h=>{let g=t?`-${t}`:"",y=`${h.name}${g}`,v=WV(y,a);f[y]=v});let m=spe(n,a);o[s]={duotoneSelector:l??void 0,fallbackGapValue:u,featureSelectors:Object.keys(m).length?m:void 0,hasLayoutSupport:c,name:s,selector:a,styleVariationSelectors:d?.length?f:void 0}}),o};function ape(e){let t=e.styles?.blocks,r=t?.["core/separator"];return r&&r.color?.background&&!r.color?.text&&!r.border?.color?{...e,styles:{...e.styles,blocks:{...t,"core/separator":{...r,color:{...r.color,text:r.color?.background}}}}}:e}function vI(e,t){let r="";return!e||e.trim()===""||e.split("&").forEach(n=>{if(!n||n.trim()==="")return;if(!n.includes("{"))r+=`:root :where(${t}){${n.trim()}}`;else{let a=n.replace("}","").split("{");if(a.length!==2)return;let[l,c]=a,u=l.match(/([>+~\s]*::[a-zA-Z-]+)/),d=u?u[1]:"",f=u?l.replace(d,"").trim():l.trim(),m;f===""?m=t:m=l.startsWith(" ")?zi(t,f):GV(t,f),r+=`:root :where(${m})${d}{${c.trim()}}`}}),r}function Iy(e={},t=[],r={}){let{hasBlockGapSupport:o,hasFallbackGapSupport:n,disableLayoutStyles:s=!1,disableRootPadding:a=!1,styleOptions:l={}}=r,c=t.length>0?t:(0,$o.getBlockTypes)(),u=lf(e,"spacing.blockGap"),d=o??u!==null,f=n??!d;if(!e?.styles||!e?.settings)return[[],{}];let m=ape(e),h=ipe(c),g=rpe(m,h),y=ope(m,h,d,f,s,a,l),v=npe(m,h),b=[{css:g,isGlobalStyles:!0},{css:y,isGlobalStyles:!0},{css:m?.styles?.css??"",isGlobalStyles:!0},{assets:v,__unstableType:"svg",isGlobalStyles:!0}];return c.forEach(S=>{let w=m?.styles?.blocks?.[S.name];if(w?.css){let T=h[S.name].selector;b.push({css:vI(w.css,T),isGlobalStyles:!0})}}),[b,m.settings]}var{cleanEmptyObject:bI}=D(w8.privateApis);function lpe(){let{globalStylesId:e,isReady:t,settings:r,styles:o,_links:n}=(0,Ep.useSelect)(u=>{let{getEntityRecord:d,getEditedEntityRecord:f,hasFinishedResolution:m,canUser:h}=u(kp.store),g=u(kp.store).__experimentalGetCurrentGlobalStylesId(),y,v=g?h("update",{kind:"root",name:"globalStyles",id:g}):null;g&&typeof v=="boolean"&&(v?y=f("root","globalStyles",g):y=d("root","globalStyles",g,{context:"view"}));let b=!1;return m("__experimentalGetCurrentGlobalStylesId")&&(g?b=v?m("getEditedEntityRecord",["root","globalStyles",g]):m("getEntityRecord",["root","globalStyles",g,{context:"view"}]):b=!0),{globalStylesId:g,isReady:b,settings:y?.settings,styles:y?.styles,_links:y?._links}},[]),{getEditedEntityRecord:s}=(0,Ep.useSelect)(kp.store),{editEntityRecord:a}=(0,Ep.useDispatch)(kp.store),l=(0,Ap.useMemo)(()=>({settings:r??{},styles:o??{},_links:n??{}}),[r,o,n]),c=(0,Ap.useCallback)((u,d={})=>{let f=s("root","globalStyles",e),m={styles:f?.styles??{},settings:f?.settings??{},_links:f?._links??{}},h=typeof u=="function"?u(m):u;a("root","globalStyles",e,{styles:bI(h.styles)||{},settings:bI(h.settings)||{},_links:bI(h._links)||{}},d)},[e,a,s]);return[t,l,c]}function cpe(){let e=(0,Ep.useSelect)(t=>t(kp.store).__experimentalGetCurrentThemeBaseGlobalStyles(),[]);return[!!e,e]}function lw(){let[e,t,r]=lpe(),[o,n]=cpe(),s=(0,Ap.useMemo)(()=>!n||!t?{}:go(n,t),[t,n]);return(0,Ap.useMemo)(()=>({isReady:e&&o,user:t,base:n,merged:s,setUserConfig:r}),[s,t,n,r,e,o])}var x8={};function upe(e){let{RECEIVE_INTERMEDIATE_RESULTS:t}=D(ks.privateApis),{getEntityRecords:r}=e(ks.store);return r("postType","wp_block",{per_page:-1,[t]:!0})}var dpe=["__experimentalBlockBindingsSupportedAttributes","__experimentalBlockDirectory","__experimentalDiscussionSettings","__experimentalFeatures","__experimentalGlobalStylesBaseStyles","allImageSizes","alignWide","blockInspectorTabs","maxUploadFileSize","allowedMimeTypes","bodyPlaceholder","canEditCSS","canLockBlocks","canUpdateBlockBindings","capabilities","clearBlockSelection","codeEditingEnabled","colors","disableContentOnlyForUnsyncedPatterns","disableCustomColors","disableCustomFontSizes","disableCustomSpacingSizes","disableCustomGradients","disableLayoutStyles","enableCustomLineHeight","enableCustomSpacing","enableCustomUnits","enableOpenverseMediaCategory","fontSizes","gradients","generateAnchors","onNavigateToEntityRecord","imageDefaultSize","imageDimensions","imageEditing","imageSizes","isPreviewMode","isRTL","locale","maxWidth","postContentAttributes","postsPerPage","readOnly","styles","titlePlaceholder","supportsLayout","widgetTypesToHideFromLegacyWidgetBlock","__unstableHasCustomAppender","__unstableResolvedAssets","__unstableIsBlockBasedTheme"],{globalStylesDataKey:fpe,globalStylesLinksDataKey:mpe,selectBlockPatternsKey:ppe,reusableBlocksSelectKey:hpe,sectionRootClientIdKey:gpe,mediaEditKey:vpe,getMediaSelectKey:ype,isIsolatedEditorKey:bpe,deviceTypeKey:Spe,isNavigationOverlayContextKey:_pe,mediaUploadOnSuccessKey:wpe}=D(cw.privateApis);function xpe(e,t,r,o){let n=(0,P8.useViewportMatch)("medium"),{allImageSizes:s,bigImageSizeThreshold:a,allowRightClickOverrides:l,blockTypes:c,focusMode:u,hasFixedToolbar:d,isDistractionFree:f,keepCaretInsideBlock:m,hasUploadPermissions:h,hiddenBlockTypes:g,canUseUnfilteredHTML:y,userCanCreatePages:v,pageOnFront:b,pageForPosts:S,userPatternCategories:w,restBlockPatternCategories:T,sectionRootClientId:C,deviceType:A,isNavigationOverlayContext:F}=(0,Rp.useSelect)(ne=>{let{canUser:se,getRawEntityRecord:ye,getEntityRecord:qe,getUserPatternCategories:ge,getBlockPatternCategories:oe}=ne(ks.store),{get:ve}=ne(C8.store),{getBlockTypes:De}=ne(k8.store),{getDeviceType:Ze}=D(ne(_)),{getBlocksByName:je,getBlockAttributes:rt}=ne(cw.store),Tt=se("read",{kind:"root",name:"site"})?qe("root","site"):void 0,ae=qe("root","__unstableBase");function J(){return o==="template-locked"?je("core/post-content")?.[0]??"":je("core/group").find(ie=>rt(ie)?.tagName==="main")??""}return{allImageSizes:ae?.image_sizes,bigImageSizeThreshold:ae?.image_size_threshold,allowRightClickOverrides:ve("core","allowRightClickOverrides"),blockTypes:De(),canUseUnfilteredHTML:ye("postType",t,r)?._links?.hasOwnProperty("wp:action-unfiltered-html"),focusMode:ve("core","focusMode"),hasFixedToolbar:ve("core","fixedToolbar")||!n,hiddenBlockTypes:ve("core","hiddenBlockTypes"),isDistractionFree:ve("core","distractionFree"),keepCaretInsideBlock:ve("core","keepCaretInsideBlock"),hasUploadPermissions:se("create",{kind:"postType",name:"attachment"})??!0,userCanCreatePages:se("create",{kind:"postType",name:"page"}),pageOnFront:Tt?.page_on_front,pageForPosts:Tt?.page_for_posts,userPatternCategories:ge(),restBlockPatternCategories:oe(),sectionRootClientId:J(),deviceType:Ze(),isNavigationOverlayContext:t==="wp_template_part"&&r?qe("postType","wp_template_part",r)?.area==="navigation-overlay":!1}},[t,r,n,o]),{merged:L}=lw(),j=L.styles??x8,z=L._links??x8,M=e.__experimentalAdditionalBlockPatterns??e.__experimentalBlockPatterns,k=e.__experimentalAdditionalBlockPatternCategories??e.__experimentalBlockPatternCategories,I=(0,uf.useMemo)(()=>[...M||[]].filter(({postTypes:ne})=>!ne||Array.isArray(ne)&&ne.includes(t)),[M,t]),U=(0,uf.useMemo)(()=>[...k||[],...T||[]].filter((ne,se,ye)=>se===ye.findIndex(qe=>ne.name===qe.name)),[k,T]),{undo:G,setIsInserterOpened:Y}=(0,Rp.useDispatch)(_),{editMediaEntity:Z}=D((0,Rp.useDispatch)(ks.store)),{saveEntityRecord:B}=(0,Rp.useDispatch)(ks.store),V=(0,uf.useCallback)(ne=>v?B("postType","page",ne):Promise.reject({message:(0,T8.__)("You do not have permission to create Pages.")}),[B,v]),H=(0,uf.useMemo)(()=>g&&g.length>0?(e.allowedBlockTypes===!0?c.map(({name:se})=>se):e.allowedBlockTypes||[]).filter(se=>!g.includes(se)):e.allowedBlockTypes,[e.allowedBlockTypes,g,c]),X=e.focusMode===!1;return(0,uf.useMemo)(()=>({...Object.fromEntries(Object.entries(e).filter(([se])=>dpe.includes(se)).filter(([se])=>se!=="onNavigateToEntityRecord")),[fpe]:j,[mpe]:z,allImageSizes:s,bigImageSizeThreshold:a,allowedBlockTypes:H,allowRightClickOverrides:l,focusMode:u&&!X,hasFixedToolbar:d,isDistractionFree:f,keepCaretInsideBlock:m,onNavigateToEntityRecord:e.onNavigateToEntityRecord,[ype]:(se,ye)=>se(ks.store).getEntityRecord("postType","attachment",ye),[vpe]:h?Z:void 0,mediaUpload:h?$_:void 0,[wpe]:h?LV:void 0,mediaSideload:h?VV:void 0,__experimentalBlockPatterns:I,[ppe]:se=>{let{hasFinishedResolution:ye,getBlockPatternsForPostType:qe}=D(se(ks.store)),ge=qe(t);return ye("getBlockPatterns")?ge:void 0},[hpe]:upe,__experimentalBlockPatternCategories:U,__experimentalUserPatternCategories:w,__experimentalFetchLinkSuggestions:(se,ye)=>(0,ks.__experimentalFetchLinkSuggestions)(se,ye,e),inserterMediaCategories:EV,__experimentalFetchRichUrlData:ks.__experimentalFetchUrlData,__experimentalCanUserUseUnfilteredHTML:y,__experimentalUndo:G,outlineMode:!f&&t==="wp_template",__experimentalCreatePageEntity:V,__experimentalUserCanCreatePages:v,pageOnFront:b,pageForPosts:S,__experimentalPreferPatternsOnRoot:t==="wp_template",templateLock:t==="wp_navigation"?"insert":e.templateLock,template:t==="wp_navigation"?[["core/navigation",{},[]]]:e.template,__experimentalSetIsInserterOpened:Y,[gpe]:C,editorTool:o==="post-only"&&t!=="wp_template"?"edit":void 0,[bpe]:["wp_template_part","wp_block","wp_navigation"].includes(t),disableContentOnlyForTemplateParts:o==="template-locked",...A?{[Spe]:A}:{},[_pe]:F}),[H,l,u,X,d,f,m,e,h,w,I,U,y,G,V,v,b,S,t,Y,C,j,z,o,Z,e.onNavigateToEntityRecord,A,s,a,F])}var E8=xpe;var Ny=i(O(),1),df=i($(),1),Fy=i(N(),1);var A8=i(O(),1),R8=i(N(),1),O8=i(fo(),1);var Tpe=["core/post-title","core/post-featured-image","core/post-content"];function I8(){let e=(0,R8.useMemo)(()=>[...(0,O8.applyFilters)("editor.postContentBlockTypes",Tpe)],[]);return(0,A8.useSelect)(r=>{let{getPostBlocksByName:o}=D(r(_));return o(e)},[e])}function F8(){let e=I8(),{templateParts:t}=(0,Ny.useSelect)(n=>{let{getBlocksByName:s}=n(df.store);return{templateParts:s("core/template-part")}},[]),r=(0,Ny.useSelect)(n=>{let{getBlockOrder:s}=n(df.store);return t.flatMap(a=>s(a)).filter(a=>!e.includes(a))},[t,e]),o=(0,Ny.useRegistry)();return(0,Fy.useEffect)(()=>{let{setBlockEditingMode:n,unsetBlockEditingMode:s}=o.dispatch(df.store);return n("","disabled"),()=>{s("")}},[o]),(0,Fy.useEffect)(()=>{let{setBlockEditingMode:n,unsetBlockEditingMode:s}=o.dispatch(df.store);return o.batch(()=>{for(let a of e)n(a,"contentOnly")}),()=>{o.batch(()=>{for(let a of e)s(a)})}},[e,o]),(0,Fy.useEffect)(()=>{let{setBlockEditingMode:n,unsetBlockEditingMode:s}=o.dispatch(df.store);return o.batch(()=>{for(let a of t)n(a,"contentOnly")}),()=>{o.batch(()=>{for(let a of t)s(a)})}},[t,o]),(0,Fy.useEffect)(()=>{let{setBlockEditingMode:n,unsetBlockEditingMode:s}=o.dispatch(df.store);return o.batch(()=>{for(let a of r)n(a,"disabled")}),()=>{o.batch(()=>{for(let a of r)s(a)})}},[r,o]),null}var N8=i(N(),1),uw=i(O(),1),SI=i($(),1);function B8(){let e=(0,uw.useSelect)(o=>o(SI.store).getBlockOrder()?.[0],[]),{setBlockEditingMode:t,unsetBlockEditingMode:r}=(0,uw.useDispatch)(SI.store);(0,N8.useEffect)(()=>{if(e)return t(e,"contentOnly"),()=>{r(e)}},[e,r,t])}var L8=i(N(),1),Op=i(fo(),1),D8=["wp_block","wp_template","wp_template_part"];function M8(e,t){(0,L8.useEffect)(()=>((0,Op.addFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter",(r,o)=>!D8.includes(e)&&o.name==="core/template-part"&&t==="post-only"?!1:r),(0,Op.addFilter)("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter",(r,o,n,{getBlockParentsByBlockName:s})=>!D8.includes(e)&&o.name==="core/post-content"?s(n,"core/query").length>0:r),()=>{(0,Op.removeFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter"),(0,Op.removeFilter)("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter")}),[e,t])}var Jn=i(O(),1),$e=i(E(),1);var Uy=i(_I(),1),AI=i(dt(),1),b7=i(ct(),1),S7=i($(),1),Bp=i(W(),1);var PI={};Zc(PI,{ActionItem:()=>ti,ComplementaryArea:()=>Hl,ComplementaryAreaMoreMenuItem:()=>Su,FullscreenMode:()=>s7,InterfaceSkeleton:()=>Vy,PinnedItems:()=>Fp,store:()=>Te});var ri=i(R(),1),My=i(O(),1),Sw=i(E(),1);var ka=i(N(),1),TI=i(z8(),1),t7=i(dt(),1),_u=i(pe(),1),r7=i(yu(),1);var q8=i(R(),1),pw=i(O(),1),Z8=i(yu(),1);var mw=i(O(),1);var wI={};Zc(wI,{closeModal:()=>Npe,disableComplementaryArea:()=>kpe,enableComplementaryArea:()=>Ppe,openModal:()=>Fpe,pinItem:()=>Epe,setDefaultComplementaryArea:()=>Cpe,setFeatureDefaults:()=>Ipe,setFeatureValue:()=>Ope,toggleFeature:()=>Rpe,unpinItem:()=>Ape});var fw=i(Ws(),1),ei=i(dt(),1);var dw=i(Ws(),1);function Pa(e){return["core/edit-post","core/edit-site"].includes(e)?((0,dw.default)(`${e} interface scope`,{alternative:"core interface scope",hint:"core/edit-post and core/edit-site are merging.",version:"6.6"}),"core"):e}function ff(e,t){return e==="core"&&t==="edit-site/template"?((0,dw.default)("edit-site/template sidebar",{alternative:"edit-post/document",version:"6.6"}),"edit-post/document"):e==="core"&&t==="edit-site/block-inspector"?((0,dw.default)("edit-site/block-inspector sidebar",{alternative:"edit-post/block",version:"6.6"}),"edit-post/block"):t}var Cpe=(e,t)=>(e=Pa(e),t=ff(e,t),{type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),Ppe=(e,t)=>({registry:r,dispatch:o})=>{if(!t)return;e=Pa(e),t=ff(e,t),r.select(ei.store).get(e,"isComplementaryAreaVisible")||r.dispatch(ei.store).set(e,"isComplementaryAreaVisible",!0),o({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},kpe=e=>({registry:t})=>{e=Pa(e),t.select(ei.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(ei.store).set(e,"isComplementaryAreaVisible",!1)},Epe=(e,t)=>({registry:r})=>{if(!t)return;e=Pa(e),t=ff(e,t);let o=r.select(ei.store).get(e,"pinnedItems");o?.[t]!==!0&&r.dispatch(ei.store).set(e,"pinnedItems",{...o,[t]:!0})},Ape=(e,t)=>({registry:r})=>{if(!t)return;e=Pa(e),t=ff(e,t);let o=r.select(ei.store).get(e,"pinnedItems");r.dispatch(ei.store).set(e,"pinnedItems",{...o,[t]:!1})};function Rpe(e,t){return function({registry:r}){(0,fw.default)("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),r.dispatch(ei.store).toggle(e,t)}}function Ope(e,t,r){return function({registry:o}){(0,fw.default)("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),o.dispatch(ei.store).set(e,t,!!r)}}function Ipe(e,t){return function({registry:r}){(0,fw.default)("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),r.dispatch(ei.store).setDefaults(e,t)}}function Fpe(e){return{type:"OPEN_MODAL",name:e}}function Npe(){return{type:"CLOSE_MODAL"}}var xI={};Zc(xI,{getActiveComplementaryArea:()=>Bpe,isComplementaryAreaLoading:()=>Dpe,isFeatureActive:()=>Mpe,isItemPinned:()=>Lpe,isModalActive:()=>Vpe});var By=i(O(),1),H8=i(Ws(),1),Dy=i(dt(),1);var Bpe=(0,By.createRegistrySelector)(e=>(t,r)=>{r=Pa(r);let o=e(Dy.store).get(r,"isComplementaryAreaVisible");if(o!==void 0)return o===!1?null:t?.complementaryAreas?.[r]}),Dpe=(0,By.createRegistrySelector)(e=>(t,r)=>{r=Pa(r);let o=e(Dy.store).get(r,"isComplementaryAreaVisible"),n=t?.complementaryAreas?.[r];return o&&n===void 0}),Lpe=(0,By.createRegistrySelector)(e=>(t,r,o)=>(r=Pa(r),o=ff(r,o),e(Dy.store).get(r,"pinnedItems")?.[o]??!0)),Mpe=(0,By.createRegistrySelector)(e=>(t,r,o)=>((0,H8.default)("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(Dy.store).get(r,o)));function Vpe(e,t){return e.activeModal===t}var G8=i(O(),1);function jpe(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{let{scope:r,area:o}=t;return e[r]?e:{...e,[r]:o}}case"ENABLE_COMPLEMENTARY_AREA":{let{scope:r,area:o}=t;return{...e,[r]:o}}}return e}function zpe(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}var W8=(0,G8.combineReducers)({complementaryAreas:jpe,activeModal:zpe});var Y8="core/interface";var Te=(0,mw.createReduxStore)(Y8,{reducer:W8,actions:wI,selectors:xI});(0,mw.register)(Te);var K8=i(x(),1);function Upe(e){return["checkbox","option","radio","switch","menuitemcheckbox","menuitemradio","treeitem"].includes(e)}function Ip({as:e=q8.Button,scope:t,identifier:r,icon:o,selectedIcon:n,name:s,shortcut:a,...l}){let c=e,u=(0,Z8.usePluginContext)(),d=o||u.icon,f=r||`${u.name}/${s}`,m=(0,pw.useSelect)(y=>y(Te).getActiveComplementaryArea(t)===f,[f,t]),{enableComplementaryArea:h,disableComplementaryArea:g}=(0,pw.useDispatch)(Te);return(0,K8.jsx)(c,{icon:n&&m?n:d,"aria-controls":f.replace("/",":"),"aria-checked":Upe(l.role)?m:void 0,onClick:()=>{m?g(t):h(t,f)},shortcut:a,...l})}var hw=i(x(),1),Hpe=({children:e,className:t,toggleButtonProps:r})=>{let o=(0,hw.jsx)(Ip,{icon:Zn,...r});return(0,hw.jsxs)("div",{className:re("components-panel__header","interface-complementary-area-header",t),tabIndex:-1,children:[e,o]})},X8=Hpe;var $8=i(R(),1);var bu=i(R(),1),gw=i(N(),1),Ly=i(x(),1),Q8=()=>{};function Gpe({name:e,as:t=bu.MenuGroup,fillProps:r={},bubblesVirtually:o,...n}){return(0,Ly.jsx)(bu.Slot,{name:e,bubblesVirtually:o,fillProps:r,children:s=>{if(!gw.Children.toArray(s).length)return null;let a=[];gw.Children.forEach(s,({props:{__unstableExplicitMenuItem:c,__unstableTarget:u}})=>{u&&c&&a.push(u)});let l=gw.Children.map(s,c=>!c.props.__unstableExplicitMenuItem&&a.includes(c.props.__unstableTarget)?null:c);return(0,Ly.jsx)(t,{...n,children:l})}})}function J8({name:e,as:t=bu.Button,onClick:r,...o}){return(0,Ly.jsx)(bu.Fill,{name:e,children:({onClick:n})=>(0,Ly.jsx)(t,{onClick:r||n?(...s)=>{(r||Q8)(...s),(n||Q8)(...s)}:void 0,...o})})}J8.Slot=Gpe;var ti=J8;var vw=i(x(),1),Wpe=({__unstableExplicitMenuItem:e,__unstableTarget:t,...r})=>(0,vw.jsx)($8.MenuItem,{...r});function Su({scope:e,target:t,__unstableExplicitMenuItem:r,...o}){return(0,vw.jsx)(Ip,{as:n=>(0,vw.jsx)(ti,{__unstableExplicitMenuItem:r,__unstableTarget:`${e}/${t}`,as:Wpe,name:`${e}/plugin-more-menu`,...n}),role:"menuitemcheckbox",selectedIcon:xs,name:t,scope:e,...o})}var bw=i(R(),1),yw=i(x(),1);function e7({scope:e,...t}){return(0,yw.jsx)(bw.Fill,{name:`PinnedItems/${e}`,...t})}function Ype({scope:e,className:t,...r}){return(0,yw.jsx)(bw.Slot,{name:`PinnedItems/${e}`,...r,children:o=>o?.length>0&&(0,yw.jsx)("div",{className:re(t,"interface-pinned-items"),children:o})})}e7.Slot=Ype;var Fp=e7;var Wr=i(x(),1),qpe=.3;function Zpe({scope:e,...t}){return(0,Wr.jsx)(ri.Slot,{name:`ComplementaryArea/${e}`,...t})}var o7=280,Kpe={open:{width:o7},closed:{width:0},mobileOpen:{width:"100vw"}};function Xpe({activeArea:e,isActive:t,scope:r,children:o,className:n,id:s}){let a=(0,_u.useReducedMotion)(),l=(0,_u.useViewportMatch)("medium","<"),c=(0,_u.usePrevious)(e),u=(0,_u.usePrevious)(t),[,d]=(0,ka.useState)({});(0,ka.useEffect)(()=>{d({})},[t]);let f={type:"tween",duration:a||l||c&&e&&e!==c?0:qpe,ease:[.6,0,.4,1]};return(0,Wr.jsx)(ri.Fill,{name:`ComplementaryArea/${r}`,children:(0,Wr.jsx)(ri.__unstableAnimatePresence,{initial:!1,children:(u||t)&&(0,Wr.jsx)(ri.__unstableMotion.div,{variants:Kpe,initial:"closed",animate:l?"mobileOpen":"open",exit:"closed",transition:f,className:"interface-complementary-area__fill",children:(0,Wr.jsx)("div",{id:s,className:n,style:{width:l?"100vw":o7},children:o})})})})}function Qpe(e,t,r,o,n){let s=(0,ka.useRef)(!1),a=(0,ka.useRef)(!1),{enableComplementaryArea:l,disableComplementaryArea:c}=(0,My.useDispatch)(Te);(0,ka.useEffect)(()=>{o&&n&&!s.current?(c(e),a.current=!0):a.current&&!n&&s.current?(a.current=!1,l(e,t)):a.current&&r&&r!==t&&(a.current=!1),n!==s.current&&(s.current=n)},[o,n,e,t,r,c,l])}function n7({children:e,className:t,closeLabel:r=(0,Sw.__)("Close plugin"),identifier:o,header:n,headerClassName:s,icon:a,isPinnable:l=!0,panelClassName:c,scope:u,name:d,title:f,toggleShortcut:m,isActiveByDefault:h}){let g=(0,r7.usePluginContext)(),y=a||g.icon,v=o||`${g.name}/${d}`,[b,S]=(0,ka.useState)(!1),{isLoading:w,isActive:T,isPinned:C,activeArea:A,isSmall:F,isLarge:L,showIconLabels:j}=(0,My.useSelect)(G=>{let{getActiveComplementaryArea:Y,isComplementaryAreaLoading:Z,isItemPinned:B}=G(Te),{get:V}=G(t7.store),H=Y(u);return{isLoading:Z(u),isActive:H===v,isPinned:B(u,v),activeArea:H,isSmall:G(TI.store).isViewportMatch("< medium"),isLarge:G(TI.store).isViewportMatch("large"),showIconLabels:V("core","showIconLabels")}},[v,u]),z=(0,_u.useViewportMatch)("medium","<");Qpe(u,v,A,T,F);let{enableComplementaryArea:M,disableComplementaryArea:k,pinItem:I,unpinItem:U}=(0,My.useDispatch)(Te);if((0,ka.useEffect)(()=>{h&&A===void 0&&!F?M(u,v):A===void 0&&F&&k(u,v),S(!0)},[A,h,u,v,F,M,k]),!!b)return(0,Wr.jsxs)(Wr.Fragment,{children:[l&&(0,Wr.jsx)(Fp,{scope:u,children:C&&(0,Wr.jsx)(Ip,{scope:u,identifier:v,isPressed:T&&(!j||L),"aria-expanded":T,"aria-disabled":w,label:f,icon:j?xs:y,showTooltip:!j,variant:j?"tertiary":void 0,size:"compact",shortcut:m})}),d&&l&&(0,Wr.jsx)(Su,{target:d,scope:u,icon:y,identifier:v,children:f}),(0,Wr.jsxs)(Xpe,{activeArea:A,isActive:T,className:re("interface-complementary-area",t),scope:u,id:v.replace("/",":"),children:[(0,Wr.jsx)(X8,{className:s,closeLabel:r,onClose:()=>k(u),toggleButtonProps:{label:r,size:"compact",shortcut:m,scope:u,identifier:v},children:n||(0,Wr.jsxs)(Wr.Fragment,{children:[(0,Wr.jsx)("h2",{className:"interface-complementary-area-header__title",children:f}),l&&!z&&(0,Wr.jsx)(ri.Button,{className:"interface-complementary-area__pin-unpin-item",icon:C?LR:BR,label:C?(0,Sw.__)("Unpin from toolbar"):(0,Sw.__)("Pin to toolbar"),onClick:()=>(C?U:I)(u,v),isPressed:C,"aria-expanded":C,size:"compact"})]})}),(0,Wr.jsx)(ri.Panel,{className:c,children:e})]})]})}n7.Slot=Zpe;var Hl=n7;var CI=i(N(),1),Jpe=({isActive:e})=>((0,CI.useEffect)(()=>{let t=!1;return document.body.classList.contains("sticky-menu")&&(t=!0,document.body.classList.remove("sticky-menu")),()=>{t&&document.body.classList.add("sticky-menu")}},[]),(0,CI.useEffect)(()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")}),[e]),null),s7=Jpe;var i7=i(N(),1),a7=i(x(),1),l7=(0,i7.forwardRef)(({children:e,className:t,ariaLabel:r,as:o="div",...n},s)=>(0,a7.jsx)(o,{ref:s,className:re("admin-ui-navigable-region",t),"aria-label":r,role:"region",tabIndex:"-1",...n,children:e}));l7.displayName="NavigableRegion";var wu=l7;var _w=i(N(),1),mf=i(R(),1),xu=i(E(),1),Np=i(pe(),1),Rn=i(x(),1),u7=.25,c7={type:"tween",duration:u7,ease:[.6,0,.4,1]};function $pe(e){(0,_w.useEffect)(()=>{let t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}},[e])}var ehe={hidden:{opacity:1,marginTop:-60},visible:{opacity:1,marginTop:0},distractionFreeHover:{opacity:1,marginTop:0,transition:{...c7,delay:.2,delayChildren:.2}},distractionFreeHidden:{opacity:0,marginTop:-60},distractionFreeDisabled:{opacity:0,marginTop:0,transition:{...c7,delay:.8,delayChildren:.8}}};function the({isDistractionFree:e,footer:t,header:r,editorNotices:o,sidebar:n,secondarySidebar:s,content:a,actions:l,labels:c,className:u},d){let[f,m]=(0,Np.useResizeObserver)(),h=(0,Np.useViewportMatch)("medium","<"),y={type:"tween",duration:(0,Np.useReducedMotion)()?0:u7,ease:[.6,0,.4,1]};$pe("interface-interface-skeleton__html-container");let b={...{header:(0,xu._x)("Header","header landmark area"),body:(0,xu.__)("Content"),secondarySidebar:(0,xu.__)("Block Library"),sidebar:(0,xu._x)("Settings","settings landmark area"),actions:(0,xu.__)("Publish"),footer:(0,xu.__)("Footer")},...c};return(0,Rn.jsxs)("div",{ref:d,className:re(u,"interface-interface-skeleton",!!t&&"has-footer"),children:[(0,Rn.jsxs)("div",{className:"interface-interface-skeleton__editor",children:[(0,Rn.jsx)(mf.__unstableAnimatePresence,{initial:!1,children:!!r&&(0,Rn.jsx)(wu,{as:mf.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":b.header,initial:e&&!h?"distractionFreeHidden":"hidden",whileHover:e&&!h?"distractionFreeHover":"visible",animate:e&&!h?"distractionFreeDisabled":"visible",exit:e&&!h?"distractionFreeHidden":"hidden",variants:ehe,transition:y,children:r})}),e&&(0,Rn.jsx)("div",{className:"interface-interface-skeleton__header",children:o}),(0,Rn.jsxs)("div",{className:"interface-interface-skeleton__body",children:[(0,Rn.jsx)(mf.__unstableAnimatePresence,{initial:!1,children:!!s&&(0,Rn.jsx)(wu,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:b.secondarySidebar,as:mf.__unstableMotion.div,initial:"closed",animate:"open",exit:"closed",variants:{open:{width:m.width},closed:{width:0}},transition:y,children:(0,Rn.jsxs)(mf.__unstableMotion.div,{style:{position:"absolute",width:h?"100vw":"fit-content",height:"100%",left:0},variants:{open:{x:0},closed:{x:"-100%"}},transition:y,children:[f,s]})})}),(0,Rn.jsx)(wu,{className:"interface-interface-skeleton__content",ariaLabel:b.body,children:a}),!!n&&(0,Rn.jsx)(wu,{className:"interface-interface-skeleton__sidebar",ariaLabel:b.sidebar,children:n}),!!l&&(0,Rn.jsx)(wu,{className:"interface-interface-skeleton__actions",ariaLabel:b.actions,children:l})]})]}),!!t&&(0,Rn.jsx)(wu,{className:"interface-interface-skeleton__footer",ariaLabel:b.footer,children:t})]})}var Vy=(0,_w.forwardRef)(the);var ww=i(vt(),1);var jy=i(O(),1),d7=i(Li(),1),f7=i(W(),1);var m7=i(x(),1),{RenamePatternModal:rhe}=D(d7.privateApis),kI="editor/pattern-rename";function p7(){let e=(0,jy.useSelect)(n=>n(Te).isModalActive(kI)),{record:t,postType:r}=(0,jy.useSelect)(n=>{if(!e)return{};let{getCurrentPostType:s,getCurrentPostId:a}=n(_),{getEditedEntityRecord:l}=n(f7.store),c=s();return{record:l("postType",c,a()),postType:c}},[e]),{closeModal:o}=(0,jy.useDispatch)(Te);return!e||r!==Ys?null:(0,m7.jsx)(rhe,{onClose:o,pattern:t})}var zy=i(O(),1),h7=i(Li(),1),g7=i(W(),1);var v7=i(x(),1),{DuplicatePatternModal:ohe}=D(h7.privateApis),EI="editor/pattern-duplicate";function y7(){let e=(0,zy.useSelect)(n=>n(Te).isModalActive(EI)),{record:t,postType:r}=(0,zy.useSelect)(n=>{if(!e)return{};let{getCurrentPostType:s,getCurrentPostId:a}=n(_),{getEditedEntityRecord:l}=n(g7.store),c=s();return{record:l("postType",c,a()),postType:c}},[e]),{closeModal:o}=(0,zy.useDispatch)(Te);return!e||r!==Ys?null:(0,v7.jsx)(ohe,{onClose:o,onSuccess:()=>o(),pattern:t})}var nhe=()=>function(){let{editorMode:t,isListViewOpen:r,showBlockBreadcrumbs:o,isDistractionFree:n,isFocusMode:s,isPreviewMode:a,isViewable:l,isCodeEditingEnabled:c,isRichEditingEnabled:u,isPublishSidebarEnabled:d}=(0,Jn.useSelect)(z=>{let{get:M}=z(AI.store),{isListViewOpened:k,getCurrentPostType:I,getEditorSettings:U}=z(_),{getSettings:G}=z(S7.store),{getPostType:Y}=z(Bp.store);return{editorMode:M("core","editorMode")??"visual",isListViewOpen:k(),showBlockBreadcrumbs:M("core","showBlockBreadcrumbs"),isDistractionFree:M("core","distractionFree"),isFocusMode:M("core","focusMode"),isPreviewMode:G().isPreviewMode,isViewable:Y(I())?.viewable??!1,isCodeEditingEnabled:U().codeEditingEnabled,isRichEditingEnabled:U().richEditingEnabled,isPublishSidebarEnabled:z(_).isPublishSidebarEnabled()}},[]),{getActiveComplementaryArea:f}=(0,Jn.useSelect)(Te),{toggle:m}=(0,Jn.useDispatch)(AI.store),{createInfoNotice:h}=(0,Jn.useDispatch)(b7.store),{__unstableSaveForPreview:g,setIsListViewOpened:y,switchEditorMode:v,toggleDistractionFree:b,toggleSpotlightMode:S,toggleTopToolbar:w}=(0,Jn.useDispatch)(_),{openModal:T,enableComplementaryArea:C,disableComplementaryArea:A}=(0,Jn.useDispatch)(Te),{getCurrentPostId:F}=(0,Jn.useSelect)(_),L=c&&u;if(a)return{commands:[],isLoading:!1};let j=[];return j.push({name:"core/open-shortcut-help",label:(0,$e.__)("Keyboard shortcuts"),icon:$A,category:"view",callback:({close:z})=>{z(),T("editor/keyboard-shortcut-help")}}),j.push({name:"core/toggle-distraction-free",label:n?(0,$e.__)("Exit Distraction free"):(0,$e.__)("Enter Distraction free"),category:"command",callback:({close:z})=>{b(),z()}}),j.push({name:"core/open-preferences",label:(0,$e.__)("Editor preferences"),category:"view",callback:({close:z})=>{z(),T("editor/preferences")}}),j.push({name:"core/toggle-spotlight-mode",label:s?(0,$e.__)("Exit Spotlight mode"):(0,$e.__)("Enter Spotlight mode"),category:"command",callback:({close:z})=>{S(),z()}}),j.push({name:"core/toggle-list-view",label:r?(0,$e.__)("Close List View"):(0,$e.__)("Open List View"),icon:xv,category:"command",callback:({close:z})=>{y(!r),z(),h(r?(0,$e.__)("List View off."):(0,$e.__)("List View on."),{id:"core/editor/toggle-list-view/notice",type:"snackbar"})}}),j.push({name:"core/toggle-top-toolbar",label:(0,$e.__)("Top toolbar"),category:"command",callback:({close:z})=>{w(),z()}}),L&&j.push({name:"core/toggle-code-editor",label:t==="visual"?(0,$e.__)("Open code editor"):(0,$e.__)("Exit code editor"),icon:EA,category:"command",callback:({close:z})=>{v(t==="visual"?"text":"visual"),z()}}),j.push({name:"core/toggle-breadcrumbs",label:o?(0,$e.__)("Hide block breadcrumbs"):(0,$e.__)("Show block breadcrumbs"),category:"command",callback:({close:z})=>{m("core","showBlockBreadcrumbs"),z(),h(o?(0,$e.__)("Breadcrumbs hidden."):(0,$e.__)("Breadcrumbs visible."),{id:"core/editor/toggle-breadcrumbs/notice",type:"snackbar"})}}),j.push({name:"core/open-settings-sidebar",label:(0,$e.__)("Show or hide the Settings panel"),icon:(0,$e.isRTL)()?Ld:Md,category:"command",callback:({close:z})=>{let M=f("core");z(),M==="edit-post/document"?A("core"):C("core","edit-post/document")}}),j.push({name:"core/open-block-inspector",label:(0,$e.__)("Show or hide the Block settings panel"),icon:uA,category:"command",callback:({close:z})=>{let M=f("core");z(),M==="edit-post/block"?A("core"):C("core","edit-post/block")}}),j.push({name:"core/toggle-publish-sidebar",label:d?(0,$e.__)("Disable pre-publish checks"):(0,$e.__)("Enable pre-publish checks"),icon:KA,category:"command",callback:({close:z})=>{z(),m("core","isPublishSidebarEnabled"),h(d?(0,$e.__)("Pre-publish checks disabled."):(0,$e.__)("Pre-publish checks enabled."),{id:"core/editor/publish-sidebar/notice",type:"snackbar"})}}),l&&j.push({name:"core/preview-link",label:(0,$e.__)("Preview in a new tab"),icon:Kn,category:"view",callback:async({close:z})=>{z();let M=F(),k=await g();window.open(k,`wp-preview-${M}`)}}),{commands:j,isLoading:!1}},she=()=>function(){let{postType:t}=(0,Jn.useSelect)(n=>{let{getCurrentPostType:s}=n(_);return{postType:s()}},[]),{openModal:r}=(0,Jn.useDispatch)(Te),o=[];return t===Ys&&(o.push({name:"core/rename-pattern",label:(0,$e.__)("Rename pattern"),icon:Ev,category:"edit",callback:({close:n})=>{r(kI),n()}}),o.push({name:"core/duplicate-pattern",label:(0,$e.__)("Duplicate pattern"),icon:Dv,category:"command",callback:({close:n})=>{r(EI),n()}})),{isLoading:!1,commands:o}},ihe=()=>function(){let{onNavigateToEntityRecord:t,goBack:r,templateId:o,isPreviewMode:n,canEditTemplate:s}=(0,Jn.useSelect)(u=>{let{getRenderingMode:d,getEditorSettings:f,getCurrentTemplateId:m}=D(u(_)),h=f(),g=m();return{isTemplateHidden:d()==="post-only",onNavigateToEntityRecord:h.onNavigateToEntityRecord,getEditorSettings:f,goBack:h.onNavigateToPreviousEntityRecord,templateId:g,isPreviewMode:h.isPreviewMode,canEditTemplate:!!g&&u(Bp.store).canUser("update",{kind:"postType",name:"wp_template",id:g})}},[]),{editedRecord:a,hasResolved:l}=(0,Bp.useEntityRecord)("postType","wp_template",o);if(n)return{isLoading:!1,commands:[]};let c=[];return o&&l&&s&&c.push({name:"core/switch-to-template-focus",label:(0,$e.sprintf)((0,$e.__)("Edit template: %s"),(0,ww.decodeEntities)(a.title)),icon:Bi,category:"edit",callback:({close:u})=>{t({postId:o,postType:"wp_template"}),u()}}),r&&c.push({name:"core/switch-to-previous-entity",label:(0,$e.__)("Go back"),icon:Hm,category:"view",callback:({close:u})=>{r(),u()}}),{isLoading:!1,commands:c}},ahe=()=>function(){let{postType:t,postId:r}=(0,Jn.useSelect)(l=>{let{getCurrentPostId:c,getCurrentPostType:u}=l(_);return{postType:u(),postId:c()}},[]),{editedRecord:o,hasResolved:n}=(0,Bp.useEntityRecord)("postType",t,r),{revertTemplate:s}=D((0,Jn.useDispatch)(_));if(!n||![Ur,_t].includes(t))return{isLoading:!0,commands:[]};let a=[];if(XS(o)){let l=o.type===_t?(0,$e.sprintf)((0,$e.__)("Reset template: %s"),(0,ww.decodeEntities)(o.title)):(0,$e.sprintf)((0,$e.__)("Reset template part: %s"),(0,ww.decodeEntities)(o.title));a.push({name:"core/reset-template",label:l,icon:(0,$e.isRTL)()?TR:wR,category:"command",callback:({close:c})=>{s(o),c()}})}return{isLoading:!n,commands:a}};function _7(){(0,Uy.useCommandLoader)({name:"core/editor/edit-ui",hook:nhe()}),(0,Uy.useCommandLoader)({name:"core/editor/contextual-commands",hook:she(),context:"entity-edit"}),(0,Uy.useCommandLoader)({name:"core/editor/page-content-focus",hook:ihe(),context:"entity-edit"}),(0,Uy.useCommandLoader)({name:"core/edit-site/manipulate-document",hook:ahe()})}var xw=i(O(),1),T7=i(N(),1),C7=i(x7(),1);var Dp="upload-in-progress";function P7(){let e=window.__clientSideMediaProcessing,t=(0,xw.useSelect)(a=>e?a(C7.store).isUploading():!1,[e]),{lockPostSaving:r,unlockPostSaving:o,lockPostAutosaving:n,unlockPostAutosaving:s}=(0,xw.useDispatch)(_);(0,T7.useEffect)(()=>{if(e)return t?(r(Dp),n(Dp)):(o(Dp),s(Dp)),()=>{o(Dp),s(Dp)}},[e,t,r,o,n,s])}var pf=i(E(),1),E7=i($(),1),A7=i(O(),1),R7=i(N(),1);var O7=i(x(),1),{BlockRemovalWarningModal:k7}=D(E7.privateApis),lhe=["core/post-content","core/post-template","core/query"],che=[{postTypes:["wp_template","wp_template_part"],callback(e){if(e.filter(({name:o})=>o==="core/post-content").length)return{description:(0,pf.__)("This block displays the content of posts and pages using this template."),warning:(0,pf.__)("If you delete it, posts or pages using this template will not display any content."),subtext:(0,pf.__)("Visitors will see blank pages."),requireConfirmation:!0};if(e.filter(({name:o})=>lhe.includes(o)).length)return(0,pf._n)("Deleting this block will stop your post or page content from displaying on this template. It is not recommended.","Some of the deleted blocks will stop your post or page content from displaying on this template. It is not recommended.",e.length)}},{postTypes:["wp_block"],callback(e){if(e.filter(({attributes:r})=>r?.metadata?.bindings&&Object.values(r.metadata.bindings).some(o=>o.source==="core/pattern-overrides")).length)return(0,pf._n)("The deleted block allows instance overrides. Removing it may result in content not displaying where this pattern is used. Are you sure you want to proceed?","Some of the deleted blocks allow instance overrides. Removing them may result in content not displaying where this pattern is used. Are you sure you want to proceed?",e.length)}}];function I7(){let e=(0,A7.useSelect)(r=>r(_).getCurrentPostType(),[]),t=(0,R7.useMemo)(()=>che.filter(r=>r.postTypes.includes(e)),[e]);return!k7||!t?null:(0,O7.jsx)(k7,{rules:t})}var Tu=i(R(),1),RI=i(E(),1),hf=i(N(),1),Tw=i($(),1),Gl=i(O(),1),F7=i(W(),1),N7=i(Xe(),1),OI=i(dt(),1);var Ea=i(x(),1);function uhe(){let{blockPatternsWithPostContentBlockType:e,postType:t}=(0,Gl.useSelect)(r=>{let{getPatternsByBlockTypes:o,getBlocksByName:n}=r(Tw.store),{getCurrentPostType:s,getRenderingMode:a}=r(_),l=a()==="post-only"?"":n("core/post-content")?.[0];return{blockPatternsWithPostContentBlockType:o("core/post-content",l),postType:s()}},[]);return(0,hf.useMemo)(()=>e?.length?e.filter(r=>t==="page"&&!r.postTypes||Array.isArray(r.postTypes)&&r.postTypes.includes(t)):[],[t,e])}function dhe({blockPatterns:e,onChoosePattern:t}){let{editEntityRecord:r}=(0,Gl.useDispatch)(F7.store),{postType:o,postId:n}=(0,Gl.useSelect)(s=>{let{getCurrentPostType:a,getCurrentPostId:l}=s(_);return{postType:a(),postId:l()}},[]);return(0,Ea.jsx)(Tw.__experimentalBlockPatternsList,{blockPatterns:e,onClickPattern:(s,a)=>{r("postType",o,n,{blocks:a,content:({blocks:l=[]})=>(0,N7.__unstableSerializeAndClean)(l)}),t()}})}function fhe({onClose:e}){let[t,r]=(0,hf.useState)(!0),{set:o}=(0,Gl.useDispatch)(OI.store),n=uhe();if(!(n.length>0))return null;function a(){e(),o("core","enableChoosePatternModal",t)}return(0,Ea.jsxs)(Tu.Modal,{className:"editor-start-page-options__modal",title:(0,RI.__)("Choose a pattern"),isFullScreen:!0,onRequestClose:a,children:[(0,Ea.jsx)("div",{className:"editor-start-page-options__modal-content",children:(0,Ea.jsx)(dhe,{blockPatterns:n,onChoosePattern:a})}),(0,Ea.jsx)(Tu.Flex,{className:"editor-start-page-options__modal__actions",justify:"flex-start",expanded:!1,children:(0,Ea.jsx)(Tu.FlexItem,{children:(0,Ea.jsx)(Tu.CheckboxControl,{checked:t,label:(0,RI.__)("Always show starter patterns for new pages"),onChange:l=>{r(l)}})})})]})}function B7(){let[e,t]=(0,hf.useState)(!1),{isEditedPostDirty:r,isEditedPostEmpty:o}=(0,Gl.useSelect)(_),{isModalActive:n}=(0,Gl.useSelect)(Te),{enabled:s,postId:a}=(0,Gl.useSelect)(l=>{let{getCurrentPostId:c,getCurrentPostType:u}=l(_),d=l(OI.store).get("core","enableChoosePatternModal"),f=u();return{postId:c(),enabled:d&&dr!==f&&_t!==f&&Ur!==f}},[]);return(0,hf.useEffect)(()=>{let l=!r()&&o(),c=n("editor/preferences");!s||!l||c||t(!0)},[s,a,r,o,n]),e?(0,Ea.jsx)(fhe,{onClose:()=>t(!1)}):null}var Y7=i(R(),1),Aa=i(E(),1),Ew=i(Es(),1),Hy=i(O(),1);var oi=i(E(),1),L7=[{keyCombination:{modifier:"primary",character:"b"},description:(0,oi.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,oi.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,oi.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,oi.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,oi.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,oi.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,oi.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,oi.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}],description:(0,oi.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,oi.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")},{keyCombination:{modifier:"primaryShift",character:"SPACE"},description:(0,oi.__)("Add non breaking space.")}];var j7=i(N(),1),Cw=i(yo(),1),ni=i(x(),1);function V7({keyCombination:e,forceAriaLabel:t}){let r=e.modifier?Cw.displayShortcutList[e.modifier](e.character):e.character,o=e.modifier?Cw.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,ni.jsx)("kbd",{className:"editor-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||o,children:(Array.isArray(r)?r:[r]).map((n,s)=>n==="+"?(0,ni.jsx)(j7.Fragment,{children:n},s):(0,ni.jsx)("kbd",{className:"editor-keyboard-shortcut-help-modal__shortcut-key",children:n},s))})}function mhe({description:e,keyCombination:t,aliases:r=[],ariaLabel:o}){return(0,ni.jsxs)(ni.Fragment,{children:[(0,ni.jsx)("div",{className:"editor-keyboard-shortcut-help-modal__shortcut-description",children:e}),(0,ni.jsxs)("div",{className:"editor-keyboard-shortcut-help-modal__shortcut-term",children:[(0,ni.jsx)(V7,{keyCombination:t,forceAriaLabel:o}),r.map((n,s)=>(0,ni.jsx)(V7,{keyCombination:n,forceAriaLabel:o},s))]})]})}var Pw=mhe;var z7=i(O(),1),U7=i(Es(),1);var H7=i(x(),1);function phe({name:e}){let{keyCombination:t,description:r,aliases:o}=(0,z7.useSelect)(n=>{let{getShortcutKeyCombination:s,getShortcutDescription:a,getShortcutAliases:l}=n(U7.store);return{keyCombination:s(e),aliases:l(e),description:a(e)}},[e]);return t?(0,H7.jsx)(Pw,{keyCombination:t,description:r,aliases:o}):null}var G7=phe;var Bo=i(x(),1),W7="editor/keyboard-shortcut-help",hhe=({shortcuts:e})=>(0,Bo.jsx)("ul",{className:"editor-keyboard-shortcut-help-modal__shortcut-list",role:"list",children:e.map((t,r)=>(0,Bo.jsx)("li",{className:"editor-keyboard-shortcut-help-modal__shortcut",children:typeof t=="string"?(0,Bo.jsx)(G7,{name:t}):(0,Bo.jsx)(Pw,{...t})},r))}),II=({title:e,shortcuts:t,className:r})=>(0,Bo.jsxs)("section",{className:re("editor-keyboard-shortcut-help-modal__section",r),children:[!!e&&(0,Bo.jsx)("h2",{className:"editor-keyboard-shortcut-help-modal__section-title",children:e}),(0,Bo.jsx)(hhe,{shortcuts:t})]}),kw=({title:e,categoryName:t,additionalShortcuts:r=[]})=>{let o=(0,Hy.useSelect)(n=>n(Ew.store).getCategoryShortcuts(t),[t]);return(0,Bo.jsx)(II,{title:e,shortcuts:o.concat(r)})};function ghe(){let e=(0,Hy.useSelect)(n=>n(Te).isModalActive(W7),[]),{openModal:t,closeModal:r}=(0,Hy.useDispatch)(Te),o=()=>{e?r():t(W7)};return(0,Ew.useShortcut)("core/editor/keyboard-shortcuts",o),e?(0,Bo.jsxs)(Y7.Modal,{className:"editor-keyboard-shortcut-help-modal",title:(0,Aa.__)("Keyboard shortcuts"),closeButtonLabel:(0,Aa.__)("Close"),onRequestClose:o,children:[(0,Bo.jsx)(II,{className:"editor-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/editor/keyboard-shortcuts"]}),(0,Bo.jsx)(kw,{title:(0,Aa.__)("Global shortcuts"),categoryName:"global"}),(0,Bo.jsx)(kw,{title:(0,Aa.__)("Selection shortcuts"),categoryName:"selection"}),(0,Bo.jsx)(kw,{title:(0,Aa.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,Aa.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,Aa.__)("Forward-slash")}]}),(0,Bo.jsx)(II,{title:(0,Aa.__)("Text formatting"),shortcuts:L7}),(0,Bo.jsx)(kw,{title:(0,Aa.__)("List View shortcuts"),categoryName:"list-view"})]}):null}var FI=ghe;var Cu=i(R(),1),Gy=i(E(),1),Lp=i(N(),1),q7=i($(),1),Wy=i(O(),1),NI=i(Xe(),1),gf=i(W(),1);var Ra=i(x(),1);function vhe(e,t=!1){return(0,Wy.useSelect)(r=>{let{getEntityRecord:o,getDefaultTemplateId:n}=r(gf.store),s=n({slug:e,is_custom:t,ignore_empty:!0});return s?o("postType",_t,s)?.content?.raw:void 0},[e,t])}function yhe(e){let{slug:t,patterns:r}=(0,Wy.useSelect)(s=>{let{getCurrentPostType:a,getCurrentPostId:l}=s(_),{getEntityRecord:c,getBlockPatterns:u}=s(gf.store),d=l(),f=a();return{slug:c("postType",f,d).slug,patterns:u()}},[]),o=(0,Wy.useSelect)(s=>s(gf.store).getCurrentTheme().stylesheet);function n(s){return s.innerBlocks.find(a=>a.name==="core/template-part")&&(s.innerBlocks=s.innerBlocks.map(a=>(a.name==="core/template-part"&&a.attributes.theme===void 0&&(a.attributes.theme=o),a))),s.name==="core/template-part"&&s.attributes.theme===void 0&&(s.attributes.theme=o),s}return(0,Lp.useMemo)(()=>[{name:"fallback",blocks:(0,NI.parse)(e),title:(0,Gy.__)("Fallback content")},...r.filter(s=>Array.isArray(s.templateTypes)&&s.templateTypes.some(a=>t.startsWith(a))).map(s=>({...s,blocks:(0,NI.parse)(s.content).map(a=>n(a))}))],[e,t,r])}function bhe({fallbackContent:e,onChoosePattern:t,postType:r}){let[,,o]=(0,gf.useEntityBlockEditor)("postType",r),n=yhe(e);return(0,Ra.jsx)(q7.__experimentalBlockPatternsList,{blockPatterns:n,onClickPattern:(s,a)=>{o(a,{selection:void 0}),t()}})}function She({slug:e,isCustom:t,onClose:r,postType:o}){let n=vhe(e,t);return n?(0,Ra.jsxs)(Cu.Modal,{className:"editor-start-template-options__modal",title:(0,Gy.__)("Choose a pattern"),closeLabel:(0,Gy.__)("Cancel"),focusOnMount:"firstElement",onRequestClose:r,isFullScreen:!0,children:[(0,Ra.jsx)("div",{className:"editor-start-template-options__modal-content",children:(0,Ra.jsx)(bhe,{fallbackContent:n,slug:e,isCustom:t,postType:o,onChoosePattern:()=>{r()}})}),(0,Ra.jsx)(Cu.Flex,{className:"editor-start-template-options__modal__actions",justify:"flex-end",expanded:!1,children:(0,Ra.jsx)(Cu.FlexItem,{children:(0,Ra.jsx)(Cu.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:r,children:(0,Gy.__)("Skip")})})})]}):null}function Z7(){let[e,t]=(0,Lp.useState)(!1),{shouldOpenModal:r,slug:o,isCustom:n,postType:s,postId:a}=(0,Wy.useSelect)(l=>{let{getCurrentPostType:c,getCurrentPostId:u}=l(_),d=c(),f=u(),{getEditedEntityRecord:m,hasEditsForEntityRecord:h}=l(gf.store),g=m("postType",d,f);return{shouldOpenModal:!h("postType",d,f)&&g.content===""&&_t===d,slug:g.slug,isCustom:g.is_custom,postType:d,postId:f}},[]);return(0,Lp.useEffect)(()=>{t(!1)},[s,a]),!r||e?null:(0,Ra.jsx)(She,{slug:o,isCustom:n,postType:s,onClose:()=>t(!0)})}var Pu=i(Es(),1),ku=i(O(),1);var K7=i($(),1);function vf(){let e=(0,ku.useSelect)(y=>{let{richEditingEnabled:v,codeEditingEnabled:b}=y(_).getEditorSettings();return!v||!b},[]),{getBlockSelectionStart:t}=(0,ku.useSelect)(K7.store),{getActiveComplementaryArea:r}=(0,ku.useSelect)(Te),{enableComplementaryArea:o,disableComplementaryArea:n}=(0,ku.useDispatch)(Te),{redo:s,undo:a,savePost:l,setIsListViewOpened:c,switchEditorMode:u,toggleDistractionFree:d}=(0,ku.useDispatch)(_),{isEditedPostDirty:f,isPostSavingLocked:m,isListViewOpened:h,getEditorMode:g}=(0,ku.useSelect)(_);return(0,Pu.useShortcut)("core/editor/toggle-mode",()=>{u(g()==="visual"?"text":"visual")},{isDisabled:e}),(0,Pu.useShortcut)("core/editor/toggle-distraction-free",()=>{d()}),(0,Pu.useShortcut)("core/editor/undo",y=>{a(),y.preventDefault()}),(0,Pu.useShortcut)("core/editor/redo",y=>{s(),y.preventDefault()}),(0,Pu.useShortcut)("core/editor/save",y=>{y.preventDefault(),!m()&&f()&&l()}),(0,Pu.useShortcut)("core/editor/toggle-list-view",y=>{h()||(y.preventDefault(),c(!0))}),(0,Pu.useShortcut)("core/editor/toggle-sidebar",y=>{if(y.preventDefault(),["edit-post/document","edit-post/block"].includes(r("core")))n("core");else{let b=t()?"edit-post/block":"edit-post/document";o("core",b)}}),null}var i9=i(O(),1),Rw=i($(),1);var Yy=i(O(),1),Aw=i($(),1),X7=i(R(),1),Q7=i(E(),1),J7=i(x(),1);function $7({clientId:e,onClose:t}){let{getBlocks:r}=(0,Yy.useSelect)(Aw.store),{replaceBlocks:o}=(0,Yy.useDispatch)(Aw.store);return(0,Yy.useSelect)(s=>s(Aw.store).canRemoveBlock(e),[e])?(0,J7.jsx)(X7.MenuItem,{onClick:()=>{o(e,r(e)),t()},children:(0,Q7.__)("Detach")}):null}var qy=i(O(),1),BI=i($(),1),e9=i(R(),1),t9=i(Xe(),1),DI=i(E(),1),r9=i(N(),1),o9=i(ct(),1);var n9=i(W(),1);var yf=i(x(),1);function s9({clientIds:e,blocks:t}){let[r,o]=(0,r9.useState)(!1),{replaceBlocks:n}=(0,qy.useDispatch)(BI.store),{createSuccessNotice:s}=(0,qy.useDispatch)(o9.store),{isBlockBasedTheme:a,canCreate:l}=(0,qy.useSelect)(u=>({isBlockBasedTheme:u(n9.store).getCurrentTheme()?.is_block_theme,canCreate:u(BI.store).canInsertBlockType("core/template-part")}),[]);if(!a||!l)return null;let c=async u=>{n(e,(0,t9.createBlock)("core/template-part",{slug:u.slug,theme:u.theme})),s((0,DI.__)("Template part created."),{type:"snackbar"})};return(0,yf.jsxs)(yf.Fragment,{children:[(0,yf.jsx)(e9.MenuItem,{icon:zd,onClick:()=>{o(!0)},"aria-expanded":r,"aria-haspopup":"dialog",children:(0,DI.__)("Create template part")}),r&&(0,yf.jsx)(vp,{closeModal:()=>{o(!1)},blocks:t,onCreate:c})]})}var Zy=i(x(),1);function a9(){return(0,Zy.jsx)(Rw.BlockSettingsMenuControls,{children:({selectedClientIds:e,onClose:t})=>(0,Zy.jsx)(_he,{clientIds:e,onClose:t})})}function _he({clientIds:e,onClose:t}){let{blocks:r}=(0,i9.useSelect)(o=>{let{getBlocksByClientId:n}=o(Rw.store);return{blocks:n(e)}},[e]);return r.length===1&&r[0]?.name==="core/template-part"?(0,Zy.jsx)($7,{clientId:e[0],onClose:t}):(0,Zy.jsx)(s9,{clientIds:e,blocks:r})}var Ft=i(x(),1),{ExperimentalBlockEditorProvider:whe}=D(Vp.privateApis),{PatternsMenuItems:xhe}=D(u9.privateApis),l9=()=>{},The=["wp_block","wp_navigation","wp_template_part"];function Che(e,t,r){let o=r==="template-locked"?"template":"post",[n,s,a]=(0,Ui.useEntityBlockEditor)("postType",e.type,{id:e.id}),[l,c,u]=(0,Ui.useEntityBlockEditor)("postType",t?.type,{id:t?.id}),d=(0,As.useMemo)(()=>{if(e.type==="wp_navigation")return[(0,d9.createBlock)("core/navigation",{ref:e.id,templateLock:!1})]},[e.type,e.id]),f=(0,As.useMemo)(()=>d||(o==="template"?l:n),[d,o,l,n]);return!!t&&r==="template-locked"||e.type==="wp_navigation"?[f,l9,l9]:[f,o==="post"?s:c,o==="post"?a:u]}var MI=CV(({post:e,settings:t,recovery:r,initialEdits:o,children:n,BlockEditorProviderComponent:s=whe,__unstableTemplate:a})=>{let l=!!a,{editorSettings:c,selection:u,isReady:d,mode:f,defaultMode:m,postTypeEntities:h}=(0,Mp.useSelect)(B=>{let{getEditorSettings:V,getRenderingMode:H,__unstableIsEditorReady:X,getDefaultRenderingMode:ne}=D(B(_)),{getEntitiesConfig:se,getEntityRecordEdits:ye}=B(Ui.store),qe=H(),ge=ne(e.type),oe=ge==="template-locked"?l:ge!==void 0,ve=ge!==void 0,De=ye("postType",e.type,e.id);return{editorSettings:V(),isReady:X(),mode:ve?qe:void 0,defaultMode:oe?ge:void 0,selection:De?.selection,postTypeEntities:e.type==="wp_template"?se("postType"):null}},[e.type,e.id,l]),g=l&&f!=="post-only",y=g?a:e,v=(0,As.useMemo)(()=>{let B={};if(e.type==="wp_template"){if(e.slug==="page")B.postType="page";else if(e.slug==="single")B.postType="post";else if(e.slug.split("-")[0]==="single"){let V=h?.map(X=>X.name)||[],H=e.slug.match(`^single-(${V.join("|")})(?:-.+)?$`);H&&(B.postType=H[1])}}else(!The.includes(y.type)||g)&&(B.postId=e.id,B.postType=e.type);return{...B,templateSlug:y.type==="wp_template"?y.slug:void 0}},[g,e.id,e.type,e.slug,y.type,y.slug,h]),{id:b,type:S}=y,w=E8(c,S,b,f),[T,C,A]=Che(e,a,f),{updatePostLock:F,setupEditor:L,updateEditorSettings:j,setCurrentTemplateId:z,setEditedPost:M,setRenderingMode:k}=D((0,Mp.useDispatch)(_)),{editEntityRecord:I}=(0,Mp.useDispatch)(Ui.store),U=(0,As.useCallback)(B=>{I("postType",e.type,e.id,{selection:B},{undoIgnore:!0})},[I,e.type,e.id]),{createWarningNotice:G,removeNotice:Y}=(0,Mp.useDispatch)(c9.store);return(0,As.useLayoutEffect)(()=>{r||(F(t.postLock),L(e,o,t.template),t.autosave&&G((0,LI.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:(0,LI.__)("View the autosave"),url:t.autosave.editLink}]}))},[]),(0,As.useEffect)(()=>(M(e.type,e.id),typeof window<"u"&&window.__experimentalTemplateActivate&&Y("template-activate-notice"),()=>M(null,null)),[e.type,e.id,M,Y]),(0,As.useEffect)(()=>{j(t)},[t,j]),(0,As.useEffect)(()=>{z(a?.id)},[a?.id,z]),(0,As.useEffect)(()=>{m&&k(m)},[m,k]),M8(e.type,f),_7(),P7(),!d||!f?null:e.type===dr&&window?.__experimentalMediaEditor?(0,Ft.jsx)(Ui.EntityProvider,{kind:"root",type:"site",children:(0,Ft.jsxs)(Ui.EntityProvider,{kind:"postType",type:e.type,id:e.id,children:[n,!t.isPreviewMode&&(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.jsx)(vf,{}),(0,Ft.jsx)(FI,{})]})]})}):(0,Ft.jsx)(Ui.EntityProvider,{kind:"root",type:"site",children:(0,Ft.jsx)(Ui.EntityProvider,{kind:"postType",type:e.type,id:e.id,children:(0,Ft.jsx)(Vp.BlockContextProvider,{value:v,children:(0,Ft.jsxs)(s,{value:T,onChange:A,onInput:C,selection:u,onChangeSelection:U,settings:w,useSubRegistry:!1,children:[n,!t.isPreviewMode&&(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.jsx)(xhe,{}),(0,Ft.jsx)(a9,{}),f==="template-locked"&&(0,Ft.jsx)(F8,{}),S==="wp_navigation"&&(0,Ft.jsx)(B8,{}),(0,Ft.jsx)(vf,{}),(0,Ft.jsx)(FI,{}),(0,Ft.jsx)(I7,{}),(0,Ft.jsx)(B7,{}),(0,Ft.jsx)(Z7,{}),(0,Ft.jsx)(p7,{}),(0,Ft.jsx)(y7,{})]})]})})})})});function VI(e){return(0,Ft.jsx)(MI,{...e,BlockEditorProviderComponent:Vp.BlockEditorProvider,children:e.children})}var f9=VI;var tH=i(W(),1),rH=i(O(),1),b6=i(N(),1);var lh=i(R(),1),xx=i(Xe(),1),qU=i(O(),1),ZU=i($(),1),Lu=i(N(),1),p6=i(pe(),1);var jI=i(N(),1);var m9=i(N(),1),Br=(0,m9.createContext)({user:{styles:{},settings:{}},base:{styles:{},settings:{}},merged:{styles:{},settings:{}},onChange:()=>{},fontLibraryEnabled:!1});var p9=i(x(),1);function Ky({children:e,value:t,baseValue:r,onChange:o,fontLibraryEnabled:n}){let s=(0,jI.useMemo)(()=>go(r,t),[r,t]),a=(0,jI.useMemo)(()=>({user:t,base:r,merged:s,onChange:o,fontLibraryEnabled:n}),[t,r,s,o,n]);return(0,p9.jsx)(Br.Provider,{value:a,children:e})}var mr=i(R(),1),xf=i(E(),1);var D9=i(O(),1),L9=i(W(),1);var h9=i(x(),1);function Xy({className:e,...t}){return(0,h9.jsx)(Oo,{className:re(e,"global-styles-ui-icon-with-current-color"),...t})}var Eu=i(R(),1);var bf=i(x(),1);function Phe({icon:e,children:t,...r}){return(0,bf.jsxs)(Eu.__experimentalItem,{...r,children:[e&&(0,bf.jsxs)(Eu.__experimentalHStack,{justify:"flex-start",children:[(0,bf.jsx)(Xy,{icon:e,size:24}),(0,bf.jsx)(Eu.FlexItem,{children:t})]}),!e&&t]})}function fr(e){return(0,bf.jsx)(Eu.Navigator.Button,{as:Phe,...e})}var x9=i(R(),1);var Sf=i(E(),1),T9=i($(),1);var zI=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},UI=function(e){return .2126*zI(e.r)+.7152*zI(e.g)+.0722*zI(e.b)};function Ow(e){e.prototype.luminance=function(){return t=UI(this.rgba),(r=2)===void 0&&(r=0),o===void 0&&(o=Math.pow(10,r)),Math.round(o*t)/o+0;var t,r,o},e.prototype.contrast=function(t){t===void 0&&(t="#FFF");var r,o,n,s,a,l,c,u=t instanceof e?t:new e(t);return s=this.rgba,a=u.toRgb(),l=UI(s),c=UI(a),r=l>c?(l+.05)/(c+.05):(c+.05)/(l+.05),(o=2)===void 0&&(o=0),n===void 0&&(n=Math.pow(10,o)),Math.floor(n*r)/n+0},e.prototype.isReadable=function(t,r){return t===void 0&&(t="#FFF"),r===void 0&&(r={}),this.contrast(t)>=(l=(a=(o=r).size)===void 0?"normal":a,(s=(n=o.level)===void 0?"AA":n)==="AAA"&&l==="normal"?7:s==="AA"&&l==="large"?3:4.5);var o,n,s,a,l}}var si=i(N(),1),b9=i(O(),1),S9=i(W(),1),GI=i(E(),1);function HI(e,t){if(!t?.length||typeof e!="object"||!e||!Object.keys(e).length)return e;for(let r in e)t.includes(r)?delete e[r]:typeof e[r]=="object"&&HI(e[r],t);return e}var Iw=(e,t)=>{if(!e||!t?.length)return{};let r={};return Object.keys(e).forEach(o=>{if(t.includes(o))r[o]=e[o];else if(typeof e[o]=="object"){let n=Iw(e[o],t);Object.keys(n).length&&(r[o]=n)}}),r};function Qy(e,t){let r=Iw(structuredClone(e),t);return cf(r,e)}function g9(e,t){if(!Array.isArray(e)||!t)return null;let o=t.replace("var(","").replace(")","")?.split("--").slice(-1)[0];return e.find(n=>n.slug===o)}function v9(e){let t=e?.settings?.typography?.fontFamilies?.theme,r=e?.settings?.typography?.fontFamilies?.custom,o=[];t&&r?o=[...t,...r]:t?o=t:r&&(o=r);let n=e?.styles?.typography?.fontFamily,s=g9(o,n),a=e?.styles?.elements?.heading?.typography?.fontFamily,l;return a?l=g9(o,e?.styles?.elements?.heading?.typography?.fontFamily):l=s,[s,l]}function y9(e){return e?`is-style-${e}`:""}function Fw(e,t){let r=new RegExp(`^${t}([\\d]+)$`);return e.reduce((n,s)=>{if(typeof s?.slug=="string"){let a=s?.slug.match(r);if(a){let l=parseInt(a[1],10);if(l>n)return l}}return n},0)+1}iw([Ow]);function Ee(e,t,r="merged",o=!0){let{user:n,base:s,merged:a,onChange:l}=(0,si.useContext)(Br),c=a;r==="base"?c=s:r==="user"&&(c=n);let u=(0,si.useMemo)(()=>Py(c,e,t,o),[c,e,t,o]),d=(0,si.useCallback)(f=>{let m=ky(n,e,f,t);l(m)},[n,l,e,t]);return[u,d]}function me(e,t,r="merged"){let{user:o,base:n,merged:s,onChange:a}=(0,si.useContext)(Br),l=s;r==="base"?l=n:r==="user"&&(l=o);let c=(0,si.useMemo)(()=>lf(l,e,t),[l,e,t]),u=(0,si.useCallback)(d=>{let f=xy(o,e,d,t);a(f)},[o,a,e,t]);return[c,u]}var khe=[];function Ehe({title:e,settings:t,styles:r}){return e===(0,GI.__)("Default")||Object.keys(t||{}).length>0||Object.keys(r||{}).length>0}function Nw(e=[]){let{variationsFromTheme:t}=(0,b9.useSelect)(o=>({variationsFromTheme:o(S9.store).__experimentalGetCurrentThemeGlobalStylesVariations?.()||khe}),[]),{user:r}=(0,si.useContext)(Br);return(0,si.useMemo)(()=>{let o=structuredClone(r),n=HI(o,e);n.title=(0,GI.__)("Default");let s=t.filter(l=>Qy(l,e)).map(l=>go(n,l)),a=[n,...s];return a?.length?a.filter(Ehe):[]},[e,r,t])}function _9(e){let[t,r]=me("color.palette.theme",e),o=(0,si.useCallback)(()=>{if(!t||!t.length)return;let n=Math.floor(Math.random()*225),s=t.map(a=>{let{color:l}=a,c=xr(l).rotate(n).toHex();return{...a,color:c}});r(s)},[t,r]);return window.__experimentalEnableColorRandomizer?[o]:[]}var w9=i(Mv(),1),{lock:hMe,unlock:tt}=(0,w9.__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-ui");var Hi=i(x(),1),{useHasDimensionsPanel:Ahe,useHasTypographyPanel:Rhe,useHasColorPanel:Ohe,useSettingsForBlockElement:Ihe,useHasBackgroundPanel:Fhe}=tt(T9.privateApis);function Nhe(){let[e]=me(""),t=Ihe(e),r=Fhe(e),o=Rhe(t),n=Ohe(t),s=!0,l=Ahe(t);return(0,Hi.jsx)(Hi.Fragment,{children:(0,Hi.jsxs)(x9.__experimentalItemGroup,{children:[o&&(0,Hi.jsx)(fr,{icon:WR,path:"/typography",children:(0,Sf.__)("Typography")}),n&&(0,Hi.jsx)(fr,{icon:RA,path:"/colors",children:(0,Sf.__)("Colors")}),r&&(0,Hi.jsx)(fr,{icon:aA,path:"/background","aria-label":(0,Sf.__)("Background styles"),children:(0,Sf.__)("Background")}),s&&(0,Hi.jsx)(fr,{icon:Nv,path:"/shadows",children:(0,Sf.__)("Shadows")}),l&&(0,Hi.jsx)(fr,{icon:Bi,path:"/layout",children:(0,Sf.__)("Layout")})]})})}var C9=Nhe;var Oa=i(R(),1);function jp(){let[e="black"]=Ee("color.text"),[t="white"]=Ee("color.background"),[r=e]=Ee("elements.h1.color.text"),[o=r]=Ee("elements.link.color.text"),[n=o]=Ee("elements.button.color.background"),[s]=me("color.palette.core")||[],[a]=me("color.palette.theme")||[],[l]=me("color.palette.custom")||[],c=(a??[]).concat(l??[]).concat(s??[]),u=c.filter(({color:m})=>m===e),d=c.filter(({color:m})=>m===n),f=u.concat(d).concat(c).filter(({color:m})=>m!==t).slice(0,2);return{paletteColors:c,highlightedColors:f}}var E9=i(N(),1),A9=i(R(),1),YI=i(E(),1);function Bhe(e,t){return t.length===0?null:(t.sort((r,o)=>Math.abs(e-r)-Math.abs(e-o)),t[0])}function Dhe(e){let t=[];return e.forEach(r=>{let o=String(r.fontWeight).split(" ");if(o.length===2){let n=parseInt(o[0]),s=parseInt(o[1]);for(let a=n;a<=s;a+=100)t.push(a)}else o.length===1&&t.push(parseInt(o[0]))}),t}function P9(e){let t=/^(?!generic\([ a-zA-Z\-]+\)$)(?!^[a-zA-Z\-]+$).+/,r=e.trim(),o=n=>(n=n.trim(),n.match(t)?(n=n.replace(/^["']|["']$/g,""),`"${n}"`):n);return r.includes(",")?r.split(",").map(o).filter(n=>n!=="").join(", "):o(r)}function WI(e){if(!e)return"";let t=e.trim();return t.includes(",")&&(t=(t.split(",").find(r=>r.trim()!=="")??"").trim()),t=t.replace(/^["']|["']$/g,""),window.navigator.userAgent.toLowerCase().includes("firefox")&&(t=`"${t}"`),t}function _f(e){let t={fontFamily:P9(e.fontFamily)};if(!("fontFace"in e)||!Array.isArray(e.fontFace))return t.fontWeight="400",t.fontStyle="normal",t;if(e.fontFace){let r=e.fontFace.filter(o=>o?.fontStyle&&o.fontStyle.toLowerCase()==="normal");if(r.length>0){t.fontStyle="normal";let o=Dhe(r),n=Bhe(400,o);t.fontWeight=String(n)||"400"}else t.fontStyle=e.fontFace.length&&e.fontFace[0].fontStyle||"normal",t.fontWeight=e.fontFace.length&&String(e.fontFace[0].fontWeight)||"400"}return t}function k9(e){return{fontFamily:P9(e.fontFamily),fontStyle:e.fontStyle||"normal",fontWeight:e.fontWeight||"400"}}var Jy=i(x(),1);function Bw({fontSize:e,variation:t}){let{base:r}=(0,E9.useContext)(Br),o=r;t&&(o={...r,...t});let[n]=Ee("color.text"),[s,a]=v9(o),l=s?_f(s):{},c=a?_f(a):{};return n&&(l.color=n,c.color=n),e&&(l.fontSize=e,c.fontSize=e),(0,Jy.jsxs)(A9.__unstableMotion.div,{animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:.3,type:"tween"},style:{textAlign:"center",lineHeight:1},children:[(0,Jy.jsx)("span",{style:c,children:(0,YI._x)("A","Uppercase letter A")}),(0,Jy.jsx)("span",{style:l,children:(0,YI._x)("a","Lowercase letter A")})]})}var R9=i(R(),1);var O9=i(x(),1);function I9({normalizedColorSwatchSize:e,ratio:t}){let{highlightedColors:r}=jp(),o=e*t;return r.map(({slug:n,color:s},a)=>(0,O9.jsx)(R9.__unstableMotion.div,{style:{height:o,width:o,background:s,borderRadius:o/2},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:a===1?.2:.1}},`${n}-${a}`))}var B9=i(R(),1),zp=i(pe(),1),wf=i(N(),1);var Au=i(x(),1),F9=248,N9=152,Lhe={leading:!0,trailing:!0};function Mhe({children:e,label:t,isFocused:r,withHoverView:o}){let[n="white"]=Ee("color.background"),[s]=Ee("color.gradient"),a=(0,zp.useReducedMotion)(),[l,c]=(0,wf.useState)(!1),[u,{width:d}]=(0,zp.useResizeObserver)(),[f,m]=(0,wf.useState)(d),[h,g]=(0,wf.useState)(),y=(0,zp.useThrottle)(m,250,Lhe);(0,wf.useLayoutEffect)(()=>{d&&y(d)},[d,y]),(0,wf.useLayoutEffect)(()=>{let w=f?f/F9:1,T=w-(h||0);(Math.abs(T)>.1||!h)&&g(w)},[f,h]);let v=d?d/F9:1,b=h||v;return(0,Au.jsxs)(Au.Fragment,{children:[(0,Au.jsx)("div",{style:{position:"relative"},children:u}),!!d&&(0,Au.jsx)("div",{className:"global-styles-ui-preview__wrapper",style:{height:N9*b},onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),tabIndex:-1,children:(0,Au.jsx)(B9.__unstableMotion.div,{style:{height:N9*b,width:"100%",background:s??n,cursor:o?"pointer":void 0},initial:"start",animate:(l||r)&&!a&&t?"hover":"start",children:[].concat(e).map((w,T)=>w({ratio:b,key:T}))})})]})}var Up=Mhe;var $n=i(x(),1),Vhe={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},jhe={hover:{opacity:1},start:{opacity:.5}},zhe={hover:{scale:1,opacity:1},start:{scale:0,opacity:0}};function Uhe({label:e,isFocused:t,withHoverView:r,variation:o}){let[n]=Ee("typography.fontWeight"),[s="serif"]=Ee("typography.fontFamily"),[a=s]=Ee("elements.h1.typography.fontFamily"),[l=n]=Ee("elements.h1.typography.fontWeight"),[c="black"]=Ee("color.text"),[u=c]=Ee("elements.h1.color.text"),{paletteColors:d}=jp();return(0,$n.jsxs)(Up,{label:e,isFocused:t,withHoverView:r,children:[({ratio:f,key:m})=>(0,$n.jsx)(Oa.__unstableMotion.div,{variants:Vhe,style:{height:"100%",overflow:"hidden"},children:(0,$n.jsxs)(Oa.__experimentalHStack,{spacing:10*f,justify:"center",style:{height:"100%",overflow:"hidden"},children:[(0,$n.jsx)(Bw,{fontSize:65*f,variation:o}),(0,$n.jsx)(Oa.__experimentalVStack,{spacing:4*f,children:(0,$n.jsx)(I9,{normalizedColorSwatchSize:32,ratio:f})})]})},m),({key:f})=>(0,$n.jsx)(Oa.__unstableMotion.div,{variants:r?jhe:void 0,style:{height:"100%",width:"100%",position:"absolute",top:0,overflow:"hidden",filter:"blur(60px)",opacity:.1},children:(0,$n.jsx)(Oa.__experimentalHStack,{spacing:0,justify:"flex-start",style:{height:"100%",overflow:"hidden"},children:d.slice(0,4).map(({color:m},h)=>(0,$n.jsx)("div",{style:{height:"100%",background:m,flexGrow:1}},h))})},f),({ratio:f,key:m})=>(0,$n.jsx)(Oa.__unstableMotion.div,{variants:zhe,style:{height:"100%",width:"100%",overflow:"hidden",position:"absolute",top:0},children:(0,$n.jsx)(Oa.__experimentalVStack,{spacing:3*f,justify:"center",style:{height:"100%",overflow:"hidden",padding:10*f,boxSizing:"border-box"},children:e&&(0,$n.jsx)("div",{style:{fontSize:40*f,fontFamily:a,color:u,fontWeight:l,lineHeight:"1em",textAlign:"center"},children:e})})},m)]})}var Dw=Uhe;var Tr=i(x(),1);function Hhe(){let e=(0,D9.useSelect)(t=>{let{__experimentalGetCurrentThemeGlobalStylesVariations:r}=t(L9.store);return!!r()?.length},[]);return(0,Tr.jsxs)(mr.Card,{size:"small",isBorderless:!0,className:"global-styles-ui-screen-root",isRounded:!1,children:[(0,Tr.jsx)(mr.CardBody,{children:(0,Tr.jsxs)(mr.__experimentalVStack,{spacing:4,children:[(0,Tr.jsx)(mr.Card,{className:"global-styles-ui-screen-root__active-style-tile",children:(0,Tr.jsx)(mr.CardMedia,{className:"global-styles-ui-screen-root__active-style-tile-preview",children:(0,Tr.jsx)(Dw,{})})}),e&&(0,Tr.jsx)(mr.__experimentalItemGroup,{children:(0,Tr.jsx)(fr,{path:"/variations",children:(0,Tr.jsxs)(mr.__experimentalHStack,{justify:"space-between",children:[(0,Tr.jsx)(mr.FlexItem,{children:(0,xf.__)("Browse styles")}),(0,Tr.jsx)(Xy,{icon:(0,xf.isRTL)()?Wt:Yt})]})})}),(0,Tr.jsx)(C9,{})]})}),(0,Tr.jsx)(mr.CardDivider,{}),(0,Tr.jsxs)(mr.CardBody,{children:[(0,Tr.jsx)(mr.__experimentalSpacer,{as:"p",paddingTop:2,paddingX:"13px",marginBottom:4,children:(0,xf.__)("Customize the appearance of specific blocks for the whole site.")}),(0,Tr.jsx)(mr.__experimentalItemGroup,{children:(0,Tr.jsx)(fr,{path:"/blocks",children:(0,Tr.jsxs)(mr.__experimentalHStack,{justify:"space-between",children:[(0,Tr.jsx)(mr.FlexItem,{children:(0,xf.__)("Blocks")}),(0,Tr.jsx)(Xy,{icon:(0,xf.isRTL)()?Wt:Yt})]})})})]})]})}var M9=Hhe;var ZI=i(Xe(),1),Ia=i(E(),1),Ru=i(R(),1),KI=i(O(),1),Fa=i(N(),1),Mw=i($(),1),H9=i(pe(),1),G9=i(Wv(),1);var V9=i(Xe(),1),j9=i(O(),1),z9=i(R(),1);var qI=i(x(),1);function Ghe(e,t){return e?.filter(r=>r.source==="block"||t.includes(r.name))||[]}function $y(e){let t=(0,j9.useSelect)(n=>{let{getBlockStyles:s}=n(V9.store);return s(e)},[e]),[r]=Ee("variations",e),o=Object.keys(r??{});return Ghe(t,o)}function U9({name:e}){let t=$y(e);return(0,qI.jsx)(z9.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:t.map((r,o)=>r?.isDefault?null:(0,qI.jsx)(fr,{path:"/blocks/"+encodeURIComponent(e)+"/variations/"+encodeURIComponent(r.name),children:r.label},o))})}var en=i(R(),1),Lw=i(E(),1);var Gi=i(x(),1);function yt({title:e,description:t,onBack:r}){return(0,Gi.jsx)(en.__experimentalVStack,{spacing:0,children:(0,Gi.jsx)(en.__experimentalView,{children:(0,Gi.jsx)(en.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3,children:(0,Gi.jsxs)(en.__experimentalVStack,{spacing:2,children:[(0,Gi.jsxs)(en.__experimentalHStack,{spacing:2,children:[(0,Gi.jsx)(en.Navigator.BackButton,{icon:(0,Lw.isRTL)()?Yt:Wt,size:"small",label:(0,Lw.__)("Back"),onClick:r}),(0,Gi.jsx)(en.__experimentalSpacer,{children:(0,Gi.jsx)(en.__experimentalHeading,{className:"global-styles-ui-header",level:2,size:13,children:e})})]}),t&&(0,Gi.jsx)(en.__experimentalText,{className:"global-styles-ui-header__description",children:t})]})})})})}var On=i(x(),1),{useHasDimensionsPanel:Whe,useHasTypographyPanel:Yhe,useHasBorderPanel:qhe,useSettingsForBlockElement:Zhe,useHasColorPanel:Khe}=tt(Mw.privateApis);function Xhe(){let e=(0,KI.useSelect)(n=>n(ZI.store).getBlockTypes(),[]),t=(n,s)=>{let{core:a,noncore:l}=n;return(s.name.startsWith("core/")?a:l).push(s),n},{core:r,noncore:o}=e.reduce(t,{core:[],noncore:[]});return[...r,...o]}function Qhe(e){let[t]=me("",e),r=Zhe(t,e),o=Yhe(r),n=Khe(r),s=qhe(r),a=Whe(r),l=s||a,c=!!$y(e)?.length;return o||n||l||c}function Jhe({block:e}){return Qhe(e.name)?(0,On.jsx)(fr,{path:"/blocks/"+encodeURIComponent(e.name),children:(0,On.jsxs)(Ru.__experimentalHStack,{justify:"flex-start",children:[(0,On.jsx)(Mw.BlockIcon,{icon:e.icon}),(0,On.jsx)(Ru.FlexItem,{children:e.title})]})}):null}function $he({filterValue:e}){let t=Xhe(),r=(0,H9.useDebounce)(G9.speak,500),{isMatchingSearchTerm:o}=(0,KI.useSelect)(ZI.store),n=e?t.filter(a=>o(a,e)):t,s=(0,Fa.useRef)(null);return(0,Fa.useEffect)(()=>{if(!e)return;let a=s.current?.childElementCount||0,l=(0,Ia.sprintf)((0,Ia._n)("%d result found.","%d results found.",a),a);r(l,"polite")},[e,r]),(0,On.jsx)("div",{ref:s,className:"global-styles-ui-block-types-item-list",role:"list",children:n.length===0?(0,On.jsx)(Ru.__experimentalText,{align:"center",as:"p",children:(0,Ia.__)("No blocks found.")}):n.map(a=>(0,On.jsx)(Jhe,{block:a},"menu-itemblock-"+a.name))})}var ege=(0,Fa.memo)($he);function tge(){let[e,t]=(0,Fa.useState)(""),r=(0,Fa.useDeferredValue)(e);return(0,On.jsxs)(On.Fragment,{children:[(0,On.jsx)(yt,{title:(0,Ia.__)("Blocks"),description:(0,Ia.__)("Customize the appearance of specific blocks and for the whole site.")}),(0,On.jsx)(Ru.SearchControl,{className:"global-styles-ui-block-types-search",onChange:t,value:e,label:(0,Ia.__)("Search"),placeholder:(0,Ia.__)("Search")}),(0,On.jsx)(ege,{filterValue:r})]})}var W9=tge;var J9=i(Xe(),1),$9=i($(),1),Hp=i(N(),1),ej=i(O(),1),tj=i(W(),1),Tf=i(R(),1),Gp=i(E(),1);var Y9=i($(),1),jw=i(Xe(),1),q9=i(R(),1),Z9=i(N(),1);var Vw=i(x(),1),rge=({name:e,variation:t=""})=>{let r=(0,jw.getBlockType)(e)?.example,o=(0,Z9.useMemo)(()=>{if(!r)return null;let u={...r,attributes:{...r.attributes,style:void 0,className:t?y9(t):r.attributes?.className}};return(0,jw.getBlockFromExample)(e,u)},[e,r,t]),n=r?.viewportWidth??500,s=144,l=235/n,c=l!==0&&l<1&&s?s/l:s;return r?(0,Vw.jsx)(q9.__experimentalSpacer,{marginX:4,marginBottom:4,children:(0,Vw.jsx)("div",{className:"global-styles-ui__block-preview-panel",style:{maxHeight:s,boxSizing:"initial"},children:(0,Vw.jsx)(Y9.BlockPreview,{blocks:o,viewportWidth:n,minHeight:s,additionalStyles:[{css:`
body{
padding: 24px;
min-height:${Math.round(c)}px;
display:flex;
align-items:center;
}
.is-root-container { width: 100%; }
`}]})})}):null},K9=rge;var X9=i(R(),1),Q9=i(x(),1);function Cr({children:e,level:t=2}){return(0,Q9.jsx)(X9.__experimentalHeading,{className:"global-styles-ui-subtitle",level:t,children:e})}var Yr=i(x(),1),oge={backgroundSize:"cover",backgroundPosition:"50% 50%"};function eb(e){if(!e)return e;let t=e.color||e.width;if(!e.style&&t)return{...e,style:"solid"};if(!(e.style&&!t))return e}function nge(e){return e&&((0,Tf.__experimentalHasSplitBorders)(e)?{top:eb(e.top),right:eb(e.right),bottom:eb(e.bottom),left:eb(e.left)}:eb(e))}var{useHasDimensionsPanel:sge,useHasTypographyPanel:ige,useHasBorderPanel:age,useSettingsForBlockElement:lge,useHasColorPanel:cge,useHasFiltersPanel:uge,useHasImageSettingsPanel:dge,useHasBackgroundPanel:fge,BackgroundPanel:mge,BorderPanel:pge,ColorPanel:hge,TypographyPanel:gge,DimensionsPanel:vge,FiltersPanel:yge,ImageSettingsPanel:bge,AdvancedPanel:Sge}=tt($9.privateApis);function _ge({name:e,variation:t}){let{user:r,onChange:o}=(0,Hp.useContext)(Br),n=[];t&&(n=["variations",t].concat(n));let s=n.join("."),[a]=Ee(s,e,"user",!1),[l,c]=Ee(s,e,"merged",!1),[u]=me("",e,"user"),[d,f]=me("",e),m=lge(d,e),h=(0,J9.getBlockType)(e),g=!1;m?.spacing?.blockGap&&h?.supports?.spacing?.blockGap&&(h?.supports?.spacing?.__experimentalSkipSerialization===!0||h?.supports?.spacing?.__experimentalSkipSerialization?.some?.(B=>B==="blockGap"))&&(g=!0);let y=!1;m?.dimensions?.aspectRatio&&e==="core/group"&&(y=!0);let v=(0,Hp.useMemo)(()=>{let B=structuredClone(m);return g&&(B.spacing.blockGap=!1),y&&(B.dimensions.aspectRatio=!1),B},[m,g,y]),b=$y(e),S=fge(v),w=ige(v),T=cge(v),C=age(v),A=sge(v),F=uge(v),L=dge(e,u,v),j=!!b?.length&&!t,{canEditCSS:z}=(0,ej.useSelect)(B=>{let{getEntityRecord:V,__experimentalGetCurrentGlobalStylesId:H}=B(tj.store),X=H();return{canEditCSS:!!(X?V("root","globalStyles",X):void 0)?._links?.["wp:action-edit-css"]}},[]),M=t?b.find(B=>B.name===t):null,k=(0,Hp.useMemo)(()=>({...l,layout:v.layout}),[l,v.layout]),I=(0,Hp.useMemo)(()=>({...a,layout:u.layout}),[a,u.layout]),U=B=>{let V={...B};delete V.layout,c(V),B.layout!==u.layout&&f({...u,layout:B.layout})},G=B=>{f(B===void 0?{...d,lightbox:void 0}:{...d,lightbox:{...d.lightbox,...B}})},Y=B=>{let{settings:V,...H}=B;if(V?.typography){let X=ky(r,s,H,e);X=xy(X,"typography",{...u.typography,...V.typography},e),o(X)}else c(H)},Z=B=>{if(!B?.border){c(B);return}let{radius:V,...H}=B.border,X=nge(H),ne=(0,Tf.__experimentalHasSplitBorders)(X)?{color:null,style:null,width:null,...X}:{top:X,right:X,bottom:X,left:X};c({...B,border:{...ne,radius:V}})};return(0,Yr.jsxs)(Yr.Fragment,{children:[(0,Yr.jsx)(yt,{title:t?M?.label:h?.title}),(0,Yr.jsx)(K9,{name:e,variation:t}),j&&(0,Yr.jsx)("div",{className:"global-styles-ui-screen-variations",children:(0,Yr.jsxs)(Tf.__experimentalVStack,{spacing:3,children:[(0,Yr.jsx)(Cr,{children:(0,Gp.__)("Style Variations")}),(0,Yr.jsx)(U9,{name:e})]})}),T&&(0,Yr.jsx)(hge,{inheritedValue:l,value:a,onChange:c,settings:v}),S&&(0,Yr.jsx)(mge,{inheritedValue:l,value:a,onChange:c,settings:v,defaultValues:oge}),w&&(0,Yr.jsx)(gge,{inheritedValue:l,value:a,onChange:Y,settings:v,isGlobalStyles:!0}),A&&(0,Yr.jsx)(vge,{inheritedValue:k,value:I,onChange:U,settings:v,includeLayoutControls:!0}),C&&(0,Yr.jsx)(pge,{inheritedValue:l,value:a,onChange:Z,settings:v}),F&&(0,Yr.jsx)(yge,{inheritedValue:k,value:I,onChange:c,settings:v,includeLayoutControls:!0}),L&&(0,Yr.jsx)(bge,{onChange:G,value:u,inheritedValue:v}),z&&(0,Yr.jsx)(Tf.PanelBody,{title:(0,Gp.__)("Advanced"),initialOpen:!1,children:(0,Yr.jsx)(Sge,{value:a,onChange:c,inheritedValue:l,help:(0,Gp.sprintf)((0,Gp.__)("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."),h?.title)})})]})}var XI=_ge;var dx=i(E(),1),hz=i(R(),1),gz=i(N(),1);var rj=i(R(),1);var oj=i(x(),1);function Ou({children:e,className:t}){return(0,oj.jsx)(rj.__experimentalSpacer,{className:re("global-styles-ui-screen-body",t),padding:4,children:e})}var Iu=i(E(),1),Wl=i(R(),1);var es=i(x(),1);function tb({parentMenu:e,element:t,label:r}){let o=t==="text"||!t?"":`elements.${t}.`,n=t==="link"?{textDecoration:"underline"}:{},[s]=Ee(o+"typography.fontFamily"),[a]=Ee(o+"typography.fontStyle"),[l]=Ee(o+"typography.fontWeight"),[c]=Ee(o+"color.background"),[u]=Ee("color.background"),[d]=Ee(o+"color.gradient"),[f]=Ee(o+"color.text");return(0,es.jsx)(fr,{path:e+"/typography/"+t,children:(0,es.jsxs)(Wl.__experimentalHStack,{justify:"flex-start",children:[(0,es.jsx)(Wl.FlexItem,{className:"global-styles-ui-screen-typography__indicator","aria-hidden":"true",style:{fontFamily:s??"serif",background:d??c??u,color:f,fontStyle:a,fontWeight:l,...n},children:(0,Iu.__)("Aa")}),(0,es.jsx)(Wl.FlexItem,{children:r})]})})}function wge(){return(0,es.jsxs)(Wl.__experimentalVStack,{spacing:3,children:[(0,es.jsx)(Cr,{level:3,children:(0,Iu.__)("Elements")}),(0,es.jsxs)(Wl.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:[(0,es.jsx)(tb,{parentMenu:"",element:"text",label:(0,Iu.__)("Text")}),(0,es.jsx)(tb,{parentMenu:"",element:"link",label:(0,Iu.__)("Links")}),(0,es.jsx)(tb,{parentMenu:"",element:"heading",label:(0,Iu.__)("Headings")}),(0,es.jsx)(tb,{parentMenu:"",element:"caption",label:(0,Iu.__)("Captions")}),(0,es.jsx)(tb,{parentMenu:"",element:"button",label:(0,Iu.__)("Buttons")})]})]})}var nj=wge;var Hw=i(R(),1);var sj=i(R(),1);var zw=i(x(),1),xge=({variation:e,isFocused:t,withHoverView:r})=>(0,zw.jsx)(Up,{label:e.title,isFocused:t,withHoverView:r,children:({ratio:o,key:n})=>(0,zw.jsx)(sj.__experimentalHStack,{spacing:10*o,justify:"center",style:{height:"100%",overflow:"hidden"},children:(0,zw.jsx)(Bw,{variation:e,fontSize:85*o})},n)}),ij=xge;var aj=i(R(),1),Cf=i(N(),1),lj=i(yo(),1),Uw=i(E(),1);var rb=i(x(),1);function Wp({variation:e,children:t,isPill:r=!1,properties:o,showTooltip:n=!1}){let[s,a]=(0,Cf.useState)(!1),{base:l,user:c,onChange:u}=(0,Cf.useContext)(Br),d=(0,Cf.useMemo)(()=>{let v=go(l,e);return o&&(v=Iw(v,o)),{user:e,base:l,merged:v,onChange:()=>{}}},[e,l,o]),f=()=>u(e),m=v=>{v.keyCode===lj.ENTER&&(v.preventDefault(),f())},h=(0,Cf.useMemo)(()=>cf(c,e),[c,e]),g=e?.title;e?.description&&(g=(0,Uw.sprintf)((0,Uw._x)("%1$s (%2$s)","variation label"),e?.title,e?.description));let y=(0,rb.jsx)("div",{className:re("global-styles-ui-variations_item",{"is-active":h}),role:"button",onClick:f,onKeyDown:m,tabIndex:0,"aria-label":g,"aria-current":h,onFocus:()=>a(!0),onBlur:()=>a(!1),children:(0,rb.jsx)("div",{className:re("global-styles-ui-variations_item-preview",{"is-pill":r}),children:t(s)})});return(0,rb.jsx)(Br.Provider,{value:d,children:n?(0,rb.jsx)(aj.Tooltip,{text:e?.title,children:y}):y})}var Pf=i(x(),1),cj=["typography"];function Yp({title:e,gap:t=2}){let r=Nw(cj);return r?.length<=1?null:(0,Pf.jsxs)(Hw.__experimentalVStack,{spacing:3,children:[e&&(0,Pf.jsx)(Cr,{level:3,children:e}),(0,Pf.jsx)(Hw.__experimentalGrid,{columns:3,gap:t,className:"global-styles-ui-style-variations-container",children:r.map((o,n)=>(0,Pf.jsx)(Wp,{variation:o,properties:cj,showTooltip:!0,children:()=>(0,Pf.jsx)(ij,{variation:o})},n))})]})}var If=i(E(),1),Yi=i(R(),1);var fz=i(N(),1);var ql=i(N(),1),Bu=i(O(),1),Nu=i(W(),1),e6=i(E(),1);var QI=i(Yv(),1),uj=i(W(),1),dj="/wp/v2/font-families";function fj(e){let{receiveEntityRecords:t}=e.dispatch(uj.store);t("postType","wp_font_family",[],void 0,!0)}async function mj(e,t){let o=await(0,QI.default)({path:dj,method:"POST",body:e});return fj(t),{id:o.id,...o.font_family_settings,fontFace:[]}}async function pj(e,t,r){let o={path:`${dj}/${e}/font-faces`,method:"POST",body:t},n=await(0,QI.default)(o);return fj(r),{id:n.id,...n.font_face_settings}}var vj=i(R(),1);var ii=i(E(),1),JI=["otf","ttf","woff","woff2"],hj={100:(0,ii._x)("Thin","font weight"),200:(0,ii._x)("Extra-light","font weight"),300:(0,ii._x)("Light","font weight"),400:(0,ii._x)("Normal","font weight"),500:(0,ii._x)("Medium","font weight"),600:(0,ii._x)("Semi-bold","font weight"),700:(0,ii._x)("Bold","font weight"),800:(0,ii._x)("Extra-bold","font weight"),900:(0,ii._x)("Black","font weight")},gj={normal:(0,ii._x)("Normal","font style"),italic:(0,ii._x)("Italic","font style")};var{File:yj}=window,{kebabCase:Tge}=tt(vj.privateApis);function Yl(e,t={}){return!e.name&&(e.fontFamily||e.slug)&&(e.name=e.fontFamily||e.slug),{...e,...t}}function Cge(e){return typeof e!="string"?!1:e!==decodeURIComponent(e)}function Gw(e){let t=hj[e.fontWeight??""]||e.fontWeight,r=e.fontStyle==="normal"?"":gj[e.fontStyle??""]||e.fontStyle;return`${t} ${r}`}function Pge(e=[],t=[]){let r=new Map;for(let o of e)r.set(`${o.fontWeight}${o.fontStyle}`,o);for(let o of t)r.set(`${o.fontWeight}${o.fontStyle}`,o);return Array.from(r.values())}function bj(e=[],t=[]){let r=new Map;for(let o of e)r.set(o.slug,{...o});for(let o of t)if(r.has(o.slug)){let{fontFace:n,...s}=o,a=r.get(o.slug),l=Pge(a.fontFace,n);r.set(o.slug,{...s,fontFace:l})}else r.set(o.slug,{...o});return Array.from(r.values())}async function Fu(e,t,r="all"){let o;if(typeof t=="string")o=`url(${t})`;else if(t instanceof yj)o=await t.arrayBuffer();else return;let s=await new window.FontFace(WI(e.fontFamily),o,{style:e.fontStyle,weight:String(e.fontWeight)}).load();if((r==="document"||r==="all")&&document.fonts.add(s),r==="iframe"||r==="all"){let a=document.querySelector('iframe[name="editor-canvas"]');a?.contentDocument&&a.contentDocument.fonts.add(s)}}function ob(e,t="all"){let r=o=>{o.forEach(n=>{n.family===WI(e?.fontFamily)&&n.weight===e?.fontWeight&&n.style===e?.fontStyle&&o.delete(n)})};if((t==="document"||t==="all")&&r(document.fonts),t==="iframe"||t==="all"){let o=document.querySelector('iframe[name="editor-canvas"]');o?.contentDocument&&r(o.contentDocument.fonts)}}function qp(e){if(!e)return;let t;if(Array.isArray(e)?t=e[0]:t=e,!t.startsWith("file:."))return Cge(t)||(t=encodeURI(t)),t}function Sj(e){let t=new FormData,{fontFace:r,category:o,...n}=e,s={...n,slug:Tge(e.slug)};return t.append("font_family_settings",JSON.stringify(s)),t}function _j(e){return(e?.fontFace??[]).map((r,o)=>{let n={...r},s=new FormData;if(n.file){let a=Array.isArray(n.file)?n.file:[n.file],l=[];a.forEach((c,u)=>{let d=`file-${o}-${u}`;s.append(d,c,c.name),l.push(d)}),n.src=l.length===1?l[0]:l,delete n.file,s.append("font_face_settings",JSON.stringify(n))}else s.append("font_face_settings",JSON.stringify(n));return s})}async function wj(e,t,r){let o=[];for(let s of t)try{let a=await pj(e,s,r);o.push({status:"fulfilled",value:a})}catch(a){o.push({status:"rejected",reason:a})}let n={errors:[],successes:[]};return o.forEach((s,a)=>{if(s.status==="fulfilled"&&s.value){let l=s.value;n.successes.push(l)}else s.reason&&n.errors.push({data:t[a],message:s.reason.message})}),n}async function xj(e){e=Array.isArray(e)?e:[e];let t=await Promise.all(e.map(async r=>fetch(new Request(r)).then(o=>{if(!o.ok)throw new Error(`Error downloading font face asset from ${r}. Server responded with status: ${o.status}`);return o.blob()}).then(o=>{let n=r.split("/").pop();return new yj([o],n,{type:o.type})})));return t.length===1?t[0]:t}function $I(e,t){return t.findIndex(r=>r.fontWeight===e.fontWeight&&r.fontStyle===e.fontStyle)!==-1}function Tj(e,t,r){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};let o=t.pop(),n=e;for(let s of t){let a=n[s];n=n[s]=Array.isArray(a)?[...a]:{...a}}return n[o]=r,e}function Ww(e,t,r=[]){let o=c=>c.slug===e.slug,n=c=>c.find(o),s=c=>c?r.filter(u=>!o(u)):[...r,e],a=c=>{let u=f=>f.fontWeight===t.fontWeight&&f.fontStyle===t.fontStyle;if(!c)return[...r,{...e,fontFace:[t]}];let d=c.fontFace||[];return d.find(u)?d=d.filter(f=>!u(f)):d=[...d,t],d.length===0?r.filter(f=>!o(f)):r.map(f=>o(f)?{...f,fontFace:d}:f)},l=n(r);return t?a(l):s(l)}var Cj=i(x(),1),Do=(0,ql.createContext)({});Do.displayName="FontLibraryContext";function kge({children:e}){let t=(0,Bu.useRegistry)(),{saveEntityRecord:r,deleteEntityRecord:o}=(0,Bu.useDispatch)(Nu.store),{globalStylesId:n}=(0,Bu.useSelect)(V=>{let{__experimentalGetCurrentGlobalStylesId:H}=V(Nu.store);return{globalStylesId:H()}},[]),s=(0,Nu.useEntityRecord)("root","globalStyles",n),[a,l]=(0,ql.useState)(!1),{records:c=[],isResolving:u}=(0,Nu.useEntityRecords)("postType","wp_font_family",{_embed:!0}),d=(c||[]).map(V=>({id:V.id,...V.font_family_settings||{},fontFace:V?._embedded?.font_faces?.map(H=>H.font_face_settings)||[]}))||[],[f,m]=me("typography.fontFamilies"),h=async V=>{if(!s.record)return;let H=s.record,X=Tj(H??{},["settings","typography","fontFamilies"],V);await r("root","globalStyles",X)},[g,y]=(0,ql.useState)(""),[v,b]=(0,ql.useState)(void 0),S=f?.theme?f.theme.map(V=>Yl(V,{source:"theme"})).sort((V,H)=>V.name.localeCompare(H.name)):[],w=f?.custom?f.custom.map(V=>Yl(V,{source:"custom"})).sort((V,H)=>V.name.localeCompare(H.name)):[],T=d?d.map(V=>Yl(V,{source:"custom"})).sort((V,H)=>V.name.localeCompare(H.name)):[];(0,ql.useEffect)(()=>{g||b(void 0)},[g]);let C=V=>{if(!V){b(void 0);return}let X=(V.source==="theme"?S:T).find(ne=>ne.slug===V.slug);b({...X||V,source:V.source})},[A]=(0,ql.useState)(new Set),F=V=>V.reduce((X,ne)=>{let se=ne?.fontFace&&ne.fontFace?.length>0?ne?.fontFace.map(ye=>`${ye.fontStyle??""}${ye.fontWeight??""}`):["normal400"];return X[ne.slug]=se,X},{}),L=V=>F(V==="theme"?S:w),j=(V,H,X,ne)=>!H&&!X?!!L(ne)[V]:!!L(ne)[V]?.includes((H??"")+(X??"")),z=(V,H)=>L(H)[V]||[];async function M(V){l(!0);try{let H=[],X=[];for(let se of V){let ye=!1,qe=await(0,Bu.resolveSelect)(Nu.store).getEntityRecords("postType","wp_font_family",{slug:se.slug,per_page:1,_embed:!0}),ge=qe&&qe.length>0?qe[0]:null,oe=ge?{id:ge.id,...ge.font_family_settings,fontFace:(ge?._embedded?.font_faces??[]).map(je=>je.font_face_settings)||[]}:null;oe||(ye=!0,oe=await mj(Sj(se),t));let ve=oe.fontFace&&se.fontFace?oe.fontFace.filter(je=>je&&se.fontFace&&$I(je,se.fontFace)):[];oe.fontFace&&se.fontFace&&(se.fontFace=se.fontFace.filter(je=>!$I(je,oe.fontFace)));let De=[],Ze=[];if(se?.fontFace?.length??!1){let je=await wj(oe.id,_j(se),t);De=je?.successes,Ze=je?.errors}(De?.length>0||ve?.length>0)&&(oe.fontFace=[...De],H.push(oe)),oe&&!se?.fontFace?.length&&H.push(oe),ye&&(se?.fontFace?.length??0)>0&&De?.length===0&&await o("postType","wp_font_family",oe.id,{force:!0}),X=X.concat(Ze)}let ne=X.reduce((se,ye)=>se.includes(ye.message)?se:[...se,ye.message],[]);if(H.length>0){let se=U(H);await h(se)}if(ne.length>0){let se=new Error((0,e6.__)("There was an error installing fonts."));throw se.installationErrors=ne,se}}finally{l(!1)}}async function k(V){if(!V?.id)throw new Error((0,e6.__)("Font family to uninstall is not defined."));try{await o("postType","wp_font_family",V.id,{force:!0});let H=I(V);return await h(H),{deleted:!0}}catch(H){throw console.error("There was an error uninstalling the font family:",H),H}}let I=V=>{let X=(f?.[V.source??""]??[]).filter(se=>se.slug!==V.slug),ne={...f,[V.source??""]:X};return m(ne),V.fontFace&&V.fontFace.forEach(se=>{ob(se,"all")}),ne},U=V=>{let H=G(V),X={...f,custom:bj(f?.custom,H)};return m(X),Y(H),X},G=V=>V.map(({id:H,fontFace:X,...ne})=>({...ne,...X&&X.length>0?{fontFace:X.map(({id:se,...ye})=>ye)}:{}})),Y=V=>{V.forEach(H=>{H.fontFace&&H.fontFace.forEach(X=>{let ne=qp(X?.src??"");ne&&Fu(X,ne,"all")})})},Z=(V,H)=>{let X=f?.[V.source??""]??[],ne=Ww(V,H,X);m({...f,[V.source??""]:ne});let se=j(V.slug,H?.fontStyle??"",H?.fontWeight??"",V.source??"custom");if(H&&se)ob(H,"all");else{let ye=qp(H?.src??"");H&&ye&&Fu(H,ye,"all")}},B=async V=>{if(!V.src)return;let H=qp(V.src);!H||A.has(H)||(Fu(V,H,"document"),A.add(H))};return(0,Cj.jsx)(Do.Provider,{value:{libraryFontSelected:v,handleSetLibraryFontSelected:C,fontFamilies:f??{},baseCustomFonts:T,isFontActivated:j,getFontFacesActivated:z,loadFontFaceAsset:B,installFonts:M,uninstallFontFamily:k,toggleActivateFont:Z,getAvailableFontsOutline:F,modalTabOpen:g,setModalTabOpen:y,saveFontFamilies:h,isResolvingLibrary:u,isInstalling:a},children:e})}var Yw=kge;var Qp=i(E(),1),lx=i(R(),1),cx=i(W(),1),az=i(O(),1);var Qe=i(R(),1),sb=i(W(),1),t6=i(O(),1),Ef=i(N(),1),$t=i(E(),1);var Kp=i(E(),1),ai=i(R(),1);var Pj=i(R(),1),Na=i(N(),1);var qw=i(x(),1);function Ege(e){if(e.preview)return e.preview;if(e.src)return Array.isArray(e.src)?e.src[0]:e.src}function Age(e){return"fontStyle"in e&&e.fontStyle||"fontWeight"in e&&e.fontWeight?e:"fontFace"in e&&e.fontFace&&e.fontFace.length?e.fontFace.find(t=>t.fontStyle==="normal"&&t.fontWeight==="400")||e.fontFace[0]:{fontStyle:"normal",fontWeight:"400",fontFamily:e.fontFamily}}function Rge({font:e,text:t}){let r=(0,Na.useRef)(null),o=Age(e),n=_f(e);t=t||("name"in e?e.name:"");let s=e.preview,[a,l]=(0,Na.useState)(!1),[c,u]=(0,Na.useState)(!1),{loadFontFaceAsset:d}=(0,Na.useContext)(Do),f=s??Ege(o),m=f&&f.match(/\.(png|jpg|jpeg|gif|svg)$/i),h=k9(o),g={fontSize:"18px",lineHeight:1,opacity:c?"1":"0",...n,...h};return(0,Na.useEffect)(()=>{let y=new window.IntersectionObserver(([v])=>{l(v.isIntersecting)},{});return r.current&&y.observe(r.current),()=>y.disconnect()},[r]),(0,Na.useEffect)(()=>{(async()=>a&&(!m&&o.src&&await d(o),u(!0)))()},[o,a,d,m]),(0,qw.jsx)("div",{ref:r,children:m?(0,qw.jsx)("img",{src:f,loading:"lazy",alt:t,className:"font-library__font-variant_demo-image"}):(0,qw.jsx)(Pj.__experimentalText,{style:g,className:"font-library__font-variant_demo-text",children:t})})}var Zp=Rge;var Ba=i(x(),1);function Oge({font:e,onClick:t,variantsText:r,navigatorPath:o}){let n=e.fontFace?.length||1,s={cursor:t?"pointer":"default"},a=(0,ai.useNavigator)();return(0,Ba.jsx)(ai.Button,{__next40pxDefaultSize:!0,onClick:()=>{t(),o&&a.goTo(o)},style:s,className:"font-library__font-card",children:(0,Ba.jsxs)(ai.Flex,{justify:"space-between",wrap:!1,children:[(0,Ba.jsx)(Zp,{font:e}),(0,Ba.jsxs)(ai.Flex,{justify:"flex-end",children:[(0,Ba.jsx)(ai.FlexItem,{children:(0,Ba.jsx)(ai.__experimentalText,{className:"font-library__font-card__count",children:r||(0,Kp.sprintf)((0,Kp._n)("%d variant","%d variants",n),n)})}),(0,Ba.jsx)(ai.FlexItem,{children:(0,Ba.jsx)(Oo,{icon:(0,Kp.isRTL)()?Wt:Yt})})]})]})})}var nb=Oge;var Zw=i(N(),1),Kw=i(R(),1);var kf=i(x(),1);function Ige({face:e,font:t}){let{isFontActivated:r,toggleActivateFont:o}=(0,Zw.useContext)(Do),n=(t?.fontFace?.length??0)>0?r(t.slug,e.fontStyle,e.fontWeight,t.source):r(t.slug,void 0,void 0,t.source),s=()=>{if((t?.fontFace?.length??0)>0){o(t,e);return}o(t)},a=t.name+" "+Gw(e),l=(0,Zw.useId)();return(0,kf.jsx)("div",{className:"font-library__font-card",children:(0,kf.jsxs)(Kw.Flex,{justify:"flex-start",align:"center",gap:"1rem",children:[(0,kf.jsx)(Kw.CheckboxControl,{checked:n,onChange:s,id:l}),(0,kf.jsx)("label",{htmlFor:l,children:(0,kf.jsx)(Zp,{font:e,text:a,onClick:s})})]})})}var kj=Ige;function Ej(e){switch(e){case"normal":return 400;case"bold":return 700;case"bolder":return 500;case"lighter":return 300;default:return parseInt(e,10)}}function Xw(e){return e.sort((t,r)=>t.fontStyle==="normal"&&r.fontStyle!=="normal"?-1:r.fontStyle==="normal"&&t.fontStyle!=="normal"?1:t.fontStyle===r.fontStyle?Ej(t.fontWeight?.toString()??"normal")-Ej(r.fontWeight?.toString()??"normal"):!t.fontStyle||!r.fontStyle?t.fontStyle?-1:1:t.fontStyle.localeCompare(r.fontStyle))}var Ge=i(x(),1);function Fge(){let{baseCustomFonts:e,libraryFontSelected:t,handleSetLibraryFontSelected:r,uninstallFontFamily:o,isResolvingLibrary:n,isInstalling:s,saveFontFamilies:a,getFontFacesActivated:l}=(0,Ef.useContext)(Do),[c,u]=me("typography.fontFamilies"),[d,f]=(0,Ef.useState)(!1),[m,h]=(0,Ef.useState)(null),[g]=me("typography.fontFamilies",void 0,"base"),y=(0,t6.useSelect)(B=>{let{__experimentalGetCurrentGlobalStylesId:V}=B(sb.store);return V()},[]),b=!!(0,sb.useEntityRecord)("root","globalStyles",y)?.edits?.settings?.typography?.fontFamilies,S=c?.theme?c.theme.map(B=>Yl(B,{source:"theme"})).sort((B,V)=>B.name.localeCompare(V.name)):[],w=new Set(S.map(B=>B.slug)),T=g?.theme?S.concat(g.theme.filter(B=>!w.has(B.slug)).map(B=>Yl(B,{source:"theme"})).sort((B,V)=>B.name.localeCompare(V.name))):[],C=t?.source==="custom"&&t?.id,A=(0,t6.useSelect)(B=>{let{canUser:V}=B(sb.store);return C&&V("delete",{kind:"postType",name:"wp_font_family",id:C})},[C]),F=!!t&&t?.source!=="theme"&&A,L=()=>{f(!0)},j=async()=>{h(null);try{await a(c),h({type:"success",message:(0,$t.__)("Font family updated successfully.")})}catch(B){h({type:"error",message:(0,$t.sprintf)((0,$t.__)("There was an error updating the font family. %s"),B.message)})}},z=B=>B?!B.fontFace||!B.fontFace.length?[{fontFamily:B.fontFamily,fontStyle:"normal",fontWeight:"400"}]:Xw(B.fontFace):[],M=B=>{let V=B?.fontFace&&(B?.fontFace?.length??0)>0?B.fontFace.length:1,H=l(B.slug,B.source).length;return(0,$t.sprintf)((0,$t.__)("%1$d/%2$d variants active"),H,V)};(0,Ef.useEffect)(()=>{r(t)},[]);let k=t?l(t.slug,t.source).length:0,I=t?.fontFace?.length??(t?.fontFamily?1:0),U=k>0&&k!==I,G=k===I,Y=()=>{if(!t||!t?.source)return;let B=c?.[t.source]?.filter(H=>H.slug!==t.slug)??[],V=G?B:[...B,t];u({...c,[t.source]:V}),t.fontFace&&t.fontFace.forEach(H=>{if(G)ob(H,"all");else{let X=qp(H?.src??"");X&&Fu(H,X,"all")}})},Z=T.length>0||e.length>0;return(0,Ge.jsxs)("div",{className:"font-library__tabpanel-layout",children:[n&&(0,Ge.jsx)("div",{className:"font-library__loading",children:(0,Ge.jsx)(Qe.ProgressBar,{})}),!n&&(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsxs)(Qe.Navigator,{initialPath:t?"/fontFamily":"/",children:[(0,Ge.jsx)(Qe.Navigator.Screen,{path:"/",children:(0,Ge.jsxs)(Qe.__experimentalVStack,{spacing:"8",children:[m&&(0,Ge.jsx)(Qe.Notice,{status:m.type,onRemove:()=>h(null),children:m.message}),!Z&&(0,Ge.jsx)(Qe.__experimentalText,{as:"p",children:(0,$t.__)("No fonts installed.")}),T.length>0&&(0,Ge.jsxs)(Qe.__experimentalVStack,{children:[(0,Ge.jsx)("h2",{className:"font-library__fonts-title",children:(0,$t._x)("Theme","font source")}),(0,Ge.jsx)("ul",{role:"list",className:"font-library__fonts-list",children:T.map(B=>(0,Ge.jsx)("li",{className:"font-library__fonts-list-item",children:(0,Ge.jsx)(nb,{font:B,navigatorPath:"/fontFamily",variantsText:M(B),onClick:()=>{h(null),r(B)}})},B.slug))})]}),e.length>0&&(0,Ge.jsxs)(Qe.__experimentalVStack,{children:[(0,Ge.jsx)("h2",{className:"font-library__fonts-title",children:(0,$t._x)("Custom","font source")}),(0,Ge.jsx)("ul",{role:"list",className:"font-library__fonts-list",children:e.map(B=>(0,Ge.jsx)("li",{className:"font-library__fonts-list-item",children:(0,Ge.jsx)(nb,{font:B,navigatorPath:"/fontFamily",variantsText:M(B),onClick:()=>{h(null),r(B)}})},B.slug))})]})]})}),(0,Ge.jsxs)(Qe.Navigator.Screen,{path:"/fontFamily",children:[t&&(0,Ge.jsx)(Nge,{font:t,isOpen:d,setIsOpen:f,setNotice:h,uninstallFontFamily:o,handleSetLibraryFontSelected:r}),(0,Ge.jsxs)(Qe.Flex,{justify:"flex-start",children:[(0,Ge.jsx)(Qe.Navigator.BackButton,{icon:(0,$t.isRTL)()?Yt:Wt,size:"small",onClick:()=>{r(void 0),h(null)},label:(0,$t.__)("Back")}),(0,Ge.jsx)(Qe.__experimentalHeading,{level:2,size:13,className:"global-styles-ui-header",children:t?.name})]}),m&&(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)(Qe.__experimentalSpacer,{margin:1}),(0,Ge.jsx)(Qe.Notice,{status:m.type,onRemove:()=>h(null),children:m.message}),(0,Ge.jsx)(Qe.__experimentalSpacer,{margin:1})]}),(0,Ge.jsx)(Qe.__experimentalSpacer,{margin:4}),(0,Ge.jsx)(Qe.__experimentalText,{children:(0,$t.__)("Choose font variants. Keep in mind that too many variants could make your site slower.")}),(0,Ge.jsx)(Qe.__experimentalSpacer,{margin:4}),(0,Ge.jsxs)(Qe.__experimentalVStack,{spacing:0,children:[(0,Ge.jsx)(Qe.CheckboxControl,{className:"font-library__select-all",label:(0,$t.__)("Select all"),checked:G,onChange:Y,indeterminate:U}),(0,Ge.jsx)(Qe.__experimentalSpacer,{margin:8}),(0,Ge.jsx)("ul",{role:"list",className:"font-library__fonts-list",children:t&&z(t).map((B,V)=>(0,Ge.jsx)("li",{className:"font-library__fonts-list-item",children:(0,Ge.jsx)(kj,{font:t,face:B},`face${V}`)},`face${V}`))})]})]})]}),(0,Ge.jsxs)(Qe.__experimentalHStack,{justify:"flex-end",className:"font-library__footer",children:[s&&(0,Ge.jsx)(Qe.ProgressBar,{}),F&&(0,Ge.jsx)(Qe.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"tertiary",onClick:L,children:(0,$t.__)("Delete")}),(0,Ge.jsx)(Qe.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:j,disabled:!b,accessibleWhenDisabled:!0,children:(0,$t.__)("Update")})]})]})]})}function Nge({font:e,isOpen:t,setIsOpen:r,setNotice:o,uninstallFontFamily:n,handleSetLibraryFontSelected:s}){let a=(0,Qe.useNavigator)(),l=async()=>{o(null),r(!1);try{await n(e),a.goBack(),s(void 0),o({type:"success",message:(0,$t.__)("Font family uninstalled successfully.")})}catch(u){o({type:"error",message:(0,$t.__)("There was an error uninstalling the font family.")+u.message})}},c=()=>{r(!1)};return(0,Ge.jsx)(Qe.__experimentalConfirmDialog,{isOpen:t,cancelButtonText:(0,$t.__)("Cancel"),confirmButtonText:(0,$t.__)("Delete"),onCancel:c,onConfirm:l,size:"medium",children:e&&(0,$t.sprintf)((0,$t.__)('Are you sure you want to delete "%s" font and all its variants and assets?'),e.name)})}var Qw=Fge;var bo=i(N(),1),Me=i(R(),1),Dj=i(pe(),1),Zt=i(E(),1);var Lj=i(W(),1);function Aj(e,t){let{category:r,search:o}=t,n=e||[];return r&&r!=="all"&&(n=n.filter(s=>s.categories&&s.categories.indexOf(r)!==-1)),o&&(n=n.filter(s=>s.font_family_settings&&s.font_family_settings.name.toLowerCase().includes(o.toLowerCase()))),n}function Rj(e){return e.reduce((t,r)=>({...t,[r.slug]:(r?.fontFace||[]).reduce((o,n)=>({...o,[`${n.fontStyle}-${n.fontWeight}`]:!0}),{})}),{})}function Oj(e,t,r){return t?!!r[e]?.[`${t.fontStyle}-${t.fontWeight}`]:!!r[e]}var ib=i(E(),1),In=i(R(),1),li=i(x(),1);function Bge(){let e=()=>{window.localStorage.setItem("wp-font-library-google-fonts-permission","true"),window.dispatchEvent(new Event("storage"))};return(0,li.jsx)("div",{className:"font-library__google-fonts-confirm",children:(0,li.jsx)(In.Card,{children:(0,li.jsxs)(In.CardBody,{children:[(0,li.jsx)(In.__experimentalHeading,{level:2,children:(0,ib.__)("Connect to Google Fonts")}),(0,li.jsx)(In.__experimentalSpacer,{margin:6}),(0,li.jsx)(In.__experimentalText,{as:"p",children:(0,ib.__)("To install fonts from Google you must give permission to connect directly to Google servers. The fonts you install will be downloaded from Google and stored on your site. Your site will then use these locally-hosted fonts.")}),(0,li.jsx)(In.__experimentalSpacer,{margin:3}),(0,li.jsx)(In.__experimentalText,{as:"p",children:(0,ib.__)("You can alternatively upload files directly on the Upload tab.")}),(0,li.jsx)(In.__experimentalSpacer,{margin:6}),(0,li.jsx)(In.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:e,children:(0,ib.__)("Allow access to Google Fonts")})]})})})}var Ij=Bge;var Fj=i(N(),1),Jw=i(R(),1);var Af=i(x(),1);function Dge({face:e,font:t,handleToggleVariant:r,selected:o}){let n=()=>{if(t?.fontFace){r(t,e);return}r(t)},s=t.name+" "+Gw(e),a=(0,Fj.useId)();return(0,Af.jsx)("div",{className:"font-library__font-card",children:(0,Af.jsxs)(Jw.Flex,{justify:"flex-start",align:"center",gap:"1rem",children:[(0,Af.jsx)(Jw.CheckboxControl,{checked:o,onChange:n,id:a}),(0,Af.jsx)("label",{htmlFor:a,children:(0,Af.jsx)(Zp,{font:e,text:s,onClick:n})})]})})}var Nj=Dge;var Ae=i(x(),1),Lge={slug:"all",name:(0,Zt._x)("All","font categories")},Bj="wp-font-library-google-fonts-permission",Mge=500;function Vge({slug:e}){let t=e==="google-fonts",r=()=>window.localStorage.getItem(Bj)==="true",[o,n]=(0,bo.useState)(null),[s,a]=(0,bo.useState)(null),[l,c]=(0,bo.useState)([]),[u,d]=(0,bo.useState)(1),[f,m]=(0,bo.useState)({}),[h,g]=(0,bo.useState)(t&&!r()),{installFonts:y,isInstalling:v}=(0,bo.useContext)(Do),{record:b,isResolving:S}=(0,Lj.useEntityRecord)("root","fontCollection",e);(0,bo.useEffect)(()=>{let oe=()=>{g(t&&!r())};return oe(),window.addEventListener("storage",oe),()=>window.removeEventListener("storage",oe)},[e,t]);let w=()=>{window.localStorage.setItem(Bj,"false"),window.dispatchEvent(new Event("storage"))};(0,bo.useEffect)(()=>{n(null)},[e]),(0,bo.useEffect)(()=>{c([])},[o]);let T=(0,bo.useMemo)(()=>b?.font_families??[],[b]),C=b?.categories??[],A=[Lge,...C],F=(0,bo.useMemo)(()=>Aj(T,f),[T,f]),L=Math.max(window.innerHeight,Mge),j=Math.floor((L-417)/61),z=Math.ceil(F.length/j),M=(u-1)*j,k=u*j,I=F.slice(M,k),U=oe=>{m({...f,category:oe}),d(1)},Y=(0,Dj.debounce)(oe=>{m({...f,search:oe}),d(1)},300),Z=(oe,ve)=>{let De=Ww(oe,ve,l);c(De)},B=Rj(l),V=()=>{c([])},H=l.length>0?l[0]?.fontFace?.length??0:0,X=H>0&&H!==o?.fontFace?.length,ne=H===o?.fontFace?.length,se=()=>{let oe=[];!ne&&o&&oe.push(o),c(oe)},ye=async()=>{a(null);let oe=l[0];try{oe?.fontFace&&await Promise.all(oe.fontFace.map(async ve=>{ve.src&&(ve.file=await xj(ve.src))}))}catch{a({type:"error",message:(0,Zt.__)("Error installing the fonts, could not be downloaded.")});return}try{await y([oe]),a({type:"success",message:(0,Zt.__)("Fonts were installed successfully.")})}catch(ve){a({type:"error",message:ve.message})}V()},qe=oe=>oe?!oe.fontFace||!oe.fontFace.length?[{fontFamily:oe.fontFamily,fontStyle:"normal",fontWeight:"400"}]:Xw(oe.fontFace):[];if(h)return(0,Ae.jsx)(Ij,{});let ge=()=>e!=="google-fonts"||h||o?null:(0,Ae.jsx)(Me.DropdownMenu,{icon:Ir,label:(0,Zt.__)("Actions"),popoverProps:{position:"bottom left"},controls:[{title:(0,Zt.__)("Revoke access to Google Fonts"),onClick:w}]});return(0,Ae.jsxs)("div",{className:"font-library__tabpanel-layout",children:[S&&(0,Ae.jsx)("div",{className:"font-library__loading",children:(0,Ae.jsx)(Me.ProgressBar,{})}),!S&&b&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(Me.Navigator,{initialPath:"/",className:"font-library__tabpanel-layout",children:[(0,Ae.jsxs)(Me.Navigator.Screen,{path:"/",children:[(0,Ae.jsxs)(Me.__experimentalHStack,{justify:"space-between",children:[(0,Ae.jsxs)(Me.__experimentalVStack,{children:[(0,Ae.jsx)(Me.__experimentalHeading,{level:2,size:13,children:b.name}),(0,Ae.jsx)(Me.__experimentalText,{children:b.description})]}),(0,Ae.jsx)(ge,{})]}),(0,Ae.jsx)(Me.__experimentalSpacer,{margin:4}),(0,Ae.jsxs)(Me.__experimentalHStack,{spacing:4,justify:"space-between",children:[(0,Ae.jsx)(Me.SearchControl,{value:f.search,placeholder:(0,Zt.__)("Font name\u2026"),label:(0,Zt.__)("Search"),onChange:Y,hideLabelFromVision:!1}),(0,Ae.jsx)(Me.SelectControl,{__next40pxDefaultSize:!0,label:(0,Zt.__)("Category"),value:f.category,onChange:U,children:A&&A.map(oe=>(0,Ae.jsx)("option",{value:oe.slug,children:oe.name},oe.slug))})]}),(0,Ae.jsx)(Me.__experimentalSpacer,{margin:4}),!!b?.font_families?.length&&!F.length&&(0,Ae.jsx)(Me.__experimentalText,{children:(0,Zt.__)("No fonts found. Try with a different search term.")}),(0,Ae.jsx)("div",{className:"font-library__fonts-grid__main",children:(0,Ae.jsx)("ul",{role:"list",className:"font-library__fonts-list",children:I.map(oe=>(0,Ae.jsx)("li",{className:"font-library__fonts-list-item",children:(0,Ae.jsx)(nb,{font:oe.font_family_settings,navigatorPath:"/fontFamily",onClick:()=>{n(oe.font_family_settings)}})},oe.font_family_settings.slug))})})]}),(0,Ae.jsxs)(Me.Navigator.Screen,{path:"/fontFamily",children:[(0,Ae.jsxs)(Me.Flex,{justify:"flex-start",children:[(0,Ae.jsx)(Me.Navigator.BackButton,{icon:(0,Zt.isRTL)()?Yt:Wt,size:"small",onClick:()=>{n(null),a(null)},label:(0,Zt.__)("Back")}),(0,Ae.jsx)(Me.__experimentalHeading,{level:2,size:13,className:"global-styles-ui-header",children:o?.name})]}),s&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Me.__experimentalSpacer,{margin:1}),(0,Ae.jsx)(Me.Notice,{status:s.type,onRemove:()=>a(null),children:s.message}),(0,Ae.jsx)(Me.__experimentalSpacer,{margin:1})]}),(0,Ae.jsx)(Me.__experimentalSpacer,{margin:4}),(0,Ae.jsx)(Me.__experimentalText,{children:(0,Zt.__)("Select font variants to install.")}),(0,Ae.jsx)(Me.__experimentalSpacer,{margin:4}),(0,Ae.jsx)(Me.CheckboxControl,{className:"font-library__select-all",label:(0,Zt.__)("Select all"),checked:ne,onChange:se,indeterminate:X}),(0,Ae.jsx)(Me.__experimentalVStack,{spacing:0,children:(0,Ae.jsx)("ul",{role:"list",className:"font-library__fonts-list",children:o&&qe(o).map((oe,ve)=>(0,Ae.jsx)("li",{className:"font-library__fonts-list-item",children:(0,Ae.jsx)(Nj,{font:o,face:oe,handleToggleVariant:Z,selected:Oj(o.slug,o.fontFace?oe:null,B)})},`face${ve}`))})}),(0,Ae.jsx)(Me.__experimentalSpacer,{margin:16})]})]}),o&&(0,Ae.jsx)(Me.Flex,{justify:"flex-end",className:"font-library__footer",children:(0,Ae.jsx)(Me.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:ye,isBusy:v,disabled:l.length===0||v,accessibleWhenDisabled:!0,children:(0,Zt.__)("Install")})}),!o&&(0,Ae.jsxs)(Me.__experimentalHStack,{expanded:!1,className:"font-library__footer",justify:"end",spacing:6,children:[(0,Ae.jsx)(Me.__experimentalHStack,{justify:"flex-start",expanded:!1,spacing:1,className:"font-library__page-selection",children:(0,bo.createInterpolateElement)((0,Zt.sprintf)((0,Zt._x)("<div>Page</div>%1$s<div>of %2$d</div>","paging"),"<CurrentPage />",z),{div:(0,Ae.jsx)("div",{"aria-hidden":!0}),CurrentPage:(0,Ae.jsx)(Me.SelectControl,{"aria-label":(0,Zt.__)("Current page"),value:u.toString(),options:[...Array(z)].map((oe,ve)=>({label:(ve+1).toString(),value:(ve+1).toString()})),onChange:oe=>d(parseInt(oe)),size:"small",variant:"minimal"})})}),(0,Ae.jsxs)(Me.__experimentalHStack,{expanded:!1,spacing:1,children:[(0,Ae.jsx)(Me.Button,{onClick:()=>d(u-1),disabled:u===1,accessibleWhenDisabled:!0,label:(0,Zt.__)("Previous page"),icon:(0,Zt.isRTL)()?_l:xl,showTooltip:!0,size:"compact",tooltipPosition:"top"}),(0,Ae.jsx)(Me.Button,{onClick:()=>d(u+1),disabled:u===z,accessibleWhenDisabled:!0,label:(0,Zt.__)("Next page"),icon:(0,Zt.isRTL)()?xl:_l,showTooltip:!0,size:"compact",tooltipPosition:"top"})]})]})]})]})}var $w=Vge;var Xp=i(E(),1),tn=i(R(),1),lb=i(N(),1);var ex=(e=>typeof qn<"u"?qn:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof qn<"u"?qn:t)[r]}):e)(function(e){if(typeof qn<"u")return qn.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Mj=(function(){var e,t,r;return(function(){function o(n,s,a){function l(d,f){if(!s[d]){if(!n[d]){var m=typeof ex=="function"&&ex;if(!f&&m)return m(d,!0);if(c)return c(d,!0);var h=new Error("Cannot find module '"+d+"'");throw h.code="MODULE_NOT_FOUND",h}var g=s[d]={exports:{}};n[d][0].call(g.exports,function(y){var v=n[d][1][y];return l(v||y)},g,g.exports,o,n,s,a)}return s[d].exports}for(var c=typeof ex=="function"&&ex,u=0;u<a.length;u++)l(a[u]);return l}return o})()({1:[function(o,n,s){var a=4096,l=2*a+32,c=2*a-1,u=new Uint32Array([0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215]);function d(f){this.buf_=new Uint8Array(l),this.input_=f,this.reset()}d.READ_SIZE=a,d.IBUF_MASK=c,d.prototype.reset=function(){this.buf_ptr_=0,this.val_=0,this.pos_=0,this.bit_pos_=0,this.bit_end_pos_=0,this.eos_=0,this.readMoreInput();for(var f=0;f<4;f++)this.val_|=this.buf_[this.pos_]<<8*f,++this.pos_;return this.bit_end_pos_>0},d.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var f=this.buf_ptr_,m=this.input_.read(this.buf_,f,a);if(m<0)throw new Error("Unexpected end of input");if(m<a){this.eos_=1;for(var h=0;h<32;h++)this.buf_[f+m+h]=0}if(f===0){for(var h=0;h<32;h++)this.buf_[(a<<1)+h]=this.buf_[h];this.buf_ptr_=a}else this.buf_ptr_=0;this.bit_end_pos_+=m<<3}},d.prototype.fillBitWindow=function(){for(;this.bit_pos_>=8;)this.val_>>>=8,this.val_|=this.buf_[this.pos_&c]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},d.prototype.readBits=function(f){32-this.bit_pos_<f&&this.fillBitWindow();var m=this.val_>>>this.bit_pos_&u[f];return this.bit_pos_+=f,m},n.exports=d},{}],2:[function(o,n,s){var a=0,l=1,c=2,u=3;s.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),s.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},{}],3:[function(o,n,s){var a=o("./streams").BrotliInput,l=o("./streams").BrotliOutput,c=o("./bit_reader"),u=o("./dictionary"),d=o("./huffman").HuffmanCode,f=o("./huffman").BrotliBuildHuffmanTable,m=o("./context"),h=o("./prefix"),g=o("./transform"),y=8,v=16,b=256,S=704,w=26,T=6,C=2,A=8,F=255,L=1080,j=18,z=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),M=16,k=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),I=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),U=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function G(ae){var J;return ae.readBits(1)===0?16:(J=ae.readBits(3),J>0?17+J:(J=ae.readBits(3),J>0?8+J:17))}function Y(ae){if(ae.readBits(1)){var J=ae.readBits(3);return J===0?1:ae.readBits(J)+(1<<J)}return 0}function Z(){this.meta_block_length=0,this.input_end=0,this.is_uncompressed=0,this.is_metadata=!1}function B(ae){var J=new Z,ie,te,le;if(J.input_end=ae.readBits(1),J.input_end&&ae.readBits(1))return J;if(ie=ae.readBits(2)+4,ie===7){if(J.is_metadata=!0,ae.readBits(1)!==0)throw new Error("Invalid reserved bit");if(te=ae.readBits(2),te===0)return J;for(le=0;le<te;le++){var ze=ae.readBits(8);if(le+1===te&&te>1&&ze===0)throw new Error("Invalid size byte");J.meta_block_length|=ze<<le*8}}else for(le=0;le<ie;++le){var ke=ae.readBits(4);if(le+1===ie&&ie>4&&ke===0)throw new Error("Invalid size nibble");J.meta_block_length|=ke<<le*4}return++J.meta_block_length,!J.input_end&&!J.is_metadata&&(J.is_uncompressed=ae.readBits(1)),J}function V(ae,J,ie){var te=J,le;return ie.fillBitWindow(),J+=ie.val_>>>ie.bit_pos_&F,le=ae[J].bits-A,le>0&&(ie.bit_pos_+=A,J+=ae[J].value,J+=ie.val_>>>ie.bit_pos_&(1<<le)-1),ie.bit_pos_+=ae[J].bits,ae[J].value}function H(ae,J,ie,te){for(var le=0,ze=y,ke=0,Ne=0,Je=32768,Ie=[],Se=0;Se<32;Se++)Ie.push(new d(0,0));for(f(Ie,0,5,ae,j);le<J&&Je>0;){var ht=0,Jr;if(te.readMoreInput(),te.fillBitWindow(),ht+=te.val_>>>te.bit_pos_&31,te.bit_pos_+=Ie[ht].bits,Jr=Ie[ht].value&255,Jr<v)ke=0,ie[le++]=Jr,Jr!==0&&(ze=Jr,Je-=32768>>Jr);else{var yn=Jr-14,bn,qo,Sr=0;if(Jr===v&&(Sr=ze),Ne!==Sr&&(ke=0,Ne=Sr),bn=ke,ke>0&&(ke-=2,ke<<=yn),ke+=te.readBits(yn)+3,qo=ke-bn,le+qo>J)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var Zo=0;Zo<qo;Zo++)ie[le+Zo]=Ne;le+=qo,Ne!==0&&(Je-=qo<<15-Ne)}}if(Je!==0)throw new Error("[ReadHuffmanCodeLengths] space = "+Je);for(;le<J;le++)ie[le]=0}function X(ae,J,ie,te){var le=0,ze,ke=new Uint8Array(ae);if(te.readMoreInput(),ze=te.readBits(2),ze===1){for(var Ne,Je=ae-1,Ie=0,Se=new Int32Array(4),ht=te.readBits(2)+1;Je;)Je>>=1,++Ie;for(Ne=0;Ne<ht;++Ne)Se[Ne]=te.readBits(Ie)%ae,ke[Se[Ne]]=2;switch(ke[Se[0]]=1,ht){case 1:break;case 3:if(Se[0]===Se[1]||Se[0]===Se[2]||Se[1]===Se[2])throw new Error("[ReadHuffmanCode] invalid symbols");break;case 2:if(Se[0]===Se[1])throw new Error("[ReadHuffmanCode] invalid symbols");ke[Se[1]]=1;break;case 4:if(Se[0]===Se[1]||Se[0]===Se[2]||Se[0]===Se[3]||Se[1]===Se[2]||Se[1]===Se[3]||Se[2]===Se[3])throw new Error("[ReadHuffmanCode] invalid symbols");te.readBits(1)?(ke[Se[2]]=3,ke[Se[3]]=3):ke[Se[0]]=2;break}}else{var Ne,Jr=new Uint8Array(j),yn=32,bn=0,qo=[new d(2,0),new d(2,4),new d(2,3),new d(3,2),new d(2,0),new d(2,4),new d(2,3),new d(4,1),new d(2,0),new d(2,4),new d(2,3),new d(3,2),new d(2,0),new d(2,4),new d(2,3),new d(4,5)];for(Ne=ze;Ne<j&&yn>0;++Ne){var Sr=z[Ne],Zo=0,Sn;te.fillBitWindow(),Zo+=te.val_>>>te.bit_pos_&15,te.bit_pos_+=qo[Zo].bits,Sn=qo[Zo].value,Jr[Sr]=Sn,Sn!==0&&(yn-=32>>Sn,++bn)}if(!(bn===1||yn===0))throw new Error("[ReadHuffmanCode] invalid num_codes or space");H(Jr,ae,ke,te)}if(le=f(J,ie,A,ke,ae),le===0)throw new Error("[ReadHuffmanCode] BuildHuffmanTable failed: ");return le}function ne(ae,J,ie){var te,le;return te=V(ae,J,ie),le=h.kBlockLengthPrefixCode[te].nbits,h.kBlockLengthPrefixCode[te].offset+ie.readBits(le)}function se(ae,J,ie){var te;return ae<M?(ie+=k[ae],ie&=3,te=J[ie]+I[ae]):te=ae-M+1,te}function ye(ae,J){for(var ie=ae[J],te=J;te;--te)ae[te]=ae[te-1];ae[0]=ie}function qe(ae,J){var ie=new Uint8Array(256),te;for(te=0;te<256;++te)ie[te]=te;for(te=0;te<J;++te){var le=ae[te];ae[te]=ie[le],le&&ye(ie,le)}}function ge(ae,J){this.alphabet_size=ae,this.num_htrees=J,this.codes=new Array(J+J*U[ae+31>>>5]),this.htrees=new Uint32Array(J)}ge.prototype.decode=function(ae){var J,ie,te=0;for(J=0;J<this.num_htrees;++J)this.htrees[J]=te,ie=X(this.alphabet_size,this.codes,te,ae),te+=ie};function oe(ae,J){var ie={num_htrees:null,context_map:null},te,le=0,ze,ke;J.readMoreInput();var Ne=ie.num_htrees=Y(J)+1,Je=ie.context_map=new Uint8Array(ae);if(Ne<=1)return ie;for(te=J.readBits(1),te&&(le=J.readBits(4)+1),ze=[],ke=0;ke<L;ke++)ze[ke]=new d(0,0);for(X(Ne+le,ze,0,J),ke=0;ke<ae;){var Ie;if(J.readMoreInput(),Ie=V(ze,0,J),Ie===0)Je[ke]=0,++ke;else if(Ie<=le)for(var Se=1+(1<<Ie)+J.readBits(Ie);--Se;){if(ke>=ae)throw new Error("[DecodeContextMap] i >= context_map_size");Je[ke]=0,++ke}else Je[ke]=Ie-le,++ke}return J.readBits(1)&&qe(Je,ae),ie}function ve(ae,J,ie,te,le,ze,ke){var Ne=ie*2,Je=ie,Ie=V(J,ie*L,ke),Se;Ie===0?Se=le[Ne+(ze[Je]&1)]:Ie===1?Se=le[Ne+(ze[Je]-1&1)]+1:Se=Ie-2,Se>=ae&&(Se-=ae),te[ie]=Se,le[Ne+(ze[Je]&1)]=Se,++ze[Je]}function De(ae,J,ie,te,le,ze){var ke=le+1,Ne=ie&le,Je=ze.pos_&c.IBUF_MASK,Ie;if(J<8||ze.bit_pos_+(J<<3)<ze.bit_end_pos_){for(;J-- >0;)ze.readMoreInput(),te[Ne++]=ze.readBits(8),Ne===ke&&(ae.write(te,ke),Ne=0);return}if(ze.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;ze.bit_pos_<32;)te[Ne]=ze.val_>>>ze.bit_pos_,ze.bit_pos_+=8,++Ne,--J;if(Ie=ze.bit_end_pos_-ze.bit_pos_>>3,Je+Ie>c.IBUF_MASK){for(var Se=c.IBUF_MASK+1-Je,ht=0;ht<Se;ht++)te[Ne+ht]=ze.buf_[Je+ht];Ie-=Se,Ne+=Se,J-=Se,Je=0}for(var ht=0;ht<Ie;ht++)te[Ne+ht]=ze.buf_[Je+ht];if(Ne+=Ie,J-=Ie,Ne>=ke){ae.write(te,ke),Ne-=ke;for(var ht=0;ht<Ne;ht++)te[ht]=te[ke+ht]}for(;Ne+J>=ke;){if(Ie=ke-Ne,ze.input_.read(te,Ne,Ie)<Ie)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");ae.write(te,ke),J-=Ie,Ne=0}if(ze.input_.read(te,Ne,J)<J)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");ze.reset()}function Ze(ae){var J=ae.bit_pos_+7&-8,ie=ae.readBits(J-ae.bit_pos_);return ie==0}function je(ae){var J=new a(ae),ie=new c(J);G(ie);var te=B(ie);return te.meta_block_length}s.BrotliDecompressedSize=je;function rt(ae,J){var ie=new a(ae);J==null&&(J=je(ae));var te=new Uint8Array(J),le=new l(te);return Tt(ie,le),le.pos<le.buffer.length&&(le.buffer=le.buffer.subarray(0,le.pos)),le.buffer}s.BrotliDecompressBuffer=rt;function Tt(ae,J){var ie,te=0,le=0,ze=0,ke,Ne=0,Je,Ie,Se,ht,Jr=[16,15,11,4],yn=0,bn=0,qo=0,Sr=[new ge(0,0),new ge(0,0),new ge(0,0)],Zo,Sn,Ke,dv=128+c.READ_SIZE;Ke=new c(ae),ze=G(Ke),ke=(1<<ze)-16,Je=1<<ze,Ie=Je-1,Se=new Uint8Array(Je+dv+u.maxDictionaryWordLength),ht=Je,Zo=[],Sn=[];for(var Mm=0;Mm<3*L;Mm++)Zo[Mm]=new d(0,0),Sn[Mm]=new d(0,0);for(;!le;){var Mr=0,b1,Gs=[1<<28,1<<28,1<<28],ba=[0],_s=[1,1,1],q=[0,1,0,1,0,1],de=[0],P,be,Mt,fe,_n=null,he=null,_r,Q=null,K,Id=0,It=null,Pe=0,Fd=0,Nd=null,cr=0,at=0,Vr=0,jr,uo;for(ie=0;ie<3;++ie)Sr[ie].codes=null,Sr[ie].htrees=null;Ke.readMoreInput();var vl=B(Ke);if(Mr=vl.meta_block_length,te+Mr>J.buffer.length){var Bd=new Uint8Array(te+Mr);Bd.set(J.buffer),J.buffer=Bd}if(le=vl.input_end,b1=vl.is_uncompressed,vl.is_metadata){for(Ze(Ke);Mr>0;--Mr)Ke.readMoreInput(),Ke.readBits(8);continue}if(Mr!==0){if(b1){Ke.bit_pos_=Ke.bit_pos_+7&-8,De(J,Mr,te,Se,Ie,Ke),te+=Mr;continue}for(ie=0;ie<3;++ie)_s[ie]=Y(Ke)+1,_s[ie]>=2&&(X(_s[ie]+2,Zo,ie*L,Ke),X(w,Sn,ie*L,Ke),Gs[ie]=ne(Sn,ie*L,Ke),de[ie]=1);for(Ke.readMoreInput(),P=Ke.readBits(2),be=M+(Ke.readBits(4)<<P),Mt=(1<<P)-1,fe=be+(48<<P),he=new Uint8Array(_s[0]),ie=0;ie<_s[0];++ie)Ke.readMoreInput(),he[ie]=Ke.readBits(2)<<1;var ur=oe(_s[0]<<T,Ke);_r=ur.num_htrees,_n=ur.context_map;var wn=oe(_s[2]<<C,Ke);for(K=wn.num_htrees,Q=wn.context_map,Sr[0]=new ge(b,_r),Sr[1]=new ge(S,_s[1]),Sr[2]=new ge(fe,K),ie=0;ie<3;++ie)Sr[ie].decode(Ke);for(It=0,Nd=0,jr=he[ba[0]],at=m.lookupOffsets[jr],Vr=m.lookupOffsets[jr+1],uo=Sr[1].htrees[0];Mr>0;){var wr,xn,Wn,Vm,ZE,Yn,ws,yl,fv,jm,mv;for(Ke.readMoreInput(),Gs[1]===0&&(ve(_s[1],Zo,1,ba,q,de,Ke),Gs[1]=ne(Sn,L,Ke),uo=Sr[1].htrees[ba[1]]),--Gs[1],wr=V(Sr[1].codes,uo,Ke),xn=wr>>6,xn>=2?(xn-=2,ws=-1):ws=0,Wn=h.kInsertRangeLut[xn]+(wr>>3&7),Vm=h.kCopyRangeLut[xn]+(wr&7),ZE=h.kInsertLengthPrefixCode[Wn].offset+Ke.readBits(h.kInsertLengthPrefixCode[Wn].nbits),Yn=h.kCopyLengthPrefixCode[Vm].offset+Ke.readBits(h.kCopyLengthPrefixCode[Vm].nbits),bn=Se[te-1&Ie],qo=Se[te-2&Ie],jm=0;jm<ZE;++jm)Ke.readMoreInput(),Gs[0]===0&&(ve(_s[0],Zo,0,ba,q,de,Ke),Gs[0]=ne(Sn,0,Ke),Id=ba[0]<<T,It=Id,jr=he[ba[0]],at=m.lookupOffsets[jr],Vr=m.lookupOffsets[jr+1]),fv=m.lookup[at+bn]|m.lookup[Vr+qo],Pe=_n[It+fv],--Gs[0],qo=bn,bn=V(Sr[0].codes,Sr[0].htrees[Pe],Ke),Se[te&Ie]=bn,(te&Ie)===Ie&&J.write(Se,Je),++te;if(Mr-=ZE,Mr<=0)break;if(ws<0){var fv;if(Ke.readMoreInput(),Gs[2]===0&&(ve(_s[2],Zo,2,ba,q,de,Ke),Gs[2]=ne(Sn,2*L,Ke),Fd=ba[2]<<C,Nd=Fd),--Gs[2],fv=(Yn>4?3:Yn-2)&255,cr=Q[Nd+fv],ws=V(Sr[2].codes,Sr[2].htrees[cr],Ke),ws>=be){var KE,dN,pv;ws-=be,dN=ws&Mt,ws>>=P,KE=(ws>>1)+1,pv=(2+(ws&1)<<KE)-4,ws=be+(pv+Ke.readBits(KE)<<P)+dN}}if(yl=se(ws,Jr,yn),yl<0)throw new Error("[BrotliDecompress] invalid distance");if(te<ke&&Ne!==ke?Ne=te:Ne=ke,mv=te&Ie,yl>Ne)if(Yn>=u.minDictionaryWordLength&&Yn<=u.maxDictionaryWordLength){var pv=u.offsetsByLength[Yn],fN=yl-Ne-1,mN=u.sizeBitsByLength[Yn],_ie=(1<<mN)-1,wie=fN&_ie,pN=fN>>mN;if(pv+=wie*Yn,pN<g.kNumTransforms){var XE=g.transformDictionaryWord(Se,mv,pv,Yn,pN);if(mv+=XE,te+=XE,Mr-=XE,mv>=ht){J.write(Se,Je);for(var S1=0;S1<mv-ht;S1++)Se[S1]=Se[ht+S1]}}else throw new Error("Invalid backward reference. pos: "+te+" distance: "+yl+" len: "+Yn+" bytes left: "+Mr)}else throw new Error("Invalid backward reference. pos: "+te+" distance: "+yl+" len: "+Yn+" bytes left: "+Mr);else{if(ws>0&&(Jr[yn&3]=yl,++yn),Yn>Mr)throw new Error("Invalid backward reference. pos: "+te+" distance: "+yl+" len: "+Yn+" bytes left: "+Mr);for(jm=0;jm<Yn;++jm)Se[te&Ie]=Se[te-yl&Ie],(te&Ie)===Ie&&J.write(Se,Je),++te,--Mr}bn=Se[te-1&Ie],qo=Se[te-2&Ie]}te&=1073741823}}J.write(Se,te&Ie)}s.BrotliDecompress=Tt,u.init()},{"./bit_reader":1,"./context":2,"./dictionary":6,"./huffman":7,"./prefix":9,"./streams":10,"./transform":11}],4:[function(o,n,s){var a=o("base64-js");s.init=function(){var l=o("./decode").BrotliDecompressBuffer,c=a.toByteArray(o("./dictionary.bin.js"));return l(c)}},{"./decode":3,"./dictionary.bin.js":5,"base64-js":8}],5:[function(o,n,s){n.exports="W5/fcQLn5gKf2XUbAiQ1XULX+TZz6ADToDsgqk6qVfeC0e4m6OO2wcQ1J76ZBVRV1fRkEsdu//62zQsFEZWSTCnMhcsQKlS2qOhuVYYMGCkV0fXWEoMFbESXrKEZ9wdUEsyw9g4bJlEt1Y6oVMxMRTEVbCIwZzJzboK5j8m4YH02qgXYhv1V+PM435sLVxyHJihaJREEhZGqL03txGFQLm76caGO/ovxKvzCby/3vMTtX/459f0igi7WutnKiMQ6wODSoRh/8Lx1V3Q99MvKtwB6bHdERYRY0hStJoMjNeTsNX7bn+Y7e4EQ3bf8xBc7L0BsyfFPK43dGSXpL6clYC/I328h54/VYrQ5i0648FgbGtl837svJ35L3Mot/+nPlNpWgKx1gGXQYqX6n+bbZ7wuyCHKcUok12Xjqub7NXZGzqBx0SD+uziNf87t7ve42jxSKQoW3nyxVrWIGlFShhCKxjpZZ5MeGna0+lBkk+kaN8F9qFBAFgEogyMBdcX/T1W/WnMOi/7ycWUQloEBKGeC48MkiwqJkJO+12eQiOFHMmck6q/IjWW3RZlany23TBm+cNr/84/oi5GGmGBZWrZ6j+zykVozz5fT/QH/Da6WTbZYYPynVNO7kxzuNN2kxKKWche5WveitPKAecB8YcAHz/+zXLjcLzkdDSktNIDwZE9J9X+tto43oJy65wApM3mDzYtCwX9lM+N5VR3kXYo0Z3t0TtXfgBFg7gU8oN0Dgl7fZlUbhNll+0uuohRVKjrEd8egrSndy5/Tgd2gqjA4CAVuC7ESUmL3DZoGnfhQV8uwnpi8EGvAVVsowNRxPudck7+oqAUDkwZopWqFnW1riss0t1z6iCISVKreYGNvQcXv+1L9+jbP8cd/dPUiqBso2q+7ZyFBvENCkkVr44iyPbtOoOoCecWsiuqMSML5lv+vN5MzUr+Dnh73G7Q1YnRYJVYXHRJaNAOByiaK6CusgFdBPE40r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tP1rpROprqKMBRecShca6qXuTSI3jZBLOB3Vp381B5rCGhjSvh/NSVkYp2qIdP/Bg="},{}],6:[function(o,n,s){var a=o("./dictionary-browser");s.init=function(){s.dictionary=a.init()},s.offsetsByLength=new Uint32Array([0,0,0,0,0,4096,9216,21504,35840,44032,53248,63488,74752,87040,93696,100864,104704,106752,108928,113536,115968,118528,119872,121280,122016]),s.sizeBitsByLength=new Uint8Array([0,0,0,0,10,10,11,11,10,10,10,10,10,9,9,8,7,7,8,7,7,6,6,5,5]),s.minDictionaryWordLength=4,s.maxDictionaryWordLength=24},{"./dictionary-browser":4}],7:[function(o,n,s){function a(f,m){this.bits=f,this.value=m}s.HuffmanCode=a;var l=15;function c(f,m){for(var h=1<<m-1;f&h;)h>>=1;return(f&h-1)+h}function u(f,m,h,g,y){do g-=h,f[m+g]=new a(y.bits,y.value);while(g>0)}function d(f,m,h){for(var g=1<<m-h;m<l&&(g-=f[m],!(g<=0));)++m,g<<=1;return m-h}s.BrotliBuildHuffmanTable=function(f,m,h,g,y){var v=m,b,S,w,T,C,A,F,L,j,z,M,k=new Int32Array(l+1),I=new Int32Array(l+1);for(M=new Int32Array(y),w=0;w<y;w++)k[g[w]]++;for(I[1]=0,S=1;S<l;S++)I[S+1]=I[S]+k[S];for(w=0;w<y;w++)g[w]!==0&&(M[I[g[w]]++]=w);if(L=h,j=1<<L,z=j,I[l]===1){for(T=0;T<z;++T)f[m+T]=new a(0,M[0]&65535);return z}for(T=0,w=0,S=1,C=2;S<=h;++S,C<<=1)for(;k[S]>0;--k[S])b=new a(S&255,M[w++]&65535),u(f,m+T,C,j,b),T=c(T,S);for(F=z-1,A=-1,S=h+1,C=2;S<=l;++S,C<<=1)for(;k[S]>0;--k[S])(T&F)!==A&&(m+=j,L=d(k,S,h),j=1<<L,z+=j,A=T&F,f[v+A]=new a(L+h&255,m-v-A&65535)),b=new a(S-h&255,M[w++]&65535),u(f,m+(T>>h),C,j,b),T=c(T,S);return z}},{}],8:[function(o,n,s){"use strict";s.byteLength=h,s.toByteArray=y,s.fromByteArray=S;for(var a=[],l=[],c=typeof Uint8Array<"u"?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,f=u.length;d<f;++d)a[d]=u[d],l[u.charCodeAt(d)]=d;l[45]=62,l[95]=63;function m(w){var T=w.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=w.indexOf("=");C===-1&&(C=T);var A=C===T?0:4-C%4;return[C,A]}function h(w){var T=m(w),C=T[0],A=T[1];return(C+A)*3/4-A}function g(w,T,C){return(T+C)*3/4-C}function y(w){for(var T,C=m(w),A=C[0],F=C[1],L=new c(g(w,A,F)),j=0,z=F>0?A-4:A,M=0;M<z;M+=4)T=l[w.charCodeAt(M)]<<18|l[w.charCodeAt(M+1)]<<12|l[w.charCodeAt(M+2)]<<6|l[w.charCodeAt(M+3)],L[j++]=T>>16&255,L[j++]=T>>8&255,L[j++]=T&255;return F===2&&(T=l[w.charCodeAt(M)]<<2|l[w.charCodeAt(M+1)]>>4,L[j++]=T&255),F===1&&(T=l[w.charCodeAt(M)]<<10|l[w.charCodeAt(M+1)]<<4|l[w.charCodeAt(M+2)]>>2,L[j++]=T>>8&255,L[j++]=T&255),L}function v(w){return a[w>>18&63]+a[w>>12&63]+a[w>>6&63]+a[w&63]}function b(w,T,C){for(var A,F=[],L=T;L<C;L+=3)A=(w[L]<<16&16711680)+(w[L+1]<<8&65280)+(w[L+2]&255),F.push(v(A));return F.join("")}function S(w){for(var T,C=w.length,A=C%3,F=[],L=16383,j=0,z=C-A;j<z;j+=L)F.push(b(w,j,j+L>z?z:j+L));return A===1?(T=w[C-1],F.push(a[T>>2]+a[T<<4&63]+"==")):A===2&&(T=(w[C-2]<<8)+w[C-1],F.push(a[T>>10]+a[T>>4&63]+a[T<<2&63]+"=")),F.join("")}},{}],9:[function(o,n,s){function a(l,c){this.offset=l,this.nbits=c}s.kBlockLengthPrefixCode=[new a(1,2),new a(5,2),new a(9,2),new a(13,2),new a(17,3),new a(25,3),new a(33,3),new a(41,3),new a(49,4),new a(65,4),new a(81,4),new a(97,4),new a(113,5),new a(145,5),new a(177,5),new a(209,5),new a(241,6),new a(305,6),new a(369,7),new a(497,8),new a(753,9),new a(1265,10),new a(2289,11),new a(4337,12),new a(8433,13),new a(16625,24)],s.kInsertLengthPrefixCode=[new a(0,0),new a(1,0),new a(2,0),new a(3,0),new a(4,0),new a(5,0),new a(6,1),new a(8,1),new a(10,2),new a(14,2),new a(18,3),new a(26,3),new a(34,4),new a(50,4),new a(66,5),new a(98,5),new a(130,6),new a(194,7),new a(322,8),new a(578,9),new a(1090,10),new a(2114,12),new a(6210,14),new a(22594,24)],s.kCopyLengthPrefixCode=[new a(2,0),new a(3,0),new a(4,0),new a(5,0),new a(6,0),new a(7,0),new a(8,0),new a(9,0),new a(10,1),new a(12,1),new a(14,2),new a(18,2),new a(22,3),new a(30,3),new a(38,4),new a(54,4),new a(70,5),new a(102,5),new a(134,6),new a(198,7),new a(326,8),new a(582,9),new a(1094,10),new a(2118,24)],s.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],s.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},{}],10:[function(o,n,s){function a(c){this.buffer=c,this.pos=0}a.prototype.read=function(c,u,d){this.pos+d>this.buffer.length&&(d=this.buffer.length-this.pos);for(var f=0;f<d;f++)c[u+f]=this.buffer[this.pos+f];return this.pos+=d,d},s.BrotliInput=a;function l(c){this.buffer=c,this.pos=0}l.prototype.write=function(c,u){if(this.pos+u>this.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(c.subarray(0,u),this.pos),this.pos+=u,u},s.BrotliOutput=l},{}],11:[function(o,n,s){var a=o("./dictionary"),l=0,c=1,u=2,d=3,f=4,m=5,h=6,g=7,y=8,v=9,b=10,S=11,w=12,T=13,C=14,A=15,F=16,L=17,j=18,z=19,M=20;function k(G,Y,Z){this.prefix=new Uint8Array(G.length),this.transform=Y,this.suffix=new Uint8Array(Z.length);for(var B=0;B<G.length;B++)this.prefix[B]=G.charCodeAt(B);for(var B=0;B<Z.length;B++)this.suffix[B]=Z.charCodeAt(B)}var I=[new k("",l,""),new k("",l," "),new k(" ",l," "),new k("",w,""),new k("",b," "),new k("",l," the "),new k(" ",l,""),new k("s ",l," "),new k("",l," of "),new k("",b,""),new k("",l," and "),new k("",T,""),new k("",c,""),new k(", ",l," "),new k("",l,", "),new k(" ",b," "),new k("",l," in "),new k("",l," to "),new k("e ",l," "),new k("",l,'"'),new k("",l,"."),new k("",l,'">'),new k("",l,`
`),new k("",d,""),new k("",l,"]"),new k("",l," for "),new k("",C,""),new k("",u,""),new k("",l," a "),new k("",l," that "),new k(" ",b,""),new k("",l,". "),new k(".",l,""),new k(" ",l,", "),new k("",A,""),new k("",l," with "),new k("",l,"'"),new k("",l," from "),new k("",l," by "),new k("",F,""),new k("",L,""),new k(" the ",l,""),new k("",f,""),new k("",l,". The "),new k("",S,""),new k("",l," on "),new k("",l," as "),new k("",l," is "),new k("",g,""),new k("",c,"ing "),new k("",l,`
`),new k("",l,":"),new k(" ",l,". "),new k("",l,"ed "),new k("",M,""),new k("",j,""),new k("",h,""),new k("",l,"("),new k("",b,", "),new k("",y,""),new k("",l," at "),new k("",l,"ly "),new k(" the ",l," of "),new k("",m,""),new k("",v,""),new k(" ",b,", "),new k("",b,'"'),new k(".",l,"("),new k("",S," "),new k("",b,'">'),new k("",l,'="'),new k(" ",l,"."),new k(".com/",l,""),new k(" the ",l," of the "),new k("",b,"'"),new k("",l,". This "),new k("",l,","),new k(".",l," "),new k("",b,"("),new k("",b,"."),new k("",l," not "),new k(" ",l,'="'),new k("",l,"er "),new k(" ",S," "),new k("",l,"al "),new k(" ",S,""),new k("",l,"='"),new k("",S,'"'),new k("",b,". "),new k(" ",l,"("),new k("",l,"ful "),new k(" ",b,". "),new k("",l,"ive "),new k("",l,"less "),new k("",S,"'"),new k("",l,"est "),new k(" ",b,"."),new k("",S,'">'),new k(" ",l,"='"),new k("",b,","),new k("",l,"ize "),new k("",S,"."),new k("\xC2\xA0",l,""),new k(" ",l,","),new k("",b,'="'),new k("",S,'="'),new k("",l,"ous "),new k("",S,", "),new k("",b,"='"),new k(" ",b,","),new k(" ",S,'="'),new k(" ",S,", "),new k("",S,","),new k("",S,"("),new k("",S,". "),new k(" ",S,"."),new k("",S,"='"),new k(" ",S,". "),new k(" ",b,'="'),new k(" ",S,"='"),new k(" ",b,"='")];s.kTransforms=I,s.kNumTransforms=I.length;function U(G,Y){return G[Y]<192?(G[Y]>=97&&G[Y]<=122&&(G[Y]^=32),1):G[Y]<224?(G[Y+1]^=32,2):(G[Y+2]^=5,3)}s.transformDictionaryWord=function(G,Y,Z,B,V){var H=I[V].prefix,X=I[V].suffix,ne=I[V].transform,se=ne<w?0:ne-(w-1),ye=0,qe=Y,ge;se>B&&(se=B);for(var oe=0;oe<H.length;)G[Y++]=H[oe++];for(Z+=se,B-=se,ne<=v&&(B-=ne),ye=0;ye<B;ye++)G[Y++]=a.dictionary[Z+ye];if(ge=Y-B,ne===b)U(G,ge);else if(ne===S)for(;B>0;){var ve=U(G,ge);ge+=ve,B-=ve}for(var De=0;De<X.length;)G[Y++]=X[De++];return Y-qe}},{"./dictionary":6}],12:[function(o,n,s){n.exports=o("./dec/decode").BrotliDecompressBuffer},{"./dec/decode":3}]},{},[12])(12)})();var tx=(e=>typeof qn<"u"?qn:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof qn<"u"?qn:t)[r]}):e)(function(e){if(typeof qn<"u")return qn.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Vj=(function(){var e,t,r;return(function(){function o(n,s,a){function l(d,f){if(!s[d]){if(!n[d]){var m=typeof tx=="function"&&tx;if(!f&&m)return m(d,!0);if(c)return c(d,!0);var h=new Error("Cannot find module '"+d+"'");throw h.code="MODULE_NOT_FOUND",h}var g=s[d]={exports:{}};n[d][0].call(g.exports,function(y){var v=n[d][1][y];return l(v||y)},g,g.exports,o,n,s,a)}return s[d].exports}for(var c=typeof tx=="function"&&tx,u=0;u<a.length;u++)l(a[u]);return l}return o})()({1:[function(o,n,s){"use strict";var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function l(d,f){return Object.prototype.hasOwnProperty.call(d,f)}s.assign=function(d){for(var f=Array.prototype.slice.call(arguments,1);f.length;){var m=f.shift();if(m){if(typeof m!="object")throw new TypeError(m+"must be non-object");for(var h in m)l(m,h)&&(d[h]=m[h])}}return d},s.shrinkBuf=function(d,f){return d.length===f?d:d.subarray?d.subarray(0,f):(d.length=f,d)};var c={arraySet:function(d,f,m,h,g){if(f.subarray&&d.subarray){d.set(f.subarray(m,m+h),g);return}for(var y=0;y<h;y++)d[g+y]=f[m+y]},flattenChunks:function(d){var f,m,h,g,y,v;for(h=0,f=0,m=d.length;f<m;f++)h+=d[f].length;for(v=new Uint8Array(h),g=0,f=0,m=d.length;f<m;f++)y=d[f],v.set(y,g),g+=y.length;return v}},u={arraySet:function(d,f,m,h,g){for(var y=0;y<h;y++)d[g+y]=f[m+y]},flattenChunks:function(d){return[].concat.apply([],d)}};s.setTyped=function(d){d?(s.Buf8=Uint8Array,s.Buf16=Uint16Array,s.Buf32=Int32Array,s.assign(s,c)):(s.Buf8=Array,s.Buf16=Array,s.Buf32=Array,s.assign(s,u))},s.setTyped(a)},{}],2:[function(o,n,s){"use strict";var a=o("./common"),l=!0,c=!0;try{String.fromCharCode.apply(null,[0])}catch{l=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{c=!1}for(var u=new a.Buf8(256),d=0;d<256;d++)u[d]=d>=252?6:d>=248?5:d>=240?4:d>=224?3:d>=192?2:1;u[254]=u[254]=1,s.string2buf=function(m){var h,g,y,v,b,S=m.length,w=0;for(v=0;v<S;v++)g=m.charCodeAt(v),(g&64512)===55296&&v+1<S&&(y=m.charCodeAt(v+1),(y&64512)===56320&&(g=65536+(g-55296<<10)+(y-56320),v++)),w+=g<128?1:g<2048?2:g<65536?3:4;for(h=new a.Buf8(w),b=0,v=0;b<w;v++)g=m.charCodeAt(v),(g&64512)===55296&&v+1<S&&(y=m.charCodeAt(v+1),(y&64512)===56320&&(g=65536+(g-55296<<10)+(y-56320),v++)),g<128?h[b++]=g:g<2048?(h[b++]=192|g>>>6,h[b++]=128|g&63):g<65536?(h[b++]=224|g>>>12,h[b++]=128|g>>>6&63,h[b++]=128|g&63):(h[b++]=240|g>>>18,h[b++]=128|g>>>12&63,h[b++]=128|g>>>6&63,h[b++]=128|g&63);return h};function f(m,h){if(h<65534&&(m.subarray&&c||!m.subarray&&l))return String.fromCharCode.apply(null,a.shrinkBuf(m,h));for(var g="",y=0;y<h;y++)g+=String.fromCharCode(m[y]);return g}s.buf2binstring=function(m){return f(m,m.length)},s.binstring2buf=function(m){for(var h=new a.Buf8(m.length),g=0,y=h.length;g<y;g++)h[g]=m.charCodeAt(g);return h},s.buf2string=function(m,h){var g,y,v,b,S=h||m.length,w=new Array(S*2);for(y=0,g=0;g<S;){if(v=m[g++],v<128){w[y++]=v;continue}if(b=u[v],b>4){w[y++]=65533,g+=b-1;continue}for(v&=b===2?31:b===3?15:7;b>1&&g<S;)v=v<<6|m[g++]&63,b--;if(b>1){w[y++]=65533;continue}v<65536?w[y++]=v:(v-=65536,w[y++]=55296|v>>10&1023,w[y++]=56320|v&1023)}return f(w,y)},s.utf8border=function(m,h){var g;for(h=h||m.length,h>m.length&&(h=m.length),g=h-1;g>=0&&(m[g]&192)===128;)g--;return g<0||g===0?h:g+u[m[g]]>h?g:h}},{"./common":1}],3:[function(o,n,s){"use strict";function a(l,c,u,d){for(var f=l&65535|0,m=l>>>16&65535|0,h=0;u!==0;){h=u>2e3?2e3:u,u-=h;do f=f+c[d++]|0,m=m+f|0;while(--h);f%=65521,m%=65521}return f|m<<16|0}n.exports=a},{}],4:[function(o,n,s){"use strict";n.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],5:[function(o,n,s){"use strict";function a(){for(var u,d=[],f=0;f<256;f++){u=f;for(var m=0;m<8;m++)u=u&1?3988292384^u>>>1:u>>>1;d[f]=u}return d}var l=a();function c(u,d,f,m){var h=l,g=m+f;u^=-1;for(var y=m;y<g;y++)u=u>>>8^h[(u^d[y])&255];return u^-1}n.exports=c},{}],6:[function(o,n,s){"use strict";function a(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}n.exports=a},{}],7:[function(o,n,s){"use strict";var a=30,l=12;n.exports=function(u,d){var f,m,h,g,y,v,b,S,w,T,C,A,F,L,j,z,M,k,I,U,G,Y,Z,B,V;f=u.state,m=u.next_in,B=u.input,h=m+(u.avail_in-5),g=u.next_out,V=u.output,y=g-(d-u.avail_out),v=g+(u.avail_out-257),b=f.dmax,S=f.wsize,w=f.whave,T=f.wnext,C=f.window,A=f.hold,F=f.bits,L=f.lencode,j=f.distcode,z=(1<<f.lenbits)-1,M=(1<<f.distbits)-1;e:do{F<15&&(A+=B[m++]<<F,F+=8,A+=B[m++]<<F,F+=8),k=L[A&z];t:for(;;){if(I=k>>>24,A>>>=I,F-=I,I=k>>>16&255,I===0)V[g++]=k&65535;else if(I&16){U=k&65535,I&=15,I&&(F<I&&(A+=B[m++]<<F,F+=8),U+=A&(1<<I)-1,A>>>=I,F-=I),F<15&&(A+=B[m++]<<F,F+=8,A+=B[m++]<<F,F+=8),k=j[A&M];r:for(;;){if(I=k>>>24,A>>>=I,F-=I,I=k>>>16&255,I&16){if(G=k&65535,I&=15,F<I&&(A+=B[m++]<<F,F+=8,F<I&&(A+=B[m++]<<F,F+=8)),G+=A&(1<<I)-1,G>b){u.msg="invalid distance too far back",f.mode=a;break e}if(A>>>=I,F-=I,I=g-y,G>I){if(I=G-I,I>w&&f.sane){u.msg="invalid distance too far back",f.mode=a;break e}if(Y=0,Z=C,T===0){if(Y+=S-I,I<U){U-=I;do V[g++]=C[Y++];while(--I);Y=g-G,Z=V}}else if(T<I){if(Y+=S+T-I,I-=T,I<U){U-=I;do V[g++]=C[Y++];while(--I);if(Y=0,T<U){I=T,U-=I;do V[g++]=C[Y++];while(--I);Y=g-G,Z=V}}}else if(Y+=T-I,I<U){U-=I;do V[g++]=C[Y++];while(--I);Y=g-G,Z=V}for(;U>2;)V[g++]=Z[Y++],V[g++]=Z[Y++],V[g++]=Z[Y++],U-=3;U&&(V[g++]=Z[Y++],U>1&&(V[g++]=Z[Y++]))}else{Y=g-G;do V[g++]=V[Y++],V[g++]=V[Y++],V[g++]=V[Y++],U-=3;while(U>2);U&&(V[g++]=V[Y++],U>1&&(V[g++]=V[Y++]))}}else if((I&64)===0){k=j[(k&65535)+(A&(1<<I)-1)];continue r}else{u.msg="invalid distance code",f.mode=a;break e}break}}else if((I&64)===0){k=L[(k&65535)+(A&(1<<I)-1)];continue t}else if(I&32){f.mode=l;break e}else{u.msg="invalid literal/length code",f.mode=a;break e}break}}while(m<h&&g<v);U=F>>3,m-=U,F-=U<<3,A&=(1<<F)-1,u.next_in=m,u.next_out=g,u.avail_in=m<h?5+(h-m):5-(m-h),u.avail_out=g<v?257+(v-g):257-(g-v),f.hold=A,f.bits=F}},{}],8:[function(o,n,s){"use strict";var a=o("../utils/common"),l=o("./adler32"),c=o("./crc32"),u=o("./inffast"),d=o("./inftrees"),f=0,m=1,h=2,g=4,y=5,v=6,b=0,S=1,w=2,T=-2,C=-3,A=-4,F=-5,L=8,j=1,z=2,M=3,k=4,I=5,U=6,G=7,Y=8,Z=9,B=10,V=11,H=12,X=13,ne=14,se=15,ye=16,qe=17,ge=18,oe=19,ve=20,De=21,Ze=22,je=23,rt=24,Tt=25,ae=26,J=27,ie=28,te=29,le=30,ze=31,ke=32,Ne=852,Je=592,Ie=15,Se=Ie;function ht(q){return(q>>>24&255)+(q>>>8&65280)+((q&65280)<<8)+((q&255)<<24)}function Jr(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function yn(q){var de;return!q||!q.state?T:(de=q.state,q.total_in=q.total_out=de.total=0,q.msg="",de.wrap&&(q.adler=de.wrap&1),de.mode=j,de.last=0,de.havedict=0,de.dmax=32768,de.head=null,de.hold=0,de.bits=0,de.lencode=de.lendyn=new a.Buf32(Ne),de.distcode=de.distdyn=new a.Buf32(Je),de.sane=1,de.back=-1,b)}function bn(q){var de;return!q||!q.state?T:(de=q.state,de.wsize=0,de.whave=0,de.wnext=0,yn(q))}function qo(q,de){var P,be;return!q||!q.state||(be=q.state,de<0?(P=0,de=-de):(P=(de>>4)+1,de<48&&(de&=15)),de&&(de<8||de>15))?T:(be.window!==null&&be.wbits!==de&&(be.window=null),be.wrap=P,be.wbits=de,bn(q))}function Sr(q,de){var P,be;return q?(be=new Jr,q.state=be,be.window=null,P=qo(q,de),P!==b&&(q.state=null),P):T}function Zo(q){return Sr(q,Se)}var Sn=!0,Ke,dv;function Mm(q){if(Sn){var de;for(Ke=new a.Buf32(512),dv=new a.Buf32(32),de=0;de<144;)q.lens[de++]=8;for(;de<256;)q.lens[de++]=9;for(;de<280;)q.lens[de++]=7;for(;de<288;)q.lens[de++]=8;for(d(m,q.lens,0,288,Ke,0,q.work,{bits:9}),de=0;de<32;)q.lens[de++]=5;d(h,q.lens,0,32,dv,0,q.work,{bits:5}),Sn=!1}q.lencode=Ke,q.lenbits=9,q.distcode=dv,q.distbits=5}function Mr(q,de,P,be){var Mt,fe=q.state;return fe.window===null&&(fe.wsize=1<<fe.wbits,fe.wnext=0,fe.whave=0,fe.window=new a.Buf8(fe.wsize)),be>=fe.wsize?(a.arraySet(fe.window,de,P-fe.wsize,fe.wsize,0),fe.wnext=0,fe.whave=fe.wsize):(Mt=fe.wsize-fe.wnext,Mt>be&&(Mt=be),a.arraySet(fe.window,de,P-be,Mt,fe.wnext),be-=Mt,be?(a.arraySet(fe.window,de,P-be,be,0),fe.wnext=be,fe.whave=fe.wsize):(fe.wnext+=Mt,fe.wnext===fe.wsize&&(fe.wnext=0),fe.whave<fe.wsize&&(fe.whave+=Mt))),0}function b1(q,de){var P,be,Mt,fe,_n,he,_r,Q,K,Id,It,Pe,Fd,Nd,cr=0,at,Vr,jr,uo,vl,Bd,ur,wn,wr=new a.Buf8(4),xn,Wn,Vm=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!q||!q.state||!q.output||!q.input&&q.avail_in!==0)return T;P=q.state,P.mode===H&&(P.mode=X),_n=q.next_out,Mt=q.output,_r=q.avail_out,fe=q.next_in,be=q.input,he=q.avail_in,Q=P.hold,K=P.bits,Id=he,It=_r,wn=b;e:for(;;)switch(P.mode){case j:if(P.wrap===0){P.mode=X;break}for(;K<16;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}if(P.wrap&2&&Q===35615){P.check=0,wr[0]=Q&255,wr[1]=Q>>>8&255,P.check=c(P.check,wr,2,0),Q=0,K=0,P.mode=z;break}if(P.flags=0,P.head&&(P.head.done=!1),!(P.wrap&1)||(((Q&255)<<8)+(Q>>8))%31){q.msg="incorrect header check",P.mode=le;break}if((Q&15)!==L){q.msg="unknown compression method",P.mode=le;break}if(Q>>>=4,K-=4,ur=(Q&15)+8,P.wbits===0)P.wbits=ur;else if(ur>P.wbits){q.msg="invalid window size",P.mode=le;break}P.dmax=1<<ur,q.adler=P.check=1,P.mode=Q&512?B:H,Q=0,K=0;break;case z:for(;K<16;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}if(P.flags=Q,(P.flags&255)!==L){q.msg="unknown compression method",P.mode=le;break}if(P.flags&57344){q.msg="unknown header flags set",P.mode=le;break}P.head&&(P.head.text=Q>>8&1),P.flags&512&&(wr[0]=Q&255,wr[1]=Q>>>8&255,P.check=c(P.check,wr,2,0)),Q=0,K=0,P.mode=M;case M:for(;K<32;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}P.head&&(P.head.time=Q),P.flags&512&&(wr[0]=Q&255,wr[1]=Q>>>8&255,wr[2]=Q>>>16&255,wr[3]=Q>>>24&255,P.check=c(P.check,wr,4,0)),Q=0,K=0,P.mode=k;case k:for(;K<16;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}P.head&&(P.head.xflags=Q&255,P.head.os=Q>>8),P.flags&512&&(wr[0]=Q&255,wr[1]=Q>>>8&255,P.check=c(P.check,wr,2,0)),Q=0,K=0,P.mode=I;case I:if(P.flags&1024){for(;K<16;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}P.length=Q,P.head&&(P.head.extra_len=Q),P.flags&512&&(wr[0]=Q&255,wr[1]=Q>>>8&255,P.check=c(P.check,wr,2,0)),Q=0,K=0}else P.head&&(P.head.extra=null);P.mode=U;case U:if(P.flags&1024&&(Pe=P.length,Pe>he&&(Pe=he),Pe&&(P.head&&(ur=P.head.extra_len-P.length,P.head.extra||(P.head.extra=new Array(P.head.extra_len)),a.arraySet(P.head.extra,be,fe,Pe,ur)),P.flags&512&&(P.check=c(P.check,be,Pe,fe)),he-=Pe,fe+=Pe,P.length-=Pe),P.length))break e;P.length=0,P.mode=G;case G:if(P.flags&2048){if(he===0)break e;Pe=0;do ur=be[fe+Pe++],P.head&&ur&&P.length<65536&&(P.head.name+=String.fromCharCode(ur));while(ur&&Pe<he);if(P.flags&512&&(P.check=c(P.check,be,Pe,fe)),he-=Pe,fe+=Pe,ur)break e}else P.head&&(P.head.name=null);P.length=0,P.mode=Y;case Y:if(P.flags&4096){if(he===0)break e;Pe=0;do ur=be[fe+Pe++],P.head&&ur&&P.length<65536&&(P.head.comment+=String.fromCharCode(ur));while(ur&&Pe<he);if(P.flags&512&&(P.check=c(P.check,be,Pe,fe)),he-=Pe,fe+=Pe,ur)break e}else P.head&&(P.head.comment=null);P.mode=Z;case Z:if(P.flags&512){for(;K<16;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}if(Q!==(P.check&65535)){q.msg="header crc mismatch",P.mode=le;break}Q=0,K=0}P.head&&(P.head.hcrc=P.flags>>9&1,P.head.done=!0),q.adler=P.check=0,P.mode=H;break;case B:for(;K<32;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}q.adler=P.check=ht(Q),Q=0,K=0,P.mode=V;case V:if(P.havedict===0)return q.next_out=_n,q.avail_out=_r,q.next_in=fe,q.avail_in=he,P.hold=Q,P.bits=K,w;q.adler=P.check=1,P.mode=H;case H:if(de===y||de===v)break e;case X:if(P.last){Q>>>=K&7,K-=K&7,P.mode=J;break}for(;K<3;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}switch(P.last=Q&1,Q>>>=1,K-=1,Q&3){case 0:P.mode=ne;break;case 1:if(Mm(P),P.mode=ve,de===v){Q>>>=2,K-=2;break e}break;case 2:P.mode=qe;break;case 3:q.msg="invalid block type",P.mode=le}Q>>>=2,K-=2;break;case ne:for(Q>>>=K&7,K-=K&7;K<32;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}if((Q&65535)!==(Q>>>16^65535)){q.msg="invalid stored block lengths",P.mode=le;break}if(P.length=Q&65535,Q=0,K=0,P.mode=se,de===v)break e;case se:P.mode=ye;case ye:if(Pe=P.length,Pe){if(Pe>he&&(Pe=he),Pe>_r&&(Pe=_r),Pe===0)break e;a.arraySet(Mt,be,fe,Pe,_n),he-=Pe,fe+=Pe,_r-=Pe,_n+=Pe,P.length-=Pe;break}P.mode=H;break;case qe:for(;K<14;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}if(P.nlen=(Q&31)+257,Q>>>=5,K-=5,P.ndist=(Q&31)+1,Q>>>=5,K-=5,P.ncode=(Q&15)+4,Q>>>=4,K-=4,P.nlen>286||P.ndist>30){q.msg="too many length or distance symbols",P.mode=le;break}P.have=0,P.mode=ge;case ge:for(;P.have<P.ncode;){for(;K<3;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}P.lens[Vm[P.have++]]=Q&7,Q>>>=3,K-=3}for(;P.have<19;)P.lens[Vm[P.have++]]=0;if(P.lencode=P.lendyn,P.lenbits=7,xn={bits:P.lenbits},wn=d(f,P.lens,0,19,P.lencode,0,P.work,xn),P.lenbits=xn.bits,wn){q.msg="invalid code lengths set",P.mode=le;break}P.have=0,P.mode=oe;case oe:for(;P.have<P.nlen+P.ndist;){for(;cr=P.lencode[Q&(1<<P.lenbits)-1],at=cr>>>24,Vr=cr>>>16&255,jr=cr&65535,!(at<=K);){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}if(jr<16)Q>>>=at,K-=at,P.lens[P.have++]=jr;else{if(jr===16){for(Wn=at+2;K<Wn;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}if(Q>>>=at,K-=at,P.have===0){q.msg="invalid bit length repeat",P.mode=le;break}ur=P.lens[P.have-1],Pe=3+(Q&3),Q>>>=2,K-=2}else if(jr===17){for(Wn=at+3;K<Wn;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}Q>>>=at,K-=at,ur=0,Pe=3+(Q&7),Q>>>=3,K-=3}else{for(Wn=at+7;K<Wn;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}Q>>>=at,K-=at,ur=0,Pe=11+(Q&127),Q>>>=7,K-=7}if(P.have+Pe>P.nlen+P.ndist){q.msg="invalid bit length repeat",P.mode=le;break}for(;Pe--;)P.lens[P.have++]=ur}}if(P.mode===le)break;if(P.lens[256]===0){q.msg="invalid code -- missing end-of-block",P.mode=le;break}if(P.lenbits=9,xn={bits:P.lenbits},wn=d(m,P.lens,0,P.nlen,P.lencode,0,P.work,xn),P.lenbits=xn.bits,wn){q.msg="invalid literal/lengths set",P.mode=le;break}if(P.distbits=6,P.distcode=P.distdyn,xn={bits:P.distbits},wn=d(h,P.lens,P.nlen,P.ndist,P.distcode,0,P.work,xn),P.distbits=xn.bits,wn){q.msg="invalid distances set",P.mode=le;break}if(P.mode=ve,de===v)break e;case ve:P.mode=De;case De:if(he>=6&&_r>=258){q.next_out=_n,q.avail_out=_r,q.next_in=fe,q.avail_in=he,P.hold=Q,P.bits=K,u(q,It),_n=q.next_out,Mt=q.output,_r=q.avail_out,fe=q.next_in,be=q.input,he=q.avail_in,Q=P.hold,K=P.bits,P.mode===H&&(P.back=-1);break}for(P.back=0;cr=P.lencode[Q&(1<<P.lenbits)-1],at=cr>>>24,Vr=cr>>>16&255,jr=cr&65535,!(at<=K);){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}if(Vr&&(Vr&240)===0){for(uo=at,vl=Vr,Bd=jr;cr=P.lencode[Bd+((Q&(1<<uo+vl)-1)>>uo)],at=cr>>>24,Vr=cr>>>16&255,jr=cr&65535,!(uo+at<=K);){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}Q>>>=uo,K-=uo,P.back+=uo}if(Q>>>=at,K-=at,P.back+=at,P.length=jr,Vr===0){P.mode=ae;break}if(Vr&32){P.back=-1,P.mode=H;break}if(Vr&64){q.msg="invalid literal/length code",P.mode=le;break}P.extra=Vr&15,P.mode=Ze;case Ze:if(P.extra){for(Wn=P.extra;K<Wn;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}P.length+=Q&(1<<P.extra)-1,Q>>>=P.extra,K-=P.extra,P.back+=P.extra}P.was=P.length,P.mode=je;case je:for(;cr=P.distcode[Q&(1<<P.distbits)-1],at=cr>>>24,Vr=cr>>>16&255,jr=cr&65535,!(at<=K);){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}if((Vr&240)===0){for(uo=at,vl=Vr,Bd=jr;cr=P.distcode[Bd+((Q&(1<<uo+vl)-1)>>uo)],at=cr>>>24,Vr=cr>>>16&255,jr=cr&65535,!(uo+at<=K);){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}Q>>>=uo,K-=uo,P.back+=uo}if(Q>>>=at,K-=at,P.back+=at,Vr&64){q.msg="invalid distance code",P.mode=le;break}P.offset=jr,P.extra=Vr&15,P.mode=rt;case rt:if(P.extra){for(Wn=P.extra;K<Wn;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}P.offset+=Q&(1<<P.extra)-1,Q>>>=P.extra,K-=P.extra,P.back+=P.extra}if(P.offset>P.dmax){q.msg="invalid distance too far back",P.mode=le;break}P.mode=Tt;case Tt:if(_r===0)break e;if(Pe=It-_r,P.offset>Pe){if(Pe=P.offset-Pe,Pe>P.whave&&P.sane){q.msg="invalid distance too far back",P.mode=le;break}Pe>P.wnext?(Pe-=P.wnext,Fd=P.wsize-Pe):Fd=P.wnext-Pe,Pe>P.length&&(Pe=P.length),Nd=P.window}else Nd=Mt,Fd=_n-P.offset,Pe=P.length;Pe>_r&&(Pe=_r),_r-=Pe,P.length-=Pe;do Mt[_n++]=Nd[Fd++];while(--Pe);P.length===0&&(P.mode=De);break;case ae:if(_r===0)break e;Mt[_n++]=P.length,_r--,P.mode=De;break;case J:if(P.wrap){for(;K<32;){if(he===0)break e;he--,Q|=be[fe++]<<K,K+=8}if(It-=_r,q.total_out+=It,P.total+=It,It&&(q.adler=P.check=P.flags?c(P.check,Mt,It,_n-It):l(P.check,Mt,It,_n-It)),It=_r,(P.flags?Q:ht(Q))!==P.check){q.msg="incorrect data check",P.mode=le;break}Q=0,K=0}P.mode=ie;case ie:if(P.wrap&&P.flags){for(;K<32;){if(he===0)break e;he--,Q+=be[fe++]<<K,K+=8}if(Q!==(P.total&4294967295)){q.msg="incorrect length check",P.mode=le;break}Q=0,K=0}P.mode=te;case te:wn=S;break e;case le:wn=C;break e;case ze:return A;case ke:default:return T}return q.next_out=_n,q.avail_out=_r,q.next_in=fe,q.avail_in=he,P.hold=Q,P.bits=K,(P.wsize||It!==q.avail_out&&P.mode<le&&(P.mode<J||de!==g))&&Mr(q,q.output,q.next_out,It-q.avail_out)?(P.mode=ze,A):(Id-=q.avail_in,It-=q.avail_out,q.total_in+=Id,q.total_out+=It,P.total+=It,P.wrap&&It&&(q.adler=P.check=P.flags?c(P.check,Mt,It,q.next_out-It):l(P.check,Mt,It,q.next_out-It)),q.data_type=P.bits+(P.last?64:0)+(P.mode===H?128:0)+(P.mode===ve||P.mode===se?256:0),(Id===0&&It===0||de===g)&&wn===b&&(wn=F),wn)}function Gs(q){if(!q||!q.state)return T;var de=q.state;return de.window&&(de.window=null),q.state=null,b}function ba(q,de){var P;return!q||!q.state||(P=q.state,(P.wrap&2)===0)?T:(P.head=de,de.done=!1,b)}function _s(q,de){var P=de.length,be,Mt,fe;return!q||!q.state||(be=q.state,be.wrap!==0&&be.mode!==V)?T:be.mode===V&&(Mt=1,Mt=l(Mt,de,P,0),Mt!==be.check)?C:(fe=Mr(q,de,P,P),fe?(be.mode=ze,A):(be.havedict=1,b))}s.inflateReset=bn,s.inflateReset2=qo,s.inflateResetKeep=yn,s.inflateInit=Zo,s.inflateInit2=Sr,s.inflate=b1,s.inflateEnd=Gs,s.inflateGetHeader=ba,s.inflateSetDictionary=_s,s.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":5,"./inffast":7,"./inftrees":9}],9:[function(o,n,s){"use strict";var a=o("../utils/common"),l=15,c=852,u=592,d=0,f=1,m=2,h=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],g=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],y=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],v=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];n.exports=function(S,w,T,C,A,F,L,j){var z=j.bits,M=0,k=0,I=0,U=0,G=0,Y=0,Z=0,B=0,V=0,H=0,X,ne,se,ye,qe,ge=null,oe=0,ve,De=new a.Buf16(l+1),Ze=new a.Buf16(l+1),je=null,rt=0,Tt,ae,J;for(M=0;M<=l;M++)De[M]=0;for(k=0;k<C;k++)De[w[T+k]]++;for(G=z,U=l;U>=1&&De[U]===0;U--);if(G>U&&(G=U),U===0)return A[F++]=1<<24|64<<16|0,A[F++]=1<<24|64<<16|0,j.bits=1,0;for(I=1;I<U&&De[I]===0;I++);for(G<I&&(G=I),B=1,M=1;M<=l;M++)if(B<<=1,B-=De[M],B<0)return-1;if(B>0&&(S===d||U!==1))return-1;for(Ze[1]=0,M=1;M<l;M++)Ze[M+1]=Ze[M]+De[M];for(k=0;k<C;k++)w[T+k]!==0&&(L[Ze[w[T+k]]++]=k);if(S===d?(ge=je=L,ve=19):S===f?(ge=h,oe-=257,je=g,rt-=257,ve=256):(ge=y,je=v,ve=-1),H=0,k=0,M=I,qe=F,Y=G,Z=0,se=-1,V=1<<G,ye=V-1,S===f&&V>c||S===m&&V>u)return 1;for(;;){Tt=M-Z,L[k]<ve?(ae=0,J=L[k]):L[k]>ve?(ae=je[rt+L[k]],J=ge[oe+L[k]]):(ae=96,J=0),X=1<<M-Z,ne=1<<Y,I=ne;do ne-=X,A[qe+(H>>Z)+ne]=Tt<<24|ae<<16|J|0;while(ne!==0);for(X=1<<M-1;H&X;)X>>=1;if(X!==0?(H&=X-1,H+=X):H=0,k++,--De[M]===0){if(M===U)break;M=w[T+L[k]]}if(M>G&&(H&ye)!==se){for(Z===0&&(Z=G),qe+=I,Y=M-Z,B=1<<Y;Y+Z<U&&(B-=De[Y+Z],!(B<=0));)Y++,B<<=1;if(V+=1<<Y,S===f&&V>c||S===m&&V>u)return 1;se=H&ye,A[se]=G<<24|Y<<16|qe-F|0}}return H!==0&&(A[qe+H]=M-Z<<24|64<<16|0),j.bits=G,0}},{"../utils/common":1}],10:[function(o,n,s){"use strict";n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],11:[function(o,n,s){"use strict";function a(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}n.exports=a},{}],"/lib/inflate.js":[function(o,n,s){"use strict";var a=o("./zlib/inflate"),l=o("./utils/common"),c=o("./utils/strings"),u=o("./zlib/constants"),d=o("./zlib/messages"),f=o("./zlib/zstream"),m=o("./zlib/gzheader"),h=Object.prototype.toString;function g(b){if(!(this instanceof g))return new g(b);this.options=l.assign({chunkSize:16384,windowBits:0,to:""},b||{});var S=this.options;S.raw&&S.windowBits>=0&&S.windowBits<16&&(S.windowBits=-S.windowBits,S.windowBits===0&&(S.windowBits=-15)),S.windowBits>=0&&S.windowBits<16&&!(b&&b.windowBits)&&(S.windowBits+=32),S.windowBits>15&&S.windowBits<48&&(S.windowBits&15)===0&&(S.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var w=a.inflateInit2(this.strm,S.windowBits);if(w!==u.Z_OK)throw new Error(d[w]);if(this.header=new m,a.inflateGetHeader(this.strm,this.header),S.dictionary&&(typeof S.dictionary=="string"?S.dictionary=c.string2buf(S.dictionary):h.call(S.dictionary)==="[object ArrayBuffer]"&&(S.dictionary=new Uint8Array(S.dictionary)),S.raw&&(w=a.inflateSetDictionary(this.strm,S.dictionary),w!==u.Z_OK)))throw new Error(d[w])}g.prototype.push=function(b,S){var w=this.strm,T=this.options.chunkSize,C=this.options.dictionary,A,F,L,j,z,M=!1;if(this.ended)return!1;F=S===~~S?S:S===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof b=="string"?w.input=c.binstring2buf(b):h.call(b)==="[object ArrayBuffer]"?w.input=new Uint8Array(b):w.input=b,w.next_in=0,w.avail_in=w.input.length;do{if(w.avail_out===0&&(w.output=new l.Buf8(T),w.next_out=0,w.avail_out=T),A=a.inflate(w,u.Z_NO_FLUSH),A===u.Z_NEED_DICT&&C&&(A=a.inflateSetDictionary(this.strm,C)),A===u.Z_BUF_ERROR&&M===!0&&(A=u.Z_OK,M=!1),A!==u.Z_STREAM_END&&A!==u.Z_OK)return this.onEnd(A),this.ended=!0,!1;w.next_out&&(w.avail_out===0||A===u.Z_STREAM_END||w.avail_in===0&&(F===u.Z_FINISH||F===u.Z_SYNC_FLUSH))&&(this.options.to==="string"?(L=c.utf8border(w.output,w.next_out),j=w.next_out-L,z=c.buf2string(w.output,L),w.next_out=j,w.avail_out=T-j,j&&l.arraySet(w.output,w.output,L,j,0),this.onData(z)):this.onData(l.shrinkBuf(w.output,w.next_out))),w.avail_in===0&&w.avail_out===0&&(M=!0)}while((w.avail_in>0||w.avail_out===0)&&A!==u.Z_STREAM_END);return A===u.Z_STREAM_END&&(F=u.Z_FINISH),F===u.Z_FINISH?(A=a.inflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===u.Z_OK):(F===u.Z_SYNC_FLUSH&&(this.onEnd(u.Z_OK),w.avail_out=0),!0)},g.prototype.onData=function(b){this.chunks.push(b)},g.prototype.onEnd=function(b){b===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg};function y(b,S){var w=new g(S);if(w.push(b,!0),w.err)throw w.msg||d[w.err];return w.result}function v(b,S){return S=S||{},S.raw=!0,y(b,S)}s.Inflate=g,s.inflate=y,s.inflateRaw=v,s.ungzip=y},{"./utils/common":1,"./utils/strings":2,"./zlib/constants":4,"./zlib/gzheader":6,"./zlib/inflate":8,"./zlib/messages":10,"./zlib/zstream":11}]},{},[])("/lib/inflate.js")})();var L8e=globalThis.fetch,rx=class{constructor(e,t={},r){this.type=e,this.detail=t,this.msg=r,Object.defineProperty(this,"__mayPropagate",{enumerable:!1,writable:!0}),this.__mayPropagate=!0}preventDefault(){}stopPropagation(){this.__mayPropagate=!1}valueOf(){return this}toString(){return this.msg?`[${this.type} event]: ${this.msg}`:`[${this.type} event]`}},jge=class{constructor(){this.listeners={}}addEventListener(e,t,r){let o=this.listeners[e]||[];r?o.unshift(t):o.push(t),this.listeners[e]=o}removeEventListener(e,t){let r=this.listeners[e]||[],o=r.findIndex(n=>n===t);o>-1&&(r.splice(o,1),this.listeners[e]=r)}dispatch(e){let t=this.listeners[e.type];if(t)for(let r=0,o=t.length;r<o&&e.__mayPropagate;r++)t[r](e)}},zge=new Date("1904-01-01T00:00:00+0000").getTime();function Uge(e){return Array.from(e).map(t=>String.fromCharCode(t)).join("")}var Hge=class{constructor(e,t,r){this.name=(r||e.tag||"").trim(),this.length=e.length,this.start=e.offset,this.offset=0,this.data=t,["getInt8","getUint8","getInt16","getUint16","getInt32","getUint32","getBigInt64","getBigUint64"].forEach(o=>{let n=o.replace(/get(Big)?/,"").toLowerCase(),s=parseInt(o.replace(/[^\d]/g,""))/8;Object.defineProperty(this,n,{get:()=>this.getValue(o,s)})})}get currentPosition(){return this.start+this.offset}set currentPosition(e){this.start=e,this.offset=0}skip(e=0,t=8){this.offset+=e*t/8}getValue(e,t){let r=this.start+this.offset;this.offset+=t;try{return this.data[e](r)}catch(o){throw console.error("parser",e,t,this),console.error("parser",this.start,this.offset),o}}flags(e){if(e===8||e===16||e===32||e===64)return this[`uint${e}`].toString(2).padStart(e,0).split("").map(t=>t==="1");console.error("Error parsing flags: flag types can only be 1, 2, 4, or 8 bytes long"),console.trace()}get tag(){let e=this.uint32;return Uge([e>>24&255,e>>16&255,e>>8&255,e&255])}get fixed(){let e=this.int16,t=Math.round(1e3*this.uint16/65356);return e+t/1e3}get legacyFixed(){let e=this.uint16,t=this.uint16.toString(16).padStart(4,0);return parseFloat(`${e}.${t}`)}get uint24(){return(this.uint8<<16)+(this.uint8<<8)+this.uint8}get uint128(){let e=0;for(let t=0;t<5;t++){let r=this.uint8;if(e=e*128+(r&127),r<128)break}return e}get longdatetime(){return new Date(zge+1e3*parseInt(this.int64.toString()))}get fword(){return this.int16}get ufword(){return this.uint16}get Offset16(){return this.uint16}get Offset32(){return this.uint32}get F2DOT14(){let e=p.uint16,t=[0,1,-2,-1][e>>14],r=e&16383;return t+r/16384}verifyLength(){this.offset!=this.length&&console.error(`unexpected parsed table size (${this.offset}) for "${this.name}" (expected ${this.length})`)}readBytes(e=0,t=0,r=8,o=!1){if(e=e||this.length,e===0)return[];t&&(this.currentPosition=t);let n=`${o?"":"u"}int${r}`,s=[];for(;e--;)s.push(this[n]);return s}},pr=class{constructor(e){Object.defineProperty(this,"parser",{enumerable:!1,get:()=>e});let r=e.currentPosition;Object.defineProperty(this,"start",{enumerable:!1,get:()=>r})}load(e){Object.keys(e).forEach(t=>{let r=Object.getOwnPropertyDescriptor(e,t);r.get?this[t]=r.get.bind(this):r.value!==void 0&&(this[t]=r.value)}),this.parser.length&&this.parser.verifyLength()}},We=class extends pr{constructor(e,t,r){let{parser:o,start:n}=super(new Hge(e,t,r));Object.defineProperty(this,"p",{enumerable:!1,get:()=>o}),Object.defineProperty(this,"tableStart",{enumerable:!1,get:()=>n})}};function we(e,t,r){let o;Object.defineProperty(e,t,{get:()=>o||(o=r(),o),enumerable:!0})}var Gge=class extends We{constructor(e,t,r){let{p:o}=super({offset:0,length:12},t,"sfnt");this.version=o.uint32,this.numTables=o.uint16,this.searchRange=o.uint16,this.entrySelector=o.uint16,this.rangeShift=o.uint16,o.verifyLength(),this.directory=[...new Array(this.numTables)].map(n=>new Wge(o)),this.tables={},this.directory.forEach(n=>{let s=()=>r(this.tables,{tag:n.tag,offset:n.offset,length:n.length},t);we(this.tables,n.tag.trim(),s)})}},Wge=class{constructor(e){this.tag=e.tag,this.checksum=e.uint32,this.offset=e.uint32,this.length=e.uint32}},jj=Vj.inflate||void 0,zj=void 0,Yge=class extends We{constructor(e,t,r){let{p:o}=super({offset:0,length:44},t,"woff");this.signature=o.tag,this.flavor=o.uint32,this.length=o.uint32,this.numTables=o.uint16,o.uint16,this.totalSfntSize=o.uint32,this.majorVersion=o.uint16,this.minorVersion=o.uint16,this.metaOffset=o.uint32,this.metaLength=o.uint32,this.metaOrigLength=o.uint32,this.privOffset=o.uint32,this.privLength=o.uint32,o.verifyLength(),this.directory=[...new Array(this.numTables)].map(n=>new qge(o)),Zge(this,t,r)}},qge=class{constructor(e){this.tag=e.tag,this.offset=e.uint32,this.compLength=e.uint32,this.origLength=e.uint32,this.origChecksum=e.uint32}};function Zge(e,t,r){e.tables={},e.directory.forEach(o=>{we(e.tables,o.tag.trim(),()=>{let n=0,s=t;if(o.compLength!==o.origLength){let a=t.buffer.slice(o.offset,o.offset+o.compLength),l;if(jj)l=jj(new Uint8Array(a));else if(zj)l=zj(new Uint8Array(a));else{let c="no brotli decoder available to decode WOFF2 font";throw font.onerror&&font.onerror(c),new Error(c)}s=new DataView(l.buffer)}else n=o.offset;return r(e.tables,{tag:o.tag,offset:n,length:o.origLength},s)})})}var Uj=Mj,Hj=void 0,Kge=class extends We{constructor(e,t,r){let{p:o}=super({offset:0,length:48},t,"woff2");this.signature=o.tag,this.flavor=o.uint32,this.length=o.uint32,this.numTables=o.uint16,o.uint16,this.totalSfntSize=o.uint32,this.totalCompressedSize=o.uint32,this.majorVersion=o.uint16,this.minorVersion=o.uint16,this.metaOffset=o.uint32,this.metaLength=o.uint32,this.metaOrigLength=o.uint32,this.privOffset=o.uint32,this.privLength=o.uint32,o.verifyLength(),this.directory=[...new Array(this.numTables)].map(l=>new Xge(o));let n=o.currentPosition;this.directory[0].offset=0,this.directory.forEach((l,c)=>{let u=this.directory[c+1];u&&(u.offset=l.offset+(l.transformLength!==void 0?l.transformLength:l.origLength))});let s,a=t.buffer.slice(n);if(Uj)s=Uj(new Uint8Array(a));else if(Hj)s=new Uint8Array(Hj(a));else{let l="no brotli decoder available to decode WOFF2 font";throw e.onerror&&e.onerror(l),new Error(l)}Qge(this,s,r)}},Xge=class{constructor(e){this.flags=e.uint8;let t=this.tagNumber=this.flags&63;t===63?this.tag=e.tag:this.tag=Jge(t);let o=(this.transformVersion=(this.flags&192)>>6)!==0;(this.tag==="glyf"||this.tag==="loca")&&(o=this.transformVersion!==3),this.origLength=e.uint128,o&&(this.transformLength=e.uint128)}};function Qge(e,t,r){e.tables={},e.directory.forEach(o=>{we(e.tables,o.tag.trim(),()=>{let n=o.offset,s=n+(o.transformLength?o.transformLength:o.origLength),a=new DataView(t.slice(n,s).buffer);try{return r(e.tables,{tag:o.tag,offset:0,length:o.origLength},a)}catch(l){console.error(l)}})})}function Jge(e){return["cmap","head","hhea","hmtx","maxp","name","OS/2","post","cvt ","fpgm","glyf","loca","prep","CFF ","VORG","EBDT","EBLC","gasp","hdmx","kern","LTSH","PCLT","VDMX","vhea","vmtx","BASE","GDEF","GPOS","GSUB","EBSC","JSTF","MATH","CBDT","CBLC","COLR","CPAL","SVG ","sbix","acnt","avar","bdat","bloc","bsln","cvar","fdsc","feat","fmtx","fvar","gvar","hsty","just","lcar","mort","morx","opbd","prop","trak","Zapf","Silf","Glat","Gloc","Feat","Sill"][e&63]}var Xj={},Qj=!1;Promise.all([Promise.resolve().then(function(){return Pve}),Promise.resolve().then(function(){return Eve}),Promise.resolve().then(function(){return Rve}),Promise.resolve().then(function(){return Fve}),Promise.resolve().then(function(){return Bve}),Promise.resolve().then(function(){return jve}),Promise.resolve().then(function(){return Uve}),Promise.resolve().then(function(){return Gve}),Promise.resolve().then(function(){return eye}),Promise.resolve().then(function(){return dye}),Promise.resolve().then(function(){return Jye}),Promise.resolve().then(function(){return ebe}),Promise.resolve().then(function(){return nbe}),Promise.resolve().then(function(){return lbe}),Promise.resolve().then(function(){return ube}),Promise.resolve().then(function(){return fbe}),Promise.resolve().then(function(){return hbe}),Promise.resolve().then(function(){return vbe}),Promise.resolve().then(function(){return bbe}),Promise.resolve().then(function(){return _be}),Promise.resolve().then(function(){return xbe}),Promise.resolve().then(function(){return Cbe}),Promise.resolve().then(function(){return Ebe}),Promise.resolve().then(function(){return Obe}),Promise.resolve().then(function(){return Ibe}),Promise.resolve().then(function(){return Nbe}),Promise.resolve().then(function(){return Dbe}),Promise.resolve().then(function(){return Mbe}),Promise.resolve().then(function(){return jbe}),Promise.resolve().then(function(){return Hbe}),Promise.resolve().then(function(){return Kbe}),Promise.resolve().then(function(){return $be}),Promise.resolve().then(function(){return r0e}),Promise.resolve().then(function(){return i0e}),Promise.resolve().then(function(){return l0e}),Promise.resolve().then(function(){return u0e}),Promise.resolve().then(function(){return m0e}),Promise.resolve().then(function(){return h0e}),Promise.resolve().then(function(){return S0e}),Promise.resolve().then(function(){return w0e}),Promise.resolve().then(function(){return C0e})]).then(e=>{e.forEach(t=>{let r=Object.keys(t)[0];Xj[r]=t[r]}),Qj=!0});function $ge(e,t,r){let o=t.tag.replace(/[^\w\d]/g,""),n=Xj[o];return n?new n(t,r,e):(console.warn(`lib-font has no definition for ${o}. The table was skipped.`),{})}function eve(){let e=0;function t(r,o){if(!Qj)return e>10?o(new Error("loading took too long")):(e++,setTimeout(()=>t(r),250));r($ge)}return new Promise((r,o)=>t(r))}function tve(e,t){let r=e.lastIndexOf("."),o=(e.substring(r+1)||"").toLowerCase(),n={ttf:"truetype",otf:"opentype",woff:"woff",woff2:"woff2"}[o];if(n)return n;let s={eot:"The .eot format is not supported: it died in January 12, 2016, when Microsoft retired all versions of IE that didn't already support WOFF.",svg:"The .svg format is not supported: SVG fonts (not to be confused with OpenType with embedded SVG) were so bad we took the entire fonts chapter out of the SVG specification again.",fon:"The .fon format is not supported: this is an ancient Windows bitmap font format.",ttc:"Based on the current CSS specification, font collections are not (yet?) supported."}[o];if(s||(s=`${e} is not a known webfont format.`),t)throw new Error(s);console.warn(`Could not load font: ${s}`)}async function rve(e,t,r={}){if(!globalThis.document)return;let o=tve(t,r.errorOnStyle);if(!o)return;let n=document.createElement("style");n.className="injected-by-Font-js";let s=[];return r.styleRules&&(s=Object.entries(r.styleRules).map(([a,l])=>`${a}: ${l};`)),n.textContent=`
@font-face {
font-family: "${e}";
${s.join(`
`)}
src: url("${t}") format("${o}");
}`,globalThis.document.head.appendChild(n),n}var ove=[0,1,0,0],nve=[79,84,84,79],sve=[119,79,70,70],ive=[119,79,70,50];function ox(e,t){if(e.length===t.length){for(let r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function ave(e){let t=[e.getUint8(0),e.getUint8(1),e.getUint8(2),e.getUint8(3)];if(ox(t,ove)||ox(t,nve))return"SFNT";if(ox(t,sve))return"WOFF";if(ox(t,ive))return"WOFF2"}function lve(e){if(!e.ok)throw new Error(`HTTP ${e.status} - ${e.statusText}`);return e}var sx=class extends jge{constructor(e,t={}){super(),this.name=e,this.options=t,this.metrics=!1}get src(){return this.__src}set src(e){this.__src=e,(async()=>(globalThis.document&&!this.options.skipStyleSheet&&await rve(this.name,e,this.options),this.loadFont(e)))()}async loadFont(e,t){fetch(e).then(r=>lve(r)&&r.arrayBuffer()).then(r=>this.fromDataBuffer(r,t||e)).catch(r=>{let o=new rx("error",r,`Failed to load font at ${t||e}`);this.dispatch(o),this.onerror&&this.onerror(o)})}async fromDataBuffer(e,t){this.fontData=new DataView(e);let r=ave(this.fontData);if(!r)throw new Error(`${t} is either an unsupported font format, or not a font at all.`);await this.parseBasicData(r);let o=new rx("load",{font:this});this.dispatch(o),this.onload&&this.onload(o)}async parseBasicData(e){return eve().then(t=>(e==="SFNT"&&(this.opentype=new Gge(this,this.fontData,t)),e==="WOFF"&&(this.opentype=new Yge(this,this.fontData,t)),e==="WOFF2"&&(this.opentype=new Kge(this,this.fontData,t)),this.opentype))}getGlyphId(e){return this.opentype.tables.cmap.getGlyphId(e)}reverse(e){return this.opentype.tables.cmap.reverse(e)}supports(e){return this.getGlyphId(e)!==0}supportsVariation(e){return this.opentype.tables.cmap.supportsVariation(e)!==!1}measureText(e,t=16){if(this.__unloaded)throw new Error("Cannot measure text: font was unloaded. Please reload before calling measureText()");let r=document.createElement("div");r.textContent=e,r.style.fontFamily=this.name,r.style.fontSize=`${t}px`,r.style.color="transparent",r.style.background="transparent",r.style.top="0",r.style.left="0",r.style.position="absolute",document.body.appendChild(r);let o=r.getBoundingClientRect();document.body.removeChild(r);let n=this.opentype.tables["OS/2"];return o.fontSize=t,o.ascender=n.sTypoAscender,o.descender=n.sTypoDescender,o}unload(){if(this.styleElement.parentNode){this.styleElement.parentNode.removeElement(this.styleElement);let e=new rx("unload",{font:this});this.dispatch(e),this.onunload&&this.onunload(e)}this._unloaded=!0}load(){if(this.__unloaded){delete this.__unloaded,document.head.appendChild(this.styleElement);let e=new rx("load",{font:this});this.dispatch(e),this.onload&&this.onload(e)}}};globalThis.Font=sx;var Zl=class extends pr{constructor(e,t,r){super(e),this.plaformID=t,this.encodingID=r}},cve=class extends Zl{constructor(e,t,r){super(e,t,r),this.format=0,this.length=e.uint16,this.language=e.uint16,this.glyphIdArray=[...new Array(256)].map(o=>e.uint8)}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 0. only supports(id) is implemented.")),0<=e&&e<=255}reverse(e){return console.warn("reverse not implemented for cmap subtable format 0"),{}}getSupportedCharCodes(){return[{start:1,end:256}]}},uve=class extends Zl{constructor(e,t,r){super(e,t,r),this.format=2,this.length=e.uint16,this.language=e.uint16,this.subHeaderKeys=[...new Array(256)].map(a=>e.uint16);let o=Math.max(...this.subHeaderKeys),n=e.currentPosition;we(this,"subHeaders",()=>(e.currentPosition=n,[...new Array(o)].map(a=>new dve(e))));let s=n+o*8;we(this,"glyphIndexArray",()=>(e.currentPosition=s,[...new Array(o)].map(a=>e.uint16)))}supports(e){e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 2. only supports(id) is implemented."));let t=e&&255,r=e&&65280,o=this.subHeaders[r],n=this.subHeaders[o],s=n.firstCode,a=s+n.entryCount;return s<=t&&t<=a}reverse(e){return console.warn("reverse not implemented for cmap subtable format 2"),{}}getSupportedCharCodes(e=!1){return e?this.subHeaders.map(t=>({firstCode:t.firstCode,lastCode:t.lastCode})):this.subHeaders.map(t=>({start:t.firstCode,end:t.lastCode}))}},dve=class{constructor(e){this.firstCode=e.uint16,this.entryCount=e.uint16,this.lastCode=this.first+this.entryCount,this.idDelta=e.int16,this.idRangeOffset=e.uint16}},fve=class extends Zl{constructor(e,t,r){super(e,t,r),this.format=4,this.length=e.uint16,this.language=e.uint16,this.segCountX2=e.uint16,this.segCount=this.segCountX2/2,this.searchRange=e.uint16,this.entrySelector=e.uint16,this.rangeShift=e.uint16;let o=e.currentPosition;we(this,"endCode",()=>e.readBytes(this.segCount,o,16));let n=o+2+this.segCountX2;we(this,"startCode",()=>e.readBytes(this.segCount,n,16));let s=n+this.segCountX2;we(this,"idDelta",()=>e.readBytes(this.segCount,s,16,!0));let a=s+this.segCountX2;we(this,"idRangeOffset",()=>e.readBytes(this.segCount,a,16));let l=a+this.segCountX2,c=this.length-(l-this.tableStart);we(this,"glyphIdArray",()=>e.readBytes(c,l,16)),we(this,"segments",()=>this.buildSegments(a,l,e))}buildSegments(e,t,r){let o=(n,s)=>{let a=this.startCode[s],l=this.endCode[s],c=this.idDelta[s],u=this.idRangeOffset[s],d=e+2*s,f=[];if(u===0)for(let m=a+c,h=l+c;m<=h;m++)f.push(m);else for(let m=0,h=l-a;m<=h;m++)r.currentPosition=d+u+m*2,f.push(r.uint16);return{startCode:a,endCode:l,idDelta:c,idRangeOffset:u,glyphIDs:f}};return[...new Array(this.segCount)].map(o)}reverse(e){let t=this.segments.find(o=>o.glyphIDs.includes(e));if(!t)return{};let r=t.startCode+t.glyphIDs.indexOf(e);return{code:r,unicode:String.fromCodePoint(r)}}getGlyphId(e){if(e.charCodeAt&&(e=e.charCodeAt(0)),55296<=e&&e<=57343||(e&65534)===65534||(e&65535)===65535)return 0;let t=this.segments.find(r=>r.startCode<=e&&e<=r.endCode);return t?t.glyphIDs[e-t.startCode]:0}supports(e){return this.getGlyphId(e)!==0}getSupportedCharCodes(e=!1){return e?this.segments:this.segments.map(t=>({start:t.startCode,end:t.endCode}))}},mve=class extends Zl{constructor(e,t,r){super(e,t,r),this.format=6,this.length=e.uint16,this.language=e.uint16,this.firstCode=e.uint16,this.entryCount=e.uint16,this.lastCode=this.firstCode+this.entryCount-1,we(this,"glyphIdArray",()=>[...new Array(this.entryCount)].map(n=>e.uint16))}supports(e){if(e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 6. only supports(id) is implemented.")),e<this.firstCode)return{};if(e>this.firstCode+this.entryCount)return{};let t=e-this.firstCode;return{code:t,unicode:String.fromCodePoint(t)}}reverse(e){let t=this.glyphIdArray.indexOf(e);if(t>-1)return this.firstCode+t}getSupportedCharCodes(e=!1){return e?[{firstCode:this.firstCode,lastCode:this.lastCode}]:[{start:this.firstCode,end:this.lastCode}]}},pve=class extends Zl{constructor(e,t,r){super(e,t,r),this.format=8,e.uint16,this.length=e.uint32,this.language=e.uint32,this.is32=[...new Array(8192)].map(n=>e.uint8),this.numGroups=e.uint32,we(this,"groups",()=>[...new Array(this.numGroups)].map(n=>new hve(e)))}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 8. only supports(id) is implemented.")),this.groups.findIndex(t=>t.startcharCode<=e&&e<=t.endcharCode)!==-1}reverse(e){return console.warn("reverse not implemented for cmap subtable format 8"),{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map(t=>({start:t.startcharCode,end:t.endcharCode}))}},hve=class{constructor(e){this.startcharCode=e.uint32,this.endcharCode=e.uint32,this.startGlyphID=e.uint32}},gve=class extends Zl{constructor(e,t,r){super(e,t,r),this.format=10,e.uint16,this.length=e.uint32,this.language=e.uint32,this.startCharCode=e.uint32,this.numChars=e.uint32,this.endCharCode=this.startCharCode+this.numChars,we(this,"glyphs",()=>[...new Array(this.numChars)].map(n=>e.uint16))}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 10. only supports(id) is implemented.")),e<this.startCharCode||e>this.startCharCode+this.numChars?!1:e-this.startCharCode}reverse(e){return console.warn("reverse not implemented for cmap subtable format 10"),{}}getSupportedCharCodes(e=!1){return e?[{startCharCode:this.startCharCode,endCharCode:this.endCharCode}]:[{start:this.startCharCode,end:this.endCharCode}]}},vve=class extends Zl{constructor(e,t,r){super(e,t,r),this.format=12,e.uint16,this.length=e.uint32,this.language=e.uint32,this.numGroups=e.uint32,we(this,"groups",()=>[...new Array(this.numGroups)].map(n=>new yve(e)))}supports(e){return e.charCodeAt&&(e=e.charCodeAt(0)),55296<=e&&e<=57343||(e&65534)===65534||(e&65535)===65535?0:this.groups.findIndex(t=>t.startCharCode<=e&&e<=t.endCharCode)!==-1}reverse(e){for(let t of this.groups){let r=t.startGlyphID;if(r>e)continue;if(r===e)return t.startCharCode;if(r+(t.endCharCode-t.startCharCode)<e)continue;let n=t.startCharCode+(e-r);return{code:n,unicode:String.fromCodePoint(n)}}return{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map(t=>({start:t.startCharCode,end:t.endCharCode}))}},yve=class{constructor(e){this.startCharCode=e.uint32,this.endCharCode=e.uint32,this.startGlyphID=e.uint32}},bve=class extends Zl{constructor(e,t,r){super(e,t,r),this.format=13,e.uint16,this.length=e.uint32,this.language=e.uint32,this.numGroups=e.uint32;let o=[...new Array(this.numGroups)].map(n=>new Sve(e));we(this,"groups",o)}supports(e){return e.charCodeAt&&(e=e.charCodeAt(0)),this.groups.findIndex(t=>t.startCharCode<=e&&e<=t.endCharCode)!==-1}reverse(e){return console.warn("reverse not implemented for cmap subtable format 13"),{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map(t=>({start:t.startCharCode,end:t.endCharCode}))}},Sve=class{constructor(e){this.startCharCode=e.uint32,this.endCharCode=e.uint32,this.glyphID=e.uint32}},_ve=class extends Zl{constructor(e,t,r){super(e,t,r),this.subTableStart=e.currentPosition,this.format=14,this.length=e.uint32,this.numVarSelectorRecords=e.uint32,we(this,"varSelectors",()=>[...new Array(this.numVarSelectorRecords)].map(o=>new wve(e)))}supports(){return console.warn("supports not implemented for cmap subtable format 14"),0}getSupportedCharCodes(){return console.warn("getSupportedCharCodes not implemented for cmap subtable format 14"),[]}reverse(e){return console.warn("reverse not implemented for cmap subtable format 14"),{}}supportsVariation(e){let t=this.varSelector.find(r=>r.varSelector===e);return t||!1}getSupportedVariations(){return this.varSelectors.map(e=>e.varSelector)}},wve=class{constructor(e){this.varSelector=e.uint24,this.defaultUVSOffset=e.Offset32,this.nonDefaultUVSOffset=e.Offset32}};function xve(e,t,r){let o=e.uint16;return o===0?new cve(e,t,r):o===2?new uve(e,t,r):o===4?new fve(e,t,r):o===6?new mve(e,t,r):o===8?new pve(e,t,r):o===10?new gve(e,t,r):o===12?new vve(e,t,r):o===13?new bve(e,t,r):o===14?new _ve(e,t,r):{}}var Tve=class extends We{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numTables=r.uint16,this.encodingRecords=[...new Array(this.numTables)].map(o=>new Cve(r,this.tableStart))}getSubTable(e){return this.encodingRecords[e].table}getSupportedEncodings(){return this.encodingRecords.map(e=>({platformID:e.platformID,encodingId:e.encodingID}))}getSupportedCharCodes(e,t){let r=this.encodingRecords.findIndex(n=>n.platformID===e&&n.encodingID===t);return r===-1?!1:this.getSubTable(r).getSupportedCharCodes()}reverse(e){for(let t=0;t<this.numTables;t++){let r=this.getSubTable(t).reverse(e);if(r)return r}}getGlyphId(e){let t=0;return this.encodingRecords.some((r,o)=>{let n=this.getSubTable(o);return n.getGlyphId?(t=n.getGlyphId(e),t!==0):!1}),t}supports(e){return this.encodingRecords.some((t,r)=>{let o=this.getSubTable(r);return o.supports&&o.supports(e)!==!1})}supportsVariation(e){return this.encodingRecords.some((t,r)=>{let o=this.getSubTable(r);return o.supportsVariation&&o.supportsVariation(e)!==!1})}},Cve=class{constructor(e,t){let r=this.platformID=e.uint16,o=this.encodingID=e.uint16,n=this.offset=e.Offset32;we(this,"table",()=>(e.currentPosition=t+n,xve(e,r,o)))}},Pve=Object.freeze({__proto__:null,cmap:Tve}),kve=class extends We{constructor(e,t){let{p:r}=super(e,t);this.load({majorVersion:r.uint16,minorVersion:r.uint16,fontRevision:r.fixed,checkSumAdjustment:r.uint32,magicNumber:r.uint32,flags:r.flags(16),unitsPerEm:r.uint16,created:r.longdatetime,modified:r.longdatetime,xMin:r.int16,yMin:r.int16,xMax:r.int16,yMax:r.int16,macStyle:r.flags(16),lowestRecPPEM:r.uint16,fontDirectionHint:r.uint16,indexToLocFormat:r.uint16,glyphDataFormat:r.uint16})}},Eve=Object.freeze({__proto__:null,head:kve}),Ave=class extends We{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.ascender=r.fword,this.descender=r.fword,this.lineGap=r.fword,this.advanceWidthMax=r.ufword,this.minLeftSideBearing=r.fword,this.minRightSideBearing=r.fword,this.xMaxExtent=r.fword,this.caretSlopeRise=r.int16,this.caretSlopeRun=r.int16,this.caretOffset=r.int16,r.int16,r.int16,r.int16,r.int16,this.metricDataFormat=r.int16,this.numberOfHMetrics=r.uint16,r.verifyLength()}},Rve=Object.freeze({__proto__:null,hhea:Ave}),Ove=class extends We{constructor(e,t,r){let{p:o}=super(e,t),n=r.hhea.numberOfHMetrics,s=r.maxp.numGlyphs,a=o.currentPosition;if(we(this,"hMetrics",()=>(o.currentPosition=a,[...new Array(n)].map(l=>new Ive(o.uint16,o.int16)))),n<s){let l=a+n*4;we(this,"leftSideBearings",()=>(o.currentPosition=l,[...new Array(s-n)].map(c=>o.int16)))}}},Ive=class{constructor(e,t){this.advanceWidth=e,this.lsb=t}},Fve=Object.freeze({__proto__:null,hmtx:Ove}),Nve=class extends We{constructor(e,t){let{p:r}=super(e,t);this.version=r.legacyFixed,this.numGlyphs=r.uint16,this.version===1&&(this.maxPoints=r.uint16,this.maxContours=r.uint16,this.maxCompositePoints=r.uint16,this.maxCompositeContours=r.uint16,this.maxZones=r.uint16,this.maxTwilightPoints=r.uint16,this.maxStorage=r.uint16,this.maxFunctionDefs=r.uint16,this.maxInstructionDefs=r.uint16,this.maxStackElements=r.uint16,this.maxSizeOfInstructions=r.uint16,this.maxComponentElements=r.uint16,this.maxComponentDepth=r.uint16),r.verifyLength()}},Bve=Object.freeze({__proto__:null,maxp:Nve}),Dve=class extends We{constructor(e,t){let{p:r}=super(e,t);this.format=r.uint16,this.count=r.uint16,this.stringOffset=r.Offset16,this.nameRecords=[...new Array(this.count)].map(o=>new Mve(r,this)),this.format===1&&(this.langTagCount=r.uint16,this.langTagRecords=[...new Array(this.langTagCount)].map(o=>new Lve(r.uint16,r.Offset16))),this.stringStart=this.tableStart+this.stringOffset}get(e){let t=this.nameRecords.find(r=>r.nameID===e);if(t)return t.string}},Lve=class{constructor(e,t){this.length=e,this.offset=t}},Mve=class{constructor(e,t){this.platformID=e.uint16,this.encodingID=e.uint16,this.languageID=e.uint16,this.nameID=e.uint16,this.length=e.uint16,this.offset=e.Offset16,we(this,"string",()=>(e.currentPosition=t.stringStart+this.offset,Vve(e,this)))}};function Vve(e,t){let{platformID:r,length:o}=t;if(o===0)return"";if(r===0||r===3){let a=[];for(let l=0,c=o/2;l<c;l++)a[l]=String.fromCharCode(e.uint16);return a.join("")}let n=e.readBytes(o),s=[];return n.forEach(function(a,l){s[l]=String.fromCharCode(a)}),s.join("")}var jve=Object.freeze({__proto__:null,name:Dve}),zve=class extends We{constructor(e,t){let{p:r}=super(e,t);if(this.version=r.uint16,this.xAvgCharWidth=r.int16,this.usWeightClass=r.uint16,this.usWidthClass=r.uint16,this.fsType=r.uint16,this.ySubscriptXSize=r.int16,this.ySubscriptYSize=r.int16,this.ySubscriptXOffset=r.int16,this.ySubscriptYOffset=r.int16,this.ySuperscriptXSize=r.int16,this.ySuperscriptYSize=r.int16,this.ySuperscriptXOffset=r.int16,this.ySuperscriptYOffset=r.int16,this.yStrikeoutSize=r.int16,this.yStrikeoutPosition=r.int16,this.sFamilyClass=r.int16,this.panose=[...new Array(10)].map(o=>r.uint8),this.ulUnicodeRange1=r.flags(32),this.ulUnicodeRange2=r.flags(32),this.ulUnicodeRange3=r.flags(32),this.ulUnicodeRange4=r.flags(32),this.achVendID=r.tag,this.fsSelection=r.uint16,this.usFirstCharIndex=r.uint16,this.usLastCharIndex=r.uint16,this.sTypoAscender=r.int16,this.sTypoDescender=r.int16,this.sTypoLineGap=r.int16,this.usWinAscent=r.uint16,this.usWinDescent=r.uint16,this.version===0||(this.ulCodePageRange1=r.flags(32),this.ulCodePageRange2=r.flags(32),this.version===1)||(this.sxHeight=r.int16,this.sCapHeight=r.int16,this.usDefaultChar=r.uint16,this.usBreakChar=r.uint16,this.usMaxContext=r.uint16,this.version<=4)||(this.usLowerOpticalPointSize=r.uint16,this.usUpperOpticalPointSize=r.uint16,this.version===5))return r.verifyLength()}},Uve=Object.freeze({__proto__:null,OS2:zve}),Hve=class extends We{constructor(e,t){let{p:r}=super(e,t);if(this.version=r.legacyFixed,this.italicAngle=r.fixed,this.underlinePosition=r.fword,this.underlineThickness=r.fword,this.isFixedPitch=r.uint32,this.minMemType42=r.uint32,this.maxMemType42=r.uint32,this.minMemType1=r.uint32,this.maxMemType1=r.uint32,this.version===1||this.version===3)return r.verifyLength();if(this.numGlyphs=r.uint16,this.version===2){this.glyphNameIndex=[...new Array(this.numGlyphs)].map(o=>r.uint16),this.namesOffset=r.currentPosition,this.glyphNameOffsets=[1];for(let o=0;o<this.numGlyphs;o++){if(this.glyphNameIndex[o]<Gj.length){this.glyphNameOffsets.push(this.glyphNameOffsets[o]);continue}let s=r.int8;r.skip(s),this.glyphNameOffsets.push(this.glyphNameOffsets[o]+s+1)}}this.version===2.5&&(this.offset=[...new Array(this.numGlyphs)].map(o=>r.int8))}getGlyphName(e){if(this.version!==2)return console.warn(`post table version ${this.version} does not support glyph name lookups`),"";let t=this.glyphNameIndex[e];if(t<258)return Gj[t];let r=this.glyphNameOffsets[e],n=this.glyphNameOffsets[e+1]-r-1;return n===0?".notdef.":(this.parser.currentPosition=this.namesOffset+r,this.parser.readBytes(n,this.namesOffset+r,8,!0).map(a=>String.fromCharCode(a)).join(""))}},Gj=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"],Gve=Object.freeze({__proto__:null,post:Hve}),Wve=class extends We{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.horizAxisOffset=r.Offset16,this.vertAxisOffset=r.Offset16,we(this,"horizAxis",()=>new r6({offset:e.offset+this.horizAxisOffset},t)),we(this,"vertAxis",()=>new r6({offset:e.offset+this.vertAxisOffset},t)),this.majorVersion===1&&this.minorVersion===1&&(this.itemVarStoreOffset=r.Offset32,we(this,"itemVarStore",()=>new r6({offset:e.offset+this.itemVarStoreOffset},t)))}},r6=class extends We{constructor(e,t){let{p:r}=super(e,t,"AxisTable");this.baseTagListOffset=r.Offset16,this.baseScriptListOffset=r.Offset16,we(this,"baseTagList",()=>new Yve({offset:e.offset+this.baseTagListOffset},t)),we(this,"baseScriptList",()=>new qve({offset:e.offset+this.baseScriptListOffset},t))}},Yve=class extends We{constructor(e,t){let{p:r}=super(e,t,"BaseTagListTable");this.baseTagCount=r.uint16,this.baselineTags=[...new Array(this.baseTagCount)].map(o=>r.tag)}},qve=class extends We{constructor(e,t){let{p:r}=super(e,t,"BaseScriptListTable");this.baseScriptCount=r.uint16;let o=r.currentPosition;we(this,"baseScriptRecords",()=>(r.currentPosition=o,[...new Array(this.baseScriptCount)].map(n=>new Zve(this.start,r))))}},Zve=class{constructor(e,t){this.baseScriptTag=t.tag,this.baseScriptOffset=t.Offset16,we(this,"baseScriptTable",()=>(t.currentPosition=e+this.baseScriptOffset,new Kve(t)))}},Kve=class{constructor(e){this.start=e.currentPosition,this.baseValuesOffset=e.Offset16,this.defaultMinMaxOffset=e.Offset16,this.baseLangSysCount=e.uint16,this.baseLangSysRecords=[...new Array(this.baseLangSysCount)].map(t=>new Xve(this.start,e)),we(this,"baseValues",()=>(e.currentPosition=this.start+this.baseValuesOffset,new Qve(e))),we(this,"defaultMinMax",()=>(e.currentPosition=this.start+this.defaultMinMaxOffset,new Jj(e)))}},Xve=class{constructor(e,t){this.baseLangSysTag=t.tag,this.minMaxOffset=t.Offset16,we(this,"minMax",()=>(t.currentPosition=e+this.minMaxOffset,new Jj(t)))}},Qve=class{constructor(e){this.parser=e,this.start=e.currentPosition,this.defaultBaselineIndex=e.uint16,this.baseCoordCount=e.uint16,this.baseCoords=[...new Array(this.baseCoordCount)].map(t=>e.Offset16)}getTable(e){return this.parser.currentPosition=this.start+this.baseCoords[e],new $ve(this.parser)}},Jj=class{constructor(e){this.minCoord=e.Offset16,this.maxCoord=e.Offset16,this.featMinMaxCount=e.uint16;let t=e.currentPosition;we(this,"featMinMaxRecords",()=>(e.currentPosition=t,[...new Array(this.featMinMaxCount)].map(r=>new Jve(e))))}},Jve=class{constructor(e){this.featureTableTag=e.tag,this.minCoord=e.Offset16,this.maxCoord=e.Offset16}},$ve=class{constructor(e){this.baseCoordFormat=e.uint16,this.coordinate=e.int16,this.baseCoordFormat===2&&(this.referenceGlyph=e.uint16,this.baseCoordPoint=e.uint16),this.baseCoordFormat===3&&(this.deviceTable=e.Offset16)}},eye=Object.freeze({__proto__:null,BASE:Wve}),Wj=class{constructor(e){this.classFormat=e.uint16,this.classFormat===1&&(this.startGlyphID=e.uint16,this.glyphCount=e.uint16,this.classValueArray=[...new Array(this.glyphCount)].map(t=>e.uint16)),this.classFormat===2&&(this.classRangeCount=e.uint16,this.classRangeRecords=[...new Array(this.classRangeCount)].map(t=>new tye(e)))}},tye=class{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.class=e.uint16}},ab=class extends pr{constructor(e){super(e),this.coverageFormat=e.uint16,this.coverageFormat===1&&(this.glyphCount=e.uint16,this.glyphArray=[...new Array(this.glyphCount)].map(t=>e.uint16)),this.coverageFormat===2&&(this.rangeCount=e.uint16,this.rangeRecords=[...new Array(this.rangeCount)].map(t=>new rye(e)))}},rye=class{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.startCoverageIndex=e.uint16}},oye=class{constructor(e,t){this.table=e,this.parser=t,this.start=t.currentPosition,this.format=t.uint16,this.variationRegionListOffset=t.Offset32,this.itemVariationDataCount=t.uint16,this.itemVariationDataOffsets=[...new Array(this.itemVariationDataCount)].map(r=>t.Offset32)}},nye=class extends We{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.glyphClassDefOffset=r.Offset16,we(this,"glyphClassDefs",()=>{if(this.glyphClassDefOffset!==0)return r.currentPosition=this.tableStart+this.glyphClassDefOffset,new Wj(r)}),this.attachListOffset=r.Offset16,we(this,"attachList",()=>{if(this.attachListOffset!==0)return r.currentPosition=this.tableStart+this.attachListOffset,new sye(r)}),this.ligCaretListOffset=r.Offset16,we(this,"ligCaretList",()=>{if(this.ligCaretListOffset!==0)return r.currentPosition=this.tableStart+this.ligCaretListOffset,new aye(r)}),this.markAttachClassDefOffset=r.Offset16,we(this,"markAttachClassDef",()=>{if(this.markAttachClassDefOffset!==0)return r.currentPosition=this.tableStart+this.markAttachClassDefOffset,new Wj(r)}),this.minorVersion>=2&&(this.markGlyphSetsDefOffset=r.Offset16,we(this,"markGlyphSetsDef",()=>{if(this.markGlyphSetsDefOffset!==0)return r.currentPosition=this.tableStart+this.markGlyphSetsDefOffset,new uye(r)})),this.minorVersion===3&&(this.itemVarStoreOffset=r.Offset32,we(this,"itemVarStore",()=>{if(this.itemVarStoreOffset!==0)return r.currentPosition=this.tableStart+this.itemVarStoreOffset,new oye(r)}))}},sye=class extends pr{constructor(e){super(e),this.coverageOffset=e.Offset16,this.glyphCount=e.uint16,this.attachPointOffsets=[...new Array(this.glyphCount)].map(t=>e.Offset16)}getPoint(e){return this.parser.currentPosition=this.start+this.attachPointOffsets[e],new iye(this.parser)}},iye=class{constructor(e){this.pointCount=e.uint16,this.pointIndices=[...new Array(this.pointCount)].map(t=>e.uint16)}},aye=class extends pr{constructor(e){super(e),this.coverageOffset=e.Offset16,we(this,"coverage",()=>(e.currentPosition=this.start+this.coverageOffset,new ab(e))),this.ligGlyphCount=e.uint16,this.ligGlyphOffsets=[...new Array(this.ligGlyphCount)].map(t=>e.Offset16)}getLigGlyph(e){return this.parser.currentPosition=this.start+this.ligGlyphOffsets[e],new lye(this.parser)}},lye=class extends pr{constructor(e){super(e),this.caretCount=e.uint16,this.caretValueOffsets=[...new Array(this.caretCount)].map(t=>e.Offset16)}getCaretValue(e){return this.parser.currentPosition=this.start+this.caretValueOffsets[e],new cye(this.parser)}},cye=class{constructor(e){this.caretValueFormat=e.uint16,this.caretValueFormat===1&&(this.coordinate=e.int16),this.caretValueFormat===2&&(this.caretValuePointIndex=e.uint16),this.caretValueFormat===3&&(this.coordinate=e.int16,this.deviceOffset=e.Offset16)}},uye=class extends pr{constructor(e){super(e),this.markGlyphSetTableFormat=e.uint16,this.markGlyphSetCount=e.uint16,this.coverageOffsets=[...new Array(this.markGlyphSetCount)].map(t=>e.Offset32)}getMarkGlyphSet(e){return this.parser.currentPosition=this.start+this.coverageOffsets[e],new ab(this.parser)}},dye=Object.freeze({__proto__:null,GDEF:nye}),Yj=class extends pr{static EMPTY={scriptCount:0,scriptRecords:[]};constructor(e){super(e),this.scriptCount=e.uint16,this.scriptRecords=[...new Array(this.scriptCount)].map(t=>new fye(e))}},fye=class{constructor(e){this.scriptTag=e.tag,this.scriptOffset=e.Offset16}},mye=class extends pr{constructor(e){super(e),this.defaultLangSys=e.Offset16,this.langSysCount=e.uint16,this.langSysRecords=[...new Array(this.langSysCount)].map(t=>new pye(e))}},pye=class{constructor(e){this.langSysTag=e.tag,this.langSysOffset=e.Offset16}},qj=class{constructor(e){this.lookupOrder=e.Offset16,this.requiredFeatureIndex=e.uint16,this.featureIndexCount=e.uint16,this.featureIndices=[...new Array(this.featureIndexCount)].map(t=>e.uint16)}},Zj=class extends pr{static EMPTY={featureCount:0,featureRecords:[]};constructor(e){super(e),this.featureCount=e.uint16,this.featureRecords=[...new Array(this.featureCount)].map(t=>new hye(e))}},hye=class{constructor(e){this.featureTag=e.tag,this.featureOffset=e.Offset16}},gye=class extends pr{constructor(e){super(e),this.featureParams=e.Offset16,this.lookupIndexCount=e.uint16,this.lookupListIndices=[...new Array(this.lookupIndexCount)].map(t=>e.uint16)}getFeatureParams(){if(this.featureParams>0){let e=this.parser;e.currentPosition=this.start+this.featureParams;let t=this.featureTag;if(t==="size")return new yye(e);if(t.startsWith("cc"))return new vye(e);if(t.startsWith("ss"))return new bye(e)}}},vye=class{constructor(e){this.format=e.uint16,this.featUiLabelNameId=e.uint16,this.featUiTooltipTextNameId=e.uint16,this.sampleTextNameId=e.uint16,this.numNamedParameters=e.uint16,this.firstParamUiLabelNameId=e.uint16,this.charCount=e.uint16,this.character=[...new Array(this.charCount)].map(t=>e.uint24)}},yye=class{constructor(e){this.designSize=e.uint16,this.subfamilyIdentifier=e.uint16,this.subfamilyNameID=e.uint16,this.smallEnd=e.uint16,this.largeEnd=e.uint16}},bye=class{constructor(e){this.version=e.uint16,this.UINameID=e.uint16}};function $j(e){e.parser.currentPosition-=2,delete e.coverageOffset,delete e.getCoverageTable}var Rf=class extends pr{constructor(e){super(e),this.substFormat=e.uint16,this.coverageOffset=e.Offset16}getCoverageTable(){let e=this.parser;return e.currentPosition=this.start+this.coverageOffset,new ab(e)}},n6=class{constructor(e){this.glyphSequenceIndex=e.uint16,this.lookupListIndex=e.uint16}},Sye=class extends Rf{constructor(e){super(e),this.deltaGlyphID=e.int16}},_ye=class extends Rf{constructor(e){super(e),this.sequenceCount=e.uint16,this.sequenceOffsets=[...new Array(this.sequenceCount)].map(t=>e.Offset16)}getSequence(e){let t=this.parser;return t.currentPosition=this.start+this.sequenceOffsets[e],new wye(t)}},wye=class{constructor(e){this.glyphCount=e.uint16,this.substituteGlyphIDs=[...new Array(this.glyphCount)].map(t=>e.uint16)}},xye=class extends Rf{constructor(e){super(e),this.alternateSetCount=e.uint16,this.alternateSetOffsets=[...new Array(this.alternateSetCount)].map(t=>e.Offset16)}getAlternateSet(e){let t=this.parser;return t.currentPosition=this.start+this.alternateSetOffsets[e],new Tye(t)}},Tye=class{constructor(e){this.glyphCount=e.uint16,this.alternateGlyphIDs=[...new Array(this.glyphCount)].map(t=>e.uint16)}},Cye=class extends Rf{constructor(e){super(e),this.ligatureSetCount=e.uint16,this.ligatureSetOffsets=[...new Array(this.ligatureSetCount)].map(t=>e.Offset16)}getLigatureSet(e){let t=this.parser;return t.currentPosition=this.start+this.ligatureSetOffsets[e],new Pye(t)}},Pye=class extends pr{constructor(e){super(e),this.ligatureCount=e.uint16,this.ligatureOffsets=[...new Array(this.ligatureCount)].map(t=>e.Offset16)}getLigature(e){let t=this.parser;return t.currentPosition=this.start+this.ligatureOffsets[e],new kye(t)}},kye=class{constructor(e){this.ligatureGlyph=e.uint16,this.componentCount=e.uint16,this.componentGlyphIDs=[...new Array(this.componentCount-1)].map(t=>e.uint16)}},Eye=class extends Rf{constructor(e){super(e),this.substFormat===1&&(this.subRuleSetCount=e.uint16,this.subRuleSetOffsets=[...new Array(this.subRuleSetCount)].map(t=>e.Offset16)),this.substFormat===2&&(this.classDefOffset=e.Offset16,this.subClassSetCount=e.uint16,this.subClassSetOffsets=[...new Array(this.subClassSetCount)].map(t=>e.Offset16)),this.substFormat===3&&($j(this),this.glyphCount=e.uint16,this.substitutionCount=e.uint16,this.coverageOffsets=[...new Array(this.glyphCount)].map(t=>e.Offset16),this.substLookupRecords=[...new Array(this.substitutionCount)].map(t=>new n6(e)))}getSubRuleSet(e){if(this.substFormat!==1)throw new Error(`lookup type 5.${this.substFormat} has no subrule sets.`);let t=this.parser;return t.currentPosition=this.start+this.subRuleSetOffsets[e],new Aye(t)}getSubClassSet(e){if(this.substFormat!==2)throw new Error(`lookup type 5.${this.substFormat} has no subclass sets.`);let t=this.parser;return t.currentPosition=this.start+this.subClassSetOffsets[e],new Rye(t)}getCoverageTable(e){if(this.substFormat!==3&&!e)return super.getCoverageTable();if(!e)throw new Error(`lookup type 5.${this.substFormat} requires an coverage table index.`);let t=this.parser;return t.currentPosition=this.start+this.coverageOffsets[e],new ab(t)}},Aye=class extends pr{constructor(e){super(e),this.subRuleCount=e.uint16,this.subRuleOffsets=[...new Array(this.subRuleCount)].map(t=>e.Offset16)}getSubRule(e){let t=this.parser;return t.currentPosition=this.start+this.subRuleOffsets[e],new ez(t)}},ez=class{constructor(e){this.glyphCount=e.uint16,this.substitutionCount=e.uint16,this.inputSequence=[...new Array(this.glyphCount-1)].map(t=>e.uint16),this.substLookupRecords=[...new Array(this.substitutionCount)].map(t=>new n6(e))}},Rye=class extends pr{constructor(e){super(e),this.subClassRuleCount=e.uint16,this.subClassRuleOffsets=[...new Array(this.subClassRuleCount)].map(t=>e.Offset16)}getSubClass(e){let t=this.parser;return t.currentPosition=this.start+this.subClassRuleOffsets[e],new Oye(t)}},Oye=class extends ez{constructor(e){super(e)}},Iye=class extends Rf{constructor(e){super(e),this.substFormat===1&&(this.chainSubRuleSetCount=e.uint16,this.chainSubRuleSetOffsets=[...new Array(this.chainSubRuleSetCount)].map(t=>e.Offset16)),this.substFormat===2&&(this.backtrackClassDefOffset=e.Offset16,this.inputClassDefOffset=e.Offset16,this.lookaheadClassDefOffset=e.Offset16,this.chainSubClassSetCount=e.uint16,this.chainSubClassSetOffsets=[...new Array(this.chainSubClassSetCount)].map(t=>e.Offset16)),this.substFormat===3&&($j(this),this.backtrackGlyphCount=e.uint16,this.backtrackCoverageOffsets=[...new Array(this.backtrackGlyphCount)].map(t=>e.Offset16),this.inputGlyphCount=e.uint16,this.inputCoverageOffsets=[...new Array(this.inputGlyphCount)].map(t=>e.Offset16),this.lookaheadGlyphCount=e.uint16,this.lookaheadCoverageOffsets=[...new Array(this.lookaheadGlyphCount)].map(t=>e.Offset16),this.seqLookupCount=e.uint16,this.seqLookupRecords=[...new Array(this.substitutionCount)].map(t=>new tz(e)))}getChainSubRuleSet(e){if(this.substFormat!==1)throw new Error(`lookup type 6.${this.substFormat} has no chainsubrule sets.`);let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleSetOffsets[e],new Fye(t)}getChainSubClassSet(e){if(this.substFormat!==2)throw new Error(`lookup type 6.${this.substFormat} has no chainsubclass sets.`);let t=this.parser;return t.currentPosition=this.start+this.chainSubClassSetOffsets[e],new Bye(t)}getCoverageFromOffset(e){if(this.substFormat!==3)throw new Error(`lookup type 6.${this.substFormat} does not use contextual coverage offsets.`);let t=this.parser;return t.currentPosition=this.start+e,new ab(t)}},Fye=class extends pr{constructor(e){super(e),this.chainSubRuleCount=e.uint16,this.chainSubRuleOffsets=[...new Array(this.chainSubRuleCount)].map(t=>e.Offset16)}getSubRule(e){let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleOffsets[e],new Nye(t)}},Nye=class{constructor(e){this.backtrackGlyphCount=e.uint16,this.backtrackSequence=[...new Array(this.backtrackGlyphCount)].map(t=>e.uint16),this.inputGlyphCount=e.uint16,this.inputSequence=[...new Array(this.inputGlyphCount-1)].map(t=>e.uint16),this.lookaheadGlyphCount=e.uint16,this.lookAheadSequence=[...new Array(this.lookAheadGlyphCount)].map(t=>e.uint16),this.substitutionCount=e.uint16,this.substLookupRecords=[...new Array(this.SubstCount)].map(t=>new n6(e))}},Bye=class extends pr{constructor(e){super(e),this.chainSubClassRuleCount=e.uint16,this.chainSubClassRuleOffsets=[...new Array(this.chainSubClassRuleCount)].map(t=>e.Offset16)}getSubClass(e){let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleOffsets[e],new Dye(t)}},Dye=class{constructor(e){this.backtrackGlyphCount=e.uint16,this.backtrackSequence=[...new Array(this.backtrackGlyphCount)].map(t=>e.uint16),this.inputGlyphCount=e.uint16,this.inputSequence=[...new Array(this.inputGlyphCount-1)].map(t=>e.uint16),this.lookaheadGlyphCount=e.uint16,this.lookAheadSequence=[...new Array(this.lookAheadGlyphCount)].map(t=>e.uint16),this.substitutionCount=e.uint16,this.substLookupRecords=[...new Array(this.substitutionCount)].map(t=>new tz(e))}},tz=class extends pr{constructor(e){super(e),this.sequenceIndex=e.uint16,this.lookupListIndex=e.uint16}},Lye=class extends pr{constructor(e){super(e),this.substFormat=e.uint16,this.extensionLookupType=e.uint16,this.extensionOffset=e.Offset32}},Mye=class extends Rf{constructor(e){super(e),this.backtrackGlyphCount=e.uint16,this.backtrackCoverageOffsets=[...new Array(this.backtrackGlyphCount)].map(t=>e.Offset16),this.lookaheadGlyphCount=e.uint16,this.lookaheadCoverageOffsets=[new Array(this.lookaheadGlyphCount)].map(t=>e.Offset16),this.glyphCount=e.uint16,this.substituteGlyphIDs=[...new Array(this.glyphCount)].map(t=>e.uint16)}},Vye={buildSubtable:function(e,t){let r=new[void 0,Sye,_ye,xye,Cye,Eye,Iye,Lye,Mye][e](t);return r.type=e,r}},Kl=class extends pr{constructor(e){super(e)}},jye=class extends Kl{constructor(e){super(e),console.log("lookup type 1")}},zye=class extends Kl{constructor(e){super(e),console.log("lookup type 2")}},Uye=class extends Kl{constructor(e){super(e),console.log("lookup type 3")}},Hye=class extends Kl{constructor(e){super(e),console.log("lookup type 4")}},Gye=class extends Kl{constructor(e){super(e),console.log("lookup type 5")}},Wye=class extends Kl{constructor(e){super(e),console.log("lookup type 6")}},Yye=class extends Kl{constructor(e){super(e),console.log("lookup type 7")}},qye=class extends Kl{constructor(e){super(e),console.log("lookup type 8")}},Zye=class extends Kl{constructor(e){super(e),console.log("lookup type 9")}},Kye={buildSubtable:function(e,t){let r=new[void 0,jye,zye,Uye,Hye,Gye,Wye,Yye,qye,Zye][e](t);return r.type=e,r}},Kj=class extends pr{static EMPTY={lookupCount:0,lookups:[]};constructor(e){super(e),this.lookupCount=e.uint16,this.lookups=[...new Array(this.lookupCount)].map(t=>e.Offset16)}},Xye=class extends pr{constructor(e,t){super(e),this.ctType=t,this.lookupType=e.uint16,this.lookupFlag=e.uint16,this.subTableCount=e.uint16,this.subtableOffsets=[...new Array(this.subTableCount)].map(r=>e.Offset16),this.markFilteringSet=e.uint16}get rightToLeft(){return this.lookupFlag&!0}get ignoreBaseGlyphs(){return this.lookupFlag&!0}get ignoreLigatures(){return this.lookupFlag&!0}get ignoreMarks(){return this.lookupFlag&!0}get useMarkFilteringSet(){return this.lookupFlag&!0}get markAttachmentType(){return this.lookupFlag&!0}getSubTable(e){let t=this.ctType==="GSUB"?Vye:Kye;return this.parser.currentPosition=this.start+this.subtableOffsets[e],t.buildSubtable(this.lookupType,this.parser)}},rz=class extends We{constructor(e,t,r){let{p:o,tableStart:n}=super(e,t,r);this.majorVersion=o.uint16,this.minorVersion=o.uint16,this.scriptListOffset=o.Offset16,this.featureListOffset=o.Offset16,this.lookupListOffset=o.Offset16,this.majorVersion===1&&this.minorVersion===1&&(this.featureVariationsOffset=o.Offset32);let s=!(this.scriptListOffset||this.featureListOffset||this.lookupListOffset);we(this,"scriptList",()=>s?Yj.EMPTY:(o.currentPosition=n+this.scriptListOffset,new Yj(o))),we(this,"featureList",()=>s?Zj.EMPTY:(o.currentPosition=n+this.featureListOffset,new Zj(o))),we(this,"lookupList",()=>s?Kj.EMPTY:(o.currentPosition=n+this.lookupListOffset,new Kj(o))),this.featureVariationsOffset&&we(this,"featureVariations",()=>s?FeatureVariations.EMPTY:(o.currentPosition=n+this.featureVariationsOffset,new FeatureVariations(o)))}getSupportedScripts(){return this.scriptList.scriptRecords.map(e=>e.scriptTag)}getScriptTable(e){let t=this.scriptList.scriptRecords.find(o=>o.scriptTag===e);this.parser.currentPosition=this.scriptList.start+t.scriptOffset;let r=new mye(this.parser);return r.scriptTag=e,r}ensureScriptTable(e){return typeof e=="string"?this.getScriptTable(e):e}getSupportedLangSys(e){e=this.ensureScriptTable(e);let t=e.defaultLangSys!==0,r=e.langSysRecords.map(o=>o.langSysTag);return t&&r.unshift("dflt"),r}getDefaultLangSysTable(e){e=this.ensureScriptTable(e);let t=e.defaultLangSys;if(t!==0){this.parser.currentPosition=e.start+t;let r=new qj(this.parser);return r.langSysTag="",r.defaultForScript=e.scriptTag,r}}getLangSysTable(e,t="dflt"){if(t==="dflt")return this.getDefaultLangSysTable(e);e=this.ensureScriptTable(e);let r=e.langSysRecords.find(n=>n.langSysTag===t);this.parser.currentPosition=e.start+r.langSysOffset;let o=new qj(this.parser);return o.langSysTag=t,o}getFeatures(e){return e.featureIndices.map(t=>this.getFeature(t))}getFeature(e){let t;if(parseInt(e)==e?t=this.featureList.featureRecords[e]:t=this.featureList.featureRecords.find(o=>o.featureTag===e),!t)return;this.parser.currentPosition=this.featureList.start+t.featureOffset;let r=new gye(this.parser);return r.featureTag=t.featureTag,r}getLookups(e){return e.lookupListIndices.map(t=>this.getLookup(t))}getLookup(e,t){let r=this.lookupList.lookups[e];return this.parser.currentPosition=this.lookupList.start+r,new Xye(this.parser,t)}},Qye=class extends rz{constructor(e,t){super(e,t,"GSUB")}getLookup(e){return super.getLookup(e,"GSUB")}},Jye=Object.freeze({__proto__:null,GSUB:Qye}),$ye=class extends rz{constructor(e,t){super(e,t,"GPOS")}getLookup(e){return super.getLookup(e,"GPOS")}},ebe=Object.freeze({__proto__:null,GPOS:$ye}),tbe=class extends We{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.offsetToSVGDocumentList=r.Offset32,r.currentPosition=this.tableStart+this.offsetToSVGDocumentList,this.documentList=new rbe(r)}},rbe=class extends pr{constructor(e){super(e),this.numEntries=e.uint16,this.documentRecords=[...new Array(this.numEntries)].map(t=>new obe(e))}getDocument(e){let t=this.documentRecords[e];if(!t)return"";let r=this.start+t.svgDocOffset;return this.parser.currentPosition=r,this.parser.readBytes(t.svgDocLength)}getDocumentForGlyph(e){let t=this.documentRecords.findIndex(r=>r.startGlyphID<=e&&e<=r.endGlyphID);return t===-1?"":this.getDocument(t)}},obe=class{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.svgDocOffset=e.Offset32,this.svgDocLength=e.uint32}},nbe=Object.freeze({__proto__:null,SVG:tbe}),sbe=class extends We{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.axesArrayOffset=r.Offset16,r.uint16,this.axisCount=r.uint16,this.axisSize=r.uint16,this.instanceCount=r.uint16,this.instanceSize=r.uint16;let o=this.tableStart+this.axesArrayOffset;we(this,"axes",()=>(r.currentPosition=o,[...new Array(this.axisCount)].map(s=>new ibe(r))));let n=o+this.axisCount*this.axisSize;we(this,"instances",()=>{let s=[];for(let a=0;a<this.instanceCount;a++)r.currentPosition=n+a*this.instanceSize,s.push(new abe(r,this.axisCount,this.instanceSize));return s})}getSupportedAxes(){return this.axes.map(e=>e.tag)}getAxis(e){return this.axes.find(t=>t.tag===e)}},ibe=class{constructor(e){this.tag=e.tag,this.minValue=e.fixed,this.defaultValue=e.fixed,this.maxValue=e.fixed,this.flags=e.flags(16),this.axisNameID=e.uint16}},abe=class{constructor(e,t,r){let o=e.currentPosition;this.subfamilyNameID=e.uint16,e.uint16,this.coordinates=[...new Array(t)].map(n=>e.fixed),e.currentPosition-o<r&&(this.postScriptNameID=e.uint16)}},lbe=Object.freeze({__proto__:null,fvar:sbe}),cbe=class extends We{constructor(e,t){let{p:r}=super(e,t),o=e.length/2;we(this,"items",()=>[...new Array(o)].map(n=>r.fword))}},ube=Object.freeze({__proto__:null,cvt:cbe}),dbe=class extends We{constructor(e,t){let{p:r}=super(e,t);we(this,"instructions",()=>[...new Array(e.length)].map(o=>r.uint8))}},fbe=Object.freeze({__proto__:null,fpgm:dbe}),mbe=class extends We{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numRanges=r.uint16,we(this,"gaspRanges",()=>[...new Array(this.numRanges)].map(n=>new pbe(r)))}},pbe=class{constructor(e){this.rangeMaxPPEM=e.uint16,this.rangeGaspBehavior=e.uint16}},hbe=Object.freeze({__proto__:null,gasp:mbe}),gbe=class extends We{constructor(e,t){super(e,t)}getGlyphData(e,t){return this.parser.currentPosition=this.tableStart+e,this.parser.readBytes(t)}},vbe=Object.freeze({__proto__:null,glyf:gbe}),ybe=class extends We{constructor(e,t,r){let{p:o}=super(e,t),n=r.maxp.numGlyphs+1;r.head.indexToLocFormat===0?(this.x2=!0,we(this,"offsets",()=>[...new Array(n)].map(s=>o.Offset16))):we(this,"offsets",()=>[...new Array(n)].map(s=>o.Offset32))}getGlyphDataOffsetAndLength(e){let t=this.offsets[e]*this.x2?2:1,r=this.offsets[e+1]*this.x2?2:1;return{offset:t,length:r-t}}},bbe=Object.freeze({__proto__:null,loca:ybe}),Sbe=class extends We{constructor(e,t){let{p:r}=super(e,t);we(this,"instructions",()=>[...new Array(e.length)].map(o=>r.uint8))}},_be=Object.freeze({__proto__:null,prep:Sbe}),wbe=class extends We{constructor(e,t){let{p:r}=super(e,t);we(this,"data",()=>r.readBytes())}},xbe=Object.freeze({__proto__:null,CFF:wbe}),Tbe=class extends We{constructor(e,t){let{p:r}=super(e,t);we(this,"data",()=>r.readBytes())}},Cbe=Object.freeze({__proto__:null,CFF2:Tbe}),Pbe=class extends We{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.defaultVertOriginY=r.int16,this.numVertOriginYMetrics=r.uint16,we(this,"vertORiginYMetrics",()=>[...new Array(this.numVertOriginYMetrics)].map(o=>new kbe(r)))}},kbe=class{constructor(e){this.glyphIndex=e.uint16,this.vertOriginY=e.int16}},Ebe=Object.freeze({__proto__:null,VORG:Pbe}),Abe=class{constructor(e){this.indexSubTableArrayOffset=e.Offset32,this.indexTablesSize=e.uint32,this.numberofIndexSubTables=e.uint32,this.colorRef=e.uint32,this.hori=new nx(e),this.vert=new nx(e),this.startGlyphIndex=e.uint16,this.endGlyphIndex=e.uint16,this.ppemX=e.uint8,this.ppemY=e.uint8,this.bitDepth=e.uint8,this.flags=e.int8}},Rbe=class{constructor(e){this.hori=new nx(e),this.vert=new nx(e),this.ppemX=e.uint8,this.ppemY=e.uint8,this.substitutePpemX=e.uint8,this.substitutePpemY=e.uint8}},nx=class{constructor(e){this.ascender=e.int8,this.descender=e.int8,this.widthMax=e.uint8,this.caretSlopeNumerator=e.int8,this.caretSlopeDenominator=e.int8,this.caretOffset=e.int8,this.minOriginSB=e.int8,this.minAdvanceSB=e.int8,this.maxBeforeBL=e.int8,this.minAfterBL=e.int8,this.pad1=e.int8,this.pad2=e.int8}},oz=class extends We{constructor(e,t,r){let{p:o}=super(e,t,r);this.majorVersion=o.uint16,this.minorVersion=o.uint16,this.numSizes=o.uint32,we(this,"bitMapSizes",()=>[...new Array(this.numSizes)].map(n=>new Abe(o)))}},Obe=Object.freeze({__proto__:null,EBLC:oz}),nz=class extends We{constructor(e,t,r){let{p:o}=super(e,t,r);this.majorVersion=o.uint16,this.minorVersion=o.uint16}},Ibe=Object.freeze({__proto__:null,EBDT:nz}),Fbe=class extends We{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.numSizes=r.uint32,we(this,"bitmapScales",()=>[...new Array(this.numSizes)].map(o=>new Rbe(r)))}},Nbe=Object.freeze({__proto__:null,EBSC:Fbe}),Bbe=class extends oz{constructor(e,t){super(e,t,"CBLC")}},Dbe=Object.freeze({__proto__:null,CBLC:Bbe}),Lbe=class extends nz{constructor(e,t){super(e,t,"CBDT")}},Mbe=Object.freeze({__proto__:null,CBDT:Lbe}),Vbe=class extends We{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.flags=r.flags(16),this.numStrikes=r.uint32,we(this,"strikeOffsets",()=>[...new Array(this.numStrikes)].map(o=>r.Offset32))}},jbe=Object.freeze({__proto__:null,sbix:Vbe}),zbe=class extends We{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numBaseGlyphRecords=r.uint16,this.baseGlyphRecordsOffset=r.Offset32,this.layerRecordsOffset=r.Offset32,this.numLayerRecords=r.uint16}getBaseGlyphRecord(e){let t=this.tableStart+this.baseGlyphRecordsOffset;this.parser.currentPosition=t;let r=new o6(this.parser),o=r.gID,n=this.tableStart+this.layerRecordsOffset-6;this.parser.currentPosition=n;let s=new o6(this.parser),a=s.gID;if(o===e)return r;if(a===e)return s;for(;t!==n;){let l=t+(n-t)/12;this.parser.currentPosition=l;let c=new o6(this.parser),u=c.gID;if(u===e)return c;u>e?n=l:u<e&&(t=l)}return!1}getLayers(e){let t=this.getBaseGlyphRecord(e);return this.parser.currentPosition=this.tableStart+this.layerRecordsOffset+4*t.firstLayerIndex,[...new Array(t.numLayers)].map(r=>new Ube(p))}},o6=class{constructor(e){this.gID=e.uint16,this.firstLayerIndex=e.uint16,this.numLayers=e.uint16}},Ube=class{constructor(e){this.gID=e.uint16,this.paletteIndex=e.uint16}},Hbe=Object.freeze({__proto__:null,COLR:zbe}),Gbe=class extends We{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numPaletteEntries=r.uint16;let o=this.numPalettes=r.uint16;this.numColorRecords=r.uint16,this.offsetFirstColorRecord=r.Offset32,this.colorRecordIndices=[...new Array(this.numPalettes)].map(n=>r.uint16),we(this,"colorRecords",()=>(r.currentPosition=this.tableStart+this.offsetFirstColorRecord,[...new Array(this.numColorRecords)].map(n=>new Wbe(r)))),this.version===1&&(this.offsetPaletteTypeArray=r.Offset32,this.offsetPaletteLabelArray=r.Offset32,this.offsetPaletteEntryLabelArray=r.Offset32,we(this,"paletteTypeArray",()=>(r.currentPosition=this.tableStart+this.offsetPaletteTypeArray,new Ybe(r,o))),we(this,"paletteLabelArray",()=>(r.currentPosition=this.tableStart+this.offsetPaletteLabelArray,new qbe(r,o))),we(this,"paletteEntryLabelArray",()=>(r.currentPosition=this.tableStart+this.offsetPaletteEntryLabelArray,new Zbe(r,o))))}},Wbe=class{constructor(e){this.blue=e.uint8,this.green=e.uint8,this.red=e.uint8,this.alpha=e.uint8}},Ybe=class{constructor(e,t){this.paletteTypes=[...new Array(t)].map(r=>e.uint32)}},qbe=class{constructor(e,t){this.paletteLabels=[...new Array(t)].map(r=>e.uint16)}},Zbe=class{constructor(e,t){this.paletteEntryLabels=[...new Array(t)].map(r=>e.uint16)}},Kbe=Object.freeze({__proto__:null,CPAL:Gbe}),Xbe=class extends We{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint32,this.numSignatures=r.uint16,this.flags=r.uint16,this.signatureRecords=[...new Array(this.numSignatures)].map(o=>new Qbe(r))}getData(e){let t=this.signatureRecords[e];return this.parser.currentPosition=this.tableStart+t.offset,new Jbe(this.parser)}},Qbe=class{constructor(e){this.format=e.uint32,this.length=e.uint32,this.offset=e.Offset32}},Jbe=class{constructor(e){e.uint16,e.uint16,this.signatureLength=e.uint32,this.signature=e.readBytes(this.signatureLength)}},$be=Object.freeze({__proto__:null,DSIG:Xbe}),e0e=class extends We{constructor(e,t,r){let{p:o}=super(e,t),n=r.hmtx.numGlyphs;this.version=o.uint16,this.numRecords=o.int16,this.sizeDeviceRecord=o.int32,this.records=[...new Array(numRecords)].map(s=>new t0e(o,n))}},t0e=class{constructor(e,t){this.pixelSize=e.uint8,this.maxWidth=e.uint8,this.widths=e.readBytes(t)}},r0e=Object.freeze({__proto__:null,hdmx:e0e}),o0e=class extends We{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.nTables=r.uint16,we(this,"tables",()=>{let o=this.tableStart+4,n=[];for(let s=0;s<this.nTables;s++){r.currentPosition=o;let a=new n0e(r);n.push(a),o+=a}return n})}},n0e=class{constructor(e){this.version=e.uint16,this.length=e.uint16,this.coverage=e.flags(8),this.format=e.uint8,this.format===0&&(this.nPairs=e.uint16,this.searchRange=e.uint16,this.entrySelector=e.uint16,this.rangeShift=e.uint16,we(this,"pairs",()=>[...new Array(this.nPairs)].map(t=>new s0e(e)))),this.format===2&&console.warn("Kern subtable format 2 is not supported: this parser currently only parses universal table data.")}get horizontal(){return this.coverage[0]}get minimum(){return this.coverage[1]}get crossstream(){return this.coverage[2]}get override(){return this.coverage[3]}},s0e=class{constructor(e){this.left=e.uint16,this.right=e.uint16,this.value=e.fword}},i0e=Object.freeze({__proto__:null,kern:o0e}),a0e=class extends We{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numGlyphs=r.uint16,this.yPels=r.readBytes(this.numGlyphs)}},l0e=Object.freeze({__proto__:null,LTSH:a0e}),c0e=class extends We{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.mergeClassCount=r.uint16,this.mergeDataOffset=r.Offset16,this.classDefCount=r.uint16,this.offsetToClassDefOffsets=r.Offset16,we(this,"mergeEntryMatrix",()=>[...new Array(this.mergeClassCount)].map(o=>r.readBytes(this.mergeClassCount))),console.warn("Full MERG parsing is currently not supported."),console.warn("If you need this table parsed, please file an issue, or better yet, a PR.")}},u0e=Object.freeze({__proto__:null,MERG:c0e}),d0e=class extends We{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint32,this.flags=r.uint32,r.uint32,this.dataMapsCount=r.uint32,this.dataMaps=[...new Array(this.dataMapsCount)].map(o=>new f0e(this.tableStart,r))}},f0e=class{constructor(e,t){this.tableStart=e,this.parser=t,this.tag=t.tag,this.dataOffset=t.Offset32,this.dataLength=t.uint32}getData(){return this.parser.currentField=this.tableStart+this.dataOffset,this.parser.readBytes(this.dataLength)}},m0e=Object.freeze({__proto__:null,meta:d0e}),p0e=class extends We{constructor(e,t){super(e,t),console.warn("This font uses a PCLT table, which is currently not supported by this parser."),console.warn("If you need this table parsed, please file an issue, or better yet, a PR.")}},h0e=Object.freeze({__proto__:null,PCLT:p0e}),g0e=class extends We{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numRecs=r.uint16,this.numRatios=r.uint16,this.ratRanges=[...new Array(this.numRatios)].map(o=>new v0e(r)),this.offsets=[...new Array(this.numRatios)].map(o=>r.Offset16),this.VDMXGroups=[...new Array(this.numRecs)].map(o=>new y0e(r))}},v0e=class{constructor(e){this.bCharSet=e.uint8,this.xRatio=e.uint8,this.yStartRatio=e.uint8,this.yEndRatio=e.uint8}},y0e=class{constructor(e){this.recs=e.uint16,this.startsz=e.uint8,this.endsz=e.uint8,this.records=[...new Array(this.recs)].map(t=>new b0e(e))}},b0e=class{constructor(e){this.yPelHeight=e.uint16,this.yMax=e.int16,this.yMin=e.int16}},S0e=Object.freeze({__proto__:null,VDMX:g0e}),_0e=class extends We{constructor(e,t){let{p:r}=super(e,t);this.version=r.fixed,this.ascent=this.vertTypoAscender=r.int16,this.descent=this.vertTypoDescender=r.int16,this.lineGap=this.vertTypoLineGap=r.int16,this.advanceHeightMax=r.int16,this.minTopSideBearing=r.int16,this.minBottomSideBearing=r.int16,this.yMaxExtent=r.int16,this.caretSlopeRise=r.int16,this.caretSlopeRun=r.int16,this.caretOffset=r.int16,this.reserved=r.int16,this.reserved=r.int16,this.reserved=r.int16,this.reserved=r.int16,this.metricDataFormat=r.int16,this.numOfLongVerMetrics=r.uint16,r.verifyLength()}},w0e=Object.freeze({__proto__:null,vhea:_0e}),x0e=class extends We{constructor(e,t,r){super(e,t);let o=r.vhea.numOfLongVerMetrics,n=r.maxp.numGlyphs,s=p.currentPosition;if(lazy(this,"vMetrics",()=>(p.currentPosition=s,[...new Array(o)].map(a=>new T0e(p.uint16,p.int16)))),o<n){let a=s+o*4;lazy(this,"topSideBearings",()=>(p.currentPosition=a,[...new Array(n-o)].map(l=>p.int16)))}}},T0e=class{constructor(e,t){this.advanceHeight=e,this.topSideBearing=t}},C0e=Object.freeze({__proto__:null,vmtx:x0e});var sz=i(R(),1);var{kebabCase:P0e}=tt(sz.privateApis);function iz(e){let t=e.reduce((r,o)=>(r[o.fontFamily]||(r[o.fontFamily]={name:o.fontFamily,fontFamily:o.fontFamily,slug:P0e(o.fontFamily.toLowerCase()),fontFace:[]}),r[o.fontFamily].fontFace.push(o),r),{});return Object.values(t)}var ts=i(x(),1);function k0e(){let{installFonts:e}=(0,lb.useContext)(Do),[t,r]=(0,lb.useState)(!1),[o,n]=(0,lb.useState)(null),s=h=>{l(h)},a=h=>{l(h.target.files)},l=async h=>{if(!h)return;n(null),r(!0);let g=new Set,y=[...h],v=!1,b=y.map(async w=>{if(!await u(w))return v=!0,null;if(g.has(w.name))return null;let C=(((w.name??"").split(".")??[]).pop()??"").toLowerCase();return JI.includes(C)?(g.add(w.name),w):null}),S=(await Promise.all(b)).filter(w=>w!==null);if(S.length>0)c(S);else{let w=v?(0,Xp.__)("Sorry, you are not allowed to upload this file type."):(0,Xp.__)("No fonts found to install.");n({type:"error",message:w}),r(!1)}},c=async h=>{let g=await Promise.all(h.map(async y=>{let v=await f(y);return await Fu(v,v.file,"all"),v}));m(g)};async function u(h){let g=new sx("Uploaded Font");try{let y=await d(h);return await g.fromDataBuffer(y,"font"),!0}catch{return!1}}async function d(h){return new Promise((g,y)=>{let v=new window.FileReader;v.readAsArrayBuffer(h),v.onload=()=>g(v.result),v.onerror=y})}let f=async h=>{let g=await d(h),y=new sx("Uploaded Font");y.fromDataBuffer(g,h.name);let b=(await new Promise(j=>y.onload=j)).detail.font,{name:S}=b.opentype.tables,w=S.get(16)||S.get(1),T=S.get(2).toLowerCase().includes("italic"),C=b.opentype.tables["OS/2"].usWeightClass||"normal",F=!!b.opentype.tables.fvar&&b.opentype.tables.fvar.axes.find(({tag:j})=>j==="wght"),L=F?`${F.minValue} ${F.maxValue}`:null;return{file:h,fontFamily:w,fontStyle:T?"italic":"normal",fontWeight:L||C}},m=async h=>{let g=iz(h);try{await e(g),n({type:"success",message:(0,Xp.__)("Fonts were installed successfully.")})}catch(y){let v=y;n({type:"error",message:v.message,errors:v?.installationErrors})}r(!1)};return(0,ts.jsxs)("div",{className:"font-library__tabpanel-layout",children:[(0,ts.jsx)(tn.DropZone,{onFilesDrop:s}),(0,ts.jsxs)(tn.__experimentalVStack,{className:"font-library__local-fonts",justify:"start",children:[o&&(0,ts.jsxs)(tn.Notice,{status:o.type,__unstableHTML:!0,onRemove:()=>n(null),children:[o.message,o.errors&&(0,ts.jsx)("ul",{children:o.errors.map((h,g)=>(0,ts.jsx)("li",{children:h},g))})]}),t&&(0,ts.jsx)(tn.FlexItem,{children:(0,ts.jsx)("div",{className:"font-library__upload-area",children:(0,ts.jsx)(tn.ProgressBar,{})})}),!t&&(0,ts.jsx)(tn.FormFileUpload,{accept:JI.map(h=>`.${h}`).join(","),multiple:!0,onChange:a,render:({openFileDialog:h})=>(0,ts.jsx)(tn.Button,{__next40pxDefaultSize:!0,className:"font-library__upload-area",onClick:h,children:(0,Xp.__)("Upload font")})}),(0,ts.jsx)(tn.__experimentalText,{className:"font-library__upload-area__text",children:(0,Xp.__)("Uploaded fonts appear in your library and can be used in your theme. Supported formats: .ttf, .otf, .woff, and .woff2.")})]})]})}var ix=k0e;var Wi=i(x(),1),{Tabs:ax}=tt(lx.privateApis),E0e={id:"installed-fonts",title:(0,Qp._x)("Library","Font library")},A0e={id:"upload-fonts",title:(0,Qp._x)("Upload","noun")},R0e=e=>e.map(({slug:t,name:r})=>({id:t,title:e.length===1&&t==="google-fonts"?(0,Qp.__)("Install Fonts"):r}));function O0e({onRequestClose:e,defaultTabId:t="installed-fonts"}){let{records:r=[]}=(0,cx.useEntityRecords)("root","fontCollection",{_fields:"slug,name,description"}),o=(0,az.useSelect)(s=>s(cx.store).canUser("create",{kind:"postType",name:"wp_font_family"}),[]),n=[E0e];return o&&(n.push(A0e),n.push(...R0e(r||[]))),(0,Wi.jsx)(lx.Modal,{title:(0,Qp.__)("Fonts"),onRequestClose:e,isFullScreen:!0,className:"font-library-modal",children:(0,Wi.jsxs)(ax,{defaultTabId:t,children:[(0,Wi.jsx)("div",{className:"font-library-modal__tablist-container",children:(0,Wi.jsx)(ax.TabList,{children:n.map(({id:s,title:a})=>(0,Wi.jsx)(ax.Tab,{tabId:s,children:a},s))})}),n.map(({id:s})=>{let a;switch(s){case"upload-fonts":a=(0,Wi.jsx)(ix,{});break;case"installed-fonts":a=(0,Wi.jsx)(Qw,{});break;default:a=(0,Wi.jsx)($w,{slug:s})}return(0,Wi.jsx)(ax.TabPanel,{tabId:s,focusable:!1,className:"font-library-modal__tab-panel",children:a},s)})]})})}var lz=O0e;var ux=i(E(),1),Of=i(R(),1),cz=i(N(),1);var Jp=i(x(),1);function I0e({font:e}){let{handleSetLibraryFontSelected:t,setModalTabOpen:r}=(0,cz.useContext)(Do),o=e?.fontFace?.length||1,n=()=>{t?.(e),r?.("installed-fonts")},s=_f(e);return(0,Jp.jsx)(Of.__experimentalItem,{onClick:n,children:(0,Jp.jsxs)(Of.__experimentalHStack,{justify:"space-between",children:[(0,Jp.jsx)(Of.FlexItem,{style:s,children:e.name}),(0,Jp.jsx)(Of.FlexItem,{className:"global-styles-ui-screen-typography__font-variants-count",children:(0,ux.sprintf)((0,ux._n)("%d variant","%d variants",o),o)})]})})}var uz=I0e;var qr=i(x(),1);function dz(e,t){return e?e.map(r=>Yl(r,{source:t})):[]}function F0e(){let{baseCustomFonts:e,modalTabOpen:t,setModalTabOpen:r}=(0,fz.useContext)(Do),[o]=me("typography.fontFamilies"),[n]=me("typography.fontFamilies",void 0,"base"),s=dz(o?.theme,"theme"),a=dz(o?.custom,"custom"),l=[...s,...a].sort((d,f)=>d.name.localeCompare(f.name)),c=0<l.length,u=c||n?.theme?.length>0||(e?.length??0)>0;return(0,qr.jsxs)(qr.Fragment,{children:[!!t&&(0,qr.jsx)(lz,{onRequestClose:()=>r?.(""),defaultTabId:t}),(0,qr.jsxs)(Yi.__experimentalVStack,{spacing:2,children:[(0,qr.jsxs)(Yi.__experimentalHStack,{justify:"space-between",children:[(0,qr.jsx)(Cr,{level:3,children:(0,If.__)("Fonts")}),(0,qr.jsx)(Yi.Button,{onClick:()=>r?.("installed-fonts"),label:(0,If.__)("Manage fonts"),icon:kR,size:"small"})]}),l.length>0&&(0,qr.jsx)(qr.Fragment,{children:(0,qr.jsx)(Yi.__experimentalItemGroup,{size:"large",isBordered:!0,isSeparated:!0,children:l.map(d=>(0,qr.jsx)(uz,{font:d},d.slug))})}),!c&&(0,qr.jsxs)(qr.Fragment,{children:[(0,qr.jsx)(Yi.__experimentalText,{as:"p",children:u?(0,If.__)("No fonts activated."):(0,If.__)("No fonts installed.")}),(0,qr.jsx)(Yi.Button,{className:"global-styles-ui-font-families__manage-fonts",variant:"secondary",__next40pxDefaultSize:!0,onClick:()=>{r?.(u?"installed-fonts":"upload-fonts")},children:u?(0,If.__)("Manage fonts"):(0,If.__)("Add fonts")})]})]})]})}function mz({...e}){return(0,qr.jsx)(Yw,{children:(0,qr.jsx)(F0e,{...e})})}var cb=i(E(),1),Xl=i(R(),1);var Da=i(x(),1);function N0e(){return(0,Da.jsxs)(Xl.__experimentalVStack,{spacing:2,children:[(0,Da.jsx)(Xl.__experimentalHStack,{justify:"space-between",children:(0,Da.jsx)(Cr,{level:3,children:(0,cb.__)("Font Sizes")})}),(0,Da.jsx)(Xl.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:(0,Da.jsx)(fr,{path:"/typography/font-sizes",children:(0,Da.jsxs)(Xl.__experimentalHStack,{direction:"row",children:[(0,Da.jsx)(Xl.FlexItem,{children:(0,cb.__)("Font size presets")}),(0,Da.jsx)(Oo,{icon:(0,cb.isRTL)()?Wt:Yt})]})})})]})}var pz=N0e;var ci=i(x(),1);function B0e(){let{fontLibraryEnabled:e}=(0,gz.useContext)(Br);return(0,ci.jsxs)(ci.Fragment,{children:[(0,ci.jsx)(yt,{title:(0,dx.__)("Typography"),description:(0,dx.__)("Available fonts, typographic styles, and the application of those styles.")}),(0,ci.jsx)(Ou,{children:(0,ci.jsxs)(hz.__experimentalVStack,{spacing:7,children:[(0,ci.jsx)(Yp,{title:(0,dx.__)("Typesets")}),e&&(0,ci.jsx)(mz,{}),(0,ci.jsx)(nj,{}),(0,ci.jsx)(pz,{})]})})]})}var vz=B0e;var Nt=i(E(),1),Rs=i(R(),1),Tz=i(N(),1);var yz=i($(),1);var bz=i(x(),1),{useSettingsForBlockElement:D0e,TypographyPanel:L0e}=tt(yz.privateApis);function Sz({element:e,headingLevel:t}){let r=[];e==="heading"?r=r.concat(["elements",t]):e&&e!=="text"&&(r=r.concat(["elements",e]));let o=r.join("."),[n]=Ee(o,"","user",!1),[s,a]=Ee(o,"","merged",!1),[l]=me(""),u=D0e(l,void 0,e==="heading"?t:e);return(0,bz.jsx)(L0e,{inheritedValue:s,value:n,onChange:a,settings:u})}var _z=i(x(),1);function wz({name:e,element:t,headingLevel:r}){let o="";t==="heading"?o=`elements.${r}.`:t&&t!=="text"&&(o=`elements.${t}.`);let[n]=Ee(o+"typography.fontFamily",e),[s]=Ee(o+"color.gradient",e),[a]=Ee(o+"color.background",e),[l]=Ee("color.background"),[c]=Ee(o+"color.text",e),[u]=Ee(o+"typography.fontSize",e),[d]=Ee(o+"typography.fontStyle",e),[f]=Ee(o+"typography.fontWeight",e),[m]=Ee(o+"typography.letterSpacing",e);return(0,_z.jsx)("div",{className:"global-styles-ui-typography-preview",style:{fontFamily:n??"serif",background:s??a??l,color:c,fontSize:u,fontStyle:d,fontWeight:f,letterSpacing:m,...t==="link"?{textDecoration:"underline"}:{}},children:"Aa"})}var So=i(x(),1),xz={text:{description:(0,Nt.__)("Manage the fonts used on the site."),title:(0,Nt.__)("Text")},link:{description:(0,Nt.__)("Manage the fonts and typography used on the links."),title:(0,Nt.__)("Links")},heading:{description:(0,Nt.__)("Manage the fonts and typography used on headings."),title:(0,Nt.__)("Headings")},caption:{description:(0,Nt.__)("Manage the fonts and typography used on captions."),title:(0,Nt.__)("Captions")},button:{description:(0,Nt.__)("Manage the fonts and typography used on buttons."),title:(0,Nt.__)("Buttons")}};function M0e({element:e}){let[t,r]=(0,Tz.useState)("heading");return(0,So.jsxs)(So.Fragment,{children:[(0,So.jsx)(yt,{title:xz[e].title,description:xz[e].description}),(0,So.jsx)(Rs.__experimentalSpacer,{marginX:4,children:(0,So.jsx)(wz,{element:e,headingLevel:t})}),e==="heading"&&(0,So.jsx)(Rs.__experimentalSpacer,{marginX:4,marginBottom:"1em",children:(0,So.jsxs)(Rs.__experimentalToggleGroupControl,{label:(0,Nt.__)("Select heading level"),hideLabelFromVision:!0,value:t,onChange:o=>r(o),isBlock:!0,size:"__unstable-large",children:[(0,So.jsx)(Rs.__experimentalToggleGroupControlOption,{value:"heading",showTooltip:!0,"aria-label":(0,Nt.__)("All headings"),label:(0,Nt._x)("All","heading levels")}),(0,So.jsx)(Rs.__experimentalToggleGroupControlOption,{value:"h1",showTooltip:!0,"aria-label":(0,Nt.__)("Heading 1"),label:(0,Nt.__)("H1")}),(0,So.jsx)(Rs.__experimentalToggleGroupControlOption,{value:"h2",showTooltip:!0,"aria-label":(0,Nt.__)("Heading 2"),label:(0,Nt.__)("H2")}),(0,So.jsx)(Rs.__experimentalToggleGroupControlOption,{value:"h3",showTooltip:!0,"aria-label":(0,Nt.__)("Heading 3"),label:(0,Nt.__)("H3")}),(0,So.jsx)(Rs.__experimentalToggleGroupControlOption,{value:"h4",showTooltip:!0,"aria-label":(0,Nt.__)("Heading 4"),label:(0,Nt.__)("H4")}),(0,So.jsx)(Rs.__experimentalToggleGroupControlOption,{value:"h5",showTooltip:!0,"aria-label":(0,Nt.__)("Heading 5"),label:(0,Nt.__)("H5")}),(0,So.jsx)(Rs.__experimentalToggleGroupControlOption,{value:"h6",showTooltip:!0,"aria-label":(0,Nt.__)("Heading 6"),label:(0,Nt.__)("H6")})]})}),(0,So.jsx)(Sz,{element:e,headingLevel:t})]})}var $p=M0e;var s6=i(E(),1),Rz=i(R(),1),Oz=i($(),1);var Os=i(R(),1),eh=i(E(),1);var Ez=i(N(),1);var Cz=i(R(),1),Pz=i(x(),1);function V0e({className:e,children:t,...r}){return(0,Pz.jsx)(Cz.Flex,{className:re("global-styles-ui__color-indicator-wrapper",e),...r,children:t})}var kz=V0e;var rn=i(x(),1),fx=[];function j0e({name:e}){let[t]=me("color.palette.custom"),[r]=me("color.palette.theme"),[o]=me("color.palette.default"),[n]=me("color.defaultPalette",e),s=t||fx,a=r||fx,l=o||fx,c=n??!0,u=(0,Ez.useMemo)(()=>[...s,...a,...l&&c?l:fx],[s,a,l,c]),d=e?"/blocks/"+encodeURIComponent(e)+"/colors/palette":"/colors/palette";return(0,rn.jsxs)(Os.__experimentalVStack,{spacing:3,children:[(0,rn.jsx)(Cr,{level:3,children:(0,eh.__)("Palette")}),(0,rn.jsx)(Os.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:(0,rn.jsx)(fr,{path:d,children:(0,rn.jsxs)(Os.__experimentalHStack,{direction:"row",children:[u.length>0?(0,rn.jsxs)(rn.Fragment,{children:[(0,rn.jsx)(Os.__experimentalZStack,{isLayered:!1,offset:-8,children:u.slice(0,5).map(({color:f},m)=>(0,rn.jsx)(kz,{children:(0,rn.jsx)(Os.ColorIndicator,{colorValue:f})},`${f}-${m}`))}),(0,rn.jsx)(Os.FlexItem,{isBlock:!0,children:(0,eh.__)("Edit palette")})]}):(0,rn.jsx)(Os.FlexItem,{children:(0,eh.__)("Add colors")}),(0,rn.jsx)(Oo,{icon:(0,eh.isRTL)()?Wt:Yt})]})})})]})}var Az=j0e;var La=i(x(),1),{useSettingsForBlockElement:z0e,ColorPanel:U0e}=tt(Oz.privateApis);function H0e(){let[e,t]=Ee("",void 0,"user",!1),[r]=Ee("",void 0,"merged",!1),[o]=me(""),n=z0e(o);return(0,La.jsxs)(La.Fragment,{children:[(0,La.jsx)(yt,{title:(0,s6.__)("Colors"),description:(0,s6.__)("Palette colors and the application of those colors on site elements.")}),(0,La.jsx)(Ou,{children:(0,La.jsx)(Rz.__experimentalVStack,{spacing:7,children:(0,La.jsx)(Az,{})})}),(0,La.jsx)(U0e,{inheritedValue:r,value:e,onChange:t,settings:n})]})}var Iz=H0e;var fb=i(E(),1),zz=i(R(),1);var Lz=i(pe(),1),Jl=i(R(),1),rh=i(E(),1);var px=i(R(),1);var mx=i(R(),1);var Fz=i(x(),1);function Nz(){let{paletteColors:e}=jp();return e.slice(0,4).map(({slug:t,color:r},o)=>(0,Fz.jsx)("div",{style:{flexGrow:1,height:"100%",background:r}},`${t}-${o}`))}var ub=i(x(),1),G0e={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},W0e=({label:e,isFocused:t,withHoverView:r})=>(0,ub.jsx)(Up,{label:e,isFocused:t,withHoverView:r,children:({key:o})=>(0,ub.jsx)(mx.__unstableMotion.div,{variants:G0e,style:{height:"100%",overflow:"hidden"},children:(0,ub.jsx)(mx.__experimentalHStack,{spacing:0,justify:"center",style:{height:"100%",overflow:"hidden"},children:(0,ub.jsx)(Nz,{})})},o)}),Bz=W0e;var Ff=i(x(),1),Dz=["color"];function th({title:e,gap:t=2}){let r=Nw(Dz);return r?.length<=1?null:(0,Ff.jsxs)(px.__experimentalVStack,{spacing:3,children:[e&&(0,Ff.jsx)(Cr,{level:3,children:e}),(0,Ff.jsx)(px.__experimentalGrid,{gap:t,children:r.map((o,n)=>(0,Ff.jsx)(Wp,{variation:o,isPill:!0,properties:Dz,showTooltip:!0,children:()=>(0,Ff.jsx)(Bz,{})},n))})]})}var Ql=i(x(),1),Y0e={placement:"bottom-start",offset:8};function Mz({name:e}){let[t,r]=me("color.palette.theme",e),[o]=me("color.palette.theme",e,"base"),[n,s]=me("color.palette.default",e),[a]=me("color.palette.default",e,"base"),[l,c]=me("color.palette.custom",e),[u]=me("color.defaultPalette",e),f=(0,Lz.useViewportMatch)("small","<")?Y0e:void 0,[m]=_9(e);return(0,Ql.jsxs)(Jl.__experimentalVStack,{className:"global-styles-ui-color-palette-panel",spacing:8,children:[(0,Ql.jsxs)(Jl.__experimentalVStack,{spacing:4,children:[!!t&&!!t.length&&(0,Ql.jsx)(Jl.__experimentalPaletteEdit,{canReset:t!==o,canOnlyChangeValues:!0,colors:t,onChange:r,paletteLabel:(0,rh.__)("Theme"),paletteLabelHeadingLevel:3,popoverProps:f}),window.__experimentalEnableColorRandomizer&&t?.length>0&&m&&(0,Ql.jsx)(Jl.Button,{__next40pxDefaultSize:!0,variant:"secondary",icon:RR,onClick:m,children:(0,rh.__)("Randomize colors")})]}),!!n&&!!n.length&&!!u&&(0,Ql.jsx)(Jl.__experimentalPaletteEdit,{canReset:n!==a,canOnlyChangeValues:!0,colors:n,onChange:s,paletteLabel:(0,rh.__)("Default"),paletteLabelHeadingLevel:3,popoverProps:f}),(0,Ql.jsx)(Jl.__experimentalPaletteEdit,{colors:l,onChange:c,paletteLabel:(0,rh.__)("Custom"),paletteLabelHeadingLevel:3,slugPrefix:"custom-",popoverProps:f}),(0,Ql.jsx)(th,{title:(0,rh.__)("Palettes")})]})}var Vz=i(pe(),1),Va=i(R(),1),db=i(E(),1);var Ma=i(x(),1),q0e={placement:"bottom-start",offset:8},Z0e=()=>{};function jz({name:e}){let[t,r]=me("color.gradients.theme",e),[o]=me("color.gradients.theme",e,"base"),[n,s]=me("color.gradients.default",e),[a]=me("color.gradients.default",e,"base"),[l,c]=me("color.gradients.custom",e),[u]=me("color.defaultGradients",e),[d]=me("color.duotone.custom")||[],[f]=me("color.duotone.default")||[],[m]=me("color.duotone.theme")||[],[h]=me("color.defaultDuotone"),g=[...d||[],...m||[],...f&&h?f:[]],v=(0,Vz.useViewportMatch)("small","<")?q0e:void 0;return(0,Ma.jsxs)(Va.__experimentalVStack,{className:"global-styles-ui-gradient-palette-panel",spacing:8,children:[!!t&&!!t.length&&(0,Ma.jsx)(Va.__experimentalPaletteEdit,{canReset:t!==o,canOnlyChangeValues:!0,gradients:t,onChange:r,paletteLabel:(0,db.__)("Theme"),paletteLabelHeadingLevel:3,popoverProps:v}),!!n&&!!n.length&&!!u&&(0,Ma.jsx)(Va.__experimentalPaletteEdit,{canReset:n!==a,canOnlyChangeValues:!0,gradients:n,onChange:s,paletteLabel:(0,db.__)("Default"),paletteLabelHeadingLevel:3,popoverProps:v}),(0,Ma.jsx)(Va.__experimentalPaletteEdit,{gradients:l,onChange:c,paletteLabel:(0,db.__)("Custom"),paletteLabelHeadingLevel:3,slugPrefix:"custom-",popoverProps:v}),!!g&&!!g.length&&(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)(Cr,{level:3,children:(0,db.__)("Duotone")}),(0,Ma.jsx)(Va.__experimentalSpacer,{margin:3}),(0,Ma.jsx)(Va.DuotonePicker,{duotonePalette:g,disableCustomDuotone:!0,disableCustomColors:!0,clearable:!1,onChange:Z0e,colorPalette:[]})]})]})}var rs=i(x(),1),{Tabs:oh}=tt(zz.privateApis);function K0e({name:e}){return(0,rs.jsxs)(rs.Fragment,{children:[(0,rs.jsx)(yt,{title:(0,fb.__)("Edit palette"),description:(0,fb.__)("The combination of colors used across the site and in color pickers.")}),(0,rs.jsxs)(oh,{children:[(0,rs.jsxs)(oh.TabList,{children:[(0,rs.jsx)(oh.Tab,{tabId:"color",children:(0,fb.__)("Color")}),(0,rs.jsx)(oh.Tab,{tabId:"gradient",children:(0,fb.__)("Gradient")})]}),(0,rs.jsx)(oh.TabPanel,{tabId:"color",focusable:!1,children:(0,rs.jsx)(Mz,{name:e})}),(0,rs.jsx)(oh.TabPanel,{tabId:"gradient",focusable:!1,children:(0,rs.jsx)(jz,{name:e})})]})]})}var Uz=K0e;var i6=i(E(),1),Yz=i($(),1),qz=i(R(),1);var Hz=i($(),1);var Gz=i(x(),1),X0e={backgroundSize:"auto"},{BackgroundPanel:Q0e}=tt(Hz.privateApis);function Wz(){let[e]=Ee("",void 0,"user",!1),[t,r]=Ee("",void 0,"merged",!1),[o]=me("");return(0,Gz.jsx)(Q0e,{inheritedValue:t,value:e,onChange:r,settings:o,defaultValues:X0e})}var Du=i(x(),1),{useHasBackgroundPanel:J0e}=tt(Yz.privateApis);function $0e(){let[e]=me(""),t=J0e(e);return(0,Du.jsxs)(Du.Fragment,{children:[(0,Du.jsx)(yt,{title:(0,i6.__)("Background"),description:(0,Du.jsx)(qz.__experimentalText,{children:(0,i6.__)("Set styles for the site's background.")})}),t&&(0,Du.jsx)(Wz,{})]})}var Zz=$0e;var nn=i(R(),1),on=i(E(),1);var $z=i(N(),1);var Kz=i(R(),1),Xz=i(E(),1),Qz=i(x(),1);function e1e({text:e,confirmButtonText:t,isOpen:r,toggleOpen:o,onConfirm:n}){let s=async()=>{o(),n()},a=()=>{o()};return(0,Qz.jsx)(Kz.__experimentalConfirmDialog,{isOpen:r,cancelButtonText:(0,Xz.__)("Cancel"),confirmButtonText:t,onCancel:a,onConfirm:s,size:"medium",children:e})}var Jz=e1e;var kt=i(x(),1),{Menu:mb}=tt(nn.privateApis),l6="6px 6px 9px rgba(0, 0, 0, 0.2)";function eU(){let[e]=me("shadow.presets.default"),[t]=me("shadow.defaultPresets"),[r]=me("shadow.presets.theme"),[o,n]=me("shadow.presets.custom"),s=d=>{n([...o||[],d])},a=()=>{n([])},[l,c]=(0,$z.useState)(!1),u=()=>c(!l);return(0,kt.jsxs)(kt.Fragment,{children:[l&&(0,kt.jsx)(Jz,{text:(0,on.__)("Are you sure you want to remove all custom shadows?"),confirmButtonText:(0,on.__)("Remove"),isOpen:l,toggleOpen:u,onConfirm:a}),(0,kt.jsx)(yt,{title:(0,on.__)("Shadows"),description:(0,on.__)("Manage and create shadow styles for use across the site.")}),(0,kt.jsx)(Ou,{children:(0,kt.jsxs)(nn.__experimentalVStack,{className:"global-styles-ui__shadows-panel",spacing:7,children:[t&&(0,kt.jsx)(a6,{label:(0,on.__)("Default"),shadows:e||[],category:"default"}),r&&r.length>0&&(0,kt.jsx)(a6,{label:(0,on.__)("Theme"),shadows:r||[],category:"theme"}),(0,kt.jsx)(a6,{label:(0,on.__)("Custom"),shadows:o||[],category:"custom",canCreate:!0,onCreate:s,onReset:u})]})})]})}function a6({label:e,shadows:t,category:r,canCreate:o,onCreate:n,onReset:s}){let a=()=>{let l=Fw(t,"shadow-");n?.({name:(0,on.sprintf)((0,on.__)("Shadow %d"),l),shadow:l6,slug:`shadow-${l}`})};return(0,kt.jsxs)(nn.__experimentalVStack,{spacing:2,children:[(0,kt.jsxs)(nn.__experimentalHStack,{justify:"space-between",children:[(0,kt.jsx)(Cr,{level:3,children:e}),(0,kt.jsxs)(nn.FlexItem,{className:"global-styles-ui__shadows-panel__options-container",children:[o&&(0,kt.jsx)(nn.Button,{size:"small",icon:wl,label:(0,on.__)("Add shadow"),onClick:()=>{a()}}),!!t?.length&&r==="custom"&&(0,kt.jsxs)(mb,{children:[(0,kt.jsx)(mb.TriggerButton,{render:(0,kt.jsx)(nn.Button,{size:"small",icon:Ir,label:(0,on.__)("Shadow options")})}),(0,kt.jsx)(mb.Popover,{children:(0,kt.jsx)(mb.Item,{onClick:s,children:(0,kt.jsx)(mb.ItemLabel,{children:(0,on.__)("Remove all custom shadows")})})})]})]})]}),t.length>0&&(0,kt.jsx)(nn.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:t.map(l=>(0,kt.jsx)(t1e,{shadow:l,category:r},l.slug))})]})}function t1e({shadow:e,category:t}){return(0,kt.jsx)(fr,{path:`/shadows/edit/${t}/${e.slug}`,children:(0,kt.jsxs)(nn.__experimentalHStack,{children:[(0,kt.jsx)(nn.FlexItem,{children:e.name}),(0,kt.jsx)(Oo,{icon:(0,on.isRTL)()?Wt:Yt})]})})}var Fe=i(R(),1),jt=i(E(),1);var Is=i(N(),1);function tU(e){return(e.match(/(?:[^,(]|\([^)]*\))+/g)||[]).map(r=>r.trim())}function rU(e){let t={x:"0",y:"0",blur:"0",spread:"0",color:"#000",inset:!1};if(!e||e.includes("none"))return t;let r=/((?:^|\s+)(-?\d*\.?\d+(?:px|%|in|cm|mm|em|rem|ex|pt|pc|vh|vw|vmin|vmax|ch|lh)?)(?=\s|$)(?![^(]*\))){1,4}/g,o=e.match(r)||[];if(o.length!==1)return t;let n=o[0].split(" ").map(g=>g.trim()).filter(g=>g);if(n.length<2)return t;let s=e.match(/inset/gi)||[];if(s.length>1)return t;let a=s.length===1,l=e.replace(r,"").trim();a&&(l=l.replace("inset","").replace("INSET","").trim());let c=/^#([0-9a-f]{3}){1,2}$|^#([0-9a-f]{4}){1,2}$|^(?:rgb|hsl)a?\(?[\d*\.?\d+%?,?\/?\s]*\)$/gi,u=(l.match(c)||[]).map(g=>g?.trim()).filter(g=>g);if(u.length>1)return t;if(u.length===0&&(u=l.trim().split(" ").filter(g=>g),u.length>1))return t;let[d,f,m,h]=n;return{x:d,y:f,blur:m||t.blur,spread:h||t.spread,inset:a,color:l||t.color}}function oU(e){let t=`${e.x||"0px"} ${e.y||"0px"} ${e.blur||"0px"} ${e.spread||"0px"}`;return`${e.inset?"inset":""} ${t} ${e.color||""}`.trim()}var Ce=i(x(),1),{Menu:pb}=tt(Fe.privateApis),r1e=[{label:(0,jt.__)("Rename"),action:"rename"},{label:(0,jt.__)("Delete"),action:"delete"}],o1e=[{label:(0,jt.__)("Reset"),action:"reset"}];function nU(){let{goBack:e,params:t}=(0,Fe.useNavigator)(),{category:r,slug:o}=t,[n,s]=me(`shadow.presets.${r}`);(0,Is.useEffect)(()=>{let T=n?.some(C=>C.slug===o);o&&!T&&e()},[n,o,e]);let[a]=me(`shadow.presets.${r}`,void 0,"base"),[l,c]=(0,Is.useState)(()=>(n||[]).find(T=>T.slug===o)),u=(0,Is.useMemo)(()=>(a||[]).find(T=>T.slug===o),[a,o]),[d,f]=(0,Is.useState)(!1),[m,h]=(0,Is.useState)(!1),[g,y]=(0,Is.useState)(l?.name);if(!r||!o)return null;let v=T=>{c({...l,shadow:T});let C=n.map(A=>A.slug===o?{...l,shadow:T}:A);s(C)},b=T=>{if(T==="reset"){let C=n.map(A=>A.slug===o?u:A);c(u),s(C)}else T==="delete"?f(!0):T==="rename"&&h(!0)},S=()=>{s(n.filter(T=>T.slug!==o))},w=T=>{if(!T)return;let C=n.map(A=>A.slug===o?{...l,name:T}:A);c({...l,name:T}),s(C)};return l?(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsxs)(Fe.__experimentalHStack,{justify:"space-between",children:[(0,Ce.jsx)(yt,{title:l.name}),(0,Ce.jsx)(Fe.FlexItem,{children:(0,Ce.jsx)(Fe.__experimentalSpacer,{marginTop:2,marginBottom:0,paddingX:4,children:(0,Ce.jsxs)(pb,{children:[(0,Ce.jsx)(pb.TriggerButton,{render:(0,Ce.jsx)(Fe.Button,{size:"small",icon:Ir,label:(0,jt.__)("Menu")})}),(0,Ce.jsx)(pb.Popover,{children:(r==="custom"?r1e:o1e).map(T=>(0,Ce.jsx)(pb.Item,{onClick:()=>b(T.action),disabled:T.action==="reset"&&l.shadow===u?.shadow,children:(0,Ce.jsx)(pb.ItemLabel,{children:T.label})},T.action))})]})})})]}),(0,Ce.jsxs)(Ou,{children:[(0,Ce.jsx)(n1e,{shadow:l.shadow}),(0,Ce.jsx)(s1e,{shadow:l.shadow,onChange:v})]}),d&&(0,Ce.jsx)(Fe.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{S(),f(!1)},onCancel:()=>{f(!1)},confirmButtonText:(0,jt.__)("Delete"),size:"medium",children:(0,jt.sprintf)((0,jt.__)('Are you sure you want to delete "%s" shadow preset?'),l.name)}),m&&(0,Ce.jsx)(Fe.Modal,{title:(0,jt.__)("Rename"),onRequestClose:()=>h(!1),size:"small",children:(0,Ce.jsxs)("form",{onSubmit:T=>{T.preventDefault(),w(g),h(!1)},children:[(0,Ce.jsx)(Fe.__experimentalInputControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,jt.__)("Name"),placeholder:(0,jt.__)("Shadow name"),value:g??"",onChange:y}),(0,Ce.jsx)(Fe.__experimentalSpacer,{marginBottom:6}),(0,Ce.jsxs)(Fe.Flex,{className:"block-editor-shadow-edit-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Ce.jsx)(Fe.FlexItem,{children:(0,Ce.jsx)(Fe.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>h(!1),children:(0,jt.__)("Cancel")})}),(0,Ce.jsx)(Fe.FlexItem,{children:(0,Ce.jsx)(Fe.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,jt.__)("Save")})})]})]})})]}):(0,Ce.jsx)(yt,{title:""})}function n1e({shadow:e}){return(0,Ce.jsx)(Fe.__experimentalSpacer,{marginBottom:4,marginTop:-2,children:(0,Ce.jsx)(Fe.__experimentalHStack,{alignment:"center",justify:"center",className:"global-styles-ui__shadow-preview-panel",children:(0,Ce.jsx)("div",{className:"global-styles-ui__shadow-preview-block",style:{boxShadow:e}})})})}function s1e({shadow:e,onChange:t}){let r=(0,Is.useRef)(null),o=(0,Is.useMemo)(()=>tU(e),[e]),n=(l,c)=>{let u=[...o];u[l]=c,t(u.join(", "))},s=()=>{t([...o,l6].join(", "))},a=l=>{t(o.filter((c,u)=>u!==l).join(", ")),r.current?.focus()};return(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(Fe.__experimentalVStack,{spacing:2,children:(0,Ce.jsxs)(Fe.__experimentalHStack,{justify:"space-between",children:[(0,Ce.jsx)(Cr,{level:3,children:(0,jt.__)("Shadows")}),(0,Ce.jsx)(Fe.FlexItem,{className:"global-styles-ui__shadows-panel__options-container",children:(0,Ce.jsx)(Fe.Button,{size:"small",icon:wl,label:(0,jt.__)("Add shadow"),onClick:()=>{s()},ref:r})})]})}),(0,Ce.jsx)(Fe.__experimentalSpacer,{}),(0,Ce.jsx)(Fe.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:o.map((l,c)=>(0,Ce.jsx)(i1e,{shadow:l,onChange:u=>n(c,u),canRemove:o.length>1,onRemove:()=>a(c)},c))})]})}function i1e({shadow:e,onChange:t,canRemove:r,onRemove:o}){let n={placement:"left-start",offset:36,shift:!0},s=(0,Is.useMemo)(()=>rU(e),[e]),a=l=>{t(oU(l))};return(0,Ce.jsx)(Fe.Dropdown,{popoverProps:n,className:"global-styles-ui__shadow-editor__dropdown",renderToggle:({onToggle:l,isOpen:c})=>{let u={onClick:l,className:re("global-styles-ui__shadow-editor__dropdown-toggle",{"is-open":c}),"aria-expanded":c},d={onClick:()=>{c&&l(),o()},className:re("global-styles-ui__shadow-editor__remove-button",{"is-open":c}),label:(0,jt.__)("Remove shadow")};return(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(Fe.Button,{__next40pxDefaultSize:!0,icon:Nv,...u,children:s.inset?(0,jt.__)("Inner shadow"):(0,jt.__)("Drop shadow")}),r&&(0,Ce.jsx)(Fe.Button,{size:"small",icon:SR,...d})]})},renderContent:()=>(0,Ce.jsx)(Fe.__experimentalDropdownContentWrapper,{paddingSize:"medium",className:"global-styles-ui__shadow-editor__dropdown-content",children:(0,Ce.jsx)(a1e,{shadowObj:s,onChange:a})})})}function a1e({shadowObj:e,onChange:t}){let n=(s,a)=>{let l={...e,[s]:a};t(l)};return(0,Ce.jsxs)(Fe.__experimentalVStack,{spacing:4,className:"global-styles-ui__shadow-editor-panel",children:[(0,Ce.jsx)(Fe.ColorPalette,{clearable:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,value:e.color,onChange:s=>n("color",s)}),(0,Ce.jsxs)(Fe.__experimentalToggleGroupControl,{label:(0,jt.__)("Shadow Type"),value:e.inset?"inset":"outset",isBlock:!0,onChange:s=>n("inset",s==="inset"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,children:[(0,Ce.jsx)(Fe.__experimentalToggleGroupControlOption,{value:"outset",label:(0,jt.__)("Outset")}),(0,Ce.jsx)(Fe.__experimentalToggleGroupControlOption,{value:"inset",label:(0,jt.__)("Inset")})]}),(0,Ce.jsxs)(Fe.__experimentalGrid,{columns:2,gap:4,children:[(0,Ce.jsx)(hx,{label:(0,jt.__)("X Position"),value:e.x,onChange:s=>n("x",s)}),(0,Ce.jsx)(hx,{label:(0,jt.__)("Y Position"),value:e.y,onChange:s=>n("y",s)}),(0,Ce.jsx)(hx,{label:(0,jt.__)("Blur"),value:e.blur,onChange:s=>n("blur",s)}),(0,Ce.jsx)(hx,{label:(0,jt.__)("Spread"),value:e.spread,onChange:s=>n("spread",s)})]})]})}function hx({label:e,value:t,onChange:r}){return(0,Ce.jsx)(Fe.__experimentalUnitControl,{label:e,__next40pxDefaultSize:!0,value:t,onChange:n=>{let a=n!==void 0&&!isNaN(parseFloat(n))?n:"0px";r(a)}})}var c6=i(x(),1);function sU(){return(0,c6.jsx)(eU,{})}function iU(){return(0,c6.jsx)(nU,{})}var uU=i(E(),1),dU=i($(),1);var aU=i($(),1),u6=i(N(),1);var lU=i(x(),1),{useSettingsForBlockElement:l1e,DimensionsPanel:c1e}=tt(aU.privateApis),u1e={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,height:!0,minHeight:!0,width:!0,childLayout:!1};function cU(){let[e]=Ee("",void 0,"user",!1),[t,r]=Ee("",void 0,"merged",!1),[o]=me("",void 0,"user"),[n,s]=me(""),a=l1e(n),l=(0,u6.useMemo)(()=>({...t,layout:a.layout}),[t,a.layout]),c=(0,u6.useMemo)(()=>({...e,layout:o.layout}),[e,o.layout]);return(0,lU.jsx)(c1e,{inheritedValue:l,value:c,onChange:d=>{let f={...d};if(delete f.layout,r(f),d.layout!==o.layout){let m={...o,layout:d.layout};m.layout?.definitions&&delete m.layout.definitions,s(m)}},settings:a,includeLayoutControls:!0,defaultControls:u1e})}var Nf=i(x(),1),{useHasDimensionsPanel:d1e,useSettingsForBlockElement:f1e}=tt(dU.privateApis);function m1e(){let[e]=me(""),t=f1e(e),r=d1e(t);return(0,Nf.jsxs)(Nf.Fragment,{children:[(0,Nf.jsx)(yt,{title:(0,uU.__)("Layout")}),r&&(0,Nf.jsx)(cU,{})]})}var fU=m1e;var bx=i(R(),1),f6=i(E(),1);var d6=i(E(),1),vU=i(R(),1);var mU=i(W(),1),pU=i(O(),1),vx=i(N(),1),hU=i(R(),1),gU=i(E(),1);var gx=i(x(),1);function p1e({gap:e=2}){let{user:t}=(0,vx.useContext)(Br),r=t?.styles,n=(0,pU.useSelect)(a=>{let l=a(mU.store).__experimentalGetCurrentThemeGlobalStylesVariations();return Array.isArray(l)?l:void 0},[])?.filter(a=>!Qy(a,["color"])&&!Qy(a,["typography","spacing"])),s=(0,vx.useMemo)(()=>[...[{title:(0,gU.__)("Default"),settings:{},styles:{}},...n??[]].map(l=>{let c=l?.styles?.blocks?{...l.styles.blocks}:{};r?.blocks&&Object.keys(r.blocks).forEach(m=>{if(r.blocks?.[m]?.css){let h=c[m]||{},g={css:`${c[m]?.css||""} ${r.blocks?.[m]?.css?.trim()||""}`};c[m]={...h,...g}}});let u=r?.css||l.styles?.css?{css:`${l.styles?.css||""} ${r?.css||""}`}:{},d=Object.keys(c).length>0?{blocks:c}:{},f={...l.styles,...u,...d};return{...l,settings:l.settings??{},styles:f}})],[n,r?.blocks,r?.css]);return!n||n.length<1?null:(0,gx.jsx)(hU.__experimentalGrid,{columns:2,className:"global-styles-ui-style-variations-container",gap:e,children:s.map((a,l)=>(0,gx.jsx)(Wp,{variation:a,children:c=>(0,gx.jsx)(Dw,{label:a?.title,withHoverView:!0,isFocused:c,variation:a})},l))})}var yx=p1e;var nh=i(x(),1);function yU(){return(0,nh.jsxs)(vU.__experimentalVStack,{spacing:10,className:"global-styles-ui-variation-container",children:[(0,nh.jsx)(yx,{gap:3}),(0,nh.jsx)(th,{title:(0,d6.__)("Color Variations"),gap:3}),(0,nh.jsx)(Yp,{title:(0,d6.__)("Typography"),gap:3})]})}var $l=i(x(),1);function h1e(){return(0,$l.jsxs)($l.Fragment,{children:[(0,$l.jsx)(yt,{title:(0,f6.__)("Browse styles"),description:(0,f6.__)("Choose a variation to change the look of the site.")}),(0,$l.jsx)(bx.Card,{size:"small",isBorderless:!0,className:"global-styles-ui-screen-style-variations",children:(0,$l.jsx)(bx.CardBody,{children:(0,$l.jsx)(yU,{})})})]})}var bU=h1e;var hb=i(E(),1),SU=i(R(),1),_U=i($(),1);var ui=i(x(),1),{AdvancedPanel:g1e}=tt(_U.privateApis);function v1e(){let[e]=Ee("",void 0,"user",!1),[t,r]=Ee("",void 0,"merged",!1);return(0,ui.jsxs)(ui.Fragment,{children:[(0,ui.jsx)(yt,{title:(0,hb.__)("Additional CSS"),description:(0,ui.jsxs)(ui.Fragment,{children:[(0,hb.__)("You can add custom CSS to further customize the appearance and layout of your site."),(0,ui.jsx)("br",{}),(0,ui.jsx)(SU.ExternalLink,{href:(0,hb.__)("https://developer.wordpress.org/advanced-administration/wordpress/css/"),className:"global-styles-ui-screen-css-help-link",children:(0,hb.__)("Learn more about CSS")})]})}),(0,ui.jsx)("div",{className:"global-styles-ui-screen-css",children:(0,ui.jsx)(g1e,{value:e,onChange:r,inheritedValue:t})})]})}var wU=v1e;var ec=i(E(),1),sh=i(R(),1),Bf=i(N(),1);var xU=i(O(),1),TU=i(W(),1),gb=i(N(),1);var y1e={per_page:-1,_fields:"id,name,avatar_urls",context:"view",capabilities:["edit_theme_options"]},b1e={per_page:100,page:1},Sx=[];function vb({query:e}={}){let{user:t}=(0,gb.useContext)(Br),r=(0,gb.useMemo)(()=>({...b1e,...e}),[e]),{authors:o,currentUser:n,isDirty:s,revisions:a,isLoadingGlobalStylesRevisions:l,revisionsCount:c}=(0,xU.useSelect)(u=>{let{__experimentalGetDirtyEntityRecords:d,getCurrentUser:f,getUsers:m,getRevisions:h,__experimentalGetCurrentGlobalStylesId:g,getEntityRecord:y,isResolving:v}=u(TU.store),b=d()||[],S=f(),w=b.length>0,T=g(),A=(T?y("root","globalStyles",T):void 0)?._links?.["version-history"]?.[0]?.count??0,F=T&&h("root","globalStyles",T,r)||Sx,L=m(y1e)||Sx,j=T?v("getRevisions",["root","globalStyles",T,r]):!1;return{authors:L,currentUser:S,isDirty:w,revisions:F,isLoadingGlobalStylesRevisions:j,revisionsCount:A}},[r]);return(0,gb.useMemo)(()=>{if(!o.length||l)return{revisions:Sx,hasUnsavedChanges:s,isLoading:!0,revisionsCount:c};let u=a.map(f=>({...f,author:o.find(m=>m.id===f.author)}));if(a.length){if(u[0].id!=="unsaved"&&r.page===1&&(u[0].isLatest=!0),s&&t&&Object.keys(t).length>0&&n&&r.page===1){let f={id:"unsaved",styles:t?.styles,settings:t?.settings,_links:t?._links,author:{name:n?.name||"",avatar_urls:n?.avatar_urls||{}},modified:new Date};u.unshift(f)}r.per_page&&r.page===Math.ceil(c/r.per_page)&&u.push({id:"parent",styles:{},settings:{}})}return{revisions:u,hasUnsavedChanges:s,isLoading:!1,revisionsCount:c}},[s,a,n,o,t,l,c,r.page,r.per_page])}var Lo=i(E(),1),yb=i(R(),1),ja=i(mo(),1),CU=i(W(),1),PU=i(O(),1);var _x=i(yo(),1),_o=i(x(),1),S1e=3600*1e3*24;function _1e({revision:e,previousRevision:t}){let r=Ay(e,t,{maxResults:7});return r.length?(0,_o.jsx)("ul",{"data-testid":"global-styles-revision-changes",className:"global-styles-ui-screen-revisions__changes",children:r.map(o=>(0,_o.jsx)("li",{children:o},o))}):null}function w1e(e,t,r,o){return e==="parent"?(0,Lo.__)("Reset the styles to the theme defaults"):e==="unsaved"?(0,Lo.sprintf)((0,Lo.__)("Unsaved changes by %s"),t):o?(0,Lo.sprintf)((0,Lo.__)("Changes saved by %1$s on %2$s. This revision matches current editor styles."),t,r):(0,Lo.sprintf)((0,Lo.__)("Changes saved by %1$s on %2$s"),t,r)}function x1e({userRevisions:e,selectedRevisionId:t,onChange:r,canApplyRevision:o,onApplyRevision:n}){let{currentThemeName:s,currentUser:a}=(0,PU.useSelect)(u=>{let{getCurrentTheme:d,getCurrentUser:f}=u(CU.store),m=d();return{currentThemeName:m?.name?.rendered||m?.stylesheet,currentUser:f()}},[]),l=(0,ja.getDate)(null).getTime(),{datetimeAbbreviated:c}=(0,ja.getSettings)().formats;return(0,_o.jsx)(yb.Composite,{orientation:"vertical",className:"global-styles-ui-screen-revisions__revisions-list","aria-label":(0,Lo.__)("Global styles revisions list"),role:"listbox",children:e.map((u,d)=>{let{id:f,author:m,modified:h}=u,g=f==="unsaved",y=g?a:m,v=y?.name||(0,Lo.__)("User"),b=y?.avatar_urls?.["48"],w=t?t===f:d===0,T=!o&&w,C=f==="parent",A=h instanceof Date?h.toISOString():h,F=(0,ja.getDate)(A??null),L=A&&l-F.getTime()>S1e?(0,ja.dateI18n)(c,F):(0,ja.humanTimeDiff)(A??F,void 0),j=w1e(f,v,(0,ja.dateI18n)(c,F),T);return(0,_o.jsxs)(yb.Composite.Item,{className:"global-styles-ui-screen-revisions__revision-item","aria-current":w,role:"option",onKeyDown:z=>{let{keyCode:M}=z;(M===_x.ENTER||M===_x.SPACE)&&r(u)},onClick:z=>{z.preventDefault(),r(u)},"aria-selected":w,"aria-label":j,render:(0,_o.jsx)("div",{}),children:[(0,_o.jsx)("span",{className:"global-styles-ui-screen-revisions__revision-item-wrapper",children:C?(0,_o.jsxs)("span",{className:"global-styles-ui-screen-revisions__description",children:[(0,Lo.__)("Default styles"),(0,_o.jsx)("span",{className:"global-styles-ui-screen-revisions__meta",children:s})]}):(0,_o.jsxs)("span",{className:"global-styles-ui-screen-revisions__description",children:[g?(0,_o.jsx)("span",{className:"global-styles-ui-screen-revisions__date",children:(0,Lo.__)("(Unsaved)")}):(0,_o.jsx)("time",{className:"global-styles-ui-screen-revisions__date",dateTime:A,children:L}),(0,_o.jsxs)("span",{className:"global-styles-ui-screen-revisions__meta",children:[(0,_o.jsx)("img",{alt:v,src:b}),v]}),w&&(0,_o.jsx)(_1e,{revision:u,previousRevision:d<e.length?e[d+1]:void 0})]})}),w&&(T?(0,_o.jsx)("p",{className:"global-styles-ui-screen-revisions__applied-text",children:(0,Lo.__)("These styles are already applied to your site.")}):(0,_o.jsx)(yb.Button,{size:"compact",variant:"primary",className:"global-styles-ui-screen-revisions__apply-button",onClick:n,"aria-label":(0,Lo.__)("Apply the selected revision to your site."),children:C?(0,Lo.__)("Reset to defaults"):(0,Lo.__)("Apply")}))]},f)})})}var kU=x1e;var di=i(R(),1),wo=i(E(),1);var qi=i(x(),1);function EU({currentPage:e,numPages:t,changePage:r,totalItems:o,className:n,disabled:s=!1,buttonVariant:a="tertiary",label:l=(0,wo.__)("Pagination")}){return(0,qi.jsxs)(di.__experimentalHStack,{expanded:!1,as:"nav","aria-label":l,spacing:3,justify:"flex-start",className:re("global-styles-ui-pagination",n),children:[(0,qi.jsx)(di.__experimentalText,{variant:"muted",className:"global-styles-ui-pagination__total",children:(0,wo.sprintf)((0,wo._n)("%d item","%d items",o),o)}),(0,qi.jsxs)(di.__experimentalHStack,{expanded:!1,spacing:1,children:[(0,qi.jsx)(di.Button,{variant:a,onClick:()=>r(1),accessibleWhenDisabled:!0,disabled:s||e===1,label:(0,wo.__)("First page"),icon:(0,wo.isRTL)()?_l:xl,size:"compact"}),(0,qi.jsx)(di.Button,{variant:a,onClick:()=>r(e-1),accessibleWhenDisabled:!0,disabled:s||e===1,label:(0,wo.__)("Previous page"),icon:(0,wo.isRTL)()?Yt:Wt,size:"compact"})]}),(0,qi.jsx)(di.__experimentalText,{variant:"muted",children:(0,wo.sprintf)((0,wo._x)("%1$d of %2$d","paging"),e,t)}),(0,qi.jsxs)(di.__experimentalHStack,{expanded:!1,spacing:1,children:[(0,qi.jsx)(di.Button,{variant:a,onClick:()=>r(e+1),accessibleWhenDisabled:!0,disabled:s||e===t,label:(0,wo.__)("Next page"),icon:(0,wo.isRTL)()?Wt:Yt,size:"compact"}),(0,qi.jsx)(di.Button,{variant:a,onClick:()=>r(t),accessibleWhenDisabled:!0,disabled:s||e===t,label:(0,wo.__)("Last page"),icon:(0,wo.isRTL)()?xl:_l,size:"compact"})]})]})}var Zi=i(x(),1),AU=10;function T1e({onClose:e}={}){let{user:t,onChange:r}=(0,Bf.useContext)(Br),{params:o,goTo:n}=(0,sh.useNavigator)(),{revisionId:s}=o,[a,l]=(0,Bf.useState)(1),{revisions:c,isLoading:u,hasUnsavedChanges:d,revisionsCount:f}=vb({query:{per_page:AU,page:a}}),m=Math.ceil(f/AU),[h,g]=(0,Bf.useState)(!1),y=(0,Bf.useMemo)(()=>s&&c.find(L=>String(L.id)===String(s))||t,[s,c,t]),v=cf(y,t),b=()=>{e&&e()},S=F=>{r(F),g(!1),b()},w=F=>{n(`/revisions/${F.id}`)},T=y?.id??c[0]?.id,C=!!T&&T!=="unsaved"&&!v,A=!!c.length;return(0,Zi.jsxs)(Zi.Fragment,{children:[(0,Zi.jsx)(yt,{title:f?(0,ec.sprintf)((0,ec.__)("Revisions (%d)"),f):(0,ec.__)("Revisions"),description:(0,ec.__)(`Click on previously saved styles to preview them. To restore a selected version to the editor, hit "Apply." When you're ready, use the Save button to save your changes.`),onBack:b}),!A&&(0,Zi.jsx)(sh.Spinner,{className:"global-styles-ui-screen-revisions__loading"}),(0,Zi.jsx)(kU,{onChange:w,selectedRevisionId:T,userRevisions:c,canApplyRevision:C,onApplyRevision:()=>d?g(!0):S(y)}),m>1&&(0,Zi.jsx)("div",{className:"global-styles-ui-screen-revisions__footer",children:(0,Zi.jsx)(EU,{className:"global-styles-ui-screen-revisions__pagination",currentPage:a,numPages:m,changePage:l,totalItems:f,disabled:u,label:(0,ec.__)("Global Styles pagination")})}),h&&(0,Zi.jsx)(sh.__experimentalConfirmDialog,{isOpen:h,confirmButtonText:(0,ec.__)("Apply"),onConfirm:()=>S(y),onCancel:()=>g(!1),size:"medium",children:(0,ec.__)("Are you sure you want to apply this revision? Any unsaved changes will be lost.")})]})}var RU=T1e;var ro=i(E(),1),Pr=i(R(),1);var BU=i(N(),1);var OU=i(R(),1),IU=i(E(),1),FU=i(x(),1);function C1e({text:e,confirmButtonText:t,isOpen:r,toggleOpen:o,onConfirm:n}){let s=async()=>{o(),n()},a=()=>{o()};return(0,FU.jsx)(OU.__experimentalConfirmDialog,{isOpen:r,cancelButtonText:(0,IU.__)("Cancel"),confirmButtonText:t,onCancel:a,onConfirm:s,size:"medium",children:e})}var NU=C1e;var bt=i(x(),1),{Menu:bb}=tt(Pr.privateApis);function m6({label:e,origin:t,sizes:r,handleAddFontSize:o,handleResetFontSizes:n}){let[s,a]=(0,BU.useState)(!1),l=()=>a(!s),c=t==="custom"?(0,ro.__)("Are you sure you want to remove all custom font size presets?"):(0,ro.__)("Are you sure you want to reset all font size presets to their default values?");return(0,bt.jsxs)(bt.Fragment,{children:[n&&s&&(0,bt.jsx)(NU,{text:c,confirmButtonText:t==="custom"?(0,ro.__)("Remove"):(0,ro.__)("Reset"),isOpen:s,toggleOpen:l,onConfirm:n}),(0,bt.jsxs)(Pr.__experimentalVStack,{spacing:4,children:[(0,bt.jsxs)(Pr.__experimentalHStack,{children:[(0,bt.jsx)(Cr,{level:3,children:e}),(0,bt.jsxs)(Pr.FlexItem,{className:"global-styles-ui__typography-panel__options-container",children:[t==="custom"&&(0,bt.jsx)(Pr.Button,{label:(0,ro.__)("Add font size"),icon:wl,size:"small",onClick:o}),!!n&&(0,bt.jsxs)(bb,{children:[(0,bt.jsx)(bb.TriggerButton,{render:(0,bt.jsx)(Pr.Button,{size:"small",icon:Ir,label:(0,ro.__)("Font size presets options")})}),(0,bt.jsx)(bb.Popover,{children:(0,bt.jsx)(bb.Item,{onClick:l,children:(0,bt.jsx)(bb.ItemLabel,{children:t==="custom"?(0,ro.__)("Remove font size presets"):(0,ro.__)("Reset font size presets")})})})]})]})]}),!!r.length&&(0,bt.jsx)(Pr.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:r.map(u=>(0,bt.jsx)(fr,{path:`/typography/font-sizes/${t}/${u.slug}`,children:(0,bt.jsxs)(Pr.__experimentalHStack,{children:[(0,bt.jsx)(Pr.FlexItem,{className:"global-styles-ui-font-size__item",children:u.name}),(0,bt.jsx)(Pr.FlexItem,{display:"flex",children:(0,bt.jsx)(Oo,{icon:(0,ro.isRTL)()?Wt:Yt})})]})},u.slug))})]})]})}function P1e(){let[e,t]=me("typography.fontSizes.theme"),[r]=me("typography.fontSizes.theme","base"),[o,n]=me("typography.fontSizes.default"),[s]=me("typography.fontSizes.default","base"),[a=[],l]=me("typography.fontSizes.custom"),[c]=me("typography.defaultFontSizes"),u=()=>{let f=Fw(a,"custom-"),m={name:(0,ro.sprintf)((0,ro.__)("New Font Size %d"),f),size:"16px",slug:`custom-${f}`};l([...a,m])},d=(f,m)=>f.map(h=>h.size).join("")===m.map(h=>h.size).join("");return(0,bt.jsxs)(Pr.__experimentalVStack,{spacing:2,children:[(0,bt.jsx)(yt,{title:(0,ro.__)("Font size presets"),description:(0,ro.__)("Create and edit the presets used for font sizes across the site.")}),(0,bt.jsx)(Pr.__experimentalView,{children:(0,bt.jsx)(Pr.__experimentalSpacer,{paddingX:4,children:(0,bt.jsxs)(Pr.__experimentalVStack,{spacing:8,children:[!!e?.length&&(0,bt.jsx)(m6,{label:(0,ro.__)("Theme"),origin:"theme",sizes:e,handleAddFontSize:u,handleResetFontSizes:d(e,r)?void 0:()=>t(r)}),c&&!!o?.length&&(0,bt.jsx)(m6,{label:(0,ro.__)("Default"),origin:"default",sizes:o,handleAddFontSize:u,handleResetFontSizes:d(o,s)?void 0:()=>n(s)}),(0,bt.jsx)(m6,{label:(0,ro.__)("Custom"),origin:"custom",sizes:a,handleAddFontSize:u,handleResetFontSizes:a.length>0?()=>l([]):void 0})]})})})]})}var DU=P1e;var os=i(E(),1),kr=i(R(),1);var Sb=i(N(),1);var LU=i($(),1),MU=i(E(),1);var VU=i(x(),1);function k1e({fontSize:e}){let[t]=Ee("typography"),r=typeof e?.fluid=="object"&&e?.fluid?.min&&e?.fluid?.max?{minimumFontSize:e.fluid.min,maximumFontSize:e.fluid.max}:{fontSize:e.size},o=(0,LU.getComputedFluidTypographyValue)(r);return(0,VU.jsx)("div",{className:"global-styles-ui-typography-preview",style:{fontSize:o,fontFamily:t?.fontFamily??"serif"},children:(0,MU.__)("Aa")})}var jU=k1e;var zU=i(R(),1),ih=i(E(),1),UU=i(x(),1);function E1e({fontSize:e,isOpen:t,toggleOpen:r,handleRemoveFontSize:o}){let n=async()=>{r(),o(e)},s=()=>{r()};return(0,UU.jsx)(zU.__experimentalConfirmDialog,{isOpen:t,cancelButtonText:(0,ih.__)("Cancel"),confirmButtonText:(0,ih.__)("Delete"),onCancel:s,onConfirm:n,size:"medium",children:e&&(0,ih.sprintf)((0,ih.__)('Are you sure you want to delete "%s" font size preset?'),e.name)})}var HU=E1e;var Ki=i(R(),1),ah=i(E(),1),GU=i(N(),1),tc=i(x(),1);function A1e({fontSize:e,toggleOpen:t,handleRename:r}){let[o,n]=(0,GU.useState)(e.name),s=()=>{o&&o.trim()&&r(o),t()};return(0,tc.jsx)(Ki.Modal,{onRequestClose:t,focusOnMount:"firstContentElement",title:(0,ah.__)("Rename"),size:"small",children:(0,tc.jsx)("form",{onSubmit:a=>{a.preventDefault(),s(),t()},children:(0,tc.jsxs)(Ki.__experimentalVStack,{spacing:"3",children:[(0,tc.jsx)(Ki.__experimentalInputControl,{__next40pxDefaultSize:!0,autoComplete:"off",value:o,onChange:n,label:(0,ah.__)("Name"),placeholder:(0,ah.__)("Font size preset name")}),(0,tc.jsxs)(Ki.__experimentalHStack,{justify:"right",children:[(0,tc.jsx)(Ki.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,ah.__)("Cancel")}),(0,tc.jsx)(Ki.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,ah.__)("Save")})]})]})})})}var WU=A1e;var oo=i(R(),1),rc=i(x(),1),R1e=["px","em","rem","vw","vh"];function wx(e){let{baseControlProps:t}=(0,oo.useBaseControlProps)(e),{value:r,onChange:o,fallbackValue:n,disabled:s,label:a}=e,l=(0,oo.__experimentalUseCustomUnits)({availableUnits:R1e}),[c,u="px"]=(0,oo.__experimentalParseQuantityAndUnitFromRawValue)(r,l),d=!!u&&["em","rem","vw","vh"].includes(u);return(0,rc.jsx)(oo.BaseControl,{...t,children:(0,rc.jsxs)(oo.Flex,{children:[(0,rc.jsx)(oo.FlexItem,{isBlock:!0,children:(0,rc.jsx)(oo.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:a,hideLabelFromVision:!0,value:r,onChange:h=>{o?.(h)},units:l,min:0,disabled:s})}),(0,rc.jsx)(oo.FlexItem,{isBlock:!0,children:(0,rc.jsx)(oo.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,rc.jsx)(oo.RangeControl,{__next40pxDefaultSize:!0,label:a,hideLabelFromVision:!0,value:c,initialPosition:n,withInputField:!1,onChange:h=>{o?.(h!==void 0?h+u:void 0)},min:0,max:d?10:100,step:d?.1:1,disabled:s})})})]})})}var mt=i(x(),1),{Menu:Df}=tt(kr.privateApis);function O1e(){let[e,t]=(0,Sb.useState)(!1),[r,o]=(0,Sb.useState)(!1),{params:{origin:n,slug:s},goBack:a}=(0,kr.useNavigator)(),[l,c]=me("typography.fontSizes"),[u]=me("typography.fluid"),d=l?.[n]??[],f=d.find(L=>L.slug===s);if((0,Sb.useEffect)(()=>{s&&!f&&a()},[s,f,a]),!n||!s||!f)return null;let m=f?.fluid!==void 0?!!f.fluid:!!u,h=typeof f?.fluid=="object",g=L=>{T("name",L)},y=L=>{T("size",L)},v=L=>{T("fluid",L)},b=L=>{L?T("fluid",{min:f.size,max:f.size}):T("fluid",!0)},S=L=>{let j=typeof f.fluid=="object"?f.fluid:{};T("fluid",{...j,min:L})},w=L=>{let j=typeof f.fluid=="object"?f.fluid:{};T("fluid",{...j,max:L})},T=(L,j)=>{let z=d.map(M=>M.slug===s?{...M,[L]:j}:M);c({...l,[n]:z})},C=()=>{let L=d.filter(j=>j.slug!==s);c({...l,[n]:L})},A=()=>{t(!e)},F=()=>{o(!r)};return(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)(HU,{fontSize:f,isOpen:e,toggleOpen:A,handleRemoveFontSize:C}),r&&(0,mt.jsx)(WU,{fontSize:f,toggleOpen:F,handleRename:g}),(0,mt.jsxs)(kr.__experimentalVStack,{spacing:4,children:[(0,mt.jsxs)(kr.__experimentalHStack,{justify:"space-between",alignment:"flex-start",children:[(0,mt.jsx)(yt,{title:f.name,description:(0,os.sprintf)((0,os.__)("Manage the font size %s."),f.name)}),n==="custom"&&(0,mt.jsx)(kr.FlexItem,{children:(0,mt.jsx)(kr.__experimentalSpacer,{marginTop:3,marginBottom:0,paddingX:4,children:(0,mt.jsxs)(Df,{children:[(0,mt.jsx)(Df.TriggerButton,{render:(0,mt.jsx)(kr.Button,{size:"small",icon:Ir,label:(0,os.__)("Font size options")})}),(0,mt.jsxs)(Df.Popover,{children:[(0,mt.jsx)(Df.Item,{onClick:F,children:(0,mt.jsx)(Df.ItemLabel,{children:(0,os.__)("Rename")})}),(0,mt.jsx)(Df.Item,{onClick:A,children:(0,mt.jsx)(Df.ItemLabel,{children:(0,os.__)("Delete")})})]})]})})})]}),(0,mt.jsx)(kr.__experimentalView,{children:(0,mt.jsx)(kr.__experimentalSpacer,{paddingX:4,marginBottom:0,paddingBottom:6,children:(0,mt.jsxs)(kr.__experimentalVStack,{spacing:4,children:[(0,mt.jsx)(kr.FlexItem,{children:(0,mt.jsx)(jU,{fontSize:f})}),(0,mt.jsx)(wx,{label:(0,os.__)("Size"),value:!h&&f.size?String(f.size):"",onChange:y,disabled:h}),(0,mt.jsx)(kr.ToggleControl,{label:(0,os.__)("Fluid typography"),help:(0,os.__)("Scale the font size dynamically to fit the screen or viewport."),checked:m,onChange:v}),m&&(0,mt.jsx)(kr.ToggleControl,{label:(0,os.__)("Custom fluid values"),help:(0,os.__)("Set custom min and max values for the fluid font size."),checked:h,onChange:b}),h&&(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)(wx,{label:(0,os.__)("Minimum"),value:typeof f?.fluid=="object"?f.fluid?.min:void 0,onChange:S}),(0,mt.jsx)(wx,{label:(0,os.__)("Maximum"),value:typeof f?.fluid=="object"?f.fluid?.max:void 0,onChange:w})]})]})})})]})]})}var YU=O1e;var Re=i(x(),1);function I1e({parentMenu:e,blockStyles:t,blockName:r}){return(0,Re.jsx)(Re.Fragment,{children:t.map((o,n)=>(0,Re.jsx)(lh.Navigator.Screen,{path:e+"/variations/"+o.name,children:(0,Re.jsx)(XI,{name:r,variation:o.name})},n))})}function F1e({name:e,parentMenu:t=""}){let r=(0,qU.useSelect)(o=>{if(!e)return[];let{getBlockStyles:n}=o(xx.store);return n(e)},[e]);return r?.length?(0,Re.jsx)(I1e,{parentMenu:t,blockStyles:r,blockName:e||""}):null}function h6({value:e,baseValue:t,onChange:r,path:o,onPathChange:n,fontLibraryEnabled:s=!1,serverCSS:a,serverSettings:l}){let c=(0,xx.getBlockTypes)(),u=(0,Lu.useMemo)(()=>go(t,e),[t,e]),[d,f]=Iy(u,[],{styleOptions:{variationStyles:!0}}),m=(0,Lu.useMemo)(()=>[...a??[],...d??[]],[a,d]),h=(0,Lu.useMemo)(()=>({...l,__experimentalFeatures:f,styles:m}),[f,l,m]);return(0,Re.jsx)(Ky,{value:e,baseValue:t,onChange:r,fontLibraryEnabled:s,children:(0,Re.jsx)(ZU.BlockEditorProvider,{settings:h,children:(0,Re.jsxs)(lh.Navigator,{className:"global-styles-ui-sidebar__navigator-provider",initialPath:o||"/",children:[(o||n)&&(0,Re.jsx)(N1e,{path:o,onPathChange:n}),(0,Re.jsx)(Zr,{path:"/",children:(0,Re.jsx)(M9,{})}),(0,Re.jsx)(Zr,{path:"/colors",children:(0,Re.jsx)(Iz,{})}),(0,Re.jsx)(Zr,{path:"/typography",children:(0,Re.jsx)(vz,{})}),(0,Re.jsx)(Zr,{path:"/typography/font-sizes",children:(0,Re.jsx)(DU,{})}),(0,Re.jsx)(Zr,{path:"/typography/font-sizes/:origin/:slug",children:(0,Re.jsx)(YU,{})}),(0,Re.jsx)(Zr,{path:"/layout",children:(0,Re.jsx)(fU,{})}),(0,Re.jsx)(Zr,{path:"/colors/palette",children:(0,Re.jsx)(Uz,{})}),(0,Re.jsx)(Zr,{path:"/variations",children:(0,Re.jsx)(bU,{})}),(0,Re.jsx)(Zr,{path:"/css",children:(0,Re.jsx)(wU,{})}),(0,Re.jsx)(Zr,{path:"/revisions/:revisionId?",children:(0,Re.jsx)(RU,{})}),(0,Re.jsx)(Zr,{path:"/shadows",children:(0,Re.jsx)(sU,{})}),(0,Re.jsx)(Zr,{path:"/shadows/edit/:category/:slug",children:(0,Re.jsx)(iU,{})}),(0,Re.jsx)(Zr,{path:"/background",children:(0,Re.jsx)(Zz,{})}),(0,Re.jsx)(Zr,{path:"/typography/text",children:(0,Re.jsx)($p,{element:"text"})}),(0,Re.jsx)(Zr,{path:"/typography/link",children:(0,Re.jsx)($p,{element:"link"})}),(0,Re.jsx)(Zr,{path:"/typography/heading",children:(0,Re.jsx)($p,{element:"heading"})}),(0,Re.jsx)(Zr,{path:"/typography/caption",children:(0,Re.jsx)($p,{element:"caption"})}),(0,Re.jsx)(Zr,{path:"/typography/button",children:(0,Re.jsx)($p,{element:"button"})}),(0,Re.jsx)(Zr,{path:"/blocks",children:(0,Re.jsx)(W9,{})}),c.map(g=>(0,Re.jsxs)(Lu.Fragment,{children:[(0,Re.jsx)(Zr,{path:"/blocks/"+encodeURIComponent(g.name),children:(0,Re.jsx)(XI,{name:g.name})}),(0,Re.jsx)(F1e,{name:g.name,parentMenu:"/blocks/"+encodeURIComponent(g.name)})]},g.name))]})})})}function Zr({path:e,children:t}){return(0,Re.jsx)(lh.Navigator.Screen,{className:"global-styles-ui-sidebar__navigator-screen",path:e,children:t})}function N1e({path:e,onPathChange:t}){let r=(0,lh.useNavigator)(),{path:o}=r.location,n=(0,p6.usePrevious)(e),s=(0,p6.usePrevious)(o);return(0,Lu.useEffect)(()=>{e&&e!==o&&(e!==n?r.goTo(e):o!==s&&t&&t(o??"/"))},[t,e,s,n,o,r]),null}var g6=i(x(),1);function ch(e){return function({value:r,baseValue:o,onChange:n,...s}){return(0,g6.jsx)(Ky,{value:r,baseValue:o,onChange:n,children:(0,g6.jsx)(e,{...s})})}}var B1e=ch(yx);var D1e=ch(th);var L1e=ch(Yp);var M1e=i(x(),1);var oH=i(Hd(),1);var KU=i(O(),1),XU=i(N(),1),QU=i($(),1),JU=i(pe(),1);function $U({path:e,onPathChange:t}){let{selectedBlockName:r,selectedBlockClientId:o}=(0,KU.useSelect)(a=>{let{getSelectedBlockClientId:l,getBlockName:c}=a(QU.store),u=l();return{selectedBlockName:c(u),selectedBlockClientId:u}},[]),n=!0,s=(0,JU.usePrevious)(o);return(0,XU.useEffect)(()=>{if(o===s||!o||!n||!e||e!=="/blocks"&&!e.startsWith("/blocks/"))return;let a="/blocks/"+encodeURIComponent(r);a!==e&&t?.(a)},[o,s,r,n,e,t]),null}var Lf=i(N(),1);var uh=i(W(),1),dh=i(O(),1),eH=i($(),1);var{cleanEmptyObject:v6}=D(eH.privateApis);function V1e(){let{globalStylesId:e,isReady:t,settings:r,styles:o,_links:n}=(0,dh.useSelect)(u=>{let{getEntityRecord:d,getEditedEntityRecord:f,hasFinishedResolution:m,canUser:h}=u(uh.store),g=u(uh.store).__experimentalGetCurrentGlobalStylesId(),y,v=g?h("update",{kind:"root",name:"globalStyles",id:g}):null;g&&typeof v=="boolean"&&(v?y=f("root","globalStyles",g):y=d("root","globalStyles",g,{context:"view"}));let b=!1;return m("__experimentalGetCurrentGlobalStylesId")&&(g?b=v?m("getEditedEntityRecord",["root","globalStyles",g]):m("getEntityRecord",["root","globalStyles",g,{context:"view"}]):b=!0),{globalStylesId:g,isReady:b,settings:y?.settings,styles:y?.styles,_links:y?._links}},[]),{getEditedEntityRecord:s}=(0,dh.useSelect)(uh.store),{editEntityRecord:a}=(0,dh.useDispatch)(uh.store),l=(0,Lf.useMemo)(()=>({settings:r??{},styles:o??{},_links:n??{}}),[r,o,n]),c=(0,Lf.useCallback)((u,d={})=>{let f=s("root","globalStyles",e),m={styles:f?.styles??{},settings:f?.settings??{},_links:f?._links??{}},h=typeof u=="function"?u(m):u;a("root","globalStyles",e,{styles:v6(h.styles)||{},settings:v6(h.settings)||{},_links:v6(h._links)||{}},d)},[e,a,s]);return[t,l,c]}function j1e(){let e=(0,dh.useSelect)(t=>t(uh.store).__experimentalGetCurrentThemeBaseGlobalStyles(),[]);return[!!e,e]}function xo(){let[e,t,r]=V1e(),[o,n]=j1e();return{merged:(0,Lf.useMemo)(()=>!e||!o?{}:go(n||{},t),[e,o,n,t]),base:n||{},user:t,setUser:r,isReady:e&&o}}function Mu(e,t){let{merged:r}=xo();return(0,Lf.useMemo)(()=>Py(r,e,t),[r,e,t])}function y6(e,t){let{merged:r}=xo();return(0,Lf.useMemo)(()=>lf(r,e,t),[r,e,t])}var Mf=i(x(),1);function z1e(){let{styles:e,__unstableResolvedAssets:t,colors:r,gradients:o,__experimentalDiscussionSettings:n,mediaUploadHandler:s,fontLibraryEnabled:a}=(0,rH.useSelect)(u=>{let{getEditorSettings:d}=u(_),{canUser:f}=u(tH.store),m=d(),h=f("create",{kind:"postType",name:"attachment"});return{styles:m?.styles,__unstableResolvedAssets:m?.__unstableResolvedAssets,colors:m?.colors,gradients:m?.gradients,__experimentalDiscussionSettings:m?.__experimentalDiscussionSettings,mediaUploadHandler:h?oH.uploadMedia:void 0,fontLibraryEnabled:m?.fontLibraryEnabled??!0}},[]),l=(0,b6.useMemo)(()=>e?e.filter(u=>!u.isGlobalStyles):[],[e]),c=(0,b6.useMemo)(()=>({__unstableResolvedAssets:t,settings:{color:{palette:{theme:r??[]},gradients:{theme:o??[]},duotone:{theme:[]}}},__experimentalDiscussionSettings:n,mediaUpload:s}),[t,r,o,n,s]);return{serverCSS:l,serverSettings:c,fontLibraryEnabled:a}}function Tx({path:e,onPathChange:t}){let{user:r,base:o,setUser:n,isReady:s}=xo(),{serverCSS:a,serverSettings:l,fontLibraryEnabled:c}=z1e();return s?(0,Mf.jsxs)(Mf.Fragment,{children:[(0,Mf.jsx)(h6,{value:r,baseValue:o||{},onChange:n,path:e,onPathChange:t,fontLibraryEnabled:c,serverCSS:a,serverSettings:l}),(0,Mf.jsx)($U,{path:e,onPathChange:t})]}):null}var Vu=i(x(),1);function U1e({template:e,post:t}){let[r="white"]=Mu("color.background"),[o]=(0,_b.useEntityBlockEditor)("postType",t.type,{id:t.id}),[n]=(0,_b.useEntityBlockEditor)("postType",e?.type,{id:e?.id}),s=e&&n?n:o,a=!s?.length;return(0,Vu.jsxs)("div",{className:"editor-fields-content-preview",style:{backgroundColor:r},children:[a&&(0,Vu.jsx)("span",{className:"editor-fields-content-preview__empty",children:(0,nH.__)("Empty content")}),!a&&(0,Vu.jsx)(S6.BlockPreview.Async,{children:(0,Vu.jsx)(S6.BlockPreview,{blocks:s})})]})}function iH({item:e}){let{settings:t,template:r}=(0,sH.useSelect)(o=>{let{canUser:n,getPostType:s,getTemplateId:a,getEntityRecord:l}=D(o(_b.store)),c=n("read",{kind:"postType",name:"wp_template"}),u=o(_).getEditorSettings(),d=u.supportsTemplateMode,f=s(e.type)?.viewable??!1,m=d&&f&&c?a(e.type,e.id):null;return{settings:u,template:m?l("postType","wp_template",m):void 0}},[e.type,e.id]);return(0,Vu.jsx)(VI,{post:e,settings:t,__unstableTemplate:r,children:(0,Vu.jsx)(U1e,{template:r,post:e})})}var H1e={type:"media",id:"content-preview",label:(0,aH.__)("Content preview"),render:iH,enableSorting:!1},lH=H1e;function G1e(e){let t=e?.editor;return Array.isArray(t)?!!t[0]?.notes:!1}function W1e(e,t,r){return{type:"REGISTER_ENTITY_ACTION",kind:e,name:t,config:r}}function Y1e(e,t,r){return{type:"UNREGISTER_ENTITY_ACTION",kind:e,name:t,actionId:r}}function q1e(e,t,r){return{type:"REGISTER_ENTITY_FIELD",kind:e,name:t,config:r}}function Z1e(e,t,r){return{type:"UNREGISTER_ENTITY_FIELD",kind:e,name:t,fieldId:r}}function K1e(e,t){return{type:"SET_IS_READY",kind:e,name:t}}var X1e=[qO,WO,XO,$O,QO,JO,GO,o_,UO,YO,KO],Q1e=e=>async({registry:t})=>{if(D(t.select(_)).isEntityReady("postType",e))return;D(t.dispatch(_)).setIsReady("postType",e);let o=await t.resolveSelect(Cx.store).getPostType(e),n=await t.resolveSelect(Cx.store).canUser("create",{kind:"postType",name:e}),s=await t.resolveSelect(Cx.store).getCurrentTheme(),a=!["wp_block","wp_template_part"].includes(o.slug)&&n&&wO;o.slug==="wp_template"&&!window?.__experimentalTemplateActivate&&(a=void 0);let l=[o.viewable?vO:void 0,o.supports?.revisions?OO:void 0,a,o.slug==="wp_template_part"&&n&&s?.is_block_theme?zO:void 0,n&&o.slug==="wp_block"?PO:void 0,o.supports?.title?TO:void 0,o.supports?.["page-attributes"]?bO:void 0,o.slug==="wp_block"?RO:void 0,NO,CO,VO,DO,FO].filter(Boolean),c;if(e===dr)c=X1e;else if(c=[o.supports?.thumbnail&&s?.theme_supports?.["post-thumbnails"]&&tO,o.supports?.author&&hO,cO,!Kc.includes(o.slug)&&pO,i5,o.supports?.["page-attributes"]&&aO,o.supports?.comments&&uO,o.supports?.trackbacks&&fO,(o.supports?.comments||o.supports?.trackbacks)&&mO,oO,lO,o.supports?.editor&&o.viewable&&lH,G1e(o.supports)&&gO].filter(Boolean),o.supports?.title){let u;e==="page"?u=d5:e==="wp_template"?u=Kv:e==="wp_block"?u=Xv:u=o_,c.push(u)}t.batch(()=>{l.forEach(u=>{D(t.dispatch(_)).registerEntityAction("postType",e,u)}),c.forEach(u=>{D(t.dispatch(_)).registerEntityField("postType",e,u)})}),(0,cH.doAction)("core.registerPostTypeSchema",e)};function J1e(e){return{type:"SET_CURRENT_TEMPLATE_ID",id:e}}var $1e=e=>async({select:t,dispatch:r,registry:o})=>{let n=await o.dispatch(Nn.store).saveEntityRecord("postType","wp_template",e);return o.dispatch(Nn.store).editEntityRecord("postType",t.getCurrentPostType(),t.getCurrentPostId(),{template:n.slug}),o.dispatch(Fn.store).createSuccessNotice((0,st.__)("Custom template created. You're in template mode now."),{type:"snackbar",actions:[{label:(0,st.__)("Go back"),onClick:()=>r.setRenderingMode(t.getEditorSettings().defaultRenderingMode)}]}),n},eSe=e=>({registry:t})=>{let o=(t.select(Vf.store).get("core","hiddenBlockTypes")??[]).filter(n=>!(Array.isArray(e)?e:[e]).includes(n));t.dispatch(Vf.store).set("core","hiddenBlockTypes",o)},tSe=e=>({registry:t})=>{let r=t.select(Vf.store).get("core","hiddenBlockTypes")??[],o=new Set([...r,...Array.isArray(e)?e:[e]]);t.dispatch(Vf.store).set("core","hiddenBlockTypes",[...o])},rSe=({onSave:e,dirtyEntityRecords:t=[],entitiesToSkip:r=[],close:o,successNoticeContent:n}={})=>({registry:s})=>{let a=[{kind:"postType",name:"wp_navigation"}],l="site-editor-save-success",c=s.select(Nn.store).getEntityRecord("root","__unstableBase")?.home;s.dispatch(Fn.store).removeNotice(l);let u=t.filter(({kind:m,name:h,key:g,property:y})=>!r.some(v=>v.kind===m&&v.name===h&&v.key===g&&v.property===y));o?.(u);let d=[],f=[];u.forEach(({kind:m,name:h,key:g,property:y})=>{m==="root"&&h==="site"?d.push(y):(a.some(v=>v.kind===m&&v.name===h)&&s.dispatch(Nn.store).editEntityRecord(m,h,g,{status:"publish"}),f.push(s.dispatch(Nn.store).saveEditedEntityRecord(m,h,g)))}),d.length&&f.push(s.dispatch(Nn.store).__experimentalSaveSpecifiedEntityEdits("root","site",void 0,d)),s.dispatch(uH.store).__unstableMarkLastChangeAsPersistent(),Promise.all(f).then(m=>e?e(m):m).then(m=>{m.some(h=>typeof h>"u")?s.dispatch(Fn.store).createErrorNotice((0,st.__)("Saving failed.")):s.dispatch(Fn.store).createSuccessNotice(n||(0,st.__)("Site updated."),{type:"snackbar",id:l,actions:[{label:(0,st.__)("View site"),url:c,openInNewTab:!0}]})}).catch(m=>s.dispatch(Fn.store).createErrorNotice(`${(0,st.__)("Saving failed.")} ${m}`))},oSe=(e,{allowUndo:t=!0}={})=>async({registry:r})=>{let o="edit-site-template-reverted";if(r.dispatch(Fn.store).removeNotice(o),!XS(e)){r.dispatch(Fn.store).createErrorNotice((0,st.__)("This template is not revertable."),{type:"snackbar"});return}try{let n=r.select(Nn.store).getEntityConfig("postType",e.type);if(!n){r.dispatch(Fn.store).createErrorNotice((0,st.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});return}let s=(0,dH.addQueryArgs)(`${n.baseURL}/${e.id}`,{context:"edit",source:e.origin}),a=await(0,fH.default)({path:s});if(!a){r.dispatch(Fn.store).createErrorNotice((0,st.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});return}let l=({blocks:d=[]})=>(0,Px.__unstableSerializeAndClean)(d),c=r.select(Nn.store).getEditedEntityRecord("postType",e.type,e.id);r.dispatch(Nn.store).editEntityRecord("postType",e.type,e.id,{content:l,blocks:c.blocks,source:"custom"},{undoIgnore:!0});let u=(0,Px.parse)(a?.content?.raw);if(r.dispatch(Nn.store).editEntityRecord("postType",e.type,a.id,{content:l,blocks:u,source:"theme"}),t){let d=()=>{r.dispatch(Nn.store).editEntityRecord("postType",e.type,c.id,{content:l,blocks:c.blocks,source:"custom"})};r.dispatch(Fn.store).createSuccessNotice((0,st.__)("Template reset."),{type:"snackbar",id:o,actions:[{label:(0,st.__)("Undo"),onClick:d}]})}}catch(n){let s=n.message&&n.code!=="unknown_error"?n.message:(0,st.__)("Template revert failed. Please reload.");r.dispatch(Fn.store).createErrorNotice(s,{type:"snackbar"})}},nSe=e=>async({registry:t})=>{let r=e.every(n=>n?.has_theme_file),o=await Promise.allSettled(e.map(n=>t.dispatch(Nn.store).deleteEntityRecord("postType",n.type,n.id,{force:!0},{throwOnError:!0})));if(o.every(({status:n})=>n==="fulfilled")){let n;if(e.length===1){let s;typeof e[0].title=="string"?s=e[0].title:typeof e[0].title?.rendered=="string"?s=e[0].title?.rendered:typeof e[0].title?.raw=="string"&&(s=e[0].title?.raw),n=r?(0,st.sprintf)((0,st.__)('"%s" reset.'),(0,_6.decodeEntities)(s)):(0,st.sprintf)((0,st._x)('"%s" deleted.',"template part"),(0,_6.decodeEntities)(s))}else n=r?(0,st.__)("Items reset."):(0,st.__)("Items deleted.");t.dispatch(Fn.store).createSuccessNotice(n,{type:"snackbar",id:"editor-template-deleted-success"})}else{let n;if(o.length===1)o[0].reason?.message?n=o[0].reason.message:n=r?(0,st.__)("An error occurred while reverting the item."):(0,st.__)("An error occurred while deleting the item.");else{let s=new Set,a=o.filter(({status:l})=>l==="rejected");for(let l of a)l.reason?.message&&s.add(l.reason.message);s.size===0?n=(0,st.__)("An error occurred while deleting the items."):s.size===1?n=r?(0,st.sprintf)((0,st.__)("An error occurred while reverting the items: %s"),[...s][0]):(0,st.sprintf)((0,st.__)("An error occurred while deleting the items: %s"),[...s][0]):n=r?(0,st.sprintf)((0,st.__)("Some errors occurred while reverting the items: %s"),[...s].join(",")):(0,st.sprintf)((0,st.__)("Some errors occurred while deleting the items: %s"),[...s].join(","))}t.dispatch(Fn.store).createErrorNotice(n,{type:"snackbar"})}},sSe=e=>({select:t,registry:r})=>{let o=t.getCurrentPostType(),n=r.select(Nn.store).getCurrentTheme()?.stylesheet,s=r.select(Vf.store).get("core","renderingModes")?.[n]??{};if(s[o]===e)return;let a={[n]:{...s,[o]:e}};r.dispatch(Vf.store).set("core","renderingModes",a)};function iSe(e){return{type:"SET_STYLES_PATH",path:e}}function aSe(e){return{type:"SET_SHOW_STYLEBOOK",show:e}}function lSe(){return{type:"RESET_STYLES_NAVIGATION"}}function cSe(e){return{type:"SET_CANVAS_MIN_HEIGHT",minHeight:e}}function uSe(e){return{type:"SET_CURRENT_REVISION_ID",revisionId:e}}var dSe=e=>async({select:t,dispatch:r,registry:o})=>{let n=t.getCurrentPostType(),s=t.getCurrentPostId(),a=await o.resolveSelect(Nn.store).getRevision("postType",n,s,e,{context:"edit",_fields:"id,date,author,meta,title.raw,excerpt.raw,content.raw"});if(!a)return;let l={blocks:void 0,content:a.content.raw};a.title?.raw!==void 0&&(l.title=a.title.raw),a.excerpt?.raw!==void 0&&(l.excerpt=a.excerpt.raw),a.meta!==void 0&&(l.meta=a.meta),r.editPost(l),r.setCurrentRevisionId(null),await r.savePost(),o.dispatch(Fn.store).createSuccessNotice((0,st.sprintf)((0,st.__)("Restored to revision from %s."),(0,kx.dateI18n)((0,kx.getSettings)().formats.datetime,a.date)),{type:"snackbar",id:"editor-revision-restored"})};function fSe(e,t={focus:!1}){return{type:"SELECT_NOTE",noteId:e,options:t}}var T6={};Zc(T6,{getCanvasMinHeight:()=>kSe,getCurrentRevision:()=>ASe,getCurrentRevisionId:()=>x6,getDefaultRenderingMode:()=>TSe,getEntityActions:()=>SSe,getEntityFields:()=>wSe,getInserter:()=>hSe,getInserterSidebarToggleRef:()=>vSe,getListViewToggleRef:()=>gSe,getPostBlocksByName:()=>xSe,getPostIcon:()=>ySe,getPreviousRevision:()=>ISe,getSelectedNote:()=>RSe,getShowStylebook:()=>PSe,getStylesPath:()=>CSe,hasPostMetaChanges:()=>bSe,isEntityReady:()=>_Se,isNoteFocused:()=>OSe,isRevisionsMode:()=>ESe});var SH=i(pH(),1),Ex=i($(),1),Ua=i(O(),1);var za=i(W(),1),_H=i(dt(),1);var hH=[];function gH(e,t,r){return e.actions[t]?.[r]??hH}function vH(e,t,r){return e.fields[t]?.[r]??hH}function yH(e,t,r){return e.isReady[t]?.[r]}var mSe={rootClientId:void 0,insertionIndex:void 0,filterValue:void 0},pSe=["post-only","template-locked"],hSe=(0,Ua.createRegistrySelector)(e=>(0,Ua.createSelector)(t=>{if(typeof t.blockInserterPanel=="object")return t.blockInserterPanel;if(ZS(t)==="template-locked"){let[r]=e(Ex.store).getBlocksByName("core/post-content");if(r)return{rootClientId:r,insertionIndex:void 0,filterValue:void 0}}return mSe},t=>{let[r]=e(Ex.store).getBlocksByName("core/post-content");return[t.blockInserterPanel,ZS(t),r]}));function gSe(e){return e.listViewToggleRef}function vSe(e){return e.inserterSidebarToggleRef}var bH={wp_block:Dv,wp_navigation:uR,page:Hm,post:XR},ySe=(0,Ua.createRegistrySelector)(e=>(t,r,o)=>{{if(r==="wp_template_part"||r==="wp_template"){let a=(e(za.store).getCurrentTheme()?.default_template_part_areas||[]).find(l=>o.area===l.area);return a?.icon?Xc(a.icon):Bi}if(bH[r])return bH[r];let n=e(za.store).getPostType(r);return typeof n?.icon=="string"&&n.icon.startsWith("dashicons-")?n.icon.slice(10):Hm}}),bSe=(0,Ua.createRegistrySelector)(e=>(t,r,o)=>{let{type:n,id:s}=po(t),a=e(za.store).getEntityRecordNonTransientEdits("postType",r||n,o||s);if(!a?.meta)return!1;let l=e(za.store).getEntityRecord("postType",r||n,o||s)?.meta;return!(0,SH.default)({...l,footnotes:void 0},{...a.meta,footnotes:void 0})});function SSe(e,...t){return gH(e.dataviews,...t)}function _Se(e,...t){return yH(e.dataviews,...t)}function wSe(e,...t){return vH(e.dataviews,...t)}var xSe=(0,Ua.createRegistrySelector)(e=>(t,r)=>{r=Array.isArray(r)?r:[r];let{getBlocksByName:o,getBlockParents:n,getBlockName:s}=e(Ex.store);return o(r).filter(a=>n(a).every(l=>{let c=s(l);return c!=="core/query"&&!r.includes(c)}))}),TSe=(0,Ua.createRegistrySelector)(e=>(t,r)=>{let{getPostType:o,getCurrentTheme:n,hasFinishedResolution:s}=e(za.store),a=n(),l=o(r);if(!s("getPostType",[r])||!s("getCurrentTheme"))return;let c=a?.stylesheet,u=e(_H.store).get("core","renderingModes")?.[c]?.[r],d=Array.isArray(l?.supports?.editor)?l.supports.editor.find(m=>"default-mode"in m)?.["default-mode"]:void 0,f=u||d;return pSe.includes(f)?f:"post-only"});function CSe(e){return e.stylesPath??"/"}function PSe(e){return e.showStylebook??!1}function kSe(e){return e.canvasMinHeight}function ESe(e){return e.revisionId!==null}function x6(e){return e.revisionId}var ASe=(0,Ua.createRegistrySelector)(e=>t=>{let r=x6(t);if(!r)return;let{type:o,id:n}=po(t),s=e(za.store).getRevisions("postType",o,n,{per_page:-1,context:"edit",_fields:"id,date,author,meta,title.raw,excerpt.raw,content.raw"});if(!s)return null;let l=e(za.store).getEntityConfig("postType",o)?.revisionKey||"id";return s.find(c=>c[l]===r)??null});function RSe(e){return e.selectedNote?.noteId}function OSe(e){return!!e.selectedNote?.options?.focus}var ISe=(0,Ua.createRegistrySelector)(e=>t=>{let r=x6(t);if(!r)return;let{type:o,id:n}=po(t),s=e(za.store).getRevisions("postType",o,n,{per_page:-1,context:"edit",_fields:"id,date,author,meta,title.raw,excerpt.raw,content.raw"});if(!s)return null;let a=[...s].sort((d,f)=>new Date(d.date)-new Date(f.date)),c=e(za.store).getEntityConfig("postType",o)?.revisionKey||"id",u=a.findIndex(d=>d[c]===r);return u>0?a[u-1]:null});var _y={reducer:kN,selectors:r5,actions:s5},_=(0,Ax.createReduxStore)(NN,{..._y});(0,Ax.register)(_);D(_).registerPrivateActions(w6);D(_).registerPrivateSelectors(T6);var kH=i(x(),1),FSe=e=>(0,CH.createHigherOrderComponent)(t=>({attributes:r,setAttributes:o,...n})=>{let s=(0,wH.useSelect)(u=>u(_).getCurrentPostType(),[]),[a,l]=(0,xH.useEntityProp)("postType",s,"meta"),c=(0,TH.useMemo)(()=>({...r,...Object.fromEntries(Object.entries(e).map(([u,d])=>[u,a[d]]))}),[r,a]);return(0,kH.jsx)(t,{attributes:c,setAttributes:u=>{let d=Object.fromEntries(Object.entries(u??{}).filter(([f])=>f in e).map(([f,m])=>[e[f],m]));Object.entries(d).length&&l(d),o(u)},...n})},"withMetaAttributeSource");function NSe(e){let t=Object.fromEntries(Object.entries(e.attributes??{}).filter(([,{source:r}])=>r==="meta").map(([r,{meta:o}])=>[r,o]));return Object.entries(t).length&&(e.edit=FSe(t)(e.edit)),e}(0,PH.addFilter)("blocks.registerBlockType","core/editor/custom-sources-backwards-compatibility/shim-attribute-source",NSe);var jX=i(fo(),1);var EH=i(N(),1),AH=i(O(),1),RH=i(W(),1),oc=i(x(),1);function BSe(e){let t=e.avatar_urls&&e.avatar_urls[24]?(0,oc.jsx)("img",{className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}):(0,oc.jsx)("span",{className:"editor-autocompleters__no-avatar"});return(0,oc.jsxs)(oc.Fragment,{children:[t,(0,oc.jsx)("span",{className:"editor-autocompleters__user-name",children:e.name}),(0,oc.jsx)("span",{className:"editor-autocompleters__user-slug",children:e.slug})]})}var Rx={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",useItems(e){let t=(0,AH.useSelect)(o=>{let{getUsers:n}=o(RH.store);return n({context:"view",search:encodeURIComponent(e)})},[e]);return[(0,EH.useMemo)(()=>t?t.map(o=>({key:`user-${o.slug}`,value:o,label:BSe(o)})):[],[t])]},getOptionCompletion(e){return`@${e.slug}`}};var OH=i(N(),1),IH=i(pe(),1),Ox=i(O(),1),FH=i(W(),1);var DSe=class extends OH.Component{constructor(e){super(e),this.needsAutosave=!!(e.isDirty&&e.isAutosaveable)}componentDidMount(){this.props.disableIntervalChecks||this.setAutosaveTimer()}componentDidUpdate(e){if(this.props.disableIntervalChecks){this.props.editsReference!==e.editsReference&&this.props.autosave();return}if(this.props.interval!==e.interval&&(clearTimeout(this.timerId),this.setAutosaveTimer()),!this.props.isDirty){this.needsAutosave=!1;return}if(this.props.isAutosaving&&!e.isAutosaving){this.needsAutosave=!1;return}this.props.editsReference!==e.editsReference&&(this.needsAutosave=!0)}componentWillUnmount(){clearTimeout(this.timerId)}setAutosaveTimer(e=this.props.interval*1e3){this.timerId=setTimeout(()=>{this.autosaveTimerHandler()},e)}autosaveTimerHandler(){if(!this.props.isAutosaveable){this.setAutosaveTimer(1e3);return}this.needsAutosave&&(this.needsAutosave=!1,this.props.autosave()),this.setAutosaveTimer()}render(){return null}},Ix=(0,IH.compose)([(0,Ox.withSelect)((e,t)=>{let{getReferenceByDistinctEdits:r}=e(FH.store),{isEditedPostDirty:o,isEditedPostAutosaveable:n,isAutosavingPost:s,getEditorSettings:a}=e(_),{interval:l=a().autosaveInterval}=t;return{editsReference:r(),isDirty:o(),isAutosaveable:n(),isAutosaving:s(),interval:l}}),(0,Ox.withDispatch)((e,t)=>({autosave(){let{autosave:r=e(_).autosave}=t;r()}}))])(DSe);var Wu=i(E(),1),Tb=i(O(),1),Ji=i(R(),1),Cb=i($(),1);var hG=i(yo(),1),gG=i(W(),1),vG=i(_I(),1),qx=i(N(),1),yG=i(pe(),1),bG=i(vt(),1),SG=i(fh(),1);var C6=i(E(),1),BH=i(O(),1),DH=i(W(),1);function Fx(e){let{isFrontPage:t,isPostsPage:r}=(0,BH.useSelect)(o=>{let{canUser:n,getEditedEntityRecord:s}=o(DH.store),a=n("read",{kind:"root",name:"site"})?s("root","site"):void 0,l=parseInt(e,10);return{isFrontPage:a?.page_on_front===l,isPostsPage:a?.page_for_posts===l}});return t?(0,C6.__)("Homepage"):r?(0,C6.__)("Posts Page"):!1}var lG=i(R(),1),cG=i(yo(),1),Wx=i(E(),1),xb=i(O(),1);var Yx=i(pe(),1),uG=i(dt(),1);var eG=i(N(),1);var nc=i(R(),1),Xi=i(E(),1),no=i($(),1),zf=i(O(),1);var Ut=i(N(),1),zx=i(yo(),1),YH=i(Hd(),1),qH=i(W(),1);var zt=i(E(),1),mh=[{slug:"theme-colors",title:(0,zt.__)("Theme Colors"),origin:"theme",type:"colors"},{slug:"theme-gradients",title:(0,zt.__)("Theme Gradients"),origin:"theme",type:"gradients"},{slug:"custom-colors",title:(0,zt.__)("Custom Colors"),origin:"custom",type:"colors"},{slug:"custom-gradients",title:(0,zt.__)("Custom Gradients"),origin:"custom",type:"gradients"},{slug:"duotones",title:(0,zt.__)("Duotones"),origin:"theme",type:"duotones"},{slug:"default-colors",title:(0,zt.__)("Default Colors"),origin:"default",type:"colors"},{slug:"default-gradients",title:(0,zt.__)("Default Gradients"),origin:"default",type:"gradients"}],Nx=[{slug:"site-identity",title:(0,zt.__)("Site Identity"),blocks:["core/site-logo","core/site-title","core/site-tagline"]},{slug:"design",title:(0,zt.__)("Design"),blocks:["core/navigation","core/avatar","core/post-time-to-read"],exclude:["core/home-link","core/navigation-link"]},{slug:"posts",title:(0,zt.__)("Posts"),blocks:["core/post-title","core/post-excerpt","core/post-author","core/post-author-name","core/post-author-biography","core/post-date","core/post-terms","core/term-description","core/query-title","core/query-no-results","core/query-pagination","core/query-numbers"]},{slug:"comments",title:(0,zt.__)("Comments"),blocks:["core/comments-title","core/comments-pagination","core/comments-pagination-numbers","core/comments","core/comments-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link","core/comment-template","core/post-comments-count","core/post-comments-link"]}],P6=[{slug:"overview",title:(0,zt.__)("Overview"),blocks:[]},{slug:"text",title:(0,zt.__)("Text"),blocks:["core/post-content","core/home-link","core/navigation-link"]},{slug:"colors",title:(0,zt.__)("Colors"),blocks:[]},{slug:"theme",title:(0,zt.__)("Theme"),subcategories:Nx},{slug:"media",title:(0,zt.__)("Media"),blocks:["core/post-featured-image"]},{slug:"widgets",title:(0,zt.__)("Widgets"),blocks:[]},{slug:"embed",title:(0,zt.__)("Embeds"),include:[]}],LSe=[...Nx,{slug:"media",title:(0,zt.__)("Media"),blocks:["core/post-featured-image"]},{slug:"widgets",title:(0,zt.__)("Widgets"),blocks:[]},{slug:"embed",title:(0,zt.__)("Embeds"),include:[]}],LH=[{slug:"overview",title:(0,zt.__)("Overview"),blocks:[]},{slug:"text",title:(0,zt.__)("Text"),blocks:["core/post-content","core/home-link","core/navigation-link"]},{slug:"colors",title:(0,zt.__)("Colors"),blocks:[]},{slug:"blocks",title:(0,zt.__)("All Blocks"),blocks:[],subcategories:LSe}],MSe=`
.is-root-container {
display: flow-root;
}
`,MH=`
body {
position: relative;
padding: 32px !important;
}
${MSe}
.editor-style-book__examples {
max-width: 1200px;
margin: 0 auto;
}
.editor-style-book__example {
max-width: 900px;
border-radius: 2px;
cursor: pointer;
display: flex;
flex-direction: column;
gap: 40px;
padding: 16px;
width: 100%;
box-sizing: border-box;
scroll-margin-top: 32px;
scroll-margin-bottom: 32px;
margin: 0 auto 40px auto;
}
.editor-style-book__example.is-selected {
box-shadow: 0 0 0 1px var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
}
.editor-style-book__example.is-disabled-example {
pointer-events: none;
}
.editor-style-book__example:focus:not(:disabled) {
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
outline: 3px solid transparent;
}
.editor-style-book__duotone-example > div:first-child {
display: flex;
aspect-ratio: 16 / 9;
grid-row: span 1;
grid-column: span 2;
}
.editor-style-book__duotone-example img {
width: 100%;
height: 100%;
object-fit: cover;
}
.editor-style-book__duotone-example > div:not(:first-child) {
height: 20px;
border: 1px solid color-mix( in srgb, currentColor 10%, transparent );
}
.editor-style-book__color-example {
border: 1px solid color-mix( in srgb, currentColor 10%, transparent );
}
.editor-style-book__subcategory-title,
.editor-style-book__example-title {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 13px;
font-weight: normal;
line-height: normal;
margin: 0;
text-align: left;
padding-top: 8px;
border-top: 1px solid color-mix( in srgb, currentColor 10%, transparent );
color: color-mix( in srgb, currentColor 60%, transparent );
}
.editor-style-book__subcategory-title {
font-size: 16px;
margin-bottom: 40px;
padding-bottom: 8px;
}
.editor-style-book__example-preview {
width: 100%;
}
.editor-style-book__example-preview .block-editor-block-list__insertion-point,
.editor-style-book__example-preview .block-list-appender {
display: none;
}
:where(.is-root-container > .wp-block:first-child) {
margin-top: 0;
}
:where(.is-root-container > .wp-block:last-child) {
margin-bottom: 0;
}
`;var VH=i(Xe(),1);function wb(e,t){if(!e?.slug||!t?.length)return;let r=e?.subcategories??[];if(r.length)return r.reduce((a,l)=>{let c=wb(l,t);return c&&(a.subcategories||(a.subcategories=[]),a.subcategories=[...a.subcategories,c]),a},{title:e.title,slug:e.slug});let o=e?.blocks||[],n=e?.exclude||[],s=t.filter(a=>!n.includes(a.name)&&(a.category===e.slug||o.includes(a.name)));if(s.length)return{title:e.title,slug:e.slug,examples:s}}function k6(){let e=[...Nx,...P6].map(({slug:o})=>o),r=(0,VH.getCategories)().filter(({slug:o})=>!e.includes(o));return[...P6,...r]}var Ha=i(E(),1),Mo=i(Xe(),1);var jH=i(R(),1),Bx=i($(),1),E6=i(x(),1),VSe=({colors:e,type:t,templateColumns:r="1fr 1fr",itemHeight:o="52px"})=>e?(0,E6.jsx)(jH.__experimentalGrid,{templateColumns:r,rowGap:8,columnGap:16,children:e.map(n=>{let s=t==="gradients"?(0,Bx.__experimentalGetGradientClass)(n.slug):(0,Bx.getColorClassName)("background-color",n.slug),a=re("editor-style-book__color-example",s);return(0,E6.jsx)("div",{className:a,style:{height:o}},n.slug)})}):null,A6=VSe;var R6=i(R(),1),jf=i(x(),1),jSe=({duotones:e})=>e?(0,jf.jsx)(R6.__experimentalGrid,{columns:2,rowGap:16,columnGap:16,children:e.map(t=>(0,jf.jsxs)(R6.__experimentalGrid,{className:"editor-style-book__duotone-example",columns:2,rowGap:8,columnGap:8,children:[(0,jf.jsx)("div",{children:(0,jf.jsx)("img",{alt:`Duotone example: ${t.slug}`,src:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",style:{filter:`url(#wp-duotone-${t.slug})`}})}),t.colors.map(r=>(0,jf.jsx)("div",{className:"editor-style-book__color-example",style:{backgroundColor:r}},r))]},t.slug))}):null,zH=jSe;var Dx=i(x(),1);function zSe(e){if(!e)return[];let t=[];return mh.forEach(r=>{let o=e[r.type],n=Array.isArray(o)?o.find(s=>s.slug===r.origin):void 0;if(n?.[r.type]){let s={name:r.slug,title:r.title,category:"colors"};r.type==="duotones"?(s.content=(0,Dx.jsx)(zH,{duotones:n[r.type]}),t.push(s)):(s.content=(0,Dx.jsx)(A6,{colors:n[r.type],type:r.type}),t.push(s))}}),t}function USe(e){let t=[],r=Array.isArray(e?.colors)?e.colors.find(s=>s.slug==="theme"):void 0;if(r){let s={name:"theme-colors",title:(0,Ha.__)("Colors"),category:"overview",content:(0,Dx.jsx)(A6,{colors:r.colors,type:"colors",templateColumns:"repeat(auto-fill, minmax( 200px, 1fr ))",itemHeight:"32px"})};t.push(s)}let o=[];if((0,Mo.getBlockType)("core/heading")){let s=(0,Mo.createBlock)("core/heading",{content:(0,Ha.__)("AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz0123456789X{(\u2026)},.-<>?!*&:/A@HELFO\u2122\xA9"),level:1});o.push(s)}if((0,Mo.getBlockType)("core/paragraph")){let s=(0,Mo.createBlock)("core/paragraph",{content:(0,Ha.__)("A paragraph in a website refers to a distinct block of text that is used to present and organize information. It is a fundamental unit of content in web design and is typically composed of a group of related sentences or thoughts focused on a particular topic or idea. Paragraphs play a crucial role in improving the readability and user experience of a website. They break down the text into smaller, manageable chunks, allowing readers to scan the content more easily.")}),a=(0,Mo.createBlock)("core/paragraph",{content:(0,Ha.__)("Additionally, paragraphs help structure the flow of information and provide logical breaks between different concepts or pieces of information. In terms of formatting, paragraphs in websites are commonly denoted by a vertical gap or indentation between each block of text. This visual separation helps visually distinguish one paragraph from another, creating a clear and organized layout that guides the reader through the content smoothly.")});if((0,Mo.getBlockType)("core/group")){let l=(0,Mo.createBlock)("core/group",{layout:{type:"grid",columnCount:2,minimumColumnWidth:"12rem"},style:{spacing:{blockGap:"1.5rem"}}},[s,a]);o.push(l)}else o.push(s)}return o.length&&t.push({name:"typography",title:(0,Ha.__)("Typography"),category:"overview",blocks:o}),["core/image","core/separator","core/buttons","core/pullquote","core/search"].forEach(s=>{let a=(0,Mo.getBlockType)(s);if(a&&a.example){let l={name:s,title:a.title,category:"overview",blocks:(0,Mo.getBlockFromExample)(s,{...a.example,attributes:{...a.example.attributes,style:void 0}})};t.push(l)}}),t}function O6(e){let t=(0,Mo.getBlockTypes)().filter(a=>{let{name:l,example:c,supports:u}=a;return l!=="core/heading"&&!!c&&u?.inserter!==!1}).map(a=>({name:a.name,title:a.title,category:a.category,blocks:(0,Mo.getBlockFromExample)(a.name,{...a.example,attributes:{...a.example.attributes,style:void 0}})}));if(!!!(0,Mo.getBlockType)("core/heading"))return t;let o={name:"core/heading",title:(0,Ha.__)("Headings"),category:"text",blocks:[1,2,3,4,5,6].map(a=>(0,Mo.createBlock)("core/heading",{content:(0,Ha.sprintf)((0,Ha.__)("Heading %d"),a),level:a}))},n=zSe(e),s=USe(e);return[o,...n,...t,...s]}var WH=i(N(),1),Mx=i(O(),1);var Lx=i(Xe(),1),UH=i(O(),1),HH=i(N(),1);function ph(e={},t=!1){let o=y6("spacing.blockGap")!==null,n=!o,{disableLayoutStyles:s,getBlockStyles:a}=(0,UH.useSelect)(l=>{let{getEditorSettings:c}=l(_),{getBlockStyles:u}=l(Lx.store);return{disableLayoutStyles:!!c()?.disableLayoutStyles,getBlockStyles:u}},[]);return(0,HH.useMemo)(()=>{if(!e?.styles||!e?.settings)return[[],{}];let l=(0,Lx.getBlockTypes)();return Iy(e,l,{hasBlockGapSupport:o,hasFallbackGapSupport:n,disableLayoutStyles:s,disableRootPadding:t,getBlockStyles:a})},[o,n,e,s,t,a])}function GH(e=!1){let{merged:t}=xo();return ph(t,e)}function HSe(e){let[t,r]=GH(e),{getEditorSettings:o}=(0,Mx.useSelect)(_),{updateEditorSettings:n}=(0,Mx.useDispatch)(_);(0,WH.useEffect)(()=>{if(!t||!r)return;let s=o(),a=Object.values(s.styles??[]).filter(l=>!l.isGlobalStyles);n({...s,styles:[...a,...t],__experimentalFeatures:r})},[t,r,n,o])}function Vx({disableRootPadding:e}){return HSe(e),null}var ot=i(x(),1),{ExperimentalBlockEditorProvider:GSe}=D(no.privateApis),{Tabs:jx}=D(nc.privateApis);function ju(e){return!e||Object.keys(e).length===0}var WSe=(e,t)=>{if(!e||!t||!t?.contentDocument)return;let r=e==="top"?t.contentDocument.body:t.contentDocument.getElementById(e);r&&r.scrollIntoView({behavior:"smooth"})},ZH=e=>e&&typeof e=="string"&&(e==="/"||e.startsWith("/typography")||e.startsWith("/colors")||e.startsWith("/blocks"))?{top:!0}:null;function KH(){let{colors:e,gradients:t}=(0,no.__experimentalUseMultipleOriginColorsAndGradients)(),[r,o,n,s]=(0,no.useSettings)("color.defaultDuotone","color.duotone.custom","color.duotone.theme","color.duotone.default");return(0,Ut.useMemo)(()=>{let l={colors:e,gradients:t,duotones:[]};return n&&n.length&&l.duotones.push({name:(0,Xi._x)("Theme","Indicates these duotone filters come from the theme."),slug:"theme",duotones:n}),r&&s&&s.length&&l.duotones.push({name:(0,Xi._x)("Default","Indicates these duotone filters come from WordPress."),slug:"default",duotones:s}),o&&o.length&&l.duotones.push({name:(0,Xi._x)("Custom","Indicates these doutone filters are created by the user."),slug:"custom",duotones:o}),l},[e,t,o,n,s,r])}function XH(e){let t=[],r=wb({slug:"overview"},e);t.push(...r.examples);let o=e.filter(n=>n.category!=="overview"&&!r.examples.find(s=>s.name===n.name));return t.push(...o),t}function YSe(e,t){return t?e.map(r=>({...r,variation:t,blocks:Array.isArray(r.blocks)?r.blocks.map(o=>({...o,attributes:{...o.attributes,style:void 0,className:`is-style-${t}`}})):{...r.blocks,attributes:{...r.blocks.attributes,style:void 0,className:`is-style-${t}`}}})):e}function qSe({isSelected:e,onClick:t,onSelect:r,showTabs:o=!0,userConfig:n={},path:s=""},a){let l=Mu("color.text"),c=Mu("color.background"),u=KH(),d=(0,Ut.useMemo)(()=>O6(u),[u]),f=(0,Ut.useMemo)(()=>k6().filter(w=>d.some(T=>T.category===w.slug)),[d]),m=XH(d),{base:h}=xo(),g=ZH(s),y=(0,Ut.useMemo)(()=>!ju(n)&&!ju(h)?go(h,n):{},[h,n]),v=(0,zf.useSelect)(w=>w(no.store).getSettings(),[]),[b]=ph(y),S=(0,Ut.useMemo)(()=>({...v,styles:!ju(b)&&!ju(n)?b:v.styles,isPreviewMode:!0}),[b,v,n]);return(0,ot.jsx)("div",{ref:a,className:re("editor-style-book",{"is-button":!!t}),style:{color:l,background:c},children:o?(0,ot.jsxs)(jx,{children:[(0,ot.jsx)("div",{className:"editor-style-book__tablist-container",children:(0,ot.jsx)(jx.TabList,{children:f.map(w=>(0,ot.jsx)(jx.Tab,{tabId:w.slug,children:w.title},w.slug))})}),f.map(w=>{let T=w.slug?k6().find(A=>A.slug===w.slug):null,C=T?wb(T,d):{examples:d};return(0,ot.jsx)(jx.TabPanel,{tabId:w.slug,focusable:!1,className:"editor-style-book__tabpanel",children:(0,ot.jsx)(I6,{category:w.slug,examples:C,isSelected:e,onSelect:r,settings:S,title:w.title,goTo:g})},w.slug)})]}):(0,ot.jsx)(I6,{examples:{examples:m},isSelected:e,onClick:t,onSelect:r,settings:S,goTo:g})})}var QH=({userConfig:e={},isStatic:t=!1,path:r,onPathChange:o})=>{let n=(0,zf.useSelect)(j=>j(_).getEditorSettings(),[]),s=(0,zf.useSelect)(j=>j(qH.store).canUser("create",{kind:"postType",name:"attachment"}),[]);(0,Ut.useEffect)(()=>{(0,zf.dispatch)(no.store).updateSettings({...n,mediaUpload:s?YH.uploadMedia:void 0})},[n,s]);let[a,l]=(0,Ut.useState)("/"),c=r??a,u=o??l,d=j=>c===`/blocks/${encodeURIComponent(j)}`||c.startsWith(`/blocks/${encodeURIComponent(j)}/`),f=(j,z=!1)=>{if(mh.find(M=>M.slug===j)){u("/colors/palette");return}if(j==="typography"){u("/typography");return}z||u(`/blocks/${encodeURIComponent(j)}`)},m=KH(),h=O6(m),g=XH(h),y=null,v=null;if(c.includes("/colors"))y="colors";else if(c.includes("/typography"))y="text";else if(c.includes("/blocks")){y="blocks";let j=decodeURIComponent(c).split("/blocks/")[1];j?.includes("/variations")&&([j,v]=j.split("/variations/")),j&&h.find(z=>z.name===j)&&(y=j)}else t||(y="overview");let b=LH.find(j=>j.slug===y),S=(0,Ut.useMemo)(()=>b?wb(b,h):{examples:[h.find(j=>j.name===y)]},[b,h,y]),w=(0,Ut.useMemo)(()=>y?v?{examples:YSe(S.examples,v)}:S:{examples:g},[y,g,v,S]),{base:T}=xo(),C=ZH(c),A=(0,Ut.useMemo)(()=>!ju(e)&&!ju(T)?go(T,e):{},[T,e]),[F]=ph(A),L=(0,Ut.useMemo)(()=>({...n,styles:!ju(F)&&!ju(e)?F:n.styles,isPreviewMode:!0}),[F,n,e]);return(0,ot.jsx)("div",{className:"editor-style-book",children:(0,ot.jsxs)(no.BlockEditorProvider,{settings:L,children:[(0,ot.jsx)(Vx,{disableRootPadding:!0}),(0,ot.jsx)(I6,{examples:w,settings:L,goTo:C,isSelected:t?null:d,onSelect:t?null:f})]})})},I6=({examples:e,isSelected:t,onClick:r,onSelect:o,settings:n,title:s,goTo:a})=>{let[l,c]=(0,Ut.useState)(!1),[u,d]=(0,Ut.useState)(!1),f=(0,Ut.useRef)(null),m={role:"button",onFocus:()=>c(!0),onBlur:()=>c(!1),onKeyDown:g=>{if(g.defaultPrevented)return;let{keyCode:y}=g;r&&(y===zx.ENTER||y===zx.SPACE)&&(g.preventDefault(),r(g))},onClick:g=>{g.defaultPrevented||r&&(g.preventDefault(),r(g))},readonly:!0},h=()=>d(!0);return(0,Ut.useLayoutEffect)(()=>{u&&f.current&&a?.top&&WSe("top",f.current)},[a?.top,u]),(0,ot.jsxs)(no.__unstableIframe,{onLoad:h,ref:f,className:re("editor-style-book__iframe",{"is-focused":l&&!!r,"is-button":!!r}),name:"style-book-canvas",tabIndex:0,...r?m:{},children:[(0,ot.jsx)(no.__unstableEditorStyles,{styles:n.styles}),(0,ot.jsxs)("style",{children:[MH,!!r&&"body { cursor: pointer; } body * { pointer-events: none; }"]}),(0,ot.jsx)(ZSe,{className:"editor-style-book__examples",filteredExamples:e,label:s?(0,Xi.sprintf)((0,Xi.__)("Examples of blocks in the %s category"),s):(0,Xi.__)("Examples of blocks"),isSelected:t,onSelect:o},s)]})},ZSe=(0,Ut.memo)(({className:e,filteredExamples:t,label:r,isSelected:o,onSelect:n})=>(0,ot.jsxs)(nc.Composite,{orientation:"vertical",className:e,"aria-label":r,role:"grid",children:[!!t?.examples?.length&&t.examples.map(s=>(0,ot.jsx)(JH,{id:`example-${s.name}`,title:s.title,content:s.content,blocks:s.blocks,isSelected:o?.(s.name),onClick:n?()=>n(s.name,!!s.variation):null},s.name)),!!t?.subcategories?.length&&t.subcategories.map(s=>(0,ot.jsxs)(nc.Composite.Group,{className:"editor-style-book__subcategory",children:[(0,ot.jsx)(nc.Composite.GroupLabel,{children:(0,ot.jsx)("h2",{className:"editor-style-book__subcategory-title",children:s.title})}),(0,ot.jsx)(KSe,{examples:s.examples,isSelected:o,onSelect:n})]},`subcategory-${s.slug}`))]})),KSe=({examples:e,isSelected:t,onSelect:r})=>!!e?.length&&e.map(o=>(0,ot.jsx)(JH,{id:`example-${o.name}`,title:o.title,content:o.content,blocks:o.blocks,isSelected:t?.(o.name),onClick:r?()=>r(o.name):null},o.name)),XSe=["example-duotones"],JH=({id:e,title:t,blocks:r,isSelected:o,onClick:n,content:s})=>{let a=(0,zf.useSelect)(d=>d(no.store).getSettings(),[]),l=(0,Ut.useMemo)(()=>({...a,focusMode:!1,isPreviewMode:!0}),[a]),c=(0,Ut.useMemo)(()=>Array.isArray(r)?r:[r],[r]),u=XSe.includes(e)||!n?{disabled:!0,accessibleWhenDisabled:!!n}:{};return(0,ot.jsx)("div",{role:"row",children:(0,ot.jsx)("div",{role:"gridcell",children:(0,ot.jsxs)(nc.Composite.Item,{className:re("editor-style-book__example",{"is-selected":o,"is-disabled-example":!!u?.disabled}),id:e,"aria-label":n?(0,Xi.sprintf)((0,Xi.__)("Open %s styles in Styles panel"),t):void 0,render:(0,ot.jsx)("div",{}),role:n?"button":null,onClick:n,...u,children:[(0,ot.jsx)("span",{className:"editor-style-book__example-title",children:t}),(0,ot.jsx)("div",{className:"editor-style-book__example-preview","aria-hidden":!0,children:(0,ot.jsx)(nc.Disabled,{className:"editor-style-book__example-preview__content",children:s||(0,ot.jsxs)(GSe,{value:c,settings:l,children:[(0,ot.jsx)(no.__unstableEditorStyles,{}),(0,ot.jsx)(no.BlockList,{renderAppender:!1})]})})})]})})})},$H=(0,Ut.forwardRef)(qSe);var tG=i(x(),1);function QSe({path:e,onPathChange:t},r){return(0,tG.jsx)($H,{ref:r,isSelected:o=>e===`/blocks/${encodeURIComponent(o)}`||e?.startsWith(`/blocks/${encodeURIComponent(o)}/`),onSelect:o=>{if(mh.find(n=>n.slug===o)){t?.("/colors/palette");return}if(o==="typography"){t?.("/typography");return}t?.("/blocks/"+encodeURIComponent(o))}})}var rG=(0,eG.forwardRef)(QSe);var oG=i(R(),1),Qi=i($(),1),F6=i(O(),1),zu=i(N(),1);var sc=i(x(),1),{ExperimentalBlockEditorProvider:JSe,__unstableBlockStyleVariationOverridesWithConfig:$Se}=D(Qi.privateApis);function Ux(e){return!e||Object.keys(e).length===0}function e_e({path:e},t){let r=(0,F6.useSelect)(v=>v(Qi.store).getBlocks(),[]),{user:o,base:n}=xo(),{revisions:s,isLoading:a}=vb(),l=(0,zu.useMemo)(()=>{let v=e?.match(/^\/revisions\/(.+)$/);return v?v[1]:null},[e]),u=(0,zu.useMemo)(()=>!l||!s.length?null:s.find(v=>String(v.id)===String(l)),[l,s])||o,d=(0,zu.useMemo)(()=>!Ux(u)&&!Ux(n)?go(n,u):{},[n,u]),f=(0,zu.useMemo)(()=>Array.isArray(r)?r:[r],[r]),m=(0,F6.useSelect)(v=>v(Qi.store).getSettings(),[]),h=(0,zu.useMemo)(()=>({...m,isPreviewMode:!0}),[m]),[g]=ph(d),y=!Ux(g)&&!Ux(u)?g:h.styles;return a?null:(0,sc.jsxs)(Qi.__unstableIframe,{ref:t,className:"editor-revisions__iframe",name:"revisions",tabIndex:0,children:[(0,sc.jsx)("style",{children:".is-root-container { display: flow-root; }"}),(0,sc.jsx)(oG.Disabled,{className:"editor-revisions__example-preview__content",children:(0,sc.jsxs)(JSe,{value:f,settings:h,children:[(0,sc.jsx)(Qi.BlockList,{renderAppender:!1}),(0,sc.jsx)(Qi.__unstableEditorStyles,{styles:y}),(0,sc.jsx)($Se,{config:d})]})})]})}var nG=(0,zu.forwardRef)(e_e);var gh=i(N(),1),aG=i(R(),1);var Hx=i(E(),1),Uu=i(yo(),1),hh=i(R(),1),Hu=i(x(),1),sG=20;function N6({direction:e,resizeWidthBy:t}){function r(s){let{keyCode:a}=s;a!==Uu.LEFT&&a!==Uu.RIGHT||(s.preventDefault(),e==="left"&&a===Uu.LEFT||e==="right"&&a===Uu.RIGHT?t(sG):(e==="left"&&a===Uu.RIGHT||e==="right"&&a===Uu.LEFT)&&t(-sG))}let o={active:{opacity:1,scaleY:1.3}},n=`resizable-editor__resize-help-${e}`;return(0,Hu.jsxs)(Hu.Fragment,{children:[(0,Hu.jsx)(hh.Tooltip,{text:(0,Hx.__)("Drag to resize"),children:(0,Hu.jsx)(hh.__unstableMotion.button,{className:`editor-resizable-editor__resize-handle is-${e}`,"aria-label":(0,Hx.__)("Drag to resize"),"aria-describedby":n,onKeyDown:r,variants:o,whileFocus:"active",whileHover:"active",whileTap:"active",role:"separator","aria-orientation":"vertical"},"handle")}),(0,Hu.jsx)(hh.VisuallyHidden,{id:n,children:(0,Hx.__)("Use left and right arrow keys to resize the canvas.")})]})}var Gx=i(x(),1),iG={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};function t_e({className:e,enableResizing:t,height:r,children:o}){let[n,s]=(0,gh.useState)("100%"),a=(0,gh.useRef)(),l=(0,gh.useCallback)(c=>{a.current&&s(a.current.offsetWidth+c)},[]);return(0,Gx.jsx)(aG.ResizableBox,{className:re("editor-resizable-editor",e,{"is-resizable":t}),ref:c=>{a.current=c?.resizable},size:{width:t?n:"100%",height:t&&r?r:"100%"},onResizeStop:(c,u,d)=>{s(d.style.width)},minWidth:300,maxWidth:"100%",maxHeight:"100%",enable:{left:t,right:t},showHandle:t,resizeRatio:2,handleComponent:{left:(0,Gx.jsx)(N6,{direction:"left",resizeWidthBy:l}),right:(0,Gx.jsx)(N6,{direction:"right",resizeWidthBy:l})},handleClasses:void 0,handleStyles:{left:iG,right:iG},children:o})}var vh=t_e;var Gu=i(x(),1);function B6(e,t){return t?(0,Wx.__)("Style Book"):e?.startsWith("/revisions")?(0,Wx.__)("Style Revisions"):""}function dG(){let{stylesPath:e,showStylebook:t,showListViewByDefault:r}=(0,xb.useSelect)(m=>{let{getStylesPath:h,getShowStylebook:g}=D(m(_)),y=m(uG.store).get("core","showListViewByDefault");return{stylesPath:h(),showStylebook:g(),showListViewByDefault:y}},[]),{resetStylesNavigation:o,setStylesPath:n}=D((0,xb.useDispatch)(_)),{setIsListViewOpened:s}=(0,xb.useDispatch)(_),a=(0,Yx.useFocusOnMount)("firstElement"),l=(0,Yx.useFocusReturn)(),c=null;t?c=(0,Gu.jsx)(rG,{path:e,onPathChange:n,ref:l}):e?.startsWith("/revisions")&&(c=(0,Gu.jsx)(nG,{path:e,ref:l}));let u=B6(e,t),d=()=>{s(r),o()};return(0,Gu.jsx)("div",{className:"editor-styles-canvas",children:(0,Gu.jsx)(vh,{enableResizing:!1,children:(0,Gu.jsxs)("section",{className:"editor-styles-canvas__section",ref:a,onKeyDown:m=>{m.keyCode===cG.ESCAPE&&!m.defaultPrevented&&(m.preventDefault(),d())},"aria-label":u,children:[(0,Gu.jsx)(lG.Button,{size:"compact",className:"editor-styles-canvas__close-button",icon:Zn,label:(0,Wx.__)("Close"),onClick:d}),c]})})})}var fG=i(O(),1),D6=i(vt(),1),L6=i($(),1),mG=i(W(),1);function pG(){return(0,fG.useSelect)(e=>{let{getBlockAttributes:t,getBlockName:r,__experimentalGetParsedPattern:o}=e(L6.store),{getEditedEntityRecord:n,getCurrentTheme:s}=e(mG.store),{getEditedContentOnlySection:a}=D(e(L6.store)),l=a();if(!l)return null;let c=t(l),u=c?.metadata?.patternName;if(u){let f=typeof o=="function"?o(u):null;return{patternName:u,patternTitle:f?.title||c?.metadata?.name,type:"pattern"}}let d=r(l);if(d==="core/block"&&c?.ref){let f=n("postType","wp_block",c.ref);if(f?.title)return{patternName:c.ref,patternTitle:(0,D6.decodeEntities)(f.title),type:"synced-pattern"}}if(d==="core/template-part"&&c?.slug){let f=c.theme||s()?.stylesheet,m=f?`${f}//${c.slug}`:null;if(m){let h=n("postType","wp_template_part",m);if(h?.title)return{patternName:c.slug,patternTitle:(0,D6.decodeEntities)(h.title),type:"template-part"}}}return null},[])}var sn=i(x(),1),r_e=Ji.__unstableMotion.create(Ji.Button);function Zx(e){let{stopEditingContentOnlySection:t}=D((0,Tb.useDispatch)(Cb.store)),r=pG(),{postId:o,postType:n,postTypeLabel:s,documentTitle:a,isNotFound:l,templateTitle:c,onNavigateToPreviousEntityRecord:u,isTemplatePreview:d,stylesCanvasTitle:f}=(0,Tb.useSelect)(A=>{let{getCurrentPostType:F,getCurrentPostId:L,getEditorSettings:j,getRenderingMode:z}=A(_),{getEditedEntityRecord:M,getPostType:k,getCurrentTheme:I,isResolving:U}=A(gG.store),G=F(),Y=L(),Z=M("postType",G,Y),{default_template_types:B=[]}=I()??{},V=qs({templateTypes:B,template:Z}),H=k(G)?.labels?.singular_name,{getStylesPath:X,getShowStylebook:ne}=D(A(_)),se=X(),ye=ne(),qe=B6(se,ye);return{postId:Y,postType:G,postTypeLabel:H,documentTitle:Z.title,isNotFound:!Z&&!U("getEditedEntityRecord","postType",G,Y),templateTitle:V.title,onNavigateToPreviousEntityRecord:j().onNavigateToPreviousEntityRecord,isTemplatePreview:z()==="template-locked",stylesCanvasTitle:qe}},[]),{open:m}=(0,Tb.useDispatch)(vG.store),h=(0,yG.useReducedMotion)(),g=$E.includes(n),y=!!u||!!r,v=g?c:a,b=r?.patternTitle||e.title||f||v,S=e.icon,w=A=>{A.stopPropagation(),r?t():u&&u()},T=Fx(o),C=(0,qx.useRef)(!1);return(0,qx.useEffect)(()=>{C.current=!0},[]),(0,sn.jsxs)("div",{className:re("editor-document-bar",{"has-back-button":y}),children:[(0,sn.jsx)(Ji.__unstableAnimatePresence,{children:y&&(0,sn.jsx)(r_e,{className:"editor-document-bar__back",icon:(0,Wu.isRTL)()?vA:pA,onClick:w,size:"compact",initial:C.current?{opacity:0,transform:"translateX(15%)"}:!1,animate:{opacity:1,transform:"translateX(0%)"},exit:{opacity:0,transform:"translateX(15%)"},transition:h?{duration:0}:void 0,children:(0,Wu.__)("Back")})}),!g&&d&&!y&&(0,sn.jsx)(Cb.BlockIcon,{icon:Bi,className:"editor-document-bar__icon-layout"}),l?(0,sn.jsx)(Ji.__experimentalText,{children:(0,Wu.__)("Document not found")}):(0,sn.jsxs)(Ji.Button,{className:"editor-document-bar__command",onClick:()=>m(),size:"compact",children:[(0,sn.jsxs)(Ji.__unstableMotion.div,{className:"editor-document-bar__title",initial:C.current?{opacity:0,transform:y?"translateX(15%)":"translateX(-15%)"}:!1,animate:{opacity:1,transform:"translateX(0%)"},transition:h?{duration:0}:void 0,children:[S&&(0,sn.jsx)(Cb.BlockIcon,{icon:S}),(0,sn.jsxs)(Ji.__experimentalText,{size:"body",as:"h1",children:[(0,sn.jsx)("span",{className:"editor-document-bar__post-title",children:b?(0,SG.__unstableStripHTML)(b):(0,Wu.__)("No title")}),r&&(0,sn.jsx)("span",{className:"editor-document-bar__post-type-label",children:r.type==="template-part"?`\xB7 ${(0,Wu.__)("Template Part")}`:`\xB7 ${(0,Wu.__)("Pattern")}`}),!r&&T&&(0,sn.jsx)("span",{className:"editor-document-bar__post-type-label",children:`\xB7 ${T}`}),!r&&s&&!e.title&&!T&&(0,sn.jsx)("span",{className:"editor-document-bar__post-type-label",children:`\xB7 ${(0,bG.decodeEntities)(s)}`})]})]},y),(0,sn.jsx)("span",{className:"editor-document-bar__shortcut",children:hG.displayShortcut.primary("k")})]})]})}var Hf=i(E(),1),yh=i(O(),1),Xx=i(N(),1),Qx=i(Pb(),1),Kx=i($(),1),wG=i(W(),1),To=i(R(),1);var Uf=i(x(),1),o_e=({children:e,isValid:t,isDisabled:r,level:o,href:n,onSelect:s})=>{function a(l){if(r){l.preventDefault();return}s()}return(0,Uf.jsx)("li",{className:re("document-outline__item",`is-${o.toLowerCase()}`,{"is-invalid":!t,"is-disabled":r}),children:(0,Uf.jsxs)("a",{href:n,className:"document-outline__button","aria-disabled":r,onClick:a,children:[(0,Uf.jsx)("span",{className:"document-outline__emdash","aria-hidden":"true"}),(0,Uf.jsx)("strong",{className:"document-outline__level",children:o}),(0,Uf.jsx)("span",{className:"document-outline__item-content",children:e})]})})},M6=o_e;var wt=i(x(),1),n_e=(0,wt.jsx)("em",{children:(0,Hf.__)("(Empty heading)")}),s_e=[(0,wt.jsx)("br",{},"incorrect-break"),(0,wt.jsx)("em",{children:(0,Hf.__)("(Incorrect heading level)")},"incorrect-message")],i_e=[(0,wt.jsx)("br",{},"incorrect-break-h1"),(0,wt.jsx)("em",{children:(0,Hf.__)("(Your theme may already use a H1 for the post title)")},"incorrect-message-h1")],a_e=[(0,wt.jsx)("br",{},"incorrect-break-multiple-h1"),(0,wt.jsx)("em",{children:(0,Hf.__)("(Multiple H1 headings are not recommended)")},"incorrect-message-multiple-h1")];function l_e(){return(0,wt.jsxs)(To.SVG,{width:"138",height:"148",viewBox:"0 0 138 148",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,wt.jsx)(To.Rect,{width:"138",height:"148",rx:"4",fill:"#F0F6FC"}),(0,wt.jsx)(To.Line,{x1:"44",y1:"28",x2:"24",y2:"28",stroke:"#DDDDDD"}),(0,wt.jsx)(To.Rect,{x:"48",y:"16",width:"27",height:"23",rx:"4",fill:"#DDDDDD"}),(0,wt.jsx)(To.Path,{d:"M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z",fill:"black"}),(0,wt.jsx)(To.Line,{x1:"55",y1:"59",x2:"24",y2:"59",stroke:"#DDDDDD"}),(0,wt.jsx)(To.Rect,{x:"59",y:"47",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,wt.jsx)(To.Path,{d:"M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z",fill:"black"}),(0,wt.jsx)(To.Line,{x1:"80",y1:"90",x2:"24",y2:"90",stroke:"#DDDDDD"}),(0,wt.jsx)(To.Rect,{x:"84",y:"78",width:"30",height:"23",rx:"4",fill:"#F0B849"}),(0,wt.jsx)(To.Path,{d:"M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z",fill:"black"}),(0,wt.jsx)(To.Line,{x1:"66",y1:"121",x2:"24",y2:"121",stroke:"#DDDDDD"}),(0,wt.jsx)(To.Rect,{x:"70",y:"109",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,wt.jsx)(To.Path,{d:"M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z",fill:"black"})]})}var c_e=(e=[])=>e.filter(t=>t.name==="core/heading").map(t=>({...t,level:t.attributes.level,isEmpty:u_e(t)})),u_e=e=>!e.attributes.content||e.attributes.content.trim().length===0;function bh({onSelect:e,hasOutlineItemsDisabled:t}){let{selectBlock:r}=(0,yh.useDispatch)(Kx.store),{title:o,isTitleSupported:n}=(0,yh.useSelect)(g=>{let{getEditedPostAttribute:y}=g(_),{getPostType:v}=g(wG.store),b=v(y("type"));return{title:y("title"),isTitleSupported:b?.supports?.title??!1}}),s=(0,yh.useSelect)(g=>{let{getClientIdsWithDescendants:y,getBlock:v}=g(Kx.store);return y().map(S=>v(S))}),a=(0,yh.useSelect)(g=>{if(g(_).getRenderingMode()==="post-only")return;let{getBlocksByName:y,getClientIdsOfDescendants:v}=g(Kx.store),[b]=y("core/post-content");if(b)return v(b)},[]),l=(0,Xx.useRef)(1),c=(0,Xx.useMemo)(()=>c_e(s),[s]);if(c.length<1)return(0,wt.jsxs)("div",{className:"editor-document-outline has-no-headings",children:[(0,wt.jsx)(l_e,{}),(0,wt.jsx)("p",{children:(0,Hf.__)("Navigate the structure of your document and address issues like empty or incorrect heading levels.")})]});let u=document.querySelector(".editor-post-title__input"),d=n&&o&&u,m=c.reduce((g,y)=>({...g,[y.level]:(g[y.level]||0)+1}),{})[1]>1;function h(g){return Array.isArray(a)?a.includes(g):!0}return(0,wt.jsx)("div",{className:"document-outline",children:(0,wt.jsxs)("ul",{children:[d&&(0,wt.jsx)(M6,{level:(0,Hf.__)("Title"),isValid:!0,onSelect:e,href:`#${u.id}`,isDisabled:t,children:o}),c.map(g=>{let y=g.level>l.current+1,v=!g.isEmpty&&!y&&!!g.level&&(g.level!==1||!m&&!d);return l.current=g.level,(0,wt.jsxs)(M6,{level:`H${g.level}`,isValid:v,isDisabled:t||!h(g.clientId),href:`#block-${g.clientId}`,onSelect:()=>{r(g.clientId),e?.()},children:[g.isEmpty?n_e:(0,Qx.getTextContent)((0,Qx.create)({html:g.attributes.content})),y&&s_e,g.level===1&&m&&a_e,d&&g.level===1&&!m&&i_e]},g.clientId)})]})})}var xG=i(O(),1),TG=i($(),1);function CG({children:e}){return(0,xG.useSelect)(r=>{let{getGlobalBlockCount:o}=r(TG.store);return o("core/heading")>0})?e:null}var PG=i(N(),1),kG=i(O(),1),fi=i(E(),1),EG=i($(),1),AG=i(Es(),1),RG=i(yo(),1),OG=i(x(),1);function d_e(){let{registerShortcut:e}=(0,kG.useDispatch)(AG.store);return(0,PG.useEffect)(()=>{e({name:"core/editor/toggle-mode",category:"global",description:(0,fi.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),e({name:"core/editor/save",category:"global",description:(0,fi.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/editor/undo",category:"global",description:(0,fi.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/editor/redo",category:"global",description:(0,fi.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,RG.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/editor/toggle-list-view",category:"global",description:(0,fi.__)("Show or hide the List View."),keyCombination:{modifier:"access",character:"o"}}),e({name:"core/editor/toggle-distraction-free",category:"global",description:(0,fi.__)("Enter or exit distraction free mode."),keyCombination:{modifier:"primaryShift",character:"\\"}}),e({name:"core/editor/toggle-sidebar",category:"global",description:(0,fi.__)("Show or hide the Settings panel."),keyCombination:{modifier:"primaryShift",character:","}}),e({name:"core/editor/keyboard-shortcuts",category:"main",description:(0,fi.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),e({name:"core/editor/new-note",category:"block",description:(0,fi.__)("Add a new note."),keyCombination:{modifier:"primaryAlt",character:"m"}}),e({name:"core/editor/next-region",category:"global",description:(0,fi.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/editor/previous-region",category:"global",description:(0,fi.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]})},[e]),(0,OG.jsx)(EG.BlockEditorKeyboardShortcuts.Register,{})}var IG=d_e;var Jx=i(E(),1),FG=i(R(),1),$x=i(O(),1),kb=i(yo(),1);var NG=i(N(),1);var BG=i(x(),1);function f_e(e,t){let r=(0,kb.isAppleOS)()?kb.displayShortcut.primaryShift("z"):kb.displayShortcut.primary("y"),o=(0,$x.useSelect)(s=>s(_).hasEditorRedo(),[]),{redo:n}=(0,$x.useDispatch)(_);return(0,BG.jsx)(FG.Button,{__next40pxDefaultSize:!0,...e,ref:t,icon:(0,Jx.isRTL)()?Lv:Rv,label:(0,Jx.__)("Redo"),shortcut:r,"aria-disabled":!o,onClick:o?n:void 0,className:"editor-history__redo"})}var eT=(0,NG.forwardRef)(f_e);var tT=i(E(),1),DG=i(R(),1),rT=i(O(),1),LG=i(yo(),1);var MG=i(N(),1);var VG=i(x(),1);function m_e(e,t){let r=(0,rT.useSelect)(n=>n(_).hasEditorUndo(),[]),{undo:o}=(0,rT.useDispatch)(_);return(0,VG.jsx)(DG.Button,{__next40pxDefaultSize:!0,...e,ref:t,icon:(0,tT.isRTL)()?Rv:Lv,label:(0,tT.__)("Undo"),shortcut:LG.displayShortcut.primary("z"),"aria-disabled":!r,onClick:r?o:void 0,className:"editor-history__undo"})}var oT=(0,MG.forwardRef)(m_e);var zG=i(Ws(),1),UG=i(ct(),1);var nT=i(R(),1),Sh=i(E(),1),sT=i(O(),1),jG=i(N(),1),V6=i($(),1),Gf=i(x(),1);function iT(){let[e,t]=(0,jG.useState)(!1),r=(0,sT.useSelect)(s=>s(V6.store).isValidTemplate(),[]),{setTemplateValidity:o,synchronizeTemplate:n}=(0,sT.useDispatch)(V6.store);return r?null:(0,Gf.jsxs)(Gf.Fragment,{children:[(0,Gf.jsx)(nT.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning",actions:[{label:(0,Sh.__)("Keep it as is"),onClick:()=>o(!0)},{label:(0,Sh.__)("Reset the template"),onClick:()=>t(!0)}],children:(0,Sh.__)("The content of your post doesn\u2019t match the template assigned to your post type.")}),(0,Gf.jsx)(nT.__experimentalConfirmDialog,{isOpen:e,confirmButtonText:(0,Sh.__)("Reset"),onConfirm:()=>{t(!1),n()},onCancel:()=>t(!1),size:"medium",children:(0,Sh.__)("Resetting the template may result in loss of content, do you want to continue?")})]})}var j6=i(x(),1);function p_e(){return(0,zG.default)("wp.editor.EditorNotices",{since:"7.0",version:"7.2",alternative:"wp.notices.InlineNotices"}),(0,j6.jsx)(UG.InlineNotices,{pinnedNoticesClassName:"components-editor-notices__pinned",dismissibleNoticesClassName:"components-editor-notices__dismissible",children:(0,j6.jsx)(iT,{})})}var HG=p_e;var GG=i(Ws(),1),WG=i(ct(),1),YG=i(x(),1);function qG(){return(0,GG.default)("wp.editor.EditorSnackbars",{since:"7.0",version:"7.2",alternative:"wp.notices.SnackbarNotices"}),(0,YG.jsx)(WG.SnackbarNotices,{className:"components-editor-notices__snackbar"})}var cc=i(R(),1),lc=i(E(),1),_h=i(N(),1),Eb=i(pe(),1),eW=i(O(),1);var Wf=i(E(),1),H6=i(O(),1),lT=i(R(),1),G6=i(W(),1);var aT=i(R(),1),z6=i(E(),1),ZG=i(O(),1),U6=i(W(),1),KG=i(vt(),1);var ic=i(x(),1);function XG({record:e,checked:t,onChange:r}){let{name:o,kind:n,title:s,key:a}=e,{entityRecordTitle:l,hasPostMetaChanges:c}=(0,ZG.useSelect)(u=>{if(n!=="postType"||o!=="wp_template")return{entityRecordTitle:s,hasPostMetaChanges:D(u(_)).hasPostMetaChanges(o,a)};let d=u(U6.store).getEditedEntityRecord(n,o,a),{default_template_types:f=[]}=u(U6.store).getCurrentTheme()??{};return{entityRecordTitle:qs({template:d,templateTypes:f}).title,hasPostMetaChanges:D(u(_)).hasPostMetaChanges(o,a)}},[o,n,s,a]);return(0,ic.jsxs)(ic.Fragment,{children:[(0,ic.jsx)(aT.PanelRow,{children:(0,ic.jsx)(aT.CheckboxControl,{label:(0,KG.decodeEntities)(l)||(0,z6.__)("Untitled"),checked:t,onChange:r,className:"entities-saved-states__change-control"})}),c&&(0,ic.jsx)("ul",{className:"entities-saved-states__changes",children:(0,ic.jsx)("li",{children:(0,z6.__)("Post Meta.")})})]})}var ac=i(x(),1);function h_e(e,t){switch(e){case"site":return t===1?(0,Wf.__)("This change will affect your whole site."):(0,Wf.__)("These changes will affect your whole site.");case"wp_template":return(0,Wf.__)("This change will affect other parts of your site that use this template.");case"page":case"post":return(0,Wf.__)("The following has been modified.")}}function g_e({record:e}){let{editedRecord:t,savedRecord:r}=(0,H6.useSelect)(n=>{let{getEditedEntityRecord:s,getEntityRecord:a}=n(G6.store);return{editedRecord:s(e.kind,e.name,e.key),savedRecord:a(e.kind,e.name,e.key)}},[e.kind,e.name,e.key]),o=Ay(t,r,{maxResults:10});return o.length?(0,ac.jsx)("ul",{className:"entities-saved-states__changes",children:o.map(n=>(0,ac.jsx)("li",{children:n},n))}):null}function v_e({record:e,count:t}){if(e?.name==="globalStyles")return null;let r=h_e(e?.name,t);return r?(0,ac.jsx)(lT.PanelRow,{children:r}):null}function QG({list:e,unselectedEntities:t,setUnselectedEntities:r}){let o=e.length,n=e[0],a=(0,H6.useSelect)(l=>l(G6.store).getEntityConfig(n.kind,n.name),[n.kind,n.name]).label;return n?.name==="wp_template_part"&&(a=o===1?(0,Wf.__)("Template Part"):(0,Wf.__)("Template Parts")),(0,ac.jsxs)(lT.PanelBody,{title:a,initialOpen:!0,className:"entities-saved-states__panel-body",children:[(0,ac.jsx)(v_e,{record:n,count:o}),e.map(l=>(0,ac.jsx)(XG,{record:l,checked:!t.some(c=>c.kind===l.kind&&c.name===l.name&&c.key===l.key&&c.property===l.property),onChange:c=>r(l,c)},l.key||l.property)),n?.name==="globalStyles"&&(0,ac.jsx)(g_e,{record:n})]})}var JG=i(O(),1),$G=i(W(),1),cT=i(N(),1),uT=()=>{let{editedEntities:e,siteEdits:t,siteEntityConfig:r}=(0,JG.useSelect)(c=>{let{__experimentalGetDirtyEntityRecords:u,getEntityRecordEdits:d,getEntityConfig:f}=c($G.store);return{editedEntities:u(),siteEdits:d("root","site"),siteEntityConfig:f("root","site")}},[]),o=(0,cT.useMemo)(()=>{let c=e.filter(f=>!(f.kind==="root"&&f.name==="site")),u=r?.meta?.labels??{},d=[];for(let f in t)d.push({kind:"root",name:"site",title:u[f]||f,property:f});return[...c,...d]},[e,t,r]),[n,s]=(0,cT.useState)([]),a=({kind:c,name:u,key:d,property:f},m)=>{s(m?n.filter(h=>h.kind!==c||h.name!==u||h.key!==d||h.property!==f):[...n,{kind:c,name:u,key:d,property:f}])},l=o.length-n.length>0;return{dirtyEntityRecords:o,isDirty:l,setUnselectedEntities:a,unselectedEntities:n}};var Co=i(x(),1);function y_e(e){return e}function dT({close:e,renderDialog:t,variant:r}){let o=uT();return(0,Co.jsx)(Ab,{close:e,renderDialog:t,variant:r,...o})}function Ab({additionalPrompt:e=void 0,close:t,onSave:r=y_e,saveEnabled:o=void 0,saveLabel:n=(0,lc.__)("Save"),renderDialog:s,dirtyEntityRecords:a,isDirty:l,setUnselectedEntities:c,unselectedEntities:u,variant:d="default",successNoticeContent:f}){let m=(0,_h.useRef)(),{saveDirtyEntities:h}=D((0,eW.useDispatch)(_)),g=a.reduce((I,U)=>{let{name:G}=U;return I[G]||(I[G]=[]),I[G].push(U),I},{}),{site:y,wp_template:v,wp_template_part:b,...S}=g,w=[y,v,b,...Object.values(S)].filter(Array.isArray),T=o??l,C=(0,_h.useCallback)(()=>t(),[t]),[A,F]=(0,Eb.__experimentalUseDialog)({onClose:()=>C()}),L=(0,Eb.useInstanceId)(Ab,"entities-saved-states__panel-label"),j=(0,Eb.useInstanceId)(Ab,"entities-saved-states__panel-description"),z=a.length?(0,lc.__)("Select the items you want to save."):void 0,M=d==="inline",k=(0,Co.jsxs)(Co.Fragment,{children:[(0,Co.jsx)(cc.FlexItem,{isBlock:!M,as:cc.Button,variant:M?"tertiary":"secondary",size:M?void 0:"compact",onClick:C,children:(0,lc.__)("Cancel")}),(0,Co.jsx)(cc.FlexItem,{isBlock:!M,as:cc.Button,ref:m,variant:"primary",size:M?void 0:"compact",disabled:!T,accessibleWhenDisabled:!0,onClick:()=>h({onSave:r,dirtyEntityRecords:a,entitiesToSkip:u,close:t,successNoticeContent:f}),className:"editor-entities-saved-states__save-button",children:n})]});return(0,Co.jsxs)("div",{ref:s?A:void 0,...s&&F,className:re("entities-saved-states__panel",{"is-inline":M}),role:s?"dialog":void 0,"aria-labelledby":s?L:void 0,"aria-describedby":s?j:void 0,children:[!M&&(0,Co.jsx)(cc.Flex,{className:"entities-saved-states__panel-header",gap:2,children:k}),(0,Co.jsxs)("div",{className:"entities-saved-states__text-prompt",children:[(0,Co.jsx)("div",{className:"entities-saved-states__text-prompt--header-wrapper",children:(0,Co.jsx)("strong",{id:s?L:void 0,className:"entities-saved-states__text-prompt--header",children:(0,lc.__)("Are you ready to save?")})}),(0,Co.jsxs)("div",{id:s?j:void 0,children:[e,(0,Co.jsx)("p",{className:"entities-saved-states__text-prompt--changes-count",children:l?(0,_h.createInterpolateElement)((0,lc.sprintf)((0,lc._n)("There is <strong>%d site change</strong> waiting to be saved.","There are <strong>%d site changes</strong> waiting to be saved.",a.length),a.length),{strong:(0,Co.jsx)("strong",{})}):z})]})]}),w.map(I=>(0,Co.jsx)(QG,{list:I,unselectedEntities:u,setUnselectedEntities:c},I[0].name)),M&&(0,Co.jsx)(cc.Flex,{direction:"row",justify:"flex-end",className:"entities-saved-states__panel-footer",children:k})]})}var rW=i(N(),1),fT=i(E(),1),Yf=i(R(),1),oW=i(O(),1),nW=i(pe(),1),sW=i(fo(),1);var Yu=i(x(),1);function b_e(){try{return(0,oW.select)(_).getEditedPostContent()}catch{}}function tW({text:e,children:t,variant:r="secondary"}){let o=(0,nW.useCopyToClipboard)(e);return(0,Yu.jsx)(Yf.Button,{__next40pxDefaultSize:!0,variant:r,ref:o,children:t})}var S_e=class extends rW.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,sW.doAction)("editor.ErrorBoundary.errorLogged",e)}static getDerivedStateFromError(e){return{error:e}}render(){let{error:e}=this.state,{canCopyContent:t=!1}=this.props;return e?(0,Yu.jsxs)(Yf.__experimentalHStack,{className:"editor-error-boundary",alignment:"baseline",spacing:4,justify:"space-between",expanded:!1,wrap:!0,children:[(0,Yu.jsx)(Yf.__experimentalText,{as:"p",children:(0,fT.__)("The editor has encountered an unexpected error.")}),(0,Yu.jsxs)(Yf.__experimentalHStack,{expanded:!1,children:[t&&(0,Yu.jsx)(tW,{text:b_e,children:(0,fT.__)("Copy contents")}),(0,Yu.jsx)(tW,{variant:"primary",text:e?.stack,children:(0,fT.__)("Copy error")})]})]}):this.props.children}},iW=S_e;var uc=i(N(),1),Ob=i(pe(),1),dc=i(O(),1),W6=i(E(),1),aW=i(Xe(),1),lW=i(ct(),1);var cW=i(x(),1),__e=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,Rb,w_e=()=>{if(Rb!==void 0)return Rb;try{window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),Rb=!0}catch{Rb=!1}return Rb};function x_e(){let{postId:e,isEditedPostNew:t,hasRemoteAutosave:r}=(0,dc.useSelect)(c=>({postId:c(_).getCurrentPostId(),isEditedPostNew:c(_).isEditedPostNew(),hasRemoteAutosave:!!c(_).getEditorSettings().autosave}),[]),{getEditedPostAttribute:o}=(0,dc.useSelect)(_),{createWarningNotice:n,removeNotice:s}=(0,dc.useDispatch)(lW.store),{editPost:a,resetEditorBlocks:l}=(0,dc.useDispatch)(_);(0,uc.useEffect)(()=>{let c=oB(e,t);if(!c)return;try{c=JSON.parse(c)}catch{return}let{post_title:u,content:d,excerpt:f}=c,m={title:u,content:d,excerpt:f};if(!Object.keys(m).some(y=>m[y]!==o(y))){KS(e,t);return}if(r)return;let h="wpEditorAutosaveRestore";n((0,W6.__)("The backup of this post in your browser is different from the version below."),{id:h,actions:[{label:(0,W6.__)("Restore the backup"),onClick(){let{content:g,...y}=m;a(y),l((0,aW.parse)(m.content)),s(h)}}]})},[t,e])}function T_e(){let{postId:e,isEditedPostNew:t,isDirty:r,isAutosaving:o,didError:n}=(0,dc.useSelect)(u=>({postId:u(_).getCurrentPostId(),isEditedPostNew:u(_).isEditedPostNew(),isDirty:u(_).isEditedPostDirty(),isAutosaving:u(_).isAutosavingPost(),didError:u(_).didPostSaveRequestFail()}),[]),s=(0,uc.useRef)(r),a=(0,uc.useRef)(o);(0,uc.useEffect)(()=>{!n&&(a.current&&!o||s.current&&!r)&&KS(e,t),s.current=r,a.current=o},[r,o,n]);let l=(0,Ob.usePrevious)(t),c=(0,Ob.usePrevious)(e);(0,uc.useEffect)(()=>{c===e&&l&&!t&&KS(e,!0)},[t,e])}function C_e(){let{autosave:e}=(0,dc.useDispatch)(_),t=(0,uc.useCallback)(()=>{__e(()=>e({local:!0}))},[]);x_e(),T_e();let r=(0,dc.useSelect)(o=>o(_).getEditorSettings().localAutosaveInterval,[]);return(0,cW.jsx)(Ix,{interval:r,autosave:t})}var uW=(0,Ob.ifCondition)(w_e)(C_e);var dW=i(O(),1),fW=i(W(),1);function P_e({children:e}){return(0,dW.useSelect)(r=>{let{getEditedPostAttribute:o}=r(_),{getPostType:n}=r(fW.store);return!!n(o("type"))?.supports?.["page-attributes"]},[])?e:null}var wh=P_e;var Y6=i(E(),1),Th=i(R(),1),mT=i(O(),1),hW=i(N(),1);var mW=i(O(),1),pW=i(W(),1);function k_e(e={},t){if(e[t]!==void 0)return!!e[t];let[r,o]=t.split("."),[n]=Array.isArray(e[r])?e[r]:[];return Array.isArray(n)?n.includes(o):!!n?.[o]}function E_e({children:e,supportKeys:t}){let r=(0,mW.useSelect)(n=>{let{getEditedPostAttribute:s}=n(_),{getPostType:a}=n(pW.store);return a(s("type"))},[]),o=!!r;return r&&(o=(Array.isArray(t)?t:[t]).some(n=>k_e(r.supports,n))),o?e:null}var er=E_e;var xh=i(x(),1);function A_e(){let e=(0,mT.useSelect)(a=>a(_).getEditedPostAttribute("menu_order")??0,[]),{editPost:t}=(0,mT.useDispatch)(_),[r,o]=(0,hW.useState)(null),n=a=>{o(a);let l=Number(a);Number.isInteger(l)&&a.trim?.()!==""&&t({menu_order:l})},s=r??e;return(0,xh.jsx)(Th.Flex,{children:(0,xh.jsx)(Th.FlexBlock,{children:(0,xh.jsx)(Th.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,Y6.__)("Order"),help:(0,Y6.__)("Set the page order."),value:s,onChange:n,hideLabelFromVision:!0,onBlur:()=>{o(null)}})})})}function gW(){return(0,xh.jsx)(er,{supportKeys:"page-attributes",children:(0,xh.jsx)(A_e,{})})}var EW=i(O(),1),AW=i(W(),1);var Z6=i(O_(),1),ss=i(E(),1),qu=i(R(),1),wW=i(pe(),1),Ga=i(N(),1),Ph=i(O(),1),X6=i(vt(),1),hT=i(W(),1),xW=i($(),1),TW=i(zr(),1);var vW=i(R(),1),yW=i(N(),1),Ib=i(x(),1),R_e=(0,yW.forwardRef)(({className:e,label:t,children:r},o)=>(0,Ib.jsxs)(vW.__experimentalHStack,{className:re("editor-post-panel__row",e),ref:o,children:[t&&(0,Ib.jsx)("div",{className:"editor-post-panel__row-label",children:t}),(0,Ib.jsx)("div",{className:"editor-post-panel__row-control",children:r})]})),xt=R_e;var bW=i(vt(),1);function pT(e){let t=e.map(n=>({children:[],parent:void 0,...n}));if(t.some(({parent:n})=>n===void 0))return t;let r=t.reduce((n,s)=>{let{parent:a}=s;return n[a]||(n[a]=[]),n[a].push(s),n},{}),o=n=>n.map(s=>{let a=r[s.id];return{...s,children:a&&a.length?o(a):[]}});return o(r[0]||[])}var Ch=e=>(0,bW.decodeEntities)(e),q6=e=>({...e,name:Ch(e.name)}),SW=e=>(e??[]).map(q6);var ns=i(x(),1);function K6(e){return e?.title?.rendered?(0,X6.decodeEntities)(e.title.rendered):`#${e.id} (${(0,ss.__)("no title")})`}var _W=(e,t)=>{let r=(0,Z6.default)(e||"").toLowerCase(),o=(0,Z6.default)(t||"").toLowerCase();return r===o?0:r.startsWith(o)?r.length:1/0};function CW(){let{editPost:e}=(0,Ph.useDispatch)(_),[t,r]=(0,Ga.useState)(!1),{isHierarchical:o,parentPostId:n,parentPostTitle:s,pageItems:a,isLoading:l}=(0,Ph.useSelect)(f=>{let{getPostType:m,getEntityRecords:h,getEntityRecord:g,isResolving:y}=f(hT.store),{getCurrentPostId:v,getEditedPostAttribute:b}=f(_),S=b("type"),w=b("parent"),T=m(S),C=v(),A=T?.hierarchical??!1,F={per_page:100,exclude:C,parent_exclude:C,orderby:"menu_order",order:"asc",_fields:"id,title,parent"};t&&(F.search=t,F.orderby="relevance");let L=w?g("postType",S,w):null;return{isHierarchical:A,parentPostId:w,parentPostTitle:L?K6(L):"",pageItems:A?h("postType",S,F):null,isLoading:A?y("getEntityRecords",["postType",S,F]):!1}},[t]),c=(0,Ga.useMemo)(()=>{let f=(y,v=0)=>y.map(w=>[{value:w.id,label:"\u2014 ".repeat(v)+(0,X6.decodeEntities)(w.name),rawName:w.name},...f(w.children||[],v+1)]).sort(([w],[T])=>{let C=_W(w.rawName,t),A=_W(T.rawName,t);return C>=A?1:-1}).flat();if(!a)return[];let m=a.map(y=>({id:y.id,parent:y.parent,name:K6(y)}));t||(m=pT(m));let h=f(m),g=h.find(y=>y.value===n);return s&&!g&&h.unshift({value:n,label:s}),h},[a,t,s,n]);if(!o)return null;let u=f=>{r(f)},d=f=>{e({parent:f})};return(0,ns.jsx)(qu.ComboboxControl,{__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,ss.__)("Parent"),help:(0,ss.__)("Choose a parent page."),value:n,options:c,onFilterValueChange:(0,wW.debounce)(u,300),onChange:d,hideLabelFromVision:!0,isLoading:l})}function O_e({isOpen:e,onClick:t}){let r=(0,Ph.useSelect)(n=>{let{getEditedPostAttribute:s}=n(_),a=s("parent");if(!a)return null;let{getEntityRecord:l}=n(hT.store),c=s("type");return l("postType",c,a)},[]),o=(0,Ga.useMemo)(()=>r?K6(r):(0,ss.__)("None"),[r]);return(0,ns.jsx)(qu.Button,{size:"compact",className:"editor-post-parent__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,ss.sprintf)((0,ss.__)("Change parent: %s"),o),onClick:t,children:o})}function PW(){let e=(0,Ph.useSelect)(n=>n(hT.store).getEntityRecord("root","__unstableBase")?.home,[]),[t,r]=(0,Ga.useState)(null),o=(0,Ga.useMemo)(()=>({anchor:t,placement:"left-start",offset:36,shift:!0}),[t]);return(0,ns.jsx)(xt,{label:(0,ss.__)("Parent"),ref:r,children:(0,ns.jsx)(qu.Dropdown,{popoverProps:o,className:"editor-post-parent__panel-dropdown",contentClassName:"editor-post-parent__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:n,onToggle:s})=>(0,ns.jsx)(O_e,{isOpen:n,onClick:s}),renderContent:({onClose:n})=>(0,ns.jsxs)("div",{className:"editor-post-parent",children:[(0,ns.jsx)(xW.__experimentalInspectorPopoverHeader,{title:(0,ss.__)("Parent"),onClose:n}),(0,ns.jsxs)("div",{children:[(0,Ga.createInterpolateElement)((0,ss.sprintf)((0,ss.__)('Child pages inherit characteristics from their parent, such as URL structure. For instance, if "Pricing" is a child of "Services", its URL would be %s<wbr />/services<wbr />/pricing.'),(0,TW.filterURLForDisplay)(e).replace(/([/.])/g,"<wbr />$1")),{wbr:(0,ns.jsx)("wbr",{})}),(0,ns.jsx)("p",{children:(0,Ga.createInterpolateElement)((0,ss.__)("They also show up as sub-items in the default navigation menu. <a>Learn more.</a>"),{a:(0,ns.jsx)(qu.ExternalLink,{href:(0,ss.__)("https://wordpress.org/documentation/article/page-post-settings-sidebar/#page-attributes")})})})]}),(0,ns.jsx)(CW,{})]})})})}var kW=CW;var gT=i(x(),1),I_e="page-attributes";function F_e(){let{isEnabled:e,postType:t}=(0,EW.useSelect)(r=>{let{getEditedPostAttribute:o,isEditorPanelEnabled:n}=r(_),{getPostType:s}=r(AW.store);return{isEnabled:n(I_e),postType:s(o("type"))}},[]);return!e||!t?null:(0,gT.jsx)(PW,{})}function vT(){return(0,gT.jsx)(wh,{children:(0,gT.jsx)(F_e,{})})}var mi=i(E(),1),mc=i(R(),1),Eh=i(O(),1),t3=i(W(),1),IW=i($(),1),Ah=i(N(),1);var FW=i(ct(),1);var yT=i(O(),1),J6=i(N(),1),$i=i(Xe(),1),ea=i(R(),1),qf=i(E(),1);var fc=i(x(),1),Q6=(0,qf.__)("Custom Template");function bT({onClose:e}){let{defaultBlockTemplate:t,onNavigateToEntityRecord:r}=(0,yT.useSelect)(d=>{let{getEditorSettings:f,getCurrentTemplateId:m}=d(_);return{defaultBlockTemplate:f().defaultBlockTemplate,onNavigateToEntityRecord:f().onNavigateToEntityRecord,getTemplateId:m}}),{createTemplate:o}=D((0,yT.useDispatch)(_)),[n,s]=(0,J6.useState)(""),[a,l]=(0,J6.useState)(!1),c=()=>{s(""),e()},u=async d=>{if(d.preventDefault(),a)return;l(!0);let f=t??(0,$i.serialize)([(0,$i.createBlock)("core/group",{tagName:"header",layout:{inherit:!0}},[(0,$i.createBlock)("core/site-title"),(0,$i.createBlock)("core/site-tagline")]),(0,$i.createBlock)("core/separator"),(0,$i.createBlock)("core/group",{tagName:"main"},[(0,$i.createBlock)("core/group",{layout:{inherit:!0}},[(0,$i.createBlock)("core/post-title")]),(0,$i.createBlock)("core/post-content",{layout:{inherit:!0}})])]),m=await o({slug:tf(n||Q6)||"wp-custom-template",content:f,title:n||Q6,status:"publish"});l(!1),r({postId:m.id,postType:"wp_template"}),c()};return(0,fc.jsx)(ea.Modal,{title:(0,qf.__)("Create custom template"),onRequestClose:c,focusOnMount:"firstContentElement",size:"small",overlayClassName:"editor-post-template__create-template-modal",children:(0,fc.jsx)("form",{className:"editor-post-template__create-form",onSubmit:u,children:(0,fc.jsxs)(ea.__experimentalVStack,{spacing:"3",children:[(0,fc.jsx)(ea.TextControl,{__next40pxDefaultSize:!0,label:(0,qf.__)("Name"),value:n,onChange:s,placeholder:Q6,disabled:a,help:(0,qf.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),(0,fc.jsxs)(ea.__experimentalHStack,{justify:"right",children:[(0,fc.jsx)(ea.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:c,children:(0,qf.__)("Cancel")}),(0,fc.jsx)(ea.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:a,"aria-disabled":a,children:(0,qf.__)("Create")})]})]})})})}var Fb=i(O(),1),RW=i(N(),1),ST=i(W(),1);function kh(){return(0,Fb.useSelect)(e=>{let{getCurrentPostId:t,getCurrentPostType:r}=e(_);return{postId:t(),postType:r()}},[])}function Zf(){let{postType:e,postId:t}=kh();return(0,Fb.useSelect)(r=>{let{canUser:o,getEntityRecord:n,getEntityRecords:s}=r(ST.store),a=o("read",{kind:"root",name:"site"})?n("root","site"):void 0,l=+t===a?.page_for_posts,c=e==="page"&&+t===a?.page_on_front,u=c?s("postType","wp_template",{per_page:-1}):[],d=c&&!!u?.some(({slug:f})=>f==="front-page");return!l&&!d},[t,e])}function OW(e){return(0,Fb.useSelect)(t=>t(ST.store).getEntityRecords("postType","wp_template",{per_page:-1,post_type:e}),[e])}function $6(e){let t=e3(),r=Zf(),o=OW(e);return(0,RW.useMemo)(()=>r&&o?.filter(n=>n.is_custom&&n.slug!==t&&!!n.content.raw),[o,t,r])}function e3(){let{postType:e,postId:t}=kh(),r=OW(e),o=(0,Fb.useSelect)(n=>n(ST.store).getEditedEntityRecord("postType",e,t)?.template,[e,t]);if(o)return r?.find(n=>n.slug===o)?.slug}var is=i(x(),1);function N_e({isOpen:e,onClick:t}){let r=(0,Eh.useSelect)(o=>{let n=o(_).getEditedPostAttribute("template"),{supportsTemplateMode:s,availableTemplates:a}=o(_).getEditorSettings();if(!s&&a[n])return a[n];let l=o(t3.store).canUser("create",{kind:"postType",name:"wp_template"})&&o(_).getCurrentTemplateId();return l?.title||l?.slug||a?.[n]},[]);return(0,is.jsx)(mc.Button,{__next40pxDefaultSize:!0,variant:"tertiary","aria-expanded":e,"aria-label":(0,mi.__)("Template options"),onClick:t,children:r??(0,mi.__)("Default template")})}function B_e({onClose:e}){let t=Zf(),{availableTemplates:r,fetchedTemplates:o,selectedTemplateSlug:n,canCreate:s,canEdit:a,currentTemplateId:l,onNavigateToEntityRecord:c,getEditorSettings:u}=(0,Eh.useSelect)(v=>{let{canUser:b,getEntityRecords:S}=v(t3.store),w=v(_).getEditorSettings(),T=b("create",{kind:"postType",name:"wp_template"}),C=v(_).getCurrentTemplateId();return{availableTemplates:w.availableTemplates,fetchedTemplates:T?S("postType","wp_template",{post_type:v(_).getCurrentPostType(),per_page:-1}):void 0,selectedTemplateSlug:v(_).getEditedPostAttribute("template"),canCreate:t&&T&&w.supportsTemplateMode,canEdit:t&&T&&w.supportsTemplateMode&&!!C,currentTemplateId:C,onNavigateToEntityRecord:w.onNavigateToEntityRecord,getEditorSettings:v(_).getEditorSettings}},[t]),d=(0,Ah.useMemo)(()=>Object.entries({...r,...Object.fromEntries((o??[]).map(({slug:v,title:b})=>[v,b.rendered]))}).map(([v,b])=>({value:v,label:b})),[r,o]),f=d.find(v=>v.value===n)??d.find(v=>!v.value),{editPost:m}=(0,Eh.useDispatch)(_),{createSuccessNotice:h}=(0,Eh.useDispatch)(FW.store),[g,y]=(0,Ah.useState)(!1);return(0,is.jsxs)("div",{className:"editor-post-template__classic-theme-dropdown",children:[(0,is.jsx)(IW.__experimentalInspectorPopoverHeader,{title:(0,mi.__)("Template"),help:(0,mi.__)("Templates define the way content is displayed when viewing your site."),actions:s?[{icon:tA,label:(0,mi.__)("Add template"),onClick:()=>y(!0)}]:[],onClose:e}),t?(0,is.jsx)(mc.SelectControl,{__next40pxDefaultSize:!0,hideLabelFromVision:!0,label:(0,mi.__)("Template"),value:f?.value??"",options:d,onChange:v=>m({template:v||""})}):(0,is.jsx)(mc.Notice,{status:"warning",isDismissible:!1,children:(0,mi.__)("The posts page template cannot be changed.")}),a&&c&&(0,is.jsx)("p",{children:(0,is.jsx)(mc.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>{c({postId:l,postType:"wp_template"}),e(),h((0,mi.__)("Editing template. Changes made here affect all posts and pages that use the template."),{type:"snackbar",actions:[{label:(0,mi.__)("Go back"),onClick:()=>u().onNavigateToPreviousEntityRecord()}]})},children:(0,mi.__)("Edit template")})}),g&&(0,is.jsx)(bT,{onClose:()=>y(!1)})]})}function D_e(){let[e,t]=(0,Ah.useState)(null),r=(0,Ah.useMemo)(()=>({anchor:e,className:"editor-post-template__dropdown",placement:"left-start",offset:36,shift:!0}),[e]);return(0,is.jsx)(xt,{label:(0,mi.__)("Template"),ref:t,children:(0,is.jsx)(mc.Dropdown,{popoverProps:r,focusOnMount:!0,renderToggle:({isOpen:o,onToggle:n})=>(0,is.jsx)(N_e,{isOpen:o,onClick:n}),renderContent:({onClose:o})=>(0,is.jsx)(B_e,{onClose:o})})})}var _T=D_e;var TT=i(R(),1),jW=i(yu(),1),CT=i(O(),1),zW=i(BW(),1);var MW=i(R(),1);var wT=i(O(),1),DW=i(dt(),1);var LW=i(x(),1),{PreferenceBaseOption:L_e}=D(DW.privateApis);function Zu(e){let{toggleEditorPanelEnabled:t}=(0,wT.useDispatch)(_),{isChecked:r,isRemoved:o}=(0,wT.useSelect)(n=>{let{isEditorPanelEnabled:s,isEditorPanelRemoved:a}=n(_);return{isChecked:s(e.panelName),isRemoved:a(e.panelName)}},[e.panelName]);return o?null:(0,LW.jsx)(L_e,{isChecked:r,onChange:()=>t(e.panelName),...e})}var r3=i(x(),1),{Fill:M_e,Slot:V_e}=(0,MW.createSlotFill)("EnablePluginDocumentSettingPanelOption"),VW=({label:e,panelName:t})=>(0,r3.jsx)(M_e,{children:(0,r3.jsx)(Zu,{label:e,panelName:t})});VW.Slot=V_e;var xT=VW;var Ku=i(x(),1),{Fill:j_e,Slot:z_e}=(0,TT.createSlotFill)("PluginDocumentSettingPanel"),UW=({name:e,className:t,title:r,icon:o,children:n})=>{let{name:s}=(0,jW.usePluginContext)(),a=`${s}/${e}`,{opened:l,isEnabled:c}=(0,CT.useSelect)(d=>{let{isEditorPanelOpened:f,isEditorPanelEnabled:m}=d(_);return{opened:f(a),isEnabled:m(a)}},[a]),{toggleEditorPanelOpened:u}=(0,CT.useDispatch)(_);return e===void 0&&(0,zW.default)("PluginDocumentSettingPanel requires a name property."),(0,Ku.jsxs)(Ku.Fragment,{children:[(0,Ku.jsx)(xT,{label:r,panelName:a}),(0,Ku.jsx)(j_e,{children:c&&(0,Ku.jsx)(TT.PanelBody,{className:t,title:r,icon:o,opened:l,onToggle:()=>u(a),children:n})})]})};UW.Slot=z_e;var PT=UW;var HW=i($(),1),GW=i(R(),1),WW=i(pe(),1),o3=i(x(),1),U_e=(e,t)=>e.filter(r=>!t.includes(r)).length===0,H_e=(e,t)=>!Array.isArray(t)||U_e(e,t),G_e=({allowedBlocks:e,icon:t,label:r,onClick:o,small:n,role:s})=>(0,o3.jsx)(HW.BlockSettingsMenuControls,{children:({selectedBlocks:a,onClose:l})=>H_e(a,e)?(0,o3.jsx)(GW.MenuItem,{onClick:(0,WW.compose)(o,l),icon:t,label:n?r:void 0,role:s,children:!n&&r}):null}),YW=G_e;var qW=i(R(),1),ZW=i(yu(),1);var KW=i(x(),1);function XW(e){let t=(0,ZW.usePluginContext)();return(0,KW.jsx)(ti,{name:"core/plugin-more-menu",as:e.as??qW.MenuItem,icon:e.icon||t.icon,...e})}var QW=i(yu(),1),kT=i(R(),1),n3=i(x(),1),{Fill:W_e,Slot:Y_e}=(0,kT.createSlotFill)("PluginPostPublishPanel"),JW=({children:e,className:t,title:r,initialOpen:o=!1,icon:n})=>{let{icon:s}=(0,QW.usePluginContext)();return(0,n3.jsx)(W_e,{children:(0,n3.jsx)(kT.PanelBody,{className:t,initialOpen:o||!r,title:r,icon:n??s,children:e})})};JW.Slot=Y_e;var ET=JW;var AT=i(R(),1),s3=i(x(),1),{Fill:q_e,Slot:Z_e}=(0,AT.createSlotFill)("PluginPostStatusInfo"),$W=({children:e,className:t})=>(0,s3.jsx)(q_e,{children:(0,s3.jsx)(AT.PanelRow,{className:t,children:e})});$W.Slot=Z_e;var RT=$W;var OT=i(R(),1),eY=i(yu(),1),i3=i(x(),1),{Fill:K_e,Slot:X_e}=(0,OT.createSlotFill)("PluginPrePublishPanel"),tY=({children:e,className:t,title:r,initialOpen:o=!1,icon:n})=>{let{icon:s}=(0,eY.usePluginContext)();return(0,i3.jsx)(K_e,{children:(0,i3.jsx)(OT.PanelBody,{className:t,initialOpen:o||!r,title:r,icon:n??s,children:e})})};tY.Slot=X_e;var IT=tY;var rY=i(R(),1),oY=i(yu(),1);var nY=i(x(),1);function sY(e){let t=(0,oY.usePluginContext)();return(0,nY.jsx)(ti,{name:"core/plugin-preview-menu",as:e.as??rY.MenuItem,icon:e.icon||t.icon,...e})}var iY=i(x(),1);function Kf({className:e,...t}){return(0,iY.jsx)(Hl,{panelClassName:e,className:"editor-sidebar",scope:"core",...t})}var aY=i(x(),1);function lY(e){return(0,aY.jsx)(Su,{__unstableExplicitMenuItem:!0,scope:"core",...e})}var NT=i(O(),1),BT=i(W(),1);var pc=i(O(),1),RY=i(vt(),1),Xu=i(R(),1),FT=i(N(),1),Qf=i(E(),1),Fh=i(W(),1);var OY=i(ct(),1),IY=i(dt(),1);var Oh=i(N(),1),fY=i(vt(),1),mY=i($(),1),Ih=i(R(),1),Rh=i(E(),1),pY=i(O(),1),hY=i(W(),1),gY=i(Xe(),1);var uY=i(O_(),1);function cY(e=""){return e=(0,uY.default)(e),e=e.trim().toLowerCase(),e}function Q_e(e,t){let r=cY(t),o=cY(e.title),n=0;return r===o?n+=30:o.startsWith(r)?n+=20:r.split(" ").every(l=>o.includes(l))&&(n+=10),n}function dY(e=[],t=""){if(!t)return e;let r=e.map(o=>[o,Q_e(o,t)]).filter(([,o])=>o>0);return r.sort(([,o],[,n])=>n-o),r.map(([o])=>o)}var Fs=i(x(),1);function vY({onClick:e}){let[t,r]=(0,Oh.useState)(!1),{postType:o,postId:n}=kh(),s=$6(o),{editEntityRecord:a}=(0,pY.useDispatch)(hY.store),l=async c=>{a("postType",o,n,{template:c.name},{undoIgnore:!0}),r(!1),e()};return(0,Fs.jsxs)(Fs.Fragment,{children:[(0,Fs.jsx)(Ih.MenuItem,{disabled:!s?.length,accessibleWhenDisabled:!0,onClick:()=>r(!0),children:(0,Rh.__)("Change template")}),t&&(0,Fs.jsx)(Ih.Modal,{title:(0,Rh.__)("Choose a template"),onRequestClose:()=>r(!1),overlayClassName:"editor-post-template__swap-template-modal",isFullScreen:!0,children:(0,Fs.jsx)("div",{className:"editor-post-template__swap-template-modal-content",children:(0,Fs.jsx)(J_e,{postType:o,onSelect:l})})})]})}function J_e({postType:e,onSelect:t}){let[r,o]=(0,Oh.useState)(""),n=$6(e),s=(0,Oh.useMemo)(()=>n.map(l=>({name:l.slug,blocks:(0,gY.parse)(l.content.raw),title:(0,fY.decodeEntities)(l.title.rendered),id:l.id})),[n]),a=(0,Oh.useMemo)(()=>dY(s,r),[s,r]);return(0,Fs.jsxs)(Fs.Fragment,{children:[(0,Fs.jsx)(Ih.SearchControl,{onChange:o,value:r,label:(0,Rh.__)("Search"),placeholder:(0,Rh.__)("Search"),className:"editor-post-template__swap-template-search"}),(0,Fs.jsx)(mY.__experimentalBlockPatternsList,{label:(0,Rh.__)("Templates"),blockPatterns:a,onClickPattern:t})]})}var yY=i(R(),1),bY=i(E(),1),SY=i(O(),1),_Y=i(W(),1);var wY=i(x(),1);function xY({onClick:e}){let t=e3(),r=Zf(),{postType:o,postId:n}=kh(),{editEntityRecord:s}=(0,SY.useDispatch)(_Y.store);return!t||!r?null:(0,wY.jsx)(yY.MenuItem,{onClick:()=>{s("postType",o,n,{template:""},{undoIgnore:!0}),e()},children:(0,bY.__)("Use default template")})}var TY=i(R(),1),CY=i(E(),1),PY=i(O(),1),kY=i(W(),1),EY=i(N(),1);var Xf=i(x(),1);function AY(){let{canCreateTemplates:e}=(0,PY.useSelect)(n=>{let{canUser:s}=n(kY.store);return{canCreateTemplates:s("create",{kind:"postType",name:"wp_template"})}},[]),[t,r]=(0,EY.useState)(!1),o=Zf();return!e||!o?null:(0,Xf.jsxs)(Xf.Fragment,{children:[(0,Xf.jsx)(TY.MenuItem,{onClick:()=>{r(!0)},children:(0,CY.__)("Create new template")}),t&&(0,Xf.jsx)(bT,{onClose:()=>{r(!1)}})]})}var as=i(x(),1);function FY({id:e}){let{isTemplateHidden:t,onNavigateToEntityRecord:r,getEditorSettings:o,hasGoBack:n,hasSpecificTemplate:s}=(0,pc.useSelect)(T=>{let{getRenderingMode:C,getEditorSettings:A,getCurrentPost:F}=D(T(_)),L=A(),j=F();return{isTemplateHidden:C()==="post-only",onNavigateToEntityRecord:L.onNavigateToEntityRecord,getEditorSettings:A,hasGoBack:L.hasOwnProperty("onNavigateToPreviousEntityRecord"),hasSpecificTemplate:!!j.template}},[]),{get:a}=(0,pc.useSelect)(IY.store),{editedRecord:l,hasResolved:c}=(0,Fh.useEntityRecord)("postType","wp_template",e),{getEntityRecord:u}=(0,pc.useSelect)(Fh.store),{editEntityRecord:d}=(0,pc.useDispatch)(Fh.store),{createSuccessNotice:f}=(0,pc.useDispatch)(OY.store),{setRenderingMode:m,setDefaultRenderingMode:h}=D((0,pc.useDispatch)(_)),g=(0,pc.useSelect)(T=>!!T(Fh.store).canUser("create",{kind:"postType",name:"wp_template"}),[]),[y,v]=(0,FT.useState)(null),b=(0,FT.useMemo)(()=>({anchor:y,className:"editor-post-template__dropdown",placement:"left-start",offset:36,shift:!0}),[y]);if(!c)return null;let S=n?[{label:(0,Qf.__)("Go back"),onClick:()=>o().onNavigateToPreviousEntityRecord()}]:void 0,w=()=>{a("core/edit-site","welcomeGuideTemplate")||f((0,Qf.__)("Editing template. Changes made here affect all posts and pages that use the template."),{type:"snackbar",actions:S})};return(0,as.jsx)(xt,{label:(0,Qf.__)("Template"),ref:v,children:(0,as.jsx)(Xu.DropdownMenu,{popoverProps:b,focusOnMount:!0,toggleProps:{size:"compact",variant:"tertiary",tooltipPosition:"middle left"},label:(0,Qf.__)("Template options"),text:(0,RY.decodeEntities)(l.title),icon:null,children:({onClose:T})=>(0,as.jsxs)(as.Fragment,{children:[(0,as.jsxs)(Xu.MenuGroup,{children:[g&&(0,as.jsx)(Xu.MenuItem,{onClick:async()=>{if(r({postId:l.id,postType:"wp_template"}),!s&&window?.__experimentalTemplateActivate){let C=await u("root","site").active_templates;C[l.slug]!==l.id&&d("root","site",void 0,{active_templates:{...C,[l.slug]:l.id}})}T(),w()},children:(0,Qf.__)("Edit template")}),(0,as.jsx)(vY,{onClick:T}),(0,as.jsx)(xY,{onClick:T}),g&&(0,as.jsx)(AY,{})]}),(0,as.jsx)(Xu.MenuGroup,{children:(0,as.jsx)(Xu.MenuItem,{icon:t?void 0:xs,isSelected:!t,role:"menuitemcheckbox",onClick:()=>{let C=t?"template-locked":"post-only";m(C),h(C)},children:(0,Qf.__)("Show template")})})]})})})}var a3=i(x(),1);function DT(){let{templateId:e,isBlockTheme:t}=(0,NT.useSelect)(n=>{let{getCurrentTemplateId:s,getEditorSettings:a}=n(_);return{templateId:s(),isBlockTheme:a().__unstableIsBlockBasedTheme}},[]),r=(0,NT.useSelect)(n=>{let s=n(_).getCurrentPostType();if(!n(BT.store).getPostType(s)?.viewable)return!1;let l=n(_).getEditorSettings();return!!l.availableTemplates&&Object.keys(l.availableTemplates).length>0?!0:l.supportsTemplateMode?n(BT.store).canUser("create",{kind:"postType",name:"wp_template"})??!1:!1},[]),o=(0,NT.useSelect)(n=>r?n(BT.store).canUser("read",{kind:"postType",name:"wp_template"}):!1,[r]);return(!t||!o)&&r?(0,a3.jsx)(_T,{}):t&&e?(0,a3.jsx)(FY,{id:e}):null}var XY=i(O(),1),QY=i(W(),1);var MY=i(pe(),1),VY=i(N(),1),jY=i(O(),1),zY=i(E(),1),UY=i(R(),1);var NY=i(E(),1),BY=i(N(),1),DY=i(O(),1),l3=i(vt(),1),LY=i(W(),1);var Nb={_fields:"id,name",context:"view"},LT={who:"authors",per_page:100,...Nb};function MT(e){let{authorId:t,authors:r,postAuthor:o,isLoading:n}=(0,DY.useSelect)(a=>{let{getUser:l,getUsers:c,isResolving:u}=a(LY.store),{getEditedPostAttribute:d}=a(_),f=d("author"),m={...LT};return e&&(m.search=e,m.search_columns=["name"]),{authorId:f,authors:c(m),postAuthor:l(f,Nb),isLoading:u("getUsers",[m])}},[e]),s=(0,BY.useMemo)(()=>{let a=(r??[]).map(u=>({value:u.id,label:(0,l3.decodeEntities)(u.name)})),l=a.findIndex(({value:u})=>o?.id===u),c=[];return l<0&&o?c=[{value:o.id,label:(0,l3.decodeEntities)(o.name)}]:l<0&&!o&&(c=[{value:0,label:(0,NY.__)("(No author)")}]),[...c,...a]},[r,o]);return{authorId:t,authorOptions:s,postAuthor:o,isLoading:n}}var HY=i(x(),1);function GY(){let[e,t]=(0,VY.useState)(),{editPost:r}=(0,jY.useDispatch)(_),{authorId:o,authorOptions:n,isLoading:s}=MT(e),a=l=>{l&&r({author:l})};return(0,HY.jsx)(UY.ComboboxControl,{__next40pxDefaultSize:!0,label:(0,zY.__)("Author"),options:n,value:o,onFilterValueChange:(0,MY.debounce)(t,300),onChange:a,allowReset:!1,hideLabelFromVision:!0,isLoading:s})}var WY=i(E(),1),YY=i(O(),1),qY=i(R(),1);var ZY=i(x(),1);function KY(){let{editPost:e}=(0,YY.useDispatch)(_),{authorId:t,authorOptions:r}=MT(),o=n=>{let s=Number(n);e({author:s})};return(0,ZY.jsx)(qY.SelectControl,{__next40pxDefaultSize:!0,className:"post-author-selector",label:(0,WY.__)("Author"),options:r,onChange:o,value:t,hideLabelFromVision:!0})}var c3=i(x(),1),$_e=25;function ewe(){return(0,XY.useSelect)(t=>t(QY.store).getUsers(LT)?.length>=$_e,[])?(0,c3.jsx)(GY,{}):(0,c3.jsx)(KY,{})}var VT=ewe;var JY=i(O(),1);var $Y=i(x(),1);function jT({children:e}){let{hasAssignAuthorAction:t}=(0,JY.useSelect)(r=>({hasAssignAuthorAction:!!r(_).getCurrentPost()?._links?.["wp:action-assign-author"]}),[]);return t?(0,$Y.jsx)(er,{supportKeys:"author",children:e}):null}var Jf=i(E(),1),zT=i(R(),1),UT=i(N(),1),eq=i(vt(),1),tq=i($(),1),rq=i(O(),1),oq=i(W(),1);var Wa=i(x(),1);function twe({isOpen:e,onClick:t}){let{postAuthor:r}=(0,rq.useSelect)(n=>{let s=n(_).getEditedPostAttribute("author");return{postAuthor:n(oq.store).getUser(s,Nb)}},[]),o=(0,eq.decodeEntities)(r?.name)||(0,Jf.__)("(No author)");return(0,Wa.jsx)(zT.Button,{size:"compact",className:"editor-post-author__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,Jf.sprintf)((0,Jf.__)("Change author: %s"),o),onClick:t,children:o})}function rwe(){let[e,t]=(0,UT.useState)(null),r=(0,UT.useMemo)(()=>({anchor:e,placement:"left-start",offset:36,shift:!0}),[e]);return(0,Wa.jsx)(jT,{children:(0,Wa.jsx)(xt,{label:(0,Jf.__)("Author"),ref:t,children:(0,Wa.jsx)(zT.Dropdown,{popoverProps:r,contentClassName:"editor-post-author__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:o,onToggle:n})=>(0,Wa.jsx)(twe,{isOpen:o,onClick:n}),renderContent:({onClose:o})=>(0,Wa.jsxs)("div",{className:"editor-post-author",children:[(0,Wa.jsx)(tq.__experimentalInspectorPopoverHeader,{title:(0,Jf.__)("Author"),onClose:o}),(0,Wa.jsx)(VT,{onClose:o})]})})})})}var HT=rwe;var Qu=i(E(),1),WT=i(R(),1),YT=i(O(),1);var GT=i(x(),1),owe=[{label:(0,Qu._x)("Open",'Adjective: e.g. "Comments are open"'),value:"open",description:(0,Qu.__)("Visitors can add new comments and replies.")},{label:(0,Qu.__)("Closed"),value:"closed",description:[(0,Qu.__)("Visitors cannot add new comments or replies."),(0,Qu.__)("Existing comments remain visible.")].join(" ")}];function nwe(){let e=(0,YT.useSelect)(o=>o(_).getEditedPostAttribute("comment_status")??"open",[]),{editPost:t}=(0,YT.useDispatch)(_),r=o=>t({comment_status:o});return(0,GT.jsx)("form",{children:(0,GT.jsx)(WT.__experimentalVStack,{spacing:4,children:(0,GT.jsx)(WT.RadioControl,{className:"editor-change-status__options",hideLabelFromVision:!0,label:(0,Qu.__)("Comment status"),options:owe,onChange:r,selected:e})})})}var qT=nwe;var ta=i(E(),1),Nh=i(R(),1),d3=i(O(),1),JT=i(N(),1),nq=i($(),1),sq=i(W(),1);var ZT=i(E(),1),KT=i(R(),1),XT=i(O(),1);var u3=i(x(),1);function swe(){let e=(0,XT.useSelect)(o=>o(_).getEditedPostAttribute("ping_status")??"open",[]),{editPost:t}=(0,XT.useDispatch)(_),r=()=>t({ping_status:e==="open"?"closed":"open"});return(0,u3.jsx)(KT.CheckboxControl,{label:(0,ZT.__)("Enable pingbacks & trackbacks"),checked:e==="open",onChange:r,help:(0,u3.jsx)(KT.ExternalLink,{href:(0,ZT.__)("https://wordpress.org/documentation/article/trackbacks-and-pingbacks/"),children:(0,ZT.__)("Learn more about pingbacks & trackbacks")})})}var QT=swe;var Bn=i(x(),1),iwe="discussion-panel";function awe({onClose:e}){return(0,Bn.jsxs)("div",{className:"editor-post-discussion",children:[(0,Bn.jsx)(nq.__experimentalInspectorPopoverHeader,{title:(0,ta.__)("Discussion"),onClose:e}),(0,Bn.jsxs)(Nh.__experimentalVStack,{spacing:4,children:[(0,Bn.jsx)(er,{supportKeys:"comments",children:(0,Bn.jsx)(qT,{})}),(0,Bn.jsx)(er,{supportKeys:"trackbacks",children:(0,Bn.jsx)(QT,{})})]})]})}function lwe({isOpen:e,onClick:t}){let{commentStatus:r,pingStatus:o,commentsSupported:n,trackbacksSupported:s}=(0,d3.useSelect)(l=>{let{getEditedPostAttribute:c}=l(_),{getPostType:u}=l(sq.store),d=u(c("type"));return{commentStatus:c("comment_status")??"open",pingStatus:c("ping_status")??"open",commentsSupported:!!d.supports.comments,trackbacksSupported:!!d.supports.trackbacks}},[]),a;return r==="open"?o==="open"?a=(0,ta._x)("Open",'Adjective: e.g. "Comments are open"'):a=s?(0,ta.__)("Comments only"):(0,ta._x)("Open",'Adjective: e.g. "Comments are open"'):o==="open"?a=n?(0,ta.__)("Pings only"):(0,ta.__)("Pings enabled"):a=(0,ta.__)("Closed"),(0,Bn.jsx)(Nh.Button,{size:"compact",className:"editor-post-discussion__panel-toggle",variant:"tertiary","aria-label":(0,ta.__)("Change discussion options"),"aria-expanded":e,onClick:t,children:a})}function $T(){let{isEnabled:e}=(0,d3.useSelect)(n=>{let{isEditorPanelEnabled:s}=n(_);return{isEnabled:s(iwe)}},[]),[t,r]=(0,JT.useState)(null),o=(0,JT.useMemo)(()=>({anchor:t,placement:"left-start",offset:36,shift:!0}),[t]);return e?(0,Bn.jsx)(er,{supportKeys:["comments","trackbacks"],children:(0,Bn.jsx)(xt,{label:(0,ta.__)("Discussion"),ref:r,children:(0,Bn.jsx)(Nh.Dropdown,{popoverProps:o,className:"editor-post-discussion__panel-dropdown",contentClassName:"editor-post-discussion__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:n,onToggle:s})=>(0,Bn.jsx)(lwe,{isOpen:n,onClick:s}),renderContent:({onClose:n})=>(0,Bn.jsx)(awe,{onClose:n})})})}):null}var Bh=i(E(),1),tC=i(R(),1),rC=i(O(),1),iq=i(N(),1),aq=i(vt(),1);var eC=i(x(),1);function Bb({hideLabelFromVision:e=!1,updateOnBlur:t=!1}){let{excerpt:r,shouldUseDescriptionLabel:o,usedAttribute:n}=(0,rC.useSelect)(d=>{let{getCurrentPostType:f,getEditedPostAttribute:m}=d(_),h=f(),g=["wp_template","wp_template_part"].includes(h)?"description":"excerpt";return{excerpt:m(g),shouldUseDescriptionLabel:["wp_template","wp_template_part","wp_block"].includes(h),usedAttribute:g}},[]),{editPost:s}=(0,rC.useDispatch)(_),[a,l]=(0,iq.useState)((0,aq.decodeEntities)(r)),c=d=>{s({[n]:d})},u=o?(0,Bh.__)("Write a description (optional)"):(0,Bh.__)("Write an excerpt (optional)");return(0,eC.jsx)("div",{className:"editor-post-excerpt",children:(0,eC.jsx)(tC.TextareaControl,{label:u,hideLabelFromVision:e,className:"editor-post-excerpt__textarea",onChange:t?l:c,onBlur:t?()=>c(a):void 0,value:t?a:r,help:o?(0,Bh.__)("Write a description"):(0,eC.jsx)(tC.ExternalLink,{href:(0,Bh.__)("https://wordpress.org/documentation/article/page-post-settings-sidebar/#excerpt"),children:(0,Bh.__)("Learn more about manual excerpts")})})})}var lq=i(x(),1);function cwe({children:e}){return(0,lq.jsx)(er,{supportKeys:"excerpt",children:e})}var $f=cwe;var hc=i(E(),1),ra=i(R(),1),Lb=i(O(),1),sC=i(N(),1),uq=i($(),1),m3=i(W(),1),dq=i(vt(),1);var oC=i(R(),1),f3=i(x(),1),{Fill:uwe,Slot:dwe}=(0,oC.createSlotFill)("PluginPostExcerpt"),cq=({children:e,className:t})=>(0,f3.jsx)(uwe,{children:(0,f3.jsx)(oC.PanelRow,{className:t,children:e})});cq.Slot=dwe;var Db=cq;var tr=i(x(),1),nC="post-excerpt";function fwe(){let{isOpened:e,isEnabled:t,postType:r}=(0,Lb.useSelect)(a=>{let{isEditorPanelOpened:l,isEditorPanelEnabled:c,getCurrentPostType:u}=a(_);return{isOpened:l(nC),isEnabled:c(nC),postType:u()}},[]),{toggleEditorPanelOpened:o}=(0,Lb.useDispatch)(_),n=()=>o(nC);if(!t)return null;let s=["wp_template","wp_template_part","wp_block"].includes(r);return(0,tr.jsx)(ra.PanelBody,{title:s?(0,hc.__)("Description"):(0,hc.__)("Excerpt"),opened:e,onToggle:n,children:(0,tr.jsx)(Db.Slot,{children:a=>(0,tr.jsxs)(tr.Fragment,{children:[(0,tr.jsx)(Bb,{}),a]})})})}function fq(){return(0,tr.jsx)($f,{children:(0,tr.jsx)(fwe,{})})}function mq(){return(0,tr.jsx)($f,{children:(0,tr.jsx)(mwe,{})})}function mwe(){let{shouldRender:e,excerpt:t,shouldBeUsedAsDescription:r,allowEditing:o}=(0,Lb.useSelect)(f=>{let{getCurrentPostType:m,getCurrentPostId:h,getEditedPostAttribute:g,isEditorPanelEnabled:y}=f(_),v=m(),b=["wp_template","wp_template_part"].includes(v),S=v==="wp_block",w=b||S,C=g(b?"description":"excerpt"),A=b&&f(m3.store).getEntityRecord("postType",v,h()),F=!C&&b?qs({template:A,templateTypes:f(m3.store).getCurrentTheme()?.default_template_types})?.description:void 0,L=y(nC)||w;return{excerpt:C??F,shouldRender:L,shouldBeUsedAsDescription:w,allowEditing:L&&(!w||S||A&&A.source===x1.custom&&!A.has_theme_file&&A.is_custom)}},[]),[n,s]=(0,sC.useState)(null),a=r?(0,hc.__)("Description"):(0,hc.__)("Excerpt"),l=(0,sC.useMemo)(()=>({anchor:n,"aria-label":a,headerTitle:a,placement:"left-start",offset:36,shift:!0}),[n,a]);if(!e)return!1;let c=!!t&&(0,tr.jsx)(ra.__experimentalText,{align:"left",numberOfLines:4,truncate:o,children:(0,dq.decodeEntities)(t)});if(!o)return c;let u=r?(0,hc.__)("Add a description\u2026"):(0,hc.__)("Add an excerpt\u2026"),d=r?(0,hc.__)("Edit description"):(0,hc.__)("Edit excerpt");return(0,tr.jsxs)(ra.__experimentalVStack,{children:[c,(0,tr.jsx)(ra.Dropdown,{className:"editor-post-excerpt__dropdown",contentClassName:"editor-post-excerpt__dropdown__content",popoverProps:l,focusOnMount:!0,ref:s,renderToggle:({onToggle:f})=>(0,tr.jsx)(ra.Button,{__next40pxDefaultSize:!0,onClick:f,variant:"link",children:c?d:u}),renderContent:({onClose:f})=>(0,tr.jsxs)(tr.Fragment,{children:[(0,tr.jsx)(uq.__experimentalInspectorPopoverHeader,{title:a,onClose:f}),(0,tr.jsx)(ra.__experimentalVStack,{spacing:4,children:(0,tr.jsx)(Db.Slot,{children:m=>(0,tr.jsxs)(tr.Fragment,{children:[(0,tr.jsx)(Bb,{hideLabelFromVision:!0,updateOnBlur:!0}),m]})})})]})})]})}var Ns=i(E(),1),h3=i(fo(),1),an=i(R(),1),vq=i(Qv(),1),aC=i(N(),1),yq=i(pe(),1),Dh=i(O(),1),em=i($(),1),bq=i(W(),1);var pq=i(O(),1),hq=i(W(),1);function iC({children:e,supportKeys:t}){let{postType:r,themeSupports:o}=(0,pq.useSelect)(s=>({postType:s(_).getEditedPostAttribute("type"),themeSupports:s(hq.store).getThemeSupports()}),[]);return(Array.isArray(t)?t:[t]).some(s=>{let a=o?.[s]??!1;return s==="post-thumbnails"&&Array.isArray(a)?a.includes(r):a})?e:null}var p3=i(x(),1);function pwe({children:e}){return(0,p3.jsx)(iC,{supportKeys:"post-thumbnails",children:(0,p3.jsx)(er,{supportKeys:"thumbnail",children:e})})}var gc=pwe;var Vo=i(x(),1),gq=["image"],hwe=(0,Ns.__)("Featured image"),gwe=(0,Ns.__)("Add a featured image"),vwe=(0,Vo.jsx)("p",{children:(0,Ns.__)("To edit the featured image, you need permission to upload media.")});function ywe(e,t){if(!e)return{};let r=(0,h3.applyFilters)("editor.PostFeaturedImage.imageSize","large",e.id,t);if(r in(e?.media_details?.sizes??{}))return{mediaWidth:e.media_details.sizes[r].width,mediaHeight:e.media_details.sizes[r].height,mediaSourceUrl:e.media_details.sizes[r].source_url};let o=(0,h3.applyFilters)("editor.PostFeaturedImage.imageSize","thumbnail",e.id,t);return o in(e?.media_details?.sizes??{})?{mediaWidth:e.media_details.sizes[o].width,mediaHeight:e.media_details.sizes[o].height,mediaSourceUrl:e.media_details.sizes[o].source_url}:{mediaWidth:e.media_details.width,mediaHeight:e.media_details.height,mediaSourceUrl:e.source_url}}function bwe({currentPostId:e,featuredImageId:t,onUpdateImage:r,onRemoveImage:o,media:n,postType:s,noticeUI:a,noticeOperations:l,isRequestingFeaturedImageMedia:c}){let u=(0,aC.useRef)(!1),[d,f]=(0,aC.useState)(!1),{getSettings:m}=(0,Dh.useSelect)(em.store),{mediaSourceUrl:h}=ywe(n,e);function g(S){m().mediaUpload({allowedTypes:gq,filesList:S,onFileChange([w]){if((0,vq.isBlobURL)(w?.url)){f(!0);return}w&&r(w),f(!1)},onError(w){l.removeAllNotices(),l.createErrorNotice(w)},multiple:!1})}function y(S){return S.alt_text?(0,Ns.sprintf)((0,Ns.__)("Current image: %s"),S.alt_text):(0,Ns.sprintf)((0,Ns.__)("The current image has no alternative text. The file name is: %s"),S.media_details.sizes?.full?.file||S.slug)}function v(S){u.current&&S&&(S.focus(),u.current=!1)}let b=!c&&!!t&&!n;return(0,Vo.jsxs)(gc,{children:[a,(0,Vo.jsxs)("div",{className:"editor-post-featured-image",children:[n&&(0,Vo.jsx)("div",{id:`editor-post-featured-image-${t}-describedby`,className:"hidden",children:y(n)}),(0,Vo.jsx)(em.MediaUploadCheck,{fallback:vwe,children:(0,Vo.jsx)(em.MediaUpload,{title:s?.labels?.featured_image||hwe,onSelect:r,unstableFeaturedImageFlow:!0,allowedTypes:gq,modalClass:"editor-post-featured-image__media-modal",render:({open:S})=>(0,Vo.jsxs)("div",{className:"editor-post-featured-image__container",children:[b?(0,Vo.jsx)(an.Notice,{status:"warning",isDismissible:!1,children:(0,Ns.__)("Could not retrieve the featured image data.")}):(0,Vo.jsxs)(an.Button,{__next40pxDefaultSize:!0,ref:v,className:t?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:S,"aria-label":t?(0,Ns.__)("Edit or replace the featured image"):null,"aria-describedby":t?`editor-post-featured-image-${t}-describedby`:null,"aria-haspopup":"dialog",disabled:d,accessibleWhenDisabled:!0,children:[!!t&&n&&(0,Vo.jsx)("img",{className:"editor-post-featured-image__preview-image",src:h,alt:y(n)}),(d||c)&&(0,Vo.jsx)(an.Spinner,{}),!t&&!d&&(s?.labels?.set_featured_image||gwe)]}),!!t&&(0,Vo.jsxs)(an.__experimentalHStack,{className:re("editor-post-featured-image__actions",{"editor-post-featured-image__actions-missing-image":b,"editor-post-featured-image__actions-is-requesting-image":c}),children:[(0,Vo.jsx)(an.Button,{__next40pxDefaultSize:!0,className:"editor-post-featured-image__action",onClick:S,"aria-haspopup":"dialog",variant:b?"secondary":void 0,children:(0,Ns.__)("Replace")}),(0,Vo.jsx)(an.Button,{__next40pxDefaultSize:!0,className:"editor-post-featured-image__action",onClick:()=>{o(),u.current=!0},variant:b?"secondary":void 0,isDestructive:b,children:(0,Ns.__)("Remove")})]}),(0,Vo.jsx)(an.DropZone,{onFilesDrop:g})]}),value:t})})]})]})}var Swe=(0,Dh.withSelect)(e=>{let{getEntityRecord:t,getPostType:r,hasFinishedResolution:o}=e(bq.store),{getCurrentPostId:n,getEditedPostAttribute:s}=e(_),a=s("featured_media");return{media:a?t("postType","attachment",a,{context:"view"}):null,currentPostId:n(),postType:r(s("type")),featuredImageId:a,isRequestingFeaturedImageMedia:!!a&&!o("getEntityRecord",["postType","attachment",a,{context:"view"}])}}),_we=(0,Dh.withDispatch)((e,{noticeOperations:t},{select:r})=>{let{editPost:o}=e(_);return{onUpdateImage(n){o({featured_media:n.id})},onDropImage(n){r(em.store).getSettings().mediaUpload({allowedTypes:["image"],filesList:n,onFileChange([s]){o({featured_media:s.id})},onError(s){t.removeAllNotices(),t.createErrorNotice(s)},multiple:!1})},onRemoveImage(){o({featured_media:0})}}}),Mb=(0,yq.compose)(an.withNotices,Swe,_we,(0,an.withFilters)("editor.PostFeaturedImage"))(bwe);var Sq=i(E(),1),_q=i(R(),1),lC=i(O(),1),wq=i(W(),1);var Lh=i(x(),1),g3="featured-image";function cC({withPanelBody:e=!0}){let{postType:t,isEnabled:r,isOpened:o}=(0,lC.useSelect)(s=>{let{getEditedPostAttribute:a,isEditorPanelEnabled:l,isEditorPanelOpened:c}=s(_),{getPostType:u}=s(wq.store);return{postType:u(a("type")),isEnabled:l(g3),isOpened:c(g3)}},[]),{toggleEditorPanelOpened:n}=(0,lC.useDispatch)(_);return r?e?(0,Lh.jsx)(gc,{children:(0,Lh.jsx)(_q.PanelBody,{title:t?.labels?.featured_image??(0,Sq.__)("Featured image"),opened:o,onToggle:()=>n(g3),children:(0,Lh.jsx)(Mb,{})})}):(0,Lh.jsx)(gc,{children:(0,Lh.jsx)(Mb,{})}):null}var Dn=i(E(),1),uC=i(R(),1),dC=i(O(),1),Cq=i(pe(),1),Pq=i(W(),1);var xq=i(O(),1);var Tq=i(x(),1);function Mh({children:e}){return(0,xq.useSelect)(r=>r(_).getEditorSettings().disablePostFormats,[])?null:(0,Tq.jsx)(er,{supportKeys:"post-formats",children:e})}var tm=i(x(),1),Vb=[{id:"aside",caption:(0,Dn.__)("Aside")},{id:"audio",caption:(0,Dn.__)("Audio")},{id:"chat",caption:(0,Dn.__)("Chat")},{id:"gallery",caption:(0,Dn.__)("Gallery")},{id:"image",caption:(0,Dn.__)("Image")},{id:"link",caption:(0,Dn.__)("Link")},{id:"quote",caption:(0,Dn.__)("Quote")},{id:"standard",caption:(0,Dn.__)("Standard")},{id:"status",caption:(0,Dn.__)("Status")},{id:"video",caption:(0,Dn.__)("Video")}].sort((e,t)=>{let r=e.caption.toUpperCase(),o=t.caption.toUpperCase();return r<o?-1:r>o?1:0});function jb(){let t=`post-format-selector-${(0,Cq.useInstanceId)(jb)}`,{postFormat:r,suggestedFormat:o,supportedFormats:n}=(0,dC.useSelect)(u=>{let{getEditedPostAttribute:d,getSuggestedPostFormat:f}=u(_),m=d("format"),h=u(Pq.store).getThemeSupports();return{postFormat:m??"standard",suggestedFormat:f(),supportedFormats:h.formats}},[]),s=Vb.filter(u=>n?.includes(u.id)||r===u.id),a=s.find(u=>u.id===o),{editPost:l}=(0,dC.useDispatch)(_),c=u=>l({format:u});return(0,tm.jsx)(Mh,{children:(0,tm.jsxs)("div",{className:"editor-post-format",children:[(0,tm.jsx)(uC.RadioControl,{className:"editor-post-format__options",label:(0,Dn.__)("Post Format"),selected:r,onChange:u=>c(u),id:t,options:s.map(u=>({label:u.caption,value:u.id})),hideLabelFromVision:!0}),a&&a.id!==r&&(0,tm.jsx)("p",{className:"editor-post-format__suggestion",children:(0,tm.jsx)(uC.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>c(a.id),children:(0,Dn.sprintf)((0,Dn.__)("Apply suggested format: %s"),a.caption)})})]})})}var zb=i(E(),1),v3=i(R(),1),Ub=i(O(),1);var kq=i(O(),1);var Eq=i(x(),1);function wwe({children:e}){let{lastRevisionId:t,revisionsCount:r}=(0,kq.useSelect)(o=>{let{getCurrentPostLastRevisionId:n,getCurrentPostRevisionsCount:s}=o(_);return{lastRevisionId:n(),revisionsCount:s()}},[]);return!t||r<2?null:(0,Eq.jsx)(er,{supportKeys:"revisions",children:e})}var rm=wwe;var Vh=i(x(),1);function Aq(){return(0,Ub.useSelect)(e=>{let{getCurrentPostLastRevisionId:t,getCurrentPostRevisionsCount:r}=e(_);return{lastRevisionId:t(),revisionsCount:r()}},[])}function xwe(){let{lastRevisionId:e,revisionsCount:t}=Aq(),{setCurrentRevisionId:r}=D((0,Ub.useDispatch)(_));return(0,Vh.jsx)(rm,{children:(0,Vh.jsx)(v3.Button,{__next40pxDefaultSize:!0,onClick:()=>r(e),className:"editor-post-last-revision__title",icon:bl,iconPosition:"right",text:(0,zb.sprintf)((0,zb.__)("Revisions (%s)"),t)})})}function Rq(){let{lastRevisionId:e,revisionsCount:t}=Aq(),{setCurrentRevisionId:r}=D((0,Ub.useDispatch)(_));return(0,Vh.jsx)(rm,{children:(0,Vh.jsx)(xt,{label:(0,zb.__)("Revisions"),children:(0,Vh.jsx)(v3.Button,{onClick:()=>r(e),className:"editor-private-post-last-revision__button",text:t,variant:"tertiary",size:"compact"})})})}var fC=xwe;var Oq=i(R(),1);var mC=i(x(),1);function Twe(){return(0,mC.jsx)(rm,{children:(0,mC.jsx)(Oq.PanelBody,{className:"editor-post-last-revision__panel",children:(0,mC.jsx)(fC,{})})})}var Iq=Twe;var jo=i(E(),1),Bs=i(R(),1),Gb=i(O(),1),y3=i(zr(),1),Hb=i(N(),1),jh=i(fo(),1),Nq=i(pe(),1),b3=i(W(),1);var rr=i(x(),1);function Fq(){return(0,Gb.useSelect)(t=>D(t(b3.store)).isCollaborationSupported(),[])?null:(0,rr.jsx)("p",{children:(0,jo.__)("Because this post uses plugins that aren\u2019t compatible with real-time collaboration, only one person can edit at a time.")})}function Bq(){let t="core/editor/post-locked-modal-"+(0,Nq.useInstanceId)(Bq),{autosave:r,updatePostLock:o}=(0,Gb.useDispatch)(_),{isCollaborationEnabled:n,isLocked:s,isTakeover:a,user:l,postId:c,postLockUtils:u,activePostLock:d,postType:f,previewLink:m}=(0,Gb.useSelect)(S=>{let{isCollaborationEnabledForCurrentPost:w,isPostLocked:T,isPostLockTakeover:C,getPostLockUser:A,getCurrentPostId:F,getActivePostLock:L,getEditedPostAttribute:j,getEditedPostPreviewLink:z,getEditorSettings:M}=S(_),{getPostType:k}=S(b3.store);return{isCollaborationEnabled:w(),isLocked:T(),isTakeover:C(),user:A(),postId:F(),postLockUtils:M().postLockUtils,activePostLock:L(),postType:k(j("type")),previewLink:z()}},[]);if((0,Hb.useEffect)(()=>{function S(C){s||(C["wp-refresh-post-lock"]={lock:d,post_id:c})}function w(C){if(!C["wp-refresh-post-lock"])return;let A=C["wp-refresh-post-lock"];A.lock_error?(r(),o({isLocked:!0,isTakeover:!0,user:{name:A.lock_error.name,avatar:A.lock_error.avatar_src_2x}})):A.new_lock&&o({isLocked:!1,activePostLock:A.new_lock})}function T(){if(s||!d)return;let C=new window.FormData;if(C.append("action","wp-remove-post-lock"),C.append("_wpnonce",u.unlockNonce),C.append("post_ID",c),C.append("active_post_lock",d),window.navigator.sendBeacon)window.navigator.sendBeacon(u.ajaxUrl,C);else{let A=new window.XMLHttpRequest;A.open("POST",u.ajaxUrl,!1),A.send(C)}}return(0,jh.addAction)("heartbeat.send",t,S),(0,jh.addAction)("heartbeat.tick",t,w),window.addEventListener("beforeunload",T),()=>{(0,jh.removeAction)("heartbeat.send",t),(0,jh.removeAction)("heartbeat.tick",t),window.removeEventListener("beforeunload",T)}},[]),!s||n)return null;let h=l.name,g=l.avatar,y=(0,y3.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:c,action:"edit",_wpnonce:u.nonce}),v=(0,y3.addQueryArgs)("edit.php",{post_type:f?.slug}),b=(0,jo.__)("Exit editor");return(0,rr.jsx)(Bs.Modal,{title:a?(0,jo.__)("Someone else has taken over this post"):(0,jo.__)("This post is already being edited"),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"editor-post-locked-modal",size:"medium",children:(0,rr.jsxs)(Bs.__experimentalHStack,{alignment:"top",spacing:6,children:[!!g&&(0,rr.jsx)("img",{src:g,alt:(0,jo.__)("Avatar"),className:"editor-post-locked-modal__avatar",width:64,height:64}),(0,rr.jsxs)("div",{children:[!!a&&(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)("p",{children:(0,Hb.createInterpolateElement)(h?(0,jo.sprintf)((0,jo.__)("<strong>%s</strong> now has editing control of this post (<PreviewLink />). Don\u2019t worry, your changes up to this moment have been saved."),h):(0,jo.__)("Another user now has editing control of this post (<PreviewLink />). Don\u2019t worry, your changes up to this moment have been saved."),{strong:(0,rr.jsx)("strong",{}),PreviewLink:(0,rr.jsx)(Bs.ExternalLink,{href:m,children:(0,jo.__)("preview")})})}),(0,rr.jsx)(Fq,{})]}),!a&&(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)("p",{children:(0,Hb.createInterpolateElement)(h?(0,jo.sprintf)((0,jo.__)("<strong>%s</strong> is currently working on this post (<PreviewLink />), which means you cannot make changes, unless you take over."),h):(0,jo.__)("Another user is currently working on this post (<PreviewLink />), which means you cannot make changes, unless you take over."),{strong:(0,rr.jsx)("strong",{}),PreviewLink:(0,rr.jsx)(Bs.ExternalLink,{href:m,children:(0,jo.__)("preview")})})}),(0,rr.jsx)(Fq,{}),(0,rr.jsx)("p",{children:(0,jo.__)("If you take over, the other user will lose editing control to the post, but their changes will be saved.")})]}),(0,rr.jsxs)(Bs.__experimentalHStack,{className:"editor-post-locked-modal__buttons",justify:"flex-end",children:[!a&&(0,rr.jsx)(Bs.Button,{__next40pxDefaultSize:!0,variant:"tertiary",href:y,children:(0,jo.__)("Take over")}),(0,rr.jsx)(Bs.Button,{__next40pxDefaultSize:!0,variant:"primary",href:v,children:b})]})]})]})})}var Dq=(0,Bs.withFilters)("editor.PostLockedModal")(Bq);var Mq=i(E(),1),Vq=i(R(),1),hC=i(O(),1);var Lq=i(O(),1);function Cwe({children:e}){let{hasPublishAction:t,isPublished:r}=(0,Lq.useSelect)(o=>{let{isCurrentPostPublished:n,getCurrentPost:s}=o(_);return{hasPublishAction:s()._links?.["wp:action-publish"]??!1,isPublished:n()}},[]);return r||!t?null:e}var pC=Cwe;var S3=i(x(),1);function Pwe(){let e=(0,hC.useSelect)(o=>o(_).getEditedPostAttribute("status"),[]),{editPost:t}=(0,hC.useDispatch)(_),r=()=>{t({status:e==="pending"?"draft":"pending"})};return(0,S3.jsx)(pC,{children:(0,S3.jsx)(Vq.CheckboxControl,{label:(0,Mq.__)("Pending review"),checked:e==="pending",onChange:r})})}var jq=Pwe;var zq=i(N(),1),vc=i(R(),1),zh=i(E(),1),gC=i(O(),1),Uq=i(fo(),1),Hq=i(W(),1);var pi=i(x(),1);function kwe(e){let t=(0,zq.renderToString)((0,pi.jsxs)("div",{className:"editor-post-preview-button__interstitial-message",children:[(0,pi.jsxs)(vc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96",children:[(0,pi.jsx)(vc.Path,{className:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),(0,pi.jsx)(vc.Path,{className:"inner",d:"M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",fill:"none"})]}),(0,pi.jsx)("p",{children:(0,zh.__)("Generating preview\u2026")})]}));t+=`
<style>
body {
margin: 0;
}
.editor-post-preview-button__interstitial-message {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
width: 100vw;
}
@-webkit-keyframes paint {
0% {
stroke-dashoffset: 0;
}
}
@-moz-keyframes paint {
0% {
stroke-dashoffset: 0;
}
}
@-o-keyframes paint {
0% {
stroke-dashoffset: 0;
}
}
@keyframes paint {
0% {
stroke-dashoffset: 0;
}
}
.editor-post-preview-button__interstitial-message svg {
width: 192px;
height: 192px;
stroke: #555d66;
stroke-width: 0.75;
}
.editor-post-preview-button__interstitial-message svg .outer,
.editor-post-preview-button__interstitial-message svg .inner {
stroke-dasharray: 280;
stroke-dashoffset: 280;
-webkit-animation: paint 1.5s ease infinite alternate;
-moz-animation: paint 1.5s ease infinite alternate;
-o-animation: paint 1.5s ease infinite alternate;
animation: paint 1.5s ease infinite alternate;
}
p {
text-align: center;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
</style>
`,t=(0,Uq.applyFilters)("editor.PostPreview.interstitialMarkup",t),e.write(t),e.title=(0,zh.__)("Generating preview\u2026"),e.close()}function Ju({className:e,textContent:t,forceIsAutosaveable:r,role:o,onPreview:n}){let{postId:s,currentPostLink:a,previewLink:l,isSaveable:c,isViewable:u}=(0,gC.useSelect)(g=>{let y=g(_),S=g(Hq.store).getPostType(y.getCurrentPostType("type"))?.viewable??!1;return S?{postId:y.getCurrentPostId(),currentPostLink:y.getCurrentPostAttribute("link"),previewLink:y.getEditedPostPreviewLink(),isSaveable:y.isEditedPostSaveable(),isViewable:S}:{isViewable:S}},[]),{__unstableSaveForPreview:d}=(0,gC.useDispatch)(_);if(!u)return null;let f=`wp-preview-${s}`;return(0,pi.jsx)(vc.Button,{variant:e?void 0:"tertiary",className:e||"editor-post-preview",href:l||a,target:f,accessibleWhenDisabled:!0,disabled:!c,onClick:async g=>{g.preventDefault();let y=window.open("",f);y.focus(),kwe(y.document);let v=await d({forceIsAutosaveable:r});y.location=v,n?.()},role:o,size:"compact",children:t||(0,pi.jsxs)(pi.Fragment,{children:[(0,zh._x)("Preview","imperative verb"),(0,pi.jsx)(vc.VisuallyHidden,{as:"span",children:(0,zh.__)("(opens in a new tab)")})]})})}var qq=i(R(),1),Zq=i(N(),1),yC=i(O(),1),Kq=i(pe(),1);var yc=i(E(),1),Gq=i(O(),1),Wq=i(pe(),1);function vC(){let e=(0,Wq.useViewportMatch)("medium","<"),{isPublished:t,isBeingScheduled:r,isSaving:o,isPublishing:n,hasPublishAction:s,isAutosaving:a,hasNonPostEntityChanges:l,postStatusHasChanged:c,postStatus:u,postType:d}=(0,Gq.useSelect)(f=>{let{isCurrentPostPublished:m,isEditedPostBeingScheduled:h,isSavingPost:g,isPublishingPost:y,getCurrentPost:v,getCurrentPostType:b,isAutosavingPost:S,getPostEdits:w,getEditedPostAttribute:T}=f(_);return{isPublished:m(),isBeingScheduled:h(),isSaving:g(),isPublishing:y(),hasPublishAction:v()._links?.["wp:action-publish"]??!1,postType:b(),isAutosaving:S(),hasNonPostEntityChanges:f(_).hasNonPostEntityChanges(),postStatusHasChanged:!!w()?.status,postStatus:T("status")}},[]);return n?(0,yc.__)("Publishing\u2026"):(t||r)&&o&&!a?(0,yc.__)("Saving\u2026"):s?l||t||c&&!["future","publish"].includes(u)||!c&&u==="future"?(0,yc.__)("Save"):r?(0,yc.__)("Schedule"):(0,yc.__)("Publish"):d===dr&&window?.__experimentalMediaEditor?(0,yc.__)("Save"):e?(0,yc.__)("Publish"):(0,yc.__)("Submit for Review")}var Uh=i(x(),1),Yq=()=>{},Ewe=class extends Zq.Component{constructor(e){super(e),this.createOnClick=this.createOnClick.bind(this),this.closeEntitiesSavedStates=this.closeEntitiesSavedStates.bind(this),this.state={entitiesSavedStatesCallback:!1}}createOnClick(e){return(...t)=>{let{hasNonPostEntityChanges:r,setEntitiesSavedStatesCallback:o}=this.props;return r&&o?(this.setState({entitiesSavedStatesCallback:()=>e(...t)}),o(()=>this.closeEntitiesSavedStates),Yq):e(...t)}}closeEntitiesSavedStates(e){let{postType:t,postId:r}=this.props,{entitiesSavedStatesCallback:o}=this.state;this.setState({entitiesSavedStatesCallback:!1},()=>{e&&e.some(n=>n.kind==="postType"&&n.name===t&&n.key===r)&&o()})}render(){let{forceIsDirty:e,hasPublishAction:t,isBeingScheduled:r,isOpen:o,isPostSavingLocked:n,isPublishable:s,isPublished:a,isSaveable:l,isSaving:c,isAutoSaving:u,isToggle:d,savePostStatus:f,onSubmit:m=Yq,onToggle:h,visibility:g,hasNonPostEntityChanges:y,isSavingNonPostEntityChanges:v,postStatus:b,postStatusHasChanged:S}=this.props,w=(c||!l||n||!s&&!e)&&(!y||v),T=(a||c||!l||!s&&!e)&&(!y||v),C="publish";S?C=b:t?g==="private"?C="private":r&&(C="future"):C="pending";let A=()=>{w||(m(),f(C))},F=()=>{T||h()},L={"aria-disabled":w,className:"editor-post-publish-button",isBusy:!u&&c,variant:"primary",onClick:this.createOnClick(A),"aria-haspopup":y?"dialog":void 0},j={"aria-disabled":T,"aria-expanded":o,className:"editor-post-publish-panel__toggle",isBusy:c&&a,variant:"primary",size:"compact",onClick:this.createOnClick(F),"aria-haspopup":y?"dialog":void 0},z=d?j:L;return(0,Uh.jsx)(Uh.Fragment,{children:(0,Uh.jsx)(qq.Button,{...z,className:`${z.className} editor-post-publish-button__button`,size:"compact",children:(0,Uh.jsx)(vC,{})})})}},Hh=(0,Kq.compose)([(0,yC.withSelect)(e=>{let{isSavingPost:t,isAutosavingPost:r,isEditedPostBeingScheduled:o,getEditedPostVisibility:n,isCurrentPostPublished:s,isEditedPostSaveable:a,isEditedPostPublishable:l,isPostSavingLocked:c,getCurrentPost:u,getCurrentPostType:d,getCurrentPostId:f,hasNonPostEntityChanges:m,isSavingNonPostEntityChanges:h,getEditedPostAttribute:g,getPostEdits:y}=e(_);return{isSaving:t(),isAutoSaving:r(),isBeingScheduled:o(),visibility:n(),isSaveable:a(),isPostSavingLocked:c(),isPublishable:l(),isPublished:s(),hasPublishAction:u()._links?.["wp:action-publish"]??!1,postType:d(),postId:f(),postStatus:g("status"),postStatusHasChanged:y()?.status,hasNonPostEntityChanges:m(),isSavingNonPostEntityChanges:h()}}),(0,yC.withDispatch)(e=>{let{editPost:t,savePost:r}=e(_);return{savePostStatus:o=>{t({status:o},{undoIgnore:!0}),r()}}})])(Ewe);var DC=i(E(),1),LC=i(N(),1),sa=i(R(),1),MC=i(O(),1),QZ=i(pe(),1);var JZ=i(W(),1);var oa=i(E(),1),Jb=i(R(),1),VZ=i(O(),1);var jZ=i(zr(),1),zZ=i(W(),1),UZ=i(vt(),1);var Gh=i(E(),1),Xq=i(N(),1),Wh=i(R(),1),Qq=i(pe(),1),SC=i(O(),1),Jq=i($(),1);var om=i(E(),1),bC=[{label:(0,om.__)("Public"),value:"public",description:(0,om.__)("Visible to everyone.")},{label:(0,om.__)("Private"),value:"private",description:(0,om.__)("Only visible to site admins and editors.")},{label:(0,om.__)("Password protected"),value:"password",description:(0,om.__)("Only visible to those who know the password.")}];var nm=i(x(),1);function Wb({onClose:e}){let t=(0,Qq.useInstanceId)(Wb),{status:r,visibility:o,password:n}=(0,SC.useSelect)(d=>({status:d(_).getEditedPostAttribute("status"),visibility:d(_).getEditedPostVisibility(),password:d(_).getEditedPostAttribute("password")})),{editPost:s}=(0,SC.useDispatch)(_),[a,l]=(0,Xq.useState)(!!n);function c(d){s({public:{status:o==="private"?"draft":r,password:""},private:{status:"private",password:""},password:{status:o==="private"?"draft":r,password:n||""}}[d]),l(d==="password")}let u=d=>{s({password:d})};return(0,nm.jsxs)("div",{className:"editor-post-visibility",children:[(0,nm.jsx)(Jq.__experimentalInspectorPopoverHeader,{title:(0,Gh.__)("Visibility"),help:(0,Gh.__)("Control how this post is viewed."),onClose:e}),(0,nm.jsxs)(Wh.__experimentalVStack,{spacing:4,children:[(0,nm.jsx)(Wh.RadioControl,{label:(0,Gh.__)("Visibility"),hideLabelFromVision:!0,options:bC,selected:a?"password":o,onChange:c}),a&&(0,nm.jsx)(Wh.TextControl,{label:(0,Gh.__)("Password"),onChange:u,value:n,placeholder:(0,Gh.__)("Use a secure password"),type:"text",id:`editor-post-visibility__password-input-${t}`,__next40pxDefaultSize:!0,maxLength:255})]})]})}var $q=i(O(),1);function _C(){return _3()}function _3(){let e=(0,$q.useSelect)(t=>t(_).getEditedPostVisibility(),[]);return bC.find(t=>t.value===e)?.label}function wC(e){let t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}var Awe=Math.pow(10,8)*24*60*60*1e3,GXe=-Awe;var w3=6e4,x3=36e5;var Rwe=3600;var eZ=Rwe*24,WXe=eZ*7,Owe=eZ*365.2425,Iwe=Owe/12,YXe=Iwe*3;function tZ(e){let t=wC(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function T3(e){let t=wC(e);return t.setDate(1),t.setHours(0,0,0,0),t}function rZ(e,t){let r=t?.additionalDigits??2,o=Dwe(e),n;if(o.date){let c=Lwe(o.date,r);n=Mwe(c.restDateString,c.year)}if(!n||isNaN(n.getTime()))return new Date(NaN);let s=n.getTime(),a=0,l;if(o.time&&(a=Vwe(o.time),isNaN(a)))return new Date(NaN);if(o.timezone){if(l=jwe(o.timezone),isNaN(l))return new Date(NaN)}else{let c=new Date(s+a),u=new Date(0);return u.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),u.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),u}return new Date(s+a+l)}var xC={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Fwe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Nwe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Bwe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Dwe(e){let t={},r=e.split(xC.dateTimeDelimiter),o;if(r.length>2)return t;if(/:/.test(r[0])?o=r[0]:(t.date=r[0],o=r[1],xC.timeZoneDelimiter.test(t.date)&&(t.date=e.split(xC.timeZoneDelimiter)[0],o=e.substr(t.date.length,e.length))),o){let n=xC.timezone.exec(o);n?(t.time=o.replace(n[1],""),t.timezone=n[1]):t.time=o}return t}function Lwe(e,t){let r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),o=e.match(r);if(!o)return{year:NaN,restDateString:""};let n=o[1]?parseInt(o[1]):null,s=o[2]?parseInt(o[2]):null;return{year:s===null?n:s*100,restDateString:e.slice((o[1]||o[2]).length)}}function Mwe(e,t){if(t===null)return new Date(NaN);let r=e.match(Fwe);if(!r)return new Date(NaN);let o=!!r[4],n=Yb(r[1]),s=Yb(r[2])-1,a=Yb(r[3]),l=Yb(r[4]),c=Yb(r[5])-1;if(o)return Wwe(t,l,c)?zwe(t,l,c):new Date(NaN);{let u=new Date(0);return!Hwe(t,s,a)||!Gwe(t,n)?new Date(NaN):(u.setUTCFullYear(t,s,Math.max(n,a)),u)}}function Yb(e){return e?parseInt(e):1}function Vwe(e){let t=e.match(Nwe);if(!t)return NaN;let r=C3(t[1]),o=C3(t[2]),n=C3(t[3]);return Ywe(r,o,n)?r*x3+o*w3+n*1e3:NaN}function C3(e){return e&&parseFloat(e.replace(",","."))||0}function jwe(e){if(e==="Z")return 0;let t=e.match(Bwe);if(!t)return 0;let r=t[1]==="+"?-1:1,o=parseInt(t[2]),n=t[3]&&parseInt(t[3])||0;return qwe(o,n)?r*(o*x3+n*w3):NaN}function zwe(e,t,r){let o=new Date(0);o.setUTCFullYear(e,0,4);let n=o.getUTCDay()||7,s=(t-1)*7+r+1-n;return o.setUTCDate(o.getUTCDate()+s),o}var Uwe=[31,null,31,30,31,30,31,31,30,31,30,31];function oZ(e){return e%400===0||e%4===0&&e%100!==0}function Hwe(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(Uwe[t]||(oZ(e)?29:28))}function Gwe(e,t){return t>=1&&t<=(oZ(e)?366:365)}function Wwe(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function Ywe(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function qwe(e,t){return t>=0&&t<=59}var nZ=i(mo(),1),sZ=i(E(),1),qb=i(O(),1),iZ=i($(),1),TC=i(N(),1),aZ=i(W(),1);var P3=i(x(),1),{PrivatePublishDateTimePicker:Zwe}=D(iZ.privateApis);function Yh(e){return(0,P3.jsx)(k3,{...e,showPopoverHeaderActions:!0,isCompact:!1})}function k3({onClose:e,showPopoverHeaderActions:t,isCompact:r}){let{postDate:o,postType:n}=(0,qb.useSelect)(h=>({postDate:h(_).getEditedPostAttribute("date"),postType:h(_).getCurrentPostType()}),[]),{editPost:s}=(0,qb.useDispatch)(_),a=h=>s({date:h}),[l,c]=(0,TC.useState)(T3(new Date(o))),u=(0,qb.useSelect)(h=>h(aZ.store).getEntityRecords("postType",n,{status:"publish,future",after:T3(l).toISOString(),before:tZ(l).toISOString(),exclude:[h(_).getCurrentPostId()],per_page:100,_fields:"id,date"}),[l,n]),d=(0,TC.useMemo)(()=>(u||[]).map(({date:h})=>({date:new Date(h)})),[u]),f=(0,nZ.getSettings)(),m=/a(?!\\)/i.test(f.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,P3.jsx)(Zwe,{currentDate:o,onChange:a,is12Hour:m,dateOrder:(0,sZ._x)("dmy","date order"),events:d,onMonthPreviewed:h=>c(rZ(h)),onClose:e,isCompact:r,showPopoverHeaderActions:t})}var Ln=i(E(),1),hi=i(mo(),1),cZ=i(O(),1);function qh(e){return Zh(e)}function Zh({full:e=!1}={}){let{date:t,isFloating:r}=(0,cZ.useSelect)(o=>({date:o(_).getEditedPostAttribute("date"),isFloating:o(_).isEditedPostDateFloating()}),[]);return e?uZ(t):Kwe(t,{isFloating:r})}function uZ(e){let t=(0,hi.getDate)(e),r=Xwe(),o=(0,hi.dateI18n)((0,Ln._x)("F j, Y g:i\xA0a","post schedule full date format"),t);return(0,Ln.isRTL)()?`${r} ${o}`:`${o} ${r}`}function Kwe(e,{isFloating:t=!1,now:r=new Date}={}){if(!e||t)return(0,Ln.__)("Immediately");if(!Qwe(r))return uZ(e);let o=(0,hi.getDate)(e);if(lZ(o,r))return(0,Ln.sprintf)((0,Ln.__)("Today at %s"),(0,hi.dateI18n)((0,Ln._x)("g:i\xA0a","post schedule time format"),o));let n=new Date(r);return n.setDate(n.getDate()+1),lZ(o,n)?(0,Ln.sprintf)((0,Ln.__)("Tomorrow at %s"),(0,hi.dateI18n)((0,Ln._x)("g:i\xA0a","post schedule time format"),o)):o.getFullYear()===r.getFullYear()?(0,hi.dateI18n)((0,Ln._x)("F j g:i\xA0a","post schedule date format without year"),o):(0,hi.dateI18n)((0,Ln._x)("F j, Y g:i\xA0a","post schedule full date format"),o)}function Xwe(){let{timezone:e}=(0,hi.getSettings)();return e.abbr&&isNaN(Number(e.abbr))?e.abbr:`UTC${e.offset<0?"":"+"}${e.offsetFormatted}`}function Qwe(e){let{timezone:t}=(0,hi.getSettings)(),r=Number(t.offset),o=-1*(e.getTimezoneOffset()/60);return r===o}function lZ(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}var lm=i(E(),1),SZ=i(N(),1),O3=i(O(),1),_Z=i(R(),1),EC=i(W(),1);var zo=i(E(),1),am=i(N(),1),Kh=i(R(),1),im=i(O(),1),PC=i(W(),1),hZ=i(pe(),1),gZ=i(Wv(),1),vZ=i(ct(),1);var CC=i(R(),1),dZ=i(O(),1),fZ=i(W(),1);var sm=i(x(),1),Jwe=3,$we={per_page:10,orderby:"count",order:"desc",hide_empty:!0,_fields:"id,name,count",context:"view"};function mZ({onSelect:e,taxonomy:t}){let{_terms:r,showTerms:o}=(0,dZ.useSelect)(s=>{let a=s(fZ.store).getEntityRecords("taxonomy",t.slug,$we);return{_terms:a,showTerms:a?.length>=Jwe}},[t.slug]);if(!o)return null;let n=SW(r);return(0,sm.jsxs)("div",{className:"editor-post-taxonomies__flat-term-most-used",children:[(0,sm.jsx)(CC.BaseControl.VisualLabel,{as:"h3",className:"editor-post-taxonomies__flat-term-most-used-label",children:t.labels.most_used}),(0,sm.jsx)("ul",{role:"list",className:"editor-post-taxonomies__flat-term-most-used-list",children:n.map(s=>(0,sm.jsx)("li",{children:(0,sm.jsx)(CC.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>e(s),children:s.name})},s.id))})]})}var Zb=i(x(),1),E3=[],yZ=100,pZ={per_page:yZ,_fields:"id,name",context:"view"},bZ=(e,t)=>Ch(e).toLowerCase()===Ch(t).toLowerCase(),A3=(e,t)=>e.map(r=>t.find(o=>bZ(o.name,r))?.id).filter(r=>r!==void 0);function R3({slug:e}){let[t,r]=(0,am.useState)([]),[o,n]=(0,am.useState)(""),s=(0,hZ.useDebounce)(n,500),{terms:a,termIds:l,taxonomy:c,hasAssignAction:u,hasCreateAction:d,hasResolvedTerms:f}=(0,im.useSelect)(z=>{let{getCurrentPost:M,getEditedPostAttribute:k}=z(_),{getEntityRecords:I,getEntityRecord:U,hasFinishedResolution:G}=z(PC.store),Y=M(),Z=U("root","taxonomy",e),B=Z?k(Z.rest_base):E3,V={...pZ,include:B?.join(","),per_page:-1};return{hasCreateAction:Z?Y._links?.["wp:action-create-"+Z.rest_base]??!1:!1,hasAssignAction:Z?Y._links?.["wp:action-assign-"+Z.rest_base]??!1:!1,taxonomy:Z,termIds:B,terms:B?.length?I("taxonomy",e,V):E3,hasResolvedTerms:G("getEntityRecords",["taxonomy",e,V])}},[e]),{searchResults:m}=(0,im.useSelect)(z=>{let{getEntityRecords:M}=z(PC.store);return{searchResults:o?M("taxonomy",e,{...pZ,search:o}):E3}},[o,e]);(0,am.useEffect)(()=>{if(f){let z=(a??[]).map(M=>Ch(M.name));r(z)}},[a,f]);let h=(0,am.useMemo)(()=>(m??[]).map(z=>Ch(z.name)),[m]),{editPost:g}=(0,im.useDispatch)(_),{saveEntityRecord:y}=(0,im.useDispatch)(PC.store),{createErrorNotice:v}=(0,im.useDispatch)(vZ.store);if(!u)return null;async function b(z){try{let M=await y("taxonomy",e,z,{throwOnError:!0});return q6(M)}catch(M){if(M.code!=="term_exists")throw M;return{id:M.data.term_id,name:z.name}}}function S(z){g({[c.rest_base]:z})}function w(z){let M=[...a??[],...m??[]],k=z.reduce((U,G)=>(U.some(Y=>Y.toLowerCase()===G.toLowerCase())||U.push(G),U),[]),I=k.filter(U=>!M.find(G=>bZ(G.name,U)));if(r(k),I.length===0){S(A3(k,M));return}d&&Promise.all(I.map(U=>b({name:U}))).then(U=>{let G=M.concat(U);S(A3(k,G))}).catch(U=>{v(U.message,{type:"snackbar"}),S(A3(k,M))})}function T(z){if(l.includes(z.id))return;let M=[...l,z.id],k=e==="post_tag"?(0,zo.__)("Tag"):(0,zo.__)("Term"),I=(0,zo.sprintf)((0,zo._x)("%s added","term"),c?.labels?.singular_name??k);(0,gZ.speak)(I,"assertive"),S(M)}let C=c?.labels?.add_new_item??(e==="post_tag"?(0,zo.__)("Add Tag"):(0,zo.__)("Add Term")),A=c?.labels?.singular_name??(e==="post_tag"?(0,zo.__)("Tag"):(0,zo.__)("Term")),F=(0,zo.sprintf)((0,zo._x)("%s added","term"),A),L=(0,zo.sprintf)((0,zo._x)("%s removed","term"),A),j=(0,zo.sprintf)((0,zo._x)("Remove %s","term"),A);return(0,Zb.jsxs)(Kh.__experimentalVStack,{spacing:4,children:[(0,Zb.jsx)(Kh.FormTokenField,{__next40pxDefaultSize:!0,value:t,suggestions:h,onChange:w,onInputChange:s,maxSuggestions:yZ,label:C,messages:{added:F,removed:L,remove:j}}),(0,Zb.jsx)(mZ,{taxonomy:c,onSelect:T})]})}var kC=(0,Kh.withFilters)("editor.PostTaxonomyType")(R3);var cm=i(x(),1),exe=()=>{let e=(0,O3.useSelect)(n=>n(EC.store).getTaxonomy("post_tag")?.labels,[]),t=e?.add_new_item??(0,lm.__)("Add tag"),r=e?.name??(0,lm.__)("Tags"),o=[(0,lm.__)("Suggestion:"),(0,cm.jsx)("span",{className:"editor-post-publish-panel__link",children:t},"label")];return(0,cm.jsxs)(_Z.PanelBody,{initialOpen:!1,title:o,children:[(0,cm.jsx)("p",{children:(0,lm.sprintf)((0,lm.__)("%s help users and search engines navigate your site and find your content. Add a few keywords to describe your post."),r)}),(0,cm.jsx)(kC,{slug:"post_tag"})]})},txe=()=>{let{postHasTags:e,siteHasTags:t,isPostTypeSupported:r}=(0,O3.useSelect)(n=>{let s=n(_).getCurrentPostType(),a=n(EC.store).getEntityRecord("root","taxonomy","post_tag"),l=a?.types?.includes(s),c=a!==void 0,u=a&&n(_).getEditedPostAttribute(a.rest_base),d=l?!!n(EC.store).getEntityRecords("taxonomy","post_tag",{per_page:1})?.length:!1;return{postHasTags:!!u?.length,siteHasTags:d,isPostTypeSupported:c&&l}},[]),[o]=(0,SZ.useState)(e);return!r||!t||o?null:(0,cm.jsx)(exe,{})},wZ=txe;var AC=i(R(),1),RC=i(O(),1),um=i(E(),1),xZ=i(W(),1);var $u=i(x(),1),rxe=(e,t)=>Vb.filter(o=>e?.includes(o.id)).find(o=>o.id===t),oxe=({suggestedPostFormat:e,suggestionText:t,onUpdatePostFormat:r})=>(0,$u.jsx)(AC.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>r(e),children:t});function TZ(){let{currentPostFormat:e,suggestion:t}=(0,RC.useSelect)(s=>{let{getEditedPostAttribute:a,getSuggestedPostFormat:l}=s(_),c=s(xZ.store).getThemeSupports().formats??[];return{currentPostFormat:a("format"),suggestion:rxe(c,l())}},[]),{editPost:r}=(0,RC.useDispatch)(_),o=s=>r({format:s}),n=[(0,um.__)("Suggestion:"),(0,$u.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,um.__)("Use a post format")},"label")];return!t||t.id===e?null:(0,$u.jsxs)(AC.PanelBody,{initialOpen:!1,title:n,children:[(0,$u.jsx)("p",{children:(0,um.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")}),(0,$u.jsx)("p",{children:(0,$u.jsx)(oxe,{onUpdatePostFormat:o,suggestedPostFormat:t.id,suggestionText:(0,um.sprintf)((0,um.__)('Apply the "%1$s" format.'),t.caption)})})]})}var IC=i(E(),1),OZ=i(O(),1),IZ=i(R(),1),N3=i(W(),1),FC=i(N(),1);var ko=i(E(),1),bc=i(N(),1),EZ=i(ct(),1),or=i(R(),1),Xh=i(O(),1),AZ=i(pe(),1),Kb=i(W(),1),I3=i(Wv(),1),RZ=i(vt(),1);var Po=i(x(),1),{normalizeTextString:CZ}=D(or.privateApis),{RECEIVE_INTERMEDIATE_RESULTS:nxe}=D(Kb.privateApis),PZ={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent",context:"view",[nxe]:!0},sxe=8,kZ=[];function ixe(e,t){let r=s=>t.indexOf(s.id)!==-1?!0:s.children===void 0?!1:s.children.map(r).filter(a=>a).length>0,o=(s,a)=>{let l=r(s),c=r(a);return l===c?0:l&&!c?-1:!l&&c?1:0},n=[...e];return n.sort(o),n}function axe(e,t,r){return e.find(o=>(!o.parent&&!t||parseInt(o.parent)===parseInt(t))&&o.name.toLowerCase()===r.toLowerCase())}function lxe(e){let t=r=>{if(e==="")return r;let o={...r};return o.children.length>0&&(o.children=o.children.map(t).filter(n=>n)),CZ(o.name).indexOf(CZ(e))!==-1||o.children.length>0?o:!1};return t}function F3({slug:e}){let[t,r]=(0,bc.useState)(!1),[o,n]=(0,bc.useState)(""),[s,a]=(0,bc.useState)(""),[l,c]=(0,bc.useState)(!1),[u,d]=(0,bc.useState)(""),[f,m]=(0,bc.useState)([]),h=(0,AZ.useDebounce)(I3.speak,500),{hasCreateAction:g,hasAssignAction:y,terms:v,loading:b,availableTerms:S,taxonomy:w}=(0,Xh.useSelect)(ge=>{let{getCurrentPost:oe,getEditedPostAttribute:ve}=ge(_),{getEntityRecord:De,getEntityRecords:Ze,isResolving:je}=ge(Kb.store),rt=De("root","taxonomy",e),Tt=oe();return{hasCreateAction:rt?!!Tt._links?.["wp:action-create-"+rt.rest_base]:!1,hasAssignAction:rt?!!Tt._links?.["wp:action-assign-"+rt.rest_base]:!1,terms:rt?ve(rt.rest_base):kZ,loading:je("getEntityRecords",["taxonomy",e,PZ]),availableTerms:Ze("taxonomy",e,PZ)||kZ,taxonomy:rt}},[e]),{editPost:T}=(0,Xh.useDispatch)(_),{saveEntityRecord:C}=(0,Xh.useDispatch)(Kb.store),A=(0,bc.useMemo)(()=>ixe(pT(S),v),[S]),{createErrorNotice:F}=(0,Xh.useDispatch)(EZ.store);if(!y)return null;let L=ge=>C("taxonomy",e,ge,{throwOnError:!0}),j=ge=>{T({[w.rest_base]:ge})},z=ge=>{let ve=v.includes(ge)?v.filter(De=>De!==ge):[...v,ge];j(ve)},M=ge=>{n(ge)},k=ge=>{a(ge)},I=()=>{c(!l)},U=async ge=>{if(ge.preventDefault(),o===""||t)return;let oe=axe(S,s,o);if(oe){v.some(je=>je===oe.id)||j([...v,oe.id]),n(""),a("");return}r(!0);let ve;try{ve=await L({name:o,parent:s||void 0})}catch(je){F(je.message,{type:"snackbar"});return}let De=e==="category"?(0,ko.__)("Category"):(0,ko.__)("Term"),Ze=(0,ko.sprintf)((0,ko._x)("%s added","term"),w?.labels?.singular_name??De);(0,I3.speak)(Ze,"assertive"),r(!1),n(""),a(""),j([...v,ve.id])},G=ge=>{let oe=A.map(lxe(ge)).filter(je=>je),ve=je=>{let rt=0;for(let Tt=0;Tt<je.length;Tt++)rt++,je[Tt].children!==void 0&&(rt+=ve(je[Tt].children));return rt};d(ge),m(oe);let De=ve(oe),Ze=(0,ko.sprintf)((0,ko._n)("%d result found.","%d results found.",De),De);h(Ze,"assertive")},Y=ge=>ge.map(oe=>(0,Po.jsxs)("div",{className:"editor-post-taxonomies__hierarchical-terms-choice",children:[(0,Po.jsx)(or.CheckboxControl,{checked:v.indexOf(oe.id)!==-1,onChange:()=>{let ve=parseInt(oe.id,10);z(ve)},label:(0,RZ.decodeEntities)(oe.name)}),!!oe.children.length&&(0,Po.jsx)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices",children:Y(oe.children)})]},oe.id)),Z=(ge,oe,ve)=>w?.labels?.[ge]??(e==="category"?oe:ve),B=Z("add_new_item",(0,ko.__)("Add Category"),(0,ko.__)("Add Term")),V=Z("new_item_name",(0,ko.__)("Add Category"),(0,ko.__)("Add Term")),H=Z("parent_item",(0,ko.__)("Parent Category"),(0,ko.__)("Parent Term")),X=`\u2014 ${H} \u2014`,ne=B,se=w?.labels?.search_items??(0,ko.__)("Search Terms"),ye=w?.name??(0,ko.__)("Terms"),qe=S.length>=sxe;return(0,Po.jsxs)(or.Flex,{direction:"column",gap:"4",children:[qe&&!b&&(0,Po.jsx)(or.SearchControl,{__next40pxDefaultSize:!0,label:se,placeholder:se,value:u,onChange:G}),b&&(0,Po.jsx)(or.Flex,{justify:"center",style:{height:"40px"},children:(0,Po.jsx)(or.Spinner,{})}),(0,Po.jsx)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",tabIndex:"0",role:"group","aria-label":ye,children:Y(u!==""?f:A)}),!b&&g&&(0,Po.jsx)(or.FlexItem,{children:(0,Po.jsx)(or.Button,{__next40pxDefaultSize:!0,onClick:I,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":l,variant:"link",children:B})}),l&&(0,Po.jsx)("form",{onSubmit:U,children:(0,Po.jsxs)(or.Flex,{direction:"column",gap:"4",children:[(0,Po.jsx)(or.TextControl,{__next40pxDefaultSize:!0,className:"editor-post-taxonomies__hierarchical-terms-input",label:V,value:o,onChange:M,required:!0}),!!S.length&&(0,Po.jsx)(or.TreeSelect,{__next40pxDefaultSize:!0,label:H,noOptionLabel:X,onChange:k,selectedId:s,tree:A}),(0,Po.jsx)(or.FlexItem,{children:(0,Po.jsx)(or.Button,{__next40pxDefaultSize:!0,variant:"secondary",type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit",children:ne})})]})})]})}var OC=(0,or.withFilters)("editor.PostTaxonomyType")(F3);var Qh=i(x(),1);function cxe(){let{hasNoCategory:e,hasSiteCategories:t}=(0,OZ.useSelect)(s=>{let a=s(_).getCurrentPostType(),{canUser:l,getEntityRecord:c}=s(N3.store),u=c("root","taxonomy","category"),d=l("read",{kind:"root",name:"site"})?c("root","site")?.default_category:void 0,f=d?c("taxonomy","category",d):void 0,m=u&&u.types.some(v=>v===a),h=u&&s(_).getEditedPostAttribute(u.rest_base),g=m?!!s(N3.store).getEntityRecords("taxonomy","category",{exclude:[d],per_page:1})?.length:!1;return{hasNoCategory:!!u&&!!f&&m&&(h?.length===0||h?.length===1&&f?.id===h[0]),hasSiteCategories:g}},[]),[r,o]=(0,FC.useState)(!1);if((0,FC.useEffect)(()=>{e&&o(!0)},[e]),!r||!t)return null;let n=[(0,IC.__)("Suggestion:"),(0,Qh.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,IC.__)("Assign a category")},"label")];return(0,Qh.jsxs)(IZ.PanelBody,{initialOpen:!1,title:n,children:[(0,Qh.jsx)("p",{children:(0,IC.__)("Categories provide a helpful way to group related posts together and to quickly tell readers what a post is about.")}),(0,Qh.jsx)(OC,{slug:"category"})]})}var FZ=cxe;var Ya=i(R(),1),Qb=i(O(),1),ed=i(E(),1),Xb=i($(),1),NC=i(N(),1),DZ=i(Qv(),1);var NZ=i(zr(),1);function uxe(e){let t=new Set;return Object.fromEntries(e.map(r=>{let o=(0,NZ.getFilename)(r),n="";if(o){let s=o.split(".");s.length>1&&s.pop(),n=s.join(".")}return n||(n=wp()),t.has(n)&&(n=`${n}-${wp()}`),t.add(n),[r,n]}))}function BZ(e){return Object.fromEntries(Object.entries(uxe(e)).map(([t,r])=>{let o=window.fetch(t.includes("?")?t:t+"?").then(n=>n.blob()).then(n=>new File([n],`${r}.png`,{type:n.type}));return[t,o]}))}var gi=i(x(),1);function LZ(e){let t=[];return e.forEach(r=>{t.push(r),t.push(...LZ(r.innerBlocks))}),t}function dxe(e){if(e.name==="core/image"||e.name==="core/cover")return e.attributes.url&&!e.attributes.id;if(e.name==="core/media-text")return e.attributes.mediaUrl&&!e.attributes.mediaId}function B3(e){if(e.name==="core/image"||e.name==="core/cover"){let{url:t,alt:r,id:o}=e.attributes;return{url:t,alt:r,id:o}}if(e.name==="core/media-text"){let{mediaUrl:t,mediaAlt:r,mediaId:o}=e.attributes;return{url:t,alt:r,id:o}}return{}}function fxe({clientId:e,alt:t,url:r}){let{selectBlock:o}=(0,Qb.useDispatch)(Xb.store);return(0,gi.jsx)(Ya.__unstableMotion.img,{tabIndex:0,role:"button","aria-label":(0,ed.__)("Select image block."),onClick:()=>{o(e)},onKeyDown:n=>{(n.key==="Enter"||n.key===" ")&&(o(e),n.preventDefault())},alt:t,src:r,animate:{opacity:1},exit:{opacity:0,scale:0},style:{width:"32px",height:"32px",objectFit:"cover",borderRadius:"2px",cursor:"pointer"},whileHover:{scale:1.08}},e)}function MZ(){let[e,t]=(0,NC.useState)(!1),[r,o]=(0,NC.useState)(!1),[n,s]=(0,NC.useState)(!1),{editorBlocks:a,mediaUpload:l}=(0,Qb.useSelect)(h=>({editorBlocks:h(Xb.store).getBlocks(),mediaUpload:h(Xb.store).getSettings().mediaUpload}),[]),c=LZ(a).filter(h=>dxe(h)),{updateBlockAttributes:u}=(0,Qb.useDispatch)(Xb.store);if(!l||!c.length)return null;let d=[(0,ed.__)("Suggestion:"),(0,gi.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,ed.__)("External media")},"label")];function f(h,g){(h.name==="core/image"||h.name==="core/cover")&&u(h.clientId,{id:g.id,url:g.url}),h.name==="core/media-text"&&u(h.clientId,{mediaId:g.id,mediaUrl:g.url})}function m(){t(!0),s(!1);let h=new Set(c.map(y=>{let{url:v}=B3(y);return v})),g=Object.fromEntries(Object.entries(BZ([...h])).map(([y,v])=>{let b=v.then(S=>new Promise((w,T)=>{l({filesList:[S],onFileChange:([C])=>{(0,DZ.isBlobURL)(C.url)||w(C)},onError(){T()}})}));return[y,b]}));Promise.allSettled(c.map(y=>{let{url:v}=B3(y);return g[v].then(b=>f(y,b)).then(()=>o(!0)).catch(()=>s(!0))})).finally(()=>{t(!1)})}return(0,gi.jsxs)(Ya.PanelBody,{initialOpen:!0,title:d,children:[(0,gi.jsx)("p",{children:(0,ed.__)("Upload external images to the Media Library. Images from different domains may load slowly, display incorrectly, or be removed unexpectedly.")}),(0,gi.jsxs)("div",{style:{display:"inline-flex",flexWrap:"wrap",gap:"8px"},children:[(0,gi.jsx)(Ya.__unstableAnimatePresence,{onExitComplete:()=>o(!1),children:c.map(h=>{let{url:g,alt:y}=B3(h);return(0,gi.jsx)(fxe,{clientId:h.clientId,url:g,alt:y},h.clientId)})}),e||r?(0,gi.jsx)(Ya.Spinner,{}):(0,gi.jsx)(Ya.Button,{size:"compact",variant:"primary",onClick:m,children:(0,ed._x)("Upload","verb")})]}),n&&(0,gi.jsx)("p",{children:(0,ed.__)("Upload failed, try again.")})]})}var Bt=i(x(),1);function mxe({children:e}){let{isBeingScheduled:t,isRequestingSiteIcon:r,hasPublishAction:o,siteIconUrl:n,siteTitle:s,siteHome:a}=(0,VZ.useSelect)(d=>{let{getCurrentPost:f,isEditedPostBeingScheduled:m}=d(_),{getEntityRecord:h,isResolving:g}=d(zZ.store),y=h("root","__unstableBase",void 0)||{};return{hasPublishAction:f()._links?.["wp:action-publish"]??!1,isBeingScheduled:m(),isRequestingSiteIcon:g("getEntityRecord",["root","__unstableBase",void 0]),siteIconUrl:y.site_icon_url,siteTitle:y.name,siteHome:y.home&&(0,jZ.filterURLForDisplay)(y.home)}},[]),l=(0,Bt.jsx)(Jb.Icon,{className:"components-site-icon",size:"36px",icon:e5});n&&(l=(0,Bt.jsx)("img",{alt:(0,oa.__)("Site Icon"),className:"components-site-icon",src:n})),r&&(l=null);let c,u;return o?t?(c=(0,oa.__)("Are you ready to schedule?"),u=(0,oa.__)("Your work will be published at the specified date and time.")):(c=(0,oa.__)("Are you ready to publish?"),u=(0,oa.__)("Double-check your settings before publishing.")):(c=(0,oa.__)("Are you ready to submit for review?"),u=(0,oa.__)("Your work will be reviewed and then approved.")),(0,Bt.jsxs)("div",{className:"editor-post-publish-panel__prepublish",children:[(0,Bt.jsx)("div",{children:(0,Bt.jsx)("strong",{children:c})}),(0,Bt.jsx)("p",{children:u}),(0,Bt.jsxs)("div",{className:"components-site-card",children:[l,(0,Bt.jsxs)("div",{className:"components-site-info",children:[(0,Bt.jsx)("span",{className:"components-site-name",children:(0,UZ.decodeEntities)(s)||(0,oa.__)("(Untitled)")}),(0,Bt.jsx)("span",{className:"components-site-home",children:a})]})]}),(0,Bt.jsx)(MZ,{}),o&&(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsx)(Jb.PanelBody,{initialOpen:!1,title:[(0,oa.__)("Visibility:"),(0,Bt.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,Bt.jsx)(_C,{})},"label")],children:(0,Bt.jsx)(Wb,{})}),(0,Bt.jsx)(Jb.PanelBody,{initialOpen:!1,title:[(0,oa.__)("Publish:"),(0,Bt.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,Bt.jsx)(qh,{})},"label")],children:(0,Bt.jsx)(Yh,{})})]}),(0,Bt.jsx)(TZ,{}),(0,Bt.jsx)(wZ,{}),(0,Bt.jsx)(FZ,{}),e]})}var HZ=mxe;var Ds=i(R(),1),na=i(E(),1),td=i(N(),1),YZ=i(O(),1),BC=i(zr(),1),qZ=i(vt(),1),ZZ=i(pe(),1),KZ=i(W(),1);var Dr=i(x(),1),GZ="%postname%",WZ="%pagename%",pxe=e=>{let{slug:t}=e;return e.permalink_template.includes(GZ)?e.permalink_template.replace(GZ,t):e.permalink_template.includes(WZ)?e.permalink_template.replace(WZ,t):e.permalink_template};function hxe({text:e}){let[t,r]=(0,td.useState)(!1),o=(0,td.useRef)(),n=(0,ZZ.useCopyToClipboard)(e,()=>{r(!0),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(!1)},4e3)});return(0,td.useEffect)(()=>()=>{o.current&&clearTimeout(o.current)},[]),(0,Dr.jsx)(Ds.Button,{__next40pxDefaultSize:!0,variant:"secondary",ref:n,children:t?(0,na.__)("Copied!"):(0,na.__)("Copy")})}function XZ({focusOnMount:e,children:t}){let{post:r,postType:o,isScheduled:n}=(0,YZ.useSelect)(m=>{let{getEditedPostAttribute:h,getCurrentPost:g,isCurrentPostScheduled:y}=m(_),{getPostType:v}=m(KZ.store);return{post:g(),postType:v(h("type")),isScheduled:y()}},[]),s=o?.labels?.singular_name,a=o?.labels?.view_item,l=o?.labels?.add_new_item,c=r.status==="future"?pxe(r):r.link,u=(0,BC.addQueryArgs)("post-new.php",{post_type:r.type}),d=(0,td.useCallback)(m=>{e&&m&&m.focus()},[e]),f=n?(0,Dr.jsxs)(Dr.Fragment,{children:[(0,na.__)("is now scheduled. It will go live on")," ",(0,Dr.jsx)(qh,{}),"."]}):(0,na.__)("is now live.");return(0,Dr.jsxs)("div",{className:"post-publish-panel__postpublish",children:[(0,Dr.jsxs)(Ds.PanelBody,{className:"post-publish-panel__postpublish-header",children:[(0,Dr.jsx)(Ds.ExternalLink,{ref:d,href:c,children:(0,qZ.decodeEntities)(r.title)||(0,na.__)("(no title)")})," ",f]}),(0,Dr.jsxs)(Ds.PanelBody,{children:[(0,Dr.jsx)("p",{className:"post-publish-panel__postpublish-subheader",children:(0,Dr.jsx)("strong",{children:(0,na.__)("What\u2019s next?")})}),(0,Dr.jsxs)("div",{className:"post-publish-panel__postpublish-post-address-container",children:[(0,Dr.jsx)(Ds.TextControl,{__next40pxDefaultSize:!0,className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:(0,na.sprintf)((0,na.__)("%s address"),s),value:(0,BC.safeDecodeURIComponent)(c),onFocus:m=>m.target.select()}),(0,Dr.jsx)("div",{className:"post-publish-panel__postpublish-post-address__copy-button-wrap",children:(0,Dr.jsx)(hxe,{text:c})})]}),(0,Dr.jsxs)("div",{className:"post-publish-panel__postpublish-buttons",children:[!n&&(0,Dr.jsxs)(Ds.Button,{variant:"primary",href:c,__next40pxDefaultSize:!0,icon:Kn,iconPosition:"right",target:"_blank",children:[a,(0,Dr.jsx)(Ds.VisuallyHidden,{as:"span",children:(0,na.__)("(opens in a new tab)")})]}),(0,Dr.jsx)(Ds.Button,{variant:n?"primary":"secondary",__next40pxDefaultSize:!0,href:u,children:l})]})]}),t]})}var Kr=i(x(),1),gxe=class extends LC.Component{constructor(){super(...arguments),this.onSubmit=this.onSubmit.bind(this),this.cancelButtonNode=(0,LC.createRef)()}componentDidMount(){this.timeoutID=setTimeout(()=>{this.cancelButtonNode.current.focus()},0)}componentWillUnmount(){clearTimeout(this.timeoutID)}componentDidUpdate(e){(e.isPublished&&!this.props.isSaving&&this.props.isDirty||this.props.currentPostId!==e.currentPostId)&&this.props.onClose()}onSubmit(){let{onClose:e,hasPublishAction:t,isPostTypeViewable:r}=this.props;(!t||!r)&&e()}render(){let{forceIsDirty:e,isBeingScheduled:t,isPublished:r,isPublishSidebarEnabled:o,isScheduled:n,isSaving:s,isSavingNonPostEntityChanges:a,onClose:l,onTogglePublishSidebar:c,PostPublishExtension:u,PrePublishExtension:d,currentPostId:f,...m}=this.props,{hasPublishAction:h,isDirty:g,isPostTypeViewable:y,...v}=m,b=r||n&&t,S=!b&&!s,w=b&&!s;return(0,Kr.jsxs)("div",{className:"editor-post-publish-panel",...v,children:[(0,Kr.jsx)("div",{className:"editor-post-publish-panel__header",children:w?(0,Kr.jsx)(sa.Button,{size:"compact",onClick:l,icon:Zn,label:(0,DC.__)("Close panel")}):(0,Kr.jsxs)(Kr.Fragment,{children:[(0,Kr.jsx)("div",{className:"editor-post-publish-panel__header-cancel-button",children:(0,Kr.jsx)(sa.Button,{ref:this.cancelButtonNode,accessibleWhenDisabled:!0,disabled:a,onClick:l,variant:"secondary",size:"compact",children:(0,DC.__)("Cancel")})}),(0,Kr.jsx)("div",{className:"editor-post-publish-panel__header-publish-button",children:(0,Kr.jsx)(Hh,{onSubmit:this.onSubmit,forceIsDirty:e})})]})}),(0,Kr.jsxs)("div",{className:"editor-post-publish-panel__content",children:[S&&(0,Kr.jsx)(HZ,{children:d&&(0,Kr.jsx)(d,{})}),w&&(0,Kr.jsx)(XZ,{focusOnMount:!0,children:u&&(0,Kr.jsx)(u,{})}),s&&(0,Kr.jsx)(sa.Spinner,{})]}),(0,Kr.jsx)("div",{className:"editor-post-publish-panel__footer",children:(0,Kr.jsx)(sa.CheckboxControl,{label:(0,DC.__)("Always show pre-publish checks."),checked:o,onChange:c})})]})}},VC=(0,QZ.compose)([(0,MC.withSelect)(e=>{let{getPostType:t}=e(JZ.store),{getCurrentPost:r,getCurrentPostId:o,getEditedPostAttribute:n,isCurrentPostPublished:s,isCurrentPostScheduled:a,isEditedPostBeingScheduled:l,isEditedPostDirty:c,isAutosavingPost:u,isSavingPost:d,isSavingNonPostEntityChanges:f}=e(_),{isPublishSidebarEnabled:m}=e(_),h=t(n("type"));return{hasPublishAction:r()._links?.["wp:action-publish"]??!1,isPostTypeViewable:h?.viewable,isBeingScheduled:l(),isDirty:c(),isPublished:s(),isPublishSidebarEnabled:m(),isSaving:d()&&!u(),isSavingNonPostEntityChanges:f(),isScheduled:a(),currentPostId:o()}}),(0,MC.withDispatch)((e,{isPublishSidebarEnabled:t})=>{let{disablePublishSidebar:r,enablePublishSidebar:o}=e(_);return{onTogglePublishSidebar:()=>{t?r():o()}}}),sa.withFocusReturn,sa.withConstrainedTabbing])(gxe);var WC=i(R(),1),YC=i(pe(),1),qC=i(O(),1),ZC=i(N(),1),dm=i(E(),1);var nK=i(yo(),1),sK=i(dt(),1);var Ls=i(R(),1),Et=i(E(),1),GC=i(O(),1),$b=i(N(),1),tK=i(W(),1),rK=i($(),1),oK=i(pe(),1);var D3=i(E(),1),eK=i(R(),1),zC=i(O(),1);var $Z=i(O(),1);function jC({children:e}){let{hasStickyAction:t,postType:r}=(0,$Z.useSelect)(o=>({hasStickyAction:o(_).getCurrentPost()._links?.["wp:action-sticky"]??!1,postType:o(_).getCurrentPostType()}),[]);return r!=="post"||!t?null:e}var L3=i(x(),1);function UC(){let e=(0,zC.useSelect)(r=>r(_).getEditedPostAttribute("sticky")??!1,[]),{editPost:t}=(0,zC.useDispatch)(_);return(0,L3.jsx)(jC,{children:(0,L3.jsx)(eK.CheckboxControl,{className:"editor-post-sticky__checkbox-control",label:(0,D3.__)("Sticky"),help:(0,D3.__)("Pin this post to the top of the blog."),checked:e,onChange:()=>t({sticky:!e})})})}var Xr=i(x(),1),HC={"auto-draft":{label:(0,Et.__)("Draft"),icon:zm},draft:{label:(0,Et.__)("Draft"),icon:zm},pending:{label:(0,Et.__)("Pending"),icon:Av},private:{label:(0,Et.__)("Private"),icon:Cv},future:{label:(0,Et.__)("Scheduled"),icon:Ov},publish:{label:(0,Et.__)("Published"),icon:Vd}},M3=[{label:(0,Et.__)("Draft"),value:"draft",description:(0,Et.__)("Not ready to publish.")},{label:(0,Et.__)("Pending"),value:"pending",description:(0,Et.__)("Waiting for review before publishing.")},{label:(0,Et.__)("Private"),value:"private",description:(0,Et.__)("Only visible to site admins and editors.")},{label:(0,Et.__)("Scheduled"),value:"future",description:(0,Et.__)("Publish automatically on a chosen date.")},{label:(0,Et.__)("Published"),value:"publish",description:(0,Et.__)("Visible to everyone.")}];function V3(){let{status:e,date:t,password:r,postId:o,postType:n,canEdit:s}=(0,GC.useSelect)(v=>{let{getEditedPostAttribute:b,getCurrentPostId:S,getCurrentPostType:w,getCurrentPost:T}=v(_);return{status:b("status"),date:b("date"),password:b("password"),postId:S(),postType:w(),canEdit:T()._links?.["wp:action-publish"]??!1}},[]),[a,l]=(0,$b.useState)(!!r),c=(0,oK.useInstanceId)(V3,"editor-change-status__password-input"),{editEntityRecord:u}=(0,GC.useDispatch)(tK.store),[d,f]=(0,$b.useState)(null),m=(0,$b.useMemo)(()=>({anchor:d,"aria-label":(0,Et.__)("Status & visibility"),headerTitle:(0,Et.__)("Status & visibility"),placement:"left-start",offset:36,shift:!0}),[d]);if(Kc.includes(n))return null;let h=({status:v=e,password:b=r,date:S=t})=>{u("postType",n,o,{status:v,date:S,password:b})},g=v=>{l(v),v||h({password:""})},y=v=>{let b=t,S=r;e==="future"&&new Date(t)>new Date&&(b=null),v==="private"&&r&&(S=""),h({status:v,date:b,password:S})};return(0,Xr.jsx)(xt,{label:(0,Et.__)("Status"),ref:f,children:s?(0,Xr.jsx)(Ls.Dropdown,{className:"editor-post-status",contentClassName:"editor-change-status__content",popoverProps:m,focusOnMount:!0,renderToggle:({onToggle:v,isOpen:b})=>(0,Xr.jsx)(Ls.Button,{className:"editor-post-status__toggle",variant:"tertiary",size:"compact",onClick:v,icon:HC[e]?.icon,"aria-label":(0,Et.sprintf)((0,Et.__)("Change status: %s"),HC[e]?.label),"aria-expanded":b,children:HC[e]?.label}),renderContent:({onClose:v})=>(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)(rK.__experimentalInspectorPopoverHeader,{title:(0,Et.__)("Status & visibility"),onClose:v}),(0,Xr.jsx)("form",{onSubmit:b=>{b.preventDefault(),v()},children:(0,Xr.jsxs)(Ls.__experimentalVStack,{spacing:4,children:[(0,Xr.jsx)(Ls.RadioControl,{className:"editor-change-status__options",hideLabelFromVision:!0,label:(0,Et.__)("Status"),options:M3,onChange:y,selected:e==="auto-draft"?"draft":e}),e==="future"&&(0,Xr.jsx)("div",{className:"editor-change-status__publish-date-wrapper",children:(0,Xr.jsx)(k3,{showPopoverHeaderActions:!1,isCompact:!0})}),e!=="private"&&(0,Xr.jsxs)(Ls.__experimentalVStack,{as:"fieldset",spacing:4,className:"editor-change-status__password-fieldset",children:[(0,Xr.jsx)(Ls.CheckboxControl,{label:(0,Et.__)("Password protected"),help:(0,Et.__)("Only visible to those who know the password."),checked:a,onChange:g}),a&&(0,Xr.jsx)("div",{className:"editor-change-status__password-input",children:(0,Xr.jsx)(Ls.TextControl,{label:(0,Et.__)("Password"),onChange:b=>h({password:b}),value:r,placeholder:(0,Et.__)("Use a secure password"),type:"text",id:c,__next40pxDefaultSize:!0,maxLength:255})})]}),(0,Xr.jsx)(UC,{})]})})]})}):(0,Xr.jsx)("div",{className:"editor-post-status is-read-only",children:HC[e]?.label})})}var KC=i(x(),1);function XC({forceIsDirty:e}){let[t,r]=(0,ZC.useState)(!1),o=(0,YC.useViewportMatch)("small"),{isAutosaving:n,isDirty:s,isNew:a,isPublished:l,isSaveable:c,isSaving:u,isScheduled:d,hasPublishAction:f,showIconLabels:m,postStatus:h,postStatusHasChanged:g,postType:y}=(0,qC.useSelect)(z=>{let{isEditedPostNew:M,isCurrentPostPublished:k,isCurrentPostScheduled:I,isEditedPostDirty:U,isSavingPost:G,isEditedPostSaveable:Y,getCurrentPost:Z,isAutosavingPost:B,getEditedPostAttribute:V,getPostEdits:H}=z(_),{get:X}=z(sK.store);return{isAutosaving:B(),isDirty:e||U(),isNew:M(),isPublished:k(),isSaving:G(),isSaveable:Y(),isScheduled:I(),hasPublishAction:Z()?._links?.["wp:action-publish"]??!1,showIconLabels:X("core","showIconLabels"),postStatus:V("status"),postStatusHasChanged:!!H()?.status,postType:z(_).getCurrentPostType()}},[e]),v=h==="pending",{savePost:b}=(0,qC.useDispatch)(_),S=(0,YC.usePrevious)(u);if((0,ZC.useEffect)(()=>{let z;return S&&!u&&(r(!0),z=setTimeout(()=>{r(!1)},1e3)),()=>clearTimeout(z)},[u]),y===dr||!f&&v)return null;let w=!["pending","draft","auto-draft"].includes(h)&&M3.map(({value:z})=>z).includes(h);if(l||d||w||g&&["pending","draft"].includes(h))return null;let T=v?(0,dm.__)("Save as pending"):(0,dm.__)("Save draft"),C=(0,dm.__)("Save"),A=t||!a&&!s,F=u||A,L=u||A||!c,j;return u?j=n?(0,dm.__)("Autosaving"):(0,dm.__)("Saving"):A?j=(0,dm.__)("Saved"):o?j=T:m&&(j=C),(0,KC.jsxs)(WC.Button,{className:c||u?re({"editor-post-save-draft":!F,"editor-post-saved-state":F,"is-saving":u,"is-autosaving":n,"is-saved":A,[(0,WC.__unstableGetAnimateClassName)({type:"loading"})]:u}):void 0,onClick:L?void 0:()=>b(),shortcut:L?void 0:nK.displayShortcut.primary("s"),variant:"tertiary",size:"compact",icon:o?void 0:TA,label:j||T,"aria-disabled":L,children:[F&&(0,KC.jsx)(Oo,{icon:A?xs:PA}),j]})}var iK=i(O(),1);function QC({children:e}){return(0,iK.useSelect)(r=>r(_).getCurrentPost()._links?.["wp:action-publish"]??!1,[])?e:null}var JC=i(R(),1),$h=i(E(),1),$C=i(N(),1),aK=i(O(),1);var Jh=i(x(),1);function eP(){let[e,t]=(0,$C.useState)(null),r=(0,aK.useSelect)(a=>a(_).getCurrentPostType(),[]),o=(0,$C.useMemo)(()=>({anchor:e,"aria-label":(0,$h.__)("Change publish date"),placement:"left-start",offset:36,shift:!0}),[e]),n=Zh(),s=Zh({full:!0});return Kc.includes(r)?null:(0,Jh.jsx)(QC,{children:(0,Jh.jsx)(xt,{label:(0,$h.__)("Publish"),ref:t,children:(0,Jh.jsx)(JC.Dropdown,{popoverProps:o,focusOnMount:!0,className:"editor-post-schedule__panel-dropdown",contentClassName:"editor-post-schedule__dialog",renderToggle:({onToggle:a,isOpen:l})=>(0,Jh.jsx)(JC.Button,{size:"compact",className:"editor-post-schedule__dialog-toggle",variant:"tertiary",tooltipPosition:"middle left",onClick:a,"aria-label":(0,$h.sprintf)((0,$h.__)("Change date: %s"),n),label:s,showTooltip:n!==s,"aria-expanded":l,children:n}),renderContent:({onClose:a})=>(0,Jh.jsx)(Yh,{onClose:a})})})})}var tP=i(R(),1),eg=i(E(),1),rP=i(O(),1),lK=i(N(),1),cK=i(Ws(),1);var fm=i(x(),1);function uK(){(0,cK.default)("wp.editor.PostSwitchToDraftButton",{since:"6.7",version:"6.9"});let[e,t]=(0,lK.useState)(!1),{editPost:r,savePost:o}=(0,rP.useDispatch)(_),{isSaving:n,isPublished:s,isScheduled:a}=(0,rP.useSelect)(f=>{let{isSavingPost:m,isCurrentPostPublished:h,isCurrentPostScheduled:g}=f(_);return{isSaving:m(),isPublished:h(),isScheduled:g()}},[]),l=n||!s&&!a,c,u;s?(c=(0,eg.__)("Are you sure you want to unpublish this post?"),u=(0,eg.__)("Unpublish")):a&&(c=(0,eg.__)("Are you sure you want to unschedule this post?"),u=(0,eg.__)("Unschedule"));let d=()=>{t(!1),r({status:"draft"}),o()};return(0,fm.jsxs)(fm.Fragment,{children:[(0,fm.jsx)(tP.Button,{__next40pxDefaultSize:!0,className:"editor-post-switch-to-draft",onClick:()=>{l||t(!0)},"aria-disabled":l,variant:"secondary",style:{flexGrow:"1",justifyContent:"center"},children:(0,eg.__)("Switch to draft")}),(0,fm.jsx)(tP.__experimentalConfirmDialog,{isOpen:e,onConfirm:d,onCancel:()=>t(!1),confirmButtonText:u,children:c})]})}var dK=i(O(),1),e0=i(E(),1);var j3=i(x(),1);function oP(){let{syncStatus:e,postType:t}=(0,dK.useSelect)(r=>{let{getEditedPostAttribute:o}=r(_);return{syncStatus:o("meta")?.wp_pattern_sync_status==="unsynced"?"unsynced":o("wp_pattern_sync_status"),postType:o("type")}});return t!=="wp_block"?null:(0,j3.jsx)(xt,{label:(0,e0.__)("Sync status"),children:(0,j3.jsx)("div",{className:"editor-post-sync-status__value",children:e==="unsynced"?(0,e0._x)("Not synced","pattern (singular)"):(0,e0._x)("Synced","pattern (singular)")})})}var fK=i(N(),1),mK=i(O(),1),pK=i(W(),1);var z3=i(x(),1),vxe=e=>e;function yxe({taxonomyWrapper:e=vxe}){let{postType:t,taxonomies:r}=(0,mK.useSelect)(n=>({postType:n(_).getCurrentPostType(),taxonomies:n(pK.store).getEntityRecords("root","taxonomy",{per_page:-1})}),[]);return(r??[]).filter(n=>n.types.includes(t)&&n.visibility?.show_ui).map(n=>{let s=n.hierarchical?OC:kC;return(0,z3.jsx)(fK.Fragment,{children:e((0,z3.jsx)(s,{slug:n.slug}),n)},`taxonomy-${n.slug}`)})}var tg=yxe;var hK=i(O(),1),gK=i(W(),1);function nP({children:e}){return(0,hK.useSelect)(r=>{let o=r(_).getCurrentPostType();return r(gK.store).getEntityRecords("root","taxonomy",{per_page:-1})?.some(s=>s.types.includes(o))},[])?e:null}var vK=i(R(),1),sP=i(O(),1);var t0=i(x(),1);function bxe({taxonomy:e,children:t}){let r=e?.slug,o=r?`taxonomy-panel-${r}`:"",{isEnabled:n,isOpened:s}=(0,sP.useSelect)(c=>{let{isEditorPanelEnabled:u,isEditorPanelOpened:d}=c(_);return{isEnabled:r?u(o):!1,isOpened:r?d(o):!1}},[o,r]),{toggleEditorPanelOpened:a}=(0,sP.useDispatch)(_);if(!n)return null;let l=e?.labels?.menu_name;return l?(0,t0.jsx)(vK.PanelBody,{title:l,opened:s,onToggle:()=>a(o),children:t}):null}function iP(){return(0,t0.jsx)(nP,{children:(0,t0.jsx)(tg,{taxonomyWrapper:(e,t)=>(0,t0.jsx)(bxe,{taxonomy:t,children:e})})})}var BK=i(G3(),1),W3=i(E(),1),Y3=i(W(),1),DK=i(N(),1),LK=i(Xe(),1),uP=i(O(),1),MK=i(pe(),1),VK=i(R(),1);var mm=i(x(),1);function o0(){let e=(0,MK.useInstanceId)(o0),{content:t,blocks:r,type:o,id:n}=(0,uP.useSelect)(l=>{let{getEditedEntityRecord:c}=l(Y3.store),{getCurrentPostType:u,getCurrentPostId:d}=l(_),f=u(),m=d(),h=c("postType",f,m);return{content:h?.content,blocks:h?.blocks,type:f,id:m}},[]),{editEntityRecord:s}=(0,uP.useDispatch)(Y3.store),a=(0,DK.useMemo)(()=>t instanceof Function?t({blocks:r}):r?(0,LK.__unstableSerializeAndClean)(r):t,[t,r]);return(0,mm.jsxs)(mm.Fragment,{children:[(0,mm.jsx)(VK.VisuallyHidden,{as:"label",htmlFor:`post-content-${e}`,children:(0,W3.__)("Type text or HTML")}),(0,mm.jsx)(BK.default,{autoComplete:"off",dir:"auto",value:a,onChange:l=>{s("postType",o,n,{content:l.target.value,blocks:void 0,selection:void 0})},className:"editor-post-text-editor",id:`post-content-${e}`,placeholder:(0,W3.__)("Start writing with text or HTML")})]})}var zK=i(E(),1),og=i(N(),1),UK=i(vt(),1),vP=i(O(),1),q3=i($(),1),HK=i(yo(),1),GK=i(Xe(),1),ng=i(Pb(),1),WK=i(pe(),1),Z3=i(fh(),1);var dP="wp-block wp-block-post-title block-editor-block-list__block editor-post-title editor-post-title__input rich-text",fP=/[\r\n]+/g;var rg=i(N(),1),jK=i(O(),1);function mP(e){let t=(0,rg.useRef)(),{isCleanNewPost:r}=(0,jK.useSelect)(o=>{let{isCleanNewPost:n}=o(_);return{isCleanNewPost:n()}},[]);return(0,rg.useImperativeHandle)(e,()=>({focus:()=>{t?.current?.focus()}})),(0,rg.useEffect)(()=>{if(!t.current)return;let{defaultView:o}=t.current.ownerDocument,{name:n,parent:s}=o,a=n==="editor-canvas"?s.document:o.document,{activeElement:l,body:c}=a;r&&(!l||c===l)&&t.current.focus()},[r]),{ref:t}}var pP=i(O(),1);function hP(){let{editPost:e}=(0,pP.useDispatch)(_),{title:t}=(0,pP.useSelect)(o=>{let{getEditedPostAttribute:n}=o(_);return{title:n("title")}},[]);function r(o){e({title:o})}return{title:t,setTitle:r}}var gP=i(x(),1),{useRichText:Rxe}=D(ng.privateApis),Oxe=(0,og.forwardRef)((e,t)=>{let{placeholder:r,isEditingContentOnlySection:o,isPreview:n}=(0,vP.useSelect)(M=>{let{getSettings:k,getEditedContentOnlySection:I}=D(M(q3.store)),{titlePlaceholder:U,isPreviewMode:G}=k();return{placeholder:U,isEditingContentOnlySection:!!I(),isPreview:G}},[]),[s,a]=(0,og.useState)(!1),{ref:l}=mP(t),{title:c,setTitle:u}=hP(),[d,f]=(0,og.useState)({}),{clearSelectedBlock:m,insertBlocks:h,insertDefaultBlock:g}=(0,vP.useDispatch)(q3.store),y=(0,UK.decodeEntities)(r)||(0,zK.__)("Add title"),{value:v,onChange:b,ref:S}=Rxe({value:c,onChange(M){u(M.replace(fP," "))},placeholder:y,selectionStart:d.start,selectionEnd:d.end,onSelectionChange(M,k){f(I=>{let{start:U,end:G}=I;return U===M&&G===k?I:{start:M,end:k}})},__unstableDisableFormats:!1});function w(M){h(M,0)}function T(){a(!0),m()}function C(){a(!1),f({})}function A(){g(void 0,void 0,0)}function F(M){M.keyCode===HK.ENTER&&(M.preventDefault(),A())}function L(M){let k=M.clipboardData,I="",U="";try{I=k.getData("text/plain"),U=k.getData("text/html")}catch{return}let G=(0,GK.pasteHandler)({HTML:U,plainText:I});if(M.preventDefault(),!!G.length)if(typeof G!="string"){let[Y]=G;if(!c&&(Y.name==="core/heading"||Y.name==="core/paragraph")){let Z=(0,Z3.__unstableStripHTML)(Y.attributes.content);u(Z),w(G.slice(1))}else w(G)}else{let Y=(0,Z3.__unstableStripHTML)(G);b((0,ng.insert)(v,(0,ng.create)({html:Y})))}}let j=re(dP,{"is-selected":s}),z=o?{opacity:.2}:void 0;return(0,gP.jsx)("h1",{ref:(0,WK.useMergeRefs)([S,l]),contentEditable:!o&&!n,className:j,"aria-label":y,role:"textbox","aria-multiline":"true",onFocus:T,onBlur:C,onKeyDown:F,onPaste:L,style:z})}),yP=(0,og.forwardRef)((e,t)=>(0,gP.jsx)(er,{supportKeys:"title",children:(0,gP.jsx)(Oxe,{ref:t})}));var YK=i(R(),1),qK=i(E(),1),ZK=i(vt(),1),KK=i(O(),1),XK=i($(),1),bP=i(N(),1);var QK=i(x(),1);function Ixe(e,t){let{placeholder:r}=(0,KK.useSelect)(h=>{let{getSettings:g}=h(XK.store),{titlePlaceholder:y}=g();return{placeholder:y}},[]),[o,n]=(0,bP.useState)(!1),{title:s,setTitle:a}=hP(),{ref:l}=mP(t);function c(h){a(h.replace(fP," "))}function u(){n(!0)}function d(){n(!1)}let f=re(dP,{"is-selected":o,"is-raw-text":!0}),m=(0,ZK.decodeEntities)(r)||(0,qK.__)("Add title");return(0,QK.jsx)(YK.TextareaControl,{ref:l,value:s,onChange:c,onFocus:u,onBlur:d,label:r,className:f,placeholder:m,hideLabelFromVision:!0,autoComplete:"off",dir:"auto",rows:1})}var SP=(0,bP.forwardRef)(Ixe);var sg=i(E(),1),wP=i(R(),1),ig=i(O(),1),eX=i(N(),1);var JK=i(O(),1),$K=i(W(),1);function _P({children:e}){let{canTrashPost:t}=(0,JK.useSelect)(r=>{let{isEditedPostNew:o,getCurrentPostId:n,getCurrentPostType:s}=r(_),{canUser:a}=r($K.store),l=s(),c=n(),u=o(),d=c?a("delete",{kind:"postType",name:l,id:c}):!1;return{canTrashPost:(!u||c)&&d&&!DN.includes(l)}},[]);return t?e:null}var n0=i(x(),1);function xP({onActionPerformed:e}){let t=(0,ig.useRegistry)(),{isNew:r,isDeleting:o,postId:n,title:s}=(0,ig.useSelect)(d=>{let f=d(_);return{isNew:f.isEditedPostNew(),isDeleting:f.isDeletingPost(),postId:f.getCurrentPostId(),title:f.getCurrentPostAttribute("title")}},[]),{trashPost:a}=(0,ig.useDispatch)(_),[l,c]=(0,eX.useState)(!1);if(r||!n)return null;let u=async()=>{c(!1),await a();let d=await t.resolveSelect(_).getCurrentPost();e?.("move-to-trash",[d])};return(0,n0.jsxs)(_P,{children:[(0,n0.jsx)(wP.Button,{__next40pxDefaultSize:!0,className:"editor-post-trash",isDestructive:!0,variant:"secondary",isBusy:o,"aria-disabled":o,onClick:o?void 0:()=>c(!0),children:(0,sg.__)("Move to trash")}),(0,n0.jsx)(wP.__experimentalConfirmDialog,{isOpen:l,onConfirm:u,onCancel:()=>c(!1),confirmButtonText:(0,sg.__)("Move to trash"),size:"small",children:(0,sg.sprintf)((0,sg.__)('Are you sure you want to move "%s" to the trash?'),s)})]})}var s0=i(O(),1),i0=i(zr(),1),TP=i(N(),1),tX=i($(),1),pm=i(E(),1),ls=i(R(),1),rX=i(ct(),1);var oX=i(W(),1),CP=i(pe(),1);var hr=i(x(),1);function a0({onClose:e}){let{isEditable:t,postSlug:r,postLink:o,permalinkPrefix:n,permalinkSuffix:s,permalink:a}=(0,s0.useSelect)(h=>{let g=h(_).getCurrentPost(),y=h(_).getCurrentPostType(),v=h(oX.store).getPostType(y),b=h(_).getPermalinkParts(),S=g?._links?.["wp:action-publish"]??!1;return{isEditable:h(_).isPermalinkEditable()&&S,postSlug:(0,i0.safeDecodeURIComponent)(h(_).getEditedPostSlug()),viewPostLabel:v?.labels.view_item,postLink:g.link,permalinkPrefix:b?.prefix,permalinkSuffix:b?.suffix,permalink:(0,i0.safeDecodeURIComponent)(h(_).getPermalink())}},[]),{editPost:l}=(0,s0.useDispatch)(_),{createNotice:c}=(0,s0.useDispatch)(rX.store),[u,d]=(0,TP.useState)(!1),f=(0,CP.useCopyToClipboard)(a,()=>{c("info",(0,pm.__)("Copied Permalink to clipboard."),{isDismissible:!0,type:"snackbar"})}),m="editor-post-url__slug-description-"+(0,CP.useInstanceId)(a0);return(0,hr.jsxs)("div",{className:"editor-post-url",children:[(0,hr.jsx)(tX.__experimentalInspectorPopoverHeader,{title:(0,pm.__)("Slug"),onClose:e}),(0,hr.jsxs)(ls.__experimentalVStack,{spacing:3,children:[t&&(0,hr.jsx)("p",{className:"editor-post-url__intro",children:(0,TP.createInterpolateElement)((0,pm.__)("<span>Customize the last part of the Permalink.</span> <a>Learn more.</a>"),{span:(0,hr.jsx)("span",{id:m}),a:(0,hr.jsx)(ls.ExternalLink,{href:(0,pm.__)("https://wordpress.org/documentation/article/page-post-settings-sidebar/#permalink")})})}),(0,hr.jsxs)("div",{children:[t&&(0,hr.jsxs)(hr.Fragment,{children:[(0,hr.jsx)(ls.__experimentalInputControl,{__next40pxDefaultSize:!0,prefix:(0,hr.jsx)(ls.__experimentalInputControlPrefixWrapper,{children:"/"}),suffix:(0,hr.jsx)(ls.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,hr.jsx)(ls.Button,{icon:yv,ref:f,size:"small",label:"Copy"})}),label:(0,pm.__)("Slug"),hideLabelFromVision:!0,value:u?"":r,autoComplete:"off",spellCheck:"false",type:"text",className:"editor-post-url__input",onChange:h=>{if(l({slug:h}),!h){u||d(!0);return}u&&d(!1)},onBlur:h=>{l({slug:(0,i0.cleanForSlug)(h.target.value)}),u&&d(!1)},"aria-describedby":m}),(0,hr.jsxs)("p",{className:"editor-post-url__permalink",children:[(0,hr.jsx)("span",{className:"editor-post-url__permalink-visual-label",children:(0,pm.__)("Permalink:")}),(0,hr.jsxs)(ls.ExternalLink,{className:"editor-post-url__link",href:o,target:"_blank",children:[(0,hr.jsx)("span",{className:"editor-post-url__link-prefix",children:n}),(0,hr.jsx)("span",{className:"editor-post-url__link-slug",children:r}),(0,hr.jsx)("span",{className:"editor-post-url__link-suffix",children:s})]})]})]}),!t&&(0,hr.jsx)(ls.ExternalLink,{className:"editor-post-url__link",href:o,target:"_blank",children:o})]})]})]})}var nX=i(O(),1),sX=i(W(),1);function PP({children:e}){return(0,nX.useSelect)(r=>{let o=r(_).getCurrentPostType();return!(!r(sX.store).getPostType(o)?.viewable||!r(_).getCurrentPost().link||!r(_).getPermalinkParts())},[])?e:null}var iX=i(O(),1),kP=i(zr(),1);function aX(){return K3()}function K3(){let e=(0,iX.useSelect)(t=>t(_).getPermalink(),[]);return(0,kP.filterURLForDisplay)((0,kP.safeDecodeURIComponent)(e))}var EP=i(N(),1),AP=i(O(),1),lg=i(R(),1),ag=i(E(),1),lX=i(zr(),1),cX=i(W(),1);var Ms=i(x(),1);function RP(){let{isFrontPage:e}=(0,AP.useSelect)(s=>{let{getCurrentPostId:a}=s(_),{getEditedEntityRecord:l,canUser:c}=s(cX.store),u=c("read",{kind:"root",name:"site"})?l("root","site"):void 0,d=a();return{isFrontPage:u?.page_on_front===d}},[]),[t,r]=(0,EP.useState)(null),o=(0,EP.useMemo)(()=>({anchor:t,placement:"left-start",offset:36,shift:!0}),[t]),n=e?(0,ag.__)("Link"):(0,ag.__)("Slug");return(0,Ms.jsx)(PP,{children:(0,Ms.jsxs)(xt,{label:n,ref:r,children:[!e&&(0,Ms.jsx)(lg.Dropdown,{popoverProps:o,className:"editor-post-url__panel-dropdown",contentClassName:"editor-post-url__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:s,onToggle:a})=>(0,Ms.jsx)(Fxe,{isOpen:s,onClick:a}),renderContent:({onClose:s})=>(0,Ms.jsx)(a0,{onClose:s})}),e&&(0,Ms.jsx)(Nxe,{})]})})}function Fxe({isOpen:e,onClick:t}){let{slug:r}=(0,AP.useSelect)(n=>({slug:n(_).getEditedPostSlug()}),[]),o=(0,lX.safeDecodeURIComponent)(r);return(0,Ms.jsx)(lg.Button,{size:"compact",className:"editor-post-url__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,ag.sprintf)((0,ag.__)("Change link: %s"),o),onClick:t,children:(0,Ms.jsx)(Ms.Fragment,{children:o})})}function Nxe(){let{postLink:e}=(0,AP.useSelect)(t=>{let{getCurrentPost:r}=t(_);return{postLink:r()?.link}},[]);return(0,Ms.jsx)(lg.ExternalLink,{className:"editor-post-url__front-page-link",href:e,target:"_blank",children:e})}var uX=i(O(),1);function dX({render:e}){let t=(0,uX.useSelect)(r=>r(_).getCurrentPost()._links?.["wp:action-publish"]??!1);return e({canEdit:t})}var TX=i(E(),1),FP=i(R(),1),CX=i(O(),1);var PX=i(N(),1),kX=i($(),1);var _c=i(E(),1),_X=i(O(),1),wX=i($(),1);var mX=i(O(),1),pX=i(E(),1),hX=i(l0(),1);var gX=i(x(),1);function cg(){let e=(0,mX.useSelect)(r=>r(_).getEditedPostAttribute("content"),[]),t=(0,pX._x)("words","Word count type. Do not translate!");return(0,gX.jsx)("span",{className:"word-count",children:(0,hX.count)(e,t)})}var vX=i(O(),1),rd=i(E(),1),yX=i(l0(),1),X3=i(N(),1);var OP=i(x(),1),Bxe=189;function ug(){let e=(0,vX.useSelect)(n=>n(_).getEditedPostAttribute("content"),[]),t=(0,rd._x)("words","Word count type. Do not translate!"),r=Math.round((0,yX.count)(e,t)/Bxe),o=r===0?(0,X3.createInterpolateElement)((0,rd.__)("<span>< 1</span> minute"),{span:(0,OP.jsx)("span",{})}):(0,X3.createInterpolateElement)((0,rd.sprintf)((0,rd._n)("<span>%s</span> minute","<span>%s</span> minutes",r),r),{span:(0,OP.jsx)("span",{})});return(0,OP.jsx)("span",{className:"time-to-read",children:o})}var bX=i(O(),1),SX=i(l0(),1);function dg(){let e=(0,bX.useSelect)(t=>t(_).getEditedPostAttribute("content"),[]);return(0,SX.count)(e,"characters_including_spaces")}var Kt=i(x(),1);function Dxe({hasOutlineItemsDisabled:e,onRequestClose:t}){let{headingCount:r,paragraphCount:o,numberOfBlocks:n}=(0,_X.useSelect)(s=>{let{getGlobalBlockCount:a}=s(wX.store);return{headingCount:a("core/heading"),paragraphCount:a("core/paragraph"),numberOfBlocks:a()}},[]);return(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsx)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":(0,_c.__)("Document Statistics"),tabIndex:"0",children:(0,Kt.jsxs)("ul",{role:"list",className:"table-of-contents__counts",children:[(0,Kt.jsxs)("li",{className:"table-of-contents__count",children:[(0,_c.__)("Words"),(0,Kt.jsx)(cg,{})]}),(0,Kt.jsxs)("li",{className:"table-of-contents__count",children:[(0,_c.__)("Characters"),(0,Kt.jsx)("span",{className:"table-of-contents__number",children:(0,Kt.jsx)(dg,{})})]}),(0,Kt.jsxs)("li",{className:"table-of-contents__count",children:[(0,_c.__)("Time to read"),(0,Kt.jsx)(ug,{})]}),(0,Kt.jsxs)("li",{className:"table-of-contents__count",children:[(0,_c.__)("Headings"),(0,Kt.jsx)("span",{className:"table-of-contents__number",children:r})]}),(0,Kt.jsxs)("li",{className:"table-of-contents__count",children:[(0,_c.__)("Paragraphs"),(0,Kt.jsx)("span",{className:"table-of-contents__number",children:o})]}),(0,Kt.jsxs)("li",{className:"table-of-contents__count",children:[(0,_c.__)("Blocks"),(0,Kt.jsx)("span",{className:"table-of-contents__number",children:n})]})]})}),r>0&&(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsx)("hr",{}),(0,Kt.jsx)("h2",{className:"table-of-contents__title",children:(0,_c.__)("Document Outline")}),(0,Kt.jsx)(bh,{onSelect:t,hasOutlineItemsDisabled:e})]})]})}var xX=Dxe;var IP=i(x(),1);function Lxe({hasOutlineItemsDisabled:e,repositionDropdown:t,...r},o){let n=(0,CX.useSelect)(s=>!!s(kX.store).getBlockCount(),[]);return(0,IP.jsx)(FP.Dropdown,{popoverProps:{placement:t?"right":"bottom"},className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:({isOpen:s,onToggle:a})=>(0,IP.jsx)(FP.Button,{__next40pxDefaultSize:!0,...r,ref:o,onClick:n?a:void 0,icon:JA,"aria-expanded":s,"aria-haspopup":"true",label:(0,TX.__)("Details"),tooltipPosition:"bottom","aria-disabled":!n}),renderContent:({onClose:s})=>(0,IP.jsx)(xX,{onRequestClose:s,hasOutlineItemsDisabled:e})})}var EX=(0,PX.forwardRef)(Lxe);var AX=i(E(),1),RX=i(N(),1),OX=i(O(),1),IX=i(W(),1);function FX(){let{__experimentalGetDirtyEntityRecords:e}=(0,OX.useSelect)(IX.store);return(0,RX.useEffect)(()=>{let t=r=>{if(e().length>0)return r.returnValue=(0,AX.__)("You have unsaved changes. If you proceed, they will be lost."),r.returnValue};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}},[e]),null}var Q3=i(Ws(),1),DX=i(N(),1),ee=i($(),1),LX=i(BX(),1),MX=i(x(),1);function Ye(e,t,r=[]){let o=(0,DX.forwardRef)((n,s)=>((0,Q3.default)("wp.editor."+e,{since:"5.3",alternative:"wp.blockEditor."+e,version:"6.2"}),(0,MX.jsx)(t,{ref:s,...n})));return r.forEach(n=>{o[n]=Ye(e+"."+n,t[n])}),o}function qa(e,t){return(...r)=>((0,Q3.default)("wp.editor."+e,{since:"5.3",alternative:"wp.blockEditor."+e,version:"6.2"}),t(...r))}var VX=Ye("RichText",ee.RichText,["Content"]);VX.isEmpty=qa("RichText.isEmpty",ee.RichText.isEmpty);var Mxe=Ye("Autocomplete",ee.Autocomplete),Vxe=Ye("AlignmentToolbar",ee.AlignmentToolbar),jxe=Ye("BlockAlignmentToolbar",ee.BlockAlignmentToolbar),zxe=Ye("BlockControls",ee.BlockControls,["Slot"]),Uxe=Ye("BlockEdit",ee.BlockEdit),Hxe=Ye("BlockEditorKeyboardShortcuts",ee.BlockEditorKeyboardShortcuts),Gxe=Ye("BlockFormatControls",ee.BlockFormatControls,["Slot"]),Wxe=Ye("BlockIcon",ee.BlockIcon),Yxe=Ye("BlockInspector",ee.BlockInspector),qxe=Ye("BlockList",ee.BlockList),Zxe=Ye("BlockMover",ee.BlockMover),Kxe=Ye("BlockNavigationDropdown",ee.BlockNavigationDropdown),Xxe=Ye("BlockSelectionClearer",ee.BlockSelectionClearer),Qxe=Ye("BlockSettingsMenu",ee.BlockSettingsMenu),Jxe=Ye("BlockTitle",ee.BlockTitle),$xe=Ye("BlockToolbar",ee.BlockToolbar),eTe=Ye("ColorPalette",ee.ColorPalette),tTe=Ye("ContrastChecker",ee.ContrastChecker),rTe=Ye("CopyHandler",ee.CopyHandler),oTe=Ye("DefaultBlockAppender",ee.DefaultBlockAppender),nTe=Ye("FontSizePicker",ee.FontSizePicker),sTe=Ye("Inserter",ee.Inserter),iTe=Ye("InnerBlocks",ee.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),aTe=Ye("InspectorAdvancedControls",ee.InspectorAdvancedControls,["Slot"]),lTe=Ye("InspectorControls",ee.InspectorControls,["Slot"]),cTe=Ye("PanelColorSettings",ee.PanelColorSettings),uTe=Ye("PlainText",ee.PlainText),dTe=Ye("RichTextShortcut",ee.RichTextShortcut),fTe=Ye("RichTextToolbarButton",ee.RichTextToolbarButton),mTe=Ye("__unstableRichTextInputEvent",ee.__unstableRichTextInputEvent),pTe=Ye("MediaPlaceholder",ee.MediaPlaceholder),hTe=Ye("MediaUpload",ee.MediaUpload),gTe=Ye("MediaUploadCheck",ee.MediaUploadCheck),vTe=Ye("MultiSelectScrollIntoView",ee.MultiSelectScrollIntoView),yTe=Ye("NavigableToolbar",ee.NavigableToolbar),bTe=Ye("ObserveTyping",ee.ObserveTyping),STe=Ye("SkipToSelectedBlock",ee.SkipToSelectedBlock),_Te=Ye("URLInput",ee.URLInput),wTe=Ye("URLInputButton",ee.URLInputButton),xTe=Ye("URLPopover",ee.URLPopover),TTe=Ye("Warning",ee.Warning),CTe=Ye("WritingFlow",ee.WritingFlow),PTe=qa("createCustomColorsHOC",ee.createCustomColorsHOC),kTe=qa("getColorClassName",ee.getColorClassName),ETe=qa("getColorObjectByAttributeValues",ee.getColorObjectByAttributeValues),ATe=qa("getColorObjectByColorValue",ee.getColorObjectByColorValue),RTe=qa("getFontSize",ee.getFontSize),OTe=qa("getFontSizeClass",ee.getFontSizeClass),ITe=qa("withColorContext",ee.withColorContext),FTe=qa("withColors",ee.withColors),NTe=qa("withFontSizes",ee.withFontSizes);var BTe=vf,DTe=vf;function LTe(e=[]){return e.push({...Rx}),e}(0,jX.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",LTe);var zX=i(N(),1),J3=i(fo(),1),UX=i(Ws(),1),NP=i(Hd(),1);var fg=i(x(),1),{MediaUploadModal:MTe}=D(NP.privateApis),VTe=class extends zX.Component{constructor(e){super(e),this.state={isOpen:!1},this.openModal=this.openModal.bind(this),this.closeModal=this.closeModal.bind(this)}openModal(){this.setState({isOpen:!0})}closeModal(){this.setState({isOpen:!1}),this.props.onClose?.()}render(){let{allowedTypes:e,multiple:t,value:r,onSelect:o,title:n,modalClass:s,render:a}=this.props,{isOpen:l}=this.state;return(0,fg.jsxs)(fg.Fragment,{children:[a({open:this.openModal}),(0,fg.jsx)(MTe,{allowedTypes:e,multiple:t,value:r,onSelect:c=>{o(c),this.closeModal()},onClose:this.closeModal,title:n,isOpen:l,modalClass:s})]})}};window.__experimentalDataViewsMediaModal?(0,J3.addFilter)("editor.MediaUpload","core/editor/components/media-upload",()=>((0,UX.default)("Extending MediaUpload as a class component",{since:"7.0",version:"7.2",hint:"MediaUpload will become a function component in WordPress 7.2 Please update any custom implementations to use function components instead."}),VTe)):(0,J3.addFilter)("editor.MediaUpload","core/editor/components/media-upload",()=>NP.MediaUpload);var GX=i(fo(),1),WX=i(Li(),1),YX=i(pe(),1),BP=i($(),1),$3=i(O(),1),qX=i(Xe(),1);var ia=i(x(),1),{PatternOverridesControls:jTe,ResetOverridesControl:zTe,PATTERN_TYPES:UTe,PATTERN_SYNC_TYPES:HX}=D(WX.privateApis),HTe=(0,YX.createHigherOrderComponent)(e=>t=>{let r=(0,$3.useSelect)(o=>{let{__experimentalBlockBindingsSupportedAttributes:n}=o(BP.store).getSettings();return!!n?.[t.name]},[t.name]);return(0,ia.jsxs)(ia.Fragment,{children:[(0,ia.jsx)(e,{...t},"edit"),t.isSelected&&r&&(0,ia.jsx)(GTe,{...t})]})},"withPatternOverrideControls");function GTe(e){let t=(0,BP.useBlockEditingMode)(),{hasPatternOverridesSource:r,isEditingSyncedPattern:o}=(0,$3.useSelect)(c=>{let{getCurrentPostType:u,getEditedPostAttribute:d}=c(_);return{hasPatternOverridesSource:!!(0,qX.getBlockBindingsSource)("core/pattern-overrides"),isEditingSyncedPattern:u()===UTe.user&&d("meta")?.wp_pattern_sync_status!==HX.unsynced&&d("wp_pattern_sync_status")!==HX.unsynced}},[]),n=e.attributes.metadata?.bindings,s=!!n&&Object.values(n).some(c=>c.source==="core/pattern-overrides"),a=o&&t==="default",l=!o&&!!e.attributes.metadata?.name&&t!=="disabled"&&s;return r?(0,ia.jsxs)(ia.Fragment,{children:[a&&(0,ia.jsx)(jTe,{...e}),l&&(0,ia.jsx)(zTe,{...e})]}):null}(0,GX.addFilter)("editor.BlockEdit","core/editor/with-pattern-override-controls",HTe);var ZX=i(fo(),1),KX=i(pe(),1),XX=i(N(),1),e4=i(E(),1),mg=i($(),1),DP=i(R(),1),QX=i(O(),1),Za=i(x(),1),WTe=["core/navigation-link","core/navigation-submenu"];function YTe({attributes:e}){let{kind:t,id:r,type:o}=e,n=(0,mg.useBlockEditingMode)(),s=(0,QX.useSelect)(l=>l(mg.store).getSettings().onNavigateToEntityRecord,[]),a=(0,XX.useCallback)(()=>{t==="post-type"&&o==="page"&&r&&s&&s({postId:r,postType:o})},[t,r,o,s]);return t!=="post-type"||o!=="page"||!r||!s||n!=="contentOnly"?null:(0,Za.jsx)(mg.__unstableBlockToolbarLastItem,{children:(0,Za.jsx)(DP.ToolbarGroup,{children:(0,Za.jsx)(DP.ToolbarButton,{name:"view",title:(0,e4.__)("View"),onClick:a,children:(0,e4.__)("View")})})})}var qTe=(0,KX.createHigherOrderComponent)(e=>t=>{let r=WTe.includes(t.name);return(0,Za.jsxs)(Za.Fragment,{children:[(0,Za.jsx)(e,{...t},"edit"),t.isSelected&&r&&(0,Za.jsx)(YTe,{...t})]})},"withNavigationViewButton");(0,ZX.addFilter)("editor.BlockEdit","core/editor/with-navigation-view-button",qTe);var JX=i(fo(),1),$X=i(pe(),1),eQ=i(N(),1),t4=i(E(),1),pg=i($(),1),LP=i(R(),1),od=i(O(),1);var Ka=i(x(),1),ZTe="core/navigation",KTe="core/template-part",XTe="edit-post/block";function QTe({clientId:e}){let t=(0,od.useRegistry)(),{selectBlock:r,flashBlock:o}=(0,od.useDispatch)(pg.store),{requestInspectorTab:n}=D((0,od.useDispatch)(pg.store)),{enableComplementaryArea:s}=(0,od.useDispatch)(Te),{hasNavigationBlocks:a,firstNavigationBlockId:l,isNavigationEditable:c}=(0,od.useSelect)(d=>{let{getClientIdsOfDescendants:f,getBlockName:m,getBlockEditingMode:h}=d(pg.store),y=f(e).filter(S=>m(S)===ZTe),v=y.length>0,b=v?y[0]:null;return{hasNavigationBlocks:v,firstNavigationBlockId:b,isNavigationEditable:h(b)!=="disabled"}},[e]),u=(0,eQ.useCallback)(()=>{l&&t.batch(()=>{r(l),o(l,500),s("core",XTe),n("list",{openPanel:l})})},[l,t,r,o,s,n]);return!a||!c?null:(0,Ka.jsx)(pg.__unstableBlockToolbarLastItem,{children:(0,Ka.jsx)(LP.ToolbarGroup,{children:(0,Ka.jsx)(LP.ToolbarButton,{label:(0,t4.__)("Edit navigation"),onClick:u,children:(0,t4.__)("Edit navigation")})})})}var JTe=(0,$X.createHigherOrderComponent)(e=>t=>{let r=t.name===KTe;return(0,Ka.jsxs)(Ka.Fragment,{children:[(0,Ka.jsx)(e,{...t},"edit"),t.isSelected&&r&&(0,Ka.jsx)(QTe,{clientId:t.clientId})]})},"withTemplatePartNavigationEditButton");(0,JX.addFilter)("editor.BlockEdit","core/editor/with-template-part-navigation-edit-button",JTe);var oQ=i(fo(),1),nQ=i(pe(),1),nd=i($(),1),c0=i(R(),1),wc=i(E(),1),xc=i(Xe(),1),VP=i(N(),1),hg=i(O(),1),sQ=i(ct(),1),iQ=i(W(),1);function r4(e,t,r){return!e||typeof e!="object"||t.reduce((o,n,s)=>(o[n]===void 0&&(Number.isInteger(t[s+1])?o[n]=[]:o[n]={}),s===t.length-1&&(o[n]=r),o[n]),e),e}var vi=i(x(),1),{cleanEmptyObject:$Te}=D(nd.privateApis),tQ={...xc.__EXPERIMENTAL_STYLE_PROPERTY,blockGap:{value:["spacing","blockGap"]}},eCe={"border.color":"color","color.background":"color","color.text":"color","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.caption.color.text":"color","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",blockGap:"spacing","typography.fontSize":"font-size","typography.fontFamily":"font-family"},tCe={"border.color":"borderColor","color.background":"backgroundColor","color.text":"textColor","color.gradient":"gradient","typography.fontSize":"fontSize","typography.fontFamily":"fontFamily"},rCe=["border","color","spacing","typography"],rQ=(e,t)=>{let r=e;return t.forEach(o=>{r=r?.[o]}),r},oCe=["borderColor","borderWidth","borderStyle"],aQ=["top","right","bottom","left"];function nCe(e,t,r){if(!e&&!t)return[];let o=[...MP("top",e,r),...MP("right",e,r),...MP("bottom",e,r),...MP("left",e,r)],{color:n,style:s,width:a}=e||{};return(t||n||a)&&!s&&aQ.forEach(c=>{r?.[c]?.style||o.push({path:["border",c,"style"],value:"solid"})}),o}function MP(e,t,r){if(!t?.[e]||r?.[e]?.style)return[];let{color:o,style:n,width:s}=t[e];return!(o||s)||n?[]:[{path:["border",e,"style"],value:"solid"}]}function sCe(e,t,r){let o=(0,hg.useSelect)(s=>D(s(xc.store)).getSupportedStyles(e),[e]),n=r?.styles?.blocks?.[e];return(0,VP.useMemo)(()=>{let s=o.flatMap(a=>{if(!tQ[a])return[];let{value:l}=tQ[a],c=l.join("."),u=t[tCe[c]],d=u?`var:preset|${eCe[c]}|${u}`:rQ(t.style,l);if(a==="linkColor"){let f=d?[{path:l,value:d}]:[],m=["elements","link",":hover","color","text"],h=rQ(t.style,m);return h&&f.push({path:m,value:h}),f}if(oCe.includes(a)&&d){let f=[{path:l,value:d}];return aQ.forEach(m=>{let h=[...l];h.splice(-1,0,m),f.push({path:h,value:d})}),f}return d?[{path:l,value:d}]:[]});return nCe(t.style?.border,t.borderColor,n?.border).forEach(a=>s.push(a)),s},[o,t,n])}function iCe({name:e,attributes:t,setAttributes:r}){let{user:o,setUser:n}=xo(),s=sCe(e,t,o),{__unstableMarkNextChangeAsNotPersistent:a}=(0,hg.useDispatch)(nd.store),{createSuccessNotice:l}=(0,hg.useDispatch)(sQ.store),c=(0,VP.useCallback)(()=>{if(s.length!==0&&s.length>0){let{style:u}=t,d=structuredClone(u),f=structuredClone(o);for(let{path:h,value:g}of s)r4(d,h,void 0),r4(f,["styles","blocks",e,...h],g);let m={borderColor:void 0,backgroundColor:void 0,textColor:void 0,gradient:void 0,fontSize:void 0,fontFamily:void 0,style:$Te(d)};a(),r(m),n(f,{undoIgnore:!0}),l((0,wc.sprintf)((0,wc.__)("%s styles applied."),(0,xc.getBlockType)(e).title),{type:"snackbar",actions:[{label:(0,wc.__)("Undo"),onClick(){a(),r(t),n(o,{undoIgnore:!0})}}]})}},[a,t,s,l,e,r,n,o]);return(0,vi.jsxs)(c0.BaseControl,{className:"editor-push-changes-to-global-styles-control",help:(0,wc.sprintf)((0,wc.__)("Apply this block\u2019s typography, spacing, dimensions, and color styles to all %s blocks."),(0,xc.getBlockType)(e).title),children:[(0,vi.jsx)(c0.BaseControl.VisualLabel,{children:(0,wc.__)("Styles")}),(0,vi.jsx)(c0.Button,{__next40pxDefaultSize:!0,variant:"secondary",accessibleWhenDisabled:!0,disabled:s.length===0,onClick:c,children:(0,wc.__)("Apply globally")})]})}function aCe(e){let t=(0,nd.useBlockEditingMode)(),r=(0,hg.useSelect)(s=>s(iQ.store).getCurrentTheme()?.is_block_theme,[]),o=rCe.some(s=>(0,xc.hasBlockSupport)(e.name,s));return t==="default"&&o&&r?(0,vi.jsx)(nd.InspectorAdvancedControls,{children:(0,vi.jsx)(iCe,{...e})}):null}var lCe=(0,nQ.createHigherOrderComponent)(e=>t=>(0,vi.jsxs)(vi.Fragment,{children:[(0,vi.jsx)(e,{...t},"edit"),t.isSelected&&(0,vi.jsx)(aCe,{...t})]}));(0,oQ.addFilter)("editor.BlockEdit","core/editor/push-changes-to-global-styles",lCe);var u0=i(R(),1),lQ=i(x(),1),o4="__experimentalMainDashboardButton",cQ=()=>{let e=(0,u0.__experimentalUseSlotFills)(o4);return!!(e&&e.length)},{Fill:cCe,Slot:uCe}=(0,u0.createSlotFill)(o4),uQ=cCe,dCe=()=>{let e=(0,u0.__experimentalUseSlotFills)(o4);return(0,lQ.jsx)(uCe,{bubblesVirtually:!0,fillProps:{length:e?e.length:0}})};uQ.Slot=dCe;var jP=uQ;var Kse=i(O(),1),Xse=i(W(),1),Qse=i(R(),1),Jse=i(E(),1);var Moe=i(O(),1),Ad=i(E(),1),Voe=i(dt(),1),lE=i($(),1),joe=i(pe(),1),$0=i(N(),1),zoe=i(vt(),1),Uoe=i(ct(),1);var OJ=i($(),1),IJ=i(O(),1),b0=i(pe(),1),FJ=i(dt(),1),NJ=i(N(),1);var gg=i($(),1),dQ=i(N(),1),zP=i(R(),1),n4=i(E(),1);var fQ=i(O(),1);var Tc=i(x(),1),{useHasBlockToolbar:fCe}=D(gg.privateApis);function mQ({isCollapsed:e,onToggle:t}){let{blockSelectionStart:r}=(0,fQ.useSelect)(s=>({blockSelectionStart:s(gg.store).getBlockSelectionStart()}),[]),o=fCe(),n=!!r;return(0,dQ.useEffect)(()=>{r&&t(!1)},[r,t]),o?(0,Tc.jsxs)(Tc.Fragment,{children:[(0,Tc.jsx)("div",{className:re("editor-collapsible-block-toolbar",{"is-collapsed":e||!n}),children:(0,Tc.jsx)(gg.BlockToolbar,{hideDragHandle:!0})}),(0,Tc.jsx)(zP.Popover.Slot,{name:"block-toolbar"}),(0,Tc.jsx)(zP.Button,{className:"editor-collapsible-block-toolbar__toggle",icon:e?_l:xl,onClick:()=>{t(!e)},label:e?(0,n4.__)("Show block tools"):(0,n4.__)("Hide block tools"),size:"compact"})]}):null}var pQ=i(pe(),1),UP=i(O(),1),hm=i(E(),1),hQ=i($(),1),vg=i(R(),1);var s4=i(N(),1),gQ=i(Es(),1),vQ=i(dt(),1);var aa=i(x(),1);function mCe({className:e,disableBlockTools:t=!1}){let{setIsInserterOpened:r,setIsListViewOpened:o}=(0,UP.useDispatch)(_),{isDistractionFree:n,isInserterOpened:s,isListViewOpen:a,listViewShortcut:l,inserterSidebarToggleRef:c,listViewToggleRef:u,showIconLabels:d}=(0,UP.useSelect)(S=>{let{get:w}=S(vQ.store),{isListViewOpened:T,getEditorMode:C,getInserterSidebarToggleRef:A,getListViewToggleRef:F}=D(S(_)),{getShortcutRepresentation:L}=S(gQ.store);return{isInserterOpened:S(_).isInserterOpened(),isListViewOpen:T(),listViewShortcut:L("core/editor/toggle-list-view"),inserterSidebarToggleRef:A(),listViewToggleRef:F(),showIconLabels:w("core","showIconLabels"),isDistractionFree:w("core","distractionFree"),isVisualMode:C()==="visual"}},[]),f=S=>{s&&S.preventDefault()},m=(0,pQ.useViewportMatch)("wide"),h=(0,hm.__)("Document tools"),g=(0,s4.useCallback)(()=>o(!a),[o,a]),y=(0,s4.useCallback)(()=>r(!s),[s,r]),v=(0,hm._x)("Block Inserter","Generic label for block inserter button"),b=s?(0,hm.__)("Close"):(0,hm.__)("Add");return(0,aa.jsx)(hQ.NavigableToolbar,{className:re("editor-document-tools","edit-post-header-toolbar",e),"aria-label":h,variant:"unstyled",children:(0,aa.jsxs)("div",{className:"editor-document-tools__left",children:[!n&&(0,aa.jsx)(vg.ToolbarButton,{ref:c,className:"editor-document-tools__inserter-toggle",variant:"primary",isPressed:s,onMouseDown:f,onClick:y,disabled:t,icon:wl,label:d?b:v,showTooltip:!d,"aria-expanded":s}),(m||!d)&&(0,aa.jsxs)(aa.Fragment,{children:[(0,aa.jsx)(vg.ToolbarItem,{as:oT,showTooltip:!d,variant:d?"tertiary":void 0,size:"compact"}),(0,aa.jsx)(vg.ToolbarItem,{as:eT,showTooltip:!d,variant:d?"tertiary":void 0,size:"compact"}),!n&&(0,aa.jsx)(vg.ToolbarButton,{className:"editor-document-tools__document-overview-toggle",icon:xv,disabled:t,isPressed:a,label:(0,hm.__)("Document Overview"),onClick:g,shortcut:l,showTooltip:!d,variant:d?"tertiary":void 0,"aria-expanded":a,ref:u})]})]})})}var yQ=mCe;var d0=i(R(),1);var sd=i(x(),1),i4={distractionFreeDisabled:{y:"-50px"},distractionFreeHover:{y:0},distractionFreeHidden:{y:"-50px"},visible:{y:0},hidden:{y:0}},pCe={distractionFreeDisabled:{x:"-100%"},distractionFreeHover:{x:0},distractionFreeHidden:{x:"-100%"},visible:{x:0},hidden:{x:0}};function HP({className:e,toolbar:t,center:r,settings:o}){let n=cQ();return(0,sd.jsxs)("div",{className:re("editor-header edit-post-header",e),children:[n&&(0,sd.jsx)(d0.__unstableMotion.div,{className:"editor-header__back-button",variants:pCe,transition:{type:"tween"},children:(0,sd.jsx)(jP.Slot,{})}),(0,sd.jsx)(d0.__unstableMotion.div,{variants:i4,className:"editor-header__toolbar",transition:{type:"tween"},children:t}),r&&(0,sd.jsx)(d0.__unstableMotion.div,{variants:i4,className:"editor-header__center",transition:{type:"tween"},children:r}),(0,sd.jsx)(d0.__unstableMotion.div,{variants:i4,transition:{type:"tween"},className:"editor-header__settings",children:o})]})}var gr=i(E(),1),yg=i(O(),1),c4=i(yo(),1);var yi=i(R(),1),gm=i(dt(),1);var bQ=i(R(),1),f0=i(O(),1),a4=i(E(),1),SQ=i(pe(),1),_Q=i(ct(),1),wQ=i(W(),1),xQ=i(Xe(),1);var TQ=i(x(),1);function CQ(){let{createNotice:e}=(0,f0.useDispatch)(_Q.store),{getCurrentPostId:t,getCurrentPostType:r}=(0,f0.useSelect)(_),{getEditedEntityRecord:o}=(0,f0.useSelect)(wQ.store);function n(){let l=o("postType",r(),t());if(!l)return"";if(typeof l.content=="function")return l.content(l);if(l.blocks)return(0,xQ.__unstableSerializeAndClean)(l.blocks);if(l.content)return l.content}function s(){e("info",(0,a4.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}let a=(0,SQ.useCopyToClipboard)(n,s);return(0,TQ.jsx)(bQ.MenuItem,{ref:a,children:(0,a4.__)("Copy all blocks")})}var m0=i(E(),1),GP=i(R(),1),WP=i(O(),1),PQ=i(Es(),1);var l4=i(x(),1),hCe=[{value:"visual",label:(0,m0.__)("Visual editor")},{value:"text",label:(0,m0.__)("Code editor")}];function gCe(){let{shortcut:e,isRichEditingEnabled:t,isCodeEditingEnabled:r,mode:o}=(0,WP.useSelect)(l=>({shortcut:l(PQ.store).getShortcutRepresentation("core/editor/toggle-mode"),isRichEditingEnabled:l(_).getEditorSettings().richEditingEnabled,isCodeEditingEnabled:l(_).getEditorSettings().codeEditingEnabled,mode:l(_).getEditorMode()}),[]),{switchEditorMode:n}=(0,WP.useDispatch)(_),s=o;!t&&o==="visual"&&(s="text"),!r&&o==="text"&&(s="visual");let a=hCe.map(l=>(!r&&l.value==="text"&&(l={...l,disabled:!0}),!t&&l.value==="visual"&&(l={...l,disabled:!0,info:(0,m0.__)("You can enable the visual editor in your profile settings.")}),l.value!==s&&!l.disabled?{...l,shortcut:e}:l));return(0,l4.jsx)(GP.MenuGroup,{label:(0,m0.__)("Editor"),children:(0,l4.jsx)(GP.MenuItemsChoice,{choices:a,value:s,onSelect:n})})}var kQ=gCe;var EQ=i(R(),1),AQ=i(x(),1),{Fill:RQ,Slot:vCe}=(0,EQ.createSlotFill)("ToolsMoreMenuGroup");RQ.Slot=({fillProps:e})=>(0,AQ.jsx)(vCe,{fillProps:e});var YP=RQ;var OQ=i(R(),1),IQ=i(N(),1),FQ=i(x(),1),{Fill:NQ,Slot:yCe}=(0,OQ.createSlotFill)(IQ.Platform.OS==="web"?Symbol("ViewMoreMenuGroup"):"ViewMoreMenuGroup");NQ.Slot=({fillProps:e})=>(0,FQ.jsx)(yCe,{fillProps:e});var qP=NQ;var vr=i(x(),1);function ZP({disabled:e=!1}){let{openModal:t}=(0,yg.useDispatch)(Te),{set:r}=(0,yg.useDispatch)(gm.store),{toggleDistractionFree:o}=(0,yg.useDispatch)(_),n=(0,yg.useSelect)(a=>a(gm.store).get("core","showIconLabels"),[]),s=()=>{r("core","distractionFree",!1)};return(0,vr.jsx)(vr.Fragment,{children:(0,vr.jsx)(yi.DropdownMenu,{icon:Ir,label:(0,gr.__)("Options"),popoverProps:{placement:"bottom-end",className:"more-menu-dropdown__content"},toggleProps:{showTooltip:!n,...n&&{variant:"tertiary"},tooltipPosition:"bottom",size:"compact",disabled:e},children:({onClose:a})=>(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsxs)(yi.MenuGroup,{label:(0,gr._x)("View","noun"),children:[(0,vr.jsx)(gm.PreferenceToggleMenuItem,{scope:"core",name:"fixedToolbar",onToggle:s,label:(0,gr.__)("Top toolbar"),info:(0,gr.__)("Access all block and document tools in a single place"),messageActivated:(0,gr.__)("Top toolbar activated."),messageDeactivated:(0,gr.__)("Top toolbar deactivated.")}),(0,vr.jsx)(gm.PreferenceToggleMenuItem,{scope:"core",name:"distractionFree",label:(0,gr.__)("Distraction free"),info:(0,gr.__)("Write with calmness"),handleToggling:!1,onToggle:()=>o({createNotice:!1}),messageActivated:(0,gr.__)("Distraction free mode activated."),messageDeactivated:(0,gr.__)("Distraction free mode deactivated."),shortcut:c4.displayShortcut.primaryShift("\\")}),(0,vr.jsx)(gm.PreferenceToggleMenuItem,{scope:"core",name:"focusMode",label:(0,gr.__)("Spotlight mode"),info:(0,gr.__)("Focus on one block at a time"),messageActivated:(0,gr.__)("Spotlight mode activated."),messageDeactivated:(0,gr.__)("Spotlight mode deactivated.")}),(0,vr.jsx)(qP.Slot,{fillProps:{onClose:a}})]}),(0,vr.jsx)(kQ,{}),(0,vr.jsx)(ti.Slot,{name:"core/plugin-more-menu",label:(0,gr.__)("Panels"),fillProps:{onClick:a}}),(0,vr.jsxs)(yi.MenuGroup,{label:(0,gr.__)("Tools"),children:[(0,vr.jsx)(yi.MenuItem,{onClick:()=>t("editor/keyboard-shortcut-help"),shortcut:c4.displayShortcut.access("h"),children:(0,gr.__)("Keyboard shortcuts")}),(0,vr.jsx)(CQ,{}),(0,vr.jsxs)(yi.MenuItem,{icon:Kn,href:(0,gr.__)("https://wordpress.org/documentation/article/wordpress-block-editor/"),target:"_blank",rel:"noopener noreferrer",children:[(0,gr.__)("Help"),(0,vr.jsx)(yi.VisuallyHidden,{as:"span",children:(0,gr.__)("(opens in a new tab)")})]}),(0,vr.jsx)(YP.Slot,{fillProps:{onClose:a}})]}),(0,vr.jsx)(yi.MenuGroup,{children:(0,vr.jsx)(yi.MenuItem,{onClick:()=>t("editor/preferences"),children:(0,gr.__)("Preferences")})})]})})})}var DQ=i(pe(),1),KP=i(O(),1);var LQ=i(x(),1),BQ="toggle",u4="button";function MQ({forceIsDirty:e,setEntitiesSavedStatesCallback:t}){let r,o=(0,DQ.useViewportMatch)("medium","<"),{togglePublishSidebar:n}=(0,KP.useDispatch)(_),{hasPublishAction:s,isBeingScheduled:a,isPending:l,isPublished:c,isPublishSidebarEnabled:u,isPublishSidebarOpened:d,isScheduled:f,postStatus:m,postStatusHasChanged:h,postType:g}=(0,KP.useSelect)(y=>({hasPublishAction:!!y(_).getCurrentPost()?._links?.["wp:action-publish"],isBeingScheduled:y(_).isEditedPostBeingScheduled(),isPending:y(_).isCurrentPostPending(),isPublished:y(_).isCurrentPostPublished(),isPublishSidebarEnabled:y(_).isPublishSidebarEnabled(),isPublishSidebarOpened:y(_).isPublishSidebarOpened(),isScheduled:y(_).isCurrentPostScheduled(),postStatus:y(_).getEditedPostAttribute("status"),postStatusHasChanged:y(_).getPostEdits()?.status,postType:y(_).getCurrentPostType()}),[]);return g===dr||c||h&&!["future","publish"].includes(m)||f&&a||l&&!s&&!o?r=u4:o||u?r=BQ:r=u4,(0,LQ.jsx)(Hh,{forceIsDirty:e,isOpen:d,isToggle:r===BQ,onToggle:n,setEntitiesSavedStatesCallback:t})}var VQ=i(E(),1),jQ=i(R(),1);var zQ=i(W(),1),UQ=i(O(),1),HQ=i(dt(),1);var GQ=i(x(),1);function WQ(){let{hasLoaded:e,permalink:t,isPublished:r,label:o,showIconLabels:n}=(0,UQ.useSelect)(s=>{let a=s(_).getCurrentPostType(),l=s(zQ.store).getPostType(a),{get:c}=s(HQ.store);return{permalink:s(_).getPermalink(),isPublished:s(_).isCurrentPostPublished(),label:l?.labels.view_item,hasLoaded:!!l,showIconLabels:c("core","showIconLabels")}},[]);return!r||!t||!e?null:(0,GQ.jsx)(jQ.Button,{icon:Kn,label:o||(0,VQ.__)("View post"),href:t,target:"_blank",showTooltip:!n,size:"compact"})}var YQ=i(pe(),1),ln=i(R(),1),la=i(E(),1);var p0=i(O(),1),qQ=i(W(),1),ZQ=i(dt(),1);var KQ=i($(),1);var so=i(x(),1);function XQ({forceIsAutosaveable:e,disabled:t}){let{deviceType:r,homeUrl:o,isTemplate:n,isViewable:s,showIconLabels:a,isTemplateHidden:l,templateId:c}=(0,p0.useSelect)(T=>{let{getDeviceType:C,getCurrentPostType:A,getCurrentTemplateId:F,getRenderingMode:L}=T(_),{getEntityRecord:j,getPostType:z}=T(qQ.store),{get:M}=T(ZQ.store),k=A();return{deviceType:C(),homeUrl:j("root","__unstableBase")?.home,isTemplate:k==="wp_template",isViewable:z(k)?.viewable??!1,showIconLabels:M("core","showIconLabels"),isTemplateHidden:L()==="post-only",templateId:F()}},[]),{setDeviceType:u,setRenderingMode:d,setDefaultRenderingMode:f}=D((0,p0.useDispatch)(_)),{resetZoomLevel:m}=D((0,p0.useDispatch)(KQ.store)),h=T=>{u(T),m()};if((0,YQ.useViewportMatch)("medium","<"))return null;let y={placement:"bottom-end"},v={className:"editor-preview-dropdown__toggle",iconPosition:"right",size:"compact",showTooltip:!a,disabled:t,accessibleWhenDisabled:t},b={"aria-label":(0,la.__)("View options")},S={desktop:Z1,mobile:Um,tablet:MS},w=[{value:"Desktop",label:(0,la.__)("Desktop"),icon:Z1},{value:"Tablet",label:(0,la.__)("Tablet"),icon:MS},{value:"Mobile",label:(0,la.__)("Mobile"),icon:Um}];return(0,so.jsx)(ln.DropdownMenu,{className:re("editor-preview-dropdown",`editor-preview-dropdown--${r.toLowerCase()}`),popoverProps:y,toggleProps:v,menuProps:b,icon:S[r.toLowerCase()],label:(0,la.__)("View"),disableOpenOnArrowDown:t,children:({onClose:T})=>(0,so.jsxs)(so.Fragment,{children:[(0,so.jsx)(ln.MenuGroup,{children:(0,so.jsx)(ln.MenuItemsChoice,{choices:w,value:r,onSelect:h})}),n&&(0,so.jsx)(ln.MenuGroup,{children:(0,so.jsxs)(ln.MenuItem,{href:o,target:"_blank",icon:Kn,onClick:T,children:[(0,la.__)("View site"),(0,so.jsx)(ln.VisuallyHidden,{as:"span",children:(0,la.__)("(opens in a new tab)")})]})}),!n&&!!c&&(0,so.jsx)(ln.MenuGroup,{children:(0,so.jsx)(ln.MenuItem,{icon:l?void 0:xs,isSelected:!l,role:"menuitemcheckbox",onClick:()=>{let C=l?"template-locked":"post-only";d(C),f(C),m()},children:(0,la.__)("Show template")})}),s&&(0,so.jsx)(ln.MenuGroup,{children:(0,so.jsx)(Ju,{className:"editor-preview-dropdown__button-external",role:"menuitem",forceIsAutosaveable:e,"aria-label":(0,la.__)("Preview in new tab"),textContent:(0,so.jsxs)(so.Fragment,{children:[(0,la.__)("Preview in new tab"),(0,so.jsx)(ln.Icon,{icon:Kn})]}),onPreview:T})}),(0,so.jsx)(ti.Slot,{name:"core/plugin-preview-menu",fillProps:{onClick:T}})]})})}var QQ=i(R(),1),d4=i(E(),1),JQ=i(N(),1),h0=i(O(),1),f4=i($(),1);var m4=i(dt(),1),XP=i(Es(),1),$Q=i(yo(),1);var eJ=i(x(),1),bCe=({disabled:e})=>{let{isZoomOut:t,showIconLabels:r,isDistractionFree:o}=(0,h0.useSelect)(u=>({isZoomOut:D(u(f4.store)).isZoomOut(),showIconLabels:u(m4.store).get("core","showIconLabels"),isDistractionFree:u(m4.store).get("core","distractionFree")})),{resetZoomLevel:n,setZoomLevel:s}=D((0,h0.useDispatch)(f4.store)),{registerShortcut:a,unregisterShortcut:l}=(0,h0.useDispatch)(XP.store);return(0,JQ.useEffect)(()=>(a({name:"core/editor/zoom",category:"global",description:(0,d4.__)("Enter or exit zoom out."),keyCombination:{modifier:(0,$Q.isAppleOS)()?"primaryShift":"secondary",character:"0"}}),()=>{l("core/editor/zoom")}),[a,l]),(0,XP.useShortcut)("core/editor/zoom",()=>{t?n():s("auto-scaled")},{isDisabled:o}),(0,eJ.jsx)(QQ.Button,{accessibleWhenDisabled:!0,disabled:e,onClick:()=>{t?n():s("auto-scaled")},icon:FR,label:(0,d4.__)("Zoom Out"),isPressed:t,size:"compact",showTooltip:!r,className:"editor-zoom-out-toggle"})},tJ=bCe;var EJ=i(R(),1),y0=i(N(),1),AJ=i(W(),1),dk=i(E(),1);var QP=i(R(),1),nJ=i(N(),1);var bg=i(N(),1);function rJ(e){let[t,r]=(0,bg.useState)(e),[o,n]=(0,bg.useState)(e?"loading":"idle");t!==e&&(r(e),n(e?"loading":"idle"));let s=(0,bg.useCallback)(()=>n("loaded"),[]),a=(0,bg.useCallback)(()=>n("error"),[]);return{status:o,handleLoad:s,handleError:a}}var Cc=i(x(),1);iw([Ow]);var oJ="#1e1e1e",SCe="#fff";function _Ce({className:e,src:t,name:r,label:o,variant:n,size:s="default",borderColor:a,dimmed:l=!1,statusIndicator:c,style:u,...d}){let{status:f,handleLoad:m,handleError:h}=rJ(t),g=f==="loaded",y=n==="badge"&&!!r,v=r?r.split(/\s+/).slice(0,2).map(T=>T[0]).join("").toUpperCase():void 0,b=(0,nJ.useMemo)(()=>a&&xr(a).isReadable(oJ,{level:"AA",size:"normal"})?oJ:SCe,[a]),S={...u,...a?{"--editor-avatar-outline-color":a,"--editor-avatar-name-color":b}:{}},w=(0,Cc.jsxs)("div",{className:re("editor-avatar",e,{"has-avatar-border-color":!!a,"has-src":g,"is-badge":y,"is-small":s==="small","is-dimmed":l}),style:S,role:r?"img":void 0,"aria-label":r||void 0,...d,children:[(0,Cc.jsxs)("span",{className:"editor-avatar__image",children:[t&&(0,Cc.jsx)("img",{src:t,alt:"",crossOrigin:"anonymous",className:"editor-avatar__img",onLoad:m,onError:h}),!g&&v]}),l&&!!c&&(0,Cc.jsx)("span",{className:"editor-avatar__status-indicator",children:(0,Cc.jsx)(QP.Icon,{icon:c})}),y&&(0,Cc.jsx)("span",{className:"editor-avatar__name",children:o||r})]});return r&&(!y||o)?(0,Cc.jsx)(QP.Tooltip,{text:r,children:w}):w}var Pc=_Ce;var sJ=i(N(),1),JP=i(E(),1),$P=i(x(),1);function wCe({className:e,max:t=3,children:r,...o}){let n=sJ.Children.toArray(r),s=n.slice(0,t),a=n.length-t;return(0,$P.jsxs)("div",{role:"group",className:re("editor-avatar-group",e),...o,children:[s,a>0&&(0,$P.jsx)("span",{className:"editor-avatar-group__overflow","aria-label":(0,JP.sprintf)((0,JP._n)("%d more collaborator","%d more collaborators",a),a),children:`+${a}`})]})}var p4=wCe;var ek=i(E(),1),tk=i(R(),1);function kc(e){return e?.["48"]||e?.["96"]||e?.["24"]}var aJ=i(E(),1);function lJ(e){return e.trim()}function Sg(){}var iJ=["#C36EFF","#FF51A8","#E4780A","#FF35EE","#879F11","#46A494","#00A2C3"];function bi(e){return iJ[e%iJ.length]}function cJ(e,t=10){if(!e)return"";let r=(0,aJ._x)("words","Word count type. Do not translate!"),o=e.trim(),n="";if(r==="words")n=o.split(" ",t).join(" ");else if(r==="characters_excluding_spaces"){let a=o.split("",t).join(""),l=a.length-a.replaceAll(" ","").length;n=o.split("",t+l).join("")}else r==="characters_including_spaces"&&(n=o.split("",t).join(""));return n!==o?n+"\u2026":n}function cn(e,t,r){if(!t)return;let o=e&&e!=="new"?`[role=treeitem][id="comment-thread-${e}"]`:"[role=treeitem]:not([id])",n=r?`${o} ${r}`:o;return new Promise(s=>{if(t.querySelector(n))return s(t.querySelector(n));let a=null,l=new window.MutationObserver(()=>{t.querySelector(n)&&(clearTimeout(a),l.disconnect(),s(t.querySelector(n)))});l.observe(t,{childList:!0,subtree:!0}),a=setTimeout(()=>{l.disconnect(),s(null)},3e3)}).then(s=>s?.focus())}var cs=i(x(),1);if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='9537a5e604']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","9537a5e604"),e.appendChild(document.createTextNode(".editor-collaborators-presence__list.components-popover .components-popover__content{background:#fff;border:1px solid #ddd;border-radius:8px;border-width:1px 0 0 1px;box-shadow:0 1px 2px #0000000d,0 2px 3px #0000000a,0 6px 6px #00000008,0 8px 8px #00000005}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-content{min-width:280px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header{align-items:center;display:flex;justify-content:space-between;padding:8px 16px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-title{display:flex;font-size:13px;font-weight:499;gap:4px;line-height:20px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-title span{color:#757575}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-action{padding:0}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-action button{color:#1e1e1e;height:32px;padding:0;width:32px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-items{display:flex;flex-direction:column;padding-bottom:16px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item{all:unset;align-items:center;box-sizing:border-box;cursor:pointer;display:flex;gap:8px;padding:12px 16px;transition:background-color .2s ease;width:100%}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:hover:not(:disabled){background-color:rgba(var(--wp-admin-theme-color--rgb),.04)}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:active:not(:disabled){background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:focus-visible{outline:2px solid var(--wp-admin-theme-color,#3858e9);outline-offset:-2px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:disabled{cursor:default}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item-info{display:flex;flex:1;flex-direction:column;min-width:0}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item-name{color:#1e1e1e;font-size:13px;font-weight:499;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}")),document.head.appendChild(e)}function uJ({activeCollaborators:e,popoverAnchor:t,setIsPopoverVisible:r}){return(0,cs.jsx)(tk.Popover,{anchor:t,placement:"bottom",offset:8,className:"editor-collaborators-presence__list",onClose:()=>r(!1),children:(0,cs.jsxs)("div",{className:"editor-collaborators-presence__list-content",children:[(0,cs.jsxs)("div",{className:"editor-collaborators-presence__list-header",children:[(0,cs.jsxs)("div",{className:"editor-collaborators-presence__list-header-title",children:[(0,ek.__)("Collaborators"),(0,cs.jsx)("span",{children:e.length})]}),(0,cs.jsx)("div",{className:"editor-collaborators-presence__list-header-action",children:(0,cs.jsx)(tk.Button,{__next40pxDefaultSize:!0,icon:Zn,iconSize:24,label:(0,ek.__)("Close Collaborators List"),onClick:()=>r(!1)})})]}),(0,cs.jsx)("div",{className:"editor-collaborators-presence__list-items",children:e.map(o=>{let n=o.isMe;return(0,cs.jsxs)("button",{className:"editor-collaborators-presence__list-item",disabled:!0,children:[(0,cs.jsx)(Pc,{src:kc(o.collaboratorInfo.avatar_urls),name:o.collaboratorInfo.name,borderColor:n?"var(--wp-admin-theme-color)":bi(o.collaboratorInfo.id),dimmed:!o.isConnected}),(0,cs.jsx)("div",{className:"editor-collaborators-presence__list-item-info",children:(0,cs.jsx)("div",{className:"editor-collaborators-presence__list-item-name",children:n?(0,ek.__)("You"):o.collaboratorInfo.name})})]},o.clientId)})})]})})}var kJ=i($(),1);var ck=i(pe(),1),xg=i(N(),1),CJ=i(E(),1);var g0="0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01)",h4="9999px",g4="32px",v4="24px",rk="4px",ok="8px",v0="1px",y4="2px",Ec="#fff",dJ="11px",fJ="13px",b4="499",mJ="20px";var pJ=`
.editor-avatar {
position: relative;
display: inline-flex;
align-items: center;
border-radius: ${h4};
flex-shrink: 0;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 2px) ${Ec}, ${g0};
}
.editor-avatar__image {
box-sizing: border-box;
position: relative;
width: ${g4};
height: ${g4};
border-radius: ${h4};
border: 0;
background-color: var(--wp-admin-theme-color, #3858e9);
overflow: hidden;
overflow: clip;
flex-shrink: 0;
font-size: 0;
color: ${Ec};
}
.is-small > .editor-avatar__image {
width: ${v4};
height: ${v4};
}
.has-avatar-border-color > .editor-avatar__image {
border: var(--wp-admin-border-width-focus, 2px) solid var(--editor-avatar-outline-color);
background-clip: padding-box;
}
.has-avatar-border-color > .editor-avatar__image::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus, 2px) ${Ec};
pointer-events: none;
z-index: 1;
}
.editor-avatar__img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
border-radius: inherit;
opacity: 0;
}
.has-src > .editor-avatar__image > .editor-avatar__img {
opacity: 1;
}
.editor-avatar:not(.has-src) > .editor-avatar__image {
display: flex;
align-items: center;
justify-content: center;
font-size: ${dJ};
font-weight: ${b4};
border: 0;
background-clip: border-box;
}
.editor-avatar:not(.has-src) > .editor-avatar__image::after {
content: none;
}
.editor-avatar:not(.has-src).has-avatar-border-color > .editor-avatar__image {
background-color: var(--editor-avatar-outline-color);
}
.editor-avatar__name {
font-size: ${fJ};
font-weight: ${b4};
line-height: ${mJ};
color: var(--editor-avatar-name-color, ${Ec});
min-width: 0;
padding-bottom: 2px; /* $grid-unit-05 / 2 */
overflow: hidden;
opacity: 0;
white-space: nowrap;
transition: opacity 0.15s cubic-bezier(0.15, 0, 0.15, 1);
}
.editor-avatar.is-badge {
display: inline-grid;
grid-template-columns: min-content 0fr;
column-gap: 0;
padding-inline-end: 0;
background-color: var(--wp-admin-theme-color, #3858e9);
transition:
grid-template-columns 0.3s cubic-bezier(0.15, 0, 0.15, 1),
column-gap 0.3s cubic-bezier(0.15, 0, 0.15, 1),
padding-inline-end 0.3s cubic-bezier(0.15, 0, 0.15, 1);
}
.editor-avatar.is-badge:hover {
grid-template-columns: min-content 1fr;
column-gap: ${rk};
padding-inline-end: ${ok};
transition-timing-function: cubic-bezier(0.85, 0, 0.85, 1);
}
.editor-avatar.is-badge:hover .editor-avatar__name {
opacity: 1;
transition-timing-function: cubic-bezier(0.85, 0, 0.85, 1);
}
.editor-avatar.is-badge.has-avatar-border-color {
background-color: var(--editor-avatar-outline-color);
}
@media (prefers-reduced-motion: reduce) {
.editor-avatar.is-badge,
.editor-avatar__name {
transition: none;
}
}
`;var hJ=`
.block-canvas-cover {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 20000;
}
.block-canvas-cover .collaborators-overlay-full {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.block-canvas-cover .collaborators-overlay-fixed {
position: fixed;
width: 100%;
height: 100%;
}
.collaborators-overlay-user {
position: absolute;
}
/* Cursor lines render below avatar labels across all users. The parent
.collaborators-overlay-user has no z-index so it does not create a
stacking context \u2014 children participate in the shared overlay context. */
.collaborators-overlay-user-cursor {
position: absolute;
z-index: 0;
width: ${y4};
border-radius: ${v0};
outline: ${v0} solid ${Ec};
box-shadow: ${g0};
animation: collaborators-overlay-cursor-blink 1s infinite;
}
.collaborators-overlay-selection-rect {
position: absolute;
opacity: 0.15;
pointer-events: none;
border-radius: 2px;
}
/* Overlay-specific positioning applied to the Avatar cursor label. */
.collaborators-overlay-user-label.editor-avatar {
position: absolute;
z-index: 1;
transform: translate(-11px, -100%);
margin-top: -${rk};
pointer-events: auto;
overflow: visible;
width: max-content;
}
/* Avatar positioned above a highlighted block as a label. */
.collaborators-overlay-block-label.editor-avatar {
position: absolute;
z-index: 1;
transform: translateY(calc(-100% - ${ok}));
pointer-events: auto;
overflow: visible;
width: max-content;
}
@keyframes collaborators-overlay-cursor-blink {
0%, 45% { opacity: 1; }
55%, 95% { opacity: 0; }
100% { opacity: 1; }
}
.collaborators-overlay-cursor-highlighted .collaborators-overlay-user-cursor {
animation: collaborators-overlay-cursor-highlight 0.6s ease-in-out 3;
}
.collaborators-overlay-cursor-highlighted .collaborators-overlay-user-label {
animation: collaborators-overlay-label-highlight 0.6s ease-in-out 3;
}
@keyframes collaborators-overlay-cursor-highlight {
0%, 100% {
transform: scale(1);
filter: drop-shadow(0 0 0 transparent);
}
50% {
transform: scale(1.2);
filter: drop-shadow(0 0 8px currentColor);
}
}
@keyframes collaborators-overlay-label-highlight {
0%, 100% {
transform: translate(-11px, -100%) scale(1);
filter: drop-shadow(0 0 0 transparent);
}
50% {
transform: translate(-11px, -100%) scale(1.1);
filter: drop-shadow(0 0 6px currentColor);
}
}
.block-editor-block-list__block.is-collaborator-selected:not(:focus)::after {
content: "";
position: absolute;
pointer-events: none;
top: 0;
right: 0;
bottom: 0;
left: 0;
outline-color: var(--collaborator-outline-color);
outline-style: solid;
outline-width: calc(var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1));
outline-offset: calc(-1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1));
box-shadow: inset 0 0 0 calc(var(--wp-admin-border-width-focus, ${y4}) + ${v0}) ${Ec}, 0 0 0 ${v0} ${Ec}, ${g0};
z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
.collaborators-overlay-user-label,
.collaborators-overlay-user-cursor {
animation: none;
}
}
`;var sk=i(W(),1),wg=i(N(),1);var _g=i(N(),1);function nk(e){let[t,r]=(0,_g.useState)(0),o=(0,_g.useRef)(null),n=(0,_g.useCallback)(()=>(o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(s=>s+1)},e),()=>{o.current&&clearTimeout(o.current)}),[e]);return[t,n]}var{useActiveCollaborators:xCe,useResolvedSelection:TCe}=D(sk.privateApis);function gJ(e,t,r,o,n){let s=(0,wg.useRef)(new Set),a=xCe(r??null,o??null),l=TCe(r??null,o??null),[c,u]=(0,wg.useState)([]),[d,f]=nk(n);return(0,wg.useEffect)(()=>{if(!t){u([]);return}let m=s.current,h=new Set,g=a.filter(S=>{let w=S.editorState?.selection?.type===sk.SelectionType.WholeBlock;return!S.isMe&&w}).map(S=>{let w;try{({localClientId:w}=l(S.editorState?.selection))}catch{return null}return w?{blockId:w,color:S.isMe?"var(--wp-admin-theme-color)":bi(S.collaboratorInfo.id),userName:S.collaboratorInfo.name,avatarUrl:kc(S.collaboratorInfo.avatar_urls)}:null}).filter(S=>!S||h.has(S.blockId)?!1:(h.add(S.blockId),!0)),y=new Set(g.map(S=>S.blockId));for(let S of m)if(!y.has(S)){let w=S4(t,S);w&&(w.classList.remove("is-collaborator-selected"),w.style.removeProperty("--collaborator-outline-color")),m.delete(S)}let v=[],b=e?.getBoundingClientRect()??null;return g.forEach(S=>{let{color:w,blockId:T,userName:C,avatarUrl:A}=S,F=S4(t,T);if(F&&(F.classList.add("is-collaborator-selected"),F.style.setProperty("--collaborator-outline-color",w),m.add(T),b)){let L=F.getBoundingClientRect();v.push({blockId:T,userName:C,avatarUrl:A,color:w,x:L.left-b.left,y:L.top-b.top})}}),u(v),()=>{for(let S of m){let w=S4(t,S);w&&(w.classList.remove("is-collaborator-selected"),w.style.removeProperty("--collaborator-outline-color"))}m.clear()}},[a,t,e,d,l]),{highlights:c,rerenderHighlightsAfterDelay:f}}var S4=(e,t)=>e.querySelector(`[data-block="${t}"]`);var Ac=i(W(),1),_J=i(O(),1),lk=i(N(),1),wJ=i(dt(),1);var vm=i(W(),1);var CCe=500,ik=(e,t,r,o)=>e===null||!t?null:PCe(t,e,r,o)??null,PCe=(e,t,r,o)=>{let{node:n,offset:s}=_4(e,t,r),a=r.createRange();try{a.setStart(n,s)}catch{return null}a.collapse(!0);let l=a.getBoundingClientRect(),c=e.getBoundingClientRect(),u=0,d=0;l.x===0&&l.y===0&&l.width===0&&l.height===0?(u=c.left-o.left,d=c.top-o.top):(u=l.left-o.left,d=l.top-o.top);let f=l.height;if(f===0){let m=r.defaultView??window;f=parseInt(m.getComputedStyle(e).lineHeight,10)||c.height}return{x:u,y:d,height:f}},ak=(e,t,r,o,n)=>{let s=t,a=r;s>a&&([s,a]=[a,s]);let l=_4(e,s,o),c=_4(e,a,o),u=o.createRange();try{u.setStart(l.node,l.offset),u.setEnd(c.node,c.offset)}catch{return null}let d=u.getClientRects(),f=[];for(let m of d){if(m.width===0&&m.height===0)continue;let h=m.left-n.left,g=m.top-n.top;f.some(v=>v.x===h&&v.y===g&&v.width===m.width&&v.height===m.height)||f.push({x:h,y:g,width:m.width,height:m.height})}return f.length>0?f:null},vJ=(e,t,r)=>{let o=t.createRange();o.selectNodeContents(e);let n=o.getClientRects(),s=[];for(let a of n)a.width===0&&a.height===0||s.push({x:a.left-r.left,y:a.top-r.top,width:a.width,height:a.height});if(s.length===0){let a=e.getBoundingClientRect();a.width>0&&a.height>0&&s.push({x:a.left-r.left,y:a.top-r.top,width:a.width,height:a.height})}return s},yJ=(e,t,r)=>{let o=r.querySelectorAll("[data-block]"),n=-1,s=-1;for(let l=0;l<o.length;l++){let c=o[l].getAttribute("data-block");c===e&&(n=l),c===t&&(s=l)}if(n===-1||s===-1)return[];n>s&&([n,s]=[s,n]);let a=[];for(let l=n+1;l<s;l++)a.push(o[l]);return a},_4=(e,t,r)=>{let o=r.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT),n=0,s=null,a=null,l=1;for(;a=o.nextNode();){if(l++,l>CCe)return s?{node:s,offset:0}:{node:e,offset:0};let c=a.nodeValue?.length??0;if(a.nodeType===Node.ELEMENT_NODE)if(a.nodeName==="BR"){if(n+1>=t){let u=o.nextNode();return u?.nodeType===Node.TEXT_NODE?{node:u,offset:0}:s?{node:s,offset:s.nodeValue?.length??0}:{node:e,offset:0}}n+=1;continue}else continue;if(c!==0){if(n+c>=t)return{node:a,offset:t-n};n+=c,a.nodeType===Node.TEXT_NODE&&(s=a)}}return s&&s.nodeValue?.length?{node:s,offset:s.nodeValue.length}:{node:e,offset:0}},bJ=(e,t)=>e.compareDocumentPosition(t)===Node.DOCUMENT_POSITION_FOLLOWING;function SJ(e,t,r,o){return e.type===vm.SelectionType.None||e.type===vm.SelectionType.WholeBlock?{}:e.type===vm.SelectionType.Cursor?kCe(t,o):r?ECe(e,t,r,o):{}}function kCe(e,t){if(!e.localClientId)return{};let r=t.editorDocument.querySelector(`[data-block="${e.localClientId}"]`);return{coords:ik(e.textIndex,r,t.editorDocument,t.overlayRect)}}function ECe(e,t,r,o){if(!t.localClientId||!r.localClientId||t.textIndex===null||r.textIndex===null)return{};let s=e.selectionDirection===vm.SelectionDirection.Backward?t:r,a,l=null;if(e.type===vm.SelectionType.SelectionInOneBlock){let u=ACe(t,r,o);a=u.rects,l=u.blockElement}else{let u=RCe(t,r,o);a=u.rects,l=s.localClientId===u.firstBlockClientId?u.firstBlock:u.lastBlock}if(a.length>0)return{coords:ik(s.textIndex,l,o.editorDocument,o.overlayRect),selectionRects:a};let c=o.editorDocument.querySelector(`[data-block="${t.localClientId}"]`);return{coords:ik(t.textIndex,c,o.editorDocument,o.overlayRect)}}function ACe(e,t,r){let o=r.editorDocument.querySelector(`[data-block="${e.localClientId}"]`);return!o||e.textIndex===null||t.textIndex===null?{rects:[],blockElement:null}:{rects:ak(o,e.textIndex,t.textIndex,r.editorDocument,r.overlayRect)??[],blockElement:o}}function RCe(e,t,r){let o=e,n=t,s=r.editorDocument.querySelector(`[data-block="${o.localClientId}"]`),a=r.editorDocument.querySelector(`[data-block="${n.localClientId}"]`);if(s&&a&&bJ(a,s)&&(o=t,n=e,[s,a]=[a,s]),!s||!a||o.textIndex===null||n.textIndex===null||!o.localClientId||!n.localClientId)return{rects:[],firstBlock:null,lastBlock:null,firstBlockClientId:null};let l=[],c=ak(s,o.textIndex,Number.MAX_SAFE_INTEGER,r.editorDocument,r.overlayRect);c&&l.push(...c);let u=yJ(o.localClientId,n.localClientId,r.editorDocument);for(let f of u){let m=vJ(f,r.editorDocument,r.overlayRect);l.push(...m)}let d=ak(a,0,n.textIndex,r.editorDocument,r.overlayRect);return d&&l.push(...d),{rects:l,firstBlock:s,lastBlock:a,firstBlockClientId:o.localClientId}}var{useActiveCollaborators:OCe,useResolvedSelection:ICe}=D(Ac.privateApis);function xJ(e,t,r,o,n){let s=OCe(r??null,o??null),a=ICe(r??null,o??null),l=(0,_J.useSelect)(m=>m(wJ.store).get("core","showCollaborationCursor"),[]),[c,u]=(0,lk.useState)([]),[d,f]=nk(n);return(0,lk.useEffect)(()=>{if(!e||!t){u([]);return}let m=e.getBoundingClientRect(),h={editorDocument:t,overlayRect:m},g=[],y=s.some(v=>!v.isMe);s.forEach(v=>{if(v.isMe&&(!l||!y))return;let b=v.editorState?.selection??{type:Ac.SelectionType.None},S={textIndex:null,localClientId:null},w;if(b.type===Ac.SelectionType.Cursor)try{S=a(b)}catch{return}else if(b.type===Ac.SelectionType.SelectionInOneBlock||b.type===Ac.SelectionType.SelectionInMultipleBlocks)try{S=a({type:Ac.SelectionType.Cursor,cursorPosition:b.cursorStartPosition}),w=a({type:Ac.SelectionType.Cursor,cursorPosition:b.cursorEndPosition})}catch{return}let T=v.collaboratorInfo.name,C=v.clientId,A=v.isMe?"var(--wp-admin-theme-color)":bi(v.collaboratorInfo.id),F=kc(v.collaboratorInfo.avatar_urls),L=SJ(b,S,w,h);if(L.coords){let j={userName:T,clientId:C,color:A,avatarUrl:F,isMe:v.isMe,...L.coords};L.selectionRects&&(j.selectionRects=L.selectionRects),g.push(j)}}),u(g)},[t,a,e,s,l,d]),{cursors:c,rerenderCursorsAfterDelay:f}}var Xa=i(x(),1),TJ=500;function PJ({blockEditorDocument:e,postId:t,postType:r}){let[o,n]=(0,xg.useState)(null),{cursors:s,rerenderCursorsAfterDelay:a}=xJ(o,e??null,t??null,r??null,TJ),{highlights:l,rerenderHighlightsAfterDelay:c}=gJ(o,e??null,t??null,r??null,TJ),u=(0,xg.useCallback)(()=>{a(),c()},[a,c]),d=(0,ck.useResizeObserver)(u);(0,xg.useEffect)(()=>{let m=a(),h=c();return()=>{m(),h()}},[a,c]);let f=(0,ck.useMergeRefs)([n,d]);return(0,Xa.jsxs)("div",{className:"collaborators-overlay-full",ref:f,children:[(0,Xa.jsx)("style",{children:pJ+hJ}),s.map(m=>(0,Xa.jsxs)("div",{children:[m.selectionRects?.map((h,g)=>(0,Xa.jsx)("div",{className:"collaborators-overlay-selection-rect",style:{left:`${h.x}px`,top:`${h.y}px`,width:`${h.width}px`,height:`${h.height}px`,backgroundColor:m.color}},`${m.clientId}-sel-${g}`)),(0,Xa.jsxs)("div",{className:"collaborators-overlay-user",style:{left:`${m.x}px`,top:`${m.y}px`},children:[!m.isMe&&(0,Xa.jsx)("div",{className:"collaborators-overlay-user-cursor",style:{backgroundColor:m.color,height:`${m.height}px`}}),(0,Xa.jsx)(Pc,{className:"collaborators-overlay-user-label",variant:"badge",size:"small",src:m.avatarUrl,name:m.userName,label:m.isMe?(0,CJ.__)("You"):void 0,borderColor:m.color})]})]},m.clientId)),l.map(m=>(0,Xa.jsx)(Pc,{className:"collaborators-overlay-block-label",variant:"badge",size:"small",src:m.avatarUrl,name:m.userName,borderColor:m.color,style:{left:`${m.x}px`,top:`${m.y}px`}},m.blockId))]})}var w4=i(x(),1),{BlockCanvasCover:FCe}=D(kJ.privateApis);function uk({postId:e,postType:t}){return(0,w4.jsx)(FCe.Fill,{children:({containerRef:r})=>(0,w4.jsx)(PJ,{blockEditorDocument:r.current?.ownerDocument,postId:e,postType:t})})}var Si=i(x(),1);if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='eee1778bc0']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","eee1778bc0"),e.appendChild(document.createTextNode(".editor-collaborators-presence{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;flex-shrink:0;height:32px;margin-right:8px}.editor-collaborators-presence:has(.is-pressed),.editor-collaborators-presence:hover{background-color:#e0e0e0}.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button{align-items:center;background:#0000;border-radius:4px;box-sizing:border-box;color:#2f2f2f;cursor:pointer;display:flex;height:100%;padding:4px;position:relative}.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button.is-pressed,.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button.is-pressed:hover,.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button:hover{background:#0000;color:#2f2f2f}.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button:focus:not(:active){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus,2px) var(--wp-admin-theme-color,#007cba);outline:none}")),document.head.appendChild(e)}var{useActiveCollaborators:NCe}=D(AJ.privateApis);function RJ({postId:e,postType:t}){let r=NCe(e,t),o=r.filter(d=>!d.isMe),n=(0,y0.useMemo)(()=>[...r].sort((d,f)=>d.isMe&&!f.isMe?-1:!d.isMe&&f.isMe?1:0),[r]),[s,a]=(0,y0.useState)(!1),[l,c]=(0,y0.useState)(null);if(o.length===0)return null;let u=r.find(d=>d.isMe);return(0,Si.jsxs)(Si.Fragment,{children:[(0,Si.jsxs)("div",{className:"editor-collaborators-presence",children:[(0,Si.jsx)(EJ.Button,{__next40pxDefaultSize:!0,className:"editor-collaborators-presence__button",onClick:()=>a(!s),isPressed:s,ref:c,"aria-label":(0,dk.sprintf)((0,dk.__)("Collaborators list, %d online"),n.length),children:(0,Si.jsxs)(p4,{max:4,children:[u&&(0,Si.jsx)(Pc,{src:kc(u.collaboratorInfo.avatar_urls),name:u.collaboratorInfo.name,borderColor:"var(--wp-admin-theme-color)",size:"small"},u.clientId),o.map(d=>(0,Si.jsx)(Pc,{src:kc(d.collaboratorInfo.avatar_urls),name:d.collaboratorInfo.name,borderColor:bi(d.collaboratorInfo.id),size:"small"},d.clientId))]})}),s&&(0,Si.jsx)(uJ,{activeCollaborators:n,popoverAnchor:l,setIsPopoverVisible:a})]}),(0,Si.jsx)(uk,{postId:e,postType:t})]})}var Er=i(x(),1);function BCe({customSaveButton:e,forceIsDirty:t,setEntitiesSavedStatesCallback:r}){let o=(0,b0.useViewportMatch)("large"),n=(0,b0.useViewportMatch)("medium"),s=(0,b0.useMediaQuery)("(max-width: 403px)"),{postId:a,postType:l,isTextEditor:c,isPublishSidebarOpened:u,showIconLabels:d,hasFixedToolbar:f,hasBlockSelection:m,hasSectionRootClientId:h,isStylesCanvasActive:g,isAttachment:y}=(0,IJ.useSelect)(C=>{let{get:A}=C(FJ.store),{getEditorMode:F,getCurrentPostType:L,getCurrentPostId:j,isPublishSidebarOpened:z}=C(_),{getStylesPath:M,getShowStylebook:k}=D(C(_)),{getBlockSelectionStart:I,getSectionRootClientId:U}=D(C(OJ.store));return{postId:j(),postType:L(),isTextEditor:F()==="text",isPublishSidebarOpened:z(),showIconLabels:A("core","showIconLabels"),hasFixedToolbar:A("core","fixedToolbar"),hasBlockSelection:!!I(),hasSectionRootClientId:!!U(),isStylesCanvasActive:!!M()?.startsWith("/revisions")||k(),isAttachment:L()===dr&&window?.__experimentalMediaEditor}},[]),v=["post","page","wp_template"].includes(l)&&h,b=[dr,Dd,Ur,Ys].includes(l)||g,[S,w]=(0,NJ.useState)(!0);return(0,Er.jsx)(HP,{toolbar:(0,Er.jsxs)(Er.Fragment,{children:[!y&&(0,Er.jsx)(yQ,{disableBlockTools:g||c}),f&&n&&(0,Er.jsx)(mQ,{isCollapsed:S,onToggle:w})]}),center:!s&&(!f||f&&(!m||S))?(0,Er.jsxs)(Er.Fragment,{children:[(0,Er.jsx)(RJ,{postType:l,postId:a}),(0,Er.jsx)(Zx,{})]}):void 0,settings:(0,Er.jsxs)(Er.Fragment,{children:[!e&&!u&&(0,Er.jsx)(XC,{forceIsDirty:t}),(0,Er.jsx)(WQ,{}),(0,Er.jsx)(XQ,{forceIsAutosaveable:t,disabled:b}),(0,Er.jsx)(Ju,{className:"editor-header__post-preview-button",forceIsAutosaveable:t}),o&&v&&(0,Er.jsx)(tJ,{disabled:g}),(o||!d)&&(0,Er.jsx)(Fp.Slot,{scope:"core"}),!e&&(0,Er.jsx)(MQ,{forceIsDirty:t,setEntitiesSavedStatesCallback:r}),e,!y&&(0,Er.jsx)(ZP,{})]})})}var BJ=BCe;var S0=i(O(),1),mk=i($(),1),DJ=i(pe(),1),_0=i(N(),1),LJ=i(dt(),1),MJ=i(yo(),1);var fk=i(x(),1),{PrivateInserterLibrary:DCe}=D(mk.privateApis);function VJ(){let{blockSectionRootClientId:e,inserterSidebarToggleRef:t,inserter:r,showMostUsedBlocks:o,sidebarIsOpened:n}=(0,S0.useSelect)(m=>{let{getInserterSidebarToggleRef:h,getInserter:g,isPublishSidebarOpened:y}=D(m(_)),{getBlockRootClientId:v,isZoomOut:b,getSectionRootClientId:S}=D(m(mk.store)),{get:w}=m(LJ.store),{getActiveComplementaryArea:T}=m(Te),C=()=>{if(b()){let A=S();if(A)return A}return v()};return{inserterSidebarToggleRef:h(),inserter:g(),showMostUsedBlocks:w("core","mostUsedBlocks"),blockSectionRootClientId:C(),sidebarIsOpened:!!(T("core")||y())}},[]),{setIsInserterOpened:s}=(0,S0.useDispatch)(_),{disableComplementaryArea:a}=(0,S0.useDispatch)(Te),l=(0,DJ.useViewportMatch)("medium","<"),c=(0,_0.useRef)(),u=(0,_0.useCallback)(()=>{s(!1),t.current?.focus()},[t,s]),d=(0,_0.useCallback)(m=>{m.keyCode===MJ.ESCAPE&&!m.defaultPrevented&&(m.preventDefault(),u())},[u]),f=(0,fk.jsx)("div",{className:"editor-inserter-sidebar__content",children:(0,fk.jsx)(DCe,{showMostUsedBlocks:o,showInserterHelpPanel:!0,shouldFocusBlock:l,rootClientId:e,onSelect:r.onSelect,__experimentalInitialTab:r.tab,__experimentalInitialCategory:r.category,__experimentalFilterValue:r.filterValue,onPatternCategorySelection:n?()=>a("core"):void 0,ref:c,onClose:u})});return(0,fk.jsx)("div",{onKeyDown:d,className:"editor-inserter-sidebar",children:f})}var hk=i($(),1),gk=i(pe(),1),vk=i(O(),1),x4=i(fh(),1),ca=i(N(),1),x0=i(E(),1),zJ=i(Es(),1),UJ=i(yo(),1);var w0=i(R(),1),pk=i(E(),1);var Uo=i(x(),1);function jJ(){return(0,Uo.jsxs)(Uo.Fragment,{children:[(0,Uo.jsxs)("div",{className:"editor-list-view-sidebar__outline",children:[(0,Uo.jsxs)("div",{children:[(0,Uo.jsx)(w0.__experimentalText,{children:(0,pk.__)("Characters:")}),(0,Uo.jsx)(w0.__experimentalText,{children:(0,Uo.jsx)(dg,{})})]}),(0,Uo.jsxs)("div",{children:[(0,Uo.jsx)(w0.__experimentalText,{children:(0,pk.__)("Words:")}),(0,Uo.jsx)(cg,{})]}),(0,Uo.jsxs)("div",{children:[(0,Uo.jsx)(w0.__experimentalText,{children:(0,pk.__)("Time to read:")}),(0,Uo.jsx)(ug,{})]})]}),(0,Uo.jsx)(bh,{})]})}var id=i(x(),1),{TabbedSidebar:LCe}=D(hk.privateApis);function HJ(){let{setIsListViewOpened:e}=(0,vk.useDispatch)(_),{getListViewToggleRef:t}=D((0,vk.useSelect)(_)),r=(0,gk.useFocusOnMount)("firstElement"),o=(0,ca.useCallback)(()=>{e(!1),t().current?.focus()},[t,e]),n=(0,ca.useCallback)(y=>{y.keyCode===UJ.ESCAPE&&!y.defaultPrevented&&(y.preventDefault(),o())},[o]),[s,a]=(0,ca.useState)(null),[l,c]=(0,ca.useState)("list-view"),u=(0,ca.useRef)(),d=(0,ca.useRef)(),f=(0,ca.useRef)(),m=(0,gk.useMergeRefs)([r,f,a]);function h(y){let v=x4.focus.tabbable.find(d.current)[0];if(y==="list-view"){let b=x4.focus.tabbable.find(f.current)[0];(u.current.contains(b)?b:v).focus()}else v.focus()}let g=(0,ca.useCallback)(()=>{u.current.contains(u.current.ownerDocument.activeElement)?o():h(l)},[o,l]);return(0,zJ.useShortcut)("core/editor/toggle-list-view",g),(0,id.jsx)("div",{className:"editor-list-view-sidebar",onKeyDown:n,ref:u,children:(0,id.jsx)(LCe,{tabs:[{name:"list-view",title:(0,x0._x)("List View","Post overview"),panel:(0,id.jsx)("div",{className:"editor-list-view-sidebar__list-view-container",children:(0,id.jsx)("div",{className:"editor-list-view-sidebar__list-view-panel-content",children:(0,id.jsx)(hk.__experimentalListView,{dropZoneElement:s})})}),panelRef:m},{name:"outline",title:(0,x0._x)("Outline","Post overview"),panel:(0,id.jsx)("div",{className:"editor-list-view-sidebar__list-view-container",children:(0,id.jsx)(jJ,{})})}],onClose:o,onSelect:y=>c(y),defaultTabId:"list-view",ref:d,closeButtonLabel:(0,x0.__)("Close")})})}var P0=i(O(),1),C0=i(R(),1);var ad=i(E(),1);var GJ=i(N(),1),bk=i(O(),1),Sk=i(R(),1),WJ=i(W(),1),yk=i(E(),1),_k=i(mo(),1);var T0=i(x(),1);function MCe(){let{revisions:e,isLoading:t,currentRevisionId:r,revisionKey:o}=(0,bk.useSelect)(d=>{let{getCurrentPostId:f,getCurrentPostType:m}=d(_),{getRevisions:h,isResolving:g,getEntityConfig:y}=d(WJ.store),v=f(),b=m();if(!v||!b)return{};let S=y("postType",b),w={per_page:-1,context:"edit",_fields:"id,date,author,meta,title.raw,excerpt.raw,content.raw"};return{revisions:h("postType",b,v,w),isLoading:g("getRevisions",["postType",b,v,w]),currentRevisionId:D(d(_)).getCurrentRevisionId(),revisionKey:S?.revisionKey||"id"}},[]),{setCurrentRevisionId:n}=D((0,bk.useDispatch)(_)),s=(0,GJ.useMemo)(()=>e?.slice().sort((d,f)=>new Date(d.date)-new Date(f.date))??[],[e]),a=s.findIndex(d=>d[o]===r),l=d=>{let f=s[d];f&&n(f[o])},c=(0,_k.getSettings)(),u=d=>{let f=s[d];return f?(0,_k.dateI18n)(c.formats.datetime,f.date):d};return t?(0,T0.jsx)(Sk.Spinner,{}):s.length?s.length===1?(0,T0.jsx)("span",{className:"editor-revisions-header__no-revisions",children:(0,yk.__)("Only one revision found.")}):(0,T0.jsx)(Sk.RangeControl,{__next40pxDefaultSize:!0,className:"editor-revisions-header__slider",hideLabelFromVision:!0,label:(0,yk.__)("Revision"),max:s.length-1,min:0,marks:!0,onChange:l,renderTooltipContent:u,value:a,withInputField:!1}):(0,T0.jsx)("span",{className:"editor-revisions-header__no-revisions",children:(0,yk.__)("No revisions found.")})}var YJ=MCe;var us={document:"edit-post/document",block:"edit-post/block"};var Vs=i(x(),1);function VCe({showDiff:e,onToggleDiff:t}){let{currentRevisionId:r,sidebarIsOpened:o}=(0,P0.useSelect)(d=>({currentRevisionId:D(d(_)).getCurrentRevisionId(),sidebarIsOpened:!!d(Te).getActiveComplementaryArea("core")}),[]),{setCurrentRevisionId:n,restoreRevision:s}=D((0,P0.useDispatch)(_)),{enableComplementaryArea:a,disableComplementaryArea:l}=(0,P0.useDispatch)(Te),c=!!r,u=()=>{r&&s(r)};return(0,Vs.jsx)(HP,{className:"editor-revisions-header",toolbar:(0,Vs.jsx)(C0.Button,{__next40pxDefaultSize:!0,size:"compact",icon:jd,label:(0,ad._x)("Show changes","revisions"),isPressed:e,onClick:t}),center:(0,Vs.jsx)(YJ,{}),settings:(0,Vs.jsxs)(Vs.Fragment,{children:[(0,Vs.jsx)(Ju,{className:"editor-header__post-preview-button"}),(0,Vs.jsx)(C0.Button,{__next40pxDefaultSize:!0,icon:(0,ad.isRTL)()?Ld:Md,label:(0,ad._x)("Settings","panel button label"),isPressed:o,"aria-expanded":o,onClick:()=>{o?l("core"):a("core",us.document)},size:"compact"}),(0,Vs.jsx)(C0.Button,{__next40pxDefaultSize:!0,variant:"secondary",size:"compact",onClick:()=>n(null),children:(0,ad.__)("Exit")}),(0,Vs.jsx)(C0.Button,{__next40pxDefaultSize:!0,accessibleWhenDisabled:!0,variant:"primary",size:"compact",className:"editor-revisions-header__restore-button",disabled:!c,onClick:u,children:(0,ad.__)("Restore")}),(0,Vs.jsx)(ZP,{disabled:!0})]})})}var T4=VCe;var B$=i(R(),1),Mk=i($(),1),Vk=i(Xe(),1),D$=i(W(),1),L$=i(O(),1),bm=i(N(),1),M$=i(fo(),1);var un=i($(),1),_i=i(N(),1),Rk=i(O(),1),O4=i(Xe(),1),p$=i(W(),1),Ok=i(pe(),1);var C4=i(O(),1),qJ=i(W(),1),wk=i(N(),1),P4=i(E(),1),ZJ=i(R(),1);var KJ=i(x(),1);function XJ({contentRef:e}){let{onNavigateToEntityRecord:t,templateId:r}=(0,C4.useSelect)(a=>{let{getEditorSettings:l,getCurrentTemplateId:c}=a(_);return{onNavigateToEntityRecord:l().onNavigateToEntityRecord,templateId:c()}},[]),o=(0,C4.useSelect)(a=>!!a(qJ.store).canUser("create",{kind:"postType",name:"wp_template"}),[]),[n,s]=(0,wk.useState)(!1);return(0,wk.useEffect)(()=>{let a=c=>{o&&(!c.target.classList.contains("is-root-container")||c.target.dataset?.type==="core/template-part"||c.defaultPrevented||(c.preventDefault(),s(!0)))},l=e.current;return l?.addEventListener("dblclick",a),()=>{l?.removeEventListener("dblclick",a)}},[e,o]),o?(0,KJ.jsx)(ZJ.__experimentalConfirmDialog,{isOpen:n,confirmButtonText:(0,P4.__)("Edit template"),onConfirm:()=>{s(!1),t({postId:r,postType:"wp_template"})},onCancel:()=>s(!1),size:"medium",children:(0,P4.__)("You\u2019ve tried to select a block that is part of a template that may be used elsewhere on your site. Would you like to edit the template?")}):null}var JJ=i(pe(),1),xk=i(O(),1),k4=i($(),1);var jCe=500;function QJ(e,t,r){return Math.min(Math.max(e,t),r)}function zCe(e,t,r){let o=e-QJ(e,r.left,r.right),n=t-QJ(t,r.top,r.bottom);return Math.sqrt(o*o+n*n)}function $J({isEnabled:e=!0}={}){let{getEnabledClientIdsTree:t,getBlockName:r,getBlockOrder:o}=D((0,xk.useSelect)(k4.store)),{selectBlock:n}=(0,xk.useDispatch)(k4.store);return(0,JJ.useRefEffect)(s=>{if(!e)return;let a=(c,u)=>{let d=t().flatMap(({clientId:h})=>{let g=r(h);if(g==="core/template-part")return[];if(g==="core/post-content"){let y=o(h);if(y.length)return y}return[h]}),f=1/0,m=null;for(let h of d){let g=s.querySelector(`[data-block="${h}"]`);if(!g)continue;let y=g.getBoundingClientRect(),v=zCe(c,u,y);v<f&&v<jCe&&(f=v,m=h)}m&&n(m)},l=c=>{(c.target===s||c.target.classList.contains("is-root-container"))&&a(c.clientX,c.clientY)};return s.addEventListener("click",l),()=>s.removeEventListener("click",l)},[e])}var Tk=i(O(),1),e$=i(pe(),1),E4=i($(),1);function t$(){let{getSettings:e,isZoomOut:t}=D((0,Tk.useSelect)(E4.store)),{resetZoomLevel:r}=D((0,Tk.useDispatch)(E4.store));return(0,e$.useRefEffect)(o=>{function n(s){if(t()&&!s.defaultPrevented){s.preventDefault();let{__experimentalSetIsInserterOpened:a}=e();typeof a=="function"&&a(!1),r()}}return o.addEventListener("dblclick",n),()=>{o.removeEventListener("dblclick",n)}},[e,t,r])}var r$=i(O(),1),o$=i(pe(),1),Ck=i($(),1),n$=i(Xe(),1),UCe=':root :where(.editor-styles-wrapper)::after {content: ""; display: block; height: 40vh;}';function s$(e){let t=(0,r$.useRegistry)(),r=(0,o$.useRefEffect)(o=>{function n(a){if(a.target!==o&&a.target!==o.parentElement)return;let l=o.lastElementChild;if(!l)return;let c=l.getBoundingClientRect();if(a.clientY<c.bottom)return;a.preventDefault();let u=t.select(Ck.store).getBlockOrder(""),d=u[u.length-1],f=t.select(Ck.store).getBlock(d),{selectBlock:m,insertDefaultBlock:h}=t.dispatch(Ck.store);f&&(0,n$.isUnmodifiedDefaultBlock)(f)?m(d):h()}let{ownerDocument:s}=o;return s.addEventListener("pointerdown",n),()=>{s.removeEventListener("pointerdown",n)}},[t]);return e?[r,UCe]:[]}var Pk=i(O(),1),i$=i(pe(),1),A4=i($(),1);function a$(){let{getEditedContentOnlySection:e}=D((0,Pk.useSelect)(A4.store)),{stopEditingContentOnlySection:t}=D((0,Pk.useDispatch)(A4.store));return(0,i$.useRefEffect)(r=>{function o(n){let s=e();if(!s)return;!n.target.closest(`[data-block="${s}"]`)&&!n.defaultPrevented&&(n.preventDefault(),t())}return r.addEventListener("click",o),()=>{r.removeEventListener("click",o)}},[e,t])}var kk=i(O(),1),u$=i(pe(),1),d$=i(Xe(),1),k0=i(W(),1),Ek=i($(),1),Qa=i(R(),1),ym=i(N(),1),da=i(E(),1);var Rc=i(E(),1),R4={"authentication-failed":{title:(0,Rc.__)("Unable to connect"),description:(0,Rc.__)("Real-time collaboration couldn't verify your permissions. Check that you have access to edit this post, or contact your site administrator."),canRetry:!1},"connection-expired":{title:(0,Rc.__)("Connection expired"),description:(0,Rc.__)("Your connection to real-time collaboration has timed out. Editing is paused to prevent conflicts with other editors."),canRetry:!0},"connection-limit-exceeded":{title:(0,Rc.__)("Too many editors connected"),description:(0,Rc.__)("Real-time collaboration has reached its connection limit. Try again later or contact your site administrator."),canRetry:!0},"unknown-error":{title:(0,Rc.__)("Connection lost"),description:(0,Rc.__)("The connection to real-time collaboration was interrupted. Editing is paused to prevent conflicts with other editors."),canRetry:!0}};function l$(e){return R4[e?.code]?R4[e.code]:R4["unknown-error"]}var ld=i(N(),1),HCe=600;function c$(e,t){let[r,o]=(0,ld.useState)(null),[n,s]=(0,ld.useState)(!1),a=(0,ld.useRef)(null),l=()=>s(!0);return(0,ld.useEffect)(()=>{if(!n)return;let u=setTimeout(()=>s(!1),HCe);return()=>clearTimeout(u)},[n]),(0,ld.useEffect)(()=>{if(t==="connected"){o(null),a.current=null;return}if(t!=="disconnected"||!e)return;let u=Date.now()+e;a.current=u,o(Math.ceil(e/1e3));let d=setInterval(()=>{let f=Math.ceil((a.current-Date.now())/1e3);o(Math.max(0,f)),f<=0&&(clearInterval(d),s(!0))},1e3);return()=>clearInterval(d)},[e,t]),{secondsRemaining:n?0:r,markRetrying:l}}var ua=i(x(),1),{BlockCanvasCover:GCe}=D(Ek.privateApis),{retrySyncConnection:WCe}=D(k0.privateApis),YCe=5e3,qCe=2e3;function f$(){let{connectionState:e,postType:t}=(0,kk.useSelect)(b=>{let S=b(_).getCurrentPostType();return{connectionState:b(k0.store).getSyncConnectionStatus()||null,postType:S?b(k0.store).getPostType(S):null}},[]),{secondsRemaining:r,markRetrying:o}=c$(e?.retryInMs,e?.status),n=(0,u$.useCopyToClipboard)(()=>{let b=(0,kk.select)(Ek.store).getBlocks();return(0,d$.serialize)(b)}),[s,a]=(0,ym.useState)(null),l=(0,ym.useRef)(null),c=(0,ym.useRef)(!1),u=e?.status,d=e?.error?.code;if((0,ym.useEffect)(()=>{if(l.current&&(clearTimeout(l.current),l.current=null),u==="connected")c.current=!0,a(null);else if(u==="disconnected"){let b=()=>{c.current=!0,a(l$({code:d}))};c.current?l.current=setTimeout(b,qCe):l.current=setTimeout(b,YCe)}return()=>{l.current&&clearTimeout(l.current)}},[u,d]),!s)return null;let{title:f,description:m,canRetry:h}=s,g;r>0?g=(0,da.sprintf)((0,da._n)("Retrying connection in %d second\u2026","Retrying connection in %d seconds\u2026",r),r):r===0&&(g=(0,da.__)("Retrying\u2026"));let y="edit.php";t?.slug&&(y=`edit.php?post_type=${t.slug}`);let v=r===0;return(0,ua.jsx)(GCe.Fill,{children:(0,ua.jsx)(Qa.Modal,{overlayClassName:"editor-sync-connection-modal",isDismissible:!1,onRequestClose:()=>{},shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,size:"medium",title:f,children:(0,ua.jsxs)(Qa.__experimentalVStack,{spacing:6,children:[(0,ua.jsx)("p",{children:m}),g&&(0,ua.jsx)("p",{className:"editor-sync-connection-modal__retry-countdown",children:g}),(0,ua.jsxs)(Qa.__experimentalHStack,{justify:"right",children:[(0,ua.jsx)(Qa.Button,{__next40pxDefaultSize:!0,href:y,isDestructive:!0,variant:"tertiary",children:(0,da.sprintf)((0,da.__)("Back to %s"),t?.labels?.name??(0,da.__)("Posts"))}),(0,ua.jsx)(Qa.Button,{__next40pxDefaultSize:!0,ref:n,variant:h?"secondary":"primary",children:(0,da.__)("Copy Post Content")}),h&&(0,ua.jsx)(Qa.Button,{__next40pxDefaultSize:!0,"aria-disabled":v,isBusy:v,variant:"primary",onClick:()=>{v||(o(),WCe())},children:(0,da.__)("Retry")})]})]})})})}var Eo=i(x(),1),{LayoutStyle:Ak,useLayoutClasses:ZCe,useLayoutStyles:KCe,ExperimentalBlockCanvas:XCe,useFlashEditableBlocks:QCe}=D(un.privateApis);function I4(e){for(let t=0;t<e.length;t++){if(e[t].name==="core/post-content")return e[t].attributes;if(e[t].innerBlocks.length){let r=I4(e[t].innerBlocks);if(r)return r}}}function m$(e){for(let t=0;t<e.length;t++)if(e[t].name==="core/post-content")return!0;return!1}function JCe({autoFocus:e,disableIframe:t=!1,iframeProps:r,contentRef:o,className:n}){let s=(0,Ok.useViewportMatch)("small","<"),{renderingMode:a,postContentAttributes:l,editedPostTemplate:c={},wrapperBlockName:u,wrapperUniqueId:d,deviceType:f,isFocusedEntity:m,isDesignPostType:h,postType:g,isPreview:y,styles:v,canvasMinHeight:b}=(0,Rk.useSelect)(Ze=>{let{getCurrentPostId:je,getCurrentPostType:rt,getCurrentTemplateId:Tt,getEditorSettings:ae,getRenderingMode:J,getDeviceType:ie,getCanvasMinHeight:te}=D(Ze(_)),{getPostType:le,getEditedEntityRecord:ze}=Ze(p$.store),ke=rt(),Ne=J(),Je;ke===Ys?Je="core/block":Ne==="post-only"&&(Je="core/post-content");let Ie=ae(),Se=Ie.supportsTemplateMode,ht=le(ke),Jr=Tt(),yn=Jr?ze("postType",_t,Jr):void 0;return{renderingMode:Ne,postContentAttributes:Ie.postContentAttributes,isDesignPostType:Kc.includes(ke),editedPostTemplate:ht?.viewable&&Se?yn:void 0,wrapperBlockName:Je,wrapperUniqueId:je(),deviceType:ie(),isFocusedEntity:!!Ie.onNavigateToPreviousEntityRecord,postType:ke,isPreview:Ie.isPreviewMode,styles:Ie.styles,canvasMinHeight:te()}},[]),{isCleanNewPost:S}=(0,Rk.useSelect)(_),{hasRootPaddingAwareAlignments:w,themeHasDisabledLayoutStyles:T,themeSupportsLayout:C,isZoomedOut:A}=(0,Rk.useSelect)(Ze=>{let{getSettings:je,isZoomOut:rt}=D(Ze(un.store)),Tt=je();return{themeHasDisabledLayoutStyles:Tt.disableLayoutStyles,themeSupportsLayout:Tt.supportsLayout,hasRootPaddingAwareAlignments:Tt.__experimentalFeatures?.useRootPaddingAwareAlignments,isZoomedOut:rt()}},[]),F=(0,_i.useRef)(),L=(0,un.__experimentalUseResizeCanvas)(f),[j]=(0,un.useSettings)("layout"),z=(0,_i.useMemo)(()=>a!=="post-only"||h?{type:"default"}:C?{...j,type:"constrained"}:{type:"default"},[a,C,j,h]),M=(0,_i.useMemo)(()=>{if(!c?.content&&!c?.blocks&&l)return l;if(c?.blocks)return I4(c?.blocks);let Ze=typeof c?.content=="string"?c?.content:"";return I4((0,O4.parse)(Ze))||{}},[c?.content,c?.blocks,l]),k=(0,_i.useMemo)(()=>{if(!c?.content&&!c?.blocks)return!1;if(c?.blocks)return m$(c?.blocks);let Ze=typeof c?.content=="string"?c?.content:"";return m$((0,O4.parse)(Ze))||!1},[c?.content,c?.blocks]),{layout:I={},align:U=""}=M||{},G=ZCe(M,"core/post-content"),Y=re({"is-layout-flow":!C},C&&G,U&&`align${U}`),Z=KCe(M,"core/post-content",".block-editor-block-list__layout.is-root-container"),B=(0,_i.useMemo)(()=>I&&(I?.type==="constrained"||I?.inherit||I?.contentSize||I?.wideSize)?{...j,...I,type:"constrained"}:{...j,...I,type:"default"},[I?.type,I?.inherit,I?.contentSize,I?.wideSize,j]),V=l?B:z,H=V?.type==="default"&&!k?z:V,X=(0,un.__unstableUseTypingObserver)(),ne=(0,_i.useRef)();(0,_i.useEffect)(()=>{!e||!S()||ne?.current?.focus()},[e,S]);let se=`.is-root-container.alignwide { max-width: var(--wp--style--global--wide-size); margin-left: auto; margin-right: auto;}
.is-root-container.alignwide:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: var(--wp--style--global--wide-size);}
.is-root-container.alignfull { max-width: none; margin-left: auto; margin-right: auto;}
.is-root-container.alignfull:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: none;}`,ye=[Dd,Ur,Ys].includes(g)&&!y&&!s&&!A,qe=(0,_i.useMemo)(()=>{if(!F.current)return b;let{ownerDocument:Ze}=F.current,je=Ze.documentElement.scrollTop||Ze.body.scrollTop;return b+je},[b]),[ge,oe]=s$(!y&&a==="post-only"&&!h),ve=(0,_i.useMemo)(()=>[...v??[],{css:`:where(.block-editor-iframe__body){display:flow-root;${qe?`min-height:${qe}px;`:""}}.is-root-container{display:flow-root;${ye?"min-height:0!important;":""}}
${oe||""}
${ye?".block-editor-iframe__html{background:var(--wp-editor-canvas-background);display:flex;align-items:center;justify-content:center;min-height:100vh;}.block-editor-iframe__body{width:100%;}":""}`}],[v,ye,qe,oe]),De=(0,un.__unstableUseTypewriter)();return o=(0,Ok.useMergeRefs)([F,o,a==="post-only"?De:null,QCe({isEnabled:a==="template-locked"}),$J({isEnabled:a==="template-locked"}),t$(),ge,a$()]),(0,Eo.jsxs)("div",{className:re("editor-visual-editor","edit-post-visual-editor",n,{"has-padding":m||ye,"is-resizable":ye,"is-iframed":!t}),children:[(0,Eo.jsx)(f$,{}),(0,Eo.jsx)(vh,{enableResizing:ye,height:"100%",children:(0,Eo.jsxs)(XCe,{shouldIframe:!t,contentRef:o,styles:ve,height:"100%",iframeProps:{...r,style:{...r?.style,...L}},children:[C&&!T&&a==="post-only"&&!h&&(0,Eo.jsxs)(Eo.Fragment,{children:[(0,Eo.jsx)(Ak,{selector:".editor-visual-editor__post-title-wrapper",layout:z}),(0,Eo.jsx)(Ak,{selector:".block-editor-block-list__layout.is-root-container",layout:H}),U&&(0,Eo.jsx)(Ak,{css:se}),Z&&(0,Eo.jsx)(Ak,{layout:B,css:Z})]}),a==="post-only"&&!h&&(0,Eo.jsx)("div",{className:re("editor-visual-editor__post-title-wrapper","edit-post-visual-editor__post-title-wrapper",{"has-global-padding":w}),contentEditable:!1,ref:X,style:{marginTop:"4rem"},children:(0,Eo.jsx)(yP,{ref:ne})}),(0,Eo.jsxs)(un.RecursionProvider,{blockName:u,uniqueId:d,children:[(0,Eo.jsx)(un.BlockList,{className:re("is-"+f.toLowerCase()+"-preview",a!=="post-only"||h?"wp-site-blocks":`${Y} wp-block-post-content`,{"has-global-padding":a==="post-only"&&!h&&w}),layout:V,dropZoneElement:t?F.current:F.current?.parentNode,__unstableDisableDropZone:a==="template-locked"}),a==="template-locked"&&(0,Eo.jsx)(XJ,{contentRef:F})]})]})})]})}var Ik=JCe;var Tg=i(E(),1),Fk=i(Pb(),1),h$=[{name:"revision/diff-removed",title:(0,Tg.__)("Removed"),tagName:"del",className:"revision-diff-removed"},{name:"revision/diff-added",title:(0,Tg.__)("Added"),tagName:"ins",className:"revision-diff-added"},{name:"revision/diff-format-added",title:(0,Tg.__)("Format added"),tagName:"span",className:"revision-diff-format-added"},{name:"revision/diff-format-removed",title:(0,Tg.__)("Format removed"),tagName:"span",className:"revision-diff-format-removed"},{name:"revision/diff-format-changed",title:(0,Tg.__)("Format changed"),tagName:"span",className:"revision-diff-format-changed"}];function g$(){for(let e of h$)(0,Fk.registerFormatType)(e.name,{...e,attributes:{title:"title"},edit:()=>null})}function v$(){for(let e of h$)(0,Fk.unregisterFormatType)(e.name)}var js=i(N(),1),Bk=i(pe(),1),y$=i(O(),1),Dk=i($(),1),E0=i(E(),1);var Nk=i(x(),1),{useBlockElementRef:$Ce}=D(Dk.privateApis);function b$(e){let t=[];for(let r of e)r.__revisionDiffStatus&&t.push({clientId:r.clientId,status:r.__revisionDiffStatus}),r.innerBlocks?.length&&t.push(...b$(r.innerBlocks));return t}var ePe={added:(0,E0.__)("Go to added block"),removed:(0,E0.__)("Go to removed block"),modified:(0,E0.__)("Go to modified block")};function F4(e){if(!e)return null;let t=e.ownerDocument,r=t.documentElement.scrollHeight,o=e.getBoundingClientRect(),n=t.documentElement.scrollTop;return{top:(o.top+n)/r*100,height:o.height/r*100}}function tPe({clientId:e,status:t,subscribe:r}){let o=(0,js.useRef)();$Ce(e,o);let[n,s]=(0,js.useState)(()=>F4(o.current));return(0,js.useEffect)(()=>r(()=>{s(F4(o.current))}),[r]),(0,js.useEffect)(()=>{s(F4(o.current))},[t]),n?(0,Nk.jsx)("button",{className:`revision-diff-marker is-${t}`,style:{top:`${n.top}%`,height:`${Math.max(n.height,.5)}%`},onClick:()=>o.current?.focus(),"aria-label":ePe[t]}):null}function S$(){let[e,t]=(0,js.useState)(!1),r=(0,js.useRef)(new Set),o=(0,y$.useSelect)(l=>l(Dk.store).getBlocks(),[]),n=(0,js.useMemo)(()=>b$(o),[o]),s=(0,js.useCallback)(l=>(r.current.add(l),()=>r.current.delete(l)),[]),a=(0,Bk.useRefEffect)(l=>{let{ownerDocument:c}=l,{defaultView:u}=c,d=new u.ResizeObserver(()=>{r.current.forEach(f=>f())});return d.observe(c.body),()=>{d.disconnect()}},[]);return[(0,Bk.useMergeRefs)([a,t]),(0,Nk.jsx)("div",{className:"revision-diff-markers",role:"navigation","aria-label":(0,E0.__)("Diff markers"),children:e&&n.map(({clientId:l,status:c})=>(0,Nk.jsx)(tPe,{clientId:l,status:c,subscribe:s},l))},"diff-markers")]}var w$=i(D4(),1);function L4(e,t){if(!t?.length||!e?.length)return e;let r=e.map(c=>c.name),o=t.map(c=>c.name),n=(0,w$.diffArrays)(o,r),s=0,a=0,l=[];for(let c of n)if(c.removed)a+=c.count;else if(c.added)for(let u=0;u<c.count;u++)l.push(e[s++]);else for(let u=0;u<c.count;u++){let d=e[s++],f=t[a++];l.push({...d,clientId:f.clientId,innerBlocks:L4(d.innerBlocks,f.innerBlocks)})}return l}var A$=i(D4(),1),j4=i(P$(),1),V4=i(E$(),1),Lk=i(Xe(),1),io=i(Pb(),1),dn=i(E(),1);var{parseRawBlock:R$}=D(Lk.privateApis);function mPe(e,t){if(!e&&!t)return 1;if(!e||!t)return 0;let o=(0,j4.diffWords)(e,t).filter(s=>!s.added&&!s.removed).reduce((s,a)=>s+a.value.length,0),n=Math.max(e.length,t.length);return n>0?o/n:0}function pPe(e){let t=[],r=[];if(e.forEach((a,l)=>{let c=a.__revisionDiffStatus;c==="removed"?t.push({block:a,index:l}):c==="added"&&r.push({block:a,index:l})}),t.length===0||r.length===0)return e;let o=new Set,n=new Map,s=.3;for(let a of t){let l=null,c=0;for(let u of r){if(n.has(u.index)||u.block.blockName!==a.block.blockName)continue;let d=mPe(a.block.innerHTML||"",u.block.innerHTML||""),f=JSON.stringify(a.block.attrs)===JSON.stringify(u.block.attrs);d>c&&d>s&&(d<1||!f)&&(c=d,l=u)}l&&(o.add(a.index),n.set(l.index,{...l.block,__revisionDiffStatus:"modified",__previousRawBlock:a.block}))}return e.map((a,l)=>o.has(l)?null:n.has(l)?n.get(l):a).filter(Boolean)}function O$(e,t){let r=u=>JSON.stringify({name:u.blockName,attrs:u.attrs,html:(u.innerContent||[]).filter(d=>d!==null&&d.trim()!=="")}),o=e.map(r),n=t.map(r),s=(0,A$.diffArrays)(n,o),a=[],l=0,c=0;for(let u of s)if(u.added)for(let d=0;d<u.count;d++)a.push({...e[l++],__revisionDiffStatus:"added"});else if(u.removed)for(let d=0;d<u.count;d++)a.push({...t[c++],__revisionDiffStatus:"removed"});else for(let d=0;d<u.count;d++){let f=e[l++],m=t[c++],h=O$(f.innerBlocks||[],m.innerBlocks||[]);a.push({...f,innerBlocks:h})}return pPe(a)}function hPe(e,t,r,o){let n=e[r]||[],s=t[o]||[];if(n.length!==s.length)return!0;for(let a of n)if(!s.find(c=>c.type===a.type&&JSON.stringify(c.attributes)===JSON.stringify(a.attributes)))return!0;return!1}function gPe(e,t,r,o){let n=e[r]||[],s=t[o]||[],a=0,l=0,c=0;for(let d of n){let f=s.find(m=>m.type===d.type);f?JSON.stringify(d.attributes)!==JSON.stringify(f.attributes)&&c++:a++}for(let d of s)n.find(m=>m.type===d.type)||l++;if(a>0&&l===0&&c===0)return{type:"added",description:(0,dn.sprintf)((0,dn._n)("%d format added","%d formats added",a),a)};if(l>0&&a===0&&c===0)return{type:"removed",description:(0,dn.sprintf)((0,dn._n)("%d format removed","%d formats removed",l),l)};let u=[];return a>0&&u.push((0,dn.sprintf)((0,dn._n)("%d format added","%d formats added",a),a)),l>0&&u.push((0,dn.sprintf)((0,dn._n)("%d format removed","%d formats removed",l),l)),c>0&&u.push((0,dn.sprintf)((0,dn._n)("%d format changed","%d formats changed",c),c)),{type:"changed",description:u.join(", ")||(0,dn.__)("Formatting changed")}}function vPe(e,t){let r=e.toPlainText(),o=t.toPlainText(),n=(0,j4.diffWords)(o,r),s=(0,io.create)({text:""}),a=0,l=0;for(let c of n)if(c.removed){let u=(0,io.slice)(t,l,l+c.value.length),d=(0,io.applyFormat)(u,{type:"revision/diff-removed",attributes:{title:(0,dn.__)("Removed")}},0,c.value.length);s=(0,io.concat)(s,d),l+=c.value.length}else if(c.added){let u=(0,io.slice)(e,a,a+c.value.length),d=(0,io.applyFormat)(u,{type:"revision/diff-added",attributes:{title:(0,dn.__)("Added")}},0,c.value.length);s=(0,io.concat)(s,d),a+=c.value.length}else{let u=e.formats||[],d=t.formats||[],f=c.value.length,m=y=>hPe(u,d,a+y,l+y),h=0,g=m(0);for(let y=1;y<=f;y++){let v=y<f&&m(y);if(y===f||v!==g){let b=(0,io.slice)(e,a+h,a+y);if(g){let{type:S,description:w}=gPe(u,d,a+h,l+h),T={added:"revision/diff-format-added",removed:"revision/diff-format-removed",changed:"revision/diff-format-changed"}[S],C=(0,io.applyFormat)(b,{type:T,attributes:{title:w}},0,y-h);s=(0,io.concat)(s,C)}else s=(0,io.concat)(s,b);h=y,g=v}}a+=c.value.length,l+=c.value.length}return new io.RichTextData(s)}function yPe(e,t){let r=(0,Lk.getBlockType)(e.name);if(r){for(let[o,n]of Object.entries(r.attributes))if(n.source==="rich-text"){let s=e.attributes[o],a=t.attributes[o];s instanceof io.RichTextData&&a instanceof io.RichTextData&&(e.attributes[o]=vPe(s,a))}}}function I$(e,t){if(t.__revisionDiffStatus&&(e.__revisionDiffStatus=t.__revisionDiffStatus),t.__revisionDiffStatus==="modified"&&t.__previousRawBlock){let r=R$(t.__previousRawBlock);r&&yPe(e,r)}if(e.innerBlocks&&t.innerBlocks)for(let r=0;r<e.innerBlocks.length;r++){let o=e.innerBlocks[r],n=t.innerBlocks[r];o&&n&&I$(o,n)}}function F$(e,t){let r=(0,V4.parse)(e||""),o=(0,V4.parse)(t||"");return O$(r,o).map(s=>{let a=R$(s);return a&&I$(a,s),a}).filter(Boolean)}var ds=i(x(),1),{ExperimentalBlockEditorProvider:bPe,usePrivateStyleOverride:N$}=D(Mk.privateApis),SPe=`
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 0 0"
width="0"
height="0"
focusable="false"
role="none"
aria-hidden="true"
style="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"
>
<defs>
<filter id="revision-removed-filter" x="0" y="0" width="100%" height="100%">
<!-- Desaturate and add red tint -->
<feColorMatrix type="matrix"
values="0.5 0.3 0.2 0 0.15
0.2 0.2 0.1 0 0
0.2 0.2 0.1 0 0
0 0 0 0.8 0"/>
</filter>
</defs>
</svg>
`,_Pe=`
.is-revision-added {
box-shadow: inset 0 0 0 9999px color-mix(in srgb, currentColor 5%, #00a32a 15%), 0 0 0 4px color-mix(in srgb, currentColor 5%, #00a32a 15%);
}
.is-revision-removed,
.revision-diff-removed {
text-decoration: line-through;
filter: url(#revision-removed-filter);
}
.is-revision-modified {
outline: 2px solid color-mix(in srgb, currentColor 30%, #dba617 70%) !important;
outline-offset: 2px;
}
.revision-diff-added {
background-color: color-mix(in srgb, currentColor 5%, #00a32a 15%);
text-decoration: none;
}
.revision-diff-format-added {
text-decoration: underline wavy color-mix(in srgb, currentColor 30%, #00a32a 70%);
text-decoration-thickness: 2px;
}
.revision-diff-format-removed {
text-decoration: underline wavy color-mix(in srgb, currentColor 20%, #d63638 80%);
text-decoration-thickness: 2px;
}
.revision-diff-format-changed {
text-decoration: underline wavy color-mix(in srgb, currentColor 30%, #dba617 70%);
text-decoration-thickness: 2px;
}
`;function wPe(e){return t=>{let{block:r,className:o}=t,n=r?.__revisionDiffStatus,s=re(o,{"is-revision-added":n==="added","is-revision-removed":n==="removed","is-revision-modified":n==="modified"});return(0,ds.jsx)(e,{...t,className:s})}}var xPe="editor/revisions-canvas/withRevisionDiffClasses";(0,M$.addFilter)("editor.BlockListBlock",xPe,wPe);function TPe({showDiff:e}){return N$({css:e?_Pe:""}),N$({assets:e?SPe:"",__unstableType:"svgs"}),null}function CPe({showDiff:e}){let[t,r]=S$();return(0,ds.jsxs)(ds.Fragment,{children:[(0,ds.jsx)(Ik,{contentRef:t}),e&&r]})}function z4({showDiff:e}){(0,bm.useEffect)(()=>(g$(),()=>{v$()}),[]);let{revision:t,previousRevision:r,postType:o,blockEditorSettings:n}=(0,L$.useSelect)(c=>{let{getCurrentRevision:u,getPreviousRevision:d,getCurrentPostType:f}=D(c(_));return{revision:u(),previousRevision:d(),postType:f(),blockEditorSettings:c(Mk.store).getSettings()}},[]),s=(0,bm.useRef)([]),a=(0,bm.useMemo)(()=>{let c=t?.content?.raw??"",u;if(e){let f=r?.content?.raw||"";u=F$(c,f)}else u=(0,Vk.parse)(c);o==="wp_navigation"&&(u=[(0,Vk.createBlock)("core/navigation",{templateLock:!1},u)]);let d=L4(u,s.current);return s.current=d,d},[t?.content?.raw,r?.content?.raw,o,e]),l=(0,bm.useMemo)(()=>({...n,isPreviewMode:!0}),[n]);return t?(0,ds.jsx)(D$.EntityProvider,{revisionId:t.id,children:(0,ds.jsxs)(bPe,{value:a,settings:l,children:[(0,ds.jsx)(TPe,{showDiff:e}),(0,ds.jsx)("div",{className:"editor-revisions-canvas__content",children:(0,ds.jsx)(CPe,{showDiff:e})})]})}):(0,ds.jsx)("div",{className:"editor-revisions-canvas__loading",children:(0,ds.jsx)(B$.Spinner,{})})}var zk=i(O(),1),jk=i(N(),1),wi=i(E(),1),V$=i(ct(),1),j$=i(W(),1);var{useOnCollaboratorJoin:PPe,useOnCollaboratorLeave:kPe,useOnPostSave:EPe}=D(j$.privateApis),U4={COLLAB_POST_UPDATED:"collab-post-updated",COLLAB_USER_ENTERED:"collab-user-entered",COLLAB_USER_EXITED:"collab-user-exited"},H4={userEntered:!0,userExited:!0,postUpdated:!0},G4=["publish","private","future"];function APe(e,t,r){return r?(0,wi.sprintf)((0,wi.__)("Post published by %s."),e):G4.includes(t)?(0,wi.sprintf)((0,wi.__)("Post updated by %s."),e):(0,wi.sprintf)((0,wi.__)("Draft saved by %s."),e)}function z$(e,t){let{postStatus:r,isCollaborationEnabled:o}=(0,zk.useSelect)(l=>{let c=l(_);return{postStatus:c.getCurrentPostAttribute("status"),isCollaborationEnabled:c.isCollaborationEnabledForCurrentPost()}},[]),{createNotice:n}=(0,zk.useDispatch)(V$.store),s=o?e:null,a=o?t:null;PPe(s,a,(0,jk.useCallback)((l,c)=>{H4.userEntered&&(c&&l.collaboratorInfo.enteredAt<c.collaboratorInfo.enteredAt||n("info",(0,wi.sprintf)((0,wi.__)("%s has joined the post."),l.collaboratorInfo.name),{id:`${U4.COLLAB_USER_ENTERED}-${l.collaboratorInfo.id}`,type:"snackbar",isDismissible:!1}))},[n])),kPe(s,a,(0,jk.useCallback)(l=>{H4.userExited&&n("info",(0,wi.sprintf)((0,wi.__)("%s has left the post."),l.collaboratorInfo.name),{id:`${U4.COLLAB_USER_EXITED}-${l.collaboratorInfo.id}`,type:"snackbar",isDismissible:!1})},[n])),EPe(s,a,(0,jk.useCallback)((l,c,u)=>{if(!H4.postUpdated||!r)return;let d=l.postStatus??r??"draft",f=u?.postStatus??r,m=!(f&&G4.includes(f))&&G4.includes(d),h=APe(c.collaboratorInfo.name,d,m);n("info",h,{id:`${U4.COLLAB_POST_UPDATED}-${c.collaboratorInfo.id}`,type:"snackbar",isDismissible:!1})},[n,r]))}var Uk=i(O(),1),I0=i(R(),1),W4=i(E(),1),U$=i(N(),1);var xi=i(x(),1),{Fill:Hst,Slot:RPe}=(0,I0.createSlotFill)("ActionsPanel");function H$({setEntitiesSavedStatesCallback:e,closeEntitiesSavedStates:t,isEntitiesSavedStatesOpen:r,forceIsDirtyPublishPanel:o}){let{closePublishSidebar:n,togglePublishSidebar:s}=(0,Uk.useDispatch)(_),{publishSidebarOpened:a,isPublishable:l,isDirty:c,hasOtherEntitiesChanges:u}=(0,Uk.useSelect)(m=>{let{isPublishSidebarOpened:h,isEditedPostPublishable:g,isCurrentPostPublished:y,isEditedPostDirty:v,hasNonPostEntityChanges:b}=m(_),S=b();return{publishSidebarOpened:h(),isPublishable:!y()&&g(),isDirty:S||v(),hasOtherEntitiesChanges:S}},[]),d=(0,U$.useCallback)(()=>e(!0),[]),f;return a?f=(0,xi.jsx)(VC,{onClose:n,forceIsDirty:o,PrePublishExtension:IT.Slot,PostPublishExtension:ET.Slot}):l&&!u?f=(0,xi.jsx)("div",{className:"editor-layout__toggle-publish-panel",children:(0,xi.jsx)(I0.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:s,"aria-expanded":!1,children:(0,W4.__)("Open publish panel")})}):f=(0,xi.jsx)("div",{className:"editor-layout__toggle-entities-saved-states-panel",children:(0,xi.jsx)(I0.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:d,"aria-expanded":!1,"aria-haspopup":"dialog",disabled:!c,accessibleWhenDisabled:!0,children:(0,W4.__)("Open save panel")})}),(0,xi.jsxs)(xi.Fragment,{children:[r&&(0,xi.jsx)(dT,{close:t,renderDialog:!0}),(0,xi.jsx)(RPe,{bubblesVirtually:!0}),!r&&f]})}var G$=i(R(),1),Hk=i(O(),1),Y4=i(E(),1),W$=i(Es(),1),Gk=i(N(),1);var Oc=i(x(),1);function Y$({autoFocus:e=!1}){let{switchEditorMode:t}=(0,Hk.useDispatch)(_),{shortcut:r,isRichEditingEnabled:o}=(0,Hk.useSelect)(s=>{let{getEditorSettings:a}=s(_),{getShortcutRepresentation:l}=s(W$.store);return{shortcut:l("core/editor/toggle-mode"),isRichEditingEnabled:a().richEditingEnabled}},[]),n=(0,Gk.useRef)();return(0,Gk.useEffect)(()=>{e||n?.current?.focus()},[e]),(0,Oc.jsxs)("div",{className:"editor-text-editor",children:[o&&(0,Oc.jsxs)("div",{className:"editor-text-editor__toolbar",children:[(0,Oc.jsx)("h2",{children:(0,Y4.__)("Editing code")}),(0,Oc.jsx)(G$.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t("visual"),shortcut:r,children:(0,Y4.__)("Exit code editor")})]}),(0,Oc.jsxs)("div",{className:"editor-text-editor__body",children:[(0,Oc.jsx)(SP,{ref:n}),(0,Oc.jsx)(o0,{})]})]})}var Wk=i(N(),1),q$=i(x(),1),Z$=(0,Wk.createContext)(void 0);function F0({value:e,onChange:t,settings:r={},children:o}){let n={media:e,onChange:t,fields:r.fields||[]};return(0,q$.jsx)(Z$.Provider,{value:n,children:o})}function Yk(){let e=(0,Wk.useContext)(Z$);if(!e)throw new Error("useMediaEditorContext must be used within MediaEditorProvider");return e}var K$=i(R(),1),X$=i(N(),1),qk=i(E(),1);function q4(e){return e?e.startsWith("image/")?{type:"image"}:e.startsWith("video/")?{type:"video"}:e.startsWith("audio/")?{type:"audio"}:{type:"application"}:{type:"application"}}var Ao=i(x(),1);function OPe({mediaType:e,mediaUrl:t,altText:r,displayTitle:o,mimeType:n,onLoad:s,onError:a,loadingState:l}){switch(e.type){case"image":return(0,Ao.jsx)("img",{className:l==="loaded"?"loaded":"",src:t,alt:r||"",onLoad:s,onError:a});case"video":return(0,Ao.jsx)("video",{src:t,controls:!0,onError:a,children:o});case"audio":return(0,Ao.jsx)("audio",{src:t,controls:!0,onError:a,children:o});default:return(0,Ao.jsxs)("div",{className:"media-editor-preview__file-info",children:[(0,Ao.jsx)("p",{className:"media-editor-preview__file-name",children:o}),(0,Ao.jsx)("p",{className:"media-editor-preview__mime-type",children:n}),(0,Ao.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"media-editor-preview__download-link",children:(0,qk.__)("View file")})]})}}function Z4(e){let[t,r]=(0,X$.useState)("loading"),{media:o}=Yk(),{source_url:n,mime_type:s,alt_text:a,title:l}=o||{},c=q4(s);if(!n)return(0,Ao.jsx)("div",{className:"media-editor-preview media-editor-preview--empty",children:(0,Ao.jsx)("p",{children:(0,qk.__)("No media file available.")})});if(t==="error")return(0,Ao.jsxs)("div",{className:"media-editor-preview media-editor-preview--error",children:[(0,Ao.jsx)("p",{children:(0,qk.__)("Failed to load media file.")}),(0,Ao.jsx)("p",{className:"media-editor-preview__url",children:n})]});let u=typeof l=="string"?l:l?.rendered||l?.raw;return(0,Ao.jsxs)("div",{...e,className:`media-editor-preview media-editor-preview--${c.type}`,children:[c.type==="image"&&t==="loading"&&(0,Ao.jsx)("div",{className:"media-editor-preview__spinner",children:(0,Ao.jsx)(K$.Spinner,{})}),(0,Ao.jsx)(OPe,{mediaType:c,mediaUrl:n,altText:a,displayTitle:u,mimeType:s,onLoad:()=>r("loaded"),onError:()=>r("error"),loadingState:t})]})}var J$=i(Xn(),1),Q$={};function K4(e,t){let r=J$.useRef(Q$);return r.current===Q$&&(r.current=e(t)),r}function X4(e,...t){let r=new URL(`https://base-ui.com/production-error/${e}`);return t.forEach(o=>r.searchParams.append("args[]",o)),`Base UI error #${e}; visit ${r} for the full message.`}var Zk=i(Xn(),1);function Q4(e,t,r,o){let n=K4(eee).current;return IPe(n,e,t,r,o)&&tee(n,[e,t,r,o]),n.callback}function $$(e){let t=K4(eee).current;return FPe(t,e)&&tee(t,e),t.callback}function eee(){return{callback:null,cleanup:null,refs:[]}}function IPe(e,t,r,o,n){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==o||e.refs[3]!==n}function FPe(e,t){return e.refs.length!==t.length||e.refs.some((r,o)=>r!==t[o])}function tee(e,t){if(e.refs=t,t.every(r=>r==null)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),r!=null){let o=Array(t.length).fill(null);for(let n=0;n<t.length;n+=1){let s=t[n];if(s!=null)switch(typeof s){case"function":{let a=s(r);typeof a=="function"&&(o[n]=a);break}case"object":{s.current=r;break}default:}}e.cleanup=()=>{for(let n=0;n<t.length;n+=1){let s=t[n];if(s!=null)switch(typeof s){case"function":{let a=o[n];typeof a=="function"?a():s(null);break}case"object":{s.current=null;break}default:}}}}}}var nee=i(Xn(),1);var ree=i(Xn(),1),NPe=parseInt(ree.version,10);function oee(e){return NPe>=e}function J4(e){if(!nee.isValidElement(e))return null;let t=e,r=t.props;return(oee(19)?r?.ref:t.ref)??null}function N0(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function see(e,t){let r={};for(let o in e){let n=e[o];if(t?.hasOwnProperty(o)){let s=t[o](n);s!=null&&Object.assign(r,s);continue}n===!0?r[`data-${o.toLowerCase()}`]="":n&&(r[`data-${o.toLowerCase()}`]=n.toString())}return r}function iee(e,t){return typeof e=="function"?e(t):e}function aee(e,t){return typeof e=="function"?e(t):e}var D0={};function Pg(e,t,r,o,n){let s={...$4(e,D0)};return t&&(s=B0(s,t)),r&&(s=B0(s,r)),o&&(s=B0(s,o)),n&&(s=B0(s,n)),s}function lee(e){if(e.length===0)return D0;if(e.length===1)return $4(e[0],D0);let t={...$4(e[0],D0)};for(let r=1;r<e.length;r+=1)t=B0(t,e[r]);return t}function B0(e,t){return cee(t)?t(e):BPe(e,t)}function BPe(e,t){if(!t)return e;for(let r in t){let o=t[r];switch(r){case"style":{e[r]=N0(e.style,o);break}case"className":{e[r]=eF(e.className,o);break}default:DPe(r,o)?e[r]=LPe(e[r],o):e[r]=o}}return e}function DPe(e,t){let r=e.charCodeAt(0),o=e.charCodeAt(1),n=e.charCodeAt(2);return r===111&&o===110&&n>=65&&n<=90&&(typeof t=="function"||typeof t>"u")}function cee(e){return typeof e=="function"}function $4(e,t){return cee(e)?e(t):e??D0}function LPe(e,t){return t?e?r=>{if(VPe(r)){let n=r;MPe(n);let s=t(n);return n.baseUIHandlerPrevented||e?.(n),s}let o=t(r);return e?.(r),o}:t:e}function MPe(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function eF(e,t){return t?e?t+" "+e:t:e}function VPe(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var jPe=Object.freeze([]),cd=Object.freeze({});var tF=i(Xn(),1);function uee(e,t,r={}){let o=t.render,n=zPe(t,r);if(r.enabled===!1)return null;let s=r.state??cd;return UPe(e,o,n,s)}function zPe(e,t={}){let{className:r,style:o,render:n}=e,{state:s=cd,ref:a,props:l,stateAttributesMapping:c,enabled:u=!0}=t,d=u?iee(r,s):void 0,f=u?aee(o,s):void 0,m=u?see(s,c):cd,h=u?N0(m,Array.isArray(l)?lee(l):l)??cd:cd;return typeof document<"u"&&(u?Array.isArray(a)?h.ref=$$([h.ref,J4(n),...a]):h.ref=Q4(h.ref,J4(n),a):Q4(null,null)),u?(d!==void 0&&(h.className=eF(h.className,d)),f!==void 0&&(h.style=N0(h.style,f)),h):cd}function UPe(e,t,r,o){if(t){if(typeof t=="function")return t(r,o);let n=Pg(r,t.props);return n.ref=r.ref,Zk.cloneElement(t,n)}if(e&&typeof e=="string")return HPe(e,r);throw new Error(X4(8))}function HPe(e,t){return e==="button"?(0,tF.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,tF.createElement)("img",{alt:"",...t,key:t.key}):Zk.createElement(e,t)}function Kk(){return typeof window<"u"}function _m(e){return fee(e)?(e.nodeName||"").toLowerCase():"#document"}function fs(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fa(e){var t;return(t=(fee(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fee(e){return Kk()?e instanceof Node||e instanceof fs(e).Node:!1}function Ti(e){return Kk()?e instanceof Element||e instanceof fs(e).Element:!1}function ma(e){return Kk()?e instanceof HTMLElement||e instanceof fs(e).HTMLElement:!1}function dee(e){return!Kk()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fs(e).ShadowRoot}var GPe=new Set(["inline","contents"]);function kg(e){let{overflow:t,overflowX:r,overflowY:o,display:n}=Ci(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!GPe.has(n)}var WPe=new Set(["table","td","th"]);function mee(e){return WPe.has(_m(e))}var YPe=[":popover-open",":modal"];function L0(e){return YPe.some(t=>{try{return e.matches(t)}catch{return!1}})}var qPe=["transform","translate","scale","rotate","perspective"],ZPe=["transform","translate","scale","rotate","perspective","filter"],KPe=["paint","layout","strict","content"];function Xk(e){let t=Qk(),r=Ti(e)?Ci(e):e;return qPe.some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||ZPe.some(o=>(r.willChange||"").includes(o))||KPe.some(o=>(r.contain||"").includes(o))}function pee(e){let t=Ic(e);for(;ma(t)&&!wm(t);){if(Xk(t))return t;if(L0(t))return null;t=Ic(t)}return null}function Qk(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var XPe=new Set(["html","body","#document"]);function wm(e){return XPe.has(_m(e))}function Ci(e){return fs(e).getComputedStyle(e)}function M0(e){return Ti(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ic(e){if(_m(e)==="html")return e;let t=e.assignedSlot||e.parentNode||dee(e)&&e.host||fa(e);return dee(t)?t.host:t}function hee(e){let t=Ic(e);return wm(t)?e.ownerDocument?e.ownerDocument.body:e.body:ma(t)&&kg(t)?t:hee(t)}function Sm(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=hee(e),s=n===((o=e.ownerDocument)==null?void 0:o.body),a=fs(n);if(s){let l=Jk(a);return t.concat(a,a.visualViewport||[],kg(n)?n:[],l&&r?Sm(l):[])}return t.concat(n,Sm(n,[],r))}function Jk(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var V0=Math.min,ud=Math.max,j0=Math.round,z0=Math.floor,pa=e=>({x:e,y:e});function gee(e,t){return typeof e=="function"?e(t):e}function $k(e){return e.split("-")[0]}function rF(e){return e.split("-")[1]}function vee(e){return e==="x"?"y":"x"}function yee(e){return e==="y"?"height":"width"}var QPe=new Set(["top","bottom"]);function e2(e){return QPe.has($k(e))?"y":"x"}function bee(e){return vee(e2(e))}function U0(e){let{x:t,y:r,width:o,height:n}=e;return{width:o,height:n,top:r,left:t,right:t+o,bottom:r+n,x:t,y:r}}function See(e,t,r){let{reference:o,floating:n}=e,s=e2(t),a=bee(t),l=yee(a),c=$k(t),u=s==="y",d=o.x+o.width/2-n.width/2,f=o.y+o.height/2-n.height/2,m=o[l]/2-n[l]/2,h;switch(c){case"top":h={x:d,y:o.y-n.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-n.width,y:f};break;default:h={x:o.x,y:o.y}}switch(rF(t)){case"start":h[a]-=m*(r&&u?-1:1);break;case"end":h[a]+=m*(r&&u?-1:1);break}return h}var _ee=async(e,t,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:s=[],platform:a}=r,l=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:f}=See(u,o,c),m=o,h={},g=0;for(let y=0;y<l.length;y++){let{name:v,fn:b}=l[y],{x:S,y:w,data:T,reset:C}=await b({x:d,y:f,initialPlacement:o,placement:m,strategy:n,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});d=S??d,f=w??f,h={...h,[v]:{...h[v],...T}},C&&g<=50&&(g++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(u=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:n}):C.rects),{x:d,y:f}=See(u,m,c)),y=-1)}return{x:d,y:f,placement:m,strategy:n,middlewareData:h}};var JPe=new Set(["left","top"]);async function $Pe(e,t){let{placement:r,platform:o,elements:n}=e,s=await(o.isRTL==null?void 0:o.isRTL(n.floating)),a=$k(r),l=rF(r),c=e2(r)==="y",u=JPe.has(a)?-1:1,d=s&&c?-1:1,f=gee(t,e),{mainAxis:m,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof g=="number"&&(h=l==="end"?g*-1:g),c?{x:h*d,y:m*u}:{x:m*u,y:h*d}}var wee=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;let{x:n,y:s,placement:a,middlewareData:l}=t,c=await $Pe(t,e);return a===((r=l.offset)==null?void 0:r.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+c.x,y:s+c.y,data:{...c,placement:a}}}}};function Pee(e){let t=Ci(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=ma(e),s=n?e.offsetWidth:r,a=n?e.offsetHeight:o,l=j0(r)!==s||j0(o)!==a;return l&&(r=s,o=a),{width:r,height:o,$:l}}function nF(e){return Ti(e)?e:e.contextElement}function Eg(e){let t=nF(e);if(!ma(t))return pa(1);let r=t.getBoundingClientRect(),{width:o,height:n,$:s}=Pee(t),a=(s?j0(r.width):r.width)/o,l=(s?j0(r.height):r.height)/n;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}var eke=pa(0);function kee(e){let t=fs(e);return!Qk()||!t.visualViewport?eke:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tke(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==fs(e)?!1:t}function xm(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),s=nF(e),a=pa(1);t&&(o?Ti(o)&&(a=Eg(o)):a=Eg(e));let l=tke(s,r,o)?kee(s):pa(0),c=(n.left+l.x)/a.x,u=(n.top+l.y)/a.y,d=n.width/a.x,f=n.height/a.y;if(s){let m=fs(s),h=o&&Ti(o)?fs(o):o,g=m,y=Jk(g);for(;y&&o&&h!==g;){let v=Eg(y),b=y.getBoundingClientRect(),S=Ci(y),w=b.left+(y.clientLeft+parseFloat(S.paddingLeft))*v.x,T=b.top+(y.clientTop+parseFloat(S.paddingTop))*v.y;c*=v.x,u*=v.y,d*=v.x,f*=v.y,c+=w,u+=T,g=fs(y),y=Jk(g)}}return U0({width:d,height:f,x:c,y:u})}function t2(e,t){let r=M0(e).scrollLeft;return t?t.left+r:xm(fa(e)).left+r}function Eee(e,t){let r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-t2(e,r),n=r.top+t.scrollTop;return{x:o,y:n}}function rke(e){let{elements:t,rect:r,offsetParent:o,strategy:n}=e,s=n==="fixed",a=fa(o),l=t?L0(t.floating):!1;if(o===a||l&&s)return r;let c={scrollLeft:0,scrollTop:0},u=pa(1),d=pa(0),f=ma(o);if((f||!f&&!s)&&((_m(o)!=="body"||kg(a))&&(c=M0(o)),ma(o))){let h=xm(o);u=Eg(o),d.x=h.x+o.clientLeft,d.y=h.y+o.clientTop}let m=a&&!f&&!s?Eee(a,c):pa(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+d.x+m.x,y:r.y*u.y-c.scrollTop*u.y+d.y+m.y}}function oke(e){return Array.from(e.getClientRects())}function nke(e){let t=fa(e),r=M0(e),o=e.ownerDocument.body,n=ud(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ud(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),a=-r.scrollLeft+t2(e),l=-r.scrollTop;return Ci(o).direction==="rtl"&&(a+=ud(t.clientWidth,o.clientWidth)-n),{width:n,height:s,x:a,y:l}}var xee=25;function ske(e,t){let r=fs(e),o=fa(e),n=r.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(n){s=n.width,a=n.height;let d=Qk();(!d||d&&t==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}let u=t2(o);if(u<=0){let d=o.ownerDocument,f=d.body,m=getComputedStyle(f),h=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(o.clientWidth-f.clientWidth-h);g<=xee&&(s-=g)}else u<=xee&&(s+=u);return{width:s,height:a,x:l,y:c}}var ike=new Set(["absolute","fixed"]);function ake(e,t){let r=xm(e,!0,t==="fixed"),o=r.top+e.clientTop,n=r.left+e.clientLeft,s=ma(e)?Eg(e):pa(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,c=n*s.x,u=o*s.y;return{width:a,height:l,x:c,y:u}}function Tee(e,t,r){let o;if(t==="viewport")o=ske(e,r);else if(t==="document")o=nke(fa(e));else if(Ti(t))o=ake(t,r);else{let n=kee(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return U0(o)}function Aee(e,t){let r=Ic(e);return r===t||!Ti(r)||wm(r)?!1:Ci(r).position==="fixed"||Aee(r,t)}function lke(e,t){let r=t.get(e);if(r)return r;let o=Sm(e,[],!1).filter(l=>Ti(l)&&_m(l)!=="body"),n=null,s=Ci(e).position==="fixed",a=s?Ic(e):e;for(;Ti(a)&&!wm(a);){let l=Ci(a),c=Xk(a);!c&&l.position==="fixed"&&(n=null),(s?!c&&!n:!c&&l.position==="static"&&!!n&&ike.has(n.position)||kg(a)&&!c&&Aee(e,a))?o=o.filter(d=>d!==a):n=l,a=Ic(a)}return t.set(e,o),o}function cke(e){let{element:t,boundary:r,rootBoundary:o,strategy:n}=e,a=[...r==="clippingAncestors"?L0(t)?[]:lke(t,this._c):[].concat(r),o],l=a[0],c=a.reduce((u,d)=>{let f=Tee(t,d,n);return u.top=ud(f.top,u.top),u.right=V0(f.right,u.right),u.bottom=V0(f.bottom,u.bottom),u.left=ud(f.left,u.left),u},Tee(t,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function uke(e){let{width:t,height:r}=Pee(e);return{width:t,height:r}}function dke(e,t,r){let o=ma(t),n=fa(t),s=r==="fixed",a=xm(e,!0,s,t),l={scrollLeft:0,scrollTop:0},c=pa(0);function u(){c.x=t2(n)}if(o||!o&&!s)if((_m(t)!=="body"||kg(n))&&(l=M0(t)),o){let h=xm(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else n&&u();s&&!o&&n&&u();let d=n&&!o&&!s?Eee(n,l):pa(0),f=a.left+l.scrollLeft-c.x-d.x,m=a.top+l.scrollTop-c.y-d.y;return{x:f,y:m,width:a.width,height:a.height}}function oF(e){return Ci(e).position==="static"}function Cee(e,t){if(!ma(e)||Ci(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return fa(e)===r&&(r=r.ownerDocument.body),r}function Ree(e,t){let r=fs(e);if(L0(e))return r;if(!ma(e)){let n=Ic(e);for(;n&&!wm(n);){if(Ti(n)&&!oF(n))return n;n=Ic(n)}return r}let o=Cee(e,t);for(;o&&mee(o)&&oF(o);)o=Cee(o,t);return o&&wm(o)&&oF(o)&&!Xk(o)?r:o||pee(e)||r}var fke=async function(e){let t=this.getOffsetParent||Ree,r=this.getDimensions,o=await r(e.floating);return{reference:dke(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function mke(e){return Ci(e).direction==="rtl"}var Oee={convertOffsetParentRelativeRectToViewportRelativeRect:rke,getDocumentElement:fa,getClippingRect:cke,getOffsetParent:Ree,getElementRects:fke,getClientRects:oke,getDimensions:uke,getScale:Eg,isElement:Ti,isRTL:mke};function Iee(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pke(e,t){let r=null,o,n=fa(e);function s(){var l;clearTimeout(o),(l=r)==null||l.disconnect(),r=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();let u=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=u;if(l||t(),!m||!h)return;let g=z0(f),y=z0(n.clientWidth-(d+m)),v=z0(n.clientHeight-(f+h)),b=z0(d),w={rootMargin:-g+"px "+-y+"px "+-v+"px "+-b+"px",threshold:ud(0,V0(1,c))||1},T=!0;function C(A){let F=A[0].intersectionRatio;if(F!==c){if(!T)return a();F?a(!1,F):o=setTimeout(()=>{a(!1,1e-7)},1e3)}F===1&&!Iee(u,e.getBoundingClientRect())&&a(),T=!1}try{r=new IntersectionObserver(C,{...w,root:n.ownerDocument})}catch{r=new IntersectionObserver(C,w)}r.observe(e)}return a(!0),s}function sF(e,t,r,o){o===void 0&&(o={});let{ancestorScroll:n=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=nF(e),d=n||s?[...u?Sm(u):[],...Sm(t)]:[];d.forEach(b=>{n&&b.addEventListener("scroll",r,{passive:!0}),s&&b.addEventListener("resize",r)});let f=u&&l?pke(u,r):null,m=-1,h=null;a&&(h=new ResizeObserver(b=>{let[S]=b;S&&S.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),u&&!c&&h.observe(u),h.observe(t));let g,y=c?xm(e):null;c&&v();function v(){let b=xm(e);y&&!Iee(y,b)&&r(),y=b,g=requestAnimationFrame(v)}return r(),()=>{var b;d.forEach(S=>{n&&S.removeEventListener("scroll",r),s&&S.removeEventListener("resize",r)}),f?.(),(b=h)==null||b.disconnect(),h=null,c&&cancelAnimationFrame(g)}}var iF=wee;var aF=(e,t,r)=>{let o=new Map,n={platform:Oee,...r},s={...n.platform,_c:o};return _ee(e,t,{...n,platform:s})};function r2(e){return uee(e.defaultTagName??"div",e,e)}var Nee=i(N(),1);if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='244b5c59c0']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","244b5c59c0"),e.appendChild(document.createTextNode('@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._96e6251aad1a6136__badge{border-radius:var(--wpds-border-radius-lg,8px);font-family:var(--wpds-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-font-size-sm,12px);font-weight:var(--wpds-font-weight-regular,400);line-height:var(--wpds-font-line-height-xs,16px);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-bg-surface-error,#f6e6e3);color:var(--wpds-color-fg-content-error,#470000)}.c20ebef2365bc8b7__is-medium-intent{background-color:var(--wpds-color-bg-surface-warning,#fde6bd);color:var(--wpds-color-fg-content-warning,#2e1900)}._365e1626c6202e52__is-low-intent{background-color:var(--wpds-color-bg-surface-caution,#fee994);color:var(--wpds-color-fg-content-caution,#281d00)}._33f8198127ddf4ef__is-stable-intent{background-color:var(--wpds-color-bg-surface-success,#c5f7cc);color:var(--wpds-color-fg-content-success,#002900)}._04c1aca8fc449412__is-informational-intent{background-color:var(--wpds-color-bg-surface-info,#deebfa);color:var(--wpds-color-fg-content-info,#001b4f)}._90726e69d495ec19__is-draft-intent{background-color:var(--wpds-color-bg-surface-neutral-weak,#f0f0f0);color:var(--wpds-color-fg-content-neutral,#1e1e1e)}._898f4a544993bd39__is-none-intent{background-color:var(--wpds-color-bg-surface-neutral,#f8f8f8);color:var(--wpds-color-fg-content-neutral-weak,#6d6d6d)}}')),document.head.appendChild(e)}var Fee={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"},lF=(0,Nee.forwardRef)(function({children:t,intent:r="none",render:o,className:n,...s},a){return r2({render:o,defaultTagName:"span",ref:a,props:Pg(s,{className:re(Fee.badge,Fee[`is-${r}-intent`],n),children:t})})});var Bee=i(N(),1);if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='71d20935c2']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","71d20935c2"),e.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._19ce0419607e1896__stack{display:flex}}")),document.head.appendChild(e)}var hke={stack:"_19ce0419607e1896__stack"},gke={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)"},it=(0,Bee.forwardRef)(function({direction:t,gap:r,align:o,justify:n,wrap:s,render:a,...l},c){let u={gap:r&&gke[r],alignItems:o,justifyContent:n,flexDirection:t,flexWrap:s};return r2({render:a,ref:c,props:Pg(l,{style:u,className:hke.stack})})});var cF=i(E(),1);var nr="isAny",sr="isNone",fn="isAll",mn="isNotAll",Mn="between",Vn="inThePast",ms="over",yr="is",br="isNot",dd="lessThan",fd="greaterThan",md="lessThanOrEqual",pd="greaterThanOrEqual",hd="before",gd="after",vd="beforeInc",yd="afterInc",Ja="contains",$a="notContains",el="startsWith",bd="on",Sd="notOn";var fat={asc:(0,cF.__)("Sort ascending"),desc:(0,cF.__)("Sort descending")};var Dee=i(Mv(),1),{lock:pat,unlock:Ht}=(0,Dee.__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/dataviews");var H0=i(N(),1),vke=[];function ps({elements:e,getElements:t}){let r=Array.isArray(e)&&e.length>0?e:vke,[o,n]=(0,H0.useState)(r),[s,a]=(0,H0.useState)(!1);return(0,H0.useEffect)(()=>{if(!t){n(r);return}let l=!1;return a(!0),t().then(c=>{if(!l){let u=Array.isArray(c)&&c.length>0?c:r;n(u)}}).catch(()=>{l||n(r)}).finally(()=>{l||a(!1)}),()=>{l=!0}},[t,r]),{elements:o,isLoading:s}}var yke=Math.pow(10,8)*24*60*60*1e3,vat=-yke,o2=6048e5,Lee=864e5;var bke=3600;var Mee=bke*24,yat=Mee*7,Ske=Mee*365.2425,_ke=Ske/12,bat=_ke*3,uF=Symbol.for("constructDateFrom");function ao(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&uF in e?e[uF](t):e instanceof Date?new e.constructor(t):new Date(t)}function Rt(e,t){return ao(t||e,e)}function n2(e,t,r){let o=Rt(e,r?.in);return isNaN(t)?ao(r?.in||e,NaN):(t&&o.setDate(o.getDate()+t),o)}function s2(e,t,r){let o=Rt(e,r?.in);if(isNaN(t))return ao(r?.in||e,NaN);if(!t)return o;let n=o.getDate(),s=ao(r?.in||e,o.getTime());s.setMonth(o.getMonth()+t+1,0);let a=s.getDate();return n>=a?s:(o.setFullYear(s.getFullYear(),s.getMonth(),n),o)}var wke={};function _d(){return wke}function Fc(e,t){let r=_d(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=Rt(e,t?.in),s=n.getDay(),a=(s<o?7:0)+s-o;return n.setDate(n.getDate()-a),n.setHours(0,0,0,0),n}function Tm(e,t){return Fc(e,{...t,weekStartsOn:1})}function i2(e,t){let r=Rt(e,t?.in),o=r.getFullYear(),n=ao(r,0);n.setFullYear(o+1,0,4),n.setHours(0,0,0,0);let s=Tm(n),a=ao(r,0);a.setFullYear(o,0,4),a.setHours(0,0,0,0);let l=Tm(a);return r.getTime()>=s.getTime()?o+1:r.getTime()>=l.getTime()?o:o-1}function dF(e){let t=Rt(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Vee(e,...t){let r=ao.bind(null,e||t.find(o=>typeof o=="object"));return t.map(r)}function fF(e,t){let r=Rt(e,t?.in);return r.setHours(0,0,0,0),r}function jee(e,t,r){let[o,n]=Vee(r?.in,e,t),s=fF(o),a=fF(n),l=+s-dF(s),c=+a-dF(a);return Math.round((l-c)/Lee)}function zee(e,t){let r=i2(e,t),o=ao(t?.in||e,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),Tm(o)}function Uee(e,t,r){return n2(e,t*7,r)}function Hee(e,t,r){return s2(e,t*12,r)}function Gee(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ag(e){return!(!Gee(e)&&typeof e!="number"||isNaN(+Rt(e)))}function Wee(e,t){let r=Rt(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function a2(e,t){let r=Rt(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var xke={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"}},Yee=(e,t,r)=>{let o,n=xke[e];return typeof n=="string"?o=n:t===1?o=n.one:o=n.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function l2(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var Tke={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Cke={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Pke={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qee={date:l2({formats:Tke,defaultWidth:"full"}),time:l2({formats:Cke,defaultWidth:"full"}),dateTime:l2({formats:Pke,defaultWidth:"full"})};var kke={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Zee=(e,t,r,o)=>kke[e];function Rg(e){return(t,r)=>{let o=r?.context?String(r.context):"standalone",n;if(o==="formatting"&&e.formattingValues){let a=e.defaultFormattingWidth||e.defaultWidth,l=r?.width?String(r.width):a;n=e.formattingValues[l]||e.formattingValues[a]}else{let a=e.defaultWidth,l=r?.width?String(r.width):e.defaultWidth;n=e.values[l]||e.values[a]}let s=e.argumentCallback?e.argumentCallback(t):t;return n[s]}}var Eke={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ake={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Rke={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"]},Oke={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"]},Ike={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"}},Fke={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"}},Nke=(e,t)=>{let r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Kee={ordinalNumber:Nke,era:Rg({values:Eke,defaultWidth:"wide"}),quarter:Rg({values:Ake,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Rg({values:Rke,defaultWidth:"wide"}),day:Rg({values:Oke,defaultWidth:"wide"}),dayPeriod:Rg({values:Ike,defaultWidth:"wide",formattingValues:Fke,defaultFormattingWidth:"wide"})};function Og(e){return(t,r={})=>{let o=r.width,n=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],s=t.match(n);if(!s)return null;let a=s[0],l=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?Dke(l,f=>f.test(a)):Bke(l,f=>f.test(a)),u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;let d=t.slice(a.length);return{value:u,rest:d}}}function Bke(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Dke(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Xee(e){return(t,r={})=>{let o=t.match(e.matchPattern);if(!o)return null;let n=o[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=r.valueCallback?r.valueCallback(a):a;let l=t.slice(n.length);return{value:a,rest:l}}}var Lke=/^(\d+)(th|st|nd|rd)?/i,Mke=/\d+/i,Vke={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},jke={any:[/^b/i,/^(a|c)/i]},zke={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Uke={any:[/1/i,/2/i,/3/i,/4/i]},Hke={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},Gke={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]},Wke={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},Yke={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]},qke={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},Zke={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}},Qee={ordinalNumber:Xee({matchPattern:Lke,parsePattern:Mke,valueCallback:e=>parseInt(e,10)}),era:Og({matchPatterns:Vke,defaultMatchWidth:"wide",parsePatterns:jke,defaultParseWidth:"any"}),quarter:Og({matchPatterns:zke,defaultMatchWidth:"wide",parsePatterns:Uke,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Og({matchPatterns:Hke,defaultMatchWidth:"wide",parsePatterns:Gke,defaultParseWidth:"any"}),day:Og({matchPatterns:Wke,defaultMatchWidth:"wide",parsePatterns:Yke,defaultParseWidth:"any"}),dayPeriod:Og({matchPatterns:qke,defaultMatchWidth:"any",parsePatterns:Zke,defaultParseWidth:"any"})};var mF={code:"en-US",formatDistance:Yee,formatLong:qee,formatRelative:Zee,localize:Kee,match:Qee,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Jee(e,t){let r=Rt(e,t?.in);return jee(r,a2(r))+1}function $ee(e,t){let r=Rt(e,t?.in),o=+Tm(r)-+zee(r);return Math.round(o/o2)+1}function c2(e,t){let r=Rt(e,t?.in),o=r.getFullYear(),n=_d(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=ao(t?.in||e,0);a.setFullYear(o+1,0,s),a.setHours(0,0,0,0);let l=Fc(a,t),c=ao(t?.in||e,0);c.setFullYear(o,0,s),c.setHours(0,0,0,0);let u=Fc(c,t);return+r>=+l?o+1:+r>=+u?o:o-1}function ete(e,t){let r=_d(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=c2(e,t),s=ao(t?.in||e,0);return s.setFullYear(n,0,o),s.setHours(0,0,0,0),Fc(s,t)}function tte(e,t){let r=Rt(e,t?.in),o=+Fc(r,t)-+ete(r,t);return Math.round(o/o2)+1}function St(e,t){let r=e<0?"-":"",o=Math.abs(e).toString().padStart(t,"0");return r+o}var Nc={y(e,t){let r=e.getFullYear(),o=r>0?r:1-r;return St(t==="yy"?o%100:o,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):St(r+1,2)},d(e,t){return St(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h(e,t){return St(e.getHours()%12||12,t.length)},H(e,t){return St(e.getHours(),t.length)},m(e,t){return St(e.getMinutes(),t.length)},s(e,t){return St(e.getSeconds(),t.length)},S(e,t){let r=t.length,o=e.getMilliseconds(),n=Math.trunc(o*Math.pow(10,r-3));return St(n,t.length)}};var Ig={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},pF={G:function(e,t,r){let o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let o=e.getFullYear(),n=o>0?o:1-o;return r.ordinalNumber(n,{unit:"year"})}return Nc.y(e,t)},Y:function(e,t,r,o){let n=c2(e,o),s=n>0?n:1-n;if(t==="YY"){let a=s%100;return St(a,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):St(s,t.length)},R:function(e,t){let r=i2(e);return St(r,t.length)},u:function(e,t){let r=e.getFullYear();return St(r,t.length)},Q:function(e,t,r){let o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return St(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){let o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return St(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){let o=e.getMonth();switch(t){case"M":case"MM":return Nc.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){let o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return St(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){let n=tte(e,o);return t==="wo"?r.ordinalNumber(n,{unit:"week"}):St(n,t.length)},I:function(e,t,r){let o=$ee(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):St(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Nc.d(e,t)},D:function(e,t,r){let o=Jee(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):St(o,t.length)},E:function(e,t,r){let o=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){let n=e.getDay(),s=(n-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return St(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){let n=e.getDay(),s=(n-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return St(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,r){let o=e.getDay(),n=o===0?7:o;switch(t){case"i":return String(n);case"ii":return St(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){let o=e.getHours(),n;switch(o===12?n=Ig.noon:o===0?n=Ig.midnight:n=o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){let o=e.getHours(),n;switch(o>=17?n=Ig.evening:o>=12?n=Ig.afternoon:o>=4?n=Ig.morning:n=Ig.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let o=e.getHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return Nc.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Nc.H(e,t)},K:function(e,t,r){let o=e.getHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):St(o,t.length)},k:function(e,t,r){let o=e.getHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):St(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Nc.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Nc.s(e,t)},S:function(e,t){return Nc.S(e,t)},X:function(e,t,r){let o=e.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return ote(o);case"XXXX":case"XX":return Cm(o);default:return Cm(o,":")}},x:function(e,t,r){let o=e.getTimezoneOffset();switch(t){case"x":return ote(o);case"xxxx":case"xx":return Cm(o);default:return Cm(o,":")}},O:function(e,t,r){let o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+rte(o,":");default:return"GMT"+Cm(o,":")}},z:function(e,t,r){let o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+rte(o,":");default:return"GMT"+Cm(o,":")}},t:function(e,t,r){let o=Math.trunc(+e/1e3);return St(o,t.length)},T:function(e,t,r){return St(+e,t.length)}};function rte(e,t=""){let r=e>0?"-":"+",o=Math.abs(e),n=Math.trunc(o/60),s=o%60;return s===0?r+String(n):r+String(n)+t+St(s,2)}function ote(e,t){return e%60===0?(e>0?"-":"+")+St(Math.abs(e)/60,2):Cm(e,t)}function Cm(e,t=""){let r=e>0?"-":"+",o=Math.abs(e),n=St(Math.trunc(o/60),2),s=St(o%60,2);return r+n+t+s}var nte=(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"})}},ste=(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"})}},Kke=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],o=r[1],n=r[2];if(!n)return nte(e,t);let s;switch(o){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",nte(o,t)).replace("{{time}}",ste(n,t))},ite={p:ste,P:Kke};var Xke=/^D+$/,Qke=/^Y+$/,Jke=["D","DD","YY","YYYY"];function ate(e){return Xke.test(e)}function lte(e){return Qke.test(e)}function cte(e,t,r){let o=$ke(e,t,r);if(console.warn(o),Jke.includes(e))throw new RangeError(o)}function $ke(e,t,r){let o=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var e2e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,t2e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,r2e=/^'([^]*?)'?$/,o2e=/''/g,n2e=/[a-zA-Z]/;function hF(e,t,r){let o=_d(),n=r?.locale??o.locale??mF,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,l=Rt(e,r?.in);if(!Ag(l))throw new RangeError("Invalid time value");let c=t.match(t2e).map(d=>{let f=d[0];if(f==="p"||f==="P"){let m=ite[f];return m(d,n.formatLong)}return d}).join("").match(e2e).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let f=d[0];if(f==="'")return{isToken:!1,value:s2e(d)};if(pF[f])return{isToken:!0,value:d};if(f.match(n2e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:d}});n.localize.preprocessor&&(c=n.localize.preprocessor(l,c));let u={firstWeekContainsDate:s,weekStartsOn:a,locale:n};return c.map(d=>{if(!d.isToken)return d.value;let f=d.value;(!r?.useAdditionalWeekYearTokens&<e(f)||!r?.useAdditionalDayOfYearTokens&&ate(f))&&cte(f,t,String(e));let m=pF[f[0]];return m(l,f,n.localize,u)}).join("")}function s2e(e){let t=e.match(r2e);return t?t[1].replace(o2e,"'"):e}function Pm(e,t,r){return n2(e,-t,r)}function u2(e,t,r){return s2(e,-t,r)}function ute(e,t,r){return Uee(e,-t,r)}function d2(e,t,r){return Hee(e,-t,r)}var _e=i(E(),1),Ar=i(N(),1),jn=i(mo(),1);var gF=i(x(),1),Lr={Name:(0,gF.jsx)("span",{className:"dataviews-filters__summary-filter-text-name"}),Value:(0,gF.jsx)("span",{className:"dataviews-filters__summary-filter-text-value"})};function dte(e,t){switch(t){case"days":return Pm(new Date,e);case"weeks":return ute(new Date,e);case"months":return u2(new Date,e);case"years":return d2(new Date,e);default:return new Date}}var fte={label:(0,_e.__)("Is none of"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s is none of: </Name><Value>%2$s</Value>"),e.name,t.map(r=>r.label).join(", ")),Lr),filter:((e,t,r)=>{if(!r?.length)return!0;let o=t.getValue({item:e});return Array.isArray(o)?!r.some(n=>o.includes(n)):typeof o=="string"?!r.includes(o):!1}),selection:"multi"},mte=[{name:nr,label:(0,_e.__)("Includes"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s includes: </Name><Value>%2$s</Value>"),e.name,t.map(r=>r.label).join(", ")),Lr),filter(e,t,r){if(!r?.length)return!0;let o=t.getValue({item:e});return Array.isArray(o)?r.some(n=>o.includes(n)):typeof o=="string"?r.includes(o):!1},selection:"multi"},{name:sr,...fte},{name:fn,label:(0,_e.__)("Includes all"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s includes all: </Name><Value>%2$s</Value>"),e.name,t.map(r=>r.label).join(", ")),Lr),filter(e,t,r){return r?.length?r.every(o=>t.getValue({item:e})?.includes(o)):!0},selection:"multi"},{name:mn,...fte},{name:Mn,label:(0,_e.__)("Between (inc)"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s between (inc): </Name><Value>%2$s and %3$s</Value>"),e.name,t[0].label[0],t[0].label[1]),Lr),filter(e,t,r){if(!Array.isArray(r)||r.length!==2||r[0]===void 0||r[1]===void 0)return!0;let o=t.getValue({item:e});return typeof o=="number"||o instanceof Date||typeof o=="string"?o>=r[0]&&o<=r[1]:!1},selection:"custom"},{name:Vn,label:(0,_e.__)("In the past"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s is in the past: </Name><Value>%2$s</Value>"),e.name,`${t[0].value.value} ${t[0].value.unit}`),Lr),filter(e,t,r){if(r?.value===void 0||r?.unit===void 0)return!0;let o=dte(r.value,r.unit),n=(0,jn.getDate)(t.getValue({item:e}));return n>=o&&n<=new Date},selection:"custom"},{name:ms,label:(0,_e.__)("Over"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s is over: </Name><Value>%2$s</Value>"),e.name,`${t[0].value.value} ${t[0].value.unit}`),Lr),filter(e,t,r){if(r?.value===void 0||r?.unit===void 0)return!0;let o=dte(r.value,r.unit);return(0,jn.getDate)(t.getValue({item:e}))<o},selection:"custom"},{name:yr,label:(0,_e.__)("Is"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),e.name,t[0].label),Lr),filter(e,t,r){return r===t.getValue({item:e})||r===void 0},selection:"single"},{name:br,label:(0,_e.__)("Is not"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),e.name,t[0].label),Lr),filter(e,t,r){return r!==t.getValue({item:e})},selection:"single"},{name:dd,label:(0,_e.__)("Less than"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s is less than: </Name><Value>%2$s</Value>"),e.name,t[0].label),Lr),filter(e,t,r){return r===void 0?!0:t.getValue({item:e})<r},selection:"single"},{name:fd,label:(0,_e.__)("Greater than"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s is greater than: </Name><Value>%2$s</Value>"),e.name,t[0].label),Lr),filter(e,t,r){return r===void 0?!0:t.getValue({item:e})>r},selection:"single"},{name:md,label:(0,_e.__)("Less than or equal"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s is less than or equal to: </Name><Value>%2$s</Value>"),e.name,t[0].label),Lr),filter(e,t,r){return r===void 0?!0:t.getValue({item:e})<=r},selection:"single"},{name:pd,label:(0,_e.__)("Greater than or equal"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s is greater than or equal to: </Name><Value>%2$s</Value>"),e.name,t[0].label),Lr),filter(e,t,r){return r===void 0?!0:t.getValue({item:e})>=r},selection:"single"},{name:hd,label:(0,_e.__)("Before"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s is before: </Name><Value>%2$s</Value>"),e.name,t[0].label),Lr),filter(e,t,r){if(r===void 0)return!0;let o=(0,jn.getDate)(r);return(0,jn.getDate)(t.getValue({item:e}))<o},selection:"single"},{name:gd,label:(0,_e.__)("After"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s is after: </Name><Value>%2$s</Value>"),e.name,t[0].label),Lr),filter(e,t,r){if(r===void 0)return!0;let o=(0,jn.getDate)(r);return(0,jn.getDate)(t.getValue({item:e}))>o},selection:"single"},{name:vd,label:(0,_e.__)("Before (inc)"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s is on or before: </Name><Value>%2$s</Value>"),e.name,t[0].label),Lr),filter(e,t,r){if(r===void 0)return!0;let o=(0,jn.getDate)(r);return(0,jn.getDate)(t.getValue({item:e}))<=o},selection:"single"},{name:yd,label:(0,_e.__)("After (inc)"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s is on or after: </Name><Value>%2$s</Value>"),e.name,t[0].label),Lr),filter(e,t,r){if(r===void 0)return!0;let o=(0,jn.getDate)(r);return(0,jn.getDate)(t.getValue({item:e}))>=o},selection:"single"},{name:Ja,label:(0,_e.__)("Contains"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s contains: </Name><Value>%2$s</Value>"),e.name,t[0].label),Lr),filter(e,t,r){if(r===void 0)return!0;let o=t.getValue({item:e});return typeof o=="string"&&r&&o.toLowerCase().includes(String(r).toLowerCase())},selection:"single"},{name:$a,label:(0,_e.__)("Doesn't contain"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s doesn't contain: </Name><Value>%2$s</Value>"),e.name,t[0].label),Lr),filter(e,t,r){if(r===void 0)return!0;let o=t.getValue({item:e});return typeof o=="string"&&r&&!o.toLowerCase().includes(String(r).toLowerCase())},selection:"single"},{name:el,label:(0,_e.__)("Starts with"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s starts with: </Name><Value>%2$s</Value>"),e.name,t[0].label),Lr),filter(e,t,r){if(r===void 0)return!0;let o=t.getValue({item:e});return typeof o=="string"&&r&&o.toLowerCase().startsWith(String(r).toLowerCase())},selection:"single"},{name:bd,label:(0,_e.__)("On"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),e.name,t[0].label),Lr),filter(e,t,r){if(r===void 0)return!0;let o=(0,jn.getDate)(r),n=(0,jn.getDate)(t.getValue({item:e}));return o.getTime()===n.getTime()},selection:"single"},{name:Sd,label:(0,_e.__)("Not on"),filterText:(e,t)=>(0,Ar.createInterpolateElement)((0,_e.sprintf)((0,_e.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),e.name,t[0].label),Lr),filter(e,t,r){if(r===void 0)return!0;let o=(0,jn.getDate)(r),n=(0,jn.getDate)(t.getValue({item:e}));return o.getTime()!==n.getTime()},selection:"single"}],pte=e=>mte.find(t=>t.name===e),hte=()=>mte.map(e=>e.name);var gte=i(R(),1),vte=i(N(),1);function Dt(e,t){let r;return e?.required&&t?.required?r=t?.required?.message?t.required:void 0:e?.pattern&&t?.pattern?r=t.pattern:e?.min&&t?.min?r=t.min:e?.max&&t?.max?r=t.max:e?.minLength&&t?.minLength?r=t.minLength:e?.maxLength&&t?.maxLength?r=t.maxLength:e?.elements&&t?.elements?r=t.elements:t?.custom&&(r=t.custom),r}var yte=i(x(),1),{ValidatedCheckboxControl:i2e}=Ht(gte.privateApis);function bte({field:e,onChange:t,data:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){let{getValue:a,setValue:l,label:c,description:u,isValid:d}=e,f=(0,vte.useCallback)(()=>{t(l({item:r,value:!a({item:r})}))},[r,a,t,l]);return(0,yte.jsx)(i2e,{required:!!e.isValid?.required,markWhenOptional:n,customValidity:Dt(d,s),hidden:o,label:c,help:u,checked:a({item:r}),onChange:f})}var f2=i(R(),1),Ste=i(N(),1);var vF=i(x(),1),{ValidatedComboboxControl:a2e}=Ht(f2.privateApis);function m2({data:e,field:t,onChange:r,hideLabelFromVision:o,validity:n}){let{label:s,description:a,placeholder:l,getValue:c,setValue:u,isValid:d}=t,f=c({item:e})??"",m=(0,Ste.useCallback)(y=>r(u({item:e,value:y??""})),[e,r,u]),{elements:h,isLoading:g}=ps({elements:t.elements,getElements:t.getElements});return g?(0,vF.jsx)(f2.Spinner,{}):(0,vF.jsx)(a2e,{required:!!t.isValid?.required,customValidity:Dt(d,n),label:s,value:f,help:a,placeholder:l,options:h,onChange:m,hideLabelFromVision:o,allowReset:!0,expandOnFocus:!0})}var v2=i(R(),1),Pi=i(N(),1),g2=i(E(),1),zs=i(mo(),1);var Ng=i(R(),1),yF=i(N(),1),tl=i(E(),1);var Fg=i(x(),1),l2e={[Vn]:[{value:"days",label:(0,tl.__)("Days")},{value:"weeks",label:(0,tl.__)("Weeks")},{value:"months",label:(0,tl.__)("Months")},{value:"years",label:(0,tl.__)("Years")}],[ms]:[{value:"days",label:(0,tl.__)("Days ago")},{value:"weeks",label:(0,tl.__)("Weeks ago")},{value:"months",label:(0,tl.__)("Months ago")},{value:"years",label:(0,tl.__)("Years ago")}]};function p2({className:e,data:t,field:r,onChange:o,hideLabelFromVision:n,operator:s}){let a=l2e[s===Vn?"inThePast":"over"],{id:l,label:c,getValue:u,setValue:d}=r,f=u({item:t}),{value:m="",unit:h=a[0].value}=f&&typeof f=="object"?f:{},g=(0,yF.useCallback)(v=>o(d({item:t,value:{value:Number(v),unit:h}})),[o,d,t,h]),y=(0,yF.useCallback)(v=>o(d({item:t,value:{value:m,unit:v}})),[o,d,t,m]);return(0,Fg.jsx)(Ng.BaseControl,{id:l,className:re(e,"dataviews-controls__relative-date"),label:c,hideLabelFromVision:n,children:(0,Fg.jsxs)(it,{direction:"row",gap:"sm",children:[(0,Fg.jsx)(Ng.__experimentalNumberControl,{__next40pxDefaultSize:!0,className:"dataviews-controls__relative-date-number",spinControls:"none",min:1,step:1,value:m,onChange:g}),(0,Fg.jsx)(Ng.SelectControl,{className:"dataviews-controls__relative-date-unit",__next40pxDefaultSize:!0,label:(0,tl.__)("Unit"),value:h,options:a,onChange:y,hideLabelFromVision:!0})]})})}var _te=i(mo(),1);function h2(e){if(!e)return null;let t=(0,_te.getDate)(e);return t&&Ag(t)?t:null}var wd=i(x(),1),{DateCalendar:c2e,ValidatedInputControl:u2e}=Ht(v2.privateApis),d2e=e=>e?(0,zs.dateI18n)("Y-m-d\\TH:i",(0,zs.getDate)(e)):"";function f2e({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){let{id:a,label:l,description:c,setValue:u,getValue:d,isValid:f}=t,m=d({item:e}),h=typeof m=="string"?m:void 0,[g,y]=(0,Pi.useState)(()=>h2(h)||new Date),v=(0,Pi.useRef)(null),b=(0,Pi.useRef)(void 0),S=(0,Pi.useRef)(null),w=(0,Pi.useCallback)(z=>r(u({item:e,value:z})),[e,r,u]);(0,Pi.useEffect)(()=>()=>{b.current&&clearTimeout(b.current)},[]);let T=(0,Pi.useCallback)(z=>{let M;if(z){let k=(0,zs.dateI18n)("Y-m-d",z),I;h?I=(0,zs.dateI18n)("H:i",(0,zs.getDate)(h)):I=(0,zs.dateI18n)("H:i",z),M=(0,zs.getDate)(`${k}T${I}`).toISOString(),w(M),b.current&&clearTimeout(b.current)}else w(void 0);S.current=v.current&&v.current.ownerDocument.activeElement,b.current=setTimeout(()=>{v.current&&(v.current.focus(),v.current.blur(),w(M),S.current&&S.current instanceof HTMLElement&&S.current.focus())},0)},[w,h]),C=(0,Pi.useCallback)(z=>{if(z){let M=(0,zs.getDate)(z);w(M.toISOString());let k=h2(M.toISOString());k&&y(k)}else w(void 0)},[w]),{format:A}=t,F=A.weekStartsOn??(0,zs.getSettings)().l10n.startOfWeek,{timezone:{string:L}}=(0,zs.getSettings)(),j=l;return f?.required&&!n&&!o?j=`${l} (${(0,g2.__)("Required")})`:!f?.required&&n&&!o&&(j=`${l} (${(0,g2.__)("Optional")})`),(0,wd.jsx)(v2.BaseControl,{id:a,label:j,help:c,hideLabelFromVision:o,children:(0,wd.jsxs)(it,{direction:"column",gap:"lg",children:[(0,wd.jsx)(c2e,{style:{width:"100%"},selected:h&&h2(h)||void 0,onSelect:T,month:g,onMonthChange:y,timeZone:L||void 0,weekStartsOn:F}),(0,wd.jsx)(u2e,{ref:v,__next40pxDefaultSize:!0,required:!!f?.required,customValidity:Dt(f,s),type:"datetime-local",label:(0,g2.__)("Date time"),hideLabelFromVision:!0,value:d2e(h),onChange:C})]})})}function wte({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,operator:s,validity:a}){return s===Vn||s===ms?(0,wd.jsx)(p2,{className:"dataviews-controls__datetime",data:e,field:t,onChange:r,hideLabelFromVision:o,operator:s}):(0,wd.jsx)(f2e,{data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:a})}var hn=i(R(),1),At=i(N(),1),lo=i(E(),1),pn=i(mo(),1);var Lt=i(x(),1),{DateCalendar:m2e,DateRangeCalendar:p2e}=Ht(hn.privateApis),h2e=[{id:"today",label:(0,lo.__)("Today"),getValue:()=>(0,pn.getDate)(null)},{id:"yesterday",label:(0,lo.__)("Yesterday"),getValue:()=>{let e=(0,pn.getDate)(null);return Pm(e,1)}},{id:"past-week",label:(0,lo.__)("Past week"),getValue:()=>{let e=(0,pn.getDate)(null);return Pm(e,7)}},{id:"past-month",label:(0,lo.__)("Past month"),getValue:()=>{let e=(0,pn.getDate)(null);return u2(e,1)}}],g2e=[{id:"last-7-days",label:(0,lo.__)("Last 7 days"),getValue:()=>{let e=(0,pn.getDate)(null);return[Pm(e,7),e]}},{id:"last-30-days",label:(0,lo.__)("Last 30 days"),getValue:()=>{let e=(0,pn.getDate)(null);return[Pm(e,30),e]}},{id:"month-to-date",label:(0,lo.__)("Month to date"),getValue:()=>{let e=(0,pn.getDate)(null);return[Wee(e),e]}},{id:"last-year",label:(0,lo.__)("Last year"),getValue:()=>{let e=(0,pn.getDate)(null);return[d2(e,1),e]}},{id:"year-to-date",label:(0,lo.__)("Year to date"),getValue:()=>{let e=(0,pn.getDate)(null);return[a2(e),e]}}],Bg=e=>{if(!e)return null;let t=(0,pn.getDate)(e);return t&&Ag(t)?t:null},bF=e=>e?typeof e=="string"?e:hF(e,"yyyy-MM-dd"):"";function xte({field:e,validity:t,inputRefs:r,isTouched:o,setIsTouched:n,children:s}){let{isValid:a}=e,[l,c]=(0,At.useState)(void 0),u=(0,At.useCallback)(()=>{let f=Array.isArray(r)?r:[r];for(let m of f){let h=m.current;if(h&&!h.validity.valid){c({type:"invalid",message:h.validationMessage});return}}c(void 0)},[r]);return(0,At.useEffect)(()=>{let f=Array.isArray(r)?r:[r],m=t?Dt(a,t):void 0;for(let h of f){let g=h.current;g&&g.setCustomValidity(m?.type==="invalid"&&m.message?m.message:"")}},[r,a,t]),(0,At.useEffect)(()=>{let f=Array.isArray(r)?r:[r],m=h=>{h.preventDefault(),n(!0)};for(let h of f)h.current?.addEventListener("invalid",m);return()=>{for(let h of f)h.current?.removeEventListener("invalid",m)}},[r,n]),(0,At.useEffect)(()=>{if(!o)return;let f=t?Dt(a,t):void 0;f?c(f):u()},[o,a,t,u]),(0,Lt.jsxs)("div",{onBlur:f=>{o||(!f.relatedTarget||!f.currentTarget.contains(f.relatedTarget))&&n(!0)},children:[s,(0,Lt.jsx)("div",{"aria-live":"polite",children:l&&(0,Lt.jsxs)("p",{className:re("components-validated-control__indicator",l.type==="invalid"?"is-invalid":void 0),children:[(0,Lt.jsx)(hn.Icon,{className:"components-validated-control__indicator-icon",icon:Sl,size:16,fill:"currentColor"}),l.message]})})]})}function v2e({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){let{id:a,label:l,setValue:c,getValue:u,isValid:d,format:f}=t,[m,h]=(0,At.useState)(null),g=f.weekStartsOn??(0,pn.getSettings)().l10n.startOfWeek,y=u({item:e}),v=typeof y=="string"?y:void 0,[b,S]=(0,At.useState)(()=>Bg(v)||new Date),[w,T]=(0,At.useState)(!1),C=(0,At.useRef)(null),A=(0,At.useCallback)(k=>r(c({item:e,value:k})),[e,r,c]),F=(0,At.useCallback)(k=>{let I=k?hF(k,"yyyy-MM-dd"):void 0;A(I),h(null),T(!0)},[A]),L=(0,At.useCallback)(k=>{let I=k.getValue(),U=bF(I);S(I),A(U),h(k.id),T(!0)},[A]),j=(0,At.useCallback)(k=>{if(A(k),k){let I=Bg(k);I&&S(I)}h(null),T(!0)},[A]),{timezone:{string:z}}=(0,pn.getSettings)(),M=l;return d?.required&&!n?M=`${l} (${(0,lo.__)("Required")})`:!d?.required&&n&&(M=`${l} (${(0,lo.__)("Optional")})`),(0,Lt.jsx)(xte,{field:t,validity:s,inputRefs:C,isTouched:w,setIsTouched:T,children:(0,Lt.jsx)(hn.BaseControl,{id:a,className:"dataviews-controls__date",label:M,hideLabelFromVision:o,children:(0,Lt.jsxs)(it,{direction:"column",gap:"lg",children:[(0,Lt.jsxs)(it,{direction:"row",gap:"sm",wrap:"wrap",justify:"flex-start",children:[h2e.map(k=>{let I=m===k.id;return(0,Lt.jsx)(hn.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:I,size:"small",onClick:()=>L(k),children:k.label},k.id)}),(0,Lt.jsx)(hn.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:!m,size:"small",disabled:!!m,accessibleWhenDisabled:!1,children:(0,lo.__)("Custom")})]}),(0,Lt.jsx)(hn.__experimentalInputControl,{__next40pxDefaultSize:!0,ref:C,type:"date",label:(0,lo.__)("Date"),hideLabelFromVision:!0,value:v,onChange:j,required:!!t.isValid?.required}),(0,Lt.jsx)(m2e,{style:{width:"100%"},selected:v&&Bg(v)||void 0,onSelect:F,month:b,onMonthChange:S,timeZone:z||void 0,weekStartsOn:g})]})})})}function y2e({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){let{id:a,label:l,getValue:c,setValue:u,format:d}=t,f,m=c({item:e});Array.isArray(m)&&m.length===2&&m.every(U=>typeof U=="string")&&(f=m);let h=d.weekStartsOn??(0,pn.getSettings)().l10n.startOfWeek,g=(0,At.useCallback)(U=>{r(u({item:e,value:U}))},[e,r,u]),[y,v]=(0,At.useState)(null),b=(0,At.useMemo)(()=>{if(!f)return{from:void 0,to:void 0};let[U,G]=f;return{from:Bg(U)||void 0,to:Bg(G)||void 0}},[f]),[S,w]=(0,At.useState)(()=>b.from||new Date),[T,C]=(0,At.useState)(!1),A=(0,At.useRef)(null),F=(0,At.useRef)(null),L=(0,At.useCallback)((U,G)=>{U&&G?g([bF(U),bF(G)]):!U&&!G&&g(void 0)},[g]),j=(0,At.useCallback)(U=>{L(U?.from,U?.to),v(null),C(!0)},[L]),z=(0,At.useCallback)(U=>{let[G,Y]=U.getValue();w(G),L(G,Y),v(U.id),C(!0)},[L]),M=(0,At.useCallback)((U,G)=>{let[Y,Z]=f||[void 0,void 0];if(L(U==="from"?G:Y,U==="to"?G:Z),G){let H=Bg(G);H&&w(H)}v(null),C(!0)},[f,L]),{timezone:k}=(0,pn.getSettings)(),I=l;return t.isValid?.required&&!n?I=`${l} (${(0,lo.__)("Required")})`:!t.isValid?.required&&n&&(I=`${l} (${(0,lo.__)("Optional")})`),(0,Lt.jsx)(xte,{field:t,validity:s,inputRefs:[A,F],isTouched:T,setIsTouched:C,children:(0,Lt.jsx)(hn.BaseControl,{id:a,className:"dataviews-controls__date",label:I,hideLabelFromVision:o,children:(0,Lt.jsxs)(it,{direction:"column",gap:"lg",children:[(0,Lt.jsxs)(it,{direction:"row",gap:"sm",wrap:"wrap",justify:"flex-start",children:[g2e.map(U=>{let G=y===U.id;return(0,Lt.jsx)(hn.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:G,size:"small",onClick:()=>z(U),children:U.label},U.id)}),(0,Lt.jsx)(hn.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:!y,size:"small",accessibleWhenDisabled:!1,disabled:!!y,children:(0,lo.__)("Custom")})]}),(0,Lt.jsxs)(it,{direction:"row",gap:"sm",justify:"space-between",className:"dataviews-controls__date-range-inputs",children:[(0,Lt.jsx)(hn.__experimentalInputControl,{__next40pxDefaultSize:!0,ref:A,type:"date",label:(0,lo.__)("From"),hideLabelFromVision:!0,value:f?.[0],onChange:U=>M("from",U),required:!!t.isValid?.required}),(0,Lt.jsx)(hn.__experimentalInputControl,{__next40pxDefaultSize:!0,ref:F,type:"date",label:(0,lo.__)("To"),hideLabelFromVision:!0,value:f?.[1],onChange:U=>M("to",U),required:!!t.isValid?.required})]}),(0,Lt.jsx)(p2e,{style:{width:"100%"},selected:b,onSelect:j,month:S,onMonthChange:w,timeZone:k.string||void 0,weekStartsOn:h})]})})})}function Tte({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,operator:s,validity:a}){return s===Vn||s===ms?(0,Lt.jsx)(p2,{className:"dataviews-controls__date",data:e,field:t,onChange:r,hideLabelFromVision:o,operator:s}):s===Mn?(0,Lt.jsx)(y2e,{data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:a}):(0,Lt.jsx)(v2e,{data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:a})}var y2=i(R(),1),Cte=i(N(),1);var SF=i(x(),1),{ValidatedSelectControl:b2e}=Ht(y2.privateApis);function b2({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){let{type:a,label:l,description:c,getValue:u,setValue:d,isValid:f}=t,m=a==="array",h=u({item:e})??(m?[]:""),g=(0,Cte.useCallback)(b=>r(d({item:e,value:b})),[e,r,d]),{elements:y,isLoading:v}=ps({elements:t.elements,getElements:t.getElements});return v?(0,SF.jsx)(y2.Spinner,{}):(0,SF.jsx)(b2e,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:Dt(f,s),label:l,value:h,help:c,options:y,onChange:g,__next40pxDefaultSize:!0,hideLabelFromVision:o,multiple:m})}var _F=i(x(),1),S2e=10;function Pte(e){let{field:t}=e,{elements:r}=ps({elements:t.elements,getElements:t.getElements});return r.length>=S2e?(0,_F.jsx)(m2,{...e}):(0,_F.jsx)(b2,{...e})}var _2=i(R(),1);var kte=i(R(),1),Ete=i(N(),1);var Ate=i(x(),1),{ValidatedInputControl:_2e}=Ht(kte.privateApis);function rl({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,type:s,prefix:a,suffix:l,validity:c}){let{label:u,placeholder:d,description:f,getValue:m,setValue:h,isValid:g}=t,y=m({item:e}),v=(0,Ete.useCallback)(b=>r(h({item:e,value:b})),[e,h,r]);return(0,Ate.jsx)(_2e,{required:!!g.required,markWhenOptional:n,customValidity:Dt(g,c),label:u,placeholder:d,value:y??"",help:f,onChange:v,hideLabelFromVision:o,type:s,prefix:a,suffix:l,pattern:g.pattern?g.pattern.constraint:void 0,minLength:g.minLength?g.minLength.constraint:void 0,maxLength:g.maxLength?g.maxLength.constraint:void 0,__next40pxDefaultSize:!0})}var S2=i(x(),1);function Rte({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){return(0,S2.jsx)(rl,{data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s,type:"email",prefix:(0,S2.jsx)(_2.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,S2.jsx)(_2.Icon,{icon:UA})})})}var x2=i(R(),1);var w2=i(x(),1);function Ote({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){return(0,w2.jsx)(rl,{data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s,type:"tel",prefix:(0,w2.jsx)(x2.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,w2.jsx)(x2.Icon,{icon:Um})})})}var C2=i(R(),1);var T2=i(x(),1);function Ite({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){return(0,T2.jsx)(rl,{data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s,type:"url",prefix:(0,T2.jsx)(C2.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,T2.jsx)(C2.Icon,{icon:rR})})})}var Bc=i(R(),1),G0=i(N(),1),P2=i(E(),1);var xd=i(x(),1),{ValidatedNumberControl:w2e}=Ht(Bc.privateApis);function Fte(e){if(e===""||e===void 0)return"";let t=Number(e);return Number.isFinite(t)?t:""}function x2e({value:e,onChange:t,hideLabelFromVision:r,step:o}){let[n="",s=""]=e,a=(0,G0.useCallback)(c=>t([Fte(c),s]),[t,s]),l=(0,G0.useCallback)(c=>t([n,Fte(c)]),[t,n]);return(0,xd.jsx)(Bc.BaseControl,{help:(0,P2.__)("The max. value must be greater than the min. value."),children:(0,xd.jsxs)(Bc.Flex,{direction:"row",gap:4,children:[(0,xd.jsx)(Bc.__experimentalNumberControl,{label:(0,P2.__)("Min."),value:n,max:s?Number(s)-o:void 0,onChange:a,__next40pxDefaultSize:!0,hideLabelFromVision:r,step:o}),(0,xd.jsx)(Bc.__experimentalNumberControl,{label:(0,P2.__)("Max."),value:s,min:n?Number(n)+o:void 0,onChange:l,__next40pxDefaultSize:!0,hideLabelFromVision:r,step:o})]})})}function k2({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,operator:s,validity:a}){let l=t.format?.decimals??0,c=Math.pow(10,Math.abs(l)*-1),{label:u,description:d,getValue:f,setValue:m,isValid:h}=t,g=f({item:e})??"",y=(0,G0.useCallback)(b=>{r(m({item:e,value:["",void 0].includes(b)?void 0:Number(b)}))},[e,r,m]),v=(0,G0.useCallback)(b=>{r(m({item:e,value:b}))},[e,r,m]);if(s===Mn){let b=["",""];return Array.isArray(g)&&g.length===2&&g.every(S=>typeof S=="number"||S==="")&&(b=g),(0,xd.jsx)(x2e,{value:b,onChange:v,hideLabelFromVision:o,step:c})}return(0,xd.jsx)(w2e,{required:!!h.required,markWhenOptional:n,customValidity:Dt(h,a),label:u,help:d,value:g,onChange:y,__next40pxDefaultSize:!0,hideLabelFromVision:o,step:c,min:h.min?h.min.constraint:void 0,max:h.max?h.max.constraint:void 0})}var Nte=i(x(),1);function Bte(e){return(0,Nte.jsx)(k2,{...e})}var Dte=i(x(),1);function Lte(e){return(0,Dte.jsx)(k2,{...e})}var E2=i(R(),1),Mte=i(N(),1);var wF=i(x(),1),{ValidatedRadioControl:T2e}=Ht(E2.privateApis);function Vte({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){let{label:a,description:l,getValue:c,setValue:u,isValid:d}=t,{elements:f,isLoading:m}=ps({elements:t.elements,getElements:t.getElements}),h=c({item:e}),g=(0,Mte.useCallback)(y=>r(u({item:e,value:y})),[e,r,u]);return m?(0,wF.jsx)(E2.Spinner,{}):(0,wF.jsx)(T2e,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:Dt(d,s),label:a,help:l,onChange:g,options:f,selected:h,hideLabelFromVision:o})}var xF=i(N(),1);var jte=i(x(),1);function zte({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,config:s,validity:a}){let{prefix:l,suffix:c}=s||{};return(0,jte.jsx)(rl,{data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:a,prefix:l?(0,xF.createElement)(l):void 0,suffix:c?(0,xF.createElement)(c):void 0})}var Ute=i(R(),1),Hte=i(N(),1);var Gte=i(x(),1),{ValidatedToggleControl:C2e}=Ht(Ute.privateApis);function Wte({field:e,onChange:t,data:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){let{label:a,description:l,getValue:c,setValue:u,isValid:d}=e,f=(0,Hte.useCallback)(()=>{t(u({item:r,value:!c({item:r})}))},[t,u,r,c]);return(0,Gte.jsx)(C2e,{required:!!d.required,markWhenOptional:n,customValidity:Dt(d,s),hidden:o,label:a,help:l,checked:c({item:r}),onChange:f})}var Yte=i(R(),1),qte=i(N(),1);var Zte=i(x(),1),{ValidatedTextareaControl:P2e}=Ht(Yte.privateApis);function Kte({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,config:s,validity:a}){let{rows:l=4}=s||{},{label:c,placeholder:u,description:d,setValue:f,isValid:m}=t,h=t.getValue({item:e}),g=(0,qte.useCallback)(y=>r(f({item:e,value:y})),[e,r,f]);return(0,Zte.jsx)(P2e,{required:!!m.required,markWhenOptional:n,customValidity:Dt(m,a),label:c,placeholder:u,value:h??"",help:d,onChange:g,rows:l,minLength:m.minLength?m.minLength.constraint:void 0,maxLength:m.maxLength?m.maxLength.constraint:void 0,__next40pxDefaultSize:!0,hideLabelFromVision:o})}var Dg=i(R(),1),Xte=i(N(),1);var A2=i(x(),1),{ValidatedToggleGroupControl:k2e}=Ht(Dg.privateApis);function Qte({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){let{getValue:a,setValue:l,isValid:c}=t,u=a({item:e}),d=(0,Xte.useCallback)(g=>r(l({item:e,value:g})),[e,r,l]),{elements:f,isLoading:m}=ps({elements:t.elements,getElements:t.getElements});if(m)return(0,A2.jsx)(Dg.Spinner,{});if(f.length===0)return null;let h=f.find(g=>g.value===u);return(0,A2.jsx)(k2e,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:Dt(c,s),__next40pxDefaultSize:!0,isBlock:!0,label:t.label,help:h?.description||t.description,onChange:d,value:u,hideLabelFromVision:o,children:f.map(g=>(0,A2.jsx)(Dg.__experimentalToggleGroupControlOption,{label:g.label,value:g.value},g.value))})}var R2=i(R(),1),O2=i(N(),1);var W0=i(x(),1),{ValidatedFormTokenField:E2e}=Ht(R2.privateApis);function Jte({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){let{label:a,placeholder:l,getValue:c,setValue:u,isValid:d}=t,f=c({item:e}),{elements:m,isLoading:h}=ps({elements:t.elements,getElements:t.getElements}),g=(0,O2.useMemo)(()=>Array.isArray(f)?f.map(v=>m?.find(S=>S.value===v)||{value:v,label:v}):[],[f,m]),y=(0,O2.useCallback)(v=>{let b=v.map(S=>typeof S=="object"&&"value"in S?S.value:S);r(u({item:e,value:b}))},[r,u,e]);return h?(0,W0.jsx)(R2.Spinner,{}):(0,W0.jsx)(E2e,{required:!!d?.required,markWhenOptional:n,customValidity:Dt(d,s),label:o?void 0:a,value:g,onChange:y,placeholder:l,suggestions:m?.map(v=>v.value),__experimentalValidateInput:v=>t.isValid?.elements&&m?m.some(b=>b.value===v||b.label===v):!0,__experimentalExpandOnFocus:m&&m.length>0,__experimentalShowHowTo:!t.isValid?.elements,displayTransform:v=>typeof v=="object"&&"label"in v?v.label:typeof v=="string"&&m&&m.find(S=>S.value===v)?.label||v,__experimentalRenderItem:({item:v})=>{if(typeof v=="string"&&m){let b=m.find(S=>S.value===v);return(0,W0.jsx)("span",{children:b?.label||v})}return(0,W0.jsx)("span",{children:v})}})}var hs=i(R(),1),TF=i(N(),1),$te=i(E(),1);var Dc=i(x(),1),{ValidatedInputControl:A2e}=Ht(hs.privateApis),R2e=({color:e,onColorChange:t})=>{let r=e&&xr(e).isValid()?e:"#ffffff";return(0,Dc.jsx)(hs.Dropdown,{className:"dataviews-controls__color-picker-dropdown",popoverProps:{resize:!1},renderToggle:({onToggle:o})=>(0,Dc.jsx)(hs.Button,{onClick:o,"aria-label":(0,$te.__)("Open color picker"),size:"small",icon:()=>(0,Dc.jsx)(hs.ColorIndicator,{colorValue:r})}),renderContent:()=>(0,Dc.jsx)(hs.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,Dc.jsx)(hs.ColorPicker,{color:r,onChange:t,enableAlpha:!0})})})};function ere({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){let{label:a,placeholder:l,description:c,setValue:u,isValid:d}=t,f=t.getValue({item:e})||"",m=(0,TF.useCallback)(g=>{r(u({item:e,value:g}))},[e,r,u]),h=(0,TF.useCallback)(g=>{r(u({item:e,value:g||""}))},[e,r,u]);return(0,Dc.jsx)(A2e,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:Dt(d,s),label:a,placeholder:l,value:f,help:c,onChange:h,hideLabelFromVision:o,type:"text",prefix:(0,Dc.jsx)(hs.__experimentalInputControlPrefixWrapper,{variant:"control",children:(0,Dc.jsx)(R2e,{color:f,onColorChange:m})})})}var F2=i(R(),1),N2=i(N(),1),CF=i(E(),1);var I2=i(x(),1);function tre({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){let[a,l]=(0,N2.useState)(!1),c=(0,N2.useCallback)(()=>{l(u=>!u)},[]);return(0,I2.jsx)(rl,{data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s,type:a?"text":"password",suffix:(0,I2.jsx)(F2.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,I2.jsx)(F2.Button,{icon:a?ZR:jd,onClick:c,size:"small",label:a?(0,CF.__)("Hide password"):(0,CF.__)("Show password")})})})}function B2(e){return Array.isArray(e.elements)&&e.elements.length>0||typeof e.getElements=="function"}var ore=i(x(),1),rre={adaptiveSelect:Pte,array:Jte,checkbox:bte,color:ere,combobox:m2,datetime:wte,date:Tte,email:Rte,telephone:Ote,url:Ite,integer:Bte,number:Lte,password:tre,radio:Vte,select:b2,text:zte,toggle:Wte,textarea:Kte,toggleGroup:Qte};function O2e(e){return e&&typeof e=="object"&&typeof e.control=="string"}function I2e(e){let{control:t,...r}=e,o=D2(t);return o===null?null:function(s){return(0,ore.jsx)(o,{...s,config:r})}}function nre(e,t){return typeof e.Edit=="function"?e.Edit:typeof e.Edit=="string"?D2(e.Edit):O2e(e.Edit)?I2e(e.Edit):B2(e)&&e.type!=="array"?D2("adaptiveSelect"):t===null?null:D2(t)}function D2(e){return Object.keys(rre).includes(e)?rre[e]:null}function F2e(e,t,r){if(e.filterBy===!1)return!1;let o=e.filterBy?.operators?.filter(n=>r.includes(n))??t;return o.length===0?!1:{isPrimary:!!e.filterBy?.isPrimary,operators:o}}var sre=F2e;var N2e=e=>({item:t})=>{let r=e.split("."),o=t;for(let n of r)o.hasOwnProperty(n)?o=o[n]:o=void 0;return o},ire=N2e;var B2e=e=>({value:t})=>{let r=e.split("."),o={},n=o;for(let s of r.slice(0,-1))n[s]={},n=n[s];return n[r.at(-1)]=t,o},are=B2e;var cre=i(E(),1);function L2({item:e,field:t}){let{elements:r,isLoading:o}=ps({elements:t.elements,getElements:t.getElements}),n=t.getValue({item:e});return o||r.length===0?n:r?.find(s=>s.value===n)?.label||t.getValue({item:e})}var lre=i(x(),1);function Rr({item:e,field:t}){return t.hasElements?(0,lre.jsx)(L2,{item:e,field:t}):t.getValueFormatted({item:e,field:t})}var ol=(e,t,r)=>r==="asc"?e.localeCompare(t):t.localeCompare(e);function Or(e,t){let r=t.getValue({item:e});return![void 0,"",null].includes(r)}function nl(e,t){if(typeof t.isValid.minLength?.constraint!="number")return!1;let r=t.getValue({item:e});return[void 0,"",null].includes(r)?!0:String(r).length>=t.isValid.minLength.constraint}function sl(e,t){if(typeof t.isValid.maxLength?.constraint!="number")return!1;let r=t.getValue({item:e});return[void 0,"",null].includes(r)?!0:String(r).length<=t.isValid.maxLength.constraint}function il(e,t){if(t.isValid.pattern?.constraint===void 0)return!0;try{let r=new RegExp(t.isValid.pattern.constraint),o=t.getValue({item:e});return[void 0,"",null].includes(o)?!0:r.test(String(o))}catch{return!1}}function Gt(e,t){let o=(t.elements??[]).map(s=>s.value);if(o.length===0)return!0;let n=t.getValue({item:e});return[].concat(n).every(s=>o.includes(s))}function D2e({item:e,field:t}){return t.getValue({item:e})}var zn=D2e;var L2e=/^[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 M2e(e,t){let r=t.getValue({item:e});return![void 0,"",null].includes(r)&&!L2e.test(r)?(0,cre.__)("Value must be a valid email address."):null}var ure={type:"email",render:Rr,Edit:"email",sort:ol,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[nr,sr],validOperators:[yr,br,Ja,$a,el,nr,sr,fn,mn],format:{},getValueFormatted:zn,validate:{required:Or,pattern:il,minLength:nl,maxLength:sl,elements:Gt,custom:M2e}};var dre=i(E(),1);var Lg=(e,t,r)=>r==="asc"?e-t:t-e;function M2(e,t){if(typeof t.isValid.min?.constraint!="number")return!1;let r=t.getValue({item:e});return[void 0,"",null].includes(r)?!0:Number(r)>=t.isValid.min.constraint}function V2(e,t){if(typeof t.isValid.max?.constraint!="number")return!1;let r=t.getValue({item:e});return[void 0,"",null].includes(r)?!0:Number(r)<=t.isValid.max.constraint}var fre={separatorThousand:","};function V2e({item:e,field:t}){let r=t.getValue({item:e});if(r==null)return"";if(r=Number(r),!Number.isFinite(r))return String(r);let o;t.type!=="integer"?o=fre:o=t.format;let{separatorThousand:n}=o,s=Math.trunc(r);return n?String(s).replace(/\B(?=(\d{3})+(?!\d))/g,n):String(s)}function j2e(e,t){let r=t.getValue({item:e});return![void 0,"",null].includes(r)&&!Number.isInteger(r)?(0,dre.__)("Value must be an integer."):null}var mre={type:"integer",render:Rr,Edit:"integer",sort:Lg,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[yr,br,dd,fd,md,pd,Mn],validOperators:[yr,br,dd,fd,md,pd,Mn,nr,sr,fn,mn],format:fre,getValueFormatted:V2e,validate:{required:Or,min:M2,max:V2,elements:Gt,custom:j2e}};var pre=i(E(),1);var hre={separatorThousand:",",separatorDecimal:".",decimals:2};function z2e({item:e,field:t}){let r=t.getValue({item:e});if(r==null)return"";if(r=Number(r),!Number.isFinite(r))return String(r);let o;t.type!=="number"?o=hre:o=t.format;let{separatorThousand:n,separatorDecimal:s,decimals:a}=o,l=r.toFixed(a),[c,u]=l.split("."),d=n?c.replace(/\B(?=(\d{3})+(?!\d))/g,n):c;return a===0?d:d+s+u}function U2e(e){return e===""||e===void 0||e===null}function H2e(e,t){let r=t.getValue({item:e});return!U2e(r)&&!Number.isFinite(r)?(0,pre.__)("Value must be a number."):null}var gre={type:"number",render:Rr,Edit:"number",sort:Lg,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[yr,br,dd,fd,md,pd,Mn],validOperators:[yr,br,dd,fd,md,pd,Mn,nr,sr,fn,mn],format:hre,getValueFormatted:z2e,validate:{required:Or,min:M2,max:V2,elements:Gt,custom:H2e}};var vre={type:"text",render:Rr,Edit:"text",sort:ol,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[nr,sr],validOperators:[yr,br,Ja,$a,el,nr,sr,fn,mn],format:{},getValueFormatted:zn,validate:{required:Or,pattern:il,minLength:nl,maxLength:sl,elements:Gt}};var km=i(mo(),1);var yre={datetime:(0,km.getSettings)().formats.datetime,weekStartsOn:(0,km.getSettings)().l10n.startOfWeek};function G2e({item:e,field:t}){let r=t.getValue({item:e});if(["",void 0,null].includes(r))return"";let o;return t.type!=="datetime"?o=yre:o=t.format,(0,km.dateI18n)(o.datetime,(0,km.getDate)(r))}var W2e=(e,t,r)=>{let o=new Date(e).getTime(),n=new Date(t).getTime();return r==="asc"?o-n:n-o},bre={type:"datetime",render:Rr,Edit:"datetime",sort:W2e,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[bd,Sd,hd,gd,vd,yd,Vn,ms],validOperators:[bd,Sd,hd,gd,vd,yd,Vn,ms],format:yre,getValueFormatted:G2e,validate:{required:Or,elements:Gt}};var Em=i(mo(),1);var Sre={date:(0,Em.getSettings)().formats.date,weekStartsOn:(0,Em.getSettings)().l10n.startOfWeek};function Y2e({item:e,field:t}){let r=t.getValue({item:e});if(["",void 0,null].includes(r))return"";let o;return t.type!=="date"?o=Sre:o=t.format,(0,Em.dateI18n)(o.date,(0,Em.getDate)(r))}var q2e=(e,t,r)=>{let o=new Date(e).getTime(),n=new Date(t).getTime();return r==="asc"?o-n:n-o},_re={type:"date",render:Rr,Edit:"date",sort:q2e,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[bd,Sd,hd,gd,vd,yd,Vn,ms,Mn],validOperators:[bd,Sd,hd,gd,vd,yd,Vn,ms,Mn],format:Sre,getValueFormatted:Y2e,validate:{required:Or,elements:Gt}};var j2=i(E(),1);function wre(e,t){return t.getValue({item:e})===!0}function Z2e({item:e,field:t}){let r=t.getValue({item:e});return r===!0?(0,j2.__)("True"):r===!1?(0,j2.__)("False"):""}function K2e(e,t){let r=t.getValue({item:e});return![void 0,"",null].includes(r)&&![!0,!1].includes(r)?(0,j2.__)("Value must be true, false, or undefined"):null}var X2e=(e,t,r)=>{let o=!!e;return o===!!t?0:r==="asc"?o?1:-1:o?-1:1},xre={type:"boolean",render:Rr,Edit:"checkbox",sort:X2e,validate:{required:wre,elements:Gt,custom:K2e},enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[yr,br],validOperators:[yr,br],format:{},getValueFormatted:Z2e};var Tre={type:"media",render:()=>null,Edit:null,sort:()=>0,enableSorting:!1,enableGlobalSearch:!1,defaultOperators:[],validOperators:[],format:{},getValueFormatted:zn,validate:{}};var PF=i(E(),1);function Cre(e,t){let r=t.getValue({item:e});return Array.isArray(r)&&r.length>0&&r.every(o=>![void 0,"",null].includes(o))}function Pre({item:e,field:t}){let r=t.getValue({item:e});return(Array.isArray(r)?r:[]).join(", ")}function Q2e({item:e,field:t}){return Pre({item:e,field:t})}function J2e(e,t){let r=t.getValue({item:e});return![void 0,"",null].includes(r)&&!Array.isArray(r)?(0,PF.__)("Value must be an array."):r.every(o=>typeof o=="string")?null:(0,PF.__)("Every value must be a string.")}var $2e=(e,t,r)=>{let o=Array.isArray(e)?e:[],n=Array.isArray(t)?t:[];if(o.length!==n.length)return r==="asc"?o.length-n.length:n.length-o.length;let s=o.join(","),a=n.join(",");return r==="asc"?s.localeCompare(a):a.localeCompare(s)},kre={type:"array",render:Q2e,Edit:"array",sort:$2e,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[nr,sr],validOperators:[nr,sr,fn,mn],format:{},getValueFormatted:Pre,validate:{required:Cre,elements:Gt,custom:J2e}};function eEe({item:e,field:t}){return t.getValue({item:e})?"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022":""}var Ere={type:"password",render:Rr,Edit:"password",sort:()=>0,enableSorting:!1,enableGlobalSearch:!1,defaultOperators:[],validOperators:[],format:{},getValueFormatted:eEe,validate:{required:Or,pattern:il,minLength:nl,maxLength:sl,elements:Gt}};var Are={type:"telephone",render:Rr,Edit:"telephone",sort:ol,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[nr,sr],validOperators:[yr,br,Ja,$a,el,nr,sr,fn,mn],format:{},getValueFormatted:zn,validate:{required:Or,pattern:il,minLength:nl,maxLength:sl,elements:Gt}};var Rre=i(E(),1);var Mg=i(x(),1);function tEe({item:e,field:t}){if(t.hasElements)return(0,Mg.jsx)(L2,{item:e,field:t});let r=zn({item:e,field:t});return!r||!xr(r).isValid()?r:(0,Mg.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Mg.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"50%",backgroundColor:r,border:"1px solid #ddd",flexShrink:0}}),(0,Mg.jsx)("span",{children:r})]})}function rEe(e,t){let r=t.getValue({item:e});return![void 0,"",null].includes(r)&&!xr(r).isValid()?(0,Rre.__)("Value must be a valid color."):null}var oEe=(e,t,r)=>{let o=xr(e),n=xr(t);if(!o.isValid()&&!n.isValid())return 0;if(!o.isValid())return r==="asc"?1:-1;if(!n.isValid())return r==="asc"?-1:1;let s=o.toHsl(),a=n.toHsl();return s.h!==a.h?r==="asc"?s.h-a.h:a.h-s.h:s.s!==a.s?r==="asc"?s.s-a.s:a.s-s.s:r==="asc"?s.l-a.l:a.l-s.l},Ore={type:"color",render:tEe,Edit:"color",sort:oEe,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[nr,sr],validOperators:[yr,br,nr,sr],format:{},getValueFormatted:zn,validate:{required:Or,elements:Gt,custom:rEe}};var Ire={type:"url",render:Rr,Edit:"url",sort:ol,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[nr,sr],validOperators:[yr,br,Ja,$a,el,nr,sr,fn,mn],format:{},getValueFormatted:zn,validate:{required:Or,pattern:il,minLength:nl,maxLength:sl,elements:Gt}};var nEe=(e,t,r)=>typeof e=="number"&&typeof t=="number"?Lg(e,t,r):ol(e,t,r),Fre={render:Rr,Edit:null,sort:nEe,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[yr,br],validOperators:hte(),format:{},getValueFormatted:zn,validate:{required:Or,elements:Gt}};function Nre(e,t){let r;e.isValid?.required===!0&&t.validate.required!==void 0&&(r={constraint:!0,validate:t.validate.required});let o;(e.isValid?.elements===!0||e.isValid?.elements===void 0&&(e.elements||e.getElements))&&t.validate.elements!==void 0&&(o={constraint:!0,validate:t.validate.elements});let n;typeof e.isValid?.min=="number"&&t.validate.min!==void 0&&(n={constraint:e.isValid.min,validate:t.validate.min});let s;typeof e.isValid?.max=="number"&&t.validate.max!==void 0&&(s={constraint:e.isValid.max,validate:t.validate.max});let a;typeof e.isValid?.minLength=="number"&&t.validate.minLength!==void 0&&(a={constraint:e.isValid.minLength,validate:t.validate.minLength});let l;typeof e.isValid?.maxLength=="number"&&t.validate.maxLength!==void 0&&(l={constraint:e.isValid.maxLength,validate:t.validate.maxLength});let c;e.isValid?.pattern!==void 0&&t.validate.pattern!==void 0&&(c={constraint:e.isValid?.pattern,validate:t.validate.pattern});let u=e.isValid?.custom??t.validate.custom;return{required:r,elements:o,min:n,max:s,minLength:a,maxLength:l,pattern:c,custom:u}}function Bre(e){return e.validOperators.reduce((t,r)=>{let o=pte(r);return o?.filter&&(t[r]=o.filter),t},{})}function sEe(e,t){return{...t.format,...e.format}}var Dre=sEe;function iEe(e){let t=[ure,mre,gre,vre,bre,_re,xre,Tre,kre,Ere,Are,Ore,Ire].find(r=>r?.type===e);return t||Fre}function Y0(e){return e.map(t=>{let r=iEe(t.type),o=t.getValue||ire(t.id),n=function(s,a,l){let c=o({item:s}),u=o({item:a});return t.sort?t.sort(c,u,l):r.sort(c,u,l)};return{id:t.id,label:t.label||t.id,header:t.header||t.label||t.id,description:t.description,placeholder:t.placeholder,getValue:o,setValue:t.setValue||are(t.id),elements:t.elements,getElements:t.getElements,hasElements:B2(t),isVisible:t.isVisible,enableHiding:t.enableHiding??!0,readOnly:t.readOnly??!1,type:r.type,render:t.render??r.render,Edit:nre(t,r.Edit),sort:n,enableSorting:t.enableSorting??r.enableSorting,enableGlobalSearch:t.enableGlobalSearch??r.enableGlobalSearch,isValid:Nre(t,r),filterBy:sre(t,r.defaultOperators,r.validOperators),filter:Bre(r),format:Dre(t,r),getValueFormatted:t.getValueFormatted??r.getValueFormatted}})}var NF=i(N(),1);var Lre=i(N(),1),Mre=i(x(),1),kF=(0,Lre.createContext)({fields:[]});kF.displayName="DataFormContext";function Vre({fields:e,children:t}){return(0,Mre.jsx)(kF.Provider,{value:{fields:e},children:t})}var ki=kF;var X2=i(N(),1);var U2=i(N(),1),q0=i(R(),1);var gn={type:"regular",labelPosition:"top"},aEe=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 jre(e){let t=gn;if(e?.type==="regular")t={type:"regular",labelPosition:e?.labelPosition??"top"};else if(e?.type==="panel"){let r=e.summary??[],o=Array.isArray(r)?r:[r];t={type:"panel",labelPosition:e?.labelPosition??"side",openAs:e?.openAs??"dropdown",summary:o,editVisibility:e?.editVisibility??"on-hover"}}else if(e?.type==="card")if(e.withHeader===!1)t={type:"card",withHeader:!1,isOpened:!0,summary:[],isCollapsible:!1};else{let r=e.summary??[];t={type:"card",withHeader:!0,isOpened:typeof e.isOpened=="boolean"?e.isOpened:!0,summary:aEe(r),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 zre(e){let t=jre(e?.layout),r=(e.fields??[]).map(o=>{if(typeof o=="string")return{id:o,layout:t};let n=o.layout?jre(o.layout):t;return{id:o.id,layout:n,...!!o.label&&{label:o.label},...!!o.description&&{description:o.description},..."children"in o&&Array.isArray(o.children)&&{children:zre({fields:o.children,layout:gn}).fields}}});return{layout:t,fields:r}}var z2=zre;var ir=i(x(),1);function lEe({title:e}){return(0,ir.jsx)(it,{direction:"column",className:"dataforms-layouts-regular__header",gap:"lg",children:(0,ir.jsx)(it,{direction:"row",align:"center",children:(0,ir.jsx)(q0.__experimentalHeading,{level:2,size:13,children:e})})})}function Ure({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){let{fields:a}=(0,U2.useContext)(ki),l=t.layout,c=(0,U2.useMemo)(()=>({layout:gn,fields:t.children?t.children:[]}),[t]);if(t.children)return(0,ir.jsxs)(ir.Fragment,{children:[!o&&t.label&&(0,ir.jsx)(lEe,{title:t.label}),(0,ir.jsx)(gs,{data:e,form:c,onChange:r,validity:s?.children})]});let u=l.labelPosition,d=a.find(f=>f.id===t.id);return!d||!d.Edit?null:u==="side"?(0,ir.jsxs)(it,{direction:"row",className:"dataforms-layouts-regular__field",gap:"sm",children:[(0,ir.jsx)("div",{className:re("dataforms-layouts-regular__field-label",`dataforms-layouts-regular__field-label--label-position-${u}`),children:(0,ir.jsx)(q0.BaseControl.VisualLabel,{children:d.label})}),(0,ir.jsx)("div",{className:"dataforms-layouts-regular__field-control",children:d.readOnly===!0?(0,ir.jsx)(d.render,{item:e,field:d}):(0,ir.jsx)(d.Edit,{data:e,field:d,onChange:r,hideLabelFromVision:!0,markWhenOptional:n,validity:s},d.id)})]}):(0,ir.jsx)("div",{className:"dataforms-layouts-regular__field",children:d.readOnly===!0?(0,ir.jsx)(ir.Fragment,{children:(0,ir.jsxs)(ir.Fragment,{children:[!o&&u!=="none"&&(0,ir.jsx)(q0.BaseControl.VisualLabel,{children:d.label}),(0,ir.jsx)(d.render,{item:e,field:d})]})}):(0,ir.jsx)(d.Edit,{data:e,field:d,onChange:r,hideLabelFromVision:u==="none"?!0:o,markWhenOptional:n,validity:s})})}var AF=i(rw(),1),Am=i(R(),1),RF=i(E(),1),ha=i(N(),1),Y2=i(pe(),1);var jg=i(R(),1),Vg=i(E(),1);var qre=i(pe(),1),Zre=i(N(),1);function cEe(e,t){return re("dataforms-layouts-panel__field-label",`dataforms-layouts-panel__field-label--label-position-${e}`,{"has-error":t})}var Hre=cEe;var H2=i(R(),1);var Z0=i(x(),1);function uEe(e,t,r){return e?(0,Z0.jsx)(H2.Tooltip,{text:t,placement:"top",children:(0,Z0.jsxs)("span",{className:"dataforms-layouts-panel__field-label-error-content",children:[(0,Z0.jsx)(H2.Icon,{icon:Sl,size:16}),r]})}):r}var Gre=uEe;function Wre(e){if(!e)return;let t=Object.keys(e).filter(r=>r!=="children");for(let r of t){let o=e[r];if(o!==void 0&&o.type==="invalid")return o.message?o.message:r==="required"?"A required field is empty":"Unidentified validation error"}if(e.children)for(let r of Object.values(e.children)){let o=Wre(r);if(o)return o}}var Yre=Wre;var Us=i(x(),1);function K0({data:e,field:t,fieldLabel:r,summaryFields:o,validity:n,touched:s,disabled:a,onClick:l,"aria-expanded":c}){let{labelPosition:u,editVisibility:d}=t.layout,f=Yre(n),m=s&&!!f,h=Hre(u,m),g=Gre(m,f,r),y=re("dataforms-layouts-panel__field-trigger",`dataforms-layouts-panel__field-trigger--label-${u}`,{"is-disabled":a,"dataforms-layouts-panel__field-trigger--edit-always":d==="always"}),v=(0,qre.useInstanceId)(K0,"dataforms-layouts-panel__field-control"),b=m?(0,Vg.sprintf)((0,Vg._x)("Edit %s (has errors)","field"),r||""):(0,Vg.sprintf)((0,Vg._x)("Edit %s","field"),r||""),S=(0,Zre.useRef)(null);return(0,Us.jsxs)("div",{ref:S,className:y,onClick:a?void 0:()=>{let C=S.current?.ownerDocument.defaultView?.getSelection();C&&C.toString().length>0||l()},onKeyDown:a?void 0:C=>{C.target===C.currentTarget&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),l())},children:[u!=="none"&&(0,Us.jsx)("span",{className:h,children:g}),u==="none"&&m&&(0,Us.jsx)(jg.Tooltip,{text:f,placement:"top",children:(0,Us.jsx)("span",{className:"dataforms-layouts-panel__field-label-error-content",children:(0,Us.jsx)(jg.Icon,{icon:Sl,size:16})})}),(0,Us.jsx)("span",{id:`${v}`,className:"dataforms-layouts-panel__field-control",children:o.length>1?(0,Us.jsx)("span",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%",gap:"2px"},children:o.map(C=>(0,Us.jsx)("span",{style:{width:"100%"},children:(0,Us.jsx)(C.render,{item:e,field:C})},C.id))}):o.map(C=>(0,Us.jsx)(C.render,{item:e,field:C},C.id))}),!a&&(0,Us.jsx)(jg.Button,{className:"dataforms-layouts-panel__field-trigger-icon",label:b,showTooltip:!1,icon:Ev,size:"small","aria-expanded":c,"aria-haspopup":"dialog","aria-describedby":`${v}`})]})}var Kre=i(rw(),1),EF=i(aI(),1),al=i(N(),1),Un=i(E(),1);function Xre(e){return e?Object.values(e).every(t=>Object.entries(t).every(([r,o])=>r==="children"&&o&&typeof o=="object"?Xre(o):o.type!=="invalid"&&o.type!=="validating")):!0}function dEe(e,t){let r=z2(e);if(r.fields.length===0)return[];let o=new Map;t.forEach(a=>{o.set(a.id,a)});function n(a){if("children"in a&&Array.isArray(a.children)){let u=a.children.map(n).filter(f=>f!==null);if(u.length===0)return null;let d=o.get(a.id);if(d){let[f]=Y0([d]);return{id:a.id,children:u,field:f}}return{id:a.id,children:u}}let l=o.get(a.id);if(!l)return null;let[c]=Y0([l]);return{id:a.id,children:[],field:c}}return r.fields.map(n).filter(a=>a!==null)}function zg(e,t,r){if(e||(e={}),r.length===0)return e;let o={...e},n=o;for(let a=0;a<r.length-1;a++){let l=r[a];n[l]||(n[l]={}),n[l]={...n[l]},n=n[l]}let s=r[r.length-1];return n[s]={...n[s]||{},...t},o}function Qre(e,t,r){if(!e||t.length===0)return e;let o={...e},n=o;for(let l=0;l<t.length-1;l++){let c=t[l];if(!n[c])return e;n[c]={...n[c]},n=n[c]}let s=t[t.length-1];if(!n[s])return e;let a={...n[s]};if(delete a[r],Object.keys(a).length===0?delete n[s]:n[s]=a,Object.keys(o).length!==0)return o}function fEe(e,t,r){let{elementsCounterRef:o,setFormValidity:n,path:s,item:a}=r,l=(o.current[t.id]||0)+1;o.current[t.id]=l,e.then(c=>{if(l===o.current[t.id]){if(!Array.isArray(c)){n(u=>zg(u,{elements:{type:"invalid",message:(0,Un.__)("Could not validate elements.")}},[...s,t.id]));return}t.field?.isValid.elements&&!t.field.isValid.elements.validate(a,{...t.field,elements:c})?n(u=>zg(u,{elements:{type:"invalid",message:(0,Un.__)("Value must be one of the elements.")}},[...s,t.id])):n(u=>Qre(u,[...s,t.id],"elements"))}}).catch(c=>{if(l!==o.current[t.id])return;let u;c instanceof Error?u=c.message:u=String(c)||(0,Un.__)("Unknown error when running elements validation asynchronously."),n(d=>zg(d,{elements:{type:"invalid",message:u}},[...s,t.id]))})}function mEe(e,t,r){let{customCounterRef:o,setFormValidity:n,path:s}=r,a=(o.current[t.id]||0)+1;o.current[t.id]=a,e.then(l=>{if(a===o.current[t.id]){if(l===null){n(c=>Qre(c,[...s,t.id],"custom"));return}if(typeof l=="string"){n(c=>zg(c,{custom:{type:"invalid",message:l}},[...s,t.id]));return}n(c=>zg(c,{custom:{type:"invalid",message:(0,Un.__)("Validation could not be processed.")}},[...s,t.id]))}}).catch(l=>{if(a!==o.current[t.id])return;let c;l instanceof Error?c=l.message:c=String(l)||(0,Un.__)("Unknown error when running custom validation asynchronously."),n(u=>zg(u,{custom:{type:"invalid",message:c}},[...s,t.id]))})}function Jre(e,t,r){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,Un.__)("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,Un.__)("Value is below the minimum.")}};if(t.field?.isValid.max&&!t.field.isValid.max.validate(e,t.field))return{max:{type:"invalid",message:(0,Un.__)("Value is above the maximum.")}};if(t.field?.isValid.minLength&&!t.field.isValid.minLength.validate(e,t.field))return{minLength:{type:"invalid",message:(0,Un.__)("Value is too short.")}};if(t.field?.isValid.maxLength&&!t.field.isValid.maxLength.validate(e,t.field))return{maxLength:{type:"invalid",message:(0,Un.__)("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,Un.__)("Value must be one of the elements.")}};let o;if(t.field&&t.field.isValid.custom)try{let s=t.field.getValue({item:e});o=t.field.isValid.custom((0,Kre.default)(e,t.field.setValue({item:e,value:s})),t.field)}catch(s){let a;return s instanceof Error?a=s.message:a=String(s)||(0,Un.__)("Unknown error when running custom validation."),{custom:{type:"invalid",message:a}}}if(typeof o=="string")return{custom:{type:"invalid",message:o}};let n={};if(t.field&&t.field.isValid.elements&&t.field.hasElements&&typeof t.field.getElements=="function"&&(fEe(t.field.getElements(),t,r),n.elements={type:"validating",message:(0,Un.__)("Validating\u2026")}),o instanceof Promise&&(mEe(o,t,r),n.custom={type:"validating",message:(0,Un.__)("Validating\u2026")}),Object.keys(n).length>0)return n;if(t.children.length>0){let s={};t.children.forEach(l=>{s[l.id]=Jre(e,l,{...r,path:[...r.path,t.id,"children"]})});let a={};return Object.entries(s).forEach(([l,c])=>{c!==void 0&&(a[l]=c)}),Object.keys(a).length===0?void 0:{children:a}}}function $re(e,t){let r=e?.field?.getValue({item:t});if(e.children.length===0)return r;let o=e.children.map(n=>$re(n,t));return o?{value:r,children:o}:r}function pEe(e,t,r){let[o,n]=(0,al.useState)(),s=(0,al.useRef)({}),a=(0,al.useRef)({}),l=(0,al.useRef)({}),c=(0,al.useCallback)(()=>{let u={customCounterRef:s,elementsCounterRef:a,setFormValidity:n,path:[],item:e},d=dEe(r,t);if(d.length===0){n(void 0);return}let f={},m=[];d.forEach(h=>{let g=$re(h,e);if(l.current.hasOwnProperty(h.id)&&(0,EF.default)(l.current[h.id],g)){m.push(h.id);return}l.current[h.id]=g;let y=Jre(e,h,u);y!==void 0&&(f[h.id]=y)}),n(h=>{let g={...h,...f},y=[...m,...Object.keys(f)];return Object.keys(g).forEach(b=>{g&&!y.includes(b)&&delete g[b]}),Object.keys(g).length===0&&(g=void 0),(0,EF.default)(h,g)?h:g})},[e,t,r]);return(0,al.useEffect)(()=>{c()},[c]),{validity:o,isValid:Xre(o)}}var eoe=pEe;var toe=i(N(),1);function Td(e,t){(0,toe.useEffect)(()=>{t&&e.current&&e.current.querySelectorAll("input, textarea, select").forEach(o=>{o.reportValidity()})},[t,e])}var roe=i(N(),1);function hEe(e){return Array.isArray(e)?e.map(t=>typeof t=="string"?t:t.id):[]}var G2=(e,t)=>Array.isArray(e)&&e.length>0?hEe(e).map(o=>t.find(n=>n.id===o)).filter(o=>o!==void 0):[];var gEe=(e,t)=>{let r=t.find(o=>o.id===e.id);return r||t.find(o=>{if(e.children){let n=e.children.filter(s=>!s.children);return n.length===0?!1:o.id===n[0].id}return o.id===e.id})};function vEe(e){let{fields:t}=(0,roe.useContext)(ki),r=e.layout,o=G2(r.summary,t),n=gEe(e,t),s=e.children?e.label:n?.label;return o.length===0?{summaryFields:n?[n]:[],fieldDefinition:n,fieldLabel:s}:{summaryFields:o,fieldDefinition:n,fieldLabel:s}}var W2=vEe;var Hn=i(x(),1);function yEe({data:e,field:t,onChange:r,fieldLabel:o,onClose:n,touched:s}){let{fields:a}=(0,ha.useContext)(ki),[l,c]=(0,ha.useState)({}),u=(0,ha.useMemo)(()=>(0,AF.default)(e,l,{arrayMerge:(S,w)=>w}),[e,l]),d=(0,ha.useMemo)(()=>({layout:gn,fields:t.children?t.children:[{id:t.id,layout:gn}]}),[t]),f=a.map(S=>({...S,Edit:S.Edit===null?void 0:S.Edit,isValid:{required:S.isValid.required?.constraint,elements:S.isValid.elements?.constraint,min:S.isValid.min?.constraint,max:S.isValid.max?.constraint,pattern:S.isValid.pattern?.constraint,minLength:S.isValid.minLength?.constraint,maxLength:S.isValid.maxLength?.constraint}})),{validity:m}=eoe(u,f,d),h=()=>{r(l),n()},g=S=>{c(w=>(0,AF.default)(w,S,{arrayMerge:(T,C)=>C}))},y=(0,Y2.useFocusOnMount)("firstInputElement"),v=(0,ha.useRef)(null),b=(0,Y2.useMergeRefs)([y,v]);return Td(v,s),(0,Hn.jsxs)(Am.Modal,{className:"dataforms-layouts-panel__modal",onRequestClose:n,isFullScreen:!1,title:o,size:"medium",children:[(0,Hn.jsx)("div",{ref:b,children:(0,Hn.jsx)(gs,{data:u,form:d,onChange:g,validity:m,children:(S,w,T,C)=>(0,Hn.jsx)(S,{data:u,field:w,onChange:g,hideLabelFromVision:d.fields.length<2,markWhenOptional:C,validity:T},w.id)})}),(0,Hn.jsxs)(it,{direction:"row",className:"dataforms-layouts-panel__modal-footer",gap:"md",children:[(0,Hn.jsx)(Am.__experimentalSpacer,{style:{flex:1}}),(0,Hn.jsx)(Am.Button,{variant:"tertiary",onClick:n,__next40pxDefaultSize:!0,children:(0,RF.__)("Cancel")}),(0,Hn.jsx)(Am.Button,{variant:"primary",onClick:h,__next40pxDefaultSize:!0,children:(0,RF.__)("Apply")})]})]})}function bEe({data:e,field:t,onChange:r,validity:o}){let[n,s]=(0,ha.useState)(!1),[a,l]=(0,ha.useState)(!1),{fieldDefinition:c,fieldLabel:u,summaryFields:d}=W2(t);if(!c)return null;let f=()=>{l(!1),s(!0)};return(0,Hn.jsxs)(Hn.Fragment,{children:[(0,Hn.jsx)(K0,{data:e,field:t,fieldLabel:u,summaryFields:d,validity:o,touched:n,disabled:c.readOnly===!0,onClick:()=>l(!0),"aria-expanded":a}),a&&(0,Hn.jsx)(yEe,{data:e,field:t,onChange:r,fieldLabel:u??"",onClose:f,touched:n})]})}var ooe=bEe;var Cd=i(R(),1),noe=i(E(),1),Lc=i(N(),1);var soe=i(pe(),1);var vn=i(x(),1);function SEe({title:e,onClose:t}){return(0,vn.jsx)(it,{direction:"column",className:"dataforms-layouts-panel__dropdown-header",gap:"lg",children:(0,vn.jsxs)(it,{direction:"row",gap:"sm",align:"center",children:[e&&(0,vn.jsx)(Cd.__experimentalHeading,{level:2,size:13,children:e}),(0,vn.jsx)(Cd.__experimentalSpacer,{style:{flex:1}}),t&&(0,vn.jsx)(Cd.Button,{label:(0,noe.__)("Close"),icon:Zn,onClick:t,size:"small"})]})})}function _Ee({touched:e,children:t}){let r=(0,Lc.useRef)(null);return Td(r,e),(0,vn.jsx)("div",{ref:r,children:t})}function wEe({data:e,field:t,onChange:r,validity:o}){let[n,s]=(0,Lc.useState)(!1),[a,l]=(0,Lc.useState)(null),c=(0,Lc.useMemo)(()=>({anchor:a,placement:"left-start",offset:36,shift:!0}),[a]),[u,d]=(0,soe.__experimentalUseDialog)({focusOnMount:"firstInputElement"}),f=(0,Lc.useMemo)(()=>({layout:gn,fields:t.children?t.children:[{id:t.id,layout:gn}]}),[t]),m=(0,Lc.useMemo)(()=>{if(o!==void 0)return t.children?o?.children:{[t.id]:o}},[o,t]),{fieldDefinition:h,fieldLabel:g,summaryFields:y}=W2(t);return h?(0,vn.jsx)("div",{ref:l,className:"dataforms-layouts-panel__field-dropdown-anchor",children:(0,vn.jsx)(Cd.Dropdown,{contentClassName:"dataforms-layouts-panel__field-dropdown",popoverProps:c,focusOnMount:!1,onToggle:v=>{v||s(!0)},renderToggle:({isOpen:v,onToggle:b})=>(0,vn.jsx)(K0,{data:e,field:t,fieldLabel:g,summaryFields:y,validity:o,touched:n,disabled:h.readOnly===!0,onClick:b,"aria-expanded":v}),renderContent:({onClose:v})=>(0,vn.jsx)(_Ee,{touched:n,children:(0,vn.jsxs)("div",{ref:u,...d,children:[(0,vn.jsx)(SEe,{title:g,onClose:v}),(0,vn.jsx)(gs,{data:e,form:f,onChange:r,validity:m,children:(b,S,w,T)=>(0,vn.jsx)(b,{data:e,field:S,onChange:r,hideLabelFromVision:(f?.fields??[]).length<2,markWhenOptional:T,validity:w},S.id)})]})})})}):null}var ioe=wEe;var OF=i(x(),1);function aoe({data:e,field:t,onChange:r,validity:o}){return t.layout.openAs==="modal"?(0,OF.jsx)(ooe,{data:e,field:t,onChange:r,validity:o}):(0,OF.jsx)(ioe,{data:e,field:t,onChange:r,validity:o})}var Pd=i(R(),1),uoe=i(pe(),1),vs=i(N(),1),IF=i(E(),1);var q2=i(E(),1),loe=i(x(),1);function coe(e){if(!e)return 0;let t=0,r=Object.keys(e).filter(o=>o!=="children");for(let o of r)e[o]?.type==="invalid"&&t++;if(e.children)for(let o of Object.values(e.children))t+=coe(o);return t}function Z2({validity:e}){let t=coe(e);return t===0?null:(0,loe.jsx)(lF,{intent:"high",children:(0,q2.sprintf)((0,q2._n)("%d field needs attention","%d fields need attention",t),t)})}var Ho=i(x(),1);function xEe(e,t,r){if(!t||Array.isArray(t)&&t.length===0)return!1;let n=(Array.isArray(t)?t:[t]).find(s=>typeof s=="string"?s===e.id:typeof s=="object"&&"id"in s?s.id===e.id:!1);return n?typeof n=="string"?!0:typeof n=="object"&&"visibility"in n?n.visibility==="always"||n.visibility==="when-collapsed"&&!r:!0:!1}function FF({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){let{fields:a}=(0,vs.useContext)(ki),l=t.layout,c=(0,vs.useRef)(null),u=(0,uoe.useInstanceId)(FF,"dataforms-layouts-card-card-body"),d=(0,vs.useMemo)(()=>({layout:gn,fields:t.children??[]}),[t]),{isOpened:f,isCollapsible:m}=l,[h,g]=(0,vs.useState)(f),[y,v]=(0,vs.useState)(!1);(0,vs.useEffect)(()=>{g(f)},[f]);let b=(0,vs.useCallback)(()=>{g(k=>(k&&v(!0),!k))},[]),S=m?h:!0,w=(0,vs.useCallback)(()=>{v(!0)},[v]);Td(c,S&&y);let C=G2(l.summary,a).filter(k=>xEe(k,l.summary,S)),A=y&&l.isCollapsible?(0,Ho.jsx)(Z2,{validity:s}):null,F={blockStart:"medium",blockEnd:"medium",inlineStart:"medium",inlineEnd:"medium"},L=t.label,j,z;if(t.children)j=!!L&&l.withHeader,z=(0,Ho.jsxs)(Ho.Fragment,{children:[t.description&&(0,Ho.jsx)("div",{className:"dataforms-layouts-card__field-description",children:t.description}),(0,Ho.jsx)(gs,{data:e,form:d,onChange:r,validity:s?.children})]});else{let k=a.find(U=>U.id===t.id);if(!k||!k.Edit)return null;let I=Rm("regular")?.component;if(!I)return null;L=k.label,j=!!L&&l.withHeader,z=(0,Ho.jsx)(I,{data:e,field:t,onChange:r,hideLabelFromVision:o||j,markWhenOptional:n,validity:s})}let M={blockStart:j?"none":"medium",blockEnd:"medium",inlineStart:"medium",inlineEnd:"medium"};return(0,Ho.jsxs)(Pd.Card,{className:"dataforms-layouts-card__field",size:F,children:[j&&(0,Ho.jsxs)(Pd.CardHeader,{className:"dataforms-layouts-card__field-header",onClick:m?b:void 0,style:{cursor:m?"pointer":void 0},isBorderless:!0,children:[(0,Ho.jsxs)("div",{style:{height:m?void 0:"40px",width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,Ho.jsx)("span",{className:"dataforms-layouts-card__field-header-label",children:L}),A,C.length>0&&l.withHeader&&(0,Ho.jsx)("div",{className:"dataforms-layouts-card__field-summary",children:C.map(k=>(0,Ho.jsx)(k.render,{item:e,field:k},k.id))})]}),m&&(0,Ho.jsx)(Pd.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:S?gv:hv,"aria-expanded":S,"aria-controls":u,"aria-label":S?(0,IF.__)("Collapse"):(0,IF.__)("Expand")})]}),(S||!j)&&(0,Ho.jsx)(Pd.CardBody,{id:u,size:M,className:"dataforms-layouts-card__field-control",ref:c,onBlur:w,children:z})]})}var doe=i(R(),1);var Ro=i(x(),1);function TEe({title:e}){return(0,Ro.jsx)(it,{direction:"column",className:"dataforms-layouts-row__header",gap:"lg",children:(0,Ro.jsx)(it,{direction:"row",align:"center",children:(0,Ro.jsx)(doe.__experimentalHeading,{level:2,size:13,children:e})})})}var CEe=({children:e})=>(0,Ro.jsx)(Ro.Fragment,{children:e});function foe({data:e,field:t,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:s}){let a=t.layout;if(t.children){let c={layout:gn,fields:t.children};return(0,Ro.jsxs)("div",{className:"dataforms-layouts-row__field",children:[!o&&t.label&&(0,Ro.jsx)(TEe,{title:t.label}),(0,Ro.jsx)(it,{direction:"row",align:a.alignment,gap:"lg",children:(0,Ro.jsx)(gs,{data:e,form:c,onChange:r,validity:s?.children,as:CEe,children:(u,d,f)=>(0,Ro.jsx)("div",{className:"dataforms-layouts-row__field-control",style:a.styles[d.id],children:(0,Ro.jsx)(u,{data:e,field:d,onChange:r,hideLabelFromVision:o,markWhenOptional:n,validity:f})},d.id)})})]})}let l=Rm("regular")?.component;return l?(0,Ro.jsx)(Ro.Fragment,{children:(0,Ro.jsx)("div",{className:"dataforms-layouts-row__field-control",children:(0,Ro.jsx)(l,{data:e,field:t,onChange:r,markWhenOptional:n,validity:s})})}):null}var ys=i(N(),1),moe=i(E(),1);var Mc=i(x(),1);function poe({data:e,field:t,onChange:r,validity:o}){let{fields:n}=(0,ys.useContext)(ki),s=(0,ys.useRef)(null),a=(0,ys.useRef)(null),[l,c]=(0,ys.useState)(!1),[u,d]=(0,ys.useState)(!1),f=(0,ys.useMemo)(()=>({layout:gn,fields:t.children??[]}),[t]);(0,ys.useEffect)(()=>{let v=s.current;if(!v)return;let b=()=>{let S=v.open;S||c(!0),d(S)};return v.addEventListener("toggle",b),()=>{v.removeEventListener("toggle",b)}},[]),Td(a,u&&l);let m=(0,ys.useCallback)(()=>{c(!0)},[]);if(!t.children)return null;let h=t.layout.summary??"",g=h?n.find(v=>v.id===h):void 0,y;return g&&g.render?y=(0,Mc.jsx)(g.render,{item:e,field:g}):y=t.label||(0,moe.__)("More details"),(0,Mc.jsxs)("details",{ref:s,className:"dataforms-layouts-details__details",children:[(0,Mc.jsx)("summary",{className:"dataforms-layouts-details__summary",children:(0,Mc.jsxs)(it,{direction:"row",align:"center",gap:"md",className:"dataforms-layouts-details__summary-content",children:[y,l&&(0,Mc.jsx)(Z2,{validity:o})]})}),(0,Mc.jsx)("div",{ref:a,className:"dataforms-layouts-details__content",onBlur:m,children:(0,Mc.jsx)(gs,{data:e,form:f,onChange:r,validity:o?.children})})]})}var Om=i(x(),1),PEe=[{type:"regular",component:Ure,wrapper:({children:e})=>(0,Om.jsx)(it,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:e})},{type:"panel",component:aoe,wrapper:({children:e})=>(0,Om.jsx)(it,{direction:"column",className:"dataforms-layouts__wrapper",gap:"md",children:e})},{type:"card",component:FF,wrapper:({children:e})=>(0,Om.jsx)(it,{direction:"column",className:"dataforms-layouts__wrapper",gap:"xl",children:e})},{type:"row",component:foe,wrapper:({children:e,layout:t})=>(0,Om.jsx)(it,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:(0,Om.jsx)("div",{className:"dataforms-layouts-row__field",children:(0,Om.jsx)(it,{direction:"row",gap:"lg",align:t.alignment,children:e})})})},{type:"details",component:poe}];function Rm(e){return PEe.find(t=>t.type===e)}var K2=i(x(),1),kEe=({children:e})=>(0,K2.jsx)(it,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:e});function gs({data:e,form:t,onChange:r,validity:o,children:n,as:s}){let{fields:a}=(0,X2.useContext)(ki),l=(0,X2.useMemo)(()=>{let d=a.filter(m=>!!m.isValid?.required).length,f=a.length-d;return d>f},[a]);function c(d){return a.find(f=>f.id===d.id)}let u=s??Rm(t.layout.type)?.wrapper??kEe;return(0,K2.jsx)(u,{layout:t.layout,children:t.fields.map(d=>{let f=Rm(d.layout.type)?.component;if(!f)return null;let m=d.children?void 0:c(d);return m&&m.isVisible&&!m.isVisible(e)?null:n?n(f,d,o?.[d.id],l):(0,K2.jsx)(f,{data:e,field:d,onChange:r,markWhenOptional:l,validity:o?.[d.id]},d.id)})})}var BF=i(x(),1);function DF({data:e,form:t,fields:r,onChange:o,validity:n}){let s=(0,NF.useMemo)(()=>z2(t),[t]),a=(0,NF.useMemo)(()=>Y0(r),[r]);return t.fields?(0,BF.jsx)(Vre,{fields:a,children:(0,BF.jsx)(gs,{data:e,form:s,onChange:o,validity:n})}):null}var Q2=i(R(),1);var Im=i(x(),1);function LF({form:e,header:t}){let{media:r,fields:o,onChange:n}=Yk();if(!r||!n)return(0,Im.jsx)("div",{className:"media-editor-form media-editor-form--loading",children:(0,Im.jsx)(Q2.Spinner,{})});let s={layout:{type:"panel"},fields:o.map(l=>["title","alt_text","caption","description"].includes(l.id)?{id:l.id,layout:{type:"regular",labelPosition:"top"}}:l.id)};return(0,Im.jsx)("div",{className:"media-editor-form",children:(0,Im.jsxs)(Q2.__experimentalVStack,{spacing:4,children:[t,(0,Im.jsx)(DF,{data:r,fields:o,form:e||s,onChange:n})]})})}var hoe=i(O(),1);var MF=i(x(),1);function VF(e){let{media:t}=(0,hoe.useSelect)(r=>({media:r(_).getCurrentPost()}),[]);return(0,MF.jsx)(F0,{value:t,children:(0,MF.jsx)(Z4,{...e})})}var aE=i(O(),1),Noe=i(N(),1),Boe=i(W(),1);var goe=i(N(),1),J2=i(O(),1);function EEe({postType:e}){let{registerPostTypeSchema:t}=D((0,J2.useDispatch)(_));(0,goe.useEffect)(()=>{t(e)},[t,e]);let{fields:r}=(0,J2.useSelect)(o=>{let{getEntityFields:n}=D(o(_));return{fields:n("postType",e)}},[e]);return r}var $2=EEe;var bs=i(R(),1);var Eoe=i(W(),1),Aoe=i(O(),1),Roe=i(N(),1),zc=i(E(),1),Ooe=i(fh(),1);var sE=i(O(),1),Q0=i(N(),1),Coe=i(E(),1),Yg=i(R(),1);var Poe=i(W(),1);var X0=i(O(),1),oE=i(N(),1),xoe=i(W(),1);var Ei=i(E(),1),voe=i(N(),1),Vc=i(R(),1),Hg=i(O(),1),tE=i(W(),1),yoe=i(ct(),1);var eE=i(vt(),1);function Ug(e){return typeof e.title=="string"?(0,eE.decodeEntities)(e.title):e.title&&"rendered"in e.title?(0,eE.decodeEntities)(e.title.rendered):e.title&&"raw"in e.title?(0,eE.decodeEntities)(e.title.raw):""}var kd=i(x(),1),AEe=({items:e,closeModal:t})=>{let[r]=e,o=Ug(r),{showOnFront:n,currentHomePage:s,isSaving:a}=(0,Hg.useSelect)(g=>{let{getEntityRecord:y,isSavingEntityRecord:v}=g(tE.store),b=y("root","site"),S=y("postType","page",b?.page_on_front);return{showOnFront:b?.show_on_front,currentHomePage:S,isSaving:v("root","site")}}),{saveEntityRecord:l}=(0,Hg.useDispatch)(tE.store),{createSuccessNotice:c,createErrorNotice:u}=(0,Hg.useDispatch)(yoe.store);async function d(g){g.preventDefault();try{await l("root","site",{page_on_front:r.id,show_on_front:"page"}),c((0,Ei.__)("Homepage updated."),{type:"snackbar"})}catch(y){let v=y.message&&y.code!=="unknown_error"?y.message:(0,Ei.__)("An error occurred while setting the homepage.");u(v,{type:"snackbar"})}finally{t?.()}}let f="";n==="posts"?f=(0,Ei.__)("This will replace the current homepage which is set to display latest posts."):s&&(f=(0,Ei.sprintf)((0,Ei.__)('This will replace the current homepage: "%s"'),Ug(s)));let m=(0,Ei.sprintf)((0,Ei.__)('Set "%1$s" as the site homepage? %2$s'),o,f).trim(),h=(0,Ei.__)("Set homepage");return(0,kd.jsx)("form",{onSubmit:d,children:(0,kd.jsxs)(Vc.__experimentalVStack,{spacing:"5",children:[(0,kd.jsx)(Vc.__experimentalText,{children:m}),(0,kd.jsxs)(Vc.__experimentalHStack,{justify:"right",children:[(0,kd.jsx)(Vc.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t?.()},disabled:a,accessibleWhenDisabled:!0,children:(0,Ei.__)("Cancel")}),(0,kd.jsx)(Vc.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",disabled:a,accessibleWhenDisabled:!0,children:h})]})]})})},boe=()=>{let{pageOnFront:e,pageForPosts:t}=(0,Hg.useSelect)(r=>{let{getEntityRecord:o,canUser:n}=r(tE.store),s=n("read",{kind:"root",name:"site"})?o("root","site"):void 0;return{pageOnFront:s?.page_on_front,pageForPosts:s?.page_for_posts}});return(0,voe.useMemo)(()=>({id:"set-as-homepage",label:(0,Ei.__)("Set as homepage"),isEligible(r){return!(r.status!=="publish"||r.type!=="page"||e===r.id||t===r.id)},modalFocusOnMount:"firstContentElement",RenderModal:AEe}),[t,e])};var Ai=i(E(),1),Soe=i(N(),1),jc=i(R(),1),Gg=i(O(),1),rE=i(W(),1),_oe=i(ct(),1);var Ed=i(x(),1),REe=({items:e,closeModal:t})=>{let[r]=e,o=Ug(r),{currentPostsPage:n,isPageForPostsSet:s,isSaving:a}=(0,Gg.useSelect)(g=>{let{getEntityRecord:y,isSavingEntityRecord:v}=g(rE.store),b=y("root","site");return{currentPostsPage:y("postType","page",b?.page_for_posts),isPageForPostsSet:b?.page_for_posts!==0,isSaving:v("root","site")}}),{saveEntityRecord:l}=(0,Gg.useDispatch)(rE.store),{createSuccessNotice:c,createErrorNotice:u}=(0,Gg.useDispatch)(_oe.store);async function d(g){g.preventDefault();try{await l("root","site",{page_for_posts:r.id,show_on_front:"page"}),c((0,Ai.__)("Posts page updated."),{type:"snackbar"})}catch(y){let v=y.message&&y.code!=="unknown_error"?y.message:(0,Ai.__)("An error occurred while setting the posts page.");u(v,{type:"snackbar"})}finally{t?.()}}let f=s&&n?(0,Ai.sprintf)((0,Ai.__)('This will replace the current posts page: "%s"'),Ug(n)):(0,Ai.__)("This page will show the latest posts."),m=(0,Ai.sprintf)((0,Ai.__)('Set "%1$s" as the posts page? %2$s'),o,f),h=(0,Ai.__)("Set posts page");return(0,Ed.jsx)("form",{onSubmit:d,children:(0,Ed.jsxs)(jc.__experimentalVStack,{spacing:"5",children:[(0,Ed.jsx)(jc.__experimentalText,{children:m}),(0,Ed.jsxs)(jc.__experimentalHStack,{justify:"right",children:[(0,Ed.jsx)(jc.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t?.()},disabled:a,accessibleWhenDisabled:!0,children:(0,Ai.__)("Cancel")}),(0,Ed.jsx)(jc.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",disabled:a,accessibleWhenDisabled:!0,children:h})]})]})})},woe=()=>{let{pageOnFront:e,pageForPosts:t}=(0,Gg.useSelect)(r=>{let{getEntityRecord:o,canUser:n}=r(rE.store),s=n("read",{kind:"root",name:"site"})?o("root","site"):void 0;return{pageOnFront:s?.page_on_front,pageForPosts:s?.page_for_posts}});return(0,Soe.useMemo)(()=>({id:"set-as-posts-page",label:(0,Ai.__)("Set as posts page"),isEligible(r){return!(r.status!=="publish"||r.type!=="page"||e===r.id||t===r.id)},modalFocusOnMount:"firstContentElement",RenderModal:REe}),[t,e])};var Toe=i(x(),1);function nE({postType:e,onActionPerformed:t,context:r}){let{defaultActions:o}=(0,X0.useSelect)(c=>{let{getEntityActions:u}=D(c(_));return{defaultActions:u("postType",e)}},[e]),n=(0,X0.useSelect)(c=>{if(e!=="page")return!1;let{getDefaultTemplateId:u,getEntityRecord:d,canUser:f}=c(xoe.store);if(!f("update",{kind:"root",name:"site"}))return!1;let h=u({slug:"front-page"});if(!h)return!0;let g=d("postType","wp_template",h);return g?g.slug!=="front-page":!0},[e]),s=boe(),a=woe(),{registerPostTypeSchema:l}=D((0,X0.useDispatch)(_));return(0,oE.useEffect)(()=>{l(e)},[l,e]),(0,oE.useMemo)(()=>{let c=[...o];if(n&&c.push(s,a),c=c.sort((u,d)=>d.id==="move-to-trash"?-1:0),c=c.filter(u=>u.context?u.context===r:!0),t)for(let u=0;u<c.length;++u){if(c[u].callback){let d=c[u].callback;c[u]={...c[u],callback:(f,m)=>{d(f,{...m,onActionPerformed:h=>{m?.onActionPerformed&&m.onActionPerformed(h),t(c[u].id,h)}})}}}if(c[u].RenderModal){let d=c[u].RenderModal;c[u]={...c[u],RenderModal:f=>(0,Toe.jsx)(d,{...f,onActionPerformed:m=>{f.onActionPerformed&&f.onActionPerformed(m),t(c[u].id,m)}})}}}return c},[r,o,t,s,a,n])}var Go=i(x(),1),{Menu:Wg,kebabCase:OEe}=D(Yg.privateApis);function koe({postType:e,postId:t,onActionPerformed:r}){let[o,n]=(0,Q0.useState)(null),{item:s,permissions:a}=(0,sE.useSelect)(d=>{let{getEditedEntityRecord:f,getEntityRecordPermissions:m}=D(d(Poe.store));return{item:f("postType",e,t),permissions:m("postType",e,t)}},[t,e]),l=(0,Q0.useMemo)(()=>({...s,permissions:a}),[s,a]),c=nE({postType:e,onActionPerformed:r}),u=(0,Q0.useMemo)(()=>c.filter(d=>!d.isEligible||d.isEligible(l)),[c,l]);return(0,Go.jsxs)(Go.Fragment,{children:[(0,Go.jsxs)(Wg,{placement:"bottom-end",children:[(0,Go.jsx)(Wg.TriggerButton,{render:(0,Go.jsx)(Yg.Button,{size:"small",icon:Ir,label:(0,Coe.__)("Actions"),disabled:!u.length,accessibleWhenDisabled:!0,className:"editor-all-actions-button"})}),(0,Go.jsx)(Wg.Popover,{children:(0,Go.jsx)(NEe,{actions:u,items:[l],setActiveModalAction:n})})]}),!!o&&(0,Go.jsx)(FEe,{action:o,items:[l],closeModal:()=>n(null)})]})}function IEe({action:e,onClick:t,items:r}){let o=typeof e.label=="string"?e.label:e.label(r);return(0,Go.jsx)(Wg.Item,{onClick:t,children:(0,Go.jsx)(Wg.ItemLabel,{children:o})})}function FEe({action:e,items:t,closeModal:r}){let o=typeof e.label=="string"?e.label:e.label(t);return(0,Go.jsx)(Yg.Modal,{title:e.modalHeader||o,__experimentalHideHeader:!!e.hideModalHeader,onRequestClose:r??(()=>{}),focusOnMount:"firstContentElement",size:"medium",overlayClassName:`editor-action-modal editor-action-modal__${OEe(e.id)}`,children:(0,Go.jsx)(e.RenderModal,{items:t,closeModal:r})})}function NEe({actions:e,items:t,setActiveModalAction:r}){let o=(0,sE.useRegistry)();return(0,Go.jsx)(Wg.Group,{children:e.map(n=>(0,Go.jsx)(IEe,{action:n,onClick:()=>{if("RenderModal"in n){r(n);return}n.callback(t,{registry:o})},items:t},n.id))})}var Gn=i(x(),1),{Badge:BEe}=D(bs.privateApis);function qg({postType:e,postId:t,hideActions:r=!1,onActionPerformed:o,onClose:n}){let s=(0,Roe.useMemo)(()=>Array.isArray(t)?t:[t],[t]),{postTitle:a,icon:l,labels:c,isRevision:u}=(0,Aoe.useSelect)(m=>{let{getEditedEntityRecord:h,getCurrentTheme:g,getPostType:y}=m(Eoe.store),{getPostIcon:v,getCurrentPostType:b,isRevisionsMode:S,getCurrentRevision:w}=D(m(_)),T="";if(S()){let A=b(),F=w();return T=F?.title?.rendered||F?.title?.raw||"",{postTitle:T,icon:v(A,{area:F?.area}),labels:y(A)?.labels,isRevision:!0}}let C=h("postType",e,s[0]);if(s.length===1){let{default_template_types:A=[]}=g()??{};T=([_t,Ur].includes(e)?qs({template:C,templateTypes:A}):{})?.title||C?.title}return{postTitle:T,icon:v(e,{area:C?.area}),labels:y(e)?.labels}},[s,e]),d=Fx(t),f=(0,zc.__)("No title");return c?.name&&s.length>1?f=(0,zc.sprintf)((0,zc.__)("%1$d %2$s"),s.length,c?.name):a&&(f=(0,Ooe.__unstableStripHTML)(a)),(0,Gn.jsxs)(bs.__experimentalVStack,{spacing:1,className:"editor-post-card-panel",children:[(0,Gn.jsxs)(bs.__experimentalHStack,{spacing:2,className:"editor-post-card-panel__header",alignment:"flex-start",children:[(0,Gn.jsx)(bs.Icon,{className:"editor-post-card-panel__icon",icon:l}),(0,Gn.jsxs)(bs.__experimentalText,{numberOfLines:2,truncate:!0,className:"editor-post-card-panel__title",as:"h2",children:[(0,Gn.jsx)("span",{className:"editor-post-card-panel__title-name",children:f}),d&&s.length===1&&(0,Gn.jsx)(BEe,{children:d})]}),!r&&s.length===1&&(0,Gn.jsx)(Gn.Fragment,{children:u?(0,Gn.jsx)(bs.Button,{size:"small",icon:Ir,label:(0,zc.__)("Actions"),disabled:!0,accessibleWhenDisabled:!0,className:"editor-all-actions-button"}):(0,Gn.jsx)(koe,{postType:e,postId:s[0],onActionPerformed:o})}),n&&(0,Gn.jsx)(bs.Button,{size:"small",icon:wA,label:(0,zc.__)("Close"),onClick:n})]}),s.length>1&&(0,Gn.jsx)(bs.__experimentalText,{className:"editor-post-card-panel__description",children:(0,zc.sprintf)((0,zc.__)("Changes will be applied to all selected %s."),c?.name.toLowerCase())})]})}var Ioe=i(R(),1),Foe=i(x(),1);function DEe({className:e,children:t}){return(0,Foe.jsx)(Ioe.__experimentalVStack,{className:re("editor-post-panel__section",e),children:t})}var iE=DEe;var J0=i(x(),1);function jF({onActionPerformed:e}){let{media:t,postType:r,postId:o}=(0,aE.useSelect)(c=>{let u=c(_).getCurrentPostType(),d=c(_).getCurrentPostId();return{media:c(Boe.store).getEditedEntityRecord("postType",u,d,{_embed:"author,wp:attached-to"}),postType:u,postId:d}},[]),{editPost:n}=(0,aE.useDispatch)(_),s=$2({postType:"attachment"}),a=(0,Noe.useMemo)(()=>({fields:s}),[s]);return(0,J0.jsx)(iE,{className:"editor-media-metadata-panel",children:(0,J0.jsx)(F0,{value:t,settings:a,onChange:c=>{n(c)},children:(0,J0.jsx)(LF,{header:(0,J0.jsx)(qg,{postType:r,postId:o,onActionPerformed:e})})})})}var Ot=i(x(),1),Doe={header:(0,Ad.__)("Editor top bar"),body:(0,Ad.__)("Editor content"),sidebar:(0,Ad.__)("Editor settings"),actions:(0,Ad.__)("Editor publish"),footer:(0,Ad.__)("Editor footer")},Loe=()=>(0,Ot.jsx)(Uoe.InlineNotices,{pinnedNoticesClassName:"editor-notices__pinned",dismissibleNoticesClassName:"editor-notices__dismissible",children:(0,Ot.jsx)(iT,{})});function Hoe({className:e,children:t,forceIsDirty:r,contentRef:o,disableIframe:n,autoFocus:s,customSaveButton:a,customSavePanel:l,forceDisableBlockTools:c,iframeProps:u}){let{mode:d,postId:f,postType:m,isAttachment:h,isInserterOpened:g,isListViewOpened:y,isDistractionFree:v,isPreviewMode:b,showBlockBreadcrumbs:S,postTypeLabel:w,stylesPath:T,showStylebook:C,isRevisionsMode:A}=(0,Moe.useSelect)(Z=>{let{get:B}=Z(Voe.store),{getEditorSettings:V,getPostTypeLabel:H,getCurrentPostType:X,getCurrentPostId:ne}=Z(_),{getStylesPath:se,getShowStylebook:ye,isRevisionsMode:qe}=D(Z(_)),ge=V(),oe=Z(_).getEditorMode();return!ge.richEditingEnabled&&oe==="visual"&&(oe="text"),!ge.codeEditingEnabled&&oe==="text"&&(oe="visual"),{mode:oe,postId:ne(),postType:X(),isInserterOpened:Z(_).isInserterOpened(),isListViewOpened:Z(_).isListViewOpened(),isDistractionFree:B("core","distractionFree"),isPreviewMode:ge.isPreviewMode,showBlockBreadcrumbs:B("core","showBlockBreadcrumbs"),postTypeLabel:H(),stylesPath:se(),showStylebook:ye(),isAttachment:X()==="attachment"&&window?.__experimentalMediaEditor,isRevisionsMode:qe()}},[]);z$(f,m);let F=(0,joe.useViewportMatch)("medium"),L=y?(0,Ad.__)("Document Overview"):(0,Ad.__)("Block Library"),j=!!h,z=!h&&(C||T?.startsWith("/revisions")),M=!j&&!z,[k,I]=(0,$0.useState)(!1),U=(0,$0.useCallback)(Z=>{typeof k=="function"&&k(Z),I(!1)},[k]),[G,Y]=(0,$0.useState)(!0);return A?(0,Ot.jsx)(Vy,{className:re("editor-editor-interface",e),labels:Doe,header:(0,Ot.jsx)(T4,{showDiff:G,onToggleDiff:()=>Y(!G)}),content:(0,Ot.jsx)(z4,{showDiff:G}),sidebar:(0,Ot.jsx)(Hl.Slot,{scope:"core"})}):(0,Ot.jsx)(Vy,{isDistractionFree:v,className:re("editor-editor-interface",e,{"is-entity-save-view-open":!!k,"is-distraction-free":v&&!b}),labels:{...Doe,secondarySidebar:L},header:!b&&(0,Ot.jsx)(BJ,{forceIsDirty:r,setEntitiesSavedStatesCallback:I,customSaveButton:a,forceDisableBlockTools:c}),editorNotices:(0,Ot.jsx)(Loe,{}),secondarySidebar:!h&&!b&&d==="visual"&&(g&&(0,Ot.jsx)(VJ,{})||y&&(0,Ot.jsx)(HJ,{})),sidebar:!b&&!v&&(0,Ot.jsx)(Hl.Slot,{scope:"core"}),content:(0,Ot.jsxs)(Ot.Fragment,{children:[!v&&!b&&(0,Ot.jsx)(Loe,{}),j&&(0,Ot.jsx)(VF,{...u}),z&&(0,Ot.jsx)(dG,{}),M&&(0,Ot.jsxs)(Ot.Fragment,{children:[!b&&d==="text"&&(0,Ot.jsx)(Y$,{autoFocus:s}),!b&&!F&&d==="visual"&&(0,Ot.jsx)(lE.BlockToolbar,{hideDragHandle:!0}),(b||d==="visual")&&(0,Ot.jsx)(Ik,{contentRef:o,disableIframe:n,autoFocus:s,iframeProps:u}),t,(0,Ot.jsx)(uk,{postId:f,postType:m})]})]}),footer:!b&&!v&&F&&S&&d==="visual"&&(0,Ot.jsx)(lE.BlockBreadcrumb,{rootLabelText:w?(0,zoe.decodeEntities)(w):void 0}),actions:b?void 0:l||(0,Ot.jsx)(H$,{closeEntitiesSavedStates:U,isEntitiesSavedStatesOpen:k,setEntitiesSavedStatesCallback:I,forceIsDirtyPublishPanel:r})})}var xE=i($(),1),n1=i(O(),1),dl=i(N(),1),ev=i(E(),1);var nse=i(Es(),1),sse=i(R(),1);var Goe=i(O(),1),Woe=i(Li(),1);var Yoe=i(x(),1),{OverridesPanel:LEe}=D(Woe.privateApis);function qoe(){return(0,Goe.useSelect)(t=>t(_).getCurrentPostType()==="wp_block",[])?(0,Yoe.jsx)(LEe,{}):null}var Fm=i(R(),1),Tne=i(O(),1),Cne=i(E(),1),Pne=i(zr(),1);var Zoe=i(R(),1),Koe=i(O(),1),Ri=i(E(),1),Xoe=i(l0(),1),Qoe=i(N(),1),zF=i(W(),1);var UF=i(x(),1),MEe=189;function Joe(){let{postContent:e}=(0,Koe.useSelect)(a=>{let{getEditedPostAttribute:l,getCurrentPostType:c,getCurrentPostId:u}=a(_),{getCurrentRevision:d,isRevisionsMode:f}=D(a(_));if(f())return{postContent:d()?.content?.raw};let{canUser:m}=a(zF.store),{getEntityRecord:h}=a(zF.store),g=m("read",{kind:"root",name:"site"})?h("root","site"):void 0,y=c();return{postContent:!(+u()===g?.page_for_posts)&&![_t,Ur].includes(y)&&l("content")}},[]),t=(0,Ri._x)("words","Word count type. Do not translate!"),r=(0,Qoe.useMemo)(()=>e?(0,Xoe.count)(e,t):0,[e,t]);if(!r)return null;let o=Math.round(r/MEe),n=(0,Ri.sprintf)((0,Ri._n)("%s word","%s words",r),r.toLocaleString()),s=o<=1?(0,Ri.__)("1 minute"):(0,Ri.sprintf)((0,Ri._n)("%s minute","%s minutes",o),o.toLocaleString());return(0,UF.jsx)("div",{className:"editor-post-content-information",children:(0,UF.jsx)(Zoe.__experimentalText,{children:(0,Ri.sprintf)((0,Ri.__)("%1$s, %2$s read time."),n,s)})})}var cE=i(R(),1),Zg=i(E(),1),$oe=i(O(),1),uE=i(N(),1),ene=i($(),1);var Uc=i(x(),1);function VEe(){let{postFormat:e}=(0,$oe.useSelect)(s=>{let{getEditedPostAttribute:a}=s(_);return{postFormat:a("format")??"standard"}},[]),t=Vb.find(s=>s.id===e),[r,o]=(0,uE.useState)(null),n=(0,uE.useMemo)(()=>({anchor:r,placement:"left-start",offset:36,shift:!0}),[r]);return(0,Uc.jsx)(Mh,{children:(0,Uc.jsx)(xt,{label:(0,Zg.__)("Format"),ref:o,children:(0,Uc.jsx)(cE.Dropdown,{popoverProps:n,contentClassName:"editor-post-format__dialog",focusOnMount:!0,renderToggle:({isOpen:s,onToggle:a})=>(0,Uc.jsx)(cE.Button,{size:"compact",variant:"tertiary","aria-expanded":s,"aria-label":(0,Zg.sprintf)((0,Zg.__)("Change format: %s"),t?.caption),onClick:a,children:t?.caption}),renderContent:({onClose:s})=>(0,Uc.jsxs)("div",{className:"editor-post-format__dialog-content",children:[(0,Uc.jsx)(ene.__experimentalInspectorPopoverHeader,{title:(0,Zg.__)("Format"),onClose:s}),(0,Uc.jsx)(jb,{})]})})})})}var tne=VEe;var rne=i(R(),1),one=i(O(),1),dE=i(E(),1),nne=i(mo(),1);var HF=i(x(),1);function sne(){let e=(0,one.useSelect)(t=>t(_).getEditedPostAttribute("modified"),[]);return e?(0,HF.jsx)("div",{className:"editor-post-last-edited-panel",children:(0,HF.jsx)(rne.__experimentalText,{children:(0,dE.sprintf)((0,dE.__)("Last edited %s."),(0,nne.humanTimeDiff)(e))})}):null}var ine=i(R(),1),ane=i(O(),1),fE=i(E(),1),lne=i(mo(),1);var GF=i(x(),1);function cne(){let e=(0,ane.useSelect)(t=>{let{getCurrentRevision:r}=D(t(_));return r()?.date},[]);return e?(0,GF.jsx)("div",{className:"editor-post-last-edited-panel",children:(0,GF.jsx)(ine.__experimentalText,{children:(0,fE.sprintf)((0,fE.__)("Created %s."),(0,lne.humanTimeDiff)(e))})}):null}var Hc=i(E(),1),une=i(pe(),1),mE=i(O(),1),WF=i(W(),1),dne=i(vt(),1),Kg=i(R(),1),pE=i(N(),1),fne=i($(),1);var ll=i(x(),1),jEe={};function mne(){let{editEntityRecord:e}=(0,mE.useDispatch)(WF.store),{postsPageTitle:t,postsPageId:r,isTemplate:o,postSlug:n}=(0,mE.useSelect)(d=>{let{getEntityRecord:f,getEditedEntityRecord:m,canUser:h}=d(WF.store),g=h("read",{kind:"root",name:"site"})?f("root","site"):void 0,y=g?.page_for_posts?m("postType","page",g?.page_for_posts):jEe,{getEditedPostAttribute:v,getCurrentPostType:b}=d(_);return{postsPageId:y?.id,postsPageTitle:y?.title,isTemplate:b()===_t,postSlug:v("slug")}},[]),[s,a]=(0,pE.useState)(null),l=(0,pE.useMemo)(()=>({anchor:s,placement:"left-start",offset:36,shift:!0}),[s]);if(!o||!["home","index"].includes(n)||!r)return null;let c=d=>{e("postType","page",r,{title:d})},u=(0,dne.decodeEntities)(t);return(0,ll.jsx)(xt,{label:(0,Hc.__)("Blog title"),ref:a,children:(0,ll.jsx)(Kg.Dropdown,{popoverProps:l,contentClassName:"editor-blog-title-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:d,onToggle:f})=>(0,ll.jsx)(Kg.Button,{size:"compact",variant:"tertiary","aria-expanded":d,"aria-label":(0,Hc.sprintf)((0,Hc.__)("Change blog title: %s"),u),onClick:f,children:u}),renderContent:({onClose:d})=>(0,ll.jsxs)(ll.Fragment,{children:[(0,ll.jsx)(fne.__experimentalInspectorPopoverHeader,{title:(0,Hc.__)("Blog title"),onClose:d}),(0,ll.jsx)(Kg.__experimentalInputControl,{placeholder:(0,Hc.__)("No title"),size:"__unstable-large",value:t,onChange:(0,une.debounce)(c,300),label:(0,Hc.__)("Blog title"),help:(0,Hc.__)("Set the Posts Page title. Appears in search results, and when the page is shared on social media."),hideLabelFromVision:!0})]})})})}var Xg=i(E(),1),hE=i(O(),1),YF=i(W(),1),Qg=i(R(),1),gE=i(N(),1),pne=i($(),1);var cl=i(x(),1);function hne(){let{editEntityRecord:e}=(0,hE.useDispatch)(YF.store),{postsPerPage:t,isTemplate:r,postSlug:o}=(0,hE.useSelect)(c=>{let{getEditedPostAttribute:u,getCurrentPostType:d}=c(_),{getEditedEntityRecord:f,canUser:m}=c(YF.store),h=m("read",{kind:"root",name:"site"})?f("root","site"):void 0;return{isTemplate:d()===_t,postSlug:u("slug"),postsPerPage:h?.posts_per_page||1}},[]),[n,s]=(0,gE.useState)(null),a=(0,gE.useMemo)(()=>({anchor:n,placement:"left-start",offset:36,shift:!0}),[n]);if(!r||!["home","index"].includes(o))return null;let l=c=>{e("root","site",void 0,{posts_per_page:c})};return(0,cl.jsx)(xt,{label:(0,Xg.__)("Posts per page"),ref:s,children:(0,cl.jsx)(Qg.Dropdown,{popoverProps:a,contentClassName:"editor-posts-per-page-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:c,onToggle:u})=>(0,cl.jsx)(Qg.Button,{size:"compact",variant:"tertiary","aria-expanded":c,"aria-label":(0,Xg.__)("Change posts per page"),onClick:u,children:t}),renderContent:({onClose:c})=>(0,cl.jsxs)(cl.Fragment,{children:[(0,cl.jsx)(pne.__experimentalInspectorPopoverHeader,{title:(0,Xg.__)("Posts per page"),onClose:c}),(0,cl.jsx)(Qg.__experimentalNumberControl,{placeholder:0,value:t,size:"__unstable-large",spinControls:"custom",step:"1",min:"1",onChange:l,label:(0,Xg.__)("Posts per page"),help:(0,Xg.__)("Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting."),hideLabelFromVision:!0})]})})})}var Ss=i(E(),1),vE=i(O(),1),qF=i(W(),1),ul=i(R(),1),yE=i(N(),1),gne=i($(),1);var Oi=i(x(),1),zEe=[{label:(0,Ss._x)("Open",'Adjective: e.g. "Comments are open"'),value:"open",description:(0,Ss.__)("Visitors can add new comments and replies.")},{label:(0,Ss.__)("Closed"),value:"",description:[(0,Ss.__)("Visitors cannot add new comments or replies."),(0,Ss.__)("Existing comments remain visible.")].join(" ")}];function vne(){let{editEntityRecord:e}=(0,vE.useDispatch)(qF.store),{allowCommentsOnNewPosts:t,isTemplate:r,postSlug:o}=(0,vE.useSelect)(c=>{let{getEditedPostAttribute:u,getCurrentPostType:d}=c(_),{getEditedEntityRecord:f,canUser:m}=c(qF.store),h=m("read",{kind:"root",name:"site"})?f("root","site"):void 0;return{isTemplate:d()===_t,postSlug:u("slug"),allowCommentsOnNewPosts:h?.default_comment_status||""}},[]),[n,s]=(0,yE.useState)(null),a=(0,yE.useMemo)(()=>({anchor:n,placement:"left-start",offset:36,shift:!0}),[n]);if(!r||!["home","index"].includes(o))return null;let l=c=>{e("root","site",void 0,{default_comment_status:c?"open":null})};return(0,Oi.jsx)(xt,{label:(0,Ss.__)("Discussion"),ref:s,children:(0,Oi.jsx)(ul.Dropdown,{popoverProps:a,contentClassName:"editor-site-discussion-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:c,onToggle:u})=>(0,Oi.jsx)(ul.Button,{size:"compact",variant:"tertiary","aria-expanded":c,"aria-label":(0,Ss.__)("Change discussion settings"),onClick:u,children:t?(0,Ss.__)("Comments open"):(0,Ss.__)("Comments closed")}),renderContent:({onClose:c})=>(0,Oi.jsxs)(Oi.Fragment,{children:[(0,Oi.jsx)(gne.__experimentalInspectorPopoverHeader,{title:(0,Ss.__)("Discussion"),onClose:c}),(0,Oi.jsxs)(ul.__experimentalVStack,{spacing:3,children:[(0,Oi.jsx)(ul.__experimentalText,{children:(0,Ss.__)("Changes will apply to new posts only. Individual posts may override these settings.")}),(0,Oi.jsx)(ul.RadioControl,{className:"editor-site-discussion__options",hideLabelFromVision:!0,label:(0,Ss.__)("Comment status"),options:zEe,onChange:l,selected:t})]})]})})})}var yne=i(O(),1),bne=i(W(),1),Sne=i(vt(),1),_ne=i(E(),1);var wne=i(x(),1);function xne(){let e=(0,yne.useSelect)(t=>{let{getCurrentRevision:r}=D(t(_)),o=r();return o?.author?t(bne.store).getUser(o.author)?.name:null},[]);return e?(0,wne.jsx)(xt,{label:(0,_ne.__)("Author"),children:(0,Sne.decodeEntities)(e)}):null}var nt=i(x(),1),UEe="post-status";function kne({onActionPerformed:e}){let{isRemovedPostStatusPanel:t,postType:r,postId:o,revisionId:n}=(0,Tne.useSelect)(l=>{let{isEditorPanelRemoved:c,getCurrentPostType:u,getCurrentPostId:d,getCurrentRevisionId:f}=D(l(_));return{isRemovedPostStatusPanel:c(UEe),postType:u(),postId:d(),revisionId:f()}},[]),s=!!n,a=!t&&!s;return(0,nt.jsx)(iE,{className:"editor-post-summary",children:(0,nt.jsx)(RT.Slot,{children:l=>(0,nt.jsx)(nt.Fragment,{children:(0,nt.jsxs)(Fm.__experimentalVStack,{spacing:4,children:[(0,nt.jsx)(qg,{postType:r,postId:o,onActionPerformed:e}),!s&&(0,nt.jsx)(cC,{withPanelBody:!1}),!s&&(0,nt.jsx)(mq,{}),(0,nt.jsxs)(Fm.__experimentalVStack,{spacing:1,children:[(0,nt.jsx)(Joe,{}),s?(0,nt.jsx)(cne,{}):(0,nt.jsx)(sne,{})]}),s&&n&&(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)(Fm.ExternalLink,{href:(0,Pne.addQueryArgs)("revision.php",{revision:n}),children:(0,Cne.__)("Open classic revisions screen")}),(0,nt.jsx)(xne,{})]}),a&&(0,nt.jsxs)(Fm.__experimentalVStack,{spacing:4,children:[(0,nt.jsxs)(Fm.__experimentalVStack,{spacing:1,children:[(0,nt.jsx)(V3,{}),(0,nt.jsx)(eP,{}),(0,nt.jsx)(RP,{}),(0,nt.jsx)(HT,{}),(0,nt.jsx)(DT,{}),(0,nt.jsx)($T,{}),(0,nt.jsx)(Rq,{}),(0,nt.jsx)(vT,{}),(0,nt.jsx)(oP,{}),(0,nt.jsx)(mne,{}),(0,nt.jsx)(hne,{}),(0,nt.jsx)(vne,{}),(0,nt.jsx)(tne,{}),l]}),(0,nt.jsx)(xP,{onActionPerformed:e})]})]})})})})}var t1=i(O(),1),KF=i(W(),1),Nne=i(R(),1),XF=i(E(),1),Bne=i($(),1),Dne=i(Xe(),1);var Ene=i(O(),1),Ane=i(N(),1),ZF=i(W(),1),Rne=i(Xe(),1),One=i(Li(),1);var{EXCLUDED_PATTERN_SOURCES:HEe,PATTERN_TYPES:GEe}=D(One.privateApis);function Ine(e,t){return e.innerBlocks=e.innerBlocks.map(r=>Ine(r,t)),e.name==="core/template-part"&&e.attributes.theme===void 0&&(e.attributes.theme=t),e}function WEe(e,t){let r=(s,a,l)=>a===l.findIndex(c=>s.name===c.name),o=s=>t.area==="navigation-overlay"&&s.blockTypes?.includes("core/template-part/navigation-overlay")?!0:!HEe.includes(s.source),n=s=>s.templateTypes?.includes(t.slug)||s.blockTypes?.includes("core/template-part/"+t.area);return e.filter((s,a,l)=>r(s,a,l)&&o(s)&&n(s))}function YEe(e,t){return e.map(r=>({...r,keywords:r.keywords||[],type:GEe.theme,blocks:(0,Rne.parse)(r.content,{__unstableSkipMigrationLogs:!0}).map(o=>Ine(o,t))}))}function Fne({area:e,name:t,slug:r}){let{blockPatterns:o,restBlockPatterns:n,currentThemeStylesheet:s}=(0,Ene.useSelect)(a=>{let{getEditorSettings:l}=a(_),c=l();return{blockPatterns:c.__experimentalAdditionalBlockPatterns??c.__experimentalBlockPatterns,restBlockPatterns:a(ZF.store).getBlockPatterns(),currentThemeStylesheet:a(ZF.store).getCurrentTheme().stylesheet}},[]);return(0,Ane.useMemo)(()=>{let a=[...o||[],...n||[]],l=WEe(a,{area:e,name:t,slug:r});return YEe(l,s)},[e,t,r,o,n,s])}var e1=i(x(),1);function qEe({availableTemplates:e,onSelect:t}){return!e||e?.length===0?null:(0,e1.jsx)(Bne.__experimentalBlockPatternsList,{label:(0,XF.__)("Templates"),blockPatterns:e,onClickPattern:t,showTitlesAsTooltip:!0})}function ZEe(){let{area:e,name:t,slug:r,postType:o,postId:n}=(0,t1.useSelect)(c=>{let{getCurrentPostType:u,getCurrentPostId:d}=c(_),{getEditedEntityRecord:f}=c(KF.store),m=u(),h=d(),g=f("postType",m,h);return{area:g?.area,name:g?.name,slug:g?.slug,postType:m,postId:h}},[]),{editEntityRecord:s}=(0,t1.useDispatch)(KF.store),a=Fne({area:e,name:t,slug:r}),l=async c=>{await s("postType",o,n,{blocks:c.blocks,content:(0,Dne.serialize)(c.blocks)})};return a?.length?(0,e1.jsx)(Nne.PanelBody,{title:(0,XF.__)("Design"),initialOpen:o===Ur,children:(0,e1.jsx)(qEe,{availableTemplates:a,onSelect:l})}):null}function Lne(){let{postType:e}=(0,t1.useSelect)(t=>{let{getCurrentPostType:r}=t(_);return{postType:r()}},[]);return[Ur,_t].includes(e)?(0,e1.jsx)(ZEe,{}):null}var Mne=i(R(),1),r1=i(E(),1),Vne=i(O(),1),jne=i(N(),1),zne=i(vt(),1);var o1=i(x(),1),{Tabs:QF}=D(Mne.privateApis),KEe=(e,t)=>{let{postTypeLabel:r,isAttachment:o,isRevisionsMode:n}=(0,Vne.useSelect)(a=>{let{getPostTypeLabel:l,getCurrentPostType:c}=a(_),{isRevisionsMode:u}=D(a(_));return{postTypeLabel:l(),isAttachment:c()===dr&&window?.__experimentalMediaEditor,isRevisionsMode:u()}},[]),s;return n?s=(0,r1.__)("Revision"):r?s=(0,zne.decodeEntities)(r):s=(0,r1._x)("Document","noun, panel"),(0,o1.jsxs)(QF.TabList,{ref:t,children:[(0,o1.jsx)(QF.Tab,{tabId:us.document,"data-tab-id":us.document,children:s}),!o&&!n&&(0,o1.jsx)(QF.Tab,{tabId:us.block,"data-tab-id":us.block,children:(0,r1.__)("Block")})]})},Une=(0,jne.forwardRef)(KEe);var bE=i(O(),1),Hne=i($(),1),Gne=i(R(),1),Wne=i(E(),1);var Yne=i(fo(),1),qne=i(N(),1);var JF=i(x(),1),{BlockQuickNavigation:XEe}=D(Hne.privateApis),QEe=["core/post-title","core/post-featured-image","core/post-content"],JEe="core/template-part";function Zne(){let e=(0,qne.useMemo)(()=>(0,Yne.applyFilters)("editor.postContentBlockTypes",QEe),[]),{clientIds:t,postType:r,renderingMode:o}=(0,bE.useSelect)(s=>{let{getCurrentPostType:a,getPostBlocksByName:l,getRenderingMode:c}=D(s(_)),u=a();return{postType:u,clientIds:l(_t===u?JEe:e),renderingMode:c()}},[e]),{enableComplementaryArea:n}=(0,bE.useDispatch)(Te);return o==="post-only"&&r!==_t||t.length===0?null:(0,JF.jsx)(Gne.PanelBody,{title:(0,Wne.__)("Content"),children:(0,JF.jsx)(XEe,{clientIds:t,onSelect:()=>{n("core","edit-post/document")}})})}var SE=i(O(),1),Kne=i(N(),1),Xne=i(Xe(),1),wE=i($(),1),Qne=i(R(),1),Jne=i(E(),1);var _E=i(x(),1),{BlockQuickNavigation:$Ee}=D(wE.privateApis);function eAe(){let e=(0,SE.useSelect)(o=>{let{getBlockTypes:n}=o(Xne.store);return n()},[]),t=(0,Kne.useMemo)(()=>e.filter(o=>o.category==="theme").map(({name:o})=>o),[e]),r=(0,SE.useSelect)(o=>{let{getBlocksByName:n}=o(wE.store);return n(t)},[t]);return r.length===0?null:(0,_E.jsx)(Qne.PanelBody,{title:(0,Jne.__)("Content"),children:(0,_E.jsx)($Ee,{clientIds:r})})}function $ne(){return(0,SE.useSelect)(t=>{let{getCurrentPostType:r}=t(_);return r()},[])!==Ur?null:(0,_E.jsx)(eAe,{})}var Jg=i(O(),1),ese=i(N(),1),tse=i($(),1),rse=i(dt(),1);function tAe(){let{hasBlockSelection:e}=(0,Jg.useSelect)(n=>({hasBlockSelection:!!n(tse.store).getBlockSelectionStart()}),[]),{getActiveComplementaryArea:t}=(0,Jg.useSelect)(Te),{enableComplementaryArea:r}=(0,Jg.useDispatch)(Te),{get:o}=(0,Jg.useSelect)(rse.store);(0,ese.useEffect)(()=>{let n=t("core"),s=["edit-post/document","edit-post/block"].includes(n),a=o("core","distractionFree");!s||a||(e?r("core","edit-post/block"):r("core","edit-post/document"))},[e,t,r,o])}var ose=tAe;var ar=i(x(),1),{Tabs:$g}=D(sse.privateApis),rAe=dl.Platform.select({web:!0,native:!1}),oAe=({tabName:e,keyboardShortcut:t,onActionPerformed:r,extraPanels:o,postType:n})=>{let s=(0,dl.useRef)(null),a=(0,dl.useContext)($g.Context),l=n===dr,c=(0,n1.useSelect)(u=>D(u(_)).isRevisionsMode());return(0,dl.useEffect)(()=>{let u=Array.from(s.current?.querySelectorAll('[role="tab"]')||[]),d=u.find(h=>h.getAttribute("data-tab-id")===e),f=d?.ownerDocument.activeElement;u.some(h=>f&&f.id===h.id)&&d&&d.id!==f?.id&&d?.focus()},[e]),(0,ar.jsx)(Kf,{identifier:e,header:(0,ar.jsx)($g.Context.Provider,{value:a,children:(0,ar.jsx)(Une,{ref:s})}),closeLabel:(0,ev.__)("Close Settings"),className:"editor-sidebar__panel",headerClassName:"editor-sidebar__panel-tabs",title:(0,ev._x)("Settings","panel button label"),toggleShortcut:t,icon:(0,ev.isRTL)()?Ld:Md,isActiveByDefault:rAe,children:(0,ar.jsxs)($g.Context.Provider,{value:a,children:[(0,ar.jsx)($g.TabPanel,{tabId:us.document,focusable:!1,children:l?(0,ar.jsx)(jF,{onActionPerformed:r}):(0,ar.jsxs)(ar.Fragment,{children:[(0,ar.jsx)(kne,{onActionPerformed:r}),!c&&(0,ar.jsxs)(ar.Fragment,{children:[(0,ar.jsx)(PT.Slot,{}),(0,ar.jsx)(Zne,{}),(0,ar.jsx)($ne,{}),(0,ar.jsx)(Lne,{}),(0,ar.jsx)(iP,{}),(0,ar.jsx)(qoe,{}),o]})]})}),!l&&(0,ar.jsx)($g.TabPanel,{tabId:us.block,focusable:!1,children:(0,ar.jsx)(xE.BlockInspector,{})})]})})},nAe=({extraPanels:e,onActionPerformed:t})=>{ose();let{tabName:r,keyboardShortcut:o,showSummary:n,postType:s}=(0,n1.useSelect)(c=>{let u=c(nse.store).getShortcutRepresentation("core/editor/toggle-sidebar"),d=c(Te).getActiveComplementaryArea("core"),f=[us.block,us.document].includes(d),m=d;f||(m=c(xE.store).getBlockSelectionStart()?us.block:us.document);let h=c(_).getCurrentPostType();return{tabName:m,keyboardShortcut:u,showSummary:![_t,Ur,Dd].includes(h),postType:h}},[]),{enableComplementaryArea:a}=(0,n1.useDispatch)(Te),l=(0,dl.useCallback)(c=>{c&&a("core",c)},[a]);return(0,ar.jsx)($g,{selectedTabId:r,onSelect:l,selectOnMove:!1,children:(0,ar.jsx)(oAe,{tabName:r,keyboardShortcut:o,showSummary:n,onActionPerformed:t,extraPanels:e,postType:s})})},ise=nAe;var av=i(E(),1),hl=i(O(),1),Dse=i(R(),1),Lse=i(N(),1),Mse=i(pe(),1),Vse=i(Es(),1);var nN=i($(),1);var jse=i(dt(),1);var tv="edit-post/collab-history-sidebar",Rd="edit-post/collab-sidebar",$F=[tv,Rd];var co=i(N(),1),lr=i(R(),1),Cse=i(pe(),1);var pt=i(E(),1),Wc=i(O(),1),Pse=i(fh(),1),nv=i($(),1);var TE=i(R(),1),CE=i(E(),1),ml=i(mo(),1),ase=i(W(),1),lse=i(O(),1),cse=i($(),1);var fl=i(x(),1);function sAe({avatar:e,name:t,date:r,userId:o}){let n=!!e,s=(0,ml.getSettings)(),{currentUserAvatar:a,currentUserName:l,currentUserId:c,dateFormat:u=s.formats.date}=(0,lse.useSelect)(y=>{let{canUser:v,getCurrentUser:b,getEntityRecord:S}=y(ase.store),w=v("read",{kind:"root",name:"site"})?S("root","site"):void 0;if(n)return{dateFormat:w?.date_format};let{getSettings:T}=y(cse.store),{__experimentalDiscussionSettings:C}=T(),A=C?.avatarURL,F=b();return{currentUserAvatar:F?.avatar_urls?.[48]??A,currentUserName:F?.name,currentUserId:F?.id,dateFormat:w?.date_format}},[n]),d=(0,ml.getDate)(r),f=(0,ml.dateI18n)("c",d),h=Math.floor((new Date-d)/(1e3*60*60*24))<30?(0,ml.humanTimeDiff)(d):(0,ml.dateI18n)(u,d),g=(0,ml.dateI18n)((0,CE._x)("F j, Y g:i\xA0a","Note date full date format"),r);return(0,fl.jsxs)(fl.Fragment,{children:[(0,fl.jsx)("img",{src:e||a,className:"editor-collab-sidebar-panel__user-avatar",alt:(0,CE.__)("User avatar"),width:32,height:32,style:{borderColor:bi(o??c)}}),(0,fl.jsxs)(TE.__experimentalVStack,{spacing:"0",children:[(0,fl.jsx)("span",{className:"editor-collab-sidebar-panel__user-name",children:t??l}),r&&(0,fl.jsx)(TE.Tooltip,{text:g,children:(0,fl.jsx)("time",{dateTime:f,className:"editor-collab-sidebar-panel__user-time",children:h})})]})]})}var s1=sAe;var use=i(G3(),1),dse=i(N(),1),Ii=i(R(),1),eN=i(E(),1),PE=i(pe(),1),fse=i(yo(),1);var pl=i(x(),1);function mse({onSubmit:e,onCancel:t,thread:r,submitButtonText:o,labelText:n,reflowComments:s=Sg}){let[a,l]=(0,dse.useState)(r?.content?.raw??""),c=(0,PE.useDebounce)(s,100),u=m=>{l(m)},d=(0,PE.useInstanceId)(mse,"comment-input"),f=a===r?.content?.raw||!lJ(a).length;return(0,pl.jsxs)(Ii.__experimentalVStack,{className:"editor-collab-sidebar-panel__comment-form",spacing:"4",as:"form",onSubmit:m=>{m.preventDefault(),e(a),l("")},children:[(0,pl.jsx)(Ii.VisuallyHidden,{as:"label",htmlFor:d,children:n??(0,eN.__)("Note")}),(0,pl.jsx)(use.default,{id:d,value:a??"",onChange:m=>{u(m.target.value),c()},rows:1,maxRows:20,onKeyDown:m=>{fse.isKeyboardEvent.primary(m,"Enter")&&!f&&m.target.parentNode.requestSubmit(),m.key==="Escape"&&(m.preventDefault(),t(m))}}),(0,pl.jsxs)(Ii.__experimentalHStack,{spacing:"2",justify:"flex-end",wrap:!0,children:[(0,pl.jsx)(Ii.Button,{size:"compact",variant:"tertiary",onClick:t,children:(0,pl.jsx)(Ii.__experimentalTruncate,{children:(0,eN.__)("Cancel")})}),(0,pl.jsx)(Ii.Button,{size:"compact",accessibleWhenDisabled:!0,variant:"primary",type:"submit",disabled:f,children:(0,pl.jsx)(Ii.__experimentalTruncate,{children:o})})]})]})}var i1=mse;var Qr=i(Xn(),1),AE=i(Xn(),1),gse=i(q5(),1);var kE=typeof document<"u"?AE.useLayoutEffect:AE.useEffect;function EE(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 r,o,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(o=r;o--!==0;)if(!EE(e[o],t[o]))return!1;return!0}if(n=Object.keys(e),r=n.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(t,n[o]))return!1;for(o=r;o--!==0;){let s=n[o];if(!(s==="_owner"&&e.$$typeof)&&!EE(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function vse(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pse(e,t){let r=vse(e);return Math.round(t*r)/r}function hse(e){let t=Qr.useRef(e);return kE(()=>{t.current=e}),t}function yse(e){e===void 0&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:n,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=Qr.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=Qr.useState(o);EE(m,o)||h(o);let[g,y]=Qr.useState(null),[v,b]=Qr.useState(null),S=Qr.useCallback(Z=>{Z!==A.current&&(A.current=Z,y(Z))},[]),w=Qr.useCallback(Z=>{Z!==F.current&&(F.current=Z,b(Z))},[]),T=s||g,C=a||v,A=Qr.useRef(null),F=Qr.useRef(null),L=Qr.useRef(d),j=c!=null,z=hse(c),M=hse(n),k=Qr.useCallback(()=>{if(!A.current||!F.current)return;let Z={placement:t,strategy:r,middleware:m};M.current&&(Z.platform=M.current),aF(A.current,F.current,Z).then(B=>{let V={...B,isPositioned:!0};I.current&&!EE(L.current,V)&&(L.current=V,gse.flushSync(()=>{f(V)}))})},[m,t,r,M]);kE(()=>{u===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,f(Z=>({...Z,isPositioned:!1})))},[u]);let I=Qr.useRef(!1);kE(()=>(I.current=!0,()=>{I.current=!1}),[]),kE(()=>{if(T&&(A.current=T),C&&(F.current=C),T&&C){if(z.current)return z.current(T,C,k);k()}},[T,C,k,z,j]);let U=Qr.useMemo(()=>({reference:A,floating:F,setReference:S,setFloating:w}),[S,w]),G=Qr.useMemo(()=>({reference:T,floating:C}),[T,C]),Y=Qr.useMemo(()=>{let Z={position:r,left:0,top:0};if(!G.floating)return Z;let B=pse(G.floating,d.x),V=pse(G.floating,d.y);return l?{...Z,transform:"translate("+B+"px, "+V+"px)",...vse(G.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:B,top:V}},[r,l,G.floating,d.x,d.y]);return Qr.useMemo(()=>({...d,update:k,refs:U,elements:G,floatingStyles:Y}),[d,k,U,G,Y])}var Gc=i(E(),1),ga=i(N(),1),RE=i(W(),1),va=i(O(),1),Nm=i($(),1),bse=i(ct(),1),Sse=i(vt(),1);var{useBlockElement:iAe,cleanEmptyObject:aAe}=D(Nm.privateApis);function _se(e){let[t,r]=(0,ga.useReducer)(()=>Date.now(),0),o={post:e,type:"note",status:"all",per_page:-1},{records:n}=(0,RE.useEntityRecords)("root","comment",o,{enabled:!!e&&typeof e=="number"}),{getBlockAttributes:s}=(0,va.useSelect)(Nm.store),{clientIds:a}=(0,va.useSelect)(u=>{let{getClientIdsWithDescendants:d}=u(Nm.store);return{clientIds:d()}},[]),{resultComments:l,unresolvedSortedThreads:c}=(0,ga.useMemo)(()=>{if(!n||n.length===0)return{resultComments:[],unresolvedSortedThreads:[]};let u=a.reduce((T,C)=>{let A=s(C)?.metadata?.noteId;return A&&(T[C]=A),T},{}),d={},f=[],m=Object.keys(u).reduce((T,C)=>(T[u[C]]=C,T),{});if(n.forEach(T=>{let C=m[T.id];d[T.id]={...T,reply:[],blockClientId:T.parent===0?C:null}}),n.forEach(T=>{T.parent===0?f.push(d[T.id]):d[T.parent]&&d[T.parent].reply.push(d[T.id])}),f?.length===0)return{resultComments:[],unresolvedSortedThreads:[]};let h=f.map(T=>({...T,reply:[...T.reply].reverse()})),g=new Map(h.map(T=>[String(T.id),T])),y=new Set(Object.values(u).map(T=>String(T))),v=Object.values(u).map(T=>g.get(String(T))).filter(T=>T!==void 0&&T.status==="hold"),b=Object.values(u).map(T=>g.get(String(T))).filter(T=>T!==void 0&&T.status==="approved"),S=h.filter(T=>!y.has(String(T.id)));return{resultComments:[...v,...b,...S],unresolvedSortedThreads:v}},[a,n,s]);return{resultComments:l,unresolvedSortedThreads:c,reflowComments:r,commentLastUpdated:t}}function wse(e=Sg){let{createNotice:t}=(0,va.useDispatch)(bse.store),{saveEntityRecord:r,deleteEntityRecord:o}=(0,va.useDispatch)(RE.store),{getCurrentPostId:n}=(0,va.useSelect)(_),{getBlockAttributes:s,getSelectedBlockClientId:a}=(0,va.useSelect)(Nm.store),{updateBlockAttributes:l}=(0,va.useDispatch)(Nm.store),c=m=>{let h=m.message&&m.code!=="unknown_error"?(0,Sse.decodeEntities)(m.message):(0,Gc.__)("An error occurred while performing an update.");t("error",h,{type:"snackbar",isDismissible:!0})};return{onCreate:async({content:m,parent:h})=>{try{let g=await r("root","comment",{post:n(),content:m,status:"hold",type:"note",parent:h||0},{throwOnError:!0});if(!h&&g?.id){let y=a(),v=s(y)?.metadata;l(y,{metadata:{...v,noteId:g.id}})}return t("snackbar",h?(0,Gc.__)("Reply added."):(0,Gc.__)("Note added."),{type:"snackbar",isDismissible:!0}),setTimeout(e,300),g}catch(g){e(),c(g)}},onEdit:async({id:m,content:h,status:g})=>{let y=g||"updated",v={approved:(0,Gc.__)("Note marked as resolved."),hold:(0,Gc.__)("Note reopened."),updated:(0,Gc.__)("Note updated.")};try{if(g==="approved"||g==="hold"){await r("root","comment",{id:m,status:g},{throwOnError:!0});let b={post:n(),content:h||"",type:"note",status:g,parent:m,meta:{_wp_note_status:g==="approved"?"resolved":"reopen"}};await r("root","comment",b,{throwOnError:!0})}else await r("root","comment",{id:m,content:h,status:g},{throwOnError:!0});t("snackbar",v[y]??(0,Gc.__)("Note updated."),{type:"snackbar",isDismissible:!0}),e()}catch(b){e(),c(b)}},onDelete:async m=>{try{if(await o("root","comment",m.id,void 0,{throwOnError:!0}),!m.parent){let h=a(),g=s(h)?.metadata;l(h,{metadata:aAe({...g,noteId:void 0})})}t("snackbar",(0,Gc.__)("Note deleted."),{type:"snackbar",isDismissible:!0}),e()}catch(h){e(),c(h)}}}}function xse(e=!1){let t=(0,va.useRegistry)();(0,ga.useEffect)(()=>{if(!e)return;let{getActiveComplementaryArea:r}=t.select(Te),{disableComplementaryArea:o,enableComplementaryArea:n}=t.dispatch(Te),s=t.subscribe(()=>{r("core")===null&&n("core",Rd)});return()=>{s(),r("core")===Rd&&o("core",Rd)}},[e,t])}function Tse({thread:e,calculatedOffset:t,setHeights:r,selectedThread:o,setBlockRef:n,commentLastUpdated:s}){let a=iAe(e.blockClientId),l=(0,ga.useCallback)((d,f)=>{r(m=>m[d]!==f?{...m,[d]:f}:m)},[r]),{y:c,refs:u}=yse({placement:"right-start",middleware:[iF({crossAxis:t||-16})],whileElementsMounted:sF});return(0,ga.useEffect)(()=>{a&&u.setReference(a)},[a,u,s]),(0,ga.useEffect)(()=>{u.floating?.current&&n(e.id,a)},[a,e.id,u.floating,n]),(0,ga.useEffect)(()=>{if(u.floating?.current){let d=u.floating.current.scrollHeight;l(e.id,d)}},[e.id,l,u.floating,o,s]),{y:c,refs:u}}var OE=i(E(),1),ov=i(O(),1),IE=i(R(),1),a1=i($(),1);var rv=i(x(),1),{useBlockElement:lAe}=D(a1.privateApis);function FE({onSubmit:e,commentSidebarRef:t,reflowComments:r=Sg,isFloating:o=!1,y:n,refs:s}){let{clientId:a}=(0,ov.useSelect)(m=>{let{getSelectedBlockClientId:h}=m(a1.store);return{clientId:h()}},[]),l=(0,ov.useSelect)(m=>D(m(_)).getSelectedNote(),[]),c=lAe(a),{toggleBlockSpotlight:u}=D((0,ov.useDispatch)(a1.store)),{selectNote:d}=D((0,ov.useDispatch)(_)),f=()=>{d(void 0),c?.focus(),u(a,!1)};return l!=="new"||!a?null:(0,rv.jsxs)(IE.__experimentalVStack,{className:re("editor-collab-sidebar-panel__thread is-selected",{"is-floating":o}),spacing:"3",tabIndex:0,"aria-label":(0,OE.__)("New note"),role:"treeitem",ref:o?s.setFloating:void 0,style:o?{top:n,opacity:n?void 0:0}:void 0,onBlur:m=>{m.currentTarget.contains(m.relatedTarget)||(u(a,!1),d(void 0))},children:[(0,rv.jsx)(IE.__experimentalHStack,{alignment:"left",spacing:"3",children:(0,rv.jsx)(s1,{})}),(0,rv.jsx)(i1,{onSubmit:async m=>{let{id:h}=await e({content:m});d(h),cn(h,t.current)},onCancel:f,reflowComments:r,submitButtonText:(0,OE.__)("Add note"),labelText:(0,OE.__)("New note")})]})}var et=i(x(),1),{useBlockElement:kse}=D(nv.privateApis),{Menu:l1}=D(lr.privateApis);function Ese({threads:e,onEditComment:t,onAddReply:r,onCommentDelete:o,commentSidebarRef:n,reflowComments:s,isFloating:a=!1,commentLastUpdated:l}){let[c,u]=(0,co.useState)({}),[d,f]=(0,co.useState)({}),[m,h]=(0,co.useState)({}),{setCanvasMinHeight:g,selectNote:y}=D((0,Wc.useDispatch)(_)),{selectBlock:v,toggleBlockSpotlight:b}=D((0,Wc.useDispatch)(nv.store)),{blockCommentId:S,selectedBlockClientId:w,orderedBlockIds:T}=(0,Wc.useSelect)(I=>{let{getBlockAttributes:U,getSelectedBlockClientId:G,getClientIdsWithDescendants:Y}=I(nv.store),Z=G();return{blockCommentId:Z?U(Z)?.metadata?.noteId:null,selectedBlockClientId:Z,orderedBlockIds:Y()}},[]),{selectedNote:C,noteFocused:A}=(0,Wc.useSelect)(I=>{let{getSelectedNote:U,isNoteFocused:G}=D(I(_));return{selectedNote:U(),noteFocused:G()}},[]),F=kse(w),L=(0,co.useMemo)(()=>{let I=[...e],U=[];if(a&&C==="new"){let G={id:"new",blockClientId:w,content:{rendered:""}};return T.forEach(Y=>{if(Y===w)U.push(G);else{let Z=I.find(B=>B.blockClientId===Y);Z&&U.push(Z)}}),U}return I},[e,a,C,w,T]),j=async I=>{let U=L.findIndex(Z=>Z.id===I.id),G=L[U+1],Y=L[U-1];if(await o(I),I.parent!==0){y(I.parent),cn(I.parent,n.current);return}G?(y(G.id),cn(G.id,n.current)):Y?(y(Y.id),cn(Y.id,n.current)):(y(void 0),b(I.blockClientId,!1),F?.focus())};(0,co.useEffect)(()=>{y(S??void 0)},[S,y]),(0,co.useEffect)(()=>{A&&C&&(cn(C,n.current,C==="new"?"textarea":void 0),y(C))},[A,C,y,n]),(0,co.useEffect)(()=>{let I=()=>{let Y={};if(!a)return{offsets:Y,minHeight:0};let Z=L.findIndex(ve=>ve.id===C),B=Z===-1?0:Z,V=L[B];if(!V||!m[V.id])return{offsets:Y,minHeight:0};let H=m[V.id],X=H?.getBoundingClientRect(),ne=X?.top||0,se=c[V.id]||0;Y[V.id]=-16;let ye={threadTop:ne-16,threadHeight:se};for(let ve=B+1;ve<L.length;ve++){let De=L[ve];if(!m[De.id])continue;H=m[De.id],X=H?.getBoundingClientRect();let Ze=X?.top||0,je=c[De.id]||0,rt=-16,Tt=ye.threadTop+ye.threadHeight;Ze<Tt+16&&(rt=Tt-Ze+20),Y[De.id]=rt,ye={threadTop:Ze+rt,threadHeight:je}}let qe={threadTop:ne-16};for(let ve=Z-1;ve>=0;ve--){let De=L[ve];if(!m[De.id])continue;H=m[De.id],X=H?.getBoundingClientRect();let Ze=X?.top||0,je=c[De.id]||0,rt=-16;Ze+je>qe.threadTop&&(rt=qe.threadTop-Ze-je-20),Y[De.id]=rt,qe={threadTop:Ze+rt}}let ge=0,oe=L[L.length-1];if(m[oe.id]){let Ze=m[oe.id]?.getBoundingClientRect()?.top||0,je=c[oe.id]||0,rt=Y[oe.id]||0;ge=Ze+je+rt+32}return{offsets:Y,minHeight:ge}},{offsets:U,minHeight:G}=I();Object.keys(U).length>0&&f(U),g(G)},[c,m,a,L,C,g]);let z=(I,U,G)=>{if(I.defaultPrevented)return;let Y=L.findIndex(Z=>Z.id===U.id);if((I.key==="Enter"||I.key==="ArrowRight")&&I.currentTarget===I.target&&!G)y(U.id),U.blockClientId&&(v(U.blockClientId,null),b(U.blockClientId,!0));else if((I.key==="Enter"||I.key==="ArrowLeft")&&I.currentTarget===I.target&&G||I.key==="Escape")y(void 0),U.blockClientId&&b(U.blockClientId,!1),cn(U.id,n.current);else if(I.key==="ArrowDown"&&Y<L.length-1&&I.currentTarget===I.target){let Z=L[Y+1];cn(Z.id,n.current)}else if(I.key==="ArrowUp"&&Y>0&&I.currentTarget===I.target){let Z=L[Y-1];cn(Z.id,n.current)}else I.key==="Home"&&I.currentTarget===I.target?cn(L[0].id,n.current):I.key==="End"&&I.currentTarget===I.target&&cn(L[L.length-1].id,n.current)},M=(0,co.useCallback)((I,U)=>{h(G=>({...G,[I]:U}))},[]);return!(Array.isArray(L)&&L.length>0)&&!a?(0,et.jsx)(FE,{onSubmit:r,commentSidebarRef:n}):(0,et.jsxs)(et.Fragment,{children:[!a&&C==="new"&&(0,et.jsx)(FE,{onSubmit:r,commentSidebarRef:n}),L.map(I=>(0,et.jsx)(cAe,{thread:I,onAddReply:r,onCommentDelete:j,onEditComment:t,isSelected:C===I.id,commentSidebarRef:n,reflowComments:s,isFloating:a,calculatedOffset:d[I.id]??0,setHeights:u,setBlockRef:M,commentLastUpdated:l,onKeyDown:U=>z(U,I,C===I.id)},I.id))]})}function cAe({thread:e,onEditComment:t,onAddReply:r,onCommentDelete:o,isSelected:n,commentSidebarRef:s,reflowComments:a,isFloating:l,calculatedOffset:c,setHeights:u,setBlockRef:d,commentLastUpdated:f,onKeyDown:m}){let{toggleBlockHighlight:h,selectBlock:g,toggleBlockSpotlight:y}=D((0,Wc.useDispatch)(nv.store)),{selectNote:v}=D((0,Wc.useDispatch)(_)),b=(0,Wc.useSelect)(B=>D(B(_)).getSelectedNote(),[]),S=kse(e.blockClientId),w=(0,Cse.useDebounce)(h,50),{y:T,refs:C}=Tse({thread:e,calculatedOffset:c,setHeights:u,setBlockRef:d,selectedThread:b,commentLastUpdated:f}),A=(0,co.useRef)(!1),F=()=>{w(e.blockClientId,!0)},L=()=>{w(e.blockClientId,!1)},j=()=>{h(e.blockClientId,!0)},z=B=>{let V=B.relatedTarget?.closest(".editor-collab-sidebar-panel__thread"),H=B.relatedTarget?.closest('[role="dialog"]'),X=A.current;V&&!X||H||X&&B.currentTarget.contains(B.relatedTarget)||(h(e.blockClientId,!1),k())},M=()=>{v(e.id),y(e.blockClientId,!0),e.blockClientId&&g(e.blockClientId,null)},k=()=>{v(void 0),y(e.blockClientId,!1)},I=e?.reply||[],U=I.length>0?I[I.length-1]:void 0,G=I.length>0?I.slice(0,-1):[],Y=cJ((0,Pse.__unstableStripHTML)(e.content?.rendered),10),Z=e.blockClientId?(0,pt.sprintf)((0,pt.__)("Note: %s"),Y):(0,pt.sprintf)((0,pt.__)("Original block deleted. Note: %s"),Y);return l&&e.id==="new"?(0,et.jsx)(FE,{onSubmit:r,commentSidebarRef:s,reflowComments:a,isFloating:l,y:T,refs:C}):(0,et.jsxs)(lr.__experimentalVStack,{className:re("editor-collab-sidebar-panel__thread",{"is-selected":n,"is-floating":l}),id:`comment-thread-${e.id}`,spacing:"3",onClick:M,onMouseEnter:F,onMouseLeave:L,onFocus:j,onBlur:z,onKeyUp:B=>{B.key==="Tab"&&(A.current=!1)},onKeyDown:B=>{B.key==="Tab"?A.current=!0:m(B)},tabIndex:0,role:"treeitem","aria-label":Z,"aria-expanded":n,ref:l?C.setFloating:void 0,style:l?{top:T}:void 0,children:[(0,et.jsx)(lr.Button,{className:"editor-collab-sidebar-panel__skip-to-comment",variant:"secondary",size:"compact",onClick:()=>{cn(e.id,s.current,"textarea")},children:(0,pt.__)("Add new reply")}),!e.blockClientId&&(0,et.jsx)(lr.__experimentalText,{as:"p",weight:500,variant:"muted",children:(0,pt.__)("Original block deleted.")}),(0,et.jsx)(tN,{thread:e,isExpanded:n,onEdit:(B={})=>{t(B),B.status==="approved"&&(k(),l?S?.focus():cn(e.id,s.current))},onDelete:o,reflowComments:a}),n&&I.map(B=>(0,et.jsx)(tN,{thread:B,parent:e,isExpanded:n,onEdit:t,onDelete:o,reflowComments:a},B.id)),!n&&G.length>0&&(0,et.jsx)(lr.__experimentalHStack,{className:"editor-collab-sidebar-panel__more-reply-separator",children:(0,et.jsx)(lr.Button,{size:"compact",variant:"tertiary",className:"editor-collab-sidebar-panel__more-reply-button",onClick:()=>{v(e.id),cn(e.id,s.current)},children:(0,pt.sprintf)((0,pt._n)("%s more reply","%s more replies",G.length),G.length)})}),!n&&U&&(0,et.jsx)(tN,{thread:U,parent:e,isExpanded:n,onEdit:t,onDelete:o,reflowComments:a}),n&&(0,et.jsxs)(lr.__experimentalVStack,{spacing:"2",role:"treeitem",children:[(0,et.jsx)(lr.__experimentalHStack,{alignment:"left",spacing:"3",justify:"flex-start",children:(0,et.jsx)(s1,{})}),(0,et.jsx)(lr.__experimentalVStack,{spacing:"2",children:(0,et.jsx)(i1,{onSubmit:B=>{e.status==="approved"?t({id:e.id,status:"hold",content:B}):r({content:B,parent:e.id})},onCancel:B=>{B.stopPropagation(),k(),cn(e.id,s.current)},submitButtonText:e.status==="approved"?(0,pt.__)("Reopen & Reply"):(0,pt.__)("Reply"),rows:e.status==="approved"?2:4,labelText:(0,pt.sprintf)((0,pt.__)("Reply to note %1$s by %2$s"),e.id,e.author_name),reflowComments:a})})]}),!!e.blockClientId&&(0,et.jsx)(lr.Button,{className:"editor-collab-sidebar-panel__skip-to-block",variant:"secondary",size:"compact",onClick:B=>{B.stopPropagation(),S?.focus()},children:(0,pt.__)("Back to block")})]})}var tN=({thread:e,parent:t,isExpanded:r,onEdit:o,onDelete:n,reflowComments:s})=>{let[a,l]=(0,co.useState)(!1),[c,u]=(0,co.useState)(!1),d=(0,co.useRef)(null),f=()=>{n(e),l(!1),u(!1)},m=()=>{l(!1),u(!1),d.current?.focus()},h=e.type==="note"&&e.meta&&(e.meta._wp_note_status==="resolved"||e.meta._wp_note_status==="reopen"),g=[{id:"edit",title:(0,pt.__)("Edit"),isEligible:({status:S})=>S!=="approved",onClick:()=>{l("edit")}},{id:"reopen",title:(0,pt._x)("Reopen","Reopen note"),isEligible:({status:S})=>S==="approved",onClick:()=>{o({id:e.id,status:"hold"})}},{id:"delete",title:(0,pt.__)("Delete"),isEligible:()=>!0,onClick:()=>{l("delete"),u(!0)}}],y=e.parent===0,v=t?.status!=="approved"?g.filter(S=>S.isEligible(e)):[],b=e.parent===0?(0,pt.__)("Are you sure you want to delete this note? This will also delete all of this note's replies."):(0,pt.__)("Are you sure you want to delete this reply?");return(0,et.jsxs)(lr.__experimentalVStack,{spacing:"2",role:e.parent!==0?"treeitem":void 0,children:[(0,et.jsxs)(lr.__experimentalHStack,{alignment:"left",spacing:"3",justify:"flex-start",children:[(0,et.jsx)(s1,{avatar:e?.author_avatar_urls?.[48],name:e?.author_name,date:e?.date,userId:e?.author}),r&&(0,et.jsx)(lr.FlexItem,{className:"editor-collab-sidebar-panel__comment-status",onClick:S=>{S.stopPropagation()},children:(0,et.jsxs)(lr.__experimentalHStack,{spacing:"0",children:[y&&(0,et.jsx)(lr.Button,{label:(0,pt._x)("Resolve","Mark note as resolved"),size:"small",icon:Vd,disabled:e.status==="approved",accessibleWhenDisabled:e.status==="approved",onClick:()=>{o({id:e.id,status:"approved"})}}),(0,et.jsxs)(l1,{placement:"bottom-end",children:[(0,et.jsx)(l1.TriggerButton,{render:(0,et.jsx)(lr.Button,{ref:d,size:"small",icon:Ir,label:(0,pt.__)("Actions"),disabled:!v.length,accessibleWhenDisabled:!0})}),(0,et.jsx)(l1.Popover,{modal:!1,children:v.map(S=>(0,et.jsx)(l1.Item,{onClick:()=>S.onClick(),children:(0,et.jsx)(l1.ItemLabel,{children:S.title})},S.id))})]})]})})]}),a==="edit"?(0,et.jsx)(i1,{onSubmit:S=>{o({id:e.id,content:S}),l(!1),d.current?.focus()},onCancel:()=>m(),thread:e,submitButtonText:(0,pt._x)("Update","verb"),labelText:(0,pt.sprintf)((0,pt.__)("Edit note %1$s by %2$s"),e.id,e.author_name),reflowComments:s}):(0,et.jsx)(co.RawHTML,{className:re("editor-collab-sidebar-panel__user-comment",{"editor-collab-sidebar-panel__resolution-text":h}),children:h?(()=>{let S=e.meta._wp_note_status==="resolved"?(0,pt.__)("Marked as resolved"):(0,pt.__)("Reopened"),w=e?.content?.raw;return w&&typeof w=="string"&&w.trim()!==""?(0,pt.sprintf)((0,pt.__)("%1$s: %2$s"),S,w):S})():e?.content?.rendered}),a==="delete"&&(0,et.jsx)(lr.__experimentalConfirmDialog,{isOpen:c,onConfirm:f,onCancel:m,confirmButtonText:(0,pt.__)("Delete"),children:b})]})};var Ase=i(R(),1),NE=i(E(),1),DE=i($(),1),rN=i(O(),1),Rse=i(Xe(),1),Ose=i(Es(),1);var BE=i(x(),1),{CommentIconSlotFill:uAe}=D(DE.privateApis),dAe=({clientId:e,onClick:t,isDistractionFree:r})=>{let o=(0,rN.useSelect)(l=>l(DE.store).getBlock(e),[e]),n=(0,rN.useSelect)(l=>l(Ose.store).getShortcutRepresentation("core/editor/new-note"),[]);if(!o?.isValid||o?.name===(0,Rse.getUnregisteredTypeHandlerName)())return null;let s=r||o?.name==="core/freeform",a;return r?a=(0,NE.__)("Notes are disabled in distraction free mode."):o?.name==="core/freeform"&&(a=(0,NE.__)("Convert to blocks to add notes.")),(0,BE.jsx)(Ase.MenuItem,{onClick:t,"aria-haspopup":"dialog",disabled:s,info:a,shortcut:n,children:(0,NE.__)("Add note")})},fAe=({onClick:e,isDistractionFree:t})=>(0,BE.jsx)(uAe.Fill,{children:({clientId:r,onClose:o})=>(0,BE.jsx)(dAe,{clientId:r,isDistractionFree:t,onClick:()=>{e(r),o()}})}),oN=fAe;var iv=i(R(),1),sv=i(E(),1),Ise=i(N(),1),Fse=i($(),1);var Bm=i(x(),1),{CommentIconToolbarSlotFill:mAe}=D(Fse.privateApis),pAe=({onClick:e,thread:t})=>{let r=(0,Ise.useMemo)(()=>{if(!t)return[];let u=new Map,d=[t,...t.reply];return d.sort((f,m)=>new Date(f.date)-new Date(m.date)),d.forEach(f=>{f.author_name&&f.author_avatar_urls&&(u.has(f.author)||u.set(f.author,{name:f.author_name,avatar:f.author_avatar_urls?.["48"]||f.author_avatar_urls?.["96"],id:f.author,date:f.date}))}),Array.from(u.values())},[t]);if(!r.length)return null;let o=3,s=r.length>o?r.slice(0,o-1):r,a=Math.max(0,r.length-s.length),c=r.length>100&&a>0?(0,sv.__)("100+"):(0,sv.sprintf)((0,sv.__)("+%s"),a);return(0,Bm.jsx)(mAe.Fill,{children:(0,Bm.jsx)(iv.ToolbarButton,{className:"comment-avatar-indicator",label:(0,sv.__)("View notes"),onClick:()=>e(),showTooltip:!0,children:(0,Bm.jsxs)(iv.__experimentalHStack,{spacing:"1",children:[s.map(u=>(0,Bm.jsx)("img",{src:u.avatar,alt:u.name,className:"comment-avatar",style:{borderColor:bi(u.id)}},u.id)),a>0&&(0,Bm.jsx)(iv.__experimentalText,{weight:500,children:c})]})})})},Nse=pAe;var Wo=i(x(),1);function Bse({styles:e,comments:t,commentSidebarRef:r,reflowComments:o,commentLastUpdated:n,isFloating:s=!1}){let{onCreate:a,onEdit:l,onDelete:c}=wse(o);return(0,Wo.jsx)(Dse.__experimentalVStack,{className:"editor-collab-sidebar-panel",style:e,role:"tree",spacing:"3",justify:"flex-start",ref:u=>{u&&(r.current=u)},"aria-label":s?(0,av.__)("Unresolved notes"):(0,av.__)("All notes"),children:(0,Wo.jsx)(Ese,{threads:t,onEditComment:l,onAddReply:a,onCommentDelete:c,commentSidebarRef:r,reflowComments:o,commentLastUpdated:n,isFloating:s})})}function hAe({postId:e}){let{getActiveComplementaryArea:t}=(0,hl.useSelect)(Te),{enableComplementaryArea:r}=(0,hl.useDispatch)(Te),{toggleBlockSpotlight:o,selectBlock:n}=D((0,hl.useDispatch)(nN.store)),{selectNote:s}=D((0,hl.useDispatch)(_)),a=(0,Mse.useViewportMatch)("medium"),l=(0,Lse.useRef)(null),{clientId:c,blockCommentId:u,isClassicBlock:d}=(0,hl.useSelect)(F=>{let{getBlockAttributes:L,getSelectedBlockClientId:j,getBlockName:z}=F(nN.store),M=j();return{clientId:M,blockCommentId:M?L(M)?.metadata?.noteId:null,isClassicBlock:M?z(M)==="core/freeform":!1}},[]),{isDistractionFree:f}=(0,hl.useSelect)(F=>{let{get:L}=F(jse.store);return{isDistractionFree:L("core","distractionFree")}},[]),m=(0,hl.useSelect)(F=>D(F(_)).getSelectedNote(),[]),{resultComments:h,unresolvedSortedThreads:g,reflowComments:y,commentLastUpdated:v}=_se(e),b=a,S=h.length>0||!b;xse(b&&(g.length>0||m!==void 0)),(0,Vse.useShortcut)("core/editor/new-note",F=>{F.preventDefault(),A()},{isDisabled:f||d||!c||!!u});let{merged:w}=lw(),T=w?.styles?.color?.background,C=u?h.find(F=>F.id===u):null;async function A(F){let L=await t("core"),j=$F.find(I=>I===L),z=F&&F!==c?F:c,M=h.find(I=>I.blockClientId===z);M?.status==="approved"?r("core",tv):(!j||!S)&&r("core",b?Rd:tv);let k=await t("core");$F.includes(k)&&(n(z,null),o(z,!0),s(M?M.id:"new",{focus:!0}))}return f?(0,Wo.jsx)(oN,{isDistractionFree:!0}):(0,Wo.jsxs)(Wo.Fragment,{children:[!!C&&(0,Wo.jsx)(Nse,{thread:C,onClick:A}),(0,Wo.jsx)(oN,{onClick:A}),S&&(0,Wo.jsx)(Kf,{identifier:tv,name:tv,title:(0,av.__)("All notes"),header:(0,Wo.jsx)("h2",{className:"interface-complementary-area-header__title",children:(0,av.__)("All notes")}),icon:FA,closeLabel:(0,av.__)("Close Notes"),children:(0,Wo.jsx)(Bse,{comments:h,commentSidebarRef:l})}),a&&(0,Wo.jsx)(Kf,{isPinnable:!1,header:!1,identifier:Rd,className:"editor-collab-sidebar",headerClassName:"editor-collab-sidebar__header",backgroundColor:T,children:(0,Wo.jsx)(Bse,{comments:g,commentSidebarRef:l,reflowComments:y,commentLastUpdated:v,styles:{backgroundColor:T},isFloating:!0})})]})}function zse(){let{postId:e,editorMode:t,revisionsMode:r}=(0,hl.useSelect)(o=>{let{getCurrentPostId:n,getEditorMode:s,isRevisionsMode:a}=D(o(_));return{postId:n(),editorMode:s(),revisionsMode:a()}},[]);return!e||typeof e!="number"||t==="text"||r?null:(0,Wo.jsx)(er,{supportKeys:"editor.notes",children:(0,Wo.jsx)(hAe,{postId:e})})}var gl=i(R(),1),lv=i(E(),1);var f1=i(O(),1),iN=i(N(),1),Yse=i(dt(),1),zE=i(pe(),1),qse=i(W(),1);var Yc=i(R(),1),LE=i(O(),1),c1=i(E(),1),Use=i(dt(),1);var Hse=i(W(),1);var ya=i(x(),1);function ME({hideWelcomeGuide:e=!1,onChangePath:t}){let{user:r,setUser:o}=xo(),n=!!r&&(Object.keys(r?.styles??{}).length>0||Object.keys(r?.settings??{}).length>0),s=()=>{o({styles:{},settings:{}})},{toggle:a}=(0,LE.useDispatch)(Use.store),{canEditCSS:l}=(0,LE.useSelect)(u=>{let{getEntityRecord:d,__experimentalGetCurrentGlobalStylesId:f}=u(Hse.store),m=f();return{canEditCSS:!!(m?d("root","globalStyles",m):void 0)?._links?.["wp:action-edit-css"]}},[]),c=()=>{t("/css")};return(0,ya.jsx)(Yc.DropdownMenu,{icon:Ir,label:(0,c1.__)("More"),toggleProps:{size:"compact"},children:({onClose:u})=>(0,ya.jsxs)(ya.Fragment,{children:[(0,ya.jsxs)(Yc.MenuGroup,{children:[l&&(0,ya.jsx)(Yc.MenuItem,{onClick:c,children:(0,c1.__)("Additional CSS")}),!e&&(0,ya.jsx)(Yc.MenuItem,{onClick:()=>{a("core/edit-site","welcomeGuideStyles"),u()},children:(0,c1.__)("Welcome Guide")})]}),(0,ya.jsx)(Yc.MenuGroup,{children:(0,ya.jsx)(Yc.MenuItem,{onClick:()=>{s(),u()},disabled:!n,children:(0,c1.__)("Reset styles")})})]})})}var Dm=i(x(),1);function Gse({className:e,identifier:t,title:r,icon:o,children:n,closeLabel:s,header:a,headerClassName:l,panelClassName:c,isActiveByDefault:u}){return(0,Dm.jsxs)(Dm.Fragment,{children:[(0,Dm.jsx)(Hl,{className:e,scope:"core",identifier:t,title:r,icon:o,closeLabel:s,header:a,headerClassName:l,panelClassName:c,isActiveByDefault:u,children:n}),(0,Dm.jsx)(Su,{scope:"core",identifier:t,icon:o,children:r})]})}var VE=i(O(),1),jE=i(R(),1),Fi=i(E(),1),sN=i(dt(),1);var u1=i(x(),1);function d1({nonAnimatedSrc:e,animatedSrc:t}){return(0,u1.jsxs)("picture",{className:"editor-welcome-guide__image",children:[(0,u1.jsx)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,u1.jsx)("img",{src:t,width:"312",height:"240",alt:""})]})}var Xt=i(x(),1);function Wse(){let{toggle:e}=(0,VE.useDispatch)(sN.store),{isActive:t,isStylesOpen:r}=(0,VE.useSelect)(n=>{let s=n(Te).getActiveComplementaryArea("core");return{isActive:!!n(sN.store).get("core/edit-site","welcomeGuideStyles"),isStylesOpen:s==="edit-site/global-styles"}},[]);if(!t||!r)return null;let o=(0,Fi.__)("Welcome to Styles");return(0,Xt.jsx)(jE.Guide,{className:"editor-welcome-guide guide-styles",contentLabel:o,finishButtonText:(0,Fi.__)("Get started"),onFinish:()=>e("core/edit-site","welcomeGuideStyles"),pages:[{image:(0,Xt.jsx)(d1,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.svg?1",animatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.gif?1"}),content:(0,Xt.jsxs)(Xt.Fragment,{children:[(0,Xt.jsx)("h1",{className:"editor-welcome-guide__heading",children:o}),(0,Xt.jsx)("p",{className:"editor-welcome-guide__text",children:(0,Fi.__)("Tweak your site, or give it a whole new look! Get creative \u2014 how about a new color palette for your buttons, or choosing a new font? Take a look at what you can do here.")})]})},{image:(0,Xt.jsx)(d1,{nonAnimatedSrc:"https://s.w.org/images/block-editor/set-the-design.svg?1",animatedSrc:"https://s.w.org/images/block-editor/set-the-design.gif?1"}),content:(0,Xt.jsxs)(Xt.Fragment,{children:[(0,Xt.jsx)("h1",{className:"editor-welcome-guide__heading",children:(0,Fi.__)("Set the design")}),(0,Xt.jsx)("p",{className:"editor-welcome-guide__text",children:(0,Fi.__)("You can customize your site as much as you like with different colors, typography, and layouts. Or if you prefer, just leave it up to your theme to handle!")})]})},{image:(0,Xt.jsx)(d1,{nonAnimatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.svg?1",animatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.gif?1"}),content:(0,Xt.jsxs)(Xt.Fragment,{children:[(0,Xt.jsx)("h1",{className:"editor-welcome-guide__heading",children:(0,Fi.__)("Personalize blocks")}),(0,Xt.jsx)("p",{className:"editor-welcome-guide__text",children:(0,Fi.__)("You can adjust your blocks to ensure a cohesive experience across your site \u2014 add your unique colors to a branded Button block, or adjust the Heading block to your preferred size.")})]})},{image:(0,Xt.jsx)(d1,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,Xt.jsxs)(Xt.Fragment,{children:[(0,Xt.jsx)("h1",{className:"editor-welcome-guide__heading",children:(0,Fi.__)("Learn more")}),(0,Xt.jsxs)("p",{className:"editor-welcome-guide__text",children:[(0,Fi.__)("New to block themes and styling your site?")," ",(0,Xt.jsx)(jE.ExternalLink,{href:(0,Fi.__)("https://wordpress.org/documentation/article/styles-overview/"),children:(0,Fi.__)("Here\u2019s a detailed guide to learn how to make the most of it.")})]})]})}]})}var Yo=i(x(),1);function Zse(){let{shouldResetNavigation:e,stylesPath:t,showStylebook:r,showListViewByDefault:o,hasRevisions:n,activeComplementaryArea:s}=(0,f1.useSelect)(v=>{let{getActiveComplementaryArea:b}=v(Te),{getStylesPath:S,getShowStylebook:w}=D(v(_)),T=v(_).getEditorMode()==="visual",C=v(Yse.store).get("core","showListViewByDefault"),{getEntityRecord:A,__experimentalGetCurrentGlobalStylesId:F}=v(qse.store),L=F(),j=L?A("root","globalStyles",L):void 0;return{stylesPath:S(),showStylebook:w(),shouldResetNavigation:b("core")!=="edit-site/global-styles"||!T,showListViewByDefault:C,hasRevisions:!!j?._links?.["version-history"]?.[0]?.count,activeComplementaryArea:v(Te).getActiveComplementaryArea("core")}},[]),{setStylesPath:a,setShowStylebook:l,resetStylesNavigation:c}=D((0,f1.useDispatch)(_)),u=(0,zE.useViewportMatch)("medium","<"),d=t.startsWith("/revisions")&&!r,f=t.startsWith("/revisions")&&r,m=(0,zE.usePrevious)(s);(0,iN.useEffect)(()=>{s==="edit-site/global-styles"&&m!=="edit-site/global-styles"&&c()},[s,m,c]),(0,iN.useEffect)(()=>{e&&c()},[e,c]);let{setIsListViewOpened:h}=(0,f1.useDispatch)(_),g=()=>{h(!1),a(d||f?"/":"/revisions")},y=()=>{h(r&&o),l(!r)};return(0,Yo.jsxs)(Yo.Fragment,{children:[(0,Yo.jsx)(Gse,{className:"editor-global-styles-sidebar",identifier:"edit-site/global-styles",title:(0,lv.__)("Styles"),icon:VR,closeLabel:(0,lv.__)("Close Styles"),panelClassName:"editor-global-styles-sidebar__panel",header:(0,Yo.jsxs)(gl.Flex,{className:"editor-global-styles-sidebar__header",gap:1,children:[(0,Yo.jsx)(gl.FlexItem,{children:(0,Yo.jsx)("h2",{className:"editor-global-styles-sidebar__header-title",children:(0,lv.__)("Styles")})}),(0,Yo.jsxs)(gl.Flex,{justify:"flex-end",gap:1,className:"editor-global-styles-sidebar__header-actions",children:[!u&&(0,Yo.jsx)(gl.FlexItem,{children:(0,Yo.jsx)(gl.Button,{icon:jd,label:(0,lv.__)("Style Book"),isPressed:r,accessibleWhenDisabled:!0,disabled:e,onClick:y,size:"compact"})}),(0,Yo.jsx)(gl.FlexItem,{children:(0,Yo.jsx)(gl.Button,{label:(0,lv.__)("Revisions"),icon:bl,onClick:g,accessibleWhenDisabled:!0,disabled:!n,isPressed:d||f,size:"compact"})}),(0,Yo.jsx)(ME,{onChangePath:a})]})]}),children:(0,Yo.jsx)(Tx,{path:t,onPathChange:a})}),(0,Yo.jsx)(Wse,{})]})}var Ni=i(x(),1);function gAe({postType:e,postId:t,templateId:r,settings:o,children:n,initialEdits:s,onActionPerformed:a,extraContent:l,extraSidebarPanels:c,...u}){let{post:d,template:f,hasLoadedPost:m,error:h,isBlockTheme:g,showGlobalStyles:y}=(0,Kse.useSelect)(v=>{let{getEntityRecord:b,getResolutionError:S,hasFinishedResolution:w,getCurrentTheme:T,__experimentalGetCurrentGlobalStylesId:C,canUser:A}=v(Xse.store),{getRenderingMode:F,getCurrentPostType:L}=v(_),j=["postType",e,t],z=F(),M=L(),k=T()?.is_block_theme,I=C(),U=I?A("update",{kind:"root",name:"globalStyles",id:I}):!1;return{post:b(...j),template:r?b("postType",_t,r):void 0,hasLoadedPost:w("getEntityRecord",j),error:S("getEntityRecord",j)?.message,isBlockTheme:k,showGlobalStyles:k&&U&&(M==="wp_template"||z==="template-locked")}},[e,t,r]);return(0,Ni.jsxs)(Ni.Fragment,{children:[m&&!d&&(0,Ni.jsx)(Qse.Notice,{status:h?"error":"warning",isDismissible:!1,children:h||(0,Jse.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")}),!!d&&(0,Ni.jsxs)(MI,{post:d,__unstableTemplate:f,settings:o,initialEdits:s,useSubRegistry:!1,children:[(0,Ni.jsx)(Hoe,{...u,children:l}),n,(0,Ni.jsx)(ise,{onActionPerformed:a,extraPanels:c}),(0,Ni.jsx)(zse,{}),g&&(0,Ni.jsx)(Vx,{}),y&&(0,Ni.jsx)(Zse,{})]})]})}var $se=gAe;var Be=i(E(),1),lie=i(pe(),1),Lm=i(O(),1),cie=i(N(),1),m1=i(dt(),1);var UE=i(O(),1),eie=i(dt(),1);var tie=i(x(),1),{PreferenceBaseOption:vAe}=D(eie.privateApis);function rie(e){let t=(0,UE.useSelect)(n=>n(_).isPublishSidebarEnabled(),[]),{enablePublishSidebar:r,disablePublishSidebar:o}=(0,UE.useDispatch)(_);return(0,tie.jsx)(vAe,{isChecked:t,onChange:n=>n?r():o(),...e})}var HE=i(O(),1),oie=i(dt(),1),GE=i(Xe(),1),nie=i(N(),1),sie=i(R(),1),uv=i(E(),1),iie=i($(),1);var cv=i(x(),1),{BlockManager:yAe}=D(iie.privateApis),bAe=[];function aie(){let{showBlockTypes:e,hideBlockTypes:t}=D((0,HE.useDispatch)(_)),{blockTypes:r,allowedBlockTypes:o,hiddenBlockTypes:n}=(0,HE.useSelect)(m=>({blockTypes:m(GE.store).getBlockTypes(),allowedBlockTypes:m(_).getEditorSettings().allowedBlockTypes,hiddenBlockTypes:m(oie.store).get("core","hiddenBlockTypes")??bAe}),[]),a=(0,nie.useMemo)(()=>o===!0?r:r.filter(({name:m})=>o?.includes(m)),[o,r]).filter(m=>(0,GE.hasBlockSupport)(m,"inserter",!0)&&(!m.parent||m.parent.includes("core/post-content"))),l=n.filter(m=>a.some(h=>h.name===m)),c=a.filter(m=>!l.includes(m.name)),u=a.length-c.length;function d(){f(a)}let f=m=>{if(c.length>m.length){let h=c.filter(g=>!m.find(({name:y})=>y===g.name));t(h.map(({name:g})=>g))}else if(c.length<m.length){let h=m.filter(g=>!c.find(({name:y})=>y===g.name));e(h.map(({name:g})=>g))}};return(0,cv.jsxs)("div",{className:"editor-block-visibility",children:[!!u&&(0,cv.jsxs)("div",{className:"editor-block-visibility__disabled-blocks-count",children:[(0,uv.sprintf)((0,uv._n)("%d block is hidden.","%d blocks are hidden.",u),u),(0,cv.jsx)(sie.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:d,children:(0,uv.__)("Reset")})]}),(0,cv.jsx)(yAe,{blockTypes:a,selectedBlockTypes:c,onChange:f,showSelectAll:!1})]})}var Ve=i(x(),1),{PreferencesModal:SAe,PreferencesModalTabs:_Ae,PreferencesModalSection:qc,PreferenceToggleControl:Hs}=D(m1.privateApis);function uie({extraSections:e={}}){let t=(0,Lm.useSelect)(o=>o(Te).isModalActive("editor/preferences"),[]),{closeModal:r}=(0,Lm.useDispatch)(Te);return t?(0,Ve.jsx)(SAe,{closeModal:r,children:(0,Ve.jsx)(wAe,{extraSections:e})}):null}function wAe({extraSections:e={}}){let t=(0,lie.useViewportMatch)("medium"),r=(0,Lm.useSelect)(l=>{let{getEditorSettings:c}=l(_),{get:u}=l(m1.store),d=c().richEditingEnabled;return!u("core","distractionFree")&&t&&d},[t]),{setIsListViewOpened:o,setIsInserterOpened:n}=(0,Lm.useDispatch)(_),{set:s}=(0,Lm.useDispatch)(m1.store),a=(0,cie.useMemo)(()=>[{name:"general",tabLabel:(0,Be.__)("General"),content:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsxs)(qc,{title:(0,Be.__)("Interface"),children:[(0,Ve.jsx)(Hs,{scope:"core",featureName:"showListViewByDefault",help:(0,Be.__)("Opens the List View panel by default."),label:(0,Be.__)("Always open List View")}),r&&(0,Ve.jsx)(Hs,{scope:"core",featureName:"showBlockBreadcrumbs",help:(0,Be.__)("Display the block hierarchy trail at the bottom of the editor."),label:(0,Be.__)("Show block breadcrumbs")}),(0,Ve.jsx)(Hs,{scope:"core",featureName:"allowRightClickOverrides",help:(0,Be.__)("Allows contextual List View menus via right-click, overriding browser defaults."),label:(0,Be.__)("Allow right-click contextual menus")}),(0,Ve.jsx)(Hs,{scope:"core",featureName:"enableChoosePatternModal",help:(0,Be.__)("Pick from starter content when creating a new page."),label:(0,Be.__)("Show starter patterns")}),(0,Ve.jsx)(Hs,{scope:"core",featureName:"showCollaborationCursor",help:(0,Be.__)("Show your own avatar inside blocks during collaborative editing sessions."),label:(0,Be.__)("Show avatar in blocks")})]}),(0,Ve.jsxs)(qc,{title:(0,Be.__)("Document settings"),description:(0,Be.__)("Select what settings are shown in the document panel."),children:[(0,Ve.jsx)(xT.Slot,{}),(0,Ve.jsx)(tg,{taxonomyWrapper:(l,c)=>(0,Ve.jsx)(Zu,{label:c.labels.menu_name,panelName:`taxonomy-panel-${c.slug}`})}),(0,Ve.jsx)(gc,{children:(0,Ve.jsx)(Zu,{label:(0,Be.__)("Featured image"),panelName:"featured-image"})}),(0,Ve.jsx)($f,{children:(0,Ve.jsx)(Zu,{label:(0,Be.__)("Excerpt"),panelName:"post-excerpt"})}),(0,Ve.jsx)(er,{supportKeys:["comments","trackbacks"],children:(0,Ve.jsx)(Zu,{label:(0,Be.__)("Discussion"),panelName:"discussion-panel"})}),(0,Ve.jsx)(wh,{children:(0,Ve.jsx)(Zu,{label:(0,Be.__)("Page attributes"),panelName:"page-attributes"})})]}),t&&(0,Ve.jsx)(qc,{title:(0,Be.__)("Publishing"),children:(0,Ve.jsx)(rie,{help:(0,Be.__)("Review settings, such as visibility and tags."),label:(0,Be.__)("Enable pre-publish checks")})}),e?.general]})},{name:"appearance",tabLabel:(0,Be.__)("Appearance"),content:(0,Ve.jsxs)(qc,{title:(0,Be.__)("Appearance"),description:(0,Be.__)("Customize the editor interface to suit your needs."),children:[(0,Ve.jsx)(Hs,{scope:"core",featureName:"fixedToolbar",onToggle:()=>s("core","distractionFree",!1),help:(0,Be.__)("Access all block and document tools in a single place."),label:(0,Be.__)("Top toolbar")}),(0,Ve.jsx)(Hs,{scope:"core",featureName:"distractionFree",onToggle:()=>{s("core","fixedToolbar",!0),n(!1),o(!1)},help:(0,Be.__)("Reduce visual distractions by hiding the toolbar and other elements to focus on writing."),label:(0,Be.__)("Distraction free")}),(0,Ve.jsx)(Hs,{scope:"core",featureName:"focusMode",help:(0,Be.__)("Highlights the current block and fades other content."),label:(0,Be.__)("Spotlight mode")}),e?.appearance]})},{name:"accessibility",tabLabel:(0,Be.__)("Accessibility"),content:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(qc,{title:(0,Be.__)("Navigation"),description:(0,Be.__)("Optimize the editing experience for enhanced control."),children:(0,Ve.jsx)(Hs,{scope:"core",featureName:"keepCaretInsideBlock",help:(0,Be.__)("Keeps the text cursor within blocks while navigating with arrow keys, preventing it from moving to other blocks and enhancing accessibility for keyboard users."),label:(0,Be.__)("Contain text cursor inside block")})}),(0,Ve.jsx)(qc,{title:(0,Be.__)("Interface"),children:(0,Ve.jsx)(Hs,{scope:"core",featureName:"showIconLabels",label:(0,Be.__)("Show button text labels"),help:(0,Be.__)("Show text instead of icons on buttons across the interface.")})})]})},{name:"blocks",tabLabel:(0,Be.__)("Blocks"),content:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(qc,{title:(0,Be.__)("Inserter"),children:(0,Ve.jsx)(Hs,{scope:"core",featureName:"mostUsedBlocks",help:(0,Be.__)("Adds a category with the most frequently used blocks in the inserter."),label:(0,Be.__)("Show most used blocks")})}),(0,Ve.jsx)(qc,{title:(0,Be.__)("Manage block visibility"),description:(0,Be.__)("Disable blocks that you don't want to appear in the inserter. They can always be toggled back on later."),children:(0,Ve.jsx)(aie,{})})]})},window.__clientSideMediaProcessing&&{name:"media",tabLabel:(0,Be.__)("Media"),content:(0,Ve.jsx)(Ve.Fragment,{children:(0,Ve.jsxs)(qc,{title:(0,Be.__)("General"),description:(0,Be.__)("Customize options related to the media upload flow."),children:[(0,Ve.jsx)(Hs,{scope:"core/media",featureName:"optimizeOnUpload",help:(0,Be.__)("Compress media items before uploading to the server."),label:(0,Be.__)("Pre-upload compression")}),(0,Ve.jsx)(Hs,{scope:"core/media",featureName:"requireApproval",help:(0,Be.__)("Require approval step when optimizing existing media."),label:(0,Be.__)("Approval step")})]})})}].filter(Boolean),[r,e,n,o,s,t]);return(0,Ve.jsx)(_Ae,{sections:a})}var v1=i(Xe(),1);var p1=i($(),1),die="content",fie={name:"core/pattern-overrides",getValues({select:e,clientId:t,context:r,bindings:o}){let n=r["pattern/overrides"],{getBlockAttributes:s}=e(p1.store),a=s(t),l={};for(let c of Object.keys(o)){let u=n?.[a?.metadata?.name]?.[c];if(u===void 0){l[c]=a[c];continue}else l[c]=u===""?void 0:u}return l},setValues({select:e,dispatch:t,clientId:r,bindings:o}){let{getBlockAttributes:n,getBlockParentsByBlockName:s,getBlocks:a}=e(p1.store),c=n(r)?.metadata?.name;if(!c)return;let[u]=s(r,"core/block",!0),d=Object.entries(o).reduce((m,[h,{newValue:g}])=>(m[h]=g,m),{});if(!u){let m=h=>{for(let g of h)g.attributes?.metadata?.name===c&&t(p1.store).updateBlockAttributes(g.clientId,d),m(g.innerBlocks)};m(a());return}let f=n(u)?.[die];t(p1.store).updateBlockAttributes(u,{[die]:{...f,[c]:{...f?.[c],...Object.entries(d).reduce((m,[h,g])=>(m[h]=g===void 0?"":g,m),{})}}})},canUserEditValue:()=>!0};var WE=i(E(),1),YE=i(W(),1),h1=i($(),1),aN=["core/navigation-link","core/navigation-submenu"],mie=[{label:(0,WE.__)("Post Date"),args:{field:"date"},type:"string"},{label:(0,WE.__)("Post Modified Date"),args:{field:"modified"},type:"string"},{label:(0,WE.__)("Post Link"),args:{field:"link"},type:"string"}],pie={name:"core/post-data",getValues({select:e,context:t,bindings:r,clientId:o}){let{getBlockAttributes:n,getBlockName:s}=e(h1.store),a=s(o),l=aN.includes(a),c,u;if(l){let h=n(o);c=h?.id,u=h?.type}else c=t?.postId,u=t?.postType;let{getEditedEntityRecord:d}=e(YE.store),f=d("postType",u,c),m={};for(let[h,g]of Object.entries(r)){let y=mie.find(v=>v.args.field===g.args.field);y?f?m[h]=f[g.args.field]:m[h]=y.label:m[h]=g.args.field}return m},setValues({dispatch:e,context:t,bindings:r,clientId:o,select:n}){let{getBlockName:s}=n(h1.store),a=s(o);if(aN.includes(a))return!1;let l={};Object.values(r).forEach(({args:c,newValue:u})=>{l[c.field]=u}),e(YE.store).editEntityRecord("postType",t?.postType,t?.postId,l)},canUserEditValue({select:e,context:t}){let{getBlockName:r,getSelectedBlockClientId:o}=e(h1.store),n=o(),s=r(n);return!(aN.includes(s)||t?.query||t?.queryId||!t?.postType||!e(YE.store).canUser("update",{kind:"postType",name:t?.postType,id:t?.postId}))},getFieldsList({context:e,select:t}){return t(h1.store).getSelectedBlock()?.name!=="core/post-date"?[]:!e||!e.postId||!e.postType?[]:mie}};var g1=i(W(),1);function lN(e,t){let{getRegisteredPostMeta:r}=D(e(g1.store)),o=r(t?.postType),n=[];return Object.entries(o).forEach(([s,a])=>{s==="footnotes"||s.charAt(0)==="_"||n.push({label:a.title||s,args:{key:s},default:a.default,type:a.type})}),n}function xAe({select:e,context:t,args:r}){let n=lN(e,t).find(l=>l.args.key===r.key);if(!n)return r.key;if(!t?.postId)return n.default||n.label||r.key;let{getEditedEntityRecord:s}=e(g1.store);return s("postType",t?.postType,t?.postId).meta?.[r.key]??n?.label??r.key}var hie={name:"core/post-meta",getValues({select:e,context:t,bindings:r}){let o={};for(let[n,s]of Object.entries(r))o[n]=xAe({select:e,context:t,args:s.args});return o},setValues({dispatch:e,context:t,bindings:r}){let o={};Object.values(r).forEach(({args:n,newValue:s})=>{o[n.key]=s}),e(g1.store).editEntityRecord("postType",t?.postType,t?.postId,{meta:o})},canUserEditValue({select:e,context:t,args:r}){return!(t?.query||t?.queryId||!t?.postType||!lN(e,t).some(l=>l.args.key===r.key)||e(_).getEditorSettings().enableCustomFields||!e(g1.store).canUser("update",{kind:"postType",name:t?.postType,id:t?.postId}))},getFieldsList({select:e,context:t}){return lN(e,t).map(({default:o,...n})=>({...n}))}};var Od=i(E(),1),gie=i(W(),1),qE=i($(),1),cN=["core/navigation-link","core/navigation-submenu"],uN=[{label:(0,Od.__)("Term ID"),args:{field:"id"},type:"string"},{label:(0,Od.__)("Name"),args:{field:"name"},type:"string"},{label:(0,Od.__)("Slug"),args:{field:"slug"},type:"string"},{label:(0,Od.__)("Link"),args:{field:"link"},type:"string"},{label:(0,Od.__)("Description"),args:{field:"description"},type:"string"},{label:(0,Od.__)("Parent ID"),args:{field:"parent"},type:"string"},{label:(0,Od.__)("Count"),args:{field:"count"},type:"string"}],vie={name:"core/term-data",usesContext:["taxonomy","termId","termData"],getValues({select:e,context:t,bindings:r,clientId:o}){let{getEntityRecord:n}=e(gie.store),{getBlockAttributes:s,getBlockName:a}=e(qE.store),l=a(o),c=cN.includes(l),u;if(c){let f=s(o),m=f?.type;u=n("taxonomy",m==="tag"?"post_tag":m,f?.id)}else t.termId&&t.taxonomy&&(u=n("taxonomy",t.taxonomy,t.termId));!u&&t?.termData&&!c&&(u=t.termData);let d={};for(let[f,m]of Object.entries(r)){let h=uN.find(g=>g.args.field===m.args.field);h?!u||u[m.args.field]===void 0?d[f]=h.label:m.args.field==="count"?d[f]="("+u[m.args.field]+")":d[f]=u[m.args.field]:d[f]=m.args.field}return d},setValues({dispatch:e,context:t,bindings:r}){return!1},canUserEditValue({select:e,context:t}){let{getBlockName:r,getSelectedBlockClientId:o}=e(qE.store),n=o(),s=r(n);return cN.includes(s)||t?.termQuery||!t?.taxonomy||!t?.termId,!1},getFieldsList({context:e,select:t}){let{getBlockAttributes:r,getBlockName:o,getSelectedBlockClientId:n}=t(qE.store),s=n(),a=o(s);if(cN.includes(a)){let l=r(s);return!l||!l.id||!l.type?[]:uN}return e?e.taxonomy&&e.termId||e.termData?uN:[]:[]}};function yie(){(0,v1.registerBlockBindingsSource)(fie),(0,v1.registerBlockBindingsSource)(pie),(0,v1.registerBlockBindingsSource)(hie),(0,v1.registerBlockBindingsSource)(vie)}var{store:TAe,...CAe}=PI,bie={};zN(bie,{CreateTemplatePartModal:vp,patternTitleField:Xv,templateTitleField:Kv,BackButton:jP,EntitiesSavedStatesExtensible:Ab,Editor:$se,PluginPostExcerpt:Db,PostCardPanel:qg,PreferencesModal:uie,usePostActions:nE,usePostFields:$2,ToolsMoreMenuGroup:YP,ViewMoreMenuGroup:qP,ResizableEditor:vh,registerCoreBlockBindingsSources:yie,getTemplateInfo:qs,GlobalStylesUIWrapper:Tx,GlobalStylesActionMenu:ME,StyleBookPreview:QH,useGlobalStyles:xo,useStyle:Mu,interfaceStore:TAe,...CAe});var y1=i(O(),1);function PAe(e,t,r){let{registerEntityAction:o}=D((0,y1.dispatch)(_));o(e,t,r)}function kAe(e,t,r){let{unregisterEntityAction:o}=D((0,y1.dispatch)(_));o(e,t,r)}function EAe(e,t,r){let{registerEntityField:o}=D((0,y1.dispatch)(_));o(e,t,r)}function AAe(e,t,r){let{unregisterEntityField:o}=D((0,y1.dispatch)(_));o(e,t,r)}var Sie=i($(),1);return Eie(RAe);})();
/*! Bundled license information:
autosize/dist/autosize.js:
(*!
autosize 4.0.2
license: MIT
http://www.jacklmoore.com/autosize
*)
is-plain-object/dist/is-plain-object.mjs:
(*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*)
*/
No other release has this exact content. See every version of this file.