Gutenberg - Version 3.1.1

Version Description

Download this release

Release Info

Developer lonelyvegan
Plugin Icon 128x128 Gutenberg
Version 3.1.1
Comparing to
See all releases

Code changes from version 3.1.0 to 3.1.1

build/core-blocks/style-rtl.css CHANGED
@@ -1 +1 @@
1
- .wp-block-embed figcaption{margin-top:.5em;color:#6c7781;text-align:center;font-size:13px}.editor-block-list__block[data-type="core/embed"][data-align=left] .editor-block-list__block-edit,.editor-block-list__block[data-type="core/embed"][data-align=right] .editor-block-list__block-edit,.wp-block-embed.alignleft,.wp-block-embed.alignright{max-width:305px;width:100%}p.is-small-text{font-size:14px}p.is-regular-text{font-size:16px}p.is-large-text{font-size:36px}p.is-larger-text{font-size:48px}p.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em 0 0 .1em;text-transform:uppercase;font-style:normal}p.has-background{padding:20px 30px}.has-pale-pink-background-color{background-color:#f78da7}.has-vivid-red-background-color{background-color:#cf2e2e}.has-luminous-vivid-orange-background-color{background-color:#ff6900}.has-luminous-vivid-amber-background-color{background-color:#fcb900}.has-light-green-cyan-background-color{background-color:#7bdcb5}.has-vivid-green-cyan-background-color{background-color:#00d084}.has-pale-cyan-blue-background-color{background-color:#8ed1fc}.has-vivid-cyan-blue-background-color{background-color:#0693e3}.has-very-light-gray-background-color{background-color:#eee}.has-cyan-bluish-gray-background-color{background-color:#abb8c3}.has-very-dark-gray-background-color{background-color:#313131}.has-pale-pink-color{color:#f78da7}.has-vivid-red-color{color:#cf2e2e}.has-luminous-vivid-orange-color{color:#ff6900}.has-luminous-vivid-amber-color{color:#fcb900}.has-light-green-cyan-color{color:#7bdcb5}.has-vivid-green-cyan-color{color:#00d084}.has-pale-cyan-blue-color{color:#8ed1fc}.has-vivid-cyan-blue-color{color:#0693e3}.has-very-light-gray-color{color:#eee}.has-cyan-bluish-gray-color{color:#abb8c3}.has-very-dark-gray-color{color:#313131}.wp-block-quote cite,.wp-block-quote footer{margin-top:1em;position:relative;font-style:normal}.wp-block-quote.is-large{margin:0 0 16px;padding:0 1em}.wp-block-quote.is-large p{font-size:24px;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer{font-size:19px;text-align:left}.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0 -8px}.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:8px;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative}.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%;display:flex;align-items:flex-end}.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto}.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{padding:40px 10px 5px;color:#fff;text-align:center;font-size:13px;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 60%,transparent);position:absolute;width:100%;max-height:100%;overflow:auto}.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{flex:1;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.wp-block-gallery.is-cropped .blocks-gallery-image _:-ms-lang(x),.wp-block-gallery.is-cropped .blocks-gallery-image figure,.wp-block-gallery.is-cropped .blocks-gallery-item _:-ms-lang(x),.wp-block-gallery.is-cropped .blocks-gallery-item figure{height:auto;width:auto}.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{width:calc(100% / 2 - 16px)}.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:calc(100% / 1 - 16px)}@media (min-width:600px){.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc(100% / 3 - 16px)}.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc(100% / 4 - 16px)}.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc(100% / 5 - 16px)}.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc(100% / 6 - 16px)}.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc(100% / 7 - 16px)}.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc(100% / 8 - 16px)}}.wp-block-gallery.alignleft,.wp-block-gallery.alignright,[data-align=left] .wp-block-gallery,[data-align=right] .wp-block-gallery{max-width:305px;width:100%}.wp-block-audio figcaption{margin-top:.5em;color:#6c7781;text-align:center;font-size:13px}.wp-block-button{margin-bottom:1.5em}.wp-block-button .wp-block-button__link{border:none;border-radius:23px;box-shadow:none;cursor:pointer;display:inline-block;font-size:18px;line-height:24px;margin:0;padding:11px 24px;text-align:center;text-decoration:none;white-space:normal;word-break:break-all}.wp-block-button.aligncenter{text-align:center}.wp-block-button.alignright{text-align:left}.wp-block-button__link:not(.has-background),.wp-block-button__link:not(.has-background):active,.wp-block-button__link:not(.has-background):focus,.wp-block-button__link:not(.has-background):hover{background-color:#32373c}.wp-block-button__link:not(.has-text-color),.wp-block-button__link:not(.has-text-color):active,.wp-block-button__link:not(.has-text-color):focus,.wp-block-button__link:not(.has-text-color):hover{color:#fff}.wp-block-categories.alignleft{margin-left:2em}.wp-block-categories.alignright{margin-right:2em}.wp-block-columns{display:grid;grid-auto-flow:dense}.wp-block-columns.has-2-columns{grid-auto-columns:50%}.wp-block-columns.has-3-columns{grid-auto-columns:33.33333%}.wp-block-columns.has-4-columns{grid-auto-columns:25%}.wp-block-columns.has-5-columns{grid-auto-columns:20%}.wp-block-columns.has-6-columns{grid-auto-columns:16.66667%}.wp-block-columns .layout-column-1{grid-column:1}.wp-block-columns .layout-column-2{grid-column:2}.wp-block-columns .layout-column-3{grid-column:3}.wp-block-columns .layout-column-4{grid-column:4}.wp-block-columns .layout-column-5{grid-column:5}.wp-block-columns .layout-column-6{grid-column:6}.wp-block-cover-image{position:relative;background-size:cover;background-position:50%;min-height:430px;width:100%;margin:0 0 1.5em;display:flex;justify-content:center;align-items:center}.wp-block-cover-image.has-left-content{justify-content:flex-start}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover-image.has-left-content h2{margin-right:0;text-align:right}.wp-block-cover-image.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover-image.has-right-content h2{margin-left:0;text-align:left}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover-image h2{color:#fff;font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:610px;padding:14px;text-align:center}.wp-block-cover-image .wp-block-cover-image-text a,.wp-block-cover-image .wp-block-cover-image-text a:active,.wp-block-cover-image .wp-block-cover-image-text a:focus,.wp-block-cover-image .wp-block-cover-image-text a:hover,.wp-block-cover-image h2 a,.wp-block-cover-image h2 a:active,.wp-block-cover-image h2 a:focus,.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image.has-parallax{background-attachment:fixed}.wp-block-cover-image.has-background-dim:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.5)}.wp-block-cover-image.has-background-dim.has-background-dim-10:before{background-color:rgba(0,0,0,.1)}.wp-block-cover-image.has-background-dim.has-background-dim-20:before{background-color:rgba(0,0,0,.2)}.wp-block-cover-image.has-background-dim.has-background-dim-30:before{background-color:rgba(0,0,0,.3)}.wp-block-cover-image.has-background-dim.has-background-dim-40:before{background-color:rgba(0,0,0,.4)}.wp-block-cover-image.has-background-dim.has-background-dim-50:before{background-color:rgba(0,0,0,.5)}.wp-block-cover-image.has-background-dim.has-background-dim-60:before{background-color:rgba(0,0,0,.6)}.wp-block-cover-image.has-background-dim.has-background-dim-70:before{background-color:rgba(0,0,0,.7)}.wp-block-cover-image.has-background-dim.has-background-dim-80:before{background-color:rgba(0,0,0,.8)}.wp-block-cover-image.has-background-dim.has-background-dim-90:before{background-color:rgba(0,0,0,.9)}.wp-block-cover-image.has-background-dim.has-background-dim-100:before{background-color:#000}.wp-block-cover-image.components-placeholder{height:inherit}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,[data-align=left] .wp-block-cover-image,[data-align=right] .wp-block-cover-image{max-width:305px;width:100%}.wp-block-image{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.wp-block-image figcaption{margin-top:.5em;color:#6c7781;text-align:center;font-size:13px}.wp-block-image.aligncenter{display:block;margin-right:auto;margin-left:auto;text-align:center}.wp-block-image.is-resized{width:-webkit-min-content;width:-moz-min-content;width:min-content;display:-ms-inline-grid;-ms-grid-columns:min-content}.wp-block-image.is-resized figcaption{-ms-grid-row:2}.wp-block-image.is-resized img{max-width:none}.wp-block-latest-posts.alignleft{margin-left:2em}.wp-block-latest-posts.alignright{margin-right:2em}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-latest-posts.is-grid li{margin:0 0 16px 16px;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - 16px)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 16px)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 16px)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-latest-posts__post-date{display:block;color:#6c7781;font-size:13px}.wp-block-pullquote{border-top:4px solid #555d66;border-bottom:4px solid #555d66;color:#40464d;padding:3em 0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:400px}.wp-block-pullquote.alignleft>p,.wp-block-pullquote.alignright>p{font-size:20px}.wp-block-pullquote>p{font-size:24px;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{color:#40464d;position:relative;text-transform:uppercase;font-size:13px}.wp-block-separator{border:none;border-bottom:2px solid #8f98a1;max-width:100px;margin:1.65em auto}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table{overflow-x:auto;display:block;border-collapse:collapse;width:100%}.wp-block-table tbody{width:100%;display:table;min-width:240px}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid currentColor}.wp-block-table.has-fixed-layout tbody{table-layout:fixed}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{box-sizing:border-box;margin:0 16px;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-right:0}.wp-block-text-columns .wp-block-column:last-child{margin-left:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}.wp-block-video{margin:0}.wp-block-video figcaption{margin-top:.5em;color:#6c7781;text-align:center;font-size:13px}.wp-block-video.aligncenter{text-align:center}.editor-block-list__layout .shared-block-edit-panel{align-items:center;background:#f8f9f9;color:#555d66;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;position:relative;top:14px;margin:0 -28px;padding:10px 28px}.editor-block-list__layout .editor-block-list__layout .shared-block-edit-panel{margin:0 -14px;padding:10px 14px}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__spinner{margin:0 5px}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__info{margin-left:auto}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__label{margin-left:10px;white-space:nowrap;font-weight:600}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__title{flex:1 1 100%;font-size:14px;height:30px;margin:5px 0 10px}.editor-block-list__layout .shared-block-edit-panel .components-button.shared-block-edit-panel__button{margin:0 0 0 5px}@media (min-width:960px){.editor-block-list__layout .shared-block-edit-panel{flex-wrap:nowrap}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__title{margin:0}.editor-block-list__layout .shared-block-edit-panel .components-button.shared-block-edit-panel__button{margin:0 5px 0 0}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.editor-block-list__layout .shared-block-indicator{background:#fff;border-right:1px dashed #e2e4e7;color:#555d66;border-top:1px dashed #e2e4e7;bottom:-14px;height:30px;padding:5px;position:absolute;width:30px;left:-28px}.editor-block-list__layout .editor-block-list__layout .shared-block-indicator{left:-14px}
1
+ .wp-block-embed figcaption{margin-top:.5em;color:#6c7781;text-align:center;font-size:13px}.editor-block-list__block[data-type="core/embed"][data-align=left] .editor-block-list__block-edit,.editor-block-list__block[data-type="core/embed"][data-align=right] .editor-block-list__block-edit,.wp-block-embed.alignleft,.wp-block-embed.alignright{max-width:305px;width:100%}.has-pale-pink-background-color{background-color:#f78da7}.has-vivid-red-background-color{background-color:#cf2e2e}.has-luminous-vivid-orange-background-color{background-color:#ff6900}.has-luminous-vivid-amber-background-color{background-color:#fcb900}.has-light-green-cyan-background-color{background-color:#7bdcb5}.has-vivid-green-cyan-background-color{background-color:#00d084}.has-pale-cyan-blue-background-color{background-color:#8ed1fc}.has-vivid-cyan-blue-background-color{background-color:#0693e3}.has-very-light-gray-background-color{background-color:#eee}.has-cyan-bluish-gray-background-color{background-color:#abb8c3}.has-very-dark-gray-background-color{background-color:#313131}.has-pale-pink-color{color:#f78da7}.has-vivid-red-color{color:#cf2e2e}.has-luminous-vivid-orange-color{color:#ff6900}.has-luminous-vivid-amber-color{color:#fcb900}.has-light-green-cyan-color{color:#7bdcb5}.has-vivid-green-cyan-color{color:#00d084}.has-pale-cyan-blue-color{color:#8ed1fc}.has-vivid-cyan-blue-color{color:#0693e3}.has-very-light-gray-color{color:#eee}.has-cyan-bluish-gray-color{color:#abb8c3}.has-very-dark-gray-color{color:#313131}.wp-block-image{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.wp-block-image figcaption{margin-top:.5em;color:#6c7781;text-align:center;font-size:13px}.wp-block-image.aligncenter{display:block;margin-right:auto;margin-left:auto;text-align:center}.wp-block-image.is-resized{width:-webkit-min-content;width:-moz-min-content;width:min-content;display:-ms-inline-grid;-ms-grid-columns:min-content}.wp-block-image.is-resized figcaption{-ms-grid-row:2}.wp-block-image.is-resized img{max-width:none}.wp-block-quote cite,.wp-block-quote footer{margin-top:1em;position:relative;font-style:normal}.wp-block-quote.is-large{margin:0 0 16px;padding:0 1em}.wp-block-quote.is-large p{font-size:24px;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer{font-size:19px;text-align:left}.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0 -8px}.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:8px;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative}.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%;display:flex;align-items:flex-end}.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto}.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{padding:40px 10px 5px;color:#fff;text-align:center;font-size:13px;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 60%,transparent);position:absolute;width:100%;max-height:100%;overflow:auto}.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{flex:1;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.wp-block-gallery.is-cropped .blocks-gallery-image _:-ms-lang(x),.wp-block-gallery.is-cropped .blocks-gallery-image figure,.wp-block-gallery.is-cropped .blocks-gallery-item _:-ms-lang(x),.wp-block-gallery.is-cropped .blocks-gallery-item figure{height:auto;width:auto}.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{width:calc(100% / 2 - 16px)}.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:calc(100% / 1 - 16px)}@media (min-width:600px){.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc(100% / 3 - 16px)}.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc(100% / 4 - 16px)}.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc(100% / 5 - 16px)}.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc(100% / 6 - 16px)}.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc(100% / 7 - 16px)}.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc(100% / 8 - 16px)}}.wp-block-gallery.alignleft,.wp-block-gallery.alignright,[data-align=left] .wp-block-gallery,[data-align=right] .wp-block-gallery{max-width:305px;width:100%}.wp-block-audio figcaption{margin-top:.5em;color:#6c7781;text-align:center;font-size:13px}.wp-block-button{margin-bottom:1.5em}.wp-block-button .wp-block-button__link{border:none;border-radius:23px;box-shadow:none;cursor:pointer;display:inline-block;font-size:18px;line-height:24px;margin:0;padding:11px 24px;text-align:center;text-decoration:none;white-space:normal;word-break:break-all}.wp-block-button.aligncenter{text-align:center}.wp-block-button.alignright{text-align:left}.wp-block-button__link:not(.has-background),.wp-block-button__link:not(.has-background):active,.wp-block-button__link:not(.has-background):focus,.wp-block-button__link:not(.has-background):hover{background-color:#32373c}.wp-block-button__link:not(.has-text-color),.wp-block-button__link:not(.has-text-color):active,.wp-block-button__link:not(.has-text-color):focus,.wp-block-button__link:not(.has-text-color):hover{color:#fff}.wp-block-categories.alignleft{margin-left:2em}.wp-block-categories.alignright{margin-right:2em}.wp-block-columns{display:grid;grid-auto-flow:dense}.wp-block-columns.has-2-columns{grid-auto-columns:50%}.wp-block-columns.has-3-columns{grid-auto-columns:33.33333%}.wp-block-columns.has-4-columns{grid-auto-columns:25%}.wp-block-columns.has-5-columns{grid-auto-columns:20%}.wp-block-columns.has-6-columns{grid-auto-columns:16.66667%}.wp-block-columns .layout-column-1{grid-column:1}.wp-block-columns .layout-column-2{grid-column:2}.wp-block-columns .layout-column-3{grid-column:3}.wp-block-columns .layout-column-4{grid-column:4}.wp-block-columns .layout-column-5{grid-column:5}.wp-block-columns .layout-column-6{grid-column:6}.wp-block-cover-image{position:relative;background-size:cover;background-position:50%;min-height:430px;width:100%;margin:0 0 1.5em;display:flex;justify-content:center;align-items:center}.wp-block-cover-image.has-left-content{justify-content:flex-start}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover-image.has-left-content h2{margin-right:0;text-align:right}.wp-block-cover-image.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover-image.has-right-content h2{margin-left:0;text-align:left}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover-image h2{color:#fff;font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:610px;padding:14px;text-align:center}.wp-block-cover-image .wp-block-cover-image-text a,.wp-block-cover-image .wp-block-cover-image-text a:active,.wp-block-cover-image .wp-block-cover-image-text a:focus,.wp-block-cover-image .wp-block-cover-image-text a:hover,.wp-block-cover-image h2 a,.wp-block-cover-image h2 a:active,.wp-block-cover-image h2 a:focus,.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image.has-parallax{background-attachment:fixed}.wp-block-cover-image.has-background-dim:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.5)}.wp-block-cover-image.has-background-dim.has-background-dim-10:before{background-color:rgba(0,0,0,.1)}.wp-block-cover-image.has-background-dim.has-background-dim-20:before{background-color:rgba(0,0,0,.2)}.wp-block-cover-image.has-background-dim.has-background-dim-30:before{background-color:rgba(0,0,0,.3)}.wp-block-cover-image.has-background-dim.has-background-dim-40:before{background-color:rgba(0,0,0,.4)}.wp-block-cover-image.has-background-dim.has-background-dim-50:before{background-color:rgba(0,0,0,.5)}.wp-block-cover-image.has-background-dim.has-background-dim-60:before{background-color:rgba(0,0,0,.6)}.wp-block-cover-image.has-background-dim.has-background-dim-70:before{background-color:rgba(0,0,0,.7)}.wp-block-cover-image.has-background-dim.has-background-dim-80:before{background-color:rgba(0,0,0,.8)}.wp-block-cover-image.has-background-dim.has-background-dim-90:before{background-color:rgba(0,0,0,.9)}.wp-block-cover-image.has-background-dim.has-background-dim-100:before{background-color:#000}.wp-block-cover-image.components-placeholder{height:inherit}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,[data-align=left] .wp-block-cover-image,[data-align=right] .wp-block-cover-image{max-width:305px;width:100%}p.is-small-text{font-size:14px}p.is-regular-text{font-size:16px}p.is-large-text{font-size:36px}p.is-larger-text{font-size:48px}p.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em 0 0 .1em;text-transform:uppercase;font-style:normal}p.has-background{padding:20px 30px}.wp-block-latest-posts.alignleft{margin-left:2em}.wp-block-latest-posts.alignright{margin-right:2em}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-latest-posts.is-grid li{margin:0 0 16px 16px;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - 16px)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 16px)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 16px)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-latest-posts__post-date{display:block;color:#6c7781;font-size:13px}.wp-block-pullquote{border-top:4px solid #555d66;border-bottom:4px solid #555d66;color:#40464d;padding:3em 0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:400px}.wp-block-pullquote.alignleft>p,.wp-block-pullquote.alignright>p{font-size:20px}.wp-block-pullquote>p{font-size:24px;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{color:#40464d;position:relative;text-transform:uppercase;font-size:13px}.wp-block-separator{border:none;border-bottom:2px solid #8f98a1;max-width:100px;margin:1.65em auto}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table{overflow-x:auto;display:block;border-collapse:collapse;width:100%}.wp-block-table tbody{width:100%;display:table;min-width:240px}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid currentColor}.wp-block-table.has-fixed-layout tbody{table-layout:fixed}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{box-sizing:border-box;margin:0 16px;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-right:0}.wp-block-text-columns .wp-block-column:last-child{margin-left:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}.wp-block-video{margin:0}.wp-block-video figcaption{margin-top:.5em;color:#6c7781;text-align:center;font-size:13px}.wp-block-video.aligncenter{text-align:center}.editor-block-list__layout .shared-block-edit-panel{align-items:center;background:#f8f9f9;color:#555d66;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;position:relative;top:14px;margin:0 -28px;padding:10px 28px}.editor-block-list__layout .editor-block-list__layout .shared-block-edit-panel{margin:0 -14px;padding:10px 14px}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__spinner{margin:0 5px}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__info{margin-left:auto}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__label{margin-left:10px;white-space:nowrap;font-weight:600}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__title{flex:1 1 100%;font-size:14px;height:30px;margin:5px 0 10px}.editor-block-list__layout .shared-block-edit-panel .components-button.shared-block-edit-panel__button{margin:0 0 0 5px}@media (min-width:960px){.editor-block-list__layout .shared-block-edit-panel{flex-wrap:nowrap}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__title{margin:0}.editor-block-list__layout .shared-block-edit-panel .components-button.shared-block-edit-panel__button{margin:0 5px 0 0}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.editor-block-list__layout .shared-block-indicator{background:#fff;border-right:1px dashed #e2e4e7;color:#555d66;border-top:1px dashed #e2e4e7;bottom:-14px;height:30px;padding:5px;position:absolute;width:30px;left:-28px}.editor-block-list__layout .editor-block-list__layout .shared-block-indicator{left:-14px}
build/core-blocks/style.css CHANGED
@@ -1 +1 @@
1
- .wp-block-embed figcaption{margin-top:.5em;color:#6c7781;text-align:center;font-size:13px}.editor-block-list__block[data-type="core/embed"][data-align=left] .editor-block-list__block-edit,.editor-block-list__block[data-type="core/embed"][data-align=right] .editor-block-list__block-edit,.wp-block-embed.alignleft,.wp-block-embed.alignright{max-width:305px;width:100%}p.is-small-text{font-size:14px}p.is-regular-text{font-size:16px}p.is-large-text{font-size:36px}p.is-larger-text{font-size:48px}p.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em .1em 0 0;text-transform:uppercase;font-style:normal}p.has-background{padding:20px 30px}.has-pale-pink-background-color{background-color:#f78da7}.has-vivid-red-background-color{background-color:#cf2e2e}.has-luminous-vivid-orange-background-color{background-color:#ff6900}.has-luminous-vivid-amber-background-color{background-color:#fcb900}.has-light-green-cyan-background-color{background-color:#7bdcb5}.has-vivid-green-cyan-background-color{background-color:#00d084}.has-pale-cyan-blue-background-color{background-color:#8ed1fc}.has-vivid-cyan-blue-background-color{background-color:#0693e3}.has-very-light-gray-background-color{background-color:#eee}.has-cyan-bluish-gray-background-color{background-color:#abb8c3}.has-very-dark-gray-background-color{background-color:#313131}.has-pale-pink-color{color:#f78da7}.has-vivid-red-color{color:#cf2e2e}.has-luminous-vivid-orange-color{color:#ff6900}.has-luminous-vivid-amber-color{color:#fcb900}.has-light-green-cyan-color{color:#7bdcb5}.has-vivid-green-cyan-color{color:#00d084}.has-pale-cyan-blue-color{color:#8ed1fc}.has-vivid-cyan-blue-color{color:#0693e3}.has-very-light-gray-color{color:#eee}.has-cyan-bluish-gray-color{color:#abb8c3}.has-very-dark-gray-color{color:#313131}.wp-block-quote cite,.wp-block-quote footer{margin-top:1em;position:relative;font-style:normal}.wp-block-quote.is-large{margin:0 0 16px;padding:0 1em}.wp-block-quote.is-large p{font-size:24px;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer{font-size:19px;text-align:right}.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0 -8px}.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:8px;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative}.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%;display:flex;align-items:flex-end}.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto}.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{padding:40px 10px 5px;color:#fff;text-align:center;font-size:13px;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 60%,transparent);position:absolute;width:100%;max-height:100%;overflow:auto}.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{flex:1;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.wp-block-gallery.is-cropped .blocks-gallery-image _:-ms-lang(x),.wp-block-gallery.is-cropped .blocks-gallery-image figure,.wp-block-gallery.is-cropped .blocks-gallery-item _:-ms-lang(x),.wp-block-gallery.is-cropped .blocks-gallery-item figure{height:auto;width:auto}.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{width:calc(100% / 2 - 16px)}.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:calc(100% / 1 - 16px)}@media (min-width:600px){.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc(100% / 3 - 16px)}.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc(100% / 4 - 16px)}.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc(100% / 5 - 16px)}.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc(100% / 6 - 16px)}.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc(100% / 7 - 16px)}.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc(100% / 8 - 16px)}}.wp-block-gallery.alignleft,.wp-block-gallery.alignright,[data-align=left] .wp-block-gallery,[data-align=right] .wp-block-gallery{max-width:305px;width:100%}.wp-block-audio figcaption{margin-top:.5em;color:#6c7781;text-align:center;font-size:13px}.wp-block-button{margin-bottom:1.5em}.wp-block-button .wp-block-button__link{border:none;border-radius:23px;box-shadow:none;cursor:pointer;display:inline-block;font-size:18px;line-height:24px;margin:0;padding:11px 24px;text-align:center;text-decoration:none;white-space:normal;word-break:break-all}.wp-block-button.aligncenter{text-align:center}.wp-block-button.alignright{text-align:right}.wp-block-button__link:not(.has-background),.wp-block-button__link:not(.has-background):active,.wp-block-button__link:not(.has-background):focus,.wp-block-button__link:not(.has-background):hover{background-color:#32373c}.wp-block-button__link:not(.has-text-color),.wp-block-button__link:not(.has-text-color):active,.wp-block-button__link:not(.has-text-color):focus,.wp-block-button__link:not(.has-text-color):hover{color:#fff}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-columns{display:grid;grid-auto-flow:dense}.wp-block-columns.has-2-columns{grid-auto-columns:50%}.wp-block-columns.has-3-columns{grid-auto-columns:33.33333%}.wp-block-columns.has-4-columns{grid-auto-columns:25%}.wp-block-columns.has-5-columns{grid-auto-columns:20%}.wp-block-columns.has-6-columns{grid-auto-columns:16.66667%}.wp-block-columns .layout-column-1{grid-column:1}.wp-block-columns .layout-column-2{grid-column:2}.wp-block-columns .layout-column-3{grid-column:3}.wp-block-columns .layout-column-4{grid-column:4}.wp-block-columns .layout-column-5{grid-column:5}.wp-block-columns .layout-column-6{grid-column:6}.wp-block-cover-image{position:relative;background-size:cover;background-position:50%;min-height:430px;width:100%;margin:0 0 1.5em;display:flex;justify-content:center;align-items:center}.wp-block-cover-image.has-left-content{justify-content:flex-start}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover-image.has-left-content h2{margin-left:0;text-align:left}.wp-block-cover-image.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover-image.has-right-content h2{margin-right:0;text-align:right}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover-image h2{color:#fff;font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:610px;padding:14px;text-align:center}.wp-block-cover-image .wp-block-cover-image-text a,.wp-block-cover-image .wp-block-cover-image-text a:active,.wp-block-cover-image .wp-block-cover-image-text a:focus,.wp-block-cover-image .wp-block-cover-image-text a:hover,.wp-block-cover-image h2 a,.wp-block-cover-image h2 a:active,.wp-block-cover-image h2 a:focus,.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image.has-parallax{background-attachment:fixed}.wp-block-cover-image.has-background-dim:before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.5)}.wp-block-cover-image.has-background-dim.has-background-dim-10:before{background-color:rgba(0,0,0,.1)}.wp-block-cover-image.has-background-dim.has-background-dim-20:before{background-color:rgba(0,0,0,.2)}.wp-block-cover-image.has-background-dim.has-background-dim-30:before{background-color:rgba(0,0,0,.3)}.wp-block-cover-image.has-background-dim.has-background-dim-40:before{background-color:rgba(0,0,0,.4)}.wp-block-cover-image.has-background-dim.has-background-dim-50:before{background-color:rgba(0,0,0,.5)}.wp-block-cover-image.has-background-dim.has-background-dim-60:before{background-color:rgba(0,0,0,.6)}.wp-block-cover-image.has-background-dim.has-background-dim-70:before{background-color:rgba(0,0,0,.7)}.wp-block-cover-image.has-background-dim.has-background-dim-80:before{background-color:rgba(0,0,0,.8)}.wp-block-cover-image.has-background-dim.has-background-dim-90:before{background-color:rgba(0,0,0,.9)}.wp-block-cover-image.has-background-dim.has-background-dim-100:before{background-color:#000}.wp-block-cover-image.components-placeholder{height:inherit}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,[data-align=left] .wp-block-cover-image,[data-align=right] .wp-block-cover-image{max-width:305px;width:100%}.wp-block-image{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.wp-block-image figcaption{margin-top:.5em;color:#6c7781;text-align:center;font-size:13px}.wp-block-image.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}.wp-block-image.is-resized{width:-webkit-min-content;width:-moz-min-content;width:min-content;display:-ms-inline-grid;-ms-grid-columns:min-content}.wp-block-image.is-resized figcaption{-ms-grid-row:2}.wp-block-image.is-resized img{max-width:none}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-latest-posts.is-grid li{margin:0 16px 16px 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - 16px)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 16px)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 16px)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-latest-posts__post-date{display:block;color:#6c7781;font-size:13px}.wp-block-pullquote{border-top:4px solid #555d66;border-bottom:4px solid #555d66;color:#40464d;padding:3em 0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:400px}.wp-block-pullquote.alignleft>p,.wp-block-pullquote.alignright>p{font-size:20px}.wp-block-pullquote>p{font-size:24px;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{color:#40464d;position:relative;text-transform:uppercase;font-size:13px}.wp-block-separator{border:none;border-bottom:2px solid #8f98a1;max-width:100px;margin:1.65em auto}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table{overflow-x:auto;display:block;border-collapse:collapse;width:100%}.wp-block-table tbody{width:100%;display:table;min-width:240px}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid currentColor}.wp-block-table.has-fixed-layout tbody{table-layout:fixed}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{box-sizing:border-box;margin:0 16px;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-left:0}.wp-block-text-columns .wp-block-column:last-child{margin-right:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}.wp-block-video{margin:0}.wp-block-video figcaption{margin-top:.5em;color:#6c7781;text-align:center;font-size:13px}.wp-block-video.aligncenter{text-align:center}.editor-block-list__layout .shared-block-edit-panel{align-items:center;background:#f8f9f9;color:#555d66;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;position:relative;top:14px;margin:0 -28px;padding:10px 28px}.editor-block-list__layout .editor-block-list__layout .shared-block-edit-panel{margin:0 -14px;padding:10px 14px}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__spinner{margin:0 5px}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__info{margin-right:auto}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__label{margin-right:10px;white-space:nowrap;font-weight:600}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__title{flex:1 1 100%;font-size:14px;height:30px;margin:5px 0 10px}.editor-block-list__layout .shared-block-edit-panel .components-button.shared-block-edit-panel__button{margin:0 5px 0 0}@media (min-width:960px){.editor-block-list__layout .shared-block-edit-panel{flex-wrap:nowrap}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__title{margin:0}.editor-block-list__layout .shared-block-edit-panel .components-button.shared-block-edit-panel__button{margin:0 0 0 5px}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.editor-block-list__layout .shared-block-indicator{background:#fff;border-left:1px dashed #e2e4e7;color:#555d66;border-top:1px dashed #e2e4e7;bottom:-14px;height:30px;padding:5px;position:absolute;width:30px;right:-28px}.editor-block-list__layout .editor-block-list__layout .shared-block-indicator{right:-14px}
1
+ .wp-block-embed figcaption{margin-top:.5em;color:#6c7781;text-align:center;font-size:13px}.editor-block-list__block[data-type="core/embed"][data-align=left] .editor-block-list__block-edit,.editor-block-list__block[data-type="core/embed"][data-align=right] .editor-block-list__block-edit,.wp-block-embed.alignleft,.wp-block-embed.alignright{max-width:305px;width:100%}.has-pale-pink-background-color{background-color:#f78da7}.has-vivid-red-background-color{background-color:#cf2e2e}.has-luminous-vivid-orange-background-color{background-color:#ff6900}.has-luminous-vivid-amber-background-color{background-color:#fcb900}.has-light-green-cyan-background-color{background-color:#7bdcb5}.has-vivid-green-cyan-background-color{background-color:#00d084}.has-pale-cyan-blue-background-color{background-color:#8ed1fc}.has-vivid-cyan-blue-background-color{background-color:#0693e3}.has-very-light-gray-background-color{background-color:#eee}.has-cyan-bluish-gray-background-color{background-color:#abb8c3}.has-very-dark-gray-background-color{background-color:#313131}.has-pale-pink-color{color:#f78da7}.has-vivid-red-color{color:#cf2e2e}.has-luminous-vivid-orange-color{color:#ff6900}.has-luminous-vivid-amber-color{color:#fcb900}.has-light-green-cyan-color{color:#7bdcb5}.has-vivid-green-cyan-color{color:#00d084}.has-pale-cyan-blue-color{color:#8ed1fc}.has-vivid-cyan-blue-color{color:#0693e3}.has-very-light-gray-color{color:#eee}.has-cyan-bluish-gray-color{color:#abb8c3}.has-very-dark-gray-color{color:#313131}.wp-block-image{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.wp-block-image figcaption{margin-top:.5em;color:#6c7781;text-align:center;font-size:13px}.wp-block-image.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}.wp-block-image.is-resized{width:-webkit-min-content;width:-moz-min-content;width:min-content;display:-ms-inline-grid;-ms-grid-columns:min-content}.wp-block-image.is-resized figcaption{-ms-grid-row:2}.wp-block-image.is-resized img{max-width:none}.wp-block-quote cite,.wp-block-quote footer{margin-top:1em;position:relative;font-style:normal}.wp-block-quote.is-large{margin:0 0 16px;padding:0 1em}.wp-block-quote.is-large p{font-size:24px;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer{font-size:19px;text-align:right}.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0 -8px}.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:8px;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative}.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%;display:flex;align-items:flex-end}.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto}.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{padding:40px 10px 5px;color:#fff;text-align:center;font-size:13px;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 60%,transparent);position:absolute;width:100%;max-height:100%;overflow:auto}.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{flex:1;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.wp-block-gallery.is-cropped .blocks-gallery-image _:-ms-lang(x),.wp-block-gallery.is-cropped .blocks-gallery-image figure,.wp-block-gallery.is-cropped .blocks-gallery-item _:-ms-lang(x),.wp-block-gallery.is-cropped .blocks-gallery-item figure{height:auto;width:auto}.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{width:calc(100% / 2 - 16px)}.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:calc(100% / 1 - 16px)}@media (min-width:600px){.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc(100% / 3 - 16px)}.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc(100% / 4 - 16px)}.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc(100% / 5 - 16px)}.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc(100% / 6 - 16px)}.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc(100% / 7 - 16px)}.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc(100% / 8 - 16px)}}.wp-block-gallery.alignleft,.wp-block-gallery.alignright,[data-align=left] .wp-block-gallery,[data-align=right] .wp-block-gallery{max-width:305px;width:100%}.wp-block-audio figcaption{margin-top:.5em;color:#6c7781;text-align:center;font-size:13px}.wp-block-button{margin-bottom:1.5em}.wp-block-button .wp-block-button__link{border:none;border-radius:23px;box-shadow:none;cursor:pointer;display:inline-block;font-size:18px;line-height:24px;margin:0;padding:11px 24px;text-align:center;text-decoration:none;white-space:normal;word-break:break-all}.wp-block-button.aligncenter{text-align:center}.wp-block-button.alignright{text-align:right}.wp-block-button__link:not(.has-background),.wp-block-button__link:not(.has-background):active,.wp-block-button__link:not(.has-background):focus,.wp-block-button__link:not(.has-background):hover{background-color:#32373c}.wp-block-button__link:not(.has-text-color),.wp-block-button__link:not(.has-text-color):active,.wp-block-button__link:not(.has-text-color):focus,.wp-block-button__link:not(.has-text-color):hover{color:#fff}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-columns{display:grid;grid-auto-flow:dense}.wp-block-columns.has-2-columns{grid-auto-columns:50%}.wp-block-columns.has-3-columns{grid-auto-columns:33.33333%}.wp-block-columns.has-4-columns{grid-auto-columns:25%}.wp-block-columns.has-5-columns{grid-auto-columns:20%}.wp-block-columns.has-6-columns{grid-auto-columns:16.66667%}.wp-block-columns .layout-column-1{grid-column:1}.wp-block-columns .layout-column-2{grid-column:2}.wp-block-columns .layout-column-3{grid-column:3}.wp-block-columns .layout-column-4{grid-column:4}.wp-block-columns .layout-column-5{grid-column:5}.wp-block-columns .layout-column-6{grid-column:6}.wp-block-cover-image{position:relative;background-size:cover;background-position:50%;min-height:430px;width:100%;margin:0 0 1.5em;display:flex;justify-content:center;align-items:center}.wp-block-cover-image.has-left-content{justify-content:flex-start}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover-image.has-left-content h2{margin-left:0;text-align:left}.wp-block-cover-image.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover-image.has-right-content h2{margin-right:0;text-align:right}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover-image h2{color:#fff;font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:610px;padding:14px;text-align:center}.wp-block-cover-image .wp-block-cover-image-text a,.wp-block-cover-image .wp-block-cover-image-text a:active,.wp-block-cover-image .wp-block-cover-image-text a:focus,.wp-block-cover-image .wp-block-cover-image-text a:hover,.wp-block-cover-image h2 a,.wp-block-cover-image h2 a:active,.wp-block-cover-image h2 a:focus,.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image.has-parallax{background-attachment:fixed}.wp-block-cover-image.has-background-dim:before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.5)}.wp-block-cover-image.has-background-dim.has-background-dim-10:before{background-color:rgba(0,0,0,.1)}.wp-block-cover-image.has-background-dim.has-background-dim-20:before{background-color:rgba(0,0,0,.2)}.wp-block-cover-image.has-background-dim.has-background-dim-30:before{background-color:rgba(0,0,0,.3)}.wp-block-cover-image.has-background-dim.has-background-dim-40:before{background-color:rgba(0,0,0,.4)}.wp-block-cover-image.has-background-dim.has-background-dim-50:before{background-color:rgba(0,0,0,.5)}.wp-block-cover-image.has-background-dim.has-background-dim-60:before{background-color:rgba(0,0,0,.6)}.wp-block-cover-image.has-background-dim.has-background-dim-70:before{background-color:rgba(0,0,0,.7)}.wp-block-cover-image.has-background-dim.has-background-dim-80:before{background-color:rgba(0,0,0,.8)}.wp-block-cover-image.has-background-dim.has-background-dim-90:before{background-color:rgba(0,0,0,.9)}.wp-block-cover-image.has-background-dim.has-background-dim-100:before{background-color:#000}.wp-block-cover-image.components-placeholder{height:inherit}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,[data-align=left] .wp-block-cover-image,[data-align=right] .wp-block-cover-image{max-width:305px;width:100%}p.is-small-text{font-size:14px}p.is-regular-text{font-size:16px}p.is-large-text{font-size:36px}p.is-larger-text{font-size:48px}p.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em .1em 0 0;text-transform:uppercase;font-style:normal}p.has-background{padding:20px 30px}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-latest-posts.is-grid li{margin:0 16px 16px 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - 16px)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 16px)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 16px)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-latest-posts__post-date{display:block;color:#6c7781;font-size:13px}.wp-block-pullquote{border-top:4px solid #555d66;border-bottom:4px solid #555d66;color:#40464d;padding:3em 0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:400px}.wp-block-pullquote.alignleft>p,.wp-block-pullquote.alignright>p{font-size:20px}.wp-block-pullquote>p{font-size:24px;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{color:#40464d;position:relative;text-transform:uppercase;font-size:13px}.wp-block-separator{border:none;border-bottom:2px solid #8f98a1;max-width:100px;margin:1.65em auto}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table{overflow-x:auto;display:block;border-collapse:collapse;width:100%}.wp-block-table tbody{width:100%;display:table;min-width:240px}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid currentColor}.wp-block-table.has-fixed-layout tbody{table-layout:fixed}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{box-sizing:border-box;margin:0 16px;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-left:0}.wp-block-text-columns .wp-block-column:last-child{margin-right:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}.wp-block-video{margin:0}.wp-block-video figcaption{margin-top:.5em;color:#6c7781;text-align:center;font-size:13px}.wp-block-video.aligncenter{text-align:center}.editor-block-list__layout .shared-block-edit-panel{align-items:center;background:#f8f9f9;color:#555d66;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;position:relative;top:14px;margin:0 -28px;padding:10px 28px}.editor-block-list__layout .editor-block-list__layout .shared-block-edit-panel{margin:0 -14px;padding:10px 14px}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__spinner{margin:0 5px}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__info{margin-right:auto}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__label{margin-right:10px;white-space:nowrap;font-weight:600}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__title{flex:1 1 100%;font-size:14px;height:30px;margin:5px 0 10px}.editor-block-list__layout .shared-block-edit-panel .components-button.shared-block-edit-panel__button{margin:0 5px 0 0}@media (min-width:960px){.editor-block-list__layout .shared-block-edit-panel{flex-wrap:nowrap}.editor-block-list__layout .shared-block-edit-panel .shared-block-edit-panel__title{margin:0}.editor-block-list__layout .shared-block-edit-panel .components-button.shared-block-edit-panel__button{margin:0 0 0 5px}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.editor-block-list__layout .shared-block-indicator{background:#fff;border-left:1px dashed #e2e4e7;color:#555d66;border-top:1px dashed #e2e4e7;bottom:-14px;height:30px;padding:5px;position:absolute;width:30px;right:-28px}.editor-block-list__layout .editor-block-list__layout .shared-block-indicator{right:-14px}
build/editor/index.js CHANGED
@@ -9,7 +9,7 @@ this.wp=this.wp||{},this.wp.editor=function(e){var t={};function n(r){if(t[r])re
9
  Licensed under the MIT License (MIT), see
10
  http://jedwatson.github.io/classnames
11
  */
12
- !function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r))e.push(o.apply(null,r));else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}void 0!==e&&e.exports?e.exports=o:void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){var r=n(48)("wks"),o=n(38),i=n(18).Symbol,s="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=s&&i[e]||(s?i:o)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(63),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,i.default)(e)}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(84),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(18),o=n(15),i=n(34),s=n(28),a=function(e,t,n){var c,l,u,d=e&a.F,p=e&a.G,f=e&a.S,h=e&a.P,m=e&a.B,v=e&a.W,b=p?o:o[t]||(o[t]={}),g=b.prototype,y=p?r:f?r[t]:(r[t]||{}).prototype;for(c in p&&(n=t),n)(l=!d&&y&&void 0!==y[c])&&c in b||(u=l?y[c]:n[c],b[c]=p&&"function"!=typeof y[c]?n[c]:m&&l?i(u,r):v&&y[c]==u?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(u):h&&"function"==typeof u?i(Function.call,u):u,h&&((b.virtual||(b.virtual={}))[c]=u,e&a.R&&g&&!g[c]&&s(g,c,u)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,e.exports=a},function(e,t,n){var r=n(24),o=n(65),i=n(49),s=Object.defineProperty;t.f=n(23)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(31)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(26);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){!function(){e.exports=this.wp.utils}()},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(22),o=n(33);e.exports=n(23)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){var r=n(58),o=n(43);e.exports=function(e){return r(o(e))}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(55);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.wp.dom}()},function(e,t,n){var r=n(64),o=n(46);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(43);e.exports=function(e){return Object(r(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(48)("keys"),o=n(38);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){"use strict";var r=n(92)(!0);n(70)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(22).f,o=n(27),i=n(17)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(18),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){var r=n(26);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(26),o=n(18).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t){e.exports=!0},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(135)),o=i(n(95));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return function(e,t){if(Array.isArray(e))return e;if((0,r.default)(Object(e)))return function(e,t){var n=[],r=!0,i=!1,s=void 0;try{for(var a,c=(0,o.default)(e);!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{!r&&c.return&&c.return()}finally{if(i)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){var r=n(41),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(24),o=n(85),i=n(46),s=n(44)("IE_PROTO"),a=function(){},c=function(){var e,t=n(50)("iframe"),r=i.length;for(t.style.display="none",n(75).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=r(e),n=new a,a.prototype=null,n[s]=e):n=c(),void 0===t?n:o(n,t)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},,function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(40);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},,function(e,t){!function(){e.exports=this.wp.apiRequest}()},function(e,t,n){n(105);for(var r=n(18),o=n(28),i=n(32),s=n(17)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var l=a[c],u=r[l],d=u&&u.prototype;d&&!d[s]&&o(d,s,l),i[l]=i.Array}},,function(e,t,n){e.exports={default:n(108),__esModule:!0}},function(e,t,n){var r=n(27),o=n(30),i=n(77)(!1),s=n(44)("IE_PROTO");e.exports=function(e,t){var n,a=o(e),c=0,l=[];for(n in a)n!=s&&r(a,n)&&l.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){e.exports=!n(23)&&!n(31)(function(){return 7!=Object.defineProperty(n(50)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(18),o=n(15),i=n(51),s=n(67),a=n(22).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},function(e,t,n){t.f=n(17)},function(e,t,n){var r=n(40),o=n(17)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){var r=n(68),o=n(17)("iterator"),i=n(32);e.exports=n(15).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){"use strict";var r=n(51),o=n(21),i=n(72),s=n(28),a=n(27),c=n(32),l=n(91),u=n(47),d=n(73),p=n(17)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,m,v,b,g){l(n,t,m);var y,k,_,O=function(e){if(!f&&e in j)return j[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",S="values"==v,E=!1,j=e.prototype,C=j[p]||j["@@iterator"]||v&&j[v],T=!f&&C||O(v),P=v?S?O("entries"):T:void 0,B="Array"==t&&j.entries||C;if(B&&(_=d(B.call(new e)))!==Object.prototype&&_.next&&(u(_,w,!0),r||a(_,p)||s(_,p,h)),S&&C&&"values"!==C.name&&(E=!0,T=function(){return C.call(this)}),r&&!g||!f&&!E&&j[p]||s(j,p,T),c[t]=T,c[w]=h,v)if(y={values:S?T:O("values"),keys:b?T:O("keys"),entries:P},g)for(k in y)k in j||i(j,k,y[k]);else o(o.P+o.F*(f||E),t,y);return y}},function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(96)),o=s(n(93)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function s(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===i(r.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":i(e)}},function(e,t,n){e.exports=n(28)},function(e,t,n){var r=n(27),o=n(39),i=n(44)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){e.exports={default:n(90),__esModule:!0}},function(e,t,n){var r=n(18).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(41),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(30),o=n(53),i=n(76);e.exports=function(e){return function(t,n,s){var a,c=r(t),l=o(c.length),u=i(s,l);if(e&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(64),o=n(46).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){e.exports={default:n(165),__esModule:!0}},function(e,t,n){"use strict";var r,o;function i(e){return[e]}function s(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var n,c;function l(){n=o?new WeakMap:s()}function u(){var n,r,o,i,s,l=arguments.length;for(i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];for(s=t.apply(null,i),(n=c(s)).isUniqueByDependants||(n.lastDependants&&!a(s,n.lastDependants,0)&&n.clear(),n.lastDependants=s),r=n.head;r;){if(a(r.args,i,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,i)},i[0]=null,r.args=i,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=i),c=o?function(e){var t,o,i,a,c,l=n,u=!0;for(t=0;t<e.length;t++){if(o=e[t],!(c=o)||"object"!=typeof c){u=!1;break}l.has(o)?l=l.get(o):(i=new WeakMap,l.set(o,i),l=i)}return l.has(r)||((a=s()).isUniqueByDependants=u,l.set(r,a)),l.get(r)}:function(){return n},u.getDependants=t,u.clear=l,l(),u}},function(e,t,n){var r=n(42),o=n(33),i=n(30),s=n(49),a=n(27),c=n(65),l=Object.getOwnPropertyDescriptor;t.f=n(23)?l:function(e,t){if(e=i(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(a(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(32),o=n(17)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){var r=n(24);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){e.exports={default:n(103),__esModule:!0}},function(e,t,n){var r=n(22),o=n(24),i=n(37);e.exports=n(23)?Object.defineProperties:function(e,t){o(e);for(var n,s=i(t),a=s.length,c=0;a>c;)r.f(e,n=s[c++],t[n]);return e}},function(e,t){},function(e,t,n){var r=n(17)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],s=i[r]();s.next=function(){return{done:n=!0}},i[r]=function(){return s},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(37),o=n(57),i=n(42),s=n(39),a=n(58),c=Object.assign;e.exports=!c||n(31)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=s(e),c=arguments.length,l=1,u=o.f,d=i.f;c>l;)for(var p,f=a(arguments[l++]),h=u?r(f).concat(u(f)):r(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:c},function(e,t,n){var r=n(21);r(r.S+r.F,"Object",{assign:n(88)})},function(e,t,n){n(89),e.exports=n(15).Object.assign},function(e,t,n){"use strict";var r=n(54),o=n(33),i=n(47),s={};n(28)(s,n(17)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(s,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(41),o=n(43);e.exports=function(e){return function(t,n){var i,s,a=String(o(t)),c=r(n),l=a.length;return c<0||c>=l?e?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):i:e?a.slice(c,c+2):s-56320+(i-55296<<10)+65536}}},function(e,t,n){e.exports={default:n(120),__esModule:!0}},,function(e,t,n){e.exports={default:n(129),__esModule:!0}},function(e,t,n){e.exports={default:n(121),__esModule:!0}},function(e,t,n){var r=n(38)("meta"),o=n(26),i=n(27),s=n(22).f,a=0,c=Object.isExtensible||function(){return!0},l=!n(31)(function(){return c(Object.preventExtensions({}))}),u=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return l&&d.NEED&&c(e)&&!i(e,r)&&u(e),e}}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){!function(){e.exports=this.wp.deprecated}()},,,function(e,t,n){var r=n(21);r(r.S+r.F*!n(23),"Object",{defineProperty:n(22).f})},function(e,t,n){n(102);var r=n(15).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";var r=n(104),o=n(98),i=n(32),s=n(30);e.exports=n(70)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r=n(22),o=n(33);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){"use strict";var r=n(34),o=n(21),i=n(39),s=n(83),a=n(82),c=n(53),l=n(106),u=n(69);o(o.S+o.F*!n(87)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,d,p=i(e),f="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m,b=0,g=u(p);if(v&&(m=r(m,h>2?arguments[2]:void 0,2)),void 0==g||f==Array&&a(g))for(n=new f(t=c(p.length));t>b;b++)l(n,b,v?m(p[b],b):p[b]);else for(d=g.call(p),n=new f;!(o=d.next()).done;b++)l(n,b,v?s(d,m,[o.value,b],!0):o.value);return n.length=b,n}})},function(e,t,n){n(45),n(107),e.exports=n(15).Array.from},function(e,t,n){e.exports={default:n(114),__esModule:!0}},function(e,t,n){var r=n(40);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(21),o=n(15),i=n(31);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",s)}},function(e,t,n){"use strict";var r=n(55);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}(e)}},function(e,t,n){var r=n(21);r(r.S,"Object",{create:n(54)})},function(e,t,n){n(113);var r=n(15).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){n(66)("observable")},function(e,t,n){n(66)("asyncIterator")},function(e,t,n){var r=n(30),o=n(78).f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return s.slice()}}(e):o(r(e))}},function(e,t,n){var r=n(37),o=n(57),i=n(42);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var s,a=n(e),c=i.f,l=0;a.length>l;)c.call(e,s=a[l++])&&t.push(s);return t}},function(e,t,n){"use strict";var r=n(18),o=n(27),i=n(23),s=n(21),a=n(72),c=n(97).KEY,l=n(31),u=n(48),d=n(47),p=n(38),f=n(17),h=n(67),m=n(66),v=n(118),b=n(110),g=n(24),y=n(26),k=n(30),_=n(49),O=n(33),w=n(54),S=n(117),E=n(81),j=n(22),C=n(37),T=E.f,P=j.f,B=S.f,x=r.Symbol,I=r.JSON,D=I&&I.stringify,A=f("_hidden"),N=f("toPrimitive"),L={}.propertyIsEnumerable,R=u("symbol-registry"),U=u("symbols"),M=u("op-symbols"),F=Object.prototype,H="function"==typeof x,V=r.QObject,K=!V||!V.prototype||!V.prototype.findChild,W=i&&l(function(){return 7!=w(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=T(F,t);r&&delete F[t],P(e,t,n),r&&e!==F&&P(F,t,r)}:P,z=function(e){var t=U[e]=w(x.prototype);return t._k=e,t},q=H&&"symbol"==typeof x.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof x},G=function(e,t,n){return e===F&&G(M,t,n),g(e),t=_(t,!0),g(n),o(U,t)?(n.enumerable?(o(e,A)&&e[A][t]&&(e[A][t]=!1),n=w(n,{enumerable:O(0,!1)})):(o(e,A)||P(e,A,O(1,{})),e[A][t]=!0),W(e,t,n)):P(e,t,n)},Y=function(e,t){g(e);for(var n,r=v(t=k(t)),o=0,i=r.length;i>o;)G(e,n=r[o++],t[n]);return e},X=function(e){var t=L.call(this,e=_(e,!0));return!(this===F&&o(U,e)&&!o(M,e))&&(!(t||!o(this,e)||!o(U,e)||o(this,A)&&this[A][e])||t)},$=function(e,t){if(e=k(e),t=_(t,!0),e!==F||!o(U,t)||o(M,t)){var n=T(e,t);return!n||!o(U,t)||o(e,A)&&e[A][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=B(k(e)),r=[],i=0;n.length>i;)o(U,t=n[i++])||t==A||t==c||r.push(t);return r},Q=function(e){for(var t,n=e===F,r=B(n?M:k(e)),i=[],s=0;r.length>s;)!o(U,t=r[s++])||n&&!o(F,t)||i.push(U[t]);return i};H||(a((x=function(){if(this instanceof x)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===F&&t.call(M,n),o(this,A)&&o(this[A],e)&&(this[A][e]=!1),W(this,e,O(1,n))};return i&&K&&W(F,e,{configurable:!0,set:t}),z(e)}).prototype,"toString",function(){return this._k}),E.f=$,j.f=G,n(78).f=S.f=J,n(42).f=X,n(57).f=Q,i&&!n(51)&&a(F,"propertyIsEnumerable",X,!0),h.f=function(e){return z(f(e))}),s(s.G+s.W+s.F*!H,{Symbol:x});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Z.length>ee;)f(Z[ee++]);for(var te=C(f.store),ne=0;te.length>ne;)m(te[ne++]);s(s.S+s.F*!H,"Symbol",{for:function(e){return o(R,e+="")?R[e]:R[e]=x(e)},keyFor:function(e){if(!q(e))throw TypeError(e+" is not a symbol!");for(var t in R)if(R[t]===e)return t},useSetter:function(){K=!0},useSimple:function(){K=!1}}),s(s.S+s.F*!H,"Object",{create:function(e,t){return void 0===t?w(e):Y(w(e),t)},defineProperty:G,defineProperties:Y,getOwnPropertyDescriptor:$,getOwnPropertyNames:J,getOwnPropertySymbols:Q}),I&&s(s.S+s.F*(!H||l(function(){var e=x();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(y(t)||void 0!==e)&&!q(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!q(t))return t}),r[1]=t,D.apply(I,r)}}),x.prototype[N]||n(28)(x.prototype,N,x.prototype.valueOf),d(x,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(e,t,n){n(119),n(86),n(116),n(115),e.exports=n(15).Symbol},function(e,t,n){n(45),n(61),e.exports=n(67).f("iterator")},function(e,t,n){var r=n(26),o=n(24),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(34)(Function.call,n(81).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var r=n(21);r(r.S,"Object",{setPrototypeOf:n(122).set})},function(e,t,n){n(123),e.exports=n(15).Object.setPrototypeOf},function(e,t,n){e.exports={default:n(124),__esModule:!0}},function(e,t,n){var r=n(39),o=n(73);n(111)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){n(126),e.exports=n(15).Object.getPrototypeOf},function(e,t,n){var r=n(24),o=n(69);e.exports=n(15).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){n(61),n(45),e.exports=n(128)},function(e,t,n){e.exports=function(e,t){var n,r,o,i=0;function s(){var t,s,a=r,c=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(s=0;s<c;s++)if(a.args[s]!==arguments[s]){a=a.next;continue e}return a!==r&&(a===o&&(o=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=r,a.prev=null,r.prev=a,r=a),a.val}a=a.next}for(t=new Array(c),s=0;s<c;s++)t[s]=arguments[s];return a={args:t,val:e.apply(null,t)},r?(r.prev=a,a.next=r):o=a,i===n?(o=o.prev).next=null:i++,r=a,a.val}return t&&t.maxSize&&(n=t.maxSize),s.clear=function(){r=null,o=null,i=0},s}},function(e,t){!function(){e.exports=this.wp.viewport}()},,function(e,t,n){var r=n(68),o=n(17)("iterator"),i=n(32);e.exports=n(15).isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||i.hasOwnProperty(r(t))}},function(e,t,n){n(61),n(45),e.exports=n(133)},function(e,t,n){e.exports={default:n(134),__esModule:!0}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.decode=t.parse=n(191),t.encode=t.stringify=n(190)},function(e,t,n){var r=n(24),o=n(26),i=n(112);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r,o,i,s=n(34),a=n(163),c=n(75),l=n(50),u=n(18),d=u.process,p=u.setImmediate,f=u.clearImmediate,h=u.MessageChannel,m=u.Dispatch,v=0,b={},g=function(){var e=+this;if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},y=function(e){g.call(e.data)};p&&f||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return b[++v]=function(){a("function"==typeof e?e:Function(e),t)},r(v),v},f=function(e){delete b[e]},"process"==n(40)(d)?r=function(e){d.nextTick(s(g,e,1))}:m&&m.now?r=function(e){m.now(s(g,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=y,r=s(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",y,!1)):r="onreadystatechange"in l("script")?function(e){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),g.call(e)}}:function(e){setTimeout(s(g,e,1),0)}),e.exports={set:p,clear:f}},function(e,t,n){var r=n(24),o=n(55),i=n(17)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||void 0==(n=r(s)[i])?t:o(n)}},function(e,t,n){var r=n(34),o=n(83),i=n(82),s=n(24),a=n(53),c=n(69),l={},u={};(t=e.exports=function(e,t,n,d,p){var f,h,m,v,b=p?function(){return e}:c(e),g=r(n,d,t?2:1),y=0;if("function"!=typeof b)throw TypeError(e+" is not iterable!");if(i(b)){for(f=a(e.length);f>y;y++)if((v=t?g(s(h=e[y])[0],h[1]):g(e[y]))===l||v===u)return v}else for(m=b.call(e);!(h=m.next()).done;)if((v=o(m,g,h.value,t))===l||v===u)return v}).BREAK=l,t.RETURN=u},function(e,t){!function(){e.exports=this.wp.blob}()},,function(e,t,n){e.exports={default:n(183),__esModule:!0}},,function(e,t,n){var r=n(28);e.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:r(e,o,t[o]);return e}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},,function(e,t,n){"use strict";var r=n(18),o=n(15),i=n(22),s=n(23),a=n(17)("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:r[e];s&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},,,function(e,t,n){"use strict";var r=n(193),o=n(192);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=y(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),d=["%","/","?",";","#"].concat(u),p=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(137);function y(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(a);l[0]=l[0].replace(/\\/g,"/");var y=e=l.join(a);if(y=y.trim(),!n&&1===e.split("#").length){var k=c.exec(y);if(k)return this.path=y,this.href=y,this.pathname=k[1],k[2]?(this.search=k[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=s.exec(y);if(_){var O=(_=_[0]).toLowerCase();this.protocol=O,y=y.substr(_.length)}if(n||_||y.match(/^\/\/[^@\/]+@[^@\/]+/)){var w="//"===y.substr(0,2);!w||_&&v[_]||(y=y.substr(2),this.slashes=!0)}if(!v[_]&&(w||_&&!b[_])){for(var S,E,j=-1,C=0;C<p.length;C++){-1!==(T=y.indexOf(p[C]))&&(-1===j||T<j)&&(j=T)}-1!==(E=-1===j?y.lastIndexOf("@"):y.lastIndexOf("@",j))&&(S=y.slice(0,E),y=y.slice(E+1),this.auth=decodeURIComponent(S)),j=-1;for(C=0;C<d.length;C++){var T;-1!==(T=y.indexOf(d[C]))&&(-1===j||T<j)&&(j=T)}-1===j&&(j=y.length),this.host=y.slice(0,j),y=y.slice(j),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var B=this.hostname.split(/\./),x=(C=0,B.length);C<x;C++){var I=B[C];if(I&&!I.match(f)){for(var D="",A=0,N=I.length;A<N;A++)I.charCodeAt(A)>127?D+="x":D+=I[A];if(!D.match(f)){var L=B.slice(0,C),R=B.slice(C+1),U=I.match(h);U&&(L.push(U[1]),R.unshift(U[2])),R.length&&(y="/"+R.join(".")+y),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=r.toASCII(this.hostname));var M=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+M,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!m[O])for(C=0,x=u.length;C<x;C++){var H=u[C];if(-1!==y.indexOf(H)){var V=encodeURIComponent(H);V===H&&(V=escape(H)),y=y.split(H).join(V)}}var K=y.indexOf("#");-1!==K&&(this.hash=y.substr(K),y=y.slice(0,K));var W=y.indexOf("?");if(-1!==W?(this.search=y.substr(W),this.query=y.substr(W+1),t&&(this.query=g.parse(this.query)),y=y.slice(0,W)):t&&(this.search="",this.query={}),y&&(this.pathname=y),b[O]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){M=this.pathname||"";var z=this.search||"";this.path=M+z}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,s="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(s=g.stringify(this.query));var a=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),s=0;s<r.length;s++){var a=r[s];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),l=0;l<c.length;l++){var u=c[l];"protocol"!==u&&(n[u]=e[u])}return b[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!b[e.protocol]){for(var d=Object.keys(e),p=0;p<d.length;p++){var f=d[p];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",g=n.search||"";n.path=m+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),k=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=k||y||n.host&&e.pathname,O=_,w=n.pathname&&n.pathname.split("/")||[],S=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!b[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(""===w[0]?w[0]=n.host:w.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),_=_&&(""===h[0]||""===w[0])),k)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,w=h;else if(h.length)w||(w=[]),w.pop(),w=w.concat(h),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(S)n.hostname=n.host=w.shift(),(P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.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 E=w.slice(-1)[0],j=(n.host||e.host||w.length>1)&&("."===E||".."===E)||""===E,C=0,T=w.length;T>=0;T--)"."===(E=w[T])?w.splice(T,1):".."===E?(w.splice(T,1),C++):C&&(w.splice(T,1),C--);if(!_&&!O)for(;C--;C)w.unshift("..");!_||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),j&&"/"!==w.join("/").substr(-1)&&w.push("");var P,B=""===w[0]||w[0]&&"/"===w[0].charAt(0);S&&(n.hostname=n.host=B?"":w.length?w.shift():"",(P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift()));return(_=_||n.host&&w.length)&&!B&&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},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t,n){e.exports=n(343)},,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,function(e,t,n){"use strict";var r=n(21),o=n(112),i=n(139);r(r.S,"Promise",{try:function(e){var t=o.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){"use strict";var r=n(21),o=n(15),i=n(18),s=n(141),a=n(138);r(r.P+r.R,"Promise",{finally:function(e){var t=s(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return a(t,e()).then(function(){return n})}:e,n?function(n){return a(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){var r=n(18),o=n(140).set,i=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==n(40)(s);e.exports=function(){var e,t,n,l=function(){var r,o;for(c&&(r=s.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(c)n=function(){s.nextTick(l)};else if(!i||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var u=a.resolve();n=function(){u.then(l)}}else n=function(){o.call(r,l)};else{var d=!0,p=document.createTextNode("");new i(l).observe(p,{characterData:!0}),n=function(){p.data=d=!d}}return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){"use strict";var r,o,i,s,a=n(51),c=n(18),l=n(34),u=n(68),d=n(21),p=n(26),f=n(55),h=n(148),m=n(142),v=n(141),b=n(140).set,g=n(162)(),y=n(112),k=n(139),_=n(138),O=c.TypeError,w=c.process,S=c.Promise,E="process"==u(w),j=function(){},C=o=y.f,T=!!function(){try{var e=S.resolve(1),t=(e.constructor={})[n(17)("species")]=function(e){e(j,j)};return(E||"function"==typeof PromiseRejectionEvent)&&e.then(j)instanceof t}catch(e){}}(),P=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},B=function(e,t){if(!e._n){e._n=!0;var n=e._c;g(function(){for(var r=e._v,o=1==e._s,i=0,s=function(t){var n,i,s=o?t.ok:t.fail,a=t.resolve,c=t.reject,l=t.domain;try{s?(o||(2==e._h&&D(e),e._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&l.exit()),n===t.promise?c(O("Promise-chain cycle")):(i=P(n))?i.call(n,a,c):a(n)):c(r)}catch(e){c(e)}};n.length>i;)s(n[i++]);e._c=[],e._n=!1,t&&!e._h&&x(e)})}},x=function(e){b.call(c,function(){var t,n,r,o=e._v,i=I(e);if(i&&(t=k(function(){E?w.emit("unhandledRejection",o,e):(n=c.onunhandledrejection)?n({promise:e,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),e._h=E||I(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},I=function(e){return 1!==e._h&&0===(e._a||e._c).length},D=function(e){b.call(c,function(){var t;E?w.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})})},A=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),B(t,!0))},N=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw O("Promise can't be resolved itself");(t=P(e))?g(function(){var r={_w:n,_d:!1};try{t.call(e,l(N,r,1),l(A,r,1))}catch(e){A.call(r,e)}}):(n._v=e,n._s=1,B(n,!1))}catch(e){A.call({_w:n,_d:!1},e)}}};T||(S=function(e){h(this,S,"Promise","_h"),f(e),r.call(this);try{e(l(N,this,1),l(A,this,1))}catch(e){A.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(147)(S.prototype,{then:function(e,t){var n=C(v(this,S));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=E?w.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&B(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=l(N,e,1),this.reject=l(A,e,1)},y.f=C=function(e){return e===S||e===s?new i(e):o(e)}),d(d.G+d.W+d.F*!T,{Promise:S}),n(47)(S,"Promise"),n(150)("Promise"),s=n(15).Promise,d(d.S+d.F*!T,"Promise",{reject:function(e){var t=C(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(a||!T),"Promise",{resolve:function(e){return _(a&&this===s?S:this,e)}}),d(d.S+d.F*!(T&&n(87)(function(e){S.all(e).catch(j)})),"Promise",{all:function(e){var t=this,n=C(t),r=n.resolve,o=n.reject,i=k(function(){var n=[],i=0,s=1;m(e,!1,function(e){var a=i++,c=!1;n.push(void 0),s++,t.resolve(e).then(function(e){c||(c=!0,n[a]=e,--s||r(n))},o)}),--s||r(n)});return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=C(t),r=n.reject,o=k(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(e,t,n){n(86),n(45),n(61),n(164),n(161),n(160),e.exports=n(15).Promise},function(e,t){!function(){e.exports=this.wp.nux}()},function(e,t){!function(){e.exports=this.tinymce}()},function(e,t,n){"use strict";e.exports=n(219)},function(e,t,n){e.exports={default:n(242),__esModule:!0}},function(e,t,n){var r=n(200),o=n(199);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[i+a]=s[a];return t||o(s)}},,,function(e,t,n){var r=n(37),o=n(30),i=n(42).f;e.exports=function(e){return function(t){for(var n,s=o(t),a=r(s),c=a.length,l=0,u=[];c>l;)i.call(s,n=a[l++])&&u.push(e?[n,s[n]]:s[n]);return u}}},function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e){return decodeURIComponent(e.replace(/\+/g," "))}t.stringify=function(e,t){t=t||"";var n=[];for(var o in"string"!=typeof t&&(t="?"),e)r.call(e,o)&&n.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return n.length?t+n.join("&"):""},t.parse=function(e){for(var t,n=/([^=?&]+)=?([^&]*)/g,r={};t=n.exec(e);r[o(t[1])]=o(t[2]));return r}},function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return l});var r=n(5),o=n.n(r),i=n(153),s=(n(137),/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i),a=/^(?:[a-z]+:|#|\?|\.|\/)/i;function c(e,t){var n=Object(i.parse)(e,!0),r=o()({},n.query,t);return delete n.search,Object(i.format)(o()({},n,{query:r}))}function l(e){return a.test(e)||s.test(e)?e:"http://"+e}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(342);t.default=r.default},function(e,t,n){var r;!function(o){var i=/^\s+/,s=/\s+$/,a=0,c=o.round,l=o.min,u=o.max,d=o.random;function p(e,t){if(e=e||"",t=t||{},e instanceof p)return e;if(!(this instanceof p))return new p(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,c=null,d=!1,p=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(s,"").toLowerCase();var t,n=!1;if(B[e])e=B[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=K.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=K.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=K.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=K.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=K.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=K.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=K.hex8.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),a:M(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:M(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(f=e.r,h=e.g,m=e.b,t={r:255*D(f,255),g:255*D(h,255),b:255*D(m,255)},d=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=R(e.s),a=R(e.v),t=function(e,t,n){e=6*D(e,360),t=D(t,100),n=D(n,100);var r=o.floor(e),i=e-r,s=n*(1-t),a=n*(1-i*t),c=n*(1-(1-i)*t),l=r%6;return{r:255*[n,a,s,s,c,n][l],g:255*[c,n,n,a,s,s][l],b:255*[s,s,c,n,n,a][l]}}(e.h,r,a),d=!0,p="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=R(e.s),c=R(e.l),t=function(e,t,n){var r,o,i;function s(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=D(e,360),t=D(t,100),n=D(n,100),0===t)r=o=i=n;else{var a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=s(c,a,e+1/3),o=s(c,a,e),i=s(c,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,c),d=!0,p="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,h,m;return n=I(n),{ok:d,format:e.format||p,r:l(255,u(t.r,0)),g:l(255,u(t.g,0)),b:l(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=a++}function f(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,o,i=u(e,t,n),s=l(e,t,n),a=(i+s)/2;if(i==s)r=o=0;else{var c=i-s;switch(o=a>.5?c/(2-i-s):c/(i+s),i){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:o,l:a}}function h(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,o,i=u(e,t,n),s=l(e,t,n),a=i,c=i-s;if(o=0===i?0:c/i,i==s)r=0;else{switch(i){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:o,v:a}}function m(e,t,n,r){var o=[L(c(e).toString(16)),L(c(t).toString(16)),L(c(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function v(e,t,n,r){return[L(U(r)),L(c(e).toString(16)),L(c(t).toString(16)),L(c(n).toString(16))].join("")}function b(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s-=t/100,n.s=A(n.s),p(n)}function g(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s+=t/100,n.s=A(n.s),p(n)}function y(e){return p(e).desaturate(100)}function k(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l+=t/100,n.l=A(n.l),p(n)}function _(e,t){t=0===t?0:t||10;var n=p(e).toRgb();return n.r=u(0,l(255,n.r-c(-t/100*255))),n.g=u(0,l(255,n.g-c(-t/100*255))),n.b=u(0,l(255,n.b-c(-t/100*255))),p(n)}function O(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l-=t/100,n.l=A(n.l),p(n)}function w(e,t){var n=p(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,p(n)}function S(e){var t=p(e).toHsl();return t.h=(t.h+180)%360,p(t)}function E(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+120)%360,s:t.s,l:t.l}),p({h:(n+240)%360,s:t.s,l:t.l})]}function j(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+90)%360,s:t.s,l:t.l}),p({h:(n+180)%360,s:t.s,l:t.l}),p({h:(n+270)%360,s:t.s,l:t.l})]}function C(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+72)%360,s:t.s,l:t.l}),p({h:(n+216)%360,s:t.s,l:t.l})]}function T(e,t,n){t=t||6,n=n||30;var r=p(e).toHsl(),o=360/n,i=[p(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(p(r));return i}function P(e,t){t=t||6;for(var n=p(e).toHsv(),r=n.h,o=n.s,i=n.v,s=[],a=1/t;t--;)s.push(p({h:r,s:o,v:i})),i=(i+a)%1;return s}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=I(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[L(c(e).toString(16)),L(c(t).toString(16)),L(c(n).toString(16)),L(U(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*D(this._r,255))+"%",g:c(100*D(this._g,255))+"%",b:c(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*D(this._r,255))+"%, "+c(100*D(this._g,255))+"%, "+c(100*D(this._b,255))+"%)":"rgba("+c(100*D(this._r,255))+"%, "+c(100*D(this._g,255))+"%, "+c(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(x[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=p(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return p(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(b,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(j,arguments)}},p.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:R(e[r]));e=n}return p(e,t)},p.equals=function(e,t){return!(!e||!t)&&p(e).toRgbString()==p(t).toRgbString()},p.random=function(){return p.fromRatio({r:d(),g:d(),b:d()})},p.mix=function(e,t,n){n=0===n?0:n||50;var r=p(e).toRgb(),o=p(t).toRgb(),i=n/100;return p({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},p.readability=function(e,t){var n=p(e),r=p(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},p.isReadable=function(e,t,n){var r,o,i=p.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},p.mostReadable=function(e,t,n){var r,o,i,s,a=null,c=0;o=(n=n||{}).includeFallbackColors,i=n.level,s=n.size;for(var l=0;l<t.length;l++)(r=p.readability(e,t[l]))>c&&(c=r,a=p(t[l]));return p.isReadable(e,a,{level:i,size:s})||!o?a:(n.includeFallbackColors=!1,p.mostReadable(e,["#fff","#000"],n))};var B=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=p.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(B);function I(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return l(1,u(0,e))}function N(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function U(e){return o.round(255*parseFloat(e)).toString(16)}function M(e){return N(e)/255}var F,H,V,K=(H="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",V="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!K.CSS_UNIT.exec(e)}void 0!==e&&e.exports?e.exports=p:void 0===(r=function(){return p}.call(t,n,t,e))||(e.exports=r)}(Math)},,function(e,t){var n;"function"!=typeof(n=window.Element.prototype).matches&&(n.matches=n.msMatchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=0;t[n]&&t[n]!==this;)++n;return Boolean(t[n])}),"function"!=typeof n.closest&&(n.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})},,function(e,t,n){var r=n(21),o=n(173)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){n(182),e.exports=n(15).Object.values},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(19),i=(r=o)&&r.__esModule?r:{default:r};t.attributeListToReact=a,t.nodeListToReact=l,t.nodeToReact=u;var s=[].concat(["accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","capture","cellPadding","cellSpacing","challenge","charSet","checked","cite","classID","className","colSpan","cols","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","encType","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","height","hidden","high","href","hrefLang","htmlFor","httpEquiv","icon","id","inputMode","integrity","is","keyParams","keyType","kind","label","lang","list","loop","low","manifest","marginHeight","marginWidth","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","nonce","open","optimum","pattern","placeholder","poster","preload","profile","radioGroup","readOnly","rel","required","reversed","role","rowSpan","rows","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","spellCheck","src","srcDoc","srcLang","srcSet","start","step","style","summary","tabIndex","target","title","type","useMap","value","width","wmode","wrap"],["autoCapitalize","autoCorrect","color","itemProp","itemScope","itemType","itemRef","itemID","security","unselectable","results","autoSave"],["accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseProfile","baselineShift","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","ideographic","imageRendering","in","in2","intercept","k","k1","k2","k3","k4","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","viewBox","viewTarget","visibility","widths","wordSpacing","writingMode","x","x1","x2","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlSpace","y","y1","y2","yChannelSelector","z","zoomAndPan"]).reduce(function(e,t){var n=t.toLowerCase();return t!==n&&(e[n]=t),e},{});function a(e){return[].concat((0,i.default)(e)).reduce(function(e,t){var n=t.name,r=t.value,o=s[n.replace(/[-:]/,"")]||n;return"style"===o&&(r=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(";").reduce(function(e,t){var n,r=t.split(":"),o=(n=r[0]||"",n.toLowerCase().replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})).trim(),i=(r[1]||"").trim();return o&&i&&(e[o]=i),e},{})}(r)),e[o]=r,e},{})}s.class="className";var c=0;function l(e,t){return[].concat((0,i.default)(e)).reduce(function(e,n){n._domReactKey||(n._domReactKey="_domReact"+String(c++));var r=u(n,t);return Array.isArray(r)?e.push.apply(e,(0,i.default)(r)):e.push(r),e},[])}function u(e,t){if(!e)return null;if(3===e.nodeType)return e.nodeValue;if(1!==e.nodeType)return null;var n=e.nodeName.toLowerCase(),r={},o=[];return e.hasAttributes()&&(r=a(e.attributes)),e._domReactKey&&(r.key=e._domReactKey),e.hasChildNodes()&&(o=l(e.childNodes,t)),t.apply(void 0,[n,r].concat((0,i.default)(o)))}},,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,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(s(e),function(s){var a=encodeURIComponent(r(s))+n;return o(e[s])?i(e[s],function(e){return a+encodeURIComponent(r(e))}).join(t):a+encodeURIComponent(r(e[s]))}).join(t):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var s=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var l=e.length;c>0&&l>c&&(l=c);for(var u=0;u<l;++u){var d,p,f,h,m=e[u].replace(a,"%20"),v=m.indexOf(n);v>=0?(d=m.substr(0,v),p=m.substr(v+1)):(d=m,p=""),f=decodeURIComponent(d),h=decodeURIComponent(p),r(s,f)?o(s[f])?s[f].push(h):s[f]=[s[f],h]:s[f]=h}return s};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},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}}},function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(i){"object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType;var s="object"==typeof r&&r;s.global!==s&&s.window!==s&&s.self;var a,c=2147483647,l=36,u=1,d=26,p=38,f=700,h=72,m=128,v="-",b=/^xn--/,g=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=l-u,O=Math.floor,w=String.fromCharCode;function S(e){throw new RangeError(k[e])}function E(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function j(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+E((e=e.replace(y,".")).split("."),t).join(".")}function C(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function T(e){return E(e,function(e){var t="";return e>65535&&(t+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function P(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function B(e,t,n){var r=0;for(e=n?O(e/f):e>>1,e+=O(e/t);e>_*d>>1;r+=l)e=O(e/_);return O(r+(_+1)*e/(e+p))}function x(e){var t,n,r,o,i,s,a,p,f,b,g,y=[],k=e.length,_=0,w=m,E=h;for((n=e.lastIndexOf(v))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&S("not-basic"),y.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<k;){for(i=_,s=1,a=l;o>=k&&S("invalid-input"),((p=(g=e.charCodeAt(o++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:l)>=l||p>O((c-_)/s))&&S("overflow"),_+=p*s,!(p<(f=a<=E?u:a>=E+d?d:a-E));a+=l)s>O(c/(b=l-f))&&S("overflow"),s*=b;E=B(_-i,t=y.length+1,0==i),O(_/t)>c-w&&S("overflow"),w+=O(_/t),_%=t,y.splice(_++,0,w)}return T(y)}function I(e){var t,n,r,o,i,s,a,p,f,b,g,y,k,_,E,j=[];for(y=(e=C(e)).length,t=m,n=0,i=h,s=0;s<y;++s)(g=e[s])<128&&j.push(w(g));for(r=o=j.length,o&&j.push(v);r<y;){for(a=c,s=0;s<y;++s)(g=e[s])>=t&&g<a&&(a=g);for(a-t>O((c-n)/(k=r+1))&&S("overflow"),n+=(a-t)*k,t=a,s=0;s<y;++s)if((g=e[s])<t&&++n>c&&S("overflow"),g==t){for(p=n,f=l;!(p<(b=f<=i?u:f>=i+d?d:f-i));f+=l)E=p-b,_=l-b,j.push(w(P(b+E%_,0))),p=O(E/_);j.push(w(P(p,0))),i=B(n,k,r==o),n=0,++r}++n,++t}return j.join("")}a={version:"1.4.1",ucs2:{decode:C,encode:T},decode:x,encode:I,toASCII:function(e){return j(e,function(e){return g.test(e)?"xn--"+I(e):e})},toUnicode:function(e){return j(e,function(e){return b.test(e)?x(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return a}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(158)(e),n(136))},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,i,s,a,c){if(r(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,i,s,a,c],d=0;(l=new Error(t.replace(/%s/g,function(){return u[d++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){e.exports=n(221)()},,,function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]}},function(e,t,n){(function(t){var n,r=t.crypto||t.msCrypto;if(r&&r.getRandomValues){var o=new Uint8Array(16);n=function(){return r.getRandomValues(o),o}}if(!n){var i=new Array(16);n=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}e.exports=n}).call(this,n(136))},,function(e,t,n){e.exports=function(){"use strict";return function(e){var t={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)e(t,n[r]);else for(r in n)t[r]=(t[r]||[]).concat(n[r])}(t,e),function(e){return function(n){return function(r){var o,i,s=t[r.type],a=n(r);if(s)for(o=0;o<s.length;o++)(i=s[o](r,e))&&e.dispatch(i);return a}}}}}()},,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function i(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function s(e){return i(e)}function a(e){return i(e,!0)}function c(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,i=o.body,s=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=s.clientLeft||i.clientLeft||0,top:r-=s.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=s(r),t.top+=a(r),t}var l=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/,d="currentStyle",p="runtimeStyle",f="left",h="px";var m=void 0;function v(e,t){for(var n=0;n<e.length;n++)t(e[n])}function b(e){return"border-box"===m(e,"boxSizing")}"undefined"!=typeof window&&(m=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,i=n||o.defaultView.getComputedStyle(e,null);return i&&(r=i.getPropertyValue(t)||i[t]),r}:function(e,t){var n=e[d]&&e[d][t];if(l.test(n)&&!u.test(t)){var r=e.style,o=r[f],i=e[p][f];e[p][f]=e[d][f],r[f]="fontSize"===t?"1em":n||0,n=r.pixelLeft+h,r[f]=o,e[p][f]=i}return""===n?"auto":n});var g=["margin","border","padding"],y=-1,k=2,_=1;function O(e,t,n){var r=0,o=void 0,i=void 0,s=void 0;for(i=0;i<t.length;i++)if(o=t[i])for(s=0;s<n.length;s++){var a=void 0;a="border"===o?o+n[s]+"Width":o+n[s],r+=parseFloat(m(e,a))||0}return r}function w(e){return null!=e&&e==e.window}var S={};function E(e,t,n){if(w(e))return"width"===t?S.viewportWidth(e):S.viewportHeight(e);if(9===e.nodeType)return"width"===t?S.docWidth(e):S.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,i=(m(e),b(e)),s=0;(null==o||o<=0)&&(o=void 0,(null==(s=m(e,t))||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===n&&(n=i?_:y);var a=void 0!==o||i,c=o||s;if(n===y)return a?c-O(e,["border","padding"],r):s;if(a){var l=n===k?-O(e,["border"],r):O(e,["margin"],r);return c+(n===_?0:l)}return s+O(e,g.slice(n),r)}v(["Width","Height"],function(e){S["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],S["viewport"+e](n))},S["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}});var j={position:"absolute",visibility:"hidden",display:"block"};function C(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=E.apply(void 0,n):function(e,t,n){var r={},o=e.style,i=void 0;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);for(i in n.call(e),t)t.hasOwnProperty(i)&&(o[i]=r[i])}(e,j,function(){t=E.apply(void 0,n)}),t}function T(e,t,n){var r=n;if("object"!==(void 0===t?"undefined":o(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):m(e,t);for(var i in t)t.hasOwnProperty(i)&&T(e,i,t[i])}v(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);S["outer"+t]=function(t,n){return t&&C(t,e,n?0:_)};var n="width"===e?["Left","Right"]:["Top","Bottom"];S[e]=function(t,r){if(void 0===r)return t&&C(t,e,y);if(t){m(t);return b(t)&&(r+=O(t,["padding","border"],n)),T(t,e,r)}}}),e.exports=r({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return c(e);!function(e,t){"static"===T(e,"position")&&(e.style.position="relative");var n=c(e),r={},o=void 0,i=void 0;for(i in t)t.hasOwnProperty(i)&&(o=parseFloat(T(e,i))||0,r[i]=o+t[i]-n[i]);T(e,r)}(e,t)},isWindow:w,each:v,css:T,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(w(e)){if(void 0===t)return s(e);window.scrollTo(t,a(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(w(e)){if(void 0===t)return a(e);window.scrollTo(s(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},S)},function(e,t,n){"use strict";var r=n(218);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,s=n.alignWithTop,a=n.alignWithLeft,c=n.offsetTop||0,l=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var p=r.isWindow(t),f=r.offset(e),h=r.outerHeight(e),m=r.outerWidth(e),v=void 0,b=void 0,g=void 0,y=void 0,k=void 0,_=void 0,O=void 0,w=void 0,S=void 0,E=void 0;p?(O=t,E=r.height(O),S=r.width(O),w={left:r.scrollLeft(O),top:r.scrollTop(O)},k={left:f.left-w.left-l,top:f.top-w.top-c},_={left:f.left+m-(w.left+S)+d,top:f.top+h-(w.top+E)+u},y=w):(v=r.offset(t),b=t.clientHeight,g=t.clientWidth,y={left:t.scrollLeft,top:t.scrollTop},k={left:f.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-l,top:f.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-c},_={left:f.left+m-(v.left+g+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:f.top+h-(v.top+b+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),k.top<0||_.top>0?!0===s?r.scrollTop(t,y.top+k.top):!1===s?r.scrollTop(t,y.top+_.top):k.top<0?r.scrollTop(t,y.top+k.top):r.scrollTop(t,y.top+_.top):i||((s=void 0===s||!!s)?r.scrollTop(t,y.top+k.top):r.scrollTop(t,y.top+_.top)),o&&(k.left<0||_.left>0?!0===a?r.scrollLeft(t,y.left+k.left):!1===a?r.scrollLeft(t,y.left+_.left):k.left<0?r.scrollLeft(t,y.left+k.left):r.scrollLeft(t,y.left+_.left):i||((a=void 0===a||!!a)?r.scrollLeft(t,y.left+k.left):r.scrollLeft(t,y.left+_.left)))}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(195),o=n(194),i=n(220);e.exports=function(){function e(e,t,n,r,s,a){a!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(39),o=n(37);n(111)("keys",function(){return function(e){return o(r(e))}})},function(e,t,n){n(241),e.exports=n(15).Object.keys},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.dispatch;return function(e){return function(n){return Array.isArray(n)?n.filter(Boolean).map(t):e(n)}}}},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r={};n.d(r,"setupEditor",function(){return Q}),n.d(r,"resetPost",function(){return Z}),n.d(r,"resetAutosave",function(){return ee}),n.d(r,"updatePost",function(){return te}),n.d(r,"setupEditorState",function(){return ne}),n.d(r,"resetBlocks",function(){return re}),n.d(r,"receiveBlocks",function(){return oe}),n.d(r,"updateBlockAttributes",function(){return ie}),n.d(r,"updateBlock",function(){return se}),n.d(r,"selectBlock",function(){return ae}),n.d(r,"startMultiSelect",function(){return ce}),n.d(r,"stopMultiSelect",function(){return le}),n.d(r,"multiSelect",function(){return ue}),n.d(r,"clearSelectedBlock",function(){return de}),n.d(r,"toggleSelection",function(){return pe}),n.d(r,"replaceBlocks",function(){return fe}),n.d(r,"replaceBlock",function(){return he}),n.d(r,"moveBlocksDown",function(){return ve}),n.d(r,"moveBlocksUp",function(){return be}),n.d(r,"moveBlockToPosition",function(){return ge}),n.d(r,"insertBlock",function(){return ye}),n.d(r,"insertBlocks",function(){return ke}),n.d(r,"showInsertionPoint",function(){return _e}),n.d(r,"hideInsertionPoint",function(){return Oe}),n.d(r,"setTemplateValidity",function(){return we}),n.d(r,"checkTemplateValidity",function(){return Se}),n.d(r,"synchronizeTemplate",function(){return Ee}),n.d(r,"editPost",function(){return je}),n.d(r,"savePost",function(){return Ce}),n.d(r,"refreshPost",function(){return Te}),n.d(r,"trashPost",function(){return Pe}),n.d(r,"mergeBlocks",function(){return Be}),n.d(r,"autosave",function(){return xe}),n.d(r,"redo",function(){return Ie}),n.d(r,"undo",function(){return De}),n.d(r,"createUndoLevel",function(){return Ae}),n.d(r,"removeBlocks",function(){return Ne}),n.d(r,"removeBlock",function(){return Le}),n.d(r,"toggleBlockMode",function(){return Re}),n.d(r,"startTyping",function(){return Ue}),n.d(r,"stopTyping",function(){return Me}),n.d(r,"createNotice",function(){return Fe}),n.d(r,"removeNotice",function(){return He}),n.d(r,"createSuccessNotice",function(){return Ve}),n.d(r,"createInfoNotice",function(){return Ke}),n.d(r,"createErrorNotice",function(){return We}),n.d(r,"createWarningNotice",function(){return ze}),n.d(r,"fetchSharedBlocks",function(){return qe}),n.d(r,"receiveSharedBlocks",function(){return Ge}),n.d(r,"saveSharedBlock",function(){return Ye}),n.d(r,"deleteSharedBlock",function(){return Xe}),n.d(r,"updateSharedBlockTitle",function(){return $e}),n.d(r,"convertBlockToStatic",function(){return Je}),n.d(r,"convertBlockToShared",function(){return Qe}),n.d(r,"insertDefaultBlock",function(){return Ze}),n.d(r,"updateBlockListSettings",function(){return et}),n.d(r,"updateEditorSettings",function(){return tt});var o={};n.d(o,"POST_UPDATE_TRANSACTION_ID",function(){return at}),n.d(o,"INSERTER_UTILITY_HIGH",function(){return lt}),n.d(o,"INSERTER_UTILITY_MEDIUM",function(){return ut}),n.d(o,"INSERTER_UTILITY_LOW",function(){return dt}),n.d(o,"INSERTER_UTILITY_NONE",function(){return pt}),n.d(o,"hasEditorUndo",function(){return ht}),n.d(o,"hasEditorRedo",function(){return mt}),n.d(o,"isEditedPostNew",function(){return vt}),n.d(o,"isEditedPostDirty",function(){return bt}),n.d(o,"isCleanNewPost",function(){return gt}),n.d(o,"getCurrentPost",function(){return yt}),n.d(o,"getCurrentPostType",function(){return kt}),n.d(o,"getCurrentPostId",function(){return _t}),n.d(o,"getCurrentPostRevisionsCount",function(){return Ot}),n.d(o,"getCurrentPostLastRevisionId",function(){return wt}),n.d(o,"getPostEdits",function(){return St}),n.d(o,"getCurrentPostAttribute",function(){return Et}),n.d(o,"getEditedPostAttribute",function(){return jt}),n.d(o,"getAutosaveAttribute",function(){return Ct}),n.d(o,"getEditedPostVisibility",function(){return Tt}),n.d(o,"isCurrentPostPending",function(){return Pt}),n.d(o,"isCurrentPostPublished",function(){return Bt}),n.d(o,"isCurrentPostScheduled",function(){return xt}),n.d(o,"isEditedPostPublishable",function(){return It}),n.d(o,"isEditedPostSaveable",function(){return Dt}),n.d(o,"isEditedPostEmpty",function(){return At}),n.d(o,"isEditedPostAutosaveable",function(){return Nt}),n.d(o,"getAutosave",function(){return Lt}),n.d(o,"hasAutosave",function(){return Rt}),n.d(o,"isEditedPostBeingScheduled",function(){return Ut}),n.d(o,"getDocumentTitle",function(){return Mt}),n.d(o,"getEditedPostPreviewLink",function(){return Ft}),n.d(o,"getBlockDependantsCacheBust",function(){return Ht}),n.d(o,"getBlockName",function(){return Vt}),n.d(o,"getBlock",function(){return Kt}),n.d(o,"getBlocks",function(){return Wt}),n.d(o,"getGlobalBlockCount",function(){return zt}),n.d(o,"getBlocksByUID",function(){return qt}),n.d(o,"getBlockCount",function(){return Gt}),n.d(o,"getBlockSelectionStart",function(){return Yt}),n.d(o,"getBlockSelectionEnd",function(){return Xt}),n.d(o,"getSelectedBlockCount",function(){return $t}),n.d(o,"hasSelectedBlock",function(){return Jt}),n.d(o,"getSelectedBlockUID",function(){return Qt}),n.d(o,"getSelectedBlock",function(){return Zt}),n.d(o,"getBlockRootUID",function(){return en}),n.d(o,"getAdjacentBlockUid",function(){return tn}),n.d(o,"getPreviousBlockUid",function(){return nn}),n.d(o,"getNextBlockUid",function(){return rn}),n.d(o,"getSelectedBlocksInitialCaretPosition",function(){return on}),n.d(o,"getMultiSelectedBlockUids",function(){return sn}),n.d(o,"getMultiSelectedBlocks",function(){return an}),n.d(o,"getFirstMultiSelectedBlockUid",function(){return cn}),n.d(o,"getLastMultiSelectedBlockUid",function(){return ln}),n.d(o,"isFirstMultiSelectedBlock",function(){return un}),n.d(o,"isBlockMultiSelected",function(){return dn}),n.d(o,"getMultiSelectedBlocksStartUid",function(){return pn}),n.d(o,"getMultiSelectedBlocksEndUid",function(){return fn}),n.d(o,"getBlockOrder",function(){return hn}),n.d(o,"getBlockIndex",function(){return mn}),n.d(o,"isBlockSelected",function(){return vn}),n.d(o,"hasSelectedInnerBlock",function(){return bn}),n.d(o,"isBlockWithinSelection",function(){return gn}),n.d(o,"hasMultiSelection",function(){return yn}),n.d(o,"isMultiSelecting",function(){return kn}),n.d(o,"isSelectionEnabled",function(){return _n}),n.d(o,"getBlockMode",function(){return On}),n.d(o,"isTyping",function(){return wn}),n.d(o,"getBlockInsertionPoint",function(){return Sn}),n.d(o,"isBlockInsertionPointVisible",function(){return En}),n.d(o,"isValidTemplate",function(){return jn}),n.d(o,"getTemplate",function(){return Cn}),n.d(o,"getTemplateLock",function(){return Tn}),n.d(o,"isSavingPost",function(){return Pn}),n.d(o,"didPostSaveRequestSucceed",function(){return Bn}),n.d(o,"didPostSaveRequestFail",function(){return xn}),n.d(o,"isAutosavingPost",function(){return In}),n.d(o,"getSuggestedPostFormat",function(){return Dn}),n.d(o,"getEditedPostContent",function(){return An}),n.d(o,"getNotices",function(){return Nn}),n.d(o,"canInsertBlockType",function(){return Ln}),n.d(o,"getInserterItems",function(){return Un}),n.d(o,"getFrecentInserterItems",function(){return Mn}),n.d(o,"getSharedBlock",function(){return Fn}),n.d(o,"isSavingSharedBlock",function(){return Hn}),n.d(o,"isFetchingSharedBlock",function(){return Vn}),n.d(o,"getSharedBlocks",function(){return Kn}),n.d(o,"getStateBeforeOptimisticTransaction",function(){return Wn}),n.d(o,"isPublishingPost",function(){return zn}),n.d(o,"getProvisionalBlockUID",function(){return qn}),n.d(o,"isPermalinkEditable",function(){return Gn}),n.d(o,"getPermalink",function(){return Yn}),n.d(o,"getPermalinkParts",function(){return Xn}),n.d(o,"inSomeHistory",function(){return $n}),n.d(o,"getBlockListSettings",function(){return Jn}),n.d(o,"getSupportedBlocks",function(){return Qn}),n.d(o,"getEditorSettings",function(){return Zn});var i=n(4),s=n(52),a=n.n(s),c=n(5),l=n.n(c),u=n(29),d=n.n(u),p=n(19),f=n.n(p),h=n(74),m=n.n(h),v=n(20),b=n.n(v),g=n(71),y=n.n(g),k=n(155),_=n.n(k),O=n(0),w=n(13),S={resetTypes:[],ignoreTypes:[],shouldOverwriteState:function(){return!1}},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){(e=l()({},S,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:[]},r=void 0,o=!1,i=e,s=i.resetTypes,a=void 0===s?[]:s,c=i.shouldOverwriteState,u=void 0===c?function(){return!1}:c;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,i=arguments[1],s=e.past,c=e.present,l=e.future,d=r;switch(r=i,i.type){case"UNDO":return s.length?{past:Object(O.dropRight)(s),present:Object(O.last)(s),future:[c].concat(f()(l))}:e;case"REDO":return l.length?{past:[].concat(f()(s),[c]),present:Object(O.first)(l),future:Object(O.drop)(l)}:e;case"CREATE_UNDO_LEVEL":return o=!0,e}var p=t(c,i);if(Object(O.includes)(a,i.type))return{past:[],present:p,future:[]};if(c===p)return e;var h=s;return!(o=!s.length||o)&&u(i,d)||(h=[].concat(f()(s),[c])),o=!1,{past:h,present:p,future:[]}}}},j=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),s=n!==o;if(!s&&!i)return n;s&&void 0!==n||(o=l()({},o));var a=Object(O.includes)(e.ignoreTypes,r.type);return o.isDirty=a?n.isDirty:!i&&s,o}}},C={insertUsage:{}},T={alignWide:!1,colors:[{name:"pale pink",color:"#f78da7"},{name:"vivid red",color:"#cf2e2e"},{name:"luminous vivid orange",color:"#ff6900"},{name:"luminous vivid amber",color:"#fcb900"},{name:"light green cyan",color:"#7bdcb5"},{name:"vivid green cyan",color:"#00d084"},{name:"pale cyan blue",color:"#8ed1fc"},{name:"vivid cyan blue",color:"#0693e3"},{name:"very light gray",color:"#eeeeee"},{name:"cyan bluish gray",color:"#abb8c3"},{name:"very dark gray",color:"#313131"}],maxWidth:580,allowedBlockTypes:!0};function P(e,t,n){return[].concat(f()(e.slice(0,n)),f()(Object(O.castArray)(t)),f()(e.slice(n)))}function B(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=[].concat(f()(e));return o.splice(t,r),P(o,e.slice(t,t+r),n)}function x(e){return e&&"object"===(void 0===e?"undefined":y()(e))&&"raw"in e?e.raw:e}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=b()({},t,[]);return e.forEach(function(e){var r=e.uid,o=e.innerBlocks;n[t].push(r),m()(n,I(o,r))}),n}function D(e){for(var t={},n=[].concat(f()(e));n.length;){var r=n.shift(),o=r.innerBlocks,i=d()(r,["innerBlocks"]);n.push.apply(n,f()(o)),t[i.uid]=i}return t}function A(e,t){return Object(O.isEqual)(Object(O.keys)(e),Object(O.keys)(t))}function N(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&e.uid===t.uid&&A(e.attributes,t.attributes)}function L(e,t){return"EDIT_POST"===e.type&&A(e.edits,t.edits)}var R=Object(O.flow)([i.combineReducers,function(e){return function(t,n){if(t&&"REMOVE_BLOCKS"===n.type){for(var r=[].concat(f()(n.uids)),o=0;o<r.length;o++)r.push.apply(r,f()(t.blockOrder[r[o]]));n=l()({},n,{uids:r})}return e(t,n)}},E({resetTypes:["SETUP_EDITOR_STATE"],ignoreTypes:["RECEIVE_BLOCKS","RESET_POST","UPDATE_POST"],shouldOverwriteState:function(e,t){return!(!t||e.type!==t.type)&&Object(O.overSome)([N,L])(e,t)}}),j({resetTypes:["SETUP_EDITOR_STATE","REQUEST_POST_UPDATE_START"],ignoreTypes:["RECEIVE_BLOCKS","RESET_POST","UPDATE_POST"]})])({edits:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"EDIT_POST":case"SETUP_EDITOR_STATE":return Object(O.reduce)(t.edits,function(t,n,r){return n!==e[r]&&(t===e&&(t=l()({},e)),t[r]=n),t},e);case"RESET_BLOCKS":return"content"in e?Object(O.omit)(e,"content"):e;case"DIRTY_ARTIFICIALLY":return l()({},e);case"UPDATE_POST":case"RESET_POST":var n="UPDATE_POST"===t.type?function(e){return t.edits[e]}:function(e){return x(t.post[e])};return Object(O.reduce)(e,function(t,r,o){return r!==n(o)?t:(e===t&&(t=l()({},e)),delete t[o],t)},e)}return e},blocksByUID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"RESET_BLOCKS":case"SETUP_EDITOR_STATE":return D(t.blocks);case"RECEIVE_BLOCKS":return l()({},e,D(t.blocks));case"UPDATE_BLOCK_ATTRIBUTES":if(!e[t.uid])return e;var n=Object(O.reduce)(t.attributes,function(n,r,o){return r!==n[o]&&(n===e[t.uid].attributes&&(n=l()({},n)),n[o]=r),n},e[t.uid].attributes);return n===e[t.uid].attributes?e:l()({},e,b()({},t.uid,l()({},e[t.uid],{attributes:n})));case"MOVE_BLOCK_TO_POSITION":return e[t.uid].attributes.layout===t.layout?e:l()({},e,b()({},t.uid,l()({},e[t.uid],{attributes:l()({},e[t.uid].attributes,{layout:t.layout})})));case"UPDATE_BLOCK":return e[t.uid]?l()({},e,b()({},t.uid,l()({},e[t.uid],t.updates))):e;case"INSERT_BLOCKS":return l()({},e,D(t.blocks));case"REPLACE_BLOCKS":return t.blocks?l()({},Object(O.omit)(e,t.uids),D(t.blocks)):e;case"REMOVE_BLOCKS":return Object(O.omit)(e,t.uids);case"SAVE_SHARED_BLOCK_SUCCESS":var r=t.id,o=t.updatedId;return r===o?e:Object(O.mapValues)(e,function(e){return"core/block"===e.name&&e.attributes.ref===r?l()({},e,{attributes:l()({},e.attributes,{ref:o})}):e})}return e},blockOrder:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"RESET_BLOCKS":case"SETUP_EDITOR_STATE":return I(t.blocks);case"RECEIVE_BLOCKS":return l()({},e,Object(O.omit)(I(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootUID,r=void 0===n?"":n,o=t.blocks,i=e[r]||[],s=I(o,r),a=t.index,c=void 0===a?i.length:a;return l()({},e,s,b()({},r,P(i,s[r],c)));case"MOVE_BLOCK_TO_POSITION":var u,d=t.fromRootUID,p=void 0===d?"":d,h=t.toRootUID,m=void 0===h?"":h,v=t.uid,g=t.index,y=void 0===g?e[m].length:g;if(p===m){var k=e[m].indexOf(v);return l()({},e,b()({},m,B(e[m],k,y)))}return l()({},e,(u={},b()(u,p,Object(O.without)(e[p],v)),b()(u,m,P(e[m],v,y)),u));case"MOVE_BLOCKS_UP":var _=t.uids,w=t.rootUID,S=void 0===w?"":w,E=Object(O.first)(_),j=e[S];if(!j.length||E===Object(O.first)(j))return e;var C=j.indexOf(E);return l()({},e,b()({},S,B(j,C,C-1,_.length)));case"MOVE_BLOCKS_DOWN":var T=t.uids,x=t.rootUID,D=void 0===x?"":x,A=Object(O.first)(T),N=Object(O.last)(T),L=e[D];if(!L.length||N===Object(O.last)(L))return e;var R=L.indexOf(A);return l()({},e,b()({},D,B(L,R,R+1,T.length)));case"REPLACE_BLOCKS":var U=t.blocks,M=t.uids;if(!U)return e;var F=I(U);return Object(O.flow)([function(e){return Object(O.omit)(e,M)},function(e){return l()({},e,Object(O.omit)(F,""))},function(e){return Object(O.mapValues)(e,function(e){return Object(O.reduce)(e,function(e,t){return t===M[0]?[].concat(f()(e),f()(F[""])):(-1===M.indexOf(t)&&e.push(t),e)},[])})}])(e);case"REMOVE_BLOCKS":return Object(O.flow)([function(e){return Object(O.omit)(e,t.uids)},function(e){return Object(O.mapValues)(e,function(e){return O.without.apply(void 0,[e].concat(f()(t.uids)))})}])(e)}return e}});var U=Object(i.combineReducers)({data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"RECEIVE_SHARED_BLOCKS":return Object(O.reduce)(t.results,function(t,n){var r=n.sharedBlock,o=r.id,i=r.title,s={uid:n.parsedBlock.uid,title:i};return Object(O.isEqual)(t[o],s)||(t===e&&(t=l()({},t)),t[o]=s),t},e);case"UPDATE_SHARED_BLOCK_TITLE":var n=t.id,r=t.title;return e[n]&&e[n].title!==r?l()({},e,b()({},n,l()({},e[n],{title:r}))):e;case"SAVE_SHARED_BLOCK_SUCCESS":var o=t.id,i=t.updatedId;if(o===i)return e;var s=e[o];return l()({},Object(O.omit)(e,o),b()({},i,s));case"REMOVE_SHARED_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[1];switch(t.type){case"FETCH_SHARED_BLOCKS":var n=t.id;return n?l()({},e,b()({},n,!0)):e;case"FETCH_SHARED_BLOCKS_SUCCESS":case"FETCH_SHARED_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[1];switch(t.type){case"SAVE_SHARED_BLOCK":return l()({},e,b()({},t.id,!0));case"SAVE_SHARED_BLOCK_SUCCESS":case"SAVE_SHARED_BLOCK_FAILURE":var n=t.id;return Object(O.omit)(e,n)}return e}});var M=_()(Object(i.combineReducers)({editor:R,currentPost:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":var n=void 0;if(t.post)n=t.post;else{if(!t.edits)return e;n=l()({},e,t.edits)}return Object(O.mapValues)(n,x)}return e},isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch(arguments[1].type){case"START_TYPING":return!0;case"STOP_TYPING":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[1];switch(t.type){case"CLEAR_SELECTED_BLOCK":return null!==e.start||null!==e.end||e.isMultiSelecting?l()({},e,{start:null,end:null,isMultiSelecting:!1,initialPosition:null}):e;case"START_MULTI_SELECT":return e.isMultiSelecting?e:l()({},e,{isMultiSelecting:!0,initialPosition:null});case"STOP_MULTI_SELECT":return e.isMultiSelecting?l()({},e,{isMultiSelecting:!1,initialPosition:null}):e;case"MULTI_SELECT":return l()({},e,{start:t.start,end:t.end,initialPosition:null});case"SELECT_BLOCK":return t.uid===e.start&&t.uid===e.end?e:l()({},e,{start:t.uid,end:t.uid,initialPosition:t.initialPosition});case"INSERT_BLOCKS":return l()({},e,{start:t.blocks[0].uid,end:t.blocks[0].uid,initialPosition:null,isMultiSelecting:!1});case"REMOVE_BLOCKS":return t.uids&&t.uids.length&&-1!==t.uids.indexOf(e.start)?l()({},e,{start:null,end:null,initialPosition:null,isMultiSelecting:!1}):e;case"REPLACE_BLOCKS":if(-1===t.uids.indexOf(e.start))return e;var n=Object(O.get)(t.blocks,[0,"uid"],null);return l()({},e,{start:n,end:n,initialPosition:null,isMultiSelecting:!1});case"TOGGLE_SELECTION":return l()({},e,{isEnabled:t.isSelectionEnabled})}return e},provisionalBlockUID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"INSERT_BLOCKS":if(t.isProvisional)return Object(O.first)(t.blocks).uid;break;case"RESET_BLOCKS":return null;case"UPDATE_BLOCK_ATTRIBUTES":case"UPDATE_BLOCK":case"CONVERT_BLOCK_TO_SHARED":if(t.uid===e)return null;break;case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":var n=t.uids;if(Object(O.includes)(n,e))return null}return e},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if("TOGGLE_BLOCK_MODE"===t.type){var n=t.uid;return l()({},e,b()({},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[1];switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(O.omit)(e,t.uids);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.id;if(n&&!t.settings)return Object(O.omit)(e,n);var r=e[n];if(!Object(O.isEqual)(r,t.settings))return l()({},e,b()({},n,l()({},t.settings)))}return e},isInsertionPointVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch(arguments[1].type){case"SHOW_INSERTION_POINT":return!0;case"HIDE_INSERTION_POINT":return!1}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,t=arguments[1];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(w.isSharedBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),l()({},e,{insertUsage:l()({},e.insertUsage,b()({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})},e);case"REMOVE_SHARED_BLOCK":return l()({},e,{insertUsage:Object(O.omitBy)(e.insertUsage,function(e){return e.insert.ref===t.id})})}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"REQUEST_POST_UPDATE_START":return{requesting:!0,successful:!1,error:null,isAutosave:t.isAutosave};case"REQUEST_POST_UPDATE_SUCCESS":return{requesting:!1,successful:!0,error:null};case"REQUEST_POST_UPDATE_FAILURE":return{requesting:!1,successful:!1,error:t.error}}return e},notices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"CREATE_NOTICE":return[].concat(f()(Object(O.reject)(e,{id:t.notice.id})),[t.notice]);case"REMOVE_NOTICE":var n=t.noticeId,r=Object(O.findIndex)(e,{id:n});return-1===r?e:[].concat(f()(e.slice(0,r)),f()(e.slice(r+1)))}return e},sharedBlocks:U,template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments[1];switch(t.type){case"SET_TEMPLATE_VALIDITY":return l()({},e,{isValid:t.isValid})}return e},autosave:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"RESET_AUTOSAVE":var n=t.post,r=["title","excerpt","content"].map(function(e){return x(n[e])}),o=a()(r,3);return{title:o[0],excerpt:o[1],content:o[2],preview_link:n.preview_link};case"REQUEST_POST_UPDATE":if(e&&t.options.autosave)return Object(O.omit)(e,"preview_link")}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=arguments[1];switch(t.type){case"UPDATE_EDITOR_SETTINGS":return l()({},e,t.settings)}return e}})),F=n(202),H=n.n(F),V=n(283),K=n.n(V),W=n(169),z=n.n(W),q=n(1),G=n(174),Y=n(60),X=n.n(Y),$=n(170),J=n.n($);function Q(e,t){return{type:"SETUP_EDITOR",autosave:t,post:e}}function Z(e){return{type:"RESET_POST",post:e}}function ee(e){return{type:"RESET_AUTOSAVE",post:e}}function te(e){return{type:"UPDATE_POST",edits:e}}function ne(e,t,n){return{type:"SETUP_EDITOR_STATE",post:e,blocks:t,edits:n}}function re(e){return{type:"RESET_BLOCKS",blocks:e}}function oe(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function ie(e,t){return{type:"UPDATE_BLOCK_ATTRIBUTES",uid:e,attributes:t}}function se(e,t){return{type:"UPDATE_BLOCK",uid:e,updates:t}}function ae(e){return{type:"SELECT_BLOCK",initialPosition:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,uid:e}}function ce(){return{type:"START_MULTI_SELECT"}}function le(){return{type:"STOP_MULTI_SELECT"}}function ue(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function de(){return{type:"CLEAR_SELECTED_BLOCK"}}function pe(){return{type:"TOGGLE_SELECTION",isSelectionEnabled:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}function fe(e,t){return{type:"REPLACE_BLOCKS",uids:Object(O.castArray)(e),blocks:Object(O.castArray)(t),time:Date.now()}}function he(e,t){return fe(e,t)}function me(e){return function(t,n){return{uids:Object(O.castArray)(t),type:e,rootUID:n}}}var ve=me("MOVE_BLOCKS_DOWN"),be=me("MOVE_BLOCKS_UP");function ge(e,t,n,r,o){return{type:"MOVE_BLOCK_TO_POSITION",fromRootUID:t,toRootUID:n,uid:e,index:o,layout:r}}function ye(e,t,n){return ke([e],t,n)}function ke(e,t,n){return{type:"INSERT_BLOCKS",blocks:Object(O.castArray)(e),index:t,rootUID:n,time:Date.now()}}function _e(){return{type:"SHOW_INSERTION_POINT"}}function Oe(){return{type:"HIDE_INSERTION_POINT"}}function we(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Se(){return{type:"CHECK_TEMPLATE_VALIDITY"}}function Ee(){return{type:"SYNCHRONIZE_TEMPLATE"}}function je(e){return{type:"EDIT_POST",edits:e}}function Ce(){return{type:"REQUEST_POST_UPDATE",options:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}function Te(){return{type:"REFRESH_POST"}}function Pe(e,t){return{type:"TRASH_POST",postId:e,postType:t}}function Be(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function xe(){return Ce({autosave:!0})}function Ie(){return{type:"REDO"}}function De(){return{type:"UNDO"}}function Ae(){return{type:"CREATE_UNDO_LEVEL"}}function Ne(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{type:"REMOVE_BLOCKS",uids:Object(O.castArray)(e),selectPrevious:t}}function Le(e){return Ne([e],!(arguments.length>1&&void 0!==arguments[1])||arguments[1])}function Re(e){return{type:"TOGGLE_BLOCK_MODE",uid:e}}function Ue(){return{type:"START_TYPING"}}function Me(){return{type:"STOP_TYPING"}}function Fe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.id,o=void 0===r?J()():r,i=n.isDismissible;return{type:"CREATE_NOTICE",notice:{id:o,status:e,content:t,isDismissible:void 0===i||i,spokenMessage:n.spokenMessage}}}function He(e){return{type:"REMOVE_NOTICE",noticeId:e}}var Ve=Object(O.partial)(Fe,"success"),Ke=Object(O.partial)(Fe,"info"),We=Object(O.partial)(Fe,"error"),ze=Object(O.partial)(Fe,"warning");function qe(e){return{type:"FETCH_SHARED_BLOCKS",id:e}}function Ge(e){return{type:"RECEIVE_SHARED_BLOCKS",results:e}}function Ye(e){return{type:"SAVE_SHARED_BLOCK",id:e}}function Xe(e){return{type:"DELETE_SHARED_BLOCK",id:e}}function $e(e,t){return{type:"UPDATE_SHARED_BLOCK_TITLE",id:e,title:t}}function Je(e){return{type:"CONVERT_BLOCK_TO_STATIC",uid:e}}function Qe(e){return{type:"CONVERT_BLOCK_TO_SHARED",uid:e}}function Ze(e,t,n){var r=Object(w.createBlock)(Object(w.getDefaultBlockName)(),e);return l()({},ye(r,n,t),{isProvisional:!0})}function et(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",id:e,settings:t}}function tt(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}var nt=n(80),rt=n(154),ot=n(99),it=n.n(ot),st=9,at="post-update",ct=/%(?:postname|pagename)%/,lt=3,ut=2,dt=1,pt=0,ft=[];function ht(e){return e.editor.past.length>0}function mt(e){return e.editor.future.length>0}function vt(e){return"auto-draft"===yt(e).status}function bt(e){return e.editor.isDirty||$n(e,bt)}function gt(e){return!bt(e)&&vt(e)}function yt(e){return e.currentPost}function kt(e){return e.currentPost.type}function _t(e){return yt(e).id||null}function Ot(e){return Object(O.get)(yt(e),["revisions","count"],0)}function wt(e){return Object(O.get)(yt(e),["revisions","last_id"],null)}function St(e){return e.editor.present.edits}function Et(e,t){var n=yt(e);if(n.hasOwnProperty(t))return n[t]}function jt(e,t){var n=St(e);switch(t){case"content":return An(e)}return n.hasOwnProperty(t)?n[t]:Et(e,t)}function Ct(e,t){if(!Rt(e))return null;var n=Lt(e);return n.hasOwnProperty(t)?n[t]:void 0}function Tt(e){var t=jt(e,"status"),n=jt(e,"password");return"private"===t?"private":n?"password":"public"}function Pt(e){return"pending"===yt(e).status}function Bt(e){var t=yt(e);return-1!==["publish","private"].indexOf(t.status)||"future"===t.status&&Object(rt.moment)(t.date).isBefore(Object(rt.moment)())}function xt(e){return"future"===yt(e).status&&!Bt(e)}function It(e){var t=yt(e);return bt(e)||-1===["publish","private","future"].indexOf(t.status)}function Dt(e){return!Pn(e)&&(!!jt(e,"title")||!!jt(e,"excerpt")||!At(e))}function At(e){return!Gt(e)&&!jt(e,"content")}function Nt(e){if(!Dt(e))return!1;if(!Rt(e))return!0;var t=Lt(e);return["title","excerpt","content"].some(function(n){return t[n]!==jt(e,n)})}function Lt(e){return e.autosave}function Rt(e){return!!Lt(e)}function Ut(e){var t=Object(rt.moment)(jt(e,"date")),n=Object(rt.moment)().add(1,"minute");return t.isAfter(n)}function Mt(e){var t=jt(e,"title");return t&&t.trim()||(t=gt(e)?Object(q.__)("New post"):Object(q.__)("(Untitled)")),t}function Ft(e){return yt(e).preview_link||null}var Ht=Object(nt.a)(function(){return[]},function(e,t){return Object(O.map)(hn(e,t),function(t){return Kt(e,t)})});function Vt(e,t){var n=e.editor.present.blocksByUID[t];return n?n.name:null}var Kt=Object(nt.a)(function(e,t){var n=e.editor.present.blocksByUID[t];if(!n)return null;var r=n.attributes,o=Object(w.getBlockType)(n.name);return o&&(r=Object(O.reduce)(o.attributes,function(t,n,o){return"meta"===n.source&&(t===r&&(t=l()({},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)),l()({},n,{attributes:r,innerBlocks:Wt(e,t)})},function(e,t){return[e.editor.present.blocksByUID[t],Ht(e,t),e.editor.present.edits.meta,e.currentPost.meta]});var Wt=Object(nt.a)(function(e,t){return Object(O.map)(hn(e,t),function(t){return Kt(e,t)})},function(e){return[e.editor.present.blockOrder,e.editor.present.blocksByUID]}),zt=Object(nt.a)(function(e,t){return t?Object(O.reduce)(e.editor.present.blocksByUID,function(e,n){return n.name===t?e+1:e},0):Object(O.size)(e.editor.present.blocksByUID)},function(e){return[e.editor.present.blocksByUID]}),qt=Object(nt.a)(function(e,t){return Object(O.map)(Object(O.castArray)(t),function(t){return Kt(e,t)})},function(e){return[e.editor.present.blocksByUID,e.editor.present.blockOrder,e.editor.present.edits.meta,e.currentPost.meta,e.editor.present.blocksByUID]});function Gt(e,t){return hn(e,t).length}function Yt(e){return e.blockSelection.start}function Xt(e){return e.blockSelection.end}function $t(e){var t=sn(e).length;return t||(e.blockSelection.start?1:0)}function Jt(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;return n===t.end&&n?n:null}function Zt(e){var t=Qt(e);return t?Kt(e,t):null}function en(e,t){var n=e.editor.present.blockOrder;for(var r in n)if(Object(O.includes)(n[r],t))return r;return null}function tn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=Object(O.get)(Zt(e),["uid"])),void 0===t&&(t=n<0?cn(e):ln(e)),!t)return null;var r=en(e,t);if(null===r)return null;var o=e.editor.present.blockOrder[r],i=o.indexOf(t)+1*n;return i<0?null:i===o.length?null:o[i]}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 sn=Object(nt.a)(function(e){var t=e.blockSelection,n=t.start,r=t.end;if(n===r)return[];var o=en(e,n);if(null===o)return[];var i=hn(e,o),s=i.indexOf(n),a=i.indexOf(r);return s>a?i.slice(a,s+1):i.slice(s,a+1)},function(e){return[e.editor.present.blockOrder,e.blockSelection.start,e.blockSelection.end]}),an=Object(nt.a)(function(e){var t=sn(e);return t.length?t.map(function(t){return Kt(e,t)}):ft},function(e){return[e.editor.present.blockOrder,e.blockSelection.start,e.blockSelection.end,e.editor.present.blocksByUID,e.editor.present.edits.meta,e.currentPost.meta]});function cn(e){return Object(O.first)(sn(e))||null}function ln(e){return Object(O.last)(sn(e))||null}function un(e,t){return cn(e)===t}function dn(e,t){return-1!==sn(e).indexOf(t)}function pn(e){var t=e.blockSelection,n=t.start;return n===t.end?null:n||null}function fn(e){var t=e.blockSelection,n=t.start,r=t.end;return n===r?null:r||null}function hn(e,t){return e.editor.present.blockOrder[t||""]||ft}function mn(e,t,n){return hn(e,n).indexOf(t)}function vn(e,t){var n=e.blockSelection,r=n.start;return r===n.end&&r===t}function bn(e,t){return Object(O.some)(hn(e,t),function(t){return vn(e,t)})}function gn(e,t){if(!t)return!1;var n=sn(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function yn(e){var t=e.blockSelection;return t.start!==t.end}function kn(e){return e.blockSelection.isMultiSelecting}function _n(e){return e.blockSelection.isEnabled}function On(e,t){return e.blocksMode[t]||"visual"}function wn(e){return e.isTyping}function Sn(e){var t=void 0,n=void 0,r=void 0,o=e.blockSelection.end;return o?(t=en(e,o)||void 0,n=Object(O.get)(Kt(e,o),["attributes","layout"]),r=mn(e,o,t)+1):r=hn(e).length,{rootUID:t,layout:n,index:r}}function En(e){return e.isInsertionPointVisible}function jn(e){return e.template.isValid}function Cn(e){return e.settings.template}function Tn(e){return e.settings.templateLock}function Pn(e){return e.saving.requesting}function Bn(e){return e.saving.successful}function xn(e){return!!e.saving.error}function In(e){return Pn(e)&&e.saving.isAutosave}function Dn(e){var t=hn(e),n=void 0;switch(1===t.length&&(n=Kt(e,t[0]).name),2===t.length&&"core/paragraph"===Kt(e,t[1]).name&&(n=Kt(e,t[0]).name),n){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":case"core-embed/youtube":case"core-embed/vimeo":return"video";case"core/audio":case"core-embed/spotify":case"core-embed/soundcloud":return"audio"}return null}var An=Object(nt.a)(function(e){var t=St(e);return"content"in t?t.content:Object(w.serialize)(Wt(e))},function(e){return[e.editor.present.edits.content,e.editor.present.blocksByUID,e.editor.present.blockOrder]});function Nn(e){return e.notices}var Ln=Object(nt.a)(function(e,t){var n=arguments.length>2&&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(w.getBlockType)(t);if(!o)return!1;var i=Zn(e),s=i.allowedBlockTypes,a=i.templateLock;if(!r(s,t,!0))return!1;if(!!a)return!1;var c=Jn(e,n),l=r(Object(O.get)(c,["supportedBlocks"]),t),u=r(o.parent,Vt(e,n));return null!==l&&null!==u?l||u:null!==l?l:null===u||u},function(e,t,n){return[e.blockListSettings[n],e.editor.present.blocksByUID[n],e.settings.allowedBlockTypes,e.settings.templateLock]});function Rn(e,t){return e.preferences.insertUsage[t]||null}var Un=Object(nt.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(Object(O.isBoolean)(t)||Object(O.isArray)(t))&&(it()("allowedBlockTypes",{version:"3.2",plugin:"Gutenberg"}),t=null);var n=function(e,t,n){return n?lt:t>0?ut:"common"===e?dt:pt},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=Object(w.getBlockTypes)().filter(function(n){return!!Object(w.hasBlockSupport)(n,"inserter",!0)&&Ln(e,n.name,t)}).map(function(t){var o=t.name,i=!1;Object(w.hasBlockSupport)(t.name,"multiple",!0)||(i=Object(O.some)(Wt(e),{name:t.name}));var s=Object(O.isArray)(t.parent),a=Rn(e,o)||{},c=a.time,l=a.count,u=void 0===l?0:l;return{id:o,name:t.name,initialAttributes:{},title:t.title,icon:t.icon,category:t.category,keywords:t.keywords,isDisabled:i,utility:n(t.category,u,s),frecency:r(c,u),hasChildBlocks:Object(w.hasChildBlocks)(t.name)}}),i=Kn(e).filter(function(n){if(!Ln(e,"core/block",t))return!1;var r=Kt(e,n.uid);if(!r)return!1;var o=Object(w.getBlockType)(r.name);return!!o&&!!Ln(e,o.name,t)}).map(function(t){var o="core/block/"+t.id,i=Kt(e,t.uid),s=Object(w.getBlockType)(i.name),a=Rn(e,o)||{},c=a.time,l=a.count,u=void 0===l?0:l,d=n("shared",u,!1),p=r(c,u);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:s.icon,category:"shared",keywords:[],isDisabled:!1,utility:d,frecency:p}});return Object(O.orderBy)([].concat(f()(o),f()(i)),["utility","frecency"],["desc","desc"])},function(e,t,n){return[e.blockListSettings[n],e.editor.present.blockOrder,e.editor.present.blocksByUID,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,e.sharedBlocks.data,Object(w.getBlockTypes)()]});function Mn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st;it()("getFrecentInserterItems",{version:"3.2",alternative:"getInserterItems",plugin:"Gutenberg"});var r=Un(e,t).filter(function(e){return e.utility>0});return Object(O.orderBy)(r,["utility","frecency"],["desc","desc"]).slice(0,n)}var Fn=Object(nt.a)(function(e,t){var n=e.sharedBlocks.data[t];if(!n)return null;var r=isNaN(parseInt(t));return l()({},n,{id:r?t:+t,isTemporary:r})},function(e,t){return[e.sharedBlocks.data[t]]});function Hn(e,t){return e.sharedBlocks.isSaving[t]||!1}function Vn(e,t){return!!e.sharedBlocks.isFetching[t]}function Kn(e){return Object(O.map)(e.sharedBlocks.data,function(t,n){return Fn(e,n)})}function Wn(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 zn(e){if(!Pn(e))return!1;if(!Bt(e))return!1;var t=Wn(e,at);return!!t&&!Bt(t)}function qn(e){return e.provisionalBlockUID}function Gn(e){var t=jt(e,"permalink_template");return ct.test(t)}function Yn(e){var t=Xn(e),n=t.prefix,r=t.postName,o=t.suffix;return Gn(e)?n+r+o:n}function Xn(e){var t=jt(e,"permalink_template"),n=jt(e,"slug")||jt(e,"generated_slug"),r=t.split(ct),o=a()(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function $n(e,t){var n=e.optimist;return!!n&&n.some(function(e){var n=e.beforeState;return n&&t(n)})}function Jn(e,t){return e.blockListSettings[t]}function Qn(e,t,n){return it()("getSupportedBlocks",{version:"3.2",alternative:"canInsertBlockType",plugin:"Gutenberg"}),Object(w.getBlockTypes)().filter(function(n){return Ln(e,n.name,t)}).map(function(e){return e.name})}function Zn(e){return e.settings}function er(e,t){var n=t.getState(),r=qn(n);if(r&&!vn(n,r))return Le(r,!1)}var tr={REQUEST_POST_UPDATE:function(e,t){var n=t.dispatch,r=(0,t.getState)(),o=yt(r),i=!!e.options.autosave;if((i?Nt:Dt)(r)){var s=St(r);i&&(s=Object(O.pick)(s,["title","content","excerpt"])),vt(r)&&(s=l()({status:"draft"},s));var a=l()({},s,{content:An(r),id:o.id}),c=wp.api.getPostTypeRoute(kt(r));n({type:"REQUEST_POST_UPDATE_START",optimist:{type:k.BEGIN,id:at},isAutosave:i}),n(l()({},te(a),{optimist:{id:at}}));var u=void 0;i?(a=l()({},Object(O.pick)(o,["title","content","excerpt"]),Lt(r),a,{parent:o.id}),u=X()({path:"/wp/v2/"+c+"/"+o.id+"/autosaves",method:"POST",data:a})):(n(He("SAVE_POST_NOTICE_ID")),n(He("AUTOSAVE_POST_NOTICE_ID")),u=X()({path:"/wp/v2/"+c+"/"+o.id,method:"PUT",data:a})),u.then(function(e){n((i?ee:Z)(e));var t=e.id!==o.id;n({type:"REQUEST_POST_UPDATE_SUCCESS",previousPost:o,post:e,optimist:{type:t?k.REVERT:k.COMMIT,id:at},isAutosave:i})},function(e){e=Object(O.get)(e,["responseJSON"],{code:"unknown_error",message:Object(q.__)("An unknown error occurred.")}),n({type:"REQUEST_POST_UPDATE_FAILURE",optimist:{type:k.REVERT,id:at},post:o,edits:s,error:e})})}},REQUEST_POST_UPDATE_SUCCESS:function(e,t){var n=e.previousPost,r=e.post,o=e.isAutosave,i=t.dispatch,s=t.getState;if(z()(St(s())).length&&i({type:"DIRTY_ARTIFICIALLY"}),!o){var a=["publish","private","future"],c=Object(O.includes)(a,n.status),l=Object(O.includes)(a,r.status),u=void 0,d=!0;c||l?c&&!l?(u=Object(q.__)("Post reverted to draft."),d=!1):u=!c&&l?{publish:Object(q.__)("Post published!"),private:Object(q.__)("Post published privately!"),future:Object(q.__)("Post scheduled!")}[r.status]:Object(q.__)("Post updated!"):u=null,u&&i(Ve(wp.element.createElement("p",null,u," ",d&&wp.element.createElement("a",{href:r.link},Object(q.__)("View post"))),{id:"SAVE_POST_NOTICE_ID",spokenMessage:u}))}},REQUEST_POST_UPDATE_FAILURE:function(e,t){var n=e.post,r=e.edits,o=e.error;if(!o||"rest_autosave_no_changes"!==o.code){var i=t.dispatch,s=["publish","private","future"],a=-1!==s.indexOf(n.status),c={publish:Object(q.__)("Publishing failed"),private:Object(q.__)("Publishing failed"),future:Object(q.__)("Scheduling failed")},l=a||-1===s.indexOf(r.status)?Object(q.__)("Updating failed"):c[r.status];i(We(l,{id:"SAVE_POST_NOTICE_ID"}))}},TRASH_POST:function(e,t){var n=t.dispatch,r=t.getState,o=e.postId,i=wp.api.getPostTypeRoute(kt(r()));n(He("TRASH_POST_NOTICE_ID")),X()({path:"/wp/v2/"+i+"/"+o,method:"DELETE"}).then(function(){var e=yt(r());n(Z(l()({},e,{status:"trash"})))},function(t){n(l()({},e,{type:"TRASH_POST_FAILURE",error:Object(O.get)(t,["responseJSON"],{code:"unknown_error",message:Object(q.__)("An unknown error occurred.")})}))})},TRASH_POST_FAILURE:function(e,t){var n=e.error.message&&"unknown_error"!==e.error.code?e.error.message:Object(q.__)("Trashing failed");t.dispatch(We(n,{id:"TRASH_POST_NOTICE_ID"}))},REFRESH_POST:function(e,t){var n=t.dispatch,r=(0,t.getState)(),o=yt(r),i=wp.api.getPostTypeRoute(kt(r));X()({path:"/wp/v2/"+i+"/"+o.id,data:{context:"edit"}}).then(function(e){n(Z(e))})},MERGE_BLOCKS:function(e,t){var n=t.dispatch,r=t.getState(),o=a()(e.blocks,2),i=o[0],s=o[1],c=Kt(r,i),u=Kt(r,s),d=Object(w.getBlockType)(c.name);if(d.merge){var p=c.name===u.name?[u]:Object(w.switchToBlockType)(u,c.name);if(p&&p.length){var h=d.merge(c.attributes,p[0].attributes);n(ae(c.uid,-1)),n(fe([c.uid,u.uid],[l()({},c,{attributes:l()({},c.attributes,h)})].concat(f()(p.slice(1)))))}}else n(ae(c.uid))},SETUP_EDITOR:function(e,t){var n=t.getState,r=e.post,o=e.autosave,i=n(),s=Cn(i),a=Tn(i),c=void 0,l=!0;r.content.raw?(c=Object(w.parse)(r.content.raw),l=!s||"all"!==a||Object(w.doBlocksMatchTemplate)(c,s)):c=s?Object(w.synchronizeBlocksWithTemplate)([],s):Object(w.getDefaultBlockForPostFormat)(r.format)?[Object(w.createBlock)(Object(w.getDefaultBlockForPostFormat)(r.format))]:[];var u={};"auto-draft"===r.status&&(u.title=r.title.raw);var d=void 0;if(o){var p=Object(q.__)("There is an autosave of this post that is more recent than the version below.");d=ze(wp.element.createElement("p",null,p," ",wp.element.createElement("a",{href:o.editLink},Object(q.__)("View the autosave"))),{id:"AUTOSAVE_POST_NOTICE_ID",spokenMessage:p})}return[we(l),ne(r,c,u)].concat(f()(d?[d]:[]))},SYNCHRONIZE_TEMPLATE:function(e,t){var n=(0,t.getState)(),r=Wt(n),o=Cn(n);return[re(Object(w.synchronizeBlocksWithTemplate)(r,o)),we(!0)]},CHECK_TEMPLATE_VALIDITY:function(e,t){var n=(0,t.getState)(),r=Wt(n),o=Cn(n),i=Tn(n);return we(!o||"all"!==i||Object(w.doBlocksMatchTemplate)(r,o))},FETCH_SHARED_BLOCKS:function(e,t){var n=wp.api.getPostTypeRoute("wp_block");if(n){var r=e.id,o=t.dispatch;(r?X()({path:"/wp/v2/"+n+"/"+r}):X()({path:"/wp/v2/"+n+"?per_page=-1"})).then(function(e){o(Ge(Object(O.map)(Object(O.castArray)(e),function(e){return{sharedBlock:e,parsedBlock:Object(w.parse)(e.content)[0]}}))),o({type:"FETCH_SHARED_BLOCKS_SUCCESS",id:r})},function(e){o({type:"FETCH_SHARED_BLOCKS_FAILURE",id:r,error:e.responseJSON||{code:"unknown_error",message:Object(q.__)("An unknown error occurred.")}})})}},RECEIVE_SHARED_BLOCKS:function(e){return oe(Object(O.map)(e.results,"parsedBlock"))},SAVE_SHARED_BLOCK:function(e,t){var n=wp.api.getPostTypeRoute("wp_block");if(n){var r=e.id,o=t.dispatch,i=t.getState(),s=Fn(i,r),a=s.uid,c=s.title,l=s.isTemporary,u=Kt(i,a),d=u.name,p=u.attributes,f=u.innerBlocks,h=Object(w.serialize)(Object(w.createBlock)(d,p,f)),m=l?{title:c,content:h}:{id:r,title:c,content:h},v=l?"/wp/v2/"+n:"/wp/v2/"+n+"/"+r,b=l?"POST":"PUT";X()({path:v,data:m,method:b}).then(function(e){o({type:"SAVE_SHARED_BLOCK_SUCCESS",updatedId:e.id,id:r});var t=l?Object(q.__)("Block created."):Object(q.__)("Block updated.");o(Ve(t,{id:"SHARED_BLOCK_NOTICE_ID"}))},function(e){o({type:"SAVE_SHARED_BLOCK_FAILURE",id:r});var t=Object(q.__)("An unknown error occurred.");o(We(Object(O.get)(e.responseJSON,["message"],t),{id:"SHARED_BLOCK_NOTICE_ID",spokenMessage:t}))})}},DELETE_SHARED_BLOCK:function(e,t){var n=wp.api.getPostTypeRoute("wp_block");if(n){var r=e.id,o=t.getState,i=t.dispatch,s=Fn(o(),r);if(s&&!s.isTemporary){var a=Wt(o()).filter(function(e){return Object(w.isSharedBlock)(e)&&e.attributes.ref===r}).map(function(e){return e.uid}),c=Object(O.uniqueId)();i({type:"REMOVE_SHARED_BLOCK",id:r,optimist:{type:k.BEGIN,id:c}}),i(Ne([].concat(f()(a),[s.uid]))),X()({path:"/wp/v2/"+n+"/"+r,method:"DELETE"}).then(function(){i({type:"DELETE_SHARED_BLOCK_SUCCESS",id:r,optimist:{type:k.COMMIT,id:c}});var e=Object(q.__)("Block deleted.");i(Ve(e,{id:"SHARED_BLOCK_NOTICE_ID"}))},function(e){i({type:"DELETE_SHARED_BLOCK_FAILURE",id:r,optimist:{type:k.REVERT,id:c}});var t=Object(q.__)("An unknown error occurred.");i(We(Object(O.get)(e.responseJSON,["message"],t),{id:"SHARED_BLOCK_NOTICE_ID",spokenMessage:t}))})}}},CONVERT_BLOCK_TO_STATIC:function(e,t){var n=t.getState(),r=Kt(n,e.uid),o=Fn(n,r.attributes.ref),i=Kt(n,o.uid),s=Object(w.createBlock)(i.name,i.attributes);t.dispatch(he(r.uid,s))},CONVERT_BLOCK_TO_SHARED:function(e,t){var n=t.getState,r=t.dispatch,o=Kt(n(),e.uid),i={id:Object(O.uniqueId)("shared"),uid:o.uid,title:Object(q.__)("Untitled shared block")};r(Ge([{sharedBlock:i,parsedBlock:o}])),r(Ye(i.id)),r(he(o.uid,Object(w.createBlock)("core/block",{ref:i.id,layout:o.attributes.layout}))),r(oe([o]))},CREATE_NOTICE:function(e){var t=e.notice,n=t.content,r=t.spokenMessage||n;Object(G.speak)(r,"assertive")},EDIT_POST:function(e,t){var n=t.getState,r=Object(O.get)(e,["edits","format"]);if(r){var o=Object(w.getDefaultBlockForPostFormat)(r);return o&&0===Gt(n())?ye(Object(w.createBlock)(o)):void 0}},CLEAR_SELECTED_BLOCK:er,SELECT_BLOCK:er,MULTI_SELECT:er,REMOVE_BLOCKS:function(e,t){var n=t.getState,r=t.dispatch;if(e.selectPrevious){var o=e.uids[0],i=n(),s=Zt(i),a=l()({},i,{editor:{present:Object(O.last)(i.editor.past)}}),c=en(a,o),u=nn(a,o)||c;u!==s&&r(ae(u))}}};var nr=function(e){var t,n=[H()(tr),K.a],r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}};return t=n.map(function(e){return e(o)}),r=O.flowRight.apply(void 0,f()(t))(e.dispatch),e.dispatch=r,e},rr="GUTENBERG_PREFERENCES_"+window.userSettings.uid,or=nr(Object(i.registerReducer)("core/editor",Object(i.withRehydration)(M,"preferences",rr)));Object(i.loadAndPersist)(or,M,"preferences",rr),Object(i.registerSelectors)("core/editor",o),Object(i.registerActions)("core/editor",r);var ir=n(16),sr=n.n(ir),ar=n(2),cr=n(35),lr=n(11),ur=n.n(lr),dr=n(8),pr=n.n(dr),fr=n(7),hr=n.n(fr),mr=n(10),vr=n.n(mr),br=n(9),gr=n.n(br),yr=n(3),kr=Object(ar.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:O.noop,uid:null}),_r=kr.Consumer,Or=kr.Provider,wr=function(e){return Object(ar.createHigherOrderComponent)(function(t){return function(n){return wp.element.createElement(_r,null,function(r){return wp.element.createElement(t,l()({},n,e(r,n)))})}},"withBlockEditContext")},Sr=Object(ar.createHigherOrderComponent)(function(e){return function(t){return wp.element.createElement(_r,null,function(n){return n.isSelected&&wp.element.createElement(e,t)})}},"ifBlockEditSelected"),Er=[];var jr=Object(ar.compose)([wr(function(e){return{blockName:e.name}}),function(e){return function(t){function n(){pr()(this,n);var e=vr()(this,(n.__proto__||ur()(n)).call(this));return e.state={completers:Er},e.saveParentRef=e.saveParentRef.bind(e),e.onFocus=e.onFocus.bind(e),e}return gr()(n,t),hr()(n,[{key:"componentDidUpdate",value:function(){this.parentNode.contains(document.activeElement)&&this.hasStaleCompleters()&&this.updateCompletersState()}},{key:"onFocus",value:function(){this.hasStaleCompleters()&&this.updateCompletersState()}},{key:"hasStaleCompleters",value:function(){return!("lastFilteredCompletersProp"in this.state)||this.state.lastFilteredCompletersProp!==this.props.completers}},{key:"updateCompletersState",value:function(){var e=this.props,t=e.blockName,n=e.completers,r=n;Object(cr.hasFilter)("editor.Autocomplete.completers")&&(n=Object(cr.applyFilters)("editor.Autocomplete.completers",n&&n.map(O.clone),t)),this.setState({lastFilteredCompletersProp:r,completers:n||Er})}},{key:"saveParentRef",value:function(e){this.parentNode=e}},{key:"render",value:function(){var t=this.state.completers,n=l()({},this.props,{completers:t});return wp.element.createElement("div",{onFocus:this.onFocus,ref:this.saveParentRef},wp.element.createElement(e,l()({onFocus:this.onFocus},n)))}}]),n}(ar.Component)}])(yr.Autocomplete);n(620),n(619);function Cr(e){var t=e.icon,n=e.showColors,r=void 0!==n&&n,o=e.className,i=function(e){return"string"==typeof e?wp.element.createElement(yr.Dashicon,{icon:e}):"function"==typeof e?e.prototype instanceof ar.Component?Object(ar.createElement)(e):e():e||null}(t&&t.src?t.src:t);return r?wp.element.createElement("div",{style:{backgroundColor:t&&t.background,color:t&&t.foreground},className:sr()("editor-block-icon__colors",o)},i):i}function Tr(){return Object(i.select)("core/editor").getBlockInsertionPoint().rootUID}function Pr(e){return Object(i.select)("core/editor").getInserterItems(e)}function Br(){var e=Object(i.select)("core/editor").getSelectedBlock();return e?e.name:null}var xr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getBlockInsertionParentUID,n=void 0===t?Tr:t,r=e.getInserterItems,o=void 0===r?Pr:r,i=e.getSelectedBlockName,s=void 0===i?Br:i;return{name:"blocks",className:"editor-autocompleters__block",triggerPrefix:"/",options:function(){var e=s();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[].concat(f()(r),[t])},getOptionLabel:function(e){var t=e.icon,n=e.title;return[wp.element.createElement(Cr,{key:"icon",icon:t&&t.src}),n]},allowContext:function(e,t){return!(/\S/.test(e.toString())||/\S/.test(t.toString()))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes;return{action:"replace",value:Object(w.createBlock)(t,n)}},isOptionDisabled:function(e){return e.isDisabled}}}(),Ir={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",options:function(e){var t="";return e&&(t="?search="+encodeURIComponent(e)),X()({path:"/wp/v2/users"+t})},isDebounced:!0,getOptionKeywords:function(e){return[e.slug,e.name]},getOptionLabel:function(e){return[wp.element.createElement("img",{key:"avatar",className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}),wp.element.createElement("span",{key:"name",className:"editor-autocompleters__user-name"},e.name),wp.element.createElement("span",{key:"slug",className:"editor-autocompleters__user-slug"},e.slug)]},allowNode:function(){return!0},getOptionCompletion:function(e){return"@"+e.slug}},Dr=[{icon:"editor-alignleft",title:Object(q.__)("Align left"),align:"left"},{icon:"editor-aligncenter",title:Object(q.__)("Align center"),align:"center"},{icon:"editor-alignright",title:Object(q.__)("Align right"),align:"right"}];function Ar(e){var t=e.value,n=e.onChange;return wp.element.createElement(yr.Toolbar,{controls:Dr.map(function(e){var r=e.align,o=t===r;return l()({},e,{isActive:o,onClick:function(e){return function(){return n(t===e?void 0:e)}}(r)})})})}var Nr={left:{icon:"align-left",title:Object(q.__)("Align left")},center:{icon:"align-center",title:Object(q.__)("Align center")},right:{icon:"align-right",title:Object(q.__)("Align right")},wide:{icon:"align-wide",title:Object(q.__)("Wide width")},full:{icon:"align-full-width",title:Object(q.__)("Full width")}},Lr=["left","center","right","wide","full"],Rr=["wide","full"];var Ur=Object(i.withSelect)(function(e){return{wideControlsEnabled:e("core/editor").getEditorSettings().alignWide}})(function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?Lr:r,i=e.wideControlsEnabled,s=void 0!==i&&i?o:o.filter(function(e){return-1===Rr.indexOf(e)});return wp.element.createElement(yr.Toolbar,{controls:s.map(function(e){return l()({},Nr[e],{isActive:t===e,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r})})}),Mr=Object(yr.createSlotFill)("BlockControls"),Fr=Mr.Fill,Hr=Mr.Slot,Vr=Sr(function(e){var t=e.controls,n=e.children;return wp.element.createElement(Fr,null,wp.element.createElement(yr.Toolbar,{controls:t}),n)});Vr.Slot=Hr;var Kr=Vr,Wr=Object(yr.withFilters)("editor.BlockEdit")(function(e){var t=e.attributes,n=void 0===t?{}:t,r=e.name,o=Object(w.getBlockType)(r);if(!o)return null;var i=Object(w.hasBlockSupport)(o,"className",!0)?Object(w.getBlockDefaultClassName)(r):null,s=sr()(i,n.className),a=o.edit||o.save;return wp.element.createElement(a,l()({},e,{className:s}))}),zr=function(e){function t(e){pr()(this,t);var n=vr()(this,(t.__proto__||ur()(t)).call(this,e));return n.setFocusedElement=n.setFocusedElement.bind(n),n.state={focusedElement:null,setFocusedElement:n.setFocusedElement},n}return gr()(t,e),hr()(t,[{key:"getChildContext",value:function(){var e=this.props.user;return{canUserUseUnfilteredHTML:Object(O.get)(e.data,["capabilities","unfiltered_html"],!1)}}},{key:"setFocusedElement",value:function(e){this.setState(function(t){return t.focusedElement===e?null:{focusedElement:e}})}},{key:"render",value:function(){return wp.element.createElement(Or,{value:this.state},wp.element.createElement(Wr,this.props))}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.id;return{name:e.name,isSelected:e.isSelected,uid:t}}}]),t}(ar.Component);zr.childContextTypes={canUserUseUnfilteredHTML:O.noop};var qr=Object(ar.compose)([Object(i.withSelect)(function(e){return{postType:e("core/editor").getEditedPostAttribute("type")}}),Object(yr.withAPIData)(function(e){return{user:"/wp/v2/users/me?post_type="+e.postType+"&context=edit"}})])(zr),Gr=Object(yr.createSlotFill)("BlockFormatControls"),Yr=Gr.Fill,Xr=Gr.Slot,$r=Sr(Yr);$r.Slot=Xr;var Jr=$r,Qr=Object(ar.createHigherOrderComponent)(Object(i.withSelect)(function(e){var t=e("core/editor").getEditorSettings(),n=t.colors,r=t.disableCustomColors;return{colors:n,disableCustomColors:r,hasColorsToChoose:!Object(O.isEmpty)(n)||!r}}),"withColorContext"),Zr=Qr(yr.ColorPalette),eo=function(e,t,n){if(t){var r=Object(O.find)(e,{name:t});return r&&r.color}if(n)return n},to=function(e,t){var n=Object(O.find)(e,{color:t});return n?n.name:void 0};function no(e,t){if(e&&t)return"has-"+Object(O.kebabCase)(t)+"-"+e}var ro=n(25),oo=n(130),io=n.n(oo),so=[],ao=function(e){return Object(ar.createHigherOrderComponent)(Object(ar.compose)([Object(i.withSelect)(function(e){var t=e("core/editor").getEditorSettings();return{colors:Object(O.get)(t,["colors"],so)}}),function(t){return function(n){function r(){pr()(this,r);var e=vr()(this,(r.__proto__||ur()(r)).apply(this,arguments));return e.memoizedGetColor=io()(e.memoizedGetColor,{maxSize:1}),e.memoizedSetColor=io()(e.memoizedSetColor,{maxSize:1}),e}return gr()(r,n),hr()(r,[{key:"memoizedGetColor",value:function(e){return io()(function(t,n,r){return{name:t,class:no(r,t),value:eo(e,t,n)}})}},{key:"memoizedSetColor",value:function(e,t){return io()(function(n,r){return function(e,t,n,r){return function(o){var i,s=Object(O.find)(e,{color:o});r((i={},b()(i,t,s&&s.name?s.name:void 0),b()(i,n,s&&s.name?void 0:o),i))}}(t,n,r,e)})}},{key:"render",value:function(){return wp.element.createElement(t,l()({},this.props,{colors:void 0},e(this.memoizedGetColor(this.props.colors),this.memoizedSetColor(this.props.setAttributes,this.props.colors),this.props)))}}]),r}(ar.Component)}]),"withColors")},co=[],lo=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(Object(O.isFunction)(t[0]))return Object(ro.deprecated)("Using withColors( mapGetSetColorToProps ) ",{version:"3.3",alternative:"withColors( colorAttributeName, { secondColorAttributeName: 'color-context' }, ... )"}),ao(t[0]);var r=Object(O.reduce)(t,function(e,t){return l()({},e,Object(O.isString)(t)?b()({},t,Object(O.kebabCase)(t)):t)},{});return Object(ar.createHigherOrderComponent)(Object(ar.compose)([Object(i.withSelect)(function(e){var t=e("core/editor").getEditorSettings();return{colors:Object(O.get)(t,["colors"],co)}}),function(e){return function(t){function n(e){pr()(this,n);var t=vr()(this,(n.__proto__||ur()(n)).call(this,e));return t.setters=t.createSetters(),t.state={},t}return gr()(n,t),hr()(n,[{key:"createSetters",value:function(){var e=this;return Object(O.reduce)(r,function(t,n,r){var o=Object(O.upperFirst)(r),i="custom"+o;return t["set"+o]=e.createSetColor(r,i),t},{})}},{key:"createSetColor",value:function(e,t){var n=this;return function(r){var o,i=Object(O.find)(n.props.colors,{color:r});n.props.setAttributes((o={},b()(o,e,i&&i.name?i.name:void 0),b()(o,t,i&&i.name?void 0:r),o))}}},{key:"render",value:function(){return wp.element.createElement(e,l()({},this.props,{colors:void 0},this.state,this.setters))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.attributes,o=e.colors;return Object(O.reduce)(r,function(e,r,i){var s=n[i],a=eo(o,s,n["custom"+Object(O.upperFirst)(i)]),c=t[i],l=Object(O.get)(c,["value"]);return e[i]=l===a&&c?c:{name:s,class:no(r,s),value:a},e},{})}}]),n}(ar.Component)}]),"withColors")},uo=n(178),po=n.n(uo);n(618);var fo=function(e){var t=e.backgroundColor,n=e.textColor,r=e.isLargeText,o=e.fallbackBackgroundColor,i=e.fallbackTextColor;if(!t&&!o||!n&&!i)return null;var s=po()(t||o),a=po()(n||i);if(1!==s.getAlpha()||1!==a.getAlpha()||po.a.isReadable(s,a,{level:"AA",size:r?"large":"small"}))return null;var c=s.getBrightness()<a.getBrightness()?Object(q.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(q.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return wp.element.createElement("div",{className:"editor-contrast-checker"},wp.element.createElement(yr.Notice,{status:"warning",isDismissible:!1},c))},ho=(n(617),Object(yr.withFilters)("editor.MediaUpload")(function(){return null}));function mo(e){var t=e.allowedType,n=e.filesList,r=e.maxUploadFileSize,o=e.onError,s=void 0===o?O.noop:o,a=e.onFileChange,c=Object(i.select)("core/editor").getCurrentPostId();Object(ro.mediaUpload)({allowedType:t,filesList:n,onFileChange:a,additionalData:{post:c},maxUploadFileSize:r,onError:function(e){var t=e.message;return s(t)}})}var vo=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.state={src:""},e.onChangeSrc=e.onChangeSrc.bind(e),e.onSubmitSrc=e.onSubmitSrc.bind(e),e.onUpload=e.onUpload.bind(e),e.onFilesUpload=e.onFilesUpload.bind(e),e}return gr()(t,e),hr()(t,[{key:"componentDidMount",value:function(){this.setState({src:Object(O.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(O.get)(e.value,["src"],"")!==Object(O.get)(this.props.value,["src"],"")&&this.setState({src:Object(O.get)(this.props.value,["src"],"")})}},{key:"onChangeSrc",value:function(e){this.setState({src:e.target.value})}},{key:"onSubmitSrc",value:function(e){e.preventDefault(),this.state.src&&this.props.onSelectUrl(this.state.src)}},{key:"onUpload",value:function(e){this.onFilesUpload(e.target.files)}},{key:"onFilesUpload",value:function(e){var t=this.props,n=t.onSelect,r=t.type,o=t.multiple,i=t.onError;mo({allowedType:r,filesList:e,onFileChange:o?n:function(e){var t=a()(e,1)[0];return n(t)},onError:i})}},{key:"render",value:function(){var e=this.props,t=e.type,n=e.accept,r=e.icon,o=e.className,i=e.labels,s=e.onSelect,a=e.value,c=void 0===a?{}:a,l=e.onSelectUrl,u=e.onHTMLDrop,d=void 0===u?O.noop:u,p=e.multiple,f=void 0!==p&&p,h=e.notices;return wp.element.createElement(yr.Placeholder,{icon:r,label:i.title,instructions:Object(q.sprintf)(Object(q.__)("Drag %s, upload a new one or select a file from your library."),i.name),className:sr()("editor-media-placeholder",o),notices:h},wp.element.createElement(yr.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:d}),l&&wp.element.createElement("form",{onSubmit:this.onSubmitSrc},wp.element.createElement("input",{type:"url",className:"components-placeholder__input",placeholder:Object(q.__)("Enter URL here…"),onChange:this.onChangeSrc,value:this.state.src}),wp.element.createElement(yr.Button,{isLarge:!0,type:"submit"},Object(q.__)("Use URL"))),wp.element.createElement(yr.FormFileUpload,{isLarge:!0,className:"editor-media-placeholder__upload-button",onChange:this.onUpload,accept:n,multiple:f},Object(q.__)("Upload")),wp.element.createElement(ho,{gallery:f,multiple:f,onSelect:s,type:t,value:c.id,render:function(e){var t=e.open;return wp.element.createElement(yr.Button,{isLarge:!0,onClick:t},Object(q.__)("Media Library"))}}))}}]),t}(ar.Component),bo=function(e){function t(){return pr()(this,t),vr()(this,(t.__proto__||ur()(t)).apply(this,arguments))}return gr()(t,e),hr()(t,[{key:"componentDidMount",value:function(){it()("wp.editor.ImagePlaceholder",{version:"3.2",alternative:"wp.editor.MediaPlaceholder",plugin:"Gutenberg"})}},{key:"render",value:function(){var e=this.props,t=e.label,n=e.onSelectImage,r=e.multiple,o=void 0!==r&&r,i=d()(e,["label","onSelectImage","multiple"]);return wp.element.createElement(vo,l()({labels:{title:t,name:o?Object(q.__)("images"):Object(q.__)("an image")},onSelect:n,accept:"image/*",type:"image",multiple:o},i))}}]),t}(ar.Component),go=n(131),yo=(n(616),n(615),n(145)),ko=n.n(yo),_o=(n(180),n(167)),Oo=n.n(_o),wo=n(36);n(614);function So(e,t,n,r,o,i){var s=n+1;return e>1?function(e,t,n,r,o){var i=t+1;if(o<0&&n)return Object(q.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(q.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(q.sprintf)(Object(q.__)("Move %(selectedCount)d blocks from position %(position)d up by one place"),{selectedCount:e,position:i});if(o>0&&!r)return Object(q.sprintf)(Object(q.__)("Move %(selectedCount)d blocks from position %(position)s down by one place"),{selectedCount:e,position:i})}(e,n,r,o,i):r&&o?Object(q.sprintf)(Object(q.__)("Block %s is the only block, and cannot be moved"),t):i>0&&!o?Object(q.sprintf)(Object(q.__)("Move %(type)s block from position %(position)d down to position %(newPosition)d"),{type:t,position:s,newPosition:s+1}):i>0&&o?Object(q.sprintf)(Object(q.__)("Block %s is at the end of the content and can’t be moved down"),t):i<0&&!r?Object(q.sprintf)(Object(q.__)("Move %(type)s block from position %(position)d up to position %(newPosition)d"),{type:t,position:s,newPosition:s-1}):i<0&&r?Object(q.sprintf)(Object(q.__)("Block %s is at the beginning of the content and can’t be moved up"),t):void 0}var Eo=wp.element.createElement("svg",{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18","aria-hidden":!0,role:"img",focusable:"false"},wp.element.createElement("polygon",{points:"9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 "})),jo=wp.element.createElement("svg",{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18","aria-hidden":!0,role:"img",focusable:"false"},wp.element.createElement("polygon",{points:"9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "})),Co=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.state={isFocused:!1},e.onFocus=e.onFocus.bind(e),e.onBlur=e.onBlur.bind(e),e}return gr()(t,e),hr()(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.uids,s=e.blockType,a=e.firstIndex,c=e.isLocked,l=e.instanceId,u=e.isHidden,d=this.state.isFocused,p=Object(O.castArray)(i).length;return c?null:wp.element.createElement("div",{className:sr()("editor-block-mover",{"is-visible":d||!u})},wp.element.createElement(yr.IconButton,{className:"editor-block-mover__control",onClick:r?null:t,icon:Eo,label:Object(q.__)("Move up"),"aria-describedby":"editor-block-mover__up-description-"+l,"aria-disabled":r,onFocus:this.onFocus,onBlur:this.onBlur}),wp.element.createElement(yr.IconButton,{className:"editor-block-mover__control",onClick:o?null:n,icon:jo,label:Object(q.__)("Move down"),"aria-describedby":"editor-block-mover__down-description-"+l,"aria-disabled":o,onFocus:this.onFocus,onBlur:this.onBlur}),wp.element.createElement("span",{id:"editor-block-mover__up-description-"+l,className:"editor-block-mover__description"},So(p,s&&s.title,a,r,o,-1)),wp.element.createElement("span",{id:"editor-block-mover__down-description-"+l,className:"editor-block-mover__description"},So(p,s&&s.title,a,r,o,1)))}}]),t}(ar.Component),To=Object(ar.compose)(Object(i.withSelect)(function(e,t){var n=t.uids,r=t.rootUID,o=e("core/editor"),i=o.getBlock,s=o.getBlockIndex,a=o.getEditorSettings,c=Object(O.first)(Object(O.castArray)(n)),l=i(c),u=a().templateLock;return{firstIndex:s(c,r),blockType:l?Object(w.getBlockType)(l.name):null,isLocked:"all"===u}}),Object(i.withDispatch)(function(e,t){var n=t.uids,r=t.rootUID,o=e("core/editor"),i=o.moveBlocksDown,s=o.moveBlocksUp;return{onMoveDown:Object(O.partial)(i,n,r),onMoveUp:Object(O.partial)(s,n,r)}}),yr.withInstanceId)(Co),Po=(n(613),function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.onFilesDrop=e.onFilesDrop.bind(e),e.onHTMLDrop=e.onHTMLDrop.bind(e),e.onDrop=e.onDrop.bind(e),e}return gr()(t,e),hr()(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(w.findTransform)(Object(w.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(w.rawHandler)({HTML:e,mode:"BLOCKS"});n.length&&this.props.insertBlocks(n,this.getInsertIndex(t))}},{key:"onDrop",value:function(e,t){if(e.dataTransfer){var n=void 0,r=void 0,o=void 0,i=void 0;try{var s=JSON.parse(e.dataTransfer.getData("text"));n=s.uid,r=s.type,o=s.rootUID,i=s.fromIndex}catch(e){return}if("block"===r){var a=this.props.index,c=this.getInsertIndex(t),l=a&&i<a&&o===this.props.rootUID?c-1:c;this.props.moveBlockToPosition(n,o,l)}}}},{key:"render",value:function(){var e=this.props,t=e.isLocked,n=e.index;if(t)return null;var r=void 0===n;return wp.element.createElement(yr.DropZone,{className:sr()("editor-block-drop-zone",{"is-appender":r}),onFilesDrop:this.onFilesDrop,onHTMLDrop:this.onHTMLDrop,onDrop:this.onDrop})}}]),t}(ar.Component)),Bo=Object(ar.compose)(Object(i.withDispatch)(function(e,t){var n=e("core/editor"),r=n.insertBlocks,o=n.updateBlockAttributes,i=n.moveBlockToPosition;return{insertBlocks:function(e,n){var o=t.rootUID,i=t.layout;i&&(e=Object(O.castArray)(e).map(function(e){return Object(w.cloneBlock)(e,{layout:i})})),r(e,n,o)},updateBlockAttributes:function(){o.apply(void 0,arguments)},moveBlockToPosition:function(e,n,r){var o=t.rootUID,s=t.layout;i(e,n,o,s,r)}}}),Object(i.withSelect)(function(e){return{isLocked:!!e("core/editor").getEditorSettings().templateLock}}))(Po);n(612);var xo=Object(ar.compose)([Object(i.withSelect)(function(e,t){var n=t.uid,r=e("core/editor"),o=r.getBlock,i=r.getBlockMode,s=o(n);return{mode:i(n),blockType:s?Object(w.getBlockType)(s.name):null}}),Object(i.withDispatch)(function(e,t){var n=t.onToggle,r=void 0===n?O.noop:n,o=t.uid;return{onToggleMode:function(){e("core/editor").toggleBlockMode(o),r()}}})])(function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,i=void 0!==o&&o,s=e.role;if(!Object(w.hasBlockSupport)(t,"html",!0))return null;var a="visual"===n?Object(q.__)("Edit as HTML"):Object(q.__)("Edit visually");return wp.element.createElement(yr.IconButton,{className:"editor-block-settings-menu__control",onClick:r,icon:"html",label:i?a:void 0,role:s},!i&&a)});var Io=Object(ar.compose)(Object(i.withDispatch)(function(e,t){var n=t.uids;return{onRemove:function(){e("core/editor").removeBlocks(n)}}}),Object(i.withSelect)(function(e){return{isLocked:!!e("core/editor").getEditorSettings().templateLock}}))(function(e){var t=e.onRemove,n=e.onClick,r=void 0===n?O.noop:n,o=e.isLocked,i=e.role,s=d()(e,["onRemove","onClick","isLocked","role"]);if(o)return null;var a=Object(q.__)("Remove");return wp.element.createElement(yr.IconButton,l()({className:"editor-block-settings-remove",onClick:Object(O.flow)(t,r),icon:"trash",label:a,role:i},s))});var Do=Object(ar.compose)(Object(i.withSelect)(function(e,t){var n=t.uids,r=t.rootUID,o=e("core/editor"),i=o.getBlocksByUID,s=o.getBlockIndex,a=(0,o.getEditorSettings)().templateLock;return{blocks:i(n),index:s(Object(O.last)(Object(O.castArray)(n)),r),isLocked:!!a}}),Object(i.withDispatch)(function(e,t){var n=t.blocks,r=t.index,o=t.rootUID;return{onDuplicate:function(){var t=n.map(function(e){return Object(w.cloneBlock)(e)});e("core/editor").insertBlocks(t,r+1,o),t.length>1&&e("core/editor").multiSelect(Object(O.first)(t).uid,Object(O.last)(t).uid)}}}))(function(e){var t=e.blocks,n=e.onDuplicate,r=e.onClick,o=void 0===r?O.noop:r,i=e.isLocked,s=e.small,a=void 0!==s&&s,c=e.role,l=Object(O.every)(t,function(e){return Object(w.hasBlockSupport)(e.name,"multiple",!0)});if(i||!l)return null;var u=Object(q.__)("Duplicate");return wp.element.createElement(yr.IconButton,{className:"editor-block-settings-menu__control",onClick:Object(O.flow)(n,o),icon:"admin-page",label:a?u:void 0,role:c},!a&&u)});var Ao=Object(ar.compose)([Object(i.withSelect)(function(e,t){var n=t.uid,r=e("core/editor"),o=r.getBlock,i=r.getSharedBlock,s=o(n);return{sharedBlock:s&&Object(w.isSharedBlock)(s)?i(s.attributes.ref):null}}),Object(i.withDispatch)(function(e,t){var n=t.uid,r=t.onToggle,o=void 0===r?O.noop:r,i=e("core/editor"),s=i.convertBlockToShared,a=i.convertBlockToStatic,c=i.deleteSharedBlock;return{onConvertToStatic:function(){a(n),o()},onConvertToShared:function(){s(n),o()},onDelete:function(e){window.confirm(Object(q.__)("Are you sure you want to delete this Shared Block?\n\nIt will be permanently removed from all posts and pages that use it."))&&(c(e),o())}}})])(function(e){var t=e.sharedBlock,n=e.onConvertToStatic,r=e.onConvertToShared,o=e.onDelete,i=e.itemsRole;return wp.element.createElement(ar.Fragment,null,!t&&wp.element.createElement(yr.IconButton,{className:"editor-block-settings-menu__control",icon:"controls-repeat",onClick:r,role:i},Object(q.__)("Convert to Shared Block")),t&&wp.element.createElement(ar.Fragment,null,wp.element.createElement(yr.IconButton,{className:"editor-block-settings-menu__control",icon:"controls-repeat",onClick:n,role:i},Object(q.__)("Convert to Regular Block")),wp.element.createElement(yr.IconButton,{className:"editor-block-settings-menu__control",icon:"no",disabled:t.isTemporary,onClick:function(){return o(t.id)},role:i},Object(q.__)("Delete Shared Block"))))});var No=Object(ar.compose)(Object(i.withSelect)(function(e,t){var n=t.uid,r=e("core/editor"),o=r.getBlock,i=r.getCurrentPostType;return{block:o(n),postType:i()}}),Object(i.withDispatch)(function(e){return{onReplace:e("core/editor").replaceBlocks}}),Object(yr.withAPIData)(function(e){return{user:"/wp/v2/users/me?post_type="+e.postType+"&context=edit"}}))(function(e){var t=e.block,n=e.onReplace,r=e.small,o=e.user,i=e.role;if(!t||Object(w.getUnknownTypeHandlerName)()!==t.name)return null;var s=Object(q.__)("Convert to blocks");return wp.element.createElement(yr.IconButton,{className:"editor-block-settings-menu__control",onClick:function(){n(t.uid,Object(w.rawHandler)({HTML:Object(w.serialize)(t),mode:"BLOCKS",canUserUseUnfilteredHTML:Object(O.get)(o,["data","capabilities","unfiltered_html"],!1)}))},icon:"screenoptions",label:r?s:void 0,role:i},!r&&s)}),Lo=Object(yr.createSlotFill)("_BlockSettingsMenuFirstItem"),Ro=Lo.Fill,Uo=Lo.Slot;Ro.Slot=Uo;var Mo=Ro,Fo=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.state={isFocused:!1},e.onFocus=e.onFocus.bind(e),e.onBlur=e.onBlur.bind(e),e}return gr()(t,e),hr()(t,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.uids,r=t.onSelect,o=t.focus,i=t.rootUID,s=t.isHidden,a=this.state.isFocused,c=Object(O.castArray)(n),l=c.length,u=c[0];return wp.element.createElement("div",{className:sr()("editor-block-settings-menu",{"is-visible":a||!s})},wp.element.createElement(yr.Dropdown,{contentClassName:"editor-block-settings-menu__popover",position:"bottom left",renderToggle:function(t){var n=t.onToggle,i=t.isOpen,s=sr()("editor-block-settings-menu__toggle",{"is-opened":i}),a=i?Object(q.__)("Hide Options"):Object(q.__)("More Options");return wp.element.createElement(yr.IconButton,{className:s,onClick:function(){1===l&&r(u),n()},icon:"ellipsis",label:a,"aria-expanded":i,focus:o,onFocus:e.onFocus,onBlur:e.onBlur})},renderContent:function(e){var t=e.onClose;return wp.element.createElement(yr.NavigableMenu,{className:"editor-block-settings-menu__content"},wp.element.createElement(Mo.Slot,{fillProps:{onClose:t}}),1===l&&wp.element.createElement(xo,{uid:u,onToggle:t,role:"menuitem"}),1===l&&wp.element.createElement(No,{uid:u,role:"menuitem"}),wp.element.createElement(Do,{uids:n,rootUID:i,role:"menuitem"}),1===l&&wp.element.createElement(Ao,{uid:u,onToggle:t,itemsRole:"menuitem"}))}}),wp.element.createElement(Io,{uids:n,onFocus:this.onFocus,onBlur:this.onBlur}))}}]),t}(ar.Component),Ho=Object(i.withDispatch)(function(e){return{onSelect:function(t){e("core/editor").selectBlock(t)}}})(Fo);n(611);var Vo=function(e){var t=e.actions,n=e.children;return wp.element.createElement("div",{className:"editor-warning"},n,ar.Children.count(t)>0&&wp.element.createElement("div",{className:"editor-warning__actions"},ar.Children.map(t,function(e,t){return wp.element.createElement("span",{key:t,className:"editor-warning__action"},e)})))};var Ko=Object(i.withDispatch)(function(e,t){var n=t.block,r=e("core/editor").replaceBlock;return{convertToHTML:function(){r(n.uid,Object(w.createBlock)("core/html",{content:n.originalContent}))},convertToBlocks:function(){r(n.uid,Object(w.rawHandler)({HTML:n.originalContent,mode:"BLOCKS"}))}}})(function(e){var t=e.convertToHTML,n=e.convertToBlocks,r=!!Object(w.getBlockType)("core/html");return wp.element.createElement(Vo,{actions:[wp.element.createElement(yr.Button,{key:"convert",onClick:n,isLarge:!0,isPrimary:!r},Object(q.__)("Convert to Blocks")),r&&wp.element.createElement(yr.Button,{key:"edit",onClick:t,isLarge:!0,isPrimary:!0},Object(q.__)("Edit as HTML"))]},Object(q.__)("This block appears to have been modified externally."))}),Wo=wp.element.createElement(Vo,null,Object(q.__)("This block has encountered an error and cannot be previewed.")),zo=function(){return Wo},qo=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.state={hasError:!1},e}return gr()(t,e),hr()(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}(ar.Component),Go=n(177),Yo=n.n(Go),Xo=function(e){function t(e){pr()(this,t);var n=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return n.onChange=n.onChange.bind(n),n.onBlur=n.onBlur.bind(n),n.state={html:e.block.isValid?Object(w.getBlockContent)(e.block):e.block.originalContent},n}return gr()(t,e),hr()(t,[{key:"componentDidUpdate",value:function(e){Object(O.isEqual)(this.props.block.attributes,e.block.attributes)||this.setState({html:Object(w.getBlockContent)(this.props.block)})}},{key:"onBlur",value:function(){var e=Object(w.getBlockType)(this.props.block.name),t=Object(w.getBlockAttributes)(e,this.state.html,this.props.block.attributes),n=Object(w.isValidBlock)(this.state.html,e,t);this.props.onChange(this.props.uid,t,this.state.html,n)}},{key:"onChange",value:function(e){this.setState({html:e.target.value})}},{key:"render",value:function(){var e=this.state.html;return wp.element.createElement(Yo.a,{className:"editor-block-list__block-html-textarea",value:e,onBlur:this.onBlur,onChange:this.onChange})}}]),t}(ar.Component),$o=Object(ar.compose)([Object(i.withSelect)(function(e,t){return{block:e("core/editor").getBlock(t.uid)}}),Object(i.withDispatch)(function(e){return{onChange:function(t,n,r,o){e("core/editor").updateBlock(t,{attributes:n,originalContent:r,isValid:o})}}})])(Xo);var Jo=Object(i.withSelect)(function(e,t){return{name:(0,e("core/editor").getBlockName)(t.uid)}})(function(e){var t=e.name;if(!t)return null;var n=Object(w.getBlockType)(t);return n?n.title:null}),Qo=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.state={isFocused:!1},e.onFocus=e.onFocus.bind(e),e.onBlur=e.onBlur.bind(e),e}return gr()(t,e),hr()(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.uid,n=e.rootUID;return wp.element.createElement("div",{className:"editor-block-list__breadcrumb"},wp.element.createElement(yr.Toolbar,null,n&&wp.element.createElement(ar.Fragment,null,wp.element.createElement(Jo,{uid:n}),wp.element.createElement("span",{className:"editor-block-list__descendant-arrow"})),wp.element.createElement(Jo,{uid:t})))}}]),t}(ar.Component),Zo=Object(ar.compose)([Object(i.withSelect)(function(e,t){return{rootUID:(0,e("core/editor").getBlockRootUID)(t.uid)}})])(Qo),ei=window,ti=ei.Node,ni=ei.getSelection,ri=ro.keycodes.ESCAPE,oi=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.bindNode=e.bindNode.bind(e),e.focusToolbar=e.focusToolbar.bind(e),e.focusSelection=e.focusSelection.bind(e),e.switchOnKeyDown=Object(O.cond)([[Object(O.matchesProperty)(["keyCode"],ri),e.focusSelection]]),e}return gr()(t,e),hr()(t,[{key:"bindNode",value:function(e){this.toolbar=Object(ar.findDOMNode)(e)}},{key:"focusToolbar",value:function(){var e=wo.focus.tabbable.find(this.toolbar);e.length&&e[0].focus()}},{key:"focusSelection",value:function(){var e=ni();if(e){var t=e.focusNode;t.nodeType!==ti.ELEMENT_NODE&&(t=t.parentElement),t&&t.focus()}}},{key:"render",value:function(){var e=this.props,t=e.children,n=d()(e,["children"]);return wp.element.createElement(yr.NavigableMenu,l()({orientation:"horizontal",role:"toolbar",deep:!0,ref:this.bindNode,onKeyDown:this.switchOnKeyDown},n),wp.element.createElement(yr.KeyboardShortcuts,{bindGlobal:!0,eventName:"keydown",shortcuts:{"alt+f10":this.focusToolbar}}),t)}}]),t}(ar.Component);var ii=function(){return wp.element.createElement(oi,{className:"editor-block-contextual-toolbar","aria-label":Object(q.__)("Block Toolbar")},wp.element.createElement(ll,null))};var si=Object(i.withSelect)(function(e,t){var n=t.rootUID,r=e("core/editor"),o=r.getMultiSelectedBlockUids,i=r.isMultiSelecting,s=r.getBlockIndex,a=r.getBlockCount,c=o(),l=s(Object(O.first)(c),n),u=s(Object(O.last)(c),n);return{multiSelectedBlockUids:c,isSelecting:i(),isFirst:0===l,isLast:u+1===a()}})(function(e){var t=e.multiSelectedBlockUids,n=e.rootUID,r=e.isSelecting,o=e.isFirst,i=e.isLast;return r?null:[wp.element.createElement(To,{key:"mover",rootUID:n,uids:t,isFirst:o,isLast:i}),wp.element.createElement(Ho,{key:"menu",rootUID:n,uids:t,focus:!0})]}),ai=n(168),ci=n.n(ai);n(610),n(609);var li=function(e){var t=e.name,n=e.attributes,r=Object(w.createBlock)(t,n);return wp.element.createElement("div",{className:"editor-block-preview"},wp.element.createElement("div",{className:"editor-block-preview__title"},Object(q.__)("Preview")),wp.element.createElement("div",{className:"editor-block-preview__content"},wp.element.createElement(qr,{name:t,focus:!1,attributes:r.attributes,setAttributes:O.noop})))},ui=function(e){function t(){return pr()(this,t),vr()(this,(t.__proto__||ur()(t)).apply(this,arguments))}return gr()(t,e),hr()(t,[{key:"render",value:function(){var e=this.props,t=e.items,n=e.onSelect,r=e.onHover;return wp.element.createElement("ul",{role:"list",className:"editor-inserter__list"},t.map(function(e){var t=e.icon?{backgroundColor:e.icon.background,color:e.icon.foreground}:{},o=e.icon&&e.icon.shadowColor?{backgroundColor:e.icon.shadowColor}:{};return wp.element.createElement("li",{className:"editor-inserter__list-item",key:e.id},wp.element.createElement("button",{className:sr()("editor-inserter__item",Object(w.getBlockMenuDefaultClassName)(e.id),{"editor-inserter__item-has-children":e.hasChildBlocks}),onClick:function(){return n(e)},disabled:e.isDisabled,onMouseEnter:function(){return r(e)},onMouseLeave:function(){return r(null)},onFocus:function(){return r(e)},onBlur:function(){return r(null)},"aria-label":e.title},wp.element.createElement("span",{className:"editor-inserter__item-icon",style:t},wp.element.createElement(Cr,{icon:e.icon&&e.icon.src}),e.hasChildBlocks&&wp.element.createElement("span",{className:"editor-inserter__item-icon-stack",style:o})),wp.element.createElement("span",{className:"editor-inserter__item-title"},e.title)))}))}}]),t}(ar.Component);var di=Object(ar.compose)(Object(yr.ifCondition)(function(e){var t=e.items;return t&&t.length>0}),Object(i.withSelect)(function(e,t){var n=t.rootUID,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=d()(e,["rootBlockIcon","rootBlockTitle","items"]);return wp.element.createElement("div",{className:"editor-inserter__child-blocks"},(t||n)&&wp.element.createElement("div",{className:"editor-inserter__parent-block-header"},wp.element.createElement(Cr,{icon:t,showColors:!0}),n&&wp.element.createElement("h2",null,n)),wp.element.createElement(ui,l()({items:r},o)))}),pi=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.state={childItems:[],filterValue:"",hoveredItem:null,suggestedItems:[],sharedItems:[],itemsPerCategory:{},openPanels:["suggested"]},e.onChangeSearchInput=e.onChangeSearchInput.bind(e),e.onHover=e.onHover.bind(e),e.panels={},e.inserterResults=Object(ar.createRef)(),e}return gr()(t,e),hr()(t,[{key:"componentDidMount",value:function(){this.props.fetchSharedBlocks(),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})}},{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:[].concat(f()(t.state.openPanels),[e])}),t.props.setTimeout(function(){ci()(Object(ar.findDOMNode)(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.items,r=t.rootChildBlocks,o=function(e,t){var n=t.toLowerCase().trim(),r=function(e){return-1!==e.toLowerCase().indexOf(n)};return e.filter(function(e){return r(e.title)||Object(O.some)(e.keywords,r)})}(n,e),i=Object(O.filter)(o,function(e){var t=e.name;return Object(O.includes)(r,t)}),s=[];if(!e){var a=this.props.maxSuggestedItems||9;s=Object(O.filter)(n,function(e){return e.utility>0}).slice(0,a)}var c=Object(O.filter)(o,{category:"shared"}),l=function(e){return Object(O.findIndex)(Object(w.getCategories)(),function(t){return t.slug===e.category})},u=Object(O.flow)(function(e){return Object(O.filter)(e,function(e){return"shared"!==e.category})},function(e){return Object(O.sortBy)(e,l)},function(e){return Object(O.groupBy)(e,"category")})(o),d=this.state.openPanels;if(e!==this.state.filterValue)if(e){if(c.length)d=["shared"];else if(o.length){d=[Object(O.find)(Object(w.getCategories)(),function(e){var t=e.slug;return u[t]&&u[t].length}).slug]}}else d=["suggested"];this.setState({hoveredItem:null,childItems:i,filterValue:e,suggestedItems:s,sharedItems:c,itemsPerCategory:u,openPanels:d})}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.onSelect,o=t.rootUID,i=this.state,s=i.childItems,a=i.filterValue,c=i.hoveredItem,l=i.suggestedItems,u=i.sharedItems,d=i.itemsPerCategory,p=i.openPanels,f=function(e){return-1!==p.indexOf(e)},h=!!a;return wp.element.createElement("div",{className:"editor-inserter__menu"},wp.element.createElement("label",{htmlFor:"editor-inserter__search-"+n,className:"screen-reader-text"},Object(q.__)("Search for a block")),wp.element.createElement("input",{id:"editor-inserter__search-"+n,type:"search",placeholder:Object(q.__)("Search for a block"),className:"editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),wp.element.createElement("div",{className:"editor-inserter__results",ref:this.inserterResults},wp.element.createElement(di,{rootUID:o,items:s,onSelect:r,onHover:this.onHover}),!!l.length&&wp.element.createElement(yr.PanelBody,{title:Object(q.__)("Most Used"),opened:f("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},wp.element.createElement(ui,{items:l,onSelect:r,onHover:this.onHover})),Object(O.map)(Object(w.getCategories)(),function(t){var n=d[t.slug];return n&&n.length?wp.element.createElement(yr.PanelBody,{key:t.slug,title:t.title,opened:h||f(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},wp.element.createElement(ui,{items:n,onSelect:r,onHover:e.onHover})):null}),!!u.length&&wp.element.createElement(yr.PanelBody,{title:Object(q.__)("Shared"),opened:f("shared"),onToggle:this.onTogglePanel("shared"),icon:"controls-repeat",ref:this.bindPanel("shared")},wp.element.createElement(ui,{items:u,onSelect:r,onHover:this.onHover})),Object(O.isEmpty)(l)&&Object(O.isEmpty)(u)&&Object(O.isEmpty)(d)&&wp.element.createElement("p",{className:"editor-inserter__no-results"},Object(q.__)("No blocks found."))),c&&Object(w.isSharedBlock)(c)&&wp.element.createElement(li,{name:c.name,attributes:c.initialAttributes}))}}]),t}(ar.Component),fi=Object(ar.compose)(Object(i.withSelect)(function(e,t){var n=t.rootUID;return{rootChildBlocks:(0,e("core/blocks").getChildBlockNames)((0,e("core/editor").getBlockName)(n))}}),Object(i.withDispatch)(function(e){return{fetchSharedBlocks:e("core/editor").fetchSharedBlocks}}),yr.withSpokenMessages,yr.withInstanceId,yr.withSafeTimeout)(pi),hi=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.onToggle=e.onToggle.bind(e),e}return gr()(t,e),hr()(t,[{key:"onToggle",value:function(e){var t=this.props.onToggle;e?this.props.showInsertionPoint():this.props.hideInsertionPoint(),t&&t(e)}},{key:"render",value:function(){var e=this.props,t=e.items,n=e.position,r=e.title,o=e.children,i=e.onInsertBlock,s=e.rootUID;return 0===t.length?null:wp.element.createElement(yr.Dropdown,{className:"editor-inserter",contentClassName:"editor-inserter__popover",position:n,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:r,renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return wp.element.createElement(yr.IconButton,{icon:"insert",label:Object(q.__)("Add block"),onClick:t,className:"editor-inserter__toggle","aria-haspopup":"true","aria-expanded":n},o)},renderContent:function(e){var n=e.onClose;return wp.element.createElement(fi,{items:t,onSelect:function(e){i(e),n()},rootUID:s})}})}}]),t}(ar.Component),mi=Object(ar.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getBlockInsertionPoint,o=t.getSelectedBlock,i=t.getInserterItems,s=r(),a=s.rootUID;return{title:n("title"),insertionPoint:s,selectedBlock:o(),items:i(a),rootUID:a}}),Object(i.withDispatch)(function(e,t){return{showInsertionPoint:e("core/editor").showInsertionPoint,hideInsertionPoint:e("core/editor").hideInsertionPoint,onInsertBlock:function(n){var r=t.insertionPoint,o=t.selectedBlock,i=r.index,s=r.rootUID,a=r.layout,c=n.name,u=n.initialAttributes,d=Object(w.createBlock)(c,l()({},u,{layout:a}));return o&&Object(w.isUnmodifiedDefaultBlock)(o)?e("core/editor").replaceBlocks(o.uid,d):e("core/editor").insertBlock(d,i,s)}}})])(hi);var vi=Object(go.ifViewportMatches)("< small")(function(e){var t=e.rootUID,n=e.uid;return wp.element.createElement("div",{className:"editor-block-list__block-mobile-toolbar"},wp.element.createElement(mi,null),wp.element.createElement(To,{uids:[n]}),wp.element.createElement(Ho,{rootUID:t,uids:[n]}))}),bi=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.state={isInserterFocused:!1},e.onBlurInserter=e.onBlurInserter.bind(e),e.onFocusInserter=e.onFocusInserter.bind(e),e.onClick=e.onClick.bind(e),e}return gr()(t,e),hr()(t,[{key:"onFocusInserter",value:function(e){e.stopPropagation(),this.setState({isInserterFocused:!0})}},{key:"onBlurInserter",value:function(){this.setState({isInserterFocused:!1})}},{key:"onClick",value:function(){var e=this.props,t=e.layout,n=e.rootUID,r=e.index,o=d()(e,["layout","rootUID","index"]);o.insertDefaultBlock({layout:t},n,r),o.startTyping(),this.onBlurInserter(),o.onInsert&&this.props.onInsert()}},{key:"render",value:function(){var e=this.state.isInserterFocused,t=this.props,n=t.showInsertionPoint,r=t.showInserter;return wp.element.createElement("div",{className:"editor-block-list__insertion-point"},n&&wp.element.createElement("div",{className:"editor-block-list__insertion-point-indicator"}),r&&wp.element.createElement("div",{className:sr()("editor-block-list__insertion-point-inserter",{"is-visible":e})},wp.element.createElement(yr.IconButton,{icon:"insert",className:"editor-block-list__insertion-point-button",onClick:this.onClick,label:Object(q.__)("Insert block"),onFocus:this.onFocusInserter,onBlur:this.onBlurInserter})))}}]),t}(ar.Component),gi=Object(ar.compose)(Object(i.withSelect)(function(e,t){var n=t.uid,r=t.rootUID,o=t.canShowInserter,i=e("core/editor"),s=i.getBlockIndex,a=i.getBlockInsertionPoint,c=i.getBlock,l=i.isBlockInsertionPointVisible,u=i.isTyping,d=i.getEditorSettings,p=n?s(n,r):-1,f=a(),h=n?c(n):null,m=l()&&f.index===p&&f.rootUID===r&&(!h||!Object(w.isUnmodifiedDefaultBlock)(h));return{templateLock:d().templateLock,showInserter:!u()&&o,index:p,showInsertionPoint:m}}),Object(yr.ifCondition)(function(e){return!e.templateLock}),Object(i.withDispatch)(function(e){var t=e("core/editor");return{insertDefaultBlock:t.insertDefaultBlock,startTyping:t.startTyping}}))(bi);var yi=function(e){var t=e.rootUID,n=e.index,r=e.uid,o=e.layout,i=e.isDragging,s=d()(e,["rootUID","index","uid","layout","isDragging"]),a=sr()("editor-block-list__block-draggable",{"is-visible":i}),c={type:"block",fromIndex:n,rootUID:t,uid:r,layout:o};return wp.element.createElement(yr.Draggable,l()({className:a,transferData:c},s),wp.element.createElement("div",{className:"editor-block-list__block-draggable-inner"}))},ki=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.proxyEvent=e.proxyEvent.bind(e),e.eventMap={},e}return gr()(t,e),hr()(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=d()(t,["childHandledEvents"]),i=Object(O.reduce)([].concat(f()(r),f()(z()(o))),function(t,n){var r=n.match(/^on([A-Z][a-zA-Z]+?)(Handled)?$/);if(r){!!r[2]&&delete o[n];var i="on"+r[1];t[i]=e.proxyEvent,e.eventMap[r[1].toLowerCase()]=i}return t},{});return wp.element.createElement("div",l()({},o,i))}}]),t}(ar.Component);n(608);var _i=Object(ar.compose)(Object(i.withSelect)(function(e,t){var n=t.rootUID,r=e("core/editor"),o=r.getEditorSettings,i=r.getInserterItems,s=o().templateLock;return{items:i(n),isLocked:!!s}}),Object(i.withDispatch)(function(e,t){var n=t.uid,r=t.rootUID,o=t.layout;return{onInsert:function(t){var i=t.name,s=t.initialAttributes,a=Object(w.createBlock)(i,l()({},s,{layout:o}));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(w.getDefaultBlockName)()&&Object(O.isEmpty)(e.initialAttributes))}).slice(0,3);return wp.element.createElement("div",{className:"editor-inserter-with-shortcuts"},o.map(function(e){return wp.element.createElement(yr.IconButton,{key:e.id,className:"editor-inserter-with-shortcuts__block",onClick:function(){return r(e)},label:Object(q.sprintf)(Object(q.__)("Add %s"),e.title),icon:wp.element.createElement(Cr,{icon:e.icon&&e.icon.src})})}))}),Oi=Object(ar.createHigherOrderComponent)(function(e){var t=function(t){function n(){pr()(this,n);var e=vr()(this,(n.__proto__||ur()(n)).apply(this,arguments));return e.state={hoverArea:null},e.onMouseLeave=e.onMouseLeave.bind(e),e.onMouseMove=e.onMouseMove.bind(e),e}return gr()(n,t),hr()(n,[{key:"componentDidMount",value:function(){this.container=Object(ar.findDOMNode)(this),this.container.addEventListener("mousemove",this.onMouseMove),this.container.addEventListener("mouseleave",this.onMouseLeave)}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("mousemove",this.onMouseMove),this.container.removeEventListener("mouseleave",this.onMouseLeave)}},{key:"onMouseLeave",value:function(){this.state.hoverArea&&this.setState({hoverArea:null})}},{key:"onMouseMove",value:function(e){var t=this.props.isRTL,n=this.container.getBoundingClientRect(),r=n.width,o=n.left,i=n.right,s=null;e.clientX-o<r/3?s=t?"right":"left":i-e.clientX<r/3&&(s=t?"left":"right"),s!==this.state.hoverArea&&this.setState({hoverArea:s})}},{key:"render",value:function(){var t=this.state.hoverArea;return wp.element.createElement(e,l()({},this.props,{hoverArea:t}))}}]),n}(ar.Component);return Object(i.withSelect)(function(e){return{isRTL:e("core/editor").getEditorSettings().isRTL}})(t)}),wi=ro.keycodes.BACKSPACE,Si=ro.keycodes.DELETE,Ei=ro.keycodes.ENTER,ji=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.setBlockListRef=e.setBlockListRef.bind(e),e.bindBlockNode=e.bindBlockNode.bind(e),e.setAttributes=e.setAttributes.bind(e),e.maybeHover=e.maybeHover.bind(e),e.hideHoverEffects=e.hideHoverEffects.bind(e),e.mergeBlocks=e.mergeBlocks.bind(e),e.insertBlocksAfter=e.insertBlocksAfter.bind(e),e.onFocus=e.onFocus.bind(e),e.preventDrag=e.preventDrag.bind(e),e.onPointerDown=e.onPointerDown.bind(e),e.deleteOrInsertAfterWrapper=e.deleteOrInsertAfterWrapper.bind(e),e.onBlockError=e.onBlockError.bind(e),e.onTouchStart=e.onTouchStart.bind(e),e.onClick=e.onClick.bind(e),e.onDragStart=e.onDragStart.bind(e),e.onDragEnd=e.onDragEnd.bind(e),e.selectOnOpen=e.selectOnOpen.bind(e),e.hadTouchStart=!1,e.state={error:null,dragging:!1,isHovered:!1},e}return gr()(t,e),hr()(t,[{key:"componentDidMount",value:function(){this.props.isSelected&&this.focusTabbable()}},{key:"componentDidUpdate",value:function(e){(this.props.isTypingWithinBlock||this.props.isSelected)&&this.hideHoverEffects(),this.props.isSelected&&!e.isSelected&&this.focusTabbable()}},{key:"setBlockListRef",value:function(e){e=Object(ar.findDOMNode)(e),this.wrapperNode=e,this.props.blockRef(e,this.props.uid)}},{key:"bindBlockNode",value:function(e){this.node=Object(ar.findDOMNode)(e)}},{key:"focusTabbable",value:function(){var e=this.props.initialPosition;if(!this.wrapperNode.contains(document.activeElement)){var t=wo.focus.tabbable.find(this.node).filter(wo.isTextField),n=-1===e,r=(n?O.last:O.first)(t);if(r){if(r.focus(),n){var o=Oo.a.get(r.getAttribute("id"));o?(o.selection.select(o.getBody(),!0),o.selection.collapse(!1)):(Object(wo.placeCaretAtHorizontalEdge)(r,!0),Object(wo.placeCaretAtVerticalEdge)(r,!0))}}else this.wrapperNode.focus()}}},{key:"setAttributes",value:function(e){var t=this.props,n=t.block,r=t.onChange,o=Object(w.getBlockType)(n.name);r(n.uid,e);var i=Object(O.reduce)(e,function(e,t,n){return"meta"===Object(O.get)(o,["attributes",n,"source"])&&(e[o.attributes[n].meta]=t),e},{});Object(O.size)(i)&&this.props.onMetaChange(l()({},this.props.meta,i))}},{key:"onTouchStart",value:function(){this.hadTouchStart=!0}},{key:"onClick",value:function(){this.hadTouchStart=!1}},{key:"maybeHover",value:function(){var e=this.props,t=e.isMultiSelected,n=e.isSelected;this.state.isHovered||t||n||this.props.isMultiSelecting||this.hadTouchStart||this.setState({isHovered:!0})}},{key:"hideHoverEffects",value:function(){this.state.isHovered&&this.setState({isHovered:!1})}},{key:"mergeBlocks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props,n=t.block,r=t.previousBlockUid,o=t.nextBlockUid,i=t.onMerge;!e&&!r||e&&!o||(e?i(n.uid,o):i(r,n.uid))}},{key:"insertBlocksAfter",value:function(e){this.props.onInsertBlocks(e,this.props.order+1)}},{key:"onFocus",value:function(){this.props.isSelected||this.props.isMultiSelected||this.props.onSelect()}},{key:"preventDrag",value:function(e){e.preventDefault()}},{key:"onPointerDown",value:function(e){0===e.button&&(e.shiftKey?this.props.isSelected||(this.props.onShiftSelection(this.props.uid),e.preventDefault()):(this.props.onSelectionStart(this.props.uid),this.props.isMultiSelected&&this.props.onSelect()))}},{key:"deleteOrInsertAfterWrapper",value:function(e){var t=e.keyCode;if(e.target===this.wrapperNode&&!this.props.isLocked)switch(t){case Ei:this.props.onInsertBlocks([Object(w.createBlock)("core/paragraph")],this.props.order+1),e.preventDefault();break;case wi:case Si:var n=this.props,r=n.uid,o=n.onRemove,i=n.previousBlockUid,s=n.onSelect;o(r),i&&s(i,-1),e.preventDefault()}}},{key:"onBlockError",value:function(e){this.setState({error:e})}},{key:"onDragStart",value:function(){this.setState({dragging:!0})}},{key:"onDragEnd",value:function(){this.setState({dragging:!1})}},{key:"selectOnOpen",value:function(e){e&&!this.props.isSelected&&this.props.onSelect()}},{key:"render",value:function(){var e=this.props,t=e.block,n=e.order,r=e.mode,o=e.hasFixedToolbar,i=e.isLocked,s=e.isFirst,a=e.isLast,c=e.uid,u=e.rootUID,d=e.layout,p=e.isSelected,f=e.isMultiSelected,h=e.isFirstMultiSelected,m=e.isTypingWithinBlock,v=e.isMultiSelecting,b=e.hoverArea,g=e.isLargeViewport,y=e.isEmptyDefaultBlock,k=e.isPreviousBlockADefaultEmptyBlock,_=e.hasSelectedInnerBlock,O=this.state.isHovered&&!v,S=t.name,E=t.isValid,j=Object(w.getBlockType)(S),C=Object(q.sprintf)(Object(q.__)("Block: %s"),j.title),T=(p||O)&&y,P=(p||O)&&y,B=!P&&(p||_)&&!m,x=(p||"left"===b)&&!T&&!v&&!f&&!m,I=(p||"right"===b)&&!v&&!f&&!m,D=O&&!y,A=!P&&p&&!m&&E&&(!o||!g),N=B,L=this.state,R=L.error,U=L.dragging,M=f&&s||!f,F=!y&&!k,H=sr()("editor-block-list__block",{"has-warning":!E||!!R,"is-selected":B,"is-multi-selected":f,"is-hovered":O&&!y,"is-shared":Object(w.isSharedBlock)(j),"is-hidden":U,"is-typing":m}),V=this.props.onReplace,K=this.props.wrapperProps;j.getEditWrapperProps&&(K=l()({},K,j.getEditWrapperProps(t.attributes)));var W="block-"+c;return wp.element.createElement(ki,l()({id:W,ref:this.setBlockListRef,onMouseOver:this.maybeHover,onMouseOverHandled:this.hideHoverEffects,onMouseLeave:this.hideHoverEffects,className:H,"data-type":t.name,onTouchStart:this.onTouchStart,onFocus:this.onFocus,onClick:this.onClick,onKeyDown:this.deleteOrInsertAfterWrapper,tabIndex:"0","aria-label":C,childHandledEvents:["onDragStart","onMouseDown"]},K),!f&&wp.element.createElement(yi,{rootUID:u,index:n,uid:c,layout:d,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd,isDragging:U,elementId:W}),M&&wp.element.createElement(gi,{uid:c,rootUID:u,layout:d,canShowInserter:F,onInsert:this.hideHoverEffects}),wp.element.createElement(Bo,{index:n,rootUID:u,layout:d}),x&&wp.element.createElement(To,{uids:c,rootUID:u,layout:d,isFirst:s,isLast:a,isHidden:!(O||p)||"left"!==b}),I&&wp.element.createElement(Ho,{uids:c,rootUID:u,isHidden:!(O||p)||"right"!==b}),D&&wp.element.createElement(Zo,{uid:c,isHidden:!(O||p)||"left"!==b}),A&&wp.element.createElement(ii,null),h&&wp.element.createElement(si,{rootUID:u}),wp.element.createElement(ki,{ref:this.bindBlockNode,onDragStart:this.preventDrag,onMouseDown:this.onPointerDown,className:"editor-block-list__block-edit","data-block":c},wp.element.createElement(qo,{onError:this.onBlockError},E&&"visual"===r&&wp.element.createElement(qr,{name:S,isSelected:p,attributes:t.attributes,setAttributes:this.setAttributes,insertBlocksAfter:i?void 0:this.insertBlocksAfter,onReplace:i?void 0:V,mergeBlocks:i?void 0:this.mergeBlocks,id:c,isSelectionEnabled:this.props.isSelectionEnabled,toggleSelection:this.props.toggleSelection}),E&&"html"===r&&wp.element.createElement($o,{uid:c}),!E&&[wp.element.createElement("div",{key:"invalid-preview"},Object(w.getSaveElement)(j,t.attributes)),wp.element.createElement(Ko,{key:"invalid-warning",block:t})]),N&&wp.element.createElement(vi,{rootUID:u,uid:c})),!!R&&wp.element.createElement(zo,null),T&&wp.element.createElement(ar.Fragment,null,wp.element.createElement("div",{className:"editor-block-list__side-inserter"},wp.element.createElement(_i,{uid:c,rootUID:u,layout:d,onToggle:this.selectOnOpen})),wp.element.createElement("div",{className:"editor-block-list__empty-block-inserter"},wp.element.createElement(mi,{position:"top right",onToggle:this.selectOnOpen}))))}}]),t}(ar.Component),Ci=Object(i.withSelect)(function(e,t){var n=t.uid,r=t.rootUID,o=e("core/editor"),i=o.isBlockSelected,s=o.getPreviousBlockUid,a=o.getNextBlockUid,c=o.getBlock,l=o.isBlockMultiSelected,u=o.isFirstMultiSelectedBlock,d=o.isMultiSelecting,p=o.isTyping,f=o.getBlockIndex,h=o.getEditedPostAttribute,m=o.getBlockMode,v=o.isSelectionEnabled,b=o.getSelectedBlocksInitialCaretPosition,g=o.getEditorSettings,y=o.hasSelectedInnerBlock,k=i(n),_=y(n),O=g(),S=O.templateLock,E=O.hasFixedToolbar,j=c(n),C=s(n),T=c(C);return{nextBlockUid:a(n),isMultiSelected:l(n),isFirstMultiSelected:u(n),isMultiSelecting:d(),hasSelectedInnerBlock:_,isTypingWithinBlock:(k||_)&&p(),order:f(n,r),meta:h("meta"),mode:m(n),isSelectionEnabled:v(),initialPosition:b(),isEmptyDefaultBlock:j&&Object(w.isUnmodifiedDefaultBlock)(j),isPreviousBlockADefaultEmptyBlock:T&&Object(w.isUnmodifiedDefaultBlock)(T),isLocked:!!S,previousBlockUid:C,block:j,isSelected:k,hasFixedToolbar:E}}),Ti=Object(i.withDispatch)(function(e,t){var n=e("core/editor"),r=n.updateBlockAttributes,o=n.selectBlock,i=n.insertBlocks,s=n.removeBlock,a=n.mergeBlocks,c=n.replaceBlocks,l=n.editPost,u=n.toggleSelection;return{onChange:function(e,t){r(e,t)},onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.uid,n=arguments[1];o(e,n)},onInsertBlocks:function(e,n){var r=t.rootUID,o=t.layout;e=e.map(function(e){return Object(w.cloneBlock)(e,{layout:o})}),i(e,n,r)},onRemove:function(e){s(e)},onMerge:function(){a.apply(void 0,arguments)},onReplace:function(e){var n=t.layout;e=Object(O.castArray)(e).map(function(e){return Object(w.cloneBlock)(e,{layout:n})}),c([t.uid],e)},onMetaChange:function(e){l({meta:e})},toggleSelection:function(e){u(e)}}}),Pi=Object(ar.compose)(Ci,Ti,Object(go.withViewportMatch)({isLargeViewport:"medium"}),Object(yr.withFilters)("editor.BlockListBlock"),Oi)(ji),Bi=n(166);n(607);var xi=Object(ar.compose)(Object(i.withSelect)(function(e,t){var n=e("core/editor"),r=n.getBlockCount,o=n.getBlock,i=n.getEditorSettings,s=e("core/nux").isTipVisible,a=!r(t.rootUID),c=o(t.lastBlockUID),l=Object(O.get)(c,["name"])===Object(w.getDefaultBlockName)(),u=i(),d=u.templateLock,p=u.bodyPlaceholder;return{isVisible:a||!l,showPrompt:a,isLocked:!!d,placeholder:p,hasTip:s("core/editor.inserter")}}),Object(i.withDispatch)(function(e,t){var n=e("core/editor"),r=n.insertDefaultBlock,o=n.startTyping,i=e("core/nux").dismissTip;return{onAppend:function(){var e=t.layout,n=t.rootUID,s=t.hasTip,a=void 0;e&&(a={layout:e}),r(a,n),o(),s&&i("core/editor.inserter")}}}))(function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,i=e.placeholder,s=e.layout,a=e.rootUID,c=e.hasTip;if(t||!n)return null;var l=Object(ro.decodeEntities)(i)||Object(q.__)("Write your story");return wp.element.createElement("div",{"data-root-uid":a||"",className:sr()("editor-default-block-appender",{"has-tip":c})},wp.element.createElement(Bo,{rootUID:a,layout:s}),wp.element.createElement("input",{role:"button","aria-label":Object(q.__)("Add block"),className:"editor-default-block-appender__content",type:"text",readOnly:!0,onFocus:r,onClick:r,onKeyDown:r,value:o?l:""}),wp.element.createElement(_i,{rootUID:a,layout:s}),wp.element.createElement(mi,{position:"top right"},wp.element.createElement(Bi.DotTip,{id:"core/editor.inserter"},Object(q.__)("Welcome to the wonderful world of blocks! Click ‘Add block’ to insert different kinds of content—text, images, quotes, video, lists, and much more."))))}),Ii=function(e){function t(e){pr()(this,t);var n=vr()(this,(t.__proto__||ur()(t)).call(this,e));return n.onSelectionStart=n.onSelectionStart.bind(n),n.onSelectionEnd=n.onSelectionEnd.bind(n),n.onShiftSelection=n.onShiftSelection.bind(n),n.setBlockRef=n.setBlockRef.bind(n),n.setLastClientY=n.setLastClientY.bind(n),n.onPointerMove=Object(O.throttle)(n.onPointerMove.bind(n),100),n.onScroll=function(){return n.onPointerMove({clientY:n.lastClientY})},n.lastClientY=0,n.nodes={},n}return gr()(t,e),hr()(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=l()({},this.nodes,b()({},t,e))}},{key:"onPointerMove",value:function(e){var t=e.clientY;this.props.isMultiSelecting||this.props.onStartMultiSelect();var n=t-this.nodes[this.selectionAtStart].getBoundingClientRect().top,r=Object(O.findLast)(this.coordMapKeys,function(e){return e<n});this.onSelectionChange(this.coordMap[r])}},{key:"onSelectionStart",value:function(e){if(this.props.isSelectionEnabled){var t=this.nodes[e].getBoundingClientRect(),n=Object(O.mapValues)(this.nodes,function(e){return e.getBoundingClientRect().top-t.top});this.coordMap=Object(O.invert)(n),this.coordMapKeys=Object(O.sortBy)(ko()(n)),this.selectionAtStart=e,window.addEventListener("mousemove",this.onPointerMove),window.addEventListener("scroll",this.onScroll,!0),window.addEventListener("mouseup",this.onSelectionEnd)}}},{key:"onSelectionChange",value:function(e){var t=this.props,n=t.onMultiSelect,r=t.selectionStart,o=t.selectionEnd,i=this.selectionAtStart,s=i===e;i&&this.props.isSelectionEnabled&&(s&&r&&n(null,null),s||o===e||n(i,e))}},{key:"onSelectionEnd",value:function(){this.onPointerMove.cancel(),delete this.coordMap,delete this.coordMapKeys,delete this.selectionAtStart,window.removeEventListener("mousemove",this.onPointerMove),window.removeEventListener("scroll",this.onScroll,!0),window.removeEventListener("mouseup",this.onSelectionEnd),this.props.isMultiSelecting&&this.props.onStopMultiSelect()}},{key:"onShiftSelection",value:function(e){if(this.props.isSelectionEnabled){var t=this.props,n=t.selectionStartUID,r=t.onMultiSelect,o=t.onSelect;n?r(n,e):o(e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.blockUIDs,r=t.layout,o=t.isGroupedByLayout,i=t.rootUID,s=void 0;o&&(s=r);var a=sr()("editor-block-list__layout",b()({},"layout-"+r,r));return wp.element.createElement("div",{className:a},Object(O.map)(n,function(t,r){return wp.element.createElement(Pi,{key:"block-"+t,index:r,uid:t,blockRef:e.setBlockRef,onSelectionStart:e.onSelectionStart,onShiftSelection:e.onShiftSelection,rootUID:i,layout:s,isFirst:0===r,isLast:r===n.length-1})}),wp.element.createElement(ki,{childHandledEvents:["onFocus","onClick","onKeyDown"]},wp.element.createElement(xi,{rootUID:i,lastBlockUID:Object(O.last)(n),layout:s})))}}]),t}(ar.Component),Di=Object(ar.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlocksStartUid,i=t.getMultiSelectedBlocksEndUid,s=t.getBlockSelectionStart;return{selectionStart:o(),selectionEnd:i(),selectionStartUID:s(),isSelectionEnabled:n(),isMultiSelecting:r()}}),Object(i.withDispatch)(function(e){var t=e("core/editor");return{onStartMultiSelect:t.startMultiSelect,onStopMultiSelect:t.stopMultiSelect,onMultiSelect:t.multiSelect,onSelect:t.selectBlock}})])(Ii),Ai=Object(i.withSelect)(function(e,t){return{blockUIDs:e("core/editor").getBlockOrder(t.rootUID)}})(Di),Ni=Object(i.withSelect)(function(e,t){return{blocks:e("core/editor").getBlocks(t.rootUID)}})(function(e){var t=e.blocks,n=e.layouts,r=d()(e,["blocks","layouts"]);return Object(O.map)(n,function(e){var n=Object(O.reduce)(t,function(t,n){return Object(O.get)(n,["attributes","layout"])===e.name&&t.push(n.uid),t},[]);return wp.element.createElement(Di,l()({key:e.name,layout:e.name,isGroupedByLayout:!0,blockUIDs:n},r))})}),Li=function(e){return Object(ar.createElement)(Array.isArray(e.layouts)?Ni:Ai,e)},Ri=function(e){function t(){return pr()(this,t),vr()(this,(t.__proto__||ur()(t)).apply(this,arguments))}return gr()(t,e),hr()(t,[{key:"componentWillReceiveProps",value:function(e){this.updateNestedSettings({supportedBlocks:e.allowedBlocks})}},{key:"componentDidMount",value:function(){this.updateNestedSettings({supportedBlocks:this.props.allowedBlocks}),this.insertTemplateBlocks(this.props.template)}},{key:"insertTemplateBlocks",value:function(e){var t=this.props,n=t.block,r=t.insertBlocks;e&&!n.innerBlocks.length&&r(Object(w.synchronizeBlocksWithTemplate)([],e))}},{key:"updateNestedSettings",value:function(e){Object(O.isEqual)(this.props.blockListSettings,e)||this.props.updateNestedSettings(e)}},{key:"render",value:function(){var e=this.props,t=e.uid,n=e.layouts,r=e.allowedBlocks,o=e.template,i=e.isSmallScreen,s=e.isSelectedBlockInRoot,a=sr()("editor-inner-blocks",{"has-overlay":i&&!s});return wp.element.createElement("div",{className:a},wp.element.createElement(Li,l()({rootUID:t},{layouts:n,allowedBlocks:r,template:o})))}}]),t}(ar.Component);(Ri=Object(ar.compose)([wr(function(e){return Object(O.pick)(e,["uid"])}),Object(go.withViewportMatch)({isSmallScreen:"< medium"}),Object(i.withSelect)(function(e,t){var n=e("core/editor"),r=n.isBlockSelected,o=n.hasSelectedInnerBlock,i=n.getBlock,s=n.getBlockListSettings,a=t.uid;return{isSelectedBlockInRoot:r(a)||o(a),block:i(a),blockListSettings:s(a)}}),Object(i.withDispatch)(function(e,t){var n=e("core/editor"),r=n.insertBlocks,o=n.updateBlockListSettings,i=t.uid;return{insertBlocks:function(t){e(r(t,void 0,i))},updateNestedSettings:function(t){e(o(i,t))}}})])(Ri)).Content=function(e){var t=e.BlockContent;return wp.element.createElement(t,null)},Ri.Content=Object(yr.withContext)("BlockContent")()(Ri.Content);var Ui=Ri,Mi=Object(yr.createSlotFill)("InspectorAdvancedControls"),Fi=Mi.Fill,Hi=Mi.Slot,Vi=Sr(Fi);Vi.Slot=Hi;var Ki=Vi,Wi=Object(yr.createSlotFill)("InspectorControls"),zi=Wi.Fill,qi=Wi.Slot,Gi=Sr(zi);Gi.Slot=qi;var Yi=Gi;var Xi=Object(ar.compose)([Qr,Object(yr.ifCondition)(function(e){return e.hasColorsToChoose})])(function(e){var t=e.colors,n=e.title,r=e.colorValue,o=e.initialOpen,i=d()(e,["colors","title","colorValue","initialOpen"]),s=to(t,r);return wp.element.createElement(yr.PanelColor,{title:n,colorName:s,colorValue:r,initialOpen:o},wp.element.createElement(Zr,l()({value:r},Object(O.omit)(i,["disableCustomColors"]))))});n(606);var $i=function(e){var t=e.onChange,n=e.className,r=d()(e,["onChange","className"]);return wp.element.createElement(Yo.a,l()({className:sr()("editor-plain-text",n),onChange:function(e){return t(e.target.value)}},r))},Ji=n(63),Qi=n.n(Ji),Zi=n(143),es=(n(605),n(176)),ts=(n(604),n(175)),ns=ro.keycodes.UP,rs=ro.keycodes.DOWN,os=ro.keycodes.ENTER,is=function(e){return e.stopPropagation()},ss=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.onChange=e.onChange.bind(e),e.onKeyDown=e.onKeyDown.bind(e),e.bindListNode=e.bindListNode.bind(e),e.updateSuggestions=Object(O.throttle)(e.updateSuggestions.bind(e),200),e.suggestionNodes=[],e.state={posts:[],showSuggestions:!1,selectedSuggestion:null},e}return gr()(t,e),hr()(t,[{key:"bindListNode",value:function(e){this.listNode=e}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"updateSuggestions",value:function(e){var t=this;this.suggestionsRequest&&this.suggestionsRequest.abort(),e.length<2||/^https?:/.test(e)?this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1}):(this.setState({showSuggestions:!0,selectedSuggestion:null,loading:!0}),this.suggestionsRequest=X()({path:"/wp/v2/posts?"+Object(ts.stringify)({search:e,per_page:20,orderby:"relevance"})}),this.suggestionsRequest.then(function(e){t.setState({posts:e,loading:!1}),e.length?t.props.debouncedSpeak(Object(q.sprintf)(Object(q._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):t.props.debouncedSpeak(Object(q.__)("No results."),"assertive")},function(e){"abort"!==e.statusText&&t.setState({loading:!1})}))}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.updateSuggestions(t)}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.posts,i=t.loading;if(n&&o.length&&!i)switch(e.keyCode){case ns:e.stopPropagation(),e.preventDefault();var s=r?r-1:o.length-1;this.setState({selectedSuggestion:s});break;case rs:e.stopPropagation(),e.preventDefault();var a=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:a});break;case os:if(this.state.selectedSuggestion){e.stopPropagation();var c=this.state.posts[this.state.selectedSuggestion];this.selectLink(c.link)}}}},{key:"selectLink",value:function(e){this.props.onChange(e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"componentWillUnmount",value:function(){this.suggestionsRequest&&this.suggestionsRequest.abort()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.state,n=t.showSuggestions,r=t.selectedSuggestion;n&&null!==r&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,ci()(this.suggestionNodes[r],this.listNode,{onlyScrollIfNeeded:!0}),setTimeout(function(){e.scrollingIntoView=!1},100))}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,r=void 0===n?"":n,o=t.autoFocus,i=void 0===o||o,s=t.instanceId,a=this.state,c=a.showSuggestions,l=a.posts,u=a.selectedSuggestion,d=a.loading;return wp.element.createElement(ar.Fragment,null,wp.element.createElement("div",{className:"editor-url-input"},wp.element.createElement("input",{autoFocus:i,type:"text","aria-label":Object(q.__)("URL"),required:!0,value:r,onChange:this.onChange,onInput:is,placeholder:Object(q.__)("Paste URL or type"),onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":c,"aria-autocomplete":"list","aria-owns":"editor-url-input-suggestions-"+s,"aria-activedescendant":null!==u?"editor-url-input-suggestion-"+s+"-"+u:void 0}),d&&wp.element.createElement(yr.Spinner,null)),c&&!!l.length&&wp.element.createElement(yr.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},wp.element.createElement("div",{className:"editor-url-input__suggestions",id:"editor-url-input-suggestions-"+s,ref:this.bindListNode,role:"listbox"},l.map(function(t,n){return wp.element.createElement("button",{key:t.id,role:"option",tabIndex:"-1",id:"editor-url-input-suggestion-"+s+"-"+n,ref:e.bindSuggestionNode(n),className:sr()("editor-url-input__suggestion",{"is-selected":n===u}),onClick:function(){return e.selectLink(t.link)},"aria-selected":n===u},Object(ro.decodeEntities)(t.title.rendered)||Object(q.__)("(no title)"))}))))}}]),t}(ar.Component),as=Object(yr.withSpokenMessages)(Object(yr.withInstanceId)(ss));function cs(e,t){return Object(es.a)(e,t)}var ls=ro.keycodes.ESCAPE,us=ro.keycodes.LEFT,ds=ro.keycodes.RIGHT,ps=ro.keycodes.UP,fs=ro.keycodes.DOWN,hs=ro.keycodes.BACKSPACE,ms=ro.keycodes.ENTER,vs=ro.keycodes.displayShortcut,bs=[{icon:"editor-bold",title:Object(q.__)("Bold"),shortcut:vs.primary("b"),format:"bold"},{icon:"editor-italic",title:Object(q.__)("Italic"),shortcut:vs.primary("i"),format:"italic"},{icon:"editor-strikethrough",title:Object(q.__)("Strikethrough"),shortcut:vs.access("d"),format:"strikethrough"},{icon:"admin-links",title:Object(q.__)("Link"),shortcut:vs.primary("k"),format:"link"}],gs=["bold","italic","strikethrough","link"],ys=function(e){return e.stopPropagation()};var ks=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.state={},e.addLink=e.addLink.bind(e),e.editLink=e.editLink.bind(e),e.dropLink=e.dropLink.bind(e),e.submitLink=e.submitLink.bind(e),e.onKeyDown=e.onKeyDown.bind(e),e.onChangeLinkValue=e.onChangeLinkValue.bind(e),e.toggleLinkSettingsVisibility=e.toggleLinkSettingsVisibility.bind(e),e.setLinkTarget=e.setLinkTarget.bind(e),e}return gr()(t,e),hr()(t,[{key:"onKeyDown",value:function(e){if(e.keyCode===ls){var t=this.props.formats.link;t&&t.isAdding&&(e.stopPropagation(),t.value?this.props.onChange({link:l()({},t,{isAdding:!1})}):this.dropLink())}[us,fs,ds,ps,hs,ms].indexOf(e.keyCode)>-1&&ys(e)}},{key:"onChangeLinkValue",value:function(e){this.setState({linkValue:e})}},{key:"toggleFormat",value:function(e){var t=this;return function(){t.props.onChange(b()({},e,!t.props.formats[e]))}}},{key:"toggleLinkSettingsVisibility",value:function(){this.setState(function(e){return{settingsVisible:!e.settingsVisible}})}},{key:"setLinkTarget",value:function(e){this.setState({opensInNewWindow:e}),this.props.formats.link&&!this.props.formats.link.isAdding&&this.props.onChange({link:{value:this.props.formats.link.value,target:e?"_blank":null,rel:e?"noreferrer noopener":null}})}},{key:"addLink",value:function(){this.setState({linkValue:""}),this.props.onChange({link:{isAdding:!0}})}},{key:"dropLink",value:function(){this.props.onChange({link:null}),this.setState({linkValue:""})}},{key:"editLink",value:function(e){e.preventDefault(),this.props.onChange({link:l()({},this.props.formats.link,{isAdding:!0})}),this.setState({linkValue:this.props.formats.link.value})}},{key:"submitLink",value:function(e){e.preventDefault();var t=Object(es.b)(this.state.linkValue);this.props.onChange({link:{isAdding:!1,target:this.state.opensInNewWindow?"_blank":null,rel:this.state.opensInNewWindow?"noreferrer noopener":null,value:t}}),this.setState({linkValue:t}),this.props.formats.link.value||this.props.speak(Object(q.__)("Link added."),"assertive")}},{key:"isFormatActive",value:function(e){return this.props.formats[e]&&this.props.formats[e].isActive}},{key:"render",value:function(){var e,t,n=this,r=this.props,o=r.formats,i=r.focusPosition,s=r.enabledControls,a=void 0===s?gs:s,c=r.customControls,u=void 0===c?[]:c,d=r.selectedNodeId,p=this.state,f=p.linkValue,h=p.settingsVisible,m=p.opensInNewWindow,v=o.link&&o.link.isAdding,b=bs.concat(u).filter(function(e){return-1!==a.indexOf(e.format)}).map(function(e){if("link"===e.format){var t=n.isFormatActive("link"),r=t||v;return l()({},e,{icon:t?"editor-unlink":"admin-links",title:t?Object(q.__)("Unlink"):Object(q.__)("Link"),onClick:r?n.dropLink:n.addLink,isActive:r})}return l()({},e,{onClick:n.toggleFormat(e.format),isActive:n.isFormatActive(e.format)})}),g=h&&wp.element.createElement("div",{className:"editor-format-toolbar__link-modal-line editor-format-toolbar__link-settings"},wp.element.createElement(yr.ToggleControl,{label:Object(q.__)("Open in new window"),checked:m,onChange:this.setLinkTarget}));return wp.element.createElement("div",{className:"editor-format-toolbar"},wp.element.createElement(yr.Toolbar,{controls:b}),(v||o.link)&&wp.element.createElement(yr.Fill,{name:"RichText.Siblings"},wp.element.createElement("div",{className:"editor-format-toolbar__link-container",style:l()({},i)},wp.element.createElement(yr.Popover,{position:"bottom center",focusOnMount:!!v,key:d},v&&wp.element.createElement("form",{className:"editor-format-toolbar__link-modal",onKeyPress:ys,onKeyDown:this.onKeyDown,onSubmit:this.submitLink},wp.element.createElement("div",{className:"editor-format-toolbar__link-modal-line"},wp.element.createElement(as,{value:f,onChange:this.onChangeLinkValue}),wp.element.createElement(yr.IconButton,{icon:"editor-break",label:Object(q.__)("Apply"),type:"submit"}),wp.element.createElement(yr.IconButton,{className:"editor-format-toolbar__link-settings-toggle",icon:"ellipsis",label:Object(q.__)("Link Settings"),onClick:this.toggleLinkSettingsVisibility,"aria-expanded":h})),g),o.link&&!v&&wp.element.createElement("div",{className:"editor-format-toolbar__link-modal",onKeyPress:ys},wp.element.createElement("div",{className:"editor-format-toolbar__link-modal-line"},wp.element.createElement("a",{className:"editor-format-toolbar__link-value",href:o.link.value,target:"_blank"},o.link.value&&(e=decodeURI(o.link.value),(t=e.replace(new RegExp("^https?://(www.)?"),"")).match("^[^/]+/$")?t.replace("/",""):t)),wp.element.createElement(yr.IconButton,{icon:"edit",label:Object(q.__)("Edit"),onClick:this.editLink}),wp.element.createElement(yr.IconButton,{className:"editor-format-toolbar__link-settings-toggle",icon:"ellipsis",label:Object(q.__)("Link Settings"),onClick:this.toggleLinkSettingsVisibility,"aria-expanded":h})),g)))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.selectedNodeId!==e.selectedNodeId?function(e){return{selectedNodeId:e.selectedNodeId,settingsVisible:!1,opensInNewWindow:!!e.formats.link&&!!e.formats.link.target,linkValue:""}}(e):null}}]),t}(ar.Component),_s=Object(yr.withSpokenMessages)(ks),Os=function(e){return Object(O.pickBy)(e,function(e,t){return n=t,Object(O.startsWith)(n,"aria-")&&!Object(O.isNil)(e);var n})},ws=n(188);function Ss(e,t){switch(t){case"string":return e||"";default:return function(e){return Object(ar.renderToString)(e)}(e)}}function Es(e,t){if("all"===t["data-mce-bogus"])return null;for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t.hasOwnProperty("data-mce-bogus")?r:ar.createElement.apply(void 0,[e,Object(O.omitBy)(t,function(e,t){return 0===t.indexOf("data-mce-")})].concat(r))}function js(e,t,n){switch(t){case"string":return function(e,t){var n=document.implementation.createHTMLDocument("");return Qi()(e).forEach(function(e){n.body.appendChild(e)}),t?t.serializer.serialize(n.body):n.body.innerHTML}(e,n);default:return function(e){return Object(ws.nodeListToReact)(e||[],Es)}(e)}}var Cs=ro.keycodes.BACKSPACE,Ts=ro.keycodes.DELETE;var Ps=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).call(this));return e.bindEditorNode=e.bindEditorNode.bind(e),e}return gr()(t,e),hr()(t,[{key:"componentDidMount",value:function(){this.initialize()}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.configureIsPlaceholderVisible(e.isPlaceholderVisible),Object(O.isEqual)(this.props.style,e.style)||(this.editorNode.setAttribute("style",""),m()(this.editorNode.style,e.style)),Object(O.isEqual)(this.props.className,e.className)||(this.editorNode.className=sr()(e.className,"editor-rich-text__tinymce"));var n=function(e,t){var n=Object(O.keys)(Os(e)),r=Object(O.keys)(Os(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;r.forEach(function(e){return t.editorNode.removeAttribute(e)}),o.forEach(function(n){return t.editorNode.setAttribute(n,e[n])})}},{key:"componentWillUnmount",value:function(){this.editor&&(this.editor.container=document.createDocumentFragment(),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,t=this.props.getSettings({theme:!1,inline:!0,toolbar:!1,browser_spellcheck:!0,entity_encoding:"raw",convert_urls:!1,inline_boundaries_selector:"a[href],code,b,i,strong,em,del,ins,sup,sub",plugins:[],formats:{strikethrough:{inline:"del"}}});t.plugins.push("paste"),Oo.a.init(l()({},t,{target:this.editorNode,setup:function(t){e.editor=t,e.props.onSetup(t)}}))}},{key:"bindEditorNode",value:function(e){this.editorNode=e,this.removeInternetExplorerInputFix&&(this.removeInternetExplorerInputFix(),this.removeInternetExplorerInputFix=null),e&&function(e){return/Trident/.test(window.navigator.userAgent)&&!/input/i.test(e.tagName)&&!/textarea/i.test(e.tagName)}(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((Cs===r||Ts===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))}},{key:"render",value:function(){var e,t=this.props,n=t.tagName,r=void 0===n?"div":n,o=t.style,i=t.defaultValue,s=t.className,a=t.isPlaceholderVisible,c=t.format,u=Os(this.props);return"table"!==r&&(u.role="textbox",u["aria-multiline"]=!0),Object(ar.createElement)(r,l()({},u,(e={className:sr()(s,"editor-rich-text__tinymce"),contentEditable:!0},b()(e,"data-is-placeholder-visible",a),b()(e,"ref",this.bindEditorNode),b()(e,"style",o),b()(e,"suppressContentEditableWarning",!0),b()(e,"dangerouslySetInnerHTML",{__html:Ss(i,c)}),e)))}}]),t}(ar.Component),Bs=ro.keycodes.ESCAPE,xs=ro.keycodes.ENTER,Is=ro.keycodes.SPACE,Ds=ro.keycodes.BACKSPACE,As=function(e){var t=this.getContent.bind(this),n=this.props,r=n.setTimeout,o=n.onReplace,i=Oo.a.util.VK,s=e.settings.wptextpattern||{},a=Object(O.groupBy)(Object(O.filter)(Object(w.getBlockTransforms)("from"),{type:"pattern"}),"trigger"),c=a.enter,l=a.undefined,u=s.inline||[{delimiter:"`",format:"code"}],d=void 0;function p(){var t=e.selection.getRng(),n=t.startContainer,o=t.startOffset;if(n&&3===n.nodeType&&n.data.length&&o){var i=n.data.slice(0,o),s=n.data.charAt(o-1),a=u.reduce(function(e,t){if(e.result)return e;if(s!==t.delimiter.slice(-1))return e;var n=Object(O.escapeRegExp)(t.delimiter),r=new RegExp("(.*)"+n+".+"+n+"$"),a=i.match(r);if(!a)return e;var c=a[1].length,l=o-t.delimiter.length,u=i.charAt(c-1),d=i.charAt(c+t.delimiter.length),p=t.delimiter.charAt(0);if(c&&/\S/.test(u)&&(/\s/.test(d)||u===p))return e;var f=new RegExp("^[\\s"+Object(O.escapeRegExp)(p)+"]+$"),h=i.slice(c,l);return f.test(h)?e:{start:c,pattern:t}},{}),c=a.start,l=a.pattern;if(l){var p=l.delimiter,f=l.format,h=e.formatter.get(f);h&&h[0].inline&&(e.undoManager.add(),e.undoManager.transact(function(){n.insertData(o,"\ufeff");var t=n.splitText(c),i=t.splitText(o-c);t.deleteData(0,p.length),t.deleteData(t.data.length-p.length,p.length),e.formatter.apply(f,{},t),e.selection.setCursorLocation(i,1),r(function(){d="space",e.once("selectionchange",function(){if(i){var e=i.data.indexOf("\ufeff");-1!==e&&i.deleteData(e,e+1)}})})}))}}}e.on("selectionchange",function(){d=null}),e.on("keydown",function(n){var s=n.keyCode;(d&&s===Bs||"space"===d&&s===Ds)&&(e.undoManager.undo(),n.preventDefault(),n.stopImmediatePropagation()),i.metaKeyPressed(n)||(s===xs?function(n){if(!o)return;e.getBody().normalize();var r=t();if(!r.length)return;var i=Object(w.findTransform)(c,function(e){var t=e.regExp;return t.test(r[0])});if(!i)return;var s=i.transform({content:r});o([s]),n.preventDefault(),n.stopImmediatePropagation()}(n):s===Is?r(function(){return function(n){if(!o)return;e.getBody().normalize();var r=t();if(!r.length)return;var i=r[0],s=Object(w.findTransform)(n,function(e){return e.regExp.test(i)});if(!s)return;var a=i.match(s.regExp),c=e.selection.getRng(),l=a[0].length,u=i.slice(l);if(c.startOffset!==l)return;var d=s.transform({content:[u].concat(f()(Object(O.drop)(r))),match:a});o([d])}(l)}):s>47&&!(s>=91&&s<=93)&&r(p))},!0)},Ns=ro.keycodes.BACKSPACE,Ls=ro.keycodes.DELETE,Rs=ro.keycodes.ENTER,Us=ro.keycodes.rawShortcut;function Ms(e){return""===e.nodeValue||function(e){return"\ufeff"===("A"===e.nodeName?e.innerText:e.textContent)}(e)}function Fs(e){return Object(O.reject)(e,Ms)}var Hs=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.onInit=e.onInit.bind(e),e.getSettings=e.getSettings.bind(e),e.onSetup=e.onSetup.bind(e),e.onFocus=e.onFocus.bind(e),e.onChange=e.onChange.bind(e),e.onNewBlock=e.onNewBlock.bind(e),e.onNodeChange=e.onNodeChange.bind(e),e.onKeyDown=e.onKeyDown.bind(e),e.onKeyUp=e.onKeyUp.bind(e),e.changeFormats=e.changeFormats.bind(e),e.onPropagateUndo=e.onPropagateUndo.bind(e),e.onPastePreProcess=e.onPastePreProcess.bind(e),e.onPaste=e.onPaste.bind(e),e.onCreateUndoLevel=e.onCreateUndoLevel.bind(e),e.setFocusedElement=e.setFocusedElement.bind(e),e.state={formats:{},selectedNodeId:0},e.containerRef=Object(ar.createRef)(),e}return gr()(t,e),hr()(t,[{key:"getSettings",value:function(e){return(this.props.getSettings||O.identity)(l()({},e,{forced_root_block:this.props.multiline||!1,custom_undo_redo_levels:1}))}},{key:"onSetup",value:function(e){this.editor=e,e.on("init",this.onInit),e.on("NewBlock",this.onNewBlock),e.on("nodechange",this.onNodeChange),e.on("keydown",this.onKeyDown),e.on("keyup",this.onKeyUp),e.on("BeforeExecCommand",this.onPropagateUndo),e.on("PastePreProcess",this.onPastePreProcess,!0),e.on("paste",this.onPaste,!0),e.on("focus",this.onFocus),e.on("input",this.onChange),e.on("change",this.onCreateUndoLevel),As.apply(this,[e]),this.props.onSetup&&this.props.onSetup(e)}},{key:"setFocusedElement",value:function(){this.props.setFocusedElement&&this.props.setFocusedElement(this.props.instanceId)}},{key:"onInit",value:function(){var e=this;this.registerCustomFormatters(),this.editor.shortcuts.add(Us.primary("k"),"",function(){return e.changeFormats({link:{isAdding:!0}})}),this.editor.shortcuts.add(Us.access("a"),"",function(){return e.changeFormats({link:{isAdding:!0}})}),this.editor.shortcuts.add(Us.access("s"),"",function(){return e.changeFormats({link:void 0})}),this.editor.shortcuts.add(Us.access("d"),"",function(){return e.changeFormats({strikethrough:!e.state.formats.strikethrough})}),this.editor.shortcuts.add(Us.access("x"),"",function(){return e.changeFormats({code:!e.state.formats.code})}),this.editor.shortcuts.add(Us.primary("z"),"","Undo"),this.editor.shortcuts.add(Us.primaryShift("z"),"","Redo"),this.editor.shortcuts.remove("meta+y","","Redo")}},{key:"adaptFormatter",value:function(e){switch(e.type){case"inline-style":return{inline:"span",styles:l()({},e.style)}}}},{key:"registerCustomFormatters",value:function(){var e=this;Object(O.forEach)(this.props.formatters,function(t){e.editor.formatter.register(t.format,e.adaptFormatter(t))})}},{key:"onPropagateUndo",value:function(e){var t=this.context,n=t.onUndo,r=t.onRedo,o=e.command;"Undo"===o&&n&&(Object(O.defer)(n),e.preventDefault()),"Redo"===o&&r&&(Object(O.defer)(r),e.preventDefault())}},{key:"onPaste",value:function(e){var t=this,n=e.clipboardData||e.dataTransfer||this.editor.getDoc().dataTransfer||{getData:function(){return""}},r=n.items,o=void 0===r?[]:r,i=n.files,s=void 0===i?[]:i,a=n.types,c=void 0===a?[]:a,l=Object(O.find)([].concat(f()(o),f()(s)),function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}),u=n.getData("text/plain"),d=n.getData("text/html");if(l&&!d){var p=l.getAsFile?l.getAsFile():l,h=Object(w.rawHandler)({HTML:'<img src="'+Object(Zi.createBlobURL)(p)+'">',mode:"BLOCKS",tagName:this.props.tagName}),m=this.props.onReplace&&this.isEmpty();window.console.log("Received item:\n\n",p),m?this.props.setTimeout(function(){return t.props.onReplace(h)}):this.props.onSplit&&this.props.setTimeout(function(){return t.splitContent(h)}),e.preventDefault()}this.pastedPlainText=u,this.isPlainTextPaste=1===c.length&&"text/plain"===c[0]}},{key:"onPastePreProcess",value:function(e){var t=this.isPlainTextPaste?"":e.content;if(e.preventDefault(),window.console.log("Received HTML:\n\n",t),window.console.log("Received plain text:\n\n",this.pastedPlainText),!this.editor.selection.isCollapsed()){var n=/^(?:https?:)?\/\/\S+$/i,r=e.content.replace(/<[^>]+>/g,"").trim(),o=this.editor.selection.getContent().replace(/<[^>]+>/g,"").trim();if(n.test(r)&&!n.test(o))return this.editor.execCommand("mceInsertLink",!1,{href:this.editor.dom.decode(r)}),void window.console.log("Created link:\n\n",r)}var i=this.props.onReplace&&this.isEmpty(),s="INLINE";i?s="BLOCKS":this.props.onSplit&&(s="AUTO");var a=Object(w.rawHandler)({HTML:t,plainText:this.pastedPlainText,mode:s,tagName:this.props.tagName,canUserUseUnfilteredHTML:this.context.canUserUseUnfilteredHTML});if("string"==typeof a)this.editor.insertContent(a);else if(this.props.onSplit){if(!a.length)return;i?this.props.onReplace(a):this.splitContent(a,{paste:!0})}}},{key:"onFocus",value:function(){var e=this.props.unstableOnFocus;e&&e()}},{key:"onChange",value:function(){this.savedContent=this.getContent(),this.props.onChange(this.savedContent)}},{key:"onCreateUndoLevel",value:function(e){e&&null===e.lastLevel||(e&&e.originalEvent&&"blur"===e.originalEvent.type||this.onChange(),this.context.onCreateUndoLevel())}},{key:"getFocusPosition",value:function(e){var t=this.containerRef.current.getBoundingClientRect();return{top:e.top-t.top+e.height,left:e.left-t.left+e.width/2}}},{key:"onKeyDown",value:function(e){var t=this.editor.dom,n=this.editor.getBody();if(e.keyCode===Ns&&Object(wo.isHorizontalEdge)(n,!0)||e.keyCode===Ls&&Object(wo.isHorizontalEdge)(n,!1)){if(!this.props.onMerge&&!this.props.onRemove)return;this.onCreateUndoLevel();var r=e.keyCode===Ls;this.props.onMerge&&this.props.onMerge(r),this.props.onRemove&&this.isEmpty()&&this.props.onRemove(r),e.preventDefault(),e.stopImmediatePropagation()}if(e.keyCode===Rs)if(this.props.multiline){if(!this.props.onSplit)return;var o=this.editor.selection.getNode();if(o.parentNode!==n)return;if(!t.isEmpty(o))return;e.preventDefault(),this.onCreateUndoLevel();var i=Qi()(n.childNodes),s=t.nodeIndex(o),a=i.slice(0,s),c=i.slice(s+1),l=this.props.format,u=js(a,l,this.editor),d=js(c,l,this.editor);this.restoreContentAndSplit(u,d)}else e.preventDefault(),this.onCreateUndoLevel(),e.shiftKey||!this.props.onSplit?this.editor.execCommand("InsertLineBreak",!1,e):this.splitContent()}},{key:"onKeyUp",value:function(e){var t=e.keyCode;t===Ns&&this.onChange(),this.props.isViewportSmall&&t!==Ns&&t!==Rs&&this.scrollToRect(Object(wo.getRectangleFromRange)(this.editor.selection.getRng()))}},{key:"scrollToRect",value:function(e){var t=e.top,n=Object(wo.getScrollContainer)(this.editor.getBody());if(n){var r=t-100;Math.abs(r)>10&&n.scrollTo(n.scrollLeft,n.scrollTop+r)}}},{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.props.onSplit){var n=this.editor.dom,r=this.editor.getBody(),o=n.createRng(),i=n.createRng(),s=this.editor.selection.getRng();if(r.childNodes.length){o.setStart(r,0),o.setEnd(s.startContainer,s.startOffset),i.setStart(s.endContainer,s.endOffset),i.setEnd(r,n.nodeIndex(r.lastChild)+1);var a=o.extractContents(),c=i.extractContents(),l=this.props.format,u=js(Fs(a.childNodes),l,this.editor),d=js(Fs(c.childNodes),l,this.editor);t.paste&&(u=this.isEmpty(u)?null:u,d=this.isEmpty(d)?null:d),this.restoreContentAndSplit(u,d,e)}else t.paste?this.restoreContentAndSplit(null,null,e):this.restoreContentAndSplit([],[],e)}}},{key:"onNewBlock",value:function(){if("p"===this.props.multiline&&this.props.onSplit){for(var e=Qi()(this.editor.getBody().childNodes),t=this.editor.selection.getStart();-1===e.indexOf(t)&&t.parentNode;)t=t.parentNode;var n=e.indexOf(t);if(-1!==n){var r=e.slice(0,n),o=Object(O.last)(r);if(!(!o||r.length<2||o.textContent)){var i=r.slice(0,r.length-1),s=e.slice(n).reduce(function(e,t){return e.length||t.textContent?(e.push(t),e):e},[]);this.setContent(this.props.value);var a=this.props.format;this.restoreContentAndSplit(js(i,a,this.editor),js(s,a,this.editor))}}}}},{key:"onNodeChange",value:function(e){var t=e.parents;if(document.activeElement===this.editor.getBody()){var n=this.props.formattingControls,r=this.editor.formatter.matchAll(n).reduce(function(e,n){return e[n]=l()({isActive:!0},function(e,t){switch(e){case"link":var n=Object(O.find)(t,function(e){return"a"===e.nodeName.toLowerCase()});return n?{value:n.getAttribute("href")||"",target:n.getAttribute("target")||"",node:n}:{};default:return{}}}(n,t)),e},{}),o=void 0,i=Object(O.find)(t,function(e){return"A"===e.tagName});o=i?i.getBoundingClientRect():Object(wo.getRectangleFromRange)(this.editor.selection.getRng());var s=this.getFocusPosition(o);this.setState({formats:r,focusPosition:s,selectedNodeId:this.state.selectedNodeId+1}),this.props.isViewportSmall&&this.scrollToRect(o)}}},{key:"updateContent",value:function(){var e=this;this.editor.undoManager.ignore(function(){var t=e.editor.selection.getBookmark(2,!0);e.savedContent=e.props.value,e.setContent(e.savedContent),e.editor.selection.moveToBookmark(t)})}},{key:"setContent",value:function(e){var t=this.props.format;this.editor.setContent(Ss(e,t))}},{key:"getContent",value:function(){switch(this.props.format){case"string":return this.editor.getContent();default:return this.editor.dom.isEmpty(this.editor.getBody())?[]:js(this.editor.getBody().childNodes||[],"element",this.editor)}}},{key:"componentDidUpdate",value:function(e){!this.editor||this.props.tagName!==e.tagName||this.props.value===e.value||this.props.value===this.savedContent||Object(O.isEqual)(this.props.value,e.value)||Object(O.isEqual)(this.props.value,this.savedContent)||this.updateContent()}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.value;return!e||!e.length}},{key:"isFormatActive",value:function(e){return this.state.formats[e]&&this.state.formats[e].isActive}},{key:"removeFormat",value:function(e){this.editor.focus(),this.editor.formatter.remove(e),this.onCreateUndoLevel()}},{key:"applyFormat",value:function(e,t,n){this.editor.focus(),this.editor.formatter.apply(e,t,n),this.onCreateUndoLevel()}},{key:"changeFormats",value:function(e){var t=this;Object(O.forEach)(e,function(e,n){if("link"===n)if(e){if(e.isAdding)return;var r=e.value,o=e.target;if(!t.isFormatActive("link")&&t.editor.selection.isCollapsed()){var i=t.editor.dom.createHTML("a",{href:r,target:o},t.editor.dom.encode(r));t.editor.insertContent(i)}else t.editor.execCommand("mceInsertLink",!1,{href:r,target:o})}else t.editor.execCommand("Unlink");else{var s=t.isFormatActive(n);s&&!e?t.removeFormat(n):!s&&e&&t.applyFormat(n)}}),this.setState(function(t){return{formats:Object(O.merge)({},t.formats,e)}})}},{key:"restoreContentAndSplit",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.updateContent(),(n=this.props).onSplit.apply(n,[e,t].concat(f()(r)))}},{key:"render",value:function(){var e=this,t=this.props,n=t.tagName,r=void 0===n?"div":n,o=t.style,i=t.value,s=t.wrapperClassName,a=t.className,c=t.inlineToolbar,u=void 0!==c&&c,d=t.formattingControls,p=t.placeholder,f=t.multiline,h=t.keepPlaceholderOnFocus,m=void 0!==h&&h,v=t.isSelected,b=t.formatters,g=t.autocompleters,y=t.format,k=Os(this.props),_=["editor",r].join(),O=p&&(!v||m)&&this.isEmpty(),w=sr()(s,"editor-rich-text"),S=wp.element.createElement(_s,{selectedNodeId:this.state.selectedNodeId,focusPosition:this.state.focusPosition,formats:this.state.formats,onChange:this.changeFormats,enabledControls:d,customControls:b});return wp.element.createElement("div",{className:w,ref:this.containerRef,onFocus:this.setFocusedElement},v&&!u&&wp.element.createElement(Jr,null,S),v&&u&&wp.element.createElement("div",{className:"editor-rich-text__inline-toolbar"},S),wp.element.createElement(jr,{onReplace:this.props.onReplace,completers:g},function(t){var n=t.isExpanded,s=t.listBoxId,c=t.activeId;return wp.element.createElement(ar.Fragment,null,wp.element.createElement(Ps,l()({tagName:r,getSettings:e.getSettings,onSetup:e.onSetup,style:o,defaultValue:i,format:y,isPlaceholderVisible:O,"aria-label":p,"aria-autocomplete":"list","aria-expanded":n,"aria-owns":s,"aria-activedescendant":c},k,{className:a,key:_})),O&&wp.element.createElement(r,{className:sr()("editor-rich-text__tinymce",a),style:o},f?wp.element.createElement(f,null,p):p),v&&wp.element.createElement(yr.Slot,{name:"RichText.Siblings"}))}))}}]),t}(ar.Component);Hs.contextTypes={onUndo:O.noop,onRedo:O.noop,canUserUseUnfilteredHTML:O.noop,onCreateUndoLevel:O.noop},Hs.defaultProps={formattingControls:["bold","italic","strikethrough","link","code"],formatters:[],format:"element"};var Vs=Object(ar.compose)([yr.withInstanceId,wr(function(e,t){return!1===t.isSelected?{}:!0===t.isSelected?{isSelected:e.isSelected}:{isSelected:e.isSelected&&e.focusedElement===t.instanceId,setFocusedElement:e.setFocusedElement}}),Object(i.withSelect)(function(e){var t=(e("core/viewport")||{}).isViewportMatch;return{isViewportSmall:(void 0===t?O.identity:t)("< small")}}),yr.withSafeTimeout])(Hs);Vs.Content=function(e){var t=e.value,n=e.format,r=void 0===n?"element":n,o=e.tagName,i=d()(e,["value","format","tagName"]),s=void 0;switch(r){case"string":s=wp.element.createElement(ar.RawHTML,null,t);break;default:s=t}return o?wp.element.createElement(o,i,s):s};var Ks=Vs,Ws=function(e){function t(){return pr()(this,t),vr()(this,(t.__proto__||ur()(t)).apply(this,arguments))}return gr()(t,e),hr()(t,[{key:"getChildContext",value:function(){return Object(O.pick)(this.props,z()(this.constructor.childContextTypes))}},{key:"render",value:function(){return this.props.children}}]),t}(ar.Component);Ws.childContextTypes={onUndo:O.noop,onRedo:O.noop,onCreateUndoLevel:O.noop};var zs=Ws,qs=(n(603),function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.toggle=e.toggle.bind(e),e.submitLink=e.submitLink.bind(e),e.state={expanded:!1},e}return gr()(t,e),hr()(t,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(q.__)("Edit Link"):Object(q.__)("Insert Link");return wp.element.createElement("div",{className:"editor-url-input__button"},wp.element.createElement(yr.IconButton,{icon:"admin-links",label:o,onClick:this.toggle,className:sr()("components-toolbar__control",{"is-active":t})}),r&&wp.element.createElement("form",{className:"editor-url-input__button-modal",onSubmit:this.submitLink},wp.element.createElement("div",{className:"editor-url-input__button-modal-line"},wp.element.createElement(yr.IconButton,{className:"editor-url-input__back",icon:"arrow-left-alt",label:Object(q.__)("Close"),onClick:this.toggle}),wp.element.createElement(as,{value:t||"",onChange:n,"data-test":"UrlInput"}),wp.element.createElement(yr.IconButton,{icon:"editor-break",label:Object(q.__)("Submit"),type:"submit"}))))}}]),t}(ar.Component)),Gs=function(e){function t(){return pr()(this,t),vr()(this,(t.__proto__||ur()(t)).apply(this,arguments))}return gr()(t,e),hr()(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDirty,r=t.isAutosaveable;e.isDirty===n&&e.isAutosaveable===r||this.toggleTimer(n&&r)}},{key:"componentWillUnmount",value:function(){this.toggleTimer(!1)}},{key:"toggleTimer",value:function(e){var t=this;clearTimeout(this.pendingSave);var n=this.props.autosaveInterval;e&&(this.pendingSave=setTimeout(function(){return t.props.autosave()},1e3*n))}},{key:"render",value:function(){return null}}]),t}(ar.Component),Ys=Object(ar.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.isEditedPostDirty,r=t.isEditedPostAutosaveable,o=(0,t.getEditorSettings)().autosaveInterval;return{isDirty:n(),isAutosaveable:r(),autosaveInterval:o}}),Object(i.withDispatch)(function(e){return{autosave:e("core/editor").autosave}})])(Gs),Xs=(n(602),function(e){var t=e.children,n=e.isValid,r=e.level,o=e.onClick,i=e.path,s=void 0===i?[]:i;return wp.element.createElement("li",{className:sr()("document-outline__item","is-"+r.toLowerCase(),{"is-invalid":!n})},wp.element.createElement("button",{className:"document-outline__button",onClick:o},wp.element.createElement("span",{className:"document-outline__emdash","aria-hidden":"true"}),s.map(function(e,t){var n=e.uid;return wp.element.createElement("strong",{key:t,className:"document-outline__level"},wp.element.createElement(Jo,{uid:n}))}),wp.element.createElement("strong",{className:"document-outline__level"},r),wp.element.createElement("span",{className:"document-outline__item-content"},t),wp.element.createElement("span",{className:"screen-reader-text"},Object(q.__)("(Click to focus this heading)"))))}),$s=wp.element.createElement("em",null,Object(q.__)("(Empty heading)")),Js=[wp.element.createElement("br",{key:"incorrect-break"}),wp.element.createElement("em",{key:"incorrect-message"},Object(q.__)("(Incorrect heading level)"))],Qs=[wp.element.createElement("br",{key:"incorrect-break-h1"}),wp.element.createElement("em",{key:"incorrect-message-h1"},Object(q.__)("(Your theme may already use a H1 for the post title)"))],Zs=[wp.element.createElement("br",{key:"incorrect-break-multiple-h1"}),wp.element.createElement("em",{key:"incorrect-message-multiple-h1"},Object(q.__)("(Multiple H1 headings are not recommended)"))],ea=function(e){return!e.attributes.content||0===e.attributes.content.length},ta=Object(ar.compose)(Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getBlocks,o=(0,e("core").getPostType)(n("type"));return{title:n("title"),blocks:r(),isTitleSupported:Object(O.get)(o,["supports","title"],!1)}}),Object(i.withDispatch)(function(e){return{onSelect:e("core/editor").selectBlock}}))(function(e){var t=e.blocks,n=void 0===t?[]:t,r=e.title,o=e.onSelect,i=e.isTitleSupported,s=function e(){var t=arguments.length>0&&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?l()({},t,{path:n,level:function(e){switch(e.attributes.nodeName){case"h1":case"H1":return 1;case"h2":case"H2":return 2;case"h3":case"H3":return 3;case"h4":case"H4":return 4;case"h5":case"H5":return 5;case"h6":case"H6":return 6}}(t),isEmpty:ea(t)}):e(t.innerBlocks,[].concat(f()(n),[t]))})}(n);if(s.length<1)return null;var a=1,c=i&&r,u=Object(O.countBy)(s,"level")[1]>1;return wp.element.createElement("div",{className:"document-outline"},wp.element.createElement("ul",null,c&&wp.element.createElement(Xs,{level:"Title",isValid:!0,onClick:function(){var e=document.querySelector(".editor-post-title__input");e&&e.focus()}},r),s.map(function(e,t){var n=e.level>a+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(u||c));return a=e.level,wp.element.createElement(Xs,{key:t,level:"H"+e.level,isValid:r,onClick:function(){return t=e.uid,o(t);var t},path:e.path},e.isEmpty?$s:e.attributes.content,n&&Js,1===e.level&&u&&Zs,c&&1===e.level&&!u&&Qs)})))});var na=Object(i.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}),ra=function(e){function t(e){pr()(this,t);var n=vr()(this,(t.__proto__||ur()(t)).call(this,e));return n.originalDocumentTitle=document.title,n}return gr()(t,e),hr()(t,[{key:"componentDidMount",value:function(){this.setDocumentTitle(this.props.title)}},{key:"componentDidUpdate",value:function(e){e.title!==this.props.title&&this.setDocumentTitle(this.props.title)}},{key:"componentWillUnmount",value:function(){document.title=this.originalDocumentTitle}},{key:"setDocumentTitle",value:function(e){document.title=e+" | "+this.originalDocumentTitle}},{key:"render",value:function(){return null}}]),t}(n(14).Component),oa=Object(i.withSelect)(function(e){return{title:e("core/editor").getDocumentTitle()}})(ra),ia=ro.keycodes.rawShortcut,sa=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.selectAll=e.selectAll.bind(e),e.undoOrRedo=e.undoOrRedo.bind(e),e.save=e.save.bind(e),e.deleteSelectedBlocks=e.deleteSelectedBlocks.bind(e),e.clearMultiSelection=e.clearMultiSelection.bind(e),e}return gr()(t,e),hr()(t,[{key:"selectAll",value:function(e){var t=this.props,n=t.uids,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.multiSelectedBlockUids,r=t.onRemove,o=t.isLocked;n.length&&(e.preventDefault(),o||r(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;return wp.element.createElement(ar.Fragment,null,wp.element.createElement(yr.KeyboardShortcuts,{shortcuts:(e={},b()(e,ia.primary("a"),this.selectAll),b()(e,ia.primary("z"),this.undoOrRedo),b()(e,ia.primaryShift("z"),this.undoOrRedo),b()(e,"backspace",this.deleteSelectedBlocks),b()(e,"del",this.deleteSelectedBlocks),b()(e,"escape",this.clearMultiSelection),e)}),wp.element.createElement(yr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:b()({},ia.primary("s"),this.save)}))}}]),t}(ar.Component),aa=Object(ar.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getBlockOrder,r=t.getMultiSelectedBlockUids,o=t.hasMultiSelection,i=t.getEditorSettings,s=t.isEditedPostDirty,a=i().templateLock;return{uids:n(),multiSelectedBlockUids:r(),hasMultiSelection:o(),isLocked:!!a,isDirty:s()}}),Object(i.withDispatch)(function(e,t){var n=e("core/editor"),r=n.clearSelectedBlock,o=n.multiSelect,i=n.redo,s=n.undo,a=n.removeBlocks,c=n.savePost;return{onSave:function(){t.isDirty&&c()},clearSelectedBlock:r,onMultiSelect:o,onRedo:i,onUndo:s,onRemove:a}})])(sa),ca=ro.keycodes.displayShortcut;var la=Object(ar.compose)([Object(i.withSelect)(function(e){return{hasRedo:e("core/editor").hasEditorRedo()}}),Object(i.withDispatch)(function(e){return{redo:function(){return e("core/editor").redo()}}})])(function(e){var t=e.hasRedo,n=e.redo;return wp.element.createElement(yr.IconButton,{icon:"redo",label:Object(q.__)("Redo"),shortcut:ca.primaryShift("z"),disabled:!t,onClick:n,className:"editor-history__undo"})}),ua=ro.keycodes.displayShortcut;var da=Object(ar.compose)([Object(i.withSelect)(function(e){return{hasUndo:e("core/editor").hasEditorUndo()}}),Object(i.withDispatch)(function(e){return{undo:function(){return e("core/editor").undo()}}})])(function(e){var t=e.hasUndo,n=e.undo;return wp.element.createElement(yr.IconButton,{icon:"undo",label:Object(q.__)("Undo"),shortcut:ua.primary("z"),disabled:!t,onClick:n,className:"editor-history__undo"})});n(601);var pa=Object(ar.compose)([Object(i.withSelect)(function(e){return{isValid:e("core/editor").isValidTemplate()}}),Object(i.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=d()(e,["isValid"]);return t?null:wp.element.createElement(yr.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning"},wp.element.createElement("p",null,Object(q.__)("The content of your post doesn't match the template assigned to your post type.")),wp.element.createElement("div",null,wp.element.createElement(yr.Button,{isDefault:!0,onClick:n.resetTemplateValidity},Object(q.__)("Keep it as is")),wp.element.createElement(yr.Button,{onClick:function(){window.confirm(Object(q.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0},Object(q.__)("Reset the template"))))});var fa=Object(ar.compose)([Object(i.withSelect)(function(e){return{notices:e("core/editor").getNotices()}}),Object(i.withDispatch)(function(e){return{onRemove:e("core/editor").removeNotice}})])(function(e){return wp.element.createElement(yr.NoticeList,e,wp.element.createElement(pa,null))});var ha=Object(i.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(i.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;return Object(O.some)(Object(O.castArray)(r),function(e){return Object(O.get)(t,["supports",e],!1)})?n:null});function va(e){var t=e.onUpdateOrder,n=e.instanceId,r=e.order,o="editor-page-attributes__order-"+n;return wp.element.createElement(ar.Fragment,null,wp.element.createElement("label",{htmlFor:o},Object(q.__)("Order")),wp.element.createElement("input",{type:"text",value:r||0,onChange:function(e){var n=Number(e.target.value);n>=0&&t(n)},id:o,size:6}))}var ba=Object(ar.compose)([Object(i.withSelect)(function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}}),Object(i.withDispatch)(function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}),yr.withInstanceId])(function(e){return wp.element.createElement(ma,{supportKeys:"page-attributes"},wp.element.createElement(va,e))});var ga=Object(i.withSelect)(function(e){var t=e("core").getPostType,n=e("core/editor"),r=n.getCurrentPostId,o=n.getEditedPostAttribute,i=o("type");return{postId:r(),parent:o("parent"),postType:t(i),postTypeSlug:i}}),ya=Object(i.withDispatch)(function(e){var t=e("core/editor").editPost;return{onUpdateParent:function(e){t({parent:e||0})}}}),ka=Object(yr.withAPIData)(function(e,t){var n=t.type,r=e.postTypeSlug,o=e.postId,i=Object(O.get)(e,["postType","hierarchical"],!1),s=Object(ts.stringify)({context:"edit",per_page:-1,exclude:o,parent_exclude:o,_fields:["id","parent","title"],orderby:"menu_order",order:"asc"});return i?{items:"/wp/v2/"+n(r)+"?"+s}:{}}),_a=Object(ar.compose)([ga,ya,ka])(function(e){var t=e.parent,n=e.postType,r=e.items,o=e.onUpdateParent,i=Object(O.get)(n,["hierarchical"],!1),s=Object(O.get)(n,["labels","parent_item_colon"]),a=Object(O.get)(r,["data"],[]);if(!i||!s||!a.length)return null;var c=Object(ro.buildTermsTree)(a.map(function(e){return{id:e.id,parent:e.parent,name:e.title.raw?e.title.raw:"#"+e.id+" ("+Object(q.__)("no title")+")"}}));return wp.element.createElement(yr.TreeSelect,{label:s,noOptionLabel:"("+Object(q.__)("no parent")+")",tree:c,selectedId:t,onChange:o})});n(600);var Oa=Object(ar.compose)(Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}}),Object(i.withDispatch)(function(e){return{onUpdate:function(t){e("core/editor").editPost({template:t||""})}}}),yr.withInstanceId)(function(e){var t=e.availableTemplates,n=e.selectedTemplate,r=e.instanceId,o=e.onUpdate;if(Object(O.isEmpty)(t))return null;var i="template-selector-"+r,s=function(e){return o(e.target.value)};return wp.element.createElement("div",{className:"editor-page-attributes__template"},wp.element.createElement("label",{htmlFor:i},Object(q.__)("Template:")),wp.element.createElement("select",{id:i,value:n,onBlur:s,onChange:s},Object(O.map)(t,function(e,t){return wp.element.createElement("option",{key:t,value:t},e)})))});var wa=Object(ar.compose)([Object(i.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()}}),yr.withInstanceId])(function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||n.length<2?null:wp.element.createElement(ma,{supportKeys:"author"},r)}),Sa=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.setAuthorId=e.setAuthorId.bind(e),e}return gr()(t,e),hr()(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 wp.element.createElement(wa,null,wp.element.createElement("label",{htmlFor:o},Object(q.__)("Author")),wp.element.createElement("select",{id:o,value:t,onChange:this.setAuthorId,className:"editor-post-author__select"},r.map(function(e){return wp.element.createElement("option",{key:e.id,value:e.id},e.name)})))}}]),t}(ar.Component),Ea=Object(ar.compose)([Object(i.withSelect)(function(e){return{postAuthor:e("core/editor").getEditedPostAttribute("author"),authors:e("core").getAuthors()}}),Object(i.withDispatch)(function(e){return{onUpdateAuthor:function(t){e("core/editor").editPost({author:t})}}}),yr.withInstanceId])(Sa);var ja=Object(ar.compose)([Object(i.withSelect)(function(e){return{commentStatus:e("core/editor").getEditedPostAttribute("comment_status")}}),Object(i.withDispatch)(function(e){return{editPost:e("core/editor").editPost}}),yr.withInstanceId])(function(e){var t=e.commentStatus,n=void 0===t?"open":t,r=e.instanceId,o=d()(e,["commentStatus","instanceId"]),i="allow-comments-toggle-"+r;return[wp.element.createElement("label",{key:"label",htmlFor:i},Object(q.__)("Allow Comments")),wp.element.createElement(yr.FormToggle,{key:"toggle",checked:"open"===n,onChange:function(){return o.editPost({comment_status:"open"===n?"closed":"open"})},id:i})]});n(599);var Ca=Object(ar.compose)([Object(i.withSelect)(function(e){return{excerpt:e("core/editor").getEditedPostAttribute("excerpt")}}),Object(i.withDispatch)(function(e){return{onUpdateExcerpt:function(t){e("core/editor").editPost({excerpt:t})}}})])(function(e){var t=e.excerpt,n=e.onUpdateExcerpt;return wp.element.createElement("div",{className:"editor-post-excerpt"},wp.element.createElement(yr.TextareaControl,{label:Object(q.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(e){return n(e)},value:t}),wp.element.createElement(yr.ExternalLink,{href:"https://codex.wordpress.org/Excerpt"},Object(q.__)("Learn more about manual excerpts")))});var Ta=function(e){return wp.element.createElement(ma,l()({},e,{supportKeys:"excerpt"}))};n(598);var Pa=Object(i.withSelect)(function(e){return{themeSupports:(0,e("core").getThemeSupports)()}})(function(e){var t=e.themeSupports,n=e.children,r=e.supportKeys;return Object(O.some)(Object(O.castArray)(r),function(e){return Object(O.get)(t,[e],!1)})?n:null});var Ba=function(e){return wp.element.createElement(Pa,{supportKeys:"post-thumbnails"},wp.element.createElement(ma,l()({},e,{supportKeys:"thumbnail"})))},xa=Object(q.__)("Set featured image"),Ia=Object(q.__)("Remove image");var Da=Object(i.withSelect)(function(e){var t=e("core"),n=t.getMedia,r=t.getPostType,o=e("core/editor").getEditedPostAttribute,i=o("featured_media");return{media:i?n(i):null,postType:r(o("type")),featuredImageId:i}}),Aa=Object(i.withDispatch)(function(e){var t=e("core/editor").editPost;return{onUpdateImage:function(e){t({featured_media:e.id})},onRemoveImage:function(){t({featured_media:0})}}}),Na=Object(ar.compose)(Da,Aa)(function(e){var t=e.featuredImageId,n=e.onUpdateImage,r=e.onRemoveImage,o=e.media,i=e.postType,s=Object(O.get)(i,["labels"],{});return wp.element.createElement(Ba,null,wp.element.createElement("div",{className:"editor-post-featured-image"},!!t&&wp.element.createElement(ho,{title:Object(q.__)("Set featured image"),onSelect:n,type:"image",modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return wp.element.createElement(yr.Button,{className:"editor-post-featured-image__preview",onClick:t},o&&wp.element.createElement(yr.ResponsiveWrapper,{naturalWidth:o.media_details.width,naturalHeight:o.media_details.height},wp.element.createElement("img",{src:o.source_url,alt:Object(q.__)("Featured image")})),!o&&wp.element.createElement(yr.Spinner,null))}}),!!t&&o&&!o.isLoading&&wp.element.createElement(ho,{title:s.set_featured_image||xa,onSelect:n,type:"image",modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return wp.element.createElement(yr.Button,{onClick:t,isDefault:!0,isLarge:!0},Object(q.__)("Replace image"))}}),!t&&wp.element.createElement("div",null,wp.element.createElement(ho,{title:s.set_featured_image||xa,onSelect:n,type:"image",modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return wp.element.createElement(yr.Button,{className:"editor-post-featured-image__toggle",onClick:t},Object(q.__)("Set featured image"))}})),!!t&&wp.element.createElement(yr.Button,{onClick:r,isLink:!0,isDestructive:!0},s.remove_featured_image||Ia)))});n(597);var La=Object(i.withSelect)(function(e){return{disablePostFormats:e("core/editor").getEditorSettings().disablePostFormats}})(function(e){var t=e.disablePostFormats,n=d()(e,["disablePostFormats"]);return!t&&wp.element.createElement(ma,l()({},n,{supportKeys:"post-formats"}))}),Ra=[{id:"aside",caption:Object(q.__)("Aside")},{id:"gallery",caption:Object(q.__)("Gallery")},{id:"link",caption:Object(q.__)("Link")},{id:"image",caption:Object(q.__)("Image")},{id:"quote",caption:Object(q.__)("Quote")},{id:"standard",caption:Object(q.__)("Standard")},{id:"status",caption:Object(q.__)("Status")},{id:"video",caption:Object(q.__)("Video")},{id:"audio",caption:Object(q.__)("Audio")},{id:"chat",caption:Object(q.__)("Chat")}];var Ua=Object(ar.compose)([Object(i.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(i.withDispatch)(function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}}),yr.withInstanceId])(function(e){var t=e.onUpdatePostFormat,n=e.postFormat,r=void 0===n?"standard":n,o=e.supportedFormats,i=e.suggestedFormat,s="post-format-selector-"+e.instanceId,a=Ra.filter(function(e){return Object(O.includes)(o,e.id)}),c=Object(O.find)(a,function(e){return e.id===i});return wp.element.createElement(La,null,wp.element.createElement("div",{className:"editor-post-format"},wp.element.createElement("div",{className:"editor-post-format__content"},wp.element.createElement("label",{htmlFor:s},Object(q.__)("Post Format")),wp.element.createElement("select",{value:r,onChange:function(e){return t(e.target.value)},id:s},a.map(function(e){return wp.element.createElement("option",{key:e.id,value:e.id},e.caption)}))),c&&c.id!==r&&wp.element.createElement("div",{className:"editor-post-format__suggestion"},Object(q.__)("Suggestion:")," ",wp.element.createElement(yr.Button,{isLink:!0,onClick:function(){return t(c.id)}},c.caption))))});n(596);var Ma=Object(i.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:wp.element.createElement(ma,{supportKeys:"revisions"},r)});var Fa=Object(i.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 wp.element.createElement(Ma,null,wp.element.createElement(yr.IconButton,{href:cs("revision.php",{revision:t,gutenberg:!0}),className:"editor-post-last-revision__title",icon:"backup"},Object(q.sprintf)(Object(q._n)("%d Revision","%d Revisions",n),n)))});var Ha=Object(ar.compose)(Object(i.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 Va=Object(ar.compose)(Object(i.withSelect)(function(e){return{status:e("core/editor").getEditedPostAttribute("status")}}),Object(i.withDispatch)(function(e){return{onUpdateStatus:function(t){e("core/editor").editPost({status:t})}}}),yr.withInstanceId)(function(e){var t=e.instanceId,n=e.status,r=e.onUpdateStatus,o="pending-toggle-"+t;return wp.element.createElement(Ha,null,wp.element.createElement("label",{htmlFor:o},Object(q.__)("Pending Review")),wp.element.createElement(yr.FormToggle,{id:o,checked:"pending"===n,onChange:function(){r("pending"===n?"draft":"pending")}}))});var Ka=Object(ar.compose)([Object(i.withSelect)(function(e){return{pingStatus:e("core/editor").getEditedPostAttribute("ping_status")}}),Object(i.withDispatch)(function(e){return{editPost:e("core/editor").editPost}}),yr.withInstanceId])(function(e){var t=e.pingStatus,n=void 0===t?"open":t,r=e.instanceId,o=d()(e,["pingStatus","instanceId"]),i="allow-pingbacks-toggle-"+r;return[wp.element.createElement("label",{key:"label",htmlFor:i},Object(q.__)("Allow Pingbacks & Trackbacks")),wp.element.createElement(yr.FormToggle,{key:"toggle",checked:"open"===n,onChange:function(){return o.editPost({ping_status:"open"===n?"closed":"open"})},id:i})]}),Wa=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.saveForPreview=e.saveForPreview.bind(e),e}return gr()(t,e),hr()(t,[{key:"componentDidUpdate",value:function(e){var t=this.props.previewLink;t&&t!==e.previewLink&&this.setPreviewWindowLink(t)}},{key:"setPreviewWindowLink",value:function(e){var t=this.previewWindow;t&&t.location.href!==e&&(t.location=e)}},{key:"getWindowTarget",value:function(){return"wp-preview-"+this.props.postId}},{key:"saveForPreview",value:function(e){var t=this,n=this.props,r=n.isDirty,o=n.isNew;if(r||o){this.props.autosave(),e.preventDefault(),this.previewWindow=window.open("about:blank",this.getWindowTarget());this.previewWindow.document.write('\n\t\t\t<div>\n\t\t\t\t<p>Please wait&hellip;</p>\n\t\t\t\t<p>Generating preview.</p>\n\t\t\t</div>\n\t\t\t<style>\n\t\t\t\tbody {\n\t\t\t\t\tmargin: 0;\n\t\t\t\t}\n\t\t\t\tdiv {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tflex-direction: column;\n\t\t\t\t\talign-items: center;\n\t\t\t\t\tjustify-content: center;\n\t\t\t\t\theight: 100vh;\n\t\t\t\t\twidth: 100vw;\n\t\t\t\t}\n\t\t\t\tp {\n\t\t\t\t\ttext-align: center;\n\t\t\t\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\t\t\t}\n\t\t\t</style>'),this.previewWindow.document.close(),this.previewWindow.onbeforeunload=function(){return delete t.previewWindow}}}},{key:"render",value:function(){var e=this.props,t=e.currentPostLink,n=e.isSaveable;return wp.element.createElement(yr.Button,{className:"editor-post-preview",isLarge:!0,href:t,onClick:this.saveForPreview,target:this.getWindowTarget(),disabled:!n},Object(q._x)("Preview","imperative verb"),wp.element.createElement(Bi.DotTip,{id:"core/editor.preview"},Object(q.__)("Click ‘Preview’ to load a preview of this page, so you can make sure you’re happy with your blocks.")))}}]),t}(ar.Component),za=Object(ar.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getCurrentPostId,r=t.getCurrentPostAttribute,o=t.getAutosaveAttribute,i=t.getEditedPostAttribute,s=t.isEditedPostDirty,a=t.isEditedPostNew,c=t.isEditedPostSaveable,l=(0,e("core").getPostType)(i("type"));return{postId:n(),currentPostLink:r("link"),previewLink:o("preview_link"),isDirty:s(),isNew:a(),isSaveable:c(),isViewable:Object(O.get)(l,["viewable"],!1)}}),Object(i.withDispatch)(function(e){return{autosave:e("core/editor").autosave}}),Object(yr.ifCondition)(function(e){return e.isViewable})])(Wa);var qa=Object(ar.compose)([Object(i.withSelect)(function(e,t){var n=t.forceIsSaving,r=e("core/editor"),o=r.isCurrentPostPublished,i=r.isEditedPostBeingScheduled,s=r.isSavingPost,a=r.isPublishingPost,c=r.getCurrentPost,l=r.getCurrentPostType;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||s(),isPublishing:a(),hasPublishAction:Object(O.get)(c(),["_links","wp:action-publish"],!1),postType:l()}})])(function(e){var t=e.isPublished,n=e.isBeingScheduled,r=e.isSaving,o=e.isPublishing,i=e.hasPublishAction;return o?Object(q.__)("Publishing…"):t&&r?Object(q.__)("Updating…"):n&&r?Object(q.__)("Scheduling…"):i?t?Object(q.__)("Update"):n?Object(q.__)("Schedule"):Object(q.__)("Publish"):Object(q.__)("Submit for Review")});var Ga=Object(ar.compose)([Object(i.withSelect)(function(e,t){var n=t.forceIsSaving,r=t.forceIsDirty,o=e("core/editor"),i=o.isSavingPost,s=o.isEditedPostBeingScheduled,a=o.getEditedPostVisibility,c=o.isEditedPostSaveable,l=o.isEditedPostPublishable,u=o.getCurrentPost,d=o.getCurrentPostType;return{isSaving:n||i(),isBeingScheduled:s(),visibility:a(),isSaveable:c(),isPublishable:r||l(),hasPublishAction:Object(O.get)(u(),["_links","wp:action-publish"],!1),postType:d()}}),Object(i.withDispatch)(function(e){var t=e("core/editor"),n=t.editPost;return{onStatusChange:function(e){return n({status:e})},onSave:t.savePost}})])(function(e){var t=e.isSaving,n=e.onStatusChange,r=e.onSave,o=e.isBeingScheduled,i=e.visibility,s=e.isPublishable,a=e.isSaveable,c=e.hasPublishAction,l=e.onSubmit,u=void 0===l?O.noop:l,d=e.forceIsSaving,p=s&&a,f=void 0;return f=c?o?"future":"private"===i?"private":"publish":"pending",wp.element.createElement(yr.Button,{className:"editor-post-publish-button",isPrimary:!0,isLarge:!0,onClick:function(){u(),n(f),r()},disabled:!p,isBusy:t},wp.element.createElement(qa,{forceIsSaving:d}))}),Ya=(n(595),[{value:"public",label:Object(q.__)("Public"),info:Object(q.__)("Visible to everyone.")},{value:"private",label:Object(q.__)("Private"),info:Object(q.__)("Only visible to site admins and editors.")},{value:"password",label:Object(q.__)("Password Protected"),info:Object(q.__)("Protected with a password you choose. Only those with the password can view this post.")}]),Xa=function(e){function t(e){pr()(this,t);var n=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return n.setPublic=n.setPublic.bind(n),n.setPrivate=n.setPrivate.bind(n),n.setPasswordProtected=n.setPasswordProtected.bind(n),n.updatePassword=n.updatePassword.bind(n),n.state={hasPassword:!!e.password},n}return gr()(t,e),hr()(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(q.__)("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,o=e.password;n("private"===t?"draft":r,o||""),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[wp.element.createElement("fieldset",{key:"visibility-selector"},wp.element.createElement("legend",{className:"editor-post-visibility__dialog-legend"},Object(q.__)("Post Visibility")),Ya.map(function(e){var t=e.value,n=e.label,i=e.info;return wp.element.createElement("div",{key:t,className:"editor-post-visibility__choice"},wp.element.createElement("input",{type:"radio",name:"editor-post-visibility__setting-"+r,value:t,onChange:o[t].onSelect,checked:o[t].checked,id:"editor-post-"+t+"-"+r,"aria-describedby":"editor-post-"+t+"-"+r+"-description",className:"editor-post-visibility__dialog-radio"}),wp.element.createElement("label",{htmlFor:"editor-post-"+t+"-"+r,className:"editor-post-visibility__dialog-label"},n),wp.element.createElement("p",{id:"editor-post-"+t+"-"+r+"-description",className:"editor-post-visibility__dialog-info"},i))})),this.state.hasPassword&&wp.element.createElement("div",{className:"editor-post-visibility__dialog-password",key:"password-selector"},wp.element.createElement("label",{htmlFor:"editor-post-visibility__dialog-password-input-"+r,className:"screen-reader-text"},Object(q.__)("Create password")),wp.element.createElement("input",{className:"editor-post-visibility__dialog-password-input",id:"editor-post-visibility__dialog-password-input-"+r,type:"text",onChange:this.updatePassword,value:n,placeholder:Object(q.__)("Use a secure password")}))]}}]),t}(ar.Component),$a=Object(ar.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditedPostVisibility;return{status:n("status"),visibility:r(),password:n("password")}}),Object(i.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})}}}),yr.withInstanceId])(Xa);var Ja=Object(i.withSelect)(function(e){return{visibility:e("core/editor").getEditedPostVisibility()}})(function(e){var t=e.visibility;return Object(O.find)(Ya,{value:t}).label});var Qa=Object(ar.compose)([Object(i.withSelect)(function(e){return{date:e("core/editor").getEditedPostAttribute("date")}}),Object(i.withDispatch)(function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}})])(function(e){var t=e.date,n=e.onUpdateDate,r=Object(rt.getSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return wp.element.createElement(yr.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:n,locale:r.l10n.locale,is12Hour:o})});var Za=Object(i.withSelect)(function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})(function(e){var t=e.date,n=Object(rt.getSettings)();return t?Object(rt.dateI18n)(n.formats.datetime,t):Object(q.__)("Immediately")});var ec=Object(i.withSelect)(function(e){var t=e("core/editor").getCurrentPost;return{hasPublishAction:Object(O.get)(t(),["_links","wp:action-publish"],!1)}})(function(e){var t=e.hasPublishAction,n=e.children;return wp.element.createElement("div",{className:"editor-post-publish-panel__prepublish"},wp.element.createElement("div",null,wp.element.createElement("strong",null,t?Object(q.__)("Are you ready to publish?"):Object(q.__)("Are you ready to submit for review?"))),wp.element.createElement("p",null,t?Object(q.__)("Here, you can do a last-minute check up of your settings below, before you publish."):Object(q.__)("When you're ready, submit your work for review, and an Editor will be able to approve it for you.")),t&&wp.element.createElement(ar.Fragment,null,wp.element.createElement(yr.PanelBody,{initialOpen:!1,title:[Object(q.__)("Visibility: "),wp.element.createElement("span",{className:"editor-post-publish-panel__link",key:"label"},wp.element.createElement(Ja,null))]},wp.element.createElement($a,null)),wp.element.createElement(yr.PanelBody,{initialOpen:!1,title:[Object(q.__)("Publish: "),wp.element.createElement("span",{className:"editor-post-publish-panel__link",key:"label"},wp.element.createElement(Za,null))]},wp.element.createElement(Qa,null)),n))}),tc=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.state={showCopyConfirmation:!1},e.onCopy=e.onCopy.bind(e),e.onSelectInput=e.onSelectInput.bind(e),e}return gr()(t,e),hr()(t,[{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","view_item"]),s=n?wp.element.createElement(ar.Fragment,null,Object(q.__)("is now scheduled. It will go live on")," ",wp.element.createElement(Za,null),"."):Object(q.__)("is now live."),a=n?Object(q.__)("The post address will be:"):Object(q.__)("What's next?");return wp.element.createElement("div",{className:"post-publish-panel__postpublish"},wp.element.createElement(yr.PanelBody,{className:"post-publish-panel__postpublish-header"},wp.element.createElement("a",{href:r.link},r.title||Object(q.__)("(no title)"))," ",s),wp.element.createElement(yr.PanelBody,null,wp.element.createElement("div",null,wp.element.createElement("strong",null,a)),wp.element.createElement("input",{className:"post-publish-panel__postpublish-link-input",readOnly:!0,value:r.link,onFocus:this.onSelectInput,type:"text"}),wp.element.createElement("div",{className:"post-publish-panel__postpublish-buttons"},!n&&wp.element.createElement(yr.Button,{isDefault:!0,href:r.link},i),wp.element.createElement(yr.ClipboardButton,{isDefault:!0,text:r.link,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(q.__)("Copied!"):Object(q.__)("Copy Link")))),t)}}]),t}(ar.Component),nc=Object(i.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()}})(tc),rc=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.onSubmit=e.onSubmit.bind(e),e.state={loading:!1,submitted:!1},e}return gr()(t,e),hr()(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;e.hasPublishAction?this.setState({loading:!0}):t()}},{key:"render",value:function(){var e=this.props,t=e.isScheduled,n=e.onClose,r=e.forceIsDirty,o=e.forceIsSaving,i=e.PrePublishExtension,s=e.PostPublishExtension,a=this.state,c=a.loading,l=a.submitted;return wp.element.createElement("div",{className:"editor-post-publish-panel"},wp.element.createElement("div",{className:"editor-post-publish-panel__header"},!l&&wp.element.createElement("div",{className:"editor-post-publish-panel__header-publish-button"},wp.element.createElement(Ga,{onSubmit:this.onSubmit,forceIsDirty:r,forceIsSaving:o})),l&&wp.element.createElement("div",{className:"editor-post-publish-panel__header-published"},t?Object(q.__)("Scheduled"):Object(q.__)("Published")),wp.element.createElement(yr.IconButton,{onClick:n,icon:"no-alt",label:Object(q.__)("Close Publish Panel")})),wp.element.createElement("div",{className:"editor-post-publish-panel__content"},!c&&!l&&wp.element.createElement(ec,null,i&&wp.element.createElement(i,null)),c&&!l&&wp.element.createElement(yr.Spinner,null),l&&wp.element.createElement(nc,null,s&&wp.element.createElement(s,null))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.submitted||e.isSaving||!e.isPublished&&!e.isScheduled?null:{submitted:!0,loading:!1}}}]),t}(ar.Component),oc=Object(ar.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType,o=t.isCurrentPostPublished,i=t.isCurrentPostScheduled,s=t.isSavingPost,a=t.isEditedPostDirty;return{postType:r(),hasPublishAction:Object(O.get)(n(),["_links","wp:action-publish"],!1),isPublished:o(),isScheduled:i(),isSaving:s(),isDirty:a()}})])(rc);var ic=Object(ar.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isEditedPostSaveable,o=t.isEditedPostPublishable,i=t.isCurrentPostPending,s=t.isCurrentPostPublished,a=t.isEditedPostBeingScheduled,c=t.isCurrentPostScheduled,l=t.getCurrentPost,u=t.getCurrentPostType;return{hasPublishAction:Object(O.get)(l(),["_links","wp:action-publish"],!1),isSaving:n(),isSaveable:r(),isPublishable:o(),isPending:i(),isPublished:s(),isScheduled:c(),isBeingScheduled:a(),postType:u()}})])(function(e){var t=e.hasPublishAction,n=e.isSaving,r=e.isPublishable,o=e.isSaveable,i=e.isPublished,s=e.isBeingScheduled,a=e.isPending,c=e.isScheduled,l=e.onToggle,u=e.isOpen,d=e.forceIsDirty,p=e.forceIsSaving,f=!n&&!p&&r&&o||i;return i||c&&s||a&&!t?wp.element.createElement(Ga,{forceIsDirty:d,forceIsSaving:p}):wp.element.createElement(yr.Button,{className:"editor-post-publish-panel__toggle",isPrimary:!0,onClick:l,"aria-expanded":u,disabled:!f,isBusy:n&&i},s?Object(q.__)("Schedule…"):Object(q.__)("Publish…"),wp.element.createElement(Bi.DotTip,{id:"core/editor.publish"},Object(q.__)("Finished writing? That’s great, let’s get this published right now. Just click ‘Publish’ and you’re good to go.")))});n(594);var sc=Object(ar.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isCurrentPostPublished;return{isSaving:n(),isPublished:r()}}),Object(i.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.onClick;return n?wp.element.createElement(yr.Button,{className:"editor-post-switch-to-draft",isLarge:!0,onClick:function(){window.confirm(Object(q.__)("Are you sure you want to unpublish this post?"))&&r()},disabled:t},Object(q.__)("Switch to Draft")):null}),ac=ro.keycodes.displayShortcut,cc=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.state={forceSavedMessage:!1},e}return gr()(t,e),hr()(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.isNew,n=e.isPublished,r=e.isDirty,o=e.isSaving,i=e.isSaveable,s=e.onSave,a=e.isAutosaving,c=this.state.forceSavedMessage;if(o){var l=sr()("editor-post-saved-state","is-saving",{"is-autosaving":a});return wp.element.createElement("span",{className:l},wp.element.createElement(yr.Dashicon,{icon:"cloud"}),a?Object(q.__)("Autosaving"):Object(q.__)("Saving"))}return n?wp.element.createElement(sc,null):i?c||!t&&!r?wp.element.createElement("span",{className:"editor-post-saved-state is-saved"},wp.element.createElement(yr.Dashicon,{icon:"saved"}),Object(q.__)("Saved")):wp.element.createElement(yr.IconButton,{className:"editor-post-save-draft",onClick:s,icon:"cloud-upload",shortcut:ac.primary("s")},Object(q.__)("Save Draft")):null}}]),t}(ar.Component),lc=Object(ar.compose)([Object(i.withSelect)(function(e,t){var n=t.forceIsDirty,r=t.forceIsSaving,o=e("core/editor"),i=o.isEditedPostNew,s=o.isCurrentPostPublished,a=o.isEditedPostDirty,c=o.isSavingPost,l=o.isEditedPostSaveable,u=o.getCurrentPost,d=o.isAutosavingPost;return{post:u(),isNew:i(),isPublished:s(),isDirty:n||a(),isSaving:r||c(),isSaveable:l(),isAutosaving:d()}}),Object(i.withDispatch)(function(e){return{onSave:e("core/editor").savePost}}),yr.withSafeTimeout])(cc);var uc=Object(ar.compose)([Object(i.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 dc=Object(ar.compose)([Object(i.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 pc=Object(ar.compose)([Object(i.withSelect)(function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}}),Object(i.withDispatch)(function(e){return{onUpdateSticky:function(t){e("core/editor").editPost({sticky:t})}}}),yr.withInstanceId])(function(e){var t=e.onUpdateSticky,n=e.postSticky,r=void 0!==n&&n,o="post-sticky-toggle-"+e.instanceId;return wp.element.createElement(dc,null,wp.element.createElement("label",{htmlFor:o},Object(q.__)("Stick to the Front Page")),wp.element.createElement(yr.FormToggle,{key:"toggle",checked:r,onChange:function(){return t(!r)},id:o}))}),fc=(n(593),n(79)),hc=n.n(fc),mc=n(137),vc={per_page:-1,orderby:"count",order:"desc",_fields:"id,name,parent"},bc=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.findTerm=e.findTerm.bind(e),e.onChange=e.onChange.bind(e),e.onChangeFormName=e.onChangeFormName.bind(e),e.onChangeFormParent=e.onChangeFormParent.bind(e),e.onAddTerm=e.onAddTerm.bind(e),e.onToggleForm=e.onToggleForm.bind(e),e.state={loading:!0,availableTermsTree:[],availableTerms:[],adding:!1,formName:"",formParent:"",showForm:!1},e}return gr()(t,e),hr()(t,[{key:"onChange",value:function(e){var t=this.props,n=t.onUpdateTerms,r=t.terms,o=void 0===r?[]:r,i=t.restBase,s=parseInt(e.target.value,10);n(-1!==o.indexOf(s)?Object(O.without)(o,s):[].concat(f()(o),[s]),i)}},{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.restBase,i=n.terms,s=n.slug,a=this.state,c=a.formName,u=a.formParent,d=a.adding,p=a.availableTerms;if(""!==c&&!d){var h=this.findTerm(p,u,c);if(h)return Object(O.some)(i,function(e){return e===h.id})||r([].concat(f()(i),[h.id]),o),void this.setState({formName:"",formParent:""});new hc.a(function(e,n){t.setState({adding:!0});var r=wp.api.getTaxonomyRoute(t.props.slug);t.addRequest=X()({path:"/wp/v2/"+r,method:"POST",data:{name:c,parent:u||void 0}}),t.addRequest.then(e,function(o){if("term_exists"===(o.responseJSON&&o.responseJSON.code))return t.addRequest=X()({path:"/wp/v2/"+r+"?"+Object(mc.stringify)(l()({},vc,{parent:u||0,search:c}))}),t.addRequest.then(function(n){e(t.findTerm(n,u,c))},n);n(o)})}).then(function(e){var n=!!Object(O.find)(t.state.availableTerms,function(t){return t.id===e.id})?t.state.availableTerms:[e].concat(f()(t.state.availableTerms)),a=Object(q.sprintf)(Object(q._x)("%s added","term"),Object(O.get)(t.props.taxonomy,["data","labels","singular_name"],"category"===s?Object(q.__)("Category"):Object(q.__)("Term")));t.props.speak(a,"assertive"),t.addRequest=null,t.setState({adding:!1,formName:"",formParent:"",availableTerms:n,availableTermsTree:Object(ro.buildTermsTree)(n)}),r([].concat(f()(i),[e.id]),o)},function(e){"abort"!==e.statusText&&(t.addRequest=null,t.setState({adding:!1}))})}}},{key:"componentDidMount",value:function(){var e=this,t=wp.api.getTaxonomyRoute(this.props.slug);this.fetchRequest=X()({path:"/wp/v2/"+t+"?"+Object(mc.stringify)(vc)}),this.fetchRequest.then(function(t){var n=Object(ro.buildTermsTree)(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:"componentWillUnmount",value:function(){Object(O.invoke)(this.fetchRequest,["abort"]),Object(O.invoke)(this.addRequest,["abort"])}},{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-"+e.id;return wp.element.createElement("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},wp.element.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}),wp.element.createElement("label",{htmlFor:n},Object(O.unescape)(e.name)),!!e.children.length&&wp.element.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,s=i.availableTermsTree,a=i.availableTerms,c=i.formName,l=i.formParent,u=i.loading,d=i.showForm,p=function(e,r,o){return Object(O.get)(n,["data","labels",e],"category"===t?r:o)},h=p("add_new_item",Object(q.__)("Add new category"),Object(q.__)("Add new term")),m=p("new_item_name",Object(q.__)("Add new category"),Object(q.__)("Add new term")),v=p("parent_item",Object(q.__)("Parent Category"),Object(q.__)("Parent Term")),b="— "+v+" —",g=h,y="editor-post-taxonomies__hierarchical-terms-input-"+r;return[].concat(f()(this.renderTerms(s)),[!u&&o&&wp.element.createElement(yr.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":d,isLink:!0},h),d&&wp.element.createElement("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},wp.element.createElement("label",{htmlFor:y,className:"editor-post-taxonomies__hierarchical-terms-label"},m),wp.element.createElement("input",{type:"text",id:y,className:"editor-post-taxonomies__hierarchical-terms-input",value:c,onChange:this.onChangeFormName,required:!0}),!!a.length&&wp.element.createElement(yr.TreeSelect,{label:v,noOptionLabel:b,onChange:this.onChangeFormParent,selectedId:l,tree:s}),wp.element.createElement(yr.Button,{isDefault:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},g))])}}]),t}(ar.Component),gc=Object(ar.compose)([Object(yr.withAPIData)(function(e){return{taxonomy:"/wp/v2/taxonomies/"+e.slug+"?context=edit"}}),Object(i.withSelect)(function(e,t){var n=e("core/editor").getCurrentPost;return{hasCreateAction:Object(O.get)(n(),["_links","wp:action-create-"+t.restBase],!1),hasAssignAction:Object(O.get)(n(),["_links","wp:action-assign-"+t.restBase],!1),terms:e("core/editor").getEditedPostAttribute(t.restBase)}}),Object(i.withDispatch)(function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(b()({},n,t))}}}),yr.withSpokenMessages,yr.withInstanceId])(bc),yc={per_page:-1,orderby:"count",order:"desc",_fields:"id,name"},kc=function(e,t){return e.toLowerCase()===t.toLowerCase()},_c=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.onChange=e.onChange.bind(e),e.searchTerms=Object(O.throttle)(e.searchTerms.bind(e),500),e.findOrCreateTerm=e.findOrCreateTerm.bind(e),e.state={loading:!1,availableTerms:[],selectedTerms:[]},e}return gr()(t,e),hr()(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:100}),this.initRequest.then(function(){e.setState({loading:!1})},function(t){"abort"!==t.statusText&&e.setState({loading:!1})})),this.searchTerms()}},{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=l()({},yc,t),r=wp.api.getTaxonomyRoute(this.props.slug),o=X()({path:"/wp/v2/"+r+"?"+Object(mc.stringify)(n)});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]:[]).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:t})}},{key:"findOrCreateTerm",value:function(e){var t=this;return new hc.a(function(n,r){var o=wp.api.getTaxonomyRoute(t.props.slug);X()({path:"/wp/v2/"+o,method:"POST",data:{name:e}}).then(n,function(i){if("term_exists"===(i.responseJSON&&i.responseJSON.code))return t.addRequest=X()({path:"/wp/v2/"+o+"?"+Object(mc.stringify)(l()({},yc,{search:e}))}),t.addRequest.then(function(t){n(Object(O.find)(t,function(t){return kc(t.name,e)}))},r);r(i)})})}},{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 kc(t.name,e)})}),o=function(e,t){return e.map(function(e){return Object(O.find)(t,function(t){return kc(t.name,e)}).id})};if(0===r.length)return this.props.onUpdateTerms(o(n,this.state.availableTerms),this.props.restBase);hc.a.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.restBase)})}},{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,s=r.selectedTerms,a=i.map(function(e){return e.name}),c=Object(O.get)(n,["data","labels","add_new_item"],"post_tag"===t?Object(q.__)("Add New Tag"):Object(q.__)("Add New Term")),l=Object(O.get)(n,["data","labels","singular_name"],"post_tag"===t?Object(q.__)("Tag"):Object(q.__)("Term")),u=Object(q.sprintf)(Object(q._x)("%s added","term"),l),d=Object(q.sprintf)(Object(q._x)("%s removed","term"),l),p=Object(q.sprintf)(Object(q._x)("Remove %s","term"),l);return wp.element.createElement(yr.FormTokenField,{value:s,displayTransform:O.unescape,suggestions:a,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,placeholder:c,messages:{added:u,removed:d,remove:p}})}}]),t}(ar.Component),Oc=Object(ar.compose)(Object(yr.withAPIData)(function(e){return{taxonomy:"/wp/v2/taxonomies/"+e.slug+"?context=edit"}}),Object(i.withSelect)(function(e,t){var n=e("core/editor").getCurrentPost;return{hasCreateAction:Object(O.get)(n(),["_links","wp:action-create-"+t.restBase],!1),hasAssignAction:Object(O.get)(n(),["_links","wp:action-assign-"+t.restBase],!1),terms:e("core/editor").getEditedPostAttribute(t.restBase)}}),Object(i.withDispatch)(function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(b()({},n,t))}}}))(_c);var wc=Object(ar.compose)([Object(i.withSelect)(function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies()}})])(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?gc:Oc;return wp.element.createElement(ar.Fragment,{key:"taxonomy-"+e.slug},o(wp.element.createElement(t,{restBase:e.rest_base,slug:e.slug}),e))})});var Sc=Object(ar.compose)([Object(i.withSelect)(function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies()}})])(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});n(592);var Ec=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.startEditing=e.startEditing.bind(e),e.edit=e.edit.bind(e),e.stopEditing=e.stopEditing.bind(e),e.state={value:null,isDirty:!1},e}return gr()(t,e),hr()(t,[{key:"startEditing",value:function(){this.setState({value:this.props.value})}},{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({value:null,isDirty:!1})}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.placeholder,r=e.instanceId,o=Object(ro.decodeEntities)(n);return wp.element.createElement(ar.Fragment,null,wp.element.createElement("label",{htmlFor:"post-content-"+r,className:"screen-reader-text"},o||Object(q.__)("Write your story")),wp.element.createElement(Yo.a,{autoComplete:"off",value:this.state.value||t,onFocus:this.startEditing,onChange:this.edit,onBlur:this.stopEditing,className:"editor-post-text-editor",id:"post-content-"+r,placeholder:o||Object(q.__)("Write your story")}))}}],[{key:"getDerivedPropsFromState",value:function(e,t){return t.persistedValue===e.value||t.isDirty?null:function(e){return{persistedValue:e.value,value:e.value,isDirty:!1}}(e)}}]),t}(ar.Component),jc=Object(ar.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostContent,r=(0,t.getEditorSettings)().bodyPlaceholder;return{value:n(),placeholder:r}}),Object(i.withDispatch)(function(e){var t=e("core/editor"),n=t.editPost,r=t.resetBlocks,o=t.checkTemplateValidity;return{onChange:function(e){n({content:e})},onPersist:function(e){r(Object(w.parse)(e)),o()}}}),yr.withInstanceId])(Ec),Cc=(n(591),n(590),function(e){function t(e){var n=e.permalinkParts;pr()(this,t);var r=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return r.state={editedPostName:n.postName},r.onSavePermalink=r.onSavePermalink.bind(r),r}return gr()(t,e),hr()(t,[{key:"onSavePermalink",value:function(e){var t=this.state.editedPostName.replace(/\s+/g,"-");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 wp.element.createElement("form",{className:"editor-post-permalink-editor",onSubmit:this.onSavePermalink},wp.element.createElement("span",null,wp.element.createElement("span",{className:"editor-post-permalink-editor__prefix"},n),wp.element.createElement("input",{className:"editor-post-permalink-editor__edit","aria-label":Object(q.__)("Edit post permalink"),value:o,onChange:function(t){return e.setState({editedPostName:t.target.value})},type:"text",autoFocus:!0}),wp.element.createElement("span",{className:"editor-post-permalink-editor__suffix"},r),"‎"),wp.element.createElement(yr.Button,{className:"editor-post-permalink-editor__save",isLarge:!0,onClick:this.onSavePermalink},Object(q.__)("OK")))}}]),t}(ar.Component)),Tc=Object(ar.compose)([Object(i.withSelect)(function(e){return{permalinkParts:(0,e("core/editor").getPermalinkParts)()}}),Object(i.withDispatch)(function(e){return{editPost:e("core/editor").editPost}})])(Cc),Pc=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.addVisibilityCheck=e.addVisibilityCheck.bind(e),e.onVisibilityChange=e.onVisibilityChange.bind(e),e.state={isCopied:!1,isEditingPermalink:!1},e}return gr()(t,e),hr()(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.permalinkButton.focus()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("visibilitychange",this.addVisibilityCheck)}},{key:"render",value:function(){var e=this,t=this.props,n=t.isNew,r=t.previewLink,o=t.isEditable,i=t.samplePermalink,s=t.isPublished,a=this.state,c=a.isCopied,l=a.isEditingPermalink,u=c?Object(q.__)("Permalink copied"):Object(q.__)("Copy the permalink");return n||!r?null:wp.element.createElement("div",{className:"editor-post-permalink"},wp.element.createElement(yr.ClipboardButton,{className:sr()("editor-post-permalink__copy",{"is-copied":c}),text:i,label:u,onCopy:function(){return e.setState({isCopied:!0})},"aria-disabled":c,icon:"admin-links"}),wp.element.createElement("span",{className:"editor-post-permalink__label"},Object(q.__)("Permalink:")),!l&&wp.element.createElement(yr.Button,{className:"editor-post-permalink__link",href:s?i:r,target:"_blank",ref:function(t){return e.permalinkButton=t}},decodeURI(i),"‎"),l&&wp.element.createElement(Tc,{onSave:function(){return e.setState({isEditingPermalink:!1})}}),o&&!l&&wp.element.createElement(yr.Button,{className:"editor-post-permalink__edit",isLarge:!0,onClick:function(){return e.setState({isEditingPermalink:!0})}},Object(q.__)("Edit")),!o&&wp.element.createElement(yr.Button,{className:"editor-post-permalink__change",isLarge:!0,href:cs("options-permalink.php"),onClick:this.addVisibilityCheck,target:"_blank"},Object(q.__)("Change Permalinks")))}}]),t}(ar.Component),Bc=Object(ar.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.isPermalinkEditable,o=t.getEditedPostPreviewLink,i=t.getPermalink,s=t.isCurrentPostPublished;return{isNew:n(),previewLink:o(),isEditable:r(),samplePermalink:i(),isPublished:s()}}),Object(i.withDispatch)(function(e){return{refreshPost:e("core/editor").refreshPost}})])(Pc),xc=/[\r\n]+/g,Ic=ro.keycodes.ENTER,Dc=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.onChange=e.onChange.bind(e),e.onSelect=e.onSelect.bind(e),e.onUnselect=e.onUnselect.bind(e),e.onKeyDown=e.onKeyDown.bind(e),e.redirectHistory=e.redirectHistory.bind(e),e.state={isSelected:!1},e}return gr()(t,e),hr()(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(xc," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===Ic&&(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.title,n=e.placeholder,r=e.instanceId,o=e.isPostTypeViewable,i=this.state.isSelected,s=sr()("editor-post-title__block",{"is-selected":i}),a=Object(ro.decodeEntities)(n);return wp.element.createElement(ma,{supportKeys:"title"},wp.element.createElement("div",{className:"editor-post-title"},wp.element.createElement("div",{className:s},wp.element.createElement(yr.KeyboardShortcuts,{shortcuts:{"mod+z":this.redirectHistory,"mod+shift+z":this.redirectHistory}},wp.element.createElement("label",{htmlFor:"post-title-"+r,className:"screen-reader-text"},a||Object(q.__)("Add title")),wp.element.createElement(Yo.a,{id:"post-title-"+r,className:"editor-post-title__input",value:t,onChange:this.onChange,placeholder:a||Object(q.__)("Add title"),onFocus:this.onSelect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect})),i&&o&&wp.element.createElement(Bc,null))))}}]),t}(ar.Component),Ac=Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditorSettings,o=(0,e("core").getPostType)(n("type")),i=r().titlePlaceholder;return{title:n("title"),isPostTypeViewable:Object(O.get)(o,["viewable"],!1),placeholder:i}}),Nc=Object(i.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}}),Lc=Object(ar.compose)(Ac,Nc,yr.withInstanceId,yr.withFocusOutside)(Dc);n(589);var Rc=Object(ar.compose)([Object(i.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(i.withDispatch)(function(e){return{trashPost:e("core/editor").trashPost}})])(function(e){var t=e.isNew,n=e.postId,r=e.postType,o=d()(e,["isNew","postId","postType"]);return t||!n?null:wp.element.createElement(yr.Button,{isLink:!0,className:"editor-post-trash button-link-delete",onClick:function(){return o.trashPost(n,r)}},Object(q.__)("Move to trash"),wp.element.createElement(yr.Dashicon,{icon:"trash"}))});var Uc=Object(i.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 Mc=Object(ar.compose)([Object(i.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})}),Fc=(n(588),{HTMLRegExp:/<\/?[a-z][^>]*?>/gi,HTMLcommentRegExp:/<!--[\s\S]*?-->/g,spaceRegExp:/&nbsp;|&#160;/gi,HTMLEntityRegExp:/&\S+?;/g,connectorRegExp:/--|\u2014/g,removeRegExp:new RegExp(["[","!-@[-`{-~","€-¿×÷"," -⯿","⸀-⹿","]"].join(""),"g"),astralRegExp:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wordsRegExp:/\S\s+/g,characters_excluding_spacesRegExp:/\S/g,characters_including_spacesRegExp:/[^\f\n\r\t\v\u00AD\u2028\u2029]/g,l10n:{type:"words"}}),Hc=function(e,t){if(e.HTMLRegExp)return t.replace(e.HTMLRegExp,"\n")},Vc=function(e,t){return e.astralRegExp?t.replace(e.astralRegExp,"a"):t},Kc=function(e,t){return e.HTMLEntityRegExp?t.replace(e.HTMLEntityRegExp,""):t},Wc=function(e,t){return e.connectorRegExp?t.replace(e.connectorRegExp," "):t},zc=function(e,t){return e.removeRegExp?t.replace(e.removeRegExp,""):t},qc=function(e,t){return e.HTMLcommentRegExp?t.replace(e.HTMLcommentRegExp,""):t},Gc=function(e,t){return e.shortcodesRegExp?t.replace(e.shortcodesRegExp,"\n"):t},Yc=function(e,t){if(e.spaceRegExp)return t.replace(e.spaceRegExp," ")},Xc=function(e,t){return e.HTMLEntityRegExp?t.replace(e.HTMLEntityRegExp,"a"):t};function $c(e,t,n){var r=function(e,t){var n=Object(O.extend)(Fc,t);return n.shortcodes=n.l10n.shortcodes||{},n.shortcodes&&n.shortcodes.length&&(n.shortcodesRegExp=new RegExp("\\[\\/?(?:"+n.shortcodes.join("|")+")[^\\]]*?\\]","g")),n.type=e||n.l10n.type,"characters_excluding_spaces"!==n.type&&"characters_including_spaces"!==n.type&&(n.type="words"),n}(t,n);if(e){var o=r[t+"RegExp"],i="words"===r.type?function(e,t,n){return e=Object(O.flow)(Hc.bind(this,n),qc.bind(this,n),Gc.bind(this,n),Yc.bind(this,n),Kc.bind(this,n),Wc.bind(this,n),zc.bind(this,n))(e),(e+="\n").match(t)}(e,o,r):function(e,t,n){return e=Object(O.flow)(Hc.bind(this,n),qc.bind(this,n),Gc.bind(this,n),Yc.bind(this,n),Vc.bind(this,n),Xc.bind(this,n))(e),(e+="\n").match(t)}(e,o,r);return i?i.length:0}}var Jc=Object(i.withSelect)(function(e){return{content:e("core/editor").getEditedPostAttribute("content")}})(function(e){var t=e.content;return wp.element.createElement("span",{className:"word-count"},$c(t,"words"))});var Qc=Object(i.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 wp.element.createElement(ar.Fragment,null,wp.element.createElement("div",{className:"table-of-contents__counts",role:"note","aria-label":Object(q.__)("Document Statistics"),tabIndex:"0"},wp.element.createElement("div",{className:"table-of-contents__count"},Object(q.__)("Words"),wp.element.createElement(Jc,null)),wp.element.createElement("div",{className:"table-of-contents__count"},Object(q.__)("Headings"),wp.element.createElement("span",{className:"table-of-contents__number"},t)),wp.element.createElement("div",{className:"table-of-contents__count"},Object(q.__)("Paragraphs"),wp.element.createElement("span",{className:"table-of-contents__number"},n)),wp.element.createElement("div",{className:"table-of-contents__count"},Object(q.__)("Blocks"),wp.element.createElement("span",{className:"table-of-contents__number"},r))),t>0&&wp.element.createElement(ar.Fragment,null,wp.element.createElement("hr",null),wp.element.createElement("span",{className:"table-of-contents__title"},Object(q.__)("Document Outline")),wp.element.createElement(ta,null)))});var Zc=Object(i.withSelect)(function(e){return{hasBlocks:!!e("core/editor").getBlockCount()}})(function(e){var t=e.hasBlocks;return wp.element.createElement(yr.Dropdown,{position:"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return wp.element.createElement(yr.IconButton,{onClick:r,icon:"info-outline","aria-expanded":n,label:Object(q.__)("Content Structure"),disabled:!t})},renderContent:function(){return wp.element.createElement(Qc,null)}})}),el=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.warnIfUnsavedChanges=e.warnIfUnsavedChanges.bind(e),e}return gr()(t,e),hr()(t,[{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"warnIfUnsavedChanges",value:function(e){var t=this.props,n=t.isDirty,r=t.forceIsDirty;if(n||(void 0===r?function(){return!1}:r)())return e.returnValue=Object(q.__)("You have unsaved changes. If you proceed, they will be lost."),e.returnValue}},{key:"render",value:function(){return null}}]),t}(ar.Component),tl=Object(i.withSelect)(function(e){return{isDirty:e("core/editor").isEditedPostDirty()}})(el);n(587),n(586);function nl(e){return document.querySelector('[data-block="'+e+'"]')}var rl=Object(i.withSelect)(function(e){return{selectedBlockUID:e("core/editor").getBlockSelectionStart()}})(function(e){var t=e.selectedBlockUID;return t&&wp.element.createElement(yr.Button,{isDefault:!0,type:"button",className:"editor-skip-to-selected-block",onClick:function(){nl(t).closest(".editor-block-list__block").focus()}},Object(q.__)("Skip to the selected block"))}),ol=Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getSelectedBlock,r=t.getSelectedBlockCount,o=n();return{selectedBlock:o,blockType:o&&Object(w.getBlockType)(o.name),count:r()}})(function(e){var t=e.selectedBlock,n=e.blockType;return e.count>1?wp.element.createElement("span",{className:"editor-block-inspector__multi-blocks"},Object(q.__)("Coming Soon")):t?[wp.element.createElement("div",{className:"editor-block-inspector__card",key:"card"},wp.element.createElement(Cr,{icon:n.icon,showColors:!0}),wp.element.createElement("div",{className:"editor-block-inspector__card-content"},wp.element.createElement("div",{className:"editor-block-inspector__card-title"},n.title),wp.element.createElement("div",{className:"editor-block-inspector__card-description"},n.description))),wp.element.createElement(Yi.Slot,{key:"inspector-controls"}),wp.element.createElement(Ki.Slot,{key:"inspector-advanced-controls"},function(e){return!Object(O.isEmpty)(e)&&wp.element.createElement(yr.PanelBody,{className:"editor-block-inspector__advanced",title:Object(q.__)("Advanced"),initialOpen:!1},e)}),wp.element.createElement(rl,{key:"back"})]:wp.element.createElement("span",{className:"editor-block-inspector__no-blocks"},Object(q.__)("No block selected."))}),il=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.bindContainer=e.bindContainer.bind(e),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(e),e}return gr()(t,e),hr()(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 wp.element.createElement("div",l()({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(O.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),t}(ar.Component),sl=Object(ar.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}}),Object(i.withDispatch)(function(e){return{clearSelectedBlock:e("core/editor").clearSelectedBlock}})])(il),al=(n(585),n(584),ro.keycodes.DOWN);var cl=Object(ar.compose)(Object(i.withSelect)(function(e,t){var n=e("core/editor"),r=n.getBlock,o=(0,n.getEditorSettings)().templateLock;return{blocks:t.uids.map(r),isLocked:!!o}}),Object(i.withDispatch)(function(e,t){return{onTransform:function(n,r){e("core/editor").replaceBlocks(t.uids,Object(w.switchToBlockType)(n,r))}}}))(function(e){var t=e.blocks,n=e.onTransform,r=e.isLocked,o=Object(w.getPossibleBlockTransformations)(t);if(r||!o.length)return null;var i=t[0].name,s=Object(w.getBlockType)(i);return wp.element.createElement(yr.Dropdown,{className:"editor-block-switcher",contentClassName:"editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,n=e.isOpen,r=Object(q.__)("Change block type");return wp.element.createElement(yr.Toolbar,null,wp.element.createElement(yr.IconButton,{className:"editor-block-switcher__toggle",icon:wp.element.createElement(Cr,{icon:s.icon&&s.icon.src}),onClick:t,"aria-haspopup":"true","aria-expanded":n,label:r,tooltip:r,onKeyDown:function(e){n||e.keyCode!==al||(e.preventDefault(),e.stopPropagation(),t())}},wp.element.createElement(yr.Dashicon,{icon:"arrow-down"})))},renderContent:function(e){var r=e.onClose;return wp.element.createElement("div",null,wp.element.createElement("span",{className:"editor-block-switcher__menu-title"},Object(q.__)("Transform into:")),wp.element.createElement(yr.NavigableMenu,{role:"menu","aria-label":Object(q.__)("Block types")},o.map(function(e){var o=e.name,i=e.title,s=e.icon;return wp.element.createElement(yr.IconButton,{key:o,onClick:function(){n(t,o),r()},className:"editor-block-switcher__menu-item",icon:wp.element.createElement("span",{className:"editor-block-switcher__block-icon"},wp.element.createElement(Cr,{icon:s&&s.src})),role:"menuitem"},i)})))}})});var ll=Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getSelectedBlock,r=t.getBlockMode,o=n();return{block:o,mode:o?r(o.uid):null}})(function(e){var t=e.block,n=e.mode;return t&&t.isValid&&"visual"===n?wp.element.createElement("div",{className:"editor-block-toolbar"},wp.element.createElement(cl,{uids:[t.uid]}),wp.element.createElement(Kr.Slot,null),wp.element.createElement(Jr.Slot,null)):null}),ul=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.onCopy=e.onCopy.bind(e),e.onCut=e.onCut.bind(e),e}return gr()(t,e),hr()(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:"onCopy",value:function(e){var t=this.props,n=t.multiSelectedBlocks,r=t.selectedBlock;if((n.length||r)&&(!r||!Object(wo.documentHasSelection)())){var o=Object(w.serialize)(r||n);e.clipboardData.setData("text/plain",o),e.clipboardData.setData("text/html",o),e.preventDefault()}}},{key:"onCut",value:function(e){var t=this.props.multiSelectedBlockUids;this.onCopy(e),t.length&&this.props.onRemove(t)}},{key:"render",value:function(){return null}}]),t}(ar.Component),dl=Object(ar.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getMultiSelectedBlocks,r=t.getMultiSelectedBlockUids,o=t.getSelectedBlock;return{multiSelectedBlocks:n(),multiSelectedBlockUids:r(),selectedBlock:o()}}),Object(i.withDispatch)(function(e){return{onRemove:e("core/editor").removeBlocks}})])(ul),pl=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.reboot=e.reboot.bind(e),e.getContent=e.getContent.bind(e),e.state={error:null},e}return gr()(t,e),hr()(t,[{key:"componentDidCatch",value:function(e){this.setState({error:e})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return An(this.context.store.getState())}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?wp.element.createElement(Vo,{actions:[wp.element.createElement(yr.Button,{key:"recovery",onClick:this.reboot,isLarge:!0},Object(q.__)("Attempt Recovery")),wp.element.createElement(yr.ClipboardButton,{key:"copy-post",text:this.getContent,isLarge:!0},Object(q.__)("Copy Post Text")),wp.element.createElement(yr.ClipboardButton,{key:"copy-error",text:e.stack,isLarge:!0},Object(q.__)("Copy Error"))]},Object(q.__)("The editor has encountered an unexpected error.")):this.props.children}}]),t}(ar.Component);pl.contextTypes={store:O.noop};var fl=pl;var hl=Object(i.withSelect)(function(e){var t=e("core/editor").getMultiSelectedBlockUids();return{isMultiBlockSelection:t.length>1,selectedBlockUids:t}})(function(e){var t=e.isMultiBlockSelection,n=e.selectedBlockUids;return t?wp.element.createElement(cl,{key:"switcher",uids:n}):null}),ml=function(e){function t(){return pr()(this,t),vr()(this,(t.__proto__||ur()(t)).apply(this,arguments))}return gr()(t,e),hr()(t,[{key:"componentDidUpdate",value:function(){this.scrollIntoView()}},{key:"scrollIntoView",value:function(){var e=this.props.extentUID;if(e){var t=nl(e);if(t){var n=Object(wo.getScrollContainer)(t);n&&ci()(t,n,{onlyScrollIfNeeded:!0})}}}},{key:"render",value:function(){return null}}]),t}(ar.Component),vl=Object(i.withSelect)(function(e){return{extentUID:e("core/editor").getLastMultiSelectedBlockUid()}})(ml),bl=[ro.keycodes.UP,ro.keycodes.RIGHT,ro.keycodes.DOWN,ro.keycodes.LEFT,ro.keycodes.ENTER,ro.keycodes.BACKSPACE];var gl=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.stopTypingOnSelectionUncollapse=e.stopTypingOnSelectionUncollapse.bind(e),e.stopTypingOnMouseMove=e.stopTypingOnMouseMove.bind(e),e.startTypingInTextField=e.startTypingInTextField.bind(e),e.stopTypingOnNonTextField=e.stopTypingOnNonTextField.bind(e),e.lastMouseMove=null,e}return gr()(t,e),hr()(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:"startTypingInTextField",value:function(e){var t=this.props,n=t.isTyping,r=t.onStartTyping,o=e.type,i=e.target;n||!Object(wo.isTextField)(i)||i.closest(".editor-block-toolbar")||("keydown"!==o||function(e){var t=e.keyCode;return!e.shiftKey&&Object(O.includes)(bl,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(wo.isTextField)(i)&&o()})}},{key:"render",value:function(){var e=this.props.children;return wp.element.createElement("div",{onFocus:this.stopTypingOnNonTextField,onKeyPress:this.startTypingInTextField,onKeyDown:this.startTypingInTextField},e)}}]),t}(ar.Component),yl=Object(ar.compose)([Object(i.withSelect)(function(e){return{isTyping:(0,e("core/editor").isTyping)()}}),Object(i.withDispatch)(function(e){var t=e("core/editor");return{onStartTyping:t.startTyping,onStopTyping:t.stopTyping}}),yr.withSafeTimeout])(gl),kl=function(e){function t(){return pr()(this,t),vr()(this,(t.__proto__||ur()(t)).apply(this,arguments))}return gr()(t,e),hr()(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=nl(e);return t?t.getBoundingClientRect().top:null}},{key:"restorePreviousOffset",value:function(e){var t=nl(this.props.selectionStart);if(t){var n=Object(wo.getScrollContainer)(t);n&&(n.scrollTop=n.scrollTop+t.getBoundingClientRect().top-e)}}},{key:"render",value:function(){return null}}]),t}(ar.Component),_l=Object(i.withSelect)(function(e){return{blockOrder:e("core/editor").getBlockOrder(),selectionStart:e("core/editor").getBlockSelectionStart()}})(kl),Ol=(n(583),ro.keycodes.UP),wl=ro.keycodes.DOWN,Sl=ro.keycodes.LEFT,El=ro.keycodes.RIGHT,jl=ro.keycodes.isKeyboardEvent,Cl=Object(O.overEvery)([wo.isTextField,wo.focus.tabbable.isTabbableIndex]),Tl=function(e){function t(){pr()(this,t);var e=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.onKeyDown=e.onKeyDown.bind(e),e.bindContainer=e.bindContainer.bind(e),e.clearVerticalRect=e.clearVerticalRect.bind(e),e.focusLastTextField=e.focusLastTextField.bind(e),e.verticalRect=null,e}return gr()(t,e),hr()(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearVerticalRect",value:function(){this.verticalRect=null}},{key:"getClosestTabbable",value:function(e,t){var n=wo.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(!wo.focus.tabbable.isTabbableIndex(n))return!1;if(Object(wo.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,s=1;(i=o[r+s])&&n.contains(i);s++)if(t(i,r+s,o))return!1;return!0})}},{key:"expandSelection",value:function(e){var t=this.props,n=t.selectedBlockUID,r=t.selectionStartUID,o=t.selectionBeforeEndUID,i=t.selectionAfterEndUID,s=e?o:i;s&&this.props.onMultiSelect(r||n,s)}},{key:"moveSelection",value:function(e){var t=this.props,n=t.selectedFirstUid,r=t.selectedLastUid,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,s=e.target,a=i===Ol,c=i===Sl,l=a||c,u=c||i===El,d=a||i===wl,p=u||d,f=e.shiftKey,h=d?wo.isVerticalEdge:wo.isHorizontalEdge;if(d?this.verticalRect||(this.verticalRect=Object(wo.computeCaretRect)(s)):this.verticalRect=null,!p)return jl.primary(e)&&(this.isEntirelySelected=Object(wo.isEntirelySelected)(s)),void(jl.primary(e,"a")&&((s.isContentEditable?this.isEntirelySelected:Object(wo.isEntirelySelected)(s))&&(r(Object(O.first)(o),Object(O.last)(o)),e.preventDefault()),this.isEntirelySelected=Object(wo.isEntirelySelected)(s)));if(f&&(n||this.isTabbableEdge(s,l)&&h(s,l,!0)))this.expandSelection(l),e.preventDefault();else if(n)this.moveSelection(l),e.preventDefault();else if(d&&Object(wo.isVerticalEdge)(s,l,f)){var m=this.getClosestTabbable(s,l);m&&(Object(wo.placeCaretAtVerticalEdge)(m,l,this.verticalRect),e.preventDefault())}else if(u&&Object(wo.isHorizontalEdge)(s,l,f)){var v=this.getClosestTabbable(s,l);Object(wo.placeCaretAtHorizontalEdge)(v,l),e.preventDefault()}}},{key:"focusLastTextField",value:function(){var e=wo.focus.focusable.find(this.container),t=Object(O.findLast)(e,Cl);t&&Object(wo.placeCaretAtHorizontalEdge)(t,!0)}},{key:"render",value:function(){var e=this.props.children;return wp.element.createElement("div",{className:"editor-writing-flow"},wp.element.createElement("div",{ref:this.bindContainer,onKeyDown:this.onKeyDown,onMouseDown:this.clearVerticalRect},e),wp.element.createElement("div",{"aria-hidden":!0,tabIndex:-1,onClick:this.focusLastTextField,className:"editor-writing-flow__click-redirect"}))}}]),t}(ar.Component),Pl=Object(ar.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getSelectedBlockUID,r=t.getMultiSelectedBlocksStartUid,o=t.getMultiSelectedBlocksEndUid,i=t.getPreviousBlockUid,s=t.getNextBlockUid,a=t.getFirstMultiSelectedBlockUid,c=t.getLastMultiSelectedBlockUid,l=t.hasMultiSelection,u=t.getBlockOrder,d=n(),p=r(),f=o();return{selectedBlockUID:d,selectionStartUID:p,selectionBeforeEndUID:i(f||d),selectionAfterEndUID:s(f||d),selectedFirstUid:a(),selectedLastUid:c(),hasMultiSelection:l(),blocks:u()}}),Object(i.withDispatch)(function(e){var t=e("core/editor");return{onMultiSelect:t.multiSelect,onSelectBlock:t.selectBlock}})])(Tl),Bl=function(e){function t(e){pr()(this,t);var n=vr()(this,(t.__proto__||ur()(t)).apply(this,arguments));return e.recovery||(n.props.updateEditorSettings(e.settings),n.props.setupEditor(e.post,e.settings.autosave)),n}return gr()(t,e),hr()(t,[{key:"componentDidUpdate",value:function(e){this.props.settings!==e.settings&&this.props.updateEditorSettings(this.props.settings)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.undo,r=e.redo,o=e.createUndoLevel,i=[[zs,{onUndo:n,onRedo:r,onCreateUndoLevel:o}],[yr.SlotFillProvider],[yr.APIProvider,l()({},wpApiSettings,Object(O.pick)(wp.api,["postTypeRestBaseMapping","taxonomyRestBaseMapping"]))],[yr.DropZoneProvider]];return Object(O.flow)(i.map(function(e){var t=a()(e,2),n=t[0],r=t[1];return function(e){return Object(ar.createElement)(n,r,e)}}))(t)}}]),t}(ar.Component),xl=Object(i.withDispatch)(function(e){var t=e("core/editor"),n=t.setupEditor,r=t.updateEditorSettings;return{setupEditor:n,undo:t.undo,redo:t.redo,createUndoLevel:t.createUndoLevel,updateEditorSettings:r}})(Bl);function Il(e){var t=Object(w.getBlockSupport)(e,"align");if(Array.isArray(t))return t;var n=[];return!0===t&&(n.push("left","center","right"),Object(w.hasBlockSupport)(e,"wideAlign",!0)&&n.push("wide","full")),n}var Dl=Object(ar.createHigherOrderComponent)(function(e){return function(t){var n=Il(t.name);return[n.length>0&&t.isSelected&&wp.element.createElement(Kr,{key:"align-controls"},wp.element.createElement(Ur,{value:t.attributes.align,onChange:function(e){return t.setAttributes({align:e})},controls:n})),wp.element.createElement(e,l()({key:"edit"},t))]}},"withToolbarControls"),Al=Object(ar.createHigherOrderComponent)(function(e){return function(t){var n=t.block.attributes.align,r=Il(t.block.name),o=t.wrapperProps;return Object(O.includes)(r,n)&&(o=l()({},o,{"data-align":n})),wp.element.createElement(e,l()({},t,{wrapperProps:o}))}},"withDataAlign");Object(cr.addFilter)("blocks.registerBlockType","core/align/addAttribute",function(e){return Object(w.hasBlockSupport)(e,"align")&&(e.attributes=Object(O.assign)(e.attributes,{align:{type:"string"}})),e}),Object(cr.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Al),Object(cr.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Dl),Object(cr.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",function(e,t,n){var r=n.align;return Object(O.includes)(Il(t),r)&&(e.className=sr()("align"+r,e.className)),e});var Nl=/[\s#]/g;var Ll=Object(ar.createHigherOrderComponent)(function(e){return function(t){return Object(w.hasBlockSupport)(t.name,"anchor")&&t.isSelected?wp.element.createElement(ar.Fragment,null,wp.element.createElement(e,t),wp.element.createElement(Ki,null,wp.element.createElement(yr.TextControl,{label:Object(q.__)("HTML Anchor"),help:Object(q.__)("Anchors lets you link directly to a section on a page."),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(Nl,"-"),t.setAttributes({anchor:e})}}))):wp.element.createElement(e,t)}},"withInspectorControl");Object(cr.addFilter)("blocks.registerBlockType","core/anchor/attribute",function(e){return Object(w.hasBlockSupport)(e,"anchor")&&(e.attributes=Object(O.assign)(e.attributes,{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e}),Object(cr.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",Ll),Object(cr.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",function(e,t,n){return Object(w.hasBlockSupport)(t,"anchor")&&(e.id=n.anchor),e});var Rl=Object(ar.createHigherOrderComponent)(function(e){return function(t){return Object(w.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?wp.element.createElement(ar.Fragment,null,wp.element.createElement(e,t),wp.element.createElement(Ki,null,wp.element.createElement(yr.TextControl,{label:Object(q.__)("Additional CSS Class"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:e})}}))):wp.element.createElement(e,t)}},"withInspectorControl");Object(cr.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",function(e){return Object(w.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=Object(O.assign)(e.attributes,{className:{type:"string"}})),e}),Object(cr.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Rl),Object(cr.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",function(e,t,n){return Object(w.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=sr()(e.className,n.className)),e});var Ul=[Ir],Ml=Object(O.once)(function(){return Object(i.dispatch)("core/editor").fetchSharedBlocks()});Object(cr.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",function(e,t){return e||(e=Ul.map(O.clone),t===Object(w.getDefaultBlockName)()&&(e.push(Object(O.clone)(xr)),Ml())),e}),Object(cr.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",function(e,t){return Object(w.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(O.uniq)([Object(w.getBlockDefaultClassName)(t.name)].concat(f()(e.className.split(" ")))).join(" ").trim():e.className=Object(w.getBlockDefaultClassName)(t.name)),e}),Object(cr.addFilter)("blocks.registerBlockType","core/layout/attribute",function(e){return e.attributes=Object(O.assign)(e.attributes,{layout:{type:"string"}}),e}),Object(cr.addFilter)("blocks.getSaveContent.extraProps","core/layout/save-props",function(e,t,n){var r=n.layout;return r&&(e.className=Object(O.compact)([e.className,"layout-"+r]).join(" ")),e}),Object(cr.addFilter)("blocks.switchToBlockType.transformedBlock","core/layout/preserve-layout",function(e,t){var n=Object(O.get)(t,[0,"attributes","layout"]);return e.attributes.layout=n,e}),Object(cr.addFilter)("blocks.isUnmodifiedDefaultBlock.attributes","core/layout/exclude-layout-attribute-check",function(e){return Object(O.without)(e,"layout")}),n.d(t,"Autocomplete",function(){return jr}),n.d(t,"AlignmentToolbar",function(){return Ar}),n.d(t,"BlockAlignmentToolbar",function(){return Ur}),n.d(t,"BlockControls",function(){return Kr}),n.d(t,"BlockEdit",function(){return qr}),n.d(t,"BlockFormatControls",function(){return Jr}),n.d(t,"BlockIcon",function(){return Cr}),n.d(t,"ColorPalette",function(){return Zr}),n.d(t,"withColorContext",function(){return Qr}),n.d(t,"ContrastChecker",function(){return fo}),n.d(t,"ImagePlaceholder",function(){return bo}),n.d(t,"InnerBlocks",function(){return Ui}),n.d(t,"InspectorAdvancedControls",function(){return Ki}),n.d(t,"InspectorControls",function(){return Yi}),n.d(t,"PanelColor",function(){return Xi}),n.d(t,"PlainText",function(){return $i}),n.d(t,"RichText",function(){return Ks}),n.d(t,"RichTextProvider",function(){return zs}),n.d(t,"MediaPlaceholder",function(){return vo}),n.d(t,"MediaUpload",function(){return ho}),n.d(t,"UrlInput",function(){return as}),n.d(t,"UrlInputButton",function(){return qs}),n.d(t,"AutosaveMonitor",function(){return Ys}),n.d(t,"DocumentOutline",function(){return ta}),n.d(t,"DocumentOutlineCheck",function(){return na}),n.d(t,"DocumentTitle",function(){return oa}),n.d(t,"EditorGlobalKeyboardShortcuts",function(){return aa}),n.d(t,"EditorHistoryRedo",function(){return la}),n.d(t,"EditorHistoryUndo",function(){return da}),n.d(t,"EditorNotices",function(){return fa}),n.d(t,"PageAttributesCheck",function(){return ha}),n.d(t,"PageAttributesOrder",function(){return ba}),n.d(t,"PageAttributesParent",function(){return _a}),n.d(t,"PageTemplate",function(){return Oa}),n.d(t,"PostAuthor",function(){return Ea}),n.d(t,"PostAuthorCheck",function(){return wa}),n.d(t,"PostComments",function(){return ja}),n.d(t,"PostExcerpt",function(){return Ca}),n.d(t,"PostExcerptCheck",function(){return Ta}),n.d(t,"PostFeaturedImage",function(){return Na}),n.d(t,"PostFeaturedImageCheck",function(){return Ba}),n.d(t,"PostFormat",function(){return Ua}),n.d(t,"PostFormatCheck",function(){return La}),n.d(t,"PostLastRevision",function(){return Fa}),n.d(t,"PostLastRevisionCheck",function(){return Ma}),n.d(t,"PostPendingStatus",function(){return Va}),n.d(t,"PostPendingStatusCheck",function(){return Ha}),n.d(t,"PostPingbacks",function(){return Ka}),n.d(t,"PostPreviewButton",function(){return za}),n.d(t,"PostPublishButton",function(){return Ga}),n.d(t,"PostPublishButtonLabel",function(){return qa}),n.d(t,"PostPublishPanel",function(){return oc}),n.d(t,"PostPublishPanelToggle",function(){return ic}),n.d(t,"PostSavedState",function(){return lc}),n.d(t,"PostSchedule",function(){return Qa}),n.d(t,"PostScheduleCheck",function(){return uc}),n.d(t,"PostScheduleLabel",function(){return Za}),n.d(t,"PostSticky",function(){return pc}),n.d(t,"PostStickyCheck",function(){return dc}),n.d(t,"PostSwitchToDraftButton",function(){return sc}),n.d(t,"PostTaxonomies",function(){return wc}),n.d(t,"PostTaxonomiesCheck",function(){return Sc}),n.d(t,"PostTextEditor",function(){return jc}),n.d(t,"PostTitle",function(){return Lc}),n.d(t,"PostTrash",function(){return Rc}),n.d(t,"PostTrashCheck",function(){return Uc}),n.d(t,"PostTypeSupportCheck",function(){return ma}),n.d(t,"PostVisibility",function(){return $a}),n.d(t,"PostVisibilityLabel",function(){return Ja}),n.d(t,"PostVisibilityCheck",function(){return Mc}),n.d(t,"TableOfContents",function(){return Zc}),n.d(t,"UnsavedChangesWarning",function(){return tl}),n.d(t,"WordCount",function(){return Jc}),n.d(t,"BlockInspector",function(){return ol}),n.d(t,"BlockList",function(){return Li}),n.d(t,"BlockMover",function(){return To}),n.d(t,"BlockSelectionClearer",function(){return sl}),n.d(t,"BlockSettingsMenu",function(){return Ho}),n.d(t,"_BlockSettingsMenuFirstItem",function(){return Mo}),n.d(t,"BlockTitle",function(){return Jo}),n.d(t,"BlockToolbar",function(){return ll}),n.d(t,"CopyHandler",function(){return dl}),n.d(t,"DefaultBlockAppender",function(){return xi}),n.d(t,"ErrorBoundary",function(){return fl}),n.d(t,"Inserter",function(){return mi}),n.d(t,"MultiBlocksSwitcher",function(){return hl}),n.d(t,"MultiSelectScrollIntoView",function(){return vl}),n.d(t,"NavigableToolbar",function(){return oi}),n.d(t,"ObserveTyping",function(){return yl}),n.d(t,"PreserveScrollInReorder",function(){return _l}),n.d(t,"SkipToSelectedBlock",function(){return rl}),n.d(t,"Warning",function(){return Vo}),n.d(t,"WritingFlow",function(){return Pl}),n.d(t,"EditorProvider",function(){return xl}),n.d(t,"blockAutocompleter",function(){return xr}),n.d(t,"userAutocompleter",function(){return Ir}),n.d(t,"getColorClass",function(){return no}),n.d(t,"getColorName",function(){return to}),n.d(t,"withColors",function(){return lo}),n.d(t,"editorMediaUpload",function(){return mo})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]}},function(e,t,n){var r=n(339);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,s=document.createElement(i);s.innerHTML="&nbsp;","TEXTAREA"===i.toUpperCase()&&s.setAttribute("rows","1");var a=r(e,"font-size");s.style.fontSize=a,s.style.padding="0px",s.style.border="0px";var c=document.body;c.appendChild(s),n=s.offsetHeight,c.removeChild(s)}return n}},function(e,t,n){var r,o,i;
13
  /*!
14
  autosize 4.0.2
15
  license: MIT
9
  Licensed under the MIT License (MIT), see
10
  http://jedwatson.github.io/classnames
11
  */
12
+ !function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r))e.push(o.apply(null,r));else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}void 0!==e&&e.exports?e.exports=o:void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){var r=n(48)("wks"),o=n(38),i=n(18).Symbol,s="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=s&&i[e]||(s?i:o)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(63),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,i.default)(e)}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(84),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(18),o=n(15),i=n(34),s=n(28),a=function(e,t,n){var c,l,u,d=e&a.F,p=e&a.G,f=e&a.S,h=e&a.P,m=e&a.B,v=e&a.W,b=p?o:o[t]||(o[t]={}),g=b.prototype,y=p?r:f?r[t]:(r[t]||{}).prototype;for(c in p&&(n=t),n)(l=!d&&y&&void 0!==y[c])&&c in b||(u=l?y[c]:n[c],b[c]=p&&"function"!=typeof y[c]?n[c]:m&&l?i(u,r):v&&y[c]==u?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(u):h&&"function"==typeof u?i(Function.call,u):u,h&&((b.virtual||(b.virtual={}))[c]=u,e&a.R&&g&&!g[c]&&s(g,c,u)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,e.exports=a},function(e,t,n){var r=n(24),o=n(65),i=n(49),s=Object.defineProperty;t.f=n(23)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(31)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(26);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){!function(){e.exports=this.wp.utils}()},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(22),o=n(33);e.exports=n(23)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){var r=n(58),o=n(43);e.exports=function(e){return r(o(e))}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(55);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.wp.dom}()},function(e,t,n){var r=n(64),o=n(46);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(43);e.exports=function(e){return Object(r(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(48)("keys"),o=n(38);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){"use strict";var r=n(92)(!0);n(70)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(22).f,o=n(27),i=n(17)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(18),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){var r=n(26);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(26),o=n(18).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t){e.exports=!0},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(135)),o=i(n(95));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return function(e,t){if(Array.isArray(e))return e;if((0,r.default)(Object(e)))return function(e,t){var n=[],r=!0,i=!1,s=void 0;try{for(var a,c=(0,o.default)(e);!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{!r&&c.return&&c.return()}finally{if(i)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){var r=n(41),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(24),o=n(85),i=n(46),s=n(44)("IE_PROTO"),a=function(){},c=function(){var e,t=n(50)("iframe"),r=i.length;for(t.style.display="none",n(75).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=r(e),n=new a,a.prototype=null,n[s]=e):n=c(),void 0===t?n:o(n,t)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},,function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(40);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},,function(e,t){!function(){e.exports=this.wp.apiRequest}()},function(e,t,n){n(105);for(var r=n(18),o=n(28),i=n(32),s=n(17)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var l=a[c],u=r[l],d=u&&u.prototype;d&&!d[s]&&o(d,s,l),i[l]=i.Array}},,function(e,t,n){e.exports={default:n(108),__esModule:!0}},function(e,t,n){var r=n(27),o=n(30),i=n(77)(!1),s=n(44)("IE_PROTO");e.exports=function(e,t){var n,a=o(e),c=0,l=[];for(n in a)n!=s&&r(a,n)&&l.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){e.exports=!n(23)&&!n(31)(function(){return 7!=Object.defineProperty(n(50)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(18),o=n(15),i=n(51),s=n(67),a=n(22).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},function(e,t,n){t.f=n(17)},function(e,t,n){var r=n(40),o=n(17)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){var r=n(68),o=n(17)("iterator"),i=n(32);e.exports=n(15).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){"use strict";var r=n(51),o=n(21),i=n(72),s=n(28),a=n(27),c=n(32),l=n(91),u=n(47),d=n(73),p=n(17)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,m,v,b,g){l(n,t,m);var y,k,_,O=function(e){if(!f&&e in j)return j[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",S="values"==v,E=!1,j=e.prototype,C=j[p]||j["@@iterator"]||v&&j[v],T=!f&&C||O(v),P=v?S?O("entries"):T:void 0,B="Array"==t&&j.entries||C;if(B&&(_=d(B.call(new e)))!==Object.prototype&&_.next&&(u(_,w,!0),r||a(_,p)||s(_,p,h)),S&&C&&"values"!==C.name&&(E=!0,T=function(){return C.call(this)}),r&&!g||!f&&!E&&j[p]||s(j,p,T),c[t]=T,c[w]=h,v)if(y={values:S?T:O("values"),keys:b?T:O("keys"),entries:P},g)for(k in y)k in j||i(j,k,y[k]);else o(o.P+o.F*(f||E),t,y);return y}},function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(96)),o=s(n(93)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function s(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===i(r.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":i(e)}},function(e,t,n){e.exports=n(28)},function(e,t,n){var r=n(27),o=n(39),i=n(44)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){e.exports={default:n(90),__esModule:!0}},function(e,t,n){var r=n(18).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(41),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(30),o=n(53),i=n(76);e.exports=function(e){return function(t,n,s){var a,c=r(t),l=o(c.length),u=i(s,l);if(e&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(64),o=n(46).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){e.exports={default:n(165),__esModule:!0}},function(e,t,n){"use strict";var r,o;function i(e){return[e]}function s(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var n,c;function l(){n=o?new WeakMap:s()}function u(){var n,r,o,i,s,l=arguments.length;for(i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];for(s=t.apply(null,i),(n=c(s)).isUniqueByDependants||(n.lastDependants&&!a(s,n.lastDependants,0)&&n.clear(),n.lastDependants=s),r=n.head;r;){if(a(r.args,i,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,i)},i[0]=null,r.args=i,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=i),c=o?function(e){var t,o,i,a,c,l=n,u=!0;for(t=0;t<e.length;t++){if(o=e[t],!(c=o)||"object"!=typeof c){u=!1;break}l.has(o)?l=l.get(o):(i=new WeakMap,l.set(o,i),l=i)}return l.has(r)||((a=s()).isUniqueByDependants=u,l.set(r,a)),l.get(r)}:function(){return n},u.getDependants=t,u.clear=l,l(),u}},function(e,t,n){var r=n(42),o=n(33),i=n(30),s=n(49),a=n(27),c=n(65),l=Object.getOwnPropertyDescriptor;t.f=n(23)?l:function(e,t){if(e=i(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(a(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(32),o=n(17)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){var r=n(24);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){e.exports={default:n(103),__esModule:!0}},function(e,t,n){var r=n(22),o=n(24),i=n(37);e.exports=n(23)?Object.defineProperties:function(e,t){o(e);for(var n,s=i(t),a=s.length,c=0;a>c;)r.f(e,n=s[c++],t[n]);return e}},function(e,t){},function(e,t,n){var r=n(17)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],s=i[r]();s.next=function(){return{done:n=!0}},i[r]=function(){return s},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(37),o=n(57),i=n(42),s=n(39),a=n(58),c=Object.assign;e.exports=!c||n(31)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=s(e),c=arguments.length,l=1,u=o.f,d=i.f;c>l;)for(var p,f=a(arguments[l++]),h=u?r(f).concat(u(f)):r(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:c},function(e,t,n){var r=n(21);r(r.S+r.F,"Object",{assign:n(88)})},function(e,t,n){n(89),e.exports=n(15).Object.assign},function(e,t,n){"use strict";var r=n(54),o=n(33),i=n(47),s={};n(28)(s,n(17)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(s,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(41),o=n(43);e.exports=function(e){return function(t,n){var i,s,a=String(o(t)),c=r(n),l=a.length;return c<0||c>=l?e?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):i:e?a.slice(c,c+2):s-56320+(i-55296<<10)+65536}}},function(e,t,n){e.exports={default:n(120),__esModule:!0}},,function(e,t,n){e.exports={default:n(129),__esModule:!0}},function(e,t,n){e.exports={default:n(121),__esModule:!0}},function(e,t,n){var r=n(38)("meta"),o=n(26),i=n(27),s=n(22).f,a=0,c=Object.isExtensible||function(){return!0},l=!n(31)(function(){return c(Object.preventExtensions({}))}),u=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return l&&d.NEED&&c(e)&&!i(e,r)&&u(e),e}}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){!function(){e.exports=this.wp.deprecated}()},,,function(e,t,n){var r=n(21);r(r.S+r.F*!n(23),"Object",{defineProperty:n(22).f})},function(e,t,n){n(102);var r=n(15).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";var r=n(104),o=n(98),i=n(32),s=n(30);e.exports=n(70)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r=n(22),o=n(33);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){"use strict";var r=n(34),o=n(21),i=n(39),s=n(83),a=n(82),c=n(53),l=n(106),u=n(69);o(o.S+o.F*!n(87)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,d,p=i(e),f="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m,b=0,g=u(p);if(v&&(m=r(m,h>2?arguments[2]:void 0,2)),void 0==g||f==Array&&a(g))for(n=new f(t=c(p.length));t>b;b++)l(n,b,v?m(p[b],b):p[b]);else for(d=g.call(p),n=new f;!(o=d.next()).done;b++)l(n,b,v?s(d,m,[o.value,b],!0):o.value);return n.length=b,n}})},function(e,t,n){n(45),n(107),e.exports=n(15).Array.from},function(e,t,n){e.exports={default:n(114),__esModule:!0}},function(e,t,n){var r=n(40);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(21),o=n(15),i=n(31);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",s)}},function(e,t,n){"use strict";var r=n(55);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}(e)}},function(e,t,n){var r=n(21);r(r.S,"Object",{create:n(54)})},function(e,t,n){n(113);var r=n(15).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){n(66)("observable")},function(e,t,n){n(66)("asyncIterator")},function(e,t,n){var r=n(30),o=n(78).f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return s.slice()}}(e):o(r(e))}},function(e,t,n){var r=n(37),o=n(57),i=n(42);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var s,a=n(e),c=i.f,l=0;a.length>l;)c.call(e,s=a[l++])&&t.push(s);return t}},function(e,t,n){"use strict";var r=n(18),o=n(27),i=n(23),s=n(21),a=n(72),c=n(97).KEY,l=n(31),u=n(48),d=n(47),p=n(38),f=n(17),h=n(67),m=n(66),v=n(118),b=n(110),g=n(24),y=n(26),k=n(30),_=n(49),O=n(33),w=n(54),S=n(117),E=n(81),j=n(22),C=n(37),T=E.f,P=j.f,B=S.f,x=r.Symbol,I=r.JSON,D=I&&I.stringify,A=f("_hidden"),N=f("toPrimitive"),L={}.propertyIsEnumerable,R=u("symbol-registry"),U=u("symbols"),M=u("op-symbols"),F=Object.prototype,H="function"==typeof x,V=r.QObject,K=!V||!V.prototype||!V.prototype.findChild,W=i&&l(function(){return 7!=w(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=T(F,t);r&&delete F[t],P(e,t,n),r&&e!==F&&P(F,t,r)}:P,z=function(e){var t=U[e]=w(x.prototype);return t._k=e,t},q=H&&"symbol"==typeof x.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof x},G=function(e,t,n){return e===F&&G(M,t,n),g(e),t=_(t,!0),g(n),o(U,t)?(n.enumerable?(o(e,A)&&e[A][t]&&(e[A][t]=!1),n=w(n,{enumerable:O(0,!1)})):(o(e,A)||P(e,A,O(1,{})),e[A][t]=!0),W(e,t,n)):P(e,t,n)},Y=function(e,t){g(e);for(var n,r=v(t=k(t)),o=0,i=r.length;i>o;)G(e,n=r[o++],t[n]);return e},X=function(e){var t=L.call(this,e=_(e,!0));return!(this===F&&o(U,e)&&!o(M,e))&&(!(t||!o(this,e)||!o(U,e)||o(this,A)&&this[A][e])||t)},$=function(e,t){if(e=k(e),t=_(t,!0),e!==F||!o(U,t)||o(M,t)){var n=T(e,t);return!n||!o(U,t)||o(e,A)&&e[A][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=B(k(e)),r=[],i=0;n.length>i;)o(U,t=n[i++])||t==A||t==c||r.push(t);return r},Q=function(e){for(var t,n=e===F,r=B(n?M:k(e)),i=[],s=0;r.length>s;)!o(U,t=r[s++])||n&&!o(F,t)||i.push(U[t]);return i};H||(a((x=function(){if(this instanceof x)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===F&&t.call(M,n),o(this,A)&&o(this[A],e)&&(this[A][e]=!1),W(this,e,O(1,n))};return i&&K&&W(F,e,{configurable:!0,set:t}),z(e)}).prototype,"toString",function(){return this._k}),E.f=$,j.f=G,n(78).f=S.f=J,n(42).f=X,n(57).f=Q,i&&!n(51)&&a(F,"propertyIsEnumerable",X,!0),h.f=function(e){return z(f(e))}),s(s.G+s.W+s.F*!H,{Symbol:x});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Z.length>ee;)f(Z[ee++]);for(var te=C(f.store),ne=0;te.length>ne;)m(te[ne++]);s(s.S+s.F*!H,"Symbol",{for:function(e){return o(R,e+="")?R[e]:R[e]=x(e)},keyFor:function(e){if(!q(e))throw TypeError(e+" is not a symbol!");for(var t in R)if(R[t]===e)return t},useSetter:function(){K=!0},useSimple:function(){K=!1}}),s(s.S+s.F*!H,"Object",{create:function(e,t){return void 0===t?w(e):Y(w(e),t)},defineProperty:G,defineProperties:Y,getOwnPropertyDescriptor:$,getOwnPropertyNames:J,getOwnPropertySymbols:Q}),I&&s(s.S+s.F*(!H||l(function(){var e=x();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(y(t)||void 0!==e)&&!q(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!q(t))return t}),r[1]=t,D.apply(I,r)}}),x.prototype[N]||n(28)(x.prototype,N,x.prototype.valueOf),d(x,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(e,t,n){n(119),n(86),n(116),n(115),e.exports=n(15).Symbol},function(e,t,n){n(45),n(61),e.exports=n(67).f("iterator")},function(e,t,n){var r=n(26),o=n(24),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(34)(Function.call,n(81).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var r=n(21);r(r.S,"Object",{setPrototypeOf:n(122).set})},function(e,t,n){n(123),e.exports=n(15).Object.setPrototypeOf},function(e,t,n){e.exports={default:n(124),__esModule:!0}},function(e,t,n){var r=n(39),o=n(73);n(111)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){n(126),e.exports=n(15).Object.getPrototypeOf},function(e,t,n){var r=n(24),o=n(69);e.exports=n(15).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){n(61),n(45),e.exports=n(128)},function(e,t,n){e.exports=function(e,t){var n,r,o,i=0;function s(){var t,s,a=r,c=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(s=0;s<c;s++)if(a.args[s]!==arguments[s]){a=a.next;continue e}return a!==r&&(a===o&&(o=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=r,a.prev=null,r.prev=a,r=a),a.val}a=a.next}for(t=new Array(c),s=0;s<c;s++)t[s]=arguments[s];return a={args:t,val:e.apply(null,t)},r?(r.prev=a,a.next=r):o=a,i===n?(o=o.prev).next=null:i++,r=a,a.val}return t&&t.maxSize&&(n=t.maxSize),s.clear=function(){r=null,o=null,i=0},s}},function(e,t){!function(){e.exports=this.wp.viewport}()},,function(e,t,n){var r=n(68),o=n(17)("iterator"),i=n(32);e.exports=n(15).isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||i.hasOwnProperty(r(t))}},function(e,t,n){n(61),n(45),e.exports=n(133)},function(e,t,n){e.exports={default:n(134),__esModule:!0}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.decode=t.parse=n(191),t.encode=t.stringify=n(190)},function(e,t,n){var r=n(24),o=n(26),i=n(112);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r,o,i,s=n(34),a=n(163),c=n(75),l=n(50),u=n(18),d=u.process,p=u.setImmediate,f=u.clearImmediate,h=u.MessageChannel,m=u.Dispatch,v=0,b={},g=function(){var e=+this;if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},y=function(e){g.call(e.data)};p&&f||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return b[++v]=function(){a("function"==typeof e?e:Function(e),t)},r(v),v},f=function(e){delete b[e]},"process"==n(40)(d)?r=function(e){d.nextTick(s(g,e,1))}:m&&m.now?r=function(e){m.now(s(g,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=y,r=s(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",y,!1)):r="onreadystatechange"in l("script")?function(e){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),g.call(e)}}:function(e){setTimeout(s(g,e,1),0)}),e.exports={set:p,clear:f}},function(e,t,n){var r=n(24),o=n(55),i=n(17)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||void 0==(n=r(s)[i])?t:o(n)}},function(e,t,n){var r=n(34),o=n(83),i=n(82),s=n(24),a=n(53),c=n(69),l={},u={};(t=e.exports=function(e,t,n,d,p){var f,h,m,v,b=p?function(){return e}:c(e),g=r(n,d,t?2:1),y=0;if("function"!=typeof b)throw TypeError(e+" is not iterable!");if(i(b)){for(f=a(e.length);f>y;y++)if((v=t?g(s(h=e[y])[0],h[1]):g(e[y]))===l||v===u)return v}else for(m=b.call(e);!(h=m.next()).done;)if((v=o(m,g,h.value,t))===l||v===u)return v}).BREAK=l,t.RETURN=u},function(e,t){!function(){e.exports=this.wp.blob}()},,function(e,t,n){e.exports={default:n(183),__esModule:!0}},,function(e,t,n){var r=n(28);e.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:r(e,o,t[o]);return e}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},,function(e,t,n){"use strict";var r=n(18),o=n(15),i=n(22),s=n(23),a=n(17)("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:r[e];s&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},,,function(e,t,n){"use strict";var r=n(193),o=n(192);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=y(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),d=["%","/","?",";","#"].concat(u),p=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(137);function y(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(a);l[0]=l[0].replace(/\\/g,"/");var y=e=l.join(a);if(y=y.trim(),!n&&1===e.split("#").length){var k=c.exec(y);if(k)return this.path=y,this.href=y,this.pathname=k[1],k[2]?(this.search=k[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=s.exec(y);if(_){var O=(_=_[0]).toLowerCase();this.protocol=O,y=y.substr(_.length)}if(n||_||y.match(/^\/\/[^@\/]+@[^@\/]+/)){var w="//"===y.substr(0,2);!w||_&&v[_]||(y=y.substr(2),this.slashes=!0)}if(!v[_]&&(w||_&&!b[_])){for(var S,E,j=-1,C=0;C<p.length;C++){-1!==(T=y.indexOf(p[C]))&&(-1===j||T<j)&&(j=T)}-1!==(E=-1===j?y.lastIndexOf("@"):y.lastIndexOf("@",j))&&(S=y.slice(0,E),y=y.slice(E+1),this.auth=decodeURIComponent(S)),j=-1;for(C=0;C<d.length;C++){var T;-1!==(T=y.indexOf(d[C]))&&(-1===j||T<j)&&(j=T)}-1===j&&(j=y.length),this.host=y.slice(0,j),y=y.slice(j),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var B=this.hostname.split(/\./),x=(C=0,B.length);C<x;C++){var I=B[C];if(I&&!I.match(f)){for(var D="",A=0,N=I.length;A<N;A++)I.charCodeAt(A)>127?D+="x":D+=I[A];if(!D.match(f)){var L=B.slice(0,C),R=B.slice(C+1),U=I.match(h);U&&(L.push(U[1]),R.unshift(U[2])),R.length&&(y="/"+R.join(".")+y),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=r.toASCII(this.hostname));var M=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+M,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!m[O])for(C=0,x=u.length;C<x;C++){var H=u[C];if(-1!==y.indexOf(H)){var V=encodeURIComponent(H);V===H&&(V=escape(H)),y=y.split(H).join(V)}}var K=y.indexOf("#");-1!==K&&(this.hash=y.substr(K),y=y.slice(0,K));var W=y.indexOf("?");if(-1!==W?(this.search=y.substr(W),this.query=y.substr(W+1),t&&(this.query=g.parse(this.query)),y=y.slice(0,W)):t&&(this.search="",this.query={}),y&&(this.pathname=y),b[O]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){M=this.pathname||"";var z=this.search||"";this.path=M+z}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,s="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(s=g.stringify(this.query));var a=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),s=0;s<r.length;s++){var a=r[s];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),l=0;l<c.length;l++){var u=c[l];"protocol"!==u&&(n[u]=e[u])}return b[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!b[e.protocol]){for(var d=Object.keys(e),p=0;p<d.length;p++){var f=d[p];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",g=n.search||"";n.path=m+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),k=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=k||y||n.host&&e.pathname,O=_,w=n.pathname&&n.pathname.split("/")||[],S=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!b[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(""===w[0]?w[0]=n.host:w.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),_=_&&(""===h[0]||""===w[0])),k)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,w=h;else if(h.length)w||(w=[]),w.pop(),w=w.concat(h),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(S)n.hostname=n.host=w.shift(),(P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.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 E=w.slice(-1)[0],j=(n.host||e.host||w.length>1)&&("."===E||".."===E)||""===E,C=0,T=w.length;T>=0;T--)"."===(E=w[T])?w.splice(T,1):".."===E?(w.splice(T,1),C++):C&&(w.splice(T,1),C--);if(!_&&!O)for(;C--;C)w.unshift("..");!_||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),j&&"/"!==w.join("/").substr(-1)&&w.push("");var P,B=""===w[0]||w[0]&&"/"===w[0].charAt(0);S&&(n.hostname=n.host=B?"":w.length?w.shift():"",(P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift()));return(_=_||n.host&&w.length)&&!B&&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},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t,n){e.exports=n(343)},,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,function(e,t,n){"use strict";var r=n(21),o=n(112),i=n(139);r(r.S,"Promise",{try:function(e){var t=o.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){"use strict";var r=n(21),o=n(15),i=n(18),s=n(141),a=n(138);r(r.P+r.R,"Promise",{finally:function(e){var t=s(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return a(t,e()).then(function(){return n})}:e,n?function(n){return a(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){var r=n(18),o=n(140).set,i=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==n(40)(s);e.exports=function(){var e,t,n,l=function(){var r,o;for(c&&(r=s.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(c)n=function(){s.nextTick(l)};else if(!i||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var u=a.resolve();n=function(){u.then(l)}}else n=function(){o.call(r,l)};else{var d=!0,p=document.createTextNode("");new i(l).observe(p,{characterData:!0}),n=function(){p.data=d=!d}}return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){"use strict";var r,o,i,s,a=n(51),c=n(18),l=n(34),u=n(68),d=n(21),p=n(26),f=n(55),h=n(148),m=n(142),v=n(141),b=n(140).set,g=n(162)(),y=n(112),k=n(139),_=n(138),O=c.TypeError,w=c.process,S=c.Promise,E="process"==u(w),j=function(){},C=o=y.f,T=!!function(){try{var e=S.resolve(1),t=(e.constructor={})[n(17)("species")]=function(e){e(j,j)};return(E||"function"==typeof PromiseRejectionEvent)&&e.then(j)instanceof t}catch(e){}}(),P=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},B=function(e,t){if(!e._n){e._n=!0;var n=e._c;g(function(){for(var r=e._v,o=1==e._s,i=0,s=function(t){var n,i,s=o?t.ok:t.fail,a=t.resolve,c=t.reject,l=t.domain;try{s?(o||(2==e._h&&D(e),e._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&l.exit()),n===t.promise?c(O("Promise-chain cycle")):(i=P(n))?i.call(n,a,c):a(n)):c(r)}catch(e){c(e)}};n.length>i;)s(n[i++]);e._c=[],e._n=!1,t&&!e._h&&x(e)})}},x=function(e){b.call(c,function(){var t,n,r,o=e._v,i=I(e);if(i&&(t=k(function(){E?w.emit("unhandledRejection",o,e):(n=c.onunhandledrejection)?n({promise:e,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),e._h=E||I(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},I=function(e){return 1!==e._h&&0===(e._a||e._c).length},D=function(e){b.call(c,function(){var t;E?w.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})})},A=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),B(t,!0))},N=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw O("Promise can't be resolved itself");(t=P(e))?g(function(){var r={_w:n,_d:!1};try{t.call(e,l(N,r,1),l(A,r,1))}catch(e){A.call(r,e)}}):(n._v=e,n._s=1,B(n,!1))}catch(e){A.call({_w:n,_d:!1},e)}}};T||(S=function(e){h(this,S,"Promise","_h"),f(e),r.call(this);try{e(l(N,this,1),l(A,this,1))}catch(e){A.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(147)(S.prototype,{then:function(e,t){var n=C(v(this,S));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=E?w.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&B(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=l(N,e,1),this.reject=l(A,e,1)},y.f=C=function(e){return e===S||e===s?new i(e):o(e)}),d(d.G+d.W+d.F*!T,{Promise:S}),n(47)(S,"Promise"),n(150)("Promise"),s=n(15).Promise,d(d.S+d.F*!T,"Promise",{reject:function(e){var t=C(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(a||!T),"Promise",{resolve:function(e){return _(a&&this===s?S:this,e)}}),d(d.S+d.F*!(T&&n(87)(function(e){S.all(e).catch(j)})),"Promise",{all:function(e){var t=this,n=C(t),r=n.resolve,o=n.reject,i=k(function(){var n=[],i=0,s=1;m(e,!1,function(e){var a=i++,c=!1;n.push(void 0),s++,t.resolve(e).then(function(e){c||(c=!0,n[a]=e,--s||r(n))},o)}),--s||r(n)});return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=C(t),r=n.reject,o=k(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(e,t,n){n(86),n(45),n(61),n(164),n(161),n(160),e.exports=n(15).Promise},function(e,t){!function(){e.exports=this.wp.nux}()},function(e,t){!function(){e.exports=this.tinymce}()},function(e,t,n){"use strict";e.exports=n(219)},function(e,t,n){e.exports={default:n(242),__esModule:!0}},function(e,t,n){var r=n(200),o=n(199);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[i+a]=s[a];return t||o(s)}},,,function(e,t,n){var r=n(37),o=n(30),i=n(42).f;e.exports=function(e){return function(t){for(var n,s=o(t),a=r(s),c=a.length,l=0,u=[];c>l;)i.call(s,n=a[l++])&&u.push(e?[n,s[n]]:s[n]);return u}}},function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e){return decodeURIComponent(e.replace(/\+/g," "))}t.stringify=function(e,t){t=t||"";var n=[];for(var o in"string"!=typeof t&&(t="?"),e)r.call(e,o)&&n.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return n.length?t+n.join("&"):""},t.parse=function(e){for(var t,n=/([^=?&]+)=?([^&]*)/g,r={};t=n.exec(e);r[o(t[1])]=o(t[2]));return r}},function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return l});var r=n(5),o=n.n(r),i=n(153),s=(n(137),/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i),a=/^(?:[a-z]+:|#|\?|\.|\/)/i;function c(e,t){var n=Object(i.parse)(e,!0),r=o()({},n.query,t);return delete n.search,Object(i.format)(o()({},n,{query:r}))}function l(e){return a.test(e)||s.test(e)?e:"http://"+e}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(342);t.default=r.default},function(e,t,n){var r;!function(o){var i=/^\s+/,s=/\s+$/,a=0,c=o.round,l=o.min,u=o.max,d=o.random;function p(e,t){if(e=e||"",t=t||{},e instanceof p)return e;if(!(this instanceof p))return new p(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,c=null,d=!1,p=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(s,"").toLowerCase();var t,n=!1;if(B[e])e=B[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=K.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=K.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=K.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=K.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=K.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=K.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=K.hex8.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),a:M(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:M(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(f=e.r,h=e.g,m=e.b,t={r:255*D(f,255),g:255*D(h,255),b:255*D(m,255)},d=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=R(e.s),a=R(e.v),t=function(e,t,n){e=6*D(e,360),t=D(t,100),n=D(n,100);var r=o.floor(e),i=e-r,s=n*(1-t),a=n*(1-i*t),c=n*(1-(1-i)*t),l=r%6;return{r:255*[n,a,s,s,c,n][l],g:255*[c,n,n,a,s,s][l],b:255*[s,s,c,n,n,a][l]}}(e.h,r,a),d=!0,p="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=R(e.s),c=R(e.l),t=function(e,t,n){var r,o,i;function s(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=D(e,360),t=D(t,100),n=D(n,100),0===t)r=o=i=n;else{var a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=s(c,a,e+1/3),o=s(c,a,e),i=s(c,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,c),d=!0,p="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,h,m;return n=I(n),{ok:d,format:e.format||p,r:l(255,u(t.r,0)),g:l(255,u(t.g,0)),b:l(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=a++}function f(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,o,i=u(e,t,n),s=l(e,t,n),a=(i+s)/2;if(i==s)r=o=0;else{var c=i-s;switch(o=a>.5?c/(2-i-s):c/(i+s),i){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:o,l:a}}function h(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,o,i=u(e,t,n),s=l(e,t,n),a=i,c=i-s;if(o=0===i?0:c/i,i==s)r=0;else{switch(i){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:o,v:a}}function m(e,t,n,r){var o=[L(c(e).toString(16)),L(c(t).toString(16)),L(c(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function v(e,t,n,r){return[L(U(r)),L(c(e).toString(16)),L(c(t).toString(16)),L(c(n).toString(16))].join("")}function b(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s-=t/100,n.s=A(n.s),p(n)}function g(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s+=t/100,n.s=A(n.s),p(n)}function y(e){return p(e).desaturate(100)}function k(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l+=t/100,n.l=A(n.l),p(n)}function _(e,t){t=0===t?0:t||10;var n=p(e).toRgb();return n.r=u(0,l(255,n.r-c(-t/100*255))),n.g=u(0,l(255,n.g-c(-t/100*255))),n.b=u(0,l(255,n.b-c(-t/100*255))),p(n)}function O(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l-=t/100,n.l=A(n.l),p(n)}function w(e,t){var n=p(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,p(n)}function S(e){var t=p(e).toHsl();return t.h=(t.h+180)%360,p(t)}function E(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+120)%360,s:t.s,l:t.l}),p({h:(n+240)%360,s:t.s,l:t.l})]}function j(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+90)%360,s:t.s,l:t.l}),p({h:(n+180)%360,s:t.s,l:t.l}),p({h:(n+270)%360,s:t.s,l:t.l})]}function C(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+72)%360,s:t.s,l:t.l}),p({h:(n+216)%360,s:t.s,l:t.l})]}function T(e,t,n){t=t||6,n=n||30;var r=p(e).toHsl(),o=360/n,i=[p(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(p(r));return i}function P(e,t){t=t||6;for(var n=p(e).toHsv(),r=n.h,o=n.s,i=n.v,s=[],a=1/t;t--;)s.push(p({h:r,s:o,v:i})),i=(i+a)%1;return s}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=I(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[L(c(e).toString(16)),L(c(t).toString(16)),L(c(n).toString(16)),L(U(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*D(this._r,255))+"%",g:c(100*D(this._g,255))+"%",b:c(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*D(this._r,255))+"%, "+c(100*D(this._g,255))+"%, "+c(100*D(this._b,255))+"%)":"rgba("+c(100*D(this._r,255))+"%, "+c(100*D(this._g,255))+"%, "+c(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(x[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=p(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return p(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(b,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(j,arguments)}},p.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:R(e[r]));e=n}return p(e,t)},p.equals=function(e,t){return!(!e||!t)&&p(e).toRgbString()==p(t).toRgbString()},p.random=function(){return p.fromRatio({r:d(),g:d(),b:d()})},p.mix=function(e,t,n){n=0===n?0:n||50;var r=p(e).toRgb(),o=p(t).toRgb(),i=n/100;return p({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},p.readability=function(e,t){var n=p(e),r=p(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},p.isReadable=function(e,t,n){var r,o,i=p.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},p.mostReadable=function(e,t,n){var r,o,i,s,a=null,c=0;o=(n=n||{}).includeFallbackColors,i=n.level,s=n.size;for(var l=0;l<t.length;l++)(r=p.readability(e,t[l]))>c&&(c=r,a=p(t[l]));return p.isReadable(e,a,{level:i,size:s})||!o?a:(n.includeFallbackColors=!1,p.mostReadable(e,["#fff","#000"],n))};var B=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=p.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(B);function I(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return l(1,u(0,e))}function N(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function U(e){return o.round(255*parseFloat(e)).toString(16)}function M(e){return N(e)/255}var F,H,V,K=(H="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",V="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!K.CSS_UNIT.exec(e)}void 0!==e&&e.exports?e.exports=p:void 0===(r=function(){return p}.call(t,n,t,e))||(e.exports=r)}(Math)},,function(e,t){var n;"function"!=typeof(n=window.Element.prototype).matches&&(n.matches=n.msMatchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=0;t[n]&&t[n]!==this;)++n;return Boolean(t[n])}),"function"!=typeof n.closest&&(n.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})},,function(e,t,n){var r=n(21),o=n(173)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){n(182),e.exports=n(15).Object.values},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(19),i=(r=o)&&r.__esModule?r:{default:r};t.attributeListToReact=a,t.nodeListToReact=l,t.nodeToReact=u;var s=[].concat(["accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","capture","cellPadding","cellSpacing","challenge","charSet","checked","cite","classID","className","colSpan","cols","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","encType","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","height","hidden","high","href","hrefLang","htmlFor","httpEquiv","icon","id","inputMode","integrity","is","keyParams","keyType","kind","label","lang","list","loop","low","manifest","marginHeight","marginWidth","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","nonce","open","optimum","pattern","placeholder","poster","preload","profile","radioGroup","readOnly","rel","required","reversed","role","rowSpan","rows","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","spellCheck","src","srcDoc","srcLang","srcSet","start","step","style","summary","tabIndex","target","title","type","useMap","value","width","wmode","wrap"],["autoCapitalize","autoCorrect","color","itemProp","itemScope","itemType","itemRef","itemID","security","unselectable","results","autoSave"],["accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseProfile","baselineShift","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","ideographic","imageRendering","in","in2","intercept","k","k1","k2","k3","k4","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","viewBox","viewTarget","visibility","widths","wordSpacing","writingMode","x","x1","x2","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlSpace","y","y1","y2","yChannelSelector","z","zoomAndPan"]).reduce(function(e,t){var n=t.toLowerCase();return t!==n&&(e[n]=t),e},{});function a(e){return[].concat((0,i.default)(e)).reduce(function(e,t){var n=t.name,r=t.value,o=s[n.replace(/[-:]/,"")]||n;return"style"===o&&(r=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(";").reduce(function(e,t){var n,r=t.split(":"),o=(n=r[0]||"",n.toLowerCase().replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})).trim(),i=(r[1]||"").trim();return o&&i&&(e[o]=i),e},{})}(r)),e[o]=r,e},{})}s.class="className";var c=0;function l(e,t){return[].concat((0,i.default)(e)).reduce(function(e,n){n._domReactKey||(n._domReactKey="_domReact"+String(c++));var r=u(n,t);return Array.isArray(r)?e.push.apply(e,(0,i.default)(r)):e.push(r),e},[])}function u(e,t){if(!e)return null;if(3===e.nodeType)return e.nodeValue;if(1!==e.nodeType)return null;var n=e.nodeName.toLowerCase(),r={},o=[];return e.hasAttributes()&&(r=a(e.attributes)),e._domReactKey&&(r.key=e._domReactKey),e.hasChildNodes()&&(o=l(e.childNodes,t)),t.apply(void 0,[n,r].concat((0,i.default)(o)))}},,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,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(s(e),function(s){var a=encodeURIComponent(r(s))+n;return o(e[s])?i(e[s],function(e){return a+encodeURIComponent(r(e))}).join(t):a+encodeURIComponent(r(e[s]))}).join(t):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var s=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var l=e.length;c>0&&l>c&&(l=c);for(var u=0;u<l;++u){var d,p,f,h,m=e[u].replace(a,"%20"),v=m.indexOf(n);v>=0?(d=m.substr(0,v),p=m.substr(v+1)):(d=m,p=""),f=decodeURIComponent(d),h=decodeURIComponent(p),r(s,f)?o(s[f])?s[f].push(h):s[f]=[s[f],h]:s[f]=h}return s};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},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}}},function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(i){"object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType;var s="object"==typeof r&&r;s.global!==s&&s.window!==s&&s.self;var a,c=2147483647,l=36,u=1,d=26,p=38,f=700,h=72,m=128,v="-",b=/^xn--/,g=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=l-u,O=Math.floor,w=String.fromCharCode;function S(e){throw new RangeError(k[e])}function E(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function j(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+E((e=e.replace(y,".")).split("."),t).join(".")}function C(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function T(e){return E(e,function(e){var t="";return e>65535&&(t+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function P(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function B(e,t,n){var r=0;for(e=n?O(e/f):e>>1,e+=O(e/t);e>_*d>>1;r+=l)e=O(e/_);return O(r+(_+1)*e/(e+p))}function x(e){var t,n,r,o,i,s,a,p,f,b,g,y=[],k=e.length,_=0,w=m,E=h;for((n=e.lastIndexOf(v))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&S("not-basic"),y.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<k;){for(i=_,s=1,a=l;o>=k&&S("invalid-input"),((p=(g=e.charCodeAt(o++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:l)>=l||p>O((c-_)/s))&&S("overflow"),_+=p*s,!(p<(f=a<=E?u:a>=E+d?d:a-E));a+=l)s>O(c/(b=l-f))&&S("overflow"),s*=b;E=B(_-i,t=y.length+1,0==i),O(_/t)>c-w&&S("overflow"),w+=O(_/t),_%=t,y.splice(_++,0,w)}return T(y)}function I(e){var t,n,r,o,i,s,a,p,f,b,g,y,k,_,E,j=[];for(y=(e=C(e)).length,t=m,n=0,i=h,s=0;s<y;++s)(g=e[s])<128&&j.push(w(g));for(r=o=j.length,o&&j.push(v);r<y;){for(a=c,s=0;s<y;++s)(g=e[s])>=t&&g<a&&(a=g);for(a-t>O((c-n)/(k=r+1))&&S("overflow"),n+=(a-t)*k,t=a,s=0;s<y;++s)if((g=e[s])<t&&++n>c&&S("overflow"),g==t){for(p=n,f=l;!(p<(b=f<=i?u:f>=i+d?d:f-i));f+=l)E=p-b,_=l-b,j.push(w(P(b+E%_,0))),p=O(E/_);j.push(w(P(p,0))),i=B(n,k,r==o),n=0,++r}++n,++t}return j.join("")}a={version:"1.4.1",ucs2:{decode:C,encode:T},decode:x,encode:I,toASCII:function(e){return j(e,function(e){return g.test(e)?"xn--"+I(e):e})},toUnicode:function(e){return j(e,function(e){return b.test(e)?x(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return a}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(158)(e),n(136))},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,i,s,a,c){if(r(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,i,s,a,c],d=0;(l=new Error(t.replace(/%s/g,function(){return u[d++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){e.exports=n(221)()},,,function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]}},function(e,t,n){(function(t){var n,r=t.crypto||t.msCrypto;if(r&&r.getRandomValues){var o=new Uint8Array(16);n=function(){return r.getRandomValues(o),o}}if(!n){var i=new Array(16);n=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}e.exports=n}).call(this,n(136))},,function(e,t,n){e.exports=function(){"use strict";return function(e){var t={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)e(t,n[r]);else for(r in n)t[r]=(t[r]||[]).concat(n[r])}(t,e),function(e){return function(n){return function(r){var o,i,s=t[r.type],a=n(r);if(s)for(o=0;o<s.length;o++)(i=s[o](r,e))&&e.dispatch(i);return a}}}}}()},,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function i(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function s(e){return i(e)}function a(e){return i(e,!0)}function c(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,i=o.body,s=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=s.clientLeft||i.clientLeft||0,top:r-=s.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=s(r),t.top+=a(r),t}var l=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/,d="currentStyle",p="runtimeStyle",f="left",h="px";var m=void 0;function v(e,t){for(var n=0;n<e.length;n++)t(e[n])}function b(e){return"border-box"===m(e,"boxSizing")}"undefined"!=typeof window&&(m=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,i=n||o.defaultView.getComputedStyle(e,null);return i&&(r=i.getPropertyValue(t)||i[t]),r}:function(e,t){var n=e[d]&&e[d][t];if(l.test(n)&&!u.test(t)){var r=e.style,o=r[f],i=e[p][f];e[p][f]=e[d][f],r[f]="fontSize"===t?"1em":n||0,n=r.pixelLeft+h,r[f]=o,e[p][f]=i}return""===n?"auto":n});var g=["margin","border","padding"],y=-1,k=2,_=1;function O(e,t,n){var r=0,o=void 0,i=void 0,s=void 0;for(i=0;i<t.length;i++)if(o=t[i])for(s=0;s<n.length;s++){var a=void 0;a="border"===o?o+n[s]+"Width":o+n[s],r+=parseFloat(m(e,a))||0}return r}function w(e){return null!=e&&e==e.window}var S={};function E(e,t,n){if(w(e))return"width"===t?S.viewportWidth(e):S.viewportHeight(e);if(9===e.nodeType)return"width"===t?S.docWidth(e):S.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,i=(m(e),b(e)),s=0;(null==o||o<=0)&&(o=void 0,(null==(s=m(e,t))||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===n&&(n=i?_:y);var a=void 0!==o||i,c=o||s;if(n===y)return a?c-O(e,["border","padding"],r):s;if(a){var l=n===k?-O(e,["border"],r):O(e,["margin"],r);return c+(n===_?0:l)}return s+O(e,g.slice(n),r)}v(["Width","Height"],function(e){S["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],S["viewport"+e](n))},S["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}});var j={position:"absolute",visibility:"hidden",display:"block"};function C(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=E.apply(void 0,n):function(e,t,n){var r={},o=e.style,i=void 0;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);for(i in n.call(e),t)t.hasOwnProperty(i)&&(o[i]=r[i])}(e,j,function(){t=E.apply(void 0,n)}),t}function T(e,t,n){var r=n;if("object"!==(void 0===t?"undefined":o(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):m(e,t);for(var i in t)t.hasOwnProperty(i)&&T(e,i,t[i])}v(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);S["outer"+t]=function(t,n){return t&&C(t,e,n?0:_)};var n="width"===e?["Left","Right"]:["Top","Bottom"];S[e]=function(t,r){if(void 0===r)return t&&C(t,e,y);if(t){m(t);return b(t)&&(r+=O(t,["padding","border"],n)),T(t,e,r)}}}),e.exports=r({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return c(e);!function(e,t){"static"===T(e,"position")&&(e.style.position="relative");var n=c(e),r={},o=void 0,i=void 0;for(i in t)t.hasOwnProperty(i)&&(o=parseFloat(T(e,i))||0,r[i]=o+t[i]-n[i]);T(e,r)}(e,t)},isWindow:w,each:v,css:T,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(w(e)){if(void 0===t)return s(e);window.scrollTo(t,a(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(w(e)){if(void 0===t)return a(e);window.scrollTo(s(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},S)},function(e,t,n){"use strict";var r=n(218);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,s=n.alignWithTop,a=n.alignWithLeft,c=n.offsetTop||0,l=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var p=r.isWindow(t),f=r.offset(e),h=r.outerHeight(e),m=r.outerWidth(e),v=void 0,b=void 0,g=void 0,y=void 0,k=void 0,_=void 0,O=void 0,w=void 0,S=void 0,E=void 0;p?(O=t,E=r.height(O),S=r.width(O),w={left:r.scrollLeft(O),top:r.scrollTop(O)},k={left:f.left-w.left-l,top:f.top-w.top-c},_={left:f.left+m-(w.left+S)+d,top:f.top+h-(w.top+E)+u},y=w):(v=r.offset(t),b=t.clientHeight,g=t.clientWidth,y={left:t.scrollLeft,top:t.scrollTop},k={left:f.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-l,top:f.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-c},_={left:f.left+m-(v.left+g+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:f.top+h-(v.top+b+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),k.top<0||_.top>0?!0===s?r.scrollTop(t,y.top+k.top):!1===s?r.scrollTop(t,y.top+_.top):k.top<0?r.scrollTop(t,y.top+k.top):r.scrollTop(t,y.top+_.top):i||((s=void 0===s||!!s)?r.scrollTop(t,y.top+k.top):r.scrollTop(t,y.top+_.top)),o&&(k.left<0||_.left>0?!0===a?r.scrollLeft(t,y.left+k.left):!1===a?r.scrollLeft(t,y.left+_.left):k.left<0?r.scrollLeft(t,y.left+k.left):r.scrollLeft(t,y.left+_.left):i||((a=void 0===a||!!a)?r.scrollLeft(t,y.left+k.left):r.scrollLeft(t,y.left+_.left)))}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(195),o=n(194),i=n(220);e.exports=function(){function e(e,t,n,r,s,a){a!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(39),o=n(37);n(111)("keys",function(){return function(e){return o(r(e))}})},function(e,t,n){n(241),e.exports=n(15).Object.keys},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.dispatch;return function(e){return function(n){return Array.isArray(n)?n.filter(Boolean).map(t):e(n)}}}},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r={};n.d(r,"setupEditor",function(){return Q}),n.d(r,"resetPost",function(){return Z}),n.d(r,"resetAutosave",function(){return ee}),n.d(r,"updatePost",function(){return te}),n.d(r,"setupEditorState",function(){return ne}),n.d(r,"resetBlocks",function(){return re}),n.d(r,"receiveBlocks",function(){return oe}),n.d(r,"updateBlockAttributes",function(){return ie}),n.d(r,"updateBlock",function(){return se}),n.d(r,"selectBlock",function(){return ae}),n.d(r,"startMultiSelect",function(){return ce}),n.d(r,"stopMultiSelect",function(){return le}),n.d(r,"multiSelect",function(){return ue}),n.d(r,"clearSelectedBlock",function(){return de}),n.d(r,"toggleSelection",function(){return pe}),n.d(r,"replaceBlocks",function(){return fe}),n.d(r,"replaceBlock",function(){return he}),n.d(r,"moveBlocksDown",function(){return ve}),n.d(r,"moveBlocksUp",function(){return be}),n.d(r,"moveBlockToPosition",function(){return ge}),n.d(r,"insertBlock",function(){return ye}),n.d(r,"insertBlocks",function(){return ke}),n.d(r,"showInsertionPoint",function(){return _e}),n.d(r,"hideInsertionPoint",function(){return Oe}),n.d(r,"setTemplateValidity",function(){return we}),n.d(r,"checkTemplateValidity",function(){return Se}),n.d(r,"synchronizeTemplate",function(){return Ee}),n.d(r,"editPost",function(){return je}),n.d(r,"savePost",function(){return Ce}),n.d(r,"refreshPost",function(){return Te}),n.d(r,"trashPost",function(){return Pe}),n.d(r,"mergeBlocks",function(){return Be}),n.d(r,"autosave",function(){return xe}),n.d(r,"redo",function(){return Ie}),n.d(r,"undo",function(){return De}),n.d(r,"createUndoLevel",function(){return Ae}),n.d(r,"removeBlocks",function(){return Ne}),n.d(r,"removeBlock",function(){return Le}),n.d(r,"toggleBlockMode",function(){return Re}),n.d(r,"startTyping",function(){return Ue}),n.d(r,"stopTyping",function(){return Me}),n.d(r,"createNotice",function(){return Fe}),n.d(r,"removeNotice",function(){return He}),n.d(r,"createSuccessNotice",function(){return Ve}),n.d(r,"createInfoNotice",function(){return Ke}),n.d(r,"createErrorNotice",function(){return We}),n.d(r,"createWarningNotice",function(){return ze}),n.d(r,"fetchSharedBlocks",function(){return qe}),n.d(r,"receiveSharedBlocks",function(){return Ge}),n.d(r,"saveSharedBlock",function(){return Ye}),n.d(r,"deleteSharedBlock",function(){return Xe}),n.d(r,"updateSharedBlockTitle",function(){return $e}),n.d(r,"convertBlockToStatic",function(){return Je}),n.d(r,"convertBlockToShared",function(){return Qe}),n.d(r,"insertDefaultBlock",function(){return Ze}),n.d(r,"updateBlockListSettings",function(){return et}),n.d(r,"updateEditorSettings",function(){return tt});var o={};n.d(o,"POST_UPDATE_TRANSACTION_ID",function(){return at}),n.d(o,"INSERTER_UTILITY_HIGH",function(){return lt}),n.d(o,"INSERTER_UTILITY_MEDIUM",function(){return ut}),n.d(o,"INSERTER_UTILITY_LOW",function(){return dt}),n.d(o,"INSERTER_UTILITY_NONE",function(){return pt}),n.d(o,"hasEditorUndo",function(){return ht}),n.d(o,"hasEditorRedo",function(){return mt}),n.d(o,"isEditedPostNew",function(){return vt}),n.d(o,"isEditedPostDirty",function(){return bt}),n.d(o,"isCleanNewPost",function(){return gt}),n.d(o,"getCurrentPost",function(){return yt}),n.d(o,"getCurrentPostType",function(){return kt}),n.d(o,"getCurrentPostId",function(){return _t}),n.d(o,"getCurrentPostRevisionsCount",function(){return Ot}),n.d(o,"getCurrentPostLastRevisionId",function(){return wt}),n.d(o,"getPostEdits",function(){return St}),n.d(o,"getCurrentPostAttribute",function(){return Et}),n.d(o,"getEditedPostAttribute",function(){return jt}),n.d(o,"getAutosaveAttribute",function(){return Ct}),n.d(o,"getEditedPostVisibility",function(){return Tt}),n.d(o,"isCurrentPostPending",function(){return Pt}),n.d(o,"isCurrentPostPublished",function(){return Bt}),n.d(o,"isCurrentPostScheduled",function(){return xt}),n.d(o,"isEditedPostPublishable",function(){return It}),n.d(o,"isEditedPostSaveable",function(){return Dt}),n.d(o,"isEditedPostEmpty",function(){return At}),n.d(o,"isEditedPostAutosaveable",function(){return Nt}),n.d(o,"getAutosave",function(){return Lt}),n.d(o,"hasAutosave",function(){return Rt}),n.d(o,"isEditedPostBeingScheduled",function(){return Ut}),n.d(o,"getDocumentTitle",function(){return Mt}),n.d(o,"getBlockDependantsCacheBust",function(){return Ft}),n.d(o,"getBlockName",function(){return Ht}),n.d(o,"getBlock",function(){return Vt}),n.d(o,"getBlocks",function(){return Kt}),n.d(o,"getGlobalBlockCount",function(){return Wt}),n.d(o,"getBlocksByUID",function(){return zt}),n.d(o,"getBlockCount",function(){return qt}),n.d(o,"getBlockSelectionStart",function(){return Gt}),n.d(o,"getBlockSelectionEnd",function(){return Yt}),n.d(o,"getSelectedBlockCount",function(){return Xt}),n.d(o,"hasSelectedBlock",function(){return $t}),n.d(o,"getSelectedBlockUID",function(){return Jt}),n.d(o,"getSelectedBlock",function(){return Qt}),n.d(o,"getBlockRootUID",function(){return Zt}),n.d(o,"getAdjacentBlockUid",function(){return en}),n.d(o,"getPreviousBlockUid",function(){return tn}),n.d(o,"getNextBlockUid",function(){return nn}),n.d(o,"getSelectedBlocksInitialCaretPosition",function(){return rn}),n.d(o,"getMultiSelectedBlockUids",function(){return on}),n.d(o,"getMultiSelectedBlocks",function(){return sn}),n.d(o,"getFirstMultiSelectedBlockUid",function(){return an}),n.d(o,"getLastMultiSelectedBlockUid",function(){return cn}),n.d(o,"isFirstMultiSelectedBlock",function(){return ln}),n.d(o,"isBlockMultiSelected",function(){return un}),n.d(o,"getMultiSelectedBlocksStartUid",function(){return dn}),n.d(o,"getMultiSelectedBlocksEndUid",function(){return pn}),n.d(o,"getBlockOrder",function(){return fn}),n.d(o,"getBlockIndex",function(){return hn}),n.d(o,"isBlockSelected",function(){return mn}),n.d(o,"hasSelectedInnerBlock",function(){return vn}),n.d(o,"isBlockWithinSelection",function(){return bn}),n.d(o,"hasMultiSelection",function(){return gn}),n.d(o,"isMultiSelecting",function(){return yn}),n.d(o,"isSelectionEnabled",function(){return kn}),n.d(o,"getBlockMode",function(){return _n}),n.d(o,"isTyping",function(){return On}),n.d(o,"getBlockInsertionPoint",function(){return wn}),n.d(o,"isBlockInsertionPointVisible",function(){return Sn}),n.d(o,"isValidTemplate",function(){return En}),n.d(o,"getTemplate",function(){return jn}),n.d(o,"getTemplateLock",function(){return Cn}),n.d(o,"isSavingPost",function(){return Tn}),n.d(o,"didPostSaveRequestSucceed",function(){return Pn}),n.d(o,"didPostSaveRequestFail",function(){return Bn}),n.d(o,"isAutosavingPost",function(){return xn}),n.d(o,"getSuggestedPostFormat",function(){return In}),n.d(o,"getEditedPostContent",function(){return Dn}),n.d(o,"getNotices",function(){return An}),n.d(o,"canInsertBlockType",function(){return Nn}),n.d(o,"getInserterItems",function(){return Rn}),n.d(o,"getFrecentInserterItems",function(){return Un}),n.d(o,"getSharedBlock",function(){return Mn}),n.d(o,"isSavingSharedBlock",function(){return Fn}),n.d(o,"isFetchingSharedBlock",function(){return Hn}),n.d(o,"getSharedBlocks",function(){return Vn}),n.d(o,"getStateBeforeOptimisticTransaction",function(){return Kn}),n.d(o,"isPublishingPost",function(){return Wn}),n.d(o,"getProvisionalBlockUID",function(){return zn}),n.d(o,"isPermalinkEditable",function(){return qn}),n.d(o,"getPermalink",function(){return Gn}),n.d(o,"getPermalinkParts",function(){return Yn}),n.d(o,"inSomeHistory",function(){return Xn}),n.d(o,"getBlockListSettings",function(){return $n}),n.d(o,"getSupportedBlocks",function(){return Jn}),n.d(o,"getEditorSettings",function(){return Qn});var i=n(4),s=n(52),a=n.n(s),c=n(5),l=n.n(c),u=n(29),d=n.n(u),p=n(19),f=n.n(p),h=n(74),m=n.n(h),v=n(20),b=n.n(v),g=n(71),y=n.n(g),k=n(155),_=n.n(k),O=n(0),w=n(13),S={resetTypes:[],ignoreTypes:[],shouldOverwriteState:function(){return!1}},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){(e=l()({},S,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:[]},r=void 0,o=!1,i=e,s=i.resetTypes,a=void 0===s?[]:s,c=i.shouldOverwriteState,u=void 0===c?function(){return!1}:c;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,i=arguments[1],s=e.past,c=e.present,l=e.future,d=r;switch(r=i,i.type){case"UNDO":return s.length?{past:Object(O.dropRight)(s),present:Object(O.last)(s),future:[c].concat(f()(l))}:e;case"REDO":return l.length?{past:[].concat(f()(s),[c]),present:Object(O.first)(l),future:Object(O.drop)(l)}:e;case"CREATE_UNDO_LEVEL":return o=!0,e}var p=t(c,i);if(Object(O.includes)(a,i.type))return{past:[],present:p,future:[]};if(c===p)return e;var h=s;return!(o=!s.length||o)&&u(i,d)||(h=[].concat(f()(s),[c])),o=!1,{past:h,present:p,future:[]}}}},j=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),s=n!==o;if(!s&&!i)return n;s&&void 0!==n||(o=l()({},o));var a=Object(O.includes)(e.ignoreTypes,r.type);return o.isDirty=a?n.isDirty:!i&&s,o}}},C={insertUsage:{}},T={alignWide:!1,colors:[{name:"pale pink",color:"#f78da7"},{name:"vivid red",color:"#cf2e2e"},{name:"luminous vivid orange",color:"#ff6900"},{name:"luminous vivid amber",color:"#fcb900"},{name:"light green cyan",color:"#7bdcb5"},{name:"vivid green cyan",color:"#00d084"},{name:"pale cyan blue",color:"#8ed1fc"},{name:"vivid cyan blue",color:"#0693e3"},{name:"very light gray",color:"#eeeeee"},{name:"cyan bluish gray",color:"#abb8c3"},{name:"very dark gray",color:"#313131"}],maxWidth:580,allowedBlockTypes:!0};function P(e,t,n){return[].concat(f()(e.slice(0,n)),f()(Object(O.castArray)(t)),f()(e.slice(n)))}function B(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=[].concat(f()(e));return o.splice(t,r),P(o,e.slice(t,t+r),n)}function x(e){return e&&"object"===(void 0===e?"undefined":y()(e))&&"raw"in e?e.raw:e}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=b()({},t,[]);return e.forEach(function(e){var r=e.uid,o=e.innerBlocks;n[t].push(r),m()(n,I(o,r))}),n}function D(e){for(var t={},n=[].concat(f()(e));n.length;){var r=n.shift(),o=r.innerBlocks,i=d()(r,["innerBlocks"]);n.push.apply(n,f()(o)),t[i.uid]=i}return t}function A(e,t){return Object(O.isEqual)(Object(O.keys)(e),Object(O.keys)(t))}function N(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&e.uid===t.uid&&A(e.attributes,t.attributes)}function L(e,t){return"EDIT_POST"===e.type&&A(e.edits,t.edits)}var R=Object(O.flow)([i.combineReducers,function(e){return function(t,n){if(t&&"REMOVE_BLOCKS"===n.type){for(var r=[].concat(f()(n.uids)),o=0;o<r.length;o++)r.push.apply(r,f()(t.blockOrder[r[o]]));n=l()({},n,{uids:r})}return e(t,n)}},E({resetTypes:["SETUP_EDITOR_STATE"],ignoreTypes:["RECEIVE_BLOCKS","RESET_POST","UPDATE_POST"],shouldOverwriteState:function(e,t){return!(!t||e.type!==t.type)&&Object(O.overSome)([N,L])(e,t)}}),j({resetTypes:["SETUP_EDITOR_STATE","REQUEST_POST_UPDATE_START"],ignoreTypes:["RECEIVE_BLOCKS","RESET_POST","UPDATE_POST"]})])({edits:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"EDIT_POST":case"SETUP_EDITOR_STATE":return Object(O.reduce)(t.edits,function(t,n,r){return n!==e[r]&&(t===e&&(t=l()({},e)),t[r]=n),t},e);case"RESET_BLOCKS":return"content"in e?Object(O.omit)(e,"content"):e;case"DIRTY_ARTIFICIALLY":return l()({},e);case"UPDATE_POST":case"RESET_POST":var n="UPDATE_POST"===t.type?function(e){return t.edits[e]}:function(e){return x(t.post[e])};return Object(O.reduce)(e,function(t,r,o){return r!==n(o)?t:(e===t&&(t=l()({},e)),delete t[o],t)},e)}return e},blocksByUID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"RESET_BLOCKS":case"SETUP_EDITOR_STATE":return D(t.blocks);case"RECEIVE_BLOCKS":return l()({},e,D(t.blocks));case"UPDATE_BLOCK_ATTRIBUTES":if(!e[t.uid])return e;var n=Object(O.reduce)(t.attributes,function(n,r,o){return r!==n[o]&&(n===e[t.uid].attributes&&(n=l()({},n)),n[o]=r),n},e[t.uid].attributes);return n===e[t.uid].attributes?e:l()({},e,b()({},t.uid,l()({},e[t.uid],{attributes:n})));case"MOVE_BLOCK_TO_POSITION":return e[t.uid].attributes.layout===t.layout?e:l()({},e,b()({},t.uid,l()({},e[t.uid],{attributes:l()({},e[t.uid].attributes,{layout:t.layout})})));case"UPDATE_BLOCK":return e[t.uid]?l()({},e,b()({},t.uid,l()({},e[t.uid],t.updates))):e;case"INSERT_BLOCKS":return l()({},e,D(t.blocks));case"REPLACE_BLOCKS":return t.blocks?l()({},Object(O.omit)(e,t.uids),D(t.blocks)):e;case"REMOVE_BLOCKS":return Object(O.omit)(e,t.uids);case"SAVE_SHARED_BLOCK_SUCCESS":var r=t.id,o=t.updatedId;return r===o?e:Object(O.mapValues)(e,function(e){return"core/block"===e.name&&e.attributes.ref===r?l()({},e,{attributes:l()({},e.attributes,{ref:o})}):e})}return e},blockOrder:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"RESET_BLOCKS":case"SETUP_EDITOR_STATE":return I(t.blocks);case"RECEIVE_BLOCKS":return l()({},e,Object(O.omit)(I(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootUID,r=void 0===n?"":n,o=t.blocks,i=e[r]||[],s=I(o,r),a=t.index,c=void 0===a?i.length:a;return l()({},e,s,b()({},r,P(i,s[r],c)));case"MOVE_BLOCK_TO_POSITION":var u,d=t.fromRootUID,p=void 0===d?"":d,h=t.toRootUID,m=void 0===h?"":h,v=t.uid,g=t.index,y=void 0===g?e[m].length:g;if(p===m){var k=e[m].indexOf(v);return l()({},e,b()({},m,B(e[m],k,y)))}return l()({},e,(u={},b()(u,p,Object(O.without)(e[p],v)),b()(u,m,P(e[m],v,y)),u));case"MOVE_BLOCKS_UP":var _=t.uids,w=t.rootUID,S=void 0===w?"":w,E=Object(O.first)(_),j=e[S];if(!j.length||E===Object(O.first)(j))return e;var C=j.indexOf(E);return l()({},e,b()({},S,B(j,C,C-1,_.length)));case"MOVE_BLOCKS_DOWN":var T=t.uids,x=t.rootUID,D=void 0===x?"":x,A=Object(O.first)(T),N=Object(O.last)(T),L=e[D];if(!L.length||N===Object(O.last)(L))return e;var R=L.indexOf(A);return l()({},e,b()({},D,B(L,R,R+1,T.length)));case"REPLACE_BLOCKS":var U=t.blocks,M=t.uids;if(!U)return e;var F=I(U);return Object(O.flow)([function(e){return Object(O.omit)(e,M)},function(e){return l()({},e,Object(O.omit)(F,""))},function(e){return Object(O.mapValues)(e,function(e){return Object(O.reduce)(e,function(e,t){return t===M[0]?[].concat(f()(e),f()(F[""])):(-1===M.indexOf(t)&&e.push(t),e)},[])})}])(e);case"REMOVE_BLOCKS":return Object(O.flow)([function(e){return Object(O.omit)(e,t.uids)},function(e){return Object(O.mapValues)(e,function(e){return O.without.apply(void 0,[e].concat(f()(t.uids)))})}])(e)}return e}});var U=Object(i.combineReducers)({data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"RECEIVE_SHARED_BLOCKS":return Object(O.reduce)(t.results,function(t,n){var r=n.sharedBlock,o=r.id,i=r.title,s={uid:n.parsedBlock.uid,title:i};return Object(O.isEqual)(t[o],s)||(t===e&&(t=l()({},t)),t[o]=s),t},e);case"UPDATE_SHARED_BLOCK_TITLE":var n=t.id,r=t.title;return e[n]&&e[n].title!==r?l()({},e,b()({},n,l()({},e[n],{title:r}))):e;case"SAVE_SHARED_BLOCK_SUCCESS":var o=t.id,i=t.updatedId;if(o===i)return e;var s=e[o];return l()({},Object(O.omit)(e,o),b()({},i,s));case"REMOVE_SHARED_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[1];switch(t.type){case"FETCH_SHARED_BLOCKS":var n=t.id;return n?l()({},e,b()({},n,!0)):e;case"FETCH_SHARED_BLOCKS_SUCCESS":case"FETCH_SHARED_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[1];switch(t.type){case"SAVE_SHARED_BLOCK":return l()({},e,b()({},t.id,!0));case"SAVE_SHARED_BLOCK_SUCCESS":case"SAVE_SHARED_BLOCK_FAILURE":var n=t.id;return Object(O.omit)(e,n)}return e}});var M=_()(Object(i.combineReducers)({editor:R,currentPost:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":var n=void 0;if(t.post)n=t.post;else{if(!t.edits)return e;n=l()({},e,t.edits)}return Object(O.mapValues)(n,x)}return e},isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch(arguments[1].type){case"START_TYPING":return!0;case"STOP_TYPING":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[1];switch(t.type){case"CLEAR_SELECTED_BLOCK":return null!==e.start||null!==e.end||e.isMultiSelecting?l()({},e,{start:null,end:null,isMultiSelecting:!1,initialPosition:null}):e;case"START_MULTI_SELECT":return e.isMultiSelecting?e:l()({},e,{isMultiSelecting:!0,initialPosition:null});case"STOP_MULTI_SELECT":return e.isMultiSelecting?l()({},e,{isMultiSelecting:!1,initialPosition:null}):e;case"MULTI_SELECT":return l()({},e,{start:t.start,end:t.end,initialPosition:null});case"SELECT_BLOCK":return t.uid===e.start&&t.uid===e.end?e:l()({},e,{start:t.uid,end:t.uid,initialPosition:t.initialPosition});case"INSERT_BLOCKS":return l()({},e,{start:t.blocks[0].uid,end:t.blocks[0].uid,initialPosition:null,isMultiSelecting:!1});case"REMOVE_BLOCKS":return t.uids&&t.uids.length&&-1!==t.uids.indexOf(e.start)?l()({},e,{start:null,end:null,initialPosition:null,isMultiSelecting:!1}):e;case"REPLACE_BLOCKS":if(-1===t.uids.indexOf(e.start))return e;var n=Object(O.get)(t.blocks,[0,"uid"],null);return l()({},e,{start:n,end:n,initialPosition:null,isMultiSelecting:!1});case"TOGGLE_SELECTION":return l()({},e,{isEnabled:t.isSelectionEnabled})}return e},provisionalBlockUID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"INSERT_BLOCKS":if(t.isProvisional)return Object(O.first)(t.blocks).uid;break;case"RESET_BLOCKS":return null;case"UPDATE_BLOCK_ATTRIBUTES":case"UPDATE_BLOCK":case"CONVERT_BLOCK_TO_SHARED":if(t.uid===e)return null;break;case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":var n=t.uids;if(Object(O.includes)(n,e))return null}return e},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if("TOGGLE_BLOCK_MODE"===t.type){var n=t.uid;return l()({},e,b()({},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[1];switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(O.omit)(e,t.uids);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.id;if(n&&!t.settings)return Object(O.omit)(e,n);var r=e[n];if(!Object(O.isEqual)(r,t.settings))return l()({},e,b()({},n,l()({},t.settings)))}return e},isInsertionPointVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch(arguments[1].type){case"SHOW_INSERTION_POINT":return!0;case"HIDE_INSERTION_POINT":return!1}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,t=arguments[1];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(w.isSharedBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),l()({},e,{insertUsage:l()({},e.insertUsage,b()({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})},e);case"REMOVE_SHARED_BLOCK":return l()({},e,{insertUsage:Object(O.omitBy)(e.insertUsage,function(e){return e.insert.ref===t.id})})}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"REQUEST_POST_UPDATE_START":return{requesting:!0,successful:!1,error:null,isAutosave:t.isAutosave};case"REQUEST_POST_UPDATE_SUCCESS":return{requesting:!1,successful:!0,error:null};case"REQUEST_POST_UPDATE_FAILURE":return{requesting:!1,successful:!1,error:t.error}}return e},notices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"CREATE_NOTICE":return[].concat(f()(Object(O.reject)(e,{id:t.notice.id})),[t.notice]);case"REMOVE_NOTICE":var n=t.noticeId,r=Object(O.findIndex)(e,{id:n});return-1===r?e:[].concat(f()(e.slice(0,r)),f()(e.slice(r+1)))}return e},sharedBlocks:U,template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments[1];switch(t.type){case"SET_TEMPLATE_VALIDITY":return l()({},e,{isValid:t.isValid})}return e},autosave:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"RESET_AUTOSAVE":var n=t.post,r=["title","excerpt","content"].map(function(e){return x(n[e])}),o=a()(r,3);return{title:o[0],excerpt:o[1],content:o[2],preview_link:n.preview_link};case"REQUEST_POST_UPDATE":if(e&&t.options.autosave)return Object(O.omit)(e,"preview_link")}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=arguments[1];switch(t.type){case"UPDATE_EDITOR_SETTINGS":return l()({},e,t.settings)}return e}})),F=n(202),H=n.n(F),V=n(283),K=n.n(V),W=n(169),z=n.n(W),q=n(1),G=n(174),Y=n(60),X=n.n(Y),$=n(170),J=n.n($);function Q(e,t){return{type:"SETUP_EDITOR",autosave:t,post:e}}function Z(e){return{type:"RESET_POST",post:e}}function ee(e){return{type:"RESET_AUTOSAVE",post:e}}function te(e){return{type:"UPDATE_POST",edits:e}}function ne(e,t,n){return{type:"SETUP_EDITOR_STATE",post:e,blocks:t,edits:n}}function re(e){return{type:"RESET_BLOCKS",blocks:e}}function oe(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function ie(e,t){return{type:"UPDATE_BLOCK_ATTRIBUTES",uid:e,attributes:t}}function se(e,t){return{type:"UPDATE_BLOCK",uid:e,updates:t}}function ae(e){return{type:"SELECT_BLOCK",initialPosition:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,uid:e}}function ce(){return{type:"START_MULTI_SELECT"}}function le(){return{type:"STOP_MULTI_SELECT"}}function ue(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function de(){return{type:"CLEAR_SELECTED_BLOCK"}}function pe(){return{type:"TOGGLE_SELECTION",isSelectionEnabled:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}function fe(e,t){return{type:"REPLACE_BLOCKS",uids:Object(O.castArray)(e),blocks:Object(O.castArray)(t),time:Date.now()}}function he(e,t){return fe(e,t)}function me(e){return function(t,n){return{uids:Object(O.castArray)(t),type:e,rootUID:n}}}var ve=me("MOVE_BLOCKS_DOWN"),be=me("MOVE_BLOCKS_UP");function ge(e,t,n,r,o){return{type:"MOVE_BLOCK_TO_POSITION",fromRootUID:t,toRootUID:n,uid:e,index:o,layout:r}}function ye(e,t,n){return ke([e],t,n)}function ke(e,t,n){return{type:"INSERT_BLOCKS",blocks:Object(O.castArray)(e),index:t,rootUID:n,time:Date.now()}}function _e(){return{type:"SHOW_INSERTION_POINT"}}function Oe(){return{type:"HIDE_INSERTION_POINT"}}function we(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Se(){return{type:"CHECK_TEMPLATE_VALIDITY"}}function Ee(){return{type:"SYNCHRONIZE_TEMPLATE"}}function je(e){return{type:"EDIT_POST",edits:e}}function Ce(){return{type:"REQUEST_POST_UPDATE",options:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}function Te(){return{type:"REFRESH_POST"}}function Pe(e,t){return{type:"TRASH_POST",postId:e,postType:t}}function Be(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function xe(){return Ce({autosave:!0})}function Ie(){return{type:"REDO"}}function De(){return{type:"UNDO"}}function Ae(){return{type:"CREATE_UNDO_LEVEL"}}function Ne(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{type:"REMOVE_BLOCKS",uids:Object(O.castArray)(e),selectPrevious:t}}function Le(e){return Ne([e],!(arguments.length>1&&void 0!==arguments[1])||arguments[1])}function Re(e){return{type:"TOGGLE_BLOCK_MODE",uid:e}}function Ue(){return{type:"START_TYPING"}}function Me(){return{type:"STOP_TYPING"}}function Fe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.id,o=void 0===r?J()():r,i=n.isDismissible;return{type:"CREATE_NOTICE",notice:{id:o,status:e,content:t,isDismissible:void 0===i||i,spokenMessage:n.spokenMessage}}}function He(e){return{type:"REMOVE_NOTICE",noticeId:e}}var Ve=Object(O.partial)(Fe,"success"),Ke=Object(O.partial)(Fe,"info"),We=Object(O.partial)(Fe,"error"),ze=Object(O.partial)(Fe,"warning");function qe(e){return{type:"FETCH_SHARED_BLOCKS",id:e}}function Ge(e){return{type:"RECEIVE_SHARED_BLOCKS",results:e}}function Ye(e){return{type:"SAVE_SHARED_BLOCK",id:e}}function Xe(e){return{type:"DELETE_SHARED_BLOCK",id:e}}function $e(e,t){return{type:"UPDATE_SHARED_BLOCK_TITLE",id:e,title:t}}function Je(e){return{type:"CONVERT_BLOCK_TO_STATIC",uid:e}}function Qe(e){return{type:"CONVERT_BLOCK_TO_SHARED",uid:e}}function Ze(e,t,n){var r=Object(w.createBlock)(Object(w.getDefaultBlockName)(),e);return l()({},ye(r,n,t),{isProvisional:!0})}function et(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",id:e,settings:t}}function tt(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}var nt=n(80),rt=n(154),ot=n(99),it=n.n(ot),st=9,at="post-update",ct=/%(?:postname|pagename)%/,lt=3,ut=2,dt=1,pt=0,ft=[];function ht(e){return e.editor.past.length>0}function mt(e){return e.editor.future.length>0}function vt(e){return"auto-draft"===yt(e).status}function bt(e){return e.editor.isDirty||Xn(e,bt)}function gt(e){return!bt(e)&&vt(e)}function yt(e){return e.currentPost}function kt(e){return e.currentPost.type}function _t(e){return yt(e).id||null}function Ot(e){return Object(O.get)(yt(e),["revisions","count"],0)}function wt(e){return Object(O.get)(yt(e),["revisions","last_id"],null)}function St(e){return e.editor.present.edits}function Et(e,t){var n=yt(e);if(n.hasOwnProperty(t))return n[t]}function jt(e,t){var n=St(e);switch(t){case"content":return Dn(e)}return n.hasOwnProperty(t)?n[t]:Et(e,t)}function Ct(e,t){if(!Rt(e))return null;var n=Lt(e);return n.hasOwnProperty(t)?n[t]:void 0}function Tt(e){var t=jt(e,"status"),n=jt(e,"password");return"private"===t?"private":n?"password":"public"}function Pt(e){return"pending"===yt(e).status}function Bt(e){var t=yt(e);return-1!==["publish","private"].indexOf(t.status)||"future"===t.status&&Object(rt.moment)(t.date).isBefore(Object(rt.moment)())}function xt(e){return"future"===yt(e).status&&!Bt(e)}function It(e){var t=yt(e);return bt(e)||-1===["publish","private","future"].indexOf(t.status)}function Dt(e){return!Tn(e)&&(!!jt(e,"title")||!!jt(e,"excerpt")||!At(e))}function At(e){return!qt(e)&&!jt(e,"content")}function Nt(e){if(!Dt(e))return!1;if(!Rt(e))return!0;var t=Lt(e);return["title","excerpt","content"].some(function(n){return t[n]!==jt(e,n)})}function Lt(e){return e.autosave}function Rt(e){return!!Lt(e)}function Ut(e){var t=Object(rt.moment)(jt(e,"date")),n=Object(rt.moment)().add(1,"minute");return t.isAfter(n)}function Mt(e){var t=jt(e,"title");return t&&t.trim()||(t=gt(e)?Object(q.__)("New post"):Object(q.__)("(Untitled)")),t}var Ft=Object(nt.a)(function(){return[]},function(e,t){return Object(O.map)(fn(e,t),function(t){return Vt(e,t)})});function Ht(e,t){var n=e.editor.present.blocksByUID[t];return n?n.name:null}var Vt=Object(nt.a)(function(e,t){var n=e.editor.present.blocksByUID[t];if(!n)return null;var r=n.attributes,o=Object(w.getBlockType)(n.name);return o&&(r=Object(O.reduce)(o.attributes,function(t,n,o){return"meta"===n.source&&(t===r&&(t=l()({},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)),l()({},n,{attributes:r,innerBlocks:Kt(e,t)})},function(e,t){return[e.editor.present.blocksByUID[t],Ft(e,t),e.editor.present.edits.meta,e.currentPost.meta]});var Kt=Object(nt.a)(function(e,t){return Object(O.map)(fn(e,t),function(t){return Vt(e,t)})},function(e){return[e.editor.present.blockOrder,e.editor.present.blocksByUID]}),Wt=Object(nt.a)(function(e,t){return t?Object(O.reduce)(e.editor.present.blocksByUID,function(e,n){return n.name===t?e+1:e},0):Object(O.size)(e.editor.present.blocksByUID)},function(e){return[e.editor.present.blocksByUID]}),zt=Object(nt.a)(function(e,t){return Object(O.map)(Object(O.castArray)(t),function(t){return Vt(e,t)})},function(e){return[e.editor.present.blocksByUID,e.editor.present.blockOrder,e.editor.present.edits.meta,e.currentPost.meta,e.editor.present.blocksByUID]});function qt(e,t){return fn(e,t).length}function Gt(e){return e.blockSelection.start}function Yt(e){return e.blockSelection.end}function Xt(e){var t=on(e).length;return t||(e.blockSelection.start?1:0)}function $t(e){var t=e.blockSelection,n=t.start,r=t.end;return!!n&&n===r}function Jt(e){var t=e.blockSelection,n=t.start;return n===t.end&&n?n:null}function Qt(e){var t=Jt(e);return t?Vt(e,t):null}function Zt(e,t){var n=e.editor.present.blockOrder;for(var r in n)if(Object(O.includes)(n[r],t))return r;return null}function en(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=Object(O.get)(Qt(e),["uid"])),void 0===t&&(t=n<0?an(e):cn(e)),!t)return null;var r=Zt(e,t);if(null===r)return null;var o=e.editor.present.blockOrder[r],i=o.indexOf(t)+1*n;return i<0?null:i===o.length?null:o[i]}function tn(e,t){return en(e,t,-1)}function nn(e,t){return en(e,t,1)}function rn(e){var t=e.blockSelection,n=t.start;return n===t.end&&n?e.blockSelection.initialPosition:null}var on=Object(nt.a)(function(e){var t=e.blockSelection,n=t.start,r=t.end;if(n===r)return[];var o=Zt(e,n);if(null===o)return[];var i=fn(e,o),s=i.indexOf(n),a=i.indexOf(r);return s>a?i.slice(a,s+1):i.slice(s,a+1)},function(e){return[e.editor.present.blockOrder,e.blockSelection.start,e.blockSelection.end]}),sn=Object(nt.a)(function(e){var t=on(e);return t.length?t.map(function(t){return Vt(e,t)}):ft},function(e){return[e.editor.present.blockOrder,e.blockSelection.start,e.blockSelection.end,e.editor.present.blocksByUID,e.editor.present.edits.meta,e.currentPost.meta]});function an(e){return Object(O.first)(on(e))||null}function cn(e){return Object(O.last)(on(e))||null}function ln(e,t){return an(e)===t}function un(e,t){return-1!==on(e).indexOf(t)}function dn(e){var t=e.blockSelection,n=t.start;return n===t.end?null:n||null}function pn(e){var t=e.blockSelection,n=t.start,r=t.end;return n===r?null:r||null}function fn(e,t){return e.editor.present.blockOrder[t||""]||ft}function hn(e,t,n){return fn(e,n).indexOf(t)}function mn(e,t){var n=e.blockSelection,r=n.start;return r===n.end&&r===t}function vn(e,t){return Object(O.some)(fn(e,t),function(t){return mn(e,t)})}function bn(e,t){if(!t)return!1;var n=on(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function gn(e){var t=e.blockSelection;return t.start!==t.end}function yn(e){return e.blockSelection.isMultiSelecting}function kn(e){return e.blockSelection.isEnabled}function _n(e,t){return e.blocksMode[t]||"visual"}function On(e){return e.isTyping}function wn(e){var t=void 0,n=void 0,r=void 0,o=e.blockSelection.end;return o?(t=Zt(e,o)||void 0,n=Object(O.get)(Vt(e,o),["attributes","layout"]),r=hn(e,o,t)+1):r=fn(e).length,{rootUID:t,layout:n,index:r}}function Sn(e){return e.isInsertionPointVisible}function En(e){return e.template.isValid}function jn(e){return e.settings.template}function Cn(e){return e.settings.templateLock}function Tn(e){return e.saving.requesting}function Pn(e){return e.saving.successful}function Bn(e){return!!e.saving.error}function xn(e){return Tn(e)&&e.saving.isAutosave}function In(e){var t=fn(e),n=void 0;switch(1===t.length&&(n=Vt(e,t[0]).name),2===t.length&&"core/paragraph"===Vt(e,t[1]).name&&(n=Vt(e,t[0]).name),n){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":case"core-embed/youtube":case"core-embed/vimeo":return"video";case"core/audio":case"core-embed/spotify":case"core-embed/soundcloud":return"audio"}return null}var Dn=Object(nt.a)(function(e){var t=St(e);return"content"in t?t.content:Object(w.serialize)(Kt(e))},function(e){return[e.editor.present.edits.content,e.editor.present.blocksByUID,e.editor.present.blockOrder]});function An(e){return e.notices}var Nn=Object(nt.a)(function(e,t){var n=arguments.length>2&&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(w.getBlockType)(t);if(!o)return!1;var i=Qn(e),s=i.allowedBlockTypes,a=i.templateLock;if(!r(s,t,!0))return!1;if(!!a)return!1;var c=$n(e,n),l=r(Object(O.get)(c,["supportedBlocks"]),t),u=r(o.parent,Ht(e,n));return null!==l&&null!==u?l||u:null!==l?l:null===u||u},function(e,t,n){return[e.blockListSettings[n],e.editor.present.blocksByUID[n],e.settings.allowedBlockTypes,e.settings.templateLock]});function Ln(e,t){return e.preferences.insertUsage[t]||null}var Rn=Object(nt.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(Object(O.isBoolean)(t)||Object(O.isArray)(t))&&(it()("allowedBlockTypes",{version:"3.2",plugin:"Gutenberg"}),t=null);var n=function(e,t,n){return n?lt:t>0?ut:"common"===e?dt:pt},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=Object(w.getBlockTypes)().filter(function(n){return!!Object(w.hasBlockSupport)(n,"inserter",!0)&&Nn(e,n.name,t)}).map(function(t){var o=t.name,i=!1;Object(w.hasBlockSupport)(t.name,"multiple",!0)||(i=Object(O.some)(Kt(e),{name:t.name}));var s=Object(O.isArray)(t.parent),a=Ln(e,o)||{},c=a.time,l=a.count,u=void 0===l?0:l;return{id:o,name:t.name,initialAttributes:{},title:t.title,icon:t.icon,category:t.category,keywords:t.keywords,isDisabled:i,utility:n(t.category,u,s),frecency:r(c,u),hasChildBlocks:Object(w.hasChildBlocks)(t.name)}}),i=Vn(e).filter(function(n){if(!Nn(e,"core/block",t))return!1;var r=Vt(e,n.uid);if(!r)return!1;var o=Object(w.getBlockType)(r.name);return!!o&&!!Nn(e,o.name,t)}).map(function(t){var o="core/block/"+t.id,i=Vt(e,t.uid),s=Object(w.getBlockType)(i.name),a=Ln(e,o)||{},c=a.time,l=a.count,u=void 0===l?0:l,d=n("shared",u,!1),p=r(c,u);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:s.icon,category:"shared",keywords:[],isDisabled:!1,utility:d,frecency:p}});return Object(O.orderBy)([].concat(f()(o),f()(i)),["utility","frecency"],["desc","desc"])},function(e,t,n){return[e.blockListSettings[n],e.editor.present.blockOrder,e.editor.present.blocksByUID,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,e.sharedBlocks.data,Object(w.getBlockTypes)()]});function Un(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st;it()("getFrecentInserterItems",{version:"3.2",alternative:"getInserterItems",plugin:"Gutenberg"});var r=Rn(e,t).filter(function(e){return e.utility>0});return Object(O.orderBy)(r,["utility","frecency"],["desc","desc"]).slice(0,n)}var Mn=Object(nt.a)(function(e,t){var n=e.sharedBlocks.data[t];if(!n)return null;var r=isNaN(parseInt(t));return l()({},n,{id:r?t:+t,isTemporary:r})},function(e,t){return[e.sharedBlocks.data[t]]});function Fn(e,t){return e.sharedBlocks.isSaving[t]||!1}function Hn(e,t){return!!e.sharedBlocks.isFetching[t]}function Vn(e){return Object(O.map)(e.sharedBlocks.data,function(t,n){return Mn(e,n)})}function Kn(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 Wn(e){if(!Tn(e))return!1;if(!Bt(e))return!1;var t=Kn(e,at);return!!t&&!Bt(t)}function zn(e){return e.provisionalBlockUID}function qn(e){var t=jt(e,"permalink_template");return ct.test(t)}function Gn(e){var t=Yn(e),n=t.prefix,r=t.postName,o=t.suffix;return qn(e)?n+r+o:n}function Yn(e){var t=jt(e,"permalink_template"),n=jt(e,"slug")||jt(e,"generated_slug"),r=t.split(ct),o=a()(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function Xn(e,t){var n=e.optimist;return!!n&&n.some(function(e){var n=e.beforeState;return n&&t(n)})}function $n(e,t){return e.blockListSettings[t]}function Jn(e,t,n){return it()("getSupportedBlocks",{version:"3.2",alternative:"canInsertBlockType",plugin:"Gutenberg"}),Object(w.getBlockTypes)().filter(function(n){return Nn(e,n.name,t)}).map(function(e){return e.name})}function Qn(e){return e.settings}function Zn(e,t){var n=t.getState(),r=zn(n);if(r&&!mn(n,r))return Le(r,!1)}var er={REQUEST_POST_UPDATE:function(e,t){var n=t.dispatch,r=(0,t.getState)(),o=yt(r),i=!!e.options.autosave;if((i?Nt:Dt)(r)){var s=St(r);i&&(s=Object(O.pick)(s,["title","content","excerpt"])),vt(r)&&(s=l()({status:"draft"},s));var a=l()({},s,{content:Dn(r),id:o.id}),c=wp.api.getPostTypeRoute(kt(r));n({type:"REQUEST_POST_UPDATE_START",optimist:{type:k.BEGIN,id:at},isAutosave:i}),n(l()({},te(a),{optimist:{id:at}}));var u=void 0;i?(a=l()({},Object(O.pick)(o,["title","content","excerpt"]),Lt(r),a,{parent:o.id}),u=X()({path:"/wp/v2/"+c+"/"+o.id+"/autosaves",method:"POST",data:a})):(n(He("SAVE_POST_NOTICE_ID")),n(He("AUTOSAVE_POST_NOTICE_ID")),u=X()({path:"/wp/v2/"+c+"/"+o.id,method:"PUT",data:a})),u.then(function(e){n((i?ee:Z)(e));var t=e.id!==o.id;n({type:"REQUEST_POST_UPDATE_SUCCESS",previousPost:o,post:e,optimist:{type:t?k.REVERT:k.COMMIT,id:at},isAutosave:i})},function(e){e=Object(O.get)(e,["responseJSON"],{code:"unknown_error",message:Object(q.__)("An unknown error occurred.")}),n({type:"REQUEST_POST_UPDATE_FAILURE",optimist:{type:k.REVERT,id:at},post:o,edits:s,error:e})})}},REQUEST_POST_UPDATE_SUCCESS:function(e,t){var n=e.previousPost,r=e.post,o=e.isAutosave,i=t.dispatch,s=t.getState;if(z()(St(s())).length&&i({type:"DIRTY_ARTIFICIALLY"}),!o){var a=["publish","private","future"],c=Object(O.includes)(a,n.status),l=Object(O.includes)(a,r.status),u=void 0,d=!0;c||l?c&&!l?(u=Object(q.__)("Post reverted to draft."),d=!1):u=!c&&l?{publish:Object(q.__)("Post published!"),private:Object(q.__)("Post published privately!"),future:Object(q.__)("Post scheduled!")}[r.status]:Object(q.__)("Post updated!"):u=null,u&&i(Ve(wp.element.createElement("p",null,u," ",d&&wp.element.createElement("a",{href:r.link},Object(q.__)("View post"))),{id:"SAVE_POST_NOTICE_ID",spokenMessage:u}))}},REQUEST_POST_UPDATE_FAILURE:function(e,t){var n=e.post,r=e.edits,o=e.error;if(!o||"rest_autosave_no_changes"!==o.code){var i=t.dispatch,s=["publish","private","future"],a=-1!==s.indexOf(n.status),c={publish:Object(q.__)("Publishing failed"),private:Object(q.__)("Publishing failed"),future:Object(q.__)("Scheduling failed")},l=a||-1===s.indexOf(r.status)?Object(q.__)("Updating failed"):c[r.status];i(We(l,{id:"SAVE_POST_NOTICE_ID"}))}},TRASH_POST:function(e,t){var n=t.dispatch,r=t.getState,o=e.postId,i=wp.api.getPostTypeRoute(kt(r()));n(He("TRASH_POST_NOTICE_ID")),X()({path:"/wp/v2/"+i+"/"+o,method:"DELETE"}).then(function(){var e=yt(r());n(Z(l()({},e,{status:"trash"})))},function(t){n(l()({},e,{type:"TRASH_POST_FAILURE",error:Object(O.get)(t,["responseJSON"],{code:"unknown_error",message:Object(q.__)("An unknown error occurred.")})}))})},TRASH_POST_FAILURE:function(e,t){var n=e.error.message&&"unknown_error"!==e.error.code?e.error.message:Object(q.__)("Trashing failed");t.dispatch(We(n,{id:"TRASH_POST_NOTICE_ID"}))},REFRESH_POST:function(e,t){var n=t.dispatch,r=(0,t.getState)(),o=yt(r),i=wp.api.getPostTypeRoute(kt(r));X()({path:"/wp/v2/"+i+"/"+o.id,data:{context:"edit"}}).then(function(e){n(Z(e))})},MERGE_BLOCKS:function(e,t){var n=t.dispatch,r=t.getState(),o=a()(e.blocks,2),i=o[0],s=o[1],c=Vt(r,i),u=Vt(r,s),d=Object(w.getBlockType)(c.name);if(d.merge){var p=c.name===u.name?[u]:Object(w.switchToBlockType)(u,c.name);if(p&&p.length){var h=d.merge(c.attributes,p[0].attributes);n(ae(c.uid,-1)),n(fe([c.uid,u.uid],[l()({},c,{attributes:l()({},c.attributes,h)})].concat(f()(p.slice(1)))))}}else n(ae(c.uid))},SETUP_EDITOR:function(e,t){var n=t.getState,r=e.post,o=e.autosave,i=n(),s=jn(i),a=Cn(i),c=void 0,l=!0;r.content.raw?(c=Object(w.parse)(r.content.raw),l=!s||"all"!==a||Object(w.doBlocksMatchTemplate)(c,s)):c=s?Object(w.synchronizeBlocksWithTemplate)([],s):Object(w.getDefaultBlockForPostFormat)(r.format)?[Object(w.createBlock)(Object(w.getDefaultBlockForPostFormat)(r.format))]:[];var u={};"auto-draft"===r.status&&(u.title=r.title.raw);var d=void 0;if(o){var p=Object(q.__)("There is an autosave of this post that is more recent than the version below.");d=ze(wp.element.createElement("p",null,p," ",wp.element.createElement("a",{href:o.editLink},Object(q.__)("View the autosave"))),{id:"AUTOSAVE_POST_NOTICE_ID",spokenMessage:p})}return[we(l),ne(r,c,u)].concat(f()(d?[d]:[]))},SYNCHRONIZE_TEMPLATE:function(e,t){var n=(0,t.getState)(),r=Kt(n),o=jn(n);return[re(Object(w.synchronizeBlocksWithTemplate)(r,o)),we(!0)]},CHECK_TEMPLATE_VALIDITY:function(e,t){var n=(0,t.getState)(),r=Kt(n),o=jn(n),i=Cn(n);return we(!o||"all"!==i||Object(w.doBlocksMatchTemplate)(r,o))},FETCH_SHARED_BLOCKS:function(e,t){var n=wp.api.getPostTypeRoute("wp_block");if(n){var r=e.id,o=t.dispatch;(r?X()({path:"/wp/v2/"+n+"/"+r}):X()({path:"/wp/v2/"+n+"?per_page=-1"})).then(function(e){o(Ge(Object(O.map)(Object(O.castArray)(e),function(e){return{sharedBlock:e,parsedBlock:Object(w.parse)(e.content)[0]}}))),o({type:"FETCH_SHARED_BLOCKS_SUCCESS",id:r})},function(e){o({type:"FETCH_SHARED_BLOCKS_FAILURE",id:r,error:e.responseJSON||{code:"unknown_error",message:Object(q.__)("An unknown error occurred.")}})})}},RECEIVE_SHARED_BLOCKS:function(e){return oe(Object(O.map)(e.results,"parsedBlock"))},SAVE_SHARED_BLOCK:function(e,t){var n=wp.api.getPostTypeRoute("wp_block");if(n){var r=e.id,o=t.dispatch,i=t.getState(),s=Mn(i,r),a=s.uid,c=s.title,l=s.isTemporary,u=Vt(i,a),d=u.name,p=u.attributes,f=u.innerBlocks,h=Object(w.serialize)(Object(w.createBlock)(d,p,f)),m=l?{title:c,content:h}:{id:r,title:c,content:h},v=l?"/wp/v2/"+n:"/wp/v2/"+n+"/"+r,b=l?"POST":"PUT";X()({path:v,data:m,method:b}).then(function(e){o({type:"SAVE_SHARED_BLOCK_SUCCESS",updatedId:e.id,id:r});var t=l?Object(q.__)("Block created."):Object(q.__)("Block updated.");o(Ve(t,{id:"SHARED_BLOCK_NOTICE_ID"}))},function(e){o({type:"SAVE_SHARED_BLOCK_FAILURE",id:r});var t=Object(q.__)("An unknown error occurred.");o(We(Object(O.get)(e.responseJSON,["message"],t),{id:"SHARED_BLOCK_NOTICE_ID",spokenMessage:t}))})}},DELETE_SHARED_BLOCK:function(e,t){var n=wp.api.getPostTypeRoute("wp_block");if(n){var r=e.id,o=t.getState,i=t.dispatch,s=Mn(o(),r);if(s&&!s.isTemporary){var a=Kt(o()).filter(function(e){return Object(w.isSharedBlock)(e)&&e.attributes.ref===r}).map(function(e){return e.uid}),c=Object(O.uniqueId)();i({type:"REMOVE_SHARED_BLOCK",id:r,optimist:{type:k.BEGIN,id:c}}),i(Ne([].concat(f()(a),[s.uid]))),X()({path:"/wp/v2/"+n+"/"+r,method:"DELETE"}).then(function(){i({type:"DELETE_SHARED_BLOCK_SUCCESS",id:r,optimist:{type:k.COMMIT,id:c}});var e=Object(q.__)("Block deleted.");i(Ve(e,{id:"SHARED_BLOCK_NOTICE_ID"}))},function(e){i({type:"DELETE_SHARED_BLOCK_FAILURE",id:r,optimist:{type:k.REVERT,id:c}});var t=Object(q.__)("An unknown error occurred.");i(We(Object(O.get)(e.responseJSON,["message"],t),{id:"SHARED_BLOCK_NOTICE_ID",spokenMessage:t}))})}}},CONVERT_BLOCK_TO_STATIC:function(e,t){var n=t.getState(),r=Vt(n,e.uid),o=Mn(n,r.attributes.ref),i=Vt(n,o.uid),s=Object(w.createBlock)(i.name,i.attributes);t.dispatch(he(r.uid,s))},CONVERT_BLOCK_TO_SHARED:function(e,t){var n=t.getState,r=t.dispatch,o=Vt(n(),e.uid),i={id:Object(O.uniqueId)("shared"),uid:o.uid,title:Object(q.__)("Untitled shared block")};r(Ge([{sharedBlock:i,parsedBlock:o}])),r(Ye(i.id)),r(he(o.uid,Object(w.createBlock)("core/block",{ref:i.id,layout:o.attributes.layout}))),r(oe([o]))},CREATE_NOTICE:function(e){var t=e.notice,n=t.content,r=t.spokenMessage||n;Object(G.speak)(r,"assertive")},EDIT_POST:function(e,t){var n=t.getState,r=Object(O.get)(e,["edits","format"]);if(r){var o=Object(w.getDefaultBlockForPostFormat)(r);return o&&0===qt(n())?ye(Object(w.createBlock)(o)):void 0}},CLEAR_SELECTED_BLOCK:Zn,SELECT_BLOCK:Zn,MULTI_SELECT:Zn,REMOVE_BLOCKS:function(e,t){var n=t.getState,r=t.dispatch;if(e.selectPrevious){var o=e.uids[0],i=n(),s=Qt(i),a=l()({},i,{editor:{present:Object(O.last)(i.editor.past)}}),c=Zt(a,o),u=tn(a,o)||c;u!==s&&r(ae(u))}}};var tr=function(e){var t,n=[H()(er),K.a],r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}};return t=n.map(function(e){return e(o)}),r=O.flowRight.apply(void 0,f()(t))(e.dispatch),e.dispatch=r,e},nr="GUTENBERG_PREFERENCES_"+window.userSettings.uid,rr=tr(Object(i.registerReducer)("core/editor",Object(i.withRehydration)(M,"preferences",nr)));Object(i.loadAndPersist)(rr,M,"preferences",nr),Object(i.registerSelectors)("core/editor",o),Object(i.registerActions)("core/editor",r);var or=n(16),ir=n.n(or),sr=n(2),ar=n(35),cr=n(11),lr=n.n(cr),ur=n(8),dr=n.n(ur),pr=n(7),fr=n.n(pr),hr=n(10),mr=n.n(hr),vr=n(9),br=n.n(vr),gr=n(3),yr=Object(sr.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:O.noop,uid:null}),kr=yr.Consumer,_r=yr.Provider,Or=function(e){return Object(sr.createHigherOrderComponent)(function(t){return function(n){return wp.element.createElement(kr,null,function(r){return wp.element.createElement(t,l()({},n,e(r,n)))})}},"withBlockEditContext")},wr=Object(sr.createHigherOrderComponent)(function(e){return function(t){return wp.element.createElement(kr,null,function(n){return n.isSelected&&wp.element.createElement(e,t)})}},"ifBlockEditSelected"),Sr=[];var Er=Object(sr.compose)([Or(function(e){return{blockName:e.name}}),function(e){return function(t){function n(){dr()(this,n);var e=mr()(this,(n.__proto__||lr()(n)).call(this));return e.state={completers:Sr},e.saveParentRef=e.saveParentRef.bind(e),e.onFocus=e.onFocus.bind(e),e}return br()(n,t),fr()(n,[{key:"componentDidUpdate",value:function(){this.parentNode.contains(document.activeElement)&&this.hasStaleCompleters()&&this.updateCompletersState()}},{key:"onFocus",value:function(){this.hasStaleCompleters()&&this.updateCompletersState()}},{key:"hasStaleCompleters",value:function(){return!("lastFilteredCompletersProp"in this.state)||this.state.lastFilteredCompletersProp!==this.props.completers}},{key:"updateCompletersState",value:function(){var e=this.props,t=e.blockName,n=e.completers,r=n;Object(ar.hasFilter)("editor.Autocomplete.completers")&&(n=Object(ar.applyFilters)("editor.Autocomplete.completers",n&&n.map(O.clone),t)),this.setState({lastFilteredCompletersProp:r,completers:n||Sr})}},{key:"saveParentRef",value:function(e){this.parentNode=e}},{key:"render",value:function(){var t=this.state.completers,n=l()({},this.props,{completers:t});return wp.element.createElement("div",{onFocus:this.onFocus,ref:this.saveParentRef},wp.element.createElement(e,l()({onFocus:this.onFocus},n)))}}]),n}(sr.Component)}])(gr.Autocomplete);n(620),n(619);function jr(e){var t=e.icon,n=e.showColors,r=void 0!==n&&n,o=e.className,i=function(e){return"string"==typeof e?wp.element.createElement(gr.Dashicon,{icon:e}):"function"==typeof e?e.prototype instanceof sr.Component?Object(sr.createElement)(e):e():e||null}(t&&t.src?t.src:t);return r?wp.element.createElement("div",{style:{backgroundColor:t&&t.background,color:t&&t.foreground},className:ir()("editor-block-icon__colors",o)},i):i}function Cr(){return Object(i.select)("core/editor").getBlockInsertionPoint().rootUID}function Tr(e){return Object(i.select)("core/editor").getInserterItems(e)}function Pr(){var e=Object(i.select)("core/editor").getSelectedBlock();return e?e.name:null}var Br=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getBlockInsertionParentUID,n=void 0===t?Cr:t,r=e.getInserterItems,o=void 0===r?Tr:r,i=e.getSelectedBlockName,s=void 0===i?Pr:i;return{name:"blocks",className:"editor-autocompleters__block",triggerPrefix:"/",options:function(){var e=s();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[].concat(f()(r),[t])},getOptionLabel:function(e){var t=e.icon,n=e.title;return[wp.element.createElement(jr,{key:"icon",icon:t&&t.src}),n]},allowContext:function(e,t){return!(/\S/.test(e.toString())||/\S/.test(t.toString()))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes;return{action:"replace",value:Object(w.createBlock)(t,n)}},isOptionDisabled:function(e){return e.isDisabled}}}(),xr={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",options:function(e){var t="";return e&&(t="?search="+encodeURIComponent(e)),X()({path:"/wp/v2/users"+t})},isDebounced:!0,getOptionKeywords:function(e){return[e.slug,e.name]},getOptionLabel:function(e){return[wp.element.createElement("img",{key:"avatar",className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}),wp.element.createElement("span",{key:"name",className:"editor-autocompleters__user-name"},e.name),wp.element.createElement("span",{key:"slug",className:"editor-autocompleters__user-slug"},e.slug)]},allowNode:function(){return!0},getOptionCompletion:function(e){return"@"+e.slug}},Ir=[{icon:"editor-alignleft",title:Object(q.__)("Align left"),align:"left"},{icon:"editor-aligncenter",title:Object(q.__)("Align center"),align:"center"},{icon:"editor-alignright",title:Object(q.__)("Align right"),align:"right"}];function Dr(e){var t=e.value,n=e.onChange;return wp.element.createElement(gr.Toolbar,{controls:Ir.map(function(e){var r=e.align,o=t===r;return l()({},e,{isActive:o,onClick:function(e){return function(){return n(t===e?void 0:e)}}(r)})})})}var Ar={left:{icon:"align-left",title:Object(q.__)("Align left")},center:{icon:"align-center",title:Object(q.__)("Align center")},right:{icon:"align-right",title:Object(q.__)("Align right")},wide:{icon:"align-wide",title:Object(q.__)("Wide width")},full:{icon:"align-full-width",title:Object(q.__)("Full width")}},Nr=["left","center","right","wide","full"],Lr=["wide","full"];var Rr=Object(i.withSelect)(function(e){return{wideControlsEnabled:e("core/editor").getEditorSettings().alignWide}})(function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?Nr:r,i=e.wideControlsEnabled,s=void 0!==i&&i?o:o.filter(function(e){return-1===Lr.indexOf(e)});return wp.element.createElement(gr.Toolbar,{controls:s.map(function(e){return l()({},Ar[e],{isActive:t===e,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r})})}),Ur=Object(gr.createSlotFill)("BlockControls"),Mr=Ur.Fill,Fr=Ur.Slot,Hr=wr(function(e){var t=e.controls,n=e.children;return wp.element.createElement(Mr,null,wp.element.createElement(gr.Toolbar,{controls:t}),n)});Hr.Slot=Fr;var Vr=Hr,Kr=Object(gr.withFilters)("editor.BlockEdit")(function(e){var t=e.attributes,n=void 0===t?{}:t,r=e.name,o=Object(w.getBlockType)(r);if(!o)return null;var i=Object(w.hasBlockSupport)(o,"className",!0)?Object(w.getBlockDefaultClassName)(r):null,s=ir()(i,n.className),a=o.edit||o.save;return wp.element.createElement(a,l()({},e,{className:s}))}),Wr=function(e){function t(e){dr()(this,t);var n=mr()(this,(t.__proto__||lr()(t)).call(this,e));return n.setFocusedElement=n.setFocusedElement.bind(n),n.state={focusedElement:null,setFocusedElement:n.setFocusedElement},n}return br()(t,e),fr()(t,[{key:"getChildContext",value:function(){var e=this.props.user;return{canUserUseUnfilteredHTML:Object(O.get)(e.data,["capabilities","unfiltered_html"],!1)}}},{key:"setFocusedElement",value:function(e){this.setState(function(t){return t.focusedElement===e?null:{focusedElement:e}})}},{key:"render",value:function(){return wp.element.createElement(_r,{value:this.state},wp.element.createElement(Kr,this.props))}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.id;return{name:e.name,isSelected:e.isSelected,uid:t}}}]),t}(sr.Component);Wr.childContextTypes={canUserUseUnfilteredHTML:O.noop};var zr=Object(sr.compose)([Object(i.withSelect)(function(e){return{postType:e("core/editor").getEditedPostAttribute("type")}}),Object(gr.withAPIData)(function(e){return{user:"/wp/v2/users/me?post_type="+e.postType+"&context=edit"}})])(Wr),qr=Object(gr.createSlotFill)("BlockFormatControls"),Gr=qr.Fill,Yr=qr.Slot,Xr=wr(Gr);Xr.Slot=Yr;var $r=Xr,Jr=Object(sr.createHigherOrderComponent)(Object(i.withSelect)(function(e){var t=e("core/editor").getEditorSettings(),n=t.colors,r=t.disableCustomColors;return{colors:n,disableCustomColors:r,hasColorsToChoose:!Object(O.isEmpty)(n)||!r}}),"withColorContext"),Qr=Jr(gr.ColorPalette),Zr=function(e,t,n){if(t){var r=Object(O.find)(e,{name:t});return r&&r.color}if(n)return n},eo=function(e,t){var n=Object(O.find)(e,{color:t});return n?n.name:void 0};function to(e,t){if(e&&t)return"has-"+Object(O.kebabCase)(t)+"-"+e}var no=n(25),ro=n(130),oo=n.n(ro),io=[],so=function(e){return Object(sr.createHigherOrderComponent)(Object(sr.compose)([Object(i.withSelect)(function(e){var t=e("core/editor").getEditorSettings();return{colors:Object(O.get)(t,["colors"],io)}}),function(t){return function(n){function r(){dr()(this,r);var e=mr()(this,(r.__proto__||lr()(r)).apply(this,arguments));return e.memoizedGetColor=oo()(e.memoizedGetColor,{maxSize:1}),e.memoizedSetColor=oo()(e.memoizedSetColor,{maxSize:1}),e}return br()(r,n),fr()(r,[{key:"memoizedGetColor",value:function(e){return oo()(function(t,n,r){return{name:t,class:to(r,t),value:Zr(e,t,n)}})}},{key:"memoizedSetColor",value:function(e,t){return oo()(function(n,r){return function(e,t,n,r){return function(o){var i,s=Object(O.find)(e,{color:o});r((i={},b()(i,t,s&&s.name?s.name:void 0),b()(i,n,s&&s.name?void 0:o),i))}}(t,n,r,e)})}},{key:"render",value:function(){return wp.element.createElement(t,l()({},this.props,{colors:void 0},e(this.memoizedGetColor(this.props.colors),this.memoizedSetColor(this.props.setAttributes,this.props.colors),this.props)))}}]),r}(sr.Component)}]),"withColors")},ao=[],co=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(Object(O.isFunction)(t[0]))return Object(no.deprecated)("Using withColors( mapGetSetColorToProps ) ",{version:"3.3",alternative:"withColors( colorAttributeName, { secondColorAttributeName: 'color-context' }, ... )"}),so(t[0]);var r=Object(O.reduce)(t,function(e,t){return l()({},e,Object(O.isString)(t)?b()({},t,Object(O.kebabCase)(t)):t)},{});return Object(sr.createHigherOrderComponent)(Object(sr.compose)([Object(i.withSelect)(function(e){var t=e("core/editor").getEditorSettings();return{colors:Object(O.get)(t,["colors"],ao)}}),function(e){return function(t){function n(e){dr()(this,n);var t=mr()(this,(n.__proto__||lr()(n)).call(this,e));return t.setters=t.createSetters(),t.state={},t}return br()(n,t),fr()(n,[{key:"createSetters",value:function(){var e=this;return Object(O.reduce)(r,function(t,n,r){var o=Object(O.upperFirst)(r),i="custom"+o;return t["set"+o]=e.createSetColor(r,i),t},{})}},{key:"createSetColor",value:function(e,t){var n=this;return function(r){var o,i=Object(O.find)(n.props.colors,{color:r});n.props.setAttributes((o={},b()(o,e,i&&i.name?i.name:void 0),b()(o,t,i&&i.name?void 0:r),o))}}},{key:"render",value:function(){return wp.element.createElement(e,l()({},this.props,{colors:void 0},this.state,this.setters))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.attributes,o=e.colors;return Object(O.reduce)(r,function(e,r,i){var s=n[i],a=Zr(o,s,n["custom"+Object(O.upperFirst)(i)]),c=t[i],l=Object(O.get)(c,["value"]);return e[i]=l===a&&c?c:{name:s,class:to(r,s),value:a},e},{})}}]),n}(sr.Component)}]),"withColors")},lo=n(178),uo=n.n(lo);n(618);var po=function(e){var t=e.backgroundColor,n=e.textColor,r=e.isLargeText,o=e.fallbackBackgroundColor,i=e.fallbackTextColor;if(!t&&!o||!n&&!i)return null;var s=uo()(t||o),a=uo()(n||i);if(1!==s.getAlpha()||1!==a.getAlpha()||uo.a.isReadable(s,a,{level:"AA",size:r?"large":"small"}))return null;var c=s.getBrightness()<a.getBrightness()?Object(q.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(q.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return wp.element.createElement("div",{className:"editor-contrast-checker"},wp.element.createElement(gr.Notice,{status:"warning",isDismissible:!1},c))},fo=(n(617),Object(gr.withFilters)("editor.MediaUpload")(function(){return null}));function ho(e){var t=e.allowedType,n=e.filesList,r=e.maxUploadFileSize,o=e.onError,s=void 0===o?O.noop:o,a=e.onFileChange,c=Object(i.select)("core/editor").getCurrentPostId();Object(no.mediaUpload)({allowedType:t,filesList:n,onFileChange:a,additionalData:{post:c},maxUploadFileSize:r,onError:function(e){var t=e.message;return s(t)}})}var mo=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.state={src:""},e.onChangeSrc=e.onChangeSrc.bind(e),e.onSubmitSrc=e.onSubmitSrc.bind(e),e.onUpload=e.onUpload.bind(e),e.onFilesUpload=e.onFilesUpload.bind(e),e}return br()(t,e),fr()(t,[{key:"componentDidMount",value:function(){this.setState({src:Object(O.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(O.get)(e.value,["src"],"")!==Object(O.get)(this.props.value,["src"],"")&&this.setState({src:Object(O.get)(this.props.value,["src"],"")})}},{key:"onChangeSrc",value:function(e){this.setState({src:e.target.value})}},{key:"onSubmitSrc",value:function(e){e.preventDefault(),this.state.src&&this.props.onSelectUrl(this.state.src)}},{key:"onUpload",value:function(e){this.onFilesUpload(e.target.files)}},{key:"onFilesUpload",value:function(e){var t=this.props,n=t.onSelect,r=t.type,o=t.multiple,i=t.onError;ho({allowedType:r,filesList:e,onFileChange:o?n:function(e){var t=a()(e,1)[0];return n(t)},onError:i})}},{key:"render",value:function(){var e=this.props,t=e.type,n=e.accept,r=e.icon,o=e.className,i=e.labels,s=e.onSelect,a=e.value,c=void 0===a?{}:a,l=e.onSelectUrl,u=e.onHTMLDrop,d=void 0===u?O.noop:u,p=e.multiple,f=void 0!==p&&p,h=e.notices;return wp.element.createElement(gr.Placeholder,{icon:r,label:i.title,instructions:Object(q.sprintf)(Object(q.__)("Drag %s, upload a new one or select a file from your library."),i.name),className:ir()("editor-media-placeholder",o),notices:h},wp.element.createElement(gr.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:d}),l&&wp.element.createElement("form",{onSubmit:this.onSubmitSrc},wp.element.createElement("input",{type:"url",className:"components-placeholder__input",placeholder:Object(q.__)("Enter URL here…"),onChange:this.onChangeSrc,value:this.state.src}),wp.element.createElement(gr.Button,{isLarge:!0,type:"submit"},Object(q.__)("Use URL"))),wp.element.createElement(gr.FormFileUpload,{isLarge:!0,className:"editor-media-placeholder__upload-button",onChange:this.onUpload,accept:n,multiple:f},Object(q.__)("Upload")),wp.element.createElement(fo,{gallery:f,multiple:f,onSelect:s,type:t,value:c.id,render:function(e){var t=e.open;return wp.element.createElement(gr.Button,{isLarge:!0,onClick:t},Object(q.__)("Media Library"))}}))}}]),t}(sr.Component),vo=function(e){function t(){return dr()(this,t),mr()(this,(t.__proto__||lr()(t)).apply(this,arguments))}return br()(t,e),fr()(t,[{key:"componentDidMount",value:function(){it()("wp.editor.ImagePlaceholder",{version:"3.2",alternative:"wp.editor.MediaPlaceholder",plugin:"Gutenberg"})}},{key:"render",value:function(){var e=this.props,t=e.label,n=e.onSelectImage,r=e.multiple,o=void 0!==r&&r,i=d()(e,["label","onSelectImage","multiple"]);return wp.element.createElement(mo,l()({labels:{title:t,name:o?Object(q.__)("images"):Object(q.__)("an image")},onSelect:n,accept:"image/*",type:"image",multiple:o},i))}}]),t}(sr.Component),bo=n(131),go=(n(616),n(615),n(145)),yo=n.n(go),ko=(n(180),n(167)),_o=n.n(ko),Oo=n(36);n(614);function wo(e,t,n,r,o,i){var s=n+1;return e>1?function(e,t,n,r,o){var i=t+1;if(o<0&&n)return Object(q.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(q.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(q.sprintf)(Object(q.__)("Move %(selectedCount)d blocks from position %(position)d up by one place"),{selectedCount:e,position:i});if(o>0&&!r)return Object(q.sprintf)(Object(q.__)("Move %(selectedCount)d blocks from position %(position)s down by one place"),{selectedCount:e,position:i})}(e,n,r,o,i):r&&o?Object(q.sprintf)(Object(q.__)("Block %s is the only block, and cannot be moved"),t):i>0&&!o?Object(q.sprintf)(Object(q.__)("Move %(type)s block from position %(position)d down to position %(newPosition)d"),{type:t,position:s,newPosition:s+1}):i>0&&o?Object(q.sprintf)(Object(q.__)("Block %s is at the end of the content and can’t be moved down"),t):i<0&&!r?Object(q.sprintf)(Object(q.__)("Move %(type)s block from position %(position)d up to position %(newPosition)d"),{type:t,position:s,newPosition:s-1}):i<0&&r?Object(q.sprintf)(Object(q.__)("Block %s is at the beginning of the content and can’t be moved up"),t):void 0}var So=wp.element.createElement("svg",{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18","aria-hidden":!0,role:"img",focusable:"false"},wp.element.createElement("polygon",{points:"9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 "})),Eo=wp.element.createElement("svg",{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18","aria-hidden":!0,role:"img",focusable:"false"},wp.element.createElement("polygon",{points:"9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "})),jo=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.state={isFocused:!1},e.onFocus=e.onFocus.bind(e),e.onBlur=e.onBlur.bind(e),e}return br()(t,e),fr()(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.uids,s=e.blockType,a=e.firstIndex,c=e.isLocked,l=e.instanceId,u=e.isHidden,d=this.state.isFocused,p=Object(O.castArray)(i).length;return c?null:wp.element.createElement("div",{className:ir()("editor-block-mover",{"is-visible":d||!u})},wp.element.createElement(gr.IconButton,{className:"editor-block-mover__control",onClick:r?null:t,icon:So,label:Object(q.__)("Move up"),"aria-describedby":"editor-block-mover__up-description-"+l,"aria-disabled":r,onFocus:this.onFocus,onBlur:this.onBlur}),wp.element.createElement(gr.IconButton,{className:"editor-block-mover__control",onClick:o?null:n,icon:Eo,label:Object(q.__)("Move down"),"aria-describedby":"editor-block-mover__down-description-"+l,"aria-disabled":o,onFocus:this.onFocus,onBlur:this.onBlur}),wp.element.createElement("span",{id:"editor-block-mover__up-description-"+l,className:"editor-block-mover__description"},wo(p,s&&s.title,a,r,o,-1)),wp.element.createElement("span",{id:"editor-block-mover__down-description-"+l,className:"editor-block-mover__description"},wo(p,s&&s.title,a,r,o,1)))}}]),t}(sr.Component),Co=Object(sr.compose)(Object(i.withSelect)(function(e,t){var n=t.uids,r=t.rootUID,o=e("core/editor"),i=o.getBlock,s=o.getBlockIndex,a=o.getEditorSettings,c=Object(O.first)(Object(O.castArray)(n)),l=i(c),u=a().templateLock;return{firstIndex:s(c,r),blockType:l?Object(w.getBlockType)(l.name):null,isLocked:"all"===u}}),Object(i.withDispatch)(function(e,t){var n=t.uids,r=t.rootUID,o=e("core/editor"),i=o.moveBlocksDown,s=o.moveBlocksUp;return{onMoveDown:Object(O.partial)(i,n,r),onMoveUp:Object(O.partial)(s,n,r)}}),gr.withInstanceId)(jo),To=(n(613),function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.onFilesDrop=e.onFilesDrop.bind(e),e.onHTMLDrop=e.onHTMLDrop.bind(e),e.onDrop=e.onDrop.bind(e),e}return br()(t,e),fr()(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(w.findTransform)(Object(w.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(w.rawHandler)({HTML:e,mode:"BLOCKS"});n.length&&this.props.insertBlocks(n,this.getInsertIndex(t))}},{key:"onDrop",value:function(e,t){if(e.dataTransfer){var n=void 0,r=void 0,o=void 0,i=void 0;try{var s=JSON.parse(e.dataTransfer.getData("text"));n=s.uid,r=s.type,o=s.rootUID,i=s.fromIndex}catch(e){return}if("block"===r){var a=this.props.index,c=this.getInsertIndex(t),l=a&&i<a&&o===this.props.rootUID?c-1:c;this.props.moveBlockToPosition(n,o,l)}}}},{key:"render",value:function(){var e=this.props,t=e.isLocked,n=e.index;if(t)return null;var r=void 0===n;return wp.element.createElement(gr.DropZone,{className:ir()("editor-block-drop-zone",{"is-appender":r}),onFilesDrop:this.onFilesDrop,onHTMLDrop:this.onHTMLDrop,onDrop:this.onDrop})}}]),t}(sr.Component)),Po=Object(sr.compose)(Object(i.withDispatch)(function(e,t){var n=e("core/editor"),r=n.insertBlocks,o=n.updateBlockAttributes,i=n.moveBlockToPosition;return{insertBlocks:function(e,n){var o=t.rootUID,i=t.layout;i&&(e=Object(O.castArray)(e).map(function(e){return Object(w.cloneBlock)(e,{layout:i})})),r(e,n,o)},updateBlockAttributes:function(){o.apply(void 0,arguments)},moveBlockToPosition:function(e,n,r){var o=t.rootUID,s=t.layout;i(e,n,o,s,r)}}}),Object(i.withSelect)(function(e){return{isLocked:!!e("core/editor").getEditorSettings().templateLock}}))(To);n(612);var Bo=Object(sr.compose)([Object(i.withSelect)(function(e,t){var n=t.uid,r=e("core/editor"),o=r.getBlock,i=r.getBlockMode,s=o(n);return{mode:i(n),blockType:s?Object(w.getBlockType)(s.name):null}}),Object(i.withDispatch)(function(e,t){var n=t.onToggle,r=void 0===n?O.noop:n,o=t.uid;return{onToggleMode:function(){e("core/editor").toggleBlockMode(o),r()}}})])(function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,i=void 0!==o&&o,s=e.role;if(!Object(w.hasBlockSupport)(t,"html",!0))return null;var a="visual"===n?Object(q.__)("Edit as HTML"):Object(q.__)("Edit visually");return wp.element.createElement(gr.IconButton,{className:"editor-block-settings-menu__control",onClick:r,icon:"html",label:i?a:void 0,role:s},!i&&a)});var xo=Object(sr.compose)(Object(i.withDispatch)(function(e,t){var n=t.uids;return{onRemove:function(){e("core/editor").removeBlocks(n)}}}),Object(i.withSelect)(function(e){return{isLocked:!!e("core/editor").getEditorSettings().templateLock}}))(function(e){var t=e.onRemove,n=e.onClick,r=void 0===n?O.noop:n,o=e.isLocked,i=e.role,s=d()(e,["onRemove","onClick","isLocked","role"]);if(o)return null;var a=Object(q.__)("Remove");return wp.element.createElement(gr.IconButton,l()({className:"editor-block-settings-remove",onClick:Object(O.flow)(t,r),icon:"trash",label:a,role:i},s))});var Io=Object(sr.compose)(Object(i.withSelect)(function(e,t){var n=t.uids,r=t.rootUID,o=e("core/editor"),i=o.getBlocksByUID,s=o.getBlockIndex,a=(0,o.getEditorSettings)().templateLock;return{blocks:i(n),index:s(Object(O.last)(Object(O.castArray)(n)),r),isLocked:!!a}}),Object(i.withDispatch)(function(e,t){var n=t.blocks,r=t.index,o=t.rootUID;return{onDuplicate:function(){var t=n.map(function(e){return Object(w.cloneBlock)(e)});e("core/editor").insertBlocks(t,r+1,o),t.length>1&&e("core/editor").multiSelect(Object(O.first)(t).uid,Object(O.last)(t).uid)}}}))(function(e){var t=e.blocks,n=e.onDuplicate,r=e.onClick,o=void 0===r?O.noop:r,i=e.isLocked,s=e.small,a=void 0!==s&&s,c=e.role,l=Object(O.every)(t,function(e){return Object(w.hasBlockSupport)(e.name,"multiple",!0)});if(i||!l)return null;var u=Object(q.__)("Duplicate");return wp.element.createElement(gr.IconButton,{className:"editor-block-settings-menu__control",onClick:Object(O.flow)(n,o),icon:"admin-page",label:a?u:void 0,role:c},!a&&u)});var Do=Object(sr.compose)([Object(i.withSelect)(function(e,t){var n=t.uid,r=e("core/editor"),o=r.getBlock,i=r.getSharedBlock,s=o(n);return{sharedBlock:s&&Object(w.isSharedBlock)(s)?i(s.attributes.ref):null}}),Object(i.withDispatch)(function(e,t){var n=t.uid,r=t.onToggle,o=void 0===r?O.noop:r,i=e("core/editor"),s=i.convertBlockToShared,a=i.convertBlockToStatic,c=i.deleteSharedBlock;return{onConvertToStatic:function(){a(n),o()},onConvertToShared:function(){s(n),o()},onDelete:function(e){window.confirm(Object(q.__)("Are you sure you want to delete this Shared Block?\n\nIt will be permanently removed from all posts and pages that use it."))&&(c(e),o())}}})])(function(e){var t=e.sharedBlock,n=e.onConvertToStatic,r=e.onConvertToShared,o=e.onDelete,i=e.itemsRole;return wp.element.createElement(sr.Fragment,null,!t&&wp.element.createElement(gr.IconButton,{className:"editor-block-settings-menu__control",icon:"controls-repeat",onClick:r,role:i},Object(q.__)("Convert to Shared Block")),t&&wp.element.createElement(sr.Fragment,null,wp.element.createElement(gr.IconButton,{className:"editor-block-settings-menu__control",icon:"controls-repeat",onClick:n,role:i},Object(q.__)("Convert to Regular Block")),wp.element.createElement(gr.IconButton,{className:"editor-block-settings-menu__control",icon:"no",disabled:t.isTemporary,onClick:function(){return o(t.id)},role:i},Object(q.__)("Delete Shared Block"))))});var Ao=Object(sr.compose)(Object(i.withSelect)(function(e,t){var n=t.uid,r=e("core/editor"),o=r.getBlock,i=r.getCurrentPostType;return{block:o(n),postType:i()}}),Object(i.withDispatch)(function(e){return{onReplace:e("core/editor").replaceBlocks}}),Object(gr.withAPIData)(function(e){return{user:"/wp/v2/users/me?post_type="+e.postType+"&context=edit"}}))(function(e){var t=e.block,n=e.onReplace,r=e.small,o=e.user,i=e.role;if(!t||Object(w.getUnknownTypeHandlerName)()!==t.name)return null;var s=Object(q.__)("Convert to blocks");return wp.element.createElement(gr.IconButton,{className:"editor-block-settings-menu__control",onClick:function(){n(t.uid,Object(w.rawHandler)({HTML:Object(w.serialize)(t),mode:"BLOCKS",canUserUseUnfilteredHTML:Object(O.get)(o,["data","capabilities","unfiltered_html"],!1)}))},icon:"screenoptions",label:r?s:void 0,role:i},!r&&s)}),No=Object(gr.createSlotFill)("_BlockSettingsMenuFirstItem"),Lo=No.Fill,Ro=No.Slot;Lo.Slot=Ro;var Uo=Lo,Mo=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.state={isFocused:!1},e.onFocus=e.onFocus.bind(e),e.onBlur=e.onBlur.bind(e),e}return br()(t,e),fr()(t,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.uids,r=t.onSelect,o=t.focus,i=t.rootUID,s=t.isHidden,a=this.state.isFocused,c=Object(O.castArray)(n),l=c.length,u=c[0];return wp.element.createElement("div",{className:ir()("editor-block-settings-menu",{"is-visible":a||!s})},wp.element.createElement(gr.Dropdown,{contentClassName:"editor-block-settings-menu__popover",position:"bottom left",renderToggle:function(t){var n=t.onToggle,i=t.isOpen,s=ir()("editor-block-settings-menu__toggle",{"is-opened":i}),a=i?Object(q.__)("Hide Options"):Object(q.__)("More Options");return wp.element.createElement(gr.IconButton,{className:s,onClick:function(){1===l&&r(u),n()},icon:"ellipsis",label:a,"aria-expanded":i,focus:o,onFocus:e.onFocus,onBlur:e.onBlur})},renderContent:function(e){var t=e.onClose;return wp.element.createElement(gr.NavigableMenu,{className:"editor-block-settings-menu__content"},wp.element.createElement(Uo.Slot,{fillProps:{onClose:t}}),1===l&&wp.element.createElement(Bo,{uid:u,onToggle:t,role:"menuitem"}),1===l&&wp.element.createElement(Ao,{uid:u,role:"menuitem"}),wp.element.createElement(Io,{uids:n,rootUID:i,role:"menuitem"}),1===l&&wp.element.createElement(Do,{uid:u,onToggle:t,itemsRole:"menuitem"}))}}),wp.element.createElement(xo,{uids:n,onFocus:this.onFocus,onBlur:this.onBlur}))}}]),t}(sr.Component),Fo=Object(i.withDispatch)(function(e){return{onSelect:function(t){e("core/editor").selectBlock(t)}}})(Mo);n(611);var Ho=function(e){var t=e.actions,n=e.children;return wp.element.createElement("div",{className:"editor-warning"},n,sr.Children.count(t)>0&&wp.element.createElement("div",{className:"editor-warning__actions"},sr.Children.map(t,function(e,t){return wp.element.createElement("span",{key:t,className:"editor-warning__action"},e)})))};var Vo=Object(i.withDispatch)(function(e,t){var n=t.block,r=e("core/editor").replaceBlock;return{convertToHTML:function(){r(n.uid,Object(w.createBlock)("core/html",{content:n.originalContent}))},convertToBlocks:function(){r(n.uid,Object(w.rawHandler)({HTML:n.originalContent,mode:"BLOCKS"}))}}})(function(e){var t=e.convertToHTML,n=e.convertToBlocks,r=!!Object(w.getBlockType)("core/html");return wp.element.createElement(Ho,{actions:[wp.element.createElement(gr.Button,{key:"convert",onClick:n,isLarge:!0,isPrimary:!r},Object(q.__)("Convert to Blocks")),r&&wp.element.createElement(gr.Button,{key:"edit",onClick:t,isLarge:!0,isPrimary:!0},Object(q.__)("Edit as HTML"))]},Object(q.__)("This block appears to have been modified externally."))}),Ko=wp.element.createElement(Ho,null,Object(q.__)("This block has encountered an error and cannot be previewed.")),Wo=function(){return Ko},zo=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.state={hasError:!1},e}return br()(t,e),fr()(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}(sr.Component),qo=n(177),Go=n.n(qo),Yo=function(e){function t(e){dr()(this,t);var n=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return n.onChange=n.onChange.bind(n),n.onBlur=n.onBlur.bind(n),n.state={html:e.block.isValid?Object(w.getBlockContent)(e.block):e.block.originalContent},n}return br()(t,e),fr()(t,[{key:"componentDidUpdate",value:function(e){Object(O.isEqual)(this.props.block.attributes,e.block.attributes)||this.setState({html:Object(w.getBlockContent)(this.props.block)})}},{key:"onBlur",value:function(){var e=Object(w.getBlockType)(this.props.block.name),t=Object(w.getBlockAttributes)(e,this.state.html,this.props.block.attributes),n=Object(w.isValidBlock)(this.state.html,e,t);this.props.onChange(this.props.uid,t,this.state.html,n)}},{key:"onChange",value:function(e){this.setState({html:e.target.value})}},{key:"render",value:function(){var e=this.state.html;return wp.element.createElement(Go.a,{className:"editor-block-list__block-html-textarea",value:e,onBlur:this.onBlur,onChange:this.onChange})}}]),t}(sr.Component),Xo=Object(sr.compose)([Object(i.withSelect)(function(e,t){return{block:e("core/editor").getBlock(t.uid)}}),Object(i.withDispatch)(function(e){return{onChange:function(t,n,r,o){e("core/editor").updateBlock(t,{attributes:n,originalContent:r,isValid:o})}}})])(Yo);var $o=Object(i.withSelect)(function(e,t){return{name:(0,e("core/editor").getBlockName)(t.uid)}})(function(e){var t=e.name;if(!t)return null;var n=Object(w.getBlockType)(t);return n?n.title:null}),Jo=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.state={isFocused:!1},e.onFocus=e.onFocus.bind(e),e.onBlur=e.onBlur.bind(e),e}return br()(t,e),fr()(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.uid,n=e.rootUID;return wp.element.createElement("div",{className:"editor-block-list__breadcrumb"},wp.element.createElement(gr.Toolbar,null,n&&wp.element.createElement(sr.Fragment,null,wp.element.createElement($o,{uid:n}),wp.element.createElement("span",{className:"editor-block-list__descendant-arrow"})),wp.element.createElement($o,{uid:t})))}}]),t}(sr.Component),Qo=Object(sr.compose)([Object(i.withSelect)(function(e,t){return{rootUID:(0,e("core/editor").getBlockRootUID)(t.uid)}})])(Jo),Zo=window,ei=Zo.Node,ti=Zo.getSelection,ni=no.keycodes.ESCAPE,ri=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.bindNode=e.bindNode.bind(e),e.focusToolbar=e.focusToolbar.bind(e),e.focusSelection=e.focusSelection.bind(e),e.switchOnKeyDown=Object(O.cond)([[Object(O.matchesProperty)(["keyCode"],ni),e.focusSelection]]),e}return br()(t,e),fr()(t,[{key:"bindNode",value:function(e){this.toolbar=Object(sr.findDOMNode)(e)}},{key:"focusToolbar",value:function(){var e=Oo.focus.tabbable.find(this.toolbar);e.length&&e[0].focus()}},{key:"focusSelection",value:function(){var e=ti();if(e){var t=e.focusNode;t.nodeType!==ei.ELEMENT_NODE&&(t=t.parentElement),t&&t.focus()}}},{key:"render",value:function(){var e=this.props,t=e.children,n=d()(e,["children"]);return wp.element.createElement(gr.NavigableMenu,l()({orientation:"horizontal",role:"toolbar",deep:!0,ref:this.bindNode,onKeyDown:this.switchOnKeyDown},n),wp.element.createElement(gr.KeyboardShortcuts,{bindGlobal:!0,eventName:"keydown",shortcuts:{"alt+f10":this.focusToolbar}}),t)}}]),t}(sr.Component);var oi=function(){return wp.element.createElement(ri,{className:"editor-block-contextual-toolbar","aria-label":Object(q.__)("Block Toolbar")},wp.element.createElement(cl,null))};var ii=Object(i.withSelect)(function(e,t){var n=t.rootUID,r=e("core/editor"),o=r.getMultiSelectedBlockUids,i=r.isMultiSelecting,s=r.getBlockIndex,a=r.getBlockCount,c=o(),l=s(Object(O.first)(c),n),u=s(Object(O.last)(c),n);return{multiSelectedBlockUids:c,isSelecting:i(),isFirst:0===l,isLast:u+1===a()}})(function(e){var t=e.multiSelectedBlockUids,n=e.rootUID,r=e.isSelecting,o=e.isFirst,i=e.isLast;return r?null:[wp.element.createElement(Co,{key:"mover",rootUID:n,uids:t,isFirst:o,isLast:i}),wp.element.createElement(Fo,{key:"menu",rootUID:n,uids:t,focus:!0})]}),si=n(168),ai=n.n(si);n(610),n(609);var ci=function(e){var t=e.name,n=e.attributes,r=Object(w.createBlock)(t,n);return wp.element.createElement("div",{className:"editor-block-preview"},wp.element.createElement("div",{className:"editor-block-preview__title"},Object(q.__)("Preview")),wp.element.createElement("div",{className:"editor-block-preview__content"},wp.element.createElement(zr,{name:t,focus:!1,attributes:r.attributes,setAttributes:O.noop})))},li=function(e){function t(){return dr()(this,t),mr()(this,(t.__proto__||lr()(t)).apply(this,arguments))}return br()(t,e),fr()(t,[{key:"render",value:function(){var e=this.props,t=e.items,n=e.onSelect,r=e.onHover;return wp.element.createElement("ul",{role:"list",className:"editor-inserter__list"},t.map(function(e){var t=e.icon?{backgroundColor:e.icon.background,color:e.icon.foreground}:{},o=e.icon&&e.icon.shadowColor?{backgroundColor:e.icon.shadowColor}:{};return wp.element.createElement("li",{className:"editor-inserter__list-item",key:e.id},wp.element.createElement("button",{className:ir()("editor-inserter__item",Object(w.getBlockMenuDefaultClassName)(e.id),{"editor-inserter__item-has-children":e.hasChildBlocks}),onClick:function(){return n(e)},disabled:e.isDisabled,onMouseEnter:function(){return r(e)},onMouseLeave:function(){return r(null)},onFocus:function(){return r(e)},onBlur:function(){return r(null)},"aria-label":e.title},wp.element.createElement("span",{className:"editor-inserter__item-icon",style:t},wp.element.createElement(jr,{icon:e.icon&&e.icon.src}),e.hasChildBlocks&&wp.element.createElement("span",{className:"editor-inserter__item-icon-stack",style:o})),wp.element.createElement("span",{className:"editor-inserter__item-title"},e.title)))}))}}]),t}(sr.Component);var ui=Object(sr.compose)(Object(gr.ifCondition)(function(e){var t=e.items;return t&&t.length>0}),Object(i.withSelect)(function(e,t){var n=t.rootUID,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=d()(e,["rootBlockIcon","rootBlockTitle","items"]);return wp.element.createElement("div",{className:"editor-inserter__child-blocks"},(t||n)&&wp.element.createElement("div",{className:"editor-inserter__parent-block-header"},wp.element.createElement(jr,{icon:t,showColors:!0}),n&&wp.element.createElement("h2",null,n)),wp.element.createElement(li,l()({items:r},o)))}),di=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.state={childItems:[],filterValue:"",hoveredItem:null,suggestedItems:[],sharedItems:[],itemsPerCategory:{},openPanels:["suggested"]},e.onChangeSearchInput=e.onChangeSearchInput.bind(e),e.onHover=e.onHover.bind(e),e.panels={},e.inserterResults=Object(sr.createRef)(),e}return br()(t,e),fr()(t,[{key:"componentDidMount",value:function(){this.props.fetchSharedBlocks(),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})}},{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:[].concat(f()(t.state.openPanels),[e])}),t.props.setTimeout(function(){ai()(Object(sr.findDOMNode)(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.items,r=t.rootChildBlocks,o=function(e,t){var n=t.toLowerCase().trim(),r=function(e){return-1!==e.toLowerCase().indexOf(n)};return e.filter(function(e){return r(e.title)||Object(O.some)(e.keywords,r)})}(n,e),i=Object(O.filter)(o,function(e){var t=e.name;return Object(O.includes)(r,t)}),s=[];if(!e){var a=this.props.maxSuggestedItems||9;s=Object(O.filter)(n,function(e){return e.utility>0}).slice(0,a)}var c=Object(O.filter)(o,{category:"shared"}),l=function(e){return Object(O.findIndex)(Object(w.getCategories)(),function(t){return t.slug===e.category})},u=Object(O.flow)(function(e){return Object(O.filter)(e,function(e){return"shared"!==e.category})},function(e){return Object(O.sortBy)(e,l)},function(e){return Object(O.groupBy)(e,"category")})(o),d=this.state.openPanels;if(e!==this.state.filterValue)if(e){if(c.length)d=["shared"];else if(o.length){d=[Object(O.find)(Object(w.getCategories)(),function(e){var t=e.slug;return u[t]&&u[t].length}).slug]}}else d=["suggested"];this.setState({hoveredItem:null,childItems:i,filterValue:e,suggestedItems:s,sharedItems:c,itemsPerCategory:u,openPanels:d})}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.onSelect,o=t.rootUID,i=this.state,s=i.childItems,a=i.filterValue,c=i.hoveredItem,l=i.suggestedItems,u=i.sharedItems,d=i.itemsPerCategory,p=i.openPanels,f=function(e){return-1!==p.indexOf(e)},h=!!a;return wp.element.createElement("div",{className:"editor-inserter__menu"},wp.element.createElement("label",{htmlFor:"editor-inserter__search-"+n,className:"screen-reader-text"},Object(q.__)("Search for a block")),wp.element.createElement("input",{id:"editor-inserter__search-"+n,type:"search",placeholder:Object(q.__)("Search for a block"),className:"editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),wp.element.createElement("div",{className:"editor-inserter__results",ref:this.inserterResults},wp.element.createElement(ui,{rootUID:o,items:s,onSelect:r,onHover:this.onHover}),!!l.length&&wp.element.createElement(gr.PanelBody,{title:Object(q.__)("Most Used"),opened:f("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},wp.element.createElement(li,{items:l,onSelect:r,onHover:this.onHover})),Object(O.map)(Object(w.getCategories)(),function(t){var n=d[t.slug];return n&&n.length?wp.element.createElement(gr.PanelBody,{key:t.slug,title:t.title,opened:h||f(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},wp.element.createElement(li,{items:n,onSelect:r,onHover:e.onHover})):null}),!!u.length&&wp.element.createElement(gr.PanelBody,{title:Object(q.__)("Shared"),opened:f("shared"),onToggle:this.onTogglePanel("shared"),icon:"controls-repeat",ref:this.bindPanel("shared")},wp.element.createElement(li,{items:u,onSelect:r,onHover:this.onHover})),Object(O.isEmpty)(l)&&Object(O.isEmpty)(u)&&Object(O.isEmpty)(d)&&wp.element.createElement("p",{className:"editor-inserter__no-results"},Object(q.__)("No blocks found."))),c&&Object(w.isSharedBlock)(c)&&wp.element.createElement(ci,{name:c.name,attributes:c.initialAttributes}))}}]),t}(sr.Component),pi=Object(sr.compose)(Object(i.withSelect)(function(e,t){var n=t.rootUID;return{rootChildBlocks:(0,e("core/blocks").getChildBlockNames)((0,e("core/editor").getBlockName)(n))}}),Object(i.withDispatch)(function(e){return{fetchSharedBlocks:e("core/editor").fetchSharedBlocks}}),gr.withSpokenMessages,gr.withInstanceId,gr.withSafeTimeout)(di),fi=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.onToggle=e.onToggle.bind(e),e}return br()(t,e),fr()(t,[{key:"onToggle",value:function(e){var t=this.props.onToggle;e?this.props.showInsertionPoint():this.props.hideInsertionPoint(),t&&t(e)}},{key:"render",value:function(){var e=this.props,t=e.items,n=e.position,r=e.title,o=e.children,i=e.onInsertBlock,s=e.rootUID;return 0===t.length?null:wp.element.createElement(gr.Dropdown,{className:"editor-inserter",contentClassName:"editor-inserter__popover",position:n,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:r,renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return wp.element.createElement(gr.IconButton,{icon:"insert",label:Object(q.__)("Add block"),onClick:t,className:"editor-inserter__toggle","aria-haspopup":"true","aria-expanded":n},o)},renderContent:function(e){var n=e.onClose;return wp.element.createElement(pi,{items:t,onSelect:function(e){i(e),n()},rootUID:s})}})}}]),t}(sr.Component),hi=Object(sr.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getBlockInsertionPoint,o=t.getSelectedBlock,i=t.getInserterItems,s=r(),a=s.rootUID;return{title:n("title"),insertionPoint:s,selectedBlock:o(),items:i(a),rootUID:a}}),Object(i.withDispatch)(function(e,t){return{showInsertionPoint:e("core/editor").showInsertionPoint,hideInsertionPoint:e("core/editor").hideInsertionPoint,onInsertBlock:function(n){var r=t.insertionPoint,o=t.selectedBlock,i=r.index,s=r.rootUID,a=r.layout,c=n.name,u=n.initialAttributes,d=Object(w.createBlock)(c,l()({},u,{layout:a}));return o&&Object(w.isUnmodifiedDefaultBlock)(o)?e("core/editor").replaceBlocks(o.uid,d):e("core/editor").insertBlock(d,i,s)}}})])(fi);var mi=Object(bo.ifViewportMatches)("< small")(function(e){var t=e.rootUID,n=e.uid;return wp.element.createElement("div",{className:"editor-block-list__block-mobile-toolbar"},wp.element.createElement(hi,null),wp.element.createElement(Co,{uids:[n]}),wp.element.createElement(Fo,{rootUID:t,uids:[n]}))}),vi=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.state={isInserterFocused:!1},e.onBlurInserter=e.onBlurInserter.bind(e),e.onFocusInserter=e.onFocusInserter.bind(e),e.onClick=e.onClick.bind(e),e}return br()(t,e),fr()(t,[{key:"onFocusInserter",value:function(e){e.stopPropagation(),this.setState({isInserterFocused:!0})}},{key:"onBlurInserter",value:function(){this.setState({isInserterFocused:!1})}},{key:"onClick",value:function(){var e=this.props,t=e.layout,n=e.rootUID,r=e.index,o=d()(e,["layout","rootUID","index"]);o.insertDefaultBlock({layout:t},n,r),o.startTyping(),this.onBlurInserter(),o.onInsert&&this.props.onInsert()}},{key:"render",value:function(){var e=this.state.isInserterFocused,t=this.props,n=t.showInsertionPoint,r=t.showInserter;return wp.element.createElement("div",{className:"editor-block-list__insertion-point"},n&&wp.element.createElement("div",{className:"editor-block-list__insertion-point-indicator"}),r&&wp.element.createElement("div",{className:ir()("editor-block-list__insertion-point-inserter",{"is-visible":e})},wp.element.createElement(gr.IconButton,{icon:"insert",className:"editor-block-list__insertion-point-button",onClick:this.onClick,label:Object(q.__)("Insert block"),onFocus:this.onFocusInserter,onMouseDown:this.onFocusInserter,onBlur:this.onBlurInserter})))}}]),t}(sr.Component),bi=Object(sr.compose)(Object(i.withSelect)(function(e,t){var n=t.uid,r=t.rootUID,o=t.canShowInserter,i=e("core/editor"),s=i.getBlockIndex,a=i.getBlockInsertionPoint,c=i.getBlock,l=i.isBlockInsertionPointVisible,u=i.isTyping,d=i.getEditorSettings,p=n?s(n,r):-1,f=a(),h=n?c(n):null,m=l()&&f.index===p&&f.rootUID===r&&(!h||!Object(w.isUnmodifiedDefaultBlock)(h));return{templateLock:d().templateLock,showInserter:!u()&&o,index:p,showInsertionPoint:m}}),Object(gr.ifCondition)(function(e){return!e.templateLock}),Object(i.withDispatch)(function(e){var t=e("core/editor");return{insertDefaultBlock:t.insertDefaultBlock,startTyping:t.startTyping}}))(vi);var gi=function(e){var t=e.rootUID,n=e.index,r=e.uid,o=e.layout,i=e.isDragging,s=d()(e,["rootUID","index","uid","layout","isDragging"]),a=ir()("editor-block-list__block-draggable",{"is-visible":i}),c={type:"block",fromIndex:n,rootUID:t,uid:r,layout:o};return wp.element.createElement(gr.Draggable,l()({className:a,transferData:c},s),wp.element.createElement("div",{className:"editor-block-list__block-draggable-inner"}))},yi=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.proxyEvent=e.proxyEvent.bind(e),e.eventMap={},e}return br()(t,e),fr()(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=d()(t,["childHandledEvents"]),i=Object(O.reduce)([].concat(f()(r),f()(z()(o))),function(t,n){var r=n.match(/^on([A-Z][a-zA-Z]+?)(Handled)?$/);if(r){!!r[2]&&delete o[n];var i="on"+r[1];t[i]=e.proxyEvent,e.eventMap[r[1].toLowerCase()]=i}return t},{});return wp.element.createElement("div",l()({},o,i))}}]),t}(sr.Component);n(608);var ki=Object(sr.compose)(Object(i.withSelect)(function(e,t){var n=t.rootUID,r=e("core/editor"),o=r.getEditorSettings,i=r.getInserterItems,s=o().templateLock;return{items:i(n),isLocked:!!s}}),Object(i.withDispatch)(function(e,t){var n=t.uid,r=t.rootUID,o=t.layout;return{onInsert:function(t){var i=t.name,s=t.initialAttributes,a=Object(w.createBlock)(i,l()({},s,{layout:o}));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(w.getDefaultBlockName)()&&Object(O.isEmpty)(e.initialAttributes))}).slice(0,3);return wp.element.createElement("div",{className:"editor-inserter-with-shortcuts"},o.map(function(e){return wp.element.createElement(gr.IconButton,{key:e.id,className:"editor-inserter-with-shortcuts__block",onClick:function(){return r(e)},label:Object(q.sprintf)(Object(q.__)("Add %s"),e.title),icon:wp.element.createElement(jr,{icon:e.icon&&e.icon.src})})}))}),_i=Object(sr.createHigherOrderComponent)(function(e){var t=function(t){function n(){dr()(this,n);var e=mr()(this,(n.__proto__||lr()(n)).apply(this,arguments));return e.state={hoverArea:null},e.onMouseLeave=e.onMouseLeave.bind(e),e.onMouseMove=e.onMouseMove.bind(e),e}return br()(n,t),fr()(n,[{key:"componentDidMount",value:function(){this.container=Object(sr.findDOMNode)(this),this.container.addEventListener("mousemove",this.onMouseMove),this.container.addEventListener("mouseleave",this.onMouseLeave)}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("mousemove",this.onMouseMove),this.container.removeEventListener("mouseleave",this.onMouseLeave)}},{key:"onMouseLeave",value:function(){this.state.hoverArea&&this.setState({hoverArea:null})}},{key:"onMouseMove",value:function(e){var t=this.props.isRTL,n=this.container.getBoundingClientRect(),r=n.width,o=n.left,i=n.right,s=null;e.clientX-o<r/3?s=t?"right":"left":i-e.clientX<r/3&&(s=t?"left":"right"),s!==this.state.hoverArea&&this.setState({hoverArea:s})}},{key:"render",value:function(){var t=this.state.hoverArea;return wp.element.createElement(e,l()({},this.props,{hoverArea:t}))}}]),n}(sr.Component);return Object(i.withSelect)(function(e){return{isRTL:e("core/editor").getEditorSettings().isRTL}})(t)}),Oi=no.keycodes.BACKSPACE,wi=no.keycodes.DELETE,Si=no.keycodes.ENTER,Ei=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.setBlockListRef=e.setBlockListRef.bind(e),e.bindBlockNode=e.bindBlockNode.bind(e),e.setAttributes=e.setAttributes.bind(e),e.maybeHover=e.maybeHover.bind(e),e.hideHoverEffects=e.hideHoverEffects.bind(e),e.mergeBlocks=e.mergeBlocks.bind(e),e.insertBlocksAfter=e.insertBlocksAfter.bind(e),e.onFocus=e.onFocus.bind(e),e.preventDrag=e.preventDrag.bind(e),e.onPointerDown=e.onPointerDown.bind(e),e.deleteOrInsertAfterWrapper=e.deleteOrInsertAfterWrapper.bind(e),e.onBlockError=e.onBlockError.bind(e),e.onTouchStart=e.onTouchStart.bind(e),e.onClick=e.onClick.bind(e),e.onDragStart=e.onDragStart.bind(e),e.onDragEnd=e.onDragEnd.bind(e),e.selectOnOpen=e.selectOnOpen.bind(e),e.hadTouchStart=!1,e.state={error:null,dragging:!1,isHovered:!1},e}return br()(t,e),fr()(t,[{key:"componentDidMount",value:function(){this.props.isSelected&&this.focusTabbable()}},{key:"componentDidUpdate",value:function(e){(this.props.isTypingWithinBlock||this.props.isSelected)&&this.hideHoverEffects(),this.props.isSelected&&!e.isSelected&&this.focusTabbable()}},{key:"setBlockListRef",value:function(e){e=Object(sr.findDOMNode)(e),this.wrapperNode=e,this.props.blockRef(e,this.props.uid)}},{key:"bindBlockNode",value:function(e){this.node=Object(sr.findDOMNode)(e)}},{key:"focusTabbable",value:function(){var e=this.props.initialPosition;if(!this.wrapperNode.contains(document.activeElement)){var t=Oo.focus.tabbable.find(this.node).filter(Oo.isTextField),n=-1===e,r=(n?O.last:O.first)(t);if(r){if(r.focus(),n){var o=_o.a.get(r.getAttribute("id"));o?(o.selection.select(o.getBody(),!0),o.selection.collapse(!1)):(Object(Oo.placeCaretAtHorizontalEdge)(r,!0),Object(Oo.placeCaretAtVerticalEdge)(r,!0))}}else this.wrapperNode.focus()}}},{key:"setAttributes",value:function(e){var t=this.props,n=t.block,r=t.onChange,o=Object(w.getBlockType)(n.name);r(n.uid,e);var i=Object(O.reduce)(e,function(e,t,n){return"meta"===Object(O.get)(o,["attributes",n,"source"])&&(e[o.attributes[n].meta]=t),e},{});Object(O.size)(i)&&this.props.onMetaChange(l()({},this.props.meta,i))}},{key:"onTouchStart",value:function(){this.hadTouchStart=!0}},{key:"onClick",value:function(){this.hadTouchStart=!1}},{key:"maybeHover",value:function(){var e=this.props,t=e.isMultiSelected,n=e.isSelected;this.state.isHovered||t||n||this.props.isMultiSelecting||this.hadTouchStart||this.setState({isHovered:!0})}},{key:"hideHoverEffects",value:function(){this.state.isHovered&&this.setState({isHovered:!1})}},{key:"mergeBlocks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props,n=t.block,r=t.previousBlockUid,o=t.nextBlockUid,i=t.onMerge;!e&&!r||e&&!o||(e?i(n.uid,o):i(r,n.uid))}},{key:"insertBlocksAfter",value:function(e){this.props.onInsertBlocks(e,this.props.order+1)}},{key:"onFocus",value:function(){this.props.isSelected||this.props.isMultiSelected||this.props.onSelect()}},{key:"preventDrag",value:function(e){e.preventDefault()}},{key:"onPointerDown",value:function(e){0===e.button&&(e.shiftKey?this.props.isSelected||(this.props.onShiftSelection(this.props.uid),e.preventDefault()):(this.props.onSelectionStart(this.props.uid),this.props.isMultiSelected&&this.props.onSelect()))}},{key:"deleteOrInsertAfterWrapper",value:function(e){var t=e.keyCode;if(e.target===this.wrapperNode&&!this.props.isLocked)switch(t){case Si:this.props.onInsertBlocks([Object(w.createBlock)("core/paragraph")],this.props.order+1),e.preventDefault();break;case Oi:case wi:var n=this.props,r=n.uid,o=n.onRemove,i=n.previousBlockUid,s=n.onSelect;o(r),i&&s(i,-1),e.preventDefault()}}},{key:"onBlockError",value:function(e){this.setState({error:e})}},{key:"onDragStart",value:function(){this.setState({dragging:!0})}},{key:"onDragEnd",value:function(){this.setState({dragging:!1})}},{key:"selectOnOpen",value:function(e){e&&!this.props.isSelected&&this.props.onSelect()}},{key:"render",value:function(){var e=this.props,t=e.block,n=e.order,r=e.mode,o=e.hasFixedToolbar,i=e.isLocked,s=e.isFirst,a=e.isLast,c=e.uid,u=e.rootUID,d=e.layout,p=e.isSelected,f=e.isMultiSelected,h=e.isFirstMultiSelected,m=e.isTypingWithinBlock,v=e.isMultiSelecting,b=e.hoverArea,g=e.isLargeViewport,y=e.isEmptyDefaultBlock,k=e.isPreviousBlockADefaultEmptyBlock,_=e.hasSelectedInnerBlock,O=this.state.isHovered&&!v,S=t.name,E=t.isValid,j=Object(w.getBlockType)(S),C=Object(q.sprintf)(Object(q.__)("Block: %s"),j.title),T=(p||O)&&y,P=(p||O)&&y,B=!P&&(p||_)&&!m,x=(p||"left"===b)&&!T&&!v&&!f&&!m,I=(p||"right"===b)&&!v&&!f&&!m,D=O&&!y,A=!P&&p&&!m&&E&&(!o||!g),N=B,L=this.state,R=L.error,U=L.dragging,M=f&&s||!f,F=!y&&!k,H=ir()("editor-block-list__block",{"has-warning":!E||!!R,"is-selected":B,"is-multi-selected":f,"is-hovered":O&&!y,"is-shared":Object(w.isSharedBlock)(j),"is-hidden":U,"is-typing":m}),V=this.props.onReplace,K=this.props.wrapperProps;j.getEditWrapperProps&&(K=l()({},K,j.getEditWrapperProps(t.attributes)));var W="block-"+c;return wp.element.createElement(yi,l()({id:W,ref:this.setBlockListRef,onMouseOver:this.maybeHover,onMouseOverHandled:this.hideHoverEffects,onMouseLeave:this.hideHoverEffects,className:H,"data-type":t.name,onTouchStart:this.onTouchStart,onFocus:this.onFocus,onClick:this.onClick,onKeyDown:this.deleteOrInsertAfterWrapper,tabIndex:"0","aria-label":C,childHandledEvents:["onDragStart","onMouseDown"]},K),!f&&wp.element.createElement(gi,{rootUID:u,index:n,uid:c,layout:d,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd,isDragging:U,elementId:W}),M&&wp.element.createElement(bi,{uid:c,rootUID:u,layout:d,canShowInserter:F,onInsert:this.hideHoverEffects}),wp.element.createElement(Po,{index:n,rootUID:u,layout:d}),x&&wp.element.createElement(Co,{uids:c,rootUID:u,layout:d,isFirst:s,isLast:a,isHidden:!(O||p)||"left"!==b}),I&&wp.element.createElement(Fo,{uids:c,rootUID:u,isHidden:!(O||p)||"right"!==b}),D&&wp.element.createElement(Qo,{uid:c,isHidden:!(O||p)||"left"!==b}),A&&wp.element.createElement(oi,null),h&&wp.element.createElement(ii,{rootUID:u}),wp.element.createElement(yi,{ref:this.bindBlockNode,onDragStart:this.preventDrag,onMouseDown:this.onPointerDown,className:"editor-block-list__block-edit","data-block":c},wp.element.createElement(zo,{onError:this.onBlockError},E&&"visual"===r&&wp.element.createElement(zr,{name:S,isSelected:p,attributes:t.attributes,setAttributes:this.setAttributes,insertBlocksAfter:i?void 0:this.insertBlocksAfter,onReplace:i?void 0:V,mergeBlocks:i?void 0:this.mergeBlocks,id:c,isSelectionEnabled:this.props.isSelectionEnabled,toggleSelection:this.props.toggleSelection}),E&&"html"===r&&wp.element.createElement(Xo,{uid:c}),!E&&[wp.element.createElement("div",{key:"invalid-preview"},Object(w.getSaveElement)(j,t.attributes)),wp.element.createElement(Vo,{key:"invalid-warning",block:t})]),N&&wp.element.createElement(mi,{rootUID:u,uid:c})),!!R&&wp.element.createElement(Wo,null),T&&wp.element.createElement(sr.Fragment,null,wp.element.createElement("div",{className:"editor-block-list__side-inserter"},wp.element.createElement(ki,{uid:c,rootUID:u,layout:d,onToggle:this.selectOnOpen})),wp.element.createElement("div",{className:"editor-block-list__empty-block-inserter"},wp.element.createElement(hi,{position:"top right",onToggle:this.selectOnOpen}))))}}]),t}(sr.Component),ji=Object(i.withSelect)(function(e,t){var n=t.uid,r=t.rootUID,o=e("core/editor"),i=o.isBlockSelected,s=o.getPreviousBlockUid,a=o.getNextBlockUid,c=o.getBlock,l=o.isBlockMultiSelected,u=o.isFirstMultiSelectedBlock,d=o.isMultiSelecting,p=o.isTyping,f=o.getBlockIndex,h=o.getEditedPostAttribute,m=o.getBlockMode,v=o.isSelectionEnabled,b=o.getSelectedBlocksInitialCaretPosition,g=o.getEditorSettings,y=o.hasSelectedInnerBlock,k=i(n),_=y(n),O=g(),S=O.templateLock,E=O.hasFixedToolbar,j=c(n),C=s(n),T=c(C);return{nextBlockUid:a(n),isMultiSelected:l(n),isFirstMultiSelected:u(n),isMultiSelecting:d(),hasSelectedInnerBlock:_,isTypingWithinBlock:(k||_)&&p(),order:f(n,r),meta:h("meta"),mode:m(n),isSelectionEnabled:v(),initialPosition:b(),isEmptyDefaultBlock:j&&Object(w.isUnmodifiedDefaultBlock)(j),isPreviousBlockADefaultEmptyBlock:T&&Object(w.isUnmodifiedDefaultBlock)(T),isLocked:!!S,previousBlockUid:C,block:j,isSelected:k,hasFixedToolbar:E}}),Ci=Object(i.withDispatch)(function(e,t){var n=e("core/editor"),r=n.updateBlockAttributes,o=n.selectBlock,i=n.insertBlocks,s=n.removeBlock,a=n.mergeBlocks,c=n.replaceBlocks,l=n.editPost,u=n.toggleSelection;return{onChange:function(e,t){r(e,t)},onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.uid,n=arguments[1];o(e,n)},onInsertBlocks:function(e,n){var r=t.rootUID,o=t.layout;e=e.map(function(e){return Object(w.cloneBlock)(e,{layout:o})}),i(e,n,r)},onRemove:function(e){s(e)},onMerge:function(){a.apply(void 0,arguments)},onReplace:function(e){var n=t.layout;e=Object(O.castArray)(e).map(function(e){return Object(w.cloneBlock)(e,{layout:n})}),c([t.uid],e)},onMetaChange:function(e){l({meta:e})},toggleSelection:function(e){u(e)}}}),Ti=Object(sr.compose)(ji,Ci,Object(bo.withViewportMatch)({isLargeViewport:"medium"}),Object(gr.withFilters)("editor.BlockListBlock"),_i)(Ei),Pi=n(166);n(607);var Bi=Object(sr.compose)(Object(i.withSelect)(function(e,t){var n=e("core/editor"),r=n.getBlockCount,o=n.getBlock,i=n.getEditorSettings,s=e("core/nux").isTipVisible,a=!r(t.rootUID),c=o(t.lastBlockUID),l=Object(O.get)(c,["name"])===Object(w.getDefaultBlockName)(),u=i(),d=u.templateLock,p=u.bodyPlaceholder;return{isVisible:a||!l,showPrompt:a,isLocked:!!d,placeholder:p,hasTip:s("core/editor.inserter")}}),Object(i.withDispatch)(function(e,t){var n=e("core/editor"),r=n.insertDefaultBlock,o=n.startTyping,i=e("core/nux").dismissTip;return{onAppend:function(){var e=t.layout,n=t.rootUID,s=t.hasTip,a=void 0;e&&(a={layout:e}),r(a,n),o(),s&&i("core/editor.inserter")}}}))(function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,i=e.placeholder,s=e.layout,a=e.rootUID,c=e.hasTip;if(t||!n)return null;var l=Object(no.decodeEntities)(i)||Object(q.__)("Write your story");return wp.element.createElement("div",{"data-root-uid":a||"",className:ir()("editor-default-block-appender",{"has-tip":c})},wp.element.createElement(Po,{rootUID:a,layout:s}),wp.element.createElement("input",{role:"button","aria-label":Object(q.__)("Add block"),className:"editor-default-block-appender__content",type:"text",readOnly:!0,onFocus:r,onClick:r,onKeyDown:r,value:o?l:""}),wp.element.createElement(ki,{rootUID:a,layout:s}),wp.element.createElement(hi,{position:"top right"},wp.element.createElement(Pi.DotTip,{id:"core/editor.inserter"},Object(q.__)("Welcome to the wonderful world of blocks! Click ‘Add block’ to insert different kinds of content—text, images, quotes, video, lists, and much more."))))}),xi=function(e){function t(e){dr()(this,t);var n=mr()(this,(t.__proto__||lr()(t)).call(this,e));return n.onSelectionStart=n.onSelectionStart.bind(n),n.onSelectionEnd=n.onSelectionEnd.bind(n),n.onShiftSelection=n.onShiftSelection.bind(n),n.setBlockRef=n.setBlockRef.bind(n),n.setLastClientY=n.setLastClientY.bind(n),n.onPointerMove=Object(O.throttle)(n.onPointerMove.bind(n),100),n.onScroll=function(){return n.onPointerMove({clientY:n.lastClientY})},n.lastClientY=0,n.nodes={},n}return br()(t,e),fr()(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=l()({},this.nodes,b()({},t,e))}},{key:"onPointerMove",value:function(e){var t=e.clientY;this.props.isMultiSelecting||this.props.onStartMultiSelect();var n=t-this.nodes[this.selectionAtStart].getBoundingClientRect().top,r=Object(O.findLast)(this.coordMapKeys,function(e){return e<n});this.onSelectionChange(this.coordMap[r])}},{key:"onSelectionStart",value:function(e){if(this.props.isSelectionEnabled){var t=this.nodes[e].getBoundingClientRect(),n=Object(O.mapValues)(this.nodes,function(e){return e.getBoundingClientRect().top-t.top});this.coordMap=Object(O.invert)(n),this.coordMapKeys=Object(O.sortBy)(yo()(n)),this.selectionAtStart=e,window.addEventListener("mousemove",this.onPointerMove),window.addEventListener("scroll",this.onScroll,!0),window.addEventListener("mouseup",this.onSelectionEnd)}}},{key:"onSelectionChange",value:function(e){var t=this.props,n=t.onMultiSelect,r=t.selectionStart,o=t.selectionEnd,i=this.selectionAtStart,s=i===e;i&&this.props.isSelectionEnabled&&(s&&r&&n(null,null),s||o===e||n(i,e))}},{key:"onSelectionEnd",value:function(){this.onPointerMove.cancel(),delete this.coordMap,delete this.coordMapKeys,delete this.selectionAtStart,window.removeEventListener("mousemove",this.onPointerMove),window.removeEventListener("scroll",this.onScroll,!0),window.removeEventListener("mouseup",this.onSelectionEnd),this.props.isMultiSelecting&&this.props.onStopMultiSelect()}},{key:"onShiftSelection",value:function(e){if(this.props.isSelectionEnabled){var t=this.props,n=t.selectionStartUID,r=t.onMultiSelect,o=t.onSelect;n?r(n,e):o(e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.blockUIDs,r=t.layout,o=t.isGroupedByLayout,i=t.rootUID,s=void 0;o&&(s=r);var a=ir()("editor-block-list__layout",b()({},"layout-"+r,r));return wp.element.createElement("div",{className:a},Object(O.map)(n,function(t,r){return wp.element.createElement(Ti,{key:"block-"+t,index:r,uid:t,blockRef:e.setBlockRef,onSelectionStart:e.onSelectionStart,onShiftSelection:e.onShiftSelection,rootUID:i,layout:s,isFirst:0===r,isLast:r===n.length-1})}),wp.element.createElement(yi,{childHandledEvents:["onFocus","onClick","onKeyDown"]},wp.element.createElement(Bi,{rootUID:i,lastBlockUID:Object(O.last)(n),layout:s})))}}]),t}(sr.Component),Ii=Object(sr.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlocksStartUid,i=t.getMultiSelectedBlocksEndUid,s=t.getBlockSelectionStart;return{selectionStart:o(),selectionEnd:i(),selectionStartUID:s(),isSelectionEnabled:n(),isMultiSelecting:r()}}),Object(i.withDispatch)(function(e){var t=e("core/editor");return{onStartMultiSelect:t.startMultiSelect,onStopMultiSelect:t.stopMultiSelect,onMultiSelect:t.multiSelect,onSelect:t.selectBlock}})])(xi),Di=Object(i.withSelect)(function(e,t){return{blockUIDs:e("core/editor").getBlockOrder(t.rootUID)}})(Ii),Ai=Object(i.withSelect)(function(e,t){return{blocks:e("core/editor").getBlocks(t.rootUID)}})(function(e){var t=e.blocks,n=e.layouts,r=d()(e,["blocks","layouts"]);return Object(O.map)(n,function(e){var n=Object(O.reduce)(t,function(t,n){return Object(O.get)(n,["attributes","layout"])===e.name&&t.push(n.uid),t},[]);return wp.element.createElement(Ii,l()({key:e.name,layout:e.name,isGroupedByLayout:!0,blockUIDs:n},r))})}),Ni=function(e){return Object(sr.createElement)(Array.isArray(e.layouts)?Ai:Di,e)},Li=function(e){function t(){return dr()(this,t),mr()(this,(t.__proto__||lr()(t)).apply(this,arguments))}return br()(t,e),fr()(t,[{key:"componentWillReceiveProps",value:function(e){this.updateNestedSettings({supportedBlocks:e.allowedBlocks})}},{key:"componentDidMount",value:function(){this.updateNestedSettings({supportedBlocks:this.props.allowedBlocks}),this.insertTemplateBlocks(this.props.template)}},{key:"insertTemplateBlocks",value:function(e){var t=this.props,n=t.block,r=t.insertBlocks;e&&!n.innerBlocks.length&&r(Object(w.synchronizeBlocksWithTemplate)([],e))}},{key:"updateNestedSettings",value:function(e){Object(O.isEqual)(this.props.blockListSettings,e)||this.props.updateNestedSettings(e)}},{key:"render",value:function(){var e=this.props,t=e.uid,n=e.layouts,r=e.allowedBlocks,o=e.template,i=e.isSmallScreen,s=e.isSelectedBlockInRoot,a=ir()("editor-inner-blocks",{"has-overlay":i&&!s});return wp.element.createElement("div",{className:a},wp.element.createElement(Ni,l()({rootUID:t},{layouts:n,allowedBlocks:r,template:o})))}}]),t}(sr.Component);(Li=Object(sr.compose)([Or(function(e){return Object(O.pick)(e,["uid"])}),Object(bo.withViewportMatch)({isSmallScreen:"< medium"}),Object(i.withSelect)(function(e,t){var n=e("core/editor"),r=n.isBlockSelected,o=n.hasSelectedInnerBlock,i=n.getBlock,s=n.getBlockListSettings,a=t.uid;return{isSelectedBlockInRoot:r(a)||o(a),block:i(a),blockListSettings:s(a)}}),Object(i.withDispatch)(function(e,t){var n=e("core/editor"),r=n.insertBlocks,o=n.updateBlockListSettings,i=t.uid;return{insertBlocks:function(t){e(r(t,void 0,i))},updateNestedSettings:function(t){e(o(i,t))}}})])(Li)).Content=function(e){var t=e.BlockContent;return wp.element.createElement(t,null)},Li.Content=Object(gr.withContext)("BlockContent")()(Li.Content);var Ri=Li,Ui=Object(gr.createSlotFill)("InspectorAdvancedControls"),Mi=Ui.Fill,Fi=Ui.Slot,Hi=wr(Mi);Hi.Slot=Fi;var Vi=Hi,Ki=Object(gr.createSlotFill)("InspectorControls"),Wi=Ki.Fill,zi=Ki.Slot,qi=wr(Wi);qi.Slot=zi;var Gi=qi;var Yi=Object(sr.compose)([Jr,Object(gr.ifCondition)(function(e){return e.hasColorsToChoose})])(function(e){var t=e.colors,n=e.title,r=e.colorValue,o=e.initialOpen,i=d()(e,["colors","title","colorValue","initialOpen"]),s=eo(t,r);return wp.element.createElement(gr.PanelColor,{title:n,colorName:s,colorValue:r,initialOpen:o},wp.element.createElement(Qr,l()({value:r},Object(O.omit)(i,["disableCustomColors"]))))});n(606);var Xi=function(e){var t=e.onChange,n=e.className,r=d()(e,["onChange","className"]);return wp.element.createElement(Go.a,l()({className:ir()("editor-plain-text",n),onChange:function(e){return t(e.target.value)}},r))},$i=n(63),Ji=n.n($i),Qi=n(143),Zi=(n(605),n(176)),es=(n(604),n(175)),ts=no.keycodes.UP,ns=no.keycodes.DOWN,rs=no.keycodes.ENTER,os=function(e){return e.stopPropagation()},is=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.onChange=e.onChange.bind(e),e.onKeyDown=e.onKeyDown.bind(e),e.bindListNode=e.bindListNode.bind(e),e.updateSuggestions=Object(O.throttle)(e.updateSuggestions.bind(e),200),e.suggestionNodes=[],e.state={posts:[],showSuggestions:!1,selectedSuggestion:null},e}return br()(t,e),fr()(t,[{key:"bindListNode",value:function(e){this.listNode=e}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"updateSuggestions",value:function(e){var t=this;this.suggestionsRequest&&this.suggestionsRequest.abort(),e.length<2||/^https?:/.test(e)?this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1}):(this.setState({showSuggestions:!0,selectedSuggestion:null,loading:!0}),this.suggestionsRequest=X()({path:"/wp/v2/posts?"+Object(es.stringify)({search:e,per_page:20,orderby:"relevance"})}),this.suggestionsRequest.then(function(e){t.setState({posts:e,loading:!1}),e.length?t.props.debouncedSpeak(Object(q.sprintf)(Object(q._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):t.props.debouncedSpeak(Object(q.__)("No results."),"assertive")},function(e){"abort"!==e.statusText&&t.setState({loading:!1})}))}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.updateSuggestions(t)}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.posts,i=t.loading;if(n&&o.length&&!i)switch(e.keyCode){case ts:e.stopPropagation(),e.preventDefault();var s=r?r-1:o.length-1;this.setState({selectedSuggestion:s});break;case ns:e.stopPropagation(),e.preventDefault();var a=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:a});break;case rs:if(this.state.selectedSuggestion){e.stopPropagation();var c=this.state.posts[this.state.selectedSuggestion];this.selectLink(c.link)}}}},{key:"selectLink",value:function(e){this.props.onChange(e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"componentWillUnmount",value:function(){this.suggestionsRequest&&this.suggestionsRequest.abort()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.state,n=t.showSuggestions,r=t.selectedSuggestion;n&&null!==r&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,ai()(this.suggestionNodes[r],this.listNode,{onlyScrollIfNeeded:!0}),setTimeout(function(){e.scrollingIntoView=!1},100))}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,r=void 0===n?"":n,o=t.autoFocus,i=void 0===o||o,s=t.instanceId,a=this.state,c=a.showSuggestions,l=a.posts,u=a.selectedSuggestion,d=a.loading;return wp.element.createElement(sr.Fragment,null,wp.element.createElement("div",{className:"editor-url-input"},wp.element.createElement("input",{autoFocus:i,type:"text","aria-label":Object(q.__)("URL"),required:!0,value:r,onChange:this.onChange,onInput:os,placeholder:Object(q.__)("Paste URL or type"),onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":c,"aria-autocomplete":"list","aria-owns":"editor-url-input-suggestions-"+s,"aria-activedescendant":null!==u?"editor-url-input-suggestion-"+s+"-"+u:void 0}),d&&wp.element.createElement(gr.Spinner,null)),c&&!!l.length&&wp.element.createElement(gr.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},wp.element.createElement("div",{className:"editor-url-input__suggestions",id:"editor-url-input-suggestions-"+s,ref:this.bindListNode,role:"listbox"},l.map(function(t,n){return wp.element.createElement("button",{key:t.id,role:"option",tabIndex:"-1",id:"editor-url-input-suggestion-"+s+"-"+n,ref:e.bindSuggestionNode(n),className:ir()("editor-url-input__suggestion",{"is-selected":n===u}),onClick:function(){return e.selectLink(t.link)},"aria-selected":n===u},Object(no.decodeEntities)(t.title.rendered)||Object(q.__)("(no title)"))}))))}}]),t}(sr.Component),ss=Object(gr.withSpokenMessages)(Object(gr.withInstanceId)(is));function as(e,t){return Object(Zi.a)(e,t)}var cs=no.keycodes.ESCAPE,ls=no.keycodes.LEFT,us=no.keycodes.RIGHT,ds=no.keycodes.UP,ps=no.keycodes.DOWN,fs=no.keycodes.BACKSPACE,hs=no.keycodes.ENTER,ms=no.keycodes.displayShortcut,vs=[{icon:"editor-bold",title:Object(q.__)("Bold"),shortcut:ms.primary("b"),format:"bold"},{icon:"editor-italic",title:Object(q.__)("Italic"),shortcut:ms.primary("i"),format:"italic"},{icon:"editor-strikethrough",title:Object(q.__)("Strikethrough"),shortcut:ms.access("d"),format:"strikethrough"},{icon:"admin-links",title:Object(q.__)("Link"),shortcut:ms.primary("k"),format:"link"}],bs=["bold","italic","strikethrough","link"],gs=function(e){return e.stopPropagation()};var ys=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.state={},e.addLink=e.addLink.bind(e),e.editLink=e.editLink.bind(e),e.dropLink=e.dropLink.bind(e),e.submitLink=e.submitLink.bind(e),e.onKeyDown=e.onKeyDown.bind(e),e.onChangeLinkValue=e.onChangeLinkValue.bind(e),e.toggleLinkSettingsVisibility=e.toggleLinkSettingsVisibility.bind(e),e.setLinkTarget=e.setLinkTarget.bind(e),e}return br()(t,e),fr()(t,[{key:"onKeyDown",value:function(e){if(e.keyCode===cs){var t=this.props.formats.link;t&&t.isAdding&&(e.stopPropagation(),t.value?this.props.onChange({link:l()({},t,{isAdding:!1})}):this.dropLink())}[ls,ps,us,ds,fs,hs].indexOf(e.keyCode)>-1&&gs(e)}},{key:"onChangeLinkValue",value:function(e){this.setState({linkValue:e})}},{key:"toggleFormat",value:function(e){var t=this;return function(){t.props.onChange(b()({},e,!t.props.formats[e]))}}},{key:"toggleLinkSettingsVisibility",value:function(){this.setState(function(e){return{settingsVisible:!e.settingsVisible}})}},{key:"setLinkTarget",value:function(e){this.setState({opensInNewWindow:e}),this.props.formats.link&&!this.props.formats.link.isAdding&&this.props.onChange({link:{value:this.props.formats.link.value,target:e?"_blank":null,rel:e?"noreferrer noopener":null}})}},{key:"addLink",value:function(){this.setState({linkValue:""}),this.props.onChange({link:{isAdding:!0}})}},{key:"dropLink",value:function(){this.props.onChange({link:null}),this.setState({linkValue:""})}},{key:"editLink",value:function(e){e.preventDefault(),this.props.onChange({link:l()({},this.props.formats.link,{isAdding:!0})}),this.setState({linkValue:this.props.formats.link.value})}},{key:"submitLink",value:function(e){e.preventDefault();var t=Object(Zi.b)(this.state.linkValue);this.props.onChange({link:{isAdding:!1,target:this.state.opensInNewWindow?"_blank":null,rel:this.state.opensInNewWindow?"noreferrer noopener":null,value:t}}),this.setState({linkValue:t}),this.props.formats.link.value||this.props.speak(Object(q.__)("Link added."),"assertive")}},{key:"isFormatActive",value:function(e){return this.props.formats[e]&&this.props.formats[e].isActive}},{key:"render",value:function(){var e,t,n=this,r=this.props,o=r.formats,i=r.focusPosition,s=r.enabledControls,a=void 0===s?bs:s,c=r.customControls,u=void 0===c?[]:c,d=r.selectedNodeId,p=this.state,f=p.linkValue,h=p.settingsVisible,m=p.opensInNewWindow,v=o.link&&o.link.isAdding,b=vs.concat(u).filter(function(e){return-1!==a.indexOf(e.format)}).map(function(e){if("link"===e.format){var t=n.isFormatActive("link"),r=t||v;return l()({},e,{icon:t?"editor-unlink":"admin-links",title:t?Object(q.__)("Unlink"):Object(q.__)("Link"),onClick:r?n.dropLink:n.addLink,isActive:r})}return l()({},e,{onClick:n.toggleFormat(e.format),isActive:n.isFormatActive(e.format)})}),g=h&&wp.element.createElement("div",{className:"editor-format-toolbar__link-modal-line editor-format-toolbar__link-settings"},wp.element.createElement(gr.ToggleControl,{label:Object(q.__)("Open in new window"),checked:m,onChange:this.setLinkTarget}));return wp.element.createElement("div",{className:"editor-format-toolbar"},wp.element.createElement(gr.Toolbar,{controls:b}),(v||o.link)&&wp.element.createElement(gr.Fill,{name:"RichText.Siblings"},wp.element.createElement("div",{className:"editor-format-toolbar__link-container",style:l()({},i)},wp.element.createElement(gr.Popover,{position:"bottom center",focusOnMount:!!v,key:d},v&&wp.element.createElement("form",{className:"editor-format-toolbar__link-modal",onKeyPress:gs,onKeyDown:this.onKeyDown,onSubmit:this.submitLink},wp.element.createElement("div",{className:"editor-format-toolbar__link-modal-line"},wp.element.createElement(ss,{value:f,onChange:this.onChangeLinkValue}),wp.element.createElement(gr.IconButton,{icon:"editor-break",label:Object(q.__)("Apply"),type:"submit"}),wp.element.createElement(gr.IconButton,{className:"editor-format-toolbar__link-settings-toggle",icon:"ellipsis",label:Object(q.__)("Link Settings"),onClick:this.toggleLinkSettingsVisibility,"aria-expanded":h})),g),o.link&&!v&&wp.element.createElement("div",{className:"editor-format-toolbar__link-modal",onKeyPress:gs},wp.element.createElement("div",{className:"editor-format-toolbar__link-modal-line"},wp.element.createElement("a",{className:"editor-format-toolbar__link-value",href:o.link.value,target:"_blank"},o.link.value&&(e=decodeURI(o.link.value),(t=e.replace(new RegExp("^https?://(www.)?"),"")).match("^[^/]+/$")?t.replace("/",""):t)),wp.element.createElement(gr.IconButton,{icon:"edit",label:Object(q.__)("Edit"),onClick:this.editLink}),wp.element.createElement(gr.IconButton,{className:"editor-format-toolbar__link-settings-toggle",icon:"ellipsis",label:Object(q.__)("Link Settings"),onClick:this.toggleLinkSettingsVisibility,"aria-expanded":h})),g)))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.selectedNodeId!==e.selectedNodeId?function(e){return{selectedNodeId:e.selectedNodeId,settingsVisible:!1,opensInNewWindow:!!e.formats.link&&!!e.formats.link.target,linkValue:""}}(e):null}}]),t}(sr.Component),ks=Object(gr.withSpokenMessages)(ys),_s=function(e){return Object(O.pickBy)(e,function(e,t){return n=t,Object(O.startsWith)(n,"aria-")&&!Object(O.isNil)(e);var n})},Os=n(188);function ws(e,t){switch(t){case"string":return e||"";default:return function(e){return Object(sr.renderToString)(e)}(e)}}function Ss(e,t){if("all"===t["data-mce-bogus"])return null;for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t.hasOwnProperty("data-mce-bogus")?r:sr.createElement.apply(void 0,[e,Object(O.omitBy)(t,function(e,t){return 0===t.indexOf("data-mce-")})].concat(r))}function Es(e,t,n){switch(t){case"string":return function(e,t){var n=document.implementation.createHTMLDocument("");return Ji()(e).forEach(function(e){n.body.appendChild(e)}),t?t.serializer.serialize(n.body):n.body.innerHTML}(e,n);default:return function(e){return Object(Os.nodeListToReact)(e||[],Ss)}(e)}}var js=no.keycodes.BACKSPACE,Cs=no.keycodes.DELETE;var Ts=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).call(this));return e.bindEditorNode=e.bindEditorNode.bind(e),e}return br()(t,e),fr()(t,[{key:"componentDidMount",value:function(){this.initialize()}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.configureIsPlaceholderVisible(e.isPlaceholderVisible),Object(O.isEqual)(this.props.style,e.style)||(this.editorNode.setAttribute("style",""),m()(this.editorNode.style,e.style)),Object(O.isEqual)(this.props.className,e.className)||(this.editorNode.className=ir()(e.className,"editor-rich-text__tinymce"));var n=function(e,t){var n=Object(O.keys)(_s(e)),r=Object(O.keys)(_s(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;r.forEach(function(e){return t.editorNode.removeAttribute(e)}),o.forEach(function(n){return t.editorNode.setAttribute(n,e[n])})}},{key:"componentWillUnmount",value:function(){this.editor&&(this.editor.container=document.createDocumentFragment(),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,t=this.props.getSettings({theme:!1,inline:!0,toolbar:!1,browser_spellcheck:!0,entity_encoding:"raw",convert_urls:!1,inline_boundaries_selector:"a[href],code,b,i,strong,em,del,ins,sup,sub",plugins:[],formats:{strikethrough:{inline:"del"}}});t.plugins.push("paste"),_o.a.init(l()({},t,{target:this.editorNode,setup:function(t){e.editor=t,e.props.onSetup(t)}}))}},{key:"bindEditorNode",value:function(e){this.editorNode=e,this.removeInternetExplorerInputFix&&(this.removeInternetExplorerInputFix(),this.removeInternetExplorerInputFix=null),e&&function(e){return/Trident/.test(window.navigator.userAgent)&&!/input/i.test(e.tagName)&&!/textarea/i.test(e.tagName)}(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((js===r||Cs===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))}},{key:"render",value:function(){var e,t=this.props,n=t.tagName,r=void 0===n?"div":n,o=t.style,i=t.defaultValue,s=t.className,a=t.isPlaceholderVisible,c=t.format,u=_s(this.props);return"table"!==r&&(u.role="textbox",u["aria-multiline"]=!0),Object(sr.createElement)(r,l()({},u,(e={className:ir()(s,"editor-rich-text__tinymce"),contentEditable:!0},b()(e,"data-is-placeholder-visible",a),b()(e,"ref",this.bindEditorNode),b()(e,"style",o),b()(e,"suppressContentEditableWarning",!0),b()(e,"dangerouslySetInnerHTML",{__html:ws(i,c)}),e)))}}]),t}(sr.Component),Ps=no.keycodes.ESCAPE,Bs=no.keycodes.ENTER,xs=no.keycodes.SPACE,Is=no.keycodes.BACKSPACE,Ds=function(e){var t=this.getContent.bind(this),n=this.props,r=n.setTimeout,o=n.onReplace,i=_o.a.util.VK,s=e.settings.wptextpattern||{},a=Object(O.groupBy)(Object(O.filter)(Object(w.getBlockTransforms)("from"),{type:"pattern"}),"trigger"),c=a.enter,l=a.undefined,u=s.inline||[{delimiter:"`",format:"code"}],d=void 0;function p(){var t=e.selection.getRng(),n=t.startContainer,o=t.startOffset;if(n&&3===n.nodeType&&n.data.length&&o){var i=n.data.slice(0,o),s=n.data.charAt(o-1),a=u.reduce(function(e,t){if(e.result)return e;if(s!==t.delimiter.slice(-1))return e;var n=Object(O.escapeRegExp)(t.delimiter),r=new RegExp("(.*)"+n+".+"+n+"$"),a=i.match(r);if(!a)return e;var c=a[1].length,l=o-t.delimiter.length,u=i.charAt(c-1),d=i.charAt(c+t.delimiter.length),p=t.delimiter.charAt(0);if(c&&/\S/.test(u)&&(/\s/.test(d)||u===p))return e;var f=new RegExp("^[\\s"+Object(O.escapeRegExp)(p)+"]+$"),h=i.slice(c,l);return f.test(h)?e:{start:c,pattern:t}},{}),c=a.start,l=a.pattern;if(l){var p=l.delimiter,f=l.format,h=e.formatter.get(f);h&&h[0].inline&&(e.undoManager.add(),e.undoManager.transact(function(){n.insertData(o,"\ufeff");var t=n.splitText(c),i=t.splitText(o-c);t.deleteData(0,p.length),t.deleteData(t.data.length-p.length,p.length),e.formatter.apply(f,{},t),e.selection.setCursorLocation(i,1),r(function(){d="space",e.once("selectionchange",function(){if(i){var e=i.data.indexOf("\ufeff");-1!==e&&i.deleteData(e,e+1)}})})}))}}}e.on("selectionchange",function(){d=null}),e.on("keydown",function(n){var s=n.keyCode;(d&&s===Ps||"space"===d&&s===Is)&&(e.undoManager.undo(),n.preventDefault(),n.stopImmediatePropagation()),i.metaKeyPressed(n)||(s===Bs?function(n){if(!o)return;e.getBody().normalize();var r=t();if(!r.length)return;var i=Object(w.findTransform)(c,function(e){var t=e.regExp;return t.test(r[0])});if(!i)return;var s=i.transform({content:r});o([s]),n.preventDefault(),n.stopImmediatePropagation()}(n):s===xs?r(function(){return function(n){if(!o)return;e.getBody().normalize();var r=t();if(!r.length)return;var i=r[0],s=Object(w.findTransform)(n,function(e){return e.regExp.test(i)});if(!s)return;var a=i.match(s.regExp),c=e.selection.getRng(),l=a[0].length,u=i.slice(l);if(c.startOffset!==l)return;var d=s.transform({content:[u].concat(f()(Object(O.drop)(r))),match:a});o([d])}(l)}):s>47&&!(s>=91&&s<=93)&&r(p))},!0)},As=no.keycodes.BACKSPACE,Ns=no.keycodes.DELETE,Ls=no.keycodes.ENTER,Rs=no.keycodes.rawShortcut;function Us(e){return""===e.nodeValue||function(e){return"\ufeff"===("A"===e.nodeName?e.innerText:e.textContent)}(e)}function Ms(e){return Object(O.reject)(e,Us)}var Fs=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.onInit=e.onInit.bind(e),e.getSettings=e.getSettings.bind(e),e.onSetup=e.onSetup.bind(e),e.onFocus=e.onFocus.bind(e),e.onChange=e.onChange.bind(e),e.onNewBlock=e.onNewBlock.bind(e),e.onNodeChange=e.onNodeChange.bind(e),e.onKeyDown=e.onKeyDown.bind(e),e.onKeyUp=e.onKeyUp.bind(e),e.changeFormats=e.changeFormats.bind(e),e.onPropagateUndo=e.onPropagateUndo.bind(e),e.onPastePreProcess=e.onPastePreProcess.bind(e),e.onPaste=e.onPaste.bind(e),e.onCreateUndoLevel=e.onCreateUndoLevel.bind(e),e.setFocusedElement=e.setFocusedElement.bind(e),e.state={formats:{},selectedNodeId:0},e.containerRef=Object(sr.createRef)(),e}return br()(t,e),fr()(t,[{key:"getSettings",value:function(e){return(this.props.getSettings||O.identity)(l()({},e,{forced_root_block:this.props.multiline||!1,custom_undo_redo_levels:1}))}},{key:"onSetup",value:function(e){this.editor=e,e.on("init",this.onInit),e.on("NewBlock",this.onNewBlock),e.on("nodechange",this.onNodeChange),e.on("keydown",this.onKeyDown),e.on("keyup",this.onKeyUp),e.on("BeforeExecCommand",this.onPropagateUndo),e.on("PastePreProcess",this.onPastePreProcess,!0),e.on("paste",this.onPaste,!0),e.on("focus",this.onFocus),e.on("input",this.onChange),e.on("change",this.onCreateUndoLevel),Ds.apply(this,[e]),this.props.onSetup&&this.props.onSetup(e)}},{key:"setFocusedElement",value:function(){this.props.setFocusedElement&&this.props.setFocusedElement(this.props.instanceId)}},{key:"onInit",value:function(){var e=this;this.registerCustomFormatters(),this.editor.shortcuts.add(Rs.primary("k"),"",function(){return e.changeFormats({link:{isAdding:!0}})}),this.editor.shortcuts.add(Rs.access("a"),"",function(){return e.changeFormats({link:{isAdding:!0}})}),this.editor.shortcuts.add(Rs.access("s"),"",function(){return e.changeFormats({link:void 0})}),this.editor.shortcuts.add(Rs.access("d"),"",function(){return e.changeFormats({strikethrough:!e.state.formats.strikethrough})}),this.editor.shortcuts.add(Rs.access("x"),"",function(){return e.changeFormats({code:!e.state.formats.code})}),this.editor.shortcuts.add(Rs.primary("z"),"","Undo"),this.editor.shortcuts.add(Rs.primaryShift("z"),"","Redo"),this.editor.shortcuts.remove("meta+y","","Redo")}},{key:"adaptFormatter",value:function(e){switch(e.type){case"inline-style":return{inline:"span",styles:l()({},e.style)}}}},{key:"registerCustomFormatters",value:function(){var e=this;Object(O.forEach)(this.props.formatters,function(t){e.editor.formatter.register(t.format,e.adaptFormatter(t))})}},{key:"onPropagateUndo",value:function(e){var t=this.context,n=t.onUndo,r=t.onRedo,o=e.command;"Undo"===o&&n&&(Object(O.defer)(n),e.preventDefault()),"Redo"===o&&r&&(Object(O.defer)(r),e.preventDefault())}},{key:"onPaste",value:function(e){var t=this,n=e.clipboardData||e.dataTransfer||this.editor.getDoc().dataTransfer||{getData:function(){return""}},r=n.items,o=void 0===r?[]:r,i=n.files,s=void 0===i?[]:i,a=n.types,c=void 0===a?[]:a,l=Object(O.find)([].concat(f()(o),f()(s)),function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}),u=n.getData("text/plain"),d=n.getData("text/html");if(l&&!d){var p=l.getAsFile?l.getAsFile():l,h=Object(w.rawHandler)({HTML:'<img src="'+Object(Qi.createBlobURL)(p)+'">',mode:"BLOCKS",tagName:this.props.tagName}),m=this.props.onReplace&&this.isEmpty();window.console.log("Received item:\n\n",p),m?this.props.setTimeout(function(){return t.props.onReplace(h)}):this.props.onSplit&&this.props.setTimeout(function(){return t.splitContent(h)}),e.preventDefault()}this.pastedPlainText=u,this.isPlainTextPaste=1===c.length&&"text/plain"===c[0]}},{key:"onPastePreProcess",value:function(e){var t=this.isPlainTextPaste?"":e.content;if(e.preventDefault(),window.console.log("Received HTML:\n\n",t),window.console.log("Received plain text:\n\n",this.pastedPlainText),!this.editor.selection.isCollapsed()){var n=/^(?:https?:)?\/\/\S+$/i,r=e.content.replace(/<[^>]+>/g,"").trim(),o=this.editor.selection.getContent().replace(/<[^>]+>/g,"").trim();if(n.test(r)&&!n.test(o))return this.editor.execCommand("mceInsertLink",!1,{href:this.editor.dom.decode(r)}),void window.console.log("Created link:\n\n",r)}var i=this.props.onReplace&&this.isEmpty(),s="INLINE";i?s="BLOCKS":this.props.onSplit&&(s="AUTO");var a=Object(w.rawHandler)({HTML:t,plainText:this.pastedPlainText,mode:s,tagName:this.props.tagName,canUserUseUnfilteredHTML:this.context.canUserUseUnfilteredHTML});if("string"==typeof a)this.editor.insertContent(a);else if(this.props.onSplit){if(!a.length)return;i?this.props.onReplace(a):this.splitContent(a,{paste:!0})}}},{key:"onFocus",value:function(){var e=this.props.unstableOnFocus;e&&e()}},{key:"onChange",value:function(){this.savedContent=this.getContent(),this.props.onChange(this.savedContent)}},{key:"onCreateUndoLevel",value:function(e){e&&null===e.lastLevel||(e&&e.originalEvent&&"blur"===e.originalEvent.type||this.onChange(),this.context.onCreateUndoLevel())}},{key:"getFocusPosition",value:function(e){var t=this.containerRef.current.getBoundingClientRect();return{top:e.top-t.top+e.height,left:e.left-t.left+e.width/2}}},{key:"onKeyDown",value:function(e){var t=this.editor.dom,n=this.editor.getBody();if(e.keyCode===As&&Object(Oo.isHorizontalEdge)(n,!0)||e.keyCode===Ns&&Object(Oo.isHorizontalEdge)(n,!1)){if(!this.props.onMerge&&!this.props.onRemove)return;this.onCreateUndoLevel();var r=e.keyCode===Ns;this.props.onMerge&&this.props.onMerge(r),this.props.onRemove&&this.isEmpty()&&this.props.onRemove(r),e.preventDefault(),e.stopImmediatePropagation()}if(e.keyCode===Ls)if(this.props.multiline){if(!this.props.onSplit)return;var o=this.editor.selection.getNode();if(o.parentNode!==n)return;if(!t.isEmpty(o))return;e.preventDefault(),this.onCreateUndoLevel();var i=Ji()(n.childNodes),s=t.nodeIndex(o),a=i.slice(0,s),c=i.slice(s+1),l=this.props.format,u=Es(a,l,this.editor),d=Es(c,l,this.editor);this.restoreContentAndSplit(u,d)}else e.preventDefault(),this.onCreateUndoLevel(),e.shiftKey||!this.props.onSplit?this.editor.execCommand("InsertLineBreak",!1,e):this.splitContent()}},{key:"onKeyUp",value:function(e){var t=e.keyCode;t===As&&this.onChange(),this.props.isViewportSmall&&t!==As&&t!==Ls&&this.scrollToRect(Object(Oo.getRectangleFromRange)(this.editor.selection.getRng()))}},{key:"scrollToRect",value:function(e){var t=e.top,n=Object(Oo.getScrollContainer)(this.editor.getBody());if(n){var r=t-100;Math.abs(r)>10&&n.scrollTo(n.scrollLeft,n.scrollTop+r)}}},{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.props.onSplit){var n=this.editor.dom,r=this.editor.getBody(),o=n.createRng(),i=n.createRng(),s=this.editor.selection.getRng();if(r.childNodes.length){o.setStart(r,0),o.setEnd(s.startContainer,s.startOffset),i.setStart(s.endContainer,s.endOffset),i.setEnd(r,n.nodeIndex(r.lastChild)+1);var a=o.extractContents(),c=i.extractContents(),l=this.props.format,u=Es(Ms(a.childNodes),l,this.editor),d=Es(Ms(c.childNodes),l,this.editor);t.paste&&(u=this.isEmpty(u)?null:u,d=this.isEmpty(d)?null:d),this.restoreContentAndSplit(u,d,e)}else t.paste?this.restoreContentAndSplit(null,null,e):this.restoreContentAndSplit([],[],e)}}},{key:"onNewBlock",value:function(){if("p"===this.props.multiline&&this.props.onSplit){for(var e=Ji()(this.editor.getBody().childNodes),t=this.editor.selection.getStart();-1===e.indexOf(t)&&t.parentNode;)t=t.parentNode;var n=e.indexOf(t);if(-1!==n){var r=e.slice(0,n),o=Object(O.last)(r);if(!(!o||r.length<2||o.textContent)){var i=r.slice(0,r.length-1),s=e.slice(n).reduce(function(e,t){return e.length||t.textContent?(e.push(t),e):e},[]);this.setContent(this.props.value);var a=this.props.format;this.restoreContentAndSplit(Es(i,a,this.editor),Es(s,a,this.editor))}}}}},{key:"onNodeChange",value:function(e){var t=e.parents;if(document.activeElement===this.editor.getBody()){var n=this.props.formattingControls,r=this.editor.formatter.matchAll(n).reduce(function(e,n){return e[n]=l()({isActive:!0},function(e,t){switch(e){case"link":var n=Object(O.find)(t,function(e){return"a"===e.nodeName.toLowerCase()});return n?{value:n.getAttribute("href")||"",target:n.getAttribute("target")||"",node:n}:{};default:return{}}}(n,t)),e},{}),o=void 0,i=Object(O.find)(t,function(e){return"A"===e.tagName});o=i?i.getBoundingClientRect():Object(Oo.getRectangleFromRange)(this.editor.selection.getRng());var s=this.getFocusPosition(o);this.setState({formats:r,focusPosition:s,selectedNodeId:this.state.selectedNodeId+1}),this.props.isViewportSmall&&this.scrollToRect(o)}}},{key:"updateContent",value:function(){var e=this;this.editor.undoManager.ignore(function(){var t=e.editor.selection.getBookmark(2,!0);e.savedContent=e.props.value,e.setContent(e.savedContent),e.editor.selection.moveToBookmark(t)})}},{key:"setContent",value:function(e){var t=this.props.format;this.editor.setContent(ws(e,t))}},{key:"getContent",value:function(){switch(this.props.format){case"string":return this.editor.getContent();default:return this.editor.dom.isEmpty(this.editor.getBody())?[]:Es(this.editor.getBody().childNodes||[],"element",this.editor)}}},{key:"componentDidUpdate",value:function(e){!this.editor||this.props.tagName!==e.tagName||this.props.value===e.value||this.props.value===this.savedContent||Object(O.isEqual)(this.props.value,e.value)||Object(O.isEqual)(this.props.value,this.savedContent)||this.updateContent()}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.value;return!e||!e.length}},{key:"isFormatActive",value:function(e){return this.state.formats[e]&&this.state.formats[e].isActive}},{key:"removeFormat",value:function(e){this.editor.focus(),this.editor.formatter.remove(e),this.onCreateUndoLevel()}},{key:"applyFormat",value:function(e,t,n){this.editor.focus(),this.editor.formatter.apply(e,t,n),this.onCreateUndoLevel()}},{key:"changeFormats",value:function(e){var t=this;Object(O.forEach)(e,function(e,n){if("link"===n)if(e){if(e.isAdding)return;var r=e.value,o=e.target;if(!t.isFormatActive("link")&&t.editor.selection.isCollapsed()){var i=t.editor.dom.createHTML("a",{href:r,target:o},t.editor.dom.encode(r));t.editor.insertContent(i)}else t.editor.execCommand("mceInsertLink",!1,{href:r,target:o})}else t.editor.execCommand("Unlink");else{var s=t.isFormatActive(n);s&&!e?t.removeFormat(n):!s&&e&&t.applyFormat(n)}}),this.setState(function(t){return{formats:Object(O.merge)({},t.formats,e)}})}},{key:"restoreContentAndSplit",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.updateContent(),(n=this.props).onSplit.apply(n,[e,t].concat(f()(r)))}},{key:"render",value:function(){var e=this,t=this.props,n=t.tagName,r=void 0===n?"div":n,o=t.style,i=t.value,s=t.wrapperClassName,a=t.className,c=t.inlineToolbar,u=void 0!==c&&c,d=t.formattingControls,p=t.placeholder,f=t.multiline,h=t.keepPlaceholderOnFocus,m=void 0!==h&&h,v=t.isSelected,b=t.formatters,g=t.autocompleters,y=t.format,k=_s(this.props),_=["editor",r].join(),O=p&&(!v||m)&&this.isEmpty(),w=ir()(s,"editor-rich-text"),S=wp.element.createElement(ks,{selectedNodeId:this.state.selectedNodeId,focusPosition:this.state.focusPosition,formats:this.state.formats,onChange:this.changeFormats,enabledControls:d,customControls:b});return wp.element.createElement("div",{className:w,ref:this.containerRef,onFocus:this.setFocusedElement},v&&!u&&wp.element.createElement($r,null,S),v&&u&&wp.element.createElement("div",{className:"editor-rich-text__inline-toolbar"},S),wp.element.createElement(Er,{onReplace:this.props.onReplace,completers:g},function(t){var n=t.isExpanded,s=t.listBoxId,c=t.activeId;return wp.element.createElement(sr.Fragment,null,wp.element.createElement(Ts,l()({tagName:r,getSettings:e.getSettings,onSetup:e.onSetup,style:o,defaultValue:i,format:y,isPlaceholderVisible:O,"aria-label":p,"aria-autocomplete":"list","aria-expanded":n,"aria-owns":s,"aria-activedescendant":c},k,{className:a,key:_})),O&&wp.element.createElement(r,{className:ir()("editor-rich-text__tinymce",a),style:o},f?wp.element.createElement(f,null,p):p),v&&wp.element.createElement(gr.Slot,{name:"RichText.Siblings"}))}))}}]),t}(sr.Component);Fs.contextTypes={onUndo:O.noop,onRedo:O.noop,canUserUseUnfilteredHTML:O.noop,onCreateUndoLevel:O.noop},Fs.defaultProps={formattingControls:["bold","italic","strikethrough","link","code"],formatters:[],format:"element"};var Hs=Object(sr.compose)([gr.withInstanceId,Or(function(e,t){return!1===t.isSelected?{}:!0===t.isSelected?{isSelected:e.isSelected}:{isSelected:e.isSelected&&e.focusedElement===t.instanceId,setFocusedElement:e.setFocusedElement}}),Object(i.withSelect)(function(e){var t=(e("core/viewport")||{}).isViewportMatch;return{isViewportSmall:(void 0===t?O.identity:t)("< small")}}),gr.withSafeTimeout])(Fs);Hs.Content=function(e){var t=e.value,n=e.format,r=void 0===n?"element":n,o=e.tagName,i=d()(e,["value","format","tagName"]),s=void 0;switch(r){case"string":s=wp.element.createElement(sr.RawHTML,null,t);break;default:s=t}return o?wp.element.createElement(o,i,s):s};var Vs=Hs,Ks=function(e){function t(){return dr()(this,t),mr()(this,(t.__proto__||lr()(t)).apply(this,arguments))}return br()(t,e),fr()(t,[{key:"getChildContext",value:function(){return Object(O.pick)(this.props,z()(this.constructor.childContextTypes))}},{key:"render",value:function(){return this.props.children}}]),t}(sr.Component);Ks.childContextTypes={onUndo:O.noop,onRedo:O.noop,onCreateUndoLevel:O.noop};var Ws=Ks,zs=(n(603),function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.toggle=e.toggle.bind(e),e.submitLink=e.submitLink.bind(e),e.state={expanded:!1},e}return br()(t,e),fr()(t,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(q.__)("Edit Link"):Object(q.__)("Insert Link");return wp.element.createElement("div",{className:"editor-url-input__button"},wp.element.createElement(gr.IconButton,{icon:"admin-links",label:o,onClick:this.toggle,className:ir()("components-toolbar__control",{"is-active":t})}),r&&wp.element.createElement("form",{className:"editor-url-input__button-modal",onSubmit:this.submitLink},wp.element.createElement("div",{className:"editor-url-input__button-modal-line"},wp.element.createElement(gr.IconButton,{className:"editor-url-input__back",icon:"arrow-left-alt",label:Object(q.__)("Close"),onClick:this.toggle}),wp.element.createElement(ss,{value:t||"",onChange:n,"data-test":"UrlInput"}),wp.element.createElement(gr.IconButton,{icon:"editor-break",label:Object(q.__)("Submit"),type:"submit"}))))}}]),t}(sr.Component)),qs=function(e){function t(){return dr()(this,t),mr()(this,(t.__proto__||lr()(t)).apply(this,arguments))}return br()(t,e),fr()(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDirty,r=t.isAutosaveable;e.isDirty===n&&e.isAutosaveable===r||this.toggleTimer(n&&r)}},{key:"componentWillUnmount",value:function(){this.toggleTimer(!1)}},{key:"toggleTimer",value:function(e){var t=this;clearTimeout(this.pendingSave);var n=this.props.autosaveInterval;e&&(this.pendingSave=setTimeout(function(){return t.props.autosave()},1e3*n))}},{key:"render",value:function(){return null}}]),t}(sr.Component),Gs=Object(sr.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.isEditedPostDirty,r=t.isEditedPostAutosaveable,o=(0,t.getEditorSettings)().autosaveInterval;return{isDirty:n(),isAutosaveable:r(),autosaveInterval:o}}),Object(i.withDispatch)(function(e){return{autosave:e("core/editor").autosave}})])(qs),Ys=(n(602),function(e){var t=e.children,n=e.isValid,r=e.level,o=e.onClick,i=e.path,s=void 0===i?[]:i;return wp.element.createElement("li",{className:ir()("document-outline__item","is-"+r.toLowerCase(),{"is-invalid":!n})},wp.element.createElement("button",{className:"document-outline__button",onClick:o},wp.element.createElement("span",{className:"document-outline__emdash","aria-hidden":"true"}),s.map(function(e,t){var n=e.uid;return wp.element.createElement("strong",{key:t,className:"document-outline__level"},wp.element.createElement($o,{uid:n}))}),wp.element.createElement("strong",{className:"document-outline__level"},r),wp.element.createElement("span",{className:"document-outline__item-content"},t),wp.element.createElement("span",{className:"screen-reader-text"},Object(q.__)("(Click to focus this heading)"))))}),Xs=wp.element.createElement("em",null,Object(q.__)("(Empty heading)")),$s=[wp.element.createElement("br",{key:"incorrect-break"}),wp.element.createElement("em",{key:"incorrect-message"},Object(q.__)("(Incorrect heading level)"))],Js=[wp.element.createElement("br",{key:"incorrect-break-h1"}),wp.element.createElement("em",{key:"incorrect-message-h1"},Object(q.__)("(Your theme may already use a H1 for the post title)"))],Qs=[wp.element.createElement("br",{key:"incorrect-break-multiple-h1"}),wp.element.createElement("em",{key:"incorrect-message-multiple-h1"},Object(q.__)("(Multiple H1 headings are not recommended)"))],Zs=function(e){return!e.attributes.content||0===e.attributes.content.length},ea=Object(sr.compose)(Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getBlocks,o=(0,e("core").getPostType)(n("type"));return{title:n("title"),blocks:r(),isTitleSupported:Object(O.get)(o,["supports","title"],!1)}}),Object(i.withDispatch)(function(e){return{onSelect:e("core/editor").selectBlock}}))(function(e){var t=e.blocks,n=void 0===t?[]:t,r=e.title,o=e.onSelect,i=e.isTitleSupported,s=function e(){var t=arguments.length>0&&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?l()({},t,{path:n,level:function(e){switch(e.attributes.nodeName){case"h1":case"H1":return 1;case"h2":case"H2":return 2;case"h3":case"H3":return 3;case"h4":case"H4":return 4;case"h5":case"H5":return 5;case"h6":case"H6":return 6}}(t),isEmpty:Zs(t)}):e(t.innerBlocks,[].concat(f()(n),[t]))})}(n);if(s.length<1)return null;var a=1,c=i&&r,u=Object(O.countBy)(s,"level")[1]>1;return wp.element.createElement("div",{className:"document-outline"},wp.element.createElement("ul",null,c&&wp.element.createElement(Ys,{level:"Title",isValid:!0,onClick:function(){var e=document.querySelector(".editor-post-title__input");e&&e.focus()}},r),s.map(function(e,t){var n=e.level>a+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(u||c));return a=e.level,wp.element.createElement(Ys,{key:t,level:"H"+e.level,isValid:r,onClick:function(){return t=e.uid,o(t);var t},path:e.path},e.isEmpty?Xs:e.attributes.content,n&&$s,1===e.level&&u&&Qs,c&&1===e.level&&!u&&Js)})))});var ta=Object(i.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}),na=function(e){function t(e){dr()(this,t);var n=mr()(this,(t.__proto__||lr()(t)).call(this,e));return n.originalDocumentTitle=document.title,n}return br()(t,e),fr()(t,[{key:"componentDidMount",value:function(){this.setDocumentTitle(this.props.title)}},{key:"componentDidUpdate",value:function(e){e.title!==this.props.title&&this.setDocumentTitle(this.props.title)}},{key:"componentWillUnmount",value:function(){document.title=this.originalDocumentTitle}},{key:"setDocumentTitle",value:function(e){document.title=e+" | "+this.originalDocumentTitle}},{key:"render",value:function(){return null}}]),t}(n(14).Component),ra=Object(i.withSelect)(function(e){return{title:e("core/editor").getDocumentTitle()}})(na),oa=no.keycodes.rawShortcut,ia=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.selectAll=e.selectAll.bind(e),e.undoOrRedo=e.undoOrRedo.bind(e),e.save=e.save.bind(e),e.deleteSelectedBlocks=e.deleteSelectedBlocks.bind(e),e.clearMultiSelection=e.clearMultiSelection.bind(e),e}return br()(t,e),fr()(t,[{key:"selectAll",value:function(e){var t=this.props,n=t.uids,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.multiSelectedBlockUids,r=t.onRemove,o=t.isLocked;n.length&&(e.preventDefault(),o||r(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;return wp.element.createElement(sr.Fragment,null,wp.element.createElement(gr.KeyboardShortcuts,{shortcuts:(e={},b()(e,oa.primary("a"),this.selectAll),b()(e,oa.primary("z"),this.undoOrRedo),b()(e,oa.primaryShift("z"),this.undoOrRedo),b()(e,"backspace",this.deleteSelectedBlocks),b()(e,"del",this.deleteSelectedBlocks),b()(e,"escape",this.clearMultiSelection),e)}),wp.element.createElement(gr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:b()({},oa.primary("s"),this.save)}))}}]),t}(sr.Component),sa=Object(sr.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getBlockOrder,r=t.getMultiSelectedBlockUids,o=t.hasMultiSelection,i=t.getEditorSettings,s=t.isEditedPostDirty,a=i().templateLock;return{uids:n(),multiSelectedBlockUids:r(),hasMultiSelection:o(),isLocked:!!a,isDirty:s()}}),Object(i.withDispatch)(function(e,t){var n=e("core/editor"),r=n.clearSelectedBlock,o=n.multiSelect,i=n.redo,s=n.undo,a=n.removeBlocks,c=n.savePost;return{onSave:function(){t.isDirty&&c()},clearSelectedBlock:r,onMultiSelect:o,onRedo:i,onUndo:s,onRemove:a}})])(ia),aa=no.keycodes.displayShortcut;var ca=Object(sr.compose)([Object(i.withSelect)(function(e){return{hasRedo:e("core/editor").hasEditorRedo()}}),Object(i.withDispatch)(function(e){return{redo:function(){return e("core/editor").redo()}}})])(function(e){var t=e.hasRedo,n=e.redo;return wp.element.createElement(gr.IconButton,{icon:"redo",label:Object(q.__)("Redo"),shortcut:aa.primaryShift("z"),disabled:!t,onClick:n,className:"editor-history__undo"})}),la=no.keycodes.displayShortcut;var ua=Object(sr.compose)([Object(i.withSelect)(function(e){return{hasUndo:e("core/editor").hasEditorUndo()}}),Object(i.withDispatch)(function(e){return{undo:function(){return e("core/editor").undo()}}})])(function(e){var t=e.hasUndo,n=e.undo;return wp.element.createElement(gr.IconButton,{icon:"undo",label:Object(q.__)("Undo"),shortcut:la.primary("z"),disabled:!t,onClick:n,className:"editor-history__undo"})});n(601);var da=Object(sr.compose)([Object(i.withSelect)(function(e){return{isValid:e("core/editor").isValidTemplate()}}),Object(i.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=d()(e,["isValid"]);return t?null:wp.element.createElement(gr.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning"},wp.element.createElement("p",null,Object(q.__)("The content of your post doesn't match the template assigned to your post type.")),wp.element.createElement("div",null,wp.element.createElement(gr.Button,{isDefault:!0,onClick:n.resetTemplateValidity},Object(q.__)("Keep it as is")),wp.element.createElement(gr.Button,{onClick:function(){window.confirm(Object(q.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0},Object(q.__)("Reset the template"))))});var pa=Object(sr.compose)([Object(i.withSelect)(function(e){return{notices:e("core/editor").getNotices()}}),Object(i.withDispatch)(function(e){return{onRemove:e("core/editor").removeNotice}})])(function(e){return wp.element.createElement(gr.NoticeList,e,wp.element.createElement(da,null))});var fa=Object(i.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 ha=Object(i.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;return Object(O.some)(Object(O.castArray)(r),function(e){return Object(O.get)(t,["supports",e],!1)})?n:null});function ma(e){var t=e.onUpdateOrder,n=e.instanceId,r=e.order,o="editor-page-attributes__order-"+n;return wp.element.createElement(sr.Fragment,null,wp.element.createElement("label",{htmlFor:o},Object(q.__)("Order")),wp.element.createElement("input",{type:"text",value:r||0,onChange:function(e){var n=Number(e.target.value);n>=0&&t(n)},id:o,size:6}))}var va=Object(sr.compose)([Object(i.withSelect)(function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}}),Object(i.withDispatch)(function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}),gr.withInstanceId])(function(e){return wp.element.createElement(ha,{supportKeys:"page-attributes"},wp.element.createElement(ma,e))});var ba=Object(i.withSelect)(function(e){var t=e("core").getPostType,n=e("core/editor"),r=n.getCurrentPostId,o=n.getEditedPostAttribute,i=o("type");return{postId:r(),parent:o("parent"),postType:t(i),postTypeSlug:i}}),ga=Object(i.withDispatch)(function(e){var t=e("core/editor").editPost;return{onUpdateParent:function(e){t({parent:e||0})}}}),ya=Object(gr.withAPIData)(function(e,t){var n=t.type,r=e.postTypeSlug,o=e.postId,i=Object(O.get)(e,["postType","hierarchical"],!1),s=Object(es.stringify)({context:"edit",per_page:-1,exclude:o,parent_exclude:o,_fields:["id","parent","title"],orderby:"menu_order",order:"asc"});return i?{items:"/wp/v2/"+n(r)+"?"+s}:{}}),ka=Object(sr.compose)([ba,ga,ya])(function(e){var t=e.parent,n=e.postType,r=e.items,o=e.onUpdateParent,i=Object(O.get)(n,["hierarchical"],!1),s=Object(O.get)(n,["labels","parent_item_colon"]),a=Object(O.get)(r,["data"],[]);if(!i||!s||!a.length)return null;var c=Object(no.buildTermsTree)(a.map(function(e){return{id:e.id,parent:e.parent,name:e.title.raw?e.title.raw:"#"+e.id+" ("+Object(q.__)("no title")+")"}}));return wp.element.createElement(gr.TreeSelect,{label:s,noOptionLabel:"("+Object(q.__)("no parent")+")",tree:c,selectedId:t,onChange:o})});n(600);var _a=Object(sr.compose)(Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}}),Object(i.withDispatch)(function(e){return{onUpdate:function(t){e("core/editor").editPost({template:t||""})}}}),gr.withInstanceId)(function(e){var t=e.availableTemplates,n=e.selectedTemplate,r=e.instanceId,o=e.onUpdate;if(Object(O.isEmpty)(t))return null;var i="template-selector-"+r,s=function(e){return o(e.target.value)};return wp.element.createElement("div",{className:"editor-page-attributes__template"},wp.element.createElement("label",{htmlFor:i},Object(q.__)("Template:")),wp.element.createElement("select",{id:i,value:n,onBlur:s,onChange:s},Object(O.map)(t,function(e,t){return wp.element.createElement("option",{key:t,value:t},e)})))});var Oa=Object(sr.compose)([Object(i.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()}}),gr.withInstanceId])(function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||n.length<2?null:wp.element.createElement(ha,{supportKeys:"author"},r)}),wa=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.setAuthorId=e.setAuthorId.bind(e),e}return br()(t,e),fr()(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 wp.element.createElement(Oa,null,wp.element.createElement("label",{htmlFor:o},Object(q.__)("Author")),wp.element.createElement("select",{id:o,value:t,onChange:this.setAuthorId,className:"editor-post-author__select"},r.map(function(e){return wp.element.createElement("option",{key:e.id,value:e.id},e.name)})))}}]),t}(sr.Component),Sa=Object(sr.compose)([Object(i.withSelect)(function(e){return{postAuthor:e("core/editor").getEditedPostAttribute("author"),authors:e("core").getAuthors()}}),Object(i.withDispatch)(function(e){return{onUpdateAuthor:function(t){e("core/editor").editPost({author:t})}}}),gr.withInstanceId])(wa);var Ea=Object(sr.compose)([Object(i.withSelect)(function(e){return{commentStatus:e("core/editor").getEditedPostAttribute("comment_status")}}),Object(i.withDispatch)(function(e){return{editPost:e("core/editor").editPost}}),gr.withInstanceId])(function(e){var t=e.commentStatus,n=void 0===t?"open":t,r=e.instanceId,o=d()(e,["commentStatus","instanceId"]),i="allow-comments-toggle-"+r;return[wp.element.createElement("label",{key:"label",htmlFor:i},Object(q.__)("Allow Comments")),wp.element.createElement(gr.FormToggle,{key:"toggle",checked:"open"===n,onChange:function(){return o.editPost({comment_status:"open"===n?"closed":"open"})},id:i})]});n(599);var ja=Object(sr.compose)([Object(i.withSelect)(function(e){return{excerpt:e("core/editor").getEditedPostAttribute("excerpt")}}),Object(i.withDispatch)(function(e){return{onUpdateExcerpt:function(t){e("core/editor").editPost({excerpt:t})}}})])(function(e){var t=e.excerpt,n=e.onUpdateExcerpt;return wp.element.createElement("div",{className:"editor-post-excerpt"},wp.element.createElement(gr.TextareaControl,{label:Object(q.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(e){return n(e)},value:t}),wp.element.createElement(gr.ExternalLink,{href:"https://codex.wordpress.org/Excerpt"},Object(q.__)("Learn more about manual excerpts")))});var Ca=function(e){return wp.element.createElement(ha,l()({},e,{supportKeys:"excerpt"}))};n(598);var Ta=Object(i.withSelect)(function(e){return{themeSupports:(0,e("core").getThemeSupports)()}})(function(e){var t=e.themeSupports,n=e.children,r=e.supportKeys;return Object(O.some)(Object(O.castArray)(r),function(e){return Object(O.get)(t,[e],!1)})?n:null});var Pa=function(e){return wp.element.createElement(Ta,{supportKeys:"post-thumbnails"},wp.element.createElement(ha,l()({},e,{supportKeys:"thumbnail"})))},Ba=Object(q.__)("Set featured image"),xa=Object(q.__)("Remove image");var Ia=Object(i.withSelect)(function(e){var t=e("core"),n=t.getMedia,r=t.getPostType,o=e("core/editor").getEditedPostAttribute,i=o("featured_media");return{media:i?n(i):null,postType:r(o("type")),featuredImageId:i}}),Da=Object(i.withDispatch)(function(e){var t=e("core/editor").editPost;return{onUpdateImage:function(e){t({featured_media:e.id})},onRemoveImage:function(){t({featured_media:0})}}}),Aa=Object(sr.compose)(Ia,Da)(function(e){var t=e.featuredImageId,n=e.onUpdateImage,r=e.onRemoveImage,o=e.media,i=e.postType,s=Object(O.get)(i,["labels"],{});return wp.element.createElement(Pa,null,wp.element.createElement("div",{className:"editor-post-featured-image"},!!t&&wp.element.createElement(fo,{title:Object(q.__)("Set featured image"),onSelect:n,type:"image",modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return wp.element.createElement(gr.Button,{className:"editor-post-featured-image__preview",onClick:t},o&&wp.element.createElement(gr.ResponsiveWrapper,{naturalWidth:o.media_details.width,naturalHeight:o.media_details.height},wp.element.createElement("img",{src:o.source_url,alt:Object(q.__)("Featured image")})),!o&&wp.element.createElement(gr.Spinner,null))}}),!!t&&o&&!o.isLoading&&wp.element.createElement(fo,{title:s.set_featured_image||Ba,onSelect:n,type:"image",modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return wp.element.createElement(gr.Button,{onClick:t,isDefault:!0,isLarge:!0},Object(q.__)("Replace image"))}}),!t&&wp.element.createElement("div",null,wp.element.createElement(fo,{title:s.set_featured_image||Ba,onSelect:n,type:"image",modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return wp.element.createElement(gr.Button,{className:"editor-post-featured-image__toggle",onClick:t},Object(q.__)("Set featured image"))}})),!!t&&wp.element.createElement(gr.Button,{onClick:r,isLink:!0,isDestructive:!0},s.remove_featured_image||xa)))});n(597);var Na=Object(i.withSelect)(function(e){return{disablePostFormats:e("core/editor").getEditorSettings().disablePostFormats}})(function(e){var t=e.disablePostFormats,n=d()(e,["disablePostFormats"]);return!t&&wp.element.createElement(ha,l()({},n,{supportKeys:"post-formats"}))}),La=[{id:"aside",caption:Object(q.__)("Aside")},{id:"gallery",caption:Object(q.__)("Gallery")},{id:"link",caption:Object(q.__)("Link")},{id:"image",caption:Object(q.__)("Image")},{id:"quote",caption:Object(q.__)("Quote")},{id:"standard",caption:Object(q.__)("Standard")},{id:"status",caption:Object(q.__)("Status")},{id:"video",caption:Object(q.__)("Video")},{id:"audio",caption:Object(q.__)("Audio")},{id:"chat",caption:Object(q.__)("Chat")}];var Ra=Object(sr.compose)([Object(i.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(i.withDispatch)(function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}}),gr.withInstanceId])(function(e){var t=e.onUpdatePostFormat,n=e.postFormat,r=void 0===n?"standard":n,o=e.supportedFormats,i=e.suggestedFormat,s="post-format-selector-"+e.instanceId,a=La.filter(function(e){return Object(O.includes)(o,e.id)}),c=Object(O.find)(a,function(e){return e.id===i});return wp.element.createElement(Na,null,wp.element.createElement("div",{className:"editor-post-format"},wp.element.createElement("div",{className:"editor-post-format__content"},wp.element.createElement("label",{htmlFor:s},Object(q.__)("Post Format")),wp.element.createElement("select",{value:r,onChange:function(e){return t(e.target.value)},id:s},a.map(function(e){return wp.element.createElement("option",{key:e.id,value:e.id},e.caption)}))),c&&c.id!==r&&wp.element.createElement("div",{className:"editor-post-format__suggestion"},Object(q.__)("Suggestion:")," ",wp.element.createElement(gr.Button,{isLink:!0,onClick:function(){return t(c.id)}},c.caption))))});n(596);var Ua=Object(i.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:wp.element.createElement(ha,{supportKeys:"revisions"},r)});var Ma=Object(i.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 wp.element.createElement(Ua,null,wp.element.createElement(gr.IconButton,{href:as("revision.php",{revision:t,gutenberg:!0}),className:"editor-post-last-revision__title",icon:"backup"},Object(q.sprintf)(Object(q._n)("%d Revision","%d Revisions",n),n)))});var Fa=Object(sr.compose)(Object(i.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 Ha=Object(sr.compose)(Object(i.withSelect)(function(e){return{status:e("core/editor").getEditedPostAttribute("status")}}),Object(i.withDispatch)(function(e){return{onUpdateStatus:function(t){e("core/editor").editPost({status:t})}}}),gr.withInstanceId)(function(e){var t=e.instanceId,n=e.status,r=e.onUpdateStatus,o="pending-toggle-"+t;return wp.element.createElement(Fa,null,wp.element.createElement("label",{htmlFor:o},Object(q.__)("Pending Review")),wp.element.createElement(gr.FormToggle,{id:o,checked:"pending"===n,onChange:function(){r("pending"===n?"draft":"pending")}}))});var Va=Object(sr.compose)([Object(i.withSelect)(function(e){return{pingStatus:e("core/editor").getEditedPostAttribute("ping_status")}}),Object(i.withDispatch)(function(e){return{editPost:e("core/editor").editPost}}),gr.withInstanceId])(function(e){var t=e.pingStatus,n=void 0===t?"open":t,r=e.instanceId,o=d()(e,["pingStatus","instanceId"]),i="allow-pingbacks-toggle-"+r;return[wp.element.createElement("label",{key:"label",htmlFor:i},Object(q.__)("Allow Pingbacks & Trackbacks")),wp.element.createElement(gr.FormToggle,{key:"toggle",checked:"open"===n,onChange:function(){return o.editPost({ping_status:"open"===n?"closed":"open"})},id:i})]}),Ka=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.saveForPreview=e.saveForPreview.bind(e),e}return br()(t,e),fr()(t,[{key:"componentDidUpdate",value:function(e){var t=this.props.previewLink;t&&t!==e.previewLink&&this.setPreviewWindowLink(t)}},{key:"setPreviewWindowLink",value:function(e){var t=this.previewWindow;t&&t.location.href!==e&&(t.location=e)}},{key:"getWindowTarget",value:function(){return"wp-preview-"+this.props.postId}},{key:"saveForPreview",value:function(e){var t=this,n=this.props,r=n.isDirty,o=n.isNew;if(r||o){this.props.autosave(),e.preventDefault(),this.previewWindow=window.open("about:blank",this.getWindowTarget());this.previewWindow.document.write('\n\t\t\t<div>\n\t\t\t\t<p>Please wait&hellip;</p>\n\t\t\t\t<p>Generating preview.</p>\n\t\t\t</div>\n\t\t\t<style>\n\t\t\t\tbody {\n\t\t\t\t\tmargin: 0;\n\t\t\t\t}\n\t\t\t\tdiv {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tflex-direction: column;\n\t\t\t\t\talign-items: center;\n\t\t\t\t\tjustify-content: center;\n\t\t\t\t\theight: 100vh;\n\t\t\t\t\twidth: 100vw;\n\t\t\t\t}\n\t\t\t\tp {\n\t\t\t\t\ttext-align: center;\n\t\t\t\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\t\t\t}\n\t\t\t</style>'),this.previewWindow.document.close(),this.previewWindow.onbeforeunload=function(){return delete t.previewWindow}}}},{key:"render",value:function(){var e=this.props,t=e.currentPostLink,n=e.isSaveable;return wp.element.createElement(gr.Button,{className:"editor-post-preview",isLarge:!0,href:t,onClick:this.saveForPreview,target:this.getWindowTarget(),disabled:!n},Object(q._x)("Preview","imperative verb"),wp.element.createElement(Pi.DotTip,{id:"core/editor.preview"},Object(q.__)("Click ‘Preview’ to load a preview of this page, so you can make sure you’re happy with your blocks.")))}}]),t}(sr.Component),Wa=Object(sr.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getCurrentPostId,r=t.getCurrentPostAttribute,o=t.getAutosaveAttribute,i=t.getEditedPostAttribute,s=t.isEditedPostDirty,a=t.isEditedPostNew,c=t.isEditedPostSaveable,l=(0,e("core").getPostType)(i("type"));return{postId:n(),currentPostLink:r("link"),previewLink:o("preview_link"),isDirty:s(),isNew:a(),isSaveable:c(),isViewable:Object(O.get)(l,["viewable"],!1)}}),Object(i.withDispatch)(function(e){return{autosave:e("core/editor").autosave}}),Object(gr.ifCondition)(function(e){return e.isViewable})])(Ka);var za=Object(sr.compose)([Object(i.withSelect)(function(e,t){var n=t.forceIsSaving,r=e("core/editor"),o=r.isCurrentPostPublished,i=r.isEditedPostBeingScheduled,s=r.isSavingPost,a=r.isPublishingPost,c=r.getCurrentPost,l=r.getCurrentPostType;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||s(),isPublishing:a(),hasPublishAction:Object(O.get)(c(),["_links","wp:action-publish"],!1),postType:l()}})])(function(e){var t=e.isPublished,n=e.isBeingScheduled,r=e.isSaving,o=e.isPublishing,i=e.hasPublishAction;return o?Object(q.__)("Publishing…"):t&&r?Object(q.__)("Updating…"):n&&r?Object(q.__)("Scheduling…"):i?t?Object(q.__)("Update"):n?Object(q.__)("Schedule"):Object(q.__)("Publish"):Object(q.__)("Submit for Review")});var qa=Object(sr.compose)([Object(i.withSelect)(function(e,t){var n=t.forceIsSaving,r=t.forceIsDirty,o=e("core/editor"),i=o.isSavingPost,s=o.isEditedPostBeingScheduled,a=o.getEditedPostVisibility,c=o.isEditedPostSaveable,l=o.isEditedPostPublishable,u=o.getCurrentPost,d=o.getCurrentPostType;return{isSaving:n||i(),isBeingScheduled:s(),visibility:a(),isSaveable:c(),isPublishable:r||l(),hasPublishAction:Object(O.get)(u(),["_links","wp:action-publish"],!1),postType:d()}}),Object(i.withDispatch)(function(e){var t=e("core/editor"),n=t.editPost;return{onStatusChange:function(e){return n({status:e})},onSave:t.savePost}})])(function(e){var t=e.isSaving,n=e.onStatusChange,r=e.onSave,o=e.isBeingScheduled,i=e.visibility,s=e.isPublishable,a=e.isSaveable,c=e.hasPublishAction,l=e.onSubmit,u=void 0===l?O.noop:l,d=e.forceIsSaving,p=s&&a,f=void 0;return f=c?o?"future":"private"===i?"private":"publish":"pending",wp.element.createElement(gr.Button,{className:"editor-post-publish-button",isPrimary:!0,isLarge:!0,onClick:function(){u(),n(f),r()},disabled:!p,isBusy:t},wp.element.createElement(za,{forceIsSaving:d}))}),Ga=(n(595),[{value:"public",label:Object(q.__)("Public"),info:Object(q.__)("Visible to everyone.")},{value:"private",label:Object(q.__)("Private"),info:Object(q.__)("Only visible to site admins and editors.")},{value:"password",label:Object(q.__)("Password Protected"),info:Object(q.__)("Protected with a password you choose. Only those with the password can view this post.")}]),Ya=function(e){function t(e){dr()(this,t);var n=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return n.setPublic=n.setPublic.bind(n),n.setPrivate=n.setPrivate.bind(n),n.setPasswordProtected=n.setPasswordProtected.bind(n),n.updatePassword=n.updatePassword.bind(n),n.state={hasPassword:!!e.password},n}return br()(t,e),fr()(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(q.__)("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,o=e.password;n("private"===t?"draft":r,o||""),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[wp.element.createElement("fieldset",{key:"visibility-selector"},wp.element.createElement("legend",{className:"editor-post-visibility__dialog-legend"},Object(q.__)("Post Visibility")),Ga.map(function(e){var t=e.value,n=e.label,i=e.info;return wp.element.createElement("div",{key:t,className:"editor-post-visibility__choice"},wp.element.createElement("input",{type:"radio",name:"editor-post-visibility__setting-"+r,value:t,onChange:o[t].onSelect,checked:o[t].checked,id:"editor-post-"+t+"-"+r,"aria-describedby":"editor-post-"+t+"-"+r+"-description",className:"editor-post-visibility__dialog-radio"}),wp.element.createElement("label",{htmlFor:"editor-post-"+t+"-"+r,className:"editor-post-visibility__dialog-label"},n),wp.element.createElement("p",{id:"editor-post-"+t+"-"+r+"-description",className:"editor-post-visibility__dialog-info"},i))})),this.state.hasPassword&&wp.element.createElement("div",{className:"editor-post-visibility__dialog-password",key:"password-selector"},wp.element.createElement("label",{htmlFor:"editor-post-visibility__dialog-password-input-"+r,className:"screen-reader-text"},Object(q.__)("Create password")),wp.element.createElement("input",{className:"editor-post-visibility__dialog-password-input",id:"editor-post-visibility__dialog-password-input-"+r,type:"text",onChange:this.updatePassword,value:n,placeholder:Object(q.__)("Use a secure password")}))]}}]),t}(sr.Component),Xa=Object(sr.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditedPostVisibility;return{status:n("status"),visibility:r(),password:n("password")}}),Object(i.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})}}}),gr.withInstanceId])(Ya);var $a=Object(i.withSelect)(function(e){return{visibility:e("core/editor").getEditedPostVisibility()}})(function(e){var t=e.visibility;return Object(O.find)(Ga,{value:t}).label});var Ja=Object(sr.compose)([Object(i.withSelect)(function(e){return{date:e("core/editor").getEditedPostAttribute("date")}}),Object(i.withDispatch)(function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}})])(function(e){var t=e.date,n=e.onUpdateDate,r=Object(rt.getSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return wp.element.createElement(gr.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:n,locale:r.l10n.locale,is12Hour:o})});var Qa=Object(i.withSelect)(function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})(function(e){var t=e.date,n=Object(rt.getSettings)();return t?Object(rt.dateI18n)(n.formats.datetime,t):Object(q.__)("Immediately")});var Za=Object(i.withSelect)(function(e){var t=e("core/editor").getCurrentPost;return{hasPublishAction:Object(O.get)(t(),["_links","wp:action-publish"],!1)}})(function(e){var t=e.hasPublishAction,n=e.children;return wp.element.createElement("div",{className:"editor-post-publish-panel__prepublish"},wp.element.createElement("div",null,wp.element.createElement("strong",null,t?Object(q.__)("Are you ready to publish?"):Object(q.__)("Are you ready to submit for review?"))),wp.element.createElement("p",null,t?Object(q.__)("Here, you can do a last-minute check up of your settings below, before you publish."):Object(q.__)("When you're ready, submit your work for review, and an Editor will be able to approve it for you.")),t&&wp.element.createElement(sr.Fragment,null,wp.element.createElement(gr.PanelBody,{initialOpen:!1,title:[Object(q.__)("Visibility: "),wp.element.createElement("span",{className:"editor-post-publish-panel__link",key:"label"},wp.element.createElement($a,null))]},wp.element.createElement(Xa,null)),wp.element.createElement(gr.PanelBody,{initialOpen:!1,title:[Object(q.__)("Publish: "),wp.element.createElement("span",{className:"editor-post-publish-panel__link",key:"label"},wp.element.createElement(Qa,null))]},wp.element.createElement(Ja,null)),n))}),ec=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.state={showCopyConfirmation:!1},e.onCopy=e.onCopy.bind(e),e.onSelectInput=e.onSelectInput.bind(e),e}return br()(t,e),fr()(t,[{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","view_item"]),s=n?wp.element.createElement(sr.Fragment,null,Object(q.__)("is now scheduled. It will go live on")," ",wp.element.createElement(Qa,null),"."):Object(q.__)("is now live."),a=n?Object(q.__)("The post address will be:"):Object(q.__)("What's next?");return wp.element.createElement("div",{className:"post-publish-panel__postpublish"},wp.element.createElement(gr.PanelBody,{className:"post-publish-panel__postpublish-header"},wp.element.createElement("a",{href:r.link},r.title||Object(q.__)("(no title)"))," ",s),wp.element.createElement(gr.PanelBody,null,wp.element.createElement("div",null,wp.element.createElement("strong",null,a)),wp.element.createElement("input",{className:"post-publish-panel__postpublish-link-input",readOnly:!0,value:r.link,onFocus:this.onSelectInput,type:"text"}),wp.element.createElement("div",{className:"post-publish-panel__postpublish-buttons"},!n&&wp.element.createElement(gr.Button,{isDefault:!0,href:r.link},i),wp.element.createElement(gr.ClipboardButton,{isDefault:!0,text:r.link,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(q.__)("Copied!"):Object(q.__)("Copy Link")))),t)}}]),t}(sr.Component),tc=Object(i.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()}})(ec),nc=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.onSubmit=e.onSubmit.bind(e),e.state={loading:!1,submitted:!1},e}return br()(t,e),fr()(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;e.hasPublishAction?this.setState({loading:!0}):t()}},{key:"render",value:function(){var e=this.props,t=e.isScheduled,n=e.onClose,r=e.forceIsDirty,o=e.forceIsSaving,i=e.PrePublishExtension,s=e.PostPublishExtension,a=this.state,c=a.loading,l=a.submitted;return wp.element.createElement("div",{className:"editor-post-publish-panel"},wp.element.createElement("div",{className:"editor-post-publish-panel__header"},!l&&wp.element.createElement("div",{className:"editor-post-publish-panel__header-publish-button"},wp.element.createElement(qa,{onSubmit:this.onSubmit,forceIsDirty:r,forceIsSaving:o})),l&&wp.element.createElement("div",{className:"editor-post-publish-panel__header-published"},t?Object(q.__)("Scheduled"):Object(q.__)("Published")),wp.element.createElement(gr.IconButton,{onClick:n,icon:"no-alt",label:Object(q.__)("Close Publish Panel")})),wp.element.createElement("div",{className:"editor-post-publish-panel__content"},!c&&!l&&wp.element.createElement(Za,null,i&&wp.element.createElement(i,null)),c&&!l&&wp.element.createElement(gr.Spinner,null),l&&wp.element.createElement(tc,null,s&&wp.element.createElement(s,null))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.submitted||e.isSaving||!e.isPublished&&!e.isScheduled?null:{submitted:!0,loading:!1}}}]),t}(sr.Component),rc=Object(sr.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType,o=t.isCurrentPostPublished,i=t.isCurrentPostScheduled,s=t.isSavingPost,a=t.isEditedPostDirty;return{postType:r(),hasPublishAction:Object(O.get)(n(),["_links","wp:action-publish"],!1),isPublished:o(),isScheduled:i(),isSaving:s(),isDirty:a()}})])(nc);var oc=Object(sr.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isEditedPostSaveable,o=t.isEditedPostPublishable,i=t.isCurrentPostPending,s=t.isCurrentPostPublished,a=t.isEditedPostBeingScheduled,c=t.isCurrentPostScheduled,l=t.getCurrentPost,u=t.getCurrentPostType;return{hasPublishAction:Object(O.get)(l(),["_links","wp:action-publish"],!1),isSaving:n(),isSaveable:r(),isPublishable:o(),isPending:i(),isPublished:s(),isScheduled:c(),isBeingScheduled:a(),postType:u()}})])(function(e){var t=e.hasPublishAction,n=e.isSaving,r=e.isPublishable,o=e.isSaveable,i=e.isPublished,s=e.isBeingScheduled,a=e.isPending,c=e.isScheduled,l=e.onToggle,u=e.isOpen,d=e.forceIsDirty,p=e.forceIsSaving,f=!n&&!p&&r&&o||i;return i||c&&s||a&&!t?wp.element.createElement(qa,{forceIsDirty:d,forceIsSaving:p}):wp.element.createElement(gr.Button,{className:"editor-post-publish-panel__toggle",isPrimary:!0,onClick:l,"aria-expanded":u,disabled:!f,isBusy:n&&i},s?Object(q.__)("Schedule…"):Object(q.__)("Publish…"),wp.element.createElement(Pi.DotTip,{id:"core/editor.publish"},Object(q.__)("Finished writing? That’s great, let’s get this published right now. Just click ‘Publish’ and you’re good to go.")))});n(594);var ic=Object(sr.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isCurrentPostPublished;return{isSaving:n(),isPublished:r()}}),Object(i.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.onClick;return n?wp.element.createElement(gr.Button,{className:"editor-post-switch-to-draft",isLarge:!0,onClick:function(){window.confirm(Object(q.__)("Are you sure you want to unpublish this post?"))&&r()},disabled:t},Object(q.__)("Switch to Draft")):null}),sc=no.keycodes.displayShortcut,ac=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.state={forceSavedMessage:!1},e}return br()(t,e),fr()(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.isNew,n=e.isPublished,r=e.isDirty,o=e.isSaving,i=e.isSaveable,s=e.onSave,a=e.isAutosaving,c=this.state.forceSavedMessage;if(o){var l=ir()("editor-post-saved-state","is-saving",{"is-autosaving":a});return wp.element.createElement("span",{className:l},wp.element.createElement(gr.Dashicon,{icon:"cloud"}),a?Object(q.__)("Autosaving"):Object(q.__)("Saving"))}return n?wp.element.createElement(ic,null):i?c||!t&&!r?wp.element.createElement("span",{className:"editor-post-saved-state is-saved"},wp.element.createElement(gr.Dashicon,{icon:"saved"}),Object(q.__)("Saved")):wp.element.createElement(gr.IconButton,{className:"editor-post-save-draft",onClick:s,icon:"cloud-upload",shortcut:sc.primary("s")},Object(q.__)("Save Draft")):null}}]),t}(sr.Component),cc=Object(sr.compose)([Object(i.withSelect)(function(e,t){var n=t.forceIsDirty,r=t.forceIsSaving,o=e("core/editor"),i=o.isEditedPostNew,s=o.isCurrentPostPublished,a=o.isEditedPostDirty,c=o.isSavingPost,l=o.isEditedPostSaveable,u=o.getCurrentPost,d=o.isAutosavingPost;return{post:u(),isNew:i(),isPublished:s(),isDirty:n||a(),isSaving:r||c(),isSaveable:l(),isAutosaving:d()}}),Object(i.withDispatch)(function(e){return{onSave:e("core/editor").savePost}}),gr.withSafeTimeout])(ac);var lc=Object(sr.compose)([Object(i.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 uc=Object(sr.compose)([Object(i.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 dc=Object(sr.compose)([Object(i.withSelect)(function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}}),Object(i.withDispatch)(function(e){return{onUpdateSticky:function(t){e("core/editor").editPost({sticky:t})}}}),gr.withInstanceId])(function(e){var t=e.onUpdateSticky,n=e.postSticky,r=void 0!==n&&n,o="post-sticky-toggle-"+e.instanceId;return wp.element.createElement(uc,null,wp.element.createElement("label",{htmlFor:o},Object(q.__)("Stick to the Front Page")),wp.element.createElement(gr.FormToggle,{key:"toggle",checked:r,onChange:function(){return t(!r)},id:o}))}),pc=(n(593),n(79)),fc=n.n(pc),hc=n(137),mc={per_page:-1,orderby:"count",order:"desc",_fields:"id,name,parent"},vc=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.findTerm=e.findTerm.bind(e),e.onChange=e.onChange.bind(e),e.onChangeFormName=e.onChangeFormName.bind(e),e.onChangeFormParent=e.onChangeFormParent.bind(e),e.onAddTerm=e.onAddTerm.bind(e),e.onToggleForm=e.onToggleForm.bind(e),e.state={loading:!0,availableTermsTree:[],availableTerms:[],adding:!1,formName:"",formParent:"",showForm:!1},e}return br()(t,e),fr()(t,[{key:"onChange",value:function(e){var t=this.props,n=t.onUpdateTerms,r=t.terms,o=void 0===r?[]:r,i=t.restBase,s=parseInt(e.target.value,10);n(-1!==o.indexOf(s)?Object(O.without)(o,s):[].concat(f()(o),[s]),i)}},{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.restBase,i=n.terms,s=n.slug,a=this.state,c=a.formName,u=a.formParent,d=a.adding,p=a.availableTerms;if(""!==c&&!d){var h=this.findTerm(p,u,c);if(h)return Object(O.some)(i,function(e){return e===h.id})||r([].concat(f()(i),[h.id]),o),void this.setState({formName:"",formParent:""});new fc.a(function(e,n){t.setState({adding:!0});var r=wp.api.getTaxonomyRoute(t.props.slug);t.addRequest=X()({path:"/wp/v2/"+r,method:"POST",data:{name:c,parent:u||void 0}}),t.addRequest.then(e,function(o){if("term_exists"===(o.responseJSON&&o.responseJSON.code))return t.addRequest=X()({path:"/wp/v2/"+r+"?"+Object(hc.stringify)(l()({},mc,{parent:u||0,search:c}))}),t.addRequest.then(function(n){e(t.findTerm(n,u,c))},n);n(o)})}).then(function(e){var n=!!Object(O.find)(t.state.availableTerms,function(t){return t.id===e.id})?t.state.availableTerms:[e].concat(f()(t.state.availableTerms)),a=Object(q.sprintf)(Object(q._x)("%s added","term"),Object(O.get)(t.props.taxonomy,["data","labels","singular_name"],"category"===s?Object(q.__)("Category"):Object(q.__)("Term")));t.props.speak(a,"assertive"),t.addRequest=null,t.setState({adding:!1,formName:"",formParent:"",availableTerms:n,availableTermsTree:Object(no.buildTermsTree)(n)}),r([].concat(f()(i),[e.id]),o)},function(e){"abort"!==e.statusText&&(t.addRequest=null,t.setState({adding:!1}))})}}},{key:"componentDidMount",value:function(){var e=this,t=wp.api.getTaxonomyRoute(this.props.slug);this.fetchRequest=X()({path:"/wp/v2/"+t+"?"+Object(hc.stringify)(mc)}),this.fetchRequest.then(function(t){var n=Object(no.buildTermsTree)(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:"componentWillUnmount",value:function(){Object(O.invoke)(this.fetchRequest,["abort"]),Object(O.invoke)(this.addRequest,["abort"])}},{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-"+e.id;return wp.element.createElement("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},wp.element.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}),wp.element.createElement("label",{htmlFor:n},Object(O.unescape)(e.name)),!!e.children.length&&wp.element.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,s=i.availableTermsTree,a=i.availableTerms,c=i.formName,l=i.formParent,u=i.loading,d=i.showForm,p=function(e,r,o){return Object(O.get)(n,["data","labels",e],"category"===t?r:o)},h=p("add_new_item",Object(q.__)("Add new category"),Object(q.__)("Add new term")),m=p("new_item_name",Object(q.__)("Add new category"),Object(q.__)("Add new term")),v=p("parent_item",Object(q.__)("Parent Category"),Object(q.__)("Parent Term")),b="— "+v+" —",g=h,y="editor-post-taxonomies__hierarchical-terms-input-"+r;return[].concat(f()(this.renderTerms(s)),[!u&&o&&wp.element.createElement(gr.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":d,isLink:!0},h),d&&wp.element.createElement("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},wp.element.createElement("label",{htmlFor:y,className:"editor-post-taxonomies__hierarchical-terms-label"},m),wp.element.createElement("input",{type:"text",id:y,className:"editor-post-taxonomies__hierarchical-terms-input",value:c,onChange:this.onChangeFormName,required:!0}),!!a.length&&wp.element.createElement(gr.TreeSelect,{label:v,noOptionLabel:b,onChange:this.onChangeFormParent,selectedId:l,tree:s}),wp.element.createElement(gr.Button,{isDefault:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},g))])}}]),t}(sr.Component),bc=Object(sr.compose)([Object(gr.withAPIData)(function(e){return{taxonomy:"/wp/v2/taxonomies/"+e.slug+"?context=edit"}}),Object(i.withSelect)(function(e,t){var n=e("core/editor").getCurrentPost;return{hasCreateAction:Object(O.get)(n(),["_links","wp:action-create-"+t.restBase],!1),hasAssignAction:Object(O.get)(n(),["_links","wp:action-assign-"+t.restBase],!1),terms:e("core/editor").getEditedPostAttribute(t.restBase)}}),Object(i.withDispatch)(function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(b()({},n,t))}}}),gr.withSpokenMessages,gr.withInstanceId])(vc),gc={per_page:-1,orderby:"count",order:"desc",_fields:"id,name"},yc=function(e,t){return e.toLowerCase()===t.toLowerCase()},kc=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.onChange=e.onChange.bind(e),e.searchTerms=Object(O.throttle)(e.searchTerms.bind(e),500),e.findOrCreateTerm=e.findOrCreateTerm.bind(e),e.state={loading:!1,availableTerms:[],selectedTerms:[]},e}return br()(t,e),fr()(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:100}),this.initRequest.then(function(){e.setState({loading:!1})},function(t){"abort"!==t.statusText&&e.setState({loading:!1})})),this.searchTerms()}},{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=l()({},gc,t),r=wp.api.getTaxonomyRoute(this.props.slug),o=X()({path:"/wp/v2/"+r+"?"+Object(hc.stringify)(n)});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]:[]).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:t})}},{key:"findOrCreateTerm",value:function(e){var t=this;return new fc.a(function(n,r){var o=wp.api.getTaxonomyRoute(t.props.slug);X()({path:"/wp/v2/"+o,method:"POST",data:{name:e}}).then(n,function(i){if("term_exists"===(i.responseJSON&&i.responseJSON.code))return t.addRequest=X()({path:"/wp/v2/"+o+"?"+Object(hc.stringify)(l()({},gc,{search:e}))}),t.addRequest.then(function(t){n(Object(O.find)(t,function(t){return yc(t.name,e)}))},r);r(i)})})}},{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 yc(t.name,e)})}),o=function(e,t){return e.map(function(e){return Object(O.find)(t,function(t){return yc(t.name,e)}).id})};if(0===r.length)return this.props.onUpdateTerms(o(n,this.state.availableTerms),this.props.restBase);fc.a.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.restBase)})}},{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,s=r.selectedTerms,a=i.map(function(e){return e.name}),c=Object(O.get)(n,["data","labels","add_new_item"],"post_tag"===t?Object(q.__)("Add New Tag"):Object(q.__)("Add New Term")),l=Object(O.get)(n,["data","labels","singular_name"],"post_tag"===t?Object(q.__)("Tag"):Object(q.__)("Term")),u=Object(q.sprintf)(Object(q._x)("%s added","term"),l),d=Object(q.sprintf)(Object(q._x)("%s removed","term"),l),p=Object(q.sprintf)(Object(q._x)("Remove %s","term"),l);return wp.element.createElement(gr.FormTokenField,{value:s,displayTransform:O.unescape,suggestions:a,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,placeholder:c,messages:{added:u,removed:d,remove:p}})}}]),t}(sr.Component),_c=Object(sr.compose)(Object(gr.withAPIData)(function(e){return{taxonomy:"/wp/v2/taxonomies/"+e.slug+"?context=edit"}}),Object(i.withSelect)(function(e,t){var n=e("core/editor").getCurrentPost;return{hasCreateAction:Object(O.get)(n(),["_links","wp:action-create-"+t.restBase],!1),hasAssignAction:Object(O.get)(n(),["_links","wp:action-assign-"+t.restBase],!1),terms:e("core/editor").getEditedPostAttribute(t.restBase)}}),Object(i.withDispatch)(function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(b()({},n,t))}}}))(kc);var Oc=Object(sr.compose)([Object(i.withSelect)(function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies()}})])(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?bc:_c;return wp.element.createElement(sr.Fragment,{key:"taxonomy-"+e.slug},o(wp.element.createElement(t,{restBase:e.rest_base,slug:e.slug}),e))})});var wc=Object(sr.compose)([Object(i.withSelect)(function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies()}})])(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});n(592);var Sc=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.startEditing=e.startEditing.bind(e),e.edit=e.edit.bind(e),e.stopEditing=e.stopEditing.bind(e),e.state={value:null,isDirty:!1},e}return br()(t,e),fr()(t,[{key:"startEditing",value:function(){this.setState({value:this.props.value})}},{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({value:null,isDirty:!1})}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.placeholder,r=e.instanceId,o=Object(no.decodeEntities)(n);return wp.element.createElement(sr.Fragment,null,wp.element.createElement("label",{htmlFor:"post-content-"+r,className:"screen-reader-text"},o||Object(q.__)("Write your story")),wp.element.createElement(Go.a,{autoComplete:"off",value:this.state.value||t,onFocus:this.startEditing,onChange:this.edit,onBlur:this.stopEditing,className:"editor-post-text-editor",id:"post-content-"+r,placeholder:o||Object(q.__)("Write your story")}))}}],[{key:"getDerivedPropsFromState",value:function(e,t){return t.persistedValue===e.value||t.isDirty?null:function(e){return{persistedValue:e.value,value:e.value,isDirty:!1}}(e)}}]),t}(sr.Component),Ec=Object(sr.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostContent,r=(0,t.getEditorSettings)().bodyPlaceholder;return{value:n(),placeholder:r}}),Object(i.withDispatch)(function(e){var t=e("core/editor"),n=t.editPost,r=t.resetBlocks,o=t.checkTemplateValidity;return{onChange:function(e){n({content:e})},onPersist:function(e){r(Object(w.parse)(e)),o()}}}),gr.withInstanceId])(Sc),jc=(n(591),n(590),function(e){function t(e){var n=e.permalinkParts;dr()(this,t);var r=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return r.state={editedPostName:n.postName},r.onSavePermalink=r.onSavePermalink.bind(r),r}return br()(t,e),fr()(t,[{key:"onSavePermalink",value:function(e){var t=this.state.editedPostName.replace(/\s+/g,"-");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 wp.element.createElement("form",{className:"editor-post-permalink-editor",onSubmit:this.onSavePermalink},wp.element.createElement("span",null,wp.element.createElement("span",{className:"editor-post-permalink-editor__prefix"},n),wp.element.createElement("input",{className:"editor-post-permalink-editor__edit","aria-label":Object(q.__)("Edit post permalink"),value:o,onChange:function(t){return e.setState({editedPostName:t.target.value})},type:"text",autoFocus:!0}),wp.element.createElement("span",{className:"editor-post-permalink-editor__suffix"},r),"‎"),wp.element.createElement(gr.Button,{className:"editor-post-permalink-editor__save",isLarge:!0,onClick:this.onSavePermalink},Object(q.__)("OK")))}}]),t}(sr.Component)),Cc=Object(sr.compose)([Object(i.withSelect)(function(e){return{permalinkParts:(0,e("core/editor").getPermalinkParts)()}}),Object(i.withDispatch)(function(e){return{editPost:e("core/editor").editPost}})])(jc),Tc=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.addVisibilityCheck=e.addVisibilityCheck.bind(e),e.onVisibilityChange=e.onVisibilityChange.bind(e),e.state={isCopied:!1,isEditingPermalink:!1},e}return br()(t,e),fr()(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.permalinkButton.focus()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("visibilitychange",this.addVisibilityCheck)}},{key:"render",value:function(){var e=this,t=this.props,n=t.isNew,r=t.postLink,o=t.isEditable,i=t.samplePermalink,s=t.isPublished,a=this.state,c=a.isCopied,l=a.isEditingPermalink,u=c?Object(q.__)("Permalink copied"):Object(q.__)("Copy the permalink");return n||!r?null:wp.element.createElement("div",{className:"editor-post-permalink"},wp.element.createElement(gr.ClipboardButton,{className:ir()("editor-post-permalink__copy",{"is-copied":c}),text:i,label:u,onCopy:function(){return e.setState({isCopied:!0})},"aria-disabled":c,icon:"admin-links"}),wp.element.createElement("span",{className:"editor-post-permalink__label"},Object(q.__)("Permalink:")),!l&&wp.element.createElement(gr.Button,{className:"editor-post-permalink__link",href:s?i:r,target:"_blank",ref:function(t){return e.permalinkButton=t}},decodeURI(i),"‎"),l&&wp.element.createElement(Cc,{onSave:function(){return e.setState({isEditingPermalink:!1})}}),o&&!l&&wp.element.createElement(gr.Button,{className:"editor-post-permalink__edit",isLarge:!0,onClick:function(){return e.setState({isEditingPermalink:!0})}},Object(q.__)("Edit")),!o&&wp.element.createElement(gr.Button,{className:"editor-post-permalink__change",isLarge:!0,href:as("options-permalink.php"),onClick:this.addVisibilityCheck,target:"_blank"},Object(q.__)("Change Permalinks")))}}]),t}(sr.Component),Pc=Object(sr.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.isPermalinkEditable,o=t.getCurrentPost,i=t.getPermalink,s=t.isCurrentPostPublished,a=o().link;return{isNew:n(),postLink:a,isEditable:r(),samplePermalink:i(),isPublished:s()}}),Object(i.withDispatch)(function(e){return{refreshPost:e("core/editor").refreshPost}})])(Tc),Bc=/[\r\n]+/g,xc=no.keycodes.ENTER,Ic=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.onChange=e.onChange.bind(e),e.onSelect=e.onSelect.bind(e),e.onUnselect=e.onUnselect.bind(e),e.onKeyDown=e.onKeyDown.bind(e),e.redirectHistory=e.redirectHistory.bind(e),e.state={isSelected:!1},e}return br()(t,e),fr()(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(Bc," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===xc&&(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.title,n=e.placeholder,r=e.instanceId,o=e.isPostTypeViewable,i=this.state.isSelected,s=ir()("editor-post-title__block",{"is-selected":i}),a=Object(no.decodeEntities)(n);return wp.element.createElement(ha,{supportKeys:"title"},wp.element.createElement("div",{className:"editor-post-title"},wp.element.createElement("div",{className:s},wp.element.createElement(gr.KeyboardShortcuts,{shortcuts:{"mod+z":this.redirectHistory,"mod+shift+z":this.redirectHistory}},wp.element.createElement("label",{htmlFor:"post-title-"+r,className:"screen-reader-text"},a||Object(q.__)("Add title")),wp.element.createElement(Go.a,{id:"post-title-"+r,className:"editor-post-title__input",value:t,onChange:this.onChange,placeholder:a||Object(q.__)("Add title"),onFocus:this.onSelect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect})),i&&o&&wp.element.createElement(Pc,null))))}}]),t}(sr.Component),Dc=Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditorSettings,o=(0,e("core").getPostType)(n("type")),i=r().titlePlaceholder;return{title:n("title"),isPostTypeViewable:Object(O.get)(o,["viewable"],!1),placeholder:i}}),Ac=Object(i.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}}),Nc=Object(sr.compose)(Dc,Ac,gr.withInstanceId,gr.withFocusOutside)(Ic);n(589);var Lc=Object(sr.compose)([Object(i.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(i.withDispatch)(function(e){return{trashPost:e("core/editor").trashPost}})])(function(e){var t=e.isNew,n=e.postId,r=e.postType,o=d()(e,["isNew","postId","postType"]);return t||!n?null:wp.element.createElement(gr.Button,{isLink:!0,className:"editor-post-trash button-link-delete",onClick:function(){return o.trashPost(n,r)}},Object(q.__)("Move to trash"),wp.element.createElement(gr.Dashicon,{icon:"trash"}))});var Rc=Object(i.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 Uc=Object(sr.compose)([Object(i.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})}),Mc=(n(588),{HTMLRegExp:/<\/?[a-z][^>]*?>/gi,HTMLcommentRegExp:/<!--[\s\S]*?-->/g,spaceRegExp:/&nbsp;|&#160;/gi,HTMLEntityRegExp:/&\S+?;/g,connectorRegExp:/--|\u2014/g,removeRegExp:new RegExp(["[","!-@[-`{-~","€-¿×÷"," -⯿","⸀-⹿","]"].join(""),"g"),astralRegExp:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wordsRegExp:/\S\s+/g,characters_excluding_spacesRegExp:/\S/g,characters_including_spacesRegExp:/[^\f\n\r\t\v\u00AD\u2028\u2029]/g,l10n:{type:"words"}}),Fc=function(e,t){if(e.HTMLRegExp)return t.replace(e.HTMLRegExp,"\n")},Hc=function(e,t){return e.astralRegExp?t.replace(e.astralRegExp,"a"):t},Vc=function(e,t){return e.HTMLEntityRegExp?t.replace(e.HTMLEntityRegExp,""):t},Kc=function(e,t){return e.connectorRegExp?t.replace(e.connectorRegExp," "):t},Wc=function(e,t){return e.removeRegExp?t.replace(e.removeRegExp,""):t},zc=function(e,t){return e.HTMLcommentRegExp?t.replace(e.HTMLcommentRegExp,""):t},qc=function(e,t){return e.shortcodesRegExp?t.replace(e.shortcodesRegExp,"\n"):t},Gc=function(e,t){if(e.spaceRegExp)return t.replace(e.spaceRegExp," ")},Yc=function(e,t){return e.HTMLEntityRegExp?t.replace(e.HTMLEntityRegExp,"a"):t};function Xc(e,t,n){var r=function(e,t){var n=Object(O.extend)(Mc,t);return n.shortcodes=n.l10n.shortcodes||{},n.shortcodes&&n.shortcodes.length&&(n.shortcodesRegExp=new RegExp("\\[\\/?(?:"+n.shortcodes.join("|")+")[^\\]]*?\\]","g")),n.type=e||n.l10n.type,"characters_excluding_spaces"!==n.type&&"characters_including_spaces"!==n.type&&(n.type="words"),n}(t,n);if(e){var o=r[t+"RegExp"],i="words"===r.type?function(e,t,n){return e=Object(O.flow)(Fc.bind(this,n),zc.bind(this,n),qc.bind(this,n),Gc.bind(this,n),Vc.bind(this,n),Kc.bind(this,n),Wc.bind(this,n))(e),(e+="\n").match(t)}(e,o,r):function(e,t,n){return e=Object(O.flow)(Fc.bind(this,n),zc.bind(this,n),qc.bind(this,n),Gc.bind(this,n),Hc.bind(this,n),Yc.bind(this,n))(e),(e+="\n").match(t)}(e,o,r);return i?i.length:0}}var $c=Object(i.withSelect)(function(e){return{content:e("core/editor").getEditedPostAttribute("content")}})(function(e){var t=e.content;return wp.element.createElement("span",{className:"word-count"},Xc(t,"words"))});var Jc=Object(i.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 wp.element.createElement(sr.Fragment,null,wp.element.createElement("div",{className:"table-of-contents__counts",role:"note","aria-label":Object(q.__)("Document Statistics"),tabIndex:"0"},wp.element.createElement("div",{className:"table-of-contents__count"},Object(q.__)("Words"),wp.element.createElement($c,null)),wp.element.createElement("div",{className:"table-of-contents__count"},Object(q.__)("Headings"),wp.element.createElement("span",{className:"table-of-contents__number"},t)),wp.element.createElement("div",{className:"table-of-contents__count"},Object(q.__)("Paragraphs"),wp.element.createElement("span",{className:"table-of-contents__number"},n)),wp.element.createElement("div",{className:"table-of-contents__count"},Object(q.__)("Blocks"),wp.element.createElement("span",{className:"table-of-contents__number"},r))),t>0&&wp.element.createElement(sr.Fragment,null,wp.element.createElement("hr",null),wp.element.createElement("span",{className:"table-of-contents__title"},Object(q.__)("Document Outline")),wp.element.createElement(ea,null)))});var Qc=Object(i.withSelect)(function(e){return{hasBlocks:!!e("core/editor").getBlockCount()}})(function(e){var t=e.hasBlocks;return wp.element.createElement(gr.Dropdown,{position:"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return wp.element.createElement(gr.IconButton,{onClick:r,icon:"info-outline","aria-expanded":n,label:Object(q.__)("Content Structure"),disabled:!t})},renderContent:function(){return wp.element.createElement(Jc,null)}})}),Zc=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.warnIfUnsavedChanges=e.warnIfUnsavedChanges.bind(e),e}return br()(t,e),fr()(t,[{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"warnIfUnsavedChanges",value:function(e){var t=this.props,n=t.isDirty,r=t.forceIsDirty;if(n||(void 0===r?function(){return!1}:r)())return e.returnValue=Object(q.__)("You have unsaved changes. If you proceed, they will be lost."),e.returnValue}},{key:"render",value:function(){return null}}]),t}(sr.Component),el=Object(i.withSelect)(function(e){return{isDirty:e("core/editor").isEditedPostDirty()}})(Zc);n(587),n(586);function tl(e){return document.querySelector('[data-block="'+e+'"]')}var nl=Object(i.withSelect)(function(e){return{selectedBlockUID:e("core/editor").getBlockSelectionStart()}})(function(e){var t=e.selectedBlockUID;return t&&wp.element.createElement(gr.Button,{isDefault:!0,type:"button",className:"editor-skip-to-selected-block",onClick:function(){tl(t).closest(".editor-block-list__block").focus()}},Object(q.__)("Skip to the selected block"))}),rl=Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getSelectedBlock,r=t.getSelectedBlockCount,o=n();return{selectedBlock:o,blockType:o&&Object(w.getBlockType)(o.name),count:r()}})(function(e){var t=e.selectedBlock,n=e.blockType;return e.count>1?wp.element.createElement("span",{className:"editor-block-inspector__multi-blocks"},Object(q.__)("Coming Soon")):t?[wp.element.createElement("div",{className:"editor-block-inspector__card",key:"card"},wp.element.createElement(jr,{icon:n.icon,showColors:!0}),wp.element.createElement("div",{className:"editor-block-inspector__card-content"},wp.element.createElement("div",{className:"editor-block-inspector__card-title"},n.title),wp.element.createElement("div",{className:"editor-block-inspector__card-description"},n.description))),wp.element.createElement(Gi.Slot,{key:"inspector-controls"}),wp.element.createElement(Vi.Slot,{key:"inspector-advanced-controls"},function(e){return!Object(O.isEmpty)(e)&&wp.element.createElement(gr.PanelBody,{className:"editor-block-inspector__advanced",title:Object(q.__)("Advanced"),initialOpen:!1},e)}),wp.element.createElement(nl,{key:"back"})]:wp.element.createElement("span",{className:"editor-block-inspector__no-blocks"},Object(q.__)("No block selected."))}),ol=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.bindContainer=e.bindContainer.bind(e),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(e),e}return br()(t,e),fr()(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 wp.element.createElement("div",l()({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(O.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),t}(sr.Component),il=Object(sr.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}}),Object(i.withDispatch)(function(e){return{clearSelectedBlock:e("core/editor").clearSelectedBlock}})])(ol),sl=(n(585),n(584),no.keycodes.DOWN);var al=Object(sr.compose)(Object(i.withSelect)(function(e,t){var n=e("core/editor"),r=n.getBlock,o=(0,n.getEditorSettings)().templateLock;return{blocks:t.uids.map(r),isLocked:!!o}}),Object(i.withDispatch)(function(e,t){return{onTransform:function(n,r){e("core/editor").replaceBlocks(t.uids,Object(w.switchToBlockType)(n,r))}}}))(function(e){var t=e.blocks,n=e.onTransform,r=e.isLocked,o=Object(w.getPossibleBlockTransformations)(t);if(r||!o.length)return null;var i=t[0].name,s=Object(w.getBlockType)(i);return wp.element.createElement(gr.Dropdown,{className:"editor-block-switcher",contentClassName:"editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,n=e.isOpen,r=Object(q.__)("Change block type");return wp.element.createElement(gr.Toolbar,null,wp.element.createElement(gr.IconButton,{className:"editor-block-switcher__toggle",icon:wp.element.createElement(jr,{icon:s.icon&&s.icon.src}),onClick:t,"aria-haspopup":"true","aria-expanded":n,label:r,tooltip:r,onKeyDown:function(e){n||e.keyCode!==sl||(e.preventDefault(),e.stopPropagation(),t())}},wp.element.createElement(gr.Dashicon,{icon:"arrow-down"})))},renderContent:function(e){var r=e.onClose;return wp.element.createElement("div",null,wp.element.createElement("span",{className:"editor-block-switcher__menu-title"},Object(q.__)("Transform into:")),wp.element.createElement(gr.NavigableMenu,{role:"menu","aria-label":Object(q.__)("Block types")},o.map(function(e){var o=e.name,i=e.title,s=e.icon;return wp.element.createElement(gr.IconButton,{key:o,onClick:function(){n(t,o),r()},className:"editor-block-switcher__menu-item",icon:wp.element.createElement("span",{className:"editor-block-switcher__block-icon"},wp.element.createElement(jr,{icon:s&&s.src})),role:"menuitem"},i)})))}})});var cl=Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getSelectedBlock,r=t.getBlockMode,o=n();return{block:o,mode:o?r(o.uid):null}})(function(e){var t=e.block,n=e.mode;return t&&t.isValid&&"visual"===n?wp.element.createElement("div",{className:"editor-block-toolbar"},wp.element.createElement(al,{uids:[t.uid]}),wp.element.createElement(Vr.Slot,null),wp.element.createElement($r.Slot,null)):null}),ll=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.onCopy=e.onCopy.bind(e),e.onCut=e.onCut.bind(e),e}return br()(t,e),fr()(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:"onCopy",value:function(e){var t=this.props,n=t.multiSelectedBlocks,r=t.selectedBlock;if((n.length||r)&&(!r||!Object(Oo.documentHasSelection)())){var o=Object(w.serialize)(r||n);e.clipboardData.setData("text/plain",o),e.clipboardData.setData("text/html",o),e.preventDefault()}}},{key:"onCut",value:function(e){var t=this.props.multiSelectedBlockUids;this.onCopy(e),t.length&&this.props.onRemove(t)}},{key:"render",value:function(){return null}}]),t}(sr.Component),ul=Object(sr.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getMultiSelectedBlocks,r=t.getMultiSelectedBlockUids,o=t.getSelectedBlock;return{multiSelectedBlocks:n(),multiSelectedBlockUids:r(),selectedBlock:o()}}),Object(i.withDispatch)(function(e){return{onRemove:e("core/editor").removeBlocks}})])(ll),dl=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.reboot=e.reboot.bind(e),e.getContent=e.getContent.bind(e),e.state={error:null},e}return br()(t,e),fr()(t,[{key:"componentDidCatch",value:function(e){this.setState({error:e})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Dn(this.context.store.getState())}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?wp.element.createElement(Ho,{actions:[wp.element.createElement(gr.Button,{key:"recovery",onClick:this.reboot,isLarge:!0},Object(q.__)("Attempt Recovery")),wp.element.createElement(gr.ClipboardButton,{key:"copy-post",text:this.getContent,isLarge:!0},Object(q.__)("Copy Post Text")),wp.element.createElement(gr.ClipboardButton,{key:"copy-error",text:e.stack,isLarge:!0},Object(q.__)("Copy Error"))]},Object(q.__)("The editor has encountered an unexpected error.")):this.props.children}}]),t}(sr.Component);dl.contextTypes={store:O.noop};var pl=dl;var fl=Object(i.withSelect)(function(e){var t=e("core/editor").getMultiSelectedBlockUids();return{isMultiBlockSelection:t.length>1,selectedBlockUids:t}})(function(e){var t=e.isMultiBlockSelection,n=e.selectedBlockUids;return t?wp.element.createElement(al,{key:"switcher",uids:n}):null}),hl=function(e){function t(){return dr()(this,t),mr()(this,(t.__proto__||lr()(t)).apply(this,arguments))}return br()(t,e),fr()(t,[{key:"componentDidUpdate",value:function(){this.scrollIntoView()}},{key:"scrollIntoView",value:function(){var e=this.props.extentUID;if(e){var t=tl(e);if(t){var n=Object(Oo.getScrollContainer)(t);n&&ai()(t,n,{onlyScrollIfNeeded:!0})}}}},{key:"render",value:function(){return null}}]),t}(sr.Component),ml=Object(i.withSelect)(function(e){return{extentUID:e("core/editor").getLastMultiSelectedBlockUid()}})(hl),vl=[no.keycodes.UP,no.keycodes.RIGHT,no.keycodes.DOWN,no.keycodes.LEFT,no.keycodes.ENTER,no.keycodes.BACKSPACE];var bl=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.stopTypingOnSelectionUncollapse=e.stopTypingOnSelectionUncollapse.bind(e),e.stopTypingOnMouseMove=e.stopTypingOnMouseMove.bind(e),e.startTypingInTextField=e.startTypingInTextField.bind(e),e.stopTypingOnNonTextField=e.stopTypingOnNonTextField.bind(e),e.lastMouseMove=null,e}return br()(t,e),fr()(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:"startTypingInTextField",value:function(e){var t=this.props,n=t.isTyping,r=t.onStartTyping,o=e.type,i=e.target;n||!Object(Oo.isTextField)(i)||i.closest(".editor-block-toolbar")||("keydown"!==o||function(e){var t=e.keyCode;return!e.shiftKey&&Object(O.includes)(vl,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(Oo.isTextField)(i)&&o()})}},{key:"render",value:function(){var e=this.props.children;return wp.element.createElement("div",{onFocus:this.stopTypingOnNonTextField,onKeyPress:this.startTypingInTextField,onKeyDown:this.startTypingInTextField},e)}}]),t}(sr.Component),gl=Object(sr.compose)([Object(i.withSelect)(function(e){return{isTyping:(0,e("core/editor").isTyping)()}}),Object(i.withDispatch)(function(e){var t=e("core/editor");return{onStartTyping:t.startTyping,onStopTyping:t.stopTyping}}),gr.withSafeTimeout])(bl),yl=function(e){function t(){return dr()(this,t),mr()(this,(t.__proto__||lr()(t)).apply(this,arguments))}return br()(t,e),fr()(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=tl(e);return t?t.getBoundingClientRect().top:null}},{key:"restorePreviousOffset",value:function(e){var t=tl(this.props.selectionStart);if(t){var n=Object(Oo.getScrollContainer)(t);n&&(n.scrollTop=n.scrollTop+t.getBoundingClientRect().top-e)}}},{key:"render",value:function(){return null}}]),t}(sr.Component),kl=Object(i.withSelect)(function(e){return{blockOrder:e("core/editor").getBlockOrder(),selectionStart:e("core/editor").getBlockSelectionStart()}})(yl),_l=(n(583),no.keycodes.UP),Ol=no.keycodes.DOWN,wl=no.keycodes.LEFT,Sl=no.keycodes.RIGHT,El=no.keycodes.isKeyboardEvent,jl=Object(O.overEvery)([Oo.isTextField,Oo.focus.tabbable.isTabbableIndex]),Cl=function(e){function t(){dr()(this,t);var e=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.onKeyDown=e.onKeyDown.bind(e),e.bindContainer=e.bindContainer.bind(e),e.clearVerticalRect=e.clearVerticalRect.bind(e),e.focusLastTextField=e.focusLastTextField.bind(e),e.verticalRect=null,e}return br()(t,e),fr()(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearVerticalRect",value:function(){this.verticalRect=null}},{key:"getClosestTabbable",value:function(e,t){var n=Oo.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(!Oo.focus.tabbable.isTabbableIndex(n))return!1;if(Object(Oo.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,s=1;(i=o[r+s])&&n.contains(i);s++)if(t(i,r+s,o))return!1;return!0})}},{key:"expandSelection",value:function(e){var t=this.props,n=t.selectedBlockUID,r=t.selectionStartUID,o=t.selectionBeforeEndUID,i=t.selectionAfterEndUID,s=e?o:i;s&&this.props.onMultiSelect(r||n,s)}},{key:"moveSelection",value:function(e){var t=this.props,n=t.selectedFirstUid,r=t.selectedLastUid,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,s=e.target,a=i===_l,c=i===wl,l=a||c,u=c||i===Sl,d=a||i===Ol,p=u||d,f=e.shiftKey,h=d?Oo.isVerticalEdge:Oo.isHorizontalEdge;if(d?this.verticalRect||(this.verticalRect=Object(Oo.computeCaretRect)(s)):this.verticalRect=null,!p)return El.primary(e)&&(this.isEntirelySelected=Object(Oo.isEntirelySelected)(s)),void(El.primary(e,"a")&&((s.isContentEditable?this.isEntirelySelected:Object(Oo.isEntirelySelected)(s))&&(r(Object(O.first)(o),Object(O.last)(o)),e.preventDefault()),this.isEntirelySelected=Object(Oo.isEntirelySelected)(s)));if(f&&(n||this.isTabbableEdge(s,l)&&h(s,l,!0)))this.expandSelection(l),e.preventDefault();else if(n)this.moveSelection(l),e.preventDefault();else if(d&&Object(Oo.isVerticalEdge)(s,l,f)){var m=this.getClosestTabbable(s,l);m&&(Object(Oo.placeCaretAtVerticalEdge)(m,l,this.verticalRect),e.preventDefault())}else if(u&&Object(Oo.isHorizontalEdge)(s,l,f)){var v=this.getClosestTabbable(s,l);Object(Oo.placeCaretAtHorizontalEdge)(v,l),e.preventDefault()}}},{key:"focusLastTextField",value:function(){var e=Oo.focus.focusable.find(this.container),t=Object(O.findLast)(e,jl);t&&Object(Oo.placeCaretAtHorizontalEdge)(t,!0)}},{key:"render",value:function(){var e=this.props.children;return wp.element.createElement("div",{className:"editor-writing-flow"},wp.element.createElement("div",{ref:this.bindContainer,onKeyDown:this.onKeyDown,onMouseDown:this.clearVerticalRect},e),wp.element.createElement("div",{"aria-hidden":!0,tabIndex:-1,onClick:this.focusLastTextField,className:"editor-writing-flow__click-redirect"}))}}]),t}(sr.Component),Tl=Object(sr.compose)([Object(i.withSelect)(function(e){var t=e("core/editor"),n=t.getSelectedBlockUID,r=t.getMultiSelectedBlocksStartUid,o=t.getMultiSelectedBlocksEndUid,i=t.getPreviousBlockUid,s=t.getNextBlockUid,a=t.getFirstMultiSelectedBlockUid,c=t.getLastMultiSelectedBlockUid,l=t.hasMultiSelection,u=t.getBlockOrder,d=n(),p=r(),f=o();return{selectedBlockUID:d,selectionStartUID:p,selectionBeforeEndUID:i(f||d),selectionAfterEndUID:s(f||d),selectedFirstUid:a(),selectedLastUid:c(),hasMultiSelection:l(),blocks:u()}}),Object(i.withDispatch)(function(e){var t=e("core/editor");return{onMultiSelect:t.multiSelect,onSelectBlock:t.selectBlock}})])(Cl),Pl=function(e){function t(e){dr()(this,t);var n=mr()(this,(t.__proto__||lr()(t)).apply(this,arguments));return e.recovery||(n.props.updateEditorSettings(e.settings),n.props.setupEditor(e.post,e.settings.autosave)),n}return br()(t,e),fr()(t,[{key:"componentDidUpdate",value:function(e){this.props.settings!==e.settings&&this.props.updateEditorSettings(this.props.settings)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.undo,r=e.redo,o=e.createUndoLevel,i=[[Ws,{onUndo:n,onRedo:r,onCreateUndoLevel:o}],[gr.SlotFillProvider],[gr.APIProvider,l()({},wpApiSettings,Object(O.pick)(wp.api,["postTypeRestBaseMapping","taxonomyRestBaseMapping"]))],[gr.DropZoneProvider]];return Object(O.flow)(i.map(function(e){var t=a()(e,2),n=t[0],r=t[1];return function(e){return Object(sr.createElement)(n,r,e)}}))(t)}}]),t}(sr.Component),Bl=Object(i.withDispatch)(function(e){var t=e("core/editor"),n=t.setupEditor,r=t.updateEditorSettings;return{setupEditor:n,undo:t.undo,redo:t.redo,createUndoLevel:t.createUndoLevel,updateEditorSettings:r}})(Pl);function xl(e){var t=Object(w.getBlockSupport)(e,"align");if(Array.isArray(t))return t;var n=[];return!0===t&&(n.push("left","center","right"),Object(w.hasBlockSupport)(e,"wideAlign",!0)&&n.push("wide","full")),n}var Il=Object(sr.createHigherOrderComponent)(function(e){return function(t){var n=xl(t.name);return[n.length>0&&t.isSelected&&wp.element.createElement(Vr,{key:"align-controls"},wp.element.createElement(Rr,{value:t.attributes.align,onChange:function(e){return t.setAttributes({align:e})},controls:n})),wp.element.createElement(e,l()({key:"edit"},t))]}},"withToolbarControls"),Dl=Object(sr.createHigherOrderComponent)(function(e){return function(t){var n=t.block.attributes.align,r=xl(t.block.name),o=t.wrapperProps;return Object(O.includes)(r,n)&&(o=l()({},o,{"data-align":n})),wp.element.createElement(e,l()({},t,{wrapperProps:o}))}},"withDataAlign");Object(ar.addFilter)("blocks.registerBlockType","core/align/addAttribute",function(e){return Object(w.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",Dl),Object(ar.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Il),Object(ar.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",function(e,t,n){var r=n.align;return Object(O.includes)(xl(t),r)&&(e.className=ir()("align"+r,e.className)),e});var Al=/[\s#]/g;var Nl=Object(sr.createHigherOrderComponent)(function(e){return function(t){return Object(w.hasBlockSupport)(t.name,"anchor")&&t.isSelected?wp.element.createElement(sr.Fragment,null,wp.element.createElement(e,t),wp.element.createElement(Vi,null,wp.element.createElement(gr.TextControl,{label:Object(q.__)("HTML Anchor"),help:Object(q.__)("Anchors lets you link directly to a section on a page."),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(Al,"-"),t.setAttributes({anchor:e})}}))):wp.element.createElement(e,t)}},"withInspectorControl");Object(ar.addFilter)("blocks.registerBlockType","core/anchor/attribute",function(e){return Object(w.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",Nl),Object(ar.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",function(e,t,n){return Object(w.hasBlockSupport)(t,"anchor")&&(e.id=n.anchor),e});var Ll=Object(sr.createHigherOrderComponent)(function(e){return function(t){return Object(w.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?wp.element.createElement(sr.Fragment,null,wp.element.createElement(e,t),wp.element.createElement(Vi,null,wp.element.createElement(gr.TextControl,{label:Object(q.__)("Additional CSS Class"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:e})}}))):wp.element.createElement(e,t)}},"withInspectorControl");Object(ar.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",function(e){return Object(w.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",Ll),Object(ar.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",function(e,t,n){return Object(w.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=ir()(e.className,n.className)),e});var Rl=[xr],Ul=Object(O.once)(function(){return Object(i.dispatch)("core/editor").fetchSharedBlocks()});Object(ar.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",function(e,t){return e||(e=Rl.map(O.clone),t===Object(w.getDefaultBlockName)()&&(e.push(Object(O.clone)(Br)),Ul())),e}),Object(ar.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",function(e,t){return Object(w.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(O.uniq)([Object(w.getBlockDefaultClassName)(t.name)].concat(f()(e.className.split(" ")))).join(" ").trim():e.className=Object(w.getBlockDefaultClassName)(t.name)),e}),Object(ar.addFilter)("blocks.registerBlockType","core/layout/attribute",function(e){return e.attributes=Object(O.assign)(e.attributes,{layout:{type:"string"}}),e}),Object(ar.addFilter)("blocks.getSaveContent.extraProps","core/layout/save-props",function(e,t,n){var r=n.layout;return r&&(e.className=Object(O.compact)([e.className,"layout-"+r]).join(" ")),e}),Object(ar.addFilter)("blocks.switchToBlockType.transformedBlock","core/layout/preserve-layout",function(e,t){var n=Object(O.get)(t,[0,"attributes","layout"]);return e.attributes.layout=n,e}),Object(ar.addFilter)("blocks.isUnmodifiedDefaultBlock.attributes","core/layout/exclude-layout-attribute-check",function(e){return Object(O.without)(e,"layout")}),n.d(t,"Autocomplete",function(){return Er}),n.d(t,"AlignmentToolbar",function(){return Dr}),n.d(t,"BlockAlignmentToolbar",function(){return Rr}),n.d(t,"BlockControls",function(){return Vr}),n.d(t,"BlockEdit",function(){return zr}),n.d(t,"BlockFormatControls",function(){return $r}),n.d(t,"BlockIcon",function(){return jr}),n.d(t,"ColorPalette",function(){return Qr}),n.d(t,"withColorContext",function(){return Jr}),n.d(t,"ContrastChecker",function(){return po}),n.d(t,"ImagePlaceholder",function(){return vo}),n.d(t,"InnerBlocks",function(){return Ri}),n.d(t,"InspectorAdvancedControls",function(){return Vi}),n.d(t,"InspectorControls",function(){return Gi}),n.d(t,"PanelColor",function(){return Yi}),n.d(t,"PlainText",function(){return Xi}),n.d(t,"RichText",function(){return Vs}),n.d(t,"RichTextProvider",function(){return Ws}),n.d(t,"MediaPlaceholder",function(){return mo}),n.d(t,"MediaUpload",function(){return fo}),n.d(t,"UrlInput",function(){return ss}),n.d(t,"UrlInputButton",function(){return zs}),n.d(t,"AutosaveMonitor",function(){return Gs}),n.d(t,"DocumentOutline",function(){return ea}),n.d(t,"DocumentOutlineCheck",function(){return ta}),n.d(t,"DocumentTitle",function(){return ra}),n.d(t,"EditorGlobalKeyboardShortcuts",function(){return sa}),n.d(t,"EditorHistoryRedo",function(){return ca}),n.d(t,"EditorHistoryUndo",function(){return ua}),n.d(t,"EditorNotices",function(){return pa}),n.d(t,"PageAttributesCheck",function(){return fa}),n.d(t,"PageAttributesOrder",function(){return va}),n.d(t,"PageAttributesParent",function(){return ka}),n.d(t,"PageTemplate",function(){return _a}),n.d(t,"PostAuthor",function(){return Sa}),n.d(t,"PostAuthorCheck",function(){return Oa}),n.d(t,"PostComments",function(){return Ea}),n.d(t,"PostExcerpt",function(){return ja}),n.d(t,"PostExcerptCheck",function(){return Ca}),n.d(t,"PostFeaturedImage",function(){return Aa}),n.d(t,"PostFeaturedImageCheck",function(){return Pa}),n.d(t,"PostFormat",function(){return Ra}),n.d(t,"PostFormatCheck",function(){return Na}),n.d(t,"PostLastRevision",function(){return Ma}),n.d(t,"PostLastRevisionCheck",function(){return Ua}),n.d(t,"PostPendingStatus",function(){return Ha}),n.d(t,"PostPendingStatusCheck",function(){return Fa}),n.d(t,"PostPingbacks",function(){return Va}),n.d(t,"PostPreviewButton",function(){return Wa}),n.d(t,"PostPublishButton",function(){return qa}),n.d(t,"PostPublishButtonLabel",function(){return za}),n.d(t,"PostPublishPanel",function(){return rc}),n.d(t,"PostPublishPanelToggle",function(){return oc}),n.d(t,"PostSavedState",function(){return cc}),n.d(t,"PostSchedule",function(){return Ja}),n.d(t,"PostScheduleCheck",function(){return lc}),n.d(t,"PostScheduleLabel",function(){return Qa}),n.d(t,"PostSticky",function(){return dc}),n.d(t,"PostStickyCheck",function(){return uc}),n.d(t,"PostSwitchToDraftButton",function(){return ic}),n.d(t,"PostTaxonomies",function(){return Oc}),n.d(t,"PostTaxonomiesCheck",function(){return wc}),n.d(t,"PostTextEditor",function(){return Ec}),n.d(t,"PostTitle",function(){return Nc}),n.d(t,"PostTrash",function(){return Lc}),n.d(t,"PostTrashCheck",function(){return Rc}),n.d(t,"PostTypeSupportCheck",function(){return ha}),n.d(t,"PostVisibility",function(){return Xa}),n.d(t,"PostVisibilityLabel",function(){return $a}),n.d(t,"PostVisibilityCheck",function(){return Uc}),n.d(t,"TableOfContents",function(){return Qc}),n.d(t,"UnsavedChangesWarning",function(){return el}),n.d(t,"WordCount",function(){return $c}),n.d(t,"BlockInspector",function(){return rl}),n.d(t,"BlockList",function(){return Ni}),n.d(t,"BlockMover",function(){return Co}),n.d(t,"BlockSelectionClearer",function(){return il}),n.d(t,"BlockSettingsMenu",function(){return Fo}),n.d(t,"_BlockSettingsMenuFirstItem",function(){return Uo}),n.d(t,"BlockTitle",function(){return $o}),n.d(t,"BlockToolbar",function(){return cl}),n.d(t,"CopyHandler",function(){return ul}),n.d(t,"DefaultBlockAppender",function(){return Bi}),n.d(t,"ErrorBoundary",function(){return pl}),n.d(t,"Inserter",function(){return hi}),n.d(t,"MultiBlocksSwitcher",function(){return fl}),n.d(t,"MultiSelectScrollIntoView",function(){return ml}),n.d(t,"NavigableToolbar",function(){return ri}),n.d(t,"ObserveTyping",function(){return gl}),n.d(t,"PreserveScrollInReorder",function(){return kl}),n.d(t,"SkipToSelectedBlock",function(){return nl}),n.d(t,"Warning",function(){return Ho}),n.d(t,"WritingFlow",function(){return Tl}),n.d(t,"EditorProvider",function(){return Bl}),n.d(t,"blockAutocompleter",function(){return Br}),n.d(t,"userAutocompleter",function(){return xr}),n.d(t,"getColorClass",function(){return to}),n.d(t,"getColorName",function(){return eo}),n.d(t,"withColors",function(){return co}),n.d(t,"editorMediaUpload",function(){return ho})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]}},function(e,t,n){var r=n(339);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,s=document.createElement(i);s.innerHTML="&nbsp;","TEXTAREA"===i.toUpperCase()&&s.setAttribute("rows","1");var a=r(e,"font-size");s.style.fontSize=a,s.style.padding="0px",s.style.border="0px";var c=document.body;c.appendChild(s),n=s.offsetHeight,c.removeChild(s)}return n}},function(e,t,n){var r,o,i;
13
  /*!
14
  autosize 4.0.2
15
  license: MIT
changelog.txt CHANGED
@@ -1,5 +1,10 @@
1
  == Changelog ==
2
 
 
 
 
 
 
3
  = 3.1.0 =
4
 
5
  * Implement Tips Interface to guide a user in the new editor interface.
1
  == Changelog ==
2
 
3
+ = 3.1.1 =
4
+
5
+ * Fix permalink editor not appearing.
6
+ * Fix sibling block inserter not working in Firefox and Safari.
7
+
8
  = 3.1.0 =
9
 
10
  * Implement Tips Interface to guide a user in the new editor interface.
gutenberg.php CHANGED
@@ -3,15 +3,15 @@
3
  * Plugin Name: Gutenberg
4
  * Plugin URI: https://github.com/WordPress/gutenberg
5
  * Description: Printing since 1440. This is the development plugin for the new block editor in core.
6
- * Version: 3.1.0
7
  * Author: Gutenberg Team
8
  *
9
  * @package gutenberg
10
  */
11
 
12
  ### BEGIN AUTO-GENERATED DEFINES
13
- define( 'GUTENBERG_VERSION', '3.1.0' );
14
- define( 'GUTENBERG_GIT_COMMIT', '64a7c836f7d23a3214487cf6a54dade8c3053fe8' );
15
  ### END AUTO-GENERATED DEFINES
16
 
17
  gutenberg_pre_init();
3
  * Plugin Name: Gutenberg
4
  * Plugin URI: https://github.com/WordPress/gutenberg
5
  * Description: Printing since 1440. This is the development plugin for the new block editor in core.
6
+ * Version: 3.1.1
7
  * Author: Gutenberg Team
8
  *
9
  * @package gutenberg
10
  */
11
 
12
  ### BEGIN AUTO-GENERATED DEFINES
13
+ define( 'GUTENBERG_VERSION', '3.1.1' );
14
+ define( 'GUTENBERG_GIT_COMMIT', '09f681d8f4d66ebf949ced6e4c5f03ce25848fc1' );
15
  ### END AUTO-GENERATED DEFINES
16
 
17
  gutenberg_pre_init();
languages/gutenberg-translations.php CHANGED
@@ -896,7 +896,7 @@ $generated_i18n_strings = array(
896
  /* translators: %s: Type of block (i.e. Text, Image etc) */
897
  __( 'Block: %s', 'gutenberg' ),
898
 
899
- // Reference: editor/components/block-list/insertion-point.js:66
900
  __( 'Insert block', 'gutenberg' ),
901
 
902
  // Reference: editor/components/block-list/invalid-block-warning.js:25
896
  /* translators: %s: Type of block (i.e. Text, Image etc) */
897
  __( 'Block: %s', 'gutenberg' ),
898
 
899
+ // Reference: editor/components/block-list/insertion-point.js:67
900
  __( 'Insert block', 'gutenberg' ),
901
 
902
  // Reference: editor/components/block-list/invalid-block-warning.js:25
languages/gutenberg.pot CHANGED
@@ -1202,7 +1202,7 @@ msgstr ""
1202
  msgid "Block: %s"
1203
  msgstr ""
1204
 
1205
- #: editor/components/block-list/insertion-point.js:66
1206
  msgid "Insert block"
1207
  msgstr ""
1208
 
1202
  msgid "Block: %s"
1203
  msgstr ""
1204
 
1205
+ #: editor/components/block-list/insertion-point.js:67
1206
  msgid "Insert block"
1207
  msgstr ""
1208
 
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: matveb, joen, karmatosed
3
  Requires at least: 4.9.6
4
  Tested up to: 4.9.6
5
- Stable tag: 3.0.1
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
 
@@ -81,6 +81,8 @@ See also <a href="https://github.com/WordPress/gutenberg/blob/master/CONTRIBUTIN
81
 
82
  = Latest =
83
 
 
 
84
  * Implement Tips Interface to guide a user in the new editor interface.
85
  * New design version of sibling inserter (the ability to insert blocks between other blocks).
86
  * Allow users to re-enable Tips.
2
  Contributors: matveb, joen, karmatosed
3
  Requires at least: 4.9.6
4
  Tested up to: 4.9.6
5
+ Stable tag: 3.1.1
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
 
81
 
82
  = Latest =
83
 
84
+ * Fix permalink editor not appearing in 3.1.0.
85
+ * Fix sibling block inserter not working in Firefox and Safari in 3.1.0.
86
  * Implement Tips Interface to guide a user in the new editor interface.
87
  * New design version of sibling inserter (the ability to insert blocks between other blocks).
88
  * Allow users to re-enable Tips.