0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===f&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ut,n).replace(r,c))})),i.prefix&&u.push(ee),u.push(X);var d=function(e,s,o,a){void 0===s&&(s=""),void 0===o&&(o=""),void 0===a&&(a="&"),t=a,n=s,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(dt,""),c=te(o||s?"".concat(o," ").concat(s," { ").concat(l," }"):l);i.namespace&&(c=pt(c,i.namespace));var d,p,f,h=[];return J(c,(d=u.concat((f=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&f(e)})),p=R(d),function(e,t,n,r){for(var s="",o=0;o="A"&&e<="Z"};function xt(e){for(var t="",n=0;n>>0);if(!t.hasNameForId(this.componentId,o)){var i=n(s,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,i)}r=Fe(r,o),this.staticRulesId=o}else{for(var a=Ae(this.baseHash,n.hash),l="",c=0;c>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),r=Fe(r,p)}}return r},e}(),Tt=i().createContext(void 0);Tt.Consumer;var It={};function Nt(e,t,n){var s=Be(e),a=e,l=!xe(e),c=t.attrs,u=void 0===c?ue:c,d=t.componentId,p=void 0===d?function(e,t){var n="string"!=typeof e?"sc":me(e);It[n]=(It[n]||0)+1;var r="".concat(n,"-").concat(function(e){return ve(_e(e)>>>0)}("6.1.1"+n+It[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):d,f=t.displayName,h=void 0===f?function(e){return xe(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):f,m=t.displayName&&t.componentId?"".concat(me(t.displayName),"-").concat(t.componentId):t.componentId||p,g=s&&a.attrs?a.attrs.concat(u).filter(Boolean):u,y=t.shouldForwardProp;if(s&&a.shouldForwardProp){var v=a.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;y=function(e,t){return v(e,t)&&b(e,t)}}else y=v}var A=new Rt(n,m,s?a.componentStyle:void 0);function _(e,t){return function(e,t,n){var s=e.attrs,a=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.styledComponentId,d=e.target,p=i().useContext(Tt),f=vt(),h=e.shouldForwardProp||f.shouldForwardProp,m=function(e,t,n){for(var s,o=r(r({},t),{className:void 0,theme:n}),i=0;i2&&ct.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=nt(),r=ze([n&&'nonce="'.concat(n,'"'),"".concat(ae,'="true"'),"".concat("data-styled-version",'="').concat("6.1.1",'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(e.sealed)throw We(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw We(2);var n=((t={})[ae]="",t["data-styled-version"]="6.1.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),s=nt();return s&&(n.nonce=s),[i().createElement("style",r({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new ct({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw We(2);return i().createElement(bt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw We(3)}}(),"__sc-".concat(ae,"__")},4928:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var r=n(7e3),s=n(900),o=n.n(s),i=n(3376),a=n(7720);const l=i.cp.div`
+ height: auto;
+ width: 100%;
+`,c=({src:e})=>(0,r.jsx)(l,{children:(0,r.jsx)("audio",{className:"edit-audio-preview",controls:!0,src:e})});c.propTypes={src:o().string.isRequired};const u=({className:e,onReset:t,onUpdate:n,onUpdateURL:s,value:o,valueURL:i})=>(0,r.jsx)(a.MediaPicker,{allowedTypes:["audio"],className:e,icon:"format-audio",onReset:t,onUpdate:n,onUpdateURL:s,preview:c,value:o,valueURL:i});u.defaultProps={className:"",onUpdateURL:null,valueURL:""},u.propTypes={className:o().string,onReset:o().func.isRequired,onUpdate:o().func.isRequired,onUpdateURL:o().func,value:o().number.isRequired,valueURL:o().string};const d=u},2312:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(7e3),s=n(900),o=n.n(s),i=n(7287);const a=({label:e,value:t,options:n,onChange:s})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.BaseControl,{label:e}),n.map((e=>(0,r.jsx)(i.CheckboxControl,{label:e.label,checked:t.includes(e.value),onChange:n=>{s(n?[...t,e.value]:[...t.filter((t=>t!==e.value))])}})))]});a.propTypes={label:o().string.isRequired,value:o().arrayOf(o().string).isRequired,options:o().arrayOf(o().shape({label:o().string.isRequired,value:o().string.isRequired})).isRequired,onChange:o().func.isRequired};const l=a},8312:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var r=n(7e3),s=n(1280),o=n.n(s),i=n(3396),a=n(900),l=n.n(a),c=n(5328);class u extends o().PureComponent{static handleSubmit(e){e.preventDefault()}constructor(e){super(e),this.handleChange=this.handleChange.bind(this),this.state={error:"",success:""}}handleChange(e){const{attributeName:t,callback:n,setAttributes:r}=this.props;e.target.files&&e.target.files[0]&&(0,c.parseCSVFile)(e.target.files[0]).then((e=>n?n(e):e)).then((e=>{Array.isArray(e)&&e.length>0?(this.setState({error:"",success:(0,i.__)("Successfully read CSV data.","alley-scripts")}),r({[t]:JSON.stringify(e)})):this.setState({error:(0,i.__)("Could not map CSV data. Please check the source file to ensure that it has the correct structure.","alley-scripts"),success:""})})).catch((e=>{this.setState({error:e,success:""})}))}render(){const{error:e="",success:t=""}=this.state;return(0,r.jsxs)("div",{className:"alley-scripts-block-csv-uploader",children:[(0,r.jsx)("h2",{children:(0,i.__)("Upload CSV","alley-scripts")}),(0,r.jsxs)("form",{onSubmit:this.handleSubmit,children:[""!==e?(0,r.jsxs)("div",{style:{color:"#c00"},children:[(0,r.jsx)("strong",{children:(0,i.__)("Error:","alley-scripts")})," ",e]}):null,""!==t?(0,r.jsxs)("div",{style:{color:"#0c0"},children:[(0,r.jsx)("strong",{children:(0,i.__)("Success:","alley-scripts")})," ",t]}):null,(0,r.jsx)("div",{children:(0,r.jsxs)("label",{htmlFor:"alley-scripts-block-csv-uploader-file",children:[(0,r.jsx)("p",{children:(0,i.__)("Select a file to load data.","alley-scripts")}),(0,r.jsx)("input",{id:"alley-scripts-block-csv-uploader-file",onChange:this.handleChange,type:"file"})]})})]})]})}}u.defaultProps={callback:null},u.propTypes={attributeName:l().string.isRequired,callback:l().func,setAttributes:l().func.isRequired}},8348:(e,t,n)=>{"use strict";n.d(t,{default:()=>p});var r=n(7e3),s=n(3396),o=n(900),i=n.n(o),a=n(3376),l=n(7720);const c=a.cp.div`
+ box-sizing: border-box;
+ flex-shrink: 0;
+ height: auto;
+ max-height: 1450px;
+ max-width: 1450px;
+ min-height: 20px;
+ min-width: 20px;
+ position: relative;
+ width: auto;
+`,u=({src:e})=>(0,r.jsx)(c,{children:(0,r.jsx)("img",{alt:(0,s.__)("Edit image","alley-scripts"),className:"edit-image-preview",src:e,title:(0,s.__)("Edit image","alley-scripts")})});u.propTypes={src:i().string.isRequired};const d=({className:e,imageSize:t,displayControlsInToolbar:n,onReset:s,onUpdate:o,onUpdateURL:i,value:a,valueURL:c})=>(0,r.jsx)(l.MediaPicker,{allowedTypes:["image"],className:e,icon:"format-image",imageSize:t,displayControlsInToolbar:n,onReset:s,onUpdate:o,onUpdateURL:i,preview:u,value:a,valueURL:c});d.defaultProps={className:"",imageSize:"thumbnail",displayControlsInToolbar:!1,onUpdateURL:null,valueURL:""},d.propTypes={className:i().string,imageSize:i().string,displayControlsInToolbar:i().bool,onReset:i().func.isRequired,onUpdate:i().func.isRequired,onUpdateURL:i().func,value:i().number.isRequired,valueURL:i().string};const p=d},7720:(e,t,n)=>{"use strict";n.d(t,{AudioPicker:()=>r.default,CSVUploader:()=>o.default,Checkboxes:()=>s.default,ImagePicker:()=>i.default,MediaPicker:()=>a.default,PostPicker:()=>c.default,PostSelector:()=>u.default,SafeHtml:()=>l.default,Selector:()=>d.default,Sortable:()=>p.default,SortableItem:()=>f.default,TermSelector:()=>h.default,VideoPicker:()=>m.default});var r=n(4928),s=n(2312),o=n(8312),i=n(8348),a=n(5680),l=n(9160),c=n(4808),u=n(8800),d=n(9064),p=n(8504),f=n(1917),h=n(668),m=n(5316)},5680:(e,t,n)=>{"use strict";n.d(t,{default:()=>m});var r=n(7e3),s=n(900),o=n.n(s),i=n(3376),a=n(9528),l=n(7287),c=n(7752),u=n(3396),d=n(5328);const p=i.cp.div`
+ display: block;
+ position: relative;
+`,f=i.cp.div`
+ background: white;
+ border: 1px solid black;
+ padding: 1em;
+`,h=({allowedTypes:e,className:t,icon:n,imageSize:s,displayControlsInToolbar:o,onReset:i,onUpdate:h,onUpdateURL:m,preview:g,value:y,valueURL:v})=>{const{media:b}=(0,c.useSelect)((e=>({media:y?e("core").getMedia(y):void 0})),[y]);if(0!==y&&null===b)return(0,r.jsx)(l.Spinner,{});const A=b?(0,d.getMediaUrl)(b,s):v;return A?(0,r.jsxs)(p,{className:t,children:[g?(0,r.jsx)(g,{src:A}):(0,r.jsxs)(f,{className:"alley-scripts-media-picker__preview",children:[(0,r.jsx)("p",{children:(0,u.__)("Selected file:","alley-scripts")}),(0,r.jsx)("p",{children:(0,r.jsx)("a",{href:A,children:A})})]}),o?(0,r.jsx)(a.BlockControls,{group:"other",children:(0,r.jsx)(a.MediaReplaceFlow,{name:(0,u.__)("Edit Media","alley-scripts"),mediaId:y,mediaURL:A,allowedTypes:e,onSelect:h,onSelectURL:m,children:(0,r.jsx)(l.ToolbarButton,{isDestructive:!0,text:(0,u.__)("Remove","alley-scripts"),onClick:i})})}):(0,r.jsx)(l.Button,{variant:"primary",onClick:i,children:(0,u.__)("Reset","alley-scripts")})]}):(0,r.jsx)(p,{className:t,children:(0,r.jsx)(a.MediaPlaceholder,{allowedTypes:e,disableMediaButtons:!!v,icon:(0,r.jsx)(a.BlockIcon,{icon:n}),onSelect:h,onSelectURL:m,value:{id:y,src:A}})})};h.defaultProps={allowedTypes:[],className:"",icon:"format-aside",imageSize:"thumbnail",displayControlsInToolbar:!1,onUpdateURL:null,preview:null,valueURL:""},h.propTypes={allowedTypes:o().arrayOf(o().string),className:o().string,icon:o().string,imageSize:o().string,displayControlsInToolbar:o().bool,onReset:o().func.isRequired,onUpdate:o().func.isRequired,onUpdateURL:o().func,preview:o().element,value:o().number.isRequired,valueURL:o().string};const m=h},4808:(e,t,n)=>{"use strict";n.d(t,{default:()=>F});var r=n(7e3),s=n(1280),o=n(3376),i=n(7287),a=n(3396),l=n(7204),c=n(2e3),u=n(2108),d=n.n(u),p=n(7020),f=n.n(p),h=n(7240),m=n.n(h),g=n(9516),y=n.n(g),v=n(2940),b=n.n(v),A=n(9296),_=n.n(A),x=n(9680),C={};C.styleTagTransform=_(),C.setAttributes=y(),C.insert=m().bind(null,"head"),C.domAPI=f(),C.insertStyleElement=b(),d()(x.c,C),x.c&&x.c.locals&&x.c.locals;var w=n(4632),S=n.n(w),k=n(6484),E=n.n(k),R=n(7424),T={};T.styleTagTransform=_(),T.setAttributes=y(),T.insert=m().bind(null,"head"),T.domAPI=f(),T.insertStyleElement=b(),d()(R.c,T),R.c&&R.c.locals&&R.c.locals;const I=window.wp.htmlEntities;var N=n(9160);const P=o.cp.div`
+ align-items: center;
+ gap: 4px;
+ overflow-wrap: anywhere;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ padding: 0.5rem 0.75rem;
+`,O=({title:e,postType:t,attachmentID:n})=>{const s=(0,c.useMedia)(n),o=s?.media_details?.sizes?.thumbnail?.source_url,i=s?.alt_text??"";return(0,r.jsxs)(P,{children:[o?(0,r.jsx)("img",{style:{maxWidth:"100%",height:"auto"},loading:"lazy",src:o,alt:i}):null,(0,r.jsx)(N.default,{html:(0,I.decodeEntities)(e),className:"post-picker-result-title",tag:"strong"}),(0,a.sprintf)(" (%s)",t)]})},L=({baseUrl:e,searchRender:t,selected:n,setSelected:o,suppressPostIds:c=[]})=>{const[u,d]=(0,s.useState)(!1),[p,f]=(0,s.useState)([]),[h,m]=(0,s.useState)(!1),[g,y]=(0,s.useState)(0),[v,b]=(0,s.useState)({searchValue:"",page:1}),A=(0,s.useCallback)((async(t,n=!1)=>{if(t.searchValue&&t.searchValue.length<=2)return;const r=function(){let n=(0,l.addQueryArgs)(e,{page:t.page,_embed:1,exclude:c.join(",")});return t.searchValue&&t.searchValue.length>2&&(n=(0,l.addQueryArgs)(n,{search:t.searchValue})),n}();d(!0);const s=await S()({path:r,parse:!1});y(parseInt(s.headers.get("X-WP-TotalPages"),10));const o=await s.json();let i=o;t.page>1&&(i=[...p,...o]),n||(f(i),d(!1))}),[p,e,c]);return(0,s.useEffect)((()=>{let e=!1;return h||(m(!0),A(v,e)),()=>{e=!0}}),[A,h,v]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.TextControl,{value:v.searchValue,placeholder:(0,a.__)("Search...","alley-scripts"),label:(0,a.__)("Search","alley-scripts"),onChange:e=>{const t={...v,searchValue:e,page:1};b(t),A(t)}}),(0,r.jsxs)("div",{className:"alley-scripts-post-picker__post-list",children:[p?p.map((e=>(0,r.jsx)(i.Button,{className:E()({"alley-scripts-post-picker__post":!0,"is-selected":e.id===n}),onClick:()=>o(e.id),children:t?t(e):(0,r.jsx)(O,{title:e.title,postType:e.subtype,attachmentID:e?._embedded?.self[0]?.featured_media})},e.id))):null,u?(0,r.jsx)(i.Spinner,{}):null,g>0&&v.page{const e={...v,page:v.page+1};b(e),A(e)},children:(0,a.__)("Load More","alley-scripts")})}):null]})]})},j=({baseUrl:e,closeModal:t,modalTitle:n,onUpdate:o,searchRender:l,suppressPostIds:c=[]})=>{const[u,d]=(0,s.useState)();return(0,r.jsxs)(i.Modal,{className:"alley-scripts-post-picker__modal",isDismissible:!0,title:n,onRequestClose:t,closeButtonLabel:"Close",children:[(0,r.jsx)(L,{baseUrl:e,selected:u??0,setSelected:d,searchRender:l,suppressPostIds:c}),(0,r.jsxs)("div",{className:"alley-scripts-post-picker__buttons",children:[(0,r.jsx)(i.Button,{variant:"secondary",onClick:t,children:(0,a.__)("Cancel","alley-scripts")}),(0,r.jsx)(i.Button,{variant:"primary",onClick:()=>{u&&(o(u),t())},disabled:!u,children:(0,a.__)("Select","alley-scripts")})]})]})};var D=n(3800),U={};U.styleTagTransform=_(),U.setAttributes=y(),U.insert=m().bind(null,"head"),U.domAPI=f(),U.insertStyleElement=b(),d()(D.c,U),D.c&&D.c.locals&&D.c.locals;const M=o.cp.div`
+ display: block;
+ position: relative;
+`,B=o.cp.div`
+ border: 1px solid #eee;
+ display: flex;
+ flex-direction: column;
+ margin: 5px 0;
+ padding: 0.5rem 0.75rem;
+ text-align: center;
+`,F=({allowedTypes:e,className:t,getPostType:n,modalTitle:o=(0,a.__)("Select Post","alley-scripts"),onReset:u,onUpdate:d,params:p={},previewLookup:f,previewRender:h,replaceText:m=(0,a.__)("Replace","alley-scripts"),resetText:g=(0,a.__)("Reset","alley-scripts"),searchEndpoint:y="/wp/v2/search",searchRender:v,selectText:b=(0,a.__)("Select","alley-scripts"),suppressPostIds:A=[],title:_="",value:x=0})=>{const[C,w]=(0,s.useState)(!1),S=(0,l.addQueryArgs)(y,{type:"post",subtype:e??"any",...p}),k=f?f(x):(0,c.usePostById)(x,n),{featured_media:E,title:{rendered:R=""}={},type:T=""}=k||{},I=()=>{w(!0)},N=()=>(0,r.jsxs)(i.ButtonGroup,{children:[(0,r.jsx)(i.Button,{variant:"secondary",onClick:u,style:{margin:"0 4px"},children:g}),(0,r.jsx)(i.Button,{variant:"secondary",onClick:I,style:{margin:"0 4px"},children:m})]});return 0!==x&&null===k?(0,r.jsx)(i.Spinner,{}):(0,r.jsxs)(M,{className:t,children:[_?(0,r.jsx)("h4",{children:_}):null,0!==x&&void 0===k?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Notice,{status:"error",isDismissible:!1,className:"post-picker-notice",children:(0,r.jsx)("p",{children:(0,a.sprintf)((0,a.__)("Post %d is no longer available; it has been unpublished or deleted","alley-scripts"),x)})}),N()]}):null,0!==x&&void 0!==k?(0,r.jsxs)(r.Fragment,{children:[void 0!==h?h(k):(0,r.jsx)(B,{children:(0,r.jsx)(O,{title:R,postType:T,attachmentID:E})}),N()]}):null,0===x?(0,r.jsx)(i.Button,{onClick:I,variant:"secondary",children:b}):null,C?(0,r.jsx)(j,{closeModal:()=>{w(!1)},baseUrl:S,modalTitle:o,onUpdate:d,searchRender:v,suppressPostIds:A}):null]})}},8800:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(7e3),s=n(900),o=n.n(s),i=n(3396),a=n(7720);const l=({className:e,emptyLabel:t,label:n,maxPages:s,multiple:o,onSelect:i,placeholder:l,subTypes:c,selected:u,threshold:d})=>(0,r.jsx)(a.Selector,{type:"post",className:e,emptyLabel:t,label:n,maxPages:s,multiple:o,onSelect:i,placeholder:l,subTypes:c,selected:u,threshold:d});l.defaultProps={className:"",emptyLabel:(0,i.__)("No posts found","alley-scripts"),label:(0,i.__)("Search for posts","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,i.__)("Search for posts","alley-scripts"),subTypes:[],selected:[],threshold:3},l.propTypes={className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const c=l},9160:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(7e3),s=n(6595),o=n.n(s),i=n(900),a=n.n(i);const l=({className:e,html:t,tag:n})=>(0,r.jsx)(n,{className:e,dangerouslySetInnerHTML:{__html:o().sanitize(t)}});l.defaultProps={className:""},l.propTypes={className:a().string,html:a().string.isRequired,tag:a().string.isRequired};const c=l},9064:(e,t,n)=>{"use strict";n.d(t,{default:()=>M});var r=n(7e3),s=n(900),o=n.n(s),i=n(1280),a=n(4632),l=n.n(a),c=n(6484),u=n.n(c),d=n(7287),p=n(3396),f=n(7204);const h={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let m;const g=new Uint8Array(16);function y(){if(!m&&(m="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!m))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return m(g)}const v=[];for(let e=0;e<256;++e)v.push((e+256).toString(16).slice(1));const b=function(e,t,n){if(h.randomUUID&&!t&&!e)return h.randomUUID();const r=(e=e||{}).random||(e.rng||y)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]}(r)};var A=n(2e3);const _=({emptyLabel:e,error:t,id:n,isOpen:s,labelledbyId:o,loading:i,onSelect:a,options:l,selectedItems:c,threshold:f,value:h})=>{if(!i&&(""===h||f>h.length))return null;let m="",g="";return i?(m="loading",g=(0,p.__)("Loading...","alley-scripts")):t?(m="error",g=t):i||0!==l.length||(m="no-posts",g=e),i||!i&&(h&&0===l.length||t)?(0,r.jsx)("div",{"aria-busy":!0,className:u()("autocomplete__dropdown",{"autocomplete__dropdown--is-open":s}),children:(0,r.jsx)("div",{className:u()("autocomplete__dropdown--notice",`autocomplete__${m}`),children:g})}):(0,r.jsx)("div",{className:u()("autocomplete__dropdown",{"autocomplete__dropdown--is-open":s}),children:(0,r.jsx)("ul",{role:"listbox","aria-labelledby":o,id:n,className:u()("autocomplete__dropdown--results","autocomplete__list"),children:l.map((e=>(0,r.jsx)("li",{className:"autocomplete__list--item",children:(0,r.jsx)(d.Button,{onClick:()=>a(e),type:"button",disabled:c.some((t=>t.id===e.id)),isTertiary:!0,children:e.title})},e.id)))})})};_.propTypes={emptyLabel:o().string.isRequired,error:o().string.isRequired,id:o().string.isRequired,isOpen:o().bool.isRequired,labelledbyId:o().string.isRequired,loading:o().bool.isRequired,options:o().arrayOf(o().shape({label:o().string,value:o().string})).isRequired,onSelect:o().func.isRequired,selectedItems:o().shape([]).isRequired,threshold:o().number.isRequired,value:o().string.isRequired};const x=_;var C=n(2108),w=n.n(C),S=n(7020),k=n.n(S),E=n(7240),R=n.n(E),T=n(9516),I=n.n(T),N=n(2940),P=n.n(N),O=n(9296),L=n.n(O),j=n(5500),D={};D.styleTagTransform=L(),D.setAttributes=I(),D.insert=R().bind(null,"head"),D.domAPI=k(),D.insertStyleElement=P(),w()(j.c,D),j.c&&j.c.locals&&j.c.locals;const U=({type:e,className:t,emptyLabel:n,label:s,maxPages:o,multiple:a,onSelect:c,placeholder:p,subTypes:h,selected:m,threshold:g})=>{const y=b(),[v,_]=(0,i.useState)(""),[C,w]=(0,i.useState)([]),[S,k]=(0,i.useState)(!1),[E,R]=(0,i.useState)(!1),[T,I]=(0,i.useState)(""),[N,P]=(0,i.useState)([]),O=(0,i.useRef)(),L=(0,A.useDebounce)(T,750),j=(0,i.useCallback)((async(t=1)=>{if(L.length0?h.join(","):"any",type:e});await l()({path:r,parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"),10);return n=t>o?o:t,e.json()})).then((e=>{w((t=>[...t,...e])),R(!1),(n&&n>t||t>=1&&a&&N.length>0)&&j(t+1)})).catch((e=>_(e.message)))}),[L,e,o,a,h,N.length,g]);(0,i.useEffect)((()=>{P(m)}),[m]),(0,i.useEffect)((()=>{L&&g<=L.length?j():w([])}),[L,j,g]);const D=e=>{k(O.current.contains(e.target))},U=e=>{"Escape"===e.key&&k(!1)};(0,i.useEffect)((()=>(document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)))),(0,i.useEffect)((()=>(O&&document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D))));const M=e=>{let t=[];if(N.some((t=>t.id===e.id))){const n=N.findIndex((t=>t.id===e.id));t=[...N.slice(0,n),...N.slice(n+1,N.length)]}else a?t=[...N,e]:(t=[e],k(!1));P(t),c(t)};return(0,r.jsx)("form",{className:"autocomplete__component",onSubmit:e=>e.preventDefault(),children:(0,r.jsxs)("div",{className:u()("components-base-control","autocomplete-base-control",t),ref:O,children:[(0,r.jsxs)("div",{"aria-expanded":S,"aria-haspopup":"listbox","aria-owns":`listbox-${y}`,className:u()("components-base-control__field","autocomplete-base-control__field"),role:"combobox",children:[(0,r.jsx)("label",{className:u()("components-base-control__label","autocomplete-base-control__label"),htmlFor:`autocomplete-${y}`,children:(0,r.jsx)("div",{children:s})}),N.length>0?(0,r.jsx)("ul",{role:"listbox","aria-labelledby":`autocomplete-${y}`,id:`selected-items-${y}`,className:u()("autocomplete__selection--results","autocomplete__selection-list"),children:N.map((e=>(0,r.jsx)("li",{className:"autocomplete__selection-list--item",children:(0,r.jsx)(d.Button,{className:"autocomplete__selection-list--item--button",isSecondary:!0,isSmall:!0,onClick:()=>M(e),type:"button",children:e.title})},e.title)))}):null,(0,r.jsx)("input",{"aria-autocomplete":"list",autoComplete:"off",className:u()("components-text-control__input","autocomplete-text-control__input",{"autocomplete-text-control__input--working":S}),id:`autocomplete-${y}`,onChange:e=>I(e.target.value),onFocus:()=>k(!0),placeholder:p,type:"text",value:T})]}),(0,r.jsx)(x,{emptyLabel:n,error:v,labelledById:`autocomplete-${y}`,id:`listbox-${y}`,isOpen:S,loading:E&&L,onSelect:M,options:C,selectedItems:N,threshold:g,value:L})]})})};U.defaultProps={type:"post",className:"",emptyLabel:(0,p.__)("No items found","alley-scripts"),label:(0,p.__)("Search for items","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,p.__)("Search for items","alley-scripts"),subTypes:[],selected:[],threshold:3},U.propTypes={type:o().string,className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const M=U},1917:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(7e3),s=n(7287),o=n(3396);function i({children:e,index:t,list:n,setList:i}){return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(s.Button,{disabled:0===t,icon:"arrow-up-alt2",label:(0,o.__)("Move up","alley-scripts"),onClick:()=>{const e=[...n];e.splice(t-1,0,e.splice(t,1)[0]),i(e)}}),(0,r.jsx)(s.Button,{disabled:t===n.length-1,icon:"arrow-down-alt2",label:(0,o.__)("Move down","alley-scripts"),onClick:()=>{const e=[...n];e.splice(t+1,0,e.splice(t,1)[0]),i(e)}}),(0,r.jsx)(s.Button,{icon:"trash",label:(0,o.__)("Remove","alley-scripts"),onClick:()=>{const e=[...n];e.splice(t,1),i(e)}})]}),(0,r.jsx)("div",{children:e})]})}},8504:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(7e3),s=n(7287),o=n(3396);function i({children:e,emptyItem:t,list:n,setList:i}){return(0,r.jsxs)(r.Fragment,{children:[e,(0,r.jsx)("div",{style:{margin:"1em 0"},children:(0,r.jsx)(s.Button,{icon:"plus",onClick:()=>i([...n,t]),variant:"primary",children:(0,o.__)("Add Item","alley-scripts")})})]})}},668:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(7e3),s=n(900),o=n.n(s),i=n(3396),a=n(7720);const l=({className:e,emptyLabel:t,label:n,maxPages:s,multiple:o,onSelect:i,placeholder:l,subTypes:c,selected:u,threshold:d})=>(0,r.jsx)(a.Selector,{type:"term",className:e,emptyLabel:t,label:n,maxPages:s,multiple:o,onSelect:i,placeholder:l,subTypes:c,selected:u,threshold:d});l.defaultProps={className:"",emptyLabel:(0,i.__)("No terms found","alley-scripts"),label:(0,i.__)("Search for terms","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,i.__)("Search for terms","alley-scripts"),subTypes:[],selected:[],threshold:3},l.propTypes={className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const c=l},5316:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var r=n(7e3),s=n(900),o=n.n(s),i=n(3376),a=n(7720);const l=i.cp.div`
+ height: auto;
+ width: 100%;
+`,c=({src:e})=>(0,r.jsx)(l,{children:(0,r.jsx)("video",{className:"edit-video-preview",controls:!0,src:e})});c.propTypes={src:o().string.isRequired};const u=({className:e,onReset:t,onUpdate:n,onUpdateURL:s,value:o,valueURL:i})=>(0,r.jsx)(a.MediaPicker,{allowedTypes:["video"],className:e,icon:"format-video",onReset:t,onUpdate:n,onUpdateURL:s,preview:c,value:o,valueURL:i});u.defaultProps={className:"",onUpdateURL:null,valueURL:""},u.propTypes={className:o().string,onReset:o().func.isRequired,onUpdate:o().func.isRequired,onUpdateURL:o().func,value:o().number.isRequired,valueURL:o().string};const d=u},2e3:(e,t,n)=>{"use strict";n.d(t,{useCurrentPostId:()=>r.default,useCurrentTheme:()=>s.default,useDebounce:()=>o.default,useHasInnerBlocks:()=>i.default,useInnerBlocks:()=>a.default,useInnerBlocksAttributes:()=>l.default,useInnerBlocksCount:()=>c.default,useInnerBlocksIndex:()=>u.default,useMedia:()=>d.default,useOption:()=>p.default,useParentBlock:()=>f.default,useParentBlockAttributes:()=>h.default,usePost:()=>m.default,usePostById:()=>g.default,usePostMeta:()=>y.default,usePostMetaValue:()=>v.default,usePosts:()=>b.default,usePreviewLink:()=>A.default,useTerm:()=>_.default,useTerms:()=>x.default});var r=n(9695),s=n(5904),o=n(7112),i=n(6980),a=n(864),l=n(8512),c=n(1344),u=n(6644),d=n(592),p=n(7188),f=n(224),h=n(8004),m=n(1744),g=n(9480),y=n(6504),v=n(3772),b=n(4704),A=n(7532),_=n(7712),x=n(1848)},9695:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(7752);const s=()=>(0,r.useSelect)((e=>{const t=e("core/editor");return t?t.getCurrentPostId():null}),[])},5904:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=()=>(0,s.useSelect)((e=>{const t=e(r.store);return t?t.getCurrentTheme()?.stylesheet:null}),[])},7112:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(1280);const s=(e,t)=>{const[n,s]=(0,r.useState)(e);return(0,r.useEffect)((()=>{const n=setTimeout((()=>{s(e)}),t);return()=>{clearTimeout(n)}}),[e,t]),n}},6980:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=e=>(0,r.useInnerBlocksCount)(e)>0},6644:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=e=>{const t=(0,r.useParentBlock)(e),n=(0,r.useInnerBlocks)(t);return n?n.findIndex((t=>t.clientId===e)):-1}},8512:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=e=>(0,r.useInnerBlocks)(e).map((e=>e.attributes))},1344:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=e=>(0,r.useInnerBlocks)(e).length},864:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9528),s=n(7752);const o=e=>(0,s.useSelect)((t=>t(r.store).getBlocks(e)),[e])},592:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=e=>(0,s.useSelect)((t=>t(r.store).getMedia(e)),[e])},7188:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(7752);const s=function(e){const t=(0,r.useSelect)((t=>{const{getEditedEntityRecord:n,getEntityRecordEdits:r,isSavingEntityRecord:s}=t("core"),o=n("root","site"),i=r("root","site");return{value:o?.[e],isEdited:!!i?.[e],isSaving:s("root","site")}}),[]),{editEntityRecord:n,saveEntityRecord:s}=(0,r.useDispatch)("core");return{...t,onChange:function(t){n("root","site",void 0,{[e]:t})},onSave:async function(){await s("root","site",{[e]:t.value})}}}},8004:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9528),s=n(7752);const o=e=>(0,s.useSelect)((t=>{const{getBlockAttributes:n,getBlockRootClientId:s}=t(r.store),o=s(e);return o?n(o):null}),[e])},224:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9528),s=n(7752);const o=e=>(0,s.useSelect)((t=>{const{getBlock:n,getBlockRootClientId:s}=t(r.store),o=s(e);return o?n(o):null}),[e])},9480:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(1280),s=n(4632),o=n.n(s),i=n(7204),a=n(1744);const l=(e,t=null,n={context:"view"})=>{const[s,l]=(0,r.useState)({}),[c,u]=(0,r.useState)(!0);(0,r.useEffect)((()=>{u(!0),e&&!s[e]?(async()=>{if(t){const n=await t(e);n?l((t=>({...t,[e]:n}))):console.error(`Custom function to get post with ID ${e} failed.`)}else{const t=(0,i.addQueryArgs)("/wp/v2/search",{include:e}),n=await o()({path:t});n.length>0&&l((t=>({...t,[e]:n[0]?.subtype})))}u(!1)})():e&&s[e]&&u(!1)}),[e]);const d=(0,a.default)(e,s[e]??"",n);return c||!d&&s[e]?null:d}},3772:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=(e,t=null,n=null)=>{const[s,o]=(0,r.usePostMeta)(t,n);return[s[e],t=>o({...s,[e]:t})]}},6504:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e=null,t=null)=>{const n=(0,s.useSelect)((t=>e||t("core/editor").getCurrentPostType()),[]),[o,i]=(0,r.useEntityProp)("postType",n,"meta",t),a="function"==typeof i?i:()=>console.error(`Error attempting to set post meta for post type ${n}. Does it have support for custom-fields?`);return["object"==typeof o?o:{},e=>a({...e})]}},1744:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e,t="post",n={context:"view"})=>(0,s.useSelect)((s=>s(r.store).getEntityRecord("postType",t,e,n)),[e,t])},4704:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e,t="post")=>(0,s.useSelect)((n=>{const{getEntityRecords:s}=n(r.store);return s("postType",t,{include:e})}),[e,t])},7532:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=()=>(0,s.useSelect)((e=>e(r.store).getEditedPostPreviewLink()),[])},7712:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e,t="category",n={context:"view"})=>(0,s.useSelect)((s=>s(r.store).getEntityRecord("taxonomy",t,e,n)),[e,t])},1848:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e=null,t=null,n="categories")=>{const o=(0,s.useSelect)((t=>e||t("core/editor").getCurrentPostType()),[]),[i,a]=(0,r.useEntityProp)("postType",o,n,t);return[i,e=>a(e)]}},5328:(e,t,n)=>{"use strict";n.d(t,{getMediaUrl:()=>i.c,parseCSVFile:()=>o});var r=n(2232),s=n.n(r);const o=e=>new Promise(((t,n)=>{s().parse(e,{complete:e=>t(e.data),dynamicTyping:!0,error:e=>n(e),header:!0,skipEmptyLines:!0})}));var i=n(6199)},6199:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=(e,t="full")=>{const{media_details:{sizes:{[t]:{source_url:n=""}={},full:{source_url:r=""}={}}={}}={},sizes:{[t]:{url:s=""}={},full:{url:o=""}={}}={},source_url:i="",url:a=""}=e;return s||n||o||r||a||i||""}},1280:e=>{"use strict";e.exports=window.React},4632:e=>{"use strict";e.exports=window.wp.apiFetch},9528:e=>{"use strict";e.exports=window.wp.blockEditor},7287:e=>{"use strict";e.exports=window.wp.components},3048:e=>{"use strict";e.exports=window.wp.coreData},7752:e=>{"use strict";e.exports=window.wp.data},3396:e=>{"use strict";e.exports=window.wp.i18n},7204:e=>{"use strict";e.exports=window.wp.url}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var o=t[r]={id:r,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{AudioPicker:()=>e.AudioPicker,CSVUploader:()=>e.CSVUploader,Checkboxes:()=>e.Checkboxes,ImagePicker:()=>e.ImagePicker,MediaPicker:()=>e.MediaPicker,PostPicker:()=>e.PostPicker,PostSelector:()=>e.PostSelector,SafeHtml:()=>e.SafeHtml,Selector:()=>e.Selector,Sortable:()=>e.Sortable,SortableItem:()=>e.SortableItem,TermSelector:()=>e.TermSelector,VideoPicker:()=>e.VideoPicker,getMediaUrl:()=>s.getMediaUrl,parseCSVFile:()=>s.parseCSVFile,useCurrentPostId:()=>t.useCurrentPostId,useCurrentTheme:()=>t.useCurrentTheme,useDebounce:()=>t.useDebounce,useHasInnerBlocks:()=>t.useHasInnerBlocks,useInnerBlocks:()=>t.useInnerBlocks,useInnerBlocksAttributes:()=>t.useInnerBlocksAttributes,useInnerBlocksCount:()=>t.useInnerBlocksCount,useInnerBlocksIndex:()=>t.useInnerBlocksIndex,useMedia:()=>t.useMedia,useOption:()=>t.useOption,useParentBlock:()=>t.useParentBlock,useParentBlockAttributes:()=>t.useParentBlockAttributes,usePost:()=>t.usePost,usePostById:()=>t.usePostById,usePostMeta:()=>t.usePostMeta,usePostMetaValue:()=>t.usePostMetaValue,usePosts:()=>t.usePosts,usePreviewLink:()=>t.usePreviewLink,useTerm:()=>t.useTerm,useTerms:()=>t.useTerms});var e=n(7720),t=n(2e3),s=n(5328)})(),r})(),e.exports=t()},429:function(e,t,n){"use strict";var r=window.wp.blocks,s=window.React,o=n(265),i=window.wp.i18n,a=window.wp.blockEditor,l=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"wp-newsletter-builder/post-excerpt","version":"0.1.0","title":"Newsletter Post Excerpt","category":"design","icon":"admin-post","description":"Displays a post excerpt","textdomain":"wp-newsletter-builder","editorScript":"file:index.ts","editorStyle":"file:index.css","style":["file:style-index.css"],"render":"file:render.php","attributes":{"overrideExcerpt":{"type":"string","default":""}},"usesContext":["postId"]}');(0,r.registerBlockType)(l,{edit:function(e){var t;let{attributes:{overrideExcerpt:n},context:{postId:r},setAttributes:l}=e;const c=null!==(t=(0,o.usePostById)(r))&&void 0!==t?t:null;let u=c?c.excerpt.rendered:(0,i.__)("This block will display the excerpt.","wp-newsletter-builder");return u=n||u,(0,s.createElement)("div",{...(0,a.useBlockProps)({className:"post__dek"})},(0,s.createElement)(a.RichText,{value:u,tagName:"p",multiline:!1,onChange:e=>l({overrideExcerpt:e})}))}})}},n={};function r(e){var s=n[e];if(void 0!==s)return s.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.m=t,e=[],r.O=function(t,n,s,o){if(!n){var i=1/0;for(u=0;u=o)&&Object.keys(r.O).every((function(e){return r.O[e](n[l])}))?n.splice(l--,1):(a=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,s,o]},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={528:0,640:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var s,o,i=n[0],a=n[1],l=n[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(s in a)r.o(a,s)&&(r.m[s]=a[s]);if(l)var u=l(r)}for(t&&t(n);c.
+ * @param WP_Block $block The instance of the WP_Block class that represents the block being rendered.
+ *
+ * @package wp-newsletter-builder
+ */
+
+$wp_newsletter_builder_block_post = $block->context['postId'] ?? null;
+
+$wp_newsletter_builder_block_post = get_post( $wp_newsletter_builder_block_post );
+if ( empty( $wp_newsletter_builder_block_post ) ) {
+ return;
+}
+$wp_newsletter_builder_excerpt = ! empty( $attributes['overrideExcerpt'] ) ? $attributes['overrideExcerpt'] : get_the_excerpt( $wp_newsletter_builder_block_post );
+
+?>
+ 'post__dek' ] ) ); ?>>
+
+
diff --git a/build/post-excerpt/style-index-rtl.css b/build/post-excerpt/style-index-rtl.css
new file mode 100644
index 00000000..a7a3213a
--- /dev/null
+++ b/build/post-excerpt/style-index-rtl.css
@@ -0,0 +1 @@
+a.post__title-link{color:#000;display:block;margin:20px auto;text-decoration:none}a.post__title-link h2{margin-bottom:0;text-align:center}a.post__title-link h2.post__title--small{font-size:24px}
diff --git a/build/post-excerpt/style-index.css b/build/post-excerpt/style-index.css
new file mode 100644
index 00000000..a7a3213a
--- /dev/null
+++ b/build/post-excerpt/style-index.css
@@ -0,0 +1 @@
+a.post__title-link{color:#000;display:block;margin:20px auto;text-decoration:none}a.post__title-link h2{margin-bottom:0;text-align:center}a.post__title-link h2.post__title--small{font-size:24px}
diff --git a/build/post-featured-image/block.json b/build/post-featured-image/block.json
new file mode 100644
index 00000000..037c719a
--- /dev/null
+++ b/build/post-featured-image/block.json
@@ -0,0 +1,29 @@
+{
+ "$schema": "https://schemas.wp.org/trunk/block.json",
+ "apiVersion": 2,
+ "name": "wp-newsletter-builder/post-featured-image",
+ "version": "0.1.0",
+ "title": "Newsletter Post Featured Image",
+ "category": "design",
+ "icon": "admin-post",
+ "description": "Displays a post featured image",
+ "textdomain": "wp-newsletter-builder",
+ "editorScript": "file:index.js",
+ "style": [
+ "file:style-index.css"
+ ],
+ "render": "file:render.php",
+ "attributes": {
+ "overrideImage": {
+ "type": "number",
+ "default": 0
+ },
+ "imgSizes": {
+ "type": "string",
+ "default": ""
+ }
+ },
+ "usesContext": [
+ "postId"
+ ]
+}
\ No newline at end of file
diff --git a/build/post-featured-image/index.asset.php b/build/post-featured-image/index.asset.php
new file mode 100644
index 00000000..48db9660
--- /dev/null
+++ b/build/post-featured-image/index.asset.php
@@ -0,0 +1 @@
+ array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '98b09193dda6d80d581c');
diff --git a/build/post-featured-image/index.js b/build/post-featured-image/index.js
new file mode 100644
index 00000000..742a6c29
--- /dev/null
+++ b/build/post-featured-image/index.js
@@ -0,0 +1,42 @@
+!function(){var e,t={265:function(e){var t;self,t=()=>(()=>{var e={6484:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function s(){for(var e=[],t=0;t{"use strict";n.d(t,{c:()=>a});var r=n(2876),s=n.n(r),o=n(1849),i=n.n(o)()(s());i.push([e.id,".alley-scripts-post-picker__post-list{display:flex;flex-wrap:wrap;float:left;height:calc(70vh - 200px);justify-content:flex-start;overflow-y:auto;padding:8px;width:100%}.alley-scripts-post-picker__post{border:1px solid #eee;height:auto;justify-content:center;margin:0 8px 8px 0;transition:background-color .2s ease-in-out;width:calc((100% - 40px)/3)}@media(min-width: 780px){.alley-scripts-post-picker__post{width:calc((100% - 40px)/5)}}.alley-scripts-post-picker__post:hover{background-color:#f5f5f5}.alley-scripts-post-picker__post.is-selected{background-color:#f5f5f5}.alley-scripts-post-picker__load-more{clear:both;float:left;text-align:center;width:100%}","",{version:3,sources:["webpack://./src/components/post-picker/post-list.scss"],names:[],mappings:"AAAA,sCACE,YAAA,CACA,cAAA,CACA,UAAA,CACA,yBAAA,CACA,0BAAA,CACA,eAAA,CACA,WAAA,CACA,UAAA,CAGF,iCACE,qBAAA,CACA,WAAA,CACA,sBAAA,CACA,kBAAA,CACA,2CAAA,CACA,2BAAA,CAGA,yBATF,iCAUI,2BAAA,CAAA,CAGF,uCACE,wBAAA,CAGF,6CACE,wBAAA,CAIJ,sCACE,UAAA,CACA,UAAA,CACA,iBAAA,CACA,UAAA",sourcesContent:[".alley-scripts-post-picker__post-list {\n display: flex;\n flex-wrap: wrap;\n float: left;\n height: calc(70vh - 200px);\n justify-content: flex-start;\n overflow-y: auto;\n padding: 8px;\n width: 100%;\n}\n\n.alley-scripts-post-picker__post {\n border: 1px solid #eee;\n height: auto;\n justify-content: center;\n margin: 0 8px 8px 0;\n transition: background-color 0.2s ease-in-out;\n width: calc((100% - 40px) / 3);\n\n\n @media (min-width: 780px) {\n width: calc((100% - 40px) / 5);\n }\n\n &:hover {\n background-color: #f5f5f5;\n }\n\n &.is-selected {\n background-color: #f5f5f5;\n }\n}\n\n.alley-scripts-post-picker__load-more {\n clear: both;\n float: left;\n text-align: center;\n width: 100%;\n}\n"],sourceRoot:""}]);const a=i},9680:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(2876),s=n.n(r),o=n(1849),i=n.n(o)()(s());i.push([e.id,".alley-scripts-post-picker__modal .components-modal__content{width:90vw}.alley-scripts-post-picker__buttons{clear:both;display:block;text-align:right;width:100%}.alley-scripts-post-picker__buttons button{margin:5px}","",{version:3,sources:["webpack://./src/components/post-picker/search-modal.scss"],names:[],mappings:"AACE,6DACE,UAAA,CAIJ,oCACE,UAAA,CACA,aAAA,CACA,gBAAA,CACA,UAAA,CAEA,2CACE,UAAA",sourcesContent:[".alley-scripts-post-picker__modal {\n .components-modal__content {\n width: 90vw;\n }\n}\n\n.alley-scripts-post-picker__buttons {\n clear: both;\n display: block;\n text-align: right;\n width: 100%;\n\n button {\n margin: 5px;\n }\n}\n"],sourceRoot:""}]);const a=i},3800:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(2876),s=n.n(r),o=n(1849),i=n.n(o)()(s());i.push([e.id,".post-picker-notice{margin:0 0 .5rem 0}","",{version:3,sources:["webpack://./src/components/post-picker/style.scss"],names:[],mappings:"AAAA,oBACE,kBAAA",sourcesContent:[".post-picker-notice {\n margin: 0 0 0.5rem 0;\n}\n"],sourceRoot:""}]);const a=i},5500:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(2876),s=n.n(r),o=n(1849),i=n.n(o)()(s());i.push([e.id,'.edit-post-sidebar .autocomplete__component,.editor-styles-wrapper .autocomplete__component{margin-bottom:20px}.edit-post-sidebar .autocomplete-base-control,.editor-styles-wrapper .autocomplete-base-control{position:relative}.edit-post-sidebar .autocomplete-text-control__input,.editor-styles-wrapper .autocomplete-text-control__input{margin:0}.edit-post-sidebar .autocomplete__selection-list,.editor-styles-wrapper .autocomplete__selection-list{list-style-type:none;margin:0 0 6px;padding:0}.edit-post-sidebar .autocomplete__selection-list--item,.editor-styles-wrapper .autocomplete__selection-list--item{display:inline-block;list-style:none}.edit-post-sidebar .autocomplete__selection-list--item--button,.editor-styles-wrapper .autocomplete__selection-list--item--button{margin-bottom:4px;margin-right:3px}.edit-post-sidebar .autocomplete__selection-list--item--button::after,.editor-styles-wrapper .autocomplete__selection-list--item--button::after{content:"×";font-size:16px;line-height:20px;margin-left:5px}.edit-post-sidebar .autocomplete__dropdown,.editor-styles-wrapper .autocomplete__dropdown{background-color:#fff;border-color:rgba(0,0,0,0) #e2e4e7 #e2e4e7;border-radius:0 0 4px 4px;border-style:solid;border-width:0 1px 1px;left:0;max-height:0;overflow-y:hidden;position:absolute;top:calc(100% + 1px);visibility:hidden;width:100%;z-index:10}.edit-post-sidebar .autocomplete__dropdown--is-open,.editor-styles-wrapper .autocomplete__dropdown--is-open{box-shadow:0 3px 30px rgba(25,30,35,.1);max-height:225px;overflow-y:scroll;visibility:visible}.edit-post-sidebar .autocomplete__dropdown--notice,.editor-styles-wrapper .autocomplete__dropdown--notice{padding:15px}.edit-post-sidebar .autocomplete__dropdown--results,.editor-styles-wrapper .autocomplete__dropdown--results{list-style:none;margin:0;padding:0}.edit-post-sidebar .autocomplete__list--item,.editor-styles-wrapper .autocomplete__list--item{list-style:none}.edit-post-sidebar .autocomplete__list--item>button,.editor-styles-wrapper .autocomplete__list--item>button{background:rgba(0,0,0,0);border-color:#e2e4e7;border-style:solid;border-width:0 0 1px;height:100%;line-height:1.25;text-align:left;white-space:inherit;width:100%}.edit-post-sidebar .autocomplete__list--item:last-child>button,.editor-styles-wrapper .autocomplete__list--item:last-child>button{border-bottom:0}',"",{version:3,sources:["webpack://./src/components/selector/styles.scss"],names:[],mappings:"AAAA,4FAgBI,kBACE,CAAA,gGAMF,iBACE,CAAA,8GAMF,QACE,CAAA,sGAMF,oBACE,CAAA,cACA,CAAA,SACA,CAAA,kHAEA,oBACE,CAAA,eACA,CAAA,kIAEA,iBACE,CAAA,gBACA,CAAA,gJAEA,WACE,CAAA,cACA,CAAA,gBACA,CAAA,eACA,CAAA,0FASR,qBACE,CAAA,0CACA,CAAA,yBACA,CAAA,kBACA,CAAA,sBACA,CAAA,MACA,CAAA,YACA,CAAA,iBACA,CAAA,iBACA,CAAA,oBACA,CAAA,iBACA,CAAA,UACA,CAAA,UACA,CAAA,4GAGA,uCACE,CAAA,gBACA,CAAA,iBACA,CAAA,kBACA,CAAA,0GAIF,YACE,CAAA,4GAIF,eACE,CAAA,QACA,CAAA,SACA,CAAA,8FAOJ,eACE,CAAA,4GAEA,wBACE,CAAA,oBACA,CAAA,kBACA,CAAA,oBACA,CAAA,WACA,CAAA,gBACA,CAAA,eACA,CAAA,mBACA,CAAA,UACA,CAAA,kIAGF,eACE",sourcesContent:["//--------------------------------------------------------------\n// AutoComplete Styles\n//--------------------------------------------------------------\n\n/* stylelint-disable max-nesting-depth */\n\n//-----------------------------------------\n// Accommodate editor well, or the sidebar.\n//-----------------------------------------\n.edit-post-sidebar,\n.editor-styles-wrapper {\n .autocomplete {\n\n //-----------------------------------------\n // Parent form wrapper.\n //-----------------------------------------\n &__component {\n margin-bottom: 20px;\n }\n\n //-----------------------------------------\n // Wrapper\n //-----------------------------------------\n &-base-control {\n position: relative;\n }\n\n //-----------------------------------------\n // Input\n //-----------------------------------------\n &-text-control__input {\n margin: 0;\n }\n\n //-----------------------------------------\n // Selected buttons.\n //-----------------------------------------\n &__selection-list {\n list-style-type: none;\n margin: 0 0 6px;\n padding: 0;\n\n &--item {\n display: inline-block;\n list-style: none;\n\n &--button {\n margin-bottom: 4px;\n margin-right: 3px;\n\n &::after {\n content: '×';\n font-size: 16px;\n line-height: 20px;\n margin-left: 5px;\n }\n }\n }\n }\n\n //-----------------------------------------\n // Results\n //-----------------------------------------\n &__dropdown {\n background-color: #fff;\n border-color: transparent #e2e4e7 #e2e4e7;\n border-radius: 0 0 4px 4px;\n border-style: solid;\n border-width: 0 1px 1px;\n left: 0;\n max-height: 0;\n overflow-y: hidden;\n position: absolute;\n top: calc(100% + 1px); // Offset focus border.\n visibility: hidden;\n width: 100%;\n z-index: 10;\n\n // Container is open.\n &--is-open {\n box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1);\n max-height: 225px;\n overflow-y: scroll;\n visibility: visible;\n }\n\n // Notice handler.\n &--notice {\n padding: 15px;\n }\n\n // Results container.\n &--results {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n }\n\n //-----------------------------------------\n // List/Results\n //-----------------------------------------\n &__list--item {\n list-style: none;\n\n > button {\n background: transparent;\n border-color: #e2e4e7;\n border-style: solid;\n border-width: 0 0 1px;\n height: 100%;\n line-height: 1.25;\n text-align: left;\n white-space: inherit;\n width: 100%;\n }\n\n &:last-child > button {\n border-bottom: 0;\n }\n }\n }\n}\n"],sourceRoot:""}]);const a=i},1849:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,s,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var a=0;a0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),s&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=s):u[4]="".concat(s)),t.push(u))}},t}},2876:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(s," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},6595:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:s}=Object;let{freeze:o,seal:i,create:a}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),i||(i=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=w(Array.prototype.forEach),d=w(Array.prototype.pop),p=w(Array.prototype.push),f=w(String.prototype.toLowerCase),h=w(String.prototype.toString),m=w(String.prototype.match),g=w(String.prototype.replace),y=w(String.prototype.indexOf),v=w(String.prototype.trim),b=w(RegExp.prototype.test),A=(_=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),s=1;s2&&void 0!==arguments[2]?arguments[2]:f;t&&t(e,null);let o=r.length;for(;o--;){let t=r[o];if("string"==typeof t){const e=s(t);e!==t&&(n(r)||(r[o]=e),t=e)}e[t]=!0}return e}function x(t){const n=a(null);for(const[r,o]of e(t))void 0!==s(t,r)&&(n[r]=o);return n}function S(e,t){for(;null!==e;){const n=s(e,t);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}e=r(e)}return function(e){return console.warn("fallback value for",e),null}}const k=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),E=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),T=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),N=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=o(["#text"]),O=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),L=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),j=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),D=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),U=i(/\{\{[\w\W]*|[\w\W]*\}\}/gm),M=i(/<%[\w\W]*|[\w\W]*%>/gm),B=i(/\${[\w\W]*}/gm),F=i(/^data-[\-\w.\u00B7-\uFFFF]/),z=i(/^aria-[\-\w]+$/),q=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=i(/^(?:\w+script|data):/i),H=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W=i(/^html$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:U,ERB_EXPR:M,TMPLIT_EXPR:B,DATA_ATTR:F,ARIA_ATTR:z,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:H,DOCTYPE_NAME:W});return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const r=e=>t(e);if(r.version="3.0.6",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;let{document:s}=n;const i=s,l=i.currentScript,{DocumentFragment:c,HTMLTemplateElement:_,Node:w,Element:U,NodeFilter:M,NamedNodeMap:B=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:F,DOMParser:z,trustedTypes:$}=n,H=U.prototype,Y=S(H,"cloneNode"),V=S(H,"nextSibling"),K=S(H,"childNodes"),Q=S(H,"parentNode");if("function"==typeof _){const e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}let J,X="";const{implementation:Z,createNodeIterator:ee,createDocumentFragment:te,getElementsByTagName:ne}=s,{importNode:re}=i;let se={};r.isSupported="function"==typeof e&&"function"==typeof Q&&Z&&void 0!==Z.createHTMLDocument;const{MUSTACHE_EXPR:oe,ERB_EXPR:ie,TMPLIT_EXPR:ae,DATA_ATTR:le,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:ue,ATTR_WHITESPACE:de}=G;let{IS_ALLOWED_URI:pe}=G,fe=null;const he=C({},[...k,...E,...R,...I,...P]);let me=null;const ge=C({},[...O,...L,...j,...D]);let ye=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,be=null,Ae=!0,_e=!0,we=!1,Ce=!0,xe=!1,Se=!1,ke=!1,Ee=!1,Re=!1,Te=!1,Ie=!1,Ne=!0,Pe=!1,Oe=!0,Le=!1,je={},De=null;const Ue=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Me=null;const Be=C({},["audio","video","img","source","image","track"]);let Fe=null;const ze=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",He="http://www.w3.org/1999/xhtml";let We=He,Ge=!1,Ye=null;const Ve=C({},[qe,$e,He],h);let Ke=null;const Qe=["application/xhtml+xml","text/html"];let Je=null,Xe=null;const Ze=s.createElement("form"),et=function(e){return e instanceof RegExp||e instanceof Function},tt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Xe||Xe!==e){if(e&&"object"==typeof e||(e={}),e=x(e),Ke=Ke=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Je="application/xhtml+xml"===Ke?h:f,fe="ALLOWED_TAGS"in e?C({},e.ALLOWED_TAGS,Je):he,me="ALLOWED_ATTR"in e?C({},e.ALLOWED_ATTR,Je):ge,Ye="ALLOWED_NAMESPACES"in e?C({},e.ALLOWED_NAMESPACES,h):Ve,Fe="ADD_URI_SAFE_ATTR"in e?C(x(ze),e.ADD_URI_SAFE_ATTR,Je):ze,Me="ADD_DATA_URI_TAGS"in e?C(x(Be),e.ADD_DATA_URI_TAGS,Je):Be,De="FORBID_CONTENTS"in e?C({},e.FORBID_CONTENTS,Je):Ue,ve="FORBID_TAGS"in e?C({},e.FORBID_TAGS,Je):{},be="FORBID_ATTR"in e?C({},e.FORBID_ATTR,Je):{},je="USE_PROFILES"in e&&e.USE_PROFILES,Ae=!1!==e.ALLOW_ARIA_ATTR,_e=!1!==e.ALLOW_DATA_ATTR,we=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,xe=e.SAFE_FOR_TEMPLATES||!1,Se=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,Ee=e.FORCE_BODY||!1,Ne=!1!==e.SANITIZE_DOM,Pe=e.SANITIZE_NAMED_PROPS||!1,Oe=!1!==e.KEEP_CONTENT,Le=e.IN_PLACE||!1,pe=e.ALLOWED_URI_REGEXP||q,We=e.NAMESPACE||He,ye=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ye.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(_e=!1),Te&&(Re=!0),je&&(fe=C({},[...P]),me=[],!0===je.html&&(C(fe,k),C(me,O)),!0===je.svg&&(C(fe,E),C(me,L),C(me,D)),!0===je.svgFilters&&(C(fe,R),C(me,L),C(me,D)),!0===je.mathMl&&(C(fe,I),C(me,j),C(me,D))),e.ADD_TAGS&&(fe===he&&(fe=x(fe)),C(fe,e.ADD_TAGS,Je)),e.ADD_ATTR&&(me===ge&&(me=x(me)),C(me,e.ADD_ATTR,Je)),e.ADD_URI_SAFE_ATTR&&C(Fe,e.ADD_URI_SAFE_ATTR,Je),e.FORBID_CONTENTS&&(De===Ue&&(De=x(De)),C(De,e.FORBID_CONTENTS,Je)),Oe&&(fe["#text"]=!0),Se&&C(fe,["html","head","body"]),fe.table&&(C(fe,["tbody"]),delete ve.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=e.TRUSTED_TYPES_POLICY,X=J.createHTML("")}else void 0===J&&(J=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}($,l)),null!==J&&"string"==typeof X&&(X=J.createHTML(""));o&&o(e),Xe=e}},nt=C({},["mi","mo","mn","ms","mtext"]),rt=C({},["foreignobject","desc","title","annotation-xml"]),st=C({},["title","style","font","a","script"]),ot=C({},E);C(ot,R),C(ot,T);const it=C({},I);C(it,N);const at=function(e){p(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},lt=function(e,t){try{p(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!me[e])if(Re||Te)try{at(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ct=function(e){let t=null,n=null;if(Ee)e=""+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ke&&We===He&&(e=''+e+"");const r=J?J.createHTML(e):e;if(We===He)try{t=(new z).parseFromString(r,Ke)}catch(e){}if(!t||!t.documentElement){t=Z.createDocument(We,"template",null);try{t.documentElement.innerHTML=Ge?X:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(s.createTextNode(n),o.childNodes[0]||null),We===He?ne.call(t,Se?"html":"body")[0]:Se?t.documentElement:o},ut=function(e){return ee.call(e.ownerDocument||e,e,M.SHOW_ELEMENT|M.SHOW_COMMENT|M.SHOW_TEXT,null)},dt=function(e){return"function"==typeof w&&e instanceof w},pt=function(e,t,n){se[e]&&u(se[e],(e=>{e.call(r,t,n,Xe)}))},ft=function(e){let t=null;if(pt("beforeSanitizeElements",e,null),(n=e)instanceof F&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof B)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return at(e),!0;var n;const s=Je(e.nodeName);if(pt("uponSanitizeElement",e,{tagName:s,allowedTags:fe}),e.hasChildNodes()&&!dt(e.firstElementChild)&&b(/<[/\w]/g,e.innerHTML)&&b(/<[/\w]/g,e.textContent))return at(e),!0;if(!fe[s]||ve[s]){if(!ve[s]&&mt(s)){if(ye.tagNameCheck instanceof RegExp&&b(ye.tagNameCheck,s))return!1;if(ye.tagNameCheck instanceof Function&&ye.tagNameCheck(s))return!1}if(Oe&&!De[s]){const t=Q(e)||e.parentNode,n=K(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(Y(n[r],!0),V(e))}return at(e),!0}return e instanceof U&&!function(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:We,tagName:"template"});const n=f(e.tagName),r=f(t.tagName);return!!Ye[e.namespaceURI]&&(e.namespaceURI===$e?t.namespaceURI===He?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===r||nt[r]):Boolean(ot[n]):e.namespaceURI===qe?t.namespaceURI===He?"math"===n:t.namespaceURI===$e?"math"===n&&rt[r]:Boolean(it[n]):e.namespaceURI===He?!(t.namespaceURI===$e&&!rt[r])&&!(t.namespaceURI===qe&&!nt[r])&&!it[n]&&(st[n]||!ot[n]):!("application/xhtml+xml"!==Ke||!Ye[e.namespaceURI]))}(e)?(at(e),!0):"noscript"!==s&&"noembed"!==s&&"noframes"!==s||!b(/<\/no(script|embed|frames)/i,e.innerHTML)?(xe&&3===e.nodeType&&(t=e.textContent,u([oe,ie,ae],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(r.removed,{element:e.cloneNode()}),e.textContent=t)),pt("afterSanitizeElements",e,null),!1):(at(e),!0)},ht=function(e,t,n){if(Ne&&("id"===t||"name"===t)&&(n in s||n in Ze))return!1;if(_e&&!be[t]&&b(le,t));else if(Ae&&b(ce,t));else if(!me[t]||be[t]){if(!(mt(e)&&(ye.tagNameCheck instanceof RegExp&&b(ye.tagNameCheck,e)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(e))&&(ye.attributeNameCheck instanceof RegExp&&b(ye.attributeNameCheck,t)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(t))||"is"===t&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&b(ye.tagNameCheck,n)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(n))))return!1}else if(Fe[t]);else if(b(pe,g(n,de,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Me[e])if(we&&!b(ue,g(n,de,"")));else if(n)return!1;return!0},mt=function(e){return e.indexOf("-")>0},gt=function(e){pt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me};let s=t.length;for(;s--;){const o=t[s],{name:i,namespaceURI:a,value:l}=o,c=Je(i);let p="value"===i?l:v(l);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,pt("uponSanitizeAttribute",e,n),p=n.attrValue,n.forceKeepAttr)continue;if(lt(i,e),!n.keepAttr)continue;if(!Ce&&b(/\/>/i,p)){lt(i,e);continue}xe&&u([oe,ie,ae],(e=>{p=g(p,e," ")}));const f=Je(e.nodeName);if(ht(f,c,p)){if(!Pe||"id"!==c&&"name"!==c||(lt(i,e),p="user-content-"+p),J&&"object"==typeof $&&"function"==typeof $.getAttributeType)if(a);else switch($.getAttributeType(f,c)){case"TrustedHTML":p=J.createHTML(p);break;case"TrustedScriptURL":p=J.createScriptURL(p)}try{a?e.setAttributeNS(a,i,p):e.setAttribute(i,p),d(r.removed)}catch(e){}}}pt("afterSanitizeAttributes",e,null)},yt=function e(t){let n=null;const r=ut(t);for(pt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)pt("uponSanitizeShadowNode",n,null),ft(n)||(n.content instanceof c&&e(n.content),gt(n));pt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,s=null,o=null,a=null;if(Ge=!e,Ge&&(e="\x3c!--\x3e"),"string"!=typeof e&&!dt(e)){if("function"!=typeof e.toString)throw A("toString is not a function");if("string"!=typeof(e=e.toString()))throw A("dirty is not a string, aborting")}if(!r.isSupported)return e;if(ke||tt(t),r.removed=[],"string"==typeof e&&(Le=!1),Le){if(e.nodeName){const t=Je(e.nodeName);if(!fe[t]||ve[t])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof w)n=ct("\x3c!----\x3e"),s=n.ownerDocument.importNode(e,!0),1===s.nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?n=s:n.appendChild(s);else{if(!Re&&!xe&&!Se&&-1===e.indexOf("<"))return J&&Ie?J.createHTML(e):e;if(n=ct(e),!n)return Re?null:Ie?X:""}n&&Ee&&at(n.firstChild);const l=ut(Le?e:n);for(;o=l.nextNode();)ft(o)||(o.content instanceof c&&yt(o.content),gt(o));if(Le)return e;if(Re){if(Te)for(a=te.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(me.shadowroot||me.shadowrootmode)&&(a=re.call(i,a,!0)),a}let d=Se?n.outerHTML:n.innerHTML;return Se&&fe["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&b(W,n.ownerDocument.doctype.name)&&(d="\n"+d),xe&&u([oe,ie,ae],(e=>{d=g(d,e," ")})),J&&Ie?J.createHTML(d):d},r.setConfig=function(){tt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ke=!0},r.clearConfig=function(){Xe=null,ke=!1},r.isValidAttribute=function(e,t,n){Xe||tt({});const r=Je(e),s=Je(t);return ht(r,s,n)},r.addHook=function(e,t){"function"==typeof t&&(se[e]=se[e]||[],p(se[e],t))},r.removeHook=function(e){if(se[e])return d(se[e])},r.removeHooks=function(e){se[e]&&(se[e]=[])},r.removeAllHooks=function(){se={}},r}()}()},2232:function(e,t){var n,r;n=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},n=!t.document&&!!t.postMessage,r=t.IS_PAPA_WORKER||!1,s={},o=0,i={parse:function(n,r){var a=(r=r||{}).dynamicTyping||!1;if(_(a)&&(r.dynamicTypingFunction=a,a={}),r.dynamicTyping=a,r.transform=!!_(r.transform)&&r.transform,r.worker&&i.WORKERS_SUPPORTED){var l=function(){if(!i.WORKERS_SUPPORTED)return!1;var n,r,a=(n=t.URL||t.webkitURL||null,r=e.toString(),i.BLOB_URL||(i.BLOB_URL=n.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",r,")();"],{type:"text/javascript"})))),l=new t.Worker(a);return l.onmessage=g,l.id=o++,s[l.id]=l}();return l.userStep=r.step,l.userChunk=r.chunk,l.userComplete=r.complete,l.userError=r.error,r.step=_(r.step),r.chunk=_(r.chunk),r.complete=_(r.complete),r.error=_(r.error),delete r.worker,void l.postMessage({input:n,config:r,workerId:l.id})}var f=null;return i.NODE_STREAM_INPUT,"string"==typeof n?(n=function(e){return 65279===e.charCodeAt(0)?e.slice(1):e}(n),f=r.download?new c(r):new d(r)):!0===n.readable&&_(n.read)&&_(n.on)?f=new p(r):(t.File&&n instanceof File||n instanceof Object)&&(f=new u(r)),f.stream(n)},unparse:function(e,t){var n=!1,r=!0,s=",",o="\r\n",a='"',l=a+a,c=!1,u=null,d=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||i.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(s=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(c=t.skipEmptyLines),"string"==typeof t.newline&&(o=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+a),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(d=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var p=new RegExp(h(a),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,c);if("object"==typeof e[0])return f(u||Object.keys(e[0]),e,c)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],c);throw new Error("Unable to serialize unrecognized input");function f(e,t,n){var i="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var a=Array.isArray(e)&&0=this._config.preview;if(r)t.postMessage({results:a,workerId:i.WORKER_ID,finished:c});else if(_(this._config.chunk)&&!n){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!c||!_(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),c||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(e){_(this._config.error)?this._config.error(e):r&&this._config.error&&t.postMessage({workerId:i.WORKER_ID,error:e,finished:!1})}}function c(e){var t;(e=e||{}).chunkSize||(e.chunkSize=i.RemoteChunkSize),l.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=A(this._chunkLoaded,this),t.onerror=A(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var r in e)t.setRequestHeader(r,e[r])}if(this._config.chunkSize){var s=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+s)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function u(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=i.LocalChunkSize),l.call(this,e);var r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=A(this._chunkLoaded,this),t.onerror=A(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function p(e){l.call(this,e=e||{});var t=[],n=!0,r=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=A((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=A((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=A((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=A((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function f(e){var t,n,r,s=Math.pow(2,53),o=-s,a=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,c=this,u=0,d=0,p=!1,f=!1,g=[],y={data:[],errors:[],meta:{}};if(_(e.step)){var v=e.step;e.step=function(t){if(y=t,C())w();else{if(w(),0===y.data.length)return;u+=t.data.length,e.preview&&u>e.preview?n.abort():(y.data=y.data[0],v(y,c))}}}function A(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function w(){return y&&r&&(S("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+i.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(y.data=y.data.filter((function(e){return!A(e)}))),C()&&function(){if(y)if(Array.isArray(y.data[0])){for(var t=0;C()&&t=g.length?"__parsed_extra":g[r]),e.transform&&(i=e.transform(i,o)),i=x(o,i),"__parsed_extra"===o?(s[o]=s[o]||[],s[o].push(i)):s[o]=i}return e.header&&(r>g.length?S("FieldMismatch","TooManyFields","Too many fields: expected "+g.length+" fields but parsed "+r,d+n):r=r.length/2?"\r\n":"\r"}(s,l)),r=!1,e.delimiter)_(e.delimiter)&&(e.delimiter=e.delimiter(s),y.meta.delimiter=e.delimiter);else{var c=function(t,n,r,s,o){var a,l,c,u;o=o||[",","\t","|",";",i.RECORD_SEP,i.UNIT_SEP];for(var d=0;d=a)return G(!0)}else for(B=u,u++;;){if(-1===(B=i.indexOf(t,B+1)))return f||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:A.length,index:u}),H();if(B===m-1)return H(i.substring(u,B).replace(M,t));if(t!==c||i[B+1]!==c){if(t===c||0===B||i[B-1]!==c){-1!==D&&D=a)return G(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:A.length,index:u}),B++}}else B++}return H();function q(e){A.push(e),x=u}function $(e){var t=0;if(-1!==e){var n=i.substring(B+1,e);n&&""===n.trim()&&(t=n.length)}return t}function H(e){return f||(void 0===e&&(e=i.substring(u)),C.push(e),u=m,q(C),b&&Y()),G()}function W(e){u=e,q(C),C=[],U=i.indexOf(r,u)}function G(e){return{data:A,errors:w,meta:{delimiter:n,linebreak:r,aborted:d,truncated:!!e,cursor:x+(p||0)}}}function Y(){o(G()),A=[],w=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return u}}function g(e){var t=e.data,n=s[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){r=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(_(n.userStep)){for(var i=0;i{"use strict";var r=n(7200);function s(){}function o(){}o.resetWarningCache=s,e.exports=function(){function e(e,t,n,s,o,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:s};return n.PropTypes=n,n}},900:(e,t,n)=>{e.exports=n(7336)()},7200:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4108:(e,t,n)=>{"use strict";var r=n(1280),s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:s,type:e,key:c,ref:u,props:o,_owner:a.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},7e3:(e,t,n)=>{"use strict";e.exports=n(4108)},3736:e=>{e.exports=function(e,t,n,r){var s=n?n.call(r,e,t):void 0;if(void 0!==s)return!!s;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l{"use strict";var t=[];function n(e){for(var n=-1,r=0;r{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},2940:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},9516:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7020:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var s=void 0!==n.layer;s&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,s&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},9296:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},3376:(e,t,n)=>{"use strict";n.d(t,{cp:()=>Ut});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n2||H(j)>3?"":" "}function Y(e,t){for(;--t&&F()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return $(e,q()+(t<6&&32==z()&&32==F()))}function V(e){for(;F();)switch(j){case e:return L;case 34:case 39:34!==e&&39!==e&&V(j);break;case 40:41===e&&V(e);break;case 92:F()}return L}function K(e,t){for(;F()&&e+j!==57&&(e+j!==84||47!==z()););return"/*"+$(t,L-1)+"*"+b(47===e?e:F())}function Q(e){for(;!H(z());)F();return $(e,L)}function J(e,t){for(var n="",r=0;r6)switch(S(e,t+1)){case 109:if(45!==S(e,t+4))break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1"+d+"$2-$3$1"+u+(108==S(e,t+3)?"$3":"$2-$3"))+e;case 115:return~x(e,"stretch")?Z(C(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return C(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,s,o,i,a){return c+n+":"+r+a+(s?c+n+"-span:"+(o?i:+i-+r)+a:"")+e}));case 4949:if(121===S(e,t+6))return C(e,":",":"+d)+e;break;case 6444:switch(S(e,45===S(e,14)?18:11)){case 120:return C(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+d+(45===S(e,14)?"inline-":"")+"box$3$1"+d+"$2$3$1"+c+"$2box$3")+e;case 100:return C(e,":",":"+c)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return C(e,"scroll-","scroll-snap-")+e}return e}function ee(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case h:return void(e.return=Z(e.value,e.length,n));case g:return J([M(e,{value:C(e.value,"@","@"+d)})],r);case f:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(w(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":B(M(e,{props:[C(t,/:(read-\w+)/,":"+u+"$1")]})),B(M(e,{props:[t]})),A(e,{props:I(n,r)});break;case"::placeholder":B(M(e,{props:[C(t,/:(plac\w+)/,":"+d+"input-$1")]})),B(M(e,{props:[C(t,/:(plac\w+)/,":"+u+"$1")]})),B(M(e,{props:[C(t,/:(plac\w+)/,c+"input-$1")]})),B(M(e,{props:[t]})),A(e,{props:I(n,r)})}return""}))}}function te(e){return function(e){return D="",e}(ne("",null,null,null,[""],e=function(e){return N=P=1,O=E(D=e),L=0,[]}(e),0,[0],e))}function ne(e,t,n,r,s,o,i,a,l){for(var c=0,u=0,d=i,p=0,f=0,h=0,m=1,g=1,y=1,v=0,A="",_=s,w=o,k=r,R=A;g;)switch(h=v,v=F()){case 40:if(108!=h&&58==S(R,d-1)){-1!=x(R+=C(W(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:R+=W(v);break;case 9:case 10:case 13:case 32:R+=G(h);break;case 92:R+=Y(q()-1,7);continue;case 47:switch(z()){case 42:case 47:T(se(K(F(),q()),t,n,l),l);break;default:R+="/"}break;case 123*m:a[c++]=E(R)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(R=C(R,/\f/g,"")),f>0&&E(R)-d&&T(f>32?oe(R+";",r,n,d-1,l):oe(C(R," ","")+";",r,n,d-2,l),l);break;case 59:R+=";";default:if(T(k=re(R,t,n,c,u,s,a,A,_=[],w=[],d,o),o),123===v)if(0===u)ne(R,t,k,k,_,o,d,a,w);else switch(99===p&&110===S(R,3)?100:p){case 100:case 108:case 109:case 115:ne(e,k,k,r&&T(re(e,k,k,0,0,s,a,A,s,_=[],d,w),w),s,w,d,a,r?_:w);break;default:ne(R,k,k,k,[""],w,0,a,w)}}c=u=f=0,m=y=1,A=R="",d=i;break;case 58:d=1+E(R),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==(j=L>0?S(D,--L):0,P--,10===j&&(P=1,N--),j))continue;switch(R+=b(v),v*m){case 38:y=u>0?1:(R+="\f",-1);break;case 44:a[c++]=(E(R)-1)*y,y=1;break;case 64:45===z()&&(R+=W(F())),p=z(),u=d=E(A=R+=Q(q())),v++;break;case 45:45===h&&2==E(R)&&(m=0)}}return o}function re(e,t,n,r,s,o,i,a,l,c,u,d){for(var p=s-1,h=0===s?o:[""],m=R(h),g=0,y=0,b=0;g0?h[A]+" "+w:C(w,/&\f/g,h[A])))&&(l[b++]=x);return U(e,t,n,0===s?f:a,l,c,u,d)}function se(e,t,n,r){return U(e,t,n,p,b(j),k(e,2,-2),0,r)}function oe(e,t,n,r,s){return U(e,t,n,h,k(e,0,r),k(e,r+1,-1),r,s)}const ie={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ae="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",le="undefined"!=typeof window&&"HTMLElement"in window,ce=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),ue=(new Set,Object.freeze([])),de=Object.freeze({}),pe=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),fe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,he=/(^-|-$)/g;function me(e){return e.replace(fe,"-").replace(he,"")}var ge=/(a)(d)/gi,ye=function(e){return String.fromCharCode(e+(e>25?39:97))};function ve(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ye(t%52)+n;return(ye(t%52)+n).replace(ge,"$1-$2")}var be,Ae=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},_e=function(e){return Ae(5381,e)};function we(e){return"string"==typeof e&&!0}var Ce="function"==typeof Symbol&&Symbol.for,xe=Ce?Symbol.for("react.memo"):60115,Se=Ce?Symbol.for("react.forward_ref"):60112,ke={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ee={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Re={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Te=((be={})[Se]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},be[xe]=Re,be);function Ie(e){return("type"in(t=e)&&t.type.$$typeof)===xe?Re:"$$typeof"in e?Te[e.$$typeof]:ke;var t}var Ne=Object.defineProperty,Pe=Object.getOwnPropertyNames,Oe=Object.getOwnPropertySymbols,Le=Object.getOwnPropertyDescriptor,je=Object.getPrototypeOf,De=Object.prototype;function Ue(e,t,n){if("string"!=typeof t){if(De){var r=je(t);r&&r!==De&&Ue(e,r,n)}var s=Pe(t);Oe&&(s=s.concat(Oe(t)));for(var o=Ie(e),i=Ie(t),a=0;a0?" Args: ".concat(t.join(", ")):""))}var Ge=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,s=r;e>=s;)if((s<<=1)<0)throw We(16,"".concat(e));this.groupSizes=new Uint32Array(s),this.groupSizes.set(n),this.length=s;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),s=r+n,o=r;o=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e0&&(l+="".concat(e,","))})),r+="".concat(i).concat(a,'{content:"').concat(l,'"}').concat("/*!sc*/\n")},o=0;o0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===f&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ut,n).replace(r,c))})),i.prefix&&u.push(ee),u.push(X);var d=function(e,s,o,a){void 0===s&&(s=""),void 0===o&&(o=""),void 0===a&&(a="&"),t=a,n=s,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(dt,""),c=te(o||s?"".concat(o," ").concat(s," { ").concat(l," }"):l);i.namespace&&(c=pt(c,i.namespace));var d,p,f,h=[];return J(c,(d=u.concat((f=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&f(e)})),p=R(d),function(e,t,n,r){for(var s="",o=0;o="A"&&e<="Z"};function wt(e){for(var t="",n=0;n>>0);if(!t.hasNameForId(this.componentId,o)){var i=n(s,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,i)}r=Fe(r,o),this.staticRulesId=o}else{for(var a=Ae(this.baseHash,n.hash),l="",c=0;c>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),r=Fe(r,p)}}return r},e}(),Tt=i().createContext(void 0);Tt.Consumer;var It={};function Nt(e,t,n){var s=Be(e),a=e,l=!we(e),c=t.attrs,u=void 0===c?ue:c,d=t.componentId,p=void 0===d?function(e,t){var n="string"!=typeof e?"sc":me(e);It[n]=(It[n]||0)+1;var r="".concat(n,"-").concat(function(e){return ve(_e(e)>>>0)}("6.1.1"+n+It[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):d,f=t.displayName,h=void 0===f?function(e){return we(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):f,m=t.displayName&&t.componentId?"".concat(me(t.displayName),"-").concat(t.componentId):t.componentId||p,g=s&&a.attrs?a.attrs.concat(u).filter(Boolean):u,y=t.shouldForwardProp;if(s&&a.shouldForwardProp){var v=a.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;y=function(e,t){return v(e,t)&&b(e,t)}}else y=v}var A=new Rt(n,m,s?a.componentStyle:void 0);function _(e,t){return function(e,t,n){var s=e.attrs,a=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.styledComponentId,d=e.target,p=i().useContext(Tt),f=vt(),h=e.shouldForwardProp||f.shouldForwardProp,m=function(e,t,n){for(var s,o=r(r({},t),{className:void 0,theme:n}),i=0;i2&&ct.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=nt(),r=ze([n&&'nonce="'.concat(n,'"'),"".concat(ae,'="true"'),"".concat("data-styled-version",'="').concat("6.1.1",'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(e.sealed)throw We(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw We(2);var n=((t={})[ae]="",t["data-styled-version"]="6.1.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),s=nt();return s&&(n.nonce=s),[i().createElement("style",r({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new ct({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw We(2);return i().createElement(bt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw We(3)}}(),"__sc-".concat(ae,"__")},4928:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var r=n(7e3),s=n(900),o=n.n(s),i=n(3376),a=n(7720);const l=i.cp.div`
+ height: auto;
+ width: 100%;
+`,c=({src:e})=>(0,r.jsx)(l,{children:(0,r.jsx)("audio",{className:"edit-audio-preview",controls:!0,src:e})});c.propTypes={src:o().string.isRequired};const u=({className:e,onReset:t,onUpdate:n,onUpdateURL:s,value:o,valueURL:i})=>(0,r.jsx)(a.MediaPicker,{allowedTypes:["audio"],className:e,icon:"format-audio",onReset:t,onUpdate:n,onUpdateURL:s,preview:c,value:o,valueURL:i});u.defaultProps={className:"",onUpdateURL:null,valueURL:""},u.propTypes={className:o().string,onReset:o().func.isRequired,onUpdate:o().func.isRequired,onUpdateURL:o().func,value:o().number.isRequired,valueURL:o().string};const d=u},2312:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(7e3),s=n(900),o=n.n(s),i=n(7287);const a=({label:e,value:t,options:n,onChange:s})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.BaseControl,{label:e}),n.map((e=>(0,r.jsx)(i.CheckboxControl,{label:e.label,checked:t.includes(e.value),onChange:n=>{s(n?[...t,e.value]:[...t.filter((t=>t!==e.value))])}})))]});a.propTypes={label:o().string.isRequired,value:o().arrayOf(o().string).isRequired,options:o().arrayOf(o().shape({label:o().string.isRequired,value:o().string.isRequired})).isRequired,onChange:o().func.isRequired};const l=a},8312:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var r=n(7e3),s=n(1280),o=n.n(s),i=n(3396),a=n(900),l=n.n(a),c=n(5328);class u extends o().PureComponent{static handleSubmit(e){e.preventDefault()}constructor(e){super(e),this.handleChange=this.handleChange.bind(this),this.state={error:"",success:""}}handleChange(e){const{attributeName:t,callback:n,setAttributes:r}=this.props;e.target.files&&e.target.files[0]&&(0,c.parseCSVFile)(e.target.files[0]).then((e=>n?n(e):e)).then((e=>{Array.isArray(e)&&e.length>0?(this.setState({error:"",success:(0,i.__)("Successfully read CSV data.","alley-scripts")}),r({[t]:JSON.stringify(e)})):this.setState({error:(0,i.__)("Could not map CSV data. Please check the source file to ensure that it has the correct structure.","alley-scripts"),success:""})})).catch((e=>{this.setState({error:e,success:""})}))}render(){const{error:e="",success:t=""}=this.state;return(0,r.jsxs)("div",{className:"alley-scripts-block-csv-uploader",children:[(0,r.jsx)("h2",{children:(0,i.__)("Upload CSV","alley-scripts")}),(0,r.jsxs)("form",{onSubmit:this.handleSubmit,children:[""!==e?(0,r.jsxs)("div",{style:{color:"#c00"},children:[(0,r.jsx)("strong",{children:(0,i.__)("Error:","alley-scripts")})," ",e]}):null,""!==t?(0,r.jsxs)("div",{style:{color:"#0c0"},children:[(0,r.jsx)("strong",{children:(0,i.__)("Success:","alley-scripts")})," ",t]}):null,(0,r.jsx)("div",{children:(0,r.jsxs)("label",{htmlFor:"alley-scripts-block-csv-uploader-file",children:[(0,r.jsx)("p",{children:(0,i.__)("Select a file to load data.","alley-scripts")}),(0,r.jsx)("input",{id:"alley-scripts-block-csv-uploader-file",onChange:this.handleChange,type:"file"})]})})]})]})}}u.defaultProps={callback:null},u.propTypes={attributeName:l().string.isRequired,callback:l().func,setAttributes:l().func.isRequired}},8348:(e,t,n)=>{"use strict";n.d(t,{default:()=>p});var r=n(7e3),s=n(3396),o=n(900),i=n.n(o),a=n(3376),l=n(7720);const c=a.cp.div`
+ box-sizing: border-box;
+ flex-shrink: 0;
+ height: auto;
+ max-height: 1450px;
+ max-width: 1450px;
+ min-height: 20px;
+ min-width: 20px;
+ position: relative;
+ width: auto;
+`,u=({src:e})=>(0,r.jsx)(c,{children:(0,r.jsx)("img",{alt:(0,s.__)("Edit image","alley-scripts"),className:"edit-image-preview",src:e,title:(0,s.__)("Edit image","alley-scripts")})});u.propTypes={src:i().string.isRequired};const d=({className:e,imageSize:t,displayControlsInToolbar:n,onReset:s,onUpdate:o,onUpdateURL:i,value:a,valueURL:c})=>(0,r.jsx)(l.MediaPicker,{allowedTypes:["image"],className:e,icon:"format-image",imageSize:t,displayControlsInToolbar:n,onReset:s,onUpdate:o,onUpdateURL:i,preview:u,value:a,valueURL:c});d.defaultProps={className:"",imageSize:"thumbnail",displayControlsInToolbar:!1,onUpdateURL:null,valueURL:""},d.propTypes={className:i().string,imageSize:i().string,displayControlsInToolbar:i().bool,onReset:i().func.isRequired,onUpdate:i().func.isRequired,onUpdateURL:i().func,value:i().number.isRequired,valueURL:i().string};const p=d},7720:(e,t,n)=>{"use strict";n.d(t,{AudioPicker:()=>r.default,CSVUploader:()=>o.default,Checkboxes:()=>s.default,ImagePicker:()=>i.default,MediaPicker:()=>a.default,PostPicker:()=>c.default,PostSelector:()=>u.default,SafeHtml:()=>l.default,Selector:()=>d.default,Sortable:()=>p.default,SortableItem:()=>f.default,TermSelector:()=>h.default,VideoPicker:()=>m.default});var r=n(4928),s=n(2312),o=n(8312),i=n(8348),a=n(5680),l=n(9160),c=n(4808),u=n(8800),d=n(9064),p=n(8504),f=n(1917),h=n(668),m=n(5316)},5680:(e,t,n)=>{"use strict";n.d(t,{default:()=>m});var r=n(7e3),s=n(900),o=n.n(s),i=n(3376),a=n(9528),l=n(7287),c=n(7752),u=n(3396),d=n(5328);const p=i.cp.div`
+ display: block;
+ position: relative;
+`,f=i.cp.div`
+ background: white;
+ border: 1px solid black;
+ padding: 1em;
+`,h=({allowedTypes:e,className:t,icon:n,imageSize:s,displayControlsInToolbar:o,onReset:i,onUpdate:h,onUpdateURL:m,preview:g,value:y,valueURL:v})=>{const{media:b}=(0,c.useSelect)((e=>({media:y?e("core").getMedia(y):void 0})),[y]);if(0!==y&&null===b)return(0,r.jsx)(l.Spinner,{});const A=b?(0,d.getMediaUrl)(b,s):v;return A?(0,r.jsxs)(p,{className:t,children:[g?(0,r.jsx)(g,{src:A}):(0,r.jsxs)(f,{className:"alley-scripts-media-picker__preview",children:[(0,r.jsx)("p",{children:(0,u.__)("Selected file:","alley-scripts")}),(0,r.jsx)("p",{children:(0,r.jsx)("a",{href:A,children:A})})]}),o?(0,r.jsx)(a.BlockControls,{group:"other",children:(0,r.jsx)(a.MediaReplaceFlow,{name:(0,u.__)("Edit Media","alley-scripts"),mediaId:y,mediaURL:A,allowedTypes:e,onSelect:h,onSelectURL:m,children:(0,r.jsx)(l.ToolbarButton,{isDestructive:!0,text:(0,u.__)("Remove","alley-scripts"),onClick:i})})}):(0,r.jsx)(l.Button,{variant:"primary",onClick:i,children:(0,u.__)("Reset","alley-scripts")})]}):(0,r.jsx)(p,{className:t,children:(0,r.jsx)(a.MediaPlaceholder,{allowedTypes:e,disableMediaButtons:!!v,icon:(0,r.jsx)(a.BlockIcon,{icon:n}),onSelect:h,onSelectURL:m,value:{id:y,src:A}})})};h.defaultProps={allowedTypes:[],className:"",icon:"format-aside",imageSize:"thumbnail",displayControlsInToolbar:!1,onUpdateURL:null,preview:null,valueURL:""},h.propTypes={allowedTypes:o().arrayOf(o().string),className:o().string,icon:o().string,imageSize:o().string,displayControlsInToolbar:o().bool,onReset:o().func.isRequired,onUpdate:o().func.isRequired,onUpdateURL:o().func,preview:o().element,value:o().number.isRequired,valueURL:o().string};const m=h},4808:(e,t,n)=>{"use strict";n.d(t,{default:()=>F});var r=n(7e3),s=n(1280),o=n(3376),i=n(7287),a=n(3396),l=n(7204),c=n(2e3),u=n(2108),d=n.n(u),p=n(7020),f=n.n(p),h=n(7240),m=n.n(h),g=n(9516),y=n.n(g),v=n(2940),b=n.n(v),A=n(9296),_=n.n(A),w=n(9680),C={};C.styleTagTransform=_(),C.setAttributes=y(),C.insert=m().bind(null,"head"),C.domAPI=f(),C.insertStyleElement=b(),d()(w.c,C),w.c&&w.c.locals&&w.c.locals;var x=n(4632),S=n.n(x),k=n(6484),E=n.n(k),R=n(7424),T={};T.styleTagTransform=_(),T.setAttributes=y(),T.insert=m().bind(null,"head"),T.domAPI=f(),T.insertStyleElement=b(),d()(R.c,T),R.c&&R.c.locals&&R.c.locals;const I=window.wp.htmlEntities;var N=n(9160);const P=o.cp.div`
+ align-items: center;
+ gap: 4px;
+ overflow-wrap: anywhere;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ padding: 0.5rem 0.75rem;
+`,O=({title:e,postType:t,attachmentID:n})=>{const s=(0,c.useMedia)(n),o=s?.media_details?.sizes?.thumbnail?.source_url,i=s?.alt_text??"";return(0,r.jsxs)(P,{children:[o?(0,r.jsx)("img",{style:{maxWidth:"100%",height:"auto"},loading:"lazy",src:o,alt:i}):null,(0,r.jsx)(N.default,{html:(0,I.decodeEntities)(e),className:"post-picker-result-title",tag:"strong"}),(0,a.sprintf)(" (%s)",t)]})},L=({baseUrl:e,searchRender:t,selected:n,setSelected:o,suppressPostIds:c=[]})=>{const[u,d]=(0,s.useState)(!1),[p,f]=(0,s.useState)([]),[h,m]=(0,s.useState)(!1),[g,y]=(0,s.useState)(0),[v,b]=(0,s.useState)({searchValue:"",page:1}),A=(0,s.useCallback)((async(t,n=!1)=>{if(t.searchValue&&t.searchValue.length<=2)return;const r=function(){let n=(0,l.addQueryArgs)(e,{page:t.page,_embed:1,exclude:c.join(",")});return t.searchValue&&t.searchValue.length>2&&(n=(0,l.addQueryArgs)(n,{search:t.searchValue})),n}();d(!0);const s=await S()({path:r,parse:!1});y(parseInt(s.headers.get("X-WP-TotalPages"),10));const o=await s.json();let i=o;t.page>1&&(i=[...p,...o]),n||(f(i),d(!1))}),[p,e,c]);return(0,s.useEffect)((()=>{let e=!1;return h||(m(!0),A(v,e)),()=>{e=!0}}),[A,h,v]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.TextControl,{value:v.searchValue,placeholder:(0,a.__)("Search...","alley-scripts"),label:(0,a.__)("Search","alley-scripts"),onChange:e=>{const t={...v,searchValue:e,page:1};b(t),A(t)}}),(0,r.jsxs)("div",{className:"alley-scripts-post-picker__post-list",children:[p?p.map((e=>(0,r.jsx)(i.Button,{className:E()({"alley-scripts-post-picker__post":!0,"is-selected":e.id===n}),onClick:()=>o(e.id),children:t?t(e):(0,r.jsx)(O,{title:e.title,postType:e.subtype,attachmentID:e?._embedded?.self[0]?.featured_media})},e.id))):null,u?(0,r.jsx)(i.Spinner,{}):null,g>0&&v.page{const e={...v,page:v.page+1};b(e),A(e)},children:(0,a.__)("Load More","alley-scripts")})}):null]})]})},j=({baseUrl:e,closeModal:t,modalTitle:n,onUpdate:o,searchRender:l,suppressPostIds:c=[]})=>{const[u,d]=(0,s.useState)();return(0,r.jsxs)(i.Modal,{className:"alley-scripts-post-picker__modal",isDismissible:!0,title:n,onRequestClose:t,closeButtonLabel:"Close",children:[(0,r.jsx)(L,{baseUrl:e,selected:u??0,setSelected:d,searchRender:l,suppressPostIds:c}),(0,r.jsxs)("div",{className:"alley-scripts-post-picker__buttons",children:[(0,r.jsx)(i.Button,{variant:"secondary",onClick:t,children:(0,a.__)("Cancel","alley-scripts")}),(0,r.jsx)(i.Button,{variant:"primary",onClick:()=>{u&&(o(u),t())},disabled:!u,children:(0,a.__)("Select","alley-scripts")})]})]})};var D=n(3800),U={};U.styleTagTransform=_(),U.setAttributes=y(),U.insert=m().bind(null,"head"),U.domAPI=f(),U.insertStyleElement=b(),d()(D.c,U),D.c&&D.c.locals&&D.c.locals;const M=o.cp.div`
+ display: block;
+ position: relative;
+`,B=o.cp.div`
+ border: 1px solid #eee;
+ display: flex;
+ flex-direction: column;
+ margin: 5px 0;
+ padding: 0.5rem 0.75rem;
+ text-align: center;
+`,F=({allowedTypes:e,className:t,getPostType:n,modalTitle:o=(0,a.__)("Select Post","alley-scripts"),onReset:u,onUpdate:d,params:p={},previewLookup:f,previewRender:h,replaceText:m=(0,a.__)("Replace","alley-scripts"),resetText:g=(0,a.__)("Reset","alley-scripts"),searchEndpoint:y="/wp/v2/search",searchRender:v,selectText:b=(0,a.__)("Select","alley-scripts"),suppressPostIds:A=[],title:_="",value:w=0})=>{const[C,x]=(0,s.useState)(!1),S=(0,l.addQueryArgs)(y,{type:"post",subtype:e??"any",...p}),k=f?f(w):(0,c.usePostById)(w,n),{featured_media:E,title:{rendered:R=""}={},type:T=""}=k||{},I=()=>{x(!0)},N=()=>(0,r.jsxs)(i.ButtonGroup,{children:[(0,r.jsx)(i.Button,{variant:"secondary",onClick:u,style:{margin:"0 4px"},children:g}),(0,r.jsx)(i.Button,{variant:"secondary",onClick:I,style:{margin:"0 4px"},children:m})]});return 0!==w&&null===k?(0,r.jsx)(i.Spinner,{}):(0,r.jsxs)(M,{className:t,children:[_?(0,r.jsx)("h4",{children:_}):null,0!==w&&void 0===k?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Notice,{status:"error",isDismissible:!1,className:"post-picker-notice",children:(0,r.jsx)("p",{children:(0,a.sprintf)((0,a.__)("Post %d is no longer available; it has been unpublished or deleted","alley-scripts"),w)})}),N()]}):null,0!==w&&void 0!==k?(0,r.jsxs)(r.Fragment,{children:[void 0!==h?h(k):(0,r.jsx)(B,{children:(0,r.jsx)(O,{title:R,postType:T,attachmentID:E})}),N()]}):null,0===w?(0,r.jsx)(i.Button,{onClick:I,variant:"secondary",children:b}):null,C?(0,r.jsx)(j,{closeModal:()=>{x(!1)},baseUrl:S,modalTitle:o,onUpdate:d,searchRender:v,suppressPostIds:A}):null]})}},8800:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(7e3),s=n(900),o=n.n(s),i=n(3396),a=n(7720);const l=({className:e,emptyLabel:t,label:n,maxPages:s,multiple:o,onSelect:i,placeholder:l,subTypes:c,selected:u,threshold:d})=>(0,r.jsx)(a.Selector,{type:"post",className:e,emptyLabel:t,label:n,maxPages:s,multiple:o,onSelect:i,placeholder:l,subTypes:c,selected:u,threshold:d});l.defaultProps={className:"",emptyLabel:(0,i.__)("No posts found","alley-scripts"),label:(0,i.__)("Search for posts","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,i.__)("Search for posts","alley-scripts"),subTypes:[],selected:[],threshold:3},l.propTypes={className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const c=l},9160:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(7e3),s=n(6595),o=n.n(s),i=n(900),a=n.n(i);const l=({className:e,html:t,tag:n})=>(0,r.jsx)(n,{className:e,dangerouslySetInnerHTML:{__html:o().sanitize(t)}});l.defaultProps={className:""},l.propTypes={className:a().string,html:a().string.isRequired,tag:a().string.isRequired};const c=l},9064:(e,t,n)=>{"use strict";n.d(t,{default:()=>M});var r=n(7e3),s=n(900),o=n.n(s),i=n(1280),a=n(4632),l=n.n(a),c=n(6484),u=n.n(c),d=n(7287),p=n(3396),f=n(7204);const h={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let m;const g=new Uint8Array(16);function y(){if(!m&&(m="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!m))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return m(g)}const v=[];for(let e=0;e<256;++e)v.push((e+256).toString(16).slice(1));const b=function(e,t,n){if(h.randomUUID&&!t&&!e)return h.randomUUID();const r=(e=e||{}).random||(e.rng||y)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]}(r)};var A=n(2e3);const _=({emptyLabel:e,error:t,id:n,isOpen:s,labelledbyId:o,loading:i,onSelect:a,options:l,selectedItems:c,threshold:f,value:h})=>{if(!i&&(""===h||f>h.length))return null;let m="",g="";return i?(m="loading",g=(0,p.__)("Loading...","alley-scripts")):t?(m="error",g=t):i||0!==l.length||(m="no-posts",g=e),i||!i&&(h&&0===l.length||t)?(0,r.jsx)("div",{"aria-busy":!0,className:u()("autocomplete__dropdown",{"autocomplete__dropdown--is-open":s}),children:(0,r.jsx)("div",{className:u()("autocomplete__dropdown--notice",`autocomplete__${m}`),children:g})}):(0,r.jsx)("div",{className:u()("autocomplete__dropdown",{"autocomplete__dropdown--is-open":s}),children:(0,r.jsx)("ul",{role:"listbox","aria-labelledby":o,id:n,className:u()("autocomplete__dropdown--results","autocomplete__list"),children:l.map((e=>(0,r.jsx)("li",{className:"autocomplete__list--item",children:(0,r.jsx)(d.Button,{onClick:()=>a(e),type:"button",disabled:c.some((t=>t.id===e.id)),isTertiary:!0,children:e.title})},e.id)))})})};_.propTypes={emptyLabel:o().string.isRequired,error:o().string.isRequired,id:o().string.isRequired,isOpen:o().bool.isRequired,labelledbyId:o().string.isRequired,loading:o().bool.isRequired,options:o().arrayOf(o().shape({label:o().string,value:o().string})).isRequired,onSelect:o().func.isRequired,selectedItems:o().shape([]).isRequired,threshold:o().number.isRequired,value:o().string.isRequired};const w=_;var C=n(2108),x=n.n(C),S=n(7020),k=n.n(S),E=n(7240),R=n.n(E),T=n(9516),I=n.n(T),N=n(2940),P=n.n(N),O=n(9296),L=n.n(O),j=n(5500),D={};D.styleTagTransform=L(),D.setAttributes=I(),D.insert=R().bind(null,"head"),D.domAPI=k(),D.insertStyleElement=P(),x()(j.c,D),j.c&&j.c.locals&&j.c.locals;const U=({type:e,className:t,emptyLabel:n,label:s,maxPages:o,multiple:a,onSelect:c,placeholder:p,subTypes:h,selected:m,threshold:g})=>{const y=b(),[v,_]=(0,i.useState)(""),[C,x]=(0,i.useState)([]),[S,k]=(0,i.useState)(!1),[E,R]=(0,i.useState)(!1),[T,I]=(0,i.useState)(""),[N,P]=(0,i.useState)([]),O=(0,i.useRef)(),L=(0,A.useDebounce)(T,750),j=(0,i.useCallback)((async(t=1)=>{if(L.length0?h.join(","):"any",type:e});await l()({path:r,parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"),10);return n=t>o?o:t,e.json()})).then((e=>{x((t=>[...t,...e])),R(!1),(n&&n>t||t>=1&&a&&N.length>0)&&j(t+1)})).catch((e=>_(e.message)))}),[L,e,o,a,h,N.length,g]);(0,i.useEffect)((()=>{P(m)}),[m]),(0,i.useEffect)((()=>{L&&g<=L.length?j():x([])}),[L,j,g]);const D=e=>{k(O.current.contains(e.target))},U=e=>{"Escape"===e.key&&k(!1)};(0,i.useEffect)((()=>(document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)))),(0,i.useEffect)((()=>(O&&document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D))));const M=e=>{let t=[];if(N.some((t=>t.id===e.id))){const n=N.findIndex((t=>t.id===e.id));t=[...N.slice(0,n),...N.slice(n+1,N.length)]}else a?t=[...N,e]:(t=[e],k(!1));P(t),c(t)};return(0,r.jsx)("form",{className:"autocomplete__component",onSubmit:e=>e.preventDefault(),children:(0,r.jsxs)("div",{className:u()("components-base-control","autocomplete-base-control",t),ref:O,children:[(0,r.jsxs)("div",{"aria-expanded":S,"aria-haspopup":"listbox","aria-owns":`listbox-${y}`,className:u()("components-base-control__field","autocomplete-base-control__field"),role:"combobox",children:[(0,r.jsx)("label",{className:u()("components-base-control__label","autocomplete-base-control__label"),htmlFor:`autocomplete-${y}`,children:(0,r.jsx)("div",{children:s})}),N.length>0?(0,r.jsx)("ul",{role:"listbox","aria-labelledby":`autocomplete-${y}`,id:`selected-items-${y}`,className:u()("autocomplete__selection--results","autocomplete__selection-list"),children:N.map((e=>(0,r.jsx)("li",{className:"autocomplete__selection-list--item",children:(0,r.jsx)(d.Button,{className:"autocomplete__selection-list--item--button",isSecondary:!0,isSmall:!0,onClick:()=>M(e),type:"button",children:e.title})},e.title)))}):null,(0,r.jsx)("input",{"aria-autocomplete":"list",autoComplete:"off",className:u()("components-text-control__input","autocomplete-text-control__input",{"autocomplete-text-control__input--working":S}),id:`autocomplete-${y}`,onChange:e=>I(e.target.value),onFocus:()=>k(!0),placeholder:p,type:"text",value:T})]}),(0,r.jsx)(w,{emptyLabel:n,error:v,labelledById:`autocomplete-${y}`,id:`listbox-${y}`,isOpen:S,loading:E&&L,onSelect:M,options:C,selectedItems:N,threshold:g,value:L})]})})};U.defaultProps={type:"post",className:"",emptyLabel:(0,p.__)("No items found","alley-scripts"),label:(0,p.__)("Search for items","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,p.__)("Search for items","alley-scripts"),subTypes:[],selected:[],threshold:3},U.propTypes={type:o().string,className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const M=U},1917:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(7e3),s=n(7287),o=n(3396);function i({children:e,index:t,list:n,setList:i}){return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(s.Button,{disabled:0===t,icon:"arrow-up-alt2",label:(0,o.__)("Move up","alley-scripts"),onClick:()=>{const e=[...n];e.splice(t-1,0,e.splice(t,1)[0]),i(e)}}),(0,r.jsx)(s.Button,{disabled:t===n.length-1,icon:"arrow-down-alt2",label:(0,o.__)("Move down","alley-scripts"),onClick:()=>{const e=[...n];e.splice(t+1,0,e.splice(t,1)[0]),i(e)}}),(0,r.jsx)(s.Button,{icon:"trash",label:(0,o.__)("Remove","alley-scripts"),onClick:()=>{const e=[...n];e.splice(t,1),i(e)}})]}),(0,r.jsx)("div",{children:e})]})}},8504:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(7e3),s=n(7287),o=n(3396);function i({children:e,emptyItem:t,list:n,setList:i}){return(0,r.jsxs)(r.Fragment,{children:[e,(0,r.jsx)("div",{style:{margin:"1em 0"},children:(0,r.jsx)(s.Button,{icon:"plus",onClick:()=>i([...n,t]),variant:"primary",children:(0,o.__)("Add Item","alley-scripts")})})]})}},668:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(7e3),s=n(900),o=n.n(s),i=n(3396),a=n(7720);const l=({className:e,emptyLabel:t,label:n,maxPages:s,multiple:o,onSelect:i,placeholder:l,subTypes:c,selected:u,threshold:d})=>(0,r.jsx)(a.Selector,{type:"term",className:e,emptyLabel:t,label:n,maxPages:s,multiple:o,onSelect:i,placeholder:l,subTypes:c,selected:u,threshold:d});l.defaultProps={className:"",emptyLabel:(0,i.__)("No terms found","alley-scripts"),label:(0,i.__)("Search for terms","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,i.__)("Search for terms","alley-scripts"),subTypes:[],selected:[],threshold:3},l.propTypes={className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const c=l},5316:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var r=n(7e3),s=n(900),o=n.n(s),i=n(3376),a=n(7720);const l=i.cp.div`
+ height: auto;
+ width: 100%;
+`,c=({src:e})=>(0,r.jsx)(l,{children:(0,r.jsx)("video",{className:"edit-video-preview",controls:!0,src:e})});c.propTypes={src:o().string.isRequired};const u=({className:e,onReset:t,onUpdate:n,onUpdateURL:s,value:o,valueURL:i})=>(0,r.jsx)(a.MediaPicker,{allowedTypes:["video"],className:e,icon:"format-video",onReset:t,onUpdate:n,onUpdateURL:s,preview:c,value:o,valueURL:i});u.defaultProps={className:"",onUpdateURL:null,valueURL:""},u.propTypes={className:o().string,onReset:o().func.isRequired,onUpdate:o().func.isRequired,onUpdateURL:o().func,value:o().number.isRequired,valueURL:o().string};const d=u},2e3:(e,t,n)=>{"use strict";n.d(t,{useCurrentPostId:()=>r.default,useCurrentTheme:()=>s.default,useDebounce:()=>o.default,useHasInnerBlocks:()=>i.default,useInnerBlocks:()=>a.default,useInnerBlocksAttributes:()=>l.default,useInnerBlocksCount:()=>c.default,useInnerBlocksIndex:()=>u.default,useMedia:()=>d.default,useOption:()=>p.default,useParentBlock:()=>f.default,useParentBlockAttributes:()=>h.default,usePost:()=>m.default,usePostById:()=>g.default,usePostMeta:()=>y.default,usePostMetaValue:()=>v.default,usePosts:()=>b.default,usePreviewLink:()=>A.default,useTerm:()=>_.default,useTerms:()=>w.default});var r=n(9695),s=n(5904),o=n(7112),i=n(6980),a=n(864),l=n(8512),c=n(1344),u=n(6644),d=n(592),p=n(7188),f=n(224),h=n(8004),m=n(1744),g=n(9480),y=n(6504),v=n(3772),b=n(4704),A=n(7532),_=n(7712),w=n(1848)},9695:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(7752);const s=()=>(0,r.useSelect)((e=>{const t=e("core/editor");return t?t.getCurrentPostId():null}),[])},5904:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=()=>(0,s.useSelect)((e=>{const t=e(r.store);return t?t.getCurrentTheme()?.stylesheet:null}),[])},7112:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(1280);const s=(e,t)=>{const[n,s]=(0,r.useState)(e);return(0,r.useEffect)((()=>{const n=setTimeout((()=>{s(e)}),t);return()=>{clearTimeout(n)}}),[e,t]),n}},6980:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=e=>(0,r.useInnerBlocksCount)(e)>0},6644:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=e=>{const t=(0,r.useParentBlock)(e),n=(0,r.useInnerBlocks)(t);return n?n.findIndex((t=>t.clientId===e)):-1}},8512:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=e=>(0,r.useInnerBlocks)(e).map((e=>e.attributes))},1344:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=e=>(0,r.useInnerBlocks)(e).length},864:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9528),s=n(7752);const o=e=>(0,s.useSelect)((t=>t(r.store).getBlocks(e)),[e])},592:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=e=>(0,s.useSelect)((t=>t(r.store).getMedia(e)),[e])},7188:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(7752);const s=function(e){const t=(0,r.useSelect)((t=>{const{getEditedEntityRecord:n,getEntityRecordEdits:r,isSavingEntityRecord:s}=t("core"),o=n("root","site"),i=r("root","site");return{value:o?.[e],isEdited:!!i?.[e],isSaving:s("root","site")}}),[]),{editEntityRecord:n,saveEntityRecord:s}=(0,r.useDispatch)("core");return{...t,onChange:function(t){n("root","site",void 0,{[e]:t})},onSave:async function(){await s("root","site",{[e]:t.value})}}}},8004:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9528),s=n(7752);const o=e=>(0,s.useSelect)((t=>{const{getBlockAttributes:n,getBlockRootClientId:s}=t(r.store),o=s(e);return o?n(o):null}),[e])},224:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9528),s=n(7752);const o=e=>(0,s.useSelect)((t=>{const{getBlock:n,getBlockRootClientId:s}=t(r.store),o=s(e);return o?n(o):null}),[e])},9480:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(1280),s=n(4632),o=n.n(s),i=n(7204),a=n(1744);const l=(e,t=null,n={context:"view"})=>{const[s,l]=(0,r.useState)({}),[c,u]=(0,r.useState)(!0);(0,r.useEffect)((()=>{u(!0),e&&!s[e]?(async()=>{if(t){const n=await t(e);n?l((t=>({...t,[e]:n}))):console.error(`Custom function to get post with ID ${e} failed.`)}else{const t=(0,i.addQueryArgs)("/wp/v2/search",{include:e}),n=await o()({path:t});n.length>0&&l((t=>({...t,[e]:n[0]?.subtype})))}u(!1)})():e&&s[e]&&u(!1)}),[e]);const d=(0,a.default)(e,s[e]??"",n);return c||!d&&s[e]?null:d}},3772:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=(e,t=null,n=null)=>{const[s,o]=(0,r.usePostMeta)(t,n);return[s[e],t=>o({...s,[e]:t})]}},6504:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e=null,t=null)=>{const n=(0,s.useSelect)((t=>e||t("core/editor").getCurrentPostType()),[]),[o,i]=(0,r.useEntityProp)("postType",n,"meta",t),a="function"==typeof i?i:()=>console.error(`Error attempting to set post meta for post type ${n}. Does it have support for custom-fields?`);return["object"==typeof o?o:{},e=>a({...e})]}},1744:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e,t="post",n={context:"view"})=>(0,s.useSelect)((s=>s(r.store).getEntityRecord("postType",t,e,n)),[e,t])},4704:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e,t="post")=>(0,s.useSelect)((n=>{const{getEntityRecords:s}=n(r.store);return s("postType",t,{include:e})}),[e,t])},7532:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=()=>(0,s.useSelect)((e=>e(r.store).getEditedPostPreviewLink()),[])},7712:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e,t="category",n={context:"view"})=>(0,s.useSelect)((s=>s(r.store).getEntityRecord("taxonomy",t,e,n)),[e,t])},1848:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e=null,t=null,n="categories")=>{const o=(0,s.useSelect)((t=>e||t("core/editor").getCurrentPostType()),[]),[i,a]=(0,r.useEntityProp)("postType",o,n,t);return[i,e=>a(e)]}},5328:(e,t,n)=>{"use strict";n.d(t,{getMediaUrl:()=>i.c,parseCSVFile:()=>o});var r=n(2232),s=n.n(r);const o=e=>new Promise(((t,n)=>{s().parse(e,{complete:e=>t(e.data),dynamicTyping:!0,error:e=>n(e),header:!0,skipEmptyLines:!0})}));var i=n(6199)},6199:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=(e,t="full")=>{const{media_details:{sizes:{[t]:{source_url:n=""}={},full:{source_url:r=""}={}}={}}={},sizes:{[t]:{url:s=""}={},full:{url:o=""}={}}={},source_url:i="",url:a=""}=e;return s||n||o||r||a||i||""}},1280:e=>{"use strict";e.exports=window.React},4632:e=>{"use strict";e.exports=window.wp.apiFetch},9528:e=>{"use strict";e.exports=window.wp.blockEditor},7287:e=>{"use strict";e.exports=window.wp.components},3048:e=>{"use strict";e.exports=window.wp.coreData},7752:e=>{"use strict";e.exports=window.wp.data},3396:e=>{"use strict";e.exports=window.wp.i18n},7204:e=>{"use strict";e.exports=window.wp.url}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var o=t[r]={id:r,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{AudioPicker:()=>e.AudioPicker,CSVUploader:()=>e.CSVUploader,Checkboxes:()=>e.Checkboxes,ImagePicker:()=>e.ImagePicker,MediaPicker:()=>e.MediaPicker,PostPicker:()=>e.PostPicker,PostSelector:()=>e.PostSelector,SafeHtml:()=>e.SafeHtml,Selector:()=>e.Selector,Sortable:()=>e.Sortable,SortableItem:()=>e.SortableItem,TermSelector:()=>e.TermSelector,VideoPicker:()=>e.VideoPicker,getMediaUrl:()=>s.getMediaUrl,parseCSVFile:()=>s.parseCSVFile,useCurrentPostId:()=>t.useCurrentPostId,useCurrentTheme:()=>t.useCurrentTheme,useDebounce:()=>t.useDebounce,useHasInnerBlocks:()=>t.useHasInnerBlocks,useInnerBlocks:()=>t.useInnerBlocks,useInnerBlocksAttributes:()=>t.useInnerBlocksAttributes,useInnerBlocksCount:()=>t.useInnerBlocksCount,useInnerBlocksIndex:()=>t.useInnerBlocksIndex,useMedia:()=>t.useMedia,useOption:()=>t.useOption,useParentBlock:()=>t.useParentBlock,useParentBlockAttributes:()=>t.useParentBlockAttributes,usePost:()=>t.usePost,usePostById:()=>t.usePostById,usePostMeta:()=>t.usePostMeta,usePostMetaValue:()=>t.usePostMetaValue,usePosts:()=>t.usePosts,usePreviewLink:()=>t.usePreviewLink,useTerm:()=>t.useTerm,useTerms:()=>t.useTerms});var e=n(7720),t=n(2e3),s=n(5328)})(),r})(),e.exports=t()},681:function(e,t,n){"use strict";var r=window.wp.blocks,s=window.React,o=n(265),i=window.wp.components,a=window.wp.i18n,l=window.wp.blockEditor,c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"wp-newsletter-builder/post-featured-image","version":"0.1.0","title":"Newsletter Post Featured Image","category":"design","icon":"admin-post","description":"Displays a post featured image","textdomain":"wp-newsletter-builder","editorScript":"file:index.ts","style":["file:style-index.css"],"render":"file:render.php","attributes":{"overrideImage":{"type":"number","default":0},"imgSizes":{"type":"string","default":""}},"usesContext":["postId"]}');(0,r.registerBlockType)(c,{edit:function(e){var t;let{attributes:{overrideImage:n},context:{postId:r},setAttributes:c}=e;const u=null!==(t=(0,o.usePostById)(r))&&void 0!==t?t:null;let d=u?u.featured_media:null;const p=u?u.title.rendered:"";d=n||d;const f=(0,o.useMedia)(d),h=f?f.source_url:"";return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{...(0,l.useBlockProps)({className:"image-container"})},u&&""!==h?(0,s.createElement)("img",{src:h,alt:p}):null,u?null:(0,s.createElement)(i.Placeholder,{className:"block-editor-media-placeholder",style:{aspectRatio:"16 / 9"},withIllustration:!0})),(0,s.createElement)(l.InspectorControls,null,r?(0,s.createElement)(i.PanelBody,{title:(0,a.__)("Override Image","wp-newsletter-builder"),initialOpen:!0},(0,s.createElement)(i.PanelRow,null,(0,s.createElement)(o.ImagePicker,{value:null!=n?n:0,onUpdate:e=>{let{id:t}=e;return c({overrideImage:t})},onReset:()=>c({overrideImage:0})}))):null))}})}},n={};function r(e){var s=n[e];if(void 0!==s)return s.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.m=t,e=[],r.O=function(t,n,s,o){if(!n){var i=1/0;for(u=0;u=o)&&Object.keys(r.O).every((function(e){return r.O[e](n[l])}))?n.splice(l--,1):(a=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,s,o]},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={345:0,797:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var s,o,i=n[0],a=n[1],l=n[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(s in a)r.o(a,s)&&(r.m[s]=a[s]);if(l)var u=l(r)}for(t&&t(n);c.
+ * @param WP_Block $block The instance of the WP_Block class that represents the block being rendered.
+ *
+ * @package wp-newsletter-builder
+ */
+
+$wp_newsletter_builder_block_post = $block->context['postId'] ?? null;
+
+$wp_newsletter_builder_block_post = get_post( $wp_newsletter_builder_block_post );
+if ( empty( $wp_newsletter_builder_block_post ) ) {
+ return;
+}
+$wp_newsletter_builder_img_sizes = $attributes['imgSizes'] ?? '';
+$wp_newsletter_builder_post_image = ! empty( $attributes['overrideImage'] ) ? $attributes['overrideImage'] : get_post_thumbnail_id( $wp_newsletter_builder_block_post->ID );
+
+$wp_newsletter_builder_post_permalink = (string) get_the_permalink();
+?>
+ 'post__image-link' ] ) ); ?> href="">
+ $wp_newsletter_builder_img_sizes ] ); ?>
+
diff --git a/build/post-featured-image/style-index-rtl.css b/build/post-featured-image/style-index-rtl.css
new file mode 100644
index 00000000..a7a3213a
--- /dev/null
+++ b/build/post-featured-image/style-index-rtl.css
@@ -0,0 +1 @@
+a.post__title-link{color:#000;display:block;margin:20px auto;text-decoration:none}a.post__title-link h2{margin-bottom:0;text-align:center}a.post__title-link h2.post__title--small{font-size:24px}
diff --git a/build/post-featured-image/style-index.css b/build/post-featured-image/style-index.css
new file mode 100644
index 00000000..a7a3213a
--- /dev/null
+++ b/build/post-featured-image/style-index.css
@@ -0,0 +1 @@
+a.post__title-link{color:#000;display:block;margin:20px auto;text-decoration:none}a.post__title-link h2{margin-bottom:0;text-align:center}a.post__title-link h2.post__title--small{font-size:24px}
diff --git a/build/post-item/block.json b/build/post-item/block.json
new file mode 100644
index 00000000..384f5885
--- /dev/null
+++ b/build/post-item/block.json
@@ -0,0 +1,17 @@
+{
+ "$schema": "https://schemas.wp.org/trunk/block.json",
+ "apiVersion": 2,
+ "name": "wp-newsletter-builder/post-item",
+ "version": "0.1.0",
+ "title": "Newsletter Post Item",
+ "category": "design",
+ "icon": "editor-table",
+ "description": "Displays a post block inside a table cell.",
+ "textdomain": "wp-newsletter-builder",
+ "editorScript": "file:index.js",
+ "editorStyle": "file:index.css",
+ "style": [
+ "file:style-index.css"
+ ],
+ "render": "file:render.php"
+}
\ No newline at end of file
diff --git a/build/post-item/index.asset.php b/build/post-item/index.asset.php
new file mode 100644
index 00000000..5f22c83a
--- /dev/null
+++ b/build/post-item/index.asset.php
@@ -0,0 +1 @@
+ array('react', 'wp-block-editor', 'wp-blocks'), 'version' => '90ccb8979d4f2ba493d9');
diff --git a/build/post-item/index.js b/build/post-item/index.js
new file mode 100644
index 00000000..f9ada94a
--- /dev/null
+++ b/build/post-item/index.js
@@ -0,0 +1 @@
+!function(){"use strict";var e=window.React,t=window.wp.blocks,n=window.wp.blockEditor;const o=[["wp-newsletter-builder/post",{showContent:!1,showExcerpt:!1,showByline:!1,showCta:!1,order:["image","title","excerpt","content","byline"]}]];var r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"wp-newsletter-builder/post-item","version":"0.1.0","title":"Newsletter Post Item","category":"design","icon":"editor-table","description":"Displays a post block inside a table cell.","textdomain":"wp-newsletter-builder","editorScript":"file:index.ts","editorStyle":"file:index.css","style":["file:style-index.css"],"render":"file:render.php"}');(0,t.registerBlockType)(r,{apiVersion:2,edit:function(){return(0,e.createElement)("td",{...(0,n.useBlockProps)()},(0,e.createElement)(n.InnerBlocks,{orientation:"horizontal",template:o,templateLock:"all"}))},save:()=>{const t=n.useBlockProps.save();return(0,e.createElement)("td",{...t},(0,e.createElement)(n.InnerBlocks.Content,null))}})}();
\ No newline at end of file
diff --git a/build/post-item/index.php b/build/post-item/index.php
new file mode 100644
index 00000000..6f975d3d
--- /dev/null
+++ b/build/post-item/index.php
@@ -0,0 +1,21 @@
+
->
-
-
-{{/isDynamicVariant}}
+ array('react', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => '92c0e28b18f7ea8e05b6');
diff --git a/build/post-read-more/index.js b/build/post-read-more/index.js
new file mode 100644
index 00000000..cda4c0dc
--- /dev/null
+++ b/build/post-read-more/index.js
@@ -0,0 +1 @@
+!function(){"use strict";var e,t={712:function(){var e=window.wp.blocks,t=window.React,r=window.wp.i18n,n=window.wp.blockEditor,o=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"wp-newsletter-builder/post-read-more","version":"0.1.0","title":"Newsletter Post Read More","category":"design","icon":"admin-post","description":"Displays a post read more button","textdomain":"wp-newsletter-builder","editorScript":"file:index.ts","style":["file:style-index.css"],"render":"file:render.php","attributes":{"readMoreText":{"type":"string","default":""}},"usesContext":["postId"]}');(0,e.registerBlockType)(o,{edit:function(e){let{attributes:{readMoreText:o},setAttributes:i}=e;const s=o||(0,r.__)("Read More","wp-newsletter-builder");return(0,t.createElement)("div",{...(0,n.useBlockProps)({className:"newsletter-read-more has-text-align-center"})},(0,t.createElement)(n.RichText,{tagName:"span",className:"read-more-button",value:s,onChange:e=>i({readMoreText:e})}))}})}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.m=t,e=[],n.O=function(t,r,o,i){if(!r){var s=1/0;for(c=0;c=i)&&Object.keys(n.O).every((function(e){return n.O[e](r[l])}))?r.splice(l--,1):(a=!1,i0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[r,o,i]},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={581:0,201:0};n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,i,s=r[0],a=r[1],l=r[2],u=0;if(s.some((function(t){return 0!==e[t]}))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(l)var c=l(n)}for(t&&t(r);u.
+ * @param WP_Block $block The instance of the WP_Block class that represents the block being rendered.
+ *
+ * @package wp-newsletter-builder
+ */
+
+$wp_newsletter_builder_block_post = $block->context['postId'] ?? null;
+
+$wp_newsletter_builder_block_post = get_post( $wp_newsletter_builder_block_post );
+if ( empty( $wp_newsletter_builder_block_post ) ) {
+ return;
+}
+$wp_newsletter_builder_read_more_text = $attributes['readMoreText'] ?? '';
+if ( empty( $wp_newsletter_builder_read_more_text ) ) {
+ $wp_newsletter_builder_read_more_text = __( 'Read More', 'wp-newsletter-builder' );
+}
+$wp_newsletter_builder_post_permalink = (string) get_the_permalink();
+?>
+ 'wp-block-button has-text-align-center' ] ) ); ?>>
+
+
+
+
+
+
diff --git a/build/post-read-more/style-index-rtl.css b/build/post-read-more/style-index-rtl.css
new file mode 100644
index 00000000..a7a3213a
--- /dev/null
+++ b/build/post-read-more/style-index-rtl.css
@@ -0,0 +1 @@
+a.post__title-link{color:#000;display:block;margin:20px auto;text-decoration:none}a.post__title-link h2{margin-bottom:0;text-align:center}a.post__title-link h2.post__title--small{font-size:24px}
diff --git a/build/post-read-more/style-index.css b/build/post-read-more/style-index.css
new file mode 100644
index 00000000..a7a3213a
--- /dev/null
+++ b/build/post-read-more/style-index.css
@@ -0,0 +1 @@
+a.post__title-link{color:#000;display:block;margin:20px auto;text-decoration:none}a.post__title-link h2{margin-bottom:0;text-align:center}a.post__title-link h2.post__title--small{font-size:24px}
diff --git a/build/post-title/block.json b/build/post-title/block.json
new file mode 100644
index 00000000..00f74347
--- /dev/null
+++ b/build/post-title/block.json
@@ -0,0 +1,29 @@
+{
+ "$schema": "https://schemas.wp.org/trunk/block.json",
+ "apiVersion": 2,
+ "name": "wp-newsletter-builder/post-title",
+ "version": "0.1.0",
+ "title": "Newsletter Post Title",
+ "category": "design",
+ "icon": "admin-post",
+ "description": "Displays a post title",
+ "textdomain": "wp-newsletter-builder",
+ "editorScript": "file:index.js",
+ "style": [
+ "file:style-index.css"
+ ],
+ "render": "file:render.php",
+ "attributes": {
+ "overrideTitle": {
+ "type": "string",
+ "default": ""
+ },
+ "smallerFont": {
+ "type": "boolean",
+ "default": false
+ }
+ },
+ "usesContext": [
+ "postId"
+ ]
+}
\ No newline at end of file
diff --git a/build/post-title/index.asset.php b/build/post-title/index.asset.php
new file mode 100644
index 00000000..2f6858f0
--- /dev/null
+++ b/build/post-title/index.asset.php
@@ -0,0 +1 @@
+ array('react', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => '50630b8ffad9a4d6adef');
diff --git a/build/post-title/index.js b/build/post-title/index.js
new file mode 100644
index 00000000..64aa4727
--- /dev/null
+++ b/build/post-title/index.js
@@ -0,0 +1,42 @@
+!function(){var e,t={265:function(e){var t;self,t=()=>(()=>{var e={6484:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function s(){for(var e=[],t=0;t{"use strict";n.d(t,{c:()=>a});var r=n(2876),s=n.n(r),o=n(1849),i=n.n(o)()(s());i.push([e.id,".alley-scripts-post-picker__post-list{display:flex;flex-wrap:wrap;float:left;height:calc(70vh - 200px);justify-content:flex-start;overflow-y:auto;padding:8px;width:100%}.alley-scripts-post-picker__post{border:1px solid #eee;height:auto;justify-content:center;margin:0 8px 8px 0;transition:background-color .2s ease-in-out;width:calc((100% - 40px)/3)}@media(min-width: 780px){.alley-scripts-post-picker__post{width:calc((100% - 40px)/5)}}.alley-scripts-post-picker__post:hover{background-color:#f5f5f5}.alley-scripts-post-picker__post.is-selected{background-color:#f5f5f5}.alley-scripts-post-picker__load-more{clear:both;float:left;text-align:center;width:100%}","",{version:3,sources:["webpack://./src/components/post-picker/post-list.scss"],names:[],mappings:"AAAA,sCACE,YAAA,CACA,cAAA,CACA,UAAA,CACA,yBAAA,CACA,0BAAA,CACA,eAAA,CACA,WAAA,CACA,UAAA,CAGF,iCACE,qBAAA,CACA,WAAA,CACA,sBAAA,CACA,kBAAA,CACA,2CAAA,CACA,2BAAA,CAGA,yBATF,iCAUI,2BAAA,CAAA,CAGF,uCACE,wBAAA,CAGF,6CACE,wBAAA,CAIJ,sCACE,UAAA,CACA,UAAA,CACA,iBAAA,CACA,UAAA",sourcesContent:[".alley-scripts-post-picker__post-list {\n display: flex;\n flex-wrap: wrap;\n float: left;\n height: calc(70vh - 200px);\n justify-content: flex-start;\n overflow-y: auto;\n padding: 8px;\n width: 100%;\n}\n\n.alley-scripts-post-picker__post {\n border: 1px solid #eee;\n height: auto;\n justify-content: center;\n margin: 0 8px 8px 0;\n transition: background-color 0.2s ease-in-out;\n width: calc((100% - 40px) / 3);\n\n\n @media (min-width: 780px) {\n width: calc((100% - 40px) / 5);\n }\n\n &:hover {\n background-color: #f5f5f5;\n }\n\n &.is-selected {\n background-color: #f5f5f5;\n }\n}\n\n.alley-scripts-post-picker__load-more {\n clear: both;\n float: left;\n text-align: center;\n width: 100%;\n}\n"],sourceRoot:""}]);const a=i},9680:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(2876),s=n.n(r),o=n(1849),i=n.n(o)()(s());i.push([e.id,".alley-scripts-post-picker__modal .components-modal__content{width:90vw}.alley-scripts-post-picker__buttons{clear:both;display:block;text-align:right;width:100%}.alley-scripts-post-picker__buttons button{margin:5px}","",{version:3,sources:["webpack://./src/components/post-picker/search-modal.scss"],names:[],mappings:"AACE,6DACE,UAAA,CAIJ,oCACE,UAAA,CACA,aAAA,CACA,gBAAA,CACA,UAAA,CAEA,2CACE,UAAA",sourcesContent:[".alley-scripts-post-picker__modal {\n .components-modal__content {\n width: 90vw;\n }\n}\n\n.alley-scripts-post-picker__buttons {\n clear: both;\n display: block;\n text-align: right;\n width: 100%;\n\n button {\n margin: 5px;\n }\n}\n"],sourceRoot:""}]);const a=i},3800:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(2876),s=n.n(r),o=n(1849),i=n.n(o)()(s());i.push([e.id,".post-picker-notice{margin:0 0 .5rem 0}","",{version:3,sources:["webpack://./src/components/post-picker/style.scss"],names:[],mappings:"AAAA,oBACE,kBAAA",sourcesContent:[".post-picker-notice {\n margin: 0 0 0.5rem 0;\n}\n"],sourceRoot:""}]);const a=i},5500:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(2876),s=n.n(r),o=n(1849),i=n.n(o)()(s());i.push([e.id,'.edit-post-sidebar .autocomplete__component,.editor-styles-wrapper .autocomplete__component{margin-bottom:20px}.edit-post-sidebar .autocomplete-base-control,.editor-styles-wrapper .autocomplete-base-control{position:relative}.edit-post-sidebar .autocomplete-text-control__input,.editor-styles-wrapper .autocomplete-text-control__input{margin:0}.edit-post-sidebar .autocomplete__selection-list,.editor-styles-wrapper .autocomplete__selection-list{list-style-type:none;margin:0 0 6px;padding:0}.edit-post-sidebar .autocomplete__selection-list--item,.editor-styles-wrapper .autocomplete__selection-list--item{display:inline-block;list-style:none}.edit-post-sidebar .autocomplete__selection-list--item--button,.editor-styles-wrapper .autocomplete__selection-list--item--button{margin-bottom:4px;margin-right:3px}.edit-post-sidebar .autocomplete__selection-list--item--button::after,.editor-styles-wrapper .autocomplete__selection-list--item--button::after{content:"×";font-size:16px;line-height:20px;margin-left:5px}.edit-post-sidebar .autocomplete__dropdown,.editor-styles-wrapper .autocomplete__dropdown{background-color:#fff;border-color:rgba(0,0,0,0) #e2e4e7 #e2e4e7;border-radius:0 0 4px 4px;border-style:solid;border-width:0 1px 1px;left:0;max-height:0;overflow-y:hidden;position:absolute;top:calc(100% + 1px);visibility:hidden;width:100%;z-index:10}.edit-post-sidebar .autocomplete__dropdown--is-open,.editor-styles-wrapper .autocomplete__dropdown--is-open{box-shadow:0 3px 30px rgba(25,30,35,.1);max-height:225px;overflow-y:scroll;visibility:visible}.edit-post-sidebar .autocomplete__dropdown--notice,.editor-styles-wrapper .autocomplete__dropdown--notice{padding:15px}.edit-post-sidebar .autocomplete__dropdown--results,.editor-styles-wrapper .autocomplete__dropdown--results{list-style:none;margin:0;padding:0}.edit-post-sidebar .autocomplete__list--item,.editor-styles-wrapper .autocomplete__list--item{list-style:none}.edit-post-sidebar .autocomplete__list--item>button,.editor-styles-wrapper .autocomplete__list--item>button{background:rgba(0,0,0,0);border-color:#e2e4e7;border-style:solid;border-width:0 0 1px;height:100%;line-height:1.25;text-align:left;white-space:inherit;width:100%}.edit-post-sidebar .autocomplete__list--item:last-child>button,.editor-styles-wrapper .autocomplete__list--item:last-child>button{border-bottom:0}',"",{version:3,sources:["webpack://./src/components/selector/styles.scss"],names:[],mappings:"AAAA,4FAgBI,kBACE,CAAA,gGAMF,iBACE,CAAA,8GAMF,QACE,CAAA,sGAMF,oBACE,CAAA,cACA,CAAA,SACA,CAAA,kHAEA,oBACE,CAAA,eACA,CAAA,kIAEA,iBACE,CAAA,gBACA,CAAA,gJAEA,WACE,CAAA,cACA,CAAA,gBACA,CAAA,eACA,CAAA,0FASR,qBACE,CAAA,0CACA,CAAA,yBACA,CAAA,kBACA,CAAA,sBACA,CAAA,MACA,CAAA,YACA,CAAA,iBACA,CAAA,iBACA,CAAA,oBACA,CAAA,iBACA,CAAA,UACA,CAAA,UACA,CAAA,4GAGA,uCACE,CAAA,gBACA,CAAA,iBACA,CAAA,kBACA,CAAA,0GAIF,YACE,CAAA,4GAIF,eACE,CAAA,QACA,CAAA,SACA,CAAA,8FAOJ,eACE,CAAA,4GAEA,wBACE,CAAA,oBACA,CAAA,kBACA,CAAA,oBACA,CAAA,WACA,CAAA,gBACA,CAAA,eACA,CAAA,mBACA,CAAA,UACA,CAAA,kIAGF,eACE",sourcesContent:["//--------------------------------------------------------------\n// AutoComplete Styles\n//--------------------------------------------------------------\n\n/* stylelint-disable max-nesting-depth */\n\n//-----------------------------------------\n// Accommodate editor well, or the sidebar.\n//-----------------------------------------\n.edit-post-sidebar,\n.editor-styles-wrapper {\n .autocomplete {\n\n //-----------------------------------------\n // Parent form wrapper.\n //-----------------------------------------\n &__component {\n margin-bottom: 20px;\n }\n\n //-----------------------------------------\n // Wrapper\n //-----------------------------------------\n &-base-control {\n position: relative;\n }\n\n //-----------------------------------------\n // Input\n //-----------------------------------------\n &-text-control__input {\n margin: 0;\n }\n\n //-----------------------------------------\n // Selected buttons.\n //-----------------------------------------\n &__selection-list {\n list-style-type: none;\n margin: 0 0 6px;\n padding: 0;\n\n &--item {\n display: inline-block;\n list-style: none;\n\n &--button {\n margin-bottom: 4px;\n margin-right: 3px;\n\n &::after {\n content: '×';\n font-size: 16px;\n line-height: 20px;\n margin-left: 5px;\n }\n }\n }\n }\n\n //-----------------------------------------\n // Results\n //-----------------------------------------\n &__dropdown {\n background-color: #fff;\n border-color: transparent #e2e4e7 #e2e4e7;\n border-radius: 0 0 4px 4px;\n border-style: solid;\n border-width: 0 1px 1px;\n left: 0;\n max-height: 0;\n overflow-y: hidden;\n position: absolute;\n top: calc(100% + 1px); // Offset focus border.\n visibility: hidden;\n width: 100%;\n z-index: 10;\n\n // Container is open.\n &--is-open {\n box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1);\n max-height: 225px;\n overflow-y: scroll;\n visibility: visible;\n }\n\n // Notice handler.\n &--notice {\n padding: 15px;\n }\n\n // Results container.\n &--results {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n }\n\n //-----------------------------------------\n // List/Results\n //-----------------------------------------\n &__list--item {\n list-style: none;\n\n > button {\n background: transparent;\n border-color: #e2e4e7;\n border-style: solid;\n border-width: 0 0 1px;\n height: 100%;\n line-height: 1.25;\n text-align: left;\n white-space: inherit;\n width: 100%;\n }\n\n &:last-child > button {\n border-bottom: 0;\n }\n }\n }\n}\n"],sourceRoot:""}]);const a=i},1849:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,s,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var a=0;a0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),s&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=s):u[4]="".concat(s)),t.push(u))}},t}},2876:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(s," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},6595:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:s}=Object;let{freeze:o,seal:i,create:a}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),i||(i=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=C(Array.prototype.forEach),d=C(Array.prototype.pop),p=C(Array.prototype.push),f=C(String.prototype.toLowerCase),h=C(String.prototype.toString),m=C(String.prototype.match),g=C(String.prototype.replace),y=C(String.prototype.indexOf),v=C(String.prototype.trim),b=C(RegExp.prototype.test),A=(_=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),s=1;s2&&void 0!==arguments[2]?arguments[2]:f;t&&t(e,null);let o=r.length;for(;o--;){let t=r[o];if("string"==typeof t){const e=s(t);e!==t&&(n(r)||(r[o]=e),t=e)}e[t]=!0}return e}function x(t){const n=a(null);for(const[r,o]of e(t))void 0!==s(t,r)&&(n[r]=o);return n}function S(e,t){for(;null!==e;){const n=s(e,t);if(n){if(n.get)return C(n.get);if("function"==typeof n.value)return C(n.value)}e=r(e)}return function(e){return console.warn("fallback value for",e),null}}const k=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),E=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),T=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),N=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=o(["#text"]),O=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),L=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),j=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),D=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),U=i(/\{\{[\w\W]*|[\w\W]*\}\}/gm),M=i(/<%[\w\W]*|[\w\W]*%>/gm),B=i(/\${[\w\W]*}/gm),F=i(/^data-[\-\w.\u00B7-\uFFFF]/),z=i(/^aria-[\-\w]+$/),q=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=i(/^(?:\w+script|data):/i),H=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W=i(/^html$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:U,ERB_EXPR:M,TMPLIT_EXPR:B,DATA_ATTR:F,ARIA_ATTR:z,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:H,DOCTYPE_NAME:W});return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const r=e=>t(e);if(r.version="3.0.6",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;let{document:s}=n;const i=s,l=i.currentScript,{DocumentFragment:c,HTMLTemplateElement:_,Node:C,Element:U,NodeFilter:M,NamedNodeMap:B=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:F,DOMParser:z,trustedTypes:$}=n,H=U.prototype,Y=S(H,"cloneNode"),V=S(H,"nextSibling"),K=S(H,"childNodes"),Q=S(H,"parentNode");if("function"==typeof _){const e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}let J,X="";const{implementation:Z,createNodeIterator:ee,createDocumentFragment:te,getElementsByTagName:ne}=s,{importNode:re}=i;let se={};r.isSupported="function"==typeof e&&"function"==typeof Q&&Z&&void 0!==Z.createHTMLDocument;const{MUSTACHE_EXPR:oe,ERB_EXPR:ie,TMPLIT_EXPR:ae,DATA_ATTR:le,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:ue,ATTR_WHITESPACE:de}=G;let{IS_ALLOWED_URI:pe}=G,fe=null;const he=w({},[...k,...E,...R,...I,...P]);let me=null;const ge=w({},[...O,...L,...j,...D]);let ye=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,be=null,Ae=!0,_e=!0,Ce=!1,we=!0,xe=!1,Se=!1,ke=!1,Ee=!1,Re=!1,Te=!1,Ie=!1,Ne=!0,Pe=!1,Oe=!0,Le=!1,je={},De=null;const Ue=w({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Me=null;const Be=w({},["audio","video","img","source","image","track"]);let Fe=null;const ze=w({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",He="http://www.w3.org/1999/xhtml";let We=He,Ge=!1,Ye=null;const Ve=w({},[qe,$e,He],h);let Ke=null;const Qe=["application/xhtml+xml","text/html"];let Je=null,Xe=null;const Ze=s.createElement("form"),et=function(e){return e instanceof RegExp||e instanceof Function},tt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Xe||Xe!==e){if(e&&"object"==typeof e||(e={}),e=x(e),Ke=Ke=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Je="application/xhtml+xml"===Ke?h:f,fe="ALLOWED_TAGS"in e?w({},e.ALLOWED_TAGS,Je):he,me="ALLOWED_ATTR"in e?w({},e.ALLOWED_ATTR,Je):ge,Ye="ALLOWED_NAMESPACES"in e?w({},e.ALLOWED_NAMESPACES,h):Ve,Fe="ADD_URI_SAFE_ATTR"in e?w(x(ze),e.ADD_URI_SAFE_ATTR,Je):ze,Me="ADD_DATA_URI_TAGS"in e?w(x(Be),e.ADD_DATA_URI_TAGS,Je):Be,De="FORBID_CONTENTS"in e?w({},e.FORBID_CONTENTS,Je):Ue,ve="FORBID_TAGS"in e?w({},e.FORBID_TAGS,Je):{},be="FORBID_ATTR"in e?w({},e.FORBID_ATTR,Je):{},je="USE_PROFILES"in e&&e.USE_PROFILES,Ae=!1!==e.ALLOW_ARIA_ATTR,_e=!1!==e.ALLOW_DATA_ATTR,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,we=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,xe=e.SAFE_FOR_TEMPLATES||!1,Se=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,Ee=e.FORCE_BODY||!1,Ne=!1!==e.SANITIZE_DOM,Pe=e.SANITIZE_NAMED_PROPS||!1,Oe=!1!==e.KEEP_CONTENT,Le=e.IN_PLACE||!1,pe=e.ALLOWED_URI_REGEXP||q,We=e.NAMESPACE||He,ye=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ye.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(_e=!1),Te&&(Re=!0),je&&(fe=w({},[...P]),me=[],!0===je.html&&(w(fe,k),w(me,O)),!0===je.svg&&(w(fe,E),w(me,L),w(me,D)),!0===je.svgFilters&&(w(fe,R),w(me,L),w(me,D)),!0===je.mathMl&&(w(fe,I),w(me,j),w(me,D))),e.ADD_TAGS&&(fe===he&&(fe=x(fe)),w(fe,e.ADD_TAGS,Je)),e.ADD_ATTR&&(me===ge&&(me=x(me)),w(me,e.ADD_ATTR,Je)),e.ADD_URI_SAFE_ATTR&&w(Fe,e.ADD_URI_SAFE_ATTR,Je),e.FORBID_CONTENTS&&(De===Ue&&(De=x(De)),w(De,e.FORBID_CONTENTS,Je)),Oe&&(fe["#text"]=!0),Se&&w(fe,["html","head","body"]),fe.table&&(w(fe,["tbody"]),delete ve.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=e.TRUSTED_TYPES_POLICY,X=J.createHTML("")}else void 0===J&&(J=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}($,l)),null!==J&&"string"==typeof X&&(X=J.createHTML(""));o&&o(e),Xe=e}},nt=w({},["mi","mo","mn","ms","mtext"]),rt=w({},["foreignobject","desc","title","annotation-xml"]),st=w({},["title","style","font","a","script"]),ot=w({},E);w(ot,R),w(ot,T);const it=w({},I);w(it,N);const at=function(e){p(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},lt=function(e,t){try{p(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!me[e])if(Re||Te)try{at(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ct=function(e){let t=null,n=null;if(Ee)e=""+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ke&&We===He&&(e=''+e+"");const r=J?J.createHTML(e):e;if(We===He)try{t=(new z).parseFromString(r,Ke)}catch(e){}if(!t||!t.documentElement){t=Z.createDocument(We,"template",null);try{t.documentElement.innerHTML=Ge?X:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(s.createTextNode(n),o.childNodes[0]||null),We===He?ne.call(t,Se?"html":"body")[0]:Se?t.documentElement:o},ut=function(e){return ee.call(e.ownerDocument||e,e,M.SHOW_ELEMENT|M.SHOW_COMMENT|M.SHOW_TEXT,null)},dt=function(e){return"function"==typeof C&&e instanceof C},pt=function(e,t,n){se[e]&&u(se[e],(e=>{e.call(r,t,n,Xe)}))},ft=function(e){let t=null;if(pt("beforeSanitizeElements",e,null),(n=e)instanceof F&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof B)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return at(e),!0;var n;const s=Je(e.nodeName);if(pt("uponSanitizeElement",e,{tagName:s,allowedTags:fe}),e.hasChildNodes()&&!dt(e.firstElementChild)&&b(/<[/\w]/g,e.innerHTML)&&b(/<[/\w]/g,e.textContent))return at(e),!0;if(!fe[s]||ve[s]){if(!ve[s]&&mt(s)){if(ye.tagNameCheck instanceof RegExp&&b(ye.tagNameCheck,s))return!1;if(ye.tagNameCheck instanceof Function&&ye.tagNameCheck(s))return!1}if(Oe&&!De[s]){const t=Q(e)||e.parentNode,n=K(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(Y(n[r],!0),V(e))}return at(e),!0}return e instanceof U&&!function(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:We,tagName:"template"});const n=f(e.tagName),r=f(t.tagName);return!!Ye[e.namespaceURI]&&(e.namespaceURI===$e?t.namespaceURI===He?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===r||nt[r]):Boolean(ot[n]):e.namespaceURI===qe?t.namespaceURI===He?"math"===n:t.namespaceURI===$e?"math"===n&&rt[r]:Boolean(it[n]):e.namespaceURI===He?!(t.namespaceURI===$e&&!rt[r])&&!(t.namespaceURI===qe&&!nt[r])&&!it[n]&&(st[n]||!ot[n]):!("application/xhtml+xml"!==Ke||!Ye[e.namespaceURI]))}(e)?(at(e),!0):"noscript"!==s&&"noembed"!==s&&"noframes"!==s||!b(/<\/no(script|embed|frames)/i,e.innerHTML)?(xe&&3===e.nodeType&&(t=e.textContent,u([oe,ie,ae],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(r.removed,{element:e.cloneNode()}),e.textContent=t)),pt("afterSanitizeElements",e,null),!1):(at(e),!0)},ht=function(e,t,n){if(Ne&&("id"===t||"name"===t)&&(n in s||n in Ze))return!1;if(_e&&!be[t]&&b(le,t));else if(Ae&&b(ce,t));else if(!me[t]||be[t]){if(!(mt(e)&&(ye.tagNameCheck instanceof RegExp&&b(ye.tagNameCheck,e)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(e))&&(ye.attributeNameCheck instanceof RegExp&&b(ye.attributeNameCheck,t)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(t))||"is"===t&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&b(ye.tagNameCheck,n)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(n))))return!1}else if(Fe[t]);else if(b(pe,g(n,de,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Me[e])if(Ce&&!b(ue,g(n,de,"")));else if(n)return!1;return!0},mt=function(e){return e.indexOf("-")>0},gt=function(e){pt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me};let s=t.length;for(;s--;){const o=t[s],{name:i,namespaceURI:a,value:l}=o,c=Je(i);let p="value"===i?l:v(l);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,pt("uponSanitizeAttribute",e,n),p=n.attrValue,n.forceKeepAttr)continue;if(lt(i,e),!n.keepAttr)continue;if(!we&&b(/\/>/i,p)){lt(i,e);continue}xe&&u([oe,ie,ae],(e=>{p=g(p,e," ")}));const f=Je(e.nodeName);if(ht(f,c,p)){if(!Pe||"id"!==c&&"name"!==c||(lt(i,e),p="user-content-"+p),J&&"object"==typeof $&&"function"==typeof $.getAttributeType)if(a);else switch($.getAttributeType(f,c)){case"TrustedHTML":p=J.createHTML(p);break;case"TrustedScriptURL":p=J.createScriptURL(p)}try{a?e.setAttributeNS(a,i,p):e.setAttribute(i,p),d(r.removed)}catch(e){}}}pt("afterSanitizeAttributes",e,null)},yt=function e(t){let n=null;const r=ut(t);for(pt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)pt("uponSanitizeShadowNode",n,null),ft(n)||(n.content instanceof c&&e(n.content),gt(n));pt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,s=null,o=null,a=null;if(Ge=!e,Ge&&(e="\x3c!--\x3e"),"string"!=typeof e&&!dt(e)){if("function"!=typeof e.toString)throw A("toString is not a function");if("string"!=typeof(e=e.toString()))throw A("dirty is not a string, aborting")}if(!r.isSupported)return e;if(ke||tt(t),r.removed=[],"string"==typeof e&&(Le=!1),Le){if(e.nodeName){const t=Je(e.nodeName);if(!fe[t]||ve[t])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof C)n=ct("\x3c!----\x3e"),s=n.ownerDocument.importNode(e,!0),1===s.nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?n=s:n.appendChild(s);else{if(!Re&&!xe&&!Se&&-1===e.indexOf("<"))return J&&Ie?J.createHTML(e):e;if(n=ct(e),!n)return Re?null:Ie?X:""}n&&Ee&&at(n.firstChild);const l=ut(Le?e:n);for(;o=l.nextNode();)ft(o)||(o.content instanceof c&&yt(o.content),gt(o));if(Le)return e;if(Re){if(Te)for(a=te.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(me.shadowroot||me.shadowrootmode)&&(a=re.call(i,a,!0)),a}let d=Se?n.outerHTML:n.innerHTML;return Se&&fe["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&b(W,n.ownerDocument.doctype.name)&&(d="\n"+d),xe&&u([oe,ie,ae],(e=>{d=g(d,e," ")})),J&&Ie?J.createHTML(d):d},r.setConfig=function(){tt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ke=!0},r.clearConfig=function(){Xe=null,ke=!1},r.isValidAttribute=function(e,t,n){Xe||tt({});const r=Je(e),s=Je(t);return ht(r,s,n)},r.addHook=function(e,t){"function"==typeof t&&(se[e]=se[e]||[],p(se[e],t))},r.removeHook=function(e){if(se[e])return d(se[e])},r.removeHooks=function(e){se[e]&&(se[e]=[])},r.removeAllHooks=function(){se={}},r}()}()},2232:function(e,t){var n,r;n=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},n=!t.document&&!!t.postMessage,r=t.IS_PAPA_WORKER||!1,s={},o=0,i={parse:function(n,r){var a=(r=r||{}).dynamicTyping||!1;if(_(a)&&(r.dynamicTypingFunction=a,a={}),r.dynamicTyping=a,r.transform=!!_(r.transform)&&r.transform,r.worker&&i.WORKERS_SUPPORTED){var l=function(){if(!i.WORKERS_SUPPORTED)return!1;var n,r,a=(n=t.URL||t.webkitURL||null,r=e.toString(),i.BLOB_URL||(i.BLOB_URL=n.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",r,")();"],{type:"text/javascript"})))),l=new t.Worker(a);return l.onmessage=g,l.id=o++,s[l.id]=l}();return l.userStep=r.step,l.userChunk=r.chunk,l.userComplete=r.complete,l.userError=r.error,r.step=_(r.step),r.chunk=_(r.chunk),r.complete=_(r.complete),r.error=_(r.error),delete r.worker,void l.postMessage({input:n,config:r,workerId:l.id})}var f=null;return i.NODE_STREAM_INPUT,"string"==typeof n?(n=function(e){return 65279===e.charCodeAt(0)?e.slice(1):e}(n),f=r.download?new c(r):new d(r)):!0===n.readable&&_(n.read)&&_(n.on)?f=new p(r):(t.File&&n instanceof File||n instanceof Object)&&(f=new u(r)),f.stream(n)},unparse:function(e,t){var n=!1,r=!0,s=",",o="\r\n",a='"',l=a+a,c=!1,u=null,d=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||i.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(s=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(c=t.skipEmptyLines),"string"==typeof t.newline&&(o=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+a),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(d=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var p=new RegExp(h(a),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,c);if("object"==typeof e[0])return f(u||Object.keys(e[0]),e,c)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],c);throw new Error("Unable to serialize unrecognized input");function f(e,t,n){var i="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var a=Array.isArray(e)&&0=this._config.preview;if(r)t.postMessage({results:a,workerId:i.WORKER_ID,finished:c});else if(_(this._config.chunk)&&!n){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!c||!_(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),c||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(e){_(this._config.error)?this._config.error(e):r&&this._config.error&&t.postMessage({workerId:i.WORKER_ID,error:e,finished:!1})}}function c(e){var t;(e=e||{}).chunkSize||(e.chunkSize=i.RemoteChunkSize),l.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=A(this._chunkLoaded,this),t.onerror=A(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var r in e)t.setRequestHeader(r,e[r])}if(this._config.chunkSize){var s=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+s)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function u(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=i.LocalChunkSize),l.call(this,e);var r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=A(this._chunkLoaded,this),t.onerror=A(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function p(e){l.call(this,e=e||{});var t=[],n=!0,r=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=A((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=A((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=A((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=A((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function f(e){var t,n,r,s=Math.pow(2,53),o=-s,a=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,c=this,u=0,d=0,p=!1,f=!1,g=[],y={data:[],errors:[],meta:{}};if(_(e.step)){var v=e.step;e.step=function(t){if(y=t,w())C();else{if(C(),0===y.data.length)return;u+=t.data.length,e.preview&&u>e.preview?n.abort():(y.data=y.data[0],v(y,c))}}}function A(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function C(){return y&&r&&(S("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+i.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(y.data=y.data.filter((function(e){return!A(e)}))),w()&&function(){if(y)if(Array.isArray(y.data[0])){for(var t=0;w()&&t=g.length?"__parsed_extra":g[r]),e.transform&&(i=e.transform(i,o)),i=x(o,i),"__parsed_extra"===o?(s[o]=s[o]||[],s[o].push(i)):s[o]=i}return e.header&&(r>g.length?S("FieldMismatch","TooManyFields","Too many fields: expected "+g.length+" fields but parsed "+r,d+n):r=r.length/2?"\r\n":"\r"}(s,l)),r=!1,e.delimiter)_(e.delimiter)&&(e.delimiter=e.delimiter(s),y.meta.delimiter=e.delimiter);else{var c=function(t,n,r,s,o){var a,l,c,u;o=o||[",","\t","|",";",i.RECORD_SEP,i.UNIT_SEP];for(var d=0;d=a)return G(!0)}else for(B=u,u++;;){if(-1===(B=i.indexOf(t,B+1)))return f||C.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:A.length,index:u}),H();if(B===m-1)return H(i.substring(u,B).replace(M,t));if(t!==c||i[B+1]!==c){if(t===c||0===B||i[B-1]!==c){-1!==D&&D=a)return G(!0);break}C.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:A.length,index:u}),B++}}else B++}return H();function q(e){A.push(e),x=u}function $(e){var t=0;if(-1!==e){var n=i.substring(B+1,e);n&&""===n.trim()&&(t=n.length)}return t}function H(e){return f||(void 0===e&&(e=i.substring(u)),w.push(e),u=m,q(w),b&&Y()),G()}function W(e){u=e,q(w),w=[],U=i.indexOf(r,u)}function G(e){return{data:A,errors:C,meta:{delimiter:n,linebreak:r,aborted:d,truncated:!!e,cursor:x+(p||0)}}}function Y(){o(G()),A=[],C=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return u}}function g(e){var t=e.data,n=s[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){r=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(_(n.userStep)){for(var i=0;i{"use strict";var r=n(7200);function s(){}function o(){}o.resetWarningCache=s,e.exports=function(){function e(e,t,n,s,o,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:s};return n.PropTypes=n,n}},900:(e,t,n)=>{e.exports=n(7336)()},7200:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4108:(e,t,n)=>{"use strict";var r=n(1280),s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:s,type:e,key:c,ref:u,props:o,_owner:a.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},7e3:(e,t,n)=>{"use strict";e.exports=n(4108)},3736:e=>{e.exports=function(e,t,n,r){var s=n?n.call(r,e,t):void 0;if(void 0!==s)return!!s;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l{"use strict";var t=[];function n(e){for(var n=-1,r=0;r{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},2940:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},9516:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7020:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var s=void 0!==n.layer;s&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,s&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},9296:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},3376:(e,t,n)=>{"use strict";n.d(t,{cp:()=>Ut});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n2||H(j)>3?"":" "}function Y(e,t){for(;--t&&F()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return $(e,q()+(t<6&&32==z()&&32==F()))}function V(e){for(;F();)switch(j){case e:return L;case 34:case 39:34!==e&&39!==e&&V(j);break;case 40:41===e&&V(e);break;case 92:F()}return L}function K(e,t){for(;F()&&e+j!==57&&(e+j!==84||47!==z()););return"/*"+$(t,L-1)+"*"+b(47===e?e:F())}function Q(e){for(;!H(z());)F();return $(e,L)}function J(e,t){for(var n="",r=0;r6)switch(S(e,t+1)){case 109:if(45!==S(e,t+4))break;case 102:return w(e,/(.+:)(.+)-([^]+)/,"$1"+d+"$2-$3$1"+u+(108==S(e,t+3)?"$3":"$2-$3"))+e;case 115:return~x(e,"stretch")?Z(w(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return w(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,s,o,i,a){return c+n+":"+r+a+(s?c+n+"-span:"+(o?i:+i-+r)+a:"")+e}));case 4949:if(121===S(e,t+6))return w(e,":",":"+d)+e;break;case 6444:switch(S(e,45===S(e,14)?18:11)){case 120:return w(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+d+(45===S(e,14)?"inline-":"")+"box$3$1"+d+"$2$3$1"+c+"$2box$3")+e;case 100:return w(e,":",":"+c)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return w(e,"scroll-","scroll-snap-")+e}return e}function ee(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case h:return void(e.return=Z(e.value,e.length,n));case g:return J([M(e,{value:w(e.value,"@","@"+d)})],r);case f:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(C(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":B(M(e,{props:[w(t,/:(read-\w+)/,":"+u+"$1")]})),B(M(e,{props:[t]})),A(e,{props:I(n,r)});break;case"::placeholder":B(M(e,{props:[w(t,/:(plac\w+)/,":"+d+"input-$1")]})),B(M(e,{props:[w(t,/:(plac\w+)/,":"+u+"$1")]})),B(M(e,{props:[w(t,/:(plac\w+)/,c+"input-$1")]})),B(M(e,{props:[t]})),A(e,{props:I(n,r)})}return""}))}}function te(e){return function(e){return D="",e}(ne("",null,null,null,[""],e=function(e){return N=P=1,O=E(D=e),L=0,[]}(e),0,[0],e))}function ne(e,t,n,r,s,o,i,a,l){for(var c=0,u=0,d=i,p=0,f=0,h=0,m=1,g=1,y=1,v=0,A="",_=s,C=o,k=r,R=A;g;)switch(h=v,v=F()){case 40:if(108!=h&&58==S(R,d-1)){-1!=x(R+=w(W(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:R+=W(v);break;case 9:case 10:case 13:case 32:R+=G(h);break;case 92:R+=Y(q()-1,7);continue;case 47:switch(z()){case 42:case 47:T(se(K(F(),q()),t,n,l),l);break;default:R+="/"}break;case 123*m:a[c++]=E(R)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(R=w(R,/\f/g,"")),f>0&&E(R)-d&&T(f>32?oe(R+";",r,n,d-1,l):oe(w(R," ","")+";",r,n,d-2,l),l);break;case 59:R+=";";default:if(T(k=re(R,t,n,c,u,s,a,A,_=[],C=[],d,o),o),123===v)if(0===u)ne(R,t,k,k,_,o,d,a,C);else switch(99===p&&110===S(R,3)?100:p){case 100:case 108:case 109:case 115:ne(e,k,k,r&&T(re(e,k,k,0,0,s,a,A,s,_=[],d,C),C),s,C,d,a,r?_:C);break;default:ne(R,k,k,k,[""],C,0,a,C)}}c=u=f=0,m=y=1,A=R="",d=i;break;case 58:d=1+E(R),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==(j=L>0?S(D,--L):0,P--,10===j&&(P=1,N--),j))continue;switch(R+=b(v),v*m){case 38:y=u>0?1:(R+="\f",-1);break;case 44:a[c++]=(E(R)-1)*y,y=1;break;case 64:45===z()&&(R+=W(F())),p=z(),u=d=E(A=R+=Q(q())),v++;break;case 45:45===h&&2==E(R)&&(m=0)}}return o}function re(e,t,n,r,s,o,i,a,l,c,u,d){for(var p=s-1,h=0===s?o:[""],m=R(h),g=0,y=0,b=0;g0?h[A]+" "+C:w(C,/&\f/g,h[A])))&&(l[b++]=x);return U(e,t,n,0===s?f:a,l,c,u,d)}function se(e,t,n,r){return U(e,t,n,p,b(j),k(e,2,-2),0,r)}function oe(e,t,n,r,s){return U(e,t,n,h,k(e,0,r),k(e,r+1,-1),r,s)}const ie={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ae="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",le="undefined"!=typeof window&&"HTMLElement"in window,ce=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),ue=(new Set,Object.freeze([])),de=Object.freeze({}),pe=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),fe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,he=/(^-|-$)/g;function me(e){return e.replace(fe,"-").replace(he,"")}var ge=/(a)(d)/gi,ye=function(e){return String.fromCharCode(e+(e>25?39:97))};function ve(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ye(t%52)+n;return(ye(t%52)+n).replace(ge,"$1-$2")}var be,Ae=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},_e=function(e){return Ae(5381,e)};function Ce(e){return"string"==typeof e&&!0}var we="function"==typeof Symbol&&Symbol.for,xe=we?Symbol.for("react.memo"):60115,Se=we?Symbol.for("react.forward_ref"):60112,ke={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ee={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Re={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Te=((be={})[Se]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},be[xe]=Re,be);function Ie(e){return("type"in(t=e)&&t.type.$$typeof)===xe?Re:"$$typeof"in e?Te[e.$$typeof]:ke;var t}var Ne=Object.defineProperty,Pe=Object.getOwnPropertyNames,Oe=Object.getOwnPropertySymbols,Le=Object.getOwnPropertyDescriptor,je=Object.getPrototypeOf,De=Object.prototype;function Ue(e,t,n){if("string"!=typeof t){if(De){var r=je(t);r&&r!==De&&Ue(e,r,n)}var s=Pe(t);Oe&&(s=s.concat(Oe(t)));for(var o=Ie(e),i=Ie(t),a=0;a0?" Args: ".concat(t.join(", ")):""))}var Ge=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,s=r;e>=s;)if((s<<=1)<0)throw We(16,"".concat(e));this.groupSizes=new Uint32Array(s),this.groupSizes.set(n),this.length=s;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),s=r+n,o=r;o=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e0&&(l+="".concat(e,","))})),r+="".concat(i).concat(a,'{content:"').concat(l,'"}').concat("/*!sc*/\n")},o=0;o0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===f&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ut,n).replace(r,c))})),i.prefix&&u.push(ee),u.push(X);var d=function(e,s,o,a){void 0===s&&(s=""),void 0===o&&(o=""),void 0===a&&(a="&"),t=a,n=s,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(dt,""),c=te(o||s?"".concat(o," ").concat(s," { ").concat(l," }"):l);i.namespace&&(c=pt(c,i.namespace));var d,p,f,h=[];return J(c,(d=u.concat((f=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&f(e)})),p=R(d),function(e,t,n,r){for(var s="",o=0;o="A"&&e<="Z"};function Ct(e){for(var t="",n=0;n>>0);if(!t.hasNameForId(this.componentId,o)){var i=n(s,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,i)}r=Fe(r,o),this.staticRulesId=o}else{for(var a=Ae(this.baseHash,n.hash),l="",c=0;c>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),r=Fe(r,p)}}return r},e}(),Tt=i().createContext(void 0);Tt.Consumer;var It={};function Nt(e,t,n){var s=Be(e),a=e,l=!Ce(e),c=t.attrs,u=void 0===c?ue:c,d=t.componentId,p=void 0===d?function(e,t){var n="string"!=typeof e?"sc":me(e);It[n]=(It[n]||0)+1;var r="".concat(n,"-").concat(function(e){return ve(_e(e)>>>0)}("6.1.1"+n+It[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):d,f=t.displayName,h=void 0===f?function(e){return Ce(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):f,m=t.displayName&&t.componentId?"".concat(me(t.displayName),"-").concat(t.componentId):t.componentId||p,g=s&&a.attrs?a.attrs.concat(u).filter(Boolean):u,y=t.shouldForwardProp;if(s&&a.shouldForwardProp){var v=a.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;y=function(e,t){return v(e,t)&&b(e,t)}}else y=v}var A=new Rt(n,m,s?a.componentStyle:void 0);function _(e,t){return function(e,t,n){var s=e.attrs,a=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.styledComponentId,d=e.target,p=i().useContext(Tt),f=vt(),h=e.shouldForwardProp||f.shouldForwardProp,m=function(e,t,n){for(var s,o=r(r({},t),{className:void 0,theme:n}),i=0;i2&&ct.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=nt(),r=ze([n&&'nonce="'.concat(n,'"'),"".concat(ae,'="true"'),"".concat("data-styled-version",'="').concat("6.1.1",'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(e.sealed)throw We(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw We(2);var n=((t={})[ae]="",t["data-styled-version"]="6.1.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),s=nt();return s&&(n.nonce=s),[i().createElement("style",r({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new ct({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw We(2);return i().createElement(bt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw We(3)}}(),"__sc-".concat(ae,"__")},4928:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var r=n(7e3),s=n(900),o=n.n(s),i=n(3376),a=n(7720);const l=i.cp.div`
+ height: auto;
+ width: 100%;
+`,c=({src:e})=>(0,r.jsx)(l,{children:(0,r.jsx)("audio",{className:"edit-audio-preview",controls:!0,src:e})});c.propTypes={src:o().string.isRequired};const u=({className:e,onReset:t,onUpdate:n,onUpdateURL:s,value:o,valueURL:i})=>(0,r.jsx)(a.MediaPicker,{allowedTypes:["audio"],className:e,icon:"format-audio",onReset:t,onUpdate:n,onUpdateURL:s,preview:c,value:o,valueURL:i});u.defaultProps={className:"",onUpdateURL:null,valueURL:""},u.propTypes={className:o().string,onReset:o().func.isRequired,onUpdate:o().func.isRequired,onUpdateURL:o().func,value:o().number.isRequired,valueURL:o().string};const d=u},2312:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(7e3),s=n(900),o=n.n(s),i=n(7287);const a=({label:e,value:t,options:n,onChange:s})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.BaseControl,{label:e}),n.map((e=>(0,r.jsx)(i.CheckboxControl,{label:e.label,checked:t.includes(e.value),onChange:n=>{s(n?[...t,e.value]:[...t.filter((t=>t!==e.value))])}})))]});a.propTypes={label:o().string.isRequired,value:o().arrayOf(o().string).isRequired,options:o().arrayOf(o().shape({label:o().string.isRequired,value:o().string.isRequired})).isRequired,onChange:o().func.isRequired};const l=a},8312:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var r=n(7e3),s=n(1280),o=n.n(s),i=n(3396),a=n(900),l=n.n(a),c=n(5328);class u extends o().PureComponent{static handleSubmit(e){e.preventDefault()}constructor(e){super(e),this.handleChange=this.handleChange.bind(this),this.state={error:"",success:""}}handleChange(e){const{attributeName:t,callback:n,setAttributes:r}=this.props;e.target.files&&e.target.files[0]&&(0,c.parseCSVFile)(e.target.files[0]).then((e=>n?n(e):e)).then((e=>{Array.isArray(e)&&e.length>0?(this.setState({error:"",success:(0,i.__)("Successfully read CSV data.","alley-scripts")}),r({[t]:JSON.stringify(e)})):this.setState({error:(0,i.__)("Could not map CSV data. Please check the source file to ensure that it has the correct structure.","alley-scripts"),success:""})})).catch((e=>{this.setState({error:e,success:""})}))}render(){const{error:e="",success:t=""}=this.state;return(0,r.jsxs)("div",{className:"alley-scripts-block-csv-uploader",children:[(0,r.jsx)("h2",{children:(0,i.__)("Upload CSV","alley-scripts")}),(0,r.jsxs)("form",{onSubmit:this.handleSubmit,children:[""!==e?(0,r.jsxs)("div",{style:{color:"#c00"},children:[(0,r.jsx)("strong",{children:(0,i.__)("Error:","alley-scripts")})," ",e]}):null,""!==t?(0,r.jsxs)("div",{style:{color:"#0c0"},children:[(0,r.jsx)("strong",{children:(0,i.__)("Success:","alley-scripts")})," ",t]}):null,(0,r.jsx)("div",{children:(0,r.jsxs)("label",{htmlFor:"alley-scripts-block-csv-uploader-file",children:[(0,r.jsx)("p",{children:(0,i.__)("Select a file to load data.","alley-scripts")}),(0,r.jsx)("input",{id:"alley-scripts-block-csv-uploader-file",onChange:this.handleChange,type:"file"})]})})]})]})}}u.defaultProps={callback:null},u.propTypes={attributeName:l().string.isRequired,callback:l().func,setAttributes:l().func.isRequired}},8348:(e,t,n)=>{"use strict";n.d(t,{default:()=>p});var r=n(7e3),s=n(3396),o=n(900),i=n.n(o),a=n(3376),l=n(7720);const c=a.cp.div`
+ box-sizing: border-box;
+ flex-shrink: 0;
+ height: auto;
+ max-height: 1450px;
+ max-width: 1450px;
+ min-height: 20px;
+ min-width: 20px;
+ position: relative;
+ width: auto;
+`,u=({src:e})=>(0,r.jsx)(c,{children:(0,r.jsx)("img",{alt:(0,s.__)("Edit image","alley-scripts"),className:"edit-image-preview",src:e,title:(0,s.__)("Edit image","alley-scripts")})});u.propTypes={src:i().string.isRequired};const d=({className:e,imageSize:t,displayControlsInToolbar:n,onReset:s,onUpdate:o,onUpdateURL:i,value:a,valueURL:c})=>(0,r.jsx)(l.MediaPicker,{allowedTypes:["image"],className:e,icon:"format-image",imageSize:t,displayControlsInToolbar:n,onReset:s,onUpdate:o,onUpdateURL:i,preview:u,value:a,valueURL:c});d.defaultProps={className:"",imageSize:"thumbnail",displayControlsInToolbar:!1,onUpdateURL:null,valueURL:""},d.propTypes={className:i().string,imageSize:i().string,displayControlsInToolbar:i().bool,onReset:i().func.isRequired,onUpdate:i().func.isRequired,onUpdateURL:i().func,value:i().number.isRequired,valueURL:i().string};const p=d},7720:(e,t,n)=>{"use strict";n.d(t,{AudioPicker:()=>r.default,CSVUploader:()=>o.default,Checkboxes:()=>s.default,ImagePicker:()=>i.default,MediaPicker:()=>a.default,PostPicker:()=>c.default,PostSelector:()=>u.default,SafeHtml:()=>l.default,Selector:()=>d.default,Sortable:()=>p.default,SortableItem:()=>f.default,TermSelector:()=>h.default,VideoPicker:()=>m.default});var r=n(4928),s=n(2312),o=n(8312),i=n(8348),a=n(5680),l=n(9160),c=n(4808),u=n(8800),d=n(9064),p=n(8504),f=n(1917),h=n(668),m=n(5316)},5680:(e,t,n)=>{"use strict";n.d(t,{default:()=>m});var r=n(7e3),s=n(900),o=n.n(s),i=n(3376),a=n(9528),l=n(7287),c=n(7752),u=n(3396),d=n(5328);const p=i.cp.div`
+ display: block;
+ position: relative;
+`,f=i.cp.div`
+ background: white;
+ border: 1px solid black;
+ padding: 1em;
+`,h=({allowedTypes:e,className:t,icon:n,imageSize:s,displayControlsInToolbar:o,onReset:i,onUpdate:h,onUpdateURL:m,preview:g,value:y,valueURL:v})=>{const{media:b}=(0,c.useSelect)((e=>({media:y?e("core").getMedia(y):void 0})),[y]);if(0!==y&&null===b)return(0,r.jsx)(l.Spinner,{});const A=b?(0,d.getMediaUrl)(b,s):v;return A?(0,r.jsxs)(p,{className:t,children:[g?(0,r.jsx)(g,{src:A}):(0,r.jsxs)(f,{className:"alley-scripts-media-picker__preview",children:[(0,r.jsx)("p",{children:(0,u.__)("Selected file:","alley-scripts")}),(0,r.jsx)("p",{children:(0,r.jsx)("a",{href:A,children:A})})]}),o?(0,r.jsx)(a.BlockControls,{group:"other",children:(0,r.jsx)(a.MediaReplaceFlow,{name:(0,u.__)("Edit Media","alley-scripts"),mediaId:y,mediaURL:A,allowedTypes:e,onSelect:h,onSelectURL:m,children:(0,r.jsx)(l.ToolbarButton,{isDestructive:!0,text:(0,u.__)("Remove","alley-scripts"),onClick:i})})}):(0,r.jsx)(l.Button,{variant:"primary",onClick:i,children:(0,u.__)("Reset","alley-scripts")})]}):(0,r.jsx)(p,{className:t,children:(0,r.jsx)(a.MediaPlaceholder,{allowedTypes:e,disableMediaButtons:!!v,icon:(0,r.jsx)(a.BlockIcon,{icon:n}),onSelect:h,onSelectURL:m,value:{id:y,src:A}})})};h.defaultProps={allowedTypes:[],className:"",icon:"format-aside",imageSize:"thumbnail",displayControlsInToolbar:!1,onUpdateURL:null,preview:null,valueURL:""},h.propTypes={allowedTypes:o().arrayOf(o().string),className:o().string,icon:o().string,imageSize:o().string,displayControlsInToolbar:o().bool,onReset:o().func.isRequired,onUpdate:o().func.isRequired,onUpdateURL:o().func,preview:o().element,value:o().number.isRequired,valueURL:o().string};const m=h},4808:(e,t,n)=>{"use strict";n.d(t,{default:()=>F});var r=n(7e3),s=n(1280),o=n(3376),i=n(7287),a=n(3396),l=n(7204),c=n(2e3),u=n(2108),d=n.n(u),p=n(7020),f=n.n(p),h=n(7240),m=n.n(h),g=n(9516),y=n.n(g),v=n(2940),b=n.n(v),A=n(9296),_=n.n(A),C=n(9680),w={};w.styleTagTransform=_(),w.setAttributes=y(),w.insert=m().bind(null,"head"),w.domAPI=f(),w.insertStyleElement=b(),d()(C.c,w),C.c&&C.c.locals&&C.c.locals;var x=n(4632),S=n.n(x),k=n(6484),E=n.n(k),R=n(7424),T={};T.styleTagTransform=_(),T.setAttributes=y(),T.insert=m().bind(null,"head"),T.domAPI=f(),T.insertStyleElement=b(),d()(R.c,T),R.c&&R.c.locals&&R.c.locals;const I=window.wp.htmlEntities;var N=n(9160);const P=o.cp.div`
+ align-items: center;
+ gap: 4px;
+ overflow-wrap: anywhere;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ padding: 0.5rem 0.75rem;
+`,O=({title:e,postType:t,attachmentID:n})=>{const s=(0,c.useMedia)(n),o=s?.media_details?.sizes?.thumbnail?.source_url,i=s?.alt_text??"";return(0,r.jsxs)(P,{children:[o?(0,r.jsx)("img",{style:{maxWidth:"100%",height:"auto"},loading:"lazy",src:o,alt:i}):null,(0,r.jsx)(N.default,{html:(0,I.decodeEntities)(e),className:"post-picker-result-title",tag:"strong"}),(0,a.sprintf)(" (%s)",t)]})},L=({baseUrl:e,searchRender:t,selected:n,setSelected:o,suppressPostIds:c=[]})=>{const[u,d]=(0,s.useState)(!1),[p,f]=(0,s.useState)([]),[h,m]=(0,s.useState)(!1),[g,y]=(0,s.useState)(0),[v,b]=(0,s.useState)({searchValue:"",page:1}),A=(0,s.useCallback)((async(t,n=!1)=>{if(t.searchValue&&t.searchValue.length<=2)return;const r=function(){let n=(0,l.addQueryArgs)(e,{page:t.page,_embed:1,exclude:c.join(",")});return t.searchValue&&t.searchValue.length>2&&(n=(0,l.addQueryArgs)(n,{search:t.searchValue})),n}();d(!0);const s=await S()({path:r,parse:!1});y(parseInt(s.headers.get("X-WP-TotalPages"),10));const o=await s.json();let i=o;t.page>1&&(i=[...p,...o]),n||(f(i),d(!1))}),[p,e,c]);return(0,s.useEffect)((()=>{let e=!1;return h||(m(!0),A(v,e)),()=>{e=!0}}),[A,h,v]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.TextControl,{value:v.searchValue,placeholder:(0,a.__)("Search...","alley-scripts"),label:(0,a.__)("Search","alley-scripts"),onChange:e=>{const t={...v,searchValue:e,page:1};b(t),A(t)}}),(0,r.jsxs)("div",{className:"alley-scripts-post-picker__post-list",children:[p?p.map((e=>(0,r.jsx)(i.Button,{className:E()({"alley-scripts-post-picker__post":!0,"is-selected":e.id===n}),onClick:()=>o(e.id),children:t?t(e):(0,r.jsx)(O,{title:e.title,postType:e.subtype,attachmentID:e?._embedded?.self[0]?.featured_media})},e.id))):null,u?(0,r.jsx)(i.Spinner,{}):null,g>0&&v.page{const e={...v,page:v.page+1};b(e),A(e)},children:(0,a.__)("Load More","alley-scripts")})}):null]})]})},j=({baseUrl:e,closeModal:t,modalTitle:n,onUpdate:o,searchRender:l,suppressPostIds:c=[]})=>{const[u,d]=(0,s.useState)();return(0,r.jsxs)(i.Modal,{className:"alley-scripts-post-picker__modal",isDismissible:!0,title:n,onRequestClose:t,closeButtonLabel:"Close",children:[(0,r.jsx)(L,{baseUrl:e,selected:u??0,setSelected:d,searchRender:l,suppressPostIds:c}),(0,r.jsxs)("div",{className:"alley-scripts-post-picker__buttons",children:[(0,r.jsx)(i.Button,{variant:"secondary",onClick:t,children:(0,a.__)("Cancel","alley-scripts")}),(0,r.jsx)(i.Button,{variant:"primary",onClick:()=>{u&&(o(u),t())},disabled:!u,children:(0,a.__)("Select","alley-scripts")})]})]})};var D=n(3800),U={};U.styleTagTransform=_(),U.setAttributes=y(),U.insert=m().bind(null,"head"),U.domAPI=f(),U.insertStyleElement=b(),d()(D.c,U),D.c&&D.c.locals&&D.c.locals;const M=o.cp.div`
+ display: block;
+ position: relative;
+`,B=o.cp.div`
+ border: 1px solid #eee;
+ display: flex;
+ flex-direction: column;
+ margin: 5px 0;
+ padding: 0.5rem 0.75rem;
+ text-align: center;
+`,F=({allowedTypes:e,className:t,getPostType:n,modalTitle:o=(0,a.__)("Select Post","alley-scripts"),onReset:u,onUpdate:d,params:p={},previewLookup:f,previewRender:h,replaceText:m=(0,a.__)("Replace","alley-scripts"),resetText:g=(0,a.__)("Reset","alley-scripts"),searchEndpoint:y="/wp/v2/search",searchRender:v,selectText:b=(0,a.__)("Select","alley-scripts"),suppressPostIds:A=[],title:_="",value:C=0})=>{const[w,x]=(0,s.useState)(!1),S=(0,l.addQueryArgs)(y,{type:"post",subtype:e??"any",...p}),k=f?f(C):(0,c.usePostById)(C,n),{featured_media:E,title:{rendered:R=""}={},type:T=""}=k||{},I=()=>{x(!0)},N=()=>(0,r.jsxs)(i.ButtonGroup,{children:[(0,r.jsx)(i.Button,{variant:"secondary",onClick:u,style:{margin:"0 4px"},children:g}),(0,r.jsx)(i.Button,{variant:"secondary",onClick:I,style:{margin:"0 4px"},children:m})]});return 0!==C&&null===k?(0,r.jsx)(i.Spinner,{}):(0,r.jsxs)(M,{className:t,children:[_?(0,r.jsx)("h4",{children:_}):null,0!==C&&void 0===k?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Notice,{status:"error",isDismissible:!1,className:"post-picker-notice",children:(0,r.jsx)("p",{children:(0,a.sprintf)((0,a.__)("Post %d is no longer available; it has been unpublished or deleted","alley-scripts"),C)})}),N()]}):null,0!==C&&void 0!==k?(0,r.jsxs)(r.Fragment,{children:[void 0!==h?h(k):(0,r.jsx)(B,{children:(0,r.jsx)(O,{title:R,postType:T,attachmentID:E})}),N()]}):null,0===C?(0,r.jsx)(i.Button,{onClick:I,variant:"secondary",children:b}):null,w?(0,r.jsx)(j,{closeModal:()=>{x(!1)},baseUrl:S,modalTitle:o,onUpdate:d,searchRender:v,suppressPostIds:A}):null]})}},8800:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(7e3),s=n(900),o=n.n(s),i=n(3396),a=n(7720);const l=({className:e,emptyLabel:t,label:n,maxPages:s,multiple:o,onSelect:i,placeholder:l,subTypes:c,selected:u,threshold:d})=>(0,r.jsx)(a.Selector,{type:"post",className:e,emptyLabel:t,label:n,maxPages:s,multiple:o,onSelect:i,placeholder:l,subTypes:c,selected:u,threshold:d});l.defaultProps={className:"",emptyLabel:(0,i.__)("No posts found","alley-scripts"),label:(0,i.__)("Search for posts","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,i.__)("Search for posts","alley-scripts"),subTypes:[],selected:[],threshold:3},l.propTypes={className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const c=l},9160:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(7e3),s=n(6595),o=n.n(s),i=n(900),a=n.n(i);const l=({className:e,html:t,tag:n})=>(0,r.jsx)(n,{className:e,dangerouslySetInnerHTML:{__html:o().sanitize(t)}});l.defaultProps={className:""},l.propTypes={className:a().string,html:a().string.isRequired,tag:a().string.isRequired};const c=l},9064:(e,t,n)=>{"use strict";n.d(t,{default:()=>M});var r=n(7e3),s=n(900),o=n.n(s),i=n(1280),a=n(4632),l=n.n(a),c=n(6484),u=n.n(c),d=n(7287),p=n(3396),f=n(7204);const h={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let m;const g=new Uint8Array(16);function y(){if(!m&&(m="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!m))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return m(g)}const v=[];for(let e=0;e<256;++e)v.push((e+256).toString(16).slice(1));const b=function(e,t,n){if(h.randomUUID&&!t&&!e)return h.randomUUID();const r=(e=e||{}).random||(e.rng||y)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]}(r)};var A=n(2e3);const _=({emptyLabel:e,error:t,id:n,isOpen:s,labelledbyId:o,loading:i,onSelect:a,options:l,selectedItems:c,threshold:f,value:h})=>{if(!i&&(""===h||f>h.length))return null;let m="",g="";return i?(m="loading",g=(0,p.__)("Loading...","alley-scripts")):t?(m="error",g=t):i||0!==l.length||(m="no-posts",g=e),i||!i&&(h&&0===l.length||t)?(0,r.jsx)("div",{"aria-busy":!0,className:u()("autocomplete__dropdown",{"autocomplete__dropdown--is-open":s}),children:(0,r.jsx)("div",{className:u()("autocomplete__dropdown--notice",`autocomplete__${m}`),children:g})}):(0,r.jsx)("div",{className:u()("autocomplete__dropdown",{"autocomplete__dropdown--is-open":s}),children:(0,r.jsx)("ul",{role:"listbox","aria-labelledby":o,id:n,className:u()("autocomplete__dropdown--results","autocomplete__list"),children:l.map((e=>(0,r.jsx)("li",{className:"autocomplete__list--item",children:(0,r.jsx)(d.Button,{onClick:()=>a(e),type:"button",disabled:c.some((t=>t.id===e.id)),isTertiary:!0,children:e.title})},e.id)))})})};_.propTypes={emptyLabel:o().string.isRequired,error:o().string.isRequired,id:o().string.isRequired,isOpen:o().bool.isRequired,labelledbyId:o().string.isRequired,loading:o().bool.isRequired,options:o().arrayOf(o().shape({label:o().string,value:o().string})).isRequired,onSelect:o().func.isRequired,selectedItems:o().shape([]).isRequired,threshold:o().number.isRequired,value:o().string.isRequired};const C=_;var w=n(2108),x=n.n(w),S=n(7020),k=n.n(S),E=n(7240),R=n.n(E),T=n(9516),I=n.n(T),N=n(2940),P=n.n(N),O=n(9296),L=n.n(O),j=n(5500),D={};D.styleTagTransform=L(),D.setAttributes=I(),D.insert=R().bind(null,"head"),D.domAPI=k(),D.insertStyleElement=P(),x()(j.c,D),j.c&&j.c.locals&&j.c.locals;const U=({type:e,className:t,emptyLabel:n,label:s,maxPages:o,multiple:a,onSelect:c,placeholder:p,subTypes:h,selected:m,threshold:g})=>{const y=b(),[v,_]=(0,i.useState)(""),[w,x]=(0,i.useState)([]),[S,k]=(0,i.useState)(!1),[E,R]=(0,i.useState)(!1),[T,I]=(0,i.useState)(""),[N,P]=(0,i.useState)([]),O=(0,i.useRef)(),L=(0,A.useDebounce)(T,750),j=(0,i.useCallback)((async(t=1)=>{if(L.length0?h.join(","):"any",type:e});await l()({path:r,parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"),10);return n=t>o?o:t,e.json()})).then((e=>{x((t=>[...t,...e])),R(!1),(n&&n>t||t>=1&&a&&N.length>0)&&j(t+1)})).catch((e=>_(e.message)))}),[L,e,o,a,h,N.length,g]);(0,i.useEffect)((()=>{P(m)}),[m]),(0,i.useEffect)((()=>{L&&g<=L.length?j():x([])}),[L,j,g]);const D=e=>{k(O.current.contains(e.target))},U=e=>{"Escape"===e.key&&k(!1)};(0,i.useEffect)((()=>(document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)))),(0,i.useEffect)((()=>(O&&document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D))));const M=e=>{let t=[];if(N.some((t=>t.id===e.id))){const n=N.findIndex((t=>t.id===e.id));t=[...N.slice(0,n),...N.slice(n+1,N.length)]}else a?t=[...N,e]:(t=[e],k(!1));P(t),c(t)};return(0,r.jsx)("form",{className:"autocomplete__component",onSubmit:e=>e.preventDefault(),children:(0,r.jsxs)("div",{className:u()("components-base-control","autocomplete-base-control",t),ref:O,children:[(0,r.jsxs)("div",{"aria-expanded":S,"aria-haspopup":"listbox","aria-owns":`listbox-${y}`,className:u()("components-base-control__field","autocomplete-base-control__field"),role:"combobox",children:[(0,r.jsx)("label",{className:u()("components-base-control__label","autocomplete-base-control__label"),htmlFor:`autocomplete-${y}`,children:(0,r.jsx)("div",{children:s})}),N.length>0?(0,r.jsx)("ul",{role:"listbox","aria-labelledby":`autocomplete-${y}`,id:`selected-items-${y}`,className:u()("autocomplete__selection--results","autocomplete__selection-list"),children:N.map((e=>(0,r.jsx)("li",{className:"autocomplete__selection-list--item",children:(0,r.jsx)(d.Button,{className:"autocomplete__selection-list--item--button",isSecondary:!0,isSmall:!0,onClick:()=>M(e),type:"button",children:e.title})},e.title)))}):null,(0,r.jsx)("input",{"aria-autocomplete":"list",autoComplete:"off",className:u()("components-text-control__input","autocomplete-text-control__input",{"autocomplete-text-control__input--working":S}),id:`autocomplete-${y}`,onChange:e=>I(e.target.value),onFocus:()=>k(!0),placeholder:p,type:"text",value:T})]}),(0,r.jsx)(C,{emptyLabel:n,error:v,labelledById:`autocomplete-${y}`,id:`listbox-${y}`,isOpen:S,loading:E&&L,onSelect:M,options:w,selectedItems:N,threshold:g,value:L})]})})};U.defaultProps={type:"post",className:"",emptyLabel:(0,p.__)("No items found","alley-scripts"),label:(0,p.__)("Search for items","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,p.__)("Search for items","alley-scripts"),subTypes:[],selected:[],threshold:3},U.propTypes={type:o().string,className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const M=U},1917:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(7e3),s=n(7287),o=n(3396);function i({children:e,index:t,list:n,setList:i}){return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(s.Button,{disabled:0===t,icon:"arrow-up-alt2",label:(0,o.__)("Move up","alley-scripts"),onClick:()=>{const e=[...n];e.splice(t-1,0,e.splice(t,1)[0]),i(e)}}),(0,r.jsx)(s.Button,{disabled:t===n.length-1,icon:"arrow-down-alt2",label:(0,o.__)("Move down","alley-scripts"),onClick:()=>{const e=[...n];e.splice(t+1,0,e.splice(t,1)[0]),i(e)}}),(0,r.jsx)(s.Button,{icon:"trash",label:(0,o.__)("Remove","alley-scripts"),onClick:()=>{const e=[...n];e.splice(t,1),i(e)}})]}),(0,r.jsx)("div",{children:e})]})}},8504:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(7e3),s=n(7287),o=n(3396);function i({children:e,emptyItem:t,list:n,setList:i}){return(0,r.jsxs)(r.Fragment,{children:[e,(0,r.jsx)("div",{style:{margin:"1em 0"},children:(0,r.jsx)(s.Button,{icon:"plus",onClick:()=>i([...n,t]),variant:"primary",children:(0,o.__)("Add Item","alley-scripts")})})]})}},668:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(7e3),s=n(900),o=n.n(s),i=n(3396),a=n(7720);const l=({className:e,emptyLabel:t,label:n,maxPages:s,multiple:o,onSelect:i,placeholder:l,subTypes:c,selected:u,threshold:d})=>(0,r.jsx)(a.Selector,{type:"term",className:e,emptyLabel:t,label:n,maxPages:s,multiple:o,onSelect:i,placeholder:l,subTypes:c,selected:u,threshold:d});l.defaultProps={className:"",emptyLabel:(0,i.__)("No terms found","alley-scripts"),label:(0,i.__)("Search for terms","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,i.__)("Search for terms","alley-scripts"),subTypes:[],selected:[],threshold:3},l.propTypes={className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const c=l},5316:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var r=n(7e3),s=n(900),o=n.n(s),i=n(3376),a=n(7720);const l=i.cp.div`
+ height: auto;
+ width: 100%;
+`,c=({src:e})=>(0,r.jsx)(l,{children:(0,r.jsx)("video",{className:"edit-video-preview",controls:!0,src:e})});c.propTypes={src:o().string.isRequired};const u=({className:e,onReset:t,onUpdate:n,onUpdateURL:s,value:o,valueURL:i})=>(0,r.jsx)(a.MediaPicker,{allowedTypes:["video"],className:e,icon:"format-video",onReset:t,onUpdate:n,onUpdateURL:s,preview:c,value:o,valueURL:i});u.defaultProps={className:"",onUpdateURL:null,valueURL:""},u.propTypes={className:o().string,onReset:o().func.isRequired,onUpdate:o().func.isRequired,onUpdateURL:o().func,value:o().number.isRequired,valueURL:o().string};const d=u},2e3:(e,t,n)=>{"use strict";n.d(t,{useCurrentPostId:()=>r.default,useCurrentTheme:()=>s.default,useDebounce:()=>o.default,useHasInnerBlocks:()=>i.default,useInnerBlocks:()=>a.default,useInnerBlocksAttributes:()=>l.default,useInnerBlocksCount:()=>c.default,useInnerBlocksIndex:()=>u.default,useMedia:()=>d.default,useOption:()=>p.default,useParentBlock:()=>f.default,useParentBlockAttributes:()=>h.default,usePost:()=>m.default,usePostById:()=>g.default,usePostMeta:()=>y.default,usePostMetaValue:()=>v.default,usePosts:()=>b.default,usePreviewLink:()=>A.default,useTerm:()=>_.default,useTerms:()=>C.default});var r=n(9695),s=n(5904),o=n(7112),i=n(6980),a=n(864),l=n(8512),c=n(1344),u=n(6644),d=n(592),p=n(7188),f=n(224),h=n(8004),m=n(1744),g=n(9480),y=n(6504),v=n(3772),b=n(4704),A=n(7532),_=n(7712),C=n(1848)},9695:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(7752);const s=()=>(0,r.useSelect)((e=>{const t=e("core/editor");return t?t.getCurrentPostId():null}),[])},5904:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=()=>(0,s.useSelect)((e=>{const t=e(r.store);return t?t.getCurrentTheme()?.stylesheet:null}),[])},7112:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(1280);const s=(e,t)=>{const[n,s]=(0,r.useState)(e);return(0,r.useEffect)((()=>{const n=setTimeout((()=>{s(e)}),t);return()=>{clearTimeout(n)}}),[e,t]),n}},6980:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=e=>(0,r.useInnerBlocksCount)(e)>0},6644:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=e=>{const t=(0,r.useParentBlock)(e),n=(0,r.useInnerBlocks)(t);return n?n.findIndex((t=>t.clientId===e)):-1}},8512:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=e=>(0,r.useInnerBlocks)(e).map((e=>e.attributes))},1344:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=e=>(0,r.useInnerBlocks)(e).length},864:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9528),s=n(7752);const o=e=>(0,s.useSelect)((t=>t(r.store).getBlocks(e)),[e])},592:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=e=>(0,s.useSelect)((t=>t(r.store).getMedia(e)),[e])},7188:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(7752);const s=function(e){const t=(0,r.useSelect)((t=>{const{getEditedEntityRecord:n,getEntityRecordEdits:r,isSavingEntityRecord:s}=t("core"),o=n("root","site"),i=r("root","site");return{value:o?.[e],isEdited:!!i?.[e],isSaving:s("root","site")}}),[]),{editEntityRecord:n,saveEntityRecord:s}=(0,r.useDispatch)("core");return{...t,onChange:function(t){n("root","site",void 0,{[e]:t})},onSave:async function(){await s("root","site",{[e]:t.value})}}}},8004:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9528),s=n(7752);const o=e=>(0,s.useSelect)((t=>{const{getBlockAttributes:n,getBlockRootClientId:s}=t(r.store),o=s(e);return o?n(o):null}),[e])},224:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9528),s=n(7752);const o=e=>(0,s.useSelect)((t=>{const{getBlock:n,getBlockRootClientId:s}=t(r.store),o=s(e);return o?n(o):null}),[e])},9480:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(1280),s=n(4632),o=n.n(s),i=n(7204),a=n(1744);const l=(e,t=null,n={context:"view"})=>{const[s,l]=(0,r.useState)({}),[c,u]=(0,r.useState)(!0);(0,r.useEffect)((()=>{u(!0),e&&!s[e]?(async()=>{if(t){const n=await t(e);n?l((t=>({...t,[e]:n}))):console.error(`Custom function to get post with ID ${e} failed.`)}else{const t=(0,i.addQueryArgs)("/wp/v2/search",{include:e}),n=await o()({path:t});n.length>0&&l((t=>({...t,[e]:n[0]?.subtype})))}u(!1)})():e&&s[e]&&u(!1)}),[e]);const d=(0,a.default)(e,s[e]??"",n);return c||!d&&s[e]?null:d}},3772:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=(e,t=null,n=null)=>{const[s,o]=(0,r.usePostMeta)(t,n);return[s[e],t=>o({...s,[e]:t})]}},6504:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e=null,t=null)=>{const n=(0,s.useSelect)((t=>e||t("core/editor").getCurrentPostType()),[]),[o,i]=(0,r.useEntityProp)("postType",n,"meta",t),a="function"==typeof i?i:()=>console.error(`Error attempting to set post meta for post type ${n}. Does it have support for custom-fields?`);return["object"==typeof o?o:{},e=>a({...e})]}},1744:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e,t="post",n={context:"view"})=>(0,s.useSelect)((s=>s(r.store).getEntityRecord("postType",t,e,n)),[e,t])},4704:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e,t="post")=>(0,s.useSelect)((n=>{const{getEntityRecords:s}=n(r.store);return s("postType",t,{include:e})}),[e,t])},7532:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=()=>(0,s.useSelect)((e=>e(r.store).getEditedPostPreviewLink()),[])},7712:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e,t="category",n={context:"view"})=>(0,s.useSelect)((s=>s(r.store).getEntityRecord("taxonomy",t,e,n)),[e,t])},1848:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e=null,t=null,n="categories")=>{const o=(0,s.useSelect)((t=>e||t("core/editor").getCurrentPostType()),[]),[i,a]=(0,r.useEntityProp)("postType",o,n,t);return[i,e=>a(e)]}},5328:(e,t,n)=>{"use strict";n.d(t,{getMediaUrl:()=>i.c,parseCSVFile:()=>o});var r=n(2232),s=n.n(r);const o=e=>new Promise(((t,n)=>{s().parse(e,{complete:e=>t(e.data),dynamicTyping:!0,error:e=>n(e),header:!0,skipEmptyLines:!0})}));var i=n(6199)},6199:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=(e,t="full")=>{const{media_details:{sizes:{[t]:{source_url:n=""}={},full:{source_url:r=""}={}}={}}={},sizes:{[t]:{url:s=""}={},full:{url:o=""}={}}={},source_url:i="",url:a=""}=e;return s||n||o||r||a||i||""}},1280:e=>{"use strict";e.exports=window.React},4632:e=>{"use strict";e.exports=window.wp.apiFetch},9528:e=>{"use strict";e.exports=window.wp.blockEditor},7287:e=>{"use strict";e.exports=window.wp.components},3048:e=>{"use strict";e.exports=window.wp.coreData},7752:e=>{"use strict";e.exports=window.wp.data},3396:e=>{"use strict";e.exports=window.wp.i18n},7204:e=>{"use strict";e.exports=window.wp.url}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var o=t[r]={id:r,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{AudioPicker:()=>e.AudioPicker,CSVUploader:()=>e.CSVUploader,Checkboxes:()=>e.Checkboxes,ImagePicker:()=>e.ImagePicker,MediaPicker:()=>e.MediaPicker,PostPicker:()=>e.PostPicker,PostSelector:()=>e.PostSelector,SafeHtml:()=>e.SafeHtml,Selector:()=>e.Selector,Sortable:()=>e.Sortable,SortableItem:()=>e.SortableItem,TermSelector:()=>e.TermSelector,VideoPicker:()=>e.VideoPicker,getMediaUrl:()=>s.getMediaUrl,parseCSVFile:()=>s.parseCSVFile,useCurrentPostId:()=>t.useCurrentPostId,useCurrentTheme:()=>t.useCurrentTheme,useDebounce:()=>t.useDebounce,useHasInnerBlocks:()=>t.useHasInnerBlocks,useInnerBlocks:()=>t.useInnerBlocks,useInnerBlocksAttributes:()=>t.useInnerBlocksAttributes,useInnerBlocksCount:()=>t.useInnerBlocksCount,useInnerBlocksIndex:()=>t.useInnerBlocksIndex,useMedia:()=>t.useMedia,useOption:()=>t.useOption,useParentBlock:()=>t.useParentBlock,useParentBlockAttributes:()=>t.useParentBlockAttributes,usePost:()=>t.usePost,usePostById:()=>t.usePostById,usePostMeta:()=>t.usePostMeta,usePostMetaValue:()=>t.usePostMetaValue,usePosts:()=>t.usePosts,usePreviewLink:()=>t.usePreviewLink,useTerm:()=>t.useTerm,useTerms:()=>t.useTerms});var e=n(7720),t=n(2e3),s=n(5328)})(),r})(),e.exports=t()},812:function(e,t,n){"use strict";var r=window.wp.blocks,s=window.React,o=n(265),i=window.wp.i18n,a=window.wp.blockEditor,l=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"wp-newsletter-builder/post-title","version":"0.1.0","title":"Newsletter Post Title","category":"design","icon":"admin-post","description":"Displays a post title","textdomain":"wp-newsletter-builder","editorScript":"file:index.ts","style":["file:style-index.css"],"render":"file:render.php","attributes":{"overrideTitle":{"type":"string","default":""},"smallerFont":{"type":"boolean","default":false}},"usesContext":["postId"]}');(0,r.registerBlockType)(l,{edit:function(e){var t;let{attributes:{overrideTitle:n,smallerFont:r},context:{postId:l},setAttributes:c}=e;const u=null!==(t=(0,o.usePostById)(l))&&void 0!==t?t:null;let d=u?u.title.rendered:(0,i.__)("Post Title","wp-newsletter-builder");d=n||d;const p=r?"post__title--small":"";return(0,s.createElement)("h2",{...(0,a.useBlockProps)({className:p})},(0,s.createElement)(a.RichText,{value:d,tagName:"span",onChange:e=>c({overrideTitle:e})}))}})}},n={};function r(e){var s=n[e];if(void 0!==s)return s.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.m=t,e=[],r.O=function(t,n,s,o){if(!n){var i=1/0;for(u=0;u=o)&&Object.keys(r.O).every((function(e){return r.O[e](n[l])}))?n.splice(l--,1):(a=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,s,o]},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={969:0,621:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var s,o,i=n[0],a=n[1],l=n[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(s in a)r.o(a,s)&&(r.m[s]=a[s]);if(l)var u=l(r)}for(t&&t(n);c.
+ * @param WP_Block $block The instance of the WP_Block class that represents the block being rendered.
+ *
+ * @package wp-newsletter-builder
+ */
+
+$wp_newsletter_builder_block_post = $block->context['postId'] ?? null;
+
+$wp_newsletter_builder_block_post = get_post( $wp_newsletter_builder_block_post );
+if ( empty( $wp_newsletter_builder_block_post ) ) {
+ return;
+}
+$wp_newsletter_builder_post_title = ! empty( $attributes['overrideTitle'] ) ? $attributes['overrideTitle'] : $wp_newsletter_builder_block_post->post_title;
+
+$wp_newsletter_builder_smaller_font = $attributes['smallerFont'] ?? false;
+$wp_newsletter_builder_title_class = $wp_newsletter_builder_smaller_font ? 'post__title--small' : '';
+
+$wp_newsletter_builder_post_permalink = (string) get_the_permalink();
+?>
+ 'post__title-link' ] ) ); ?> href="">
+
+
+ .
+
+
+
+
diff --git a/build/post-title/style-index-rtl.css b/build/post-title/style-index-rtl.css
new file mode 100644
index 00000000..1575d7ad
--- /dev/null
+++ b/build/post-title/style-index-rtl.css
@@ -0,0 +1 @@
+a.post__title-link{color:#000;display:block;margin:20px auto;text-decoration:none}a.post__title-link h2{margin-bottom:0;text-align:center}a.post__title-link h2.post__title--small{font-size:18px}
diff --git a/build/post-title/style-index.css b/build/post-title/style-index.css
new file mode 100644
index 00000000..1575d7ad
--- /dev/null
+++ b/build/post-title/style-index.css
@@ -0,0 +1 @@
+a.post__title-link{color:#000;display:block;margin:20px auto;text-decoration:none}a.post__title-link h2{margin-bottom:0;text-align:center}a.post__title-link h2.post__title--small{font-size:18px}
diff --git a/build/post/block.json b/build/post/block.json
new file mode 100644
index 00000000..aa7ae4e6
--- /dev/null
+++ b/build/post/block.json
@@ -0,0 +1,37 @@
+{
+ "$schema": "https://schemas.wp.org/trunk/block.json",
+ "apiVersion": 2,
+ "name": "wp-newsletter-builder/post",
+ "version": "0.1.0",
+ "title": "Newsletter Single Post",
+ "category": "design",
+ "icon": "admin-post",
+ "description": "Displays a post",
+ "textdomain": "wp-newsletter-builder",
+ "editorScript": "file:index.js",
+ "editorStyle": "file:index.css",
+ "style": [
+ "file:style-index.css"
+ ],
+ "render": "file:render.php",
+ "attributes": {
+ "postId": {
+ "type": "number",
+ "default": 0
+ },
+ "postType": {
+ "type": "string",
+ "default": "post"
+ },
+ "overrideUrl": {
+ "type": "string",
+ "default": ""
+ }
+ },
+ "providesContext": {
+ "postId": "postId",
+ "postType": "postType",
+ "queryId": "0",
+ "overrideUrl": "overrideUrl"
+ }
+}
\ No newline at end of file
diff --git a/build/post/index-rtl.css b/build/post/index-rtl.css
new file mode 100644
index 00000000..2fafa0be
--- /dev/null
+++ b/build/post/index-rtl.css
@@ -0,0 +1 @@
+.wp-block-wp-newsletter-builder-post{font-family:var(--template-font-family);margin:0 auto}.wp-block-wp-newsletter-builder-post .newsletter-remove-post{border-radius:50%;display:flex;height:36px;margin:0;place-content:center;position:absolute;left:3px;top:3px;width:36px;z-index:1}.wp-block-wp-newsletter-builder-post.edit-nb_template{border:1px dashed #ddd;padding:.5rem}.wp-block-wp-newsletter-builder-post.edit-nb_template .block-list-appender{display:block;position:relative}.image-container{line-height:0}.newsletter-read-more{margin-bottom:30px}
diff --git a/build/post/index.asset.php b/build/post/index.asset.php
new file mode 100644
index 00000000..ddc97010
--- /dev/null
+++ b/build/post/index.asset.php
@@ -0,0 +1 @@
+ array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n'), 'version' => '2795ca5ca766023f6a72');
diff --git a/build/post/index.css b/build/post/index.css
new file mode 100644
index 00000000..8466da6b
--- /dev/null
+++ b/build/post/index.css
@@ -0,0 +1 @@
+.wp-block-wp-newsletter-builder-post{font-family:var(--template-font-family);margin:0 auto}.wp-block-wp-newsletter-builder-post .newsletter-remove-post{border-radius:50%;display:flex;height:36px;margin:0;place-content:center;position:absolute;right:3px;top:3px;width:36px;z-index:1}.wp-block-wp-newsletter-builder-post.edit-nb_template{border:1px dashed #ddd;padding:.5rem}.wp-block-wp-newsletter-builder-post.edit-nb_template .block-list-appender{display:block;position:relative}.image-container{line-height:0}.newsletter-read-more{margin-bottom:30px}
diff --git a/build/post/index.js b/build/post/index.js
new file mode 100644
index 00000000..cff58cdd
--- /dev/null
+++ b/build/post/index.js
@@ -0,0 +1,42 @@
+!function(){var e,t={265:function(e){var t;self,t=()=>(()=>{var e={6484:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function s(){for(var e=[],t=0;t{"use strict";n.d(t,{c:()=>a});var r=n(2876),s=n.n(r),o=n(1849),i=n.n(o)()(s());i.push([e.id,".alley-scripts-post-picker__post-list{display:flex;flex-wrap:wrap;float:left;height:calc(70vh - 200px);justify-content:flex-start;overflow-y:auto;padding:8px;width:100%}.alley-scripts-post-picker__post{border:1px solid #eee;height:auto;justify-content:center;margin:0 8px 8px 0;transition:background-color .2s ease-in-out;width:calc((100% - 40px)/3)}@media(min-width: 780px){.alley-scripts-post-picker__post{width:calc((100% - 40px)/5)}}.alley-scripts-post-picker__post:hover{background-color:#f5f5f5}.alley-scripts-post-picker__post.is-selected{background-color:#f5f5f5}.alley-scripts-post-picker__load-more{clear:both;float:left;text-align:center;width:100%}","",{version:3,sources:["webpack://./src/components/post-picker/post-list.scss"],names:[],mappings:"AAAA,sCACE,YAAA,CACA,cAAA,CACA,UAAA,CACA,yBAAA,CACA,0BAAA,CACA,eAAA,CACA,WAAA,CACA,UAAA,CAGF,iCACE,qBAAA,CACA,WAAA,CACA,sBAAA,CACA,kBAAA,CACA,2CAAA,CACA,2BAAA,CAGA,yBATF,iCAUI,2BAAA,CAAA,CAGF,uCACE,wBAAA,CAGF,6CACE,wBAAA,CAIJ,sCACE,UAAA,CACA,UAAA,CACA,iBAAA,CACA,UAAA",sourcesContent:[".alley-scripts-post-picker__post-list {\n display: flex;\n flex-wrap: wrap;\n float: left;\n height: calc(70vh - 200px);\n justify-content: flex-start;\n overflow-y: auto;\n padding: 8px;\n width: 100%;\n}\n\n.alley-scripts-post-picker__post {\n border: 1px solid #eee;\n height: auto;\n justify-content: center;\n margin: 0 8px 8px 0;\n transition: background-color 0.2s ease-in-out;\n width: calc((100% - 40px) / 3);\n\n\n @media (min-width: 780px) {\n width: calc((100% - 40px) / 5);\n }\n\n &:hover {\n background-color: #f5f5f5;\n }\n\n &.is-selected {\n background-color: #f5f5f5;\n }\n}\n\n.alley-scripts-post-picker__load-more {\n clear: both;\n float: left;\n text-align: center;\n width: 100%;\n}\n"],sourceRoot:""}]);const a=i},9680:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(2876),s=n.n(r),o=n(1849),i=n.n(o)()(s());i.push([e.id,".alley-scripts-post-picker__modal .components-modal__content{width:90vw}.alley-scripts-post-picker__buttons{clear:both;display:block;text-align:right;width:100%}.alley-scripts-post-picker__buttons button{margin:5px}","",{version:3,sources:["webpack://./src/components/post-picker/search-modal.scss"],names:[],mappings:"AACE,6DACE,UAAA,CAIJ,oCACE,UAAA,CACA,aAAA,CACA,gBAAA,CACA,UAAA,CAEA,2CACE,UAAA",sourcesContent:[".alley-scripts-post-picker__modal {\n .components-modal__content {\n width: 90vw;\n }\n}\n\n.alley-scripts-post-picker__buttons {\n clear: both;\n display: block;\n text-align: right;\n width: 100%;\n\n button {\n margin: 5px;\n }\n}\n"],sourceRoot:""}]);const a=i},3800:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(2876),s=n.n(r),o=n(1849),i=n.n(o)()(s());i.push([e.id,".post-picker-notice{margin:0 0 .5rem 0}","",{version:3,sources:["webpack://./src/components/post-picker/style.scss"],names:[],mappings:"AAAA,oBACE,kBAAA",sourcesContent:[".post-picker-notice {\n margin: 0 0 0.5rem 0;\n}\n"],sourceRoot:""}]);const a=i},5500:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(2876),s=n.n(r),o=n(1849),i=n.n(o)()(s());i.push([e.id,'.edit-post-sidebar .autocomplete__component,.editor-styles-wrapper .autocomplete__component{margin-bottom:20px}.edit-post-sidebar .autocomplete-base-control,.editor-styles-wrapper .autocomplete-base-control{position:relative}.edit-post-sidebar .autocomplete-text-control__input,.editor-styles-wrapper .autocomplete-text-control__input{margin:0}.edit-post-sidebar .autocomplete__selection-list,.editor-styles-wrapper .autocomplete__selection-list{list-style-type:none;margin:0 0 6px;padding:0}.edit-post-sidebar .autocomplete__selection-list--item,.editor-styles-wrapper .autocomplete__selection-list--item{display:inline-block;list-style:none}.edit-post-sidebar .autocomplete__selection-list--item--button,.editor-styles-wrapper .autocomplete__selection-list--item--button{margin-bottom:4px;margin-right:3px}.edit-post-sidebar .autocomplete__selection-list--item--button::after,.editor-styles-wrapper .autocomplete__selection-list--item--button::after{content:"×";font-size:16px;line-height:20px;margin-left:5px}.edit-post-sidebar .autocomplete__dropdown,.editor-styles-wrapper .autocomplete__dropdown{background-color:#fff;border-color:rgba(0,0,0,0) #e2e4e7 #e2e4e7;border-radius:0 0 4px 4px;border-style:solid;border-width:0 1px 1px;left:0;max-height:0;overflow-y:hidden;position:absolute;top:calc(100% + 1px);visibility:hidden;width:100%;z-index:10}.edit-post-sidebar .autocomplete__dropdown--is-open,.editor-styles-wrapper .autocomplete__dropdown--is-open{box-shadow:0 3px 30px rgba(25,30,35,.1);max-height:225px;overflow-y:scroll;visibility:visible}.edit-post-sidebar .autocomplete__dropdown--notice,.editor-styles-wrapper .autocomplete__dropdown--notice{padding:15px}.edit-post-sidebar .autocomplete__dropdown--results,.editor-styles-wrapper .autocomplete__dropdown--results{list-style:none;margin:0;padding:0}.edit-post-sidebar .autocomplete__list--item,.editor-styles-wrapper .autocomplete__list--item{list-style:none}.edit-post-sidebar .autocomplete__list--item>button,.editor-styles-wrapper .autocomplete__list--item>button{background:rgba(0,0,0,0);border-color:#e2e4e7;border-style:solid;border-width:0 0 1px;height:100%;line-height:1.25;text-align:left;white-space:inherit;width:100%}.edit-post-sidebar .autocomplete__list--item:last-child>button,.editor-styles-wrapper .autocomplete__list--item:last-child>button{border-bottom:0}',"",{version:3,sources:["webpack://./src/components/selector/styles.scss"],names:[],mappings:"AAAA,4FAgBI,kBACE,CAAA,gGAMF,iBACE,CAAA,8GAMF,QACE,CAAA,sGAMF,oBACE,CAAA,cACA,CAAA,SACA,CAAA,kHAEA,oBACE,CAAA,eACA,CAAA,kIAEA,iBACE,CAAA,gBACA,CAAA,gJAEA,WACE,CAAA,cACA,CAAA,gBACA,CAAA,eACA,CAAA,0FASR,qBACE,CAAA,0CACA,CAAA,yBACA,CAAA,kBACA,CAAA,sBACA,CAAA,MACA,CAAA,YACA,CAAA,iBACA,CAAA,iBACA,CAAA,oBACA,CAAA,iBACA,CAAA,UACA,CAAA,UACA,CAAA,4GAGA,uCACE,CAAA,gBACA,CAAA,iBACA,CAAA,kBACA,CAAA,0GAIF,YACE,CAAA,4GAIF,eACE,CAAA,QACA,CAAA,SACA,CAAA,8FAOJ,eACE,CAAA,4GAEA,wBACE,CAAA,oBACA,CAAA,kBACA,CAAA,oBACA,CAAA,WACA,CAAA,gBACA,CAAA,eACA,CAAA,mBACA,CAAA,UACA,CAAA,kIAGF,eACE",sourcesContent:["//--------------------------------------------------------------\n// AutoComplete Styles\n//--------------------------------------------------------------\n\n/* stylelint-disable max-nesting-depth */\n\n//-----------------------------------------\n// Accommodate editor well, or the sidebar.\n//-----------------------------------------\n.edit-post-sidebar,\n.editor-styles-wrapper {\n .autocomplete {\n\n //-----------------------------------------\n // Parent form wrapper.\n //-----------------------------------------\n &__component {\n margin-bottom: 20px;\n }\n\n //-----------------------------------------\n // Wrapper\n //-----------------------------------------\n &-base-control {\n position: relative;\n }\n\n //-----------------------------------------\n // Input\n //-----------------------------------------\n &-text-control__input {\n margin: 0;\n }\n\n //-----------------------------------------\n // Selected buttons.\n //-----------------------------------------\n &__selection-list {\n list-style-type: none;\n margin: 0 0 6px;\n padding: 0;\n\n &--item {\n display: inline-block;\n list-style: none;\n\n &--button {\n margin-bottom: 4px;\n margin-right: 3px;\n\n &::after {\n content: '×';\n font-size: 16px;\n line-height: 20px;\n margin-left: 5px;\n }\n }\n }\n }\n\n //-----------------------------------------\n // Results\n //-----------------------------------------\n &__dropdown {\n background-color: #fff;\n border-color: transparent #e2e4e7 #e2e4e7;\n border-radius: 0 0 4px 4px;\n border-style: solid;\n border-width: 0 1px 1px;\n left: 0;\n max-height: 0;\n overflow-y: hidden;\n position: absolute;\n top: calc(100% + 1px); // Offset focus border.\n visibility: hidden;\n width: 100%;\n z-index: 10;\n\n // Container is open.\n &--is-open {\n box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1);\n max-height: 225px;\n overflow-y: scroll;\n visibility: visible;\n }\n\n // Notice handler.\n &--notice {\n padding: 15px;\n }\n\n // Results container.\n &--results {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n }\n\n //-----------------------------------------\n // List/Results\n //-----------------------------------------\n &__list--item {\n list-style: none;\n\n > button {\n background: transparent;\n border-color: #e2e4e7;\n border-style: solid;\n border-width: 0 0 1px;\n height: 100%;\n line-height: 1.25;\n text-align: left;\n white-space: inherit;\n width: 100%;\n }\n\n &:last-child > button {\n border-bottom: 0;\n }\n }\n }\n}\n"],sourceRoot:""}]);const a=i},1849:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,s,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var a=0;a0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),s&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=s):u[4]="".concat(s)),t.push(u))}},t}},2876:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(s," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},6595:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:s}=Object;let{freeze:o,seal:i,create:a}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),i||(i=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=w(Array.prototype.forEach),d=w(Array.prototype.pop),p=w(Array.prototype.push),f=w(String.prototype.toLowerCase),h=w(String.prototype.toString),m=w(String.prototype.match),g=w(String.prototype.replace),y=w(String.prototype.indexOf),v=w(String.prototype.trim),b=w(RegExp.prototype.test),A=(_=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),s=1;s2&&void 0!==arguments[2]?arguments[2]:f;t&&t(e,null);let o=r.length;for(;o--;){let t=r[o];if("string"==typeof t){const e=s(t);e!==t&&(n(r)||(r[o]=e),t=e)}e[t]=!0}return e}function x(t){const n=a(null);for(const[r,o]of e(t))void 0!==s(t,r)&&(n[r]=o);return n}function S(e,t){for(;null!==e;){const n=s(e,t);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}e=r(e)}return function(e){return console.warn("fallback value for",e),null}}const k=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),E=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),T=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),P=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),N=o(["#text"]),O=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),L=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),j=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),D=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),U=i(/\{\{[\w\W]*|[\w\W]*\}\}/gm),M=i(/<%[\w\W]*|[\w\W]*%>/gm),B=i(/\${[\w\W]*}/gm),F=i(/^data-[\-\w.\u00B7-\uFFFF]/),z=i(/^aria-[\-\w]+$/),q=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=i(/^(?:\w+script|data):/i),H=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W=i(/^html$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:U,ERB_EXPR:M,TMPLIT_EXPR:B,DATA_ATTR:F,ARIA_ATTR:z,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:H,DOCTYPE_NAME:W});return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const r=e=>t(e);if(r.version="3.0.6",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;let{document:s}=n;const i=s,l=i.currentScript,{DocumentFragment:c,HTMLTemplateElement:_,Node:w,Element:U,NodeFilter:M,NamedNodeMap:B=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:F,DOMParser:z,trustedTypes:$}=n,H=U.prototype,Y=S(H,"cloneNode"),V=S(H,"nextSibling"),K=S(H,"childNodes"),Q=S(H,"parentNode");if("function"==typeof _){const e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}let J,X="";const{implementation:Z,createNodeIterator:ee,createDocumentFragment:te,getElementsByTagName:ne}=s,{importNode:re}=i;let se={};r.isSupported="function"==typeof e&&"function"==typeof Q&&Z&&void 0!==Z.createHTMLDocument;const{MUSTACHE_EXPR:oe,ERB_EXPR:ie,TMPLIT_EXPR:ae,DATA_ATTR:le,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:ue,ATTR_WHITESPACE:de}=G;let{IS_ALLOWED_URI:pe}=G,fe=null;const he=C({},[...k,...E,...R,...I,...N]);let me=null;const ge=C({},[...O,...L,...j,...D]);let ye=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,be=null,Ae=!0,_e=!0,we=!1,Ce=!0,xe=!1,Se=!1,ke=!1,Ee=!1,Re=!1,Te=!1,Ie=!1,Pe=!0,Ne=!1,Oe=!0,Le=!1,je={},De=null;const Ue=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Me=null;const Be=C({},["audio","video","img","source","image","track"]);let Fe=null;const ze=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",He="http://www.w3.org/1999/xhtml";let We=He,Ge=!1,Ye=null;const Ve=C({},[qe,$e,He],h);let Ke=null;const Qe=["application/xhtml+xml","text/html"];let Je=null,Xe=null;const Ze=s.createElement("form"),et=function(e){return e instanceof RegExp||e instanceof Function},tt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Xe||Xe!==e){if(e&&"object"==typeof e||(e={}),e=x(e),Ke=Ke=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Je="application/xhtml+xml"===Ke?h:f,fe="ALLOWED_TAGS"in e?C({},e.ALLOWED_TAGS,Je):he,me="ALLOWED_ATTR"in e?C({},e.ALLOWED_ATTR,Je):ge,Ye="ALLOWED_NAMESPACES"in e?C({},e.ALLOWED_NAMESPACES,h):Ve,Fe="ADD_URI_SAFE_ATTR"in e?C(x(ze),e.ADD_URI_SAFE_ATTR,Je):ze,Me="ADD_DATA_URI_TAGS"in e?C(x(Be),e.ADD_DATA_URI_TAGS,Je):Be,De="FORBID_CONTENTS"in e?C({},e.FORBID_CONTENTS,Je):Ue,ve="FORBID_TAGS"in e?C({},e.FORBID_TAGS,Je):{},be="FORBID_ATTR"in e?C({},e.FORBID_ATTR,Je):{},je="USE_PROFILES"in e&&e.USE_PROFILES,Ae=!1!==e.ALLOW_ARIA_ATTR,_e=!1!==e.ALLOW_DATA_ATTR,we=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,xe=e.SAFE_FOR_TEMPLATES||!1,Se=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,Ee=e.FORCE_BODY||!1,Pe=!1!==e.SANITIZE_DOM,Ne=e.SANITIZE_NAMED_PROPS||!1,Oe=!1!==e.KEEP_CONTENT,Le=e.IN_PLACE||!1,pe=e.ALLOWED_URI_REGEXP||q,We=e.NAMESPACE||He,ye=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ye.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(_e=!1),Te&&(Re=!0),je&&(fe=C({},[...N]),me=[],!0===je.html&&(C(fe,k),C(me,O)),!0===je.svg&&(C(fe,E),C(me,L),C(me,D)),!0===je.svgFilters&&(C(fe,R),C(me,L),C(me,D)),!0===je.mathMl&&(C(fe,I),C(me,j),C(me,D))),e.ADD_TAGS&&(fe===he&&(fe=x(fe)),C(fe,e.ADD_TAGS,Je)),e.ADD_ATTR&&(me===ge&&(me=x(me)),C(me,e.ADD_ATTR,Je)),e.ADD_URI_SAFE_ATTR&&C(Fe,e.ADD_URI_SAFE_ATTR,Je),e.FORBID_CONTENTS&&(De===Ue&&(De=x(De)),C(De,e.FORBID_CONTENTS,Je)),Oe&&(fe["#text"]=!0),Se&&C(fe,["html","head","body"]),fe.table&&(C(fe,["tbody"]),delete ve.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=e.TRUSTED_TYPES_POLICY,X=J.createHTML("")}else void 0===J&&(J=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}($,l)),null!==J&&"string"==typeof X&&(X=J.createHTML(""));o&&o(e),Xe=e}},nt=C({},["mi","mo","mn","ms","mtext"]),rt=C({},["foreignobject","desc","title","annotation-xml"]),st=C({},["title","style","font","a","script"]),ot=C({},E);C(ot,R),C(ot,T);const it=C({},I);C(it,P);const at=function(e){p(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},lt=function(e,t){try{p(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!me[e])if(Re||Te)try{at(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ct=function(e){let t=null,n=null;if(Ee)e=""+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ke&&We===He&&(e=''+e+"");const r=J?J.createHTML(e):e;if(We===He)try{t=(new z).parseFromString(r,Ke)}catch(e){}if(!t||!t.documentElement){t=Z.createDocument(We,"template",null);try{t.documentElement.innerHTML=Ge?X:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(s.createTextNode(n),o.childNodes[0]||null),We===He?ne.call(t,Se?"html":"body")[0]:Se?t.documentElement:o},ut=function(e){return ee.call(e.ownerDocument||e,e,M.SHOW_ELEMENT|M.SHOW_COMMENT|M.SHOW_TEXT,null)},dt=function(e){return"function"==typeof w&&e instanceof w},pt=function(e,t,n){se[e]&&u(se[e],(e=>{e.call(r,t,n,Xe)}))},ft=function(e){let t=null;if(pt("beforeSanitizeElements",e,null),(n=e)instanceof F&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof B)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return at(e),!0;var n;const s=Je(e.nodeName);if(pt("uponSanitizeElement",e,{tagName:s,allowedTags:fe}),e.hasChildNodes()&&!dt(e.firstElementChild)&&b(/<[/\w]/g,e.innerHTML)&&b(/<[/\w]/g,e.textContent))return at(e),!0;if(!fe[s]||ve[s]){if(!ve[s]&&mt(s)){if(ye.tagNameCheck instanceof RegExp&&b(ye.tagNameCheck,s))return!1;if(ye.tagNameCheck instanceof Function&&ye.tagNameCheck(s))return!1}if(Oe&&!De[s]){const t=Q(e)||e.parentNode,n=K(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(Y(n[r],!0),V(e))}return at(e),!0}return e instanceof U&&!function(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:We,tagName:"template"});const n=f(e.tagName),r=f(t.tagName);return!!Ye[e.namespaceURI]&&(e.namespaceURI===$e?t.namespaceURI===He?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===r||nt[r]):Boolean(ot[n]):e.namespaceURI===qe?t.namespaceURI===He?"math"===n:t.namespaceURI===$e?"math"===n&&rt[r]:Boolean(it[n]):e.namespaceURI===He?!(t.namespaceURI===$e&&!rt[r])&&!(t.namespaceURI===qe&&!nt[r])&&!it[n]&&(st[n]||!ot[n]):!("application/xhtml+xml"!==Ke||!Ye[e.namespaceURI]))}(e)?(at(e),!0):"noscript"!==s&&"noembed"!==s&&"noframes"!==s||!b(/<\/no(script|embed|frames)/i,e.innerHTML)?(xe&&3===e.nodeType&&(t=e.textContent,u([oe,ie,ae],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(r.removed,{element:e.cloneNode()}),e.textContent=t)),pt("afterSanitizeElements",e,null),!1):(at(e),!0)},ht=function(e,t,n){if(Pe&&("id"===t||"name"===t)&&(n in s||n in Ze))return!1;if(_e&&!be[t]&&b(le,t));else if(Ae&&b(ce,t));else if(!me[t]||be[t]){if(!(mt(e)&&(ye.tagNameCheck instanceof RegExp&&b(ye.tagNameCheck,e)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(e))&&(ye.attributeNameCheck instanceof RegExp&&b(ye.attributeNameCheck,t)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(t))||"is"===t&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&b(ye.tagNameCheck,n)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(n))))return!1}else if(Fe[t]);else if(b(pe,g(n,de,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Me[e])if(we&&!b(ue,g(n,de,"")));else if(n)return!1;return!0},mt=function(e){return e.indexOf("-")>0},gt=function(e){pt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me};let s=t.length;for(;s--;){const o=t[s],{name:i,namespaceURI:a,value:l}=o,c=Je(i);let p="value"===i?l:v(l);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,pt("uponSanitizeAttribute",e,n),p=n.attrValue,n.forceKeepAttr)continue;if(lt(i,e),!n.keepAttr)continue;if(!Ce&&b(/\/>/i,p)){lt(i,e);continue}xe&&u([oe,ie,ae],(e=>{p=g(p,e," ")}));const f=Je(e.nodeName);if(ht(f,c,p)){if(!Ne||"id"!==c&&"name"!==c||(lt(i,e),p="user-content-"+p),J&&"object"==typeof $&&"function"==typeof $.getAttributeType)if(a);else switch($.getAttributeType(f,c)){case"TrustedHTML":p=J.createHTML(p);break;case"TrustedScriptURL":p=J.createScriptURL(p)}try{a?e.setAttributeNS(a,i,p):e.setAttribute(i,p),d(r.removed)}catch(e){}}}pt("afterSanitizeAttributes",e,null)},yt=function e(t){let n=null;const r=ut(t);for(pt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)pt("uponSanitizeShadowNode",n,null),ft(n)||(n.content instanceof c&&e(n.content),gt(n));pt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,s=null,o=null,a=null;if(Ge=!e,Ge&&(e="\x3c!--\x3e"),"string"!=typeof e&&!dt(e)){if("function"!=typeof e.toString)throw A("toString is not a function");if("string"!=typeof(e=e.toString()))throw A("dirty is not a string, aborting")}if(!r.isSupported)return e;if(ke||tt(t),r.removed=[],"string"==typeof e&&(Le=!1),Le){if(e.nodeName){const t=Je(e.nodeName);if(!fe[t]||ve[t])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof w)n=ct("\x3c!----\x3e"),s=n.ownerDocument.importNode(e,!0),1===s.nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?n=s:n.appendChild(s);else{if(!Re&&!xe&&!Se&&-1===e.indexOf("<"))return J&&Ie?J.createHTML(e):e;if(n=ct(e),!n)return Re?null:Ie?X:""}n&&Ee&&at(n.firstChild);const l=ut(Le?e:n);for(;o=l.nextNode();)ft(o)||(o.content instanceof c&&yt(o.content),gt(o));if(Le)return e;if(Re){if(Te)for(a=te.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(me.shadowroot||me.shadowrootmode)&&(a=re.call(i,a,!0)),a}let d=Se?n.outerHTML:n.innerHTML;return Se&&fe["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&b(W,n.ownerDocument.doctype.name)&&(d="\n"+d),xe&&u([oe,ie,ae],(e=>{d=g(d,e," ")})),J&&Ie?J.createHTML(d):d},r.setConfig=function(){tt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ke=!0},r.clearConfig=function(){Xe=null,ke=!1},r.isValidAttribute=function(e,t,n){Xe||tt({});const r=Je(e),s=Je(t);return ht(r,s,n)},r.addHook=function(e,t){"function"==typeof t&&(se[e]=se[e]||[],p(se[e],t))},r.removeHook=function(e){if(se[e])return d(se[e])},r.removeHooks=function(e){se[e]&&(se[e]=[])},r.removeAllHooks=function(){se={}},r}()}()},2232:function(e,t){var n,r;n=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},n=!t.document&&!!t.postMessage,r=t.IS_PAPA_WORKER||!1,s={},o=0,i={parse:function(n,r){var a=(r=r||{}).dynamicTyping||!1;if(_(a)&&(r.dynamicTypingFunction=a,a={}),r.dynamicTyping=a,r.transform=!!_(r.transform)&&r.transform,r.worker&&i.WORKERS_SUPPORTED){var l=function(){if(!i.WORKERS_SUPPORTED)return!1;var n,r,a=(n=t.URL||t.webkitURL||null,r=e.toString(),i.BLOB_URL||(i.BLOB_URL=n.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",r,")();"],{type:"text/javascript"})))),l=new t.Worker(a);return l.onmessage=g,l.id=o++,s[l.id]=l}();return l.userStep=r.step,l.userChunk=r.chunk,l.userComplete=r.complete,l.userError=r.error,r.step=_(r.step),r.chunk=_(r.chunk),r.complete=_(r.complete),r.error=_(r.error),delete r.worker,void l.postMessage({input:n,config:r,workerId:l.id})}var f=null;return i.NODE_STREAM_INPUT,"string"==typeof n?(n=function(e){return 65279===e.charCodeAt(0)?e.slice(1):e}(n),f=r.download?new c(r):new d(r)):!0===n.readable&&_(n.read)&&_(n.on)?f=new p(r):(t.File&&n instanceof File||n instanceof Object)&&(f=new u(r)),f.stream(n)},unparse:function(e,t){var n=!1,r=!0,s=",",o="\r\n",a='"',l=a+a,c=!1,u=null,d=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||i.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(s=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(c=t.skipEmptyLines),"string"==typeof t.newline&&(o=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+a),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(d=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var p=new RegExp(h(a),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,c);if("object"==typeof e[0])return f(u||Object.keys(e[0]),e,c)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],c);throw new Error("Unable to serialize unrecognized input");function f(e,t,n){var i="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var a=Array.isArray(e)&&0=this._config.preview;if(r)t.postMessage({results:a,workerId:i.WORKER_ID,finished:c});else if(_(this._config.chunk)&&!n){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!c||!_(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),c||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(e){_(this._config.error)?this._config.error(e):r&&this._config.error&&t.postMessage({workerId:i.WORKER_ID,error:e,finished:!1})}}function c(e){var t;(e=e||{}).chunkSize||(e.chunkSize=i.RemoteChunkSize),l.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=A(this._chunkLoaded,this),t.onerror=A(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var r in e)t.setRequestHeader(r,e[r])}if(this._config.chunkSize){var s=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+s)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function u(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=i.LocalChunkSize),l.call(this,e);var r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=A(this._chunkLoaded,this),t.onerror=A(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function p(e){l.call(this,e=e||{});var t=[],n=!0,r=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=A((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=A((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=A((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=A((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function f(e){var t,n,r,s=Math.pow(2,53),o=-s,a=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,c=this,u=0,d=0,p=!1,f=!1,g=[],y={data:[],errors:[],meta:{}};if(_(e.step)){var v=e.step;e.step=function(t){if(y=t,C())w();else{if(w(),0===y.data.length)return;u+=t.data.length,e.preview&&u>e.preview?n.abort():(y.data=y.data[0],v(y,c))}}}function A(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function w(){return y&&r&&(S("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+i.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(y.data=y.data.filter((function(e){return!A(e)}))),C()&&function(){if(y)if(Array.isArray(y.data[0])){for(var t=0;C()&&t=g.length?"__parsed_extra":g[r]),e.transform&&(i=e.transform(i,o)),i=x(o,i),"__parsed_extra"===o?(s[o]=s[o]||[],s[o].push(i)):s[o]=i}return e.header&&(r>g.length?S("FieldMismatch","TooManyFields","Too many fields: expected "+g.length+" fields but parsed "+r,d+n):r=r.length/2?"\r\n":"\r"}(s,l)),r=!1,e.delimiter)_(e.delimiter)&&(e.delimiter=e.delimiter(s),y.meta.delimiter=e.delimiter);else{var c=function(t,n,r,s,o){var a,l,c,u;o=o||[",","\t","|",";",i.RECORD_SEP,i.UNIT_SEP];for(var d=0;d=a)return G(!0)}else for(B=u,u++;;){if(-1===(B=i.indexOf(t,B+1)))return f||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:A.length,index:u}),H();if(B===m-1)return H(i.substring(u,B).replace(M,t));if(t!==c||i[B+1]!==c){if(t===c||0===B||i[B-1]!==c){-1!==D&&D=a)return G(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:A.length,index:u}),B++}}else B++}return H();function q(e){A.push(e),x=u}function $(e){var t=0;if(-1!==e){var n=i.substring(B+1,e);n&&""===n.trim()&&(t=n.length)}return t}function H(e){return f||(void 0===e&&(e=i.substring(u)),C.push(e),u=m,q(C),b&&Y()),G()}function W(e){u=e,q(C),C=[],U=i.indexOf(r,u)}function G(e){return{data:A,errors:w,meta:{delimiter:n,linebreak:r,aborted:d,truncated:!!e,cursor:x+(p||0)}}}function Y(){o(G()),A=[],w=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return u}}function g(e){var t=e.data,n=s[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){r=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(_(n.userStep)){for(var i=0;i{"use strict";var r=n(7200);function s(){}function o(){}o.resetWarningCache=s,e.exports=function(){function e(e,t,n,s,o,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:s};return n.PropTypes=n,n}},900:(e,t,n)=>{e.exports=n(7336)()},7200:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4108:(e,t,n)=>{"use strict";var r=n(1280),s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:s,type:e,key:c,ref:u,props:o,_owner:a.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},7e3:(e,t,n)=>{"use strict";e.exports=n(4108)},3736:e=>{e.exports=function(e,t,n,r){var s=n?n.call(r,e,t):void 0;if(void 0!==s)return!!s;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l{"use strict";var t=[];function n(e){for(var n=-1,r=0;r{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},2940:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},9516:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7020:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var s=void 0!==n.layer;s&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,s&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},9296:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},3376:(e,t,n)=>{"use strict";n.d(t,{cp:()=>Ut});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n2||H(j)>3?"":" "}function Y(e,t){for(;--t&&F()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return $(e,q()+(t<6&&32==z()&&32==F()))}function V(e){for(;F();)switch(j){case e:return L;case 34:case 39:34!==e&&39!==e&&V(j);break;case 40:41===e&&V(e);break;case 92:F()}return L}function K(e,t){for(;F()&&e+j!==57&&(e+j!==84||47!==z()););return"/*"+$(t,L-1)+"*"+b(47===e?e:F())}function Q(e){for(;!H(z());)F();return $(e,L)}function J(e,t){for(var n="",r=0;r6)switch(S(e,t+1)){case 109:if(45!==S(e,t+4))break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1"+d+"$2-$3$1"+u+(108==S(e,t+3)?"$3":"$2-$3"))+e;case 115:return~x(e,"stretch")?Z(C(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return C(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,s,o,i,a){return c+n+":"+r+a+(s?c+n+"-span:"+(o?i:+i-+r)+a:"")+e}));case 4949:if(121===S(e,t+6))return C(e,":",":"+d)+e;break;case 6444:switch(S(e,45===S(e,14)?18:11)){case 120:return C(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+d+(45===S(e,14)?"inline-":"")+"box$3$1"+d+"$2$3$1"+c+"$2box$3")+e;case 100:return C(e,":",":"+c)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return C(e,"scroll-","scroll-snap-")+e}return e}function ee(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case h:return void(e.return=Z(e.value,e.length,n));case g:return J([M(e,{value:C(e.value,"@","@"+d)})],r);case f:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(w(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":B(M(e,{props:[C(t,/:(read-\w+)/,":"+u+"$1")]})),B(M(e,{props:[t]})),A(e,{props:I(n,r)});break;case"::placeholder":B(M(e,{props:[C(t,/:(plac\w+)/,":"+d+"input-$1")]})),B(M(e,{props:[C(t,/:(plac\w+)/,":"+u+"$1")]})),B(M(e,{props:[C(t,/:(plac\w+)/,c+"input-$1")]})),B(M(e,{props:[t]})),A(e,{props:I(n,r)})}return""}))}}function te(e){return function(e){return D="",e}(ne("",null,null,null,[""],e=function(e){return P=N=1,O=E(D=e),L=0,[]}(e),0,[0],e))}function ne(e,t,n,r,s,o,i,a,l){for(var c=0,u=0,d=i,p=0,f=0,h=0,m=1,g=1,y=1,v=0,A="",_=s,w=o,k=r,R=A;g;)switch(h=v,v=F()){case 40:if(108!=h&&58==S(R,d-1)){-1!=x(R+=C(W(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:R+=W(v);break;case 9:case 10:case 13:case 32:R+=G(h);break;case 92:R+=Y(q()-1,7);continue;case 47:switch(z()){case 42:case 47:T(se(K(F(),q()),t,n,l),l);break;default:R+="/"}break;case 123*m:a[c++]=E(R)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(R=C(R,/\f/g,"")),f>0&&E(R)-d&&T(f>32?oe(R+";",r,n,d-1,l):oe(C(R," ","")+";",r,n,d-2,l),l);break;case 59:R+=";";default:if(T(k=re(R,t,n,c,u,s,a,A,_=[],w=[],d,o),o),123===v)if(0===u)ne(R,t,k,k,_,o,d,a,w);else switch(99===p&&110===S(R,3)?100:p){case 100:case 108:case 109:case 115:ne(e,k,k,r&&T(re(e,k,k,0,0,s,a,A,s,_=[],d,w),w),s,w,d,a,r?_:w);break;default:ne(R,k,k,k,[""],w,0,a,w)}}c=u=f=0,m=y=1,A=R="",d=i;break;case 58:d=1+E(R),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==(j=L>0?S(D,--L):0,N--,10===j&&(N=1,P--),j))continue;switch(R+=b(v),v*m){case 38:y=u>0?1:(R+="\f",-1);break;case 44:a[c++]=(E(R)-1)*y,y=1;break;case 64:45===z()&&(R+=W(F())),p=z(),u=d=E(A=R+=Q(q())),v++;break;case 45:45===h&&2==E(R)&&(m=0)}}return o}function re(e,t,n,r,s,o,i,a,l,c,u,d){for(var p=s-1,h=0===s?o:[""],m=R(h),g=0,y=0,b=0;g0?h[A]+" "+w:C(w,/&\f/g,h[A])))&&(l[b++]=x);return U(e,t,n,0===s?f:a,l,c,u,d)}function se(e,t,n,r){return U(e,t,n,p,b(j),k(e,2,-2),0,r)}function oe(e,t,n,r,s){return U(e,t,n,h,k(e,0,r),k(e,r+1,-1),r,s)}const ie={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ae="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",le="undefined"!=typeof window&&"HTMLElement"in window,ce=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),ue=(new Set,Object.freeze([])),de=Object.freeze({}),pe=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),fe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,he=/(^-|-$)/g;function me(e){return e.replace(fe,"-").replace(he,"")}var ge=/(a)(d)/gi,ye=function(e){return String.fromCharCode(e+(e>25?39:97))};function ve(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ye(t%52)+n;return(ye(t%52)+n).replace(ge,"$1-$2")}var be,Ae=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},_e=function(e){return Ae(5381,e)};function we(e){return"string"==typeof e&&!0}var Ce="function"==typeof Symbol&&Symbol.for,xe=Ce?Symbol.for("react.memo"):60115,Se=Ce?Symbol.for("react.forward_ref"):60112,ke={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ee={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Re={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Te=((be={})[Se]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},be[xe]=Re,be);function Ie(e){return("type"in(t=e)&&t.type.$$typeof)===xe?Re:"$$typeof"in e?Te[e.$$typeof]:ke;var t}var Pe=Object.defineProperty,Ne=Object.getOwnPropertyNames,Oe=Object.getOwnPropertySymbols,Le=Object.getOwnPropertyDescriptor,je=Object.getPrototypeOf,De=Object.prototype;function Ue(e,t,n){if("string"!=typeof t){if(De){var r=je(t);r&&r!==De&&Ue(e,r,n)}var s=Ne(t);Oe&&(s=s.concat(Oe(t)));for(var o=Ie(e),i=Ie(t),a=0;a0?" Args: ".concat(t.join(", ")):""))}var Ge=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,s=r;e>=s;)if((s<<=1)<0)throw We(16,"".concat(e));this.groupSizes=new Uint32Array(s),this.groupSizes.set(n),this.length=s;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),s=r+n,o=r;o=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e0&&(l+="".concat(e,","))})),r+="".concat(i).concat(a,'{content:"').concat(l,'"}').concat("/*!sc*/\n")},o=0;o0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===f&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ut,n).replace(r,c))})),i.prefix&&u.push(ee),u.push(X);var d=function(e,s,o,a){void 0===s&&(s=""),void 0===o&&(o=""),void 0===a&&(a="&"),t=a,n=s,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(dt,""),c=te(o||s?"".concat(o," ").concat(s," { ").concat(l," }"):l);i.namespace&&(c=pt(c,i.namespace));var d,p,f,h=[];return J(c,(d=u.concat((f=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&f(e)})),p=R(d),function(e,t,n,r){for(var s="",o=0;o="A"&&e<="Z"};function wt(e){for(var t="",n=0;n>>0);if(!t.hasNameForId(this.componentId,o)){var i=n(s,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,i)}r=Fe(r,o),this.staticRulesId=o}else{for(var a=Ae(this.baseHash,n.hash),l="",c=0;c>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),r=Fe(r,p)}}return r},e}(),Tt=i().createContext(void 0);Tt.Consumer;var It={};function Pt(e,t,n){var s=Be(e),a=e,l=!we(e),c=t.attrs,u=void 0===c?ue:c,d=t.componentId,p=void 0===d?function(e,t){var n="string"!=typeof e?"sc":me(e);It[n]=(It[n]||0)+1;var r="".concat(n,"-").concat(function(e){return ve(_e(e)>>>0)}("6.1.1"+n+It[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):d,f=t.displayName,h=void 0===f?function(e){return we(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):f,m=t.displayName&&t.componentId?"".concat(me(t.displayName),"-").concat(t.componentId):t.componentId||p,g=s&&a.attrs?a.attrs.concat(u).filter(Boolean):u,y=t.shouldForwardProp;if(s&&a.shouldForwardProp){var v=a.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;y=function(e,t){return v(e,t)&&b(e,t)}}else y=v}var A=new Rt(n,m,s?a.componentStyle:void 0);function _(e,t){return function(e,t,n){var s=e.attrs,a=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.styledComponentId,d=e.target,p=i().useContext(Tt),f=vt(),h=e.shouldForwardProp||f.shouldForwardProp,m=function(e,t,n){for(var s,o=r(r({},t),{className:void 0,theme:n}),i=0;i2&&ct.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=nt(),r=ze([n&&'nonce="'.concat(n,'"'),"".concat(ae,'="true"'),"".concat("data-styled-version",'="').concat("6.1.1",'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(e.sealed)throw We(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw We(2);var n=((t={})[ae]="",t["data-styled-version"]="6.1.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),s=nt();return s&&(n.nonce=s),[i().createElement("style",r({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new ct({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw We(2);return i().createElement(bt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw We(3)}}(),"__sc-".concat(ae,"__")},4928:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var r=n(7e3),s=n(900),o=n.n(s),i=n(3376),a=n(7720);const l=i.cp.div`
+ height: auto;
+ width: 100%;
+`,c=({src:e})=>(0,r.jsx)(l,{children:(0,r.jsx)("audio",{className:"edit-audio-preview",controls:!0,src:e})});c.propTypes={src:o().string.isRequired};const u=({className:e,onReset:t,onUpdate:n,onUpdateURL:s,value:o,valueURL:i})=>(0,r.jsx)(a.MediaPicker,{allowedTypes:["audio"],className:e,icon:"format-audio",onReset:t,onUpdate:n,onUpdateURL:s,preview:c,value:o,valueURL:i});u.defaultProps={className:"",onUpdateURL:null,valueURL:""},u.propTypes={className:o().string,onReset:o().func.isRequired,onUpdate:o().func.isRequired,onUpdateURL:o().func,value:o().number.isRequired,valueURL:o().string};const d=u},2312:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(7e3),s=n(900),o=n.n(s),i=n(7287);const a=({label:e,value:t,options:n,onChange:s})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.BaseControl,{label:e}),n.map((e=>(0,r.jsx)(i.CheckboxControl,{label:e.label,checked:t.includes(e.value),onChange:n=>{s(n?[...t,e.value]:[...t.filter((t=>t!==e.value))])}})))]});a.propTypes={label:o().string.isRequired,value:o().arrayOf(o().string).isRequired,options:o().arrayOf(o().shape({label:o().string.isRequired,value:o().string.isRequired})).isRequired,onChange:o().func.isRequired};const l=a},8312:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var r=n(7e3),s=n(1280),o=n.n(s),i=n(3396),a=n(900),l=n.n(a),c=n(5328);class u extends o().PureComponent{static handleSubmit(e){e.preventDefault()}constructor(e){super(e),this.handleChange=this.handleChange.bind(this),this.state={error:"",success:""}}handleChange(e){const{attributeName:t,callback:n,setAttributes:r}=this.props;e.target.files&&e.target.files[0]&&(0,c.parseCSVFile)(e.target.files[0]).then((e=>n?n(e):e)).then((e=>{Array.isArray(e)&&e.length>0?(this.setState({error:"",success:(0,i.__)("Successfully read CSV data.","alley-scripts")}),r({[t]:JSON.stringify(e)})):this.setState({error:(0,i.__)("Could not map CSV data. Please check the source file to ensure that it has the correct structure.","alley-scripts"),success:""})})).catch((e=>{this.setState({error:e,success:""})}))}render(){const{error:e="",success:t=""}=this.state;return(0,r.jsxs)("div",{className:"alley-scripts-block-csv-uploader",children:[(0,r.jsx)("h2",{children:(0,i.__)("Upload CSV","alley-scripts")}),(0,r.jsxs)("form",{onSubmit:this.handleSubmit,children:[""!==e?(0,r.jsxs)("div",{style:{color:"#c00"},children:[(0,r.jsx)("strong",{children:(0,i.__)("Error:","alley-scripts")})," ",e]}):null,""!==t?(0,r.jsxs)("div",{style:{color:"#0c0"},children:[(0,r.jsx)("strong",{children:(0,i.__)("Success:","alley-scripts")})," ",t]}):null,(0,r.jsx)("div",{children:(0,r.jsxs)("label",{htmlFor:"alley-scripts-block-csv-uploader-file",children:[(0,r.jsx)("p",{children:(0,i.__)("Select a file to load data.","alley-scripts")}),(0,r.jsx)("input",{id:"alley-scripts-block-csv-uploader-file",onChange:this.handleChange,type:"file"})]})})]})]})}}u.defaultProps={callback:null},u.propTypes={attributeName:l().string.isRequired,callback:l().func,setAttributes:l().func.isRequired}},8348:(e,t,n)=>{"use strict";n.d(t,{default:()=>p});var r=n(7e3),s=n(3396),o=n(900),i=n.n(o),a=n(3376),l=n(7720);const c=a.cp.div`
+ box-sizing: border-box;
+ flex-shrink: 0;
+ height: auto;
+ max-height: 1450px;
+ max-width: 1450px;
+ min-height: 20px;
+ min-width: 20px;
+ position: relative;
+ width: auto;
+`,u=({src:e})=>(0,r.jsx)(c,{children:(0,r.jsx)("img",{alt:(0,s.__)("Edit image","alley-scripts"),className:"edit-image-preview",src:e,title:(0,s.__)("Edit image","alley-scripts")})});u.propTypes={src:i().string.isRequired};const d=({className:e,imageSize:t,displayControlsInToolbar:n,onReset:s,onUpdate:o,onUpdateURL:i,value:a,valueURL:c})=>(0,r.jsx)(l.MediaPicker,{allowedTypes:["image"],className:e,icon:"format-image",imageSize:t,displayControlsInToolbar:n,onReset:s,onUpdate:o,onUpdateURL:i,preview:u,value:a,valueURL:c});d.defaultProps={className:"",imageSize:"thumbnail",displayControlsInToolbar:!1,onUpdateURL:null,valueURL:""},d.propTypes={className:i().string,imageSize:i().string,displayControlsInToolbar:i().bool,onReset:i().func.isRequired,onUpdate:i().func.isRequired,onUpdateURL:i().func,value:i().number.isRequired,valueURL:i().string};const p=d},7720:(e,t,n)=>{"use strict";n.d(t,{AudioPicker:()=>r.default,CSVUploader:()=>o.default,Checkboxes:()=>s.default,ImagePicker:()=>i.default,MediaPicker:()=>a.default,PostPicker:()=>c.default,PostSelector:()=>u.default,SafeHtml:()=>l.default,Selector:()=>d.default,Sortable:()=>p.default,SortableItem:()=>f.default,TermSelector:()=>h.default,VideoPicker:()=>m.default});var r=n(4928),s=n(2312),o=n(8312),i=n(8348),a=n(5680),l=n(9160),c=n(4808),u=n(8800),d=n(9064),p=n(8504),f=n(1917),h=n(668),m=n(5316)},5680:(e,t,n)=>{"use strict";n.d(t,{default:()=>m});var r=n(7e3),s=n(900),o=n.n(s),i=n(3376),a=n(9528),l=n(7287),c=n(7752),u=n(3396),d=n(5328);const p=i.cp.div`
+ display: block;
+ position: relative;
+`,f=i.cp.div`
+ background: white;
+ border: 1px solid black;
+ padding: 1em;
+`,h=({allowedTypes:e,className:t,icon:n,imageSize:s,displayControlsInToolbar:o,onReset:i,onUpdate:h,onUpdateURL:m,preview:g,value:y,valueURL:v})=>{const{media:b}=(0,c.useSelect)((e=>({media:y?e("core").getMedia(y):void 0})),[y]);if(0!==y&&null===b)return(0,r.jsx)(l.Spinner,{});const A=b?(0,d.getMediaUrl)(b,s):v;return A?(0,r.jsxs)(p,{className:t,children:[g?(0,r.jsx)(g,{src:A}):(0,r.jsxs)(f,{className:"alley-scripts-media-picker__preview",children:[(0,r.jsx)("p",{children:(0,u.__)("Selected file:","alley-scripts")}),(0,r.jsx)("p",{children:(0,r.jsx)("a",{href:A,children:A})})]}),o?(0,r.jsx)(a.BlockControls,{group:"other",children:(0,r.jsx)(a.MediaReplaceFlow,{name:(0,u.__)("Edit Media","alley-scripts"),mediaId:y,mediaURL:A,allowedTypes:e,onSelect:h,onSelectURL:m,children:(0,r.jsx)(l.ToolbarButton,{isDestructive:!0,text:(0,u.__)("Remove","alley-scripts"),onClick:i})})}):(0,r.jsx)(l.Button,{variant:"primary",onClick:i,children:(0,u.__)("Reset","alley-scripts")})]}):(0,r.jsx)(p,{className:t,children:(0,r.jsx)(a.MediaPlaceholder,{allowedTypes:e,disableMediaButtons:!!v,icon:(0,r.jsx)(a.BlockIcon,{icon:n}),onSelect:h,onSelectURL:m,value:{id:y,src:A}})})};h.defaultProps={allowedTypes:[],className:"",icon:"format-aside",imageSize:"thumbnail",displayControlsInToolbar:!1,onUpdateURL:null,preview:null,valueURL:""},h.propTypes={allowedTypes:o().arrayOf(o().string),className:o().string,icon:o().string,imageSize:o().string,displayControlsInToolbar:o().bool,onReset:o().func.isRequired,onUpdate:o().func.isRequired,onUpdateURL:o().func,preview:o().element,value:o().number.isRequired,valueURL:o().string};const m=h},4808:(e,t,n)=>{"use strict";n.d(t,{default:()=>F});var r=n(7e3),s=n(1280),o=n(3376),i=n(7287),a=n(3396),l=n(7204),c=n(2e3),u=n(2108),d=n.n(u),p=n(7020),f=n.n(p),h=n(7240),m=n.n(h),g=n(9516),y=n.n(g),v=n(2940),b=n.n(v),A=n(9296),_=n.n(A),w=n(9680),C={};C.styleTagTransform=_(),C.setAttributes=y(),C.insert=m().bind(null,"head"),C.domAPI=f(),C.insertStyleElement=b(),d()(w.c,C),w.c&&w.c.locals&&w.c.locals;var x=n(4632),S=n.n(x),k=n(6484),E=n.n(k),R=n(7424),T={};T.styleTagTransform=_(),T.setAttributes=y(),T.insert=m().bind(null,"head"),T.domAPI=f(),T.insertStyleElement=b(),d()(R.c,T),R.c&&R.c.locals&&R.c.locals;const I=window.wp.htmlEntities;var P=n(9160);const N=o.cp.div`
+ align-items: center;
+ gap: 4px;
+ overflow-wrap: anywhere;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ padding: 0.5rem 0.75rem;
+`,O=({title:e,postType:t,attachmentID:n})=>{const s=(0,c.useMedia)(n),o=s?.media_details?.sizes?.thumbnail?.source_url,i=s?.alt_text??"";return(0,r.jsxs)(N,{children:[o?(0,r.jsx)("img",{style:{maxWidth:"100%",height:"auto"},loading:"lazy",src:o,alt:i}):null,(0,r.jsx)(P.default,{html:(0,I.decodeEntities)(e),className:"post-picker-result-title",tag:"strong"}),(0,a.sprintf)(" (%s)",t)]})},L=({baseUrl:e,searchRender:t,selected:n,setSelected:o,suppressPostIds:c=[]})=>{const[u,d]=(0,s.useState)(!1),[p,f]=(0,s.useState)([]),[h,m]=(0,s.useState)(!1),[g,y]=(0,s.useState)(0),[v,b]=(0,s.useState)({searchValue:"",page:1}),A=(0,s.useCallback)((async(t,n=!1)=>{if(t.searchValue&&t.searchValue.length<=2)return;const r=function(){let n=(0,l.addQueryArgs)(e,{page:t.page,_embed:1,exclude:c.join(",")});return t.searchValue&&t.searchValue.length>2&&(n=(0,l.addQueryArgs)(n,{search:t.searchValue})),n}();d(!0);const s=await S()({path:r,parse:!1});y(parseInt(s.headers.get("X-WP-TotalPages"),10));const o=await s.json();let i=o;t.page>1&&(i=[...p,...o]),n||(f(i),d(!1))}),[p,e,c]);return(0,s.useEffect)((()=>{let e=!1;return h||(m(!0),A(v,e)),()=>{e=!0}}),[A,h,v]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.TextControl,{value:v.searchValue,placeholder:(0,a.__)("Search...","alley-scripts"),label:(0,a.__)("Search","alley-scripts"),onChange:e=>{const t={...v,searchValue:e,page:1};b(t),A(t)}}),(0,r.jsxs)("div",{className:"alley-scripts-post-picker__post-list",children:[p?p.map((e=>(0,r.jsx)(i.Button,{className:E()({"alley-scripts-post-picker__post":!0,"is-selected":e.id===n}),onClick:()=>o(e.id),children:t?t(e):(0,r.jsx)(O,{title:e.title,postType:e.subtype,attachmentID:e?._embedded?.self[0]?.featured_media})},e.id))):null,u?(0,r.jsx)(i.Spinner,{}):null,g>0&&v.page{const e={...v,page:v.page+1};b(e),A(e)},children:(0,a.__)("Load More","alley-scripts")})}):null]})]})},j=({baseUrl:e,closeModal:t,modalTitle:n,onUpdate:o,searchRender:l,suppressPostIds:c=[]})=>{const[u,d]=(0,s.useState)();return(0,r.jsxs)(i.Modal,{className:"alley-scripts-post-picker__modal",isDismissible:!0,title:n,onRequestClose:t,closeButtonLabel:"Close",children:[(0,r.jsx)(L,{baseUrl:e,selected:u??0,setSelected:d,searchRender:l,suppressPostIds:c}),(0,r.jsxs)("div",{className:"alley-scripts-post-picker__buttons",children:[(0,r.jsx)(i.Button,{variant:"secondary",onClick:t,children:(0,a.__)("Cancel","alley-scripts")}),(0,r.jsx)(i.Button,{variant:"primary",onClick:()=>{u&&(o(u),t())},disabled:!u,children:(0,a.__)("Select","alley-scripts")})]})]})};var D=n(3800),U={};U.styleTagTransform=_(),U.setAttributes=y(),U.insert=m().bind(null,"head"),U.domAPI=f(),U.insertStyleElement=b(),d()(D.c,U),D.c&&D.c.locals&&D.c.locals;const M=o.cp.div`
+ display: block;
+ position: relative;
+`,B=o.cp.div`
+ border: 1px solid #eee;
+ display: flex;
+ flex-direction: column;
+ margin: 5px 0;
+ padding: 0.5rem 0.75rem;
+ text-align: center;
+`,F=({allowedTypes:e,className:t,getPostType:n,modalTitle:o=(0,a.__)("Select Post","alley-scripts"),onReset:u,onUpdate:d,params:p={},previewLookup:f,previewRender:h,replaceText:m=(0,a.__)("Replace","alley-scripts"),resetText:g=(0,a.__)("Reset","alley-scripts"),searchEndpoint:y="/wp/v2/search",searchRender:v,selectText:b=(0,a.__)("Select","alley-scripts"),suppressPostIds:A=[],title:_="",value:w=0})=>{const[C,x]=(0,s.useState)(!1),S=(0,l.addQueryArgs)(y,{type:"post",subtype:e??"any",...p}),k=f?f(w):(0,c.usePostById)(w,n),{featured_media:E,title:{rendered:R=""}={},type:T=""}=k||{},I=()=>{x(!0)},P=()=>(0,r.jsxs)(i.ButtonGroup,{children:[(0,r.jsx)(i.Button,{variant:"secondary",onClick:u,style:{margin:"0 4px"},children:g}),(0,r.jsx)(i.Button,{variant:"secondary",onClick:I,style:{margin:"0 4px"},children:m})]});return 0!==w&&null===k?(0,r.jsx)(i.Spinner,{}):(0,r.jsxs)(M,{className:t,children:[_?(0,r.jsx)("h4",{children:_}):null,0!==w&&void 0===k?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Notice,{status:"error",isDismissible:!1,className:"post-picker-notice",children:(0,r.jsx)("p",{children:(0,a.sprintf)((0,a.__)("Post %d is no longer available; it has been unpublished or deleted","alley-scripts"),w)})}),P()]}):null,0!==w&&void 0!==k?(0,r.jsxs)(r.Fragment,{children:[void 0!==h?h(k):(0,r.jsx)(B,{children:(0,r.jsx)(O,{title:R,postType:T,attachmentID:E})}),P()]}):null,0===w?(0,r.jsx)(i.Button,{onClick:I,variant:"secondary",children:b}):null,C?(0,r.jsx)(j,{closeModal:()=>{x(!1)},baseUrl:S,modalTitle:o,onUpdate:d,searchRender:v,suppressPostIds:A}):null]})}},8800:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(7e3),s=n(900),o=n.n(s),i=n(3396),a=n(7720);const l=({className:e,emptyLabel:t,label:n,maxPages:s,multiple:o,onSelect:i,placeholder:l,subTypes:c,selected:u,threshold:d})=>(0,r.jsx)(a.Selector,{type:"post",className:e,emptyLabel:t,label:n,maxPages:s,multiple:o,onSelect:i,placeholder:l,subTypes:c,selected:u,threshold:d});l.defaultProps={className:"",emptyLabel:(0,i.__)("No posts found","alley-scripts"),label:(0,i.__)("Search for posts","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,i.__)("Search for posts","alley-scripts"),subTypes:[],selected:[],threshold:3},l.propTypes={className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const c=l},9160:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(7e3),s=n(6595),o=n.n(s),i=n(900),a=n.n(i);const l=({className:e,html:t,tag:n})=>(0,r.jsx)(n,{className:e,dangerouslySetInnerHTML:{__html:o().sanitize(t)}});l.defaultProps={className:""},l.propTypes={className:a().string,html:a().string.isRequired,tag:a().string.isRequired};const c=l},9064:(e,t,n)=>{"use strict";n.d(t,{default:()=>M});var r=n(7e3),s=n(900),o=n.n(s),i=n(1280),a=n(4632),l=n.n(a),c=n(6484),u=n.n(c),d=n(7287),p=n(3396),f=n(7204);const h={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let m;const g=new Uint8Array(16);function y(){if(!m&&(m="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!m))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return m(g)}const v=[];for(let e=0;e<256;++e)v.push((e+256).toString(16).slice(1));const b=function(e,t,n){if(h.randomUUID&&!t&&!e)return h.randomUUID();const r=(e=e||{}).random||(e.rng||y)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]}(r)};var A=n(2e3);const _=({emptyLabel:e,error:t,id:n,isOpen:s,labelledbyId:o,loading:i,onSelect:a,options:l,selectedItems:c,threshold:f,value:h})=>{if(!i&&(""===h||f>h.length))return null;let m="",g="";return i?(m="loading",g=(0,p.__)("Loading...","alley-scripts")):t?(m="error",g=t):i||0!==l.length||(m="no-posts",g=e),i||!i&&(h&&0===l.length||t)?(0,r.jsx)("div",{"aria-busy":!0,className:u()("autocomplete__dropdown",{"autocomplete__dropdown--is-open":s}),children:(0,r.jsx)("div",{className:u()("autocomplete__dropdown--notice",`autocomplete__${m}`),children:g})}):(0,r.jsx)("div",{className:u()("autocomplete__dropdown",{"autocomplete__dropdown--is-open":s}),children:(0,r.jsx)("ul",{role:"listbox","aria-labelledby":o,id:n,className:u()("autocomplete__dropdown--results","autocomplete__list"),children:l.map((e=>(0,r.jsx)("li",{className:"autocomplete__list--item",children:(0,r.jsx)(d.Button,{onClick:()=>a(e),type:"button",disabled:c.some((t=>t.id===e.id)),isTertiary:!0,children:e.title})},e.id)))})})};_.propTypes={emptyLabel:o().string.isRequired,error:o().string.isRequired,id:o().string.isRequired,isOpen:o().bool.isRequired,labelledbyId:o().string.isRequired,loading:o().bool.isRequired,options:o().arrayOf(o().shape({label:o().string,value:o().string})).isRequired,onSelect:o().func.isRequired,selectedItems:o().shape([]).isRequired,threshold:o().number.isRequired,value:o().string.isRequired};const w=_;var C=n(2108),x=n.n(C),S=n(7020),k=n.n(S),E=n(7240),R=n.n(E),T=n(9516),I=n.n(T),P=n(2940),N=n.n(P),O=n(9296),L=n.n(O),j=n(5500),D={};D.styleTagTransform=L(),D.setAttributes=I(),D.insert=R().bind(null,"head"),D.domAPI=k(),D.insertStyleElement=N(),x()(j.c,D),j.c&&j.c.locals&&j.c.locals;const U=({type:e,className:t,emptyLabel:n,label:s,maxPages:o,multiple:a,onSelect:c,placeholder:p,subTypes:h,selected:m,threshold:g})=>{const y=b(),[v,_]=(0,i.useState)(""),[C,x]=(0,i.useState)([]),[S,k]=(0,i.useState)(!1),[E,R]=(0,i.useState)(!1),[T,I]=(0,i.useState)(""),[P,N]=(0,i.useState)([]),O=(0,i.useRef)(),L=(0,A.useDebounce)(T,750),j=(0,i.useCallback)((async(t=1)=>{if(L.length0?h.join(","):"any",type:e});await l()({path:r,parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"),10);return n=t>o?o:t,e.json()})).then((e=>{x((t=>[...t,...e])),R(!1),(n&&n>t||t>=1&&a&&P.length>0)&&j(t+1)})).catch((e=>_(e.message)))}),[L,e,o,a,h,P.length,g]);(0,i.useEffect)((()=>{N(m)}),[m]),(0,i.useEffect)((()=>{L&&g<=L.length?j():x([])}),[L,j,g]);const D=e=>{k(O.current.contains(e.target))},U=e=>{"Escape"===e.key&&k(!1)};(0,i.useEffect)((()=>(document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)))),(0,i.useEffect)((()=>(O&&document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D))));const M=e=>{let t=[];if(P.some((t=>t.id===e.id))){const n=P.findIndex((t=>t.id===e.id));t=[...P.slice(0,n),...P.slice(n+1,P.length)]}else a?t=[...P,e]:(t=[e],k(!1));N(t),c(t)};return(0,r.jsx)("form",{className:"autocomplete__component",onSubmit:e=>e.preventDefault(),children:(0,r.jsxs)("div",{className:u()("components-base-control","autocomplete-base-control",t),ref:O,children:[(0,r.jsxs)("div",{"aria-expanded":S,"aria-haspopup":"listbox","aria-owns":`listbox-${y}`,className:u()("components-base-control__field","autocomplete-base-control__field"),role:"combobox",children:[(0,r.jsx)("label",{className:u()("components-base-control__label","autocomplete-base-control__label"),htmlFor:`autocomplete-${y}`,children:(0,r.jsx)("div",{children:s})}),P.length>0?(0,r.jsx)("ul",{role:"listbox","aria-labelledby":`autocomplete-${y}`,id:`selected-items-${y}`,className:u()("autocomplete__selection--results","autocomplete__selection-list"),children:P.map((e=>(0,r.jsx)("li",{className:"autocomplete__selection-list--item",children:(0,r.jsx)(d.Button,{className:"autocomplete__selection-list--item--button",isSecondary:!0,isSmall:!0,onClick:()=>M(e),type:"button",children:e.title})},e.title)))}):null,(0,r.jsx)("input",{"aria-autocomplete":"list",autoComplete:"off",className:u()("components-text-control__input","autocomplete-text-control__input",{"autocomplete-text-control__input--working":S}),id:`autocomplete-${y}`,onChange:e=>I(e.target.value),onFocus:()=>k(!0),placeholder:p,type:"text",value:T})]}),(0,r.jsx)(w,{emptyLabel:n,error:v,labelledById:`autocomplete-${y}`,id:`listbox-${y}`,isOpen:S,loading:E&&L,onSelect:M,options:C,selectedItems:P,threshold:g,value:L})]})})};U.defaultProps={type:"post",className:"",emptyLabel:(0,p.__)("No items found","alley-scripts"),label:(0,p.__)("Search for items","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,p.__)("Search for items","alley-scripts"),subTypes:[],selected:[],threshold:3},U.propTypes={type:o().string,className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const M=U},1917:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(7e3),s=n(7287),o=n(3396);function i({children:e,index:t,list:n,setList:i}){return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(s.Button,{disabled:0===t,icon:"arrow-up-alt2",label:(0,o.__)("Move up","alley-scripts"),onClick:()=>{const e=[...n];e.splice(t-1,0,e.splice(t,1)[0]),i(e)}}),(0,r.jsx)(s.Button,{disabled:t===n.length-1,icon:"arrow-down-alt2",label:(0,o.__)("Move down","alley-scripts"),onClick:()=>{const e=[...n];e.splice(t+1,0,e.splice(t,1)[0]),i(e)}}),(0,r.jsx)(s.Button,{icon:"trash",label:(0,o.__)("Remove","alley-scripts"),onClick:()=>{const e=[...n];e.splice(t,1),i(e)}})]}),(0,r.jsx)("div",{children:e})]})}},8504:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(7e3),s=n(7287),o=n(3396);function i({children:e,emptyItem:t,list:n,setList:i}){return(0,r.jsxs)(r.Fragment,{children:[e,(0,r.jsx)("div",{style:{margin:"1em 0"},children:(0,r.jsx)(s.Button,{icon:"plus",onClick:()=>i([...n,t]),variant:"primary",children:(0,o.__)("Add Item","alley-scripts")})})]})}},668:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(7e3),s=n(900),o=n.n(s),i=n(3396),a=n(7720);const l=({className:e,emptyLabel:t,label:n,maxPages:s,multiple:o,onSelect:i,placeholder:l,subTypes:c,selected:u,threshold:d})=>(0,r.jsx)(a.Selector,{type:"term",className:e,emptyLabel:t,label:n,maxPages:s,multiple:o,onSelect:i,placeholder:l,subTypes:c,selected:u,threshold:d});l.defaultProps={className:"",emptyLabel:(0,i.__)("No terms found","alley-scripts"),label:(0,i.__)("Search for terms","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,i.__)("Search for terms","alley-scripts"),subTypes:[],selected:[],threshold:3},l.propTypes={className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const c=l},5316:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var r=n(7e3),s=n(900),o=n.n(s),i=n(3376),a=n(7720);const l=i.cp.div`
+ height: auto;
+ width: 100%;
+`,c=({src:e})=>(0,r.jsx)(l,{children:(0,r.jsx)("video",{className:"edit-video-preview",controls:!0,src:e})});c.propTypes={src:o().string.isRequired};const u=({className:e,onReset:t,onUpdate:n,onUpdateURL:s,value:o,valueURL:i})=>(0,r.jsx)(a.MediaPicker,{allowedTypes:["video"],className:e,icon:"format-video",onReset:t,onUpdate:n,onUpdateURL:s,preview:c,value:o,valueURL:i});u.defaultProps={className:"",onUpdateURL:null,valueURL:""},u.propTypes={className:o().string,onReset:o().func.isRequired,onUpdate:o().func.isRequired,onUpdateURL:o().func,value:o().number.isRequired,valueURL:o().string};const d=u},2e3:(e,t,n)=>{"use strict";n.d(t,{useCurrentPostId:()=>r.default,useCurrentTheme:()=>s.default,useDebounce:()=>o.default,useHasInnerBlocks:()=>i.default,useInnerBlocks:()=>a.default,useInnerBlocksAttributes:()=>l.default,useInnerBlocksCount:()=>c.default,useInnerBlocksIndex:()=>u.default,useMedia:()=>d.default,useOption:()=>p.default,useParentBlock:()=>f.default,useParentBlockAttributes:()=>h.default,usePost:()=>m.default,usePostById:()=>g.default,usePostMeta:()=>y.default,usePostMetaValue:()=>v.default,usePosts:()=>b.default,usePreviewLink:()=>A.default,useTerm:()=>_.default,useTerms:()=>w.default});var r=n(9695),s=n(5904),o=n(7112),i=n(6980),a=n(864),l=n(8512),c=n(1344),u=n(6644),d=n(592),p=n(7188),f=n(224),h=n(8004),m=n(1744),g=n(9480),y=n(6504),v=n(3772),b=n(4704),A=n(7532),_=n(7712),w=n(1848)},9695:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(7752);const s=()=>(0,r.useSelect)((e=>{const t=e("core/editor");return t?t.getCurrentPostId():null}),[])},5904:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=()=>(0,s.useSelect)((e=>{const t=e(r.store);return t?t.getCurrentTheme()?.stylesheet:null}),[])},7112:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(1280);const s=(e,t)=>{const[n,s]=(0,r.useState)(e);return(0,r.useEffect)((()=>{const n=setTimeout((()=>{s(e)}),t);return()=>{clearTimeout(n)}}),[e,t]),n}},6980:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=e=>(0,r.useInnerBlocksCount)(e)>0},6644:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=e=>{const t=(0,r.useParentBlock)(e),n=(0,r.useInnerBlocks)(t);return n?n.findIndex((t=>t.clientId===e)):-1}},8512:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=e=>(0,r.useInnerBlocks)(e).map((e=>e.attributes))},1344:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=e=>(0,r.useInnerBlocks)(e).length},864:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9528),s=n(7752);const o=e=>(0,s.useSelect)((t=>t(r.store).getBlocks(e)),[e])},592:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=e=>(0,s.useSelect)((t=>t(r.store).getMedia(e)),[e])},7188:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(7752);const s=function(e){const t=(0,r.useSelect)((t=>{const{getEditedEntityRecord:n,getEntityRecordEdits:r,isSavingEntityRecord:s}=t("core"),o=n("root","site"),i=r("root","site");return{value:o?.[e],isEdited:!!i?.[e],isSaving:s("root","site")}}),[]),{editEntityRecord:n,saveEntityRecord:s}=(0,r.useDispatch)("core");return{...t,onChange:function(t){n("root","site",void 0,{[e]:t})},onSave:async function(){await s("root","site",{[e]:t.value})}}}},8004:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9528),s=n(7752);const o=e=>(0,s.useSelect)((t=>{const{getBlockAttributes:n,getBlockRootClientId:s}=t(r.store),o=s(e);return o?n(o):null}),[e])},224:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9528),s=n(7752);const o=e=>(0,s.useSelect)((t=>{const{getBlock:n,getBlockRootClientId:s}=t(r.store),o=s(e);return o?n(o):null}),[e])},9480:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(1280),s=n(4632),o=n.n(s),i=n(7204),a=n(1744);const l=(e,t=null,n={context:"view"})=>{const[s,l]=(0,r.useState)({}),[c,u]=(0,r.useState)(!0);(0,r.useEffect)((()=>{u(!0),e&&!s[e]?(async()=>{if(t){const n=await t(e);n?l((t=>({...t,[e]:n}))):console.error(`Custom function to get post with ID ${e} failed.`)}else{const t=(0,i.addQueryArgs)("/wp/v2/search",{include:e}),n=await o()({path:t});n.length>0&&l((t=>({...t,[e]:n[0]?.subtype})))}u(!1)})():e&&s[e]&&u(!1)}),[e]);const d=(0,a.default)(e,s[e]??"",n);return c||!d&&s[e]?null:d}},3772:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(2e3);const s=(e,t=null,n=null)=>{const[s,o]=(0,r.usePostMeta)(t,n);return[s[e],t=>o({...s,[e]:t})]}},6504:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e=null,t=null)=>{const n=(0,s.useSelect)((t=>e||t("core/editor").getCurrentPostType()),[]),[o,i]=(0,r.useEntityProp)("postType",n,"meta",t),a="function"==typeof i?i:()=>console.error(`Error attempting to set post meta for post type ${n}. Does it have support for custom-fields?`);return["object"==typeof o?o:{},e=>a({...e})]}},1744:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e,t="post",n={context:"view"})=>(0,s.useSelect)((s=>s(r.store).getEntityRecord("postType",t,e,n)),[e,t])},4704:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e,t="post")=>(0,s.useSelect)((n=>{const{getEntityRecords:s}=n(r.store);return s("postType",t,{include:e})}),[e,t])},7532:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=()=>(0,s.useSelect)((e=>e(r.store).getEditedPostPreviewLink()),[])},7712:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e,t="category",n={context:"view"})=>(0,s.useSelect)((s=>s(r.store).getEntityRecord("taxonomy",t,e,n)),[e,t])},1848:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(3048),s=n(7752);const o=(e=null,t=null,n="categories")=>{const o=(0,s.useSelect)((t=>e||t("core/editor").getCurrentPostType()),[]),[i,a]=(0,r.useEntityProp)("postType",o,n,t);return[i,e=>a(e)]}},5328:(e,t,n)=>{"use strict";n.d(t,{getMediaUrl:()=>i.c,parseCSVFile:()=>o});var r=n(2232),s=n.n(r);const o=e=>new Promise(((t,n)=>{s().parse(e,{complete:e=>t(e.data),dynamicTyping:!0,error:e=>n(e),header:!0,skipEmptyLines:!0})}));var i=n(6199)},6199:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=(e,t="full")=>{const{media_details:{sizes:{[t]:{source_url:n=""}={},full:{source_url:r=""}={}}={}}={},sizes:{[t]:{url:s=""}={},full:{url:o=""}={}}={},source_url:i="",url:a=""}=e;return s||n||o||r||a||i||""}},1280:e=>{"use strict";e.exports=window.React},4632:e=>{"use strict";e.exports=window.wp.apiFetch},9528:e=>{"use strict";e.exports=window.wp.blockEditor},7287:e=>{"use strict";e.exports=window.wp.components},3048:e=>{"use strict";e.exports=window.wp.coreData},7752:e=>{"use strict";e.exports=window.wp.data},3396:e=>{"use strict";e.exports=window.wp.i18n},7204:e=>{"use strict";e.exports=window.wp.url}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var o=t[r]={id:r,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{AudioPicker:()=>e.AudioPicker,CSVUploader:()=>e.CSVUploader,Checkboxes:()=>e.Checkboxes,ImagePicker:()=>e.ImagePicker,MediaPicker:()=>e.MediaPicker,PostPicker:()=>e.PostPicker,PostSelector:()=>e.PostSelector,SafeHtml:()=>e.SafeHtml,Selector:()=>e.Selector,Sortable:()=>e.Sortable,SortableItem:()=>e.SortableItem,TermSelector:()=>e.TermSelector,VideoPicker:()=>e.VideoPicker,getMediaUrl:()=>s.getMediaUrl,parseCSVFile:()=>s.parseCSVFile,useCurrentPostId:()=>t.useCurrentPostId,useCurrentTheme:()=>t.useCurrentTheme,useDebounce:()=>t.useDebounce,useHasInnerBlocks:()=>t.useHasInnerBlocks,useInnerBlocks:()=>t.useInnerBlocks,useInnerBlocksAttributes:()=>t.useInnerBlocksAttributes,useInnerBlocksCount:()=>t.useInnerBlocksCount,useInnerBlocksIndex:()=>t.useInnerBlocksIndex,useMedia:()=>t.useMedia,useOption:()=>t.useOption,useParentBlock:()=>t.useParentBlock,useParentBlockAttributes:()=>t.useParentBlockAttributes,usePost:()=>t.usePost,usePostById:()=>t.usePostById,usePostMeta:()=>t.usePostMeta,usePostMetaValue:()=>t.usePostMetaValue,usePosts:()=>t.usePosts,usePreviewLink:()=>t.usePreviewLink,useTerm:()=>t.useTerm,useTerms:()=>t.useTerms});var e=n(7720),t=n(2e3),s=n(5328)})(),r})(),e.exports=t()},990:function(e,t,n){"use strict";var r=window.React,s=window.wp.blocks,o=window.wp.blockEditor,i=window.wp.i18n,a=n(265),l=window.wp.data,c=window.wp.components;const{newsletterBuilder:{allowedPostTypes:u=["post"]}={}}=window;var d=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"wp-newsletter-builder/post","version":"0.1.0","title":"Newsletter Single Post","category":"design","icon":"admin-post","description":"Displays a post","textdomain":"wp-newsletter-builder","editorScript":"file:index.ts","editorStyle":"file:index.css","style":["file:style-index.css"],"render":"file:render.php","attributes":{"postId":{"type":"number","default":0},"postType":{"type":"string","default":"post"},"overrideUrl":{"type":"string","default":""}},"providesContext":{"postId":"postId","postType":"postType","queryId":"0","overrideUrl":"overrideUrl"}}');(0,s.registerBlockType)(d,{edit:function(e){let{attributes:{postId:t=0,overrideUrl:n=""},setAttributes:s}=e;const d=e=>{s({postId:e})},p=(0,l.useSelect)((e=>e("core/editor").getCurrentPostType()),[]);return(0,r.createElement)("div",{...(0,o.useBlockProps)({className:`edit-${p}`})},t&&"nb_template"!==p?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(c.Button,{variant:"primary",isDestructive:!0,onClick:()=>d(0),className:"newsletter-remove-post","aria-label":(0,i.__)("Remove Post","wp-newsletter-builder")},"X")):null,t||"nb_template"===p?null:(0,r.createElement)("div",null,(0,r.createElement)(a.PostPicker,{onUpdate:d,allowedTypes:u,onReset:()=>d(0),params:{per_page:20},title:(0,i.__)("Please select a post","wp-newsletter-builder"),value:t})),t||"nb_template"===p?(0,r.createElement)("table",{role:"presentation"},(0,r.createElement)("tbody",null,(0,r.createElement)("tr",null,(0,r.createElement)("td",null,(0,r.createElement)(o.InnerBlocks,{template:[["wp-newsletter-builder/post-featured-image",{}],["wp-newsletter-builder/post-title",{}],["wp-newsletter-builder/post-byline",{}],["wp-newsletter-builder/post-excerpt",{}],["wp-newsletter-builder/post-read-more",{}]],allowedBlocks:["wp-newsletter-builder/post-byline","wp-newsletter-builder/post-content","wp-newsletter-builder/post-excerpt","wp-newsletter-builder/post-featured-image","wp-newsletter-builder/post-read-more","wp-newsletter-builder/post-title"],templateLock:!1}))))):null,(0,r.createElement)(o.InspectorControls,null,t?(0,r.createElement)(c.PanelBody,{title:(0,i.__)("Override URL","wp-newsletter-builder"),initialOpen:!0},(0,r.createElement)(c.PanelRow,null,(0,r.createElement)(c.TextControl,{value:null!=n?n:"",onChange:e=>s({overrideUrl:e}),type:"url"}))):null))},save:()=>{const e=o.useBlockProps.save();return(0,r.createElement)("table",{...e,role:"presentation"},(0,r.createElement)("tbody",null,(0,r.createElement)("tr",null,(0,r.createElement)(o.InnerBlocks.Content,null))))}})}},n={};function r(e){var s=n[e];if(void 0!==s)return s.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.m=t,e=[],r.O=function(t,n,s,o){if(!n){var i=1/0;for(u=0;u=o)&&Object.keys(r.O).every((function(e){return r.O[e](n[l])}))?n.splice(l--,1):(a=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,s,o]},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={588:0,500:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var s,o,i=n[0],a=n[1],l=n[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(s in a)r.o(a,s)&&(r.m[s]=a[s]);if(l)var u=l(r)}for(t&&t(n);c.
+ * @param WP_Block $block_instance The instance of the WP_Block class that represents the block being rendered.
+ *
+ * @package wp-newsletter-builder
+ */
+
+if ( empty( $attributes['postId'] ) ) {
+ return;
+}
+
+$wp_newsletter_builder_block_post = get_post( $attributes['postId'] );
+if ( empty( $wp_newsletter_builder_block_post ) ) {
+ return;
+}
+
+?>
+>
+
+
diff --git a/build/post/style-index-rtl.css b/build/post/style-index-rtl.css
new file mode 100644
index 00000000..b088f3cc
--- /dev/null
+++ b/build/post/style-index-rtl.css
@@ -0,0 +1 @@
+.wp-block-wp-newsletter-builder-post>*{margin:15px 0}.wp-block-wp-newsletter-builder-post .post__title-link{color:#000;display:block;margin:20px auto;text-decoration:none}.wp-block-wp-newsletter-builder-post h2{margin-bottom:0;text-align:center}.wp-block-wp-newsletter-builder-post h2.post__title--small{font-size:24px}.wp-block-wp-newsletter-builder-post .post__byline{font-size:16px;margin-bottom:8px;text-align:center}.wp-block-wp-newsletter-builder-post .post__image-link{display:block;margin:20px auto}.wp-block-wp-newsletter-builder-post .wp-block-button{margin:20px auto}.wp-block-wp-newsletter-builder-post .newsletter-post__number{color:#d62827}.wp-block-wp-newsletter-builder-post table{width:100%}.wp-block-wp-newsletter-builder-post li{font-size:16px}
diff --git a/build/post/style-index.css b/build/post/style-index.css
new file mode 100644
index 00000000..b088f3cc
--- /dev/null
+++ b/build/post/style-index.css
@@ -0,0 +1 @@
+.wp-block-wp-newsletter-builder-post>*{margin:15px 0}.wp-block-wp-newsletter-builder-post .post__title-link{color:#000;display:block;margin:20px auto;text-decoration:none}.wp-block-wp-newsletter-builder-post h2{margin-bottom:0;text-align:center}.wp-block-wp-newsletter-builder-post h2.post__title--small{font-size:24px}.wp-block-wp-newsletter-builder-post .post__byline{font-size:16px;margin-bottom:8px;text-align:center}.wp-block-wp-newsletter-builder-post .post__image-link{display:block;margin:20px auto}.wp-block-wp-newsletter-builder-post .wp-block-button{margin:20px auto}.wp-block-wp-newsletter-builder-post .newsletter-post__number{color:#d62827}.wp-block-wp-newsletter-builder-post table{width:100%}.wp-block-wp-newsletter-builder-post li{font-size:16px}
diff --git a/build/pre-publish-checks/index.asset.php b/build/pre-publish-checks/index.asset.php
new file mode 100644
index 00000000..f63c64f4
--- /dev/null
+++ b/build/pre-publish-checks/index.asset.php
@@ -0,0 +1 @@
+ array('react', 'wp-data', 'wp-edit-post', 'wp-i18n', 'wp-plugins'), 'version' => '4fa37bc66adf3fcb5692');
diff --git a/build/pre-publish-checks/index.js b/build/pre-publish-checks/index.js
new file mode 100644
index 00000000..385cc1c7
--- /dev/null
+++ b/build/pre-publish-checks/index.js
@@ -0,0 +1 @@
+!function(){"use strict";var e=window.wp.plugins,t=window.React,i=window.wp.editPost,l=window.wp.data,n=window.wp.i18n;(0,e.registerPlugin)("pre-publish-checks",{render:function(){const e=(0,l.useSelect)((e=>e("core/editor").getEditedPostAttribute("title"))).trim().length>0,{lockPostSaving:r,unlockPostSaving:s}=(0,l.useDispatch)("core/editor"),{createWarningNotice:o,removeNotice:c}=(0,l.useDispatch)("core/notices");return e?(s("title-empty-lock"),c("title-empty-lock")):(r("title-empty-lock"),o((0,n.__)("Please enter a newsletter title before publishing.","wp-newsletter-builder"),{id:"title-empty-lock",isDismissible:!1})),(0,t.createElement)(i.PluginPrePublishPanel,{title:(0,n.__)("Newsletter Publish Requirements","wp-newsletter-builder"),initialOpen:!0},(0,t.createElement)("p",null,e?(0,n.__)("All headline requirements are met.","wp-newsletter-builder"):(0,n.__)("Headline is required before publishing.","wp-newsletter-builder")))}})}();
\ No newline at end of file
diff --git a/build/section/block.json b/build/section/block.json
new file mode 100644
index 00000000..7b0983ff
--- /dev/null
+++ b/build/section/block.json
@@ -0,0 +1,31 @@
+{
+ "$schema": "https://schemas.wp.org/trunk/block.json",
+ "apiVersion": 2,
+ "name": "wp-newsletter-builder/section",
+ "version": "0.1.0",
+ "title": "Newsletter Section",
+ "category": "design",
+ "icon": "layout",
+ "description": "Section to contain other blocks and allow for choosing multiple posts.",
+ "textdomain": "wp-newsletter-builder",
+ "editorScript": "file:index.js",
+ "editorStyle": "file:index.css",
+ "style": [
+ "file:style-index.css"
+ ],
+ "render": "file:render.php",
+ "attributes": {
+ "showNumbers": {
+ "type": "boolean",
+ "default": false
+ },
+ "heading": {
+ "type": "string",
+ "default": ""
+ },
+ "adAfter": {
+ "type": "boolean",
+ "default": false
+ }
+ }
+}
\ No newline at end of file
diff --git a/build/section/index-rtl.css b/build/section/index-rtl.css
new file mode 100644
index 00000000..806b5ae0
--- /dev/null
+++ b/build/section/index-rtl.css
@@ -0,0 +1,5 @@
+.components-modal__content{width:90vw}.alley-scripts-post-picker__buttons{clear:both;display:block;text-align:left;width:100%}.alley-scripts-post-picker__buttons button{margin:5px}.nb-multi-post-picker-modal{display:flex;flex-direction:row;height:90%;justify-content:space-between;margin-bottom:10px;width:100%}.nb-multi-post-picker-modal__search-results,.nb-multi-post-picker-modal__selected{border:1px solid #ccc;height:100%;padding:5px;width:49%}
+.nb-multi-post-picker-modal .alley-scripts-post-picker__post-list{float:right;height:calc(70vh - 250px);overflow-y:auto}.alley-scripts-post-picker__post{align-items:center;border:1px solid #eee;display:flex;float:right;height:150px;margin:5px;overflow:hidden;padding:.5rem .75rem;transition:background-color .2s ease-in-out;width:150px}.alley-scripts-post-picker__post.is-selected,.alley-scripts-post-picker__post:hover{background-color:#f5f5f5}.alley-scripts-post-picker__load-more{clear:both;float:right;text-align:center;width:100%}
+.nb-multi-post-picker-modal .alley-scripts-post-picker__post-list.nb-sortable-list{height:calc(70vh - 170px);width:100%}.nb-post-picker-draggable{align-items:center;border:1px solid #ccc;display:flex;flex-direction:row;margin:5px 0;min-height:60px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.nb-post-picker-draggable>span{cursor:move;height:100%}
+.post-type-nb_newsletter .alley-scripts-post-picker__post-list .alley-scripts-post-picker__post{height:auto;padding:0 0 0 5px}.post-type-nb_newsletter .nb-post-picker-result{align-items:center;display:flex;flex-direction:row;gap:10px;justify-content:flex-start;width:100%}.post-type-nb_newsletter .nb-post-picker-result-image__container{height:56px;width:100px}.post-type-nb_newsletter .nb-post-picker-result-image__container img{max-height:56px;max-width:100px}.post-type-nb_newsletter .nb-post-picker-result-title{font-weight:600;margin:5px 0;text-align:right}.post-type-nb_newsletter .nb-post-picker-result-date{margin-right:auto;text-align:left}
+.wp-block-wp-newsletter-builder-section{border:1px dashed #ccc;padding:2px}
diff --git a/build/section/index.asset.php b/build/section/index.asset.php
new file mode 100644
index 00000000..758753da
--- /dev/null
+++ b/build/section/index.asset.php
@@ -0,0 +1 @@
+ array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => 'df7cbd4eb11801db9c04');
diff --git a/build/section/index.css b/build/section/index.css
new file mode 100644
index 00000000..e7750993
--- /dev/null
+++ b/build/section/index.css
@@ -0,0 +1,5 @@
+.components-modal__content{width:90vw}.alley-scripts-post-picker__buttons{clear:both;display:block;text-align:right;width:100%}.alley-scripts-post-picker__buttons button{margin:5px}.nb-multi-post-picker-modal{display:flex;flex-direction:row;height:90%;justify-content:space-between;margin-bottom:10px;width:100%}.nb-multi-post-picker-modal__search-results,.nb-multi-post-picker-modal__selected{border:1px solid #ccc;height:100%;padding:5px;width:49%}
+.nb-multi-post-picker-modal .alley-scripts-post-picker__post-list{float:left;height:calc(70vh - 250px);overflow-y:auto}.alley-scripts-post-picker__post{align-items:center;border:1px solid #eee;display:flex;float:left;height:150px;margin:5px;overflow:hidden;padding:.5rem .75rem;transition:background-color .2s ease-in-out;width:150px}.alley-scripts-post-picker__post.is-selected,.alley-scripts-post-picker__post:hover{background-color:#f5f5f5}.alley-scripts-post-picker__load-more{clear:both;float:left;text-align:center;width:100%}
+.nb-multi-post-picker-modal .alley-scripts-post-picker__post-list.nb-sortable-list{height:calc(70vh - 170px);width:100%}.nb-post-picker-draggable{align-items:center;border:1px solid #ccc;display:flex;flex-direction:row;margin:5px 0;min-height:60px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.nb-post-picker-draggable>span{cursor:move;height:100%}
+.post-type-nb_newsletter .alley-scripts-post-picker__post-list .alley-scripts-post-picker__post{height:auto;padding:0 5px 0 0}.post-type-nb_newsletter .nb-post-picker-result{align-items:center;display:flex;flex-direction:row;gap:10px;justify-content:flex-start;width:100%}.post-type-nb_newsletter .nb-post-picker-result-image__container{height:56px;width:100px}.post-type-nb_newsletter .nb-post-picker-result-image__container img{max-height:56px;max-width:100px}.post-type-nb_newsletter .nb-post-picker-result-title{font-weight:600;margin:5px 0;text-align:left}.post-type-nb_newsletter .nb-post-picker-result-date{margin-left:auto;text-align:right}
+.wp-block-wp-newsletter-builder-section{border:1px dashed #ccc;padding:2px}
diff --git a/build/section/index.js b/build/section/index.js
new file mode 100644
index 00000000..c1ed4e26
--- /dev/null
+++ b/build/section/index.js
@@ -0,0 +1,42 @@
+!function(){var e,t={265:function(e){var t;self,t=()=>(()=>{var e={6484:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function s(){for(var e=[],t=0;t{"use strict";n.d(t,{c:()=>a});var r=n(2876),s=n.n(r),o=n(1849),i=n.n(o)()(s());i.push([e.id,".alley-scripts-post-picker__post-list{display:flex;flex-wrap:wrap;float:left;height:calc(70vh - 200px);justify-content:flex-start;overflow-y:auto;padding:8px;width:100%}.alley-scripts-post-picker__post{border:1px solid #eee;height:auto;justify-content:center;margin:0 8px 8px 0;transition:background-color .2s ease-in-out;width:calc((100% - 40px)/3)}@media(min-width: 780px){.alley-scripts-post-picker__post{width:calc((100% - 40px)/5)}}.alley-scripts-post-picker__post:hover{background-color:#f5f5f5}.alley-scripts-post-picker__post.is-selected{background-color:#f5f5f5}.alley-scripts-post-picker__load-more{clear:both;float:left;text-align:center;width:100%}","",{version:3,sources:["webpack://./src/components/post-picker/post-list.scss"],names:[],mappings:"AAAA,sCACE,YAAA,CACA,cAAA,CACA,UAAA,CACA,yBAAA,CACA,0BAAA,CACA,eAAA,CACA,WAAA,CACA,UAAA,CAGF,iCACE,qBAAA,CACA,WAAA,CACA,sBAAA,CACA,kBAAA,CACA,2CAAA,CACA,2BAAA,CAGA,yBATF,iCAUI,2BAAA,CAAA,CAGF,uCACE,wBAAA,CAGF,6CACE,wBAAA,CAIJ,sCACE,UAAA,CACA,UAAA,CACA,iBAAA,CACA,UAAA",sourcesContent:[".alley-scripts-post-picker__post-list {\n display: flex;\n flex-wrap: wrap;\n float: left;\n height: calc(70vh - 200px);\n justify-content: flex-start;\n overflow-y: auto;\n padding: 8px;\n width: 100%;\n}\n\n.alley-scripts-post-picker__post {\n border: 1px solid #eee;\n height: auto;\n justify-content: center;\n margin: 0 8px 8px 0;\n transition: background-color 0.2s ease-in-out;\n width: calc((100% - 40px) / 3);\n\n\n @media (min-width: 780px) {\n width: calc((100% - 40px) / 5);\n }\n\n &:hover {\n background-color: #f5f5f5;\n }\n\n &.is-selected {\n background-color: #f5f5f5;\n }\n}\n\n.alley-scripts-post-picker__load-more {\n clear: both;\n float: left;\n text-align: center;\n width: 100%;\n}\n"],sourceRoot:""}]);const a=i},9680:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(2876),s=n.n(r),o=n(1849),i=n.n(o)()(s());i.push([e.id,".alley-scripts-post-picker__modal .components-modal__content{width:90vw}.alley-scripts-post-picker__buttons{clear:both;display:block;text-align:right;width:100%}.alley-scripts-post-picker__buttons button{margin:5px}","",{version:3,sources:["webpack://./src/components/post-picker/search-modal.scss"],names:[],mappings:"AACE,6DACE,UAAA,CAIJ,oCACE,UAAA,CACA,aAAA,CACA,gBAAA,CACA,UAAA,CAEA,2CACE,UAAA",sourcesContent:[".alley-scripts-post-picker__modal {\n .components-modal__content {\n width: 90vw;\n }\n}\n\n.alley-scripts-post-picker__buttons {\n clear: both;\n display: block;\n text-align: right;\n width: 100%;\n\n button {\n margin: 5px;\n }\n}\n"],sourceRoot:""}]);const a=i},3800:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(2876),s=n.n(r),o=n(1849),i=n.n(o)()(s());i.push([e.id,".post-picker-notice{margin:0 0 .5rem 0}","",{version:3,sources:["webpack://./src/components/post-picker/style.scss"],names:[],mappings:"AAAA,oBACE,kBAAA",sourcesContent:[".post-picker-notice {\n margin: 0 0 0.5rem 0;\n}\n"],sourceRoot:""}]);const a=i},5500:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(2876),s=n.n(r),o=n(1849),i=n.n(o)()(s());i.push([e.id,'.edit-post-sidebar .autocomplete__component,.editor-styles-wrapper .autocomplete__component{margin-bottom:20px}.edit-post-sidebar .autocomplete-base-control,.editor-styles-wrapper .autocomplete-base-control{position:relative}.edit-post-sidebar .autocomplete-text-control__input,.editor-styles-wrapper .autocomplete-text-control__input{margin:0}.edit-post-sidebar .autocomplete__selection-list,.editor-styles-wrapper .autocomplete__selection-list{list-style-type:none;margin:0 0 6px;padding:0}.edit-post-sidebar .autocomplete__selection-list--item,.editor-styles-wrapper .autocomplete__selection-list--item{display:inline-block;list-style:none}.edit-post-sidebar .autocomplete__selection-list--item--button,.editor-styles-wrapper .autocomplete__selection-list--item--button{margin-bottom:4px;margin-right:3px}.edit-post-sidebar .autocomplete__selection-list--item--button::after,.editor-styles-wrapper .autocomplete__selection-list--item--button::after{content:"×";font-size:16px;line-height:20px;margin-left:5px}.edit-post-sidebar .autocomplete__dropdown,.editor-styles-wrapper .autocomplete__dropdown{background-color:#fff;border-color:rgba(0,0,0,0) #e2e4e7 #e2e4e7;border-radius:0 0 4px 4px;border-style:solid;border-width:0 1px 1px;left:0;max-height:0;overflow-y:hidden;position:absolute;top:calc(100% + 1px);visibility:hidden;width:100%;z-index:10}.edit-post-sidebar .autocomplete__dropdown--is-open,.editor-styles-wrapper .autocomplete__dropdown--is-open{box-shadow:0 3px 30px rgba(25,30,35,.1);max-height:225px;overflow-y:scroll;visibility:visible}.edit-post-sidebar .autocomplete__dropdown--notice,.editor-styles-wrapper .autocomplete__dropdown--notice{padding:15px}.edit-post-sidebar .autocomplete__dropdown--results,.editor-styles-wrapper .autocomplete__dropdown--results{list-style:none;margin:0;padding:0}.edit-post-sidebar .autocomplete__list--item,.editor-styles-wrapper .autocomplete__list--item{list-style:none}.edit-post-sidebar .autocomplete__list--item>button,.editor-styles-wrapper .autocomplete__list--item>button{background:rgba(0,0,0,0);border-color:#e2e4e7;border-style:solid;border-width:0 0 1px;height:100%;line-height:1.25;text-align:left;white-space:inherit;width:100%}.edit-post-sidebar .autocomplete__list--item:last-child>button,.editor-styles-wrapper .autocomplete__list--item:last-child>button{border-bottom:0}',"",{version:3,sources:["webpack://./src/components/selector/styles.scss"],names:[],mappings:"AAAA,4FAgBI,kBACE,CAAA,gGAMF,iBACE,CAAA,8GAMF,QACE,CAAA,sGAMF,oBACE,CAAA,cACA,CAAA,SACA,CAAA,kHAEA,oBACE,CAAA,eACA,CAAA,kIAEA,iBACE,CAAA,gBACA,CAAA,gJAEA,WACE,CAAA,cACA,CAAA,gBACA,CAAA,eACA,CAAA,0FASR,qBACE,CAAA,0CACA,CAAA,yBACA,CAAA,kBACA,CAAA,sBACA,CAAA,MACA,CAAA,YACA,CAAA,iBACA,CAAA,iBACA,CAAA,oBACA,CAAA,iBACA,CAAA,UACA,CAAA,UACA,CAAA,4GAGA,uCACE,CAAA,gBACA,CAAA,iBACA,CAAA,kBACA,CAAA,0GAIF,YACE,CAAA,4GAIF,eACE,CAAA,QACA,CAAA,SACA,CAAA,8FAOJ,eACE,CAAA,4GAEA,wBACE,CAAA,oBACA,CAAA,kBACA,CAAA,oBACA,CAAA,WACA,CAAA,gBACA,CAAA,eACA,CAAA,mBACA,CAAA,UACA,CAAA,kIAGF,eACE",sourcesContent:["//--------------------------------------------------------------\n// AutoComplete Styles\n//--------------------------------------------------------------\n\n/* stylelint-disable max-nesting-depth */\n\n//-----------------------------------------\n// Accommodate editor well, or the sidebar.\n//-----------------------------------------\n.edit-post-sidebar,\n.editor-styles-wrapper {\n .autocomplete {\n\n //-----------------------------------------\n // Parent form wrapper.\n //-----------------------------------------\n &__component {\n margin-bottom: 20px;\n }\n\n //-----------------------------------------\n // Wrapper\n //-----------------------------------------\n &-base-control {\n position: relative;\n }\n\n //-----------------------------------------\n // Input\n //-----------------------------------------\n &-text-control__input {\n margin: 0;\n }\n\n //-----------------------------------------\n // Selected buttons.\n //-----------------------------------------\n &__selection-list {\n list-style-type: none;\n margin: 0 0 6px;\n padding: 0;\n\n &--item {\n display: inline-block;\n list-style: none;\n\n &--button {\n margin-bottom: 4px;\n margin-right: 3px;\n\n &::after {\n content: '×';\n font-size: 16px;\n line-height: 20px;\n margin-left: 5px;\n }\n }\n }\n }\n\n //-----------------------------------------\n // Results\n //-----------------------------------------\n &__dropdown {\n background-color: #fff;\n border-color: transparent #e2e4e7 #e2e4e7;\n border-radius: 0 0 4px 4px;\n border-style: solid;\n border-width: 0 1px 1px;\n left: 0;\n max-height: 0;\n overflow-y: hidden;\n position: absolute;\n top: calc(100% + 1px); // Offset focus border.\n visibility: hidden;\n width: 100%;\n z-index: 10;\n\n // Container is open.\n &--is-open {\n box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1);\n max-height: 225px;\n overflow-y: scroll;\n visibility: visible;\n }\n\n // Notice handler.\n &--notice {\n padding: 15px;\n }\n\n // Results container.\n &--results {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n }\n\n //-----------------------------------------\n // List/Results\n //-----------------------------------------\n &__list--item {\n list-style: none;\n\n > button {\n background: transparent;\n border-color: #e2e4e7;\n border-style: solid;\n border-width: 0 0 1px;\n height: 100%;\n line-height: 1.25;\n text-align: left;\n white-space: inherit;\n width: 100%;\n }\n\n &:last-child > button {\n border-bottom: 0;\n }\n }\n }\n}\n"],sourceRoot:""}]);const a=i},1849:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,s,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var a=0;a0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),s&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=s):u[4]="".concat(s)),t.push(u))}},t}},2876:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(s," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},6595:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:s}=Object;let{freeze:o,seal:i,create:a}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),i||(i=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=w(Array.prototype.forEach),d=w(Array.prototype.pop),p=w(Array.prototype.push),f=w(String.prototype.toLowerCase),h=w(String.prototype.toString),m=w(String.prototype.match),g=w(String.prototype.replace),y=w(String.prototype.indexOf),v=w(String.prototype.trim),b=w(RegExp.prototype.test),_=(A=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),s=1;s2&&void 0!==arguments[2]?arguments[2]:f;t&&t(e,null);let o=r.length;for(;o--;){let t=r[o];if("string"==typeof t){const e=s(t);e!==t&&(n(r)||(r[o]=e),t=e)}e[t]=!0}return e}function C(t){const n=a(null);for(const[r,o]of e(t))void 0!==s(t,r)&&(n[r]=o);return n}function S(e,t){for(;null!==e;){const n=s(e,t);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}e=r(e)}return function(e){return console.warn("fallback value for",e),null}}const E=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),k=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),T=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),N=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=o(["#text"]),O=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),L=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),j=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),D=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),U=i(/\{\{[\w\W]*|[\w\W]*\}\}/gm),M=i(/<%[\w\W]*|[\w\W]*%>/gm),B=i(/\${[\w\W]*}/gm),F=i(/^data-[\-\w.\u00B7-\uFFFF]/),z=i(/^aria-[\-\w]+$/),q=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=i(/^(?:\w+script|data):/i),H=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W=i(/^html$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:U,ERB_EXPR:M,TMPLIT_EXPR:B,DATA_ATTR:F,ARIA_ATTR:z,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:H,DOCTYPE_NAME:W});return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const r=e=>t(e);if(r.version="3.0.6",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;let{document:s}=n;const i=s,l=i.currentScript,{DocumentFragment:c,HTMLTemplateElement:A,Node:w,Element:U,NodeFilter:M,NamedNodeMap:B=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:F,DOMParser:z,trustedTypes:$}=n,H=U.prototype,V=S(H,"cloneNode"),Y=S(H,"nextSibling"),K=S(H,"childNodes"),Q=S(H,"parentNode");if("function"==typeof A){const e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}let X,J="";const{implementation:Z,createNodeIterator:ee,createDocumentFragment:te,getElementsByTagName:ne}=s,{importNode:re}=i;let se={};r.isSupported="function"==typeof e&&"function"==typeof Q&&Z&&void 0!==Z.createHTMLDocument;const{MUSTACHE_EXPR:oe,ERB_EXPR:ie,TMPLIT_EXPR:ae,DATA_ATTR:le,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:ue,ATTR_WHITESPACE:de}=G;let{IS_ALLOWED_URI:pe}=G,fe=null;const he=x({},[...E,...k,...R,...I,...P]);let me=null;const ge=x({},[...O,...L,...j,...D]);let ye=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,be=null,_e=!0,Ae=!0,we=!1,xe=!0,Ce=!1,Se=!1,Ee=!1,ke=!1,Re=!1,Te=!1,Ie=!1,Ne=!0,Pe=!1,Oe=!0,Le=!1,je={},De=null;const Ue=x({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Me=null;const Be=x({},["audio","video","img","source","image","track"]);let Fe=null;const ze=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",He="http://www.w3.org/1999/xhtml";let We=He,Ge=!1,Ve=null;const Ye=x({},[qe,$e,He],h);let Ke=null;const Qe=["application/xhtml+xml","text/html"];let Xe=null,Je=null;const Ze=s.createElement("form"),et=function(e){return e instanceof RegExp||e instanceof Function},tt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Je||Je!==e){if(e&&"object"==typeof e||(e={}),e=C(e),Ke=Ke=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Xe="application/xhtml+xml"===Ke?h:f,fe="ALLOWED_TAGS"in e?x({},e.ALLOWED_TAGS,Xe):he,me="ALLOWED_ATTR"in e?x({},e.ALLOWED_ATTR,Xe):ge,Ve="ALLOWED_NAMESPACES"in e?x({},e.ALLOWED_NAMESPACES,h):Ye,Fe="ADD_URI_SAFE_ATTR"in e?x(C(ze),e.ADD_URI_SAFE_ATTR,Xe):ze,Me="ADD_DATA_URI_TAGS"in e?x(C(Be),e.ADD_DATA_URI_TAGS,Xe):Be,De="FORBID_CONTENTS"in e?x({},e.FORBID_CONTENTS,Xe):Ue,ve="FORBID_TAGS"in e?x({},e.FORBID_TAGS,Xe):{},be="FORBID_ATTR"in e?x({},e.FORBID_ATTR,Xe):{},je="USE_PROFILES"in e&&e.USE_PROFILES,_e=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,we=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ce=e.SAFE_FOR_TEMPLATES||!1,Se=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,ke=e.FORCE_BODY||!1,Ne=!1!==e.SANITIZE_DOM,Pe=e.SANITIZE_NAMED_PROPS||!1,Oe=!1!==e.KEEP_CONTENT,Le=e.IN_PLACE||!1,pe=e.ALLOWED_URI_REGEXP||q,We=e.NAMESPACE||He,ye=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ye.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ce&&(Ae=!1),Te&&(Re=!0),je&&(fe=x({},[...P]),me=[],!0===je.html&&(x(fe,E),x(me,O)),!0===je.svg&&(x(fe,k),x(me,L),x(me,D)),!0===je.svgFilters&&(x(fe,R),x(me,L),x(me,D)),!0===je.mathMl&&(x(fe,I),x(me,j),x(me,D))),e.ADD_TAGS&&(fe===he&&(fe=C(fe)),x(fe,e.ADD_TAGS,Xe)),e.ADD_ATTR&&(me===ge&&(me=C(me)),x(me,e.ADD_ATTR,Xe)),e.ADD_URI_SAFE_ATTR&&x(Fe,e.ADD_URI_SAFE_ATTR,Xe),e.FORBID_CONTENTS&&(De===Ue&&(De=C(De)),x(De,e.FORBID_CONTENTS,Xe)),Oe&&(fe["#text"]=!0),Se&&x(fe,["html","head","body"]),fe.table&&(x(fe,["tbody"]),delete ve.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');X=e.TRUSTED_TYPES_POLICY,J=X.createHTML("")}else void 0===X&&(X=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}($,l)),null!==X&&"string"==typeof J&&(J=X.createHTML(""));o&&o(e),Je=e}},nt=x({},["mi","mo","mn","ms","mtext"]),rt=x({},["foreignobject","desc","title","annotation-xml"]),st=x({},["title","style","font","a","script"]),ot=x({},k);x(ot,R),x(ot,T);const it=x({},I);x(it,N);const at=function(e){p(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},lt=function(e,t){try{p(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!me[e])if(Re||Te)try{at(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ct=function(e){let t=null,n=null;if(ke)e="