diff --git a/wp-includes/css/dist/components/style-rtl.css b/wp-includes/css/dist/components/style-rtl.css index a74efdb77e..5e1b983483 100644 --- a/wp-includes/css/dist/components/style-rtl.css +++ b/wp-includes/css/dist/components/style-rtl.css @@ -536,7 +536,8 @@ .components-color-palette__custom-color .components-color-palette__custom-color-gradient::before { content: ""; - filter: blur(6px) saturate(0.7) brightness(1.1); + -webkit-filter: blur(6px) saturate(0.7) brightness(1.1); + filter: blur(6px) saturate(0.7) brightness(1.1); display: block; width: 200%; height: 200%; @@ -2045,11 +2046,13 @@ body.is-dragging-components-draggable { outline: 1px solid transparent; outline-offset: -1px; border: 1px solid #000; - filter: invert(100%) contrast(500%); } + -webkit-filter: invert(100%) contrast(500%); + filter: invert(100%) contrast(500%); } @supports (-ms-high-contrast-adjust: auto) { .components-form-toggle .components-form-toggle__on { - filter: none; + -webkit-filter: none; + filter: none; border: 1px solid #fff; } } .components-form-token-field__input-container { @@ -2525,7 +2528,8 @@ body.is-dragging-components-draggable { body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right { transform: scaleX(-1); -ms-filter: fliph; - filter: FlipH; + -webkit-filter: FlipH; + filter: FlipH; margin-top: -10px; } .components-panel__icon { diff --git a/wp-includes/css/dist/components/style-rtl.min.css b/wp-includes/css/dist/components/style-rtl.min.css index baa8b491d7..3952f13829 100644 --- a/wp-includes/css/dist/components/style-rtl.min.css +++ b/wp-includes/css/dist/components/style-rtl.min.css @@ -1 +1 @@ -.components-autocomplete__popover .components-popover__content{min-width:200px}.components-autocomplete__popover .components-autocomplete__results{padding:3px;display:flex;flex-direction:column;align-items:stretch}.components-autocomplete__popover .components-autocomplete__results:empty{display:none}.components-autocomplete__result.components-button{margin-bottom:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;color:#555d66;display:flex;flex-direction:row;flex-grow:1;flex-shrink:0;align-items:center;padding:6px;text-align:right}.components-autocomplete__result.components-button.is-selected{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-autocomplete__result.components-button:hover{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,.2)}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:block;margin-bottom:4px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic;margin-bottom:0}.components-button-group{display:inline-block}.components-button-group .components-button.is-button{border-radius:0}.components-button-group .components-button.is-button+.components-button.is-button{margin-right:-1px}.components-button-group .components-button.is-button:first-child{border-radius:0 3px 3px 0}.components-button-group .components-button.is-button:last-child{border-radius:3px 0 0 3px}.components-button-group .components-button.is-button.is-primary,.components-button-group .components-button.is-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-button.is-primary{box-shadow:none}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:0 0}.components-button.is-button{padding:0 10px 1px;line-height:26px;height:28px;border-radius:3px;white-space:nowrap;border-width:1px;border-style:solid}.components-button.is-default{color:#555;border-color:#ccc;background:#f7f7f7;box-shadow:inset 0 -1px 0 #ccc;vertical-align:top}.components-button.is-default:hover{background:#fafafa;border-color:#999;box-shadow:inset 0 -1px 0 #999;color:#23282d;text-decoration:none}.components-button.is-default:focus:enabled{background:#fafafa;color:#23282d;border-color:#999;box-shadow:inset 0 -1px 0 #999,0 0 0 2px #bfe7f3;text-decoration:none}.components-button.is-default:active:enabled{background:#eee;border-color:#999;box-shadow:inset 0 1px 0 #999}.components-button.is-default:disabled,.components-button.is-default[aria-disabled=true]{color:#a0a5aa;border-color:#ddd;background:#f7f7f7;box-shadow:none;text-shadow:0 1px 0 #fff;transform:none}.components-button.is-primary{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #005d82,-1px 0 1px #005d82,0 1px 1px #005d82,1px 0 1px #005d82}body.admin-color-sunrise .components-button.is-primary{background:#d1864a;border-color:#a76b3b #9d6538 #9d6538;box-shadow:inset 0 -1px 0 #9d6538;text-shadow:0 -1px 1px #925e34,-1px 0 1px #925e34,0 1px 1px #925e34,1px 0 1px #925e34}body.admin-color-ocean .components-button.is-primary{background:#a3b9a2;border-color:#829482 #7a8b7a #7a8b7a;box-shadow:inset 0 -1px 0 #7a8b7a;text-shadow:0 -1px 1px #728271,-1px 0 1px #728271,0 1px 1px #728271,1px 0 1px #728271}body.admin-color-midnight .components-button.is-primary{background:#e14d43;border-color:#b43e36 #a93a32 #a93a32;box-shadow:inset 0 -1px 0 #a93a32;text-shadow:0 -1px 1px #9e362f,-1px 0 1px #9e362f,0 1px 1px #9e362f,1px 0 1px #9e362f}body.admin-color-ectoplasm .components-button.is-primary{background:#a7b656;border-color:#869245 #7d8941 #7d8941;box-shadow:inset 0 -1px 0 #7d8941;text-shadow:0 -1px 1px #757f3c,-1px 0 1px #757f3c,0 1px 1px #757f3c,1px 0 1px #757f3c}body.admin-color-coffee .components-button.is-primary{background:#c2a68c;border-color:#9b8570 #927d69 #927d69;box-shadow:inset 0 -1px 0 #927d69;text-shadow:0 -1px 1px #887462,-1px 0 1px #887462,0 1px 1px #887462,1px 0 1px #887462}body.admin-color-blue .components-button.is-primary{background:#d9ab59;border-color:#ae8947 #a38043 #a38043;box-shadow:inset 0 -1px 0 #a38043;text-shadow:0 -1px 1px #98783e,-1px 0 1px #98783e,0 1px 1px #98783e,1px 0 1px #98783e}body.admin-color-light .components-button.is-primary{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;text-shadow:0 -1px 1px #005d82,-1px 0 1px #005d82,0 1px 1px #005d82,1px 0 1px #005d82}.components-button.is-primary:focus:enabled,.components-button.is-primary:hover{background:#007eb1;border-color:#00435d;color:#fff}body.admin-color-sunrise .components-button.is-primary:focus:enabled,body.admin-color-sunrise .components-button.is-primary:hover{background:#c77f46;border-color:#694325}body.admin-color-ocean .components-button.is-primary:focus:enabled,body.admin-color-ocean .components-button.is-primary:hover{background:#9bb09a;border-color:#525d51}body.admin-color-midnight .components-button.is-primary:focus:enabled,body.admin-color-midnight .components-button.is-primary:hover{background:#d64940;border-color:#712722}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary:hover{background:#9fad52;border-color:#545b2b}body.admin-color-coffee .components-button.is-primary:focus:enabled,body.admin-color-coffee .components-button.is-primary:hover{background:#b89e85;border-color:#615346}body.admin-color-blue .components-button.is-primary:focus:enabled,body.admin-color-blue .components-button.is-primary:hover{background:#cea255;border-color:#6d562d}body.admin-color-light .components-button.is-primary:focus:enabled,body.admin-color-light .components-button.is-primary:hover{background:#007eb1;border-color:#00435d}.components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #00435d}body.admin-color-sunrise .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #694325}body.admin-color-ocean .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #525d51}body.admin-color-midnight .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #712722}body.admin-color-ectoplasm .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #545b2b}body.admin-color-coffee .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #615346}body.admin-color-blue .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #6d562d}body.admin-color-light .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #00435d}.components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}body.admin-color-sunrise .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #694325,0 0 0 2px #bfe7f3}body.admin-color-ocean .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #525d51,0 0 0 2px #bfe7f3}body.admin-color-midnight .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #712722,0 0 0 2px #bfe7f3}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #545b2b,0 0 0 2px #bfe7f3}body.admin-color-coffee .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #615346,0 0 0 2px #bfe7f3}body.admin-color-blue .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #6d562d,0 0 0 2px #bfe7f3}body.admin-color-light .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}.components-button.is-primary:active:enabled{background:#006a95;border-color:#00435d;box-shadow:inset 0 1px 0 #00435d;vertical-align:top}body.admin-color-sunrise .components-button.is-primary:active:enabled{background:#a76b3b;border-color:#694325;box-shadow:inset 0 1px 0 #694325}body.admin-color-ocean .components-button.is-primary:active:enabled{background:#829482;border-color:#525d51;box-shadow:inset 0 1px 0 #525d51}body.admin-color-midnight .components-button.is-primary:active:enabled{background:#b43e36;border-color:#712722;box-shadow:inset 0 1px 0 #712722}body.admin-color-ectoplasm .components-button.is-primary:active:enabled{background:#869245;border-color:#545b2b;box-shadow:inset 0 1px 0 #545b2b}body.admin-color-coffee .components-button.is-primary:active:enabled{background:#9b8570;border-color:#615346;box-shadow:inset 0 1px 0 #615346}body.admin-color-blue .components-button.is-primary:active:enabled{background:#ae8947;border-color:#6d562d;box-shadow:inset 0 1px 0 #6d562d}body.admin-color-light .components-button.is-primary:active:enabled{background:#006a95;border-color:#00435d;box-shadow:inset 0 1px 0 #00435d}.components-button.is-primary:disabled,.components-button.is-primary[aria-disabled=true]{color:#4daacf;background:#005d82;border-color:#006a95;box-shadow:none;text-shadow:0 -1px 0 rgba(0,0,0,.1)}body.admin-color-sunrise .components-button.is-primary:disabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]{color:#dfaa80;background:#925e34;border-color:#a76b3b}body.admin-color-ocean .components-button.is-primary:disabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true]{color:#bfcebe;background:#728271;border-color:#829482}body.admin-color-midnight .components-button.is-primary:disabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true]{color:#ea827b;background:#9e362f;border-color:#b43e36}body.admin-color-ectoplasm .components-button.is-primary:disabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]{color:#c1cc89;background:#757f3c;border-color:#869245}body.admin-color-coffee .components-button.is-primary:disabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true]{color:#d4c1af;background:#887462;border-color:#9b8570}body.admin-color-blue .components-button.is-primary:disabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true]{color:#e4c48b;background:#98783e;border-color:#ae8947}body.admin-color-light .components-button.is-primary:disabled,body.admin-color-light .components-button.is-primary[aria-disabled=true]{color:#4daacf;background:#005d82;border-color:#006a95}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(45deg,#0085ba 28%,#005d82 28%,#005d82 72%,#0085ba 72%);border-color:#00435d}body.admin-color-sunrise .components-button.is-primary.is-busy,body.admin-color-sunrise .components-button.is-primary.is-busy:disabled,body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#d1864a 28%,#925e34 28%,#925e34 72%,#d1864a 72%);border-color:#694325}body.admin-color-ocean .components-button.is-primary.is-busy,body.admin-color-ocean .components-button.is-primary.is-busy:disabled,body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#a3b9a2 28%,#728271 28%,#728271 72%,#a3b9a2 72%);border-color:#525d51}body.admin-color-midnight .components-button.is-primary.is-busy,body.admin-color-midnight .components-button.is-primary.is-busy:disabled,body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#e14d43 28%,#9e362f 28%,#9e362f 72%,#e14d43 72%);border-color:#712722}body.admin-color-ectoplasm .components-button.is-primary.is-busy,body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled,body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#a7b656 28%,#757f3c 28%,#757f3c 72%,#a7b656 72%);border-color:#545b2b}body.admin-color-coffee .components-button.is-primary.is-busy,body.admin-color-coffee .components-button.is-primary.is-busy:disabled,body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#c2a68c 28%,#887462 28%,#887462 72%,#c2a68c 72%);border-color:#615346}body.admin-color-blue .components-button.is-primary.is-busy,body.admin-color-blue .components-button.is-primary.is-busy:disabled,body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#82b4cb 28%,#5b7e8e 28%,#5b7e8e 72%,#82b4cb 72%);border-color:#415a66}body.admin-color-light .components-button.is-primary.is-busy,body.admin-color-light .components-button.is-primary.is-busy:disabled,body.admin-color-light .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#0085ba 28%,#005d82 28%,#005d82 72%,#0085ba 72%);border-color:#00435d}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:0 0;outline:0;text-align:right;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:50ms;transition-timing-function:ease-in-out}.components-button.is-link:active,.components-button.is-link:hover{color:#00a0d2}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#d94f4f}.components-button:active{color:currentColor}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button:focus:enabled{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-button.is-busy{animation:components-button__busy-animation 2.5s infinite linear;background-size:100px 100%;background-image:repeating-linear-gradient(45deg,#e2e4e7,#fff 11px,#fff 10px,#e2e4e7 20px);opacity:1}.components-button.is-large{height:30px;line-height:28px;padding:0 12px 2px}.components-button.is-small{height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.components-button.is-tertiary{color:#007cba;padding:0 10px;line-height:26px;height:28px}body.admin-color-sunrise .components-button.is-tertiary{color:#837425}body.admin-color-ocean .components-button.is-tertiary{color:#5e7d5e}body.admin-color-midnight .components-button.is-tertiary{color:#497b8d}body.admin-color-ectoplasm .components-button.is-tertiary{color:#523f6d}body.admin-color-coffee .components-button.is-tertiary{color:#59524c}body.admin-color-blue .components-button.is-tertiary{color:#417e9b}body.admin-color-light .components-button.is-tertiary{color:#007cba}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-tertiary svg{fill:currentColor;outline:0}.components-button.is-tertiary:active:focus:enabled{box-shadow:none}.components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#005d8c}body.admin-color-sunrise .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#62571c}body.admin-color-ocean .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#475e47}body.admin-color-midnight .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#375c6a}body.admin-color-ectoplasm .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#3e2f52}body.admin-color-coffee .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#433e39}body.admin-color-blue .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#315f74}body.admin-color-light .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#005d8c}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{margin-top:0}.component-color-indicator{width:25px;height:16px;margin-right:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-right:.5rem}.components-color-palette{margin-left:-14px}.components-color-palette .components-color-palette__clear{float:left;margin-left:20px}.components-color-palette__item-wrapper{display:inline-block;height:28px;width:28px;margin-left:14px;margin-bottom:14px;vertical-align:top;transform:scale(1);transition:.1s transform ease}.components-color-palette__item-wrapper:hover{transform:scale(1.2)}.components-color-palette__item-wrapper>div{height:100%;width:100%}.components-color-palette__item{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:0 0;box-shadow:inset 0 0 0 14px;transition:.1s box-shadow ease;cursor:pointer}.components-color-palette__item.is-active{box-shadow:inset 0 0 0 4px}.components-color-palette__item::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}.components-color-palette__item:focus{outline:0}.components-color-palette__item:focus::after{content:"";border:1px solid #606a73;width:32px;height:32px;position:absolute;top:-2px;right:-2px;border-radius:50%}.components-color-palette__clear-color .components-color-palette__item{color:#fff;background:#fff}.components-color-palette__clear-color-line{display:block;position:absolute;border:2px solid #d94f4f;border-radius:50%;top:0;right:0;bottom:0;left:0}.components-color-palette__clear-color-line::before{position:absolute;top:0;right:0;content:"";width:100%;height:100%;border-bottom:2px solid #d94f4f;transform:rotate(-45deg) translateY(-13px) translateX(1px)}.components-color-palette__custom-color .components-color-palette__item{position:relative;box-shadow:none}.components-color-palette__custom-color .components-color-palette__custom-color-gradient{display:block;width:100%;height:100%;position:absolute;top:0;right:0;border-radius:50%;overflow:hidden}.components-color-palette__custom-color .components-color-palette__custom-color-gradient::before{content:"";filter:blur(6px) saturate(.7) brightness(1.1);display:block;width:200%;height:200%;position:absolute;top:-50%;right:-50%;padding-top:100%;transform:scale(1);background-image:linear-gradient(-330deg,transparent 50%,#ff8100 50%),linear-gradient(-300deg,transparent 50%,#ff5800 50%),linear-gradient(-270deg,transparent 50%,#c92323 50%),linear-gradient(-240deg,transparent 50%,#cc42a2 50%),linear-gradient(-210deg,transparent 50%,#9f49ac 50%),linear-gradient(-180deg,transparent 50%,#306cd3 50%),linear-gradient(-150deg,transparent 50%,#179067 50%),linear-gradient(-120deg,transparent 50%,#0eb5d6 50%),linear-gradient(-90deg,transparent 50%,#50b517 50%),linear-gradient(-60deg,transparent 50%,#ede604 50%),linear-gradient(-30deg,transparent 50%,#fc0 50%),linear-gradient(0deg,transparent 50%,#feac00 50%);background-clip:content-box,content-box,content-box,content-box,content-box,content-box,padding-box,padding-box,padding-box,padding-box,padding-box,padding-box}.block-editor__container .components-popover.components-color-palette__picker.is-bottom{z-index:100001}.components-color-picker{width:100%;overflow:hidden}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-left:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(-45deg,#ddd 25%,transparent 25%),linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(-45deg,transparent 75%,#ddd 75%),linear-gradient(45deg,transparent 75%,#ddd 75%);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{position:absolute;top:0;right:0;left:0;bottom:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__saturation-color{overflow:hidden}.components-color-picker__saturation-white{background:linear-gradient(to left,#fff,rgba(255,255,255,0))}.components-color-picker__saturation-black{background:linear-gradient(to top,#000,rgba(0,0,0,0))}.components-color-picker__saturation-pointer{width:8px;height:8px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;background-color:transparent;transform:translate(4px,-4px)}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(-45deg,#ddd 25%,transparent 25%),linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(-45deg,transparent 75%,#ddd 75%),linear-gradient(45deg,transparent 75%,#ddd 75%);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(to left,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{right:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #00a0d2,0 0 5px 0 #00a0d2,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#00a0d2;box-shadow:0 0 0 2px #00a0d2,0 0 3px 0 #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end}.components-color-picker__inputs-wrapper fieldset{flex:1}.components-color-picker__inputs-fields{display:flex}.components-color-picker__inputs-fields .components-base-control__field{margin:0 4px}svg.dashicon{fill:currentColor;outline:0}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:initial}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{background:#fff;position:relative;text-align:left}.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:initial}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-top:0;border-right:0;border-bottom:2px solid transparent;border-left:0;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-top:0;border-right:0;border-bottom:2px solid #008489;border-left:0}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime .components-datetime__calendar-help{padding:8px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__date-help-button{display:block;margin-right:auto;margin-left:8px;margin-top:.5em}.components-datetime__date{min-height:236px;border-top:1px solid #e2e4e7;margin-right:-8px;margin-left:-8px}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarDay{font-size:13px;border:1px solid transparent;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay__selected{background:#0085ba}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected{background:#d1864a}body.admin-color-ocean .components-datetime__date .CalendarDay__selected{background:#a3b9a2}body.admin-color-midnight .components-datetime__date .CalendarDay__selected{background:#e14d43}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected{background:#a7b656}body.admin-color-coffee .components-datetime__date .CalendarDay__selected{background:#c2a68c}body.admin-color-blue .components-datetime__date .CalendarDay__selected{background:#82b4cb}body.admin-color-light .components-datetime__date .CalendarDay__selected{background:#0085ba}.components-datetime__date .CalendarDay__selected:hover{background:#00719e}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected:hover{background:#b2723f}body.admin-color-ocean .components-datetime__date .CalendarDay__selected:hover{background:#8b9d8a}body.admin-color-midnight .components-datetime__date .CalendarDay__selected:hover{background:#bf4139}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected:hover{background:#8e9b49}body.admin-color-coffee .components-datetime__date .CalendarDay__selected:hover{background:#a58d77}body.admin-color-blue .components-datetime__date .CalendarDay__selected:hover{background:#6f99ad}body.admin-color-light .components-datetime__date .CalendarDay__selected:hover{background:#00719e}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date.is-description-visible .DayPicker,.components-datetime__date.is-description-visible .components-datetime__date-help-button{visibility:hidden}.components-datetime__time{margin-bottom:1em}.components-datetime__time fieldset{margin-top:.5em;position:relative}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 0 0 3px;color:#555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button{margin-right:8px;margin-left:-1px;border-radius:0 3px 3px 0}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button{margin-right:-1px;border-radius:3px 0 0 3px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-toggled,.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-toggled{background:#edeff0;border-color:#8f98a1;box-shadow:inset 0 2px 5px -3px #555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field{align-self:center;flex:0 1 auto;order:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field.am-pm button{font-size:11px;font-weight:600}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{padding:2px;margin-left:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-left:4px;width:40px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:0 0 0 -4px!important;border-radius:0 4px 4px 0!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:4px 0 0 4px!important}.components-datetime__time.is-24-hour .components-datetime__time-field-day{order:0!important}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;right:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{width:90px}.components-popover .components-datetime__date{padding-right:6px}.components-popover.edit-post-post-schedule__dialog.is-bottom.is-left{z-index:100000}.components-disabled{position:relative;pointer-events:none}.components-disabled::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:-webkit-grabbing!important;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;right:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:20px;background:0 0;pointer-events:none;z-index:1000000000;opacity:.8}.components-drop-zone{position:absolute;top:0;left:0;bottom:0;right:0;z-index:100;visibility:hidden;opacity:0;transition:.3s opacity,.3s background-color,0s visibility .3s;border:2px solid #0071a1;border-radius:2px}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:.3s opacity,.3s background-color}.components-drop-zone.is-dragging-over-element{background-color:rgba(0,113,161,.8)}.components-drop-zone__content{position:absolute;top:50%;right:0;left:0;z-index:110;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown-menu{padding:3px;display:flex}.components-dropdown-menu .components-dropdown-menu__toggle{width:auto;margin:0;padding:4px;border:1px solid transparent;display:flex;flex-direction:row}.components-dropdown-menu .components-dropdown-menu__toggle.is-active,.components-dropdown-menu .components-dropdown-menu__toggle.is-active:hover{box-shadow:none;background-color:#555d66;color:#fff}.components-dropdown-menu .components-dropdown-menu__toggle:focus::before{top:-3px;left:-3px;bottom:-3px;right:-3px}.components-dropdown-menu .components-dropdown-menu__toggle:focus,.components-dropdown-menu .components-dropdown-menu__toggle:hover,.components-dropdown-menu .components-dropdown-menu__toggle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-dropdown-menu .components-dropdown-menu__toggle .components-dropdown-menu__indicator::after{content:"";pointer-events:none;display:block;width:0;height:0;border-right:3px solid transparent;border-left:3px solid transparent;border-top:5px solid currentColor;margin-right:4px;margin-left:2px}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;padding:9px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item{width:100%;padding:6px;outline:0;cursor:pointer;margin-bottom:4px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator::before{display:block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:-3px;right:0;left:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:focus:not(:disabled):not([aria-disabled=true]):not(.is-default){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg{border-radius:4px;padding:2px;width:24px;height:24px;margin:-1px 0 -1px 8px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled=true]):not(.is-default).is-active>svg{outline:0;color:#fff;box-shadow:none;background:#555d66}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle}.components-font-size-picker__buttons{display:flex;justify-content:space-between;align-items:center}.components-font-size-picker__buttons .components-range-control__number{height:24px;line-height:22px}.components-font-size-picker__buttons .components-range-control__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker__dropdown-content .components-button{display:block;position:relative;padding:10px 40px 10px 20px;width:100%;text-align:right}.components-font-size-picker__dropdown-content .components-button .dashicon{position:absolute;top:calc(50% - 10px);right:10px}.components-font-size-picker__buttons .components-font-size-picker__selector{border:1px solid;background:0 0;position:relative;width:110px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-font-size-picker__buttons .components-font-size-picker__selector:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-font-size-picker__buttons .components-font-size-picker__selector::after{content:"";pointer-events:none;display:block;width:0;height:0;border-right:3px solid transparent;border-left:3px solid transparent;border-top:5px solid currentColor;margin-right:4px;margin-left:2px;left:8px;top:12px;position:absolute}.components-form-file-upload .components-button.is-large{padding-right:6px}.components-form-toggle{position:relative}.components-form-toggle .components-form-toggle__off,.components-form-toggle .components-form-toggle__on{position:absolute;top:6px}.components-form-toggle .components-form-toggle__off{color:#6c7781;fill:currentColor;left:6px}.components-form-toggle .components-form-toggle__on{right:8px}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;vertical-align:top;background-color:#fff;border:2px solid #6c7781;width:36px;height:18px;border-radius:9px;transition:.2s background ease}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;top:4px;right:4px;width:10px;height:10px;border-radius:50%;transition:.1s transform ease;background-color:#6c7781;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__track{border:2px solid #555d66}.components-form-toggle:hover .components-form-toggle__thumb{background-color:#555d66;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__off{color:#555d66}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:2px solid #11a0d2;border:9px solid transparent}body.admin-color-sunrise .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked .components-form-toggle__track{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked .components-form-toggle__track{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:2px solid #11a0d2}.components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3px #6c7781;outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(-18px)}.components-form-toggle.is-checked::before{background-color:#11a0d2;border:2px solid #11a0d2}body.admin-color-sunrise .components-form-toggle.is-checked::before{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked::before{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked::before{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked::before{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked::before{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked::before{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked::before{background-color:#11a0d2;border:2px solid #11a0d2}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;right:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:0 0}.components-form-toggle input.components-form-toggle__input[type=checkbox]::before{content:""}.components-form-toggle .components-form-toggle__on{outline:1px solid transparent;outline-offset:-1px;border:1px solid #000;filter:invert(100%) contrast(500%)}@supports (-ms-high-contrast-adjust:auto){.components-form-toggle .components-form-toggle__on{filter:none;border:1px solid #fff}}.components-form-token-field__input-container{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0;padding:4px;background-color:#fff;border:1px solid #ccd0d4;color:#32373c;cursor:text;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-form-token-field__input-container.is-disabled{background:#e2e4e7;border-color:#ccd0d4}.components-form-token-field__input-container.is-active{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin:2px 8px 2px 0;padding:0;min-height:24px;background:inherit;border:0;font-size:13px;color:#23282d;box-shadow:none}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:0;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 0 2px 4px;color:#32373c;overflow:hidden}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#d94f4f}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#555d66}.components-form-token-field__token.is-borderless{position:relative;padding:0 0 0 16px}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:0 0;color:#11a0d2}body.admin-color-sunrise .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c8b03c}body.admin-color-ocean .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#a89d8a}body.admin-color-midnight .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#77a6b9}body.admin-color-ectoplasm .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c77430}body.admin-color-coffee .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#9fa47b}body.admin-color-blue .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#d9ab59}body.admin-color-light .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c75726}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:0 0;color:#555d66;position:absolute;top:1px;left:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#d94f4f;border-radius:0 4px 4px 0;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#23282d}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-icon-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;background:#e2e4e7;transition:all .2s cubic-bezier(.4, 1, .4, 1)}.components-form-token-field__token-text{border-radius:0 12px 12px 0;padding:0 8px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-icon-button{cursor:pointer;border-radius:12px 0 0 12px;padding:0 2px;color:#555d66;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-icon-button:hover{color:#32373c}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:scroll;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #6c7781;margin:4px -4px -4px;padding-top:3px}.components-form-token-field__suggestion{color:#555d66;display:block;font-size:13px;padding:4px 8px;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#0071a1;color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}.components-navigate-regions.is-focusing-regions [role=region]:focus::after{content:"";position:absolute;top:0;bottom:0;right:0;left:0;pointer-events:none;outline:4px solid transparent;animation:editor-animation__region-focus .2s ease-out;animation-fill-mode:forwards}@keyframes editor-animation__region-focus{from{box-shadow:inset 0 0 0 0 #33b3db}to{box-shadow:inset 0 0 0 4px #33b3db}}.components-icon-button{display:flex;align-items:center;padding:8px;margin:0;border:none;background:0 0;color:#555d66;position:relative;overflow:hidden;border-radius:4px}.components-icon-button .dashicon{display:inline-block;flex:0 0 auto}.components-icon-button svg{fill:currentColor;outline:0}.components-icon-button svg:not:only-child{margin-left:4px}.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,.2)}.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):active{outline:0;background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #ccd0d4,inset 0 0 0 2px #fff}.components-icon-button:disabled:focus,.components-icon-button[aria-disabled=true]:focus{box-shadow:none}.components-menu-group{width:100%;padding:7px}.components-menu-group__label{margin-bottom:8px;color:#6c7781}.components-menu-item__button,.components-menu-item__button.components-icon-button{width:100%;padding:8px;text-align:right;color:#40464d}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button .dashicon,.components-menu-item__button.components-icon-button .components-menu-items__item-icon,.components-menu-item__button.components-icon-button .dashicon,.components-menu-item__button.components-icon-button>span>svg,.components-menu-item__button>span>svg{margin-left:4px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-icon-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]){color:#555d66}@media (min-width:782px){.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none}}.components-menu-item__button.components-icon-button:focus:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;opacity:.82}.components-menu-item__shortcut{align-self:center;opacity:.5;margin-left:0;margin-right:auto;padding-right:8px;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-modal__screen-overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(255,255,255,.4);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}.components-modal__frame{position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;margin:0;border:1px solid #e2e4e7;background:#fff;box-shadow:0 3px 30px rgba(25,30,35,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;left:auto;bottom:auto;right:50%;min-width:360px;max-width:calc(100% - 16px - 16px);max-height:calc(100% - 56px - 56px);transform:translate(50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@keyframes components-modal__appear-animation{from{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #e2e4e7;padding:0 16px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:56px;position:-webkit-sticky;position:sticky;top:0;z-index:10;margin:0 -16px 16px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1em;font-weight:400}.components-modal__header h1{line-height:1;margin:0}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 16px 16px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:56px}}.components-notice{background-color:#e5f5fa;border-right:4px solid #00a0d2;margin:5px 15px 2px;padding:8px 12px}.components-notice.is-dismissible{padding-left:36px;position:relative}.components-notice.is-success{border-right-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-right-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-right-color:#d94f4f;background-color:#f9e2e2}.components-notice__content{margin:1em 0}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-right:4px}.components-notice__dismiss{position:absolute;top:0;left:0;color:#6c7781}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#d94f4f;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none}.components-notice-list{min-width:300px;z-index:9989}.components-panel{background:#fff;border:1px solid #e2e4e7}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__body>.components-icon-button{color:#191e23}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:50px;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:.1s background ease-in-out}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px;margin-bottom:5px}.components-panel__body>.components-panel__body-title:hover,.edit-post-last-revision__panel>.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background:#f8f9f9}.components-panel__body-toggle.components-button{position:relative;padding:15px;outline:0;width:100%;font-weight:600;text-align:right;color:#191e23;border:none;box-shadow:none;transition:.1s background ease-in-out}.components-panel__body-toggle.components-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#191e23;fill:currentColor;transition:.1s color ease-in-out}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#555d66;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.components-panel__row select{min-width:0}.components-panel__row label{margin-left:10px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;width:100%;text-align:center;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;background:rgba(139,139,150,.1)}.is-dark-theme .components-placeholder{background:rgba(255,255,255,.15)}.components-placeholder__label{display:flex;justify-content:center;font-weight:600;margin-bottom:1em}.components-placeholder__label .dashicon,.components-placeholder__label .editor-block-icon{margin-left:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;justify-content:center;width:100%;max-width:400px;flex-wrap:wrap;z-index:1}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px}.components-placeholder__input{margin-left:8px;flex:1 1 auto}.components-placeholder__instructions{margin-bottom:1em}.components-popover{position:fixed;z-index:1000000;left:50%}.components-popover.is-mobile{top:0;left:0;right:0;bottom:0}.components-popover:not(.is-without-arrow):not(.is-mobile){margin-left:2px}.components-popover:not(.is-without-arrow):not(.is-mobile)::before{border:8px solid #e2e4e7}.components-popover:not(.is-without-arrow):not(.is-mobile)::after{border:8px solid #fff}.components-popover:not(.is-without-arrow):not(.is-mobile)::after,.components-popover:not(.is-without-arrow):not(.is-mobile)::before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top{margin-top:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::before{bottom:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::after{bottom:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom{margin-top:8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::before{top:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::after{top:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left{margin-left:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::before{right:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::after{right:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right{margin-left:8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::before{left:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::after{left:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover:not(.is-mobile).is-top{bottom:100%}.components-popover:not(.is-mobile).is-bottom{top:100%;z-index:99990}.components-popover:not(.is-mobile).is-middle{align-items:center;display:flex}.components-popover__content{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff;height:100%}.components-popover.is-mobile .components-popover__content{height:calc(100% - 50px);border-top:0}.components-popover:not(.is-mobile) .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover:not(.is-mobile).is-top .components-popover__content{bottom:100%}.components-popover:not(.is-mobile).is-center .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover:not(.is-mobile).is-right .components-popover__content{position:absolute;left:100%}.components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content{margin-left:-24px}.components-popover:not(.is-mobile).is-left .components-popover__content{position:absolute;right:100%}.components-popover:not(.is-mobile):not(.is-middle).is-left .components-popover__content{margin-right:-24px}.components-popover__content>div{height:100%}.components-popover__header{align-items:center;background:#fff;border:1px solid #e2e4e7;display:flex;height:50px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-icon-button{z-index:5}.components-radio-control{display:flex;flex-direction:column}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{margin-top:0;margin-left:6px}.components-range-control .components-base-control__field{display:flex;justify-content:center;flex-wrap:wrap;align-items:center}.components-range-control .dashicon{flex-shrink:0;margin-left:10px}.components-range-control .components-base-control__label{width:100%}.components-range-control .components-range-control__slider{margin-right:0;flex:1}.components-range-control__slider{width:100%;margin-right:8px;padding:0;-webkit-appearance:none;background:0 0}.components-range-control__slider::-webkit-slider-thumb{-webkit-appearance:none;height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:-7px}.components-range-control__slider::-moz-range-thumb{height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box}.components-range-control__slider::-ms-thumb{height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:0;height:14px;width:14px;border:2px solid transparent}.components-range-control__slider:focus{outline:0}.components-range-control__slider:focus::-webkit-slider-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider:focus::-moz-range-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider:focus::-ms-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider::-webkit-slider-runnable-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px;margin-top:-4px}.components-range-control__slider::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.components-range-control__slider::-ms-track{margin-top:-4px;background:0 0;border-color:transparent;color:transparent;height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.components-range-control__number{display:inline-block;margin-right:8px;font-weight:500;width:50px;padding:3px 5px!important}.components-resizable-box__handle{display:none;width:24px;height:24px;padding:4px}.components-resizable-box__container.is-selected .components-resizable-box__handle{display:block}.components-resizable-box__handle::before{display:block;content:"";width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:#0085ba;cursor:inherit}body.admin-color-sunrise .components-resizable-box__handle::before{background:#d1864a}body.admin-color-ocean .components-resizable-box__handle::before{background:#a3b9a2}body.admin-color-midnight .components-resizable-box__handle::before{background:#e14d43}body.admin-color-ectoplasm .components-resizable-box__handle::before{background:#a7b656}body.admin-color-coffee .components-resizable-box__handle::before{background:#c2a68c}body.admin-color-blue .components-resizable-box__handle::before{background:#82b4cb}body.admin-color-light .components-resizable-box__handle::before{background:#0085ba}.components-resizable-box__handle-right{top:calc(50% - 12px);right:calc(12px * -1)}.components-resizable-box__handle-bottom{bottom:calc(12px * -1);left:calc(50% - 12px)}.components-resizable-box__handle-left{top:calc(50% - 12px);left:calc(12px * -1)}.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper__content{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%}.components-sandbox{overflow:hidden}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-spinner{display:inline-block;background-color:#7e8993;width:18px;height:18px;opacity:.7;float:left;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner::before{content:"";position:absolute;background-color:#fff;top:3px;right:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s infinite linear}@keyframes components-spinner__animation{from{transform:rotate(0)}to{transform:rotate(-360deg)}}.components-text-control__input{width:100%;padding:6px 8px}.components-textarea-control__input{width:100%;padding:6px 8px}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px}.components-toggle-control .components-base-control__field .components-form-toggle{margin-left:16px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block;margin-bottom:4px}.components-toolbar{margin:0;border:1px solid #e2e4e7;background-color:#fff;display:flex;flex-shrink:0}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div{margin-right:-3px}div.components-toolbar>div+div.has-left-divider{margin-right:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider::before{display:inline-block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:8px;right:-3px;width:1px;height:20px}.components-toolbar__control.components-button{display:inline-flex;align-items:flex-end;margin:0;padding:3px;outline:0;cursor:pointer;position:relative;width:36px;height:36px}.components-toolbar__control.components-button:active,.components-toolbar__control.components-button:not([aria-disabled=true]):focus,.components-toolbar__control.components-button:not([aria-disabled=true]):hover{outline:0;box-shadow:none;background:0 0;border:none}.components-toolbar__control.components-button:disabled{cursor:default}.components-toolbar__control.components-button>svg{padding:5px;border-radius:4px;height:30px;width:30px}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]::after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;left:8px;bottom:10px}.components-toolbar__control.components-button:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.components-toolbar__control.components-button:not(:disabled).is-active>svg,.components-toolbar__control.components-button:not(:disabled):hover>svg{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-toolbar__control.components-button:not(:disabled).is-active>svg{outline:0;color:#fff;box-shadow:none;background:#555d66}.components-toolbar__control.components-button:not(:disabled).is-active[data-subscript]::after{color:#fff}.components-toolbar__control.components-button:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-toolbar__control .dashicon{display:block}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover::before{border-color:transparent}.components-tooltip.components-popover.is-top::after{border-top-color:#191e23}.components-tooltip.components-popover.is-bottom::after{border-bottom-color:#191e23}.components-tooltip .components-popover__content{padding:4px 12px;background:#191e23;border-width:0;color:#fff;white-space:nowrap}.components-tooltip:not(.is-mobile) .components-popover__content{min-width:0}.components-tooltip__shortcut{display:block;text-align:center;color:#7e8993} \ No newline at end of file +.components-autocomplete__popover .components-popover__content{min-width:200px}.components-autocomplete__popover .components-autocomplete__results{padding:3px;display:flex;flex-direction:column;align-items:stretch}.components-autocomplete__popover .components-autocomplete__results:empty{display:none}.components-autocomplete__result.components-button{margin-bottom:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;color:#555d66;display:flex;flex-direction:row;flex-grow:1;flex-shrink:0;align-items:center;padding:6px;text-align:right}.components-autocomplete__result.components-button.is-selected{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-autocomplete__result.components-button:hover{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,.2)}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:block;margin-bottom:4px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic;margin-bottom:0}.components-button-group{display:inline-block}.components-button-group .components-button.is-button{border-radius:0}.components-button-group .components-button.is-button+.components-button.is-button{margin-right:-1px}.components-button-group .components-button.is-button:first-child{border-radius:0 3px 3px 0}.components-button-group .components-button.is-button:last-child{border-radius:3px 0 0 3px}.components-button-group .components-button.is-button.is-primary,.components-button-group .components-button.is-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-button.is-primary{box-shadow:none}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:0 0}.components-button.is-button{padding:0 10px 1px;line-height:26px;height:28px;border-radius:3px;white-space:nowrap;border-width:1px;border-style:solid}.components-button.is-default{color:#555;border-color:#ccc;background:#f7f7f7;box-shadow:inset 0 -1px 0 #ccc;vertical-align:top}.components-button.is-default:hover{background:#fafafa;border-color:#999;box-shadow:inset 0 -1px 0 #999;color:#23282d;text-decoration:none}.components-button.is-default:focus:enabled{background:#fafafa;color:#23282d;border-color:#999;box-shadow:inset 0 -1px 0 #999,0 0 0 2px #bfe7f3;text-decoration:none}.components-button.is-default:active:enabled{background:#eee;border-color:#999;box-shadow:inset 0 1px 0 #999}.components-button.is-default:disabled,.components-button.is-default[aria-disabled=true]{color:#a0a5aa;border-color:#ddd;background:#f7f7f7;box-shadow:none;text-shadow:0 1px 0 #fff;transform:none}.components-button.is-primary{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #005d82,-1px 0 1px #005d82,0 1px 1px #005d82,1px 0 1px #005d82}body.admin-color-sunrise .components-button.is-primary{background:#d1864a;border-color:#a76b3b #9d6538 #9d6538;box-shadow:inset 0 -1px 0 #9d6538;text-shadow:0 -1px 1px #925e34,-1px 0 1px #925e34,0 1px 1px #925e34,1px 0 1px #925e34}body.admin-color-ocean .components-button.is-primary{background:#a3b9a2;border-color:#829482 #7a8b7a #7a8b7a;box-shadow:inset 0 -1px 0 #7a8b7a;text-shadow:0 -1px 1px #728271,-1px 0 1px #728271,0 1px 1px #728271,1px 0 1px #728271}body.admin-color-midnight .components-button.is-primary{background:#e14d43;border-color:#b43e36 #a93a32 #a93a32;box-shadow:inset 0 -1px 0 #a93a32;text-shadow:0 -1px 1px #9e362f,-1px 0 1px #9e362f,0 1px 1px #9e362f,1px 0 1px #9e362f}body.admin-color-ectoplasm .components-button.is-primary{background:#a7b656;border-color:#869245 #7d8941 #7d8941;box-shadow:inset 0 -1px 0 #7d8941;text-shadow:0 -1px 1px #757f3c,-1px 0 1px #757f3c,0 1px 1px #757f3c,1px 0 1px #757f3c}body.admin-color-coffee .components-button.is-primary{background:#c2a68c;border-color:#9b8570 #927d69 #927d69;box-shadow:inset 0 -1px 0 #927d69;text-shadow:0 -1px 1px #887462,-1px 0 1px #887462,0 1px 1px #887462,1px 0 1px #887462}body.admin-color-blue .components-button.is-primary{background:#d9ab59;border-color:#ae8947 #a38043 #a38043;box-shadow:inset 0 -1px 0 #a38043;text-shadow:0 -1px 1px #98783e,-1px 0 1px #98783e,0 1px 1px #98783e,1px 0 1px #98783e}body.admin-color-light .components-button.is-primary{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;text-shadow:0 -1px 1px #005d82,-1px 0 1px #005d82,0 1px 1px #005d82,1px 0 1px #005d82}.components-button.is-primary:focus:enabled,.components-button.is-primary:hover{background:#007eb1;border-color:#00435d;color:#fff}body.admin-color-sunrise .components-button.is-primary:focus:enabled,body.admin-color-sunrise .components-button.is-primary:hover{background:#c77f46;border-color:#694325}body.admin-color-ocean .components-button.is-primary:focus:enabled,body.admin-color-ocean .components-button.is-primary:hover{background:#9bb09a;border-color:#525d51}body.admin-color-midnight .components-button.is-primary:focus:enabled,body.admin-color-midnight .components-button.is-primary:hover{background:#d64940;border-color:#712722}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary:hover{background:#9fad52;border-color:#545b2b}body.admin-color-coffee .components-button.is-primary:focus:enabled,body.admin-color-coffee .components-button.is-primary:hover{background:#b89e85;border-color:#615346}body.admin-color-blue .components-button.is-primary:focus:enabled,body.admin-color-blue .components-button.is-primary:hover{background:#cea255;border-color:#6d562d}body.admin-color-light .components-button.is-primary:focus:enabled,body.admin-color-light .components-button.is-primary:hover{background:#007eb1;border-color:#00435d}.components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #00435d}body.admin-color-sunrise .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #694325}body.admin-color-ocean .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #525d51}body.admin-color-midnight .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #712722}body.admin-color-ectoplasm .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #545b2b}body.admin-color-coffee .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #615346}body.admin-color-blue .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #6d562d}body.admin-color-light .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #00435d}.components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}body.admin-color-sunrise .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #694325,0 0 0 2px #bfe7f3}body.admin-color-ocean .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #525d51,0 0 0 2px #bfe7f3}body.admin-color-midnight .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #712722,0 0 0 2px #bfe7f3}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #545b2b,0 0 0 2px #bfe7f3}body.admin-color-coffee .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #615346,0 0 0 2px #bfe7f3}body.admin-color-blue .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #6d562d,0 0 0 2px #bfe7f3}body.admin-color-light .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}.components-button.is-primary:active:enabled{background:#006a95;border-color:#00435d;box-shadow:inset 0 1px 0 #00435d;vertical-align:top}body.admin-color-sunrise .components-button.is-primary:active:enabled{background:#a76b3b;border-color:#694325;box-shadow:inset 0 1px 0 #694325}body.admin-color-ocean .components-button.is-primary:active:enabled{background:#829482;border-color:#525d51;box-shadow:inset 0 1px 0 #525d51}body.admin-color-midnight .components-button.is-primary:active:enabled{background:#b43e36;border-color:#712722;box-shadow:inset 0 1px 0 #712722}body.admin-color-ectoplasm .components-button.is-primary:active:enabled{background:#869245;border-color:#545b2b;box-shadow:inset 0 1px 0 #545b2b}body.admin-color-coffee .components-button.is-primary:active:enabled{background:#9b8570;border-color:#615346;box-shadow:inset 0 1px 0 #615346}body.admin-color-blue .components-button.is-primary:active:enabled{background:#ae8947;border-color:#6d562d;box-shadow:inset 0 1px 0 #6d562d}body.admin-color-light .components-button.is-primary:active:enabled{background:#006a95;border-color:#00435d;box-shadow:inset 0 1px 0 #00435d}.components-button.is-primary:disabled,.components-button.is-primary[aria-disabled=true]{color:#4daacf;background:#005d82;border-color:#006a95;box-shadow:none;text-shadow:0 -1px 0 rgba(0,0,0,.1)}body.admin-color-sunrise .components-button.is-primary:disabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]{color:#dfaa80;background:#925e34;border-color:#a76b3b}body.admin-color-ocean .components-button.is-primary:disabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true]{color:#bfcebe;background:#728271;border-color:#829482}body.admin-color-midnight .components-button.is-primary:disabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true]{color:#ea827b;background:#9e362f;border-color:#b43e36}body.admin-color-ectoplasm .components-button.is-primary:disabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]{color:#c1cc89;background:#757f3c;border-color:#869245}body.admin-color-coffee .components-button.is-primary:disabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true]{color:#d4c1af;background:#887462;border-color:#9b8570}body.admin-color-blue .components-button.is-primary:disabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true]{color:#e4c48b;background:#98783e;border-color:#ae8947}body.admin-color-light .components-button.is-primary:disabled,body.admin-color-light .components-button.is-primary[aria-disabled=true]{color:#4daacf;background:#005d82;border-color:#006a95}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(45deg,#0085ba 28%,#005d82 28%,#005d82 72%,#0085ba 72%);border-color:#00435d}body.admin-color-sunrise .components-button.is-primary.is-busy,body.admin-color-sunrise .components-button.is-primary.is-busy:disabled,body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#d1864a 28%,#925e34 28%,#925e34 72%,#d1864a 72%);border-color:#694325}body.admin-color-ocean .components-button.is-primary.is-busy,body.admin-color-ocean .components-button.is-primary.is-busy:disabled,body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#a3b9a2 28%,#728271 28%,#728271 72%,#a3b9a2 72%);border-color:#525d51}body.admin-color-midnight .components-button.is-primary.is-busy,body.admin-color-midnight .components-button.is-primary.is-busy:disabled,body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#e14d43 28%,#9e362f 28%,#9e362f 72%,#e14d43 72%);border-color:#712722}body.admin-color-ectoplasm .components-button.is-primary.is-busy,body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled,body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#a7b656 28%,#757f3c 28%,#757f3c 72%,#a7b656 72%);border-color:#545b2b}body.admin-color-coffee .components-button.is-primary.is-busy,body.admin-color-coffee .components-button.is-primary.is-busy:disabled,body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#c2a68c 28%,#887462 28%,#887462 72%,#c2a68c 72%);border-color:#615346}body.admin-color-blue .components-button.is-primary.is-busy,body.admin-color-blue .components-button.is-primary.is-busy:disabled,body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#82b4cb 28%,#5b7e8e 28%,#5b7e8e 72%,#82b4cb 72%);border-color:#415a66}body.admin-color-light .components-button.is-primary.is-busy,body.admin-color-light .components-button.is-primary.is-busy:disabled,body.admin-color-light .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#0085ba 28%,#005d82 28%,#005d82 72%,#0085ba 72%);border-color:#00435d}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:0 0;outline:0;text-align:right;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:50ms;transition-timing-function:ease-in-out}.components-button.is-link:active,.components-button.is-link:hover{color:#00a0d2}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#d94f4f}.components-button:active{color:currentColor}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button:focus:enabled{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-button.is-busy{animation:components-button__busy-animation 2.5s infinite linear;background-size:100px 100%;background-image:repeating-linear-gradient(45deg,#e2e4e7,#fff 11px,#fff 10px,#e2e4e7 20px);opacity:1}.components-button.is-large{height:30px;line-height:28px;padding:0 12px 2px}.components-button.is-small{height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.components-button.is-tertiary{color:#007cba;padding:0 10px;line-height:26px;height:28px}body.admin-color-sunrise .components-button.is-tertiary{color:#837425}body.admin-color-ocean .components-button.is-tertiary{color:#5e7d5e}body.admin-color-midnight .components-button.is-tertiary{color:#497b8d}body.admin-color-ectoplasm .components-button.is-tertiary{color:#523f6d}body.admin-color-coffee .components-button.is-tertiary{color:#59524c}body.admin-color-blue .components-button.is-tertiary{color:#417e9b}body.admin-color-light .components-button.is-tertiary{color:#007cba}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-tertiary svg{fill:currentColor;outline:0}.components-button.is-tertiary:active:focus:enabled{box-shadow:none}.components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#005d8c}body.admin-color-sunrise .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#62571c}body.admin-color-ocean .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#475e47}body.admin-color-midnight .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#375c6a}body.admin-color-ectoplasm .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#3e2f52}body.admin-color-coffee .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#433e39}body.admin-color-blue .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#315f74}body.admin-color-light .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#005d8c}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{margin-top:0}.component-color-indicator{width:25px;height:16px;margin-right:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-right:.5rem}.components-color-palette{margin-left:-14px}.components-color-palette .components-color-palette__clear{float:left;margin-left:20px}.components-color-palette__item-wrapper{display:inline-block;height:28px;width:28px;margin-left:14px;margin-bottom:14px;vertical-align:top;transform:scale(1);transition:.1s transform ease}.components-color-palette__item-wrapper:hover{transform:scale(1.2)}.components-color-palette__item-wrapper>div{height:100%;width:100%}.components-color-palette__item{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:0 0;box-shadow:inset 0 0 0 14px;transition:.1s box-shadow ease;cursor:pointer}.components-color-palette__item.is-active{box-shadow:inset 0 0 0 4px}.components-color-palette__item::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}.components-color-palette__item:focus{outline:0}.components-color-palette__item:focus::after{content:"";border:1px solid #606a73;width:32px;height:32px;position:absolute;top:-2px;right:-2px;border-radius:50%}.components-color-palette__clear-color .components-color-palette__item{color:#fff;background:#fff}.components-color-palette__clear-color-line{display:block;position:absolute;border:2px solid #d94f4f;border-radius:50%;top:0;right:0;bottom:0;left:0}.components-color-palette__clear-color-line::before{position:absolute;top:0;right:0;content:"";width:100%;height:100%;border-bottom:2px solid #d94f4f;transform:rotate(-45deg) translateY(-13px) translateX(1px)}.components-color-palette__custom-color .components-color-palette__item{position:relative;box-shadow:none}.components-color-palette__custom-color .components-color-palette__custom-color-gradient{display:block;width:100%;height:100%;position:absolute;top:0;right:0;border-radius:50%;overflow:hidden}.components-color-palette__custom-color .components-color-palette__custom-color-gradient::before{content:"";-webkit-filter:blur(6px) saturate(0.7) brightness(1.1);filter:blur(6px) saturate(.7) brightness(1.1);display:block;width:200%;height:200%;position:absolute;top:-50%;right:-50%;padding-top:100%;transform:scale(1);background-image:linear-gradient(-330deg,transparent 50%,#ff8100 50%),linear-gradient(-300deg,transparent 50%,#ff5800 50%),linear-gradient(-270deg,transparent 50%,#c92323 50%),linear-gradient(-240deg,transparent 50%,#cc42a2 50%),linear-gradient(-210deg,transparent 50%,#9f49ac 50%),linear-gradient(-180deg,transparent 50%,#306cd3 50%),linear-gradient(-150deg,transparent 50%,#179067 50%),linear-gradient(-120deg,transparent 50%,#0eb5d6 50%),linear-gradient(-90deg,transparent 50%,#50b517 50%),linear-gradient(-60deg,transparent 50%,#ede604 50%),linear-gradient(-30deg,transparent 50%,#fc0 50%),linear-gradient(0deg,transparent 50%,#feac00 50%);background-clip:content-box,content-box,content-box,content-box,content-box,content-box,padding-box,padding-box,padding-box,padding-box,padding-box,padding-box}.block-editor__container .components-popover.components-color-palette__picker.is-bottom{z-index:100001}.components-color-picker{width:100%;overflow:hidden}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-left:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(-45deg,#ddd 25%,transparent 25%),linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(-45deg,transparent 75%,#ddd 75%),linear-gradient(45deg,transparent 75%,#ddd 75%);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{position:absolute;top:0;right:0;left:0;bottom:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__saturation-color{overflow:hidden}.components-color-picker__saturation-white{background:linear-gradient(to left,#fff,rgba(255,255,255,0))}.components-color-picker__saturation-black{background:linear-gradient(to top,#000,rgba(0,0,0,0))}.components-color-picker__saturation-pointer{width:8px;height:8px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;background-color:transparent;transform:translate(4px,-4px)}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(-45deg,#ddd 25%,transparent 25%),linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(-45deg,transparent 75%,#ddd 75%),linear-gradient(45deg,transparent 75%,#ddd 75%);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(to left,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{right:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #00a0d2,0 0 5px 0 #00a0d2,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#00a0d2;box-shadow:0 0 0 2px #00a0d2,0 0 3px 0 #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end}.components-color-picker__inputs-wrapper fieldset{flex:1}.components-color-picker__inputs-fields{display:flex}.components-color-picker__inputs-fields .components-base-control__field{margin:0 4px}svg.dashicon{fill:currentColor;outline:0}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:initial}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{background:#fff;position:relative;text-align:left}.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:initial}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-top:0;border-right:0;border-bottom:2px solid transparent;border-left:0;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-top:0;border-right:0;border-bottom:2px solid #008489;border-left:0}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime .components-datetime__calendar-help{padding:8px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__date-help-button{display:block;margin-right:auto;margin-left:8px;margin-top:.5em}.components-datetime__date{min-height:236px;border-top:1px solid #e2e4e7;margin-right:-8px;margin-left:-8px}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarDay{font-size:13px;border:1px solid transparent;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay__selected{background:#0085ba}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected{background:#d1864a}body.admin-color-ocean .components-datetime__date .CalendarDay__selected{background:#a3b9a2}body.admin-color-midnight .components-datetime__date .CalendarDay__selected{background:#e14d43}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected{background:#a7b656}body.admin-color-coffee .components-datetime__date .CalendarDay__selected{background:#c2a68c}body.admin-color-blue .components-datetime__date .CalendarDay__selected{background:#82b4cb}body.admin-color-light .components-datetime__date .CalendarDay__selected{background:#0085ba}.components-datetime__date .CalendarDay__selected:hover{background:#00719e}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected:hover{background:#b2723f}body.admin-color-ocean .components-datetime__date .CalendarDay__selected:hover{background:#8b9d8a}body.admin-color-midnight .components-datetime__date .CalendarDay__selected:hover{background:#bf4139}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected:hover{background:#8e9b49}body.admin-color-coffee .components-datetime__date .CalendarDay__selected:hover{background:#a58d77}body.admin-color-blue .components-datetime__date .CalendarDay__selected:hover{background:#6f99ad}body.admin-color-light .components-datetime__date .CalendarDay__selected:hover{background:#00719e}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date.is-description-visible .DayPicker,.components-datetime__date.is-description-visible .components-datetime__date-help-button{visibility:hidden}.components-datetime__time{margin-bottom:1em}.components-datetime__time fieldset{margin-top:.5em;position:relative}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 0 0 3px;color:#555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button{margin-right:8px;margin-left:-1px;border-radius:0 3px 3px 0}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button{margin-right:-1px;border-radius:3px 0 0 3px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-toggled,.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-toggled{background:#edeff0;border-color:#8f98a1;box-shadow:inset 0 2px 5px -3px #555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field{align-self:center;flex:0 1 auto;order:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field.am-pm button{font-size:11px;font-weight:600}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{padding:2px;margin-left:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-left:4px;width:40px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:0 0 0 -4px!important;border-radius:0 4px 4px 0!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:4px 0 0 4px!important}.components-datetime__time.is-24-hour .components-datetime__time-field-day{order:0!important}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;right:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{width:90px}.components-popover .components-datetime__date{padding-right:6px}.components-popover.edit-post-post-schedule__dialog.is-bottom.is-left{z-index:100000}.components-disabled{position:relative;pointer-events:none}.components-disabled::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:-webkit-grabbing!important;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;right:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:20px;background:0 0;pointer-events:none;z-index:1000000000;opacity:.8}.components-drop-zone{position:absolute;top:0;left:0;bottom:0;right:0;z-index:100;visibility:hidden;opacity:0;transition:.3s opacity,.3s background-color,0s visibility .3s;border:2px solid #0071a1;border-radius:2px}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:.3s opacity,.3s background-color}.components-drop-zone.is-dragging-over-element{background-color:rgba(0,113,161,.8)}.components-drop-zone__content{position:absolute;top:50%;right:0;left:0;z-index:110;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown-menu{padding:3px;display:flex}.components-dropdown-menu .components-dropdown-menu__toggle{width:auto;margin:0;padding:4px;border:1px solid transparent;display:flex;flex-direction:row}.components-dropdown-menu .components-dropdown-menu__toggle.is-active,.components-dropdown-menu .components-dropdown-menu__toggle.is-active:hover{box-shadow:none;background-color:#555d66;color:#fff}.components-dropdown-menu .components-dropdown-menu__toggle:focus::before{top:-3px;left:-3px;bottom:-3px;right:-3px}.components-dropdown-menu .components-dropdown-menu__toggle:focus,.components-dropdown-menu .components-dropdown-menu__toggle:hover,.components-dropdown-menu .components-dropdown-menu__toggle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-dropdown-menu .components-dropdown-menu__toggle .components-dropdown-menu__indicator::after{content:"";pointer-events:none;display:block;width:0;height:0;border-right:3px solid transparent;border-left:3px solid transparent;border-top:5px solid currentColor;margin-right:4px;margin-left:2px}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;padding:9px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item{width:100%;padding:6px;outline:0;cursor:pointer;margin-bottom:4px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator::before{display:block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:-3px;right:0;left:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:focus:not(:disabled):not([aria-disabled=true]):not(.is-default){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg{border-radius:4px;padding:2px;width:24px;height:24px;margin:-1px 0 -1px 8px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled=true]):not(.is-default).is-active>svg{outline:0;color:#fff;box-shadow:none;background:#555d66}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle}.components-font-size-picker__buttons{display:flex;justify-content:space-between;align-items:center}.components-font-size-picker__buttons .components-range-control__number{height:24px;line-height:22px}.components-font-size-picker__buttons .components-range-control__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker__dropdown-content .components-button{display:block;position:relative;padding:10px 40px 10px 20px;width:100%;text-align:right}.components-font-size-picker__dropdown-content .components-button .dashicon{position:absolute;top:calc(50% - 10px);right:10px}.components-font-size-picker__buttons .components-font-size-picker__selector{border:1px solid;background:0 0;position:relative;width:110px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-font-size-picker__buttons .components-font-size-picker__selector:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-font-size-picker__buttons .components-font-size-picker__selector::after{content:"";pointer-events:none;display:block;width:0;height:0;border-right:3px solid transparent;border-left:3px solid transparent;border-top:5px solid currentColor;margin-right:4px;margin-left:2px;left:8px;top:12px;position:absolute}.components-form-file-upload .components-button.is-large{padding-right:6px}.components-form-toggle{position:relative}.components-form-toggle .components-form-toggle__off,.components-form-toggle .components-form-toggle__on{position:absolute;top:6px}.components-form-toggle .components-form-toggle__off{color:#6c7781;fill:currentColor;left:6px}.components-form-toggle .components-form-toggle__on{right:8px}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;vertical-align:top;background-color:#fff;border:2px solid #6c7781;width:36px;height:18px;border-radius:9px;transition:.2s background ease}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;top:4px;right:4px;width:10px;height:10px;border-radius:50%;transition:.1s transform ease;background-color:#6c7781;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__track{border:2px solid #555d66}.components-form-toggle:hover .components-form-toggle__thumb{background-color:#555d66;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__off{color:#555d66}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:2px solid #11a0d2;border:9px solid transparent}body.admin-color-sunrise .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked .components-form-toggle__track{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked .components-form-toggle__track{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:2px solid #11a0d2}.components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3px #6c7781;outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(-18px)}.components-form-toggle.is-checked::before{background-color:#11a0d2;border:2px solid #11a0d2}body.admin-color-sunrise .components-form-toggle.is-checked::before{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked::before{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked::before{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked::before{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked::before{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked::before{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked::before{background-color:#11a0d2;border:2px solid #11a0d2}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;right:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:0 0}.components-form-toggle input.components-form-toggle__input[type=checkbox]::before{content:""}.components-form-toggle .components-form-toggle__on{outline:1px solid transparent;outline-offset:-1px;border:1px solid #000;-webkit-filter:invert(100%) contrast(500%);filter:invert(100%) contrast(500%)}@supports (-ms-high-contrast-adjust:auto){.components-form-toggle .components-form-toggle__on{-webkit-filter:none;filter:none;border:1px solid #fff}}.components-form-token-field__input-container{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0;padding:4px;background-color:#fff;border:1px solid #ccd0d4;color:#32373c;cursor:text;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-form-token-field__input-container.is-disabled{background:#e2e4e7;border-color:#ccd0d4}.components-form-token-field__input-container.is-active{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin:2px 8px 2px 0;padding:0;min-height:24px;background:inherit;border:0;font-size:13px;color:#23282d;box-shadow:none}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:0;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 0 2px 4px;color:#32373c;overflow:hidden}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#d94f4f}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#555d66}.components-form-token-field__token.is-borderless{position:relative;padding:0 0 0 16px}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:0 0;color:#11a0d2}body.admin-color-sunrise .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c8b03c}body.admin-color-ocean .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#a89d8a}body.admin-color-midnight .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#77a6b9}body.admin-color-ectoplasm .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c77430}body.admin-color-coffee .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#9fa47b}body.admin-color-blue .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#d9ab59}body.admin-color-light .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c75726}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:0 0;color:#555d66;position:absolute;top:1px;left:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#d94f4f;border-radius:0 4px 4px 0;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#23282d}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-icon-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;background:#e2e4e7;transition:all .2s cubic-bezier(.4, 1, .4, 1)}.components-form-token-field__token-text{border-radius:0 12px 12px 0;padding:0 8px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-icon-button{cursor:pointer;border-radius:12px 0 0 12px;padding:0 2px;color:#555d66;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-icon-button:hover{color:#32373c}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:scroll;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #6c7781;margin:4px -4px -4px;padding-top:3px}.components-form-token-field__suggestion{color:#555d66;display:block;font-size:13px;padding:4px 8px;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#0071a1;color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}.components-navigate-regions.is-focusing-regions [role=region]:focus::after{content:"";position:absolute;top:0;bottom:0;right:0;left:0;pointer-events:none;outline:4px solid transparent;animation:editor-animation__region-focus .2s ease-out;animation-fill-mode:forwards}@keyframes editor-animation__region-focus{from{box-shadow:inset 0 0 0 0 #33b3db}to{box-shadow:inset 0 0 0 4px #33b3db}}.components-icon-button{display:flex;align-items:center;padding:8px;margin:0;border:none;background:0 0;color:#555d66;position:relative;overflow:hidden;border-radius:4px}.components-icon-button .dashicon{display:inline-block;flex:0 0 auto}.components-icon-button svg{fill:currentColor;outline:0}.components-icon-button svg:not:only-child{margin-left:4px}.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,.2)}.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):active{outline:0;background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #ccd0d4,inset 0 0 0 2px #fff}.components-icon-button:disabled:focus,.components-icon-button[aria-disabled=true]:focus{box-shadow:none}.components-menu-group{width:100%;padding:7px}.components-menu-group__label{margin-bottom:8px;color:#6c7781}.components-menu-item__button,.components-menu-item__button.components-icon-button{width:100%;padding:8px;text-align:right;color:#40464d}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button .dashicon,.components-menu-item__button.components-icon-button .components-menu-items__item-icon,.components-menu-item__button.components-icon-button .dashicon,.components-menu-item__button.components-icon-button>span>svg,.components-menu-item__button>span>svg{margin-left:4px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-icon-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]){color:#555d66}@media (min-width:782px){.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none}}.components-menu-item__button.components-icon-button:focus:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;opacity:.82}.components-menu-item__shortcut{align-self:center;opacity:.5;margin-left:0;margin-right:auto;padding-right:8px;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-modal__screen-overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(255,255,255,.4);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}.components-modal__frame{position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;margin:0;border:1px solid #e2e4e7;background:#fff;box-shadow:0 3px 30px rgba(25,30,35,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;left:auto;bottom:auto;right:50%;min-width:360px;max-width:calc(100% - 16px - 16px);max-height:calc(100% - 56px - 56px);transform:translate(50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@keyframes components-modal__appear-animation{from{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #e2e4e7;padding:0 16px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:56px;position:-webkit-sticky;position:sticky;top:0;z-index:10;margin:0 -16px 16px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1em;font-weight:400}.components-modal__header h1{line-height:1;margin:0}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 16px 16px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:56px}}.components-notice{background-color:#e5f5fa;border-right:4px solid #00a0d2;margin:5px 15px 2px;padding:8px 12px}.components-notice.is-dismissible{padding-left:36px;position:relative}.components-notice.is-success{border-right-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-right-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-right-color:#d94f4f;background-color:#f9e2e2}.components-notice__content{margin:1em 0}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-right:4px}.components-notice__dismiss{position:absolute;top:0;left:0;color:#6c7781}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#d94f4f;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none}.components-notice-list{min-width:300px;z-index:9989}.components-panel{background:#fff;border:1px solid #e2e4e7}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__body>.components-icon-button{color:#191e23}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:50px;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:.1s background ease-in-out}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px;margin-bottom:5px}.components-panel__body>.components-panel__body-title:hover,.edit-post-last-revision__panel>.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background:#f8f9f9}.components-panel__body-toggle.components-button{position:relative;padding:15px;outline:0;width:100%;font-weight:600;text-align:right;color:#191e23;border:none;box-shadow:none;transition:.1s background ease-in-out}.components-panel__body-toggle.components-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#191e23;fill:currentColor;transition:.1s color ease-in-out}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;-webkit-filter:FlipH;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#555d66;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.components-panel__row select{min-width:0}.components-panel__row label{margin-left:10px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;width:100%;text-align:center;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;background:rgba(139,139,150,.1)}.is-dark-theme .components-placeholder{background:rgba(255,255,255,.15)}.components-placeholder__label{display:flex;justify-content:center;font-weight:600;margin-bottom:1em}.components-placeholder__label .dashicon,.components-placeholder__label .editor-block-icon{margin-left:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;justify-content:center;width:100%;max-width:400px;flex-wrap:wrap;z-index:1}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px}.components-placeholder__input{margin-left:8px;flex:1 1 auto}.components-placeholder__instructions{margin-bottom:1em}.components-popover{position:fixed;z-index:1000000;left:50%}.components-popover.is-mobile{top:0;left:0;right:0;bottom:0}.components-popover:not(.is-without-arrow):not(.is-mobile){margin-left:2px}.components-popover:not(.is-without-arrow):not(.is-mobile)::before{border:8px solid #e2e4e7}.components-popover:not(.is-without-arrow):not(.is-mobile)::after{border:8px solid #fff}.components-popover:not(.is-without-arrow):not(.is-mobile)::after,.components-popover:not(.is-without-arrow):not(.is-mobile)::before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top{margin-top:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::before{bottom:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::after{bottom:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom{margin-top:8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::before{top:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::after{top:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left{margin-left:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::before{right:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::after{right:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right{margin-left:8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::before{left:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::after{left:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover:not(.is-mobile).is-top{bottom:100%}.components-popover:not(.is-mobile).is-bottom{top:100%;z-index:99990}.components-popover:not(.is-mobile).is-middle{align-items:center;display:flex}.components-popover__content{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff;height:100%}.components-popover.is-mobile .components-popover__content{height:calc(100% - 50px);border-top:0}.components-popover:not(.is-mobile) .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover:not(.is-mobile).is-top .components-popover__content{bottom:100%}.components-popover:not(.is-mobile).is-center .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover:not(.is-mobile).is-right .components-popover__content{position:absolute;left:100%}.components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content{margin-left:-24px}.components-popover:not(.is-mobile).is-left .components-popover__content{position:absolute;right:100%}.components-popover:not(.is-mobile):not(.is-middle).is-left .components-popover__content{margin-right:-24px}.components-popover__content>div{height:100%}.components-popover__header{align-items:center;background:#fff;border:1px solid #e2e4e7;display:flex;height:50px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-icon-button{z-index:5}.components-radio-control{display:flex;flex-direction:column}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{margin-top:0;margin-left:6px}.components-range-control .components-base-control__field{display:flex;justify-content:center;flex-wrap:wrap;align-items:center}.components-range-control .dashicon{flex-shrink:0;margin-left:10px}.components-range-control .components-base-control__label{width:100%}.components-range-control .components-range-control__slider{margin-right:0;flex:1}.components-range-control__slider{width:100%;margin-right:8px;padding:0;-webkit-appearance:none;background:0 0}.components-range-control__slider::-webkit-slider-thumb{-webkit-appearance:none;height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:-7px}.components-range-control__slider::-moz-range-thumb{height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box}.components-range-control__slider::-ms-thumb{height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:0;height:14px;width:14px;border:2px solid transparent}.components-range-control__slider:focus{outline:0}.components-range-control__slider:focus::-webkit-slider-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider:focus::-moz-range-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider:focus::-ms-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider::-webkit-slider-runnable-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px;margin-top:-4px}.components-range-control__slider::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.components-range-control__slider::-ms-track{margin-top:-4px;background:0 0;border-color:transparent;color:transparent;height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.components-range-control__number{display:inline-block;margin-right:8px;font-weight:500;width:50px;padding:3px 5px!important}.components-resizable-box__handle{display:none;width:24px;height:24px;padding:4px}.components-resizable-box__container.is-selected .components-resizable-box__handle{display:block}.components-resizable-box__handle::before{display:block;content:"";width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:#0085ba;cursor:inherit}body.admin-color-sunrise .components-resizable-box__handle::before{background:#d1864a}body.admin-color-ocean .components-resizable-box__handle::before{background:#a3b9a2}body.admin-color-midnight .components-resizable-box__handle::before{background:#e14d43}body.admin-color-ectoplasm .components-resizable-box__handle::before{background:#a7b656}body.admin-color-coffee .components-resizable-box__handle::before{background:#c2a68c}body.admin-color-blue .components-resizable-box__handle::before{background:#82b4cb}body.admin-color-light .components-resizable-box__handle::before{background:#0085ba}.components-resizable-box__handle-right{top:calc(50% - 12px);right:calc(12px * -1)}.components-resizable-box__handle-bottom{bottom:calc(12px * -1);left:calc(50% - 12px)}.components-resizable-box__handle-left{top:calc(50% - 12px);left:calc(12px * -1)}.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper__content{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%}.components-sandbox{overflow:hidden}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-spinner{display:inline-block;background-color:#7e8993;width:18px;height:18px;opacity:.7;float:left;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner::before{content:"";position:absolute;background-color:#fff;top:3px;right:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s infinite linear}@keyframes components-spinner__animation{from{transform:rotate(0)}to{transform:rotate(-360deg)}}.components-text-control__input{width:100%;padding:6px 8px}.components-textarea-control__input{width:100%;padding:6px 8px}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px}.components-toggle-control .components-base-control__field .components-form-toggle{margin-left:16px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block;margin-bottom:4px}.components-toolbar{margin:0;border:1px solid #e2e4e7;background-color:#fff;display:flex;flex-shrink:0}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div{margin-right:-3px}div.components-toolbar>div+div.has-left-divider{margin-right:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider::before{display:inline-block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:8px;right:-3px;width:1px;height:20px}.components-toolbar__control.components-button{display:inline-flex;align-items:flex-end;margin:0;padding:3px;outline:0;cursor:pointer;position:relative;width:36px;height:36px}.components-toolbar__control.components-button:active,.components-toolbar__control.components-button:not([aria-disabled=true]):focus,.components-toolbar__control.components-button:not([aria-disabled=true]):hover{outline:0;box-shadow:none;background:0 0;border:none}.components-toolbar__control.components-button:disabled{cursor:default}.components-toolbar__control.components-button>svg{padding:5px;border-radius:4px;height:30px;width:30px}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]::after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;left:8px;bottom:10px}.components-toolbar__control.components-button:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.components-toolbar__control.components-button:not(:disabled).is-active>svg,.components-toolbar__control.components-button:not(:disabled):hover>svg{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-toolbar__control.components-button:not(:disabled).is-active>svg{outline:0;color:#fff;box-shadow:none;background:#555d66}.components-toolbar__control.components-button:not(:disabled).is-active[data-subscript]::after{color:#fff}.components-toolbar__control.components-button:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-toolbar__control .dashicon{display:block}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover::before{border-color:transparent}.components-tooltip.components-popover.is-top::after{border-top-color:#191e23}.components-tooltip.components-popover.is-bottom::after{border-bottom-color:#191e23}.components-tooltip .components-popover__content{padding:4px 12px;background:#191e23;border-width:0;color:#fff;white-space:nowrap}.components-tooltip:not(.is-mobile) .components-popover__content{min-width:0}.components-tooltip__shortcut{display:block;text-align:center;color:#7e8993} \ No newline at end of file diff --git a/wp-includes/css/dist/components/style.css b/wp-includes/css/dist/components/style.css index 4fda21918a..a6ef335653 100644 --- a/wp-includes/css/dist/components/style.css +++ b/wp-includes/css/dist/components/style.css @@ -536,7 +536,8 @@ .components-color-palette__custom-color .components-color-palette__custom-color-gradient::before { content: ""; - filter: blur(6px) saturate(0.7) brightness(1.1); + -webkit-filter: blur(6px) saturate(0.7) brightness(1.1); + filter: blur(6px) saturate(0.7) brightness(1.1); display: block; width: 200%; height: 200%; @@ -2049,11 +2050,13 @@ body.is-dragging-components-draggable { outline: 1px solid transparent; outline-offset: -1px; border: 1px solid #000; - filter: invert(100%) contrast(500%); } + -webkit-filter: invert(100%) contrast(500%); + filter: invert(100%) contrast(500%); } @supports (-ms-high-contrast-adjust: auto) { .components-form-toggle .components-form-toggle__on { - filter: none; + -webkit-filter: none; + filter: none; border: 1px solid #fff; } } .components-form-token-field__input-container { @@ -2531,7 +2534,8 @@ body.is-dragging-components-draggable { body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right { transform: scaleX(-1); -ms-filter: fliph; - filter: FlipH; + -webkit-filter: FlipH; + filter: FlipH; margin-top: -10px; } .components-panel__icon { diff --git a/wp-includes/css/dist/components/style.min.css b/wp-includes/css/dist/components/style.min.css index 67c8144d41..defcd7213d 100644 --- a/wp-includes/css/dist/components/style.min.css +++ b/wp-includes/css/dist/components/style.min.css @@ -1 +1 @@ -.components-autocomplete__popover .components-popover__content{min-width:200px}.components-autocomplete__popover .components-autocomplete__results{padding:3px;display:flex;flex-direction:column;align-items:stretch}.components-autocomplete__popover .components-autocomplete__results:empty{display:none}.components-autocomplete__result.components-button{margin-bottom:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;color:#555d66;display:flex;flex-direction:row;flex-grow:1;flex-shrink:0;align-items:center;padding:6px;text-align:left}.components-autocomplete__result.components-button.is-selected{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-autocomplete__result.components-button:hover{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,.2)}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:block;margin-bottom:4px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic;margin-bottom:0}.components-button-group{display:inline-block}.components-button-group .components-button.is-button{border-radius:0}.components-button-group .components-button.is-button+.components-button.is-button{margin-left:-1px}.components-button-group .components-button.is-button:first-child{border-radius:3px 0 0 3px}.components-button-group .components-button.is-button:last-child{border-radius:0 3px 3px 0}.components-button-group .components-button.is-button.is-primary,.components-button-group .components-button.is-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-button.is-primary{box-shadow:none}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:0 0}.components-button.is-button{padding:0 10px 1px;line-height:26px;height:28px;border-radius:3px;white-space:nowrap;border-width:1px;border-style:solid}.components-button.is-default{color:#555;border-color:#ccc;background:#f7f7f7;box-shadow:inset 0 -1px 0 #ccc;vertical-align:top}.components-button.is-default:hover{background:#fafafa;border-color:#999;box-shadow:inset 0 -1px 0 #999;color:#23282d;text-decoration:none}.components-button.is-default:focus:enabled{background:#fafafa;color:#23282d;border-color:#999;box-shadow:inset 0 -1px 0 #999,0 0 0 2px #bfe7f3;text-decoration:none}.components-button.is-default:active:enabled{background:#eee;border-color:#999;box-shadow:inset 0 1px 0 #999}.components-button.is-default:disabled,.components-button.is-default[aria-disabled=true]{color:#a0a5aa;border-color:#ddd;background:#f7f7f7;box-shadow:none;text-shadow:0 1px 0 #fff;transform:none}.components-button.is-primary{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #005d82,1px 0 1px #005d82,0 1px 1px #005d82,-1px 0 1px #005d82}body.admin-color-sunrise .components-button.is-primary{background:#d1864a;border-color:#a76b3b #9d6538 #9d6538;box-shadow:inset 0 -1px 0 #9d6538;text-shadow:0 -1px 1px #925e34,1px 0 1px #925e34,0 1px 1px #925e34,-1px 0 1px #925e34}body.admin-color-ocean .components-button.is-primary{background:#a3b9a2;border-color:#829482 #7a8b7a #7a8b7a;box-shadow:inset 0 -1px 0 #7a8b7a;text-shadow:0 -1px 1px #728271,1px 0 1px #728271,0 1px 1px #728271,-1px 0 1px #728271}body.admin-color-midnight .components-button.is-primary{background:#e14d43;border-color:#b43e36 #a93a32 #a93a32;box-shadow:inset 0 -1px 0 #a93a32;text-shadow:0 -1px 1px #9e362f,1px 0 1px #9e362f,0 1px 1px #9e362f,-1px 0 1px #9e362f}body.admin-color-ectoplasm .components-button.is-primary{background:#a7b656;border-color:#869245 #7d8941 #7d8941;box-shadow:inset 0 -1px 0 #7d8941;text-shadow:0 -1px 1px #757f3c,1px 0 1px #757f3c,0 1px 1px #757f3c,-1px 0 1px #757f3c}body.admin-color-coffee .components-button.is-primary{background:#c2a68c;border-color:#9b8570 #927d69 #927d69;box-shadow:inset 0 -1px 0 #927d69;text-shadow:0 -1px 1px #887462,1px 0 1px #887462,0 1px 1px #887462,-1px 0 1px #887462}body.admin-color-blue .components-button.is-primary{background:#d9ab59;border-color:#ae8947 #a38043 #a38043;box-shadow:inset 0 -1px 0 #a38043;text-shadow:0 -1px 1px #98783e,1px 0 1px #98783e,0 1px 1px #98783e,-1px 0 1px #98783e}body.admin-color-light .components-button.is-primary{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;text-shadow:0 -1px 1px #005d82,1px 0 1px #005d82,0 1px 1px #005d82,-1px 0 1px #005d82}.components-button.is-primary:focus:enabled,.components-button.is-primary:hover{background:#007eb1;border-color:#00435d;color:#fff}body.admin-color-sunrise .components-button.is-primary:focus:enabled,body.admin-color-sunrise .components-button.is-primary:hover{background:#c77f46;border-color:#694325}body.admin-color-ocean .components-button.is-primary:focus:enabled,body.admin-color-ocean .components-button.is-primary:hover{background:#9bb09a;border-color:#525d51}body.admin-color-midnight .components-button.is-primary:focus:enabled,body.admin-color-midnight .components-button.is-primary:hover{background:#d64940;border-color:#712722}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary:hover{background:#9fad52;border-color:#545b2b}body.admin-color-coffee .components-button.is-primary:focus:enabled,body.admin-color-coffee .components-button.is-primary:hover{background:#b89e85;border-color:#615346}body.admin-color-blue .components-button.is-primary:focus:enabled,body.admin-color-blue .components-button.is-primary:hover{background:#cea255;border-color:#6d562d}body.admin-color-light .components-button.is-primary:focus:enabled,body.admin-color-light .components-button.is-primary:hover{background:#007eb1;border-color:#00435d}.components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #00435d}body.admin-color-sunrise .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #694325}body.admin-color-ocean .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #525d51}body.admin-color-midnight .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #712722}body.admin-color-ectoplasm .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #545b2b}body.admin-color-coffee .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #615346}body.admin-color-blue .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #6d562d}body.admin-color-light .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #00435d}.components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}body.admin-color-sunrise .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #694325,0 0 0 2px #bfe7f3}body.admin-color-ocean .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #525d51,0 0 0 2px #bfe7f3}body.admin-color-midnight .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #712722,0 0 0 2px #bfe7f3}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #545b2b,0 0 0 2px #bfe7f3}body.admin-color-coffee .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #615346,0 0 0 2px #bfe7f3}body.admin-color-blue .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #6d562d,0 0 0 2px #bfe7f3}body.admin-color-light .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}.components-button.is-primary:active:enabled{background:#006a95;border-color:#00435d;box-shadow:inset 0 1px 0 #00435d;vertical-align:top}body.admin-color-sunrise .components-button.is-primary:active:enabled{background:#a76b3b;border-color:#694325;box-shadow:inset 0 1px 0 #694325}body.admin-color-ocean .components-button.is-primary:active:enabled{background:#829482;border-color:#525d51;box-shadow:inset 0 1px 0 #525d51}body.admin-color-midnight .components-button.is-primary:active:enabled{background:#b43e36;border-color:#712722;box-shadow:inset 0 1px 0 #712722}body.admin-color-ectoplasm .components-button.is-primary:active:enabled{background:#869245;border-color:#545b2b;box-shadow:inset 0 1px 0 #545b2b}body.admin-color-coffee .components-button.is-primary:active:enabled{background:#9b8570;border-color:#615346;box-shadow:inset 0 1px 0 #615346}body.admin-color-blue .components-button.is-primary:active:enabled{background:#ae8947;border-color:#6d562d;box-shadow:inset 0 1px 0 #6d562d}body.admin-color-light .components-button.is-primary:active:enabled{background:#006a95;border-color:#00435d;box-shadow:inset 0 1px 0 #00435d}.components-button.is-primary:disabled,.components-button.is-primary[aria-disabled=true]{color:#4daacf;background:#005d82;border-color:#006a95;box-shadow:none;text-shadow:0 -1px 0 rgba(0,0,0,.1)}body.admin-color-sunrise .components-button.is-primary:disabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]{color:#dfaa80;background:#925e34;border-color:#a76b3b}body.admin-color-ocean .components-button.is-primary:disabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true]{color:#bfcebe;background:#728271;border-color:#829482}body.admin-color-midnight .components-button.is-primary:disabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true]{color:#ea827b;background:#9e362f;border-color:#b43e36}body.admin-color-ectoplasm .components-button.is-primary:disabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]{color:#c1cc89;background:#757f3c;border-color:#869245}body.admin-color-coffee .components-button.is-primary:disabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true]{color:#d4c1af;background:#887462;border-color:#9b8570}body.admin-color-blue .components-button.is-primary:disabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true]{color:#e4c48b;background:#98783e;border-color:#ae8947}body.admin-color-light .components-button.is-primary:disabled,body.admin-color-light .components-button.is-primary[aria-disabled=true]{color:#4daacf;background:#005d82;border-color:#006a95}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(-45deg,#0085ba 28%,#005d82 28%,#005d82 72%,#0085ba 72%);border-color:#00435d}body.admin-color-sunrise .components-button.is-primary.is-busy,body.admin-color-sunrise .components-button.is-primary.is-busy:disabled,body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#d1864a 28%,#925e34 28%,#925e34 72%,#d1864a 72%);border-color:#694325}body.admin-color-ocean .components-button.is-primary.is-busy,body.admin-color-ocean .components-button.is-primary.is-busy:disabled,body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#a3b9a2 28%,#728271 28%,#728271 72%,#a3b9a2 72%);border-color:#525d51}body.admin-color-midnight .components-button.is-primary.is-busy,body.admin-color-midnight .components-button.is-primary.is-busy:disabled,body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#e14d43 28%,#9e362f 28%,#9e362f 72%,#e14d43 72%);border-color:#712722}body.admin-color-ectoplasm .components-button.is-primary.is-busy,body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled,body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#a7b656 28%,#757f3c 28%,#757f3c 72%,#a7b656 72%);border-color:#545b2b}body.admin-color-coffee .components-button.is-primary.is-busy,body.admin-color-coffee .components-button.is-primary.is-busy:disabled,body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#c2a68c 28%,#887462 28%,#887462 72%,#c2a68c 72%);border-color:#615346}body.admin-color-blue .components-button.is-primary.is-busy,body.admin-color-blue .components-button.is-primary.is-busy:disabled,body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#82b4cb 28%,#5b7e8e 28%,#5b7e8e 72%,#82b4cb 72%);border-color:#415a66}body.admin-color-light .components-button.is-primary.is-busy,body.admin-color-light .components-button.is-primary.is-busy:disabled,body.admin-color-light .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#0085ba 28%,#005d82 28%,#005d82 72%,#0085ba 72%);border-color:#00435d}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:0 0;outline:0;text-align:left;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:50ms;transition-timing-function:ease-in-out}.components-button.is-link:active,.components-button.is-link:hover{color:#00a0d2}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#d94f4f}.components-button:active{color:currentColor}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button:focus:enabled{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-button.is-busy{animation:components-button__busy-animation 2.5s infinite linear;background-size:100px 100%;background-image:repeating-linear-gradient(-45deg,#e2e4e7,#fff 11px,#fff 10px,#e2e4e7 20px);opacity:1}.components-button.is-large{height:30px;line-height:28px;padding:0 12px 2px}.components-button.is-small{height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.components-button.is-tertiary{color:#007cba;padding:0 10px;line-height:26px;height:28px}body.admin-color-sunrise .components-button.is-tertiary{color:#837425}body.admin-color-ocean .components-button.is-tertiary{color:#5e7d5e}body.admin-color-midnight .components-button.is-tertiary{color:#497b8d}body.admin-color-ectoplasm .components-button.is-tertiary{color:#523f6d}body.admin-color-coffee .components-button.is-tertiary{color:#59524c}body.admin-color-blue .components-button.is-tertiary{color:#417e9b}body.admin-color-light .components-button.is-tertiary{color:#007cba}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-tertiary svg{fill:currentColor;outline:0}.components-button.is-tertiary:active:focus:enabled{box-shadow:none}.components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#005d8c}body.admin-color-sunrise .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#62571c}body.admin-color-ocean .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#475e47}body.admin-color-midnight .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#375c6a}body.admin-color-ectoplasm .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#3e2f52}body.admin-color-coffee .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#433e39}body.admin-color-blue .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#315f74}body.admin-color-light .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#005d8c}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{margin-top:0}.component-color-indicator{width:25px;height:16px;margin-left:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-left:.5rem}.components-color-palette{margin-right:-14px}.components-color-palette .components-color-palette__clear{float:right;margin-right:20px}.components-color-palette__item-wrapper{display:inline-block;height:28px;width:28px;margin-right:14px;margin-bottom:14px;vertical-align:top;transform:scale(1);transition:.1s transform ease}.components-color-palette__item-wrapper:hover{transform:scale(1.2)}.components-color-palette__item-wrapper>div{height:100%;width:100%}.components-color-palette__item{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:0 0;box-shadow:inset 0 0 0 14px;transition:.1s box-shadow ease;cursor:pointer}.components-color-palette__item.is-active{box-shadow:inset 0 0 0 4px}.components-color-palette__item::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}.components-color-palette__item:focus{outline:0}.components-color-palette__item:focus::after{content:"";border:1px solid #606a73;width:32px;height:32px;position:absolute;top:-2px;left:-2px;border-radius:50%}.components-color-palette__clear-color .components-color-palette__item{color:#fff;background:#fff}.components-color-palette__clear-color-line{display:block;position:absolute;border:2px solid #d94f4f;border-radius:50%;top:0;left:0;bottom:0;right:0}.components-color-palette__clear-color-line::before{position:absolute;top:0;left:0;content:"";width:100%;height:100%;border-bottom:2px solid #d94f4f;transform:rotate(45deg) translateY(-13px) translateX(-1px)}.components-color-palette__custom-color .components-color-palette__item{position:relative;box-shadow:none}.components-color-palette__custom-color .components-color-palette__custom-color-gradient{display:block;width:100%;height:100%;position:absolute;top:0;left:0;border-radius:50%;overflow:hidden}.components-color-palette__custom-color .components-color-palette__custom-color-gradient::before{content:"";filter:blur(6px) saturate(.7) brightness(1.1);display:block;width:200%;height:200%;position:absolute;top:-50%;left:-50%;padding-top:100%;transform:scale(1);background-image:linear-gradient(330deg,transparent 50%,#ff8100 50%),linear-gradient(300deg,transparent 50%,#ff5800 50%),linear-gradient(270deg,transparent 50%,#c92323 50%),linear-gradient(240deg,transparent 50%,#cc42a2 50%),linear-gradient(210deg,transparent 50%,#9f49ac 50%),linear-gradient(180deg,transparent 50%,#306cd3 50%),linear-gradient(150deg,transparent 50%,#179067 50%),linear-gradient(120deg,transparent 50%,#0eb5d6 50%),linear-gradient(90deg,transparent 50%,#50b517 50%),linear-gradient(60deg,transparent 50%,#ede604 50%),linear-gradient(30deg,transparent 50%,#fc0 50%),linear-gradient(0deg,transparent 50%,#feac00 50%);background-clip:content-box,content-box,content-box,content-box,content-box,content-box,padding-box,padding-box,padding-box,padding-box,padding-box,padding-box}.block-editor__container .components-popover.components-color-palette__picker.is-bottom{z-index:100001}.components-color-picker{width:100%;overflow:hidden}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-right:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(-45deg,#ddd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ddd 75%),linear-gradient(-45deg,transparent 75%,#ddd 75%);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__saturation-color{overflow:hidden}.components-color-picker__saturation-white{background:linear-gradient(to right,#fff,rgba(255,255,255,0))}.components-color-picker__saturation-black{background:linear-gradient(to top,#000,rgba(0,0,0,0))}.components-color-picker__saturation-pointer{width:8px;height:8px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;background-color:transparent;transform:translate(-4px,-4px)}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(-45deg,#ddd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ddd 75%),linear-gradient(-45deg,transparent 75%,#ddd 75%);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{left:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(-7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #00a0d2,0 0 5px 0 #00a0d2,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#00a0d2;box-shadow:0 0 0 2px #00a0d2,0 0 3px 0 #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end}.components-color-picker__inputs-wrapper fieldset{flex:1}.components-color-picker__inputs-fields{display:flex}.components-color-picker__inputs-fields .components-base-control__field{margin:0 4px}svg.dashicon{fill:currentColor;outline:0}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:initial}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{background:#fff;position:relative;text-align:left}.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:initial}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-top:0;border-right:0;border-bottom:2px solid transparent;border-left:0;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-top:0;border-right:0;border-bottom:2px solid #008489;border-left:0}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime .components-datetime__calendar-help{padding:8px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__date-help-button{display:block;margin-left:auto;margin-right:8px;margin-top:.5em}.components-datetime__date{min-height:236px;border-top:1px solid #e2e4e7;margin-left:-8px;margin-right:-8px}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarDay{font-size:13px;border:1px solid transparent;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay__selected{background:#0085ba}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected{background:#d1864a}body.admin-color-ocean .components-datetime__date .CalendarDay__selected{background:#a3b9a2}body.admin-color-midnight .components-datetime__date .CalendarDay__selected{background:#e14d43}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected{background:#a7b656}body.admin-color-coffee .components-datetime__date .CalendarDay__selected{background:#c2a68c}body.admin-color-blue .components-datetime__date .CalendarDay__selected{background:#82b4cb}body.admin-color-light .components-datetime__date .CalendarDay__selected{background:#0085ba}.components-datetime__date .CalendarDay__selected:hover{background:#00719e}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected:hover{background:#b2723f}body.admin-color-ocean .components-datetime__date .CalendarDay__selected:hover{background:#8b9d8a}body.admin-color-midnight .components-datetime__date .CalendarDay__selected:hover{background:#bf4139}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected:hover{background:#8e9b49}body.admin-color-coffee .components-datetime__date .CalendarDay__selected:hover{background:#a58d77}body.admin-color-blue .components-datetime__date .CalendarDay__selected:hover{background:#6f99ad}body.admin-color-light .components-datetime__date .CalendarDay__selected:hover{background:#00719e}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date.is-description-visible .DayPicker,.components-datetime__date.is-description-visible .components-datetime__date-help-button{visibility:hidden}.components-datetime__time{margin-bottom:1em}.components-datetime__time fieldset{margin-top:.5em;position:relative}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 3px 0 0;color:#555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button{margin-left:8px;margin-right:-1px;border-radius:3px 0 0 3px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button{margin-left:-1px;border-radius:0 3px 3px 0}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-toggled,.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-toggled{background:#edeff0;border-color:#8f98a1;box-shadow:inset 0 2px 5px -3px #555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field{align-self:center;flex:0 1 auto;order:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field.am-pm button{font-size:11px;font-weight:600}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{padding:2px;margin-right:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-right:4px;width:40px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:0 -4px 0 0!important;border-radius:4px 0 0 4px!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:0 4px 4px 0!important}.components-datetime__time.is-24-hour .components-datetime__time-field-day{order:0!important}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;left:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{width:90px}.components-popover .components-datetime__date{padding-left:6px}.components-popover.edit-post-post-schedule__dialog.is-bottom.is-left{z-index:100000}.components-disabled{position:relative;pointer-events:none}.components-disabled::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:-webkit-grabbing!important;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;left:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:20px;background:0 0;pointer-events:none;z-index:1000000000;opacity:.8}.components-drop-zone{position:absolute;top:0;right:0;bottom:0;left:0;z-index:100;visibility:hidden;opacity:0;transition:.3s opacity,.3s background-color,0s visibility .3s;border:2px solid #0071a1;border-radius:2px}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:.3s opacity,.3s background-color}.components-drop-zone.is-dragging-over-element{background-color:rgba(0,113,161,.8)}.components-drop-zone__content{position:absolute;top:50%;left:0;right:0;z-index:110;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown-menu{padding:3px;display:flex}.components-dropdown-menu .components-dropdown-menu__toggle{width:auto;margin:0;padding:4px;border:1px solid transparent;display:flex;flex-direction:row}.components-dropdown-menu .components-dropdown-menu__toggle.is-active,.components-dropdown-menu .components-dropdown-menu__toggle.is-active:hover{box-shadow:none;background-color:#555d66;color:#fff}.components-dropdown-menu .components-dropdown-menu__toggle:focus::before{top:-3px;right:-3px;bottom:-3px;left:-3px}.components-dropdown-menu .components-dropdown-menu__toggle:focus,.components-dropdown-menu .components-dropdown-menu__toggle:hover,.components-dropdown-menu .components-dropdown-menu__toggle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-dropdown-menu .components-dropdown-menu__toggle .components-dropdown-menu__indicator::after{content:"";pointer-events:none;display:block;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid currentColor;margin-left:4px;margin-right:2px}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;padding:9px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item{width:100%;padding:6px;outline:0;cursor:pointer;margin-bottom:4px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator::before{display:block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:-3px;left:0;right:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:focus:not(:disabled):not([aria-disabled=true]):not(.is-default){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg{border-radius:4px;padding:2px;width:24px;height:24px;margin:-1px 8px -1px 0}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled=true]):not(.is-default).is-active>svg{outline:0;color:#fff;box-shadow:none;background:#555d66}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle}.components-font-size-picker__buttons{display:flex;justify-content:space-between;align-items:center}.components-font-size-picker__buttons .components-range-control__number{height:24px;line-height:22px}.components-font-size-picker__buttons .components-range-control__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker__dropdown-content .components-button{display:block;position:relative;padding:10px 20px 10px 40px;width:100%;text-align:left}.components-font-size-picker__dropdown-content .components-button .dashicon{position:absolute;top:calc(50% - 10px);left:10px}.components-font-size-picker__buttons .components-font-size-picker__selector{border:1px solid;background:0 0;position:relative;width:110px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-font-size-picker__buttons .components-font-size-picker__selector:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-font-size-picker__buttons .components-font-size-picker__selector::after{content:"";pointer-events:none;display:block;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid currentColor;margin-left:4px;margin-right:2px;right:8px;top:12px;position:absolute}.components-form-file-upload .components-button.is-large{padding-left:6px}.components-form-toggle{position:relative}.components-form-toggle .components-form-toggle__off,.components-form-toggle .components-form-toggle__on{position:absolute;top:6px}.components-form-toggle .components-form-toggle__off{color:#6c7781;fill:currentColor;right:6px}.components-form-toggle .components-form-toggle__on{left:8px}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;vertical-align:top;background-color:#fff;border:2px solid #6c7781;width:36px;height:18px;border-radius:9px;transition:.2s background ease}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;top:4px;left:4px;width:10px;height:10px;border-radius:50%;transition:.1s transform ease;background-color:#6c7781;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__track{border:2px solid #555d66}.components-form-toggle:hover .components-form-toggle__thumb{background-color:#555d66;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__off{color:#555d66}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:2px solid #11a0d2;border:9px solid transparent}body.admin-color-sunrise .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked .components-form-toggle__track{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked .components-form-toggle__track{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:2px solid #11a0d2}.components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3px #6c7781;outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.components-form-toggle.is-checked::before{background-color:#11a0d2;border:2px solid #11a0d2}body.admin-color-sunrise .components-form-toggle.is-checked::before{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked::before{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked::before{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked::before{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked::before{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked::before{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked::before{background-color:#11a0d2;border:2px solid #11a0d2}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:0 0}.components-form-toggle input.components-form-toggle__input[type=checkbox]::before{content:""}.components-form-toggle .components-form-toggle__on{outline:1px solid transparent;outline-offset:-1px;border:1px solid #000;filter:invert(100%) contrast(500%)}@supports (-ms-high-contrast-adjust:auto){.components-form-toggle .components-form-toggle__on{filter:none;border:1px solid #fff}}.components-form-token-field__input-container{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0;padding:4px;background-color:#fff;border:1px solid #ccd0d4;color:#32373c;cursor:text;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-form-token-field__input-container.is-disabled{background:#e2e4e7;border-color:#ccd0d4}.components-form-token-field__input-container.is-active{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin:2px 0 2px 8px;padding:0;min-height:24px;background:inherit;border:0;font-size:13px;color:#23282d;box-shadow:none}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:0;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 4px 2px 0;color:#32373c;overflow:hidden}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#d94f4f}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#555d66}.components-form-token-field__token.is-borderless{position:relative;padding:0 16px 0 0}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:0 0;color:#11a0d2}body.admin-color-sunrise .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c8b03c}body.admin-color-ocean .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#a89d8a}body.admin-color-midnight .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#77a6b9}body.admin-color-ectoplasm .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c77430}body.admin-color-coffee .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#9fa47b}body.admin-color-blue .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#d9ab59}body.admin-color-light .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c75726}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:0 0;color:#555d66;position:absolute;top:1px;right:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#d94f4f;border-radius:4px 0 0 4px;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#23282d}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-icon-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;background:#e2e4e7;transition:all .2s cubic-bezier(.4, 1, .4, 1)}.components-form-token-field__token-text{border-radius:12px 0 0 12px;padding:0 4px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-icon-button{cursor:pointer;border-radius:0 12px 12px 0;padding:0 2px;color:#555d66;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-icon-button:hover{color:#32373c}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:scroll;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #6c7781;margin:4px -4px -4px;padding-top:3px}.components-form-token-field__suggestion{color:#555d66;display:block;font-size:13px;padding:4px 8px;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#0071a1;color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}.components-navigate-regions.is-focusing-regions [role=region]:focus::after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;outline:4px solid transparent;animation:editor-animation__region-focus .2s ease-out;animation-fill-mode:forwards}@keyframes editor-animation__region-focus{from{box-shadow:inset 0 0 0 0 #33b3db}to{box-shadow:inset 0 0 0 4px #33b3db}}.components-icon-button{display:flex;align-items:center;padding:8px;margin:0;border:none;background:0 0;color:#555d66;position:relative;overflow:hidden;border-radius:4px}.components-icon-button .dashicon{display:inline-block;flex:0 0 auto}.components-icon-button svg{fill:currentColor;outline:0}.components-icon-button svg:not:only-child{margin-right:4px}.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,.2)}.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):active{outline:0;background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #ccd0d4,inset 0 0 0 2px #fff}.components-icon-button:disabled:focus,.components-icon-button[aria-disabled=true]:focus{box-shadow:none}.components-menu-group{width:100%;padding:7px}.components-menu-group__label{margin-bottom:8px;color:#6c7781}.components-menu-item__button,.components-menu-item__button.components-icon-button{width:100%;padding:8px;text-align:left;color:#40464d}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button .dashicon,.components-menu-item__button.components-icon-button .components-menu-items__item-icon,.components-menu-item__button.components-icon-button .dashicon,.components-menu-item__button.components-icon-button>span>svg,.components-menu-item__button>span>svg{margin-right:4px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-icon-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]){color:#555d66}@media (min-width:782px){.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none}}.components-menu-item__button.components-icon-button:focus:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;opacity:.82}.components-menu-item__shortcut{align-self:center;opacity:.5;margin-right:0;margin-left:auto;padding-left:8px;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-modal__screen-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(255,255,255,.4);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}.components-modal__frame{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;margin:0;border:1px solid #e2e4e7;background:#fff;box-shadow:0 3px 30px rgba(25,30,35,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;right:auto;bottom:auto;left:50%;min-width:360px;max-width:calc(100% - 16px - 16px);max-height:calc(100% - 56px - 56px);transform:translate(-50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@keyframes components-modal__appear-animation{from{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #e2e4e7;padding:0 16px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:56px;position:-webkit-sticky;position:sticky;top:0;z-index:10;margin:0 -16px 16px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1em;font-weight:400}.components-modal__header h1{line-height:1;margin:0}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 16px 16px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:56px}}.components-notice{background-color:#e5f5fa;border-left:4px solid #00a0d2;margin:5px 15px 2px;padding:8px 12px}.components-notice.is-dismissible{padding-right:36px;position:relative}.components-notice.is-success{border-left-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-left-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-left-color:#d94f4f;background-color:#f9e2e2}.components-notice__content{margin:1em 0}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-left:4px}.components-notice__dismiss{position:absolute;top:0;right:0;color:#6c7781}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#d94f4f;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none}.components-notice-list{min-width:300px;z-index:9989}.components-panel{background:#fff;border:1px solid #e2e4e7}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__body>.components-icon-button{color:#191e23}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:50px;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:.1s background ease-in-out}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px;margin-bottom:5px}.components-panel__body>.components-panel__body-title:hover,.edit-post-last-revision__panel>.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background:#f8f9f9}.components-panel__body-toggle.components-button{position:relative;padding:15px;outline:0;width:100%;font-weight:600;text-align:left;color:#191e23;border:none;box-shadow:none;transition:.1s background ease-in-out}.components-panel__body-toggle.components-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#191e23;fill:currentColor;transition:.1s color ease-in-out}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#555d66;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.components-panel__row select{min-width:0}.components-panel__row label{margin-right:10px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;width:100%;text-align:center;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;background:rgba(139,139,150,.1)}.is-dark-theme .components-placeholder{background:rgba(255,255,255,.15)}.components-placeholder__label{display:flex;justify-content:center;font-weight:600;margin-bottom:1em}.components-placeholder__label .dashicon,.components-placeholder__label .editor-block-icon{margin-right:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;justify-content:center;width:100%;max-width:400px;flex-wrap:wrap;z-index:1}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px}.components-placeholder__input{margin-right:8px;flex:1 1 auto}.components-placeholder__instructions{margin-bottom:1em}/*!rtl:begin:ignore*/.components-popover{position:fixed;z-index:1000000;left:50%}.components-popover.is-mobile{top:0;left:0;right:0;bottom:0}.components-popover:not(.is-without-arrow):not(.is-mobile){margin-left:2px}.components-popover:not(.is-without-arrow):not(.is-mobile)::before{border:8px solid #e2e4e7}.components-popover:not(.is-without-arrow):not(.is-mobile)::after{border:8px solid #fff}.components-popover:not(.is-without-arrow):not(.is-mobile)::after,.components-popover:not(.is-without-arrow):not(.is-mobile)::before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top{margin-top:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::before{bottom:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::after{bottom:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom{margin-top:8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::before{top:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::after{top:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left{margin-left:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::before{right:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::after{right:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right{margin-left:8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::before{left:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::after{left:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover:not(.is-mobile).is-top{bottom:100%}.components-popover:not(.is-mobile).is-bottom{top:100%;z-index:99990}.components-popover:not(.is-mobile).is-middle{align-items:center;display:flex}.components-popover__content{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff;height:100%}.components-popover.is-mobile .components-popover__content{height:calc(100% - 50px);border-top:0}.components-popover:not(.is-mobile) .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover:not(.is-mobile).is-top .components-popover__content{bottom:100%}.components-popover:not(.is-mobile).is-center .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover:not(.is-mobile).is-right .components-popover__content{position:absolute;left:100%}.components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content{margin-left:-24px}.components-popover:not(.is-mobile).is-left .components-popover__content{position:absolute;right:100%}.components-popover:not(.is-mobile):not(.is-middle).is-left .components-popover__content{margin-right:-24px}.components-popover__content>div{height:100%}.components-popover__header{align-items:center;background:#fff;border:1px solid #e2e4e7;display:flex;height:50px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-icon-button{z-index:5}/*!rtl:end:ignore*/.components-radio-control{display:flex;flex-direction:column}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{margin-top:0;margin-right:6px}.components-range-control .components-base-control__field{display:flex;justify-content:center;flex-wrap:wrap;align-items:center}.components-range-control .dashicon{flex-shrink:0;margin-right:10px}.components-range-control .components-base-control__label{width:100%}.components-range-control .components-range-control__slider{margin-left:0;flex:1}.components-range-control__slider{width:100%;margin-left:8px;padding:0;-webkit-appearance:none;background:0 0}.components-range-control__slider::-webkit-slider-thumb{-webkit-appearance:none;height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:-7px}.components-range-control__slider::-moz-range-thumb{height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box}.components-range-control__slider::-ms-thumb{height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:0;height:14px;width:14px;border:2px solid transparent}.components-range-control__slider:focus{outline:0}.components-range-control__slider:focus::-webkit-slider-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider:focus::-moz-range-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider:focus::-ms-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider::-webkit-slider-runnable-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px;margin-top:-4px}.components-range-control__slider::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.components-range-control__slider::-ms-track{margin-top:-4px;background:0 0;border-color:transparent;color:transparent;height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.components-range-control__number{display:inline-block;margin-left:8px;font-weight:500;width:50px;padding:3px 5px!important}.components-resizable-box__handle{display:none;width:24px;height:24px;padding:4px}.components-resizable-box__container.is-selected .components-resizable-box__handle{display:block}.components-resizable-box__handle::before{display:block;content:"";width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:#0085ba;cursor:inherit}body.admin-color-sunrise .components-resizable-box__handle::before{background:#d1864a}body.admin-color-ocean .components-resizable-box__handle::before{background:#a3b9a2}body.admin-color-midnight .components-resizable-box__handle::before{background:#e14d43}body.admin-color-ectoplasm .components-resizable-box__handle::before{background:#a7b656}body.admin-color-coffee .components-resizable-box__handle::before{background:#c2a68c}body.admin-color-blue .components-resizable-box__handle::before{background:#82b4cb}body.admin-color-light .components-resizable-box__handle::before{background:#0085ba}/*!rtl:begin:ignore*/.components-resizable-box__handle-right{top:calc(50% - 12px);right:calc(12px * -1)}.components-resizable-box__handle-bottom{bottom:calc(12px * -1);left:calc(50% - 12px)}.components-resizable-box__handle-left{top:calc(50% - 12px);left:calc(12px * -1)}/*!rtl:end:ignore*/.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper__content{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.components-sandbox{overflow:hidden}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-spinner{display:inline-block;background-color:#7e8993;width:18px;height:18px;opacity:.7;float:right;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner::before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s infinite linear}@keyframes components-spinner__animation{from{transform:rotate(0)}to{transform:rotate(360deg)}}.components-text-control__input{width:100%;padding:6px 8px}.components-textarea-control__input{width:100%;padding:6px 8px}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px}.components-toggle-control .components-base-control__field .components-form-toggle{margin-right:16px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block;margin-bottom:4px}.components-toolbar{margin:0;border:1px solid #e2e4e7;background-color:#fff;display:flex;flex-shrink:0}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div{margin-left:-3px}div.components-toolbar>div+div.has-left-divider{margin-left:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider::before{display:inline-block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:8px;left:-3px;width:1px;height:20px}.components-toolbar__control.components-button{display:inline-flex;align-items:flex-end;margin:0;padding:3px;outline:0;cursor:pointer;position:relative;width:36px;height:36px}.components-toolbar__control.components-button:active,.components-toolbar__control.components-button:not([aria-disabled=true]):focus,.components-toolbar__control.components-button:not([aria-disabled=true]):hover{outline:0;box-shadow:none;background:0 0;border:none}.components-toolbar__control.components-button:disabled{cursor:default}.components-toolbar__control.components-button>svg{padding:5px;border-radius:4px;height:30px;width:30px}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]::after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;right:8px;bottom:10px}.components-toolbar__control.components-button:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.components-toolbar__control.components-button:not(:disabled).is-active>svg,.components-toolbar__control.components-button:not(:disabled):hover>svg{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-toolbar__control.components-button:not(:disabled).is-active>svg{outline:0;color:#fff;box-shadow:none;background:#555d66}.components-toolbar__control.components-button:not(:disabled).is-active[data-subscript]::after{color:#fff}.components-toolbar__control.components-button:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-toolbar__control .dashicon{display:block}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover::before{border-color:transparent}.components-tooltip.components-popover.is-top::after{border-top-color:#191e23}.components-tooltip.components-popover.is-bottom::after{border-bottom-color:#191e23}.components-tooltip .components-popover__content{padding:4px 12px;background:#191e23;border-width:0;color:#fff;white-space:nowrap}.components-tooltip:not(.is-mobile) .components-popover__content{min-width:0}.components-tooltip__shortcut{display:block;text-align:center;color:#7e8993} \ No newline at end of file +.components-autocomplete__popover .components-popover__content{min-width:200px}.components-autocomplete__popover .components-autocomplete__results{padding:3px;display:flex;flex-direction:column;align-items:stretch}.components-autocomplete__popover .components-autocomplete__results:empty{display:none}.components-autocomplete__result.components-button{margin-bottom:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;color:#555d66;display:flex;flex-direction:row;flex-grow:1;flex-shrink:0;align-items:center;padding:6px;text-align:left}.components-autocomplete__result.components-button.is-selected{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-autocomplete__result.components-button:hover{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,.2)}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:block;margin-bottom:4px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic;margin-bottom:0}.components-button-group{display:inline-block}.components-button-group .components-button.is-button{border-radius:0}.components-button-group .components-button.is-button+.components-button.is-button{margin-left:-1px}.components-button-group .components-button.is-button:first-child{border-radius:3px 0 0 3px}.components-button-group .components-button.is-button:last-child{border-radius:0 3px 3px 0}.components-button-group .components-button.is-button.is-primary,.components-button-group .components-button.is-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-button.is-primary{box-shadow:none}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:0 0}.components-button.is-button{padding:0 10px 1px;line-height:26px;height:28px;border-radius:3px;white-space:nowrap;border-width:1px;border-style:solid}.components-button.is-default{color:#555;border-color:#ccc;background:#f7f7f7;box-shadow:inset 0 -1px 0 #ccc;vertical-align:top}.components-button.is-default:hover{background:#fafafa;border-color:#999;box-shadow:inset 0 -1px 0 #999;color:#23282d;text-decoration:none}.components-button.is-default:focus:enabled{background:#fafafa;color:#23282d;border-color:#999;box-shadow:inset 0 -1px 0 #999,0 0 0 2px #bfe7f3;text-decoration:none}.components-button.is-default:active:enabled{background:#eee;border-color:#999;box-shadow:inset 0 1px 0 #999}.components-button.is-default:disabled,.components-button.is-default[aria-disabled=true]{color:#a0a5aa;border-color:#ddd;background:#f7f7f7;box-shadow:none;text-shadow:0 1px 0 #fff;transform:none}.components-button.is-primary{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #005d82,1px 0 1px #005d82,0 1px 1px #005d82,-1px 0 1px #005d82}body.admin-color-sunrise .components-button.is-primary{background:#d1864a;border-color:#a76b3b #9d6538 #9d6538;box-shadow:inset 0 -1px 0 #9d6538;text-shadow:0 -1px 1px #925e34,1px 0 1px #925e34,0 1px 1px #925e34,-1px 0 1px #925e34}body.admin-color-ocean .components-button.is-primary{background:#a3b9a2;border-color:#829482 #7a8b7a #7a8b7a;box-shadow:inset 0 -1px 0 #7a8b7a;text-shadow:0 -1px 1px #728271,1px 0 1px #728271,0 1px 1px #728271,-1px 0 1px #728271}body.admin-color-midnight .components-button.is-primary{background:#e14d43;border-color:#b43e36 #a93a32 #a93a32;box-shadow:inset 0 -1px 0 #a93a32;text-shadow:0 -1px 1px #9e362f,1px 0 1px #9e362f,0 1px 1px #9e362f,-1px 0 1px #9e362f}body.admin-color-ectoplasm .components-button.is-primary{background:#a7b656;border-color:#869245 #7d8941 #7d8941;box-shadow:inset 0 -1px 0 #7d8941;text-shadow:0 -1px 1px #757f3c,1px 0 1px #757f3c,0 1px 1px #757f3c,-1px 0 1px #757f3c}body.admin-color-coffee .components-button.is-primary{background:#c2a68c;border-color:#9b8570 #927d69 #927d69;box-shadow:inset 0 -1px 0 #927d69;text-shadow:0 -1px 1px #887462,1px 0 1px #887462,0 1px 1px #887462,-1px 0 1px #887462}body.admin-color-blue .components-button.is-primary{background:#d9ab59;border-color:#ae8947 #a38043 #a38043;box-shadow:inset 0 -1px 0 #a38043;text-shadow:0 -1px 1px #98783e,1px 0 1px #98783e,0 1px 1px #98783e,-1px 0 1px #98783e}body.admin-color-light .components-button.is-primary{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;text-shadow:0 -1px 1px #005d82,1px 0 1px #005d82,0 1px 1px #005d82,-1px 0 1px #005d82}.components-button.is-primary:focus:enabled,.components-button.is-primary:hover{background:#007eb1;border-color:#00435d;color:#fff}body.admin-color-sunrise .components-button.is-primary:focus:enabled,body.admin-color-sunrise .components-button.is-primary:hover{background:#c77f46;border-color:#694325}body.admin-color-ocean .components-button.is-primary:focus:enabled,body.admin-color-ocean .components-button.is-primary:hover{background:#9bb09a;border-color:#525d51}body.admin-color-midnight .components-button.is-primary:focus:enabled,body.admin-color-midnight .components-button.is-primary:hover{background:#d64940;border-color:#712722}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary:hover{background:#9fad52;border-color:#545b2b}body.admin-color-coffee .components-button.is-primary:focus:enabled,body.admin-color-coffee .components-button.is-primary:hover{background:#b89e85;border-color:#615346}body.admin-color-blue .components-button.is-primary:focus:enabled,body.admin-color-blue .components-button.is-primary:hover{background:#cea255;border-color:#6d562d}body.admin-color-light .components-button.is-primary:focus:enabled,body.admin-color-light .components-button.is-primary:hover{background:#007eb1;border-color:#00435d}.components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #00435d}body.admin-color-sunrise .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #694325}body.admin-color-ocean .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #525d51}body.admin-color-midnight .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #712722}body.admin-color-ectoplasm .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #545b2b}body.admin-color-coffee .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #615346}body.admin-color-blue .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #6d562d}body.admin-color-light .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #00435d}.components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}body.admin-color-sunrise .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #694325,0 0 0 2px #bfe7f3}body.admin-color-ocean .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #525d51,0 0 0 2px #bfe7f3}body.admin-color-midnight .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #712722,0 0 0 2px #bfe7f3}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #545b2b,0 0 0 2px #bfe7f3}body.admin-color-coffee .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #615346,0 0 0 2px #bfe7f3}body.admin-color-blue .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #6d562d,0 0 0 2px #bfe7f3}body.admin-color-light .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}.components-button.is-primary:active:enabled{background:#006a95;border-color:#00435d;box-shadow:inset 0 1px 0 #00435d;vertical-align:top}body.admin-color-sunrise .components-button.is-primary:active:enabled{background:#a76b3b;border-color:#694325;box-shadow:inset 0 1px 0 #694325}body.admin-color-ocean .components-button.is-primary:active:enabled{background:#829482;border-color:#525d51;box-shadow:inset 0 1px 0 #525d51}body.admin-color-midnight .components-button.is-primary:active:enabled{background:#b43e36;border-color:#712722;box-shadow:inset 0 1px 0 #712722}body.admin-color-ectoplasm .components-button.is-primary:active:enabled{background:#869245;border-color:#545b2b;box-shadow:inset 0 1px 0 #545b2b}body.admin-color-coffee .components-button.is-primary:active:enabled{background:#9b8570;border-color:#615346;box-shadow:inset 0 1px 0 #615346}body.admin-color-blue .components-button.is-primary:active:enabled{background:#ae8947;border-color:#6d562d;box-shadow:inset 0 1px 0 #6d562d}body.admin-color-light .components-button.is-primary:active:enabled{background:#006a95;border-color:#00435d;box-shadow:inset 0 1px 0 #00435d}.components-button.is-primary:disabled,.components-button.is-primary[aria-disabled=true]{color:#4daacf;background:#005d82;border-color:#006a95;box-shadow:none;text-shadow:0 -1px 0 rgba(0,0,0,.1)}body.admin-color-sunrise .components-button.is-primary:disabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]{color:#dfaa80;background:#925e34;border-color:#a76b3b}body.admin-color-ocean .components-button.is-primary:disabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true]{color:#bfcebe;background:#728271;border-color:#829482}body.admin-color-midnight .components-button.is-primary:disabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true]{color:#ea827b;background:#9e362f;border-color:#b43e36}body.admin-color-ectoplasm .components-button.is-primary:disabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]{color:#c1cc89;background:#757f3c;border-color:#869245}body.admin-color-coffee .components-button.is-primary:disabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true]{color:#d4c1af;background:#887462;border-color:#9b8570}body.admin-color-blue .components-button.is-primary:disabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true]{color:#e4c48b;background:#98783e;border-color:#ae8947}body.admin-color-light .components-button.is-primary:disabled,body.admin-color-light .components-button.is-primary[aria-disabled=true]{color:#4daacf;background:#005d82;border-color:#006a95}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(-45deg,#0085ba 28%,#005d82 28%,#005d82 72%,#0085ba 72%);border-color:#00435d}body.admin-color-sunrise .components-button.is-primary.is-busy,body.admin-color-sunrise .components-button.is-primary.is-busy:disabled,body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#d1864a 28%,#925e34 28%,#925e34 72%,#d1864a 72%);border-color:#694325}body.admin-color-ocean .components-button.is-primary.is-busy,body.admin-color-ocean .components-button.is-primary.is-busy:disabled,body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#a3b9a2 28%,#728271 28%,#728271 72%,#a3b9a2 72%);border-color:#525d51}body.admin-color-midnight .components-button.is-primary.is-busy,body.admin-color-midnight .components-button.is-primary.is-busy:disabled,body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#e14d43 28%,#9e362f 28%,#9e362f 72%,#e14d43 72%);border-color:#712722}body.admin-color-ectoplasm .components-button.is-primary.is-busy,body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled,body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#a7b656 28%,#757f3c 28%,#757f3c 72%,#a7b656 72%);border-color:#545b2b}body.admin-color-coffee .components-button.is-primary.is-busy,body.admin-color-coffee .components-button.is-primary.is-busy:disabled,body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#c2a68c 28%,#887462 28%,#887462 72%,#c2a68c 72%);border-color:#615346}body.admin-color-blue .components-button.is-primary.is-busy,body.admin-color-blue .components-button.is-primary.is-busy:disabled,body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#82b4cb 28%,#5b7e8e 28%,#5b7e8e 72%,#82b4cb 72%);border-color:#415a66}body.admin-color-light .components-button.is-primary.is-busy,body.admin-color-light .components-button.is-primary.is-busy:disabled,body.admin-color-light .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#0085ba 28%,#005d82 28%,#005d82 72%,#0085ba 72%);border-color:#00435d}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:0 0;outline:0;text-align:left;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:50ms;transition-timing-function:ease-in-out}.components-button.is-link:active,.components-button.is-link:hover{color:#00a0d2}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#d94f4f}.components-button:active{color:currentColor}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button:focus:enabled{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-button.is-busy{animation:components-button__busy-animation 2.5s infinite linear;background-size:100px 100%;background-image:repeating-linear-gradient(-45deg,#e2e4e7,#fff 11px,#fff 10px,#e2e4e7 20px);opacity:1}.components-button.is-large{height:30px;line-height:28px;padding:0 12px 2px}.components-button.is-small{height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.components-button.is-tertiary{color:#007cba;padding:0 10px;line-height:26px;height:28px}body.admin-color-sunrise .components-button.is-tertiary{color:#837425}body.admin-color-ocean .components-button.is-tertiary{color:#5e7d5e}body.admin-color-midnight .components-button.is-tertiary{color:#497b8d}body.admin-color-ectoplasm .components-button.is-tertiary{color:#523f6d}body.admin-color-coffee .components-button.is-tertiary{color:#59524c}body.admin-color-blue .components-button.is-tertiary{color:#417e9b}body.admin-color-light .components-button.is-tertiary{color:#007cba}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-tertiary svg{fill:currentColor;outline:0}.components-button.is-tertiary:active:focus:enabled{box-shadow:none}.components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#005d8c}body.admin-color-sunrise .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#62571c}body.admin-color-ocean .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#475e47}body.admin-color-midnight .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#375c6a}body.admin-color-ectoplasm .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#3e2f52}body.admin-color-coffee .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#433e39}body.admin-color-blue .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#315f74}body.admin-color-light .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#005d8c}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{margin-top:0}.component-color-indicator{width:25px;height:16px;margin-left:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-left:.5rem}.components-color-palette{margin-right:-14px}.components-color-palette .components-color-palette__clear{float:right;margin-right:20px}.components-color-palette__item-wrapper{display:inline-block;height:28px;width:28px;margin-right:14px;margin-bottom:14px;vertical-align:top;transform:scale(1);transition:.1s transform ease}.components-color-palette__item-wrapper:hover{transform:scale(1.2)}.components-color-palette__item-wrapper>div{height:100%;width:100%}.components-color-palette__item{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:0 0;box-shadow:inset 0 0 0 14px;transition:.1s box-shadow ease;cursor:pointer}.components-color-palette__item.is-active{box-shadow:inset 0 0 0 4px}.components-color-palette__item::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}.components-color-palette__item:focus{outline:0}.components-color-palette__item:focus::after{content:"";border:1px solid #606a73;width:32px;height:32px;position:absolute;top:-2px;left:-2px;border-radius:50%}.components-color-palette__clear-color .components-color-palette__item{color:#fff;background:#fff}.components-color-palette__clear-color-line{display:block;position:absolute;border:2px solid #d94f4f;border-radius:50%;top:0;left:0;bottom:0;right:0}.components-color-palette__clear-color-line::before{position:absolute;top:0;left:0;content:"";width:100%;height:100%;border-bottom:2px solid #d94f4f;transform:rotate(45deg) translateY(-13px) translateX(-1px)}.components-color-palette__custom-color .components-color-palette__item{position:relative;box-shadow:none}.components-color-palette__custom-color .components-color-palette__custom-color-gradient{display:block;width:100%;height:100%;position:absolute;top:0;left:0;border-radius:50%;overflow:hidden}.components-color-palette__custom-color .components-color-palette__custom-color-gradient::before{content:"";-webkit-filter:blur(6px) saturate(0.7) brightness(1.1);filter:blur(6px) saturate(.7) brightness(1.1);display:block;width:200%;height:200%;position:absolute;top:-50%;left:-50%;padding-top:100%;transform:scale(1);background-image:linear-gradient(330deg,transparent 50%,#ff8100 50%),linear-gradient(300deg,transparent 50%,#ff5800 50%),linear-gradient(270deg,transparent 50%,#c92323 50%),linear-gradient(240deg,transparent 50%,#cc42a2 50%),linear-gradient(210deg,transparent 50%,#9f49ac 50%),linear-gradient(180deg,transparent 50%,#306cd3 50%),linear-gradient(150deg,transparent 50%,#179067 50%),linear-gradient(120deg,transparent 50%,#0eb5d6 50%),linear-gradient(90deg,transparent 50%,#50b517 50%),linear-gradient(60deg,transparent 50%,#ede604 50%),linear-gradient(30deg,transparent 50%,#fc0 50%),linear-gradient(0deg,transparent 50%,#feac00 50%);background-clip:content-box,content-box,content-box,content-box,content-box,content-box,padding-box,padding-box,padding-box,padding-box,padding-box,padding-box}.block-editor__container .components-popover.components-color-palette__picker.is-bottom{z-index:100001}.components-color-picker{width:100%;overflow:hidden}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-right:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(-45deg,#ddd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ddd 75%),linear-gradient(-45deg,transparent 75%,#ddd 75%);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__saturation-color{overflow:hidden}.components-color-picker__saturation-white{background:linear-gradient(to right,#fff,rgba(255,255,255,0))}.components-color-picker__saturation-black{background:linear-gradient(to top,#000,rgba(0,0,0,0))}.components-color-picker__saturation-pointer{width:8px;height:8px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;background-color:transparent;transform:translate(-4px,-4px)}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(-45deg,#ddd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ddd 75%),linear-gradient(-45deg,transparent 75%,#ddd 75%);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{left:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(-7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #00a0d2,0 0 5px 0 #00a0d2,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#00a0d2;box-shadow:0 0 0 2px #00a0d2,0 0 3px 0 #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end}.components-color-picker__inputs-wrapper fieldset{flex:1}.components-color-picker__inputs-fields{display:flex}.components-color-picker__inputs-fields .components-base-control__field{margin:0 4px}svg.dashicon{fill:currentColor;outline:0}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:initial}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{background:#fff;position:relative;text-align:left}.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:initial}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-top:0;border-right:0;border-bottom:2px solid transparent;border-left:0;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-top:0;border-right:0;border-bottom:2px solid #008489;border-left:0}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime .components-datetime__calendar-help{padding:8px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__date-help-button{display:block;margin-left:auto;margin-right:8px;margin-top:.5em}.components-datetime__date{min-height:236px;border-top:1px solid #e2e4e7;margin-left:-8px;margin-right:-8px}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarDay{font-size:13px;border:1px solid transparent;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay__selected{background:#0085ba}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected{background:#d1864a}body.admin-color-ocean .components-datetime__date .CalendarDay__selected{background:#a3b9a2}body.admin-color-midnight .components-datetime__date .CalendarDay__selected{background:#e14d43}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected{background:#a7b656}body.admin-color-coffee .components-datetime__date .CalendarDay__selected{background:#c2a68c}body.admin-color-blue .components-datetime__date .CalendarDay__selected{background:#82b4cb}body.admin-color-light .components-datetime__date .CalendarDay__selected{background:#0085ba}.components-datetime__date .CalendarDay__selected:hover{background:#00719e}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected:hover{background:#b2723f}body.admin-color-ocean .components-datetime__date .CalendarDay__selected:hover{background:#8b9d8a}body.admin-color-midnight .components-datetime__date .CalendarDay__selected:hover{background:#bf4139}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected:hover{background:#8e9b49}body.admin-color-coffee .components-datetime__date .CalendarDay__selected:hover{background:#a58d77}body.admin-color-blue .components-datetime__date .CalendarDay__selected:hover{background:#6f99ad}body.admin-color-light .components-datetime__date .CalendarDay__selected:hover{background:#00719e}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date.is-description-visible .DayPicker,.components-datetime__date.is-description-visible .components-datetime__date-help-button{visibility:hidden}.components-datetime__time{margin-bottom:1em}.components-datetime__time fieldset{margin-top:.5em;position:relative}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 3px 0 0;color:#555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button{margin-left:8px;margin-right:-1px;border-radius:3px 0 0 3px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button{margin-left:-1px;border-radius:0 3px 3px 0}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-toggled,.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-toggled{background:#edeff0;border-color:#8f98a1;box-shadow:inset 0 2px 5px -3px #555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field{align-self:center;flex:0 1 auto;order:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field.am-pm button{font-size:11px;font-weight:600}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{padding:2px;margin-right:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-right:4px;width:40px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:0 -4px 0 0!important;border-radius:4px 0 0 4px!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:0 4px 4px 0!important}.components-datetime__time.is-24-hour .components-datetime__time-field-day{order:0!important}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;left:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{width:90px}.components-popover .components-datetime__date{padding-left:6px}.components-popover.edit-post-post-schedule__dialog.is-bottom.is-left{z-index:100000}.components-disabled{position:relative;pointer-events:none}.components-disabled::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:-webkit-grabbing!important;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;left:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:20px;background:0 0;pointer-events:none;z-index:1000000000;opacity:.8}.components-drop-zone{position:absolute;top:0;right:0;bottom:0;left:0;z-index:100;visibility:hidden;opacity:0;transition:.3s opacity,.3s background-color,0s visibility .3s;border:2px solid #0071a1;border-radius:2px}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:.3s opacity,.3s background-color}.components-drop-zone.is-dragging-over-element{background-color:rgba(0,113,161,.8)}.components-drop-zone__content{position:absolute;top:50%;left:0;right:0;z-index:110;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown-menu{padding:3px;display:flex}.components-dropdown-menu .components-dropdown-menu__toggle{width:auto;margin:0;padding:4px;border:1px solid transparent;display:flex;flex-direction:row}.components-dropdown-menu .components-dropdown-menu__toggle.is-active,.components-dropdown-menu .components-dropdown-menu__toggle.is-active:hover{box-shadow:none;background-color:#555d66;color:#fff}.components-dropdown-menu .components-dropdown-menu__toggle:focus::before{top:-3px;right:-3px;bottom:-3px;left:-3px}.components-dropdown-menu .components-dropdown-menu__toggle:focus,.components-dropdown-menu .components-dropdown-menu__toggle:hover,.components-dropdown-menu .components-dropdown-menu__toggle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-dropdown-menu .components-dropdown-menu__toggle .components-dropdown-menu__indicator::after{content:"";pointer-events:none;display:block;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid currentColor;margin-left:4px;margin-right:2px}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;padding:9px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item{width:100%;padding:6px;outline:0;cursor:pointer;margin-bottom:4px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator::before{display:block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:-3px;left:0;right:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:focus:not(:disabled):not([aria-disabled=true]):not(.is-default){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg{border-radius:4px;padding:2px;width:24px;height:24px;margin:-1px 8px -1px 0}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled=true]):not(.is-default).is-active>svg{outline:0;color:#fff;box-shadow:none;background:#555d66}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle}.components-font-size-picker__buttons{display:flex;justify-content:space-between;align-items:center}.components-font-size-picker__buttons .components-range-control__number{height:24px;line-height:22px}.components-font-size-picker__buttons .components-range-control__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker__dropdown-content .components-button{display:block;position:relative;padding:10px 20px 10px 40px;width:100%;text-align:left}.components-font-size-picker__dropdown-content .components-button .dashicon{position:absolute;top:calc(50% - 10px);left:10px}.components-font-size-picker__buttons .components-font-size-picker__selector{border:1px solid;background:0 0;position:relative;width:110px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-font-size-picker__buttons .components-font-size-picker__selector:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-font-size-picker__buttons .components-font-size-picker__selector::after{content:"";pointer-events:none;display:block;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid currentColor;margin-left:4px;margin-right:2px;right:8px;top:12px;position:absolute}.components-form-file-upload .components-button.is-large{padding-left:6px}.components-form-toggle{position:relative}.components-form-toggle .components-form-toggle__off,.components-form-toggle .components-form-toggle__on{position:absolute;top:6px}.components-form-toggle .components-form-toggle__off{color:#6c7781;fill:currentColor;right:6px}.components-form-toggle .components-form-toggle__on{left:8px}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;vertical-align:top;background-color:#fff;border:2px solid #6c7781;width:36px;height:18px;border-radius:9px;transition:.2s background ease}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;top:4px;left:4px;width:10px;height:10px;border-radius:50%;transition:.1s transform ease;background-color:#6c7781;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__track{border:2px solid #555d66}.components-form-toggle:hover .components-form-toggle__thumb{background-color:#555d66;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__off{color:#555d66}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:2px solid #11a0d2;border:9px solid transparent}body.admin-color-sunrise .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked .components-form-toggle__track{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked .components-form-toggle__track{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:2px solid #11a0d2}.components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3px #6c7781;outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.components-form-toggle.is-checked::before{background-color:#11a0d2;border:2px solid #11a0d2}body.admin-color-sunrise .components-form-toggle.is-checked::before{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked::before{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked::before{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked::before{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked::before{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked::before{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked::before{background-color:#11a0d2;border:2px solid #11a0d2}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:0 0}.components-form-toggle input.components-form-toggle__input[type=checkbox]::before{content:""}.components-form-toggle .components-form-toggle__on{outline:1px solid transparent;outline-offset:-1px;border:1px solid #000;-webkit-filter:invert(100%) contrast(500%);filter:invert(100%) contrast(500%)}@supports (-ms-high-contrast-adjust:auto){.components-form-toggle .components-form-toggle__on{-webkit-filter:none;filter:none;border:1px solid #fff}}.components-form-token-field__input-container{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0;padding:4px;background-color:#fff;border:1px solid #ccd0d4;color:#32373c;cursor:text;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-form-token-field__input-container.is-disabled{background:#e2e4e7;border-color:#ccd0d4}.components-form-token-field__input-container.is-active{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin:2px 0 2px 8px;padding:0;min-height:24px;background:inherit;border:0;font-size:13px;color:#23282d;box-shadow:none}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:0;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 4px 2px 0;color:#32373c;overflow:hidden}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#d94f4f}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#555d66}.components-form-token-field__token.is-borderless{position:relative;padding:0 16px 0 0}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:0 0;color:#11a0d2}body.admin-color-sunrise .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c8b03c}body.admin-color-ocean .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#a89d8a}body.admin-color-midnight .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#77a6b9}body.admin-color-ectoplasm .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c77430}body.admin-color-coffee .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#9fa47b}body.admin-color-blue .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#d9ab59}body.admin-color-light .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c75726}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:0 0;color:#555d66;position:absolute;top:1px;right:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#d94f4f;border-radius:4px 0 0 4px;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#23282d}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-icon-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;background:#e2e4e7;transition:all .2s cubic-bezier(.4, 1, .4, 1)}.components-form-token-field__token-text{border-radius:12px 0 0 12px;padding:0 4px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-icon-button{cursor:pointer;border-radius:0 12px 12px 0;padding:0 2px;color:#555d66;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-icon-button:hover{color:#32373c}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:scroll;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #6c7781;margin:4px -4px -4px;padding-top:3px}.components-form-token-field__suggestion{color:#555d66;display:block;font-size:13px;padding:4px 8px;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#0071a1;color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}.components-navigate-regions.is-focusing-regions [role=region]:focus::after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;outline:4px solid transparent;animation:editor-animation__region-focus .2s ease-out;animation-fill-mode:forwards}@keyframes editor-animation__region-focus{from{box-shadow:inset 0 0 0 0 #33b3db}to{box-shadow:inset 0 0 0 4px #33b3db}}.components-icon-button{display:flex;align-items:center;padding:8px;margin:0;border:none;background:0 0;color:#555d66;position:relative;overflow:hidden;border-radius:4px}.components-icon-button .dashicon{display:inline-block;flex:0 0 auto}.components-icon-button svg{fill:currentColor;outline:0}.components-icon-button svg:not:only-child{margin-right:4px}.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,.2)}.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):active{outline:0;background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #ccd0d4,inset 0 0 0 2px #fff}.components-icon-button:disabled:focus,.components-icon-button[aria-disabled=true]:focus{box-shadow:none}.components-menu-group{width:100%;padding:7px}.components-menu-group__label{margin-bottom:8px;color:#6c7781}.components-menu-item__button,.components-menu-item__button.components-icon-button{width:100%;padding:8px;text-align:left;color:#40464d}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button .dashicon,.components-menu-item__button.components-icon-button .components-menu-items__item-icon,.components-menu-item__button.components-icon-button .dashicon,.components-menu-item__button.components-icon-button>span>svg,.components-menu-item__button>span>svg{margin-right:4px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-icon-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]){color:#555d66}@media (min-width:782px){.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none}}.components-menu-item__button.components-icon-button:focus:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;opacity:.82}.components-menu-item__shortcut{align-self:center;opacity:.5;margin-right:0;margin-left:auto;padding-left:8px;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-modal__screen-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(255,255,255,.4);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}.components-modal__frame{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;margin:0;border:1px solid #e2e4e7;background:#fff;box-shadow:0 3px 30px rgba(25,30,35,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;right:auto;bottom:auto;left:50%;min-width:360px;max-width:calc(100% - 16px - 16px);max-height:calc(100% - 56px - 56px);transform:translate(-50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@keyframes components-modal__appear-animation{from{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #e2e4e7;padding:0 16px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:56px;position:-webkit-sticky;position:sticky;top:0;z-index:10;margin:0 -16px 16px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1em;font-weight:400}.components-modal__header h1{line-height:1;margin:0}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 16px 16px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:56px}}.components-notice{background-color:#e5f5fa;border-left:4px solid #00a0d2;margin:5px 15px 2px;padding:8px 12px}.components-notice.is-dismissible{padding-right:36px;position:relative}.components-notice.is-success{border-left-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-left-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-left-color:#d94f4f;background-color:#f9e2e2}.components-notice__content{margin:1em 0}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-left:4px}.components-notice__dismiss{position:absolute;top:0;right:0;color:#6c7781}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#d94f4f;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none}.components-notice-list{min-width:300px;z-index:9989}.components-panel{background:#fff;border:1px solid #e2e4e7}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__body>.components-icon-button{color:#191e23}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:50px;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:.1s background ease-in-out}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px;margin-bottom:5px}.components-panel__body>.components-panel__body-title:hover,.edit-post-last-revision__panel>.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background:#f8f9f9}.components-panel__body-toggle.components-button{position:relative;padding:15px;outline:0;width:100%;font-weight:600;text-align:left;color:#191e23;border:none;box-shadow:none;transition:.1s background ease-in-out}.components-panel__body-toggle.components-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#191e23;fill:currentColor;transition:.1s color ease-in-out}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;-webkit-filter:FlipH;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#555d66;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.components-panel__row select{min-width:0}.components-panel__row label{margin-right:10px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;width:100%;text-align:center;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;background:rgba(139,139,150,.1)}.is-dark-theme .components-placeholder{background:rgba(255,255,255,.15)}.components-placeholder__label{display:flex;justify-content:center;font-weight:600;margin-bottom:1em}.components-placeholder__label .dashicon,.components-placeholder__label .editor-block-icon{margin-right:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;justify-content:center;width:100%;max-width:400px;flex-wrap:wrap;z-index:1}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px}.components-placeholder__input{margin-right:8px;flex:1 1 auto}.components-placeholder__instructions{margin-bottom:1em}/*!rtl:begin:ignore*/.components-popover{position:fixed;z-index:1000000;left:50%}.components-popover.is-mobile{top:0;left:0;right:0;bottom:0}.components-popover:not(.is-without-arrow):not(.is-mobile){margin-left:2px}.components-popover:not(.is-without-arrow):not(.is-mobile)::before{border:8px solid #e2e4e7}.components-popover:not(.is-without-arrow):not(.is-mobile)::after{border:8px solid #fff}.components-popover:not(.is-without-arrow):not(.is-mobile)::after,.components-popover:not(.is-without-arrow):not(.is-mobile)::before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top{margin-top:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::before{bottom:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::after{bottom:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom{margin-top:8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::before{top:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::after{top:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left{margin-left:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::before{right:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::after{right:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right{margin-left:8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::before{left:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::after{left:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover:not(.is-mobile).is-top{bottom:100%}.components-popover:not(.is-mobile).is-bottom{top:100%;z-index:99990}.components-popover:not(.is-mobile).is-middle{align-items:center;display:flex}.components-popover__content{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff;height:100%}.components-popover.is-mobile .components-popover__content{height:calc(100% - 50px);border-top:0}.components-popover:not(.is-mobile) .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover:not(.is-mobile).is-top .components-popover__content{bottom:100%}.components-popover:not(.is-mobile).is-center .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover:not(.is-mobile).is-right .components-popover__content{position:absolute;left:100%}.components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content{margin-left:-24px}.components-popover:not(.is-mobile).is-left .components-popover__content{position:absolute;right:100%}.components-popover:not(.is-mobile):not(.is-middle).is-left .components-popover__content{margin-right:-24px}.components-popover__content>div{height:100%}.components-popover__header{align-items:center;background:#fff;border:1px solid #e2e4e7;display:flex;height:50px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-icon-button{z-index:5}/*!rtl:end:ignore*/.components-radio-control{display:flex;flex-direction:column}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{margin-top:0;margin-right:6px}.components-range-control .components-base-control__field{display:flex;justify-content:center;flex-wrap:wrap;align-items:center}.components-range-control .dashicon{flex-shrink:0;margin-right:10px}.components-range-control .components-base-control__label{width:100%}.components-range-control .components-range-control__slider{margin-left:0;flex:1}.components-range-control__slider{width:100%;margin-left:8px;padding:0;-webkit-appearance:none;background:0 0}.components-range-control__slider::-webkit-slider-thumb{-webkit-appearance:none;height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:-7px}.components-range-control__slider::-moz-range-thumb{height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box}.components-range-control__slider::-ms-thumb{height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:0;height:14px;width:14px;border:2px solid transparent}.components-range-control__slider:focus{outline:0}.components-range-control__slider:focus::-webkit-slider-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider:focus::-moz-range-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider:focus::-ms-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider::-webkit-slider-runnable-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px;margin-top:-4px}.components-range-control__slider::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.components-range-control__slider::-ms-track{margin-top:-4px;background:0 0;border-color:transparent;color:transparent;height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.components-range-control__number{display:inline-block;margin-left:8px;font-weight:500;width:50px;padding:3px 5px!important}.components-resizable-box__handle{display:none;width:24px;height:24px;padding:4px}.components-resizable-box__container.is-selected .components-resizable-box__handle{display:block}.components-resizable-box__handle::before{display:block;content:"";width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:#0085ba;cursor:inherit}body.admin-color-sunrise .components-resizable-box__handle::before{background:#d1864a}body.admin-color-ocean .components-resizable-box__handle::before{background:#a3b9a2}body.admin-color-midnight .components-resizable-box__handle::before{background:#e14d43}body.admin-color-ectoplasm .components-resizable-box__handle::before{background:#a7b656}body.admin-color-coffee .components-resizable-box__handle::before{background:#c2a68c}body.admin-color-blue .components-resizable-box__handle::before{background:#82b4cb}body.admin-color-light .components-resizable-box__handle::before{background:#0085ba}/*!rtl:begin:ignore*/.components-resizable-box__handle-right{top:calc(50% - 12px);right:calc(12px * -1)}.components-resizable-box__handle-bottom{bottom:calc(12px * -1);left:calc(50% - 12px)}.components-resizable-box__handle-left{top:calc(50% - 12px);left:calc(12px * -1)}/*!rtl:end:ignore*/.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper__content{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.components-sandbox{overflow:hidden}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-spinner{display:inline-block;background-color:#7e8993;width:18px;height:18px;opacity:.7;float:right;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner::before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s infinite linear}@keyframes components-spinner__animation{from{transform:rotate(0)}to{transform:rotate(360deg)}}.components-text-control__input{width:100%;padding:6px 8px}.components-textarea-control__input{width:100%;padding:6px 8px}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px}.components-toggle-control .components-base-control__field .components-form-toggle{margin-right:16px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block;margin-bottom:4px}.components-toolbar{margin:0;border:1px solid #e2e4e7;background-color:#fff;display:flex;flex-shrink:0}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div{margin-left:-3px}div.components-toolbar>div+div.has-left-divider{margin-left:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider::before{display:inline-block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:8px;left:-3px;width:1px;height:20px}.components-toolbar__control.components-button{display:inline-flex;align-items:flex-end;margin:0;padding:3px;outline:0;cursor:pointer;position:relative;width:36px;height:36px}.components-toolbar__control.components-button:active,.components-toolbar__control.components-button:not([aria-disabled=true]):focus,.components-toolbar__control.components-button:not([aria-disabled=true]):hover{outline:0;box-shadow:none;background:0 0;border:none}.components-toolbar__control.components-button:disabled{cursor:default}.components-toolbar__control.components-button>svg{padding:5px;border-radius:4px;height:30px;width:30px}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]::after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;right:8px;bottom:10px}.components-toolbar__control.components-button:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.components-toolbar__control.components-button:not(:disabled).is-active>svg,.components-toolbar__control.components-button:not(:disabled):hover>svg{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-toolbar__control.components-button:not(:disabled).is-active>svg{outline:0;color:#fff;box-shadow:none;background:#555d66}.components-toolbar__control.components-button:not(:disabled).is-active[data-subscript]::after{color:#fff}.components-toolbar__control.components-button:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-toolbar__control .dashicon{display:block}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover::before{border-color:transparent}.components-tooltip.components-popover.is-top::after{border-top-color:#191e23}.components-tooltip.components-popover.is-bottom::after{border-bottom-color:#191e23}.components-tooltip .components-popover__content{padding:4px 12px;background:#191e23;border-width:0;color:#fff;white-space:nowrap}.components-tooltip:not(.is-mobile) .components-popover__content{min-width:0}.components-tooltip__shortcut{display:block;text-align:center;color:#7e8993} \ No newline at end of file diff --git a/wp-includes/css/dist/editor/style-rtl.css b/wp-includes/css/dist/editor/style-rtl.css index 9cf0a5d997..5e74989166 100644 --- a/wp-includes/css/dist/editor/style-rtl.css +++ b/wp-includes/css/dist/editor/style-rtl.css @@ -263,10 +263,15 @@ /** * Cross-block selection */ +.editor-block-list__layout .editor-block-list__block ::-moz-selection { + background-color: #b3e7fe; } .editor-block-list__layout .editor-block-list__block ::selection { background-color: #b3e7fe; } +.editor-block-list__layout .editor-block-list__block.is-multi-selected *::-moz-selection { + background-color: transparent; } + .editor-block-list__layout .editor-block-list__block.is-multi-selected *::selection { background-color: transparent; } @@ -2280,6 +2285,8 @@ body.admin-color-light .editor-post-text-editor__link{ box-shadow: 0 0 0 1px #e8eaeb; } .editor-rich-text__tinymce img[data-mce-selected] { outline: none; } + .editor-rich-text__tinymce img::-moz-selection { + background: none !important; } .editor-rich-text__tinymce img::selection { background: none !important; } .editor-rich-text__tinymce[data-is-placeholder-visible="true"] { @@ -2310,6 +2317,12 @@ body.admin-color-light .editor-post-text-editor__link{ .editor-rich-text__inline-toolbar ul.components-toolbar { box-shadow: 0 2px 10px rgba(25, 30, 35, 0.1), 0 0 2px rgba(25, 30, 35, 0.1); } +[data-rich-text-script] { + display: inline; } + [data-rich-text-script]::before { + content: ""; + background: yellow; } + .editor-skip-to-selected-block { position: absolute; top: -9999em; } diff --git a/wp-includes/css/dist/editor/style-rtl.min.css b/wp-includes/css/dist/editor/style-rtl.min.css index c018631a97..4d7fd62cd6 100644 --- a/wp-includes/css/dist/editor/style-rtl.min.css +++ b/wp-includes/css/dist/editor/style-rtl.min.css @@ -1 +1 @@ -@charset "UTF-8";.editor-autocompleters__block .editor-block-icon{margin-left:8px}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-left:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-right:8px;color:#8f98a1;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#66c6e4}.editor-block-drop-zone{border:none;border-radius:0}.editor-block-drop-zone .components-drop-zone__content,.editor-block-drop-zone.is-dragging-over-element .components-drop-zone__content{display:none}.editor-block-drop-zone.is-close-to-bottom{background:0 0;border-bottom:3px solid #0085ba}body.admin-color-sunrise .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #d1864a}body.admin-color-ocean .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #a3b9a2}body.admin-color-midnight .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #e14d43}body.admin-color-ectoplasm .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #a7b656}body.admin-color-coffee .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #c2a68c}body.admin-color-blue .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #82b4cb}body.admin-color-light .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #0085ba}.editor-block-drop-zone.is-appender.is-close-to-bottom,.editor-block-drop-zone.is-appender.is-close-to-top,.editor-block-drop-zone.is-close-to-top{background:0 0;border-top:3px solid #0085ba;border-bottom:none}body.admin-color-sunrise .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-sunrise .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-sunrise .editor-block-drop-zone.is-close-to-top{border-top:3px solid #d1864a}body.admin-color-ocean .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-ocean .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-ocean .editor-block-drop-zone.is-close-to-top{border-top:3px solid #a3b9a2}body.admin-color-midnight .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-midnight .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-midnight .editor-block-drop-zone.is-close-to-top{border-top:3px solid #e14d43}body.admin-color-ectoplasm .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-ectoplasm .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-ectoplasm .editor-block-drop-zone.is-close-to-top{border-top:3px solid #a7b656}body.admin-color-coffee .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-coffee .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-coffee .editor-block-drop-zone.is-close-to-top{border-top:3px solid #c2a68c}body.admin-color-blue .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-blue .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-blue .editor-block-drop-zone.is-close-to-top{border-top:3px solid #82b4cb}body.admin-color-light .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-light .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-light .editor-block-drop-zone.is-close-to-top{border-top:3px solid #0085ba}.editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0;border-radius:4px}.editor-block-icon.has-colors svg{fill:currentColor}.editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.editor-block-inspector__card{display:flex;align-items:flex-start;margin:-16px;padding:16px}.editor-block-inspector__card-icon{border:1px solid #ccd0d4;padding:7px;margin-left:10px;height:36px;width:36px}.editor-block-inspector__card-content{flex-grow:1}.editor-block-inspector__card-title{font-weight:500;margin-bottom:5px}.editor-block-inspector__card-description{font-size:13px}.editor-block-inspector__card .editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.editor-block-list__layout .components-draggable__clone .editor-block-contextual-toolbar{display:none!important}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-list__block-edit::before{outline:0}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging>.editor-block-list__block-edit>*{background:#f8f9f9}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging>.editor-block-list__block-edit>*>*{visibility:hidden}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-mover{display:none}.editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit .reusable-block-edit-panel *{z-index:1}@media (min-width:600px){.editor-block-list__layout{padding-right:46px;padding-left:46px}}.editor-block-list__block .editor-block-list__layout{padding-right:0;padding-left:0;margin-right:-14px;margin-left:-14px}.editor-block-list__layout .editor-default-block-appender>.editor-default-block-appender__content,.editor-block-list__layout>.editor-block-list__block>.editor-block-list__block-edit,.editor-block-list__layout>.editor-block-list__layout>.editor-block-list__block>.editor-block-list__block-edit{margin-top:32px;margin-bottom:32px}.editor-block-list__layout .editor-block-list__block{position:relative;padding-right:14px;padding-left:14px;overflow-wrap:break-word}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block{padding-right:43px;padding-left:43px}}.editor-block-list__layout .editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 20px 12px 20px;width:calc(100% - 40px)}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui{margin:0 0 12px 0;width:100%}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui .components-notice{margin-right:0;margin-left:0}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit{position:relative}.editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit::before{z-index:0;content:"";position:absolute;outline:1px solid transparent;transition:outline .1s linear;pointer-events:none;left:-14px;right:-14px;top:-14px;bottom:-14px}.editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit::before{outline:1px solid rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit::before{outline-color:rgba(255,255,255,.3)}.editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #007cba}body.admin-color-sunrise .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #837425}body.admin-color-ocean .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #5e7d5e}body.admin-color-midnight .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #497b8d}body.admin-color-ectoplasm .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #523f6d}body.admin-color-coffee .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #59524c}body.admin-color-blue .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #417e9B}body.admin-color-light .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #007cba}.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .editor-block-list__block{opacity:1}.editor-block-list__layout .editor-block-list__block ::selection{background-color:#b3e7fe}.editor-block-list__layout .editor-block-list__block.is-multi-selected ::selection{background-color:transparent}.editor-block-list__layout .editor-block-list__block.is-multi-selected .editor-block-list__block-edit::before{background:#b3e7fe;mix-blend-mode:multiply;top:-14px;bottom:-14px}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-multi-selected .editor-block-list__block-edit::before{mix-blend-mode:soft-light}.editor-block-list__layout .editor-block-list__block.has-warning{min-height:36px}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit>*{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit .editor-warning{pointer-events:all}.editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit::before{outline-color:rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit::before{outline-color:rgba(255,255,255,.3)}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit::after{content:"";position:absolute;background-color:rgba(248,249,249,.4);top:-14px;bottom:-14px;left:-14px;right:-14px}.editor-block-list__layout .editor-block-list__block.has-warning.is-multi-selected .editor-block-list__block-edit::after{background-color:transparent}.editor-block-list__layout .editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit::after{bottom:22px}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit::after{bottom:-14px}}.editor-block-list__layout .editor-block-list__block.is-typing .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block.is-typing .editor-block-list__side-inserter{opacity:0}.editor-block-list__layout .editor-block-list__block .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block .editor-block-list__side-inserter{opacity:1;transition:opacity .2s}.editor-block-list__layout .editor-block-list__block.is-reusable>.editor-block-list__block-edit::before{outline:1px dashed rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-reusable>.editor-block-list__block-edit::before{outline-color:rgba(255,255,255,.3)}.editor-block-list__layout .editor-block-list__block[data-align=left],.editor-block-list__layout .editor-block-list__block[data-align=right]{z-index:20;width:100%;height:0}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit{margin-top:0}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit::before,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit::before{content:none}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-bottom:1px}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-mobile-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-mobile-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-mover{display:none}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{width:auto;border-bottom:1px solid #e2e4e7;bottom:auto}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{right:0;left:auto}.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{right:auto;left:0}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{top:14px}}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit{float:left;margin-right:2em}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-toolbar{left:14px;right:auto}}.editor-block-list__layout .editor-block-list__block[data-align=right]>.editor-block-list__block-edit{float:right;margin-left:2em}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-toolbar{right:14px;left:auto}}.editor-block-list__layout .editor-block-list__block[data-align=full],.editor-block-list__layout .editor-block-list__block[data-align=wide]{clear:both;z-index:20}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{top:-44px;bottom:auto;min-height:0;height:auto;width:auto;z-index:inherit}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover::before,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover::before{content:none}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover .editor-block-mover__control,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover .editor-block-mover__control{float:right}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__breadcrumb,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-list__breadcrumb{left:-1px}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{display:none}@media (min-width:1280px){.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{display:block}}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full] .editor-block-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=wide] .editor-block-toolbar{display:inline-flex}}.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{right:-13px}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit>.editor-block-list__breadcrumb{left:0}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full]{margin-right:-45px;margin-left:-45px}}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit{margin-right:-14px;margin-left:-14px}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit{margin-right:-44px;margin-left:-44px}}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit figure{width:100%}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit::before{right:0;left:0;border-right-width:0;border-left-width:0}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover{right:1px}.editor-block-list__layout .editor-block-list__block[data-clear=true]{float:none}.editor-block-list__layout .editor-block-list__block .editor-block-drop-zone{top:-4px;bottom:-3px;margin:0 14px}.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-inserter-with-shortcuts{display:none}.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-default-block-appender .editor-inserter{right:auto;left:8px}.editor-block-list__block>.editor-block-mover{position:absolute;width:30px;height:100%;max-height:112px}.editor-block-list__block>.editor-block-mover{top:-15px}@media (min-width:600px){.editor-block-list__block.is-hovered .editor-block-mover,.editor-block-list__block.is-multi-selected .editor-block-mover,.editor-block-list__block.is-selected .editor-block-mover{z-index:80}}.editor-block-list__block>.editor-block-mover{padding-left:2px;right:-30px;display:none}@media (min-width:600px){.editor-block-list__block>.editor-block-mover{display:block}}.editor-block-list__block .editor-block-list__block-mobile-toolbar{display:flex;flex-direction:row;transform:translateY(15px);margin-top:37px;margin-left:-14px;margin-right:-14px;border-top:1px solid #e2e4e7;height:37px;box-shadow:0 5px 10px rgba(25,30,35,.05),0 2px 2px rgba(25,30,35,.05)}@media (min-width:600px){.editor-block-list__block .editor-block-list__block-mobile-toolbar{display:none}}@media (min-width:600px){.editor-block-list__block .editor-block-list__block-mobile-toolbar{box-shadow:none}}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter{position:relative;right:auto;top:auto;margin:0}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover__control,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter__toggle{width:36px;height:36px;border-radius:4px;padding:3px;margin:0;justify-content:center;align-items:center}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover__control .dashicon,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter__toggle .dashicon{margin:auto}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover{display:flex;margin-left:auto}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover .editor-block-mover__control,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover .editor-inserter{float:right}.editor-block-list__block[data-align=full] .editor-block-list__block-mobile-toolbar{margin-right:0;margin-left:0}.editor-block-list .editor-inserter{margin:8px;cursor:move;cursor:-webkit-grab;cursor:grab}.editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:2px;right:0;left:0;background:#0085ba}body.admin-color-sunrise .editor-block-list__insertion-point-indicator{background:#d1864a}body.admin-color-ocean .editor-block-list__insertion-point-indicator{background:#a3b9a2}body.admin-color-midnight .editor-block-list__insertion-point-indicator{background:#e14d43}body.admin-color-ectoplasm .editor-block-list__insertion-point-indicator{background:#a7b656}body.admin-color-coffee .editor-block-list__insertion-point-indicator{background:#c2a68c}body.admin-color-blue .editor-block-list__insertion-point-indicator{background:#82b4cb}body.admin-color-light .editor-block-list__insertion-point-indicator{background:#0085ba}.editor-block-list__insertion-point-inserter{display:none;position:absolute;bottom:auto;right:0;left:0;justify-content:center;opacity:0;transition:opacity .1s linear .1s}@media (min-width:480px){.editor-block-list__insertion-point-inserter{display:flex}}.editor-block-list__insertion-point-inserter .editor-inserter__toggle{margin-top:-4px;border-radius:50%;color:#007cba;background:#fff;height:36px;width:36px}.editor-block-list__insertion-point-inserter .editor-inserter__toggle:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.editor-block-list__insertion-point-inserter.is-visible,.editor-block-list__insertion-point-inserter:hover{opacity:1}.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter{opacity:0;pointer-events:none}.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter.is-visible,.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter:hover,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter.is-visible,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter:hover{opacity:1;pointer-events:auto}.editor-block-list__block>.editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;right:0;left:0}@media (min-width:600px){.editor-block-list__block>.editor-block-list__insertion-point{right:-1px;left:-1px}}.editor-block-list__block[data-align=full]>.editor-block-list__insertion-point{right:0;left:0}.editor-block-list__block .editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:0;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;line-height:150%;transition:padding .2s linear}.editor-block-list__block .editor-block-list__block-html-textarea:focus{box-shadow:none}.editor-block-list__block .editor-block-contextual-toolbar{position:-webkit-sticky;position:sticky;z-index:21;white-space:nowrap;text-align:right;pointer-events:none;position:absolute;bottom:23px;right:-14px;left:-14px;border-top:1px solid #e2e4e7}.editor-block-list__block .editor-block-contextual-toolbar .components-toolbar{border-top:none;border-bottom:none}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{border-top:none}.editor-block-list__block .editor-block-contextual-toolbar .components-toolbar{border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-bottom:1px;margin-top:-37px}.editor-block-list__block .editor-block-contextual-toolbar{margin-right:0;margin-left:0}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{margin-right:-15px;margin-left:-15px}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{margin-right:15px}.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-left:15px}.editor-block-list__block .editor-block-contextual-toolbar>*{pointer-events:auto}.editor-block-list__block.is-focus-mode:not(.is-multi-selected)>.editor-block-contextual-toolbar{margin-right:-28px}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{bottom:auto;right:auto;left:auto;box-shadow:none;transform:translateY(-52px)}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-block-list__block .editor-block-contextual-toolbar{position:-webkit-sticky;position:sticky;top:51px}}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{float:left}.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{float:right}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{transform:translateY(-15px)}.editor-block-contextual-toolbar .editor-block-toolbar{width:100%}@media (min-width:600px){.editor-block-contextual-toolbar .editor-block-toolbar{width:auto;border-left:none;position:absolute;right:0}}.editor-block-list__breadcrumb{position:absolute;line-height:1;z-index:2;left:-14px;top:-15px}.editor-block-list__breadcrumb .components-toolbar{padding:0;border:none;background:0 0;line-height:1;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:11px;padding:4px 4px;background:#007cba;color:#fff}body.admin-color-sunrise .editor-block-list__breadcrumb .components-toolbar{background:#837425}body.admin-color-ocean .editor-block-list__breadcrumb .components-toolbar{background:#5e7d5e}body.admin-color-midnight .editor-block-list__breadcrumb .components-toolbar{background:#497b8d}body.admin-color-ectoplasm .editor-block-list__breadcrumb .components-toolbar{background:#523f6d}body.admin-color-coffee .editor-block-list__breadcrumb .components-toolbar{background:#59524c}body.admin-color-blue .editor-block-list__breadcrumb .components-toolbar{background:#417e9b}body.admin-color-light .editor-block-list__breadcrumb .components-toolbar{background:#007cba}.editor-block-list__block:hover .editor-block-list__breadcrumb .components-toolbar{opacity:0;animation:edit-post__fade-in-animation 60ms ease-out .5s;animation-fill-mode:forwards}[data-align=left] .editor-block-list__breadcrumb,[data-align=right] .editor-block-list__breadcrumb{left:0;top:0}.editor-block-list__descendant-arrow::before{content:"→";display:inline-block;padding:0 4px}.rtl .editor-block-list__descendant-arrow::before{content:"←"}@media (min-width:600px){.editor-block-list__block::before{bottom:0;content:"";right:-28px;position:absolute;left:-28px;top:0}.editor-block-list__block .editor-block-list__block::before{right:0;left:0}.editor-block-list__block[data-align=full]::before{content:none}}.editor-block-list__block .editor-warning{z-index:5;position:relative;margin-left:-15px;margin-right:-15px;margin-bottom:-15px;transform:translateY(-15px);padding:10px 14px}@media (min-width:600px){.editor-block-list__block .editor-warning{padding:10px 14px}}.block-list-appender>.editor-inserter{display:block}.block-list-appender__toggle{display:flex;align-items:center;justify-content:center;padding:16px;outline:1px dashed #8d96a0;width:100%;color:#555d66}.block-list-appender__toggle:hover{outline:1px dashed #555d66}.editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.editor-block-compare{max-height:70%}}.editor-block-compare__wrapper{display:flex;padding-bottom:16px}.editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 0 0 16px;min-width:200px}.editor-block-compare__wrapper>div button{float:left}.editor-block-compare__wrapper .editor-block-compare__converted{border-right:1px solid #ddd;padding-right:15px}.editor-block-compare__wrapper .editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#23282d;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.editor-block-compare__wrapper .editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.editor-block-compare__wrapper .editor-block-compare__html span.editor-block-compare__added{background-color:#acf2bd}.editor-block-compare__wrapper .editor-block-compare__html span.editor-block-compare__removed{background-color:#d94f4f}.editor-block-compare__wrapper .editor-block-compare__preview{padding:0;padding-top:14px}.editor-block-compare__wrapper .editor-block-compare__preview p{font-size:12px;margin-top:0}.editor-block-compare__wrapper .editor-block-compare__action{margin-top:14px}.editor-block-compare__wrapper .editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.editor-block-mover{min-height:56px;opacity:0}.editor-block-mover.is-visible{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (min-width:600px){.editor-block-list__block:not([data-align=wide]):not([data-align=full]) .editor-block-mover{margin-top:-8px}}.editor-block-mover__control{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;width:28px;height:24px;color:rgba(14,28,46,.62)}.editor-block-mover__control svg{width:28px;height:24px;padding:2px 5px}.is-dark-theme .editor-block-mover__control{color:rgba(255,255,255,.65)}.editor-block-mover__control[aria-disabled=true]{cursor:default;pointer-events:none;color:rgba(130,148,147,.15)}.is-dark-theme .editor-block-mover__control[aria-disabled=true]{color:rgba(255,255,255,.2)}.editor-block-mover__control-drag-handle{cursor:move;cursor:-webkit-grab;cursor:grab;fill:currentColor;border-radius:4px}.editor-block-mover__control-drag-handle,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none;background:0 0;color:rgba(10,24,41,.7)}.is-dark-theme .editor-block-mover__control-drag-handle,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:rgba(255,255,255,.75)}.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active{cursor:-webkit-grabbing;cursor:grabbing}.editor-block-mover__description{display:none}@media (min-width:600px){.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default){background:#fff;box-shadow:inset 0 0 0 1px #e2e4e7}.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):nth-child(-n+2),.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:nth-child(-n+2){margin-bottom:-1px}.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:active,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:focus,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:hover{z-index:1}}.editor-block-navigation__container{padding:7px}.editor-block-navigation__label{margin:0 0 8px;color:#6c7781}.editor-block-navigation__list,.editor-block-navigation__paragraph{padding:0;margin:0}.editor-block-navigation__list .editor-block-navigation__list{margin-top:2px;border-right:2px solid #a2aab2;margin-right:1em}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__list{margin-right:1.5em}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item{position:relative}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item::before{position:absolute;right:0;background:#a2aab2;width:.5em;height:2px;content:"";top:calc(50% - 1px)}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item-button{margin-right:.8em;width:calc(100% - .8em)}.editor-block-navigation__list .editor-block-navigation__list>li:last-child{position:relative}.editor-block-navigation__list .editor-block-navigation__list>li:last-child::after{position:absolute;content:"";background:#fff;top:19px;bottom:0;right:-2px;width:2px}.editor-block-navigation__item-button{display:flex;align-items:center;width:100%;padding:6px;text-align:right;color:#40464d;border-radius:4px}.editor-block-navigation__item-button .editor-block-icon{margin-left:6px}.editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none}.editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-block-navigation__item-button.is-selected,.editor-block-navigation__item-button.is-selected:focus{color:#32373c;background:#edeff0}.editor-block-preview{pointer-events:none;padding:10px;overflow:hidden;display:none}@media (min-width:782px){.editor-block-preview{display:block}}.editor-block-preview .editor-block-preview__content{padding:14px;border:1px solid #e2e4e7;font-family:"Noto Serif",serif}.editor-block-preview .editor-block-preview__content>div{transform:scale(.9);transform-origin:center top;font-family:"Noto Serif",serif}.editor-block-preview .editor-block-preview__content>div section{height:auto}.editor-block-preview .editor-block-preview__content>.reusable-block-indicator{display:none}.editor-block-preview__title{margin-bottom:10px;color:#6c7781}.editor-block-settings-menu__toggle .dashicon{transform:rotate(-90deg)}.editor-block-settings-menu__popover::after,.editor-block-settings-menu__popover::before{margin-right:2px}.editor-block-settings-menu__popover .editor-block-settings-menu__content{padding:7px}.editor-block-settings-menu__popover .editor-block-settings-menu__separator{margin-top:8px;margin-bottom:8px;margin-right:-7px;margin-left:-7px;border-top:1px solid #e2e4e7}.editor-block-settings-menu__popover .editor-block-settings-menu__separator:last-child{display:none}.editor-block-settings-menu__popover .editor-block-settings-menu__title{display:block;padding:6px;color:#6c7781}.editor-block-settings-menu__popover .editor-block-settings-menu__control{width:100%;justify-content:flex-start;padding:8px;background:0 0;outline:0;border-radius:0;color:#555d66;text-align:right;cursor:pointer;border:none;box-shadow:none}.editor-block-settings-menu__popover .editor-block-settings-menu__control:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none}.editor-block-settings-menu__popover .editor-block-settings-menu__control:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-block-settings-menu__popover .editor-block-settings-menu__control .dashicon{margin-left:5px}.editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:4px;padding:4px}.editor-block-styles__item.is-active{color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px;box-shadow:0 0 0 2px #555d66}.editor-block-styles__item:focus{color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-block-styles__item:hover{background:#f8f9f9;color:#191e23}.editor-block-styles__item-preview{outline:1px solid transparent;border:1px solid rgba(25,30,35,.2);overflow:hidden;padding:0;text-align:initial;border-radius:4px;display:flex;height:60px;background:#fff}.editor-block-styles__item-preview .editor-block-preview__content{transform:scale(.7);transform-origin:center center;width:100%;margin:0;padding:0;overflow:visible;min-height:auto}.editor-block-styles__item-label{text-align:center;padding:4px 2px}.editor-block-switcher{position:relative;height:36px}.components-icon-button.editor-block-switcher__no-switcher-icon,.components-icon-button.editor-block-switcher__toggle{margin:0;display:block;height:36px;padding:3px}.components-icon-button.editor-block-switcher__no-switcher-icon{width:48px}.components-icon-button.editor-block-switcher__no-switcher-icon .editor-block-icon{margin-left:auto;margin-right:auto}.components-icon-button.editor-block-switcher__toggle{width:auto}.components-icon-button.editor-block-switcher__toggle:active,.components-icon-button.editor-block-switcher__toggle:not(:disabled):not([aria-disabled=true]):hover,.components-icon-button.editor-block-switcher__toggle:not([aria-disabled=true]):focus{outline:0;box-shadow:none;background:0 0;border:none}.components-icon-button.editor-block-switcher__toggle .editor-block-icon,.components-icon-button.editor-block-switcher__toggle .editor-block-switcher__transform{width:42px;height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;transition:all .1s cubic-bezier(.165, .84, .44, 1)}.components-icon-button.editor-block-switcher__toggle .editor-block-icon::after{content:"";pointer-events:none;display:block;width:0;height:0;border-right:3px solid transparent;border-left:3px solid transparent;border-top:5px solid currentColor;margin-right:4px;margin-left:2px}.components-icon-button.editor-block-switcher__toggle .editor-block-switcher__transform{margin-top:6px;border-radius:4px}.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-switcher__transform,.components-icon-button.editor-block-switcher__toggle:not(:disabled):hover .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):hover .editor-block-switcher__transform,.components-icon-button.editor-block-switcher__toggle[aria-expanded=true] .editor-block-icon,.components-icon-button.editor-block-switcher__toggle[aria-expanded=true] .editor-block-switcher__transform{transform:translateY(-36px)}.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-switcher__transform{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-popover:not(.is-mobile).editor-block-switcher__popover .components-popover__content{min-width:300px;max-width:340px}@media (min-width:782px){.editor-block-switcher__popover .components-popover__content{position:relative}.editor-block-switcher__popover .components-popover__content .editor-block-preview{border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;position:absolute;right:100%;top:-1px;bottom:-1px;width:300px;height:auto}}.editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #e2e4e7}.editor-block-switcher__popover:not(.is-mobile)>.components-popover__content{overflow-y:visible}.editor-block-switcher__popover .editor-block-styles{margin:0 -3px}.editor-block-switcher__popover .editor-block-types-list{margin:8px -8px -8px}.editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;border-right:1px solid #e2e4e7}@media (min-width:600px){.editor-block-toolbar{overflow:inherit}}.editor-block-toolbar .components-toolbar{border:0;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7;border-left:1px solid #e2e4e7}.editor-block-types-list{list-style:none;padding:2px 0;overflow:hidden;display:flex;flex-wrap:wrap}.editor-color-palette-control__color-palette{display:inline-block;margin-top:.6rem}.editor-contrast-checker>.components-notice{margin:0}.editor-default-block-appender{clear:both}.editor-default-block-appender textarea.editor-default-block-appender__content{font-family:"Noto Serif",serif;font-size:16px;border:none;background:0 0;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:.2s outline;resize:none;padding:0 14px 0 50px;color:rgba(14,28,46,.62)}.is-dark-theme .editor-default-block-appender textarea.editor-default-block-appender__content{color:rgba(255,255,255,.65)}.editor-default-block-appender .editor-inserter-with-shortcuts{opacity:.5;transition:opacity .2s}.editor-default-block-appender .editor-inserter-with-shortcuts .components-icon-button:not(:hover){color:rgba(10,24,41,.7)}.is-dark-theme .editor-default-block-appender .editor-inserter-with-shortcuts .components-icon-button:not(:hover){color:rgba(255,255,255,.75)}.editor-default-block-appender .editor-inserter__toggle:not([aria-expanded=true]){opacity:0}.editor-default-block-appender:hover .editor-inserter-with-shortcuts{opacity:1}.editor-default-block-appender:hover .editor-inserter__toggle{opacity:1}.editor-default-block-appender .components-drop-zone__content-icon{display:none}.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter,.editor-inserter-with-shortcuts{position:absolute;top:0}.editor-block-list__empty-block-inserter .components-icon-button,.editor-default-block-appender .editor-inserter .components-icon-button,.editor-inserter-with-shortcuts .components-icon-button{width:28px;height:28px;margin-left:12px;padding:0}.editor-block-list__empty-block-inserter .editor-block-icon,.editor-default-block-appender .editor-inserter .editor-block-icon,.editor-inserter-with-shortcuts .editor-block-icon{margin:auto}.editor-block-list__empty-block-inserter .components-icon-button svg,.editor-default-block-appender .editor-inserter .components-icon-button svg,.editor-inserter-with-shortcuts .components-icon-button svg{display:block;margin:auto}.editor-block-list__empty-block-inserter .editor-inserter__toggle,.editor-default-block-appender .editor-inserter .editor-inserter__toggle,.editor-inserter-with-shortcuts .editor-inserter__toggle{margin-left:0}.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter{left:8px}@media (min-width:600px){.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter{right:-44px;left:auto}}.editor-block-list__empty-block-inserter:disabled,.editor-default-block-appender .editor-inserter:disabled{display:none}.editor-block-list__empty-block-inserter .editor-inserter__toggle,.editor-default-block-appender .editor-inserter .editor-inserter__toggle{transition:opacity .2s;border-radius:50%;width:28px;height:28px;padding:0}.editor-block-list__empty-block-inserter .editor-inserter__toggle:not(:hover),.editor-default-block-appender .editor-inserter .editor-inserter__toggle:not(:hover){color:rgba(10,24,41,.7)}.is-dark-theme .editor-block-list__empty-block-inserter .editor-inserter__toggle:not(:hover),.is-dark-theme .editor-default-block-appender .editor-inserter .editor-inserter__toggle:not(:hover){color:rgba(255,255,255,.75)}.editor-block-list__side-inserter .editor-inserter-with-shortcuts,.editor-default-block-appender .editor-inserter-with-shortcuts{left:14px;display:none;z-index:5}@media (min-width:600px){.editor-block-list__side-inserter .editor-inserter-with-shortcuts,.editor-default-block-appender .editor-inserter-with-shortcuts{left:0;display:flex}}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item .document-outline__emdash::before{color:#e2e4e7;margin-left:4px}.document-outline__item.is-h2 .document-outline__emdash::before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash::before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash::before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash::before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash::before{content:"—————"}.document-outline__button{cursor:pointer;background:0 0;border:none;display:flex;align-items:flex-start;color:#23282d;text-align:right}.document-outline__button:focus{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.document-outline__level{background:#e2e4e7;color:#23282d;border-radius:3px;font-size:13px;padding:1px 6px;margin-left:4px}.is-invalid .document-outline__level{background:#f0b849}.editor-error-boundary{max-width:610px;margin:auto;max-width:780px;padding:20px;margin-top:60px;box-shadow:0 3px 30px rgba(25,30,35,.2)}.editor-inner-blocks.has-overlay::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;z-index:120}.editor-inserter-with-shortcuts{display:flex;align-items:center}.editor-inserter-with-shortcuts .components-icon-button{border-radius:4px}.editor-inserter-with-shortcuts .components-icon-button svg:not(.dashicon){height:24px;width:24px}.editor-inserter-with-shortcuts__block{margin-left:4px;width:36px;height:36px;padding-top:8px;color:rgba(102,120,134,.35)}.is-dark-theme .editor-inserter-with-shortcuts__block{color:rgba(255,255,255,.4)}.editor-inserter{display:inline-block;background:0 0;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.editor-inserter{position:relative}}@media (min-width:782px){.editor-inserter__popover:not(.is-mobile)>.components-popover__content{overflow-y:visible;height:432px}}.editor-inserter__toggle{display:inline-flex;align-items:center;color:#555d66;background:0 0;cursor:pointer;border:none;outline:0;transition:color .2s ease}.editor-inserter__menu{width:auto;display:flex;flex-direction:column;height:100%}@media (min-width:782px){.editor-inserter__menu{width:400px;position:relative}.editor-inserter__menu .editor-block-preview{border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;position:absolute;right:100%;top:-1px;bottom:-1px;width:300px}}.editor-inserter__inline-elements{margin-top:-1px}.editor-inserter__menu.is-bottom::after{border-bottom-color:#fff}.components-popover input[type=search].editor-inserter__search{display:block;margin:16px;padding:11px 16px;position:relative;z-index:1;border-radius:4px;font-size:16px}@media (min-width:600px){.components-popover input[type=search].editor-inserter__search{font-size:13px}}.components-popover input[type=search].editor-inserter__search:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-inserter__results{flex-grow:1;overflow:auto;position:relative;z-index:1;padding:0 16px 16px 16px}.editor-inserter__results:focus{outline:1px dotted #555d66}@media (min-width:782px){.editor-inserter__results{height:394px}}.editor-inserter__results [role=presentation]+.components-panel__body{border-top:none}.editor-inserter__popover .editor-block-types-list{margin:0 -8px}.editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.editor-inserter__manage-reusable-blocks{margin:16px 16px 0 0}.editor-inserter__no-results{font-style:italic;padding:24px;text-align:center}.editor-inserter__child-blocks{padding:0 16px}.editor-inserter__parent-block-header{display:flex;align-items:center}.editor-inserter__parent-block-header h2{font-size:13px}.editor-block-types-list__list-item{display:block;width:33.33%;padding:0 4px;margin:0 0 12px}.editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:0;align-items:stretch;justify-content:center;cursor:pointer;background:0 0;word-break:break-word;border-radius:4px;border:1px solid transparent;transition:all 50ms ease-in-out;position:relative}.editor-block-types-list__item:disabled{opacity:.6;cursor:default}.editor-block-types-list__item:not(:disabled):hover::before{content:"";display:block;background:#f8f9f9;color:#191e23;position:absolute;z-index:-1;border-radius:4px;top:0;left:0;bottom:0;right:0}.editor-block-types-list__item:not(:disabled):hover .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):hover .editor-block-types-list__item-title{color:currentColor}.editor-block-types-list__item:not(:disabled).is-active,.editor-block-types-list__item:not(:disabled):active,.editor-block-types-list__item:not(:disabled):focus{position:relative;outline:0;color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-block-types-list__item:not(:disabled).is-active .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled).is-active .editor-block-types-list__item-title,.editor-block-types-list__item:not(:disabled):active .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):active .editor-block-types-list__item-title,.editor-block-types-list__item:not(:disabled):focus .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):focus .editor-block-types-list__item-title{color:currentColor}.editor-block-types-list__item-icon{padding:12px 20px;border-radius:4px;color:#555d66;transition:all 50ms ease-in-out}.editor-block-types-list__item-icon .editor-block-icon{margin-right:auto;margin-left:auto}.editor-block-types-list__item-icon svg{transition:all .15s ease-out}.editor-block-types-list__item-title{padding:4px 2px 8px}.editor-block-types-list__item-has-children .editor-block-types-list__item-icon{background:#fff;margin-left:3px;margin-bottom:6px;padding:9px 20px 9px;position:relative;top:-2px;right:-2px;box-shadow:0 0 0 1px #e2e4e7}.editor-block-types-list__item-has-children .editor-block-types-list__item-icon-stack{display:block;background:#fff;box-shadow:0 0 0 1px #e2e4e7;width:100%;height:100%;position:absolute;z-index:-1;bottom:-6px;left:-6px;border-radius:4px}.editor-media-placeholder__url-input-container{width:100%}.editor-media-placeholder__url-input-container .editor-media-placeholder__button{margin-bottom:0}.editor-media-placeholder__url-input-form{display:flex}.editor-media-placeholder__url-input-form input[type=url].editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.editor-media-placeholder__url-input-form input[type=url].editor-media-placeholder__url-input-field{width:300px}}.editor-media-placeholder__url-input-submit-button{flex-shrink:1}.editor-media-placeholder__button{margin-bottom:.5rem}.editor-media-placeholder__button .dashicon{vertical-align:middle;margin-bottom:3px}.editor-media-placeholder__button:hover{color:#23282d}.components-form-file-upload .editor-media-placeholder__button{margin-left:4px}.editor-multi-selection-inspector__card{display:flex;align-items:flex-start;margin:-16px;padding:16px}.editor-multi-selection-inspector__card-content{flex-grow:1}.editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.editor-multi-selection-inspector__card-description{font-size:13px}.editor-multi-selection-inspector__card .editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-panel-color-settings .component-color-indicator{vertical-align:text-bottom}.editor-panel-color-settings__panel-title .component-color-indicator{display:inline-block}.editor-panel-color-settings.is-opened .editor-panel-color-settings__panel-title .component-color-indicator{display:none}.block-editor .editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{margin:0}.editor-post-featured-image .components-button+.components-button{margin-top:1em;margin-left:8px}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #00a0d2}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #00a0d2}.editor-post-featured-image__toggle{border:1px dashed #a2aab2;background-color:#edeff0;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background-color:#f8f9f9}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:left;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-left:5px}.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:active,.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:hover{border:none;box-shadow:none}.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-post-locked-modal{height:auto;padding-left:10px;padding-right:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-left:5px}.editor-post-locked-modal__avatar{float:right;margin:5px;margin-left:15px}.editor-post-permalink{display:inline-flex;align-items:center;background:#fff;padding:5px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;height:40px;white-space:nowrap;border:1px solid rgba(145,151,162,.25);background-clip:padding-box;margin-right:-15px;margin-left:-15px}@media (min-width:600px){.editor-post-permalink{margin-right:-1px;margin-left:-1px}}.editor-post-permalink button{flex-shrink:0}.editor-post-permalink__copy{border-radius:4px;padding:6px}.editor-post-permalink__copy.is-copied{opacity:.3}.editor-post-permalink__label{margin:0 5px 0 10px;font-weight:600}.editor-post-permalink__link{color:#7e8993;text-decoration:underline;margin-left:10px;width:100%;overflow:hidden;position:relative;white-space:nowrap}.editor-post-permalink__link::after{content:"";display:block;position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;background:linear-gradient(to left,rgba(255,255,255,0),#fff 90%);top:1px;bottom:1px;left:1px;right:auto;width:20%;height:auto}.editor-post-permalink-editor{width:100%;min-width:20%;display:inline-flex;align-items:center}.editor-post-permalink-editor .editor-post-permalink__editor-container{flex:0 1 100%;display:flex;overflow:hidden;padding:1px 0}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 1 auto}@media (min-width:600px){.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 0 auto}}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__edit{flex:1 1 100%}.editor-post-permalink-editor .editor-post-permalink-editor__save{margin-right:auto}.editor-post-permalink-editor__prefix{color:#6c7781;min-width:20%;overflow:hidden;position:relative;white-space:nowrap;text-overflow:ellipsis}.editor-post-permalink input[type=text].editor-post-permalink-editor__edit{min-width:10%;width:100%;margin:0 3px;padding:2px 4px}.editor-post-permalink-editor__suffix{color:#6c7781;margin-left:6px;flex:0 0 0%}.editor-post-publish-panel{background:#fff;color:#555d66}.editor-post-publish-panel__content{min-height:calc(100% - 140px)}.editor-post-publish-panel__content .components-spinner{display:block;float:none;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-right:16px;height:56px;border-bottom:1px solid #e2e4e7;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header-publish-button{display:flex;justify-content:flex-end;flex-grow:1;text-align:left;flex-wrap:nowrap}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-left:-4px}.editor-post-publish-panel__link{color:#007fac;font-weight:400;padding-right:4px;text-decoration:underline}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#191e23}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-right:-16px;margin-left:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e2e4e7;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#e8eaeb;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;color:#a2aab2;overflow:hidden}.editor-post-saved-state.is-saving{animation:edit-post__loading-fade-animation .5s infinite}.editor-post-saved-state .dashicon{display:inline-block;flex:0 0 auto}.editor-post-saved-state{width:28px;white-space:nowrap;padding:12px 4px}.editor-post-saved-state .dashicon{margin-left:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state .dashicon{margin-left:4px}}.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft{margin:0}@media (min-width:600px){.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft .dashicon{display:none}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-input[type=checkbox]{margin-top:0}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-right:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.editor-post-text-editor{border:1px solid #e2e4e7;display:block;margin:0 0 2em;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;line-height:150%}.editor-post-text-editor:focus,.editor-post-text-editor:hover{border:1px solid #e2e4e7;box-shadow:none;outline:1px solid #e2e4e7;outline-offset:-2px}.editor-post-text-editor__toolbar{display:flex;flex-direction:row;flex-wrap:wrap}.editor-post-text-editor__toolbar button{height:30px;background:0 0;padding:0 8px;margin:3px 4px;text-align:center;cursor:pointer;font-family:Menlo,Consolas,monaco,monospace;color:#555d66;border:1px solid transparent}.editor-post-text-editor__toolbar button:first-child{margin-right:0}.editor-post-text-editor__toolbar button:focus,.editor-post-text-editor__toolbar button:hover{outline:0;border:1px solid #555d66}.editor-post-text-editor__bold{font-weight:600}.editor-post-text-editor__italic{font-style:italic}.editor-post-text-editor__link{text-decoration:underline;color:#0085ba}body.admin-color-sunrise .editor-post-text-editor__link{color:#d1864a}body.admin-color-ocean .editor-post-text-editor__link{color:#a3b9a2}body.admin-color-midnight .editor-post-text-editor__link{color:#e14d43}body.admin-color-ectoplasm .editor-post-text-editor__link{color:#a7b656}body.admin-color-coffee .editor-post-text-editor__link{color:#c2a68c}body.admin-color-blue .editor-post-text-editor__link{color:#82b4cb}body.admin-color-light .editor-post-text-editor__link{color:#0085ba}.editor-post-text-editor__del{text-decoration:line-through}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-fieldset{padding:4px;padding-top:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio{margin-top:2px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info{margin-top:0;margin-right:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input{margin-right:28px}.edit-post-post-visibility__dialog.components-popover.is-bottom{z-index:100001}.editor-post-title__block{position:relative;padding:5px 0;font-size:16px}@media (min-width:600px){.editor-post-title__block{padding:5px 2px}}.editor-post-title__block .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:0 0;font-family:"Noto Serif",serif;line-height:1.4;color:#191e23;transition:border .1s ease-out;padding:19px 14px;word-break:keep-all;border:1px solid transparent;border-right-width:0;border-left-width:0;font-size:2.441em;font-weight:600}@media (min-width:600px){.editor-post-title__block .editor-post-title__input{border-width:1px}}.editor-post-title__block .editor-post-title__input::-webkit-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input::-moz-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input:-ms-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:rgba(145,151,162,.25)}.is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:rgba(255,255,255,.3)}.editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#007cba}body.admin-color-sunrise .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#837425}body.admin-color-ocean .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#5e7d5e}body.admin-color-midnight .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#497b8d}body.admin-color-ectoplasm .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#523f6d}body.admin-color-coffee .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#59524c}body.admin-color-blue .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#417e9b}body.admin-color-light .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#007cba}.editor-post-title__block.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}.editor-post-title__block.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-title .editor-post-permalink{font-size:13px;color:#191e23;position:absolute;top:-34px;right:0;left:0}@media (min-width:600px){.editor-post-title .editor-post-permalink{right:2px;left:2px}}.editor-post-trash.components-button{width:100%;color:#c92c2c;justify-content:center}.editor-post-trash.components-button:focus,.editor-post-trash.components-button:hover{color:#b52727}.editor-format-toolbar{display:flex;flex-shrink:0}.editor-format-toolbar__selection-position{position:absolute;transform:translateX(50%)}.editor-rich-text{position:relative}.editor-rich-text__tinymce{margin:0;position:relative;line-height:1.8;white-space:pre-wrap}.editor-rich-text__tinymce>p:empty{min-height:28.8px}.editor-rich-text__tinymce>p:first-child{margin-top:0}.editor-rich-text__tinymce:focus{outline:0}.editor-rich-text__tinymce a{color:#007fac}.editor-rich-text__tinymce code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:inherit}.is-multi-selected .editor-rich-text__tinymce code{background:#67cffd}.editor-rich-text__tinymce:focus a[data-mce-selected],.editor-rich-text__tinymce:focus b[data-mce-selected],.editor-rich-text__tinymce:focus del[data-mce-selected],.editor-rich-text__tinymce:focus em[data-mce-selected],.editor-rich-text__tinymce:focus i[data-mce-selected],.editor-rich-text__tinymce:focus ins[data-mce-selected],.editor-rich-text__tinymce:focus strong[data-mce-selected],.editor-rich-text__tinymce:focus sub[data-mce-selected],.editor-rich-text__tinymce:focus sup[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e8eaeb;background:#e8eaeb;color:#191e23}.editor-rich-text__tinymce:focus a[data-mce-selected]{box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa;color:#006589}.editor-rich-text__tinymce:focus code[data-mce-selected]{background:#e8eaeb;box-shadow:0 0 0 1px #e8eaeb}.editor-rich-text__tinymce img[data-mce-selected]{outline:0}.editor-rich-text__tinymce img::selection{background:0 0!important}.editor-rich-text__tinymce[data-is-placeholder-visible=true]{position:absolute;top:0;width:100%;margin-top:0;height:100%}.editor-rich-text__tinymce[data-is-placeholder-visible=true]>p{margin-top:0}.editor-rich-text__tinymce+.editor-rich-text__tinymce{pointer-events:none}.editor-rich-text__tinymce+.editor-rich-text__tinymce,.editor-rich-text__tinymce+.editor-rich-text__tinymce p{opacity:.62}.editor-rich-text__tinymce[data-is-placeholder-visible=true]+figcaption.editor-rich-text__tinymce{opacity:.8}.editor-rich-text__inline-toolbar{display:flex;justify-content:center;position:absolute;top:-40px;line-height:0;right:0;left:0;z-index:1}.editor-rich-text__inline-toolbar ul.components-toolbar{box-shadow:0 2px 10px rgba(25,30,35,.1),0 0 2px rgba(25,30,35,.1)}.editor-skip-to-selected-block{position:absolute;top:-9999em}.editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#11a0d2;line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:0;z-index:100000}body.admin-color-sunrise .editor-skip-to-selected-block:focus{color:#c8b03c}body.admin-color-ocean .editor-skip-to-selected-block:focus{color:#a89d8a}body.admin-color-midnight .editor-skip-to-selected-block:focus{color:#77a6b9}body.admin-color-ectoplasm .editor-skip-to-selected-block:focus{color:#c77430}body.admin-color-coffee .editor-skip-to-selected-block:focus{color:#9fa47b}body.admin-color-blue .editor-skip-to-selected-block:focus{color:#d9ab59}body.admin-color-light .editor-skip-to-selected-block:focus{color:#c75726}.table-of-contents__popover.components-popover:not(.is-mobile) .components-popover__content{min-width:380px}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__counts{display:flex;flex-wrap:wrap}.table-of-contents__count{width:25%;display:flex;flex-direction:column;font-size:13px;color:#6c7781}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#555d66}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-right:5px}.components-popover .editor-url-input,.editor-block-list__block .editor-url-input,.editor-url-input{flex-grow:1;position:relative;padding:1px}.components-popover .editor-url-input input[type=text],.editor-block-list__block .editor-url-input input[type=text],.editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-right:0;margin-left:0}@media (min-width:600px){.components-popover .editor-url-input input[type=text],.editor-block-list__block .editor-url-input input[type=text],.editor-url-input input[type=text]{width:300px}}.components-popover .editor-url-input input[type=text]::-ms-clear,.editor-block-list__block .editor-url-input input[type=text]::-ms-clear,.editor-url-input input[type=text]::-ms-clear{display:none}.components-popover .editor-url-input .components-spinner,.editor-block-list__block .editor-url-input .components-spinner,.editor-url-input .components-spinner{position:absolute;left:8px;top:9px;margin:0}.editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}.editor-url-input .components-spinner,.editor-url-input__suggestions{display:none}@media (min-width:600px){.editor-url-input .components-spinner,.editor-url-input__suggestions{display:inherit}}.editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;border:none;box-shadow:none}.editor-url-input__suggestion:hover{background:#e2e4e7}.editor-url-input__suggestion.is-selected,.editor-url-input__suggestion:focus{background:#00719e;color:#fff;outline:0}body.admin-color-sunrise .editor-url-input__suggestion.is-selected,body.admin-color-sunrise .editor-url-input__suggestion:focus{background:#b2723f}body.admin-color-ocean .editor-url-input__suggestion.is-selected,body.admin-color-ocean .editor-url-input__suggestion:focus{background:#8b9d8a}body.admin-color-midnight .editor-url-input__suggestion.is-selected,body.admin-color-midnight .editor-url-input__suggestion:focus{background:#bf4139}body.admin-color-ectoplasm .editor-url-input__suggestion.is-selected,body.admin-color-ectoplasm .editor-url-input__suggestion:focus{background:#8e9b49}body.admin-color-coffee .editor-url-input__suggestion.is-selected,body.admin-color-coffee .editor-url-input__suggestion:focus{background:#a58d77}body.admin-color-blue .editor-url-input__suggestion.is-selected,body.admin-color-blue .editor-url-input__suggestion:focus{background:#6f99ad}body.admin-color-light .editor-url-input__suggestion.is-selected,body.admin-color-light .editor-url-input__suggestion:focus{background:#00719e}.components-toolbar>.editor-url-input__button{position:inherit}.editor-url-input__button .editor-url-input__back{margin-left:4px;overflow:visible}.editor-url-input__button .editor-url-input__back::after{content:"";position:absolute;display:block;width:1px;height:24px;left:-1px;background:#e2e4e7}.editor-url-input__button-modal{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff}.editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.editor-url-popover__row{display:flex}.editor-url-popover__row>:not(.editor-url-popover__settings-toggle){flex-grow:1}.editor-url-popover__settings-toggle{flex-shrink:0;width:36px;height:36px}.editor-url-popover__settings-toggle .dashicon{transform:rotate(-90deg)}.editor-url-popover__settings{padding:7px 8px;border-top:1px solid #e2e4e7;padding-top:8px}.editor-warning{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:nowrap;background-color:#fff;border:1px solid #e2e4e7;text-align:right;padding:20px}.has-warning.is-multi-selected .editor-warning{background-color:transparent}.editor-warning .editor-warning__message{line-height:1.4;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px}.editor-warning .editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:center;width:100%}.editor-warning .editor-warning__actions{display:flex}.editor-warning .editor-warning__action{margin:0 0 0 6px}.editor-warning__secondary{margin:3px -4px 0 0}.editor-warning__secondary .components-icon-button{width:auto;padding:8px 2px}@media (min-width:600px){.editor-warning__secondary{margin-right:4px}.editor-warning__secondary .components-icon-button{padding:8px 4px}}.editor-warning__secondary .components-button svg{transform:rotate(-90deg)}.editor-writing-flow{height:100%;display:flex;flex-direction:column}.editor-writing-flow__click-redirect{flex-basis:100%;cursor:text} \ No newline at end of file +@charset "UTF-8";.editor-autocompleters__block .editor-block-icon{margin-left:8px}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-left:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-right:8px;color:#8f98a1;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#66c6e4}.editor-block-drop-zone{border:none;border-radius:0}.editor-block-drop-zone .components-drop-zone__content,.editor-block-drop-zone.is-dragging-over-element .components-drop-zone__content{display:none}.editor-block-drop-zone.is-close-to-bottom{background:0 0;border-bottom:3px solid #0085ba}body.admin-color-sunrise .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #d1864a}body.admin-color-ocean .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #a3b9a2}body.admin-color-midnight .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #e14d43}body.admin-color-ectoplasm .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #a7b656}body.admin-color-coffee .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #c2a68c}body.admin-color-blue .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #82b4cb}body.admin-color-light .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #0085ba}.editor-block-drop-zone.is-appender.is-close-to-bottom,.editor-block-drop-zone.is-appender.is-close-to-top,.editor-block-drop-zone.is-close-to-top{background:0 0;border-top:3px solid #0085ba;border-bottom:none}body.admin-color-sunrise .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-sunrise .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-sunrise .editor-block-drop-zone.is-close-to-top{border-top:3px solid #d1864a}body.admin-color-ocean .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-ocean .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-ocean .editor-block-drop-zone.is-close-to-top{border-top:3px solid #a3b9a2}body.admin-color-midnight .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-midnight .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-midnight .editor-block-drop-zone.is-close-to-top{border-top:3px solid #e14d43}body.admin-color-ectoplasm .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-ectoplasm .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-ectoplasm .editor-block-drop-zone.is-close-to-top{border-top:3px solid #a7b656}body.admin-color-coffee .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-coffee .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-coffee .editor-block-drop-zone.is-close-to-top{border-top:3px solid #c2a68c}body.admin-color-blue .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-blue .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-blue .editor-block-drop-zone.is-close-to-top{border-top:3px solid #82b4cb}body.admin-color-light .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-light .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-light .editor-block-drop-zone.is-close-to-top{border-top:3px solid #0085ba}.editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0;border-radius:4px}.editor-block-icon.has-colors svg{fill:currentColor}.editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.editor-block-inspector__card{display:flex;align-items:flex-start;margin:-16px;padding:16px}.editor-block-inspector__card-icon{border:1px solid #ccd0d4;padding:7px;margin-left:10px;height:36px;width:36px}.editor-block-inspector__card-content{flex-grow:1}.editor-block-inspector__card-title{font-weight:500;margin-bottom:5px}.editor-block-inspector__card-description{font-size:13px}.editor-block-inspector__card .editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.editor-block-list__layout .components-draggable__clone .editor-block-contextual-toolbar{display:none!important}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-list__block-edit::before{outline:0}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging>.editor-block-list__block-edit>*{background:#f8f9f9}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging>.editor-block-list__block-edit>*>*{visibility:hidden}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-mover{display:none}.editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit .reusable-block-edit-panel *{z-index:1}@media (min-width:600px){.editor-block-list__layout{padding-right:46px;padding-left:46px}}.editor-block-list__block .editor-block-list__layout{padding-right:0;padding-left:0;margin-right:-14px;margin-left:-14px}.editor-block-list__layout .editor-default-block-appender>.editor-default-block-appender__content,.editor-block-list__layout>.editor-block-list__block>.editor-block-list__block-edit,.editor-block-list__layout>.editor-block-list__layout>.editor-block-list__block>.editor-block-list__block-edit{margin-top:32px;margin-bottom:32px}.editor-block-list__layout .editor-block-list__block{position:relative;padding-right:14px;padding-left:14px;overflow-wrap:break-word}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block{padding-right:43px;padding-left:43px}}.editor-block-list__layout .editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 20px 12px 20px;width:calc(100% - 40px)}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui{margin:0 0 12px 0;width:100%}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui .components-notice{margin-right:0;margin-left:0}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit{position:relative}.editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit::before{z-index:0;content:"";position:absolute;outline:1px solid transparent;transition:outline .1s linear;pointer-events:none;left:-14px;right:-14px;top:-14px;bottom:-14px}.editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit::before{outline:1px solid rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit::before{outline-color:rgba(255,255,255,.3)}.editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #007cba}body.admin-color-sunrise .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #837425}body.admin-color-ocean .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #5e7d5e}body.admin-color-midnight .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #497b8d}body.admin-color-ectoplasm .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #523f6d}body.admin-color-coffee .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #59524c}body.admin-color-blue .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #417e9B}body.admin-color-light .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #007cba}.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .editor-block-list__block{opacity:1}.editor-block-list__layout .editor-block-list__block ::-moz-selection{background-color:#b3e7fe}.editor-block-list__layout .editor-block-list__block ::selection{background-color:#b3e7fe}.editor-block-list__layout .editor-block-list__block.is-multi-selected ::-moz-selection{background-color:transparent}.editor-block-list__layout .editor-block-list__block.is-multi-selected ::selection{background-color:transparent}.editor-block-list__layout .editor-block-list__block.is-multi-selected .editor-block-list__block-edit::before{background:#b3e7fe;mix-blend-mode:multiply;top:-14px;bottom:-14px}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-multi-selected .editor-block-list__block-edit::before{mix-blend-mode:soft-light}.editor-block-list__layout .editor-block-list__block.has-warning{min-height:36px}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit>*{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit .editor-warning{pointer-events:all}.editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit::before{outline-color:rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit::before{outline-color:rgba(255,255,255,.3)}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit::after{content:"";position:absolute;background-color:rgba(248,249,249,.4);top:-14px;bottom:-14px;left:-14px;right:-14px}.editor-block-list__layout .editor-block-list__block.has-warning.is-multi-selected .editor-block-list__block-edit::after{background-color:transparent}.editor-block-list__layout .editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit::after{bottom:22px}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit::after{bottom:-14px}}.editor-block-list__layout .editor-block-list__block.is-typing .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block.is-typing .editor-block-list__side-inserter{opacity:0}.editor-block-list__layout .editor-block-list__block .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block .editor-block-list__side-inserter{opacity:1;transition:opacity .2s}.editor-block-list__layout .editor-block-list__block.is-reusable>.editor-block-list__block-edit::before{outline:1px dashed rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-reusable>.editor-block-list__block-edit::before{outline-color:rgba(255,255,255,.3)}.editor-block-list__layout .editor-block-list__block[data-align=left],.editor-block-list__layout .editor-block-list__block[data-align=right]{z-index:20;width:100%;height:0}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit{margin-top:0}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit::before,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit::before{content:none}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-bottom:1px}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-mobile-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-mobile-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-mover{display:none}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{width:auto;border-bottom:1px solid #e2e4e7;bottom:auto}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{right:0;left:auto}.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{right:auto;left:0}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{top:14px}}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit{float:left;margin-right:2em}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-toolbar{left:14px;right:auto}}.editor-block-list__layout .editor-block-list__block[data-align=right]>.editor-block-list__block-edit{float:right;margin-left:2em}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-toolbar{right:14px;left:auto}}.editor-block-list__layout .editor-block-list__block[data-align=full],.editor-block-list__layout .editor-block-list__block[data-align=wide]{clear:both;z-index:20}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{top:-44px;bottom:auto;min-height:0;height:auto;width:auto;z-index:inherit}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover::before,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover::before{content:none}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover .editor-block-mover__control,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover .editor-block-mover__control{float:right}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__breadcrumb,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-list__breadcrumb{left:-1px}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{display:none}@media (min-width:1280px){.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{display:block}}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full] .editor-block-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=wide] .editor-block-toolbar{display:inline-flex}}.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{right:-13px}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit>.editor-block-list__breadcrumb{left:0}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full]{margin-right:-45px;margin-left:-45px}}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit{margin-right:-14px;margin-left:-14px}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit{margin-right:-44px;margin-left:-44px}}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit figure{width:100%}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit::before{right:0;left:0;border-right-width:0;border-left-width:0}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover{right:1px}.editor-block-list__layout .editor-block-list__block[data-clear=true]{float:none}.editor-block-list__layout .editor-block-list__block .editor-block-drop-zone{top:-4px;bottom:-3px;margin:0 14px}.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-inserter-with-shortcuts{display:none}.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-default-block-appender .editor-inserter{right:auto;left:8px}.editor-block-list__block>.editor-block-mover{position:absolute;width:30px;height:100%;max-height:112px}.editor-block-list__block>.editor-block-mover{top:-15px}@media (min-width:600px){.editor-block-list__block.is-hovered .editor-block-mover,.editor-block-list__block.is-multi-selected .editor-block-mover,.editor-block-list__block.is-selected .editor-block-mover{z-index:80}}.editor-block-list__block>.editor-block-mover{padding-left:2px;right:-30px;display:none}@media (min-width:600px){.editor-block-list__block>.editor-block-mover{display:block}}.editor-block-list__block .editor-block-list__block-mobile-toolbar{display:flex;flex-direction:row;transform:translateY(15px);margin-top:37px;margin-left:-14px;margin-right:-14px;border-top:1px solid #e2e4e7;height:37px;box-shadow:0 5px 10px rgba(25,30,35,.05),0 2px 2px rgba(25,30,35,.05)}@media (min-width:600px){.editor-block-list__block .editor-block-list__block-mobile-toolbar{display:none}}@media (min-width:600px){.editor-block-list__block .editor-block-list__block-mobile-toolbar{box-shadow:none}}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter{position:relative;right:auto;top:auto;margin:0}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover__control,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter__toggle{width:36px;height:36px;border-radius:4px;padding:3px;margin:0;justify-content:center;align-items:center}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover__control .dashicon,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter__toggle .dashicon{margin:auto}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover{display:flex;margin-left:auto}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover .editor-block-mover__control,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover .editor-inserter{float:right}.editor-block-list__block[data-align=full] .editor-block-list__block-mobile-toolbar{margin-right:0;margin-left:0}.editor-block-list .editor-inserter{margin:8px;cursor:move;cursor:-webkit-grab;cursor:grab}.editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:2px;right:0;left:0;background:#0085ba}body.admin-color-sunrise .editor-block-list__insertion-point-indicator{background:#d1864a}body.admin-color-ocean .editor-block-list__insertion-point-indicator{background:#a3b9a2}body.admin-color-midnight .editor-block-list__insertion-point-indicator{background:#e14d43}body.admin-color-ectoplasm .editor-block-list__insertion-point-indicator{background:#a7b656}body.admin-color-coffee .editor-block-list__insertion-point-indicator{background:#c2a68c}body.admin-color-blue .editor-block-list__insertion-point-indicator{background:#82b4cb}body.admin-color-light .editor-block-list__insertion-point-indicator{background:#0085ba}.editor-block-list__insertion-point-inserter{display:none;position:absolute;bottom:auto;right:0;left:0;justify-content:center;opacity:0;transition:opacity .1s linear .1s}@media (min-width:480px){.editor-block-list__insertion-point-inserter{display:flex}}.editor-block-list__insertion-point-inserter .editor-inserter__toggle{margin-top:-4px;border-radius:50%;color:#007cba;background:#fff;height:36px;width:36px}.editor-block-list__insertion-point-inserter .editor-inserter__toggle:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.editor-block-list__insertion-point-inserter.is-visible,.editor-block-list__insertion-point-inserter:hover{opacity:1}.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter{opacity:0;pointer-events:none}.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter.is-visible,.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter:hover,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter.is-visible,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter:hover{opacity:1;pointer-events:auto}.editor-block-list__block>.editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;right:0;left:0}@media (min-width:600px){.editor-block-list__block>.editor-block-list__insertion-point{right:-1px;left:-1px}}.editor-block-list__block[data-align=full]>.editor-block-list__insertion-point{right:0;left:0}.editor-block-list__block .editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:0;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;line-height:150%;transition:padding .2s linear}.editor-block-list__block .editor-block-list__block-html-textarea:focus{box-shadow:none}.editor-block-list__block .editor-block-contextual-toolbar{position:-webkit-sticky;position:sticky;z-index:21;white-space:nowrap;text-align:right;pointer-events:none;position:absolute;bottom:23px;right:-14px;left:-14px;border-top:1px solid #e2e4e7}.editor-block-list__block .editor-block-contextual-toolbar .components-toolbar{border-top:none;border-bottom:none}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{border-top:none}.editor-block-list__block .editor-block-contextual-toolbar .components-toolbar{border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-bottom:1px;margin-top:-37px}.editor-block-list__block .editor-block-contextual-toolbar{margin-right:0;margin-left:0}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{margin-right:-15px;margin-left:-15px}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{margin-right:15px}.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-left:15px}.editor-block-list__block .editor-block-contextual-toolbar>*{pointer-events:auto}.editor-block-list__block.is-focus-mode:not(.is-multi-selected)>.editor-block-contextual-toolbar{margin-right:-28px}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{bottom:auto;right:auto;left:auto;box-shadow:none;transform:translateY(-52px)}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-block-list__block .editor-block-contextual-toolbar{position:-webkit-sticky;position:sticky;top:51px}}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{float:left}.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{float:right}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{transform:translateY(-15px)}.editor-block-contextual-toolbar .editor-block-toolbar{width:100%}@media (min-width:600px){.editor-block-contextual-toolbar .editor-block-toolbar{width:auto;border-left:none;position:absolute;right:0}}.editor-block-list__breadcrumb{position:absolute;line-height:1;z-index:2;left:-14px;top:-15px}.editor-block-list__breadcrumb .components-toolbar{padding:0;border:none;background:0 0;line-height:1;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:11px;padding:4px 4px;background:#007cba;color:#fff}body.admin-color-sunrise .editor-block-list__breadcrumb .components-toolbar{background:#837425}body.admin-color-ocean .editor-block-list__breadcrumb .components-toolbar{background:#5e7d5e}body.admin-color-midnight .editor-block-list__breadcrumb .components-toolbar{background:#497b8d}body.admin-color-ectoplasm .editor-block-list__breadcrumb .components-toolbar{background:#523f6d}body.admin-color-coffee .editor-block-list__breadcrumb .components-toolbar{background:#59524c}body.admin-color-blue .editor-block-list__breadcrumb .components-toolbar{background:#417e9b}body.admin-color-light .editor-block-list__breadcrumb .components-toolbar{background:#007cba}.editor-block-list__block:hover .editor-block-list__breadcrumb .components-toolbar{opacity:0;animation:edit-post__fade-in-animation 60ms ease-out .5s;animation-fill-mode:forwards}[data-align=left] .editor-block-list__breadcrumb,[data-align=right] .editor-block-list__breadcrumb{left:0;top:0}.editor-block-list__descendant-arrow::before{content:"→";display:inline-block;padding:0 4px}.rtl .editor-block-list__descendant-arrow::before{content:"←"}@media (min-width:600px){.editor-block-list__block::before{bottom:0;content:"";right:-28px;position:absolute;left:-28px;top:0}.editor-block-list__block .editor-block-list__block::before{right:0;left:0}.editor-block-list__block[data-align=full]::before{content:none}}.editor-block-list__block .editor-warning{z-index:5;position:relative;margin-left:-15px;margin-right:-15px;margin-bottom:-15px;transform:translateY(-15px);padding:10px 14px}@media (min-width:600px){.editor-block-list__block .editor-warning{padding:10px 14px}}.block-list-appender>.editor-inserter{display:block}.block-list-appender__toggle{display:flex;align-items:center;justify-content:center;padding:16px;outline:1px dashed #8d96a0;width:100%;color:#555d66}.block-list-appender__toggle:hover{outline:1px dashed #555d66}.editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.editor-block-compare{max-height:70%}}.editor-block-compare__wrapper{display:flex;padding-bottom:16px}.editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 0 0 16px;min-width:200px}.editor-block-compare__wrapper>div button{float:left}.editor-block-compare__wrapper .editor-block-compare__converted{border-right:1px solid #ddd;padding-right:15px}.editor-block-compare__wrapper .editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#23282d;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.editor-block-compare__wrapper .editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.editor-block-compare__wrapper .editor-block-compare__html span.editor-block-compare__added{background-color:#acf2bd}.editor-block-compare__wrapper .editor-block-compare__html span.editor-block-compare__removed{background-color:#d94f4f}.editor-block-compare__wrapper .editor-block-compare__preview{padding:0;padding-top:14px}.editor-block-compare__wrapper .editor-block-compare__preview p{font-size:12px;margin-top:0}.editor-block-compare__wrapper .editor-block-compare__action{margin-top:14px}.editor-block-compare__wrapper .editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.editor-block-mover{min-height:56px;opacity:0}.editor-block-mover.is-visible{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (min-width:600px){.editor-block-list__block:not([data-align=wide]):not([data-align=full]) .editor-block-mover{margin-top:-8px}}.editor-block-mover__control{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;width:28px;height:24px;color:rgba(14,28,46,.62)}.editor-block-mover__control svg{width:28px;height:24px;padding:2px 5px}.is-dark-theme .editor-block-mover__control{color:rgba(255,255,255,.65)}.editor-block-mover__control[aria-disabled=true]{cursor:default;pointer-events:none;color:rgba(130,148,147,.15)}.is-dark-theme .editor-block-mover__control[aria-disabled=true]{color:rgba(255,255,255,.2)}.editor-block-mover__control-drag-handle{cursor:move;cursor:-webkit-grab;cursor:grab;fill:currentColor;border-radius:4px}.editor-block-mover__control-drag-handle,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none;background:0 0;color:rgba(10,24,41,.7)}.is-dark-theme .editor-block-mover__control-drag-handle,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:rgba(255,255,255,.75)}.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active{cursor:-webkit-grabbing;cursor:grabbing}.editor-block-mover__description{display:none}@media (min-width:600px){.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default){background:#fff;box-shadow:inset 0 0 0 1px #e2e4e7}.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):nth-child(-n+2),.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:nth-child(-n+2){margin-bottom:-1px}.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:active,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:focus,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:hover{z-index:1}}.editor-block-navigation__container{padding:7px}.editor-block-navigation__label{margin:0 0 8px;color:#6c7781}.editor-block-navigation__list,.editor-block-navigation__paragraph{padding:0;margin:0}.editor-block-navigation__list .editor-block-navigation__list{margin-top:2px;border-right:2px solid #a2aab2;margin-right:1em}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__list{margin-right:1.5em}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item{position:relative}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item::before{position:absolute;right:0;background:#a2aab2;width:.5em;height:2px;content:"";top:calc(50% - 1px)}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item-button{margin-right:.8em;width:calc(100% - .8em)}.editor-block-navigation__list .editor-block-navigation__list>li:last-child{position:relative}.editor-block-navigation__list .editor-block-navigation__list>li:last-child::after{position:absolute;content:"";background:#fff;top:19px;bottom:0;right:-2px;width:2px}.editor-block-navigation__item-button{display:flex;align-items:center;width:100%;padding:6px;text-align:right;color:#40464d;border-radius:4px}.editor-block-navigation__item-button .editor-block-icon{margin-left:6px}.editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none}.editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-block-navigation__item-button.is-selected,.editor-block-navigation__item-button.is-selected:focus{color:#32373c;background:#edeff0}.editor-block-preview{pointer-events:none;padding:10px;overflow:hidden;display:none}@media (min-width:782px){.editor-block-preview{display:block}}.editor-block-preview .editor-block-preview__content{padding:14px;border:1px solid #e2e4e7;font-family:"Noto Serif",serif}.editor-block-preview .editor-block-preview__content>div{transform:scale(.9);transform-origin:center top;font-family:"Noto Serif",serif}.editor-block-preview .editor-block-preview__content>div section{height:auto}.editor-block-preview .editor-block-preview__content>.reusable-block-indicator{display:none}.editor-block-preview__title{margin-bottom:10px;color:#6c7781}.editor-block-settings-menu__toggle .dashicon{transform:rotate(-90deg)}.editor-block-settings-menu__popover::after,.editor-block-settings-menu__popover::before{margin-right:2px}.editor-block-settings-menu__popover .editor-block-settings-menu__content{padding:7px}.editor-block-settings-menu__popover .editor-block-settings-menu__separator{margin-top:8px;margin-bottom:8px;margin-right:-7px;margin-left:-7px;border-top:1px solid #e2e4e7}.editor-block-settings-menu__popover .editor-block-settings-menu__separator:last-child{display:none}.editor-block-settings-menu__popover .editor-block-settings-menu__title{display:block;padding:6px;color:#6c7781}.editor-block-settings-menu__popover .editor-block-settings-menu__control{width:100%;justify-content:flex-start;padding:8px;background:0 0;outline:0;border-radius:0;color:#555d66;text-align:right;cursor:pointer;border:none;box-shadow:none}.editor-block-settings-menu__popover .editor-block-settings-menu__control:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none}.editor-block-settings-menu__popover .editor-block-settings-menu__control:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-block-settings-menu__popover .editor-block-settings-menu__control .dashicon{margin-left:5px}.editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:4px;padding:4px}.editor-block-styles__item.is-active{color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px;box-shadow:0 0 0 2px #555d66}.editor-block-styles__item:focus{color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-block-styles__item:hover{background:#f8f9f9;color:#191e23}.editor-block-styles__item-preview{outline:1px solid transparent;border:1px solid rgba(25,30,35,.2);overflow:hidden;padding:0;text-align:initial;border-radius:4px;display:flex;height:60px;background:#fff}.editor-block-styles__item-preview .editor-block-preview__content{transform:scale(.7);transform-origin:center center;width:100%;margin:0;padding:0;overflow:visible;min-height:auto}.editor-block-styles__item-label{text-align:center;padding:4px 2px}.editor-block-switcher{position:relative;height:36px}.components-icon-button.editor-block-switcher__no-switcher-icon,.components-icon-button.editor-block-switcher__toggle{margin:0;display:block;height:36px;padding:3px}.components-icon-button.editor-block-switcher__no-switcher-icon{width:48px}.components-icon-button.editor-block-switcher__no-switcher-icon .editor-block-icon{margin-left:auto;margin-right:auto}.components-icon-button.editor-block-switcher__toggle{width:auto}.components-icon-button.editor-block-switcher__toggle:active,.components-icon-button.editor-block-switcher__toggle:not(:disabled):not([aria-disabled=true]):hover,.components-icon-button.editor-block-switcher__toggle:not([aria-disabled=true]):focus{outline:0;box-shadow:none;background:0 0;border:none}.components-icon-button.editor-block-switcher__toggle .editor-block-icon,.components-icon-button.editor-block-switcher__toggle .editor-block-switcher__transform{width:42px;height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;transition:all .1s cubic-bezier(.165, .84, .44, 1)}.components-icon-button.editor-block-switcher__toggle .editor-block-icon::after{content:"";pointer-events:none;display:block;width:0;height:0;border-right:3px solid transparent;border-left:3px solid transparent;border-top:5px solid currentColor;margin-right:4px;margin-left:2px}.components-icon-button.editor-block-switcher__toggle .editor-block-switcher__transform{margin-top:6px;border-radius:4px}.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-switcher__transform,.components-icon-button.editor-block-switcher__toggle:not(:disabled):hover .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):hover .editor-block-switcher__transform,.components-icon-button.editor-block-switcher__toggle[aria-expanded=true] .editor-block-icon,.components-icon-button.editor-block-switcher__toggle[aria-expanded=true] .editor-block-switcher__transform{transform:translateY(-36px)}.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-switcher__transform{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-popover:not(.is-mobile).editor-block-switcher__popover .components-popover__content{min-width:300px;max-width:340px}@media (min-width:782px){.editor-block-switcher__popover .components-popover__content{position:relative}.editor-block-switcher__popover .components-popover__content .editor-block-preview{border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;position:absolute;right:100%;top:-1px;bottom:-1px;width:300px;height:auto}}.editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #e2e4e7}.editor-block-switcher__popover:not(.is-mobile)>.components-popover__content{overflow-y:visible}.editor-block-switcher__popover .editor-block-styles{margin:0 -3px}.editor-block-switcher__popover .editor-block-types-list{margin:8px -8px -8px}.editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;border-right:1px solid #e2e4e7}@media (min-width:600px){.editor-block-toolbar{overflow:inherit}}.editor-block-toolbar .components-toolbar{border:0;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7;border-left:1px solid #e2e4e7}.editor-block-types-list{list-style:none;padding:2px 0;overflow:hidden;display:flex;flex-wrap:wrap}.editor-color-palette-control__color-palette{display:inline-block;margin-top:.6rem}.editor-contrast-checker>.components-notice{margin:0}.editor-default-block-appender{clear:both}.editor-default-block-appender textarea.editor-default-block-appender__content{font-family:"Noto Serif",serif;font-size:16px;border:none;background:0 0;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:.2s outline;resize:none;padding:0 14px 0 50px;color:rgba(14,28,46,.62)}.is-dark-theme .editor-default-block-appender textarea.editor-default-block-appender__content{color:rgba(255,255,255,.65)}.editor-default-block-appender .editor-inserter-with-shortcuts{opacity:.5;transition:opacity .2s}.editor-default-block-appender .editor-inserter-with-shortcuts .components-icon-button:not(:hover){color:rgba(10,24,41,.7)}.is-dark-theme .editor-default-block-appender .editor-inserter-with-shortcuts .components-icon-button:not(:hover){color:rgba(255,255,255,.75)}.editor-default-block-appender .editor-inserter__toggle:not([aria-expanded=true]){opacity:0}.editor-default-block-appender:hover .editor-inserter-with-shortcuts{opacity:1}.editor-default-block-appender:hover .editor-inserter__toggle{opacity:1}.editor-default-block-appender .components-drop-zone__content-icon{display:none}.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter,.editor-inserter-with-shortcuts{position:absolute;top:0}.editor-block-list__empty-block-inserter .components-icon-button,.editor-default-block-appender .editor-inserter .components-icon-button,.editor-inserter-with-shortcuts .components-icon-button{width:28px;height:28px;margin-left:12px;padding:0}.editor-block-list__empty-block-inserter .editor-block-icon,.editor-default-block-appender .editor-inserter .editor-block-icon,.editor-inserter-with-shortcuts .editor-block-icon{margin:auto}.editor-block-list__empty-block-inserter .components-icon-button svg,.editor-default-block-appender .editor-inserter .components-icon-button svg,.editor-inserter-with-shortcuts .components-icon-button svg{display:block;margin:auto}.editor-block-list__empty-block-inserter .editor-inserter__toggle,.editor-default-block-appender .editor-inserter .editor-inserter__toggle,.editor-inserter-with-shortcuts .editor-inserter__toggle{margin-left:0}.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter{left:8px}@media (min-width:600px){.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter{right:-44px;left:auto}}.editor-block-list__empty-block-inserter:disabled,.editor-default-block-appender .editor-inserter:disabled{display:none}.editor-block-list__empty-block-inserter .editor-inserter__toggle,.editor-default-block-appender .editor-inserter .editor-inserter__toggle{transition:opacity .2s;border-radius:50%;width:28px;height:28px;padding:0}.editor-block-list__empty-block-inserter .editor-inserter__toggle:not(:hover),.editor-default-block-appender .editor-inserter .editor-inserter__toggle:not(:hover){color:rgba(10,24,41,.7)}.is-dark-theme .editor-block-list__empty-block-inserter .editor-inserter__toggle:not(:hover),.is-dark-theme .editor-default-block-appender .editor-inserter .editor-inserter__toggle:not(:hover){color:rgba(255,255,255,.75)}.editor-block-list__side-inserter .editor-inserter-with-shortcuts,.editor-default-block-appender .editor-inserter-with-shortcuts{left:14px;display:none;z-index:5}@media (min-width:600px){.editor-block-list__side-inserter .editor-inserter-with-shortcuts,.editor-default-block-appender .editor-inserter-with-shortcuts{left:0;display:flex}}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item .document-outline__emdash::before{color:#e2e4e7;margin-left:4px}.document-outline__item.is-h2 .document-outline__emdash::before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash::before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash::before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash::before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash::before{content:"—————"}.document-outline__button{cursor:pointer;background:0 0;border:none;display:flex;align-items:flex-start;color:#23282d;text-align:right}.document-outline__button:focus{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.document-outline__level{background:#e2e4e7;color:#23282d;border-radius:3px;font-size:13px;padding:1px 6px;margin-left:4px}.is-invalid .document-outline__level{background:#f0b849}.editor-error-boundary{max-width:610px;margin:auto;max-width:780px;padding:20px;margin-top:60px;box-shadow:0 3px 30px rgba(25,30,35,.2)}.editor-inner-blocks.has-overlay::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;z-index:120}.editor-inserter-with-shortcuts{display:flex;align-items:center}.editor-inserter-with-shortcuts .components-icon-button{border-radius:4px}.editor-inserter-with-shortcuts .components-icon-button svg:not(.dashicon){height:24px;width:24px}.editor-inserter-with-shortcuts__block{margin-left:4px;width:36px;height:36px;padding-top:8px;color:rgba(102,120,134,.35)}.is-dark-theme .editor-inserter-with-shortcuts__block{color:rgba(255,255,255,.4)}.editor-inserter{display:inline-block;background:0 0;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.editor-inserter{position:relative}}@media (min-width:782px){.editor-inserter__popover:not(.is-mobile)>.components-popover__content{overflow-y:visible;height:432px}}.editor-inserter__toggle{display:inline-flex;align-items:center;color:#555d66;background:0 0;cursor:pointer;border:none;outline:0;transition:color .2s ease}.editor-inserter__menu{width:auto;display:flex;flex-direction:column;height:100%}@media (min-width:782px){.editor-inserter__menu{width:400px;position:relative}.editor-inserter__menu .editor-block-preview{border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;position:absolute;right:100%;top:-1px;bottom:-1px;width:300px}}.editor-inserter__inline-elements{margin-top:-1px}.editor-inserter__menu.is-bottom::after{border-bottom-color:#fff}.components-popover input[type=search].editor-inserter__search{display:block;margin:16px;padding:11px 16px;position:relative;z-index:1;border-radius:4px;font-size:16px}@media (min-width:600px){.components-popover input[type=search].editor-inserter__search{font-size:13px}}.components-popover input[type=search].editor-inserter__search:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-inserter__results{flex-grow:1;overflow:auto;position:relative;z-index:1;padding:0 16px 16px 16px}.editor-inserter__results:focus{outline:1px dotted #555d66}@media (min-width:782px){.editor-inserter__results{height:394px}}.editor-inserter__results [role=presentation]+.components-panel__body{border-top:none}.editor-inserter__popover .editor-block-types-list{margin:0 -8px}.editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.editor-inserter__manage-reusable-blocks{margin:16px 16px 0 0}.editor-inserter__no-results{font-style:italic;padding:24px;text-align:center}.editor-inserter__child-blocks{padding:0 16px}.editor-inserter__parent-block-header{display:flex;align-items:center}.editor-inserter__parent-block-header h2{font-size:13px}.editor-block-types-list__list-item{display:block;width:33.33%;padding:0 4px;margin:0 0 12px}.editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:0;align-items:stretch;justify-content:center;cursor:pointer;background:0 0;word-break:break-word;border-radius:4px;border:1px solid transparent;transition:all 50ms ease-in-out;position:relative}.editor-block-types-list__item:disabled{opacity:.6;cursor:default}.editor-block-types-list__item:not(:disabled):hover::before{content:"";display:block;background:#f8f9f9;color:#191e23;position:absolute;z-index:-1;border-radius:4px;top:0;left:0;bottom:0;right:0}.editor-block-types-list__item:not(:disabled):hover .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):hover .editor-block-types-list__item-title{color:currentColor}.editor-block-types-list__item:not(:disabled).is-active,.editor-block-types-list__item:not(:disabled):active,.editor-block-types-list__item:not(:disabled):focus{position:relative;outline:0;color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-block-types-list__item:not(:disabled).is-active .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled).is-active .editor-block-types-list__item-title,.editor-block-types-list__item:not(:disabled):active .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):active .editor-block-types-list__item-title,.editor-block-types-list__item:not(:disabled):focus .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):focus .editor-block-types-list__item-title{color:currentColor}.editor-block-types-list__item-icon{padding:12px 20px;border-radius:4px;color:#555d66;transition:all 50ms ease-in-out}.editor-block-types-list__item-icon .editor-block-icon{margin-right:auto;margin-left:auto}.editor-block-types-list__item-icon svg{transition:all .15s ease-out}.editor-block-types-list__item-title{padding:4px 2px 8px}.editor-block-types-list__item-has-children .editor-block-types-list__item-icon{background:#fff;margin-left:3px;margin-bottom:6px;padding:9px 20px 9px;position:relative;top:-2px;right:-2px;box-shadow:0 0 0 1px #e2e4e7}.editor-block-types-list__item-has-children .editor-block-types-list__item-icon-stack{display:block;background:#fff;box-shadow:0 0 0 1px #e2e4e7;width:100%;height:100%;position:absolute;z-index:-1;bottom:-6px;left:-6px;border-radius:4px}.editor-media-placeholder__url-input-container{width:100%}.editor-media-placeholder__url-input-container .editor-media-placeholder__button{margin-bottom:0}.editor-media-placeholder__url-input-form{display:flex}.editor-media-placeholder__url-input-form input[type=url].editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.editor-media-placeholder__url-input-form input[type=url].editor-media-placeholder__url-input-field{width:300px}}.editor-media-placeholder__url-input-submit-button{flex-shrink:1}.editor-media-placeholder__button{margin-bottom:.5rem}.editor-media-placeholder__button .dashicon{vertical-align:middle;margin-bottom:3px}.editor-media-placeholder__button:hover{color:#23282d}.components-form-file-upload .editor-media-placeholder__button{margin-left:4px}.editor-multi-selection-inspector__card{display:flex;align-items:flex-start;margin:-16px;padding:16px}.editor-multi-selection-inspector__card-content{flex-grow:1}.editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.editor-multi-selection-inspector__card-description{font-size:13px}.editor-multi-selection-inspector__card .editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-panel-color-settings .component-color-indicator{vertical-align:text-bottom}.editor-panel-color-settings__panel-title .component-color-indicator{display:inline-block}.editor-panel-color-settings.is-opened .editor-panel-color-settings__panel-title .component-color-indicator{display:none}.block-editor .editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{margin:0}.editor-post-featured-image .components-button+.components-button{margin-top:1em;margin-left:8px}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #00a0d2}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #00a0d2}.editor-post-featured-image__toggle{border:1px dashed #a2aab2;background-color:#edeff0;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background-color:#f8f9f9}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:left;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-left:5px}.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:active,.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:hover{border:none;box-shadow:none}.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-post-locked-modal{height:auto;padding-left:10px;padding-right:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-left:5px}.editor-post-locked-modal__avatar{float:right;margin:5px;margin-left:15px}.editor-post-permalink{display:inline-flex;align-items:center;background:#fff;padding:5px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;height:40px;white-space:nowrap;border:1px solid rgba(145,151,162,.25);background-clip:padding-box;margin-right:-15px;margin-left:-15px}@media (min-width:600px){.editor-post-permalink{margin-right:-1px;margin-left:-1px}}.editor-post-permalink button{flex-shrink:0}.editor-post-permalink__copy{border-radius:4px;padding:6px}.editor-post-permalink__copy.is-copied{opacity:.3}.editor-post-permalink__label{margin:0 5px 0 10px;font-weight:600}.editor-post-permalink__link{color:#7e8993;text-decoration:underline;margin-left:10px;width:100%;overflow:hidden;position:relative;white-space:nowrap}.editor-post-permalink__link::after{content:"";display:block;position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;background:linear-gradient(to left,rgba(255,255,255,0),#fff 90%);top:1px;bottom:1px;left:1px;right:auto;width:20%;height:auto}.editor-post-permalink-editor{width:100%;min-width:20%;display:inline-flex;align-items:center}.editor-post-permalink-editor .editor-post-permalink__editor-container{flex:0 1 100%;display:flex;overflow:hidden;padding:1px 0}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 1 auto}@media (min-width:600px){.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 0 auto}}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__edit{flex:1 1 100%}.editor-post-permalink-editor .editor-post-permalink-editor__save{margin-right:auto}.editor-post-permalink-editor__prefix{color:#6c7781;min-width:20%;overflow:hidden;position:relative;white-space:nowrap;text-overflow:ellipsis}.editor-post-permalink input[type=text].editor-post-permalink-editor__edit{min-width:10%;width:100%;margin:0 3px;padding:2px 4px}.editor-post-permalink-editor__suffix{color:#6c7781;margin-left:6px;flex:0 0 0%}.editor-post-publish-panel{background:#fff;color:#555d66}.editor-post-publish-panel__content{min-height:calc(100% - 140px)}.editor-post-publish-panel__content .components-spinner{display:block;float:none;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-right:16px;height:56px;border-bottom:1px solid #e2e4e7;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header-publish-button{display:flex;justify-content:flex-end;flex-grow:1;text-align:left;flex-wrap:nowrap}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-left:-4px}.editor-post-publish-panel__link{color:#007fac;font-weight:400;padding-right:4px;text-decoration:underline}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#191e23}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-right:-16px;margin-left:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e2e4e7;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#e8eaeb;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;color:#a2aab2;overflow:hidden}.editor-post-saved-state.is-saving{animation:edit-post__loading-fade-animation .5s infinite}.editor-post-saved-state .dashicon{display:inline-block;flex:0 0 auto}.editor-post-saved-state{width:28px;white-space:nowrap;padding:12px 4px}.editor-post-saved-state .dashicon{margin-left:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state .dashicon{margin-left:4px}}.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft{margin:0}@media (min-width:600px){.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft .dashicon{display:none}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-input[type=checkbox]{margin-top:0}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-right:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.editor-post-text-editor{border:1px solid #e2e4e7;display:block;margin:0 0 2em;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;line-height:150%}.editor-post-text-editor:focus,.editor-post-text-editor:hover{border:1px solid #e2e4e7;box-shadow:none;outline:1px solid #e2e4e7;outline-offset:-2px}.editor-post-text-editor__toolbar{display:flex;flex-direction:row;flex-wrap:wrap}.editor-post-text-editor__toolbar button{height:30px;background:0 0;padding:0 8px;margin:3px 4px;text-align:center;cursor:pointer;font-family:Menlo,Consolas,monaco,monospace;color:#555d66;border:1px solid transparent}.editor-post-text-editor__toolbar button:first-child{margin-right:0}.editor-post-text-editor__toolbar button:focus,.editor-post-text-editor__toolbar button:hover{outline:0;border:1px solid #555d66}.editor-post-text-editor__bold{font-weight:600}.editor-post-text-editor__italic{font-style:italic}.editor-post-text-editor__link{text-decoration:underline;color:#0085ba}body.admin-color-sunrise .editor-post-text-editor__link{color:#d1864a}body.admin-color-ocean .editor-post-text-editor__link{color:#a3b9a2}body.admin-color-midnight .editor-post-text-editor__link{color:#e14d43}body.admin-color-ectoplasm .editor-post-text-editor__link{color:#a7b656}body.admin-color-coffee .editor-post-text-editor__link{color:#c2a68c}body.admin-color-blue .editor-post-text-editor__link{color:#82b4cb}body.admin-color-light .editor-post-text-editor__link{color:#0085ba}.editor-post-text-editor__del{text-decoration:line-through}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-fieldset{padding:4px;padding-top:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio{margin-top:2px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info{margin-top:0;margin-right:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input{margin-right:28px}.edit-post-post-visibility__dialog.components-popover.is-bottom{z-index:100001}.editor-post-title__block{position:relative;padding:5px 0;font-size:16px}@media (min-width:600px){.editor-post-title__block{padding:5px 2px}}.editor-post-title__block .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:0 0;font-family:"Noto Serif",serif;line-height:1.4;color:#191e23;transition:border .1s ease-out;padding:19px 14px;word-break:keep-all;border:1px solid transparent;border-right-width:0;border-left-width:0;font-size:2.441em;font-weight:600}@media (min-width:600px){.editor-post-title__block .editor-post-title__input{border-width:1px}}.editor-post-title__block .editor-post-title__input::-webkit-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input::-moz-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input:-ms-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:rgba(145,151,162,.25)}.is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:rgba(255,255,255,.3)}.editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#007cba}body.admin-color-sunrise .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#837425}body.admin-color-ocean .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#5e7d5e}body.admin-color-midnight .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#497b8d}body.admin-color-ectoplasm .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#523f6d}body.admin-color-coffee .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#59524c}body.admin-color-blue .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#417e9b}body.admin-color-light .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#007cba}.editor-post-title__block.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}.editor-post-title__block.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-title .editor-post-permalink{font-size:13px;color:#191e23;position:absolute;top:-34px;right:0;left:0}@media (min-width:600px){.editor-post-title .editor-post-permalink{right:2px;left:2px}}.editor-post-trash.components-button{width:100%;color:#c92c2c;justify-content:center}.editor-post-trash.components-button:focus,.editor-post-trash.components-button:hover{color:#b52727}.editor-format-toolbar{display:flex;flex-shrink:0}.editor-format-toolbar__selection-position{position:absolute;transform:translateX(50%)}.editor-rich-text{position:relative}.editor-rich-text__tinymce{margin:0;position:relative;line-height:1.8;white-space:pre-wrap}.editor-rich-text__tinymce>p:empty{min-height:28.8px}.editor-rich-text__tinymce>p:first-child{margin-top:0}.editor-rich-text__tinymce:focus{outline:0}.editor-rich-text__tinymce a{color:#007fac}.editor-rich-text__tinymce code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:inherit}.is-multi-selected .editor-rich-text__tinymce code{background:#67cffd}.editor-rich-text__tinymce:focus a[data-mce-selected],.editor-rich-text__tinymce:focus b[data-mce-selected],.editor-rich-text__tinymce:focus del[data-mce-selected],.editor-rich-text__tinymce:focus em[data-mce-selected],.editor-rich-text__tinymce:focus i[data-mce-selected],.editor-rich-text__tinymce:focus ins[data-mce-selected],.editor-rich-text__tinymce:focus strong[data-mce-selected],.editor-rich-text__tinymce:focus sub[data-mce-selected],.editor-rich-text__tinymce:focus sup[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e8eaeb;background:#e8eaeb;color:#191e23}.editor-rich-text__tinymce:focus a[data-mce-selected]{box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa;color:#006589}.editor-rich-text__tinymce:focus code[data-mce-selected]{background:#e8eaeb;box-shadow:0 0 0 1px #e8eaeb}.editor-rich-text__tinymce img[data-mce-selected]{outline:0}.editor-rich-text__tinymce img::-moz-selection{background:0 0!important}.editor-rich-text__tinymce img::selection{background:0 0!important}.editor-rich-text__tinymce[data-is-placeholder-visible=true]{position:absolute;top:0;width:100%;margin-top:0;height:100%}.editor-rich-text__tinymce[data-is-placeholder-visible=true]>p{margin-top:0}.editor-rich-text__tinymce+.editor-rich-text__tinymce{pointer-events:none}.editor-rich-text__tinymce+.editor-rich-text__tinymce,.editor-rich-text__tinymce+.editor-rich-text__tinymce p{opacity:.62}.editor-rich-text__tinymce[data-is-placeholder-visible=true]+figcaption.editor-rich-text__tinymce{opacity:.8}.editor-rich-text__inline-toolbar{display:flex;justify-content:center;position:absolute;top:-40px;line-height:0;right:0;left:0;z-index:1}.editor-rich-text__inline-toolbar ul.components-toolbar{box-shadow:0 2px 10px rgba(25,30,35,.1),0 0 2px rgba(25,30,35,.1)}[data-rich-text-script]{display:inline}[data-rich-text-script]::before{content:"";background:#ff0}.editor-skip-to-selected-block{position:absolute;top:-9999em}.editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#11a0d2;line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:0;z-index:100000}body.admin-color-sunrise .editor-skip-to-selected-block:focus{color:#c8b03c}body.admin-color-ocean .editor-skip-to-selected-block:focus{color:#a89d8a}body.admin-color-midnight .editor-skip-to-selected-block:focus{color:#77a6b9}body.admin-color-ectoplasm .editor-skip-to-selected-block:focus{color:#c77430}body.admin-color-coffee .editor-skip-to-selected-block:focus{color:#9fa47b}body.admin-color-blue .editor-skip-to-selected-block:focus{color:#d9ab59}body.admin-color-light .editor-skip-to-selected-block:focus{color:#c75726}.table-of-contents__popover.components-popover:not(.is-mobile) .components-popover__content{min-width:380px}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__counts{display:flex;flex-wrap:wrap}.table-of-contents__count{width:25%;display:flex;flex-direction:column;font-size:13px;color:#6c7781}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#555d66}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-right:5px}.components-popover .editor-url-input,.editor-block-list__block .editor-url-input,.editor-url-input{flex-grow:1;position:relative;padding:1px}.components-popover .editor-url-input input[type=text],.editor-block-list__block .editor-url-input input[type=text],.editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-right:0;margin-left:0}@media (min-width:600px){.components-popover .editor-url-input input[type=text],.editor-block-list__block .editor-url-input input[type=text],.editor-url-input input[type=text]{width:300px}}.components-popover .editor-url-input input[type=text]::-ms-clear,.editor-block-list__block .editor-url-input input[type=text]::-ms-clear,.editor-url-input input[type=text]::-ms-clear{display:none}.components-popover .editor-url-input .components-spinner,.editor-block-list__block .editor-url-input .components-spinner,.editor-url-input .components-spinner{position:absolute;left:8px;top:9px;margin:0}.editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}.editor-url-input .components-spinner,.editor-url-input__suggestions{display:none}@media (min-width:600px){.editor-url-input .components-spinner,.editor-url-input__suggestions{display:inherit}}.editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;border:none;box-shadow:none}.editor-url-input__suggestion:hover{background:#e2e4e7}.editor-url-input__suggestion.is-selected,.editor-url-input__suggestion:focus{background:#00719e;color:#fff;outline:0}body.admin-color-sunrise .editor-url-input__suggestion.is-selected,body.admin-color-sunrise .editor-url-input__suggestion:focus{background:#b2723f}body.admin-color-ocean .editor-url-input__suggestion.is-selected,body.admin-color-ocean .editor-url-input__suggestion:focus{background:#8b9d8a}body.admin-color-midnight .editor-url-input__suggestion.is-selected,body.admin-color-midnight .editor-url-input__suggestion:focus{background:#bf4139}body.admin-color-ectoplasm .editor-url-input__suggestion.is-selected,body.admin-color-ectoplasm .editor-url-input__suggestion:focus{background:#8e9b49}body.admin-color-coffee .editor-url-input__suggestion.is-selected,body.admin-color-coffee .editor-url-input__suggestion:focus{background:#a58d77}body.admin-color-blue .editor-url-input__suggestion.is-selected,body.admin-color-blue .editor-url-input__suggestion:focus{background:#6f99ad}body.admin-color-light .editor-url-input__suggestion.is-selected,body.admin-color-light .editor-url-input__suggestion:focus{background:#00719e}.components-toolbar>.editor-url-input__button{position:inherit}.editor-url-input__button .editor-url-input__back{margin-left:4px;overflow:visible}.editor-url-input__button .editor-url-input__back::after{content:"";position:absolute;display:block;width:1px;height:24px;left:-1px;background:#e2e4e7}.editor-url-input__button-modal{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff}.editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.editor-url-popover__row{display:flex}.editor-url-popover__row>:not(.editor-url-popover__settings-toggle){flex-grow:1}.editor-url-popover__settings-toggle{flex-shrink:0;width:36px;height:36px}.editor-url-popover__settings-toggle .dashicon{transform:rotate(-90deg)}.editor-url-popover__settings{padding:7px 8px;border-top:1px solid #e2e4e7;padding-top:8px}.editor-warning{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:nowrap;background-color:#fff;border:1px solid #e2e4e7;text-align:right;padding:20px}.has-warning.is-multi-selected .editor-warning{background-color:transparent}.editor-warning .editor-warning__message{line-height:1.4;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px}.editor-warning .editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:center;width:100%}.editor-warning .editor-warning__actions{display:flex}.editor-warning .editor-warning__action{margin:0 0 0 6px}.editor-warning__secondary{margin:3px -4px 0 0}.editor-warning__secondary .components-icon-button{width:auto;padding:8px 2px}@media (min-width:600px){.editor-warning__secondary{margin-right:4px}.editor-warning__secondary .components-icon-button{padding:8px 4px}}.editor-warning__secondary .components-button svg{transform:rotate(-90deg)}.editor-writing-flow{height:100%;display:flex;flex-direction:column}.editor-writing-flow__click-redirect{flex-basis:100%;cursor:text} \ No newline at end of file diff --git a/wp-includes/css/dist/editor/style.css b/wp-includes/css/dist/editor/style.css index 3f2a23711c..4f7f94ee3c 100644 --- a/wp-includes/css/dist/editor/style.css +++ b/wp-includes/css/dist/editor/style.css @@ -263,10 +263,15 @@ /** * Cross-block selection */ +.editor-block-list__layout .editor-block-list__block ::-moz-selection { + background-color: #b3e7fe; } .editor-block-list__layout .editor-block-list__block ::selection { background-color: #b3e7fe; } +.editor-block-list__layout .editor-block-list__block.is-multi-selected *::-moz-selection { + background-color: transparent; } + .editor-block-list__layout .editor-block-list__block.is-multi-selected *::selection { background-color: transparent; } @@ -2292,6 +2297,8 @@ body.admin-color-light .editor-post-text-editor__link{ box-shadow: 0 0 0 1px #e8eaeb; } .editor-rich-text__tinymce img[data-mce-selected] { outline: none; } + .editor-rich-text__tinymce img::-moz-selection { + background: none !important; } .editor-rich-text__tinymce img::selection { background: none !important; } .editor-rich-text__tinymce[data-is-placeholder-visible="true"] { @@ -2322,6 +2329,12 @@ body.admin-color-light .editor-post-text-editor__link{ .editor-rich-text__inline-toolbar ul.components-toolbar { box-shadow: 0 2px 10px rgba(25, 30, 35, 0.1), 0 0 2px rgba(25, 30, 35, 0.1); } +[data-rich-text-script] { + display: inline; } + [data-rich-text-script]::before { + content: ""; + background: yellow; } + .editor-skip-to-selected-block { position: absolute; top: -9999em; } diff --git a/wp-includes/css/dist/editor/style.min.css b/wp-includes/css/dist/editor/style.min.css index fa8c2c0aaa..8c735d70db 100644 --- a/wp-includes/css/dist/editor/style.min.css +++ b/wp-includes/css/dist/editor/style.min.css @@ -1 +1 @@ -@charset "UTF-8";.editor-autocompleters__block .editor-block-icon{margin-right:8px}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-right:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-left:8px;color:#8f98a1;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#66c6e4}.editor-block-drop-zone{border:none;border-radius:0}.editor-block-drop-zone .components-drop-zone__content,.editor-block-drop-zone.is-dragging-over-element .components-drop-zone__content{display:none}.editor-block-drop-zone.is-close-to-bottom{background:0 0;border-bottom:3px solid #0085ba}body.admin-color-sunrise .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #d1864a}body.admin-color-ocean .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #a3b9a2}body.admin-color-midnight .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #e14d43}body.admin-color-ectoplasm .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #a7b656}body.admin-color-coffee .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #c2a68c}body.admin-color-blue .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #82b4cb}body.admin-color-light .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #0085ba}.editor-block-drop-zone.is-appender.is-close-to-bottom,.editor-block-drop-zone.is-appender.is-close-to-top,.editor-block-drop-zone.is-close-to-top{background:0 0;border-top:3px solid #0085ba;border-bottom:none}body.admin-color-sunrise .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-sunrise .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-sunrise .editor-block-drop-zone.is-close-to-top{border-top:3px solid #d1864a}body.admin-color-ocean .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-ocean .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-ocean .editor-block-drop-zone.is-close-to-top{border-top:3px solid #a3b9a2}body.admin-color-midnight .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-midnight .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-midnight .editor-block-drop-zone.is-close-to-top{border-top:3px solid #e14d43}body.admin-color-ectoplasm .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-ectoplasm .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-ectoplasm .editor-block-drop-zone.is-close-to-top{border-top:3px solid #a7b656}body.admin-color-coffee .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-coffee .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-coffee .editor-block-drop-zone.is-close-to-top{border-top:3px solid #c2a68c}body.admin-color-blue .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-blue .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-blue .editor-block-drop-zone.is-close-to-top{border-top:3px solid #82b4cb}body.admin-color-light .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-light .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-light .editor-block-drop-zone.is-close-to-top{border-top:3px solid #0085ba}.editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0;border-radius:4px}.editor-block-icon.has-colors svg{fill:currentColor}.editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.editor-block-inspector__card{display:flex;align-items:flex-start;margin:-16px;padding:16px}.editor-block-inspector__card-icon{border:1px solid #ccd0d4;padding:7px;margin-right:10px;height:36px;width:36px}.editor-block-inspector__card-content{flex-grow:1}.editor-block-inspector__card-title{font-weight:500;margin-bottom:5px}.editor-block-inspector__card-description{font-size:13px}.editor-block-inspector__card .editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.editor-block-list__layout .components-draggable__clone .editor-block-contextual-toolbar{display:none!important}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-list__block-edit::before{outline:0}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging>.editor-block-list__block-edit>*{background:#f8f9f9}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging>.editor-block-list__block-edit>*>*{visibility:hidden}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-mover{display:none}.editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit .reusable-block-edit-panel *{z-index:1}@media (min-width:600px){.editor-block-list__layout{padding-left:46px;padding-right:46px}}.editor-block-list__block .editor-block-list__layout{padding-left:0;padding-right:0;margin-left:-14px;margin-right:-14px}.editor-block-list__layout .editor-default-block-appender>.editor-default-block-appender__content,.editor-block-list__layout>.editor-block-list__block>.editor-block-list__block-edit,.editor-block-list__layout>.editor-block-list__layout>.editor-block-list__block>.editor-block-list__block-edit{margin-top:32px;margin-bottom:32px}.editor-block-list__layout .editor-block-list__block{position:relative;padding-left:14px;padding-right:14px;overflow-wrap:break-word}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block{padding-left:43px;padding-right:43px}}.editor-block-list__layout .editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 20px 12px 20px;width:calc(100% - 40px)}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui{margin:0 0 12px 0;width:100%}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui .components-notice{margin-left:0;margin-right:0}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit{position:relative}.editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit::before{z-index:0;content:"";position:absolute;outline:1px solid transparent;transition:outline .1s linear;pointer-events:none;right:-14px;left:-14px;top:-14px;bottom:-14px}.editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit::before{outline:1px solid rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit::before{outline-color:rgba(255,255,255,.3)}.editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #007cba}body.admin-color-sunrise .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #837425}body.admin-color-ocean .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #5e7d5e}body.admin-color-midnight .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #497b8d}body.admin-color-ectoplasm .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #523f6d}body.admin-color-coffee .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #59524c}body.admin-color-blue .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #417e9B}body.admin-color-light .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #007cba}.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .editor-block-list__block{opacity:1}.editor-block-list__layout .editor-block-list__block ::selection{background-color:#b3e7fe}.editor-block-list__layout .editor-block-list__block.is-multi-selected ::selection{background-color:transparent}.editor-block-list__layout .editor-block-list__block.is-multi-selected .editor-block-list__block-edit::before{background:#b3e7fe;mix-blend-mode:multiply;top:-14px;bottom:-14px}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-multi-selected .editor-block-list__block-edit::before{mix-blend-mode:soft-light}.editor-block-list__layout .editor-block-list__block.has-warning{min-height:36px}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit>*{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit .editor-warning{pointer-events:all}.editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit::before{outline-color:rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit::before{outline-color:rgba(255,255,255,.3)}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit::after{content:"";position:absolute;background-color:rgba(248,249,249,.4);top:-14px;bottom:-14px;right:-14px;left:-14px}.editor-block-list__layout .editor-block-list__block.has-warning.is-multi-selected .editor-block-list__block-edit::after{background-color:transparent}.editor-block-list__layout .editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit::after{bottom:22px}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit::after{bottom:-14px}}.editor-block-list__layout .editor-block-list__block.is-typing .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block.is-typing .editor-block-list__side-inserter{opacity:0}.editor-block-list__layout .editor-block-list__block .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block .editor-block-list__side-inserter{opacity:1;transition:opacity .2s}.editor-block-list__layout .editor-block-list__block.is-reusable>.editor-block-list__block-edit::before{outline:1px dashed rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-reusable>.editor-block-list__block-edit::before{outline-color:rgba(255,255,255,.3)}.editor-block-list__layout .editor-block-list__block[data-align=left],.editor-block-list__layout .editor-block-list__block[data-align=right]{z-index:20;width:100%;height:0}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit{margin-top:0}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit::before,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit::before{content:none}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-bottom:1px}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-mobile-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-mobile-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-mover{display:none}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{width:auto;border-bottom:1px solid #e2e4e7;bottom:auto}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{left:0;right:auto}.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{left:auto;right:0}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{top:14px}}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit{/*!rtl:begin:ignore*/float:left;margin-right:2em/*!rtl:end:ignore*/}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-toolbar{/*!rtl:begin:ignore*/left:14px;right:auto/*!rtl:end:ignore*/}}.editor-block-list__layout .editor-block-list__block[data-align=right]>.editor-block-list__block-edit{/*!rtl:begin:ignore*/float:right;margin-left:2em/*!rtl:end:ignore*/}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-toolbar{/*!rtl:begin:ignore*/right:14px;left:auto/*!rtl:end:ignore*/}}.editor-block-list__layout .editor-block-list__block[data-align=full],.editor-block-list__layout .editor-block-list__block[data-align=wide]{clear:both;z-index:20}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{top:-44px;bottom:auto;min-height:0;height:auto;width:auto;z-index:inherit}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover::before,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover::before{content:none}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover .editor-block-mover__control,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover .editor-block-mover__control{float:left}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__breadcrumb,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-list__breadcrumb{right:-1px}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{display:none}@media (min-width:1280px){.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{display:block}}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full] .editor-block-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=wide] .editor-block-toolbar{display:inline-flex}}.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{left:-13px}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit>.editor-block-list__breadcrumb{right:0}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full]{margin-left:-45px;margin-right:-45px}}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit{margin-left:-14px;margin-right:-14px}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit{margin-left:-44px;margin-right:-44px}}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit figure{width:100%}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit::before{left:0;right:0;border-left-width:0;border-right-width:0}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover{left:1px}.editor-block-list__layout .editor-block-list__block[data-clear=true]{float:none}.editor-block-list__layout .editor-block-list__block .editor-block-drop-zone{top:-4px;bottom:-3px;margin:0 14px}.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-inserter-with-shortcuts{display:none}.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-default-block-appender .editor-inserter{left:auto;right:8px}.editor-block-list__block>.editor-block-mover{position:absolute;width:30px;height:100%;max-height:112px}.editor-block-list__block>.editor-block-mover{top:-15px}@media (min-width:600px){.editor-block-list__block.is-hovered .editor-block-mover,.editor-block-list__block.is-multi-selected .editor-block-mover,.editor-block-list__block.is-selected .editor-block-mover{z-index:80}}.editor-block-list__block>.editor-block-mover{padding-right:2px;left:-30px;display:none}@media (min-width:600px){.editor-block-list__block>.editor-block-mover{display:block}}.editor-block-list__block .editor-block-list__block-mobile-toolbar{display:flex;flex-direction:row;transform:translateY(15px);margin-top:37px;margin-right:-14px;margin-left:-14px;border-top:1px solid #e2e4e7;height:37px;box-shadow:0 5px 10px rgba(25,30,35,.05),0 2px 2px rgba(25,30,35,.05)}@media (min-width:600px){.editor-block-list__block .editor-block-list__block-mobile-toolbar{display:none}}@media (min-width:600px){.editor-block-list__block .editor-block-list__block-mobile-toolbar{box-shadow:none}}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter{position:relative;left:auto;top:auto;margin:0}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover__control,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter__toggle{width:36px;height:36px;border-radius:4px;padding:3px;margin:0;justify-content:center;align-items:center}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover__control .dashicon,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter__toggle .dashicon{margin:auto}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover{display:flex;margin-right:auto}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover .editor-block-mover__control,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover .editor-inserter{float:left}.editor-block-list__block[data-align=full] .editor-block-list__block-mobile-toolbar{margin-left:0;margin-right:0}.editor-block-list .editor-inserter{margin:8px;cursor:move;cursor:-webkit-grab;cursor:grab}.editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:2px;left:0;right:0;background:#0085ba}body.admin-color-sunrise .editor-block-list__insertion-point-indicator{background:#d1864a}body.admin-color-ocean .editor-block-list__insertion-point-indicator{background:#a3b9a2}body.admin-color-midnight .editor-block-list__insertion-point-indicator{background:#e14d43}body.admin-color-ectoplasm .editor-block-list__insertion-point-indicator{background:#a7b656}body.admin-color-coffee .editor-block-list__insertion-point-indicator{background:#c2a68c}body.admin-color-blue .editor-block-list__insertion-point-indicator{background:#82b4cb}body.admin-color-light .editor-block-list__insertion-point-indicator{background:#0085ba}.editor-block-list__insertion-point-inserter{display:none;position:absolute;bottom:auto;left:0;right:0;justify-content:center;opacity:0;transition:opacity .1s linear .1s}@media (min-width:480px){.editor-block-list__insertion-point-inserter{display:flex}}.editor-block-list__insertion-point-inserter .editor-inserter__toggle{margin-top:-4px;border-radius:50%;color:#007cba;background:#fff;height:36px;width:36px}.editor-block-list__insertion-point-inserter .editor-inserter__toggle:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.editor-block-list__insertion-point-inserter.is-visible,.editor-block-list__insertion-point-inserter:hover{opacity:1}.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter{opacity:0;pointer-events:none}.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter.is-visible,.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter:hover,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter.is-visible,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter:hover{opacity:1;pointer-events:auto}.editor-block-list__block>.editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;left:0;right:0}@media (min-width:600px){.editor-block-list__block>.editor-block-list__insertion-point{left:-1px;right:-1px}}.editor-block-list__block[data-align=full]>.editor-block-list__insertion-point{left:0;right:0}.editor-block-list__block .editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:0;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;line-height:150%;transition:padding .2s linear}.editor-block-list__block .editor-block-list__block-html-textarea:focus{box-shadow:none}.editor-block-list__block .editor-block-contextual-toolbar{position:-webkit-sticky;position:sticky;z-index:21;white-space:nowrap;text-align:left;pointer-events:none;position:absolute;bottom:23px;left:-14px;right:-14px;border-top:1px solid #e2e4e7}.editor-block-list__block .editor-block-contextual-toolbar .components-toolbar{border-top:none;border-bottom:none}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{border-top:none}.editor-block-list__block .editor-block-contextual-toolbar .components-toolbar{border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-bottom:1px;margin-top:-37px}.editor-block-list__block .editor-block-contextual-toolbar{margin-left:0;margin-right:0}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{margin-left:-15px;margin-right:-15px}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{margin-right:15px}.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-left:15px}.editor-block-list__block .editor-block-contextual-toolbar>*{pointer-events:auto}.editor-block-list__block.is-focus-mode:not(.is-multi-selected)>.editor-block-contextual-toolbar{margin-left:-28px}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{bottom:auto;left:auto;right:auto;box-shadow:none;transform:translateY(-52px)}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-block-list__block .editor-block-contextual-toolbar{position:-webkit-sticky;position:sticky;top:51px}}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{float:left}.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{float:right}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{transform:translateY(-15px)}.editor-block-contextual-toolbar .editor-block-toolbar{width:100%}@media (min-width:600px){.editor-block-contextual-toolbar .editor-block-toolbar{width:auto;border-right:none;position:absolute;left:0}}.editor-block-list__breadcrumb{position:absolute;line-height:1;z-index:2;right:-14px;top:-15px}.editor-block-list__breadcrumb .components-toolbar{padding:0;border:none;background:0 0;line-height:1;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:11px;padding:4px 4px;background:#007cba;color:#fff}body.admin-color-sunrise .editor-block-list__breadcrumb .components-toolbar{background:#837425}body.admin-color-ocean .editor-block-list__breadcrumb .components-toolbar{background:#5e7d5e}body.admin-color-midnight .editor-block-list__breadcrumb .components-toolbar{background:#497b8d}body.admin-color-ectoplasm .editor-block-list__breadcrumb .components-toolbar{background:#523f6d}body.admin-color-coffee .editor-block-list__breadcrumb .components-toolbar{background:#59524c}body.admin-color-blue .editor-block-list__breadcrumb .components-toolbar{background:#417e9b}body.admin-color-light .editor-block-list__breadcrumb .components-toolbar{background:#007cba}.editor-block-list__block:hover .editor-block-list__breadcrumb .components-toolbar{opacity:0;animation:edit-post__fade-in-animation 60ms ease-out .5s;animation-fill-mode:forwards}[data-align=left] .editor-block-list__breadcrumb,[data-align=right] .editor-block-list__breadcrumb{right:0;top:0}.editor-block-list__descendant-arrow::before{content:"→";display:inline-block;padding:0 4px}.rtl .editor-block-list__descendant-arrow::before{content:"←"}@media (min-width:600px){.editor-block-list__block::before{bottom:0;content:"";left:-28px;position:absolute;right:-28px;top:0}.editor-block-list__block .editor-block-list__block::before{left:0;right:0}.editor-block-list__block[data-align=full]::before{content:none}}.editor-block-list__block .editor-warning{z-index:5;position:relative;margin-right:-15px;margin-left:-15px;margin-bottom:-15px;transform:translateY(-15px);padding:10px 14px}@media (min-width:600px){.editor-block-list__block .editor-warning{padding:10px 14px}}.block-list-appender>.editor-inserter{display:block}.block-list-appender__toggle{display:flex;align-items:center;justify-content:center;padding:16px;outline:1px dashed #8d96a0;width:100%;color:#555d66}.block-list-appender__toggle:hover{outline:1px dashed #555d66}.editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.editor-block-compare{max-height:70%}}.editor-block-compare__wrapper{display:flex;padding-bottom:16px}.editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 16px 0 0;min-width:200px}.editor-block-compare__wrapper>div button{float:right}.editor-block-compare__wrapper .editor-block-compare__converted{border-left:1px solid #ddd;padding-left:15px}.editor-block-compare__wrapper .editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#23282d;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.editor-block-compare__wrapper .editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.editor-block-compare__wrapper .editor-block-compare__html span.editor-block-compare__added{background-color:#acf2bd}.editor-block-compare__wrapper .editor-block-compare__html span.editor-block-compare__removed{background-color:#d94f4f}.editor-block-compare__wrapper .editor-block-compare__preview{padding:0;padding-top:14px}.editor-block-compare__wrapper .editor-block-compare__preview p{font-size:12px;margin-top:0}.editor-block-compare__wrapper .editor-block-compare__action{margin-top:14px}.editor-block-compare__wrapper .editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.editor-block-mover{min-height:56px;opacity:0}.editor-block-mover.is-visible{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (min-width:600px){.editor-block-list__block:not([data-align=wide]):not([data-align=full]) .editor-block-mover{margin-top:-8px}}.editor-block-mover__control{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;width:28px;height:24px;color:rgba(14,28,46,.62)}.editor-block-mover__control svg{width:28px;height:24px;padding:2px 5px}.is-dark-theme .editor-block-mover__control{color:rgba(255,255,255,.65)}.editor-block-mover__control[aria-disabled=true]{cursor:default;pointer-events:none;color:rgba(130,148,147,.15)}.is-dark-theme .editor-block-mover__control[aria-disabled=true]{color:rgba(255,255,255,.2)}.editor-block-mover__control-drag-handle{cursor:move;cursor:-webkit-grab;cursor:grab;fill:currentColor;border-radius:4px}.editor-block-mover__control-drag-handle,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none;background:0 0;color:rgba(10,24,41,.7)}.is-dark-theme .editor-block-mover__control-drag-handle,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:rgba(255,255,255,.75)}.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active{cursor:-webkit-grabbing;cursor:grabbing}.editor-block-mover__description{display:none}@media (min-width:600px){.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default){background:#fff;box-shadow:inset 0 0 0 1px #e2e4e7}.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):nth-child(-n+2),.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:nth-child(-n+2){margin-bottom:-1px}.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:active,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:focus,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:hover{z-index:1}}.editor-block-navigation__container{padding:7px}.editor-block-navigation__label{margin:0 0 8px;color:#6c7781}.editor-block-navigation__list,.editor-block-navigation__paragraph{padding:0;margin:0}.editor-block-navigation__list .editor-block-navigation__list{margin-top:2px;border-left:2px solid #a2aab2;margin-left:1em}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__list{margin-left:1.5em}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item{position:relative}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item::before{position:absolute;left:0;background:#a2aab2;width:.5em;height:2px;content:"";top:calc(50% - 1px)}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item-button{margin-left:.8em;width:calc(100% - .8em)}.editor-block-navigation__list .editor-block-navigation__list>li:last-child{position:relative}.editor-block-navigation__list .editor-block-navigation__list>li:last-child::after{position:absolute;content:"";background:#fff;top:19px;bottom:0;left:-2px;width:2px}.editor-block-navigation__item-button{display:flex;align-items:center;width:100%;padding:6px;text-align:left;color:#40464d;border-radius:4px}.editor-block-navigation__item-button .editor-block-icon{margin-right:6px}.editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none}.editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-block-navigation__item-button.is-selected,.editor-block-navigation__item-button.is-selected:focus{color:#32373c;background:#edeff0}.editor-block-preview{pointer-events:none;padding:10px;overflow:hidden;display:none}@media (min-width:782px){.editor-block-preview{display:block}}.editor-block-preview .editor-block-preview__content{padding:14px;border:1px solid #e2e4e7;font-family:"Noto Serif",serif}.editor-block-preview .editor-block-preview__content>div{transform:scale(.9);transform-origin:center top;font-family:"Noto Serif",serif}.editor-block-preview .editor-block-preview__content>div section{height:auto}.editor-block-preview .editor-block-preview__content>.reusable-block-indicator{display:none}.editor-block-preview__title{margin-bottom:10px;color:#6c7781}.editor-block-settings-menu__toggle .dashicon{transform:rotate(90deg)}.editor-block-settings-menu__popover::after,.editor-block-settings-menu__popover::before{margin-left:2px}.editor-block-settings-menu__popover .editor-block-settings-menu__content{padding:7px}.editor-block-settings-menu__popover .editor-block-settings-menu__separator{margin-top:8px;margin-bottom:8px;margin-left:-7px;margin-right:-7px;border-top:1px solid #e2e4e7}.editor-block-settings-menu__popover .editor-block-settings-menu__separator:last-child{display:none}.editor-block-settings-menu__popover .editor-block-settings-menu__title{display:block;padding:6px;color:#6c7781}.editor-block-settings-menu__popover .editor-block-settings-menu__control{width:100%;justify-content:flex-start;padding:8px;background:0 0;outline:0;border-radius:0;color:#555d66;text-align:left;cursor:pointer;border:none;box-shadow:none}.editor-block-settings-menu__popover .editor-block-settings-menu__control:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none}.editor-block-settings-menu__popover .editor-block-settings-menu__control:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-block-settings-menu__popover .editor-block-settings-menu__control .dashicon{margin-right:5px}.editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:4px;padding:4px}.editor-block-styles__item.is-active{color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px;box-shadow:0 0 0 2px #555d66}.editor-block-styles__item:focus{color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-block-styles__item:hover{background:#f8f9f9;color:#191e23}.editor-block-styles__item-preview{outline:1px solid transparent;border:1px solid rgba(25,30,35,.2);overflow:hidden;padding:0;text-align:initial;border-radius:4px;display:flex;height:60px;background:#fff}.editor-block-styles__item-preview .editor-block-preview__content{transform:scale(.7);transform-origin:center center;width:100%;margin:0;padding:0;overflow:visible;min-height:auto}.editor-block-styles__item-label{text-align:center;padding:4px 2px}.editor-block-switcher{position:relative;height:36px}.components-icon-button.editor-block-switcher__no-switcher-icon,.components-icon-button.editor-block-switcher__toggle{margin:0;display:block;height:36px;padding:3px}.components-icon-button.editor-block-switcher__no-switcher-icon{width:48px}.components-icon-button.editor-block-switcher__no-switcher-icon .editor-block-icon{margin-right:auto;margin-left:auto}.components-icon-button.editor-block-switcher__toggle{width:auto}.components-icon-button.editor-block-switcher__toggle:active,.components-icon-button.editor-block-switcher__toggle:not(:disabled):not([aria-disabled=true]):hover,.components-icon-button.editor-block-switcher__toggle:not([aria-disabled=true]):focus{outline:0;box-shadow:none;background:0 0;border:none}.components-icon-button.editor-block-switcher__toggle .editor-block-icon,.components-icon-button.editor-block-switcher__toggle .editor-block-switcher__transform{width:42px;height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;transition:all .1s cubic-bezier(.165, .84, .44, 1)}.components-icon-button.editor-block-switcher__toggle .editor-block-icon::after{content:"";pointer-events:none;display:block;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid currentColor;margin-left:4px;margin-right:2px}.components-icon-button.editor-block-switcher__toggle .editor-block-switcher__transform{margin-top:6px;border-radius:4px}.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-switcher__transform,.components-icon-button.editor-block-switcher__toggle:not(:disabled):hover .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):hover .editor-block-switcher__transform,.components-icon-button.editor-block-switcher__toggle[aria-expanded=true] .editor-block-icon,.components-icon-button.editor-block-switcher__toggle[aria-expanded=true] .editor-block-switcher__transform{transform:translateY(-36px)}.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-switcher__transform{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-popover:not(.is-mobile).editor-block-switcher__popover .components-popover__content{min-width:300px;max-width:340px}@media (min-width:782px){.editor-block-switcher__popover .components-popover__content{position:relative}.editor-block-switcher__popover .components-popover__content .editor-block-preview{border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;position:absolute;left:100%;top:-1px;bottom:-1px;width:300px;height:auto}}.editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #e2e4e7}.editor-block-switcher__popover:not(.is-mobile)>.components-popover__content{overflow-y:visible}.editor-block-switcher__popover .editor-block-styles{margin:0 -3px}.editor-block-switcher__popover .editor-block-types-list{margin:8px -8px -8px}.editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;border-left:1px solid #e2e4e7}@media (min-width:600px){.editor-block-toolbar{overflow:inherit}}.editor-block-toolbar .components-toolbar{border:0;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7;border-right:1px solid #e2e4e7}.editor-block-types-list{list-style:none;padding:2px 0;overflow:hidden;display:flex;flex-wrap:wrap}.editor-color-palette-control__color-palette{display:inline-block;margin-top:.6rem}.editor-contrast-checker>.components-notice{margin:0}.editor-default-block-appender{clear:both}.editor-default-block-appender textarea.editor-default-block-appender__content{font-family:"Noto Serif",serif;font-size:16px;border:none;background:0 0;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:.2s outline;resize:none;padding:0 50px 0 14px;color:rgba(14,28,46,.62)}.is-dark-theme .editor-default-block-appender textarea.editor-default-block-appender__content{color:rgba(255,255,255,.65)}.editor-default-block-appender .editor-inserter-with-shortcuts{opacity:.5;transition:opacity .2s}.editor-default-block-appender .editor-inserter-with-shortcuts .components-icon-button:not(:hover){color:rgba(10,24,41,.7)}.is-dark-theme .editor-default-block-appender .editor-inserter-with-shortcuts .components-icon-button:not(:hover){color:rgba(255,255,255,.75)}.editor-default-block-appender .editor-inserter__toggle:not([aria-expanded=true]){opacity:0}.editor-default-block-appender:hover .editor-inserter-with-shortcuts{opacity:1}.editor-default-block-appender:hover .editor-inserter__toggle{opacity:1}.editor-default-block-appender .components-drop-zone__content-icon{display:none}.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter,.editor-inserter-with-shortcuts{position:absolute;top:0}.editor-block-list__empty-block-inserter .components-icon-button,.editor-default-block-appender .editor-inserter .components-icon-button,.editor-inserter-with-shortcuts .components-icon-button{width:28px;height:28px;margin-right:12px;padding:0}.editor-block-list__empty-block-inserter .editor-block-icon,.editor-default-block-appender .editor-inserter .editor-block-icon,.editor-inserter-with-shortcuts .editor-block-icon{margin:auto}.editor-block-list__empty-block-inserter .components-icon-button svg,.editor-default-block-appender .editor-inserter .components-icon-button svg,.editor-inserter-with-shortcuts .components-icon-button svg{display:block;margin:auto}.editor-block-list__empty-block-inserter .editor-inserter__toggle,.editor-default-block-appender .editor-inserter .editor-inserter__toggle,.editor-inserter-with-shortcuts .editor-inserter__toggle{margin-right:0}.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter{right:8px}@media (min-width:600px){.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter{left:-44px;right:auto}}.editor-block-list__empty-block-inserter:disabled,.editor-default-block-appender .editor-inserter:disabled{display:none}.editor-block-list__empty-block-inserter .editor-inserter__toggle,.editor-default-block-appender .editor-inserter .editor-inserter__toggle{transition:opacity .2s;border-radius:50%;width:28px;height:28px;padding:0}.editor-block-list__empty-block-inserter .editor-inserter__toggle:not(:hover),.editor-default-block-appender .editor-inserter .editor-inserter__toggle:not(:hover){color:rgba(10,24,41,.7)}.is-dark-theme .editor-block-list__empty-block-inserter .editor-inserter__toggle:not(:hover),.is-dark-theme .editor-default-block-appender .editor-inserter .editor-inserter__toggle:not(:hover){color:rgba(255,255,255,.75)}.editor-block-list__side-inserter .editor-inserter-with-shortcuts,.editor-default-block-appender .editor-inserter-with-shortcuts{right:14px;display:none;z-index:5}@media (min-width:600px){.editor-block-list__side-inserter .editor-inserter-with-shortcuts,.editor-default-block-appender .editor-inserter-with-shortcuts{right:0;display:flex}}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item .document-outline__emdash::before{color:#e2e4e7;margin-right:4px}.document-outline__item.is-h2 .document-outline__emdash::before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash::before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash::before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash::before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash::before{content:"—————"}.document-outline__button{cursor:pointer;background:0 0;border:none;display:flex;align-items:flex-start;color:#23282d;text-align:left}.document-outline__button:focus{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.document-outline__level{background:#e2e4e7;color:#23282d;border-radius:3px;font-size:13px;padding:1px 6px;margin-right:4px}.is-invalid .document-outline__level{background:#f0b849}.editor-error-boundary{max-width:610px;margin:auto;max-width:780px;padding:20px;margin-top:60px;box-shadow:0 3px 30px rgba(25,30,35,.2)}.editor-inner-blocks.has-overlay::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:120}.editor-inserter-with-shortcuts{display:flex;align-items:center}.editor-inserter-with-shortcuts .components-icon-button{border-radius:4px}.editor-inserter-with-shortcuts .components-icon-button svg:not(.dashicon){height:24px;width:24px}.editor-inserter-with-shortcuts__block{margin-right:4px;width:36px;height:36px;padding-top:8px;color:rgba(102,120,134,.35)}.is-dark-theme .editor-inserter-with-shortcuts__block{color:rgba(255,255,255,.4)}.editor-inserter{display:inline-block;background:0 0;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.editor-inserter{position:relative}}@media (min-width:782px){.editor-inserter__popover:not(.is-mobile)>.components-popover__content{overflow-y:visible;height:432px}}.editor-inserter__toggle{display:inline-flex;align-items:center;color:#555d66;background:0 0;cursor:pointer;border:none;outline:0;transition:color .2s ease}.editor-inserter__menu{width:auto;display:flex;flex-direction:column;height:100%}@media (min-width:782px){.editor-inserter__menu{width:400px;position:relative}.editor-inserter__menu .editor-block-preview{border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;position:absolute;left:100%;top:-1px;bottom:-1px;width:300px}}.editor-inserter__inline-elements{margin-top:-1px}.editor-inserter__menu.is-bottom::after{border-bottom-color:#fff}.components-popover input[type=search].editor-inserter__search{display:block;margin:16px;padding:11px 16px;position:relative;z-index:1;border-radius:4px;font-size:16px}@media (min-width:600px){.components-popover input[type=search].editor-inserter__search{font-size:13px}}.components-popover input[type=search].editor-inserter__search:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-inserter__results{flex-grow:1;overflow:auto;position:relative;z-index:1;padding:0 16px 16px 16px}.editor-inserter__results:focus{outline:1px dotted #555d66}@media (min-width:782px){.editor-inserter__results{height:394px}}.editor-inserter__results [role=presentation]+.components-panel__body{border-top:none}.editor-inserter__popover .editor-block-types-list{margin:0 -8px}.editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.editor-inserter__manage-reusable-blocks{margin:16px 0 0 16px}.editor-inserter__no-results{font-style:italic;padding:24px;text-align:center}.editor-inserter__child-blocks{padding:0 16px}.editor-inserter__parent-block-header{display:flex;align-items:center}.editor-inserter__parent-block-header h2{font-size:13px}.editor-block-types-list__list-item{display:block;width:33.33%;padding:0 4px;margin:0 0 12px}.editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:0;align-items:stretch;justify-content:center;cursor:pointer;background:0 0;word-break:break-word;border-radius:4px;border:1px solid transparent;transition:all 50ms ease-in-out;position:relative}.editor-block-types-list__item:disabled{opacity:.6;cursor:default}.editor-block-types-list__item:not(:disabled):hover::before{content:"";display:block;background:#f8f9f9;color:#191e23;position:absolute;z-index:-1;border-radius:4px;top:0;right:0;bottom:0;left:0}.editor-block-types-list__item:not(:disabled):hover .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):hover .editor-block-types-list__item-title{color:currentColor}.editor-block-types-list__item:not(:disabled).is-active,.editor-block-types-list__item:not(:disabled):active,.editor-block-types-list__item:not(:disabled):focus{position:relative;outline:0;color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-block-types-list__item:not(:disabled).is-active .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled).is-active .editor-block-types-list__item-title,.editor-block-types-list__item:not(:disabled):active .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):active .editor-block-types-list__item-title,.editor-block-types-list__item:not(:disabled):focus .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):focus .editor-block-types-list__item-title{color:currentColor}.editor-block-types-list__item-icon{padding:12px 20px;border-radius:4px;color:#555d66;transition:all 50ms ease-in-out}.editor-block-types-list__item-icon .editor-block-icon{margin-left:auto;margin-right:auto}.editor-block-types-list__item-icon svg{transition:all .15s ease-out}.editor-block-types-list__item-title{padding:4px 2px 8px}.editor-block-types-list__item-has-children .editor-block-types-list__item-icon{background:#fff;margin-right:3px;margin-bottom:6px;padding:9px 20px 9px;position:relative;top:-2px;left:-2px;box-shadow:0 0 0 1px #e2e4e7}.editor-block-types-list__item-has-children .editor-block-types-list__item-icon-stack{display:block;background:#fff;box-shadow:0 0 0 1px #e2e4e7;width:100%;height:100%;position:absolute;z-index:-1;bottom:-6px;right:-6px;border-radius:4px}.editor-media-placeholder__url-input-container{width:100%}.editor-media-placeholder__url-input-container .editor-media-placeholder__button{margin-bottom:0}.editor-media-placeholder__url-input-form{display:flex}.editor-media-placeholder__url-input-form input[type=url].editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.editor-media-placeholder__url-input-form input[type=url].editor-media-placeholder__url-input-field{width:300px}}.editor-media-placeholder__url-input-submit-button{flex-shrink:1}.editor-media-placeholder__button{margin-bottom:.5rem}.editor-media-placeholder__button .dashicon{vertical-align:middle;margin-bottom:3px}.editor-media-placeholder__button:hover{color:#23282d}.components-form-file-upload .editor-media-placeholder__button{margin-right:4px}.editor-multi-selection-inspector__card{display:flex;align-items:flex-start;margin:-16px;padding:16px}.editor-multi-selection-inspector__card-content{flex-grow:1}.editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.editor-multi-selection-inspector__card-description{font-size:13px}.editor-multi-selection-inspector__card .editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-panel-color-settings .component-color-indicator{vertical-align:text-bottom}.editor-panel-color-settings__panel-title .component-color-indicator{display:inline-block}.editor-panel-color-settings.is-opened .editor-panel-color-settings__panel-title .component-color-indicator{display:none}.block-editor .editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{margin:0}.editor-post-featured-image .components-button+.components-button{margin-top:1em;margin-right:8px}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #00a0d2}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #00a0d2}.editor-post-featured-image__toggle{border:1px dashed #a2aab2;background-color:#edeff0;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background-color:#f8f9f9}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:right;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-right:5px}.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:active,.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:hover{border:none;box-shadow:none}.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-post-locked-modal{height:auto;padding-right:10px;padding-left:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-right:5px}.editor-post-locked-modal__avatar{float:left;margin:5px;margin-right:15px}.editor-post-permalink{display:inline-flex;align-items:center;background:#fff;padding:5px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;height:40px;white-space:nowrap;border:1px solid rgba(145,151,162,.25);background-clip:padding-box;margin-left:-15px;margin-right:-15px}@media (min-width:600px){.editor-post-permalink{margin-left:-1px;margin-right:-1px}}.editor-post-permalink button{flex-shrink:0}.editor-post-permalink__copy{border-radius:4px;padding:6px}.editor-post-permalink__copy.is-copied{opacity:.3}.editor-post-permalink__label{margin:0 10px 0 5px;font-weight:600}.editor-post-permalink__link{color:#7e8993;text-decoration:underline;margin-right:10px;width:100%;overflow:hidden;position:relative;white-space:nowrap}.editor-post-permalink__link::after{content:"";display:block;position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;background:linear-gradient(to right,rgba(255,255,255,0),#fff 90%);top:1px;bottom:1px;right:1px;left:auto;width:20%;height:auto}.editor-post-permalink-editor{width:100%;min-width:20%;display:inline-flex;align-items:center}.editor-post-permalink-editor .editor-post-permalink__editor-container{flex:0 1 100%;display:flex;overflow:hidden;padding:1px 0}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 1 auto}@media (min-width:600px){.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 0 auto}}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__edit{flex:1 1 100%}.editor-post-permalink-editor .editor-post-permalink-editor__save{margin-left:auto}.editor-post-permalink-editor__prefix{color:#6c7781;min-width:20%;overflow:hidden;position:relative;white-space:nowrap;text-overflow:ellipsis}.editor-post-permalink input[type=text].editor-post-permalink-editor__edit{min-width:10%;width:100%;margin:0 3px;padding:2px 4px}.editor-post-permalink-editor__suffix{color:#6c7781;margin-right:6px;flex:0 0 0%}.editor-post-publish-panel{background:#fff;color:#555d66}.editor-post-publish-panel__content{min-height:calc(100% - 140px)}.editor-post-publish-panel__content .components-spinner{display:block;float:none;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-left:16px;height:56px;border-bottom:1px solid #e2e4e7;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header-publish-button{display:flex;justify-content:flex-end;flex-grow:1;text-align:right;flex-wrap:nowrap}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-right:-4px}.editor-post-publish-panel__link{color:#007fac;font-weight:400;padding-left:4px;text-decoration:underline}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#191e23}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e2e4e7;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#e8eaeb;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;color:#a2aab2;overflow:hidden}.editor-post-saved-state.is-saving{animation:edit-post__loading-fade-animation .5s infinite}.editor-post-saved-state .dashicon{display:inline-block;flex:0 0 auto}.editor-post-saved-state{width:28px;white-space:nowrap;padding:12px 4px}.editor-post-saved-state .dashicon{margin-right:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state .dashicon{margin-right:4px}}.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft{margin:0}@media (min-width:600px){.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft .dashicon{display:none}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-input[type=checkbox]{margin-top:0}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-left:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.editor-post-text-editor{border:1px solid #e2e4e7;display:block;margin:0 0 2em;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;line-height:150%}.editor-post-text-editor:focus,.editor-post-text-editor:hover{border:1px solid #e2e4e7;box-shadow:none;outline:1px solid #e2e4e7;outline-offset:-2px}.editor-post-text-editor__toolbar{display:flex;flex-direction:row;flex-wrap:wrap}.editor-post-text-editor__toolbar button{height:30px;background:0 0;padding:0 8px;margin:3px 4px;text-align:center;cursor:pointer;font-family:Menlo,Consolas,monaco,monospace;color:#555d66;border:1px solid transparent}.editor-post-text-editor__toolbar button:first-child{margin-left:0}.editor-post-text-editor__toolbar button:focus,.editor-post-text-editor__toolbar button:hover{outline:0;border:1px solid #555d66}.editor-post-text-editor__bold{font-weight:600}.editor-post-text-editor__italic{font-style:italic}.editor-post-text-editor__link{text-decoration:underline;color:#0085ba}body.admin-color-sunrise .editor-post-text-editor__link{color:#d1864a}body.admin-color-ocean .editor-post-text-editor__link{color:#a3b9a2}body.admin-color-midnight .editor-post-text-editor__link{color:#e14d43}body.admin-color-ectoplasm .editor-post-text-editor__link{color:#a7b656}body.admin-color-coffee .editor-post-text-editor__link{color:#c2a68c}body.admin-color-blue .editor-post-text-editor__link{color:#82b4cb}body.admin-color-light .editor-post-text-editor__link{color:#0085ba}.editor-post-text-editor__del{text-decoration:line-through}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-fieldset{padding:4px;padding-top:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio{margin-top:2px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info{margin-top:0;margin-left:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input{margin-left:28px}.edit-post-post-visibility__dialog.components-popover.is-bottom{z-index:100001}.editor-post-title__block{position:relative;padding:5px 0;font-size:16px}@media (min-width:600px){.editor-post-title__block{padding:5px 2px}}.editor-post-title__block .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:0 0;font-family:"Noto Serif",serif;line-height:1.4;color:#191e23;transition:border .1s ease-out;padding:19px 14px;word-break:keep-all;border:1px solid transparent;border-left-width:0;border-right-width:0;font-size:2.441em;font-weight:600}@media (min-width:600px){.editor-post-title__block .editor-post-title__input{border-width:1px}}.editor-post-title__block .editor-post-title__input::-webkit-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input::-moz-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input:-ms-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:rgba(145,151,162,.25)}.is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:rgba(255,255,255,.3)}.editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#007cba}body.admin-color-sunrise .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#837425}body.admin-color-ocean .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#5e7d5e}body.admin-color-midnight .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#497b8d}body.admin-color-ectoplasm .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#523f6d}body.admin-color-coffee .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#59524c}body.admin-color-blue .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#417e9b}body.admin-color-light .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#007cba}.editor-post-title__block.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}.editor-post-title__block.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-title .editor-post-permalink{font-size:13px;color:#191e23;position:absolute;top:-34px;left:0;right:0}@media (min-width:600px){.editor-post-title .editor-post-permalink{left:2px;right:2px}}.editor-post-trash.components-button{width:100%;color:#c92c2c;justify-content:center}.editor-post-trash.components-button:focus,.editor-post-trash.components-button:hover{color:#b52727}.editor-format-toolbar{display:flex;flex-shrink:0}.editor-format-toolbar__selection-position{position:absolute;transform:translateX(-50%)}.editor-rich-text{position:relative}.editor-rich-text__tinymce{margin:0;position:relative;line-height:1.8;white-space:pre-wrap}.editor-rich-text__tinymce>p:empty{min-height:28.8px}.editor-rich-text__tinymce>p:first-child{margin-top:0}.editor-rich-text__tinymce:focus{outline:0}.editor-rich-text__tinymce a{color:#007fac}.editor-rich-text__tinymce code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:inherit}.is-multi-selected .editor-rich-text__tinymce code{background:#67cffd}.editor-rich-text__tinymce:focus a[data-mce-selected],.editor-rich-text__tinymce:focus b[data-mce-selected],.editor-rich-text__tinymce:focus del[data-mce-selected],.editor-rich-text__tinymce:focus em[data-mce-selected],.editor-rich-text__tinymce:focus i[data-mce-selected],.editor-rich-text__tinymce:focus ins[data-mce-selected],.editor-rich-text__tinymce:focus strong[data-mce-selected],.editor-rich-text__tinymce:focus sub[data-mce-selected],.editor-rich-text__tinymce:focus sup[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e8eaeb;background:#e8eaeb;color:#191e23}.editor-rich-text__tinymce:focus a[data-mce-selected]{box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa;color:#006589}.editor-rich-text__tinymce:focus code[data-mce-selected]{background:#e8eaeb;box-shadow:0 0 0 1px #e8eaeb}.editor-rich-text__tinymce img[data-mce-selected]{outline:0}.editor-rich-text__tinymce img::selection{background:0 0!important}.editor-rich-text__tinymce[data-is-placeholder-visible=true]{position:absolute;top:0;width:100%;margin-top:0;height:100%}.editor-rich-text__tinymce[data-is-placeholder-visible=true]>p{margin-top:0}.editor-rich-text__tinymce+.editor-rich-text__tinymce{pointer-events:none}.editor-rich-text__tinymce+.editor-rich-text__tinymce,.editor-rich-text__tinymce+.editor-rich-text__tinymce p{opacity:.62}.editor-rich-text__tinymce[data-is-placeholder-visible=true]+figcaption.editor-rich-text__tinymce{opacity:.8}.editor-rich-text__inline-toolbar{display:flex;justify-content:center;position:absolute;top:-40px;line-height:0;left:0;right:0;z-index:1}.editor-rich-text__inline-toolbar ul.components-toolbar{box-shadow:0 2px 10px rgba(25,30,35,.1),0 0 2px rgba(25,30,35,.1)}.editor-skip-to-selected-block{position:absolute;top:-9999em}.editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#11a0d2;line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:0;z-index:100000}body.admin-color-sunrise .editor-skip-to-selected-block:focus{color:#c8b03c}body.admin-color-ocean .editor-skip-to-selected-block:focus{color:#a89d8a}body.admin-color-midnight .editor-skip-to-selected-block:focus{color:#77a6b9}body.admin-color-ectoplasm .editor-skip-to-selected-block:focus{color:#c77430}body.admin-color-coffee .editor-skip-to-selected-block:focus{color:#9fa47b}body.admin-color-blue .editor-skip-to-selected-block:focus{color:#d9ab59}body.admin-color-light .editor-skip-to-selected-block:focus{color:#c75726}.table-of-contents__popover.components-popover:not(.is-mobile) .components-popover__content{min-width:380px}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__counts{display:flex;flex-wrap:wrap}.table-of-contents__count{width:25%;display:flex;flex-direction:column;font-size:13px;color:#6c7781}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#555d66}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-left:5px}.components-popover .editor-url-input,.editor-block-list__block .editor-url-input,.editor-url-input{flex-grow:1;position:relative;padding:1px}.components-popover .editor-url-input input[type=text],.editor-block-list__block .editor-url-input input[type=text],.editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-left:0;margin-right:0}@media (min-width:600px){.components-popover .editor-url-input input[type=text],.editor-block-list__block .editor-url-input input[type=text],.editor-url-input input[type=text]{width:300px}}.components-popover .editor-url-input input[type=text]::-ms-clear,.editor-block-list__block .editor-url-input input[type=text]::-ms-clear,.editor-url-input input[type=text]::-ms-clear{display:none}.components-popover .editor-url-input .components-spinner,.editor-block-list__block .editor-url-input .components-spinner,.editor-url-input .components-spinner{position:absolute;right:8px;top:9px;margin:0}.editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}.editor-url-input .components-spinner,.editor-url-input__suggestions{display:none}@media (min-width:600px){.editor-url-input .components-spinner,.editor-url-input__suggestions{display:inherit}}.editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:left;border:none;box-shadow:none}.editor-url-input__suggestion:hover{background:#e2e4e7}.editor-url-input__suggestion.is-selected,.editor-url-input__suggestion:focus{background:#00719e;color:#fff;outline:0}body.admin-color-sunrise .editor-url-input__suggestion.is-selected,body.admin-color-sunrise .editor-url-input__suggestion:focus{background:#b2723f}body.admin-color-ocean .editor-url-input__suggestion.is-selected,body.admin-color-ocean .editor-url-input__suggestion:focus{background:#8b9d8a}body.admin-color-midnight .editor-url-input__suggestion.is-selected,body.admin-color-midnight .editor-url-input__suggestion:focus{background:#bf4139}body.admin-color-ectoplasm .editor-url-input__suggestion.is-selected,body.admin-color-ectoplasm .editor-url-input__suggestion:focus{background:#8e9b49}body.admin-color-coffee .editor-url-input__suggestion.is-selected,body.admin-color-coffee .editor-url-input__suggestion:focus{background:#a58d77}body.admin-color-blue .editor-url-input__suggestion.is-selected,body.admin-color-blue .editor-url-input__suggestion:focus{background:#6f99ad}body.admin-color-light .editor-url-input__suggestion.is-selected,body.admin-color-light .editor-url-input__suggestion:focus{background:#00719e}.components-toolbar>.editor-url-input__button{position:inherit}.editor-url-input__button .editor-url-input__back{margin-right:4px;overflow:visible}.editor-url-input__button .editor-url-input__back::after{content:"";position:absolute;display:block;width:1px;height:24px;right:-1px;background:#e2e4e7}.editor-url-input__button-modal{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff}.editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.editor-url-popover__row{display:flex}.editor-url-popover__row>:not(.editor-url-popover__settings-toggle){flex-grow:1}.editor-url-popover__settings-toggle{flex-shrink:0;width:36px;height:36px}.editor-url-popover__settings-toggle .dashicon{transform:rotate(90deg)}.editor-url-popover__settings{padding:7px 8px;border-top:1px solid #e2e4e7;padding-top:8px}.editor-warning{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:nowrap;background-color:#fff;border:1px solid #e2e4e7;text-align:left;padding:20px}.has-warning.is-multi-selected .editor-warning{background-color:transparent}.editor-warning .editor-warning__message{line-height:1.4;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px}.editor-warning .editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:center;width:100%}.editor-warning .editor-warning__actions{display:flex}.editor-warning .editor-warning__action{margin:0 6px 0 0}.editor-warning__secondary{margin:3px 0 0 -4px}.editor-warning__secondary .components-icon-button{width:auto;padding:8px 2px}@media (min-width:600px){.editor-warning__secondary{margin-left:4px}.editor-warning__secondary .components-icon-button{padding:8px 4px}}.editor-warning__secondary .components-button svg{transform:rotate(90deg)}.editor-writing-flow{height:100%;display:flex;flex-direction:column}.editor-writing-flow__click-redirect{flex-basis:100%;cursor:text} \ No newline at end of file +@charset "UTF-8";.editor-autocompleters__block .editor-block-icon{margin-right:8px}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-right:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-left:8px;color:#8f98a1;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#66c6e4}.editor-block-drop-zone{border:none;border-radius:0}.editor-block-drop-zone .components-drop-zone__content,.editor-block-drop-zone.is-dragging-over-element .components-drop-zone__content{display:none}.editor-block-drop-zone.is-close-to-bottom{background:0 0;border-bottom:3px solid #0085ba}body.admin-color-sunrise .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #d1864a}body.admin-color-ocean .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #a3b9a2}body.admin-color-midnight .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #e14d43}body.admin-color-ectoplasm .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #a7b656}body.admin-color-coffee .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #c2a68c}body.admin-color-blue .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #82b4cb}body.admin-color-light .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #0085ba}.editor-block-drop-zone.is-appender.is-close-to-bottom,.editor-block-drop-zone.is-appender.is-close-to-top,.editor-block-drop-zone.is-close-to-top{background:0 0;border-top:3px solid #0085ba;border-bottom:none}body.admin-color-sunrise .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-sunrise .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-sunrise .editor-block-drop-zone.is-close-to-top{border-top:3px solid #d1864a}body.admin-color-ocean .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-ocean .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-ocean .editor-block-drop-zone.is-close-to-top{border-top:3px solid #a3b9a2}body.admin-color-midnight .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-midnight .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-midnight .editor-block-drop-zone.is-close-to-top{border-top:3px solid #e14d43}body.admin-color-ectoplasm .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-ectoplasm .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-ectoplasm .editor-block-drop-zone.is-close-to-top{border-top:3px solid #a7b656}body.admin-color-coffee .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-coffee .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-coffee .editor-block-drop-zone.is-close-to-top{border-top:3px solid #c2a68c}body.admin-color-blue .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-blue .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-blue .editor-block-drop-zone.is-close-to-top{border-top:3px solid #82b4cb}body.admin-color-light .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-light .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-light .editor-block-drop-zone.is-close-to-top{border-top:3px solid #0085ba}.editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0;border-radius:4px}.editor-block-icon.has-colors svg{fill:currentColor}.editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.editor-block-inspector__card{display:flex;align-items:flex-start;margin:-16px;padding:16px}.editor-block-inspector__card-icon{border:1px solid #ccd0d4;padding:7px;margin-right:10px;height:36px;width:36px}.editor-block-inspector__card-content{flex-grow:1}.editor-block-inspector__card-title{font-weight:500;margin-bottom:5px}.editor-block-inspector__card-description{font-size:13px}.editor-block-inspector__card .editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.editor-block-list__layout .components-draggable__clone .editor-block-contextual-toolbar{display:none!important}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-list__block-edit::before{outline:0}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging>.editor-block-list__block-edit>*{background:#f8f9f9}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging>.editor-block-list__block-edit>*>*{visibility:hidden}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-mover{display:none}.editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit .reusable-block-edit-panel *{z-index:1}@media (min-width:600px){.editor-block-list__layout{padding-left:46px;padding-right:46px}}.editor-block-list__block .editor-block-list__layout{padding-left:0;padding-right:0;margin-left:-14px;margin-right:-14px}.editor-block-list__layout .editor-default-block-appender>.editor-default-block-appender__content,.editor-block-list__layout>.editor-block-list__block>.editor-block-list__block-edit,.editor-block-list__layout>.editor-block-list__layout>.editor-block-list__block>.editor-block-list__block-edit{margin-top:32px;margin-bottom:32px}.editor-block-list__layout .editor-block-list__block{position:relative;padding-left:14px;padding-right:14px;overflow-wrap:break-word}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block{padding-left:43px;padding-right:43px}}.editor-block-list__layout .editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 20px 12px 20px;width:calc(100% - 40px)}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui{margin:0 0 12px 0;width:100%}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui .components-notice{margin-left:0;margin-right:0}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit{position:relative}.editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit::before{z-index:0;content:"";position:absolute;outline:1px solid transparent;transition:outline .1s linear;pointer-events:none;right:-14px;left:-14px;top:-14px;bottom:-14px}.editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit::before{outline:1px solid rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit::before{outline-color:rgba(255,255,255,.3)}.editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #007cba}body.admin-color-sunrise .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #837425}body.admin-color-ocean .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #5e7d5e}body.admin-color-midnight .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #497b8d}body.admin-color-ectoplasm .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #523f6d}body.admin-color-coffee .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #59524c}body.admin-color-blue .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #417e9B}body.admin-color-light .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit::before{outline:1px solid #007cba}.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .editor-block-list__block{opacity:1}.editor-block-list__layout .editor-block-list__block ::-moz-selection{background-color:#b3e7fe}.editor-block-list__layout .editor-block-list__block ::selection{background-color:#b3e7fe}.editor-block-list__layout .editor-block-list__block.is-multi-selected ::-moz-selection{background-color:transparent}.editor-block-list__layout .editor-block-list__block.is-multi-selected ::selection{background-color:transparent}.editor-block-list__layout .editor-block-list__block.is-multi-selected .editor-block-list__block-edit::before{background:#b3e7fe;mix-blend-mode:multiply;top:-14px;bottom:-14px}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-multi-selected .editor-block-list__block-edit::before{mix-blend-mode:soft-light}.editor-block-list__layout .editor-block-list__block.has-warning{min-height:36px}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit>*{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit .editor-warning{pointer-events:all}.editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit::before{outline-color:rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit::before{outline-color:rgba(255,255,255,.3)}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit::after{content:"";position:absolute;background-color:rgba(248,249,249,.4);top:-14px;bottom:-14px;right:-14px;left:-14px}.editor-block-list__layout .editor-block-list__block.has-warning.is-multi-selected .editor-block-list__block-edit::after{background-color:transparent}.editor-block-list__layout .editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit::after{bottom:22px}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit::after{bottom:-14px}}.editor-block-list__layout .editor-block-list__block.is-typing .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block.is-typing .editor-block-list__side-inserter{opacity:0}.editor-block-list__layout .editor-block-list__block .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block .editor-block-list__side-inserter{opacity:1;transition:opacity .2s}.editor-block-list__layout .editor-block-list__block.is-reusable>.editor-block-list__block-edit::before{outline:1px dashed rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-reusable>.editor-block-list__block-edit::before{outline-color:rgba(255,255,255,.3)}.editor-block-list__layout .editor-block-list__block[data-align=left],.editor-block-list__layout .editor-block-list__block[data-align=right]{z-index:20;width:100%;height:0}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit{margin-top:0}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit::before,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit::before{content:none}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-bottom:1px}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-mobile-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-mobile-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-mover{display:none}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{width:auto;border-bottom:1px solid #e2e4e7;bottom:auto}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{left:0;right:auto}.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{left:auto;right:0}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{top:14px}}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit{/*!rtl:begin:ignore*/float:left;margin-right:2em/*!rtl:end:ignore*/}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-toolbar{/*!rtl:begin:ignore*/left:14px;right:auto/*!rtl:end:ignore*/}}.editor-block-list__layout .editor-block-list__block[data-align=right]>.editor-block-list__block-edit{/*!rtl:begin:ignore*/float:right;margin-left:2em/*!rtl:end:ignore*/}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-toolbar{/*!rtl:begin:ignore*/right:14px;left:auto/*!rtl:end:ignore*/}}.editor-block-list__layout .editor-block-list__block[data-align=full],.editor-block-list__layout .editor-block-list__block[data-align=wide]{clear:both;z-index:20}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{top:-44px;bottom:auto;min-height:0;height:auto;width:auto;z-index:inherit}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover::before,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover::before{content:none}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover .editor-block-mover__control,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover .editor-block-mover__control{float:left}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__breadcrumb,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-list__breadcrumb{right:-1px}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{display:none}@media (min-width:1280px){.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{display:block}}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full] .editor-block-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=wide] .editor-block-toolbar{display:inline-flex}}.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{left:-13px}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit>.editor-block-list__breadcrumb{right:0}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full]{margin-left:-45px;margin-right:-45px}}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit{margin-left:-14px;margin-right:-14px}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit{margin-left:-44px;margin-right:-44px}}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit figure{width:100%}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit::before{left:0;right:0;border-left-width:0;border-right-width:0}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover{left:1px}.editor-block-list__layout .editor-block-list__block[data-clear=true]{float:none}.editor-block-list__layout .editor-block-list__block .editor-block-drop-zone{top:-4px;bottom:-3px;margin:0 14px}.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-inserter-with-shortcuts{display:none}.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-default-block-appender .editor-inserter{left:auto;right:8px}.editor-block-list__block>.editor-block-mover{position:absolute;width:30px;height:100%;max-height:112px}.editor-block-list__block>.editor-block-mover{top:-15px}@media (min-width:600px){.editor-block-list__block.is-hovered .editor-block-mover,.editor-block-list__block.is-multi-selected .editor-block-mover,.editor-block-list__block.is-selected .editor-block-mover{z-index:80}}.editor-block-list__block>.editor-block-mover{padding-right:2px;left:-30px;display:none}@media (min-width:600px){.editor-block-list__block>.editor-block-mover{display:block}}.editor-block-list__block .editor-block-list__block-mobile-toolbar{display:flex;flex-direction:row;transform:translateY(15px);margin-top:37px;margin-right:-14px;margin-left:-14px;border-top:1px solid #e2e4e7;height:37px;box-shadow:0 5px 10px rgba(25,30,35,.05),0 2px 2px rgba(25,30,35,.05)}@media (min-width:600px){.editor-block-list__block .editor-block-list__block-mobile-toolbar{display:none}}@media (min-width:600px){.editor-block-list__block .editor-block-list__block-mobile-toolbar{box-shadow:none}}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter{position:relative;left:auto;top:auto;margin:0}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover__control,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter__toggle{width:36px;height:36px;border-radius:4px;padding:3px;margin:0;justify-content:center;align-items:center}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover__control .dashicon,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter__toggle .dashicon{margin:auto}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover{display:flex;margin-right:auto}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover .editor-block-mover__control,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover .editor-inserter{float:left}.editor-block-list__block[data-align=full] .editor-block-list__block-mobile-toolbar{margin-left:0;margin-right:0}.editor-block-list .editor-inserter{margin:8px;cursor:move;cursor:-webkit-grab;cursor:grab}.editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:2px;left:0;right:0;background:#0085ba}body.admin-color-sunrise .editor-block-list__insertion-point-indicator{background:#d1864a}body.admin-color-ocean .editor-block-list__insertion-point-indicator{background:#a3b9a2}body.admin-color-midnight .editor-block-list__insertion-point-indicator{background:#e14d43}body.admin-color-ectoplasm .editor-block-list__insertion-point-indicator{background:#a7b656}body.admin-color-coffee .editor-block-list__insertion-point-indicator{background:#c2a68c}body.admin-color-blue .editor-block-list__insertion-point-indicator{background:#82b4cb}body.admin-color-light .editor-block-list__insertion-point-indicator{background:#0085ba}.editor-block-list__insertion-point-inserter{display:none;position:absolute;bottom:auto;left:0;right:0;justify-content:center;opacity:0;transition:opacity .1s linear .1s}@media (min-width:480px){.editor-block-list__insertion-point-inserter{display:flex}}.editor-block-list__insertion-point-inserter .editor-inserter__toggle{margin-top:-4px;border-radius:50%;color:#007cba;background:#fff;height:36px;width:36px}.editor-block-list__insertion-point-inserter .editor-inserter__toggle:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.editor-block-list__insertion-point-inserter.is-visible,.editor-block-list__insertion-point-inserter:hover{opacity:1}.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter{opacity:0;pointer-events:none}.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter.is-visible,.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter:hover,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter.is-visible,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter:hover{opacity:1;pointer-events:auto}.editor-block-list__block>.editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;left:0;right:0}@media (min-width:600px){.editor-block-list__block>.editor-block-list__insertion-point{left:-1px;right:-1px}}.editor-block-list__block[data-align=full]>.editor-block-list__insertion-point{left:0;right:0}.editor-block-list__block .editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:0;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;line-height:150%;transition:padding .2s linear}.editor-block-list__block .editor-block-list__block-html-textarea:focus{box-shadow:none}.editor-block-list__block .editor-block-contextual-toolbar{position:-webkit-sticky;position:sticky;z-index:21;white-space:nowrap;text-align:left;pointer-events:none;position:absolute;bottom:23px;left:-14px;right:-14px;border-top:1px solid #e2e4e7}.editor-block-list__block .editor-block-contextual-toolbar .components-toolbar{border-top:none;border-bottom:none}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{border-top:none}.editor-block-list__block .editor-block-contextual-toolbar .components-toolbar{border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-bottom:1px;margin-top:-37px}.editor-block-list__block .editor-block-contextual-toolbar{margin-left:0;margin-right:0}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{margin-left:-15px;margin-right:-15px}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{margin-right:15px}.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-left:15px}.editor-block-list__block .editor-block-contextual-toolbar>*{pointer-events:auto}.editor-block-list__block.is-focus-mode:not(.is-multi-selected)>.editor-block-contextual-toolbar{margin-left:-28px}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{bottom:auto;left:auto;right:auto;box-shadow:none;transform:translateY(-52px)}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-block-list__block .editor-block-contextual-toolbar{position:-webkit-sticky;position:sticky;top:51px}}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{float:left}.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{float:right}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{transform:translateY(-15px)}.editor-block-contextual-toolbar .editor-block-toolbar{width:100%}@media (min-width:600px){.editor-block-contextual-toolbar .editor-block-toolbar{width:auto;border-right:none;position:absolute;left:0}}.editor-block-list__breadcrumb{position:absolute;line-height:1;z-index:2;right:-14px;top:-15px}.editor-block-list__breadcrumb .components-toolbar{padding:0;border:none;background:0 0;line-height:1;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:11px;padding:4px 4px;background:#007cba;color:#fff}body.admin-color-sunrise .editor-block-list__breadcrumb .components-toolbar{background:#837425}body.admin-color-ocean .editor-block-list__breadcrumb .components-toolbar{background:#5e7d5e}body.admin-color-midnight .editor-block-list__breadcrumb .components-toolbar{background:#497b8d}body.admin-color-ectoplasm .editor-block-list__breadcrumb .components-toolbar{background:#523f6d}body.admin-color-coffee .editor-block-list__breadcrumb .components-toolbar{background:#59524c}body.admin-color-blue .editor-block-list__breadcrumb .components-toolbar{background:#417e9b}body.admin-color-light .editor-block-list__breadcrumb .components-toolbar{background:#007cba}.editor-block-list__block:hover .editor-block-list__breadcrumb .components-toolbar{opacity:0;animation:edit-post__fade-in-animation 60ms ease-out .5s;animation-fill-mode:forwards}[data-align=left] .editor-block-list__breadcrumb,[data-align=right] .editor-block-list__breadcrumb{right:0;top:0}.editor-block-list__descendant-arrow::before{content:"→";display:inline-block;padding:0 4px}.rtl .editor-block-list__descendant-arrow::before{content:"←"}@media (min-width:600px){.editor-block-list__block::before{bottom:0;content:"";left:-28px;position:absolute;right:-28px;top:0}.editor-block-list__block .editor-block-list__block::before{left:0;right:0}.editor-block-list__block[data-align=full]::before{content:none}}.editor-block-list__block .editor-warning{z-index:5;position:relative;margin-right:-15px;margin-left:-15px;margin-bottom:-15px;transform:translateY(-15px);padding:10px 14px}@media (min-width:600px){.editor-block-list__block .editor-warning{padding:10px 14px}}.block-list-appender>.editor-inserter{display:block}.block-list-appender__toggle{display:flex;align-items:center;justify-content:center;padding:16px;outline:1px dashed #8d96a0;width:100%;color:#555d66}.block-list-appender__toggle:hover{outline:1px dashed #555d66}.editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.editor-block-compare{max-height:70%}}.editor-block-compare__wrapper{display:flex;padding-bottom:16px}.editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 16px 0 0;min-width:200px}.editor-block-compare__wrapper>div button{float:right}.editor-block-compare__wrapper .editor-block-compare__converted{border-left:1px solid #ddd;padding-left:15px}.editor-block-compare__wrapper .editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#23282d;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.editor-block-compare__wrapper .editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.editor-block-compare__wrapper .editor-block-compare__html span.editor-block-compare__added{background-color:#acf2bd}.editor-block-compare__wrapper .editor-block-compare__html span.editor-block-compare__removed{background-color:#d94f4f}.editor-block-compare__wrapper .editor-block-compare__preview{padding:0;padding-top:14px}.editor-block-compare__wrapper .editor-block-compare__preview p{font-size:12px;margin-top:0}.editor-block-compare__wrapper .editor-block-compare__action{margin-top:14px}.editor-block-compare__wrapper .editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.editor-block-mover{min-height:56px;opacity:0}.editor-block-mover.is-visible{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (min-width:600px){.editor-block-list__block:not([data-align=wide]):not([data-align=full]) .editor-block-mover{margin-top:-8px}}.editor-block-mover__control{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;width:28px;height:24px;color:rgba(14,28,46,.62)}.editor-block-mover__control svg{width:28px;height:24px;padding:2px 5px}.is-dark-theme .editor-block-mover__control{color:rgba(255,255,255,.65)}.editor-block-mover__control[aria-disabled=true]{cursor:default;pointer-events:none;color:rgba(130,148,147,.15)}.is-dark-theme .editor-block-mover__control[aria-disabled=true]{color:rgba(255,255,255,.2)}.editor-block-mover__control-drag-handle{cursor:move;cursor:-webkit-grab;cursor:grab;fill:currentColor;border-radius:4px}.editor-block-mover__control-drag-handle,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none;background:0 0;color:rgba(10,24,41,.7)}.is-dark-theme .editor-block-mover__control-drag-handle,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:rgba(255,255,255,.75)}.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active{cursor:-webkit-grabbing;cursor:grabbing}.editor-block-mover__description{display:none}@media (min-width:600px){.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default){background:#fff;box-shadow:inset 0 0 0 1px #e2e4e7}.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):nth-child(-n+2),.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:nth-child(-n+2){margin-bottom:-1px}.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:active,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:focus,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:hover{z-index:1}}.editor-block-navigation__container{padding:7px}.editor-block-navigation__label{margin:0 0 8px;color:#6c7781}.editor-block-navigation__list,.editor-block-navigation__paragraph{padding:0;margin:0}.editor-block-navigation__list .editor-block-navigation__list{margin-top:2px;border-left:2px solid #a2aab2;margin-left:1em}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__list{margin-left:1.5em}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item{position:relative}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item::before{position:absolute;left:0;background:#a2aab2;width:.5em;height:2px;content:"";top:calc(50% - 1px)}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item-button{margin-left:.8em;width:calc(100% - .8em)}.editor-block-navigation__list .editor-block-navigation__list>li:last-child{position:relative}.editor-block-navigation__list .editor-block-navigation__list>li:last-child::after{position:absolute;content:"";background:#fff;top:19px;bottom:0;left:-2px;width:2px}.editor-block-navigation__item-button{display:flex;align-items:center;width:100%;padding:6px;text-align:left;color:#40464d;border-radius:4px}.editor-block-navigation__item-button .editor-block-icon{margin-right:6px}.editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none}.editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-block-navigation__item-button.is-selected,.editor-block-navigation__item-button.is-selected:focus{color:#32373c;background:#edeff0}.editor-block-preview{pointer-events:none;padding:10px;overflow:hidden;display:none}@media (min-width:782px){.editor-block-preview{display:block}}.editor-block-preview .editor-block-preview__content{padding:14px;border:1px solid #e2e4e7;font-family:"Noto Serif",serif}.editor-block-preview .editor-block-preview__content>div{transform:scale(.9);transform-origin:center top;font-family:"Noto Serif",serif}.editor-block-preview .editor-block-preview__content>div section{height:auto}.editor-block-preview .editor-block-preview__content>.reusable-block-indicator{display:none}.editor-block-preview__title{margin-bottom:10px;color:#6c7781}.editor-block-settings-menu__toggle .dashicon{transform:rotate(90deg)}.editor-block-settings-menu__popover::after,.editor-block-settings-menu__popover::before{margin-left:2px}.editor-block-settings-menu__popover .editor-block-settings-menu__content{padding:7px}.editor-block-settings-menu__popover .editor-block-settings-menu__separator{margin-top:8px;margin-bottom:8px;margin-left:-7px;margin-right:-7px;border-top:1px solid #e2e4e7}.editor-block-settings-menu__popover .editor-block-settings-menu__separator:last-child{display:none}.editor-block-settings-menu__popover .editor-block-settings-menu__title{display:block;padding:6px;color:#6c7781}.editor-block-settings-menu__popover .editor-block-settings-menu__control{width:100%;justify-content:flex-start;padding:8px;background:0 0;outline:0;border-radius:0;color:#555d66;text-align:left;cursor:pointer;border:none;box-shadow:none}.editor-block-settings-menu__popover .editor-block-settings-menu__control:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none}.editor-block-settings-menu__popover .editor-block-settings-menu__control:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-block-settings-menu__popover .editor-block-settings-menu__control .dashicon{margin-right:5px}.editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:4px;padding:4px}.editor-block-styles__item.is-active{color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px;box-shadow:0 0 0 2px #555d66}.editor-block-styles__item:focus{color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-block-styles__item:hover{background:#f8f9f9;color:#191e23}.editor-block-styles__item-preview{outline:1px solid transparent;border:1px solid rgba(25,30,35,.2);overflow:hidden;padding:0;text-align:initial;border-radius:4px;display:flex;height:60px;background:#fff}.editor-block-styles__item-preview .editor-block-preview__content{transform:scale(.7);transform-origin:center center;width:100%;margin:0;padding:0;overflow:visible;min-height:auto}.editor-block-styles__item-label{text-align:center;padding:4px 2px}.editor-block-switcher{position:relative;height:36px}.components-icon-button.editor-block-switcher__no-switcher-icon,.components-icon-button.editor-block-switcher__toggle{margin:0;display:block;height:36px;padding:3px}.components-icon-button.editor-block-switcher__no-switcher-icon{width:48px}.components-icon-button.editor-block-switcher__no-switcher-icon .editor-block-icon{margin-right:auto;margin-left:auto}.components-icon-button.editor-block-switcher__toggle{width:auto}.components-icon-button.editor-block-switcher__toggle:active,.components-icon-button.editor-block-switcher__toggle:not(:disabled):not([aria-disabled=true]):hover,.components-icon-button.editor-block-switcher__toggle:not([aria-disabled=true]):focus{outline:0;box-shadow:none;background:0 0;border:none}.components-icon-button.editor-block-switcher__toggle .editor-block-icon,.components-icon-button.editor-block-switcher__toggle .editor-block-switcher__transform{width:42px;height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;transition:all .1s cubic-bezier(.165, .84, .44, 1)}.components-icon-button.editor-block-switcher__toggle .editor-block-icon::after{content:"";pointer-events:none;display:block;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid currentColor;margin-left:4px;margin-right:2px}.components-icon-button.editor-block-switcher__toggle .editor-block-switcher__transform{margin-top:6px;border-radius:4px}.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-switcher__transform,.components-icon-button.editor-block-switcher__toggle:not(:disabled):hover .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):hover .editor-block-switcher__transform,.components-icon-button.editor-block-switcher__toggle[aria-expanded=true] .editor-block-icon,.components-icon-button.editor-block-switcher__toggle[aria-expanded=true] .editor-block-switcher__transform{transform:translateY(-36px)}.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-switcher__transform{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-popover:not(.is-mobile).editor-block-switcher__popover .components-popover__content{min-width:300px;max-width:340px}@media (min-width:782px){.editor-block-switcher__popover .components-popover__content{position:relative}.editor-block-switcher__popover .components-popover__content .editor-block-preview{border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;position:absolute;left:100%;top:-1px;bottom:-1px;width:300px;height:auto}}.editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #e2e4e7}.editor-block-switcher__popover:not(.is-mobile)>.components-popover__content{overflow-y:visible}.editor-block-switcher__popover .editor-block-styles{margin:0 -3px}.editor-block-switcher__popover .editor-block-types-list{margin:8px -8px -8px}.editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;border-left:1px solid #e2e4e7}@media (min-width:600px){.editor-block-toolbar{overflow:inherit}}.editor-block-toolbar .components-toolbar{border:0;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7;border-right:1px solid #e2e4e7}.editor-block-types-list{list-style:none;padding:2px 0;overflow:hidden;display:flex;flex-wrap:wrap}.editor-color-palette-control__color-palette{display:inline-block;margin-top:.6rem}.editor-contrast-checker>.components-notice{margin:0}.editor-default-block-appender{clear:both}.editor-default-block-appender textarea.editor-default-block-appender__content{font-family:"Noto Serif",serif;font-size:16px;border:none;background:0 0;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:.2s outline;resize:none;padding:0 50px 0 14px;color:rgba(14,28,46,.62)}.is-dark-theme .editor-default-block-appender textarea.editor-default-block-appender__content{color:rgba(255,255,255,.65)}.editor-default-block-appender .editor-inserter-with-shortcuts{opacity:.5;transition:opacity .2s}.editor-default-block-appender .editor-inserter-with-shortcuts .components-icon-button:not(:hover){color:rgba(10,24,41,.7)}.is-dark-theme .editor-default-block-appender .editor-inserter-with-shortcuts .components-icon-button:not(:hover){color:rgba(255,255,255,.75)}.editor-default-block-appender .editor-inserter__toggle:not([aria-expanded=true]){opacity:0}.editor-default-block-appender:hover .editor-inserter-with-shortcuts{opacity:1}.editor-default-block-appender:hover .editor-inserter__toggle{opacity:1}.editor-default-block-appender .components-drop-zone__content-icon{display:none}.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter,.editor-inserter-with-shortcuts{position:absolute;top:0}.editor-block-list__empty-block-inserter .components-icon-button,.editor-default-block-appender .editor-inserter .components-icon-button,.editor-inserter-with-shortcuts .components-icon-button{width:28px;height:28px;margin-right:12px;padding:0}.editor-block-list__empty-block-inserter .editor-block-icon,.editor-default-block-appender .editor-inserter .editor-block-icon,.editor-inserter-with-shortcuts .editor-block-icon{margin:auto}.editor-block-list__empty-block-inserter .components-icon-button svg,.editor-default-block-appender .editor-inserter .components-icon-button svg,.editor-inserter-with-shortcuts .components-icon-button svg{display:block;margin:auto}.editor-block-list__empty-block-inserter .editor-inserter__toggle,.editor-default-block-appender .editor-inserter .editor-inserter__toggle,.editor-inserter-with-shortcuts .editor-inserter__toggle{margin-right:0}.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter{right:8px}@media (min-width:600px){.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter{left:-44px;right:auto}}.editor-block-list__empty-block-inserter:disabled,.editor-default-block-appender .editor-inserter:disabled{display:none}.editor-block-list__empty-block-inserter .editor-inserter__toggle,.editor-default-block-appender .editor-inserter .editor-inserter__toggle{transition:opacity .2s;border-radius:50%;width:28px;height:28px;padding:0}.editor-block-list__empty-block-inserter .editor-inserter__toggle:not(:hover),.editor-default-block-appender .editor-inserter .editor-inserter__toggle:not(:hover){color:rgba(10,24,41,.7)}.is-dark-theme .editor-block-list__empty-block-inserter .editor-inserter__toggle:not(:hover),.is-dark-theme .editor-default-block-appender .editor-inserter .editor-inserter__toggle:not(:hover){color:rgba(255,255,255,.75)}.editor-block-list__side-inserter .editor-inserter-with-shortcuts,.editor-default-block-appender .editor-inserter-with-shortcuts{right:14px;display:none;z-index:5}@media (min-width:600px){.editor-block-list__side-inserter .editor-inserter-with-shortcuts,.editor-default-block-appender .editor-inserter-with-shortcuts{right:0;display:flex}}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item .document-outline__emdash::before{color:#e2e4e7;margin-right:4px}.document-outline__item.is-h2 .document-outline__emdash::before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash::before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash::before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash::before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash::before{content:"—————"}.document-outline__button{cursor:pointer;background:0 0;border:none;display:flex;align-items:flex-start;color:#23282d;text-align:left}.document-outline__button:focus{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.document-outline__level{background:#e2e4e7;color:#23282d;border-radius:3px;font-size:13px;padding:1px 6px;margin-right:4px}.is-invalid .document-outline__level{background:#f0b849}.editor-error-boundary{max-width:610px;margin:auto;max-width:780px;padding:20px;margin-top:60px;box-shadow:0 3px 30px rgba(25,30,35,.2)}.editor-inner-blocks.has-overlay::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:120}.editor-inserter-with-shortcuts{display:flex;align-items:center}.editor-inserter-with-shortcuts .components-icon-button{border-radius:4px}.editor-inserter-with-shortcuts .components-icon-button svg:not(.dashicon){height:24px;width:24px}.editor-inserter-with-shortcuts__block{margin-right:4px;width:36px;height:36px;padding-top:8px;color:rgba(102,120,134,.35)}.is-dark-theme .editor-inserter-with-shortcuts__block{color:rgba(255,255,255,.4)}.editor-inserter{display:inline-block;background:0 0;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.editor-inserter{position:relative}}@media (min-width:782px){.editor-inserter__popover:not(.is-mobile)>.components-popover__content{overflow-y:visible;height:432px}}.editor-inserter__toggle{display:inline-flex;align-items:center;color:#555d66;background:0 0;cursor:pointer;border:none;outline:0;transition:color .2s ease}.editor-inserter__menu{width:auto;display:flex;flex-direction:column;height:100%}@media (min-width:782px){.editor-inserter__menu{width:400px;position:relative}.editor-inserter__menu .editor-block-preview{border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;position:absolute;left:100%;top:-1px;bottom:-1px;width:300px}}.editor-inserter__inline-elements{margin-top:-1px}.editor-inserter__menu.is-bottom::after{border-bottom-color:#fff}.components-popover input[type=search].editor-inserter__search{display:block;margin:16px;padding:11px 16px;position:relative;z-index:1;border-radius:4px;font-size:16px}@media (min-width:600px){.components-popover input[type=search].editor-inserter__search{font-size:13px}}.components-popover input[type=search].editor-inserter__search:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-inserter__results{flex-grow:1;overflow:auto;position:relative;z-index:1;padding:0 16px 16px 16px}.editor-inserter__results:focus{outline:1px dotted #555d66}@media (min-width:782px){.editor-inserter__results{height:394px}}.editor-inserter__results [role=presentation]+.components-panel__body{border-top:none}.editor-inserter__popover .editor-block-types-list{margin:0 -8px}.editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.editor-inserter__manage-reusable-blocks{margin:16px 0 0 16px}.editor-inserter__no-results{font-style:italic;padding:24px;text-align:center}.editor-inserter__child-blocks{padding:0 16px}.editor-inserter__parent-block-header{display:flex;align-items:center}.editor-inserter__parent-block-header h2{font-size:13px}.editor-block-types-list__list-item{display:block;width:33.33%;padding:0 4px;margin:0 0 12px}.editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:0;align-items:stretch;justify-content:center;cursor:pointer;background:0 0;word-break:break-word;border-radius:4px;border:1px solid transparent;transition:all 50ms ease-in-out;position:relative}.editor-block-types-list__item:disabled{opacity:.6;cursor:default}.editor-block-types-list__item:not(:disabled):hover::before{content:"";display:block;background:#f8f9f9;color:#191e23;position:absolute;z-index:-1;border-radius:4px;top:0;right:0;bottom:0;left:0}.editor-block-types-list__item:not(:disabled):hover .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):hover .editor-block-types-list__item-title{color:currentColor}.editor-block-types-list__item:not(:disabled).is-active,.editor-block-types-list__item:not(:disabled):active,.editor-block-types-list__item:not(:disabled):focus{position:relative;outline:0;color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-block-types-list__item:not(:disabled).is-active .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled).is-active .editor-block-types-list__item-title,.editor-block-types-list__item:not(:disabled):active .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):active .editor-block-types-list__item-title,.editor-block-types-list__item:not(:disabled):focus .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):focus .editor-block-types-list__item-title{color:currentColor}.editor-block-types-list__item-icon{padding:12px 20px;border-radius:4px;color:#555d66;transition:all 50ms ease-in-out}.editor-block-types-list__item-icon .editor-block-icon{margin-left:auto;margin-right:auto}.editor-block-types-list__item-icon svg{transition:all .15s ease-out}.editor-block-types-list__item-title{padding:4px 2px 8px}.editor-block-types-list__item-has-children .editor-block-types-list__item-icon{background:#fff;margin-right:3px;margin-bottom:6px;padding:9px 20px 9px;position:relative;top:-2px;left:-2px;box-shadow:0 0 0 1px #e2e4e7}.editor-block-types-list__item-has-children .editor-block-types-list__item-icon-stack{display:block;background:#fff;box-shadow:0 0 0 1px #e2e4e7;width:100%;height:100%;position:absolute;z-index:-1;bottom:-6px;right:-6px;border-radius:4px}.editor-media-placeholder__url-input-container{width:100%}.editor-media-placeholder__url-input-container .editor-media-placeholder__button{margin-bottom:0}.editor-media-placeholder__url-input-form{display:flex}.editor-media-placeholder__url-input-form input[type=url].editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.editor-media-placeholder__url-input-form input[type=url].editor-media-placeholder__url-input-field{width:300px}}.editor-media-placeholder__url-input-submit-button{flex-shrink:1}.editor-media-placeholder__button{margin-bottom:.5rem}.editor-media-placeholder__button .dashicon{vertical-align:middle;margin-bottom:3px}.editor-media-placeholder__button:hover{color:#23282d}.components-form-file-upload .editor-media-placeholder__button{margin-right:4px}.editor-multi-selection-inspector__card{display:flex;align-items:flex-start;margin:-16px;padding:16px}.editor-multi-selection-inspector__card-content{flex-grow:1}.editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.editor-multi-selection-inspector__card-description{font-size:13px}.editor-multi-selection-inspector__card .editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-panel-color-settings .component-color-indicator{vertical-align:text-bottom}.editor-panel-color-settings__panel-title .component-color-indicator{display:inline-block}.editor-panel-color-settings.is-opened .editor-panel-color-settings__panel-title .component-color-indicator{display:none}.block-editor .editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{margin:0}.editor-post-featured-image .components-button+.components-button{margin-top:1em;margin-right:8px}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #00a0d2}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #00a0d2}.editor-post-featured-image__toggle{border:1px dashed #a2aab2;background-color:#edeff0;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background-color:#f8f9f9}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:right;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-right:5px}.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:active,.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:hover{border:none;box-shadow:none}.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-post-locked-modal{height:auto;padding-right:10px;padding-left:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-right:5px}.editor-post-locked-modal__avatar{float:left;margin:5px;margin-right:15px}.editor-post-permalink{display:inline-flex;align-items:center;background:#fff;padding:5px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;height:40px;white-space:nowrap;border:1px solid rgba(145,151,162,.25);background-clip:padding-box;margin-left:-15px;margin-right:-15px}@media (min-width:600px){.editor-post-permalink{margin-left:-1px;margin-right:-1px}}.editor-post-permalink button{flex-shrink:0}.editor-post-permalink__copy{border-radius:4px;padding:6px}.editor-post-permalink__copy.is-copied{opacity:.3}.editor-post-permalink__label{margin:0 10px 0 5px;font-weight:600}.editor-post-permalink__link{color:#7e8993;text-decoration:underline;margin-right:10px;width:100%;overflow:hidden;position:relative;white-space:nowrap}.editor-post-permalink__link::after{content:"";display:block;position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;background:linear-gradient(to right,rgba(255,255,255,0),#fff 90%);top:1px;bottom:1px;right:1px;left:auto;width:20%;height:auto}.editor-post-permalink-editor{width:100%;min-width:20%;display:inline-flex;align-items:center}.editor-post-permalink-editor .editor-post-permalink__editor-container{flex:0 1 100%;display:flex;overflow:hidden;padding:1px 0}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 1 auto}@media (min-width:600px){.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 0 auto}}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__edit{flex:1 1 100%}.editor-post-permalink-editor .editor-post-permalink-editor__save{margin-left:auto}.editor-post-permalink-editor__prefix{color:#6c7781;min-width:20%;overflow:hidden;position:relative;white-space:nowrap;text-overflow:ellipsis}.editor-post-permalink input[type=text].editor-post-permalink-editor__edit{min-width:10%;width:100%;margin:0 3px;padding:2px 4px}.editor-post-permalink-editor__suffix{color:#6c7781;margin-right:6px;flex:0 0 0%}.editor-post-publish-panel{background:#fff;color:#555d66}.editor-post-publish-panel__content{min-height:calc(100% - 140px)}.editor-post-publish-panel__content .components-spinner{display:block;float:none;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-left:16px;height:56px;border-bottom:1px solid #e2e4e7;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header-publish-button{display:flex;justify-content:flex-end;flex-grow:1;text-align:right;flex-wrap:nowrap}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-right:-4px}.editor-post-publish-panel__link{color:#007fac;font-weight:400;padding-left:4px;text-decoration:underline}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#191e23}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e2e4e7;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#e8eaeb;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;color:#a2aab2;overflow:hidden}.editor-post-saved-state.is-saving{animation:edit-post__loading-fade-animation .5s infinite}.editor-post-saved-state .dashicon{display:inline-block;flex:0 0 auto}.editor-post-saved-state{width:28px;white-space:nowrap;padding:12px 4px}.editor-post-saved-state .dashicon{margin-right:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state .dashicon{margin-right:4px}}.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft{margin:0}@media (min-width:600px){.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft .dashicon{display:none}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-input[type=checkbox]{margin-top:0}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-left:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.editor-post-text-editor{border:1px solid #e2e4e7;display:block;margin:0 0 2em;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;line-height:150%}.editor-post-text-editor:focus,.editor-post-text-editor:hover{border:1px solid #e2e4e7;box-shadow:none;outline:1px solid #e2e4e7;outline-offset:-2px}.editor-post-text-editor__toolbar{display:flex;flex-direction:row;flex-wrap:wrap}.editor-post-text-editor__toolbar button{height:30px;background:0 0;padding:0 8px;margin:3px 4px;text-align:center;cursor:pointer;font-family:Menlo,Consolas,monaco,monospace;color:#555d66;border:1px solid transparent}.editor-post-text-editor__toolbar button:first-child{margin-left:0}.editor-post-text-editor__toolbar button:focus,.editor-post-text-editor__toolbar button:hover{outline:0;border:1px solid #555d66}.editor-post-text-editor__bold{font-weight:600}.editor-post-text-editor__italic{font-style:italic}.editor-post-text-editor__link{text-decoration:underline;color:#0085ba}body.admin-color-sunrise .editor-post-text-editor__link{color:#d1864a}body.admin-color-ocean .editor-post-text-editor__link{color:#a3b9a2}body.admin-color-midnight .editor-post-text-editor__link{color:#e14d43}body.admin-color-ectoplasm .editor-post-text-editor__link{color:#a7b656}body.admin-color-coffee .editor-post-text-editor__link{color:#c2a68c}body.admin-color-blue .editor-post-text-editor__link{color:#82b4cb}body.admin-color-light .editor-post-text-editor__link{color:#0085ba}.editor-post-text-editor__del{text-decoration:line-through}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-fieldset{padding:4px;padding-top:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio{margin-top:2px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info{margin-top:0;margin-left:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input{margin-left:28px}.edit-post-post-visibility__dialog.components-popover.is-bottom{z-index:100001}.editor-post-title__block{position:relative;padding:5px 0;font-size:16px}@media (min-width:600px){.editor-post-title__block{padding:5px 2px}}.editor-post-title__block .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:0 0;font-family:"Noto Serif",serif;line-height:1.4;color:#191e23;transition:border .1s ease-out;padding:19px 14px;word-break:keep-all;border:1px solid transparent;border-left-width:0;border-right-width:0;font-size:2.441em;font-weight:600}@media (min-width:600px){.editor-post-title__block .editor-post-title__input{border-width:1px}}.editor-post-title__block .editor-post-title__input::-webkit-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input::-moz-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input:-ms-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:rgba(145,151,162,.25)}.is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:rgba(255,255,255,.3)}.editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#007cba}body.admin-color-sunrise .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#837425}body.admin-color-ocean .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#5e7d5e}body.admin-color-midnight .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#497b8d}body.admin-color-ectoplasm .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#523f6d}body.admin-color-coffee .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#59524c}body.admin-color-blue .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#417e9b}body.admin-color-light .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#007cba}.editor-post-title__block.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}.editor-post-title__block.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-title .editor-post-permalink{font-size:13px;color:#191e23;position:absolute;top:-34px;left:0;right:0}@media (min-width:600px){.editor-post-title .editor-post-permalink{left:2px;right:2px}}.editor-post-trash.components-button{width:100%;color:#c92c2c;justify-content:center}.editor-post-trash.components-button:focus,.editor-post-trash.components-button:hover{color:#b52727}.editor-format-toolbar{display:flex;flex-shrink:0}.editor-format-toolbar__selection-position{position:absolute;transform:translateX(-50%)}.editor-rich-text{position:relative}.editor-rich-text__tinymce{margin:0;position:relative;line-height:1.8;white-space:pre-wrap}.editor-rich-text__tinymce>p:empty{min-height:28.8px}.editor-rich-text__tinymce>p:first-child{margin-top:0}.editor-rich-text__tinymce:focus{outline:0}.editor-rich-text__tinymce a{color:#007fac}.editor-rich-text__tinymce code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:inherit}.is-multi-selected .editor-rich-text__tinymce code{background:#67cffd}.editor-rich-text__tinymce:focus a[data-mce-selected],.editor-rich-text__tinymce:focus b[data-mce-selected],.editor-rich-text__tinymce:focus del[data-mce-selected],.editor-rich-text__tinymce:focus em[data-mce-selected],.editor-rich-text__tinymce:focus i[data-mce-selected],.editor-rich-text__tinymce:focus ins[data-mce-selected],.editor-rich-text__tinymce:focus strong[data-mce-selected],.editor-rich-text__tinymce:focus sub[data-mce-selected],.editor-rich-text__tinymce:focus sup[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e8eaeb;background:#e8eaeb;color:#191e23}.editor-rich-text__tinymce:focus a[data-mce-selected]{box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa;color:#006589}.editor-rich-text__tinymce:focus code[data-mce-selected]{background:#e8eaeb;box-shadow:0 0 0 1px #e8eaeb}.editor-rich-text__tinymce img[data-mce-selected]{outline:0}.editor-rich-text__tinymce img::-moz-selection{background:0 0!important}.editor-rich-text__tinymce img::selection{background:0 0!important}.editor-rich-text__tinymce[data-is-placeholder-visible=true]{position:absolute;top:0;width:100%;margin-top:0;height:100%}.editor-rich-text__tinymce[data-is-placeholder-visible=true]>p{margin-top:0}.editor-rich-text__tinymce+.editor-rich-text__tinymce{pointer-events:none}.editor-rich-text__tinymce+.editor-rich-text__tinymce,.editor-rich-text__tinymce+.editor-rich-text__tinymce p{opacity:.62}.editor-rich-text__tinymce[data-is-placeholder-visible=true]+figcaption.editor-rich-text__tinymce{opacity:.8}.editor-rich-text__inline-toolbar{display:flex;justify-content:center;position:absolute;top:-40px;line-height:0;left:0;right:0;z-index:1}.editor-rich-text__inline-toolbar ul.components-toolbar{box-shadow:0 2px 10px rgba(25,30,35,.1),0 0 2px rgba(25,30,35,.1)}[data-rich-text-script]{display:inline}[data-rich-text-script]::before{content:"";background:#ff0}.editor-skip-to-selected-block{position:absolute;top:-9999em}.editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#11a0d2;line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:0;z-index:100000}body.admin-color-sunrise .editor-skip-to-selected-block:focus{color:#c8b03c}body.admin-color-ocean .editor-skip-to-selected-block:focus{color:#a89d8a}body.admin-color-midnight .editor-skip-to-selected-block:focus{color:#77a6b9}body.admin-color-ectoplasm .editor-skip-to-selected-block:focus{color:#c77430}body.admin-color-coffee .editor-skip-to-selected-block:focus{color:#9fa47b}body.admin-color-blue .editor-skip-to-selected-block:focus{color:#d9ab59}body.admin-color-light .editor-skip-to-selected-block:focus{color:#c75726}.table-of-contents__popover.components-popover:not(.is-mobile) .components-popover__content{min-width:380px}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__counts{display:flex;flex-wrap:wrap}.table-of-contents__count{width:25%;display:flex;flex-direction:column;font-size:13px;color:#6c7781}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#555d66}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-left:5px}.components-popover .editor-url-input,.editor-block-list__block .editor-url-input,.editor-url-input{flex-grow:1;position:relative;padding:1px}.components-popover .editor-url-input input[type=text],.editor-block-list__block .editor-url-input input[type=text],.editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-left:0;margin-right:0}@media (min-width:600px){.components-popover .editor-url-input input[type=text],.editor-block-list__block .editor-url-input input[type=text],.editor-url-input input[type=text]{width:300px}}.components-popover .editor-url-input input[type=text]::-ms-clear,.editor-block-list__block .editor-url-input input[type=text]::-ms-clear,.editor-url-input input[type=text]::-ms-clear{display:none}.components-popover .editor-url-input .components-spinner,.editor-block-list__block .editor-url-input .components-spinner,.editor-url-input .components-spinner{position:absolute;right:8px;top:9px;margin:0}.editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}.editor-url-input .components-spinner,.editor-url-input__suggestions{display:none}@media (min-width:600px){.editor-url-input .components-spinner,.editor-url-input__suggestions{display:inherit}}.editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:left;border:none;box-shadow:none}.editor-url-input__suggestion:hover{background:#e2e4e7}.editor-url-input__suggestion.is-selected,.editor-url-input__suggestion:focus{background:#00719e;color:#fff;outline:0}body.admin-color-sunrise .editor-url-input__suggestion.is-selected,body.admin-color-sunrise .editor-url-input__suggestion:focus{background:#b2723f}body.admin-color-ocean .editor-url-input__suggestion.is-selected,body.admin-color-ocean .editor-url-input__suggestion:focus{background:#8b9d8a}body.admin-color-midnight .editor-url-input__suggestion.is-selected,body.admin-color-midnight .editor-url-input__suggestion:focus{background:#bf4139}body.admin-color-ectoplasm .editor-url-input__suggestion.is-selected,body.admin-color-ectoplasm .editor-url-input__suggestion:focus{background:#8e9b49}body.admin-color-coffee .editor-url-input__suggestion.is-selected,body.admin-color-coffee .editor-url-input__suggestion:focus{background:#a58d77}body.admin-color-blue .editor-url-input__suggestion.is-selected,body.admin-color-blue .editor-url-input__suggestion:focus{background:#6f99ad}body.admin-color-light .editor-url-input__suggestion.is-selected,body.admin-color-light .editor-url-input__suggestion:focus{background:#00719e}.components-toolbar>.editor-url-input__button{position:inherit}.editor-url-input__button .editor-url-input__back{margin-right:4px;overflow:visible}.editor-url-input__button .editor-url-input__back::after{content:"";position:absolute;display:block;width:1px;height:24px;right:-1px;background:#e2e4e7}.editor-url-input__button-modal{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff}.editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.editor-url-popover__row{display:flex}.editor-url-popover__row>:not(.editor-url-popover__settings-toggle){flex-grow:1}.editor-url-popover__settings-toggle{flex-shrink:0;width:36px;height:36px}.editor-url-popover__settings-toggle .dashicon{transform:rotate(90deg)}.editor-url-popover__settings{padding:7px 8px;border-top:1px solid #e2e4e7;padding-top:8px}.editor-warning{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:nowrap;background-color:#fff;border:1px solid #e2e4e7;text-align:left;padding:20px}.has-warning.is-multi-selected .editor-warning{background-color:transparent}.editor-warning .editor-warning__message{line-height:1.4;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px}.editor-warning .editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:center;width:100%}.editor-warning .editor-warning__actions{display:flex}.editor-warning .editor-warning__action{margin:0 6px 0 0}.editor-warning__secondary{margin:3px 0 0 -4px}.editor-warning__secondary .components-icon-button{width:auto;padding:8px 2px}@media (min-width:600px){.editor-warning__secondary{margin-left:4px}.editor-warning__secondary .components-icon-button{padding:8px 4px}}.editor-warning__secondary .components-button svg{transform:rotate(90deg)}.editor-writing-flow{height:100%;display:flex;flex-direction:column}.editor-writing-flow__click-redirect{flex-basis:100%;cursor:text} \ No newline at end of file diff --git a/wp-includes/js/dist/block-library.js b/wp-includes/js/dist/block-library.js index 9f8c856da0..a60918a4ff 100644 --- a/wp-includes/js/dist/block-library.js +++ b/wp-includes/js/dist/block-library.js @@ -87,6 +87,13 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockLibrary"] = /************************************************************************/ /******/ ({ +/***/ "1CF3": +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["dom"]; }()); + +/***/ }), + /***/ "1OyB": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -11099,6 +11106,9 @@ var list_settings = { } }; +// EXTERNAL MODULE: external {"this":["wp","dom"]} +var external_this_wp_dom_ = __webpack_require__("1CF3"); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/missing/index.js @@ -11112,6 +11122,7 @@ var list_settings = { + function MissingBlockWarning(_ref) { var attributes = _ref.attributes, convertToHTML = _ref.convertToHTML; @@ -11136,7 +11147,7 @@ function MissingBlockWarning(_ref) { return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["Warning"], { actions: actions - }, messageHTML), Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, originalUndelimitedContent)); + }, messageHTML), Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, Object(external_this_wp_dom_["safeHTML"])(originalUndelimitedContent))); } var missing_edit = Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { @@ -12360,7 +12371,7 @@ var shortcode_settings = { attributes: { text: { type: 'string', - source: 'html' + source: 'text' } }, transforms: { diff --git a/wp-includes/js/dist/block-library.min.js b/wp-includes/js/dist/block-library.min.js index 2b40a761a4..c15c040e2a 100644 --- a/wp-includes/js/dist/block-library.min.js +++ b/wp-includes/js/dist/block-library.min.js @@ -1,9 +1,9 @@ -this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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="K51g")}({"1OyB":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},"1ZqX":function(e,t){!function(){e.exports=this.wp.data}()},"25BE":function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},"4JlD":function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,i){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?a(c(e),(function(c){var i=encodeURIComponent(r(c))+n;return o(e[c])?a(e[c],(function(e){return i+encodeURIComponent(r(e))})).join(t):i+encodeURIComponent(r(e[c]))})).join(t):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),b=["%","/","?",";","#"].concat(u),m=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},f=n("s4NR");function j(e,t,n){if(e&&o.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),i=-1!==a&&a127?A+="x":A+=B[I];if(!A.match(d)){var L=N.slice(0,x),M=N.slice(x+1),z=B.match(h);z&&(L.push(z[1]),M.unshift(z[2])),M.length&&(j="/"+M.join(".")+j),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var H=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+H,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==j[0]&&(j="/"+j))}if(!p[k])for(x=0,R=u.length;x0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=w.slice(-1)[0],_=(n.host||e.host||w.length>1)&&("."===C||".."===C)||""===C,x=0,S=w.length;S>=0;S--)"."===(C=w[S])?w.splice(S,1):".."===C?(w.splice(S,1),x++):x&&(w.splice(S,1),x--);if(!y&&!k)for(;x--;x)w.unshift("..");!y||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),_&&"/"!==w.join("/").substr(-1)&&w.push("");var T,N=""===w[0]||w[0]&&"/"===w[0].charAt(0);E&&(n.hostname=n.host=N?"":w.length?w.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift()));return(y=y||n.host&&w.length)&&!N&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},DSFK:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},Ff2n:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},FqII:function(e,t){!function(){e.exports=this.wp.date}()},GRId:function(e,t){!function(){e.exports=this.wp.element}()},GYWy:function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(a){t&&t.nodeType,e&&e.nodeType;var c="object"==typeof r&&r;c.global!==c&&c.window!==c&&c.self;var i,l=2147483647,s=/^xn--/,u=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,h=String.fromCharCode;function p(e){throw new RangeError(m[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function O(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(b,".")).split("."),t).join(".")}function f(e){for(var t,n,r=[],o=0,a=e.length;o=55296&&t<=56319&&o65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function v(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function y(e,t,n){var r=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;r+=36)e=d(e/35);return d(r+36*e/(e+38))}function k(e){var t,n,r,o,a,c,i,s,u,b,m,h=[],g=e.length,O=0,f=128,v=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r=128&&p("not-basic"),h.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=g&&p("invalid-input"),((s=(m=e.charCodeAt(o++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:36)>=36||s>d((l-O)/c))&&p("overflow"),O+=s*c,!(s<(u=i<=v?1:i>=v+26?26:i-v));i+=36)c>d(l/(b=36-u))&&p("overflow"),c*=b;v=y(O-a,t=h.length+1,0==a),d(O/t)>l-f&&p("overflow"),f+=d(O/t),O%=t,h.splice(O++,0,f)}return j(h)}function w(e){var t,n,r,o,a,c,i,s,u,b,m,g,O,j,k,w=[];for(g=(e=f(e)).length,t=128,n=0,a=72,c=0;c=t&&md((l-n)/(O=r+1))&&p("overflow"),n+=(i-t)*O,t=i,c=0;cl&&p("overflow"),m==t){for(s=n,u=36;!(s<(b=u<=a?1:u>=a+26?26:u-a));u+=36)k=s-b,j=36-b,w.push(h(v(b+k%j,0))),s=d(k/j);w.push(h(v(s,0))),a=y(n,O,r==o),n=0,++r}++n,++t}return w.join("")}i={version:"1.4.1",ucs2:{decode:f,encode:j},decode:k,encode:w,toASCII:function(e){return O(e,(function(e){return u.test(e)?"xn--"+w(e):e}))},toUnicode:function(e){return O(e,(function(e){return s.test(e)?k(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n("YuTi")(e),n("yLpj"))},HSyU:function(e,t){!function(){e.exports=this.wp.blocks}()},JX7q:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},Ji7U:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},K51g:function(e,t,n){"use strict";n.r(t),n.d(t,"registerCoreBlocks",(function(){return co}));var r={};n.r(r),n.d(r,"name",(function(){return be})),n.d(r,"settings",(function(){return me}));var o={};n.r(o),n.d(o,"name",(function(){return Qe})),n.d(o,"settings",(function(){return et}));var a={};n.r(a),n.d(a,"getLevelFromHeadingNodeName",(function(){return rt})),n.d(a,"name",(function(){return it})),n.d(a,"settings",(function(){return lt}));var c={};n.r(c),n.d(c,"name",(function(){return bt})),n.d(c,"settings",(function(){return mt}));var i={};n.r(i),n.d(i,"name",(function(){return wt})),n.d(i,"settings",(function(){return Ct}));var l={};n.r(l),n.d(l,"name",(function(){return _t})),n.d(l,"settings",(function(){return xt}));var s={};n.r(s),n.d(s,"name",(function(){return Rt})),n.d(s,"settings",(function(){return Bt}));var u={};n.r(u),n.d(u,"name",(function(){return zt})),n.d(u,"settings",(function(){return Dt}));var b={};n.r(b),n.d(b,"name",(function(){return Vt})),n.d(b,"settings",(function(){return Wt}));var m={};n.r(m),n.d(m,"name",(function(){return qt})),n.d(m,"settings",(function(){return Gt}));var d={};n.r(d),n.d(d,"name",(function(){return Jt})),n.d(d,"settings",(function(){return Zt}));var h={};n.r(h),n.d(h,"name",(function(){return Xt})),n.d(h,"settings",(function(){return en}));var p={};n.r(p),n.d(p,"name",(function(){return rn})),n.d(p,"settings",(function(){return an}));var g={};n.r(g),n.d(g,"name",(function(){return jn})),n.d(g,"settings",(function(){return vn})),n.d(g,"common",(function(){return yn})),n.d(g,"others",(function(){return kn}));var O={};n.r(O),n.d(O,"name",(function(){return xn})),n.d(O,"settings",(function(){return Sn}));var f={};n.r(f),n.d(f,"name",(function(){return Tn})),n.d(f,"settings",(function(){return Nn}));var j={};n.r(j),n.d(j,"name",(function(){return Mn})),n.d(j,"settings",(function(){return Hn}));var v={};n.r(v),n.d(v,"name",(function(){return Fn})),n.d(v,"settings",(function(){return Un}));var y={};n.r(y),n.d(y,"name",(function(){return $n})),n.d(y,"settings",(function(){return Jn}));var k={};n.r(k),n.d(k,"name",(function(){return tr})),n.d(k,"settings",(function(){return nr}));var w={};n.r(w),n.d(w,"name",(function(){return or})),n.d(w,"settings",(function(){return ar}));var E={};n.r(E),n.d(E,"name",(function(){return ir})),n.d(E,"settings",(function(){return lr}));var C={};n.r(C),n.d(C,"name",(function(){return sr})),n.d(C,"settings",(function(){return ur}));var _={};n.r(_),n.d(_,"name",(function(){return br})),n.d(_,"settings",(function(){return mr}));var x={};n.r(x),n.d(x,"name",(function(){return Or})),n.d(x,"settings",(function(){return fr}));var S={};n.r(S),n.d(S,"name",(function(){return Er})),n.d(S,"settings",(function(){return Cr}));var T={};n.r(T),n.d(T,"name",(function(){return _r})),n.d(T,"settings",(function(){return xr}));var N={};n.r(N),n.d(N,"name",(function(){return Tr})),n.d(N,"settings",(function(){return Nr}));var R={};n.r(R),n.d(R,"name",(function(){return Rr})),n.d(R,"settings",(function(){return Br}));var B={};n.r(B),n.d(B,"name",(function(){return Pr})),n.d(B,"settings",(function(){return Lr}));var A={};n.r(A),n.d(A,"name",(function(){return Ur})),n.d(A,"settings",(function(){return Vr}));var I={};n.r(I),n.d(I,"name",(function(){return Wr})),n.d(I,"settings",(function(){return qr}));var P={};n.r(P),n.d(P,"name",(function(){return Gr})),n.d(P,"settings",(function(){return Kr}));var L={};n.r(L),n.d(L,"name",(function(){return Yr})),n.d(L,"settings",(function(){return Qr}));var M={};n.r(M),n.d(M,"name",(function(){return eo})),n.d(M,"settings",(function(){return to}));var z={};n.r(z),n.d(z,"name",(function(){return oo})),n.d(z,"settings",(function(){return ao}));var H=n("KQm4"),D=(n("jZUy"),n("HSyU")),F=n("rePB"),U=n("vpQ4"),V=n("GRId"),W=n("TSYQ"),q=n.n(W),G=n("YLtl"),K=n("l3Sj"),Y=n("jSdM"),Q=n("tI+e"),$=n("wx14"),J=n("1OyB"),Z=n("vuIU"),X=n("md7G"),ee=n("foSv"),te=n("Ji7U"),ne=n("JX7q"),re=n("K9lf"),oe=n("1ZqX"),ae=window.getComputedStyle,ce=Object(Q.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,a=n.fontSize,c=n.customFontSize,i=e.querySelector('[contenteditable="true"]'),l=i?ae(i):null;return{fallbackBackgroundColor:o||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:a||c||!l?void 0:parseInt(l.fontSize)||void 0}})),ie=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).onReplace=e.onReplace.bind(Object(ne.a)(Object(ne.a)(e))),e.toggleDropCap=e.toggleDropCap.bind(Object(ne.a)(Object(ne.a)(e))),e.splitBlock=e.splitBlock.bind(Object(ne.a)(Object(ne.a)(e))),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"onReplace",value:function(e){var t=this.props,n=t.attributes,r=t.onReplace;r(e.map((function(e,t){return 0===t&&"core/paragraph"===e.name?Object(U.a)({},e,{attributes:Object(U.a)({},n,e.attributes)}):e})))}},{key:"toggleDropCap",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({dropCap:!t.dropCap})}},{key:"getDropCapHelp",value:function(e){return e?Object(K.__)("Showing large initial letter."):Object(K.__)("Toggle to show a large initial letter.")}},{key:"splitBlock",value:function(e,t){for(var n=this.props,r=n.attributes,o=n.insertBlocksAfter,a=n.setAttributes,c=n.onReplace,i=arguments.length,l=new Array(i>2?i-2:0),s=2;s1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))},ze=function(e){return Object(G.includes)(e,'class="wp-embedded-content" data-secret')},He=function(e,t){var n=e.preview,r=e.name,o=e.attributes.url;if(o){var a=function(e){for(var t=Object(H.a)(Re).concat(Object(H.a)(Be)),n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n){for(var r={"wp-has-aspect-ratio":!1},o=0;o=b.ratio)return Le()(t,(u={},Object(F.a)(u,b.className,n),Object(F.a)(u,"wp-has-aspect-ratio",n),u))}return t}function Fe(e,t){var n=Object(V.createElement)("a",{href:e},e);t(Object(D.createBlock)("core/paragraph",{content:Object(V.renderToString)(n)}))}var Ue=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(ne.a)(Object(ne.a)(e))),e.calculateSize=e.calculateSize.bind(Object(ne.a)(Object(ne.a)(e))),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(e){this.props.src!==e.src&&(this.setState({width:void 0,height:void 0}),this.fetchImageSize()),this.props.dirtynessTrigger!==e.dirtynessTrigger&&this.calculateSize()}},{key:"componentDidMount",value:function(){this.fetchImageSize()}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.onload=G.noop)}},{key:"fetchImageSize",value:function(){this.image=new window.Image,this.image.onload=this.calculateSize,this.image.src=this.props.src}},{key:"calculateSize",value:function(){var e=this.container.clientWidth,t=this.image.width>e,n=this.image.height/this.image.width,r=t?e:this.image.width,o=t?e*n:this.image.height;this.setState({width:r,height:o})}},{key:"render",value:function(){var e={imageWidth:this.image&&this.image.width,imageHeight:this.image&&this.image.height,containerWidth:this.container&&this.container.clientWidth,containerHeight:this.container&&this.container.clientHeight,imageWidthWithinContainer:this.state.width,imageHeightWithinContainer:this.state.height};return Object(V.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}(V.Component),Ve=Object(re.withGlobalEvents)({resize:"calculateSize"})(Ue),We=["image"],qe=function(e){var t=Object(G.pick)(e,["alt","id","link","caption"]);return t.url=Object(G.get)(e,["sizes","large","url"])||Object(G.get)(e,["media_details","sizes","large","source_url"])||e.url,t},Ge=function(e,t){return!e&&Object(de.isBlobURL)(t)},Ke=function(e){function t(e){var n,r=e.attributes;return Object(J.a)(this,t),(n=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).updateAlt=n.updateAlt.bind(Object(ne.a)(Object(ne.a)(n))),n.updateAlignment=n.updateAlignment.bind(Object(ne.a)(Object(ne.a)(n))),n.onFocusCaption=n.onFocusCaption.bind(Object(ne.a)(Object(ne.a)(n))),n.onImageClick=n.onImageClick.bind(Object(ne.a)(Object(ne.a)(n))),n.onSelectImage=n.onSelectImage.bind(Object(ne.a)(Object(ne.a)(n))),n.onSelectURL=n.onSelectURL.bind(Object(ne.a)(Object(ne.a)(n))),n.updateImageURL=n.updateImageURL.bind(Object(ne.a)(Object(ne.a)(n))),n.updateWidth=n.updateWidth.bind(Object(ne.a)(Object(ne.a)(n))),n.updateHeight=n.updateHeight.bind(Object(ne.a)(Object(ne.a)(n))),n.updateDimensions=n.updateDimensions.bind(Object(ne.a)(Object(ne.a)(n))),n.onSetCustomHref=n.onSetCustomHref.bind(Object(ne.a)(Object(ne.a)(n))),n.onSetLinkClass=n.onSetLinkClass.bind(Object(ne.a)(Object(ne.a)(n))),n.onSetLinkRel=n.onSetLinkRel.bind(Object(ne.a)(Object(ne.a)(n))),n.onSetLinkDestination=n.onSetLinkDestination.bind(Object(ne.a)(Object(ne.a)(n))),n.onSetNewTab=n.onSetNewTab.bind(Object(ne.a)(Object(ne.a)(n))),n.getFilename=n.getFilename.bind(Object(ne.a)(Object(ne.a)(n))),n.toggleIsEditing=n.toggleIsEditing.bind(Object(ne.a)(Object(ne.a)(n))),n.onUploadError=n.onUploadError.bind(Object(ne.a)(Object(ne.a)(n))),n.onImageError=n.onImageError.bind(Object(ne.a)(Object(ne.a)(n))),n.state={captionFocused:!1,isEditing:!r.url},n}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.noticeOperations,a=n.id,c=n.url,i=void 0===c?"":c;if(Ge(a,i)){var l=Object(de.getBlobByURL)(i);l&&Object(Y.mediaUpload)({filesList:[l],onFileChange:function(e){var t=Object(he.a)(e,1)[0];r(qe(t))},allowedTypes:We,onError:function(t){o.createErrorNotice(t),e.setState({isEditing:!0})}})}}},{key:"componentDidUpdate",value:function(e){var t=e.attributes,n=t.id,r=t.url,o=void 0===r?"":r,a=this.props.attributes,c=a.id,i=a.url,l=void 0===i?"":i;Ge(n,o)&&!Ge(c,l)&&Object(de.revokeBlobURL)(l),!this.props.isSelected&&e.isSelected&&this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"onUploadError",value:function(e){this.props.noticeOperations.createErrorNotice(e),this.setState({isEditing:!0})}},{key:"onSelectImage",value:function(e){e&&e.url?(this.setState({isEditing:!1}),this.props.setAttributes(Object(U.a)({},qe(e),{width:void 0,height:void 0}))):this.props.setAttributes({url:void 0,alt:void 0,id:void 0,caption:void 0})}},{key:"onSetLinkDestination",value:function(e){var t;t="none"===e?void 0:"media"===e?this.props.image&&this.props.image.source_url||this.props.attributes.url:"attachment"===e?this.props.image&&this.props.image.link:this.props.attributes.href,this.props.setAttributes({linkDestination:e,href:t})}},{key:"onSelectURL",value:function(e){e!==this.props.attributes.url&&this.props.setAttributes({url:e,id:void 0}),this.setState({isEditing:!1})}},{key:"onImageError",value:function(e){var t=He({attributes:{url:e}});void 0!==t&&this.props.onReplace(t)}},{key:"onSetCustomHref",value:function(e){this.props.setAttributes({href:e})}},{key:"onSetLinkClass",value:function(e){this.props.setAttributes({linkClass:e})}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,r=t;n&&!t?r="noreferrer noopener":n||"noreferrer noopener"!==t||(r=void 0),this.props.setAttributes({linkTarget:n,rel:r})}},{key:"onFocusCaption",value:function(){this.state.captionFocused||this.setState({captionFocused:!0})}},{key:"onImageClick",value:function(){this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"updateAlt",value:function(e){this.props.setAttributes({alt:e})}},{key:"updateAlignment",value:function(e){var t=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};this.props.setAttributes(Object(U.a)({},t,{align:e}))}},{key:"updateImageURL",value:function(e){this.props.setAttributes({url:e,width:void 0,height:void 0})}},{key:"updateWidth",value:function(e){this.props.setAttributes({width:parseInt(e,10)})}},{key:"updateHeight",value:function(e){this.props.setAttributes({height:parseInt(e,10)})}},{key:"updateDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(){e.props.setAttributes({width:t,height:n})}}},{key:"getFilename",value:function(e){var t=Object(pe.getPath)(e);if(t)return Object(G.last)(t.split("/"))}},{key:"getLinkDestinationOptions",value:function(){return[{value:"none",label:Object(K.__)("None")},{value:"media",label:Object(K.__)("Media File")},{value:"attachment",label:Object(K.__)("Attachment Page")},{value:"custom",label:Object(K.__)("Custom URL")}]}},{key:"toggleIsEditing",value:function(){this.setState({isEditing:!this.state.isEditing})}},{key:"getImageSizeOptions",value:function(){var e=this.props,t=e.imageSizes,n=e.image;return Object(G.compact)(Object(G.map)(t,(function(e){var t=e.name,r=e.slug,o=Object(G.get)(n,["media_details","sizes",r,"source_url"]);return o?{value:o,label:t}:null})))}},{key:"render",value:function(){var e,t=this,n=this.state.isEditing,r=this.props,o=r.attributes,a=r.setAttributes,c=r.isLargeViewport,i=r.isSelected,l=r.className,s=r.maxWidth,u=r.noticeUI,b=r.toggleSelection,m=r.isRTL,d=o.url,h=o.alt,p=o.caption,g=o.align,O=o.id,f=o.href,j=o.rel,v=o.linkClass,y=o.linkDestination,k=o.width,w=o.height,E=o.linkTarget,C=function(e,t){return t&&!e&&!Object(de.isBlobURL)(t)}(O,d);d&&(e=C?Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Q.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(K.__)("Edit image"),onClick:this.toggleIsEditing,icon:"edit"})):Object(V.createElement)(Y.MediaUploadCheck,null,Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Y.MediaUpload,{onSelect:this.onSelectImage,allowedTypes:We,value:O,render:function(e){var t=e.open;return Object(V.createElement)(Q.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit image"),icon:"edit",onClick:t})}}))));var _=Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.BlockAlignmentToolbar,{value:g,onChange:this.updateAlignment}),e);if(n||!d){var x=C?d:void 0;return Object(V.createElement)(V.Fragment,null,_,Object(V.createElement)(Y.MediaPlaceholder,{icon:"format-image",className:l,onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,notices:u,onError:this.onUploadError,accept:"image/*",allowedTypes:We,value:{id:O,src:x}}))}var S=q()(l,{"is-transient":Object(de.isBlobURL)(d),"is-resized":!!k||!!w,"is-focused":i}),T=-1===["wide","full"].indexOf(g)&&c,N="custom"!==y,R=this.getImageSizeOptions(),B=function(e,n){return Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Image Settings")},Object(V.createElement)(Q.TextareaControl,{label:Object(K.__)("Alt Text (Alternative Text)"),value:h,onChange:t.updateAlt,help:Object(K.__)("Alternative text describes your image to people who can’t see it. Add a short description with its key details.")}),!Object(G.isEmpty)(R)&&Object(V.createElement)(Q.SelectControl,{label:Object(K.__)("Image Size"),value:d,options:R,onChange:t.updateImageURL}),T&&Object(V.createElement)("div",{className:"block-library-image__dimensions"},Object(V.createElement)("p",{className:"block-library-image__dimensions__row"},Object(K.__)("Image Dimensions")),Object(V.createElement)("div",{className:"block-library-image__dimensions__row"},Object(V.createElement)(Q.TextControl,{type:"number",className:"block-library-image__dimensions__width",label:Object(K.__)("Width"),value:void 0!==k?k:"",placeholder:e,min:1,onChange:t.updateWidth}),Object(V.createElement)(Q.TextControl,{type:"number",className:"block-library-image__dimensions__height",label:Object(K.__)("Height"),value:void 0!==w?w:"",placeholder:n,min:1,onChange:t.updateHeight})),Object(V.createElement)("div",{className:"block-library-image__dimensions__row"},Object(V.createElement)(Q.ButtonGroup,{"aria-label":Object(K.__)("Image Size")},[25,50,75,100].map((function(r){var o=Math.round(e*(r/100)),a=Math.round(n*(r/100)),c=k===o&&w===a;return Object(V.createElement)(Q.Button,{key:r,isSmall:!0,isPrimary:c,"aria-pressed":c,onClick:t.updateDimensions(o,a)},r,"%")}))),Object(V.createElement)(Q.Button,{isSmall:!0,onClick:t.updateDimensions()},Object(K.__)("Reset"))))),Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Link Settings")},Object(V.createElement)(Q.SelectControl,{label:Object(K.__)("Link To"),value:y,options:t.getLinkDestinationOptions(),onChange:t.onSetLinkDestination}),"none"!==y&&Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Q.TextControl,{label:Object(K.__)("Link URL"),value:f||"",onChange:t.onSetCustomHref,placeholder:N?void 0:"https://",readOnly:N}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Open in New Tab"),onChange:t.onSetNewTab,checked:"_blank"===E}),Object(V.createElement)(Q.TextControl,{label:Object(K.__)("Link CSS Class"),value:v||"",onChange:t.onSetLinkClass}),Object(V.createElement)(Q.TextControl,{label:Object(K.__)("Link Rel"),value:j||"",onChange:t.onSetLinkRel}))))};return Object(V.createElement)(V.Fragment,null,_,Object(V.createElement)("figure",{className:S},Object(V.createElement)(Ve,{src:d,dirtynessTrigger:g},(function(e){var n,r=e.imageWidthWithinContainer,o=e.imageHeightWithinContainer,c=e.imageWidth,i=e.imageHeight,l=t.getFilename(d);n=h||(l?Object(K.sprintf)(Object(K.__)("This image has an empty alt attribute; its file name is %s"),l):Object(K.__)("This image has an empty alt attribute"));var u=Object(V.createElement)(V.Fragment,null,Object(V.createElement)("img",{src:d,alt:n,onClick:t.onImageClick,onError:function(){return t.onImageError(d)}}),Object(de.isBlobURL)(d)&&Object(V.createElement)(Q.Spinner,null));if(!T||!r)return Object(V.createElement)(V.Fragment,null,B(c,i),Object(V.createElement)("div",{style:{width:k,height:w}},u));var p=k||r,O=w||o,f=c/i,j=c a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},Je={img:{attributes:["src","alt"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},Ze={figure:{require:["img"],children:Object(U.a)({},Je,{a:{attributes:["href","rel","target"],children:Je},figcaption:{children:Object(D.getPhrasingContentSchema)()}})}};function Xe(e,t){var n=document.implementation.createHTMLDocument("").body;n.innerHTML=e;var r=n.firstElementChild;if(r&&"A"===r.nodeName)return r.getAttribute(t)||void 0}var et={title:Object(K.__)("Image"),description:Object(K.__)("Insert an image to make a visual statement."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(V.createElement)(Q.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(V.createElement)(Q.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),category:"common",keywords:["img",Object(K.__)("photo")],attributes:$e,transforms:{from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("img")},schema:Ze,transform:function(e){var t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),r=n?n[1]:void 0,o=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),a=o?Number(o[1]):void 0,c=e.querySelector("a"),i=c&&c.href?"custom":void 0,l=c&&c.href?c.href:void 0,s=c&&c.rel?c.rel:void 0,u=c&&c.className?c.className:void 0,b=Object(D.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:a,linkDestination:i,href:l,rel:s,linkClass:u});return Object(D.createBlock)("core/image",b)}},{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("image/")},transform:function(e){var t=e[0];return Object(D.createBlock)("core/image",{url:Object(de.createBlobURL)(t)})}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,t){var n=t.shortcode,r=document.implementation.createHTMLDocument("").body;return r.innerHTML=n.content,r.removeChild(r.firstElementChild),r.innerHTML.trim()}},href:{shortcode:function(e,t){return Xe(t.shortcode.content,"href")}},rel:{shortcode:function(e,t){return Xe(t.shortcode.content,"rel")}},linkClass:{shortcode:function(e,t){return Xe(t.shortcode.content,"class")}},id:{type:"number",shortcode:function(e){var t=e.named.id;if(t)return parseInt(t.replace("attachment_",""),10)}},align:{type:"string",shortcode:function(e){var t=e.named.align;return(void 0===t?"alignnone":t).replace("align","")}}}}]},getEditWrapperProps:function(e){var t=e.align,n=e.width;if("left"===t||"center"===t||"right"===t||"wide"===t||"full"===t)return{"data-align":t,"data-resized":!!n}},edit:Ye,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,a=n.caption,c=n.align,i=n.href,l=n.rel,s=n.linkClass,u=n.width,b=n.height,m=n.id,d=n.linkTarget,h=q()((t={},Object(F.a)(t,"align".concat(c),c),Object(F.a)(t,"is-resized",u||b),t)),p=Object(V.createElement)("img",{src:r,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b}),g=Object(V.createElement)(V.Fragment,null,i?Object(V.createElement)("a",{className:s,href:i,target:d,rel:l},p):p,!Y.RichText.isEmpty(a)&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:a}));return"left"===c||"right"===c||"center"===c?Object(V.createElement)("div",null,Object(V.createElement)("figure",{className:h},g)):Object(V.createElement)("figure",{className:h},g)},deprecated:[{attributes:$e,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,a=n.caption,c=n.align,i=n.href,l=n.width,s=n.height,u=n.id,b=q()((t={},Object(F.a)(t,"align".concat(c),c),Object(F.a)(t,"is-resized",l||s),t)),m=Object(V.createElement)("img",{src:r,alt:o,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(V.createElement)("figure",{className:b},i?Object(V.createElement)("a",{href:i},m):m,!Y.RichText.isEmpty(a)&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:a}))}},{attributes:$e,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,a=t.align,c=t.href,i=t.width,l=t.height,s=t.id,u=Object(V.createElement)("img",{src:n,alt:r,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(V.createElement)("figure",{className:a?"align".concat(a):null},c?Object(V.createElement)("a",{href:c},u):u,!Y.RichText.isEmpty(o)&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:$e,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,a=t.align,c=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(V.createElement)("img",Object($.a)({src:n,alt:r},s)),b={};return i?b={width:i}:"left"!==a&&"right"!==a||(b={maxWidth:"50%"}),Object(V.createElement)("figure",{className:a?"align".concat(a):null,style:b},c?Object(V.createElement)("a",{href:c},u):u,!Y.RichText.isEmpty(o)&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:o}))}}]},tt=n("Ff2n"),nt=function(e){function t(){return Object(J.a)(this,t),Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"createLevelControl",value:function(e,t,n){return{icon:"heading",title:Object(K.sprintf)(Object(K.__)("Heading %d"),e),isActive:e===t,onClick:function(){return n(e)},subscript:String(e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.minLevel,r=t.maxLevel,o=t.selectedLevel,a=t.onChange;return Object(V.createElement)(Q.Toolbar,{controls:Object(G.range)(n,r).map((function(t){return e.createLevelControl(t,o,a)}))})}}]),t}(V.Component);function rt(e){return Number(e.substr(1))}var ot,at={className:!1,anchor:!0},ct={content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},align:{type:"string"},placeholder:{type:"string"}},it="core/heading",lt={title:Object(K.__)("Heading"),description:Object(K.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:Object(V.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(V.createElement)(Q.Path,{d:"M5 4v3h5.5v12h3V7H19V4z"}),Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"})),category:"common",keywords:[Object(K.__)("title"),Object(K.__)("subtitle")],supports:at,attributes:ct,transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(D.createBlock)("core/heading",{content:t})}},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:{h1:{children:Object(D.getPhrasingContentSchema)()},h2:{children:Object(D.getPhrasingContentSchema)()},h3:{children:Object(D.getPhrasingContentSchema)()},h4:{children:Object(D.getPhrasingContentSchema)()},h5:{children:Object(D.getPhrasingContentSchema)()},h6:{children:Object(D.getPhrasingContentSchema)()}},transform:function(e){return Object(D.createBlock)("core/heading",Object(U.a)({},Object(D.getBlockAttributes)("core/heading",e.outerHTML),{level:rt(e.nodeName)}))}}].concat(Object(H.a)([2,3,4,5,6].map((function(e){return{type:"prefix",prefix:Array(e+1).join("#"),transform:function(t){return Object(D.createBlock)("core/heading",{level:e,content:t})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(D.createBlock)("core/paragraph",{content:t})}}]},deprecated:[{supports:at,attributes:Object(U.a)({},Object(G.omit)(ct,["level"]),{nodeName:{type:"string",source:"property",selector:"h1,h2,h3,h4,h5,h6",property:"nodeName",default:"H2"}}),migrate:function(e){var t=e.nodeName,n=Object(tt.a)(e,["nodeName"]);return Object(U.a)({},n,{level:rt(t)})},save:function(e){var t=e.attributes,n=t.align,r=t.nodeName,o=t.content;return Object(V.createElement)(Y.RichText.Content,{tagName:r.toLowerCase(),style:{textAlign:n},value:o})}}],merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.insertBlocksAfter,a=e.onReplace,c=e.className,i=t.align,l=t.content,s=t.level,u=t.placeholder,b="h"+s;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(nt,{minLevel:2,maxLevel:5,selectedLevel:s,onChange:function(e){return n({level:e})}})),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Heading Settings")},Object(V.createElement)("p",null,Object(K.__)("Level")),Object(V.createElement)(nt,{minLevel:1,maxLevel:7,selectedLevel:s,onChange:function(e){return n({level:e})}}),Object(V.createElement)("p",null,Object(K.__)("Text Alignment")),Object(V.createElement)(Y.AlignmentToolbar,{value:i,onChange:function(e){n({align:e})}}))),Object(V.createElement)(Y.RichText,{identifier:"content",wrapperClassName:"wp-block-heading",tagName:b,value:l,onChange:function(e){return n({content:e})},onMerge:r,unstableOnSplit:o?function(e,t){n({content:e});for(var r=arguments.length,a=new Array(r>2?r-2:0),c=2;c".concat(t,"

")})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(D.createBlock)("core/quote",{value:t,citation:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(D.createBlock)("core/quote",{value:"

".concat(e,"

")})}},{type:"raw",isMatch:function(e){return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every((function(e){return"P"===e.nodeName}))},schema:{blockquote:{children:{p:{children:Object(D.getPhrasingContentSchema)()}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,n=e.citation,r=[];return t&&"

"!==t&&r.push.apply(r,Object(H.a)(Object(st.split)(Object(st.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(D.createBlock)("core/paragraph",{content:Object(st.toHTMLString)({value:e})})})))),n&&"

"!==n&&r.push(Object(D.createBlock)("core/paragraph",{content:n})),0===r.length?Object(D.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,r=Object(tt.a)(e,["value","citation"]);if("

"===t)return Object(D.createBlock)("core/heading",{content:n});var o=Object(st.split)(Object(st.create)({html:t,multilineTag:"p"}),"\u2028"),a=o.slice(1);return[Object(D.createBlock)("core/heading",{content:Object(st.toHTMLString)({value:o[0]})}),Object(D.createBlock)("core/quote",Object(U.a)({},r,{citation:n,value:Object(st.toHTMLString)({value:a.length?Object(st.join)(o.slice(1),"\u2028"):Object(st.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(D.createBlock)("core/pullquote",{value:t,citation:n})}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=e.mergeBlocks,a=e.onReplace,c=e.className,i=t.align,l=t.value,s=t.citation;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.AlignmentToolbar,{value:i,onChange:function(e){n({align:e})}})),Object(V.createElement)("blockquote",{className:c,style:{textAlign:i}},Object(V.createElement)(Y.RichText,{identifier:"value",multiline:!0,value:l,onChange:function(e){return n({value:e})},onMerge:o,onRemove:function(e){var t=!s||0===s.length;!e&&t&&a([])},placeholder:Object(K.__)("Write quote…")}),(!Y.RichText.isEmpty(s)||r)&&Object(V.createElement)(Y.RichText,{identifier:"citation",value:s,onChange:function(e){return n({citation:e})},placeholder:Object(K.__)("Write citation…"),className:"wp-block-quote__citation"})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation;return Object(V.createElement)("blockquote",{style:{textAlign:n||null}},Object(V.createElement)(Y.RichText.Content,{multiline:!0,value:r}),!Y.RichText.isEmpty(o)&&Object(V.createElement)(Y.RichText.Content,{tagName:"cite",value:o}))},merge:function(e,t){var n=t.value,r=t.citation;return n&&"

"!==n?Object(U.a)({},e,{value:e.value+n,citation:e.citation+r}):Object(U.a)({},e,{citation:e.citation+r})},deprecated:[{attributes:Object(U.a)({},ut,{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?Object(U.a)({},Object(G.omit)(e,["style"]),{className:e.className?e.className+" is-style-large":"is-style-large"}):e},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,a=t.style;return Object(V.createElement)("blockquote",{className:2===a?"is-large":"",style:{textAlign:n||null}},Object(V.createElement)(Y.RichText.Content,{multiline:!0,value:r}),!Y.RichText.isEmpty(o)&&Object(V.createElement)(Y.RichText.Content,{tagName:"cite",value:o}))}},{attributes:Object(U.a)({},ut,{citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}}),save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,a=t.style;return Object(V.createElement)("blockquote",{className:"blocks-quote-style-".concat(a),style:{textAlign:n||null}},Object(V.createElement)(Y.RichText.Content,{multiline:!0,value:r}),!Y.RichText.isEmpty(o)&&Object(V.createElement)(Y.RichText.Content,{tagName:"footer",value:o}))}}]},dt=n("RxS6"),ht=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).onImageClick=e.onImageClick.bind(Object(ne.a)(Object(ne.a)(e))),e.onSelectCaption=e.onSelectCaption.bind(Object(ne.a)(Object(ne.a)(e))),e.onKeyDown=e.onKeyDown.bind(Object(ne.a)(Object(ne.a)(e))),e.bindContainer=e.bindContainer.bind(Object(ne.a)(Object(ne.a)(e))),e.state={captionSelected:!1},e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onImageClick",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onKeyDown",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[dt.BACKSPACE,dt.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isSelected,r=t.image,o=t.url;r&&!o&&this.props.setAttributes({url:r.source_url,alt:r.alt_text}),this.state.captionSelected&&!n&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"render",value:function(){var e,t=this.props,n=t.url,r=t.alt,o=t.id,a=t.linkTo,c=t.link,i=t.isSelected,l=t.caption,s=t.onRemove,u=t.setAttributes,b=t["aria-label"];switch(a){case"media":e=n;break;case"attachment":e=c}var m=Object(V.createElement)(V.Fragment,null,Object(V.createElement)("img",{src:n,alt:r,"data-id":o,onClick:this.onImageClick,tabIndex:"0",onKeyDown:this.onImageClick,"aria-label":b}),Object(de.isBlobURL)(n)&&Object(V.createElement)(Q.Spinner,null)),d=q()({"is-selected":i,"is-transient":Object(de.isBlobURL)(n)});return Object(V.createElement)("figure",{className:d,tabIndex:"-1",onKeyDown:this.onKeyDown,ref:this.bindContainer},i&&Object(V.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object(V.createElement)(Q.IconButton,{icon:"no-alt",onClick:s,className:"blocks-gallery-item__remove",label:Object(K.__)("Remove Image")})),e?Object(V.createElement)("a",{href:e},m):m,!Y.RichText.isEmpty(l)||i?Object(V.createElement)(Y.RichText,{tagName:"figcaption",placeholder:Object(K.__)("Write caption…"),value:l,isSelected:this.state.captionSelected,onChange:function(e){return u({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}):null)}}]),t}(V.Component),pt=Object(oe.withSelect)((function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}}))(ht),gt=[{value:"attachment",label:Object(K.__)("Attachment Page")},{value:"media",label:Object(K.__)("Media File")},{value:"none",label:Object(K.__)("None")}],Ot=["image"];function ft(e){return Math.min(3,e.images.length)}var jt=function(e){var t=Object(G.pick)(e,["alt","id","link","caption"]);return t.url=Object(G.get)(e,["sizes","large","url"])||Object(G.get)(e,["media_details","sizes","large","source_url"])||e.url,t},vt=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(ne.a)(Object(ne.a)(e))),e.onSelectImages=e.onSelectImages.bind(Object(ne.a)(Object(ne.a)(e))),e.setLinkTo=e.setLinkTo.bind(Object(ne.a)(Object(ne.a)(e))),e.setColumnsNumber=e.setColumnsNumber.bind(Object(ne.a)(Object(ne.a)(e))),e.toggleImageCrop=e.toggleImageCrop.bind(Object(ne.a)(Object(ne.a)(e))),e.onRemoveImage=e.onRemoveImage.bind(Object(ne.a)(Object(ne.a)(e))),e.setImageAttributes=e.setImageAttributes.bind(Object(ne.a)(Object(ne.a)(e))),e.addFiles=e.addFiles.bind(Object(ne.a)(Object(ne.a)(e))),e.uploadFromFiles=e.uploadFromFiles.bind(Object(ne.a)(Object(ne.a)(e))),e.setAttributes=e.setAttributes.bind(Object(ne.a)(Object(ne.a)(e))),e.state={selectedImage:null},e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=Object(U.a)({},e,{ids:Object(G.map)(e.images,"id")})),this.props.setAttributes(e)}},{key:"onSelectImage",value:function(e){var t=this;return function(){t.state.selectedImage!==e&&t.setState({selectedImage:e})}}},{key:"onRemoveImage",value:function(e){var t=this;return function(){var n=Object(G.filter)(t.props.attributes.images,(function(t,n){return e!==n})),r=t.props.attributes.columns;t.setState({selectedImage:null}),t.setAttributes({images:n,columns:r?Math.min(n.length,r):r})}}},{key:"onSelectImages",value:function(e){this.setAttributes({images:e.map((function(e){return jt(e)}))})}},{key:"setLinkTo",value:function(e){this.setAttributes({linkTo:e})}},{key:"setColumnsNumber",value:function(e){this.setAttributes({columns:e})}},{key:"toggleImageCrop",value:function(){this.setAttributes({imageCrop:!this.props.attributes.imageCrop})}},{key:"getImageCropHelp",value:function(e){return e?Object(K.__)("Thumbnails are cropped to align."):Object(K.__)("Thumbnails are not cropped.")}},{key:"setImageAttributes",value:function(e,t){var n=this.props.attributes.images,r=this.setAttributes;n[e]&&r({images:Object(H.a)(n.slice(0,e)).concat([Object(U.a)({},n[e],t)],Object(H.a)(n.slice(e+1)))})}},{key:"uploadFromFiles",value:function(e){this.addFiles(e.target.files)}},{key:"addFiles",value:function(e){var t=this.props.attributes.images||[],n=this.props.noticeOperations,r=this.setAttributes;Object(Y.mediaUpload)({allowedTypes:Ot,filesList:e,onFileChange:function(e){var n=e.map((function(e){return jt(e)}));r({images:t.concat(n)})},onError:n.createErrorNotice})}},{key:"componentDidUpdate",value:function(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.isSelected,o=t.className,a=t.noticeOperations,c=t.noticeUI,i=n.images,l=n.columns,s=void 0===l?ft(n):l,u=n.align,b=n.imageCrop,m=n.linkTo,d=Object(V.createElement)(Q.DropZone,{onFilesDrop:this.addFiles}),h=Object(V.createElement)(Y.BlockControls,null,!!i.length&&Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Y.MediaUpload,{onSelect:this.onSelectImages,allowedTypes:Ot,multiple:!0,gallery:!0,value:i.map((function(e){return e.id})),render:function(e){var t=e.open;return Object(V.createElement)(Q.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit Gallery"),icon:"edit",onClick:t})}})));return 0===i.length?Object(V.createElement)(V.Fragment,null,h,Object(V.createElement)(Y.MediaPlaceholder,{icon:"format-gallery",className:o,labels:{title:Object(K.__)("Gallery"),instructions:Object(K.__)("Drag images, upload new ones or select files from your library.")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:Ot,multiple:!0,notices:c,onError:a.createErrorNotice})):Object(V.createElement)(V.Fragment,null,h,Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Gallery Settings")},i.length>1&&Object(V.createElement)(Q.RangeControl,{label:Object(K.__)("Columns"),value:s,onChange:this.setColumnsNumber,min:1,max:Math.min(8,i.length)}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Crop Images"),checked:!!b,onChange:this.toggleImageCrop,help:this.getImageCropHelp}),Object(V.createElement)(Q.SelectControl,{label:Object(K.__)("Link To"),value:m,onChange:this.setLinkTo,options:gt}))),c,Object(V.createElement)("ul",{className:"".concat(o," align").concat(u," columns-").concat(s," ").concat(b?"is-cropped":"")},d,i.map((function(t,n){var o=Object(K.__)(Object(K.sprintf)("image %1$d of %2$d in gallery",n+1,i.length));return Object(V.createElement)("li",{className:"blocks-gallery-item",key:t.id||t.url},Object(V.createElement)(pt,{url:t.url,alt:t.alt,id:t.id,isSelected:r&&e.state.selectedImage===n,onRemove:e.onRemoveImage(n),onSelect:e.onSelectImage(n),setAttributes:function(t){return e.setImageAttributes(n,t)},caption:t.caption,"aria-label":o}))})),r&&Object(V.createElement)("li",{className:"blocks-gallery-item has-add-item-button"},Object(V.createElement)(Q.FormFileUpload,{multiple:!0,isLarge:!0,className:"block-library-gallery-add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},Object(K.__)("Upload an image")))))}}]),t}(V.Component),yt=Object(Q.withNotices)(vt),kt={images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},wt="core/gallery",Et=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},Ct={title:Object(K.__)("Gallery"),description:Object(K.__)("Display multiple images in a rich gallery."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M20 4v12H8V4h12m0-2H8L6 4v12l2 2h12l2-2V4l-2-2z"}),Object(V.createElement)(Q.Path,{d:"M12 12l1 2 3-3 3 4H9z"}),Object(V.createElement)(Q.Path,{d:"M2 6v14l2 2h14v-2H4V6H2z"}))),category:"common",keywords:[Object(K.__)("images"),Object(K.__)("photos")],attributes:kt,supports:{align:!0},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=Object(G.every)(e,["align",t])?t:void 0;var n=Object(G.filter)(e,(function(e){var t=e.id,n=e.url;return t&&n}));return Object(D.createBlock)("core/gallery",{images:n.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),ids:n.map((function(e){return e.id})),align:t})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return Et(t).map((function(e){return{id:e}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return Et(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link,n=void 0===t?"attachment":t;return"file"===n?"media":n}}}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(G.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e,t){var n=Object(D.createBlock)("core/gallery",{images:e.map((function(e){return jt({url:Object(de.createBlobURL)(e)})}))});return Object(Y.mediaUpload)({filesList:e,onFileChange:function(e){var r=e.map(jt);t(n.clientId,{ids:Object(G.map)(r,"id"),images:r})},allowedTypes:["image"]}),n}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return t.length>0?t.map((function(e){var t=e.id,r=e.url,o=e.alt,a=e.caption;return Object(D.createBlock)("core/image",{id:t,url:r,alt:o,caption:a,align:n})})):Object(D.createBlock)("core/image",{align:n})}}]},edit:yt,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ft(t):r,a=t.imageCrop,c=t.linkTo;return Object(V.createElement)("ul",{className:"columns-".concat(o," ").concat(a?"is-cropped":"")},n.map((function(e){var t;switch(c){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(V.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(V.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(V.createElement)("figure",null,t?Object(V.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:e.caption})))})))},deprecated:[{attributes:kt,isEligible:function(e){var t=e.images,n=e.ids;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(G.some)(t,(function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]})))},migrate:function(e){return Object(U.a)({},e,{ids:Object(G.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ft(t):r,a=t.imageCrop,c=t.linkTo;return Object(V.createElement)("ul",{className:"columns-".concat(o," ").concat(a?"is-cropped":"")},n.map((function(e){var t;switch(c){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(V.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(V.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(V.createElement)("figure",null,t?Object(V.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:kt,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ft(t):r,a=t.imageCrop,c=t.linkTo;return Object(V.createElement)("ul",{className:"columns-".concat(o," ").concat(a?"is-cropped":"")},n.map((function(e){var t;switch(c){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(V.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link});return Object(V.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(V.createElement)("figure",null,t?Object(V.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:Object(U.a)({},kt,{images:Object(U.a)({},kt.images,{selector:"div.wp-block-gallery figure.blocks-gallery-image img"}),align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ft(t):r,a=t.align,c=t.imageCrop,i=t.linkTo;return Object(V.createElement)("div",{className:"align".concat(a," columns-").concat(o," ").concat(c?"is-cropped":"")},n.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(V.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(V.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(V.createElement)("a",{href:t},n):n)})))}}]};var _t="core/archives",xt={title:Object(K.__)("Archives"),description:Object(K.__)("Display a monthly archive of your posts."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M7 11h2v2H7v-2zm14-5v14l-2 2H5l-2-2V6l2-2h1V2h2v2h8V2h2v2h1l2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"}))),category:"widgets",supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right"].includes(t))return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.align,o=t.showPostCounts,a=t.displayAsDropdown;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Archives Settings")},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Display as Dropdown"),checked:a,onChange:function(){return n({displayAsDropdown:!a})}}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Show Post Counts"),checked:o,onChange:function(){return n({showPostCounts:!o})}}))),Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.BlockAlignmentToolbar,{value:r,onChange:function(e){n({align:e})},controls:["left","center","right"]})),Object(V.createElement)(Q.Disabled,null,Object(V.createElement)(Y.ServerSideRender,{block:"core/archives",attributes:t})))},save:function(){return null}},St=["audio"],Tt=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.toggleAttribute=e.toggleAttribute.bind(Object(ne.a)(Object(ne.a)(e))),e.onSelectURL=e.onSelectURL.bind(Object(ne.a)(Object(ne.a)(e))),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeOperations,o=t.setAttributes,a=n.id,c=n.src,i=void 0===c?"":c;if(!a&&Object(de.isBlobURL)(i)){var l=Object(de.getBlobByURL)(i);l&&Object(Y.mediaUpload)({filesList:[l],onFileChange:function(e){var t=Object(he.a)(e,1)[0],n=t.id,r=t.url;o({id:n,src:r})},onError:function(t){o({src:void 0,id:void 0}),e.setState({editing:!0}),r.createErrorNotice(t)},allowedTypes:St})}}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(F.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=He({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,r=t.caption,o=t.loop,a=t.preload,c=t.src,i=this.props,l=i.setAttributes,s=i.isSelected,u=i.className,b=i.noticeOperations,m=i.noticeUI,d=this.state.editing,h=function(){e.setState({editing:!0})};return d?Object(V.createElement)(Y.MediaPlaceholder,{icon:"media-audio",className:u,onSelect:function(t){if(!t||!t.url)return l({src:void 0,id:void 0}),void h();l({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"audio/*",allowedTypes:St,value:this.props.attributes,notices:m,onError:b.createErrorNotice}):Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Q.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(K.__)("Edit audio"),onClick:h,icon:"edit"}))),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Audio Settings")},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:o}),Object(V.createElement)(Q.SelectControl,{label:Object(K.__)("Preload"),value:void 0!==a?a:"none",onChange:function(e){return l({preload:"none"!==e?e:void 0})},options:[{value:"auto",label:Object(K.__)("Auto")},{value:"metadata",label:Object(K.__)("Metadata")},{value:"none",label:Object(K.__)("None")}]}))),Object(V.createElement)("figure",{className:u},Object(V.createElement)(Q.Disabled,null,Object(V.createElement)("audio",{controls:"controls",src:c})),(!Y.RichText.isEmpty(r)||s)&&Object(V.createElement)(Y.RichText,{tagName:"figcaption",placeholder:Object(K.__)("Write caption…"),value:r,onChange:function(e){return l({caption:e})},inlineToolbar:!0})))}}]),t}(V.Component),Nt=Object(Q.withNotices)(Tt),Rt="core/audio",Bt={title:Object(K.__)("Audio"),description:Object(K.__)("Embed a simple audio player."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(V.createElement)(Q.Path,{d:"m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z"})),category:"common",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},transforms:{from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object(D.createBlock)("core/audio",{src:Object(de.createBlobURL)(t)})}}]},supports:{align:!0},edit:Nt,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,a=t.preload,c=t.src;return Object(V.createElement)("figure",null,Object(V.createElement)("audio",{controls:"controls",src:c,autoPlay:n,loop:o,preload:a}),!Y.RichText.isEmpty(r)&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:r}))}},At=window.getComputedStyle,It=Object(Q.withFallbackStyles)((function(e,t){var n=t.textColor,r=t.backgroundColor,o=r&&r.color,a=n&&n.color,c=!a&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:o||!e?void 0:At(e).backgroundColor,fallbackTextColor:a||!c?void 0:At(c).color}})),Pt=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).nodeRef=null,e.bindRef=e.bindRef.bind(Object(ne.a)(Object(ne.a)(e))),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.backgroundColor,o=t.textColor,a=t.setBackgroundColor,c=t.setTextColor,i=t.fallbackBackgroundColor,l=t.fallbackTextColor,s=t.setAttributes,u=t.isSelected,b=t.className,m=n.text,d=n.url,h=n.title;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)("div",{className:b,title:h,ref:this.bindRef},Object(V.createElement)(Y.RichText,{placeholder:Object(K.__)("Add text…"),value:m,onChange:function(e){return s({text:e})},formattingControls:["bold","italic","strikethrough"],className:q()("wp-block-button__link",(e={"has-background":r.color},Object(F.a)(e,r.class,r.class),Object(F.a)(e,"has-text-color",o.color),Object(F.a)(e,o.class,o.class),e)),style:{backgroundColor:r.color,color:o.color},keepPlaceholderOnFocus:!0}),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Y.PanelColorSettings,{title:Object(K.__)("Color Settings"),colorSettings:[{value:r.color,onChange:a,label:Object(K.__)("Background Color")},{value:o.color,onChange:c,label:Object(K.__)("Text Color")}]},Object(V.createElement)(Y.ContrastChecker,{isLargeText:!1,textColor:o.color,backgroundColor:r.color,fallbackBackgroundColor:i,fallbackTextColor:l})))),u&&Object(V.createElement)("form",{className:"block-library-button__inline-link",onSubmit:function(e){return e.preventDefault()}},Object(V.createElement)(Q.Dashicon,{icon:"admin-links"}),Object(V.createElement)(Y.URLInput,{value:d,onChange:function(e){return s({url:e})}}),Object(V.createElement)(Q.IconButton,{icon:"editor-break",label:Object(K.__)("Apply"),type:"submit"})))}}]),t}(V.Component),Lt=Object(re.compose)([Object(Y.withColors)("backgroundColor",{textColor:"color"}),It])(Pt),Mt={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},zt="core/button",Ht=function(e){return Object(G.omit)(Object(U.a)({},e,{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"])},Dt={title:Object(K.__)("Button"),description:Object(K.__)("Prompt visitors to take action with a custom button."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M19 6H5L3 8v8l2 2h14l2-2V8l-2-2zm0 10H5V8h14v8z"}))),category:"layout",attributes:Mt,supports:{align:!0,alignWide:!1},styles:[{name:"default",label:Object(K._x)("Rounded","block style"),isDefault:!0},{name:"outline",label:Object(K.__)("Outline")},{name:"squared",label:Object(K._x)("Squared","block style")}],edit:Lt,save:function(e){var t,n=e.attributes,r=n.url,o=n.text,a=n.title,c=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=Object(Y.getColorClassName)("color",i),b=Object(Y.getColorClassName)("background-color",c),m=q()("wp-block-button__link",(t={"has-text-color":i||s},Object(F.a)(t,u,u),Object(F.a)(t,"has-background",c||l),Object(F.a)(t,b,b),t)),d={backgroundColor:b?void 0:l,color:u?void 0:s};return Object(V.createElement)("div",null,Object(V.createElement)(Y.RichText.Content,{tagName:"a",className:m,href:r,title:a,style:d,value:o}))},deprecated:[{attributes:Object(U.a)({},Object(G.pick)(Mt,["url","title","text"]),{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,a=t.align,c={backgroundColor:t.color,color:t.textColor};return Object(V.createElement)("div",{className:"align".concat(a)},Object(V.createElement)(Y.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:o,style:c,value:r}))},migrate:Ht},{attributes:Object(U.a)({},Object(G.pick)(Mt,["url","title","text"]),{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,a=t.align,c=t.color,i=t.textColor;return Object(V.createElement)("div",{className:"align".concat(a),style:{backgroundColor:c}},Object(V.createElement)(Y.RichText.Content,{tagName:"a",href:n,title:o,style:{color:i},value:r}))},migrate:Ht}]},Ft=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).toggleDisplayAsDropdown=e.toggleDisplayAsDropdown.bind(Object(ne.a)(Object(ne.a)(e))),e.toggleShowPostCounts=e.toggleShowPostCounts.bind(Object(ne.a)(Object(ne.a)(e))),e.toggleShowHierarchy=e.toggleShowHierarchy.bind(Object(ne.a)(Object(ne.a)(e))),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"toggleDisplayAsDropdown",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({displayAsDropdown:!t.displayAsDropdown})}},{key:"toggleShowPostCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showPostCounts:!t.showPostCounts})}},{key:"toggleShowHierarchy",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showHierarchy:!t.showHierarchy})}},{key:"getCategories",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter((function(t){return t.parent===e})):[]}},{key:"getCategoryListClassName",value:function(e){var t=this.props.className;return"".concat(t,"__list ").concat(t,"__list-level-").concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(G.unescape)(e.name).trim():Object(K.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,n=this.getCategories(t);return Object(V.createElement)("ul",{className:this.getCategoryListClassName(0)},n.map((function(t){return e.renderCategoryListItem(t,0)})))}},{key:"renderCategoryListItem",value:function(e,t){var n=this,r=this.props.attributes,o=r.showHierarchy,a=r.showPostCounts,c=this.getCategories(e.id);return Object(V.createElement)("li",{key:e.id},Object(V.createElement)("a",{href:e.link,target:"_blank"},this.renderCategoryName(e)),a&&Object(V.createElement)("span",{className:"".concat(this.props.className,"__post-count")}," ","(",e.count,")"),o&&!!c.length&&Object(V.createElement)("ul",{className:this.getCategoryListClassName(t+1)},c.map((function(e){return n.renderCategoryListItem(e,t+1)}))))}},{key:"renderCategoryDropdown",value:function(){var e=this,t=this.props,n=t.showHierarchy,r=t.instanceId,o=t.className,a=n?0:null,c=this.getCategories(a),i="blocks-category-select-".concat(r);return Object(V.createElement)(V.Fragment,null,Object(V.createElement)("label",{htmlFor:i,className:"screen-reader-text"},Object(K.__)("Categories")),Object(V.createElement)("select",{id:i,className:"".concat(o,"__dropdown")},c.map((function(t){return e.renderCategoryDropdownItem(t,0)}))))}},{key:"renderCategoryDropdownItem",value:function(e,t){var n=this,r=this.props.attributes,o=r.showHierarchy,a=r.showPostCounts,c=this.getCategories(e.id);return[Object(V.createElement)("option",{key:e.id},Object(G.times)(3*t,(function(){return" "})),this.renderCategoryName(e),a?" (".concat(e.count,")"):""),o&&!!c.length&&c.map((function(e){return n.renderCategoryDropdownItem(e,t+1)}))]}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.isRequesting,o=t.align,a=t.displayAsDropdown,c=t.showHierarchy,i=t.showPostCounts,l=Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Categories Settings")},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Display as Dropdown"),checked:a,onChange:this.toggleDisplayAsDropdown}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Show Hierarchy"),checked:c,onChange:this.toggleShowHierarchy}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Show Post Counts"),checked:i,onChange:this.toggleShowPostCounts})));return r?Object(V.createElement)(V.Fragment,null,l,Object(V.createElement)(Q.Placeholder,{icon:"admin-post",label:Object(K.__)("Categories")},Object(V.createElement)(Q.Spinner,null))):Object(V.createElement)(V.Fragment,null,l,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.BlockAlignmentToolbar,{value:o,onChange:function(e){n({align:e})},controls:["left","center","right","full"]})),Object(V.createElement)("div",{className:this.props.className},a?this.renderCategoryDropdown():this.renderCategoryList()))}}]),t}(V.Component),Ut=Object(re.compose)(Object(oe.withSelect)((function(e){var t=e("core").getEntityRecords,n=e("core/data").isResolving,r={per_page:-1};return{categories:t("taxonomy","category",r),isRequesting:n("core","getEntityRecords",["taxonomy","category",r])}})),re.withInstanceId)(Ft),Vt="core/categories",Wt={title:Object(K.__)("Categories"),description:Object(K.__)("Display a list of all categories."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(V.createElement)(Q.Path,{d:"M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z"}),Object(V.createElement)(Q.Path,{d:"m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),Object(V.createElement)(Q.Path,{d:"m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z"})),category:"widgets",attributes:{align:{type:"string"},displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right","full"].includes(t))return{"data-align":t}},edit:Ut,save:function(){return null}};var qt="core/code",Gt={title:Object(K.__)("Code"),description:Object(K.__)("Display code snippets that respect your spacing and tabs."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(V.createElement)(Q.Path,{d:"M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z"})),category:"formatting",attributes:{content:{type:"string",source:"text",selector:"code"}},supports:{html:!1},transforms:{from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(D.createBlock)("core/code")}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className;return Object(V.createElement)("div",{className:r},Object(V.createElement)(Y.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(K.__)("Write code…"),"aria-label":Object(K.__)("Code")}))},save:function(e){var t=e.attributes;return Object(V.createElement)("pre",null,Object(V.createElement)("code",null,t.content))}},Kt=n("4eJC"),Yt=["core/column"],Qt=n.n(Kt)()((function(e){return Object(G.times)(e,(function(){return["core/column"]}))}));function $t(e){var t,n=$t.doc;n||(n=document.implementation.createHTMLDocument(""),$t.doc=n),n.body.innerHTML=e;var r=!0,o=!1,a=void 0;try{for(var c,i=n.body.firstChild.classList[Symbol.iterator]();!(r=(c=i.next()).done);r=!0){if(t=c.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}}var Jt="core/columns",Zt={title:Object(K.__)("Columns"),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M21 4H3L2 5v14l1 1h18l1-1V5l-1-1zM8 18H4V6h4v12zm6 0h-4V6h4v12zm6 0h-4V6h4v12z"}))),category:"layout",attributes:{columns:{type:"number",default:2}},description:Object(K.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),supports:{align:["wide","full"],html:!1},deprecated:[{attributes:{columns:{type:"number",default:2}},isEligible:function(e,t){return!!t.some((function(e){return/layout-column-\d+/.test(e.originalContent)}))&&t.some((function(e){return void 0!==$t(e.originalContent)}))},migrate:function(e,t){return[e,t.reduce((function(e,t){var n=$t(t.originalContent);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((function(e){return Object(D.createBlock)("core/column",{},e)}))]},save:function(e){var t=e.attributes.columns;return Object(V.createElement)("div",{className:"has-".concat(t,"-columns")},Object(V.createElement)(Y.InnerBlocks.Content,null))}}],edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.columns,a=q()(r,"has-".concat(o,"-columns"));return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,null,Object(V.createElement)(Q.RangeControl,{label:Object(K.__)("Columns"),value:o,onChange:function(e){n({columns:e})},min:2,max:6}))),Object(V.createElement)("div",{className:a},Object(V.createElement)(Y.InnerBlocks,{template:Qt(o),templateLock:"all",allowedBlocks:Yt})))},save:function(e){var t=e.attributes.columns;return Object(V.createElement)("div",{className:"has-".concat(t,"-columns")},Object(V.createElement)(Y.InnerBlocks.Content,null))}},Xt="core/column",en={title:Object(K.__)("Column"),parent:["core/columns"],icon:Object(V.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.Path,{d:"M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"})),description:Object(K.__)("A single column within a columns block."),category:"common",supports:{inserter:!1,reusable:!1,html:!1},edit:function(){return Object(V.createElement)(Y.InnerBlocks,{templateLock:!1})},save:function(){return Object(V.createElement)("div",null,Object(V.createElement)(Y.InnerBlocks.Content,null))}},tn=["left","center","right","wide","full"],nn={title:{type:"string",source:"html",selector:"p"},url:{type:"string"},align:{type:"string"},contentAlign:{type:"string",default:"center"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"}},rn="core/cover",on=["image","video"],an={title:Object(K.__)("Cover"),description:Object(K.__)("Add an image or video with a text overlay — great for headers."),icon:Object(V.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(V.createElement)(Q.Path,{d:"M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z"}),Object(V.createElement)(Q.Path,{d:"M0 0h24v24H0z",fill:"none"})),category:"common",attributes:nn,transforms:{from:[{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(D.createBlock)("core/cover",{title:t})}},{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,n=e.url,r=e.align,o=e.id;return Object(D.createBlock)("core/cover",{title:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,n=e.src,r=e.align,o=e.id;return Object(D.createBlock)("core/cover",{title:t,url:n,align:r,id:o,backgroundType:"video"})}}],to:[{type:"block",blocks:["core/heading"],transform:function(e){var t=e.title;return Object(D.createBlock)("core/heading",{content:t})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType;return!e.url||"image"===t},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(D.createBlock)("core/image",{caption:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType;return!e.url||"video"===t},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(D.createBlock)("core/video",{caption:t,src:n,id:o,align:r})}}]},getEditWrapperProps:function(e){var t=e.align;if(-1!==tn.indexOf(t))return{"data-align":t}},edit:Object(re.compose)([Object(Y.withColors)({overlayColor:"background-color"}),Q.withNotices])((function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=e.className,a=e.noticeOperations,c=e.noticeUI,i=e.overlayColor,l=e.setOverlayColor,s=t.align,u=t.backgroundType,b=t.contentAlign,m=t.dimRatio,d=t.hasParallax,h=t.id,p=t.title,g=t.url,O=function(e){if(e&&e.url){var t;if(e.media_type)t="image"===e.media_type?"image":"video";else{if("image"!==e.type&&"video"!==e.type)return;t=e.type}n({url:e.url,id:e.id,backgroundType:t})}else n({url:void 0,id:void 0})},f=function(e){return n({title:e})},j=Object(U.a)({},"image"===u?ln(g):{},{backgroundColor:i.color}),v=Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.BlockAlignmentToolbar,{value:s,onChange:function(e){return n({align:e})}}),!!g&&Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.AlignmentToolbar,{value:b,onChange:function(e){n({contentAlign:e})}}),Object(V.createElement)(Y.MediaUploadCheck,null,Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Y.MediaUpload,{onSelect:O,allowedTypes:on,value:h,render:function(e){var t=e.open;return Object(V.createElement)(Q.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit media"),icon:"edit",onClick:t})}}))))),!!g&&Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Cover Settings")},"image"===u&&Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Fixed Background"),checked:d,onChange:function(){return n({hasParallax:!d})}}),Object(V.createElement)(Y.PanelColorSettings,{title:Object(K.__)("Overlay"),initialOpen:!0,colorSettings:[{value:i.color,onChange:l,label:Object(K.__)("Overlay Color")}]},Object(V.createElement)(Q.RangeControl,{label:Object(K.__)("Background Opacity"),value:m,onChange:function(e){return n({dimRatio:e})},min:0,max:100,step:10})))));if(!g){var y=!Y.RichText.isEmpty(p),k=y?void 0:"format-image",w=y?Object(V.createElement)(Y.RichText,{tagName:"h2",value:p,onChange:f,inlineToolbar:!0}):Object(K.__)("Cover");return Object(V.createElement)(V.Fragment,null,v,Object(V.createElement)(Y.MediaPlaceholder,{icon:k,className:o,labels:{title:w,instructions:Object(K.__)("Drag an image or a video, upload a new one or select a file from your library.")},onSelect:O,accept:"image/*,video/*",allowedTypes:on,notices:c,onError:a.createErrorNotice}))}var E=q()(o,"center"!==b&&"has-".concat(b,"-content"),cn(m),{"has-background-dim":0!==m,"has-parallax":d});return Object(V.createElement)(V.Fragment,null,v,Object(V.createElement)("div",{"data-url":g,style:j,className:E},"video"===u&&Object(V.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:g}),(!Y.RichText.isEmpty(p)||r)&&Object(V.createElement)(Y.RichText,{tagName:"p",className:"wp-block-cover-text",placeholder:Object(K.__)("Write title…"),value:p,onChange:f,inlineToolbar:!0})))})),save:function(e){var t=e.attributes,n=t.align,r=t.backgroundType,o=t.contentAlign,a=t.customOverlayColor,c=t.dimRatio,i=t.hasParallax,l=t.overlayColor,s=t.title,u=t.url,b=Object(Y.getColorClassName)("background-color",l),m="image"===r?ln(u):{};b||(m.backgroundColor=a);var d=q()(cn(c),b,Object(F.a)({"has-background-dim":0!==c,"has-parallax":i},"has-".concat(o,"-content"),"center"!==o),n?"align".concat(n):null);return Object(V.createElement)("div",{className:d,style:m},"video"===r&&u&&Object(V.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!Y.RichText.isEmpty(s)&&Object(V.createElement)(Y.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},deprecated:[{attributes:Object(U.a)({},nn),supports:{className:!1},save:function(e){var t=e.attributes,n=t.url,r=t.title,o=t.hasParallax,a=t.dimRatio,c=t.align,i=t.contentAlign,l=t.overlayColor,s=t.customOverlayColor,u=Object(Y.getColorClassName)("background-color",l),b=ln(n);u||(b.backgroundColor=s);var m=q()("wp-block-cover-image",cn(a),u,Object(F.a)({"has-background-dim":0!==a,"has-parallax":o},"has-".concat(i,"-content"),"center"!==i),c?"align".concat(c):null);return Object(V.createElement)("div",{className:m,style:b},!Y.RichText.isEmpty(r)&&Object(V.createElement)(Y.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r}))}},{attributes:Object(U.a)({},nn,{title:{type:"string",source:"html",selector:"h2"}}),save:function(e){var t=e.attributes,n=t.url,r=t.title,o=t.hasParallax,a=t.dimRatio,c=t.align,i=ln(n),l=q()(cn(a),{"has-background-dim":0!==a,"has-parallax":o},c?"align".concat(c):null);return Object(V.createElement)("section",{className:l,style:i},Object(V.createElement)(Y.RichText.Content,{tagName:"h2",value:r}))}}]};function cn(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}function ln(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}var sn=function(e){var t=e.blockSupportsResponsive,n=e.showEditButton,r=e.themeSupportsResponsive,o=e.allowResponsive,a=e.getResponsiveHelp,c=e.toggleResponsive,i=e.switchBackToURLInput;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Q.Toolbar,null,n&&Object(V.createElement)(Q.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit URL"),icon:"edit",onClick:i}))),r&&t&&Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Media Settings"),className:"blocks-responsive"},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Resize for smaller devices"),checked:o,help:a,onChange:c}))))},un=function(){return Object(V.createElement)("div",{className:"wp-block-embed is-loading"},Object(V.createElement)(Q.Spinner,null),Object(V.createElement)("p",null,Object(K.__)("Embedding…")))},bn=function(e){var t=e.icon,n=e.label,r=e.value,o=e.onSubmit,a=e.onChange,c=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(V.createElement)(Q.Placeholder,{icon:Object(V.createElement)(Y.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed"},Object(V.createElement)("form",{onSubmit:o},Object(V.createElement)("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:Object(K.__)("Enter URL to embed here…"),onChange:a}),Object(V.createElement)(Q.Button,{isLarge:!0,type:"submit"},Object(K._x)("Embed","button label")),c&&Object(V.createElement)("p",{className:"components-placeholder__error"},Object(K.__)("Sorry, we could not embed that content."),Object(V.createElement)("br",null),Object(V.createElement)(Q.Button,{isLarge:!0,onClick:l},Object(K._x)("Try again","button label"))," ",Object(V.createElement)(Q.Button,{isLarge:!0,onClick:i},Object(K._x)("Convert to link","button label")))))},mn=n("CxY0"),dn=window.FocusEvent,hn=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).checkFocus=e.checkFocus.bind(Object(ne.a)(Object(ne.a)(e))),e.node=Object(V.createRef)(),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new dn("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html;return Object(V.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:e}})}}]),t}(V.Component),pn=Object(re.withGlobalEvents)({blur:"checkFocus"})(hn),gn=function(e){var t,n,r=e.preview,o=e.url,a=e.type,c=e.caption,i=e.onCaptionChange,l=e.isSelected,s=e.className,u=e.icon,b=e.label,m=r.scripts,d="photo"===a?(t=r,n=Object(V.createElement)("p",null,Object(V.createElement)("img",{src:t.thumbnail_url,alt:t.title,width:"100%"})),Object(V.renderToString)(n)):r.html,h=Object(mn.parse)(o),p=Object(G.includes)(Ae,h.host.replace(/^www\./,"")),g=Object(K.sprintf)(Object(K.__)("Embedded content from %s"),h.host),O=Le()(a,s,"wp-block-embed__wrapper"),f="wp-embed"===a?Object(V.createElement)(pn,{html:d}):Object(V.createElement)("div",{className:"wp-block-embed__wrapper"},Object(V.createElement)(Q.SandBox,{html:d,scripts:m,title:g,type:O}));return Object(V.createElement)("figure",{className:Le()(s,"wp-block-embed",{"is-type-video":"video"===a})},p?Object(V.createElement)(Q.Placeholder,{icon:Object(V.createElement)(Y.BlockIcon,{icon:u,showColors:!0}),label:b},Object(V.createElement)("p",{className:"components-placeholder__error"},Object(V.createElement)("a",{href:o},o)),Object(V.createElement)("p",{className:"components-placeholder__error"},Object(K.__)("Sorry, we cannot preview this embedded content in the editor."))):f,(!Y.RichText.isEmpty(c)||l)&&Object(V.createElement)(Y.RichText,{tagName:"figcaption",placeholder:Object(K.__)("Write caption…"),value:c,onChange:i,inlineToolbar:!0}))};var On={url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0}};function fn(e){var t=e.title,n=e.description,r=e.icon,o=e.category,a=void 0===o?"embed":o,c=e.transforms,i=e.keywords,l=void 0===i?[]:i,s=e.supports,u=void 0===s?{}:s,b=e.responsive,m=void 0===b||b,d=n||Object(K.sprintf)(Object(K.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),t),h=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){function o(){var e;return Object(J.a)(this,o),(e=Object(X.a)(this,Object(ee.a)(o).apply(this,arguments))).switchBackToURLInput=e.switchBackToURLInput.bind(Object(ne.a)(Object(ne.a)(e))),e.setUrl=e.setUrl.bind(Object(ne.a)(Object(ne.a)(e))),e.getAttributesFromPreview=e.getAttributesFromPreview.bind(Object(ne.a)(Object(ne.a)(e))),e.setAttributesFromPreview=e.setAttributesFromPreview.bind(Object(ne.a)(Object(ne.a)(e))),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(ne.a)(Object(ne.a)(e))),e.toggleResponsive=e.toggleResponsive.bind(Object(ne.a)(Object(ne.a)(e))),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(ne.a)(Object(ne.a)(e))),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(te.a)(o,r),Object(Z.a)(o,[{key:"handleIncomingPreview",value:function(){var e=this.props.attributes.allowResponsive;this.setAttributesFromPreview();var t=He(this.props,this.getAttributesFromPreview(this.props.preview,e));t&&this.props.onReplace(t)}},{key:"componentDidUpdate",value:function(e){var t=void 0!==this.props.preview,n=void 0!==e.preview,r=e.preview&&this.props.preview&&this.props.preview.html!==e.preview.html||t&&!n,o=this.props.attributes.url!==e.attributes.url;if(r||o){if(this.props.cannotEmbed)return;this.handleIncomingPreview()}}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;this.setState({editingURL:!1}),n({url:t})}},{key:"getAttributesFromPreview",value:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o={},a=t.type,c=void 0===a?"rich":a,i=t.html,l=t.provider_name,s=Object(G.kebabCase)(Object(G.toLower)(""!==l?l:e));return ze(i)&&(c="wp-embed"),(i||"photo"===c)&&(o.type=c,o.providerNameSlug=s),o.className=De(i,this.props.attributes.className,n&&r),o}},{key:"setAttributesFromPreview",value:function(){var e=this.props,t=e.setAttributes,n=e.preview,r=this.props.attributes.allowResponsive;t(this.getAttributesFromPreview(n,r))}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"getResponsiveHelp",value:function(e){return e?Object(K.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(K.__)("This embed may not preserve its aspect ratio when the browser is resized.")}},{key:"toggleResponsive",value:function(){var e=this.props.attributes,t=e.allowResponsive,r=e.className,o=this.props.preview.html,a=!t;this.props.setAttributes({allowResponsive:a,className:De(o,r,n&&a)})}},{key:"render",value:function(){var r=this,o=this.state,a=o.url,c=o.editingURL,i=this.props.attributes,l=i.caption,s=i.type,u=i.allowResponsive,b=this.props,m=b.fetching,d=b.setAttributes,h=b.isSelected,p=b.className,g=b.preview,O=b.cannotEmbed,f=b.themeSupportsResponsive,j=b.tryAgain;if(m)return Object(V.createElement)(un,null);var v=Object(K.sprintf)(Object(K.__)("%s URL"),e);return!g||O||c?Object(V.createElement)(bn,{icon:t,label:v,onSubmit:this.setUrl,value:a,cannotEmbed:O,onChange:function(e){return r.setState({url:e.target.value})},fallback:function(){return Fe(a,r.props.onReplace)},tryAgain:j}):Object(V.createElement)(V.Fragment,null,Object(V.createElement)(sn,{showEditButton:g&&!O,themeSupportsResponsive:f,blockSupportsResponsive:n,allowResponsive:u,getResponsiveHelp:this.getResponsiveHelp,toggleResponsive:this.toggleResponsive,switchBackToURLInput:this.switchBackToURLInput}),Object(V.createElement)(gn,{preview:g,className:p,url:a,type:s,caption:l,onCaptionChange:function(e){return d({caption:e})},isSelected:h,icon:t,label:v}))}}]),o}(V.Component)}(t,r,m);return{title:t,description:d,icon:r,category:a,keywords:l,attributes:On,supports:Object(U.a)({align:!0},u),transforms:c,edit:Object(re.compose)(Object(oe.withSelect)((function(e,t){var n=t.attributes.url,r=e("core"),o=r.getEmbedPreview,a=r.isPreviewEmbedFallback,c=r.isRequestingEmbedPreview,i=r.getThemeSupports,l=void 0!==n&&o(n),s=void 0!==n&&a(n),u=void 0!==n&&c(n),b=i(),m=!!l&&void 0===l.type&&!1===l.html,d=!!l&&l.data&&404===l.data.status,h=!!l&&!m&&!d,p=void 0!==n&&(!h||s);return{preview:h?l:void 0,fetching:u,themeSupportsResponsive:b["responsive-embeds"],cannotEmbed:p}})),Object(oe.withDispatch)((function(e,t){var n=t.attributes.url,r=e("core/data");return{tryAgain:function(){r.invalidateResolution("core","getEmbedPreview",[n])}}})))(h),save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,c=n.providerNameSlug;if(!r)return null;var i=Le()("wp-block-embed",(t={},Object(F.a)(t,"is-type-".concat(a),a),Object(F.a)(t,"is-provider-".concat(c),c),t));return Object(V.createElement)("figure",{className:i},Object(V.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(r,"\n")),!Y.RichText.isEmpty(o)&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:o}))},deprecated:[{attributes:On,save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,c=n.providerNameSlug;if(!r)return null;var i=Le()("wp-block-embed",(t={},Object(F.a)(t,"is-type-".concat(a),a),Object(F.a)(t,"is-provider-".concat(c),c),t));return Object(V.createElement)("figure",{className:i},"\n".concat(r,"\n"),!Y.RichText.isEmpty(o)&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:o}))}}]}}var jn="core/embed",vn=fn({title:Object(K._x)("Embed","block title"),description:Object(K.__)("Embed videos, images, tweets, audio, and other content from external sources."),icon:Oe,responsive:!1,transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)},transform:function(e){return Object(D.createBlock)("core/embed",{url:e.textContent.trim()})}}]}}),yn=Re.map((function(e){return Object(U.a)({},e,{settings:fn(e.settings)})})),kn=Be.map((function(e){return Object(U.a)({},e,{settings:fn(e.settings)})}));function wn(e){return e?Object(K.__)("The download button is visible."):Object(K.__)("The download button is hidden.")}function En(e){var t=e.hrefs,n=e.openInNewWindow,r=e.showDownloadButton,o=e.changeLinkDestinationOption,a=e.changeOpenInNewWindow,c=e.changeShowDownloadButton,i=t.href,l=t.textLinkHref,s=t.attachmentPage,u=[{value:i,label:Object(K.__)("URL")}];return s&&(u=[{value:i,label:Object(K.__)("Media File")},{value:s,label:Object(K.__)("Attachment Page")}]),Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Text Link Settings")},Object(V.createElement)(Q.SelectControl,{label:Object(K.__)("Link To"),value:l,options:u,onChange:o}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Open in New Tab"),checked:n,onChange:a})),Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Download Button Settings")},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Show Download Button"),help:wn,checked:r,onChange:c}))))}var Cn=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).onSelectFile=e.onSelectFile.bind(Object(ne.a)(Object(ne.a)(e))),e.confirmCopyURL=e.confirmCopyURL.bind(Object(ne.a)(Object(ne.a)(e))),e.resetCopyConfirmation=e.resetCopyConfirmation.bind(Object(ne.a)(Object(ne.a)(e))),e.changeLinkDestinationOption=e.changeLinkDestinationOption.bind(Object(ne.a)(Object(ne.a)(e))),e.changeOpenInNewWindow=e.changeOpenInNewWindow.bind(Object(ne.a)(Object(ne.a)(e))),e.changeShowDownloadButton=e.changeShowDownloadButton.bind(Object(ne.a)(Object(ne.a)(e))),e.state={hasError:!1,showCopyConfirmation:!1},e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeOperations,o=n.href;if(Object(de.isBlobURL)(o)){var a=Object(de.getBlobByURL)(o);Object(Y.mediaUpload)({filesList:[a],onFileChange:function(t){var n=Object(he.a)(t,1)[0];return e.onSelectFile(n)},onError:function(t){e.setState({hasError:!0}),r.createErrorNotice(t)}}),Object(de.revokeBlobURL)(o)}}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id}))}},{key:"confirmCopyURL",value:function(){this.setState({showCopyConfirmation:!0})}},{key:"resetCopyConfirmation",value:function(){this.setState({showCopyConfirmation:!1})}},{key:"changeLinkDestinationOption",value:function(e){this.props.setAttributes({textLinkHref:e})}},{key:"changeOpenInNewWindow",value:function(e){this.props.setAttributes({textLinkTarget:!!e&&"_blank"})}},{key:"changeShowDownloadButton",value:function(e){this.props.setAttributes({showDownloadButton:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.isSelected,r=e.attributes,o=e.setAttributes,a=e.noticeUI,c=e.noticeOperations,i=e.media,l=r.fileName,s=r.href,u=r.textLinkHref,b=r.textLinkTarget,m=r.showDownloadButton,d=r.downloadButtonText,h=r.id,p=this.state,g=p.hasError,O=p.showCopyConfirmation,f=i&&i.link;if(!s||g)return Object(V.createElement)(Y.MediaPlaceholder,{icon:"media-default",labels:{title:Object(K.__)("File"),instructions:Object(K.__)("Drag a file, upload a new one or select a file from your library.")},onSelect:this.onSelectFile,notices:a,onError:c.createErrorNotice,accept:"*"});var j=q()(t,{"is-transient":Object(de.isBlobURL)(s)});return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(En,Object($.a)({hrefs:{href:s,textLinkHref:u,attachmentPage:f}},{openInNewWindow:!!b,showDownloadButton:m,changeLinkDestinationOption:this.changeLinkDestinationOption,changeOpenInNewWindow:this.changeOpenInNewWindow,changeShowDownloadButton:this.changeShowDownloadButton})),Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.MediaUploadCheck,null,Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Y.MediaUpload,{onSelect:this.onSelectFile,value:h,render:function(e){var t=e.open;return Object(V.createElement)(Q.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit file"),onClick:t,icon:"edit"})}})))),Object(V.createElement)("div",{className:j},Object(V.createElement)("div",{className:"".concat(t,"__content-wrapper")},Object(V.createElement)(Y.RichText,{wrapperClassName:"".concat(t,"__textlink"),tagName:"div",value:l,placeholder:Object(K.__)("Write file name…"),keepPlaceholderOnFocus:!0,formattingControls:[],onChange:function(e){return o({fileName:e})}}),m&&Object(V.createElement)("div",{className:"".concat(t,"__button-richtext-wrapper")},Object(V.createElement)(Y.RichText,{tagName:"div",className:"".concat(t,"__button"),value:d,formattingControls:[],placeholder:Object(K.__)("Add text…"),keepPlaceholderOnFocus:!0,onChange:function(e){return o({downloadButtonText:e})}}))),n&&Object(V.createElement)(Q.ClipboardButton,{isDefault:!0,text:s,className:"".concat(t,"__copy-url-button"),onCopy:this.confirmCopyURL,onFinishCopy:this.resetCopyConfirmation,disabled:Object(de.isBlobURL)(s)},O?Object(K.__)("Copied!"):Object(K.__)("Copy URL"))))}}]),t}(V.Component),_n=Object(re.compose)([Object(oe.withSelect)((function(e,t){var n=e("core").getMedia,r=t.attributes.id;return{media:void 0===r?void 0:n(r)}})),Q.withNotices])(Cn),xn="core/file",Sn={title:Object(K.__)("File"),description:Object(K.__)("Add a link to a downloadable file."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.Path,{d:"M9 6l2 2h9v10H4V6h5m1-2H4L2 6v12l2 2h16l2-2V8l-2-2h-8l-2-2z"})),category:"common",keywords:[Object(K.__)("document"),Object(K.__)("pdf")],attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]",default:Object(K._x)("Download","button label")}},supports:{align:!0},transforms:{from:[{type:"files",isMatch:function(e){return e.length>0},priority:15,transform:function(e){var t=[];return e.map((function(e){var n=Object(de.createBlobURL)(e);t.push(Object(D.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(D.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(D.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(D.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(oe.select)("core").getMedia)(t);return!!n&&Object(G.includes)(n.mime_type,"audio")},transform:function(e){return Object(D.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(oe.select)("core").getMedia)(t);return!!n&&Object(G.includes)(n.mime_type,"video")},transform:function(e){return Object(D.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(oe.select)("core").getMedia)(t);return!!n&&Object(G.includes)(n.mime_type,"image")},transform:function(e){return Object(D.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]},edit:_n,save:function(e){var t=e.attributes,n=t.href,r=t.fileName,o=t.textLinkHref,a=t.textLinkTarget,c=t.showDownloadButton,i=t.downloadButtonText;return n&&Object(V.createElement)("div",null,!Y.RichText.isEmpty(r)&&Object(V.createElement)("a",{href:o,target:a,rel:!!a&&"noreferrer noopener"},Object(V.createElement)(Y.RichText.Content,{value:r})),c&&Object(V.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},Object(V.createElement)(Y.RichText.Content,{value:i})))}},Tn="core/html",Nn={title:Object(K.__)("Custom HTML"),description:Object(K.__)("Add custom HTML code and preview it as you edit."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z"})),category:"formatting",keywords:[Object(K.__)("embed")],supports:{customClassName:!1,className:!1,html:!1},attributes:{content:{type:"string",source:"html"}},transforms:{from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("iframe")},schema:{figure:{require:["iframe"],children:{iframe:{attributes:["src","allowfullscreen","height","width"]},figcaption:{children:Object(D.getPhrasingContentSchema)()}}}}}]},edit:Object(re.withState)({isPreview:!1})((function(e){var t=e.attributes,n=e.setAttributes,r=e.setState,o=e.isPreview;return Object(V.createElement)("div",{className:"wp-block-html"},Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)("div",{className:"components-toolbar"},Object(V.createElement)("button",{className:"components-tab-button ".concat(o?"":"is-active"),onClick:function(){return r({isPreview:!1})}},Object(V.createElement)("span",null,"HTML")),Object(V.createElement)("button",{className:"components-tab-button ".concat(o?"is-active":""),onClick:function(){return r({isPreview:!0})}},Object(V.createElement)("span",null,Object(K.__)("Preview"))))),Object(V.createElement)(Q.Disabled.Consumer,null,(function(e){return o||e?Object(V.createElement)(Q.SandBox,{html:t.content}):Object(V.createElement)(Y.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(K.__)("Write HTML…"),"aria-label":Object(K.__)("HTML")})})))})),save:function(e){var t=e.attributes;return Object(V.createElement)(V.RawHTML,null,t.content)}},Rn=["image","video"],Bn=function(e){function t(){return Object(J.a)(this,t),Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.mediaId,n=e.onSelectMedia;return Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Y.MediaUpload,{onSelect:n,allowedTypes:Rn,value:t,render:function(e){var t=e.open;return Object(V.createElement)(Q.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit media"),icon:"edit",onClick:t})}})))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,r=e.className;return Object(V.createElement)(V.Fragment,null,this.renderToolbarEditButton(),Object(V.createElement)("figure",{className:r},Object(V.createElement)("img",{src:n,alt:t})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,n=e.className;return Object(V.createElement)(V.Fragment,null,this.renderToolbarEditButton(),Object(V.createElement)("figure",{className:n},Object(V.createElement)("video",{controls:!0,src:t})))}},{key:"renderPlaceholder",value:function(){var e=this.props,t=e.onSelectMedia,n=e.className;return Object(V.createElement)(Y.MediaPlaceholder,{icon:"format-image",labels:{title:Object(K.__)("Media area")},className:n,onSelect:t,accept:"image/*,video/*",allowedTypes:Rn})}},{key:"render",value:function(){var e=this.props,t=e.mediaPosition,n=e.mediaUrl,r=e.mediaType,o=e.mediaWidth,a=e.commitWidthChange,c=e.onWidthChange;if(r&&n){var i={right:"left"===t,left:"right"===t},l=null;switch(r){case"image":l=this.renderImage();break;case"video":l=this.renderVideo()}return Object(V.createElement)(Q.ResizableBox,{className:"editor-media-container__resizer",size:{width:o+"%"},minWidth:"10%",maxWidth:"100%",enable:i,onResize:function(e,t,n){c(parseInt(n.style.width))},onResizeStop:function(e,t,n){a(parseInt(n.style.width))},axis:"x"},l)}return this.renderPlaceholder()}}]),t}(V.Component),An=["core/button","core/paragraph","core/heading","core/list"],In=[["core/paragraph",{fontSize:"large",placeholder:Object(K._x)("Content…","content placeholder")}]],Pn=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).onSelectMedia=e.onSelectMedia.bind(Object(ne.a)(Object(ne.a)(e))),e.onWidthChange=e.onWidthChange.bind(Object(ne.a)(Object(ne.a)(e))),e.commitWidthChange=e.commitWidthChange.bind(Object(ne.a)(Object(ne.a)(e))),e.state={mediaWidth:null},e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"onSelectMedia",value:function(e){var t,n,r=this.props.setAttributes;"image"===(t=e.media_type?"image"===e.media_type?"image":"video":e.type)&&(n=Object(G.get)(e,["sizes","large","url"])||Object(G.get)(e,["media_details","sizes","large","source_url"])),r({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:n||e.url})}},{key:"onWidthChange",value:function(e){this.setState({mediaWidth:e})}},{key:"commitWidthChange",value:function(e){(0,this.props.setAttributes)({mediaWidth:e}),this.setState({mediaWidth:null})}},{key:"renderMediaArea",value:function(){var e=this.props.attributes,t=e.mediaAlt,n=e.mediaId,r=e.mediaPosition,o=e.mediaType,a=e.mediaUrl,c=e.mediaWidth;return Object(V.createElement)(Bn,Object($.a)({className:"block-library-media-text__media-container",onSelectMedia:this.onSelectMedia,onWidthChange:this.onWidthChange,commitWidthChange:this.commitWidthChange},{mediaAlt:t,mediaId:n,mediaType:o,mediaUrl:a,mediaPosition:r,mediaWidth:c}))}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.className,o=t.backgroundColor,a=t.isSelected,c=t.setAttributes,i=t.setBackgroundColor,l=n.isStackedOnMobile,s=n.mediaAlt,u=n.mediaPosition,b=n.mediaType,m=n.mediaWidth,d=this.state.mediaWidth,h=q()(r,(e={"has-media-on-the-right":"right"===u,"is-selected":a},Object(F.a)(e,o.class,o.class),Object(F.a)(e,"is-stacked-on-mobile",l),e)),p="".concat(d||m,"%"),g={gridTemplateColumns:"right"===u?"auto ".concat(p):"".concat(p," auto"),backgroundColor:o.color},O=[{value:o.color,onChange:i,label:Object(K.__)("Background Color")}],f=[{icon:"align-pull-left",title:Object(K.__)("Show media on left"),isActive:"left"===u,onClick:function(){return c({mediaPosition:"left"})}},{icon:"align-pull-right",title:Object(K.__)("Show media on right"),isActive:"right"===u,onClick:function(){return c({mediaPosition:"right"})}}],j=Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Media & Text Settings")},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Stack on mobile"),checked:l,onChange:function(){return c({isStackedOnMobile:!l})}}),"image"===b&&Object(V.createElement)(Q.TextareaControl,{label:Object(K.__)("Alt Text (Alternative Text)"),value:s,onChange:function(e){c({mediaAlt:e})},help:Object(K.__)("Alternative text describes your image to people who can’t see it. Add a short description with its key details.")}));return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.InspectorControls,null,j,Object(V.createElement)(Y.PanelColorSettings,{title:Object(K.__)("Color Settings"),initialOpen:!1,colorSettings:O})),Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Q.Toolbar,{controls:f})),Object(V.createElement)("div",{className:h,style:g},this.renderMediaArea(),Object(V.createElement)(Y.InnerBlocks,{allowedBlocks:An,template:In,templateInsertUpdatesSelection:!1})))}}]),t}(V.Component),Ln=Object(Y.withColors)("backgroundColor")(Pn),Mn="core/media-text",zn={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},Hn={title:Object(K.__)("Media & Text"),description:Object(K.__)("Set media and words side-by-side for a richer layout."),icon:Object(V.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(V.createElement)(Q.Path,{d:"M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z"})),category:"layout",keywords:[Object(K.__)("image"),Object(K.__)("video")],attributes:zn,supports:{align:["wide","full"],html:!1},transforms:{from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.alt,n=e.url,r=e.id;return Object(D.createBlock)("core/media-text",{mediaAlt:t,mediaId:r,mediaUrl:n,mediaType:"image"})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.src,n=e.id;return Object(D.createBlock)("core/media-text",{mediaId:n,mediaUrl:t,mediaType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"image"===t},transform:function(e){var t=e.mediaAlt,n=e.mediaId,r=e.mediaUrl;return Object(D.createBlock)("core/image",{alt:t,id:n,url:r})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"video"===t},transform:function(e){var t=e.mediaId,n=e.mediaUrl;return Object(D.createBlock)("core/video",{id:t,src:n})}}]},edit:Ln,save:function(e){var t,n,r=e.attributes,o=r.backgroundColor,a=r.customBackgroundColor,c=r.isStackedOnMobile,i=r.mediaAlt,l=r.mediaPosition,s=r.mediaType,u=r.mediaUrl,b=r.mediaWidth,m=r.mediaId,d={image:function(){return Object(V.createElement)("img",{src:u,alt:i,className:m&&"image"===s?"wp-image-".concat(m):null})},video:function(){return Object(V.createElement)("video",{controls:!0,src:u})}},h=Object(Y.getColorClassName)("background-color",o),p=q()((t={"has-media-on-the-right":"right"===l},Object(F.a)(t,h,h),Object(F.a)(t,"is-stacked-on-mobile",c),t));50!==b&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var g={backgroundColor:h?void 0:a,gridTemplateColumns:n};return Object(V.createElement)("div",{className:p,style:g},Object(V.createElement)("figure",{className:"wp-block-media-text__media"},(d[s]||G.noop)()),Object(V.createElement)("div",{className:"wp-block-media-text__content"},Object(V.createElement)(Y.InnerBlocks.Content,null)))},deprecated:[{attributes:zn,save:function(e){var t,n,r=e.attributes,o=r.backgroundColor,a=r.customBackgroundColor,c=r.isStackedOnMobile,i=r.mediaAlt,l=r.mediaPosition,s=r.mediaType,u=r.mediaUrl,b=r.mediaWidth,m={image:function(){return Object(V.createElement)("img",{src:u,alt:i})},video:function(){return Object(V.createElement)("video",{controls:!0,src:u})}},d=Object(Y.getColorClassName)("background-color",o),h=q()((t={"has-media-on-the-right":"right"===l},Object(F.a)(t,d,d),Object(F.a)(t,"is-stacked-on-mobile",c),t));50!==b&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var p={backgroundColor:d?void 0:a,gridTemplateColumns:n};return Object(V.createElement)("div",{className:h,style:p},Object(V.createElement)("figure",{className:"wp-block-media-text__media"},(m[s]||G.noop)()),Object(V.createElement)("div",{className:"wp-block-media-text__content"},Object(V.createElement)(Y.InnerBlocks.Content,null)))}}]},Dn=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).setAlignment=e.setAlignment.bind(Object(ne.a)(Object(ne.a)(e))),e.setCommentsToShow=e.setCommentsToShow.bind(Object(ne.a)(Object(ne.a)(e))),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(F.a)({},e,!n))}}},{key:"setAlignment",value:function(e){this.props.setAttributes({align:e})}},{key:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.align,n=e.commentsToShow,r=e.displayAvatar,o=e.displayDate,a=e.displayExcerpt;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.BlockAlignmentToolbar,{value:t,onChange:this.setAlignment})),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Latest Comments Settings")},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Display Avatar"),checked:r,onChange:this.toggleDisplayAvatar}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Display Date"),checked:o,onChange:this.toggleDisplayDate}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Display Excerpt"),checked:a,onChange:this.toggleDisplayExcerpt}),Object(V.createElement)(Q.RangeControl,{label:Object(K.__)("Number of Comments"),value:n,onChange:this.setCommentsToShow,min:1,max:100}))),Object(V.createElement)(Q.Disabled,null,Object(V.createElement)(Y.ServerSideRender,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),t}(V.Component),Fn="core/latest-comments",Un={title:Object(K.__)("Latest Comments"),description:Object(K.__)("Display a list of your most recent comments."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M22 4l-2-2H4L2 4v12l2 2h14l4 4V4zm-2 0v13l-1-1H4V4h16z"}),Object(V.createElement)(Q.Path,{d:"M6 12h12v2H6zM6 9h12v2H6zM6 6h12v2H6z"}))),category:"widgets",keywords:[Object(K.__)("recent comments")],supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right","wide","full"].includes(t))return{"data-align":t}},edit:Dn,save:function(){return null}},Vn=n("ywyh"),Wn=n.n(Vn),qn=n("FqII"),Gn=n("rmEH"),Kn={per_page:-1},Yn=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).state={categoriesList:[]},e.toggleDisplayPostDate=e.toggleDisplayPostDate.bind(Object(ne.a)(Object(ne.a)(e))),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"componentWillMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=Wn()({path:Object(pe.addQueryArgs)("/wp/v2/categories",Kn)}).then((function(t){e.isStillMounted&&e.setState({categoriesList:t})})).catch((function(){e.isStillMounted&&e.setState({categoriesList:[]})}))}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"toggleDisplayPostDate",value:function(){var e=this.props.attributes.displayPostDate;(0,this.props.setAttributes)({displayPostDate:!e})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.latestPosts,o=this.state.categoriesList,a=t.displayPostDate,c=t.align,i=t.postLayout,l=t.columns,s=t.order,u=t.orderBy,b=t.categories,m=t.postsToShow,d=Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Latest Posts Settings")},Object(V.createElement)(Q.QueryControls,Object($.a)({order:s,orderBy:u},{numberOfItems:m,categoriesList:o,selectedCategoryId:b,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},onCategoryChange:function(e){return n({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return n({postsToShow:e})}})),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Display post date"),checked:a,onChange:this.toggleDisplayPostDate}),"grid"===i&&Object(V.createElement)(Q.RangeControl,{label:Object(K.__)("Columns"),value:l,onChange:function(e){return n({columns:e})},min:2,max:h?Math.min(6,r.length):6}))),h=Array.isArray(r)&&r.length;if(!h)return Object(V.createElement)(V.Fragment,null,d,Object(V.createElement)(Q.Placeholder,{icon:"admin-post",label:Object(K.__)("Latest Posts")},Array.isArray(r)?Object(K.__)("No posts found."):Object(V.createElement)(Q.Spinner,null)));var p=r.length>m?r.slice(0,m):r,g=[{icon:"list-view",title:Object(K.__)("List View"),onClick:function(){return n({postLayout:"list"})},isActive:"list"===i},{icon:"grid-view",title:Object(K.__)("Grid View"),onClick:function(){return n({postLayout:"grid"})},isActive:"grid"===i}],O=Object(qn.__experimentalGetSettings)().formats.date;return Object(V.createElement)(V.Fragment,null,d,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.BlockAlignmentToolbar,{value:c,onChange:function(e){n({align:e})},controls:["center","wide","full"]}),Object(V.createElement)(Q.Toolbar,{controls:g})),Object(V.createElement)("ul",{className:q()(this.props.className,Object(F.a)({"is-grid":"grid"===i,"has-dates":a},"columns-".concat(l),"grid"===i))},p.map((function(e,t){return Object(V.createElement)("li",{key:t},Object(V.createElement)("a",{href:e.link,target:"_blank"},Object(Gn.decodeEntities)(e.title.rendered.trim())||Object(K.__)("(Untitled)")),a&&e.date_gmt&&Object(V.createElement)("time",{dateTime:Object(qn.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(qn.dateI18n)(O,e.date_gmt)))}))))}}]),t}(V.Component),Qn=Object(oe.withSelect)((function(e,t){var n=t.attributes,r=n.postsToShow,o=n.order,a=n.orderBy,c=n.categories;return{latestPosts:(0,e("core").getEntityRecords)("postType","post",Object(G.pickBy)({categories:c,order:o,orderby:a,per_page:r},(function(e){return!Object(G.isUndefined)(e)})))}}))(Yn),$n="core/latest-posts",Jn={title:Object(K.__)("Latest Posts"),description:Object(K.__)("Display a list of your most recent posts."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(V.createElement)(Q.Rect,{x:"11",y:"7",width:"6",height:"2"}),Object(V.createElement)(Q.Rect,{x:"11",y:"11",width:"6",height:"2"}),Object(V.createElement)(Q.Rect,{x:"11",y:"15",width:"6",height:"2"}),Object(V.createElement)(Q.Rect,{x:"7",y:"7",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"7",y:"11",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"7",y:"15",width:"2",height:"2"}),Object(V.createElement)(Q.Path,{d:"M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z"})),category:"widgets",keywords:[Object(K.__)("recent posts")],supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right","wide","full"].includes(t))return{"data-align":t}},edit:Qn,save:function(){return null}},Zn=Object(U.a)({},Object(D.getPhrasingContentSchema)(),{ul:{},ol:{attributes:["type"]}});["ul","ol"].forEach((function(e){Zn[e].children={li:{children:Zn}}}));var Xn={className:!1},er={ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:""}},tr="core/list",nr={title:Object(K.__)("List"),description:Object(K.__)("Create a bulleted or numbered list."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"}))),category:"common",keywords:[Object(K.__)("bullet list"),Object(K.__)("ordered list"),Object(K.__)("numbered list")],attributes:er,supports:Xn,transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(D.createBlock)("core/list",{values:Object(st.toHTMLString)({value:Object(st.join)(e.map((function(e){var t=e.content;return Object(st.replace)(Object(st.create)({html:t}),/\n/g,st.LINE_SEPARATOR)})),st.LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object(D.createBlock)("core/list",{values:Object(st.toHTMLString)({value:Object(st.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:{ol:Zn.ol,ul:Zn.ul},transform:function(e){return Object(D.createBlock)("core/list",Object(U.a)({},Object(D.getBlockAttributes)("core/list",e.outerHTML),{ordered:"OL"===e.nodeName}))}}].concat(Object(H.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(D.createBlock)("core/list",{values:"
  • ".concat(e,"
  • ")})}}}))),Object(H.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(D.createBlock)("core/list",{ordered:!0,values:"
  • ".concat(e,"
  • ")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(st.split)(Object(st.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),st.LINE_SEPARATOR).map((function(e){return Object(D.createBlock)("core/paragraph",{content:Object(st.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object(D.createBlock)("core/quote",{value:Object(st.toHTMLString)({value:Object(st.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]},deprecated:[{supports:Xn,attributes:Object(U.a)({},Object(G.omit)(er,["ordered"]),{nodeName:{type:"string",source:"property",selector:"ol,ul",property:"nodeName",default:"UL"}}),migrate:function(e){var t=e.nodeName,n=Object(tt.a)(e,["nodeName"]);return Object(U.a)({},n,{ordered:"OL"===t})},save:function(e){var t=e.attributes,n=t.nodeName,r=t.values;return Object(V.createElement)(Y.RichText.Content,{tagName:n.toLowerCase(),value:r})}}],merge:function(e,t){var n=t.values;return n&&"
  • "!==n?Object(U.a)({},e,{values:e.values+n}):e},edit:function(e){var t=e.attributes,n=e.insertBlocksAfter,r=e.setAttributes,o=e.mergeBlocks,a=e.onReplace,c=e.className,i=t.ordered,l=t.values;return Object(V.createElement)(Y.RichText,{identifier:"values",multiline:"li",tagName:i?"ol":"ul",onChange:function(e){return r({values:e})},value:l,wrapperClassName:"block-library-list",className:c,placeholder:Object(K.__)("Write list…"),onMerge:o,unstableOnSplit:n?function(e,t){for(var o=arguments.length,a=new Array(o>2?o-2:0),c=2;c"!==t&&a.push(Object(D.createBlock)("core/list",{ordered:i,values:t})),r({values:e}),n(a)}:void 0,onRemove:function(){return a([])},onTagNameChange:function(e){return r({ordered:"ol"===e})}})},save:function(e){var t=e.attributes,n=t.ordered,r=t.values,o=n?"ol":"ul";return Object(V.createElement)(Y.RichText.Content,{tagName:o,value:r,multiline:"li"})}};var rr=Object(oe.withDispatch)((function(e,t){var n=t.clientId,r=t.attributes,o=e("core/editor").replaceBlock;return{convertToHTML:function(){o(n,Object(D.createBlock)("core/html",{content:r.originalUndelimitedContent}))}}}))((function(e){var t,n=e.attributes,r=e.convertToHTML,o=n.originalName,a=n.originalUndelimitedContent,c=!!a,i=Object(D.getBlockType)("core/html"),l=[];return c&&i?(t=Object(K.sprintf)(Object(K.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),o),l.push(Object(V.createElement)(Q.Button,{key:"convert",onClick:r,isLarge:!0,isPrimary:!0},Object(K.__)("Keep as HTML")))):t=Object(K.sprintf)(Object(K.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),o),Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.Warning,{actions:l},t),Object(V.createElement)(V.RawHTML,null,a))})),or="core/missing",ar={name:or,category:"common",title:Object(K.__)("Unrecognized Block"),description:Object(K.__)("Your site doesn’t include support for this block."),supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1},attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},edit:rr,save:function(e){var t=e.attributes;return Object(V.createElement)(V.RawHTML,null,t.originalContent)}},cr=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).onChangeInput=e.onChangeInput.bind(Object(ne.a)(Object(ne.a)(e))),e.onKeyDown=e.onKeyDown.bind(Object(ne.a)(Object(ne.a)(e))),e.state={defaultText:Object(K.__)("Read more")},e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"onChangeInput",value:function(e){this.setState({defaultText:""});var t=0===e.target.value.length?void 0:e.target.value;this.props.setAttributes({customText:t})}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=this.props.insertBlocksAfter;t===dt.ENTER&&n([Object(D.createBlock)(Object(D.getDefaultBlockName)())])}},{key:"render",value:function(){var e=this.props.attributes,t=e.customText,n=e.noTeaser,r=this.props.setAttributes,o=this.state.defaultText,a=void 0!==t?t:o,c=a.length+1;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,null,Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)('Hide the teaser before the "More" tag'),checked:!!n,onChange:function(){return r({noTeaser:!n})}}))),Object(V.createElement)("div",{className:"wp-block-more"},Object(V.createElement)("input",{type:"text",value:a,size:c,onChange:this.onChangeInput,onKeyDown:this.onKeyDown})))}}]),t}(V.Component),ir="core/more",lr={title:Object(K._x)("More","block name"),description:Object(K.__)("Mark the excerpt of this content. Content before this block will be shown in the excerpt on your archives page."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"}))),category:"layout",supports:{customClassName:!1,className:!1,html:!1,multiple:!1},attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},transforms:{from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/more"===e.dataset.block},transform:function(e){var t=e.dataset,n=t.customText,r=t.noTeaser,o={};return n&&(o.customText=n),""===r&&(o.noTeaser=!0),Object(D.createBlock)("core/more",o)}}]},edit:cr,save:function(e){var t=e.attributes,n=t.customText,r=t.noTeaser,o=n?"\x3c!--more ".concat(n,"--\x3e"):"\x3c!--more--\x3e",a=r?"\x3c!--noteaser--\x3e":"";return Object(V.createElement)(V.RawHTML,null,Object(G.compact)([o,a]).join("\n"))}};var sr="core/nextpage",ur={title:Object(K.__)("Page Break"),description:Object(K.__)("Separate your content into a multi-page experience."),icon:Object(V.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M9 12h6v-2H9zm-7 0h5v-2H2zm15 0h5v-2h-5zm3 2v2l-6 6H6a2 2 0 0 1-2-2v-6h2v6h6v-4a2 2 0 0 1 2-2h6zM4 8V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4h-2V4H6v4z"}))),category:"layout",keywords:[Object(K.__)("next page"),Object(K.__)("pagination")],supports:{customClassName:!1,className:!1,html:!1},attributes:{},transforms:{from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(D.createBlock)("core/nextpage",{})}}]},edit:function(){return Object(V.createElement)("div",{className:"wp-block-nextpage"},Object(V.createElement)("span",null,Object(K.__)("Page break")))},save:function(){return Object(V.createElement)(V.RawHTML,null,"\x3c!--nextpage--\x3e")}},br="core/preformatted",mr={title:Object(K.__)("Preformatted"),description:Object(K.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(V.createElement)(Q.Path,{d:"M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z"}),Object(V.createElement)(Q.Rect,{x:"6",y:"10",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"6",y:"14",width:"8",height:"2"}),Object(V.createElement)(Q.Rect,{x:"16",y:"14",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"10",y:"10",width:"8",height:"2"})),category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:""}},transforms:{from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content;return Object(D.createBlock)("core/preformatted",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:{pre:{children:Object(D.getPhrasingContentSchema)()}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(D.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.mergeBlocks,r=e.setAttributes,o=e.className,a=t.content;return Object(V.createElement)(Y.RichText,{tagName:"pre",value:a,onChange:function(e){r({content:e})},placeholder:Object(K.__)("Write preformatted text…"),wrapperClassName:o,onMerge:n})},save:function(e){var t=e.attributes.content;return Object(V.createElement)(Y.RichText.Content,{tagName:"pre",value:t})},merge:function(e,t){return{content:e.content+t.content}}},dr="is-style-".concat("solid-color"),hr=function(e){function t(e){var n;return Object(J.a)(this,t),(n=Object(X.a)(this,Object(ee.a)(t).call(this,e))).wasTextColorAutomaticallyComputed=!1,n.pullQuoteMainColorSetter=n.pullQuoteMainColorSetter.bind(Object(ne.a)(Object(ne.a)(n))),n.pullQuoteTextColorSetter=n.pullQuoteTextColorSetter.bind(Object(ne.a)(Object(ne.a)(n))),n}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"pullQuoteMainColorSetter",value:function(e){var t=this.props,n=t.colorUtils,r=t.textColor,o=t.setTextColor,a=t.setMainColor,c=t.className,i=Object(G.includes)(c,dr),l=!r.color||this.wasTextColorAutomaticallyComputed,s=i&&l&&e;a(e),s&&(this.wasTextColorAutomaticallyComputed=!0,o(n.getMostReadableColor(e)))}},{key:"pullQuoteTextColorSetter",value:function(e){(0,this.props.setTextColor)(e),this.wasTextColorAutomaticallyComputed=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.mainColor,r=e.textColor,o=e.setAttributes,a=e.isSelected,c=e.className,i=t.value,l=t.citation,s=Object(G.includes)(c,dr),u=s?{backgroundColor:n.color}:{borderColor:n.color},b={color:r.color},m=r.color?q()("has-text-color",Object(F.a)({},r.class,r.class)):void 0;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)("figure",{style:u,className:q()(c,Object(F.a)({},n.class,s&&n.class))},Object(V.createElement)("blockquote",{style:b,className:m},Object(V.createElement)(Y.RichText,{multiline:!0,value:i,onChange:function(e){return o({value:e})},placeholder:Object(K.__)("Write quote…"),wrapperClassName:"block-library-pullquote__content"}),(!Y.RichText.isEmpty(l)||a)&&Object(V.createElement)(Y.RichText,{value:l,placeholder:Object(K.__)("Write citation…"),onChange:function(e){return o({citation:e})},className:"wp-block-pullquote__citation"}))),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Y.PanelColorSettings,{title:Object(K.__)("Color Settings"),colorSettings:[{value:n.color,onChange:this.pullQuoteMainColorSetter,label:Object(K.__)("Main Color")},{value:r.color,onChange:this.pullQuoteTextColorSetter,label:Object(K.__)("Text Color")}]},s&&Object(V.createElement)(Y.ContrastChecker,Object($.a)({textColor:r.color,backgroundColor:n.color},{isLargeText:!1})))))}}]),t}(V.Component),pr=Object(Y.withColors)({mainColor:"background-color",textColor:"color"})(hr),gr={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},Or="core/pullquote",fr={title:Object(K.__)("Pullquote"),description:Object(K.__)("Give special visual emphasis to a quote from your text."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(V.createElement)(Q.Polygon,{points:"21 18 2 18 2 20 21 20"}),Object(V.createElement)(Q.Path,{d:"m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z"}),Object(V.createElement)(Q.Polygon,{points:"21 4 2 4 2 6 21 6"})),category:"formatting",attributes:gr,styles:[{name:"default",label:Object(K._x)("Regular","block style"),isDefault:!0},{name:"solid-color",label:Object(K.__)("Solid Color")}],supports:{align:["left","right","wide","full"]},edit:pr,save:function(e){var t,n,r=e.attributes,o=r.mainColor,a=r.customMainColor,c=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(G.includes)(u,dr))(t=Object(Y.getColorClassName)("background-color",o))||(n={backgroundColor:a});else if(a)n={borderColor:a};else if(o){var b=Object(G.get)(Object(oe.select)("core/editor").getEditorSettings(),["colors"],[]);n={borderColor:Object(Y.getColorObjectByAttributeValues)(b,o).color}}var m=Object(Y.getColorClassName)("color",c),d=c||i?q()("has-text-color",Object(F.a)({},m,m)):void 0,h=m?void 0:{color:i};return Object(V.createElement)("figure",{className:t,style:n},Object(V.createElement)("blockquote",{className:d,style:h},Object(V.createElement)(Y.RichText.Content,{value:l,multiline:!0}),!Y.RichText.isEmpty(s)&&Object(V.createElement)(Y.RichText.Content,{tagName:"cite",value:s})))},deprecated:[{attributes:Object(U.a)({},gr),save:function(e){var t=e.attributes,n=t.value,r=t.citation;return Object(V.createElement)("blockquote",null,Object(V.createElement)(Y.RichText.Content,{value:n,multiline:!0}),!Y.RichText.isEmpty(r)&&Object(V.createElement)(Y.RichText.Content,{tagName:"cite",value:r}))}},{attributes:Object(U.a)({},gr,{citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.value,r=t.citation,o=t.align;return Object(V.createElement)("blockquote",{className:"align".concat(o)},Object(V.createElement)(Y.RichText.Content,{value:n,multiline:!0}),!Y.RichText.isEmpty(r)&&Object(V.createElement)(Y.RichText.Content,{tagName:"footer",value:r}))}}]},jr=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).titleField=Object(V.createRef)(),e.editButton=Object(V.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(ne.a)(Object(ne.a)(e))),e.handleTitleChange=e.handleTitleChange.bind(Object(ne.a)(Object(ne.a)(e))),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(ne.a)(Object(ne.a)(e))),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"componentDidMount",value:function(){this.props.isEditing&&this.titleField.current&&this.titleField.current.select()}},{key:"componentDidUpdate",value:function(e){!e.isEditing&&this.props.isEditing&&this.titleField.current.select(),!e.isEditing&&!e.isSaving||this.props.isEditing||this.props.isSaving||this.editButton.current.focus()}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"handleTitleChange",value:function(e){this.props.onChangeTitle(e.target.value)}},{key:"handleTitleKeyDown",value:function(e){e.keyCode===dt.ESCAPE&&(e.stopPropagation(),this.props.onCancel())}},{key:"render",value:function(){var e=this.props,t=e.isEditing,n=e.title,r=e.isSaving,o=e.onEdit,a=e.instanceId;return Object(V.createElement)(V.Fragment,null,!t&&!r&&Object(V.createElement)("div",{className:"reusable-block-edit-panel"},Object(V.createElement)("b",{className:"reusable-block-edit-panel__info"},n),Object(V.createElement)(Q.Button,{ref:this.editButton,isLarge:!0,className:"reusable-block-edit-panel__button",onClick:o},Object(K.__)("Edit"))),(t||r)&&Object(V.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object(V.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(a),className:"reusable-block-edit-panel__label"},Object(K.__)("Name:")),Object(V.createElement)("input",{ref:this.titleField,type:"text",disabled:r,className:"reusable-block-edit-panel__title",value:n,onChange:this.handleTitleChange,onKeyDown:this.handleTitleKeyDown,id:"reusable-block-edit-panel__title-".concat(a)}),Object(V.createElement)(Q.Button,{type:"submit",isLarge:!0,isBusy:r,disabled:!n||r,className:"reusable-block-edit-panel__button"},Object(K.__)("Save"))))}}]),t}(V.Component),vr=Object(re.withInstanceId)(jr);var yr=function(e){var t=e.title,n=Object(K.sprintf)(Object(K.__)("Reusable Block: %s"),t);return Object(V.createElement)(Q.Tooltip,{text:n},Object(V.createElement)("span",{className:"reusable-block-indicator"},Object(V.createElement)(Q.Dashicon,{icon:"controls-repeat"})))},kr=function(e){function t(e){var n,r=e.reusableBlock;return Object(J.a)(this,t),(n=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).startEditing=n.startEditing.bind(Object(ne.a)(Object(ne.a)(n))),n.stopEditing=n.stopEditing.bind(Object(ne.a)(Object(ne.a)(n))),n.setAttributes=n.setAttributes.bind(Object(ne.a)(Object(ne.a)(n))),n.setTitle=n.setTitle.bind(Object(ne.a)(Object(ne.a)(n))),n.save=n.save.bind(Object(ne.a)(Object(ne.a)(n))),r&&r.isTemporary?n.state={isEditing:!0,title:r.title,changedAttributes:{}}:n.state={isEditing:!1,title:null,changedAttributes:null},n}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,changedAttributes:{}})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,changedAttributes:null})}},{key:"setAttributes",value:function(e){this.setState((function(t){if(null!==t.changedAttributes)return{changedAttributes:Object(U.a)({},t.changedAttributes,e)}}))}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.reusableBlock,n=e.onUpdateTitle,r=e.updateAttributes,o=e.block,a=e.onSave,c=this.state,i=c.title,l=c.changedAttributes;i!==t.title&&n(i),r(o.clientId,l),a(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.reusableBlock,r=e.block,o=e.isFetching,a=e.isSaving,c=this.state,i=c.isEditing,l=c.title,s=c.changedAttributes;if(!n&&o)return Object(V.createElement)(Q.Placeholder,null,Object(V.createElement)(Q.Spinner,null));if(!n||!r)return Object(V.createElement)(Q.Placeholder,null,Object(K.__)("Block has been deleted or is unavailable."));var u=Object(V.createElement)(Y.BlockEdit,Object($.a)({},this.props,{isSelected:i&&t,clientId:r.clientId,name:r.name,attributes:Object(U.a)({},r.attributes,s),setAttributes:i?this.setAttributes:G.noop}));return i||(u=Object(V.createElement)(Q.Disabled,null,u)),Object(V.createElement)(V.Fragment,null,(t||i)&&Object(V.createElement)(vr,{isEditing:i,title:null!==l?l:n.title,isSaving:a&&!n.isTemporary,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),!t&&!i&&Object(V.createElement)(yr,{title:n.title}),u)}}]),t}(V.Component),wr=Object(re.compose)([Object(oe.withSelect)((function(e,t){var n=e("core/editor"),r=n.__experimentalGetReusableBlock,o=n.__experimentalIsFetchingReusableBlock,a=n.__experimentalIsSavingReusableBlock,c=n.getBlock,i=t.attributes.ref,l=r(i);return{reusableBlock:l,isFetching:o(i),isSaving:a(i),block:l?c(l.clientId):null}})),Object(oe.withDispatch)((function(e,t){var n=e("core/editor"),r=n.__experimentalFetchReusableBlocks,o=n.updateBlockAttributes,a=n.__experimentalUpdateReusableBlockTitle,c=n.__experimentalSaveReusableBlock,i=t.attributes.ref;return{fetchReusableBlock:Object(G.partial)(r,i),updateAttributes:o,onUpdateTitle:Object(G.partial)(a,i),onSave:Object(G.partial)(c,i)}}))])(kr),Er="core/block",Cr={title:Object(K.__)("Reusable Block"),category:"reusable",description:Object(K.__)("Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere it’s used."),attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},edit:wr,save:function(){return null}},_r="core/separator",xr={title:Object(K.__)("Separator"),description:Object(K.__)("Create a break between ideas or sections with a horizontal separator."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.Path,{d:"M19 13H5v-2h14v2z"})),category:"layout",keywords:[Object(K.__)("horizontal-line"),"hr",Object(K.__)("divider")],styles:[{name:"default",label:Object(K.__)("Short Line"),isDefault:!0},{name:"wide",label:Object(K.__)("Wide Line")},{name:"dots",label:Object(K.__)("Dots")}],transforms:{from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(D.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},edit:function(e){var t=e.className;return Object(V.createElement)("hr",{className:t})},save:function(){return Object(V.createElement)("hr",null)}},Sr=n("UuzZ"),Tr="core/shortcode",Nr={title:Object(K.__)("Shortcode"),description:Object(K.__)("Insert additional custom elements with a WordPress shortcode."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z"})),category:"widgets",attributes:{text:{type:"string",source:"html"}},transforms:{from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(Sr.removep)(Object(Sr.autop)(n))}}},priority:20}]},supports:{customClassName:!1,className:!1,html:!1},edit:Object(re.withInstanceId)((function(e){var t=e.attributes,n=e.setAttributes,r=e.instanceId,o="blocks-shortcode-input-".concat(r);return Object(V.createElement)("div",{className:"wp-block-shortcode"},Object(V.createElement)("label",{htmlFor:o},Object(V.createElement)(Q.Dashicon,{icon:"shortcode"}),Object(K.__)("Shortcode")),Object(V.createElement)(Y.PlainText,{className:"input-control",id:o,value:t.text,placeholder:Object(K.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))})),save:function(e){var t=e.attributes;return Object(V.createElement)(V.RawHTML,null,t.text)}},Rr="core/spacer",Br={title:Object(K.__)("Spacer"),description:Object(K.__)("Add white space between blocks and customize its height."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"}))),category:"layout",attributes:{height:{type:"number",default:100}},edit:Object(re.withInstanceId)((function(e){var t=e.attributes,n=e.isSelected,r=e.setAttributes,o=e.toggleSelection,a=e.instanceId,c=t.height,i="block-spacer-height-input-".concat(a);return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Q.ResizableBox,{className:q()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:c},minHeight:"20",enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStop:function(e,t,n,a){r({height:parseInt(c+a.height,10)}),o(!0)},onResizeStart:function(){o(!1)}}),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Spacer Settings")},Object(V.createElement)(Q.BaseControl,{label:Object(K.__)("Height in pixels"),id:i},Object(V.createElement)("input",{type:"number",id:i,onChange:function(e){r({height:parseInt(e.target.value,10)})},value:c,min:"20",step:"10"})))))})),save:function(e){var t=e.attributes;return Object(V.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}},Ar=n("NMb1"),Ir=n.n(Ar),Pr="core/subhead",Lr={title:Object(K.__)("Subheading (deprecated)"),description:Object(K.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(V.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(V.createElement)(Q.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),category:"common",supports:{inserter:!1,multiple:!1},attributes:{content:{type:"string",source:"html",selector:"p"},align:{type:"string"}},transforms:{to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(D.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.align,a=t.content,c=t.placeholder;return Ir()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.AlignmentToolbar,{value:o,onChange:function(e){n({align:e})}})),Object(V.createElement)(Y.RichText,{tagName:"p",value:a,onChange:function(e){n({content:e})},style:{textAlign:o},className:r,placeholder:c||Object(K.__)("Write subheading…")}))},save:function(e){var t=e.attributes,n=t.align,r=t.content;return Object(V.createElement)(Y.RichText.Content,{tagName:"p",style:{textAlign:n},value:r})}};function Mr(e,t){var n=t.section,r=t.columnIndex;return Object(F.a)({},n,e[n].map((function(e){return{cells:Object(H.a)(e.cells.slice(0,r)).concat([{content:"",tag:"td"}],Object(H.a)(e.cells.slice(r)))}})))}var zr=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).onCreateTable=e.onCreateTable.bind(Object(ne.a)(Object(ne.a)(e))),e.onChangeFixedLayout=e.onChangeFixedLayout.bind(Object(ne.a)(Object(ne.a)(e))),e.onChange=e.onChange.bind(Object(ne.a)(Object(ne.a)(e))),e.onChangeInitialColumnCount=e.onChangeInitialColumnCount.bind(Object(ne.a)(Object(ne.a)(e))),e.onChangeInitialRowCount=e.onChangeInitialRowCount.bind(Object(ne.a)(Object(ne.a)(e))),e.renderSection=e.renderSection.bind(Object(ne.a)(Object(ne.a)(e))),e.getTableControls=e.getTableControls.bind(Object(ne.a)(Object(ne.a)(e))),e.onInsertRow=e.onInsertRow.bind(Object(ne.a)(Object(ne.a)(e))),e.onInsertRowBefore=e.onInsertRowBefore.bind(Object(ne.a)(Object(ne.a)(e))),e.onInsertRowAfter=e.onInsertRowAfter.bind(Object(ne.a)(Object(ne.a)(e))),e.onDeleteRow=e.onDeleteRow.bind(Object(ne.a)(Object(ne.a)(e))),e.onInsertColumn=e.onInsertColumn.bind(Object(ne.a)(Object(ne.a)(e))),e.onInsertColumnBefore=e.onInsertColumnBefore.bind(Object(ne.a)(Object(ne.a)(e))),e.onInsertColumnAfter=e.onInsertColumnAfter.bind(Object(ne.a)(Object(ne.a)(e))),e.onDeleteColumn=e.onDeleteColumn.bind(Object(ne.a)(Object(ne.a)(e))),e.state={initialRowCount:2,initialColumnCount:2,selectedCell:null},e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"onChangeInitialColumnCount",value:function(e){this.setState({initialColumnCount:e})}},{key:"onChangeInitialRowCount",value:function(e){this.setState({initialRowCount:e})}},{key:"onCreateTable",value:function(e){e.preventDefault();var t,n,r,o=this.props.setAttributes,a=this.state,c=a.initialRowCount,i=a.initialColumnCount;c=parseInt(c,10)||2,i=parseInt(i,10)||2,o((n=(t={rowCount:c,columnCount:i}).rowCount,r=t.columnCount,{body:Object(G.times)(n,(function(){return{cells:Object(G.times)(r,(function(){return{content:"",tag:"td"}}))}}))}))}},{key:"onChangeFixedLayout",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({hasFixedLayout:!t.hasFixedLayout})}},{key:"onChange",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes;(0,n.setAttributes)(function(e,t){var n=t.section,r=t.rowIndex,o=t.columnIndex,a=t.content;return Object(F.a)({},n,e[n].map((function(e,t){return t!==r?e:{cells:e.cells.map((function(e,t){return t!==o?e:Object(U.a)({},e,{content:a})}))}})))}(r,{section:t.section,rowIndex:t.rowIndex,columnIndex:t.columnIndex,content:e}))}}},{key:"onInsertRow",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.section,c=t.rowIndex;this.setState({selectedCell:null}),o(function(e,t){var n=t.section,r=t.rowIndex,o=e[n][0].cells.length;return Object(F.a)({},n,Object(H.a)(e[n].slice(0,r)).concat([{cells:Object(G.times)(o,(function(){return{content:"",tag:"td"}}))}],Object(H.a)(e[n].slice(r))))}(r,{section:a,rowIndex:c+e}))}}},{key:"onInsertRowBefore",value:function(){this.onInsertRow(0)}},{key:"onInsertRowAfter",value:function(){this.onInsertRow(1)}},{key:"onDeleteRow",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.section,a=e.rowIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.section,r=t.rowIndex;return Object(F.a)({},n,e[n].filter((function(e,t){return t!==r})))}(n,{section:o,rowIndex:a}))}}},{key:"onInsertColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.section,c=t.columnIndex;this.setState({selectedCell:null}),o(Mr(r,{section:a,columnIndex:c+e}))}}},{key:"onInsertColumnBefore",value:function(){this.onInsertColumn(0)}},{key:"onInsertColumnAfter",value:function(){this.onInsertColumn(1)}},{key:"onDeleteColumn",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.section,a=e.columnIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.section,r=t.columnIndex;return Object(F.a)({},n,e[n].map((function(e){return{cells:e.cells.filter((function(e,t){return t!==r}))}})).filter((function(e){return e.cells.length})))}(n,{section:o,columnIndex:a}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:e})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:"table-row-before",title:Object(K.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:"table-row-after",title:Object(K.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:"table-row-delete",title:Object(K.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:"table-col-before",title:Object(K.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:"table-col-after",title:Object(K.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:"table-col-delete",title:Object(K.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,n=e.type,r=e.rows;if(!r.length)return null;var o="t".concat(n),a=this.state.selectedCell;return Object(V.createElement)(o,null,r.map((function(e,r){var o=e.cells;return Object(V.createElement)("tr",{key:r},o.map((function(e,o){var c=e.content,i=e.tag,l=a&&n===a.section&&r===a.rowIndex&&o===a.columnIndex,s={section:n,rowIndex:r,columnIndex:o},u=q()({"is-selected":l});return Object(V.createElement)(i,{key:o,className:u},Object(V.createElement)(Y.RichText,{className:"wp-block-table__cell-content",value:c,onChange:t.onChange,unstableOnFocus:t.createOnFocus(s)}))})))})))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,r=this.state,o=r.initialRowCount,a=r.initialColumnCount,c=t.hasFixedLayout,i=t.head,l=t.body,s=t.foot,u=!i.length&&!l.length&&!s.length,b=this.renderSection;if(u)return Object(V.createElement)("form",{onSubmit:this.onCreateTable},Object(V.createElement)(Q.TextControl,{type:"number",label:Object(K.__)("Column Count"),value:a,onChange:this.onChangeInitialColumnCount,min:"1"}),Object(V.createElement)(Q.TextControl,{type:"number",label:Object(K.__)("Row Count"),value:o,onChange:this.onChangeInitialRowCount,min:"1"}),Object(V.createElement)(Q.Button,{isPrimary:!0,type:"submit"},Object(K.__)("Create")));var m=q()(n,{"has-fixed-layout":c});return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Q.DropdownMenu,{icon:"editor-table",label:Object(K.__)("Edit Table"),controls:this.getTableControls()}))),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Table Settings"),className:"blocks-table-settings"},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Fixed width table cells"),checked:!!c,onChange:this.onChangeFixedLayout}))),Object(V.createElement)("table",{className:m},Object(V.createElement)(b,{type:"head",rows:i}),Object(V.createElement)(b,{type:"body",rows:l}),Object(V.createElement)(b,{type:"foot",rows:s})))}}]),t}(V.Component),Hr={tr:{children:{th:{children:Object(D.getPhrasingContentSchema)()},td:{children:Object(D.getPhrasingContentSchema)()}}}},Dr={table:{children:{thead:{children:Hr},tfoot:{children:Hr},tbody:{children:Hr}}}};function Fr(e){return{type:"array",default:[],source:"query",selector:"t".concat(e," tr"),query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"}}}}}}var Ur="core/table",Vr={title:Object(K.__)("Table"),description:Object(K.__)("Insert a table — perfect for sharing charts and data."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M20 3H5L3 5v14l2 2h15l2-2V5l-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"}))),category:"formatting",attributes:{hasFixedLayout:{type:"boolean",default:!1},head:Fr("head"),body:Fr("body"),foot:Fr("foot")},styles:[{name:"regular",label:Object(K._x)("Regular","block style"),isDefault:!0},{name:"stripes",label:Object(K.__)("Stripes")}],supports:{align:!0},transforms:{from:[{type:"raw",selector:"table",schema:Dr}]},edit:zr,save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,o=t.body,a=t.foot;if(!r.length&&!o.length&&!a.length)return null;var c=q()({"has-fixed-layout":n}),i=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object(V.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(V.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag;return Object(V.createElement)(Y.RichText.Content,{tagName:r,value:n,key:t})})))})))};return Object(V.createElement)("table",{className:c},Object(V.createElement)(i,{type:"head",rows:r}),Object(V.createElement)(i,{type:"body",rows:o}),Object(V.createElement)(i,{type:"foot",rows:a}))}},Wr="core/template",qr={title:Object(K.__)("Reusable Template"),category:"reusable",description:Object(K.__)("Template block used as a container."),icon:Object(V.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(V.createElement)(Q.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"}))),supports:{customClassName:!1,html:!1,inserter:!1},edit:function(){return Object(V.createElement)(Y.InnerBlocks,null)},save:function(){return Object(V.createElement)(Y.InnerBlocks.Content,null)}},Gr="core/text-columns",Kr={supports:{inserter:!1},title:Object(K.__)("Text Columns (deprecated)"),description:Object(K.__)("This block is deprecated. Please use the Columns block instead."),icon:"columns",category:"layout",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},transforms:{to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,n=e.columns,r=e.content,o=e.width;return Object(D.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:n},r.map((function(e){var t=e.children;return Object(D.createBlock)("core/column",{},[Object(D.createBlock)("core/paragraph",{content:t})])})))}}]},getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.width,a=t.content,c=t.columns;return Ir()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.BlockAlignmentToolbar,{value:o,onChange:function(e){return n({width:e})},controls:["center","wide","full"]})),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,null,Object(V.createElement)(Q.RangeControl,{label:Object(K.__)("Columns"),value:c,onChange:function(e){return n({columns:e})},min:2,max:4}))),Object(V.createElement)("div",{className:"".concat(r," align").concat(o," columns-").concat(c)},Object(G.times)(c,(function(e){return Object(V.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(V.createElement)(Y.RichText,{tagName:"p",value:Object(G.get)(a,[e,"children"]),onChange:function(t){n({content:Object(H.a)(a.slice(0,e)).concat([{children:t}],Object(H.a)(a.slice(e+1)))})},placeholder:Object(K.__)("New Column")}))}))))},save:function(e){var t=e.attributes,n=t.width,r=t.content,o=t.columns;return Object(V.createElement)("div",{className:"align".concat(n," columns-").concat(o)},Object(G.times)(o,(function(e){return Object(V.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(V.createElement)(Y.RichText.Content,{tagName:"p",value:Object(G.get)(r,[e,"children"])}))})))}},Yr="core/verse",Qr={title:Object(K.__)("Verse"),description:Object(K.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.Path,{d:"M3 17v4h4l11-11-4-4L3 17zm3 2H5v-1l9-9 1 1-9 9zM21 6l-3-3h-1l-2 2 4 4 2-2V6z"})),category:"formatting",keywords:[Object(K.__)("poetry")],attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(D.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(D.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=e.mergeBlocks,a=t.textAlign,c=t.content;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.AlignmentToolbar,{value:a,onChange:function(e){n({textAlign:e})}})),Object(V.createElement)(Y.RichText,{tagName:"pre",value:c,onChange:function(e){n({content:e})},style:{textAlign:a},placeholder:Object(K.__)("Write…"),wrapperClassName:r,onMerge:o}))},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content;return Object(V.createElement)(Y.RichText.Content,{tagName:"pre",style:{textAlign:n},value:r})},merge:function(e,t){return{content:e.content+t.content}}},$r=["video"],Jr=["image"],Zr=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.videoPlayer=Object(V.createRef)(),e.posterImageButton=Object(V.createRef)(),e.toggleAttribute=e.toggleAttribute.bind(Object(ne.a)(Object(ne.a)(e))),e.onSelectURL=e.onSelectURL.bind(Object(ne.a)(Object(ne.a)(e))),e.onSelectPoster=e.onSelectPoster.bind(Object(ne.a)(Object(ne.a)(e))),e.onRemovePoster=e.onRemovePoster.bind(Object(ne.a)(Object(ne.a)(e))),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeOperations,o=t.setAttributes,a=n.id,c=n.src,i=void 0===c?"":c;if(!a&&Object(de.isBlobURL)(i)){var l=Object(de.getBlobByURL)(i);l&&Object(Y.mediaUpload)({filesList:[l],onFileChange:function(e){var t=Object(he.a)(e,1)[0].url;o({src:t})},onError:function(t){e.setState({editing:!0}),r.createErrorNotice(t)},allowedTypes:$r})}}},{key:"componentDidUpdate",value:function(e){this.props.attributes.poster!==e.attributes.poster&&this.videoPlayer.current.load()}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(F.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=He({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"onSelectPoster",value:function(e){(0,this.props.setAttributes)({poster:e.url})}},{key:"onRemovePoster",value:function(){(0,this.props.setAttributes)({poster:""}),this.posterImageButton.current.focus()}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,r=t.caption,o=t.controls,a=t.loop,c=t.muted,i=t.poster,l=t.preload,s=t.src,u=this.props,b=u.setAttributes,m=u.isSelected,d=u.className,h=u.noticeOperations,p=u.noticeUI,g=this.state.editing,O=function(){e.setState({editing:!0})};return g?Object(V.createElement)(Y.MediaPlaceholder,{icon:"media-video",className:d,onSelect:function(t){if(!t||!t.url)return b({src:void 0,id:void 0}),void O();b({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:$r,value:this.props.attributes,notices:p,onError:h.createErrorNotice}):Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Q.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(K.__)("Edit video"),onClick:O,icon:"edit"}))),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Video Settings")},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:a}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Muted"),onChange:this.toggleAttribute("muted"),checked:c}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Playback Controls"),onChange:this.toggleAttribute("controls"),checked:o}),Object(V.createElement)(Q.SelectControl,{label:Object(K.__)("Preload"),value:l,onChange:function(e){return b({preload:e})},options:[{value:"auto",label:Object(K.__)("Auto")},{value:"metadata",label:Object(K.__)("Metadata")},{value:"none",label:Object(K.__)("None")}]}),Object(V.createElement)(Y.MediaUploadCheck,null,Object(V.createElement)(Q.BaseControl,{className:"editor-video-poster-control",label:Object(K.__)("Poster Image")},Object(V.createElement)(Y.MediaUpload,{title:Object(K.__)("Select Poster Image"),onSelect:this.onSelectPoster,allowedTypes:Jr,render:function(t){var n=t.open;return Object(V.createElement)(Q.Button,{isDefault:!0,onClick:n,ref:e.posterImageButton},e.props.attributes.poster?Object(K.__)("Replace image"):Object(K.__)("Select Poster Image"))}}),!!this.props.attributes.poster&&Object(V.createElement)(Q.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(K.__)("Remove Poster Image")))))),Object(V.createElement)("figure",{className:d},Object(V.createElement)(Q.Disabled,null,Object(V.createElement)("video",{controls:o,poster:i,src:s,ref:this.videoPlayer})),(!Y.RichText.isEmpty(r)||m)&&Object(V.createElement)(Y.RichText,{tagName:"figcaption",placeholder:Object(K.__)("Write caption…"),value:r,onChange:function(e){return b({caption:e})},inlineToolbar:!0})))}}]),t}(V.Component),Xr=Object(Q.withNotices)(Zr),eo="core/video",to={title:Object(K.__)("Video"),description:Object(K.__)("Embed a video from your media library or upload a new one."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.Path,{d:"M4 6l2 4h14v8H4V6m18-2h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4L2 6v12l2 2h16l2-2V4z"})),keywords:[Object(K.__)("movie")],category:"common",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"}},transforms:{from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object(D.createBlock)("core/video",{src:Object(de.createBlobURL)(t)})}}]},supports:{align:!0},edit:Xr,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.controls,a=t.loop,c=t.muted,i=t.poster,l=t.preload,s=t.src;return Object(V.createElement)("figure",null,s&&Object(V.createElement)("video",{autoPlay:n,controls:o,loop:a,muted:c,poster:i,preload:"metadata"!==l?l:void 0,src:s}),!Y.RichText.isEmpty(r)&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:r}))}},no=window.wp;var ro=function(e){function t(e){var n;return Object(J.a)(this,t),(n=Object(X.a)(this,Object(ee.a)(t).call(this,e))).initialize=n.initialize.bind(Object(ne.a)(Object(ne.a)(n))),n.onSetup=n.onSetup.bind(Object(ne.a)(Object(ne.a)(n))),n.focus=n.focus.bind(Object(ne.a)(Object(ne.a)(n))),n}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"componentDidMount",value:function(){var e=window.wpEditorL10n.tinymce,t=e.baseURL,n=e.suffix;window.tinymce.EditorManager.overrideDefaults({base_url:t,suffix:n}),"complete"===document.readyState?this.initialize():window.addEventListener("DOMContentLoaded",this.initialize)}},{key:"componentWillUnmount",value:function(){window.addEventListener("DOMContentLoaded",this.initialize),no.oldEditor.remove("editor-".concat(this.props.clientId))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.clientId,r=t.attributes.content,o=window.tinymce.get("editor-".concat(n));e.attributes.content!==r&&o.setContent(r||"")}},{key:"initialize",value:function(){var e=this.props.clientId,t=window.wpEditorL10n.tinymce.settings;no.oldEditor.initialize("editor-".concat(e),{tinymce:Object(U.a)({},t,{inline:!0,content_css:!1,fixed_toolbar_container:"#toolbar-".concat(e),setup:this.onSetup})})}},{key:"onSetup",value:function(e){var t,n=this,r=this.props,o=r.attributes.content,a=r.setAttributes,c=this.ref;this.editor=e,o&&e.on("loadContent",(function(){return e.setContent(o)})),e.on("blur",(function(){return t=e.selection.getBookmark(2,!0),a({content:e.getContent()}),e.once("focus",(function(){t&&e.selection.moveToBookmark(t)})),!1})),e.on("mousedown touchstart",(function(){t=null})),e.on("keydown",(function(t){t.keyCode!==dt.BACKSPACE&&t.keyCode!==dt.DELETE||!function(e){var t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(n.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===dt.F10&&t.stopPropagation()})),e.addButton("kitchensink",{tooltip:Object(K._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(c,"has-advanced-toolbar",t)}}),e.on("init",(function(){e.settings.toolbar1&&-1===e.settings.toolbar1.indexOf("kitchensink")&&e.dom.addClass(c,"has-advanced-toolbar")})),e.addButton("wp_add_media",{tooltip:Object(K.__)("Insert Media"),icon:"dashicon dashicons-admin-media",cmd:"WP_Medialib"}),e.on("init",(function(){var e=n.editor.getBody();document.activeElement===e&&(e.blur(),n.editor.focus())}))}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this,t=this.props.clientId;return[Object(V.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),ref:function(t){return e.ref=t},className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(K.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(V.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),t}(V.Component),oo="core/freeform",ao={title:Object(K._x)("Classic","block title"),description:Object(K.__)("Use the classic WordPress editor."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M0,0h24v24H0V0z M0,0h24v24H0V0z",fill:"none"}),Object(V.createElement)(Q.Path,{d:"m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z"}),Object(V.createElement)(Q.Rect,{x:"11",y:"8",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"11",y:"11",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"8",y:"8",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"8",y:"11",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"5",y:"11",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"5",y:"8",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"8",y:"14",width:"8",height:"2"}),Object(V.createElement)(Q.Rect,{x:"14",y:"11",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"14",y:"8",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"17",y:"11",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"17",y:"8",width:"2",height:"2"})),category:"formatting",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1},edit:ro,save:function(e){var t=e.attributes.content;return Object(V.createElement)(V.RawHTML,null,t)}},co=function(){[r,o,a,i,k,c,N,l,s,u,b,m,d,h,p,g].concat(Object(H.a)(yn),Object(H.a)(kn),[O,window.wp&&window.wp.oldEditor?z:null,f,j,v,y,w,E,C,_,x,T,S,R,B,A,I,P,L,M]).forEach((function(e){if(e){var t=e.name,n=e.settings;Object(D.registerBlockType)(t,n)}})),Object(D.setDefaultBlockName)(be),window.wp&&window.wp.oldEditor&&Object(D.setFreeformContentHandlerName)(oo),Object(D.setUnregisteredTypeHandlerName)(or)}},K9lf:function(e,t){!function(){e.exports=this.wp.compose}()},KEfo:function(e,t){!function(){e.exports=this.wp.viewport}()},KQm4:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("a3WO");var o=n("25BE"),a=n("BsWD");function c(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(a.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},Mmq9:function(e,t){!function(){e.exports=this.wp.url}()},NMb1:function(e,t){!function(){e.exports=this.wp.deprecated}()},Nehr:function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},ODXe:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("DSFK");var o=n("BsWD"),a=n("PYwp");function c(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}}(e,t)||Object(o.a)(e,t)||Object(a.a)()}},PYwp:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},RxS6:function(e,t){!function(){e.exports=this.wp.keycodes}()},TSYQ:function(e,t,n){var r; +*/!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),b=["%","/","?",";","#"].concat(u),m=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},f=n("s4NR");function j(e,t,n){if(e&&o.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),i=-1!==a&&a127?A+="x":A+=B[I];if(!A.match(d)){var L=N.slice(0,x),M=N.slice(x+1),z=B.match(h);z&&(L.push(z[1]),M.unshift(z[2])),M.length&&(j="/"+M.join(".")+j),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var H=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+H,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==j[0]&&(j="/"+j))}if(!p[k])for(x=0,R=u.length;x0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=w.slice(-1)[0],_=(n.host||e.host||w.length>1)&&("."===C||".."===C)||""===C,x=0,S=w.length;S>=0;S--)"."===(C=w[S])?w.splice(S,1):".."===C?(w.splice(S,1),x++):x&&(w.splice(S,1),x--);if(!y&&!k)for(;x--;x)w.unshift("..");!y||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),_&&"/"!==w.join("/").substr(-1)&&w.push("");var T,N=""===w[0]||w[0]&&"/"===w[0].charAt(0);E&&(n.hostname=n.host=N?"":w.length?w.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift()));return(y=y||n.host&&w.length)&&!N&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},DSFK:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},Ff2n:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},FqII:function(e,t){!function(){e.exports=this.wp.date}()},GRId:function(e,t){!function(){e.exports=this.wp.element}()},GYWy:function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(a){t&&t.nodeType,e&&e.nodeType;var c="object"==typeof r&&r;c.global!==c&&c.window!==c&&c.self;var i,l=2147483647,s=/^xn--/,u=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,h=String.fromCharCode;function p(e){throw new RangeError(m[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function O(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(b,".")).split("."),t).join(".")}function f(e){for(var t,n,r=[],o=0,a=e.length;o=55296&&t<=56319&&o65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function v(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function y(e,t,n){var r=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;r+=36)e=d(e/35);return d(r+36*e/(e+38))}function k(e){var t,n,r,o,a,c,i,s,u,b,m,h=[],g=e.length,O=0,f=128,v=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r=128&&p("not-basic"),h.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=g&&p("invalid-input"),((s=(m=e.charCodeAt(o++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:36)>=36||s>d((l-O)/c))&&p("overflow"),O+=s*c,!(s<(u=i<=v?1:i>=v+26?26:i-v));i+=36)c>d(l/(b=36-u))&&p("overflow"),c*=b;v=y(O-a,t=h.length+1,0==a),d(O/t)>l-f&&p("overflow"),f+=d(O/t),O%=t,h.splice(O++,0,f)}return j(h)}function w(e){var t,n,r,o,a,c,i,s,u,b,m,g,O,j,k,w=[];for(g=(e=f(e)).length,t=128,n=0,a=72,c=0;c=t&&md((l-n)/(O=r+1))&&p("overflow"),n+=(i-t)*O,t=i,c=0;cl&&p("overflow"),m==t){for(s=n,u=36;!(s<(b=u<=a?1:u>=a+26?26:u-a));u+=36)k=s-b,j=36-b,w.push(h(v(b+k%j,0))),s=d(k/j);w.push(h(v(s,0))),a=y(n,O,r==o),n=0,++r}++n,++t}return w.join("")}i={version:"1.4.1",ucs2:{decode:f,encode:j},decode:k,encode:w,toASCII:function(e){return O(e,(function(e){return u.test(e)?"xn--"+w(e):e}))},toUnicode:function(e){return O(e,(function(e){return s.test(e)?k(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n("YuTi")(e),n("yLpj"))},HSyU:function(e,t){!function(){e.exports=this.wp.blocks}()},JX7q:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},Ji7U:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},K51g:function(e,t,n){"use strict";n.r(t),n.d(t,"registerCoreBlocks",(function(){return io}));var r={};n.r(r),n.d(r,"name",(function(){return be})),n.d(r,"settings",(function(){return me}));var o={};n.r(o),n.d(o,"name",(function(){return Qe})),n.d(o,"settings",(function(){return et}));var a={};n.r(a),n.d(a,"getLevelFromHeadingNodeName",(function(){return rt})),n.d(a,"name",(function(){return it})),n.d(a,"settings",(function(){return lt}));var c={};n.r(c),n.d(c,"name",(function(){return bt})),n.d(c,"settings",(function(){return mt}));var i={};n.r(i),n.d(i,"name",(function(){return wt})),n.d(i,"settings",(function(){return Ct}));var l={};n.r(l),n.d(l,"name",(function(){return _t})),n.d(l,"settings",(function(){return xt}));var s={};n.r(s),n.d(s,"name",(function(){return Rt})),n.d(s,"settings",(function(){return Bt}));var u={};n.r(u),n.d(u,"name",(function(){return zt})),n.d(u,"settings",(function(){return Dt}));var b={};n.r(b),n.d(b,"name",(function(){return Vt})),n.d(b,"settings",(function(){return Wt}));var m={};n.r(m),n.d(m,"name",(function(){return qt})),n.d(m,"settings",(function(){return Gt}));var d={};n.r(d),n.d(d,"name",(function(){return Jt})),n.d(d,"settings",(function(){return Zt}));var h={};n.r(h),n.d(h,"name",(function(){return Xt})),n.d(h,"settings",(function(){return en}));var p={};n.r(p),n.d(p,"name",(function(){return rn})),n.d(p,"settings",(function(){return an}));var g={};n.r(g),n.d(g,"name",(function(){return jn})),n.d(g,"settings",(function(){return vn})),n.d(g,"common",(function(){return yn})),n.d(g,"others",(function(){return kn}));var O={};n.r(O),n.d(O,"name",(function(){return xn})),n.d(O,"settings",(function(){return Sn}));var f={};n.r(f),n.d(f,"name",(function(){return Tn})),n.d(f,"settings",(function(){return Nn}));var j={};n.r(j),n.d(j,"name",(function(){return Mn})),n.d(j,"settings",(function(){return Hn}));var v={};n.r(v),n.d(v,"name",(function(){return Fn})),n.d(v,"settings",(function(){return Un}));var y={};n.r(y),n.d(y,"name",(function(){return $n})),n.d(y,"settings",(function(){return Jn}));var k={};n.r(k),n.d(k,"name",(function(){return tr})),n.d(k,"settings",(function(){return nr}));var w={};n.r(w),n.d(w,"name",(function(){return ar})),n.d(w,"settings",(function(){return cr}));var E={};n.r(E),n.d(E,"name",(function(){return lr})),n.d(E,"settings",(function(){return sr}));var C={};n.r(C),n.d(C,"name",(function(){return ur})),n.d(C,"settings",(function(){return br}));var _={};n.r(_),n.d(_,"name",(function(){return mr})),n.d(_,"settings",(function(){return dr}));var x={};n.r(x),n.d(x,"name",(function(){return fr})),n.d(x,"settings",(function(){return jr}));var S={};n.r(S),n.d(S,"name",(function(){return Cr})),n.d(S,"settings",(function(){return _r}));var T={};n.r(T),n.d(T,"name",(function(){return xr})),n.d(T,"settings",(function(){return Sr}));var N={};n.r(N),n.d(N,"name",(function(){return Nr})),n.d(N,"settings",(function(){return Rr}));var R={};n.r(R),n.d(R,"name",(function(){return Br})),n.d(R,"settings",(function(){return Ar}));var B={};n.r(B),n.d(B,"name",(function(){return Lr})),n.d(B,"settings",(function(){return Mr}));var A={};n.r(A),n.d(A,"name",(function(){return Vr})),n.d(A,"settings",(function(){return Wr}));var I={};n.r(I),n.d(I,"name",(function(){return qr})),n.d(I,"settings",(function(){return Gr}));var P={};n.r(P),n.d(P,"name",(function(){return Kr})),n.d(P,"settings",(function(){return Yr}));var L={};n.r(L),n.d(L,"name",(function(){return Qr})),n.d(L,"settings",(function(){return $r}));var M={};n.r(M),n.d(M,"name",(function(){return to})),n.d(M,"settings",(function(){return no}));var z={};n.r(z),n.d(z,"name",(function(){return ao})),n.d(z,"settings",(function(){return co}));var H=n("KQm4"),D=(n("jZUy"),n("HSyU")),F=n("rePB"),U=n("vpQ4"),V=n("GRId"),W=n("TSYQ"),q=n.n(W),G=n("YLtl"),K=n("l3Sj"),Y=n("jSdM"),Q=n("tI+e"),$=n("wx14"),J=n("1OyB"),Z=n("vuIU"),X=n("md7G"),ee=n("foSv"),te=n("Ji7U"),ne=n("JX7q"),re=n("K9lf"),oe=n("1ZqX"),ae=window.getComputedStyle,ce=Object(Q.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,a=n.fontSize,c=n.customFontSize,i=e.querySelector('[contenteditable="true"]'),l=i?ae(i):null;return{fallbackBackgroundColor:o||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:a||c||!l?void 0:parseInt(l.fontSize)||void 0}})),ie=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).onReplace=e.onReplace.bind(Object(ne.a)(Object(ne.a)(e))),e.toggleDropCap=e.toggleDropCap.bind(Object(ne.a)(Object(ne.a)(e))),e.splitBlock=e.splitBlock.bind(Object(ne.a)(Object(ne.a)(e))),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"onReplace",value:function(e){var t=this.props,n=t.attributes,r=t.onReplace;r(e.map((function(e,t){return 0===t&&"core/paragraph"===e.name?Object(U.a)({},e,{attributes:Object(U.a)({},n,e.attributes)}):e})))}},{key:"toggleDropCap",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({dropCap:!t.dropCap})}},{key:"getDropCapHelp",value:function(e){return e?Object(K.__)("Showing large initial letter."):Object(K.__)("Toggle to show a large initial letter.")}},{key:"splitBlock",value:function(e,t){for(var n=this.props,r=n.attributes,o=n.insertBlocksAfter,a=n.setAttributes,c=n.onReplace,i=arguments.length,l=new Array(i>2?i-2:0),s=2;s1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))},ze=function(e){return Object(G.includes)(e,'class="wp-embedded-content" data-secret')},He=function(e,t){var n=e.preview,r=e.name,o=e.attributes.url;if(o){var a=function(e){for(var t=Object(H.a)(Re).concat(Object(H.a)(Be)),n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n){for(var r={"wp-has-aspect-ratio":!1},o=0;o=b.ratio)return Le()(t,(u={},Object(F.a)(u,b.className,n),Object(F.a)(u,"wp-has-aspect-ratio",n),u))}return t}function Fe(e,t){var n=Object(V.createElement)("a",{href:e},e);t(Object(D.createBlock)("core/paragraph",{content:Object(V.renderToString)(n)}))}var Ue=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(ne.a)(Object(ne.a)(e))),e.calculateSize=e.calculateSize.bind(Object(ne.a)(Object(ne.a)(e))),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(e){this.props.src!==e.src&&(this.setState({width:void 0,height:void 0}),this.fetchImageSize()),this.props.dirtynessTrigger!==e.dirtynessTrigger&&this.calculateSize()}},{key:"componentDidMount",value:function(){this.fetchImageSize()}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.onload=G.noop)}},{key:"fetchImageSize",value:function(){this.image=new window.Image,this.image.onload=this.calculateSize,this.image.src=this.props.src}},{key:"calculateSize",value:function(){var e=this.container.clientWidth,t=this.image.width>e,n=this.image.height/this.image.width,r=t?e:this.image.width,o=t?e*n:this.image.height;this.setState({width:r,height:o})}},{key:"render",value:function(){var e={imageWidth:this.image&&this.image.width,imageHeight:this.image&&this.image.height,containerWidth:this.container&&this.container.clientWidth,containerHeight:this.container&&this.container.clientHeight,imageWidthWithinContainer:this.state.width,imageHeightWithinContainer:this.state.height};return Object(V.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}(V.Component),Ve=Object(re.withGlobalEvents)({resize:"calculateSize"})(Ue),We=["image"],qe=function(e){var t=Object(G.pick)(e,["alt","id","link","caption"]);return t.url=Object(G.get)(e,["sizes","large","url"])||Object(G.get)(e,["media_details","sizes","large","source_url"])||e.url,t},Ge=function(e,t){return!e&&Object(de.isBlobURL)(t)},Ke=function(e){function t(e){var n,r=e.attributes;return Object(J.a)(this,t),(n=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).updateAlt=n.updateAlt.bind(Object(ne.a)(Object(ne.a)(n))),n.updateAlignment=n.updateAlignment.bind(Object(ne.a)(Object(ne.a)(n))),n.onFocusCaption=n.onFocusCaption.bind(Object(ne.a)(Object(ne.a)(n))),n.onImageClick=n.onImageClick.bind(Object(ne.a)(Object(ne.a)(n))),n.onSelectImage=n.onSelectImage.bind(Object(ne.a)(Object(ne.a)(n))),n.onSelectURL=n.onSelectURL.bind(Object(ne.a)(Object(ne.a)(n))),n.updateImageURL=n.updateImageURL.bind(Object(ne.a)(Object(ne.a)(n))),n.updateWidth=n.updateWidth.bind(Object(ne.a)(Object(ne.a)(n))),n.updateHeight=n.updateHeight.bind(Object(ne.a)(Object(ne.a)(n))),n.updateDimensions=n.updateDimensions.bind(Object(ne.a)(Object(ne.a)(n))),n.onSetCustomHref=n.onSetCustomHref.bind(Object(ne.a)(Object(ne.a)(n))),n.onSetLinkClass=n.onSetLinkClass.bind(Object(ne.a)(Object(ne.a)(n))),n.onSetLinkRel=n.onSetLinkRel.bind(Object(ne.a)(Object(ne.a)(n))),n.onSetLinkDestination=n.onSetLinkDestination.bind(Object(ne.a)(Object(ne.a)(n))),n.onSetNewTab=n.onSetNewTab.bind(Object(ne.a)(Object(ne.a)(n))),n.getFilename=n.getFilename.bind(Object(ne.a)(Object(ne.a)(n))),n.toggleIsEditing=n.toggleIsEditing.bind(Object(ne.a)(Object(ne.a)(n))),n.onUploadError=n.onUploadError.bind(Object(ne.a)(Object(ne.a)(n))),n.onImageError=n.onImageError.bind(Object(ne.a)(Object(ne.a)(n))),n.state={captionFocused:!1,isEditing:!r.url},n}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.noticeOperations,a=n.id,c=n.url,i=void 0===c?"":c;if(Ge(a,i)){var l=Object(de.getBlobByURL)(i);l&&Object(Y.mediaUpload)({filesList:[l],onFileChange:function(e){var t=Object(he.a)(e,1)[0];r(qe(t))},allowedTypes:We,onError:function(t){o.createErrorNotice(t),e.setState({isEditing:!0})}})}}},{key:"componentDidUpdate",value:function(e){var t=e.attributes,n=t.id,r=t.url,o=void 0===r?"":r,a=this.props.attributes,c=a.id,i=a.url,l=void 0===i?"":i;Ge(n,o)&&!Ge(c,l)&&Object(de.revokeBlobURL)(l),!this.props.isSelected&&e.isSelected&&this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"onUploadError",value:function(e){this.props.noticeOperations.createErrorNotice(e),this.setState({isEditing:!0})}},{key:"onSelectImage",value:function(e){e&&e.url?(this.setState({isEditing:!1}),this.props.setAttributes(Object(U.a)({},qe(e),{width:void 0,height:void 0}))):this.props.setAttributes({url:void 0,alt:void 0,id:void 0,caption:void 0})}},{key:"onSetLinkDestination",value:function(e){var t;t="none"===e?void 0:"media"===e?this.props.image&&this.props.image.source_url||this.props.attributes.url:"attachment"===e?this.props.image&&this.props.image.link:this.props.attributes.href,this.props.setAttributes({linkDestination:e,href:t})}},{key:"onSelectURL",value:function(e){e!==this.props.attributes.url&&this.props.setAttributes({url:e,id:void 0}),this.setState({isEditing:!1})}},{key:"onImageError",value:function(e){var t=He({attributes:{url:e}});void 0!==t&&this.props.onReplace(t)}},{key:"onSetCustomHref",value:function(e){this.props.setAttributes({href:e})}},{key:"onSetLinkClass",value:function(e){this.props.setAttributes({linkClass:e})}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,r=t;n&&!t?r="noreferrer noopener":n||"noreferrer noopener"!==t||(r=void 0),this.props.setAttributes({linkTarget:n,rel:r})}},{key:"onFocusCaption",value:function(){this.state.captionFocused||this.setState({captionFocused:!0})}},{key:"onImageClick",value:function(){this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"updateAlt",value:function(e){this.props.setAttributes({alt:e})}},{key:"updateAlignment",value:function(e){var t=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};this.props.setAttributes(Object(U.a)({},t,{align:e}))}},{key:"updateImageURL",value:function(e){this.props.setAttributes({url:e,width:void 0,height:void 0})}},{key:"updateWidth",value:function(e){this.props.setAttributes({width:parseInt(e,10)})}},{key:"updateHeight",value:function(e){this.props.setAttributes({height:parseInt(e,10)})}},{key:"updateDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(){e.props.setAttributes({width:t,height:n})}}},{key:"getFilename",value:function(e){var t=Object(pe.getPath)(e);if(t)return Object(G.last)(t.split("/"))}},{key:"getLinkDestinationOptions",value:function(){return[{value:"none",label:Object(K.__)("None")},{value:"media",label:Object(K.__)("Media File")},{value:"attachment",label:Object(K.__)("Attachment Page")},{value:"custom",label:Object(K.__)("Custom URL")}]}},{key:"toggleIsEditing",value:function(){this.setState({isEditing:!this.state.isEditing})}},{key:"getImageSizeOptions",value:function(){var e=this.props,t=e.imageSizes,n=e.image;return Object(G.compact)(Object(G.map)(t,(function(e){var t=e.name,r=e.slug,o=Object(G.get)(n,["media_details","sizes",r,"source_url"]);return o?{value:o,label:t}:null})))}},{key:"render",value:function(){var e,t=this,n=this.state.isEditing,r=this.props,o=r.attributes,a=r.setAttributes,c=r.isLargeViewport,i=r.isSelected,l=r.className,s=r.maxWidth,u=r.noticeUI,b=r.toggleSelection,m=r.isRTL,d=o.url,h=o.alt,p=o.caption,g=o.align,O=o.id,f=o.href,j=o.rel,v=o.linkClass,y=o.linkDestination,k=o.width,w=o.height,E=o.linkTarget,C=function(e,t){return t&&!e&&!Object(de.isBlobURL)(t)}(O,d);d&&(e=C?Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Q.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(K.__)("Edit image"),onClick:this.toggleIsEditing,icon:"edit"})):Object(V.createElement)(Y.MediaUploadCheck,null,Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Y.MediaUpload,{onSelect:this.onSelectImage,allowedTypes:We,value:O,render:function(e){var t=e.open;return Object(V.createElement)(Q.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit image"),icon:"edit",onClick:t})}}))));var _=Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.BlockAlignmentToolbar,{value:g,onChange:this.updateAlignment}),e);if(n||!d){var x=C?d:void 0;return Object(V.createElement)(V.Fragment,null,_,Object(V.createElement)(Y.MediaPlaceholder,{icon:"format-image",className:l,onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,notices:u,onError:this.onUploadError,accept:"image/*",allowedTypes:We,value:{id:O,src:x}}))}var S=q()(l,{"is-transient":Object(de.isBlobURL)(d),"is-resized":!!k||!!w,"is-focused":i}),T=-1===["wide","full"].indexOf(g)&&c,N="custom"!==y,R=this.getImageSizeOptions(),B=function(e,n){return Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Image Settings")},Object(V.createElement)(Q.TextareaControl,{label:Object(K.__)("Alt Text (Alternative Text)"),value:h,onChange:t.updateAlt,help:Object(K.__)("Alternative text describes your image to people who can’t see it. Add a short description with its key details.")}),!Object(G.isEmpty)(R)&&Object(V.createElement)(Q.SelectControl,{label:Object(K.__)("Image Size"),value:d,options:R,onChange:t.updateImageURL}),T&&Object(V.createElement)("div",{className:"block-library-image__dimensions"},Object(V.createElement)("p",{className:"block-library-image__dimensions__row"},Object(K.__)("Image Dimensions")),Object(V.createElement)("div",{className:"block-library-image__dimensions__row"},Object(V.createElement)(Q.TextControl,{type:"number",className:"block-library-image__dimensions__width",label:Object(K.__)("Width"),value:void 0!==k?k:"",placeholder:e,min:1,onChange:t.updateWidth}),Object(V.createElement)(Q.TextControl,{type:"number",className:"block-library-image__dimensions__height",label:Object(K.__)("Height"),value:void 0!==w?w:"",placeholder:n,min:1,onChange:t.updateHeight})),Object(V.createElement)("div",{className:"block-library-image__dimensions__row"},Object(V.createElement)(Q.ButtonGroup,{"aria-label":Object(K.__)("Image Size")},[25,50,75,100].map((function(r){var o=Math.round(e*(r/100)),a=Math.round(n*(r/100)),c=k===o&&w===a;return Object(V.createElement)(Q.Button,{key:r,isSmall:!0,isPrimary:c,"aria-pressed":c,onClick:t.updateDimensions(o,a)},r,"%")}))),Object(V.createElement)(Q.Button,{isSmall:!0,onClick:t.updateDimensions()},Object(K.__)("Reset"))))),Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Link Settings")},Object(V.createElement)(Q.SelectControl,{label:Object(K.__)("Link To"),value:y,options:t.getLinkDestinationOptions(),onChange:t.onSetLinkDestination}),"none"!==y&&Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Q.TextControl,{label:Object(K.__)("Link URL"),value:f||"",onChange:t.onSetCustomHref,placeholder:N?void 0:"https://",readOnly:N}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Open in New Tab"),onChange:t.onSetNewTab,checked:"_blank"===E}),Object(V.createElement)(Q.TextControl,{label:Object(K.__)("Link CSS Class"),value:v||"",onChange:t.onSetLinkClass}),Object(V.createElement)(Q.TextControl,{label:Object(K.__)("Link Rel"),value:j||"",onChange:t.onSetLinkRel}))))};return Object(V.createElement)(V.Fragment,null,_,Object(V.createElement)("figure",{className:S},Object(V.createElement)(Ve,{src:d,dirtynessTrigger:g},(function(e){var n,r=e.imageWidthWithinContainer,o=e.imageHeightWithinContainer,c=e.imageWidth,i=e.imageHeight,l=t.getFilename(d);n=h||(l?Object(K.sprintf)(Object(K.__)("This image has an empty alt attribute; its file name is %s"),l):Object(K.__)("This image has an empty alt attribute"));var u=Object(V.createElement)(V.Fragment,null,Object(V.createElement)("img",{src:d,alt:n,onClick:t.onImageClick,onError:function(){return t.onImageError(d)}}),Object(de.isBlobURL)(d)&&Object(V.createElement)(Q.Spinner,null));if(!T||!r)return Object(V.createElement)(V.Fragment,null,B(c,i),Object(V.createElement)("div",{style:{width:k,height:w}},u));var p=k||r,O=w||o,f=c/i,j=c a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},Je={img:{attributes:["src","alt"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},Ze={figure:{require:["img"],children:Object(U.a)({},Je,{a:{attributes:["href","rel","target"],children:Je},figcaption:{children:Object(D.getPhrasingContentSchema)()}})}};function Xe(e,t){var n=document.implementation.createHTMLDocument("").body;n.innerHTML=e;var r=n.firstElementChild;if(r&&"A"===r.nodeName)return r.getAttribute(t)||void 0}var et={title:Object(K.__)("Image"),description:Object(K.__)("Insert an image to make a visual statement."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(V.createElement)(Q.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(V.createElement)(Q.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),category:"common",keywords:["img",Object(K.__)("photo")],attributes:$e,transforms:{from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("img")},schema:Ze,transform:function(e){var t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),r=n?n[1]:void 0,o=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),a=o?Number(o[1]):void 0,c=e.querySelector("a"),i=c&&c.href?"custom":void 0,l=c&&c.href?c.href:void 0,s=c&&c.rel?c.rel:void 0,u=c&&c.className?c.className:void 0,b=Object(D.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:a,linkDestination:i,href:l,rel:s,linkClass:u});return Object(D.createBlock)("core/image",b)}},{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("image/")},transform:function(e){var t=e[0];return Object(D.createBlock)("core/image",{url:Object(de.createBlobURL)(t)})}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,t){var n=t.shortcode,r=document.implementation.createHTMLDocument("").body;return r.innerHTML=n.content,r.removeChild(r.firstElementChild),r.innerHTML.trim()}},href:{shortcode:function(e,t){return Xe(t.shortcode.content,"href")}},rel:{shortcode:function(e,t){return Xe(t.shortcode.content,"rel")}},linkClass:{shortcode:function(e,t){return Xe(t.shortcode.content,"class")}},id:{type:"number",shortcode:function(e){var t=e.named.id;if(t)return parseInt(t.replace("attachment_",""),10)}},align:{type:"string",shortcode:function(e){var t=e.named.align;return(void 0===t?"alignnone":t).replace("align","")}}}}]},getEditWrapperProps:function(e){var t=e.align,n=e.width;if("left"===t||"center"===t||"right"===t||"wide"===t||"full"===t)return{"data-align":t,"data-resized":!!n}},edit:Ye,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,a=n.caption,c=n.align,i=n.href,l=n.rel,s=n.linkClass,u=n.width,b=n.height,m=n.id,d=n.linkTarget,h=q()((t={},Object(F.a)(t,"align".concat(c),c),Object(F.a)(t,"is-resized",u||b),t)),p=Object(V.createElement)("img",{src:r,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b}),g=Object(V.createElement)(V.Fragment,null,i?Object(V.createElement)("a",{className:s,href:i,target:d,rel:l},p):p,!Y.RichText.isEmpty(a)&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:a}));return"left"===c||"right"===c||"center"===c?Object(V.createElement)("div",null,Object(V.createElement)("figure",{className:h},g)):Object(V.createElement)("figure",{className:h},g)},deprecated:[{attributes:$e,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,a=n.caption,c=n.align,i=n.href,l=n.width,s=n.height,u=n.id,b=q()((t={},Object(F.a)(t,"align".concat(c),c),Object(F.a)(t,"is-resized",l||s),t)),m=Object(V.createElement)("img",{src:r,alt:o,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(V.createElement)("figure",{className:b},i?Object(V.createElement)("a",{href:i},m):m,!Y.RichText.isEmpty(a)&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:a}))}},{attributes:$e,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,a=t.align,c=t.href,i=t.width,l=t.height,s=t.id,u=Object(V.createElement)("img",{src:n,alt:r,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(V.createElement)("figure",{className:a?"align".concat(a):null},c?Object(V.createElement)("a",{href:c},u):u,!Y.RichText.isEmpty(o)&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:$e,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,a=t.align,c=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(V.createElement)("img",Object($.a)({src:n,alt:r},s)),b={};return i?b={width:i}:"left"!==a&&"right"!==a||(b={maxWidth:"50%"}),Object(V.createElement)("figure",{className:a?"align".concat(a):null,style:b},c?Object(V.createElement)("a",{href:c},u):u,!Y.RichText.isEmpty(o)&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:o}))}}]},tt=n("Ff2n"),nt=function(e){function t(){return Object(J.a)(this,t),Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"createLevelControl",value:function(e,t,n){return{icon:"heading",title:Object(K.sprintf)(Object(K.__)("Heading %d"),e),isActive:e===t,onClick:function(){return n(e)},subscript:String(e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.minLevel,r=t.maxLevel,o=t.selectedLevel,a=t.onChange;return Object(V.createElement)(Q.Toolbar,{controls:Object(G.range)(n,r).map((function(t){return e.createLevelControl(t,o,a)}))})}}]),t}(V.Component);function rt(e){return Number(e.substr(1))}var ot,at={className:!1,anchor:!0},ct={content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},align:{type:"string"},placeholder:{type:"string"}},it="core/heading",lt={title:Object(K.__)("Heading"),description:Object(K.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:Object(V.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(V.createElement)(Q.Path,{d:"M5 4v3h5.5v12h3V7H19V4z"}),Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"})),category:"common",keywords:[Object(K.__)("title"),Object(K.__)("subtitle")],supports:at,attributes:ct,transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(D.createBlock)("core/heading",{content:t})}},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:{h1:{children:Object(D.getPhrasingContentSchema)()},h2:{children:Object(D.getPhrasingContentSchema)()},h3:{children:Object(D.getPhrasingContentSchema)()},h4:{children:Object(D.getPhrasingContentSchema)()},h5:{children:Object(D.getPhrasingContentSchema)()},h6:{children:Object(D.getPhrasingContentSchema)()}},transform:function(e){return Object(D.createBlock)("core/heading",Object(U.a)({},Object(D.getBlockAttributes)("core/heading",e.outerHTML),{level:rt(e.nodeName)}))}}].concat(Object(H.a)([2,3,4,5,6].map((function(e){return{type:"prefix",prefix:Array(e+1).join("#"),transform:function(t){return Object(D.createBlock)("core/heading",{level:e,content:t})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(D.createBlock)("core/paragraph",{content:t})}}]},deprecated:[{supports:at,attributes:Object(U.a)({},Object(G.omit)(ct,["level"]),{nodeName:{type:"string",source:"property",selector:"h1,h2,h3,h4,h5,h6",property:"nodeName",default:"H2"}}),migrate:function(e){var t=e.nodeName,n=Object(tt.a)(e,["nodeName"]);return Object(U.a)({},n,{level:rt(t)})},save:function(e){var t=e.attributes,n=t.align,r=t.nodeName,o=t.content;return Object(V.createElement)(Y.RichText.Content,{tagName:r.toLowerCase(),style:{textAlign:n},value:o})}}],merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.insertBlocksAfter,a=e.onReplace,c=e.className,i=t.align,l=t.content,s=t.level,u=t.placeholder,b="h"+s;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(nt,{minLevel:2,maxLevel:5,selectedLevel:s,onChange:function(e){return n({level:e})}})),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Heading Settings")},Object(V.createElement)("p",null,Object(K.__)("Level")),Object(V.createElement)(nt,{minLevel:1,maxLevel:7,selectedLevel:s,onChange:function(e){return n({level:e})}}),Object(V.createElement)("p",null,Object(K.__)("Text Alignment")),Object(V.createElement)(Y.AlignmentToolbar,{value:i,onChange:function(e){n({align:e})}}))),Object(V.createElement)(Y.RichText,{identifier:"content",wrapperClassName:"wp-block-heading",tagName:b,value:l,onChange:function(e){return n({content:e})},onMerge:r,unstableOnSplit:o?function(e,t){n({content:e});for(var r=arguments.length,a=new Array(r>2?r-2:0),c=2;c".concat(t,"

    ")})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(D.createBlock)("core/quote",{value:t,citation:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(D.createBlock)("core/quote",{value:"

    ".concat(e,"

    ")})}},{type:"raw",isMatch:function(e){return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every((function(e){return"P"===e.nodeName}))},schema:{blockquote:{children:{p:{children:Object(D.getPhrasingContentSchema)()}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,n=e.citation,r=[];return t&&"

    "!==t&&r.push.apply(r,Object(H.a)(Object(st.split)(Object(st.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(D.createBlock)("core/paragraph",{content:Object(st.toHTMLString)({value:e})})})))),n&&"

    "!==n&&r.push(Object(D.createBlock)("core/paragraph",{content:n})),0===r.length?Object(D.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,r=Object(tt.a)(e,["value","citation"]);if("

    "===t)return Object(D.createBlock)("core/heading",{content:n});var o=Object(st.split)(Object(st.create)({html:t,multilineTag:"p"}),"\u2028"),a=o.slice(1);return[Object(D.createBlock)("core/heading",{content:Object(st.toHTMLString)({value:o[0]})}),Object(D.createBlock)("core/quote",Object(U.a)({},r,{citation:n,value:Object(st.toHTMLString)({value:a.length?Object(st.join)(o.slice(1),"\u2028"):Object(st.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(D.createBlock)("core/pullquote",{value:t,citation:n})}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=e.mergeBlocks,a=e.onReplace,c=e.className,i=t.align,l=t.value,s=t.citation;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.AlignmentToolbar,{value:i,onChange:function(e){n({align:e})}})),Object(V.createElement)("blockquote",{className:c,style:{textAlign:i}},Object(V.createElement)(Y.RichText,{identifier:"value",multiline:!0,value:l,onChange:function(e){return n({value:e})},onMerge:o,onRemove:function(e){var t=!s||0===s.length;!e&&t&&a([])},placeholder:Object(K.__)("Write quote…")}),(!Y.RichText.isEmpty(s)||r)&&Object(V.createElement)(Y.RichText,{identifier:"citation",value:s,onChange:function(e){return n({citation:e})},placeholder:Object(K.__)("Write citation…"),className:"wp-block-quote__citation"})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation;return Object(V.createElement)("blockquote",{style:{textAlign:n||null}},Object(V.createElement)(Y.RichText.Content,{multiline:!0,value:r}),!Y.RichText.isEmpty(o)&&Object(V.createElement)(Y.RichText.Content,{tagName:"cite",value:o}))},merge:function(e,t){var n=t.value,r=t.citation;return n&&"

    "!==n?Object(U.a)({},e,{value:e.value+n,citation:e.citation+r}):Object(U.a)({},e,{citation:e.citation+r})},deprecated:[{attributes:Object(U.a)({},ut,{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?Object(U.a)({},Object(G.omit)(e,["style"]),{className:e.className?e.className+" is-style-large":"is-style-large"}):e},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,a=t.style;return Object(V.createElement)("blockquote",{className:2===a?"is-large":"",style:{textAlign:n||null}},Object(V.createElement)(Y.RichText.Content,{multiline:!0,value:r}),!Y.RichText.isEmpty(o)&&Object(V.createElement)(Y.RichText.Content,{tagName:"cite",value:o}))}},{attributes:Object(U.a)({},ut,{citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}}),save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,a=t.style;return Object(V.createElement)("blockquote",{className:"blocks-quote-style-".concat(a),style:{textAlign:n||null}},Object(V.createElement)(Y.RichText.Content,{multiline:!0,value:r}),!Y.RichText.isEmpty(o)&&Object(V.createElement)(Y.RichText.Content,{tagName:"footer",value:o}))}}]},dt=n("RxS6"),ht=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).onImageClick=e.onImageClick.bind(Object(ne.a)(Object(ne.a)(e))),e.onSelectCaption=e.onSelectCaption.bind(Object(ne.a)(Object(ne.a)(e))),e.onKeyDown=e.onKeyDown.bind(Object(ne.a)(Object(ne.a)(e))),e.bindContainer=e.bindContainer.bind(Object(ne.a)(Object(ne.a)(e))),e.state={captionSelected:!1},e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onImageClick",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onKeyDown",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[dt.BACKSPACE,dt.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isSelected,r=t.image,o=t.url;r&&!o&&this.props.setAttributes({url:r.source_url,alt:r.alt_text}),this.state.captionSelected&&!n&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"render",value:function(){var e,t=this.props,n=t.url,r=t.alt,o=t.id,a=t.linkTo,c=t.link,i=t.isSelected,l=t.caption,s=t.onRemove,u=t.setAttributes,b=t["aria-label"];switch(a){case"media":e=n;break;case"attachment":e=c}var m=Object(V.createElement)(V.Fragment,null,Object(V.createElement)("img",{src:n,alt:r,"data-id":o,onClick:this.onImageClick,tabIndex:"0",onKeyDown:this.onImageClick,"aria-label":b}),Object(de.isBlobURL)(n)&&Object(V.createElement)(Q.Spinner,null)),d=q()({"is-selected":i,"is-transient":Object(de.isBlobURL)(n)});return Object(V.createElement)("figure",{className:d,tabIndex:"-1",onKeyDown:this.onKeyDown,ref:this.bindContainer},i&&Object(V.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object(V.createElement)(Q.IconButton,{icon:"no-alt",onClick:s,className:"blocks-gallery-item__remove",label:Object(K.__)("Remove Image")})),e?Object(V.createElement)("a",{href:e},m):m,!Y.RichText.isEmpty(l)||i?Object(V.createElement)(Y.RichText,{tagName:"figcaption",placeholder:Object(K.__)("Write caption…"),value:l,isSelected:this.state.captionSelected,onChange:function(e){return u({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}):null)}}]),t}(V.Component),pt=Object(oe.withSelect)((function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}}))(ht),gt=[{value:"attachment",label:Object(K.__)("Attachment Page")},{value:"media",label:Object(K.__)("Media File")},{value:"none",label:Object(K.__)("None")}],Ot=["image"];function ft(e){return Math.min(3,e.images.length)}var jt=function(e){var t=Object(G.pick)(e,["alt","id","link","caption"]);return t.url=Object(G.get)(e,["sizes","large","url"])||Object(G.get)(e,["media_details","sizes","large","source_url"])||e.url,t},vt=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(ne.a)(Object(ne.a)(e))),e.onSelectImages=e.onSelectImages.bind(Object(ne.a)(Object(ne.a)(e))),e.setLinkTo=e.setLinkTo.bind(Object(ne.a)(Object(ne.a)(e))),e.setColumnsNumber=e.setColumnsNumber.bind(Object(ne.a)(Object(ne.a)(e))),e.toggleImageCrop=e.toggleImageCrop.bind(Object(ne.a)(Object(ne.a)(e))),e.onRemoveImage=e.onRemoveImage.bind(Object(ne.a)(Object(ne.a)(e))),e.setImageAttributes=e.setImageAttributes.bind(Object(ne.a)(Object(ne.a)(e))),e.addFiles=e.addFiles.bind(Object(ne.a)(Object(ne.a)(e))),e.uploadFromFiles=e.uploadFromFiles.bind(Object(ne.a)(Object(ne.a)(e))),e.setAttributes=e.setAttributes.bind(Object(ne.a)(Object(ne.a)(e))),e.state={selectedImage:null},e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=Object(U.a)({},e,{ids:Object(G.map)(e.images,"id")})),this.props.setAttributes(e)}},{key:"onSelectImage",value:function(e){var t=this;return function(){t.state.selectedImage!==e&&t.setState({selectedImage:e})}}},{key:"onRemoveImage",value:function(e){var t=this;return function(){var n=Object(G.filter)(t.props.attributes.images,(function(t,n){return e!==n})),r=t.props.attributes.columns;t.setState({selectedImage:null}),t.setAttributes({images:n,columns:r?Math.min(n.length,r):r})}}},{key:"onSelectImages",value:function(e){this.setAttributes({images:e.map((function(e){return jt(e)}))})}},{key:"setLinkTo",value:function(e){this.setAttributes({linkTo:e})}},{key:"setColumnsNumber",value:function(e){this.setAttributes({columns:e})}},{key:"toggleImageCrop",value:function(){this.setAttributes({imageCrop:!this.props.attributes.imageCrop})}},{key:"getImageCropHelp",value:function(e){return e?Object(K.__)("Thumbnails are cropped to align."):Object(K.__)("Thumbnails are not cropped.")}},{key:"setImageAttributes",value:function(e,t){var n=this.props.attributes.images,r=this.setAttributes;n[e]&&r({images:Object(H.a)(n.slice(0,e)).concat([Object(U.a)({},n[e],t)],Object(H.a)(n.slice(e+1)))})}},{key:"uploadFromFiles",value:function(e){this.addFiles(e.target.files)}},{key:"addFiles",value:function(e){var t=this.props.attributes.images||[],n=this.props.noticeOperations,r=this.setAttributes;Object(Y.mediaUpload)({allowedTypes:Ot,filesList:e,onFileChange:function(e){var n=e.map((function(e){return jt(e)}));r({images:t.concat(n)})},onError:n.createErrorNotice})}},{key:"componentDidUpdate",value:function(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.isSelected,o=t.className,a=t.noticeOperations,c=t.noticeUI,i=n.images,l=n.columns,s=void 0===l?ft(n):l,u=n.align,b=n.imageCrop,m=n.linkTo,d=Object(V.createElement)(Q.DropZone,{onFilesDrop:this.addFiles}),h=Object(V.createElement)(Y.BlockControls,null,!!i.length&&Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Y.MediaUpload,{onSelect:this.onSelectImages,allowedTypes:Ot,multiple:!0,gallery:!0,value:i.map((function(e){return e.id})),render:function(e){var t=e.open;return Object(V.createElement)(Q.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit Gallery"),icon:"edit",onClick:t})}})));return 0===i.length?Object(V.createElement)(V.Fragment,null,h,Object(V.createElement)(Y.MediaPlaceholder,{icon:"format-gallery",className:o,labels:{title:Object(K.__)("Gallery"),instructions:Object(K.__)("Drag images, upload new ones or select files from your library.")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:Ot,multiple:!0,notices:c,onError:a.createErrorNotice})):Object(V.createElement)(V.Fragment,null,h,Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Gallery Settings")},i.length>1&&Object(V.createElement)(Q.RangeControl,{label:Object(K.__)("Columns"),value:s,onChange:this.setColumnsNumber,min:1,max:Math.min(8,i.length)}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Crop Images"),checked:!!b,onChange:this.toggleImageCrop,help:this.getImageCropHelp}),Object(V.createElement)(Q.SelectControl,{label:Object(K.__)("Link To"),value:m,onChange:this.setLinkTo,options:gt}))),c,Object(V.createElement)("ul",{className:"".concat(o," align").concat(u," columns-").concat(s," ").concat(b?"is-cropped":"")},d,i.map((function(t,n){var o=Object(K.__)(Object(K.sprintf)("image %1$d of %2$d in gallery",n+1,i.length));return Object(V.createElement)("li",{className:"blocks-gallery-item",key:t.id||t.url},Object(V.createElement)(pt,{url:t.url,alt:t.alt,id:t.id,isSelected:r&&e.state.selectedImage===n,onRemove:e.onRemoveImage(n),onSelect:e.onSelectImage(n),setAttributes:function(t){return e.setImageAttributes(n,t)},caption:t.caption,"aria-label":o}))})),r&&Object(V.createElement)("li",{className:"blocks-gallery-item has-add-item-button"},Object(V.createElement)(Q.FormFileUpload,{multiple:!0,isLarge:!0,className:"block-library-gallery-add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},Object(K.__)("Upload an image")))))}}]),t}(V.Component),yt=Object(Q.withNotices)(vt),kt={images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},wt="core/gallery",Et=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},Ct={title:Object(K.__)("Gallery"),description:Object(K.__)("Display multiple images in a rich gallery."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M20 4v12H8V4h12m0-2H8L6 4v12l2 2h12l2-2V4l-2-2z"}),Object(V.createElement)(Q.Path,{d:"M12 12l1 2 3-3 3 4H9z"}),Object(V.createElement)(Q.Path,{d:"M2 6v14l2 2h14v-2H4V6H2z"}))),category:"common",keywords:[Object(K.__)("images"),Object(K.__)("photos")],attributes:kt,supports:{align:!0},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=Object(G.every)(e,["align",t])?t:void 0;var n=Object(G.filter)(e,(function(e){var t=e.id,n=e.url;return t&&n}));return Object(D.createBlock)("core/gallery",{images:n.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),ids:n.map((function(e){return e.id})),align:t})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return Et(t).map((function(e){return{id:e}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return Et(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link,n=void 0===t?"attachment":t;return"file"===n?"media":n}}}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(G.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e,t){var n=Object(D.createBlock)("core/gallery",{images:e.map((function(e){return jt({url:Object(de.createBlobURL)(e)})}))});return Object(Y.mediaUpload)({filesList:e,onFileChange:function(e){var r=e.map(jt);t(n.clientId,{ids:Object(G.map)(r,"id"),images:r})},allowedTypes:["image"]}),n}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return t.length>0?t.map((function(e){var t=e.id,r=e.url,o=e.alt,a=e.caption;return Object(D.createBlock)("core/image",{id:t,url:r,alt:o,caption:a,align:n})})):Object(D.createBlock)("core/image",{align:n})}}]},edit:yt,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ft(t):r,a=t.imageCrop,c=t.linkTo;return Object(V.createElement)("ul",{className:"columns-".concat(o," ").concat(a?"is-cropped":"")},n.map((function(e){var t;switch(c){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(V.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(V.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(V.createElement)("figure",null,t?Object(V.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:e.caption})))})))},deprecated:[{attributes:kt,isEligible:function(e){var t=e.images,n=e.ids;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(G.some)(t,(function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]})))},migrate:function(e){return Object(U.a)({},e,{ids:Object(G.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ft(t):r,a=t.imageCrop,c=t.linkTo;return Object(V.createElement)("ul",{className:"columns-".concat(o," ").concat(a?"is-cropped":"")},n.map((function(e){var t;switch(c){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(V.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(V.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(V.createElement)("figure",null,t?Object(V.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:kt,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ft(t):r,a=t.imageCrop,c=t.linkTo;return Object(V.createElement)("ul",{className:"columns-".concat(o," ").concat(a?"is-cropped":"")},n.map((function(e){var t;switch(c){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(V.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link});return Object(V.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(V.createElement)("figure",null,t?Object(V.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:Object(U.a)({},kt,{images:Object(U.a)({},kt.images,{selector:"div.wp-block-gallery figure.blocks-gallery-image img"}),align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?ft(t):r,a=t.align,c=t.imageCrop,i=t.linkTo;return Object(V.createElement)("div",{className:"align".concat(a," columns-").concat(o," ").concat(c?"is-cropped":"")},n.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(V.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(V.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(V.createElement)("a",{href:t},n):n)})))}}]};var _t="core/archives",xt={title:Object(K.__)("Archives"),description:Object(K.__)("Display a monthly archive of your posts."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M7 11h2v2H7v-2zm14-5v14l-2 2H5l-2-2V6l2-2h1V2h2v2h8V2h2v2h1l2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"}))),category:"widgets",supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right"].includes(t))return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.align,o=t.showPostCounts,a=t.displayAsDropdown;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Archives Settings")},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Display as Dropdown"),checked:a,onChange:function(){return n({displayAsDropdown:!a})}}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Show Post Counts"),checked:o,onChange:function(){return n({showPostCounts:!o})}}))),Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.BlockAlignmentToolbar,{value:r,onChange:function(e){n({align:e})},controls:["left","center","right"]})),Object(V.createElement)(Q.Disabled,null,Object(V.createElement)(Y.ServerSideRender,{block:"core/archives",attributes:t})))},save:function(){return null}},St=["audio"],Tt=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.toggleAttribute=e.toggleAttribute.bind(Object(ne.a)(Object(ne.a)(e))),e.onSelectURL=e.onSelectURL.bind(Object(ne.a)(Object(ne.a)(e))),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeOperations,o=t.setAttributes,a=n.id,c=n.src,i=void 0===c?"":c;if(!a&&Object(de.isBlobURL)(i)){var l=Object(de.getBlobByURL)(i);l&&Object(Y.mediaUpload)({filesList:[l],onFileChange:function(e){var t=Object(he.a)(e,1)[0],n=t.id,r=t.url;o({id:n,src:r})},onError:function(t){o({src:void 0,id:void 0}),e.setState({editing:!0}),r.createErrorNotice(t)},allowedTypes:St})}}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(F.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=He({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,r=t.caption,o=t.loop,a=t.preload,c=t.src,i=this.props,l=i.setAttributes,s=i.isSelected,u=i.className,b=i.noticeOperations,m=i.noticeUI,d=this.state.editing,h=function(){e.setState({editing:!0})};return d?Object(V.createElement)(Y.MediaPlaceholder,{icon:"media-audio",className:u,onSelect:function(t){if(!t||!t.url)return l({src:void 0,id:void 0}),void h();l({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"audio/*",allowedTypes:St,value:this.props.attributes,notices:m,onError:b.createErrorNotice}):Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Q.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(K.__)("Edit audio"),onClick:h,icon:"edit"}))),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Audio Settings")},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:o}),Object(V.createElement)(Q.SelectControl,{label:Object(K.__)("Preload"),value:void 0!==a?a:"none",onChange:function(e){return l({preload:"none"!==e?e:void 0})},options:[{value:"auto",label:Object(K.__)("Auto")},{value:"metadata",label:Object(K.__)("Metadata")},{value:"none",label:Object(K.__)("None")}]}))),Object(V.createElement)("figure",{className:u},Object(V.createElement)(Q.Disabled,null,Object(V.createElement)("audio",{controls:"controls",src:c})),(!Y.RichText.isEmpty(r)||s)&&Object(V.createElement)(Y.RichText,{tagName:"figcaption",placeholder:Object(K.__)("Write caption…"),value:r,onChange:function(e){return l({caption:e})},inlineToolbar:!0})))}}]),t}(V.Component),Nt=Object(Q.withNotices)(Tt),Rt="core/audio",Bt={title:Object(K.__)("Audio"),description:Object(K.__)("Embed a simple audio player."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(V.createElement)(Q.Path,{d:"m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z"})),category:"common",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},transforms:{from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object(D.createBlock)("core/audio",{src:Object(de.createBlobURL)(t)})}}]},supports:{align:!0},edit:Nt,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,a=t.preload,c=t.src;return Object(V.createElement)("figure",null,Object(V.createElement)("audio",{controls:"controls",src:c,autoPlay:n,loop:o,preload:a}),!Y.RichText.isEmpty(r)&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:r}))}},At=window.getComputedStyle,It=Object(Q.withFallbackStyles)((function(e,t){var n=t.textColor,r=t.backgroundColor,o=r&&r.color,a=n&&n.color,c=!a&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:o||!e?void 0:At(e).backgroundColor,fallbackTextColor:a||!c?void 0:At(c).color}})),Pt=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).nodeRef=null,e.bindRef=e.bindRef.bind(Object(ne.a)(Object(ne.a)(e))),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.backgroundColor,o=t.textColor,a=t.setBackgroundColor,c=t.setTextColor,i=t.fallbackBackgroundColor,l=t.fallbackTextColor,s=t.setAttributes,u=t.isSelected,b=t.className,m=n.text,d=n.url,h=n.title;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)("div",{className:b,title:h,ref:this.bindRef},Object(V.createElement)(Y.RichText,{placeholder:Object(K.__)("Add text…"),value:m,onChange:function(e){return s({text:e})},formattingControls:["bold","italic","strikethrough"],className:q()("wp-block-button__link",(e={"has-background":r.color},Object(F.a)(e,r.class,r.class),Object(F.a)(e,"has-text-color",o.color),Object(F.a)(e,o.class,o.class),e)),style:{backgroundColor:r.color,color:o.color},keepPlaceholderOnFocus:!0}),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Y.PanelColorSettings,{title:Object(K.__)("Color Settings"),colorSettings:[{value:r.color,onChange:a,label:Object(K.__)("Background Color")},{value:o.color,onChange:c,label:Object(K.__)("Text Color")}]},Object(V.createElement)(Y.ContrastChecker,{isLargeText:!1,textColor:o.color,backgroundColor:r.color,fallbackBackgroundColor:i,fallbackTextColor:l})))),u&&Object(V.createElement)("form",{className:"block-library-button__inline-link",onSubmit:function(e){return e.preventDefault()}},Object(V.createElement)(Q.Dashicon,{icon:"admin-links"}),Object(V.createElement)(Y.URLInput,{value:d,onChange:function(e){return s({url:e})}}),Object(V.createElement)(Q.IconButton,{icon:"editor-break",label:Object(K.__)("Apply"),type:"submit"})))}}]),t}(V.Component),Lt=Object(re.compose)([Object(Y.withColors)("backgroundColor",{textColor:"color"}),It])(Pt),Mt={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},zt="core/button",Ht=function(e){return Object(G.omit)(Object(U.a)({},e,{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"])},Dt={title:Object(K.__)("Button"),description:Object(K.__)("Prompt visitors to take action with a custom button."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M19 6H5L3 8v8l2 2h14l2-2V8l-2-2zm0 10H5V8h14v8z"}))),category:"layout",attributes:Mt,supports:{align:!0,alignWide:!1},styles:[{name:"default",label:Object(K._x)("Rounded","block style"),isDefault:!0},{name:"outline",label:Object(K.__)("Outline")},{name:"squared",label:Object(K._x)("Squared","block style")}],edit:Lt,save:function(e){var t,n=e.attributes,r=n.url,o=n.text,a=n.title,c=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=Object(Y.getColorClassName)("color",i),b=Object(Y.getColorClassName)("background-color",c),m=q()("wp-block-button__link",(t={"has-text-color":i||s},Object(F.a)(t,u,u),Object(F.a)(t,"has-background",c||l),Object(F.a)(t,b,b),t)),d={backgroundColor:b?void 0:l,color:u?void 0:s};return Object(V.createElement)("div",null,Object(V.createElement)(Y.RichText.Content,{tagName:"a",className:m,href:r,title:a,style:d,value:o}))},deprecated:[{attributes:Object(U.a)({},Object(G.pick)(Mt,["url","title","text"]),{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,a=t.align,c={backgroundColor:t.color,color:t.textColor};return Object(V.createElement)("div",{className:"align".concat(a)},Object(V.createElement)(Y.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:o,style:c,value:r}))},migrate:Ht},{attributes:Object(U.a)({},Object(G.pick)(Mt,["url","title","text"]),{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,a=t.align,c=t.color,i=t.textColor;return Object(V.createElement)("div",{className:"align".concat(a),style:{backgroundColor:c}},Object(V.createElement)(Y.RichText.Content,{tagName:"a",href:n,title:o,style:{color:i},value:r}))},migrate:Ht}]},Ft=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).toggleDisplayAsDropdown=e.toggleDisplayAsDropdown.bind(Object(ne.a)(Object(ne.a)(e))),e.toggleShowPostCounts=e.toggleShowPostCounts.bind(Object(ne.a)(Object(ne.a)(e))),e.toggleShowHierarchy=e.toggleShowHierarchy.bind(Object(ne.a)(Object(ne.a)(e))),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"toggleDisplayAsDropdown",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({displayAsDropdown:!t.displayAsDropdown})}},{key:"toggleShowPostCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showPostCounts:!t.showPostCounts})}},{key:"toggleShowHierarchy",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showHierarchy:!t.showHierarchy})}},{key:"getCategories",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter((function(t){return t.parent===e})):[]}},{key:"getCategoryListClassName",value:function(e){var t=this.props.className;return"".concat(t,"__list ").concat(t,"__list-level-").concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(G.unescape)(e.name).trim():Object(K.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,n=this.getCategories(t);return Object(V.createElement)("ul",{className:this.getCategoryListClassName(0)},n.map((function(t){return e.renderCategoryListItem(t,0)})))}},{key:"renderCategoryListItem",value:function(e,t){var n=this,r=this.props.attributes,o=r.showHierarchy,a=r.showPostCounts,c=this.getCategories(e.id);return Object(V.createElement)("li",{key:e.id},Object(V.createElement)("a",{href:e.link,target:"_blank"},this.renderCategoryName(e)),a&&Object(V.createElement)("span",{className:"".concat(this.props.className,"__post-count")}," ","(",e.count,")"),o&&!!c.length&&Object(V.createElement)("ul",{className:this.getCategoryListClassName(t+1)},c.map((function(e){return n.renderCategoryListItem(e,t+1)}))))}},{key:"renderCategoryDropdown",value:function(){var e=this,t=this.props,n=t.showHierarchy,r=t.instanceId,o=t.className,a=n?0:null,c=this.getCategories(a),i="blocks-category-select-".concat(r);return Object(V.createElement)(V.Fragment,null,Object(V.createElement)("label",{htmlFor:i,className:"screen-reader-text"},Object(K.__)("Categories")),Object(V.createElement)("select",{id:i,className:"".concat(o,"__dropdown")},c.map((function(t){return e.renderCategoryDropdownItem(t,0)}))))}},{key:"renderCategoryDropdownItem",value:function(e,t){var n=this,r=this.props.attributes,o=r.showHierarchy,a=r.showPostCounts,c=this.getCategories(e.id);return[Object(V.createElement)("option",{key:e.id},Object(G.times)(3*t,(function(){return" "})),this.renderCategoryName(e),a?" (".concat(e.count,")"):""),o&&!!c.length&&c.map((function(e){return n.renderCategoryDropdownItem(e,t+1)}))]}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.isRequesting,o=t.align,a=t.displayAsDropdown,c=t.showHierarchy,i=t.showPostCounts,l=Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Categories Settings")},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Display as Dropdown"),checked:a,onChange:this.toggleDisplayAsDropdown}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Show Hierarchy"),checked:c,onChange:this.toggleShowHierarchy}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Show Post Counts"),checked:i,onChange:this.toggleShowPostCounts})));return r?Object(V.createElement)(V.Fragment,null,l,Object(V.createElement)(Q.Placeholder,{icon:"admin-post",label:Object(K.__)("Categories")},Object(V.createElement)(Q.Spinner,null))):Object(V.createElement)(V.Fragment,null,l,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.BlockAlignmentToolbar,{value:o,onChange:function(e){n({align:e})},controls:["left","center","right","full"]})),Object(V.createElement)("div",{className:this.props.className},a?this.renderCategoryDropdown():this.renderCategoryList()))}}]),t}(V.Component),Ut=Object(re.compose)(Object(oe.withSelect)((function(e){var t=e("core").getEntityRecords,n=e("core/data").isResolving,r={per_page:-1};return{categories:t("taxonomy","category",r),isRequesting:n("core","getEntityRecords",["taxonomy","category",r])}})),re.withInstanceId)(Ft),Vt="core/categories",Wt={title:Object(K.__)("Categories"),description:Object(K.__)("Display a list of all categories."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(V.createElement)(Q.Path,{d:"M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z"}),Object(V.createElement)(Q.Path,{d:"m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),Object(V.createElement)(Q.Path,{d:"m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z"})),category:"widgets",attributes:{align:{type:"string"},displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right","full"].includes(t))return{"data-align":t}},edit:Ut,save:function(){return null}};var qt="core/code",Gt={title:Object(K.__)("Code"),description:Object(K.__)("Display code snippets that respect your spacing and tabs."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(V.createElement)(Q.Path,{d:"M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z"})),category:"formatting",attributes:{content:{type:"string",source:"text",selector:"code"}},supports:{html:!1},transforms:{from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(D.createBlock)("core/code")}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className;return Object(V.createElement)("div",{className:r},Object(V.createElement)(Y.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(K.__)("Write code…"),"aria-label":Object(K.__)("Code")}))},save:function(e){var t=e.attributes;return Object(V.createElement)("pre",null,Object(V.createElement)("code",null,t.content))}},Kt=n("4eJC"),Yt=["core/column"],Qt=n.n(Kt)()((function(e){return Object(G.times)(e,(function(){return["core/column"]}))}));function $t(e){var t,n=$t.doc;n||(n=document.implementation.createHTMLDocument(""),$t.doc=n),n.body.innerHTML=e;var r=!0,o=!1,a=void 0;try{for(var c,i=n.body.firstChild.classList[Symbol.iterator]();!(r=(c=i.next()).done);r=!0){if(t=c.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}}var Jt="core/columns",Zt={title:Object(K.__)("Columns"),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M21 4H3L2 5v14l1 1h18l1-1V5l-1-1zM8 18H4V6h4v12zm6 0h-4V6h4v12zm6 0h-4V6h4v12z"}))),category:"layout",attributes:{columns:{type:"number",default:2}},description:Object(K.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),supports:{align:["wide","full"],html:!1},deprecated:[{attributes:{columns:{type:"number",default:2}},isEligible:function(e,t){return!!t.some((function(e){return/layout-column-\d+/.test(e.originalContent)}))&&t.some((function(e){return void 0!==$t(e.originalContent)}))},migrate:function(e,t){return[e,t.reduce((function(e,t){var n=$t(t.originalContent);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((function(e){return Object(D.createBlock)("core/column",{},e)}))]},save:function(e){var t=e.attributes.columns;return Object(V.createElement)("div",{className:"has-".concat(t,"-columns")},Object(V.createElement)(Y.InnerBlocks.Content,null))}}],edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.columns,a=q()(r,"has-".concat(o,"-columns"));return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,null,Object(V.createElement)(Q.RangeControl,{label:Object(K.__)("Columns"),value:o,onChange:function(e){n({columns:e})},min:2,max:6}))),Object(V.createElement)("div",{className:a},Object(V.createElement)(Y.InnerBlocks,{template:Qt(o),templateLock:"all",allowedBlocks:Yt})))},save:function(e){var t=e.attributes.columns;return Object(V.createElement)("div",{className:"has-".concat(t,"-columns")},Object(V.createElement)(Y.InnerBlocks.Content,null))}},Xt="core/column",en={title:Object(K.__)("Column"),parent:["core/columns"],icon:Object(V.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.Path,{d:"M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"})),description:Object(K.__)("A single column within a columns block."),category:"common",supports:{inserter:!1,reusable:!1,html:!1},edit:function(){return Object(V.createElement)(Y.InnerBlocks,{templateLock:!1})},save:function(){return Object(V.createElement)("div",null,Object(V.createElement)(Y.InnerBlocks.Content,null))}},tn=["left","center","right","wide","full"],nn={title:{type:"string",source:"html",selector:"p"},url:{type:"string"},align:{type:"string"},contentAlign:{type:"string",default:"center"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"}},rn="core/cover",on=["image","video"],an={title:Object(K.__)("Cover"),description:Object(K.__)("Add an image or video with a text overlay — great for headers."),icon:Object(V.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(V.createElement)(Q.Path,{d:"M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z"}),Object(V.createElement)(Q.Path,{d:"M0 0h24v24H0z",fill:"none"})),category:"common",attributes:nn,transforms:{from:[{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(D.createBlock)("core/cover",{title:t})}},{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,n=e.url,r=e.align,o=e.id;return Object(D.createBlock)("core/cover",{title:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,n=e.src,r=e.align,o=e.id;return Object(D.createBlock)("core/cover",{title:t,url:n,align:r,id:o,backgroundType:"video"})}}],to:[{type:"block",blocks:["core/heading"],transform:function(e){var t=e.title;return Object(D.createBlock)("core/heading",{content:t})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType;return!e.url||"image"===t},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(D.createBlock)("core/image",{caption:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType;return!e.url||"video"===t},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(D.createBlock)("core/video",{caption:t,src:n,id:o,align:r})}}]},getEditWrapperProps:function(e){var t=e.align;if(-1!==tn.indexOf(t))return{"data-align":t}},edit:Object(re.compose)([Object(Y.withColors)({overlayColor:"background-color"}),Q.withNotices])((function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=e.className,a=e.noticeOperations,c=e.noticeUI,i=e.overlayColor,l=e.setOverlayColor,s=t.align,u=t.backgroundType,b=t.contentAlign,m=t.dimRatio,d=t.hasParallax,h=t.id,p=t.title,g=t.url,O=function(e){if(e&&e.url){var t;if(e.media_type)t="image"===e.media_type?"image":"video";else{if("image"!==e.type&&"video"!==e.type)return;t=e.type}n({url:e.url,id:e.id,backgroundType:t})}else n({url:void 0,id:void 0})},f=function(e){return n({title:e})},j=Object(U.a)({},"image"===u?ln(g):{},{backgroundColor:i.color}),v=Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.BlockAlignmentToolbar,{value:s,onChange:function(e){return n({align:e})}}),!!g&&Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.AlignmentToolbar,{value:b,onChange:function(e){n({contentAlign:e})}}),Object(V.createElement)(Y.MediaUploadCheck,null,Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Y.MediaUpload,{onSelect:O,allowedTypes:on,value:h,render:function(e){var t=e.open;return Object(V.createElement)(Q.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit media"),icon:"edit",onClick:t})}}))))),!!g&&Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Cover Settings")},"image"===u&&Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Fixed Background"),checked:d,onChange:function(){return n({hasParallax:!d})}}),Object(V.createElement)(Y.PanelColorSettings,{title:Object(K.__)("Overlay"),initialOpen:!0,colorSettings:[{value:i.color,onChange:l,label:Object(K.__)("Overlay Color")}]},Object(V.createElement)(Q.RangeControl,{label:Object(K.__)("Background Opacity"),value:m,onChange:function(e){return n({dimRatio:e})},min:0,max:100,step:10})))));if(!g){var y=!Y.RichText.isEmpty(p),k=y?void 0:"format-image",w=y?Object(V.createElement)(Y.RichText,{tagName:"h2",value:p,onChange:f,inlineToolbar:!0}):Object(K.__)("Cover");return Object(V.createElement)(V.Fragment,null,v,Object(V.createElement)(Y.MediaPlaceholder,{icon:k,className:o,labels:{title:w,instructions:Object(K.__)("Drag an image or a video, upload a new one or select a file from your library.")},onSelect:O,accept:"image/*,video/*",allowedTypes:on,notices:c,onError:a.createErrorNotice}))}var E=q()(o,"center"!==b&&"has-".concat(b,"-content"),cn(m),{"has-background-dim":0!==m,"has-parallax":d});return Object(V.createElement)(V.Fragment,null,v,Object(V.createElement)("div",{"data-url":g,style:j,className:E},"video"===u&&Object(V.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:g}),(!Y.RichText.isEmpty(p)||r)&&Object(V.createElement)(Y.RichText,{tagName:"p",className:"wp-block-cover-text",placeholder:Object(K.__)("Write title…"),value:p,onChange:f,inlineToolbar:!0})))})),save:function(e){var t=e.attributes,n=t.align,r=t.backgroundType,o=t.contentAlign,a=t.customOverlayColor,c=t.dimRatio,i=t.hasParallax,l=t.overlayColor,s=t.title,u=t.url,b=Object(Y.getColorClassName)("background-color",l),m="image"===r?ln(u):{};b||(m.backgroundColor=a);var d=q()(cn(c),b,Object(F.a)({"has-background-dim":0!==c,"has-parallax":i},"has-".concat(o,"-content"),"center"!==o),n?"align".concat(n):null);return Object(V.createElement)("div",{className:d,style:m},"video"===r&&u&&Object(V.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!Y.RichText.isEmpty(s)&&Object(V.createElement)(Y.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},deprecated:[{attributes:Object(U.a)({},nn),supports:{className:!1},save:function(e){var t=e.attributes,n=t.url,r=t.title,o=t.hasParallax,a=t.dimRatio,c=t.align,i=t.contentAlign,l=t.overlayColor,s=t.customOverlayColor,u=Object(Y.getColorClassName)("background-color",l),b=ln(n);u||(b.backgroundColor=s);var m=q()("wp-block-cover-image",cn(a),u,Object(F.a)({"has-background-dim":0!==a,"has-parallax":o},"has-".concat(i,"-content"),"center"!==i),c?"align".concat(c):null);return Object(V.createElement)("div",{className:m,style:b},!Y.RichText.isEmpty(r)&&Object(V.createElement)(Y.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r}))}},{attributes:Object(U.a)({},nn,{title:{type:"string",source:"html",selector:"h2"}}),save:function(e){var t=e.attributes,n=t.url,r=t.title,o=t.hasParallax,a=t.dimRatio,c=t.align,i=ln(n),l=q()(cn(a),{"has-background-dim":0!==a,"has-parallax":o},c?"align".concat(c):null);return Object(V.createElement)("section",{className:l,style:i},Object(V.createElement)(Y.RichText.Content,{tagName:"h2",value:r}))}}]};function cn(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}function ln(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}var sn=function(e){var t=e.blockSupportsResponsive,n=e.showEditButton,r=e.themeSupportsResponsive,o=e.allowResponsive,a=e.getResponsiveHelp,c=e.toggleResponsive,i=e.switchBackToURLInput;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Q.Toolbar,null,n&&Object(V.createElement)(Q.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit URL"),icon:"edit",onClick:i}))),r&&t&&Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Media Settings"),className:"blocks-responsive"},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Resize for smaller devices"),checked:o,help:a,onChange:c}))))},un=function(){return Object(V.createElement)("div",{className:"wp-block-embed is-loading"},Object(V.createElement)(Q.Spinner,null),Object(V.createElement)("p",null,Object(K.__)("Embedding…")))},bn=function(e){var t=e.icon,n=e.label,r=e.value,o=e.onSubmit,a=e.onChange,c=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(V.createElement)(Q.Placeholder,{icon:Object(V.createElement)(Y.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed"},Object(V.createElement)("form",{onSubmit:o},Object(V.createElement)("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:Object(K.__)("Enter URL to embed here…"),onChange:a}),Object(V.createElement)(Q.Button,{isLarge:!0,type:"submit"},Object(K._x)("Embed","button label")),c&&Object(V.createElement)("p",{className:"components-placeholder__error"},Object(K.__)("Sorry, we could not embed that content."),Object(V.createElement)("br",null),Object(V.createElement)(Q.Button,{isLarge:!0,onClick:l},Object(K._x)("Try again","button label"))," ",Object(V.createElement)(Q.Button,{isLarge:!0,onClick:i},Object(K._x)("Convert to link","button label")))))},mn=n("CxY0"),dn=window.FocusEvent,hn=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).checkFocus=e.checkFocus.bind(Object(ne.a)(Object(ne.a)(e))),e.node=Object(V.createRef)(),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new dn("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html;return Object(V.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:e}})}}]),t}(V.Component),pn=Object(re.withGlobalEvents)({blur:"checkFocus"})(hn),gn=function(e){var t,n,r=e.preview,o=e.url,a=e.type,c=e.caption,i=e.onCaptionChange,l=e.isSelected,s=e.className,u=e.icon,b=e.label,m=r.scripts,d="photo"===a?(t=r,n=Object(V.createElement)("p",null,Object(V.createElement)("img",{src:t.thumbnail_url,alt:t.title,width:"100%"})),Object(V.renderToString)(n)):r.html,h=Object(mn.parse)(o),p=Object(G.includes)(Ae,h.host.replace(/^www\./,"")),g=Object(K.sprintf)(Object(K.__)("Embedded content from %s"),h.host),O=Le()(a,s,"wp-block-embed__wrapper"),f="wp-embed"===a?Object(V.createElement)(pn,{html:d}):Object(V.createElement)("div",{className:"wp-block-embed__wrapper"},Object(V.createElement)(Q.SandBox,{html:d,scripts:m,title:g,type:O}));return Object(V.createElement)("figure",{className:Le()(s,"wp-block-embed",{"is-type-video":"video"===a})},p?Object(V.createElement)(Q.Placeholder,{icon:Object(V.createElement)(Y.BlockIcon,{icon:u,showColors:!0}),label:b},Object(V.createElement)("p",{className:"components-placeholder__error"},Object(V.createElement)("a",{href:o},o)),Object(V.createElement)("p",{className:"components-placeholder__error"},Object(K.__)("Sorry, we cannot preview this embedded content in the editor."))):f,(!Y.RichText.isEmpty(c)||l)&&Object(V.createElement)(Y.RichText,{tagName:"figcaption",placeholder:Object(K.__)("Write caption…"),value:c,onChange:i,inlineToolbar:!0}))};var On={url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0}};function fn(e){var t=e.title,n=e.description,r=e.icon,o=e.category,a=void 0===o?"embed":o,c=e.transforms,i=e.keywords,l=void 0===i?[]:i,s=e.supports,u=void 0===s?{}:s,b=e.responsive,m=void 0===b||b,d=n||Object(K.sprintf)(Object(K.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),t),h=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){function o(){var e;return Object(J.a)(this,o),(e=Object(X.a)(this,Object(ee.a)(o).apply(this,arguments))).switchBackToURLInput=e.switchBackToURLInput.bind(Object(ne.a)(Object(ne.a)(e))),e.setUrl=e.setUrl.bind(Object(ne.a)(Object(ne.a)(e))),e.getAttributesFromPreview=e.getAttributesFromPreview.bind(Object(ne.a)(Object(ne.a)(e))),e.setAttributesFromPreview=e.setAttributesFromPreview.bind(Object(ne.a)(Object(ne.a)(e))),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(ne.a)(Object(ne.a)(e))),e.toggleResponsive=e.toggleResponsive.bind(Object(ne.a)(Object(ne.a)(e))),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(ne.a)(Object(ne.a)(e))),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(te.a)(o,r),Object(Z.a)(o,[{key:"handleIncomingPreview",value:function(){var e=this.props.attributes.allowResponsive;this.setAttributesFromPreview();var t=He(this.props,this.getAttributesFromPreview(this.props.preview,e));t&&this.props.onReplace(t)}},{key:"componentDidUpdate",value:function(e){var t=void 0!==this.props.preview,n=void 0!==e.preview,r=e.preview&&this.props.preview&&this.props.preview.html!==e.preview.html||t&&!n,o=this.props.attributes.url!==e.attributes.url;if(r||o){if(this.props.cannotEmbed)return;this.handleIncomingPreview()}}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;this.setState({editingURL:!1}),n({url:t})}},{key:"getAttributesFromPreview",value:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o={},a=t.type,c=void 0===a?"rich":a,i=t.html,l=t.provider_name,s=Object(G.kebabCase)(Object(G.toLower)(""!==l?l:e));return ze(i)&&(c="wp-embed"),(i||"photo"===c)&&(o.type=c,o.providerNameSlug=s),o.className=De(i,this.props.attributes.className,n&&r),o}},{key:"setAttributesFromPreview",value:function(){var e=this.props,t=e.setAttributes,n=e.preview,r=this.props.attributes.allowResponsive;t(this.getAttributesFromPreview(n,r))}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"getResponsiveHelp",value:function(e){return e?Object(K.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(K.__)("This embed may not preserve its aspect ratio when the browser is resized.")}},{key:"toggleResponsive",value:function(){var e=this.props.attributes,t=e.allowResponsive,r=e.className,o=this.props.preview.html,a=!t;this.props.setAttributes({allowResponsive:a,className:De(o,r,n&&a)})}},{key:"render",value:function(){var r=this,o=this.state,a=o.url,c=o.editingURL,i=this.props.attributes,l=i.caption,s=i.type,u=i.allowResponsive,b=this.props,m=b.fetching,d=b.setAttributes,h=b.isSelected,p=b.className,g=b.preview,O=b.cannotEmbed,f=b.themeSupportsResponsive,j=b.tryAgain;if(m)return Object(V.createElement)(un,null);var v=Object(K.sprintf)(Object(K.__)("%s URL"),e);return!g||O||c?Object(V.createElement)(bn,{icon:t,label:v,onSubmit:this.setUrl,value:a,cannotEmbed:O,onChange:function(e){return r.setState({url:e.target.value})},fallback:function(){return Fe(a,r.props.onReplace)},tryAgain:j}):Object(V.createElement)(V.Fragment,null,Object(V.createElement)(sn,{showEditButton:g&&!O,themeSupportsResponsive:f,blockSupportsResponsive:n,allowResponsive:u,getResponsiveHelp:this.getResponsiveHelp,toggleResponsive:this.toggleResponsive,switchBackToURLInput:this.switchBackToURLInput}),Object(V.createElement)(gn,{preview:g,className:p,url:a,type:s,caption:l,onCaptionChange:function(e){return d({caption:e})},isSelected:h,icon:t,label:v}))}}]),o}(V.Component)}(t,r,m);return{title:t,description:d,icon:r,category:a,keywords:l,attributes:On,supports:Object(U.a)({align:!0},u),transforms:c,edit:Object(re.compose)(Object(oe.withSelect)((function(e,t){var n=t.attributes.url,r=e("core"),o=r.getEmbedPreview,a=r.isPreviewEmbedFallback,c=r.isRequestingEmbedPreview,i=r.getThemeSupports,l=void 0!==n&&o(n),s=void 0!==n&&a(n),u=void 0!==n&&c(n),b=i(),m=!!l&&void 0===l.type&&!1===l.html,d=!!l&&l.data&&404===l.data.status,h=!!l&&!m&&!d,p=void 0!==n&&(!h||s);return{preview:h?l:void 0,fetching:u,themeSupportsResponsive:b["responsive-embeds"],cannotEmbed:p}})),Object(oe.withDispatch)((function(e,t){var n=t.attributes.url,r=e("core/data");return{tryAgain:function(){r.invalidateResolution("core","getEmbedPreview",[n])}}})))(h),save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,c=n.providerNameSlug;if(!r)return null;var i=Le()("wp-block-embed",(t={},Object(F.a)(t,"is-type-".concat(a),a),Object(F.a)(t,"is-provider-".concat(c),c),t));return Object(V.createElement)("figure",{className:i},Object(V.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(r,"\n")),!Y.RichText.isEmpty(o)&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:o}))},deprecated:[{attributes:On,save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,c=n.providerNameSlug;if(!r)return null;var i=Le()("wp-block-embed",(t={},Object(F.a)(t,"is-type-".concat(a),a),Object(F.a)(t,"is-provider-".concat(c),c),t));return Object(V.createElement)("figure",{className:i},"\n".concat(r,"\n"),!Y.RichText.isEmpty(o)&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:o}))}}]}}var jn="core/embed",vn=fn({title:Object(K._x)("Embed","block title"),description:Object(K.__)("Embed videos, images, tweets, audio, and other content from external sources."),icon:Oe,responsive:!1,transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)},transform:function(e){return Object(D.createBlock)("core/embed",{url:e.textContent.trim()})}}]}}),yn=Re.map((function(e){return Object(U.a)({},e,{settings:fn(e.settings)})})),kn=Be.map((function(e){return Object(U.a)({},e,{settings:fn(e.settings)})}));function wn(e){return e?Object(K.__)("The download button is visible."):Object(K.__)("The download button is hidden.")}function En(e){var t=e.hrefs,n=e.openInNewWindow,r=e.showDownloadButton,o=e.changeLinkDestinationOption,a=e.changeOpenInNewWindow,c=e.changeShowDownloadButton,i=t.href,l=t.textLinkHref,s=t.attachmentPage,u=[{value:i,label:Object(K.__)("URL")}];return s&&(u=[{value:i,label:Object(K.__)("Media File")},{value:s,label:Object(K.__)("Attachment Page")}]),Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Text Link Settings")},Object(V.createElement)(Q.SelectControl,{label:Object(K.__)("Link To"),value:l,options:u,onChange:o}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Open in New Tab"),checked:n,onChange:a})),Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Download Button Settings")},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Show Download Button"),help:wn,checked:r,onChange:c}))))}var Cn=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).onSelectFile=e.onSelectFile.bind(Object(ne.a)(Object(ne.a)(e))),e.confirmCopyURL=e.confirmCopyURL.bind(Object(ne.a)(Object(ne.a)(e))),e.resetCopyConfirmation=e.resetCopyConfirmation.bind(Object(ne.a)(Object(ne.a)(e))),e.changeLinkDestinationOption=e.changeLinkDestinationOption.bind(Object(ne.a)(Object(ne.a)(e))),e.changeOpenInNewWindow=e.changeOpenInNewWindow.bind(Object(ne.a)(Object(ne.a)(e))),e.changeShowDownloadButton=e.changeShowDownloadButton.bind(Object(ne.a)(Object(ne.a)(e))),e.state={hasError:!1,showCopyConfirmation:!1},e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeOperations,o=n.href;if(Object(de.isBlobURL)(o)){var a=Object(de.getBlobByURL)(o);Object(Y.mediaUpload)({filesList:[a],onFileChange:function(t){var n=Object(he.a)(t,1)[0];return e.onSelectFile(n)},onError:function(t){e.setState({hasError:!0}),r.createErrorNotice(t)}}),Object(de.revokeBlobURL)(o)}}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id}))}},{key:"confirmCopyURL",value:function(){this.setState({showCopyConfirmation:!0})}},{key:"resetCopyConfirmation",value:function(){this.setState({showCopyConfirmation:!1})}},{key:"changeLinkDestinationOption",value:function(e){this.props.setAttributes({textLinkHref:e})}},{key:"changeOpenInNewWindow",value:function(e){this.props.setAttributes({textLinkTarget:!!e&&"_blank"})}},{key:"changeShowDownloadButton",value:function(e){this.props.setAttributes({showDownloadButton:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.isSelected,r=e.attributes,o=e.setAttributes,a=e.noticeUI,c=e.noticeOperations,i=e.media,l=r.fileName,s=r.href,u=r.textLinkHref,b=r.textLinkTarget,m=r.showDownloadButton,d=r.downloadButtonText,h=r.id,p=this.state,g=p.hasError,O=p.showCopyConfirmation,f=i&&i.link;if(!s||g)return Object(V.createElement)(Y.MediaPlaceholder,{icon:"media-default",labels:{title:Object(K.__)("File"),instructions:Object(K.__)("Drag a file, upload a new one or select a file from your library.")},onSelect:this.onSelectFile,notices:a,onError:c.createErrorNotice,accept:"*"});var j=q()(t,{"is-transient":Object(de.isBlobURL)(s)});return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(En,Object($.a)({hrefs:{href:s,textLinkHref:u,attachmentPage:f}},{openInNewWindow:!!b,showDownloadButton:m,changeLinkDestinationOption:this.changeLinkDestinationOption,changeOpenInNewWindow:this.changeOpenInNewWindow,changeShowDownloadButton:this.changeShowDownloadButton})),Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.MediaUploadCheck,null,Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Y.MediaUpload,{onSelect:this.onSelectFile,value:h,render:function(e){var t=e.open;return Object(V.createElement)(Q.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit file"),onClick:t,icon:"edit"})}})))),Object(V.createElement)("div",{className:j},Object(V.createElement)("div",{className:"".concat(t,"__content-wrapper")},Object(V.createElement)(Y.RichText,{wrapperClassName:"".concat(t,"__textlink"),tagName:"div",value:l,placeholder:Object(K.__)("Write file name…"),keepPlaceholderOnFocus:!0,formattingControls:[],onChange:function(e){return o({fileName:e})}}),m&&Object(V.createElement)("div",{className:"".concat(t,"__button-richtext-wrapper")},Object(V.createElement)(Y.RichText,{tagName:"div",className:"".concat(t,"__button"),value:d,formattingControls:[],placeholder:Object(K.__)("Add text…"),keepPlaceholderOnFocus:!0,onChange:function(e){return o({downloadButtonText:e})}}))),n&&Object(V.createElement)(Q.ClipboardButton,{isDefault:!0,text:s,className:"".concat(t,"__copy-url-button"),onCopy:this.confirmCopyURL,onFinishCopy:this.resetCopyConfirmation,disabled:Object(de.isBlobURL)(s)},O?Object(K.__)("Copied!"):Object(K.__)("Copy URL"))))}}]),t}(V.Component),_n=Object(re.compose)([Object(oe.withSelect)((function(e,t){var n=e("core").getMedia,r=t.attributes.id;return{media:void 0===r?void 0:n(r)}})),Q.withNotices])(Cn),xn="core/file",Sn={title:Object(K.__)("File"),description:Object(K.__)("Add a link to a downloadable file."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.Path,{d:"M9 6l2 2h9v10H4V6h5m1-2H4L2 6v12l2 2h16l2-2V8l-2-2h-8l-2-2z"})),category:"common",keywords:[Object(K.__)("document"),Object(K.__)("pdf")],attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]",default:Object(K._x)("Download","button label")}},supports:{align:!0},transforms:{from:[{type:"files",isMatch:function(e){return e.length>0},priority:15,transform:function(e){var t=[];return e.map((function(e){var n=Object(de.createBlobURL)(e);t.push(Object(D.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(D.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(D.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(D.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(oe.select)("core").getMedia)(t);return!!n&&Object(G.includes)(n.mime_type,"audio")},transform:function(e){return Object(D.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(oe.select)("core").getMedia)(t);return!!n&&Object(G.includes)(n.mime_type,"video")},transform:function(e){return Object(D.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(oe.select)("core").getMedia)(t);return!!n&&Object(G.includes)(n.mime_type,"image")},transform:function(e){return Object(D.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]},edit:_n,save:function(e){var t=e.attributes,n=t.href,r=t.fileName,o=t.textLinkHref,a=t.textLinkTarget,c=t.showDownloadButton,i=t.downloadButtonText;return n&&Object(V.createElement)("div",null,!Y.RichText.isEmpty(r)&&Object(V.createElement)("a",{href:o,target:a,rel:!!a&&"noreferrer noopener"},Object(V.createElement)(Y.RichText.Content,{value:r})),c&&Object(V.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},Object(V.createElement)(Y.RichText.Content,{value:i})))}},Tn="core/html",Nn={title:Object(K.__)("Custom HTML"),description:Object(K.__)("Add custom HTML code and preview it as you edit."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z"})),category:"formatting",keywords:[Object(K.__)("embed")],supports:{customClassName:!1,className:!1,html:!1},attributes:{content:{type:"string",source:"html"}},transforms:{from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("iframe")},schema:{figure:{require:["iframe"],children:{iframe:{attributes:["src","allowfullscreen","height","width"]},figcaption:{children:Object(D.getPhrasingContentSchema)()}}}}}]},edit:Object(re.withState)({isPreview:!1})((function(e){var t=e.attributes,n=e.setAttributes,r=e.setState,o=e.isPreview;return Object(V.createElement)("div",{className:"wp-block-html"},Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)("div",{className:"components-toolbar"},Object(V.createElement)("button",{className:"components-tab-button ".concat(o?"":"is-active"),onClick:function(){return r({isPreview:!1})}},Object(V.createElement)("span",null,"HTML")),Object(V.createElement)("button",{className:"components-tab-button ".concat(o?"is-active":""),onClick:function(){return r({isPreview:!0})}},Object(V.createElement)("span",null,Object(K.__)("Preview"))))),Object(V.createElement)(Q.Disabled.Consumer,null,(function(e){return o||e?Object(V.createElement)(Q.SandBox,{html:t.content}):Object(V.createElement)(Y.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(K.__)("Write HTML…"),"aria-label":Object(K.__)("HTML")})})))})),save:function(e){var t=e.attributes;return Object(V.createElement)(V.RawHTML,null,t.content)}},Rn=["image","video"],Bn=function(e){function t(){return Object(J.a)(this,t),Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.mediaId,n=e.onSelectMedia;return Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Y.MediaUpload,{onSelect:n,allowedTypes:Rn,value:t,render:function(e){var t=e.open;return Object(V.createElement)(Q.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit media"),icon:"edit",onClick:t})}})))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,r=e.className;return Object(V.createElement)(V.Fragment,null,this.renderToolbarEditButton(),Object(V.createElement)("figure",{className:r},Object(V.createElement)("img",{src:n,alt:t})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,n=e.className;return Object(V.createElement)(V.Fragment,null,this.renderToolbarEditButton(),Object(V.createElement)("figure",{className:n},Object(V.createElement)("video",{controls:!0,src:t})))}},{key:"renderPlaceholder",value:function(){var e=this.props,t=e.onSelectMedia,n=e.className;return Object(V.createElement)(Y.MediaPlaceholder,{icon:"format-image",labels:{title:Object(K.__)("Media area")},className:n,onSelect:t,accept:"image/*,video/*",allowedTypes:Rn})}},{key:"render",value:function(){var e=this.props,t=e.mediaPosition,n=e.mediaUrl,r=e.mediaType,o=e.mediaWidth,a=e.commitWidthChange,c=e.onWidthChange;if(r&&n){var i={right:"left"===t,left:"right"===t},l=null;switch(r){case"image":l=this.renderImage();break;case"video":l=this.renderVideo()}return Object(V.createElement)(Q.ResizableBox,{className:"editor-media-container__resizer",size:{width:o+"%"},minWidth:"10%",maxWidth:"100%",enable:i,onResize:function(e,t,n){c(parseInt(n.style.width))},onResizeStop:function(e,t,n){a(parseInt(n.style.width))},axis:"x"},l)}return this.renderPlaceholder()}}]),t}(V.Component),An=["core/button","core/paragraph","core/heading","core/list"],In=[["core/paragraph",{fontSize:"large",placeholder:Object(K._x)("Content…","content placeholder")}]],Pn=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).onSelectMedia=e.onSelectMedia.bind(Object(ne.a)(Object(ne.a)(e))),e.onWidthChange=e.onWidthChange.bind(Object(ne.a)(Object(ne.a)(e))),e.commitWidthChange=e.commitWidthChange.bind(Object(ne.a)(Object(ne.a)(e))),e.state={mediaWidth:null},e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"onSelectMedia",value:function(e){var t,n,r=this.props.setAttributes;"image"===(t=e.media_type?"image"===e.media_type?"image":"video":e.type)&&(n=Object(G.get)(e,["sizes","large","url"])||Object(G.get)(e,["media_details","sizes","large","source_url"])),r({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:n||e.url})}},{key:"onWidthChange",value:function(e){this.setState({mediaWidth:e})}},{key:"commitWidthChange",value:function(e){(0,this.props.setAttributes)({mediaWidth:e}),this.setState({mediaWidth:null})}},{key:"renderMediaArea",value:function(){var e=this.props.attributes,t=e.mediaAlt,n=e.mediaId,r=e.mediaPosition,o=e.mediaType,a=e.mediaUrl,c=e.mediaWidth;return Object(V.createElement)(Bn,Object($.a)({className:"block-library-media-text__media-container",onSelectMedia:this.onSelectMedia,onWidthChange:this.onWidthChange,commitWidthChange:this.commitWidthChange},{mediaAlt:t,mediaId:n,mediaType:o,mediaUrl:a,mediaPosition:r,mediaWidth:c}))}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.className,o=t.backgroundColor,a=t.isSelected,c=t.setAttributes,i=t.setBackgroundColor,l=n.isStackedOnMobile,s=n.mediaAlt,u=n.mediaPosition,b=n.mediaType,m=n.mediaWidth,d=this.state.mediaWidth,h=q()(r,(e={"has-media-on-the-right":"right"===u,"is-selected":a},Object(F.a)(e,o.class,o.class),Object(F.a)(e,"is-stacked-on-mobile",l),e)),p="".concat(d||m,"%"),g={gridTemplateColumns:"right"===u?"auto ".concat(p):"".concat(p," auto"),backgroundColor:o.color},O=[{value:o.color,onChange:i,label:Object(K.__)("Background Color")}],f=[{icon:"align-pull-left",title:Object(K.__)("Show media on left"),isActive:"left"===u,onClick:function(){return c({mediaPosition:"left"})}},{icon:"align-pull-right",title:Object(K.__)("Show media on right"),isActive:"right"===u,onClick:function(){return c({mediaPosition:"right"})}}],j=Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Media & Text Settings")},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Stack on mobile"),checked:l,onChange:function(){return c({isStackedOnMobile:!l})}}),"image"===b&&Object(V.createElement)(Q.TextareaControl,{label:Object(K.__)("Alt Text (Alternative Text)"),value:s,onChange:function(e){c({mediaAlt:e})},help:Object(K.__)("Alternative text describes your image to people who can’t see it. Add a short description with its key details.")}));return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.InspectorControls,null,j,Object(V.createElement)(Y.PanelColorSettings,{title:Object(K.__)("Color Settings"),initialOpen:!1,colorSettings:O})),Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Q.Toolbar,{controls:f})),Object(V.createElement)("div",{className:h,style:g},this.renderMediaArea(),Object(V.createElement)(Y.InnerBlocks,{allowedBlocks:An,template:In,templateInsertUpdatesSelection:!1})))}}]),t}(V.Component),Ln=Object(Y.withColors)("backgroundColor")(Pn),Mn="core/media-text",zn={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},Hn={title:Object(K.__)("Media & Text"),description:Object(K.__)("Set media and words side-by-side for a richer layout."),icon:Object(V.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(V.createElement)(Q.Path,{d:"M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z"})),category:"layout",keywords:[Object(K.__)("image"),Object(K.__)("video")],attributes:zn,supports:{align:["wide","full"],html:!1},transforms:{from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.alt,n=e.url,r=e.id;return Object(D.createBlock)("core/media-text",{mediaAlt:t,mediaId:r,mediaUrl:n,mediaType:"image"})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.src,n=e.id;return Object(D.createBlock)("core/media-text",{mediaId:n,mediaUrl:t,mediaType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"image"===t},transform:function(e){var t=e.mediaAlt,n=e.mediaId,r=e.mediaUrl;return Object(D.createBlock)("core/image",{alt:t,id:n,url:r})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"video"===t},transform:function(e){var t=e.mediaId,n=e.mediaUrl;return Object(D.createBlock)("core/video",{id:t,src:n})}}]},edit:Ln,save:function(e){var t,n,r=e.attributes,o=r.backgroundColor,a=r.customBackgroundColor,c=r.isStackedOnMobile,i=r.mediaAlt,l=r.mediaPosition,s=r.mediaType,u=r.mediaUrl,b=r.mediaWidth,m=r.mediaId,d={image:function(){return Object(V.createElement)("img",{src:u,alt:i,className:m&&"image"===s?"wp-image-".concat(m):null})},video:function(){return Object(V.createElement)("video",{controls:!0,src:u})}},h=Object(Y.getColorClassName)("background-color",o),p=q()((t={"has-media-on-the-right":"right"===l},Object(F.a)(t,h,h),Object(F.a)(t,"is-stacked-on-mobile",c),t));50!==b&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var g={backgroundColor:h?void 0:a,gridTemplateColumns:n};return Object(V.createElement)("div",{className:p,style:g},Object(V.createElement)("figure",{className:"wp-block-media-text__media"},(d[s]||G.noop)()),Object(V.createElement)("div",{className:"wp-block-media-text__content"},Object(V.createElement)(Y.InnerBlocks.Content,null)))},deprecated:[{attributes:zn,save:function(e){var t,n,r=e.attributes,o=r.backgroundColor,a=r.customBackgroundColor,c=r.isStackedOnMobile,i=r.mediaAlt,l=r.mediaPosition,s=r.mediaType,u=r.mediaUrl,b=r.mediaWidth,m={image:function(){return Object(V.createElement)("img",{src:u,alt:i})},video:function(){return Object(V.createElement)("video",{controls:!0,src:u})}},d=Object(Y.getColorClassName)("background-color",o),h=q()((t={"has-media-on-the-right":"right"===l},Object(F.a)(t,d,d),Object(F.a)(t,"is-stacked-on-mobile",c),t));50!==b&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var p={backgroundColor:d?void 0:a,gridTemplateColumns:n};return Object(V.createElement)("div",{className:h,style:p},Object(V.createElement)("figure",{className:"wp-block-media-text__media"},(m[s]||G.noop)()),Object(V.createElement)("div",{className:"wp-block-media-text__content"},Object(V.createElement)(Y.InnerBlocks.Content,null)))}}]},Dn=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).setAlignment=e.setAlignment.bind(Object(ne.a)(Object(ne.a)(e))),e.setCommentsToShow=e.setCommentsToShow.bind(Object(ne.a)(Object(ne.a)(e))),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(F.a)({},e,!n))}}},{key:"setAlignment",value:function(e){this.props.setAttributes({align:e})}},{key:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.align,n=e.commentsToShow,r=e.displayAvatar,o=e.displayDate,a=e.displayExcerpt;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.BlockAlignmentToolbar,{value:t,onChange:this.setAlignment})),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Latest Comments Settings")},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Display Avatar"),checked:r,onChange:this.toggleDisplayAvatar}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Display Date"),checked:o,onChange:this.toggleDisplayDate}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Display Excerpt"),checked:a,onChange:this.toggleDisplayExcerpt}),Object(V.createElement)(Q.RangeControl,{label:Object(K.__)("Number of Comments"),value:n,onChange:this.setCommentsToShow,min:1,max:100}))),Object(V.createElement)(Q.Disabled,null,Object(V.createElement)(Y.ServerSideRender,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),t}(V.Component),Fn="core/latest-comments",Un={title:Object(K.__)("Latest Comments"),description:Object(K.__)("Display a list of your most recent comments."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M22 4l-2-2H4L2 4v12l2 2h14l4 4V4zm-2 0v13l-1-1H4V4h16z"}),Object(V.createElement)(Q.Path,{d:"M6 12h12v2H6zM6 9h12v2H6zM6 6h12v2H6z"}))),category:"widgets",keywords:[Object(K.__)("recent comments")],supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right","wide","full"].includes(t))return{"data-align":t}},edit:Dn,save:function(){return null}},Vn=n("ywyh"),Wn=n.n(Vn),qn=n("FqII"),Gn=n("rmEH"),Kn={per_page:-1},Yn=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).state={categoriesList:[]},e.toggleDisplayPostDate=e.toggleDisplayPostDate.bind(Object(ne.a)(Object(ne.a)(e))),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"componentWillMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=Wn()({path:Object(pe.addQueryArgs)("/wp/v2/categories",Kn)}).then((function(t){e.isStillMounted&&e.setState({categoriesList:t})})).catch((function(){e.isStillMounted&&e.setState({categoriesList:[]})}))}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"toggleDisplayPostDate",value:function(){var e=this.props.attributes.displayPostDate;(0,this.props.setAttributes)({displayPostDate:!e})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.latestPosts,o=this.state.categoriesList,a=t.displayPostDate,c=t.align,i=t.postLayout,l=t.columns,s=t.order,u=t.orderBy,b=t.categories,m=t.postsToShow,d=Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Latest Posts Settings")},Object(V.createElement)(Q.QueryControls,Object($.a)({order:s,orderBy:u},{numberOfItems:m,categoriesList:o,selectedCategoryId:b,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},onCategoryChange:function(e){return n({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return n({postsToShow:e})}})),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Display post date"),checked:a,onChange:this.toggleDisplayPostDate}),"grid"===i&&Object(V.createElement)(Q.RangeControl,{label:Object(K.__)("Columns"),value:l,onChange:function(e){return n({columns:e})},min:2,max:h?Math.min(6,r.length):6}))),h=Array.isArray(r)&&r.length;if(!h)return Object(V.createElement)(V.Fragment,null,d,Object(V.createElement)(Q.Placeholder,{icon:"admin-post",label:Object(K.__)("Latest Posts")},Array.isArray(r)?Object(K.__)("No posts found."):Object(V.createElement)(Q.Spinner,null)));var p=r.length>m?r.slice(0,m):r,g=[{icon:"list-view",title:Object(K.__)("List View"),onClick:function(){return n({postLayout:"list"})},isActive:"list"===i},{icon:"grid-view",title:Object(K.__)("Grid View"),onClick:function(){return n({postLayout:"grid"})},isActive:"grid"===i}],O=Object(qn.__experimentalGetSettings)().formats.date;return Object(V.createElement)(V.Fragment,null,d,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.BlockAlignmentToolbar,{value:c,onChange:function(e){n({align:e})},controls:["center","wide","full"]}),Object(V.createElement)(Q.Toolbar,{controls:g})),Object(V.createElement)("ul",{className:q()(this.props.className,Object(F.a)({"is-grid":"grid"===i,"has-dates":a},"columns-".concat(l),"grid"===i))},p.map((function(e,t){return Object(V.createElement)("li",{key:t},Object(V.createElement)("a",{href:e.link,target:"_blank"},Object(Gn.decodeEntities)(e.title.rendered.trim())||Object(K.__)("(Untitled)")),a&&e.date_gmt&&Object(V.createElement)("time",{dateTime:Object(qn.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(qn.dateI18n)(O,e.date_gmt)))}))))}}]),t}(V.Component),Qn=Object(oe.withSelect)((function(e,t){var n=t.attributes,r=n.postsToShow,o=n.order,a=n.orderBy,c=n.categories;return{latestPosts:(0,e("core").getEntityRecords)("postType","post",Object(G.pickBy)({categories:c,order:o,orderby:a,per_page:r},(function(e){return!Object(G.isUndefined)(e)})))}}))(Yn),$n="core/latest-posts",Jn={title:Object(K.__)("Latest Posts"),description:Object(K.__)("Display a list of your most recent posts."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(V.createElement)(Q.Rect,{x:"11",y:"7",width:"6",height:"2"}),Object(V.createElement)(Q.Rect,{x:"11",y:"11",width:"6",height:"2"}),Object(V.createElement)(Q.Rect,{x:"11",y:"15",width:"6",height:"2"}),Object(V.createElement)(Q.Rect,{x:"7",y:"7",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"7",y:"11",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"7",y:"15",width:"2",height:"2"}),Object(V.createElement)(Q.Path,{d:"M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z"})),category:"widgets",keywords:[Object(K.__)("recent posts")],supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right","wide","full"].includes(t))return{"data-align":t}},edit:Qn,save:function(){return null}},Zn=Object(U.a)({},Object(D.getPhrasingContentSchema)(),{ul:{},ol:{attributes:["type"]}});["ul","ol"].forEach((function(e){Zn[e].children={li:{children:Zn}}}));var Xn={className:!1},er={ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:""}},tr="core/list",nr={title:Object(K.__)("List"),description:Object(K.__)("Create a bulleted or numbered list."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"}))),category:"common",keywords:[Object(K.__)("bullet list"),Object(K.__)("ordered list"),Object(K.__)("numbered list")],attributes:er,supports:Xn,transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(D.createBlock)("core/list",{values:Object(st.toHTMLString)({value:Object(st.join)(e.map((function(e){var t=e.content;return Object(st.replace)(Object(st.create)({html:t}),/\n/g,st.LINE_SEPARATOR)})),st.LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object(D.createBlock)("core/list",{values:Object(st.toHTMLString)({value:Object(st.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:{ol:Zn.ol,ul:Zn.ul},transform:function(e){return Object(D.createBlock)("core/list",Object(U.a)({},Object(D.getBlockAttributes)("core/list",e.outerHTML),{ordered:"OL"===e.nodeName}))}}].concat(Object(H.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(D.createBlock)("core/list",{values:"
  • ".concat(e,"
  • ")})}}}))),Object(H.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(D.createBlock)("core/list",{ordered:!0,values:"
  • ".concat(e,"
  • ")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(st.split)(Object(st.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),st.LINE_SEPARATOR).map((function(e){return Object(D.createBlock)("core/paragraph",{content:Object(st.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object(D.createBlock)("core/quote",{value:Object(st.toHTMLString)({value:Object(st.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]},deprecated:[{supports:Xn,attributes:Object(U.a)({},Object(G.omit)(er,["ordered"]),{nodeName:{type:"string",source:"property",selector:"ol,ul",property:"nodeName",default:"UL"}}),migrate:function(e){var t=e.nodeName,n=Object(tt.a)(e,["nodeName"]);return Object(U.a)({},n,{ordered:"OL"===t})},save:function(e){var t=e.attributes,n=t.nodeName,r=t.values;return Object(V.createElement)(Y.RichText.Content,{tagName:n.toLowerCase(),value:r})}}],merge:function(e,t){var n=t.values;return n&&"
  • "!==n?Object(U.a)({},e,{values:e.values+n}):e},edit:function(e){var t=e.attributes,n=e.insertBlocksAfter,r=e.setAttributes,o=e.mergeBlocks,a=e.onReplace,c=e.className,i=t.ordered,l=t.values;return Object(V.createElement)(Y.RichText,{identifier:"values",multiline:"li",tagName:i?"ol":"ul",onChange:function(e){return r({values:e})},value:l,wrapperClassName:"block-library-list",className:c,placeholder:Object(K.__)("Write list…"),onMerge:o,unstableOnSplit:n?function(e,t){for(var o=arguments.length,a=new Array(o>2?o-2:0),c=2;c"!==t&&a.push(Object(D.createBlock)("core/list",{ordered:i,values:t})),r({values:e}),n(a)}:void 0,onRemove:function(){return a([])},onTagNameChange:function(e){return r({ordered:"ol"===e})}})},save:function(e){var t=e.attributes,n=t.ordered,r=t.values,o=n?"ol":"ul";return Object(V.createElement)(Y.RichText.Content,{tagName:o,value:r,multiline:"li"})}},rr=n("1CF3");var or=Object(oe.withDispatch)((function(e,t){var n=t.clientId,r=t.attributes,o=e("core/editor").replaceBlock;return{convertToHTML:function(){o(n,Object(D.createBlock)("core/html",{content:r.originalUndelimitedContent}))}}}))((function(e){var t,n=e.attributes,r=e.convertToHTML,o=n.originalName,a=n.originalUndelimitedContent,c=!!a,i=Object(D.getBlockType)("core/html"),l=[];return c&&i?(t=Object(K.sprintf)(Object(K.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),o),l.push(Object(V.createElement)(Q.Button,{key:"convert",onClick:r,isLarge:!0,isPrimary:!0},Object(K.__)("Keep as HTML")))):t=Object(K.sprintf)(Object(K.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),o),Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.Warning,{actions:l},t),Object(V.createElement)(V.RawHTML,null,Object(rr.safeHTML)(a)))})),ar="core/missing",cr={name:ar,category:"common",title:Object(K.__)("Unrecognized Block"),description:Object(K.__)("Your site doesn’t include support for this block."),supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1},attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},edit:or,save:function(e){var t=e.attributes;return Object(V.createElement)(V.RawHTML,null,t.originalContent)}},ir=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).onChangeInput=e.onChangeInput.bind(Object(ne.a)(Object(ne.a)(e))),e.onKeyDown=e.onKeyDown.bind(Object(ne.a)(Object(ne.a)(e))),e.state={defaultText:Object(K.__)("Read more")},e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"onChangeInput",value:function(e){this.setState({defaultText:""});var t=0===e.target.value.length?void 0:e.target.value;this.props.setAttributes({customText:t})}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=this.props.insertBlocksAfter;t===dt.ENTER&&n([Object(D.createBlock)(Object(D.getDefaultBlockName)())])}},{key:"render",value:function(){var e=this.props.attributes,t=e.customText,n=e.noTeaser,r=this.props.setAttributes,o=this.state.defaultText,a=void 0!==t?t:o,c=a.length+1;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,null,Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)('Hide the teaser before the "More" tag'),checked:!!n,onChange:function(){return r({noTeaser:!n})}}))),Object(V.createElement)("div",{className:"wp-block-more"},Object(V.createElement)("input",{type:"text",value:a,size:c,onChange:this.onChangeInput,onKeyDown:this.onKeyDown})))}}]),t}(V.Component),lr="core/more",sr={title:Object(K._x)("More","block name"),description:Object(K.__)("Mark the excerpt of this content. Content before this block will be shown in the excerpt on your archives page."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"}))),category:"layout",supports:{customClassName:!1,className:!1,html:!1,multiple:!1},attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},transforms:{from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/more"===e.dataset.block},transform:function(e){var t=e.dataset,n=t.customText,r=t.noTeaser,o={};return n&&(o.customText=n),""===r&&(o.noTeaser=!0),Object(D.createBlock)("core/more",o)}}]},edit:ir,save:function(e){var t=e.attributes,n=t.customText,r=t.noTeaser,o=n?"\x3c!--more ".concat(n,"--\x3e"):"\x3c!--more--\x3e",a=r?"\x3c!--noteaser--\x3e":"";return Object(V.createElement)(V.RawHTML,null,Object(G.compact)([o,a]).join("\n"))}};var ur="core/nextpage",br={title:Object(K.__)("Page Break"),description:Object(K.__)("Separate your content into a multi-page experience."),icon:Object(V.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M9 12h6v-2H9zm-7 0h5v-2H2zm15 0h5v-2h-5zm3 2v2l-6 6H6a2 2 0 0 1-2-2v-6h2v6h6v-4a2 2 0 0 1 2-2h6zM4 8V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4h-2V4H6v4z"}))),category:"layout",keywords:[Object(K.__)("next page"),Object(K.__)("pagination")],supports:{customClassName:!1,className:!1,html:!1},attributes:{},transforms:{from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(D.createBlock)("core/nextpage",{})}}]},edit:function(){return Object(V.createElement)("div",{className:"wp-block-nextpage"},Object(V.createElement)("span",null,Object(K.__)("Page break")))},save:function(){return Object(V.createElement)(V.RawHTML,null,"\x3c!--nextpage--\x3e")}},mr="core/preformatted",dr={title:Object(K.__)("Preformatted"),description:Object(K.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(V.createElement)(Q.Path,{d:"M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z"}),Object(V.createElement)(Q.Rect,{x:"6",y:"10",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"6",y:"14",width:"8",height:"2"}),Object(V.createElement)(Q.Rect,{x:"16",y:"14",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"10",y:"10",width:"8",height:"2"})),category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:""}},transforms:{from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content;return Object(D.createBlock)("core/preformatted",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:{pre:{children:Object(D.getPhrasingContentSchema)()}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(D.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.mergeBlocks,r=e.setAttributes,o=e.className,a=t.content;return Object(V.createElement)(Y.RichText,{tagName:"pre",value:a,onChange:function(e){r({content:e})},placeholder:Object(K.__)("Write preformatted text…"),wrapperClassName:o,onMerge:n})},save:function(e){var t=e.attributes.content;return Object(V.createElement)(Y.RichText.Content,{tagName:"pre",value:t})},merge:function(e,t){return{content:e.content+t.content}}},hr="is-style-".concat("solid-color"),pr=function(e){function t(e){var n;return Object(J.a)(this,t),(n=Object(X.a)(this,Object(ee.a)(t).call(this,e))).wasTextColorAutomaticallyComputed=!1,n.pullQuoteMainColorSetter=n.pullQuoteMainColorSetter.bind(Object(ne.a)(Object(ne.a)(n))),n.pullQuoteTextColorSetter=n.pullQuoteTextColorSetter.bind(Object(ne.a)(Object(ne.a)(n))),n}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"pullQuoteMainColorSetter",value:function(e){var t=this.props,n=t.colorUtils,r=t.textColor,o=t.setTextColor,a=t.setMainColor,c=t.className,i=Object(G.includes)(c,hr),l=!r.color||this.wasTextColorAutomaticallyComputed,s=i&&l&&e;a(e),s&&(this.wasTextColorAutomaticallyComputed=!0,o(n.getMostReadableColor(e)))}},{key:"pullQuoteTextColorSetter",value:function(e){(0,this.props.setTextColor)(e),this.wasTextColorAutomaticallyComputed=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.mainColor,r=e.textColor,o=e.setAttributes,a=e.isSelected,c=e.className,i=t.value,l=t.citation,s=Object(G.includes)(c,hr),u=s?{backgroundColor:n.color}:{borderColor:n.color},b={color:r.color},m=r.color?q()("has-text-color",Object(F.a)({},r.class,r.class)):void 0;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)("figure",{style:u,className:q()(c,Object(F.a)({},n.class,s&&n.class))},Object(V.createElement)("blockquote",{style:b,className:m},Object(V.createElement)(Y.RichText,{multiline:!0,value:i,onChange:function(e){return o({value:e})},placeholder:Object(K.__)("Write quote…"),wrapperClassName:"block-library-pullquote__content"}),(!Y.RichText.isEmpty(l)||a)&&Object(V.createElement)(Y.RichText,{value:l,placeholder:Object(K.__)("Write citation…"),onChange:function(e){return o({citation:e})},className:"wp-block-pullquote__citation"}))),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Y.PanelColorSettings,{title:Object(K.__)("Color Settings"),colorSettings:[{value:n.color,onChange:this.pullQuoteMainColorSetter,label:Object(K.__)("Main Color")},{value:r.color,onChange:this.pullQuoteTextColorSetter,label:Object(K.__)("Text Color")}]},s&&Object(V.createElement)(Y.ContrastChecker,Object($.a)({textColor:r.color,backgroundColor:n.color},{isLargeText:!1})))))}}]),t}(V.Component),gr=Object(Y.withColors)({mainColor:"background-color",textColor:"color"})(pr),Or={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},fr="core/pullquote",jr={title:Object(K.__)("Pullquote"),description:Object(K.__)("Give special visual emphasis to a quote from your text."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(V.createElement)(Q.Polygon,{points:"21 18 2 18 2 20 21 20"}),Object(V.createElement)(Q.Path,{d:"m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z"}),Object(V.createElement)(Q.Polygon,{points:"21 4 2 4 2 6 21 6"})),category:"formatting",attributes:Or,styles:[{name:"default",label:Object(K._x)("Regular","block style"),isDefault:!0},{name:"solid-color",label:Object(K.__)("Solid Color")}],supports:{align:["left","right","wide","full"]},edit:gr,save:function(e){var t,n,r=e.attributes,o=r.mainColor,a=r.customMainColor,c=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(G.includes)(u,hr))(t=Object(Y.getColorClassName)("background-color",o))||(n={backgroundColor:a});else if(a)n={borderColor:a};else if(o){var b=Object(G.get)(Object(oe.select)("core/editor").getEditorSettings(),["colors"],[]);n={borderColor:Object(Y.getColorObjectByAttributeValues)(b,o).color}}var m=Object(Y.getColorClassName)("color",c),d=c||i?q()("has-text-color",Object(F.a)({},m,m)):void 0,h=m?void 0:{color:i};return Object(V.createElement)("figure",{className:t,style:n},Object(V.createElement)("blockquote",{className:d,style:h},Object(V.createElement)(Y.RichText.Content,{value:l,multiline:!0}),!Y.RichText.isEmpty(s)&&Object(V.createElement)(Y.RichText.Content,{tagName:"cite",value:s})))},deprecated:[{attributes:Object(U.a)({},Or),save:function(e){var t=e.attributes,n=t.value,r=t.citation;return Object(V.createElement)("blockquote",null,Object(V.createElement)(Y.RichText.Content,{value:n,multiline:!0}),!Y.RichText.isEmpty(r)&&Object(V.createElement)(Y.RichText.Content,{tagName:"cite",value:r}))}},{attributes:Object(U.a)({},Or,{citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.value,r=t.citation,o=t.align;return Object(V.createElement)("blockquote",{className:"align".concat(o)},Object(V.createElement)(Y.RichText.Content,{value:n,multiline:!0}),!Y.RichText.isEmpty(r)&&Object(V.createElement)(Y.RichText.Content,{tagName:"footer",value:r}))}}]},vr=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).titleField=Object(V.createRef)(),e.editButton=Object(V.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(ne.a)(Object(ne.a)(e))),e.handleTitleChange=e.handleTitleChange.bind(Object(ne.a)(Object(ne.a)(e))),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(ne.a)(Object(ne.a)(e))),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"componentDidMount",value:function(){this.props.isEditing&&this.titleField.current&&this.titleField.current.select()}},{key:"componentDidUpdate",value:function(e){!e.isEditing&&this.props.isEditing&&this.titleField.current.select(),!e.isEditing&&!e.isSaving||this.props.isEditing||this.props.isSaving||this.editButton.current.focus()}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"handleTitleChange",value:function(e){this.props.onChangeTitle(e.target.value)}},{key:"handleTitleKeyDown",value:function(e){e.keyCode===dt.ESCAPE&&(e.stopPropagation(),this.props.onCancel())}},{key:"render",value:function(){var e=this.props,t=e.isEditing,n=e.title,r=e.isSaving,o=e.onEdit,a=e.instanceId;return Object(V.createElement)(V.Fragment,null,!t&&!r&&Object(V.createElement)("div",{className:"reusable-block-edit-panel"},Object(V.createElement)("b",{className:"reusable-block-edit-panel__info"},n),Object(V.createElement)(Q.Button,{ref:this.editButton,isLarge:!0,className:"reusable-block-edit-panel__button",onClick:o},Object(K.__)("Edit"))),(t||r)&&Object(V.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object(V.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(a),className:"reusable-block-edit-panel__label"},Object(K.__)("Name:")),Object(V.createElement)("input",{ref:this.titleField,type:"text",disabled:r,className:"reusable-block-edit-panel__title",value:n,onChange:this.handleTitleChange,onKeyDown:this.handleTitleKeyDown,id:"reusable-block-edit-panel__title-".concat(a)}),Object(V.createElement)(Q.Button,{type:"submit",isLarge:!0,isBusy:r,disabled:!n||r,className:"reusable-block-edit-panel__button"},Object(K.__)("Save"))))}}]),t}(V.Component),yr=Object(re.withInstanceId)(vr);var kr=function(e){var t=e.title,n=Object(K.sprintf)(Object(K.__)("Reusable Block: %s"),t);return Object(V.createElement)(Q.Tooltip,{text:n},Object(V.createElement)("span",{className:"reusable-block-indicator"},Object(V.createElement)(Q.Dashicon,{icon:"controls-repeat"})))},wr=function(e){function t(e){var n,r=e.reusableBlock;return Object(J.a)(this,t),(n=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).startEditing=n.startEditing.bind(Object(ne.a)(Object(ne.a)(n))),n.stopEditing=n.stopEditing.bind(Object(ne.a)(Object(ne.a)(n))),n.setAttributes=n.setAttributes.bind(Object(ne.a)(Object(ne.a)(n))),n.setTitle=n.setTitle.bind(Object(ne.a)(Object(ne.a)(n))),n.save=n.save.bind(Object(ne.a)(Object(ne.a)(n))),r&&r.isTemporary?n.state={isEditing:!0,title:r.title,changedAttributes:{}}:n.state={isEditing:!1,title:null,changedAttributes:null},n}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,changedAttributes:{}})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,changedAttributes:null})}},{key:"setAttributes",value:function(e){this.setState((function(t){if(null!==t.changedAttributes)return{changedAttributes:Object(U.a)({},t.changedAttributes,e)}}))}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.reusableBlock,n=e.onUpdateTitle,r=e.updateAttributes,o=e.block,a=e.onSave,c=this.state,i=c.title,l=c.changedAttributes;i!==t.title&&n(i),r(o.clientId,l),a(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.reusableBlock,r=e.block,o=e.isFetching,a=e.isSaving,c=this.state,i=c.isEditing,l=c.title,s=c.changedAttributes;if(!n&&o)return Object(V.createElement)(Q.Placeholder,null,Object(V.createElement)(Q.Spinner,null));if(!n||!r)return Object(V.createElement)(Q.Placeholder,null,Object(K.__)("Block has been deleted or is unavailable."));var u=Object(V.createElement)(Y.BlockEdit,Object($.a)({},this.props,{isSelected:i&&t,clientId:r.clientId,name:r.name,attributes:Object(U.a)({},r.attributes,s),setAttributes:i?this.setAttributes:G.noop}));return i||(u=Object(V.createElement)(Q.Disabled,null,u)),Object(V.createElement)(V.Fragment,null,(t||i)&&Object(V.createElement)(yr,{isEditing:i,title:null!==l?l:n.title,isSaving:a&&!n.isTemporary,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),!t&&!i&&Object(V.createElement)(kr,{title:n.title}),u)}}]),t}(V.Component),Er=Object(re.compose)([Object(oe.withSelect)((function(e,t){var n=e("core/editor"),r=n.__experimentalGetReusableBlock,o=n.__experimentalIsFetchingReusableBlock,a=n.__experimentalIsSavingReusableBlock,c=n.getBlock,i=t.attributes.ref,l=r(i);return{reusableBlock:l,isFetching:o(i),isSaving:a(i),block:l?c(l.clientId):null}})),Object(oe.withDispatch)((function(e,t){var n=e("core/editor"),r=n.__experimentalFetchReusableBlocks,o=n.updateBlockAttributes,a=n.__experimentalUpdateReusableBlockTitle,c=n.__experimentalSaveReusableBlock,i=t.attributes.ref;return{fetchReusableBlock:Object(G.partial)(r,i),updateAttributes:o,onUpdateTitle:Object(G.partial)(a,i),onSave:Object(G.partial)(c,i)}}))])(wr),Cr="core/block",_r={title:Object(K.__)("Reusable Block"),category:"reusable",description:Object(K.__)("Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere it’s used."),attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},edit:Er,save:function(){return null}},xr="core/separator",Sr={title:Object(K.__)("Separator"),description:Object(K.__)("Create a break between ideas or sections with a horizontal separator."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.Path,{d:"M19 13H5v-2h14v2z"})),category:"layout",keywords:[Object(K.__)("horizontal-line"),"hr",Object(K.__)("divider")],styles:[{name:"default",label:Object(K.__)("Short Line"),isDefault:!0},{name:"wide",label:Object(K.__)("Wide Line")},{name:"dots",label:Object(K.__)("Dots")}],transforms:{from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(D.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},edit:function(e){var t=e.className;return Object(V.createElement)("hr",{className:t})},save:function(){return Object(V.createElement)("hr",null)}},Tr=n("UuzZ"),Nr="core/shortcode",Rr={title:Object(K.__)("Shortcode"),description:Object(K.__)("Insert additional custom elements with a WordPress shortcode."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z"})),category:"widgets",attributes:{text:{type:"string",source:"text"}},transforms:{from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(Tr.removep)(Object(Tr.autop)(n))}}},priority:20}]},supports:{customClassName:!1,className:!1,html:!1},edit:Object(re.withInstanceId)((function(e){var t=e.attributes,n=e.setAttributes,r=e.instanceId,o="blocks-shortcode-input-".concat(r);return Object(V.createElement)("div",{className:"wp-block-shortcode"},Object(V.createElement)("label",{htmlFor:o},Object(V.createElement)(Q.Dashicon,{icon:"shortcode"}),Object(K.__)("Shortcode")),Object(V.createElement)(Y.PlainText,{className:"input-control",id:o,value:t.text,placeholder:Object(K.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))})),save:function(e){var t=e.attributes;return Object(V.createElement)(V.RawHTML,null,t.text)}},Br="core/spacer",Ar={title:Object(K.__)("Spacer"),description:Object(K.__)("Add white space between blocks and customize its height."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"}))),category:"layout",attributes:{height:{type:"number",default:100}},edit:Object(re.withInstanceId)((function(e){var t=e.attributes,n=e.isSelected,r=e.setAttributes,o=e.toggleSelection,a=e.instanceId,c=t.height,i="block-spacer-height-input-".concat(a);return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Q.ResizableBox,{className:q()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:c},minHeight:"20",enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStop:function(e,t,n,a){r({height:parseInt(c+a.height,10)}),o(!0)},onResizeStart:function(){o(!1)}}),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Spacer Settings")},Object(V.createElement)(Q.BaseControl,{label:Object(K.__)("Height in pixels"),id:i},Object(V.createElement)("input",{type:"number",id:i,onChange:function(e){r({height:parseInt(e.target.value,10)})},value:c,min:"20",step:"10"})))))})),save:function(e){var t=e.attributes;return Object(V.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}},Ir=n("NMb1"),Pr=n.n(Ir),Lr="core/subhead",Mr={title:Object(K.__)("Subheading (deprecated)"),description:Object(K.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(V.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(V.createElement)(Q.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),category:"common",supports:{inserter:!1,multiple:!1},attributes:{content:{type:"string",source:"html",selector:"p"},align:{type:"string"}},transforms:{to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(D.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.align,a=t.content,c=t.placeholder;return Pr()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.AlignmentToolbar,{value:o,onChange:function(e){n({align:e})}})),Object(V.createElement)(Y.RichText,{tagName:"p",value:a,onChange:function(e){n({content:e})},style:{textAlign:o},className:r,placeholder:c||Object(K.__)("Write subheading…")}))},save:function(e){var t=e.attributes,n=t.align,r=t.content;return Object(V.createElement)(Y.RichText.Content,{tagName:"p",style:{textAlign:n},value:r})}};function zr(e,t){var n=t.section,r=t.columnIndex;return Object(F.a)({},n,e[n].map((function(e){return{cells:Object(H.a)(e.cells.slice(0,r)).concat([{content:"",tag:"td"}],Object(H.a)(e.cells.slice(r)))}})))}var Hr=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).onCreateTable=e.onCreateTable.bind(Object(ne.a)(Object(ne.a)(e))),e.onChangeFixedLayout=e.onChangeFixedLayout.bind(Object(ne.a)(Object(ne.a)(e))),e.onChange=e.onChange.bind(Object(ne.a)(Object(ne.a)(e))),e.onChangeInitialColumnCount=e.onChangeInitialColumnCount.bind(Object(ne.a)(Object(ne.a)(e))),e.onChangeInitialRowCount=e.onChangeInitialRowCount.bind(Object(ne.a)(Object(ne.a)(e))),e.renderSection=e.renderSection.bind(Object(ne.a)(Object(ne.a)(e))),e.getTableControls=e.getTableControls.bind(Object(ne.a)(Object(ne.a)(e))),e.onInsertRow=e.onInsertRow.bind(Object(ne.a)(Object(ne.a)(e))),e.onInsertRowBefore=e.onInsertRowBefore.bind(Object(ne.a)(Object(ne.a)(e))),e.onInsertRowAfter=e.onInsertRowAfter.bind(Object(ne.a)(Object(ne.a)(e))),e.onDeleteRow=e.onDeleteRow.bind(Object(ne.a)(Object(ne.a)(e))),e.onInsertColumn=e.onInsertColumn.bind(Object(ne.a)(Object(ne.a)(e))),e.onInsertColumnBefore=e.onInsertColumnBefore.bind(Object(ne.a)(Object(ne.a)(e))),e.onInsertColumnAfter=e.onInsertColumnAfter.bind(Object(ne.a)(Object(ne.a)(e))),e.onDeleteColumn=e.onDeleteColumn.bind(Object(ne.a)(Object(ne.a)(e))),e.state={initialRowCount:2,initialColumnCount:2,selectedCell:null},e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"onChangeInitialColumnCount",value:function(e){this.setState({initialColumnCount:e})}},{key:"onChangeInitialRowCount",value:function(e){this.setState({initialRowCount:e})}},{key:"onCreateTable",value:function(e){e.preventDefault();var t,n,r,o=this.props.setAttributes,a=this.state,c=a.initialRowCount,i=a.initialColumnCount;c=parseInt(c,10)||2,i=parseInt(i,10)||2,o((n=(t={rowCount:c,columnCount:i}).rowCount,r=t.columnCount,{body:Object(G.times)(n,(function(){return{cells:Object(G.times)(r,(function(){return{content:"",tag:"td"}}))}}))}))}},{key:"onChangeFixedLayout",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({hasFixedLayout:!t.hasFixedLayout})}},{key:"onChange",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes;(0,n.setAttributes)(function(e,t){var n=t.section,r=t.rowIndex,o=t.columnIndex,a=t.content;return Object(F.a)({},n,e[n].map((function(e,t){return t!==r?e:{cells:e.cells.map((function(e,t){return t!==o?e:Object(U.a)({},e,{content:a})}))}})))}(r,{section:t.section,rowIndex:t.rowIndex,columnIndex:t.columnIndex,content:e}))}}},{key:"onInsertRow",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.section,c=t.rowIndex;this.setState({selectedCell:null}),o(function(e,t){var n=t.section,r=t.rowIndex,o=e[n][0].cells.length;return Object(F.a)({},n,Object(H.a)(e[n].slice(0,r)).concat([{cells:Object(G.times)(o,(function(){return{content:"",tag:"td"}}))}],Object(H.a)(e[n].slice(r))))}(r,{section:a,rowIndex:c+e}))}}},{key:"onInsertRowBefore",value:function(){this.onInsertRow(0)}},{key:"onInsertRowAfter",value:function(){this.onInsertRow(1)}},{key:"onDeleteRow",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.section,a=e.rowIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.section,r=t.rowIndex;return Object(F.a)({},n,e[n].filter((function(e,t){return t!==r})))}(n,{section:o,rowIndex:a}))}}},{key:"onInsertColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.section,c=t.columnIndex;this.setState({selectedCell:null}),o(zr(r,{section:a,columnIndex:c+e}))}}},{key:"onInsertColumnBefore",value:function(){this.onInsertColumn(0)}},{key:"onInsertColumnAfter",value:function(){this.onInsertColumn(1)}},{key:"onDeleteColumn",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.section,a=e.columnIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.section,r=t.columnIndex;return Object(F.a)({},n,e[n].map((function(e){return{cells:e.cells.filter((function(e,t){return t!==r}))}})).filter((function(e){return e.cells.length})))}(n,{section:o,columnIndex:a}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:e})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:"table-row-before",title:Object(K.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:"table-row-after",title:Object(K.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:"table-row-delete",title:Object(K.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:"table-col-before",title:Object(K.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:"table-col-after",title:Object(K.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:"table-col-delete",title:Object(K.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,n=e.type,r=e.rows;if(!r.length)return null;var o="t".concat(n),a=this.state.selectedCell;return Object(V.createElement)(o,null,r.map((function(e,r){var o=e.cells;return Object(V.createElement)("tr",{key:r},o.map((function(e,o){var c=e.content,i=e.tag,l=a&&n===a.section&&r===a.rowIndex&&o===a.columnIndex,s={section:n,rowIndex:r,columnIndex:o},u=q()({"is-selected":l});return Object(V.createElement)(i,{key:o,className:u},Object(V.createElement)(Y.RichText,{className:"wp-block-table__cell-content",value:c,onChange:t.onChange,unstableOnFocus:t.createOnFocus(s)}))})))})))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,r=this.state,o=r.initialRowCount,a=r.initialColumnCount,c=t.hasFixedLayout,i=t.head,l=t.body,s=t.foot,u=!i.length&&!l.length&&!s.length,b=this.renderSection;if(u)return Object(V.createElement)("form",{onSubmit:this.onCreateTable},Object(V.createElement)(Q.TextControl,{type:"number",label:Object(K.__)("Column Count"),value:a,onChange:this.onChangeInitialColumnCount,min:"1"}),Object(V.createElement)(Q.TextControl,{type:"number",label:Object(K.__)("Row Count"),value:o,onChange:this.onChangeInitialRowCount,min:"1"}),Object(V.createElement)(Q.Button,{isPrimary:!0,type:"submit"},Object(K.__)("Create")));var m=q()(n,{"has-fixed-layout":c});return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Q.DropdownMenu,{icon:"editor-table",label:Object(K.__)("Edit Table"),controls:this.getTableControls()}))),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Table Settings"),className:"blocks-table-settings"},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Fixed width table cells"),checked:!!c,onChange:this.onChangeFixedLayout}))),Object(V.createElement)("table",{className:m},Object(V.createElement)(b,{type:"head",rows:i}),Object(V.createElement)(b,{type:"body",rows:l}),Object(V.createElement)(b,{type:"foot",rows:s})))}}]),t}(V.Component),Dr={tr:{children:{th:{children:Object(D.getPhrasingContentSchema)()},td:{children:Object(D.getPhrasingContentSchema)()}}}},Fr={table:{children:{thead:{children:Dr},tfoot:{children:Dr},tbody:{children:Dr}}}};function Ur(e){return{type:"array",default:[],source:"query",selector:"t".concat(e," tr"),query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"}}}}}}var Vr="core/table",Wr={title:Object(K.__)("Table"),description:Object(K.__)("Insert a table — perfect for sharing charts and data."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M20 3H5L3 5v14l2 2h15l2-2V5l-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"}))),category:"formatting",attributes:{hasFixedLayout:{type:"boolean",default:!1},head:Ur("head"),body:Ur("body"),foot:Ur("foot")},styles:[{name:"regular",label:Object(K._x)("Regular","block style"),isDefault:!0},{name:"stripes",label:Object(K.__)("Stripes")}],supports:{align:!0},transforms:{from:[{type:"raw",selector:"table",schema:Fr}]},edit:Hr,save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,o=t.body,a=t.foot;if(!r.length&&!o.length&&!a.length)return null;var c=q()({"has-fixed-layout":n}),i=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object(V.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(V.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag;return Object(V.createElement)(Y.RichText.Content,{tagName:r,value:n,key:t})})))})))};return Object(V.createElement)("table",{className:c},Object(V.createElement)(i,{type:"head",rows:r}),Object(V.createElement)(i,{type:"body",rows:o}),Object(V.createElement)(i,{type:"foot",rows:a}))}},qr="core/template",Gr={title:Object(K.__)("Reusable Template"),category:"reusable",description:Object(K.__)("Template block used as a container."),icon:Object(V.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(V.createElement)(Q.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(V.createElement)(Q.G,null,Object(V.createElement)(Q.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"}))),supports:{customClassName:!1,html:!1,inserter:!1},edit:function(){return Object(V.createElement)(Y.InnerBlocks,null)},save:function(){return Object(V.createElement)(Y.InnerBlocks.Content,null)}},Kr="core/text-columns",Yr={supports:{inserter:!1},title:Object(K.__)("Text Columns (deprecated)"),description:Object(K.__)("This block is deprecated. Please use the Columns block instead."),icon:"columns",category:"layout",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},transforms:{to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,n=e.columns,r=e.content,o=e.width;return Object(D.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:n},r.map((function(e){var t=e.children;return Object(D.createBlock)("core/column",{},[Object(D.createBlock)("core/paragraph",{content:t})])})))}}]},getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.width,a=t.content,c=t.columns;return Pr()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.BlockAlignmentToolbar,{value:o,onChange:function(e){return n({width:e})},controls:["center","wide","full"]})),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,null,Object(V.createElement)(Q.RangeControl,{label:Object(K.__)("Columns"),value:c,onChange:function(e){return n({columns:e})},min:2,max:4}))),Object(V.createElement)("div",{className:"".concat(r," align").concat(o," columns-").concat(c)},Object(G.times)(c,(function(e){return Object(V.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(V.createElement)(Y.RichText,{tagName:"p",value:Object(G.get)(a,[e,"children"]),onChange:function(t){n({content:Object(H.a)(a.slice(0,e)).concat([{children:t}],Object(H.a)(a.slice(e+1)))})},placeholder:Object(K.__)("New Column")}))}))))},save:function(e){var t=e.attributes,n=t.width,r=t.content,o=t.columns;return Object(V.createElement)("div",{className:"align".concat(n," columns-").concat(o)},Object(G.times)(o,(function(e){return Object(V.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(V.createElement)(Y.RichText.Content,{tagName:"p",value:Object(G.get)(r,[e,"children"])}))})))}},Qr="core/verse",$r={title:Object(K.__)("Verse"),description:Object(K.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.Path,{d:"M3 17v4h4l11-11-4-4L3 17zm3 2H5v-1l9-9 1 1-9 9zM21 6l-3-3h-1l-2 2 4 4 2-2V6z"})),category:"formatting",keywords:[Object(K.__)("poetry")],attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(D.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(D.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=e.mergeBlocks,a=t.textAlign,c=t.content;return Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Y.AlignmentToolbar,{value:a,onChange:function(e){n({textAlign:e})}})),Object(V.createElement)(Y.RichText,{tagName:"pre",value:c,onChange:function(e){n({content:e})},style:{textAlign:a},placeholder:Object(K.__)("Write…"),wrapperClassName:r,onMerge:o}))},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content;return Object(V.createElement)(Y.RichText.Content,{tagName:"pre",style:{textAlign:n},value:r})},merge:function(e,t){return{content:e.content+t.content}}},Jr=["video"],Zr=["image"],Xr=function(e){function t(){var e;return Object(J.a)(this,t),(e=Object(X.a)(this,Object(ee.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.videoPlayer=Object(V.createRef)(),e.posterImageButton=Object(V.createRef)(),e.toggleAttribute=e.toggleAttribute.bind(Object(ne.a)(Object(ne.a)(e))),e.onSelectURL=e.onSelectURL.bind(Object(ne.a)(Object(ne.a)(e))),e.onSelectPoster=e.onSelectPoster.bind(Object(ne.a)(Object(ne.a)(e))),e.onRemovePoster=e.onRemovePoster.bind(Object(ne.a)(Object(ne.a)(e))),e}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeOperations,o=t.setAttributes,a=n.id,c=n.src,i=void 0===c?"":c;if(!a&&Object(de.isBlobURL)(i)){var l=Object(de.getBlobByURL)(i);l&&Object(Y.mediaUpload)({filesList:[l],onFileChange:function(e){var t=Object(he.a)(e,1)[0].url;o({src:t})},onError:function(t){e.setState({editing:!0}),r.createErrorNotice(t)},allowedTypes:Jr})}}},{key:"componentDidUpdate",value:function(e){this.props.attributes.poster!==e.attributes.poster&&this.videoPlayer.current.load()}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(F.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=He({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"onSelectPoster",value:function(e){(0,this.props.setAttributes)({poster:e.url})}},{key:"onRemovePoster",value:function(){(0,this.props.setAttributes)({poster:""}),this.posterImageButton.current.focus()}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,r=t.caption,o=t.controls,a=t.loop,c=t.muted,i=t.poster,l=t.preload,s=t.src,u=this.props,b=u.setAttributes,m=u.isSelected,d=u.className,h=u.noticeOperations,p=u.noticeUI,g=this.state.editing,O=function(){e.setState({editing:!0})};return g?Object(V.createElement)(Y.MediaPlaceholder,{icon:"media-video",className:d,onSelect:function(t){if(!t||!t.url)return b({src:void 0,id:void 0}),void O();b({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:Jr,value:this.props.attributes,notices:p,onError:h.createErrorNotice}):Object(V.createElement)(V.Fragment,null,Object(V.createElement)(Y.BlockControls,null,Object(V.createElement)(Q.Toolbar,null,Object(V.createElement)(Q.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(K.__)("Edit video"),onClick:O,icon:"edit"}))),Object(V.createElement)(Y.InspectorControls,null,Object(V.createElement)(Q.PanelBody,{title:Object(K.__)("Video Settings")},Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:a}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Muted"),onChange:this.toggleAttribute("muted"),checked:c}),Object(V.createElement)(Q.ToggleControl,{label:Object(K.__)("Playback Controls"),onChange:this.toggleAttribute("controls"),checked:o}),Object(V.createElement)(Q.SelectControl,{label:Object(K.__)("Preload"),value:l,onChange:function(e){return b({preload:e})},options:[{value:"auto",label:Object(K.__)("Auto")},{value:"metadata",label:Object(K.__)("Metadata")},{value:"none",label:Object(K.__)("None")}]}),Object(V.createElement)(Y.MediaUploadCheck,null,Object(V.createElement)(Q.BaseControl,{className:"editor-video-poster-control",label:Object(K.__)("Poster Image")},Object(V.createElement)(Y.MediaUpload,{title:Object(K.__)("Select Poster Image"),onSelect:this.onSelectPoster,allowedTypes:Zr,render:function(t){var n=t.open;return Object(V.createElement)(Q.Button,{isDefault:!0,onClick:n,ref:e.posterImageButton},e.props.attributes.poster?Object(K.__)("Replace image"):Object(K.__)("Select Poster Image"))}}),!!this.props.attributes.poster&&Object(V.createElement)(Q.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(K.__)("Remove Poster Image")))))),Object(V.createElement)("figure",{className:d},Object(V.createElement)(Q.Disabled,null,Object(V.createElement)("video",{controls:o,poster:i,src:s,ref:this.videoPlayer})),(!Y.RichText.isEmpty(r)||m)&&Object(V.createElement)(Y.RichText,{tagName:"figcaption",placeholder:Object(K.__)("Write caption…"),value:r,onChange:function(e){return b({caption:e})},inlineToolbar:!0})))}}]),t}(V.Component),eo=Object(Q.withNotices)(Xr),to="core/video",no={title:Object(K.__)("Video"),description:Object(K.__)("Embed a video from your media library or upload a new one."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(V.createElement)(Q.Path,{d:"M4 6l2 4h14v8H4V6m18-2h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4L2 6v12l2 2h16l2-2V4z"})),keywords:[Object(K.__)("movie")],category:"common",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"}},transforms:{from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object(D.createBlock)("core/video",{src:Object(de.createBlobURL)(t)})}}]},supports:{align:!0},edit:eo,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.controls,a=t.loop,c=t.muted,i=t.poster,l=t.preload,s=t.src;return Object(V.createElement)("figure",null,s&&Object(V.createElement)("video",{autoPlay:n,controls:o,loop:a,muted:c,poster:i,preload:"metadata"!==l?l:void 0,src:s}),!Y.RichText.isEmpty(r)&&Object(V.createElement)(Y.RichText.Content,{tagName:"figcaption",value:r}))}},ro=window.wp;var oo=function(e){function t(e){var n;return Object(J.a)(this,t),(n=Object(X.a)(this,Object(ee.a)(t).call(this,e))).initialize=n.initialize.bind(Object(ne.a)(Object(ne.a)(n))),n.onSetup=n.onSetup.bind(Object(ne.a)(Object(ne.a)(n))),n.focus=n.focus.bind(Object(ne.a)(Object(ne.a)(n))),n}return Object(te.a)(t,e),Object(Z.a)(t,[{key:"componentDidMount",value:function(){var e=window.wpEditorL10n.tinymce,t=e.baseURL,n=e.suffix;window.tinymce.EditorManager.overrideDefaults({base_url:t,suffix:n}),"complete"===document.readyState?this.initialize():window.addEventListener("DOMContentLoaded",this.initialize)}},{key:"componentWillUnmount",value:function(){window.addEventListener("DOMContentLoaded",this.initialize),ro.oldEditor.remove("editor-".concat(this.props.clientId))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.clientId,r=t.attributes.content,o=window.tinymce.get("editor-".concat(n));e.attributes.content!==r&&o.setContent(r||"")}},{key:"initialize",value:function(){var e=this.props.clientId,t=window.wpEditorL10n.tinymce.settings;ro.oldEditor.initialize("editor-".concat(e),{tinymce:Object(U.a)({},t,{inline:!0,content_css:!1,fixed_toolbar_container:"#toolbar-".concat(e),setup:this.onSetup})})}},{key:"onSetup",value:function(e){var t,n=this,r=this.props,o=r.attributes.content,a=r.setAttributes,c=this.ref;this.editor=e,o&&e.on("loadContent",(function(){return e.setContent(o)})),e.on("blur",(function(){return t=e.selection.getBookmark(2,!0),a({content:e.getContent()}),e.once("focus",(function(){t&&e.selection.moveToBookmark(t)})),!1})),e.on("mousedown touchstart",(function(){t=null})),e.on("keydown",(function(t){t.keyCode!==dt.BACKSPACE&&t.keyCode!==dt.DELETE||!function(e){var t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(n.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===dt.F10&&t.stopPropagation()})),e.addButton("kitchensink",{tooltip:Object(K._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(c,"has-advanced-toolbar",t)}}),e.on("init",(function(){e.settings.toolbar1&&-1===e.settings.toolbar1.indexOf("kitchensink")&&e.dom.addClass(c,"has-advanced-toolbar")})),e.addButton("wp_add_media",{tooltip:Object(K.__)("Insert Media"),icon:"dashicon dashicons-admin-media",cmd:"WP_Medialib"}),e.on("init",(function(){var e=n.editor.getBody();document.activeElement===e&&(e.blur(),n.editor.focus())}))}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this,t=this.props.clientId;return[Object(V.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),ref:function(t){return e.ref=t},className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(K.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(V.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),t}(V.Component),ao="core/freeform",co={title:Object(K._x)("Classic","block title"),description:Object(K.__)("Use the classic WordPress editor."),icon:Object(V.createElement)(Q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(V.createElement)(Q.Path,{d:"M0,0h24v24H0V0z M0,0h24v24H0V0z",fill:"none"}),Object(V.createElement)(Q.Path,{d:"m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z"}),Object(V.createElement)(Q.Rect,{x:"11",y:"8",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"11",y:"11",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"8",y:"8",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"8",y:"11",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"5",y:"11",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"5",y:"8",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"8",y:"14",width:"8",height:"2"}),Object(V.createElement)(Q.Rect,{x:"14",y:"11",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"14",y:"8",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"17",y:"11",width:"2",height:"2"}),Object(V.createElement)(Q.Rect,{x:"17",y:"8",width:"2",height:"2"})),category:"formatting",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1},edit:oo,save:function(e){var t=e.attributes.content;return Object(V.createElement)(V.RawHTML,null,t)}},io=function(){[r,o,a,i,k,c,N,l,s,u,b,m,d,h,p,g].concat(Object(H.a)(yn),Object(H.a)(kn),[O,window.wp&&window.wp.oldEditor?z:null,f,j,v,y,w,E,C,_,x,T,S,R,B,A,I,P,L,M]).forEach((function(e){if(e){var t=e.name,n=e.settings;Object(D.registerBlockType)(t,n)}})),Object(D.setDefaultBlockName)(be),window.wp&&window.wp.oldEditor&&Object(D.setFreeformContentHandlerName)(ao),Object(D.setUnregisteredTypeHandlerName)(ar)}},K9lf:function(e,t){!function(){e.exports=this.wp.compose}()},KEfo:function(e,t){!function(){e.exports=this.wp.viewport}()},KQm4:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("a3WO");var o=n("25BE"),a=n("BsWD");function c(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(a.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},Mmq9:function(e,t){!function(){e.exports=this.wp.url}()},NMb1:function(e,t){!function(){e.exports=this.wp.deprecated}()},Nehr:function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},ODXe:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("DSFK");var o=n("BsWD"),a=n("PYwp");function c(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}}(e,t)||Object(o.a)(e,t)||Object(a.a)()}},PYwp:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},RxS6:function(e,t){!function(){e.exports=this.wp.keycodes}()},TSYQ:function(e,t,n){var r; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see diff --git a/wp-includes/js/dist/dom.js b/wp-includes/js/dist/dom.js index 1b55e60e6f..11a84b8d35 100644 --- a/wp-includes/js/dist/dom.js +++ b/wp-includes/js/dist/dom.js @@ -124,6 +124,7 @@ __webpack_require__.d(__webpack_exports__, "insertAfter", function() { return /* __webpack_require__.d(__webpack_exports__, "unwrap", function() { return /* reexport */ unwrap; }); __webpack_require__.d(__webpack_exports__, "replaceTag", function() { return /* reexport */ replaceTag; }); __webpack_require__.d(__webpack_exports__, "wrap", function() { return /* reexport */ wrap; }); +__webpack_require__.d(__webpack_exports__, "safeHTML", function() { return /* reexport */ safeHTML; }); // NAMESPACE OBJECT: ./node_modules/@wordpress/dom/build-module/focusable.js var focusable_namespaceObject = {}; @@ -958,6 +959,48 @@ function wrap(newNode, referenceNode) { newNode.appendChild(referenceNode); } +// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/safe-html.js +/** + * Internal dependencies + */ + +/** + * Strips scripts and on* attributes from HTML. + * + * @param {string} html HTML to sanitize. + * + * @return {string} The sanitized HTML. + */ + +function safeHTML(html) { + var _document$implementat = document.implementation.createHTMLDocument(''), + body = _document$implementat.body; + + body.innerHTML = html; + var elements = body.getElementsByTagName('*'); + var elementIndex = elements.length; + + while (elementIndex--) { + var element = elements[elementIndex]; + + if (element.tagName === 'SCRIPT') { + remove(element); + } else { + var attributeIndex = element.attributes.length; + + while (attributeIndex--) { + var key = element.attributes[attributeIndex].name; + + if (key.startsWith('on')) { + element.removeAttribute(key); + } + } + } + } + + return body.innerHTML; +} + // CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/index.js /** * Internal dependencies @@ -971,6 +1014,7 @@ var build_module_focus = { + /***/ }), /***/ "BsWD": diff --git a/wp-includes/js/dist/dom.min.js b/wp-includes/js/dist/dom.min.js index ac46bed496..b0a6b64774 100644 --- a/wp-includes/js/dist/dom.min.js +++ b/wp-includes/js/dist/dom.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.dom=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="2sUP")}({"25BE":function(t,e,n){"use strict";function r(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n.d(e,"a",(function(){return r}))},"2sUP":function(t,e,n){"use strict";n.r(e),n.d(e,"focus",(function(){return H})),n.d(e,"isHorizontalEdge",(function(){return y})),n.d(e,"isVerticalEdge",(function(){return O})),n.d(e,"getRectangleFromRange",(function(){return S})),n.d(e,"computeCaretRect",(function(){return R})),n.d(e,"placeCaretAtHorizontalEdge",(function(){return w})),n.d(e,"placeCaretAtVerticalEdge",(function(){return T})),n.d(e,"isTextField",(function(){return P})),n.d(e,"documentHasSelection",(function(){return j})),n.d(e,"isEntirelySelected",(function(){return I})),n.d(e,"getScrollContainer",(function(){return x})),n.d(e,"getOffsetParent",(function(){return _})),n.d(e,"replace",(function(){return B})),n.d(e,"remove",(function(){return U})),n.d(e,"insertAfter",(function(){return D})),n.d(e,"unwrap",(function(){return M})),n.d(e,"replaceTag",(function(){return F})),n.d(e,"wrap",(function(){return W}));var r={};n.r(r),n.d(r,"find",(function(){return c}));var o={};n.r(o),n.d(o,"isTabbableIndex",(function(){return f})),n.d(o,"find",(function(){return p}));var i=n("KQm4"),a=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function u(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0}function c(t){var e=t.querySelectorAll(a);return Object(i.a)(e).filter((function(t){return!!u(t)&&("AREA"!==t.nodeName||function(t){var e=t.closest("map[name]");if(!e)return!1;var n=document.querySelector('img[usemap="#'+e.name+'"]');return!!n&&u(n)}(t))}))}function l(t){var e=t.getAttribute("tabindex");return null===e?0:parseInt(e,10)}function f(t){return-1!==l(t)}function d(t,e){return{element:t,index:e}}function s(t){return t.element}function g(t,e){var n=l(t.element),r=l(e.element);return n===r?t.index-e.index:n-r}function p(t){return c(t).filter(f).map(d).sort(g).map(s)}var v=n("YLtl"),m=window.getComputedStyle,b=window.Node,h=b.TEXT_NODE,C=b.ELEMENT_NODE,E=b.DOCUMENT_POSITION_PRECEDING,N=b.DOCUMENT_POSITION_FOLLOWING;function y(t,e){if(Object(v.includes)(["INPUT","TEXTAREA"],t.tagName))return t.selectionStart===t.selectionEnd&&(e?0===t.selectionStart:t.value.length===t.selectionStart);if(!t.isContentEditable)return!0;var n=window.getSelection(),r=n.getRangeAt(0).cloneRange();n.isCollapsed||r.collapse(!function(t){var e=t.anchorNode,n=t.focusNode,r=t.anchorOffset,o=t.focusOffset,i=e.compareDocumentPosition(n);return!(i&E)&&(!!(i&N)||(0!==i||r<=o))}(n));var o,i=r.startContainer;if(o=e?0:i.nodeValue?i.nodeValue.length:i.childNodes.length,r["".concat(e?"start":"end","Offset")]!==o)return!1;for(var a=e?"first":"last";i!==t;){var u=i.parentNode;if(u["".concat(a,"Child")]!==i)return!1;i=u}return!0}function O(t,e){if(Object(v.includes)(["INPUT","TEXTAREA"],t.tagName))return y(t,e);if(!t.isContentEditable)return!0;var n=window.getSelection(),r=n.rangeCount?n.getRangeAt(0):null;if(!r)return!1;var o=S(r);if(!o)return!1;var i=o.height/2,a=t.getBoundingClientRect();return!(e&&o.top-i>a.top)&&!(!e&&o.bottom+i3&&void 0!==arguments[3])||arguments[3];if(t)if(n&&t.isContentEditable){var o=n.height/2,i=t.getBoundingClientRect(),a=n.left,u=e?i.bottom-o:i.top+o,c=A(document,a,u,t);if(!c||!t.contains(c.startContainer))return!r||c&&c.startContainer&&c.startContainer.contains(t)?void w(t,e):(t.scrollIntoView(e),void T(t,e,n,!1));if(c.startContainer.nodeType===h){var l=c.startContainer.parentNode,f=l.getBoundingClientRect(),d=e?"bottom":"top",s=parseInt(m(l).getPropertyValue("padding-".concat(d)),10)||0,g=e?f.bottom-s-o:f.top+s+o;u!==g&&(c=A(document,a,g,t))}var p=window.getSelection();p.removeAllRanges(),p.addRange(c),t.focus(),p.removeAllRanges(),p.addRange(c)}else w(t,e)}function P(t){try{var e=t.nodeName,n=t.selectionStart,r=t.contentEditable;return"INPUT"===e&&null!==n||"TEXTAREA"===e||"true"===r}catch(t){return!1}}function j(){if(P(document.activeElement))return!0;var t=window.getSelection(),e=t.rangeCount?t.getRangeAt(0):null;return e&&!e.collapsed}function I(t){if(Object(v.includes)(["INPUT","TEXTAREA"],t.nodeName))return 0===t.selectionStart&&t.value.length===t.selectionEnd;if(!t.isContentEditable)return!0;var e=window.getSelection(),n=e.rangeCount?e.getRangeAt(0):null;if(!n)return!0;var r=n.startContainer,o=n.endContainer,i=n.startOffset,a=n.endOffset;if(r===t&&o===t&&0===i&&a===t.childNodes.length)return!0;var u=t.lastChild,c=u.nodeType===h?u.data.length:u.childNodes.length;return r===t.firstChild&&o===t.lastChild&&0===i&&a===c}function x(t){if(t){if(t.scrollHeight>t.clientHeight){var e=window.getComputedStyle(t).overflowY;if(/(auto|scroll)/.test(e))return t}return x(t.parentNode)}}function _(t){for(var e;(e=t.parentNode)&&e.nodeType!==C;);return e?"static"!==m(e).position?e:e.offsetParent:null}function B(t,e){D(e,t.parentNode),U(t)}function U(t){t.parentNode.removeChild(t)}function D(t,e){e.parentNode.insertBefore(t,e.nextSibling)}function M(t){for(var e=t.parentNode;t.firstChild;)e.insertBefore(t.firstChild,t);e.removeChild(t)}function F(t,e){for(var n=t.ownerDocument.createElement(e);t.firstChild;)n.appendChild(t.firstChild);return t.parentNode.replaceChild(n,t),n}function W(t,e){e.parentNode.insertBefore(t,e),t.appendChild(e)}var H={focusable:r,tabbable:o}},BsWD:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("a3WO");function o(t,e){if(t){if("string"==typeof t)return Object(r.a)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(t,e):void 0}}},KQm4:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("a3WO");var o=n("25BE"),i=n("BsWD");function a(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(i.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},YLtl:function(t,e){!function(){t.exports=this.lodash}()},a3WO:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0||t.offsetHeight>0||t.getClientRects().length>0}function c(t){var e=t.querySelectorAll(a);return Object(i.a)(e).filter((function(t){return!!u(t)&&("AREA"!==t.nodeName||function(t){var e=t.closest("map[name]");if(!e)return!1;var n=document.querySelector('img[usemap="#'+e.name+'"]');return!!n&&u(n)}(t))}))}function l(t){var e=t.getAttribute("tabindex");return null===e?0:parseInt(e,10)}function f(t){return-1!==l(t)}function d(t,e){return{element:t,index:e}}function s(t){return t.element}function g(t,e){var n=l(t.element),r=l(e.element);return n===r?t.index-e.index:n-r}function p(t){return c(t).filter(f).map(d).sort(g).map(s)}var m=n("YLtl"),v=window.getComputedStyle,b=window.Node,h=b.TEXT_NODE,C=b.ELEMENT_NODE,E=b.DOCUMENT_POSITION_PRECEDING,N=b.DOCUMENT_POSITION_FOLLOWING;function y(t,e){if(Object(m.includes)(["INPUT","TEXTAREA"],t.tagName))return t.selectionStart===t.selectionEnd&&(e?0===t.selectionStart:t.value.length===t.selectionStart);if(!t.isContentEditable)return!0;var n=window.getSelection(),r=n.getRangeAt(0).cloneRange();n.isCollapsed||r.collapse(!function(t){var e=t.anchorNode,n=t.focusNode,r=t.anchorOffset,o=t.focusOffset,i=e.compareDocumentPosition(n);return!(i&E)&&(!!(i&N)||(0!==i||r<=o))}(n));var o,i=r.startContainer;if(o=e?0:i.nodeValue?i.nodeValue.length:i.childNodes.length,r["".concat(e?"start":"end","Offset")]!==o)return!1;for(var a=e?"first":"last";i!==t;){var u=i.parentNode;if(u["".concat(a,"Child")]!==i)return!1;i=u}return!0}function O(t,e){if(Object(m.includes)(["INPUT","TEXTAREA"],t.tagName))return y(t,e);if(!t.isContentEditable)return!0;var n=window.getSelection(),r=n.rangeCount?n.getRangeAt(0):null;if(!r)return!1;var o=T(r);if(!o)return!1;var i=o.height/2,a=t.getBoundingClientRect();return!(e&&o.top-i>a.top)&&!(!e&&o.bottom+i3&&void 0!==arguments[3])||arguments[3];if(t)if(n&&t.isContentEditable){var o=n.height/2,i=t.getBoundingClientRect(),a=n.left,u=e?i.bottom-o:i.top+o,c=A(document,a,u,t);if(!c||!t.contains(c.startContainer))return!r||c&&c.startContainer&&c.startContainer.contains(t)?void R(t,e):(t.scrollIntoView(e),void w(t,e,n,!1));if(c.startContainer.nodeType===h){var l=c.startContainer.parentNode,f=l.getBoundingClientRect(),d=e?"bottom":"top",s=parseInt(v(l).getPropertyValue("padding-".concat(d)),10)||0,g=e?f.bottom-s-o:f.top+s+o;u!==g&&(c=A(document,a,g,t))}var p=window.getSelection();p.removeAllRanges(),p.addRange(c),t.focus(),p.removeAllRanges(),p.addRange(c)}else R(t,e)}function P(t){try{var e=t.nodeName,n=t.selectionStart,r=t.contentEditable;return"INPUT"===e&&null!==n||"TEXTAREA"===e||"true"===r}catch(t){return!1}}function j(){if(P(document.activeElement))return!0;var t=window.getSelection(),e=t.rangeCount?t.getRangeAt(0):null;return e&&!e.collapsed}function I(t){if(Object(m.includes)(["INPUT","TEXTAREA"],t.nodeName))return 0===t.selectionStart&&t.value.length===t.selectionEnd;if(!t.isContentEditable)return!0;var e=window.getSelection(),n=e.rangeCount?e.getRangeAt(0):null;if(!n)return!0;var r=n.startContainer,o=n.endContainer,i=n.startOffset,a=n.endOffset;if(r===t&&o===t&&0===i&&a===t.childNodes.length)return!0;var u=t.lastChild,c=u.nodeType===h?u.data.length:u.childNodes.length;return r===t.firstChild&&o===t.lastChild&&0===i&&a===c}function x(t){if(t){if(t.scrollHeight>t.clientHeight){var e=window.getComputedStyle(t).overflowY;if(/(auto|scroll)/.test(e))return t}return x(t.parentNode)}}function B(t){for(var e;(e=t.parentNode)&&e.nodeType!==C;);return e?"static"!==v(e).position?e:e.offsetParent:null}function M(t,e){D(e,t.parentNode),_(t)}function _(t){t.parentNode.removeChild(t)}function D(t,e){e.parentNode.insertBefore(t,e.nextSibling)}function H(t){for(var e=t.parentNode;t.firstChild;)e.insertBefore(t.firstChild,t);e.removeChild(t)}function U(t,e){for(var n=t.ownerDocument.createElement(e);t.firstChild;)n.appendChild(t.firstChild);return t.parentNode.replaceChild(n,t),n}function L(t,e){e.parentNode.insertBefore(t,e),t.appendChild(e)}function W(t){var e=document.implementation.createHTMLDocument("").body;e.innerHTML=t;for(var n=e.getElementsByTagName("*"),r=n.length;r--;){var o=n[r];if("SCRIPT"===o.tagName)_(o);else for(var i=o.attributes.length;i--;){var a=o.attributes[i].name;a.startsWith("on")&&o.removeAttribute(a)}}return e.innerHTML}var F={focusable:r,tabbable:o}},BsWD:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("a3WO");function o(t,e){if(t){if("string"==typeof t)return Object(r.a)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(t,e):void 0}}},KQm4:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("a3WO");var o=n("25BE"),i=n("BsWD");function a(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(i.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},YLtl:function(t,e){!function(){t.exports=this.lodash}()},a3WO:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,c=null,a=function(){e.clientWidth!==r&&d()},s=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.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",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:s,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function l(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 t=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),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}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(r0&&void 0!==arguments[0]?arguments[0]:{};return function(t){(e=Object(d.a)({},j,e)).shouldOverwriteState=Object(O.overSome)([e.shouldOverwriteState,function(t){return Object(O.includes)(e.ignoreTypes,t.type)}]);var n={past:[],present:t(void 0,{}),future:[],lastAction:null,shouldCreateUndoLevel:!1},r=e,o=r.resetTypes,i=void 0===o?[]:o,c=r.shouldOverwriteState,a=void 0===c?function(){return!1}:c;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,r=arguments.length>1?arguments[1]:void 0,o=e.past,c=e.present,s=e.future,l=e.lastAction,u=e.shouldCreateUndoLevel,p=l;switch(r.type){case"UNDO":return o.length?{past:Object(O.dropRight)(o),present:Object(O.last)(o),future:[c].concat(Object(b.a)(s)),lastAction:null,shouldCreateUndoLevel:!1}:e;case"REDO":return s.length?{past:Object(b.a)(o).concat([c]),present:Object(O.first)(s),future:Object(O.drop)(s),lastAction:null,shouldCreateUndoLevel:!1}:e;case"CREATE_UNDO_LEVEL":return Object(d.a)({},e,{lastAction:null,shouldCreateUndoLevel:!0})}var f=t(c,r);if(Object(O.includes)(i,r.type))return{past:[],present:f,future:[],lastAction:null,shouldCreateUndoLevel:!1};if(c===f)return e;var h=o,m=p;return!u&&o.length&&a(r,p)||(h=Object(b.a)(o).concat([c]),m=r),{past:h,present:f,future:[],shouldCreateUndoLevel:!1,lastAction:m}}}},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return function(n,r){var o=t(n,r),i=void 0===n||Object(O.includes)(e.resetTypes,r.type),c=n!==o;if(!c&&!i)return n;c&&void 0!==n||(o=Object(d.a)({},o));var a=Object(O.includes)(e.ignoreTypes,r.type);return o.isDirty=a?n.isDirty:!i&&c,o}}},_=n("l3Sj"),E={insertUsage:{},isPublishSidebarEnabled:!0},S={alignWide:!1,colors:[{name:Object(_.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(_.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(_.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(_.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(_.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(_.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(_.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(_.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(_.__)("Very light gray"),slug:"very-light-gray",color:"#eeeeee"},{name:Object(_.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(_.__)("Very dark gray"),slug:"very-dark-gray",color:"#313131"}],fontSizes:[{name:Object(_._x)("Small","font size name"),size:13,slug:"small"},{name:Object(_._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(_._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(_._x)("Large","font size name"),size:36,slug:"large"},{name:Object(_._x)("Huge","font size name"),size:48,slug:"huge"}],imageSizes:[{slug:"thumbnail",label:Object(_.__)("Thumbnail")},{slug:"medium",label:Object(_.__)("Medium")},{slug:"large",label:Object(_.__)("Large")},{slug:"full",label:Object(_.__)("Full Size")}],maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,richEditingEnabled:!0},C={};function w(e,t,n){return Object(b.a)(e.slice(0,n)).concat(Object(b.a)(Object(O.castArray)(t)),Object(b.a)(e.slice(n)))}function T(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(b.a)(e);return o.splice(t,r),w(o,e.slice(t,t+r),n)}var P=new Set(["meta"]);function I(e){return e&&"object"===Object(h.a)(e)&&"raw"in e?e.raw:e}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(f.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,B(o,r))})),n}function x(e,t){for(var n={},r=Object(b.a)(e);r.length;){var o=r.shift(),i=o.innerBlocks,c=Object(p.a)(o,["innerBlocks"]);r.push.apply(r,Object(b.a)(i)),n[c.clientId]=t(c)}return n}function L(e){return x(e,(function(e){return Object(O.omit)(e,"attributes")}))}function A(e){return x(e,(function(e){return e.attributes}))}function N(e,t){return e===t?Object(d.a)({},e):t}function R(e,t){return Object(O.isEqual)(Object(O.keys)(e),Object(O.keys)(t))}function D(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&e.clientId===t.clientId&&R(e.attributes,t.attributes)}function F(e,t){return"EDIT_POST"===e.type&&R(e.edits,t.edits)}var M=Object(O.flow)([l.combineReducers,function(e){return function(t,n){if(t&&"REMOVE_BLOCKS"===n.type){for(var r=Object(b.a)(n.clientIds),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"EDIT_POST":return Object(O.reduce)(t.edits,(function(t,n,r){return n!==e[r]&&(t=N(e,t),P.has(r)?t[r]=Object(d.a)({},t[r],n):t[r]=n),t}),e);case"RESET_BLOCKS":return"content"in e?Object(O.omit)(e,"content"):e;case"UPDATE_POST":case"RESET_POST":var n="UPDATE_POST"===t.type?function(e){return t.edits[e]}:function(e){return I(t.post[e])};return Object(O.reduce)(e,(function(t,r,o){return Object(O.isEqual)(r,n(o))?(delete(t=N(e,t))[o],t):t}),e)}return e},blocks:Object(O.flow)([l.combineReducers,function(e){return function(t,n){if(t&&"RESET_BLOCKS"===n.type){var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(O.reduce)(t[n],(function(n,r){return Object(b.a)(n).concat([r],Object(b.a)(e(t,r)))}),[])}(t.order);return Object(d.a)({},t,{byClientId:Object(d.a)({},Object(O.omit)(t.byClientId,r),L(n.blocks)),attributes:Object(d.a)({},Object(O.omit)(t.attributes,r),A(n.blocks)),order:Object(d.a)({},Object(O.omit)(t.order,r),B(n.blocks))})}return e(t,n)}},function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=Object(d.a)({},t)).attributes=Object(O.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?Object(d.a)({},e,{ref:o}):e}))}return e(t,n)}},k({resetTypes:["SETUP_EDITOR_STATE","REQUEST_POST_UPDATE_START"],ignoreTypes:["RECEIVE_BLOCKS","RESET_POST","UPDATE_POST"]})])({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":return L(t.blocks);case"RECEIVE_BLOCKS":return Object(d.a)({},e,L(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(O.omit)(t.updates,"attributes");return Object(O.isEmpty)(n)?e:Object(d.a)({},e,Object(f.a)({},t.clientId,Object(d.a)({},e[t.clientId],n)));case"INSERT_BLOCKS":return Object(d.a)({},e,L(t.blocks));case"REPLACE_BLOCKS":return t.blocks?Object(d.a)({},Object(O.omit)(e,t.clientIds),L(t.blocks)):e;case"REMOVE_BLOCKS":return Object(O.omit)(e,t.clientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":return A(t.blocks);case"RECEIVE_BLOCKS":return Object(d.a)({},e,A(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Object(d.a)({},e,Object(f.a)({},t.clientId,Object(d.a)({},e[t.clientId],t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(!e[t.clientId])return e;var n=Object(O.reduce)(t.attributes,(function(n,r,o){return r!==n[o]&&((n=N(e[t.clientId],n))[o]=r),n}),e[t.clientId]);return n===e[t.clientId]?e:Object(d.a)({},e,Object(f.a)({},t.clientId,n));case"INSERT_BLOCKS":return Object(d.a)({},e,A(t.blocks));case"REPLACE_BLOCKS":return t.blocks?Object(d.a)({},Object(O.omit)(e,t.clientIds),A(t.blocks)):e;case"REMOVE_BLOCKS":return Object(O.omit)(e,t.clientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":return B(t.blocks);case"RECEIVE_BLOCKS":return Object(d.a)({},e,Object(O.omit)(B(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=t.blocks,i=e[r]||[],c=B(o,r),a=t.index,s=void 0===a?i.length:a;return Object(d.a)({},e,c,Object(f.a)({},r,w(i,c[r],s)));case"MOVE_BLOCK_TO_POSITION":var l,u=t.fromRootClientId,p=void 0===u?"":u,h=t.toRootClientId,m=void 0===h?"":h,v=t.clientId,g=t.index,j=void 0===g?e[m].length:g;if(p===m){var y=e[m],k=y.indexOf(v);return Object(d.a)({},e,Object(f.a)({},m,T(e[m],k,j)))}return Object(d.a)({},e,(l={},Object(f.a)(l,p,Object(O.without)(e[p],v)),Object(f.a)(l,m,w(e[m],v,j)),l));case"MOVE_BLOCKS_UP":var _=t.clientIds,E=t.rootClientId,S=void 0===E?"":E,C=Object(O.first)(_),P=e[S];if(!P.length||C===Object(O.first)(P))return e;var I=P.indexOf(C);return Object(d.a)({},e,Object(f.a)({},S,T(P,I,I-1,_.length)));case"MOVE_BLOCKS_DOWN":var x=t.clientIds,L=t.rootClientId,A=void 0===L?"":L,N=Object(O.first)(x),R=Object(O.last)(x),D=e[A];if(!D.length||R===Object(O.last)(D))return e;var F=D.indexOf(N);return Object(d.a)({},e,Object(f.a)({},A,T(D,F,F+1,x.length)));case"REPLACE_BLOCKS":var M=t.blocks,U=t.clientIds;if(!M)return e;var H=B(M);return Object(O.flow)([function(e){return Object(O.omit)(e,U)},function(e){return Object(d.a)({},e,Object(O.omit)(H,""))},function(e){return Object(O.mapValues)(e,(function(e){return Object(O.reduce)(e,(function(e,t){return t===U[0]?Object(b.a)(e).concat(Object(b.a)(H[""])):(-1===U.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS":return Object(O.flow)([function(e){return Object(O.omit)(e,t.clientIds)},function(e){return Object(O.mapValues)(e,(function(e){return O.without.apply(void 0,[e].concat(Object(b.a)(t.clientIds)))}))}])(e)}return e}})});var U=Object(l.combineReducers)({data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_REUSABLE_BLOCKS":return Object(O.reduce)(t.results,(function(t,n){var r=n.reusableBlock,o=r.id,i=r.title,c={clientId:n.parsedBlock.clientId,title:i};return Object(O.isEqual)(t[o],c)||((t=N(e,t))[o]=c),t}),e);case"UPDATE_REUSABLE_BLOCK_TITLE":var n=t.id,r=t.title;return e[n]&&e[n].title!==r?Object(d.a)({},e,Object(f.a)({},n,Object(d.a)({},e[n],{title:r}))):e;case"SAVE_REUSABLE_BLOCK_SUCCESS":var o=t.id,i=t.updatedId;if(o===i)return e;var c=e[o];return Object(d.a)({},Object(O.omit)(e,o),Object(f.a)({},i,c));case"REMOVE_REUSABLE_BLOCK":var a=t.id;return Object(O.omit)(e,a)}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_REUSABLE_BLOCKS":var n=t.id;return n?Object(d.a)({},e,Object(f.a)({},n,!0)):e;case"FETCH_REUSABLE_BLOCKS_SUCCESS":case"FETCH_REUSABLE_BLOCKS_FAILURE":var r=t.id;return Object(O.omit)(e,r)}return e},isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SAVE_REUSABLE_BLOCK":return Object(d.a)({},e,Object(f.a)({},t.id,!0));case"SAVE_REUSABLE_BLOCK_SUCCESS":case"SAVE_REUSABLE_BLOCK_FAILURE":var n=t.id;return Object(O.omit)(e,n)}return e}});var H=v()(Object(l.combineReducers)({editor:M,initialEdits:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR":if(!t.edits)break;return t.edits;case"SETUP_EDITOR_STATE":return"content"in e?Object(O.omit)(e,"content"):e;case"UPDATE_POST":return Object(O.reduce)(t.edits,(function(t,n,r){return t.hasOwnProperty(r)?(delete(t=N(e,t))[r],t):t}),e);case"RESET_POST":return C}return e},currentPost:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":var n;if(t.post)n=t.post;else{if(!t.edits)return e;n=Object(d.a)({},e,t.edits)}return Object(O.mapValues)(n,I)}return e},isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},blockSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{start:null,end:null,isMultiSelecting:!1,isEnabled:!0,initialPosition:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return null!==e.start||null!==e.end||e.isMultiSelecting?Object(d.a)({},e,{start:null,end:null,isMultiSelecting:!1,initialPosition:null}):e;case"START_MULTI_SELECT":return e.isMultiSelecting?e:Object(d.a)({},e,{isMultiSelecting:!0,initialPosition:null});case"STOP_MULTI_SELECT":return e.isMultiSelecting?Object(d.a)({},e,{isMultiSelecting:!1,initialPosition:null}):e;case"MULTI_SELECT":return Object(d.a)({},e,{start:t.start,end:t.end,initialPosition:null});case"SELECT_BLOCK":return t.clientId===e.start&&t.clientId===e.end?e:Object(d.a)({},e,{start:t.clientId,end:t.clientId,initialPosition:t.initialPosition});case"INSERT_BLOCKS":return t.updateSelection?Object(d.a)({},e,{start:t.blocks[0].clientId,end:t.blocks[0].clientId,initialPosition:null,isMultiSelecting:!1}):e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.start)?Object(d.a)({},e,{start:null,end:null,initialPosition:null,isMultiSelecting:!1}):e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.start))return e;var n=Object(O.get)(t.blocks,[0,"clientId"],null);return n===e.start&&n===e.end?e:Object(d.a)({},e,{start:n,end:n,initialPosition:null,isMultiSelecting:!1});case"TOGGLE_SELECTION":return Object(d.a)({},e,{isEnabled:t.isSelectionEnabled})}return e},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return Object(d.a)({},e,Object(f.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var 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(O.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(O.isEqual)(e[n],t.settings)?e:Object(d.a)({},e,Object(f.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(O.omit)(e,n):e}return e},insertionPoint:function(){var 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":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r};case"HIDE_INSERTION_POINT":return null}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.name,o={name:n.name};return Object(i.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),Object(d.a)({},e,{insertUsage:Object(d.a)({},e.insertUsage,Object(f.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e);case"REMOVE_REUSABLE_BLOCK":return Object(d.a)({},e,{insertUsage:Object(O.omitBy)(e.insertUsage,(function(e){return e.insert.ref===t.id}))});case"ENABLE_PUBLISH_SIDEBAR":return Object(d.a)({},e,{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return Object(d.a)({},e,{isPublishSidebarEnabled:!1})}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_POST_UPDATE_START":return{requesting:!0,successful:!1,error:null,options:t.options||{}};case"REQUEST_POST_UPDATE_SUCCESS":return{requesting:!1,successful:!0,error:null,options:t.options||{}};case"REQUEST_POST_UPDATE_FAILURE":return{requesting:!1,successful:!1,error:t.error,options:t.options||{}}}return e},postLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLocked:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_POST_LOCK":return t.lock}return e},reusableBlocks:U,template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return Object(d.a)({},e,{isValid:t.isValid})}return e},autosave:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_AUTOSAVE":var n=t.post,r=["title","excerpt","content"].map((function(e){return I(n[e])})),o=Object(u.a)(r,3),i=o[0],c=o[1],a=o[2];return{title:i,excerpt:c,content:a}}return e},previewLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_POST_UPDATE_SUCCESS":return t.post.preview_link?t.post.preview_link:t.post.link?Object(g.addQueryArgs)(t.post.link,{preview:!0}):e;case"REQUEST_POST_UPDATE_START":if(e&&t.options.isPreview)return null}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_EDITOR_SETTINGS":return Object(d.a)({},e,t.settings)}return e},postSavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_SAVING":return Object(d.a)({},e,Object(f.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(O.omit)(e,t.lockName)}return e}})),V=n("gQxa"),K=n.n(V),W=n("d2gM"),z=n.n(W),q=n("gdqT");function G(e,t){return{type:"SETUP_EDITOR",post:e,edits:t}}function Y(e){return{type:"RESET_POST",post:e}}function $(e){return{type:"RESET_AUTOSAVE",post:e}}function X(e){return{type:"UPDATE_POST",edits:e}}function Q(e,t){return{type:"SETUP_EDITOR_STATE",post:e,blocks:t}}function Z(e){return{type:"RESET_BLOCKS",blocks:e}}function J(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function ee(e,t){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientId:e,attributes:t}}function te(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function re(){return{type:"START_MULTI_SELECT"}}function oe(){return{type:"STOP_MULTI_SELECT"}}function ie(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function ce(){return{type:"CLEAR_SELECTED_BLOCK"}}function ae(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function se(e,t){return{type:"REPLACE_BLOCKS",clientIds:Object(O.castArray)(e),blocks:Object(O.castArray)(t),time:Date.now()}}function le(e,t){return se(e,t)}function ue(e){return function(t,n){return{clientIds:Object(O.castArray)(t),type:e,rootClientId:n}}}var de=ue("MOVE_BLOCKS_DOWN"),pe=ue("MOVE_BLOCKS_UP");function be(e,t,n,r){return{type:"MOVE_BLOCK_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientId:e,index:r}}function fe(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return he([e],t,n,r)}function he(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return{type:"INSERT_BLOCKS",blocks:Object(O.castArray)(e),index:t,rootClientId:n,time:Date.now(),updateSelection:r}}function me(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function ve(){return{type:"HIDE_INSERTION_POINT"}}function Oe(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function ge(){return{type:"SYNCHRONIZE_TEMPLATE"}}function je(e){return{type:"EDIT_POST",edits:e}}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE",options:e}}function ke(){return{type:"REFRESH_POST"}}function _e(e,t){return{type:"TRASH_POST",postId:e,postType:t}}function Ee(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function Se(e){return ye(Object(d.a)({isAutosave:!0},e))}function Ce(){return{type:"REDO"}}function we(){return{type:"UNDO"}}function Te(){return{type:"CREATE_UNDO_LEVEL"}}function Pe(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{type:"REMOVE_BLOCKS",clientIds:Object(O.castArray)(e),selectPrevious:t}}function Ie(e,t){return Pe([e],t)}function Be(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function xe(){return{type:"START_TYPING"}}function Le(){return{type:"STOP_TYPING"}}function Ae(){return{type:"ENTER_FORMATTED_TEXT"}}function Ne(){return{type:"EXIT_FORMATTED_TEXT"}}function Re(e){return{type:"UPDATE_POST_LOCK",lock:e}}function De(e){return{type:"FETCH_REUSABLE_BLOCKS",id:e}}function Fe(e){return{type:"RECEIVE_REUSABLE_BLOCKS",results:e}}function Me(e){return{type:"SAVE_REUSABLE_BLOCK",id:e}}function Ue(e){return{type:"DELETE_REUSABLE_BLOCK",id:e}}function He(e,t){return{type:"UPDATE_REUSABLE_BLOCK_TITLE",id:e,title:t}}function Ve(e){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:e}}function Ke(e){return{type:"CONVERT_BLOCK_TO_REUSABLE",clientIds:Object(O.castArray)(e)}}function We(e,t,n){return fe(Object(i.createBlock)(Object(i.getDefaultBlockName)(),e),n,t)}function ze(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function qe(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}function Ge(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function Ye(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function $e(e){return{type:"LOCK_POST_SAVING",lockName:e}}function Xe(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}var Qe=n("pPDe"),Ze=n("FqII"),Je=n("UuzZ"),et="post-update",tt=/%(?:postname|pagename)%/,nt=3,rt=2,ot=1,it=0,ct=[];function at(e){return e.editor.past.length>0}function st(e){return e.editor.future.length>0}function lt(e){return"auto-draft"===bt(e).status}function ut(e){return e.editor.present.blocks.isDirty||"content"in e.editor.present.edits}function dt(e){return!!ut(e)||(Object.keys(e.editor.present.edits).length>0||rr(e,dt))}function pt(e){return!dt(e)&<(e)}function bt(e){return e.currentPost}function ft(e){return e.currentPost.type}function ht(e){return bt(e).id||null}function mt(e){return Object(O.get)(bt(e),["_links","version-history",0,"count"],0)}function vt(e){return Object(O.get)(bt(e),["_links","predecessor-version",0,"id"],null)}var Ot=Object(Qe.a)((function(e){return Object(d.a)({},e.initialEdits,e.editor.present.edits)}),(function(e){return[e.editor.present.edits,e.initialEdits]})),gt=Object(Qe.a)((function(){return[]}),(function(e){return[e.editor]}));function jt(e,t){var n=bt(e);if(n.hasOwnProperty(t))return n[t]}function yt(e,t){switch(t){case"content":return Un(e)}var n=Ot(e);return n.hasOwnProperty(t)?P.has(t)?Object(d.a)({},jt(e,t),n[t]):n[t]:jt(e,t)}function kt(e,t){if(!xt(e))return null;var n=Bt(e);return n.hasOwnProperty(t)?n[t]:void 0}function _t(e){return"private"===yt(e,"status")?"private":yt(e,"password")?"password":"public"}function Et(e){return"pending"===bt(e).status}function St(e){var t=bt(e);return-1!==["publish","private"].indexOf(t.status)||"future"===t.status&&!Object(Ze.isInTheFuture)(new Date(Number(Object(Ze.getDate)(t.date))-6e4))}function Ct(e){return"future"===bt(e).status&&!St(e)}function wt(e){var t=bt(e);return dt(e)||-1===["publish","private","future"].indexOf(t.status)}function Tt(e){return!xn(e)&&(!!yt(e,"title")||!!yt(e,"excerpt")||!Pt(e))}function Pt(e){var t=Mn(e);if(t.length&&!("content"in Ot(e))){if(t.length>1)return!1;if(t[0].name!==Object(i.getFreeformContentHandlerName)())return!1}return!Un(e)}function It(e){if(!Tt(e))return!1;if(!xt(e))return!0;if(ut(e))return!0;var t=Bt(e);return["title","excerpt"].some((function(n){return t[n]!==yt(e,n)}))}function Bt(e){return e.autosave}function xt(e){return!!Bt(e)}function Lt(e){var t=yt(e,"date"),n=new Date(Number(Object(Ze.getDate)(t))-6e4);return Object(Ze.isInTheFuture)(n)}function At(e){var t=yt(e,"date"),n=yt(e,"modified"),r=yt(e,"status");return("draft"===r||"auto-draft"===r)&&t===n}var Nt=Object(Qe.a)((function(){return[]}),(function(e,t){return Object(O.map)(mn(e,t),(function(t){return Mt(e,t)}))}));function Rt(e,t){var n=e.editor.present.blocks.byClientId[t];return n?n.name:null}function Dt(e,t){var n=e.editor.present.blocks.byClientId[t];return!!n&&n.isValid}var Ft=Object(Qe.a)((function(e,t){var n=e.editor.present.blocks.byClientId[t];if(!n)return null;var r=e.editor.present.blocks.attributes[t],o=Object(i.getBlockType)(n.name);return o&&(r=Object(O.reduce)(o.attributes,(function(t,n,o){return"meta"===n.source&&(t===r&&(t=Object(d.a)({},t)),t[o]=function(e,t){return Object(O.has)(e,["editor","present","edits","meta",t])?Object(O.get)(e,["editor","present","edits","meta",t]):Object(O.get)(e,["currentPost","meta",t])}(e,n.meta)),t}),r)),r}),(function(e,t){return[e.editor.present.blocks.byClientId[t],e.editor.present.blocks.attributes[t],e.editor.present.edits.meta,e.initialEdits.meta,e.currentPost.meta]})),Mt=Object(Qe.a)((function(e,t){var n=e.editor.present.blocks.byClientId[t];return n?Object(d.a)({},n,{attributes:Ft(e,t),innerBlocks:Ht(e,t)}):null}),(function(e,t){return Object(b.a)(Ft.getDependants(e,t)).concat([Nt(e,t)])})),Ut=Object(Qe.a)((function(e,t){var n=e.editor.present.blocks.byClientId[t];return n?Object(d.a)({},n,{attributes:Ft(e,t)}):null}),(function(e,t){return[e.editor.present.blocks.byClientId[t]].concat(Object(b.a)(Ft.getDependants(e,t)))}));var Ht=Object(Qe.a)((function(e,t){return Object(O.map)(mn(e,t),(function(t){return Mt(e,t)}))}),(function(e){return[e.editor.present.blocks]})),Vt=function e(t,n){return Object(O.flatMap)(n,(function(n){var r=mn(t,n);return Object(b.a)(r).concat(Object(b.a)(e(t,r)))}))},Kt=Object(Qe.a)((function(e){var t=mn(e);return Object(b.a)(t).concat(Object(b.a)(Vt(e,t)))}),(function(e){return[e.editor.present.blocks.order]})),Wt=Object(Qe.a)((function(e,t){var n=Kt(e);return t?Object(O.reduce)(n,(function(n,r){return e.editor.present.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.editor.present.blocks.order,e.editor.present.blocks.byClientId]})),zt=Object(Qe.a)((function(e,t){return Object(O.map)(Object(O.castArray)(t),(function(t){return Mt(e,t)}))}),(function(e){return[e.editor.present.edits.meta,e.initialEdits.meta,e.currentPost.meta,e.editor.present.blocks]}));function qt(e,t){return mn(e,t).length}function Gt(e){return e.blockSelection.start}function Yt(e){return e.blockSelection.end}function $t(e){var t=cn(e).length;return t||(e.blockSelection.start?1:0)}function Xt(e){var t=e.blockSelection,n=t.start,r=t.end;return!!n&&n===r}function Qt(e){var t=e.blockSelection,n=t.start,r=t.end;return n&&n===r&&e.editor.present.blocks.byClientId[n]?n:null}function Zt(e){var t=Qt(e);return t?Mt(e,t):null}var Jt=Object(Qe.a)((function(e,t){var n=e.editor.present.blocks.order;for(var r in n)if(Object(O.includes)(n[r],t))return r;return null}),(function(e){return[e.editor.present.blocks.order]})),en=Object(Qe.a)((function(e,t){for(var n=t,r=t;n;)n=Jt(e,r=n);return r}),(function(e){return[e.editor.present.blocks.order]}));function tn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=Qt(e)),void 0===t&&(t=n<0?sn(e):ln(e)),!t)return null;var r=Jt(e,t);if(null===r)return null;var o=e.editor.present.blocks.order,i=o[r],c=i.indexOf(t),a=c+1*n;return a<0||a===i.length?null:i[a]}function nn(e,t){return tn(e,t,-1)}function rn(e,t){return tn(e,t,1)}function on(e){var t=e.blockSelection,n=t.start;return n===t.end&&n?e.blockSelection.initialPosition:null}var cn=Object(Qe.a)((function(e){var t=e.blockSelection,n=t.start,r=t.end;if(n===r)return[];var o=Jt(e,n);if(null===o)return[];var i=mn(e,o),c=i.indexOf(n),a=i.indexOf(r);return c>a?i.slice(a,c+1):i.slice(c,a+1)}),(function(e){return[e.editor.present.blocks.order,e.blockSelection.start,e.blockSelection.end]})),an=Object(Qe.a)((function(e){var t=cn(e);return t.length?t.map((function(t){return Mt(e,t)})):ct}),(function(e){return Object(b.a)(cn.getDependants(e)).concat([e.editor.present.blocks,e.editor.present.edits.meta,e.initialEdits.meta,e.currentPost.meta])}));function sn(e){return Object(O.first)(cn(e))||null}function ln(e){return Object(O.last)(cn(e))||null}var un=Object(Qe.a)((function(e,t,n){for(var r=n;t!==r&&r;)r=Jt(e,r);return t===r}),(function(e){return[e.editor.present.blocks.order]}));function dn(e,t){return sn(e)===t}function pn(e,t){return-1!==cn(e).indexOf(t)}var bn=Object(Qe.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=pn(e,n=Jt(e,n));return r}),(function(e){return[e.editor.present.blocks.order,e.blockSelection.start,e.blockSelection.end]}));function fn(e){var t=e.blockSelection,n=t.start;return n===t.end?null:n||null}function hn(e){var t=e.blockSelection,n=t.start,r=t.end;return n===r?null:r||null}function mn(e,t){return e.editor.present.blocks.order[t||""]||ct}function vn(e,t,n){return mn(e,n).indexOf(t)}function On(e,t){var n=e.blockSelection,r=n.start;return r===n.end&&r===t}function gn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(O.some)(mn(e,t),(function(t){return On(e,t)||pn(e,t)||n&&gn(e,t,n)}))}function jn(e,t){if(!t)return!1;var n=cn(e),r=n.indexOf(t);return r>-1&&r2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(O.isBoolean)(e)?e:Object(O.isArray)(e)?Object(O.includes)(e,t):n},o=Object(i.getBlockType)(t);if(!o)return!1;var c=ir(e),a=c.allowedBlockTypes,s=r(a,t,!0);if(!s)return!1;var l=!!Bn(e,n);if(l)return!1;var u=or(e,n),d=Object(O.get)(u,["allowedBlocks"]),p=r(d,t),b=o.parent,f=Rt(e,n),h=r(b,f);return null!==p&&null!==h?p||h:null!==p?p:null===h||h},Vn=Object(Qe.a)(Hn,(function(e,t,n){return[e.blockListSettings[n],e.editor.present.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function Kn(e,t){return e.preferences.insertUsage[t]||null}var Wn=function(e,t,n){return!!Object(i.hasBlockSupport)(t,"inserter",!0)&&Hn(e,t.name,n)},zn=function(e,t,n){if(!Hn(e,"core/block",n))return!1;var r=Rt(e,t.clientId);return!!r&&(!!Object(i.getBlockType)(r)&&(!!Hn(e,r,n)&&!un(e,t.clientId,n)))},qn=Object(Qe.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e,t,n){return n?nt:t>0?rt:"common"===e?ot:it},r=function(e,t){if(!e)return t;var 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}},o=function(t){var o=t.name,c=!1;Object(i.hasBlockSupport)(t.name,"multiple",!0)||(c=Object(O.some)(zt(e,Kt(e)),{name:t.name}));var a=Object(O.isArray)(t.parent),s=Kn(e,o)||{},l=s.time,u=s.count,d=void 0===u?0:u;return{id:o,name:t.name,initialAttributes:{},title:t.title,icon:t.icon,category:t.category,keywords:t.keywords,isDisabled:c,utility:n(t.category,d,a),frecency:r(l,d),hasChildBlocksWithInserterSupport:Object(i.hasChildBlocksWithInserterSupport)(t.name)}},c=function(t){var o="core/block/".concat(t.id),c=Rt(e,t.clientId),a=Object(i.getBlockType)(c),s=Kn(e,o)||{},l=s.time,u=s.count,d=void 0===u?0:u,p=n("reusable",d,!1),b=r(l,d);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:a.icon,category:"reusable",keywords:[],isDisabled:!1,utility:p,frecency:b}},a=Object(i.getBlockTypes)().filter((function(n){return Wn(e,n,t)})).map(o),s=Qn(e).filter((function(n){return zn(e,n,t)})).map(c);return Object(O.orderBy)(Object(b.a)(a).concat(Object(b.a)(s)),["utility","frecency"],["desc","desc"])}),(function(e,t){return[e.blockListSettings[t],e.editor.present.blocks.byClientId,e.editor.present.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,e.reusableBlocks.data,Object(i.getBlockTypes)()]})),Gn=Object(Qe.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(O.some)(Object(i.getBlockTypes)(),(function(n){return Wn(e,n,t)}));if(n)return!0;var r=Object(O.some)(Qn(e),(function(n){return zn(e,n,t)}));return r}),(function(e,t){return[e.blockListSettings[t],e.editor.present.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,e.reusableBlocks.data,Object(i.getBlockTypes)()]})),Yn=Object(Qe.a)((function(e,t){var n=e.reusableBlocks.data[t];if(!n)return null;var r=isNaN(parseInt(t));return Object(d.a)({},n,{id:r?t:+t,isTemporary:r})}),(function(e,t){return[e.reusableBlocks.data[t]]}));function $n(e,t){return e.reusableBlocks.isSaving[t]||!1}function Xn(e,t){return!!e.reusableBlocks.isFetching[t]}function Qn(e){return Object(O.map)(e.reusableBlocks.data,(function(t,n){return Yn(e,n)}))}function Zn(e,t){var n=Object(O.find)(e.optimist,(function(e){return e.beforeState&&Object(O.get)(e.action,["optimist","id"])===t}));return n?n.beforeState:null}function Jn(e){if(!xn(e))return!1;if(!St(e))return!1;var t=Zn(e,et);return!!t&&!St(t)}function er(e){var t=yt(e,"permalink_template");return tt.test(t)}function tr(e){var t=nr(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return er(e)?n+r+o:n}function nr(e){var t=yt(e,"permalink_template");if(!t)return null;var n=yt(e,"slug")||yt(e,"generated_slug"),r=t.split(tt),o=Object(u.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function rr(e,t){var n=e.optimist;return!!n&&n.some((function(e){var n=e.beforeState;return n&&t(n)}))}function or(e,t){return e.blockListSettings[t]}function ir(e){return e.settings}function cr(e,t){return t?e.tokens[t]:e.tokens}function ar(e){return e.postLock.isLocked}function sr(e){return Object.keys(e.postSavingLock).length>0}function lr(e){return e.postLock.isTakeover}function ur(e){return e.postLock.user}function dr(e){return e.postLock.activePostLock}function pr(e){return Object(O.has)(bt(e),["_links","wp:action-unfiltered-html"])}function br(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:E.isPublishSidebarEnabled}var fr=n("HaE+"),hr=n("ywyh"),mr=n.n(hr),vr=function(){var e=Object(fr.a)(regeneratorRuntime.mark((function e(t,n){var r,o,c,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,o=n.dispatch,e.next=4,mr()({path:"/wp/v2/types/wp_block"});case 4:if(c=e.sent){e.next=7;break}return e.abrupt("return");case 7:if(e.prev=7,!r){e.next=15;break}return e.next=11,mr()({path:"/wp/v2/".concat(c.rest_base,"/").concat(r)});case 11:e.t0=e.sent,a=[e.t0],e.next=18;break;case 15:return e.next=17,mr()({path:"/wp/v2/".concat(c.rest_base,"?per_page=-1")});case 17:a=e.sent;case 18:(s=Object(O.compact)(Object(O.map)(a,(function(e){if("publish"!==e.status||e.content.protected)return null;var t=Object(i.parse)(e.content.raw);return{reusableBlock:{id:e.id,title:I(e.title)},parsedBlock:1===t.length?t[0]:Object(i.createBlock)("core/template",{},t)}})))).length&&o(Fe(s)),o({type:"FETCH_REUSABLE_BLOCKS_SUCCESS",id:r}),e.next=26;break;case 23:e.prev=23,e.t1=e.catch(7),o({type:"FETCH_REUSABLE_BLOCKS_FAILURE",id:r,error:e.t1});case 26:case"end":return e.stop()}}),e,this,[[7,23]])})));return function(t,n){return e.apply(this,arguments)}}(),Or=function(){var e=Object(fr.a)(regeneratorRuntime.mark((function e(t,n){var r,o,c,a,s,u,d,p,b,f,h,m,v,O,g;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mr()({path:"/wp/v2/types/wp_block"});case 2:if(r=e.sent){e.next=5;break}return e.abrupt("return");case 5:return o=t.id,c=n.dispatch,a=n.getState(),s=Yn(a,o),u=s.clientId,d=s.title,p=s.isTemporary,b=Mt(a,u),f=Object(i.serialize)("core/template"===b.name?b.innerBlocks:b),h=p?{title:d,content:f,status:"publish"}:{id:o,title:d,content:f,status:"publish"},m=p?"/wp/v2/".concat(r.rest_base):"/wp/v2/".concat(r.rest_base,"/").concat(o),v=p?"POST":"PUT",e.prev=14,e.next=17,mr()({path:m,data:h,method:v});case 17:O=e.sent,c({type:"SAVE_REUSABLE_BLOCK_SUCCESS",updatedId:O.id,id:o}),g=p?Object(_.__)("Block created."):Object(_.__)("Block updated."),Object(l.dispatch)("core/notices").createSuccessNotice(g,{id:"REUSABLE_BLOCK_NOTICE_ID"}),e.next=27;break;case 23:e.prev=23,e.t0=e.catch(14),c({type:"SAVE_REUSABLE_BLOCK_FAILURE",id:o}),Object(l.dispatch)("core/notices").createErrorNotice(e.t0.message,{id:"REUSABLE_BLOCK_NOTICE_ID"});case 27:case"end":return e.stop()}}),e,this,[[14,23]])})));return function(t,n){return e.apply(this,arguments)}}(),gr=function(){var e=Object(fr.a)(regeneratorRuntime.mark((function e(t,n){var r,o,c,a,s,u,d,p,f,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mr()({path:"/wp/v2/types/wp_block"});case 2:if(r=e.sent){e.next=5;break}return e.abrupt("return");case 5:if(o=t.id,c=n.getState,a=n.dispatch,(s=Yn(c(),o))&&!s.isTemporary){e.next=10;break}return e.abrupt("return");case 10:return u=Ht(c()),d=u.filter((function(e){return Object(i.isReusableBlock)(e)&&e.attributes.ref===o})),p=d.map((function(e){return e.clientId})),f=Object(O.uniqueId)(),a({type:"REMOVE_REUSABLE_BLOCK",id:o,optimist:{type:m.BEGIN,id:f}}),a(Pe(Object(b.a)(p).concat([s.clientId]))),e.prev=16,e.next=19,mr()({path:"/wp/v2/".concat(r.rest_base,"/").concat(o),method:"DELETE"});case 19:a({type:"DELETE_REUSABLE_BLOCK_SUCCESS",id:o,optimist:{type:m.COMMIT,id:f}}),h=Object(_.__)("Block deleted."),Object(l.dispatch)("core/notices").createSuccessNotice(h,{id:"REUSABLE_BLOCK_NOTICE_ID"}),e.next=28;break;case 24:e.prev=24,e.t0=e.catch(16),a({type:"DELETE_REUSABLE_BLOCK_FAILURE",id:o,optimist:{type:m.REVERT,id:f}}),Object(l.dispatch)("core/notices").createErrorNotice(e.t0.message,{id:"REUSABLE_BLOCK_NOTICE_ID"});case 28:case"end":return e.stop()}}),e,this,[[16,24]])})));return function(t,n){return e.apply(this,arguments)}}();function jr(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.getBlockInsertionParentClientId,n=void 0===t?Xr:t,r=e.getInserterItems,o=void 0===r?Qr:r,c=e.getSelectedBlockName,a=void 0===c?Zr:c;return{name:"blocks",className:"editor-autocompleters__block",triggerPrefix:"/",options:function(){var e=a();return o(n()).filter((function(t){return e!==t.name}))},getOptionKeywords:function(e){var t=e.title,n=e.keywords,r=void 0===n?[]:n;return[e.category].concat(Object(b.a)(r),[t])},getOptionLabel:function(e){var t=e.icon,n=e.title;return[Object(Ir.createElement)($r,{key:"icon",icon:t,showColors:!0}),n]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes;return{action:"replace",value:Object(i.createBlock)(t,n)}},isOptionDisabled:function(e){return e.isDisabled}}}(),eo={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",options:function(e){var t="";return e&&(t="?search="+encodeURIComponent(e)),mr()({path:"/wp/v2/users"+t})},isDebounced:!0,getOptionKeywords:function(e){return[e.slug,e.name]},getOptionLabel:function(e){return[Object(Ir.createElement)("img",{key:"avatar",className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}),Object(Ir.createElement)("span",{key:"name",className:"editor-autocompleters__user-name"},e.name),Object(Ir.createElement)("span",{key:"slug",className:"editor-autocompleters__user-slug"},e.slug)]},getOptionCompletion:function(e){return"@".concat(e.slug)}},to=[{icon:"editor-alignleft",title:Object(_.__)("Align text left"),align:"left"},{icon:"editor-aligncenter",title:Object(_.__)("Align text center"),align:"center"},{icon:"editor-alignright",title:Object(_.__)("Align text right"),align:"right"}];var no=Object(Lr.compose)(zr((function(e){return{clientId:e.clientId}})),Object(s.withViewportMatch)({isLargeViewport:"medium"}),Object(l.withSelect)((function(e,t){var n=t.clientId,r=t.isLargeViewport,o=t.isCollapsed,i=e("core/editor"),c=i.getBlockRootClientId,a=i.getEditorSettings;return{isCollapsed:o||!r||!a().hasFixedToolbar&&c(n)}})))((function(e){var t=e.isCollapsed,n=e.value,r=e.onChange,o=e.alignmentControls,i=void 0===o?to:o;function c(e){return function(){return r(n===e?void 0:e)}}var a=Object(O.find)(i,(function(e){return e.align===n}));return Object(Ir.createElement)(Hr.Toolbar,{isCollapsed:t,icon:a?a.icon:"editor-alignleft",label:Object(_.__)("Change Text Alignment"),controls:i.map((function(e){var t=e.align,r=n===t;return Object(d.a)({},e,{isActive:r,onClick:c(t)})}))})})),ro={left:{icon:"align-left",title:Object(_.__)("Align left")},center:{icon:"align-center",title:Object(_.__)("Align center")},right:{icon:"align-right",title:Object(_.__)("Align right")},wide:{icon:"align-wide",title:Object(_.__)("Wide width")},full:{icon:"align-full-width",title:Object(_.__)("Full width")}},oo=["left","center","right","wide","full"],io=["wide","full"];var co=Object(Lr.compose)(zr((function(e){return{clientId:e.clientId}})),Object(s.withViewportMatch)({isLargeViewport:"medium"}),Object(l.withSelect)((function(e,t){var n=t.clientId,r=t.isLargeViewport,o=t.isCollapsed,i=e("core/editor"),c=i.getBlockRootClientId,a=i.getEditorSettings;return{wideControlsEnabled:e("core/editor").getEditorSettings().alignWide,isCollapsed:o||!r||!a().hasFixedToolbar&&c(n)}})))((function(e){var t=e.isCollapsed,n=e.value,r=e.onChange,o=e.controls,i=void 0===o?oo:o,c=e.wideControlsEnabled,a=void 0!==c&&c?i:i.filter((function(e){return-1===io.indexOf(e)})),s=ro[n];return Object(Ir.createElement)(Hr.Toolbar,{isCollapsed:t,icon:s?s.icon:"align-left",label:Object(_.__)("Change Alignment"),controls:a.map((function(e){return Object(d.a)({},ro[e],{isActive:n===e,onClick:(t=e,function(){return r(n===t?void 0:t)})});var t}))})})),ao=Object(Hr.createSlotFill)("BlockControls"),so=ao.Fill,lo=ao.Slot,uo=qr((function(e){var t=e.controls,n=e.children;return Object(Ir.createElement)(so,null,Object(Ir.createElement)(Hr.Toolbar,{controls:t}),n)}));uo.Slot=lo;var po=uo,bo=Object(Hr.withFilters)("editor.BlockEdit")((function(e){var t=e.attributes,n=void 0===t?{}:t,r=e.name,o=Object(i.getBlockType)(r);if(!o)return null;var c=Object(i.hasBlockSupport)(o,"className",!0)?Object(i.getBlockDefaultClassName)(r):null,a=xr()(c,n.className),s=o.edit||o.save;return Object(Ir.createElement)(s,Object(Pr.a)({},e,{className:a}))})),fo=function(e){function t(e){var n;return Object(Nr.a)(this,t),(n=Object(Dr.a)(this,Object(Fr.a)(t).call(this,e))).setFocusedElement=n.setFocusedElement.bind(Object(Ur.a)(Object(Ur.a)(n))),n.state={focusedElement:null,setFocusedElement:n.setFocusedElement},n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"setFocusedElement",value:function(e){this.setState((function(t){return t.focusedElement===e?null:{focusedElement:e}}))}},{key:"render",value:function(){return Object(Ir.createElement)(Wr,{value:this.state},Object(Ir.createElement)(bo,this.props))}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.clientId;return{name:e.name,isSelected:e.isSelected,clientId:t}}}]),t}(Ir.Component),ho=Object(Hr.createSlotFill)("BlockFormatControls"),mo=ho.Fill,vo=ho.Slot,Oo=qr(mo);Oo.Slot=vo;var go=Oo,jo=n("RxS6");function yo(e){var t=e.blocks,n=e.selectedBlockClientId,r=e.selectBlock,o=e.showNestedBlocks;return Object(Ir.createElement)("ul",{className:"editor-block-navigation__list",role:"list"},Object(O.map)(t,(function(e){var t=Object(i.getBlockType)(e.name),c=e.clientId===n;return Object(Ir.createElement)("li",{key:e.clientId},Object(Ir.createElement)("div",{className:"editor-block-navigation__item"},Object(Ir.createElement)(Hr.Button,{className:xr()("editor-block-navigation__item-button",{"is-selected":e.clientId===n}),onClick:function(){return r(e.clientId)},isSelected:c},Object(Ir.createElement)($r,{icon:t.icon,showColors:!0}),t.title,c&&Object(Ir.createElement)("span",{className:"screen-reader-text"},Object(_.__)("(selected block)")))),o&&!!e.innerBlocks&&!!e.innerBlocks.length&&Object(Ir.createElement)(yo,{blocks:e.innerBlocks,selectedBlockClientId:n,selectBlock:r,showNestedBlocks:!0}))})))}var ko=Object(Lr.compose)(Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.getBlock,i=t.getBlocks,c=n();return{rootBlocks:i(),rootBlock:c?o(r(c)):null,selectedBlockClientId:c}})),Object(l.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?O.noop:n;return{selectBlock:function(t){e("core/editor").selectBlock(t),r(t)}}})))((function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(Ir.createElement)(Hr.NavigableMenu,{role:"presentation",className:"editor-block-navigation__container"},Object(Ir.createElement)("p",{className:"editor-block-navigation__label"},Object(_.__)("Block Navigation")),i&&Object(Ir.createElement)(yo,{blocks:[t],selectedBlockClientId:r,selectBlock:o,showNestedBlocks:!0}),!i&&Object(Ir.createElement)(yo,{blocks:n,selectedBlockClientId:r,selectBlock:o}))})),_o=Object(Ir.createElement)(Hr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},Object(Ir.createElement)(Hr.Path,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"}));var Eo=Object(l.withSelect)((function(e){return{hasBlocks:!!e("core/editor").getBlockCount()}}))((function(e){var t=e.hasBlocks;return Object(Ir.createElement)(Hr.Dropdown,{renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(Hr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(f.a)({},jo.rawShortcut.access("o"),r)}),Object(Ir.createElement)(Hr.IconButton,{icon:_o,"aria-expanded":n,onClick:t?r:void 0,label:Object(_.__)("Block Navigation"),className:"editor-block-navigation",shortcut:jo.displayShortcut.access("o"),"aria-disabled":!t}))},renderContent:function(e){var t=e.onClose;return Object(Ir.createElement)(ko,{onSelect:t})}})})),So=Object(Lr.createHigherOrderComponent)(Object(l.withSelect)((function(e,t){var n=e("core/editor").getEditorSettings(),r=void 0===t.colors?n.colors:t.colors,o=void 0===t.disableCustomColors?n.disableCustomColors:t.disableCustomColors;return{colors:r,disableCustomColors:o,hasColorsToChoose:!Object(O.isEmpty)(r)||!o}})),"withColorContext"),Co=So(Hr.ColorPalette),wo=n("Zss7"),To=n.n(wo),Po=function(e,t,n){if(t){var r=Object(O.find)(e,{slug:t});if(r)return r}return{color:n}},Io=function(e,t){return Object(O.find)(e,{color:t})};function Bo(e,t){if(e&&t)return"has-".concat(Object(O.kebabCase)(t),"-").concat(e)}function xo(e,t){return To.a.mostReadable(t,Object(O.map)(e,"color")).toHexString()}var Lo=[],Ao=function(){for(var e=arguments.length,t=new Array(e),n=0;n=24?"large":"small"}))return null;var l=a.getBrightness()1?function(e,t,n,r,o){var i=t+1;if(o<0&&n)return Object(_.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(_.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(_.sprintf)(Object(_._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,i);if(o>0&&!r)return Object(_.sprintf)(Object(_._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,i)}(e,n,r,o,i):r&&o?Object(_.sprintf)(Object(_.__)("Block %s is the only block, and cannot be moved"),t):i>0&&!o?Object(_.sprintf)(Object(_.__)("Move %1$s block from position %2$d down to position %3$d"),t,c,c+1):i>0&&o?Object(_.sprintf)(Object(_.__)("Block %s is at the end of the content and can’t be moved down"),t):i<0&&!r?Object(_.sprintf)(Object(_.__)("Move %1$s block from position %2$d up to position %3$d"),t,c,c-1):i<0&&r?Object(_.sprintf)(Object(_.__)("Block %s is at the beginning of the content and can’t be moved up"),t):void 0}var Wo=Object(Ir.createElement)(Hr.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(Ir.createElement)(Hr.Polygon,{points:"9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 "})),zo=Object(Ir.createElement)(Hr.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(Ir.createElement)(Hr.Polygon,{points:"9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "})),qo=Object(Ir.createElement)(Hr.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(Ir.createElement)(Hr.Path,{d:"M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"})),Go=Object(l.withSelect)((function(e,t){var n=t.clientId,r=e("core/editor"),o=r.getBlockIndex,i=r.getBlockRootClientId;return{index:o(n),rootClientId:i(n)}}))((function(e){var t=e.children,n=e.clientId,r=e.rootClientId,o=e.blockElementId,i=e.index,c=e.onDragStart,a=e.onDragEnd,s={type:"block",srcIndex:i,srcRootClientId:r,srcClientId:n};return Object(Ir.createElement)(Hr.Draggable,{elementId:o,transferData:s,onDragStart:c,onDragEnd:a},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return t({onDraggableStart:n,onDraggableEnd:r})}))})),Yo=function(e){var t=e.isVisible,n=e.className,r=e.icon,o=e.onDragStart,i=e.onDragEnd,c=e.blockElementId,a=e.clientId;if(!t)return null;var s=xr()("editor-block-mover__control-drag-handle",n);return Object(Ir.createElement)(Go,{clientId:a,blockElementId:c,onDragStart:o,onDragEnd:i},(function(e){var t=e.onDraggableStart,n=e.onDraggableEnd;return Object(Ir.createElement)("div",{className:s,"aria-hidden":"true",onDragStart:t,onDragEnd:n,draggable:!0},r)}))},$o=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onBlur=e.onBlur.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this.props,t=e.onMoveUp,n=e.onMoveDown,r=e.isFirst,o=e.isLast,i=e.isDraggable,c=e.onDragStart,a=e.onDragEnd,s=e.clientIds,l=e.blockElementId,u=e.blockType,d=e.firstIndex,p=e.isLocked,b=e.instanceId,f=e.isHidden,h=this.state.isFocused,m=Object(O.castArray)(s).length;return p||r&&o?null:Object(Ir.createElement)("div",{className:xr()("editor-block-mover",{"is-visible":h||!f})},Object(Ir.createElement)(Hr.IconButton,{className:"editor-block-mover__control",onClick:r?null:t,icon:Wo,label:Object(_.__)("Move up"),"aria-describedby":"editor-block-mover__up-description-".concat(b),"aria-disabled":r,onFocus:this.onFocus,onBlur:this.onBlur}),Object(Ir.createElement)(Yo,{className:"editor-block-mover__control",icon:qo,clientId:s,blockElementId:l,isVisible:i,onDragStart:c,onDragEnd:a}),Object(Ir.createElement)(Hr.IconButton,{className:"editor-block-mover__control",onClick:o?null:n,icon:zo,label:Object(_.__)("Move down"),"aria-describedby":"editor-block-mover__down-description-".concat(b),"aria-disabled":o,onFocus:this.onFocus,onBlur:this.onBlur}),Object(Ir.createElement)("span",{id:"editor-block-mover__up-description-".concat(b),className:"editor-block-mover__description"},Ko(m,u&&u.title,d,r,o,-1)),Object(Ir.createElement)("span",{id:"editor-block-mover__down-description-".concat(b),className:"editor-block-mover__description"},Ko(m,u&&u.title,d,r,o,1)))}}]),t}(Ir.Component),Xo=Object(Lr.compose)(Object(l.withSelect)((function(e,t){var n=t.clientIds,r=e("core/editor"),o=r.getBlock,c=r.getBlockIndex,a=r.getTemplateLock,s=r.getBlockRootClientId,l=Object(O.first)(Object(O.castArray)(n)),u=o(l),d=s(Object(O.first)(Object(O.castArray)(n)));return{firstIndex:c(l,d),blockType:u?Object(i.getBlockType)(u.name):null,isLocked:"all"===a(d),rootClientId:d}})),Object(l.withDispatch)((function(e,t){var n=t.clientIds,r=t.rootClientId,o=e("core/editor"),i=o.moveBlocksDown,c=o.moveBlocksUp;return{onMoveDown:Object(O.partial)(i,n,r),onMoveUp:Object(O.partial)(c,n,r)}})),Lr.withInstanceId)($o);var Qo=Object(l.withSelect)((function(e){return{hasUploadPermissions:(0,e("core").hasUploadPermissions)()}}))((function(e){var t=e.hasUploadPermissions,n=e.fallback,r=void 0===n?null:n,o=e.children;return t?o:r})),Zo=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onFilesDrop=e.onFilesDrop.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onHTMLDrop=e.onHTMLDrop.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onDrop=e.onDrop.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"getInsertIndex",value:function(e){var t=this.props.index;if(void 0!==t)return"top"===e.y?t:t+1}},{key:"onFilesDrop",value:function(e,t){var n=Object(i.findTransform)(Object(i.getBlockTransforms)("from"),(function(t){return"files"===t.type&&t.isMatch(e)}));if(n){var r=this.getInsertIndex(t),o=n.transform(e,this.props.updateBlockAttributes);this.props.insertBlocks(o,r)}}},{key:"onHTMLDrop",value:function(e,t){var n=Object(i.pasteHandler)({HTML:e,mode:"BLOCKS"});n.length&&this.props.insertBlocks(n,this.getInsertIndex(t))}},{key:"onDrop",value:function(e,t){var n=this.props,r=n.rootClientId,o=n.clientId,i=n.index,c=n.getClientIdsOfDescendants,a=function(e){var t={srcRootClientId:null,srcClientId:null,srcIndex:null,type:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("text")))}catch(e){return t}return t}(e),s=a.srcRootClientId,l=a.srcClientId,u=a.srcIndex,d=a.type;if("block"===d&&l!==o&&!function(e,t){return c([e]).some((function(e){return e===t}))}(l,o)){var p,b,f=this.getInsertIndex(t),h=i&&u0&&Object(Ir.createElement)("div",{className:"editor-warning__actions"},Ir.Children.map(n,(function(e,t){return Object(Ir.createElement)("span",{key:t,className:"editor-warning__action"},e)})))),o&&Object(Ir.createElement)(Hr.Dropdown,{className:"editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(Ir.createElement)(Hr.IconButton,{icon:"ellipsis",label:Object(_.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(Ir.createElement)(Hr.MenuGroup,{label:Object(_.__)("More options")},o.map((function(e,t){return Object(Ir.createElement)(Hr.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))},ti=n("v2jn"),ni=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,i=e.actionText,c=e.className;return Object(Ir.createElement)("div",{className:c},Object(Ir.createElement)("div",{className:"editor-block-compare__content"},Object(Ir.createElement)("h2",{className:"editor-block-compare__heading"},t),Object(Ir.createElement)("div",{className:"editor-block-compare__html"},n),Object(Ir.createElement)("div",{className:"editor-block-compare__preview edit-post-visual-editor"},r)),Object(Ir.createElement)("div",{className:"editor-block-compare__action"},Object(Ir.createElement)(Hr.Button,{isLarge:!0,tabIndex:"0",onClick:o},i)))},ri=function(e){function t(){return Object(Nr.a)(this,t),Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"getDifference",value:function(e,t){return Object(ti.diffChars)(e,t).map((function(e,t){var n=xr()({"editor-block-compare__added":e.added,"editor-block-compare__removed":e.removed});return Object(Ir.createElement)("span",{key:t,className:n},e.value)}))}},{key:"getOriginalContent",value:function(e){return{rawContent:e.originalContent,renderedContent:Object(i.getSaveElement)(e.name,e.attributes)}}},{key:"getConvertedContent",value:function(e){var t=Object(O.castArray)(e),n=t.map((function(e){return Object(i.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),r=t.map((function(e){return Object(i.getSaveElement)(e.name,e.attributes,e.innerBlocks)}));return{rawContent:n.join(""),renderedContent:r}}},{key:"render",value:function(){var e=this.props,t=e.block,n=e.onKeep,r=e.onConvert,o=e.convertor,i=e.convertButtonText,c=this.getOriginalContent(t),a=this.getConvertedContent(o(t)),s=this.getDifference(c.rawContent,a.rawContent);return Object(Ir.createElement)("div",{className:"editor-block-compare__wrapper"},Object(Ir.createElement)(ni,{title:Object(_.__)("Current"),className:"editor-block-compare__current",action:n,actionText:Object(_.__)("Convert to HTML"),rawContent:c.rawContent,renderedContent:c.renderedContent}),Object(Ir.createElement)(ni,{title:Object(_.__)("After Conversion"),className:"editor-block-compare__converted",action:r,actionText:i,rawContent:s,renderedContent:a.renderedContent}))}}]),t}(Ir.Component),oi=function(e){function t(e){var n;return Object(Nr.a)(this,t),(n=Object(Dr.a)(this,Object(Fr.a)(t).call(this,e))).state={compare:!1},n.onCompare=n.onCompare.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onCompareClose=n.onCompareClose.bind(Object(Ur.a)(Object(Ur.a)(n))),n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onCompare",value:function(){this.setState({compare:!0})}},{key:"onCompareClose",value:function(){this.setState({compare:!1})}},{key:"render",value:function(){var e=this.props,t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.block,c=!!Object(i.getBlockType)("core/html"),a=this.state.compare,s=[{title:Object(_.__)("Convert to Classic Block"),onClick:r}];return a?Object(Ir.createElement)(Hr.Modal,{title:Object(_.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"editor-block-compare"},Object(Ir.createElement)(ri,{block:o,onKeep:t,onConvert:n,convertor:ii,convertButtonText:Object(_.__)("Convert to Blocks")})):Object(Ir.createElement)(ei,{actions:[Object(Ir.createElement)(Hr.Button,{key:"convert",onClick:this.onCompare,isLarge:!0,isPrimary:!c},Object(_._x)("Resolve","imperative verb")),c&&Object(Ir.createElement)(Hr.Button,{key:"edit",onClick:t,isLarge:!0,isPrimary:!0},Object(_.__)("Convert to HTML"))],secondaryActions:s},Object(_.__)("This block contains unexpected or invalid content."))}}]),t}(Ir.Component),ii=function(e){return Object(i.rawHandler)({HTML:e.originalContent})},ci=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/editor").getBlock(n)}})),Object(l.withDispatch)((function(e,t){var n=t.block,r=e("core/editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,ii(n))}}}))])(oi),ai=Object(Ir.createElement)(ei,null,Object(_.__)("This block has encountered an error and cannot be previewed.")),si=function(){return ai},li=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={hasError:!1},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),t}(Ir.Component),ui=n("O6Fj"),di=n.n(ui),pi=function(e){function t(e){var n;return Object(Nr.a)(this,t),(n=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onChange=n.onChange.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onBlur=n.onBlur.bind(Object(Ur.a)(Object(Ur.a)(n))),n.state={html:e.block.isValid?Object(i.getBlockContent)(e.block):e.block.originalContent},n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidUpdate",value:function(e){Object(O.isEqual)(this.props.block.attributes,e.block.attributes)||this.setState({html:Object(i.getBlockContent)(this.props.block)})}},{key:"onBlur",value:function(){var e=this.state.html,t=Object(i.getBlockType)(this.props.block.name),n=Object(i.getBlockAttributes)(t,e,this.props.block.attributes),r=e||Object(i.getSaveContent)(t,n),o=!e||Object(i.isValidBlockContent)(t,n,r);this.props.onChange(this.props.clientId,n,r,o),e||this.setState({html:r})}},{key:"onChange",value:function(e){this.setState({html:e.target.value})}},{key:"render",value:function(){var e=this.state.html;return Object(Ir.createElement)(di.a,{className:"editor-block-list__block-html-textarea",value:e,onBlur:this.onBlur,onChange:this.onChange})}}]),t}(Ir.Component),bi=Object(Lr.compose)([Object(l.withSelect)((function(e,t){return{block:e("core/editor").getBlock(t.clientId)}})),Object(l.withDispatch)((function(e){return{onChange:function(t,n,r,o){e("core/editor").updateBlock(t,{attributes:n,originalContent:r,isValid:o})}}}))])(pi);var fi=Object(l.withSelect)((function(e,t){return{name:(0,e("core/editor").getBlockName)(t.clientId)}}))((function(e){var t=e.name;if(!t)return null;var n=Object(i.getBlockType)(t);return n?n.title:null})),hi=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onBlur=e.onBlur.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onFocus",value:function(e){this.setState({isFocused:!0}),e.stopPropagation()}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this.props,t=e.clientId,n=e.rootClientId;return Object(Ir.createElement)("div",{className:"editor-block-list__breadcrumb"},Object(Ir.createElement)(Hr.Toolbar,null,n&&Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(fi,{clientId:n}),Object(Ir.createElement)("span",{className:"editor-block-list__descendant-arrow"})),Object(Ir.createElement)(fi,{clientId:t})))}}]),t}(Ir.Component),mi=Object(Lr.compose)([Object(l.withSelect)((function(e,t){return{rootClientId:(0,e("core/editor").getBlockRootClientId)(t.clientId)}}))])(hi),vi=window,Oi=vi.Node,gi=vi.getSelection,ji=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).focusToolbar=e.focusToolbar.bind(Object(Ur.a)(Object(Ur.a)(e))),e.focusSelection=e.focusSelection.bind(Object(Ur.a)(Object(Ur.a)(e))),e.switchOnKeyDown=Object(O.cond)([[Object(O.matchesProperty)(["keyCode"],jo.ESCAPE),e.focusSelection]]),e.toolbar=Object(Ir.createRef)(),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"focusToolbar",value:function(){var e=Vo.focus.tabbable.find(this.toolbar.current);e.length&&e[0].focus()}},{key:"focusSelection",value:function(){var e=gi();if(e){var t=e.focusNode;t.nodeType!==Oi.ELEMENT_NODE&&(t=t.parentElement),t&&t.focus()}}},{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.focusToolbar()}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(p.a)(e,["children"]);return Object(Ir.createElement)(Hr.NavigableMenu,Object(Pr.a)({orientation:"horizontal",role:"toolbar",ref:this.toolbar,onKeyDown:this.switchOnKeyDown},Object(O.omit)(n,["focusOnMount"])),Object(Ir.createElement)(Hr.KeyboardShortcuts,{bindGlobal:!0,eventName:"keydown",shortcuts:{"alt+f10":this.focusToolbar}}),t)}}]),t}(Ir.Component);var yi=function(e){var t=e.focusOnMount;return Object(Ir.createElement)(ji,{focusOnMount:t,className:"editor-block-contextual-toolbar","aria-label":Object(_.__)("Block tools")},Object(Ir.createElement)(Xl,null))};var ki=Object(l.withSelect)((function(e,t){var n=t.clientId,r=e("core/editor"),o=r.getMultiSelectedBlockClientIds,i=r.isMultiSelecting,c=r.getBlockIndex,a=r.getBlockCount,s=o(),l=c(Object(O.first)(s),n),u=c(Object(O.last)(s),n);return{multiSelectedBlockClientIds:s,isSelecting:i(),isFirst:0===l,isLast:u+1===a()}}))((function(e){var t=e.multiSelectedBlockClientIds,n=e.clientId,r=e.isSelecting,o=e.isFirst,i=e.isLast;return r?null:Object(Ir.createElement)(Xo,{key:"mover",clientId:n,clientIds:t,isFirst:o,isLast:i})})),_i=n("9Do8"),Ei=n.n(_i);function Si(e){var t=e.name,n=e.attributes,r=Object(i.createBlock)(t,n);return Object(Ir.createElement)(Hr.Disabled,{className:"editor-block-preview__content editor-styles-wrapper","aria-hidden":!0},Object(Ir.createElement)(fo,{name:t,focus:!1,attributes:r.attributes,setAttributes:O.noop}))}var Ci=function(e){return Object(Ir.createElement)("div",{className:"editor-block-preview"},Object(Ir.createElement)("div",{className:"editor-block-preview__title"},Object(_.__)("Preview")),Object(Ir.createElement)(Si,e))};var wi=function(e){var t=e.icon,n=e.hasChildBlocksWithInserterSupport,r=e.onClick,o=e.isDisabled,i=e.title,c=e.className,a=Object(p.a)(e,["icon","hasChildBlocksWithInserterSupport","onClick","isDisabled","title","className"]),s=t?{backgroundColor:t.background,color:t.foreground}:{},l=t&&t.shadowColor?{backgroundColor:t.shadowColor}:{};return Object(Ir.createElement)("li",{className:"editor-block-types-list__list-item"},Object(Ir.createElement)("button",Object(Pr.a)({className:xr()("editor-block-types-list__item",c,{"editor-block-types-list__item-has-children":n}),onClick:function(e){e.preventDefault(),r()},disabled:o,"aria-label":i},a),Object(Ir.createElement)("span",{className:"editor-block-types-list__item-icon",style:s},Object(Ir.createElement)($r,{icon:t,showColors:!0}),n&&Object(Ir.createElement)("span",{className:"editor-block-types-list__item-icon-stack",style:l})),Object(Ir.createElement)("span",{className:"editor-block-types-list__item-title"},i)))};var Ti=function(e){var t=e.items,n=e.onSelect,r=e.onHover,o=void 0===r?function(){}:r,c=e.children;return Object(Ir.createElement)("ul",{role:"list",className:"editor-block-types-list"},t&&t.map((function(e){return Object(Ir.createElement)(wi,{key:e.id,className:Object(i.getBlockMenuDefaultClassName)(e.id),icon:e.icon,hasChildBlocksWithInserterSupport:e.hasChildBlocksWithInserterSupport,onClick:function(){n(e),o(null)},onFocus:function(){return o(e)},onMouseEnter:function(){return o(e)},onMouseLeave:function(){return o(null)},onBlur:function(){return o(null)},isDisabled:e.isDisabled,title:e.title})})),c)};var Pi=Object(Lr.compose)(Object(Lr.ifCondition)((function(e){var t=e.items;return t&&t.length>0})),Object(l.withSelect)((function(e,t){var n=t.rootClientId,r=(0,e("core/blocks").getBlockType)((0,e("core/editor").getBlockName)(n));return{rootBlockTitle:r&&r.title,rootBlockIcon:r&&r.icon}})))((function(e){var t=e.rootBlockIcon,n=e.rootBlockTitle,r=e.items,o=Object(p.a)(e,["rootBlockIcon","rootBlockTitle","items"]);return Object(Ir.createElement)("div",{className:"editor-inserter__child-blocks"},(t||n)&&Object(Ir.createElement)("div",{className:"editor-inserter__parent-block-header"},Object(Ir.createElement)($r,{icon:t,showColors:!0}),n&&Object(Ir.createElement)("h2",null,n)),Object(Ir.createElement)(Ti,Object(Pr.a)({items:r},o)))})),Ii=function(e){var t=e.filterValue;return Object(Ir.createElement)(Hr.Slot,{name:"Inserter.InlineElements",fillProps:{filterValue:t}},(function(e){return!Object(O.isEmpty)(e)&&Object(Ir.createElement)(Hr.PanelBody,{title:Object(_.__)("Inline Elements"),initialOpen:!1,className:"editor-inserter__inline-elements"},Object(Ir.createElement)(Ti,null,e))}))},Bi=function(e){return e.stopPropagation()},xi=function(e,t){var n=Li(t),r=function(e){return-1!==Li(e).indexOf(n)},o=Object(i.getCategories)();return e.filter((function(e){var t=Object(O.find)(o,{slug:e.category});return r(e.title)||Object(O.some)(e.keywords,r)||t&&r(t.title)}))},Li=function(e){return e=(e=(e=(e=Object(O.deburr)(e)).replace(/^\//,"")).toLowerCase()).trim()},Ai=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={childItems:[],filterValue:"",hoveredItem:null,suggestedItems:[],reusableItems:[],itemsPerCategory:{},openPanels:["suggested"]},e.onChangeSearchInput=e.onChangeSearchInput.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onHover=e.onHover.bind(Object(Ur.a)(Object(Ur.a)(e))),e.panels={},e.inserterResults=Object(Ir.createRef)(),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchReusableBlocks(),this.filter()}},{key:"componentDidUpdate",value:function(e){e.items!==this.props.items&&this.filter(this.state.filterValue)}},{key:"onChangeSearchInput",value:function(e){this.filter(e.target.value)}},{key:"onHover",value:function(e){this.setState({hoveredItem:e});var t=this.props,n=t.showInsertionPoint,r=t.hideInsertionPoint;if(e){var o=this.props;n(o.rootClientId,o.index)}else r()}},{key:"bindPanel",value:function(e){var t=this;return function(n){t.panels[e]=n}}},{key:"onTogglePanel",value:function(e){var t=this;return function(){-1!==t.state.openPanels.indexOf(e)?t.setState({openPanels:Object(O.without)(t.state.openPanels,e)}):(t.setState({openPanels:Object(b.a)(t.state.openPanels).concat([e])}),t.props.setTimeout((function(){Ei()(t.panels[e],t.inserterResults.current,{alignWithTop:!0})})))}}},{key:"filter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.debouncedSpeak,r=t.items,o=t.rootChildBlocks,c=xi(r,e),a=Object(O.filter)(c,(function(e){var t=e.name;return Object(O.includes)(o,t)})),s=[];if(!e){var l=this.props.maxSuggestedItems||9;s=Object(O.filter)(r,(function(e){return e.utility>0})).slice(0,l)}var u=Object(O.filter)(c,{category:"reusable"}),d=function(e){return Object(O.findIndex)(Object(i.getCategories)(),(function(t){return t.slug===e.category}))},p=Object(O.flow)((function(e){return Object(O.filter)(e,(function(e){return"reusable"!==e.category}))}),(function(e){return Object(O.sortBy)(e,d)}),(function(e){return Object(O.groupBy)(e,"category")}))(c),b=this.state.openPanels;if(e!==this.state.filterValue)if(e){if(u.length)b=["reusable"];else if(c.length){var f=Object(O.find)(Object(i.getCategories)(),(function(e){var t=e.slug;return p[t]&&p[t].length}));b=[f.slug]}}else b=["suggested"];this.setState({hoveredItem:null,childItems:a,filterValue:e,suggestedItems:s,reusableItems:u,itemsPerCategory:p,openPanels:b});var h=Object.keys(p).reduce((function(e,t){return e+p[t].length}),0),m=Object(_.sprintf)(Object(_._n)("%d result found.","%d results found.",h),h);n(m,"assertive")}},{key:"onKeyDown",value:function(e){Object(O.includes)([jo.LEFT,jo.DOWN,jo.RIGHT,jo.UP,jo.BACKSPACE,jo.ENTER],e.keyCode)&&e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.onSelect,o=t.rootClientId,c=this.state,a=c.childItems,s=c.filterValue,l=c.hoveredItem,u=c.suggestedItems,d=c.reusableItems,p=c.itemsPerCategory,b=c.openPanels,f=function(e){return-1!==b.indexOf(e)},h=!!s;return Object(Ir.createElement)("div",{className:"editor-inserter__menu",onKeyPress:Bi,onKeyDown:this.onKeyDown},Object(Ir.createElement)("label",{htmlFor:"editor-inserter__search-".concat(n),className:"screen-reader-text"},Object(_.__)("Search for a block")),Object(Ir.createElement)("input",{id:"editor-inserter__search-".concat(n),type:"search",placeholder:Object(_.__)("Search for a block"),className:"editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),Object(Ir.createElement)("div",{className:"editor-inserter__results",ref:this.inserterResults,tabIndex:"0",role:"region","aria-label":Object(_.__)("Available block types")},Object(Ir.createElement)(Pi,{rootClientId:o,items:a,onSelect:r,onHover:this.onHover}),!!u.length&&Object(Ir.createElement)(Hr.PanelBody,{title:Object(_._x)("Most Used","blocks"),opened:f("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},Object(Ir.createElement)(Ti,{items:u,onSelect:r,onHover:this.onHover})),Object(Ir.createElement)(Ii,{filterValue:s}),Object(O.map)(Object(i.getCategories)(),(function(t){var n=p[t.slug];return n&&n.length?Object(Ir.createElement)(Hr.PanelBody,{key:t.slug,title:t.title,icon:t.icon,opened:h||f(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},Object(Ir.createElement)(Ti,{items:n,onSelect:r,onHover:e.onHover})):null})),!!d.length&&Object(Ir.createElement)(Hr.PanelBody,{className:"editor-inserter__reusable-blocks-panel",title:Object(_.__)("Reusable"),opened:f("reusable"),onToggle:this.onTogglePanel("reusable"),icon:"controls-repeat",ref:this.bindPanel("reusable")},Object(Ir.createElement)(Ti,{items:d,onSelect:r,onHover:this.onHover}),Object(Ir.createElement)("a",{className:"editor-inserter__manage-reusable-blocks",href:"edit.php?post_type=wp_block"},Object(_.__)("Manage All Reusable Blocks"))),Object(O.isEmpty)(u)&&Object(O.isEmpty)(d)&&Object(O.isEmpty)(p)&&Object(Ir.createElement)("p",{className:"editor-inserter__no-results"},Object(_.__)("No blocks found."))),l&&Object(i.isReusableBlock)(l)&&Object(Ir.createElement)(Ci,{name:l.name,attributes:l.initialAttributes}))}}]),t}(Ir.Component),Ni=Object(Lr.compose)(Object(l.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/editor"),o=r.getEditedPostAttribute,i=r.getSelectedBlock,c=r.getInserterItems,a=r.getBlockName,s=e("core/blocks").getChildBlockNames,l=a(n);return{selectedBlock:i(),rootChildBlocks:s(l),title:o("title"),items:c(n),rootClientId:n}})),Object(l.withDispatch)((function(e,t){var n=e("core/editor");return{fetchReusableBlocks:n.__experimentalFetchReusableBlocks,showInsertionPoint:n.showInsertionPoint,hideInsertionPoint:n.hideInsertionPoint,onSelect:function(n){var r=e("core/editor"),o=r.replaceBlocks,c=r.insertBlock,a=t.selectedBlock,s=t.index,l=t.rootClientId,u=n.name,d=n.initialAttributes,p=Object(i.createBlock)(u,d);a&&Object(i.isUnmodifiedDefaultBlock)(a)?o(a.clientId,p):c(p,s,l),t.onSelect()}}})),Hr.withSpokenMessages,Lr.withInstanceId,Lr.withSafeTimeout)(Ai),Ri=function(e){var t=e.onToggle,n=e.disabled,r=e.isOpen;return Object(Ir.createElement)(Hr.IconButton,{icon:"insert",label:Object(_.__)("Add block"),labelPosition:"bottom",onClick:t,className:"editor-inserter__toggle","aria-haspopup":"true","aria-expanded":r,disabled:n})},Di=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onToggle=e.onToggle.bind(Object(Ur.a)(Object(Ur.a)(e))),e.renderToggle=e.renderToggle.bind(Object(Ur.a)(Object(Ur.a)(e))),e.renderContent=e.renderContent.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,i=r.renderToggle,c=void 0===i?Ri:i;return c({onToggle:t,isOpen:n,disabled:o})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.index;return Object(Ir.createElement)(Ni,{onSelect:t,rootClientId:r,index:o})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.title;return Object(Ir.createElement)(Hr.Dropdown,{className:"editor-inserter",contentClassName:"editor-inserter__popover",position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:n,renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),t}(Ir.Component),Fi=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.rootClientId,r=t.index,o=e("core/editor"),i=o.getEditedPostAttribute,c=o.getBlockInsertionPoint,a=o.hasInserterItems;if(void 0===n&&void 0===r){var s=c();n=s.rootClientId,r=s.index}return{title:i("title"),hasItems:a(n),rootClientId:n,index:r}})),Object(Lr.ifCondition)((function(e){return e.hasItems}))])(Di);var Mi=Object(s.ifViewportMatches)("< small")((function(e){var t=e.clientId;return Object(Ir.createElement)("div",{className:"editor-block-list__block-mobile-toolbar"},Object(Ir.createElement)(Fi,null),Object(Ir.createElement)(Xo,{clientIds:[t]}))})),Ui=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={isInserterFocused:!1},e.onBlurInserter=e.onBlurInserter.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onFocusInserter=e.onFocusInserter.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onFocusInserter",value:function(e){e.stopPropagation(),this.setState({isInserterFocused:!0})}},{key:"onBlurInserter",value:function(){this.setState({isInserterFocused:!1})}},{key:"render",value:function(){var e=this.state.isInserterFocused,t=this.props,n=t.showInsertionPoint,r=t.rootClientId,o=t.insertIndex;return Object(Ir.createElement)("div",{className:"editor-block-list__insertion-point"},n&&Object(Ir.createElement)("div",{className:"editor-block-list__insertion-point-indicator"}),Object(Ir.createElement)("div",{onFocus:this.onFocusInserter,onBlur:this.onBlurInserter,tabIndex:-1,className:xr()("editor-block-list__insertion-point-inserter",{"is-visible":e})},Object(Ir.createElement)(Fi,{rootClientId:r,index:o})))}}]),t}(Ir.Component),Hi=Object(l.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/editor"),i=o.getBlockIndex,c=o.getBlockInsertionPoint,a=o.isBlockInsertionPointVisible,s=i(n,r),l=c();return{showInsertionPoint:a()&&l.index===s&&l.rootClientId===r,insertIndex:s}}))(Ui),Vi=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).proxyEvent=e.proxyEvent.bind(Object(Ur.a)(Object(Ur.a)(e))),e.eventMap={},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"proxyEvent",value:function(e){var t=!!e.nativeEvent._blockHandled;e.nativeEvent._blockHandled=!0;var n=this.eventMap[e.type];t&&(n+="Handled"),this.props[n]&&this.props[n](e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.childHandledEvents,r=void 0===n?[]:n,o=t.forwardedRef,i=Object(p.a)(t,["childHandledEvents","forwardedRef"]),c=Object(O.reduce)(Object(b.a)(r).concat(Object(b.a)(Object.keys(i))),(function(t,n){var r=n.match(/^on([A-Z][a-zA-Z]+?)(Handled)?$/);if(r){!!r[2]&&delete i[n];var o="on"+r[1];t[o]=e.proxyEvent,e.eventMap[r[1].toLowerCase()]=o}return t}),{});return Object(Ir.createElement)("div",Object(Pr.a)({ref:o},i,c))}}]),t}(Ir.Component),Ki=function(e,t){return Object(Ir.createElement)(Vi,Object(Pr.a)({},e,{forwardedRef:t}))};Ki.displayName="IgnoreNestedEvents";var Wi=Object(Ir.forwardRef)(Ki);var zi=Object(Lr.compose)(Object(l.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/editor"),o=r.getInserterItems,i=r.getTemplateLock;return{items:o(n),isLocked:!!i(n)}})),Object(l.withDispatch)((function(e,t){var n=t.clientId,r=t.rootClientId;return{onInsert:function(t){var o=t.name,c=t.initialAttributes,a=Object(i.createBlock)(o,c);n?e("core/editor").replaceBlocks(n,a):e("core/editor").insertBlock(a,void 0,r)}}})))((function(e){var t=e.items,n=e.isLocked,r=e.onInsert;if(n)return null;var o=Object(O.filter)(t,(function(e){return!(e.isDisabled||e.name===Object(i.getDefaultBlockName)()&&Object(O.isEmpty)(e.initialAttributes))})).slice(0,3);return Object(Ir.createElement)("div",{className:"editor-inserter-with-shortcuts"},o.map((function(e){return Object(Ir.createElement)(Hr.IconButton,{key:e.id,className:"editor-inserter-with-shortcuts__block",onClick:function(){return r(e)},label:Object(_.sprintf)(Object(_.__)("Add %s"),e.title),icon:Object(Ir.createElement)($r,{icon:e.icon})})})))})),qi=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={hoverArea:null},e.onMouseLeave=e.onMouseLeave.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onMouseMove=e.onMouseMove.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentWillUnmount",value:function(){this.props.container&&this.toggleListeners(this.props.container,!1)}},{key:"componentDidMount",value:function(){this.props.container&&this.toggleListeners(this.props.container)}},{key:"componentDidUpdate",value:function(e){e.container!==this.props.container&&(e.container&&this.toggleListeners(e.container,!1),this.props.container&&this.toggleListeners(this.props.container,!0))}},{key:"toggleListeners",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t?"addEventListener":"removeEventListener";e[n]("mousemove",this.onMouseMove),e[n]("mouseleave",this.onMouseLeave)}},{key:"onMouseLeave",value:function(){this.state.hoverArea&&this.setState({hoverArea:null})}},{key:"onMouseMove",value:function(e){var t=this.props,n=t.isRTL,r=t.container.getBoundingClientRect(),o=r.width,i=r.left,c=r.right,a=null;e.clientX-i0&&void 0!==arguments[0]?arguments[0]:t.clientId,n=arguments.length>1?arguments[1]:void 0;a(e,n)},onInsertBlocks:function(e,n){var r=t.rootClientId;l(e,n,r)},onInsertDefaultBlockAfter:function(){var e=t.order,n=t.rootClientId;u({},n,e+1)},onRemove:function(e){d(e)},onMerge:function(e){var n=t.clientId,o=r("core/editor"),i=o.getPreviousBlockClientId,c=o.getNextBlockClientId;if(e){var a=c(n);a&&p(n,a)}else{var s=i(n);s&&p(s,n)}},onReplace:function(e){b([t.clientId],e)},onMetaChange:function(e){f({meta:e})},onShiftSelection:function(){t.isSelectionEnabled&&(o()?s(o(),t.clientId):a(t.clientId))},toggleSelection:function(e){h(e)}}})),Zi=Object(Lr.compose)(Object(s.withViewportMatch)({isLargeViewport:"medium"}),Xi,Qi,Object(Hr.withFilters)("editor.BlockListBlock"))($i),Ji=n("rmEH");var ec=Object(Lr.compose)(Object(Lr.withState)({hovered:!1}),Object(l.withSelect)((function(e,t){var n=e("core/editor"),r=n.getBlockCount,o=n.getBlockName,c=n.isBlockValid,a=n.getEditorSettings,s=n.getTemplateLock,l=!r(t.rootClientId),u=o(t.lastBlockClientId)===Object(i.getDefaultBlockName)(),d=c(t.lastBlockClientId),p=a().bodyPlaceholder;return{isVisible:l||!u||!d,showPrompt:l,isLocked:!!s(t.rootClientId),placeholder:p}})),Object(l.withDispatch)((function(e,t){var n=e("core/editor"),r=n.insertDefaultBlock,o=n.startTyping;return{onAppend:function(){var e=t.rootClientId;r(void 0,e),o()}}})))((function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,i=e.placeholder,c=e.rootClientId,a=e.hovered,s=e.setState;if(t||!n)return null;var l=Object(Ji.decodeEntities)(i)||Object(_.__)("Start writing or type / to choose a block");return Object(Ir.createElement)("div",{"data-root-client-id":c||"",className:"wp-block editor-default-block-appender",onMouseEnter:function(){return s({hovered:!0})},onMouseLeave:function(){return s({hovered:!1})}},Object(Ir.createElement)(Jo,{rootClientId:c}),Object(Ir.createElement)(di.a,{role:"button","aria-label":Object(_.__)("Add block"),className:"editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?l:""}),a&&Object(Ir.createElement)(zi,{rootClientId:c}),Object(Ir.createElement)(Fi,{position:"top right"}))}));var tc=Object(l.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/editor"),o=r.getBlockOrder,c=r.canInsertBlockType;return{isLocked:!!(0,r.getTemplateLock)(n),blockClientIds:o(n),canInsertDefaultBlock:c(Object(i.getDefaultBlockName)(),n)}}))((function(e){var t=e.blockClientIds,n=e.rootClientId,r=e.canInsertDefaultBlock;return e.isLocked?null:r?Object(Ir.createElement)(Wi,{childHandledEvents:["onFocus","onClick","onKeyDown"]},Object(Ir.createElement)(ec,{rootClientId:n,lastBlockClientId:Object(O.last)(t)})):Object(Ir.createElement)("div",{className:"block-list-appender"},Object(Ir.createElement)(Fi,{rootClientId:n,renderToggle:function(e){var t=e.onToggle,n=e.disabled,r=e.isOpen;return Object(Ir.createElement)(Hr.Button,{"aria-label":Object(_.__)("Add block"),onClick:t,className:"block-list-appender__toggle","aria-haspopup":"true","aria-expanded":r,disabled:n},Object(Ir.createElement)(Hr.Dashicon,{icon:"insert"}))}}))})),nc=function(e){function t(e){var n;return Object(Nr.a)(this,t),(n=Object(Dr.a)(this,Object(Fr.a)(t).call(this,e))).onSelectionStart=n.onSelectionStart.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onSelectionEnd=n.onSelectionEnd.bind(Object(Ur.a)(Object(Ur.a)(n))),n.setBlockRef=n.setBlockRef.bind(Object(Ur.a)(Object(Ur.a)(n))),n.setLastClientY=n.setLastClientY.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onPointerMove=Object(O.throttle)(n.onPointerMove.bind(Object(Ur.a)(Object(Ur.a)(n))),100),n.onScroll=function(){return n.onPointerMove({clientY:n.lastClientY})},n.lastClientY=0,n.nodes={},n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("mousemove",this.setLastClientY)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("mousemove",this.setLastClientY)}},{key:"setLastClientY",value:function(e){var t=e.clientY;this.lastClientY=t}},{key:"setBlockRef",value:function(e,t){null===e?delete this.nodes[t]:this.nodes=Object(d.a)({},this.nodes,Object(f.a)({},t,e))}},{key:"onPointerMove",value:function(e){var t=e.clientY;this.props.isMultiSelecting||this.props.onStartMultiSelect();var n=Yi(this.selectionAtStart).getBoundingClientRect();if(!(t>=n.top&&t<=n.bottom)){var r=t-n.top,o=Object(O.findLast)(this.coordMapKeys,(function(e){return e0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return!Oc(t,n)||(n.colors||e).length>0}(t,n,e)}))}))((function(e){var t=e.children,n=e.colors,r=e.colorSettings,o=e.disableCustomColors,i=e.title,c=Object(p.a)(e,["children","colors","colorSettings","disableCustomColors","title"]),a=Object(Ir.createElement)("span",{className:"".concat("editor-panel-color-settings","__panel-title")},i,function(e,t){return e.map((function(e,n){var r=e.value,o=e.label,i=e.colors;if(!r)return null;var c=Io(i||t,r),a=c&&c.name,s=Object(_.sprintf)(gc,o.toLowerCase(),a||r);return Object(Ir.createElement)(Hr.ColorIndicator,{key:n,colorValue:r,"aria-label":s})}))}(r,n));return Object(Ir.createElement)(Hr.PanelBody,Object(Pr.a)({className:"editor-panel-color-settings",title:a},c),r.map((function(e,t){return Object(Ir.createElement)(vc,Object(Pr.a)({key:t},Object(d.a)({colors:n,disableCustomColors:o},e)))})),t)})),yc=So(jc);var kc=function(e){var t=e.onChange,n=e.className,r=Object(p.a)(e,["onChange","className"]);return Object(Ir.createElement)(di.a,Object(Pr.a)({className:xr()("editor-plain-text",n),onChange:function(e){return t(e.target.value)}},r))},_c=n("4eJC"),Ec=n.n(_c),Sc=n("xTGt"),Cc=n("NMb1"),wc=n.n(Cc),Tc=Object(l.withSelect)((function(e){return{formatTypes:(0,e("core/rich-text").getFormatTypes)()}}))((function(e){var t=e.formatTypes,n=e.onChange,r=e.value;return Object(Ir.createElement)(Ir.Fragment,null,t.map((function(e){var t=e.name,o=e.edit;if(!o)return null;var i=Object(a.getActiveFormat)(r,t),c=void 0!==i,s=c&&i.attributes||{};return Object(Ir.createElement)(o,{key:t,isActive:c,activeAttributes:s,value:r,onChange:n})})))})),Pc=function(e){var t=e.controls;return Object(Ir.createElement)("div",{className:"editor-format-toolbar"},Object(Ir.createElement)(Hr.Toolbar,null,t.map((function(e){return Object(Ir.createElement)(Hr.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(Ir.createElement)(Hr.Slot,{name:"RichText.ToolbarControls"})))},Ic=n("8++T"),Bc=n.n(Ic),xc=function(e){return Object(O.pickBy)(e,(function(e,t){return n=t,Object(O.startsWith)(n,"aria-")&&!Object(O.isNil)(e);var n}))},Lc=window.getSelection,Ac=window.Node.TEXT_NODE,Nc=window.navigator.userAgent;var Rc=Nc.indexOf("Trident")>=0,Dc=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).call(this))).bindEditorNode=e.bindEditorNode.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onFocus=e.onFocus.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onKeyDown=e.onKeyDown.bind(Object(Ur.a)(Object(Ur.a)(e))),e.initialize=e.initialize.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onFocus",value:function(){this.props.onFocus&&this.props.onFocus(),this.initialize()}},{key:"shouldComponentUpdate",value:function(e){var t=this;this.configureIsPlaceholderVisible(e.isPlaceholderVisible),Object(O.isEqual)(this.props.style,e.style)||(this.editorNode.setAttribute("style",""),Object.assign(this.editorNode.style,e.style)),Object(O.isEqual)(this.props.className,e.className)||(this.editorNode.className=xr()(e.className,"editor-rich-text__tinymce"));var n=function(e,t){var n=Object(O.keys)(xc(e)),r=Object(O.keys)(xc(t));return{removedKeys:Object(O.difference)(n,r),updatedKeys:r.filter((function(n){return!Object(O.isEqual)(e[n],t[n])}))}}(this.props,e),r=n.removedKeys,o=n.updatedKeys;return r.forEach((function(e){return t.editorNode.removeAttribute(e)})),o.forEach((function(n){return t.editorNode.setAttribute(n,e[n])})),!1}},{key:"componentWillUnmount",value:function(){this.editor&&(this.editor.destroy(),delete this.editor)}},{key:"configureIsPlaceholderVisible",value:function(e){var t=String(!!e);this.editorNode.getAttribute("data-is-placeholder-visible")!==t&&this.editorNode.setAttribute("data-is-placeholder-visible",t)}},{key:"initialize",value:function(){var e=this;if(!this.initialize.called){this.initialize.called=!0;var t={theme:!1,inline:!0,toolbar:!1,browser_spellcheck:!0,entity_encoding:"raw",convert_urls:!1,verify_html:!1,inline_boundaries_selector:"a[href],code,b,i,strong,em,del,ins,sup,sub",plugins:[],forced_root_block:this.props.multilineTag||!1,custom_undo_redo_levels:1,lists_indent_on_tab:!1};Bc.a.init(Object(d.a)({},t,{target:this.editorNode,setup:function(t){var n;e.editor=t,t.on("preinit",(function(){n=t.dom.setHTML,t.dom.setHTML=function(){}})),t.on("init",(function(){["z","y"].forEach((function(e){t.shortcuts.remove("meta+".concat(e))})),t.shortcuts.remove("meta+shift+z"),["b","i","u"].forEach((function(e){t.shortcuts.remove("meta+".concat(e))})),[1,2,3,4,5,6,7,8,9].forEach((function(e){t.shortcuts.remove("access+".concat(e))})),t.dom.setHTML=n,Rc&&document.activeElement!==e.editorNode&&document.activeElement.contains(e.editorNode)&&e.editorNode.focus()})),t.on("keydown",e.onKeyDown,!0)}}))}}},{key:"bindEditorNode",value:function(e){this.editorNode=e,this.props.setRef&&this.props.setRef(e),Rc&&(e?this.removeInternetExplorerInputFix=function(e){function t(e){e.stopImmediatePropagation();var t=document.createEvent("Event");t.initEvent("input",!0,!1),t.data=e.data,e.target.dispatchEvent(t)}function n(t){var n=t.target,r=t.keyCode;if((jo.BACKSPACE===r||jo.DELETE===r)&&e.contains(n)){var o=document.createEvent("Event");o.initEvent("input",!0,!1),o.data=null,n.dispatchEvent(o)}}return e.addEventListener("textinput",t),document.addEventListener("keyup",n,!0),function(){e.removeEventListener("textinput",t),document.removeEventListener("keyup",n,!0)}}(e):this.removeInternetExplorerInputFix())}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=t===jo.DELETE||t===jo.BACKSPACE;if(t===jo.ENTER||n&&Object(Vo.isEntirelySelected)(this.editorNode))return e.preventDefault(),!1;if(t===jo.LEFT||t===jo.RIGHT){var r=Lc().focusNode,o=r.nodeType,i=r.nodeValue;if(o===Ac)if(1===i.length&&"\ufeff"===i[0])r[e.keyCode===jo.LEFT?"previousSibling":"nextSibling"]||(e.preventDefault=O.noop)}}},{key:"render",value:function(){var e,t=xc(this.props),n=this.props,r=n.tagName,o=void 0===r?"div":r,i=n.style,c=n.record,a=n.valueToEditableHTML,s=n.className,l=n.isPlaceholderVisible,u=n.onPaste,p=n.onInput,b=n.onKeyDown,h=n.onCompositionEnd,m=n.onBlur;return"table"!==o&&(t.role="textbox",t["aria-multiline"]=!0),Object(Ir.createElement)(o,Object(d.a)({},t,(e={className:xr()(s,"editor-rich-text__tinymce"),contentEditable:!0},Object(f.a)(e,"data-is-placeholder-visible",l),Object(f.a)(e,"ref",this.bindEditorNode),Object(f.a)(e,"style",i),Object(f.a)(e,"suppressContentEditableWarning",!0),Object(f.a)(e,"dangerouslySetInnerHTML",{__html:a(c)}),Object(f.a)(e,"onPaste",u),Object(f.a)(e,"onInput",p),Object(f.a)(e,"onFocus",this.onFocus),Object(f.a)(e,"onBlur",m),Object(f.a)(e,"onKeyDown",b),Object(f.a)(e,"onCompositionEnd",h),e)))}}]),t}(Ir.Component);function Fc(e){var t=e.onReplace,n=e.valueToFormat,r=e.onCreateUndoLevel,o=e.onChange,c=Object(i.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type}));return[function(e){if(!t)return e;var o=Object(a.getSelectionStart)(e),s=Object(a.getTextContent)(e),l=s.slice(o-1,o);if(!/\s/.test(l))return e;var u=s.slice(0,o).trim(),d=Object(i.findTransform)(c,(function(e){var t=e.prefix;return u===t}));if(!d)return e;var p=n(Object(a.slice)(e,o,s.length)),b=d.transform(p);return r(),t([b]),e},function(e){var t=Object(a.getSelectionStart)(e),n=Object(a.getTextContent)(e);if("`"!==n.slice(t-1,t))return e;var r=n.slice(0,t-1).lastIndexOf("`");if(-1===r)return e;var i=r,c=t-2;return i===c?e:(o(e),e=Object(a.remove)(e,i,i+1),e=Object(a.remove)(e,c,c+1),e=Object(a.applyFormat)(e,{type:"code"},i,c))}]}var Mc=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onUse=e.onUse.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onUse",value:function(){return this.props.onUse(),!1}},{key:"render",value:function(){var e=this.props,t=e.character,n=e.type;return Object(Ir.createElement)(Hr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(f.a)({},jo.rawShortcut[n](t),this.onUse)})}}]),t}(Ir.Component),Uc=window.Node,Hc=Uc.TEXT_NODE,Vc=Uc.ELEMENT_NODE;function Kc(){var e=window.getSelection();if(0!==e.rangeCount){var t=e.getRangeAt(0).startContainer;if(t.nodeType===Hc&&(t=t.parentNode),t.nodeType===Vc){var n=t.closest("*[contenteditable]");if(n&&n.contains(t))return t.closest("ol,ul")}}}function Wc(){var e=Kc();return!e||"true"===e.contentEditable}function zc(e,t){var n=Kc();return n?n.nodeName.toLowerCase()===e:e===t}var qc=function(e){var t=e.onTagNameChange,n=e.tagName,r=e.value,o=e.onChange;return Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(Mc,{type:"primary",character:"[",onUse:function(){o(Object(a.outdentListItems)(r))}}),Object(Ir.createElement)(Mc,{type:"primary",character:"]",onUse:function(){o(Object(a.indentListItems)(r,{type:n}))}}),Object(Ir.createElement)(Mc,{type:"primary",character:"m",onUse:function(){o(Object(a.indentListItems)(r,{type:n}))}}),Object(Ir.createElement)(Mc,{type:"primaryShift",character:"m",onUse:function(){o(Object(a.outdentListItems)(r))}}),Object(Ir.createElement)(go,null,Object(Ir.createElement)(Hr.Toolbar,{controls:[{icon:"editor-ul",title:Object(_.__)("Convert to unordered list"),isActive:zc("ul",n),onClick:function(){o(Object(a.changeListType)(r,{type:"ul"})),Wc()&&t("ul")}},{icon:"editor-ol",title:Object(_.__)("Convert to ordered list"),isActive:zc("ol",n),onClick:function(){o(Object(a.changeListType)(r,{type:"ol"})),Wc()&&t("ol")}},{icon:"editor-outdent",title:Object(_.__)("Outdent list item"),onClick:function(){o(Object(a.outdentListItems)(r))}},{icon:"editor-indent",title:Object(_.__)("Indent list item"),onClick:function(){o(Object(a.indentListItems)(r,{type:n}))}}]})))},Gc=[jo.rawShortcut.primary("z"),jo.rawShortcut.primaryShift("z"),jo.rawShortcut.primary("y")],Yc=Object(Ir.createElement)(Hr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(O.fromPairs)(Gc.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),$c=function(){return Yc};function Xc(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,i=Object(p.a)(e,["name","shortcutType","shortcutCharacter"]),c="RichText.ToolbarControls";return n&&(c+=".".concat(n)),r&&o&&(t=jo.displayShortcut[r](o)),Object(Ir.createElement)(Hr.Fill,{name:c},Object(Ir.createElement)(Hr.ToolbarButton,Object(Pr.a)({},i,{shortcut:t})))}var Qc=Object(l.withSelect)((function(e,t){var n=t.name;return{formatType:e("core/rich-text").getFormatType(n)}}))((function(e){return Object(Ir.createElement)(Hr.Fill,{name:"Inserter.InlineElements"},(function(t){var n=t.filterValue,r=e.formatType,o=r.keywords,c=void 0===o?[]:o,a=r.title;return c.push(a,e.title),n&&!function(e,t){return e.some((function(e){return-1!==Li(e).indexOf(Li(t))}))}(c,n)?null:Object(Ir.createElement)(wi,Object(Pr.a)({},e,{icon:Object(i.normalizeIconObject)(e.icon)}))}))})),Zc=window.getSelection,Jc=function(e){function t(e){var n,r=e.value,o=e.onReplace,c=e.multiline;return Object(Nr.a)(this,t),n=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments)),!0!==c&&"p"!==c&&"li"!==c||(n.multilineTag=!0===c?"p":c),"li"===n.multilineTag&&(n.multilineWrapperTags=["ul","ol"]),n.props.onSplit?(n.onSplit=n.props.onSplit,wc()("wp.editor.RichText onSplit prop",{plugin:"Gutenberg",alternative:"wp.editor.RichText unstableOnSplit prop"})):n.props.unstableOnSplit&&(n.onSplit=n.props.unstableOnSplit),n.onFocus=n.onFocus.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onBlur=n.onBlur.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onChange=n.onChange.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onDeleteKeyDown=n.onDeleteKeyDown.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onKeyDown=n.onKeyDown.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onPaste=n.onPaste.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onCreateUndoLevel=n.onCreateUndoLevel.bind(Object(Ur.a)(Object(Ur.a)(n))),n.setFocusedElement=n.setFocusedElement.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onInput=n.onInput.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onCompositionEnd=n.onCompositionEnd.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onSelectionChange=n.onSelectionChange.bind(Object(Ur.a)(Object(Ur.a)(n))),n.getRecord=n.getRecord.bind(Object(Ur.a)(Object(Ur.a)(n))),n.createRecord=n.createRecord.bind(Object(Ur.a)(Object(Ur.a)(n))),n.applyRecord=n.applyRecord.bind(Object(Ur.a)(Object(Ur.a)(n))),n.isEmpty=n.isEmpty.bind(Object(Ur.a)(Object(Ur.a)(n))),n.valueToFormat=n.valueToFormat.bind(Object(Ur.a)(Object(Ur.a)(n))),n.setRef=n.setRef.bind(Object(Ur.a)(Object(Ur.a)(n))),n.valueToEditableHTML=n.valueToEditableHTML.bind(Object(Ur.a)(Object(Ur.a)(n))),n.formatToValue=Ec()(n.formatToValue.bind(Object(Ur.a)(Object(Ur.a)(n))),{size:1}),n.savedContent=r,n.patterns=Fc({onReplace:o,onCreateUndoLevel:n.onCreateUndoLevel,valueToFormat:n.valueToFormat,onChange:n.onChange}),n.enterPatterns=Object(i.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),n.state={},n.usedDeprecatedChildrenSource=Array.isArray(r),n.lastHistoryValue=r,n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentWillUnmount",value:function(){document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"setRef",value:function(e){this.editableRef=e}},{key:"setFocusedElement",value:function(){this.props.setFocusedElement&&this.props.setFocusedElement(this.props.instanceId)}},{key:"getRecord",value:function(){var e=this.formatToValue(this.props.value),t=e.formats,n=e.text,r=this.state;return{formats:t,text:n,start:r.start,end:r.end}}},{key:"createRecord",value:function(){var e=Zc().getRangeAt(0);return Object(a.create)({element:this.editableRef,range:e,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags,removeNode:function(e){return"all"===e.getAttribute("data-mce-bogus")},unwrapNode:function(e){return!!e.getAttribute("data-mce-bogus")},removeAttribute:function(e){return 0===e.indexOf("data-mce-")},filterString:function(e){return e.replace("\ufeff","")},prepareEditableTree:this.props.prepareEditableTree})}},{key:"applyRecord",value:function(e){Object(a.apply)({value:e,current:this.editableRef,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags,createLinePadding:function(e){var t=e.createElement("br");return t.setAttribute("data-mce-bogus","1"),t},prepareEditableTree:this.props.prepareEditableTree})}},{key:"isEmpty",value:function(){return Object(a.isEmpty)(this.formatToValue(this.props.value))}},{key:"onPaste",value:function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(O.isNil)(n)?[]:n,r=Object(O.isNil)(r)?[]:r;var o="",c="";try{o=t.getData("text/plain"),c=t.getData("text/html")}catch(e){try{c=t.getData("Text")}catch(e){return}}e.preventDefault(),window.console.log("Received HTML:\n\n",c),window.console.log("Received plain text:\n\n",o);var s=Object(O.find)(Object(b.a)(n).concat(Object(b.a)(r)),(function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}));if(s&&!c){var l=s.getAsFile?s.getAsFile():s,u=Object(i.pasteHandler)({HTML:''),mode:"BLOCKS",tagName:this.props.tagName}),d=this.props.onReplace&&this.isEmpty();return window.console.log("Received item:\n\n",l),void(d?this.props.onReplace(u):this.onSplit&&this.splitContent(u))}var p=this.getRecord();if(!Object(a.isCollapsed)(p)){var f=(c||o).replace(/<[^>]+>/g,"").trim();if(Object(g.isURL)(f))return this.onChange(Object(a.applyFormat)(p,{type:"a",attributes:{href:Object(Ji.decodeEntities)(f)}})),void window.console.log("Created link:\n\n",f)}var h=this.props.onReplace&&this.isEmpty(),m="INLINE";h?m="BLOCKS":this.onSplit&&(m="AUTO");var v=Object(i.pasteHandler)({HTML:c,plainText:o,mode:m,tagName:this.props.tagName,canUserUseUnfilteredHTML:this.props.canUserUseUnfilteredHTML});if("string"==typeof v){var j=Object(a.create)({html:v});this.onChange(Object(a.insert)(p,j))}else if(this.onSplit){if(!v.length)return;h?this.props.onReplace(v):this.splitContent(v,{paste:!0})}}},{key:"onFocus",value:function(){var e=this.props.unstableOnFocus;e&&e(),document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"onBlur",value:function(){document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"onInput",value:function(e){if(!e.nativeEvent.isComposing){var t=this.createRecord(),n=this.patterns.reduce((function(e,t){return t(e)}),t);this.onChange(n,{withoutHistory:!0}),this.props.clearTimeout(this.onInput.timeout),this.onInput.timeout=this.props.setTimeout(this.onCreateUndoLevel,1e3)}}},{key:"onCompositionEnd",value:function(){this.onChange(this.createRecord())}},{key:"onSelectionChange",value:function(){var e=this.createRecord(),t=e.start,n=e.end,r=e.formats;if(t!==this.state.start||n!==this.state.end){var o=this.props.isCaretWithinFormattedText;!o&&r[t]?this.props.onEnterFormattedText():o&&!r[t]&&this.props.onExitFormattedText(),this.setState({start:t,end:n})}}},{key:"onChangeEditableValue",value:function(e){var t=e.formats,n=e.text;Object(O.get)(this.props,["onChangeEditableValue"],[]).forEach((function(e){e(t,n)}))}},{key:"onChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.withoutHistory;this.applyRecord(e);var r=e.start,o=e.end;this.onChangeEditableValue(e),this.savedContent=this.valueToFormat(e),this.props.onChange(this.savedContent),this.setState({start:r,end:o}),n||this.onCreateUndoLevel()}},{key:"onCreateUndoLevel",value:function(){this.lastHistoryValue!==this.savedContent&&(this.props.onCreateUndoLevel(),this.lastHistoryValue=this.savedContent)}},{key:"onDeleteKeyDown",value:function(e){var t=this.props,n=t.onMerge,r=t.onRemove;if(n||r){var o=e.keyCode===jo.BACKSPACE;if(Object(a.isCollapsed)(this.createRecord())){var i=this.isEmpty();(i||Object(Vo.isHorizontalEdge)(this.editableRef,o))&&(n&&n(!o),r&&i&&o&&r(!o),e.preventDefault())}}}},{key:"onKeyDown",value:function(e){var t=e.keyCode;if(t===jo.DELETE||t===jo.BACKSPACE){var n,r=this.createRecord(),o=Object(a.getSelectionStart)(r),c=Object(a.getSelectionEnd)(r);if(0===o&&0!==c&&c===r.text.length)return this.onChange(Object(a.remove)(r)),void e.preventDefault();if(this.multilineTag)t===jo.BACKSPACE?Object(a.charAt)(r,o-1)===a.LINE_SEPARATOR&&(n=Object(a.remove)(r,Object(a.isCollapsed)(r)?o-1:o,c)):Object(a.charAt)(r,c)===a.LINE_SEPARATOR&&(n=Object(a.remove)(r,o,Object(a.isCollapsed)(r)?c+1:c)),n&&(this.onChange(n),e.preventDefault());this.onDeleteKeyDown(e)}else if(t===jo.ENTER){e.preventDefault();var s=this.createRecord();if(this.props.onReplace){var l=Object(a.getTextContent)(s),u=Object(i.findTransform)(this.enterPatterns,(function(e){return e.regExp.test(l)}));if(u)return void this.props.onReplace([u.transform({content:l})])}if(this.multilineTag)this.onSplit&&Object(a.isEmptyLine)(s)?this.onSplit.apply(this,Object(b.a)(Object(a.split)(s).map(this.valueToFormat))):this.onChange(Object(a.insertLineSeparator)(s));else if(e.shiftKey||!this.onSplit){var d=Object(a.getTextContent)(s),p=d.length,f="\n";s.end!==p||"\n"===d.charAt(p-1)&&0!==p||(f="\n\n"),this.onChange(Object(a.insert)(s,f))}else this.splitContent()}}},{key:"splitContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.onSplit){var n=this.createRecord(),r=Object(a.split)(n),o=Object(u.a)(r,2),i=o[0],c=o[1];Object(a.isEmpty)(c)?i=n:Object(a.isEmpty)(i)&&(c=n),t.paste&&(i=Object(a.isEmpty)(i)?null:i,c=Object(a.isEmpty)(c)?null:c),i&&(i=this.valueToFormat(i)),c&&(c=this.valueToFormat(c)),this.onSplit.apply(this,[i,c].concat(Object(b.a)(e)))}}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,r=n.tagName,o=n.value,i=n.isSelected;if(r===e.tagName&&o!==e.value&&o!==this.savedContent){if(Array.isArray(o)&&Object(O.isEqual)(o,this.savedContent))return;var c=this.formatToValue(o);if(i){var s=this.formatToValue(e.value),l=Object(a.getTextContent)(s).length;c.start=l,c.end=l}this.applyRecord(c),this.savedContent=o}if(Object.keys(this.props).some((function(n){return 0===n.indexOf("format_")&&(Object(O.isPlainObject)(t.props[n])?Object.keys(t.props[n]).some((function(r){return t.props[n][r]!==e[n][r]})):t.props[n]!==e[n])}))){var u=this.formatToValue(o);i&&(u.start=this.state.start,u.end=this.state.end),this.applyRecord(u)}}},{key:"getFormatProps",value:function(){return Object(O.pickBy)(this.props,(function(e,t){return t.startsWith("format_")}))}},{key:"formatToValue",value:function(e){return Array.isArray(e)?Object(a.create)({html:i.children.toHTML(e),multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags}):"string"===this.props.format?Object(a.create)({html:e,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags}):null===e?Object(a.create)():e}},{key:"valueToEditableHTML",value:function(e){return Object(a.unstableToDom)({value:e,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags,createLinePadding:function(e){var t=e.createElement("br");return t.setAttribute("data-mce-bogus","1"),t},prepareEditableTree:this.props.prepareEditableTree}).body.innerHTML}},{key:"removeEditorOnlyFormats",value:function(e){return this.props.formatTypes.forEach((function(t){t.__experimentalCreatePrepareEditableTree&&(e=Object(a.removeFormat)(e,t.name,0,e.text.length))})),e}},{key:"valueToFormat",value:function(e){return e=this.removeEditorOnlyFormats(e),this.usedDeprecatedChildrenSource?i.children.fromDOM(Object(a.unstableToDom)({value:e,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags}).body.childNodes):"string"===this.props.format?Object(a.toHTMLString)({value:e,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags}):e}},{key:"render",value:function(){var e=this,t=this.props,n=t.tagName,r=void 0===n?"div":n,o=t.style,i=t.wrapperClassName,c=t.className,a=t.inlineToolbar,s=void 0!==a&&a,l=t.formattingControls,u=t.placeholder,d=t.keepPlaceholderOnFocus,p=void 0!==d&&d,b=t.isSelected,f=t.autocompleters,h=t.onTagNameChange,m=this.multilineTag,v=xc(this.props),O=["editor",r].join(),g=u&&(!b||p)&&this.isEmpty(),j=xr()(i,"editor-rich-text"),y=this.getRecord();return Object(Ir.createElement)("div",{className:j,onFocus:this.setFocusedElement},b&&"li"===this.multilineTag&&Object(Ir.createElement)(qc,{onTagNameChange:h,tagName:r,value:y,onChange:this.onChange}),b&&!s&&Object(Ir.createElement)(go,null,Object(Ir.createElement)(Pc,{controls:l})),b&&s&&Object(Ir.createElement)(Hr.IsolatedEventContainer,{className:"editor-rich-text__inline-toolbar"},Object(Ir.createElement)(Pc,{controls:l})),Object(Ir.createElement)(Yr,{onReplace:this.props.onReplace,completers:f,record:y,onChange:this.onChange},(function(t){var n=t.listBoxId,i=t.activeId;return Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(Dc,Object(Pr.a)({tagName:r,style:o,record:y,valueToEditableHTML:e.valueToEditableHTML,isPlaceholderVisible:g,"aria-label":u,"aria-autocomplete":"list","aria-owns":n,"aria-activedescendant":i},v,{className:c,key:O,onPaste:e.onPaste,onInput:e.onInput,onCompositionEnd:e.onCompositionEnd,onKeyDown:e.onKeyDown,onFocus:e.onFocus,onBlur:e.onBlur,multilineTag:e.multilineTag,multilineWrapperTags:e.multilineWrapperTags,setRef:e.setRef})),g&&Object(Ir.createElement)(r,{className:xr()("editor-rich-text__tinymce",c),style:o},m?Object(Ir.createElement)(m,null,u):u),b&&Object(Ir.createElement)(Tc,{value:y,onChange:e.onChange}))})),b&&Object(Ir.createElement)($c,null))}}]),t}(Ir.Component);Jc.defaultProps={formattingControls:["bold","italic","link","strikethrough"],format:"string",value:""};var ea=Object(Lr.compose)([Lr.withInstanceId,zr((function(e,t){return!1===t.isSelected?{clientId:e.clientId}:!0===t.isSelected?{isSelected:e.isSelected,clientId:e.clientId}:{isSelected:e.isSelected&&e.focusedElement===t.instanceId,setFocusedElement:e.setFocusedElement,clientId:e.clientId}})),Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.canUserUseUnfilteredHTML,r=t.isCaretWithinFormattedText,o=e("core/rich-text").getFormatTypes;return{canUserUseUnfilteredHTML:n(),isCaretWithinFormattedText:r(),formatTypes:o()}})),Object(l.withDispatch)((function(e){var t=e("core/editor");return{onCreateUndoLevel:t.createUndoLevel,onRedo:t.redo,onUndo:t.undo,onEnterFormattedText:t.enterFormattedText,onExitFormattedText:t.exitFormattedText}})),Lr.withSafeTimeout,Object(Hr.withFilters)("experimentalRichText")])(Jc);ea.Content=function(e){var t,n=e.value,r=e.tagName,o=e.multiline,c=Object(p.a)(e,["value","tagName","multiline"]),a=n;!0!==o&&"p"!==o&&"li"!==o||(t=!0===o?"p":o),Array.isArray(n)&&(a=i.children.toHTML(n)),!a&&t&&(a="<".concat(t,">"));var s=Object(Ir.createElement)(Ir.RawHTML,null,a);return r?Object(Ir.createElement)(r,Object(O.omit)(c,["format"]),s):s},ea.isEmpty=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Array.isArray(e)&&!e||0===e.length},ea.Content.defaultProps={format:"string",value:""};var ta=ea,na=function(e){var t=e.urlQueryArgs,n=void 0===t?{}:t,r=Object(p.a)(e,["urlQueryArgs"]),o=Object(l.select)("core/editor").getCurrentPostId;return n=Object(d.a)({post_id:o()},n),Object(Ir.createElement)(Hr.ServerSideRender,Object(Pr.a)({urlQueryArgs:n},r))},ra=Object(Hr.withFilters)("editor.MediaUpload")((function(){return null})),oa=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(Ur.a)(Object(Ur.a)(e))),e.state={isSettingsExpanded:!1},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.renderSettings,r=e.onClose,o=e.onClickOutside,i=e.position,c=void 0===i?"bottom center":i,a=e.focusOnMount,s=void 0===a?"firstElement":a,l=this.state.isSettingsExpanded,u=!!n&&l;return Object(Ir.createElement)(Hr.Popover,{className:"editor-url-popover",focusOnMount:s,position:c,onClose:r,onClickOutside:o},Object(Ir.createElement)("div",{className:"editor-url-popover__row"},t,!!n&&Object(Ir.createElement)(Hr.IconButton,{className:"editor-url-popover__settings-toggle",icon:"ellipsis",label:Object(_.__)("Link Settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":l})),u&&Object(Ir.createElement)("div",{className:"editor-url-popover__row editor-url-popover__settings"},n()))}}]),t}(Ir.Component);function ia(e){return e?Object(O.flatMap)(e,(function(e,t){var n=e.split("/"),r=Object(u.a)(n,1)[0],o=t.split("|");return[e].concat(Object(b.a)(Object(O.map)(o,(function(e){return"".concat(r,"/").concat(e)}))))})):e}function ca(){return(ca=Object(fr.a)(regeneratorRuntime.mark((function e(t){var n,r,o,i,c,a,s,l,u,p,f,h,m,v,g,j,y,k,E,S,C,w,T,P,I,B,x,L,A;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.allowedTypes,r=t.additionalData,o=void 0===r?{}:r,i=t.filesList,c=t.maxUploadFileSize,a=t.onError,s=void 0===a?O.noop:a,l=t.onFileChange,u=t.wpAllowedMimeTypes,p=void 0===u?null:u,f=Object(b.a)(i),h=[],m=function(e,t){Object(Sc.revokeBlobURL)(Object(O.get)(h,[e,"url"])),h[e]=t,l(Object(O.compact)(h))},v=function(e){return!n||Object(O.some)(n,(function(t){return Object(O.includes)(t,"/")?t===e:Object(O.startsWith)(e,"".concat(t,"/"))}))},g=ia(p),j=function(e){return Object(O.includes)(g,e)},y=function(e){e.message=[Object(Ir.createElement)("strong",{key:"filename"},e.file.name),": ",e.message],s(e)},k=[],E=!0,S=!1,C=void 0,e.prev=12,w=f[Symbol.iterator]();case 14:if(E=(T=w.next()).done){e.next=34;break}if(P=T.value,!g||j(P.type)){e.next=19;break}return y({code:"MIME_TYPE_NOT_ALLOWED_FOR_USER",message:Object(_.__)("Sorry, this file type is not permitted for security reasons."),file:P}),e.abrupt("continue",31);case 19:if(v(P.type)){e.next=22;break}return y({code:"MIME_TYPE_NOT_SUPPORTED",message:Object(_.__)("Sorry, this file type is not supported here."),file:P}),e.abrupt("continue",31);case 22:if(!(c&&P.size>c)){e.next=25;break}return y({code:"SIZE_ABOVE_LIMIT",message:Object(_.__)("This file exceeds the maximum upload size for this site."),file:P}),e.abrupt("continue",31);case 25:if(!(P.size<=0)){e.next=28;break}return y({code:"EMPTY_FILE",message:Object(_.__)("This file is empty."),file:P}),e.abrupt("continue",31);case 28:k.push(P),h.push({url:Object(Sc.createBlobURL)(P)}),l(h);case 31:E=!0,e.next=14;break;case 34:e.next=40;break;case 36:e.prev=36,e.t0=e.catch(12),S=!0,C=e.t0;case 40:e.prev=40,e.prev=41,E||null==w.return||w.return();case 43:if(e.prev=43,!S){e.next=46;break}throw C;case 46:return e.finish(43);case 47:return e.finish(40);case 48:I=0;case 49:if(!(I0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(O.flatMap)(t,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?Object(d.a)({},t,{path:n,level:t.attributes.level,isEmpty:Ca(t)}):e(t.innerBlocks,Object(b.a)(n).concat([t]))}))}(n);if(c.length<1)return null;var s=1,l=i&&r,u=Object(O.countBy)(c,"level")[1]>1;return Object(Ir.createElement)("div",{className:"document-outline"},Object(Ir.createElement)("ul",null,l&&Object(Ir.createElement)(ya,{level:Object(_.__)("Title"),isValid:!0,onClick:function(){var e=document.querySelector(".editor-post-title__input");e&&e.focus()}},r),c.map((function(e,t){var n=e.level>s+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(u||l));return s=e.level,Object(Ir.createElement)(ya,{key:t,level:"H".concat(e.level),isValid:r,onClick:function(){return t=e.clientId,o(t);var t},path:e.path},e.isEmpty?ka:Object(a.getTextContent)(Object(a.create)({html:e.attributes.content})),n&&_a,1===e.level&&u&&Sa,l&&1===e.level&&!u&&Ea)}))))}));var Ta=Object(l.withSelect)((function(e){return{blocks:e("core/editor").getBlocks()}}))((function(e){var t=e.blocks,n=e.children;return Object(O.filter)(t,(function(e){return"core/heading"===e.name})).length<1?null:n}));var Pa=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=e("core/editor"),r=n.getBlocksByClientId,o=n.getBlockIndex,c=n.getTemplateLock,a=n.getBlockRootClientId,s=r(t.clientIds),l=Object(O.every)(s,(function(e){return!!e&&Object(i.hasBlockSupport)(e.name,"multiple",!0)})),u=a(t.clientIds[0]);return{firstSelectedIndex:o(Object(O.first)(Object(O.castArray)(t.clientIds)),u),lastSelectedIndex:o(Object(O.last)(Object(O.castArray)(t.clientIds)),u),isLocked:!!c(u),blocks:s,canDuplicate:l,rootClientId:u,extraProps:t}})),Object(l.withDispatch)((function(e,t){var n=t.clientIds,r=t.rootClientId,o=t.blocks,c=t.firstSelectedIndex,a=t.lastSelectedIndex,s=t.isLocked,l=t.canDuplicate,u=e("core/editor"),d=u.insertBlocks,p=u.multiSelect,b=u.removeBlocks,f=u.insertDefaultBlock;return{onDuplicate:function(){if(!s&&l){var e=o.map((function(e){return Object(i.cloneBlock)(e)}));d(e,a+1,r),e.length>1&&p(Object(O.first)(e).clientId,Object(O.last)(e).clientId)}},onRemove:function(){s||b(n)},onInsertBefore:function(){s||f({},r,c)},onInsertAfter:function(){s||f({},r,a+1)}}}))])((function(e){var t=e.onDuplicate,n=e.onRemove,r=e.onInsertBefore,o=e.onInsertAfter,i=e.isLocked,c=e.canDuplicate;return(0,e.children)({onDuplicate:t,onRemove:n,onInsertAfter:o,onInsertBefore:r,isLocked:i,canDuplicate:c})})),Ia=function(e){return e.preventDefault(),e},Ba={duplicate:{raw:jo.rawShortcut.primaryShift("d"),display:jo.displayShortcut.primaryShift("d")},removeBlock:{raw:jo.rawShortcut.access("z"),display:jo.displayShortcut.access("z")},insertBefore:{raw:jo.rawShortcut.primaryAlt("t"),display:jo.displayShortcut.primaryAlt("t")},insertAfter:{raw:jo.rawShortcut.primaryAlt("y"),display:jo.displayShortcut.primaryAlt("y")}},xa=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).selectAll=e.selectAll.bind(Object(Ur.a)(Object(Ur.a)(e))),e.undoOrRedo=e.undoOrRedo.bind(Object(Ur.a)(Object(Ur.a)(e))),e.save=e.save.bind(Object(Ur.a)(Object(Ur.a)(e))),e.deleteSelectedBlocks=e.deleteSelectedBlocks.bind(Object(Ur.a)(Object(Ur.a)(e))),e.clearMultiSelection=e.clearMultiSelection.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"selectAll",value:function(e){var t=this.props,n=t.rootBlocksClientIds,r=t.onMultiSelect;e.preventDefault(),r(Object(O.first)(n),Object(O.last)(n))}},{key:"undoOrRedo",value:function(e){var t=this.props,n=t.onRedo,r=t.onUndo;e.shiftKey?n():r(),e.preventDefault()}},{key:"save",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"deleteSelectedBlocks",value:function(e){var t=this.props,n=t.selectedBlockClientIds,r=t.hasMultiSelection,o=t.onRemove,i=t.isLocked;r&&(e.preventDefault(),i||o(n))}},{key:"clearMultiSelection",value:function(){var e=this.props,t=e.hasMultiSelection,n=e.clearSelectedBlock;t&&(n(),window.getSelection().removeAllRanges())}},{key:"render",value:function(){var e,t=this.props.selectedBlockClientIds;return Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(Hr.KeyboardShortcuts,{shortcuts:(e={},Object(f.a)(e,jo.rawShortcut.primary("a"),this.selectAll),Object(f.a)(e,jo.rawShortcut.primary("z"),this.undoOrRedo),Object(f.a)(e,jo.rawShortcut.primaryShift("z"),this.undoOrRedo),Object(f.a)(e,"backspace",this.deleteSelectedBlocks),Object(f.a)(e,"del",this.deleteSelectedBlocks),Object(f.a)(e,"escape",this.clearMultiSelection),e)}),Object(Ir.createElement)(Hr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(f.a)({},jo.rawShortcut.primary("s"),this.save)}),t.length>0&&Object(Ir.createElement)(Pa,{clientIds:t},(function(e){var t,n=e.onDuplicate,r=e.onRemove,o=e.onInsertAfter,i=e.onInsertBefore;return Object(Ir.createElement)(Hr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(t={},Object(f.a)(t,Ba.duplicate.raw,Object(O.flow)(Ia,n)),Object(f.a)(t,Ba.removeBlock.raw,Object(O.flow)(Ia,r)),Object(f.a)(t,Ba.insertBefore.raw,Object(O.flow)(Ia,i)),Object(f.a)(t,Ba.insertAfter.raw,Object(O.flow)(Ia,o)),t)})})))}}]),t}(Ir.Component),La=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getBlockOrder,r=t.getMultiSelectedBlockClientIds,o=t.hasMultiSelection,i=t.isEditedPostDirty,c=t.getBlockRootClientId,a=t.getTemplateLock,s=(0,t.getSelectedBlockClientId)(),l=s?[s]:r();return{rootBlocksClientIds:n(),hasMultiSelection:o(),isLocked:Object(O.some)(l,(function(e){return!!a(c(e))})),isDirty:i(),selectedBlockClientIds:l}})),Object(l.withDispatch)((function(e,t){var n=e("core/editor"),r=n.clearSelectedBlock,o=n.multiSelect,i=n.redo,c=n.undo,a=n.removeBlocks,s=n.savePost;return{onSave:function(){t.isDirty&&s()},clearSelectedBlock:r,onMultiSelect:o,onRedo:i,onUndo:c,onRemove:a}}))])(xa);var Aa=Object(Lr.compose)([Object(l.withSelect)((function(e){return{hasRedo:e("core/editor").hasEditorRedo()}})),Object(l.withDispatch)((function(e){return{redo:e("core/editor").redo}}))])((function(e){var t=e.hasRedo,n=e.redo;return Object(Ir.createElement)(Hr.IconButton,{icon:"redo",label:Object(_.__)("Redo"),shortcut:jo.displayShortcut.primaryShift("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__redo"})}));var Na=Object(Lr.compose)([Object(l.withSelect)((function(e){return{hasUndo:e("core/editor").hasEditorUndo()}})),Object(l.withDispatch)((function(e){return{undo:e("core/editor").undo}}))])((function(e){var t=e.hasUndo,n=e.undo;return Object(Ir.createElement)(Hr.IconButton,{icon:"undo",label:Object(_.__)("Undo"),shortcut:jo.displayShortcut.primary("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__undo"})}));var Ra=Object(Lr.compose)([Object(l.withSelect)((function(e){return{isValid:e("core/editor").isValidTemplate()}})),Object(l.withDispatch)((function(e){var t=e("core/editor"),n=t.setTemplateValidity;return{resetTemplateValidity:function(){return n(!0)},synchronizeTemplate:t.synchronizeTemplate}}))])((function(e){var t=e.isValid,n=Object(p.a)(e,["isValid"]);return t?null:Object(Ir.createElement)(Hr.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning"},Object(Ir.createElement)("p",null,Object(_.__)("The content of your post doesn’t match the template assigned to your post type.")),Object(Ir.createElement)("div",null,Object(Ir.createElement)(Hr.Button,{isDefault:!0,onClick:n.resetTemplateValidity},Object(_.__)("Keep it as is")),Object(Ir.createElement)(Hr.Button,{onClick:function(){window.confirm(Object(_.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0},Object(_.__)("Reset the template"))))}));var Da=Object(Lr.compose)([Object(l.withSelect)((function(e){return{notices:e("core/notices").getNotices()}})),Object(l.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice}}))])((function(e){return Object(Ir.createElement)(Hr.NoticeList,e,Object(Ir.createElement)(Ra,null))}));var Fa=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditorSettings,o=e("core").getPostType,i=r().availableTemplates;return{postType:o(n("type")),availableTemplates:i}}))((function(e){var t=e.availableTemplates,n=e.postType,r=e.children;return!Object(O.get)(n,["supports","page-attributes"],!1)&&Object(O.isEmpty)(t)?null:r}));var Ma=Object(l.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute;return{postType:(0,e("core").getPostType)(t("type"))}}))((function(e){var t=e.postType,n=e.children,r=e.supportKeys,o=!0;return t&&(o=Object(O.some)(Object(O.castArray)(r),(function(e){return!!t.supports[e]}))),o?n:null})),Ua=Object(Lr.withState)({orderInput:null})((function(e){var t=e.onUpdateOrder,n=e.order,r=void 0===n?0:n,o=e.orderInput,i=e.setState,c=null===o?r:o;return Object(Ir.createElement)(Hr.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(_.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(O.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})}));var Ha=Object(Lr.compose)([Object(l.withSelect)((function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}})),Object(l.withDispatch)((function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}))])((function(e){return Object(Ir.createElement)(Ma,{supportKeys:"page-attributes"},Object(Ir.createElement)(Ua,e))}));function Va(e){var t=Object(O.groupBy)(e,"parent");return function e(n){return n.map((function(n){var r=t[n.id];return Object(d.a)({},n,{children:r&&r.length?e(r):[]})}))}(t[0]||[])}var Ka=Object(l.withSelect)((function(e){var t=e("core"),n=t.getPostType,r=t.getEntityRecords,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,a=c("type"),s=n(a),l=i(),u=Object(O.get)(s,["hierarchical"],!1),d={per_page:-1,exclude:l,parent_exclude:l,orderby:"menu_order",order:"asc"};return{parent:c("parent"),items:u?r("postType",a,d):[],postType:s}})),Wa=Object(l.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateParent:function(e){t({parent:e||0})}}})),za=Object(Lr.compose)([Ka,Wa])((function(e){var t=e.parent,n=e.postType,r=e.items,o=e.onUpdateParent,i=Object(O.get)(n,["hierarchical"],!1),c=Object(O.get)(n,["labels","parent_item_colon"]),a=r||[];if(!i||!c||!a.length)return null;var s=Va(a.map((function(e){return{id:e.id,parent:e.parent,name:e.title.raw?e.title.raw:"#".concat(e.id," (").concat(Object(_.__)("no title"),")")}})));return Object(Ir.createElement)(Hr.TreeSelect,{label:c,noOptionLabel:"(".concat(Object(_.__)("no parent"),")"),tree:s,selectedId:t,onChange:o})}));var qa=Object(Lr.compose)(Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}})),Object(l.withDispatch)((function(e){return{onUpdate:function(t){e("core/editor").editPost({template:t||""})}}})))((function(e){var t=e.availableTemplates,n=e.selectedTemplate,r=e.onUpdate;return Object(O.isEmpty)(t)?null:Object(Ir.createElement)(Hr.SelectControl,{label:Object(_.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(O.map)(t,(function(e,t){return{value:t,label:e}}))})}));var Ga=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(O.get)(t,["_links","wp:action-assign-author"],!1),postType:e("core/editor").getCurrentPostType(),authors:e("core").getAuthors()}})),Lr.withInstanceId])((function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||n.length<2?null:Object(Ir.createElement)(Ma,{supportKeys:"author"},r)})),Ya=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).setAuthorId=e.setAuthorId.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"setAuthorId",value:function(e){var t=this.props.onUpdateAuthor,n=e.target.value;t(Number(n))}},{key:"render",value:function(){var e=this.props,t=e.postAuthor,n=e.instanceId,r=e.authors,o="post-author-selector-"+n;return Object(Ir.createElement)(Ga,null,Object(Ir.createElement)("label",{htmlFor:o},Object(_.__)("Author")),Object(Ir.createElement)("select",{id:o,value:t,onChange:this.setAuthorId,className:"editor-post-author__select"},r.map((function(e){return Object(Ir.createElement)("option",{key:e.id,value:e.id},e.name)}))))}}]),t}(Ir.Component),$a=Object(Lr.compose)([Object(l.withSelect)((function(e){return{postAuthor:e("core/editor").getEditedPostAttribute("author"),authors:e("core").getAuthors()}})),Object(l.withDispatch)((function(e){return{onUpdateAuthor:function(t){e("core/editor").editPost({author:t})}}})),Lr.withInstanceId])(Ya);var Xa=Object(Lr.compose)([Object(l.withSelect)((function(e){return{commentStatus:e("core/editor").getEditedPostAttribute("comment_status")}})),Object(l.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.commentStatus,n=void 0===t?"open":t,r=Object(p.a)(e,["commentStatus"]);return Object(Ir.createElement)(Hr.CheckboxControl,{label:Object(_.__)("Allow Comments"),checked:"open"===n,onChange:function(){return r.editPost({comment_status:"open"===n?"closed":"open"})}})}));var Qa=Object(Lr.compose)([Object(l.withSelect)((function(e){return{excerpt:e("core/editor").getEditedPostAttribute("excerpt")}})),Object(l.withDispatch)((function(e){return{onUpdateExcerpt:function(t){e("core/editor").editPost({excerpt:t})}}}))])((function(e){var t=e.excerpt,n=e.onUpdateExcerpt;return Object(Ir.createElement)("div",{className:"editor-post-excerpt"},Object(Ir.createElement)(Hr.TextareaControl,{label:Object(_.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(e){return n(e)},value:t}),Object(Ir.createElement)(Hr.ExternalLink,{href:"https://codex.wordpress.org/Excerpt"},Object(_.__)("Learn more about manual excerpts")))}));var Za=function(e){return Object(Ir.createElement)(Ma,Object(Pr.a)({},e,{supportKeys:"excerpt"}))};var Ja=Object(l.withSelect)((function(e){var t=e("core").getThemeSupports;return{postType:(0,e("core/editor").getEditedPostAttribute)("type"),themeSupports:t()}}))((function(e){var t=e.themeSupports,n=e.children,r=e.postType,o=e.supportKeys;return Object(O.some)(Object(O.castArray)(o),(function(e){var n=Object(O.get)(t,[e],!1);return"post-thumbnails"===e&&Object(O.isArray)(n)?Object(O.includes)(n,r):n}))?n:null}));var es=function(e){return Object(Ir.createElement)(Ja,{supportKeys:"post-thumbnails"},Object(Ir.createElement)(Ma,Object(Pr.a)({},e,{supportKeys:"thumbnail"})))},ts=["image"],ns=Object(_.__)("Featured Image"),rs=Object(_.__)("Set featured image"),os=Object(_.__)("Remove image");var is=Object(l.withSelect)((function(e){var t=e("core"),n=t.getMedia,r=t.getPostType,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,a=c("featured_media");return{media:a?n(a):null,currentPostId:i(),postType:r(c("type")),featuredImageId:a}})),cs=Object(l.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateImage:function(e){t({featured_media:e.id})},onRemoveImage:function(){t({featured_media:0})}}})),as=Object(Lr.compose)(is,cs,Object(Hr.withFilters)("editor.PostFeaturedImage"))((function(e){var t,n,r,o=e.currentPostId,i=e.featuredImageId,c=e.onUpdateImage,a=e.onRemoveImage,s=e.media,l=e.postType,u=Object(O.get)(l,["labels"],{}),d=Object(Ir.createElement)("p",null,Object(_.__)("To edit the featured image, you need permission to upload media."));if(s){var p=Object(Ar.applyFilters)("editor.PostFeaturedImage.imageSize","post-thumbnail",s.id,o);Object(O.has)(s,["media_details","sizes",p])?(t=s.media_details.sizes[p].width,n=s.media_details.sizes[p].height,r=s.media_details.sizes[p].source_url):(t=s.media_details.width,n=s.media_details.height,r=s.source_url)}return Object(Ir.createElement)(es,null,Object(Ir.createElement)("div",{className:"editor-post-featured-image"},!!i&&Object(Ir.createElement)(Qo,{fallback:d},Object(Ir.createElement)(ra,{title:u.featured_image||ns,onSelect:c,allowedTypes:ts,modalClass:"editor-post-featured-image__media-modal",render:function(e){var o=e.open;return Object(Ir.createElement)(Hr.Button,{className:"editor-post-featured-image__preview",onClick:o,"aria-label":Object(_.__)("Edit or update the image")},s&&Object(Ir.createElement)(Hr.ResponsiveWrapper,{naturalWidth:t,naturalHeight:n},Object(Ir.createElement)("img",{src:r,alt:""})),!s&&Object(Ir.createElement)(Hr.Spinner,null))},value:i})),!!i&&s&&!s.isLoading&&Object(Ir.createElement)(Qo,null,Object(Ir.createElement)(ra,{title:u.featured_image||ns,onSelect:c,allowedTypes:ts,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(Ir.createElement)(Hr.Button,{onClick:t,isDefault:!0,isLarge:!0},Object(_.__)("Replace image"))}})),!i&&Object(Ir.createElement)("div",null,Object(Ir.createElement)(Qo,{fallback:d},Object(Ir.createElement)(ra,{title:u.featured_image||ns,onSelect:c,allowedTypes:ts,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(Ir.createElement)(Hr.Button,{className:"editor-post-featured-image__toggle",onClick:t},u.set_featured_image||rs)}}))),!!i&&Object(Ir.createElement)(Qo,null,Object(Ir.createElement)(Hr.Button,{onClick:a,isLink:!0,isDestructive:!0},u.remove_featured_image||os))))}));var ss=Object(l.withSelect)((function(e){return{disablePostFormats:e("core/editor").getEditorSettings().disablePostFormats}}))((function(e){var t=e.disablePostFormats,n=Object(p.a)(e,["disablePostFormats"]);return!t&&Object(Ir.createElement)(Ma,Object(Pr.a)({},n,{supportKeys:"post-formats"}))})),ls=[{id:"aside",caption:Object(_.__)("Aside")},{id:"gallery",caption:Object(_.__)("Gallery")},{id:"link",caption:Object(_.__)("Link")},{id:"image",caption:Object(_.__)("Image")},{id:"quote",caption:Object(_.__)("Quote")},{id:"standard",caption:Object(_.__)("Standard")},{id:"status",caption:Object(_.__)("Status")},{id:"video",caption:Object(_.__)("Video")},{id:"audio",caption:Object(_.__)("Audio")},{id:"chat",caption:Object(_.__)("Chat")}];var us=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=n("format"),i=e("core").getThemeSupports();return{postFormat:o,supportedFormats:Object(O.union)([o],Object(O.get)(i,["formats"],[])),suggestedFormat:r()}})),Object(l.withDispatch)((function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}})),Lr.withInstanceId])((function(e){var t=e.onUpdatePostFormat,n=e.postFormat,r=void 0===n?"standard":n,o=e.supportedFormats,i=e.suggestedFormat,c="post-format-selector-"+e.instanceId,a=ls.filter((function(e){return Object(O.includes)(o,e.id)})),s=Object(O.find)(a,(function(e){return e.id===i}));return Object(Ir.createElement)(ss,null,Object(Ir.createElement)("div",{className:"editor-post-format"},Object(Ir.createElement)("div",{className:"editor-post-format__content"},Object(Ir.createElement)("label",{htmlFor:c},Object(_.__)("Post Format")),Object(Ir.createElement)(Hr.SelectControl,{value:r,onChange:function(e){return t(e)},id:c,options:a.map((function(e){return{label:e.caption,value:e.id}}))})),s&&s.id!==r&&Object(Ir.createElement)("div",{className:"editor-post-format__suggestion"},Object(_.__)("Suggestion:")," ",Object(Ir.createElement)(Hr.Button,{isLink:!0,onClick:function(){return t(s.id)}},s.caption))))}));var ds=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(e){var t=e.lastRevisionId,n=e.revisionsCount,r=e.children;return!t||n<2?null:Object(Ir.createElement)(Ma,{supportKeys:"revisions"},r)}));var ps=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(e){var t=e.lastRevisionId,n=e.revisionsCount;return Object(Ir.createElement)(ds,null,Object(Ir.createElement)(Hr.IconButton,{href:la("revision.php",{revision:t,gutenberg:!0}),className:"editor-post-last-revision__title",icon:"backup"},Object(_.sprintf)(Object(_._n)("%d Revision","%d Revisions",n),n)))})),bs=n("xeH2"),fs=n.n(bs);var hs=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).openPreviewWindow=e.openPreviewWindow.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props.previewLink;t&&!e.previewLink&&this.setPreviewWindowLink(t)}},{key:"setPreviewWindowLink",value:function(e){var t=this.previewWindow;t&&!t.closed&&(t.location=e)}},{key:"getWindowTarget",value:function(){var e=this.props.postId;return"wp-preview-".concat(e)}},{key:"openPreviewWindow",value:function(e){var t,n;(e.preventDefault(),this.previewWindow&&!this.previewWindow.closed||(this.previewWindow=window.open("",this.getWindowTarget())),this.previewWindow.focus(),this.props.isAutosaveable)?(this.props.isDraft?this.props.savePost({isPreview:!0}):this.props.autosave({isPreview:!0}),t=this.previewWindow.document,n=Object(Ir.renderToString)(Object(Ir.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},Object(Ir.createElement)(Hr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96"},Object(Ir.createElement)(Hr.Path,{className:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),Object(Ir.createElement)(Hr.Path,{className:"inner",d:"M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",fill:"none"})),Object(Ir.createElement)("p",null,Object(_.__)("Generating preview…")))),n+='\n\t\t\n\t',t.write(n),t.title=Object(_.__)("Generating preview…"),t.close()):this.setPreviewWindowLink(e.target.href)}},{key:"render",value:function(){var e=this.props,t=e.previewLink,n=e.currentPostLink,r=e.isSaveable,o=t||n;return Object(Ir.createElement)(Hr.Button,{isLarge:!0,className:"editor-post-preview",href:o,target:this.getWindowTarget(),disabled:!r,onClick:this.openPreviewWindow},Object(_._x)("Preview","imperative verb"),Object(Ir.createElement)("span",{className:"screen-reader-text"},Object(_.__)("(opens in a new tab)")),Object(Ir.createElement)(c.DotTip,{tipId:"core/editor.preview"},Object(_.__)("Click “Preview” to load a preview of this page, so you can make sure you’re happy with your blocks.")))}}]),t}(Ir.Component),ms=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.forcePreviewLink,r=t.forceIsAutosaveable,o=e("core/editor"),i=o.getCurrentPostId,c=o.getCurrentPostAttribute,a=o.getEditedPostAttribute,s=o.isEditedPostSaveable,l=o.isEditedPostAutosaveable,u=o.getEditedPostPreviewLink,d=e("core").getPostType,p=u(),b=d(a("type"));return{postId:i(),currentPostLink:c("link"),previewLink:void 0!==n?n:p,isSaveable:s(),isAutosaveable:r||l(),isViewable:Object(O.get)(b,["viewable"],!1),isDraft:-1!==["draft","auto-draft"].indexOf(a("status"))}})),Object(l.withDispatch)((function(e){return{autosave:e("core/editor").autosave,savePost:e("core/editor").savePost}})),Object(Lr.ifCondition)((function(e){return e.isViewable}))])(hs),vs=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).sendPostLock=e.sendPostLock.bind(Object(Ur.a)(Object(Ur.a)(e))),e.receivePostLock=e.receivePostLock.bind(Object(Ur.a)(Object(Ur.a)(e))),e.releasePostLock=e.releasePostLock.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){fs()(document).on("heartbeat-send.refresh-lock",this.sendPostLock).on("heartbeat-tick.refresh-lock",this.receivePostLock)}},{key:"componentWillUnmount",value:function(){fs()(document).off("heartbeat-send.refresh-lock",this.sendPostLock).off("heartbeat-tick.refresh-lock",this.receivePostLock)}},{key:"sendPostLock",value:function(e,t){var n=this.props,r=n.isLocked,o=n.activePostLock,i=n.postId;r||(t["wp-refresh-post-lock"]={lock:o,post_id:i})}},{key:"receivePostLock",value:function(e,t){if(t["wp-refresh-post-lock"]){var n=this.props,r=n.autosave,o=n.updatePostLock,i=t["wp-refresh-post-lock"];i.lock_error?(r(),o({isLocked:!0,isTakeover:!0,user:{avatar:i.lock_error.avatar_src}})):i.new_lock&&o({isLocked:!1,activePostLock:i.new_lock})}}},{key:"releasePostLock",value:function(){var e=this.props,t=e.isLocked,n=e.activePostLock,r=e.postLockUtils,o=e.postId;if(!t&&n){var i={action:"wp-remove-post-lock",_wpnonce:r.unlockNonce,post_ID:o,active_post_lock:n};fs.a.post({async:!1,url:r.ajaxUrl,data:i})}}},{key:"render",value:function(){var e=this.props,t=e.user,n=e.postId,r=e.isLocked,o=e.isTakeover,i=e.postLockUtils,c=e.postType;if(!r)return null;var a=t.name,s=t.avatar,l=Object(g.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:n,action:"edit",_wpnonce:i.nonce}),u=la("edit.php",{post_type:Object(O.get)(c,["slug"])}),d=Object(O.get)(c,["labels","all_items"]);return Object(Ir.createElement)(Hr.Modal,{title:o?Object(_.__)("Someone else has taken over this post."):Object(_.__)("This post is already being edited."),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissable:!1,className:"editor-post-locked-modal"},!!s&&Object(Ir.createElement)("img",{src:s,alt:Object(_.__)("Avatar"),className:"editor-post-locked-modal__avatar"}),!!o&&Object(Ir.createElement)("div",null,Object(Ir.createElement)("div",null,a?Object(_.sprintf)(Object(_.__)("%s now has editing control of this post. Don’t worry, your changes up to this moment have been saved."),a):Object(_.__)("Another user now has editing control of this post. Don’t worry, your changes up to this moment have been saved.")),Object(Ir.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(Ir.createElement)(Hr.Button,{isPrimary:!0,isLarge:!0,href:u},d))),!o&&Object(Ir.createElement)("div",null,Object(Ir.createElement)("div",null,a?Object(_.sprintf)(Object(_.__)("%s is currently working on this post, which means you cannot make changes, unless you take over."),a):Object(_.__)("Another user is currently working on this post, which means you cannot make changes, unless you take over.")),Object(Ir.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(Ir.createElement)(Hr.Button,{isDefault:!0,isLarge:!0,href:u},d),Object(Ir.createElement)(ms,null),Object(Ir.createElement)(Hr.Button,{isPrimary:!0,isLarge:!0,href:l},Object(_.__)("Take Over")))))}}]),t}(Ir.Component),Os=Object(Lr.compose)(Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getEditorSettings,r=t.isPostLocked,o=t.isPostLockTakeover,i=t.getPostLockUser,c=t.getCurrentPostId,a=t.getActivePostLock,s=t.getEditedPostAttribute,l=e("core").getPostType;return{isLocked:r(),isTakeover:o(),user:i(),postId:c(),postLockUtils:n().postLockUtils,activePostLock:a(),postType:l(s("type"))}})),Object(l.withDispatch)((function(e){var t=e("core/editor");return{autosave:t.autosave,updatePostLock:t.updatePostLock}})),Object(Lr.withGlobalEvents)({beforeunload:"releasePostLock"}))(vs);var gs=Object(Lr.compose)(Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.isCurrentPostPublished,r=t.getCurrentPostType,o=t.getCurrentPost;return{hasPublishAction:Object(O.get)(o(),["_links","wp:action-publish"],!1),isPublished:n(),postType:r()}})))((function(e){var t=e.hasPublishAction,n=e.isPublished,r=e.children;return n||!t?null:r}));var js=Object(Lr.compose)(Object(l.withSelect)((function(e){return{status:e("core/editor").getEditedPostAttribute("status")}})),Object(l.withDispatch)((function(e){return{onUpdateStatus:function(t){e("core/editor").editPost({status:t})}}})))((function(e){var t=e.status,n=e.onUpdateStatus;return Object(Ir.createElement)(gs,null,Object(Ir.createElement)(Hr.CheckboxControl,{label:Object(_.__)("Pending Review"),checked:"pending"===t,onChange:function(){n("pending"===t?"draft":"pending")}}))}));var ys=Object(Lr.compose)([Object(l.withSelect)((function(e){return{pingStatus:e("core/editor").getEditedPostAttribute("ping_status")}})),Object(l.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.pingStatus,n=void 0===t?"open":t,r=Object(p.a)(e,["pingStatus"]);return Object(Ir.createElement)(Hr.CheckboxControl,{label:Object(_.__)("Allow Pingbacks & Trackbacks"),checked:"open"===n,onChange:function(){return r.editPost({ping_status:"open"===n?"closed":"open"})}})}));var ks=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.forceIsSaving,r=e("core/editor"),o=r.isCurrentPostPublished,i=r.isEditedPostBeingScheduled,c=r.isSavingPost,a=r.isPublishingPost,s=r.getCurrentPost,l=r.getCurrentPostType,u=r.isAutosavingPost;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||c(),isPublishing:a(),hasPublishAction:Object(O.get)(s(),["_links","wp:action-publish"],!1),postType:l(),isAutosaving:u()}}))])((function(e){var t=e.isPublished,n=e.isBeingScheduled,r=e.isSaving,o=e.isPublishing,i=e.hasPublishAction,c=e.isAutosaving;return o?Object(_.__)("Publishing…"):t&&r&&!c?Object(_.__)("Updating…"):n&&r&&!c?Object(_.__)("Scheduling…"):i?t?Object(_.__)("Update"):n?Object(_.__)("Schedule"):Object(_.__)("Publish"):Object(_.__)("Submit for Review")})),_s=function(e){function t(e){var n;return Object(Nr.a)(this,t),(n=Object(Dr.a)(this,Object(Fr.a)(t).call(this,e))).buttonNode=Object(Ir.createRef)(),n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.buttonNode.current.focus()}},{key:"render",value:function(){var e,t=this.props,n=t.forceIsDirty,r=t.forceIsSaving,o=t.hasPublishAction,i=t.isBeingScheduled,a=t.isOpen,s=t.isPostSavingLocked,l=t.isPublishable,u=t.isPublished,d=t.isSaveable,p=t.isSaving,b=t.isToggle,f=t.onSave,h=t.onStatusChange,m=t.onSubmit,v=void 0===m?O.noop:m,g=t.onToggle,j=t.visibility,y=p||r||!d||s||!l&&!n;e=o?i?"future":"private"===j?"private":"publish":"pending";var k={"aria-disabled":y,className:"editor-post-publish-button",isBusy:p&&u,isLarge:!0,isPrimary:!0,onClick:function(){y||(v(),h(e),f())}},E={"aria-disabled":u||p||r||!d||!l&&!n,"aria-expanded":a,className:"editor-post-publish-panel__toggle",isBusy:p&&u,isPrimary:!0,onClick:g},S=i?Object(_.__)("Schedule…"):Object(_.__)("Publish…"),C=Object(Ir.createElement)(ks,{forceIsSaving:r}),w=b?E:k,T=b?S:C;return Object(Ir.createElement)(Hr.Button,Object(Pr.a)({ref:this.buttonNode},w),T,Object(Ir.createElement)(c.DotTip,{tipId:"core/editor.publish"},Object(_.__)("Finished writing? That’s great, let’s get this published right now. Just click “Publish” and you’re good to go.")))}}]),t}(Ir.Component),Es=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isEditedPostBeingScheduled,o=t.getEditedPostVisibility,i=t.isCurrentPostPublished,c=t.isEditedPostSaveable,a=t.isEditedPostPublishable,s=t.isPostSavingLocked,l=t.getCurrentPost,u=t.getCurrentPostType;return{isSaving:n(),isBeingScheduled:r(),visibility:o(),isSaveable:c(),isPostSavingLocked:s(),isPublishable:a(),isPublished:i(),hasPublishAction:Object(O.get)(l(),["_links","wp:action-publish"],!1),postType:u()}})),Object(l.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost;return{onStatusChange:function(e){return n({status:e})},onSave:t.savePost}}))])(_s),Ss=[{value:"public",label:Object(_.__)("Public"),info:Object(_.__)("Visible to everyone.")},{value:"private",label:Object(_.__)("Private"),info:Object(_.__)("Only visible to site admins and editors.")},{value:"password",label:Object(_.__)("Password Protected"),info:Object(_.__)("Protected with a password you choose. Only those with the password can view this post.")}],Cs=function(e){function t(e){var n;return Object(Nr.a)(this,t),(n=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).setPublic=n.setPublic.bind(Object(Ur.a)(Object(Ur.a)(n))),n.setPrivate=n.setPrivate.bind(Object(Ur.a)(Object(Ur.a)(n))),n.setPasswordProtected=n.setPasswordProtected.bind(Object(Ur.a)(Object(Ur.a)(n))),n.updatePassword=n.updatePassword.bind(Object(Ur.a)(Object(Ur.a)(n))),n.state={hasPassword:!!e.password},n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"setPublic",value:function(){var e=this.props,t=e.visibility,n=e.onUpdateVisibility,r=e.status;n("private"===t?"draft":r),this.setState({hasPassword:!1})}},{key:"setPrivate",value:function(){if(window.confirm(Object(_.__)("Would you like to privately publish this post now?"))){var e=this.props,t=e.onUpdateVisibility,n=e.onSave;t("private"),this.setState({hasPassword:!1}),n()}}},{key:"setPasswordProtected",value:function(){var e=this.props,t=e.visibility,n=e.onUpdateVisibility,r=e.status;n("private"===t?"draft":r,e.password||""),this.setState({hasPassword:!0})}},{key:"updatePassword",value:function(e){var t=this.props,n=t.status;(0,t.onUpdateVisibility)(n,e.target.value)}},{key:"render",value:function(){var e=this.props,t=e.visibility,n=e.password,r=e.instanceId,o={public:{onSelect:this.setPublic,checked:"public"===t&&!this.state.hasPassword},private:{onSelect:this.setPrivate,checked:"private"===t},password:{onSelect:this.setPasswordProtected,checked:this.state.hasPassword}};return[Object(Ir.createElement)("fieldset",{key:"visibility-selector",className:"editor-post-visibility__dialog-fieldset"},Object(Ir.createElement)("legend",{className:"editor-post-visibility__dialog-legend"},Object(_.__)("Post Visibility")),Ss.map((function(e){var t=e.value,n=e.label,i=e.info;return Object(Ir.createElement)("div",{key:t,className:"editor-post-visibility__choice"},Object(Ir.createElement)("input",{type:"radio",name:"editor-post-visibility__setting-".concat(r),value:t,onChange:o[t].onSelect,checked:o[t].checked,id:"editor-post-".concat(t,"-").concat(r),"aria-describedby":"editor-post-".concat(t,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-radio"}),Object(Ir.createElement)("label",{htmlFor:"editor-post-".concat(t,"-").concat(r),className:"editor-post-visibility__dialog-label"},n),Object(Ir.createElement)("p",{id:"editor-post-".concat(t,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-info"},i))}))),this.state.hasPassword&&Object(Ir.createElement)("div",{className:"editor-post-visibility__dialog-password",key:"password-selector"},Object(Ir.createElement)("label",{htmlFor:"editor-post-visibility__dialog-password-input-".concat(r),className:"screen-reader-text"},Object(_.__)("Create password")),Object(Ir.createElement)("input",{className:"editor-post-visibility__dialog-password-input",id:"editor-post-visibility__dialog-password-input-".concat(r),type:"text",onChange:this.updatePassword,value:n,placeholder:Object(_.__)("Use a secure password")}))]}}]),t}(Ir.Component),ws=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditedPostVisibility;return{status:n("status"),visibility:r(),password:n("password")}})),Object(l.withDispatch)((function(e){var t=e("core/editor"),n=t.savePost,r=t.editPost;return{onSave:n,onUpdateVisibility:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;r({status:e,password:t})}}})),Lr.withInstanceId])(Cs);var Ts=Object(l.withSelect)((function(e){return{visibility:e("core/editor").getEditedPostVisibility()}}))((function(e){var t=e.visibility;return Object(O.find)(Ss,{value:t}).label}));var Ps=Object(Lr.compose)([Object(l.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})),Object(l.withDispatch)((function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}}))])((function(e){var t=e.date,n=e.onUpdateDate,r=Object(Ze.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(Ir.createElement)(Hr.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:n,is12Hour:o})}));var Is=Object(l.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date"),isFloating:e("core/editor").isEditedPostDateFloating()}}))((function(e){var t=e.date,n=e.isFloating,r=Object(Ze.__experimentalGetSettings)();return t&&!n?Object(Ze.dateI18n)(r.formats.datetimeAbbreviated,t):Object(_.__)("Immediately")})),Bs={per_page:-1,orderby:"count",order:"desc",_fields:"id,name"},xs=function(e,t){return e.toLowerCase()===t.toLowerCase()},Ls=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(Ur.a)(Object(Ur.a)(e))),e.searchTerms=Object(O.throttle)(e.searchTerms.bind(Object(Ur.a)(Object(Ur.a)(e))),500),e.findOrCreateTerm=e.findOrCreateTerm.bind(Object(Ur.a)(Object(Ur.a)(e))),e.state={loading:!1,availableTerms:[],selectedTerms:[]},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){var e=this;Object(O.isEmpty)(this.props.terms)||(this.setState({loading:!1}),this.initRequest=this.fetchTerms({include:this.props.terms.join(","),per_page:-1}),this.initRequest.then((function(){e.setState({loading:!1})}),(function(t){"abort"!==t.statusText&&e.setState({loading:!1})})))}},{key:"componentWillUnmount",value:function(){Object(O.invoke)(this.initRequest,["abort"]),Object(O.invoke)(this.searchRequest,["abort"])}},{key:"componentDidUpdate",value:function(e){e.terms!==this.props.terms&&this.updateSelectedTerms(this.props.terms)}},{key:"fetchTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.props.taxonomy,r=Object(d.a)({},Bs,t),o=mr()({path:Object(g.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then((function(t){e.setState((function(e){return{availableTerms:e.availableTerms.concat(t.filter((function(t){return!Object(O.find)(e.availableTerms,(function(e){return e.id===t.id}))})))}})),e.updateSelectedTerms(e.props.terms)})),o}},{key:"updateSelectedTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t.reduce((function(t,n){var r=Object(O.find)(e.state.availableTerms,(function(e){return e.id===n}));return r&&t.push(r.name),t}),[]);this.setState({selectedTerms:n})}},{key:"findOrCreateTerm",value:function(e){var t=this,n=this.props.taxonomy;return mr()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:e}}).catch((function(r){return"term_exists"===r.code?(t.addRequest=mr()({path:Object(g.addQueryArgs)("/wp/v2/".concat(n.rest_base),Object(d.a)({},Bs,{search:e}))}),t.addRequest.then((function(t){return Object(O.find)(t,(function(t){return xs(t.name,e)}))}))):Promise.reject(r)}))}},{key:"onChange",value:function(e){var t=this,n=Object(O.uniqBy)(e,(function(e){return e.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(e){return!Object(O.find)(t.state.availableTerms,(function(t){return xs(t.name,e)}))})),o=function(e,t){return e.map((function(e){return Object(O.find)(t,(function(t){return xs(t.name,e)})).id}))};if(0===r.length)return this.props.onUpdateTerms(o(n,this.state.availableTerms),this.props.taxonomy.rest_base);Promise.all(r.map(this.findOrCreateTerm)).then((function(e){var r=t.state.availableTerms.concat(e);return t.setState({availableTerms:r}),t.props.onUpdateTerms(o(n,r),t.props.taxonomy.rest_base)}))}},{key:"searchTerms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(O.invoke)(this.searchRequest,["abort"]),this.searchRequest=this.fetchTerms({search:e})}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy;if(!e.hasAssignAction)return null;var r=this.state,o=r.loading,i=r.availableTerms,c=r.selectedTerms,a=i.map((function(e){return e.name})),s=Object(O.get)(n,["labels","add_new_item"],"post_tag"===t?Object(_.__)("Add New Tag"):Object(_.__)("Add New Term")),l=Object(O.get)(n,["labels","singular_name"],"post_tag"===t?Object(_.__)("Tag"):Object(_.__)("Term")),u=Object(_.sprintf)(Object(_._x)("%s added","term"),l),d=Object(_.sprintf)(Object(_._x)("%s removed","term"),l),p=Object(_.sprintf)(Object(_._x)("Remove %s","term"),l);return Object(Ir.createElement)(Hr.FormTokenField,{value:c,displayTransform:O.unescape,suggestions:a,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:s,messages:{added:u,removed:d,remove:p}})}}]),t}(Ir.Component),As=Object(Lr.compose)(Object(l.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(O.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(O.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(l.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(f.a)({},n,t))}}})),Object(Hr.withFilters)("editor.PostTaxonomyType"))(Ls),Ns=function(){var e=[Object(_.__)("Suggestion:"),Object(Ir.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(_.__)("Add tags"))];return Object(Ir.createElement)(Hr.PanelBody,{initialOpen:!1,title:e},Object(Ir.createElement)("p",null,Object(_.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(Ir.createElement)(As,{slug:"post_tag"}))},Rs=function(e){function t(e){var n;return Object(Nr.a)(this,t),(n=Object(Dr.a)(this,Object(Fr.a)(t).call(this,e))).state={hadTagsWhenOpeningThePanel:e.hasTags},n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(Ir.createElement)(Ns,null)}}]),t}(Ir.Component),Ds=Object(Lr.compose)(Object(l.withSelect)((function(e){var t=e("core/editor").getCurrentPostType(),n=e("core").getTaxonomy("post_tag"),r=n&&e("core/editor").getEditedPostAttribute(n.rest_base);return{areTagsFetched:void 0!==n,isPostTypeSupported:n&&Object(O.some)(n.types,(function(e){return e===t})),hasTags:r&&r.length}})),Object(Lr.ifCondition)((function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t})))(Rs),Fs=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(Ir.createElement)(Hr.Button,{isLink:!0,onClick:function(){return r(t)}},n)},Ms=function(e,t){var n=ls.filter((function(t){return Object(O.includes)(e,t.id)}));return Object(O.find)(n,(function(e){return e.id===t}))},Us=Object(Lr.compose)(Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(O.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:Ms(o,r())}})),Object(l.withDispatch)((function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}})),Object(Lr.ifCondition)((function(e){var t=e.suggestion,n=e.currentPostFormat;return t&&t.id!==n})))((function(e){var t=e.suggestion,n=e.onUpdatePostFormat,r=[Object(_.__)("Suggestion:"),Object(Ir.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(_.__)("Use a post format"))];return Object(Ir.createElement)(Hr.PanelBody,{initialOpen:!1,title:r},Object(Ir.createElement)("p",null,Object(_.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")),Object(Ir.createElement)("p",null,Object(Ir.createElement)(Fs,{onUpdatePostFormat:n,suggestedPostFormat:t.id,suggestionText:Object(_.sprintf)(Object(_.__)('Apply the "%1$s" format.'),t.caption)})))}));var Hs=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(O.get)(n(),["_links","wp:action-publish"],!1),isBeingScheduled:r()}}))((function(e){var t,n,r=e.hasPublishAction,o=e.isBeingScheduled,i=e.children;return r?o?(t=Object(_.__)("Are you ready to schedule?"),n=Object(_.__)("Your work will be published at the specified date and time.")):(t=Object(_.__)("Are you ready to publish?"),n=Object(_.__)("Double-check your settings before publishing.")):(t=Object(_.__)("Are you ready to submit for review?"),n=Object(_.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(Ir.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(Ir.createElement)("div",null,Object(Ir.createElement)("strong",null,t)),Object(Ir.createElement)("p",null,n),r&&Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(Hr.PanelBody,{initialOpen:!1,title:[Object(_.__)("Visibility:"),Object(Ir.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Ir.createElement)(Ts,null))]},Object(Ir.createElement)(ws,null)),Object(Ir.createElement)(Hr.PanelBody,{initialOpen:!1,title:[Object(_.__)("Publish:"),Object(Ir.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Ir.createElement)(Is,null))]},Object(Ir.createElement)(Ps,null)),Object(Ir.createElement)(Us,null),Object(Ir.createElement)(Ds,null),i))})),Vs=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={showCopyConfirmation:!1},e.onCopy=e.onCopy.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onSelectInput=e.onSelectInput.bind(Object(Ur.a)(Object(Ur.a)(e))),e.postLink=Object(Ir.createRef)(),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.postLink.current.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.dismissCopyConfirmation)}},{key:"onCopy",value:function(){var e=this;this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout((function(){e.setState({showCopyConfirmation:!1})}),4e3)}},{key:"onSelectInput",value:function(e){e.target.select()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.isScheduled,r=e.post,o=e.postType,i=Object(O.get)(o,["labels","singular_name"]),c=Object(O.get)(o,["labels","view_item"]),a=n?Object(Ir.createElement)(Ir.Fragment,null,Object(_.__)("is now scheduled. It will go live on")," ",Object(Ir.createElement)(Is,null),"."):Object(_.__)("is now live.");return Object(Ir.createElement)("div",{className:"post-publish-panel__postpublish"},Object(Ir.createElement)(Hr.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(Ir.createElement)("a",{ref:this.postLink,href:r.link},r.title||Object(_.__)("(no title)"))," ",a),Object(Ir.createElement)(Hr.PanelBody,null,Object(Ir.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(Ir.createElement)("strong",null,Object(_.__)("What’s next?"))),Object(Ir.createElement)(Hr.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(_.sprintf)(Object(_.__)("%s address"),i),value:r.link,onFocus:this.onSelectInput}),Object(Ir.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(Ir.createElement)(Hr.Button,{isDefault:!0,href:r.link},c),Object(Ir.createElement)(Hr.ClipboardButton,{isDefault:!0,text:r.link,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(_.__)("Copied!"):Object(_.__)("Copy Link")))),t)}}]),t}(Ir.Component),Ks=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getCurrentPost,o=t.isCurrentPostScheduled,i=e("core").getPostType;return{post:r(),postType:i(n("type")),isScheduled:o()}}))(Vs),Ws=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onSubmit=e.onSubmit.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidUpdate",value:function(e){e.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}},{key:"onSubmit",value:function(){var e=this.props,t=e.onClose,n=e.hasPublishAction,r=e.isPostTypeViewable;n&&r||t()}},{key:"render",value:function(){var e=this.props,t=e.forceIsDirty,n=e.forceIsSaving,r=e.isBeingScheduled,o=e.isPublished,i=e.isPublishSidebarEnabled,c=e.isScheduled,a=e.isSaving,s=e.onClose,l=e.onTogglePublishSidebar,u=e.PostPublishExtension,d=e.PrePublishExtension,b=Object(p.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),f=Object(O.omit)(b,["hasPublishAction","isDirty","isPostTypeViewable"]),h=o||c&&r,m=!h&&!a,v=h&&!a;return Object(Ir.createElement)("div",Object(Pr.a)({className:"editor-post-publish-panel"},f),Object(Ir.createElement)("div",{className:"editor-post-publish-panel__header"},v?Object(Ir.createElement)("div",{className:"editor-post-publish-panel__header-published"},c?Object(_.__)("Scheduled"):Object(_.__)("Published")):Object(Ir.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(Ir.createElement)(Es,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n}),Object(Ir.createElement)("span",{className:"editor-post-publish-panel__spacer"})),Object(Ir.createElement)(Hr.IconButton,{"aria-expanded":!0,onClick:s,icon:"no-alt",label:Object(_.__)("Close panel")})),Object(Ir.createElement)("div",{className:"editor-post-publish-panel__content"},m&&Object(Ir.createElement)(Hs,null,d&&Object(Ir.createElement)(d,null)),v&&Object(Ir.createElement)(Ks,{focusOnMount:!0},u&&Object(Ir.createElement)(u,null)),a&&Object(Ir.createElement)(Hr.Spinner,null)),Object(Ir.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(Ir.createElement)(Hr.CheckboxControl,{label:Object(_.__)("Always show pre-publish checks."),checked:i,onChange:l})))}}]),t}(Ir.Component),zs=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core").getPostType,n=e("core/editor"),r=n.getCurrentPost,o=n.getEditedPostAttribute,i=n.isCurrentPostPublished,c=n.isCurrentPostScheduled,a=n.isEditedPostBeingScheduled,s=n.isEditedPostDirty,l=n.isSavingPost,u=e("core/editor").isPublishSidebarEnabled,d=t(o("type"));return{hasPublishAction:Object(O.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(O.get)(d,["viewable"],!1),isBeingScheduled:a(),isDirty:s(),isPublished:i(),isPublishSidebarEnabled:u(),isSaving:l(),isScheduled:c()}})),Object(l.withDispatch)((function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),Hr.withFocusReturn,Hr.withConstrainedTabbing])(Ws);var qs=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isCurrentPostPublished,o=t.isCurrentPostScheduled;return{isSaving:n(),isPublished:r(),isScheduled:o()}})),Object(l.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}}))])((function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick;return n||r?Object(Ir.createElement)(Hr.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(_.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(_.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},Object(_.__)("Switch to Draft")):null})),Gs=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={forceSavedMessage:!1},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this;e.isSaving&&!this.props.isSaving&&(this.setState({forceSavedMessage:!0}),this.props.setTimeout((function(){t.setState({forceSavedMessage:!1})}),1e3))}},{key:"render",value:function(){var e=this.props,t=e.post,n=e.isNew,r=e.isScheduled,o=e.isPublished,i=e.isDirty,c=e.isSaving,a=e.isSaveable,s=e.onSave,l=e.isAutosaving,u=e.isPending,d=e.isLargeViewport,p=this.state.forceSavedMessage;if(c){var b=xr()("editor-post-saved-state","is-saving",{"is-autosaving":l});return Object(Ir.createElement)("span",{className:b},Object(Ir.createElement)(Hr.Dashicon,{icon:"cloud"}),l?Object(_.__)("Autosaving"):Object(_.__)("Saving"))}if(o||r)return Object(Ir.createElement)(qs,null);if(!a)return null;if(p||!n&&!i)return Object(Ir.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(Ir.createElement)(Hr.Dashicon,{icon:"saved"}),Object(_.__)("Saved"));if(!Object(O.get)(t,["_links","wp:action-publish"],!1)&&u)return null;var f=u?Object(_.__)("Save as Pending"):Object(_.__)("Save Draft");return d?Object(Ir.createElement)(Hr.Button,{className:"editor-post-save-draft",onClick:s,shortcut:jo.displayShortcut.primary("s"),isTertiary:!0},f):Object(Ir.createElement)(Hr.IconButton,{className:"editor-post-save-draft",label:f,onClick:s,shortcut:jo.displayShortcut.primary("s"),icon:"cloud-upload"})}}]),t}(Ir.Component),Ys=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.forceIsDirty,r=t.forceIsSaving,o=e("core/editor"),i=o.isEditedPostNew,c=o.isCurrentPostPublished,a=o.isCurrentPostScheduled,s=o.isEditedPostDirty,l=o.isSavingPost,u=o.isEditedPostSaveable,d=o.getCurrentPost,p=o.isAutosavingPost,b=o.getEditedPostAttribute;return{post:d(),isNew:i(),isPublished:c(),isScheduled:a(),isDirty:n||s(),isSaving:r||l(),isSaveable:u(),isAutosaving:p(),isPending:"pending"===b("status")}})),Object(l.withDispatch)((function(e){return{onSave:e("core/editor").savePost}})),Lr.withSafeTimeout,Object(s.withViewportMatch)({isLargeViewport:"medium"})])(Gs);var $s=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(O.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction,n=e.children;return t?n:null}));var Xs=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(O.get)(t,["_links","wp:action-sticky"],!1),postType:e("core/editor").getCurrentPostType()}}))])((function(e){var t=e.hasStickyAction,n=e.postType,r=e.children;return"post"===n&&t?r:null}));var Qs=Object(Lr.compose)([Object(l.withSelect)((function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}})),Object(l.withDispatch)((function(e){return{onUpdateSticky:function(t){e("core/editor").editPost({sticky:t})}}}))])((function(e){var t=e.onUpdateSticky,n=e.postSticky,r=void 0!==n&&n;return Object(Ir.createElement)(Xs,null,Object(Ir.createElement)(Hr.CheckboxControl,{label:Object(_.__)("Stick to the Front Page"),checked:r,onChange:function(){return t(!r)}}))})),Zs={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent"},Js=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).findTerm=e.findTerm.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onChange=e.onChange.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onChangeFormName=e.onChangeFormName.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onChangeFormParent=e.onChangeFormParent.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onAddTerm=e.onAddTerm.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onToggleForm=e.onToggleForm.bind(Object(Ur.a)(Object(Ur.a)(e))),e.setFilterValue=e.setFilterValue.bind(Object(Ur.a)(Object(Ur.a)(e))),e.sortBySelected=e.sortBySelected.bind(Object(Ur.a)(Object(Ur.a)(e))),e.state={loading:!0,availableTermsTree:[],availableTerms:[],adding:!1,formName:"",formParent:"",showForm:!1,filterValue:"",filteredTermsTree:[]},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onChange",value:function(e){var t=this.props,n=t.onUpdateTerms,r=t.terms,o=void 0===r?[]:r,i=t.taxonomy,c=parseInt(e.target.value,10);n(-1!==o.indexOf(c)?Object(O.without)(o,c):Object(b.a)(o).concat([c]),i.rest_base)}},{key:"onChangeFormName",value:function(e){var t=""===e.target.value.trim()?"":e.target.value;this.setState({formName:t})}},{key:"onChangeFormParent",value:function(e){this.setState({formParent:e})}},{key:"onToggleForm",value:function(){this.setState((function(e){return{showForm:!e.showForm}}))}},{key:"findTerm",value:function(e,t,n){return Object(O.find)(e,(function(e){return(!e.parent&&!t||parseInt(e.parent)===parseInt(t))&&e.name.toLowerCase()===n.toLowerCase()}))}},{key:"onAddTerm",value:function(e){var t=this;e.preventDefault();var n=this.props,r=n.onUpdateTerms,o=n.taxonomy,i=n.terms,c=n.slug,a=this.state,s=a.formName,l=a.formParent,u=a.adding,p=a.availableTerms;if(""!==s&&!u){var f=this.findTerm(p,l,s);if(f)return Object(O.some)(i,(function(e){return e===f.id}))||r(Object(b.a)(i).concat([f.id]),o.rest_base),void this.setState({formName:"",formParent:""});this.setState({adding:!0}),this.addRequest=mr()({path:"/wp/v2/".concat(o.rest_base),method:"POST",data:{name:s,parent:l||void 0}}),this.addRequest.catch((function(e){return"term_exists"===e.code?(t.addRequest=mr()({path:Object(g.addQueryArgs)("/wp/v2/".concat(o.rest_base),Object(d.a)({},Zs,{parent:l||0,search:s}))}),t.addRequest.then((function(e){return t.findTerm(e,l,s)}))):Promise.reject(e)})).then((function(e){var n=!!Object(O.find)(t.state.availableTerms,(function(t){return t.id===e.id}))?t.state.availableTerms:[e].concat(Object(b.a)(t.state.availableTerms)),a=Object(_.sprintf)(Object(_._x)("%s added","term"),Object(O.get)(t.props.taxonomy,["labels","singular_name"],"category"===c?Object(_.__)("Category"):Object(_.__)("Term")));t.props.speak(a,"assertive"),t.addRequest=null,t.setState({adding:!1,formName:"",formParent:"",availableTerms:n,availableTermsTree:t.sortBySelected(Va(n))}),r(Object(b.a)(i).concat([e.id]),o.rest_base)}),(function(e){"abort"!==e.statusText&&(t.addRequest=null,t.setState({adding:!1}))}))}}},{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(O.invoke)(this.fetchRequest,["abort"]),Object(O.invoke)(this.addRequest,["abort"])}},{key:"componentDidUpdate",value:function(e){this.props.taxonomy!==e.taxonomy&&this.fetchTerms()}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=mr()({path:Object(g.addQueryArgs)("/wp/v2/".concat(t.rest_base),Zs)}),this.fetchRequest.then((function(t){var n=e.sortBySelected(Va(t));e.fetchRequest=null,e.setState({loading:!1,availableTermsTree:n,availableTerms:t})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({loading:!1}))})))}},{key:"sortBySelected",value:function(e){var t=this.props.terms,n=function e(n){return-1!==t.indexOf(n.id)||void 0!==n.children&&!!(n.children.map(e).filter((function(e){return e})).length>0)};return e.sort((function(e,t){var r=n(e),o=n(t);return r===o?0:r&&!o?-1:!r&&o?1:0})),e}},{key:"setFilterValue",value:function(e){var t=this.state.availableTermsTree,n=e.target.value,r=t.map(this.getFilterMatcher(n)).filter((function(e){return e}));this.setState({filterValue:n,filteredTermsTree:r});var o=function e(t){for(var n=0,r=0;r0&&(r.children=r.children.map(t).filter((function(e){return e}))),(-1!==r.name.toLowerCase().indexOf(e)||r.children.length>0)&&r}}},{key:"renderTerms",value:function(e){var t=this,n=this.props.terms,r=void 0===n?[]:n;return e.map((function(e){var n="editor-post-taxonomies-hierarchical-term-".concat(e.id);return Object(Ir.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(Ir.createElement)("input",{id:n,className:"editor-post-taxonomies__hierarchical-terms-input",type:"checkbox",checked:-1!==r.indexOf(e.id),value:e.id,onChange:t.onChange}),Object(Ir.createElement)("label",{htmlFor:n},Object(O.unescape)(e.name)),!!e.children.length&&Object(Ir.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices"},t.renderTerms(e.children)))}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy,r=e.instanceId,o=e.hasCreateAction;if(!e.hasAssignAction)return null;var i=this.state,c=i.availableTermsTree,a=i.availableTerms,s=i.filteredTermsTree,l=i.formName,u=i.formParent,d=i.loading,p=i.showForm,b=i.filterValue,f=function(e,r,o){return Object(O.get)(n,["labels",e],"category"===t?r:o)},h=f("add_new_item",Object(_.__)("Add new category"),Object(_.__)("Add new term")),m=f("new_item_name",Object(_.__)("Add new category"),Object(_.__)("Add new term")),v=f("parent_item",Object(_.__)("Parent Category"),Object(_.__)("Parent Term")),g="— ".concat(v," —"),j=h,y="editor-post-taxonomies__hierarchical-terms-input-".concat(r),k="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),E=Object(_.sprintf)(Object(_._x)("Search %s","term"),Object(O.get)(this.props.taxonomy,["name"],"category"===t?Object(_.__)("Categories"):Object(_.__)("Terms"))),S=Object(_.sprintf)(Object(_._x)("Available %s","term"),Object(O.get)(this.props.taxonomy,["name"],"category"===t?Object(_.__)("Categories"):Object(_.__)("Terms"))),C=a.length>=8;return[C&&Object(Ir.createElement)("label",{key:"filter-label",htmlFor:k},E),C&&Object(Ir.createElement)("input",{type:"search",id:k,value:b,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(Ir.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":S},this.renderTerms(""!==b?s:c)),!d&&o&&Object(Ir.createElement)(Hr.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},h),p&&Object(Ir.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(Ir.createElement)("label",{htmlFor:y,className:"editor-post-taxonomies__hierarchical-terms-label"},m),Object(Ir.createElement)("input",{type:"text",id:y,className:"editor-post-taxonomies__hierarchical-terms-input",value:l,onChange:this.onChangeFormName,required:!0}),!!a.length&&Object(Ir.createElement)(Hr.TreeSelect,{label:v,noOptionLabel:g,onChange:this.onChangeFormParent,selectedId:u,tree:c}),Object(Ir.createElement)(Hr.Button,{isDefault:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},j))]}}]),t}(Ir.Component),el=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(O.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(O.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(l.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(f.a)({},n,t))}}})),Hr.withSpokenMessages,Lr.withInstanceId,Object(Hr.withFilters)("editor.PostTaxonomyType")])(Js);var tl=Object(Lr.compose)([Object(l.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.taxonomyWrapper,o=void 0===r?O.identity:r,i=Object(O.filter)(n,(function(e){return Object(O.includes)(e.types,t)}));return Object(O.filter)(i,(function(e){return e.visibility.show_ui})).map((function(e){var t=e.hierarchical?el:As;return Object(Ir.createElement)(Ir.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(Ir.createElement)(t,{slug:e.slug}),e))}))}));var nl=Object(Lr.compose)([Object(l.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.children;return Object(O.some)(n,(function(e){return Object(O.includes)(e.types,t)}))?r:null})),rl=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).edit=e.edit.bind(Object(Ur.a)(Object(Ur.a)(e))),e.stopEditing=e.stopEditing.bind(Object(Ur.a)(Object(Ur.a)(e))),e.state={},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"edit",value:function(e){var t=e.target.value;this.props.onChange(t),this.setState({value:t,isDirty:!0})}},{key:"stopEditing",value:function(){this.state.isDirty&&(this.props.onPersist(this.state.value),this.setState({isDirty:!1}))}},{key:"render",value:function(){var e=this.state.value,t=this.props.instanceId;return Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)("label",{htmlFor:"post-content-".concat(t),className:"screen-reader-text"},Object(_.__)("Type text or HTML")),Object(Ir.createElement)(di.a,{autoComplete:"off",dir:"auto",value:e,onChange:this.edit,onBlur:this.stopEditing,className:"editor-post-text-editor",id:"post-content-".concat(t),placeholder:Object(_.__)("Start writing with text or HTML")}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.isDirty?null:{value:e.value,isDirty:!1}}}]),t}(Ir.Component),ol=Object(Lr.compose)([Object(l.withSelect)((function(e){return{value:(0,e("core/editor").getEditedPostContent)()}})),Object(l.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.resetBlocks;return{onChange:function(e){n({content:e})},onPersist:function(e){r(Object(i.parse)(e))}}})),Lr.withInstanceId])(rl),il=function(e){function t(e){var n,r=e.permalinkParts,o=e.slug;return Object(Nr.a)(this,t),(n=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={editedPostName:o||r.postName},n.onSavePermalink=n.onSavePermalink.bind(Object(Ur.a)(Object(Ur.a)(n))),n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onSavePermalink",value:function(e){var t=ua(this.state.editedPostName);e.preventDefault(),this.props.onSave(),t!==this.props.postName&&(this.props.editPost({slug:t}),this.setState({editedPostName:t}))}},{key:"render",value:function(){var e=this,t=this.props.permalinkParts,n=t.prefix,r=t.suffix,o=this.state.editedPostName;return Object(Ir.createElement)("form",{className:"editor-post-permalink-editor",onSubmit:this.onSavePermalink},Object(Ir.createElement)("span",{className:"editor-post-permalink__editor-container"},Object(Ir.createElement)("span",{className:"editor-post-permalink-editor__prefix"},n),Object(Ir.createElement)("input",{className:"editor-post-permalink-editor__edit","aria-label":Object(_.__)("Edit post permalink"),value:o,onChange:function(t){return e.setState({editedPostName:t.target.value})},type:"text",autoFocus:!0}),Object(Ir.createElement)("span",{className:"editor-post-permalink-editor__suffix"},r),"‎"),Object(Ir.createElement)(Hr.Button,{className:"editor-post-permalink-editor__save",isLarge:!0,onClick:this.onSavePermalink},Object(_.__)("Save")))}}]),t}(Ir.Component),cl=Object(Lr.compose)([Object(l.withSelect)((function(e){return{permalinkParts:(0,e("core/editor").getPermalinkParts)()}})),Object(l.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])(il),al=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).addVisibilityCheck=e.addVisibilityCheck.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onVisibilityChange=e.onVisibilityChange.bind(Object(Ur.a)(Object(Ur.a)(e))),e.state={isCopied:!1,isEditingPermalink:!1},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"addVisibilityCheck",value:function(){window.addEventListener("visibilitychange",this.onVisibilityChange)}},{key:"onVisibilityChange",value:function(){var e=this.props,t=e.isEditable,n=e.refreshPost;t||"visible"!==document.visibilityState||n()}},{key:"componentDidUpdate",value:function(e,t){t.isEditingPermalink&&!this.state.isEditingPermalink&&this.linkElement.focus()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("visibilitychange",this.addVisibilityCheck)}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.isNew,o=t.isPublished,i=t.isViewable,c=t.permalinkParts,a=t.postLink,s=t.postSlug,l=t.postID,u=t.postTitle;if(r||!i||!c||!a)return null;var d=this.state,p=d.isCopied,b=d.isEditingPermalink,f=p?Object(_.__)("Permalink copied"):Object(_.__)("Copy the permalink"),h=c.prefix,m=c.suffix,v=s||ua(u)||l,O=n?h+v+m:h;return Object(Ir.createElement)("div",{className:"editor-post-permalink"},Object(Ir.createElement)(Hr.ClipboardButton,{className:xr()("editor-post-permalink__copy",{"is-copied":p}),text:O,label:f,onCopy:function(){return e.setState({isCopied:!0})},"aria-disabled":p,icon:"admin-links"}),Object(Ir.createElement)("span",{className:"editor-post-permalink__label"},Object(_.__)("Permalink:")),!b&&Object(Ir.createElement)(Hr.ExternalLink,{className:"editor-post-permalink__link",href:o?O:a,target:"_blank",ref:function(t){return e.linkElement=t}},Object(g.safeDecodeURI)(O),"‎"),b&&Object(Ir.createElement)(cl,{slug:v,onSave:function(){return e.setState({isEditingPermalink:!1})}}),n&&!b&&Object(Ir.createElement)(Hr.Button,{className:"editor-post-permalink__edit",isLarge:!0,onClick:function(){return e.setState({isEditingPermalink:!0})}},Object(_.__)("Edit")),!n&&Object(Ir.createElement)(Hr.Button,{className:"editor-post-permalink__change",isLarge:!0,href:la("options-permalink.php"),onClick:this.addVisibilityCheck,target:"_blank"},Object(_.__)("Change Permalinks")))}}]),t}(Ir.Component),sl=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.isPermalinkEditable,o=t.getCurrentPost,i=t.getPermalinkParts,c=t.getEditedPostAttribute,a=t.isCurrentPostPublished,s=e("core").getPostType,l=o(),u=l.id,d=l.link,p=s(c("type"));return{isNew:n(),postLink:d,permalinkParts:i(),postSlug:c("slug"),isEditable:r(),isPublished:a(),postTitle:c("title"),postID:u,isViewable:Object(O.get)(p,["viewable"],!1)}})),Object(l.withDispatch)((function(e){return{refreshPost:e("core/editor").refreshPost}}))])(al),ll=/[\r\n]+/g,ul=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onSelect=e.onSelect.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onUnselect=e.onUnselect.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onKeyDown=e.onKeyDown.bind(Object(Ur.a)(Object(Ur.a)(e))),e.redirectHistory=e.redirectHistory.bind(Object(Ur.a)(Object(Ur.a)(e))),e.state={isSelected:!1},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"handleFocusOutside",value:function(){this.onUnselect()}},{key:"onSelect",value:function(){this.setState({isSelected:!0}),this.props.clearSelectedBlock()}},{key:"onUnselect",value:function(){this.setState({isSelected:!1})}},{key:"onChange",value:function(e){var t=e.target.value.replace(ll," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===jo.ENTER&&(e.preventDefault(),this.props.onEnterPress())}},{key:"redirectHistory",value:function(e){e.shiftKey?this.props.onRedo():this.props.onUndo(),e.preventDefault()}},{key:"render",value:function(){var e=this.props,t=e.hasFixedToolbar,n=e.isCleanNewPost,r=e.isFocusMode,o=e.isPostTypeViewable,i=e.instanceId,c=e.placeholder,a=e.title,s=this.state.isSelected,l=xr()("wp-block editor-post-title__block",{"is-selected":s,"is-focus-mode":r,"has-fixed-toolbar":t}),u=Object(Ji.decodeEntities)(c);return Object(Ir.createElement)(Ma,{supportKeys:"title"},Object(Ir.createElement)("div",{className:"editor-post-title"},Object(Ir.createElement)("div",{className:l},Object(Ir.createElement)(Hr.KeyboardShortcuts,{shortcuts:{"mod+z":this.redirectHistory,"mod+shift+z":this.redirectHistory}},Object(Ir.createElement)("label",{htmlFor:"post-title-".concat(i),className:"screen-reader-text"},u||Object(_.__)("Add title")),Object(Ir.createElement)(di.a,{id:"post-title-".concat(i),className:"editor-post-title__input",value:a,onChange:this.onChange,placeholder:u||Object(_.__)("Add title"),onFocus:this.onSelect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,autoFocus:n})),s&&o&&Object(Ir.createElement)(sl,null))))}}]),t}(Ir.Component),dl=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditorSettings,o=t.isCleanNewPost,i=(0,e("core").getPostType)(n("type")),c=r(),a=c.titlePlaceholder,s=c.focusMode,l=c.hasFixedToolbar;return{isCleanNewPost:o(),title:n("title"),isPostTypeViewable:Object(O.get)(i,["viewable"],!1),placeholder:a,isFocusMode:s,hasFixedToolbar:l}})),pl=Object(l.withDispatch)((function(e){var t=e("core/editor"),n=t.insertDefaultBlock,r=t.editPost,o=t.clearSelectedBlock;return{onEnterPress:function(){n(void 0,void 0,0)},onUpdate:function(e){r({title:e})},onUndo:t.undo,onRedo:t.redo,clearSelectedBlock:o}})),bl=Object(Lr.compose)(dl,pl,Lr.withInstanceId,Hr.withFocusOutside)(ul);var fl=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType;return{isNew:n(),postId:r(),postType:o()}})),Object(l.withDispatch)((function(e){return{trashPost:e("core/editor").trashPost}}))])((function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object(p.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(Ir.createElement)(Hr.Button,{className:"editor-post-trash button-link-delete",onClick:function(){return o.trashPost(n,r)},isDefault:!0,isLarge:!0},Object(_.__)("Move to trash"))}));var hl=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId;return{isNew:n(),postId:r()}}))((function(e){var t=e.isNew,n=e.postId,r=e.children;return t||!n?null:r}));var ml=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(O.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})})),vl=n("7fqt");var Ol=Object(l.withSelect)((function(e){return{content:e("core/editor").getEditedPostAttribute("content")}}))((function(e){var t=e.content,n=Object(_._x)("words","Word count type. Do not translate!");return Object(Ir.createElement)("span",{className:"word-count"},Object(vl.count)(t,n))}));var gl=Object(l.withSelect)((function(e){var t=e("core/editor").getGlobalBlockCount;return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}))((function(e){var t=e.headingCount,n=e.paragraphCount,r=e.numberOfBlocks;return Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)("div",{className:"table-of-contents__counts",role:"note","aria-label":Object(_.__)("Document Statistics"),tabIndex:"0"},Object(Ir.createElement)("div",{className:"table-of-contents__count"},Object(_.__)("Words"),Object(Ir.createElement)(Ol,null)),Object(Ir.createElement)("div",{className:"table-of-contents__count"},Object(_.__)("Headings"),Object(Ir.createElement)("span",{className:"table-of-contents__number"},t)),Object(Ir.createElement)("div",{className:"table-of-contents__count"},Object(_.__)("Paragraphs"),Object(Ir.createElement)("span",{className:"table-of-contents__number"},n)),Object(Ir.createElement)("div",{className:"table-of-contents__count"},Object(_.__)("Blocks"),Object(Ir.createElement)("span",{className:"table-of-contents__number"},r))),t>0&&Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)("hr",null),Object(Ir.createElement)("span",{className:"table-of-contents__title"},Object(_.__)("Document Outline")),Object(Ir.createElement)(wa,null)))}));var jl=Object(l.withSelect)((function(e){return{hasBlocks:!!e("core/editor").getBlockCount()}}))((function(e){var t=e.hasBlocks;return Object(Ir.createElement)(Hr.Dropdown,{position:"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(Ir.createElement)(Hr.IconButton,{onClick:t?r:void 0,icon:"info-outline","aria-expanded":n,label:Object(_.__)("Content structure"),labelPosition:"bottom","aria-disabled":!t})},renderContent:function(){return Object(Ir.createElement)(gl,null)}})})),yl=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).warnIfUnsavedChanges=e.warnIfUnsavedChanges.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"warnIfUnsavedChanges",value:function(e){if(this.props.isDirty)return e.returnValue=Object(_.__)("You have unsaved changes. If you proceed, they will be lost."),e.returnValue}},{key:"render",value:function(){return null}}]),t}(Ir.Component),kl=Object(l.withSelect)((function(e){return{isDirty:e("core/editor").isEditedPostDirty()}}))(yl),_l=Object(l.withSelect)((function(e){return{selectedBlockClientId:e("core/editor").getBlockSelectionStart()}}))((function(e){var t=e.selectedBlockClientId;return t&&Object(Ir.createElement)(Hr.Button,{isDefault:!0,type:"button",className:"editor-skip-to-selected-block",onClick:function(){Yi(t).closest(".editor-block-list__block").focus()}},Object(_.__)("Skip to the selected block"))})),El=n("BLeD"),Sl=n.n(El);function Cl(e,t,n){var r=new Sl.a(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}var wl=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.clientId,r=e("core/editor").getBlock,o=e("core/blocks").getBlockStyles,i=r(n);return{name:i.name,attributes:i.attributes,className:i.attributes.className||"",styles:o(i.name)}})),Object(l.withDispatch)((function(e,t){var n=t.clientId;return{onChangeClassName:function(t){e("core/editor").updateBlockAttributes(n,{className:t})}}}))])((function(e){var t=e.styles,n=e.className,r=e.onChangeClassName,o=e.name,i=e.attributes,c=e.onSwitch,a=void 0===c?O.noop:c,s=e.onHoverClassName,l=void 0===s?O.noop:s;if(!t||0===t.length)return null;var u=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,c=new Sl.a(t).values()[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var a=i.value;if(-1!==a.indexOf("is-style-")){var s=a.substring(9),l=Object(O.find)(e,{name:s});if(l)return l}}}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return Object(O.find)(e,"isDefault")}(t,n);function p(e){var t=Cl(n,u,e);r(t),a()}return Object(Ir.createElement)("div",{className:"editor-block-styles"},t.map((function(e){var t=Cl(n,u,e);return Object(Ir.createElement)("div",{key:e.name,className:xr()("editor-block-styles__item",{"is-active":u===e}),onClick:function(){return p(e)},onKeyDown:function(t){jo.ENTER!==t.keyCode&&jo.SPACE!==t.keyCode||(t.preventDefault(),p(e))},onMouseEnter:function(){return l(t)},onMouseLeave:function(){return l(null)},role:"button",tabIndex:"0","aria-label":e.label||e.name},Object(Ir.createElement)("div",{className:"editor-block-styles__item-preview"},Object(Ir.createElement)(Si,{name:o,attributes:Object(d.a)({},i,{className:t})})),Object(Ir.createElement)("div",{className:"editor-block-styles__item-label"},e.label||e.name))})))}));var Tl=Object(l.withSelect)((function(e){return{blocks:(0,e("core/editor").getMultiSelectedBlocks)()}}))((function(e){var t=e.blocks,n=Object(vl.count)(Object(i.serialize)(t),"words");return Object(Ir.createElement)("div",{className:"editor-multi-selection-inspector__card"},Object(Ir.createElement)($r,{icon:Object(Ir.createElement)(Hr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ir.createElement)(Hr.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),showColors:!0}),Object(Ir.createElement)("div",{className:"editor-multi-selection-inspector__card-content"},Object(Ir.createElement)("div",{className:"editor-multi-selection-inspector__card-title"},Object(_.sprintf)(Object(_._n)("%d block","%d blocks",t.length),t.length)),Object(Ir.createElement)("div",{className:"editor-multi-selection-inspector__card-description"},Object(_.sprintf)(Object(_._n)("%d word","%d words",n),n))))})),Pl=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,c=e("core/blocks").getBlockStyles,a=n(),s=a&&o(a),l=a&&Object(i.getBlockType)(s),u=a&&c(s);return{count:r(),hasBlockStyles:u&&u.length>0,selectedBlockName:s,selectedBlockClientId:a,blockType:l}}))((function(e){var t=e.selectedBlockClientId,n=e.selectedBlockName,r=e.blockType,o=e.count,c=e.hasBlockStyles;if(o>1)return Object(Ir.createElement)(Tl,null);var a=n===Object(i.getUnregisteredTypeHandlerName)();return r&&t&&!a?Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)("div",{className:"editor-block-inspector__card"},Object(Ir.createElement)($r,{icon:r.icon,showColors:!0}),Object(Ir.createElement)("div",{className:"editor-block-inspector__card-content"},Object(Ir.createElement)("div",{className:"editor-block-inspector__card-title"},r.title),Object(Ir.createElement)("div",{className:"editor-block-inspector__card-description"},r.description))),c&&Object(Ir.createElement)("div",null,Object(Ir.createElement)(Hr.PanelBody,{title:Object(_.__)("Styles"),initialOpen:!1},Object(Ir.createElement)(wl,{clientId:t}))),Object(Ir.createElement)("div",null,Object(Ir.createElement)(hc.Slot,null)),Object(Ir.createElement)("div",null,Object(Ir.createElement)(uc.Slot,null,(function(e){return!Object(O.isEmpty)(e)&&Object(Ir.createElement)(Hr.PanelBody,{className:"editor-block-inspector__advanced",title:Object(_.__)("Advanced"),initialOpen:!1},e)}))),Object(Ir.createElement)(_l,{key:"back"})):Object(Ir.createElement)("span",{className:"editor-block-inspector__no-blocks"},Object(_.__)("No block selected."))})),Il=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(Ur.a)(Object(Ur.a)(e))),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,r=t.hasMultiSelection,o=t.clearSelectedBlock,i=n||r;e.target===this.container&&i&&o()}},{key:"render",value:function(){return Object(Ir.createElement)("div",Object(Pr.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(O.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),t}(Ir.Component),Bl=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(l.withDispatch)((function(e){return{clearSelectedBlock:e("core/editor").clearSelectedBlock}}))])(Il);var xl=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.clientId,r=e("core/editor"),o=r.getBlock,c=r.getBlockMode,a=o(n);return{mode:c(n),blockType:a?Object(i.getBlockType)(a.name):null}})),Object(l.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?O.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,c=void 0!==o&&o;if(!Object(i.hasBlockSupport)(t,"html",!0))return null;var a="visual"===n?Object(_.__)("Edit as HTML"):Object(_.__)("Edit visually");return Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",onClick:r,icon:"html",label:c?a:void 0},!c&&a)}));var Ll=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.clientIds,r=e("core/editor"),o=r.getBlocksByClientId,c=r.canInsertBlockType,a=r.__experimentalGetReusableBlock,s=o(n),l=c("core/block")&&Object(O.every)(s,(function(e){return!!e&&e.isValid&&Object(i.hasBlockSupport)(e.name,"reusable",!0)}));return{isVisible:l,isStaticBlock:l&&(1!==s.length||!Object(i.isReusableBlock)(s[0])||!a(s[0].attributes.ref))}})),Object(l.withDispatch)((function(e,t){var n=t.clientIds,r=t.onToggle,o=void 0===r?O.noop:r,i=e("core/editor"),c=i.__experimentalConvertBlockToReusable,a=i.__experimentalConvertBlockToStatic;return{onConvertToStatic:function(){1===n.length&&(a(n[0]),o())},onConvertToReusable:function(){c(n),o()}}}))])((function(e){var t=e.isVisible,n=e.isStaticBlock,r=e.onConvertToStatic,o=e.onConvertToReusable;return t?Object(Ir.createElement)(Ir.Fragment,null,n&&Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",icon:"controls-repeat",onClick:o},Object(_.__)("Add to Reusable Blocks")),!n&&Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",icon:"controls-repeat",onClick:r},Object(_.__)("Convert to Regular Block"))):null}));var Al=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.clientId,r=e("core/editor"),o=r.getBlock,c=r.__experimentalGetReusableBlock,a=o(n);return{reusableBlock:a&&Object(i.isReusableBlock)(a)?c(a.attributes.ref):null}})),Object(l.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?O.noop:n,o=e("core/editor").__experimentalDeleteReusableBlock;return{onDelete:function(e){window.confirm(Object(_.__)("Are you sure you want to delete this Reusable Block?\n\nIt will be permanently removed from all posts and pages that use it."))&&(o(e),r())}}}))])((function(e){var t=e.reusableBlock,n=e.onDelete;return t?Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",icon:"no",disabled:t.isTemporary,onClick:function(){return n(t.id)}},Object(_.__)("Remove from Reusable Blocks")):null}));function Nl(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(_.__)("Convert to Blocks");return Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",onClick:n,icon:"screenoptions",label:r?o:void 0},!r&&o)}var Rl=Object(Lr.compose)(Object(l.withSelect)((function(e,t){var n=t.clientId,r=e("core/editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(l.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.getBlockContent)(n)}))}}})))(Nl),Dl=Object(Lr.compose)(Object(l.withSelect)((function(e,t){var n=t.clientId,r=e("core/editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(i.getFreeformContentHandlerName)()}})),Object(l.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.serialize)(n)}))}}})))(Nl),Fl=Object(Hr.createSlotFill)("_BlockSettingsMenuFirstItem"),Ml=Fl.Fill,Ul=Fl.Slot;Ml.Slot=Ul;var Hl=Ml,Vl=Object(Hr.createSlotFill)("_BlockSettingsMenuPluginsExtension"),Kl=Vl.Fill,Wl=Vl.Slot;Kl.Slot=Wl;var zl=Kl;var ql=Object(l.withDispatch)((function(e){var t=e("core/editor").selectBlock;return{onSelect:function(e){t(e)}}}))((function(e){var t=e.clientIds,n=e.onSelect,r=Object(O.castArray)(t),o=r.length,i=r[0];return Object(Ir.createElement)(Pa,{clientIds:t},(function(e){var r=e.onDuplicate,c=e.onRemove,a=e.onInsertAfter,s=e.onInsertBefore,l=e.canDuplicate,u=e.isLocked;return Object(Ir.createElement)(Hr.Dropdown,{contentClassName:"editor-block-settings-menu__popover",position:"bottom right",renderToggle:function(e){var t=e.onToggle,r=e.isOpen,c=xr()("editor-block-settings-menu__toggle",{"is-opened":r}),a=r?Object(_.__)("Hide options"):Object(_.__)("More options");return Object(Ir.createElement)(Hr.Toolbar,{controls:[{icon:"ellipsis",title:a,onClick:function(){1===o&&n(i),t()},className:c,extraProps:{"aria-expanded":r}}]})},renderContent:function(e){var n=e.onClose;return Object(Ir.createElement)(Hr.NavigableMenu,{className:"editor-block-settings-menu__content"},Object(Ir.createElement)(Hl.Slot,{fillProps:{onClose:n}}),1===o&&Object(Ir.createElement)(Dl,{clientId:i}),1===o&&Object(Ir.createElement)(Rl,{clientId:i}),!u&&l&&Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",onClick:r,icon:"admin-page",shortcut:Ba.duplicate.display},Object(_.__)("Duplicate")),!u&&Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",onClick:s,icon:"insert-before",shortcut:Ba.insertBefore.display},Object(_.__)("Insert Before")),Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",onClick:a,icon:"insert-after",shortcut:Ba.insertAfter.display},Object(_.__)("Insert After"))),1===o&&Object(Ir.createElement)(xl,{clientId:i,onToggle:n}),Object(Ir.createElement)(Ll,{clientIds:t,onToggle:n}),Object(Ir.createElement)(zl.Slot,{fillProps:{clientIds:t,onClose:n}}),Object(Ir.createElement)("div",{className:"editor-block-settings-menu__separator"}),1===o&&Object(Ir.createElement)(Al,{clientId:i,onToggle:n}),!u&&Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",onClick:c,icon:"trash",shortcut:Ba.removeBlock.display},Object(_.__)("Remove Block")))}})}))})),Gl=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onHoverClassName",value:function(e){this.setState({hoveredClassName:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.blocks,r=t.onTransform,o=t.inserterItems,c=t.hasBlockStyles,a=this.state.hoveredClassName;if(!n||!n.length)return null;var s=Object(O.mapKeys)(o,(function(e){return e.name})),l=Object(O.orderBy)(Object(O.filter)(Object(i.getPossibleBlockTransformations)(n),(function(e){return e&&!!s[e.name]})),(function(e){return s[e.name].frecency}),"desc"),u=n[0].name,p=Object(i.getBlockType)(u);return c||l.length?Object(Ir.createElement)(Hr.Dropdown,{position:"bottom right",className:"editor-block-switcher",contentClassName:"editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,r=e.isOpen,o=1===n.length?Object(_.__)("Change block type"):Object(_.sprintf)(Object(_._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(Ir.createElement)(Hr.Toolbar,null,Object(Ir.createElement)(Hr.IconButton,{className:"editor-block-switcher__toggle",onClick:t,"aria-haspopup":"true","aria-expanded":r,label:o,tooltip:o,onKeyDown:function(e){r||e.keyCode!==jo.DOWN||(e.preventDefault(),e.stopPropagation(),t())}},Object(Ir.createElement)($r,{icon:p.icon,showColors:!0}),Object(Ir.createElement)(Hr.SVG,{className:"editor-block-switcher__transform",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ir.createElement)(Hr.Path,{d:"M6.5 8.9c.6-.6 1.4-.9 2.2-.9h6.9l-1.3 1.3 1.4 1.4L19.4 7l-3.7-3.7-1.4 1.4L15.6 6H8.7c-1.4 0-2.6.5-3.6 1.5l-2.8 2.8 1.4 1.4 2.8-2.8zm13.8 2.4l-2.8 2.8c-.6.6-1.3.9-2.1.9h-7l1.3-1.3-1.4-1.4L4.6 16l3.7 3.7 1.4-1.4L8.4 17h6.9c1.3 0 2.6-.5 3.5-1.5l2.8-2.8-1.3-1.4z"}))))},renderContent:function(t){var o=t.onClose;return Object(Ir.createElement)(Ir.Fragment,null,c&&Object(Ir.createElement)(Hr.PanelBody,{title:Object(_.__)("Block Styles"),initialOpen:!0},Object(Ir.createElement)(wl,{clientId:n[0].clientId,onSwitch:o,onHoverClassName:e.onHoverClassName})),0!==l.length&&Object(Ir.createElement)(Hr.PanelBody,{title:Object(_.__)("Transform To:"),initialOpen:!0},Object(Ir.createElement)(Ti,{items:l.map((function(e){return{id:e.name,icon:e.icon,title:e.title,hasChildBlocksWithInserterSupport:Object(i.hasChildBlocksWithInserterSupport)(e.name)}})),onSelect:function(e){r(n,e.id),o()}})),null!==a&&Object(Ir.createElement)(Ci,{name:n[0].name,attributes:Object(d.a)({},n[0].attributes,{className:a})}))}}):n.length>1?null:Object(Ir.createElement)(Hr.Toolbar,null,Object(Ir.createElement)(Hr.IconButton,{disabled:!0,className:"editor-block-switcher__no-switcher-icon",label:Object(_.__)("Block icon")},Object(Ir.createElement)($r,{icon:p.icon,showColors:!0})))}}]),t}(Ir.Component),Yl=Object(Lr.compose)(Object(l.withSelect)((function(e,t){var n=t.clientIds,r=e("core/editor"),o=r.getBlocksByClientId,i=r.getBlockRootClientId,c=r.getInserterItems,a=e("core/blocks").getBlockStyles,s=i(Object(O.first)(Object(O.castArray)(n))),l=o(n),u=l&&1===l.length?l[0]:null,d=u&&a(u.name);return{blocks:l,inserterItems:c(s),hasBlockStyles:d&&d.length>0}})),Object(l.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/editor").replaceBlocks(t.clientIds,Object(i.switchToBlockType)(n,r))}}})))(Gl);var $l=Object(l.withSelect)((function(e){var t=e("core/editor").getMultiSelectedBlockClientIds();return{isMultiBlockSelection:t.length>1,selectedBlockClientIds:t}}))((function(e){var t=e.isMultiBlockSelection,n=e.selectedBlockClientIds;return t?Object(Ir.createElement)(Yl,{key:"switcher",clientIds:n}):null}));var Xl=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getSelectedBlockClientId,r=t.getBlockMode,o=t.getMultiSelectedBlockClientIds,i=t.isBlockValid,c=n();return{blockClientIds:c?[c]:o(),isValid:c?i(c):null,mode:c?r(c):null}}))((function(e){var t=e.blockClientIds,n=e.isValid,r=e.mode;return 0===t.length?null:t.length>1?Object(Ir.createElement)("div",{className:"editor-block-toolbar"},Object(Ir.createElement)($l,null),Object(Ir.createElement)(ql,{clientIds:t})):Object(Ir.createElement)("div",{className:"editor-block-toolbar"},"visual"===r&&n&&Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(Yl,{clientIds:t}),Object(Ir.createElement)(po.Slot,null),Object(Ir.createElement)(go.Slot,null)),Object(Ir.createElement)(ql,{clientIds:t}))})),Ql=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onCopy=function(t){return e.props.onCopy(t)},e.onCut=function(t){return e.props.onCut(t)},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){document.addEventListener("copy",this.onCopy),document.addEventListener("cut",this.onCut)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("copy",this.onCopy),document.removeEventListener("cut",this.onCut)}},{key:"render",value:function(){return null}}]),t}(Ir.Component),Zl=Object(Lr.compose)([Object(l.withDispatch)((function(e,t,n){var r=(0,n.select)("core/editor"),o=r.getBlocksByClientId,c=r.getMultiSelectedBlockClientIds,a=r.getSelectedBlockClientId,s=r.hasMultiSelection,l=e("core/editor").removeBlocks,u=function(e){var t=a()?[a()]:c();if(0!==t.length&&(s()||!Object(Vo.documentHasSelection)())){var n=Object(i.serialize)(o(t));e.clipboardData.setData("text/plain",n),e.clipboardData.setData("text/html",n),e.preventDefault()}};return{onCopy:u,onCut:function(e){if(u(e),s()){var t=a()?[a()]:c();l(t)}}}}))])(Ql),Jl=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).reboot=e.reboot.bind(Object(Ur.a)(Object(Ur.a)(e))),e.getContent=e.getContent.bind(Object(Ur.a)(Object(Ur.a)(e))),e.state={error:null},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidCatch",value:function(e){this.setState({error:e})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Object(l.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(Ir.createElement)(ei,{className:"editor-error-boundary",actions:[Object(Ir.createElement)(Hr.Button,{key:"recovery",onClick:this.reboot,isLarge:!0},Object(_.__)("Attempt Recovery")),Object(Ir.createElement)(Hr.ClipboardButton,{key:"copy-post",text:this.getContent,isLarge:!0},Object(_.__)("Copy Post Text")),Object(Ir.createElement)(Hr.ClipboardButton,{key:"copy-error",text:e.stack,isLarge:!0},Object(_.__)("Copy Error"))]},Object(_.__)("The editor has encountered an unexpected error.")):this.props.children}}]),t}(Ir.Component),eu=function(e){function t(){return Object(Nr.a)(this,t),Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidUpdate",value:function(){this.scrollIntoView()}},{key:"scrollIntoView",value:function(){var e=this.props.extentClientId;if(e){var t=Yi(e);if(t){var n=Object(Vo.getScrollContainer)(t);n&&Ei()(t,n,{onlyScrollIfNeeded:!0})}}}},{key:"render",value:function(){return null}}]),t}(Ir.Component),tu=Object(l.withSelect)((function(e){return{extentClientId:(0,e("core/editor").getLastMultiSelectedBlockClientId)()}}))(eu),nu=[jo.UP,jo.RIGHT,jo.DOWN,jo.LEFT,jo.ENTER,jo.BACKSPACE];var ru=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).stopTypingOnSelectionUncollapse=e.stopTypingOnSelectionUncollapse.bind(Object(Ur.a)(Object(Ur.a)(e))),e.stopTypingOnMouseMove=e.stopTypingOnMouseMove.bind(Object(Ur.a)(Object(Ur.a)(e))),e.startTypingInTextField=e.startTypingInTextField.bind(Object(Ur.a)(Object(Ur.a)(e))),e.stopTypingOnNonTextField=e.stopTypingOnNonTextField.bind(Object(Ur.a)(Object(Ur.a)(e))),e.stopTypingOnEscapeKey=e.stopTypingOnEscapeKey.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onKeyDown=Object(O.over)([e.startTypingInTextField,e.stopTypingOnEscapeKey]),e.lastMouseMove=null,e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){this.toggleEventBindings(this.props.isTyping)}},{key:"componentDidUpdate",value:function(e){this.props.isTyping!==e.isTyping&&this.toggleEventBindings(this.props.isTyping)}},{key:"componentWillUnmount",value:function(){this.toggleEventBindings(!1)}},{key:"toggleEventBindings",value:function(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",this.stopTypingOnSelectionUncollapse),document[t]("mousemove",this.stopTypingOnMouseMove)}},{key:"stopTypingOnMouseMove",value:function(e){var t=e.clientX,n=e.clientY;if(this.lastMouseMove){var r=this.lastMouseMove,o=r.clientX,i=r.clientY;o===t&&i===n||this.props.onStopTyping()}this.lastMouseMove={clientX:t,clientY:n}}},{key:"stopTypingOnSelectionUncollapse",value:function(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||this.props.onStopTyping()}},{key:"stopTypingOnEscapeKey",value:function(e){this.props.isTyping&&e.keyCode===jo.ESCAPE&&this.props.onStopTyping()}},{key:"startTypingInTextField",value:function(e){var t=this.props,n=t.isTyping,r=t.onStartTyping,o=e.type,i=e.target;n||!Object(Vo.isTextField)(i)||i.closest(".editor-block-toolbar")||("keydown"!==o||function(e){var t=e.keyCode;return!e.shiftKey&&Object(O.includes)(nu,t)}(e))&&r()}},{key:"stopTypingOnNonTextField",value:function(e){var t=this;e.persist(),this.props.setTimeout((function(){var n=t.props,r=n.isTyping,o=n.onStopTyping,i=e.target;r&&!Object(Vo.isTextField)(i)&&o()}))}},{key:"render",value:function(){var e=this.props.children;return Object(Ir.createElement)("div",{onFocus:this.stopTypingOnNonTextField,onKeyPress:this.startTypingInTextField,onKeyDown:this.onKeyDown},e)}}]),t}(Ir.Component),ou=Object(Lr.compose)([Object(l.withSelect)((function(e){return{isTyping:(0,e("core/editor").isTyping)()}})),Object(l.withDispatch)((function(e){var t=e("core/editor");return{onStartTyping:t.startTyping,onStopTyping:t.stopTyping}})),Lr.withSafeTimeout])(ru),iu=function(e){function t(){return Object(Nr.a)(this,t),Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"getSnapshotBeforeUpdate",value:function(e){var t=this.props,n=t.blockOrder,r=t.selectionStart;return n!==e.blockOrder&&r?this.getOffset(r):null}},{key:"componentDidUpdate",value:function(e,t,n){n&&this.restorePreviousOffset(n)}},{key:"getOffset",value:function(e){var t=Yi(e);return t?t.getBoundingClientRect().top:null}},{key:"restorePreviousOffset",value:function(e){var t=Yi(this.props.selectionStart);if(t){var n=Object(Vo.getScrollContainer)(t);n&&(n.scrollTop=n.scrollTop+t.getBoundingClientRect().top-e)}}},{key:"render",value:function(){return null}}]),t}(Ir.Component),cu=Object(l.withSelect)((function(e){return{blockOrder:e("core/editor").getBlockOrder(),selectionStart:e("core/editor").getBlockSelectionStart()}}))(iu),au=window.getSelection,su=Object(O.overEvery)([Vo.isTextField,Vo.focus.tabbable.isTabbableIndex]);var lu=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onKeyDown=e.onKeyDown.bind(Object(Ur.a)(Object(Ur.a)(e))),e.bindContainer=e.bindContainer.bind(Object(Ur.a)(Object(Ur.a)(e))),e.clearVerticalRect=e.clearVerticalRect.bind(Object(Ur.a)(Object(Ur.a)(e))),e.focusLastTextField=e.focusLastTextField.bind(Object(Ur.a)(Object(Ur.a)(e))),e.verticalRect=null,e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearVerticalRect",value:function(){this.verticalRect=null}},{key:"getClosestTabbable",value:function(e,t){var n=Vo.focus.focusable.find(this.container);return t&&(n=Object(O.reverse)(n)),n=n.slice(n.indexOf(e)+1),Object(O.find)(n,(function t(n,r,o){if(!Vo.focus.tabbable.isTabbableIndex(n))return!1;if(Object(Vo.isTextField)(n))return!0;if(!n.classList.contains("editor-block-list__block"))return!1;if(function(e){return!!e.querySelector(".editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var i,c=1;(i=o[r+c])&&n.contains(i);c++)if(t(i,r+c,o))return!1;return!0}))}},{key:"expandSelection",value:function(e){var t=this.props,n=t.selectedBlockClientId,r=t.selectionStartClientId,o=t.selectionBeforeEndClientId,i=t.selectionAfterEndClientId,c=e?o:i;c&&this.props.onMultiSelect(r||n,c)}},{key:"moveSelection",value:function(e){var t=this.props,n=t.selectedFirstClientId,r=t.selectedLastClientId,o=e?n:r;o&&this.props.onSelectBlock(o)}},{key:"isTabbableEdge",value:function(e,t){var n,r,o=this.getClosestTabbable(e,t);return!(o&&(n=e,r=o,n.closest("[data-block]")===r.closest("[data-block]")))}},{key:"onKeyDown",value:function(e){var t=this.props,n=t.hasMultiSelection,r=t.onMultiSelect,o=t.blocks,i=e.keyCode,c=e.target,a=i===jo.UP,s=i===jo.DOWN,l=i===jo.LEFT,u=i===jo.RIGHT,d=a||l,p=l||u,b=a||s,f=p||b,h=e.shiftKey,m=h||e.ctrlKey||e.altKey||e.metaKey,v=b?Vo.isVerticalEdge:Vo.isHorizontalEdge;if(!f)return jo.isKeyboardEvent.primary(e)&&(this.isEntirelySelected=Object(Vo.isEntirelySelected)(c)),void(jo.isKeyboardEvent.primary(e,"a")&&((c.isContentEditable?this.isEntirelySelected:Object(Vo.isEntirelySelected)(c))&&(r(Object(O.first)(o),Object(O.last)(o)),e.preventDefault()),this.isEntirelySelected=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===jo.UP||t===jo.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(c,i,m))if(b?this.verticalRect||(this.verticalRect=Object(Vo.computeCaretRect)(c)):this.verticalRect=null,h&&(n||this.isTabbableEdge(c,d)&&v(c,d)))this.expandSelection(d),e.preventDefault();else if(n)this.moveSelection(d),e.preventDefault();else if(b&&Object(Vo.isVerticalEdge)(c,d)){var g=this.getClosestTabbable(c,d);g&&(Object(Vo.placeCaretAtVerticalEdge)(g,d,this.verticalRect),e.preventDefault())}else if(p&&au().isCollapsed&&Object(Vo.isHorizontalEdge)(c,d)){var j=this.getClosestTabbable(c,d);Object(Vo.placeCaretAtHorizontalEdge)(j,d),e.preventDefault()}}},{key:"focusLastTextField",value:function(){var e=Vo.focus.focusable.find(this.container),t=Object(O.findLast)(e,su);t&&Object(Vo.placeCaretAtHorizontalEdge)(t,!0)}},{key:"render",value:function(){var e=this.props.children;return Object(Ir.createElement)("div",{className:"editor-writing-flow"},Object(Ir.createElement)("div",{ref:this.bindContainer,onKeyDown:this.onKeyDown,onMouseDown:this.clearVerticalRect},e),Object(Ir.createElement)("div",{"aria-hidden":!0,tabIndex:-1,onClick:this.focusLastTextField,className:"wp-block editor-writing-flow__click-redirect"}))}}]),t}(Ir.Component),uu=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,i=t.getPreviousBlockClientId,c=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,s=t.getLastMultiSelectedBlockClientId,l=t.hasMultiSelection,u=t.getBlockOrder,d=n(),p=r(),b=o();return{selectedBlockClientId:d,selectionStartClientId:p,selectionBeforeEndClientId:i(b||d),selectionAfterEndClientId:c(b||d),selectedFirstClientId:a(),selectedLastClientId:s(),hasMultiSelection:l(),blocks:u()}})),Object(l.withDispatch)((function(e){var t=e("core/editor");return{onMultiSelect:t.multiSelect,onSelectBlock:t.selectBlock}}))])(lu),du=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,pu=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new c(e),b(),t}}function c(e){this.start=e,this.end={line:n,column:r},this.source=t.source}c.prototype.content=e;var a=[];function s(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i;a.push(i)}function l(){return p(/^{\s*/)}function u(){return p(/^}/)}function d(){var t,n=[];for(b(),f(n);e.length&&"}"!==e.charAt(0)&&(t=C()||w());)!1!==t&&(n.push(t),f(n));return n}function p(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function b(){p(/^\s*/)}function f(e){var t;for(e=e||[];t=m();)!1!==t&&e.push(t);return e}function m(){var t=i();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return s("End of comment missing");var c=e.slice(2,n-2);return r+=2,o(c),e=e.slice(n),r+=2,t({type:"comment",comment:c})}}function v(){var e=p(/^([^{]+)/);if(e)return bu(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 O(){var e=i(),t=p(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=bu(t[0]),!p(/^:\s*/))return s("property missing ':'");var n=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(du,""),value:n?bu(n[0]).replace(du,""):""});return p(/^[;\s]*/),r}}function g(){var e,t=[];if(!l())return s("missing '{'");for(f(t);e=O();)!1!==e&&(t.push(e),f(t));return u()?t:s("missing '}'")}function j(){for(var e,t=[],n=i();e=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),p(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:g()})}var y,k=S("import"),_=S("charset"),E=S("namespace");function S(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=i(),r=p(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function C(){if("@"===e[0])return function(){var e=i(),t=p(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=p(/^([-\w]+)\s*/)))return s("@keyframes missing name");var r,o=t[1];if(!l())return s("@keyframes missing '{'");for(var c=f();r=j();)c.push(r),c=c.concat(f());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:c}):s("@keyframes missing '}'")}}()||function(){var e=i(),t=p(/^@media *([^{]+)/);if(t){var n=bu(t[1]);if(!l())return s("@media missing '{'");var r=f().concat(d());return u()?e({type:"media",media:n,rules:r}):s("@media missing '}'")}}()||function(){var e=i(),t=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:bu(t[1]),media:bu(t[2])})}()||function(){var e=i(),t=p(/^@supports *([^{]+)/);if(t){var n=bu(t[1]);if(!l())return s("@supports missing '{'");var r=f().concat(d());return u()?e({type:"supports",supports:n,rules:r}):s("@supports missing '}'")}}()||k()||_()||E()||function(){var e=i(),t=p(/^@([-\w]+)?document *([^{]+)/);if(t){var n=bu(t[1]),r=bu(t[2]);if(!l())return s("@document missing '{'");var o=f().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):s("@document missing '}'")}}()||function(){var e=i();if(p(/^@page */)){var t=v()||[];if(!l())return s("@page missing '{'");for(var n,r=f();n=O();)r.push(n),r=r.concat(f());return u()?e({type:"page",selectors:t,declarations:r}):s("@page missing '}'")}}()||function(){var e=i();if(p(/^@host\s*/)){if(!l())return s("@host missing '{'");var t=f().concat(d());return u()?e({type:"host",rules:t}):s("@host missing '}'")}}()||function(){var e=i();if(p(/^@font-face\s*/)){if(!l())return s("@font-face missing '{'");for(var t,n=f();t=O();)n.push(t),n=n.concat(f());return u()?e({type:"font-face",declarations:n}):s("@font-face missing '}'")}}()}function w(){var e=i(),t=v();return t?(f(),e({type:"rule",selectors:t,declarations:g()})):s("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type,o=r?t:n;for(var i in t){var c=t[i];Array.isArray(c)?c.forEach((function(t){e(t,o)})):c&&"object"===Object(h.a)(c)&&e(c,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((y=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:y,parsingErrors:a}}))};function bu(e){return e?e.replace(/^\s+|\s+$/g,""):""}var fu=n("P7XM"),hu=n.n(fu),mu=vu;function vu(e){this.options=e||{}}vu.prototype.emit=function(e){return e},vu.prototype.visit=function(e){return this[e.type](e)},vu.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Object(d.a)({},n,{selectors:n.selectors.map((function(n){return Object(O.includes)(t,n.trim())?n:n.match(Pu)?n.replace(/^(body|html)/,e):e+" "+n}))}):n}},Bu=function(e){function t(e){var n;return Object(Nr.a)(this,t),n=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments)),e.recovery?Object(Dr.a)(n):(e.updateEditorSettings(e.settings),e.updatePostLock(e.settings.postLock),e.setupEditor(e.post,e.initialEdits),e.settings.autosave&&e.createWarningNotice(Object(_.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(_.__)("View the autosave"),url:e.settings.autosave.editLink}]}),n)}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){this.props.settings.styles&&Object(O.map)(this.props.settings.styles,(function(e){var t=e.css,n=e.baseURL,r=[Iu(".editor-styles-wrapper")];n&&r.push(Tu(n));var o=Eu(t,Object(Lr.compose)(r));if(o){var i=document.createElement("style");i.innerHTML=o,document.body.appendChild(i)}}))}},{key:"componentDidUpdate",value:function(e){this.props.settings!==e.settings&&this.props.updateEditorSettings(this.props.settings)}},{key:"render",value:function(){var e=this.props.children,t=[[Hr.SlotFillProvider],[Hr.DropZoneProvider]];return Object(O.flow)(t.map((function(e){var t=Object(u.a)(e,2),n=t[0],r=t[1];return function(e){return Object(Ir.createElement)(n,r,e)}})))(e)}}]),t}(Ir.Component),xu=Object(l.withDispatch)((function(e){var t=e("core/editor");return{setupEditor:t.setupEditor,updateEditorSettings:t.updateEditorSettings,updatePostLock:t.updatePostLock,createWarningNotice:e("core/notices").createWarningNotice}}))(Bu),Lu=["left","center","right","wide","full"],Au=["wide","full"];function Nu(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?Lu:[],!r||!0===e&&!n?O.without.apply(void 0,[t].concat(Au)):t}var Ru=Object(Lr.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Nu(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0));return[r.length>0&&t.isSelected&&Object(Ir.createElement)(po,{key:"align-controls"},Object(Ir.createElement)(co,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(i.getBlockType)(t.name);Object(O.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:r})),Object(Ir.createElement)(e,Object(Pr.a)({key:"edit"},t))]}}),"withToolbarControls"),Du=Object(Lr.createHigherOrderComponent)(Object(Lr.compose)([Object(l.withSelect)((function(e){return{hasWideEnabled:!!(0,e("core/editor").getEditorSettings)().alignWide}})),function(e){return function(t){var n=t.name,r=t.attributes,o=t.hasWideEnabled,c=r.align,a=Nu(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0),o),s=t.wrapperProps;return Object(O.includes)(a,c)&&(s=Object(d.a)({},s,{"data-align":c})),Object(Ir.createElement)(e,Object(Pr.a)({},t,{wrapperProps:s}))}}]));Object(Ar.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(O.has)(e.attributes,["align","type"])||Object(i.hasBlockSupport)(e,"align")&&(e.attributes=Object(O.assign)(e.attributes,{align:{type:"string"}})),e})),Object(Ar.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Du),Object(Ar.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Ru),Object(Ar.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align,o=Object(i.getBlockSupport)(t,"align"),c=Object(i.hasBlockSupport)(t,"alignWide",!0);return Object(O.includes)(Nu(o,c),r)&&(e.className=xr()("align".concat(r),e.className)),e}));var Fu=/[\s#]/g;var Mu=Object(Lr.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(e,t),Object(Ir.createElement)(uc,null,Object(Ir.createElement)(Hr.TextControl,{label:Object(_.__)("HTML Anchor"),help:Object(_.__)("Anchors lets you link directly to a section on a page."),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(Fu,"-"),t.setAttributes({anchor:e})}}))):Object(Ir.createElement)(e,t)}}),"withInspectorControl");Object(Ar.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(i.hasBlockSupport)(e,"anchor")&&(e.attributes=Object(O.assign)(e.attributes,{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e})),Object(Ar.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",Mu),Object(Ar.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(i.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));var Uu=Object(Lr.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(e,t),Object(Ir.createElement)(uc,null,Object(Ir.createElement)(Hr.TextControl,{label:Object(_.__)("Additional CSS Class"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:e})}}))):Object(Ir.createElement)(e,t)}}),"withInspectorControl");function Hu(e){e="
    ".concat(e,"
    ");var t=Object(i.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(Ar.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(i.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=Object(O.assign)(e.attributes,{className:{type:"string"}})),e})),Object(Ar.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Uu),Object(Ar.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(i.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=xr()(e.className,n.className)),e})),Object(Ar.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(i.hasBlockSupport)(t,"customClassName",!0)){var r=Object(O.omit)(e,["className"]),o=Object(i.getSaveContent)(t,r),c=Hu(o),a=Hu(n),s=Object(O.difference)(a,c);s.length?e.className=s.join(" "):o&&delete e.className}return e}));var Vu=[eo],Ku=Object(O.once)((function(){return Object(l.dispatch)("core/editor").__experimentalFetchReusableBlocks()}));Object(Ar.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",(function(e,t){return e||(e=Vu.map(O.clone),t===Object(i.getDefaultBlockName)()&&(e.push(Object(O.clone)(Jr)),Ku())),e})),Object(Ar.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(i.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(O.uniq)([Object(i.getBlockDefaultClassName)(t.name)].concat(Object(b.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(i.getBlockDefaultClassName)(t.name)),e}))},PYwp:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},Rk8H:function(e,t,n){var r=n("jTPX");e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o: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 i=e.nodeName,c=document.createElement(i);c.innerHTML=" ","TEXTAREA"===i.toUpperCase()&&c.setAttribute("rows","1");var a=r(e,"font-size");c.style.fontSize=a,c.style.padding="0px",c.style.border="0px";var s=document.body;s.appendChild(c),n=c.offsetHeight,s.removeChild(c)}return n}},RxS6:function(e,t){!function(){e.exports=this.wp.keycodes}()},TSYQ:function(e,t,n){var r; +*/o=[e,t],void 0===(i="function"==typeof(r=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,c=null,a=function(){e.clientWidth!==r&&d()},s=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.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",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:s,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function l(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 t=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),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}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(r0&&void 0!==arguments[0]?arguments[0]:{};return function(t){(e=Object(d.a)({},j,e)).shouldOverwriteState=Object(O.overSome)([e.shouldOverwriteState,function(t){return Object(O.includes)(e.ignoreTypes,t.type)}]);var n={past:[],present:t(void 0,{}),future:[],lastAction:null,shouldCreateUndoLevel:!1},r=e,o=r.resetTypes,i=void 0===o?[]:o,c=r.shouldOverwriteState,a=void 0===c?function(){return!1}:c;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,r=arguments.length>1?arguments[1]:void 0,o=e.past,c=e.present,s=e.future,l=e.lastAction,u=e.shouldCreateUndoLevel,p=l;switch(r.type){case"UNDO":return o.length?{past:Object(O.dropRight)(o),present:Object(O.last)(o),future:[c].concat(Object(b.a)(s)),lastAction:null,shouldCreateUndoLevel:!1}:e;case"REDO":return s.length?{past:Object(b.a)(o).concat([c]),present:Object(O.first)(s),future:Object(O.drop)(s),lastAction:null,shouldCreateUndoLevel:!1}:e;case"CREATE_UNDO_LEVEL":return Object(d.a)({},e,{lastAction:null,shouldCreateUndoLevel:!0})}var f=t(c,r);if(Object(O.includes)(i,r.type))return{past:[],present:f,future:[],lastAction:null,shouldCreateUndoLevel:!1};if(c===f)return e;var h=o,m=p;return!u&&o.length&&a(r,p)||(h=Object(b.a)(o).concat([c]),m=r),{past:h,present:f,future:[],shouldCreateUndoLevel:!1,lastAction:m}}}},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return function(n,r){var o=t(n,r),i=void 0===n||Object(O.includes)(e.resetTypes,r.type),c=n!==o;if(!c&&!i)return n;c&&void 0!==n||(o=Object(d.a)({},o));var a=Object(O.includes)(e.ignoreTypes,r.type);return o.isDirty=a?n.isDirty:!i&&c,o}}},_=n("l3Sj"),E={insertUsage:{},isPublishSidebarEnabled:!0},S={alignWide:!1,colors:[{name:Object(_.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(_.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(_.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(_.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(_.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(_.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(_.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(_.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(_.__)("Very light gray"),slug:"very-light-gray",color:"#eeeeee"},{name:Object(_.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(_.__)("Very dark gray"),slug:"very-dark-gray",color:"#313131"}],fontSizes:[{name:Object(_._x)("Small","font size name"),size:13,slug:"small"},{name:Object(_._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(_._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(_._x)("Large","font size name"),size:36,slug:"large"},{name:Object(_._x)("Huge","font size name"),size:48,slug:"huge"}],imageSizes:[{slug:"thumbnail",label:Object(_.__)("Thumbnail")},{slug:"medium",label:Object(_.__)("Medium")},{slug:"large",label:Object(_.__)("Large")},{slug:"full",label:Object(_.__)("Full Size")}],maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,richEditingEnabled:!0},C={};function w(e,t,n){return Object(b.a)(e.slice(0,n)).concat(Object(b.a)(Object(O.castArray)(t)),Object(b.a)(e.slice(n)))}function T(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(b.a)(e);return o.splice(t,r),w(o,e.slice(t,t+r),n)}var P=new Set(["meta"]);function I(e){return e&&"object"===Object(h.a)(e)&&"raw"in e?e.raw:e}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(f.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,B(o,r))})),n}function x(e,t){for(var n={},r=Object(b.a)(e);r.length;){var o=r.shift(),i=o.innerBlocks,c=Object(p.a)(o,["innerBlocks"]);r.push.apply(r,Object(b.a)(i)),n[c.clientId]=t(c)}return n}function L(e){return x(e,(function(e){return Object(O.omit)(e,"attributes")}))}function A(e){return x(e,(function(e){return e.attributes}))}function N(e,t){return e===t?Object(d.a)({},e):t}function R(e,t){return Object(O.isEqual)(Object(O.keys)(e),Object(O.keys)(t))}function D(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&e.clientId===t.clientId&&R(e.attributes,t.attributes)}function F(e,t){return"EDIT_POST"===e.type&&R(e.edits,t.edits)}var M=Object(O.flow)([l.combineReducers,function(e){return function(t,n){if(t&&"REMOVE_BLOCKS"===n.type){for(var r=Object(b.a)(n.clientIds),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"EDIT_POST":return Object(O.reduce)(t.edits,(function(t,n,r){return n!==e[r]&&(t=N(e,t),P.has(r)?t[r]=Object(d.a)({},t[r],n):t[r]=n),t}),e);case"RESET_BLOCKS":return"content"in e?Object(O.omit)(e,"content"):e;case"UPDATE_POST":case"RESET_POST":var n="UPDATE_POST"===t.type?function(e){return t.edits[e]}:function(e){return I(t.post[e])};return Object(O.reduce)(e,(function(t,r,o){return Object(O.isEqual)(r,n(o))?(delete(t=N(e,t))[o],t):t}),e)}return e},blocks:Object(O.flow)([l.combineReducers,function(e){return function(t,n){if(t&&"RESET_BLOCKS"===n.type){var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(O.reduce)(t[n],(function(n,r){return Object(b.a)(n).concat([r],Object(b.a)(e(t,r)))}),[])}(t.order);return Object(d.a)({},t,{byClientId:Object(d.a)({},Object(O.omit)(t.byClientId,r),L(n.blocks)),attributes:Object(d.a)({},Object(O.omit)(t.attributes,r),A(n.blocks)),order:Object(d.a)({},Object(O.omit)(t.order,r),B(n.blocks))})}return e(t,n)}},function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=Object(d.a)({},t)).attributes=Object(O.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?Object(d.a)({},e,{ref:o}):e}))}return e(t,n)}},k({resetTypes:["SETUP_EDITOR_STATE","REQUEST_POST_UPDATE_START"],ignoreTypes:["RECEIVE_BLOCKS","RESET_POST","UPDATE_POST"]})])({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":return L(t.blocks);case"RECEIVE_BLOCKS":return Object(d.a)({},e,L(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(O.omit)(t.updates,"attributes");return Object(O.isEmpty)(n)?e:Object(d.a)({},e,Object(f.a)({},t.clientId,Object(d.a)({},e[t.clientId],n)));case"INSERT_BLOCKS":return Object(d.a)({},e,L(t.blocks));case"REPLACE_BLOCKS":return t.blocks?Object(d.a)({},Object(O.omit)(e,t.clientIds),L(t.blocks)):e;case"REMOVE_BLOCKS":return Object(O.omit)(e,t.clientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":return A(t.blocks);case"RECEIVE_BLOCKS":return Object(d.a)({},e,A(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Object(d.a)({},e,Object(f.a)({},t.clientId,Object(d.a)({},e[t.clientId],t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(!e[t.clientId])return e;var n=Object(O.reduce)(t.attributes,(function(n,r,o){return r!==n[o]&&((n=N(e[t.clientId],n))[o]=r),n}),e[t.clientId]);return n===e[t.clientId]?e:Object(d.a)({},e,Object(f.a)({},t.clientId,n));case"INSERT_BLOCKS":return Object(d.a)({},e,A(t.blocks));case"REPLACE_BLOCKS":return t.blocks?Object(d.a)({},Object(O.omit)(e,t.clientIds),A(t.blocks)):e;case"REMOVE_BLOCKS":return Object(O.omit)(e,t.clientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":return B(t.blocks);case"RECEIVE_BLOCKS":return Object(d.a)({},e,Object(O.omit)(B(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=t.blocks,i=e[r]||[],c=B(o,r),a=t.index,s=void 0===a?i.length:a;return Object(d.a)({},e,c,Object(f.a)({},r,w(i,c[r],s)));case"MOVE_BLOCK_TO_POSITION":var l,u=t.fromRootClientId,p=void 0===u?"":u,h=t.toRootClientId,m=void 0===h?"":h,v=t.clientId,g=t.index,j=void 0===g?e[m].length:g;if(p===m){var y=e[m],k=y.indexOf(v);return Object(d.a)({},e,Object(f.a)({},m,T(e[m],k,j)))}return Object(d.a)({},e,(l={},Object(f.a)(l,p,Object(O.without)(e[p],v)),Object(f.a)(l,m,w(e[m],v,j)),l));case"MOVE_BLOCKS_UP":var _=t.clientIds,E=t.rootClientId,S=void 0===E?"":E,C=Object(O.first)(_),P=e[S];if(!P.length||C===Object(O.first)(P))return e;var I=P.indexOf(C);return Object(d.a)({},e,Object(f.a)({},S,T(P,I,I-1,_.length)));case"MOVE_BLOCKS_DOWN":var x=t.clientIds,L=t.rootClientId,A=void 0===L?"":L,N=Object(O.first)(x),R=Object(O.last)(x),D=e[A];if(!D.length||R===Object(O.last)(D))return e;var F=D.indexOf(N);return Object(d.a)({},e,Object(f.a)({},A,T(D,F,F+1,x.length)));case"REPLACE_BLOCKS":var M=t.blocks,U=t.clientIds;if(!M)return e;var H=B(M);return Object(O.flow)([function(e){return Object(O.omit)(e,U)},function(e){return Object(d.a)({},e,Object(O.omit)(H,""))},function(e){return Object(O.mapValues)(e,(function(e){return Object(O.reduce)(e,(function(e,t){return t===U[0]?Object(b.a)(e).concat(Object(b.a)(H[""])):(-1===U.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS":return Object(O.flow)([function(e){return Object(O.omit)(e,t.clientIds)},function(e){return Object(O.mapValues)(e,(function(e){return O.without.apply(void 0,[e].concat(Object(b.a)(t.clientIds)))}))}])(e)}return e}})});var U=Object(l.combineReducers)({data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_REUSABLE_BLOCKS":return Object(O.reduce)(t.results,(function(t,n){var r=n.reusableBlock,o=r.id,i=r.title,c={clientId:n.parsedBlock.clientId,title:i};return Object(O.isEqual)(t[o],c)||((t=N(e,t))[o]=c),t}),e);case"UPDATE_REUSABLE_BLOCK_TITLE":var n=t.id,r=t.title;return e[n]&&e[n].title!==r?Object(d.a)({},e,Object(f.a)({},n,Object(d.a)({},e[n],{title:r}))):e;case"SAVE_REUSABLE_BLOCK_SUCCESS":var o=t.id,i=t.updatedId;if(o===i)return e;var c=e[o];return Object(d.a)({},Object(O.omit)(e,o),Object(f.a)({},i,c));case"REMOVE_REUSABLE_BLOCK":var a=t.id;return Object(O.omit)(e,a)}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_REUSABLE_BLOCKS":var n=t.id;return n?Object(d.a)({},e,Object(f.a)({},n,!0)):e;case"FETCH_REUSABLE_BLOCKS_SUCCESS":case"FETCH_REUSABLE_BLOCKS_FAILURE":var r=t.id;return Object(O.omit)(e,r)}return e},isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SAVE_REUSABLE_BLOCK":return Object(d.a)({},e,Object(f.a)({},t.id,!0));case"SAVE_REUSABLE_BLOCK_SUCCESS":case"SAVE_REUSABLE_BLOCK_FAILURE":var n=t.id;return Object(O.omit)(e,n)}return e}});var H=v()(Object(l.combineReducers)({editor:M,initialEdits:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR":if(!t.edits)break;return t.edits;case"SETUP_EDITOR_STATE":return"content"in e?Object(O.omit)(e,"content"):e;case"UPDATE_POST":return Object(O.reduce)(t.edits,(function(t,n,r){return t.hasOwnProperty(r)?(delete(t=N(e,t))[r],t):t}),e);case"RESET_POST":return C}return e},currentPost:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":var n;if(t.post)n=t.post;else{if(!t.edits)return e;n=Object(d.a)({},e,t.edits)}return Object(O.mapValues)(n,I)}return e},isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},blockSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{start:null,end:null,isMultiSelecting:!1,isEnabled:!0,initialPosition:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return null!==e.start||null!==e.end||e.isMultiSelecting?Object(d.a)({},e,{start:null,end:null,isMultiSelecting:!1,initialPosition:null}):e;case"START_MULTI_SELECT":return e.isMultiSelecting?e:Object(d.a)({},e,{isMultiSelecting:!0,initialPosition:null});case"STOP_MULTI_SELECT":return e.isMultiSelecting?Object(d.a)({},e,{isMultiSelecting:!1,initialPosition:null}):e;case"MULTI_SELECT":return Object(d.a)({},e,{start:t.start,end:t.end,initialPosition:null});case"SELECT_BLOCK":return t.clientId===e.start&&t.clientId===e.end?e:Object(d.a)({},e,{start:t.clientId,end:t.clientId,initialPosition:t.initialPosition});case"INSERT_BLOCKS":return t.updateSelection?Object(d.a)({},e,{start:t.blocks[0].clientId,end:t.blocks[0].clientId,initialPosition:null,isMultiSelecting:!1}):e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.start)?Object(d.a)({},e,{start:null,end:null,initialPosition:null,isMultiSelecting:!1}):e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.start))return e;var n=Object(O.get)(t.blocks,[0,"clientId"],null);return n===e.start&&n===e.end?e:Object(d.a)({},e,{start:n,end:n,initialPosition:null,isMultiSelecting:!1});case"TOGGLE_SELECTION":return Object(d.a)({},e,{isEnabled:t.isSelectionEnabled})}return e},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return Object(d.a)({},e,Object(f.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var 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(O.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(O.isEqual)(e[n],t.settings)?e:Object(d.a)({},e,Object(f.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(O.omit)(e,n):e}return e},insertionPoint:function(){var 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":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r};case"HIDE_INSERTION_POINT":return null}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.name,o={name:n.name};return Object(i.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),Object(d.a)({},e,{insertUsage:Object(d.a)({},e.insertUsage,Object(f.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e);case"REMOVE_REUSABLE_BLOCK":return Object(d.a)({},e,{insertUsage:Object(O.omitBy)(e.insertUsage,(function(e){return e.insert.ref===t.id}))});case"ENABLE_PUBLISH_SIDEBAR":return Object(d.a)({},e,{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return Object(d.a)({},e,{isPublishSidebarEnabled:!1})}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_POST_UPDATE_START":return{requesting:!0,successful:!1,error:null,options:t.options||{}};case"REQUEST_POST_UPDATE_SUCCESS":return{requesting:!1,successful:!0,error:null,options:t.options||{}};case"REQUEST_POST_UPDATE_FAILURE":return{requesting:!1,successful:!1,error:t.error,options:t.options||{}}}return e},postLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLocked:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_POST_LOCK":return t.lock}return e},reusableBlocks:U,template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return Object(d.a)({},e,{isValid:t.isValid})}return e},autosave:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_AUTOSAVE":var n=t.post,r=["title","excerpt","content"].map((function(e){return I(n[e])})),o=Object(u.a)(r,3),i=o[0],c=o[1],a=o[2];return{title:i,excerpt:c,content:a}}return e},previewLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_POST_UPDATE_SUCCESS":return t.post.preview_link?t.post.preview_link:t.post.link?Object(g.addQueryArgs)(t.post.link,{preview:!0}):e;case"REQUEST_POST_UPDATE_START":if(e&&t.options.isPreview)return null}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_EDITOR_SETTINGS":return Object(d.a)({},e,t.settings)}return e},postSavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_SAVING":return Object(d.a)({},e,Object(f.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(O.omit)(e,t.lockName)}return e}})),V=n("gQxa"),K=n.n(V),W=n("d2gM"),z=n.n(W),q=n("gdqT");function G(e,t){return{type:"SETUP_EDITOR",post:e,edits:t}}function Y(e){return{type:"RESET_POST",post:e}}function $(e){return{type:"RESET_AUTOSAVE",post:e}}function X(e){return{type:"UPDATE_POST",edits:e}}function Q(e,t){return{type:"SETUP_EDITOR_STATE",post:e,blocks:t}}function Z(e){return{type:"RESET_BLOCKS",blocks:e}}function J(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function ee(e,t){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientId:e,attributes:t}}function te(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function re(){return{type:"START_MULTI_SELECT"}}function oe(){return{type:"STOP_MULTI_SELECT"}}function ie(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function ce(){return{type:"CLEAR_SELECTED_BLOCK"}}function ae(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function se(e,t){return{type:"REPLACE_BLOCKS",clientIds:Object(O.castArray)(e),blocks:Object(O.castArray)(t),time:Date.now()}}function le(e,t){return se(e,t)}function ue(e){return function(t,n){return{clientIds:Object(O.castArray)(t),type:e,rootClientId:n}}}var de=ue("MOVE_BLOCKS_DOWN"),pe=ue("MOVE_BLOCKS_UP");function be(e,t,n,r){return{type:"MOVE_BLOCK_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientId:e,index:r}}function fe(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return he([e],t,n,r)}function he(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return{type:"INSERT_BLOCKS",blocks:Object(O.castArray)(e),index:t,rootClientId:n,time:Date.now(),updateSelection:r}}function me(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function ve(){return{type:"HIDE_INSERTION_POINT"}}function Oe(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function ge(){return{type:"SYNCHRONIZE_TEMPLATE"}}function je(e){return{type:"EDIT_POST",edits:e}}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE",options:e}}function ke(){return{type:"REFRESH_POST"}}function _e(e,t){return{type:"TRASH_POST",postId:e,postType:t}}function Ee(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function Se(e){return ye(Object(d.a)({isAutosave:!0},e))}function Ce(){return{type:"REDO"}}function we(){return{type:"UNDO"}}function Te(){return{type:"CREATE_UNDO_LEVEL"}}function Pe(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{type:"REMOVE_BLOCKS",clientIds:Object(O.castArray)(e),selectPrevious:t}}function Ie(e,t){return Pe([e],t)}function Be(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function xe(){return{type:"START_TYPING"}}function Le(){return{type:"STOP_TYPING"}}function Ae(){return{type:"ENTER_FORMATTED_TEXT"}}function Ne(){return{type:"EXIT_FORMATTED_TEXT"}}function Re(e){return{type:"UPDATE_POST_LOCK",lock:e}}function De(e){return{type:"FETCH_REUSABLE_BLOCKS",id:e}}function Fe(e){return{type:"RECEIVE_REUSABLE_BLOCKS",results:e}}function Me(e){return{type:"SAVE_REUSABLE_BLOCK",id:e}}function Ue(e){return{type:"DELETE_REUSABLE_BLOCK",id:e}}function He(e,t){return{type:"UPDATE_REUSABLE_BLOCK_TITLE",id:e,title:t}}function Ve(e){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:e}}function Ke(e){return{type:"CONVERT_BLOCK_TO_REUSABLE",clientIds:Object(O.castArray)(e)}}function We(e,t,n){return fe(Object(i.createBlock)(Object(i.getDefaultBlockName)(),e),n,t)}function ze(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function qe(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}function Ge(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function Ye(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function $e(e){return{type:"LOCK_POST_SAVING",lockName:e}}function Xe(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}var Qe=n("pPDe"),Ze=n("FqII"),Je=n("UuzZ"),et="post-update",tt=/%(?:postname|pagename)%/,nt=3,rt=2,ot=1,it=0,ct=[];function at(e){return e.editor.past.length>0}function st(e){return e.editor.future.length>0}function lt(e){return"auto-draft"===bt(e).status}function ut(e){return e.editor.present.blocks.isDirty||"content"in e.editor.present.edits}function dt(e){return!!ut(e)||(Object.keys(e.editor.present.edits).length>0||rr(e,dt))}function pt(e){return!dt(e)&<(e)}function bt(e){return e.currentPost}function ft(e){return e.currentPost.type}function ht(e){return bt(e).id||null}function mt(e){return Object(O.get)(bt(e),["_links","version-history",0,"count"],0)}function vt(e){return Object(O.get)(bt(e),["_links","predecessor-version",0,"id"],null)}var Ot=Object(Qe.a)((function(e){return Object(d.a)({},e.initialEdits,e.editor.present.edits)}),(function(e){return[e.editor.present.edits,e.initialEdits]})),gt=Object(Qe.a)((function(){return[]}),(function(e){return[e.editor]}));function jt(e,t){var n=bt(e);if(n.hasOwnProperty(t))return n[t]}function yt(e,t){switch(t){case"content":return Un(e)}var n=Ot(e);return n.hasOwnProperty(t)?P.has(t)?Object(d.a)({},jt(e,t),n[t]):n[t]:jt(e,t)}function kt(e,t){if(!xt(e))return null;var n=Bt(e);return n.hasOwnProperty(t)?n[t]:void 0}function _t(e){return"private"===yt(e,"status")?"private":yt(e,"password")?"password":"public"}function Et(e){return"pending"===bt(e).status}function St(e){var t=bt(e);return-1!==["publish","private"].indexOf(t.status)||"future"===t.status&&!Object(Ze.isInTheFuture)(new Date(Number(Object(Ze.getDate)(t.date))-6e4))}function Ct(e){return"future"===bt(e).status&&!St(e)}function wt(e){var t=bt(e);return dt(e)||-1===["publish","private","future"].indexOf(t.status)}function Tt(e){return!xn(e)&&(!!yt(e,"title")||!!yt(e,"excerpt")||!Pt(e))}function Pt(e){var t=Mn(e);if(t.length&&!("content"in Ot(e))){if(t.length>1)return!1;if(t[0].name!==Object(i.getFreeformContentHandlerName)())return!1}return!Un(e)}function It(e){if(!Tt(e))return!1;if(!xt(e))return!0;if(ut(e))return!0;var t=Bt(e);return["title","excerpt"].some((function(n){return t[n]!==yt(e,n)}))}function Bt(e){return e.autosave}function xt(e){return!!Bt(e)}function Lt(e){var t=yt(e,"date"),n=new Date(Number(Object(Ze.getDate)(t))-6e4);return Object(Ze.isInTheFuture)(n)}function At(e){var t=yt(e,"date"),n=yt(e,"modified"),r=yt(e,"status");return("draft"===r||"auto-draft"===r)&&t===n}var Nt=Object(Qe.a)((function(){return[]}),(function(e,t){return Object(O.map)(mn(e,t),(function(t){return Mt(e,t)}))}));function Rt(e,t){var n=e.editor.present.blocks.byClientId[t];return n?n.name:null}function Dt(e,t){var n=e.editor.present.blocks.byClientId[t];return!!n&&n.isValid}var Ft=Object(Qe.a)((function(e,t){var n=e.editor.present.blocks.byClientId[t];if(!n)return null;var r=e.editor.present.blocks.attributes[t],o=Object(i.getBlockType)(n.name);return o&&(r=Object(O.reduce)(o.attributes,(function(t,n,o){return"meta"===n.source&&(t===r&&(t=Object(d.a)({},t)),t[o]=function(e,t){return Object(O.has)(e,["editor","present","edits","meta",t])?Object(O.get)(e,["editor","present","edits","meta",t]):Object(O.get)(e,["currentPost","meta",t])}(e,n.meta)),t}),r)),r}),(function(e,t){return[e.editor.present.blocks.byClientId[t],e.editor.present.blocks.attributes[t],e.editor.present.edits.meta,e.initialEdits.meta,e.currentPost.meta]})),Mt=Object(Qe.a)((function(e,t){var n=e.editor.present.blocks.byClientId[t];return n?Object(d.a)({},n,{attributes:Ft(e,t),innerBlocks:Ht(e,t)}):null}),(function(e,t){return Object(b.a)(Ft.getDependants(e,t)).concat([Nt(e,t)])})),Ut=Object(Qe.a)((function(e,t){var n=e.editor.present.blocks.byClientId[t];return n?Object(d.a)({},n,{attributes:Ft(e,t)}):null}),(function(e,t){return[e.editor.present.blocks.byClientId[t]].concat(Object(b.a)(Ft.getDependants(e,t)))}));var Ht=Object(Qe.a)((function(e,t){return Object(O.map)(mn(e,t),(function(t){return Mt(e,t)}))}),(function(e){return[e.editor.present.blocks]})),Vt=function e(t,n){return Object(O.flatMap)(n,(function(n){var r=mn(t,n);return Object(b.a)(r).concat(Object(b.a)(e(t,r)))}))},Kt=Object(Qe.a)((function(e){var t=mn(e);return Object(b.a)(t).concat(Object(b.a)(Vt(e,t)))}),(function(e){return[e.editor.present.blocks.order]})),Wt=Object(Qe.a)((function(e,t){var n=Kt(e);return t?Object(O.reduce)(n,(function(n,r){return e.editor.present.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.editor.present.blocks.order,e.editor.present.blocks.byClientId]})),zt=Object(Qe.a)((function(e,t){return Object(O.map)(Object(O.castArray)(t),(function(t){return Mt(e,t)}))}),(function(e){return[e.editor.present.edits.meta,e.initialEdits.meta,e.currentPost.meta,e.editor.present.blocks]}));function qt(e,t){return mn(e,t).length}function Gt(e){return e.blockSelection.start}function Yt(e){return e.blockSelection.end}function $t(e){var t=cn(e).length;return t||(e.blockSelection.start?1:0)}function Xt(e){var t=e.blockSelection,n=t.start,r=t.end;return!!n&&n===r}function Qt(e){var t=e.blockSelection,n=t.start,r=t.end;return n&&n===r&&e.editor.present.blocks.byClientId[n]?n:null}function Zt(e){var t=Qt(e);return t?Mt(e,t):null}var Jt=Object(Qe.a)((function(e,t){var n=e.editor.present.blocks.order;for(var r in n)if(Object(O.includes)(n[r],t))return r;return null}),(function(e){return[e.editor.present.blocks.order]})),en=Object(Qe.a)((function(e,t){for(var n=t,r=t;n;)n=Jt(e,r=n);return r}),(function(e){return[e.editor.present.blocks.order]}));function tn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=Qt(e)),void 0===t&&(t=n<0?sn(e):ln(e)),!t)return null;var r=Jt(e,t);if(null===r)return null;var o=e.editor.present.blocks.order,i=o[r],c=i.indexOf(t),a=c+1*n;return a<0||a===i.length?null:i[a]}function nn(e,t){return tn(e,t,-1)}function rn(e,t){return tn(e,t,1)}function on(e){var t=e.blockSelection,n=t.start;return n===t.end&&n?e.blockSelection.initialPosition:null}var cn=Object(Qe.a)((function(e){var t=e.blockSelection,n=t.start,r=t.end;if(n===r)return[];var o=Jt(e,n);if(null===o)return[];var i=mn(e,o),c=i.indexOf(n),a=i.indexOf(r);return c>a?i.slice(a,c+1):i.slice(c,a+1)}),(function(e){return[e.editor.present.blocks.order,e.blockSelection.start,e.blockSelection.end]})),an=Object(Qe.a)((function(e){var t=cn(e);return t.length?t.map((function(t){return Mt(e,t)})):ct}),(function(e){return Object(b.a)(cn.getDependants(e)).concat([e.editor.present.blocks,e.editor.present.edits.meta,e.initialEdits.meta,e.currentPost.meta])}));function sn(e){return Object(O.first)(cn(e))||null}function ln(e){return Object(O.last)(cn(e))||null}var un=Object(Qe.a)((function(e,t,n){for(var r=n;t!==r&&r;)r=Jt(e,r);return t===r}),(function(e){return[e.editor.present.blocks.order]}));function dn(e,t){return sn(e)===t}function pn(e,t){return-1!==cn(e).indexOf(t)}var bn=Object(Qe.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=pn(e,n=Jt(e,n));return r}),(function(e){return[e.editor.present.blocks.order,e.blockSelection.start,e.blockSelection.end]}));function fn(e){var t=e.blockSelection,n=t.start;return n===t.end?null:n||null}function hn(e){var t=e.blockSelection,n=t.start,r=t.end;return n===r?null:r||null}function mn(e,t){return e.editor.present.blocks.order[t||""]||ct}function vn(e,t,n){return mn(e,n).indexOf(t)}function On(e,t){var n=e.blockSelection,r=n.start;return r===n.end&&r===t}function gn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(O.some)(mn(e,t),(function(t){return On(e,t)||pn(e,t)||n&&gn(e,t,n)}))}function jn(e,t){if(!t)return!1;var n=cn(e),r=n.indexOf(t);return r>-1&&r2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(O.isBoolean)(e)?e:Object(O.isArray)(e)?Object(O.includes)(e,t):n},o=Object(i.getBlockType)(t);if(!o)return!1;var c=ir(e),a=c.allowedBlockTypes,s=r(a,t,!0);if(!s)return!1;var l=!!Bn(e,n);if(l)return!1;var u=or(e,n),d=Object(O.get)(u,["allowedBlocks"]),p=r(d,t),b=o.parent,f=Rt(e,n),h=r(b,f);return null!==p&&null!==h?p||h:null!==p?p:null===h||h},Vn=Object(Qe.a)(Hn,(function(e,t,n){return[e.blockListSettings[n],e.editor.present.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function Kn(e,t){return e.preferences.insertUsage[t]||null}var Wn=function(e,t,n){return!!Object(i.hasBlockSupport)(t,"inserter",!0)&&Hn(e,t.name,n)},zn=function(e,t,n){if(!Hn(e,"core/block",n))return!1;var r=Rt(e,t.clientId);return!!r&&(!!Object(i.getBlockType)(r)&&(!!Hn(e,r,n)&&!un(e,t.clientId,n)))},qn=Object(Qe.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e,t,n){return n?nt:t>0?rt:"common"===e?ot:it},r=function(e,t){if(!e)return t;var 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}},o=function(t){var o=t.name,c=!1;Object(i.hasBlockSupport)(t.name,"multiple",!0)||(c=Object(O.some)(zt(e,Kt(e)),{name:t.name}));var a=Object(O.isArray)(t.parent),s=Kn(e,o)||{},l=s.time,u=s.count,d=void 0===u?0:u;return{id:o,name:t.name,initialAttributes:{},title:t.title,icon:t.icon,category:t.category,keywords:t.keywords,isDisabled:c,utility:n(t.category,d,a),frecency:r(l,d),hasChildBlocksWithInserterSupport:Object(i.hasChildBlocksWithInserterSupport)(t.name)}},c=function(t){var o="core/block/".concat(t.id),c=Rt(e,t.clientId),a=Object(i.getBlockType)(c),s=Kn(e,o)||{},l=s.time,u=s.count,d=void 0===u?0:u,p=n("reusable",d,!1),b=r(l,d);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:a.icon,category:"reusable",keywords:[],isDisabled:!1,utility:p,frecency:b}},a=Object(i.getBlockTypes)().filter((function(n){return Wn(e,n,t)})).map(o),s=Qn(e).filter((function(n){return zn(e,n,t)})).map(c);return Object(O.orderBy)(Object(b.a)(a).concat(Object(b.a)(s)),["utility","frecency"],["desc","desc"])}),(function(e,t){return[e.blockListSettings[t],e.editor.present.blocks.byClientId,e.editor.present.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,e.reusableBlocks.data,Object(i.getBlockTypes)()]})),Gn=Object(Qe.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(O.some)(Object(i.getBlockTypes)(),(function(n){return Wn(e,n,t)}));if(n)return!0;var r=Object(O.some)(Qn(e),(function(n){return zn(e,n,t)}));return r}),(function(e,t){return[e.blockListSettings[t],e.editor.present.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,e.reusableBlocks.data,Object(i.getBlockTypes)()]})),Yn=Object(Qe.a)((function(e,t){var n=e.reusableBlocks.data[t];if(!n)return null;var r=isNaN(parseInt(t));return Object(d.a)({},n,{id:r?t:+t,isTemporary:r})}),(function(e,t){return[e.reusableBlocks.data[t]]}));function $n(e,t){return e.reusableBlocks.isSaving[t]||!1}function Xn(e,t){return!!e.reusableBlocks.isFetching[t]}function Qn(e){return Object(O.map)(e.reusableBlocks.data,(function(t,n){return Yn(e,n)}))}function Zn(e,t){var n=Object(O.find)(e.optimist,(function(e){return e.beforeState&&Object(O.get)(e.action,["optimist","id"])===t}));return n?n.beforeState:null}function Jn(e){if(!xn(e))return!1;if(!St(e))return!1;var t=Zn(e,et);return!!t&&!St(t)}function er(e){var t=yt(e,"permalink_template");return tt.test(t)}function tr(e){var t=nr(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return er(e)?n+r+o:n}function nr(e){var t=yt(e,"permalink_template");if(!t)return null;var n=yt(e,"slug")||yt(e,"generated_slug"),r=t.split(tt),o=Object(u.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function rr(e,t){var n=e.optimist;return!!n&&n.some((function(e){var n=e.beforeState;return n&&t(n)}))}function or(e,t){return e.blockListSettings[t]}function ir(e){return e.settings}function cr(e,t){return t?e.tokens[t]:e.tokens}function ar(e){return e.postLock.isLocked}function sr(e){return Object.keys(e.postSavingLock).length>0}function lr(e){return e.postLock.isTakeover}function ur(e){return e.postLock.user}function dr(e){return e.postLock.activePostLock}function pr(e){return Object(O.has)(bt(e),["_links","wp:action-unfiltered-html"])}function br(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:E.isPublishSidebarEnabled}var fr=n("HaE+"),hr=n("ywyh"),mr=n.n(hr),vr=function(){var e=Object(fr.a)(regeneratorRuntime.mark((function e(t,n){var r,o,c,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,o=n.dispatch,e.next=4,mr()({path:"/wp/v2/types/wp_block"});case 4:if(c=e.sent){e.next=7;break}return e.abrupt("return");case 7:if(e.prev=7,!r){e.next=15;break}return e.next=11,mr()({path:"/wp/v2/".concat(c.rest_base,"/").concat(r)});case 11:e.t0=e.sent,a=[e.t0],e.next=18;break;case 15:return e.next=17,mr()({path:"/wp/v2/".concat(c.rest_base,"?per_page=-1")});case 17:a=e.sent;case 18:(s=Object(O.compact)(Object(O.map)(a,(function(e){if("publish"!==e.status||e.content.protected)return null;var t=Object(i.parse)(e.content.raw);return{reusableBlock:{id:e.id,title:I(e.title)},parsedBlock:1===t.length?t[0]:Object(i.createBlock)("core/template",{},t)}})))).length&&o(Fe(s)),o({type:"FETCH_REUSABLE_BLOCKS_SUCCESS",id:r}),e.next=26;break;case 23:e.prev=23,e.t1=e.catch(7),o({type:"FETCH_REUSABLE_BLOCKS_FAILURE",id:r,error:e.t1});case 26:case"end":return e.stop()}}),e,this,[[7,23]])})));return function(t,n){return e.apply(this,arguments)}}(),Or=function(){var e=Object(fr.a)(regeneratorRuntime.mark((function e(t,n){var r,o,c,a,s,u,d,p,b,f,h,m,v,O,g;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mr()({path:"/wp/v2/types/wp_block"});case 2:if(r=e.sent){e.next=5;break}return e.abrupt("return");case 5:return o=t.id,c=n.dispatch,a=n.getState(),s=Yn(a,o),u=s.clientId,d=s.title,p=s.isTemporary,b=Mt(a,u),f=Object(i.serialize)("core/template"===b.name?b.innerBlocks:b),h=p?{title:d,content:f,status:"publish"}:{id:o,title:d,content:f,status:"publish"},m=p?"/wp/v2/".concat(r.rest_base):"/wp/v2/".concat(r.rest_base,"/").concat(o),v=p?"POST":"PUT",e.prev=14,e.next=17,mr()({path:m,data:h,method:v});case 17:O=e.sent,c({type:"SAVE_REUSABLE_BLOCK_SUCCESS",updatedId:O.id,id:o}),g=p?Object(_.__)("Block created."):Object(_.__)("Block updated."),Object(l.dispatch)("core/notices").createSuccessNotice(g,{id:"REUSABLE_BLOCK_NOTICE_ID"}),e.next=27;break;case 23:e.prev=23,e.t0=e.catch(14),c({type:"SAVE_REUSABLE_BLOCK_FAILURE",id:o}),Object(l.dispatch)("core/notices").createErrorNotice(e.t0.message,{id:"REUSABLE_BLOCK_NOTICE_ID"});case 27:case"end":return e.stop()}}),e,this,[[14,23]])})));return function(t,n){return e.apply(this,arguments)}}(),gr=function(){var e=Object(fr.a)(regeneratorRuntime.mark((function e(t,n){var r,o,c,a,s,u,d,p,f,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mr()({path:"/wp/v2/types/wp_block"});case 2:if(r=e.sent){e.next=5;break}return e.abrupt("return");case 5:if(o=t.id,c=n.getState,a=n.dispatch,(s=Yn(c(),o))&&!s.isTemporary){e.next=10;break}return e.abrupt("return");case 10:return u=Ht(c()),d=u.filter((function(e){return Object(i.isReusableBlock)(e)&&e.attributes.ref===o})),p=d.map((function(e){return e.clientId})),f=Object(O.uniqueId)(),a({type:"REMOVE_REUSABLE_BLOCK",id:o,optimist:{type:m.BEGIN,id:f}}),a(Pe(Object(b.a)(p).concat([s.clientId]))),e.prev=16,e.next=19,mr()({path:"/wp/v2/".concat(r.rest_base,"/").concat(o),method:"DELETE"});case 19:a({type:"DELETE_REUSABLE_BLOCK_SUCCESS",id:o,optimist:{type:m.COMMIT,id:f}}),h=Object(_.__)("Block deleted."),Object(l.dispatch)("core/notices").createSuccessNotice(h,{id:"REUSABLE_BLOCK_NOTICE_ID"}),e.next=28;break;case 24:e.prev=24,e.t0=e.catch(16),a({type:"DELETE_REUSABLE_BLOCK_FAILURE",id:o,optimist:{type:m.REVERT,id:f}}),Object(l.dispatch)("core/notices").createErrorNotice(e.t0.message,{id:"REUSABLE_BLOCK_NOTICE_ID"});case 28:case"end":return e.stop()}}),e,this,[[16,24]])})));return function(t,n){return e.apply(this,arguments)}}();function jr(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.getBlockInsertionParentClientId,n=void 0===t?Xr:t,r=e.getInserterItems,o=void 0===r?Qr:r,c=e.getSelectedBlockName,a=void 0===c?Zr:c;return{name:"blocks",className:"editor-autocompleters__block",triggerPrefix:"/",options:function(){var e=a();return o(n()).filter((function(t){return e!==t.name}))},getOptionKeywords:function(e){var t=e.title,n=e.keywords,r=void 0===n?[]:n;return[e.category].concat(Object(b.a)(r),[t])},getOptionLabel:function(e){var t=e.icon,n=e.title;return[Object(Ir.createElement)($r,{key:"icon",icon:t,showColors:!0}),n]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes;return{action:"replace",value:Object(i.createBlock)(t,n)}},isOptionDisabled:function(e){return e.isDisabled}}}(),eo={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",options:function(e){var t="";return e&&(t="?search="+encodeURIComponent(e)),mr()({path:"/wp/v2/users"+t})},isDebounced:!0,getOptionKeywords:function(e){return[e.slug,e.name]},getOptionLabel:function(e){return[Object(Ir.createElement)("img",{key:"avatar",className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}),Object(Ir.createElement)("span",{key:"name",className:"editor-autocompleters__user-name"},e.name),Object(Ir.createElement)("span",{key:"slug",className:"editor-autocompleters__user-slug"},e.slug)]},getOptionCompletion:function(e){return"@".concat(e.slug)}},to=[{icon:"editor-alignleft",title:Object(_.__)("Align text left"),align:"left"},{icon:"editor-aligncenter",title:Object(_.__)("Align text center"),align:"center"},{icon:"editor-alignright",title:Object(_.__)("Align text right"),align:"right"}];var no=Object(Lr.compose)(zr((function(e){return{clientId:e.clientId}})),Object(s.withViewportMatch)({isLargeViewport:"medium"}),Object(l.withSelect)((function(e,t){var n=t.clientId,r=t.isLargeViewport,o=t.isCollapsed,i=e("core/editor"),c=i.getBlockRootClientId,a=i.getEditorSettings;return{isCollapsed:o||!r||!a().hasFixedToolbar&&c(n)}})))((function(e){var t=e.isCollapsed,n=e.value,r=e.onChange,o=e.alignmentControls,i=void 0===o?to:o;function c(e){return function(){return r(n===e?void 0:e)}}var a=Object(O.find)(i,(function(e){return e.align===n}));return Object(Ir.createElement)(Hr.Toolbar,{isCollapsed:t,icon:a?a.icon:"editor-alignleft",label:Object(_.__)("Change Text Alignment"),controls:i.map((function(e){var t=e.align,r=n===t;return Object(d.a)({},e,{isActive:r,onClick:c(t)})}))})})),ro={left:{icon:"align-left",title:Object(_.__)("Align left")},center:{icon:"align-center",title:Object(_.__)("Align center")},right:{icon:"align-right",title:Object(_.__)("Align right")},wide:{icon:"align-wide",title:Object(_.__)("Wide width")},full:{icon:"align-full-width",title:Object(_.__)("Full width")}},oo=["left","center","right","wide","full"],io=["wide","full"];var co=Object(Lr.compose)(zr((function(e){return{clientId:e.clientId}})),Object(s.withViewportMatch)({isLargeViewport:"medium"}),Object(l.withSelect)((function(e,t){var n=t.clientId,r=t.isLargeViewport,o=t.isCollapsed,i=e("core/editor"),c=i.getBlockRootClientId,a=i.getEditorSettings;return{wideControlsEnabled:e("core/editor").getEditorSettings().alignWide,isCollapsed:o||!r||!a().hasFixedToolbar&&c(n)}})))((function(e){var t=e.isCollapsed,n=e.value,r=e.onChange,o=e.controls,i=void 0===o?oo:o,c=e.wideControlsEnabled,a=void 0!==c&&c?i:i.filter((function(e){return-1===io.indexOf(e)})),s=ro[n];return Object(Ir.createElement)(Hr.Toolbar,{isCollapsed:t,icon:s?s.icon:"align-left",label:Object(_.__)("Change Alignment"),controls:a.map((function(e){return Object(d.a)({},ro[e],{isActive:n===e,onClick:(t=e,function(){return r(n===t?void 0:t)})});var t}))})})),ao=Object(Hr.createSlotFill)("BlockControls"),so=ao.Fill,lo=ao.Slot,uo=qr((function(e){var t=e.controls,n=e.children;return Object(Ir.createElement)(so,null,Object(Ir.createElement)(Hr.Toolbar,{controls:t}),n)}));uo.Slot=lo;var po=uo,bo=Object(Hr.withFilters)("editor.BlockEdit")((function(e){var t=e.attributes,n=void 0===t?{}:t,r=e.name,o=Object(i.getBlockType)(r);if(!o)return null;var c=Object(i.hasBlockSupport)(o,"className",!0)?Object(i.getBlockDefaultClassName)(r):null,a=xr()(c,n.className),s=o.edit||o.save;return Object(Ir.createElement)(s,Object(Pr.a)({},e,{className:a}))})),fo=function(e){function t(e){var n;return Object(Nr.a)(this,t),(n=Object(Dr.a)(this,Object(Fr.a)(t).call(this,e))).setFocusedElement=n.setFocusedElement.bind(Object(Ur.a)(Object(Ur.a)(n))),n.state={focusedElement:null,setFocusedElement:n.setFocusedElement},n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"setFocusedElement",value:function(e){this.setState((function(t){return t.focusedElement===e?null:{focusedElement:e}}))}},{key:"render",value:function(){return Object(Ir.createElement)(Wr,{value:this.state},Object(Ir.createElement)(bo,this.props))}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.clientId;return{name:e.name,isSelected:e.isSelected,clientId:t}}}]),t}(Ir.Component),ho=Object(Hr.createSlotFill)("BlockFormatControls"),mo=ho.Fill,vo=ho.Slot,Oo=qr(mo);Oo.Slot=vo;var go=Oo,jo=n("RxS6");function yo(e){var t=e.blocks,n=e.selectedBlockClientId,r=e.selectBlock,o=e.showNestedBlocks;return Object(Ir.createElement)("ul",{className:"editor-block-navigation__list",role:"list"},Object(O.map)(t,(function(e){var t=Object(i.getBlockType)(e.name),c=e.clientId===n;return Object(Ir.createElement)("li",{key:e.clientId},Object(Ir.createElement)("div",{className:"editor-block-navigation__item"},Object(Ir.createElement)(Hr.Button,{className:xr()("editor-block-navigation__item-button",{"is-selected":e.clientId===n}),onClick:function(){return r(e.clientId)},isSelected:c},Object(Ir.createElement)($r,{icon:t.icon,showColors:!0}),t.title,c&&Object(Ir.createElement)("span",{className:"screen-reader-text"},Object(_.__)("(selected block)")))),o&&!!e.innerBlocks&&!!e.innerBlocks.length&&Object(Ir.createElement)(yo,{blocks:e.innerBlocks,selectedBlockClientId:n,selectBlock:r,showNestedBlocks:!0}))})))}var ko=Object(Lr.compose)(Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.getBlock,i=t.getBlocks,c=n();return{rootBlocks:i(),rootBlock:c?o(r(c)):null,selectedBlockClientId:c}})),Object(l.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?O.noop:n;return{selectBlock:function(t){e("core/editor").selectBlock(t),r(t)}}})))((function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(Ir.createElement)(Hr.NavigableMenu,{role:"presentation",className:"editor-block-navigation__container"},Object(Ir.createElement)("p",{className:"editor-block-navigation__label"},Object(_.__)("Block Navigation")),i&&Object(Ir.createElement)(yo,{blocks:[t],selectedBlockClientId:r,selectBlock:o,showNestedBlocks:!0}),!i&&Object(Ir.createElement)(yo,{blocks:n,selectedBlockClientId:r,selectBlock:o}))})),_o=Object(Ir.createElement)(Hr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},Object(Ir.createElement)(Hr.Path,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"}));var Eo=Object(l.withSelect)((function(e){return{hasBlocks:!!e("core/editor").getBlockCount()}}))((function(e){var t=e.hasBlocks;return Object(Ir.createElement)(Hr.Dropdown,{renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(Hr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(f.a)({},jo.rawShortcut.access("o"),r)}),Object(Ir.createElement)(Hr.IconButton,{icon:_o,"aria-expanded":n,onClick:t?r:void 0,label:Object(_.__)("Block Navigation"),className:"editor-block-navigation",shortcut:jo.displayShortcut.access("o"),"aria-disabled":!t}))},renderContent:function(e){var t=e.onClose;return Object(Ir.createElement)(ko,{onSelect:t})}})})),So=Object(Lr.createHigherOrderComponent)(Object(l.withSelect)((function(e,t){var n=e("core/editor").getEditorSettings(),r=void 0===t.colors?n.colors:t.colors,o=void 0===t.disableCustomColors?n.disableCustomColors:t.disableCustomColors;return{colors:r,disableCustomColors:o,hasColorsToChoose:!Object(O.isEmpty)(r)||!o}})),"withColorContext"),Co=So(Hr.ColorPalette),wo=n("Zss7"),To=n.n(wo),Po=function(e,t,n){if(t){var r=Object(O.find)(e,{slug:t});if(r)return r}return{color:n}},Io=function(e,t){return Object(O.find)(e,{color:t})};function Bo(e,t){if(e&&t)return"has-".concat(Object(O.kebabCase)(t),"-").concat(e)}function xo(e,t){return To.a.mostReadable(t,Object(O.map)(e,"color")).toHexString()}var Lo=[],Ao=function(){for(var e=arguments.length,t=new Array(e),n=0;n=24?"large":"small"}))return null;var l=a.getBrightness()1?function(e,t,n,r,o){var i=t+1;if(o<0&&n)return Object(_.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(_.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(_.sprintf)(Object(_._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,i);if(o>0&&!r)return Object(_.sprintf)(Object(_._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,i)}(e,n,r,o,i):r&&o?Object(_.sprintf)(Object(_.__)("Block %s is the only block, and cannot be moved"),t):i>0&&!o?Object(_.sprintf)(Object(_.__)("Move %1$s block from position %2$d down to position %3$d"),t,c,c+1):i>0&&o?Object(_.sprintf)(Object(_.__)("Block %s is at the end of the content and can’t be moved down"),t):i<0&&!r?Object(_.sprintf)(Object(_.__)("Move %1$s block from position %2$d up to position %3$d"),t,c,c-1):i<0&&r?Object(_.sprintf)(Object(_.__)("Block %s is at the beginning of the content and can’t be moved up"),t):void 0}var Wo=Object(Ir.createElement)(Hr.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(Ir.createElement)(Hr.Polygon,{points:"9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 "})),zo=Object(Ir.createElement)(Hr.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(Ir.createElement)(Hr.Polygon,{points:"9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "})),qo=Object(Ir.createElement)(Hr.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(Ir.createElement)(Hr.Path,{d:"M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"})),Go=Object(l.withSelect)((function(e,t){var n=t.clientId,r=e("core/editor"),o=r.getBlockIndex,i=r.getBlockRootClientId;return{index:o(n),rootClientId:i(n)}}))((function(e){var t=e.children,n=e.clientId,r=e.rootClientId,o=e.blockElementId,i=e.index,c=e.onDragStart,a=e.onDragEnd,s={type:"block",srcIndex:i,srcRootClientId:r,srcClientId:n};return Object(Ir.createElement)(Hr.Draggable,{elementId:o,transferData:s,onDragStart:c,onDragEnd:a},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return t({onDraggableStart:n,onDraggableEnd:r})}))})),Yo=function(e){var t=e.isVisible,n=e.className,r=e.icon,o=e.onDragStart,i=e.onDragEnd,c=e.blockElementId,a=e.clientId;if(!t)return null;var s=xr()("editor-block-mover__control-drag-handle",n);return Object(Ir.createElement)(Go,{clientId:a,blockElementId:c,onDragStart:o,onDragEnd:i},(function(e){var t=e.onDraggableStart,n=e.onDraggableEnd;return Object(Ir.createElement)("div",{className:s,"aria-hidden":"true",onDragStart:t,onDragEnd:n,draggable:!0},r)}))},$o=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onBlur=e.onBlur.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this.props,t=e.onMoveUp,n=e.onMoveDown,r=e.isFirst,o=e.isLast,i=e.isDraggable,c=e.onDragStart,a=e.onDragEnd,s=e.clientIds,l=e.blockElementId,u=e.blockType,d=e.firstIndex,p=e.isLocked,b=e.instanceId,f=e.isHidden,h=this.state.isFocused,m=Object(O.castArray)(s).length;return p||r&&o?null:Object(Ir.createElement)("div",{className:xr()("editor-block-mover",{"is-visible":h||!f})},Object(Ir.createElement)(Hr.IconButton,{className:"editor-block-mover__control",onClick:r?null:t,icon:Wo,label:Object(_.__)("Move up"),"aria-describedby":"editor-block-mover__up-description-".concat(b),"aria-disabled":r,onFocus:this.onFocus,onBlur:this.onBlur}),Object(Ir.createElement)(Yo,{className:"editor-block-mover__control",icon:qo,clientId:s,blockElementId:l,isVisible:i,onDragStart:c,onDragEnd:a}),Object(Ir.createElement)(Hr.IconButton,{className:"editor-block-mover__control",onClick:o?null:n,icon:zo,label:Object(_.__)("Move down"),"aria-describedby":"editor-block-mover__down-description-".concat(b),"aria-disabled":o,onFocus:this.onFocus,onBlur:this.onBlur}),Object(Ir.createElement)("span",{id:"editor-block-mover__up-description-".concat(b),className:"editor-block-mover__description"},Ko(m,u&&u.title,d,r,o,-1)),Object(Ir.createElement)("span",{id:"editor-block-mover__down-description-".concat(b),className:"editor-block-mover__description"},Ko(m,u&&u.title,d,r,o,1)))}}]),t}(Ir.Component),Xo=Object(Lr.compose)(Object(l.withSelect)((function(e,t){var n=t.clientIds,r=e("core/editor"),o=r.getBlock,c=r.getBlockIndex,a=r.getTemplateLock,s=r.getBlockRootClientId,l=Object(O.first)(Object(O.castArray)(n)),u=o(l),d=s(Object(O.first)(Object(O.castArray)(n)));return{firstIndex:c(l,d),blockType:u?Object(i.getBlockType)(u.name):null,isLocked:"all"===a(d),rootClientId:d}})),Object(l.withDispatch)((function(e,t){var n=t.clientIds,r=t.rootClientId,o=e("core/editor"),i=o.moveBlocksDown,c=o.moveBlocksUp;return{onMoveDown:Object(O.partial)(i,n,r),onMoveUp:Object(O.partial)(c,n,r)}})),Lr.withInstanceId)($o);var Qo=Object(l.withSelect)((function(e){return{hasUploadPermissions:(0,e("core").hasUploadPermissions)()}}))((function(e){var t=e.hasUploadPermissions,n=e.fallback,r=void 0===n?null:n,o=e.children;return t?o:r})),Zo=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onFilesDrop=e.onFilesDrop.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onHTMLDrop=e.onHTMLDrop.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onDrop=e.onDrop.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"getInsertIndex",value:function(e){var t=this.props.index;if(void 0!==t)return"top"===e.y?t:t+1}},{key:"onFilesDrop",value:function(e,t){var n=Object(i.findTransform)(Object(i.getBlockTransforms)("from"),(function(t){return"files"===t.type&&t.isMatch(e)}));if(n){var r=this.getInsertIndex(t),o=n.transform(e,this.props.updateBlockAttributes);this.props.insertBlocks(o,r)}}},{key:"onHTMLDrop",value:function(e,t){var n=Object(i.pasteHandler)({HTML:e,mode:"BLOCKS"});n.length&&this.props.insertBlocks(n,this.getInsertIndex(t))}},{key:"onDrop",value:function(e,t){var n=this.props,r=n.rootClientId,o=n.clientId,i=n.index,c=n.getClientIdsOfDescendants,a=function(e){var t={srcRootClientId:null,srcClientId:null,srcIndex:null,type:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("text")))}catch(e){return t}return t}(e),s=a.srcRootClientId,l=a.srcClientId,u=a.srcIndex,d=a.type;if("block"===d&&l!==o&&!function(e,t){return c([e]).some((function(e){return e===t}))}(l,o)){var p,b,f=this.getInsertIndex(t),h=i&&u0&&Object(Ir.createElement)("div",{className:"editor-warning__actions"},Ir.Children.map(n,(function(e,t){return Object(Ir.createElement)("span",{key:t,className:"editor-warning__action"},e)})))),o&&Object(Ir.createElement)(Hr.Dropdown,{className:"editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(Ir.createElement)(Hr.IconButton,{icon:"ellipsis",label:Object(_.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(Ir.createElement)(Hr.MenuGroup,{label:Object(_.__)("More options")},o.map((function(e,t){return Object(Ir.createElement)(Hr.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))},ti=n("v2jn"),ni=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,i=e.actionText,c=e.className;return Object(Ir.createElement)("div",{className:c},Object(Ir.createElement)("div",{className:"editor-block-compare__content"},Object(Ir.createElement)("h2",{className:"editor-block-compare__heading"},t),Object(Ir.createElement)("div",{className:"editor-block-compare__html"},n),Object(Ir.createElement)("div",{className:"editor-block-compare__preview edit-post-visual-editor"},Object(Ir.createElement)(Ir.RawHTML,null,Object(Vo.safeHTML)(r)))),Object(Ir.createElement)("div",{className:"editor-block-compare__action"},Object(Ir.createElement)(Hr.Button,{isLarge:!0,tabIndex:"0",onClick:o},i)))},ri=function(e){function t(){return Object(Nr.a)(this,t),Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"getDifference",value:function(e,t){return Object(ti.diffChars)(e,t).map((function(e,t){var n=xr()({"editor-block-compare__added":e.added,"editor-block-compare__removed":e.removed});return Object(Ir.createElement)("span",{key:t,className:n},e.value)}))}},{key:"getConvertedContent",value:function(e){return Object(O.castArray)(e).map((function(e){return Object(i.getSaveContent)(e.name,e.attributes,e.innerBlocks)})).join("")}},{key:"render",value:function(){var e=this.props,t=e.block,n=e.onKeep,r=e.onConvert,o=e.convertor,i=e.convertButtonText,c=this.getConvertedContent(o(t)),a=this.getDifference(t.originalContent,c);return Object(Ir.createElement)("div",{className:"editor-block-compare__wrapper"},Object(Ir.createElement)(ni,{title:Object(_.__)("Current"),className:"editor-block-compare__current",action:n,actionText:Object(_.__)("Convert to HTML"),rawContent:t.originalContent,renderedContent:t.originalContent}),Object(Ir.createElement)(ni,{title:Object(_.__)("After Conversion"),className:"editor-block-compare__converted",action:r,actionText:i,rawContent:a,renderedContent:c}))}}]),t}(Ir.Component),oi=function(e){function t(e){var n;return Object(Nr.a)(this,t),(n=Object(Dr.a)(this,Object(Fr.a)(t).call(this,e))).state={compare:!1},n.onCompare=n.onCompare.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onCompareClose=n.onCompareClose.bind(Object(Ur.a)(Object(Ur.a)(n))),n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onCompare",value:function(){this.setState({compare:!0})}},{key:"onCompareClose",value:function(){this.setState({compare:!1})}},{key:"render",value:function(){var e=this.props,t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.block,c=!!Object(i.getBlockType)("core/html"),a=this.state.compare,s=[{title:Object(_.__)("Convert to Classic Block"),onClick:r}];return a?Object(Ir.createElement)(Hr.Modal,{title:Object(_.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"editor-block-compare"},Object(Ir.createElement)(ri,{block:o,onKeep:t,onConvert:n,convertor:ii,convertButtonText:Object(_.__)("Convert to Blocks")})):Object(Ir.createElement)(ei,{actions:[Object(Ir.createElement)(Hr.Button,{key:"convert",onClick:this.onCompare,isLarge:!0,isPrimary:!c},Object(_._x)("Resolve","imperative verb")),c&&Object(Ir.createElement)(Hr.Button,{key:"edit",onClick:t,isLarge:!0,isPrimary:!0},Object(_.__)("Convert to HTML"))],secondaryActions:s},Object(_.__)("This block contains unexpected or invalid content."))}}]),t}(Ir.Component),ii=function(e){return Object(i.rawHandler)({HTML:e.originalContent})},ci=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/editor").getBlock(n)}})),Object(l.withDispatch)((function(e,t){var n=t.block,r=e("core/editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,ii(n))}}}))])(oi),ai=Object(Ir.createElement)(ei,null,Object(_.__)("This block has encountered an error and cannot be previewed.")),si=function(){return ai},li=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={hasError:!1},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),t}(Ir.Component),ui=n("O6Fj"),di=n.n(ui),pi=function(e){function t(e){var n;return Object(Nr.a)(this,t),(n=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onChange=n.onChange.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onBlur=n.onBlur.bind(Object(Ur.a)(Object(Ur.a)(n))),n.state={html:e.block.isValid?Object(i.getBlockContent)(e.block):e.block.originalContent},n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidUpdate",value:function(e){Object(O.isEqual)(this.props.block.attributes,e.block.attributes)||this.setState({html:Object(i.getBlockContent)(this.props.block)})}},{key:"onBlur",value:function(){var e=this.state.html,t=Object(i.getBlockType)(this.props.block.name),n=Object(i.getBlockAttributes)(t,e,this.props.block.attributes),r=e||Object(i.getSaveContent)(t,n),o=!e||Object(i.isValidBlockContent)(t,n,r);this.props.onChange(this.props.clientId,n,r,o),e||this.setState({html:r})}},{key:"onChange",value:function(e){this.setState({html:e.target.value})}},{key:"render",value:function(){var e=this.state.html;return Object(Ir.createElement)(di.a,{className:"editor-block-list__block-html-textarea",value:e,onBlur:this.onBlur,onChange:this.onChange})}}]),t}(Ir.Component),bi=Object(Lr.compose)([Object(l.withSelect)((function(e,t){return{block:e("core/editor").getBlock(t.clientId)}})),Object(l.withDispatch)((function(e){return{onChange:function(t,n,r,o){e("core/editor").updateBlock(t,{attributes:n,originalContent:r,isValid:o})}}}))])(pi);var fi=Object(l.withSelect)((function(e,t){return{name:(0,e("core/editor").getBlockName)(t.clientId)}}))((function(e){var t=e.name;if(!t)return null;var n=Object(i.getBlockType)(t);return n?n.title:null})),hi=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onBlur=e.onBlur.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onFocus",value:function(e){this.setState({isFocused:!0}),e.stopPropagation()}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this.props,t=e.clientId,n=e.rootClientId;return Object(Ir.createElement)("div",{className:"editor-block-list__breadcrumb"},Object(Ir.createElement)(Hr.Toolbar,null,n&&Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(fi,{clientId:n}),Object(Ir.createElement)("span",{className:"editor-block-list__descendant-arrow"})),Object(Ir.createElement)(fi,{clientId:t})))}}]),t}(Ir.Component),mi=Object(Lr.compose)([Object(l.withSelect)((function(e,t){return{rootClientId:(0,e("core/editor").getBlockRootClientId)(t.clientId)}}))])(hi),vi=window,Oi=vi.Node,gi=vi.getSelection,ji=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).focusToolbar=e.focusToolbar.bind(Object(Ur.a)(Object(Ur.a)(e))),e.focusSelection=e.focusSelection.bind(Object(Ur.a)(Object(Ur.a)(e))),e.switchOnKeyDown=Object(O.cond)([[Object(O.matchesProperty)(["keyCode"],jo.ESCAPE),e.focusSelection]]),e.toolbar=Object(Ir.createRef)(),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"focusToolbar",value:function(){var e=Vo.focus.tabbable.find(this.toolbar.current);e.length&&e[0].focus()}},{key:"focusSelection",value:function(){var e=gi();if(e){var t=e.focusNode;t.nodeType!==Oi.ELEMENT_NODE&&(t=t.parentElement),t&&t.focus()}}},{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.focusToolbar()}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(p.a)(e,["children"]);return Object(Ir.createElement)(Hr.NavigableMenu,Object(Pr.a)({orientation:"horizontal",role:"toolbar",ref:this.toolbar,onKeyDown:this.switchOnKeyDown},Object(O.omit)(n,["focusOnMount"])),Object(Ir.createElement)(Hr.KeyboardShortcuts,{bindGlobal:!0,eventName:"keydown",shortcuts:{"alt+f10":this.focusToolbar}}),t)}}]),t}(Ir.Component);var yi=function(e){var t=e.focusOnMount;return Object(Ir.createElement)(ji,{focusOnMount:t,className:"editor-block-contextual-toolbar","aria-label":Object(_.__)("Block tools")},Object(Ir.createElement)(Xl,null))};var ki=Object(l.withSelect)((function(e,t){var n=t.clientId,r=e("core/editor"),o=r.getMultiSelectedBlockClientIds,i=r.isMultiSelecting,c=r.getBlockIndex,a=r.getBlockCount,s=o(),l=c(Object(O.first)(s),n),u=c(Object(O.last)(s),n);return{multiSelectedBlockClientIds:s,isSelecting:i(),isFirst:0===l,isLast:u+1===a()}}))((function(e){var t=e.multiSelectedBlockClientIds,n=e.clientId,r=e.isSelecting,o=e.isFirst,i=e.isLast;return r?null:Object(Ir.createElement)(Xo,{key:"mover",clientId:n,clientIds:t,isFirst:o,isLast:i})})),_i=n("9Do8"),Ei=n.n(_i);function Si(e){var t=e.name,n=e.attributes,r=Object(i.createBlock)(t,n);return Object(Ir.createElement)(Hr.Disabled,{className:"editor-block-preview__content editor-styles-wrapper","aria-hidden":!0},Object(Ir.createElement)(fo,{name:t,focus:!1,attributes:r.attributes,setAttributes:O.noop}))}var Ci=function(e){return Object(Ir.createElement)("div",{className:"editor-block-preview"},Object(Ir.createElement)("div",{className:"editor-block-preview__title"},Object(_.__)("Preview")),Object(Ir.createElement)(Si,e))};var wi=function(e){var t=e.icon,n=e.hasChildBlocksWithInserterSupport,r=e.onClick,o=e.isDisabled,i=e.title,c=e.className,a=Object(p.a)(e,["icon","hasChildBlocksWithInserterSupport","onClick","isDisabled","title","className"]),s=t?{backgroundColor:t.background,color:t.foreground}:{},l=t&&t.shadowColor?{backgroundColor:t.shadowColor}:{};return Object(Ir.createElement)("li",{className:"editor-block-types-list__list-item"},Object(Ir.createElement)("button",Object(Pr.a)({className:xr()("editor-block-types-list__item",c,{"editor-block-types-list__item-has-children":n}),onClick:function(e){e.preventDefault(),r()},disabled:o,"aria-label":i},a),Object(Ir.createElement)("span",{className:"editor-block-types-list__item-icon",style:s},Object(Ir.createElement)($r,{icon:t,showColors:!0}),n&&Object(Ir.createElement)("span",{className:"editor-block-types-list__item-icon-stack",style:l})),Object(Ir.createElement)("span",{className:"editor-block-types-list__item-title"},i)))};var Ti=function(e){var t=e.items,n=e.onSelect,r=e.onHover,o=void 0===r?function(){}:r,c=e.children;return Object(Ir.createElement)("ul",{role:"list",className:"editor-block-types-list"},t&&t.map((function(e){return Object(Ir.createElement)(wi,{key:e.id,className:Object(i.getBlockMenuDefaultClassName)(e.id),icon:e.icon,hasChildBlocksWithInserterSupport:e.hasChildBlocksWithInserterSupport,onClick:function(){n(e),o(null)},onFocus:function(){return o(e)},onMouseEnter:function(){return o(e)},onMouseLeave:function(){return o(null)},onBlur:function(){return o(null)},isDisabled:e.isDisabled,title:e.title})})),c)};var Pi=Object(Lr.compose)(Object(Lr.ifCondition)((function(e){var t=e.items;return t&&t.length>0})),Object(l.withSelect)((function(e,t){var n=t.rootClientId,r=(0,e("core/blocks").getBlockType)((0,e("core/editor").getBlockName)(n));return{rootBlockTitle:r&&r.title,rootBlockIcon:r&&r.icon}})))((function(e){var t=e.rootBlockIcon,n=e.rootBlockTitle,r=e.items,o=Object(p.a)(e,["rootBlockIcon","rootBlockTitle","items"]);return Object(Ir.createElement)("div",{className:"editor-inserter__child-blocks"},(t||n)&&Object(Ir.createElement)("div",{className:"editor-inserter__parent-block-header"},Object(Ir.createElement)($r,{icon:t,showColors:!0}),n&&Object(Ir.createElement)("h2",null,n)),Object(Ir.createElement)(Ti,Object(Pr.a)({items:r},o)))})),Ii=function(e){var t=e.filterValue;return Object(Ir.createElement)(Hr.Slot,{name:"Inserter.InlineElements",fillProps:{filterValue:t}},(function(e){return!Object(O.isEmpty)(e)&&Object(Ir.createElement)(Hr.PanelBody,{title:Object(_.__)("Inline Elements"),initialOpen:!1,className:"editor-inserter__inline-elements"},Object(Ir.createElement)(Ti,null,e))}))},Bi=function(e){return e.stopPropagation()},xi=function(e,t){var n=Li(t),r=function(e){return-1!==Li(e).indexOf(n)},o=Object(i.getCategories)();return e.filter((function(e){var t=Object(O.find)(o,{slug:e.category});return r(e.title)||Object(O.some)(e.keywords,r)||t&&r(t.title)}))},Li=function(e){return e=(e=(e=(e=Object(O.deburr)(e)).replace(/^\//,"")).toLowerCase()).trim()},Ai=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={childItems:[],filterValue:"",hoveredItem:null,suggestedItems:[],reusableItems:[],itemsPerCategory:{},openPanels:["suggested"]},e.onChangeSearchInput=e.onChangeSearchInput.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onHover=e.onHover.bind(Object(Ur.a)(Object(Ur.a)(e))),e.panels={},e.inserterResults=Object(Ir.createRef)(),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchReusableBlocks(),this.filter()}},{key:"componentDidUpdate",value:function(e){e.items!==this.props.items&&this.filter(this.state.filterValue)}},{key:"onChangeSearchInput",value:function(e){this.filter(e.target.value)}},{key:"onHover",value:function(e){this.setState({hoveredItem:e});var t=this.props,n=t.showInsertionPoint,r=t.hideInsertionPoint;if(e){var o=this.props;n(o.rootClientId,o.index)}else r()}},{key:"bindPanel",value:function(e){var t=this;return function(n){t.panels[e]=n}}},{key:"onTogglePanel",value:function(e){var t=this;return function(){-1!==t.state.openPanels.indexOf(e)?t.setState({openPanels:Object(O.without)(t.state.openPanels,e)}):(t.setState({openPanels:Object(b.a)(t.state.openPanels).concat([e])}),t.props.setTimeout((function(){Ei()(t.panels[e],t.inserterResults.current,{alignWithTop:!0})})))}}},{key:"filter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.debouncedSpeak,r=t.items,o=t.rootChildBlocks,c=xi(r,e),a=Object(O.filter)(c,(function(e){var t=e.name;return Object(O.includes)(o,t)})),s=[];if(!e){var l=this.props.maxSuggestedItems||9;s=Object(O.filter)(r,(function(e){return e.utility>0})).slice(0,l)}var u=Object(O.filter)(c,{category:"reusable"}),d=function(e){return Object(O.findIndex)(Object(i.getCategories)(),(function(t){return t.slug===e.category}))},p=Object(O.flow)((function(e){return Object(O.filter)(e,(function(e){return"reusable"!==e.category}))}),(function(e){return Object(O.sortBy)(e,d)}),(function(e){return Object(O.groupBy)(e,"category")}))(c),b=this.state.openPanels;if(e!==this.state.filterValue)if(e){if(u.length)b=["reusable"];else if(c.length){var f=Object(O.find)(Object(i.getCategories)(),(function(e){var t=e.slug;return p[t]&&p[t].length}));b=[f.slug]}}else b=["suggested"];this.setState({hoveredItem:null,childItems:a,filterValue:e,suggestedItems:s,reusableItems:u,itemsPerCategory:p,openPanels:b});var h=Object.keys(p).reduce((function(e,t){return e+p[t].length}),0),m=Object(_.sprintf)(Object(_._n)("%d result found.","%d results found.",h),h);n(m,"assertive")}},{key:"onKeyDown",value:function(e){Object(O.includes)([jo.LEFT,jo.DOWN,jo.RIGHT,jo.UP,jo.BACKSPACE,jo.ENTER],e.keyCode)&&e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.onSelect,o=t.rootClientId,c=this.state,a=c.childItems,s=c.filterValue,l=c.hoveredItem,u=c.suggestedItems,d=c.reusableItems,p=c.itemsPerCategory,b=c.openPanels,f=function(e){return-1!==b.indexOf(e)},h=!!s;return Object(Ir.createElement)("div",{className:"editor-inserter__menu",onKeyPress:Bi,onKeyDown:this.onKeyDown},Object(Ir.createElement)("label",{htmlFor:"editor-inserter__search-".concat(n),className:"screen-reader-text"},Object(_.__)("Search for a block")),Object(Ir.createElement)("input",{id:"editor-inserter__search-".concat(n),type:"search",placeholder:Object(_.__)("Search for a block"),className:"editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),Object(Ir.createElement)("div",{className:"editor-inserter__results",ref:this.inserterResults,tabIndex:"0",role:"region","aria-label":Object(_.__)("Available block types")},Object(Ir.createElement)(Pi,{rootClientId:o,items:a,onSelect:r,onHover:this.onHover}),!!u.length&&Object(Ir.createElement)(Hr.PanelBody,{title:Object(_._x)("Most Used","blocks"),opened:f("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},Object(Ir.createElement)(Ti,{items:u,onSelect:r,onHover:this.onHover})),Object(Ir.createElement)(Ii,{filterValue:s}),Object(O.map)(Object(i.getCategories)(),(function(t){var n=p[t.slug];return n&&n.length?Object(Ir.createElement)(Hr.PanelBody,{key:t.slug,title:t.title,icon:t.icon,opened:h||f(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},Object(Ir.createElement)(Ti,{items:n,onSelect:r,onHover:e.onHover})):null})),!!d.length&&Object(Ir.createElement)(Hr.PanelBody,{className:"editor-inserter__reusable-blocks-panel",title:Object(_.__)("Reusable"),opened:f("reusable"),onToggle:this.onTogglePanel("reusable"),icon:"controls-repeat",ref:this.bindPanel("reusable")},Object(Ir.createElement)(Ti,{items:d,onSelect:r,onHover:this.onHover}),Object(Ir.createElement)("a",{className:"editor-inserter__manage-reusable-blocks",href:"edit.php?post_type=wp_block"},Object(_.__)("Manage All Reusable Blocks"))),Object(O.isEmpty)(u)&&Object(O.isEmpty)(d)&&Object(O.isEmpty)(p)&&Object(Ir.createElement)("p",{className:"editor-inserter__no-results"},Object(_.__)("No blocks found."))),l&&Object(i.isReusableBlock)(l)&&Object(Ir.createElement)(Ci,{name:l.name,attributes:l.initialAttributes}))}}]),t}(Ir.Component),Ni=Object(Lr.compose)(Object(l.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/editor"),o=r.getEditedPostAttribute,i=r.getSelectedBlock,c=r.getInserterItems,a=r.getBlockName,s=e("core/blocks").getChildBlockNames,l=a(n);return{selectedBlock:i(),rootChildBlocks:s(l),title:o("title"),items:c(n),rootClientId:n}})),Object(l.withDispatch)((function(e,t){var n=e("core/editor");return{fetchReusableBlocks:n.__experimentalFetchReusableBlocks,showInsertionPoint:n.showInsertionPoint,hideInsertionPoint:n.hideInsertionPoint,onSelect:function(n){var r=e("core/editor"),o=r.replaceBlocks,c=r.insertBlock,a=t.selectedBlock,s=t.index,l=t.rootClientId,u=n.name,d=n.initialAttributes,p=Object(i.createBlock)(u,d);a&&Object(i.isUnmodifiedDefaultBlock)(a)?o(a.clientId,p):c(p,s,l),t.onSelect()}}})),Hr.withSpokenMessages,Lr.withInstanceId,Lr.withSafeTimeout)(Ai),Ri=function(e){var t=e.onToggle,n=e.disabled,r=e.isOpen;return Object(Ir.createElement)(Hr.IconButton,{icon:"insert",label:Object(_.__)("Add block"),labelPosition:"bottom",onClick:t,className:"editor-inserter__toggle","aria-haspopup":"true","aria-expanded":r,disabled:n})},Di=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onToggle=e.onToggle.bind(Object(Ur.a)(Object(Ur.a)(e))),e.renderToggle=e.renderToggle.bind(Object(Ur.a)(Object(Ur.a)(e))),e.renderContent=e.renderContent.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,i=r.renderToggle,c=void 0===i?Ri:i;return c({onToggle:t,isOpen:n,disabled:o})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.index;return Object(Ir.createElement)(Ni,{onSelect:t,rootClientId:r,index:o})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.title;return Object(Ir.createElement)(Hr.Dropdown,{className:"editor-inserter",contentClassName:"editor-inserter__popover",position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:n,renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),t}(Ir.Component),Fi=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.rootClientId,r=t.index,o=e("core/editor"),i=o.getEditedPostAttribute,c=o.getBlockInsertionPoint,a=o.hasInserterItems;if(void 0===n&&void 0===r){var s=c();n=s.rootClientId,r=s.index}return{title:i("title"),hasItems:a(n),rootClientId:n,index:r}})),Object(Lr.ifCondition)((function(e){return e.hasItems}))])(Di);var Mi=Object(s.ifViewportMatches)("< small")((function(e){var t=e.clientId;return Object(Ir.createElement)("div",{className:"editor-block-list__block-mobile-toolbar"},Object(Ir.createElement)(Fi,null),Object(Ir.createElement)(Xo,{clientIds:[t]}))})),Ui=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={isInserterFocused:!1},e.onBlurInserter=e.onBlurInserter.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onFocusInserter=e.onFocusInserter.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onFocusInserter",value:function(e){e.stopPropagation(),this.setState({isInserterFocused:!0})}},{key:"onBlurInserter",value:function(){this.setState({isInserterFocused:!1})}},{key:"render",value:function(){var e=this.state.isInserterFocused,t=this.props,n=t.showInsertionPoint,r=t.rootClientId,o=t.insertIndex;return Object(Ir.createElement)("div",{className:"editor-block-list__insertion-point"},n&&Object(Ir.createElement)("div",{className:"editor-block-list__insertion-point-indicator"}),Object(Ir.createElement)("div",{onFocus:this.onFocusInserter,onBlur:this.onBlurInserter,tabIndex:-1,className:xr()("editor-block-list__insertion-point-inserter",{"is-visible":e})},Object(Ir.createElement)(Fi,{rootClientId:r,index:o})))}}]),t}(Ir.Component),Hi=Object(l.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/editor"),i=o.getBlockIndex,c=o.getBlockInsertionPoint,a=o.isBlockInsertionPointVisible,s=i(n,r),l=c();return{showInsertionPoint:a()&&l.index===s&&l.rootClientId===r,insertIndex:s}}))(Ui),Vi=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).proxyEvent=e.proxyEvent.bind(Object(Ur.a)(Object(Ur.a)(e))),e.eventMap={},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"proxyEvent",value:function(e){var t=!!e.nativeEvent._blockHandled;e.nativeEvent._blockHandled=!0;var n=this.eventMap[e.type];t&&(n+="Handled"),this.props[n]&&this.props[n](e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.childHandledEvents,r=void 0===n?[]:n,o=t.forwardedRef,i=Object(p.a)(t,["childHandledEvents","forwardedRef"]),c=Object(O.reduce)(Object(b.a)(r).concat(Object(b.a)(Object.keys(i))),(function(t,n){var r=n.match(/^on([A-Z][a-zA-Z]+?)(Handled)?$/);if(r){!!r[2]&&delete i[n];var o="on"+r[1];t[o]=e.proxyEvent,e.eventMap[r[1].toLowerCase()]=o}return t}),{});return Object(Ir.createElement)("div",Object(Pr.a)({ref:o},i,c))}}]),t}(Ir.Component),Ki=function(e,t){return Object(Ir.createElement)(Vi,Object(Pr.a)({},e,{forwardedRef:t}))};Ki.displayName="IgnoreNestedEvents";var Wi=Object(Ir.forwardRef)(Ki);var zi=Object(Lr.compose)(Object(l.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/editor"),o=r.getInserterItems,i=r.getTemplateLock;return{items:o(n),isLocked:!!i(n)}})),Object(l.withDispatch)((function(e,t){var n=t.clientId,r=t.rootClientId;return{onInsert:function(t){var o=t.name,c=t.initialAttributes,a=Object(i.createBlock)(o,c);n?e("core/editor").replaceBlocks(n,a):e("core/editor").insertBlock(a,void 0,r)}}})))((function(e){var t=e.items,n=e.isLocked,r=e.onInsert;if(n)return null;var o=Object(O.filter)(t,(function(e){return!(e.isDisabled||e.name===Object(i.getDefaultBlockName)()&&Object(O.isEmpty)(e.initialAttributes))})).slice(0,3);return Object(Ir.createElement)("div",{className:"editor-inserter-with-shortcuts"},o.map((function(e){return Object(Ir.createElement)(Hr.IconButton,{key:e.id,className:"editor-inserter-with-shortcuts__block",onClick:function(){return r(e)},label:Object(_.sprintf)(Object(_.__)("Add %s"),e.title),icon:Object(Ir.createElement)($r,{icon:e.icon})})})))})),qi=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={hoverArea:null},e.onMouseLeave=e.onMouseLeave.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onMouseMove=e.onMouseMove.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentWillUnmount",value:function(){this.props.container&&this.toggleListeners(this.props.container,!1)}},{key:"componentDidMount",value:function(){this.props.container&&this.toggleListeners(this.props.container)}},{key:"componentDidUpdate",value:function(e){e.container!==this.props.container&&(e.container&&this.toggleListeners(e.container,!1),this.props.container&&this.toggleListeners(this.props.container,!0))}},{key:"toggleListeners",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t?"addEventListener":"removeEventListener";e[n]("mousemove",this.onMouseMove),e[n]("mouseleave",this.onMouseLeave)}},{key:"onMouseLeave",value:function(){this.state.hoverArea&&this.setState({hoverArea:null})}},{key:"onMouseMove",value:function(e){var t=this.props,n=t.isRTL,r=t.container.getBoundingClientRect(),o=r.width,i=r.left,c=r.right,a=null;e.clientX-i0&&void 0!==arguments[0]?arguments[0]:t.clientId,n=arguments.length>1?arguments[1]:void 0;a(e,n)},onInsertBlocks:function(e,n){var r=t.rootClientId;l(e,n,r)},onInsertDefaultBlockAfter:function(){var e=t.order,n=t.rootClientId;u({},n,e+1)},onRemove:function(e){d(e)},onMerge:function(e){var n=t.clientId,o=r("core/editor"),i=o.getPreviousBlockClientId,c=o.getNextBlockClientId;if(e){var a=c(n);a&&p(n,a)}else{var s=i(n);s&&p(s,n)}},onReplace:function(e){b([t.clientId],e)},onMetaChange:function(e){f({meta:e})},onShiftSelection:function(){t.isSelectionEnabled&&(o()?s(o(),t.clientId):a(t.clientId))},toggleSelection:function(e){h(e)}}})),Zi=Object(Lr.compose)(Object(s.withViewportMatch)({isLargeViewport:"medium"}),Xi,Qi,Object(Hr.withFilters)("editor.BlockListBlock"))($i),Ji=n("rmEH");var ec=Object(Lr.compose)(Object(Lr.withState)({hovered:!1}),Object(l.withSelect)((function(e,t){var n=e("core/editor"),r=n.getBlockCount,o=n.getBlockName,c=n.isBlockValid,a=n.getEditorSettings,s=n.getTemplateLock,l=!r(t.rootClientId),u=o(t.lastBlockClientId)===Object(i.getDefaultBlockName)(),d=c(t.lastBlockClientId),p=a().bodyPlaceholder;return{isVisible:l||!u||!d,showPrompt:l,isLocked:!!s(t.rootClientId),placeholder:p}})),Object(l.withDispatch)((function(e,t){var n=e("core/editor"),r=n.insertDefaultBlock,o=n.startTyping;return{onAppend:function(){var e=t.rootClientId;r(void 0,e),o()}}})))((function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,i=e.placeholder,c=e.rootClientId,a=e.hovered,s=e.setState;if(t||!n)return null;var l=Object(Ji.decodeEntities)(i)||Object(_.__)("Start writing or type / to choose a block");return Object(Ir.createElement)("div",{"data-root-client-id":c||"",className:"wp-block editor-default-block-appender",onMouseEnter:function(){return s({hovered:!0})},onMouseLeave:function(){return s({hovered:!1})}},Object(Ir.createElement)(Jo,{rootClientId:c}),Object(Ir.createElement)(di.a,{role:"button","aria-label":Object(_.__)("Add block"),className:"editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?l:""}),a&&Object(Ir.createElement)(zi,{rootClientId:c}),Object(Ir.createElement)(Fi,{position:"top right"}))}));var tc=Object(l.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/editor"),o=r.getBlockOrder,c=r.canInsertBlockType;return{isLocked:!!(0,r.getTemplateLock)(n),blockClientIds:o(n),canInsertDefaultBlock:c(Object(i.getDefaultBlockName)(),n)}}))((function(e){var t=e.blockClientIds,n=e.rootClientId,r=e.canInsertDefaultBlock;return e.isLocked?null:r?Object(Ir.createElement)(Wi,{childHandledEvents:["onFocus","onClick","onKeyDown"]},Object(Ir.createElement)(ec,{rootClientId:n,lastBlockClientId:Object(O.last)(t)})):Object(Ir.createElement)("div",{className:"block-list-appender"},Object(Ir.createElement)(Fi,{rootClientId:n,renderToggle:function(e){var t=e.onToggle,n=e.disabled,r=e.isOpen;return Object(Ir.createElement)(Hr.Button,{"aria-label":Object(_.__)("Add block"),onClick:t,className:"block-list-appender__toggle","aria-haspopup":"true","aria-expanded":r,disabled:n},Object(Ir.createElement)(Hr.Dashicon,{icon:"insert"}))}}))})),nc=function(e){function t(e){var n;return Object(Nr.a)(this,t),(n=Object(Dr.a)(this,Object(Fr.a)(t).call(this,e))).onSelectionStart=n.onSelectionStart.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onSelectionEnd=n.onSelectionEnd.bind(Object(Ur.a)(Object(Ur.a)(n))),n.setBlockRef=n.setBlockRef.bind(Object(Ur.a)(Object(Ur.a)(n))),n.setLastClientY=n.setLastClientY.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onPointerMove=Object(O.throttle)(n.onPointerMove.bind(Object(Ur.a)(Object(Ur.a)(n))),100),n.onScroll=function(){return n.onPointerMove({clientY:n.lastClientY})},n.lastClientY=0,n.nodes={},n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("mousemove",this.setLastClientY)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("mousemove",this.setLastClientY)}},{key:"setLastClientY",value:function(e){var t=e.clientY;this.lastClientY=t}},{key:"setBlockRef",value:function(e,t){null===e?delete this.nodes[t]:this.nodes=Object(d.a)({},this.nodes,Object(f.a)({},t,e))}},{key:"onPointerMove",value:function(e){var t=e.clientY;this.props.isMultiSelecting||this.props.onStartMultiSelect();var n=Yi(this.selectionAtStart).getBoundingClientRect();if(!(t>=n.top&&t<=n.bottom)){var r=t-n.top,o=Object(O.findLast)(this.coordMapKeys,(function(e){return e0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return!Oc(t,n)||(n.colors||e).length>0}(t,n,e)}))}))((function(e){var t=e.children,n=e.colors,r=e.colorSettings,o=e.disableCustomColors,i=e.title,c=Object(p.a)(e,["children","colors","colorSettings","disableCustomColors","title"]),a=Object(Ir.createElement)("span",{className:"".concat("editor-panel-color-settings","__panel-title")},i,function(e,t){return e.map((function(e,n){var r=e.value,o=e.label,i=e.colors;if(!r)return null;var c=Io(i||t,r),a=c&&c.name,s=Object(_.sprintf)(gc,o.toLowerCase(),a||r);return Object(Ir.createElement)(Hr.ColorIndicator,{key:n,colorValue:r,"aria-label":s})}))}(r,n));return Object(Ir.createElement)(Hr.PanelBody,Object(Pr.a)({className:"editor-panel-color-settings",title:a},c),r.map((function(e,t){return Object(Ir.createElement)(vc,Object(Pr.a)({key:t},Object(d.a)({colors:n,disableCustomColors:o},e)))})),t)})),yc=So(jc);var kc=function(e){var t=e.onChange,n=e.className,r=Object(p.a)(e,["onChange","className"]);return Object(Ir.createElement)(di.a,Object(Pr.a)({className:xr()("editor-plain-text",n),onChange:function(e){return t(e.target.value)}},r))},_c=n("4eJC"),Ec=n.n(_c),Sc=n("xTGt"),Cc=n("NMb1"),wc=n.n(Cc),Tc=Object(l.withSelect)((function(e){return{formatTypes:(0,e("core/rich-text").getFormatTypes)()}}))((function(e){var t=e.formatTypes,n=e.onChange,r=e.value;return Object(Ir.createElement)(Ir.Fragment,null,t.map((function(e){var t=e.name,o=e.edit;if(!o)return null;var i=Object(a.getActiveFormat)(r,t),c=void 0!==i,s=c&&i.attributes||{};return Object(Ir.createElement)(o,{key:t,isActive:c,activeAttributes:s,value:r,onChange:n})})))})),Pc=function(e){var t=e.controls;return Object(Ir.createElement)("div",{className:"editor-format-toolbar"},Object(Ir.createElement)(Hr.Toolbar,null,t.map((function(e){return Object(Ir.createElement)(Hr.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(Ir.createElement)(Hr.Slot,{name:"RichText.ToolbarControls"})))},Ic=n("8++T"),Bc=n.n(Ic),xc=function(e){return Object(O.pickBy)(e,(function(e,t){return n=t,Object(O.startsWith)(n,"aria-")&&!Object(O.isNil)(e);var n}))},Lc=window.getSelection,Ac=window.Node.TEXT_NODE,Nc=window.navigator.userAgent;var Rc=Nc.indexOf("Trident")>=0,Dc=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).call(this))).bindEditorNode=e.bindEditorNode.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onFocus=e.onFocus.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onKeyDown=e.onKeyDown.bind(Object(Ur.a)(Object(Ur.a)(e))),e.initialize=e.initialize.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onFocus",value:function(){this.props.onFocus&&this.props.onFocus(),this.initialize()}},{key:"shouldComponentUpdate",value:function(e){var t=this;this.configureIsPlaceholderVisible(e.isPlaceholderVisible),Object(O.isEqual)(this.props.style,e.style)||(this.editorNode.setAttribute("style",""),Object.assign(this.editorNode.style,e.style)),Object(O.isEqual)(this.props.className,e.className)||(this.editorNode.className=xr()(e.className,"editor-rich-text__tinymce"));var n=function(e,t){var n=Object(O.keys)(xc(e)),r=Object(O.keys)(xc(t));return{removedKeys:Object(O.difference)(n,r),updatedKeys:r.filter((function(n){return!Object(O.isEqual)(e[n],t[n])}))}}(this.props,e),r=n.removedKeys,o=n.updatedKeys;return r.forEach((function(e){return t.editorNode.removeAttribute(e)})),o.forEach((function(n){return t.editorNode.setAttribute(n,e[n])})),!1}},{key:"componentWillUnmount",value:function(){this.editor&&(this.editor.destroy(),delete this.editor)}},{key:"configureIsPlaceholderVisible",value:function(e){var t=String(!!e);this.editorNode.getAttribute("data-is-placeholder-visible")!==t&&this.editorNode.setAttribute("data-is-placeholder-visible",t)}},{key:"initialize",value:function(){var e=this;if(!this.initialize.called){this.initialize.called=!0;var t={theme:!1,inline:!0,toolbar:!1,browser_spellcheck:!0,entity_encoding:"raw",convert_urls:!1,verify_html:!1,inline_boundaries_selector:"a[href],code,b,i,strong,em,del,ins,sup,sub",plugins:[],forced_root_block:this.props.multilineTag||!1,custom_undo_redo_levels:1,lists_indent_on_tab:!1};Bc.a.init(Object(d.a)({},t,{target:this.editorNode,setup:function(t){var n;e.editor=t,t.on("preinit",(function(){n=t.dom.setHTML,t.dom.setHTML=function(){}})),t.on("init",(function(){["z","y"].forEach((function(e){t.shortcuts.remove("meta+".concat(e))})),t.shortcuts.remove("meta+shift+z"),["b","i","u"].forEach((function(e){t.shortcuts.remove("meta+".concat(e))})),[1,2,3,4,5,6,7,8,9].forEach((function(e){t.shortcuts.remove("access+".concat(e))})),t.dom.setHTML=n,Rc&&document.activeElement!==e.editorNode&&document.activeElement.contains(e.editorNode)&&e.editorNode.focus()})),t.on("keydown",e.onKeyDown,!0)}}))}}},{key:"bindEditorNode",value:function(e){this.editorNode=e,this.props.setRef&&this.props.setRef(e),Rc&&(e?this.removeInternetExplorerInputFix=function(e){function t(e){e.stopImmediatePropagation();var t=document.createEvent("Event");t.initEvent("input",!0,!1),t.data=e.data,e.target.dispatchEvent(t)}function n(t){var n=t.target,r=t.keyCode;if((jo.BACKSPACE===r||jo.DELETE===r)&&e.contains(n)){var o=document.createEvent("Event");o.initEvent("input",!0,!1),o.data=null,n.dispatchEvent(o)}}return e.addEventListener("textinput",t),document.addEventListener("keyup",n,!0),function(){e.removeEventListener("textinput",t),document.removeEventListener("keyup",n,!0)}}(e):this.removeInternetExplorerInputFix())}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=t===jo.DELETE||t===jo.BACKSPACE;if(t===jo.ENTER||n&&Object(Vo.isEntirelySelected)(this.editorNode))return e.preventDefault(),!1;if(t===jo.LEFT||t===jo.RIGHT){var r=Lc().focusNode,o=r.nodeType,i=r.nodeValue;if(o===Ac)if(1===i.length&&"\ufeff"===i[0])r[e.keyCode===jo.LEFT?"previousSibling":"nextSibling"]||(e.preventDefault=O.noop)}}},{key:"render",value:function(){var e,t=xc(this.props),n=this.props,r=n.tagName,o=void 0===r?"div":r,i=n.style,c=n.record,a=n.valueToEditableHTML,s=n.className,l=n.isPlaceholderVisible,u=n.onPaste,p=n.onInput,b=n.onKeyDown,h=n.onCompositionEnd,m=n.onBlur;return"table"!==o&&(t.role="textbox",t["aria-multiline"]=!0),Object(Ir.createElement)(o,Object(d.a)({},t,(e={className:xr()(s,"editor-rich-text__tinymce"),contentEditable:!0},Object(f.a)(e,"data-is-placeholder-visible",l),Object(f.a)(e,"ref",this.bindEditorNode),Object(f.a)(e,"style",i),Object(f.a)(e,"suppressContentEditableWarning",!0),Object(f.a)(e,"dangerouslySetInnerHTML",{__html:a(c)}),Object(f.a)(e,"onPaste",u),Object(f.a)(e,"onInput",p),Object(f.a)(e,"onFocus",this.onFocus),Object(f.a)(e,"onBlur",m),Object(f.a)(e,"onKeyDown",b),Object(f.a)(e,"onCompositionEnd",h),e)))}}]),t}(Ir.Component);function Fc(e){var t=e.onReplace,n=e.valueToFormat,r=e.onCreateUndoLevel,o=e.onChange,c=Object(i.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type}));return[function(e){if(!t)return e;var o=Object(a.getSelectionStart)(e),s=Object(a.getTextContent)(e),l=s.slice(o-1,o);if(!/\s/.test(l))return e;var u=s.slice(0,o).trim(),d=Object(i.findTransform)(c,(function(e){var t=e.prefix;return u===t}));if(!d)return e;var p=n(Object(a.slice)(e,o,s.length)),b=d.transform(p);return r(),t([b]),e},function(e){var t=Object(a.getSelectionStart)(e),n=Object(a.getTextContent)(e);if("`"!==n.slice(t-1,t))return e;var r=n.slice(0,t-1).lastIndexOf("`");if(-1===r)return e;var i=r,c=t-2;return i===c?e:(o(e),e=Object(a.remove)(e,i,i+1),e=Object(a.remove)(e,c,c+1),e=Object(a.applyFormat)(e,{type:"code"},i,c))}]}var Mc=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onUse=e.onUse.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onUse",value:function(){return this.props.onUse(),!1}},{key:"render",value:function(){var e=this.props,t=e.character,n=e.type;return Object(Ir.createElement)(Hr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(f.a)({},jo.rawShortcut[n](t),this.onUse)})}}]),t}(Ir.Component),Uc=window.Node,Hc=Uc.TEXT_NODE,Vc=Uc.ELEMENT_NODE;function Kc(){var e=window.getSelection();if(0!==e.rangeCount){var t=e.getRangeAt(0).startContainer;if(t.nodeType===Hc&&(t=t.parentNode),t.nodeType===Vc){var n=t.closest("*[contenteditable]");if(n&&n.contains(t))return t.closest("ol,ul")}}}function Wc(){var e=Kc();return!e||"true"===e.contentEditable}function zc(e,t){var n=Kc();return n?n.nodeName.toLowerCase()===e:e===t}var qc=function(e){var t=e.onTagNameChange,n=e.tagName,r=e.value,o=e.onChange;return Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(Mc,{type:"primary",character:"[",onUse:function(){o(Object(a.outdentListItems)(r))}}),Object(Ir.createElement)(Mc,{type:"primary",character:"]",onUse:function(){o(Object(a.indentListItems)(r,{type:n}))}}),Object(Ir.createElement)(Mc,{type:"primary",character:"m",onUse:function(){o(Object(a.indentListItems)(r,{type:n}))}}),Object(Ir.createElement)(Mc,{type:"primaryShift",character:"m",onUse:function(){o(Object(a.outdentListItems)(r))}}),Object(Ir.createElement)(go,null,Object(Ir.createElement)(Hr.Toolbar,{controls:[{icon:"editor-ul",title:Object(_.__)("Convert to unordered list"),isActive:zc("ul",n),onClick:function(){o(Object(a.changeListType)(r,{type:"ul"})),Wc()&&t("ul")}},{icon:"editor-ol",title:Object(_.__)("Convert to ordered list"),isActive:zc("ol",n),onClick:function(){o(Object(a.changeListType)(r,{type:"ol"})),Wc()&&t("ol")}},{icon:"editor-outdent",title:Object(_.__)("Outdent list item"),onClick:function(){o(Object(a.outdentListItems)(r))}},{icon:"editor-indent",title:Object(_.__)("Indent list item"),onClick:function(){o(Object(a.indentListItems)(r,{type:n}))}}]})))},Gc=[jo.rawShortcut.primary("z"),jo.rawShortcut.primaryShift("z"),jo.rawShortcut.primary("y")],Yc=Object(Ir.createElement)(Hr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(O.fromPairs)(Gc.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),$c=function(){return Yc};function Xc(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,i=Object(p.a)(e,["name","shortcutType","shortcutCharacter"]),c="RichText.ToolbarControls";return n&&(c+=".".concat(n)),r&&o&&(t=jo.displayShortcut[r](o)),Object(Ir.createElement)(Hr.Fill,{name:c},Object(Ir.createElement)(Hr.ToolbarButton,Object(Pr.a)({},i,{shortcut:t})))}var Qc=Object(l.withSelect)((function(e,t){var n=t.name;return{formatType:e("core/rich-text").getFormatType(n)}}))((function(e){return Object(Ir.createElement)(Hr.Fill,{name:"Inserter.InlineElements"},(function(t){var n=t.filterValue,r=e.formatType,o=r.keywords,c=void 0===o?[]:o,a=r.title;return c.push(a,e.title),n&&!function(e,t){return e.some((function(e){return-1!==Li(e).indexOf(Li(t))}))}(c,n)?null:Object(Ir.createElement)(wi,Object(Pr.a)({},e,{icon:Object(i.normalizeIconObject)(e.icon)}))}))})),Zc=window.getSelection,Jc=function(e){function t(e){var n,r=e.value,o=e.onReplace,c=e.multiline;return Object(Nr.a)(this,t),n=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments)),!0!==c&&"p"!==c&&"li"!==c||(n.multilineTag=!0===c?"p":c),"li"===n.multilineTag&&(n.multilineWrapperTags=["ul","ol"]),n.props.onSplit?(n.onSplit=n.props.onSplit,wc()("wp.editor.RichText onSplit prop",{plugin:"Gutenberg",alternative:"wp.editor.RichText unstableOnSplit prop"})):n.props.unstableOnSplit&&(n.onSplit=n.props.unstableOnSplit),n.onFocus=n.onFocus.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onBlur=n.onBlur.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onChange=n.onChange.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onDeleteKeyDown=n.onDeleteKeyDown.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onKeyDown=n.onKeyDown.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onPaste=n.onPaste.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onCreateUndoLevel=n.onCreateUndoLevel.bind(Object(Ur.a)(Object(Ur.a)(n))),n.setFocusedElement=n.setFocusedElement.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onInput=n.onInput.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onCompositionEnd=n.onCompositionEnd.bind(Object(Ur.a)(Object(Ur.a)(n))),n.onSelectionChange=n.onSelectionChange.bind(Object(Ur.a)(Object(Ur.a)(n))),n.getRecord=n.getRecord.bind(Object(Ur.a)(Object(Ur.a)(n))),n.createRecord=n.createRecord.bind(Object(Ur.a)(Object(Ur.a)(n))),n.applyRecord=n.applyRecord.bind(Object(Ur.a)(Object(Ur.a)(n))),n.isEmpty=n.isEmpty.bind(Object(Ur.a)(Object(Ur.a)(n))),n.valueToFormat=n.valueToFormat.bind(Object(Ur.a)(Object(Ur.a)(n))),n.setRef=n.setRef.bind(Object(Ur.a)(Object(Ur.a)(n))),n.valueToEditableHTML=n.valueToEditableHTML.bind(Object(Ur.a)(Object(Ur.a)(n))),n.formatToValue=Ec()(n.formatToValue.bind(Object(Ur.a)(Object(Ur.a)(n))),{size:1}),n.savedContent=r,n.patterns=Fc({onReplace:o,onCreateUndoLevel:n.onCreateUndoLevel,valueToFormat:n.valueToFormat,onChange:n.onChange}),n.enterPatterns=Object(i.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),n.state={},n.usedDeprecatedChildrenSource=Array.isArray(r),n.lastHistoryValue=r,n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentWillUnmount",value:function(){document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"setRef",value:function(e){this.editableRef=e}},{key:"setFocusedElement",value:function(){this.props.setFocusedElement&&this.props.setFocusedElement(this.props.instanceId)}},{key:"getRecord",value:function(){var e=this.formatToValue(this.props.value),t=e.formats,n=e.text,r=this.state;return{formats:t,text:n,start:r.start,end:r.end}}},{key:"createRecord",value:function(){var e=Zc().getRangeAt(0);return Object(a.create)({element:this.editableRef,range:e,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags,removeNode:function(e){return"all"===e.getAttribute("data-mce-bogus")},unwrapNode:function(e){return!!e.getAttribute("data-mce-bogus")},removeAttribute:function(e){return 0===e.indexOf("data-mce-")},filterString:function(e){return e.replace("\ufeff","")},prepareEditableTree:this.props.prepareEditableTree})}},{key:"applyRecord",value:function(e){Object(a.apply)({value:e,current:this.editableRef,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags,createLinePadding:function(e){var t=e.createElement("br");return t.setAttribute("data-mce-bogus","1"),t},prepareEditableTree:this.props.prepareEditableTree})}},{key:"isEmpty",value:function(){return Object(a.isEmpty)(this.formatToValue(this.props.value))}},{key:"onPaste",value:function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(O.isNil)(n)?[]:n,r=Object(O.isNil)(r)?[]:r;var o="",c="";try{o=t.getData("text/plain"),c=t.getData("text/html")}catch(e){try{c=t.getData("Text")}catch(e){return}}e.preventDefault(),window.console.log("Received HTML:\n\n",c),window.console.log("Received plain text:\n\n",o);var s=Object(O.find)(Object(b.a)(n).concat(Object(b.a)(r)),(function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}));if(s&&!c){var l=s.getAsFile?s.getAsFile():s,u=Object(i.pasteHandler)({HTML:''),mode:"BLOCKS",tagName:this.props.tagName}),d=this.props.onReplace&&this.isEmpty();return window.console.log("Received item:\n\n",l),void(d?this.props.onReplace(u):this.onSplit&&this.splitContent(u))}var p=this.getRecord();if(!Object(a.isCollapsed)(p)){var f=(c||o).replace(/<[^>]+>/g,"").trim();if(Object(g.isURL)(f))return this.onChange(Object(a.applyFormat)(p,{type:"a",attributes:{href:Object(Ji.decodeEntities)(f)}})),void window.console.log("Created link:\n\n",f)}var h=this.props.onReplace&&this.isEmpty(),m="INLINE";h?m="BLOCKS":this.onSplit&&(m="AUTO");var v=Object(i.pasteHandler)({HTML:c,plainText:o,mode:m,tagName:this.props.tagName,canUserUseUnfilteredHTML:this.props.canUserUseUnfilteredHTML});if("string"==typeof v){var j=Object(a.create)({html:v});this.onChange(Object(a.insert)(p,j))}else if(this.onSplit){if(!v.length)return;h?this.props.onReplace(v):this.splitContent(v,{paste:!0})}}},{key:"onFocus",value:function(){var e=this.props.unstableOnFocus;e&&e(),document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"onBlur",value:function(){document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"onInput",value:function(e){if(!e.nativeEvent.isComposing){var t=this.createRecord(),n=this.patterns.reduce((function(e,t){return t(e)}),t);this.onChange(n,{withoutHistory:!0}),this.props.clearTimeout(this.onInput.timeout),this.onInput.timeout=this.props.setTimeout(this.onCreateUndoLevel,1e3)}}},{key:"onCompositionEnd",value:function(){this.onChange(this.createRecord())}},{key:"onSelectionChange",value:function(){var e=this.createRecord(),t=e.start,n=e.end,r=e.formats;if(t!==this.state.start||n!==this.state.end){var o=this.props.isCaretWithinFormattedText;!o&&r[t]?this.props.onEnterFormattedText():o&&!r[t]&&this.props.onExitFormattedText(),this.setState({start:t,end:n})}}},{key:"onChangeEditableValue",value:function(e){var t=e.formats,n=e.text;Object(O.get)(this.props,["onChangeEditableValue"],[]).forEach((function(e){e(t,n)}))}},{key:"onChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.withoutHistory;this.applyRecord(e);var r=e.start,o=e.end;this.onChangeEditableValue(e),this.savedContent=this.valueToFormat(e),this.props.onChange(this.savedContent),this.setState({start:r,end:o}),n||this.onCreateUndoLevel()}},{key:"onCreateUndoLevel",value:function(){this.lastHistoryValue!==this.savedContent&&(this.props.onCreateUndoLevel(),this.lastHistoryValue=this.savedContent)}},{key:"onDeleteKeyDown",value:function(e){var t=this.props,n=t.onMerge,r=t.onRemove;if(n||r){var o=e.keyCode===jo.BACKSPACE;if(Object(a.isCollapsed)(this.createRecord())){var i=this.isEmpty();(i||Object(Vo.isHorizontalEdge)(this.editableRef,o))&&(n&&n(!o),r&&i&&o&&r(!o),e.preventDefault())}}}},{key:"onKeyDown",value:function(e){var t=e.keyCode;if(t===jo.DELETE||t===jo.BACKSPACE){var n,r=this.createRecord(),o=Object(a.getSelectionStart)(r),c=Object(a.getSelectionEnd)(r);if(0===o&&0!==c&&c===r.text.length)return this.onChange(Object(a.remove)(r)),void e.preventDefault();if(this.multilineTag)t===jo.BACKSPACE?Object(a.charAt)(r,o-1)===a.LINE_SEPARATOR&&(n=Object(a.remove)(r,Object(a.isCollapsed)(r)?o-1:o,c)):Object(a.charAt)(r,c)===a.LINE_SEPARATOR&&(n=Object(a.remove)(r,o,Object(a.isCollapsed)(r)?c+1:c)),n&&(this.onChange(n),e.preventDefault());this.onDeleteKeyDown(e)}else if(t===jo.ENTER){e.preventDefault();var s=this.createRecord();if(this.props.onReplace){var l=Object(a.getTextContent)(s),u=Object(i.findTransform)(this.enterPatterns,(function(e){return e.regExp.test(l)}));if(u)return void this.props.onReplace([u.transform({content:l})])}if(this.multilineTag)this.onSplit&&Object(a.isEmptyLine)(s)?this.onSplit.apply(this,Object(b.a)(Object(a.split)(s).map(this.valueToFormat))):this.onChange(Object(a.insertLineSeparator)(s));else if(e.shiftKey||!this.onSplit){var d=Object(a.getTextContent)(s),p=d.length,f="\n";s.end!==p||"\n"===d.charAt(p-1)&&0!==p||(f="\n\n"),this.onChange(Object(a.insert)(s,f))}else this.splitContent()}}},{key:"splitContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.onSplit){var n=this.createRecord(),r=Object(a.split)(n),o=Object(u.a)(r,2),i=o[0],c=o[1];Object(a.isEmpty)(c)?i=n:Object(a.isEmpty)(i)&&(c=n),t.paste&&(i=Object(a.isEmpty)(i)?null:i,c=Object(a.isEmpty)(c)?null:c),i&&(i=this.valueToFormat(i)),c&&(c=this.valueToFormat(c)),this.onSplit.apply(this,[i,c].concat(Object(b.a)(e)))}}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,r=n.tagName,o=n.value,i=n.isSelected;if(r===e.tagName&&o!==e.value&&o!==this.savedContent){if(Array.isArray(o)&&Object(O.isEqual)(o,this.savedContent))return;var c=this.formatToValue(o);if(i){var s=this.formatToValue(e.value),l=Object(a.getTextContent)(s).length;c.start=l,c.end=l}this.applyRecord(c),this.savedContent=o}if(Object.keys(this.props).some((function(n){return 0===n.indexOf("format_")&&(Object(O.isPlainObject)(t.props[n])?Object.keys(t.props[n]).some((function(r){return t.props[n][r]!==e[n][r]})):t.props[n]!==e[n])}))){var u=this.formatToValue(o);i&&(u.start=this.state.start,u.end=this.state.end),this.applyRecord(u)}}},{key:"getFormatProps",value:function(){return Object(O.pickBy)(this.props,(function(e,t){return t.startsWith("format_")}))}},{key:"formatToValue",value:function(e){return Array.isArray(e)?Object(a.create)({html:i.children.toHTML(e),multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags}):"string"===this.props.format?Object(a.create)({html:e,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags}):null===e?Object(a.create)():e}},{key:"valueToEditableHTML",value:function(e){return Object(a.unstableToDom)({value:e,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags,createLinePadding:function(e){var t=e.createElement("br");return t.setAttribute("data-mce-bogus","1"),t},prepareEditableTree:this.props.prepareEditableTree}).body.innerHTML}},{key:"removeEditorOnlyFormats",value:function(e){return this.props.formatTypes.forEach((function(t){t.__experimentalCreatePrepareEditableTree&&(e=Object(a.removeFormat)(e,t.name,0,e.text.length))})),e}},{key:"valueToFormat",value:function(e){return e=this.removeEditorOnlyFormats(e),this.usedDeprecatedChildrenSource?i.children.fromDOM(Object(a.unstableToDom)({value:e,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags}).body.childNodes):"string"===this.props.format?Object(a.toHTMLString)({value:e,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags}):e}},{key:"render",value:function(){var e=this,t=this.props,n=t.tagName,r=void 0===n?"div":n,o=t.style,i=t.wrapperClassName,c=t.className,a=t.inlineToolbar,s=void 0!==a&&a,l=t.formattingControls,u=t.placeholder,d=t.keepPlaceholderOnFocus,p=void 0!==d&&d,b=t.isSelected,f=t.autocompleters,h=t.onTagNameChange,m=this.multilineTag,v=xc(this.props),O=["editor",r].join(),g=u&&(!b||p)&&this.isEmpty(),j=xr()(i,"editor-rich-text"),y=this.getRecord();return Object(Ir.createElement)("div",{className:j,onFocus:this.setFocusedElement},b&&"li"===this.multilineTag&&Object(Ir.createElement)(qc,{onTagNameChange:h,tagName:r,value:y,onChange:this.onChange}),b&&!s&&Object(Ir.createElement)(go,null,Object(Ir.createElement)(Pc,{controls:l})),b&&s&&Object(Ir.createElement)(Hr.IsolatedEventContainer,{className:"editor-rich-text__inline-toolbar"},Object(Ir.createElement)(Pc,{controls:l})),Object(Ir.createElement)(Yr,{onReplace:this.props.onReplace,completers:f,record:y,onChange:this.onChange},(function(t){var n=t.listBoxId,i=t.activeId;return Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(Dc,Object(Pr.a)({tagName:r,style:o,record:y,valueToEditableHTML:e.valueToEditableHTML,isPlaceholderVisible:g,"aria-label":u,"aria-autocomplete":"list","aria-owns":n,"aria-activedescendant":i},v,{className:c,key:O,onPaste:e.onPaste,onInput:e.onInput,onCompositionEnd:e.onCompositionEnd,onKeyDown:e.onKeyDown,onFocus:e.onFocus,onBlur:e.onBlur,multilineTag:e.multilineTag,multilineWrapperTags:e.multilineWrapperTags,setRef:e.setRef})),g&&Object(Ir.createElement)(r,{className:xr()("editor-rich-text__tinymce",c),style:o},m?Object(Ir.createElement)(m,null,u):u),b&&Object(Ir.createElement)(Tc,{value:y,onChange:e.onChange}))})),b&&Object(Ir.createElement)($c,null))}}]),t}(Ir.Component);Jc.defaultProps={formattingControls:["bold","italic","link","strikethrough"],format:"string",value:""};var ea=Object(Lr.compose)([Lr.withInstanceId,zr((function(e,t){return!1===t.isSelected?{clientId:e.clientId}:!0===t.isSelected?{isSelected:e.isSelected,clientId:e.clientId}:{isSelected:e.isSelected&&e.focusedElement===t.instanceId,setFocusedElement:e.setFocusedElement,clientId:e.clientId}})),Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.canUserUseUnfilteredHTML,r=t.isCaretWithinFormattedText,o=e("core/rich-text").getFormatTypes;return{canUserUseUnfilteredHTML:n(),isCaretWithinFormattedText:r(),formatTypes:o()}})),Object(l.withDispatch)((function(e){var t=e("core/editor");return{onCreateUndoLevel:t.createUndoLevel,onRedo:t.redo,onUndo:t.undo,onEnterFormattedText:t.enterFormattedText,onExitFormattedText:t.exitFormattedText}})),Lr.withSafeTimeout,Object(Hr.withFilters)("experimentalRichText")])(Jc);ea.Content=function(e){var t,n=e.value,r=e.tagName,o=e.multiline,c=Object(p.a)(e,["value","tagName","multiline"]),a=n;!0!==o&&"p"!==o&&"li"!==o||(t=!0===o?"p":o),Array.isArray(n)&&(a=i.children.toHTML(n)),!a&&t&&(a="<".concat(t,">"));var s=Object(Ir.createElement)(Ir.RawHTML,null,a);return r?Object(Ir.createElement)(r,Object(O.omit)(c,["format"]),s):s},ea.isEmpty=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Array.isArray(e)&&!e||0===e.length},ea.Content.defaultProps={format:"string",value:""};var ta=ea,na=function(e){var t=e.urlQueryArgs,n=void 0===t?{}:t,r=Object(p.a)(e,["urlQueryArgs"]),o=Object(l.select)("core/editor").getCurrentPostId;return n=Object(d.a)({post_id:o()},n),Object(Ir.createElement)(Hr.ServerSideRender,Object(Pr.a)({urlQueryArgs:n},r))},ra=Object(Hr.withFilters)("editor.MediaUpload")((function(){return null})),oa=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(Ur.a)(Object(Ur.a)(e))),e.state={isSettingsExpanded:!1},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.renderSettings,r=e.onClose,o=e.onClickOutside,i=e.position,c=void 0===i?"bottom center":i,a=e.focusOnMount,s=void 0===a?"firstElement":a,l=this.state.isSettingsExpanded,u=!!n&&l;return Object(Ir.createElement)(Hr.Popover,{className:"editor-url-popover",focusOnMount:s,position:c,onClose:r,onClickOutside:o},Object(Ir.createElement)("div",{className:"editor-url-popover__row"},t,!!n&&Object(Ir.createElement)(Hr.IconButton,{className:"editor-url-popover__settings-toggle",icon:"ellipsis",label:Object(_.__)("Link Settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":l})),u&&Object(Ir.createElement)("div",{className:"editor-url-popover__row editor-url-popover__settings"},n()))}}]),t}(Ir.Component);function ia(e){return e?Object(O.flatMap)(e,(function(e,t){var n=e.split("/"),r=Object(u.a)(n,1)[0],o=t.split("|");return[e].concat(Object(b.a)(Object(O.map)(o,(function(e){return"".concat(r,"/").concat(e)}))))})):e}function ca(){return(ca=Object(fr.a)(regeneratorRuntime.mark((function e(t){var n,r,o,i,c,a,s,l,u,p,f,h,m,v,g,j,y,k,E,S,C,w,T,P,I,B,x,L,A;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.allowedTypes,r=t.additionalData,o=void 0===r?{}:r,i=t.filesList,c=t.maxUploadFileSize,a=t.onError,s=void 0===a?O.noop:a,l=t.onFileChange,u=t.wpAllowedMimeTypes,p=void 0===u?null:u,f=Object(b.a)(i),h=[],m=function(e,t){Object(Sc.revokeBlobURL)(Object(O.get)(h,[e,"url"])),h[e]=t,l(Object(O.compact)(h))},v=function(e){return!n||Object(O.some)(n,(function(t){return Object(O.includes)(t,"/")?t===e:Object(O.startsWith)(e,"".concat(t,"/"))}))},g=ia(p),j=function(e){return Object(O.includes)(g,e)},y=function(e){e.message=[Object(Ir.createElement)("strong",{key:"filename"},e.file.name),": ",e.message],s(e)},k=[],E=!0,S=!1,C=void 0,e.prev=12,w=f[Symbol.iterator]();case 14:if(E=(T=w.next()).done){e.next=34;break}if(P=T.value,!g||j(P.type)){e.next=19;break}return y({code:"MIME_TYPE_NOT_ALLOWED_FOR_USER",message:Object(_.__)("Sorry, this file type is not permitted for security reasons."),file:P}),e.abrupt("continue",31);case 19:if(v(P.type)){e.next=22;break}return y({code:"MIME_TYPE_NOT_SUPPORTED",message:Object(_.__)("Sorry, this file type is not supported here."),file:P}),e.abrupt("continue",31);case 22:if(!(c&&P.size>c)){e.next=25;break}return y({code:"SIZE_ABOVE_LIMIT",message:Object(_.__)("This file exceeds the maximum upload size for this site."),file:P}),e.abrupt("continue",31);case 25:if(!(P.size<=0)){e.next=28;break}return y({code:"EMPTY_FILE",message:Object(_.__)("This file is empty."),file:P}),e.abrupt("continue",31);case 28:k.push(P),h.push({url:Object(Sc.createBlobURL)(P)}),l(h);case 31:E=!0,e.next=14;break;case 34:e.next=40;break;case 36:e.prev=36,e.t0=e.catch(12),S=!0,C=e.t0;case 40:e.prev=40,e.prev=41,E||null==w.return||w.return();case 43:if(e.prev=43,!S){e.next=46;break}throw C;case 46:return e.finish(43);case 47:return e.finish(40);case 48:I=0;case 49:if(!(I0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(O.flatMap)(t,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?Object(d.a)({},t,{path:n,level:t.attributes.level,isEmpty:Ca(t)}):e(t.innerBlocks,Object(b.a)(n).concat([t]))}))}(n);if(c.length<1)return null;var s=1,l=i&&r,u=Object(O.countBy)(c,"level")[1]>1;return Object(Ir.createElement)("div",{className:"document-outline"},Object(Ir.createElement)("ul",null,l&&Object(Ir.createElement)(ya,{level:Object(_.__)("Title"),isValid:!0,onClick:function(){var e=document.querySelector(".editor-post-title__input");e&&e.focus()}},r),c.map((function(e,t){var n=e.level>s+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(u||l));return s=e.level,Object(Ir.createElement)(ya,{key:t,level:"H".concat(e.level),isValid:r,onClick:function(){return t=e.clientId,o(t);var t},path:e.path},e.isEmpty?ka:Object(a.getTextContent)(Object(a.create)({html:e.attributes.content})),n&&_a,1===e.level&&u&&Sa,l&&1===e.level&&!u&&Ea)}))))}));var Ta=Object(l.withSelect)((function(e){return{blocks:e("core/editor").getBlocks()}}))((function(e){var t=e.blocks,n=e.children;return Object(O.filter)(t,(function(e){return"core/heading"===e.name})).length<1?null:n}));var Pa=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=e("core/editor"),r=n.getBlocksByClientId,o=n.getBlockIndex,c=n.getTemplateLock,a=n.getBlockRootClientId,s=r(t.clientIds),l=Object(O.every)(s,(function(e){return!!e&&Object(i.hasBlockSupport)(e.name,"multiple",!0)})),u=a(t.clientIds[0]);return{firstSelectedIndex:o(Object(O.first)(Object(O.castArray)(t.clientIds)),u),lastSelectedIndex:o(Object(O.last)(Object(O.castArray)(t.clientIds)),u),isLocked:!!c(u),blocks:s,canDuplicate:l,rootClientId:u,extraProps:t}})),Object(l.withDispatch)((function(e,t){var n=t.clientIds,r=t.rootClientId,o=t.blocks,c=t.firstSelectedIndex,a=t.lastSelectedIndex,s=t.isLocked,l=t.canDuplicate,u=e("core/editor"),d=u.insertBlocks,p=u.multiSelect,b=u.removeBlocks,f=u.insertDefaultBlock;return{onDuplicate:function(){if(!s&&l){var e=o.map((function(e){return Object(i.cloneBlock)(e)}));d(e,a+1,r),e.length>1&&p(Object(O.first)(e).clientId,Object(O.last)(e).clientId)}},onRemove:function(){s||b(n)},onInsertBefore:function(){s||f({},r,c)},onInsertAfter:function(){s||f({},r,a+1)}}}))])((function(e){var t=e.onDuplicate,n=e.onRemove,r=e.onInsertBefore,o=e.onInsertAfter,i=e.isLocked,c=e.canDuplicate;return(0,e.children)({onDuplicate:t,onRemove:n,onInsertAfter:o,onInsertBefore:r,isLocked:i,canDuplicate:c})})),Ia=function(e){return e.preventDefault(),e},Ba={duplicate:{raw:jo.rawShortcut.primaryShift("d"),display:jo.displayShortcut.primaryShift("d")},removeBlock:{raw:jo.rawShortcut.access("z"),display:jo.displayShortcut.access("z")},insertBefore:{raw:jo.rawShortcut.primaryAlt("t"),display:jo.displayShortcut.primaryAlt("t")},insertAfter:{raw:jo.rawShortcut.primaryAlt("y"),display:jo.displayShortcut.primaryAlt("y")}},xa=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).selectAll=e.selectAll.bind(Object(Ur.a)(Object(Ur.a)(e))),e.undoOrRedo=e.undoOrRedo.bind(Object(Ur.a)(Object(Ur.a)(e))),e.save=e.save.bind(Object(Ur.a)(Object(Ur.a)(e))),e.deleteSelectedBlocks=e.deleteSelectedBlocks.bind(Object(Ur.a)(Object(Ur.a)(e))),e.clearMultiSelection=e.clearMultiSelection.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"selectAll",value:function(e){var t=this.props,n=t.rootBlocksClientIds,r=t.onMultiSelect;e.preventDefault(),r(Object(O.first)(n),Object(O.last)(n))}},{key:"undoOrRedo",value:function(e){var t=this.props,n=t.onRedo,r=t.onUndo;e.shiftKey?n():r(),e.preventDefault()}},{key:"save",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"deleteSelectedBlocks",value:function(e){var t=this.props,n=t.selectedBlockClientIds,r=t.hasMultiSelection,o=t.onRemove,i=t.isLocked;r&&(e.preventDefault(),i||o(n))}},{key:"clearMultiSelection",value:function(){var e=this.props,t=e.hasMultiSelection,n=e.clearSelectedBlock;t&&(n(),window.getSelection().removeAllRanges())}},{key:"render",value:function(){var e,t=this.props.selectedBlockClientIds;return Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(Hr.KeyboardShortcuts,{shortcuts:(e={},Object(f.a)(e,jo.rawShortcut.primary("a"),this.selectAll),Object(f.a)(e,jo.rawShortcut.primary("z"),this.undoOrRedo),Object(f.a)(e,jo.rawShortcut.primaryShift("z"),this.undoOrRedo),Object(f.a)(e,"backspace",this.deleteSelectedBlocks),Object(f.a)(e,"del",this.deleteSelectedBlocks),Object(f.a)(e,"escape",this.clearMultiSelection),e)}),Object(Ir.createElement)(Hr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(f.a)({},jo.rawShortcut.primary("s"),this.save)}),t.length>0&&Object(Ir.createElement)(Pa,{clientIds:t},(function(e){var t,n=e.onDuplicate,r=e.onRemove,o=e.onInsertAfter,i=e.onInsertBefore;return Object(Ir.createElement)(Hr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(t={},Object(f.a)(t,Ba.duplicate.raw,Object(O.flow)(Ia,n)),Object(f.a)(t,Ba.removeBlock.raw,Object(O.flow)(Ia,r)),Object(f.a)(t,Ba.insertBefore.raw,Object(O.flow)(Ia,i)),Object(f.a)(t,Ba.insertAfter.raw,Object(O.flow)(Ia,o)),t)})})))}}]),t}(Ir.Component),La=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getBlockOrder,r=t.getMultiSelectedBlockClientIds,o=t.hasMultiSelection,i=t.isEditedPostDirty,c=t.getBlockRootClientId,a=t.getTemplateLock,s=(0,t.getSelectedBlockClientId)(),l=s?[s]:r();return{rootBlocksClientIds:n(),hasMultiSelection:o(),isLocked:Object(O.some)(l,(function(e){return!!a(c(e))})),isDirty:i(),selectedBlockClientIds:l}})),Object(l.withDispatch)((function(e,t){var n=e("core/editor"),r=n.clearSelectedBlock,o=n.multiSelect,i=n.redo,c=n.undo,a=n.removeBlocks,s=n.savePost;return{onSave:function(){t.isDirty&&s()},clearSelectedBlock:r,onMultiSelect:o,onRedo:i,onUndo:c,onRemove:a}}))])(xa);var Aa=Object(Lr.compose)([Object(l.withSelect)((function(e){return{hasRedo:e("core/editor").hasEditorRedo()}})),Object(l.withDispatch)((function(e){return{redo:e("core/editor").redo}}))])((function(e){var t=e.hasRedo,n=e.redo;return Object(Ir.createElement)(Hr.IconButton,{icon:"redo",label:Object(_.__)("Redo"),shortcut:jo.displayShortcut.primaryShift("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__redo"})}));var Na=Object(Lr.compose)([Object(l.withSelect)((function(e){return{hasUndo:e("core/editor").hasEditorUndo()}})),Object(l.withDispatch)((function(e){return{undo:e("core/editor").undo}}))])((function(e){var t=e.hasUndo,n=e.undo;return Object(Ir.createElement)(Hr.IconButton,{icon:"undo",label:Object(_.__)("Undo"),shortcut:jo.displayShortcut.primary("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__undo"})}));var Ra=Object(Lr.compose)([Object(l.withSelect)((function(e){return{isValid:e("core/editor").isValidTemplate()}})),Object(l.withDispatch)((function(e){var t=e("core/editor"),n=t.setTemplateValidity;return{resetTemplateValidity:function(){return n(!0)},synchronizeTemplate:t.synchronizeTemplate}}))])((function(e){var t=e.isValid,n=Object(p.a)(e,["isValid"]);return t?null:Object(Ir.createElement)(Hr.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning"},Object(Ir.createElement)("p",null,Object(_.__)("The content of your post doesn’t match the template assigned to your post type.")),Object(Ir.createElement)("div",null,Object(Ir.createElement)(Hr.Button,{isDefault:!0,onClick:n.resetTemplateValidity},Object(_.__)("Keep it as is")),Object(Ir.createElement)(Hr.Button,{onClick:function(){window.confirm(Object(_.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0},Object(_.__)("Reset the template"))))}));var Da=Object(Lr.compose)([Object(l.withSelect)((function(e){return{notices:e("core/notices").getNotices()}})),Object(l.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice}}))])((function(e){return Object(Ir.createElement)(Hr.NoticeList,e,Object(Ir.createElement)(Ra,null))}));var Fa=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditorSettings,o=e("core").getPostType,i=r().availableTemplates;return{postType:o(n("type")),availableTemplates:i}}))((function(e){var t=e.availableTemplates,n=e.postType,r=e.children;return!Object(O.get)(n,["supports","page-attributes"],!1)&&Object(O.isEmpty)(t)?null:r}));var Ma=Object(l.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute;return{postType:(0,e("core").getPostType)(t("type"))}}))((function(e){var t=e.postType,n=e.children,r=e.supportKeys,o=!0;return t&&(o=Object(O.some)(Object(O.castArray)(r),(function(e){return!!t.supports[e]}))),o?n:null})),Ua=Object(Lr.withState)({orderInput:null})((function(e){var t=e.onUpdateOrder,n=e.order,r=void 0===n?0:n,o=e.orderInput,i=e.setState,c=null===o?r:o;return Object(Ir.createElement)(Hr.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(_.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(O.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})}));var Ha=Object(Lr.compose)([Object(l.withSelect)((function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}})),Object(l.withDispatch)((function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}))])((function(e){return Object(Ir.createElement)(Ma,{supportKeys:"page-attributes"},Object(Ir.createElement)(Ua,e))}));function Va(e){var t=Object(O.groupBy)(e,"parent");return function e(n){return n.map((function(n){var r=t[n.id];return Object(d.a)({},n,{children:r&&r.length?e(r):[]})}))}(t[0]||[])}var Ka=Object(l.withSelect)((function(e){var t=e("core"),n=t.getPostType,r=t.getEntityRecords,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,a=c("type"),s=n(a),l=i(),u=Object(O.get)(s,["hierarchical"],!1),d={per_page:-1,exclude:l,parent_exclude:l,orderby:"menu_order",order:"asc"};return{parent:c("parent"),items:u?r("postType",a,d):[],postType:s}})),Wa=Object(l.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateParent:function(e){t({parent:e||0})}}})),za=Object(Lr.compose)([Ka,Wa])((function(e){var t=e.parent,n=e.postType,r=e.items,o=e.onUpdateParent,i=Object(O.get)(n,["hierarchical"],!1),c=Object(O.get)(n,["labels","parent_item_colon"]),a=r||[];if(!i||!c||!a.length)return null;var s=Va(a.map((function(e){return{id:e.id,parent:e.parent,name:e.title.raw?e.title.raw:"#".concat(e.id," (").concat(Object(_.__)("no title"),")")}})));return Object(Ir.createElement)(Hr.TreeSelect,{label:c,noOptionLabel:"(".concat(Object(_.__)("no parent"),")"),tree:s,selectedId:t,onChange:o})}));var qa=Object(Lr.compose)(Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}})),Object(l.withDispatch)((function(e){return{onUpdate:function(t){e("core/editor").editPost({template:t||""})}}})))((function(e){var t=e.availableTemplates,n=e.selectedTemplate,r=e.onUpdate;return Object(O.isEmpty)(t)?null:Object(Ir.createElement)(Hr.SelectControl,{label:Object(_.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(O.map)(t,(function(e,t){return{value:t,label:e}}))})}));var Ga=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(O.get)(t,["_links","wp:action-assign-author"],!1),postType:e("core/editor").getCurrentPostType(),authors:e("core").getAuthors()}})),Lr.withInstanceId])((function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||n.length<2?null:Object(Ir.createElement)(Ma,{supportKeys:"author"},r)})),Ya=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).setAuthorId=e.setAuthorId.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"setAuthorId",value:function(e){var t=this.props.onUpdateAuthor,n=e.target.value;t(Number(n))}},{key:"render",value:function(){var e=this.props,t=e.postAuthor,n=e.instanceId,r=e.authors,o="post-author-selector-"+n;return Object(Ir.createElement)(Ga,null,Object(Ir.createElement)("label",{htmlFor:o},Object(_.__)("Author")),Object(Ir.createElement)("select",{id:o,value:t,onChange:this.setAuthorId,className:"editor-post-author__select"},r.map((function(e){return Object(Ir.createElement)("option",{key:e.id,value:e.id},e.name)}))))}}]),t}(Ir.Component),$a=Object(Lr.compose)([Object(l.withSelect)((function(e){return{postAuthor:e("core/editor").getEditedPostAttribute("author"),authors:e("core").getAuthors()}})),Object(l.withDispatch)((function(e){return{onUpdateAuthor:function(t){e("core/editor").editPost({author:t})}}})),Lr.withInstanceId])(Ya);var Xa=Object(Lr.compose)([Object(l.withSelect)((function(e){return{commentStatus:e("core/editor").getEditedPostAttribute("comment_status")}})),Object(l.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.commentStatus,n=void 0===t?"open":t,r=Object(p.a)(e,["commentStatus"]);return Object(Ir.createElement)(Hr.CheckboxControl,{label:Object(_.__)("Allow Comments"),checked:"open"===n,onChange:function(){return r.editPost({comment_status:"open"===n?"closed":"open"})}})}));var Qa=Object(Lr.compose)([Object(l.withSelect)((function(e){return{excerpt:e("core/editor").getEditedPostAttribute("excerpt")}})),Object(l.withDispatch)((function(e){return{onUpdateExcerpt:function(t){e("core/editor").editPost({excerpt:t})}}}))])((function(e){var t=e.excerpt,n=e.onUpdateExcerpt;return Object(Ir.createElement)("div",{className:"editor-post-excerpt"},Object(Ir.createElement)(Hr.TextareaControl,{label:Object(_.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(e){return n(e)},value:t}),Object(Ir.createElement)(Hr.ExternalLink,{href:"https://codex.wordpress.org/Excerpt"},Object(_.__)("Learn more about manual excerpts")))}));var Za=function(e){return Object(Ir.createElement)(Ma,Object(Pr.a)({},e,{supportKeys:"excerpt"}))};var Ja=Object(l.withSelect)((function(e){var t=e("core").getThemeSupports;return{postType:(0,e("core/editor").getEditedPostAttribute)("type"),themeSupports:t()}}))((function(e){var t=e.themeSupports,n=e.children,r=e.postType,o=e.supportKeys;return Object(O.some)(Object(O.castArray)(o),(function(e){var n=Object(O.get)(t,[e],!1);return"post-thumbnails"===e&&Object(O.isArray)(n)?Object(O.includes)(n,r):n}))?n:null}));var es=function(e){return Object(Ir.createElement)(Ja,{supportKeys:"post-thumbnails"},Object(Ir.createElement)(Ma,Object(Pr.a)({},e,{supportKeys:"thumbnail"})))},ts=["image"],ns=Object(_.__)("Featured Image"),rs=Object(_.__)("Set featured image"),os=Object(_.__)("Remove image");var is=Object(l.withSelect)((function(e){var t=e("core"),n=t.getMedia,r=t.getPostType,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,a=c("featured_media");return{media:a?n(a):null,currentPostId:i(),postType:r(c("type")),featuredImageId:a}})),cs=Object(l.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateImage:function(e){t({featured_media:e.id})},onRemoveImage:function(){t({featured_media:0})}}})),as=Object(Lr.compose)(is,cs,Object(Hr.withFilters)("editor.PostFeaturedImage"))((function(e){var t,n,r,o=e.currentPostId,i=e.featuredImageId,c=e.onUpdateImage,a=e.onRemoveImage,s=e.media,l=e.postType,u=Object(O.get)(l,["labels"],{}),d=Object(Ir.createElement)("p",null,Object(_.__)("To edit the featured image, you need permission to upload media."));if(s){var p=Object(Ar.applyFilters)("editor.PostFeaturedImage.imageSize","post-thumbnail",s.id,o);Object(O.has)(s,["media_details","sizes",p])?(t=s.media_details.sizes[p].width,n=s.media_details.sizes[p].height,r=s.media_details.sizes[p].source_url):(t=s.media_details.width,n=s.media_details.height,r=s.source_url)}return Object(Ir.createElement)(es,null,Object(Ir.createElement)("div",{className:"editor-post-featured-image"},!!i&&Object(Ir.createElement)(Qo,{fallback:d},Object(Ir.createElement)(ra,{title:u.featured_image||ns,onSelect:c,allowedTypes:ts,modalClass:"editor-post-featured-image__media-modal",render:function(e){var o=e.open;return Object(Ir.createElement)(Hr.Button,{className:"editor-post-featured-image__preview",onClick:o,"aria-label":Object(_.__)("Edit or update the image")},s&&Object(Ir.createElement)(Hr.ResponsiveWrapper,{naturalWidth:t,naturalHeight:n},Object(Ir.createElement)("img",{src:r,alt:""})),!s&&Object(Ir.createElement)(Hr.Spinner,null))},value:i})),!!i&&s&&!s.isLoading&&Object(Ir.createElement)(Qo,null,Object(Ir.createElement)(ra,{title:u.featured_image||ns,onSelect:c,allowedTypes:ts,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(Ir.createElement)(Hr.Button,{onClick:t,isDefault:!0,isLarge:!0},Object(_.__)("Replace image"))}})),!i&&Object(Ir.createElement)("div",null,Object(Ir.createElement)(Qo,{fallback:d},Object(Ir.createElement)(ra,{title:u.featured_image||ns,onSelect:c,allowedTypes:ts,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(Ir.createElement)(Hr.Button,{className:"editor-post-featured-image__toggle",onClick:t},u.set_featured_image||rs)}}))),!!i&&Object(Ir.createElement)(Qo,null,Object(Ir.createElement)(Hr.Button,{onClick:a,isLink:!0,isDestructive:!0},u.remove_featured_image||os))))}));var ss=Object(l.withSelect)((function(e){return{disablePostFormats:e("core/editor").getEditorSettings().disablePostFormats}}))((function(e){var t=e.disablePostFormats,n=Object(p.a)(e,["disablePostFormats"]);return!t&&Object(Ir.createElement)(Ma,Object(Pr.a)({},n,{supportKeys:"post-formats"}))})),ls=[{id:"aside",caption:Object(_.__)("Aside")},{id:"gallery",caption:Object(_.__)("Gallery")},{id:"link",caption:Object(_.__)("Link")},{id:"image",caption:Object(_.__)("Image")},{id:"quote",caption:Object(_.__)("Quote")},{id:"standard",caption:Object(_.__)("Standard")},{id:"status",caption:Object(_.__)("Status")},{id:"video",caption:Object(_.__)("Video")},{id:"audio",caption:Object(_.__)("Audio")},{id:"chat",caption:Object(_.__)("Chat")}];var us=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=n("format"),i=e("core").getThemeSupports();return{postFormat:o,supportedFormats:Object(O.union)([o],Object(O.get)(i,["formats"],[])),suggestedFormat:r()}})),Object(l.withDispatch)((function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}})),Lr.withInstanceId])((function(e){var t=e.onUpdatePostFormat,n=e.postFormat,r=void 0===n?"standard":n,o=e.supportedFormats,i=e.suggestedFormat,c="post-format-selector-"+e.instanceId,a=ls.filter((function(e){return Object(O.includes)(o,e.id)})),s=Object(O.find)(a,(function(e){return e.id===i}));return Object(Ir.createElement)(ss,null,Object(Ir.createElement)("div",{className:"editor-post-format"},Object(Ir.createElement)("div",{className:"editor-post-format__content"},Object(Ir.createElement)("label",{htmlFor:c},Object(_.__)("Post Format")),Object(Ir.createElement)(Hr.SelectControl,{value:r,onChange:function(e){return t(e)},id:c,options:a.map((function(e){return{label:e.caption,value:e.id}}))})),s&&s.id!==r&&Object(Ir.createElement)("div",{className:"editor-post-format__suggestion"},Object(_.__)("Suggestion:")," ",Object(Ir.createElement)(Hr.Button,{isLink:!0,onClick:function(){return t(s.id)}},s.caption))))}));var ds=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(e){var t=e.lastRevisionId,n=e.revisionsCount,r=e.children;return!t||n<2?null:Object(Ir.createElement)(Ma,{supportKeys:"revisions"},r)}));var ps=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(e){var t=e.lastRevisionId,n=e.revisionsCount;return Object(Ir.createElement)(ds,null,Object(Ir.createElement)(Hr.IconButton,{href:la("revision.php",{revision:t,gutenberg:!0}),className:"editor-post-last-revision__title",icon:"backup"},Object(_.sprintf)(Object(_._n)("%d Revision","%d Revisions",n),n)))})),bs=n("xeH2"),fs=n.n(bs);var hs=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).openPreviewWindow=e.openPreviewWindow.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props.previewLink;t&&!e.previewLink&&this.setPreviewWindowLink(t)}},{key:"setPreviewWindowLink",value:function(e){var t=this.previewWindow;t&&!t.closed&&(t.location=e)}},{key:"getWindowTarget",value:function(){var e=this.props.postId;return"wp-preview-".concat(e)}},{key:"openPreviewWindow",value:function(e){var t,n;(e.preventDefault(),this.previewWindow&&!this.previewWindow.closed||(this.previewWindow=window.open("",this.getWindowTarget())),this.previewWindow.focus(),this.props.isAutosaveable)?(this.props.isDraft?this.props.savePost({isPreview:!0}):this.props.autosave({isPreview:!0}),t=this.previewWindow.document,n=Object(Ir.renderToString)(Object(Ir.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},Object(Ir.createElement)(Hr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96"},Object(Ir.createElement)(Hr.Path,{className:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),Object(Ir.createElement)(Hr.Path,{className:"inner",d:"M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",fill:"none"})),Object(Ir.createElement)("p",null,Object(_.__)("Generating preview…")))),n+='\n\t\t\n\t',t.write(n),t.title=Object(_.__)("Generating preview…"),t.close()):this.setPreviewWindowLink(e.target.href)}},{key:"render",value:function(){var e=this.props,t=e.previewLink,n=e.currentPostLink,r=e.isSaveable,o=t||n;return Object(Ir.createElement)(Hr.Button,{isLarge:!0,className:"editor-post-preview",href:o,target:this.getWindowTarget(),disabled:!r,onClick:this.openPreviewWindow},Object(_._x)("Preview","imperative verb"),Object(Ir.createElement)("span",{className:"screen-reader-text"},Object(_.__)("(opens in a new tab)")),Object(Ir.createElement)(c.DotTip,{tipId:"core/editor.preview"},Object(_.__)("Click “Preview” to load a preview of this page, so you can make sure you’re happy with your blocks.")))}}]),t}(Ir.Component),ms=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.forcePreviewLink,r=t.forceIsAutosaveable,o=e("core/editor"),i=o.getCurrentPostId,c=o.getCurrentPostAttribute,a=o.getEditedPostAttribute,s=o.isEditedPostSaveable,l=o.isEditedPostAutosaveable,u=o.getEditedPostPreviewLink,d=e("core").getPostType,p=u(),b=d(a("type"));return{postId:i(),currentPostLink:c("link"),previewLink:void 0!==n?n:p,isSaveable:s(),isAutosaveable:r||l(),isViewable:Object(O.get)(b,["viewable"],!1),isDraft:-1!==["draft","auto-draft"].indexOf(a("status"))}})),Object(l.withDispatch)((function(e){return{autosave:e("core/editor").autosave,savePost:e("core/editor").savePost}})),Object(Lr.ifCondition)((function(e){return e.isViewable}))])(hs),vs=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).sendPostLock=e.sendPostLock.bind(Object(Ur.a)(Object(Ur.a)(e))),e.receivePostLock=e.receivePostLock.bind(Object(Ur.a)(Object(Ur.a)(e))),e.releasePostLock=e.releasePostLock.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){fs()(document).on("heartbeat-send.refresh-lock",this.sendPostLock).on("heartbeat-tick.refresh-lock",this.receivePostLock)}},{key:"componentWillUnmount",value:function(){fs()(document).off("heartbeat-send.refresh-lock",this.sendPostLock).off("heartbeat-tick.refresh-lock",this.receivePostLock)}},{key:"sendPostLock",value:function(e,t){var n=this.props,r=n.isLocked,o=n.activePostLock,i=n.postId;r||(t["wp-refresh-post-lock"]={lock:o,post_id:i})}},{key:"receivePostLock",value:function(e,t){if(t["wp-refresh-post-lock"]){var n=this.props,r=n.autosave,o=n.updatePostLock,i=t["wp-refresh-post-lock"];i.lock_error?(r(),o({isLocked:!0,isTakeover:!0,user:{avatar:i.lock_error.avatar_src}})):i.new_lock&&o({isLocked:!1,activePostLock:i.new_lock})}}},{key:"releasePostLock",value:function(){var e=this.props,t=e.isLocked,n=e.activePostLock,r=e.postLockUtils,o=e.postId;if(!t&&n){var i={action:"wp-remove-post-lock",_wpnonce:r.unlockNonce,post_ID:o,active_post_lock:n};fs.a.post({async:!1,url:r.ajaxUrl,data:i})}}},{key:"render",value:function(){var e=this.props,t=e.user,n=e.postId,r=e.isLocked,o=e.isTakeover,i=e.postLockUtils,c=e.postType;if(!r)return null;var a=t.name,s=t.avatar,l=Object(g.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:n,action:"edit",_wpnonce:i.nonce}),u=la("edit.php",{post_type:Object(O.get)(c,["slug"])}),d=Object(O.get)(c,["labels","all_items"]);return Object(Ir.createElement)(Hr.Modal,{title:o?Object(_.__)("Someone else has taken over this post."):Object(_.__)("This post is already being edited."),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissable:!1,className:"editor-post-locked-modal"},!!s&&Object(Ir.createElement)("img",{src:s,alt:Object(_.__)("Avatar"),className:"editor-post-locked-modal__avatar"}),!!o&&Object(Ir.createElement)("div",null,Object(Ir.createElement)("div",null,a?Object(_.sprintf)(Object(_.__)("%s now has editing control of this post. Don’t worry, your changes up to this moment have been saved."),a):Object(_.__)("Another user now has editing control of this post. Don’t worry, your changes up to this moment have been saved.")),Object(Ir.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(Ir.createElement)(Hr.Button,{isPrimary:!0,isLarge:!0,href:u},d))),!o&&Object(Ir.createElement)("div",null,Object(Ir.createElement)("div",null,a?Object(_.sprintf)(Object(_.__)("%s is currently working on this post, which means you cannot make changes, unless you take over."),a):Object(_.__)("Another user is currently working on this post, which means you cannot make changes, unless you take over.")),Object(Ir.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(Ir.createElement)(Hr.Button,{isDefault:!0,isLarge:!0,href:u},d),Object(Ir.createElement)(ms,null),Object(Ir.createElement)(Hr.Button,{isPrimary:!0,isLarge:!0,href:l},Object(_.__)("Take Over")))))}}]),t}(Ir.Component),Os=Object(Lr.compose)(Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getEditorSettings,r=t.isPostLocked,o=t.isPostLockTakeover,i=t.getPostLockUser,c=t.getCurrentPostId,a=t.getActivePostLock,s=t.getEditedPostAttribute,l=e("core").getPostType;return{isLocked:r(),isTakeover:o(),user:i(),postId:c(),postLockUtils:n().postLockUtils,activePostLock:a(),postType:l(s("type"))}})),Object(l.withDispatch)((function(e){var t=e("core/editor");return{autosave:t.autosave,updatePostLock:t.updatePostLock}})),Object(Lr.withGlobalEvents)({beforeunload:"releasePostLock"}))(vs);var gs=Object(Lr.compose)(Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.isCurrentPostPublished,r=t.getCurrentPostType,o=t.getCurrentPost;return{hasPublishAction:Object(O.get)(o(),["_links","wp:action-publish"],!1),isPublished:n(),postType:r()}})))((function(e){var t=e.hasPublishAction,n=e.isPublished,r=e.children;return n||!t?null:r}));var js=Object(Lr.compose)(Object(l.withSelect)((function(e){return{status:e("core/editor").getEditedPostAttribute("status")}})),Object(l.withDispatch)((function(e){return{onUpdateStatus:function(t){e("core/editor").editPost({status:t})}}})))((function(e){var t=e.status,n=e.onUpdateStatus;return Object(Ir.createElement)(gs,null,Object(Ir.createElement)(Hr.CheckboxControl,{label:Object(_.__)("Pending Review"),checked:"pending"===t,onChange:function(){n("pending"===t?"draft":"pending")}}))}));var ys=Object(Lr.compose)([Object(l.withSelect)((function(e){return{pingStatus:e("core/editor").getEditedPostAttribute("ping_status")}})),Object(l.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.pingStatus,n=void 0===t?"open":t,r=Object(p.a)(e,["pingStatus"]);return Object(Ir.createElement)(Hr.CheckboxControl,{label:Object(_.__)("Allow Pingbacks & Trackbacks"),checked:"open"===n,onChange:function(){return r.editPost({ping_status:"open"===n?"closed":"open"})}})}));var ks=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.forceIsSaving,r=e("core/editor"),o=r.isCurrentPostPublished,i=r.isEditedPostBeingScheduled,c=r.isSavingPost,a=r.isPublishingPost,s=r.getCurrentPost,l=r.getCurrentPostType,u=r.isAutosavingPost;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||c(),isPublishing:a(),hasPublishAction:Object(O.get)(s(),["_links","wp:action-publish"],!1),postType:l(),isAutosaving:u()}}))])((function(e){var t=e.isPublished,n=e.isBeingScheduled,r=e.isSaving,o=e.isPublishing,i=e.hasPublishAction,c=e.isAutosaving;return o?Object(_.__)("Publishing…"):t&&r&&!c?Object(_.__)("Updating…"):n&&r&&!c?Object(_.__)("Scheduling…"):i?t?Object(_.__)("Update"):n?Object(_.__)("Schedule"):Object(_.__)("Publish"):Object(_.__)("Submit for Review")})),_s=function(e){function t(e){var n;return Object(Nr.a)(this,t),(n=Object(Dr.a)(this,Object(Fr.a)(t).call(this,e))).buttonNode=Object(Ir.createRef)(),n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.buttonNode.current.focus()}},{key:"render",value:function(){var e,t=this.props,n=t.forceIsDirty,r=t.forceIsSaving,o=t.hasPublishAction,i=t.isBeingScheduled,a=t.isOpen,s=t.isPostSavingLocked,l=t.isPublishable,u=t.isPublished,d=t.isSaveable,p=t.isSaving,b=t.isToggle,f=t.onSave,h=t.onStatusChange,m=t.onSubmit,v=void 0===m?O.noop:m,g=t.onToggle,j=t.visibility,y=p||r||!d||s||!l&&!n;e=o?i?"future":"private"===j?"private":"publish":"pending";var k={"aria-disabled":y,className:"editor-post-publish-button",isBusy:p&&u,isLarge:!0,isPrimary:!0,onClick:function(){y||(v(),h(e),f())}},E={"aria-disabled":u||p||r||!d||!l&&!n,"aria-expanded":a,className:"editor-post-publish-panel__toggle",isBusy:p&&u,isPrimary:!0,onClick:g},S=i?Object(_.__)("Schedule…"):Object(_.__)("Publish…"),C=Object(Ir.createElement)(ks,{forceIsSaving:r}),w=b?E:k,T=b?S:C;return Object(Ir.createElement)(Hr.Button,Object(Pr.a)({ref:this.buttonNode},w),T,Object(Ir.createElement)(c.DotTip,{tipId:"core/editor.publish"},Object(_.__)("Finished writing? That’s great, let’s get this published right now. Just click “Publish” and you’re good to go.")))}}]),t}(Ir.Component),Es=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isEditedPostBeingScheduled,o=t.getEditedPostVisibility,i=t.isCurrentPostPublished,c=t.isEditedPostSaveable,a=t.isEditedPostPublishable,s=t.isPostSavingLocked,l=t.getCurrentPost,u=t.getCurrentPostType;return{isSaving:n(),isBeingScheduled:r(),visibility:o(),isSaveable:c(),isPostSavingLocked:s(),isPublishable:a(),isPublished:i(),hasPublishAction:Object(O.get)(l(),["_links","wp:action-publish"],!1),postType:u()}})),Object(l.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost;return{onStatusChange:function(e){return n({status:e})},onSave:t.savePost}}))])(_s),Ss=[{value:"public",label:Object(_.__)("Public"),info:Object(_.__)("Visible to everyone.")},{value:"private",label:Object(_.__)("Private"),info:Object(_.__)("Only visible to site admins and editors.")},{value:"password",label:Object(_.__)("Password Protected"),info:Object(_.__)("Protected with a password you choose. Only those with the password can view this post.")}],Cs=function(e){function t(e){var n;return Object(Nr.a)(this,t),(n=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).setPublic=n.setPublic.bind(Object(Ur.a)(Object(Ur.a)(n))),n.setPrivate=n.setPrivate.bind(Object(Ur.a)(Object(Ur.a)(n))),n.setPasswordProtected=n.setPasswordProtected.bind(Object(Ur.a)(Object(Ur.a)(n))),n.updatePassword=n.updatePassword.bind(Object(Ur.a)(Object(Ur.a)(n))),n.state={hasPassword:!!e.password},n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"setPublic",value:function(){var e=this.props,t=e.visibility,n=e.onUpdateVisibility,r=e.status;n("private"===t?"draft":r),this.setState({hasPassword:!1})}},{key:"setPrivate",value:function(){if(window.confirm(Object(_.__)("Would you like to privately publish this post now?"))){var e=this.props,t=e.onUpdateVisibility,n=e.onSave;t("private"),this.setState({hasPassword:!1}),n()}}},{key:"setPasswordProtected",value:function(){var e=this.props,t=e.visibility,n=e.onUpdateVisibility,r=e.status;n("private"===t?"draft":r,e.password||""),this.setState({hasPassword:!0})}},{key:"updatePassword",value:function(e){var t=this.props,n=t.status;(0,t.onUpdateVisibility)(n,e.target.value)}},{key:"render",value:function(){var e=this.props,t=e.visibility,n=e.password,r=e.instanceId,o={public:{onSelect:this.setPublic,checked:"public"===t&&!this.state.hasPassword},private:{onSelect:this.setPrivate,checked:"private"===t},password:{onSelect:this.setPasswordProtected,checked:this.state.hasPassword}};return[Object(Ir.createElement)("fieldset",{key:"visibility-selector",className:"editor-post-visibility__dialog-fieldset"},Object(Ir.createElement)("legend",{className:"editor-post-visibility__dialog-legend"},Object(_.__)("Post Visibility")),Ss.map((function(e){var t=e.value,n=e.label,i=e.info;return Object(Ir.createElement)("div",{key:t,className:"editor-post-visibility__choice"},Object(Ir.createElement)("input",{type:"radio",name:"editor-post-visibility__setting-".concat(r),value:t,onChange:o[t].onSelect,checked:o[t].checked,id:"editor-post-".concat(t,"-").concat(r),"aria-describedby":"editor-post-".concat(t,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-radio"}),Object(Ir.createElement)("label",{htmlFor:"editor-post-".concat(t,"-").concat(r),className:"editor-post-visibility__dialog-label"},n),Object(Ir.createElement)("p",{id:"editor-post-".concat(t,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-info"},i))}))),this.state.hasPassword&&Object(Ir.createElement)("div",{className:"editor-post-visibility__dialog-password",key:"password-selector"},Object(Ir.createElement)("label",{htmlFor:"editor-post-visibility__dialog-password-input-".concat(r),className:"screen-reader-text"},Object(_.__)("Create password")),Object(Ir.createElement)("input",{className:"editor-post-visibility__dialog-password-input",id:"editor-post-visibility__dialog-password-input-".concat(r),type:"text",onChange:this.updatePassword,value:n,placeholder:Object(_.__)("Use a secure password")}))]}}]),t}(Ir.Component),ws=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditedPostVisibility;return{status:n("status"),visibility:r(),password:n("password")}})),Object(l.withDispatch)((function(e){var t=e("core/editor"),n=t.savePost,r=t.editPost;return{onSave:n,onUpdateVisibility:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;r({status:e,password:t})}}})),Lr.withInstanceId])(Cs);var Ts=Object(l.withSelect)((function(e){return{visibility:e("core/editor").getEditedPostVisibility()}}))((function(e){var t=e.visibility;return Object(O.find)(Ss,{value:t}).label}));var Ps=Object(Lr.compose)([Object(l.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})),Object(l.withDispatch)((function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}}))])((function(e){var t=e.date,n=e.onUpdateDate,r=Object(Ze.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(Ir.createElement)(Hr.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:n,is12Hour:o})}));var Is=Object(l.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date"),isFloating:e("core/editor").isEditedPostDateFloating()}}))((function(e){var t=e.date,n=e.isFloating,r=Object(Ze.__experimentalGetSettings)();return t&&!n?Object(Ze.dateI18n)(r.formats.datetimeAbbreviated,t):Object(_.__)("Immediately")})),Bs={per_page:-1,orderby:"count",order:"desc",_fields:"id,name"},xs=function(e,t){return e.toLowerCase()===t.toLowerCase()},Ls=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(Ur.a)(Object(Ur.a)(e))),e.searchTerms=Object(O.throttle)(e.searchTerms.bind(Object(Ur.a)(Object(Ur.a)(e))),500),e.findOrCreateTerm=e.findOrCreateTerm.bind(Object(Ur.a)(Object(Ur.a)(e))),e.state={loading:!1,availableTerms:[],selectedTerms:[]},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){var e=this;Object(O.isEmpty)(this.props.terms)||(this.setState({loading:!1}),this.initRequest=this.fetchTerms({include:this.props.terms.join(","),per_page:-1}),this.initRequest.then((function(){e.setState({loading:!1})}),(function(t){"abort"!==t.statusText&&e.setState({loading:!1})})))}},{key:"componentWillUnmount",value:function(){Object(O.invoke)(this.initRequest,["abort"]),Object(O.invoke)(this.searchRequest,["abort"])}},{key:"componentDidUpdate",value:function(e){e.terms!==this.props.terms&&this.updateSelectedTerms(this.props.terms)}},{key:"fetchTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.props.taxonomy,r=Object(d.a)({},Bs,t),o=mr()({path:Object(g.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then((function(t){e.setState((function(e){return{availableTerms:e.availableTerms.concat(t.filter((function(t){return!Object(O.find)(e.availableTerms,(function(e){return e.id===t.id}))})))}})),e.updateSelectedTerms(e.props.terms)})),o}},{key:"updateSelectedTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t.reduce((function(t,n){var r=Object(O.find)(e.state.availableTerms,(function(e){return e.id===n}));return r&&t.push(r.name),t}),[]);this.setState({selectedTerms:n})}},{key:"findOrCreateTerm",value:function(e){var t=this,n=this.props.taxonomy;return mr()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:e}}).catch((function(r){return"term_exists"===r.code?(t.addRequest=mr()({path:Object(g.addQueryArgs)("/wp/v2/".concat(n.rest_base),Object(d.a)({},Bs,{search:e}))}),t.addRequest.then((function(t){return Object(O.find)(t,(function(t){return xs(t.name,e)}))}))):Promise.reject(r)}))}},{key:"onChange",value:function(e){var t=this,n=Object(O.uniqBy)(e,(function(e){return e.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(e){return!Object(O.find)(t.state.availableTerms,(function(t){return xs(t.name,e)}))})),o=function(e,t){return e.map((function(e){return Object(O.find)(t,(function(t){return xs(t.name,e)})).id}))};if(0===r.length)return this.props.onUpdateTerms(o(n,this.state.availableTerms),this.props.taxonomy.rest_base);Promise.all(r.map(this.findOrCreateTerm)).then((function(e){var r=t.state.availableTerms.concat(e);return t.setState({availableTerms:r}),t.props.onUpdateTerms(o(n,r),t.props.taxonomy.rest_base)}))}},{key:"searchTerms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(O.invoke)(this.searchRequest,["abort"]),this.searchRequest=this.fetchTerms({search:e})}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy;if(!e.hasAssignAction)return null;var r=this.state,o=r.loading,i=r.availableTerms,c=r.selectedTerms,a=i.map((function(e){return e.name})),s=Object(O.get)(n,["labels","add_new_item"],"post_tag"===t?Object(_.__)("Add New Tag"):Object(_.__)("Add New Term")),l=Object(O.get)(n,["labels","singular_name"],"post_tag"===t?Object(_.__)("Tag"):Object(_.__)("Term")),u=Object(_.sprintf)(Object(_._x)("%s added","term"),l),d=Object(_.sprintf)(Object(_._x)("%s removed","term"),l),p=Object(_.sprintf)(Object(_._x)("Remove %s","term"),l);return Object(Ir.createElement)(Hr.FormTokenField,{value:c,displayTransform:O.unescape,suggestions:a,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:s,messages:{added:u,removed:d,remove:p}})}}]),t}(Ir.Component),As=Object(Lr.compose)(Object(l.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(O.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(O.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(l.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(f.a)({},n,t))}}})),Object(Hr.withFilters)("editor.PostTaxonomyType"))(Ls),Ns=function(){var e=[Object(_.__)("Suggestion:"),Object(Ir.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(_.__)("Add tags"))];return Object(Ir.createElement)(Hr.PanelBody,{initialOpen:!1,title:e},Object(Ir.createElement)("p",null,Object(_.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(Ir.createElement)(As,{slug:"post_tag"}))},Rs=function(e){function t(e){var n;return Object(Nr.a)(this,t),(n=Object(Dr.a)(this,Object(Fr.a)(t).call(this,e))).state={hadTagsWhenOpeningThePanel:e.hasTags},n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(Ir.createElement)(Ns,null)}}]),t}(Ir.Component),Ds=Object(Lr.compose)(Object(l.withSelect)((function(e){var t=e("core/editor").getCurrentPostType(),n=e("core").getTaxonomy("post_tag"),r=n&&e("core/editor").getEditedPostAttribute(n.rest_base);return{areTagsFetched:void 0!==n,isPostTypeSupported:n&&Object(O.some)(n.types,(function(e){return e===t})),hasTags:r&&r.length}})),Object(Lr.ifCondition)((function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t})))(Rs),Fs=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(Ir.createElement)(Hr.Button,{isLink:!0,onClick:function(){return r(t)}},n)},Ms=function(e,t){var n=ls.filter((function(t){return Object(O.includes)(e,t.id)}));return Object(O.find)(n,(function(e){return e.id===t}))},Us=Object(Lr.compose)(Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(O.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:Ms(o,r())}})),Object(l.withDispatch)((function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}})),Object(Lr.ifCondition)((function(e){var t=e.suggestion,n=e.currentPostFormat;return t&&t.id!==n})))((function(e){var t=e.suggestion,n=e.onUpdatePostFormat,r=[Object(_.__)("Suggestion:"),Object(Ir.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(_.__)("Use a post format"))];return Object(Ir.createElement)(Hr.PanelBody,{initialOpen:!1,title:r},Object(Ir.createElement)("p",null,Object(_.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")),Object(Ir.createElement)("p",null,Object(Ir.createElement)(Fs,{onUpdatePostFormat:n,suggestedPostFormat:t.id,suggestionText:Object(_.sprintf)(Object(_.__)('Apply the "%1$s" format.'),t.caption)})))}));var Hs=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(O.get)(n(),["_links","wp:action-publish"],!1),isBeingScheduled:r()}}))((function(e){var t,n,r=e.hasPublishAction,o=e.isBeingScheduled,i=e.children;return r?o?(t=Object(_.__)("Are you ready to schedule?"),n=Object(_.__)("Your work will be published at the specified date and time.")):(t=Object(_.__)("Are you ready to publish?"),n=Object(_.__)("Double-check your settings before publishing.")):(t=Object(_.__)("Are you ready to submit for review?"),n=Object(_.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(Ir.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(Ir.createElement)("div",null,Object(Ir.createElement)("strong",null,t)),Object(Ir.createElement)("p",null,n),r&&Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(Hr.PanelBody,{initialOpen:!1,title:[Object(_.__)("Visibility:"),Object(Ir.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Ir.createElement)(Ts,null))]},Object(Ir.createElement)(ws,null)),Object(Ir.createElement)(Hr.PanelBody,{initialOpen:!1,title:[Object(_.__)("Publish:"),Object(Ir.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Ir.createElement)(Is,null))]},Object(Ir.createElement)(Ps,null)),Object(Ir.createElement)(Us,null),Object(Ir.createElement)(Ds,null),i))})),Vs=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={showCopyConfirmation:!1},e.onCopy=e.onCopy.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onSelectInput=e.onSelectInput.bind(Object(Ur.a)(Object(Ur.a)(e))),e.postLink=Object(Ir.createRef)(),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.postLink.current.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.dismissCopyConfirmation)}},{key:"onCopy",value:function(){var e=this;this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout((function(){e.setState({showCopyConfirmation:!1})}),4e3)}},{key:"onSelectInput",value:function(e){e.target.select()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.isScheduled,r=e.post,o=e.postType,i=Object(O.get)(o,["labels","singular_name"]),c=Object(O.get)(o,["labels","view_item"]),a=n?Object(Ir.createElement)(Ir.Fragment,null,Object(_.__)("is now scheduled. It will go live on")," ",Object(Ir.createElement)(Is,null),"."):Object(_.__)("is now live.");return Object(Ir.createElement)("div",{className:"post-publish-panel__postpublish"},Object(Ir.createElement)(Hr.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(Ir.createElement)("a",{ref:this.postLink,href:r.link},r.title||Object(_.__)("(no title)"))," ",a),Object(Ir.createElement)(Hr.PanelBody,null,Object(Ir.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(Ir.createElement)("strong",null,Object(_.__)("What’s next?"))),Object(Ir.createElement)(Hr.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(_.sprintf)(Object(_.__)("%s address"),i),value:r.link,onFocus:this.onSelectInput}),Object(Ir.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(Ir.createElement)(Hr.Button,{isDefault:!0,href:r.link},c),Object(Ir.createElement)(Hr.ClipboardButton,{isDefault:!0,text:r.link,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(_.__)("Copied!"):Object(_.__)("Copy Link")))),t)}}]),t}(Ir.Component),Ks=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getCurrentPost,o=t.isCurrentPostScheduled,i=e("core").getPostType;return{post:r(),postType:i(n("type")),isScheduled:o()}}))(Vs),Ws=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onSubmit=e.onSubmit.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidUpdate",value:function(e){e.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}},{key:"onSubmit",value:function(){var e=this.props,t=e.onClose,n=e.hasPublishAction,r=e.isPostTypeViewable;n&&r||t()}},{key:"render",value:function(){var e=this.props,t=e.forceIsDirty,n=e.forceIsSaving,r=e.isBeingScheduled,o=e.isPublished,i=e.isPublishSidebarEnabled,c=e.isScheduled,a=e.isSaving,s=e.onClose,l=e.onTogglePublishSidebar,u=e.PostPublishExtension,d=e.PrePublishExtension,b=Object(p.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),f=Object(O.omit)(b,["hasPublishAction","isDirty","isPostTypeViewable"]),h=o||c&&r,m=!h&&!a,v=h&&!a;return Object(Ir.createElement)("div",Object(Pr.a)({className:"editor-post-publish-panel"},f),Object(Ir.createElement)("div",{className:"editor-post-publish-panel__header"},v?Object(Ir.createElement)("div",{className:"editor-post-publish-panel__header-published"},c?Object(_.__)("Scheduled"):Object(_.__)("Published")):Object(Ir.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(Ir.createElement)(Es,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n}),Object(Ir.createElement)("span",{className:"editor-post-publish-panel__spacer"})),Object(Ir.createElement)(Hr.IconButton,{"aria-expanded":!0,onClick:s,icon:"no-alt",label:Object(_.__)("Close panel")})),Object(Ir.createElement)("div",{className:"editor-post-publish-panel__content"},m&&Object(Ir.createElement)(Hs,null,d&&Object(Ir.createElement)(d,null)),v&&Object(Ir.createElement)(Ks,{focusOnMount:!0},u&&Object(Ir.createElement)(u,null)),a&&Object(Ir.createElement)(Hr.Spinner,null)),Object(Ir.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(Ir.createElement)(Hr.CheckboxControl,{label:Object(_.__)("Always show pre-publish checks."),checked:i,onChange:l})))}}]),t}(Ir.Component),zs=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core").getPostType,n=e("core/editor"),r=n.getCurrentPost,o=n.getEditedPostAttribute,i=n.isCurrentPostPublished,c=n.isCurrentPostScheduled,a=n.isEditedPostBeingScheduled,s=n.isEditedPostDirty,l=n.isSavingPost,u=e("core/editor").isPublishSidebarEnabled,d=t(o("type"));return{hasPublishAction:Object(O.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(O.get)(d,["viewable"],!1),isBeingScheduled:a(),isDirty:s(),isPublished:i(),isPublishSidebarEnabled:u(),isSaving:l(),isScheduled:c()}})),Object(l.withDispatch)((function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),Hr.withFocusReturn,Hr.withConstrainedTabbing])(Ws);var qs=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isCurrentPostPublished,o=t.isCurrentPostScheduled;return{isSaving:n(),isPublished:r(),isScheduled:o()}})),Object(l.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}}))])((function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick;return n||r?Object(Ir.createElement)(Hr.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(_.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(_.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},Object(_.__)("Switch to Draft")):null})),Gs=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={forceSavedMessage:!1},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this;e.isSaving&&!this.props.isSaving&&(this.setState({forceSavedMessage:!0}),this.props.setTimeout((function(){t.setState({forceSavedMessage:!1})}),1e3))}},{key:"render",value:function(){var e=this.props,t=e.post,n=e.isNew,r=e.isScheduled,o=e.isPublished,i=e.isDirty,c=e.isSaving,a=e.isSaveable,s=e.onSave,l=e.isAutosaving,u=e.isPending,d=e.isLargeViewport,p=this.state.forceSavedMessage;if(c){var b=xr()("editor-post-saved-state","is-saving",{"is-autosaving":l});return Object(Ir.createElement)("span",{className:b},Object(Ir.createElement)(Hr.Dashicon,{icon:"cloud"}),l?Object(_.__)("Autosaving"):Object(_.__)("Saving"))}if(o||r)return Object(Ir.createElement)(qs,null);if(!a)return null;if(p||!n&&!i)return Object(Ir.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(Ir.createElement)(Hr.Dashicon,{icon:"saved"}),Object(_.__)("Saved"));if(!Object(O.get)(t,["_links","wp:action-publish"],!1)&&u)return null;var f=u?Object(_.__)("Save as Pending"):Object(_.__)("Save Draft");return d?Object(Ir.createElement)(Hr.Button,{className:"editor-post-save-draft",onClick:s,shortcut:jo.displayShortcut.primary("s"),isTertiary:!0},f):Object(Ir.createElement)(Hr.IconButton,{className:"editor-post-save-draft",label:f,onClick:s,shortcut:jo.displayShortcut.primary("s"),icon:"cloud-upload"})}}]),t}(Ir.Component),Ys=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.forceIsDirty,r=t.forceIsSaving,o=e("core/editor"),i=o.isEditedPostNew,c=o.isCurrentPostPublished,a=o.isCurrentPostScheduled,s=o.isEditedPostDirty,l=o.isSavingPost,u=o.isEditedPostSaveable,d=o.getCurrentPost,p=o.isAutosavingPost,b=o.getEditedPostAttribute;return{post:d(),isNew:i(),isPublished:c(),isScheduled:a(),isDirty:n||s(),isSaving:r||l(),isSaveable:u(),isAutosaving:p(),isPending:"pending"===b("status")}})),Object(l.withDispatch)((function(e){return{onSave:e("core/editor").savePost}})),Lr.withSafeTimeout,Object(s.withViewportMatch)({isLargeViewport:"medium"})])(Gs);var $s=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(O.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction,n=e.children;return t?n:null}));var Xs=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(O.get)(t,["_links","wp:action-sticky"],!1),postType:e("core/editor").getCurrentPostType()}}))])((function(e){var t=e.hasStickyAction,n=e.postType,r=e.children;return"post"===n&&t?r:null}));var Qs=Object(Lr.compose)([Object(l.withSelect)((function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}})),Object(l.withDispatch)((function(e){return{onUpdateSticky:function(t){e("core/editor").editPost({sticky:t})}}}))])((function(e){var t=e.onUpdateSticky,n=e.postSticky,r=void 0!==n&&n;return Object(Ir.createElement)(Xs,null,Object(Ir.createElement)(Hr.CheckboxControl,{label:Object(_.__)("Stick to the Front Page"),checked:r,onChange:function(){return t(!r)}}))})),Zs={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent"},Js=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).findTerm=e.findTerm.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onChange=e.onChange.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onChangeFormName=e.onChangeFormName.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onChangeFormParent=e.onChangeFormParent.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onAddTerm=e.onAddTerm.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onToggleForm=e.onToggleForm.bind(Object(Ur.a)(Object(Ur.a)(e))),e.setFilterValue=e.setFilterValue.bind(Object(Ur.a)(Object(Ur.a)(e))),e.sortBySelected=e.sortBySelected.bind(Object(Ur.a)(Object(Ur.a)(e))),e.state={loading:!0,availableTermsTree:[],availableTerms:[],adding:!1,formName:"",formParent:"",showForm:!1,filterValue:"",filteredTermsTree:[]},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onChange",value:function(e){var t=this.props,n=t.onUpdateTerms,r=t.terms,o=void 0===r?[]:r,i=t.taxonomy,c=parseInt(e.target.value,10);n(-1!==o.indexOf(c)?Object(O.without)(o,c):Object(b.a)(o).concat([c]),i.rest_base)}},{key:"onChangeFormName",value:function(e){var t=""===e.target.value.trim()?"":e.target.value;this.setState({formName:t})}},{key:"onChangeFormParent",value:function(e){this.setState({formParent:e})}},{key:"onToggleForm",value:function(){this.setState((function(e){return{showForm:!e.showForm}}))}},{key:"findTerm",value:function(e,t,n){return Object(O.find)(e,(function(e){return(!e.parent&&!t||parseInt(e.parent)===parseInt(t))&&e.name.toLowerCase()===n.toLowerCase()}))}},{key:"onAddTerm",value:function(e){var t=this;e.preventDefault();var n=this.props,r=n.onUpdateTerms,o=n.taxonomy,i=n.terms,c=n.slug,a=this.state,s=a.formName,l=a.formParent,u=a.adding,p=a.availableTerms;if(""!==s&&!u){var f=this.findTerm(p,l,s);if(f)return Object(O.some)(i,(function(e){return e===f.id}))||r(Object(b.a)(i).concat([f.id]),o.rest_base),void this.setState({formName:"",formParent:""});this.setState({adding:!0}),this.addRequest=mr()({path:"/wp/v2/".concat(o.rest_base),method:"POST",data:{name:s,parent:l||void 0}}),this.addRequest.catch((function(e){return"term_exists"===e.code?(t.addRequest=mr()({path:Object(g.addQueryArgs)("/wp/v2/".concat(o.rest_base),Object(d.a)({},Zs,{parent:l||0,search:s}))}),t.addRequest.then((function(e){return t.findTerm(e,l,s)}))):Promise.reject(e)})).then((function(e){var n=!!Object(O.find)(t.state.availableTerms,(function(t){return t.id===e.id}))?t.state.availableTerms:[e].concat(Object(b.a)(t.state.availableTerms)),a=Object(_.sprintf)(Object(_._x)("%s added","term"),Object(O.get)(t.props.taxonomy,["labels","singular_name"],"category"===c?Object(_.__)("Category"):Object(_.__)("Term")));t.props.speak(a,"assertive"),t.addRequest=null,t.setState({adding:!1,formName:"",formParent:"",availableTerms:n,availableTermsTree:t.sortBySelected(Va(n))}),r(Object(b.a)(i).concat([e.id]),o.rest_base)}),(function(e){"abort"!==e.statusText&&(t.addRequest=null,t.setState({adding:!1}))}))}}},{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(O.invoke)(this.fetchRequest,["abort"]),Object(O.invoke)(this.addRequest,["abort"])}},{key:"componentDidUpdate",value:function(e){this.props.taxonomy!==e.taxonomy&&this.fetchTerms()}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=mr()({path:Object(g.addQueryArgs)("/wp/v2/".concat(t.rest_base),Zs)}),this.fetchRequest.then((function(t){var n=e.sortBySelected(Va(t));e.fetchRequest=null,e.setState({loading:!1,availableTermsTree:n,availableTerms:t})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({loading:!1}))})))}},{key:"sortBySelected",value:function(e){var t=this.props.terms,n=function e(n){return-1!==t.indexOf(n.id)||void 0!==n.children&&!!(n.children.map(e).filter((function(e){return e})).length>0)};return e.sort((function(e,t){var r=n(e),o=n(t);return r===o?0:r&&!o?-1:!r&&o?1:0})),e}},{key:"setFilterValue",value:function(e){var t=this.state.availableTermsTree,n=e.target.value,r=t.map(this.getFilterMatcher(n)).filter((function(e){return e}));this.setState({filterValue:n,filteredTermsTree:r});var o=function e(t){for(var n=0,r=0;r0&&(r.children=r.children.map(t).filter((function(e){return e}))),(-1!==r.name.toLowerCase().indexOf(e)||r.children.length>0)&&r}}},{key:"renderTerms",value:function(e){var t=this,n=this.props.terms,r=void 0===n?[]:n;return e.map((function(e){var n="editor-post-taxonomies-hierarchical-term-".concat(e.id);return Object(Ir.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(Ir.createElement)("input",{id:n,className:"editor-post-taxonomies__hierarchical-terms-input",type:"checkbox",checked:-1!==r.indexOf(e.id),value:e.id,onChange:t.onChange}),Object(Ir.createElement)("label",{htmlFor:n},Object(O.unescape)(e.name)),!!e.children.length&&Object(Ir.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices"},t.renderTerms(e.children)))}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy,r=e.instanceId,o=e.hasCreateAction;if(!e.hasAssignAction)return null;var i=this.state,c=i.availableTermsTree,a=i.availableTerms,s=i.filteredTermsTree,l=i.formName,u=i.formParent,d=i.loading,p=i.showForm,b=i.filterValue,f=function(e,r,o){return Object(O.get)(n,["labels",e],"category"===t?r:o)},h=f("add_new_item",Object(_.__)("Add new category"),Object(_.__)("Add new term")),m=f("new_item_name",Object(_.__)("Add new category"),Object(_.__)("Add new term")),v=f("parent_item",Object(_.__)("Parent Category"),Object(_.__)("Parent Term")),g="— ".concat(v," —"),j=h,y="editor-post-taxonomies__hierarchical-terms-input-".concat(r),k="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),E=Object(_.sprintf)(Object(_._x)("Search %s","term"),Object(O.get)(this.props.taxonomy,["name"],"category"===t?Object(_.__)("Categories"):Object(_.__)("Terms"))),S=Object(_.sprintf)(Object(_._x)("Available %s","term"),Object(O.get)(this.props.taxonomy,["name"],"category"===t?Object(_.__)("Categories"):Object(_.__)("Terms"))),C=a.length>=8;return[C&&Object(Ir.createElement)("label",{key:"filter-label",htmlFor:k},E),C&&Object(Ir.createElement)("input",{type:"search",id:k,value:b,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(Ir.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":S},this.renderTerms(""!==b?s:c)),!d&&o&&Object(Ir.createElement)(Hr.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},h),p&&Object(Ir.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(Ir.createElement)("label",{htmlFor:y,className:"editor-post-taxonomies__hierarchical-terms-label"},m),Object(Ir.createElement)("input",{type:"text",id:y,className:"editor-post-taxonomies__hierarchical-terms-input",value:l,onChange:this.onChangeFormName,required:!0}),!!a.length&&Object(Ir.createElement)(Hr.TreeSelect,{label:v,noOptionLabel:g,onChange:this.onChangeFormParent,selectedId:u,tree:c}),Object(Ir.createElement)(Hr.Button,{isDefault:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},j))]}}]),t}(Ir.Component),el=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(O.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(O.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(l.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(f.a)({},n,t))}}})),Hr.withSpokenMessages,Lr.withInstanceId,Object(Hr.withFilters)("editor.PostTaxonomyType")])(Js);var tl=Object(Lr.compose)([Object(l.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.taxonomyWrapper,o=void 0===r?O.identity:r,i=Object(O.filter)(n,(function(e){return Object(O.includes)(e.types,t)}));return Object(O.filter)(i,(function(e){return e.visibility.show_ui})).map((function(e){var t=e.hierarchical?el:As;return Object(Ir.createElement)(Ir.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(Ir.createElement)(t,{slug:e.slug}),e))}))}));var nl=Object(Lr.compose)([Object(l.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.children;return Object(O.some)(n,(function(e){return Object(O.includes)(e.types,t)}))?r:null})),rl=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).edit=e.edit.bind(Object(Ur.a)(Object(Ur.a)(e))),e.stopEditing=e.stopEditing.bind(Object(Ur.a)(Object(Ur.a)(e))),e.state={},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"edit",value:function(e){var t=e.target.value;this.props.onChange(t),this.setState({value:t,isDirty:!0})}},{key:"stopEditing",value:function(){this.state.isDirty&&(this.props.onPersist(this.state.value),this.setState({isDirty:!1}))}},{key:"render",value:function(){var e=this.state.value,t=this.props.instanceId;return Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)("label",{htmlFor:"post-content-".concat(t),className:"screen-reader-text"},Object(_.__)("Type text or HTML")),Object(Ir.createElement)(di.a,{autoComplete:"off",dir:"auto",value:e,onChange:this.edit,onBlur:this.stopEditing,className:"editor-post-text-editor",id:"post-content-".concat(t),placeholder:Object(_.__)("Start writing with text or HTML")}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.isDirty?null:{value:e.value,isDirty:!1}}}]),t}(Ir.Component),ol=Object(Lr.compose)([Object(l.withSelect)((function(e){return{value:(0,e("core/editor").getEditedPostContent)()}})),Object(l.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.resetBlocks;return{onChange:function(e){n({content:e})},onPersist:function(e){r(Object(i.parse)(e))}}})),Lr.withInstanceId])(rl),il=function(e){function t(e){var n,r=e.permalinkParts,o=e.slug;return Object(Nr.a)(this,t),(n=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={editedPostName:o||r.postName},n.onSavePermalink=n.onSavePermalink.bind(Object(Ur.a)(Object(Ur.a)(n))),n}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onSavePermalink",value:function(e){var t=ua(this.state.editedPostName);e.preventDefault(),this.props.onSave(),t!==this.props.postName&&(this.props.editPost({slug:t}),this.setState({editedPostName:t}))}},{key:"render",value:function(){var e=this,t=this.props.permalinkParts,n=t.prefix,r=t.suffix,o=this.state.editedPostName;return Object(Ir.createElement)("form",{className:"editor-post-permalink-editor",onSubmit:this.onSavePermalink},Object(Ir.createElement)("span",{className:"editor-post-permalink__editor-container"},Object(Ir.createElement)("span",{className:"editor-post-permalink-editor__prefix"},n),Object(Ir.createElement)("input",{className:"editor-post-permalink-editor__edit","aria-label":Object(_.__)("Edit post permalink"),value:o,onChange:function(t){return e.setState({editedPostName:t.target.value})},type:"text",autoFocus:!0}),Object(Ir.createElement)("span",{className:"editor-post-permalink-editor__suffix"},r),"‎"),Object(Ir.createElement)(Hr.Button,{className:"editor-post-permalink-editor__save",isLarge:!0,onClick:this.onSavePermalink},Object(_.__)("Save")))}}]),t}(Ir.Component),cl=Object(Lr.compose)([Object(l.withSelect)((function(e){return{permalinkParts:(0,e("core/editor").getPermalinkParts)()}})),Object(l.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])(il),al=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).addVisibilityCheck=e.addVisibilityCheck.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onVisibilityChange=e.onVisibilityChange.bind(Object(Ur.a)(Object(Ur.a)(e))),e.state={isCopied:!1,isEditingPermalink:!1},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"addVisibilityCheck",value:function(){window.addEventListener("visibilitychange",this.onVisibilityChange)}},{key:"onVisibilityChange",value:function(){var e=this.props,t=e.isEditable,n=e.refreshPost;t||"visible"!==document.visibilityState||n()}},{key:"componentDidUpdate",value:function(e,t){t.isEditingPermalink&&!this.state.isEditingPermalink&&this.linkElement.focus()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("visibilitychange",this.addVisibilityCheck)}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.isNew,o=t.isPublished,i=t.isViewable,c=t.permalinkParts,a=t.postLink,s=t.postSlug,l=t.postID,u=t.postTitle;if(r||!i||!c||!a)return null;var d=this.state,p=d.isCopied,b=d.isEditingPermalink,f=p?Object(_.__)("Permalink copied"):Object(_.__)("Copy the permalink"),h=c.prefix,m=c.suffix,v=s||ua(u)||l,O=n?h+v+m:h;return Object(Ir.createElement)("div",{className:"editor-post-permalink"},Object(Ir.createElement)(Hr.ClipboardButton,{className:xr()("editor-post-permalink__copy",{"is-copied":p}),text:O,label:f,onCopy:function(){return e.setState({isCopied:!0})},"aria-disabled":p,icon:"admin-links"}),Object(Ir.createElement)("span",{className:"editor-post-permalink__label"},Object(_.__)("Permalink:")),!b&&Object(Ir.createElement)(Hr.ExternalLink,{className:"editor-post-permalink__link",href:o?O:a,target:"_blank",ref:function(t){return e.linkElement=t}},Object(g.safeDecodeURI)(O),"‎"),b&&Object(Ir.createElement)(cl,{slug:v,onSave:function(){return e.setState({isEditingPermalink:!1})}}),n&&!b&&Object(Ir.createElement)(Hr.Button,{className:"editor-post-permalink__edit",isLarge:!0,onClick:function(){return e.setState({isEditingPermalink:!0})}},Object(_.__)("Edit")),!n&&Object(Ir.createElement)(Hr.Button,{className:"editor-post-permalink__change",isLarge:!0,href:la("options-permalink.php"),onClick:this.addVisibilityCheck,target:"_blank"},Object(_.__)("Change Permalinks")))}}]),t}(Ir.Component),sl=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.isPermalinkEditable,o=t.getCurrentPost,i=t.getPermalinkParts,c=t.getEditedPostAttribute,a=t.isCurrentPostPublished,s=e("core").getPostType,l=o(),u=l.id,d=l.link,p=s(c("type"));return{isNew:n(),postLink:d,permalinkParts:i(),postSlug:c("slug"),isEditable:r(),isPublished:a(),postTitle:c("title"),postID:u,isViewable:Object(O.get)(p,["viewable"],!1)}})),Object(l.withDispatch)((function(e){return{refreshPost:e("core/editor").refreshPost}}))])(al),ll=/[\r\n]+/g,ul=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onSelect=e.onSelect.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onUnselect=e.onUnselect.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onKeyDown=e.onKeyDown.bind(Object(Ur.a)(Object(Ur.a)(e))),e.redirectHistory=e.redirectHistory.bind(Object(Ur.a)(Object(Ur.a)(e))),e.state={isSelected:!1},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"handleFocusOutside",value:function(){this.onUnselect()}},{key:"onSelect",value:function(){this.setState({isSelected:!0}),this.props.clearSelectedBlock()}},{key:"onUnselect",value:function(){this.setState({isSelected:!1})}},{key:"onChange",value:function(e){var t=e.target.value.replace(ll," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===jo.ENTER&&(e.preventDefault(),this.props.onEnterPress())}},{key:"redirectHistory",value:function(e){e.shiftKey?this.props.onRedo():this.props.onUndo(),e.preventDefault()}},{key:"render",value:function(){var e=this.props,t=e.hasFixedToolbar,n=e.isCleanNewPost,r=e.isFocusMode,o=e.isPostTypeViewable,i=e.instanceId,c=e.placeholder,a=e.title,s=this.state.isSelected,l=xr()("wp-block editor-post-title__block",{"is-selected":s,"is-focus-mode":r,"has-fixed-toolbar":t}),u=Object(Ji.decodeEntities)(c);return Object(Ir.createElement)(Ma,{supportKeys:"title"},Object(Ir.createElement)("div",{className:"editor-post-title"},Object(Ir.createElement)("div",{className:l},Object(Ir.createElement)(Hr.KeyboardShortcuts,{shortcuts:{"mod+z":this.redirectHistory,"mod+shift+z":this.redirectHistory}},Object(Ir.createElement)("label",{htmlFor:"post-title-".concat(i),className:"screen-reader-text"},u||Object(_.__)("Add title")),Object(Ir.createElement)(di.a,{id:"post-title-".concat(i),className:"editor-post-title__input",value:a,onChange:this.onChange,placeholder:u||Object(_.__)("Add title"),onFocus:this.onSelect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,autoFocus:n})),s&&o&&Object(Ir.createElement)(sl,null))))}}]),t}(Ir.Component),dl=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditorSettings,o=t.isCleanNewPost,i=(0,e("core").getPostType)(n("type")),c=r(),a=c.titlePlaceholder,s=c.focusMode,l=c.hasFixedToolbar;return{isCleanNewPost:o(),title:n("title"),isPostTypeViewable:Object(O.get)(i,["viewable"],!1),placeholder:a,isFocusMode:s,hasFixedToolbar:l}})),pl=Object(l.withDispatch)((function(e){var t=e("core/editor"),n=t.insertDefaultBlock,r=t.editPost,o=t.clearSelectedBlock;return{onEnterPress:function(){n(void 0,void 0,0)},onUpdate:function(e){r({title:e})},onUndo:t.undo,onRedo:t.redo,clearSelectedBlock:o}})),bl=Object(Lr.compose)(dl,pl,Lr.withInstanceId,Hr.withFocusOutside)(ul);var fl=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType;return{isNew:n(),postId:r(),postType:o()}})),Object(l.withDispatch)((function(e){return{trashPost:e("core/editor").trashPost}}))])((function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object(p.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(Ir.createElement)(Hr.Button,{className:"editor-post-trash button-link-delete",onClick:function(){return o.trashPost(n,r)},isDefault:!0,isLarge:!0},Object(_.__)("Move to trash"))}));var hl=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId;return{isNew:n(),postId:r()}}))((function(e){var t=e.isNew,n=e.postId,r=e.children;return t||!n?null:r}));var ml=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(O.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})})),vl=n("7fqt");var Ol=Object(l.withSelect)((function(e){return{content:e("core/editor").getEditedPostAttribute("content")}}))((function(e){var t=e.content,n=Object(_._x)("words","Word count type. Do not translate!");return Object(Ir.createElement)("span",{className:"word-count"},Object(vl.count)(t,n))}));var gl=Object(l.withSelect)((function(e){var t=e("core/editor").getGlobalBlockCount;return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}))((function(e){var t=e.headingCount,n=e.paragraphCount,r=e.numberOfBlocks;return Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)("div",{className:"table-of-contents__counts",role:"note","aria-label":Object(_.__)("Document Statistics"),tabIndex:"0"},Object(Ir.createElement)("div",{className:"table-of-contents__count"},Object(_.__)("Words"),Object(Ir.createElement)(Ol,null)),Object(Ir.createElement)("div",{className:"table-of-contents__count"},Object(_.__)("Headings"),Object(Ir.createElement)("span",{className:"table-of-contents__number"},t)),Object(Ir.createElement)("div",{className:"table-of-contents__count"},Object(_.__)("Paragraphs"),Object(Ir.createElement)("span",{className:"table-of-contents__number"},n)),Object(Ir.createElement)("div",{className:"table-of-contents__count"},Object(_.__)("Blocks"),Object(Ir.createElement)("span",{className:"table-of-contents__number"},r))),t>0&&Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)("hr",null),Object(Ir.createElement)("span",{className:"table-of-contents__title"},Object(_.__)("Document Outline")),Object(Ir.createElement)(wa,null)))}));var jl=Object(l.withSelect)((function(e){return{hasBlocks:!!e("core/editor").getBlockCount()}}))((function(e){var t=e.hasBlocks;return Object(Ir.createElement)(Hr.Dropdown,{position:"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(Ir.createElement)(Hr.IconButton,{onClick:t?r:void 0,icon:"info-outline","aria-expanded":n,label:Object(_.__)("Content structure"),labelPosition:"bottom","aria-disabled":!t})},renderContent:function(){return Object(Ir.createElement)(gl,null)}})})),yl=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).warnIfUnsavedChanges=e.warnIfUnsavedChanges.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"warnIfUnsavedChanges",value:function(e){if(this.props.isDirty)return e.returnValue=Object(_.__)("You have unsaved changes. If you proceed, they will be lost."),e.returnValue}},{key:"render",value:function(){return null}}]),t}(Ir.Component),kl=Object(l.withSelect)((function(e){return{isDirty:e("core/editor").isEditedPostDirty()}}))(yl),_l=Object(l.withSelect)((function(e){return{selectedBlockClientId:e("core/editor").getBlockSelectionStart()}}))((function(e){var t=e.selectedBlockClientId;return t&&Object(Ir.createElement)(Hr.Button,{isDefault:!0,type:"button",className:"editor-skip-to-selected-block",onClick:function(){Yi(t).closest(".editor-block-list__block").focus()}},Object(_.__)("Skip to the selected block"))})),El=n("BLeD"),Sl=n.n(El);function Cl(e,t,n){var r=new Sl.a(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}var wl=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.clientId,r=e("core/editor").getBlock,o=e("core/blocks").getBlockStyles,i=r(n);return{name:i.name,attributes:i.attributes,className:i.attributes.className||"",styles:o(i.name)}})),Object(l.withDispatch)((function(e,t){var n=t.clientId;return{onChangeClassName:function(t){e("core/editor").updateBlockAttributes(n,{className:t})}}}))])((function(e){var t=e.styles,n=e.className,r=e.onChangeClassName,o=e.name,i=e.attributes,c=e.onSwitch,a=void 0===c?O.noop:c,s=e.onHoverClassName,l=void 0===s?O.noop:s;if(!t||0===t.length)return null;var u=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,c=new Sl.a(t).values()[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var a=i.value;if(-1!==a.indexOf("is-style-")){var s=a.substring(9),l=Object(O.find)(e,{name:s});if(l)return l}}}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return Object(O.find)(e,"isDefault")}(t,n);function p(e){var t=Cl(n,u,e);r(t),a()}return Object(Ir.createElement)("div",{className:"editor-block-styles"},t.map((function(e){var t=Cl(n,u,e);return Object(Ir.createElement)("div",{key:e.name,className:xr()("editor-block-styles__item",{"is-active":u===e}),onClick:function(){return p(e)},onKeyDown:function(t){jo.ENTER!==t.keyCode&&jo.SPACE!==t.keyCode||(t.preventDefault(),p(e))},onMouseEnter:function(){return l(t)},onMouseLeave:function(){return l(null)},role:"button",tabIndex:"0","aria-label":e.label||e.name},Object(Ir.createElement)("div",{className:"editor-block-styles__item-preview"},Object(Ir.createElement)(Si,{name:o,attributes:Object(d.a)({},i,{className:t})})),Object(Ir.createElement)("div",{className:"editor-block-styles__item-label"},e.label||e.name))})))}));var Tl=Object(l.withSelect)((function(e){return{blocks:(0,e("core/editor").getMultiSelectedBlocks)()}}))((function(e){var t=e.blocks,n=Object(vl.count)(Object(i.serialize)(t),"words");return Object(Ir.createElement)("div",{className:"editor-multi-selection-inspector__card"},Object(Ir.createElement)($r,{icon:Object(Ir.createElement)(Hr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ir.createElement)(Hr.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),showColors:!0}),Object(Ir.createElement)("div",{className:"editor-multi-selection-inspector__card-content"},Object(Ir.createElement)("div",{className:"editor-multi-selection-inspector__card-title"},Object(_.sprintf)(Object(_._n)("%d block","%d blocks",t.length),t.length)),Object(Ir.createElement)("div",{className:"editor-multi-selection-inspector__card-description"},Object(_.sprintf)(Object(_._n)("%d word","%d words",n),n))))})),Pl=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,c=e("core/blocks").getBlockStyles,a=n(),s=a&&o(a),l=a&&Object(i.getBlockType)(s),u=a&&c(s);return{count:r(),hasBlockStyles:u&&u.length>0,selectedBlockName:s,selectedBlockClientId:a,blockType:l}}))((function(e){var t=e.selectedBlockClientId,n=e.selectedBlockName,r=e.blockType,o=e.count,c=e.hasBlockStyles;if(o>1)return Object(Ir.createElement)(Tl,null);var a=n===Object(i.getUnregisteredTypeHandlerName)();return r&&t&&!a?Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)("div",{className:"editor-block-inspector__card"},Object(Ir.createElement)($r,{icon:r.icon,showColors:!0}),Object(Ir.createElement)("div",{className:"editor-block-inspector__card-content"},Object(Ir.createElement)("div",{className:"editor-block-inspector__card-title"},r.title),Object(Ir.createElement)("div",{className:"editor-block-inspector__card-description"},r.description))),c&&Object(Ir.createElement)("div",null,Object(Ir.createElement)(Hr.PanelBody,{title:Object(_.__)("Styles"),initialOpen:!1},Object(Ir.createElement)(wl,{clientId:t}))),Object(Ir.createElement)("div",null,Object(Ir.createElement)(hc.Slot,null)),Object(Ir.createElement)("div",null,Object(Ir.createElement)(uc.Slot,null,(function(e){return!Object(O.isEmpty)(e)&&Object(Ir.createElement)(Hr.PanelBody,{className:"editor-block-inspector__advanced",title:Object(_.__)("Advanced"),initialOpen:!1},e)}))),Object(Ir.createElement)(_l,{key:"back"})):Object(Ir.createElement)("span",{className:"editor-block-inspector__no-blocks"},Object(_.__)("No block selected."))})),Il=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(Ur.a)(Object(Ur.a)(e))),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,r=t.hasMultiSelection,o=t.clearSelectedBlock,i=n||r;e.target===this.container&&i&&o()}},{key:"render",value:function(){return Object(Ir.createElement)("div",Object(Pr.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(O.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),t}(Ir.Component),Bl=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(l.withDispatch)((function(e){return{clearSelectedBlock:e("core/editor").clearSelectedBlock}}))])(Il);var xl=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.clientId,r=e("core/editor"),o=r.getBlock,c=r.getBlockMode,a=o(n);return{mode:c(n),blockType:a?Object(i.getBlockType)(a.name):null}})),Object(l.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?O.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,c=void 0!==o&&o;if(!Object(i.hasBlockSupport)(t,"html",!0))return null;var a="visual"===n?Object(_.__)("Edit as HTML"):Object(_.__)("Edit visually");return Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",onClick:r,icon:"html",label:c?a:void 0},!c&&a)}));var Ll=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.clientIds,r=e("core/editor"),o=r.getBlocksByClientId,c=r.canInsertBlockType,a=r.__experimentalGetReusableBlock,s=o(n),l=c("core/block")&&Object(O.every)(s,(function(e){return!!e&&e.isValid&&Object(i.hasBlockSupport)(e.name,"reusable",!0)}));return{isVisible:l,isStaticBlock:l&&(1!==s.length||!Object(i.isReusableBlock)(s[0])||!a(s[0].attributes.ref))}})),Object(l.withDispatch)((function(e,t){var n=t.clientIds,r=t.onToggle,o=void 0===r?O.noop:r,i=e("core/editor"),c=i.__experimentalConvertBlockToReusable,a=i.__experimentalConvertBlockToStatic;return{onConvertToStatic:function(){1===n.length&&(a(n[0]),o())},onConvertToReusable:function(){c(n),o()}}}))])((function(e){var t=e.isVisible,n=e.isStaticBlock,r=e.onConvertToStatic,o=e.onConvertToReusable;return t?Object(Ir.createElement)(Ir.Fragment,null,n&&Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",icon:"controls-repeat",onClick:o},Object(_.__)("Add to Reusable Blocks")),!n&&Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",icon:"controls-repeat",onClick:r},Object(_.__)("Convert to Regular Block"))):null}));var Al=Object(Lr.compose)([Object(l.withSelect)((function(e,t){var n=t.clientId,r=e("core/editor"),o=r.getBlock,c=r.__experimentalGetReusableBlock,a=o(n);return{reusableBlock:a&&Object(i.isReusableBlock)(a)?c(a.attributes.ref):null}})),Object(l.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?O.noop:n,o=e("core/editor").__experimentalDeleteReusableBlock;return{onDelete:function(e){window.confirm(Object(_.__)("Are you sure you want to delete this Reusable Block?\n\nIt will be permanently removed from all posts and pages that use it."))&&(o(e),r())}}}))])((function(e){var t=e.reusableBlock,n=e.onDelete;return t?Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",icon:"no",disabled:t.isTemporary,onClick:function(){return n(t.id)}},Object(_.__)("Remove from Reusable Blocks")):null}));function Nl(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(_.__)("Convert to Blocks");return Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",onClick:n,icon:"screenoptions",label:r?o:void 0},!r&&o)}var Rl=Object(Lr.compose)(Object(l.withSelect)((function(e,t){var n=t.clientId,r=e("core/editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(l.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.getBlockContent)(n)}))}}})))(Nl),Dl=Object(Lr.compose)(Object(l.withSelect)((function(e,t){var n=t.clientId,r=e("core/editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(i.getFreeformContentHandlerName)()}})),Object(l.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.serialize)(n)}))}}})))(Nl),Fl=Object(Hr.createSlotFill)("_BlockSettingsMenuFirstItem"),Ml=Fl.Fill,Ul=Fl.Slot;Ml.Slot=Ul;var Hl=Ml,Vl=Object(Hr.createSlotFill)("_BlockSettingsMenuPluginsExtension"),Kl=Vl.Fill,Wl=Vl.Slot;Kl.Slot=Wl;var zl=Kl;var ql=Object(l.withDispatch)((function(e){var t=e("core/editor").selectBlock;return{onSelect:function(e){t(e)}}}))((function(e){var t=e.clientIds,n=e.onSelect,r=Object(O.castArray)(t),o=r.length,i=r[0];return Object(Ir.createElement)(Pa,{clientIds:t},(function(e){var r=e.onDuplicate,c=e.onRemove,a=e.onInsertAfter,s=e.onInsertBefore,l=e.canDuplicate,u=e.isLocked;return Object(Ir.createElement)(Hr.Dropdown,{contentClassName:"editor-block-settings-menu__popover",position:"bottom right",renderToggle:function(e){var t=e.onToggle,r=e.isOpen,c=xr()("editor-block-settings-menu__toggle",{"is-opened":r}),a=r?Object(_.__)("Hide options"):Object(_.__)("More options");return Object(Ir.createElement)(Hr.Toolbar,{controls:[{icon:"ellipsis",title:a,onClick:function(){1===o&&n(i),t()},className:c,extraProps:{"aria-expanded":r}}]})},renderContent:function(e){var n=e.onClose;return Object(Ir.createElement)(Hr.NavigableMenu,{className:"editor-block-settings-menu__content"},Object(Ir.createElement)(Hl.Slot,{fillProps:{onClose:n}}),1===o&&Object(Ir.createElement)(Dl,{clientId:i}),1===o&&Object(Ir.createElement)(Rl,{clientId:i}),!u&&l&&Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",onClick:r,icon:"admin-page",shortcut:Ba.duplicate.display},Object(_.__)("Duplicate")),!u&&Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",onClick:s,icon:"insert-before",shortcut:Ba.insertBefore.display},Object(_.__)("Insert Before")),Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",onClick:a,icon:"insert-after",shortcut:Ba.insertAfter.display},Object(_.__)("Insert After"))),1===o&&Object(Ir.createElement)(xl,{clientId:i,onToggle:n}),Object(Ir.createElement)(Ll,{clientIds:t,onToggle:n}),Object(Ir.createElement)(zl.Slot,{fillProps:{clientIds:t,onClose:n}}),Object(Ir.createElement)("div",{className:"editor-block-settings-menu__separator"}),1===o&&Object(Ir.createElement)(Al,{clientId:i,onToggle:n}),!u&&Object(Ir.createElement)(Hr.MenuItem,{className:"editor-block-settings-menu__control",onClick:c,icon:"trash",shortcut:Ba.removeBlock.display},Object(_.__)("Remove Block")))}})}))})),Gl=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(Ur.a)(Object(Ur.a)(e))),e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"onHoverClassName",value:function(e){this.setState({hoveredClassName:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.blocks,r=t.onTransform,o=t.inserterItems,c=t.hasBlockStyles,a=this.state.hoveredClassName;if(!n||!n.length)return null;var s=Object(O.mapKeys)(o,(function(e){return e.name})),l=Object(O.orderBy)(Object(O.filter)(Object(i.getPossibleBlockTransformations)(n),(function(e){return e&&!!s[e.name]})),(function(e){return s[e.name].frecency}),"desc"),u=n[0].name,p=Object(i.getBlockType)(u);return c||l.length?Object(Ir.createElement)(Hr.Dropdown,{position:"bottom right",className:"editor-block-switcher",contentClassName:"editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,r=e.isOpen,o=1===n.length?Object(_.__)("Change block type"):Object(_.sprintf)(Object(_._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(Ir.createElement)(Hr.Toolbar,null,Object(Ir.createElement)(Hr.IconButton,{className:"editor-block-switcher__toggle",onClick:t,"aria-haspopup":"true","aria-expanded":r,label:o,tooltip:o,onKeyDown:function(e){r||e.keyCode!==jo.DOWN||(e.preventDefault(),e.stopPropagation(),t())}},Object(Ir.createElement)($r,{icon:p.icon,showColors:!0}),Object(Ir.createElement)(Hr.SVG,{className:"editor-block-switcher__transform",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ir.createElement)(Hr.Path,{d:"M6.5 8.9c.6-.6 1.4-.9 2.2-.9h6.9l-1.3 1.3 1.4 1.4L19.4 7l-3.7-3.7-1.4 1.4L15.6 6H8.7c-1.4 0-2.6.5-3.6 1.5l-2.8 2.8 1.4 1.4 2.8-2.8zm13.8 2.4l-2.8 2.8c-.6.6-1.3.9-2.1.9h-7l1.3-1.3-1.4-1.4L4.6 16l3.7 3.7 1.4-1.4L8.4 17h6.9c1.3 0 2.6-.5 3.5-1.5l2.8-2.8-1.3-1.4z"}))))},renderContent:function(t){var o=t.onClose;return Object(Ir.createElement)(Ir.Fragment,null,c&&Object(Ir.createElement)(Hr.PanelBody,{title:Object(_.__)("Block Styles"),initialOpen:!0},Object(Ir.createElement)(wl,{clientId:n[0].clientId,onSwitch:o,onHoverClassName:e.onHoverClassName})),0!==l.length&&Object(Ir.createElement)(Hr.PanelBody,{title:Object(_.__)("Transform To:"),initialOpen:!0},Object(Ir.createElement)(Ti,{items:l.map((function(e){return{id:e.name,icon:e.icon,title:e.title,hasChildBlocksWithInserterSupport:Object(i.hasChildBlocksWithInserterSupport)(e.name)}})),onSelect:function(e){r(n,e.id),o()}})),null!==a&&Object(Ir.createElement)(Ci,{name:n[0].name,attributes:Object(d.a)({},n[0].attributes,{className:a})}))}}):n.length>1?null:Object(Ir.createElement)(Hr.Toolbar,null,Object(Ir.createElement)(Hr.IconButton,{disabled:!0,className:"editor-block-switcher__no-switcher-icon",label:Object(_.__)("Block icon")},Object(Ir.createElement)($r,{icon:p.icon,showColors:!0})))}}]),t}(Ir.Component),Yl=Object(Lr.compose)(Object(l.withSelect)((function(e,t){var n=t.clientIds,r=e("core/editor"),o=r.getBlocksByClientId,i=r.getBlockRootClientId,c=r.getInserterItems,a=e("core/blocks").getBlockStyles,s=i(Object(O.first)(Object(O.castArray)(n))),l=o(n),u=l&&1===l.length?l[0]:null,d=u&&a(u.name);return{blocks:l,inserterItems:c(s),hasBlockStyles:d&&d.length>0}})),Object(l.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/editor").replaceBlocks(t.clientIds,Object(i.switchToBlockType)(n,r))}}})))(Gl);var $l=Object(l.withSelect)((function(e){var t=e("core/editor").getMultiSelectedBlockClientIds();return{isMultiBlockSelection:t.length>1,selectedBlockClientIds:t}}))((function(e){var t=e.isMultiBlockSelection,n=e.selectedBlockClientIds;return t?Object(Ir.createElement)(Yl,{key:"switcher",clientIds:n}):null}));var Xl=Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getSelectedBlockClientId,r=t.getBlockMode,o=t.getMultiSelectedBlockClientIds,i=t.isBlockValid,c=n();return{blockClientIds:c?[c]:o(),isValid:c?i(c):null,mode:c?r(c):null}}))((function(e){var t=e.blockClientIds,n=e.isValid,r=e.mode;return 0===t.length?null:t.length>1?Object(Ir.createElement)("div",{className:"editor-block-toolbar"},Object(Ir.createElement)($l,null),Object(Ir.createElement)(ql,{clientIds:t})):Object(Ir.createElement)("div",{className:"editor-block-toolbar"},"visual"===r&&n&&Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(Yl,{clientIds:t}),Object(Ir.createElement)(po.Slot,null),Object(Ir.createElement)(go.Slot,null)),Object(Ir.createElement)(ql,{clientIds:t}))})),Ql=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onCopy=function(t){return e.props.onCopy(t)},e.onCut=function(t){return e.props.onCut(t)},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){document.addEventListener("copy",this.onCopy),document.addEventListener("cut",this.onCut)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("copy",this.onCopy),document.removeEventListener("cut",this.onCut)}},{key:"render",value:function(){return null}}]),t}(Ir.Component),Zl=Object(Lr.compose)([Object(l.withDispatch)((function(e,t,n){var r=(0,n.select)("core/editor"),o=r.getBlocksByClientId,c=r.getMultiSelectedBlockClientIds,a=r.getSelectedBlockClientId,s=r.hasMultiSelection,l=e("core/editor").removeBlocks,u=function(e){var t=a()?[a()]:c();if(0!==t.length&&(s()||!Object(Vo.documentHasSelection)())){var n=Object(i.serialize)(o(t));e.clipboardData.setData("text/plain",n),e.clipboardData.setData("text/html",n),e.preventDefault()}};return{onCopy:u,onCut:function(e){if(u(e),s()){var t=a()?[a()]:c();l(t)}}}}))])(Ql),Jl=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).reboot=e.reboot.bind(Object(Ur.a)(Object(Ur.a)(e))),e.getContent=e.getContent.bind(Object(Ur.a)(Object(Ur.a)(e))),e.state={error:null},e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidCatch",value:function(e){this.setState({error:e})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Object(l.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(Ir.createElement)(ei,{className:"editor-error-boundary",actions:[Object(Ir.createElement)(Hr.Button,{key:"recovery",onClick:this.reboot,isLarge:!0},Object(_.__)("Attempt Recovery")),Object(Ir.createElement)(Hr.ClipboardButton,{key:"copy-post",text:this.getContent,isLarge:!0},Object(_.__)("Copy Post Text")),Object(Ir.createElement)(Hr.ClipboardButton,{key:"copy-error",text:e.stack,isLarge:!0},Object(_.__)("Copy Error"))]},Object(_.__)("The editor has encountered an unexpected error.")):this.props.children}}]),t}(Ir.Component),eu=function(e){function t(){return Object(Nr.a)(this,t),Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidUpdate",value:function(){this.scrollIntoView()}},{key:"scrollIntoView",value:function(){var e=this.props.extentClientId;if(e){var t=Yi(e);if(t){var n=Object(Vo.getScrollContainer)(t);n&&Ei()(t,n,{onlyScrollIfNeeded:!0})}}}},{key:"render",value:function(){return null}}]),t}(Ir.Component),tu=Object(l.withSelect)((function(e){return{extentClientId:(0,e("core/editor").getLastMultiSelectedBlockClientId)()}}))(eu),nu=[jo.UP,jo.RIGHT,jo.DOWN,jo.LEFT,jo.ENTER,jo.BACKSPACE];var ru=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).stopTypingOnSelectionUncollapse=e.stopTypingOnSelectionUncollapse.bind(Object(Ur.a)(Object(Ur.a)(e))),e.stopTypingOnMouseMove=e.stopTypingOnMouseMove.bind(Object(Ur.a)(Object(Ur.a)(e))),e.startTypingInTextField=e.startTypingInTextField.bind(Object(Ur.a)(Object(Ur.a)(e))),e.stopTypingOnNonTextField=e.stopTypingOnNonTextField.bind(Object(Ur.a)(Object(Ur.a)(e))),e.stopTypingOnEscapeKey=e.stopTypingOnEscapeKey.bind(Object(Ur.a)(Object(Ur.a)(e))),e.onKeyDown=Object(O.over)([e.startTypingInTextField,e.stopTypingOnEscapeKey]),e.lastMouseMove=null,e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){this.toggleEventBindings(this.props.isTyping)}},{key:"componentDidUpdate",value:function(e){this.props.isTyping!==e.isTyping&&this.toggleEventBindings(this.props.isTyping)}},{key:"componentWillUnmount",value:function(){this.toggleEventBindings(!1)}},{key:"toggleEventBindings",value:function(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",this.stopTypingOnSelectionUncollapse),document[t]("mousemove",this.stopTypingOnMouseMove)}},{key:"stopTypingOnMouseMove",value:function(e){var t=e.clientX,n=e.clientY;if(this.lastMouseMove){var r=this.lastMouseMove,o=r.clientX,i=r.clientY;o===t&&i===n||this.props.onStopTyping()}this.lastMouseMove={clientX:t,clientY:n}}},{key:"stopTypingOnSelectionUncollapse",value:function(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||this.props.onStopTyping()}},{key:"stopTypingOnEscapeKey",value:function(e){this.props.isTyping&&e.keyCode===jo.ESCAPE&&this.props.onStopTyping()}},{key:"startTypingInTextField",value:function(e){var t=this.props,n=t.isTyping,r=t.onStartTyping,o=e.type,i=e.target;n||!Object(Vo.isTextField)(i)||i.closest(".editor-block-toolbar")||("keydown"!==o||function(e){var t=e.keyCode;return!e.shiftKey&&Object(O.includes)(nu,t)}(e))&&r()}},{key:"stopTypingOnNonTextField",value:function(e){var t=this;e.persist(),this.props.setTimeout((function(){var n=t.props,r=n.isTyping,o=n.onStopTyping,i=e.target;r&&!Object(Vo.isTextField)(i)&&o()}))}},{key:"render",value:function(){var e=this.props.children;return Object(Ir.createElement)("div",{onFocus:this.stopTypingOnNonTextField,onKeyPress:this.startTypingInTextField,onKeyDown:this.onKeyDown},e)}}]),t}(Ir.Component),ou=Object(Lr.compose)([Object(l.withSelect)((function(e){return{isTyping:(0,e("core/editor").isTyping)()}})),Object(l.withDispatch)((function(e){var t=e("core/editor");return{onStartTyping:t.startTyping,onStopTyping:t.stopTyping}})),Lr.withSafeTimeout])(ru),iu=function(e){function t(){return Object(Nr.a)(this,t),Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"getSnapshotBeforeUpdate",value:function(e){var t=this.props,n=t.blockOrder,r=t.selectionStart;return n!==e.blockOrder&&r?this.getOffset(r):null}},{key:"componentDidUpdate",value:function(e,t,n){n&&this.restorePreviousOffset(n)}},{key:"getOffset",value:function(e){var t=Yi(e);return t?t.getBoundingClientRect().top:null}},{key:"restorePreviousOffset",value:function(e){var t=Yi(this.props.selectionStart);if(t){var n=Object(Vo.getScrollContainer)(t);n&&(n.scrollTop=n.scrollTop+t.getBoundingClientRect().top-e)}}},{key:"render",value:function(){return null}}]),t}(Ir.Component),cu=Object(l.withSelect)((function(e){return{blockOrder:e("core/editor").getBlockOrder(),selectionStart:e("core/editor").getBlockSelectionStart()}}))(iu),au=window.getSelection,su=Object(O.overEvery)([Vo.isTextField,Vo.focus.tabbable.isTabbableIndex]);var lu=function(e){function t(){var e;return Object(Nr.a)(this,t),(e=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments))).onKeyDown=e.onKeyDown.bind(Object(Ur.a)(Object(Ur.a)(e))),e.bindContainer=e.bindContainer.bind(Object(Ur.a)(Object(Ur.a)(e))),e.clearVerticalRect=e.clearVerticalRect.bind(Object(Ur.a)(Object(Ur.a)(e))),e.focusLastTextField=e.focusLastTextField.bind(Object(Ur.a)(Object(Ur.a)(e))),e.verticalRect=null,e}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearVerticalRect",value:function(){this.verticalRect=null}},{key:"getClosestTabbable",value:function(e,t){var n=Vo.focus.focusable.find(this.container);return t&&(n=Object(O.reverse)(n)),n=n.slice(n.indexOf(e)+1),Object(O.find)(n,(function t(n,r,o){if(!Vo.focus.tabbable.isTabbableIndex(n))return!1;if(Object(Vo.isTextField)(n))return!0;if(!n.classList.contains("editor-block-list__block"))return!1;if(function(e){return!!e.querySelector(".editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var i,c=1;(i=o[r+c])&&n.contains(i);c++)if(t(i,r+c,o))return!1;return!0}))}},{key:"expandSelection",value:function(e){var t=this.props,n=t.selectedBlockClientId,r=t.selectionStartClientId,o=t.selectionBeforeEndClientId,i=t.selectionAfterEndClientId,c=e?o:i;c&&this.props.onMultiSelect(r||n,c)}},{key:"moveSelection",value:function(e){var t=this.props,n=t.selectedFirstClientId,r=t.selectedLastClientId,o=e?n:r;o&&this.props.onSelectBlock(o)}},{key:"isTabbableEdge",value:function(e,t){var n,r,o=this.getClosestTabbable(e,t);return!(o&&(n=e,r=o,n.closest("[data-block]")===r.closest("[data-block]")))}},{key:"onKeyDown",value:function(e){var t=this.props,n=t.hasMultiSelection,r=t.onMultiSelect,o=t.blocks,i=e.keyCode,c=e.target,a=i===jo.UP,s=i===jo.DOWN,l=i===jo.LEFT,u=i===jo.RIGHT,d=a||l,p=l||u,b=a||s,f=p||b,h=e.shiftKey,m=h||e.ctrlKey||e.altKey||e.metaKey,v=b?Vo.isVerticalEdge:Vo.isHorizontalEdge;if(!f)return jo.isKeyboardEvent.primary(e)&&(this.isEntirelySelected=Object(Vo.isEntirelySelected)(c)),void(jo.isKeyboardEvent.primary(e,"a")&&((c.isContentEditable?this.isEntirelySelected:Object(Vo.isEntirelySelected)(c))&&(r(Object(O.first)(o),Object(O.last)(o)),e.preventDefault()),this.isEntirelySelected=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===jo.UP||t===jo.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(c,i,m))if(b?this.verticalRect||(this.verticalRect=Object(Vo.computeCaretRect)(c)):this.verticalRect=null,h&&(n||this.isTabbableEdge(c,d)&&v(c,d)))this.expandSelection(d),e.preventDefault();else if(n)this.moveSelection(d),e.preventDefault();else if(b&&Object(Vo.isVerticalEdge)(c,d)){var g=this.getClosestTabbable(c,d);g&&(Object(Vo.placeCaretAtVerticalEdge)(g,d,this.verticalRect),e.preventDefault())}else if(p&&au().isCollapsed&&Object(Vo.isHorizontalEdge)(c,d)){var j=this.getClosestTabbable(c,d);Object(Vo.placeCaretAtHorizontalEdge)(j,d),e.preventDefault()}}},{key:"focusLastTextField",value:function(){var e=Vo.focus.focusable.find(this.container),t=Object(O.findLast)(e,su);t&&Object(Vo.placeCaretAtHorizontalEdge)(t,!0)}},{key:"render",value:function(){var e=this.props.children;return Object(Ir.createElement)("div",{className:"editor-writing-flow"},Object(Ir.createElement)("div",{ref:this.bindContainer,onKeyDown:this.onKeyDown,onMouseDown:this.clearVerticalRect},e),Object(Ir.createElement)("div",{"aria-hidden":!0,tabIndex:-1,onClick:this.focusLastTextField,className:"wp-block editor-writing-flow__click-redirect"}))}}]),t}(Ir.Component),uu=Object(Lr.compose)([Object(l.withSelect)((function(e){var t=e("core/editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,i=t.getPreviousBlockClientId,c=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,s=t.getLastMultiSelectedBlockClientId,l=t.hasMultiSelection,u=t.getBlockOrder,d=n(),p=r(),b=o();return{selectedBlockClientId:d,selectionStartClientId:p,selectionBeforeEndClientId:i(b||d),selectionAfterEndClientId:c(b||d),selectedFirstClientId:a(),selectedLastClientId:s(),hasMultiSelection:l(),blocks:u()}})),Object(l.withDispatch)((function(e){var t=e("core/editor");return{onMultiSelect:t.multiSelect,onSelectBlock:t.selectBlock}}))])(lu),du=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,pu=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new c(e),b(),t}}function c(e){this.start=e,this.end={line:n,column:r},this.source=t.source}c.prototype.content=e;var a=[];function s(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i;a.push(i)}function l(){return p(/^{\s*/)}function u(){return p(/^}/)}function d(){var t,n=[];for(b(),f(n);e.length&&"}"!==e.charAt(0)&&(t=C()||w());)!1!==t&&(n.push(t),f(n));return n}function p(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function b(){p(/^\s*/)}function f(e){var t;for(e=e||[];t=m();)!1!==t&&e.push(t);return e}function m(){var t=i();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return s("End of comment missing");var c=e.slice(2,n-2);return r+=2,o(c),e=e.slice(n),r+=2,t({type:"comment",comment:c})}}function v(){var e=p(/^([^{]+)/);if(e)return bu(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 O(){var e=i(),t=p(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=bu(t[0]),!p(/^:\s*/))return s("property missing ':'");var n=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(du,""),value:n?bu(n[0]).replace(du,""):""});return p(/^[;\s]*/),r}}function g(){var e,t=[];if(!l())return s("missing '{'");for(f(t);e=O();)!1!==e&&(t.push(e),f(t));return u()?t:s("missing '}'")}function j(){for(var e,t=[],n=i();e=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),p(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:g()})}var y,k=S("import"),_=S("charset"),E=S("namespace");function S(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=i(),r=p(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function C(){if("@"===e[0])return function(){var e=i(),t=p(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=p(/^([-\w]+)\s*/)))return s("@keyframes missing name");var r,o=t[1];if(!l())return s("@keyframes missing '{'");for(var c=f();r=j();)c.push(r),c=c.concat(f());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:c}):s("@keyframes missing '}'")}}()||function(){var e=i(),t=p(/^@media *([^{]+)/);if(t){var n=bu(t[1]);if(!l())return s("@media missing '{'");var r=f().concat(d());return u()?e({type:"media",media:n,rules:r}):s("@media missing '}'")}}()||function(){var e=i(),t=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:bu(t[1]),media:bu(t[2])})}()||function(){var e=i(),t=p(/^@supports *([^{]+)/);if(t){var n=bu(t[1]);if(!l())return s("@supports missing '{'");var r=f().concat(d());return u()?e({type:"supports",supports:n,rules:r}):s("@supports missing '}'")}}()||k()||_()||E()||function(){var e=i(),t=p(/^@([-\w]+)?document *([^{]+)/);if(t){var n=bu(t[1]),r=bu(t[2]);if(!l())return s("@document missing '{'");var o=f().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):s("@document missing '}'")}}()||function(){var e=i();if(p(/^@page */)){var t=v()||[];if(!l())return s("@page missing '{'");for(var n,r=f();n=O();)r.push(n),r=r.concat(f());return u()?e({type:"page",selectors:t,declarations:r}):s("@page missing '}'")}}()||function(){var e=i();if(p(/^@host\s*/)){if(!l())return s("@host missing '{'");var t=f().concat(d());return u()?e({type:"host",rules:t}):s("@host missing '}'")}}()||function(){var e=i();if(p(/^@font-face\s*/)){if(!l())return s("@font-face missing '{'");for(var t,n=f();t=O();)n.push(t),n=n.concat(f());return u()?e({type:"font-face",declarations:n}):s("@font-face missing '}'")}}()}function w(){var e=i(),t=v();return t?(f(),e({type:"rule",selectors:t,declarations:g()})):s("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type,o=r?t:n;for(var i in t){var c=t[i];Array.isArray(c)?c.forEach((function(t){e(t,o)})):c&&"object"===Object(h.a)(c)&&e(c,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((y=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:y,parsingErrors:a}}))};function bu(e){return e?e.replace(/^\s+|\s+$/g,""):""}var fu=n("P7XM"),hu=n.n(fu),mu=vu;function vu(e){this.options=e||{}}vu.prototype.emit=function(e){return e},vu.prototype.visit=function(e){return this[e.type](e)},vu.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Object(d.a)({},n,{selectors:n.selectors.map((function(n){return Object(O.includes)(t,n.trim())?n:n.match(Pu)?n.replace(/^(body|html)/,e):e+" "+n}))}):n}},Bu=function(e){function t(e){var n;return Object(Nr.a)(this,t),n=Object(Dr.a)(this,Object(Fr.a)(t).apply(this,arguments)),e.recovery?Object(Dr.a)(n):(e.updateEditorSettings(e.settings),e.updatePostLock(e.settings.postLock),e.setupEditor(e.post,e.initialEdits),e.settings.autosave&&e.createWarningNotice(Object(_.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(_.__)("View the autosave"),url:e.settings.autosave.editLink}]}),n)}return Object(Mr.a)(t,e),Object(Rr.a)(t,[{key:"componentDidMount",value:function(){this.props.settings.styles&&Object(O.map)(this.props.settings.styles,(function(e){var t=e.css,n=e.baseURL,r=[Iu(".editor-styles-wrapper")];n&&r.push(Tu(n));var o=Eu(t,Object(Lr.compose)(r));if(o){var i=document.createElement("style");i.innerHTML=o,document.body.appendChild(i)}}))}},{key:"componentDidUpdate",value:function(e){this.props.settings!==e.settings&&this.props.updateEditorSettings(this.props.settings)}},{key:"render",value:function(){var e=this.props.children,t=[[Hr.SlotFillProvider],[Hr.DropZoneProvider]];return Object(O.flow)(t.map((function(e){var t=Object(u.a)(e,2),n=t[0],r=t[1];return function(e){return Object(Ir.createElement)(n,r,e)}})))(e)}}]),t}(Ir.Component),xu=Object(l.withDispatch)((function(e){var t=e("core/editor");return{setupEditor:t.setupEditor,updateEditorSettings:t.updateEditorSettings,updatePostLock:t.updatePostLock,createWarningNotice:e("core/notices").createWarningNotice}}))(Bu),Lu=["left","center","right","wide","full"],Au=["wide","full"];function Nu(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?Lu:[],!r||!0===e&&!n?O.without.apply(void 0,[t].concat(Au)):t}var Ru=Object(Lr.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Nu(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0));return[r.length>0&&t.isSelected&&Object(Ir.createElement)(po,{key:"align-controls"},Object(Ir.createElement)(co,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(i.getBlockType)(t.name);Object(O.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:r})),Object(Ir.createElement)(e,Object(Pr.a)({key:"edit"},t))]}}),"withToolbarControls"),Du=Object(Lr.createHigherOrderComponent)(Object(Lr.compose)([Object(l.withSelect)((function(e){return{hasWideEnabled:!!(0,e("core/editor").getEditorSettings)().alignWide}})),function(e){return function(t){var n=t.name,r=t.attributes,o=t.hasWideEnabled,c=r.align,a=Nu(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0),o),s=t.wrapperProps;return Object(O.includes)(a,c)&&(s=Object(d.a)({},s,{"data-align":c})),Object(Ir.createElement)(e,Object(Pr.a)({},t,{wrapperProps:s}))}}]));Object(Ar.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(O.has)(e.attributes,["align","type"])||Object(i.hasBlockSupport)(e,"align")&&(e.attributes=Object(O.assign)(e.attributes,{align:{type:"string"}})),e})),Object(Ar.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Du),Object(Ar.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Ru),Object(Ar.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align,o=Object(i.getBlockSupport)(t,"align"),c=Object(i.hasBlockSupport)(t,"alignWide",!0);return Object(O.includes)(Nu(o,c),r)&&(e.className=xr()("align".concat(r),e.className)),e}));var Fu=/[\s#]/g;var Mu=Object(Lr.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(e,t),Object(Ir.createElement)(uc,null,Object(Ir.createElement)(Hr.TextControl,{label:Object(_.__)("HTML Anchor"),help:Object(_.__)("Anchors lets you link directly to a section on a page."),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(Fu,"-"),t.setAttributes({anchor:e})}}))):Object(Ir.createElement)(e,t)}}),"withInspectorControl");Object(Ar.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(i.hasBlockSupport)(e,"anchor")&&(e.attributes=Object(O.assign)(e.attributes,{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e})),Object(Ar.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",Mu),Object(Ar.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(i.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));var Uu=Object(Lr.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(Ir.createElement)(Ir.Fragment,null,Object(Ir.createElement)(e,t),Object(Ir.createElement)(uc,null,Object(Ir.createElement)(Hr.TextControl,{label:Object(_.__)("Additional CSS Class"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:e})}}))):Object(Ir.createElement)(e,t)}}),"withInspectorControl");function Hu(e){e="
    ".concat(e,"
    ");var t=Object(i.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(Ar.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(i.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=Object(O.assign)(e.attributes,{className:{type:"string"}})),e})),Object(Ar.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Uu),Object(Ar.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(i.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=xr()(e.className,n.className)),e})),Object(Ar.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(i.hasBlockSupport)(t,"customClassName",!0)){var r=Object(O.omit)(e,["className"]),o=Object(i.getSaveContent)(t,r),c=Hu(o),a=Hu(n),s=Object(O.difference)(a,c);s.length?e.className=s.join(" "):o&&delete e.className}return e}));var Vu=[eo],Ku=Object(O.once)((function(){return Object(l.dispatch)("core/editor").__experimentalFetchReusableBlocks()}));Object(Ar.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",(function(e,t){return e||(e=Vu.map(O.clone),t===Object(i.getDefaultBlockName)()&&(e.push(Object(O.clone)(Jr)),Ku())),e})),Object(Ar.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(i.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(O.uniq)([Object(i.getBlockDefaultClassName)(t.name)].concat(Object(b.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(i.getBlockDefaultClassName)(t.name)),e}))},PYwp:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},Rk8H:function(e,t,n){var r=n("jTPX");e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o: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 i=e.nodeName,c=document.createElement(i);c.innerHTML=" ","TEXTAREA"===i.toUpperCase()&&c.setAttribute("rows","1");var a=r(e,"font-size");c.style.fontSize=a,c.style.padding="0px",c.style.border="0px";var s=document.body;s.appendChild(c),n=c.offsetHeight,s.removeChild(c)}return n}},RxS6:function(e,t){!function(){e.exports=this.wp.keycodes}()},TSYQ:function(e,t,n){var r; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see diff --git a/wp-includes/js/dist/rich-text.js b/wp-includes/js/dist/rich-text.js index 06ee06d702..810b955cf4 100644 --- a/wp-includes/js/dist/rich-text.js +++ b/wp-includes/js/dist/rich-text.js @@ -1658,6 +1658,22 @@ function createFromElement(_ref3) { continue; } + if (type === 'script') { + var _value = { + formats: [,], + replacements: [{ + type: type, + attributes: { + 'data-rich-text-script': node.getAttribute('data-rich-text-script') || encodeURIComponent(node.innerHTML) + } + }], + text: OBJECT_REPLACEMENT_CHARACTER + }; + accumulateSelection(accumulator, node, range, _value); + mergePair(accumulator, _value); + continue; + } + if (type === 'br') { accumulateSelection(accumulator, node, range, createEmptyValue()); accumulator.text += '\n'; @@ -1891,8 +1907,9 @@ function getAttributes(_ref5) { continue; } + var safeName = /^on/i.test(name) ? 'data-disable-rich-text-' + name : name; accumulator = accumulator || {}; - accumulator[name] = value; + accumulator[safeName] = value; } return accumulator; @@ -2648,17 +2665,38 @@ function get_format_type_getFormatType(name) { +function restoreOnAttributes(attributes, isEditableTree) { + if (isEditableTree) { + return attributes; + } + + var newAttributes = {}; + + for (var key in attributes) { + var newKey = key; + + if (key.startsWith('data-disable-rich-text-')) { + newKey = key.slice('data-disable-rich-text-'.length); + } + + newAttributes[newKey] = attributes[key]; + } + + return newAttributes; +} + function fromFormat(_ref) { var type = _ref.type, attributes = _ref.attributes, unregisteredAttributes = _ref.unregisteredAttributes, - object = _ref.object; + object = _ref.object, + isEditableTree = _ref.isEditableTree; var formatType = get_format_type_getFormatType(type); if (!formatType) { return { type: type, - attributes: attributes, + attributes: restoreOnAttributes(attributes, isEditableTree), object: object }; } @@ -2686,7 +2724,7 @@ function fromFormat(_ref) { return { type: formatType.tagName, object: formatType.object, - attributes: elementAttributes + attributes: restoreOnAttributes(elementAttributes, isEditableTree) }; } @@ -2792,7 +2830,15 @@ function toTree(_ref2) { } var parent = getParent(pointer); - var newNode = append(parent, fromFormat(format)); + var type = format.type, + attributes = format.attributes, + unregisteredAttributes = format.unregisteredAttributes; + var newNode = append(parent, fromFormat({ + type: type, + attributes: attributes, + unregisteredAttributes: unregisteredAttributes, + isEditableTree: isEditableTree + })); if (isText(pointer) && getText(pointer).length === 0) { remove(pointer); @@ -2821,19 +2867,35 @@ function toTree(_ref2) { } } - if (character !== OBJECT_REPLACEMENT_CHARACTER) { - if (character === '\n') { - pointer = append(getParent(pointer), { - type: 'br', - object: true - }); // Ensure pointer is text node. - - pointer = append(getParent(pointer), ''); - } else if (!isText(pointer)) { - pointer = append(getParent(pointer), character); + if (character === OBJECT_REPLACEMENT_CHARACTER) { + if (!isEditableTree && replacements[i].type === 'script') { + pointer = append(getParent(pointer), fromFormat({ + type: 'script', + isEditableTree: isEditableTree + })); + append(pointer, { + html: decodeURIComponent(replacements[i].attributes['data-rich-text-script']) + }); } else { - appendText(pointer, character); - } + pointer = append(getParent(pointer), fromFormat(Object(objectSpread["a" /* default */])({}, replacements[i], { + object: true, + isEditableTree: isEditableTree + }))); + } // Ensure pointer is text node. + + + pointer = append(getParent(pointer), ''); + } else if (character === '\n') { + pointer = append(getParent(pointer), { + type: 'br', + object: true + }); // Ensure pointer is text node. + + pointer = append(getParent(pointer), ''); + } else if (!isText(pointer)) { + pointer = append(getParent(pointer), character); + } else { + appendText(pointer, character); } pointer = setFormatPlaceholder(pointer, i + 1); @@ -3307,6 +3369,10 @@ function createElementHTML(_ref6) { function createChildrenHTML() { var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; return children.map(function (child) { + if (child.html !== undefined) { + return child.html; + } + return child.text === undefined ? createElementHTML(child) : Object(external_this_wp_escapeHtml_["escapeHTML"])(child.text); }).join(''); } diff --git a/wp-includes/js/dist/rich-text.min.js b/wp-includes/js/dist/rich-text.min.js index a6fc528c3d..ea17a61322 100644 --- a/wp-includes/js/dist/rich-text.min.js +++ b/wp-includes/js/dist/rich-text.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.richText=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="yyEc")}({"1ZqX":function(e,t){!function(){e.exports=this.wp.data}()},"25BE":function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},"4eJC":function(e,t,r){e.exports=function(e,t){var r,n,a=0;function o(){var o,i,c=r,u=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(i=0;ie.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_FORMAT_TYPES":return Object(i.a)({},e,Object(c.keyBy)(t.formatTypes,"name"));case"REMOVE_FORMAT_TYPES":return Object(c.omit)(e,t.names)}return e}}),l=r("pPDe"),s=Object(l.a)((function(e){return Object.values(e.formatTypes)}),(function(e){return[e.formatTypes]}));function f(e,t){return e.formatTypes[t]}function d(e,t){return Object(c.find)(s(e),(function(e){var r=e.tagName;return t===r}))}function p(e,t){return Object(c.find)(s(e),(function(e){var r=e.className;return null!==r&&" ".concat(t," ").indexOf(" ".concat(r," "))>=0}))}function m(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Object(c.castArray)(e)}}function v(e){return{type:"REMOVE_FORMAT_TYPES",names:Object(c.castArray)(e)}}function g(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.type!==t.type)return!1;var r=e.attributes,n=t.attributes;if(r===n)return!0;if(!r||!n)return!1;var a=Object.keys(r),o=Object.keys(n);if(a.length!==o.length)return!1;for(var i=a.length,c=0;c2&&void 0!==arguments[2]?arguments[2]:a,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o,l=r.slice(0);if(i===u){var s=Object(c.find)(l[i],{type:t.type});if(!s){var f=l[i-1]||[],d=Object(c.find)(f,{type:t.type});return{formats:r,text:n,start:a,end:o,formatPlaceholder:{index:i,format:d?void 0:t}}}for(;Object(c.find)(l[i],s);)y(l,i,t),i--;for(u++;Object(c.find)(l[u],s);)y(l,u,t),u++}else for(var p=i;p0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,r=e.text,n=e.html,a=e.range,o=e.multilineTag,i=e.multilineWrapperTags,c=e.removeNode,u=e.unwrapNode,l=e.filterString,s=e.removeAttribute;return"string"==typeof r&&r.length>0?{formats:Array(r.length),text:r}:("string"==typeof n&&n.length>0&&(t=C(document,n)),"object"!==Object(j.a)(t)?{formats:[],text:""}:o?V({element:t,range:a,multilineTag:o,multilineWrapperTags:i,removeNode:c,unwrapNode:u,filterString:l,removeAttribute:s}):I({element:t,range:a,removeNode:c,unwrapNode:u,filterString:l,removeAttribute:s}))}function D(e,t,r,n){if(r){var a=t.parentNode,o=r.startContainer,i=r.startOffset,c=r.endContainer,u=r.endOffset,l=e.text.length;void 0!==n.start?e.start=l+n.start:t===o&&t.nodeType===F?e.start=l+i:a===o&&t===o.childNodes[i]?e.start=l:a===o&&t===o.childNodes[i-1]?e.start=l+n.text.length:t===o&&(e.start=l),void 0!==n.end?e.end=l+n.end:t===c&&t.nodeType===F?e.end=l+u:a===c&&t===c.childNodes[u-1]?e.end=l+n.text.length:a===c&&t===c.childNodes[u]?e.end=l:t===c&&(e.end=l+u)}}function L(e,t,r){if(t){var n=t.startContainer,a=t.endContainer,o=t.startOffset,i=t.endOffset;return e===n&&(o=r(e.nodeValue.slice(0,o)).length),e===a&&(i=r(e.nodeValue.slice(0,i)).length),{startContainer:n,startOffset:o,endContainer:a,endOffset:i}}}function I(e){var t=e.element,r=e.range,n=e.multilineTag,a=e.multilineWrapperTags,o=e.currentWrapperTags,i=void 0===o?[]:o,c=e.removeNode,u=e.unwrapNode,l=e.filterString,s=e.removeAttribute,f={formats:[],text:""};if(!t)return f;if(!t.hasChildNodes())return D(f,t,r,{formats:[],text:""}),f;for(var d=t.childNodes.length,p=function(e){return e=e.replace(/[\n\r\t]+/g," "),l&&(e=l(e)),e},m=0;m0){var b=s.length>0?[s]:[,];f.formats=f.formats.concat(b),f.text+=w}D(f,m,r,v),f.formats=f.formats.concat(v.formats),f.text+=v.text}}return f}function M(e){var t=e.element,r=e.removeAttribute;if(t.hasAttributes()){for(var n,a=t.attributes.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof t&&(t=W({text:t})),h(e.reduce((function(e,r){var n=r.formats,a=r.text;return{text:e.text+t.text+a,formats:e.formats.concat(t.formats,n)}})))}var U=r("rePB"),Y=r("wx14"),q=r("GRId"),K=r("4eJC"),Q=r.n(K),X=r("g56x"),Z=r("K9lf"),$=[];function J(e,t){if("string"==typeof(t=Object(i.a)({name:e},t)).name)if(/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(t.name))if(Object(o.select)("core/rich-text").getFormatType(t.name))window.console.error('Format "'+t.name+'" is already registered.');else if("string"==typeof t.tagName&&""!==t.tagName)if("string"==typeof t.className&&""!==t.className||null===t.className)if(/^[_a-zA-Z]+[a-zA-Z0-9-]*$/.test(t.className)){if(null===t.className){var r=Object(o.select)("core/rich-text").getFormatTypeForBareElement(t.tagName);if(r)return void window.console.error('Format "'.concat(r.name,'" is already registered to handle bare tag name "').concat(t.tagName,'".'))}else{var n=Object(o.select)("core/rich-text").getFormatTypeForClassName(t.className);if(n)return void window.console.error('Format "'.concat(n.name,'" is already registered to handle class name "').concat(t.className,'".'))}if("title"in t&&""!==t.title)if("keywords"in t&&t.keywords.length>3)window.console.error('The format "'+t.name+'" can have a maximum of 3 keywords.');else{if("string"==typeof t.title){Object(o.dispatch)("core/rich-text").addFormatTypes(t);var a=Q()((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$,t=arguments.length>1?arguments[1]:void 0;return Object(O.a)(e).concat([t])}));return t.__experimentalGetPropsForEditableTreePreparation&&Object(X.addFilter)("experimentalRichText",e,(function(r){var n=r;(t.__experimentalCreatePrepareEditableTree||t.__experimentalCreateFormatToValue||t.__experimentalCreateValueToFormat)&&(n=function(n){var o={};if(t.__experimentalCreatePrepareEditableTree&&(o.prepareEditableTree=a(n.prepareEditableTree,t.__experimentalCreatePrepareEditableTree(n["format_".concat(e)],{richTextIdentifier:n.identifier,blockClientId:n.clientId}))),t.__experimentalCreateOnChangeEditableValue){var c=Object.keys(n).reduce((function(t,r){var a=n[r],o="format_".concat(e,"_dispatch_");r.startsWith(o)&&(t[r.replace(o,"")]=a);return t}),{});o.onChangeEditableValue=a(n.onChangeEditableValue,t.__experimentalCreateOnChangeEditableValue(Object(i.a)({},n["format_".concat(e)],c),{richTextIdentifier:n.identifier,blockClientId:n.clientId}))}return Object(q.createElement)(r,Object(Y.a)({},n,o))});var u=[Object(o.withSelect)((function(r,n){var a=n.clientId,o=n.identifier;return Object(U.a)({},"format_".concat(e),t.__experimentalGetPropsForEditableTreePreparation(r,{richTextIdentifier:o,blockClientId:a}))}))];return t.__experimentalGetPropsForEditableTreeChangeHandler&&u.push(Object(o.withDispatch)((function(r,n){var a=n.clientId,o=n.identifier,i=t.__experimentalGetPropsForEditableTreeChangeHandler(r,{richTextIdentifier:o,blockClientId:a});return Object(c.mapKeys)(i,(function(t,r){return"format_".concat(e,"_dispatch_").concat(r)}))}))),Object(Z.compose)(u)(n)})),t}window.console.error("Format titles must be strings.")}else window.console.error('The format "'+t.name+'" must have a title.')}else window.console.error("A class name must begin with a letter, followed by any number of hyphens, letters, or numbers.");else window.console.error("Format class names must be a string, or null to handle bare elements.");else window.console.error("Format tag names must be a string.");else window.console.error("Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format");else window.console.error("Format names must be strings.")}function ee(e,t){var r=e.formats,n=e.text,a=e.start,o=e.end,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o,l=r.slice(0);if(i===u){for(var s=Object(c.find)(l[i],{type:t});Object(c.find)(l[i],s);)te(l,i,t),i--;for(u++;Object(c.find)(l[u],s);)te(l,u,t),u++}else for(var f=i;f2&&void 0!==arguments[2]?arguments[2]:a,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o;"string"==typeof t&&(t=W({text:t}));var u=i+t.text.length;return h({formats:r.slice(0,i).concat(t.formats,r.slice(c)),text:n.slice(0,i)+t.text+n.slice(c),start:u,end:u})}function ne(e,t,r){return re(e,W(),t,r)}function ae(e,t,r){var n=e.formats,a=e.text,o=e.start,i=e.end;return a=a.replace(t,(function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),c=1;c1&&void 0!==arguments[1]?arguments[1]:e.start,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,n=z(e).slice(0,t),a=n.lastIndexOf(w),o=e.formats[a],i=[,];o&&(i=[o]);var c={formats:i,text:w};return re(e,c,t,r)}function ie(e,t,r,n){return re(e,{text:"",formats:[[Object(i.a)({},t,{object:!0})]]},r,n)}function ce(e){var t=e.formats,r=e.text,n=e.start,a=e.end,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;return void 0===o||void 0===i?{formats:t,text:r}:{formats:t.slice(o,i),text:r.slice(o,i)}}function ue(e,t){var r=e.formats,n=e.text,a=e.start,o=e.end;if("string"!=typeof t)return le.apply(void 0,arguments);var i=0;return n.split(t).map((function(e){var n=i,c={formats:r.slice(n,n+e.length),text:e};return i+=t.length+e.length,void 0!==a&&void 0!==o&&(a>=n&&an&&(c.start=0),o>=n&&oi&&(c.end=e.length)),c}))}function le(e){var t=e.formats,r=e.text,n=e.start,a=e.end,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,c={formats:t.slice(0,o),text:r.slice(0,o)},u={formats:t.slice(i),text:r.slice(i),start:0,end:0};return[ae(c,/\u2028+$/,""),ae(u,/^\u2028+/,"")]}function se(e){var t=e.type,r=e.attributes,n=e.unregisteredAttributes,a=e.object,c=function(e){return Object(o.select)("core/rich-text").getFormatType(e)}(t);if(!c)return{type:t,attributes:r,object:a};var u=Object(i.a)({},n);for(var l in r){var s=c.attributes[l];s?u[s]=r[l]:u[l]=r[l]}return c.className&&(u.class?u.class="".concat(c.className," ").concat(u.class):u.class=c.className),{type:c.tagName,object:c.object,attributes:u}}function fe(e){var t,r,n,a=e.value,o=e.multilineTag,i=e.multilineWrapperTags,c=void 0===i?[]:i,u=e.createEmpty,l=e.append,s=e.getLastChild,f=e.getParent,d=e.isText,p=e.getText,m=e.remove,v=e.appendText,g=e.onStartIndex,h=e.onEndIndex,b=e.isEditableTree,y=a.formats,x=a.text,T=a.start,j=a.end,N=a.formatPlaceholder,E=y.length+1,C=u(),_={type:o};function F(e,t){if(b&&N&&N.index===t){var r=f(e);e=void 0===N.format?f(r):l(r,se(N.format)),e=l(e,"\ufeff")}return e}o?(l(l(C,{type:o}),""),r=t=[_]):l(C,"");for(var S=function(e){var a=x.charAt(e),i=y[e];o&&(i=a===w?t=(i||[]).reduce((function(e,t){return a===w&&-1!==c.indexOf(t.type)&&(e.push(t),e.push(_)),e}),[_]):Object(O.a)(t).concat(Object(O.a)(i||[])));var u=s(C);if(n===w){for(var b=u;!d(b);)b=s(b);g&&T===e&&g(C,b),h&&j===e&&h(C,b)}if(i&&i.forEach((function(e,t){if(!u||!r||e!==r[t]||a===w&&i.length-1===t){var n=f(u),o=l(n,se(e));d(u)&&0===p(u).length&&m(u),u=l(e.object?n:o,"")}else u=s(u)})),a===w)return r=i,n=a,"continue";u=F(u,0),0===e&&(g&&0===T&&g(C,u),h&&0===j&&h(C,u)),""!==a&&("\n"===a?(u=l(f(u),{type:"br",object:!0}),u=l(f(u),"")):d(u)?v(u,a):u=l(f(u),a)),u=F(u,e+1),g&&T===e+1&&g(C,u),h&&j===e+1&&h(C,u),r=i,n=a},A=0;A1;)e=e.childNodes[t.shift()];return{node:e,offset:t[0]}}var he=function(){return C(document,"")};function be(e,t){"string"==typeof t&&(t=e.ownerDocument.createTextNode(t));var r=t,n=r.type,a=r.attributes;if(n)for(var o in t=e.ownerDocument.createElement(n),a)t.setAttribute(o,a[o]);return e.appendChild(t)}function ye(e,t){e.appendData(t)}function xe(e){return e.lastChild}function Te(e){return e.parentNode}function Oe(e){return e.nodeType===pe}function je(e){return e.nodeValue}function we(e){return e.parentNode.removeChild(e)}function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.reduce((function(e,r){return r(e,t.text)}),t.formats)}function Ee(e){var t=e.value,r=e.multilineTag,n=e.multilineWrapperTags,a=e.createLinePadding,o=e.prepareEditableTree,c=[],u=[],l=fe({value:Object(i.a)({},t,{formats:Ne(o,t)}),multilineTag:r,multilineWrapperTags:n,createEmpty:he,append:be,getLastChild:xe,getParent:Te,isText:Oe,getText:je,remove:we,appendText:ye,onStartIndex:function(e,t){c=ve(t,e,[t.nodeValue.length])},onEndIndex:function(e,t){u=ve(t,e,[t.nodeValue.length])},isEditableTree:!0});return a&&function e(t){for(var r=t.element,n=t.createLinePadding,a=t.multilineWrapperTags,o=r.childNodes.length,i=r.ownerDocument,c=0;c0){if(f=l,d=u.getRangeAt(0),f.startContainer===d.startContainer&&f.startOffset===d.startOffset&&f.endContainer===d.endContainer&&f.endOffset===d.endOffset)return;u.removeAllRanges()}var f,d;u.addRange(l)}(o,r)}var _e=r("Vx3V");function Fe(e){return ke(fe({value:e.value,multilineTag:e.multilineTag,multilineWrapperTags:e.multilineWrapperTags,createEmpty:Se,append:Pe,getLastChild:Ae,getParent:De,isText:Le,getText:Ie,remove:Ve,appendText:We}).children)}function Se(){return{}}function Ae(e){var t=e.children;return t&&t[t.length-1]}function Pe(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function We(e,t){e.text+=t}function De(e){return e.parent}function Le(e){return"string"==typeof e.text}function Ie(e){return e.text}function Ve(e){var t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function Me(e){var t=e.type,r=e.attributes,n=e.object,a=e.children,o="";for(var i in r)Object(_e.isValidAttributeName)(i)&&(o+=" ".concat(i,'="').concat(Object(_e.escapeAttribute)(r[i]),'"'));return n?"<".concat(t).concat(o,">"):"<".concat(t).concat(o,">").concat(ke(a),"")}function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return void 0===e.text?Me(e):Object(_e.escapeHTML)(e.text)})).join("")}function Re(e,t){return k(e,t.type)?ee(e,t.type):b(e,t)}function Be(e){var t=Object(o.select)("core/rich-text").getFormatType(e);if(t)return t.__experimentalCreatePrepareEditableTree&&t.__experimentalGetPropsForEditableTreePreparation&&Object(X.removeFilter)("experimentalRichText",e),Object(o.dispatch)("core/rich-text").removeFormatTypes(e),t;window.console.error("Format ".concat(e," is not registered."))}function ze(e){for(var t=e.start,r=e.text,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,a=n;a--;)if(r[a]===w)return a}function Ge(e,t){var r=ze(e);if(void 0===r)return e;var n=e.text,a=e.formats,o=e.start,i=e.end,c=ze(e,r),u=a[r]||[],l=a[c]||[];if(u.length>l.length)return e;for(var s=a.slice(),f=function(e,t){for(var r=e.text,n=e.formats,a=n[t]||[],o=t;o-- >=0;)if(r[o]===w){var i=n[o]||[];if(i.length===a.length+1)return o;if(i.length<=a.length)return}}(e,r),d=r;d=0;){if(r[o]===w)if((n[o]||[]).length===a.length-1)return o}}function Ue(e){var t=e.text,r=e.formats,n=e.start,a=e.end,o=ze(e,n);if(void 0===r[o])return e;for(var i=r.slice(0),c=r[He(e,o)]||[],u=function(e,t){for(var r=e.text,n=e.formats,a=n[t]||[],o=t,i=t||0;i=a.length))return o;o=i}return o}(e,ze(e,a)),l=o;l<=u;l++)if(t[l]===w){var s=i[l]||[];i[l]=c.concat(s.slice(c.length+1)),0===i[l].length&&delete i[l]}return h({text:t,formats:i,start:n,end:a})}function Ye(e,t){for(var r,n=e.text,a=e.formats,o=e.start,i=e.end,c=ze(e,o),u=a[c]||[],l=a[ze(e,i)]||[],s=He(e,c),f=a.slice(0),d=u.length-1,p=l.length-1,m=s+1||0;mp?e:t})))}return r?h({text:n,formats:f,start:o,end:i}):e}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.richText=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="yyEc")}({"1ZqX":function(e,t){!function(){e.exports=this.wp.data}()},"25BE":function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},"4eJC":function(e,t,r){e.exports=function(e,t){var r,n,a=0;function i(){var i,o,c=r,u=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(o=0;oe.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_FORMAT_TYPES":return Object(o.a)({},e,Object(c.keyBy)(t.formatTypes,"name"));case"REMOVE_FORMAT_TYPES":return Object(c.omit)(e,t.names)}return e}}),s=r("pPDe"),l=Object(s.a)((function(e){return Object.values(e.formatTypes)}),(function(e){return[e.formatTypes]}));function f(e,t){return e.formatTypes[t]}function d(e,t){return Object(c.find)(l(e),(function(e){var r=e.tagName;return t===r}))}function p(e,t){return Object(c.find)(l(e),(function(e){var r=e.className;return null!==r&&" ".concat(t," ").indexOf(" ".concat(r," "))>=0}))}function m(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Object(c.castArray)(e)}}function v(e){return{type:"REMOVE_FORMAT_TYPES",names:Object(c.castArray)(e)}}function g(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.type!==t.type)return!1;var r=e.attributes,n=t.attributes;if(r===n)return!0;if(!r||!n)return!1;var a=Object.keys(r),i=Object.keys(n);if(a.length!==i.length)return!1;for(var o=a.length,c=0;c2&&void 0!==arguments[2]?arguments[2]:a,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i,s=r.slice(0);if(o===u){var l=Object(c.find)(s[o],{type:t.type});if(!l){var f=s[o-1]||[],d=Object(c.find)(f,{type:t.type});return{formats:r,text:n,start:a,end:i,formatPlaceholder:{index:o,format:d?void 0:t}}}for(;Object(c.find)(s[o],l);)y(s,o,t),o--;for(u++;Object(c.find)(s[u],l);)y(s,u,t),u++}else for(var p=o;p0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,r=e.text,n=e.html,a=e.range,i=e.multilineTag,o=e.multilineWrapperTags,c=e.removeNode,u=e.unwrapNode,s=e.filterString,l=e.removeAttribute;return"string"==typeof r&&r.length>0?{formats:Array(r.length),text:r}:("string"==typeof n&&n.length>0&&(t=C(document,n)),"object"!==Object(j.a)(t)?{formats:[],text:""}:i?M({element:t,range:a,multilineTag:i,multilineWrapperTags:o,removeNode:c,unwrapNode:u,filterString:s,removeAttribute:l}):L({element:t,range:a,removeNode:c,unwrapNode:u,filterString:s,removeAttribute:l}))}function D(e,t,r,n){if(r){var a=t.parentNode,i=r.startContainer,o=r.startOffset,c=r.endContainer,u=r.endOffset,s=e.text.length;void 0!==n.start?e.start=s+n.start:t===i&&t.nodeType===A?e.start=s+o:a===i&&t===i.childNodes[o]?e.start=s:a===i&&t===i.childNodes[o-1]?e.start=s+n.text.length:t===i&&(e.start=s),void 0!==n.end?e.end=s+n.end:t===c&&t.nodeType===A?e.end=s+u:a===c&&t===c.childNodes[u-1]?e.end=s+n.text.length:a===c&&t===c.childNodes[u]?e.end=s:t===c&&(e.end=s+u)}}function I(e,t,r){if(t){var n=t.startContainer,a=t.endContainer,i=t.startOffset,o=t.endOffset;return e===n&&(i=r(e.nodeValue.slice(0,i)).length),e===a&&(o=r(e.nodeValue.slice(0,o)).length),{startContainer:n,startOffset:i,endContainer:a,endOffset:o}}}function L(e){var t=e.element,r=e.range,n=e.multilineTag,a=e.multilineWrapperTags,i=e.currentWrapperTags,o=void 0===i?[]:i,c=e.removeNode,u=e.unwrapNode,s=e.filterString,l=e.removeAttribute,f={formats:[],text:""};if(!t)return f;if(!t.hasChildNodes())return D(f,t,r,{formats:[],text:""}),f;for(var d=t.childNodes.length,p=function(e){return e=e.replace(/[\n\r\t]+/g," "),s&&(e=s(e)),e},m=0;m0){var b=l.length>0?[l]:[,];f.formats=f.formats.concat(b),f.text+=w}D(f,m,r,v),f.formats=f.formats.concat(v.formats),f.text+=v.text}}return f}function V(e){var t=e.element,r=e.removeAttribute;if(t.hasAttributes()){for(var n,a=t.attributes.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof t&&(t=W({text:t})),h(e.reduce((function(e,r){var n=r.formats,a=r.text;return{text:e.text+t.text+a,formats:e.formats.concat(t.formats,n)}})))}var G=r("rePB"),Y=r("wx14"),q=r("GRId"),K=r("4eJC"),Q=r.n(K),X=r("g56x"),Z=r("K9lf"),$=[];function J(e,t){if("string"==typeof(t=Object(o.a)({name:e},t)).name)if(/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(t.name))if(Object(i.select)("core/rich-text").getFormatType(t.name))window.console.error('Format "'+t.name+'" is already registered.');else if("string"==typeof t.tagName&&""!==t.tagName)if("string"==typeof t.className&&""!==t.className||null===t.className)if(/^[_a-zA-Z]+[a-zA-Z0-9-]*$/.test(t.className)){if(null===t.className){var r=Object(i.select)("core/rich-text").getFormatTypeForBareElement(t.tagName);if(r)return void window.console.error('Format "'.concat(r.name,'" is already registered to handle bare tag name "').concat(t.tagName,'".'))}else{var n=Object(i.select)("core/rich-text").getFormatTypeForClassName(t.className);if(n)return void window.console.error('Format "'.concat(n.name,'" is already registered to handle class name "').concat(t.className,'".'))}if("title"in t&&""!==t.title)if("keywords"in t&&t.keywords.length>3)window.console.error('The format "'+t.name+'" can have a maximum of 3 keywords.');else{if("string"==typeof t.title){Object(i.dispatch)("core/rich-text").addFormatTypes(t);var a=Q()((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$,t=arguments.length>1?arguments[1]:void 0;return Object(O.a)(e).concat([t])}));return t.__experimentalGetPropsForEditableTreePreparation&&Object(X.addFilter)("experimentalRichText",e,(function(r){var n=r;(t.__experimentalCreatePrepareEditableTree||t.__experimentalCreateFormatToValue||t.__experimentalCreateValueToFormat)&&(n=function(n){var i={};if(t.__experimentalCreatePrepareEditableTree&&(i.prepareEditableTree=a(n.prepareEditableTree,t.__experimentalCreatePrepareEditableTree(n["format_".concat(e)],{richTextIdentifier:n.identifier,blockClientId:n.clientId}))),t.__experimentalCreateOnChangeEditableValue){var c=Object.keys(n).reduce((function(t,r){var a=n[r],i="format_".concat(e,"_dispatch_");r.startsWith(i)&&(t[r.replace(i,"")]=a);return t}),{});i.onChangeEditableValue=a(n.onChangeEditableValue,t.__experimentalCreateOnChangeEditableValue(Object(o.a)({},n["format_".concat(e)],c),{richTextIdentifier:n.identifier,blockClientId:n.clientId}))}return Object(q.createElement)(r,Object(Y.a)({},n,i))});var u=[Object(i.withSelect)((function(r,n){var a=n.clientId,i=n.identifier;return Object(G.a)({},"format_".concat(e),t.__experimentalGetPropsForEditableTreePreparation(r,{richTextIdentifier:i,blockClientId:a}))}))];return t.__experimentalGetPropsForEditableTreeChangeHandler&&u.push(Object(i.withDispatch)((function(r,n){var a=n.clientId,i=n.identifier,o=t.__experimentalGetPropsForEditableTreeChangeHandler(r,{richTextIdentifier:i,blockClientId:a});return Object(c.mapKeys)(o,(function(t,r){return"format_".concat(e,"_dispatch_").concat(r)}))}))),Object(Z.compose)(u)(n)})),t}window.console.error("Format titles must be strings.")}else window.console.error('The format "'+t.name+'" must have a title.')}else window.console.error("A class name must begin with a letter, followed by any number of hyphens, letters, or numbers.");else window.console.error("Format class names must be a string, or null to handle bare elements.");else window.console.error("Format tag names must be a string.");else window.console.error("Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format");else window.console.error("Format names must be strings.")}function ee(e,t){var r=e.formats,n=e.text,a=e.start,i=e.end,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i,s=r.slice(0);if(o===u){for(var l=Object(c.find)(s[o],{type:t});Object(c.find)(s[o],l);)te(s,o,t),o--;for(u++;Object(c.find)(s[u],l);)te(s,u,t),u++}else for(var f=o;f2&&void 0!==arguments[2]?arguments[2]:a,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i;"string"==typeof t&&(t=W({text:t}));var u=o+t.text.length;return h({formats:r.slice(0,o).concat(t.formats,r.slice(c)),text:n.slice(0,o)+t.text+n.slice(c),start:u,end:u})}function ne(e,t,r){return re(e,W(),t,r)}function ae(e,t,r){var n=e.formats,a=e.text,i=e.start,o=e.end;return a=a.replace(t,(function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),c=1;c1&&void 0!==arguments[1]?arguments[1]:e.start,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,n=U(e).slice(0,t),a=n.lastIndexOf(w),i=e.formats[a],o=[,];i&&(o=[i]);var c={formats:o,text:w};return re(e,c,t,r)}function oe(e,t,r,n){return re(e,{text:"",formats:[[Object(o.a)({},t,{object:!0})]]},r,n)}function ce(e){var t=e.formats,r=e.text,n=e.start,a=e.end,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;return void 0===i||void 0===o?{formats:t,text:r}:{formats:t.slice(i,o),text:r.slice(i,o)}}function ue(e,t){var r=e.formats,n=e.text,a=e.start,i=e.end;if("string"!=typeof t)return se.apply(void 0,arguments);var o=0;return n.split(t).map((function(e){var n=o,c={formats:r.slice(n,n+e.length),text:e};return o+=t.length+e.length,void 0!==a&&void 0!==i&&(a>=n&&an&&(c.start=0),i>=n&&io&&(c.end=e.length)),c}))}function se(e){var t=e.formats,r=e.text,n=e.start,a=e.end,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,c={formats:t.slice(0,i),text:r.slice(0,i)},u={formats:t.slice(o),text:r.slice(o),start:0,end:0};return[ae(c,/\u2028+$/,""),ae(u,/^\u2028+/,"")]}function le(e,t){if(t)return e;var r={};for(var n in e){var a=n;n.startsWith("data-disable-rich-text-")&&(a=n.slice("data-disable-rich-text-".length)),r[a]=e[n]}return r}function fe(e){var t=e.type,r=e.attributes,n=e.unregisteredAttributes,a=e.object,c=e.isEditableTree,u=function(e){return Object(i.select)("core/rich-text").getFormatType(e)}(t);if(!u)return{type:t,attributes:le(r,c),object:a};var s=Object(o.a)({},n);for(var l in r){var f=u.attributes[l];f?s[f]=r[l]:s[l]=r[l]}return u.className&&(s.class?s.class="".concat(u.className," ").concat(s.class):s.class=u.className),{type:u.tagName,object:u.object,attributes:le(s,c)}}function de(e){var t,r,n,a=e.value,i=e.multilineTag,c=e.multilineWrapperTags,u=void 0===c?[]:c,s=e.createEmpty,l=e.append,f=e.getLastChild,d=e.getParent,p=e.isText,m=e.getText,v=e.remove,g=e.appendText,h=e.onStartIndex,b=e.onEndIndex,y=e.isEditableTree,x=a.formats,T=a.text,j=a.start,N=a.end,E=a.formatPlaceholder,C=x.length+1,_=s(),A={type:i};function F(e,t){if(y&&E&&E.index===t){var r=d(e);e=void 0===E.format?d(r):l(r,fe(E.format)),e=l(e,"\ufeff")}return e}i?(l(l(_,{type:i}),""),r=t=[A]):l(_,"");for(var P=function(e){var a=T.charAt(e),c=x[e];i&&(c=a===w?t=(c||[]).reduce((function(e,t){return a===w&&-1!==u.indexOf(t.type)&&(e.push(t),e.push(A)),e}),[A]):Object(O.a)(t).concat(Object(O.a)(c||[])));var s=f(_);if(n===w){for(var E=s;!p(E);)E=f(E);h&&j===e&&h(_,E),b&&N===e&&b(_,E)}if(c&&c.forEach((function(e,t){if(!s||!r||e!==r[t]||a===w&&c.length-1===t){var n=d(s),i=e.type,o=e.attributes,u=e.unregisteredAttributes,g=l(n,fe({type:i,attributes:o,unregisteredAttributes:u,isEditableTree:y}));p(s)&&0===m(s).length&&v(s),s=l(e.object?n:g,"")}else s=f(s)})),a===w)return r=c,n=a,"continue";s=F(s,0),0===e&&(h&&0===j&&h(_,s),b&&0===N&&b(_,s)),""===a?(y||"script"!==replacements[e].type?s=l(d(s),fe(Object(o.a)({},replacements[e],{object:!0,isEditableTree:y}))):(s=l(d(s),fe({type:"script",isEditableTree:y})),l(s,{html:decodeURIComponent(replacements[e].attributes["data-rich-text-script"])})),s=l(d(s),"")):"\n"===a?(s=l(d(s),{type:"br",object:!0}),s=l(d(s),"")):p(s)?g(s,a):s=l(d(s),a),s=F(s,e+1),h&&j===e+1&&h(_,s),b&&N===e+1&&b(_,s),r=c,n=a},S=0;S1;)e=e.childNodes[t.shift()];return{node:e,offset:t[0]}}var be=function(){return C(document,"")};function ye(e,t){"string"==typeof t&&(t=e.ownerDocument.createTextNode(t));var r=t,n=r.type,a=r.attributes;if(n)for(var i in t=e.ownerDocument.createElement(n),a)t.setAttribute(i,a[i]);return e.appendChild(t)}function xe(e,t){e.appendData(t)}function Te(e){return e.lastChild}function Oe(e){return e.parentNode}function je(e){return e.nodeType===me}function we(e){return e.nodeValue}function Ne(e){return e.parentNode.removeChild(e)}function Ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.reduce((function(e,r){return r(e,t.text)}),t.formats)}function Ce(e){var t=e.value,r=e.multilineTag,n=e.multilineWrapperTags,a=e.createLinePadding,i=e.prepareEditableTree,c=[],u=[],s=de({value:Object(o.a)({},t,{formats:Ee(i,t)}),multilineTag:r,multilineWrapperTags:n,createEmpty:be,append:ye,getLastChild:Te,getParent:Oe,isText:je,getText:we,remove:Ne,appendText:xe,onStartIndex:function(e,t){c=ge(t,e,[t.nodeValue.length])},onEndIndex:function(e,t){u=ge(t,e,[t.nodeValue.length])},isEditableTree:!0});return a&&function e(t){for(var r=t.element,n=t.createLinePadding,a=t.multilineWrapperTags,i=r.childNodes.length,o=r.ownerDocument,c=0;c0){if(f=s,d=u.getRangeAt(0),f.startContainer===d.startContainer&&f.startOffset===d.startOffset&&f.endContainer===d.endContainer&&f.endOffset===d.endOffset)return;u.removeAllRanges()}var f,d;u.addRange(s)}(i,r)}var Ae=r("Vx3V");function Fe(e){return ke(de({value:e.value,multilineTag:e.multilineTag,multilineWrapperTags:e.multilineWrapperTags,createEmpty:Pe,append:We,getLastChild:Se,getParent:Ie,isText:Le,getText:Me,remove:Ve,appendText:De}).children)}function Pe(){return{}}function Se(e){var t=e.children;return t&&t[t.length-1]}function We(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function De(e,t){e.text+=t}function Ie(e){return e.parent}function Le(e){return"string"==typeof e.text}function Me(e){return e.text}function Ve(e){var t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function Re(e){var t=e.type,r=e.attributes,n=e.object,a=e.children,i="";for(var o in r)Object(Ae.isValidAttributeName)(o)&&(i+=" ".concat(o,'="').concat(Object(Ae.escapeAttribute)(r[o]),'"'));return n?"<".concat(t).concat(i,">"):"<".concat(t).concat(i,">").concat(ke(a),"")}function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return void 0!==e.html?e.html:void 0===e.text?Re(e):Object(Ae.escapeHTML)(e.text)})).join("")}function Be(e,t){return R(e,t.type)?ee(e,t.type):b(e,t)}function Ue(e){var t=Object(i.select)("core/rich-text").getFormatType(e);if(t)return t.__experimentalCreatePrepareEditableTree&&t.__experimentalGetPropsForEditableTreePreparation&&Object(X.removeFilter)("experimentalRichText",e),Object(i.dispatch)("core/rich-text").removeFormatTypes(e),t;window.console.error("Format ".concat(e," is not registered."))}function He(e){for(var t=e.start,r=e.text,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,a=n;a--;)if(r[a]===w)return a}function ze(e,t){var r=He(e);if(void 0===r)return e;var n=e.text,a=e.formats,i=e.start,o=e.end,c=He(e,r),u=a[r]||[],s=a[c]||[];if(u.length>s.length)return e;for(var l=a.slice(),f=function(e,t){for(var r=e.text,n=e.formats,a=n[t]||[],i=t;i-- >=0;)if(r[i]===w){var o=n[i]||[];if(o.length===a.length+1)return i;if(o.length<=a.length)return}}(e,r),d=r;d=0;){if(r[i]===w)if((n[i]||[]).length===a.length-1)return i}}function Ye(e){var t=e.text,r=e.formats,n=e.start,a=e.end,i=He(e,n);if(void 0===r[i])return e;for(var o=r.slice(0),c=r[Ge(e,i)]||[],u=function(e,t){for(var r=e.text,n=e.formats,a=n[t]||[],i=t,o=t||0;o=a.length))return i;i=o}return i}(e,He(e,a)),s=i;s<=u;s++)if(t[s]===w){var l=o[s]||[];o[s]=c.concat(l.slice(c.length+1)),0===o[s].length&&delete o[s]}return h({text:t,formats:o,start:n,end:a})}function qe(e,t){for(var r,n=e.text,a=e.formats,i=e.start,o=e.end,c=He(e,i),u=a[c]||[],s=a[He(e,o)]||[],l=Ge(e,c),f=a.slice(0),d=u.length-1,p=s.length-1,m=l+1||0;mp?e:t})))}return r?h({text:n,formats:f,start:i,end:o}):e}}}); \ No newline at end of file