\n );\n}\n\nTermSelector.propTypes = {\n onChange: PropTypes.func.isRequired,\n taxonomy: PropTypes.string.isRequired,\n termId: PropTypes.number.isRequired,\n};\n","import apiFetch from '@wordpress/api-fetch';\nimport { useEffect, useState } from 'react';\n\n// Hooks.\nimport useTaxonomies from '../use-taxonomies';\n\n/**\n * A React hook for working with taxonomy terms. Allows fetching and setting\n * taxonomy terms for various taxonomies by ID. Caches results for future use.\n * @returns {object} An object with a get and set method.\n */\nexport default function useTermCache() {\n const [termCache, setTermCache] = useState({});\n const taxonomies = useTaxonomies();\n\n /**\n * Sets data for a term by taxonomy slug and term ID.\n * @param {object} termObject - The term object to set for the taxonomy and term ID.\n */\n const set = (termObject) => {\n if (termObject.taxonomy\n && termObject.id\n && (undefined === termCache[termObject.taxonomy]?.[termObject.id]\n || termCache[termObject.taxonomy][termObject.id].loading === true)\n ) {\n setTermCache({\n ...termCache,\n [termObject.taxonomy]: {\n ...(termCache[termObject.taxonomy] ?? {}),\n [termObject.id]: termObject,\n },\n });\n }\n };\n\n /**\n * Fetches a term from the REST API given the taxonomy slug and the term ID.\n * @param {string} taxonomy - The taxonomy slug.\n * @param {string} rawTermId - The term ID.\n */\n const fetchTerm = async (taxonomy, rawTermId) => {\n const termId = Number(rawTermId);\n if (Number.isNaN(termId) || termId <= 0) {\n return;\n }\n // If necessary, immediately add a placeholder to state while we are waiting for the load.\n if (termCache[taxonomy]?.[termId] === undefined) {\n set({ taxonomy, id: termId, loading: true });\n }\n\n // If taxonomies haven't loaded yet, bail out and fetch them later via useEffect.\n if (!taxonomies[taxonomy]) {\n return;\n }\n\n // Fetch the actual term object from the API.\n const termObject = await apiFetch({ path: `/${taxonomies[taxonomy].rest_namespace}/${taxonomies[taxonomy].rest_base}/${termId}` });\n if (termObject.name) {\n set(termObject);\n }\n };\n\n /**\n * Gets a term by taxonomy slug and term ID.\n * @param {string} taxonomy - The taxonomy slug to look up.\n * @param {number} termId - The term ID to look up.\n * @returns {object} The term object as it was returned by the REST API.\n */\n const get = (taxonomy, termId) => {\n if (termCache[taxonomy]?.[termId] === undefined) {\n fetchTerm(taxonomy, termId);\n }\n\n return termCache[taxonomy]?.[termId] ?? {};\n };\n\n // Handle cases where terms were requested before taxonomy config was loaded.\n useEffect(() => {\n if (Object.keys(taxonomies).length > 0) {\n Object.keys(termCache).forEach((taxonomy) => {\n Object.keys(termCache[taxonomy]).forEach((termId) => {\n if (termCache[taxonomy]?.[termId]?.loading === true) {\n fetchTerm(taxonomy, termId);\n }\n });\n });\n }\n }, [taxonomies]); // eslint-disable-line react-hooks/exhaustive-deps\n\n return { get, set };\n}\n","/* global AppleNewsAutomationConfig */\nimport {\n Button,\n SelectControl,\n TextControl,\n ToggleControl,\n} from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\n// Components.\nimport TermSelector from '../components/term-selector';\n\nfunction Rule({\n busy,\n field,\n onDelete,\n onDragEnd,\n onUpdate,\n taxonomy,\n termId,\n value,\n}) {\n const {\n fields,\n sections,\n taxonomies,\n themes,\n } = AppleNewsAutomationConfig;\n\n return (\n
\n );\n}\n\nRule.propTypes = {\n busy: PropTypes.bool.isRequired,\n field: PropTypes.string.isRequired,\n onDelete: PropTypes.func.isRequired,\n onDragEnd: PropTypes.func.isRequired,\n onUpdate: PropTypes.func.isRequired,\n taxonomy: PropTypes.string.isRequired,\n termId: PropTypes.number.isRequired,\n value: PropTypes.string.isRequired,\n};\n\nexport default Rule;\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","/**\n * Given an array of objects, a key, and a value, returns a copy of the array\n * with the value for the key set at the given index.\n * @param {Array} values - An array of objects.\n * @param {string} key - The object key to update.\n * @param {*} value - The value to set for the key.\n * @param {number} index - The index to set the value on.\n * @returns {Array} A copy of the array with the value set for the key at the given index.\n */\nconst updateValueAtIndex = (values, key, value, index) => {\n const valuesCopy = values.map((item) => ({ ...item }));\n valuesCopy[index][key] = value;\n return valuesCopy;\n};\n\nexport default updateValueAtIndex;\n","/* global AppleNewsAutomationConfig */\nimport {\n Button,\n} from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport React from 'react';\n\n// Components.\nimport Rule from './rule';\n\n// Hooks.\nimport useSiteOptions from '../services/hooks/use-site-options';\n\n// Util.\nimport deleteAtIndex from '../util/delete-at-index';\nimport updateValueAtIndex from '../util/update-value-at-index';\n\nfunction AdminSettings() {\n const [{\n loading, setSettings, saving, settings,\n }, saveSettings] = useSiteOptions();\n const busy = loading || saving;\n const { apple_news_automation: ruleList } = settings;\n const { fields } = AppleNewsAutomationConfig;\n\n /**\n * Helper function for pushing to in-memory settings inside useSiteOptions.\n * @param {array} updatedRules - The new array of rules.\n */\n const updateSettings = (updatedRules) => {\n setSettings({ ...settings, apple_news_automation: updatedRules });\n };\n\n /**\n * Adds a new empty rule to the end of the list.\n */\n const addRule = () => {\n updateSettings([\n ...(ruleList ?? []),\n {\n field: '',\n taxonomy: '',\n term_id: 0,\n value: '',\n },\n ]);\n };\n\n /**\n * Drag and drop logic/re-indexing for Rules.\n * @param {number} from - The origin index.\n * @param {number} to - The destination index.\n */\n const reorderRule = (from, to) => {\n if (from !== to) {\n const updatedRules = [...(ruleList ?? [])];\n [updatedRules[from], updatedRules[to]] = [updatedRules[to], updatedRules[from]];\n updateSettings(updatedRules);\n }\n };\n\n /**\n * Updates a configuration parameter for a rule given the rule index, a field\n * key, and a field value.\n * @param {number} index - The index of the rule being updated.\n * @param {string} key - The field key within the rule.\n * @param {string|number} value - A number for term_id, string otherwise.\n */\n const updateRule = (index, key, value) => {\n let updatedRules = updateValueAtIndex(ruleList, key, value, index);\n // Need to reset value state in case field changes the resulting value's type.\n if (key === 'field') {\n updatedRules = updateValueAtIndex(updatedRules, 'value', fields[value]?.type === 'boolean' ? 'false' : '', index);\n }\n updateSettings(updatedRules);\n };\n\n return (\n
\n
{__('Apple News Automation', 'apple-news')}
\n
{__('Configure automation rules below to automatically apply certain settings based on the taxonomy terms applied to each post.', 'apple-news')}
\n );\n}\n\nexport default AdminSettings;\n","import { useEffect, useState } from 'react';\nimport apiFetch from '@wordpress/api-fetch';\nimport { useDispatch } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\n\nconst useSiteOptions = () => {\n const [loading, setLoading] = useState(true);\n const [notices, setNotices] = useState([]);\n const [saving, setSaving] = useState(false);\n const [settings, setSettings] = useState({});\n\n // Setup for Gutenberg's notices system.\n const {\n createErrorNotice,\n createSuccessNotice,\n removeNotice,\n } = useDispatch('core/notices');\n const noticeOptions = {\n type: 'snackbar',\n isDismissable: true,\n };\n\n /**\n * Helper for creating an error notice and adding it to the stack.\n * @param {string} message - The message to display to the user.\n */\n const error = async (message) => {\n const { notice: { id } = {} } = await createErrorNotice(message, noticeOptions);\n setNotices([...notices, id]);\n };\n\n /**\n * Helper for creating a success notice and adding it to the stack.\n * @param {string} message - The message to display to the user.\n */\n const success = async (message) => {\n const { notice: { id } = {} } = await createSuccessNotice(message, noticeOptions);\n setNotices([...notices, id]);\n };\n\n // Load settings on initial mount.\n useEffect(() => {\n (async () => {\n try {\n const response = await apiFetch({\n path: '/wp/v2/settings',\n });\n setSettings(response || {});\n } catch ({ message }) {\n await error(message);\n } finally {\n setLoading(false);\n }\n })();\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n /**\n * Set settings.\n *\n * @param {object} newSettings settings object.\n */\n const saveSettings = async () => {\n setSaving(true);\n notices.forEach((id) => removeNotice(id));\n setNotices([]);\n\n // Enforce some defaults prior to save.\n // Request will 500 when site_logo === null.\n const finalSettings = { ...settings };\n finalSettings.site_logo = finalSettings.site_logo ?? 0;\n\n try {\n const response = await apiFetch({\n path: '/wp/v2/settings',\n method: 'POST',\n data: finalSettings,\n });\n setSettings(response || {});\n await success(__('Settings Saved', 'bassmaster-plugin'));\n } catch ({ message }) {\n await error(message);\n } finally {\n setSaving(false);\n }\n };\n\n return [\n {\n loading,\n setSettings,\n saving,\n settings,\n },\n saveSettings,\n ];\n};\n\nexport default useSiteOptions;\n","/**\n * Given an array of values, returns a copy of the array with the value at the\n * given index removed.\n * @param {Array} values - The array of values to modify.\n * @param {number} index - The index to remove.\n * @returns {Array} A copy of the values array with the value at the specified index removed.\n */\nconst deleteAtIndex = (values, index) => values.filter((value, idx) => index !== idx);\n\nexport default deleteAtIndex;\n","import React, { StrictMode } from 'react';\nimport ReactDOM from 'react-dom';\n\n// Components.\nimport AdminSettings from './index';\n\nconst container = document.getElementById('apple-news-options__page');\nconst root = ReactDOM.createRoot(container);\n\nroot.render(\n \n \n ,\n);\n"],"names":["t","self","e","n","r","hasOwnProperty","s","arguments","length","o","push","Array","isArray","i","apply","toString","Object","prototype","includes","a","call","join","exports","default","d","Z","id","version","sources","names","mappings","sourcesContent","sourceRoot","this","map","concat","l","c","u","btoa","unescape","encodeURIComponent","JSON","stringify","entries","setPrototypeOf","isFrozen","getPrototypeOf","getOwnPropertyDescriptor","freeze","seal","create","construct","Reflect","C","forEach","pop","p","f","String","toLowerCase","h","m","match","g","replace","y","indexOf","v","trim","A","RegExp","test","b","_","TypeError","x","w","S","get","value","console","warn","k","E","R","T","I","N","P","O","L","j","D","U","M","B","F","z","q","$","H","W","G","__proto__","MUSTACHE_EXPR","ERB_EXPR","TMPLIT_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","DOCTYPE_NAME","window","removed","document","nodeType","isSupported","currentScript","DocumentFragment","HTMLTemplateElement","Node","Element","NodeFilter","NamedNodeMap","MozNamedAttrMap","HTMLFormElement","DOMParser","trustedTypes","V","K","Q","createElement","content","ownerDocument","J","X","implementation","ee","createNodeIterator","te","createDocumentFragment","ne","getElementsByTagName","re","importNode","se","oe","createHTMLDocument","ie","ae","le","ce","ue","de","pe","fe","he","me","ge","ye","ve","tagNameCheck","writable","configurable","enumerable","attributeNameCheck","allowCustomizedBuiltInElements","Ae","be","_e","Ce","xe","we","Se","ke","Ee","Re","Te","Ie","Ne","Pe","Oe","Le","je","De","Ue","Me","Be","Fe","ze","qe","$e","He","We","Ge","Ye","Ve","Ze","Ke","Qe","Je","Xe","et","tt","Function","nt","PARSER_MEDIA_TYPE","ALLOWED_TAGS","ALLOWED_ATTR","ALLOWED_NAMESPACES","ADD_URI_SAFE_ATTR","ADD_DATA_URI_TAGS","FORBID_CONTENTS","FORBID_TAGS","FORBID_ATTR","USE_PROFILES","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","ALLOW_SELF_CLOSE_IN_ATTR","SAFE_FOR_TEMPLATES","WHOLE_DOCUMENT","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_TRUSTED_TYPE","FORCE_BODY","SANITIZE_DOM","SANITIZE_NAMED_PROPS","KEEP_CONTENT","IN_PLACE","ALLOWED_URI_REGEXP","NAMESPACE","CUSTOM_ELEMENT_HANDLING","html","svg","svgFilters","mathMl","ADD_TAGS","ADD_ATTR","table","tbody","TRUSTED_TYPES_POLICY","createHTML","createScriptURL","createPolicy","hasAttribute","getAttribute","rt","st","ot","it","at","lt","element","parentNode","removeChild","remove","ct","attribute","getAttributeNode","from","removeAttribute","setAttribute","ut","parseFromString","documentElement","createDocument","innerHTML","body","insertBefore","createTextNode","childNodes","dt","SHOW_ELEMENT","SHOW_COMMENT","SHOW_TEXT","pt","ft","ht","nodeName","textContent","attributes","namespaceURI","hasChildNodes","tagName","allowedTags","firstElementChild","gt","Boolean","cloneNode","mt","yt","attrName","attrValue","keepAttr","allowedAttributes","name","forceKeepAttr","getAttributeType","setAttributeNS","vt","nextNode","sanitize","appendChild","firstChild","shadowroot","shadowrootmode","outerHTML","doctype","setConfig","clearConfig","isValidAttribute","addHook","removeHook","removeHooks","removeAllHooks","postMessage","IS_PAPA_WORKER","parse","dynamicTyping","dynamicTypingFunction","transform","worker","WORKERS_SUPPORTED","URL","webkitURL","BLOB_URL","createObjectURL","Blob","type","Worker","onmessage","userStep","step","userChunk","chunk","userComplete","complete","userError","error","input","config","workerId","NODE_STREAM_INPUT","charCodeAt","slice","download","readable","read","on","File","stream","unparse","delimiter","BAD_DELIMITERS","filter","quotes","skipEmptyLines","newline","quoteChar","header","columns","Error","escapeChar","escapeFormulae","keys","data","fields","meta","constructor","Date","charAt","RECORD_SEP","fromCharCode","UNIT_SEP","BYTE_ORDER_MARK","LocalChunkSize","RemoteChunkSize","DefaultDelimiter","Parser","ParserHandle","NetworkStreamer","FileStreamer","StringStreamer","ReadableStreamStreamer","jQuery","fn","each","prop","toUpperCase","attr","FileReader","files","file","inputElem","instanceConfig","extend","before","action","reason","splice","_handle","_finished","_completed","_halted","_input","_baseIndex","_partialLine","_rowCount","_start","_nextChunk","isFirstChunk","_completeResults","errors","chunkSize","parseInt","streamer","_config","parseChunk","beforeFirstChunk","paused","aborted","cursor","substring","preview","results","WORKER_ID","finished","_sendError","_readChunk","_chunkLoaded","XMLHttpRequest","withCredentials","onload","onerror","_chunkError","open","downloadRequestBody","downloadRequestHeaders","setRequestHeader","send","message","status","readyState","responseText","getResponseHeader","lastIndexOf","statusText","webkitSlice","mozSlice","FileReaderSync","Math","min","size","readAsText","encoding","target","result","pause","resume","_streamData","_streamEnd","_streamError","_checkIsFinished","shift","_streamCleanUp","removeListener","pow","abort","transformHeader","parseFloat","code","row","split","comments","abs","successful","bestDelimiter","delimitersToGuess","getCharIndex","setTimeout","fastMode","Y","index","substr","linebreak","truncated","terminate","resetWarningCache","isRequired","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","Symbol","for","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","key","ref","__self","__source","defaultProps","$$typeof","props","_owner","current","Fragment","jsx","jsxs","bind","identifier","base","css","media","sourceMap","supports","layer","references","updater","byIndex","domAPI","update","querySelector","HTMLIFrameElement","contentDocument","head","setAttributes","insert","options","nc","insertStyleElement","styleTagTransform","styleSheet","cssText","ZP","Mt","assign","SuppressedError","exec","root","parent","children","line","column","return","siblings","some","animationIterationCount","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","msGridRow","msGridRowSpan","msGridColumn","msGridColumnSpan","fontWeight","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","WebkitLineClamp","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","process","env","REACT_APP_SC_ATTR","SC_ATTR","SC_DISABLE_SPEEDY","REACT_APP_SC_DISABLE_SPEEDY","Set","childContextTypes","contextType","contextTypes","displayName","getDefaultProps","getDerivedStateFromError","getDerivedStateFromProps","mixins","propTypes","caller","callee","arity","compare","render","defineProperty","getOwnPropertyNames","getOwnPropertySymbols","groupSizes","Uint32Array","tag","indexOfGroup","insertRules","set","insertRule","clearGroup","deleteRule","getGroup","getRule","Map","has","registerName","getTag","querySelectorAll","nextSibling","sheet","styleSheets","ownerNode","cssRules","nodes","rules","isServer","useCSSOMInjection","gs","server","registerId","reconstructWithOptions","allocateGSInstance","hasNameForId","add","clearNames","clear","clearRules","clearTag","replaceAll","plugins","startsWith","endsWith","prefix","namespace","hash","reduce","createContext","shouldForwardProp","stylis","Consumer","At","useContext","bt","useState","stylisPlugins","useMemo","disableCSSOMInjection","enableVendorPrefixes","useEffect","Provider","_t","inject","getName","Ct","xt","wt","St","isCss","kt","styledComponentId","isReactComponent","Et","Rt","Tt","staticRulesId","isStatic","componentId","baseHash","baseStyle","generateAndInjectStyles","It","Nt","Pt","attrs","parentComponentId","componentStyle","foldedComponentIds","className","theme","as","forwardedAs","forwardRef","_foldedDefaultProps","Ot","Lt","jt","Dt","withConfig","Ut","createStyles","removeStyles","renderStyles","_emitSheetCSS","instance","getStyleTags","sealed","getStyleElement","dangerouslySetInnerHTML","__html","nonce","collectStyles","interleaveWithNodeStream","div","src","controls","onReset","onUpdate","onUpdateURL","valueURL","MediaPicker","allowedTypes","icon","label","onChange","BaseControl","CheckboxControl","checked","PureComponent","handleSubmit","preventDefault","super","handleChange","state","success","attributeName","callback","parseCSVFile","then","setState","__","catch","onSubmit","style","color","htmlFor","alt","title","imageSize","displayControlsInToolbar","AudioPicker","CSVUploader","Checkboxes","ImagePicker","PostPicker","PostSelector","SafeHtml","Selector","TermSelector","VideoPicker","useSelect","getMedia","Spinner","getMediaUrl","href","BlockControls","group","MediaReplaceFlow","mediaId","mediaURL","onSelect","onSelectURL","ToolbarButton","isDestructive","text","onClick","Button","variant","MediaPlaceholder","disableMediaButtons","BlockIcon","locals","wp","htmlEntities","postType","attachmentID","useMedia","media_details","sizes","thumbnail","source_url","alt_text","maxWidth","height","loading","decodeEntities","sprintf","baseUrl","searchRender","selected","setSelected","suppressPostIds","searchValue","page","useCallback","addQueryArgs","_embed","exclude","search","path","headers","json","TextControl","placeholder","subtype","_embedded","featured_media","closeModal","modalTitle","Modal","isDismissible","onRequestClose","closeButtonLabel","disabled","getPostType","params","previewRender","replaceText","resetText","searchEndpoint","selectText","usePostById","rendered","ButtonGroup","margin","emptyLabel","maxPages","multiple","subTypes","threshold","randomUUID","crypto","Uint8Array","getRandomValues","random","rng","isOpen","labelledbyId","selectedItems","role","isTertiary","useRef","useDebounce","contains","addEventListener","removeEventListener","findIndex","isSecondary","isSmall","autoComplete","onFocus","labelledById","useCurrentPostId","useHasInnerBlocks","useInnerBlocks","useInnerBlocksAttributes","useInnerBlocksCount","useInnerBlocksIndex","useParentBlock","useParentBlockAttributes","usePost","usePostMeta","usePostMetaValue","usePosts","useTerms","getCurrentPostId","clearTimeout","clientId","store","getBlocks","getBlockAttributes","getBlockRootClientId","getBlock","include","getCurrentPostType","useEntityProp","getEntityRecord","getEntityRecords","Promise","full","url","React","apiFetch","blockEditor","components","coreData","i18n","__esModule","toStringTag","module","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","shim","propName","componentName","location","propFullName","secret","err","getShim","ReactPropTypes","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","getter","definition","obj","useTaxonomies","taxonomies","setTaxonomies","async","response","fetchTaxonomies","_ref","taxonomy","termId","rest","termCache","setTermCache","termObject","fetchTerm","rawTermId","Number","isNaN","rest_namespace","rest_base","useTermCache","searchResults","setSearchResults","searchTerm","setSearchTerm","debouncedSearchTerm","newSearchResults","fetchTermData","_extends","SelectControl","next","nextTermId","_ref2","Rule","busy","field","onDelete","onDragEnd","sections","themes","AppleNewsAutomationConfig","draggable","tax","fieldSlug","sect","ToggleControl","updateValueAtIndex","values","valuesCopy","item","setSettings","saving","settings","saveSettings","useSiteOptions","setLoading","notices","setNotices","setSaving","createErrorNotice","createSuccessNotice","removeNotice","useDispatch","noticeOptions","isDismissable","notice","finalSettings","site_logo","method","apple_news_automation","ruleList","updateSettings","updatedRules","rel","scope","deleteAtIndex","idx","targetRow","elementFromPoint","clientX","clientY","closest","reorderRule","to","parentElement","updateRule","term_id","addRule","marginTop","isPrimary","container","getElementById","ReactDOM","StrictMode","AdminSettings"],"sourceRoot":""}
\ No newline at end of file
diff --git a/build/pluginSidebar.asset.php b/build/pluginSidebar.asset.php
new file mode 100644
index 00000000..86c79c1d
--- /dev/null
+++ b/build/pluginSidebar.asset.php
@@ -0,0 +1 @@
+ array('react', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-i18n', 'wp-plugins'), 'version' => 'a47654bacbf852d30970');
diff --git a/build/pluginSidebar.js b/build/pluginSidebar.js
new file mode 100644
index 00000000..8a7f885c
--- /dev/null
+++ b/build/pluginSidebar.js
@@ -0,0 +1,44 @@
+/*! For license information please see pluginSidebar.js.LICENSE.txt */
+!function(){var e={373:function(e){var t;self,t=()=>(()=>{var e={2779:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t{"use strict";n.d(t,{Z:()=>a});var r=n(272),o=n.n(r),i=n(2609),s=n.n(i)()(o());s.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=s},8992:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(272),o=n.n(r),i=n(2609),s=n.n(i)()(o());s.push([e.id,".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:"AAAA,2BACE,UAAA,CAGF,oCACE,UAAA,CACA,aAAA,CACA,gBAAA,CACA,UAAA,CAEA,2CACE,UAAA",sourcesContent:[".components-modal__content {\n width: 90vw;\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=s},5458:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(272),o=n.n(r),i=n(2609),s=n.n(i)()(o());s.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=s},2609: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,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},272: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)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),i="/*# ".concat(o," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},5368:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:s,create:a}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),s||(s=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),p=C(Array.prototype.pop),d=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),_=C(String.prototype.trim),b=C(RegExp.prototype.test),v=(A=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:f;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function S(t){const n=a(null);for(const[r,i]of e(t))void 0!==o(t,r)&&(n[r]=i);return n}function E(e,t){for(;null!==e;){const n=o(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 x=i(["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"]),T=i(["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=i(["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"]),k=i(["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=i(["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=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=i(["#text"]),O=i(["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=i(["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"]),D=i(["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"]),M=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),U=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),j=s(/<%[\w\W]*|[\w\W]*%>/gm),B=s(/\${[\w\W]*}/gm),F=s(/^data-[\-\w.\u00B7-\uFFFF]/),q=s(/^aria-[\-\w]+$/),z=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=s(/^(?:\w+script|data):/i),W=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=s(/^html$/i);var $=Object.freeze({__proto__:null,MUSTACHE_EXPR:U,ERB_EXPR:j,TMPLIT_EXPR:B,DATA_ATTR:F,ARIA_ATTR:q,IS_ALLOWED_URI:z,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:W,DOCTYPE_NAME:G});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:o}=n;const s=o,l=s.currentScript,{DocumentFragment:c,HTMLTemplateElement:A,Node:C,Element:U,NodeFilter:j,NamedNodeMap:B=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:F,DOMParser:q,trustedTypes:H}=n,W=U.prototype,V=E(W,"cloneNode"),Y=E(W,"nextSibling"),Z=E(W,"childNodes"),K=E(W,"parentNode");if("function"==typeof A){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let X,Q="";const{implementation:J,createNodeIterator:ee,createDocumentFragment:te,getElementsByTagName:ne}=o,{importNode:re}=s;let oe={};r.isSupported="function"==typeof e&&"function"==typeof K&&J&&void 0!==J.createHTMLDocument;const{MUSTACHE_EXPR:ie,ERB_EXPR:se,TMPLIT_EXPR:ae,DATA_ATTR:le,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:ue,ATTR_WHITESPACE:pe}=$;let{IS_ALLOWED_URI:de}=$,fe=null;const he=w({},[...x,...T,...R,...I,...P]);let me=null;const ge=w({},[...O,...L,...D,...M]);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}})),_e=null,be=null,ve=!0,Ae=!0,Ce=!1,we=!0,Se=!1,Ee=!1,xe=!1,Te=!1,Re=!1,ke=!1,Ie=!1,Ne=!0,Pe=!1,Oe=!0,Le=!1,De={},Me=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 je=null;const Be=w({},["audio","video","img","source","image","track"]);let Fe=null;const qe=w({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ze="http://www.w3.org/1998/Math/MathML",He="http://www.w3.org/2000/svg",We="http://www.w3.org/1999/xhtml";let Ge=We,$e=!1,Ve=null;const Ye=w({},[ze,He,We],h);let Ze=null;const Ke=["application/xhtml+xml","text/html"];let Xe=null,Qe=null;const Je=o.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(!Qe||Qe!==e){if(e&&"object"==typeof e||(e={}),e=S(e),Ze=Ze=-1===Ke.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Xe="application/xhtml+xml"===Ze?h:f,fe="ALLOWED_TAGS"in e?w({},e.ALLOWED_TAGS,Xe):he,me="ALLOWED_ATTR"in e?w({},e.ALLOWED_ATTR,Xe):ge,Ve="ALLOWED_NAMESPACES"in e?w({},e.ALLOWED_NAMESPACES,h):Ye,Fe="ADD_URI_SAFE_ATTR"in e?w(S(qe),e.ADD_URI_SAFE_ATTR,Xe):qe,je="ADD_DATA_URI_TAGS"in e?w(S(Be),e.ADD_DATA_URI_TAGS,Xe):Be,Me="FORBID_CONTENTS"in e?w({},e.FORBID_CONTENTS,Xe):Ue,_e="FORBID_TAGS"in e?w({},e.FORBID_TAGS,Xe):{},be="FORBID_ATTR"in e?w({},e.FORBID_ATTR,Xe):{},De="USE_PROFILES"in e&&e.USE_PROFILES,ve=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,we=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Se=e.SAFE_FOR_TEMPLATES||!1,Ee=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,ke=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,Te=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,de=e.ALLOWED_URI_REGEXP||z,Ge=e.NAMESPACE||We,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),Se&&(Ae=!1),ke&&(Re=!0),De&&(fe=w({},[...P]),me=[],!0===De.html&&(w(fe,x),w(me,O)),!0===De.svg&&(w(fe,T),w(me,L),w(me,M)),!0===De.svgFilters&&(w(fe,R),w(me,L),w(me,M)),!0===De.mathMl&&(w(fe,I),w(me,D),w(me,M))),e.ADD_TAGS&&(fe===he&&(fe=S(fe)),w(fe,e.ADD_TAGS,Xe)),e.ADD_ATTR&&(me===ge&&(me=S(me)),w(me,e.ADD_ATTR,Xe)),e.ADD_URI_SAFE_ATTR&&w(Fe,e.ADD_URI_SAFE_ATTR,Xe),e.FORBID_CONTENTS&&(Me===Ue&&(Me=S(Me)),w(Me,e.FORBID_CONTENTS,Xe)),Oe&&(fe["#text"]=!0),Ee&&w(fe,["html","head","body"]),fe.table&&(w(fe,["tbody"]),delete _e.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');X=e.TRUSTED_TYPES_POLICY,Q=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 o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(H,l)),null!==X&&"string"==typeof Q&&(Q=X.createHTML(""));i&&i(e),Qe=e}},nt=w({},["mi","mo","mn","ms","mtext"]),rt=w({},["foreignobject","desc","title","annotation-xml"]),ot=w({},["title","style","font","a","script"]),it=w({},T);w(it,R),w(it,k);const st=w({},I);w(st,N);const at=function(e){d(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},lt=function(e,t){try{d(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!me[e])if(Re||ke)try{at(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ct=function(e){let t=null,n=null;if(Te)e=""+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ze&&Ge===We&&(e=''+e+"");const r=X?X.createHTML(e):e;if(Ge===We)try{t=(new q).parseFromString(r,Ze)}catch(e){}if(!t||!t.documentElement){t=J.createDocument(Ge,"template",null);try{t.documentElement.innerHTML=$e?Q:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Ge===We?ne.call(t,Ee?"html":"body")[0]:Ee?t.documentElement:i},ut=function(e){return ee.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,null)},pt=function(e){return"function"==typeof C&&e instanceof C},dt=function(e,t,n){oe[e]&&u(oe[e],(e=>{e.call(r,t,n,Qe)}))},ft=function(e){let t=null;if(dt("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 o=Xe(e.nodeName);if(dt("uponSanitizeElement",e,{tagName:o,allowedTags:fe}),e.hasChildNodes()&&!pt(e.firstElementChild)&&b(/<[/\w]/g,e.innerHTML)&&b(/<[/\w]/g,e.textContent))return at(e),!0;if(!fe[o]||_e[o]){if(!_e[o]&&mt(o)){if(ye.tagNameCheck instanceof RegExp&&b(ye.tagNameCheck,o))return!1;if(ye.tagNameCheck instanceof Function&&ye.tagNameCheck(o))return!1}if(Oe&&!Me[o]){const t=K(e)||e.parentNode,n=Z(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(V(n[r],!0),Y(e))}return at(e),!0}return e instanceof U&&!function(e){let t=K(e);t&&t.tagName||(t={namespaceURI:Ge,tagName:"template"});const n=f(e.tagName),r=f(t.tagName);return!!Ve[e.namespaceURI]&&(e.namespaceURI===He?t.namespaceURI===We?"svg"===n:t.namespaceURI===ze?"svg"===n&&("annotation-xml"===r||nt[r]):Boolean(it[n]):e.namespaceURI===ze?t.namespaceURI===We?"math"===n:t.namespaceURI===He?"math"===n&&rt[r]:Boolean(st[n]):e.namespaceURI===We?!(t.namespaceURI===He&&!rt[r])&&!(t.namespaceURI===ze&&!nt[r])&&!st[n]&&(ot[n]||!it[n]):!("application/xhtml+xml"!==Ze||!Ve[e.namespaceURI]))}(e)?(at(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!b(/<\/no(script|embed|frames)/i,e.innerHTML)?(Se&&3===e.nodeType&&(t=e.textContent,u([ie,se,ae],(e=>{t=g(t,e," ")})),e.textContent!==t&&(d(r.removed,{element:e.cloneNode()}),e.textContent=t)),dt("afterSanitizeElements",e,null),!1):(at(e),!0)},ht=function(e,t,n){if(Ne&&("id"===t||"name"===t)&&(n in o||n in Je))return!1;if(Ae&&!be[t]&&b(le,t));else if(ve&&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(de,g(n,pe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!je[e])if(Ce&&!b(ue,g(n,pe,"")));else if(n)return!1;return!0},mt=function(e){return e.indexOf("-")>0},gt=function(e){dt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me};let o=t.length;for(;o--;){const i=t[o],{name:s,namespaceURI:a,value:l}=i,c=Xe(s);let d="value"===s?l:_(l);if(n.attrName=c,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,dt("uponSanitizeAttribute",e,n),d=n.attrValue,n.forceKeepAttr)continue;if(lt(s,e),!n.keepAttr)continue;if(!we&&b(/\/>/i,d)){lt(s,e);continue}Se&&u([ie,se,ae],(e=>{d=g(d,e," ")}));const f=Xe(e.nodeName);if(ht(f,c,d)){if(!Pe||"id"!==c&&"name"!==c||(lt(s,e),d="user-content-"+d),X&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(a);else switch(H.getAttributeType(f,c)){case"TrustedHTML":d=X.createHTML(d);break;case"TrustedScriptURL":d=X.createScriptURL(d)}try{a?e.setAttributeNS(a,s,d):e.setAttribute(s,d),p(r.removed)}catch(e){}}}dt("afterSanitizeAttributes",e,null)},yt=function e(t){let n=null;const r=ut(t);for(dt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)dt("uponSanitizeShadowNode",n,null),ft(n)||(n.content instanceof c&&e(n.content),gt(n));dt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,a=null;if($e=!e,$e&&(e="\x3c!--\x3e"),"string"!=typeof e&&!pt(e)){if("function"!=typeof e.toString)throw v("toString is not a function");if("string"!=typeof(e=e.toString()))throw v("dirty is not a string, aborting")}if(!r.isSupported)return e;if(xe||tt(t),r.removed=[],"string"==typeof e&&(Le=!1),Le){if(e.nodeName){const t=Xe(e.nodeName);if(!fe[t]||_e[t])throw v("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof C)n=ct("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!Re&&!Se&&!Ee&&-1===e.indexOf("<"))return X&&Ie?X.createHTML(e):e;if(n=ct(e),!n)return Re?null:Ie?Q:""}n&&Te&&at(n.firstChild);const l=ut(Le?e:n);for(;i=l.nextNode();)ft(i)||(i.content instanceof c&&yt(i.content),gt(i));if(Le)return e;if(Re){if(ke)for(a=te.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(me.shadowroot||me.shadowrootmode)&&(a=re.call(s,a,!0)),a}let p=Ee?n.outerHTML:n.innerHTML;return Ee&&fe["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&b(G,n.ownerDocument.doctype.name)&&(p="\n"+p),Se&&u([ie,se,ae],(e=>{p=g(p,e," ")})),X&&Ie?X.createHTML(p):p},r.setConfig=function(){tt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),xe=!0},r.clearConfig=function(){Qe=null,xe=!1},r.isValidAttribute=function(e,t,n){Qe||tt({});const r=Xe(e),o=Xe(t);return ht(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(oe[e]=oe[e]||[],d(oe[e],t))},r.removeHook=function(e){if(oe[e])return p(oe[e])},r.removeHooks=function(e){oe[e]&&(oe[e]=[])},r.removeAllHooks=function(){oe={}},r}()}()},286: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,o={},i=0,s={parse:function(n,r){var a=(r=r||{}).dynamicTyping||!1;if(A(a)&&(r.dynamicTypingFunction=a,a={}),r.dynamicTyping=a,r.transform=!!A(r.transform)&&r.transform,r.worker&&s.WORKERS_SUPPORTED){var l=function(){if(!s.WORKERS_SUPPORTED)return!1;var n,r,a=(n=t.URL||t.webkitURL||null,r=e.toString(),s.BLOB_URL||(s.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=i++,o[l.id]=l}();return l.userStep=r.step,l.userChunk=r.chunk,l.userComplete=r.complete,l.userError=r.error,r.step=A(r.step),r.chunk=A(r.chunk),r.complete=A(r.complete),r.error=A(r.error),delete r.worker,void l.postMessage({input:n,config:r,workerId:l.id})}var f=null;return s.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 p(r)):!0===n.readable&&A(n.read)&&A(n.on)?f=new d(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,o=",",i="\r\n",a='"',l=a+a,c=!1,u=null,p=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||s.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(o=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&&(i=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)&&(p=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var d=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 s="";"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:s.WORKER_ID,finished:c});else if(A(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||!A(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){A(this._config.error)?this._config.error(e):r&&this._config.error&&t.postMessage({workerId:s.WORKER_ID,error:e,finished:!1})}}function c(e){var t;(e=e||{}).chunkSize||(e.chunkSize=s.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=v(this._chunkLoaded,this),t.onerror=v(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 o=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+o)}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=s.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=v(this._chunkLoaded,this),t.onerror=v(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 p(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 d(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=v((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=v((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=v((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=v((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,o=Math.pow(2,53),i=-o,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,p=0,d=!1,f=!1,g=[],y={data:[],errors:[],meta:{}};if(A(e.step)){var _=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],_(y,c))}}}function v(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function C(){return y&&r&&(E("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(y.data=y.data.filter((function(e){return!v(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&&(s=e.transform(s,i)),s=S(i,s),"__parsed_extra"===i?(o[i]=o[i]||[],o[i].push(s)):o[i]=s}return e.header&&(r>g.length?E("FieldMismatch","TooManyFields","Too many fields: expected "+g.length+" fields but parsed "+r,p+n):r=r.length/2?"\r\n":"\r"}(o,l)),r=!1,e.delimiter)A(e.delimiter)&&(e.delimiter=e.delimiter(o),y.meta.delimiter=e.delimiter);else{var c=function(t,n,r,o,i){var a,l,c,u;i=i||[",","\t","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var p=0;p=a)return $(!0)}else for(B=u,u++;;){if(-1===(B=s.indexOf(t,B+1)))return f||C.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:v.length,index:u}),W();if(B===m-1)return W(s.substring(u,B).replace(j,t));if(t!==c||s[B+1]!==c){if(t===c||0===B||s[B-1]!==c){-1!==M&&M=a)return $(!0);break}C.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:v.length,index:u}),B++}}else B++}return W();function z(e){v.push(e),S=u}function H(e){var t=0;if(-1!==e){var n=s.substring(B+1,e);n&&""===n.trim()&&(t=n.length)}return t}function W(e){return f||(void 0===e&&(e=s.substring(u)),w.push(e),u=m,z(w),b&&V()),$()}function G(e){u=e,z(w),w=[],U=s.indexOf(r,u)}function $(e){return{data:v,errors:C,meta:{delimiter:n,linebreak:r,aborted:p,truncated:!!e,cursor:S+(d||0)}}}function V(){i($()),v=[],C=[]}},this.abort=function(){p=!0},this.getCharIndex=function(){return u}}function g(e){var t=e.data,n=o[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var i={abort:function(){r=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:_,resume:_};if(A(n.userStep)){for(var s=0;s{"use strict";var r=n(3586);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==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:i,resetWarningCache:o};return n.PropTypes=n,n}},3980:(e,t,n)=>{e.exports=n(8262)()},3586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1837:(e,t,n)=>{"use strict";var r=n(9196),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=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,i={},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)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},2322:(e,t,n)=>{"use strict";e.exports=n(1837)},8665:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.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)}},1173:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},7892:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},4036: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 o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},2464: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))}}},3140:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>Ut});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n2||W(D)>3?"":" "}function V(e,t){for(;--t&&F()&&!(D<48||D>102||D>57&&D<65||D>70&&D<97););return H(e,z()+(t<6&&32==q()&&32==F()))}function Y(e){for(;F();)switch(D){case e:return L;case 34:case 39:34!==e&&39!==e&&Y(D);break;case 40:41===e&&Y(e);break;case 92:F()}return L}function Z(e,t){for(;F()&&e+D!==57&&(e+D!==84||47!==q()););return"/*"+H(t,L-1)+"*"+b(47===e?e:F())}function K(e){for(;!W(q());)F();return H(e,L)}function X(e,t){for(var n="",r=0;r6)switch(E(e,t+1)){case 109:if(45!==E(e,t+4))break;case 102:return w(e,/(.+:)(.+)-([^]+)/,"$1"+p+"$2-$3$1"+u+(108==E(e,t+3)?"$3":"$2-$3"))+e;case 115:return~S(e,"stretch")?J(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,o,i,s,a){return c+n+":"+r+a+(o?c+n+"-span:"+(i?s:+s-+r)+a:"")+e}));case 4949:if(121===E(e,t+6))return w(e,":",":"+p)+e;break;case 6444:switch(E(e,45===E(e,14)?18:11)){case 120:return w(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+p+(45===E(e,14)?"inline-":"")+"box$3$1"+p+"$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=J(e.value,e.length,n));case g:return X([j(e,{value:w(e.value,"@","@"+p)})],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(j(e,{props:[w(t,/:(read-\w+)/,":"+u+"$1")]})),B(j(e,{props:[t]})),v(e,{props:I(n,r)});break;case"::placeholder":B(j(e,{props:[w(t,/:(plac\w+)/,":"+p+"input-$1")]})),B(j(e,{props:[w(t,/:(plac\w+)/,":"+u+"$1")]})),B(j(e,{props:[w(t,/:(plac\w+)/,c+"input-$1")]})),B(j(e,{props:[t]})),v(e,{props:I(n,r)})}return""}))}}function te(e){return function(e){return M="",e}(ne("",null,null,null,[""],e=function(e){return N=P=1,O=T(M=e),L=0,[]}(e),0,[0],e))}function ne(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,p=s,d=0,f=0,h=0,m=1,g=1,y=1,_=0,v="",A=o,C=i,x=r,R=v;g;)switch(h=_,_=F()){case 40:if(108!=h&&58==E(R,p-1)){-1!=S(R+=w(G(_),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:R+=G(_);break;case 9:case 10:case 13:case 32:R+=$(h);break;case 92:R+=V(z()-1,7);continue;case 47:switch(q()){case 42:case 47:k(oe(Z(F(),z()),t,n,l),l);break;default:R+="/"}break;case 123*m:a[c++]=T(R)*y;case 125*m:case 59:case 0:switch(_){case 0:case 125:g=0;case 59+u:-1==y&&(R=w(R,/\f/g,"")),f>0&&T(R)-p&&k(f>32?ie(R+";",r,n,p-1,l):ie(w(R," ","")+";",r,n,p-2,l),l);break;case 59:R+=";";default:if(k(x=re(R,t,n,c,u,o,a,v,A=[],C=[],p,i),i),123===_)if(0===u)ne(R,t,x,x,A,i,p,a,C);else switch(99===d&&110===E(R,3)?100:d){case 100:case 108:case 109:case 115:ne(e,x,x,r&&k(re(e,x,x,0,0,o,a,v,o,A=[],p,C),C),o,C,p,a,r?A:C);break;default:ne(R,x,x,x,[""],C,0,a,C)}}c=u=f=0,m=y=1,v=R="",p=s;break;case 58:p=1+T(R),f=h;default:if(m<1)if(123==_)--m;else if(125==_&&0==m++&&125==(D=L>0?E(M,--L):0,P--,10===D&&(P=1,N--),D))continue;switch(R+=b(_),_*m){case 38:y=u>0?1:(R+="\f",-1);break;case 44:a[c++]=(T(R)-1)*y,y=1;break;case 64:45===q()&&(R+=G(F())),d=q(),u=p=T(v=R+=K(z())),_++;break;case 45:45===h&&2==T(R)&&(m=0)}}return i}function re(e,t,n,r,o,i,s,a,l,c,u,p){for(var d=o-1,h=0===o?i:[""],m=R(h),g=0,y=0,b=0;g0?h[v]+" "+C:w(C,/&\f/g,h[v])))&&(l[b++]=S);return U(e,t,n,0===o?f:a,l,c,u,p)}function oe(e,t,n,r){return U(e,t,n,d,b(D),x(e,2,-2),0,r)}function ie(e,t,n,r,o){return U(e,t,n,h,x(e,0,r),x(e,r+1,-1),r,o)}const se={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([])),pe=Object.freeze({}),de=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 _e(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,ve=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ae=function(e){return ve(5381,e)};function Ce(e){return"string"==typeof e&&!0}var we="function"==typeof Symbol&&Symbol.for,Se=we?Symbol.for("react.memo"):60115,Ee=we?Symbol.for("react.forward_ref"):60112,xe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Te={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},ke=((be={})[Ee]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},be[Se]=Re,be);function Ie(e){return("type"in(t=e)&&t.type.$$typeof)===Se?Re:"$$typeof"in e?ke[e.$$typeof]:xe;var t}var Ne=Object.defineProperty,Pe=Object.getOwnPropertyNames,Oe=Object.getOwnPropertySymbols,Le=Object.getOwnPropertyDescriptor,De=Object.getPrototypeOf,Me=Object.prototype;function Ue(e,t,n){if("string"!=typeof t){if(Me){var r=De(t);r&&r!==Me&&Ue(e,r,n)}var o=Pe(t);Oe&&(o=o.concat(Oe(t)));for(var i=Ie(e),s=Ie(t),a=0;a0?" Args: ".concat(t.join(", ")):""))}var $e=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,o=r;e>=o;)if((o<<=1)<0)throw Ge(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i=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(s).concat(a,'{content:"').concat(l,'"}').concat("/*!sc*/\n")},i=0;i0?".".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))})),s.prefix&&u.push(ee),u.push(Q);var p=function(e,o,i,a){void 0===o&&(o=""),void 0===i&&(i=""),void 0===a&&(a="&"),t=a,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(pt,""),c=te(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);s.namespace&&(c=dt(c,s.namespace));var p,d,f,h=[];return X(c,(p=u.concat((f=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&f(e)})),d=R(p),function(e,t,n,r){for(var o="",i=0;i="A"&&e<="Z"};function Ct(e){for(var t="",n=0;n>>0);if(!t.hasNameForId(this.componentId,i)){var s=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,s)}r=Fe(r,i),this.staticRulesId=i}else{for(var a=ve(this.baseHash,n.hash),l="",c=0;c>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(l,".".concat(d),void 0,this.componentId)),r=Fe(r,d)}}return r},e}(),kt=s().createContext(void 0);kt.Consumer;var It={};function Nt(e,t,n){var o=Be(e),a=e,l=!Ce(e),c=t.attrs,u=void 0===c?ue:c,p=t.componentId,d=void 0===p?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 _e(Ae(e)>>>0)}("6.1.1"+n+It[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):p,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||d,g=o&&a.attrs?a.attrs.concat(u).filter(Boolean):u,y=t.shouldForwardProp;if(o&&a.shouldForwardProp){var _=a.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;y=function(e,t){return _(e,t)&&b(e,t)}}else y=_}var v=new Rt(n,m,o?a.componentStyle:void 0);function A(e,t){return function(e,t,n){var o=e.attrs,a=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.styledComponentId,p=e.target,d=s().useContext(kt),f=_t(),h=e.shouldForwardProp||f.shouldForwardProp,m=function(e,t,n){for(var o,i=r(r({},t),{className:void 0,theme:n}),s=0;s2&&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=qe([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 Ge(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Ge(2);var n=((t={})[ae]="",t["data-styled-version"]="6.1.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=nt();return o&&(n.nonce=o),[s().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 Ge(2);return s().createElement(bt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Ge(3)}}(),"__sc-".concat(ae,"__")},7091:(e,t,n)=>{"use strict";n.d(t,{default:()=>p});var r=n(2322),o=n(3980),i=n.n(o),s=n(3140),a=n(4210);const l=s.ZP.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:i().string.isRequired};const u=({className:e,onReset:t,onUpdate:n,onUpdateURL:o,value:i,valueURL:s})=>(0,r.jsx)(a.MediaPicker,{allowedTypes:["audio"],className:e,icon:"format-audio",onReset:t,onUpdate:n,onUpdateURL:o,preview:c,value:i,valueURL:s});u.defaultProps={className:"",onUpdateURL:null,valueURL:""},u.propTypes={className:i().string,onReset:i().func.isRequired,onUpdate:i().func.isRequired,onUpdateURL:i().func,value:i().number.isRequired,valueURL:i().string};const p=u},8522:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(2322),o=n(3980),i=n.n(o),s=n(5609);const a=({label:e,value:t,options:n,onChange:o})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.BaseControl,{label:e}),n.map((e=>(0,r.jsx)(s.CheckboxControl,{label:e.label,checked:t.includes(e.value),onChange:n=>{o(n?[...t,e.value]:[...t.filter((t=>t!==e.value))])}})))]});a.propTypes={label:i().string.isRequired,value:i().arrayOf(i().string).isRequired,options:i().arrayOf(i().shape({label:i().string.isRequired,value:i().string.isRequired})).isRequired,onChange:i().func.isRequired};const l=a},9395:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var r=n(2322),o=n(9196),i=n.n(o),s=n(5736),a=n(3980),l=n.n(a),c=n(7821);class u extends i().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,s.__)("Successfully read CSV data.","alley-scripts")}),r({[t]:JSON.stringify(e)})):this.setState({error:(0,s.__)("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,s.__)("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,s.__)("Error:","alley-scripts")})," ",e]}):null,""!==t?(0,r.jsxs)("div",{style:{color:"#0c0"},children:[(0,r.jsx)("strong",{children:(0,s.__)("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,s.__)("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}},5705:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var r=n(2322),o=n(5736),i=n(3980),s=n.n(i),a=n(3140),l=n(4210);const c=a.ZP.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,o.__)("Edit image","alley-scripts"),className:"edit-image-preview",src:e,title:(0,o.__)("Edit image","alley-scripts")})});u.propTypes={src:s().string.isRequired};const p=({className:e,imageSize:t,displayControlsInToolbar:n,onReset:o,onUpdate:i,onUpdateURL:s,value:a,valueURL:c})=>(0,r.jsx)(l.MediaPicker,{allowedTypes:["image"],className:e,icon:"format-image",imageSize:t,displayControlsInToolbar:n,onReset:o,onUpdate:i,onUpdateURL:s,preview:u,value:a,valueURL:c});p.defaultProps={className:"",imageSize:"thumbnail",displayControlsInToolbar:!1,onUpdateURL:null,valueURL:""},p.propTypes={className:s().string,imageSize:s().string,displayControlsInToolbar:s().bool,onReset:s().func.isRequired,onUpdate:s().func.isRequired,onUpdateURL:s().func,value:s().number.isRequired,valueURL:s().string};const d=p},4210:(e,t,n)=>{"use strict";n.d(t,{AudioPicker:()=>r.default,CSVUploader:()=>i.default,Checkboxes:()=>o.default,ImagePicker:()=>s.default,MediaPicker:()=>a.default,PostPicker:()=>c.default,PostSelector:()=>u.default,SafeHtml:()=>l.default,Selector:()=>p.default,TermSelector:()=>d.default,VideoPicker:()=>f.default});var r=n(7091),o=n(8522),i=n(9395),s=n(5705),a=n(3464),l=n(4285),c=n(9691),u=n(7267),p=n(7006),d=n(3866),f=n(3151)},3464:(e,t,n)=>{"use strict";n.d(t,{default:()=>m});var r=n(2322),o=n(3980),i=n.n(o),s=n(3140),a=n(2175),l=n(5609),c=n(9818),u=n(5736),p=n(7821);const d=s.ZP.div`
+ display: block;
+ position: relative;
+`,f=s.ZP.div`
+ background: white;
+ border: 1px solid black;
+ padding: 1em;
+`,h=({allowedTypes:e,className:t,icon:n,imageSize:o,displayControlsInToolbar:i,onReset:s,onUpdate:h,onUpdateURL:m,preview:g,value:y,valueURL:_})=>{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 v=b?(0,p.getMediaUrl)(b,o):_;return v?(0,r.jsxs)(d,{className:t,children:[g?(0,r.jsx)(g,{src:v}):(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:v,children:v})})]}),i?(0,r.jsx)(a.BlockControls,{group:"other",children:(0,r.jsx)(a.MediaReplaceFlow,{name:(0,u.__)("Edit Media","alley-scripts"),mediaId:y,mediaURL:v,allowedTypes:e,onSelect:h,onSelectURL:m,children:(0,r.jsx)(l.ToolbarButton,{isDestructive:!0,text:(0,u.__)("Remove","alley-scripts"),onClick:s})})}):(0,r.jsx)(l.Button,{variant:"primary",onClick:s,children:(0,u.__)("Reset","alley-scripts")})]}):(0,r.jsx)(d,{className:t,children:(0,r.jsx)(a.MediaPlaceholder,{allowedTypes:e,disableMediaButtons:!!_,icon:(0,r.jsx)(a.BlockIcon,{icon:n}),onSelect:h,onSelectURL:m,value:{id:y,src:v}})})};h.defaultProps={allowedTypes:[],className:"",icon:"format-aside",imageSize:"thumbnail",displayControlsInToolbar:!1,onUpdateURL:null,preview:null,valueURL:""},h.propTypes={allowedTypes:i().arrayOf(i().string),className:i().string,icon:i().string,imageSize:i().string,displayControlsInToolbar:i().bool,onReset:i().func.isRequired,onUpdate:i().func.isRequired,onUpdateURL:i().func,preview:i().element,value:i().number.isRequired,valueURL:i().string};const m=h},9691:(e,t,n)=>{"use strict";n.d(t,{default:()=>j});var r=n(2322),o=n(9307),i=n(3140),s=n(5609),a=n(5736),l=n(6483),c=n(8516),u=n(6062),p=n.n(u),d=n(4036),f=n.n(d),h=n(6793),m=n.n(h),g=n(7892),y=n.n(g),_=n(1173),b=n.n(_),v=n(2464),A=n.n(v),C=n(8992),w={};w.styleTagTransform=A(),w.setAttributes=y(),w.insert=m().bind(null,"head"),w.domAPI=f(),w.insertStyleElement=b(),p()(C.Z,w),C.Z&&C.Z.locals&&C.Z.locals;var S=n(6989),E=n.n(S),x=n(2779),T=n.n(x),R=n(1905),k={};k.styleTagTransform=A(),k.setAttributes=y(),k.insert=m().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=b(),p()(R.Z,k),R.Z&&R.Z.locals&&R.Z.locals;const I=window.wp.htmlEntities;var N=n(4285);const P=i.ZP.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 o=(0,c.useMedia)(n),i=o?.media_details?.sizes?.thumbnail?.source_url,s=o?.alt_text??"";return(0,r.jsxs)(P,{children:[i?(0,r.jsx)("img",{style:{maxWidth:"100%",height:"auto"},loading:"lazy",src:i,alt:s}):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:i,suppressPostIds:c=[]})=>{const[u,p]=(0,o.useState)(!1),[d,f]=(0,o.useState)([]),[h,m]=(0,o.useState)(!1),[g,y]=(0,o.useState)(0),[_,b]=(0,o.useState)({searchValue:"",page:1}),v=(0,o.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}();p(!0);const o=await E()({path:r,parse:!1});y(parseInt(o.headers.get("X-WP-TotalPages"),10));const i=await o.json();let s=i;t.page>1&&(s=[...d,...i]),n||(f(s),p(!1))}),[d,e,c]);return(0,o.useEffect)((()=>{let e=!1;return h||(m(!0),v(_,e)),()=>{e=!0}}),[v,h,_]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.TextControl,{value:_.searchValue,placeholder:(0,a.__)("Search...","alley-scripts"),label:(0,a.__)("Search","alley-scripts"),onChange:e=>{const t={..._,searchValue:e,page:1};b(t),v(t)}}),(0,r.jsxs)("div",{className:"alley-scripts-post-picker__post-list",children:[d?d.map((e=>(0,r.jsx)(s.Button,{className:T()({"alley-scripts-post-picker__post":!0,"is-selected":e.id===n}),onClick:()=>i(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)(s.Spinner,{}):null,g>0&&_.page{const e={..._,page:_.page+1};b(e),v(e)},children:(0,a.__)("Load More","alley-scripts")})}):null]})]})},D=({baseUrl:e,closeModal:t,modalTitle:n,onUpdate:i,searchRender:l,suppressPostIds:c=[]})=>{const[u,p]=(0,o.useState)();return(0,r.jsxs)(s.Modal,{isDismissible:!0,title:n,onRequestClose:t,closeButtonLabel:"Close",children:[(0,r.jsx)(L,{baseUrl:e,selected:u??0,setSelected:p,searchRender:l,suppressPostIds:c}),(0,r.jsxs)("div",{className:"alley-scripts-post-picker__buttons",children:[(0,r.jsx)(s.Button,{variant:"secondary",onClick:t,children:(0,a.__)("Cancel","alley-scripts")}),(0,r.jsx)(s.Button,{variant:"primary",onClick:()=>{u&&(i(u),t())},disabled:!u,children:(0,a.__)("Select","alley-scripts")})]})]})},M=i.ZP.div`
+ display: block;
+ position: relative;
+`,U=i.ZP.div`
+ border: 1px solid #eee;
+ display: flex;
+ flex-direction: column;
+ margin: 5px 0;
+ padding: 0.5rem 0.75rem;
+ text-align: center;
+`,j=({allowedTypes:e,className:t,getPostType:n,modalTitle:i=(0,a.__)("Select Post","alley-scripts"),onReset:u,onUpdate:p,params:d={},previewRender:f,replaceText:h=(0,a.__)("Replace","alley-scripts"),resetText:m=(0,a.__)("Reset","alley-scripts"),searchEndpoint:g="/wp/v2/search",searchRender:y,selectText:_=(0,a.__)("Select","alley-scripts"),suppressPostIds:b=[],title:v="",value:A=0})=>{const[C,w]=(0,o.useState)(!1),S=(0,l.addQueryArgs)(g,{type:"post",subtype:e??"any",...d}),E=(0,c.usePostById)(A,n),{featured_media:x,title:{rendered:T=""}={},type:R=""}=E||{},k=()=>{w(!0)};return 0!==A&&null===E?(0,r.jsx)(s.Spinner,{}):(0,r.jsxs)(M,{className:t,children:[v?(0,r.jsx)("h4",{children:v}):null,0!==A&&null!==E?(0,r.jsxs)(r.Fragment,{children:[void 0!==f?f(E):(0,r.jsx)(U,{children:(0,r.jsx)(O,{title:T,postType:R,attachmentID:x})}),(0,r.jsxs)(s.ButtonGroup,{children:[(0,r.jsx)(s.Button,{variant:"secondary",onClick:u,style:{margin:"0 4px"},children:m}),(0,r.jsx)(s.Button,{variant:"secondary",onClick:k,style:{margin:"0 4px"},children:h})]})]}):(0,r.jsx)(s.Button,{onClick:k,variant:"secondary",children:_}),C?(0,r.jsx)(D,{closeModal:()=>{w(!1)},baseUrl:S,modalTitle:i,onUpdate:p,searchRender:y,suppressPostIds:b}):null]})}},7267:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(2322),o=n(3980),i=n.n(o),s=n(5736),a=n(4210);const l=({className:e,emptyLabel:t,label:n,maxPages:o,multiple:i,onSelect:s,placeholder:l,subTypes:c,selected:u,threshold:p})=>(0,r.jsx)(a.Selector,{type:"post",className:e,emptyLabel:t,label:n,maxPages:o,multiple:i,onSelect:s,placeholder:l,subTypes:c,selected:u,threshold:p});l.defaultProps={className:"",emptyLabel:(0,s.__)("No posts found","alley-scripts"),label:(0,s.__)("Search for posts","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,s.__)("Search for posts","alley-scripts"),subTypes:[],selected:[],threshold:3},l.propTypes={className:i().string,emptyLabel:i().string,label:i().string,maxPages:i().number,multiple:i().bool,onSelect:i().func.isRequired,placeholder:i().string,subTypes:i().arrayOf(i().string),selected:i().arrayOf([i().shape({id:i().number,title:i().string})]),threshold:i().number};const c=l},4285:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(2322),o=n(5368),i=n.n(o),s=n(3980),a=n.n(s);const l=({className:e,html:t,tag:n})=>(0,r.jsx)(n,{className:e,dangerouslySetInnerHTML:{__html:i().sanitize(t)}});l.defaultProps={className:""},l.propTypes={className:a().string,html:a().string.isRequired,tag:a().string.isRequired};const c=l},7006:(e,t,n)=>{"use strict";n.d(t,{default:()=>j});var r=n(2322),o=n(3980),i=n.n(o),s=n(9307),a=n(6989),l=n.n(a),c=n(2779),u=n.n(c),p=n(5609),d=n(5736),f=n(6483);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 _=[];for(let e=0;e<256;++e)_.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 _[e[t+0]]+_[e[t+1]]+_[e[t+2]]+_[e[t+3]]+"-"+_[e[t+4]]+_[e[t+5]]+"-"+_[e[t+6]]+_[e[t+7]]+"-"+_[e[t+8]]+_[e[t+9]]+"-"+_[e[t+10]]+_[e[t+11]]+_[e[t+12]]+_[e[t+13]]+_[e[t+14]]+_[e[t+15]]}(r)};var v=n(8516);const A=({emptyLabel:e,error:t,id:n,isOpen:o,labelledbyId:i,loading:s,onSelect:a,options:l,selectedItems:c,threshold:f,value:h})=>{if(!s&&(""===h||f>h.length))return null;let m="",g="";return s?(m="loading",g=(0,d.__)("Loading...","alley-scripts")):t?(m="error",g=t):s||0!==l.length||(m="no-posts",g=e),s||!s&&(h&&0===l.length||t)?(0,r.jsx)("div",{"aria-busy":!0,className:u()("autocomplete__dropdown",{"autocomplete__dropdown--is-open":o}),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":o}),children:(0,r.jsx)("ul",{role:"listbox","aria-labelledby":i,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)(p.Button,{onClick:()=>a(e),type:"button",disabled:c.some((t=>t.id===e.id)),isTertiary:!0,children:e.title})},e.id)))})})};A.propTypes={emptyLabel:i().string.isRequired,error:i().string.isRequired,id:i().string.isRequired,isOpen:i().bool.isRequired,labelledbyId:i().string.isRequired,loading:i().bool.isRequired,options:i().arrayOf(i().shape({label:i().string,value:i().string})).isRequired,onSelect:i().func.isRequired,selectedItems:i().shape([]).isRequired,threshold:i().number.isRequired,value:i().string.isRequired};const C=A;var w=n(6062),S=n.n(w),E=n(4036),x=n.n(E),T=n(6793),R=n.n(T),k=n(7892),I=n.n(k),N=n(1173),P=n.n(N),O=n(2464),L=n.n(O),D=n(5458),M={};M.styleTagTransform=L(),M.setAttributes=I(),M.insert=R().bind(null,"head"),M.domAPI=x(),M.insertStyleElement=P(),S()(D.Z,M),D.Z&&D.Z.locals&&D.Z.locals;const U=({type:e,className:t,emptyLabel:n,label:o,maxPages:i,multiple:a,onSelect:c,placeholder:d,subTypes:h,selected:m,threshold:g})=>{const y=b(),[_,A]=(0,s.useState)(""),[w,S]=(0,s.useState)([]),[E,x]=(0,s.useState)(!1),[T,R]=(0,s.useState)(!1),[k,I]=(0,s.useState)(""),[N,P]=(0,s.useState)([]),O=(0,s.useRef)(),L=(0,v.useDebounce)(k,750),D=(0,s.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>i?i:t,e.json()})).then((e=>{S((t=>[...t,...e])),R(!1),(n&&n>t||t>=1&&a&&N.length>0)&&D(t+1)})).catch((e=>A(e.message)))}),[L,e,i,a,h,N.length,g]);(0,s.useEffect)((()=>{P(m)}),[m]),(0,s.useEffect)((()=>{L&&g<=L.length?D():S([])}),[L,D,g]);const M=e=>{x(O.current.contains(e.target))},U=e=>{"Escape"===e.key&&x(!1)};(0,s.useEffect)((()=>(document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)))),(0,s.useEffect)((()=>(O&&document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M))));const j=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],x(!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":E,"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:o})}),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)(p.Button,{className:"autocomplete__selection-list--item--button",isSecondary:!0,isSmall:!0,onClick:()=>j(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":E}),id:`autocomplete-${y}`,onChange:e=>I(e.target.value),onFocus:()=>x(!0),placeholder:d,type:"text",value:k})]}),(0,r.jsx)(C,{emptyLabel:n,error:_,labelledById:`autocomplete-${y}`,id:`listbox-${y}`,isOpen:E,loading:T&&L,onSelect:j,options:w,selectedItems:N,threshold:g,value:L})]})})};U.defaultProps={type:"post",className:"",emptyLabel:(0,d.__)("No items found","alley-scripts"),label:(0,d.__)("Search for items","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,d.__)("Search for items","alley-scripts"),subTypes:[],selected:[],threshold:3},U.propTypes={type:i().string,className:i().string,emptyLabel:i().string,label:i().string,maxPages:i().number,multiple:i().bool,onSelect:i().func.isRequired,placeholder:i().string,subTypes:i().arrayOf(i().string),selected:i().arrayOf([i().shape({id:i().number,title:i().string})]),threshold:i().number};const j=U},3866:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(2322),o=n(3980),i=n.n(o),s=n(5736),a=n(4210);const l=({className:e,emptyLabel:t,label:n,maxPages:o,multiple:i,onSelect:s,placeholder:l,subTypes:c,selected:u,threshold:p})=>(0,r.jsx)(a.Selector,{type:"term",className:e,emptyLabel:t,label:n,maxPages:o,multiple:i,onSelect:s,placeholder:l,subTypes:c,selected:u,threshold:p});l.defaultProps={className:"",emptyLabel:(0,s.__)("No terms found","alley-scripts"),label:(0,s.__)("Search for terms","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,s.__)("Search for terms","alley-scripts"),subTypes:[],selected:[],threshold:3},l.propTypes={className:i().string,emptyLabel:i().string,label:i().string,maxPages:i().number,multiple:i().bool,onSelect:i().func.isRequired,placeholder:i().string,subTypes:i().arrayOf(i().string),selected:i().arrayOf([i().shape({id:i().number,title:i().string})]),threshold:i().number};const c=l},3151:(e,t,n)=>{"use strict";n.d(t,{default:()=>p});var r=n(2322),o=n(3980),i=n.n(o),s=n(3140),a=n(4210);const l=s.ZP.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:i().string.isRequired};const u=({className:e,onReset:t,onUpdate:n,onUpdateURL:o,value:i,valueURL:s})=>(0,r.jsx)(a.MediaPicker,{allowedTypes:["video"],className:e,icon:"format-video",onReset:t,onUpdate:n,onUpdateURL:o,preview:c,value:i,valueURL:s});u.defaultProps={className:"",onUpdateURL:null,valueURL:""},u.propTypes={className:i().string,onReset:i().func.isRequired,onUpdate:i().func.isRequired,onUpdateURL:i().func,value:i().number.isRequired,valueURL:i().string};const p=u},8516:(e,t,n)=>{"use strict";n.d(t,{useCurrentPostId:()=>f.default,useDebounce:()=>r.default,useHasInnerBlocks:()=>o.default,useInnerBlocks:()=>s.default,useInnerBlocksAttributes:()=>a.default,useInnerBlocksCount:()=>l.default,useInnerBlocksIndex:()=>i.default,useMedia:()=>c.default,useParentBlock:()=>u.default,useParentBlockAttributes:()=>p.default,usePost:()=>d.default,usePostById:()=>h.default,usePostMeta:()=>m.default,usePostMetaValue:()=>g.default,usePosts:()=>y.default,useTerms:()=>_.default});var r=n(4623),o=n(5752),i=n(7898),s=n(3016),a=n(982),l=n(1371),c=n(4758),u=n(8111),p=n(2261),d=n(4733),f=n(6836),h=n(6853),m=n(4898),g=n(1752),y=n(2045),_=n(4639)},6836:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9818);const o=()=>(0,r.useSelect)((e=>{const t=e("core/editor");return t?t.getCurrentPostId():null}),[])},4623:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9307);const o=(e,t)=>{const[n,o]=(0,r.useState)(e);return(0,r.useEffect)((()=>{const n=setTimeout((()=>{o(e)}),t);return()=>{clearTimeout(n)}}),[e,t]),n}},5752:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(8516);const o=e=>(0,r.useInnerBlocksCount)(e)>0},7898:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(8516);const o=e=>{const t=(0,r.useParentBlock)(e),n=(0,r.useInnerBlocks)(t);return n?n.findIndex((t=>t.clientId===e)):-1}},982:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(8516);const o=e=>(0,r.useInnerBlocks)(e).map((e=>e.attributes))},1371:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(8516);const o=e=>(0,r.useInnerBlocks)(e).length},3016:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(2175),o=n(9818);const i=e=>(0,o.useSelect)((t=>t(r.store).getBlocks(e)),[e])},4758:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9818);const o=e=>(0,r.useSelect)((t=>t("core").getMedia(e)),[e])},2261:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(2175),o=n(9818);const i=e=>(0,o.useSelect)((t=>{const{getBlockAttributes:n,getBlockRootClientId:o}=t(r.store),i=o(e);return i?n(i):null}),[e])},8111:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(2175),o=n(9818);const i=e=>(0,o.useSelect)((t=>{const{getBlock:n,getBlockRootClientId:o}=t(r.store),i=o(e);return i?n(i):null}),[e])},6853:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(9307),o=n(6989),i=n.n(o),s=n(6483),a=n(4733);const l=(e,t=null)=>{const[n,o]=(0,r.useState)({});return(0,r.useEffect)((()=>{e&&!n[e]&&(async()=>{if(t){const n=await t(e);n?o((t=>({...t,[e]:n}))):console.error(`Custom function to get post with ID ${e} failed.`)}else{const t=(0,s.addQueryArgs)("/wp/v2/search",{include:e}),n=await i()({path:t});o((t=>({...t,[e]:n[0].subtype})))}})()}),[e]),(0,a.default)(e,n[e]??"")}},1752:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(8516);const o=(e,t=null,n=null)=>{const[o,i]=(0,r.usePostMeta)(t,n);return[o[e],t=>i({...o,[e]:t})]}},4898:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(7798),o=n(9818);const i=(e=null,t=null)=>{const n=(0,o.useSelect)((t=>e||t("core/editor").getCurrentPostType()),[]),[i,s]=(0,r.useEntityProp)("postType",n,"meta",t),a="function"==typeof s?s:()=>console.error(`Error attempting to set post meta for post type ${n}. Does it have support for custom-fields?`);return["object"==typeof i?i:{},e=>a({...e})]}},4733:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9818);const o=(e,t="post")=>(0,r.useSelect)((n=>n("core").getEntityRecord("postType",t,e)),[e,t])},2045:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(9818);const o=(e,t="post")=>(0,r.useSelect)((n=>{const{getEntityRecords:r}=n("core");return r("postType",t,{include:e})}),[e,t])},4639:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(7798),o=n(9818);const i=(e=null,t=null,n="categories")=>{const i=(0,o.useSelect)((t=>e||t("core/editor").getCurrentPostType()),[]),[s,a]=(0,r.useEntityProp)("postType",i,n,t);return[s,e=>a(e)]}},7821:(e,t,n)=>{"use strict";n.d(t,{getMediaUrl:()=>s.Z,parseCSVFile:()=>i});var r=n(286),o=n.n(r);const i=e=>new Promise(((t,n)=>{o().parse(e,{complete:e=>t(e.data),dynamicTyping:!0,error:e=>n(e),header:!0,skipEmptyLines:!0})}));var s=n(6291)},6291:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(e,t="full")=>{const{media_details:{sizes:{[t]:{source_url:n=""}={},full:{source_url:r=""}={}}={}}={},sizes:{[t]:{url:o=""}={},full:{url:i=""}={}}={},source_url:s="",url:a=""}=e;return o||n||i||r||a||s||""}},9196:e=>{"use strict";e.exports=window.React},6989:e=>{"use strict";e.exports=window.wp.apiFetch},2175:e=>{"use strict";e.exports=window.wp.blockEditor},5609:e=>{"use strict";e.exports=window.wp.components},7798:e=>{"use strict";e.exports=window.wp.coreData},9818:e=>{"use strict";e.exports=window.wp.data},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},6483:e=>{"use strict";e.exports=window.wp.url}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.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,TermSelector:()=>e.TermSelector,VideoPicker:()=>e.VideoPicker,getMediaUrl:()=>o.getMediaUrl,parseCSVFile:()=>o.parseCSVFile,useCurrentPostId:()=>t.useCurrentPostId,useDebounce:()=>t.useDebounce,useHasInnerBlocks:()=>t.useHasInnerBlocks,useInnerBlocks:()=>t.useInnerBlocks,useInnerBlocksAttributes:()=>t.useInnerBlocksAttributes,useInnerBlocksCount:()=>t.useInnerBlocksCount,useInnerBlocksIndex:()=>t.useInnerBlocksIndex,useMedia:()=>t.useMedia,useParentBlock:()=>t.useParentBlock,useParentBlockAttributes:()=>t.useParentBlockAttributes,usePost:()=>t.usePost,usePostById:()=>t.usePostById,usePostMeta:()=>t.usePostMeta,usePostMetaValue:()=>t.usePostMetaValue,usePosts:()=>t.usePosts,useTerms:()=>t.useTerms});var e=n(4210),t=n(8516),o=n(7821)})(),r})(),e.exports=t()},856:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:s,create:a}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),s||(s=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),p=C(Array.prototype.pop),d=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),_=C(String.prototype.trim),b=C(RegExp.prototype.test),v=(A=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:f;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function S(e){for(let t=0;t/gm),F=s(/\${[\w\W]*}/gm),q=s(/^data-[\-\w.\u00B7-\uFFFF]/),z=s(/^aria-[\-\w]+$/),H=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=s(/^(?:\w+script|data):/i),G=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=s(/^html$/i);var V=Object.freeze({__proto__:null,MUSTACHE_EXPR:j,ERB_EXPR:B,TMPLIT_EXPR:F,DATA_ATTR:q,ARIA_ATTR:z,IS_ALLOWED_URI:H,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:G,DOCTYPE_NAME:$});const Y=function(){return"undefined"==typeof window?null:window};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y();const r=e=>t(e);if(r.version="3.0.8",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;let{document:o}=n;const s=o,l=s.currentScript,{DocumentFragment:c,HTMLTemplateElement:A,Node:C,Element:S,NodeFilter:j,NamedNodeMap:B=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:F,DOMParser:q,trustedTypes:z}=n,W=S.prototype,G=x(W,"cloneNode"),Z=x(W,"nextSibling"),K=x(W,"childNodes"),X=x(W,"parentNode");if("function"==typeof A){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let Q,J="";const{implementation:ee,createNodeIterator:te,createDocumentFragment:ne,getElementsByTagName:re}=o,{importNode:oe}=s;let ie={};r.isSupported="function"==typeof e&&"function"==typeof X&&ee&&void 0!==ee.createHTMLDocument;const{MUSTACHE_EXPR:se,ERB_EXPR:ae,TMPLIT_EXPR:le,DATA_ATTR:ce,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:pe,ATTR_WHITESPACE:de}=V;let{IS_ALLOWED_URI:fe}=V,he=null;const me=w({},[...T,...R,...k,...N,...O]);let ge=null;const ye=w({},[...L,...D,...M,...U]);let _e=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}})),be=null,ve=null,Ae=!0,Ce=!0,we=!1,Se=!0,Ee=!1,xe=!1,Te=!1,Re=!1,ke=!1,Ie=!1,Ne=!1,Pe=!0,Oe=!1,Le=!0,De=!1,Me={},Ue=null;const je=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 Be=null;const Fe=w({},["audio","video","img","source","image","track"]);let qe=null;const ze=w({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),He="http://www.w3.org/1998/Math/MathML",We="http://www.w3.org/2000/svg",Ge="http://www.w3.org/1999/xhtml";let $e=Ge,Ve=!1,Ye=null;const Ze=w({},[He,We,Ge],h);let Ke=null;const Xe=["application/xhtml+xml","text/html"];let Qe=null,Je=null;const et=o.createElement("form"),tt=function(e){return e instanceof RegExp||e instanceof Function},nt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Je||Je!==e){if(e&&"object"==typeof e||(e={}),e=E(e),Ke=-1===Xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Qe="application/xhtml+xml"===Ke?h:f,he="ALLOWED_TAGS"in e?w({},e.ALLOWED_TAGS,Qe):me,ge="ALLOWED_ATTR"in e?w({},e.ALLOWED_ATTR,Qe):ye,Ye="ALLOWED_NAMESPACES"in e?w({},e.ALLOWED_NAMESPACES,h):Ze,qe="ADD_URI_SAFE_ATTR"in e?w(E(ze),e.ADD_URI_SAFE_ATTR,Qe):ze,Be="ADD_DATA_URI_TAGS"in e?w(E(Fe),e.ADD_DATA_URI_TAGS,Qe):Fe,Ue="FORBID_CONTENTS"in e?w({},e.FORBID_CONTENTS,Qe):je,be="FORBID_TAGS"in e?w({},e.FORBID_TAGS,Qe):{},ve="FORBID_ATTR"in e?w({},e.FORBID_ATTR,Qe):{},Me="USE_PROFILES"in e&&e.USE_PROFILES,Ae=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,we=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Se=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ee=e.SAFE_FOR_TEMPLATES||!1,xe=e.WHOLE_DOCUMENT||!1,ke=e.RETURN_DOM||!1,Ie=e.RETURN_DOM_FRAGMENT||!1,Ne=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,Pe=!1!==e.SANITIZE_DOM,Oe=e.SANITIZE_NAMED_PROPS||!1,Le=!1!==e.KEEP_CONTENT,De=e.IN_PLACE||!1,fe=e.ALLOWED_URI_REGEXP||H,$e=e.NAMESPACE||Ge,_e=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_e.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_e.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(_e.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ee&&(Ce=!1),Ie&&(ke=!0),Me&&(he=w({},O),ge=[],!0===Me.html&&(w(he,T),w(ge,L)),!0===Me.svg&&(w(he,R),w(ge,D),w(ge,U)),!0===Me.svgFilters&&(w(he,k),w(ge,D),w(ge,U)),!0===Me.mathMl&&(w(he,N),w(ge,M),w(ge,U))),e.ADD_TAGS&&(he===me&&(he=E(he)),w(he,e.ADD_TAGS,Qe)),e.ADD_ATTR&&(ge===ye&&(ge=E(ge)),w(ge,e.ADD_ATTR,Qe)),e.ADD_URI_SAFE_ATTR&&w(qe,e.ADD_URI_SAFE_ATTR,Qe),e.FORBID_CONTENTS&&(Ue===je&&(Ue=E(Ue)),w(Ue,e.FORBID_CONTENTS,Qe)),Le&&(he["#text"]=!0),xe&&w(he,["html","head","body"]),he.table&&(w(he,["tbody"]),delete be.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=e.TRUSTED_TYPES_POLICY,J=Q.createHTML("")}else void 0===Q&&(Q=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 o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML(e){return e},createScriptURL(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(z,l)),null!==Q&&"string"==typeof J&&(J=Q.createHTML(""));i&&i(e),Je=e}},rt=w({},["mi","mo","mn","ms","mtext"]),ot=w({},["foreignobject","desc","title","annotation-xml"]),it=w({},["title","style","font","a","script"]),st=w({},[...R,...k,...I]),at=w({},[...N,...P]),lt=function(e){d(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},ct=function(e,t){try{d(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ge[e])if(ke||Ie)try{lt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ut=function(e){let t=null,n=null;if(Re)e=""+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ke&&$e===Ge&&(e=''+e+"");const r=Q?Q.createHTML(e):e;if($e===Ge)try{t=(new q).parseFromString(r,Ke)}catch(e){}if(!t||!t.documentElement){t=ee.createDocument($e,"template",null);try{t.documentElement.innerHTML=Ve?J:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),$e===Ge?re.call(t,xe?"html":"body")[0]:xe?t.documentElement:i},pt=function(e){return te.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,null)},dt=function(e){return"function"==typeof C&&e instanceof C},ft=function(e,t,n){ie[e]&&u(ie[e],(e=>{e.call(r,t,n,Je)}))},ht=function(e){let t=null;if(ft("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 lt(e),!0;var n;const o=Qe(e.nodeName);if(ft("uponSanitizeElement",e,{tagName:o,allowedTags:he}),e.hasChildNodes()&&!dt(e.firstElementChild)&&b(/<[/\w]/g,e.innerHTML)&&b(/<[/\w]/g,e.textContent))return lt(e),!0;if(!he[o]||be[o]){if(!be[o]&>(o)){if(_e.tagNameCheck instanceof RegExp&&b(_e.tagNameCheck,o))return!1;if(_e.tagNameCheck instanceof Function&&_e.tagNameCheck(o))return!1}if(Le&&!Ue[o]){const t=X(e)||e.parentNode,n=K(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(G(n[r],!0),Z(e))}return lt(e),!0}return e instanceof S&&!function(e){let t=X(e);t&&t.tagName||(t={namespaceURI:$e,tagName:"template"});const n=f(e.tagName),r=f(t.tagName);return!!Ye[e.namespaceURI]&&(e.namespaceURI===We?t.namespaceURI===Ge?"svg"===n:t.namespaceURI===He?"svg"===n&&("annotation-xml"===r||rt[r]):Boolean(st[n]):e.namespaceURI===He?t.namespaceURI===Ge?"math"===n:t.namespaceURI===We?"math"===n&&ot[r]:Boolean(at[n]):e.namespaceURI===Ge?!(t.namespaceURI===We&&!ot[r])&&!(t.namespaceURI===He&&!rt[r])&&!at[n]&&(it[n]||!st[n]):!("application/xhtml+xml"!==Ke||!Ye[e.namespaceURI]))}(e)?(lt(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!b(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ee&&3===e.nodeType&&(t=e.textContent,u([se,ae,le],(e=>{t=g(t,e," ")})),e.textContent!==t&&(d(r.removed,{element:e.cloneNode()}),e.textContent=t)),ft("afterSanitizeElements",e,null),!1):(lt(e),!0)},mt=function(e,t,n){if(Pe&&("id"===t||"name"===t)&&(n in o||n in et))return!1;if(Ce&&!ve[t]&&b(ce,t));else if(Ae&&b(ue,t));else if(!ge[t]||ve[t]){if(!(gt(e)&&(_e.tagNameCheck instanceof RegExp&&b(_e.tagNameCheck,e)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(e))&&(_e.attributeNameCheck instanceof RegExp&&b(_e.attributeNameCheck,t)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(t))||"is"===t&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&b(_e.tagNameCheck,n)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(n))))return!1}else if(qe[t]);else if(b(fe,g(n,de,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Be[e])if(we&&!b(pe,g(n,de,"")));else if(n)return!1;return!0},gt=function(e){return e.indexOf("-")>0},yt=function(e){ft("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ge};let o=t.length;for(;o--;){const i=t[o],{name:s,namespaceURI:a,value:l}=i,c=Qe(s);let d="value"===s?l:_(l);if(n.attrName=c,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,ft("uponSanitizeAttribute",e,n),d=n.attrValue,n.forceKeepAttr)continue;if(ct(s,e),!n.keepAttr)continue;if(!Se&&b(/\/>/i,d)){ct(s,e);continue}Ee&&u([se,ae,le],(e=>{d=g(d,e," ")}));const f=Qe(e.nodeName);if(mt(f,c,d)){if(!Oe||"id"!==c&&"name"!==c||(ct(s,e),d="user-content-"+d),Q&&"object"==typeof z&&"function"==typeof z.getAttributeType)if(a);else switch(z.getAttributeType(f,c)){case"TrustedHTML":d=Q.createHTML(d);break;case"TrustedScriptURL":d=Q.createScriptURL(d)}try{a?e.setAttributeNS(a,s,d):e.setAttribute(s,d),p(r.removed)}catch(e){}}}ft("afterSanitizeAttributes",e,null)},_t=function e(t){let n=null;const r=pt(t);for(ft("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)ft("uponSanitizeShadowNode",n,null),ht(n)||(n.content instanceof c&&e(n.content),yt(n));ft("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,a=null;if(Ve=!e,Ve&&(e="\x3c!--\x3e"),"string"!=typeof e&&!dt(e)){if("function"!=typeof e.toString)throw v("toString is not a function");if("string"!=typeof(e=e.toString()))throw v("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Te||nt(t),r.removed=[],"string"==typeof e&&(De=!1),De){if(e.nodeName){const t=Qe(e.nodeName);if(!he[t]||be[t])throw v("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof C)n=ut("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!ke&&!Ee&&!xe&&-1===e.indexOf("<"))return Q&&Ne?Q.createHTML(e):e;if(n=ut(e),!n)return ke?null:Ne?J:""}n&&Re&<(n.firstChild);const l=pt(De?e:n);for(;i=l.nextNode();)ht(i)||(i.content instanceof c&&_t(i.content),yt(i));if(De)return e;if(ke){if(Ie)for(a=ne.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(ge.shadowroot||ge.shadowrootmode)&&(a=oe.call(s,a,!0)),a}let p=xe?n.outerHTML:n.innerHTML;return xe&&he["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&b($,n.ownerDocument.doctype.name)&&(p="\n"+p),Ee&&u([se,ae,le],(e=>{p=g(p,e," ")})),Q&&Ne?Q.createHTML(p):p},r.setConfig=function(){nt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Te=!0},r.clearConfig=function(){Je=null,Te=!1},r.isValidAttribute=function(e,t,n){Je||nt({});const r=Qe(e),o=Qe(t);return mt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(ie[e]=ie[e]||[],d(ie[e],t))},r.removeHook=function(e){if(ie[e])return p(ie[e])},r.removeHooks=function(e){ie[e]&&(ie[e]=[])},r.removeAllHooks=function(){ie={}},r}()}()},703:function(e,t,n){"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==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:i,resetWarningCache:o};return n.PropTypes=n,n}},697:function(e,t,n){e.exports=n(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(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=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.plugins,t=window.React,r=n.n(t),o=function(){return r().createElement("svg",{enableBackground:"new 0 0 26.77438 26.77438",height:"26.77438px",version:"1.1",viewBox:"0 0 26.77438 26.77438",width:"26.77438px",x:"0px",xmlns:"http://www.w3.org/2000/svg",y:"0px"},r().createElement("g",null,r().createElement("g",null,r().createElement("g",null,r().createElement("path",{d:"M4.71813,13.5345v4.77055l0.00002,0.65257 c0,0.0568-0.00002,0.11365,0.00035,0.17044c0.00025,0.04783,0.00081,0.0957,0.00209,0.14355 c0.00283,0.10423,0.00899,0.20939,0.02751,0.31251c0.01879,0.10458,0.04945,0.20193,0.0978,0.29693 c0.04756,0.0934,0.10962,0.17891,0.1837,0.253c0.07406,0.07407,0.15948,0.13619,0.25284,0.18372 c0.09503,0.0484,0.19239,0.07911,0.29701,0.09791c0.10299,0.01855,0.20809,0.02465,0.31225,0.02748 c0.04783,0.0013,0.09566,0.00183,0.14351,0.00215c0.05676,0.00033,0.11354,0.00031,0.17035,0.00031l0.65231,0.00002h4.77141 c0.13713,0,0.1819-0.18436,0.05989-0.24694c-2.91487-1.49526-5.22884-3.80922-6.72409-6.72407 c-0.02514-0.04903-0.06995-0.07114-0.11456-0.07114C4.78411,13.40348,4.71813,13.45246,4.71813,13.5345 M6.20869,4.71816 c-0.05692,0-0.11382,0.00002-0.17074,0.00035C5.99004,4.71878,5.9421,4.71937,5.89418,4.72066 C5.78975,4.72349,5.68438,4.72962,5.58112,4.74818C5.47637,4.76705,5.37885,4.79772,5.28367,4.84613 C5.1901,4.89378,5.10448,4.95595,5.03024,5.03016C4.95604,5.10438,4.8938,5.18993,4.84622,5.28341 c-0.0485,0.09524-0.07925,0.19277-0.09809,0.29751C4.72958,5.68414,4.72344,5.78941,4.72059,5.89376 C4.71932,5.94165,4.71875,5.98955,4.7185,6.03746c-0.00035,0.048-0.00037,0.09602-0.00037,0.14401v0.02665v1.96427 c0,0.40087,0.07796,0.6084,0.37512,0.90561l10.99255,10.9925c0.30093,0.30094,0.50562,0.37513,0.90561,0.37513h1.96366 c0.05688,0,0.11384,0,0.17074-0.00036c0.04794-0.00028,0.09584-0.00084,0.14378-0.00216 c0.10446-0.00281,0.20978-0.00894,0.31304-0.02751c0.10479-0.01884,0.20229-0.04954,0.29747-0.09796 c0.09358-0.04766,0.17919-0.10981,0.25338-0.18402c0.07428-0.07423,0.13647-0.15976,0.18408-0.25323 c0.04852-0.09524,0.07924-0.19277,0.09809-0.29752c0.01855-0.10318,0.0247-0.20845,0.0275-0.31283 c0.0013-0.04788,0.00187-0.09577,0.00214-0.14376c0.00031-0.04819,0.00034-0.09648,0.00034-0.14476v-1.99007 c0-0.40094-0.07794-0.60844-0.37513-0.90564L9.07799,5.09329C8.77706,4.79237,8.57234,4.71818,8.17237,4.71816H6.20869 M13.53452,4.71816c-0.13717,0-0.18194,0.18436-0.05994,0.24694c2.9149,1.49524,5.22883,3.8092,6.72409,6.72407 c0.06261,0.12206,0.24697,0.07725,0.24697-0.05992V6.85873l-0.00005-0.65257c0-0.05679,0.00005-0.11363-0.00028-0.17043 c-0.00027-0.04786-0.00084-0.0957-0.00216-0.14353c-0.0028-0.10428-0.00891-0.20943-0.02746-0.31252 c-0.0188-0.1046-0.04947-0.20194-0.09784-0.29695c-0.0475-0.09343-0.10962-0.17888-0.18367-0.25297 c-0.0741-0.0741-0.15947-0.1362-0.25285-0.18375c-0.09504-0.04841-0.19239-0.0791-0.297-0.09789 c-0.10299-0.01854-0.2081-0.02468-0.31226-0.02751c-0.04781-0.00125-0.09565-0.00183-0.14348-0.00211 c-0.0568-0.00035-0.1136-0.00032-0.17037-0.00032l-0.65233-0.00002H13.53452"})))))},i=n(373),s=window.wp.apiFetch,a=n.n(s),l=window.wp.data,c=window.wp.editPost,u=window.wp.i18n,p=n(856),d=n.n(p),f=window.wp.components,h=n(697),m=n.n(h);function g(e){let{coverImageCaption:t,coverImageId:n,onChangeCoverImageCaption:o,onChangeCoverImageId:s}=e;return r().createElement(f.PanelBody,{initialOpen:!1,title:(0,u.__)("Cover Image","apple-news")},r().createElement(f.BaseControl,null,r().createElement(i.ImagePicker,{onReset:()=>s(0),onUpdate:e=>{let{id:t}=e;return s(t)},value:n})),r().createElement(f.TextareaControl,{help:(0,u.__)("This is optional and can be left blank.","apple-news"),label:(0,u.__)("Caption","apple-news"),onChange:o,placeholder:(0,u.__)("Add an image caption here.","apple-news"),value:t}))}g.propTypes={coverImageCaption:m().string.isRequired,coverImageId:m().number.isRequired,onChangeCoverImageCaption:m().func.isRequired,onChangeCoverImageId:m().func.isRequired};var y=g;function _(e){let{maturityRating:t,onChangeMaturityRating:n}=e;return r().createElement(f.PanelBody,{initialOpen:!1,title:(0,u.__)("Maturity Rating","apple-news")},r().createElement(f.SelectControl,{help:(0,u.__)("Select the optional maturity rating for this post.","apple-news"),label:(0,u.__)("Select Maturity Rating","apple-news"),onChange:n,options:[{label:"",value:""},{label:(0,u.__)("Kids","apple-news"),value:"KIDS"},{label:(0,u.__)("Mature","apple-news"),value:"MATURE"},{label:(0,u.__)("General","apple-news"),value:"GENERAL"}],value:t}))}_.propTypes={maturityRating:m().string.isRequired,onChangeMaturityRating:m().func.isRequired};var b=_;const v={key:m().string.isRequired,type:m().oneOf(["array","boolean","number","string"]),value:m().oneOfType([m().arrayOf(m().string),m().bool,m().number,m().string])},A={id:m().string.isRequired,name:m().string.isRequired};var C=(e,t,n,r)=>{const o=e.map((e=>({...e})));return o[r][t]=n,o};function w(e){let{isHidden:t,isPaid:n,isPreview:o,isSponsored:i,metadata:s,onChangeIsHidden:a,onChangeIsPaid:l,onChangeIsPreview:c,onChangeIsSponsored:p,onChangeMetadata:d,onChangeSuppressVideoURL:h,onChangeUseImageComponent:m,suppressVideoURL:g,useImageComponent:y}=e;return r().createElement(f.PanelBody,{initialOpen:!1,title:(0,u.__)("Metadata","apple-news")},r().createElement(f.CheckboxControl,{checked:n,help:(0,u.__)("Check this to indicate that viewing the article requires a paid subscription. Note that Apple must approve your channel for paid content before using this feature.","apple-news"),label:(0,u.__)("Paid Article","apple-news"),onChange:l}),r().createElement(f.CheckboxControl,{checked:o,help:(0,u.__)("Check this to publish the article as a draft.","apple-news"),label:(0,u.__)("Preview Article","apple-news"),onChange:c}),r().createElement(f.CheckboxControl,{checked:t,help:(0,u.__)("Check this to publish the article as a hidden article. Hidden articles are visible to users who have a link to the article, but do not appear in feeds.","apple-news"),label:(0,u.__)("Hidden Article","apple-news"),onChange:a}),r().createElement(f.CheckboxControl,{checked:i,help:(0,u.__)("Check this to indicate this article is sponsored content.","apple-news"),label:(0,u.__)("Sponsored Article","apple-news"),onChange:p}),r().createElement(f.CheckboxControl,{checked:g,help:(0,u.__)("Check this to prevent video thumbnails for this article.","apple-news"),label:(0,u.__)("Do not set videoURL metadata for this article","apple-news"),onChange:h}),r().createElement(f.CheckboxControl,{checked:y,help:(0,u.__)("Check this to use an Image instead of a Photo component for images in this article.","apple-news"),label:(0,u.__)("Use Image component for images.","apple-news"),onChange:m}),r().createElement("h3",null,(0,u.__)("Custom Metadata","apple-news")),s.map(((e,t)=>{let{key:n,type:o,value:i}=e;return r().createElement("div",{key:t},r().createElement(f.TextControl,{label:(0,u.__)("Key","apple-news"),onChange:e=>d(C(s,"key",e,t)),value:n}),r().createElement(f.SelectControl,{label:(0,u.__)("Type","apple-news"),onChange:e=>d(C(s,"type",e,t)),options:[{label:(0,u.__)("string","apple-news"),value:"string"},{label:(0,u.__)("boolean","apple-news"),value:"boolean"},{label:(0,u.__)("number","apple-news"),value:"number"},{label:(0,u.__)("array","apple-news"),value:"array"}],value:o}),"boolean"===o?r().createElement(f.SelectControl,{label:(0,u.__)("Value","apple-news"),onChange:e=>d(C(s,"value","true"===e,t)),options:[{label:(0,u.__)("","apple-news"),value:""},{label:(0,u.__)("true","apple-news"),value:"true"},{label:(0,u.__)("false","apple-news"),value:"false"}],value:i}):r().createElement(f.TextControl,{label:(0,u.__)("Value","apple-news"),onChange:e=>d(C(s,"value","number"===o?parseFloat(e):e,t)),type:"number"===o?"number":"text",value:i}),r().createElement(f.Button,{isDestructive:!0,onClick:()=>d(((e,t)=>e.filter(((e,n)=>t!==n)))(s,t)),style:{marginBottom:"1em"}},(0,u.__)("Remove","apple-news")))})),r().createElement(f.Button,{isPrimary:!0,onClick:()=>d([...s,{key:"",type:"string",value:""}])},(0,u.__)("Add Metadata","apple-news")))}w.propTypes={isHidden:m().bool.isRequired,isPaid:m().bool.isRequired,isPreview:m().bool.isRequired,isSponsored:m().bool.isRequired,metadata:m().arrayOf(m().shape(v)).isRequired,onChangeIsHidden:m().func.isRequired,onChangeIsPaid:m().func.isRequired,onChangeIsPreview:m().func.isRequired,onChangeIsSponsored:m().func.isRequired,onChangeMetadata:m().func.isRequired,onChangeSuppressVideoURL:m().func.isRequired,onChangeUseImageComponent:m().func.isRequired,suppressVideoURL:m().bool.isRequired,useImageComponent:m().bool.isRequired};var S=w;function E(e){let{apiAutosync:t,apiAutosyncDelete:n,apiAutosyncUpdate:o,deletePost:i,loading:s,postIsDirty:a,postStatus:l,publishPost:c,publishState:p,updatePost:d,userCanPublish:h}=e;return"publish"===l&&h?s?r().createElement(f.Spinner,null):r().createElement(r().Fragment,null,a?r().createElement("div",{className:"components-notice is-warning"},r().createElement("strong",null,(0,u.__)("Please click the Update button above to ensure that all changes are saved before publishing to Apple News.","apple-news"))):null,"N/A"===p||o?null:r().createElement(f.Button,{isPrimary:!0,onClick:d,style:{margin:"1em"}},(0,u.__)("Update","apple-news")),"N/A"===p||n?null:r().createElement(f.Button,{isSecondary:!0,onClick:i,style:{margin:"1em"}},(0,u.__)("Delete","apple-news")),"N/A"!==p||t?null:r().createElement(f.Button,{isPrimary:!0,onClick:c,style:{margin:"1em"}},(0,u.__)("Publish","apple-news"))):null}E.propTypes={apiAutosync:m().bool.isRequired,apiAutosyncDelete:m().bool.isRequired,apiAutosyncUpdate:m().bool.isRequired,deletePost:m().func.isRequired,loading:m().bool.isRequired,postIsDirty:m().bool.isRequired,postStatus:m().string.isRequired,publishPost:m().func.isRequired,publishState:m().string.isRequired,updatePost:m().func.isRequired,userCanPublish:m().bool.isRequired};var x=E;function T(e){let{apiId:t,dateCreated:n,dateModified:o,revision:i,shareUrl:s,publishState:a}=e;return a&&"N/A"!==a?r().createElement(f.PanelBody,{initialOpen:!1,title:(0,u.__)("Publish Information","apple-news")},r().createElement("h3",null,(0,u.__)("API Id","apple-news")),r().createElement("p",null,t),r().createElement("h3",null,(0,u.__)("Created On","apple-news")),r().createElement("p",null,n),r().createElement("h3",null,(0,u.__)("Last Updated On","apple-news")),r().createElement("p",null,o),r().createElement("h3",null,(0,u.__)("Share URL","apple-news")),r().createElement("p",null,s),r().createElement("h3",null,(0,u.__)("Revision","apple-news")),r().createElement("p",null,i),r().createElement("h3",null,(0,u.__)("Publish State","apple-news")),r().createElement("p",null,a)):null}T.propTypes={apiId:m().string.isRequired,dateCreated:m().string.isRequired,dateModified:m().string.isRequired,revision:m().string.isRequired,shareUrl:m().string.isRequired,publishState:m().string.isRequired};var R=T;function k(e){let{onChangePullquotePosition:t,onChangePullquoteText:n,pullquotePosition:o,pullquoteText:i}=e;return r().createElement(f.PanelBody,{initialOpen:!1,title:(0,u.__)("Pull Quote","apple-news")},r().createElement(f.TextareaControl,{help:(0,u.__)("A pull quote is a key phrase, quotation, or excerpt that has been pulled from an article and used as a graphic element, serving to entice readers into the article or to highlight a key topic. This is optional and can be left blank.","apple-news"),label:(0,u.__)("Pull Quote Text","apple-news"),onChange:n,value:i}),r().createElement(f.SelectControl,{help:(0,u.__)("The position in the article where the pull quote will appear.","apple-news"),label:(0,u.__)("Pull Quote Position","apple-news"),onChange:t,options:[{label:(0,u.__)("top","apple-news"),value:"top"},{label:(0,u.__)("middle","apple-news"),value:"middle"},{label:(0,u.__)("bottom","apple-news"),value:"bottom"}],value:o||"middle"}))}k.propTypes={onChangePullquotePosition:m().func.isRequired,onChangePullquoteText:m().func.isRequired,pullquotePosition:m().string.isRequired,pullquoteText:m().string.isRequired};var I=k;function N(e){let{autoAssignCategories:t,automaticAssignment:n,onChangeAutoAssignCategories:o,onChangeSelectedSections:i,sections:s,selectedSections:a}=e;return r().createElement(f.PanelBody,{initialOpen:!1,title:(0,u.__)("Sections","apple-news")},Array.isArray(s)&&0!==s.length?r().createElement(r().Fragment,null,n?r().createElement(f.CheckboxControl,{checked:t,label:(0,u.__)("Assign sections by category","apple-news"),onChange:o}):null,n&&!t?r().createElement("hr",null):null,n&&t?null:r().createElement(f.BaseControl,{help:(0,u.__)("Select the sections in which to publish this article. If none are selected, it will be published to the default section.","apple-news")},s.map((e=>{let{id:t,name:n}=e;return r().createElement(f.CheckboxControl,{checked:a.includes(t),key:t,label:n,onChange:()=>i(t)})})))):r().createElement(f.Spinner,null))}N.propTypes={autoAssignCategories:m().bool.isRequired,automaticAssignment:m().bool.isRequired,onChangeAutoAssignCategories:m().func.isRequired,onChangeSelectedSections:m().func.isRequired,sections:m().arrayOf(m().shape(A)).isRequired,selectedSections:m().arrayOf(m().string).isRequired};var P=N;function O(e){let{onChangeSlug:t,slug:n}=e;return r().createElement(f.PanelBody,{initialOpen:!1,title:(0,u.__)("Slug","apple-news")},r().createElement(f.TextControl,{help:(0,u.__)("A word or phrase that will appear near the title, if the Slug component is enabled in theme settings. This is optional and can be left blank.","apple-news"),label:(0,u.__)("Slug Text","apple-news"),onChange:t,value:n}))}O.propTypes={onChangeSlug:m().func.isRequired,slug:m().string.isRequired};var L=O,D=e=>{const t=(e=>{try{return JSON.parse(e)}catch(e){return null}})(e);return Array.isArray(t)?t:[]};(0,e.registerPlugin)("publish-to-apple-news",{icon:r().createElement(o,null),render:function(){const[e,n]=(0,t.useState)({autoAssignCategories:!1,loading:!1,publishState:"N/A",sections:[],settings:{apiAutosync:!1,apiAutosyncDelete:!1,apiAutosyncUpdate:!1,automaticAssignment:!1},userCanPublish:!1}),{autoAssignCategories:o,loading:s,publishState:p,sections:f,settings:{apiAutosync:h,apiAutosyncDelete:m,apiAutosyncUpdate:g,automaticAssignment:_},userCanPublish:v}=e,A=(0,l.useDispatch)("core/notices"),{notices:C,postId:w,postIsDirty:E,postStatus:T}=(0,l.useSelect)((e=>{const t=e("core/editor");return{notices:t.getEditedPostAttribute("apple_news_notices"),postId:t.getCurrentPostId(),postIsDirty:t.isEditedPostDirty(),postStatus:t.getEditedPostAttribute("status")}})),[{apple_news_api_created_at:k,apple_news_api_id:N,apple_news_api_modified_at:O,apple_news_api_revision:M,apple_news_api_share_url:U}]=(0,i.usePostMeta)(),[j,B]=(0,i.usePostMetaValue)("apple_news_coverimage"),[F,q]=(0,i.usePostMetaValue)("apple_news_coverimage_caption"),[z,H]=(0,i.usePostMetaValue)("apple_news_is_hidden"),[W,G]=(0,i.usePostMetaValue)("apple_news_is_paid"),[$,V]=(0,i.usePostMetaValue)("apple_news_is_preview"),[Y,Z]=(0,i.usePostMetaValue)("apple_news_is_sponsored"),[K,X]=(0,i.usePostMetaValue)("apple_news_maturity_rating"),[Q,J]=(0,i.usePostMetaValue)("apple_news_metadata"),[ee,te]=(0,i.usePostMetaValue)("apple_news_pullquote"),[ne,re]=(0,i.usePostMetaValue)("apple_news_pullquote_position"),[oe,ie]=(0,i.usePostMetaValue)("apple_news_sections"),[se,ae]=(0,i.usePostMetaValue)("apple_news_slug"),[le,ce]=(0,i.usePostMetaValue)("apple_news_suppress_video_url"),[ue,pe]=(0,i.usePostMetaValue)("apple_news_use_image_component"),de=D(Q),fe=D(oe),he=e=>ie(JSON.stringify(e)),me=(0,t.useCallback)((function(e){return"success"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success")?A.createInfoNotice(d().sanitize(e),{type:"snackbar"}):A.createErrorNotice(e,{__unstableHTML:!0})}),[A]),ge=async t=>{n({...e,loading:!0});try{const{notifications:r=[],publishState:o=""}=await a()({data:{id:w},method:"POST",path:`/apple-news/v1/${t}`});r.forEach((e=>me(e.message,e.type))),n({...e,loading:!1,publishState:o})}catch(t){me(t.message,"error"),n({...e,loading:!1})}};return(0,t.useEffect)((()=>{(async()=>{const t=[await a()({path:`/apple-news/v1/get-published-state/${w}`}),await a()({path:"/apple-news/v1/sections"}),await a()({path:"/apple-news/v1/get-settings"}),await a()({path:`/apple-news/v1/user-can-publish/${w}`})];try{const r=await Promise.all(t);n({...e,autoAssignCategories:(null===fe||0===fe.length)&&!0===r[2].automaticAssignment,...r[0],sections:r[1],settings:r[2],...r[3]})}catch(e){me(e.message,"error")}})()}),[]),(0,t.useEffect)((()=>{Array.isArray(C)&&C.length?C.forEach((e=>me(e.message,e.type))):console.log("Notices dispatched, but none to display.")}),[me,C]),r().createElement(r().Fragment,null,r().createElement(c.PluginSidebarMoreMenuItem,{target:"publish-to-apple-news"},(0,u.__)("Apple News Options","apple-news")),r().createElement(c.PluginSidebar,{name:"publish-to-apple-news",title:(0,u.__)("Publish to Apple News Options","apple-news")},r().createElement(P,{autoAssignCategories:o,automaticAssignment:_,onChangeAutoAssignCategories:t=>{n({...e,autoAssignCategories:t}),he([])},onChangeSelectedSections:e=>he(fe.includes(e)?fe.filter((t=>t!==e)):[...fe,e]),sections:f,selectedSections:fe}),r().createElement(S,{isHidden:z,isPaid:W,isPreview:$,isSponsored:Y,metadata:de,onChangeIsHidden:H,onChangeIsPaid:G,onChangeIsPreview:V,onChangeIsSponsored:Z,onChangeMetadata:e=>J(JSON.stringify(e)),onChangeSuppressVideoURL:ce,onChangeUseImageComponent:pe,suppressVideoURL:le,useImageComponent:ue}),r().createElement(b,{maturityRating:K,onChangeMaturityRating:X}),r().createElement(L,{onChangeSlug:ae,slug:se}),r().createElement(I,{onChangePullquotePosition:re,onChangePullquoteText:te,pullquotePosition:ne,pullquoteText:ee}),r().createElement(y,{coverImageCaption:F,coverImageId:j,onChangeCoverImageCaption:q,onChangeCoverImageId:B}),"N/A"!==p?r().createElement(R,{apiId:N,dateCreated:k,dateModified:O,publishState:p,revision:M,shareUrl:U}):null,r().createElement(x,{apiAutosync:h,apiAutosyncDelete:m,apiAutosyncUpdate:g,deletePost:()=>ge("delete"),loading:s,postIsDirty:E,postStatus:T,publishPost:()=>ge("publish"),publishState:p,updatePost:()=>ge("update"),userCanPublish:v})))}})}()}();
+//# sourceMappingURL=pluginSidebar.js.map
\ No newline at end of file
diff --git a/build/pluginSidebar.js.LICENSE.txt b/build/pluginSidebar.js.LICENSE.txt
new file mode 100644
index 00000000..8bbae05c
--- /dev/null
+++ b/build/pluginSidebar.js.LICENSE.txt
@@ -0,0 +1 @@
+/*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */
diff --git a/build/pluginSidebar.js.map b/build/pluginSidebar.js.map
new file mode 100644
index 00000000..1045ed43
--- /dev/null
+++ b/build/pluginSidebar.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"pluginSidebar.js","mappings":";mCACC,IAAWA,EAAmNC,KAAnND,EAAwN,IAAK,MAAM,IAAIE,EAAE,CAAC,KAAK,CAACA,EAAEF,KAAK,IAAIG,GAAG,WAAW,aAAa,IAAIC,EAAE,CAAC,EAAEC,eAAe,SAASC,IAAI,IAAI,IAAIJ,EAAE,GAAGF,EAAE,EAAEA,EAAEO,UAAUC,OAAOR,IAAI,CAAC,IAAIG,EAAEI,UAAUP,GAAG,GAAGG,EAAE,CAAC,IAAIM,SAASN,EAAE,GAAG,WAAWM,GAAG,WAAWA,EAAEP,EAAEQ,KAAKP,QAAQ,GAAGQ,MAAMC,QAAQT,IAAI,GAAGA,EAAEK,OAAO,CAAC,IAAIK,EAAEP,EAAEQ,MAAM,KAAKX,GAAGU,GAAGX,EAAEQ,KAAKG,EAAE,OAAO,GAAG,WAAWJ,EAAE,CAAC,GAAGN,EAAEY,WAAWC,OAAOC,UAAUF,WAAWZ,EAAEY,SAASA,WAAWG,SAAS,iBAAiB,CAAChB,EAAEQ,KAAKP,EAAEY,YAAY,QAAQ,CAAC,IAAI,IAAII,KAAKhB,EAAEC,EAAEgB,KAAKjB,EAAEgB,IAAIhB,EAAEgB,IAAIjB,EAAEQ,KAAKS,EAAE,CAAC,CAAC,CAAC,OAAOjB,EAAEmB,KAAK,IAAI,CAACnB,EAAEoB,SAAShB,EAAEiB,QAAQjB,EAAEJ,EAAEoB,QAAQhB,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kBAAmBA,EACnBC,kBAAmBA,EACnBC,WAAYA,IAAMoE,GAAW,UAC7BxW,QAASA,EACTqS,YAAaA,EACbC,WAAYA,EACZC,YAAaA,IAAMiE,GAAW,WAC9BhE,aAAcA,EACdC,WAAYA,IAAM+D,GAAW,UAC7B9D,eAAgBA,KAK1B","sources":["webpack://publish-to-apple-news/./node_modules/@alleyinteractive/block-editor-tools/build/index.bundle.min.js","webpack://publish-to-apple-news/./node_modules/dompurify/dist/purify.js","webpack://publish-to-apple-news/./node_modules/prop-types/factoryWithThrowingShims.js","webpack://publish-to-apple-news/./node_modules/prop-types/index.js","webpack://publish-to-apple-news/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://publish-to-apple-news/webpack/bootstrap","webpack://publish-to-apple-news/webpack/runtime/compat get default export","webpack://publish-to-apple-news/webpack/runtime/define property getters","webpack://publish-to-apple-news/webpack/runtime/hasOwnProperty shorthand","webpack://publish-to-apple-news/external window [\"wp\",\"plugins\"]","webpack://publish-to-apple-news/external window \"React\"","webpack://publish-to-apple-news/./assets/js/components/icon/index.jsx","webpack://publish-to-apple-news/external window [\"wp\",\"apiFetch\"]","webpack://publish-to-apple-news/external window [\"wp\",\"data\"]","webpack://publish-to-apple-news/external window [\"wp\",\"editPost\"]","webpack://publish-to-apple-news/external window [\"wp\",\"i18n\"]","webpack://publish-to-apple-news/external window [\"wp\",\"components\"]","webpack://publish-to-apple-news/./assets/js/pluginsidebar/panels/cover-image.jsx","webpack://publish-to-apple-news/./assets/js/pluginsidebar/panels/maturity-rating.jsx","webpack://publish-to-apple-news/./assets/js/config/prop-types.js","webpack://publish-to-apple-news/./assets/js/util/delete-at-index.js","webpack://publish-to-apple-news/./assets/js/util/update-value-at-index.js","webpack://publish-to-apple-news/./assets/js/pluginsidebar/panels/metadata.jsx","webpack://publish-to-apple-news/./assets/js/pluginsidebar/panels/publish-controls.jsx","webpack://publish-to-apple-news/./assets/js/pluginsidebar/panels/publish-info.jsx","webpack://publish-to-apple-news/./assets/js/pluginsidebar/panels/pull-quote.jsx","webpack://publish-to-apple-news/./assets/js/pluginsidebar/panels/sections.jsx","webpack://publish-to-apple-news/./assets/js/pluginsidebar/panels/slug.jsx","webpack://publish-to-apple-news/./assets/js/util/safe-json-parse-array.js","webpack://publish-to-apple-news/./assets/js/util/safe-json-parse.js","webpack://publish-to-apple-news/./assets/js/pluginsidebar/index.jsx","webpack://publish-to-apple-news/./assets/js/pluginsidebar/sidebar.jsx"],"sourcesContent":["/*! For license information please see index.bundle.min.js.LICENSE.txt */\n!function(e,t){if(\"object\"==typeof exports&&\"object\"==typeof module)module.exports=t();else if(\"function\"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)(\"object\"==typeof exports?exports:e)[r]=n[r]}}(self,(()=>(()=>{var e={2779:(e,t)=>{var n;!function(){\"use strict\";var r={}.hasOwnProperty;function s(){for(var e=[],t=0;t{\"use strict\";n.d(t,{Z:()=>a});var r=n(272),s=n.n(r),o=n(2609),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},8992:(e,t,n)=>{\"use strict\";n.d(t,{Z:()=>a});var r=n(272),s=n.n(r),o=n(2609),i=n.n(o)()(s());i.push([e.id,\".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:\"AAAA,2BACE,UAAA,CAGF,oCACE,UAAA,CACA,aAAA,CACA,gBAAA,CACA,UAAA,CAEA,2CACE,UAAA\",sourcesContent:[\".components-modal__content {\\n width: 90vw;\\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},5458:(e,t,n)=>{\"use strict\";n.d(t,{Z:()=>a});var r=n(272),s=n.n(r),o=n(2609),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},2609: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}},272: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\")}},5368: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),A=C(RegExp.prototype.test),b=(_=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 w(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});const Y=function(){return\"undefined\"==typeof window?null:window};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y();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,V=S(H,\"cloneNode\"),Z=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:ee,createNodeIterator:te,createDocumentFragment:ne,getElementsByTagName:re}=s,{importNode:se}=i;let oe={};r.isSupported=\"function\"==typeof e&&\"function\"==typeof Q&&ee&&void 0!==ee.createHTMLDocument;const{MUSTACHE_EXPR:ie,ERB_EXPR:ae,TMPLIT_EXPR:le,DATA_ATTR:ce,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:de,ATTR_WHITESPACE:pe}=G;let{IS_ALLOWED_URI:fe}=G,he=null;const me=x({},[...k,...E,...R,...I,...P]);let ge=null;const ye=x({},[...O,...L,...j,...D]);let ve=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}})),Ae=null,be=null,_e=!0,Ce=!0,xe=!1,we=!0,Se=!1,ke=!1,Ee=!1,Re=!1,Te=!1,Ie=!1,Ne=!1,Pe=!0,Oe=!1,Le=!0,je=!1,De={},Ue=null;const Me=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 Be=null;const Fe=x({},[\"audio\",\"video\",\"img\",\"source\",\"image\",\"track\"]);let ze=null;const qe=x({},[\"alt\",\"class\",\"for\",\"id\",\"label\",\"name\",\"pattern\",\"placeholder\",\"role\",\"summary\",\"title\",\"value\",\"style\",\"xmlns\"]),$e=\"http://www.w3.org/1998/Math/MathML\",He=\"http://www.w3.org/2000/svg\",We=\"http://www.w3.org/1999/xhtml\";let Ge=We,Ye=!1,Ve=null;const Ze=x({},[$e,He,We],h);let Ke=null;const Qe=[\"application/xhtml+xml\",\"text/html\"];let Je=null,Xe=null;const et=s.createElement(\"form\"),tt=function(e){return e instanceof RegExp||e instanceof Function},nt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Xe||Xe!==e){if(e&&\"object\"==typeof e||(e={}),e=w(e),Ke=Ke=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?\"text/html\":e.PARSER_MEDIA_TYPE,Je=\"application/xhtml+xml\"===Ke?h:f,he=\"ALLOWED_TAGS\"in e?x({},e.ALLOWED_TAGS,Je):me,ge=\"ALLOWED_ATTR\"in e?x({},e.ALLOWED_ATTR,Je):ye,Ve=\"ALLOWED_NAMESPACES\"in e?x({},e.ALLOWED_NAMESPACES,h):Ze,ze=\"ADD_URI_SAFE_ATTR\"in e?x(w(qe),e.ADD_URI_SAFE_ATTR,Je):qe,Be=\"ADD_DATA_URI_TAGS\"in e?x(w(Fe),e.ADD_DATA_URI_TAGS,Je):Fe,Ue=\"FORBID_CONTENTS\"in e?x({},e.FORBID_CONTENTS,Je):Me,Ae=\"FORBID_TAGS\"in e?x({},e.FORBID_TAGS,Je):{},be=\"FORBID_ATTR\"in e?x({},e.FORBID_ATTR,Je):{},De=\"USE_PROFILES\"in e&&e.USE_PROFILES,_e=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,xe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,we=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Se=e.SAFE_FOR_TEMPLATES||!1,ke=e.WHOLE_DOCUMENT||!1,Te=e.RETURN_DOM||!1,Ie=e.RETURN_DOM_FRAGMENT||!1,Ne=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,Pe=!1!==e.SANITIZE_DOM,Oe=e.SANITIZE_NAMED_PROPS||!1,Le=!1!==e.KEEP_CONTENT,je=e.IN_PLACE||!1,fe=e.ALLOWED_URI_REGEXP||q,Ge=e.NAMESPACE||We,ve=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ve.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ve.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&\"boolean\"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ve.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Se&&(Ce=!1),Ie&&(Te=!0),De&&(he=x({},[...P]),ge=[],!0===De.html&&(x(he,k),x(ge,O)),!0===De.svg&&(x(he,E),x(ge,L),x(ge,D)),!0===De.svgFilters&&(x(he,R),x(ge,L),x(ge,D)),!0===De.mathMl&&(x(he,I),x(ge,j),x(ge,D))),e.ADD_TAGS&&(he===me&&(he=w(he)),x(he,e.ADD_TAGS,Je)),e.ADD_ATTR&&(ge===ye&&(ge=w(ge)),x(ge,e.ADD_ATTR,Je)),e.ADD_URI_SAFE_ATTR&&x(ze,e.ADD_URI_SAFE_ATTR,Je),e.FORBID_CONTENTS&&(Ue===Me&&(Ue=w(Ue)),x(Ue,e.FORBID_CONTENTS,Je)),Le&&(he[\"#text\"]=!0),ke&&x(he,[\"html\",\"head\",\"body\"]),he.table&&(x(he,[\"tbody\"]),delete Ae.tbody),e.TRUSTED_TYPES_POLICY){if(\"function\"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw b('TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.');if(\"function\"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw b('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}},rt=x({},[\"mi\",\"mo\",\"mn\",\"ms\",\"mtext\"]),st=x({},[\"foreignobject\",\"desc\",\"title\",\"annotation-xml\"]),ot=x({},[\"title\",\"style\",\"font\",\"a\",\"script\"]),it=x({},E);x(it,R),x(it,T);const at=x({},I);x(at,N);const lt=function(e){p(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},ct=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&&!ge[e])if(Te||Ie)try{lt(t)}catch(e){}else try{t.setAttribute(e,\"\")}catch(e){}},ut=function(e){let t=null,n=null;if(Re)e=\"\"+e;else{const t=m(e,/^[\\r\\n\\t ]+/);n=t&&t[0]}\"application/xhtml+xml\"===Ke&&Ge===We&&(e=''+e+\"\");const r=J?J.createHTML(e):e;if(Ge===We)try{t=(new z).parseFromString(r,Ke)}catch(e){}if(!t||!t.documentElement){t=ee.createDocument(Ge,\"template\",null);try{t.documentElement.innerHTML=Ye?X:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(s.createTextNode(n),o.childNodes[0]||null),Ge===We?re.call(t,ke?\"html\":\"body\")[0]:ke?t.documentElement:o},dt=function(e){return te.call(e.ownerDocument||e,e,M.SHOW_ELEMENT|M.SHOW_COMMENT|M.SHOW_TEXT,null)},pt=function(e){return\"function\"==typeof C&&e instanceof C},ft=function(e,t,n){oe[e]&&u(oe[e],(e=>{e.call(r,t,n,Xe)}))},ht=function(e){let t=null;if(ft(\"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 lt(e),!0;var n;const s=Je(e.nodeName);if(ft(\"uponSanitizeElement\",e,{tagName:s,allowedTags:he}),e.hasChildNodes()&&!pt(e.firstElementChild)&&A(/<[/\\w]/g,e.innerHTML)&&A(/<[/\\w]/g,e.textContent))return lt(e),!0;if(!he[s]||Ae[s]){if(!Ae[s]&>(s)){if(ve.tagNameCheck instanceof RegExp&&A(ve.tagNameCheck,s))return!1;if(ve.tagNameCheck instanceof Function&&ve.tagNameCheck(s))return!1}if(Le&&!Ue[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(V(n[r],!0),Z(e))}return lt(e),!0}return e instanceof U&&!function(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:Ge,tagName:\"template\"});const n=f(e.tagName),r=f(t.tagName);return!!Ve[e.namespaceURI]&&(e.namespaceURI===He?t.namespaceURI===We?\"svg\"===n:t.namespaceURI===$e?\"svg\"===n&&(\"annotation-xml\"===r||rt[r]):Boolean(it[n]):e.namespaceURI===$e?t.namespaceURI===We?\"math\"===n:t.namespaceURI===He?\"math\"===n&&st[r]:Boolean(at[n]):e.namespaceURI===We?!(t.namespaceURI===He&&!st[r])&&!(t.namespaceURI===$e&&!rt[r])&&!at[n]&&(ot[n]||!it[n]):!(\"application/xhtml+xml\"!==Ke||!Ve[e.namespaceURI]))}(e)?(lt(e),!0):\"noscript\"!==s&&\"noembed\"!==s&&\"noframes\"!==s||!A(/<\\/no(script|embed|frames)/i,e.innerHTML)?(Se&&3===e.nodeType&&(t=e.textContent,u([ie,ae,le],(e=>{t=g(t,e,\" \")})),e.textContent!==t&&(p(r.removed,{element:e.cloneNode()}),e.textContent=t)),ft(\"afterSanitizeElements\",e,null),!1):(lt(e),!0)},mt=function(e,t,n){if(Pe&&(\"id\"===t||\"name\"===t)&&(n in s||n in et))return!1;if(Ce&&!be[t]&&A(ce,t));else if(_e&&A(ue,t));else if(!ge[t]||be[t]){if(!(gt(e)&&(ve.tagNameCheck instanceof RegExp&&A(ve.tagNameCheck,e)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(e))&&(ve.attributeNameCheck instanceof RegExp&&A(ve.attributeNameCheck,t)||ve.attributeNameCheck instanceof Function&&ve.attributeNameCheck(t))||\"is\"===t&&ve.allowCustomizedBuiltInElements&&(ve.tagNameCheck instanceof RegExp&&A(ve.tagNameCheck,n)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(n))))return!1}else if(ze[t]);else if(A(fe,g(n,pe,\"\")));else if(\"src\"!==t&&\"xlink:href\"!==t&&\"href\"!==t||\"script\"===e||0!==y(n,\"data:\")||!Be[e])if(xe&&!A(de,g(n,pe,\"\")));else if(n)return!1;return!0},gt=function(e){return e.indexOf(\"-\")>0},yt=function(e){ft(\"beforeSanitizeAttributes\",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:\"\",attrValue:\"\",keepAttr:!0,allowedAttributes:ge};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,ft(\"uponSanitizeAttribute\",e,n),p=n.attrValue,n.forceKeepAttr)continue;if(ct(i,e),!n.keepAttr)continue;if(!we&&A(/\\/>/i,p)){ct(i,e);continue}Se&&u([ie,ae,le],(e=>{p=g(p,e,\" \")}));const f=Je(e.nodeName);if(mt(f,c,p)){if(!Oe||\"id\"!==c&&\"name\"!==c||(ct(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){}}}ft(\"afterSanitizeAttributes\",e,null)},vt=function e(t){let n=null;const r=dt(t);for(ft(\"beforeSanitizeShadowDOM\",t,null);n=r.nextNode();)ft(\"uponSanitizeShadowNode\",n,null),ht(n)||(n.content instanceof c&&e(n.content),yt(n));ft(\"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(Ye=!e,Ye&&(e=\"\\x3c!--\\x3e\"),\"string\"!=typeof e&&!pt(e)){if(\"function\"!=typeof e.toString)throw b(\"toString is not a function\");if(\"string\"!=typeof(e=e.toString()))throw b(\"dirty is not a string, aborting\")}if(!r.isSupported)return e;if(Ee||nt(t),r.removed=[],\"string\"==typeof e&&(je=!1),je){if(e.nodeName){const t=Je(e.nodeName);if(!he[t]||Ae[t])throw b(\"root node is forbidden and cannot be sanitized in-place\")}}else if(e instanceof C)n=ut(\"\\x3c!----\\x3e\"),s=n.ownerDocument.importNode(e,!0),1===s.nodeType&&\"BODY\"===s.nodeName||\"HTML\"===s.nodeName?n=s:n.appendChild(s);else{if(!Te&&!Se&&!ke&&-1===e.indexOf(\"<\"))return J&&Ne?J.createHTML(e):e;if(n=ut(e),!n)return Te?null:Ne?X:\"\"}n&&Re&<(n.firstChild);const l=dt(je?e:n);for(;o=l.nextNode();)ht(o)||(o.content instanceof c&&vt(o.content),yt(o));if(je)return e;if(Te){if(Ie)for(a=ne.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(ge.shadowroot||ge.shadowrootmode)&&(a=se.call(i,a,!0)),a}let d=ke?n.outerHTML:n.innerHTML;return ke&&he[\"!doctype\"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&A(W,n.ownerDocument.doctype.name)&&(d=\"\\n\"+d),Se&&u([ie,ae,le],(e=>{d=g(d,e,\" \")})),J&&Ne?J.createHTML(d):d},r.setConfig=function(){nt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ee=!0},r.clearConfig=function(){Xe=null,Ee=!1},r.isValidAttribute=function(e,t,n){Xe||nt({});const r=Je(e),s=Je(t);return mt(r,s,n)},r.addHook=function(e,t){\"function\"==typeof t&&(oe[e]=oe[e]||[],p(oe[e],t))},r.removeHook=function(e){if(oe[e])return d(oe[e])},r.removeHooks=function(e){oe[e]&&(oe[e]=[])},r.removeAllHooks=function(){oe={}},r}()}()},286: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=b(this._chunkLoaded,this),t.onerror=b(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=b(this._chunkLoaded,this),t.onerror=b(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=b((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=b((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=b((function(){this._streamCleanUp(),r=!0,this._streamData(\"\")}),this),this._streamCleanUp=b((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,x())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 b(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!b(e)}))),x()&&function(){if(y)if(Array.isArray(y.data[0])){for(var t=0;x()&&t=g.length?\"__parsed_extra\":g[r]),e.transform&&(i=e.transform(i,o)),i=w(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:b.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:b.length,index:u}),B++}}else B++}return H();function q(e){b.push(e),w=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)),x.push(e),u=m,q(x),A&&Y()),G()}function W(e){u=e,q(x),x=[],U=i.indexOf(r,u)}function G(e){return{data:b,errors:C,meta:{delimiter:n,linebreak:r,aborted:d,truncated:!!e,cursor:w+(p||0)}}}function Y(){o(G()),b=[],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(3586);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}},3980:(e,t,n)=>{e.exports=n(8262)()},3586:e=>{\"use strict\";e.exports=\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\"},1837:(e,t,n)=>{\"use strict\";var r=n(9196),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},2322:(e,t,n)=>{\"use strict\";e.exports=n(1837)},8665: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)}},1173:e=>{\"use strict\";e.exports=function(e){var t=document.createElement(\"style\");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},7892:(e,t,n)=>{\"use strict\";e.exports=function(e){var t=n.nc;t&&e.setAttribute(\"nonce\",t)}},4036: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)}}}},2464: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))}}},3140:(e,t,n)=>{\"use strict\";n.d(t,{ZP:()=>Mt});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?S(D,--L):0,P--,10===j&&(P=1,N--),j}function z(){return j=L2||W(j)>3?\"\":\" \"}function V(e,t){for(;--t&&z()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return H(e,$()+(t<6&&32==q()&&32==z()))}function Z(e){for(;z();)switch(j){case e:return L;case 34:case 39:34!==e&&39!==e&&Z(j);break;case 40:41===e&&Z(e);break;case 92:z()}return L}function K(e,t){for(;z()&&e+j!==57&&(e+j!==84||47!==q()););return\"/*\"+H(t,L-1)+\"*\"+A(47===e?e:z())}function Q(e){for(;!W(q());)z();return H(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 x(e,/(.+:)(.+)-([^]+)/,\"$1\"+d+\"$2-$3$1\"+u+(108==S(e,t+3)?\"$3\":\"$2-$3\"))+e;case 115:return~w(e,\"stretch\")?ee(x(e,\"stretch\",\"fill-available\"),t,n)+e:e}break;case 5152:case 5920:return x(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 x(e,\":\",\":\"+d)+e;break;case 6444:switch(S(e,45===S(e,14)?18:11)){case 120:return x(e,/(.+:)([^;\\s!]+)(;|(\\s+)?!.+)?/,\"$1\"+d+(45===S(e,14)?\"inline-\":\"\")+\"box$3$1\"+d+\"$2$3$1\"+c+\"$2box$3\")+e;case 100:return x(e,\":\",\":\"+c)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return x(e,\"scroll-\",\"scroll-snap-\")+e}return e}function te(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case h:return void(e.return=ee(e.value,e.length,n));case g:return J([M(e,{value:x(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:[x(t,/:(read-\\w+)/,\":\"+u+\"$1\")]})),B(M(e,{props:[t]})),b(e,{props:I(n,r)});break;case\"::placeholder\":B(M(e,{props:[x(t,/:(plac\\w+)/,\":\"+d+\"input-$1\")]})),B(M(e,{props:[x(t,/:(plac\\w+)/,\":\"+u+\"$1\")]})),B(M(e,{props:[x(t,/:(plac\\w+)/,c+\"input-$1\")]})),B(M(e,{props:[t]})),b(e,{props:I(n,r)})}return\"\"}))}}function ne(e){return function(e){return D=\"\",e}(re(\"\",null,null,null,[\"\"],e=function(e){return N=P=1,O=E(D=e),L=0,[]}(e),0,[0],e))}function re(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,b=\"\",_=s,C=o,k=r,R=b;g;)switch(h=v,v=z()){case 40:if(108!=h&&58==S(R,d-1)){-1!=w(R+=x(G(v),\"&\",\"&\\f\"),\"&\\f\")&&(y=-1);break}case 34:case 39:case 91:R+=G(v);break;case 9:case 10:case 13:case 32:R+=Y(h);break;case 92:R+=V($()-1,7);continue;case 47:switch(q()){case 42:case 47:T(oe(K(z(),$()),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=x(R,/\\f/g,\"\")),f>0&&E(R)-d&&T(f>32?ie(R+\";\",r,n,d-1,l):ie(x(R,\" \",\"\")+\";\",r,n,d-2,l),l);break;case 59:R+=\";\";default:if(T(k=se(R,t,n,c,u,s,a,b,_=[],C=[],d,o),o),123===v)if(0===u)re(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:re(e,k,k,r&&T(se(e,k,k,0,0,s,a,b,s,_=[],d,C),C),s,C,d,a,r?_:C);break;default:re(R,k,k,k,[\"\"],C,0,a,C)}}c=u=f=0,m=y=1,b=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==F())continue;switch(R+=A(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===q()&&(R+=G(z())),p=q(),u=d=E(b=R+=Q($())),v++;break;case 45:45===h&&2==E(R)&&(m=0)}}return o}function se(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,A=0;g0?h[b]+\" \"+C:x(C,/&\\f/g,h[b])))&&(l[A++]=w);return U(e,t,n,0===s?f:a,l,c,u,d)}function oe(e,t,n,r){return U(e,t,n,p,A(j),k(e,2,-2),0,r)}function ie(e,t,n,r,s){return U(e,t,n,h,k(e,0,r),k(e,r+1,-1),r,s)}const ae={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 le=\"undefined\"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||\"data-styled\",ce=\"undefined\"!=typeof window&&\"HTMLElement\"in window,ue=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),de=(new Set,Object.freeze([])),pe=Object.freeze({});var fe=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\"]),he=/[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^`{|}~-]+/g,me=/(^-|-$)/g;function ge(e){return e.replace(he,\"-\").replace(me,\"\")}var ye=/(a)(d)/gi,ve=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ae(e){var t,n=\"\";for(t=Math.abs(e);t>52;t=t/52|0)n=ve(t%52)+n;return(ve(t%52)+n).replace(ye,\"$1-$2\")}var be,_e=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ce=function(e){return _e(5381,e)};function xe(e){return\"string\"==typeof e&&!0}var we=\"function\"==typeof Symbol&&Symbol.for,Se=we?Symbol.for(\"react.memo\"):60115,ke=we?Symbol.for(\"react.forward_ref\"):60112,Ee={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Re={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Te={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ie=((be={})[ke]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},be[Se]=Te,be);function Ne(e){return(\"type\"in(t=e)&&t.type.$$typeof)===Se?Te:\"$$typeof\"in e?Ie[e.$$typeof]:Ee;var t}var Pe=Object.defineProperty,Oe=Object.getOwnPropertyNames,Le=Object.getOwnPropertySymbols,je=Object.getOwnPropertyDescriptor,De=Object.getPrototypeOf,Ue=Object.prototype;function Me(e,t,n){if(\"string\"!=typeof t){if(Ue){var r=De(t);r&&r!==Ue&&Me(e,r,n)}var s=Oe(t);Le&&(s=s.concat(Le(t)));for(var o=Ne(e),i=Ne(t),a=0;a0?\" Args: \".concat(t.join(\", \")):\"\"))}var Ye=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 Ge(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(dt,n).replace(r,c))})),i.prefix&&u.push(te),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(pt,\"\"),c=ne(o||s?\"\".concat(o,\" \").concat(s,\" { \").concat(l,\" }\"):l);i.namespace&&(c=ft(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=ze(r,o),this.staticRulesId=o}else{for(var a=_e(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=ze(r,p)}}return r},e}(),It=i().createContext(void 0);It.Consumer;var Nt={};function Pt(e,t,n){var s=Fe(e),a=e,l=!xe(e),c=t.attrs,u=void 0===c?de:c,d=t.componentId,p=void 0===d?function(e,t){var n=\"string\"!=typeof e?\"sc\":ge(e);Nt[n]=(Nt[n]||0)+1;var r=\"\".concat(n,\"-\").concat(function(e){return Ae(Ce(e)>>>0)}(\"6.1.1\"+n+Nt[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(ge(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 A=t.shouldForwardProp;y=function(e,t){return v(e,t)&&A(e,t)}}else y=v}var b=new Tt(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(It),f=At(),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&&ut.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=rt(),r=qe([n&&'nonce=\"'.concat(n,'\"'),\"\".concat(le,'=\"true\"'),\"\".concat(\"data-styled-version\",'=\"').concat(\"6.1.1\",'\"')].filter(Boolean),\" \");return\"\")},this.getStyleTags=function(){if(e.sealed)throw Ge(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Ge(2);var n=((t={})[le]=\"\",t[\"data-styled-version\"]=\"6.1.1\",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),s=rt();return s&&(n.nonce=s),[i().createElement(\"style\",r({},n,{key:\"sc-0-0\"}))]},this.seal=function(){e.sealed=!0},this.instance=new ut({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Ge(2);return i().createElement(bt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Ge(3)}}(),\"__sc-\".concat(le,\"__\")},7091:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>d});var r=n(2322),s=n(3980),o=n.n(s),i=n(3140),a=n(4210);const l=i.ZP.div`\n height: auto;\n width: 100%;\n`,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},8522:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>l});var r=n(2322),s=n(3980),o=n.n(s),i=n(5609);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},9395:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>u});var r=n(2322),s=n(9196),o=n.n(s),i=n(5736),a=n(3980),l=n.n(a),c=n(7821);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}},5705:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>p});var r=n(2322),s=n(5736),o=n(3980),i=n.n(o),a=n(3140),l=n(4210);const c=a.ZP.div`\n box-sizing: border-box;\n flex-shrink: 0;\n height: auto;\n max-height: 1450px;\n max-width: 1450px;\n min-height: 20px;\n min-width: 20px;\n position: relative;\n width: auto;\n`,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},4210:(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,TermSelector:()=>p.default,VideoPicker:()=>f.default});var r=n(7091),s=n(8522),o=n(9395),i=n(5705),a=n(3464),l=n(4285),c=n(9691),u=n(7267),d=n(7006),p=n(3866),f=n(3151)},3464:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>m});var r=n(2322),s=n(3980),o=n.n(s),i=n(3140),a=n(2175),l=n(5609),c=n(9818),u=n(5736),d=n(7821);const p=i.ZP.div`\n display: block;\n position: relative;\n`,f=i.ZP.div`\n background: white;\n border: 1px solid black;\n padding: 1em;\n`,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:A}=(0,c.useSelect)((e=>({media:y?e(\"core\").getMedia(y):void 0})),[y]);if(0!==y&&null===A)return(0,r.jsx)(l.Spinner,{});const b=A?(0,d.getMediaUrl)(A,s):v;return b?(0,r.jsxs)(p,{className:t,children:[g?(0,r.jsx)(g,{src:b}):(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:b,children:b})})]}),o?(0,r.jsx)(a.BlockControls,{group:\"other\",children:(0,r.jsx)(a.MediaReplaceFlow,{name:(0,u.__)(\"Edit Media\",\"alley-scripts\"),mediaId:y,mediaURL:b,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:b}})})};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},9691:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>M});var r=n(2322),s=n(9307),o=n(3140),i=n(5609),a=n(5736),l=n(6483),c=n(8516),u=n(6062),d=n.n(u),p=n(4036),f=n.n(p),h=n(6793),m=n.n(h),g=n(7892),y=n.n(g),v=n(1173),A=n.n(v),b=n(2464),_=n.n(b),C=n(8992),x={};x.styleTagTransform=_(),x.setAttributes=y(),x.insert=m().bind(null,\"head\"),x.domAPI=f(),x.insertStyleElement=A(),d()(C.Z,x),C.Z&&C.Z.locals&&C.Z.locals;var w=n(6989),S=n.n(w),k=n(2779),E=n.n(k),R=n(1905),T={};T.styleTagTransform=_(),T.setAttributes=y(),T.insert=m().bind(null,\"head\"),T.domAPI=f(),T.insertStyleElement=A(),d()(R.Z,T),R.Z&&R.Z.locals&&R.Z.locals;const I=window.wp.htmlEntities;var N=n(4285);const P=o.ZP.div`\n align-items: center;\n gap: 4px;\n overflow-wrap: anywhere;\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 0.5rem 0.75rem;\n`,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,A]=(0,s.useState)({searchValue:\"\",page:1}),b=(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),b(v,e)),()=>{e=!0}}),[b,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};A(t),b(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};A(e),b(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,{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\")})]})]})},D=o.ZP.div`\n display: block;\n position: relative;\n`,U=o.ZP.div`\n border: 1px solid #eee;\n display: flex;\n flex-direction: column;\n margin: 5px 0;\n padding: 0.5rem 0.75rem;\n text-align: center;\n`,M=({allowedTypes:e,className:t,getPostType:n,modalTitle:o=(0,a.__)(\"Select Post\",\"alley-scripts\"),onReset:u,onUpdate:d,params:p={},previewRender:f,replaceText:h=(0,a.__)(\"Replace\",\"alley-scripts\"),resetText:m=(0,a.__)(\"Reset\",\"alley-scripts\"),searchEndpoint:g=\"/wp/v2/search\",searchRender:y,selectText:v=(0,a.__)(\"Select\",\"alley-scripts\"),suppressPostIds:A=[],title:b=\"\",value:_=0})=>{const[C,x]=(0,s.useState)(!1),w=(0,l.addQueryArgs)(g,{type:\"post\",subtype:e??\"any\",...p}),S=(0,c.usePostById)(_,n),{featured_media:k,title:{rendered:E=\"\"}={},type:R=\"\"}=S||{},T=()=>{x(!0)};return 0!==_&&null===S?(0,r.jsx)(i.Spinner,{}):(0,r.jsxs)(D,{className:t,children:[b?(0,r.jsx)(\"h4\",{children:b}):null,0!==_&&null!==S?(0,r.jsxs)(r.Fragment,{children:[void 0!==f?f(S):(0,r.jsx)(U,{children:(0,r.jsx)(O,{title:E,postType:R,attachmentID:k})}),(0,r.jsxs)(i.ButtonGroup,{children:[(0,r.jsx)(i.Button,{variant:\"secondary\",onClick:u,style:{margin:\"0 4px\"},children:m}),(0,r.jsx)(i.Button,{variant:\"secondary\",onClick:T,style:{margin:\"0 4px\"},children:h})]})]}):(0,r.jsx)(i.Button,{onClick:T,variant:\"secondary\",children:v}),C?(0,r.jsx)(j,{closeModal:()=>{x(!1)},baseUrl:w,modalTitle:o,onUpdate:d,searchRender:y,suppressPostIds:A}):null]})}},7267:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>c});var r=n(2322),s=n(3980),o=n.n(s),i=n(5736),a=n(4210);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},4285:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>c});var r=n(2322),s=n(5368),o=n.n(s),i=n(3980),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},7006:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>M});var r=n(2322),s=n(3980),o=n.n(s),i=n(9307),a=n(6989),l=n.n(a),c=n(2779),u=n.n(c),d=n(5609),p=n(5736),f=n(6483);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 A=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 b=n(8516);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 x=n(6062),w=n.n(x),S=n(4036),k=n.n(S),E=n(6793),R=n.n(E),T=n(7892),I=n.n(T),N=n(1173),P=n.n(N),O=n(2464),L=n.n(O),j=n(5458),D={};D.styleTagTransform=L(),D.setAttributes=I(),D.insert=R().bind(null,\"head\"),D.domAPI=k(),D.insertStyleElement=P(),w()(j.Z,D),j.Z&&j.Z.locals&&j.Z.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=A(),[v,_]=(0,i.useState)(\"\"),[x,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,b.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)(C,{emptyLabel:n,error:v,labelledById:`autocomplete-${y}`,id:`listbox-${y}`,isOpen:S,loading:E&&L,onSelect:M,options:x,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},3866:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>c});var r=n(2322),s=n(3980),o=n.n(s),i=n(5736),a=n(4210);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},3151:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>d});var r=n(2322),s=n(3980),o=n.n(s),i=n(3140),a=n(4210);const l=i.ZP.div`\n height: auto;\n width: 100%;\n`,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},8516:(e,t,n)=>{\"use strict\";n.d(t,{useCurrentPostId:()=>f.default,useDebounce:()=>r.default,useHasInnerBlocks:()=>s.default,useInnerBlocks:()=>i.default,useInnerBlocksAttributes:()=>a.default,useInnerBlocksCount:()=>l.default,useInnerBlocksIndex:()=>o.default,useMedia:()=>c.default,useParentBlock:()=>u.default,useParentBlockAttributes:()=>d.default,usePost:()=>p.default,usePostById:()=>h.default,usePostMeta:()=>m.default,usePostMetaValue:()=>g.default,usePosts:()=>y.default,useTerms:()=>v.default});var r=n(4623),s=n(5752),o=n(7898),i=n(3016),a=n(982),l=n(1371),c=n(4758),u=n(8111),d=n(2261),p=n(4733),f=n(6836),h=n(6853),m=n(4898),g=n(1752),y=n(2045),v=n(4639)},6836:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>s});var r=n(9818);const s=()=>(0,r.useSelect)((e=>{const t=e(\"core/editor\");return t?t.getCurrentPostId():null}),[])},4623:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>s});var r=n(9307);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}},5752:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>s});var r=n(8516);const s=e=>(0,r.useInnerBlocksCount)(e)>0},7898:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>s});var r=n(8516);const s=e=>{const t=(0,r.useParentBlock)(e),n=(0,r.useInnerBlocks)(t);return n?n.findIndex((t=>t.clientId===e)):-1}},982:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>s});var r=n(8516);const s=e=>(0,r.useInnerBlocks)(e).map((e=>e.attributes))},1371:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>s});var r=n(8516);const s=e=>(0,r.useInnerBlocks)(e).length},3016:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>o});var r=n(2175),s=n(9818);const o=e=>(0,s.useSelect)((t=>t(r.store).getBlocks(e)),[e])},4758:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>s});var r=n(9818);const s=e=>(0,r.useSelect)((t=>t(\"core\").getMedia(e)),[e])},2261:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>o});var r=n(2175),s=n(9818);const o=e=>(0,s.useSelect)((t=>{const{getBlockAttributes:n,getBlockRootClientId:s}=t(r.store),o=s(e);return o?n(o):null}),[e])},8111:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>o});var r=n(2175),s=n(9818);const o=e=>(0,s.useSelect)((t=>{const{getBlock:n,getBlockRootClientId:s}=t(r.store),o=s(e);return o?n(o):null}),[e])},6853:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>l});var r=n(9307),s=n(6989),o=n.n(s),i=n(6483),a=n(4733);const l=(e,t=null)=>{const[n,s]=(0,r.useState)({});return(0,r.useEffect)((()=>{e&&!n[e]&&(async()=>{if(t){const n=await t(e);n?s((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});s((t=>({...t,[e]:n[0].subtype})))}})()}),[e]),(0,a.default)(e,n[e]??\"\")}},1752:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>s});var r=n(8516);const s=(e,t=null,n=null)=>{const[s,o]=(0,r.usePostMeta)(t,n);return[s[e],t=>o({...s,[e]:t})]}},4898:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>o});var r=n(7798),s=n(9818);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})]}},4733:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>s});var r=n(9818);const s=(e,t=\"post\")=>(0,r.useSelect)((n=>n(\"core\").getEntityRecord(\"postType\",t,e)),[e,t])},2045:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>s});var r=n(9818);const s=(e,t=\"post\")=>(0,r.useSelect)((n=>{const{getEntityRecords:r}=n(\"core\");return r(\"postType\",t,{include:e})}),[e,t])},4639:(e,t,n)=>{\"use strict\";n.d(t,{default:()=>o});var r=n(7798),s=n(9818);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)]}},7821:(e,t,n)=>{\"use strict\";n.d(t,{getMediaUrl:()=>i.Z,parseCSVFile:()=>o});var r=n(286),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(6291)},6291:(e,t,n)=>{\"use strict\";n.d(t,{Z:()=>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||\"\"}},9196:e=>{\"use strict\";e.exports=window.React},6989:e=>{\"use strict\";e.exports=window.wp.apiFetch},2175:e=>{\"use strict\";e.exports=window.wp.blockEditor},5609:e=>{\"use strict\";e.exports=window.wp.components},7798:e=>{\"use strict\";e.exports=window.wp.coreData},9818:e=>{\"use strict\";e.exports=window.wp.data},9307:e=>{\"use strict\";e.exports=window.wp.element},5736:e=>{\"use strict\";e.exports=window.wp.i18n},6483: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,TermSelector:()=>e.TermSelector,VideoPicker:()=>e.VideoPicker,getMediaUrl:()=>s.getMediaUrl,parseCSVFile:()=>s.parseCSVFile,useCurrentPostId:()=>t.useCurrentPostId,useDebounce:()=>t.useDebounce,useHasInnerBlocks:()=>t.useHasInnerBlocks,useInnerBlocks:()=>t.useInnerBlocks,useInnerBlocksAttributes:()=>t.useInnerBlocksAttributes,useInnerBlocksCount:()=>t.useInnerBlocksCount,useInnerBlocksIndex:()=>t.useInnerBlocksIndex,useMedia:()=>t.useMedia,useParentBlock:()=>t.useParentBlock,useParentBlockAttributes:()=>t.useParentBlockAttributes,usePost:()=>t.usePost,usePostById:()=>t.usePostById,usePostMeta:()=>t.usePostMeta,usePostMetaValue:()=>t.usePostMetaValue,usePosts:()=>t.usePosts,useTerms:()=>t.useTerms});var e=n(4210),t=n(8516),s=n(7821)})(),r})()));\n//# sourceMappingURL=index.bundle.min.js.map","/*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory());\n})(this, (function () { 'use strict';\n\n const {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor\n } = Object;\n let {\n freeze,\n seal,\n create\n } = Object; // eslint-disable-line import/no-mutable-exports\n let {\n apply,\n construct\n } = typeof Reflect !== 'undefined' && Reflect;\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n if (!construct) {\n construct = function construct(Func, args) {\n return new Func(...args);\n };\n }\n const arrayForEach = unapply(Array.prototype.forEach);\n const arrayPop = unapply(Array.prototype.pop);\n const arrayPush = unapply(Array.prototype.push);\n const stringToLowerCase = unapply(String.prototype.toLowerCase);\n const stringToString = unapply(String.prototype.toString);\n const stringMatch = unapply(String.prototype.match);\n const stringReplace = unapply(String.prototype.replace);\n const stringIndexOf = unapply(String.prototype.indexOf);\n const stringTrim = unapply(String.prototype.trim);\n const regExpTest = unapply(RegExp.prototype.test);\n const typeErrorCreate = unconstruct(TypeError);\n\n /**\n * Creates a new function that calls the given function with a specified thisArg and arguments.\n *\n * @param {Function} func - The function to be wrapped and called.\n * @returns {Function} A new function that calls the given function with a specified thisArg and arguments.\n */\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n return apply(func, thisArg, args);\n };\n }\n\n /**\n * Creates a new function that constructs an instance of the given constructor function with the provided arguments.\n *\n * @param {Function} func - The constructor function to be wrapped and called.\n * @returns {Function} A new function that constructs an instance of the given constructor function with the provided arguments.\n */\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n return construct(func, args);\n };\n }\n\n /**\n * Add properties to a lookup table\n *\n * @param {Object} set - The set to which elements will be added.\n * @param {Array} array - The array containing elements to be added to the set.\n * @param {Function} transformCaseFunc - An optional function to transform the case of each element before adding to the set.\n * @returns {Object} The modified set with added elements.\n */\n function addToSet(set, array) {\n let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n element = lcElement;\n }\n }\n set[element] = true;\n }\n return set;\n }\n\n /**\n * Clean up an array to harden against CSPP\n *\n * @param {Array} array - The array to be cleaned.\n * @returns {Array} The cleaned version of the array\n */\n function cleanArray(array) {\n for (let index = 0; index < array.length; index++) {\n if (getOwnPropertyDescriptor(array, index) === undefined) {\n array[index] = null;\n }\n }\n return array;\n }\n\n /**\n * Shallow clone an object\n *\n * @param {Object} object - The object to be cloned.\n * @returns {Object} A new object that copies the original.\n */\n function clone(object) {\n const newObject = create(null);\n for (const [property, value] of entries(object)) {\n if (getOwnPropertyDescriptor(object, property) !== undefined) {\n if (Array.isArray(value)) {\n newObject[property] = cleanArray(value);\n } else if (value && typeof value === 'object' && value.constructor === Object) {\n newObject[property] = clone(value);\n } else {\n newObject[property] = value;\n }\n }\n }\n return newObject;\n }\n\n /**\n * This method automatically checks if the prop is function or getter and behaves accordingly.\n *\n * @param {Object} object - The object to look up the getter function in its prototype chain.\n * @param {String} prop - The property name for which to find the getter function.\n * @returns {Function} The getter function found in the prototype chain or a fallback function.\n */\n function lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n object = getPrototypeOf(object);\n }\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n return fallbackValue;\n }\n\n const html$1 = freeze(['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']);\n\n // SVG\n const svg$1 = freeze(['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']);\n const svgFilters = freeze(['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']);\n\n // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n const svgDisallowed = freeze(['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']);\n const mathMl$1 = freeze(['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\n // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n const text = freeze(['#text']);\n\n const html = freeze(['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']);\n const svg = freeze(['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']);\n const mathMl = freeze(['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']);\n const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n // eslint-disable-next-line unicorn/better-regex\n const MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n const ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\n const TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\n const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n\n const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n const ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n\n const DOCTYPE_NAME = seal(/^html$/i);\n\n var EXPRESSIONS = /*#__PURE__*/Object.freeze({\n __proto__: null,\n MUSTACHE_EXPR: MUSTACHE_EXPR,\n ERB_EXPR: ERB_EXPR,\n TMPLIT_EXPR: TMPLIT_EXPR,\n DATA_ATTR: DATA_ATTR,\n ARIA_ATTR: ARIA_ATTR,\n IS_ALLOWED_URI: IS_ALLOWED_URI,\n IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE: ATTR_WHITESPACE,\n DOCTYPE_NAME: DOCTYPE_NAME\n });\n\n const getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {HTMLScriptElement} purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).\n * @return {TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported or creating the policy failed).\n */\n const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {\n if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {\n suffix = purifyHostElement.getAttribute(ATTR_NAME);\n }\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n function createDOMPurify() {\n let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n const DOMPurify = root => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = '3.0.8';\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n return DOMPurify;\n }\n let {\n document\n } = window;\n const originalDocument = document;\n const currentScript = originalDocument.currentScript;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes\n } = window;\n const ElementPrototype = Element.prototype;\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n let trustedTypesPolicy;\n let emptyHTML = '';\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName\n } = document;\n const {\n importNode\n } = originalDocument;\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE\n } = EXPRESSIONS;\n let {\n IS_ALLOWED_URI: IS_ALLOWED_URI$1\n } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false\n }\n }));\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with ... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, ['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']);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE = null;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc = null;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n const isRegexOrFunction = function isRegexOrFunction(testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function _parseConfig() {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES = 'ALLOWED_NAMESPACES' in cfg ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES),\n // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS),\n // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};\n FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, text);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html$1);\n addToSet(ALLOWED_ATTR, html);\n }\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg$1);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl$1);\n addToSet(ALLOWED_ATTR, mathMl);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n if (cfg.TRUSTED_TYPES_POLICY) {\n if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.');\n }\n if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.');\n }\n\n // Overwrite existing TrustedTypes policy.\n trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;\n\n // Sign local variables required by `sanitize`.\n emptyHTML = trustedTypesPolicy.createHTML('');\n } else {\n // Uninitialized policy, attempt to initialize the internal dompurify policy.\n if (trustedTypesPolicy === undefined) {\n trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);\n }\n\n // If creating the internal policy succeeded sign internal variables.\n if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {\n emptyHTML = trustedTypesPolicy.createHTML('');\n }\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n CONFIG = cfg;\n };\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n const HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);\n const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);\n\n /**\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function _checkValidNamespace(element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template'\n };\n }\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via
' : $content;
- }
-
- /**
- * Tests the behavior of the component errors setting (none, warn, fail).
- */
- public function test_component_errors() {
-
- // Set up a post with an invalid element (div).
- $this->become_admin();
- $user_id = wp_get_current_user()->ID;
- $post_id_1 = self::factory()->post->create(
- [
- 'post_author' => $user_id,
- 'post_content' => '
Test Content
',
- ]
- );
-
- // Test the default behavior, which is no warning or error.
- $this->get_request_for_post( $post_id_1 );
- $notices = get_user_meta( $user_id, 'apple_news_notice', true );
- $this->assertEquals( 2, count( $notices ) );
- $this->assertEquals( 'error', $notices[0]['type'] );
- $this->assertEquals( 'There has been an error with the Apple News API: There has been an error with your request: ', $notices[0]['message'] );
- $this->assertEquals( 'success', $notices[1]['type'] );
- $this->assertEquals( 'abcd1234-ef56-ab78-cd90-efabcdef123456', get_post_meta( $post_id_1, 'apple_news_api_id', true ) );
-
- // Test the behavior of component warnings.
- $this->settings->component_alerts = 'warn';
- $post_id_2 = self::factory()->post->create(
- [
- 'post_author' => $user_id,
- 'post_content' => '
Test Content
',
- ]
- );
- $this->get_request_for_post( $post_id_2 );
- $notices = get_user_meta( $user_id, 'apple_news_notice', true );
- $this->assertEquals( 4, count( $notices ) );
- $this->assertEquals( 'error', $notices[2]['type'] );
- $this->assertEquals( 'The following components are unsupported by Apple News and were removed: div', $notices[2]['message'] );
- $this->assertEquals( 'success', $notices[3]['type'] );
- $this->assertEquals( 'abcd1234-ef56-ab78-cd90-efabcdef123456', get_post_meta( $post_id_1, 'apple_news_api_id', true ) );
-
- // Test the behavior of component errors.
- $this->settings->component_alerts = 'fail';
- $post_id_3 = self::factory()->post->create(
- [
- 'post_author' => $user_id,
- 'post_content' => '
Test Content
',
- ]
- );
- $exception = false;
- try {
- $this->get_request_for_post( $post_id_3 );
- } catch ( Action_Exception $e ) {
- $exception = $e;
- }
- $this->assertEquals( 'The following components are unsupported by Apple News and prevented publishing: div', $exception->getMessage() );
- $this->assertEquals( null, get_post_meta( $post_id_3, 'apple_news_api_id', true ) );
-
- // Clean up after ourselves.
- $this->settings->component_alerts = 'none';
- }
-
- /**
- * Ensures that postmeta will be properly set after creating an article via
- * the API.
- */
- public function test_create() {
- $post_id = self::factory()->post->create();
- $this->get_request_for_post( $post_id );
-
- // Values in the assertions here are added in the get_request_for_post function call above.
- $this->assertEquals( 'abcd1234-ef56-ab78-cd90-efabcdef123456', get_post_meta( $post_id, 'apple_news_api_id', true ) );
- $this->assertEquals( '2020-01-02T03:04:05Z', get_post_meta( $post_id, 'apple_news_api_created_at', true ) );
- $this->assertEquals( '2020-01-02T03:04:05Z', get_post_meta( $post_id, 'apple_news_api_modified_at', true ) );
- $this->assertEquals( 'https://apple.news/ABCDEFGHIJKLMNOPQRSTUVW', get_post_meta( $post_id, 'apple_news_api_share_url', true ) );
- $this->assertEquals( null, get_post_meta( $post_id, 'apple_news_api_deleted', true ) );
- }
-
- /**
- * Ensure the section is added to the metadata sent with the request.
- */
- public function test_create_with_sections() {
- $post_id = self::factory()->post->create();
- add_post_meta( $post_id, 'apple_news_sections', [ 'https://news-api.apple.com/sections/123' ] );
- $request = $this->get_request_for_post( $post_id );
- $metadata = $this->get_metadata_from_request( $request );
- $this->assertEquals( [ 'https://news-api.apple.com/sections/123' ], $metadata['data']['links']['sections'] );
- }
-
- /**
- * Ensures that custom metadata is properly set.
- */
- public function test_custom_metadata() {
- $post_id = self::factory()->post->create();
- $metadata = [
- [
- 'key' => 'isBoolean',
- 'type' => 'boolean',
- 'value' => true,
- ],
- [
- 'key' => 'isNumber',
- 'type' => 'number',
- 'value' => 3,
- ],
- [
- 'key' => 'isString',
- 'type' => 'string',
- 'value' => 'Test String Value',
- ],
- [
- 'key' => 'isArray',
- 'type' => 'array',
- 'value' => '["a", "b", "c"]',
- ],
- ];
- add_post_meta( $post_id, 'apple_news_metadata', $metadata );
- $request = $this->get_request_for_post( $post_id );
- $metadata = $this->get_metadata_from_request( $request );
-
- // Ensure metadata was properly compiled into the request.
- $this->assertEquals( true, $metadata['data']['isBoolean'] );
- $this->assertEquals( 3, $metadata['data']['isNumber'] );
- $this->assertEquals( 'Test String Value', $metadata['data']['isString'] );
- $this->assertEquals( [ 'a', 'b', 'c' ], $metadata['data']['isArray'] );
- }
-
- /**
- * Ensures that the apple_news_is_exporting function works properly during a
- * push request.
- */
- public function test_exporting_flag() {
- $post_id = self::factory()->post->create();
- add_filter( 'the_content', [ $this, 'filter_the_content' ] );
- $request = $this->get_request_for_post( $post_id );
- remove_filter( 'the_content', [ $this, 'filter_the_content' ] );
- $this->assertTrue( false !== strpos( $request['body'], '
EXPORTING<\/p>' ) );
- }
-
- /**
- * Ensures that maturity rating is properly set in the request.
- */
- public function test_maturity_rating() {
- $post_id = self::factory()->post->create();
- add_post_meta( $post_id, 'apple_news_maturity_rating', 'MATURE' );
- $request = $this->get_request_for_post( $post_id );
- $metadata = $this->get_metadata_from_request( $request );
- $this->assertEquals( 'MATURE', $metadata['data']['maturityRating'] );
- }
-
- /**
- * Ensures that named metadata is properly set.
- *
- * @dataProvider data_metadata
- *
- * @param string $meta_key The meta key to set to true (e.g., apple_news_is_hidden).
- * @param bool $is_hidden The expected value for isHidden in the request.
- * @param bool $is_paid The expected value for isPaid in the request.
- * @param bool $is_preview The expected value for isPreview in the request.
- * @param bool $is_sponsored The expected value for isSponsored in the request.
- */
- public function test_metadata( $meta_key, $is_hidden, $is_paid, $is_preview, $is_sponsored ) {
- $post_id = self::factory()->post->create();
- add_post_meta( $post_id, $meta_key, true );
- $request = $this->get_request_for_post( $post_id );
- $metadata = $this->get_metadata_from_request( $request );
-
- // Check the values for the four metadata keys against expected values.
- $this->assertEquals( $is_hidden, $metadata['data']['isHidden'] );
- $this->assertEquals( $is_paid, $metadata['data']['isPaid'] );
- $this->assertEquals( $is_preview, $metadata['data']['isPreview'] );
- $this->assertEquals( $is_sponsored, $metadata['data']['isSponsored'] );
- }
-
- /**
- * Tests skipping publish of a post by filters or by taxonomy term.
- */
- public function test_skip() {
- $post_id = self::factory()->post->create();
-
- // Test the apple_news_skip_push filter.
- add_filter( 'apple_news_skip_push', '__return_true' );
- $exception = false;
- try {
- $this->get_request_for_post( $post_id );
- } catch ( Action_Exception $e ) {
- $exception = $e;
- }
- $this->assertEquals( sprintf( 'Skipped push of article %d due to the apple_news_skip_push filter.', $post_id ), $exception->getMessage() );
- remove_filter( 'apple_news_skip_push', '__return_true' );
-
- // Test the new filter for skipping by term ID.
- $term_id = self::factory()->term->create( [ 'taxonomy' => 'category' ] );
- wp_set_object_terms( $post_id, $term_id, 'category' );
- $skip_filter = function () use ( $term_id ) {
- return [ $term_id ];
- };
- add_filter( 'apple_news_skip_push_term_ids', $skip_filter );
- $exception = false;
- try {
- $this->get_request_for_post( $post_id );
- } catch ( Action_Exception $e ) {
- $exception = $e;
- }
- $this->assertEquals( sprintf( 'Skipped push of article %d due to the presence of a skip push taxonomy term.', $post_id ), $exception->getMessage() );
- remove_filter( 'apple_news_skip_push_term_ids', $skip_filter );
-
- // Test skip by setting the option for skipping by term ID.
- $this->settings->api_autosync_skip = wp_json_encode( [ $term_id ] );
- $exception = false;
- try {
- $this->get_request_for_post( $post_id );
- } catch ( Action_Exception $e ) {
- $exception = $e;
- }
- $this->assertEquals( sprintf( 'Skipped push of article %d due to the presence of a skip push taxonomy term.', $post_id ), $exception->getMessage() );
- $this->settings->api_autosync_skip = '';
- }
-
- /**
- * Tests the update workflow to ensure that posts are only updated when
- * changes have been made.
- */
- public function test_update() {
- // Create a post and fake sending it to the API.
- $post = self::factory()->post->create_and_get();
- $this->get_request_for_post( $post->ID );
-
- // Ensure that the fake response from the API was saved to postmeta.
- $this->assertEquals( 'abcd1234-ef56-ab78-cd90-efabcdef123456', get_post_meta( $post->ID, 'apple_news_api_id', true ) );
- $this->assertEquals( '2020-01-02T03:04:05Z', get_post_meta( $post->ID, 'apple_news_api_created_at', true ) );
- $this->assertEquals( '2020-01-02T03:04:05Z', get_post_meta( $post->ID, 'apple_news_api_modified_at', true ) );
- $this->assertEquals( 'https://apple.news/ABCDEFGHIJKLMNOPQRSTUVW', get_post_meta( $post->ID, 'apple_news_api_share_url', true ) );
- $this->assertEquals( null, get_post_meta( $post->ID, 'apple_news_api_deleted', true ) );
-
- // Try to sync the post again, and verify that it bails out before attempting the sync.
- $exception = false;
- try {
- $this->get_request_for_post( $post->ID );
- } catch ( Action_Exception $e ) {
- $regexp = '/There has been an error with the Apple News API|Skipped push of article ' . preg_quote( $post->ID, '/' ) . ' to Apple News because it is already in sync\./';
- $this->assertMatchesRegularExpression( $regexp, $e->getMessage() );
- }
-
- // Update the post by changing the title and ensure that the update is sent to Apple.
- $post->post_title = 'Test New Title';
- wp_update_post( $post );
- $request = $this->get_request_for_update( $post->ID );
- $body = $this->get_body_from_request( $request );
- $this->assertEquals( 'Test New Title', $body['title'] );
- }
-}
diff --git a/tests/admin/test-class-admin-apple-index-page.php b/tests/admin/test-class-admin-apple-index-page.php
deleted file mode 100644
index 62f2f1a9..00000000
--- a/tests/admin/test-class-admin-apple-index-page.php
+++ /dev/null
@@ -1,49 +0,0 @@
-factory->post->create();
-
- // Add metadata to simulate a stuck post.
- update_post_meta( $post_id, 'apple_news_api_pending', time() );
- update_post_meta( $post_id, 'apple_news_api_async_in_progress', time() );
- update_post_meta( $post_id, 'apple_news_api_bundle', time() );
- update_post_meta( $post_id, 'apple_news_api_json', time() );
- update_post_meta( $post_id, 'apple_news_api_errors', time() );
-
- // Create simulated GET data.
- $_GET['post_id'] = $post_id; // phpcs:ignore WordPress.VIP.SuperGlobalInputUsage.AccessDetected
- $_GET['page'] = 'apple_news_index'; // phpcs:ignore WordPress.VIP.SuperGlobalInputUsage.AccessDetected
- $_GET['action'] = 'apple_news_reset'; // phpcs:ignore WordPress.VIP.SuperGlobalInputUsage.AccessDetected
-
- // Simulate the action.
- $index_page = new Admin_Apple_Index_Page( $this->settings );
- $index_page->page_router();
-
- // Ensure values were deleted.
- $this->assertEquals( false, get_post_meta( $post_id, 'apple_news_api_pending', true ) );
- $this->assertEquals( false, get_post_meta( $post_id, 'apple_news_api_async_in_progress', true ) );
- $this->assertEquals( false, get_post_meta( $post_id, 'apple_news_api_bundle', true ) );
- $this->assertEquals( false, get_post_meta( $post_id, 'apple_news_api_json', true ) );
- $this->assertEquals( false, get_post_meta( $post_id, 'apple_news_api_errors', true ) );
- }
-}
diff --git a/tests/admin/test-class-admin-apple-meta-boxes.php b/tests/admin/test-class-admin-apple-meta-boxes.php
deleted file mode 100644
index 99771e66..00000000
--- a/tests/admin/test-class-admin-apple-meta-boxes.php
+++ /dev/null
@@ -1,104 +0,0 @@
-settings->set( 'api_autosync', 'no' );
- $this->settings->set( 'show_metabox', 'yes' );
-
- // Create post.
- $post_id = $this->factory->post->create();
-
- // Create post data.
- /* phpcs:disable WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput.InputNotValidated, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized */
- $_POST['post_ID'] = $post_id;
- $_POST['apple_news_sections'] = [ 'https://news-api.apple.com/sections/1234567890' ];
- $_POST['apple_news_is_paid'] = 0;
- $_POST['apple_news_is_preview'] = 0;
- $_POST['apple_news_is_sponsored'] = 0;
- $_POST['apple_news_maturity_rating'] = 'MATURE';
- $_POST['apple_news_pullquote'] = 'test pullquote';
- $_POST['apple_news_pullquote_position'] = 'middle';
- $_POST['apple_news_nonce'] = wp_create_nonce( 'apple_news_publish' );
- $_POST['apple_news_publish_action'] = 'apple_news_publish';
- $_REQUEST['post_ID'] = $_POST['post_ID'];
- $_REQUEST['apple_news_nonce'] = $_POST['apple_news_nonce'];
- /* phpcs:enable */
-
- // Create the meta box class and simulate a save.
- $meta_box = new Admin_Apple_Meta_Boxes( $this->settings );
- if ( 'yes' === $this->settings->get( 'show_metabox' ) ) {
- $meta_box->do_publish( $post_id, get_post( $post_id ) );
- }
-
- // Check the meta values.
- $this->assertEquals( [ 'https://news-api.apple.com/sections/1234567890' ], get_post_meta( $post_id, 'apple_news_sections', true ) );
- $this->assertEquals( false, get_post_meta( $post_id, 'apple_news_is_paid', true ) );
- $this->assertEquals( false, get_post_meta( $post_id, 'apple_news_is_preview', true ) );
- $this->assertEquals( false, get_post_meta( $post_id, 'apple_news_is_sponsored', true ) );
- $this->assertEquals( 'MATURE', get_post_meta( $post_id, 'apple_news_maturity_rating', true ) );
- $this->assertEquals( 'test pullquote', get_post_meta( $post_id, 'apple_news_pullquote', true ) );
- $this->assertEquals( 'middle', get_post_meta( $post_id, 'apple_news_pullquote_position', true ) );
- }
-
- /**
- * Tests the behavior of saving a post with auto-sync enabled.
- */
- public function test_save_with_auto_sync() {
- // Set API settings to not auto sync and to enable the meta box.
- $this->settings->set( 'api_autosync', 'yes' );
- $this->settings->set( 'show_metabox', 'yes' );
-
- // Create post.
- $post_id = $this->factory->post->create();
-
- // Create post data.
- /* phpcs:disable WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput.InputNotValidated, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized */
- $_POST['post_ID'] = $post_id;
- $_POST['apple_news_sections'] = [ 'https://news-api.apple.com/sections/1234567890' ];
- $_POST['apple_news_is_paid'] = 0;
- $_POST['apple_news_is_preview'] = 0;
- $_POST['apple_news_is_sponsored'] = 0;
- $_POST['apple_news_maturity_rating'] = 'MATURE';
- $_POST['apple_news_pullquote'] = 'test pullquote';
- $_POST['apple_news_pullquote_position'] = 'middle';
- $_POST['apple_news_nonce'] = wp_create_nonce( 'apple_news_publish' );
- $_POST['apple_news_publish_action'] = 'apple_news_publish';
- $_REQUEST['post_ID'] = $_POST['post_ID'];
- $_REQUEST['apple_news_nonce'] = $_POST['apple_news_nonce'];
- /* phpcs:enable */
-
- // Create the meta box class and simulate a save.
- $meta_box = new Admin_Apple_Meta_Boxes( $this->settings );
- if ( 'yes' === $this->settings->get( 'show_metabox' ) ) {
- $meta_box->do_publish( $post_id, get_post( $post_id ) );
- }
-
- // Check the meta values.
- $this->assertEquals( [ 'https://news-api.apple.com/sections/1234567890' ], get_post_meta( $post_id, 'apple_news_sections', true ) );
- $this->assertEquals( false, get_post_meta( $post_id, 'apple_news_is_paid', true ) );
- $this->assertEquals( false, get_post_meta( $post_id, 'apple_news_is_preview', true ) );
- $this->assertEquals( false, get_post_meta( $post_id, 'apple_news_is_sponsored', true ) );
- $this->assertEquals( 'MATURE', get_post_meta( $post_id, 'apple_news_maturity_rating', true ) );
- $this->assertEquals( 'test pullquote', get_post_meta( $post_id, 'apple_news_pullquote', true ) );
- $this->assertEquals( 'middle', get_post_meta( $post_id, 'apple_news_pullquote_position', true ) );
- }
-}
diff --git a/tests/admin/test-class-admin-apple-notice.php b/tests/admin/test-class-admin-apple-notice.php
deleted file mode 100644
index 568ef382..00000000
--- a/tests/admin/test-class-admin-apple-notice.php
+++ /dev/null
@@ -1,134 +0,0 @@
-become_admin();
- }
-
- /**
- * Tests the behavior of outputting info messages.
- */
- public function test_info() {
- Admin_Apple_Notice::info( 'This is an info message' );
-
- ob_start();
- Admin_Apple_Notice::show();
- $notice = ob_get_contents();
- ob_end_clean();
-
- $expected = preg_replace( '/\s+/', '', '
-HTML
- ,
- ],
- // No dropcap -- dropcap minimum character requirement not met.
- [
- 'default-body',
- 100,
- 'no',
- <<I hope to keep this briefing brief. But briefly, before I begin this brief briefing...
-HTML
- ,
- ],
- // Dropcap applied -- minimum character opt out.
- [
- 'dropcapBodyStyle',
- 500,
- 'yes',
- <<I am not optimistic about the optics of us opting out, opined the opulent Optometrist.
-HTML
- ,
- ],
- // Dropcap applied -- minimum character requirement met, no opt out, no punctuation first character.
- [
- 'dropcapBodyStyle',
- 50,
- 'no',
- <<Lorem ipsum dolor sit amet, consectetur adipiscing elit.
-HTML
- ,
- ],
- ];
- }
-
- /**
- * A data provider that supplies empty HTML signatures to ensure that they
- * are not erroneously transformed into empty body elements.
- *
- * @return array An array of arrays representing function arguments.
- */
- public function data_empty_html() {
- return [
- // Test classic editor, multiple line breaks.
- [
- <<
-
A
-
-
-
-
-
-
-
-
B
-
-HTML
- ,
- ],
-
- // Test Gutenberg editor, paragraph tag containing a single space.
- [
- <<
-
A
-
-
-
-
-
-
-
-
B
-
-HTML
- ,
- ],
-
- // Test Gutenberg editor, paragraph tag containing a non-breaking space.
- [
- <<
-
A
-
-
-
-
-
-
-
-
B
-
-HTML
- ,
- ],
-
- // Test Gutenberg editor, extra paragraph at the end.
- [
- <<
-
A
-
-
-
-
B
-
-
-
-
-
-HTML
- ,
- ],
-
- // Test Gutenberg editor, extra paragraph at the end containing a space.
- [
- <<
-
A
-
-
-
-
B
-
-
-
-
-
-HTML
- ,
- ],
-
- // Test Gutenberg editor, extra paragraph at the end containing a non-breaking space.
- [
- <<
-
A
-
-
-
-
B
-
-
-
-
-
-HTML
- ,
- ],
-
- // Test Gutenberg editor, extra paragraph at the end containing a non-breaking space surrounded by a link tag.
- [
- <<
-
A
-
-
-
-
B
-
-
-
-
-
-HTML
- ,
- ],
- ];
- }
-
- /**
- * A data provider for the test_link_types function.
- *
- * @see https://developer.apple.com/documentation/apple_news/supportedurls
- *
- * @return array An array of arrays representing function arguments.
- */
- public function data_link_types() {
- return [
- // Standard link, non-https.
- [ 'http://www.example.org', true ],
-
- // Standard link, https.
- [ 'https://www.example.org', true ],
-
- // Root-relative URL. Should be permitted, but auto-converted to a fully qualified URL.
- [ '/test', true ],
-
- // Anchor link (hash-based URL) should be permitted.
- [ '#test', true ],
-
- // Apple News article URL.
- [ 'https://apple.news/A5vHgPPmQSvuIxPjeXLTdGQ', true ],
-
- // Apple News article URL with a hash reference.
- [ 'https://apple.news/A5vHgPPmQSvuIxPjeXLTdGQ#TextComponent-1', true ],
-
- // A Stocks app URL.
- [ 'stocks://?symbol=AAPL', true ],
-
- // An Apple Music URL, non-https.
- [ 'music://abc123', true ],
-
- // An Apple Music URL, https.
- [ 'musics://abc123', true ],
-
- // A mailto link.
- [ 'mailto:example@example.org', true ],
-
- // A hosted calendar.
- [ 'webcal://abc123', true ],
-
- // An unsupported protocol.
- [ 'badprotocol://abc123', false ],
- ];
- }
-
- /**
- * Returns an array of arrays representing function arguments to the
- * test_code_formatting, test_filter, and test_filter_html function.
- */
- public function data_generic() {
- return [
- [ [ 'cover', 'slug', 'title', 'byline' ], 2 ],
- [ [ 'cover', 'slug', 'title', 'author', 'date' ], 3 ],
- ];
- }
-
- /**
- * A filter function to modify the text style in the generated JSON.
- *
- * @param array $json The JSON array to modify.
- *
- * @return array The modified JSON.
- */
- public function filter_apple_news_body_json( $json ) {
- $json['textStyle'] = 'fancy-body';
-
- return $json;
- }
-
- /**
- * A filter function to modify the HTML enabled flag for this component.
- *
- * @param bool $enabled Whether HTML support is enabled for this component.
- *
- * @return bool Whether HTML support is enabled for this component.
- */
- public function filter_apple_news_body_html_enabled( $enabled ) {
- return ! $enabled;
- }
-
- /**
- * Tests code formatting.
- */
- public function test_code_formatting() {
- $this->set_theme_settings( [ 'meta_component_order' => [ 'title', 'author' ] ] );
- $content = <<
-
', $json['components'][4]['text'] );
- }
-
- /**
- * Test's dropcap configuration and conditionals.
- *
- * @dataProvider data_dropcap_determination
- *
- * @param string $body_style The style of the first paragraph. `dropcapBodyStyle` if dropcap styling is applied or `default-body` if not.
- * @param int $dropcap_minimum The minimum number of characters in the first paragraph before dropcap stylings are applied.
- * @param string $dropcap_minimum_opt_out Choice to opt out of minimum character rule, 'yes' or 'no'.
- * @param html $content The html content of the post.
- */
- public function test_dropcap_determination( $body_style, $dropcap_minimum, $dropcap_minimum_opt_out, $content ) {
- $this->set_theme_settings(
- [
- 'dropcap_minimum' => $dropcap_minimum,
- 'dropcap_minimum_opt_out' => $dropcap_minimum_opt_out,
- ]
- );
- $post_id = self::factory()->post->create( [ 'post_content' => $content ] );
- $json = $this->get_json_for_post( $post_id );
- $this->assertEquals( $body_style, $json['components'][3]['textStyle'] );
- }
-
- /**
- * Tests handling for empty HTML content.
- *
- * @dataProvider data_empty_html
- *
- * @param string $post_content The post content for the post.
- */
- public function test_empty_html_content( $post_content ) {
- $this->set_theme_settings( [ 'meta_component_order' => [ 'title', 'author' ] ] );
- $post_id = self::factory()->post->create( [ 'post_content' => $post_content ] );
- $json = $this->get_json_for_post( $post_id );
-
- // There should only be two body components, one containing A, one containing B.
- $this->assertEquals( 4, count( $json['components'] ) );
- $this->assertEquals( '
', $json['components'][3]['text'] );
- }
-
- /**
- * Test the `apple_news_body_json` filter.
- *
- * @dataProvider data_generic
- *
- * @param string[] $meta_order The order of meta components to use.
- * @param int $index The index of the component in the JSON to target.
- */
- public function test_filter( $meta_order, $index ) {
- $this->set_theme_settings( [ 'meta_component_order' => $meta_order ] );
- add_filter( 'apple_news_body_json', [ $this, 'filter_apple_news_body_json' ] );
-
- // Create a test post and get JSON for it.
- $post_id = self::factory()->post->create();
- $json = $this->get_json_for_post( $post_id );
- $this->assertEquals( 'body', $json['components'][ $index ]['role'] );
- $this->assertEquals( 'fancy-body', $json['components'][ $index ]['textStyle'] );
-
- // Teardown.
- remove_filter( 'apple_news_body_json', [ $this, 'filter_apple_news_body_json' ] );
- }
-
- /**
- * Test the `apple_news_body_html_enabled` filter.
- *
- * @dataProvider data_generic
- *
- * @param string[] $meta_order The order of meta components to use.
- * @param int $index The index of the component in the JSON to target.
- */
- public function test_filter_html( $meta_order, $index ) {
- $this->set_theme_settings( [ 'meta_component_order' => $meta_order ] );
- // Test before filter.
- $post_id = self::factory()->post->create( [ 'post_content' => 'Test content.' ] );
- $json = $this->get_json_for_post( $post_id );
- $this->assertEquals( 'body', $json['components'][ $index ]['role'] );
- $this->assertEquals( 'html', $json['components'][ $index ]['format'] );
- $this->assertEquals( '
Test content.
', $json['components'][ $index ]['text'] );
-
-
- // Add filter and test to ensure HTML mode is not used.
- add_filter( 'apple_news_body_html_enabled', [ $this, 'filter_apple_news_body_html_enabled' ] );
- $json = $this->get_json_for_post( $post_id );
- $this->assertEquals( 'body', $json['components'][ $index ]['role'] );
- $this->assertEquals( 'markdown', $json['components'][ $index ]['format'] );
- $this->assertEquals( 'Test content.', $json['components'][ $index ]['text'] );
- remove_filter( 'apple_news_body_html_enabled', [ $this, 'filter_apple_news_body_html_enabled' ] );
- }
-
- /**
- * Ensures that the body-layout-last class is properly applied.
- */
- public function test_layouts() {
- // Create a post with empty body content to force the body-layout-last bug to appear.
- $post_id = self::factory()->post->create( [ 'post_content' => '' ] );
- $json = $this->get_json_for_post( $post_id );
- $this->assertNotEquals( 'body-layout-last', $json['components'][ count( $json['components'] ) - 1 ]['layout'] );
- }
-
- /**
- * Given an expected result and an actual link, verifies that the link URL is
- * correctly processed. Used to ensure that valid link types (not just http/s,
- * but also mailto, webcal, stocks, etc.) are supported, and that unsupported
- * types are stripped out.
- *
- * @dataProvider data_link_types
- *
- * @param string $link The link, which will be added as the href parameter in an anchor tag in the test post that the test creates.
- * @param bool $should_work Whether the link is expected to work in Apple News Format or not.
- */
- public function test_link_types( $link, $should_work ) {
- $this->set_theme_settings( [ 'meta_component_order' => [ 'title', 'author' ] ] );
- $content = <<
-
-HTML;
-
- /**
- * A data provider for the testTransform function.
- *
- * @see self::test_transform()
- *
- * @return array Parameters to use when calling testTransform.
- */
- public function data_transform() {
- return [
- [ 'http://www.instagram.com/p/LtaiGnryiu/' ],
- [ 'https://www.instagram.com/p/LtaiGnryiu/' ],
- [ 'http://instagram.com/p/LtaiGnryiu/' ],
- [ 'https://instagram.com/p/LtaiGnryiu/' ],
- [ 'http://instagr.am/p/LtaiGnryiu/' ],
- [ 'https://instagr.am/p/LtaiGnryiu/' ],
- ];
- }
-
- /**
- * A filter function to modify the text style in the generated JSON.
- *
- * @param array $json The JSON array to modify.
- *
- * @return array The modified JSON.
- */
- public function filter_apple_news_instagram_json( $json ) {
- $json['URL'] = 'https://instagram.com/p/test/';
-
- return $json;
- }
-
- /**
- * Test the `apple_news_instagram_json` filter.
- */
- public function test_filter_json() {
-
- // Setup.
- $component = new Instagram(
- sprintf( $this->embed, 'https://instagram.com/p/LtaiGnryiu/' ),
- $this->workspace,
- $this->settings,
- $this->styles,
- $this->layouts
- );
- add_filter(
- 'apple_news_instagram_json',
- [ $this, 'filter_apple_news_instagram_json' ]
- );
-
- // Test.
- $result = $component->to_array();
- $this->assertEquals( 'https://instagram.com/p/test/', $result['URL'] );
-
- // Teardown.
- remove_filter(
- 'apple_news_instagram_json',
- [ $this, 'filter_apple_news_instagram_json' ]
- );
- }
-
- /**
- * Ensures an embed without a URL is not incorrectly transformed.
- */
- public function test_invalid_markup() {
-
- // Setup.
- $component = new Instagram(
- sprintf( $this->embed, 'invalid-content-no-url' ),
- $this->workspace,
- $this->settings,
- $this->styles,
- $this->layouts
- );
-
- // Test.
- $this->assertEquals(
- null,
- $component->to_array()
- );
- }
-
- /**
- * Ensures that given test parameters properly transform into components.
- *
- * @dataProvider data_transform
- *
- * @param string $url The URL to use.
- */
- public function test_transform( $url ) {
-
- // Setup.
- $components = [];
- $components[] = new Instagram(
- $url,
- $this->workspace,
- $this->settings,
- $this->styles,
- $this->layouts
- );
- $components[] = new Instagram(
- sprintf( $this->embed, $url ),
- $this->workspace,
- $this->settings,
- $this->styles,
- $this->layouts
- );
-
- // Test.
- foreach ( $components as $component ) {
- $this->assertEquals(
- [
- 'role' => 'instagram',
- 'URL' => $url,
- ],
- $component->to_array()
- );
- }
- }
-}
diff --git a/tests/apple-exporter/components/test-class-intro.php b/tests/apple-exporter/components/test-class-intro.php
deleted file mode 100644
index 353e3a39..00000000
--- a/tests/apple-exporter/components/test-class-intro.php
+++ /dev/null
@@ -1,132 +0,0 @@
-set_theme_settings( [ 'meta_component_order' => $meta_order ] );
- $post_id = self::factory()->post->create(
- [
- 'post_content' => 'Test content!',
- 'post_excerpt' => 'Test excerpt!',
- ]
- );
- $json = $this->get_json_for_post( $post_id );
- $this->assertEquals( 'title', $json['components'][0]['role'] );
-
- $this->assertEquals( $meta_order[1], $json['components'][1]['role'] );
- $this->assertEquals( 'body', $json['components'][2]['role'] );
- $this->assertEquals( '
Test content!
', $json['components'][2]['text'] );
- }
-
- /**
- * Test the `apple_news_intro_json` filter.
- */
- public function test_filter() {
- $this->set_theme_settings( [ 'meta_component_order' => [ 'intro' ] ] );
- add_filter( 'apple_news_intro_json', [ $this, 'filter_apple_news_intro_json' ] );
-
- // Create a test post and get JSON for it.
- $post_id = self::factory()->post->create( [ 'post_excerpt' => 'Test excerpt.' ] );
- $json = $this->get_json_for_post( $post_id );
- $this->assertEquals( 'intro', $json['components'][0]['role'] );
- $this->assertEquals( 'fancy-layout', $json['components'][0]['layout'] );
-
- // Teardown.
- remove_filter( 'apple_news_intro_json', [ $this, 'filter_apple_news_intro_json' ] );
- }
-
- /**
- * Tests the render method for the component.
- */
- public function test_render() {
- $this->set_theme_settings( [ 'meta_component_order' => [ 'intro' ] ] );
-
- // Create a test post and get JSON for it.
- $post_id = self::factory()->post->create( [ 'post_excerpt' => 'Test excerpt.' ] );
- $json = $this->get_json_for_post( $post_id );
- $this->assertEquals( 'intro', $json['components'][0]['role'] );
- $this->assertEquals( 'Test excerpt.', $json['components'][0]['text'] );
- }
-
- /**
- * Ensures that the Intro component is skipped if there is no intro specified.
- */
- public function test_skip() {
- $this->set_theme_settings( [ 'meta_component_order' => [ 'intro' ] ] );
-
- // Create an example post without a customized excerpt and verify that it is not included.
- $post_id_1 = self::factory()->post->create(
- [
- 'post_content' => '
Lorem ipsum dolor sit amet.
',
- 'post_excerpt' => '',
- ]
- );
- $json = $this->get_json_for_post( $post_id_1 );
- $this->assertEquals( 'body', $json['components'][0]['role'] );
-
- // Create an example post with a customized excerpt and verify that it is included.
- $post_id_2 = self::factory()->post->create(
- [
- 'post_content' => '
Lorem ipsum dolor sit amet.
',
- 'post_excerpt' => 'Test excerpt.',
- ]
- );
- $json = $this->get_json_for_post( $post_id_2 );
- $this->assertEquals( 'intro', $json['components'][0]['role'] );
- $this->assertEquals( 'Test excerpt.', $json['components'][0]['text'] );
-
- // Create an example post with an excerpt that is derivative of the main content.
- // Verify that it is skipped because it duplicates body content.
- $post_id_3 = self::factory()->post->create(
- [
- 'post_content' => '
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis arcu risus, vestibulum non nulla a, mollis posuere lectus. Quisque lectus ex, viverra nec massa et, elementum sodales dui. Nam nec congue libero. Nunc eu lectus quis quam eleifend gravida. Nulla condimentum, nisl ornare rhoncus ultrices, ex ipsum luctus dolor, vitae iaculis metus magna vitae neque. Maecenas in risus id est hendrerit mattis. Curabitur pulvinar ante a ligula tincidunt, id porta ante ornare. Donec neque metus, hendrerit nec lectus in, consectetur porta dolor. Curabitur egestas orci eu tortor congue, eu varius ipsum finibus. In in faucibus mi. Donec odio leo, blandit non varius nec, cursus ac eros. Aenean sagittis mauris eget interdum elementum. Etiam hendrerit lectus at lacus pretium pretium. Vivamus eu egestas dolor. Nam a ultricies lectus.
',
- 'post_excerpt' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis arcu risus, vestibulum non nulla a, mollis posuere lectus.',
- ]
- );
- $json = $this->get_json_for_post( $post_id_3 );
- $this->assertEquals( 'body', $json['components'][0]['role'] );
- }
-}
diff --git a/tests/apple-exporter/components/test-class-link-button.php b/tests/apple-exporter/components/test-class-link-button.php
deleted file mode 100644
index c5bd4e0b..00000000
--- a/tests/apple-exporter/components/test-class-link-button.php
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-HTML;
- return self::factory()->post->create( [ 'post_content' => $content ] );
- }
-
- /**
- * Creates a post containing a pullquote and returns the post ID.
- *
- * @return int The post ID of the post containing the pullquote.
- */
- private function get_pullquote() {
- $content = <<
-
Test pullquote.
-
-HTML;
- return self::factory()->post->create( [ 'post_content' => $content ] );
- }
-
- /**
- * A data provider for the test_transform_pullquote function.
- *
- * @return array An array of arrays representing function arguments.
- */
- public function data_transform_pullquote() {
- return [
- [ 'my text', '
my text
', 'no' ],
- [ 'my text', '
“my text”
', 'yes' ],
- [ '"my text"', '
“my text”
', 'yes' ],
- [ '“my text”', '
“my text”
', 'yes' ],
- ];
- }
-
- /**
- * A data provider for the test_transform_pullquote_for_theme function.
- *
- * @return array An array of arrays representing function arguments.
- */
- public function data_transform_pullquote_for_theme() {
- return [
- [ 'classic', [ 'cover', 'slug', 'title', 'byline' ] ],
- [ 'dark', [ 'cover', 'slug', 'title', 'byline' ] ],
- [ 'modern', [ 'slug', 'title', 'byline', 'cover' ] ],
- [ 'pastel', [ 'slug', 'cover', 'title', 'byline' ] ],
- ];
- }
-
- /**
- * A filter function to modify the hanging punctuation text.
- *
- * @param string $modified_text The modified text to be filtered.
- * @param string $text The original text for the quote.
- *
- * @return string The modified text.
- */
- public function filter_apple_news_apply_hanging_punctuation( $modified_text, $text ) {
- return '«' . $text . '»';
- }
-
- /**
- * A filter function to modify the text style in the generated JSON.
- *
- * @param array $json The JSON array to modify.
- *
- * @return array The modified JSON.
- */
- public function filter_apple_news_quote_json( $json ) {
- $json['textStyle'] = 'fancy-quote';
-
- return $json;
- }
-
- /**
- * Returns an array of arrays representing function arguments to the
- * test_filter, test_filter_hanging_punctuation, test_html_in_headings functions.
- */
- public function data_test_filter() {
- return [
- [ [ 'title', 'byline' ] ],
- [ [ 'title', 'author' ] ],
- ];
- }
-
- /**
- * Test the `apple_news_apply_hanging_punctuation` filter.
- *
- * @dataProvider data_test_filter
- *
- * @param string[] $meta_order The order of meta components to use.
- */
- public function test_filter_hanging_punctuation( $meta_order ) {
- $this->set_theme_settings(
- [
- 'meta_component_order' => $meta_order,
- 'pullquote_hanging_punctuation' => 'yes',
- ]
- );
- add_filter( 'apple_news_apply_hanging_punctuation', [ $this, 'filter_apple_news_apply_hanging_punctuation' ], 10, 2 );
- $json = $this->get_json_for_post( $this->get_pullquote() );
- $this->assertEquals( '
',
- $this->workspace,
- $this->settings,
- $this->styles,
- $this->layouts
- );
-
- add_filter(
- 'apple_news_tweet_json',
- function ( $json ) {
- $json['URL'] = 'https://twitter.com/alleydev/status/123';
- return $json;
- }
- );
-
- $result = $component->to_array();
- $this->assertEquals( 'https://twitter.com/alleydev/status/123', $result['URL'] );
- }
-}
diff --git a/tests/apple-exporter/components/test-class-video.php b/tests/apple-exporter/components/test-class-video.php
deleted file mode 100644
index af41f8ec..00000000
--- a/tests/apple-exporter/components/test-class-video.php
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
- https://www.example.org/wp-content/uploads/2017/02/example-video.mp4
-
-HTML;
-
- /**
- * A filter function to modify the video URL in the generated JSON.
- *
- * @param array $json The JSON array to modify.
- *
- * @return array The modified JSON.
- */
- public function filter_apple_news_video_json( $json ) {
- $json['URL'] = 'https://www.example.org/filter-me';
-
- return $json;
- }
-
- /**
- * Test the `apple_news_quote_json` filter.
- */
- public function test_filter() {
-
- // Setup.
- $component = $this->get_component();
- add_filter(
- 'apple_news_video_json',
- [ $this, 'filter_apple_news_video_json' ]
- );
-
- // Test.
- $result = $component->to_array();
- $this->assertEquals(
- 'https://www.example.org/filter-me',
- $result['URL']
- );
-
- // Teardown.
- remove_filter(
- 'apple_news_video_json',
- [ $this, 'filter_apple_news_video_json' ]
- );
- }
-
- /**
- * Tests the ability for the Video component to get and save caption information
- */
- public function test_caption() {
- $component = $this->get_component( 'caption' );
-
- // Test.
- $this->assertEquals(
- [
- 'role' => 'container',
- 'components' => [
- [
- 'role' => 'video',
- 'URL' => 'https://www.example.org/test.mp4',
- ],
- [
- 'role' => 'caption',
- 'text' => 'caption',
- 'format' => 'html',
- ],
- ],
- ],
- $component->to_array()
- );
- }
-
- /**
- * Tests the transformation process from a video element to a Video component.
- */
- public function test_generated_json() {
-
- // Setup.
- $this->settings->set( 'use_remote_images', 'yes' );
- $component = $this->get_component();
-
- // Test.
- $result = $component->to_array();
- $this->assertEquals(
- 'https://www.example.org/wp-content/uploads/2017/02/ExamplePoster.jpg',
- $result['stillURL']
- );
- $this->assertEquals(
- 'video',
- $result['role']
- );
- $this->assertEquals(
- 'https://www.example.org/wp-content/uploads/2017/02/example-video.mp4?_=1',
- $result['URL']
- );
- }
-
- /**
- * A function to get a basic component for testing using defined content.
- *
- * @param string $content HTML for the component.
- *
- * @return Video A Video object containing the specified content.
- */
- private function get_component( $content = '' ) {
- return new Video(
- ! empty( $content ) ? $content : $this->video_content,
- $this->workspace,
- $this->settings,
- $this->styles,
- $this->layouts
- );
- }
-}
diff --git a/tests/apple-exporter/test-class-exporter-content.php b/tests/apple-exporter/test-class-exporter-content.php
deleted file mode 100644
index 32d8ecd7..00000000
--- a/tests/apple-exporter/test-class-exporter-content.php
+++ /dev/null
@@ -1,76 +0,0 @@
-Example content' );
- $this->assertEquals( '3', $content->id() );
- $this->assertEquals( 'Title', $content->title() );
- $this->assertEquals( '
Example content
', $content->content() );
- $this->assertEquals( null, $content->intro() );
- $this->assertEquals( null, $content->cover() );
- }
-
- /**
- * Tests the behavior of the exporter with a title, body content, an excerpt, and a URL.
- */
- public function test_complete_content() {
- $content = new Exporter_Content( 3, 'Title', '
',
- str_replace( "\n", '', $parsed_html )
- );
- }
-}
diff --git a/tests/apple-exporter/test-class-theme.php b/tests/apple-exporter/test-class-theme.php
deleted file mode 100644
index 5eb97070..00000000
--- a/tests/apple-exporter/test-class-theme.php
+++ /dev/null
@@ -1,128 +0,0 @@
- [
- 'body' => [
- 'default-body' => [
- 'hyphenation' => false,
- ],
- ],
- ],
- ];
-
- // Create a theme and load the custom settings.
- $theme = new Theme();
- $theme->load( $theme_settings );
-
- // Ensure the custom JSON templates exist within the theme.
- $this->assertSame(
- $theme_settings['json_templates'],
- $theme->get_value( 'json_templates' )
- );
-
- // Remove the custom JSON templates and update the theme.
- unset( $theme_settings['json_templates'] );
- $theme->load( $theme_settings );
-
- // Ensure the custom JSON was removed from the theme.
- $this->assertSame(
- [],
- $theme->get_value( 'json_templates' )
- );
- }
-
- /**
- * Tests the 'apple_news_fonts_list' filter.
- */
- public function test_font_filter() {
-
- // Test before filter.
- $this->assertFalse(
- in_array(
- 'ExampleFont',
- Theme::get_fonts(),
- true
- )
- );
-
- // Add the filter.
- add_filter(
- 'apple_news_fonts_list',
- [ $this, 'filter_apple_news_fonts_list' ]
- );
-
- // Test.
- $this->assertTrue(
- in_array(
- 'ExampleFont',
- Theme::get_fonts(),
- true
- )
- );
-
- // Teardown.
- remove_filter(
- 'apple_news_fonts_list',
- [ $this, 'filter_apple_news_fonts_list' ]
- );
- }
-
- /**
- * Tests the functionality of the get_registry function.
- *
- * @see Apple_Exporter\Theme::get_registry()
- */
- public function test_get_registry() {
-
- // Setup.
- update_option(
- Theme::INDEX_KEY,
- [ 'Theme 3', 'Theme 2', 'Theme 1' ],
- false
- );
- update_option( Theme::ACTIVE_KEY, 'Theme 2', false );
-
- // Ensure the get_registry function returns in sorted order with active 1st.
- $this->assertSame(
- [ 'Theme 2', 'Theme 1', 'Theme 3' ],
- Theme::get_registry()
- );
- }
-}
diff --git a/tests/apple-push-api/test-class-credentials.php b/tests/apple-push-api/test-class-credentials.php
deleted file mode 100644
index 484ddf88..00000000
--- a/tests/apple-push-api/test-class-credentials.php
+++ /dev/null
@@ -1,27 +0,0 @@
-assertEquals( 'foo', $credentials->key() );
- $this->assertEquals( 'bar', $credentials->secret() );
- }
-}
diff --git a/tests/apple-push-api/test-class-mime-builder.php b/tests/apple-push-api/test-class-mime-builder.php
deleted file mode 100644
index 6cf537f1..00000000
--- a/tests/apple-push-api/test-class-mime-builder.php
+++ /dev/null
@@ -1,64 +0,0 @@
-boundary() . $eol .
- 'Content-Type: application/json' . $eol .
- "Content-Disposition: form-data; name=$name; filename=$filename; size=$size" . $eol .
- $eol . $json . $eol;
-
- $this->assertEquals(
- $expected,
- $builder->add_json_string( $name, $filename, $json )
- );
- }
-
- /**
- * Tests the behavior of adding invalid JSON to the MIME builder.
- */
- public function test_invalid_json() {
- $builder = new MIME_Builder();
- $name = 'some-name';
- $filename = 'article.json';
- $json = '';
-
- $this->expectException( \Apple_Push_API\Request\Request_Exception::class );
- $this->expectExceptionMessage( 'The attachment article.json could not be included in the request because it was empty.' );
-
- $builder->add_json_string( $name, $filename, $json );
- }
-}
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
deleted file mode 100644
index 550bbbae..00000000
--- a/tests/bootstrap.php
+++ /dev/null
@@ -1,94 +0,0 @@
-maybe_rsync_plugin()
- ->loaded(
- function () {
- // Disable VIP cache manager when testing against VIP Go integration.
- if ( method_exists( 'WPCOM_VIP_Cache_Manager', 'instance' ) ) {
- remove_action( 'init', [ WPCOM_VIP_Cache_Manager::instance(), 'init' ] );
- }
-
- // Set the permalink structure and domain options.
- update_option( 'home', 'https://www.example.org' );
- update_option( 'permalink_structure', '/%postname%' );
- update_option( 'siteurl', 'https://www.example.org' );
-
- // Apple News reads in the channel/key/secret values on load.
- update_option(
- 'apple_news_settings',
- [
- 'api_channel' => 'foo',
- 'api_key' => 'bar',
- 'api_secret' => 'baz',
- ]
- );
-
- // Force WP to treat URLs as HTTPS during testing so the home and siteurl option protocols are honored.
- $_SERVER['HTTPS'] = 1;
-
- // Load mocks for integration tests.
- apple_news_require_file( __DIR__ . '/mocks/class-bc-setup.php' );
- if ( ! function_exists( 'coauthors' ) ) {
- apple_news_require_file( __DIR__ . '/mocks/function-coauthors.php' );
- }
-
- // Activate mocked Brightcove functionality.
- $bc_setup = new BC_Setup();
- $bc_setup->action_init();
-
-
- // Disable CAP by default - make it opt-in in tests.
- add_filter( 'apple_news_use_coauthors', '__return_false' );
-
- // Filter the list of allowed protocols to allow Apple News-specific ones.
- add_filter(
- 'kses_allowed_protocols',
- function ( $protocols ) {
- return array_merge(
- (array) $protocols,
- [
- 'music',
- 'musics',
- 'stocks',
- ]
- );
- }
- );
-
- // Load the plugin.
- require dirname( __DIR__, 1 ) . '/apple-news.php';
- }
- )->install();
-
-apple_news_require_file( __DIR__ . '/class-apple-news-testcase.php' );
-apple_news_require_file( __DIR__ . '/apple-exporter/components/class-component-testcase.php' );
diff --git a/tests/class-apple-news-testcase.php b/tests/class-apple-news-testcase.php
deleted file mode 100644
index 867f5751..00000000
--- a/tests/class-apple-news-testcase.php
+++ /dev/null
@@ -1,594 +0,0 @@
-post_args[] = $args;
- return $args;
- }
-
- /**
- * Preempts external HTTP requests in a unit test context.
- *
- * @param false|array|WP_Error $preempt A preemptive return value of an HTTP request. Default false.
- * @param array $parsed_args HTTP request arguments.
- * @param string $url The request URL.
- *
- * @return array|WP_Error An array containing 'headers', 'body', 'response', 'cookies', and 'filename' elements on success, or WP_Error on failure.
- */
- public function filter_pre_http_request( $preempt, $parsed_args, $url ) {
- $verb = ! empty( $parsed_args['method'] ) ? $parsed_args['method'] : 'GET';
- if ( ! empty( $this->http_responses[ $verb ][ $url ] ) ) {
- return array_shift( $this->http_responses[ $verb ][ $url ] );
- }
-
- return new WP_Error( __( 'Invalid API request.', 'apple-news' ) );
- }
-
- /**
- * A fixture containing operations to be run before each test.
- */
- public function setUp(): void {
- parent::setUp();
-
- // Capture arguments sent to the Apple News API in POST requests.
- add_filter( 'apple_news_post_args', [ $this, 'filter_apple_news_post_args' ] );
-
- // Prevent external HTTP calls from being made in a test context.
- add_filter( 'pre_http_request', [ $this, 'filter_pre_http_request' ], 10, 3 );
-
- // Ensure HTML5 image captions are supported.
- add_theme_support( 'html5', [ 'caption' ] );
-
- // Create some example content and save it for future use.
- $this->content = new Apple_Exporter\Exporter_Content(
- 1,
- 'My Title',
- '
Hello, World!
'
- );
-
- // Create a new instance of the Settings object and save it for future use.
- $this->settings = new Apple_Exporter\Settings();
- $this->settings->api_channel = 'foo';
- $this->settings->api_key = 'bar';
- $this->settings->api_secret = 'baz';
-
- // Create a new instance of the Exporter_Content_Settings object and save it for future use.
- $this->content_settings = new Apple_Exporter\Exporter_Content_Settings();
-
- // Create a new instance of Prophet for future use and create a prophecized workspace.
- $this->prophet = new Prophecy\Prophet();
- $this->prophecized_workspace = $this->prophet->prophesize( '\Apple_Exporter\Workspace' );
-
- // Load the Default theme from config and save it for future use.
- $this->load_example_theme( 'default' );
-
- // Create styles for future use.
- $this->styles = new Apple_Exporter\Builders\Component_Text_Styles(
- $this->content,
- $this->content_settings
- );
-
- // Create layouts for future use.
- $this->layouts = new Apple_Exporter\Builders\Component_Layouts(
- $this->content,
- $this->content_settings
- );
-
- // Create component styles for future use.
- $this->component_styles = new Apple_Exporter\Builders\Component_Styles(
- $this->content,
- $this->content_settings
- );
-
- // Create a workspace for future use. Default it to use post ID 1, but this can be overridden at the test level.
- $this->set_workspace_post_id( 1 );
-
- // Pre-cache a transient for sections using sample data to bypass API call.
- set_transient(
- 'apple_news_sections',
- [
- (object) [
- 'createdAt' => '2017-01-01T00:00:00Z',
- 'id' => 'abcdef01-2345-6789-abcd-ef012356789a',
- 'isDefault' => true,
- 'links' => (object) [
- 'channel' => 'https://news-api.apple.com/channels/abcdef01-2345-6789-abcd-ef0123567890',
- 'self' => 'https://news-api.apple.com/channels/abcdef01-2345-6789-abcd-ef012356789a',
- ],
- 'modifiedAt' => '2017-01-01T00:00:00Z',
- 'name' => 'Main',
- 'shareUrl' => 'https://apple.news/AbCdEfGhIj-KlMnOpQrStUv',
- 'type' => 'section',
- ],
- (object) [
- 'createdAt' => '2017-01-01T00:00:00Z',
- 'id' => 'abcdef01-2345-6789-abcd-ef012356789b',
- 'isDefault' => false,
- 'links' => (object) [
- 'channel' => 'https://news-api.apple.com/channels/abcdef01-2345-6789-abcd-ef0123567890',
- 'self' => 'https://news-api.apple.com/channels/abcdef01-2345-6789-abcd-ef012356789b',
- ],
- 'modifiedAt' => '2017-01-01T00:00:00Z',
- 'name' => 'Secondary Section',
- 'shareUrl' => 'https://apple.news/AbCdEfGhIj-KlMnOpQrStUw',
- 'type' => 'section',
- ],
- ]
- );
- }
-
- /**
- * A fixture containing operations to be run after each test.
- */
- public function tearDown(): void {
- $this->prophet->checkPredictions();
- remove_filter( 'apple_news_post_args', [ $this, 'filter_apple_news_post_args' ] );
- remove_filter( 'pre_http_request', [ $this, 'filter_pre_http_request' ] );
- wp_set_current_user( 0 );
- }
-
- /**
- * Given an endpoint URL and a response object, adds the response object to
- * the queue for that URL. Used to fake HTTP responses from the Apple News
- * API.
- *
- * @param string $verb The HTTP verb to respond to.
- * @param string $url The API endpoint to fake the response for.
- * @param string $body The faked response body.
- * @param array $headers Optional. Faked response headers. Defaults to empty array.
- * @param array $response Optional. Faked response array. Defaults to empty array.
- * @param array $cookies Optional. Faked response cookies. Defaults to empty array.
- * @param string $filename Optional. Faked uploaded filename. Defaults to null.
- */
- protected function add_http_response(
- $verb,
- $url,
- $body = '',
- $headers = [],
- $response = [
- 'code' => 200,
- 'message' => 'OK',
- ],
- $cookies = [],
- $filename = null
- ) {
- // Handle null for DELETE.
- $this->http_responses[ $verb ][ $url ][] = 'DELETE' !== $verb
- ? [
- 'body' => $body,
- 'cookies' => $cookies,
- 'filename' => $filename,
- 'headers' => class_exists( \WpOrg\Requests\Utility\CaseInsensitiveDictionary::class )
- ? new \WpOrg\Requests\Utility\CaseInsensitiveDictionary( $headers )
- : new Requests_Utility_CaseInsensitiveDictionary( $headers ),
- 'response' => $response,
- ] : null;
- }
-
- /**
- * Creates a new admin (or super admin, on multisite) and sets the current
- * user ID to the new user. Useful when testing functionality that requires
- * an administrator's credentials, such as adding unfiltered HTML to a post.
- */
- protected function become_admin() {
- $user_id = self::factory()->user->create( [ 'role' => 'administrator' ] );
- if ( function_exists( 'grant_super_admin' ) ) {
- grant_super_admin( $user_id );
- }
- wp_set_current_user( $user_id );
- }
-
- /**
- * A helper function for removing Co-Authors Plus support in a test context.
- */
- protected function disable_coauthors_support() {
- remove_filter( 'apple_news_use_coauthors', '__return_true', 99 );
- }
-
- /**
- * A helper function for adding Co-Authors Plus support in a test context.
- */
- protected function enable_coauthors_support() {
- add_filter( 'apple_news_use_coauthors', '__return_true', 99 );
- }
-
- /**
- * Creates a fake article response from the API given optional overrides for
- * data properties.
- *
- * @param array $data Optional. Overrides for data properties.
- *
- * @return array The fake API response.
- */
- protected function fake_article_response( $data = [] ) {
- // Build the basic response.
- $response = [
- 'data' => wp_parse_args(
- $data,
- [
- 'createdAt' => '2020-01-02T03:04:05Z',
- 'modifiedAt' => '2020-01-02T03:04:05Z',
- 'id' => 'abcd1234-ef56-ab78-cd90-efabcdef123456',
- 'type' => 'article',
- 'shareUrl' => 'https://apple.news/ABCDEFGHIJKLMNOPQRSTUVW',
- 'links' => [
- 'channel' => 'https://news-api.apple.com/channels/' . $this->settings->api_channel,
- 'self' => 'https://news-api.apple.com/articles/abcd1234-ef56-ab78-cd90-efabcdef123456',
- 'sections' => [
- 'https://news-api.apple.com/sections/abcd1234-ef56-ab78-cd90-efabcdef1234',
- ],
- ],
- 'document' => [],
- 'revision' => 'AAAAAAAAAAAAAAAAAAAAAAAA',
- 'state' => 'PROCESSING',
- 'accessoryText' => null,
- 'title' => 'Test Article',
- 'maturityRating' => null,
- 'warnings' => [],
- 'targetTerritoryCountryCodes' => [ 'US' ],
- 'isCandidateToBeFeatured' => false,
- 'isSponsored' => false,
- 'isPreview' => false,
- 'isDevelopingStory' => false,
- 'isHidden' => false,
- ]
- ),
- 'meta' => [
- 'throttling' => [
- 'isThrottled' => false,
- 'queueSize' => 0,
- 'estimatedDelayInSeconds' => 0,
- 'quotaAvailable' => 200,
- ],
- ],
- ];
-
- // Apply targeted overrides to links, since wp_parse_args only works on one level.
- if ( isset( $data['links'] ) ) {
- $response['data']['links'] = wp_parse_args( $data['links'], $response['data']['links'] );
- }
-
- return $response;
- }
-
- /**
- * Given a request body from a POST request for an article to the Apple News
- * API, parses and extracts the article body portion of the request and
- * returns it as a JSON-decoded associative array.
- *
- * @param array $request The request to analyze.
- *
- * @return array An associative array representing the article body.
- */
- protected function get_body_from_request( $request ) {
- preg_match( '/Content-Disposition: form-data; name=my_article; filename=article.json; size=[0-9]+\s+(\{[^\r\n]+)/', $request['body'], $matches );
- return ! empty( $matches[1] ) ? json_decode( $matches[1], true ) : [];
- }
-
- /**
- * Given an image ID, returns the HTML5 markup for an image with a caption.
- *
- * Extracts the caption from the database entry for the image (stored in post_excerpt).
- *
- * @param int $image_id The image ID to use when generating the .
- *
- * @return string HTML for the image and the caption.
- */
- protected function get_image_with_caption( $image_id ) {
- return img_caption_shortcode(
- [
- 'caption' => wp_get_attachment_caption( $image_id ),
- 'width' => 640,
- ],
- wp_get_attachment_image( $image_id, 'full' )
- );
- }
-
- /**
- * A helper function that generates JSON for a given post ID.
- *
- * @param int $post_id The post ID for which to perform the export.
- *
- * @return array The JSON for the post, converted to an associative array.
- */
- protected function get_json_for_post( $post_id ) {
- $export = new Apple_Actions\Index\Export(
- $this->settings,
- $post_id,
- Admin_Apple_Sections::get_sections_for_post( $post_id )
- );
-
- return json_decode( $export->perform(), true );
- }
-
- /**
- * Given a request body from a POST request for an article to the Apple News
- * API, parses and extracts the metadata portion of the request and returns it
- * as a JSON-decoded associative array.
- *
- * @param array $request The request to analyze.
- *
- * @return array An associative array representing the article metadata.
- */
- protected function get_metadata_from_request( $request ) {
- preg_match( '/Content-Disposition: form-data; name=metadata\s+(\{[^\r\n]+)/', $request['body'], $matches );
- return ! empty( $matches[1] ) ? json_decode( $matches[1], true ) : [];
- }
-
- /**
- * Runs create_upload_object using a test image and returns the image ID.
- *
- * @param int $parent Optional. The parent post ID. Defaults to no parent.
- * @param string $caption Optional. The caption to set on the image.
- * @param string $alt Optional. The alt text to set on the image.
- *
- * @return int The post ID of the attachment image that was created.
- */
- protected function get_new_attachment( $parent = 0, $caption = '', $alt = '' ) {
- $image_id = self::factory()->attachment->create_upload_object( __DIR__ . '/data/test-image.jpg', $parent );
-
- if ( ! empty( $caption ) ) {
- $image = get_post( $image_id );
- $image->post_excerpt = $caption;
- wp_update_post( $image );
- }
-
- if ( ! empty( $alt ) ) {
- update_post_meta( $image_id, '_wp_attachment_image_alt', $alt );
- }
-
- return $image_id;
- }
-
- /**
- * A helper function that performs a sample push operation for a given post ID
- * and returns the request data that would be sent to Apple.
- *
- * @param int $post_id The post ID for which to perform the push.
- * @param array $data Optional. Overrides for default faked values in the data.
- *
- * @return array The request data for the post.
- * @throws Action_Exception If the Push action fails.
- */
- protected function get_request_for_post( $post_id, $data = [] ) {
- // Fake the API response.
- $this->add_http_response(
- 'POST',
- 'https://news-api.apple.com/channels/' . $this->settings->api_channel . '/articles',
- wp_json_encode(
- $this->fake_article_response(
- wp_parse_args(
- $data,
- [
- 'document' => $this->get_json_for_post( $post_id ),
- 'title' => get_the_title( $post_id ),
- ]
- )
- )
- ),
- [],
- [
- 'code' => 201,
- 'message' => 'Created',
- ]
- );
-
- // Perform the push.
- $action = new Apple_Actions\Index\Push( $this->settings, $post_id );
- $action->perform();
-
- // Return the request arguments sent with the push.
- return ! empty( $this->post_args ) ? array_pop( $this->post_args ) : [];
- }
-
- /**
- * A helper function that performs a sample update operation for a given post
- * ID and returns the request data that would be sent to Apple.
- *
- * @param int $post_id The post ID for which to perform the update.
- * @param array $data Optional. Overrides for default faked values in the data.
- *
- * @return array The request data for the post.
- * @throws Action_Exception If the Push action fails.
- */
- protected function get_request_for_update( $post_id, $data = [] ) {
- $article_id = isset( $data['id'] ) ? $data['id'] : 'abcd1234-ef56-ab78-cd90-efabcdef123456';
-
- // Fake the API response for the GET request that is performed for article data before the update.
- $this->add_http_response(
- 'GET',
- 'https://news-api.apple.com/articles/' . $article_id,
- wp_json_encode(
- $this->fake_article_response(
- wp_parse_args(
- $data,
- [
- 'document' => $this->get_json_for_post( $post_id ),
- 'title' => get_the_title( $post_id ),
- ]
- )
- )
- )
- );
-
- // Fake the API response.
- $this->add_http_response(
- 'POST',
- 'https://news-api.apple.com/articles/' . $article_id,
- wp_json_encode(
- $this->fake_article_response(
- wp_parse_args(
- $data,
- [
- 'document' => $this->get_json_for_post( $post_id ),
- 'title' => get_the_title( $post_id ),
- ]
- )
- )
- )
- );
-
- // Perform the push.
- $action = new Apple_Actions\Index\Push( $this->settings, $post_id );
- $action->perform();
-
- // Return the request arguments sent with the push.
- return ! empty( $this->post_args ) ? array_pop( $this->post_args ) : [];
- }
-
- /**
- * Loads an example theme given a slug.
- *
- * @param string $slug The slug of the example theme to load.
- */
- protected function load_example_theme( $slug ) {
- // Load the theme data from the JSON configuration file.
- $options = json_decode( file_get_contents( dirname( __DIR__ ) . '/assets/themes/' . $slug . '.json' ), true );
- if ( empty( $options ) ) {
- return;
- }
-
- // Negotiate screenshot URL.
- $options['screenshot_url'] = plugins_url(
- '/assets/screenshots/' . $slug . '.png',
- __DIR__
- );
-
- // Create a new instance of the Theme class and set the theme name.
- $this->theme = new Apple_Exporter\Theme();
- $this->theme->set_name( $options['theme_name'] );
-
- // Save the theme.
- $this->theme->load( $options );
- $this->theme->save();
-
- // Make this theme the active theme.
- $this->theme->set_active();
- $this->theme->use_this();
- }
-
- /**
- * Given an array of theme settings, applies them to the currently active theme.
- *
- * @param array $settings The settings to apply to the theme.
- */
- protected function set_theme_settings( $settings ) {
- $settings = wp_parse_args( $settings, $this->theme->all_settings() );
- $this->theme->load( $settings );
- $this->theme->save();
- }
-
- /**
- * Sets the workspace post ID to the ID provided.
- *
- * @param int $post_id The post ID to set for the workspace.
- */
- protected function set_workspace_post_id( $post_id ) {
- $this->workspace = new Apple_Exporter\Workspace( $post_id );
- }
-}
diff --git a/tests/data/test-image-2.jpg b/tests/data/test-image-2.jpg
deleted file mode 100644
index 47f3197b..00000000
Binary files a/tests/data/test-image-2.jpg and /dev/null differ
diff --git a/tests/data/test-image.jpg b/tests/data/test-image.jpg
deleted file mode 100644
index 47f3197b..00000000
Binary files a/tests/data/test-image.jpg and /dev/null differ
diff --git a/tests/mocks/class-bc-accounts.php b/tests/mocks/class-bc-accounts.php
deleted file mode 100644
index c2bc28e3..00000000
--- a/tests/mocks/class-bc-accounts.php
+++ /dev/null
@@ -1,47 +0,0 @@
- $account_id,
- 'account_name' => 'Test Account Name',
- 'client_id' => 'abcd1234-ef56-ab78-cd90-efabcd123456',
- 'client_secret' => 'AbCdEfGhIjKlMnOpQrStUvWxYz12345678-AbCdEfGhIjKlMnOpQrStUvWxYz0_AbCdE-AbCdEfG_AbCdE_AbC',
- 'hash' => 'abcdef0123456789',
- 'set_default' => 'default',
- ];
- }
-}
diff --git a/tests/mocks/class-bc-cms-api.php b/tests/mocks/class-bc-cms-api.php
deleted file mode 100644
index e8f4f4d6..00000000
--- a/tests/mocks/class-bc-cms-api.php
+++ /dev/null
@@ -1,49 +0,0 @@
- [
- 'src' => 'https://cf-images.us-east-1.prod.boltdns.net/v1/jit/1234567890/abcd1234-ef56-ab78-cd90-efabcd123456/main/1280x720/1s234ms/match/image.jpg',
- 'sources' => [
- [
- 'src' => 'https://cf-images.us-east-1.prod.boltdns.net/v1/jit/1234567890/abcd1234-ef56-ab78-cd90-efabcd123456/main/1280x720/1s234ms/match/image.jpg',
- 'height' => 720,
- 'width' => 1280,
- ],
- ],
- ],
- 'thumbnail' => [
- 'src' => 'https://cf-images.us-east-1.prod.boltdns.net/v1/jit/1234567890/abcd1234-ef56-ab78-cd90-efabcd123456/main/1690x90/1s234ms/match/image.jpg',
- 'sources' => [
- [
- 'src' => 'https://cf-images.us-east-1.prod.boltdns.net/v1/jit/1234567890/abcd1234-ef56-ab78-cd90-efabcd123456/main/160x90/1s234ms/match/image.jpg',
- 'height' => 90,
- 'width' => 160,
- ],
- ],
- ],
- ];
- }
-}
diff --git a/tests/mocks/class-bc-setup.php b/tests/mocks/class-bc-setup.php
deleted file mode 100644
index 58c5c2b5..00000000
--- a/tests/mocks/class-bc-setup.php
+++ /dev/null
@@ -1,29 +0,0 @@
- '',
- 'href' => get_author_posts_url( $author->ID, $author->user_nicename ),
- 'rel' => 'author',
- 'title' => sprintf( __( 'Posts by %s', 'co-authors-plus' ), $author->display_name ),
- 'class' => 'author url fn',
- 'text' => $author->display_name,
- 'after_html' => '',
- ];
-
- $single_link = sprintf(
- '%3$s',
- esc_url( $args['href'] ),
- esc_attr( $args['rel'] ),
- esc_html( $args['text'] )
- );
-
- $output[] = $args['before_html'] . $single_link . $args['after_html'];
-
- }
-
- // Get last element and prepend 'and'.
- $last_element = array_pop( $output );
- array_push( $output, 'and ' . $last_element );
-
- // If we have more than two items comma-separate array items and then conver to string.
- $output = implode( 2 > count( $output ) ? ', ' : ' ', $output );
-
- // Fork for echo.
- if ( ! $echo ) {
- return $output;
- }
-
- echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
-}
-
-/**
- * A mock for the coauthors_posts_links_single function from Co-Authors Plus.
- *
- * @param object $author The author object to use in output.
- * @return string
- */
-function coauthors_posts_links_single( $author ) {
- // Return if the fields we are trying to use are not sent.
- if ( ! isset( $author->ID, $author->user_nicename, $author->display_name ) ) {
- _doing_it_wrong(
- 'coauthors_posts_links_single',
- 'Invalid author object used',
- '3.2'
- );
- return;
- }
- $args = [
- 'before_html' => '',
- 'href' => get_author_posts_url( $author->ID, $author->user_nicename ),
- 'rel' => 'author',
- 'title' => sprintf( __( 'Posts by %s', 'co-authors-plus' ), apply_filters( 'the_author', $author->display_name ) ),
- 'class' => 'author url fn',
- 'text' => apply_filters( 'the_author', $author->display_name ),
- 'after_html' => '',
- ];
- $args = apply_filters( 'coauthors_posts_link', $args, $author );
- $single_link = sprintf(
- '%5$s',
- esc_url( $args['href'] ),
- esc_attr( $args['title'] ),
- esc_attr( $args['class'] ),
- esc_attr( $args['rel'] ),
- esc_html( $args['text'] )
- );
- return $args['before_html'] . $single_link . $args['after_html'];
-}
diff --git a/tests/test-class-apple-news.php b/tests/test-class-apple-news.php
deleted file mode 100644
index f4dfc854..00000000
--- a/tests/test-class-apple-news.php
+++ /dev/null
@@ -1,293 +0,0 @@
-assertEquals( 'test-get-filename.jpg', $filename );
- }
-
- /**
- * Tests the functionality of Apple_News::is_default_theme.
- */
- public function test_is_default_theme() {
- // Absent any customizations, the check for the default theme should return true.
- $this->assertTrue( Apple_News::is_default_theme() );
-
- // Load the default theme and change its name but not its settings.
- $theme = new Theme();
- $theme->set_name( 'Default' );
- $theme->load();
- $theme->rename( 'Not Default' );
-
- // The check for the default theme should now return false, since the name was changed.
- $this->assertFalse( Apple_News::is_default_theme() );
-
- // If we change the name back to Default, the check should go back to being true.
- $theme->rename( 'Default' );
- $this->assertTrue( Apple_News::is_default_theme() );
-
- // If we leave the name as Default but change one of the theme options, the check should return false.
- $theme->set_value( 'body_size', 72 );
- $theme->save();
- $this->assertFalse( Apple_News::is_default_theme() );
-
- // If we also rename the theme, the check should return false.
- $theme->rename( 'Not Default' );
- $this->assertFalse( Apple_News::is_default_theme() );
- }
-
- /**
- * Ensures that the migrate_api_settings function migrates settings.
- *
- * @see Apple_News::migrate_api_settings()
- */
- public function test_migrate_api_settings() {
-
- // Setup.
- $legacy_settings = $this->settings->all();
- $legacy_settings['api_autosync_update'] = 'no';
- unset( $legacy_settings['api_autosync_delete'] );
- $apple_news = new Apple_News();
- update_option( $apple_news::$option_name, $legacy_settings );
- $apple_news->migrate_api_settings();
-
- // Ensure the defaults did not overwrite the migrated legacy data.
- $expected_settings = $legacy_settings;
- $expected_settings['api_autosync_delete'] = 'no';
- $migrated_settings = get_option( $apple_news::$option_name );
- $this->assertEquals( $expected_settings, $migrated_settings );
- }
-
- /**
- * Ensures that the migrate_blockquote_settings function migrates settings.
- *
- * @see Apple_News::migrate_blockquote_settings()
- */
- public function test_migrate_blockquote_settings() {
-
- // Setup.
- $legacy_settings = $this->settings->all();
- $legacy_settings['body_background_color'] = '#aaaaaa';
- $legacy_settings['pullquote_border_color'] = '#abcdef';
- $legacy_settings['pullquote_border_style'] = 'dashed';
- $legacy_settings['pullquote_border_width'] = 10;
- $legacy_settings['body_color'] = '#012345';
- $legacy_settings['body_font'] = 'TestFont';
- $legacy_settings['body_line_height'] = 30;
- $legacy_settings['body_size'] = 20;
- $legacy_settings['body_tracking'] = 10;
- unset( $legacy_settings['blockquote_background_color'] );
- unset( $legacy_settings['blockquote_border_color'] );
- unset( $legacy_settings['blockquote_border_style'] );
- unset( $legacy_settings['blockquote_border_width'] );
- unset( $legacy_settings['blockquote_color'] );
- unset( $legacy_settings['blockquote_font'] );
- unset( $legacy_settings['blockquote_line_height'] );
- unset( $legacy_settings['blockquote_size'] );
- unset( $legacy_settings['blockquote_tracking'] );
- $apple_news = new Apple_News();
- update_option( $apple_news::$option_name, $legacy_settings );
- $apple_news->migrate_blockquote_settings();
-
- // Ensure the defaults did not overwrite the migrated legacy data.
- $expected_settings = $legacy_settings;
- $expected_settings['blockquote_background_color'] = '#999999';
- $expected_settings['blockquote_border_color'] = '#abcdef';
- $expected_settings['blockquote_border_style'] = 'dashed';
- $expected_settings['blockquote_border_width'] = 10;
- $expected_settings['blockquote_color'] = '#012345';
- $expected_settings['blockquote_font'] = 'TestFont';
- $expected_settings['blockquote_line_height'] = 30;
- $expected_settings['blockquote_size'] = 20;
- $expected_settings['blockquote_tracking'] = 10;
- $migrated_settings = get_option( $apple_news::$option_name );
- $this->assertEquals( $expected_settings, $migrated_settings );
- }
-
- /**
- * Ensures that the migrate_caption_settings function migrates settings.
- *
- * @see Apple_News::migrate_caption_settings()
- */
- public function test_migrate_caption_settings() {
-
- // Setup.
- $legacy_settings = $this->settings->all();
- $legacy_settings['body_color'] = '#abcdef';
- $legacy_settings['body_font'] = 'TestFont';
- $legacy_settings['body_line_height'] = 40;
- $legacy_settings['body_size'] = 30;
- $legacy_settings['body_tracking'] = 10;
- unset( $legacy_settings['caption_color'] );
- unset( $legacy_settings['caption_font'] );
- unset( $legacy_settings['caption_line_height'] );
- unset( $legacy_settings['caption_size'] );
- unset( $legacy_settings['caption_tracking'] );
- $apple_news = new Apple_News();
- update_option( $apple_news::$option_name, $legacy_settings );
- $apple_news->migrate_caption_settings();
-
- // Ensure the defaults did not overwrite the migrated legacy data.
- $expected_settings = $legacy_settings;
- $expected_settings['caption_color'] = '#abcdef';
- $expected_settings['caption_font'] = 'TestFont';
- $expected_settings['caption_line_height'] = 40;
- $expected_settings['caption_size'] = 28;
- $expected_settings['caption_tracking'] = 10;
- $migrated_settings = get_option( $apple_news::$option_name );
- $this->assertEquals( $expected_settings, $migrated_settings );
- }
-
- /**
- * Ensures that the migrate_header_settings function migrates settings.
- *
- * @see Apple_News::migrate_header_settings()
- */
- public function test_migrate_header_settings() {
-
- // Setup.
- $legacy_settings = $this->settings->all();
- $legacy_settings['header_color'] = '#abcdef';
- $legacy_settings['header_font'] = 'TestFont';
- $legacy_settings['header_line_height'] = 100;
- unset( $legacy_settings['header1_color'] );
- unset( $legacy_settings['header2_color'] );
- unset( $legacy_settings['header3_color'] );
- unset( $legacy_settings['header4_color'] );
- unset( $legacy_settings['header5_color'] );
- unset( $legacy_settings['header6_color'] );
- unset( $legacy_settings['header1_font'] );
- unset( $legacy_settings['header2_font'] );
- unset( $legacy_settings['header3_font'] );
- unset( $legacy_settings['header4_font'] );
- unset( $legacy_settings['header5_font'] );
- unset( $legacy_settings['header6_font'] );
- unset( $legacy_settings['header1_line_height'] );
- unset( $legacy_settings['header2_line_height'] );
- unset( $legacy_settings['header3_line_height'] );
- unset( $legacy_settings['header4_line_height'] );
- unset( $legacy_settings['header5_line_height'] );
- unset( $legacy_settings['header6_line_height'] );
- $apple_news = new Apple_News();
- update_option( $apple_news::$option_name, $legacy_settings );
- $apple_news->migrate_header_settings( $legacy_settings );
-
- // Ensure the defaults did not overwrite the migrated legacy data.
- $expected_settings = $legacy_settings;
- $expected_settings['header1_color'] = '#abcdef';
- $expected_settings['header2_color'] = '#abcdef';
- $expected_settings['header3_color'] = '#abcdef';
- $expected_settings['header4_color'] = '#abcdef';
- $expected_settings['header5_color'] = '#abcdef';
- $expected_settings['header6_color'] = '#abcdef';
- $expected_settings['header1_font'] = 'TestFont';
- $expected_settings['header2_font'] = 'TestFont';
- $expected_settings['header3_font'] = 'TestFont';
- $expected_settings['header4_font'] = 'TestFont';
- $expected_settings['header5_font'] = 'TestFont';
- $expected_settings['header6_font'] = 'TestFont';
- $expected_settings['header1_line_height'] = 100;
- $expected_settings['header2_line_height'] = 100;
- $expected_settings['header3_line_height'] = 100;
- $expected_settings['header4_line_height'] = 100;
- $expected_settings['header5_line_height'] = 100;
- $expected_settings['header6_line_height'] = 100;
- unset( $expected_settings['header_color'] );
- unset( $expected_settings['header_font'] );
- unset( $expected_settings['header_line_height'] );
- $migrated_settings = get_option( $apple_news::$option_name );
- $this->assertEquals( $expected_settings, $migrated_settings );
- }
-
- /**
- * Ensures that the migrate_settings function properly migrates legacy settings.
- *
- * @see Apple_News::migrate_settings()
- */
- public function test_migrate_settings() {
-
- // Setup.
- $apple_news = new Apple_News();
- delete_option( $apple_news::$option_name );
- update_option( 'use_remote_images', 'no' );
- $default_settings = $this->settings->all();
- $apple_news->migrate_settings();
-
- // Reset API info.
- $default_settings['api_channel'] = '';
- $default_settings['api_key'] = '';
- $default_settings['api_secret'] = '';
-
- // Ensure the defaults did not overwrite the migrated legacy data.
- $migrated_settings = get_option( $apple_news::$option_name );
- $this->assertNotEquals( $default_settings, $migrated_settings );
-
- // Ensure the migrated settings match what we expect.
- $default_settings['use_remote_images'] = 'no';
- $this->assertEquals( $default_settings, $migrated_settings );
- }
-
- /**
- * Ensures that the get_support_info returns the correct values.
- *
- * @see Apple_News::get_support_info()
- */
- public function test_support_info() {
-
- // Test HTML.
- $this->assertEquals(
- '
If you need assistance, please reach out for support on WordPress.org or GitHub.',
- Apple_News::get_support_info()
- );
-
- // Test HTML with no padding.
- $this->assertEquals(
- 'If you need assistance, please reach out for support on WordPress.org or GitHub.',
- Apple_News::get_support_info( 'html', false )
- );
-
- // Test text.
- $this->assertEquals(
- "\n\n" . 'If you need assistance, please reach out for support on WordPress.org or GitHub.',
- Apple_News::get_support_info( 'text' )
- );
-
- // Test text with no padding.
- $this->assertEquals(
- 'If you need assistance, please reach out for support on WordPress.org or GitHub.',
- Apple_News::get_support_info( 'text', false )
- );
- }
-
- /**
- * Ensures that the version in Apple_News matches the reported plugin version.
- *
- * @see Apple_News::$version
- */
- public function test_version() {
- $plugin_data = apple_news_get_plugin_data();
- $this->assertEquals( Apple_News::$version, $plugin_data['Version'] );
- }
-}
diff --git a/webpack.config.js b/webpack.config.js
deleted file mode 100644
index 5f074713..00000000
--- a/webpack.config.js
+++ /dev/null
@@ -1,49 +0,0 @@
-const path = require('path');
-const DependencyExtractionWebpackPlugin = require('@wordpress/dependency-extraction-webpack-plugin');
-
-module.exports = (env, { mode }) => ({
- /*
- * See https://webpack.js.org/configuration/devtool/ for an explanation of how
- * to configure this directive. We are using the recommended options for
- * production and development mode that produce high quality source maps.
- */
- devtool: mode === 'production'
- ? 'source-map'
- : 'eval-source-map',
-
- // We only have one entry point - the pluginsidebar.
- entry: {
- pluginSidebar: './assets/js/pluginsidebar/index.jsx',
- adminSettings: './assets/js/admin-settings/frontend.jsx',
- },
-
- // Configure loaders based on extension.
- module: {
- rules: [
- {
- exclude: /node_modules/,
- test: /.jsx?$/,
- use: [
- 'babel-loader',
- ],
- },
- ],
- },
-
- // Configure the output filename.
- output: {
- filename: '[name].js',
- path: path.join(__dirname, 'build'),
- },
-
- // Configure plugins.
- plugins: [
- // This maps references to @wordpress/{package-name} to the wp object.
- new DependencyExtractionWebpackPlugin({ useDefaults: true }),
- ],
-
- // Tell webpack that we are using both .js and .jsx extensions.
- resolve: {
- extensions: ['.js', '.jsx'],
- },
-});