diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000000000..e69de29bb2d1d6 diff --git a/1197.c90416df.iframe.bundle.js b/1197.c90416df.iframe.bundle.js new file mode 100644 index 00000000000000..48433ceaf6fbd3 --- /dev/null +++ b/1197.c90416df.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 1197.c90416df.iframe.bundle.js.LICENSE.txt */ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[1197],{"./node_modules/@ariakit/core/esm/__chunks/BCALMBPZ.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{B1:()=>subscribe,OH:()=>sync,Ts:()=>init,UE:()=>throwOnConflictingProps,Up:()=>pick2,cJ:()=>omit2,mj:()=>setup,od:()=>mergeStore,vA:()=>batch,y$:()=>createStore});var _PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/3YLGPPWQ.js");function getInternal(store,key){const internals=store.__unstableInternals;return(0,_PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_0__.V1)(internals,"Invalid store"),internals[key]}function createStore(initialState,...stores){let state=initialState,prevStateBatch=state,lastUpdate=Symbol(),destroy=_PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_0__.lQ;const instances=new Set,updatedKeys=new Set,setups=new Set,listeners=new Set,batchListeners=new Set,disposables=new WeakMap,listenerKeys=new WeakMap,sub=(keys,listener,set=listeners)=>(set.add(listener),listenerKeys.set(listener,keys),()=>{var _a;null==(_a=disposables.get(listener))||_a(),disposables.delete(listener),listenerKeys.delete(listener),set.delete(listener)}),setState=(key,value,fromStores=!1)=>{var _a;if(!(0,_PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_0__.mQ)(state,key))return;const nextValue=(0,_PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_0__.Qh)(value,state[key]);if(nextValue===state[key])return;if(!fromStores)for(const store of stores)null==(_a=null==store?void 0:store.setState)||_a.call(store,key,nextValue);const prevState=state;state=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__.IA)({},state),{[key]:nextValue});const thisUpdate=Symbol();lastUpdate=thisUpdate,updatedKeys.add(key);const run=(listener,prev,uKeys)=>{var _a2;const keys=listenerKeys.get(listener);keys&&!keys.some((k=>uKeys?uKeys.has(k):k===key))||(null==(_a2=disposables.get(listener))||_a2(),disposables.set(listener,listener(state,prev)))};for(const listener of listeners)run(listener,prevState);queueMicrotask((()=>{if(lastUpdate!==thisUpdate)return;const snapshot=state;for(const listener of batchListeners)run(listener,prevStateBatch,updatedKeys);prevStateBatch=snapshot,updatedKeys.clear()}))},finalStore={getState:()=>state,setState,__unstableInternals:{setup:callback=>(setups.add(callback),()=>setups.delete(callback)),init:()=>{const initialized=instances.size,instance=Symbol();instances.add(instance);const maybeDestroy=()=>{instances.delete(instance),instances.size||destroy()};if(initialized)return maybeDestroy;const desyncs=(0,_PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_0__.xD)(state).map((key=>(0,_PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_0__.cy)(...stores.map((store=>{var _a;const storeState=null==(_a=null==store?void 0:store.getState)?void 0:_a.call(store);if(storeState&&(0,_PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_0__.mQ)(storeState,key))return sync(store,[key],(state2=>{setState(key,state2[key],!0)}))}))))),teardowns=[];for(const setup2 of setups)teardowns.push(setup2());const cleanups=stores.map(init);return destroy=(0,_PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_0__.cy)(...desyncs,...teardowns,...cleanups),maybeDestroy},subscribe:(keys,listener)=>sub(keys,listener),sync:(keys,listener)=>(disposables.set(listener,listener(state,state)),sub(keys,listener)),batch:(keys,listener)=>(disposables.set(listener,listener(state,prevStateBatch)),sub(keys,listener,batchListeners)),pick:keys=>createStore((0,_PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_0__.Up)(state,keys),finalStore),omit:keys=>createStore((0,_PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_0__.cJ)(state,keys),finalStore)}};return finalStore}function setup(store,...args){if(store)return getInternal(store,"setup")(...args)}function init(store,...args){if(store)return getInternal(store,"init")(...args)}function subscribe(store,...args){if(store)return getInternal(store,"subscribe")(...args)}function sync(store,...args){if(store)return getInternal(store,"sync")(...args)}function batch(store,...args){if(store)return getInternal(store,"batch")(...args)}function omit2(store,...args){if(store)return getInternal(store,"omit")(...args)}function pick2(store,...args){if(store)return getInternal(store,"pick")(...args)}function mergeStore(...stores){const store=createStore(stores.reduce(((state,store2)=>{var _a;const nextState=null==(_a=null==store2?void 0:store2.getState)?void 0:_a.call(store2);return nextState?Object.assign(state,nextState):state}),{}),...stores);return Object.assign({},...stores,store)}function throwOnConflictingProps(props,store){}},"./node_modules/@ariakit/core/esm/utils/focus.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{AJ:()=>hasFocus,LC:()=>getFirstTabbableIn,QZ:()=>restoreFocusIn,UK:()=>getClosestFocusable,WA:()=>focusIntoView,XJ:()=>getPreviousTabbable,a9:()=>getAllTabbableIn,do:()=>focusIfNeeded,gw:()=>disableFocusIn,oW:()=>hasFocusWithin,tp:()=>isFocusable,vF:()=>getNextTabbable});var _chunks_DTR5TSDJ_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/DTR5TSDJ.js"),_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/3YLGPPWQ.js"),selector="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function isFocusable(element){return!!element.matches(selector)&&(!!(0,_chunks_DTR5TSDJ_js__WEBPACK_IMPORTED_MODULE_0__.zN)(element)&&!element.closest("[inert]"))}function isTabbable(element){if(!isFocusable(element))return!1;if(function hasNegativeTabIndex(element){return Number.parseInt(element.getAttribute("tabindex")||"0",10)<0}(element))return!1;if(!("form"in element))return!0;if(!element.form)return!0;if(element.checked)return!0;if("radio"!==element.type)return!0;const radioGroup=element.form.elements.namedItem(element.name);if(!radioGroup)return!0;if(!("length"in radioGroup))return!0;const activeElement=(0,_chunks_DTR5TSDJ_js__WEBPACK_IMPORTED_MODULE_0__.bq)(element);return!activeElement||(activeElement===element||(!("form"in activeElement)||(activeElement.form!==element.form||activeElement.name!==element.name)))}function getAllFocusableIn(container,includeContainer){const elements=Array.from(container.querySelectorAll(selector));includeContainer&&elements.unshift(container);const focusableElements=elements.filter(isFocusable);return focusableElements.forEach(((element,i)=>{if((0,_chunks_DTR5TSDJ_js__WEBPACK_IMPORTED_MODULE_0__.qt)(element)&&element.contentDocument){const frameBody=element.contentDocument.body;focusableElements.splice(i,1,...getAllFocusableIn(frameBody))}})),focusableElements}function getAllTabbableIn(container,includeContainer,fallbackToFocusable){const elements=Array.from(container.querySelectorAll(selector)),tabbableElements=elements.filter(isTabbable);return includeContainer&&isTabbable(container)&&tabbableElements.unshift(container),tabbableElements.forEach(((element,i)=>{if((0,_chunks_DTR5TSDJ_js__WEBPACK_IMPORTED_MODULE_0__.qt)(element)&&element.contentDocument){const allFrameTabbable=getAllTabbableIn(element.contentDocument.body,!1,fallbackToFocusable);tabbableElements.splice(i,1,...allFrameTabbable)}})),!tabbableElements.length&&fallbackToFocusable?elements:tabbableElements}function getFirstTabbableIn(container,includeContainer,fallbackToFocusable){const[first]=getAllTabbableIn(container,includeContainer,fallbackToFocusable);return first||null}function getNextTabbable(fallbackToFirst,fallbackToFocusable){return function getNextTabbableIn(container,includeContainer,fallbackToFirst,fallbackToFocusable){const activeElement=(0,_chunks_DTR5TSDJ_js__WEBPACK_IMPORTED_MODULE_0__.bq)(container),allFocusable=getAllFocusableIn(container,includeContainer),activeIndex=allFocusable.indexOf(activeElement),nextFocusableElements=allFocusable.slice(activeIndex+1);return nextFocusableElements.find(isTabbable)||(fallbackToFirst?allFocusable.find(isTabbable):null)||(fallbackToFocusable?nextFocusableElements[0]:null)||null}(document.body,!1,fallbackToFirst,fallbackToFocusable)}function getPreviousTabbable(fallbackToFirst,fallbackToFocusable){return function getPreviousTabbableIn(container,includeContainer,fallbackToLast,fallbackToFocusable){const activeElement=(0,_chunks_DTR5TSDJ_js__WEBPACK_IMPORTED_MODULE_0__.bq)(container),allFocusable=getAllFocusableIn(container,includeContainer).reverse(),activeIndex=allFocusable.indexOf(activeElement),previousFocusableElements=allFocusable.slice(activeIndex+1);return previousFocusableElements.find(isTabbable)||(fallbackToLast?allFocusable.find(isTabbable):null)||(fallbackToFocusable?previousFocusableElements[0]:null)||null}(document.body,!1,fallbackToFirst,fallbackToFocusable)}function getClosestFocusable(element){for(;element&&!isFocusable(element);)element=element.closest(selector);return element||null}function hasFocus(element){const activeElement=(0,_chunks_DTR5TSDJ_js__WEBPACK_IMPORTED_MODULE_0__.bq)(element);if(!activeElement)return!1;if(activeElement===element)return!0;const activeDescendant=activeElement.getAttribute("aria-activedescendant");return!!activeDescendant&&activeDescendant===element.id}function hasFocusWithin(element){const activeElement=(0,_chunks_DTR5TSDJ_js__WEBPACK_IMPORTED_MODULE_0__.bq)(element);if(!activeElement)return!1;if((0,_chunks_DTR5TSDJ_js__WEBPACK_IMPORTED_MODULE_0__.gR)(element,activeElement))return!0;const activeDescendant=activeElement.getAttribute("aria-activedescendant");return!!activeDescendant&&("id"in element&&(activeDescendant===element.id||!!element.querySelector(`#${CSS.escape(activeDescendant)}`)))}function focusIfNeeded(element){!hasFocusWithin(element)&&isFocusable(element)&&element.focus()}function disableFocus(element){var _a;const currentTabindex=null!=(_a=element.getAttribute("tabindex"))?_a:"";element.setAttribute("data-tabindex",currentTabindex),element.setAttribute("tabindex","-1")}function disableFocusIn(container,includeContainer){const tabbableElements=getAllTabbableIn(container,includeContainer);for(const element of tabbableElements)disableFocus(element)}function restoreFocusIn(container){const elements=container.querySelectorAll("[data-tabindex]"),restoreTabIndex=element=>{const tabindex=element.getAttribute("data-tabindex");element.removeAttribute("data-tabindex"),tabindex?element.setAttribute("tabindex",tabindex):element.removeAttribute("tabindex")};container.hasAttribute("data-tabindex")&&restoreTabIndex(container);for(const element of elements)restoreTabIndex(element)}function focusIntoView(element,options){"scrollIntoView"in element?(element.focus({preventScroll:!0}),element.scrollIntoView((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__.IA)({block:"nearest",inline:"nearest"},options))):element.focus()}},"./node_modules/@ariakit/react-core/esm/__chunks/LVA2YJMS.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Am:()=>isSafariFocusAncestor,Wc:()=>useFocusable});var _SWN3JYXT_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/SWN3JYXT.js"),_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/DTR5TSDJ.js"),_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/core/esm/utils/events.js"),_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/core/esm/utils/focus.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),_ariakit_core_utils_platform__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/QAGXQEUG.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),isSafariBrowser=(0,_ariakit_core_utils_platform__WEBPACK_IMPORTED_MODULE_1__.nr)(),alwaysFocusVisibleInputTypes=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],safariFocusAncestorSymbol=Symbol("safariFocusAncestor");function isSafariFocusAncestor(element){return!!element&&!!element[safariFocusAncestorSymbol]}function markSafariFocusAncestor(element,value){element&&(element[safariFocusAncestorSymbol]=value)}function isNativeCheckboxOrRadio(element){return!("input"!==element.tagName.toLowerCase()||!element.type)&&("radio"===element.type||"checkbox"===element.type)}function getTabIndex(focusable,trulyDisabled,nativeTabbable,supportsDisabled,tabIndexProp){return focusable?trulyDisabled?nativeTabbable&&!supportsDisabled?-1:void 0:nativeTabbable?tabIndexProp:tabIndexProp||0:tabIndexProp}function useDisableEvent(onEvent,disabled){return(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_2__._q)((event=>{null==onEvent||onEvent(event),event.defaultPrevented||disabled&&(event.stopPropagation(),event.preventDefault())}))}var isKeyboardModality=!0;function onGlobalMouseDown(event){const target=event.target;target&&"hasAttribute"in target&&(target.hasAttribute("data-focus-visible")||(isKeyboardModality=!1))}function onGlobalKeyDown(event){event.metaKey||event.ctrlKey||event.altKey||(isKeyboardModality=!0)}var useFocusable=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_3__.ab)((function useFocusable2(_a){var _b=_a,{focusable=!0,accessibleWhenDisabled,autoFocus,onFocusVisible}=_b,props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__.YG)(_b,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const ref=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{focusable&&((0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_5__.dg)("mousedown",onGlobalMouseDown,!0),(0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_5__.dg)("keydown",onGlobalKeyDown,!0))}),[focusable]),isSafariBrowser&&(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{if(!focusable)return;const element=ref.current;if(!element)return;if(!isNativeCheckboxOrRadio(element))return;const labels=function getLabels(element){return"labels"in element?element.labels:null}(element);if(!labels)return;const onMouseUp=()=>queueMicrotask((()=>element.focus()));for(const label of labels)label.addEventListener("mouseup",onMouseUp);return()=>{for(const label of labels)label.removeEventListener("mouseup",onMouseUp)}}),[focusable]);const disabled=focusable&&(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_6__.$f)(props),trulyDisabled=!!disabled&&!accessibleWhenDisabled,[focusVisible,setFocusVisible]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{focusable&&trulyDisabled&&focusVisible&&setFocusVisible(!1)}),[focusable,trulyDisabled,focusVisible]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{if(!focusable)return;if(!focusVisible)return;const element=ref.current;if(!element)return;if("undefined"==typeof IntersectionObserver)return;const observer=new IntersectionObserver((()=>{(0,_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_7__.tp)(element)||setFocusVisible(!1)}));return observer.observe(element),()=>observer.disconnect()}),[focusable,focusVisible]);const onKeyPressCapture=useDisableEvent(props.onKeyPressCapture,disabled),onMouseDownCapture=useDisableEvent(props.onMouseDownCapture,disabled),onClickCapture=useDisableEvent(props.onClickCapture,disabled),onMouseDownProp=props.onMouseDown,onMouseDown=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_2__._q)((event=>{if(null==onMouseDownProp||onMouseDownProp(event),event.defaultPrevented)return;if(!focusable)return;const element=event.currentTarget;if(!isSafariBrowser)return;if((0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_5__.ho)(event))return;if(!(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_8__.Bm)(element)&&!isNativeCheckboxOrRadio(element))return;let receivedFocus=!1;const onFocus=()=>{receivedFocus=!0};element.addEventListener("focusin",onFocus,{capture:!0,once:!0});const focusableContainer=(0,_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_7__.UK)(element.parentElement);markSafariFocusAncestor(focusableContainer,!0),(0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_5__.nz)(element,"mouseup",(()=>{element.removeEventListener("focusin",onFocus,!0),markSafariFocusAncestor(focusableContainer,!1),receivedFocus||(0,_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_7__.do)(element)}))})),handleFocusVisible=(event,currentTarget)=>{if(currentTarget&&(event.currentTarget=currentTarget),!focusable)return;const element=event.currentTarget;element&&(0,_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_7__.AJ)(element)&&(null==onFocusVisible||onFocusVisible(event),event.defaultPrevented||(element.dataset.focusVisible="true",setFocusVisible(!0)))},onKeyDownCaptureProp=props.onKeyDownCapture,onKeyDownCapture=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_2__._q)((event=>{if(null==onKeyDownCaptureProp||onKeyDownCaptureProp(event),event.defaultPrevented)return;if(!focusable)return;if(focusVisible)return;if(event.metaKey)return;if(event.altKey)return;if(event.ctrlKey)return;if(!(0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_5__.uh)(event))return;const element=event.currentTarget;(0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_5__.nz)(element,"focusout",(()=>handleFocusVisible(event,element)))})),onFocusCaptureProp=props.onFocusCapture,onFocusCapture=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_2__._q)((event=>{if(null==onFocusCaptureProp||onFocusCaptureProp(event),event.defaultPrevented)return;if(!focusable)return;if(!(0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_5__.uh)(event))return void setFocusVisible(!1);const element=event.currentTarget,applyFocusVisible=()=>handleFocusVisible(event,element);isKeyboardModality||function isAlwaysFocusVisible(element){const{tagName,readOnly,type}=element;return"TEXTAREA"===tagName&&!readOnly||("SELECT"===tagName&&!readOnly||("INPUT"!==tagName||readOnly?!!element.isContentEditable||!("combobox"!==element.getAttribute("role")||!element.dataset.name):alwaysFocusVisibleInputTypes.includes(type)))}(event.target)?(0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_5__.nz)(event.target,"focusout",applyFocusVisible):setFocusVisible(!1)})),onBlurProp=props.onBlur,onBlur=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_2__._q)((event=>{null==onBlurProp||onBlurProp(event),focusable&&(0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_5__.aG)(event)&&setFocusVisible(!1)})),autoFocusOnShow=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_SWN3JYXT_js__WEBPACK_IMPORTED_MODULE_9__.g),autoFocusRef=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_2__._q)((element=>{focusable&&autoFocus&&element&&autoFocusOnShow&&queueMicrotask((()=>{(0,_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_7__.AJ)(element)||(0,_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_7__.tp)(element)&&element.focus()}))})),tagName=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_2__.vO)(ref),nativeTabbable=focusable&&function isNativeTabbable(tagName){return!tagName||"button"===tagName||"summary"===tagName||"input"===tagName||"select"===tagName||"textarea"===tagName||"a"===tagName}(tagName),supportsDisabled=focusable&&function supportsDisabledAttribute(tagName){return!tagName||"button"===tagName||"input"===tagName||"select"===tagName||"textarea"===tagName}(tagName),styleProp=props.style,style=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>trulyDisabled?(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__.IA)({pointerEvents:"none"},styleProp):styleProp),[trulyDisabled,styleProp]);return props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__.IA)({"data-focus-visible":focusable&&focusVisible||void 0,"data-autofocus":autoFocus||void 0,"aria-disabled":disabled||void 0},props),{ref:(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_2__.SV)(ref,autoFocusRef,props.ref),style,tabIndex:getTabIndex(focusable,trulyDisabled,nativeTabbable,supportsDisabled,props.tabIndex),disabled:!(!supportsDisabled||!trulyDisabled)||void 0,contentEditable:disabled?void 0:props.contentEditable,onKeyPressCapture,onClickCapture,onMouseDownCapture,onMouseDown,onKeyDownCapture,onFocusCapture,onBlur}),(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_6__.HR)(props)}));(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_3__.Rf)((function Focusable2(props){const htmlProps=useFocusable(props);return(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_3__.n)("div",htmlProps)}))},"./node_modules/@ariakit/react-core/esm/__chunks/SWN3JYXT.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{g:()=>FocusableContext});var FocusableContext=(0,__webpack_require__("./node_modules/react/index.js").createContext)(!0)},"./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{O$:()=>useStoreState,PX:()=>useStoreStateObject,Pj:()=>useStore,Tz:()=>useStoreProps});var _ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),_ariakit_core_utils_store__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/BCALMBPZ.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),use_sync_external_store_shim_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/use-sync-external-store/shim/index.js"),{useSyncExternalStore}=use_sync_external_store_shim_index_js__WEBPACK_IMPORTED_MODULE_1__,noopSubscribe=()=>()=>{};function useStoreState(store,keyOrSelector=_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_2__.D_){const storeSubscribe=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((callback=>store?(0,_ariakit_core_utils_store__WEBPACK_IMPORTED_MODULE_3__.B1)(store,null,callback):noopSubscribe()),[store]),getSnapshot=()=>{const key="string"==typeof keyOrSelector?keyOrSelector:null,selector="function"==typeof keyOrSelector?keyOrSelector:null,state=null==store?void 0:store.getState();return selector?selector(state):state&&key&&(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_2__.mQ)(state,key)?state[key]:void 0};return useSyncExternalStore(storeSubscribe,getSnapshot,getSnapshot)}function useStoreStateObject(store,object){const objRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef({}),storeSubscribe=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((callback=>store?(0,_ariakit_core_utils_store__WEBPACK_IMPORTED_MODULE_3__.B1)(store,null,callback):noopSubscribe()),[store]),getSnapshot=()=>{const state=null==store?void 0:store.getState();let updated=!1;const obj=objRef.current;for(const prop in object){const keyOrSelector=object[prop];if("function"==typeof keyOrSelector){const value=keyOrSelector(state);value!==obj[prop]&&(obj[prop]=value,updated=!0)}if("string"==typeof keyOrSelector){if(!state)continue;if(!(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_2__.mQ)(state,keyOrSelector))continue;const value=state[keyOrSelector];value!==obj[prop]&&(obj[prop]=value,updated=!0)}}return updated&&(objRef.current=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__.IA)({},obj)),objRef.current};return useSyncExternalStore(storeSubscribe,getSnapshot,getSnapshot)}function useStoreProps(store,props,key,setKey){const value=(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_2__.mQ)(props,key)?props[key]:void 0,setValue=setKey?props[setKey]:void 0,propsRef=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.hX)({value,setValue});(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.UQ)((()=>(0,_ariakit_core_utils_store__WEBPACK_IMPORTED_MODULE_3__.OH)(store,[key],((state,prev)=>{const{value:value2,setValue:setValue2}=propsRef.current;setValue2&&state[key]!==prev[key]&&state[key]!==value2&&setValue2(state[key])}))),[store,key]),(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.UQ)((()=>{if(void 0!==value)return store.setState(key,value),(0,_ariakit_core_utils_store__WEBPACK_IMPORTED_MODULE_3__.vA)(store,[key],(()=>{void 0!==value&&store.setState(key,value)}))}))}function useStore(createStore,props){const[store,setStore]=react__WEBPACK_IMPORTED_MODULE_0__.useState((()=>createStore(props)));(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.UQ)((()=>(0,_ariakit_core_utils_store__WEBPACK_IMPORTED_MODULE_3__.Ts)(store)),[store]);const useState2=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((keyOrSelector=>useStoreState(store,keyOrSelector)),[store]);return[react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__.IA)({},store),{useState:useState2})),[store,useState2]),(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__._q)((()=>{setStore((store2=>createStore((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__.IA)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__.IA)({},props),store2.getState()))))}))]}},"./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js":(__unused_webpack_module,exports,__webpack_require__)=>{var e=__webpack_require__("./node_modules/react/index.js");var k="function"==typeof Object.is?Object.is:function h(a,b){return a===b&&(0!==a||1/a==1/b)||a!=a&&b!=b},l=e.useState,m=e.useEffect,n=e.useLayoutEffect,p=e.useDebugValue;function r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return!k(a,d)}catch(f){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function t(a,b){return b()}:function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];return n((function(){c.value=d,c.getSnapshot=b,r(c)&&g({inst:c})}),[a,d,b]),m((function(){return r(c)&&g({inst:c}),a((function(){r(c)&&g({inst:c})}))}),[a]),p(d),d};exports.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u},"./node_modules/use-sync-external-store/shim/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js")}}]); \ No newline at end of file diff --git a/1197.c90416df.iframe.bundle.js.LICENSE.txt b/1197.c90416df.iframe.bundle.js.LICENSE.txt new file mode 100644 index 00000000000000..36b68ee5c77452 --- /dev/null +++ b/1197.c90416df.iframe.bundle.js.LICENSE.txt @@ -0,0 +1,9 @@ +/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ diff --git a/1217.7f0f8f96.iframe.bundle.js b/1217.7f0f8f96.iframe.bundle.js new file mode 100644 index 00000000000000..86e996223b5418 --- /dev/null +++ b/1217.7f0f8f96.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 1217.7f0f8f96.iframe.bundle.js.LICENSE.txt */ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[1217],{"./node_modules/fast-average-color/dist/index.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function toHex(num){var str=num.toString(16);return 1===str.length?"0"+str:str}function arrayToHex(arr){return"#"+arr.map(toHex).join("")}function prepareIgnoredColor(color){return color?function isRGBArray(value){return Array.isArray(value[0])}(color)?color:[color]:[]}function isIgnoredColor(data,index,ignoredColor){for(var i=0;i=ignoredColorComponent-value&&colorComponent<=ignoredColorComponent+value}function dominantAlgorithm(arr,len,options){for(var colorHash={},ignoredColor=options.ignoredColor,step=options.step,max=[0,0,0,0,0],i=0;iFastAverageColor});function getOriginalSize(resource){if(isInstanceOfHTMLImageElement(resource)){var width=resource.naturalWidth,height=resource.naturalHeight;return!resource.naturalWidth&&function isSvg(filename){return-1!==filename.search(/\.svg(\?|$)/i)}(resource.src)&&(width=height=100),{width,height}}return function isInstanceOfHTMLVideoElement(resource){return"undefined"!=typeof HTMLVideoElement&&resource instanceof HTMLVideoElement}(resource)?{width:resource.videoWidth,height:resource.videoHeight}:{width:resource.width,height:resource.height}}function getSrc(resource){return function isInstanceOfHTMLCanvasElement(resource){return"undefined"!=typeof HTMLCanvasElement&&resource instanceof HTMLCanvasElement}(resource)?"canvas":function isInstanceOfOffscreenCanvas(resource){return"undefined"!=typeof OffscreenCanvas&&resource instanceof OffscreenCanvas}(resource)?"offscreencanvas":function isInstanceOfImageBitmap(resource){return"undefined"!=typeof ImageBitmap&&resource instanceof ImageBitmap}(resource)?"imagebitmap":resource.src}function isInstanceOfHTMLImageElement(resource){return"undefined"!=typeof HTMLImageElement&&resource instanceof HTMLImageElement}var isWebWorkers="undefined"==typeof window;function outputError(message,silent,error){silent||(console.error("FastAverageColor: "+message),error&&console.error(error))}function getError(text){return Error("FastAverageColor: "+text)}var FastAverageColor=function(){function FastAverageColor(){this.canvas=null,this.ctx=null}return FastAverageColor.prototype.getColorAsync=function(resource,options){if(!resource)return Promise.reject(getError("call .getColorAsync() without resource."));if("string"==typeof resource){if("undefined"==typeof Image)return Promise.reject(getError("resource as string is not supported in this environment"));var img=new Image;return img.crossOrigin=options&&options.crossOrigin||"",img.src=resource,this.bindImageEvents(img,options)}if(isInstanceOfHTMLImageElement(resource)&&!resource.complete)return this.bindImageEvents(resource,options);var result=this.getColor(resource,options);return result.error?Promise.reject(result.error):Promise.resolve(result)},FastAverageColor.prototype.getColor=function(resource,options){var defaultColor=getDefaultColor(options=options||{});if(!resource)return outputError("call .getColor(null) without resource",options.silent),this.prepareResult(defaultColor);var size=function prepareSizeAndPosition(originalSize,options){var factor,srcLeft=getOption(options,"left",0),srcTop=getOption(options,"top",0),srcWidth=getOption(options,"width",originalSize.width),srcHeight=getOption(options,"height",originalSize.height),destWidth=srcWidth,destHeight=srcHeight;return"precision"===options.mode||(srcWidth>srcHeight?(factor=srcWidth/srcHeight,destWidth=100,destHeight=Math.round(destWidth/factor)):(factor=srcHeight/srcWidth,destHeight=100,destWidth=Math.round(destHeight/factor)),(destWidth>srcWidth||destHeight>srcHeight||destWidth<10||destHeight<10)&&(destWidth=srcWidth,destHeight=srcHeight)),{srcLeft,srcTop,srcWidth,srcHeight,destWidth,destHeight}}(getOriginalSize(resource),options);if(!(size.srcWidth&&size.srcHeight&&size.destWidth&&size.destHeight))return outputError('incorrect sizes for resource "'.concat(getSrc(resource),'"'),options.silent),this.prepareResult(defaultColor);if(this.canvas||(this.canvas=function makeCanvas(){return isWebWorkers?new OffscreenCanvas(1,1):document.createElement("canvas")}()),!this.ctx&&(this.ctx=this.canvas.getContext&&this.canvas.getContext("2d"),!this.ctx))return outputError("Canvas Context 2D is not supported in this browser",options.silent),this.prepareResult(defaultColor);this.canvas.width=size.destWidth,this.canvas.height=size.destHeight;var value=defaultColor;try{this.ctx.clearRect(0,0,size.destWidth,size.destHeight),this.ctx.drawImage(resource,size.srcLeft,size.srcTop,size.srcWidth,size.srcHeight,0,0,size.destWidth,size.destHeight);var bitmapData=this.ctx.getImageData(0,0,size.destWidth,size.destHeight).data;value=this.getColorFromArray4(bitmapData,options)}catch(e){outputError("security error (CORS) for resource ".concat(getSrc(resource),".\nDetails: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image"),options.silent,e)}return this.prepareResult(value)},FastAverageColor.prototype.getColorFromArray4=function(arr,options){options=options||{};var arrLength=arr.length,defaultColor=getDefaultColor(options);if(arrLength<4)return defaultColor;var algorithm,len=arrLength-arrLength%4,step=4*(options.step||1);switch(options.algorithm||"sqrt"){case"simple":algorithm=simpleAlgorithm;break;case"sqrt":algorithm=sqrtAlgorithm;break;case"dominant":algorithm=dominantAlgorithm;break;default:throw getError("".concat(options.algorithm," is unknown algorithm"))}return algorithm(arr,len,{defaultColor,ignoredColor:prepareIgnoredColor(options.ignoredColor),step})},FastAverageColor.prototype.prepareResult=function(value){var rgb=value.slice(0,3),rgba=[value[0],value[1],value[2],value[3]/255],isDarkColor=function isDark(color){return(299*color[0]+587*color[1]+114*color[2])/1e3<128}(value);return{value:[value[0],value[1],value[2],value[3]],rgb:"rgb("+rgb.join(",")+")",rgba:"rgba("+rgba.join(",")+")",hex:arrayToHex(rgb),hexa:arrayToHex(value),isDark:isDarkColor,isLight:!isDarkColor}},FastAverageColor.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},FastAverageColor.prototype.bindImageEvents=function(resource,options){var _this=this;return new Promise((function(resolve,reject){var onload=function(){unbindEvents();var result=_this.getColor(resource,options);result.error?reject(result.error):resolve(result)},onerror=function(){unbindEvents(),reject(getError('Error loading image "'.concat(resource.src,'".')))},onabort=function(){unbindEvents(),reject(getError('Image "'.concat(resource.src,'" loading aborted')))},unbindEvents=function(){resource.removeEventListener("load",onload),resource.removeEventListener("error",onerror),resource.removeEventListener("abort",onabort)};resource.addEventListener("load",onload),resource.addEventListener("error",onerror),resource.addEventListener("abort",onabort)}))},FastAverageColor}()},"./packages/block-library/node_modules/uuid/dist/esm-browser/v4.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{var getRandomValues;__webpack_require__.d(__webpack_exports__,{A:()=>esm_browser_v4});var rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&!(getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const regex=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const esm_browser_validate=function validate(uuid){return"string"==typeof uuid&®ex.test(uuid)};for(var byteToHex=[],i=0;i<256;++i)byteToHex.push((i+256).toString(16).substr(1));const esm_browser_stringify=function stringify(arr){var offset=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,uuid=(byteToHex[arr[offset+0]]+byteToHex[arr[offset+1]]+byteToHex[arr[offset+2]]+byteToHex[arr[offset+3]]+"-"+byteToHex[arr[offset+4]]+byteToHex[arr[offset+5]]+"-"+byteToHex[arr[offset+6]]+byteToHex[arr[offset+7]]+"-"+byteToHex[arr[offset+8]]+byteToHex[arr[offset+9]]+"-"+byteToHex[arr[offset+10]]+byteToHex[arr[offset+11]]+byteToHex[arr[offset+12]]+byteToHex[arr[offset+13]]+byteToHex[arr[offset+14]]+byteToHex[arr[offset+15]]).toLowerCase();if(!esm_browser_validate(uuid))throw TypeError("Stringified UUID is invalid");return uuid};const esm_browser_v4=function v4(options,buf,offset){var rnds=(options=options||{}).random||(options.rng||rng)();if(rnds[6]=15&rnds[6]|64,rnds[8]=63&rnds[8]|128,buf){offset=offset||0;for(var i=0;i<16;++i)buf[offset+i]=rnds[i];return buf}return esm_browser_stringify(rnds)}}}]); \ No newline at end of file diff --git a/1217.7f0f8f96.iframe.bundle.js.LICENSE.txt b/1217.7f0f8f96.iframe.bundle.js.LICENSE.txt new file mode 100644 index 00000000000000..c73b69bff01794 --- /dev/null +++ b/1217.7f0f8f96.iframe.bundle.js.LICENSE.txt @@ -0,0 +1 @@ +/*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color */ diff --git a/1285.8348bc83.iframe.bundle.js b/1285.8348bc83.iframe.bundle.js new file mode 100644 index 00000000000000..cdbadbff2189a4 --- /dev/null +++ b/1285.8348bc83.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[1285],{"./packages/components/build-module/unit-control/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Ay:()=>unit_control});var clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),build_module=__webpack_require__("./packages/deprecated/build-module/index.js"),react=__webpack_require__("./node_modules/react/index.js"),i18n_build_module=__webpack_require__("./packages/i18n/build-module/index.js"),unit_control_styles=__webpack_require__("./packages/components/build-module/unit-control/styles/unit-control-styles.js"),utils=__webpack_require__("./packages/components/build-module/unit-control/utils.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const unit_select_control=(0,react.forwardRef)((function UnitSelectControl({className,isUnitSelectTabbable:isTabbable=!0,onChange,size="default",unit="px",units=utils.Cy,...props},ref){if(!(0,utils.U6)(units)||1===units?.length)return(0,jsx_runtime.jsx)(unit_control_styles.BZ,{className:"components-unit-control__unit-label",selectSize:size,children:unit});const classes=(0,clsx.A)("components-unit-control__select",className);return(0,jsx_runtime.jsx)(unit_control_styles.td,{ref,className:classes,onChange:event=>{const{value:unitValue}=event.target,data=units.find((option=>option.value===unitValue));onChange?.(unitValue,{event,data})},selectSize:size,tabIndex:isTabbable?void 0:-1,value:unit,...props,children:units.map((option=>(0,jsx_runtime.jsx)("option",{value:option.value,children:option.label},option.value)))})}));var use_controlled_state=__webpack_require__("./packages/components/build-module/utils/hooks/use-controlled-state.js"),strings=__webpack_require__("./packages/components/build-module/utils/strings.js"),use_deprecated_props=__webpack_require__("./packages/components/build-module/utils/use-deprecated-props.js"),deprecated_36px_size=__webpack_require__("./packages/components/build-module/utils/deprecated-36px-size.js");const unit_control=(0,react.forwardRef)((function UnforwardedUnitControl(unitControlProps,forwardedRef){const{__unstableStateReducer,autoComplete="off",children,className,disabled=!1,disableUnits=!1,isPressEnterToChange=!1,isResetValueOnUnitChange=!1,isUnitSelectTabbable=!0,label,onChange:onChangeProp,onUnitChange,size="default",unit:unitProp,units:unitsProp=utils.Cy,value:valueProp,onFocus:onFocusProp,__shouldNotWarnDeprecated36pxSize,...props}=(0,use_deprecated_props.R)(unitControlProps);(0,deprecated_36px_size.M)({componentName:"UnitControl",__next40pxDefaultSize:props.__next40pxDefaultSize,size,__shouldNotWarnDeprecated36pxSize}),"unit"in unitControlProps&&(0,build_module.A)("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const nonNullValueProp=null!=valueProp?valueProp:void 0,[units,reFirstCharacterOfUnits]=(0,react.useMemo)((()=>{const list=(0,utils.Pr)(nonNullValueProp,unitProp,unitsProp),[{value:firstUnitValue=""}={},...rest]=list,firstCharacters=rest.reduce(((carry,{value})=>{const first=(0,strings.Nt)(value?.substring(0,1)||"");return carry.includes(first)?carry:`${carry}|${first}`}),(0,strings.Nt)(firstUnitValue.substring(0,1)));return[list,new RegExp(`^(?:${firstCharacters})$`,"i")]}),[nonNullValueProp,unitProp,unitsProp]),[parsedQuantity,parsedUnit]=(0,utils.wC)(nonNullValueProp,unitProp,units),[unit,setUnit]=(0,use_controlled_state.A)(1===units.length?units[0].value:unitProp,{initial:parsedUnit,fallback:""});(0,react.useEffect)((()=>{void 0!==parsedUnit&&setUnit(parsedUnit)}),[parsedUnit,setUnit]);const classes=(0,clsx.A)("components-unit-control","components-unit-control-wrapper",className);let handleOnKeyDown;!disableUnits&&isUnitSelectTabbable&&units.length&&(handleOnKeyDown=event=>{props.onKeyDown?.(event),event.metaKey||event.ctrlKey||!reFirstCharacterOfUnits.test(event.key)||refInputSuffix.current?.focus()});const refInputSuffix=(0,react.useRef)(null),inputSuffix=disableUnits?null:(0,jsx_runtime.jsx)(unit_select_control,{ref:refInputSuffix,"aria-label":(0,i18n_build_module.__)("Select unit"),disabled,isUnitSelectTabbable,onChange:(nextUnitValue,changeProps)=>{const{data}=changeProps;let nextValue=`${null!=parsedQuantity?parsedQuantity:""}${nextUnitValue}`;isResetValueOnUnitChange&&void 0!==data?.default&&(nextValue=`${data.default}${nextUnitValue}`),onChangeProp?.(nextValue,changeProps),onUnitChange?.(nextUnitValue,changeProps),setUnit(nextUnitValue)},size:["small","compact"].includes(size)||"default"===size&&!props.__next40pxDefaultSize?"small":"default",unit,units,onFocus:onFocusProp,onBlur:unitControlProps.onBlur});let step=props.step;if(!step&&units){var _activeUnit$step;const activeUnit=units.find((option=>option.value===unit));step=null!==(_activeUnit$step=activeUnit?.step)&&void 0!==_activeUnit$step?_activeUnit$step:1}return(0,jsx_runtime.jsx)(unit_control_styles.mT,{...props,__shouldNotWarnDeprecated36pxSize:!0,autoComplete,className:classes,disabled,spinControls:"none",isPressEnterToChange,label,onKeyDown:handleOnKeyDown,onChange:(nextQuantityValue,changeProps)=>{if(""===nextQuantityValue||null==nextQuantityValue)return void onChangeProp?.("",changeProps);const onChangeValue=(0,utils.Op)(nextQuantityValue,units,parsedQuantity,unit).join("");onChangeProp?.(onChangeValue,changeProps)},ref:forwardedRef,size,suffix:inputSuffix,type:isPressEnterToChange?"text":"number",value:null!=parsedQuantity?parsedQuantity:"",step,onFocus:onFocusProp,__unstableStateReducer})}))},"./packages/components/build-module/unit-control/styles/unit-control-styles.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{BZ:()=>UnitLabel,mT:()=>ValueInput,td:()=>UnitSelect});var _emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),_emotion_react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),_utils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/components/build-module/utils/colors-values.js"),_utils__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/components/build-module/utils/rtl.js"),_utils__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/components/build-module/utils/config-values.js"),_number_control__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/build-module/number-control/index.js"),_input_control_styles_input_control_styles__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/build-module/input-control/styles/input-control-styles.js"),_utils_space__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/components/build-module/utils/space.js");const ValueInput=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)(_number_control__WEBPACK_IMPORTED_MODULE_1__.A,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",_input_control_styles_input_control_styles__WEBPACK_IMPORTED_MODULE_2__.Hr,"{transition:box-shadow 0.1s linear;}}"),baseUnitLabelStyles=({selectSize})=>({small:(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)("box-sizing:border-box;padding:2px 1px;width:20px;font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;&:not( :disabled ){color:",_utils__WEBPACK_IMPORTED_MODULE_4__.l.gray[800],";}","","",""),default:(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_5__.x)(2),";padding:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_5__.x)(1),";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;field-sizing:content;&:not( :disabled ){color:",_utils__WEBPACK_IMPORTED_MODULE_4__.l.theme.accent,";}","","","")}[selectSize]),UnitLabel=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",baseUnitLabelStyles,";color:",_utils__WEBPACK_IMPORTED_MODULE_4__.l.gray[900],";}"),unitSelectSizes=({selectSize="default"})=>({small:(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",(0,_utils__WEBPACK_IMPORTED_MODULE_6__.h)({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",_utils__WEBPACK_IMPORTED_MODULE_4__.l.gray[100],";}&:focus{border:1px solid ",_utils__WEBPACK_IMPORTED_MODULE_4__.l.ui.borderFocus,";box-shadow:inset 0 0 0 ",_utils__WEBPACK_IMPORTED_MODULE_7__.A.borderWidth+" "+_utils__WEBPACK_IMPORTED_MODULE_4__.l.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}","","",""),default:(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)("display:flex;justify-content:center;align-items:center;&:where( :not( :disabled ) ):hover{box-shadow:0 0 0 ",_utils__WEBPACK_IMPORTED_MODULE_7__.A.borderWidth+" "+_utils__WEBPACK_IMPORTED_MODULE_4__.l.ui.borderFocus,";outline:",_utils__WEBPACK_IMPORTED_MODULE_7__.A.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",_utils__WEBPACK_IMPORTED_MODULE_7__.A.borderWidthFocus+" "+_utils__WEBPACK_IMPORTED_MODULE_4__.l.ui.borderFocus,";outline:",_utils__WEBPACK_IMPORTED_MODULE_7__.A.borderWidthFocus," solid transparent;}","","","")}[selectSize]),UnitSelect=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:",_utils__WEBPACK_IMPORTED_MODULE_7__.A.radiusXSmall,";border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",baseUnitLabelStyles,";",unitSelectSizes,";&:not( :disabled ){cursor:pointer;}}")},"./packages/components/build-module/unit-control/utils.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Cy:()=>CSS_UNITS,E:()=>useCustomUnits,Op:()=>getValidParsedQuantityAndUnit,Pr:()=>getUnitsWithCurrentUnit,U6:()=>hasUnits,bu:()=>parseQuantityAndUnitFromRawValue,wC:()=>getParsedQuantityAndUnit});var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/i18n/build-module/index.js");const isWeb="web"===__webpack_require__("./packages/element/build-module/platform.js").A.OS,allUnits={px:{value:"px",label:isWeb?"px":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Pixels (px)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Pixels (px)"),step:1},"%":{value:"%",label:isWeb?"%":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Percentage (%)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Percent (%)"),step:.1},em:{value:"em",label:isWeb?"em":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Relative to parent font size (em)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:isWeb?"rem":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Relative to root font size (rem)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:isWeb?"vw":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport width (vw)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:isWeb?"vh":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport height (vh)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:isWeb?"vmin":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport smallest dimension (vmin)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:isWeb?"vmax":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport largest dimension (vmax)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:isWeb?"ch":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Width of the zero (0) character (ch)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:isWeb?"ex":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("x-height of the font (ex)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:isWeb?"cm":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Centimeters (cm)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:isWeb?"mm":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Millimeters (mm)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:isWeb?"in":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Inches (in)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Inches (in)"),step:.001},pc:{value:"pc",label:isWeb?"pc":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Picas (pc)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Picas (pc)"),step:1},pt:{value:"pt",label:isWeb?"pt":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Points (pt)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Points (pt)"),step:1},svw:{value:"svw",label:isWeb?"svw":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport width (svw)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport width (svw)"),step:.1},svh:{value:"svh",label:isWeb?"svh":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport height (svh)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport height (svh)"),step:.1},svi:{value:"svi",label:isWeb?"svi":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport smallest size in the inline direction (svi)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport width or height (svi)"),step:.1},svb:{value:"svb",label:isWeb?"svb":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport smallest size in the block direction (svb)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport width or height (svb)"),step:.1},svmin:{value:"svmin",label:isWeb?"svmin":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport smallest dimension (svmin)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport smallest dimension (svmin)"),step:.1},lvw:{value:"lvw",label:isWeb?"lvw":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport width (lvw)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport width (lvw)"),step:.1},lvh:{value:"lvh",label:isWeb?"lvh":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport height (lvh)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport height (lvh)"),step:.1},lvi:{value:"lvi",label:isWeb?"lvi":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport width or height (lvi)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport width or height (lvi)"),step:.1},lvb:{value:"lvb",label:isWeb?"lvb":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport width or height (lvb)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport width or height (lvb)"),step:.1},lvmin:{value:"lvmin",label:isWeb?"lvmin":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport smallest dimension (lvmin)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport smallest dimension (lvmin)"),step:.1},dvw:{value:"dvw",label:isWeb?"dvw":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport width (dvw)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport width (dvw)"),step:.1},dvh:{value:"dvh",label:isWeb?"dvh":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport height (dvh)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport height (dvh)"),step:.1},dvi:{value:"dvi",label:isWeb?"dvi":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport width or height (dvi)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport width or height (dvi)"),step:.1},dvb:{value:"dvb",label:isWeb?"dvb":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport width or height (dvb)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport width or height (dvb)"),step:.1},dvmin:{value:"dvmin",label:isWeb?"dvmin":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport smallest dimension (dvmin)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport smallest dimension (dvmin)"),step:.1},dvmax:{value:"dvmax",label:isWeb?"dvmax":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport largest dimension (dvmax)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport largest dimension (dvmax)"),step:.1},svmax:{value:"svmax",label:isWeb?"svmax":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport largest dimension (svmax)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport largest dimension (svmax)"),step:.1},lvmax:{value:"lvmax",label:isWeb?"lvmax":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport largest dimension (lvmax)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport largest dimension (lvmax)"),step:.1}},ALL_CSS_UNITS=Object.values(allUnits),CSS_UNITS=[allUnits.px,allUnits["%"],allUnits.em,allUnits.rem,allUnits.vw,allUnits.vh],DEFAULT_UNIT=allUnits.px;function getParsedQuantityAndUnit(rawValue,fallbackUnit,allowedUnits){return parseQuantityAndUnitFromRawValue(fallbackUnit?`${null!=rawValue?rawValue:""}${fallbackUnit}`:rawValue,allowedUnits)}function hasUnits(units){return Array.isArray(units)&&!!units.length}function parseQuantityAndUnitFromRawValue(rawValue,allowedUnits=ALL_CSS_UNITS){let trimmedValue,quantityToReturn;if(void 0!==rawValue||null===rawValue){trimmedValue=`${rawValue}`.trim();const parsedQuantity=parseFloat(trimmedValue);quantityToReturn=isFinite(parsedQuantity)?parsedQuantity:void 0}const unitMatch=trimmedValue?.match(/[\d.\-\+]*\s*(.*)/),matchedUnit=unitMatch?.[1]?.toLowerCase();let unitToReturn;if(hasUnits(allowedUnits)){const match=allowedUnits.find((item=>item.value===matchedUnit));unitToReturn=match?.value}else unitToReturn=DEFAULT_UNIT.value;return[quantityToReturn,unitToReturn]}function getValidParsedQuantityAndUnit(rawValue,allowedUnits,fallbackQuantity,fallbackUnit){const[parsedQuantity,parsedUnit]=parseQuantityAndUnitFromRawValue(rawValue,allowedUnits),quantityToReturn=null!=parsedQuantity?parsedQuantity:fallbackQuantity;let unitToReturn=parsedUnit||fallbackUnit;return!unitToReturn&&hasUnits(allowedUnits)&&(unitToReturn=allowedUnits[0].value),[quantityToReturn,unitToReturn]}const useCustomUnits=({units=ALL_CSS_UNITS,availableUnits=[],defaultValues})=>{const customUnitsToReturn=function filterUnitsWithSettings(allowedUnitValues=[],availableUnits){return Array.isArray(availableUnits)?availableUnits.filter((unit=>allowedUnitValues.includes(unit.value))):[]}(availableUnits,units);return defaultValues&&customUnitsToReturn.forEach(((unit,i)=>{if(defaultValues[unit.value]){const[parsedDefaultValue]=parseQuantityAndUnitFromRawValue(defaultValues[unit.value]);customUnitsToReturn[i].default=parsedDefaultValue}})),customUnitsToReturn};function getUnitsWithCurrentUnit(rawValue,legacyUnit,units=ALL_CSS_UNITS){const unitsToReturn=Array.isArray(units)?[...units]:[],[,currentUnit]=getParsedQuantityAndUnit(rawValue,legacyUnit,ALL_CSS_UNITS);return currentUnit&&!unitsToReturn.some((unit=>unit.value===currentUnit))&&allUnits[currentUnit]&&unitsToReturn.unshift(allUnits[currentUnit]),unitsToReturn}},"./packages/components/build-module/utils/hooks/use-controlled-state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_values__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/build-module/utils/values.js");const defaultOptions={initial:void 0,fallback:""};const __WEBPACK_DEFAULT_EXPORT__=function useControlledState(currentState,options=defaultOptions){const{initial,fallback}={...defaultOptions,...options},[internalState,setInternalState]=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(currentState),hasCurrentState=(0,_values__WEBPACK_IMPORTED_MODULE_1__.J5)(currentState);return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{hasCurrentState&&internalState&&setInternalState(void 0)}),[hasCurrentState,internalState]),[(0,_values__WEBPACK_IMPORTED_MODULE_1__.vD)([currentState,internalState,initial],fallback),(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useCallback)((nextState=>{hasCurrentState||setInternalState(nextState)}),[hasCurrentState])]}}}]); \ No newline at end of file diff --git a/1294.b70bce64.iframe.bundle.js b/1294.b70bce64.iframe.bundle.js new file mode 100644 index 00000000000000..954aecae529ac3 --- /dev/null +++ b/1294.b70bce64.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[1294],{"./node_modules/@mdx-js/react/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{MDXProvider:()=>_lib_index_js__WEBPACK_IMPORTED_MODULE_0__.x,useMDXComponents:()=>_lib_index_js__WEBPACK_IMPORTED_MODULE_0__.R});var _lib_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js")},"./node_modules/@mdx-js/react/lib/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{R:()=>useMDXComponents,x:()=>MDXProvider});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const emptyComponents={},MDXContext=react__WEBPACK_IMPORTED_MODULE_0__.createContext(emptyComponents);function useMDXComponents(components){const contextComponents=react__WEBPACK_IMPORTED_MODULE_0__.useContext(MDXContext);return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return"function"==typeof components?components(contextComponents):{...contextComponents,...components}}),[contextComponents,components])}function MDXProvider(properties){let allComponents;return allComponents=properties.disableParentContext?"function"==typeof properties.components?properties.components(emptyComponents):properties.components||emptyComponents:useMDXComponents(properties.components),react__WEBPACK_IMPORTED_MODULE_0__.createElement(MDXContext.Provider,{value:allComponents},properties.children)}}}]); \ No newline at end of file diff --git a/1326.6c01f0a0.iframe.bundle.js b/1326.6c01f0a0.iframe.bundle.js new file mode 100644 index 00000000000000..3d8df373f3aec4 --- /dev/null +++ b/1326.6c01f0a0.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[1326],{"./packages/components/src/surface/hook.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{f:()=>useSurface});var react=__webpack_require__("./node_modules/react/index.js"),use_context_system=__webpack_require__("./packages/components/src/context/use-context-system.js"),emotion_react_browser_esm=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),config_values=__webpack_require__("./packages/components/src/utils/config-values.js"),colors_values=__webpack_require__("./packages/components/src/utils/colors-values.js");const Surface=(0,emotion_react_browser_esm.AH)("background-color:",config_values.A.surfaceColor,";color:",colors_values.l.gray[900],";position:relative;","");config_values.A.surfaceBackgroundColor;function getBorders({borderBottom,borderLeft,borderRight,borderTop}){const borderStyle=`1px solid ${config_values.A.surfaceBorderColor}`;return(0,emotion_react_browser_esm.AH)({borderBottom:borderBottom?borderStyle:void 0,borderLeft:borderLeft?borderStyle:void 0,borderRight:borderRight?borderStyle:void 0,borderTop:borderTop?borderStyle:void 0},"","")}const primary=(0,emotion_react_browser_esm.AH)("",""),secondary=(0,emotion_react_browser_esm.AH)("background:",config_values.A.surfaceBackgroundTintColor,";",""),tertiary=(0,emotion_react_browser_esm.AH)("background:",config_values.A.surfaceBackgroundTertiaryColor,";",""),customBackgroundSize=surfaceBackgroundSize=>[surfaceBackgroundSize,surfaceBackgroundSize].join(" "),dottedBackground1=surfaceBackgroundSizeDotted=>["90deg",[config_values.A.surfaceBackgroundColor,surfaceBackgroundSizeDotted].join(" "),"transparent 1%"].join(","),dottedBackground2=surfaceBackgroundSizeDotted=>[[config_values.A.surfaceBackgroundColor,surfaceBackgroundSizeDotted].join(" "),"transparent 1%"].join(","),getDotted=(surfaceBackgroundSize,surfaceBackgroundSizeDotted)=>(0,emotion_react_browser_esm.AH)("background:",(surfaceBackgroundSizeDotted=>[`linear-gradient( ${dottedBackground1(surfaceBackgroundSizeDotted)} ) center`,`linear-gradient( ${dottedBackground2(surfaceBackgroundSizeDotted)} ) center`,config_values.A.surfaceBorderBoldColor].join(","))(surfaceBackgroundSizeDotted),";background-size:",customBackgroundSize(surfaceBackgroundSize),";",""),gridBackgroundCombined=[`linear-gradient( ${[`${config_values.A.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${config_values.A.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),getVariant=(variant,surfaceBackgroundSize,surfaceBackgroundSizeDotted)=>{switch(variant){case"dotted":return getDotted(surfaceBackgroundSize,surfaceBackgroundSizeDotted);case"grid":return(surfaceBackgroundSize=>(0,emotion_react_browser_esm.AH)("background:",config_values.A.surfaceBackgroundColor,";background-image:",gridBackgroundCombined,";background-size:",customBackgroundSize(surfaceBackgroundSize),";",""))(surfaceBackgroundSize);case"primary":return primary;case"secondary":return secondary;case"tertiary":return tertiary}};var use_cx=__webpack_require__("./packages/components/src/utils/hooks/use-cx.ts");function useSurface(props){const{backgroundSize=12,borderBottom=!1,borderLeft=!1,borderRight=!1,borderTop=!1,className,variant="primary",...otherProps}=(0,use_context_system.A)(props,"Surface"),cx=(0,use_cx.l)();return{...otherProps,className:(0,react.useMemo)((()=>{const sx={borders:getBorders({borderBottom,borderLeft,borderRight,borderTop})};return cx(Surface,sx.borders,getVariant(variant,`${backgroundSize}px`,backgroundSize-1+"px"),className)}),[backgroundSize,borderBottom,borderLeft,borderRight,borderTop,className,cx,variant])}}},"./packages/components/src/text/component.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__,E:()=>Text});var _context__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/components/src/context/context-connect.ts"),_view__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/src/view/component.tsx"),_hook__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/src/text/hook.ts"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const Text=(0,_context__WEBPACK_IMPORTED_MODULE_3__.KZ)((function UnconnectedText(props,forwardedRef){const textProps=(0,_hook__WEBPACK_IMPORTED_MODULE_1__.A)(props);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_view__WEBPACK_IMPORTED_MODULE_2__.A,{as:"span",...textProps,ref:forwardedRef})}),"Text"),__WEBPACK_DEFAULT_EXPORT__=Text;try{Text.displayName="Text",Text.__docgenInfo={description:"`Text` is a core component that renders text in the library, using the\nlibrary's typography system.\n\n`Text` can be used to render any text-content, like an HTML `p` or `span`.",displayName:"Text",props:{align:{defaultValue:null,description:"Adjusts the text alignment.",name:"align",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"inherit"'},{value:'"end"'},{value:'"start"'},{value:'"initial"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'},{value:'"-moz-initial"'},{value:'"revert"'},{value:'"revert-layer"'},{value:'"unset"'},{value:'"match-parent"'}]}},adjustLineHeightForInnerControls:{defaultValue:null,description:"Automatically calculate the appropriate line-height value for contents that render text and Control elements (e.g. `TextInput`).",name:"adjustLineHeightForInnerControls",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"large"'},{value:'"medium"'},{value:'"xSmall"'}]}},color:{defaultValue:null,description:"Adjusts the text color.",name:"color",required:!1,type:{name:"Color"}},display:{defaultValue:null,description:"Adjusts the CSS display.",name:"display",required:!1,type:{name:"Display"}},isDestructive:{defaultValue:{value:"false"},description:"Renders a destructive color.",name:"isDestructive",required:!1,type:{name:"boolean"}},highlightEscape:{defaultValue:{value:"false"},description:"Escape characters in `highlightWords` which are meaningful in regular expressions.",name:"highlightEscape",required:!1,type:{name:"boolean"}},highlightCaseSensitive:{defaultValue:{value:"false"},description:"Determines if `highlightWords` should be case sensitive.",name:"highlightCaseSensitive",required:!1,type:{name:"boolean"}},highlightSanitize:{defaultValue:null,description:"Array of search words. String search terms are automatically cast to RegExps unless `highlightEscape` is true.",name:"highlightSanitize",required:!1,type:{name:"(text: string) => string"}},isBlock:{defaultValue:{value:"false"},description:"Sets `Text` to have `display: block`. Note: text truncation only works\nwhen `isBlock` is `false`.",name:"isBlock",required:!1,type:{name:"boolean"}},lineHeight:{defaultValue:null,description:"Adjusts all text line-height based on the typography system.",name:"lineHeight",required:!1,type:{name:"LineHeight"}},optimizeReadabilityFor:{defaultValue:null,description:"The `Text` color can be adapted to a background color for optimal readability. `optimizeReadabilityFor` can accept CSS variables, in addition to standard CSS color values (e.g. Hex, RGB, HSL, etc...).",name:"optimizeReadabilityFor",required:!1,type:{name:"Color"}},size:{defaultValue:null,description:"Adjusts text size based on the typography system. `Text` can render a wide range of font sizes, which are automatically calculated and adapted to the typography system. The `size` value can be a system preset, a `number`, or a custom unit value (`string`) such as `30em`.",name:"size",required:!1,type:{name:"string | number | (string & {})"}},truncate:{defaultValue:{value:"false"},description:"Enables text truncation. When `truncate` is set, we are able to truncate the long text in a variety of ways. Note: text truncation won't work if the `isBlock` property is set to `true`",name:"truncate",required:!1,type:{name:"boolean"}},upperCase:{defaultValue:{value:"false"},description:"Uppercases the text content.",name:"upperCase",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"Adjusts style variation of the text.",name:"variant",required:!1,type:{name:'"muted"'}},weight:{defaultValue:{value:"'normal'"},description:"Adjusts font-weight of the text.",name:"weight",required:!1,type:{name:"FontWeight | TextWeight"}},letterSpacing:{defaultValue:null,description:"Adjusts letter-spacing of the text.",name:"letterSpacing",required:!1,type:{name:"LetterSpacing"}},highlightWords:{defaultValue:null,description:"Letters or words within `Text` can be highlighted using `highlightWords`.",name:"highlightWords",required:!1,type:{name:"string[]"}},ellipsis:{defaultValue:{value:"'…'"},description:"The ellipsis string when truncating the text by the `limit` prop's value.",name:"ellipsis",required:!1,type:{name:"string"}},ellipsizeMode:{defaultValue:{value:"'auto'"},description:"Determines where to truncate. For example, we can truncate text right in\nthe middle. To do this, we need to set `ellipsizeMode` to `middle` and a\ntext `limit`.\n\n* `auto`: Trims content at the end automatically without a `limit`.\n* `head`: Trims content at the beginning. Requires a `limit`.\n* `middle`: Trims content in the middle. Requires a `limit`.\n* `tail`: Trims content at the end. Requires a `limit`.",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"head"'},{value:'"auto"'},{value:'"middle"'},{value:'"tail"'}]}},limit:{defaultValue:{value:"0"},description:"Determines the max number of characters to be displayed before the rest\nof the text gets truncated. Requires `ellipsizeMode` to assume values\ndifferent from `auto` and `none`.",name:"limit",required:!1,type:{name:"number"}},numberOfLines:{defaultValue:{value:"0"},description:"Clamps the text content to the specified `numberOfLines`, adding an\nellipsis at the end. Note: this feature ignores the value of the\n`ellipsis` prop and always displays the default `…` ellipsis.",name:"numberOfLines",required:!1,type:{name:"number"}},children:{defaultValue:null,description:"The children elements.\n\nNote: text truncation will be attempted only if the `children` are either\nof type `string` or `number`. In any other scenarios, the component will\nnot attempt to truncate the text, and will pass through the `children`.",name:"children",required:!0,type:{name:"ReactNode"}},as:{defaultValue:null,description:"The HTML element or React component to render the component as.",name:"as",required:!1,type:{name:'"symbol" | "object" | "select" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | ... 516 more ... | ("view" & FunctionComponent<...>)'}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/text/component.tsx#Text"]={docgenInfo:Text.__docgenInfo,name:"Text",path:"packages/components/src/text/component.tsx#Text"})}catch(__react_docgen_typescript_loader_error){}},"./node_modules/highlight-words-core/dist/index.js":module=>{module.exports=function(modules){var installedModules={};function __nested_webpack_require_187__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};return modules[moduleId].call(module.exports,module,module.exports,__nested_webpack_require_187__),module.loaded=!0,module.exports}return __nested_webpack_require_187__.m=modules,__nested_webpack_require_187__.c=installedModules,__nested_webpack_require_187__.p="",__nested_webpack_require_187__(0)}([function(module,exports,__nested_webpack_require_1468__){module.exports=__nested_webpack_require_1468__(1)},function(module,exports,__nested_webpack_require_1587__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _utils=__nested_webpack_require_1587__(2);Object.defineProperty(exports,"combineChunks",{enumerable:!0,get:function get(){return _utils.combineChunks}}),Object.defineProperty(exports,"fillInChunks",{enumerable:!0,get:function get(){return _utils.fillInChunks}}),Object.defineProperty(exports,"findAll",{enumerable:!0,get:function get(){return _utils.findAll}}),Object.defineProperty(exports,"findChunks",{enumerable:!0,get:function get(){return _utils.findChunks}})},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.findAll=function findAll(_ref){var autoEscape=_ref.autoEscape,_ref$caseSensitive=_ref.caseSensitive,caseSensitive=void 0!==_ref$caseSensitive&&_ref$caseSensitive,_ref$findChunks=_ref.findChunks,findChunks=void 0===_ref$findChunks?defaultFindChunks:_ref$findChunks,sanitize=_ref.sanitize,searchWords=_ref.searchWords,textToHighlight=_ref.textToHighlight;return fillInChunks({chunksToHighlight:combineChunks({chunks:findChunks({autoEscape,caseSensitive,sanitize,searchWords,textToHighlight})}),totalLength:textToHighlight?textToHighlight.length:0})};var combineChunks=exports.combineChunks=function combineChunks(_ref2){var chunks=_ref2.chunks;return chunks=chunks.sort((function(first,second){return first.start-second.start})).reduce((function(processedChunks,nextChunk){if(0===processedChunks.length)return[nextChunk];var prevChunk=processedChunks.pop();if(nextChunk.start<=prevChunk.end){var endIndex=Math.max(prevChunk.end,nextChunk.end);processedChunks.push({highlight:!1,start:prevChunk.start,end:endIndex})}else processedChunks.push(prevChunk,nextChunk);return processedChunks}),[])},defaultFindChunks=function defaultFindChunks(_ref3){var autoEscape=_ref3.autoEscape,caseSensitive=_ref3.caseSensitive,_ref3$sanitize=_ref3.sanitize,sanitize=void 0===_ref3$sanitize?defaultSanitize:_ref3$sanitize,searchWords=_ref3.searchWords,textToHighlight=_ref3.textToHighlight;return textToHighlight=sanitize(textToHighlight),searchWords.filter((function(searchWord){return searchWord})).reduce((function(chunks,searchWord){searchWord=sanitize(searchWord),autoEscape&&(searchWord=function escapeRegExpFn(string){return string.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}(searchWord));for(var regex=new RegExp(searchWord,caseSensitive?"g":"gi"),match=void 0;match=regex.exec(textToHighlight);){var _start=match.index,_end=regex.lastIndex;_end>_start&&chunks.push({highlight:!1,start:_start,end:_end}),match.index===regex.lastIndex&®ex.lastIndex++}return chunks}),[])};exports.findChunks=defaultFindChunks;var fillInChunks=exports.fillInChunks=function fillInChunks(_ref4){var chunksToHighlight=_ref4.chunksToHighlight,totalLength=_ref4.totalLength,allChunks=[],append=function append(start,end,highlight){end-start>0&&allChunks.push({start,end,highlight})};if(0===chunksToHighlight.length)append(0,totalLength,!1);else{var lastIndex=0;chunksToHighlight.forEach((function(chunk){append(lastIndex,chunk.start,!1),append(chunk.start,chunk.end,!0),lastIndex=chunk.end})),append(lastIndex,totalLength,!1)}return allChunks};function defaultSanitize(string){return string}}])}}]); \ No newline at end of file diff --git a/1616.8b7059b0.iframe.bundle.js b/1616.8b7059b0.iframe.bundle.js new file mode 100644 index 00000000000000..0689a6c75200d9 --- /dev/null +++ b/1616.8b7059b0.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 1616.8b7059b0.iframe.bundle.js.LICENSE.txt */ +(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[1616,9235],{"./node_modules/deepmerge/dist/cjs.js":module=>{"use strict";var isMergeableObject=function isMergeableObject(value){return function isNonNullObject(value){return!!value&&"object"==typeof value}(value)&&!function isSpecial(value){var stringValue=Object.prototype.toString.call(value);return"[object RegExp]"===stringValue||"[object Date]"===stringValue||function isReactElement(value){return value.$$typeof===REACT_ELEMENT_TYPE}(value)}(value)};var REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function cloneUnlessOtherwiseSpecified(value,options){return!1!==options.clone&&options.isMergeableObject(value)?deepmerge(function emptyTarget(val){return Array.isArray(val)?[]:{}}(value),value,options):value}function defaultArrayMerge(target,source,options){return target.concat(source).map((function(element){return cloneUnlessOtherwiseSpecified(element,options)}))}function getKeys(target){return Object.keys(target).concat(function getEnumerableOwnPropertySymbols(target){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(target).filter((function(symbol){return Object.propertyIsEnumerable.call(target,symbol)})):[]}(target))}function propertyIsOnObject(object,property){try{return property in object}catch(_){return!1}}function mergeObject(target,source,options){var destination={};return options.isMergeableObject(target)&&getKeys(target).forEach((function(key){destination[key]=cloneUnlessOtherwiseSpecified(target[key],options)})),getKeys(source).forEach((function(key){(function propertyIsUnsafe(target,key){return propertyIsOnObject(target,key)&&!(Object.hasOwnProperty.call(target,key)&&Object.propertyIsEnumerable.call(target,key))})(target,key)||(propertyIsOnObject(target,key)&&options.isMergeableObject(source[key])?destination[key]=function getMergeFunction(key,options){if(!options.customMerge)return deepmerge;var customMerge=options.customMerge(key);return"function"==typeof customMerge?customMerge:deepmerge}(key,options)(target[key],source[key],options):destination[key]=cloneUnlessOtherwiseSpecified(source[key],options))})),destination}function deepmerge(target,source,options){(options=options||{}).arrayMerge=options.arrayMerge||defaultArrayMerge,options.isMergeableObject=options.isMergeableObject||isMergeableObject,options.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var sourceIsArray=Array.isArray(source);return sourceIsArray===Array.isArray(target)?sourceIsArray?options.arrayMerge(target,source,options):mergeObject(target,source,options):cloneUnlessOtherwiseSpecified(source,options)}deepmerge.all=function deepmergeAll(array,options){if(!Array.isArray(array))throw new Error("first argument should be an array");return array.reduce((function(prev,next){return deepmerge(prev,next,options)}),{})};var deepmerge_1=deepmerge;module.exports=deepmerge_1},"./node_modules/fast-deep-equal/es6/index.js":module=>{"use strict";module.exports=function equal(a,b){if(a===b)return!0;if(a&&b&&"object"==typeof a&&"object"==typeof b){if(a.constructor!==b.constructor)return!1;var length,i,keys;if(Array.isArray(a)){if((length=a.length)!=b.length)return!1;for(i=length;0!=i--;)if(!equal(a[i],b[i]))return!1;return!0}if(a instanceof Map&&b instanceof Map){if(a.size!==b.size)return!1;for(i of a.entries())if(!b.has(i[0]))return!1;for(i of a.entries())if(!equal(i[1],b.get(i[0])))return!1;return!0}if(a instanceof Set&&b instanceof Set){if(a.size!==b.size)return!1;for(i of a.entries())if(!b.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(a)&&ArrayBuffer.isView(b)){if((length=a.length)!=b.length)return!1;for(i=length;0!=i--;)if(a[i]!==b[i])return!1;return!0}if(a.constructor===RegExp)return a.source===b.source&&a.flags===b.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===b.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===b.toString();if((length=(keys=Object.keys(a)).length)!==Object.keys(b).length)return!1;for(i=length;0!=i--;)if(!Object.prototype.hasOwnProperty.call(b,keys[i]))return!1;for(i=length;0!=i--;){var key=keys[i];if(!equal(a[key],b[key]))return!1}return!0}return a!=a&&b!=b}},"./node_modules/highlight-words-core/dist/index.js":module=>{module.exports=function(modules){var installedModules={};function __nested_webpack_require_187__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};return modules[moduleId].call(module.exports,module,module.exports,__nested_webpack_require_187__),module.loaded=!0,module.exports}return __nested_webpack_require_187__.m=modules,__nested_webpack_require_187__.c=installedModules,__nested_webpack_require_187__.p="",__nested_webpack_require_187__(0)}([function(module,exports,__nested_webpack_require_1468__){module.exports=__nested_webpack_require_1468__(1)},function(module,exports,__nested_webpack_require_1587__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _utils=__nested_webpack_require_1587__(2);Object.defineProperty(exports,"combineChunks",{enumerable:!0,get:function get(){return _utils.combineChunks}}),Object.defineProperty(exports,"fillInChunks",{enumerable:!0,get:function get(){return _utils.fillInChunks}}),Object.defineProperty(exports,"findAll",{enumerable:!0,get:function get(){return _utils.findAll}}),Object.defineProperty(exports,"findChunks",{enumerable:!0,get:function get(){return _utils.findChunks}})},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.findAll=function findAll(_ref){var autoEscape=_ref.autoEscape,_ref$caseSensitive=_ref.caseSensitive,caseSensitive=void 0!==_ref$caseSensitive&&_ref$caseSensitive,_ref$findChunks=_ref.findChunks,findChunks=void 0===_ref$findChunks?defaultFindChunks:_ref$findChunks,sanitize=_ref.sanitize,searchWords=_ref.searchWords,textToHighlight=_ref.textToHighlight;return fillInChunks({chunksToHighlight:combineChunks({chunks:findChunks({autoEscape,caseSensitive,sanitize,searchWords,textToHighlight})}),totalLength:textToHighlight?textToHighlight.length:0})};var combineChunks=exports.combineChunks=function combineChunks(_ref2){var chunks=_ref2.chunks;return chunks=chunks.sort((function(first,second){return first.start-second.start})).reduce((function(processedChunks,nextChunk){if(0===processedChunks.length)return[nextChunk];var prevChunk=processedChunks.pop();if(nextChunk.start<=prevChunk.end){var endIndex=Math.max(prevChunk.end,nextChunk.end);processedChunks.push({highlight:!1,start:prevChunk.start,end:endIndex})}else processedChunks.push(prevChunk,nextChunk);return processedChunks}),[])},defaultFindChunks=function defaultFindChunks(_ref3){var autoEscape=_ref3.autoEscape,caseSensitive=_ref3.caseSensitive,_ref3$sanitize=_ref3.sanitize,sanitize=void 0===_ref3$sanitize?defaultSanitize:_ref3$sanitize,searchWords=_ref3.searchWords,textToHighlight=_ref3.textToHighlight;return textToHighlight=sanitize(textToHighlight),searchWords.filter((function(searchWord){return searchWord})).reduce((function(chunks,searchWord){searchWord=sanitize(searchWord),autoEscape&&(searchWord=function escapeRegExpFn(string){return string.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}(searchWord));for(var regex=new RegExp(searchWord,caseSensitive?"g":"gi"),match=void 0;match=regex.exec(textToHighlight);){var _start=match.index,_end=regex.lastIndex;_end>_start&&chunks.push({highlight:!1,start:_start,end:_end}),match.index===regex.lastIndex&®ex.lastIndex++}return chunks}),[])};exports.findChunks=defaultFindChunks;var fillInChunks=exports.fillInChunks=function fillInChunks(_ref4){var chunksToHighlight=_ref4.chunksToHighlight,totalLength=_ref4.totalLength,allChunks=[],append=function append(start,end,highlight){end-start>0&&allChunks.push({start,end,highlight})};if(0===chunksToHighlight.length)append(0,totalLength,!1);else{var lastIndex=0;chunksToHighlight.forEach((function(chunk){append(lastIndex,chunk.start,!1),append(chunk.start,chunk.end,!0),lastIndex=chunk.end})),append(lastIndex,totalLength,!1)}return allChunks};function defaultSanitize(string){return string}}])},"./node_modules/is-plain-object/dist/is-plain-object.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function isObject(o){return"[object Object]"===Object.prototype.toString.call(o)}function isPlainObject(o){var ctor,prot;return!1!==isObject(o)&&(void 0===(ctor=o.constructor)||!1!==isObject(prot=ctor.prototype)&&!1!==prot.hasOwnProperty("isPrototypeOf"))}__webpack_require__.d(__webpack_exports__,{Q:()=>isPlainObject})},"./packages/components/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{UE:()=>arrow,we:()=>useFloating});var _floating_ui_dom__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_dom__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react-dom/index.js");const arrow=options=>({name:"arrow",options,fn(state){const{element,padding}="function"==typeof options?options(state):options;return element&&function isRef(value){return{}.hasOwnProperty.call(value,"current")}(element)?null!=element.current?(0,_floating_ui_dom__WEBPACK_IMPORTED_MODULE_2__.UE)({element:element.current,padding}).fn(state):{}:element?(0,_floating_ui_dom__WEBPACK_IMPORTED_MODULE_2__.UE)({element,padding}).fn(state):{}}});var index="undefined"!=typeof document?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect;function deepEqual(a,b){if(a===b)return!0;if(typeof a!=typeof b)return!1;if("function"==typeof a&&a.toString()===b.toString())return!0;let length,i,keys;if(a&&b&&"object"==typeof a){if(Array.isArray(a)){if(length=a.length,length!=b.length)return!1;for(i=length;0!=i--;)if(!deepEqual(a[i],b[i]))return!1;return!0}if(keys=Object.keys(a),length=keys.length,length!==Object.keys(b).length)return!1;for(i=length;0!=i--;)if(!{}.hasOwnProperty.call(b,keys[i]))return!1;for(i=length;0!=i--;){const key=keys[i];if(("_owner"!==key||!a.$$typeof)&&!deepEqual(a[key],b[key]))return!1}return!0}return a!=a&&b!=b}function getDPR(element){if("undefined"==typeof window)return 1;return(element.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(element,value){const dpr=getDPR(element);return Math.round(value*dpr)/dpr}function useLatestRef(value){const ref=react__WEBPACK_IMPORTED_MODULE_0__.useRef(value);return index((()=>{ref.current=value})),ref}function useFloating(options){void 0===options&&(options={});const{placement="bottom",strategy="absolute",middleware=[],platform,elements:{reference:externalReference,floating:externalFloating}={},transform=!0,whileElementsMounted,open}=options,[data,setData]=react__WEBPACK_IMPORTED_MODULE_0__.useState({x:0,y:0,strategy,placement,middlewareData:{},isPositioned:!1}),[latestMiddleware,setLatestMiddleware]=react__WEBPACK_IMPORTED_MODULE_0__.useState(middleware);deepEqual(latestMiddleware,middleware)||setLatestMiddleware(middleware);const[_reference,_setReference]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[_floating,_setFloating]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),setReference=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((node=>{node!=referenceRef.current&&(referenceRef.current=node,_setReference(node))}),[_setReference]),setFloating=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((node=>{node!==floatingRef.current&&(floatingRef.current=node,_setFloating(node))}),[_setFloating]),referenceEl=externalReference||_reference,floatingEl=externalFloating||_floating,referenceRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),floatingRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),dataRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(data),whileElementsMountedRef=useLatestRef(whileElementsMounted),platformRef=useLatestRef(platform),update=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{if(!referenceRef.current||!floatingRef.current)return;const config={placement,strategy,middleware:latestMiddleware};platformRef.current&&(config.platform=platformRef.current),(0,_floating_ui_dom__WEBPACK_IMPORTED_MODULE_2__.rD)(referenceRef.current,floatingRef.current,config).then((data=>{const fullData={...data,isPositioned:!0};isMountedRef.current&&!deepEqual(dataRef.current,fullData)&&(dataRef.current=fullData,react_dom__WEBPACK_IMPORTED_MODULE_1__.flushSync((()=>{setData(fullData)})))}))}),[latestMiddleware,placement,strategy,platformRef]);index((()=>{!1===open&&dataRef.current.isPositioned&&(dataRef.current.isPositioned=!1,setData((data=>({...data,isPositioned:!1}))))}),[open]);const isMountedRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1);index((()=>(isMountedRef.current=!0,()=>{isMountedRef.current=!1})),[]),index((()=>{if(referenceEl&&(referenceRef.current=referenceEl),floatingEl&&(floatingRef.current=floatingEl),referenceEl&&floatingEl){if(whileElementsMountedRef.current)return whileElementsMountedRef.current(referenceEl,floatingEl,update);update()}}),[referenceEl,floatingEl,update,whileElementsMountedRef]);const refs=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({reference:referenceRef,floating:floatingRef,setReference,setFloating})),[setReference,setFloating]),elements=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({reference:referenceEl,floating:floatingEl})),[referenceEl,floatingEl]),floatingStyles=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>{const initialStyles={position:strategy,left:0,top:0};if(!elements.floating)return initialStyles;const x=roundByDPR(elements.floating,data.x),y=roundByDPR(elements.floating,data.y);return transform?{...initialStyles,transform:"translate("+x+"px, "+y+"px)",...getDPR(elements.floating)>=1.5&&{willChange:"transform"}}:{position:strategy,left:x,top:y}}),[strategy,transform,elements.floating,data.x,data.y]);return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({...data,update,refs,elements,floatingStyles})),[data,update,refs,elements,floatingStyles])}},"./packages/components/node_modules/uuid/dist/esm-browser/v4.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var getRandomValues;__webpack_require__.d(__webpack_exports__,{A:()=>esm_browser_v4});var rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&!(getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const regex=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const esm_browser_validate=function validate(uuid){return"string"==typeof uuid&®ex.test(uuid)};for(var byteToHex=[],i=0;i<256;++i)byteToHex.push((i+256).toString(16).substr(1));const esm_browser_stringify=function stringify(arr){var offset=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,uuid=(byteToHex[arr[offset+0]]+byteToHex[arr[offset+1]]+byteToHex[arr[offset+2]]+byteToHex[arr[offset+3]]+"-"+byteToHex[arr[offset+4]]+byteToHex[arr[offset+5]]+"-"+byteToHex[arr[offset+6]]+byteToHex[arr[offset+7]]+"-"+byteToHex[arr[offset+8]]+byteToHex[arr[offset+9]]+"-"+byteToHex[arr[offset+10]]+byteToHex[arr[offset+11]]+byteToHex[arr[offset+12]]+byteToHex[arr[offset+13]]+byteToHex[arr[offset+14]]+byteToHex[arr[offset+15]]).toLowerCase();if(!esm_browser_validate(uuid))throw TypeError("Stringified UUID is invalid");return uuid};const esm_browser_v4=function v4(options,buf,offset){var rnds=(options=options||{}).random||(options.rng||rng)();if(rnds[6]=15&rnds[6]|64,rnds[8]=63&rnds[8]|128,buf){offset=offset||0;for(var i=0;i<16;++i)buf[offset+i]=rnds[i];return buf}return esm_browser_stringify(rnds)}}}]); \ No newline at end of file diff --git a/1616.8b7059b0.iframe.bundle.js.LICENSE.txt b/1616.8b7059b0.iframe.bundle.js.LICENSE.txt new file mode 100644 index 00000000000000..fe4c1fe30790a1 --- /dev/null +++ b/1616.8b7059b0.iframe.bundle.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ diff --git a/1618.4feede55.iframe.bundle.js b/1618.4feede55.iframe.bundle.js new file mode 100644 index 00000000000000..94aafe97cbca30 --- /dev/null +++ b/1618.4feede55.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[1618],{"./packages/compose/build-module/higher-order/compose.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./packages/compose/build-module/higher-order/pipe.js").A)(!0)},"./packages/compose/build-module/higher-order/pipe.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>basePipe,h:()=>__WEBPACK_DEFAULT_EXPORT__});const basePipe=(reverse=!1)=>(...funcs)=>(...args)=>{const functions=funcs.flat();return reverse&&functions.reverse(),functions.reduce(((prev,func)=>[func(...prev)]),args)[0]},__WEBPACK_DEFAULT_EXPORT__=basePipe()},"./packages/data/build-module/components/registry-provider/context.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Ay:()=>__WEBPACK_DEFAULT_EXPORT__,ob:()=>Context});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_default_registry__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/data/build-module/default-registry.js");const Context=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createContext)(_default_registry__WEBPACK_IMPORTED_MODULE_1__.A),{Consumer,Provider}=Context,__WEBPACK_DEFAULT_EXPORT__=Provider},"./packages/data/build-module/components/registry-provider/use-registry.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>useRegistry});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_context__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/data/build-module/components/registry-provider/context.js");function useRegistry(){return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_1__.ob)}},"./packages/data/build-module/default-registry.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./packages/data/build-module/registry.js").I)()},"./packages/data/build-module/factory.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function createRegistrySelector(registrySelector){const selectorsByRegistry=new WeakMap,wrappedSelector=(...args)=>{let selector=selectorsByRegistry.get(wrappedSelector.registry);return selector||(selector=registrySelector(wrappedSelector.registry.select),selectorsByRegistry.set(wrappedSelector.registry,selector)),selector(...args)};return wrappedSelector.isRegistrySelector=!0,wrappedSelector}function createRegistryControl(registryControl){return registryControl.isRegistryControl=!0,registryControl}__webpack_require__.d(__webpack_exports__,{N:()=>createRegistrySelector,b:()=>createRegistryControl})},"./packages/data/build-module/lock-unlock.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{T:()=>unlock,s:()=>lock});var _wordpress_private_apis__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/private-apis/build-module/implementation.js");const{lock,unlock}=(0,_wordpress_private_apis__WEBPACK_IMPORTED_MODULE_0__.yf)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/data")},"./packages/data/build-module/redux-store/combine-reducers.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function combineReducers(reducers){const keys=Object.keys(reducers);return function combinedReducer(state={},action){const nextState={};let hasChanged=!1;for(const key of keys){const reducer=reducers[key],prevStateForKey=state[key],nextStateForKey=reducer(prevStateForKey,action);nextState[key]=nextStateForKey,hasChanged=hasChanged||nextStateForKey!==prevStateForKey}return hasChanged?nextState:state}}__webpack_require__.d(__webpack_exports__,{H:()=>combineReducers})},"./packages/data/build-module/redux-store/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>createReduxStore});var selectors_namespaceObject={};__webpack_require__.r(selectors_namespaceObject),__webpack_require__.d(selectors_namespaceObject,{countSelectorsByStatus:()=>countSelectorsByStatus,getCachedResolvers:()=>getCachedResolvers,getIsResolving:()=>getIsResolving,getResolutionError:()=>getResolutionError,getResolutionState:()=>getResolutionState,hasFinishedResolution:()=>hasFinishedResolution,hasResolutionFailed:()=>hasResolutionFailed,hasResolvingSelectors:()=>hasResolvingSelectors,hasStartedResolution:()=>hasStartedResolution,isResolving:()=>isResolving});var actions_namespaceObject={};__webpack_require__.r(actions_namespaceObject),__webpack_require__.d(actions_namespaceObject,{failResolution:()=>failResolution,failResolutions:()=>failResolutions,finishResolution:()=>finishResolution,finishResolutions:()=>finishResolutions,invalidateResolution:()=>invalidateResolution,invalidateResolutionForStore:()=>invalidateResolutionForStore,invalidateResolutionForStoreSelector:()=>invalidateResolutionForStoreSelector,startResolution:()=>startResolution,startResolutions:()=>startResolutions});var redux=__webpack_require__("./node_modules/redux/dist/redux.mjs"),equivalent_key_map=__webpack_require__("./node_modules/equivalent-key-map/equivalent-key-map.js"),equivalent_key_map_default=__webpack_require__.n(equivalent_key_map);var dist=__webpack_require__("./node_modules/rungen/dist/index.js"),is_promise=__webpack_require__("./node_modules/is-promise/index.mjs"),is_plain_object=__webpack_require__("./node_modules/is-plain-object/dist/is-plain-object.mjs");function isAction(object){return(0,is_plain_object.Q)(object)&&"string"==typeof object.type}function createRuntime(controls={},dispatch){const rungenControls=Object.entries(controls).map((([actionType,control])=>(value,next,iterate,yieldNext,yieldError)=>{if(!function isActionOfType(object,expectedType){return isAction(object)&&object.type===expectedType}(value,actionType))return!1;const routine=control(value);return(0,is_promise.A)(routine)?routine.then(yieldNext,yieldError):yieldNext(routine),!0}));rungenControls.push(((value,next)=>!!isAction(value)&&(dispatch(value),next(),!0)));const rungenRuntime=(0,dist.create)(rungenControls);return action=>new Promise(((resolve,reject)=>rungenRuntime(action,(result=>{isAction(result)&&dispatch(result),resolve(result)}),reject)))}function createMiddleware(controls={}){return store=>{const runtime=createRuntime(controls,store.dispatch);return next=>action=>function isGenerator(object){return!!object&&"function"==typeof object[Symbol.iterator]&&"function"==typeof object.next}(action)?runtime(action):next(action)}}var compose=__webpack_require__("./packages/compose/build-module/higher-order/compose.js"),combine_reducers=__webpack_require__("./packages/data/build-module/redux-store/combine-reducers.js"),factory=__webpack_require__("./packages/data/build-module/factory.js");const SELECT="@@data/SELECT",RESOLVE_SELECT="@@data/RESOLVE_SELECT",DISPATCH="@@data/DISPATCH";const builtinControls={[SELECT]:(0,factory.b)((registry=>({storeKey,selectorName,args})=>registry.select(storeKey)[selectorName](...args))),[RESOLVE_SELECT]:(0,factory.b)((registry=>({storeKey,selectorName,args})=>{const method=registry.select(storeKey)[selectorName].hasResolver?"resolveSelect":"select";return registry[method](storeKey)[selectorName](...args)})),[DISPATCH]:(0,factory.b)((registry=>({storeKey,actionName,args})=>registry.dispatch(storeKey)[actionName](...args)))};var lock_unlock=__webpack_require__("./packages/data/build-module/lock-unlock.js");const promise_middleware=()=>next=>action=>(0,is_promise.A)(action)?action.then((resolvedAction=>{if(resolvedAction)return next(resolvedAction)})):next(action),resolvers_cache_middleware=(registry,storeName)=>()=>next=>action=>{const resolvers=registry.select(storeName).getCachedResolvers();return Object.entries(resolvers).forEach((([selectorName,resolversByArgs])=>{const resolver=registry.stores[storeName]?.resolvers?.[selectorName];resolver&&resolver.shouldInvalidate&&resolversByArgs.forEach(((value,args)=>{void 0!==value&&("finished"!==value.status&&"error"!==value.status||resolver.shouldInvalidate(action,...args)&®istry.dispatch(storeName).invalidateResolution(selectorName,args))}))})),next(action)};function createThunkMiddleware(args){return()=>next=>action=>"function"==typeof action?action(args):next(action)}function selectorArgsToStateKey(args){if(null==args)return[];const len=args.length;let idx=len;for(;idx>0&&void 0===args[idx-1];)idx--;return idx===len?args:args.slice(0,idx)}const subKeysIsResolved=(actionProperty="selectorName",reducer=>(state={},action)=>{const key=action[actionProperty];if(void 0===key)return state;const nextKeyState=reducer(state[key],action);return nextKeyState===state[key]?state:{...state,[key]:nextKeyState}})(((state=new(equivalent_key_map_default()),action)=>{switch(action.type){case"START_RESOLUTION":{const nextState=new(equivalent_key_map_default())(state);return nextState.set(selectorArgsToStateKey(action.args),{status:"resolving"}),nextState}case"FINISH_RESOLUTION":{const nextState=new(equivalent_key_map_default())(state);return nextState.set(selectorArgsToStateKey(action.args),{status:"finished"}),nextState}case"FAIL_RESOLUTION":{const nextState=new(equivalent_key_map_default())(state);return nextState.set(selectorArgsToStateKey(action.args),{status:"error",error:action.error}),nextState}case"START_RESOLUTIONS":{const nextState=new(equivalent_key_map_default())(state);for(const resolutionArgs of action.args)nextState.set(selectorArgsToStateKey(resolutionArgs),{status:"resolving"});return nextState}case"FINISH_RESOLUTIONS":{const nextState=new(equivalent_key_map_default())(state);for(const resolutionArgs of action.args)nextState.set(selectorArgsToStateKey(resolutionArgs),{status:"finished"});return nextState}case"FAIL_RESOLUTIONS":{const nextState=new(equivalent_key_map_default())(state);return action.args.forEach(((resolutionArgs,idx)=>{const resolutionState={status:"error",error:void 0},error=action.errors[idx];error&&(resolutionState.error=error),nextState.set(selectorArgsToStateKey(resolutionArgs),resolutionState)})),nextState}case"INVALIDATE_RESOLUTION":{const nextState=new(equivalent_key_map_default())(state);return nextState.delete(selectorArgsToStateKey(action.args)),nextState}}return state}));var actionProperty;const metadata_reducer=(state={},action)=>{switch(action.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":if(action.selectorName in state){const{[action.selectorName]:removedSelector,...restState}=state;return restState}return state;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"FAIL_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"FAIL_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return subKeysIsResolved(state,action)}return state};var build_module=__webpack_require__("./packages/deprecated/build-module/index.js");function getResolutionState(state,selectorName,args){const map=state[selectorName];if(map)return map.get(selectorArgsToStateKey(args))}function getIsResolving(state,selectorName,args){(0,build_module.A)("wp.data.select( store ).getIsResolving",{since:"6.6",version:"6.8",alternative:"wp.data.select( store ).getResolutionState"});const resolutionState=getResolutionState(state,selectorName,args);return resolutionState&&"resolving"===resolutionState.status}function hasStartedResolution(state,selectorName,args){return void 0!==getResolutionState(state,selectorName,args)}function hasFinishedResolution(state,selectorName,args){const status=getResolutionState(state,selectorName,args)?.status;return"finished"===status||"error"===status}function hasResolutionFailed(state,selectorName,args){return"error"===getResolutionState(state,selectorName,args)?.status}function getResolutionError(state,selectorName,args){const resolutionState=getResolutionState(state,selectorName,args);return"error"===resolutionState?.status?resolutionState.error:null}function isResolving(state,selectorName,args){return"resolving"===getResolutionState(state,selectorName,args)?.status}function getCachedResolvers(state){return state}function hasResolvingSelectors(state){return Object.values(state).some((selectorState=>Array.from(selectorState._map.values()).some((resolution=>"resolving"===resolution[1]?.status))))}const countSelectorsByStatus=(0,__webpack_require__("./node_modules/rememo/rememo.js").A)((state=>{const selectorsByStatus={};return Object.values(state).forEach((selectorState=>Array.from(selectorState._map.values()).forEach((resolution=>{var _resolution$1$status;const currentStatus=null!==(_resolution$1$status=resolution[1]?.status)&&void 0!==_resolution$1$status?_resolution$1$status:"error";selectorsByStatus[currentStatus]||(selectorsByStatus[currentStatus]=0),selectorsByStatus[currentStatus]++})))),selectorsByStatus}),(state=>[state]));function startResolution(selectorName,args){return{type:"START_RESOLUTION",selectorName,args}}function finishResolution(selectorName,args){return{type:"FINISH_RESOLUTION",selectorName,args}}function failResolution(selectorName,args,error){return{type:"FAIL_RESOLUTION",selectorName,args,error}}function startResolutions(selectorName,args){return{type:"START_RESOLUTIONS",selectorName,args}}function finishResolutions(selectorName,args){return{type:"FINISH_RESOLUTIONS",selectorName,args}}function failResolutions(selectorName,args,errors){return{type:"FAIL_RESOLUTIONS",selectorName,args,errors}}function invalidateResolution(selectorName,args){return{type:"INVALIDATE_RESOLUTION",selectorName,args}}function invalidateResolutionForStore(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function invalidateResolutionForStoreSelector(selectorName){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName}}const trimUndefinedValues=array=>{const result=[...array];for(let i=result.length-1;i>=0;i--)void 0===result[i]&&result.splice(i,1);return result},mapValues=(obj,callback)=>Object.fromEntries(Object.entries(null!=obj?obj:{}).map((([key,value])=>[key,callback(value,key)]))),devToolsReplacer=(key,state)=>state instanceof Map?Object.fromEntries(state):state instanceof window.HTMLElement?null:state;function createBindingCache(bind){const cache=new WeakMap;return{get(item,itemName){let boundItem=cache.get(item);return boundItem||(boundItem=bind(item,itemName),cache.set(item,boundItem)),boundItem}}}function createReduxStore(key,options){const privateActions={},privateSelectors={},privateRegistrationFunctions={privateActions,registerPrivateActions:actions=>{Object.assign(privateActions,actions)},privateSelectors,registerPrivateSelectors:selectors=>{Object.assign(privateSelectors,selectors)}},storeDescriptor={name:key,instantiate:registry=>{const listeners=new Set,reducer=options.reducer,store=function instantiateReduxStore(key,options,registry,thunkArgs){const controls={...options.controls,...builtinControls},normalizedControls=mapValues(controls,(control=>control.isRegistryControl?control(registry):control)),middlewares=[resolvers_cache_middleware(registry,key),promise_middleware,createMiddleware(normalizedControls),createThunkMiddleware(thunkArgs)],enhancers=[(0,redux.Tw)(...middlewares)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&enhancers.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:key,instanceId:key,serialize:{replacer:devToolsReplacer}}));const{reducer,initialState}=options,enhancedReducer=(0,combine_reducers.H)({metadata:metadata_reducer,root:reducer});return(0,redux.y$)(enhancedReducer,{root:initialState},(0,compose.A)(enhancers))}(key,options,registry,{registry,get dispatch(){return thunkActions},get select(){return thunkSelectors},get resolveSelect(){return getResolveSelectors()}});(0,lock_unlock.s)(store,privateRegistrationFunctions);const resolversCache=function createResolversCache(){const cache={};return{isRunning:(selectorName,args)=>cache[selectorName]&&cache[selectorName].get(trimUndefinedValues(args)),clear(selectorName,args){cache[selectorName]&&cache[selectorName].delete(trimUndefinedValues(args))},markAsRunning(selectorName,args){cache[selectorName]||(cache[selectorName]=new(equivalent_key_map_default())),cache[selectorName].set(trimUndefinedValues(args),!0)}}}();function bindAction(action){return(...args)=>Promise.resolve(store.dispatch(action(...args)))}const actions={...mapValues(actions_namespaceObject,bindAction),...mapValues(options.actions,bindAction)},boundPrivateActions=createBindingCache(bindAction),allActions=new Proxy((()=>{}),{get:(target,prop)=>{const privateAction=privateActions[prop];return privateAction?boundPrivateActions.get(privateAction,prop):actions[prop]}}),thunkActions=new Proxy(allActions,{apply:(target,thisArg,[action])=>store.dispatch(action)});(0,lock_unlock.s)(actions,allActions);const resolvers=options.resolvers?function mapResolvers(resolvers){return mapValues(resolvers,(resolver=>resolver.fulfill?resolver:{...resolver,fulfill:resolver}))}(options.resolvers):{};function bindSelector(selector,selectorName){selector.isRegistrySelector&&(selector.registry=registry);const boundSelector=(...args)=>{args=normalize(selector,args);const state=store.__unstableOriginalGetState();return selector.isRegistrySelector&&(selector.registry=registry),selector(state.root,...args)};boundSelector.__unstableNormalizeArgs=selector.__unstableNormalizeArgs;const resolver=resolvers[selectorName];return resolver?function mapSelectorWithResolver(selector,selectorName,resolver,store,resolversCache){function fulfillSelector(args){const state=store.getState();if(resolversCache.isRunning(selectorName,args)||"function"==typeof resolver.isFulfilled&&resolver.isFulfilled(state,...args))return;const{metadata}=store.__unstableOriginalGetState();hasStartedResolution(metadata,selectorName,args)||(resolversCache.markAsRunning(selectorName,args),setTimeout((async()=>{resolversCache.clear(selectorName,args),store.dispatch(startResolution(selectorName,args));try{const action=resolver.fulfill(...args);action&&await store.dispatch(action),store.dispatch(finishResolution(selectorName,args))}catch(error){store.dispatch(failResolution(selectorName,args,error))}}),0))}const selectorResolver=(...args)=>(fulfillSelector(args=normalize(selector,args)),selector(...args));return selectorResolver.hasResolver=!0,selectorResolver}(boundSelector,selectorName,resolver,store,resolversCache):(boundSelector.hasResolver=!1,boundSelector)}const selectors={...mapValues(selectors_namespaceObject,(function bindMetadataSelector(metaDataSelector){const boundSelector=(...args)=>{const state=store.__unstableOriginalGetState(),originalSelectorName=args&&args[0],originalSelectorArgs=args&&args[1],targetSelector=options?.selectors?.[originalSelectorName];return originalSelectorName&&targetSelector&&(args[1]=normalize(targetSelector,originalSelectorArgs)),metaDataSelector(state.metadata,...args)};return boundSelector.hasResolver=!1,boundSelector})),...mapValues(options.selectors,bindSelector)},boundPrivateSelectors=createBindingCache(bindSelector);for(const[selectorName,selector]of Object.entries(privateSelectors))boundPrivateSelectors.get(selector,selectorName);const allSelectors=new Proxy((()=>{}),{get:(target,prop)=>{const privateSelector=privateSelectors[prop];return privateSelector?boundPrivateSelectors.get(privateSelector,prop):selectors[prop]}}),thunkSelectors=new Proxy(allSelectors,{apply:(target,thisArg,[selector])=>selector(store.__unstableOriginalGetState())});(0,lock_unlock.s)(selectors,allSelectors);const resolveSelectors=function mapResolveSelectors(selectors,store){const{getIsResolving,hasStartedResolution,hasFinishedResolution,hasResolutionFailed,isResolving,getCachedResolvers,getResolutionState,getResolutionError,hasResolvingSelectors,countSelectorsByStatus,...storeSelectors}=selectors;return mapValues(storeSelectors,((selector,selectorName)=>selector.hasResolver?(...args)=>new Promise(((resolve,reject)=>{const hasFinished=()=>selectors.hasFinishedResolution(selectorName,args),finalize=result=>{if(selectors.hasResolutionFailed(selectorName,args)){const error=selectors.getResolutionError(selectorName,args);reject(error)}else resolve(result)},getResult=()=>selector.apply(null,args),result=getResult();if(hasFinished())return finalize(result);const unsubscribe=store.subscribe((()=>{hasFinished()&&(unsubscribe(),finalize(getResult()))}))})):async(...args)=>selector.apply(null,args)))}(selectors,store),suspendSelectors=function mapSuspendSelectors(selectors,store){return mapValues(selectors,((selector,selectorName)=>selector.hasResolver?(...args)=>{const result=selector.apply(null,args);if(selectors.hasFinishedResolution(selectorName,args)){if(selectors.hasResolutionFailed(selectorName,args))throw selectors.getResolutionError(selectorName,args);return result}throw new Promise((resolve=>{const unsubscribe=store.subscribe((()=>{selectors.hasFinishedResolution(selectorName,args)&&(resolve(),unsubscribe())}))}))}:selector))}(selectors,store),getResolveSelectors=()=>resolveSelectors;store.__unstableOriginalGetState=store.getState,store.getState=()=>store.__unstableOriginalGetState().root;const subscribe=store&&(listener=>(listeners.add(listener),()=>listeners.delete(listener)));let lastState=store.__unstableOriginalGetState();return store.subscribe((()=>{const state=store.__unstableOriginalGetState(),hasChanged=state!==lastState;if(lastState=state,hasChanged)for(const listener of listeners)listener()})),{reducer,store,actions,selectors,resolvers,getSelectors:()=>selectors,getResolveSelectors,getSuspendSelectors:()=>suspendSelectors,getActions:()=>actions,subscribe}}};return(0,lock_unlock.s)(storeDescriptor,privateRegistrationFunctions),storeDescriptor}function normalize(selector,args){return selector.__unstableNormalizeArgs&&"function"==typeof selector.__unstableNormalizeArgs&&args?.length?selector.__unstableNormalizeArgs(args):args}},"./packages/data/build-module/registry.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{I:()=>createRegistry});var build_module=__webpack_require__("./packages/deprecated/build-module/index.js"),redux_store=__webpack_require__("./packages/data/build-module/redux-store/index.js");const store={name:"core/data",instantiate(registry){const getCoreDataSelector=selectorName=>(key,...args)=>registry.select(key)[selectorName](...args),getCoreDataAction=actionName=>(key,...args)=>registry.dispatch(key)[actionName](...args);return{getSelectors:()=>Object.fromEntries(["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].map((selectorName=>[selectorName,getCoreDataSelector(selectorName)]))),getActions:()=>Object.fromEntries(["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].map((actionName=>[actionName,getCoreDataAction(actionName)]))),subscribe:()=>()=>()=>{}}}};function createEmitter(){let isPaused=!1,isPending=!1;const listeners=new Set,notifyListeners=()=>Array.from(listeners).forEach((listener=>listener()));return{get isPaused(){return isPaused},subscribe:listener=>(listeners.add(listener),()=>listeners.delete(listener)),pause(){isPaused=!0},resume(){isPaused=!1,isPending&&(isPending=!1,notifyListeners())},emit(){isPaused?isPending=!0:notifyListeners()}}}var lock_unlock=__webpack_require__("./packages/data/build-module/lock-unlock.js");function getStoreName(storeNameOrDescriptor){return"string"==typeof storeNameOrDescriptor?storeNameOrDescriptor:storeNameOrDescriptor.name}function createRegistry(storeConfigs={},parent=null){const stores={},emitter=createEmitter();let listeningStores=null;function globalListener(){emitter.emit()}function registerStoreInstance(name,createStore){if(stores[name])return console.error('Store "'+name+'" is already registered.'),stores[name];const store=createStore();if("function"!=typeof store.getSelectors)throw new TypeError("store.getSelectors must be a function");if("function"!=typeof store.getActions)throw new TypeError("store.getActions must be a function");if("function"!=typeof store.subscribe)throw new TypeError("store.subscribe must be a function");store.emitter=createEmitter();const currentSubscribe=store.subscribe;if(store.subscribe=listener=>{const unsubscribeFromEmitter=store.emitter.subscribe(listener),unsubscribeFromStore=currentSubscribe((()=>{store.emitter.isPaused?store.emitter.emit():listener()}));return()=>{unsubscribeFromStore?.(),unsubscribeFromEmitter?.()}},stores[name]=store,store.subscribe(globalListener),parent)try{(0,lock_unlock.T)(store.store).registerPrivateActions((0,lock_unlock.T)(parent).privateActionsOf(name)),(0,lock_unlock.T)(store.store).registerPrivateSelectors((0,lock_unlock.T)(parent).privateSelectorsOf(name))}catch(e){}return store}let registry={batch:function batch(callback){if(emitter.isPaused)callback();else{emitter.pause(),Object.values(stores).forEach((store=>store.emitter.pause()));try{callback()}finally{emitter.resume(),Object.values(stores).forEach((store=>store.emitter.resume()))}}},stores,namespaces:stores,subscribe:(listener,storeNameOrDescriptor)=>{if(!storeNameOrDescriptor)return emitter.subscribe(listener);const storeName=getStoreName(storeNameOrDescriptor),store=stores[storeName];return store?store.subscribe(listener):parent?parent.subscribe(listener,storeNameOrDescriptor):emitter.subscribe(listener)},select:function select(storeNameOrDescriptor){const storeName=getStoreName(storeNameOrDescriptor);listeningStores?.add(storeName);const store=stores[storeName];return store?store.getSelectors():parent?.select(storeName)},resolveSelect:function resolveSelect(storeNameOrDescriptor){const storeName=getStoreName(storeNameOrDescriptor);listeningStores?.add(storeName);const store=stores[storeName];return store?store.getResolveSelectors():parent&&parent.resolveSelect(storeName)},suspendSelect:function suspendSelect(storeNameOrDescriptor){const storeName=getStoreName(storeNameOrDescriptor);listeningStores?.add(storeName);const store=stores[storeName];return store?store.getSuspendSelectors():parent&&parent.suspendSelect(storeName)},dispatch:function dispatch(storeNameOrDescriptor){const storeName=getStoreName(storeNameOrDescriptor),store=stores[storeName];return store?store.getActions():parent&&parent.dispatch(storeName)},use:function use(plugin,options){if(!plugin)return;return registry={...registry,...plugin(registry,options)},registry},register:function register(store){registerStoreInstance(store.name,(()=>store.instantiate(registry)))},registerGenericStore:function registerGenericStore(name,store){(0,build_module.A)("wp.data.registerGenericStore",{since:"5.9",alternative:"wp.data.register( storeDescriptor )"}),registerStoreInstance(name,(()=>store))},registerStore:function registerStore(storeName,options){if(!options.reducer)throw new TypeError("Must specify store reducer");return registerStoreInstance(storeName,(()=>(0,redux_store.A)(storeName,options).instantiate(registry))).store},__unstableMarkListeningStores:function __unstableMarkListeningStores(callback,ref){listeningStores=new Set;try{return callback.call(this)}finally{ref.current=Array.from(listeningStores),listeningStores=null}}};registry.register(store);for(const[name,config]of Object.entries(storeConfigs))registry.register((0,redux_store.A)(name,config));parent&&parent.subscribe(globalListener);const registryWithPlugins=function withPlugins(attributes){return Object.fromEntries(Object.entries(attributes).map((([key,attribute])=>"function"!=typeof attribute?[key,attribute]:[key,function(){return registry[key].apply(null,arguments)}])))}(registry);return(0,lock_unlock.s)(registryWithPlugins,{privateActionsOf:name=>{try{return(0,lock_unlock.T)(stores[name].store).privateActions}catch(e){return{}}},privateSelectorsOf:name=>{try{return(0,lock_unlock.T)(stores[name].store).privateSelectors}catch(e){return{}}}}),registryWithPlugins}},"./packages/dom/build-module/utils/assert-is-defined.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function assertIsDefined(val,name){0}__webpack_require__.d(__webpack_exports__,{e:()=>assertIsDefined})},"./packages/private-apis/build-module/implementation.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{yf:()=>__dangerousOptInToUnstableAPIsOnlyForCoreModules});const CORE_MODULES_USING_PRIVATE_APIS=["@wordpress/block-directory","@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/commands","@wordpress/components","@wordpress/core-commands","@wordpress/core-data","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/format-library","@wordpress/patterns","@wordpress/preferences","@wordpress/reusable-blocks","@wordpress/router","@wordpress/dataviews","@wordpress/fields","@wordpress/media-utils","@wordpress/upload-media"],registeredPrivateApis=[],allowReRegistration=!globalThis.IS_WORDPRESS_CORE,__dangerousOptInToUnstableAPIsOnlyForCoreModules=(consent,moduleName)=>{if(!CORE_MODULES_USING_PRIVATE_APIS.includes(moduleName))throw new Error(`You tried to opt-in to unstable APIs as module "${moduleName}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if(!allowReRegistration&®isteredPrivateApis.includes(moduleName))throw new Error(`You tried to opt-in to unstable APIs as module "${moduleName}" which is already registered. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress."!==consent)throw new Error("You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.");return registeredPrivateApis.push(moduleName),{lock,unlock}};function lock(object,privateData){if(!object)throw new Error("Cannot lock an undefined object.");const _object=object;__private in _object||(_object[__private]={}),lockedData.set(_object[__private],privateData)}function unlock(object){if(!object)throw new Error("Cannot unlock an undefined object.");const _object=object;if(!(__private in _object))throw new Error("Cannot unlock an object that was not locked before. ");return lockedData.get(_object[__private])}const lockedData=new WeakMap,__private=Symbol("Private API ID")}}]); \ No newline at end of file diff --git a/1648.37026bdc.iframe.bundle.js b/1648.37026bdc.iframe.bundle.js new file mode 100644 index 00000000000000..899c4a901c37de --- /dev/null +++ b/1648.37026bdc.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 1648.37026bdc.iframe.bundle.js.LICENSE.txt */ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[1648],{"./node_modules/@ariakit/react-core/esm/__chunks/7HVFURXT.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{L:()=>GroupLabelContext});var GroupLabelContext=(0,__webpack_require__("./node_modules/react/index.js").createContext)(void 0)},"./node_modules/@ariakit/react-core/esm/__chunks/J2LQO3EC.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{s:()=>CompositeRow});var _P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P7GR5CS5.js"),_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),useCompositeRow=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.ab)((function useCompositeRow2(_a){var _b=_a,{store,"aria-setsize":ariaSetSize,"aria-posinset":ariaPosInSet}=_b,props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.YG)(_b,["store","aria-setsize","aria-posinset"]);const context=(0,_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_4__.k)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.V1)(store,!1);const id=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.Bi)(props.id),baseElement=store.useState((state=>state.baseElement||void 0)),providerValue=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>({id,baseElement,ariaSetSize,ariaPosInSet})),[id,baseElement,ariaSetSize,ariaPosInSet]);return props=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.w7)(props,(element=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_4__.$o.Provider,{value:providerValue,children:element})),[providerValue]),props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({id},props),(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.HR)(props)})),CompositeRow=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.Rf)((function CompositeRow2(props){const htmlProps=useCompositeRow(props);return(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.n)("div",htmlProps)}))},"./node_modules/@ariakit/react-core/esm/__chunks/SWSPTQMT.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>CompositeGroupLabel,S:()=>useCompositeGroupLabel});var _7HVFURXT=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/7HVFURXT.js"),LMDWO4NN=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),ABQUS43J=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),PBFD2E7P=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react=__webpack_require__("./node_modules/react/index.js"),useGroupLabel=(0,LMDWO4NN.ab)((function useGroupLabel2(props){const setLabelId=(0,react.useContext)(_7HVFURXT.L),id=(0,ABQUS43J.Bi)(props.id);return(0,ABQUS43J.UQ)((()=>(null==setLabelId||setLabelId(id),()=>null==setLabelId?void 0:setLabelId(void 0))),[setLabelId,id]),props=(0,_3YLGPPWQ.IA)({id,"aria-hidden":!0},props),(0,PBFD2E7P.HR)(props)})),useCompositeGroupLabel=((0,LMDWO4NN.Rf)((function GroupLabel2(props){const htmlProps=useGroupLabel(props);return(0,LMDWO4NN.n)("div",htmlProps)})),(0,LMDWO4NN.ab)((function useCompositeGroupLabel2(_a){var _b=_a,{store}=_b,props=(0,_3YLGPPWQ.YG)(_b,["store"]);return props=useGroupLabel(props)}))),CompositeGroupLabel=(0,LMDWO4NN.Rf)((function CompositeGroupLabel2(props){const htmlProps=useCompositeGroupLabel(props);return(0,LMDWO4NN.n)("div",htmlProps)}))},"./node_modules/@ariakit/react-core/esm/__chunks/T7VMP3TM.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{f:()=>CompositeTypeahead,g:()=>useCompositeTypeahead});var _5VQZOHHZ_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/5VQZOHHZ.js"),_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P7GR5CS5.js"),_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/DTR5TSDJ.js"),_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/core/esm/utils/events.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),chars="";function clearChars(){chars=""}function itemTextStartsWith(item,text){var _a;const itemText=(null==(_a=item.element)?void 0:_a.textContent)||item.children||"value"in item&&item.value;return!!itemText&&(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_3__.J2)(itemText).trim().toLowerCase().startsWith(text.toLowerCase())}var useCompositeTypeahead=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_5__.ab)((function useCompositeTypeahead2(_a){var _b=_a,{store,typeahead=!0}=_b,props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_6__.YG)(_b,["store","typeahead"]);const context=(0,_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_7__.k)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_3__.V1)(store,!1);const onKeyDownCaptureProp=props.onKeyDownCapture,cleanupTimeoutRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0),onKeyDownCapture=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_8__._q)((event=>{if(null==onKeyDownCaptureProp||onKeyDownCaptureProp(event),event.defaultPrevented)return;if(!typeahead)return;if(!store)return;if(!function isValidTypeaheadEvent(event){const target=event.target;return(!target||!(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_1__.mB)(target))&&(!(" "!==event.key||!chars.length)||1===event.key.length&&!event.ctrlKey&&!event.altKey&&!event.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(event.key))}(event))return clearChars();const{renderedItems,items,activeId,id}=store.getState();let enabledItems=function getEnabledItems(items){return items.filter((item=>!item.disabled))}(items.length>renderedItems.length?items:renderedItems);const selector=`[data-offscreen-id="${id}"]`,offscreenItems=(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_1__.YE)(event.currentTarget).querySelectorAll(selector);for(const element of offscreenItems){const disabled="true"===element.ariaDisabled||"disabled"in element&&!!element.disabled;enabledItems.push({id:element.id,element,disabled})}if(offscreenItems.length&&(enabledItems=(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_1__.gH)(enabledItems,(i=>i.element))),!function isSelfTargetOrItem(event,items){if((0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_2__.uh)(event))return!0;const target=event.target;return!!target&&items.some((item=>item.element===target))}(event,enabledItems))return clearChars();event.preventDefault(),window.clearTimeout(cleanupTimeoutRef.current),cleanupTimeoutRef.current=window.setTimeout((()=>{chars=""}),500);const char=event.key.toLowerCase();chars+=char,enabledItems=function getSameInitialItems(items,char,activeId){if(!activeId)return items;const activeItem=items.find((item=>item.id===activeId));return activeItem&&itemTextStartsWith(activeItem,char)?chars!==char&&itemTextStartsWith(activeItem,chars)?items:(chars=char,(0,_5VQZOHHZ_js__WEBPACK_IMPORTED_MODULE_4__._d)(items.filter((item=>itemTextStartsWith(item,chars))),activeId).filter((item=>item.id!==activeId))):items}(enabledItems,char,activeId);const item=enabledItems.find((item2=>itemTextStartsWith(item2,chars)));item?store.move(item.id):clearChars()}));return props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_6__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_6__.IA)({},props),{onKeyDownCapture}),(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_3__.HR)(props)})),CompositeTypeahead=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_5__.Rf)((function CompositeTypeahead2(props){const htmlProps=useCompositeTypeahead(props);return(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_5__.n)("div",htmlProps)}))},"./node_modules/@ariakit/react-core/esm/__chunks/UQQRIHDV.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{T:()=>useCompositeHover,c:()=>CompositeHover});var _P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P7GR5CS5.js"),_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/DTR5TSDJ.js"),_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/core/esm/utils/focus.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function getMouseDestination(event){const relatedTarget=event.relatedTarget;return(null==relatedTarget?void 0:relatedTarget.nodeType)===Node.ELEMENT_NODE?relatedTarget:null}var symbol=Symbol("composite-hover");var useCompositeHover=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_3__.ab)((function useCompositeHover2(_a){var _b=_a,{store,focusOnHover=!0,blurOnHoverEnd=!!focusOnHover}=_b,props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__.YG)(_b,["store","focusOnHover","blurOnHoverEnd"]);const context=(0,_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_5__.k)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_2__.V1)(store,!1);const isMouseMoving=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.P$)(),onMouseMoveProp=props.onMouseMove,focusOnHoverProp=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.O4)(focusOnHover),onMouseMove=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__._q)((event=>{if(null==onMouseMoveProp||onMouseMoveProp(event),!event.defaultPrevented&&isMouseMoving()&&focusOnHoverProp(event)){if(!(0,_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_7__.oW)(event.currentTarget)){const baseElement=null==store?void 0:store.getState().baseElement;baseElement&&!(0,_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_7__.AJ)(baseElement)&&baseElement.focus()}null==store||store.setActiveId(event.currentTarget.id)}})),onMouseLeaveProp=props.onMouseLeave,blurOnHoverEndProp=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.O4)(blurOnHoverEnd),onMouseLeave=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__._q)((event=>{var _a2;null==onMouseLeaveProp||onMouseLeaveProp(event),event.defaultPrevented||isMouseMoving()&&(function hoveringInside(event){const nextElement=getMouseDestination(event);return!!nextElement&&(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_1__.gR)(event.currentTarget,nextElement)}(event)||function movingToAnotherItem(event){let dest=getMouseDestination(event);if(!dest)return!1;do{if((0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_2__.mQ)(dest,symbol)&&dest[symbol])return!0;dest=dest.parentElement}while(dest);return!1}(event)||focusOnHoverProp(event)&&blurOnHoverEndProp(event)&&(null==store||store.setActiveId(null),null==(_a2=null==store?void 0:store.getState().baseElement)||_a2.focus()))})),ref=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((element=>{element&&(element[symbol]=!0)}),[]);return props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__.IA)({},props),{ref:(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.SV)(ref,props.ref),onMouseMove,onMouseLeave}),(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_2__.HR)(props)})),CompositeHover=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_3__.ph)((0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_3__.Rf)((function CompositeHover2(props){const htmlProps=useCompositeHover(props);return(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_3__.n)("div",htmlProps)})))},"./node_modules/@ariakit/react-core/esm/__chunks/YORGHBM4.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{t:()=>CompositeGroup,u:()=>useCompositeGroup});var _7HVFURXT=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/7HVFURXT.js"),LMDWO4NN=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),ABQUS43J=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),PBFD2E7P=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react=__webpack_require__("./node_modules/react/index.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),useGroup=(0,LMDWO4NN.ab)((function useGroup2(props){const[labelId,setLabelId]=(0,react.useState)();return props=(0,ABQUS43J.w7)(props,(element=>(0,jsx_runtime.jsx)(_7HVFURXT.L.Provider,{value:setLabelId,children:element})),[]),props=(0,_3YLGPPWQ.IA)({role:"group","aria-labelledby":labelId},props),(0,PBFD2E7P.HR)(props)})),useCompositeGroup=((0,LMDWO4NN.Rf)((function Group2(props){const htmlProps=useGroup(props);return(0,LMDWO4NN.n)("div",htmlProps)})),(0,LMDWO4NN.ab)((function useCompositeGroup2(_a){var _b=_a,{store}=_b,props=(0,_3YLGPPWQ.YG)(_b,["store"]);return props=useGroup(props)}))),CompositeGroup=(0,LMDWO4NN.Rf)((function CompositeGroup2(props){const htmlProps=useCompositeGroup(props);return(0,LMDWO4NN.n)("div",htmlProps)}))},"./node_modules/deepmerge/dist/cjs.js":module=>{var isMergeableObject=function isMergeableObject(value){return function isNonNullObject(value){return!!value&&"object"==typeof value}(value)&&!function isSpecial(value){var stringValue=Object.prototype.toString.call(value);return"[object RegExp]"===stringValue||"[object Date]"===stringValue||function isReactElement(value){return value.$$typeof===REACT_ELEMENT_TYPE}(value)}(value)};var REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function cloneUnlessOtherwiseSpecified(value,options){return!1!==options.clone&&options.isMergeableObject(value)?deepmerge(function emptyTarget(val){return Array.isArray(val)?[]:{}}(value),value,options):value}function defaultArrayMerge(target,source,options){return target.concat(source).map((function(element){return cloneUnlessOtherwiseSpecified(element,options)}))}function getKeys(target){return Object.keys(target).concat(function getEnumerableOwnPropertySymbols(target){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(target).filter((function(symbol){return Object.propertyIsEnumerable.call(target,symbol)})):[]}(target))}function propertyIsOnObject(object,property){try{return property in object}catch(_){return!1}}function mergeObject(target,source,options){var destination={};return options.isMergeableObject(target)&&getKeys(target).forEach((function(key){destination[key]=cloneUnlessOtherwiseSpecified(target[key],options)})),getKeys(source).forEach((function(key){(function propertyIsUnsafe(target,key){return propertyIsOnObject(target,key)&&!(Object.hasOwnProperty.call(target,key)&&Object.propertyIsEnumerable.call(target,key))})(target,key)||(propertyIsOnObject(target,key)&&options.isMergeableObject(source[key])?destination[key]=function getMergeFunction(key,options){if(!options.customMerge)return deepmerge;var customMerge=options.customMerge(key);return"function"==typeof customMerge?customMerge:deepmerge}(key,options)(target[key],source[key],options):destination[key]=cloneUnlessOtherwiseSpecified(source[key],options))})),destination}function deepmerge(target,source,options){(options=options||{}).arrayMerge=options.arrayMerge||defaultArrayMerge,options.isMergeableObject=options.isMergeableObject||isMergeableObject,options.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var sourceIsArray=Array.isArray(source);return sourceIsArray===Array.isArray(target)?sourceIsArray?options.arrayMerge(target,source,options):mergeObject(target,source,options):cloneUnlessOtherwiseSpecified(source,options)}deepmerge.all=function deepmergeAll(array,options){if(!Array.isArray(array))throw new Error("first argument should be an array");return array.reduce((function(prev,next){return deepmerge(prev,next,options)}),{})};var deepmerge_1=deepmerge;module.exports=deepmerge_1},"./node_modules/fast-deep-equal/es6/index.js":module=>{module.exports=function equal(a,b){if(a===b)return!0;if(a&&b&&"object"==typeof a&&"object"==typeof b){if(a.constructor!==b.constructor)return!1;var length,i,keys;if(Array.isArray(a)){if((length=a.length)!=b.length)return!1;for(i=length;0!=i--;)if(!equal(a[i],b[i]))return!1;return!0}if(a instanceof Map&&b instanceof Map){if(a.size!==b.size)return!1;for(i of a.entries())if(!b.has(i[0]))return!1;for(i of a.entries())if(!equal(i[1],b.get(i[0])))return!1;return!0}if(a instanceof Set&&b instanceof Set){if(a.size!==b.size)return!1;for(i of a.entries())if(!b.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(a)&&ArrayBuffer.isView(b)){if((length=a.length)!=b.length)return!1;for(i=length;0!=i--;)if(a[i]!==b[i])return!1;return!0}if(a.constructor===RegExp)return a.source===b.source&&a.flags===b.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===b.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===b.toString();if((length=(keys=Object.keys(a)).length)!==Object.keys(b).length)return!1;for(i=length;0!=i--;)if(!Object.prototype.hasOwnProperty.call(b,keys[i]))return!1;for(i=length;0!=i--;){var key=keys[i];if(!equal(a[key],b[key]))return!1}return!0}return a!=a&&b!=b}},"./node_modules/is-plain-object/dist/is-plain-object.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function isObject(o){return"[object Object]"===Object.prototype.toString.call(o)}function isPlainObject(o){var ctor,prot;return!1!==isObject(o)&&(void 0===(ctor=o.constructor)||!1!==isObject(prot=ctor.prototype)&&!1!==prot.hasOwnProperty("isPrototypeOf"))}__webpack_require__.d(__webpack_exports__,{Q:()=>isPlainObject})}}]); \ No newline at end of file diff --git a/1648.37026bdc.iframe.bundle.js.LICENSE.txt b/1648.37026bdc.iframe.bundle.js.LICENSE.txt new file mode 100644 index 00000000000000..fe4c1fe30790a1 --- /dev/null +++ b/1648.37026bdc.iframe.bundle.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ diff --git a/2022.ddad0fc2.iframe.bundle.js b/2022.ddad0fc2.iframe.bundle.js new file mode 100644 index 00000000000000..c3ac1ac4fe6b4e --- /dev/null +++ b/2022.ddad0fc2.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[2022,8575],{"./node_modules/@ariakit/react-core/esm/__chunks/4BXJGRNH.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{s:()=>useRadioStore});var _4CMBR7SL=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/4CMBR7SL.js"),YV4JVR4I=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js"),AJZ4BYF3=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/AJZ4BYF3.js"),BCALMBPZ=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/BCALMBPZ.js"),PBFD2E7P=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),_3YLGPPWQ=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/3YLGPPWQ.js");function createRadioStore(_a={}){var _a2,props=(0,_3YLGPPWQ.YG)(_a,[]);const syncState=null==(_a2=props.store)?void 0:_a2.getState(),composite=(0,AJZ4BYF3.z)((0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({},props),{focusLoop:(0,PBFD2E7P.Jh)(props.focusLoop,null==syncState?void 0:syncState.focusLoop,!0)})),initialState=(0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({},composite.getState()),{value:(0,PBFD2E7P.Jh)(props.value,null==syncState?void 0:syncState.value,props.defaultValue,null)}),radio=(0,BCALMBPZ.y$)(initialState,composite,props.store);return(0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)((0,_3YLGPPWQ.IA)({},composite),radio),{setValue:value=>radio.setState("value",value)})}function useRadioStore(props={}){const[store,update]=(0,YV4JVR4I.Pj)(createRadioStore,props);return function useRadioStoreProps(store,update,props){return store=(0,_4CMBR7SL.YO)(store,update,props),(0,YV4JVR4I.Tz)(store,props,"value","setValue"),store}(store,update,props)}},"./node_modules/@ariakit/react-core/esm/__chunks/NLEBE274.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{s:()=>Radio,z:()=>useRadio});var _UVUMR3WP_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/UVUMR3WP.js"),_P2CTZE2T_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P2CTZE2T.js"),_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js"),_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");var useRadio=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.ab)((function useRadio2(_a){var _b=_a,{store,name,value,checked}=_b,props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.YG)(_b,["store","name","value","checked"]);const context=(0,_UVUMR3WP_js__WEBPACK_IMPORTED_MODULE_3__.c4)();store=store||context;const id=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_4__.Bi)(props.id),ref=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),isChecked=(0,_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_5__.O$)(store,(state=>null!=checked?checked:function getIsChecked(value,storeValue){if(void 0!==storeValue)return null!=value&&null!=storeValue?storeValue===value:!!storeValue}(value,null==state?void 0:state.value)));(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{if(!id)return;if(!isChecked)return;(null==store?void 0:store.getState().activeId)===id||null==store||store.setActiveId(id)}),[store,isChecked,id]);const onChangeProp=props.onChange,nativeRadio=function isNativeRadio(tagName,type){return"input"===tagName&&(!type||"radio"===type)}((0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_4__.vO)(ref,"input"),props.type),disabled=(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_6__.$f)(props),[propertyUpdated,schedulePropertyUpdate]=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_4__.CH)();(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{const element=ref.current;element&&(nativeRadio||(void 0!==isChecked&&(element.checked=isChecked),void 0!==name&&(element.name=name),void 0!==value&&(element.value=`${value}`)))}),[propertyUpdated,nativeRadio,isChecked,name,value]);const onChange=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_4__._q)((event=>{if(disabled)return event.preventDefault(),void event.stopPropagation();(null==store?void 0:store.getState().value)!==value&&(nativeRadio||(event.currentTarget.checked=!0,schedulePropertyUpdate()),null==onChangeProp||onChangeProp(event),event.defaultPrevented||null==store||store.setValue(value))})),onClickProp=props.onClick,onClick=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_4__._q)((event=>{null==onClickProp||onClickProp(event),event.defaultPrevented||nativeRadio||onChange(event)})),onFocusProp=props.onFocus,onFocus=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_4__._q)((event=>{if(null==onFocusProp||onFocusProp(event),event.defaultPrevented)return;if(!nativeRadio)return;if(!store)return;const{moves,activeId}=store.getState();moves&&(id&&activeId!==id||onChange(event))}));return props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.IA)({id,role:nativeRadio?void 0:"radio",type:nativeRadio?"radio":void 0,"aria-checked":isChecked},props),{ref:(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_4__.SV)(ref,props.ref),onChange,onClick,onFocus}),props=(0,_P2CTZE2T_js__WEBPACK_IMPORTED_MODULE_7__.k)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.IA)({store,clickOnEnter:!nativeRadio},props)),(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_6__.HR)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.IA)({name:nativeRadio?name:void 0,value:nativeRadio?value:void 0,checked:isChecked},props))})),Radio=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.ph)((0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.Rf)((function Radio2(props){const htmlProps=useRadio(props);return(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.n)("input",htmlProps)})))},"./node_modules/@ariakit/react-core/esm/__chunks/UVUMR3WP.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{XF:()=>useRadioProviderContext,aN:()=>RadioScopedContextProvider,c4:()=>useRadioContext});var _P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P7GR5CS5.js"),ctx=(0,__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js").B0)([_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_1__.ws],[_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_1__.aN]),useRadioContext=ctx.useContext,useRadioProviderContext=(ctx.useScopedContext,ctx.useProviderContext),RadioScopedContextProvider=(ctx.ContextProvider,ctx.ScopedContextProvider)},"./node_modules/@ariakit/react-core/esm/radio/radio-group.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{z:()=>RadioGroup});var _chunks_UVUMR3WP_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/UVUMR3WP.js"),_chunks_ITI7HKP4_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ITI7HKP4.js"),_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js"),useRadioGroup=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.ab)((function useRadioGroup2(_a){var _b=_a,{store}=_b,props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.YG)(_b,["store"]);const context=(0,_chunks_UVUMR3WP_js__WEBPACK_IMPORTED_MODULE_3__.XF)();return store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_4__.V1)(store,!1),props=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.w7)(props,(element=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_chunks_UVUMR3WP_js__WEBPACK_IMPORTED_MODULE_3__.aN,{value:store,children:element})),[store]),props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.IA)({role:"radiogroup"},props),props=(0,_chunks_ITI7HKP4_js__WEBPACK_IMPORTED_MODULE_6__.T)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.IA)({store},props))})),RadioGroup=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.Rf)((function RadioGroup2(props){const htmlProps=useRadioGroup(props);return(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.n)("div",htmlProps)}))},"./packages/icons/build-module/library/line-dashed.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})})},"./packages/icons/build-module/library/line-dotted.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"})})},"./packages/icons/build-module/library/line-solid.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M5 11.25h14v1.5H5z"})})},"./packages/components/src/border-control/border-control/component.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>border_control_component});var build_module=__webpack_require__("./packages/i18n/build-module/index.js"),line_solid=__webpack_require__("./packages/icons/build-module/library/line-solid.js"),line_dashed=__webpack_require__("./packages/icons/build-module/library/line-dashed.js"),line_dotted=__webpack_require__("./packages/icons/build-module/library/line-dotted.js"),context_connect=__webpack_require__("./packages/components/src/context/context-connect.ts"),component=__webpack_require__("./packages/components/src/toggle-group-control/toggle-group-control/component.tsx"),toggle_group_control_option_icon_component=__webpack_require__("./packages/components/src/toggle-group-control/toggle-group-control-option-icon/component.tsx"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const BORDER_STYLES=[{label:(0,build_module.__)("Solid"),icon:line_solid.A,value:"solid"},{label:(0,build_module.__)("Dashed"),icon:line_dashed.A,value:"dashed"},{label:(0,build_module.__)("Dotted"),icon:line_dotted.A,value:"dotted"}];const border_control_style_picker_component=(0,context_connect.KZ)((function UnconnectedBorderControlStylePicker({onChange,...restProps},forwardedRef){return(0,jsx_runtime.jsx)(component.A,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,ref:forwardedRef,isDeselectable:!0,onChange:value=>{onChange?.(value)},...restProps,children:BORDER_STYLES.map((borderStyle=>(0,jsx_runtime.jsx)(toggle_group_control_option_icon_component.A,{value:borderStyle.value,icon:borderStyle.icon,label:borderStyle.label},borderStyle.value)))})}),"BorderControlStylePicker");var src_button=__webpack_require__("./packages/components/src/button/index.tsx"),color_indicator=__webpack_require__("./packages/components/src/color-indicator/index.tsx"),color_palette=__webpack_require__("./packages/components/src/color-palette/index.tsx"),dropdown=__webpack_require__("./packages/components/src/dropdown/index.tsx"),v_stack_component=__webpack_require__("./packages/components/src/v-stack/component.tsx"),react=__webpack_require__("./node_modules/react/index.js"),emotion_react_browser_esm=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),config_values=__webpack_require__("./packages/components/src/utils/config-values.js"),box_sizing=__webpack_require__("./packages/components/src/utils/box-sizing.ts"),rtl=__webpack_require__("./packages/components/src/utils/rtl.js"),colors_values=__webpack_require__("./packages/components/src/utils/colors-values.js"),space=__webpack_require__("./packages/components/src/utils/space.ts"),base_control_styles=__webpack_require__("./packages/components/src/base-control/styles/base-control-styles.ts"),unit_control_styles=__webpack_require__("./packages/components/src/unit-control/styles/unit-control-styles.ts");const focusBoxShadow=(0,emotion_react_browser_esm.AH)("box-shadow:inset ",config_values.A.controlBoxShadowFocus,";",""),borderControl=(0,emotion_react_browser_esm.AH)("border:0;padding:0;margin:0;",box_sizing.r,";",""),styles_wrapperWidth=(0,emotion_react_browser_esm.AH)(unit_control_styles.mT,"{flex:0 0 auto;}",""),borderControlDropdown=(0,emotion_react_browser_esm.AH)("background:#fff;&&>button{aspect-ratio:1;padding:0;display:flex;align-items:center;justify-content:center;",(0,rtl.h)({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",config_values.A.borderWidth," solid ",colors_values.l.ui.border,";&:focus,&:hover:not( :disabled ){",focusBoxShadow," border-color:",colors_values.l.ui.borderFocus,";z-index:1;position:relative;}}",""),colorIndicatorWrapper=(border,size)=>{const{style}=border||{};return(0,emotion_react_browser_esm.AH)("border-radius:",config_values.A.radiusFull,";border:2px solid transparent;",style?(border=>{const{color,style}=border||{},fallbackColor=style&&"none"!==style?colors_values.l.gray[300]:void 0;return(0,emotion_react_browser_esm.AH)("border-style:","none"===style?"solid":style,";border-color:",color||fallbackColor,";","")})(border):void 0," width:","__unstable-large"===size?"24px":"22px",";height:","__unstable-large"===size?"24px":"22px",";padding:","__unstable-large"===size?"2px":"1px",";&>span{height:",(0,space.x)(4),";width:",(0,space.x)(4),";background:linear-gradient(\n\t\t\t\t-45deg,\n\t\t\t\ttransparent 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 52%,\n\t\t\t\ttransparent 52%\n\t\t\t);}","")},borderControlPopoverControls=(0,emotion_react_browser_esm.AH)("width:",228,"px;>div:first-of-type>",base_control_styles.Gw,"{margin-bottom:0;}&& ",base_control_styles.Gw,"+button:not( .has-text ){min-width:24px;padding:0;}",""),borderControlPopoverContent=(0,emotion_react_browser_esm.AH)("",""),borderColorIndicator=(0,emotion_react_browser_esm.AH)("",""),resetButton=(0,emotion_react_browser_esm.AH)("justify-content:center;width:100%;&&{border-top:",config_values.A.borderWidth," solid ",colors_values.l.gray[400],";border-top-left-radius:0;border-top-right-radius:0;}","");var utils=__webpack_require__("./packages/components/src/unit-control/utils.ts"),use_context_system=__webpack_require__("./packages/components/src/context/use-context-system.js"),use_cx=__webpack_require__("./packages/components/src/utils/hooks/use-cx.ts");var dropdown_content_wrapper=__webpack_require__("./packages/components/src/dropdown/dropdown-content-wrapper.tsx"),color_palette_utils=__webpack_require__("./packages/components/src/color-palette/utils.ts");const getAriaLabelColorValue=colorValue=>colorValue.replace(/^var\((.+)\)$/,"$1"),border_control_dropdown_component=(0,context_connect.KZ)(((props,forwardedRef)=>{const{__experimentalIsRenderedInSidebar,border,colors,disableCustomColors,enableAlpha,enableStyle,indicatorClassName,indicatorWrapperClassName,isStyleSettable,onReset,onColorChange,onStyleChange,popoverContentClassName,popoverControlsClassName,resetButtonClassName,size,__unstablePopoverProps,...otherProps}=function useBorderControlDropdown(props){const{border,className,colors=[],enableAlpha=!1,enableStyle=!0,onChange,previousStyleSelection,size="default",__experimentalIsRenderedInSidebar=!1,...otherProps}=(0,use_context_system.A)(props,"BorderControlDropdown"),[widthValue]=(0,utils.bu)(border?.width),hasZeroWidth=0===widthValue,cx=(0,use_cx.l)(),classes=(0,react.useMemo)((()=>cx(borderControlDropdown,className)),[className,cx]),indicatorClassName=(0,react.useMemo)((()=>cx(borderColorIndicator)),[cx]),indicatorWrapperClassName=(0,react.useMemo)((()=>cx(colorIndicatorWrapper(border,size))),[border,cx,size]),popoverControlsClassName=(0,react.useMemo)((()=>cx(borderControlPopoverControls)),[cx]),popoverContentClassName=(0,react.useMemo)((()=>cx(borderControlPopoverContent)),[cx]),resetButtonClassName=(0,react.useMemo)((()=>cx(resetButton)),[cx]);return{...otherProps,border,className:classes,colors,enableAlpha,enableStyle,indicatorClassName,indicatorWrapperClassName,onColorChange:color=>{onChange({color,style:"none"===border?.style?previousStyleSelection:border?.style,width:hasZeroWidth&&color?"1px":border?.width})},onStyleChange:style=>{const width=hasZeroWidth&&style?"1px":border?.width;onChange({...border,style,width})},onReset:()=>{onChange({...border,color:void 0,style:void 0})},popoverContentClassName,popoverControlsClassName,resetButtonClassName,size,__experimentalIsRenderedInSidebar}}(props),{color,style}=border||{},colorObject=((colorValue,colors)=>{if(colorValue&&colors){if((0,color_palette_utils.HB)(colors)){let matchedColor;return colors.some((origin=>origin.colors.some((color=>color.color===colorValue&&(matchedColor=color,!0))))),matchedColor}return colors.find((color=>color.color===colorValue))}})(color,colors),toggleAriaLabel=((colorValue,colorObject,style,isStyleEnabled)=>{if(isStyleEnabled){if(colorObject){const ariaLabelValue=getAriaLabelColorValue(colorObject.color);return style?(0,build_module.nv)((0,build_module.__)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".'),colorObject.name,ariaLabelValue,style):(0,build_module.nv)((0,build_module.__)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),colorObject.name,ariaLabelValue)}if(colorValue){const ariaLabelValue=getAriaLabelColorValue(colorValue);return style?(0,build_module.nv)((0,build_module.__)('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".'),ariaLabelValue,style):(0,build_module.nv)((0,build_module.__)('Border color and style picker. The currently selected color has a value of "%s".'),ariaLabelValue)}return(0,build_module.__)("Border color and style picker.")}return colorObject?(0,build_module.nv)((0,build_module.__)('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),colorObject.name,getAriaLabelColorValue(colorObject.color)):colorValue?(0,build_module.nv)((0,build_module.__)('Border color picker. The currently selected color has a value of "%s".'),getAriaLabelColorValue(colorValue)):(0,build_module.__)("Border color picker.")})(color,colorObject,style,enableStyle),showResetButton=color||style&&"none"!==style,dropdownPosition=__experimentalIsRenderedInSidebar?"bottom left":void 0;return(0,jsx_runtime.jsx)(dropdown.A,{renderToggle:({onToggle})=>(0,jsx_runtime.jsx)(src_button.Ay,{onClick:onToggle,variant:"tertiary","aria-label":toggleAriaLabel,tooltipPosition:dropdownPosition,label:(0,build_module.__)("Border color and style picker"),showTooltip:!0,__next40pxDefaultSize:"__unstable-large"===size,children:(0,jsx_runtime.jsx)("span",{className:indicatorWrapperClassName,children:(0,jsx_runtime.jsx)(color_indicator.A,{className:indicatorClassName,colorValue:color})})}),renderContent:({onClose})=>(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(dropdown_content_wrapper.A,{paddingSize:"medium",children:(0,jsx_runtime.jsxs)(v_stack_component.A,{className:popoverControlsClassName,spacing:6,children:[(0,jsx_runtime.jsx)(color_palette.Ay,{className:popoverContentClassName,value:color,onChange:onColorChange,colors,disableCustomColors,__experimentalIsRenderedInSidebar,clearable:!1,enableAlpha}),enableStyle&&isStyleSettable&&(0,jsx_runtime.jsx)(border_control_style_picker_component,{label:(0,build_module.__)("Style"),value:style,onChange:onStyleChange})]})}),showResetButton&&(0,jsx_runtime.jsx)(dropdown_content_wrapper.A,{paddingSize:"none",children:(0,jsx_runtime.jsx)(src_button.Ay,{className:resetButtonClassName,variant:"tertiary",onClick:()=>{onReset(),onClose()},__next40pxDefaultSize:!0,children:(0,build_module.__)("Reset")})})]}),popoverProps:{...__unstablePopoverProps},...otherProps,ref:forwardedRef})}),"BorderControlDropdown");var unit_control=__webpack_require__("./packages/components/src/unit-control/index.tsx"),range_control=__webpack_require__("./packages/components/src/range-control/index.tsx"),h_stack_component=__webpack_require__("./packages/components/src/h-stack/component.tsx"),view_component=__webpack_require__("./packages/components/src/view/component.tsx"),visually_hidden_component=__webpack_require__("./packages/components/src/visually-hidden/component.tsx"),deprecated_36px_size=__webpack_require__("./packages/components/src/utils/deprecated-36px-size.ts");const isValidBorder=border=>void 0!==border?.width&&""!==border.width||void 0!==border?.color;function useBorderControl(props){const{className,colors=[],isCompact,onChange,enableAlpha=!0,enableStyle=!0,shouldSanitizeBorder=!0,size="default",value:border,width,__experimentalIsRenderedInSidebar=!1,__next40pxDefaultSize,__shouldNotWarnDeprecated36pxSize,...otherProps}=(0,use_context_system.A)(props,"BorderControl");(0,deprecated_36px_size.M)({componentName:"BorderControl",__next40pxDefaultSize,size,__shouldNotWarnDeprecated36pxSize});const computedSize="default"===size&&__next40pxDefaultSize?"__unstable-large":size,[widthValue,originalWidthUnit]=(0,utils.bu)(border?.width),widthUnit=originalWidthUnit||"px",hadPreviousZeroWidth=0===widthValue,[colorSelection,setColorSelection]=(0,react.useState)(),[styleSelection,setStyleSelection]=(0,react.useState)(),isStyleSettable=!shouldSanitizeBorder||isValidBorder(border),onBorderChange=(0,react.useCallback)((newBorder=>{!shouldSanitizeBorder||isValidBorder(newBorder)?onChange(newBorder):onChange(void 0)}),[onChange,shouldSanitizeBorder]),onWidthChange=(0,react.useCallback)((newWidth=>{const newWidthValue=""===newWidth?void 0:newWidth,[parsedValue]=(0,utils.bu)(newWidth),hasZeroWidth=0===parsedValue,updatedBorder={...border,width:newWidthValue};hasZeroWidth&&!hadPreviousZeroWidth&&(setColorSelection(border?.color),setStyleSelection(border?.style),updatedBorder.color=void 0,updatedBorder.style="none"),!hasZeroWidth&&hadPreviousZeroWidth&&(void 0===updatedBorder.color&&(updatedBorder.color=colorSelection),"none"===updatedBorder.style&&(updatedBorder.style=styleSelection)),onBorderChange(updatedBorder)}),[border,hadPreviousZeroWidth,colorSelection,styleSelection,onBorderChange]),onSliderChange=(0,react.useCallback)((value=>{onWidthChange(`${value}${widthUnit}`)}),[onWidthChange,widthUnit]),cx=(0,use_cx.l)(),classes=(0,react.useMemo)((()=>cx(borderControl,className)),[className,cx]);let wrapperWidth=width;isCompact&&(wrapperWidth="__unstable-large"===size?"116px":"90px");const innerWrapperClassName=(0,react.useMemo)((()=>{const widthStyle=!!wrapperWidth&&styles_wrapperWidth,heightStyle=(size=>(0,emotion_react_browser_esm.AH)("height:","__unstable-large"===size?"40px":"30px",";",""))(computedSize);return cx((0,emotion_react_browser_esm.AH)(unit_control_styles.mT,"{flex:1 1 40%;}&& ",unit_control_styles.td,"{min-height:0;}",""),widthStyle,heightStyle)}),[wrapperWidth,cx,computedSize]),sliderClassName=(0,react.useMemo)((()=>cx((0,emotion_react_browser_esm.AH)("flex:1 1 60%;",(0,rtl.h)({marginRight:(0,space.x)(3)})(),";",""))),[cx]);return{...otherProps,className:classes,colors,enableAlpha,enableStyle,innerWrapperClassName,inputWidth:wrapperWidth,isStyleSettable,onBorderChange,onSliderChange,onWidthChange,previousStyleSelection:styleSelection,sliderClassName,value:border,widthUnit,widthValue,size:computedSize,__experimentalIsRenderedInSidebar,__next40pxDefaultSize}}var spacer_component=__webpack_require__("./packages/components/src/spacer/component.tsx");const BorderLabel=props=>{const{label,hideLabelFromVision}=props;return label?hideLabelFromVision?(0,jsx_runtime.jsx)(visually_hidden_component.A,{as:"legend",children:label}):(0,jsx_runtime.jsx)(base_control_styles.Gw,{as:"legend",children:label}):null},BorderControl=(0,context_connect.KZ)(((props,forwardedRef)=>{const{__next40pxDefaultSize=!1,colors,disableCustomColors,disableUnits,enableAlpha,enableStyle,hideLabelFromVision,innerWrapperClassName,inputWidth,isStyleSettable,label,onBorderChange,onSliderChange,onWidthChange,placeholder,__unstablePopoverProps,previousStyleSelection,showDropdownHeader,size,sliderClassName,value:border,widthUnit,widthValue,withSlider,__experimentalIsRenderedInSidebar,...otherProps}=useBorderControl(props);return(0,jsx_runtime.jsxs)(view_component.A,{as:"fieldset",...otherProps,ref:forwardedRef,children:[(0,jsx_runtime.jsx)(BorderLabel,{label,hideLabelFromVision}),(0,jsx_runtime.jsxs)(h_stack_component.A,{spacing:4,className:innerWrapperClassName,children:[(0,jsx_runtime.jsx)(unit_control.Ay,{__next40pxDefaultSize,__shouldNotWarnDeprecated36pxSize:!0,prefix:(0,jsx_runtime.jsx)(spacer_component.A,{marginRight:1,marginBottom:0,children:(0,jsx_runtime.jsx)(border_control_dropdown_component,{border,colors,__unstablePopoverProps,disableCustomColors,enableAlpha,enableStyle,isStyleSettable,onChange:onBorderChange,previousStyleSelection,__experimentalIsRenderedInSidebar,size})}),label:(0,build_module.__)("Border width"),hideLabelFromVision:!0,min:0,onChange:onWidthChange,value:border?.width||"",placeholder,disableUnits,__unstableInputWidth:inputWidth,size}),withSlider&&(0,jsx_runtime.jsx)(range_control.A,{__nextHasNoMarginBottom:!0,label:(0,build_module.__)("Border width"),hideLabelFromVision:!0,className:sliderClassName,initialPosition:0,max:100,min:0,onChange:onSliderChange,step:["px","%"].includes(widthUnit)?1:.1,value:widthValue||void 0,withInputField:!1,__next40pxDefaultSize,__shouldNotWarnDeprecated36pxSize:!0})]})]})}),"BorderControl"),border_control_component=BorderControl;try{BorderControl.displayName="BorderControl",BorderControl.__docgenInfo={description:"The `BorderControl` brings together internal sub-components which allow users to\nset the various properties of a border. The first sub-component, a\n`BorderDropdown` contains options representing border color and style. The\nborder width is controlled via a `UnitControl` and an optional `RangeControl`.\n\nBorder radius is not covered by this control as it may be desired separate to\ncolor, style, and width. For example, the border radius may be absorbed under\na \"shape\" abstraction.\n\n```jsx\nimport { BorderControl } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\nconst colors = [\n\t{ name: 'Blue 20', color: '#72aee6' },\n\t// ...\n];\n\nconst MyBorderControl = () => {\n\tconst [ border, setBorder ] = useState();\n\tconst onChange = ( newBorder ) => setBorder( newBorder );\n\n\treturn (\n\t\t\n\t);\n};\n```",displayName:"BorderControl",props:{colors:{defaultValue:{value:"[]"},description:"Array with the colors to be shown. When displaying multiple color palettes\nto choose from, the format of the array changes from an array of colors\nobjects, to an array of color palettes.",name:"colors",required:!1,type:{name:"PaletteObject[] | ColorObject[]"}},__experimentalIsRenderedInSidebar:{defaultValue:{value:"false"},description:"Whether this is rendered in the sidebar.",name:"__experimentalIsRenderedInSidebar",required:!1,type:{name:"boolean"}},disableCustomColors:{defaultValue:null,description:"This toggles the ability to choose custom colors.",name:"disableCustomColors",required:!1,type:{name:"boolean"}},enableAlpha:{defaultValue:{value:"true"},description:"This controls whether the alpha channel will be offered when selecting\ncustom colors.",name:"enableAlpha",required:!1,type:{name:"boolean"}},hideLabelFromVision:{defaultValue:null,description:"Provides control over whether the label will only be visible to\nscreen readers.",name:"hideLabelFromVision",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"If provided, a label will be generated using this as the content.",name:"label",required:!1,type:{name:"string"}},disableUnits:{defaultValue:null,description:"This controls whether unit selection should be disabled.",name:"disableUnits",required:!1,type:{name:"boolean"}},enableStyle:{defaultValue:{value:"true"},description:"This controls whether to support border style selection.",name:"enableStyle",required:!1,type:{name:"boolean"}},isCompact:{defaultValue:null,description:"This flags the `BorderControl` to render with a more compact\nappearance. It restricts the width of the control and prevents it\nfrom expanding to take up additional space.",name:"isCompact",required:!1,type:{name:"boolean"}},onChange:{defaultValue:null,description:"A callback function invoked when the border value is changed via an\ninteraction that selects or clears, border color, style, or width.",name:"onChange",required:!0,type:{name:"(value?: Border) => void"}},placeholder:{defaultValue:null,description:"Placeholder text for the number input.",name:"placeholder",required:!1,type:{name:"string"}},__unstablePopoverProps:{defaultValue:null,description:"An internal prop used to control the visibility of the dropdown.",name:"__unstablePopoverProps",required:!1,type:{name:'Omit'}},shouldSanitizeBorder:{defaultValue:{value:"true"},description:"If opted into, sanitizing the border means that if no width or color\nhave been selected, the border style is also cleared and `undefined`\nis returned as the new border value.",name:"shouldSanitizeBorder",required:!1,type:{name:"boolean"}},showDropdownHeader:{defaultValue:null,description:"@deprecated This prop no longer has any effect.\n@ignore",name:"showDropdownHeader",required:!1,type:{name:"boolean"}},size:{defaultValue:{value:"'default'"},description:"Size of the control.",name:"size",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"__unstable-large"'}]}},value:{defaultValue:null,description:"An object representing a border or `undefined`. Used to set the\ncurrent border configuration for this component.",name:"value",required:!1,type:{name:"Border"}},width:{defaultValue:null,description:"Controls the visual width of the `BorderControl`. It has no effect if\nthe `isCompact` prop is set to `true`.",name:"width",required:!1,type:{name:"Width"}},withSlider:{defaultValue:null,description:"Flags whether this `BorderControl` should also render a\n`RangeControl` for additional control over a border's width.",name:"withSlider",required:!1,type:{name:"boolean"}},__next40pxDefaultSize:{defaultValue:{value:"false"},description:"Start opting into the larger default height that will become the default size in a future version.",name:"__next40pxDefaultSize",required:!1,type:{name:"boolean"}},__shouldNotWarnDeprecated36pxSize:{defaultValue:null,description:"Do not throw a warning for the deprecated 36px default size.\nFor internal components of other components that already throw the warning.\n@ignore",name:"__shouldNotWarnDeprecated36pxSize",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/border-control/border-control/component.tsx#BorderControl"]={docgenInfo:BorderControl.__docgenInfo,name:"BorderControl",path:"packages/components/src/border-control/border-control/component.tsx#BorderControl"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/color-indicator/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var clsx__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),_wordpress_element__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const ColorIndicator=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.forwardRef)((function UnforwardedColorIndicator(props,forwardedRef){const{className,colorValue,...additionalProps}=props;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__.A)("component-color-indicator",className),style:{background:colorValue},ref:forwardedRef,...additionalProps})})),__WEBPACK_DEFAULT_EXPORT__=ColorIndicator;try{ColorIndicator.displayName="ColorIndicator",ColorIndicator.__docgenInfo={description:"ColorIndicator is a React component that renders a specific color in a\ncircle. It's often used to summarize a collection of used colors in a child\ncomponent.\n\n```jsx\nimport { ColorIndicator } from '@wordpress/components';\n\nconst MyColorIndicator = () => ;\n```",displayName:"ColorIndicator",props:{colorValue:{defaultValue:null,description:"The color of the indicator. Any value from the CSS `background` property\nis supported.",name:"colorValue",required:!0,type:{name:"Background"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/color-indicator/index.tsx#ColorIndicator"]={docgenInfo:ColorIndicator.__docgenInfo,name:"ColorIndicator",path:"packages/components/src/color-indicator/index.tsx#ColorIndicator"})}catch(__react_docgen_typescript_loader_error){}try{colorindicator.displayName="colorindicator",colorindicator.__docgenInfo={description:"ColorIndicator is a React component that renders a specific color in a\ncircle. It's often used to summarize a collection of used colors in a child\ncomponent.\n\n```jsx\nimport { ColorIndicator } from '@wordpress/components';\n\nconst MyColorIndicator = () => ;\n```",displayName:"colorindicator",props:{colorValue:{defaultValue:null,description:"The color of the indicator. Any value from the CSS `background` property\nis supported.",name:"colorValue",required:!0,type:{name:"Background"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/color-indicator/index.tsx#colorindicator"]={docgenInfo:colorindicator.__docgenInfo,name:"colorindicator",path:"packages/components/src/color-indicator/index.tsx#colorindicator"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/color-palette/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>__WEBPACK_DEFAULT_EXPORT__,c2:()=>CustomColorPickerDropdown});var colord__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/colord/index.mjs"),colord_plugins_names__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/colord/plugins/names.mjs"),colord_plugins_a11y__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/colord/plugins/a11y.mjs"),clsx__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),_wordpress_compose__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/compose/build-module/hooks/use-instance-id/index.js"),_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/i18n/build-module/index.js"),_wordpress_element__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),_dropdown__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./packages/components/src/dropdown/index.tsx"),_color_picker__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./packages/components/src/color-picker/legacy-adapter.tsx"),_circular_option_picker__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/components/src/circular-option-picker/index.tsx"),_v_stack__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./packages/components/src/v-stack/component.tsx"),_truncate__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./packages/components/src/truncate/component.tsx"),_styles__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./packages/components/src/color-palette/styles.ts"),_dropdown_dropdown_content_wrapper__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./packages/components/src/dropdown/dropdown-content-wrapper.tsx"),_utils__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./packages/components/src/color-palette/utils.ts"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");function SinglePalette({className,clearColor,colors,onChange,value,...additionalProps}){const colorOptions=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useMemo)((()=>colors.map((({color,name},index)=>{const colordColor=(0,colord__WEBPACK_IMPORTED_MODULE_2__.Mj)(color),isSelected=value===color;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_circular_option_picker__WEBPACK_IMPORTED_MODULE_6__.Ay.Option,{isSelected,selectedIconProps:isSelected?{fill:colordColor.contrast()>colordColor.contrast("#000")?"#fff":"#000"}:{},tooltipText:name||(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.nv)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Color code: %s"),color),style:{backgroundColor:color,color},onClick:isSelected?clearColor:()=>onChange(color,index),"aria-label":name?(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.nv)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Color: %s"),name):(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.nv)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Color code: %s"),color)},`${color}-${index}`)}))),[colors,value,onChange,clearColor]);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_circular_option_picker__WEBPACK_IMPORTED_MODULE_6__.Ay.OptionGroup,{className,options:colorOptions,...additionalProps})}function MultiplePalettes({className,clearColor,colors,onChange,value,headingLevel}){const instanceId=(0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_7__.A)(MultiplePalettes,"color-palette");return 0===colors.length?null:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_v_stack__WEBPACK_IMPORTED_MODULE_8__.A,{spacing:3,className,children:colors.map((({name,colors:colorPalette},index)=>{const id=`${instanceId}-${index}`;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_v_stack__WEBPACK_IMPORTED_MODULE_8__.A,{spacing:2,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_styles__WEBPACK_IMPORTED_MODULE_9__._,{id,level:headingLevel,children:name}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(SinglePalette,{clearColor,colors:colorPalette,onChange:newColor=>onChange(newColor,index),value,"aria-labelledby":id})]},index)}))})}function CustomColorPickerDropdown({isRenderedInSidebar,popoverProps:receivedPopoverProps,...props}){const popoverProps=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useMemo)((()=>({shift:!0,resize:!1,...isRenderedInSidebar?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...receivedPopoverProps})),[isRenderedInSidebar,receivedPopoverProps]);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_dropdown__WEBPACK_IMPORTED_MODULE_10__.A,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps,...props})}(0,colord__WEBPACK_IMPORTED_MODULE_2__.X$)([colord_plugins_names__WEBPACK_IMPORTED_MODULE_3__.A,colord_plugins_a11y__WEBPACK_IMPORTED_MODULE_4__.A]);const ColorPalette=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.forwardRef)((function UnforwardedColorPalette(props,forwardedRef){const{asButtons,loop,clearable=!0,colors=[],disableCustomColors=!1,enableAlpha=!1,onChange,value,__experimentalIsRenderedInSidebar=!1,headingLevel=2,"aria-label":ariaLabel,"aria-labelledby":ariaLabelledby,...additionalProps}=props,[normalizedColorValue,setNormalizedColorValue]=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useState)(value),clearColor=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useCallback)((()=>onChange(void 0)),[onChange]),customColorPaletteCallbackRef=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useCallback)((node=>{setNormalizedColorValue((0,_utils__WEBPACK_IMPORTED_MODULE_11__.K6)(value,node))}),[value]),hasMultipleColorOrigins=(0,_utils__WEBPACK_IMPORTED_MODULE_11__.HB)(colors),buttonLabelName=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useMemo)((()=>(0,_utils__WEBPACK_IMPORTED_MODULE_11__.Go)(value,colors,hasMultipleColorOrigins)),[value,colors,hasMultipleColorOrigins]),isHex=value?.startsWith("#"),displayValue=value?.replace(/^var\((.+)\)$/,"$1"),customColorAccessibleLabel=displayValue?(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.nv)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),buttonLabelName,displayValue):(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Custom color picker."),paletteCommonProps={clearColor,onChange,value},actions=!!clearable&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_circular_option_picker__WEBPACK_IMPORTED_MODULE_6__.Ay.ButtonAction,{onClick:clearColor,accessibleWhenDisabled:!0,disabled:!value,children:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Clear")});let metaProps;if(asButtons)metaProps={asButtons:!0};else{const _metaProps={asButtons:!1,loop};metaProps=ariaLabel?{..._metaProps,"aria-label":ariaLabel}:ariaLabelledby?{..._metaProps,"aria-labelledby":ariaLabelledby}:{..._metaProps,"aria-label":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Custom color picker.")}}return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_v_stack__WEBPACK_IMPORTED_MODULE_8__.A,{spacing:3,ref:forwardedRef,...additionalProps,children:[!disableCustomColors&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(CustomColorPickerDropdown,{isRenderedInSidebar:__experimentalIsRenderedInSidebar,renderContent:()=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_dropdown_dropdown_content_wrapper__WEBPACK_IMPORTED_MODULE_12__.A,{paddingSize:"none",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_color_picker__WEBPACK_IMPORTED_MODULE_13__.V,{color:normalizedColorValue,onChange:color=>onChange(color),enableAlpha})}),renderToggle:({isOpen,onToggle})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_v_stack__WEBPACK_IMPORTED_MODULE_8__.A,{className:"components-color-palette__custom-color-wrapper",spacing:0,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("button",{ref:customColorPaletteCallbackRef,className:"components-color-palette__custom-color-button","aria-expanded":isOpen,"aria-haspopup":"true",onClick:onToggle,"aria-label":customColorAccessibleLabel,style:{background:value},type:"button"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_v_stack__WEBPACK_IMPORTED_MODULE_8__.A,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_truncate__WEBPACK_IMPORTED_MODULE_14__.A,{className:"components-color-palette__custom-color-name",children:value?buttonLabelName:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("No color selected")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_truncate__WEBPACK_IMPORTED_MODULE_14__.A,{className:(0,clsx__WEBPACK_IMPORTED_MODULE_15__.A)("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":isHex}),children:displayValue})]})]})}),(colors.length>0||actions)&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_circular_option_picker__WEBPACK_IMPORTED_MODULE_6__.Ay,{...metaProps,actions,options:hasMultipleColorOrigins?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MultiplePalettes,{...paletteCommonProps,headingLevel,colors,value}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(SinglePalette,{...paletteCommonProps,colors,value})})]})})),__WEBPACK_DEFAULT_EXPORT__=ColorPalette;try{CustomColorPickerDropdown.displayName="CustomColorPickerDropdown",CustomColorPickerDropdown.__docgenInfo={description:"",displayName:"CustomColorPickerDropdown",props:{className:{defaultValue:null,description:"The className of the global container.",name:"className",required:!1,type:{name:"string"}},contentClassName:{defaultValue:null,description:"If you want to target the dropdown menu for styling purposes,\nyou need to provide a contentClassName because it's not being rendered\nas a child of the container node.",name:"contentClassName",required:!1,type:{name:"string"}},expandOnMobile:{defaultValue:{value:"false"},description:"Opt-in prop to show popovers fullscreen on mobile.",name:"expandOnMobile",required:!1,type:{name:"boolean"}},focusOnMount:{defaultValue:{value:"'firstElement'"},description:'By default, the first tabbable element in the popover will receive focus\nwhen it mounts. This is the same as setting this prop to "firstElement".\nSpecifying a true value will focus the container instead.\nSpecifying a false value disables the focus handling entirely\n(this should only be done when an appropriately accessible\nsubstitute behavior exists).',name:"focusOnMount",required:!1,type:{name:'boolean | "firstElement"'}},headerTitle:{defaultValue:null,description:"Set this to customize the text that is shown in the dropdown's header\nwhen it is fullscreen on mobile.",name:"headerTitle",required:!1,type:{name:"string"}},onClose:{defaultValue:null,description:"A callback invoked when the popover should be closed.",name:"onClose",required:!1,type:{name:"() => void"}},onToggle:{defaultValue:null,description:"A callback invoked when the state of the dropdown changes\nfrom open to closed and vice versa.",name:"onToggle",required:!1,type:{name:"(willOpen: boolean) => void"}},popoverProps:{defaultValue:null,description:"Properties of popoverProps object will be passed as props\nto the Popover component.\nUse this object to access properties/features\nof the Popover component that are not already exposed\nin the Dropdown component,\ne.g.: the ability to have the popover without an arrow.",name:"popoverProps",required:!1,type:{name:'Omit, Omit, "onDrag" | ... 55 more ... | "ignoreStrict"> & RefAttributes<...>, boolean>>, "children">'}},renderContent:{defaultValue:null,description:"A callback invoked to render the content of the dropdown menu.\nIts first argument is the same as the renderToggle prop.",name:"renderContent",required:!0,type:{name:"(props: CallbackProps) => ReactNode"}},renderToggle:{defaultValue:null,description:"A callback invoked to render the Dropdown Toggle Button.\n\nThe first argument of the callback is an object\ncontaining the following properties:\n\n- isOpen: whether the dropdown menu is opened or not\n- onToggle: A function switching the dropdown menu's state\nfrom open to closed and vice versa\n- onClose: A function that closes the menu if invoked",name:"renderToggle",required:!0,type:{name:"(props: CallbackProps) => ReactNode"}},style:{defaultValue:null,description:"The style of the global container.",name:"style",required:!1,type:{name:"CSSProperties"}},position:{defaultValue:null,description:"Legacy way to specify the popover's position with respect to its anchor.\nFor details about the possible values, see the `Popover` component's docs.\n_Note: this prop is deprecated. Use the `popoverProps.placement` prop\ninstead._\n@deprecated",name:"position",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"middle"'},{value:'"bottom"'},{value:'"top center"'},{value:'"top left"'},{value:'"top right"'},{value:'"middle center"'},{value:'"middle left"'},{value:'"middle right"'},{value:'"bottom center"'},{value:'"bottom left"'},{value:'"bottom right"'},{value:'"top center top"'},{value:'"top center left"'},{value:'"top center right"'},{value:'"top center bottom"'},{value:'"top left top"'},{value:'"top left left"'},{value:'"top left right"'},{value:'"top left bottom"'},{value:'"top right top"'},{value:'"top right left"'},{value:'"top right right"'},{value:'"top right bottom"'},{value:'"middle center top"'},{value:'"middle center left"'},{value:'"middle center right"'},{value:'"middle center bottom"'},{value:'"middle left top"'},{value:'"middle left left"'},{value:'"middle left right"'},{value:'"middle left bottom"'},{value:'"middle right top"'},{value:'"middle right left"'},{value:'"middle right right"'},{value:'"middle right bottom"'},{value:'"bottom center top"'},{value:'"bottom center left"'},{value:'"bottom center right"'},{value:'"bottom center bottom"'},{value:'"bottom left top"'},{value:'"bottom left left"'},{value:'"bottom left right"'},{value:'"bottom left bottom"'},{value:'"bottom right top"'},{value:'"bottom right left"'},{value:'"bottom right right"'},{value:'"bottom right bottom"'}]}},open:{defaultValue:null,description:"The controlled open state of the dropdown.\nMust be used in conjunction with `onToggle`.",name:"open",required:!1,type:{name:"boolean"}},defaultOpen:{defaultValue:null,description:"The open state of the dropdown when initially rendered.\nUse when you do not need to control its open state. It will be overridden\nby the `open` prop if it is specified on the component's first render.",name:"defaultOpen",required:!1,type:{name:"boolean"}},isRenderedInSidebar:{defaultValue:null,description:"",name:"isRenderedInSidebar",required:!0,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/color-palette/index.tsx#CustomColorPickerDropdown"]={docgenInfo:CustomColorPickerDropdown.__docgenInfo,name:"CustomColorPickerDropdown",path:"packages/components/src/color-palette/index.tsx#CustomColorPickerDropdown"})}catch(__react_docgen_typescript_loader_error){}try{ColorPalette.displayName="ColorPalette",ColorPalette.__docgenInfo={description:"Allows the user to pick a color from a list of pre-defined color entries.\n\n```jsx\nimport { ColorPalette } from '@wordpress/components';\nimport { useState } from '@wordpress/element';\n\nconst MyColorPalette = () => {\n const [ color, setColor ] = useState ( '#f00' )\n const colors = [\n { name: 'red', color: '#f00' },\n { name: 'white', color: '#fff' },\n { name: 'blue', color: '#00f' },\n ];\n return (\n setColor( color ) }\n />\n );\n} );\n```",displayName:"ColorPalette",props:{onChange:{defaultValue:null,description:"Callback called when a color is selected.",name:"onChange",required:!0,type:{name:"(newColor?: string, index?: number) => void"}},clearable:{defaultValue:{value:"true"},description:"Whether the palette should have a clearing button.",name:"clearable",required:!1,type:{name:"boolean"}},colors:{defaultValue:{value:"[]"},description:"Array with the colors to be shown. When displaying multiple color palettes\nto choose from, the format of the array changes from an array of colors\nobjects, to an array of color palettes.",name:"colors",required:!1,type:{name:"PaletteObject[] | ColorObject[]"}},disableCustomColors:{defaultValue:{value:"false"},description:"Whether to allow the user to pick a custom color on top of the predefined\nchoices (defined via the `colors` prop).",name:"disableCustomColors",required:!1,type:{name:"boolean"}},enableAlpha:{defaultValue:{value:"false"},description:"This controls whether the alpha channel will be offered when selecting\ncustom colors.",name:"enableAlpha",required:!1,type:{name:"boolean"}},headingLevel:{defaultValue:{value:"2"},description:"The heading level.",name:"headingLevel",required:!1,type:{name:"enum",value:[{value:"1"},{value:"2"},{value:'"1"'},{value:"3"},{value:"4"},{value:"5"},{value:"6"},{value:'"2"'},{value:'"3"'},{value:'"4"'},{value:'"5"'},{value:'"6"'}]}},value:{defaultValue:null,description:"Currently active value.",name:"value",required:!1,type:{name:"string"}},asButtons:{defaultValue:{value:"false"},description:"Whether the control should present as a set of buttons,\neach with its own tab stop.",name:"asButtons",required:!1,type:{name:"boolean"}},loop:{defaultValue:{value:"true"},description:"Prevents keyboard interaction from wrapping around.\nOnly used when `asButtons` is not true.",name:"loop",required:!1,type:{name:"boolean"}},__experimentalIsRenderedInSidebar:{defaultValue:{value:"false"},description:"Whether this is rendered in the sidebar.",name:"__experimentalIsRenderedInSidebar",required:!1,type:{name:"boolean"}},"aria-label":{defaultValue:null,description:"A label to identify the purpose of the control.\n@todo [#54055] Either this or `aria-labelledby` should be required",name:"aria-label",required:!1,type:{name:"string"}},"aria-labelledby":{defaultValue:null,description:"An ID of an element to provide a label for the control.\n@todo [#54055] Either this or `aria-label` should be required",name:"aria-labelledby",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"The HTML element or React component to render the component as.",name:"as",required:!1,type:{name:"enum",value:[{value:'"symbol"'},{value:'"object"'},{value:'"select"'},{value:'"a"'},{value:'"abbr"'},{value:'"address"'},{value:'"area"'},{value:'"article"'},{value:'"aside"'},{value:'"audio"'},{value:'"b"'},{value:'"base"'},{value:'"bdi"'},{value:'"bdo"'},{value:'"big"'},{value:'"blockquote"'},{value:'"body"'},{value:'"br"'},{value:'"button"'},{value:'"canvas"'},{value:'"caption"'},{value:'"center"'},{value:'"cite"'},{value:'"code"'},{value:'"col"'},{value:'"colgroup"'},{value:'"data"'},{value:'"datalist"'},{value:'"dd"'},{value:'"del"'},{value:'"details"'},{value:'"dfn"'},{value:'"dialog"'},{value:'"div"'},{value:'"dl"'},{value:'"dt"'},{value:'"em"'},{value:'"embed"'},{value:'"fieldset"'},{value:'"figcaption"'},{value:'"figure"'},{value:'"footer"'},{value:'"form"'},{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'},{value:'"head"'},{value:'"header"'},{value:'"hgroup"'},{value:'"hr"'},{value:'"html"'},{value:'"i"'},{value:'"iframe"'},{value:'"img"'},{value:'"input"'},{value:'"ins"'},{value:'"kbd"'},{value:'"keygen"'},{value:'"label"'},{value:'"legend"'},{value:'"li"'},{value:'"link"'},{value:'"main"'},{value:'"map"'},{value:'"mark"'},{value:'"menu"'},{value:'"menuitem"'},{value:'"meta"'},{value:'"meter"'},{value:'"nav"'},{value:'"noindex"'},{value:'"noscript"'},{value:'"ol"'},{value:'"optgroup"'},{value:'"option"'},{value:'"output"'},{value:'"p"'},{value:'"param"'},{value:'"picture"'},{value:'"pre"'},{value:'"progress"'},{value:'"q"'},{value:'"rp"'},{value:'"rt"'},{value:'"ruby"'},{value:'"s"'},{value:'"samp"'},{value:'"search"'},{value:'"slot"'},{value:'"script"'},{value:'"section"'},{value:'"small"'},{value:'"source"'},{value:'"span"'},{value:'"strong"'},{value:'"style"'},{value:'"sub"'},{value:'"summary"'},{value:'"sup"'},{value:'"table"'},{value:'"template"'},{value:'"tbody"'},{value:'"td"'},{value:'"textarea"'},{value:'"tfoot"'},{value:'"th"'},{value:'"thead"'},{value:'"time"'},{value:'"title"'},{value:'"tr"'},{value:'"track"'},{value:'"u"'},{value:'"ul"'},{value:'"var"'},{value:'"video"'},{value:'"wbr"'},{value:'"webview"'},{value:'"svg"'},{value:'"animate"'},{value:'"animateMotion"'},{value:'"animateTransform"'},{value:'"circle"'},{value:'"clipPath"'},{value:'"defs"'},{value:'"desc"'},{value:'"ellipse"'},{value:'"feBlend"'},{value:'"feColorMatrix"'},{value:'"feComponentTransfer"'},{value:'"feComposite"'},{value:'"feConvolveMatrix"'},{value:'"feDiffuseLighting"'},{value:'"feDisplacementMap"'},{value:'"feDistantLight"'},{value:'"feDropShadow"'},{value:'"feFlood"'},{value:'"feFuncA"'},{value:'"feFuncB"'},{value:'"feFuncG"'},{value:'"feFuncR"'},{value:'"feGaussianBlur"'},{value:'"feImage"'},{value:'"feMerge"'},{value:'"feMergeNode"'},{value:'"feMorphology"'},{value:'"feOffset"'},{value:'"fePointLight"'},{value:'"feSpecularLighting"'},{value:'"feSpotLight"'},{value:'"feTile"'},{value:'"feTurbulence"'},{value:'"filter"'},{value:'"foreignObject"'},{value:'"g"'},{value:'"image"'},{value:'"line"'},{value:'"linearGradient"'},{value:'"marker"'},{value:'"mask"'},{value:'"metadata"'},{value:'"mpath"'},{value:'"path"'},{value:'"pattern"'},{value:'"polygon"'},{value:'"polyline"'},{value:'"radialGradient"'},{value:'"rect"'},{value:'"set"'},{value:'"stop"'},{value:'"switch"'},{value:'"text"'},{value:'"textPath"'},{value:'"tspan"'},{value:'"use"'},{value:'"view"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/color-palette/index.tsx#ColorPalette"]={docgenInfo:ColorPalette.__docgenInfo,name:"ColorPalette",path:"packages/components/src/color-palette/index.tsx#ColorPalette"})}catch(__react_docgen_typescript_loader_error){}try{colorpalette.displayName="colorpalette",colorpalette.__docgenInfo={description:"Allows the user to pick a color from a list of pre-defined color entries.\n\n```jsx\nimport { ColorPalette } from '@wordpress/components';\nimport { useState } from '@wordpress/element';\n\nconst MyColorPalette = () => {\n const [ color, setColor ] = useState ( '#f00' )\n const colors = [\n { name: 'red', color: '#f00' },\n { name: 'white', color: '#fff' },\n { name: 'blue', color: '#00f' },\n ];\n return (\n setColor( color ) }\n />\n );\n} );\n```",displayName:"colorpalette",props:{onChange:{defaultValue:null,description:"Callback called when a color is selected.",name:"onChange",required:!0,type:{name:"(newColor?: string, index?: number) => void"}},clearable:{defaultValue:{value:"true"},description:"Whether the palette should have a clearing button.",name:"clearable",required:!1,type:{name:"boolean"}},colors:{defaultValue:{value:"[]"},description:"Array with the colors to be shown. When displaying multiple color palettes\nto choose from, the format of the array changes from an array of colors\nobjects, to an array of color palettes.",name:"colors",required:!1,type:{name:"PaletteObject[] | ColorObject[]"}},disableCustomColors:{defaultValue:{value:"false"},description:"Whether to allow the user to pick a custom color on top of the predefined\nchoices (defined via the `colors` prop).",name:"disableCustomColors",required:!1,type:{name:"boolean"}},enableAlpha:{defaultValue:{value:"false"},description:"This controls whether the alpha channel will be offered when selecting\ncustom colors.",name:"enableAlpha",required:!1,type:{name:"boolean"}},headingLevel:{defaultValue:{value:"2"},description:"The heading level.",name:"headingLevel",required:!1,type:{name:"enum",value:[{value:"1"},{value:"2"},{value:'"1"'},{value:"3"},{value:"4"},{value:"5"},{value:"6"},{value:'"2"'},{value:'"3"'},{value:'"4"'},{value:'"5"'},{value:'"6"'}]}},value:{defaultValue:null,description:"Currently active value.",name:"value",required:!1,type:{name:"string"}},asButtons:{defaultValue:{value:"false"},description:"Whether the control should present as a set of buttons,\neach with its own tab stop.",name:"asButtons",required:!1,type:{name:"boolean"}},loop:{defaultValue:{value:"true"},description:"Prevents keyboard interaction from wrapping around.\nOnly used when `asButtons` is not true.",name:"loop",required:!1,type:{name:"boolean"}},__experimentalIsRenderedInSidebar:{defaultValue:{value:"false"},description:"Whether this is rendered in the sidebar.",name:"__experimentalIsRenderedInSidebar",required:!1,type:{name:"boolean"}},"aria-label":{defaultValue:null,description:"A label to identify the purpose of the control.\n@todo [#54055] Either this or `aria-labelledby` should be required",name:"aria-label",required:!1,type:{name:"string"}},"aria-labelledby":{defaultValue:null,description:"An ID of an element to provide a label for the control.\n@todo [#54055] Either this or `aria-label` should be required",name:"aria-labelledby",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"The HTML element or React component to render the component as.",name:"as",required:!1,type:{name:"enum",value:[{value:'"symbol"'},{value:'"object"'},{value:'"select"'},{value:'"a"'},{value:'"abbr"'},{value:'"address"'},{value:'"area"'},{value:'"article"'},{value:'"aside"'},{value:'"audio"'},{value:'"b"'},{value:'"base"'},{value:'"bdi"'},{value:'"bdo"'},{value:'"big"'},{value:'"blockquote"'},{value:'"body"'},{value:'"br"'},{value:'"button"'},{value:'"canvas"'},{value:'"caption"'},{value:'"center"'},{value:'"cite"'},{value:'"code"'},{value:'"col"'},{value:'"colgroup"'},{value:'"data"'},{value:'"datalist"'},{value:'"dd"'},{value:'"del"'},{value:'"details"'},{value:'"dfn"'},{value:'"dialog"'},{value:'"div"'},{value:'"dl"'},{value:'"dt"'},{value:'"em"'},{value:'"embed"'},{value:'"fieldset"'},{value:'"figcaption"'},{value:'"figure"'},{value:'"footer"'},{value:'"form"'},{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'},{value:'"head"'},{value:'"header"'},{value:'"hgroup"'},{value:'"hr"'},{value:'"html"'},{value:'"i"'},{value:'"iframe"'},{value:'"img"'},{value:'"input"'},{value:'"ins"'},{value:'"kbd"'},{value:'"keygen"'},{value:'"label"'},{value:'"legend"'},{value:'"li"'},{value:'"link"'},{value:'"main"'},{value:'"map"'},{value:'"mark"'},{value:'"menu"'},{value:'"menuitem"'},{value:'"meta"'},{value:'"meter"'},{value:'"nav"'},{value:'"noindex"'},{value:'"noscript"'},{value:'"ol"'},{value:'"optgroup"'},{value:'"option"'},{value:'"output"'},{value:'"p"'},{value:'"param"'},{value:'"picture"'},{value:'"pre"'},{value:'"progress"'},{value:'"q"'},{value:'"rp"'},{value:'"rt"'},{value:'"ruby"'},{value:'"s"'},{value:'"samp"'},{value:'"search"'},{value:'"slot"'},{value:'"script"'},{value:'"section"'},{value:'"small"'},{value:'"source"'},{value:'"span"'},{value:'"strong"'},{value:'"style"'},{value:'"sub"'},{value:'"summary"'},{value:'"sup"'},{value:'"table"'},{value:'"template"'},{value:'"tbody"'},{value:'"td"'},{value:'"textarea"'},{value:'"tfoot"'},{value:'"th"'},{value:'"thead"'},{value:'"time"'},{value:'"title"'},{value:'"tr"'},{value:'"track"'},{value:'"u"'},{value:'"ul"'},{value:'"var"'},{value:'"video"'},{value:'"wbr"'},{value:'"webview"'},{value:'"svg"'},{value:'"animate"'},{value:'"animateMotion"'},{value:'"animateTransform"'},{value:'"circle"'},{value:'"clipPath"'},{value:'"defs"'},{value:'"desc"'},{value:'"ellipse"'},{value:'"feBlend"'},{value:'"feColorMatrix"'},{value:'"feComponentTransfer"'},{value:'"feComposite"'},{value:'"feConvolveMatrix"'},{value:'"feDiffuseLighting"'},{value:'"feDisplacementMap"'},{value:'"feDistantLight"'},{value:'"feDropShadow"'},{value:'"feFlood"'},{value:'"feFuncA"'},{value:'"feFuncB"'},{value:'"feFuncG"'},{value:'"feFuncR"'},{value:'"feGaussianBlur"'},{value:'"feImage"'},{value:'"feMerge"'},{value:'"feMergeNode"'},{value:'"feMorphology"'},{value:'"feOffset"'},{value:'"fePointLight"'},{value:'"feSpecularLighting"'},{value:'"feSpotLight"'},{value:'"feTile"'},{value:'"feTurbulence"'},{value:'"filter"'},{value:'"foreignObject"'},{value:'"g"'},{value:'"image"'},{value:'"line"'},{value:'"linearGradient"'},{value:'"marker"'},{value:'"mask"'},{value:'"metadata"'},{value:'"mpath"'},{value:'"path"'},{value:'"pattern"'},{value:'"polygon"'},{value:'"polyline"'},{value:'"radialGradient"'},{value:'"rect"'},{value:'"set"'},{value:'"stop"'},{value:'"switch"'},{value:'"text"'},{value:'"textPath"'},{value:'"tspan"'},{value:'"use"'},{value:'"view"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/color-palette/index.tsx#colorpalette"]={docgenInfo:colorpalette.__docgenInfo,name:"colorpalette",path:"packages/components/src/color-palette/index.tsx#colorpalette"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/color-palette/styles.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{_:()=>ColorHeading});var _emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),_heading__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/src/heading/component.tsx");const ColorHeading=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)(_heading__WEBPACK_IMPORTED_MODULE_1__.A,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"})},"./packages/components/src/color-palette/utils.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Go:()=>extractColorNameFromCurrentValue,HB:()=>isMultiplePaletteArray,K6:()=>normalizeColorValue});var colord__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/colord/index.mjs"),colord_plugins_names__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/colord/plugins/names.mjs"),colord_plugins_a11y__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/colord/plugins/a11y.mjs"),_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/i18n/build-module/index.js");(0,colord__WEBPACK_IMPORTED_MODULE_1__.X$)([colord_plugins_names__WEBPACK_IMPORTED_MODULE_2__.A,colord_plugins_a11y__WEBPACK_IMPORTED_MODULE_3__.A]);const isSimpleCSSColor=value=>{const valueIsCssVariable=/var\(/.test(null!=value?value:""),valueIsColorMix=/color-mix\(/.test(null!=value?value:"");return!valueIsCssVariable&&!valueIsColorMix},extractColorNameFromCurrentValue=(currentValue,colors=[],showMultiplePalettes=!1)=>{if(!currentValue)return"";const currentValueIsSimpleColor=!!currentValue&&isSimpleCSSColor(currentValue),normalizedCurrentValue=currentValueIsSimpleColor?(0,colord__WEBPACK_IMPORTED_MODULE_1__.Mj)(currentValue).toHex():currentValue,colorPalettes=showMultiplePalettes?colors:[{colors}];for(const{colors:paletteColors}of colorPalettes)for(const{name:colorName,color:colorValue}of paletteColors){if(normalizedCurrentValue===(currentValueIsSimpleColor?(0,colord__WEBPACK_IMPORTED_MODULE_1__.Mj)(colorValue).toHex():colorValue))return colorName}return(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Custom")},isMultiplePaletteArray=arr=>arr.length>0&&arr.every((colorObj=>{return obj=colorObj,Array.isArray(obj.colors)&&!("color"in obj);var obj})),normalizeColorValue=(value,element)=>{if(!value||!element||isSimpleCSSColor(value))return value;const{ownerDocument}=element,{defaultView}=ownerDocument,computedBackgroundColor=defaultView?.getComputedStyle(element).backgroundColor;return computedBackgroundColor?(0,colord__WEBPACK_IMPORTED_MODULE_1__.Mj)(computedBackgroundColor).toHex():value}},"./packages/components/src/color-picker/legacy-adapter.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{V:()=>LegacyAdapter});var component=__webpack_require__("./packages/components/src/color-picker/component.tsx"),colord=__webpack_require__("./node_modules/colord/index.mjs"),dist=__webpack_require__("./node_modules/memize/dist/index.js"),react=__webpack_require__("./node_modules/react/index.js");function getColorFromLegacyProps(color){if(void 0!==color)return"string"==typeof color?color:color.hex?color.hex:void 0}const transformColorStringToLegacyColor=(0,dist.A)((color=>{const colordColor=(0,colord.Mj)(color),hex=colordColor.toHex(),rgb=colordColor.toRgb(),hsv=colordColor.toHsv(),hsl=colordColor.toHsl();return{hex,rgb,hsv,hsl,source:"hex",oldHue:hsl.h}}));function useDeprecatedProps(props){const{onChangeComplete}=props,legacyChangeHandler=(0,react.useCallback)((color=>{onChangeComplete(transformColorStringToLegacyColor(color))}),[onChangeComplete]);return function isLegacyProps(props){return void 0!==props.onChangeComplete||void 0!==props.disableAlpha||"string"==typeof props.color?.hex}(props)?{color:getColorFromLegacyProps(props.color),enableAlpha:!props.disableAlpha,onChange:legacyChangeHandler}:{...props,color:props.color,enableAlpha:props.enableAlpha,onChange:props.onChange}}var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const LegacyAdapter=props=>(0,jsx_runtime.jsx)(component.A,{...useDeprecatedProps(props)});try{LegacyAdapter.displayName="LegacyAdapter",LegacyAdapter.__docgenInfo={description:"",displayName:"LegacyAdapter",props:{enableAlpha:{defaultValue:{value:"false"},description:"When `true` the color picker will display the alpha channel both in\nthe bottom inputs as well as in the color picker itself.",name:"enableAlpha",required:!1,type:{name:"boolean"}},color:{defaultValue:null,description:"The current color value to display in the picker.\nMust be a hex or hex8 string.",name:"color",required:!1,type:{name:"LegacyColor"}},onChange:{defaultValue:null,description:"Fired when the color changes. Always passes a hex or hex8 color string.",name:"onChange",required:!1,type:{name:"(color: string) => void"}},defaultValue:{defaultValue:null,description:"An optional default value to use for the color picker.",name:"defaultValue",required:!1,type:{name:"string"}},copyFormat:{defaultValue:null,description:"The format to copy when clicking the displayed color format.",name:"copyFormat",required:!1,type:{name:"enum",value:[{value:'"rgb"'},{value:'"hsl"'},{value:'"hex"'}]}},onChangeComplete:{defaultValue:null,description:"@deprecated",name:"onChangeComplete",required:!0,type:{name:"(colors: LegacyColor) => void"}},oldHue:{defaultValue:null,description:"@deprecated",name:"oldHue",required:!0,type:{name:"string"}},disableAlpha:{defaultValue:null,description:"@deprecated",name:"disableAlpha",required:!0,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/color-picker/legacy-adapter.tsx#LegacyAdapter"]={docgenInfo:LegacyAdapter.__docgenInfo,name:"LegacyAdapter",path:"packages/components/src/color-picker/legacy-adapter.tsx#LegacyAdapter"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/dropdown/dropdown-content-wrapper.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{a:()=>DropdownContentWrapper,A:()=>dropdown_content_wrapper});var use_context_system=__webpack_require__("./packages/components/src/context/use-context-system.js"),context_connect=__webpack_require__("./packages/components/src/context/context-connect.ts"),emotion_styled_base_browser_esm=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),emotion_react_browser_esm=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),space=__webpack_require__("./packages/components/src/utils/space.ts");const padding=({paddingSize="small"})=>{if("none"===paddingSize)return;const paddingValues={small:(0,space.x)(2),medium:(0,space.x)(4)};return(0,emotion_react_browser_esm.AH)("padding:",paddingValues[paddingSize]||paddingValues.small,";","")},DropdownContentWrapperDiv=(0,emotion_styled_base_browser_esm.A)("div",{target:"eovvns30"})("margin-left:",(0,space.x)(-2),";margin-right:",(0,space.x)(-2),";&:first-of-type{margin-top:",(0,space.x)(-2),";}&:last-of-type{margin-bottom:",(0,space.x)(-2),";}",padding,";");var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const DropdownContentWrapper=(0,context_connect.KZ)((function UnconnectedDropdownContentWrapper(props,forwardedRef){const{paddingSize="small",...derivedProps}=(0,use_context_system.A)(props,"DropdownContentWrapper");return(0,jsx_runtime.jsx)(DropdownContentWrapperDiv,{...derivedProps,paddingSize,ref:forwardedRef})}),"DropdownContentWrapper"),dropdown_content_wrapper=DropdownContentWrapper;try{DropdownContentWrapper.displayName="DropdownContentWrapper",DropdownContentWrapper.__docgenInfo={description:'A convenience wrapper for the `renderContent` when you want to apply\ndifferent padding. (Default is `paddingSize="small"`).\n\n```jsx\nimport {\n Dropdown,\n __experimentalDropdownContentWrapper as DropdownContentWrapper,\n} from \'@wordpress/components\';\n\n (\n \n My dropdown content\n \n) }\n/>\n```',displayName:"DropdownContentWrapper",props:{paddingSize:{defaultValue:{value:"'small'"},description:"Amount of padding to apply on the dropdown content.",name:"paddingSize",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"small"'},{value:'"medium"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/dropdown/dropdown-content-wrapper.tsx#DropdownContentWrapper"]={docgenInfo:DropdownContentWrapper.__docgenInfo,name:"DropdownContentWrapper",path:"packages/components/src/dropdown/dropdown-content-wrapper.tsx#DropdownContentWrapper"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/heading/component.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>heading_component});var context_connect=__webpack_require__("./packages/components/src/context/context-connect.ts"),component=__webpack_require__("./packages/components/src/view/component.tsx"),use_context_system=__webpack_require__("./packages/components/src/context/use-context-system.js"),hook=__webpack_require__("./packages/components/src/text/hook.ts"),font_size=__webpack_require__("./packages/components/src/utils/font-size.ts"),colors_values=__webpack_require__("./packages/components/src/utils/colors-values.js"),config_values=__webpack_require__("./packages/components/src/utils/config-values.js");var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const Heading=(0,context_connect.KZ)((function UnconnectedHeading(props,forwardedRef){const headerProps=function useHeading(props){const{as:asProp,level=2,color=colors_values.l.gray[900],isBlock=!0,weight=config_values.A.fontWeightHeading,...otherProps}=(0,use_context_system.A)(props,"Heading"),as=asProp||`h${level}`,a11yProps={};return"string"==typeof as&&"h"!==as[0]&&(a11yProps.role="heading",a11yProps["aria-level"]="string"==typeof level?parseInt(level):level),{...(0,hook.A)({color,isBlock,weight,size:(0,font_size.fM)(level),...otherProps}),...a11yProps,as}}(props);return(0,jsx_runtime.jsx)(component.A,{...headerProps,ref:forwardedRef})}),"Heading"),heading_component=Heading;try{Heading.displayName="Heading",Heading.__docgenInfo={description:'`Heading` renders headings and titles using the library\'s typography system.\n\n```jsx\nimport { __experimentalHeading as Heading } from "@wordpress/components";\n\nfunction Example() {\n return Code is Poetry;\n}\n```',displayName:"Heading",props:{children:{defaultValue:null,description:"The children elements.\n\nNote: text truncation will be attempted only if the `children` are either\nof type `string` or `number`. In any other scenarios, the component will\nnot attempt to truncate the text, and will pass through the `children`.",name:"children",required:!0,type:{name:"ReactNode"}},display:{defaultValue:null,description:"Adjusts the CSS display.",name:"display",required:!1,type:{name:"Display"}},letterSpacing:{defaultValue:null,description:"Adjusts letter-spacing of the text.",name:"letterSpacing",required:!1,type:{name:"LetterSpacing"}},size:{defaultValue:null,description:"Adjusts text size based on the typography system. `Text` can render a wide range of font sizes, which are automatically calculated and adapted to the typography system. The `size` value can be a system preset, a `number`, or a custom unit value (`string`) such as `30em`.",name:"size",required:!1,type:{name:"string | number | (string & {})"}},align:{defaultValue:null,description:"Adjusts the text alignment.",name:"align",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"inherit"'},{value:'"end"'},{value:'"start"'},{value:'"initial"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'},{value:'"-moz-initial"'},{value:'"revert"'},{value:'"revert-layer"'},{value:'"unset"'},{value:'"match-parent"'}]}},ellipsis:{defaultValue:{value:"'…'"},description:"The ellipsis string when truncating the text by the `limit` prop's value.",name:"ellipsis",required:!1,type:{name:"string"}},ellipsizeMode:{defaultValue:{value:"'auto'"},description:"Determines where to truncate. For example, we can truncate text right in\nthe middle. To do this, we need to set `ellipsizeMode` to `middle` and a\ntext `limit`.\n\n* `auto`: Trims content at the end automatically without a `limit`.\n* `head`: Trims content at the beginning. Requires a `limit`.\n* `middle`: Trims content in the middle. Requires a `limit`.\n* `tail`: Trims content at the end. Requires a `limit`.",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"head"'},{value:'"auto"'},{value:'"middle"'},{value:'"tail"'}]}},limit:{defaultValue:{value:"0"},description:"Determines the max number of characters to be displayed before the rest\nof the text gets truncated. Requires `ellipsizeMode` to assume values\ndifferent from `auto` and `none`.",name:"limit",required:!1,type:{name:"number"}},numberOfLines:{defaultValue:{value:"0"},description:"Clamps the text content to the specified `numberOfLines`, adding an\nellipsis at the end. Note: this feature ignores the value of the\n`ellipsis` prop and always displays the default `…` ellipsis.",name:"numberOfLines",required:!1,type:{name:"number"}},variant:{defaultValue:null,description:"Adjusts style variation of the text.",name:"variant",required:!1,type:{name:'"muted"'}},adjustLineHeightForInnerControls:{defaultValue:null,description:"Automatically calculate the appropriate line-height value for contents that render text and Control elements (e.g. `TextInput`).",name:"adjustLineHeightForInnerControls",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"large"'},{value:'"medium"'},{value:'"xSmall"'}]}},isDestructive:{defaultValue:{value:"false"},description:"Renders a destructive color.",name:"isDestructive",required:!1,type:{name:"boolean"}},highlightEscape:{defaultValue:{value:"false"},description:"Escape characters in `highlightWords` which are meaningful in regular expressions.",name:"highlightEscape",required:!1,type:{name:"boolean"}},highlightCaseSensitive:{defaultValue:{value:"false"},description:"Determines if `highlightWords` should be case sensitive.",name:"highlightCaseSensitive",required:!1,type:{name:"boolean"}},highlightSanitize:{defaultValue:null,description:"Array of search words. String search terms are automatically cast to RegExps unless `highlightEscape` is true.",name:"highlightSanitize",required:!1,type:{name:"(text: string) => string"}},lineHeight:{defaultValue:null,description:"Adjusts all text line-height based on the typography system.",name:"lineHeight",required:!1,type:{name:"LineHeight"}},optimizeReadabilityFor:{defaultValue:null,description:"The `Text` color can be adapted to a background color for optimal readability. `optimizeReadabilityFor` can accept CSS variables, in addition to standard CSS color values (e.g. Hex, RGB, HSL, etc...).",name:"optimizeReadabilityFor",required:!1,type:{name:"Color"}},truncate:{defaultValue:{value:"false"},description:"Enables text truncation. When `truncate` is set, we are able to truncate the long text in a variety of ways. Note: text truncation won't work if the `isBlock` property is set to `true`",name:"truncate",required:!1,type:{name:"boolean"}},upperCase:{defaultValue:{value:"false"},description:"Uppercases the text content.",name:"upperCase",required:!1,type:{name:"boolean"}},highlightWords:{defaultValue:null,description:"Letters or words within `Text` can be highlighted using `highlightWords`.",name:"highlightWords",required:!1,type:{name:"string[]"}},level:{defaultValue:{value:"2"},description:"Passing any of the heading levels to `level` will both render the correct\ntypographic text size as well as the semantic element corresponding to\nthe level (`h1` for `1` for example).",name:"level",required:!1,type:{name:"enum",value:[{value:"1"},{value:"2"},{value:'"1"'},{value:"3"},{value:"4"},{value:"5"},{value:"6"},{value:'"2"'},{value:'"3"'},{value:'"4"'},{value:'"5"'},{value:'"6"'}]}},isBlock:{defaultValue:{value:"true"},description:"Sets `Heading` to have `display: block`. Note: text truncation only works\nwhen `isBlock` is `false`.",name:"isBlock",required:!1,type:{name:"boolean"}},color:{defaultValue:{value:"'#1e1e1e'"},description:"Adjusts the text color.",name:"color",required:!1,type:{name:"Color"}},weight:{defaultValue:{value:"'600'"},description:"Adjusts font-weight of the text.",name:"weight",required:!1,type:{name:"FontWeight | TextWeight"}},as:{defaultValue:null,description:"The HTML element or React component to render the component as.",name:"as",required:!1,type:{name:'"symbol" | "object" | "select" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | ... 516 more ... | ("view" & FunctionComponent<...>)'}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/heading/component.tsx#Heading"]={docgenInfo:Heading.__docgenInfo,name:"Heading",path:"packages/components/src/heading/component.tsx#Heading"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/toggle-group-control/toggle-group-control-option-icon/component.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),_toggle_group_control_option_base__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/src/toggle-group-control/toggle-group-control-option-base/component.tsx"),_icon__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/src/icon/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const ToggleGroupControlOptionIcon=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.forwardRef)((function UnforwardedToggleGroupControlOptionIcon(props,ref){const{icon,label,...restProps}=props;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_toggle_group_control_option_base__WEBPACK_IMPORTED_MODULE_1__.A,{...restProps,isIcon:!0,"aria-label":label,showTooltip:!0,ref,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_icon__WEBPACK_IMPORTED_MODULE_2__.A,{icon})})})),__WEBPACK_DEFAULT_EXPORT__=ToggleGroupControlOptionIcon;try{ToggleGroupControlOptionIcon.displayName="ToggleGroupControlOptionIcon",ToggleGroupControlOptionIcon.__docgenInfo={description:'`ToggleGroupControlOptionIcon` is a form component which is meant to be used as a\nchild of `ToggleGroupControl` and displays an icon.\n\n```jsx\n\nimport {\n__experimentalToggleGroupControl as ToggleGroupControl,\n__experimentalToggleGroupControlOptionIcon as ToggleGroupControlOptionIcon,\nfrom \'@wordpress/components\';\nimport { formatLowercase, formatUppercase } from \'@wordpress/icons\';\n\nfunction Example() {\n return (\n \n \n \n \n );\n}\n```',displayName:"ToggleGroupControlOptionIcon",props:{value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string | number"}},icon:{defaultValue:null,description:"Icon displayed as the content of the option. Usually one of the icons from\nthe `@wordpress/icons` package, or a custom React `` icon.",name:"icon",required:!0,type:{name:"Element"}},label:{defaultValue:null,description:"The text to accessibly label the icon option. Will also be shown in a tooltip.",name:"label",required:!0,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/toggle-group-control/toggle-group-control-option-icon/component.tsx#ToggleGroupControlOptionIcon"]={docgenInfo:ToggleGroupControlOptionIcon.__docgenInfo,name:"ToggleGroupControlOptionIcon",path:"packages/components/src/toggle-group-control/toggle-group-control-option-icon/component.tsx#ToggleGroupControlOptionIcon"})}catch(__react_docgen_typescript_loader_error){}try{component.displayName="component",component.__docgenInfo={description:'`ToggleGroupControlOptionIcon` is a form component which is meant to be used as a\nchild of `ToggleGroupControl` and displays an icon.\n\n```jsx\n\nimport {\n__experimentalToggleGroupControl as ToggleGroupControl,\n__experimentalToggleGroupControlOptionIcon as ToggleGroupControlOptionIcon,\nfrom \'@wordpress/components\';\nimport { formatLowercase, formatUppercase } from \'@wordpress/icons\';\n\nfunction Example() {\n return (\n \n \n \n \n );\n}\n```',displayName:"component",props:{value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string | number"}},icon:{defaultValue:null,description:"Icon displayed as the content of the option. Usually one of the icons from\nthe `@wordpress/icons` package, or a custom React `` icon.",name:"icon",required:!0,type:{name:"Element"}},label:{defaultValue:null,description:"The text to accessibly label the icon option. Will also be shown in a tooltip.",name:"label",required:!0,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/toggle-group-control/toggle-group-control-option-icon/component.tsx#component"]={docgenInfo:component.__docgenInfo,name:"component",path:"packages/components/src/toggle-group-control/toggle-group-control-option-icon/component.tsx#component"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/truncate/component.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _context__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/components/src/context/context-connect.ts"),_view__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/src/view/component.tsx"),_hook__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/src/truncate/hook.ts"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const Truncate=(0,_context__WEBPACK_IMPORTED_MODULE_3__.KZ)((function UnconnectedTruncate(props,forwardedRef){const truncateProps=(0,_hook__WEBPACK_IMPORTED_MODULE_1__.A)(props);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_view__WEBPACK_IMPORTED_MODULE_2__.A,{as:"span",...truncateProps,ref:forwardedRef})}),"Truncate"),__WEBPACK_DEFAULT_EXPORT__=Truncate;try{Truncate.displayName="Truncate",Truncate.__docgenInfo={description:"`Truncate` is a typography primitive that trims text content.\nFor almost all cases, it is recommended that `Text`, `Heading`, or\n`Subheading` is used to render text content. However,`Truncate` is\navailable for custom implementations.\n\n```jsx\nimport { __experimentalTruncate as Truncate } from `@wordpress/components`;\n\nfunction Example() {\n\treturn (\n\t\t\n\t\t\tLorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex\n\t\t\tneque, vulputate a diam et, luctus convallis lacus. Vestibulum ac\n\t\t\tmollis mi. Morbi id elementum massa.\n\t\t\n\t);\n}\n```",displayName:"Truncate",props:{ellipsis:{defaultValue:{value:"'…'"},description:"The ellipsis string when truncating the text by the `limit` prop's value.",name:"ellipsis",required:!1,type:{name:"string"}},ellipsizeMode:{defaultValue:{value:"'auto'"},description:"Determines where to truncate. For example, we can truncate text right in\nthe middle. To do this, we need to set `ellipsizeMode` to `middle` and a\ntext `limit`.\n\n* `auto`: Trims content at the end automatically without a `limit`.\n* `head`: Trims content at the beginning. Requires a `limit`.\n* `middle`: Trims content in the middle. Requires a `limit`.\n* `tail`: Trims content at the end. Requires a `limit`.",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"head"'},{value:'"auto"'},{value:'"middle"'},{value:'"tail"'}]}},limit:{defaultValue:{value:"0"},description:"Determines the max number of characters to be displayed before the rest\nof the text gets truncated. Requires `ellipsizeMode` to assume values\ndifferent from `auto` and `none`.",name:"limit",required:!1,type:{name:"number"}},numberOfLines:{defaultValue:{value:"0"},description:"Clamps the text content to the specified `numberOfLines`, adding an\nellipsis at the end. Note: this feature ignores the value of the\n`ellipsis` prop and always displays the default `…` ellipsis.",name:"numberOfLines",required:!1,type:{name:"number"}},children:{defaultValue:null,description:"The children elements.\n\nNote: text truncation will be attempted only if the `children` are either\nof type `string` or `number`. In any other scenarios, the component will\nnot attempt to truncate the text, and will pass through the `children`.",name:"children",required:!0,type:{name:"ReactNode"}},as:{defaultValue:null,description:"The HTML element or React component to render the component as.",name:"as",required:!1,type:{name:'"symbol" | "object" | "select" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | ... 516 more ... | ("view" & FunctionComponent<...>)'}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/truncate/component.tsx#Truncate"]={docgenInfo:Truncate.__docgenInfo,name:"Truncate",path:"packages/components/src/truncate/component.tsx#Truncate"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/v-stack/component.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>v_stack_component});var context_connect=__webpack_require__("./packages/components/src/context/context-connect.ts"),component=__webpack_require__("./packages/components/src/view/component.tsx"),use_context_system=__webpack_require__("./packages/components/src/context/use-context-system.js"),hook=__webpack_require__("./packages/components/src/h-stack/hook.tsx");var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const VStack=(0,context_connect.KZ)((function UnconnectedVStack(props,forwardedRef){const vStackProps=function useVStack(props){const{expanded=!1,alignment="stretch",...otherProps}=(0,use_context_system.A)(props,"VStack");return(0,hook.A)({direction:"column",expanded,alignment,...otherProps})}(props);return(0,jsx_runtime.jsx)(component.A,{...vStackProps,ref:forwardedRef})}),"VStack"),v_stack_component=VStack;try{VStack.displayName="VStack",VStack.__docgenInfo={description:"`VStack` (or Vertical Stack) is a layout component that arranges child\nelements in a vertical line.\n\n`VStack` can render anything inside.\n\n```jsx\nimport {\n\t__experimentalText as Text,\n\t__experimentalVStack as VStack,\n} from `@wordpress/components`;\n\nfunction Example() {\n\treturn (\n\t\t\n\t\t\tCode\n\t\t\tis\n\t\t\tPoetry\n\t\t\n\t);\n}\n```",displayName:"VStack",props:{children:{defaultValue:null,description:"The children elements.",name:"children",required:!0,type:{name:"ReactNode"}},direction:{defaultValue:{value:"'row'"},description:"The direction flow of the children content can be adjusted with\n`direction`. `column` will align children vertically and `row` will align\nchildren horizontally.",name:"direction",required:!1,type:{name:"FlexDirection"}},wrap:{defaultValue:{value:"false"},description:"Determines if children should wrap.",name:"wrap",required:!1,type:{name:"boolean"}},isReversed:{defaultValue:null,description:"@deprecated",name:"isReversed",required:!1,type:{name:"boolean"}},justify:{defaultValue:{value:"'space-between'"},description:"Horizontally aligns content if the `direction` is `row`, or vertically\naligns content if the `direction` is `column`.",name:"justify",required:!1,type:{name:"JustifyContent"}},expanded:{defaultValue:{value:"true"},description:"Expands to the maximum available width (if horizontal) or height (if\nvertical).",name:"expanded",required:!1,type:{name:"boolean"}},alignment:{defaultValue:{value:"'stretch'"},description:"Determines how the child elements are aligned.\n\n- `top`: Aligns content to the top.\n- `topLeft`: Aligns content to the top/left.\n- `topRight`: Aligns content to the top/right.\n- `left`: Aligns content to the left.\n- `center`: Aligns content to the center.\n- `right`: Aligns content to the right.\n- `bottom`: Aligns content to the bottom.\n- `bottomLeft`: Aligns content to the bottom/left.\n- `bottomRight`: Aligns content to the bottom/right.\n- `edge`: Justifies content to be evenly spread out up to the main axis edges of the container.\n- `stretch`: Stretches content to the cross axis edges of the container.",name:"alignment",required:!1,type:{name:'"top" | "center" | "inherit" | (string & {}) | "end" | "start" | "baseline" | "initial" | "left" | "right" | "bottom" | "-moz-initial" | "revert" | "revert-layer" | "unset" | "stretch" | ... 9 more ... | "self-start"'}},spacing:{defaultValue:null,description:"The amount of space between each child element. Spacing in between each\nchild can be adjusted by using `spacing`. The value of `spacing` works as\na multiplier to the library's grid system (base of `4px`).",name:"spacing",required:!1,type:{name:"Width"}},as:{defaultValue:null,description:"The HTML element or React component to render the component as.",name:"as",required:!1,type:{name:'"symbol" | "object" | "select" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | ... 516 more ... | ("view" & FunctionComponent<...>)'}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/v-stack/component.tsx#VStack"]={docgenInfo:VStack.__docgenInfo,name:"VStack",path:"packages/components/src/v-stack/component.tsx#VStack"})}catch(__react_docgen_typescript_loader_error){}},"./node_modules/remove-accents/index.js":module=>{var characterMap={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},chars=Object.keys(characterMap).join("|"),allAccents=new RegExp(chars,"g"),firstAccent=new RegExp(chars,"");function matcher(match){return characterMap[match]}var removeAccents=function(string){return string.replace(allAccents,matcher)};module.exports=removeAccents,module.exports.has=function(string){return!!string.match(firstAccent)},module.exports.remove=removeAccents}}]); \ No newline at end of file diff --git a/2039.72d1c3e4.iframe.bundle.js b/2039.72d1c3e4.iframe.bundle.js new file mode 100644 index 00000000000000..5a2bcec6f6c80b --- /dev/null +++ b/2039.72d1c3e4.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[2039],{"./packages/components/build-module/flex/flex/component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _context__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/components/build-module/context/context-connect.js"),_hook__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/build-module/flex/flex/hook.js"),_context__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/build-module/flex/context.js"),_view__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/components/build-module/view/component.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,_context__WEBPACK_IMPORTED_MODULE_4__.KZ)((function UnconnectedFlex(props,forwardedRef){const{children,isColumn,...otherProps}=(0,_hook__WEBPACK_IMPORTED_MODULE_1__.v)(props);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_context__WEBPACK_IMPORTED_MODULE_2__.R.Provider,{value:{flexItemDisplay:isColumn?"block":void 0},children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_view__WEBPACK_IMPORTED_MODULE_3__.A,{...otherProps,ref:forwardedRef,children})})}),"Flex")},"./packages/components/build-module/input-control/styles/input-control-styles.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Hr:()=>BackdropUI,JU:()=>Label,TA:()=>fontSizeStyles,b3:()=>Prefix,bC:()=>PrefixSuffixWrapper,bL:()=>Root,cR:()=>LabelWrapper,mc:()=>Container,pd:()=>Input,sZ:()=>Suffix});var _emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),_emotion_react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),_flex__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/components/build-module/flex/flex/component.js"),_flex__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./packages/components/build-module/flex/flex-item/component.js"),_text__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/components/build-module/text/component.js"),_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/build-module/utils/colors-values.js"),_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/components/build-module/utils/rtl.js"),_utils__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/components/build-module/utils/config-values.js"),_utils__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./packages/components/build-module/utils/base-label.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");const Prefix=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("span",{target:"em5sgkm8"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),Suffix=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("span",{target:"em5sgkm7"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"}),backdropBorderColor=({disabled,isBorderless})=>isBorderless?"transparent":disabled?_utils__WEBPACK_IMPORTED_MODULE_2__.l.ui.borderDisabled:_utils__WEBPACK_IMPORTED_MODULE_2__.l.ui.border,BackdropUI=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("div",{target:"em5sgkm6"})("&&&{box-sizing:border-box;border-color:",backdropBorderColor,";border-radius:inherit;border-style:solid;border-width:1px;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(0,_utils__WEBPACK_IMPORTED_MODULE_3__.h)({paddingLeft:2}),";}"),Root=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)(_flex__WEBPACK_IMPORTED_MODULE_4__.A,{target:"em5sgkm5"})("box-sizing:border-box;position:relative;border-radius:",_utils__WEBPACK_IMPORTED_MODULE_5__.A.radiusSmall,";padding-top:0;&:focus-within:not( :has( :is( ",Prefix,", ",Suffix," ):focus-within ) ){",BackdropUI,"{border-color:",_utils__WEBPACK_IMPORTED_MODULE_2__.l.ui.borderFocus,";box-shadow:",_utils__WEBPACK_IMPORTED_MODULE_5__.A.controlBoxShadowFocus,";outline:2px solid transparent;outline-offset:-2px;}}"),containerDisabledStyles=({disabled})=>{const backgroundColor=disabled?_utils__WEBPACK_IMPORTED_MODULE_2__.l.ui.backgroundDisabled:_utils__WEBPACK_IMPORTED_MODULE_2__.l.ui.background;return(0,_emotion_react__WEBPACK_IMPORTED_MODULE_6__.AH)({backgroundColor},"","","","")};var _ref={name:"1d3w5wq",styles:"width:100%"};const containerWidthStyles=({__unstableInputWidth,labelPosition})=>__unstableInputWidth?"side"===labelPosition?"":"edge"===labelPosition?(0,_emotion_react__WEBPACK_IMPORTED_MODULE_6__.AH)({flex:`0 0 ${__unstableInputWidth}`},"","","",""):(0,_emotion_react__WEBPACK_IMPORTED_MODULE_6__.AH)({width:__unstableInputWidth},"","","",""):_ref,Container=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("div",{target:"em5sgkm4"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",containerDisabledStyles," ",containerWidthStyles,";"),disabledStyles=({disabled})=>disabled?(0,_emotion_react__WEBPACK_IMPORTED_MODULE_6__.AH)({color:_utils__WEBPACK_IMPORTED_MODULE_2__.l.ui.textDisabled},"","","",""):"",fontSizeStyles=({inputSize:size})=>{const sizes={default:"13px",small:"11px",compact:"13px","__unstable-large":"13px"},fontSize=sizes[size]||sizes.default;return fontSize?(0,_emotion_react__WEBPACK_IMPORTED_MODULE_6__.AH)("font-size:","16px",";@media ( min-width: 600px ){font-size:",fontSize,";}","","",""):""},getSizeConfig=({inputSize:size,__next40pxDefaultSize})=>{const sizes={default:{height:40,lineHeight:1,minHeight:40,paddingLeft:_utils__WEBPACK_IMPORTED_MODULE_5__.A.controlPaddingX,paddingRight:_utils__WEBPACK_IMPORTED_MODULE_5__.A.controlPaddingX},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:_utils__WEBPACK_IMPORTED_MODULE_5__.A.controlPaddingXSmall,paddingRight:_utils__WEBPACK_IMPORTED_MODULE_5__.A.controlPaddingXSmall},compact:{height:32,lineHeight:1,minHeight:32,paddingLeft:_utils__WEBPACK_IMPORTED_MODULE_5__.A.controlPaddingXSmall,paddingRight:_utils__WEBPACK_IMPORTED_MODULE_5__.A.controlPaddingXSmall},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:_utils__WEBPACK_IMPORTED_MODULE_5__.A.controlPaddingX,paddingRight:_utils__WEBPACK_IMPORTED_MODULE_5__.A.controlPaddingX}};return __next40pxDefaultSize||(sizes.default=sizes.compact),sizes[size]||sizes.default},sizeStyles=props=>(0,_emotion_react__WEBPACK_IMPORTED_MODULE_6__.AH)(getSizeConfig(props),"","","",""),customPaddings=({paddingInlineStart,paddingInlineEnd})=>(0,_emotion_react__WEBPACK_IMPORTED_MODULE_6__.AH)({paddingInlineStart,paddingInlineEnd},"","","",""),dragStyles=({isDragging,dragCursor})=>{let defaultArrowStyles,activeDragCursorStyles;return isDragging&&(defaultArrowStyles=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_6__.AH)("cursor:",dragCursor,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","","","")),isDragging&&dragCursor&&(activeDragCursorStyles=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_6__.AH)("&:active{cursor:",dragCursor,";}","","","")),(0,_emotion_react__WEBPACK_IMPORTED_MODULE_6__.AH)(defaultArrowStyles," ",activeDragCursorStyles,";","","","")},Input=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("input",{target:"em5sgkm3"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",_utils__WEBPACK_IMPORTED_MODULE_2__.l.theme.foreground,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",dragStyles," ",disabledStyles," ",fontSizeStyles," ",sizeStyles," ",customPaddings," &::-webkit-input-placeholder{line-height:normal;}}"),BaseLabel=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)(_text__WEBPACK_IMPORTED_MODULE_7__.A,{target:"em5sgkm2"})("&&&{",_utils__WEBPACK_IMPORTED_MODULE_8__.z,";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),Label=props=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(BaseLabel,{...props,as:"label"}),LabelWrapper=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)(_flex__WEBPACK_IMPORTED_MODULE_9__.A,{target:"em5sgkm1"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),prefixSuffixWrapperStyles=({variant="default",size,__next40pxDefaultSize,isPrefix})=>{const{paddingLeft:padding}=getSizeConfig({inputSize:size,__next40pxDefaultSize}),paddingProperty=isPrefix?"paddingInlineStart":"paddingInlineEnd";return"default"===variant?(0,_emotion_react__WEBPACK_IMPORTED_MODULE_6__.AH)({[paddingProperty]:padding},"","","",""):(0,_emotion_react__WEBPACK_IMPORTED_MODULE_6__.AH)({display:"flex",[paddingProperty]:padding-4},"","","","")},PrefixSuffixWrapper=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("div",{target:"em5sgkm0"})(prefixSuffixWrapperStyles,";")}}]); \ No newline at end of file diff --git a/2062.98d83fa2.iframe.bundle.js b/2062.98d83fa2.iframe.bundle.js new file mode 100644 index 00000000000000..d334f93f3607a2 --- /dev/null +++ b/2062.98d83fa2.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[2062],{"./node_modules/@ariakit/react-core/esm/__chunks/S5WQ44SQ.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{np:()=>useSelectStore});var VEVQD5MH=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/VEVQD5MH.js"),_4CMBR7SL=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/4CMBR7SL.js"),O2PQ2652=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/O2PQ2652.js"),YV4JVR4I=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js"),ABQUS43J=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),AJZ4BYF3=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/AJZ4BYF3.js"),_7PRQYBBV=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/7PRQYBBV.js"),ME2CUF3F=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/ME2CUF3F.js"),BCALMBPZ=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/BCALMBPZ.js"),PBFD2E7P=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),_chunks_3YLGPPWQ=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/3YLGPPWQ.js");function createSelectStore(_a={}){var _b=_a,{combobox}=_b,props=(0,_chunks_3YLGPPWQ.YG)(_b,["combobox"]);const store=(0,BCALMBPZ.od)(props.store,(0,BCALMBPZ.cJ)(combobox,["value","items","renderedItems","baseElement","arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"]));(0,BCALMBPZ.UE)(props,store);const syncState=store.getState(),composite=(0,AJZ4BYF3.z)((0,_chunks_3YLGPPWQ.ko)((0,_chunks_3YLGPPWQ.IA)({},props),{store,virtualFocus:(0,PBFD2E7P.Jh)(props.virtualFocus,syncState.virtualFocus,!0),includesBaseElement:(0,PBFD2E7P.Jh)(props.includesBaseElement,syncState.includesBaseElement,!1),activeId:(0,PBFD2E7P.Jh)(props.activeId,syncState.activeId,props.defaultActiveId,null),orientation:(0,PBFD2E7P.Jh)(props.orientation,syncState.orientation,"vertical")})),popover=(0,ME2CUF3F.N)((0,_chunks_3YLGPPWQ.ko)((0,_chunks_3YLGPPWQ.IA)({},props),{store,placement:(0,PBFD2E7P.Jh)(props.placement,syncState.placement,"bottom-start")})),initialValue=new String(""),initialState=(0,_chunks_3YLGPPWQ.ko)((0,_chunks_3YLGPPWQ.IA)((0,_chunks_3YLGPPWQ.IA)({},composite.getState()),popover.getState()),{value:(0,PBFD2E7P.Jh)(props.value,syncState.value,props.defaultValue,initialValue),setValueOnMove:(0,PBFD2E7P.Jh)(props.setValueOnMove,syncState.setValueOnMove,!1),labelElement:(0,PBFD2E7P.Jh)(syncState.labelElement,null),selectElement:(0,PBFD2E7P.Jh)(syncState.selectElement,null),listElement:(0,PBFD2E7P.Jh)(syncState.listElement,null)}),select=(0,BCALMBPZ.y$)(initialState,composite,popover,store);return(0,BCALMBPZ.mj)(select,(()=>(0,BCALMBPZ.OH)(select,["value","items"],(state=>{if(state.value!==initialValue)return;if(!state.items.length)return;const item=state.items.find((item2=>!item2.disabled&&null!=item2.value));null!=(null==item?void 0:item.value)&&select.setState("value",item.value)})))),(0,BCALMBPZ.mj)(select,(()=>(0,BCALMBPZ.OH)(select,["mounted"],(state=>{state.mounted||select.setState("activeId",initialState.activeId)})))),(0,BCALMBPZ.mj)(select,(()=>(0,BCALMBPZ.OH)(select,["mounted","items","value"],(state=>{if(combobox)return;if(state.mounted)return;const values=(0,_7PRQYBBV.$r)(state.value),lastValue=values[values.length-1];if(null==lastValue)return;const item=state.items.find((item2=>!item2.disabled&&item2.value===lastValue));item&&select.setState("activeId",item.id)})))),(0,BCALMBPZ.mj)(select,(()=>(0,BCALMBPZ.vA)(select,["setValueOnMove","moves"],(state=>{const{mounted,value,activeId}=select.getState();if(!state.setValueOnMove&&mounted)return;if(Array.isArray(value))return;if(!state.moves)return;if(!activeId)return;const item=composite.item(activeId);item&&!item.disabled&&null!=item.value&&select.setState("value",item.value)})))),(0,_chunks_3YLGPPWQ.ko)((0,_chunks_3YLGPPWQ.IA)((0,_chunks_3YLGPPWQ.IA)((0,_chunks_3YLGPPWQ.IA)({},composite),popover),select),{combobox,setValue:value=>select.setState("value",value),setLabelElement:element=>select.setState("labelElement",element),setSelectElement:element=>select.setState("selectElement",element),setListElement:element=>select.setState("listElement",element)})}function useSelectStore(props={}){props=function useSelectStoreOptions(props){const combobox=(0,VEVQD5MH.PV)();return props=(0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({},props),{combobox:void 0!==props.combobox?props.combobox:combobox}),(0,_4CMBR7SL.YC)(props)}(props);const[store,update]=(0,YV4JVR4I.Pj)(createSelectStore,props);return function useSelectStoreProps(store,update,props){return(0,ABQUS43J.w5)(update,[props.combobox]),(0,YV4JVR4I.Tz)(store,props,"value","setValue"),(0,YV4JVR4I.Tz)(store,props,"setValueOnMove"),Object.assign((0,O2PQ2652.o)((0,_4CMBR7SL.YO)(store,update,props),update,props),{combobox:props.combobox})}(store,update,props)}},"./node_modules/@ariakit/react-core/esm/__chunks/YF2ICFG4.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{e:()=>SelectItem});var _UQQRIHDV_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/UQQRIHDV.js"),_KPEX55MY_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/KPEX55MY.js"),_P2CTZE2T_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P2CTZE2T.js"),_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js"),_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/DTR5TSDJ.js"),_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@ariakit/core/esm/utils/events.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");var useSelectItem=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.ab)((function useSelectItem2(_a){var _a2,_b=_a,{store,value,getItem:getItemProp,hideOnClick,setValueOnClick=null!=value,preventScrollOnKeyDown=!0,focusOnHover=!0}=_b,props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.YG)(_b,["store","value","getItem","hideOnClick","setValueOnClick","preventScrollOnKeyDown","focusOnHover"]);const context=(0,_KPEX55MY_js__WEBPACK_IMPORTED_MODULE_4__.L4)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.V1)(store,!1);const id=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.Bi)(props.id),disabled=(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.$f)(props),{listElement,multiSelectable,selected,autoFocus}=(0,_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_7__.PX)(store,{listElement:"listElement",multiSelectable:state=>Array.isArray(state.value),selected:state=>function isSelected(storeValue,itemValue){if(null!=itemValue)return null!=storeValue&&(Array.isArray(storeValue)?storeValue.includes(itemValue):storeValue===itemValue)}(state.value,value),autoFocus:state=>null!=value&&(null!=state.value&&((state.activeId===id||!(null==store?void 0:store.item(state.activeId)))&&(Array.isArray(state.value)?state.value[state.value.length-1]===value:state.value===value)))}),getItem=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((item=>{const nextItem=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({},item),{value:disabled?void 0:value,children:value});return getItemProp?getItemProp(nextItem):nextItem}),[disabled,value,getItemProp]);hideOnClick=null!=hideOnClick?hideOnClick:null!=value&&!multiSelectable;const onClickProp=props.onClick,setValueOnClickProp=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.O4)(setValueOnClick),hideOnClickProp=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.O4)(hideOnClick),onClick=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__._q)((event=>{null==onClickProp||onClickProp(event),event.defaultPrevented||(0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_8__.RN)(event)||(0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_8__.$b)(event)||(setValueOnClickProp(event)&&null!=value&&(null==store||store.setValue((prevValue=>Array.isArray(prevValue)?prevValue.includes(value)?prevValue.filter((v=>v!==value)):[...prevValue,value]:value))),hideOnClickProp(event)&&(null==store||store.hide()))}));props=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.w7)(props,(element=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_KPEX55MY_js__WEBPACK_IMPORTED_MODULE_4__.uf.Provider,{value:null!=selected&&selected,children:element})),[selected]),props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({id,role:(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_9__.cn)(listElement),"aria-selected":selected,children:value},props),{autoFocus:null!=(_a2=props.autoFocus)?_a2:autoFocus,onClick}),props=(0,_P2CTZE2T_js__WEBPACK_IMPORTED_MODULE_10__.k)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({store,getItem,preventScrollOnKeyDown},props));const focusOnHoverProp=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.O4)(focusOnHover);return props=(0,_UQQRIHDV_js__WEBPACK_IMPORTED_MODULE_11__.T)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({store},props),{focusOnHover(event){if(!focusOnHoverProp(event))return!1;const state=null==store?void 0:store.getState();return!!(null==state?void 0:state.open)}}))})),SelectItem=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.ph)((0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.Rf)((function SelectItem2(props){const htmlProps=useSelectItem(props);return(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.n)("div",htmlProps)})))},"./node_modules/@ariakit/react-core/esm/select/select-item-check.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{u:()=>SelectItemCheck});var _chunks_5JCRYSSV_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/5JCRYSSV.js"),_chunks_KPEX55MY_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/KPEX55MY.js"),_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),useSelectItemCheck=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.ab)((function useSelectItemCheck2(_a){var _b=_a,{store,checked}=_b,props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.YG)(_b,["store","checked"]);const context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_chunks_KPEX55MY_js__WEBPACK_IMPORTED_MODULE_3__.uf);return checked=null!=checked?checked:context,props=(0,_chunks_5JCRYSSV_js__WEBPACK_IMPORTED_MODULE_4__.H)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.ko)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.IA)({},props),{checked}))})),SelectItemCheck=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.Rf)((function SelectItemCheck2(props){const htmlProps=useSelectItemCheck(props);return(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.n)("span",htmlProps)}))},"./node_modules/@ariakit/react-core/esm/select/select-label.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{T:()=>SelectLabel});var _chunks_KPEX55MY_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/KPEX55MY.js"),_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),useSelectLabel=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_0__.ab)((function useSelectLabel2(_a){var _b=_a,{store}=_b,props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__.YG)(_b,["store"]);const context=(0,_chunks_KPEX55MY_js__WEBPACK_IMPORTED_MODULE_2__.oZ)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_3__.V1)(store,!1);const id=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_4__.Bi)(props.id),onClickProp=props.onClick,onClick=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_4__._q)((event=>{null==onClickProp||onClickProp(event),event.defaultPrevented||queueMicrotask((()=>{const select=null==store?void 0:store.getState().selectElement;null==select||select.focus()}))}));return props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__.ko)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__.IA)({id},props),{ref:(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_4__.SV)(store.setLabelElement,props.ref),onClick,style:(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__.IA)({cursor:"default"},props.style)}),(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_3__.HR)(props)})),SelectLabel=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_0__.ph)((0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_0__.Rf)((function SelectLabel2(props){const htmlProps=useSelectLabel(props);return(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_0__.n)("div",htmlProps)})))},"./node_modules/@ariakit/react-core/esm/select/select-popover.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{k:()=>SelectPopover});var T7VMP3TM=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/T7VMP3TM.js"),KPEX55MY=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/KPEX55MY.js"),ITI7HKP4=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ITI7HKP4.js"),VGCJ63VH=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/VGCJ63VH.js"),LMDWO4NN=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),ABQUS43J=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),events=__webpack_require__("./node_modules/@ariakit/core/esm/utils/events.js"),PBFD2E7P=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react=__webpack_require__("./node_modules/react/index.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),SelectListContext=(0,react.createContext)(null),useSelectList=(0,LMDWO4NN.ab)((function useSelectList2(_a){var _b=_a,{store,resetOnEscape=!0,hideOnEnter=!0,focusOnMove=!0,composite,alwaysVisible}=_b,props=(0,_3YLGPPWQ.YG)(_b,["store","resetOnEscape","hideOnEnter","focusOnMove","composite","alwaysVisible"]);const context=(0,KPEX55MY.hP)();store=store||context,(0,PBFD2E7P.V1)(store,!1);const id=(0,ABQUS43J.Bi)(props.id),value=store.useState("value"),multiSelectable=Array.isArray(value),[defaultValue,setDefaultValue]=(0,react.useState)(value),mounted=store.useState("mounted");(0,react.useEffect)((()=>{mounted||setDefaultValue(value)}),[mounted,value]),resetOnEscape=resetOnEscape&&!multiSelectable;const onKeyDownProp=props.onKeyDown,resetOnEscapeProp=(0,ABQUS43J.O4)(resetOnEscape),hideOnEnterProp=(0,ABQUS43J.O4)(hideOnEnter),onKeyDown=(0,ABQUS43J._q)((event=>{null==onKeyDownProp||onKeyDownProp(event),event.defaultPrevented||("Escape"===event.key&&resetOnEscapeProp(event)&&(null==store||store.setValue(defaultValue))," "!==event.key&&"Enter"!==event.key||(0,events.uh)(event)&&hideOnEnterProp(event)&&(event.preventDefault(),null==store||store.hide()))})),headingContext=(0,react.useContext)(KPEX55MY.Mz),headingState=(0,react.useState)(),[headingId,setHeadingId]=headingContext||headingState,headingContextValue=(0,react.useMemo)((()=>[headingId,setHeadingId]),[headingId]),[childStore,setChildStore]=(0,react.useState)(null),setStore=(0,react.useContext)(SelectListContext);(0,react.useEffect)((()=>{if(setStore)return setStore(store),()=>setStore(null)}),[setStore,store]),props=(0,ABQUS43J.w7)(props,(element2=>(0,jsx_runtime.jsx)(KPEX55MY.D1,{value:store,children:(0,jsx_runtime.jsx)(SelectListContext.Provider,{value:setChildStore,children:(0,jsx_runtime.jsx)(KPEX55MY.Mz.Provider,{value:headingContextValue,children:element2})})})),[store,headingContextValue]);const hasCombobox=!!store.combobox;composite=null!=composite?composite:!hasCombobox&&childStore!==store;const[element,setElement]=(0,ABQUS43J.XB)(composite?store.setListElement:null),role=(0,ABQUS43J.Cy)(element,"role",props.role),ariaMultiSelectable=(composite||("listbox"===role||"menu"===role||"tree"===role||"grid"===role))&&multiSelectable||void 0,hidden=(0,VGCJ63VH.dK)(mounted,props.hidden,alwaysVisible),style=hidden?(0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({},props.style),{display:"none"}):props.style;composite&&(props=(0,_3YLGPPWQ.IA)({role:"listbox","aria-multiselectable":ariaMultiSelectable},props));const labelId=store.useState((state=>{var _a2;return headingId||(null==(_a2=state.labelElement)?void 0:_a2.id)}));return props=(0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({id,"aria-labelledby":labelId,hidden},props),{ref:(0,ABQUS43J.SV)(setElement,props.ref),style,onKeyDown}),props=(0,ITI7HKP4.T)((0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({store},props),{composite})),props=(0,T7VMP3TM.g)((0,_3YLGPPWQ.IA)({store,typeahead:!hasCombobox},props))})),T6C2RYFI=((0,LMDWO4NN.Rf)((function SelectList2(props){const htmlProps=useSelectList(props);return(0,LMDWO4NN.n)("div",htmlProps)})),__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/T6C2RYFI.js")),JC64G2H7=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/JC64G2H7.js"),useSelectPopover=(0,LMDWO4NN.ab)((function useSelectPopover2(_a){var _b=_a,{store,alwaysVisible}=_b,props=(0,_3YLGPPWQ.YG)(_b,["store","alwaysVisible"]);const context=(0,KPEX55MY.oZ)();return store=store||context,props=useSelectList((0,_3YLGPPWQ.IA)({store,alwaysVisible},props)),props=(0,T6C2RYFI.f)((0,_3YLGPPWQ.IA)({store,alwaysVisible},props))})),SelectPopover=(0,JC64G2H7.AV)((0,LMDWO4NN.Rf)((function SelectPopover2(props){const htmlProps=useSelectPopover(props);return(0,LMDWO4NN.n)("div",htmlProps)})),KPEX55MY.oZ)},"./node_modules/@ariakit/react-core/esm/select/select.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{l:()=>Select});var QYJ6MIDR=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/QYJ6MIDR.js"),MTZPJQMC=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/MTZPJQMC.js"),LMDWO4NN=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_3YLGPPWQ=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),PBFD2E7P=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react=__webpack_require__("./node_modules/react/index.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),pointsMap={top:"4,10 8,6 12,10",right:"6,4 10,8 6,12",bottom:"4,6 8,10 12,6",left:"10,4 6,8 10,12"},usePopoverDisclosureArrow=(0,LMDWO4NN.ab)((function usePopoverDisclosureArrow2(_a){var _b=_a,{store,placement}=_b,props=(0,_3YLGPPWQ.YG)(_b,["store","placement"]);const context=(0,MTZPJQMC.C_)();store=store||context,(0,PBFD2E7P.V1)(store,!1);const dir=store.useState((state=>placement||state.placement)).split("-")[0],points=pointsMap[dir],children=(0,react.useMemo)((()=>(0,jsx_runtime.jsx)("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:(0,jsx_runtime.jsx)("polyline",{points})})),[points]);return props=(0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({children,"aria-hidden":!0},props),{style:(0,_3YLGPPWQ.IA)({width:"1em",height:"1em",pointerEvents:"none"},props.style)}),(0,PBFD2E7P.HR)(props)})),KPEX55MY=((0,LMDWO4NN.Rf)((function PopoverDisclosureArrow2(props){const htmlProps=usePopoverDisclosureArrow(props);return(0,LMDWO4NN.n)("span",htmlProps)})),__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/KPEX55MY.js")),useSelectArrow=(0,LMDWO4NN.ab)((function useSelectArrow2(_a){var _b=_a,{store}=_b,props=(0,_3YLGPPWQ.YG)(_b,["store"]);const context=(0,KPEX55MY.hP)();return store=store||context,props=usePopoverDisclosureArrow((0,_3YLGPPWQ.IA)({store},props))})),SelectArrow=(0,LMDWO4NN.Rf)((function SelectArrow2(props){const htmlProps=useSelectArrow(props);return(0,LMDWO4NN.n)("span",htmlProps)})),T7VMP3TM=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/T7VMP3TM.js"),ABQUS43J=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_7PRQYBBV=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/7PRQYBBV.js"),DTR5TSDJ=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/DTR5TSDJ.js"),events=__webpack_require__("./node_modules/@ariakit/core/esm/utils/events.js");function nextWithValue(store,next){return()=>{const nextId=next();if(!nextId)return;let i=0,nextItem=store.item(nextId);const firstItem=nextItem;for(;nextItem&&null==nextItem.value;){const nextId2=next(++i);if(!nextId2)return;if(nextItem=store.item(nextId2),nextItem===firstItem)break}return null==nextItem?void 0:nextItem.id}}var useSelect=(0,LMDWO4NN.ab)((function useSelect2(_a){var _b=_a,{store,name,form,required,showOnKeyDown=!0,moveOnKeyDown=!0,toggleOnPress=!0,toggleOnClick=toggleOnPress}=_b,props=(0,_3YLGPPWQ.YG)(_b,["store","name","form","required","showOnKeyDown","moveOnKeyDown","toggleOnPress","toggleOnClick"]);const context=(0,KPEX55MY.oZ)();store=store||context,(0,PBFD2E7P.V1)(store,!1);const onKeyDownProp=props.onKeyDown,showOnKeyDownProp=(0,ABQUS43J.O4)(showOnKeyDown),moveOnKeyDownProp=(0,ABQUS43J.O4)(moveOnKeyDown),dir=store.useState("placement").split("-")[0],value=store.useState("value"),multiSelectable=Array.isArray(value),onKeyDown=(0,ABQUS43J._q)((event=>{var _a2;if(null==onKeyDownProp||onKeyDownProp(event),event.defaultPrevented)return;if(!store)return;const{orientation,items:items2,activeId}=store.getState(),isVertical="horizontal"!==orientation,isHorizontal="vertical"!==orientation,isGrid=!!(null==(_a2=items2.find((item=>!item.disabled&&null!=item.value)))?void 0:_a2.rowId),getId={ArrowUp:(isGrid||isVertical)&&nextWithValue(store,store.up),ArrowRight:(isGrid||isHorizontal)&&nextWithValue(store,store.next),ArrowDown:(isGrid||isVertical)&&nextWithValue(store,store.down),ArrowLeft:(isGrid||isHorizontal)&&nextWithValue(store,store.previous)}[event.key];getId&&moveOnKeyDownProp(event)&&(event.preventDefault(),store.move(getId()));const isTopOrBottom="top"===dir||"bottom"===dir;({ArrowDown:isTopOrBottom,ArrowUp:isTopOrBottom,ArrowLeft:"left"===dir,ArrowRight:"right"===dir})[event.key]&&showOnKeyDownProp(event)&&(event.preventDefault(),store.move(activeId),(0,events.nz)(event.currentTarget,"keyup",store.show))}));props=(0,ABQUS43J.w7)(props,(element=>(0,jsx_runtime.jsx)(KPEX55MY.D1,{value:store,children:element})),[store]);const[autofill,setAutofill]=(0,react.useState)(!1),nativeSelectChangedRef=(0,react.useRef)(!1);(0,react.useEffect)((()=>{const nativeSelectChanged=nativeSelectChangedRef.current;nativeSelectChangedRef.current=!1,nativeSelectChanged||setAutofill(!1)}),[value]);const labelId=store.useState((state=>{var _a2;return null==(_a2=state.labelElement)?void 0:_a2.id})),label=props["aria-label"],labelledBy=props["aria-labelledby"]||labelId,items=store.useState((state=>{if(name)return state.items})),values=(0,react.useMemo)((()=>[...new Set(null==items?void 0:items.map((i=>i.value)).filter((v=>null!=v)))]),[items]);props=(0,ABQUS43J.w7)(props,(element=>name?(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsxs)("select",{style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},tabIndex:-1,"aria-hidden":!0,"aria-label":label,"aria-labelledby":labelledBy,name,form,required,value,multiple:multiSelectable,onFocus:()=>{var _a2;return null==(_a2=null==store?void 0:store.getState().selectElement)?void 0:_a2.focus()},onChange:event=>{nativeSelectChangedRef.current=!0,setAutofill(!0),null==store||store.setValue(multiSelectable?function getSelectedValues(select){return Array.from(select.selectedOptions).map((option=>option.value))}(event.target):event.target.value)},children:[(0,_7PRQYBBV.$r)(value).map((value2=>null==value2||values.includes(value2)?null:(0,jsx_runtime.jsx)("option",{value:value2,children:value2},value2))),values.map((value2=>(0,jsx_runtime.jsx)("option",{value:value2,children:value2},value2)))]}),element]}):element),[store,label,labelledBy,name,form,required,value,multiSelectable,values]);const children=(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[value,(0,jsx_runtime.jsx)(SelectArrow,{})]}),contentElement=store.useState("contentElement");return props=(0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({role:"combobox","aria-autocomplete":"none","aria-labelledby":labelId,"aria-haspopup":(0,DTR5TSDJ.Tc)(contentElement,"listbox"),"data-autofill":autofill||void 0,"data-name":name,children},props),{ref:(0,ABQUS43J.SV)(store.setSelectElement,props.ref),onKeyDown}),props=(0,QYJ6MIDR.y)((0,_3YLGPPWQ.IA)({store,toggleOnClick},props)),props=(0,T7VMP3TM.g)((0,_3YLGPPWQ.IA)({store},props))})),Select=(0,LMDWO4NN.Rf)((function Select2(props){const htmlProps=useSelect(props);return(0,LMDWO4NN.n)("button",htmlProps)}))}}]); \ No newline at end of file diff --git a/233.3889fe00.iframe.bundle.js b/233.3889fe00.iframe.bundle.js new file mode 100644 index 00000000000000..7662fd3405362d --- /dev/null +++ b/233.3889fe00.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[233],{"./packages/compose/build-module/hooks/use-dialog/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/keycodes/build-module/index.js"),_use_constrained_tabbing__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/compose/build-module/hooks/use-constrained-tabbing/index.js"),_use_focus_on_mount__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/compose/build-module/hooks/use-focus-on-mount/index.js"),_use_focus_return__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/compose/build-module/hooks/use-focus-return/index.js"),_use_focus_outside__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/compose/build-module/hooks/use-focus-outside/index.js"),_use_merge_refs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/compose/build-module/hooks/use-merge-refs/index.js");const __WEBPACK_DEFAULT_EXPORT__=function useDialog(options){const currentOptions=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(),{constrainTabbing=!1!==options.focusOnMount}=options;(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{currentOptions.current=options}),Object.values(options));const constrainedTabbingRef=(0,_use_constrained_tabbing__WEBPACK_IMPORTED_MODULE_1__.A)(),focusOnMountRef=(0,_use_focus_on_mount__WEBPACK_IMPORTED_MODULE_2__.A)(options.focusOnMount),focusReturnRef=(0,_use_focus_return__WEBPACK_IMPORTED_MODULE_3__.A)(),focusOutsideProps=(0,_use_focus_outside__WEBPACK_IMPORTED_MODULE_4__.A)((event=>{currentOptions.current?.__unstableOnClose?currentOptions.current.__unstableOnClose("focus-outside",event):currentOptions.current?.onClose&¤tOptions.current.onClose()})),closeOnEscapeRef=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useCallback)((node=>{node&&node.addEventListener("keydown",(event=>{event.keyCode===_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_5__._f&&!event.defaultPrevented&¤tOptions.current?.onClose&&(event.preventDefault(),currentOptions.current.onClose())}))}),[]);return[(0,_use_merge_refs__WEBPACK_IMPORTED_MODULE_6__.A)([constrainTabbing?constrainedTabbingRef:null,!1!==options.focusOnMount?focusReturnRef:null,!1!==options.focusOnMount?focusOnMountRef:null,closeOnEscapeRef]),{...focusOutsideProps,tabIndex:-1}]}},"./packages/compose/build-module/hooks/use-focus-outside/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>useFocusOutside});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const INPUT_BUTTON_TYPES=["button","submit"];function useFocusOutside(onFocusOutside){const currentOnFocusOutsideRef=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(onFocusOutside);(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{currentOnFocusOutsideRef.current=onFocusOutside}),[onFocusOutside]);const preventBlurCheckRef=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(!1),blurCheckTimeoutIdRef=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(),cancelBlurCheck=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{clearTimeout(blurCheckTimeoutIdRef.current)}),[]);(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>()=>cancelBlurCheck()),[]),(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{onFocusOutside||cancelBlurCheck()}),[onFocusOutside,cancelBlurCheck]);const normalizeButtonFocus=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useCallback)((event=>{const{type,target}=event;["mouseup","touchend"].includes(type)?preventBlurCheckRef.current=!1:function isFocusNormalizedButton(eventTarget){if(!(eventTarget instanceof window.HTMLElement))return!1;switch(eventTarget.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return INPUT_BUTTON_TYPES.includes(eventTarget.type)}return!1}(target)&&(preventBlurCheckRef.current=!0)}),[]),queueBlurCheck=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useCallback)((event=>{if(event.persist(),preventBlurCheckRef.current)return;const ignoreForRelatedTarget=event.target.getAttribute("data-unstable-ignore-focus-outside-for-relatedtarget");ignoreForRelatedTarget&&event.relatedTarget?.closest(ignoreForRelatedTarget)||(blurCheckTimeoutIdRef.current=setTimeout((()=>{document.hasFocus()?"function"==typeof currentOnFocusOutsideRef.current&¤tOnFocusOutsideRef.current(event):event.preventDefault()}),0))}),[]);return{onFocus:cancelBlurCheck,onMouseDown:normalizeButtonFocus,onMouseUp:normalizeButtonFocus,onTouchStart:normalizeButtonFocus,onTouchEnd:normalizeButtonFocus,onBlur:queueBlurCheck}}},"./packages/compose/build-module/hooks/use-observable-value/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>useObservableValue});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function useObservableValue(map,name){const[subscribe,getValue]=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>[listener=>map.subscribe(name,listener),()=>map.get(name)]),[map,name]);return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useSyncExternalStore)(subscribe,getValue,getValue)}},"./packages/compose/build-module/hooks/use-viewport-match/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_use_media_query__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/compose/build-module/hooks/use-media-query/index.js");const BREAKPOINTS={xhuge:1920,huge:1440,wide:1280,xlarge:1080,large:960,medium:782,small:600,mobile:480},CONDITIONS={">=":"min-width","<":"max-width"},OPERATOR_EVALUATORS={">=":(breakpointValue,width)=>width>=breakpointValue,"<":(breakpointValue,width)=>width=")=>{const simulatedWidth=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useContext)(ViewportMatchWidthContext),mediaQuery=!simulatedWidth&&`(${CONDITIONS[operator]}: ${BREAKPOINTS[breakpoint]}px)`,mediaQueryResult=(0,_use_media_query__WEBPACK_IMPORTED_MODULE_1__.A)(mediaQuery||void 0);return simulatedWidth?OPERATOR_EVALUATORS[operator](BREAKPOINTS[breakpoint],simulatedWidth):mediaQueryResult};useViewportMatch.__experimentalWidthProvider=ViewportMatchWidthContext.Provider;const __WEBPACK_DEFAULT_EXPORT__=useViewportMatch},"./packages/compose/build-module/utils/observable-map/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function observableMap(){const map=new Map,listeners=new Map;function callListeners(name){const list=listeners.get(name);if(list)for(const listener of list)listener()}return{get:name=>map.get(name),set(name,value){map.set(name,value),callListeners(name)},delete(name){map.delete(name),callListeners(name)},subscribe(name,listener){let list=listeners.get(name);return list||(list=new Set,listeners.set(name,list)),list.add(listener),()=>{list.delete(listener),0===list.size&&listeners.delete(name)}}}}__webpack_require__.d(__webpack_exports__,{u:()=>observableMap})},"./packages/element/build-module/utils.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{s:()=>isEmptyElement});const isEmptyElement=element=>"number"!=typeof element&&("string"==typeof element?.valueOf()||Array.isArray(element)?!element.length:!element)},"./packages/is-shallow-equal/build-module/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Ay:()=>isShallowEqual});var objects=__webpack_require__("./packages/is-shallow-equal/build-module/objects.js");function isShallowEqual(a,b){if(a&&b){if(a.constructor===Object&&b.constructor===Object)return(0,objects.A)(a,b);if(Array.isArray(a)&&Array.isArray(b))return function isShallowEqualArrays(a,b){if(a===b)return!0;if(a.length!==b.length)return!1;for(let i=0,len=a.length;i{function isShallowEqualObjects(a,b){if(a===b)return!0;const aKeys=Object.keys(a),bKeys=Object.keys(b);if(aKeys.length!==bKeys.length)return!1;let i=0;for(;iisShallowEqualObjects})},"./packages/keycodes/build-module/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{EN:()=>F10,Fm:()=>ENTER,G_:()=>BACKSPACE,JF:()=>rawShortcut,Kp:()=>END,M3:()=>LEFT,NS:()=>RIGHT,Nx:()=>PAGEUP,PX:()=>DOWN,SJ:()=>DELETE,UP:()=>UP,W3:()=>PAGEDOWN,_A:()=>shortcutAriaLabel,_f:()=>ESCAPE,b:()=>displayShortcutList,dz:()=>displayShortcut,kx:()=>isKeyboardEvent,t6:()=>SPACE,wn:()=>TAB,yZ:()=>HOME});var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/i18n/build-module/index.js"),_platform__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/keycodes/build-module/platform.js");const BACKSPACE=8,TAB=9,ENTER=13,ESCAPE=27,SPACE=32,PAGEUP=33,PAGEDOWN=34,END=35,HOME=36,LEFT=37,UP=38,RIGHT=39,DOWN=40,DELETE=46,F10=121,ALT="alt",CTRL="ctrl",COMMAND="meta",SHIFT="shift";function capitaliseFirstCharacter(string){return string.length<2?string.toUpperCase():string.charAt(0).toUpperCase()+string.slice(1)}function mapValues(object,mapFn){return Object.fromEntries(Object.entries(object).map((([key,value])=>[key,mapFn(value)])))}const modifiers={primary:_isApple=>_isApple()?[COMMAND]:[CTRL],primaryShift:_isApple=>_isApple()?[SHIFT,COMMAND]:[CTRL,SHIFT],primaryAlt:_isApple=>_isApple()?[ALT,COMMAND]:[CTRL,ALT],secondary:_isApple=>_isApple()?[SHIFT,ALT,COMMAND]:[CTRL,SHIFT,ALT],access:_isApple=>_isApple()?[CTRL,ALT]:[SHIFT,ALT],ctrl:()=>[CTRL],alt:()=>[ALT],ctrlShift:()=>[CTRL,SHIFT],shift:()=>[SHIFT],shiftAlt:()=>[SHIFT,ALT],undefined:()=>[]},rawShortcut=mapValues(modifiers,(modifier=>(character,_isApple=_platform__WEBPACK_IMPORTED_MODULE_1__.H)=>[...modifier(_isApple),character.toLowerCase()].join("+"))),displayShortcutList=mapValues(modifiers,(modifier=>(character,_isApple=_platform__WEBPACK_IMPORTED_MODULE_1__.H)=>{const isApple=_isApple(),replacementKeyMap={[ALT]:isApple?"⌥":"Alt",[CTRL]:isApple?"⌃":"Ctrl",[COMMAND]:"⌘",[SHIFT]:isApple?"⇧":"Shift"};return[...modifier(_isApple).reduce(((accumulator,key)=>{var _replacementKeyMap$ke;const replacementKey=null!==(_replacementKeyMap$ke=replacementKeyMap[key])&&void 0!==_replacementKeyMap$ke?_replacementKeyMap$ke:key;return isApple?[...accumulator,replacementKey]:[...accumulator,replacementKey,"+"]}),[]),capitaliseFirstCharacter(character)]})),displayShortcut=mapValues(displayShortcutList,(shortcutList=>(character,_isApple=_platform__WEBPACK_IMPORTED_MODULE_1__.H)=>shortcutList(character,_isApple).join(""))),shortcutAriaLabel=mapValues(modifiers,(modifier=>(character,_isApple=_platform__WEBPACK_IMPORTED_MODULE_1__.H)=>{const isApple=_isApple(),replacementKeyMap={[SHIFT]:"Shift",[COMMAND]:isApple?"Command":"Control",[CTRL]:"Control",[ALT]:isApple?"Option":"Alt",",":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Comma"),".":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Period"),"`":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Backtick"),"~":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Tilde")};return[...modifier(_isApple),character].map((key=>{var _replacementKeyMap$ke2;return capitaliseFirstCharacter(null!==(_replacementKeyMap$ke2=replacementKeyMap[key])&&void 0!==_replacementKeyMap$ke2?_replacementKeyMap$ke2:key)})).join(isApple?" ":" + ")}));const isKeyboardEvent=mapValues(modifiers,(getModifiers=>(event,character,_isApple=_platform__WEBPACK_IMPORTED_MODULE_1__.H)=>{const mods=getModifiers(_isApple),eventMods=function getEventModifiers(event){return[ALT,CTRL,COMMAND,SHIFT].filter((key=>event[`${key}Key`]))}(event),replacementWithShiftKeyMap={Comma:",",Backslash:"\\",IntlRo:"\\",IntlYen:"\\"},modsDiff=mods.filter((mod=>!eventMods.includes(mod))),eventModsDiff=eventMods.filter((mod=>!mods.includes(mod)));if(modsDiff.length>0||eventModsDiff.length>0)return!1;let key=event.key.toLowerCase();return character?(event.altKey&&1===character.length&&(key=String.fromCharCode(event.keyCode).toLowerCase()),event.shiftKey&&1===character.length&&replacementWithShiftKeyMap[event.code]&&(key=replacementWithShiftKeyMap[event.code]),"del"===character&&(character="delete"),key===character.toLowerCase()):mods.includes(key)}))},"./packages/keycodes/build-module/platform.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function isAppleOS(_window=null){if(!_window){if("undefined"==typeof window)return!1;_window=window}const{platform}=_window.navigator;return-1!==platform.indexOf("Mac")||["iPad","iPhone"].includes(platform)}__webpack_require__.d(__webpack_exports__,{H:()=>isAppleOS})}}]); \ No newline at end of file diff --git a/2370.5065342e.iframe.bundle.js b/2370.5065342e.iframe.bundle.js new file mode 100644 index 00000000000000..89ff1fc130b170 --- /dev/null +++ b/2370.5065342e.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[2370],{"./packages/components/build-module/dropdown-menu/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var clsx__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),_wordpress_icons__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/icons/build-module/library/menu.js"),_context__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),_context__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/components/build-module/context/context-connect.js"),_button__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/components/build-module/button/index.js"),_dropdown__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/components/build-module/dropdown/index.js"),_navigable_container__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/components/build-module/navigable-container/menu.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");function mergeProps(defaultProps={},props={}){const mergedProps={...defaultProps,...props};return props.className&&defaultProps.className&&(mergedProps.className=(0,clsx__WEBPACK_IMPORTED_MODULE_1__.A)(props.className,defaultProps.className)),mergedProps}function isFunction(maybeFunc){return"function"==typeof maybeFunc}const __WEBPACK_DEFAULT_EXPORT__=(0,_context__WEBPACK_IMPORTED_MODULE_7__.zS)((function UnconnectedDropdownMenu(dropdownMenuProps){const{children,className,controls,icon=_wordpress_icons__WEBPACK_IMPORTED_MODULE_2__.A,label,popoverProps,toggleProps,menuProps,disableOpenOnArrowDown=!1,text,noIcons,open,defaultOpen,onToggle:onToggleProp,variant}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.A)(dropdownMenuProps,"DropdownMenu");if(!controls?.length&&!isFunction(children))return null;let controlSets;controls?.length&&(controlSets=controls,Array.isArray(controlSets[0])||(controlSets=[controls]));const mergedPopoverProps=mergeProps({className:"components-dropdown-menu__popover",variant},popoverProps);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_dropdown__WEBPACK_IMPORTED_MODULE_4__.A,{className,popoverProps:mergedPopoverProps,renderToggle:({isOpen,onToggle})=>{var _toggleProps$showTool;const{as:Toggle=_button__WEBPACK_IMPORTED_MODULE_5__.Ay,...restToggleProps}=null!=toggleProps?toggleProps:{},mergedToggleProps=mergeProps({className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__.A)("components-dropdown-menu__toggle",{"is-opened":isOpen})},restToggleProps);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Toggle,{...mergedToggleProps,icon,onClick:event=>{onToggle(),mergedToggleProps.onClick&&mergedToggleProps.onClick(event)},onKeyDown:event=>{(event=>{disableOpenOnArrowDown||isOpen||"ArrowDown"!==event.code||(event.preventDefault(),onToggle())})(event),mergedToggleProps.onKeyDown&&mergedToggleProps.onKeyDown(event)},"aria-haspopup":"true","aria-expanded":isOpen,label,text,showTooltip:null===(_toggleProps$showTool=toggleProps?.showTooltip)||void 0===_toggleProps$showTool||_toggleProps$showTool,children:mergedToggleProps.children})},renderContent:props=>{const mergedMenuProps=mergeProps({"aria-label":label,className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__.A)("components-dropdown-menu__menu",{"no-icons":noIcons})},menuProps);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_navigable_container__WEBPACK_IMPORTED_MODULE_6__.Ay,{...mergedMenuProps,role:"menu",children:[isFunction(children)?children(props):null,controlSets?.flatMap(((controlSet,indexOfSet)=>controlSet.map(((control,indexOfControl)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_button__WEBPACK_IMPORTED_MODULE_5__.Ay,{__next40pxDefaultSize:!0,onClick:event=>{event.stopPropagation(),props.onClose(),control.onClick&&control.onClick()},className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__.A)("components-dropdown-menu__menu-item",{"has-separator":indexOfSet>0&&0===indexOfControl,"is-active":control.isActive,"is-icon-only":!control.title}),icon:control.icon,label:control.label,"aria-checked":"menuitemcheckbox"===control.role||"menuitemradio"===control.role?control.isActive:void 0,role:"menuitemcheckbox"===control.role||"menuitemradio"===control.role?control.role:"menuitem",accessibleWhenDisabled:!0,disabled:control.isDisabled,children:control.title},[indexOfSet,indexOfControl].join())))))]})},open,defaultOpen,onToggle:onToggleProp})}),"DropdownMenu")},"./packages/components/build-module/dropdown/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var clsx__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),_wordpress_element__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/compose/build-module/hooks/use-merge-refs/index.js"),_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/deprecated/build-module/index.js"),_context__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),_context__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./packages/components/build-module/context/context-connect.js"),_utils_hooks__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/components/build-module/utils/hooks/use-controlled-value.js"),_popover__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/components/build-module/popover/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,_context__WEBPACK_IMPORTED_MODULE_8__.KZ)(((props,forwardedRef)=>{const{renderContent,renderToggle,className,contentClassName,expandOnMobile,headerTitle,focusOnMount,popoverProps,onClose,onToggle,style,open,defaultOpen,position,variant}=(0,_context__WEBPACK_IMPORTED_MODULE_1__.A)(props,"Dropdown");void 0!==position&&(0,_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_2__.A)("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[fallbackPopoverAnchor,setFallbackPopoverAnchor]=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useState)(null),containerRef=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useRef)(),[isOpen,setIsOpen]=(0,_utils_hooks__WEBPACK_IMPORTED_MODULE_4__.j)({defaultValue:defaultOpen,value:open,onChange:onToggle});function close(){onClose?.(),setIsOpen(!1)}const args={isOpen:!!isOpen,onToggle:()=>setIsOpen(!isOpen),onClose:close},popoverPropsHaveAnchor=!!(popoverProps?.anchor||popoverProps?.anchorRef||popoverProps?.getAnchorRect||popoverProps?.anchorRect);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className,ref:(0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__.A)([containerRef,forwardedRef,setFallbackPopoverAnchor]),tabIndex:-1,style,children:[renderToggle(args),isOpen&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_popover__WEBPACK_IMPORTED_MODULE_6__.Ay,{position,onClose:close,onFocusOutside:function closeIfFocusOutside(){if(!containerRef.current)return;const{ownerDocument}=containerRef.current,dialog=ownerDocument?.activeElement?.closest('[role="dialog"]');containerRef.current.contains(ownerDocument.activeElement)||dialog&&!dialog.contains(containerRef.current)||close()},expandOnMobile,headerTitle,focusOnMount,offset:13,anchor:popoverPropsHaveAnchor?void 0:fallbackPopoverAnchor,variant,...popoverProps,className:(0,clsx__WEBPACK_IMPORTED_MODULE_7__.A)("components-dropdown__content",popoverProps?.className,contentClassName),children:renderContent(args)})]})}),"Dropdown")},"./packages/components/build-module/navigable-container/menu.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Ay:()=>menu});var react=__webpack_require__("./node_modules/react/index.js"),build_module=__webpack_require__("./packages/dom/build-module/index.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const noop=()=>{},MENU_ITEM_ROLES=["menuitem","menuitemradio","menuitemcheckbox"];class NavigableContainer extends react.Component{constructor(args){super(args),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container&&this.container.addEventListener("keydown",this.onKeyDown)}componentWillUnmount(){this.container&&this.container.removeEventListener("keydown",this.onKeyDown)}bindContainer(ref){const{forwardedRef}=this.props;this.container=ref,"function"==typeof forwardedRef?forwardedRef(ref):forwardedRef&&"current"in forwardedRef&&(forwardedRef.current=ref)}getFocusableContext(target){if(!this.container)return null;const{onlyBrowserTabstops}=this.props,focusables=(onlyBrowserTabstops?build_module.XC.tabbable:build_module.XC.focusable).find(this.container),index=this.getFocusableIndex(focusables,target);return index>-1&&target?{index,target,focusables}:null}getFocusableIndex(focusables,target){return focusables.indexOf(target)}onKeyDown(event){this.props.onKeyDown&&this.props.onKeyDown(event);const{getFocusableContext}=this,{cycle=!0,eventToOffset,onNavigate=noop,stopNavigationEvents}=this.props,offset=eventToOffset(event);if(void 0!==offset&&stopNavigationEvents){event.stopImmediatePropagation();const targetRole=event.target?.getAttribute("role");!!targetRole&&MENU_ITEM_ROLES.includes(targetRole)&&event.preventDefault()}if(!offset)return;const activeElement=event.target?.ownerDocument?.activeElement;if(!activeElement)return;const context=getFocusableContext(activeElement);if(!context)return;const{index,focusables}=context,nextIndex=cycle?function cycleValue(value,total,offset){const nextValue=value+offset;return nextValue<0?total+nextValue:nextValue>=total?nextValue-total:nextValue}(index,focusables.length,offset):index+offset;nextIndex>=0&&nextIndex(0,jsx_runtime.jsx)(NavigableContainer,{...props,forwardedRef:ref});forwardedNavigableContainer.displayName="NavigableContainer";const container=(0,react.forwardRef)(forwardedNavigableContainer);const menu=(0,react.forwardRef)((function UnforwardedNavigableMenu({role="menu",orientation="vertical",...rest},ref){return(0,jsx_runtime.jsx)(container,{ref,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role,"aria-orientation":"presentation"===role||"vertical"!==orientation&&"horizontal"!==orientation?void 0:orientation,eventToOffset:evt=>{const{code}=evt;let next=["ArrowDown"],previous=["ArrowUp"];return"horizontal"===orientation&&(next=["ArrowRight"],previous=["ArrowLeft"]),"both"===orientation&&(next=["ArrowRight","ArrowDown"],previous=["ArrowLeft","ArrowUp"]),next.includes(code)?1:previous.includes(code)?-1:["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(code)?0:void 0},...rest})}))},"./packages/components/build-module/popover/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Ay:()=>popover});var clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),floating_ui_core=__webpack_require__("./node_modules/@floating-ui/core/dist/floating-ui.core.mjs"),floating_ui_dom=__webpack_require__("./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"),floating_ui_react_dom_esm=__webpack_require__("./packages/components/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js"),motion=__webpack_require__("./node_modules/framer-motion/dist/es/render/dom/motion.mjs"),react=__webpack_require__("./node_modules/react/index.js"),react_dom=__webpack_require__("./node_modules/react-dom/index.js"),use_viewport_match=__webpack_require__("./packages/compose/build-module/hooks/use-viewport-match/index.js"),use_dialog=__webpack_require__("./packages/compose/build-module/hooks/use-dialog/index.js"),use_merge_refs=__webpack_require__("./packages/compose/build-module/hooks/use-merge-refs/index.js"),use_reduced_motion=__webpack_require__("./packages/compose/build-module/hooks/use-reduced-motion/index.js"),library_close=__webpack_require__("./packages/icons/build-module/library/close.js"),build_module=__webpack_require__("./packages/deprecated/build-module/index.js"),svg=__webpack_require__("./packages/primitives/build-module/svg/index.js"),i18n_build_module=__webpack_require__("./packages/i18n/build-module/index.js"),build_module_button=__webpack_require__("./packages/components/build-module/button/index.js");let previousScrollTop=0;function setLocked(locked){const scrollingElement=document.scrollingElement||document.body;locked&&(previousScrollTop=scrollingElement.scrollTop);const methodName=locked?"add":"remove";scrollingElement.classList[methodName]("lockscroll"),document.documentElement.classList[methodName]("lockscroll"),locked||(scrollingElement.scrollTop=previousScrollTop)}let lockCounter=0;const scroll_lock=function ScrollLock(){return(0,react.useEffect)((()=>(0===lockCounter&&setLocked(!0),++lockCounter,()=>{1===lockCounter&&setLocked(!1),--lockCounter})),[]),null};var use_observable_value=__webpack_require__("./packages/compose/build-module/hooks/use-observable-value/index.js"),slot_fill_context=__webpack_require__("./packages/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js");var slot_fill=__webpack_require__("./packages/components/build-module/slot-fill/index.js"),utils=__webpack_require__("./packages/components/build-module/popover/utils.js"),use_context_system=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),context_connect=__webpack_require__("./packages/components/build-module/context/context-connect.js");var style_provider=__webpack_require__("./packages/components/build-module/style-provider/index.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const SLOT_NAME="Popover",ArrowTriangle=()=>(0,jsx_runtime.jsxs)(svg.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation",children:[(0,jsx_runtime.jsx)(svg.wA,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,jsx_runtime.jsx)(svg.wA,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})]}),slotNameContext=(0,react.createContext)(void 0),Popover=(0,context_connect.KZ)(((props,forwardedRef)=>{const{animate=!0,headerTitle,constrainTabbing,onClose,children,className,noArrow=!0,position,placement:placementProp="bottom-start",offset:offsetProp=0,focusOnMount="firstElement",anchor,expandOnMobile,onFocusOutside,__unstableSlotName=SLOT_NAME,flip=!0,resize=!0,shift=!1,inline=!1,variant,style:contentStyle,__unstableForcePosition,anchorRef,anchorRect,getAnchorRect,isAlternate,...contentProps}=(0,use_context_system.A)(props,"Popover");let computedFlipProp=flip,computedResizeProp=resize;void 0!==__unstableForcePosition&&((0,build_module.A)("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),computedFlipProp=!__unstableForcePosition,computedResizeProp=!__unstableForcePosition),void 0!==anchorRef&&(0,build_module.A)("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==anchorRect&&(0,build_module.A)("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==getAnchorRect&&(0,build_module.A)("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const computedVariant=isAlternate?"toolbar":variant;void 0!==isAlternate&&(0,build_module.A)("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const arrowRef=(0,react.useRef)(null),[fallbackReferenceElement,setFallbackReferenceElement]=(0,react.useState)(null),anchorRefFallback=(0,react.useCallback)((node=>{setFallbackReferenceElement(node)}),[]),isMobileViewport=(0,use_viewport_match.A)("medium","<"),isExpanded=expandOnMobile&&isMobileViewport,hasArrow=!isExpanded&&!noArrow,normalizedPlacementFromProps=position?(0,utils.YK)(position):placementProp,middleware=[..."overlay"===placementProp?[{name:"overlay",fn:({rects})=>rects.reference},(0,floating_ui_dom.Ej)({apply({rects,elements}){var _elements$floating;const{firstElementChild}=null!==(_elements$floating=elements.floating)&&void 0!==_elements$floating?_elements$floating:{};firstElementChild instanceof HTMLElement&&Object.assign(firstElementChild.style,{width:`${rects.reference.width}px`,height:`${rects.reference.height}px`})}})]:[],(0,floating_ui_core.cY)(offsetProp),computedFlipProp&&(0,floating_ui_dom.UU)(),computedResizeProp&&(0,floating_ui_dom.Ej)({apply(sizeProps){var _refs$floating$curren;const{firstElementChild}=null!==(_refs$floating$curren=refs.floating.current)&&void 0!==_refs$floating$curren?_refs$floating$curren:{};firstElementChild instanceof HTMLElement&&Object.assign(firstElementChild.style,{maxHeight:`${sizeProps.availableHeight}px`,overflow:"auto"})}}),shift&&(0,floating_ui_dom.BN)({crossAxis:!0,limiter:(0,floating_ui_dom.ER)(),padding:1}),(0,floating_ui_react_dom_esm.UE)({element:arrowRef})],slotName=(0,react.useContext)(slotNameContext)||__unstableSlotName,slot=function useSlot(name){const registry=(0,react.useContext)(slot_fill_context.A);return{...(0,use_observable_value.A)(registry.slots,name)}}(slotName);let onDialogClose;(onClose||onFocusOutside)&&(onDialogClose=(type,event)=>{"focus-outside"===type&&onFocusOutside?onFocusOutside(event):onClose&&onClose()});const[dialogRef,dialogProps]=(0,use_dialog.A)({constrainTabbing,focusOnMount,__unstableOnClose:onDialogClose,onClose:onDialogClose}),{x,y,refs,strategy,update,placement:computedPlacement,middlewareData:{arrow:arrowData}}=(0,floating_ui_react_dom_esm.we)({placement:"overlay"===normalizedPlacementFromProps?void 0:normalizedPlacementFromProps,middleware,whileElementsMounted:(referenceParam,floatingParam,updateParam)=>(0,floating_ui_dom.ll)(referenceParam,floatingParam,updateParam,{layoutShift:!1,animationFrame:!0})}),arrowCallbackRef=(0,react.useCallback)((node=>{arrowRef.current=node,update()}),[update]),anchorRefTop=anchorRef?.top,anchorRefBottom=anchorRef?.bottom,anchorRefStartContainer=anchorRef?.startContainer,anchorRefCurrent=anchorRef?.current;(0,react.useLayoutEffect)((()=>{const resultingReferenceElement=(0,utils._G)({anchor,anchorRef,anchorRect,getAnchorRect,fallbackReferenceElement});refs.setReference(resultingReferenceElement)}),[anchor,anchorRef,anchorRefTop,anchorRefBottom,anchorRefStartContainer,anchorRefCurrent,anchorRect,getAnchorRect,fallbackReferenceElement,refs]);const mergedFloatingRef=(0,use_merge_refs.A)([refs.setFloating,dialogRef,forwardedRef]),style=isExpanded?void 0:{position:strategy,top:0,left:0,x:(0,utils.WS)(x),y:(0,utils.WS)(y)},shouldReduceMotion=(0,use_reduced_motion.A)(),shouldAnimate=animate&&!isExpanded&&!shouldReduceMotion,[animationFinished,setAnimationFinished]=(0,react.useState)(!1),{style:motionInlineStyles,...otherMotionProps}=(0,react.useMemo)((()=>(0,utils.Vn)(computedPlacement)),[computedPlacement]),animationProps=shouldAnimate?{style:{...contentStyle,...motionInlineStyles,...style},onAnimationComplete:()=>setAnimationFinished(!0),...otherMotionProps}:{animate:!1,style:{...contentStyle,...style}},isPositioned=(!shouldAnimate||animationFinished)&&null!==x&&null!==y;let content=(0,jsx_runtime.jsxs)(motion.P.div,{className:(0,clsx.A)(className,{"is-expanded":isExpanded,"is-positioned":isPositioned,[`is-${"toolbar"===computedVariant?"alternate":computedVariant}`]:computedVariant}),...animationProps,...contentProps,ref:mergedFloatingRef,...dialogProps,tabIndex:-1,children:[isExpanded&&(0,jsx_runtime.jsx)(scroll_lock,{}),isExpanded&&(0,jsx_runtime.jsxs)("div",{className:"components-popover__header",children:[(0,jsx_runtime.jsx)("span",{className:"components-popover__header-title",children:headerTitle}),(0,jsx_runtime.jsx)(build_module_button.Ay,{className:"components-popover__close",size:"small",icon:library_close.A,onClick:onClose,label:(0,i18n_build_module.__)("Close")})]}),(0,jsx_runtime.jsx)("div",{className:"components-popover__content",children}),hasArrow&&(0,jsx_runtime.jsx)("div",{ref:arrowCallbackRef,className:["components-popover__arrow",`is-${computedPlacement.split("-")[0]}`].join(" "),style:{left:void 0!==arrowData?.x&&Number.isFinite(arrowData.x)?`${arrowData.x}px`:"",top:void 0!==arrowData?.y&&Number.isFinite(arrowData.y)?`${arrowData.y}px`:""},children:(0,jsx_runtime.jsx)(ArrowTriangle,{})})]});const shouldRenderWithinSlot=slot.ref&&!inline,hasAnchor=anchorRef||anchorRect||anchor;return shouldRenderWithinSlot?content=(0,jsx_runtime.jsx)(slot_fill.SQ,{name:slotName,children:content}):inline||(content=(0,react_dom.createPortal)((0,jsx_runtime.jsx)(style_provider.N,{document,children:content}),(()=>{let container=document.body.querySelector(".components-popover__fallback-container");return container||(container=document.createElement("div"),container.className="components-popover__fallback-container",document.body.append(container)),container})())),hasAnchor?content:(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)("span",{ref:anchorRefFallback}),content]})}),"Popover");Popover.Slot=(0,react.forwardRef)((function PopoverSlot({name=SLOT_NAME},ref){return(0,jsx_runtime.jsx)(slot_fill.DX,{bubblesVirtually:!0,name,className:"popover-slot",ref})})),Popover.__unstableSlotNameProvider=slotNameContext.Provider;const popover=Popover},"./packages/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/compose/build-module/utils/observable-map/index.js");const initialContextValue={slots:(0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__.u)(),fills:(0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__.u)(),registerSlot:()=>{},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},isDefault:!0},__WEBPACK_DEFAULT_EXPORT__=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.createContext)(initialContextValue)},"./packages/components/build-module/slot-fill/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{SQ:()=>slot_fill_Fill,Kq:()=>Provider,DX:()=>slot_fill_Slot,QJ:()=>createSlotFill});var react=__webpack_require__("./node_modules/react/index.js"),observable_map=__webpack_require__("./packages/compose/build-module/utils/observable-map/index.js");const initialValue={slots:(0,observable_map.u)(),fills:(0,observable_map.u)(),registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},updateFill:()=>{}},context=(0,react.createContext)(initialValue);function Fill({name,children}){const registry=(0,react.useContext)(context),instanceRef=(0,react.useRef)({}),childrenRef=(0,react.useRef)(children);return(0,react.useLayoutEffect)((()=>{childrenRef.current=children}),[children]),(0,react.useLayoutEffect)((()=>{const instance=instanceRef.current;return registry.registerFill(name,instance,childrenRef.current),()=>registry.unregisterFill(name,instance)}),[registry,name]),(0,react.useLayoutEffect)((()=>{registry.updateFill(name,instanceRef.current,childrenRef.current)})),null}var use_observable_value=__webpack_require__("./packages/compose/build-module/hooks/use-observable-value/index.js"),utils=__webpack_require__("./packages/element/build-module/utils.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function isFunction(maybeFunc){return"function"==typeof maybeFunc}const slot=function Slot(props){var _useObservableValue;const registry=(0,react.useContext)(context),instanceRef=(0,react.useRef)({}),{name,children,fillProps={}}=props;(0,react.useEffect)((()=>{const instance=instanceRef.current;return registry.registerSlot(name,instance),()=>registry.unregisterSlot(name,instance)}),[registry,name]);let fills=null!==(_useObservableValue=(0,use_observable_value.A)(registry.fills,name))&&void 0!==_useObservableValue?_useObservableValue:[];(0,use_observable_value.A)(registry.slots,name)!==instanceRef.current&&(fills=[]);const renderedFills=fills.map((fill=>function addKeysToChildren(children){return react.Children.map(children,((child,childIndex)=>{if(!child||"string"==typeof child)return child;let childKey=childIndex;return"object"==typeof child&&"key"in child&&child?.key&&(childKey=child.key),(0,react.cloneElement)(child,{key:childKey})}))}(isFunction(fill.children)?fill.children(fillProps):fill.children))).filter((element=>!(0,utils.s)(element)));return(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:isFunction(children)?children(renderedFills):renderedFills})};var react_dom=__webpack_require__("./node_modules/react-dom/index.js"),slot_fill_context=__webpack_require__("./packages/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js"),style_provider=__webpack_require__("./packages/components/build-module/style-provider/index.js");function fill_Fill({name,children}){var _slot$fillProps;const registry=(0,react.useContext)(slot_fill_context.A),slot=(0,use_observable_value.A)(registry.slots,name),instanceRef=(0,react.useRef)({});if((0,react.useEffect)((()=>{const instance=instanceRef.current;return registry.registerFill(name,instance),()=>registry.unregisterFill(name,instance)}),[registry,name]),!slot||!slot.ref.current)return null;const wrappedChildren=(0,jsx_runtime.jsx)(style_provider.A,{document:slot.ref.current.ownerDocument,children:"function"==typeof children?children(null!==(_slot$fillProps=slot.fillProps)&&void 0!==_slot$fillProps?_slot$fillProps:{}):children});return(0,react_dom.createPortal)(wrappedChildren,slot.ref.current)}var use_merge_refs=__webpack_require__("./packages/compose/build-module/hooks/use-merge-refs/index.js"),component=__webpack_require__("./packages/components/build-module/view/component.js");const bubbles_virtually_slot=(0,react.forwardRef)((function slot_Slot(props,forwardedRef){const{name,fillProps={},as,children,...restProps}=props,registry=(0,react.useContext)(slot_fill_context.A),ref=(0,react.useRef)(null),fillPropsRef=(0,react.useRef)(fillProps);return(0,react.useLayoutEffect)((()=>{fillPropsRef.current=fillProps}),[fillProps]),(0,react.useLayoutEffect)((()=>(registry.registerSlot(name,ref,fillPropsRef.current),()=>registry.unregisterSlot(name,ref))),[registry,name]),(0,react.useLayoutEffect)((()=>{registry.updateSlot(name,ref,fillPropsRef.current)})),(0,jsx_runtime.jsx)(component.A,{as,ref:(0,use_merge_refs.A)([forwardedRef,ref]),...restProps})}));var build_module=__webpack_require__("./packages/is-shallow-equal/build-module/index.js");function createSlotRegistry(){const slots=(0,observable_map.u)(),fills=(0,observable_map.u)();return{slots,fills,registerSlot:(name,ref,fillProps)=>{slots.set(name,{ref,fillProps})},updateSlot:(name,ref,fillProps)=>{const slot=slots.get(name);slot&&slot.ref===ref&&((0,build_module.Ay)(slot.fillProps,fillProps)||slots.set(name,{ref,fillProps}))},unregisterSlot:(name,ref)=>{const slot=slots.get(name);slot&&slot.ref===ref&&slots.delete(name)},registerFill:(name,ref)=>{fills.set(name,[...fills.get(name)||[],ref])},unregisterFill:(name,ref)=>{const fillsForName=fills.get(name);fillsForName&&fills.set(name,fillsForName.filter((fillRef=>fillRef!==ref)))}}}function SlotFillProvider({children}){const[registry]=(0,react.useState)(createSlotRegistry);return(0,jsx_runtime.jsx)(slot_fill_context.A.Provider,{value:registry,children})}function provider_createSlotRegistry(){const slots=(0,observable_map.u)(),fills=(0,observable_map.u)();return{slots,fills,registerSlot:function registerSlot(name,instance){slots.set(name,instance)},unregisterSlot:function unregisterSlot(name,instance){slots.get(name)===instance&&slots.delete(name)},registerFill:function registerFill(name,instance,children){fills.set(name,[...fills.get(name)||[],{instance,children}])},unregisterFill:function unregisterFill(name,instance){const fillsForName=fills.get(name);fillsForName&&fills.set(name,fillsForName.filter((fill=>fill.instance!==instance)))},updateFill:function updateFill(name,instance,children){const fillsForName=fills.get(name);if(!fillsForName)return;const fillForInstance=fillsForName.find((f=>f.instance===instance));fillForInstance&&fillForInstance.children!==children&&fills.set(name,fillsForName.map((f=>f.instance===instance?{instance,children}:f)))}}}const provider=function provider_SlotFillProvider({children}){const[contextValue]=(0,react.useState)(provider_createSlotRegistry);return(0,jsx_runtime.jsx)(context.Provider,{value:contextValue,children})};function slot_fill_Fill(props){return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(Fill,{...props}),(0,jsx_runtime.jsx)(fill_Fill,{...props})]})}const slot_fill_Slot=(0,react.forwardRef)((function UnforwardedSlot(props,ref){const{bubblesVirtually,...restProps}=props;return bubblesVirtually?(0,jsx_runtime.jsx)(bubbles_virtually_slot,{...restProps,ref}):(0,jsx_runtime.jsx)(slot,{...restProps})}));function Provider({children,passthrough=!1}){return!(0,react.useContext)(slot_fill_context.A).isDefault&&passthrough?(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children}):(0,jsx_runtime.jsx)(provider,{children:(0,jsx_runtime.jsx)(SlotFillProvider,{children})})}function createSlotFill(key){const baseName="symbol"==typeof key?key.description:key,FillComponent=props=>(0,jsx_runtime.jsx)(slot_fill_Fill,{name:key,...props});FillComponent.displayName=`${baseName}Fill`;const SlotComponent=props=>(0,jsx_runtime.jsx)(slot_fill_Slot,{name:key,...props});return SlotComponent.displayName=`${baseName}Slot`,SlotComponent.__unstableName=key,{name:key,Fill:FillComponent,Slot:SlotComponent}}Provider.displayName="SlotFillProvider"},"./packages/components/build-module/style-provider/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__,N:()=>StyleProvider});var _emotion_react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-element-699e6908.browser.esm.js"),_emotion_cache__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"),uuid__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/node_modules/uuid/dist/esm-browser/v4.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");const uuidCache=new Set,containerCacheMap=new WeakMap,memoizedCreateCacheWithContainer=container=>{if(containerCacheMap.has(container))return containerCacheMap.get(container);let key=uuid__WEBPACK_IMPORTED_MODULE_2__.A().replace(/[0-9]/g,"");for(;uuidCache.has(key);)key=uuid__WEBPACK_IMPORTED_MODULE_2__.A().replace(/[0-9]/g,"");uuidCache.add(key);const cache=(0,_emotion_cache__WEBPACK_IMPORTED_MODULE_0__.A)({container,key});return containerCacheMap.set(container,cache),cache};function StyleProvider(props){const{children,document}=props;if(!document)return null;const cache=memoizedCreateCacheWithContainer(document.head);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_emotion_react__WEBPACK_IMPORTED_MODULE_3__.C,{value:cache,children})}const __WEBPACK_DEFAULT_EXPORT__=StyleProvider},"./packages/icons/build-module/library/menu.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})})}}]); \ No newline at end of file diff --git a/2416.a9a1e9e5.iframe.bundle.js b/2416.a9a1e9e5.iframe.bundle.js new file mode 100644 index 00000000000000..058214030af003 --- /dev/null +++ b/2416.a9a1e9e5.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[2416],{"./packages/components/build-module/toggle-group-control/context.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__,H:()=>useToggleGroupControlContext});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const ToggleGroupControlContext=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createContext)({}),useToggleGroupControlContext=()=>(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useContext)(ToggleGroupControlContext),__WEBPACK_DEFAULT_EXPORT__=ToggleGroupControlContext},"./packages/components/build-module/toggle-group-control/toggle-group-control-option-base/component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>component});var styles_namespaceObject={};__webpack_require__.r(styles_namespaceObject),__webpack_require__.d(styles_namespaceObject,{Rp:()=>ButtonContentView,y0:()=>LabelView,uG:()=>buttonView,eh:()=>labelBlock});var NLEBE274=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/NLEBE274.js"),use_instance_id=__webpack_require__("./packages/compose/build-module/hooks/use-instance-id/index.js"),react=__webpack_require__("./node_modules/react/index.js"),use_context_system=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),context_connect=__webpack_require__("./packages/components/build-module/context/context-connect.js"),context=__webpack_require__("./packages/components/build-module/toggle-group-control/context.js"),emotion_styled_base_browser_esm=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),emotion_react_browser_esm=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),config_values=__webpack_require__("./packages/components/build-module/utils/config-values.js"),colors_values=__webpack_require__("./packages/components/build-module/utils/colors-values.js");const LabelView=(0,emotion_styled_base_browser_esm.A)("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),labelBlock={name:"82a6rk",styles:"flex:1"},buttonView=({isDeselectable,isIcon,isPressed,size})=>(0,emotion_react_browser_esm.AH)("align-items:center;appearance:none;background:transparent;border:none;border-radius:",config_values.A.radiusXSmall,";color:",colors_values.l.theme.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;@media not ( prefers-reduced-motion ){transition:background ",config_values.A.transitionDurationFast," linear,color ",config_values.A.transitionDurationFast," linear,font-weight 60ms linear;}user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&[disabled]{opacity:0.4;cursor:default;}&:active{background:",colors_values.l.ui.background,";}",isDeselectable&&deselectable," ",isIcon&&isIconStyles({size})," ",isPressed&&pressed,";","","",""),pressed=(0,emotion_react_browser_esm.AH)("color:",colors_values.l.theme.foregroundInverted,";&:active{background:transparent;}","","",""),deselectable=(0,emotion_react_browser_esm.AH)("color:",colors_values.l.theme.foreground,";&:focus{box-shadow:inset 0 0 0 1px ",colors_values.l.ui.background,",0 0 0 ",config_values.A.borderWidthFocus," ",colors_values.l.theme.accent,";outline:2px solid transparent;}","","",""),ButtonContentView=(0,emotion_styled_base_browser_esm.A)("div",{target:"et6ln9s0"})("display:flex;font-size:",config_values.A.fontSize,";line-height:1;"),isIconStyles=({size="default"})=>(0,emotion_react_browser_esm.AH)("color:",colors_values.l.theme.foreground,";height:",{default:"30px","__unstable-large":"32px"}[size],";aspect-ratio:1;padding-left:0;padding-right:0;","","","");var use_cx=__webpack_require__("./packages/components/build-module/utils/hooks/use-cx.js"),tooltip=__webpack_require__("./packages/components/build-module/tooltip/index.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const{Rp:component_ButtonContentView,y0:component_LabelView}=styles_namespaceObject,WithToolTip=({showTooltip,text,children})=>showTooltip&&text?(0,jsx_runtime.jsx)(tooltip.Ay,{text,placement:"top",children}):(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children});const ConnectedToggleGroupControlOptionBase=(0,context_connect.KZ)((function ToggleGroupControlOptionBase(props,forwardedRef){const toggleGroupControlContext=(0,context.H)(),id=(0,use_instance_id.A)(ToggleGroupControlOptionBase,toggleGroupControlContext.baseId||"toggle-group-control-option-base"),buttonProps=(0,use_context_system.A)({...props,id},"ToggleGroupControlOptionBase"),{isBlock=!1,isDeselectable=!1,size="default"}=toggleGroupControlContext,{className,isIcon=!1,value,children,showTooltip=!1,disabled,...otherButtonProps}=buttonProps,isPressed=toggleGroupControlContext.value===value,cx=(0,use_cx.l)(),labelViewClasses=(0,react.useMemo)((()=>cx(isBlock&&labelBlock)),[cx,isBlock]),itemClasses=(0,react.useMemo)((()=>cx(buttonView({isDeselectable,isIcon,isPressed,size}),className)),[cx,isDeselectable,isIcon,isPressed,size,className]),commonProps={...otherButtonProps,className:itemClasses,"data-value":value,ref:forwardedRef},labelRef=(0,react.useRef)(null);return(0,react.useLayoutEffect)((()=>{isPressed&&labelRef.current&&toggleGroupControlContext.setSelectedElement(labelRef.current)}),[isPressed,toggleGroupControlContext]),(0,jsx_runtime.jsx)(component_LabelView,{ref:labelRef,className:labelViewClasses,children:(0,jsx_runtime.jsx)(WithToolTip,{showTooltip,text:otherButtonProps["aria-label"],children:isDeselectable?(0,jsx_runtime.jsx)("button",{...commonProps,disabled,"aria-pressed":isPressed,type:"button",onClick:()=>{isDeselectable&&isPressed?toggleGroupControlContext.setValue(void 0):toggleGroupControlContext.setValue(value)},children:(0,jsx_runtime.jsx)(component_ButtonContentView,{children})}):(0,jsx_runtime.jsx)(NLEBE274.s,{disabled,onFocusVisible:()=>{(null===toggleGroupControlContext.value||""===toggleGroupControlContext.value)&&!toggleGroupControlContext.activeItemIsNotFirstItem?.()||toggleGroupControlContext.setValue(value)},render:(0,jsx_runtime.jsx)("button",{type:"button",...commonProps}),value,children:(0,jsx_runtime.jsx)(component_ButtonContentView,{children})})})})}),"ToggleGroupControlOptionBase"),component=ConnectedToggleGroupControlOptionBase},"./packages/components/build-module/toggle-group-control/toggle-group-control/component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>toggle_group_control_component});var react=__webpack_require__("./node_modules/react/index.js"),use_context_system=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),context_connect=__webpack_require__("./packages/components/build-module/context/context-connect.js"),use_cx=__webpack_require__("./packages/components/build-module/utils/hooks/use-cx.js"),base_control=__webpack_require__("./packages/components/build-module/base-control/index.js"),emotion_styled_base_browser_esm=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),emotion_react_browser_esm=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),colors_values=__webpack_require__("./packages/components/build-module/utils/colors-values.js"),config_values=__webpack_require__("./packages/components/build-module/utils/config-values.js");const enclosingBorders=isBlock=>{const enclosingBorder=(0,emotion_react_browser_esm.AH)("border-color:",colors_values.l.ui.border,";","","","");return(0,emotion_react_browser_esm.AH)(isBlock&&enclosingBorder," &:hover{border-color:",colors_values.l.ui.borderHover,";}&:focus-within{border-color:",colors_values.l.ui.borderFocus,";box-shadow:",config_values.A.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","","","")};var _ref={name:"1aqh2c7",styles:"min-height:40px;padding:3px"},_ref2={name:"1ndywgm",styles:"min-height:36px;padding:2px"};const toggleGroupControlSize=size=>({default:_ref2,"__unstable-large":_ref}[size]),block={name:"7whenc",styles:"display:flex;width:100%"},VisualLabelWrapper=(0,emotion_styled_base_browser_esm.A)("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});var _4BXJGRNH=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/4BXJGRNH.js"),YV4JVR4I=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js"),radio_group=__webpack_require__("./node_modules/@ariakit/react-core/esm/radio/radio-group.js"),use_instance_id=__webpack_require__("./packages/compose/build-module/hooks/use-instance-id/index.js"),build_module=__webpack_require__("./packages/i18n/build-module/index.js"),component=__webpack_require__("./packages/components/build-module/view/component.js"),context=__webpack_require__("./packages/components/build-module/toggle-group-control/context.js"),use_previous=__webpack_require__("./packages/compose/build-module/hooks/use-previous/index.js");function useComputeControlledOrUncontrolledValue(valueProp){const isInitialRenderRef=(0,react.useRef)(!0),prevValueProp=(0,use_previous.A)(valueProp),prevIsControlledRef=(0,react.useRef)(!1);(0,react.useEffect)((()=>{isInitialRenderRef.current&&(isInitialRenderRef.current=!1)}),[]);const isControlled=prevIsControlledRef.current||!isInitialRenderRef.current&&prevValueProp!==valueProp;return(0,react.useEffect)((()=>{prevIsControlledRef.current=isControlled}),[isControlled]),isControlled?{value:null!=valueProp?valueProp:"",defaultValue:void 0}:{value:void 0,defaultValue:valueProp}}var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const ToggleGroupControlAsRadioGroup=(0,react.forwardRef)((function UnforwardedToggleGroupControlAsRadioGroup({children,isAdaptiveWidth,label,onChange:onChangeProp,size,value:valueProp,id:idProp,setSelectedElement,...otherProps},forwardedRef){const generatedId=(0,use_instance_id.A)(ToggleGroupControlAsRadioGroup,"toggle-group-control-as-radio-group"),baseId=idProp||generatedId,{value,defaultValue}=useComputeControlledOrUncontrolledValue(valueProp),wrappedOnChangeProp=onChangeProp?v=>{onChangeProp(null!=v?v:void 0)}:void 0,radio=_4BXJGRNH.s({defaultValue,value,setValue:wrappedOnChangeProp,rtl:(0,build_module.V8)()}),selectedValue=YV4JVR4I.O$(radio,"value"),setValue=radio.setValue;(0,react.useEffect)((()=>{""===selectedValue&&radio.setActiveId(void 0)}),[radio,selectedValue]);const groupContextValue=(0,react.useMemo)((()=>({activeItemIsNotFirstItem:()=>radio.getState().activeId!==radio.first(),baseId,isBlock:!isAdaptiveWidth,size,value:selectedValue,setValue,setSelectedElement})),[baseId,isAdaptiveWidth,radio,selectedValue,setSelectedElement,setValue,size]);return(0,jsx_runtime.jsx)(context.A.Provider,{value:groupContextValue,children:(0,jsx_runtime.jsx)(radio_group.z,{store:radio,"aria-label":label,render:(0,jsx_runtime.jsx)(component.A,{}),...otherProps,id:baseId,ref:forwardedRef,children})})}));var use_controlled_value=__webpack_require__("./packages/components/build-module/utils/hooks/use-controlled-value.js");const ToggleGroupControlAsButtonGroup=(0,react.forwardRef)((function UnforwardedToggleGroupControlAsButtonGroup({children,isAdaptiveWidth,label,onChange,size,value:valueProp,id:idProp,setSelectedElement,...otherProps},forwardedRef){const generatedId=(0,use_instance_id.A)(ToggleGroupControlAsButtonGroup,"toggle-group-control-as-button-group"),baseId=idProp||generatedId,{value,defaultValue}=useComputeControlledOrUncontrolledValue(valueProp),[selectedValue,setSelectedValue]=(0,use_controlled_value.j)({defaultValue,value,onChange}),groupContextValue=(0,react.useMemo)((()=>({baseId,value:selectedValue,setValue:setSelectedValue,isBlock:!isAdaptiveWidth,isDeselectable:!0,size,setSelectedElement})),[baseId,selectedValue,setSelectedValue,isAdaptiveWidth,size,setSelectedElement]);return(0,jsx_runtime.jsx)(context.A.Provider,{value:groupContextValue,children:(0,jsx_runtime.jsx)(component.A,{"aria-label":label,...otherProps,ref:forwardedRef,role:"group",children})})}));var element_rect=__webpack_require__("./packages/components/build-module/utils/element-rect.js"),use_merge_refs=__webpack_require__("./packages/compose/build-module/hooks/use-merge-refs/index.js"),use_animated_offset_rect=__webpack_require__("./packages/components/build-module/utils/hooks/use-animated-offset-rect.js"),deprecated_36px_size=__webpack_require__("./packages/components/build-module/utils/deprecated-36px-size.js");const toggle_group_control_component=(0,context_connect.KZ)((function UnconnectedToggleGroupControl(props,forwardedRef){const{__nextHasNoMarginBottom=!1,__next40pxDefaultSize=!1,__shouldNotWarnDeprecated36pxSize,className,isAdaptiveWidth=!1,isBlock=!1,isDeselectable=!1,label,hideLabelFromVision=!1,help,onChange,size="default",value,children,...otherProps}=(0,use_context_system.A)(props,"ToggleGroupControl"),normalizedSize=__next40pxDefaultSize&&"default"===size?"__unstable-large":size,[selectedElement,setSelectedElement]=(0,react.useState)(),[controlElement,setControlElement]=(0,react.useState)(),refs=(0,use_merge_refs.A)([setControlElement,forwardedRef]),selectedRect=(0,element_rect.ec)(value||0===value?selectedElement:void 0);(0,use_animated_offset_rect.M)(controlElement,selectedRect,{prefix:"selected",dataAttribute:"indicator-animated",transitionEndFilter:event=>"::before"===event.pseudoElement,roundRect:!0});const cx=(0,use_cx.l)(),classes=(0,react.useMemo)((()=>cx((({isBlock,isDeselectable,size})=>(0,emotion_react_browser_esm.AH)("background:",colors_values.l.ui.background,";border:1px solid transparent;border-radius:",config_values.A.radiusSmall,";display:inline-flex;min-width:0;position:relative;",toggleGroupControlSize(size)," ",!isDeselectable&&enclosingBorders(isBlock),"@media not ( prefers-reduced-motion ){&[data-indicator-animated]::before{transition-property:transform,border-radius;transition-duration:0.2s;transition-timing-function:ease-out;}}&::before{content:'';position:absolute;pointer-events:none;background:",colors_values.l.theme.foreground,";outline:2px solid transparent;outline-offset:-3px;--antialiasing-factor:100;border-radius:calc(\n\t\t\t\t",config_values.A.radiusXSmall," /\n\t\t\t\t\t(\n\t\t\t\t\t\tvar( --selected-width, 0 ) /\n\t\t\t\t\t\t\tvar( --antialiasing-factor )\n\t\t\t\t\t)\n\t\t\t)/",config_values.A.radiusXSmall,";left:-1px;width:calc( var( --antialiasing-factor ) * 1px );height:calc( var( --selected-height, 0 ) * 1px );transform-origin:left top;transform:translateX( calc( var( --selected-left, 0 ) * 1px ) ) scaleX(\n\t\t\t\tcalc(\n\t\t\t\t\tvar( --selected-width, 0 ) / var( --antialiasing-factor )\n\t\t\t\t)\n\t\t\t);}","","",""))({isBlock,isDeselectable,size:normalizedSize}),isBlock&&block,className)),[className,cx,isBlock,isDeselectable,normalizedSize]),MainControl=isDeselectable?ToggleGroupControlAsButtonGroup:ToggleGroupControlAsRadioGroup;return(0,deprecated_36px_size.M)({componentName:"ToggleGroupControl",size,__next40pxDefaultSize,__shouldNotWarnDeprecated36pxSize}),(0,jsx_runtime.jsxs)(base_control.Ay,{help,__nextHasNoMarginBottom,__associatedWPComponentName:"ToggleGroupControl",children:[!hideLabelFromVision&&(0,jsx_runtime.jsx)(VisualLabelWrapper,{children:(0,jsx_runtime.jsx)(base_control.Ay.VisualLabel,{children:label})}),(0,jsx_runtime.jsx)(MainControl,{...otherProps,setSelectedElement,className:classes,isAdaptiveWidth,label,onChange,ref:refs,size:normalizedSize,value,children})]})}),"ToggleGroupControl")},"./packages/components/build-module/utils/element-rect.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{ec:()=>useTrackElementOffsetRect});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/compose/build-module/hooks/use-event/index.js"),_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/compose/build-module/hooks/use-resize-observer/index.js");const NULL_ELEMENT_OFFSET_RECT={element:void 0,top:0,right:0,bottom:0,left:0,width:0,height:0};const POLL_RATE=100;function useTrackElementOffsetRect(targetElement,deps=[]){const[indicatorPosition,setIndicatorPosition]=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(NULL_ELEMENT_OFFSET_RECT),intervalRef=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(),measure=(0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__.A)((()=>{if(targetElement&&targetElement.isConnected){const elementOffsetRect=function getElementOffsetRect(element){var _offsetParent$getBoun,_offsetParent$scrollL,_offsetParent$scrollT;const rect=element.getBoundingClientRect();if(0===rect.width||0===rect.height)return;const offsetParent=element.offsetParent,offsetParentRect=null!==(_offsetParent$getBoun=offsetParent?.getBoundingClientRect())&&void 0!==_offsetParent$getBoun?_offsetParent$getBoun:NULL_ELEMENT_OFFSET_RECT,offsetParentScrollX=null!==(_offsetParent$scrollL=offsetParent?.scrollLeft)&&void 0!==_offsetParent$scrollL?_offsetParent$scrollL:0,offsetParentScrollY=null!==(_offsetParent$scrollT=offsetParent?.scrollTop)&&void 0!==_offsetParent$scrollT?_offsetParent$scrollT:0,computedWidth=parseFloat(getComputedStyle(element).width),computedHeight=parseFloat(getComputedStyle(element).height),scaleX=computedWidth/rect.width,scaleY=computedHeight/rect.height;return{element,top:(rect.top-offsetParentRect?.top)*scaleY+offsetParentScrollY,right:(offsetParentRect?.right-rect.right)*scaleX-offsetParentScrollX,bottom:(offsetParentRect?.bottom-rect.bottom)*scaleY-offsetParentScrollY,left:(rect.left-offsetParentRect?.left)*scaleX+offsetParentScrollX,width:computedWidth,height:computedHeight}}(targetElement);if(elementOffsetRect)return setIndicatorPosition(elementOffsetRect),clearInterval(intervalRef.current),!0}else clearInterval(intervalRef.current);return!1})),setElement=(0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__.A)((()=>{measure()||requestAnimationFrame((()=>{measure()||(intervalRef.current=setInterval(measure,POLL_RATE))}))}));return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)((()=>{setElement(targetElement),targetElement||setIndicatorPosition(NULL_ELEMENT_OFFSET_RECT)}),[setElement,targetElement]),(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)((()=>{measure()}),deps),indicatorPosition}},"./packages/components/build-module/utils/hooks/use-animated-offset-rect.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{M:()=>useAnimatedOffsetRect});var use_event=__webpack_require__("./packages/compose/build-module/hooks/use-event/index.js"),react=__webpack_require__("./node_modules/react/index.js");function useAnimatedOffsetRect(container,rect,{prefix="subelement",dataAttribute=`${prefix}-animated`,transitionEndFilter=()=>!0,roundRect=!1}={}){const setProperties=(0,use_event.A)((()=>{Object.keys(rect).forEach((property=>"element"!==property&&container?.style.setProperty(`--${prefix}-${property}`,String(roundRect?Math.floor(rect[property]):rect[property]))))}));(0,react.useLayoutEffect)((()=>{setProperties()}),[rect,setProperties]),function useOnValueUpdate(value,onUpdate){const previousValueRef=(0,react.useRef)(value),updateCallbackEvent=(0,use_event.A)(onUpdate);(0,react.useLayoutEffect)((()=>{previousValueRef.current!==value&&(updateCallbackEvent({previousValue:previousValueRef.current}),previousValueRef.current=value)}),[updateCallbackEvent,value])}(rect.element,(({previousValue})=>{rect.element&&previousValue&&container?.setAttribute(`data-${dataAttribute}`,"")})),(0,react.useLayoutEffect)((()=>{function onTransitionEnd(event){transitionEndFilter(event)&&container?.removeAttribute(`data-${dataAttribute}`)}return container?.addEventListener("transitionend",onTransitionEnd),()=>container?.removeEventListener("transitionend",onTransitionEnd)}),[dataAttribute,container,transitionEndFilter])}},"./packages/components/build-module/utils/hooks/use-controlled-value.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{j:()=>useControlledValue});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function useControlledValue({defaultValue,onChange,value:valueProp}){const hasValue=void 0!==valueProp,initialValue=hasValue?valueProp:defaultValue,[state,setState]=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(initialValue);let setValue;return setValue=hasValue&&"function"==typeof onChange?onChange:hasValue||"function"!=typeof onChange?setState:nextValue=>{onChange(nextValue),setState(nextValue)},[hasValue?valueProp:state,setValue]}},"./packages/compose/build-module/hooks/use-event/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>useEvent});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function useEvent(callback){const ref=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)((()=>{throw new Error("Callbacks created with `useEvent` cannot be called during rendering.")}));return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect)((()=>{ref.current=callback})),(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useCallback)(((...args)=>ref.current?.(...args)),[])}},"./packages/compose/build-module/hooks/use-previous/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>usePrevious});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function usePrevious(value){const ref=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)();return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{ref.current=value}),[value]),ref.current}},"./packages/compose/build-module/hooks/use-resize-observer/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>use_resize_observer_useResizeObserver});var react=__webpack_require__("./node_modules/react/index.js"),use_event=__webpack_require__("./packages/compose/build-module/hooks/use-event/index.js");function useResizeObserver(callback,resizeObserverOptions={}){const callbackEvent=(0,use_event.A)(callback),observedElementRef=(0,react.useRef)(),resizeObserverRef=(0,react.useRef)();return(0,use_event.A)((element=>{var _resizeObserverRef$cu;if(element===observedElementRef.current)return;null!==(_resizeObserverRef$cu=resizeObserverRef.current)&&void 0!==_resizeObserverRef$cu||(resizeObserverRef.current=new ResizeObserver(callbackEvent));const{current:resizeObserver}=resizeObserverRef;observedElementRef.current&&resizeObserver.unobserve(observedElementRef.current),observedElementRef.current=element,element&&resizeObserver.observe(element,resizeObserverOptions)}))}var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const extractSize=entry=>{let entrySize;if(entry.contentBoxSize)if(entry.contentBoxSize[0]){const contentBoxSize=entry.contentBoxSize[0];entrySize=[contentBoxSize.inlineSize,contentBoxSize.blockSize]}else{const contentBoxSize=entry.contentBoxSize;entrySize=[contentBoxSize.inlineSize,contentBoxSize.blockSize]}else entrySize=[entry.contentRect.width,entry.contentRect.height];const[width,height]=entrySize.map((d=>Math.round(d)));return{width,height}},RESIZE_ELEMENT_STYLES={position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",opacity:0,overflow:"hidden",zIndex:-1};function ResizeElement({onResize}){const resizeElementRef=useResizeObserver((entries=>{const newSize=extractSize(entries.at(-1));onResize(newSize)}));return(0,jsx_runtime.jsx)("div",{ref:resizeElementRef,style:RESIZE_ELEMENT_STYLES,"aria-hidden":"true"})}const NULL_SIZE={width:null,height:null};function use_resize_observer_useResizeObserver(callback,options={}){return callback?useResizeObserver(callback,options):function useLegacyResizeObserver(){const[size,setSize]=(0,react.useState)(NULL_SIZE),previousSizeRef=(0,react.useRef)(NULL_SIZE),handleResize=(0,react.useCallback)((newSize=>{(function sizeEquals(a,b){return a.width===b.width&&a.height===b.height})(previousSizeRef.current,newSize)||(previousSizeRef.current=newSize,setSize(newSize))}),[]);return[(0,jsx_runtime.jsx)(ResizeElement,{onResize:handleResize}),size]}()}}}]); \ No newline at end of file diff --git a/2432.bd199f94.iframe.bundle.js b/2432.bd199f94.iframe.bundle.js new file mode 100644 index 00000000000000..499fc3c7921dbc --- /dev/null +++ b/2432.bd199f94.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[2432],{"./packages/components/src/popover/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{AM:()=>Popover,Ay:()=>popover});var clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),floating_ui_core=__webpack_require__("./node_modules/@floating-ui/core/dist/floating-ui.core.mjs"),floating_ui_dom=__webpack_require__("./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"),floating_ui_react_dom_esm=__webpack_require__("./packages/components/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js"),motion=__webpack_require__("./node_modules/framer-motion/dist/es/render/dom/motion.mjs"),react=__webpack_require__("./node_modules/react/index.js"),react_dom=__webpack_require__("./node_modules/react-dom/index.js"),use_viewport_match=__webpack_require__("./packages/compose/build-module/hooks/use-viewport-match/index.js"),use_dialog=__webpack_require__("./packages/compose/build-module/hooks/use-dialog/index.js"),use_merge_refs=__webpack_require__("./packages/compose/build-module/hooks/use-merge-refs/index.js"),use_reduced_motion=__webpack_require__("./packages/compose/build-module/hooks/use-reduced-motion/index.js"),library_close=__webpack_require__("./packages/icons/build-module/library/close.js"),build_module=__webpack_require__("./packages/deprecated/build-module/index.js"),svg=__webpack_require__("./packages/primitives/build-module/svg/index.js"),i18n_build_module=__webpack_require__("./packages/i18n/build-module/index.js"),src_button=__webpack_require__("./packages/components/src/button/index.tsx"),scroll_lock=__webpack_require__("./packages/components/src/scroll-lock/index.tsx"),use_observable_value=__webpack_require__("./packages/compose/build-module/hooks/use-observable-value/index.js"),slot_fill_context=__webpack_require__("./packages/components/src/slot-fill/bubbles-virtually/slot-fill-context.ts");var slot_fill=__webpack_require__("./packages/components/src/slot-fill/index.tsx"),utils=__webpack_require__("./packages/components/src/popover/utils.ts"),use_context_system=__webpack_require__("./packages/components/src/context/use-context-system.js"),context_connect=__webpack_require__("./packages/components/src/context/context-connect.ts");var style_provider=__webpack_require__("./packages/components/src/style-provider/index.tsx"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const SLOT_NAME="Popover",ArrowTriangle=()=>(0,jsx_runtime.jsxs)(svg.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation",children:[(0,jsx_runtime.jsx)(svg.wA,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,jsx_runtime.jsx)(svg.wA,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})]}),slotNameContext=(0,react.createContext)(void 0),Popover=(0,context_connect.KZ)(((props,forwardedRef)=>{const{animate=!0,headerTitle,constrainTabbing,onClose,children,className,noArrow=!0,position,placement:placementProp="bottom-start",offset:offsetProp=0,focusOnMount="firstElement",anchor,expandOnMobile,onFocusOutside,__unstableSlotName=SLOT_NAME,flip=!0,resize=!0,shift=!1,inline=!1,variant,style:contentStyle,__unstableForcePosition,anchorRef,anchorRect,getAnchorRect,isAlternate,...contentProps}=(0,use_context_system.A)(props,"Popover");let computedFlipProp=flip,computedResizeProp=resize;void 0!==__unstableForcePosition&&((0,build_module.A)("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),computedFlipProp=!__unstableForcePosition,computedResizeProp=!__unstableForcePosition),void 0!==anchorRef&&(0,build_module.A)("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==anchorRect&&(0,build_module.A)("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==getAnchorRect&&(0,build_module.A)("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const computedVariant=isAlternate?"toolbar":variant;void 0!==isAlternate&&(0,build_module.A)("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const arrowRef=(0,react.useRef)(null),[fallbackReferenceElement,setFallbackReferenceElement]=(0,react.useState)(null),anchorRefFallback=(0,react.useCallback)((node=>{setFallbackReferenceElement(node)}),[]),isMobileViewport=(0,use_viewport_match.A)("medium","<"),isExpanded=expandOnMobile&&isMobileViewport,hasArrow=!isExpanded&&!noArrow,normalizedPlacementFromProps=position?(0,utils.YK)(position):placementProp,middleware=[..."overlay"===placementProp?[{name:"overlay",fn:({rects})=>rects.reference},(0,floating_ui_dom.Ej)({apply({rects,elements}){var _elements$floating;const{firstElementChild}=null!==(_elements$floating=elements.floating)&&void 0!==_elements$floating?_elements$floating:{};firstElementChild instanceof HTMLElement&&Object.assign(firstElementChild.style,{width:`${rects.reference.width}px`,height:`${rects.reference.height}px`})}})]:[],(0,floating_ui_core.cY)(offsetProp),computedFlipProp&&(0,floating_ui_dom.UU)(),computedResizeProp&&(0,floating_ui_dom.Ej)({apply(sizeProps){var _refs$floating$curren;const{firstElementChild}=null!==(_refs$floating$curren=refs.floating.current)&&void 0!==_refs$floating$curren?_refs$floating$curren:{};firstElementChild instanceof HTMLElement&&Object.assign(firstElementChild.style,{maxHeight:`${sizeProps.availableHeight}px`,overflow:"auto"})}}),shift&&(0,floating_ui_dom.BN)({crossAxis:!0,limiter:(0,floating_ui_dom.ER)(),padding:1}),(0,floating_ui_react_dom_esm.UE)({element:arrowRef})],slotName=(0,react.useContext)(slotNameContext)||__unstableSlotName,slot=function useSlot(name){const registry=(0,react.useContext)(slot_fill_context.A);return{...(0,use_observable_value.A)(registry.slots,name)}}(slotName);let onDialogClose;(onClose||onFocusOutside)&&(onDialogClose=(type,event)=>{"focus-outside"===type&&onFocusOutside?onFocusOutside(event):onClose&&onClose()});const[dialogRef,dialogProps]=(0,use_dialog.A)({constrainTabbing,focusOnMount,__unstableOnClose:onDialogClose,onClose:onDialogClose}),{x,y,refs,strategy,update,placement:computedPlacement,middlewareData:{arrow:arrowData}}=(0,floating_ui_react_dom_esm.we)({placement:"overlay"===normalizedPlacementFromProps?void 0:normalizedPlacementFromProps,middleware,whileElementsMounted:(referenceParam,floatingParam,updateParam)=>(0,floating_ui_dom.ll)(referenceParam,floatingParam,updateParam,{layoutShift:!1,animationFrame:!0})}),arrowCallbackRef=(0,react.useCallback)((node=>{arrowRef.current=node,update()}),[update]),anchorRefTop=anchorRef?.top,anchorRefBottom=anchorRef?.bottom,anchorRefStartContainer=anchorRef?.startContainer,anchorRefCurrent=anchorRef?.current;(0,react.useLayoutEffect)((()=>{const resultingReferenceElement=(0,utils._G)({anchor,anchorRef,anchorRect,getAnchorRect,fallbackReferenceElement});refs.setReference(resultingReferenceElement)}),[anchor,anchorRef,anchorRefTop,anchorRefBottom,anchorRefStartContainer,anchorRefCurrent,anchorRect,getAnchorRect,fallbackReferenceElement,refs]);const mergedFloatingRef=(0,use_merge_refs.A)([refs.setFloating,dialogRef,forwardedRef]),style=isExpanded?void 0:{position:strategy,top:0,left:0,x:(0,utils.WS)(x),y:(0,utils.WS)(y)},shouldReduceMotion=(0,use_reduced_motion.A)(),shouldAnimate=animate&&!isExpanded&&!shouldReduceMotion,[animationFinished,setAnimationFinished]=(0,react.useState)(!1),{style:motionInlineStyles,...otherMotionProps}=(0,react.useMemo)((()=>(0,utils.Vn)(computedPlacement)),[computedPlacement]),animationProps=shouldAnimate?{style:{...contentStyle,...motionInlineStyles,...style},onAnimationComplete:()=>setAnimationFinished(!0),...otherMotionProps}:{animate:!1,style:{...contentStyle,...style}},isPositioned=(!shouldAnimate||animationFinished)&&null!==x&&null!==y;let content=(0,jsx_runtime.jsxs)(motion.P.div,{className:(0,clsx.A)(className,{"is-expanded":isExpanded,"is-positioned":isPositioned,[`is-${"toolbar"===computedVariant?"alternate":computedVariant}`]:computedVariant}),...animationProps,...contentProps,ref:mergedFloatingRef,...dialogProps,tabIndex:-1,children:[isExpanded&&(0,jsx_runtime.jsx)(scroll_lock.A,{}),isExpanded&&(0,jsx_runtime.jsxs)("div",{className:"components-popover__header",children:[(0,jsx_runtime.jsx)("span",{className:"components-popover__header-title",children:headerTitle}),(0,jsx_runtime.jsx)(src_button.Ay,{className:"components-popover__close",size:"small",icon:library_close.A,onClick:onClose,label:(0,i18n_build_module.__)("Close")})]}),(0,jsx_runtime.jsx)("div",{className:"components-popover__content",children}),hasArrow&&(0,jsx_runtime.jsx)("div",{ref:arrowCallbackRef,className:["components-popover__arrow",`is-${computedPlacement.split("-")[0]}`].join(" "),style:{left:void 0!==arrowData?.x&&Number.isFinite(arrowData.x)?`${arrowData.x}px`:"",top:void 0!==arrowData?.y&&Number.isFinite(arrowData.y)?`${arrowData.y}px`:""},children:(0,jsx_runtime.jsx)(ArrowTriangle,{})})]});const shouldRenderWithinSlot=slot.ref&&!inline,hasAnchor=anchorRef||anchorRect||anchor;return shouldRenderWithinSlot?content=(0,jsx_runtime.jsx)(slot_fill.SQ,{name:slotName,children:content}):inline||(content=(0,react_dom.createPortal)((0,jsx_runtime.jsx)(style_provider.N,{document,children:content}),(()=>{let container=document.body.querySelector(".components-popover__fallback-container");return container||(container=document.createElement("div"),container.className="components-popover__fallback-container",document.body.append(container)),container})())),hasAnchor?content:(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)("span",{ref:anchorRefFallback}),content]})}),"Popover");Popover.Slot=(0,react.forwardRef)((function PopoverSlot({name=SLOT_NAME},ref){return(0,jsx_runtime.jsx)(slot_fill.DX,{bubblesVirtually:!0,name,className:"popover-slot",ref})})),Popover.__unstableSlotNameProvider=slotNameContext.Provider;const popover=Popover;try{SLOT_NAME.displayName="SLOT_NAME",SLOT_NAME.__docgenInfo={description:"Name of slot in which popover should fill.",displayName:"SLOT_NAME",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/popover/index.tsx#SLOT_NAME"]={docgenInfo:SLOT_NAME.__docgenInfo,name:"SLOT_NAME",path:"packages/components/src/popover/index.tsx#SLOT_NAME"})}catch(__react_docgen_typescript_loader_error){}try{Popover.displayName="Popover",Popover.__docgenInfo={description:"`Popover` renders its content in a floating modal. If no explicit anchor is passed via props, it anchors to its parent element by default.\n\n```jsx\nimport { Button, Popover } from '@wordpress/components';\nimport { useState } from '@wordpress/element';\n\nconst MyPopover = () => {\n\tconst [ isVisible, setIsVisible ] = useState( false );\n\tconst toggleVisible = () => {\n\t\tsetIsVisible( ( state ) => ! state );\n\t};\n\n\treturn (\n\t\t\n\t);\n};\n```",displayName:"Popover",props:{animate:{defaultValue:{value:"true"},description:"Whether the popover should animate when opening.",name:"animate",required:!1,type:{name:"boolean"}},children:{defaultValue:null,description:"The `children` elements rendered as the popover's content.",name:"children",required:!0,type:{name:"ReactNode"}},inline:{defaultValue:{value:"false"},description:"Whether to render the popover inline or within the slot.",name:"inline",required:!1,type:{name:"boolean"}},offset:{defaultValue:null,description:"The distance (in px) between the anchor and the popover.",name:"offset",required:!1,type:{name:"number"}},onClose:{defaultValue:null,description:"A callback invoked when the popover should be closed.",name:"onClose",required:!1,type:{name:"() => void"}},anchor:{defaultValue:null,description:"The element that should be used by the popover as its anchor. It can either\nbe an `Element` or, alternatively, a `VirtualElement` — ie. an object with\nthe `getBoundingClientRect()` and the `ownerDocument` properties defined.\n\n**The anchor element should be stored in local state** rather than a\nplain React ref to ensure reactive updating when it changes.",name:"anchor",required:!1,type:{name:"Element | VirtualElement"}},variant:{defaultValue:{value:"undefined"},description:"Specifies the popover's style.\n\nLeave undefined for the default style. Other values are:\n- 'unstyled': The popover is essentially without any visible style, it\n has no background, border, outline or drop shadow, but\n the popover contents are still displayed.\n- 'toolbar': A style that has no elevation, but a high contrast with\n other elements. This is matches the style of the\n `Toolbar` component.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"toolbar"'},{value:'"unstyled"'}]}},placement:{defaultValue:{value:"'bottom-start'"},description:"Used to specify the popover's position with respect to its anchor.",name:"placement",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"left"'},{value:'"right"'},{value:'"bottom"'},{value:'"top-end"'},{value:'"top-start"'},{value:'"left-end"'},{value:'"left-start"'},{value:'"right-end"'},{value:'"right-start"'},{value:'"bottom-end"'},{value:'"bottom-start"'},{value:'"overlay"'}]}},position:{defaultValue:null,description:"Legacy way to specify the popover's position with respect to its anchor.\n_Note: this prop is deprecated. Use the `placement` prop instead._",name:"position",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"middle"'},{value:'"bottom"'},{value:'"top center"'},{value:'"top left"'},{value:'"top right"'},{value:'"middle center"'},{value:'"middle left"'},{value:'"middle right"'},{value:'"bottom center"'},{value:'"bottom left"'},{value:'"bottom right"'},{value:'"top center top"'},{value:'"top center left"'},{value:'"top center right"'},{value:'"top center bottom"'},{value:'"top left top"'},{value:'"top left left"'},{value:'"top left right"'},{value:'"top left bottom"'},{value:'"top right top"'},{value:'"top right left"'},{value:'"top right right"'},{value:'"top right bottom"'},{value:'"middle center top"'},{value:'"middle center left"'},{value:'"middle center right"'},{value:'"middle center bottom"'},{value:'"middle left top"'},{value:'"middle left left"'},{value:'"middle left right"'},{value:'"middle left bottom"'},{value:'"middle right top"'},{value:'"middle right left"'},{value:'"middle right right"'},{value:'"middle right bottom"'},{value:'"bottom center top"'},{value:'"bottom center left"'},{value:'"bottom center right"'},{value:'"bottom center bottom"'},{value:'"bottom left top"'},{value:'"bottom left left"'},{value:'"bottom left right"'},{value:'"bottom left bottom"'},{value:'"bottom right top"'},{value:'"bottom right left"'},{value:'"bottom right right"'},{value:'"bottom right bottom"'}]}},resize:{defaultValue:{value:"true"},description:"Adjusts the size of the popover to prevent its contents from going out of\nview when meeting the viewport edges.",name:"resize",required:!1,type:{name:"boolean"}},shift:{defaultValue:{value:"false"},description:"Enables the `Popover` to shift in order to stay in view when meeting the\nviewport edges.",name:"shift",required:!1,type:{name:"boolean"}},__unstableSlotName:{defaultValue:{value:"'Popover'"},description:"The name of the Slot in which the popover should be rendered. It should\nbe also passed to the corresponding `PopoverSlot` component.",name:"__unstableSlotName",required:!1,type:{name:"string"}},expandOnMobile:{defaultValue:null,description:"Show the popover fullscreen on mobile viewports.",name:"expandOnMobile",required:!1,type:{name:"boolean"}},flip:{defaultValue:{value:"true"},description:"Specifies whether the popover should flip across its axis if there isn't\nspace for it in the normal placement.\nWhen the using a 'top' placement, the popover will switch to a 'bottom'\nplacement. When using a 'left' placement, the popover will switch to a\n`right' placement.\nThe popover will retain its alignment of 'start' or 'end' when flipping.",name:"flip",required:!1,type:{name:"boolean"}},constrainTabbing:{defaultValue:{value:"`focusOnMount` !== false"},description:"Determines whether tabbing is constrained to within the popover,\npreventing keyboard focus from leaving the popover content without\nexplicit focus elswhere, or whether the popover remains part of the wider\ntab order. If no value is passed, it will be derived from `focusOnMount`.",name:"constrainTabbing",required:!1,type:{name:"boolean"}},focusOnMount:{defaultValue:{value:"'firstElement'"},description:'By default, the _first tabbable element_ in the popover will receive focus\nwhen it mounts. This is the same as setting this prop to `"firstElement"`.\nSpecifying a `false` value disables the focus handling entirely (this\nshould only be done when an appropriately accessible substitute behavior\nexists).',name:"focusOnMount",required:!1,type:{name:'boolean | "firstElement"'}},onFocusOutside:{defaultValue:null,description:"A callback invoked when the focus leaves the opened popover. This should\nonly be provided in advanced use-cases when a popover should close under\nspecific circumstances (for example, if the new `document.activeElement`\nis content of or otherwise controlling popover visibility).\n\nWhen not provided, the `onClose` callback will be called instead.",name:"onFocusOutside",required:!1,type:{name:"(event: SyntheticEvent) => void"}},headerTitle:{defaultValue:null,description:"Used to customize the header text shown when the popover is toggled to\nfullscreen on mobile viewports (see the `expandOnMobile` prop).",name:"headerTitle",required:!1,type:{name:"string"}},noArrow:{defaultValue:{value:"true"},description:"Used to show/hide the arrow that points at the popover's anchor.",name:"noArrow",required:!1,type:{name:"boolean"}},__unstableForcePosition:{defaultValue:null,description:"Prevent the popover from flipping and resizing when meeting the viewport\nedges. _Note: this prop is deprecated. Instead, provide use the individual\n`flip` and `resize` props._\n@deprecated",name:"__unstableForcePosition",required:!1,type:{name:"boolean"}},anchorRect:{defaultValue:null,description:"An object extending a `DOMRect` with an additional optional `ownerDocument`\nproperty, used to specify a fixed popover position.\n@deprecated",name:"anchorRect",required:!1,type:{name:"DomRectWithOwnerDocument"}},anchorRef:{defaultValue:null,description:"Used to specify a fixed popover position. It can be an `Element`, a React\nreference to an `element`, an object with a `top` and a `bottom` properties\n(both pointing to elements), or a `range`.\n@deprecated",name:"anchorRef",required:!1,type:{name:"Element | PopoverAnchorRefReference | PopoverAnchorRefTopBottom | Range"}},getAnchorRect:{defaultValue:null,description:"A function returning the same value as the one expected by the `anchorRect`\nprop, used to specify a dynamic popover position.\n@deprecated",name:"getAnchorRect",required:!1,type:{name:"(fallbackReferenceElement: Element) => DomRectWithOwnerDocument"}},isAlternate:{defaultValue:null,description:"Used to enable a different visual style for the popover.\n_Note: this prop is deprecated. Use the `variant` prop with the\n'toolbar' value instead._\n@deprecated",name:"isAlternate",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"The HTML element or React component to render the component as.",name:"as",required:!1,type:{name:'"symbol" | "object" | "select" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | ... 516 more ... | ("view" & FunctionComponent<...>)'}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/popover/index.tsx#Popover"]={docgenInfo:Popover.__docgenInfo,name:"Popover",path:"packages/components/src/popover/index.tsx#Popover"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/scroll-lock/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");let previousScrollTop=0;function setLocked(locked){const scrollingElement=document.scrollingElement||document.body;locked&&(previousScrollTop=scrollingElement.scrollTop);const methodName=locked?"add":"remove";scrollingElement.classList[methodName]("lockscroll"),document.documentElement.classList[methodName]("lockscroll"),locked||(scrollingElement.scrollTop=previousScrollTop)}let lockCounter=0;function ScrollLock(){return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>(0===lockCounter&&setLocked(!0),++lockCounter,()=>{1===lockCounter&&setLocked(!1),--lockCounter})),[]),null}const __WEBPACK_DEFAULT_EXPORT__=ScrollLock;try{ScrollLock.displayName="ScrollLock",ScrollLock.__docgenInfo={description:"ScrollLock is a content-free React component for declaratively preventing\nscroll bleed from modal UI to the page body. This component applies a\n`lockscroll` class to the `document.documentElement` and\n`document.scrollingElement` elements to stop the body from scrolling. When it\nis present, the lock is applied.\n\n```jsx\nimport { ScrollLock, Button } from '@wordpress/components';\nimport { useState } from '@wordpress/element';\n\nconst MyScrollLock = () => {\n const [ isScrollLocked, setIsScrollLocked ] = useState( false );\n\n const toggleLock = () => {\n setIsScrollLocked( ( locked ) => ! locked ) );\n };\n\n return (\n
\n \n { isScrollLocked && }\n

\n Scroll locked:\n { isScrollLocked ? 'Yes' : 'No' }\n

\n
\n );\n};\n```",displayName:"ScrollLock",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/scroll-lock/index.tsx#ScrollLock"]={docgenInfo:ScrollLock.__docgenInfo,name:"ScrollLock",path:"packages/components/src/scroll-lock/index.tsx#ScrollLock"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/slot-fill/bubbles-virtually/slot-fill-context.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/compose/build-module/utils/observable-map/index.js");const initialContextValue={slots:(0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__.u)(),fills:(0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__.u)(),registerSlot:()=>{},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},isDefault:!0},__WEBPACK_DEFAULT_EXPORT__=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.createContext)(initialContextValue)},"./packages/components/src/slot-fill/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{SQ:()=>slot_fill_Fill,Kq:()=>Provider,DX:()=>slot_fill_Slot,QJ:()=>createSlotFill});var react=__webpack_require__("./node_modules/react/index.js"),observable_map=__webpack_require__("./packages/compose/build-module/utils/observable-map/index.js");const initialValue={slots:(0,observable_map.u)(),fills:(0,observable_map.u)(),registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},updateFill:()=>{}},context=(0,react.createContext)(initialValue);function Fill({name,children}){const registry=(0,react.useContext)(context),instanceRef=(0,react.useRef)({}),childrenRef=(0,react.useRef)(children);return(0,react.useLayoutEffect)((()=>{childrenRef.current=children}),[children]),(0,react.useLayoutEffect)((()=>{const instance=instanceRef.current;return registry.registerFill(name,instance,childrenRef.current),()=>registry.unregisterFill(name,instance)}),[registry,name]),(0,react.useLayoutEffect)((()=>{registry.updateFill(name,instanceRef.current,childrenRef.current)})),null}var use_observable_value=__webpack_require__("./packages/compose/build-module/hooks/use-observable-value/index.js"),utils=__webpack_require__("./packages/element/build-module/utils.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function isFunction(maybeFunc){return"function"==typeof maybeFunc}function Slot(props){var _useObservableValue;const registry=(0,react.useContext)(context),instanceRef=(0,react.useRef)({}),{name,children,fillProps={}}=props;(0,react.useEffect)((()=>{const instance=instanceRef.current;return registry.registerSlot(name,instance),()=>registry.unregisterSlot(name,instance)}),[registry,name]);let fills=null!==(_useObservableValue=(0,use_observable_value.A)(registry.fills,name))&&void 0!==_useObservableValue?_useObservableValue:[];(0,use_observable_value.A)(registry.slots,name)!==instanceRef.current&&(fills=[]);const renderedFills=fills.map((fill=>function addKeysToChildren(children){return react.Children.map(children,((child,childIndex)=>{if(!child||"string"==typeof child)return child;let childKey=childIndex;return"object"==typeof child&&"key"in child&&child?.key&&(childKey=child.key),(0,react.cloneElement)(child,{key:childKey})}))}(isFunction(fill.children)?fill.children(fillProps):fill.children))).filter((element=>!(0,utils.s)(element)));return(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:isFunction(children)?children(renderedFills):renderedFills})}const slot=Slot;try{Slot.displayName="Slot",Slot.__docgenInfo={description:"",displayName:"Slot",props:{style:{defaultValue:null,description:"Additional styles for the `Slot` component.\nSupported only when `bubblesVirtually` is `true`.",name:"style",required:!1,type:{name:"CSSProperties"}},children:{defaultValue:null,description:"A function that returns nodes to be rendered.\nSupported only when `bubblesVirtually` is `false`.",name:"children",required:!1,type:{name:"(fills: ReactNode) => ReactNode"}},className:{defaultValue:null,description:"Additional className for the `Slot` component.\nSupported only when `bubblesVirtually` is `true`.",name:"className",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"Slot name.",name:"name",required:!0,type:{name:"SlotKey"}},fillProps:{defaultValue:{value:"{}"},description:"props to pass from `Slot` to `Fill`.",name:"fillProps",required:!1,type:{name:"FillProps"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/slot-fill/slot.tsx#Slot"]={docgenInfo:Slot.__docgenInfo,name:"Slot",path:"packages/components/src/slot-fill/slot.tsx#Slot"})}catch(__react_docgen_typescript_loader_error){}var react_dom=__webpack_require__("./node_modules/react-dom/index.js"),slot_fill_context=__webpack_require__("./packages/components/src/slot-fill/bubbles-virtually/slot-fill-context.ts"),style_provider=__webpack_require__("./packages/components/src/style-provider/index.tsx");function fill_Fill({name,children}){var _slot$fillProps;const registry=(0,react.useContext)(slot_fill_context.A),slot=(0,use_observable_value.A)(registry.slots,name),instanceRef=(0,react.useRef)({});if((0,react.useEffect)((()=>{const instance=instanceRef.current;return registry.registerFill(name,instance),()=>registry.unregisterFill(name,instance)}),[registry,name]),!slot||!slot.ref.current)return null;const wrappedChildren=(0,jsx_runtime.jsx)(style_provider.A,{document:slot.ref.current.ownerDocument,children:"function"==typeof children?children(null!==(_slot$fillProps=slot.fillProps)&&void 0!==_slot$fillProps?_slot$fillProps:{}):children});return(0,react_dom.createPortal)(wrappedChildren,slot.ref.current)}try{fill.displayName="fill",fill.__docgenInfo={description:"",displayName:"fill",props:{name:{defaultValue:null,description:"The name of the slot to fill into.",name:"name",required:!0,type:{name:"SlotKey"}},children:{defaultValue:null,description:"Children elements or render function.",name:"children",required:!1,type:{name:"FillChildren"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/slot-fill/bubbles-virtually/fill.tsx#fill"]={docgenInfo:fill.__docgenInfo,name:"fill",path:"packages/components/src/slot-fill/bubbles-virtually/fill.tsx#fill"})}catch(__react_docgen_typescript_loader_error){}var use_merge_refs=__webpack_require__("./packages/compose/build-module/hooks/use-merge-refs/index.js"),component=__webpack_require__("./packages/components/src/view/component.tsx");function slot_Slot(props,forwardedRef){const{name,fillProps={},as,children,...restProps}=props,registry=(0,react.useContext)(slot_fill_context.A),ref=(0,react.useRef)(null),fillPropsRef=(0,react.useRef)(fillProps);return(0,react.useLayoutEffect)((()=>{fillPropsRef.current=fillProps}),[fillProps]),(0,react.useLayoutEffect)((()=>(registry.registerSlot(name,ref,fillPropsRef.current),()=>registry.unregisterSlot(name,ref))),[registry,name]),(0,react.useLayoutEffect)((()=>{registry.updateSlot(name,ref,fillPropsRef.current)})),(0,jsx_runtime.jsx)(component.A,{as,ref:(0,use_merge_refs.A)([forwardedRef,ref]),...restProps})}const bubbles_virtually_slot=(0,react.forwardRef)(slot_Slot);try{slot_Slot.displayName="Slot",slot_Slot.__docgenInfo={description:"",displayName:"Slot",props:{style:{defaultValue:null,description:"Additional styles for the `Slot` component.\nSupported only when `bubblesVirtually` is `true`.",name:"style",required:!1,type:{name:"CSSProperties"}},children:{defaultValue:null,description:"A function that returns nodes to be rendered.\nSupported only when `bubblesVirtually` is `false`.",name:"children",required:!1,type:{name:"(fills: ReactNode) => ReactNode"}},className:{defaultValue:null,description:"Additional className for the `Slot` component.\nSupported only when `bubblesVirtually` is `true`.",name:"className",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"Slot name.",name:"name",required:!0,type:{name:"SlotKey"}},fillProps:{defaultValue:{value:"{}"},description:"props to pass from `Slot` to `Fill`.",name:"fillProps",required:!1,type:{name:"FillProps"}},as:{defaultValue:null,description:"The HTML element or React component to render the component as.",name:"as",required:!1,type:{name:"enum",value:[{value:'"symbol"'},{value:'"object"'},{value:'"select"'},{value:'"a"'},{value:'"abbr"'},{value:'"address"'},{value:'"area"'},{value:'"article"'},{value:'"aside"'},{value:'"audio"'},{value:'"b"'},{value:'"base"'},{value:'"bdi"'},{value:'"bdo"'},{value:'"big"'},{value:'"blockquote"'},{value:'"body"'},{value:'"br"'},{value:'"button"'},{value:'"canvas"'},{value:'"caption"'},{value:'"center"'},{value:'"cite"'},{value:'"code"'},{value:'"col"'},{value:'"colgroup"'},{value:'"data"'},{value:'"datalist"'},{value:'"dd"'},{value:'"del"'},{value:'"details"'},{value:'"dfn"'},{value:'"dialog"'},{value:'"div"'},{value:'"dl"'},{value:'"dt"'},{value:'"em"'},{value:'"embed"'},{value:'"fieldset"'},{value:'"figcaption"'},{value:'"figure"'},{value:'"footer"'},{value:'"form"'},{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'},{value:'"head"'},{value:'"header"'},{value:'"hgroup"'},{value:'"hr"'},{value:'"html"'},{value:'"i"'},{value:'"iframe"'},{value:'"img"'},{value:'"input"'},{value:'"ins"'},{value:'"kbd"'},{value:'"keygen"'},{value:'"label"'},{value:'"legend"'},{value:'"li"'},{value:'"link"'},{value:'"main"'},{value:'"map"'},{value:'"mark"'},{value:'"menu"'},{value:'"menuitem"'},{value:'"meta"'},{value:'"meter"'},{value:'"nav"'},{value:'"noindex"'},{value:'"noscript"'},{value:'"ol"'},{value:'"optgroup"'},{value:'"option"'},{value:'"output"'},{value:'"p"'},{value:'"param"'},{value:'"picture"'},{value:'"pre"'},{value:'"progress"'},{value:'"q"'},{value:'"rp"'},{value:'"rt"'},{value:'"ruby"'},{value:'"s"'},{value:'"samp"'},{value:'"search"'},{value:'"slot"'},{value:'"script"'},{value:'"section"'},{value:'"small"'},{value:'"source"'},{value:'"span"'},{value:'"strong"'},{value:'"style"'},{value:'"sub"'},{value:'"summary"'},{value:'"sup"'},{value:'"table"'},{value:'"template"'},{value:'"tbody"'},{value:'"td"'},{value:'"textarea"'},{value:'"tfoot"'},{value:'"th"'},{value:'"thead"'},{value:'"time"'},{value:'"title"'},{value:'"tr"'},{value:'"track"'},{value:'"u"'},{value:'"ul"'},{value:'"var"'},{value:'"video"'},{value:'"wbr"'},{value:'"webview"'},{value:'"svg"'},{value:'"animate"'},{value:'"animateMotion"'},{value:'"animateTransform"'},{value:'"circle"'},{value:'"clipPath"'},{value:'"defs"'},{value:'"desc"'},{value:'"ellipse"'},{value:'"feBlend"'},{value:'"feColorMatrix"'},{value:'"feComponentTransfer"'},{value:'"feComposite"'},{value:'"feConvolveMatrix"'},{value:'"feDiffuseLighting"'},{value:'"feDisplacementMap"'},{value:'"feDistantLight"'},{value:'"feDropShadow"'},{value:'"feFlood"'},{value:'"feFuncA"'},{value:'"feFuncB"'},{value:'"feFuncG"'},{value:'"feFuncR"'},{value:'"feGaussianBlur"'},{value:'"feImage"'},{value:'"feMerge"'},{value:'"feMergeNode"'},{value:'"feMorphology"'},{value:'"feOffset"'},{value:'"fePointLight"'},{value:'"feSpecularLighting"'},{value:'"feSpotLight"'},{value:'"feTile"'},{value:'"feTurbulence"'},{value:'"filter"'},{value:'"foreignObject"'},{value:'"g"'},{value:'"image"'},{value:'"line"'},{value:'"linearGradient"'},{value:'"marker"'},{value:'"mask"'},{value:'"metadata"'},{value:'"mpath"'},{value:'"path"'},{value:'"pattern"'},{value:'"polygon"'},{value:'"polyline"'},{value:'"radialGradient"'},{value:'"rect"'},{value:'"set"'},{value:'"stop"'},{value:'"switch"'},{value:'"text"'},{value:'"textPath"'},{value:'"tspan"'},{value:'"use"'},{value:'"view"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/slot-fill/bubbles-virtually/slot.tsx#Slot"]={docgenInfo:slot_Slot.__docgenInfo,name:"Slot",path:"packages/components/src/slot-fill/bubbles-virtually/slot.tsx#Slot"})}catch(__react_docgen_typescript_loader_error){}var build_module=__webpack_require__("./packages/is-shallow-equal/build-module/index.js");function createSlotRegistry(){const slots=(0,observable_map.u)(),fills=(0,observable_map.u)();return{slots,fills,registerSlot:(name,ref,fillProps)=>{slots.set(name,{ref,fillProps})},updateSlot:(name,ref,fillProps)=>{const slot=slots.get(name);slot&&slot.ref===ref&&((0,build_module.Ay)(slot.fillProps,fillProps)||slots.set(name,{ref,fillProps}))},unregisterSlot:(name,ref)=>{const slot=slots.get(name);slot&&slot.ref===ref&&slots.delete(name)},registerFill:(name,ref)=>{fills.set(name,[...fills.get(name)||[],ref])},unregisterFill:(name,ref)=>{const fillsForName=fills.get(name);fillsForName&&fills.set(name,fillsForName.filter((fillRef=>fillRef!==ref)))}}}function slot_fill_provider_SlotFillProvider({children}){const[registry]=(0,react.useState)(createSlotRegistry);return(0,jsx_runtime.jsx)(slot_fill_context.A.Provider,{value:registry,children})}try{slotfillprovider.displayName="slotfillprovider",slotfillprovider.__docgenInfo={description:"",displayName:"slotfillprovider",props:{children:{defaultValue:null,description:"The children elements.",name:"children",required:!0,type:{name:"ReactNode"}},passthrough:{defaultValue:null,description:"Whether to pass slots to the parent provider if existent.",name:"passthrough",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx#slotfillprovider"]={docgenInfo:slotfillprovider.__docgenInfo,name:"slotfillprovider",path:"packages/components/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx#slotfillprovider"})}catch(__react_docgen_typescript_loader_error){}function provider_createSlotRegistry(){const slots=(0,observable_map.u)(),fills=(0,observable_map.u)();return{slots,fills,registerSlot:function registerSlot(name,instance){slots.set(name,instance)},unregisterSlot:function unregisterSlot(name,instance){slots.get(name)===instance&&slots.delete(name)},registerFill:function registerFill(name,instance,children){fills.set(name,[...fills.get(name)||[],{instance,children}])},unregisterFill:function unregisterFill(name,instance){const fillsForName=fills.get(name);fillsForName&&fills.set(name,fillsForName.filter((fill=>fill.instance!==instance)))},updateFill:function updateFill(name,instance,children){const fillsForName=fills.get(name);if(!fillsForName)return;const fillForInstance=fillsForName.find((f=>f.instance===instance));fillForInstance&&fillForInstance.children!==children&&fills.set(name,fillsForName.map((f=>f.instance===instance?{instance,children}:f)))}}}function provider_SlotFillProvider({children}){const[contextValue]=(0,react.useState)(provider_createSlotRegistry);return(0,jsx_runtime.jsx)(context.Provider,{value:contextValue,children})}const provider=provider_SlotFillProvider;try{provider_SlotFillProvider.displayName="SlotFillProvider",provider_SlotFillProvider.__docgenInfo={description:"",displayName:"SlotFillProvider",props:{children:{defaultValue:null,description:"The children elements.",name:"children",required:!0,type:{name:"ReactNode"}},passthrough:{defaultValue:null,description:"Whether to pass slots to the parent provider if existent.",name:"passthrough",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/slot-fill/provider.tsx#SlotFillProvider"]={docgenInfo:provider_SlotFillProvider.__docgenInfo,name:"SlotFillProvider",path:"packages/components/src/slot-fill/provider.tsx#SlotFillProvider"})}catch(__react_docgen_typescript_loader_error){}function slot_fill_Fill(props){return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(Fill,{...props}),(0,jsx_runtime.jsx)(fill_Fill,{...props})]})}const slot_fill_Slot=(0,react.forwardRef)((function UnforwardedSlot(props,ref){const{bubblesVirtually,...restProps}=props;return bubblesVirtually?(0,jsx_runtime.jsx)(bubbles_virtually_slot,{...restProps,ref}):(0,jsx_runtime.jsx)(slot,{...restProps})}));function Provider({children,passthrough=!1}){return!(0,react.useContext)(slot_fill_context.A).isDefault&&passthrough?(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children}):(0,jsx_runtime.jsx)(provider,{children:(0,jsx_runtime.jsx)(slot_fill_provider_SlotFillProvider,{children})})}function createSlotFill(key){const baseName="symbol"==typeof key?key.description:key,FillComponent=props=>(0,jsx_runtime.jsx)(slot_fill_Fill,{name:key,...props});FillComponent.displayName=`${baseName}Fill`;const SlotComponent=props=>(0,jsx_runtime.jsx)(slot_fill_Slot,{name:key,...props});return SlotComponent.displayName=`${baseName}Slot`,SlotComponent.__unstableName=key,{name:key,Fill:FillComponent,Slot:SlotComponent}}Provider.displayName="SlotFillProvider";try{slot_fill_Fill.displayName="SlotFillProvider",slot_fill_Fill.__docgenInfo={description:"",displayName:"SlotFillProvider",props:{name:{defaultValue:null,description:"The name of the slot to fill into.",name:"name",required:!0,type:{name:"SlotKey"}},children:{defaultValue:null,description:"Children elements or render function.",name:"children",required:!1,type:{name:"FillChildren"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/slot-fill/index.tsx#SlotFillProvider"]={docgenInfo:SlotFillProvider.__docgenInfo,name:"SlotFillProvider",path:"packages/components/src/slot-fill/index.tsx#SlotFillProvider"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/style-provider/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__,N:()=>StyleProvider});var _emotion_react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-element-699e6908.browser.esm.js"),_emotion_cache__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"),uuid__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/node_modules/uuid/dist/esm-browser/v4.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");const uuidCache=new Set,containerCacheMap=new WeakMap,memoizedCreateCacheWithContainer=container=>{if(containerCacheMap.has(container))return containerCacheMap.get(container);let key=uuid__WEBPACK_IMPORTED_MODULE_2__.A().replace(/[0-9]/g,"");for(;uuidCache.has(key);)key=uuid__WEBPACK_IMPORTED_MODULE_2__.A().replace(/[0-9]/g,"");uuidCache.add(key);const cache=(0,_emotion_cache__WEBPACK_IMPORTED_MODULE_0__.A)({container,key});return containerCacheMap.set(container,cache),cache};function StyleProvider(props){const{children,document}=props;if(!document)return null;const cache=memoizedCreateCacheWithContainer(document.head);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_emotion_react__WEBPACK_IMPORTED_MODULE_3__.C,{value:cache,children})}const __WEBPACK_DEFAULT_EXPORT__=StyleProvider;try{StyleProvider.displayName="StyleProvider",StyleProvider.__docgenInfo={description:"",displayName:"StyleProvider",props:{children:{defaultValue:null,description:"The children elements.",name:"children",required:!0,type:{name:"ReactNode"}},document:{defaultValue:null,description:"Current document.",name:"document",required:!0,type:{name:"Document"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/style-provider/index.tsx#StyleProvider"]={docgenInfo:StyleProvider.__docgenInfo,name:"StyleProvider",path:"packages/components/src/style-provider/index.tsx#StyleProvider"})}catch(__react_docgen_typescript_loader_error){}}}]); \ No newline at end of file diff --git a/2599.6dcccefb.iframe.bundle.js b/2599.6dcccefb.iframe.bundle.js new file mode 100644 index 00000000000000..7189dfc750c383 --- /dev/null +++ b/2599.6dcccefb.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[2599],{"./node_modules/@ariakit/react-core/esm/__chunks/7HVFURXT.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{L:()=>GroupLabelContext});var GroupLabelContext=(0,__webpack_require__("./node_modules/react/index.js").createContext)(void 0)},"./node_modules/@ariakit/react-core/esm/__chunks/J2LQO3EC.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{s:()=>CompositeRow});var _P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P7GR5CS5.js"),_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),useCompositeRow=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.ab)((function useCompositeRow2(_a){var _b=_a,{store,"aria-setsize":ariaSetSize,"aria-posinset":ariaPosInSet}=_b,props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.YG)(_b,["store","aria-setsize","aria-posinset"]);const context=(0,_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_4__.k)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.V1)(store,!1);const id=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.Bi)(props.id),baseElement=store.useState((state=>state.baseElement||void 0)),providerValue=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>({id,baseElement,ariaSetSize,ariaPosInSet})),[id,baseElement,ariaSetSize,ariaPosInSet]);return props=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.w7)(props,(element=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_4__.$o.Provider,{value:providerValue,children:element})),[providerValue]),props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({id},props),(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.HR)(props)})),CompositeRow=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.Rf)((function CompositeRow2(props){const htmlProps=useCompositeRow(props);return(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.n)("div",htmlProps)}))},"./node_modules/@ariakit/react-core/esm/__chunks/SWSPTQMT.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>CompositeGroupLabel,S:()=>useCompositeGroupLabel});var _7HVFURXT=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/7HVFURXT.js"),LMDWO4NN=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),ABQUS43J=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),PBFD2E7P=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react=__webpack_require__("./node_modules/react/index.js"),useGroupLabel=(0,LMDWO4NN.ab)((function useGroupLabel2(props){const setLabelId=(0,react.useContext)(_7HVFURXT.L),id=(0,ABQUS43J.Bi)(props.id);return(0,ABQUS43J.UQ)((()=>(null==setLabelId||setLabelId(id),()=>null==setLabelId?void 0:setLabelId(void 0))),[setLabelId,id]),props=(0,_3YLGPPWQ.IA)({id,"aria-hidden":!0},props),(0,PBFD2E7P.HR)(props)})),useCompositeGroupLabel=((0,LMDWO4NN.Rf)((function GroupLabel2(props){const htmlProps=useGroupLabel(props);return(0,LMDWO4NN.n)("div",htmlProps)})),(0,LMDWO4NN.ab)((function useCompositeGroupLabel2(_a){var _b=_a,{store}=_b,props=(0,_3YLGPPWQ.YG)(_b,["store"]);return props=useGroupLabel(props)}))),CompositeGroupLabel=(0,LMDWO4NN.Rf)((function CompositeGroupLabel2(props){const htmlProps=useCompositeGroupLabel(props);return(0,LMDWO4NN.n)("div",htmlProps)}))},"./node_modules/@ariakit/react-core/esm/__chunks/T7VMP3TM.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{f:()=>CompositeTypeahead,g:()=>useCompositeTypeahead});var _5VQZOHHZ_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/5VQZOHHZ.js"),_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P7GR5CS5.js"),_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/DTR5TSDJ.js"),_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/core/esm/utils/events.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),chars="";function clearChars(){chars=""}function itemTextStartsWith(item,text){var _a;const itemText=(null==(_a=item.element)?void 0:_a.textContent)||item.children||"value"in item&&item.value;return!!itemText&&(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_3__.J2)(itemText).trim().toLowerCase().startsWith(text.toLowerCase())}var useCompositeTypeahead=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_5__.ab)((function useCompositeTypeahead2(_a){var _b=_a,{store,typeahead=!0}=_b,props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_6__.YG)(_b,["store","typeahead"]);const context=(0,_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_7__.k)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_3__.V1)(store,!1);const onKeyDownCaptureProp=props.onKeyDownCapture,cleanupTimeoutRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0),onKeyDownCapture=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_8__._q)((event=>{if(null==onKeyDownCaptureProp||onKeyDownCaptureProp(event),event.defaultPrevented)return;if(!typeahead)return;if(!store)return;if(!function isValidTypeaheadEvent(event){const target=event.target;return(!target||!(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_1__.mB)(target))&&(!(" "!==event.key||!chars.length)||1===event.key.length&&!event.ctrlKey&&!event.altKey&&!event.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(event.key))}(event))return clearChars();const{renderedItems,items,activeId,id}=store.getState();let enabledItems=function getEnabledItems(items){return items.filter((item=>!item.disabled))}(items.length>renderedItems.length?items:renderedItems);const selector=`[data-offscreen-id="${id}"]`,offscreenItems=(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_1__.YE)(event.currentTarget).querySelectorAll(selector);for(const element of offscreenItems){const disabled="true"===element.ariaDisabled||"disabled"in element&&!!element.disabled;enabledItems.push({id:element.id,element,disabled})}if(offscreenItems.length&&(enabledItems=(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_1__.gH)(enabledItems,(i=>i.element))),!function isSelfTargetOrItem(event,items){if((0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_2__.uh)(event))return!0;const target=event.target;return!!target&&items.some((item=>item.element===target))}(event,enabledItems))return clearChars();event.preventDefault(),window.clearTimeout(cleanupTimeoutRef.current),cleanupTimeoutRef.current=window.setTimeout((()=>{chars=""}),500);const char=event.key.toLowerCase();chars+=char,enabledItems=function getSameInitialItems(items,char,activeId){if(!activeId)return items;const activeItem=items.find((item=>item.id===activeId));return activeItem&&itemTextStartsWith(activeItem,char)?chars!==char&&itemTextStartsWith(activeItem,chars)?items:(chars=char,(0,_5VQZOHHZ_js__WEBPACK_IMPORTED_MODULE_4__._d)(items.filter((item=>itemTextStartsWith(item,chars))),activeId).filter((item=>item.id!==activeId))):items}(enabledItems,char,activeId);const item=enabledItems.find((item2=>itemTextStartsWith(item2,chars)));item?store.move(item.id):clearChars()}));return props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_6__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_6__.IA)({},props),{onKeyDownCapture}),(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_3__.HR)(props)})),CompositeTypeahead=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_5__.Rf)((function CompositeTypeahead2(props){const htmlProps=useCompositeTypeahead(props);return(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_5__.n)("div",htmlProps)}))},"./node_modules/@ariakit/react-core/esm/__chunks/UQQRIHDV.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{T:()=>useCompositeHover,c:()=>CompositeHover});var _P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P7GR5CS5.js"),_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/DTR5TSDJ.js"),_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/core/esm/utils/focus.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function getMouseDestination(event){const relatedTarget=event.relatedTarget;return(null==relatedTarget?void 0:relatedTarget.nodeType)===Node.ELEMENT_NODE?relatedTarget:null}var symbol=Symbol("composite-hover");var useCompositeHover=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_3__.ab)((function useCompositeHover2(_a){var _b=_a,{store,focusOnHover=!0,blurOnHoverEnd=!!focusOnHover}=_b,props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__.YG)(_b,["store","focusOnHover","blurOnHoverEnd"]);const context=(0,_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_5__.k)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_2__.V1)(store,!1);const isMouseMoving=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.P$)(),onMouseMoveProp=props.onMouseMove,focusOnHoverProp=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.O4)(focusOnHover),onMouseMove=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__._q)((event=>{if(null==onMouseMoveProp||onMouseMoveProp(event),!event.defaultPrevented&&isMouseMoving()&&focusOnHoverProp(event)){if(!(0,_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_7__.oW)(event.currentTarget)){const baseElement=null==store?void 0:store.getState().baseElement;baseElement&&!(0,_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_7__.AJ)(baseElement)&&baseElement.focus()}null==store||store.setActiveId(event.currentTarget.id)}})),onMouseLeaveProp=props.onMouseLeave,blurOnHoverEndProp=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.O4)(blurOnHoverEnd),onMouseLeave=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__._q)((event=>{var _a2;null==onMouseLeaveProp||onMouseLeaveProp(event),event.defaultPrevented||isMouseMoving()&&(function hoveringInside(event){const nextElement=getMouseDestination(event);return!!nextElement&&(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_1__.gR)(event.currentTarget,nextElement)}(event)||function movingToAnotherItem(event){let dest=getMouseDestination(event);if(!dest)return!1;do{if((0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_2__.mQ)(dest,symbol)&&dest[symbol])return!0;dest=dest.parentElement}while(dest);return!1}(event)||focusOnHoverProp(event)&&blurOnHoverEndProp(event)&&(null==store||store.setActiveId(null),null==(_a2=null==store?void 0:store.getState().baseElement)||_a2.focus()))})),ref=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((element=>{element&&(element[symbol]=!0)}),[]);return props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_4__.IA)({},props),{ref:(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.SV)(ref,props.ref),onMouseMove,onMouseLeave}),(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_2__.HR)(props)})),CompositeHover=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_3__.ph)((0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_3__.Rf)((function CompositeHover2(props){const htmlProps=useCompositeHover(props);return(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_3__.n)("div",htmlProps)})))},"./node_modules/@ariakit/react-core/esm/__chunks/YORGHBM4.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{t:()=>CompositeGroup,u:()=>useCompositeGroup});var _7HVFURXT=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/7HVFURXT.js"),LMDWO4NN=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),ABQUS43J=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),PBFD2E7P=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react=__webpack_require__("./node_modules/react/index.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),useGroup=(0,LMDWO4NN.ab)((function useGroup2(props){const[labelId,setLabelId]=(0,react.useState)();return props=(0,ABQUS43J.w7)(props,(element=>(0,jsx_runtime.jsx)(_7HVFURXT.L.Provider,{value:setLabelId,children:element})),[]),props=(0,_3YLGPPWQ.IA)({role:"group","aria-labelledby":labelId},props),(0,PBFD2E7P.HR)(props)})),useCompositeGroup=((0,LMDWO4NN.Rf)((function Group2(props){const htmlProps=useGroup(props);return(0,LMDWO4NN.n)("div",htmlProps)})),(0,LMDWO4NN.ab)((function useCompositeGroup2(_a){var _b=_a,{store}=_b,props=(0,_3YLGPPWQ.YG)(_b,["store"]);return props=useGroup(props)}))),CompositeGroup=(0,LMDWO4NN.Rf)((function CompositeGroup2(props){const htmlProps=useCompositeGroup(props);return(0,LMDWO4NN.n)("div",htmlProps)}))},"./packages/components/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{UE:()=>arrow,we:()=>useFloating});var _floating_ui_dom__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_dom__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react-dom/index.js");const arrow=options=>({name:"arrow",options,fn(state){const{element,padding}="function"==typeof options?options(state):options;return element&&function isRef(value){return{}.hasOwnProperty.call(value,"current")}(element)?null!=element.current?(0,_floating_ui_dom__WEBPACK_IMPORTED_MODULE_2__.UE)({element:element.current,padding}).fn(state):{}:element?(0,_floating_ui_dom__WEBPACK_IMPORTED_MODULE_2__.UE)({element,padding}).fn(state):{}}});var index="undefined"!=typeof document?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect;function deepEqual(a,b){if(a===b)return!0;if(typeof a!=typeof b)return!1;if("function"==typeof a&&a.toString()===b.toString())return!0;let length,i,keys;if(a&&b&&"object"==typeof a){if(Array.isArray(a)){if(length=a.length,length!=b.length)return!1;for(i=length;0!=i--;)if(!deepEqual(a[i],b[i]))return!1;return!0}if(keys=Object.keys(a),length=keys.length,length!==Object.keys(b).length)return!1;for(i=length;0!=i--;)if(!{}.hasOwnProperty.call(b,keys[i]))return!1;for(i=length;0!=i--;){const key=keys[i];if(("_owner"!==key||!a.$$typeof)&&!deepEqual(a[key],b[key]))return!1}return!0}return a!=a&&b!=b}function getDPR(element){if("undefined"==typeof window)return 1;return(element.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(element,value){const dpr=getDPR(element);return Math.round(value*dpr)/dpr}function useLatestRef(value){const ref=react__WEBPACK_IMPORTED_MODULE_0__.useRef(value);return index((()=>{ref.current=value})),ref}function useFloating(options){void 0===options&&(options={});const{placement="bottom",strategy="absolute",middleware=[],platform,elements:{reference:externalReference,floating:externalFloating}={},transform=!0,whileElementsMounted,open}=options,[data,setData]=react__WEBPACK_IMPORTED_MODULE_0__.useState({x:0,y:0,strategy,placement,middlewareData:{},isPositioned:!1}),[latestMiddleware,setLatestMiddleware]=react__WEBPACK_IMPORTED_MODULE_0__.useState(middleware);deepEqual(latestMiddleware,middleware)||setLatestMiddleware(middleware);const[_reference,_setReference]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[_floating,_setFloating]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),setReference=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((node=>{node!=referenceRef.current&&(referenceRef.current=node,_setReference(node))}),[_setReference]),setFloating=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((node=>{node!==floatingRef.current&&(floatingRef.current=node,_setFloating(node))}),[_setFloating]),referenceEl=externalReference||_reference,floatingEl=externalFloating||_floating,referenceRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),floatingRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),dataRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(data),whileElementsMountedRef=useLatestRef(whileElementsMounted),platformRef=useLatestRef(platform),update=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{if(!referenceRef.current||!floatingRef.current)return;const config={placement,strategy,middleware:latestMiddleware};platformRef.current&&(config.platform=platformRef.current),(0,_floating_ui_dom__WEBPACK_IMPORTED_MODULE_2__.rD)(referenceRef.current,floatingRef.current,config).then((data=>{const fullData={...data,isPositioned:!0};isMountedRef.current&&!deepEqual(dataRef.current,fullData)&&(dataRef.current=fullData,react_dom__WEBPACK_IMPORTED_MODULE_1__.flushSync((()=>{setData(fullData)})))}))}),[latestMiddleware,placement,strategy,platformRef]);index((()=>{!1===open&&dataRef.current.isPositioned&&(dataRef.current.isPositioned=!1,setData((data=>({...data,isPositioned:!1}))))}),[open]);const isMountedRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1);index((()=>(isMountedRef.current=!0,()=>{isMountedRef.current=!1})),[]),index((()=>{if(referenceEl&&(referenceRef.current=referenceEl),floatingEl&&(floatingRef.current=floatingEl),referenceEl&&floatingEl){if(whileElementsMountedRef.current)return whileElementsMountedRef.current(referenceEl,floatingEl,update);update()}}),[referenceEl,floatingEl,update,whileElementsMountedRef]);const refs=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({reference:referenceRef,floating:floatingRef,setReference,setFloating})),[setReference,setFloating]),elements=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({reference:referenceEl,floating:floatingEl})),[referenceEl,floatingEl]),floatingStyles=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>{const initialStyles={position:strategy,left:0,top:0};if(!elements.floating)return initialStyles;const x=roundByDPR(elements.floating,data.x),y=roundByDPR(elements.floating,data.y);return transform?{...initialStyles,transform:"translate("+x+"px, "+y+"px)",...getDPR(elements.floating)>=1.5&&{willChange:"transform"}}:{position:strategy,left:x,top:y}}),[strategy,transform,elements.floating,data.x,data.y]);return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({...data,update,refs,elements,floatingStyles})),[data,update,refs,elements,floatingStyles])}},"./packages/components/node_modules/uuid/dist/esm-browser/v4.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{var getRandomValues;__webpack_require__.d(__webpack_exports__,{A:()=>esm_browser_v4});var rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&!(getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const regex=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const esm_browser_validate=function validate(uuid){return"string"==typeof uuid&®ex.test(uuid)};for(var byteToHex=[],i=0;i<256;++i)byteToHex.push((i+256).toString(16).substr(1));const esm_browser_stringify=function stringify(arr){var offset=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,uuid=(byteToHex[arr[offset+0]]+byteToHex[arr[offset+1]]+byteToHex[arr[offset+2]]+byteToHex[arr[offset+3]]+"-"+byteToHex[arr[offset+4]]+byteToHex[arr[offset+5]]+"-"+byteToHex[arr[offset+6]]+byteToHex[arr[offset+7]]+"-"+byteToHex[arr[offset+8]]+byteToHex[arr[offset+9]]+"-"+byteToHex[arr[offset+10]]+byteToHex[arr[offset+11]]+byteToHex[arr[offset+12]]+byteToHex[arr[offset+13]]+byteToHex[arr[offset+14]]+byteToHex[arr[offset+15]]).toLowerCase();if(!esm_browser_validate(uuid))throw TypeError("Stringified UUID is invalid");return uuid};const esm_browser_v4=function v4(options,buf,offset){var rnds=(options=options||{}).random||(options.rng||rng)();if(rnds[6]=15&rnds[6]|64,rnds[8]=63&rnds[8]|128,buf){offset=offset||0;for(var i=0;i<16;++i)buf[offset+i]=rnds[i];return buf}return esm_browser_stringify(rnds)}}}]); \ No newline at end of file diff --git a/2778.fa5be5e1.iframe.bundle.js b/2778.fa5be5e1.iframe.bundle.js new file mode 100644 index 00000000000000..4b2f2746b88e73 --- /dev/null +++ b/2778.fa5be5e1.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[2778],{"./packages/components/build-module/base-control/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Ay:()=>__WEBPACK_DEFAULT_EXPORT__,pu:()=>BaseControl});var clsx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/deprecated/build-module/index.js"),_wordpress_element__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/react/index.js"),_visually_hidden__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/components/build-module/visually-hidden/component.js"),_styles_base_control_styles__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/components/build-module/base-control/styles/base-control-styles.js"),_context__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),_context__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/components/build-module/context/context-connect.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const VisualLabel=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.forwardRef)(((props,ref)=>{const{className,children,...restProps}=props;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_styles_base_control_styles__WEBPACK_IMPORTED_MODULE_3__.Om,{ref,...restProps,className:(0,clsx__WEBPACK_IMPORTED_MODULE_5__.A)("components-base-control__label",className),children})})),BaseControl=Object.assign((0,_context__WEBPACK_IMPORTED_MODULE_7__.zS)((props=>{const{__nextHasNoMarginBottom=!1,__associatedWPComponentName="BaseControl",id,label,hideLabelFromVision=!1,help,className,children}=(0,_context__WEBPACK_IMPORTED_MODULE_1__.A)(props,"BaseControl");return __nextHasNoMarginBottom||(0,_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_2__.A)(`Bottom margin styles for wp.components.${__associatedWPComponentName}`,{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_styles_base_control_styles__WEBPACK_IMPORTED_MODULE_3__.mO,{className,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_styles_base_control_styles__WEBPACK_IMPORTED_MODULE_3__.mh,{className:"components-base-control__field",__nextHasNoMarginBottom,children:[label&&id&&(hideLabelFromVision?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_visually_hidden__WEBPACK_IMPORTED_MODULE_4__.A,{as:"label",htmlFor:id,children:label}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_styles_base_control_styles__WEBPACK_IMPORTED_MODULE_3__.Gw,{className:"components-base-control__label",htmlFor:id,children:label})),label&&!id&&(hideLabelFromVision?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_visually_hidden__WEBPACK_IMPORTED_MODULE_4__.A,{as:"label",children:label}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(VisualLabel,{children:label})),children]}),!!help&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_styles_base_control_styles__WEBPACK_IMPORTED_MODULE_3__.te,{id:id?id+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom,children:help})]})}),"BaseControl"),{VisualLabel}),__WEBPACK_DEFAULT_EXPORT__=BaseControl},"./packages/components/build-module/base-control/styles/base-control-styles.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Gw:()=>StyledLabel,Om:()=>StyledVisualLabel,mO:()=>Wrapper,mh:()=>StyledField,te:()=>StyledHelp});var _emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),_emotion_react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/build-module/utils/font.js"),_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/build-module/utils/box-sizing.js"),_utils__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/components/build-module/utils/base-label.js"),_utils__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/components/build-module/utils/colors-values.js"),_utils_space__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/components/build-module/utils/space.js");const Wrapper=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("div",{target:"ej5x27r4"})("font-family:",(0,_utils__WEBPACK_IMPORTED_MODULE_1__.g)("default.fontFamily"),";font-size:",(0,_utils__WEBPACK_IMPORTED_MODULE_1__.g)("default.fontSize"),";",_utils__WEBPACK_IMPORTED_MODULE_2__.r,";"),deprecatedMarginField=({__nextHasNoMarginBottom=!1})=>!__nextHasNoMarginBottom&&(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)("margin-bottom:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_4__.x)(2),";","","",""),StyledField=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("div",{target:"ej5x27r3"})(deprecatedMarginField," .components-panel__row &{margin-bottom:inherit;}"),labelStyles=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)(_utils__WEBPACK_IMPORTED_MODULE_5__.z,";display:block;margin-bottom:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_4__.x)(2),";padding:0;","","",""),StyledLabel=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("label",{target:"ej5x27r2"})(labelStyles,";");var _ref={name:"11yad0w",styles:"margin-bottom:revert"};const deprecatedMarginHelp=({__nextHasNoMarginBottom=!1})=>!__nextHasNoMarginBottom&&_ref,StyledHelp=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("p",{target:"ej5x27r1"})("margin-top:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_4__.x)(2),";margin-bottom:0;font-size:",(0,_utils__WEBPACK_IMPORTED_MODULE_1__.g)("helpText.fontSize"),";font-style:normal;color:",_utils__WEBPACK_IMPORTED_MODULE_6__.l.gray[700],";",deprecatedMarginHelp,";"),StyledVisualLabel=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("span",{target:"ej5x27r0"})(labelStyles,";")},"./packages/components/build-module/utils/base-label.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{z:()=>baseLabelTypography});const baseLabelTypography={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"}},"./packages/components/build-module/utils/box-sizing.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{r:()=>boxSizingReset});const boxSizingReset={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"}},"./packages/components/build-module/utils/colors-values.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{l:()=>COLORS});const GRAY={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},THEME={accent:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",accentDarker10:"var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",accentDarker20:"var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6))",accentInverted:"var(--wp-components-color-accent-inverted, #fff)",background:"var(--wp-components-color-background, #fff)",foreground:`var(--wp-components-color-foreground, ${GRAY[900]})`,foregroundInverted:"var(--wp-components-color-foreground-inverted, #fff)",gray:{900:`var(--wp-components-color-foreground, ${GRAY[900]})`,800:`var(--wp-components-color-gray-800, ${GRAY[800]})`,700:`var(--wp-components-color-gray-700, ${GRAY[700]})`,600:`var(--wp-components-color-gray-600, ${GRAY[600]})`,400:`var(--wp-components-color-gray-400, ${GRAY[400]})`,300:`var(--wp-components-color-gray-300, ${GRAY[300]})`,200:`var(--wp-components-color-gray-200, ${GRAY[200]})`,100:`var(--wp-components-color-gray-100, ${GRAY[100]})`}},UI={background:THEME.background,backgroundDisabled:THEME.gray[100],border:THEME.gray[600],borderHover:THEME.gray[700],borderFocus:THEME.accent,borderDisabled:THEME.gray[400],textDisabled:THEME.gray[600],darkGrayPlaceholder:`color-mix(in srgb, ${THEME.foreground}, transparent 38%)`,lightGrayPlaceholder:`color-mix(in srgb, ${THEME.background}, transparent 35%)`},COLORS=Object.freeze({gray:GRAY,white:"#fff",alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},theme:THEME,ui:UI})},"./packages/components/build-module/utils/config-values.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _space__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/build-module/utils/space.js"),_colors_values__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/components/build-module/utils/colors-values.js");const CONTROL_PROPS={controlPaddingX:12,controlPaddingXSmall:8,controlPaddingXLarge:12*1.3334,controlBoxShadowFocus:`0 0 0 0.5px ${_colors_values__WEBPACK_IMPORTED_MODULE_0__.l.theme.accent}`,controlHeight:"36px",controlHeightXSmall:"calc( 36px * 0.6 )",controlHeightSmall:"calc( 36px * 0.8 )",controlHeightLarge:"calc( 36px * 1.2 )",controlHeightXLarge:"calc( 36px * 1.4 )"},__WEBPACK_DEFAULT_EXPORT__=Object.assign({},CONTROL_PROPS,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusXSmall:"1px",radiusSmall:"2px",radiusMedium:"4px",radiusLarge:"8px",radiusFull:"9999px",radiusRound:"50%",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.4",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardPaddingXSmall:`${(0,_space__WEBPACK_IMPORTED_MODULE_1__.x)(2)}`,cardPaddingSmall:`${(0,_space__WEBPACK_IMPORTED_MODULE_1__.x)(4)}`,cardPaddingMedium:`${(0,_space__WEBPACK_IMPORTED_MODULE_1__.x)(4)} ${(0,_space__WEBPACK_IMPORTED_MODULE_1__.x)(6)}`,cardPaddingLarge:`${(0,_space__WEBPACK_IMPORTED_MODULE_1__.x)(6)} ${(0,_space__WEBPACK_IMPORTED_MODULE_1__.x)(8)}`,elevationXSmall:"0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01)",elevationSmall:"0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02)",elevationMedium:"0 2px 3px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.04), 0 12px 12px rgba(0, 0, 0, 0.03), 0 16px 16px rgba(0, 0, 0, 0.02)",elevationLarge:"0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02)",surfaceBackgroundColor:_colors_values__WEBPACK_IMPORTED_MODULE_0__.l.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:_colors_values__WEBPACK_IMPORTED_MODULE_0__.l.white,surfaceColor:_colors_values__WEBPACK_IMPORTED_MODULE_0__.l.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"})},"./packages/components/build-module/utils/deprecated-36px-size.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{M:()=>maybeWarnDeprecated36pxSize});var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/deprecated/build-module/index.js");function maybeWarnDeprecated36pxSize({componentName,__next40pxDefaultSize,size,__shouldNotWarnDeprecated36pxSize}){__shouldNotWarnDeprecated36pxSize||__next40pxDefaultSize||void 0!==size&&"default"!==size||(0,_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_0__.A)(`36px default size for wp.components.${componentName}`,{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."})}},"./packages/components/build-module/utils/font.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{g:()=>font});const font_values={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function font(value){var _FONT$value;return null!==(_FONT$value=font_values[value])&&void 0!==_FONT$value?_FONT$value:""}},"./packages/components/build-module/utils/space.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{x:()=>space});const GRID_BASE="4px";function space(value){if(void 0===value)return;if(!value)return"0";const asInt="number"==typeof value?value:Number(value);return"undefined"!=typeof window&&window.CSS?.supports?.("margin",value.toString())||Number.isNaN(asInt)?value.toString():`calc(${GRID_BASE} * ${value})`}},"./packages/components/build-module/visually-hidden/component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>visually_hidden_component});var use_context_system=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),context_connect=__webpack_require__("./packages/components/build-module/context/context-connect.js");const visuallyHidden={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};var component=__webpack_require__("./packages/components/build-module/view/component.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const visually_hidden_component=(0,context_connect.KZ)((function UnconnectedVisuallyHidden(props,forwardedRef){const{style:styleProp,...contextProps}=(0,use_context_system.A)(props,"VisuallyHidden");return(0,jsx_runtime.jsx)(component.A,{ref:forwardedRef,...contextProps,style:{...visuallyHidden,...styleProp||{}}})}),"VisuallyHidden")},"./packages/compose/build-module/hooks/use-instance-id/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const instanceMap=new WeakMap;const __WEBPACK_DEFAULT_EXPORT__=function useInstanceId(object,prefix,preferredId){return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>{if(preferredId)return preferredId;const id=function createId(object){const instances=instanceMap.get(object)||0;return instanceMap.set(object,instances+1),instances}(object);return prefix?`${prefix}-${id}`:id}),[object,preferredId,prefix])}}}]); \ No newline at end of file diff --git a/2889.8f3e988f.iframe.bundle.js b/2889.8f3e988f.iframe.bundle.js new file mode 100644 index 00000000000000..9cb88bac2361ab --- /dev/null +++ b/2889.8f3e988f.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[2889],{"./node_modules/@ariakit/react-core/esm/__chunks/KPEX55MY.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{D1:()=>SelectScopedContextProvider,L4:()=>useSelectScopedContext,Mz:()=>SelectHeadingContext,hP:()=>useSelectContext,oZ:()=>useSelectProviderContext,uf:()=>SelectItemCheckedContext});var _P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P7GR5CS5.js"),_MTZPJQMC_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/MTZPJQMC.js"),_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),ctx=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.B0)([_MTZPJQMC_js__WEBPACK_IMPORTED_MODULE_2__.wf,_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_3__.ws],[_MTZPJQMC_js__WEBPACK_IMPORTED_MODULE_2__.s1,_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_3__.aN]),useSelectContext=ctx.useContext,useSelectScopedContext=ctx.useScopedContext,useSelectProviderContext=ctx.useProviderContext,SelectScopedContextProvider=(ctx.ContextProvider,ctx.ScopedContextProvider),SelectItemCheckedContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(!1),SelectHeadingContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null)},"./node_modules/@ariakit/react-core/esm/__chunks/PY4NZ6HS.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{W:()=>useTabStore});var VEVQD5MH=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/VEVQD5MH.js"),KPEX55MY=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/KPEX55MY.js"),_4CMBR7SL=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/4CMBR7SL.js"),YV4JVR4I=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js"),ABQUS43J=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),AJZ4BYF3=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/AJZ4BYF3.js"),CYQWQL4J=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/CYQWQL4J.js"),BCALMBPZ=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/BCALMBPZ.js"),PBFD2E7P=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),_chunks_3YLGPPWQ=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/3YLGPPWQ.js");function createTabStore(_a={}){var _b=_a,{composite:parentComposite,combobox}=_b,props=(0,_chunks_3YLGPPWQ.YG)(_b,["composite","combobox"]);const independentKeys=["items","renderedItems","moves","orientation","virtualFocus","includesBaseElement","baseElement","focusLoop","focusShift","focusWrap"],store=(0,BCALMBPZ.od)(props.store,(0,BCALMBPZ.cJ)(parentComposite,independentKeys),(0,BCALMBPZ.cJ)(combobox,independentKeys)),syncState=null==store?void 0:store.getState(),composite=(0,AJZ4BYF3.z)((0,_chunks_3YLGPPWQ.ko)((0,_chunks_3YLGPPWQ.IA)({},props),{store,includesBaseElement:(0,PBFD2E7P.Jh)(props.includesBaseElement,null==syncState?void 0:syncState.includesBaseElement,!1),orientation:(0,PBFD2E7P.Jh)(props.orientation,null==syncState?void 0:syncState.orientation,"horizontal"),focusLoop:(0,PBFD2E7P.Jh)(props.focusLoop,null==syncState?void 0:syncState.focusLoop,!0)})),panels=(0,CYQWQL4J.I)(),initialState=(0,_chunks_3YLGPPWQ.ko)((0,_chunks_3YLGPPWQ.IA)({},composite.getState()),{selectedId:(0,PBFD2E7P.Jh)(props.selectedId,null==syncState?void 0:syncState.selectedId,props.defaultSelectedId),selectOnMove:(0,PBFD2E7P.Jh)(props.selectOnMove,null==syncState?void 0:syncState.selectOnMove,!0)}),tab=(0,BCALMBPZ.y$)(initialState,composite,store);(0,BCALMBPZ.mj)(tab,(()=>(0,BCALMBPZ.OH)(tab,["moves"],(()=>{const{activeId,selectOnMove}=tab.getState();if(!selectOnMove)return;if(!activeId)return;const tabItem=composite.item(activeId);tabItem&&(tabItem.dimmed||tabItem.disabled||tab.setState("selectedId",tabItem.id))}))));let syncActiveId=!0;(0,BCALMBPZ.mj)(tab,(()=>(0,BCALMBPZ.vA)(tab,["selectedId"],((state,prev)=>{syncActiveId?parentComposite&&state.selectedId===prev.selectedId||tab.setState("activeId",state.selectedId):syncActiveId=!0})))),(0,BCALMBPZ.mj)(tab,(()=>(0,BCALMBPZ.OH)(tab,["selectedId","renderedItems"],(state=>{if(void 0!==state.selectedId)return;const{activeId,renderedItems}=tab.getState(),tabItem=composite.item(activeId);if(!tabItem||tabItem.disabled||tabItem.dimmed){const tabItem2=renderedItems.find((item=>!item.disabled&&!item.dimmed));tab.setState("selectedId",null==tabItem2?void 0:tabItem2.id)}else tab.setState("selectedId",tabItem.id)})))),(0,BCALMBPZ.mj)(tab,(()=>(0,BCALMBPZ.OH)(tab,["renderedItems"],(state=>{const tabs=state.renderedItems;if(tabs.length)return(0,BCALMBPZ.OH)(panels,["renderedItems"],(state2=>{const items=state2.renderedItems;items.some((panel=>!panel.tabId))&&items.forEach(((panel,i)=>{if(panel.tabId)return;const tabItem=tabs[i];tabItem&&panels.renderItem((0,_chunks_3YLGPPWQ.ko)((0,_chunks_3YLGPPWQ.IA)({},panel),{tabId:tabItem.id}))}))}))}))));let selectedIdFromSelectedValue=null;return(0,BCALMBPZ.mj)(tab,(()=>{const backupSelectedId=()=>{selectedIdFromSelectedValue=tab.getState().selectedId},restoreSelectedId=()=>{syncActiveId=!1,tab.setState("selectedId",selectedIdFromSelectedValue)};return parentComposite&&"setSelectElement"in parentComposite?(0,PBFD2E7P.cy)((0,BCALMBPZ.OH)(parentComposite,["value"],backupSelectedId),(0,BCALMBPZ.OH)(parentComposite,["mounted"],restoreSelectedId)):combobox?(0,PBFD2E7P.cy)((0,BCALMBPZ.OH)(combobox,["selectedValue"],backupSelectedId),(0,BCALMBPZ.OH)(combobox,["mounted"],restoreSelectedId)):void 0})),(0,_chunks_3YLGPPWQ.ko)((0,_chunks_3YLGPPWQ.IA)((0,_chunks_3YLGPPWQ.IA)({},composite),tab),{panels,setSelectedId:id=>tab.setState("selectedId",id),select:id=>{tab.setState("selectedId",id),composite.move(id)}})}var react=__webpack_require__("./node_modules/react/index.js");function useTabStore(props={}){const combobox=(0,VEVQD5MH.Ay)(),composite=(0,KPEX55MY.hP)()||combobox;props=(0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({},props),{composite:void 0!==props.composite?props.composite:composite,combobox:void 0!==props.combobox?props.combobox:combobox});const[store,update]=(0,YV4JVR4I.Pj)(createTabStore,props);return function useTabStoreProps(store,update,props){(0,ABQUS43J.w5)(update,[props.composite,props.combobox]),store=(0,_4CMBR7SL.YO)(store,update,props),(0,YV4JVR4I.Tz)(store,props,"selectedId","setSelectedId"),(0,YV4JVR4I.Tz)(store,props,"selectOnMove");const[panels,updatePanels]=(0,YV4JVR4I.Pj)((()=>store.panels),{});return(0,ABQUS43J.w5)(updatePanels,[store,updatePanels]),Object.assign((0,react.useMemo)((()=>(0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({},store),{panels})),[store,panels]),{composite:props.composite,combobox:props.combobox})}(store,update,props)}},"./node_modules/@ariakit/react-core/esm/__chunks/UYGDZTLQ.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Cr:()=>TabScopedContextProvider,M_:()=>useTabScopedContext,np:()=>useTabProviderContext});var _P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P7GR5CS5.js"),ctx=(0,__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js").B0)([_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_1__.ws],[_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_1__.aN]),useTabScopedContext=(ctx.useContext,ctx.useScopedContext),useTabProviderContext=ctx.useProviderContext,TabScopedContextProvider=(ctx.ContextProvider,ctx.ScopedContextProvider)},"./node_modules/@ariakit/react-core/esm/__chunks/VEVQD5MH.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Ay:()=>useComboboxContext,CE:()=>ComboboxContextProvider,Hf:()=>ComboboxListRoleContext,Hh:()=>ComboboxItemCheckedContext,Ky:()=>ComboboxScopedContextProvider,L7:()=>ComboboxItemValueContext,PV:()=>useComboboxProviderContext,UW:()=>useComboboxScopedContext});var _P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P7GR5CS5.js"),_MTZPJQMC_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/MTZPJQMC.js"),_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),ComboboxListRoleContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(void 0),ctx=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.B0)([_MTZPJQMC_js__WEBPACK_IMPORTED_MODULE_2__.wf,_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_3__.ws],[_MTZPJQMC_js__WEBPACK_IMPORTED_MODULE_2__.s1,_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_3__.aN]),useComboboxContext=ctx.useContext,useComboboxScopedContext=ctx.useScopedContext,useComboboxProviderContext=ctx.useProviderContext,ComboboxContextProvider=ctx.ContextProvider,ComboboxScopedContextProvider=ctx.ScopedContextProvider,ComboboxItemValueContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(void 0),ComboboxItemCheckedContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(!1)},"./node_modules/@ariakit/react-core/esm/tab/tab-list.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{w:()=>TabList});var _chunks_UYGDZTLQ_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/UYGDZTLQ.js"),_chunks_ITI7HKP4_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ITI7HKP4.js"),_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js"),useTabList=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.ab)((function useTabList2(_a){var _b=_a,{store}=_b,props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.YG)(_b,["store"]);const context=(0,_chunks_UYGDZTLQ_js__WEBPACK_IMPORTED_MODULE_3__.np)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_4__.V1)(store,!1);const orientation=store.useState((state=>"both"===state.orientation?void 0:state.orientation));return props=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.w7)(props,(element=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_chunks_UYGDZTLQ_js__WEBPACK_IMPORTED_MODULE_3__.Cr,{value:store,children:element})),[store]),store.composite&&(props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.IA)({focusable:!1},props)),props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.IA)({role:"tablist","aria-orientation":orientation},props),props=(0,_chunks_ITI7HKP4_js__WEBPACK_IMPORTED_MODULE_6__.T)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.IA)({store},props))})),TabList=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.Rf)((function TabList2(props){const htmlProps=useTabList(props);return(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.n)("div",htmlProps)}))},"./node_modules/@ariakit/react-core/esm/tab/tab-panel.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{K:()=>TabPanel});var _chunks_UYGDZTLQ_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/UYGDZTLQ.js"),_chunks_RZ4GPYOB_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/RZ4GPYOB.js"),_chunks_VGCJ63VH_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/VGCJ63VH.js"),_chunks_LVA2YJMS_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LVA2YJMS.js"),_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_chunks_WYCIER3C_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/WYCIER3C.js"),_chunks_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js"),_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@ariakit/core/esm/utils/focus.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),useTabPanel=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.ab)((function useTabPanel2(_a){var _b=_a,{store,unmountOnHide,tabId:tabIdProp,getItem:getItemProp,scrollRestoration,scrollElement}=_b,props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.YG)(_b,["store","unmountOnHide","tabId","getItem","scrollRestoration","scrollElement"]);const context=(0,_chunks_UYGDZTLQ_js__WEBPACK_IMPORTED_MODULE_4__.np)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.V1)(store,!1);const ref=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),id=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.Bi)(props.id),tabId=(0,_chunks_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_7__.O$)(store.panels,(()=>{var _a2;return tabIdProp||(null==(_a2=null==store?void 0:store.panels.item(id))?void 0:_a2.tabId)})),open=(0,_chunks_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_7__.O$)(store,(state=>!!tabId&&state.selectedId===tabId)),disclosure=(0,_chunks_WYCIER3C_js__WEBPACK_IMPORTED_MODULE_8__.E)({open}),mounted=(0,_chunks_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_7__.O$)(disclosure,"mounted"),scrollPositionRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(new Map),getScrollElement=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__._q)((()=>{const panelElement=ref.current;return panelElement?scrollElement?"function"==typeof scrollElement?scrollElement(panelElement):"current"in scrollElement?scrollElement.current:scrollElement:panelElement:null}));(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{var _a2,_b2;if(!scrollRestoration)return;if(!mounted)return;const element=getScrollElement();if(!element)return;if("reset"===scrollRestoration)return void element.scroll(0,0);if(!tabId)return;const position=scrollPositionRef.current.get(tabId);element.scroll(null!=(_a2=null==position?void 0:position.x)?_a2:0,null!=(_b2=null==position?void 0:position.y)?_b2:0);const onScroll=()=>{scrollPositionRef.current.set(tabId,{x:element.scrollLeft,y:element.scrollTop})};return element.addEventListener("scroll",onScroll),()=>{element.removeEventListener("scroll",onScroll)}}),[scrollRestoration,mounted,tabId,getScrollElement,store]);const[hasTabbableChildren,setHasTabbableChildren]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{const element=ref.current;if(!element)return;const tabbable=(0,_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_9__.a9)(element);setHasTabbableChildren(!!tabbable.length)}),[]);const getItem=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((item=>{const nextItem=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({},item),{id:id||item.id,tabId:tabIdProp});return getItemProp?getItemProp(nextItem):nextItem}),[id,tabIdProp,getItemProp]),onKeyDownProp=props.onKeyDown,onKeyDown=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__._q)((event=>{if(null==onKeyDownProp||onKeyDownProp(event),event.defaultPrevented)return;if(!(null==store?void 0:store.composite))return;const action={ArrowLeft:store.previous,ArrowRight:store.next,Home:store.first,End:store.last}[event.key];if(!action)return;const{selectedId}=store.getState(),nextId=action({activeId:selectedId});nextId&&(event.preventDefault(),store.move(nextId))}));return props=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.w7)(props,(element=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_chunks_UYGDZTLQ_js__WEBPACK_IMPORTED_MODULE_4__.Cr,{value:store,children:element})),[store]),props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({id,role:"tabpanel","aria-labelledby":tabId||void 0},props),{children:unmountOnHide&&!mounted?null:props.children,ref:(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.SV)(ref,props.ref),onKeyDown}),props=(0,_chunks_LVA2YJMS_js__WEBPACK_IMPORTED_MODULE_10__.Wc)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({focusable:!store.composite&&!hasTabbableChildren},props)),props=(0,_chunks_VGCJ63VH_js__WEBPACK_IMPORTED_MODULE_11__.aT)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({store:disclosure},props)),props=(0,_chunks_RZ4GPYOB_js__WEBPACK_IMPORTED_MODULE_12__.v)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({store:store.panels},props),{getItem}))})),TabPanel=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.Rf)((function TabPanel2(props){const htmlProps=useTabPanel(props);return(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.n)("div",htmlProps)}))},"./node_modules/@ariakit/react-core/esm/tab/tab.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{o:()=>Tab});var _chunks_UYGDZTLQ_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/UYGDZTLQ.js"),_chunks_P2CTZE2T_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P2CTZE2T.js"),_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_chunks_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js"),_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),useTab=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.ab)((function useTab2(_a){var _a2,_b=_a,{store,getItem:getItemProp}=_b,props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.YG)(_b,["store","getItem"]);const context=(0,_chunks_UYGDZTLQ_js__WEBPACK_IMPORTED_MODULE_4__.M_)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.V1)(store,!1);const defaultId=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.Bi)(),id=props.id||defaultId,dimmed=(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.$f)(props),getItem=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((item=>{const nextItem=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({},item),{dimmed});return getItemProp?getItemProp(nextItem):nextItem}),[dimmed,getItemProp]),onClickProp=props.onClick,onClick=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__._q)((event=>{null==onClickProp||onClickProp(event),event.defaultPrevented||null==store||store.setSelectedId(id)})),panelId=store.panels.useState((state=>{var _a3;return null==(_a3=state.items.find((item=>item.tabId===id)))?void 0:_a3.id})),shouldRegisterItem=!!defaultId&&props.shouldRegisterItem,isActive=store.useState((state=>!!id&&state.activeId===id)),selected=store.useState((state=>!!id&&state.selectedId===id)),hasActiveItem=store.useState((state=>!!store.item(state.activeId))),canRegisterComposedItem=isActive||selected&&!hasActiveItem,accessibleWhenDisabled=selected||null==(_a2=props.accessibleWhenDisabled)||_a2;if((0,_chunks_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_7__.O$)(store.combobox||store.composite,"virtualFocus")&&(props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({},props),{tabIndex:-1})),props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({id,role:"tab","aria-selected":selected,"aria-controls":panelId||void 0},props),{onClick}),store.composite){const defaultProps={id,accessibleWhenDisabled,store:store.composite,shouldRegisterItem:canRegisterComposedItem&&shouldRegisterItem,rowId:props.rowId,render:props.render};props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({},props),{render:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_chunks_P2CTZE2T_js__WEBPACK_IMPORTED_MODULE_8__.l,(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({},defaultProps),{render:store.combobox&&store.composite!==store.combobox?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_chunks_P2CTZE2T_js__WEBPACK_IMPORTED_MODULE_8__.l,(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({},defaultProps),{store:store.combobox})):defaultProps.render}))})}return props=(0,_chunks_P2CTZE2T_js__WEBPACK_IMPORTED_MODULE_8__.k)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({store},props),{accessibleWhenDisabled,getItem,shouldRegisterItem}))})),Tab=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.ph)((0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.Rf)((function Tab2(props){const htmlProps=useTab(props);return(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.n)("button",htmlProps)})))}}]); \ No newline at end of file diff --git a/297.6205d7f3.iframe.bundle.js b/297.6205d7f3.iframe.bundle.js new file mode 100644 index 00000000000000..4182bb7d7519cf --- /dev/null +++ b/297.6205d7f3.iframe.bundle.js @@ -0,0 +1,9 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[297],{"./packages/components/build-module/composite/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{e:()=>Composite});var _4CMBR7SL=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/4CMBR7SL.js"),ITI7HKP4=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ITI7HKP4.js"),build_module=__webpack_require__("./packages/i18n/build-module/index.js"),react=__webpack_require__("./node_modules/react/index.js");const CompositeContext=(0,react.createContext)({}),useCompositeContext=()=>(0,react.useContext)(CompositeContext);var YORGHBM4=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YORGHBM4.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const CompositeGroup=(0,react.forwardRef)((function CompositeGroup(props,ref){var _props$store;const context=useCompositeContext(),store=null!==(_props$store=props.store)&&void 0!==_props$store?_props$store:context.store;return(0,jsx_runtime.jsx)(YORGHBM4.t,{store,...props,ref})}));var SWSPTQMT=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/SWSPTQMT.js");const CompositeGroupLabel=(0,react.forwardRef)((function CompositeGroupLabel(props,ref){var _props$store;const context=useCompositeContext(),store=null!==(_props$store=props.store)&&void 0!==_props$store?_props$store:context.store;return(0,jsx_runtime.jsx)(SWSPTQMT.$,{store,...props,ref})}));var UQQRIHDV=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/UQQRIHDV.js");const CompositeHover=(0,react.forwardRef)((function CompositeHover(props,ref){var _props$store;const context=useCompositeContext(),store=null!==(_props$store=props.store)&&void 0!==_props$store?_props$store:context.store;return(0,jsx_runtime.jsx)(UQQRIHDV.c,{store,...props,ref})}));var P2CTZE2T=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P2CTZE2T.js");const CompositeItem=(0,react.forwardRef)((function CompositeItem(props,ref){var _props$store;const context=useCompositeContext(),store=null!==(_props$store=props.store)&&void 0!==_props$store?_props$store:context.store;return(0,jsx_runtime.jsx)(P2CTZE2T.l,{store,...props,ref})}));var J2LQO3EC=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/J2LQO3EC.js");const CompositeRow=(0,react.forwardRef)((function CompositeRow(props,ref){var _props$store;const context=useCompositeContext(),store=null!==(_props$store=props.store)&&void 0!==_props$store?_props$store:context.store;return(0,jsx_runtime.jsx)(J2LQO3EC.s,{store,...props,ref})}));var T7VMP3TM=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/T7VMP3TM.js");const CompositeTypeahead=(0,react.forwardRef)((function CompositeTypeahead(props,ref){var _props$store;const context=useCompositeContext(),store=null!==(_props$store=props.store)&&void 0!==_props$store?_props$store:context.store;return(0,jsx_runtime.jsx)(T7VMP3TM.f,{store,...props,ref})})),Composite=Object.assign((0,react.forwardRef)((function Composite({activeId,defaultActiveId,setActiveId,focusLoop=!1,focusWrap=!1,focusShift=!1,virtualFocus=!1,orientation="both",rtl=(0,build_module.V8)(),children,disabled=!1,...props},ref){const storeProp=props.store,internalStore=_4CMBR7SL.q4({activeId,defaultActiveId,setActiveId,focusLoop,focusWrap,focusShift,virtualFocus,orientation,rtl}),store=null!=storeProp?storeProp:internalStore,contextValue=(0,react.useMemo)((()=>({store})),[store]);return(0,jsx_runtime.jsx)(ITI7HKP4.e,{disabled,store,...props,ref,children:(0,jsx_runtime.jsx)(CompositeContext.Provider,{value:contextValue,children})})})),{Group:Object.assign(CompositeGroup,{displayName:"Composite.Group"}),GroupLabel:Object.assign(CompositeGroupLabel,{displayName:"Composite.GroupLabel"}),Item:Object.assign(CompositeItem,{displayName:"Composite.Item"}),Row:Object.assign(CompositeRow,{displayName:"Composite.Row"}),Hover:Object.assign(CompositeHover,{displayName:"Composite.Hover"}),Typeahead:Object.assign(CompositeTypeahead,{displayName:"Composite.Typeahead"}),Context:Object.assign(CompositeContext,{displayName:"Composite.Context"})})},"./packages/components/build-module/item-group/context.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{C:()=>ItemGroupContext,j:()=>useItemGroupContext});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const ItemGroupContext=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createContext)({size:"medium"}),useItemGroupContext=()=>(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useContext)(ItemGroupContext)},"./packages/components/build-module/item-group/item-group/component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>item_group_component});var context_connect=__webpack_require__("./packages/components/build-module/context/context-connect.js"),use_context_system=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),styles=__webpack_require__("./packages/components/build-module/item-group/styles.js"),use_cx=__webpack_require__("./packages/components/build-module/utils/hooks/use-cx.js");var context=__webpack_require__("./packages/components/build-module/item-group/context.js"),component=__webpack_require__("./packages/components/build-module/view/component.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const item_group_component=(0,context_connect.KZ)((function UnconnectedItemGroup(props,forwardedRef){const{isBordered,isSeparated,size:sizeProp,...otherProps}=function useItemGroup(props){const{className,isBordered=!1,isRounded=!0,isSeparated=!1,role="list",...otherProps}=(0,use_context_system.A)(props,"ItemGroup");return{isBordered,className:(0,use_cx.l)()(isBordered&&styles.sW,isSeparated&&styles.Ci,isRounded&&styles.Wf,className),role,isSeparated,...otherProps}}(props),{size:contextSize}=(0,context.j)(),contextValue={spacedAround:!isBordered&&!isSeparated,size:sizeProp||contextSize};return(0,jsx_runtime.jsx)(context.C.Provider,{value:contextValue,children:(0,jsx_runtime.jsx)(component.A,{...otherProps,ref:forwardedRef})})}),"ItemGroup")},"./packages/components/build-module/item-group/item/component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>item_component});var react=__webpack_require__("./node_modules/react/index.js"),use_context_system=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),styles=__webpack_require__("./packages/components/build-module/item-group/styles.js"),context=__webpack_require__("./packages/components/build-module/item-group/context.js"),use_cx=__webpack_require__("./packages/components/build-module/utils/hooks/use-cx.js");var context_connect=__webpack_require__("./packages/components/build-module/context/context-connect.js"),component=__webpack_require__("./packages/components/build-module/view/component.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const item_component=(0,context_connect.KZ)((function UnconnectedItem(props,forwardedRef){const{role,wrapperClassName,...otherProps}=function useItem(props){const{as:asProp,className,onClick,role="listitem",size:sizeProp,...otherProps}=(0,use_context_system.A)(props,"Item"),{spacedAround,size:contextSize}=(0,context.j)(),size=sizeProp||contextSize,as=asProp||(void 0!==onClick?"button":"div"),cx=(0,use_cx.l)(),classes=(0,react.useMemo)((()=>cx(("button"===as||"a"===as)&&styles.DB(as),styles.AV[size]||styles.AV.medium,styles.AS,spacedAround&&styles.GN,className)),[as,className,cx,size,spacedAround]),wrapperClassName=cx(styles.D5);return{as,className:classes,onClick,wrapperClassName,role,...otherProps}}(props);return(0,jsx_runtime.jsx)("div",{role,className:wrapperClassName,children:(0,jsx_runtime.jsx)(component.A,{...otherProps,ref:forwardedRef})})}),"Item")},"./packages/components/build-module/item-group/styles.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{AS:()=>item,AV:()=>itemSizes,Ci:()=>separated,D5:()=>itemWrapper,DB:()=>unstyledButton,GN:()=>spacedAround,Wf:()=>rounded,sW:()=>bordered});var _emotion_react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/build-module/utils/font.js"),_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/build-module/utils/colors-values.js"),_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/components/build-module/utils/config-values.js");const unstyledButton=as=>(0,_emotion_react__WEBPACK_IMPORTED_MODULE_0__.AH)("font-size:",(0,_utils__WEBPACK_IMPORTED_MODULE_1__.g)("default.fontSize"),";font-family:inherit;appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:start;text-decoration:","a"===as?"none":void 0,";svg,path{fill:currentColor;}&:hover{color:",_utils__WEBPACK_IMPORTED_MODULE_2__.l.theme.accent,";}&:focus{box-shadow:none;outline:none;}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",_utils__WEBPACK_IMPORTED_MODULE_2__.l.theme.accent,";outline:2px solid transparent;outline-offset:0;}","","",""),itemWrapper={name:"1bcj5ek",styles:"width:100%;display:block"},item={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},bordered=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_0__.AH)("border:1px solid ",_utils__WEBPACK_IMPORTED_MODULE_3__.A.surfaceBorderColor,";","","",""),separated=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_0__.AH)(">*:not( marquee )>*{border-bottom:1px solid ",_utils__WEBPACK_IMPORTED_MODULE_3__.A.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}","","",""),borderRadius=_utils__WEBPACK_IMPORTED_MODULE_3__.A.radiusSmall,spacedAround=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_0__.AH)("border-radius:",borderRadius,";","","",""),rounded=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_0__.AH)("border-radius:",borderRadius,";>*:first-of-type>*{border-top-left-radius:",borderRadius,";border-top-right-radius:",borderRadius,";}>*:last-of-type>*{border-bottom-left-radius:",borderRadius,";border-bottom-right-radius:",borderRadius,";}","","",""),baseFontHeight=`calc(${_utils__WEBPACK_IMPORTED_MODULE_3__.A.fontSize} * ${_utils__WEBPACK_IMPORTED_MODULE_3__.A.fontLineHeightBase})`,paddingY=`calc((${_utils__WEBPACK_IMPORTED_MODULE_3__.A.controlHeight} - ${baseFontHeight} - 2px) / 2)`,paddingYSmall=`calc((${_utils__WEBPACK_IMPORTED_MODULE_3__.A.controlHeightSmall} - ${baseFontHeight} - 2px) / 2)`,paddingYLarge=`calc((${_utils__WEBPACK_IMPORTED_MODULE_3__.A.controlHeightLarge} - ${baseFontHeight} - 2px) / 2)`,itemSizes={small:(0,_emotion_react__WEBPACK_IMPORTED_MODULE_0__.AH)("padding:",paddingYSmall," ",_utils__WEBPACK_IMPORTED_MODULE_3__.A.controlPaddingXSmall,"px;","","",""),medium:(0,_emotion_react__WEBPACK_IMPORTED_MODULE_0__.AH)("padding:",paddingY," ",_utils__WEBPACK_IMPORTED_MODULE_3__.A.controlPaddingX,"px;","","",""),large:(0,_emotion_react__WEBPACK_IMPORTED_MODULE_0__.AH)("padding:",paddingYLarge," ",_utils__WEBPACK_IMPORTED_MODULE_3__.A.controlPaddingXLarge,"px;","","","")}},"./packages/components/build-module/modal/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>modal});var clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),react=__webpack_require__("./node_modules/react/index.js"),react_dom=__webpack_require__("./node_modules/react-dom/index.js"),use_instance_id=__webpack_require__("./packages/compose/build-module/hooks/use-instance-id/index.js"),use_focus_on_mount=__webpack_require__("./packages/compose/build-module/hooks/use-focus-on-mount/index.js"),use_constrained_tabbing=__webpack_require__("./packages/compose/build-module/hooks/use-constrained-tabbing/index.js"),use_focus_return=__webpack_require__("./packages/compose/build-module/hooks/use-focus-return/index.js"),use_merge_refs=__webpack_require__("./packages/compose/build-module/hooks/use-merge-refs/index.js"),build_module=__webpack_require__("./packages/i18n/build-module/index.js"),library_close=__webpack_require__("./packages/icons/build-module/library/close.js"),get_scroll_container=__webpack_require__("./packages/dom/build-module/dom/get-scroll-container.js");const LIVE_REGION_ARIA_ROLES=new Set(["alert","status","log","marquee","timer"]),hiddenElementsByDepth=[];function elementShouldBeHidden(element){const role=element.getAttribute("role");return!("SCRIPT"===element.tagName||element.hasAttribute("hidden")||element.hasAttribute("aria-hidden")||element.hasAttribute("aria-live")||role&&LIVE_REGION_ARIA_ROLES.has(role))}var build_module_button=__webpack_require__("./packages/components/build-module/button/index.js"),style_provider=__webpack_require__("./packages/components/build-module/style-provider/index.js"),with_ignore_ime_events=__webpack_require__("./packages/components/build-module/utils/with-ignore-ime-events.js"),component=__webpack_require__("./packages/components/build-module/spacer/component.js"),use_reduced_motion=__webpack_require__("./packages/compose/build-module/hooks/use-reduced-motion/index.js"),config_values=__webpack_require__("./packages/components/build-module/utils/config-values.js");const FRAME_ANIMATION_DURATION=config_values.A.transitionDuration,FRAME_ANIMATION_DURATION_NUMBER=Number.parseInt(config_values.A.transitionDuration),EXIT_ANIMATION_NAME="components-modal__disappear-animation";var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const ModalContext=(0,react.createContext)(new Set),bodyOpenClasses=new Map;const Modal=(0,react.forwardRef)((function UnforwardedModal(props,forwardedRef){const{bodyOpenClassName="modal-open",role="dialog",title=null,focusOnMount=!0,shouldCloseOnEsc=!0,shouldCloseOnClickOutside=!0,isDismissible=!0,aria={labelledby:void 0,describedby:void 0},onRequestClose,icon,closeButtonLabel,children,style,overlayClassName:overlayClassnameProp,className,contentLabel,onKeyDown,isFullScreen=!1,size,headerActions=null,__experimentalHideHeader=!1}=props,ref=(0,react.useRef)(),instanceId=(0,use_instance_id.A)(Modal),headingId=title?`components-modal-header-${instanceId}`:aria.labelledby,focusOnMountRef=(0,use_focus_on_mount.A)("firstContentElement"===focusOnMount?"firstElement":focusOnMount),constrainedTabbingRef=(0,use_constrained_tabbing.A)(),focusReturnRef=(0,use_focus_return.A)(),contentRef=(0,react.useRef)(null),childrenContainerRef=(0,react.useRef)(null),[hasScrolledContent,setHasScrolledContent]=(0,react.useState)(!1),[hasScrollableContent,setHasScrollableContent]=(0,react.useState)(!1);let sizeClass;isFullScreen||"fill"===size?sizeClass="is-full-screen":size&&(sizeClass=`has-size-${size}`);const isContentScrollable=(0,react.useCallback)((()=>{if(!contentRef.current)return;const closestScrollContainer=(0,get_scroll_container.A)(contentRef.current);contentRef.current===closestScrollContainer?setHasScrollableContent(!0):setHasScrollableContent(!1)}),[contentRef]);(0,react.useEffect)((()=>(function modalize(modalElement){const elements=Array.from(document.body.children),hiddenElements=[];hiddenElementsByDepth.push(hiddenElements);for(const element of elements)element!==modalElement&&elementShouldBeHidden(element)&&(element.setAttribute("aria-hidden","true"),hiddenElements.push(element))}(ref.current),()=>function unmodalize(){const hiddenElements=hiddenElementsByDepth.pop();if(hiddenElements)for(const element of hiddenElements)element.removeAttribute("aria-hidden")}())),[]);const onRequestCloseRef=(0,react.useRef)();(0,react.useEffect)((()=>{onRequestCloseRef.current=onRequestClose}),[onRequestClose]);const dismissers=(0,react.useContext)(ModalContext),[nestedDismissers]=(0,react.useState)((()=>new Set));(0,react.useEffect)((()=>{dismissers.add(onRequestCloseRef);for(const dismisser of dismissers)dismisser!==onRequestCloseRef&&dismisser.current?.();return()=>{for(const dismisser of nestedDismissers)dismisser.current?.();dismissers.delete(onRequestCloseRef)}}),[dismissers,nestedDismissers]),(0,react.useEffect)((()=>{var _bodyOpenClasses$get;const theClass=bodyOpenClassName,oneMore=1+(null!==(_bodyOpenClasses$get=bodyOpenClasses.get(theClass))&&void 0!==_bodyOpenClasses$get?_bodyOpenClasses$get:0);return bodyOpenClasses.set(theClass,oneMore),document.body.classList.add(bodyOpenClassName),()=>{const oneLess=bodyOpenClasses.get(theClass)-1;0===oneLess?(document.body.classList.remove(theClass),bodyOpenClasses.delete(theClass)):bodyOpenClasses.set(theClass,oneLess)}}),[bodyOpenClassName]);const{closeModal,frameRef,frameStyle,overlayClassname}=function useModalExitAnimation(){const frameRef=(0,react.useRef)(),[isAnimatingOut,setIsAnimatingOut]=(0,react.useState)(!1),isReducedMotion=(0,use_reduced_motion.A)(),closeModal=(0,react.useCallback)((()=>new Promise((closeModalResolve=>{const frameEl=frameRef.current;if(isReducedMotion)return void closeModalResolve();if(!frameEl)return void closeModalResolve();let handleAnimationEnd;Promise.race([new Promise((animationResolve=>{handleAnimationEnd=e=>{e.animationName===EXIT_ANIMATION_NAME&&animationResolve()},frameEl.addEventListener("animationend",handleAnimationEnd),setIsAnimatingOut(!0)})),new Promise((timeoutResolve=>{setTimeout((()=>timeoutResolve()),1.2*FRAME_ANIMATION_DURATION_NUMBER)}))]).then((()=>{handleAnimationEnd&&frameEl.removeEventListener("animationend",handleAnimationEnd),setIsAnimatingOut(!1),closeModalResolve()}))}))),[isReducedMotion]);return{overlayClassname:isAnimatingOut?"is-animating-out":void 0,frameRef,frameStyle:{"--modal-frame-animation-duration":`${FRAME_ANIMATION_DURATION}`},closeModal}}();(0,react.useLayoutEffect)((()=>{if(!window.ResizeObserver||!childrenContainerRef.current)return;const resizeObserver=new ResizeObserver(isContentScrollable);return resizeObserver.observe(childrenContainerRef.current),isContentScrollable(),()=>{resizeObserver.disconnect()}}),[isContentScrollable,childrenContainerRef]);const onContentContainerScroll=(0,react.useCallback)((e=>{var _e$currentTarget$scro;const scrollY=null!==(_e$currentTarget$scro=e?.currentTarget?.scrollTop)&&void 0!==_e$currentTarget$scro?_e$currentTarget$scro:-1;!hasScrolledContent&&scrollY>0?setHasScrolledContent(!0):hasScrolledContent&&scrollY<=0&&setHasScrolledContent(!1)}),[hasScrolledContent]);let pressTarget=null;const overlayPressHandlers={onPointerDown:event=>{event.target===event.currentTarget&&(pressTarget=event.target,event.preventDefault())},onPointerUp:({target,button})=>{const isSameTarget=target===pressTarget;pressTarget=null,0===button&&isSameTarget&&closeModal().then((()=>onRequestClose()))}},modal=(0,jsx_runtime.jsx)("div",{ref:(0,use_merge_refs.A)([ref,forwardedRef]),className:(0,clsx.A)("components-modal__screen-overlay",overlayClassname,overlayClassnameProp),onKeyDown:(0,with_ignore_ime_events.n)((function handleEscapeKeyDown(event){!shouldCloseOnEsc||"Escape"!==event.code&&"Escape"!==event.key||event.defaultPrevented||(event.preventDefault(),closeModal().then((()=>onRequestClose(event))))})),...shouldCloseOnClickOutside?overlayPressHandlers:{},children:(0,jsx_runtime.jsx)(style_provider.A,{document,children:(0,jsx_runtime.jsx)("div",{className:(0,clsx.A)("components-modal__frame",sizeClass,className),style:{...frameStyle,...style},ref:(0,use_merge_refs.A)([frameRef,constrainedTabbingRef,focusReturnRef,"firstContentElement"!==focusOnMount?focusOnMountRef:null]),role,"aria-label":contentLabel,"aria-labelledby":contentLabel?void 0:headingId,"aria-describedby":aria.describedby,tabIndex:-1,onKeyDown,children:(0,jsx_runtime.jsxs)("div",{className:(0,clsx.A)("components-modal__content",{"hide-header":__experimentalHideHeader,"is-scrollable":hasScrollableContent,"has-scrolled-content":hasScrolledContent}),role:"document",onScroll:onContentContainerScroll,ref:contentRef,"aria-label":hasScrollableContent?(0,build_module.__)("Scrollable section"):void 0,tabIndex:hasScrollableContent?0:void 0,children:[!__experimentalHideHeader&&(0,jsx_runtime.jsxs)("div",{className:"components-modal__header",children:[(0,jsx_runtime.jsxs)("div",{className:"components-modal__header-heading-container",children:[icon&&(0,jsx_runtime.jsx)("span",{className:"components-modal__icon-container","aria-hidden":!0,children:icon}),title&&(0,jsx_runtime.jsx)("h1",{id:headingId,className:"components-modal__header-heading",children:title})]}),headerActions,isDismissible&&(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(component.A,{marginBottom:0,marginLeft:2}),(0,jsx_runtime.jsx)(build_module_button.Ay,{size:"compact",onClick:event=>closeModal().then((()=>onRequestClose(event))),icon:library_close.A,label:closeButtonLabel||(0,build_module.__)("Close")})]})]}),(0,jsx_runtime.jsx)("div",{ref:(0,use_merge_refs.A)([childrenContainerRef,"firstContentElement"===focusOnMount?focusOnMountRef:null]),children})]})})})});return(0,react_dom.createPortal)((0,jsx_runtime.jsx)(ModalContext.Provider,{value:nestedDismissers,children:modal}),document.body)})),modal=Modal},"./packages/components/build-module/search-control/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>search_control});var clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),use_instance_id=__webpack_require__("./packages/compose/build-module/hooks/use-instance-id/index.js"),use_merge_refs=__webpack_require__("./packages/compose/build-module/hooks/use-merge-refs/index.js"),build_module=__webpack_require__("./packages/i18n/build-module/index.js"),icon=__webpack_require__("./packages/icons/build-module/icon/index.js"),search=__webpack_require__("./packages/icons/build-module/library/search.js"),close_small=__webpack_require__("./packages/icons/build-module/library/close-small.js"),react=__webpack_require__("./node_modules/react/index.js"),deprecated_build_module=__webpack_require__("./packages/deprecated/build-module/index.js"),build_module_button=__webpack_require__("./packages/components/build-module/button/index.js"),context_system_provider=__webpack_require__("./packages/components/build-module/context/context-system-provider.js"),emotion_styled_base_browser_esm=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),space=__webpack_require__("./packages/components/build-module/utils/space.js"),input_control=__webpack_require__("./packages/components/build-module/input-control/index.js"),colors_values=__webpack_require__("./packages/components/build-module/utils/colors-values.js");const inlinePadding=({size})=>(0,space.x)("compact"===size?1:2),SuffixItemWrapper=(0,emotion_styled_base_browser_esm.A)("div",{target:"effl84m1"})("display:flex;padding-inline-end:",inlinePadding,";svg{fill:currentColor;}"),StyledInputControl=(0,emotion_styled_base_browser_esm.A)(input_control.Ay,{target:"effl84m0"})("input[type='search']{&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{-webkit-appearance:none;}}&:not( :focus-within ){--wp-components-color-background:",colors_values.l.theme.gray[100],";}");var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function SuffixItem({searchRef,value,onChange,onClose}){if(!onClose&&!value)return(0,jsx_runtime.jsx)(icon.A,{icon:search.A});onClose&&(0,deprecated_build_module.A)("`onClose` prop in wp.components.SearchControl",{since:"6.8"});return(0,jsx_runtime.jsx)(build_module_button.Ay,{size:"small",icon:close_small.A,label:onClose?(0,build_module.__)("Close search"):(0,build_module.__)("Reset search"),onClick:null!=onClose?onClose:()=>{onChange(""),searchRef.current?.focus()}})}const SearchControl=(0,react.forwardRef)((function UnforwardedSearchControl({__nextHasNoMarginBottom=!1,className,onChange,value,label=(0,build_module.__)("Search"),placeholder=(0,build_module.__)("Search"),hideLabelFromVision=!0,onClose,size="default",...restProps},forwardedRef){const{disabled,...filteredRestProps}=restProps,searchRef=(0,react.useRef)(null),instanceId=(0,use_instance_id.A)(SearchControl,"components-search-control"),contextValue=(0,react.useMemo)((()=>({BaseControl:{_overrides:{__nextHasNoMarginBottom},__associatedWPComponentName:"SearchControl"},InputBase:{isBorderless:!0}})),[__nextHasNoMarginBottom]);return(0,jsx_runtime.jsx)(context_system_provider.c7,{value:contextValue,children:(0,jsx_runtime.jsx)(StyledInputControl,{__next40pxDefaultSize:!0,id:instanceId,hideLabelFromVision,label,ref:(0,use_merge_refs.A)([searchRef,forwardedRef]),type:"search",size,className:(0,clsx.A)("components-search-control",className),onChange:nextValue=>onChange(null!=nextValue?nextValue:""),autoComplete:"off",placeholder,value:null!=value?value:"",suffix:(0,jsx_runtime.jsx)(SuffixItemWrapper,{size,children:(0,jsx_runtime.jsx)(SuffixItem,{searchRef,value,onChange,onClose})}),...filteredRestProps})})})),search_control=SearchControl},"./packages/components/build-module/spinner/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Ay:()=>spinner});var clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),emotion_styled_base_browser_esm=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),emotion_react_browser_esm=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),config_values=__webpack_require__("./packages/components/build-module/utils/config-values.js"),colors_values=__webpack_require__("./packages/components/build-module/utils/colors-values.js");const spinAnimation=emotion_react_browser_esm.i7` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } + `,StyledSpinner=(0,emotion_styled_base_browser_esm.A)("svg",{target:"ea4tfvq2"})("width:",config_values.A.spinnerSize,"px;height:",config_values.A.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",colors_values.l.theme.accent,";overflow:visible;opacity:1;background-color:transparent;"),commonPathProps={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},SpinnerTrack=(0,emotion_styled_base_browser_esm.A)("circle",{target:"ea4tfvq1"})(commonPathProps,";stroke:",colors_values.l.gray[300],";"),SpinnerIndicator=(0,emotion_styled_base_browser_esm.A)("path",{target:"ea4tfvq0"})(commonPathProps,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",spinAnimation,";");var react=__webpack_require__("./node_modules/react/index.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const spinner=(0,react.forwardRef)((function UnforwardedSpinner({className,...props},forwardedRef){return(0,jsx_runtime.jsxs)(StyledSpinner,{className:(0,clsx.A)("components-spinner",className),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...props,ref:forwardedRef,children:[(0,jsx_runtime.jsx)(SpinnerTrack,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,jsx_runtime.jsx)(SpinnerIndicator,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})}))},"./packages/components/build-module/toggle-group-control/toggle-group-control-option-icon/component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),_toggle_group_control_option_base__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/build-module/toggle-group-control/toggle-group-control-option-base/component.js"),_icon__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/build-module/icon/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.forwardRef)((function UnforwardedToggleGroupControlOptionIcon(props,ref){const{icon,label,...restProps}=props;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_toggle_group_control_option_base__WEBPACK_IMPORTED_MODULE_1__.A,{...restProps,isIcon:!0,"aria-label":label,showTooltip:!0,ref,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_icon__WEBPACK_IMPORTED_MODULE_2__.A,{icon})})}))},"./packages/components/build-module/toggle-group-control/toggle-group-control-option/component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),_toggle_group_control_option_base__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/build-module/toggle-group-control/toggle-group-control-option-base/component.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.forwardRef)((function UnforwardedToggleGroupControlOption(props,ref){const{label,...restProps}=props,optionLabel=restProps["aria-label"]||label;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_toggle_group_control_option_base__WEBPACK_IMPORTED_MODULE_1__.A,{...restProps,"aria-label":optionLabel,ref,children:label})}))},"./packages/components/build-module/v-stack/component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>v_stack_component});var context_connect=__webpack_require__("./packages/components/build-module/context/context-connect.js"),component=__webpack_require__("./packages/components/build-module/view/component.js"),use_context_system=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),hook=__webpack_require__("./packages/components/build-module/h-stack/hook.js");var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const v_stack_component=(0,context_connect.KZ)((function UnconnectedVStack(props,forwardedRef){const vStackProps=function useVStack(props){const{expanded=!1,alignment="stretch",...otherProps}=(0,use_context_system.A)(props,"VStack");return(0,hook.A)({direction:"column",expanded,alignment,...otherProps})}(props);return(0,jsx_runtime.jsx)(component.A,{...vStackProps,ref:forwardedRef})}),"VStack")},"./packages/compose/build-module/hooks/use-debounce/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>useDebounce});var use_memo_one__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/use-memo-one/dist/use-memo-one.esm.js"),_wordpress_element__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),_utils_debounce__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/compose/build-module/utils/debounce/index.js");function useDebounce(fn,wait,options){const debounced=(0,use_memo_one__WEBPACK_IMPORTED_MODULE_0__.MA)((()=>(0,_utils_debounce__WEBPACK_IMPORTED_MODULE_1__.s)(fn,null!=wait?wait:0,options)),[fn,wait,options]);return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)((()=>()=>debounced.cancel()),[debounced]),debounced}},"./packages/compose/build-module/hooks/use-debounced-input/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>useDebouncedInput});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_use_debounce__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/compose/build-module/hooks/use-debounce/index.js");function useDebouncedInput(defaultValue=""){const[input,setInput]=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(defaultValue),[debouncedInput,setDebouncedState]=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(defaultValue),setDebouncedInput=(0,_use_debounce__WEBPACK_IMPORTED_MODULE_1__.A)(setDebouncedState,250);return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{setDebouncedInput(input)}),[input,setDebouncedInput]),[input,setInput,debouncedInput]}},"./packages/compose/build-module/utils/debounce/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{s:()=>debounce});const debounce=(func,wait,options)=>{let lastArgs,lastThis,result,timerId,lastCallTime,maxWait=0,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;function invokeFunc(time){const args=lastArgs,thisArg=lastThis;return lastArgs=void 0,lastThis=void 0,lastInvokeTime=time,result=func.apply(thisArg,args),result}function startTimer(pendingFunc,waitTime){timerId=setTimeout(pendingFunc,waitTime)}function getTimeSinceLastCall(time){return time-(lastCallTime||0)}function shouldInvoke(time){const timeSinceLastCall=getTimeSinceLastCall(time);return void 0===lastCallTime||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){const time=Date.now();if(shouldInvoke(time))return trailingEdge(time);startTimer(timerExpired,function remainingWait(time){const timeSinceLastCall=getTimeSinceLastCall(time),timeSinceLastInvoke=time-lastInvokeTime,timeWaiting=wait-timeSinceLastCall;return maxing?Math.min(timeWaiting,maxWait-timeSinceLastInvoke):timeWaiting}(time))}function clearTimer(){timerId=void 0}function trailingEdge(time){return clearTimer(),trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function pending(){return void 0!==timerId}function debounced(...args){const time=Date.now(),isInvoking=shouldInvoke(time);if(lastArgs=args,lastThis=this,lastCallTime=time,isInvoking){if(!pending())return function leadingEdge(time){return lastInvokeTime=time,startTimer(timerExpired,wait),leading?invokeFunc(time):result}(lastCallTime);if(maxing)return startTimer(timerExpired,wait),invokeFunc(lastCallTime)}return pending()||startTimer(timerExpired,wait),result}return options&&(leading=!!options.leading,maxing="maxWait"in options,void 0!==options.maxWait&&(maxWait=Math.max(options.maxWait,wait)),trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function cancel(){!function cancelTimer(){void 0!==timerId&&clearTimeout(timerId)}(),lastInvokeTime=0,clearTimer(),lastArgs=lastCallTime=lastThis=void 0},debounced.flush=function flush(){return pending()?trailingEdge(Date.now()):result},debounced.pending=pending,debounced}},"./packages/dom/build-module/dom/get-computed-style.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>getComputedStyle});var _utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/dom/build-module/utils/assert-is-defined.js");function getComputedStyle(element){return(0,_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_0__.e)(element.ownerDocument.defaultView,"element.ownerDocument.defaultView"),element.ownerDocument.defaultView.getComputedStyle(element)}},"./packages/dom/build-module/dom/get-scroll-container.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>getScrollContainer});var _get_computed_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/dom/build-module/dom/get-computed-style.js");function getScrollContainer(node,direction="vertical"){if(node){if(("vertical"===direction||"all"===direction)&&node.scrollHeight>node.clientHeight){const{overflowY}=(0,_get_computed_style__WEBPACK_IMPORTED_MODULE_0__.A)(node);if(/(auto|scroll)/.test(overflowY))return node}if(("horizontal"===direction||"all"===direction)&&node.scrollWidth>node.clientWidth){const{overflowX}=(0,_get_computed_style__WEBPACK_IMPORTED_MODULE_0__.A)(node);if(/(auto|scroll)/.test(overflowX))return node}return node.ownerDocument===node.parentNode?node:getScrollContainer(node.parentNode,direction)}}},"./packages/element/build-module/create-interpolate-element.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");let indoc,offset,output,stack;const tokenizer=/<(\/)?(\w+)\s*(\/)?>/g;function createFrame(element,tokenStart,tokenLength,prevOffset,leadingTextStart){return{element,tokenStart,tokenLength,prevOffset,leadingTextStart,children:[]}}const isValidConversionMap=conversionMap=>{const isObject="object"==typeof conversionMap,values=isObject&&Object.values(conversionMap);return isObject&&values.length&&values.every((element=>(0,_react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(element)))};function proceed(conversionMap){const next=function nextToken(){const matches=tokenizer.exec(indoc);if(null===matches)return["no-more-tokens"];const startedAt=matches.index,[match,isClosing,name,isSelfClosed]=matches,length=match.length;if(isSelfClosed)return["self-closed",name,startedAt,length];if(isClosing)return["closer",name,startedAt,length];return["opener",name,startedAt,length]}(),[tokenType,name,startOffset,tokenLength]=next,stackDepth=stack.length,leadingTextStart=startOffset>offset?offset:null;if(!conversionMap[name])return addText(),!1;switch(tokenType){case"no-more-tokens":if(0!==stackDepth){const{leadingTextStart:stackLeadingText,tokenStart}=stack.pop();output.push(indoc.substr(stackLeadingText,tokenStart))}return addText(),!1;case"self-closed":return 0===stackDepth?(null!==leadingTextStart&&output.push(indoc.substr(leadingTextStart,startOffset-leadingTextStart)),output.push(conversionMap[name]),offset=startOffset+tokenLength,!0):(addChild(createFrame(conversionMap[name],startOffset,tokenLength)),offset=startOffset+tokenLength,!0);case"opener":return stack.push(createFrame(conversionMap[name],startOffset,tokenLength,startOffset+tokenLength,leadingTextStart)),offset=startOffset+tokenLength,!0;case"closer":if(1===stackDepth)return function closeOuterElement(endOffset){const{element,leadingTextStart,prevOffset,tokenStart,children}=stack.pop(),text=endOffset?indoc.substr(prevOffset,endOffset-prevOffset):indoc.substr(prevOffset);text&&children.push(text);null!==leadingTextStart&&output.push(indoc.substr(leadingTextStart,tokenStart-leadingTextStart));output.push((0,_react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(element,null,...children))}(startOffset),offset=startOffset+tokenLength,!0;const stackTop=stack.pop(),text=indoc.substr(stackTop.prevOffset,startOffset-stackTop.prevOffset);stackTop.children.push(text),stackTop.prevOffset=startOffset+tokenLength;const frame=createFrame(stackTop.element,stackTop.tokenStart,stackTop.tokenLength,startOffset+tokenLength);return frame.children=stackTop.children,addChild(frame),offset=startOffset+tokenLength,!0;default:return addText(),!1}}function addText(){const length=indoc.length-offset;0!==length&&output.push(indoc.substr(offset,length))}function addChild(frame){const{element,tokenStart,tokenLength,prevOffset,children}=frame,parent=stack[stack.length-1],text=indoc.substr(parent.prevOffset,tokenStart-parent.prevOffset);text&&parent.children.push(text),parent.children.push((0,_react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(element,null,...children)),parent.prevOffset=prevOffset||tokenStart+tokenLength}const __WEBPACK_DEFAULT_EXPORT__=(interpolatedString,conversionMap)=>{if(indoc=interpolatedString,offset=0,output=[],stack=[],tokenizer.lastIndex=0,!isValidConversionMap(conversionMap))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are React Elements");do{}while(proceed(conversionMap));return(0,_react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,...output)}},"./packages/icons/build-module/library/arrow-down.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})})},"./packages/icons/build-module/library/arrow-right.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})})},"./packages/icons/build-module/library/close-small.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})})},"./packages/icons/build-module/library/search.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})})}}]); +//# sourceMappingURL=297.6205d7f3.iframe.bundle.js.map \ No newline at end of file diff --git a/297.6205d7f3.iframe.bundle.js.map b/297.6205d7f3.iframe.bundle.js.map new file mode 100644 index 00000000000000..ace803539114ac --- /dev/null +++ b/297.6205d7f3.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"297.6205d7f3.iframe.bundle.js","mappings":";;;;;;;AAoBA","sources":["webpack://gutenberg/@wordpress/components/src/spinner/styles.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport styled from '@emotion/styled';\nimport { css, keyframes } from '@emotion/react';\n\n/**\n * Internal dependencies\n */\nimport { COLORS, CONFIG } from '../utils';\n\nconst spinAnimation = keyframes`\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n `;\n\nexport const StyledSpinner = styled.svg`\n\twidth: ${ CONFIG.spinnerSize }px;\n\theight: ${ CONFIG.spinnerSize }px;\n\tdisplay: inline-block;\n\tmargin: 5px 11px 0;\n\tposition: relative;\n\tcolor: ${ COLORS.theme.accent };\n\toverflow: visible;\n\topacity: 1;\n\tbackground-color: transparent;\n`;\n\nconst commonPathProps = css`\n\tfill: transparent;\n\tstroke-width: 1.5px;\n`;\n\nexport const SpinnerTrack = styled.circle`\n\t${ commonPathProps };\n\tstroke: ${ COLORS.gray[ 300 ] };\n`;\n\nexport const SpinnerIndicator = styled.path`\n\t${ commonPathProps };\n\tstroke: currentColor;\n\tstroke-linecap: round;\n\ttransform-origin: 50% 50%;\n\tanimation: 1.4s linear infinite both ${ spinAnimation };\n`;\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/3149.ca51bb0b.iframe.bundle.js b/3149.ca51bb0b.iframe.bundle.js new file mode 100644 index 00000000000000..eb9197fb0c4e46 --- /dev/null +++ b/3149.ca51bb0b.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[3149],{"./node_modules/fast-memoize/src/index.js":module=>{function monadic(fn,cache,serializer,arg){var cacheKey=function isPrimitive(value){return null==value||"number"==typeof value||"boolean"==typeof value}(arg)?arg:serializer(arg),computedValue=cache.get(cacheKey);return void 0===computedValue&&(computedValue=fn.call(this,arg),cache.set(cacheKey,computedValue)),computedValue}function variadic(fn,cache,serializer){var args=Array.prototype.slice.call(arguments,3),cacheKey=serializer(args),computedValue=cache.get(cacheKey);return void 0===computedValue&&(computedValue=fn.apply(this,args),cache.set(cacheKey,computedValue)),computedValue}function assemble(fn,context,strategy,cache,serialize){return strategy.bind(context,fn,cache,serialize)}function strategyDefault(fn,options){return assemble(fn,this,1===fn.length?monadic:variadic,options.cache.create(),options.serializer)}function serializerDefault(){return JSON.stringify(arguments)}function ObjectWithoutPrototypeCache(){this.cache=Object.create(null)}ObjectWithoutPrototypeCache.prototype.has=function(key){return key in this.cache},ObjectWithoutPrototypeCache.prototype.get=function(key){return this.cache[key]},ObjectWithoutPrototypeCache.prototype.set=function(key,value){this.cache[key]=value};var cacheDefault={create:function create(){return new ObjectWithoutPrototypeCache}};module.exports=function memoize(fn,options){var cache=options&&options.cache?options.cache:cacheDefault,serializer=options&&options.serializer?options.serializer:serializerDefault;return(options&&options.strategy?options.strategy:strategyDefault)(fn,{cache,serializer})},module.exports.strategies={variadic:function strategyVariadic(fn,options){return assemble(fn,this,variadic,options.cache.create(),options.serializer)},monadic:function strategyMonadic(fn,options){return assemble(fn,this,monadic,options.cache.create(),options.serializer)}}},"./node_modules/re-resizable/lib/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{c:()=>Resizable});var extendStatics,react=__webpack_require__("./node_modules/react/index.js"),__extends=(extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},extendStatics(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}),__assign=function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={OS:"web",select:spec=>"web"in spec?spec.web:spec.default,isWeb:!0}},"./packages/components/src/unit-control/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{gZ:()=>UnitControl,Ay:()=>unit_control});var clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),build_module=__webpack_require__("./packages/deprecated/build-module/index.js"),react=__webpack_require__("./node_modules/react/index.js"),i18n_build_module=__webpack_require__("./packages/i18n/build-module/index.js"),unit_control_styles=__webpack_require__("./packages/components/src/unit-control/styles/unit-control-styles.ts"),utils=__webpack_require__("./packages/components/src/unit-control/utils.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const unit_select_control=(0,react.forwardRef)((function UnitSelectControl({className,isUnitSelectTabbable:isTabbable=!0,onChange,size="default",unit="px",units=utils.Cy,...props},ref){if(!(0,utils.U6)(units)||1===units?.length)return(0,jsx_runtime.jsx)(unit_control_styles.BZ,{className:"components-unit-control__unit-label",selectSize:size,children:unit});const classes=(0,clsx.A)("components-unit-control__select",className);return(0,jsx_runtime.jsx)(unit_control_styles.td,{ref,className:classes,onChange:event=>{const{value:unitValue}=event.target,data=units.find((option=>option.value===unitValue));onChange?.(unitValue,{event,data})},selectSize:size,tabIndex:isTabbable?void 0:-1,value:unit,...props,children:units.map((option=>(0,jsx_runtime.jsx)("option",{value:option.value,children:option.label},option.value)))})}));var use_controlled_state=__webpack_require__("./packages/components/src/utils/hooks/use-controlled-state.js"),strings=__webpack_require__("./packages/components/src/utils/strings.ts"),use_deprecated_props=__webpack_require__("./packages/components/src/utils/use-deprecated-props.ts"),deprecated_36px_size=__webpack_require__("./packages/components/src/utils/deprecated-36px-size.ts");const UnitControl=(0,react.forwardRef)((function UnforwardedUnitControl(unitControlProps,forwardedRef){const{__unstableStateReducer,autoComplete="off",children,className,disabled=!1,disableUnits=!1,isPressEnterToChange=!1,isResetValueOnUnitChange=!1,isUnitSelectTabbable=!0,label,onChange:onChangeProp,onUnitChange,size="default",unit:unitProp,units:unitsProp=utils.Cy,value:valueProp,onFocus:onFocusProp,__shouldNotWarnDeprecated36pxSize,...props}=(0,use_deprecated_props.R)(unitControlProps);(0,deprecated_36px_size.M)({componentName:"UnitControl",__next40pxDefaultSize:props.__next40pxDefaultSize,size,__shouldNotWarnDeprecated36pxSize}),"unit"in unitControlProps&&(0,build_module.A)("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const nonNullValueProp=null!=valueProp?valueProp:void 0,[units,reFirstCharacterOfUnits]=(0,react.useMemo)((()=>{const list=(0,utils.Pr)(nonNullValueProp,unitProp,unitsProp),[{value:firstUnitValue=""}={},...rest]=list,firstCharacters=rest.reduce(((carry,{value})=>{const first=(0,strings.Nt)(value?.substring(0,1)||"");return carry.includes(first)?carry:`${carry}|${first}`}),(0,strings.Nt)(firstUnitValue.substring(0,1)));return[list,new RegExp(`^(?:${firstCharacters})$`,"i")]}),[nonNullValueProp,unitProp,unitsProp]),[parsedQuantity,parsedUnit]=(0,utils.wC)(nonNullValueProp,unitProp,units),[unit,setUnit]=(0,use_controlled_state.A)(1===units.length?units[0].value:unitProp,{initial:parsedUnit,fallback:""});(0,react.useEffect)((()=>{void 0!==parsedUnit&&setUnit(parsedUnit)}),[parsedUnit,setUnit]);const classes=(0,clsx.A)("components-unit-control","components-unit-control-wrapper",className);let handleOnKeyDown;!disableUnits&&isUnitSelectTabbable&&units.length&&(handleOnKeyDown=event=>{props.onKeyDown?.(event),event.metaKey||event.ctrlKey||!reFirstCharacterOfUnits.test(event.key)||refInputSuffix.current?.focus()});const refInputSuffix=(0,react.useRef)(null),inputSuffix=disableUnits?null:(0,jsx_runtime.jsx)(unit_select_control,{ref:refInputSuffix,"aria-label":(0,i18n_build_module.__)("Select unit"),disabled,isUnitSelectTabbable,onChange:(nextUnitValue,changeProps)=>{const{data}=changeProps;let nextValue=`${null!=parsedQuantity?parsedQuantity:""}${nextUnitValue}`;isResetValueOnUnitChange&&void 0!==data?.default&&(nextValue=`${data.default}${nextUnitValue}`),onChangeProp?.(nextValue,changeProps),onUnitChange?.(nextUnitValue,changeProps),setUnit(nextUnitValue)},size:["small","compact"].includes(size)||"default"===size&&!props.__next40pxDefaultSize?"small":"default",unit,units,onFocus:onFocusProp,onBlur:unitControlProps.onBlur});let step=props.step;if(!step&&units){var _activeUnit$step;const activeUnit=units.find((option=>option.value===unit));step=null!==(_activeUnit$step=activeUnit?.step)&&void 0!==_activeUnit$step?_activeUnit$step:1}return(0,jsx_runtime.jsx)(unit_control_styles.mT,{...props,__shouldNotWarnDeprecated36pxSize:!0,autoComplete,className:classes,disabled,spinControls:"none",isPressEnterToChange,label,onKeyDown:handleOnKeyDown,onChange:(nextQuantityValue,changeProps)=>{if(""===nextQuantityValue||null==nextQuantityValue)return void onChangeProp?.("",changeProps);const onChangeValue=(0,utils.Op)(nextQuantityValue,units,parsedQuantity,unit).join("");onChangeProp?.(onChangeValue,changeProps)},ref:forwardedRef,size,suffix:inputSuffix,type:isPressEnterToChange?"text":"number",value:null!=parsedQuantity?parsedQuantity:"",step,onFocus:onFocusProp,__unstableStateReducer})})),unit_control=UnitControl;try{UnitControl.displayName="UnitControl",UnitControl.__docgenInfo={description:"`UnitControl` allows the user to set a numeric quantity as well as a unit (e.g. `px`).\n\n\n```jsx\nimport { __experimentalUnitControl as UnitControl } from '@wordpress/components';\nimport { useState } from '@wordpress/element';\n\nconst Example = () => {\n const [ value, setValue ] = useState( '10px' );\n\n return ;\n};\n```",displayName:"UnitControl",props:{size:{defaultValue:{value:"'default'"},description:"Adjusts the size of the input.",name:"size",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"small"'},{value:'"compact"'},{value:'"__unstable-large"'}]}},onChange:{defaultValue:null,description:"A callback function invoked when the value is changed.\nA function that receives the value of the input.",name:"onChange",required:!1,type:{name:"UnitControlOnChangeCallback & InputChangeCallback<{}>"}},isUnitSelectTabbable:{defaultValue:{value:"true"},description:"Whether the control can be focused via keyboard navigation.",name:"isUnitSelectTabbable",required:!1,type:{name:"boolean"}},units:{defaultValue:{value:"CSS_UNITS"},description:"Available units to select from.",name:"units",required:!1,type:{name:"WPUnitControlUnit[]"}},labelPosition:{defaultValue:{value:"'top'"},description:"The position of the label.",name:"labelPosition",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"side"'},{value:'"bottom"'},{value:'"edge"'}]}},label:{defaultValue:null,description:"If this property is added, a label will be generated using label property as the content.",name:"label",required:!1,type:{name:"ReactNode"}},prefix:{defaultValue:null,description:"Renders an element on the left side of the input.\n\nBy default, the prefix is aligned with the edge of the input border, with no padding.\nIf you want to apply standard padding in accordance with the size variant, wrap the element in\nthe provided `` component.\n\n```jsx\nimport {\n __experimentalInputControl as InputControl,\n __experimentalInputControlPrefixWrapper as InputControlPrefixWrapper,\n} from '@wordpress/components';\n\n@}\n/>\n```",name:"prefix",required:!1,type:{name:"ReactNode"}},onDrag:{defaultValue:null,description:"",name:"onDrag",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},onDragEnd:{defaultValue:null,description:"",name:"onDragEnd",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},onDragStart:{defaultValue:null,description:"",name:"onDragStart",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},step:{defaultValue:{value:"1"},description:"Amount by which the `value` is changed when incrementing/decrementing.\nIt is also a factor in validation as `value` must be a multiple of `step`\n(offset by `min`, if specified) to be valid. Accepts the special string value `any`\nthat voids the validation constraint and causes stepping actions to increment/decrement by `1`.",name:"step",required:!1,type:{name:"string | number"}},max:{defaultValue:{value:"Infinity"},description:"The maximum `value` allowed.",name:"max",required:!1,type:{name:"number"}},min:{defaultValue:{value:"-Infinity"},description:"The minimum `value` allowed.",name:"min",required:!1,type:{name:"number"}},disabled:{defaultValue:{value:"false"},description:"If true, the `input` will be disabled.",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:{value:"false"},description:"If `true` enforces a valid number within the control's min/max range.\nIf `false` allows an empty string as a valid value.",name:"required",required:!1,type:{name:"boolean"}},value:{defaultValue:null,description:'The value of the input.\nCurrent value. If passed as a string, the current unit will be inferred from this value.\nFor example, a `value` of "50%" will set the current unit to `%`.',name:"value",required:!1,type:{name:"string | number"}},isDragEnabled:{defaultValue:{value:"true"},description:"If true, enables mouse drag gestures.",name:"isDragEnabled",required:!1,type:{name:"boolean"}},__next36pxDefaultSize:{defaultValue:{value:"false"},description:"Deprecated. Use `__next40pxDefaultSize` instead.\n@deprecated\n@ignore",name:"__next36pxDefaultSize",required:!1,type:{name:"boolean"}},__next40pxDefaultSize:{defaultValue:{value:"false"},description:"Start opting into the larger default height that will become the default size in a future version.",name:"__next40pxDefaultSize",required:!1,type:{name:"boolean"}},__shouldNotWarnDeprecated36pxSize:{defaultValue:null,description:"Do not throw a warning for the deprecated 36px default size.\nFor internal components of other components that already throw the warning.\n@ignore\n@ignore\n@ignore",name:"__shouldNotWarnDeprecated36pxSize",required:!1,type:{name:"boolean"}},__unstableInputWidth:{defaultValue:null,description:"",name:"__unstableInputWidth",required:!1,type:{name:"Width"}},hideLabelFromVision:{defaultValue:{value:"false"},description:"If true, the label will only be visible to screen readers.",name:"hideLabelFromVision",required:!1,type:{name:"boolean"}},help:{defaultValue:null,description:"Additional description for the control.\n\nOnly use for meaningful description or instructions for the control. An element containing the description will be programmatically associated to the BaseControl by the means of an `aria-describedby` attribute.",name:"help",required:!1,type:{name:"ReactNode"}},dragDirection:{defaultValue:{value:"'n'"},description:"Determines the drag axis.",name:"dragDirection",required:!1,type:{name:"enum",value:[{value:'"s"'},{value:'"n"'},{value:'"e"'},{value:'"w"'}]}},dragThreshold:{defaultValue:{value:"10"},description:"If `isDragEnabled` is true, this controls the amount of `px` to have been dragged before\nthe drag gesture is actually triggered.",name:"dragThreshold",required:!1,type:{name:"number"}},isPressEnterToChange:{defaultValue:{value:"false"},description:"If true, the `ENTER` key press is required in order to trigger an `onChange`.\nIf enabled, a change is also triggered when tabbing away (`onBlur`).",name:"isPressEnterToChange",required:!1,type:{name:"boolean"}},onValidate:{defaultValue:null,description:"",name:"onValidate",required:!1,type:{name:"(nextValue: string, event?: SyntheticEvent) => void"}},__unstableStateReducer:{defaultValue:null,description:"",name:"__unstableStateReducer",required:!1,type:{name:"StateReducer"}},hideHTMLArrows:{defaultValue:{value:"false"},description:"If true, the default `input` HTML arrows will be hidden.\n@deprecated",name:"hideHTMLArrows",required:!1,type:{name:"boolean"}},isShiftStepEnabled:{defaultValue:{value:"true"},description:"If true, pressing `UP` or `DOWN` along with the `SHIFT` key will increment the\nvalue by the `shiftStep` value.",name:"isShiftStepEnabled",required:!1,type:{name:"boolean"}},shiftStep:{defaultValue:{value:"10"},description:"Amount to increment by when the `SHIFT` key is held down. This shift value is\na multiplier to the `step` value. For example, if the `step` value is `5`,\nand `shiftStep` is `10`, each jump would increment/decrement by `50`.",name:"shiftStep",required:!1,type:{name:"number"}},spinFactor:{defaultValue:{value:"1"},description:'Optional multiplication factor in spin changes. i.e. A spin changes\nby `spinFactor * step` (if `step` is "any", 1 is used instead).',name:"spinFactor",required:!1,type:{name:"number"}},disableUnits:{defaultValue:{value:"false"},description:"If `true`, the unit `` is hidden.",name:"disableUnits",required:!1,type:{name:"boolean"}},isResetValueOnUnitChange:{defaultValue:{value:"false"},description:"If `true`, and the selected unit provides a `default` value, this value is set\nwhen changing units.",name:"isResetValueOnUnitChange",required:!1,type:{name:"boolean"}},onUnitChange:{defaultValue:null,description:"Callback when the `unit` changes.",name:"onUnitChange",required:!1,type:{name:"UnitControlOnChangeCallback"}},unit:{defaultValue:null,description:"Current unit. _Note: this prop is deprecated. Instead, provide a unit with a value through the `value` prop._\n@deprecated",name:"unit",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/unit-control/index.tsx#unitcontrol"]={docgenInfo:unitcontrol.__docgenInfo,name:"unitcontrol",path:"packages/components/src/unit-control/index.tsx#unitcontrol"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/unit-control/styles/unit-control-styles.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{BZ:()=>UnitLabel,mT:()=>ValueInput,td:()=>UnitSelect});var _emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),_emotion_react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),_utils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/components/src/utils/colors-values.js"),_utils__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/components/src/utils/rtl.js"),_utils__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/components/src/utils/config-values.js"),_number_control__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/src/number-control/index.tsx"),_input_control_styles_input_control_styles__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/src/input-control/styles/input-control-styles.tsx"),_utils_space__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/components/src/utils/space.ts");const ValueInput=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)(_number_control__WEBPACK_IMPORTED_MODULE_1__.A,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",_input_control_styles_input_control_styles__WEBPACK_IMPORTED_MODULE_2__.Hr,"{transition:box-shadow 0.1s linear;}}"),baseUnitLabelStyles=({selectSize})=>({small:(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)("box-sizing:border-box;padding:2px 1px;width:20px;font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;&:not( :disabled ){color:",_utils__WEBPACK_IMPORTED_MODULE_4__.l.gray[800],";}",""),default:(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_5__.x)(2),";padding:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_5__.x)(1),";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;field-sizing:content;&:not( :disabled ){color:",_utils__WEBPACK_IMPORTED_MODULE_4__.l.theme.accent,";}","")}[selectSize]),UnitLabel=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",baseUnitLabelStyles,";color:",_utils__WEBPACK_IMPORTED_MODULE_4__.l.gray[900],";}"),unitSelectSizes=({selectSize="default"})=>({small:(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",(0,_utils__WEBPACK_IMPORTED_MODULE_6__.h)({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",_utils__WEBPACK_IMPORTED_MODULE_4__.l.gray[100],";}&:focus{border:1px solid ",_utils__WEBPACK_IMPORTED_MODULE_4__.l.ui.borderFocus,";box-shadow:inset 0 0 0 ",_utils__WEBPACK_IMPORTED_MODULE_7__.A.borderWidth+" "+_utils__WEBPACK_IMPORTED_MODULE_4__.l.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),default:(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)("display:flex;justify-content:center;align-items:center;&:where( :not( :disabled ) ):hover{box-shadow:0 0 0 ",_utils__WEBPACK_IMPORTED_MODULE_7__.A.borderWidth+" "+_utils__WEBPACK_IMPORTED_MODULE_4__.l.ui.borderFocus,";outline:",_utils__WEBPACK_IMPORTED_MODULE_7__.A.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",_utils__WEBPACK_IMPORTED_MODULE_7__.A.borderWidthFocus+" "+_utils__WEBPACK_IMPORTED_MODULE_4__.l.ui.borderFocus,";outline:",_utils__WEBPACK_IMPORTED_MODULE_7__.A.borderWidthFocus," solid transparent;}","")}[selectSize]),UnitSelect=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:",_utils__WEBPACK_IMPORTED_MODULE_7__.A.radiusXSmall,";border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",baseUnitLabelStyles,";",unitSelectSizes,";&:not( :disabled ){cursor:pointer;}}")},"./packages/components/src/unit-control/utils.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Cy:()=>CSS_UNITS,E:()=>useCustomUnits,Op:()=>getValidParsedQuantityAndUnit,Pr:()=>getUnitsWithCurrentUnit,U6:()=>hasUnits,bu:()=>parseQuantityAndUnitFromRawValue,wC:()=>getParsedQuantityAndUnit});var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/i18n/build-module/index.js");const isWeb="web"===__webpack_require__("./packages/element/build-module/platform.js").A.OS,allUnits={px:{value:"px",label:isWeb?"px":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Pixels (px)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Pixels (px)"),step:1},"%":{value:"%",label:isWeb?"%":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Percentage (%)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Percent (%)"),step:.1},em:{value:"em",label:isWeb?"em":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Relative to parent font size (em)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:isWeb?"rem":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Relative to root font size (rem)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__._x)("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:isWeb?"vw":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport width (vw)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:isWeb?"vh":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport height (vh)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:isWeb?"vmin":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport smallest dimension (vmin)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:isWeb?"vmax":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport largest dimension (vmax)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:isWeb?"ch":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Width of the zero (0) character (ch)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:isWeb?"ex":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("x-height of the font (ex)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:isWeb?"cm":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Centimeters (cm)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:isWeb?"mm":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Millimeters (mm)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:isWeb?"in":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Inches (in)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Inches (in)"),step:.001},pc:{value:"pc",label:isWeb?"pc":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Picas (pc)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Picas (pc)"),step:1},pt:{value:"pt",label:isWeb?"pt":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Points (pt)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Points (pt)"),step:1},svw:{value:"svw",label:isWeb?"svw":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport width (svw)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport width (svw)"),step:.1},svh:{value:"svh",label:isWeb?"svh":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport height (svh)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport height (svh)"),step:.1},svi:{value:"svi",label:isWeb?"svi":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport smallest size in the inline direction (svi)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport width or height (svi)"),step:.1},svb:{value:"svb",label:isWeb?"svb":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Viewport smallest size in the block direction (svb)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport width or height (svb)"),step:.1},svmin:{value:"svmin",label:isWeb?"svmin":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport smallest dimension (svmin)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport smallest dimension (svmin)"),step:.1},lvw:{value:"lvw",label:isWeb?"lvw":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport width (lvw)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport width (lvw)"),step:.1},lvh:{value:"lvh",label:isWeb?"lvh":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport height (lvh)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport height (lvh)"),step:.1},lvi:{value:"lvi",label:isWeb?"lvi":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport width or height (lvi)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport width or height (lvi)"),step:.1},lvb:{value:"lvb",label:isWeb?"lvb":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport width or height (lvb)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport width or height (lvb)"),step:.1},lvmin:{value:"lvmin",label:isWeb?"lvmin":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport smallest dimension (lvmin)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport smallest dimension (lvmin)"),step:.1},dvw:{value:"dvw",label:isWeb?"dvw":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport width (dvw)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport width (dvw)"),step:.1},dvh:{value:"dvh",label:isWeb?"dvh":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport height (dvh)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport height (dvh)"),step:.1},dvi:{value:"dvi",label:isWeb?"dvi":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport width or height (dvi)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport width or height (dvi)"),step:.1},dvb:{value:"dvb",label:isWeb?"dvb":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport width or height (dvb)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport width or height (dvb)"),step:.1},dvmin:{value:"dvmin",label:isWeb?"dvmin":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport smallest dimension (dvmin)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport smallest dimension (dvmin)"),step:.1},dvmax:{value:"dvmax",label:isWeb?"dvmax":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport largest dimension (dvmax)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dynamic viewport largest dimension (dvmax)"),step:.1},svmax:{value:"svmax",label:isWeb?"svmax":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport largest dimension (svmax)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Small viewport largest dimension (svmax)"),step:.1},lvmax:{value:"lvmax",label:isWeb?"lvmax":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport largest dimension (lvmax)"),a11yLabel:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Large viewport largest dimension (lvmax)"),step:.1}},ALL_CSS_UNITS=Object.values(allUnits),CSS_UNITS=[allUnits.px,allUnits["%"],allUnits.em,allUnits.rem,allUnits.vw,allUnits.vh],DEFAULT_UNIT=allUnits.px;function getParsedQuantityAndUnit(rawValue,fallbackUnit,allowedUnits){return parseQuantityAndUnitFromRawValue(fallbackUnit?`${null!=rawValue?rawValue:""}${fallbackUnit}`:rawValue,allowedUnits)}function hasUnits(units){return Array.isArray(units)&&!!units.length}function parseQuantityAndUnitFromRawValue(rawValue,allowedUnits=ALL_CSS_UNITS){let trimmedValue,quantityToReturn;if(void 0!==rawValue||null===rawValue){trimmedValue=`${rawValue}`.trim();const parsedQuantity=parseFloat(trimmedValue);quantityToReturn=isFinite(parsedQuantity)?parsedQuantity:void 0}const unitMatch=trimmedValue?.match(/[\d.\-\+]*\s*(.*)/),matchedUnit=unitMatch?.[1]?.toLowerCase();let unitToReturn;if(hasUnits(allowedUnits)){const match=allowedUnits.find((item=>item.value===matchedUnit));unitToReturn=match?.value}else unitToReturn=DEFAULT_UNIT.value;return[quantityToReturn,unitToReturn]}function getValidParsedQuantityAndUnit(rawValue,allowedUnits,fallbackQuantity,fallbackUnit){const[parsedQuantity,parsedUnit]=parseQuantityAndUnitFromRawValue(rawValue,allowedUnits),quantityToReturn=null!=parsedQuantity?parsedQuantity:fallbackQuantity;let unitToReturn=parsedUnit||fallbackUnit;return!unitToReturn&&hasUnits(allowedUnits)&&(unitToReturn=allowedUnits[0].value),[quantityToReturn,unitToReturn]}const useCustomUnits=({units=ALL_CSS_UNITS,availableUnits=[],defaultValues})=>{const customUnitsToReturn=function filterUnitsWithSettings(allowedUnitValues=[],availableUnits){return Array.isArray(availableUnits)?availableUnits.filter((unit=>allowedUnitValues.includes(unit.value))):[]}(availableUnits,units);return defaultValues&&customUnitsToReturn.forEach(((unit,i)=>{if(defaultValues[unit.value]){const[parsedDefaultValue]=parseQuantityAndUnitFromRawValue(defaultValues[unit.value]);customUnitsToReturn[i].default=parsedDefaultValue}})),customUnitsToReturn};function getUnitsWithCurrentUnit(rawValue,legacyUnit,units=ALL_CSS_UNITS){const unitsToReturn=Array.isArray(units)?[...units]:[],[,currentUnit]=getParsedQuantityAndUnit(rawValue,legacyUnit,ALL_CSS_UNITS);return currentUnit&&!unitsToReturn.some((unit=>unit.value===currentUnit))&&allUnits[currentUnit]&&unitsToReturn.unshift(allUnits[currentUnit]),unitsToReturn}},"./packages/components/src/utils/strings.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Aq:()=>normalizeTextString,Nt:()=>escapeRegExp,kW:()=>kebabCase});var remove_accents__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/remove-accents/index.js"),remove_accents__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(remove_accents__WEBPACK_IMPORTED_MODULE_0__),change_case__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/param-case/dist.es2015/index.js");const ALL_UNICODE_DASH_CHARACTERS=new RegExp(/[\u007e\u00ad\u2053\u207b\u208b\u2212\p{Pd}]/gu),normalizeTextString=value=>remove_accents__WEBPACK_IMPORTED_MODULE_0___default()(value).toLocaleLowerCase().replace(ALL_UNICODE_DASH_CHARACTERS,"-");function kebabCase(str){var _str$toString;let input=null!==(_str$toString=str?.toString?.())&&void 0!==_str$toString?_str$toString:"";return input=input.replace(/['\u2019]/,""),(0,change_case__WEBPACK_IMPORTED_MODULE_1__.c)(input,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}function escapeRegExp(string){return string.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}}}]); \ No newline at end of file diff --git a/3242.07640c7b.iframe.bundle.js b/3242.07640c7b.iframe.bundle.js new file mode 100644 index 00000000000000..06361c29eed319 --- /dev/null +++ b/3242.07640c7b.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[3242],{"./packages/icons/build-module/library/check.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})})},"./packages/components/src/custom-select-control-v2/custom-select.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__,P:()=>CustomSelectContext});var _ariakit_react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js"),_ariakit_react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/react-core/esm/select/select-label.js"),_wordpress_element__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/i18n/build-module/index.js"),___WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/components/src/visually-hidden/component.tsx"),_styles__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/components/src/custom-select-control-v2/styles.ts"),_input_control_input_base__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./packages/components/src/input-control/input-base.tsx"),_select_control_chevron_down__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./packages/components/src/select-control/chevron-down.tsx"),_base_control__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/components/src/base-control/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");const CustomSelectContext=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createContext)(void 0);function defaultRenderSelectedValue(value){return(Array.isArray(value)?0===value.length:null==value)?(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Select an item"):Array.isArray(value)?1===value.length?value[0]:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.nv)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("%s items selected"),value.length):value}const CustomSelectButton=({renderSelectedValue,size="default",store,...restProps})=>{const{value:currentValue}=_ariakit_react__WEBPACK_IMPORTED_MODULE_3__.O$(store),computedRenderSelectedValue=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useMemo)((()=>null!=renderSelectedValue?renderSelectedValue:defaultRenderSelectedValue),[renderSelectedValue]);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_styles__WEBPACK_IMPORTED_MODULE_4__.l6,{...restProps,size,hasCustomRenderProp:!!renderSelectedValue,store,children:computedRenderSelectedValue(currentValue)})};function _CustomSelect(props){const{children,hideLabelFromVision=!1,label,size,store,className,isLegacy=!1,...restProps}=props,onSelectPopoverKeyDown=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useCallback)((e=>{isLegacy&&e.stopPropagation()}),[isLegacy]),contextValue=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useMemo)((()=>({store,size})),[store,size]);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{className,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_ariakit_react__WEBPACK_IMPORTED_MODULE_5__.T,{store,render:hideLabelFromVision?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(___WEBPACK_IMPORTED_MODULE_6__.A,{}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_base_control__WEBPACK_IMPORTED_MODULE_7__.Ay.VisualLabel,{as:"div"}),children:label}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_input_control_input_base__WEBPACK_IMPORTED_MODULE_8__.A,{__next40pxDefaultSize:!0,size,suffix:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_select_control_chevron_down__WEBPACK_IMPORTED_MODULE_9__.A,{}),children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(CustomSelectButton,{...restProps,size,store,showOnKeyDown:!isLegacy}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_styles__WEBPACK_IMPORTED_MODULE_4__.kA,{gutter:12,store,sameWidth:!0,slide:!1,onKeyDown:onSelectPopoverKeyDown,flip:!isLegacy,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(CustomSelectContext.Provider,{value:contextValue,children})})]})]})}const __WEBPACK_DEFAULT_EXPORT__=_CustomSelect;try{_CustomSelect.displayName="_CustomSelect",_CustomSelect.__docgenInfo={description:"",displayName:"_CustomSelect",props:{isLegacy:{defaultValue:null,description:"True if the consumer is emulating the legacy component behavior and look",name:"isLegacy",required:!1,type:{name:"boolean"}},defaultValue:{defaultValue:null,description:"An optional default value for the control when used in uncontrolled mode.\nIf left `undefined`, the first non-disabled item will be used.",name:"defaultValue",required:!1,type:{name:"string | string[]"}},onChange:{defaultValue:null,description:"A function that receives the new value of the input.",name:"onChange",required:!1,type:{name:"(newValue: string | string[]) => void"}},renderSelectedValue:{defaultValue:null,description:"Can be used to render select UI with custom styled values.",name:"renderSelectedValue",required:!1,type:{name:"(selectedValue: string | string[]) => ReactNode"}},value:{defaultValue:null,description:"The value of the control when used in uncontrolled mode.",name:"value",required:!1,type:{name:"string | string[]"}},className:{defaultValue:null,description:"Additional className added to the root wrapper element.",name:"className",required:!1,type:{name:"string"}},children:{defaultValue:null,description:"The child elements. This should be composed of `CustomSelectItem` components.",name:"children",required:!0,type:{name:"ReactNode"}},hideLabelFromVision:{defaultValue:{value:"false"},description:"Used to visually hide the label. It will always be visible to screen readers.",name:"hideLabelFromVision",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"Accessible label for the control.",name:"label",required:!0,type:{name:"string"}},store:{defaultValue:null,description:"The store object returned by Ariakit's `useSelectStore` hook.",name:"store",required:!0,type:{name:"SelectStore"}},size:{defaultValue:{value:"default"},description:"The size of the control.",name:"size",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"small"'},{value:'"compact"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/custom-select-control-v2/custom-select.tsx#_CustomSelect"]={docgenInfo:_CustomSelect.__docgenInfo,name:"_CustomSelect",path:"packages/components/src/custom-select-control-v2/custom-select.tsx#_CustomSelect"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/custom-select-control-v2/item.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),_wordpress_icons__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/icons/build-module/icon/index.js"),_wordpress_icons__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/icons/build-module/library/check.js"),_styles__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/components/src/custom-select-control-v2/styles.ts"),_custom_select__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/src/custom-select-control-v2/custom-select.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");function CustomSelectItem({children,...props}){var _customSelectContext$;const customSelectContext=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useContext)(_custom_select__WEBPACK_IMPORTED_MODULE_2__.P);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_styles__WEBPACK_IMPORTED_MODULE_3__.eb,{store:customSelectContext?.store,size:null!==(_customSelectContext$=customSelectContext?.size)&&void 0!==_customSelectContext$?_customSelectContext$:"default",...props,children:[null!=children?children:props.value,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_styles__WEBPACK_IMPORTED_MODULE_3__.lc,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_icons__WEBPACK_IMPORTED_MODULE_4__.A,{icon:_wordpress_icons__WEBPACK_IMPORTED_MODULE_5__.A})})]})}CustomSelectItem.displayName="CustomSelectControlV2.Item";const __WEBPACK_DEFAULT_EXPORT__=CustomSelectItem;try{CustomSelectItem.displayName="CustomSelectControlV2.Item",CustomSelectItem.__docgenInfo={description:"",displayName:"CustomSelectControlV2.Item",props:{value:{defaultValue:null,description:"The value of the select item. This will be used as the children if\nchildren are left `undefined`.",name:"value",required:!0,type:{name:"string"}},children:{defaultValue:null,description:"The children to display for each select item. The `value` will be\nused if left `undefined`.",name:"children",required:!1,type:{name:"ReactNode"}},disabled:{defaultValue:{value:"false"},description:"If true, the item will be disabled.\n\nYou will need to add your own styles (e.g. reduced opacity) to visually show that they are disabled.",name:"disabled",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/custom-select-control-v2/item.tsx#CustomSelectControlV2.Item"]={docgenInfo:CustomSelectControlV2.Item.__docgenInfo,name:"CustomSelectControlV2.Item",path:"packages/components/src/custom-select-control-v2/item.tsx#CustomSelectControlV2.Item"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/custom-select-control-v2/styles.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Gr:()=>WithHintItemWrapper,K7:()=>WithHintItemHint,eb:()=>SelectItem,kA:()=>SelectPopover,l6:()=>Select,lc:()=>SelectedItemCheck,o$:()=>SelectedExperimentalHintItem,oE:()=>SelectedExperimentalHintWrapper});var _emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),_ariakit_react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/select/select.js"),_ariakit_react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/react-core/esm/select/select-popover.js"),_ariakit_react__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YF2ICFG4.js"),_ariakit_react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@ariakit/react-core/esm/select/select-item-check.js"),_emotion_react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/src/utils/config-values.js"),_utils__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/components/src/utils/colors-values.js"),_utils_space__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./packages/components/src/utils/space.ts"),_select_control_styles_select_control_styles__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/src/select-control/styles/select-control-styles.ts"),_input_control_styles_input_control_styles__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/components/src/input-control/styles/input-control-styles.tsx");const ANIMATION_PARAMS_SLIDE_AMOUNT="2px",ANIMATION_PARAMS_DURATION="400ms",ANIMATION_PARAMS_EASING="cubic-bezier( 0.16, 1, 0.3, 1 )",INLINE_PADDING={compact:_utils__WEBPACK_IMPORTED_MODULE_1__.A.controlPaddingXSmall,small:_utils__WEBPACK_IMPORTED_MODULE_1__.A.controlPaddingXSmall,default:_utils__WEBPACK_IMPORTED_MODULE_1__.A.controlPaddingX},Select=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)(_ariakit_react__WEBPACK_IMPORTED_MODULE_3__.l,{shouldForwardProp:prop=>"hasCustomRenderProp"!==prop,target:"e1p3eej77"})((({size,hasCustomRenderProp})=>(0,_emotion_react__WEBPACK_IMPORTED_MODULE_4__.AH)("display:block;background-color:",_utils__WEBPACK_IMPORTED_MODULE_5__.l.theme.background,";border:none;color:",_utils__WEBPACK_IMPORTED_MODULE_5__.l.theme.foreground,";cursor:pointer;font-family:inherit;text-align:start;user-select:none;width:100%;&[data-focus-visible]{outline:none;}",((size,heightProperty)=>{const sizes={compact:{[heightProperty]:32,paddingInlineStart:INLINE_PADDING.compact,paddingInlineEnd:INLINE_PADDING.compact+_select_control_styles_select_control_styles__WEBPACK_IMPORTED_MODULE_2__.qO},default:{[heightProperty]:40,paddingInlineStart:INLINE_PADDING.default,paddingInlineEnd:INLINE_PADDING.default+_select_control_styles_select_control_styles__WEBPACK_IMPORTED_MODULE_2__.qO},small:{[heightProperty]:24,paddingInlineStart:INLINE_PADDING.small,paddingInlineEnd:INLINE_PADDING.small+_select_control_styles_select_control_styles__WEBPACK_IMPORTED_MODULE_2__.qO}};return sizes[size]||sizes.default})(size,hasCustomRenderProp?"minHeight":"height")," ",!hasCustomRenderProp&&truncateStyles," ",(0,_input_control_styles_input_control_styles__WEBPACK_IMPORTED_MODULE_6__.TA)({inputSize:size}),";","")),""),slideDownAndFade=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_4__.i7)({"0%":{opacity:0,transform:`translateY(-${ANIMATION_PARAMS_SLIDE_AMOUNT})`},"100%":{opacity:1,transform:"translateY(0)"}}),SelectPopover=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)(_ariakit_react__WEBPACK_IMPORTED_MODULE_7__.k,{target:"e1p3eej76"})("display:flex;flex-direction:column;background-color:",_utils__WEBPACK_IMPORTED_MODULE_5__.l.theme.background,";border-radius:",_utils__WEBPACK_IMPORTED_MODULE_1__.A.radiusSmall,";border:1px solid ",_utils__WEBPACK_IMPORTED_MODULE_5__.l.theme.foreground,";box-shadow:",_utils__WEBPACK_IMPORTED_MODULE_1__.A.elevationMedium,";z-index:1000000;max-height:min( var( --popover-available-height, 400px ), 400px );overflow:auto;overscroll-behavior:contain;min-width:min-content;&[data-open]{@media not ( prefers-reduced-motion ){animation-duration:",ANIMATION_PARAMS_DURATION,";animation-timing-function:",ANIMATION_PARAMS_EASING,";animation-name:",slideDownAndFade,";will-change:transform,opacity;}}&[data-focus-visible]{outline:none;}"),SelectItem=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)(_ariakit_react__WEBPACK_IMPORTED_MODULE_8__.e,{target:"e1p3eej75"})((({size})=>(0,_emotion_react__WEBPACK_IMPORTED_MODULE_4__.AH)("cursor:default;display:flex;align-items:center;justify-content:space-between;font-size:",_utils__WEBPACK_IMPORTED_MODULE_1__.A.fontSize,";line-height:28px;padding-block:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_9__.x)(2),";scroll-margin:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_9__.x)(1),";user-select:none;&[aria-disabled='true']{cursor:not-allowed;}&[data-active-item]{background-color:",_utils__WEBPACK_IMPORTED_MODULE_5__.l.theme.gray[300],";}",(size=>{const sizes={compact:{paddingInlineStart:INLINE_PADDING.compact,paddingInlineEnd:INLINE_PADDING.compact-6},default:{paddingInlineStart:INLINE_PADDING.default,paddingInlineEnd:INLINE_PADDING.default-6},small:{paddingInlineStart:INLINE_PADDING.small,paddingInlineEnd:INLINE_PADDING.small-6}};return sizes[size]||sizes.default})(size),";","")),""),truncateStyles={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},SelectedExperimentalHintWrapper=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("div",{target:"e1p3eej74"})(truncateStyles,";"),SelectedExperimentalHintItem=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("span",{target:"e1p3eej73"})("color:",_utils__WEBPACK_IMPORTED_MODULE_5__.l.theme.gray[600],";margin-inline-start:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_9__.x)(2),";"),WithHintItemWrapper=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("div",{target:"e1p3eej72"})("display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;flex:1;column-gap:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_9__.x)(4),";"),WithHintItemHint=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("span",{target:"e1p3eej71"})("color:",_utils__WEBPACK_IMPORTED_MODULE_5__.l.theme.gray[600],";text-align:initial;line-height:",_utils__WEBPACK_IMPORTED_MODULE_1__.A.fontLineHeightBase,";padding-inline-end:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_9__.x)(1),";margin-block:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_9__.x)(1),";"),SelectedItemCheck=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)(_ariakit_react__WEBPACK_IMPORTED_MODULE_10__.u,{target:"e1p3eej70"})("display:flex;align-items:center;margin-inline-start:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_9__.x)(2),";align-self:start;margin-block-start:2px;font-size:0;",WithHintItemWrapper,"~&,&:not(:empty){font-size:24px;}")}}]); \ No newline at end of file diff --git a/3245.fa721b27.iframe.bundle.js b/3245.fa721b27.iframe.bundle.js new file mode 100644 index 00000000000000..9669bf567cc20a --- /dev/null +++ b/3245.fa721b27.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[3245],{"./node_modules/@ariakit/core/esm/__chunks/JTLIIJ4U.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{y:()=>createHovercardStore});var _ME2CUF3F_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/ME2CUF3F.js"),_BCALMBPZ_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/BCALMBPZ.js"),_PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/3YLGPPWQ.js");function createHovercardStore(props={}){var _a;const syncState=null==(_a=props.store)?void 0:_a.getState(),popover=(0,_ME2CUF3F_js__WEBPACK_IMPORTED_MODULE_0__.N)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__.IA)({},props),{placement:(0,_PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_2__.Jh)(props.placement,null==syncState?void 0:syncState.placement,"bottom")})),timeout=(0,_PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_2__.Jh)(props.timeout,null==syncState?void 0:syncState.timeout,500),initialState=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__.IA)({},popover.getState()),{timeout,showTimeout:(0,_PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_2__.Jh)(props.showTimeout,null==syncState?void 0:syncState.showTimeout),hideTimeout:(0,_PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_2__.Jh)(props.hideTimeout,null==syncState?void 0:syncState.hideTimeout),autoFocusOnShow:(0,_PBFD2E7P_js__WEBPACK_IMPORTED_MODULE_2__.Jh)(null==syncState?void 0:syncState.autoFocusOnShow,!1)}),hovercard=(0,_BCALMBPZ_js__WEBPACK_IMPORTED_MODULE_3__.y$)(initialState,popover,props.store);return(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__.IA)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__.IA)({},popover),hovercard),{setAutoFocusOnShow:value=>hovercard.setState("autoFocusOnShow",value)})}},"./node_modules/@ariakit/react-core/esm/__chunks/BYC7LY2E.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{p:()=>useHovercardAnchor});var _EM5CXX6A_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/EM5CXX6A.js"),_LVA2YJMS_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LVA2YJMS.js"),_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/core/esm/utils/events.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),useHovercardAnchor=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.ab)((function useHovercardAnchor2(_a){var _b=_a,{store,showOnHover=!0}=_b,props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.YG)(_b,["store","showOnHover"]);const context=(0,_EM5CXX6A_js__WEBPACK_IMPORTED_MODULE_3__.Kw)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_4__.V1)(store,!1);const disabled=(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_4__.$f)(props),showTimeoutRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>()=>window.clearTimeout(showTimeoutRef.current)),[]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>(0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_5__.dg)("mouseleave",(event=>{if(!store)return;const{anchorElement}=store.getState();anchorElement&&event.target===anchorElement&&(window.clearTimeout(showTimeoutRef.current),showTimeoutRef.current=0)}),!0)),[store]);const onMouseMoveProp=props.onMouseMove,showOnHoverProp=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.O4)(showOnHover),isMouseMoving=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.P$)(),onMouseMove=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__._q)((event=>{if(null==onMouseMoveProp||onMouseMoveProp(event),disabled)return;if(!store)return;if(event.defaultPrevented)return;if(showTimeoutRef.current)return;if(!isMouseMoving())return;if(!showOnHoverProp(event))return;const element=event.currentTarget;store.setAnchorElement(element),store.setDisclosureElement(element);const{showTimeout,timeout}=store.getState(),showHovercard=()=>{showTimeoutRef.current=0,isMouseMoving()&&(null==store||store.setAnchorElement(element),null==store||store.show(),queueMicrotask((()=>{null==store||store.setDisclosureElement(element)})))},timeoutMs=null!=showTimeout?showTimeout:timeout;0===timeoutMs?showHovercard():showTimeoutRef.current=window.setTimeout(showHovercard,timeoutMs)})),onClickProp=props.onClick,onClick=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__._q)((event=>{null==onClickProp||onClickProp(event),store&&(window.clearTimeout(showTimeoutRef.current),showTimeoutRef.current=0)})),ref=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((element=>{if(!store)return;const{anchorElement}=store.getState();(null==anchorElement?void 0:anchorElement.isConnected)||store.setAnchorElement(element)}),[store]);return props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.IA)({},props),{ref:(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.SV)(ref,props.ref),onMouseMove,onClick}),props=(0,_LVA2YJMS_js__WEBPACK_IMPORTED_MODULE_7__.Wc)(props)}));(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.Rf)((function HovercardAnchor2(props){const htmlProps=useHovercardAnchor(props);return(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.n)("a",htmlProps)}))},"./node_modules/@ariakit/react-core/esm/__chunks/EM5CXX6A.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Kw:()=>useHovercardProviderContext,n0:()=>HovercardScopedContextProvider,pR:()=>HovercardContextProvider});var _MTZPJQMC_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/MTZPJQMC.js"),ctx=(0,__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js").B0)([_MTZPJQMC_js__WEBPACK_IMPORTED_MODULE_1__.wf],[_MTZPJQMC_js__WEBPACK_IMPORTED_MODULE_1__.s1]),useHovercardProviderContext=(ctx.useContext,ctx.useScopedContext,ctx.useProviderContext),HovercardContextProvider=ctx.ContextProvider,HovercardScopedContextProvider=ctx.ScopedContextProvider},"./node_modules/@ariakit/react-core/esm/__chunks/F4IYJ42G.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{MW:()=>TooltipScopedContextProvider,n1:()=>useTooltipProviderContext});var _EM5CXX6A_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/EM5CXX6A.js"),ctx=(0,__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js").B0)([_EM5CXX6A_js__WEBPACK_IMPORTED_MODULE_1__.pR],[_EM5CXX6A_js__WEBPACK_IMPORTED_MODULE_1__.n0]),useTooltipProviderContext=(ctx.useContext,ctx.useScopedContext,ctx.useProviderContext),TooltipScopedContextProvider=(ctx.ContextProvider,ctx.ScopedContextProvider)},"./node_modules/@ariakit/react-core/esm/__chunks/FTXTWCCT.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{B:()=>useHovercardStoreProps});var _O2PQ2652_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/O2PQ2652.js"),_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js");function useHovercardStoreProps(store,update,props){return(0,_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_0__.Tz)(store,props,"timeout"),(0,_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_0__.Tz)(store,props,"showTimeout"),(0,_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_0__.Tz)(store,props,"hideTimeout"),(0,_O2PQ2652_js__WEBPACK_IMPORTED_MODULE_1__.o)(store,update,props)}},"./node_modules/@ariakit/react-core/esm/__chunks/KQKDTOT4.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function getEventPoint(event){return[event.clientX,event.clientY]}function isPointInPolygon(point,polygon){const[x,y]=point;let inside=!1;for(let l=polygon.length,i=0,j=l-1;i=yj&&y0&&(y===yj?y>vy&&(inside=!inside):inside=!inside)}}else if(yiyi&&y<=yj){if(0===where)return!0;where<0&&(y===yj?y=xj&&x<=xi||x>=xi&&x<=xj))return!0}return inside}function getElementPolygon(element,enterPoint){const rect=element.getBoundingClientRect(),{top,right,bottom,left}=rect,[x,y]=function getEnterPointPlacement(enterPoint,rect){const{top,right,bottom,left}=rect,[x,y]=enterPoint;return[xright?"right":null,ybottom?"bottom":null]}(enterPoint,rect),polygon=[enterPoint];return x?("top"!==y&&polygon.push(["left"===x?left:right,top]),polygon.push(["left"===x?right:left,top]),polygon.push(["left"===x?right:left,bottom]),"bottom"!==y&&polygon.push(["left"===x?left:right,bottom])):"top"===y?(polygon.push([left,top]),polygon.push([left,bottom]),polygon.push([right,bottom]),polygon.push([right,top])):(polygon.push([left,bottom]),polygon.push([left,top]),polygon.push([right,top]),polygon.push([right,bottom])),polygon}__webpack_require__.d(__webpack_exports__,{a:()=>useHovercard});var T6C2RYFI=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/T6C2RYFI.js"),JC64G2H7=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/JC64G2H7.js"),EM5CXX6A=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/EM5CXX6A.js"),LMDWO4NN=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),ABQUS43J=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),DTR5TSDJ=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/DTR5TSDJ.js"),events=__webpack_require__("./node_modules/@ariakit/core/esm/utils/events.js"),utils_focus=__webpack_require__("./node_modules/@ariakit/core/esm/utils/focus.js"),PBFD2E7P=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),BCALMBPZ=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/BCALMBPZ.js"),react=__webpack_require__("./node_modules/react/index.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function isMovingOnHovercard(target,card,anchor,nested){return!!(0,utils_focus.oW)(card)||!!target&&(!!(0,DTR5TSDJ.gR)(card,target)||(!(!anchor||!(0,DTR5TSDJ.gR)(anchor,target))||!!(null==nested?void 0:nested.some((card2=>isMovingOnHovercard(target,card2,anchor))))))}var NestedHovercardContext=(0,react.createContext)(null),useHovercard=(0,LMDWO4NN.ab)((function useHovercard2(_a){var _b=_a,{store,modal=!1,portal=!!modal,hideOnEscape=!0,hideOnHoverOutside=!0,disablePointerEventsOnApproach=!!hideOnHoverOutside}=_b,props=(0,_3YLGPPWQ.YG)(_b,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const context=(0,EM5CXX6A.Kw)();store=store||context,(0,PBFD2E7P.V1)(store,!1);const ref=(0,react.useRef)(null),[nestedHovercards,setNestedHovercards]=(0,react.useState)([]),hideTimeoutRef=(0,react.useRef)(0),enterPointRef=(0,react.useRef)(null),{portalRef,domReady}=(0,ABQUS43J.TE)(portal,props.portalRef),isMouseMoving=(0,ABQUS43J.P$)(),mayHideOnHoverOutside=!!hideOnHoverOutside,hideOnHoverOutsideProp=(0,ABQUS43J.O4)(hideOnHoverOutside),mayDisablePointerEvents=!!disablePointerEventsOnApproach,disablePointerEventsProp=(0,ABQUS43J.O4)(disablePointerEventsOnApproach),open=store.useState("open"),mounted=store.useState("mounted");(0,react.useEffect)((()=>{if(!domReady)return;if(!mounted)return;if(!mayHideOnHoverOutside&&!mayDisablePointerEvents)return;const element=ref.current;if(!element)return;return(0,PBFD2E7P.cy)((0,events.dg)("mousemove",(event=>{if(!store)return;if(!isMouseMoving())return;const{anchorElement,hideTimeout,timeout}=store.getState(),enterPoint=enterPointRef.current,[target]=event.composedPath(),anchor=anchorElement;if(isMovingOnHovercard(target,element,anchor,nestedHovercards))return enterPointRef.current=target&&anchor&&(0,DTR5TSDJ.gR)(anchor,target)?getEventPoint(event):null,window.clearTimeout(hideTimeoutRef.current),void(hideTimeoutRef.current=0);if(!hideTimeoutRef.current){if(enterPoint){const currentPoint=getEventPoint(event);if(isPointInPolygon(currentPoint,getElementPolygon(element,enterPoint))){if(enterPointRef.current=currentPoint,!disablePointerEventsProp(event))return;return event.preventDefault(),void event.stopPropagation()}}hideOnHoverOutsideProp(event)&&(hideTimeoutRef.current=window.setTimeout((()=>{hideTimeoutRef.current=0,null==store||store.hide()}),null!=hideTimeout?hideTimeout:timeout))}}),!0),(()=>clearTimeout(hideTimeoutRef.current)))}),[store,isMouseMoving,domReady,mounted,mayHideOnHoverOutside,mayDisablePointerEvents,nestedHovercards,disablePointerEventsProp,hideOnHoverOutsideProp]),(0,react.useEffect)((()=>{if(!domReady)return;if(!mounted)return;if(!mayDisablePointerEvents)return;const disableEvent=event=>{const element=ref.current;if(!element)return;const enterPoint=enterPointRef.current;if(!enterPoint)return;const polygon=getElementPolygon(element,enterPoint);if(isPointInPolygon(getEventPoint(event),polygon)){if(!disablePointerEventsProp(event))return;event.preventDefault(),event.stopPropagation()}};return(0,PBFD2E7P.cy)((0,events.dg)("mouseenter",disableEvent,!0),(0,events.dg)("mouseover",disableEvent,!0),(0,events.dg)("mouseout",disableEvent,!0),(0,events.dg)("mouseleave",disableEvent,!0))}),[domReady,mounted,mayDisablePointerEvents,disablePointerEventsProp]),(0,react.useEffect)((()=>{domReady&&(open||null==store||store.setAutoFocusOnShow(!1))}),[store,domReady,open]);const openRef=(0,ABQUS43J.hX)(open);(0,react.useEffect)((()=>{if(domReady)return()=>{openRef.current||null==store||store.setAutoFocusOnShow(!1)}}),[store,domReady]);const registerOnParent=(0,react.useContext)(NestedHovercardContext);(0,ABQUS43J.UQ)((()=>{if(modal)return;if(!portal)return;if(!mounted)return;if(!domReady)return;const element=ref.current;return element?null==registerOnParent?void 0:registerOnParent(element):void 0}),[modal,portal,mounted,domReady]);const registerNestedHovercard=(0,react.useCallback)((element=>{setNestedHovercards((prevElements=>[...prevElements,element]));const parentUnregister=null==registerOnParent?void 0:registerOnParent(element);return()=>{setNestedHovercards((prevElements=>prevElements.filter((item=>item!==element)))),null==parentUnregister||parentUnregister()}}),[registerOnParent]);props=(0,ABQUS43J.w7)(props,(element=>(0,jsx_runtime.jsx)(EM5CXX6A.n0,{value:store,children:(0,jsx_runtime.jsx)(NestedHovercardContext.Provider,{value:registerNestedHovercard,children:element})})),[store,registerNestedHovercard]),props=(0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({},props),{ref:(0,ABQUS43J.SV)(ref,props.ref)}),props=function useAutoFocusOnHide(_a){var _b=_a,{store}=_b,props=(0,_3YLGPPWQ.YG)(_b,["store"]);const[autoFocusOnHide,setAutoFocusOnHide]=(0,react.useState)(!1),mounted=store.useState("mounted");(0,react.useEffect)((()=>{mounted||setAutoFocusOnHide(!1)}),[mounted]);const onFocusProp=props.onFocus,onFocus=(0,ABQUS43J._q)((event=>{null==onFocusProp||onFocusProp(event),event.defaultPrevented||setAutoFocusOnHide(!0)})),finalFocusRef=(0,react.useRef)(null);return(0,react.useEffect)((()=>(0,BCALMBPZ.OH)(store,["anchorElement"],(state=>{finalFocusRef.current=state.anchorElement}))),[]),(0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({autoFocusOnHide,finalFocus:finalFocusRef},props),{onFocus})}((0,_3YLGPPWQ.IA)({store},props));const autoFocusOnShow=store.useState((state=>modal||state.autoFocusOnShow));return props=(0,T6C2RYFI.f)((0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({store,modal,portal,autoFocusOnShow},props),{portalRef,hideOnEscape:event=>!(0,PBFD2E7P.zO)(hideOnEscape,event)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==store||store.hide()}))})),!0)}))}));(0,JC64G2H7.AV)((0,LMDWO4NN.Rf)((function Hovercard2(props){const htmlProps=useHovercard(props);return(0,LMDWO4NN.n)("div",htmlProps)})),EM5CXX6A.Kw)},"./node_modules/@ariakit/react-core/esm/__chunks/YTDK2NGG.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{_:()=>useTooltipStore});var FTXTWCCT=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/FTXTWCCT.js"),YV4JVR4I=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js"),JTLIIJ4U=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/JTLIIJ4U.js"),BCALMBPZ=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/BCALMBPZ.js"),PBFD2E7P=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),_3YLGPPWQ=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/3YLGPPWQ.js");function createTooltipStore(props={}){var _a;const syncState=null==(_a=props.store)?void 0:_a.getState(),hovercard=(0,JTLIIJ4U.y)((0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({},props),{placement:(0,PBFD2E7P.Jh)(props.placement,null==syncState?void 0:syncState.placement,"top"),hideTimeout:(0,PBFD2E7P.Jh)(props.hideTimeout,null==syncState?void 0:syncState.hideTimeout,0)})),initialState=(0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({},hovercard.getState()),{type:(0,PBFD2E7P.Jh)(props.type,null==syncState?void 0:syncState.type,"description"),skipTimeout:(0,PBFD2E7P.Jh)(props.skipTimeout,null==syncState?void 0:syncState.skipTimeout,300)}),tooltip=(0,BCALMBPZ.y$)(initialState,hovercard,props.store);return(0,_3YLGPPWQ.IA)((0,_3YLGPPWQ.IA)({},hovercard),tooltip)}function useTooltipStore(props={}){const[store,update]=(0,YV4JVR4I.Pj)(createTooltipStore,props);return function useTooltipStoreProps(store,update,props){return(0,YV4JVR4I.Tz)(store,props,"type"),(0,YV4JVR4I.Tz)(store,props,"skipTimeout"),(0,FTXTWCCT.B)(store,update,props)}(store,update,props)}},"./node_modules/@ariakit/react-core/esm/tooltip/tooltip-anchor.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{f:()=>TooltipAnchor});var _chunks_BYC7LY2E_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/BYC7LY2E.js"),_chunks_F4IYJ42G_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/F4IYJ42G.js"),_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),_ariakit_core_utils_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/BCALMBPZ.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),globalStore=(0,_ariakit_core_utils_store__WEBPACK_IMPORTED_MODULE_1__.y$)({activeStore:null});function createRemoveStoreCallback(store){return()=>{const{activeStore}=globalStore.getState();activeStore===store&&globalStore.setState("activeStore",null)}}var useTooltipAnchor=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.ab)((function useTooltipAnchor2(_a){var _b=_a,{store,showOnHover=!0}=_b,props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.YG)(_b,["store","showOnHover"]);const context=(0,_chunks_F4IYJ42G_js__WEBPACK_IMPORTED_MODULE_4__.n1)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.V1)(store,!1);const canShowOnHoverRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!1);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>(0,_ariakit_core_utils_store__WEBPACK_IMPORTED_MODULE_1__.OH)(store,["mounted"],(state=>{state.mounted||(canShowOnHoverRef.current=!1)}))),[store]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{if(store)return(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.cy)(createRemoveStoreCallback(store),(0,_ariakit_core_utils_store__WEBPACK_IMPORTED_MODULE_1__.OH)(store,["mounted","skipTimeout"],(state=>{if(!store)return;if(state.mounted){const{activeStore}=globalStore.getState();return activeStore!==store&&(null==activeStore||activeStore.hide()),globalStore.setState("activeStore",store)}const id=setTimeout(createRemoveStoreCallback(store),state.skipTimeout);return()=>clearTimeout(id)})))}),[store]);const onMouseEnterProp=props.onMouseEnter,onMouseEnter=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__._q)((event=>{null==onMouseEnterProp||onMouseEnterProp(event),canShowOnHoverRef.current=!0})),onFocusVisibleProp=props.onFocusVisible,onFocusVisible=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__._q)((event=>{null==onFocusVisibleProp||onFocusVisibleProp(event),event.defaultPrevented||(null==store||store.setAnchorElement(event.currentTarget),null==store||store.show())})),onBlurProp=props.onBlur,onBlur=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__._q)((event=>{if(null==onBlurProp||onBlurProp(event),event.defaultPrevented)return;const{activeStore}=globalStore.getState();canShowOnHoverRef.current=!1,activeStore===store&&globalStore.setState("activeStore",null)})),type=store.useState("type"),contentId=store.useState((state=>{var _a2;return null==(_a2=state.contentElement)?void 0:_a2.id}));return props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({"aria-labelledby":"label"===type?contentId:void 0},props),{onMouseEnter,onFocusVisible,onBlur}),props=(0,_chunks_BYC7LY2E_js__WEBPACK_IMPORTED_MODULE_7__.p)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({store,showOnHover(event){if(!canShowOnHoverRef.current)return!1;if((0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.zO)(showOnHover,event))return!1;const{activeStore}=globalStore.getState();return!activeStore||(null==store||store.show(),!1)}},props))})),TooltipAnchor=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.Rf)((function TooltipAnchor2(props){const htmlProps=useTooltipAnchor(props);return(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.n)("div",htmlProps)}))},"./node_modules/@ariakit/react-core/esm/tooltip/tooltip.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{m:()=>Tooltip});var _chunks_KQKDTOT4_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/KQKDTOT4.js"),_chunks_JC64G2H7_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/JC64G2H7.js"),_chunks_F4IYJ42G_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/F4IYJ42G.js"),_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/DTR5TSDJ.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js"),useTooltip=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.ab)((function useTooltip2(_a){var _b=_a,{store,portal=!0,gutter=8,preserveTabOrder=!1,hideOnHoverOutside=!0,hideOnInteractOutside=!0}=_b,props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.YG)(_b,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const context=(0,_chunks_F4IYJ42G_js__WEBPACK_IMPORTED_MODULE_3__.n1)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_4__.V1)(store,!1),props=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.w7)(props,(element=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_chunks_F4IYJ42G_js__WEBPACK_IMPORTED_MODULE_3__.MW,{value:store,children:element})),[store]);const role=store.useState((state=>"description"===state.type?"tooltip":"none"));return props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.IA)({role},props),props=(0,_chunks_KQKDTOT4_js__WEBPACK_IMPORTED_MODULE_6__.a)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.ko)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.IA)({},props),{store,portal,gutter,preserveTabOrder,hideOnHoverOutside(event){if((0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_4__.zO)(hideOnHoverOutside,event))return!1;const anchorElement=null==store?void 0:store.getState().anchorElement;return!anchorElement||!("focusVisible"in anchorElement.dataset)},hideOnInteractOutside:event=>{if((0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_4__.zO)(hideOnInteractOutside,event))return!1;const anchorElement=null==store?void 0:store.getState().anchorElement;return!anchorElement||!(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_7__.gR)(anchorElement,event.target)}}))})),Tooltip=(0,_chunks_JC64G2H7_js__WEBPACK_IMPORTED_MODULE_8__.AV)((0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.Rf)((function Tooltip2(props){const htmlProps=useTooltip(props);return(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.n)("div",htmlProps)})),_chunks_F4IYJ42G_js__WEBPACK_IMPORTED_MODULE_3__.n1)}}]); \ No newline at end of file diff --git a/3454.5c9b7552.iframe.bundle.js b/3454.5c9b7552.iframe.bundle.js new file mode 100644 index 00000000000000..513b81658ab139 --- /dev/null +++ b/3454.5c9b7552.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[3454],{"./packages/components/src/utils/font.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{g:()=>font});const font_values={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function font(value){var _FONT$value;return null!==(_FONT$value=font_values[value])&&void 0!==_FONT$value?_FONT$value:""}},"./packages/components/src/base-control/styles/base-control-styles.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Gw:()=>StyledLabel,Om:()=>StyledVisualLabel,mO:()=>Wrapper,mh:()=>StyledField,te:()=>StyledHelp});var _emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),_emotion_react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/src/utils/font.js"),_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/src/utils/box-sizing.ts"),_utils__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/components/src/utils/base-label.ts"),_utils__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/components/src/utils/colors-values.js"),_utils_space__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/components/src/utils/space.ts");const Wrapper=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("div",{target:"ej5x27r4"})("font-family:",(0,_utils__WEBPACK_IMPORTED_MODULE_1__.g)("default.fontFamily"),";font-size:",(0,_utils__WEBPACK_IMPORTED_MODULE_1__.g)("default.fontSize"),";",_utils__WEBPACK_IMPORTED_MODULE_2__.r,";"),deprecatedMarginField=({__nextHasNoMarginBottom=!1})=>!__nextHasNoMarginBottom&&(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)("margin-bottom:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_4__.x)(2),";",""),StyledField=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("div",{target:"ej5x27r3"})(deprecatedMarginField," .components-panel__row &{margin-bottom:inherit;}"),labelStyles=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)(_utils__WEBPACK_IMPORTED_MODULE_5__.z,";display:block;margin-bottom:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_4__.x)(2),";padding:0;",""),StyledLabel=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("label",{target:"ej5x27r2"})(labelStyles,";");var _ref={name:"11yad0w",styles:"margin-bottom:revert"};const deprecatedMarginHelp=({__nextHasNoMarginBottom=!1})=>!__nextHasNoMarginBottom&&_ref,StyledHelp=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("p",{target:"ej5x27r1"})("margin-top:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_4__.x)(2),";margin-bottom:0;font-size:",(0,_utils__WEBPACK_IMPORTED_MODULE_1__.g)("helpText.fontSize"),";font-style:normal;color:",_utils__WEBPACK_IMPORTED_MODULE_6__.l.gray[700],";",deprecatedMarginHelp,";"),StyledVisualLabel=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("span",{target:"ej5x27r0"})(labelStyles,";")},"./packages/components/src/utils/base-label.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{z:()=>baseLabelTypography});const baseLabelTypography={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"}},"./packages/components/src/utils/box-sizing.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{r:()=>boxSizingReset});const boxSizingReset={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"}}}]); \ No newline at end of file diff --git a/3484.62a13000.iframe.bundle.js b/3484.62a13000.iframe.bundle.js new file mode 100644 index 00000000000000..4f87bb0825589f --- /dev/null +++ b/3484.62a13000.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[3484],{"./node_modules/memize/dist/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function memize(fn,options){var head,tail,size=0;function memoized(){var args,i,node=head,len=arguments.length;searchCache:for(;node;){if(node.args.length===arguments.length){for(i=0;imemize})},"./node_modules/sprintf-js/src/sprintf.js":(module,exports,__webpack_require__)=>{var __WEBPACK_AMD_DEFINE_RESULT__;!function(){"use strict";var re={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[\+\-]/};function sprintf(key){return function sprintf_format(parse_tree,argv){var arg,i,k,match,pad,pad_character,pad_length,is_positive,sign,cursor=1,tree_length=parse_tree.length,output="";for(i=0;i=0),match[8]){case"b":arg=parseInt(arg,10).toString(2);break;case"c":arg=String.fromCharCode(parseInt(arg,10));break;case"d":case"i":arg=parseInt(arg,10);break;case"j":arg=JSON.stringify(arg,null,match[6]?parseInt(match[6]):0);break;case"e":arg=match[7]?parseFloat(arg).toExponential(match[7]):parseFloat(arg).toExponential();break;case"f":arg=match[7]?parseFloat(arg).toFixed(match[7]):parseFloat(arg);break;case"g":arg=match[7]?String(Number(arg.toPrecision(match[7]))):parseFloat(arg);break;case"o":arg=(parseInt(arg,10)>>>0).toString(8);break;case"s":arg=String(arg),arg=match[7]?arg.substring(0,match[7]):arg;break;case"t":arg=String(!!arg),arg=match[7]?arg.substring(0,match[7]):arg;break;case"T":arg=Object.prototype.toString.call(arg).slice(8,-1).toLowerCase(),arg=match[7]?arg.substring(0,match[7]):arg;break;case"u":arg=parseInt(arg,10)>>>0;break;case"v":arg=arg.valueOf(),arg=match[7]?arg.substring(0,match[7]):arg;break;case"x":arg=(parseInt(arg,10)>>>0).toString(16);break;case"X":arg=(parseInt(arg,10)>>>0).toString(16).toUpperCase()}re.json.test(match[8])?output+=arg:(!re.number.test(match[8])||is_positive&&!match[3]?sign="":(sign=is_positive?"+":"-",arg=arg.toString().replace(re.sign,"")),pad_character=match[4]?"0"===match[4]?"0":match[4].charAt(1):" ",pad_length=match[6]-(sign+arg).length,pad=match[6]&&pad_length>0?pad_character.repeat(pad_length):"",output+=match[5]?sign+arg+pad:"0"===pad_character?sign+pad+arg:pad+sign+arg)}return output}(function sprintf_parse(fmt){if(sprintf_cache[fmt])return sprintf_cache[fmt];var match,_fmt=fmt,parse_tree=[],arg_names=0;for(;_fmt;){if(null!==(match=re.text.exec(_fmt)))parse_tree.push(match[0]);else if(null!==(match=re.modulo.exec(_fmt)))parse_tree.push("%");else{if(null===(match=re.placeholder.exec(_fmt)))throw new SyntaxError("[sprintf] unexpected placeholder");if(match[2]){arg_names|=1;var field_list=[],replacement_field=match[2],field_match=[];if(null===(field_match=re.key.exec(replacement_field)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(field_list.push(field_match[1]);""!==(replacement_field=replacement_field.substring(field_match[0].length));)if(null!==(field_match=re.key_access.exec(replacement_field)))field_list.push(field_match[1]);else{if(null===(field_match=re.index_access.exec(replacement_field)))throw new SyntaxError("[sprintf] failed to parse named argument key");field_list.push(field_match[1])}match[2]=field_list}else arg_names|=2;if(3===arg_names)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");parse_tree.push(match)}_fmt=_fmt.substring(match[0].length)}return sprintf_cache[fmt]=parse_tree}(key),arguments)}function vsprintf(fmt,argv){return sprintf.apply(null,[fmt].concat(argv||[]))}var sprintf_cache=Object.create(null);exports.sprintf=sprintf,exports.vsprintf=vsprintf,"undefined"!=typeof window&&(window.sprintf=sprintf,window.vsprintf=vsprintf,void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return{sprintf,vsprintf}}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}()},"./node_modules/tannin/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var PRECEDENCE,OPENERS,TERMINATORS,PATTERN;__webpack_require__.d(__webpack_exports__,{A:()=>Tannin}),PRECEDENCE={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},OPENERS=["(","?"],TERMINATORS={")":["("],":":["?","?:"]},PATTERN=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var OPERATORS={"!":function(a){return!a},"*":function(a,b){return a*b},"/":function(a,b){return a/b},"%":function(a,b){return a%b},"+":function(a,b){return a+b},"-":function(a,b){return a-b},"<":function(a,b){return a":function(a,b){return a>b},">=":function(a,b){return a>=b},"==":function(a,b){return a===b},"!=":function(a,b){return a!==b},"&&":function(a,b){return a&&b},"||":function(a,b){return a||b},"?:":function(a,b,c){if(a)throw b;return c}};function compile(expression){var terms=function postfix(expression){for(var match,operator,term,element,terms=[],stack=[];match=expression.match(PATTERN);){for(operator=match[0],(term=expression.substr(0,match.index).trim())&&terms.push(term);element=stack.pop();){if(TERMINATORS[operator]){if(TERMINATORS[operator][0]===element){operator=TERMINATORS[operator][1]||operator;break}}else if(OPENERS.indexOf(element)>=0||PRECEDENCE[element]{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _context__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),_context__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/components/build-module/context/context-connect.js"),_styles_input_control_styles__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/build-module/input-control/styles/input-control-styles.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,_context__WEBPACK_IMPORTED_MODULE_3__.KZ)((function UnconnectedInputControlSuffixWrapper(props,forwardedRef){const derivedProps=(0,_context__WEBPACK_IMPORTED_MODULE_1__.A)(props,"InputControlSuffixWrapper");return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_styles_input_control_styles__WEBPACK_IMPORTED_MODULE_2__.bC,{...derivedProps,ref:forwardedRef})}),"InputControlSuffixWrapper")},"./packages/components/build-module/select-control/chevron-down.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_icons__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/icons/build-module/icon/index.js"),_wordpress_icons__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/icons/build-module/library/chevron-down.js"),_styles_select_control_styles__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/build-module/select-control/styles/select-control-styles.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=()=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_styles_select_control_styles__WEBPACK_IMPORTED_MODULE_1__.vt,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_styles_select_control_styles__WEBPACK_IMPORTED_MODULE_1__.ff,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_icons__WEBPACK_IMPORTED_MODULE_2__.A,{icon:_wordpress_icons__WEBPACK_IMPORTED_MODULE_3__.A,size:_styles_select_control_styles__WEBPACK_IMPORTED_MODULE_1__.qO})})})},"./packages/components/build-module/select-control/styles/select-control-styles.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Xg:()=>StyledInputBase,ff:()=>DownArrowWrapper,l6:()=>Select,qO:()=>chevronIconSize,vt:()=>InputControlSuffixWrapperWithClickThrough});var _emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),_emotion_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/build-module/utils/colors-values.js"),_utils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/components/build-module/utils/config-values.js"),_utils__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/components/build-module/utils/rtl.js"),_utils_space__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/components/build-module/utils/space.js"),_input_control_input_suffix_wrapper__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./packages/components/build-module/input-control/input-suffix-wrapper.js"),_input_control_styles_input_control_styles__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/components/build-module/input-control/styles/input-control-styles.js"),_input_control_input_base__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/components/build-module/input-control/input-base.js");const disabledStyles=({disabled})=>disabled?(0,_emotion_react__WEBPACK_IMPORTED_MODULE_1__.AH)("color:",_utils__WEBPACK_IMPORTED_MODULE_2__.l.ui.textDisabled,";cursor:default;","","",""):"";var _ref2={name:"1lv1yo7",styles:"display:inline-flex"};const inputBaseVariantStyles=({variant})=>"minimal"===variant?_ref2:"",StyledInputBase=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)(_input_control_input_base__WEBPACK_IMPORTED_MODULE_3__.A,{target:"e1mv6sxx3"})("color:",_utils__WEBPACK_IMPORTED_MODULE_2__.l.theme.foreground,";cursor:pointer;",disabledStyles," ",inputBaseVariantStyles,";"),sizeStyles=({__next40pxDefaultSize,multiple,selectSize="default"})=>{if(multiple)return;const sizes={default:{height:40,minHeight:40,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},compact:{height:32,minHeight:32,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};__next40pxDefaultSize||(sizes.default=sizes.compact);const style=sizes[selectSize]||sizes.default;return(0,_emotion_react__WEBPACK_IMPORTED_MODULE_1__.AH)(style,"","","","")},chevronIconSize=18,sizePaddings=({__next40pxDefaultSize,multiple,selectSize="default"})=>{const padding={default:_utils__WEBPACK_IMPORTED_MODULE_4__.A.controlPaddingX,small:_utils__WEBPACK_IMPORTED_MODULE_4__.A.controlPaddingXSmall,compact:_utils__WEBPACK_IMPORTED_MODULE_4__.A.controlPaddingXSmall,"__unstable-large":_utils__WEBPACK_IMPORTED_MODULE_4__.A.controlPaddingX};__next40pxDefaultSize||(padding.default=padding.compact);const selectedPadding=padding[selectSize]||padding.default;return(0,_utils__WEBPACK_IMPORTED_MODULE_5__.h)({paddingLeft:selectedPadding,paddingRight:selectedPadding+chevronIconSize,...multiple?{paddingTop:selectedPadding,paddingBottom:selectedPadding}:{}})},overflowStyles=({multiple})=>({overflow:multiple?"auto":"hidden"});var _ref={name:"n1jncc",styles:"field-sizing:content"};const variantStyles=({variant})=>"minimal"===variant?_ref:"",Select=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:currentColor;cursor:inherit;display:block;font-family:inherit;margin:0;width:100%;max-width:none;white-space:nowrap;text-overflow:ellipsis;",_input_control_styles_input_control_styles__WEBPACK_IMPORTED_MODULE_6__.TA,";",sizeStyles,";",sizePaddings,";",overflowStyles," ",variantStyles,";}"),DownArrowWrapper=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("div",{target:"e1mv6sxx1"})("margin-inline-end:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_7__.x)(-1),";line-height:0;path{fill:currentColor;}"),InputControlSuffixWrapperWithClickThrough=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)(_input_control_input_suffix_wrapper__WEBPACK_IMPORTED_MODULE_8__.A,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",(0,_utils__WEBPACK_IMPORTED_MODULE_5__.h)({right:0}),";")},"./packages/icons/build-module/icon/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const __WEBPACK_DEFAULT_EXPORT__=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((function Icon({icon,size=24,...props},ref){return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(icon,{width:size,height:size,...props,ref})}))},"./packages/icons/build-module/library/chevron-down.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})})}}]); \ No newline at end of file diff --git a/3627.f49e1654.iframe.bundle.js b/3627.f49e1654.iframe.bundle.js new file mode 100644 index 00000000000000..6dd329495446ef --- /dev/null +++ b/3627.f49e1654.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[3627],{"./packages/components/src/flex/context.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{R:()=>FlexContext,a:()=>useFlexContext});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const FlexContext=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createContext)({flexItemDisplay:void 0}),useFlexContext=()=>(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useContext)(FlexContext)},"./packages/components/src/flex/flex-item/hook.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{K:()=>useFlexItem});var _emotion_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),_context__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/components/src/context/use-context-system.js"),_context__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/src/flex/context.ts"),_styles__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/components/src/flex/styles.ts"),_utils_hooks_use_cx__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/components/src/utils/hooks/use-cx.ts");function useFlexItem(props){const{className,display:displayProp,isBlock=!1,...otherProps}=(0,_context__WEBPACK_IMPORTED_MODULE_0__.A)(props,"FlexItem"),sx={},contextDisplay=(0,_context__WEBPACK_IMPORTED_MODULE_1__.a)().flexItemDisplay;sx.Base=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_2__.AH)({display:displayProp||contextDisplay},"","");return{...otherProps,className:(0,_utils_hooks_use_cx__WEBPACK_IMPORTED_MODULE_3__.l)()(_styles__WEBPACK_IMPORTED_MODULE_4__.q7,sx.Base,isBlock&&_styles__WEBPACK_IMPORTED_MODULE_4__.om,className)}}},"./packages/components/src/flex/flex/hook.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{v:()=>useFlex});var _emotion_react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),_wordpress_element__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/deprecated/build-module/index.js"),_context__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/src/context/use-context-system.js"),_utils_use_responsive_value__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/src/utils/use-responsive-value.ts"),_utils_space__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/components/src/utils/space.ts"),_styles__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/components/src/flex/styles.ts"),_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/components/src/utils/hooks/use-cx.ts");function useFlex(props){const{align,className,direction:directionProp="row",expanded=!0,gap=2,justify="space-between",wrap=!1,...otherProps}=(0,_context__WEBPACK_IMPORTED_MODULE_1__.A)(function useDeprecatedProps(props){const{isReversed,...otherProps}=props;return void 0!==isReversed?((0,_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_0__.A)("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...otherProps,direction:isReversed?"row-reverse":"row"}):otherProps}(props),"Flex"),directionAsArray=Array.isArray(directionProp)?directionProp:[directionProp],direction=(0,_utils_use_responsive_value__WEBPACK_IMPORTED_MODULE_2__.t)(directionAsArray),isColumn="string"==typeof direction&&!!direction.includes("column"),cx=(0,_utils__WEBPACK_IMPORTED_MODULE_3__.l)();return{...otherProps,className:(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.useMemo)((()=>{const base=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_5__.AH)({alignItems:null!=align?align:isColumn?"normal":"center",flexDirection:direction,flexWrap:wrap?"wrap":void 0,gap:(0,_utils_space__WEBPACK_IMPORTED_MODULE_6__.x)(gap),justifyContent:justify,height:isColumn&&expanded?"100%":void 0,width:!isColumn&&expanded?"100%":void 0},"","");return cx(_styles__WEBPACK_IMPORTED_MODULE_7__.so,base,isColumn?_styles__WEBPACK_IMPORTED_MODULE_7__.Z2:_styles__WEBPACK_IMPORTED_MODULE_7__.RI,className)}),[align,className,cx,direction,expanded,gap,isColumn,justify,wrap]),isColumn}}},"./packages/components/src/flex/styles.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{RI:()=>ItemsRow,Z2:()=>ItemsColumn,om:()=>block,q7:()=>Item,so:()=>Flex});const Flex={name:"zjik7",styles:"display:flex"},Item={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},block={name:"82a6rk",styles:"flex:1"},ItemsColumn={name:"13nosa1",styles:">*{min-height:0;}"},ItemsRow={name:"1pwxzk4",styles:">*{min-width:0;}"}},"./packages/components/src/utils/space.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{x:()=>space});const GRID_BASE="4px";function space(value){if(void 0===value)return;if(!value)return"0";const asInt="number"==typeof value?value:Number(value);return"undefined"!=typeof window&&window.CSS?.supports?.("margin",value.toString())||Number.isNaN(asInt)?value.toString():`calc(${GRID_BASE} * ${value})`}},"./packages/components/src/utils/use-responsive-value.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{t:()=>useResponsiveValue});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const breakpoints=["40em","52em","64em"],useBreakpointIndex=(options={})=>{const{defaultIndex=0}=options;if("number"!=typeof defaultIndex)throw new TypeError(`Default breakpoint index should be a number. Got: ${defaultIndex}, ${typeof defaultIndex}`);if(defaultIndex<0||defaultIndex>breakpoints.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${breakpoints.length} breakpoints, got index ${defaultIndex}`);const[value,setValue]=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(defaultIndex);return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{const onResize=()=>{const newValue=breakpoints.filter((bp=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${bp})`).matches)).length;value!==newValue&&setValue(newValue)};return onResize(),"undefined"!=typeof window&&window.addEventListener("resize",onResize),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",onResize)}}),[value]),value};function useResponsiveValue(values,options={}){const index=useBreakpointIndex(options);if(!Array.isArray(values)&&"function"!=typeof values)return values;const array=values||[];return array[index>=array.length?array.length-1:index]}}}]); \ No newline at end of file diff --git a/3777.1420e2f9.iframe.bundle.js b/3777.1420e2f9.iframe.bundle.js new file mode 100644 index 00000000000000..98920766a212f4 --- /dev/null +++ b/3777.1420e2f9.iframe.bundle.js @@ -0,0 +1,6 @@ +/*! For license information please see 3777.1420e2f9.iframe.bundle.js.LICENSE.txt */ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[3777],{"./node_modules/@storybook/test/dist/index.mjs":(module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{fn:()=>fn2});var external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_CLIENT_LOGGER_=__webpack_require__("storybook/internal/client-logger"),external_STORYBOOK_MODULE_CORE_EVENTS_=__webpack_require__("storybook/internal/core-events"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/internal/preview-api"),process=__webpack_require__("./node_modules/process/browser.js"),__require=__webpack_require__("./node_modules/@storybook/instrumenter/dist sync recursive"),h=Object.entries({reset:[0,0],bold:[1,22,""],dim:[2,22,""],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]});function a(n){return String(n)}a.open="",a.close="";var f2=function p(n=!1){let e=function C(n=!1){let e=typeof process<"u"?process:void 0,i=e?.env||{},g=e?.argv||[];return!("NO_COLOR"in i||g.includes("--no-color"))&&("FORCE_COLOR"in i||g.includes("--color")||"win32"===e?.platform||n&&"dumb"!==i.TERM||"CI"in i)||typeof window<"u"&&!!window.chrome}(n),g=(r,t,c=r)=>{let o=l=>{let s=String(l),b=s.indexOf(t,r.length);return~b?r+((r,t,c,o)=>{let l="",s=0;do{l+=r.substring(s,o)+c,s=o+t.length,o=r.indexOf(t,s)}while(~o);return l+r.substring(s)})(s,t,c,b)+t:r+s+t};return o.open=r,o.close=t,o},u={isColorSupported:e},d=r=>`[${r}m`;for(let[r,t]of h)u[r]=e?g(d(t[0]),d(t[1]),t[2]):a;return u}(!1);function printIteratorEntries(iterator,config,indentation,depth,refs,printer2,separator=": "){let result="",width=0,current=iterator.next();if(!current.done){result+=config.spacingOuter;let indentationNext=indentation+config.indent;for(;!current.done;){if(result+=indentationNext,width++===config.maxWidth){result+="…";break}result+=printer2(current.value[0],config,indentationNext,depth,refs)+separator+printer2(current.value[1],config,indentationNext,depth,refs),current=iterator.next(),current.done?config.min||(result+=","):result+=`,${config.spacingInner}`}result+=config.spacingOuter+indentation}return result}function printIteratorValues(iterator,config,indentation,depth,refs,printer2){let result="",width=0,current=iterator.next();if(!current.done){result+=config.spacingOuter;let indentationNext=indentation+config.indent;for(;!current.done;){if(result+=indentationNext,width++===config.maxWidth){result+="…";break}result+=printer2(current.value,config,indentationNext,depth,refs),current=iterator.next(),current.done?config.min||(result+=","):result+=`,${config.spacingInner}`}result+=config.spacingOuter+indentation}return result}function printListItems(list,config,indentation,depth,refs,printer2){let result="",isDataView=l=>l instanceof DataView,length=isDataView(list=list instanceof ArrayBuffer?new DataView(list):list)?list.byteLength:list.length;if(length>0){result+=config.spacingOuter;let indentationNext=indentation+config.indent;for(let i=0;i0){result+=config.spacingOuter;let indentationNext=indentation+config.indent;for(let i=0;i{let stringedValue=val.toString();if("ArrayContaining"===stringedValue||"ArrayNotContaining"===stringedValue)return++depth>config.maxDepth?`[${stringedValue}]`:`${stringedValue+" "}[${printListItems(val.sample,config,indentation,depth,refs,printer2)}]`;if("ObjectContaining"===stringedValue||"ObjectNotContaining"===stringedValue)return++depth>config.maxDepth?`[${stringedValue}]`:`${stringedValue+" "}{${printObjectProperties(val.sample,config,indentation,depth,refs,printer2)}}`;if("StringMatching"===stringedValue||"StringNotMatching"===stringedValue||"StringContaining"===stringedValue||"StringNotContaining"===stringedValue)return stringedValue+" "+printer2(val.sample,config,indentation,depth,refs);if("function"!=typeof val.toAsymmetricMatcher)throw new TypeError(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);return val.toAsymmetricMatcher()},test:val=>val&&val.$$typeof===asymmetricMatcher},OBJECT_NAMES=new Set(["DOMStringMap","NamedNodeMap"]),ARRAY_REGEXP=/^(?:HTML\w*Collection|NodeList)$/;var plugin$4={serialize:(collection,config,indentation,depth,refs,printer2)=>{let name=collection.constructor.name;return++depth>config.maxDepth?`[${name}]`:(config.min?"":name+" ")+(OBJECT_NAMES.has(name)?`{${printObjectProperties(function isNamedNodeMap(collection){return"NamedNodeMap"===collection.constructor.name}(collection)?[...collection].reduce(((props,attribute)=>(props[attribute.name]=attribute.value,props)),{}):{...collection},config,indentation,depth,refs,printer2)}}`:`[${printListItems([...collection],config,indentation,depth,refs,printer2)}]`)},test:val=>val&&val.constructor&&!!val.constructor.name&&function testName(name){return OBJECT_NAMES.has(name)||ARRAY_REGEXP.test(name)}(val.constructor.name)};function escapeHTML(str){return str.replaceAll("<","<").replaceAll(">",">")}function printProps(keys,props,config,indentation,depth,refs,printer2){let indentationNext=indentation+config.indent,colors=config.colors;return keys.map((key=>{let value=props[key],printed=printer2(value,config,indentationNext,depth,refs);return"string"!=typeof value&&(printed.includes("\n")&&(printed=config.spacingOuter+indentationNext+printed+config.spacingOuter+indentation),printed=`{${printed}}`),`${config.spacingInner+indentation+colors.prop.open+key+colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`})).join("")}function printChildren(children,config,indentation,depth,refs,printer2){return children.map((child=>config.spacingOuter+indentation+("string"==typeof child?printText(child,config):printer2(child,config,indentation,depth,refs)))).join("")}function printText(text,config){let contentColor=config.colors.content;return contentColor.open+escapeHTML(text)+contentColor.close}function printElement(type,printedProps,printedChildren,config,indentation){let tagColor=config.colors.tag;return`${tagColor.open}<${type}${printedProps&&tagColor.close+printedProps+config.spacingOuter+indentation+tagColor.open}${printedChildren?`>${tagColor.close}${printedChildren}${config.spacingOuter}${indentation}${tagColor.open}${tagColor.close}`}function printElementAsLeaf(type,config){let tagColor=config.colors.tag;return`${tagColor.open}<${type}${tagColor.close} …${tagColor.open} />${tagColor.close}`}var ELEMENT_REGEXP=/^(?:(?:HTML|SVG)\w*)?Element$/;function nodeIsFragment(node){return 11===node.nodeType}var plugin$3={serialize:(node,config,indentation,depth,refs,printer2)=>{if(function nodeIsText(node){return 3===node.nodeType}(node))return printText(node.data,config);if(function nodeIsComment(node){return 8===node.nodeType}(node))return function printComment(comment,config){let commentColor=config.colors.comment;return`${commentColor.open}\x3c!--${escapeHTML(comment)}--\x3e${commentColor.close}`}(node.data,config);let type=nodeIsFragment(node)?"DocumentFragment":node.tagName.toLowerCase();return++depth>config.maxDepth?printElementAsLeaf(type,config):printElement(type,printProps(nodeIsFragment(node)?[]:Array.from(node.attributes,(attr=>attr.name)).sort(),nodeIsFragment(node)?{}:[...node.attributes].reduce(((props,attribute)=>(props[attribute.name]=attribute.value,props)),{}),config,indentation+config.indent,depth,refs,printer2),printChildren(Array.prototype.slice.call(node.childNodes||node.children),config,indentation+config.indent,depth,refs,printer2),config,indentation)},test:val=>{var _a;return(null==(_a=val?.constructor)?void 0:_a.name)&&function testNode(val){let constructorName=val.constructor.name,{nodeType,tagName}=val,isCustomElement="string"==typeof tagName&&tagName.includes("-")||function testHasAttribute(val){try{return"function"==typeof val.hasAttribute&&val.hasAttribute("is")}catch{return!1}}(val);return 1===nodeType&&(ELEMENT_REGEXP.test(constructorName)||isCustomElement)||3===nodeType&&"Text"===constructorName||8===nodeType&&"Comment"===constructorName||11===nodeType&&"DocumentFragment"===constructorName}(val)}},getImmutableName=name=>`Immutable.${name}`,printAsLeaf=name=>`[${name}]`;function printImmutableValues(val,config,indentation,depth,refs,printer2,type){return++depth>config.maxDepth?printAsLeaf(getImmutableName(type)):`${getImmutableName(type)+" "}[${printIteratorValues(val.values(),config,indentation,depth,refs,printer2)}]`}var hasRequiredReactIs_development,hasRequiredReactIs,plugin$2={serialize:(val,config,indentation,depth,refs,printer2)=>val["@@__IMMUTABLE_MAP__@@"]?function printImmutableEntries(val,config,indentation,depth,refs,printer2,type){return++depth>config.maxDepth?printAsLeaf(getImmutableName(type)):`${getImmutableName(type)+" "}{${printIteratorEntries(val.entries(),config,indentation,depth,refs,printer2)}}`}(val,config,indentation,depth,refs,printer2,val["@@__IMMUTABLE_ORDERED__@@"]?"OrderedMap":"Map"):val["@@__IMMUTABLE_LIST__@@"]?printImmutableValues(val,config,indentation,depth,refs,printer2,"List"):val["@@__IMMUTABLE_SET__@@"]?printImmutableValues(val,config,indentation,depth,refs,printer2,val["@@__IMMUTABLE_ORDERED__@@"]?"OrderedSet":"Set"):val["@@__IMMUTABLE_STACK__@@"]?printImmutableValues(val,config,indentation,depth,refs,printer2,"Stack"):val["@@__IMMUTABLE_SEQ__@@"]?function printImmutableSeq(val,config,indentation,depth,refs,printer2){let name=getImmutableName("Seq");return++depth>config.maxDepth?printAsLeaf(name):val["@@__IMMUTABLE_KEYED__@@"]?`${name+" "}{${val._iter||val._object?printIteratorEntries(val.entries(),config,indentation,depth,refs,printer2):"…"}}`:`${name+" "}[${val._iter||val._array||val._collection||val._iterable?printIteratorValues(val.values(),config,indentation,depth,refs,printer2):"…"}]`}(val,config,indentation,depth,refs,printer2):function printImmutableRecord(val,config,indentation,depth,refs,printer2){let name=getImmutableName(val._name||"Record");return++depth>config.maxDepth?printAsLeaf(name):`${name+" "}{${printIteratorEntries(function getRecordEntries(val){let i=0;return{next(){if(ival&&(!0===val["@@__IMMUTABLE_ITERABLE__@@"]||!0===val["@@__IMMUTABLE_RECORD__@@"])},reactIs={exports:{}},reactIs_development={};var reactIsExports=function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,reactIs.exports=function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,function(){var REACT_MODULE_REFERENCE,REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_SERVER_CONTEXT_TYPE=Symbol.for("react.server_context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_OFFSCREEN_TYPE=Symbol.for("react.offscreen");function typeOf(object){if("object"==typeof object&&null!==object){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_SERVER_CONTEXT_TYPE:case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}REACT_MODULE_REFERENCE=Symbol.for("react.module.reference");var ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element2=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,SuspenseList=REACT_SUSPENSE_LIST_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1,hasWarnedAboutDeprecatedIsConcurrentMode=!1;reactIs_development.ContextConsumer=ContextConsumer,reactIs_development.ContextProvider=ContextProvider,reactIs_development.Element=Element2,reactIs_development.ForwardRef=ForwardRef,reactIs_development.Fragment=Fragment,reactIs_development.Lazy=Lazy,reactIs_development.Memo=Memo,reactIs_development.Portal=Portal,reactIs_development.Profiler=Profiler,reactIs_development.StrictMode=StrictMode,reactIs_development.Suspense=Suspense,reactIs_development.SuspenseList=SuspenseList,reactIs_development.isAsyncMode=function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},reactIs_development.isConcurrentMode=function isConcurrentMode(object){return hasWarnedAboutDeprecatedIsConcurrentMode||(hasWarnedAboutDeprecatedIsConcurrentMode=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},reactIs_development.isContextConsumer=function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE},reactIs_development.isContextProvider=function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE},reactIs_development.isElement=function isElement(object){return"object"==typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE},reactIs_development.isForwardRef=function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE},reactIs_development.isFragment=function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE},reactIs_development.isLazy=function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE},reactIs_development.isMemo=function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE},reactIs_development.isPortal=function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE},reactIs_development.isProfiler=function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE},reactIs_development.isStrictMode=function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE},reactIs_development.isSuspense=function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE},reactIs_development.isSuspenseList=function isSuspenseList(object){return typeOf(object)===REACT_SUSPENSE_LIST_TYPE},reactIs_development.isValidElementType=function isValidElementType(type){return!("string"!=typeof type&&"function"!=typeof type&&type!==REACT_FRAGMENT_TYPE&&type!==REACT_PROFILER_TYPE&&type!==REACT_STRICT_MODE_TYPE&&type!==REACT_SUSPENSE_TYPE&&type!==REACT_SUSPENSE_LIST_TYPE&&type!==REACT_OFFSCREEN_TYPE&&("object"!=typeof type||null===type||type.$$typeof!==REACT_LAZY_TYPE&&type.$$typeof!==REACT_MEMO_TYPE&&type.$$typeof!==REACT_PROVIDER_TYPE&&type.$$typeof!==REACT_CONTEXT_TYPE&&type.$$typeof!==REACT_FORWARD_REF_TYPE&&type.$$typeof!==REACT_MODULE_REFERENCE&&void 0===type.getModuleId))},reactIs_development.typeOf=typeOf}()),reactIs_development}()),reactIs.exports}();function getChildren(arg,children=[]){if(Array.isArray(arg))for(let item of arg)getChildren(item,children);else null!=arg&&!1!==arg&&""!==arg&&children.push(arg);return children}function getType(element){let type=element.type;if("string"==typeof type)return type;if("function"==typeof type)return type.displayName||type.name||"Unknown";if(reactIsExports.isFragment(element))return"React.Fragment";if(reactIsExports.isSuspense(element))return"React.Suspense";if("object"==typeof type&&null!==type){if(reactIsExports.isContextProvider(element))return"Context.Provider";if(reactIsExports.isContextConsumer(element))return"Context.Consumer";if(reactIsExports.isForwardRef(element)){if(type.displayName)return type.displayName;let functionName=type.render.displayName||type.render.name||"";return""===functionName?"ForwardRef":`ForwardRef(${functionName})`}if(reactIsExports.isMemo(element)){let functionName=type.displayName||type.type.displayName||type.type.name||"";return""===functionName?"Memo":`Memo(${functionName})`}}return"UNDEFINED"}var plugin$1={serialize:(element,config,indentation,depth,refs,printer2)=>++depth>config.maxDepth?printElementAsLeaf(getType(element),config):printElement(getType(element),printProps(function getPropKeys$1(element){let{props}=element;return Object.keys(props).filter((key=>"children"!==key&&void 0!==props[key])).sort()}(element),element.props,config,indentation+config.indent,depth,refs,printer2),printChildren(getChildren(element.props.children),config,indentation+config.indent,depth,refs,printer2),config,indentation),test:val=>null!=val&&reactIsExports.isElement(val)},testSymbol="function"==typeof Symbol&&Symbol.for?Symbol.for("react.test.json"):245830487;var dist_plugin={serialize:(object,config,indentation,depth,refs,printer2)=>++depth>config.maxDepth?printElementAsLeaf(object.type,config):printElement(object.type,object.props?printProps(function getPropKeys(object){let{props}=object;return props?Object.keys(props).filter((key=>void 0!==props[key])).sort():[]}(object),object.props,config,indentation+config.indent,depth,refs,printer2):"",object.children?printChildren(object.children,config,indentation+config.indent,depth,refs,printer2):"",config,indentation),test:val=>val&&val.$$typeof===testSymbol},dist_toString=Object.prototype.toString,toISOString=Date.prototype.toISOString,errorToString=Error.prototype.toString,regExpToString=RegExp.prototype.toString;function getConstructorName(val){return"function"==typeof val.constructor&&val.constructor.name||"Object"}var SYMBOL_REGEXP=/^Symbol\((.*)\)(.*)$/,NEWLINE_REGEXP=/\n/g,PrettyFormatPluginError=class extends Error{constructor(message,stack){super(message),this.stack=stack,this.name=this.constructor.name}};function printFunction(val,printFunctionName){return printFunctionName?`[Function ${val.name||"anonymous"}]`:"[Function]"}function printSymbol(val){return String(val).replace(SYMBOL_REGEXP,"Symbol($1)")}function printError(val){return`[${errorToString.call(val)}]`}function printBasicValue(val,printFunctionName,escapeRegex,escapeString){if(!0===val||!1===val)return`${val}`;if(void 0===val)return"undefined";if(null===val)return"null";let typeOf=typeof val;if("number"===typeOf)return function printNumber(val){return Object.is(val,-0)?"-0":String(val)}(val);if("bigint"===typeOf)return function printBigInt(val){return`${val}n`}(val);if("string"===typeOf)return escapeString?`"${val.replaceAll(/"|\\/g,"\\$&")}"`:`"${val}"`;if("function"===typeOf)return printFunction(val,printFunctionName);if("symbol"===typeOf)return printSymbol(val);let toStringed=dist_toString.call(val);return"[object WeakMap]"===toStringed?"WeakMap {}":"[object WeakSet]"===toStringed?"WeakSet {}":"[object Function]"===toStringed||"[object GeneratorFunction]"===toStringed?printFunction(val,printFunctionName):"[object Symbol]"===toStringed?printSymbol(val):"[object Date]"===toStringed?Number.isNaN(+val)?"Date { NaN }":toISOString.call(val):"[object Error]"===toStringed?printError(val):"[object RegExp]"===toStringed?escapeRegex?regExpToString.call(val).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):regExpToString.call(val):val instanceof Error?printError(val):null}function printComplexValue(val,config,indentation,depth,refs,hasCalledToJSON){if(refs.includes(val))return"[Circular]";(refs=[...refs]).push(val);let hitMaxDepth=++depth>config.maxDepth,min=config.min;if(config.callToJSON&&!hitMaxDepth&&val.toJSON&&"function"==typeof val.toJSON&&!hasCalledToJSON)return printer(val.toJSON(),config,indentation,depth,refs,!0);let toStringed=dist_toString.call(val);return"[object Arguments]"===toStringed?hitMaxDepth?"[Arguments]":`${min?"":"Arguments "}[${printListItems(val,config,indentation,depth,refs,printer)}]`:function isToStringedArrayType(toStringed){return"[object Array]"===toStringed||"[object ArrayBuffer]"===toStringed||"[object DataView]"===toStringed||"[object Float32Array]"===toStringed||"[object Float64Array]"===toStringed||"[object Int8Array]"===toStringed||"[object Int16Array]"===toStringed||"[object Int32Array]"===toStringed||"[object Uint8Array]"===toStringed||"[object Uint8ClampedArray]"===toStringed||"[object Uint16Array]"===toStringed||"[object Uint32Array]"===toStringed}(toStringed)?hitMaxDepth?`[${val.constructor.name}]`:`${min||!config.printBasicPrototype&&"Array"===val.constructor.name?"":`${val.constructor.name} `}[${printListItems(val,config,indentation,depth,refs,printer)}]`:"[object Map]"===toStringed?hitMaxDepth?"[Map]":`Map {${printIteratorEntries(val.entries(),config,indentation,depth,refs,printer," => ")}}`:"[object Set]"===toStringed?hitMaxDepth?"[Set]":`Set {${printIteratorValues(val.values(),config,indentation,depth,refs,printer)}}`:hitMaxDepth||function isWindow(val){return typeof window<"u"&&val===window}(val)?`[${getConstructorName(val)}]`:`${min||!config.printBasicPrototype&&"Object"===getConstructorName(val)?"":`${getConstructorName(val)} `}{${printObjectProperties(val,config,indentation,depth,refs,printer)}}`}function printPlugin(plugin2,val,config,indentation,depth,refs){let printed;try{printed=function isNewPlugin(plugin2){return null!=plugin2.serialize}(plugin2)?plugin2.serialize(val,config,indentation,depth,refs,printer):plugin2.print(val,(valChild=>printer(valChild,config,indentation,depth,refs)),(str=>{let indentationNext=indentation+config.indent;return indentationNext+str.replaceAll(NEWLINE_REGEXP,`\n${indentationNext}`)}),{edgeSpacing:config.spacingOuter,min:config.min,spacing:config.spacingInner},config.colors)}catch(error){throw new PrettyFormatPluginError(error.message,error.stack)}if("string"!=typeof printed)throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);return printed}function findPlugin(plugins2,val){for(let plugin2 of plugins2)try{if(plugin2.test(val))return plugin2}catch(error){throw new PrettyFormatPluginError(error.message,error.stack)}return null}function printer(val,config,indentation,depth,refs,hasCalledToJSON){let plugin2=findPlugin(config.plugins,val);if(null!==plugin2)return printPlugin(plugin2,val,config,indentation,depth,refs);let basicResult=printBasicValue(val,config.printFunctionName,config.escapeRegex,config.escapeString);return null!==basicResult?basicResult:printComplexValue(val,config,indentation,depth,refs,hasCalledToJSON)}var DEFAULT_THEME={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},DEFAULT_THEME_KEYS=Object.keys(DEFAULT_THEME),DEFAULT_OPTIONS={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:DEFAULT_THEME};function getPrintFunctionName(options){return options?.printFunctionName??DEFAULT_OPTIONS.printFunctionName}function getEscapeRegex(options){return options?.escapeRegex??DEFAULT_OPTIONS.escapeRegex}function getEscapeString(options){return options?.escapeString??DEFAULT_OPTIONS.escapeString}function getConfig(options){return{callToJSON:options?.callToJSON??DEFAULT_OPTIONS.callToJSON,colors:options?.highlight?DEFAULT_THEME_KEYS.reduce(((colors,key)=>{let value=DEFAULT_THEME[key],color=value&&f2[value];if(!color||"string"!=typeof color.close||"string"!=typeof color.open)throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);return colors[key]=color,colors}),Object.create(null)):DEFAULT_THEME_KEYS.reduce(((colors,key)=>(colors[key]={close:"",open:""},colors)),Object.create(null)),compareKeys:"function"==typeof options?.compareKeys||null===options?.compareKeys?options.compareKeys:DEFAULT_OPTIONS.compareKeys,escapeRegex:getEscapeRegex(options),escapeString:getEscapeString(options),indent:options?.min?"":(indent=options?.indent??DEFAULT_OPTIONS.indent,Array.from({length:indent+1}).join(" ")),maxDepth:options?.maxDepth??DEFAULT_OPTIONS.maxDepth,maxWidth:options?.maxWidth??DEFAULT_OPTIONS.maxWidth,min:options?.min??DEFAULT_OPTIONS.min,plugins:options?.plugins??DEFAULT_OPTIONS.plugins,printBasicPrototype:options?.printBasicPrototype??!0,printFunctionName:getPrintFunctionName(options),spacingInner:options?.min?" ":"\n",spacingOuter:options?.min?"":"\n"};var indent}function format(val,options){if(options&&(function validateOptions(options){for(let key of Object.keys(options))if(!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS,key))throw new Error(`pretty-format: Unknown option "${key}".`);if(options.min&&void 0!==options.indent&&0!==options.indent)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}(options),options.plugins)){let plugin2=findPlugin(options.plugins,val);if(null!==plugin2)return printPlugin(plugin2,val,getConfig(options),"",0,[])}let basicResult=printBasicValue(val,getPrintFunctionName(options),getEscapeRegex(options),getEscapeString(options));return null!==basicResult?basicResult:printComplexValue(val,getConfig(options),"",0,[])}var plugins={AsymmetricMatcher:plugin$5,DOMCollection:plugin$4,DOMElement:plugin$3,Immutable:plugin$2,ReactElement:plugin$1,ReactTestComponent:dist_plugin},ansiColors={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},styles={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},truncator="…";function colorise(value,styleType){let color=ansiColors[styles[styleType]]||ansiColors[styleType]||"";return color?`[${color[0]}m${String(value)}[${color[1]}m`:String(value)}function truncate(string,length,tail=truncator){string=String(string);let tailLength=tail.length,stringLength=string.length;if(tailLength>length&&stringLength>tailLength)return tail;if(stringLength>length&&stringLength>tailLength){let end=length-tailLength;return end>0&&function isHighSurrogate(char){return char>="\ud800"&&char<="\udbff"}(string[end-1])&&(end-=1),`${string.slice(0,end)}${tail}`}return string}function inspectList(list,options,inspectItem,separator=", "){inspectItem=inspectItem||options.inspect;let size=list.length;if(0===size)return"";let originalLength=options.truncate,output="",peek="",truncated="";for(let i=0;ioriginalLength&&output.length+truncated.length<=originalLength||!last&&!secondToLast&&truncatedLength>originalLength||(peek=last?"":inspectItem(list[i+1],options)+(secondToLast?"":separator),!last&&secondToLast&&truncatedLength>originalLength&&nextLength+peek.length>originalLength))break;if(output+=string,!last&&!secondToLast&&nextLength+peek.length>=originalLength){truncated=`${truncator}(${list.length-i-1})`;break}truncated=""}return`${output}${truncated}`}function inspectProperty([key,value],options){return options.truncate-=2,"string"==typeof key?key=function quoteComplexKey(key){return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?key:JSON.stringify(key).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}(key):"number"!=typeof key&&(key=`[${options.inspect(key,options)}]`),options.truncate-=key.length,`${key}: ${value=options.inspect(value,options)}`}function inspectTypedArray(array,options){let name=(array=>"function"==typeof Buffer&&array instanceof Buffer?"Buffer":array[Symbol.toStringTag]?array[Symbol.toStringTag]:array.constructor.name)(array);options.truncate-=name.length+4;let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return`${name}[]`;let output="";for(let i=0;i[key,array[key]])),options,inspectProperty)),`${name}[ ${output}${propertyContents?`, ${propertyContents}`:""} ]`}function inspectFunction(func,options){let functionType=func[Symbol.toStringTag]||"Function",name=func.name;return name?options.stylize(`[${functionType} ${truncate(name,options.truncate-11)}]`,"special"):options.stylize(`[${functionType}]`,"special")}function inspectMapEntry([key,value],options){return options.truncate-=4,key=options.inspect(key,options),options.truncate-=key.length,`${key} => ${value=options.inspect(value,options)}`}var dist_isNaN=Number.isNaN||(i=>i!=i);function inspectNumber(number,options){return dist_isNaN(number)?options.stylize("NaN","number"):number===1/0?options.stylize("Infinity","number"):number===-1/0?options.stylize("-Infinity","number"):0===number?options.stylize(1/number==1/0?"+0":"-0","number"):options.stylize(truncate(String(number),options.truncate),"number")}function inspectBigInt(number,options){let nums=truncate(number.toString(),options.truncate-1);return nums!==truncator&&(nums+="n"),options.stylize(nums,"bigint")}var stringEscapeChars=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),escapeCharacters={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},hex=16,unicodeLength=4;function dist_escape(char){return escapeCharacters[char]||`\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`}function inspectString(string,options){return stringEscapeChars.test(string)&&(string=string.replace(stringEscapeChars,dist_escape)),options.stylize(`'${truncate(string,options.truncate-2)}'`,"string")}function inspectSymbol(value){return"description"in Symbol.prototype?value.description?`Symbol(${value.description})`:"Symbol()":value.toString()}var getPromiseValue=()=>"Promise{…}";try{let{getPromiseDetails,kPending,kRejected}=process.binding("util");Array.isArray(getPromiseDetails(Promise.resolve()))&&(getPromiseValue=(value,options)=>{let[state,innerValue]=getPromiseDetails(value);return state===kPending?"Promise{}":`Promise${state===kRejected?"!":""}{${options.inspect(innerValue,options)}}`})}catch{}var promise_default=getPromiseValue;function inspectObject(object,options){let properties=Object.getOwnPropertyNames(object),symbols=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(object):[];if(0===properties.length&&0===symbols.length)return"{}";if(options.truncate-=4,options.seen=options.seen||[],options.seen.indexOf(object)>=0)return"[Circular]";options.seen.push(object);let propertyContents=inspectList(properties.map((key=>[key,object[key]])),options,inspectProperty),symbolContents=inspectList(symbols.map((key=>[key,object[key]])),options,inspectProperty);options.seen.pop();let sep="";return propertyContents&&symbolContents&&(sep=", "),`{ ${propertyContents}${sep}${symbolContents} }`}var toStringTag=!!(typeof Symbol<"u"&&Symbol.toStringTag)&&Symbol.toStringTag;var errorKeys=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function inspectAttribute([key,value],options){return options.truncate-=3,value?`${options.stylize(String(key),"yellow")}=${options.stylize(`"${value}"`,"string")}`:`${options.stylize(String(key),"yellow")}`}function inspectHTMLCollection(collection,options){return inspectList(collection,options,inspectHTML,"\n")}function inspectHTML(element,options){let properties=element.getAttributeNames(),name=element.tagName.toLowerCase(),head=options.stylize(`<${name}`,"special"),headClose=options.stylize(">","special"),tail=options.stylize(``,"special");options.truncate-=2*name.length+5;let propertyContents="";properties.length>0&&(propertyContents+=" ",propertyContents+=inspectList(properties.map((key=>[key,element.getAttribute(key)])),options,inspectAttribute," ")),options.truncate-=propertyContents.length;let truncate2=options.truncate,children=inspectHTMLCollection(element.children,options);return children&&children.length>truncate2&&(children=`${truncator}(${element.children.length})`),`${head}${propertyContents}${headClose}${children}${tail}`}var chaiInspect="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",nodeInspect=!1;try{let nodeUtil=__require("util");nodeInspect=!!nodeUtil.inspect&&nodeUtil.inspect.custom}catch{nodeInspect=!1}var constructorMap=new WeakMap,stringTagMap={},baseTypesMap={undefined:(value,options)=>options.stylize("undefined","undefined"),null:(value,options)=>options.stylize("null","null"),boolean:(value,options)=>options.stylize(String(value),"boolean"),Boolean:(value,options)=>options.stylize(String(value),"boolean"),number:inspectNumber,Number:inspectNumber,bigint:inspectBigInt,BigInt:inspectBigInt,string:inspectString,String:inspectString,function:inspectFunction,Function:inspectFunction,symbol:inspectSymbol,Symbol:inspectSymbol,Array:function inspectArray(array,options){let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return"[]";options.truncate-=4;let listContents=inspectList(array,options);options.truncate-=listContents.length;let propertyContents="";return nonIndexProperties.length&&(propertyContents=inspectList(nonIndexProperties.map((key=>[key,array[key]])),options,inspectProperty)),`[ ${listContents}${propertyContents?`, ${propertyContents}`:""} ]`},Date:function inspectDate(dateObject,options){let stringRepresentation=dateObject.toJSON();if(null===stringRepresentation)return"Invalid Date";let split=stringRepresentation.split("T"),date=split[0];return options.stylize(`${date}T${truncate(split[1],options.truncate-date.length-1)}`,"date")},Map:function inspectMap(map,options){return map.size-1<=0?"Map{}":(options.truncate-=7,`Map{ ${inspectList(function mapToEntries(map){let entries=[];return map.forEach(((value,key)=>{entries.push([key,value])})),entries}(map),options,inspectMapEntry)} }`)},Set:function inspectSet(set,options){return 0===set.size?"Set{}":(options.truncate-=7,`Set{ ${inspectList(function arrayFromSet(set){let values=[];return set.forEach((value=>{values.push(value)})),values}(set),options)} }`)},RegExp:function inspectRegExp(value,options){let flags=value.toString().split("/")[2],sourceLength=options.truncate-(2+flags.length),source=value.source;return options.stylize(`/${truncate(source,sourceLength)}/${flags}`,"regexp")},Promise:promise_default,WeakSet:(value,options)=>options.stylize("WeakSet{…}","special"),WeakMap:(value,options)=>options.stylize("WeakMap{…}","special"),Arguments:function inspectArguments(args,options){return 0===args.length?"Arguments[]":(options.truncate-=13,`Arguments[ ${inspectList(args,options)} ]`)},Int8Array:inspectTypedArray,Uint8Array:inspectTypedArray,Uint8ClampedArray:inspectTypedArray,Int16Array:inspectTypedArray,Uint16Array:inspectTypedArray,Int32Array:inspectTypedArray,Uint32Array:inspectTypedArray,Float32Array:inspectTypedArray,Float64Array:inspectTypedArray,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:function inspectObject2(error,options){let properties=Object.getOwnPropertyNames(error).filter((key=>-1===errorKeys.indexOf(key))),name=error.name;options.truncate-=name.length;let message="";"string"==typeof error.message?message=truncate(error.message,options.truncate):properties.unshift("message"),message=message?`: ${message}`:"",options.truncate-=message.length+5;let propertyContents=inspectList(properties.map((key=>[key,error[key]])),options,inspectProperty);return`${name}${message}${propertyContents?` { ${propertyContents} }`:""}`},HTMLCollection:inspectHTMLCollection,NodeList:inspectHTMLCollection},inspectCustom=(value,options,type)=>chaiInspect in value&&"function"==typeof value[chaiInspect]?value[chaiInspect](options):nodeInspect&&nodeInspect in value&&"function"==typeof value[nodeInspect]?value[nodeInspect](options.depth,options):"inspect"in value&&"function"==typeof value.inspect?value.inspect(options.depth,options):"constructor"in value&&constructorMap.has(value.constructor)?constructorMap.get(value.constructor)(value,options):stringTagMap[type]?stringTagMap[type](value,options):"",toString2=Object.prototype.toString;function inspect(value,opts={}){let options=function normaliseOptions({showHidden=!1,depth=2,colors=!1,customInspect=!0,showProxy=!1,maxArrayLength=1/0,breakLength=1/0,seen=[],truncate:truncate2=1/0,stylize=String}={},inspect3){let options={showHidden:!!showHidden,depth:Number(depth),colors:!!colors,customInspect:!!customInspect,showProxy:!!showProxy,maxArrayLength:Number(maxArrayLength),breakLength:Number(breakLength),truncate:Number(truncate2),seen,inspect:inspect3,stylize};return options.colors&&(options.stylize=colorise),options}(opts,inspect),{customInspect}=options,type=null===value?"null":typeof value;if("object"===type&&(type=toString2.call(value).slice(8,-1)),type in baseTypesMap)return baseTypesMap[type](value,options);if(customInspect&&value){let output=inspectCustom(value,options,type);if(output)return"string"==typeof output?output:inspect(output,options)}let proto=!!value&&Object.getPrototypeOf(value);return proto===Object.prototype||null===proto?inspectObject(value,options):value&&"function"==typeof HTMLElement&&value instanceof HTMLElement?inspectHTML(value,options):"constructor"in value?value.constructor!==Object?function inspectClass(value,options){let name="";return toStringTag&&toStringTag in value&&(name=value[toStringTag]),name=name||value.constructor.name,(!name||"_class"===name)&&(name=""),options.truncate-=name.length,`${name}${inspectObject(value,options)}`}(value,options):inspectObject(value,options):value===Object(value)?inspectObject(value,options):options.stylize(String(value),type)}var{AsymmetricMatcher,DOMCollection,DOMElement,Immutable,ReactElement,ReactTestComponent}=plugins,PLUGINS=[ReactTestComponent,ReactElement,DOMElement,DOMCollection,Immutable,AsymmetricMatcher];function stringify(object,maxDepth=10,{maxLength,...options}={}){let result,MAX_LENGTH=maxLength??1e4;try{result=format(object,{maxDepth,escapeString:!1,plugins:PLUGINS,...options})}catch{result=format(object,{callToJSON:!1,maxDepth,escapeString:!1,plugins:PLUGINS,...options})}return result.length>=MAX_LENGTH&&maxDepth>1?stringify(object,Math.floor(maxDepth/2)):result}var formatRegExp=/%[sdjifoOc%]/g;function inspect2(obj,options={}){return 0===options.truncate&&(options.truncate=Number.POSITIVE_INFINITY),inspect(obj,options)}function getType2(value){return Object.prototype.toString.apply(value).slice(8,-1)}function getOwnProperties(obj){let ownProps=new Set;return function isFinalObj(obj){return obj===Object.prototype||obj===Function.prototype||obj===RegExp.prototype}(obj)?[]:(function collectOwnProperties(obj,collector){let collect="function"==typeof collector?collector:key=>collector.add(key);Object.getOwnPropertyNames(obj).forEach(collect),Object.getOwnPropertySymbols(obj).forEach(collect)}(obj,ownProps),Array.from(ownProps))}var defaultCloneOptions={forceWritable:!1};function deepClone(val,options=defaultCloneOptions){return clone(val,new WeakMap,options)}function clone(val,seen,options=defaultCloneOptions){let k,out;if(seen.has(val))return seen.get(val);if(Array.isArray(val)){for(out=Array.from({length:k=val.length}),seen.set(val,out);k--;)out[k]=clone(val[k],seen,options);return out}if("[object Object]"===Object.prototype.toString.call(val)){out=Object.create(Object.getPrototypeOf(val)),seen.set(val,out);let props=getOwnProperties(val);for(let k2 of props){let descriptor=Object.getOwnPropertyDescriptor(val,k2);if(!descriptor)continue;let cloned=clone(val[k2],seen,options);options.forceWritable?Object.defineProperty(out,k2,{enumerable:descriptor.enumerable,configurable:!0,writable:!0,value:cloned}):"get"in descriptor?Object.defineProperty(out,k2,{...descriptor,get:()=>cloned}):Object.defineProperty(out,k2,{...descriptor,value:cloned})}return out}return val}function getType3(value){if(void 0===value)return"undefined";if(null===value)return"null";if(Array.isArray(value))return"array";if("boolean"==typeof value)return"boolean";if("function"==typeof value)return"function";if("number"==typeof value)return"number";if("string"==typeof value)return"string";if("bigint"==typeof value)return"bigint";if("object"==typeof value){if(null!=value){if(value.constructor===RegExp)return"regexp";if(value.constructor===Map)return"map";if(value.constructor===Set)return"set";if(value.constructor===Date)return"date"}return"object"}if("symbol"==typeof value)return"symbol";throw new Error(`value of unknown type: ${value}`)}var DIFF_DELETE=-1,DIFF_INSERT=1,DIFF_EQUAL=0,Diff=class{0;1;constructor(op,text){this[0]=op,this[1]=text}},diff_commonPrefix=function(text1,text2){if(!text1||!text2||text1.charAt(0)!==text2.charAt(0))return 0;let pointermin=0,pointermax=Math.min(text1.length,text2.length),pointermid=pointermax,pointerstart=0;for(;pointermintext2_length?text1=text1.substring(text1_length-text2_length):text1_length0?equalities[equalitiesLength-1]:-1,length_insertions1=0,length_deletions1=0,length_insertions2=0,length_deletions2=0,lastEquality=null,changes=!0)),pointer++;for(changes&&diff_cleanupMerge(diffs),function diff_cleanupSemanticLossless(diffs){let pointer=1;for(;pointer=bestScore&&(bestScore=score,bestEquality1=equality1,bestEdit=edit,bestEquality2=equality2)}diffs[pointer-1][1]!==bestEquality1&&(bestEquality1?diffs[pointer-1][1]=bestEquality1:(diffs.splice(pointer-1,1),pointer--),diffs[pointer][1]=bestEdit,bestEquality2?diffs[pointer+1][1]=bestEquality2:(diffs.splice(pointer+1,1),pointer--))}pointer++}}(diffs),pointer=1;pointer=overlap_length2?(overlap_length1>=deletion.length/2||overlap_length1>=insertion.length/2)&&(diffs.splice(pointer,0,new Diff(DIFF_EQUAL,insertion.substring(0,overlap_length1))),diffs[pointer-1][1]=deletion.substring(0,deletion.length-overlap_length1),diffs[pointer+1][1]=insertion.substring(overlap_length1),pointer++):(overlap_length2>=deletion.length/2||overlap_length2>=insertion.length/2)&&(diffs.splice(pointer,0,new Diff(DIFF_EQUAL,deletion.substring(0,overlap_length2))),diffs[pointer-1][0]=DIFF_INSERT,diffs[pointer-1][1]=insertion.substring(0,insertion.length-overlap_length2),diffs[pointer+1][0]=DIFF_DELETE,diffs[pointer+1][1]=deletion.substring(overlap_length2),pointer++),pointer++}pointer++}},nonAlphaNumericRegex_=/[^a-z0-9]/i,whitespaceRegex_=/\s/,linebreakRegex_=/[\r\n]/,blanklineEndRegex_=/\n\r?\n$/,blanklineStartRegex_=/^\r?\n\r?\n/;function diff_cleanupMerge(diffs){diffs.push(new Diff(DIFF_EQUAL,""));let commonlength,pointer=0,count_delete=0,count_insert=0,text_delete="",text_insert="";for(;pointer1?(0!==count_delete&&0!==count_insert&&(commonlength=diff_commonPrefix(text_insert,text_delete),0!==commonlength&&(pointer-count_delete-count_insert>0&&diffs[pointer-count_delete-count_insert-1][0]===DIFF_EQUAL?diffs[pointer-count_delete-count_insert-1][1]+=text_insert.substring(0,commonlength):(diffs.splice(0,0,new Diff(DIFF_EQUAL,text_insert.substring(0,commonlength))),pointer++),text_insert=text_insert.substring(commonlength),text_delete=text_delete.substring(commonlength)),commonlength=diff_commonSuffix(text_insert,text_delete),0!==commonlength&&(diffs[pointer][1]=text_insert.substring(text_insert.length-commonlength)+diffs[pointer][1],text_insert=text_insert.substring(0,text_insert.length-commonlength),text_delete=text_delete.substring(0,text_delete.length-commonlength))),pointer-=count_delete+count_insert,diffs.splice(pointer,count_delete+count_insert),text_delete.length&&(diffs.splice(pointer,0,new Diff(DIFF_DELETE,text_delete)),pointer++),text_insert.length&&(diffs.splice(pointer,0,new Diff(DIFF_INSERT,text_insert)),pointer++),pointer++):0!==pointer&&diffs[pointer-1][0]===DIFF_EQUAL?(diffs[pointer-1][1]+=diffs[pointer][1],diffs.splice(pointer,1)):pointer++,count_insert=0,count_delete=0,text_delete="",text_insert=""}""===diffs[diffs.length-1][1]&&diffs.pop();let changes=!1;for(pointer=1;pointer{let nCommon=0;for(;aIndex{let nCommon=0;for(;aStart<=aIndex&&bStart<=bIndex&&isCommon(aIndex,bIndex);)aIndex-=1,bIndex-=1,nCommon+=1;return nCommon},extendPathsF=(d,aEnd,bEnd,bF,isCommon,aIndexesF,iMaxF)=>{let iF=0,kF=-d,aFirst=aIndexesF[iF],aIndexPrev1=aFirst;aIndexesF[iF]+=countCommonItemsF(aFirst+1,aEnd,bF+aFirst-kF+1,bEnd,isCommon);let nF=d{let iR=0,kR=d,aFirst=aIndexesR[iR],aIndexPrev1=aFirst;aIndexesR[iR]-=countCommonItemsR(aStart,aFirst-1,bStart,bR+aFirst-kR-1,isCommon);let nR=d{let bF=bStart-aStart,baDeltaLength=bEnd-bStart-(aEnd-aStart),kMinOverlapF=-baDeltaLength-(d-1),kMaxOverlapF=d-1-baDeltaLength,aIndexPrev1=NOT_YET_SET,nF=d{let bR=bEnd-aEnd,baDeltaLength=bEnd-bStart-(aEnd-aStart),kMinOverlapR=baDeltaLength-d,kMaxOverlapR=baDeltaLength+d,aIndexPrev1=NOT_YET_SET,nR=d{if(bEnd-bStart{foundSubsequence2(nCommon,aCommon,bCommon)},isCommon:(bIndex,aIndex)=>isCommon2(aIndex,bIndex)}}let tStart=aStart,tEnd=aEnd;aStart=bStart,aEnd=bEnd,bStart=tStart,bEnd=tEnd}let{foundSubsequence,isCommon}=callbacks[transposed?1:0];((nChange,aStart,aEnd,bStart,bEnd,isCommon,aIndexesF,aIndexesR,division)=>{let bF=bStart-aStart,bR=bEnd-aEnd,aLength=aEnd-aStart,bLength=bEnd-bStart,baDeltaLength=bLength-aLength,iMaxF=aLength,iMaxR=aLength;if(aIndexesF[0]=aStart-1,aIndexesR[0]=aEnd,baDeltaLength%2==0){let dMin=(nChange||baDeltaLength)/2,dMax=(aLength+bLength)/2;for(let d=1;d<=dMax;d+=1)if(iMaxF=extendPathsF(d,aEnd,bEnd,bF,isCommon,aIndexesF,iMaxF),d{if("number"!=typeof arg)throw new TypeError(`${pkg}: ${name} typeof ${typeof arg} is not a number`);if(!Number.isSafeInteger(arg))throw new RangeError(`${pkg}: ${name} value ${arg} is not a safe integer`);if(arg<0)throw new RangeError(`${pkg}: ${name} value ${arg} is a negative integer`)},validateCallback=(name,arg)=>{let type=typeof arg;if("function"!==type)throw new TypeError(`${pkg}: ${name} typeof ${type} is not a function`)};return build}(),diffSequences=function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}(buildExports);function printDiffLine(line,isFirstOrLast,color,indicator,trailingSpaceFormatter,emptyFirstOrLastLinePlaceholder){return 0!==line.length?color(`${indicator} ${function formatTrailingSpaces(line,trailingSpaceFormatter){return line.replace(/\s+$/,(match=>trailingSpaceFormatter(match)))}(line,trailingSpaceFormatter)}`):" "!==indicator?color(indicator):isFirstOrLast&&0!==emptyFirstOrLastLinePlaceholder.length?color(`${indicator} ${emptyFirstOrLastLinePlaceholder}`):""}function printDeleteLine(line,isFirstOrLast,{aColor,aIndicator,changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder}){return printDiffLine(line,isFirstOrLast,aColor,aIndicator,changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder)}function printInsertLine(line,isFirstOrLast,{bColor,bIndicator,changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder}){return printDiffLine(line,isFirstOrLast,bColor,bIndicator,changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder)}function printCommonLine(line,isFirstOrLast,{commonColor,commonIndicator,commonLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder}){return printDiffLine(line,isFirstOrLast,commonColor,commonIndicator,commonLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder)}function createPatchMark(aStart,aEnd,bStart,bEnd,{patchColor}){return patchColor(`@@ -${aStart+1},${aEnd-aStart} +${bStart+1},${bEnd-bStart} @@`)}var noColor=string=>string,DIFF_CONTEXT_DEFAULT=5,DIFF_TRUNCATE_THRESHOLD_DEFAULT=0;function normalizeDiffOptions(options={}){return{aAnnotation:"Expected",aColor:f2.green,aIndicator:"-",bAnnotation:"Received",bColor:f2.red,bIndicator:"+",changeColor:f2.inverse,changeLineTrailingSpaceColor:noColor,commonColor:f2.dim,commonIndicator:" ",commonLineTrailingSpaceColor:noColor,compareKeys:void 0,contextLines:DIFF_CONTEXT_DEFAULT,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:f2.yellow,truncateThreshold:DIFF_TRUNCATE_THRESHOLD_DEFAULT,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:noColor,...options,compareKeys:(compareKeys=options.compareKeys,compareKeys&&"function"==typeof compareKeys?compareKeys:void 0),contextLines:(contextLines=options.contextLines,"number"==typeof contextLines&&Number.isSafeInteger(contextLines)&&contextLines>=0?contextLines:DIFF_CONTEXT_DEFAULT)};var contextLines,compareKeys}function isEmptyString(lines){return 1===lines.length&&0===lines[0].length}function printDiffLines(diffs,truncated,options){return function printAnnotation({aAnnotation,aColor,aIndicator,bAnnotation,bColor,bIndicator,includeChangeCounts,omitAnnotationLines},changeCounts){if(omitAnnotationLines)return"";let aRest="",bRest="";if(includeChangeCounts){let aCount=String(changeCounts.a),bCount=String(changeCounts.b),baAnnotationLengthDiff=bAnnotation.length-aAnnotation.length,aAnnotationPadding=" ".repeat(Math.max(0,baAnnotationLengthDiff)),bAnnotationPadding=" ".repeat(Math.max(0,-baAnnotationLengthDiff)),baCountLengthDiff=bCount.length-aCount.length;aRest=`${aAnnotationPadding} ${aIndicator} ${" ".repeat(Math.max(0,baCountLengthDiff))}${aCount}`,bRest=`${bAnnotationPadding} ${bIndicator} ${" ".repeat(Math.max(0,-baCountLengthDiff))}${bCount}`}let b=`${bIndicator} ${bAnnotation}${bRest}`;return`${aColor(`${aIndicator} ${aAnnotation}${aRest}`)}\n${bColor(b)}\n\n`}(options,function countChanges(diffs){let a2=0,b=0;return diffs.forEach((diff2=>{switch(diff2[0]){case DIFF_DELETE:a2+=1;break;case DIFF_INSERT:b+=1}})),{a:a2,b}}(diffs))+(options.expand?function joinAlignedDiffsExpand(diffs,options){return diffs.map(((diff2,i,diffs2)=>{let line=diff2[1],isFirstOrLast=0===i||i===diffs2.length-1;switch(diff2[0]){case DIFF_DELETE:return printDeleteLine(line,isFirstOrLast,options);case DIFF_INSERT:return printInsertLine(line,isFirstOrLast,options);default:return printCommonLine(line,isFirstOrLast,options)}})).join("\n")}(diffs,options):function joinAlignedDiffsNoExpand(diffs,options){let iLength=diffs.length,nContextLines=options.contextLines,nContextLines2=nContextLines+nContextLines,jLength=iLength,hasExcessAtStartOrEnd=!1,nExcessesBetweenChanges=0,i=0;for(;i!==iLength;){let iStart=i;for(;i!==iLength&&diffs[i][0]===DIFF_EQUAL;)i+=1;if(iStart!==i)if(0===iStart)i>nContextLines&&(jLength-=i-nContextLines,hasExcessAtStartOrEnd=!0);else if(i===iLength){let n=i-iStart;n>nContextLines&&(jLength-=n-nContextLines,hasExcessAtStartOrEnd=!0)}else{let n=i-iStart;n>nContextLines2&&(jLength-=n-nContextLines2,nExcessesBetweenChanges+=1)}for(;i!==iLength&&diffs[i][0]!==DIFF_EQUAL;)i+=1}let hasPatch=0!==nExcessesBetweenChanges||hasExcessAtStartOrEnd;0!==nExcessesBetweenChanges?jLength+=nExcessesBetweenChanges+1:hasExcessAtStartOrEnd&&(jLength+=1);let jLast=jLength-1,lines=[],jPatchMark=0;hasPatch&&lines.push("");let aStart=0,bStart=0,aEnd=0,bEnd=0,pushCommonLine=line=>{let j=lines.length;lines.push(printCommonLine(line,0===j||j===jLast,options)),aEnd+=1,bEnd+=1},pushDeleteLine=line=>{let j=lines.length;lines.push(printDeleteLine(line,0===j||j===jLast,options)),aEnd+=1},pushInsertLine=line=>{let j=lines.length;lines.push(printInsertLine(line,0===j||j===jLast,options)),bEnd+=1};for(i=0;i!==iLength;){let iStart=i;for(;i!==iLength&&diffs[i][0]===DIFF_EQUAL;)i+=1;if(iStart!==i)if(0===iStart){i>nContextLines&&(iStart=i-nContextLines,aStart=iStart,bStart=iStart,aEnd=aStart,bEnd=bStart);for(let iCommon=iStart;iCommon!==i;iCommon+=1)pushCommonLine(diffs[iCommon][1])}else if(i===iLength){let iEnd=i-iStart>nContextLines?iStart+nContextLines:i;for(let iCommon=iStart;iCommon!==iEnd;iCommon+=1)pushCommonLine(diffs[iCommon][1])}else{let nCommon=i-iStart;if(nCommon>nContextLines2){let iEnd=iStart+nContextLines;for(let iCommon=iStart;iCommon!==iEnd;iCommon+=1)pushCommonLine(diffs[iCommon][1]);lines[jPatchMark]=createPatchMark(aStart,aEnd,bStart,bEnd,options),jPatchMark=lines.length,lines.push("");let nOmit=nCommon-nContextLines2;aStart=aEnd+nOmit,bStart=bEnd+nOmit,aEnd=aStart,bEnd=bStart;for(let iCommon=i-nContextLines;iCommon!==i;iCommon+=1)pushCommonLine(diffs[iCommon][1])}else for(let iCommon=iStart;iCommon!==i;iCommon+=1)pushCommonLine(diffs[iCommon][1])}for(;i!==iLength&&diffs[i][0]===DIFF_DELETE;)pushDeleteLine(diffs[i][1]),i+=1;for(;i!==iLength&&diffs[i][0]===DIFF_INSERT;)pushInsertLine(diffs[i][1]),i+=1}return hasPatch&&(lines[jPatchMark]=createPatchMark(aStart,aEnd,bStart,bEnd,options)),lines.join("\n")}(diffs,options))+(truncated?options.truncateAnnotationColor(`\n${options.truncateAnnotation}`):"")}function diffLinesUnified(aLines,bLines,options){let normalizedOptions=normalizeDiffOptions(options),[diffs,truncated]=diffLinesRaw(isEmptyString(aLines)?[]:aLines,isEmptyString(bLines)?[]:bLines,normalizedOptions);return printDiffLines(diffs,truncated,normalizedOptions)}function diffLinesRaw(aLines,bLines,options){let truncate2=options?.truncateThreshold??!1,truncateThreshold=Math.max(Math.floor(options?.truncateThreshold??0),0),aLength=truncate2?Math.min(aLines.length,truncateThreshold):aLines.length,bLength=truncate2?Math.min(bLines.length,truncateThreshold):bLines.length,truncated=aLength!==aLines.length||bLength!==bLines.length,diffs=[],aIndex=0,bIndex=0;for(diffSequences(aLength,bLength,((aIndex2,bIndex2)=>aLines[aIndex2]===bLines[bIndex2]),((nCommon,aCommon,bCommon)=>{for(;aIndex!==aCommon;aIndex+=1)diffs.push(new Diff(DIFF_DELETE,aLines[aIndex]));for(;bIndex!==bCommon;bIndex+=1)diffs.push(new Diff(DIFF_INSERT,bLines[bIndex]));for(;0!==nCommon;nCommon-=1,aIndex+=1,bIndex+=1)diffs.push(new Diff(DIFF_EQUAL,bLines[bIndex]))}));aIndex!==aLength;aIndex+=1)diffs.push(new Diff(DIFF_DELETE,aLines[aIndex]));for(;bIndex!==bLength;bIndex+=1)diffs.push(new Diff(DIFF_INSERT,bLines[bIndex]));return[diffs,truncated]}function getNewLineSymbol(string){return string.includes("\r\n")?"\r\n":"\n"}var ChangeBuffer=class{op;line;lines;changeColor;constructor(op,changeColor){this.op=op,this.line=[],this.lines=[],this.changeColor=changeColor}pushSubstring(substring){this.pushDiff(new Diff(this.op,substring))}pushLine(){this.lines.push(1!==this.line.length?new Diff(this.op,function concatenateRelevantDiffs(op,diffs,changeColor){return diffs.reduce(((reduced,diff2)=>reduced+(diff2[0]===DIFF_EQUAL?diff2[1]:diff2[0]===op&&0!==diff2[1].length?changeColor(diff2[1]):"")),"")}(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Diff(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return 0===this.line.length}pushDiff(diff2){this.line.push(diff2)}align(diff2){let string=diff2[1];if(string.includes("\n")){let substrings=string.split("\n"),iLast=substrings.length-1;substrings.forEach(((substring,i)=>{i{if(0===i){let subdiff=new Diff(op,substring);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(subdiff)):(this.pushDiffChangeLines(subdiff),this.flushChangeLines())}else idiff2[0]===DIFF_EQUAL&&(i!==iLast||"\n"!==diff2[1])))}return diffs.some((diff2=>diff2[0]===DIFF_EQUAL))}(diffs,isMultiline)){let optionsNormalized=normalizeDiffOptions(options),lines=function getAlignedDiffs(diffs,changeColor){let deleteBuffer=new ChangeBuffer(DIFF_DELETE,changeColor),insertBuffer=new ChangeBuffer(DIFF_INSERT,changeColor),commonBuffer=new CommonBuffer(deleteBuffer,insertBuffer);return diffs.forEach((diff2=>{switch(diff2[0]){case DIFF_DELETE:deleteBuffer.align(diff2);break;case DIFF_INSERT:insertBuffer.align(diff2);break;default:commonBuffer.align(diff2)}})),commonBuffer.getLines()}(diffs,optionsNormalized.changeColor);return printDiffLines(lines,truncated,optionsNormalized)}}return diffLinesUnified(a2.split("\n"),b.split("\n"),options)}function diffStringsRaw(a2,b,cleanup,options){let[diffs,truncated]=function diffStrings(a2,b,options){let truncate2=options?.truncateThreshold??!1,truncateThreshold=Math.max(Math.floor(options?.truncateThreshold??0),0),aLength=a2.length,bLength=b.length;if(truncate2){let aMultipleLines=a2.includes("\n"),bMultipleLines=b.includes("\n"),aNewLineSymbol=getNewLineSymbol(a2),bNewLineSymbol=getNewLineSymbol(b),_a=aMultipleLines?`${a2.split(aNewLineSymbol,truncateThreshold).join(aNewLineSymbol)}\n`:a2,_b=bMultipleLines?`${b.split(bNewLineSymbol,truncateThreshold).join(bNewLineSymbol)}\n`:b;aLength=_a.length,bLength=_b.length}let truncated=aLength!==a2.length||bLength!==b.length,aIndex=0,bIndex=0,diffs=[];return diffSequences(aLength,bLength,((aIndex2,bIndex2)=>a2[aIndex2]===b[bIndex2]),((nCommon,aCommon,bCommon)=>{aIndex!==aCommon&&diffs.push(new Diff(DIFF_DELETE,a2.slice(aIndex,aCommon))),bIndex!==bCommon&&diffs.push(new Diff(DIFF_INSERT,b.slice(bIndex,bCommon))),aIndex=aCommon+nCommon,bIndex=bCommon+nCommon,diffs.push(new Diff(DIFF_EQUAL,b.slice(bCommon,bIndex)))})),aIndex!==aLength&&diffs.push(new Diff(DIFF_DELETE,a2.slice(aIndex))),bIndex!==bLength&&diffs.push(new Diff(DIFF_INSERT,b.slice(bIndex))),[diffs,truncated]}(a2,b,options);return cleanup&&diff_cleanupSemantic(diffs),[diffs,truncated]}function getCommonMessage(message,options){let{commonColor}=normalizeDiffOptions(options);return commonColor(message)}var{AsymmetricMatcher:AsymmetricMatcher2,DOMCollection:DOMCollection2,DOMElement:DOMElement2,Immutable:Immutable2,ReactElement:ReactElement2,ReactTestComponent:ReactTestComponent2}=plugins,PLUGINS2=[ReactTestComponent2,ReactElement2,DOMElement2,DOMCollection2,Immutable2,AsymmetricMatcher2],FORMAT_OPTIONS={plugins:PLUGINS2},FALLBACK_FORMAT_OPTIONS={callToJSON:!1,maxDepth:10,plugins:PLUGINS2};function diff(a2,b,options){if(Object.is(a2,b))return"";let aType=getType3(a2),expectedType=aType,omitDifference=!1;if("object"===aType&&"function"==typeof a2.asymmetricMatch){if(a2.$$typeof!==Symbol.for("jest.asymmetricMatcher")||"function"!=typeof a2.getExpectedType)return;expectedType=a2.getExpectedType(),omitDifference="string"===expectedType}if(expectedType!==getType3(b)){let{aAnnotation,aColor,aIndicator,bAnnotation,bColor,bIndicator}=normalizeDiffOptions(options),formatOptions=getFormatOptions(FALLBACK_FORMAT_OPTIONS,options),aDisplay=format(a2,formatOptions),bDisplay=format(b,formatOptions);return`${`${aColor(`${aIndicator} ${aAnnotation}:`)} \n${aDisplay}`}\n\n${`${bColor(`${bIndicator} ${bAnnotation}:`)} \n${bDisplay}`}`}if(!omitDifference)switch(aType){case"string":return diffLinesUnified(a2.split("\n"),b.split("\n"),options);case"boolean":case"number":return function comparePrimitive(a2,b,options){let aFormat=format(a2,FORMAT_OPTIONS),bFormat=format(b,FORMAT_OPTIONS);return aFormat===bFormat?"":diffLinesUnified(aFormat.split("\n"),bFormat.split("\n"),options)}(a2,b,options);case"map":return compareObjects(sortMap(a2),sortMap(b),options);case"set":return compareObjects(sortSet(a2),sortSet(b),options);default:return compareObjects(a2,b,options)}}function sortMap(map){return new Map(Array.from(map.entries()).sort())}function sortSet(set){return new Set(Array.from(set.values()).sort())}function compareObjects(a2,b,options){let difference,hasThrown=!1;try{difference=getObjectsDifference(a2,b,getFormatOptions(FORMAT_OPTIONS,options),options)}catch{hasThrown=!0}let noDiffMessage=getCommonMessage(NO_DIFF_MESSAGE,options);if(void 0===difference||difference===noDiffMessage){difference=getObjectsDifference(a2,b,getFormatOptions(FALLBACK_FORMAT_OPTIONS,options),options),difference!==noDiffMessage&&!hasThrown&&(difference=`${getCommonMessage(SIMILAR_MESSAGE,options)}\n\n${difference}`)}return difference}function getFormatOptions(formatOptions,options){let{compareKeys}=normalizeDiffOptions(options);return{...formatOptions,compareKeys}}function getObjectsDifference(a2,b,formatOptions,options){let formatOptionsZeroIndent={...formatOptions,indent:0},aCompare=format(a2,formatOptionsZeroIndent),bCompare=format(b,formatOptionsZeroIndent);if(aCompare===bCompare)return getCommonMessage(NO_DIFF_MESSAGE,options);{let aDisplay=format(a2,formatOptions),bDisplay=format(b,formatOptions);return function diffLinesUnified2(aLinesDisplay,bLinesDisplay,aLinesCompare,bLinesCompare,options){if(isEmptyString(aLinesDisplay)&&isEmptyString(aLinesCompare)&&(aLinesDisplay=[],aLinesCompare=[]),isEmptyString(bLinesDisplay)&&isEmptyString(bLinesCompare)&&(bLinesDisplay=[],bLinesCompare=[]),aLinesDisplay.length!==aLinesCompare.length||bLinesDisplay.length!==bLinesCompare.length)return diffLinesUnified(aLinesDisplay,bLinesDisplay,options);let[diffs,truncated]=diffLinesRaw(aLinesCompare,bLinesCompare,options),aIndex=0,bIndex=0;return diffs.forEach((diff2=>{switch(diff2[0]){case DIFF_DELETE:diff2[1]=aLinesDisplay[aIndex],aIndex+=1;break;case DIFF_INSERT:diff2[1]=bLinesDisplay[bIndex],bIndex+=1;break;default:diff2[1]=bLinesDisplay[bIndex],aIndex+=1,bIndex+=1}})),printDiffLines(diffs,truncated,normalizeDiffOptions(options))}(aDisplay.split("\n"),bDisplay.split("\n"),aCompare.split("\n"),bCompare.split("\n"),options)}}var MAX_DIFF_STRING_LENGTH=2e4;function isAsymmetricMatcher(data){return"Object"===getType2(data)&&"function"==typeof data.asymmetricMatch}function isReplaceable(obj1,obj2){let obj1Type=getType2(obj1);return obj1Type===getType2(obj2)&&("Object"===obj1Type||"Array"===obj1Type)}function printDiffOrStringify(expected,received,options){let{aAnnotation,bAnnotation}=normalizeDiffOptions(options);if("string"==typeof expected&&"string"==typeof received&&expected.length>0&&received.length>0&&expected.length<=MAX_DIFF_STRING_LENGTH&&received.length<=MAX_DIFF_STRING_LENGTH&&expected!==received){if(expected.includes("\n")||received.includes("\n"))return diffStringsUnified(received,expected,options);let[diffs]=diffStringsRaw(received,expected,!0),hasCommonDiff2=diffs.some((diff2=>diff2[0]===DIFF_EQUAL)),printLabel=function getLabelPrinter(...strings){let maxLength=strings.reduce(((max,string)=>string.length>max?string.length:max),0);return string=>`${string}: ${" ".repeat(maxLength-string.length)}`}(aAnnotation,bAnnotation);return`${printLabel(aAnnotation)+function printExpected(value){return f2.green(replaceTrailingSpaces(stringify(value)))}(getCommonAndChangedSubstrings(diffs,DIFF_DELETE,hasCommonDiff2))}\n${printLabel(bAnnotation)+function printReceived(object){return f2.red(replaceTrailingSpaces(stringify(object)))}(getCommonAndChangedSubstrings(diffs,DIFF_INSERT,hasCommonDiff2))}`}let clonedExpected=deepClone(expected,{forceWritable:!0}),clonedReceived=deepClone(received,{forceWritable:!0}),{replacedExpected,replacedActual}=replaceAsymmetricMatcher(clonedExpected,clonedReceived);return diff(replacedExpected,replacedActual,options)}function replaceAsymmetricMatcher(actual,expected,actualReplaced=new WeakSet,expectedReplaced=new WeakSet){return isReplaceable(actual,expected)?(actualReplaced.has(actual)||expectedReplaced.has(expected)||(actualReplaced.add(actual),expectedReplaced.add(expected),getOwnProperties(expected).forEach((key=>{let expectedValue=expected[key],actualValue=actual[key];if(isAsymmetricMatcher(expectedValue))expectedValue.asymmetricMatch(actualValue)&&(actual[key]=expectedValue);else if(isAsymmetricMatcher(actualValue))actualValue.asymmetricMatch(expectedValue)&&(expected[key]=actualValue);else if(isReplaceable(actualValue,expectedValue)){let replaced=replaceAsymmetricMatcher(actualValue,expectedValue,actualReplaced,expectedReplaced);actual[key]=replaced.replacedActual,expected[key]=replaced.replacedExpected}}))),{replacedActual:actual,replacedExpected:expected}):{replacedActual:actual,replacedExpected:expected}}var SPACE_SYMBOL="·";function replaceTrailingSpaces(text){return text.replace(/\s+$/gm,(spaces=>SPACE_SYMBOL.repeat(spaces.length)))}function getCommonAndChangedSubstrings(diffs,op,hasCommonDiff2){return diffs.reduce(((reduced,diff2)=>reduced+(diff2[0]===DIFF_EQUAL?diff2[1]:diff2[0]===op?hasCommonDiff2?f2.inverse(diff2[1]):diff2[1]:"")),"")}var IS_RECORD_SYMBOL="@@__IMMUTABLE_RECORD__@@",IS_COLLECTION_SYMBOL="@@__IMMUTABLE_ITERABLE__@@";var OBJECT_PROTO=Object.getPrototypeOf({});function getUnserializableMessage(err){return err instanceof Error?`: ${err.message}`:"string"==typeof err?`: ${err}`:""}function serializeValue(val,seen=new WeakMap){if(!val||"string"==typeof val)return val;if("function"==typeof val)return`Function<${val.name||"anonymous"}>`;if("symbol"==typeof val)return val.toString();if("object"!=typeof val)return val;if(function isImmutable(v){return v&&(v[IS_COLLECTION_SYMBOL]||v[IS_RECORD_SYMBOL])}(val))return serializeValue(val.toJSON(),seen);if(val instanceof Promise||val.constructor&&"AsyncFunction"===val.constructor.prototype)return"Promise";if(typeof Element<"u"&&val instanceof Element)return val.tagName;if("function"==typeof val.asymmetricMatch)return`${val.toString()} ${function format2(...args){if("string"!=typeof args[0]){let objects=[];for(let i2=0;i2{if("%%"===x)return"%";if(i>=len)return x;switch(x){case"%s":{let value=args[i++];return"bigint"==typeof value?`${value.toString()}n`:"number"==typeof value&&0===value&&1/value<0?"-0":"object"==typeof value&&null!==value?inspect2(value,{depth:0,colors:!1}):String(value)}case"%d":{let value=args[i++];return"bigint"==typeof value?`${value.toString()}n`:Number(value).toString()}case"%i":{let value=args[i++];return"bigint"==typeof value?`${value.toString()}n`:Number.parseInt(String(value)).toString()}case"%f":return Number.parseFloat(String(args[i++])).toString();case"%o":return inspect2(args[i++],{showHidden:!0,showProxy:!0});case"%O":return inspect2(args[i++]);case"%c":return i++,"";case"%j":try{return JSON.stringify(args[i++])}catch(err){let m2=err.message;if(m2.includes("circular structure")||m2.includes("cyclic structures")||m2.includes("cyclic object"))return"[Circular]";throw err}default:return x}}));for(let x=args[i];i{try{clone2[i]=serializeValue(e,seen)}catch(err){clone2[i]=getUnserializableMessage(err)}})),clone2}{let clone2=Object.create(null);seen.set(val,clone2);let obj=val;for(;obj&&obj!==OBJECT_PROTO;)Object.getOwnPropertyNames(obj).forEach((key=>{if(!(key in clone2))try{clone2[key]=serializeValue(val[key],seen)}catch(err){delete clone2[key],clone2[key]=getUnserializableMessage(err)}})),obj=Object.getPrototypeOf(obj);return clone2}}function processError(_err,diffOptions,seen=new WeakSet){if(!_err||"object"!=typeof _err)return{message:String(_err)};let err=_err;err.stack&&(err.stackStr=String(err.stack)),err.name&&(err.nameStr=String(err.name)),(err.showDiff||void 0===err.showDiff&&void 0!==err.expected&&void 0!==err.actual)&&(err.diff=printDiffOrStringify(err.actual,err.expected,{...diffOptions,...err.diffOptions})),"string"!=typeof err.expected&&(err.expected=stringify(err.expected,10)),"string"!=typeof err.actual&&(err.actual=stringify(err.actual,10));try{"string"==typeof err.message&&(err.message=function normalizeErrorMessage(message){return message.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}(err.message))}catch{}try{!seen.has(err)&&"object"==typeof err.cause&&(seen.add(err),err.cause=processError(err.cause,diffOptions,seen))}catch{}try{return serializeValue(err)}catch(e){return serializeValue(new Error(`Failed to fully serialize error: ${e?.message}\nInner error message: ${err?.message}`))}}var CallStates2,CallStates=((CallStates2=CallStates||{}).DONE="done",CallStates2.ERROR="error",CallStates2.ACTIVE="active",CallStates2.WAITING="waiting",CallStates2),EVENTS_CALL="storybook/instrumenter/call",EVENTS_SYNC="storybook/instrumenter/sync",EVENTS_START="storybook/instrumenter/start",EVENTS_BACK="storybook/instrumenter/back",EVENTS_GOTO="storybook/instrumenter/goto",EVENTS_NEXT="storybook/instrumenter/next",EVENTS_END="storybook/instrumenter/end",controlsDisabled={start:!1,back:!1,goto:!1,next:!1,end:!1},alreadyCompletedException=new Error("This function ran after the play function completed. Did you forget to `await` it?"),isObject=o=>"[object Object]"===Object.prototype.toString.call(o),isInstrumentable=o=>{if(!isObject(o)&&!(o=>"[object Module]"===Object.prototype.toString.call(o))(o))return!1;if(void 0===o.constructor)return!0;let proto=o.constructor.prototype;return!!isObject(proto)},getInitialState=()=>({renderPhase:void 0,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),getRetainedState=(state,isDebugging=!1)=>{let calls=(isDebugging?state.shadowCalls:state.calls).filter((call=>call.retain));if(!calls.length)return;let callRefsByResult=new Map(Array.from(state.callRefsByResult.entries()).filter((([,ref])=>ref.retain)));return{cursor:calls.length,calls,callRefsByResult}},Instrumenter=class{constructor(){this.initialized=!1,this.channel=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),this.state=external_STORYBOOK_MODULE_GLOBAL_.global.window?.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{};let resetState=({storyId,isPlaying=!0,isDebugging=!1})=>{let state=this.getState(storyId);this.setState(storyId,{...getInitialState(),...getRetainedState(state,isDebugging),shadowCalls:isDebugging?state.shadowCalls:[],chainedCallIds:isDebugging?state.chainedCallIds:new Set,playUntil:isDebugging?state.playUntil:void 0,isPlaying,isDebugging}),this.sync(storyId)};this.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.FORCE_REMOUNT,resetState),this.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_RENDER_PHASE_CHANGED,(({storyId,newPhase})=>{let{isDebugging}=this.getState(storyId);this.setState(storyId,{renderPhase:newPhase}),"preparing"===newPhase&&isDebugging&&resetState({storyId}),"playing"===newPhase&&resetState({storyId,isDebugging}),"played"===newPhase&&this.setState(storyId,{isLocked:!1,isPlaying:!1,isDebugging:!1}),"errored"===newPhase&&this.setState(storyId,{isLocked:!1,isPlaying:!1})})),this.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.SET_CURRENT_STORY,(()=>{this.initialized?this.cleanup():this.initialized=!0}));let start=({storyId,playUntil})=>{this.getState(storyId).isDebugging||this.setState(storyId,(({calls})=>({calls:[],shadowCalls:calls.map((call=>({...call,status:"waiting"}))),isDebugging:!0})));let log=this.getLog(storyId);this.setState(storyId,(({shadowCalls})=>{if(playUntil||!log.length)return{playUntil};let firstRowIndex=shadowCalls.findIndex((call=>call.id===log[0].callId));return{playUntil:shadowCalls.slice(0,firstRowIndex).filter((call=>call.interceptable&&!call.ancestors.length)).slice(-1)[0]?.id}})),this.channel.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.FORCE_REMOUNT,{storyId,isDebugging:!0})},end=({storyId})=>{this.setState(storyId,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(storyId).resolvers).forEach((resolve=>resolve()))};this.channel.on(EVENTS_START,start),this.channel.on(EVENTS_BACK,(({storyId})=>{let log=this.getLog(storyId).filter((call=>!call.ancestors.length)),last=log.reduceRight(((res,item,index)=>res>=0||"waiting"===item.status?res:index),-1);start({storyId,playUntil:log[last-1]?.callId})})),this.channel.on(EVENTS_GOTO,(({storyId,callId})=>{let{calls,shadowCalls,resolvers}=this.getState(storyId),call=calls.find((({id})=>id===callId)),shadowCall=shadowCalls.find((({id})=>id===callId));if(!call&&shadowCall&&Object.values(resolvers).length>0){let nextId=this.getLog(storyId).find((c=>"waiting"===c.status))?.callId;shadowCall.id!==nextId&&this.setState(storyId,{playUntil:shadowCall.id}),Object.values(resolvers).forEach((resolve=>resolve()))}else start({storyId,playUntil:callId})})),this.channel.on(EVENTS_NEXT,(({storyId})=>{let{resolvers}=this.getState(storyId);if(Object.values(resolvers).length>0)Object.values(resolvers).forEach((resolve=>resolve()));else{let nextId=this.getLog(storyId).find((c=>"waiting"===c.status))?.callId;nextId?start({storyId,playUntil:nextId}):end({storyId})}})),this.channel.on(EVENTS_END,end)}getState(storyId){return this.state[storyId]||getInitialState()}setState(storyId,update){let state=this.getState(storyId),patch="function"==typeof update?update(state):update;this.state={...this.state,[storyId]:{...state,...patch}},external_STORYBOOK_MODULE_GLOBAL_.global.window?.parent&&(external_STORYBOOK_MODULE_GLOBAL_.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}cleanup(){this.state=Object.entries(this.state).reduce(((acc,[storyId,state])=>{let retainedState=getRetainedState(state);return retainedState&&(acc[storyId]=Object.assign(getInitialState(),retainedState)),acc}),{});let payload={controlStates:controlsDisabled,logItems:[]};this.channel.emit(EVENTS_SYNC,payload),external_STORYBOOK_MODULE_GLOBAL_.global.window?.parent&&(external_STORYBOOK_MODULE_GLOBAL_.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}getLog(storyId){let{calls,shadowCalls}=this.getState(storyId),merged=[...shadowCalls];calls.forEach(((call,index)=>{merged[index]=call}));let seen=new Set;return merged.reduceRight(((acc,call)=>(call.args.forEach((arg=>{arg?.__callId__&&seen.add(arg.__callId__)})),call.path.forEach((node=>{node.__callId__&&seen.add(node.__callId__)})),(call.interceptable||call.exception)&&!seen.has(call.id)&&(acc.unshift({callId:call.id,status:call.status,ancestors:call.ancestors}),seen.add(call.id)),acc)),[])}instrument(obj,options,depth=0){if(!isInstrumentable(obj))return obj;let{mutate=!1,path=[]}=options,keys=options.getKeys?options.getKeys(obj,depth):Object.keys(obj);return depth+=1,keys.reduce(((acc,key)=>{let descriptor=function getPropertyDescriptor(obj,propName){let target=obj;for(;null!=target;){let descriptor=Object.getOwnPropertyDescriptor(target,propName);if(descriptor)return descriptor;target=Object.getPrototypeOf(target)}}(obj,key);if("function"==typeof descriptor?.get){let getter=()=>descriptor?.get?.bind(obj)?.();return Object.defineProperty(acc,key,{get:()=>this.instrument(getter(),{...options,path:path.concat(key)},depth)}),acc}let value=obj[key];return"function"!=typeof value?(acc[key]=this.instrument(value,{...options,path:path.concat(key)},depth),acc):"__originalFn__"in value&&"function"==typeof value.__originalFn__?(acc[key]=value,acc):(acc[key]=(...args)=>this.track(key,value,obj,args,options),acc[key].__originalFn__=value,Object.defineProperty(acc[key],"name",{value:key,writable:!1}),Object.keys(value).length>0&&Object.assign(acc[key],this.instrument({...value},{...options,path:path.concat(key)},depth)),acc)}),mutate?obj:(obj=>{try{return new obj.constructor}catch{return{}}})(obj))}track(method,fn,object,args,options){let storyId=args?.[0]?.__storyId__||external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor,ancestors}=this.getState(storyId);this.setState(storyId,{cursor:cursor+1});let id=`${ancestors.slice(-1)[0]||storyId} [${cursor}] ${method}`,{path=[],intercept=!1,retain=!1}=options,interceptable="function"==typeof intercept?intercept(method,path):intercept,call={id,cursor,storyId,ancestors,path,method,args,interceptable,retain},result=(interceptable&&!ancestors.length?this.intercept:this.invoke).call(this,fn,object,call,options);return this.instrument(result,{...options,mutate:!0,path:[{__callId__:call.id}]})}intercept(fn,object,call,options){let{chainedCallIds,isDebugging,playUntil}=this.getState(call.storyId),isChainedUpon=chainedCallIds.has(call.id);return!isDebugging||isChainedUpon||playUntil?(playUntil===call.id&&this.setState(call.storyId,{playUntil:void 0}),this.invoke(fn,object,call,options)):new Promise((resolve=>{this.setState(call.storyId,(({resolvers})=>({isLocked:!1,resolvers:{...resolvers,[call.id]:resolve}})))})).then((()=>(this.setState(call.storyId,(state=>{let{[call.id]:_,...resolvers}=state.resolvers;return{isLocked:!0,resolvers}})),this.invoke(fn,object,call,options))))}invoke(fn,object,call,options){let{callRefsByResult,renderPhase}=this.getState(call.storyId),serializeValues=(value,depth,seen)=>{if(seen.includes(value))return"[Circular]";if(seen=[...seen,value],depth>25)return"...";if(callRefsByResult.has(value))return callRefsByResult.get(value);if(value instanceof Array)return value.map((it=>serializeValues(it,++depth,seen)));if(value instanceof Date)return{__date__:{value:value.toISOString()}};if(value instanceof Error){let{name,message,stack}=value;return{__error__:{name,message,stack}}}if(value instanceof RegExp){let{flags,source}=value;return{__regexp__:{flags,source}}}if(value instanceof external_STORYBOOK_MODULE_GLOBAL_.global.window?.HTMLElement){let{prefix,localName,id,classList,innerText}=value;return{__element__:{prefix,localName,id,classNames:Array.from(classList),innerText}}}return"function"==typeof value?{__function__:{name:"getMockName"in value?value.getMockName():value.name}}:"symbol"==typeof value?{__symbol__:{description:value.description}}:"object"==typeof value&&value?.constructor?.name&&"Object"!==value?.constructor?.name?{__class__:{name:value.constructor.name}}:"[object Object]"===Object.prototype.toString.call(value)?Object.fromEntries(Object.entries(value).map((([key,val])=>[key,serializeValues(val,++depth,seen)]))):value},info={...call,args:call.args.map((arg=>serializeValues(arg,0,[])))};call.path.forEach((ref=>{ref?.__callId__&&this.setState(call.storyId,(({chainedCallIds})=>({chainedCallIds:new Set(Array.from(chainedCallIds).concat(ref.__callId__))})))}));let handleException=e=>{if(e instanceof Error){let{name,message,stack,callId=call.id}=e,{showDiff,diff:diff2,actual,expected}="AssertionError"===e.name?processError(e):e,exception={name,message,stack,callId,showDiff,diff:diff2,actual,expected};if(this.update({...info,status:"error",exception}),this.setState(call.storyId,(state=>({callRefsByResult:new Map([...Array.from(state.callRefsByResult.entries()),[e,{__callId__:call.id,retain:call.retain}]])}))),call.ancestors.length)throw Object.prototype.hasOwnProperty.call(e,"callId")||Object.defineProperty(e,"callId",{value:call.id}),e}throw e};try{if("played"===renderPhase&&!call.retain)throw alreadyCompletedException;let finalArgs=(options.getArgs?options.getArgs(call,this.getState(call.storyId)):call.args).map((arg=>"function"!=typeof arg||Object.keys(arg).length?arg:(...args)=>{let{cursor,ancestors}=this.getState(call.storyId);this.setState(call.storyId,{cursor:0,ancestors:[...ancestors,call.id]});let restore=()=>this.setState(call.storyId,{cursor,ancestors}),willRestore=!1;try{let res=arg(...args);return res instanceof Promise?(willRestore=!0,res.finally(restore)):res}finally{willRestore||restore()}})),result=fn.apply(object,finalArgs);return result&&["object","function","symbol"].includes(typeof result)&&this.setState(call.storyId,(state=>({callRefsByResult:new Map([...Array.from(state.callRefsByResult.entries()),[result,{__callId__:call.id,retain:call.retain}]])}))),this.update({...info,status:result instanceof Promise?"active":"done"}),result instanceof Promise?result.then((value=>(this.update({...info,status:"done"}),value)),handleException):result}catch(e){return handleException(e)}}update(call){this.channel.emit(EVENTS_CALL,call),this.setState(call.storyId,(({calls})=>{let callsById=calls.concat(call).reduce(((a2,c)=>Object.assign(a2,{[c.id]:c})),{});return{calls:Object.values(callsById).sort(((a2,b)=>a2.id.localeCompare(b.id,void 0,{numeric:!0})))}})),this.sync(call.storyId)}sync(storyId){let synchronize=()=>{let{isLocked,isPlaying}=this.getState(storyId),logItems=this.getLog(storyId),pausedAt=logItems.filter((({ancestors})=>!ancestors.length)).find((item=>"waiting"===item.status))?.callId,hasActive=logItems.some((item=>"active"===item.status));if(isLocked||hasActive||0===logItems.length){let payload2={controlStates:controlsDisabled,logItems};return void this.channel.emit(EVENTS_SYNC,payload2)}let hasPrevious=logItems.some((item=>"done"===item.status||"error"===item.status)),payload={controlStates:{start:hasPrevious,back:hasPrevious,goto:!0,next:isPlaying,end:isPlaying},logItems,pausedAt};this.channel.emit(EVENTS_SYNC,payload)};this.setState(storyId,(({syncTimeout})=>(clearTimeout(syncTimeout),{syncTimeout:setTimeout(synchronize,0)})))}};function instrument(obj,options={}){try{let forceInstrument=!1,skipInstrument=!1;return external_STORYBOOK_MODULE_GLOBAL_.global.window?.location?.search?.includes("instrument=true")?forceInstrument=!0:external_STORYBOOK_MODULE_GLOBAL_.global.window?.location?.search?.includes("instrument=false")&&(skipInstrument=!0),external_STORYBOOK_MODULE_GLOBAL_.global.window?.parent===external_STORYBOOK_MODULE_GLOBAL_.global.window&&!forceInstrument||skipInstrument?obj:(external_STORYBOOK_MODULE_GLOBAL_.global.window&&!external_STORYBOOK_MODULE_GLOBAL_.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(external_STORYBOOK_MODULE_GLOBAL_.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new Instrumenter),(external_STORYBOOK_MODULE_GLOBAL_.global.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(obj,options))}catch(e){return external_STORYBOOK_MODULE_CLIENT_LOGGER_.once.warn(e),obj}}module=__webpack_require__.hmd(module);var cb,mod,dist_process=__webpack_require__("./node_modules/process/browser.js"),__create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,dist_require=__webpack_require__("./node_modules/@storybook/test/dist sync recursive"),__commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__toESM=(mod,isNodeMode,target)=>(target=null!=mod?__create(__getProtoOf(mod)):{},((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to})(!isNodeMode&&mod&&mod.__esModule?target:__defProp(target,"default",{value:mod,enumerable:!0}),mod)),require_min_indent=__commonJS({"../../node_modules/min-indent/index.js"(exports,module2){module2.exports=string=>{let match=string.match(/^[ \t]*(?=\S)/gm);return match?match.reduce(((r,a2)=>Math.min(r,a2.length)),1/0):0}}}),require_strip_indent=__commonJS({"../../node_modules/strip-indent/index.js"(exports,module2){var minIndent=require_min_indent();module2.exports=string=>{let indent=minIndent(string);if(0===indent)return string;let regex=new RegExp(`^[ \\t]{${indent}}`,"gm");return string.replace(regex,"")}}}),require_indent_string=__commonJS({"../../node_modules/indent-string/index.js"(exports,module2){module2.exports=(string,count=1,options)=>{if(options={indent:" ",includeEmptyLines:!1,...options},"string"!=typeof string)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof string}\``);if("number"!=typeof count)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof count}\``);if("string"!=typeof options.indent)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof options.indent}\``);if(0===count)return string;let regex=options.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return string.replace(regex,options.indent.repeat(count))}}}),require_redent=__commonJS({"../../node_modules/redent/index.js"(exports,module2){var stripIndent=require_strip_indent(),indentString=require_indent_string();module2.exports=(string,count=0,options)=>indentString(stripIndent(string),count,options)}}),require_iteratorProxy=__commonJS({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2=function iteratorProxy(){var values=this,index=0,iter={"@@iterator":function(){return iter},next:function(){if(indexarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:null,_iterator=function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i=0,F=function(){};return{s:F,n:function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3},f:function(){try{!normalCompletion&&null!=it.return&&it.return()}finally{if(didErr)throw err}}}}(properties);try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,key,properties)}}catch(err){_iterator.e(err)}finally{_iterator.f()}},get:function(key){var item=properties.find((function(tuple){return tuple[0]===key}));return item&&item[1]},has:function(key){return!!ariaPropsMap.get(key)},keys:function(){return properties.map((function(_ref){return _slicedToArray(_ref,1)[0]}))},values:function(){return properties.map((function(_ref3){return _slicedToArray(_ref3,2)[1]}))}},_default2=(0,_iterationDecorator.default)(ariaPropsMap,ariaPropsMap.entries());exports.default=_default2}}),require_domMap=__commonJS({"../../node_modules/aria-query/lib/domMap.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _iterationDecorator=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(require_iterationDecorator());function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:typeof Symbol<"u"&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&null!=_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}}(arr,i)||_unsupportedIterableToArray(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:null,_iterator=function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i=0,F=function(){};return{s:F,n:function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3},f:function(){try{!normalCompletion&&null!=it.return&&it.return()}finally{if(didErr)throw err}}}}(dom);try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,key,dom)}}catch(err){_iterator.e(err)}finally{_iterator.f()}},get:function(key){var item=dom.find((function(tuple){return tuple[0]===key}));return item&&item[1]},has:function(key){return!!domMap.get(key)},keys:function(){return dom.map((function(_ref){return _slicedToArray(_ref,1)[0]}))},values:function(){return dom.map((function(_ref3){return _slicedToArray(_ref3,2)[1]}))}},_default2=(0,_iterationDecorator.default)(domMap,domMap.entries());exports.default=_default2}}),require_commandRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};exports.default=_default2}}),require_compositeRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};exports.default=_default2}}),require_inputRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};exports.default=_default2}}),require_landmarkRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_rangeRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_roletypeRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};exports.default=_default2}}),require_sectionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_sectionheadRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_selectRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]};exports.default=_default2}}),require_structureRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};exports.default=_default2}}),require_widgetRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};exports.default=_default2}}),require_windowRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};exports.default=_default2}}),require_ariaAbstractRoles=__commonJS({"../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _commandRole=_interopRequireDefault(require_commandRole()),_compositeRole=_interopRequireDefault(require_compositeRole()),_inputRole=_interopRequireDefault(require_inputRole()),_landmarkRole=_interopRequireDefault(require_landmarkRole()),_rangeRole=_interopRequireDefault(require_rangeRole()),_roletypeRole=_interopRequireDefault(require_roletypeRole()),_sectionRole=_interopRequireDefault(require_sectionRole()),_sectionheadRole=_interopRequireDefault(require_sectionheadRole()),_selectRole=_interopRequireDefault(require_selectRole()),_structureRole=_interopRequireDefault(require_structureRole()),_widgetRole=_interopRequireDefault(require_widgetRole()),_windowRole=_interopRequireDefault(require_windowRole());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _default2=[["command",_commandRole.default],["composite",_compositeRole.default],["input",_inputRole.default],["landmark",_landmarkRole.default],["range",_rangeRole.default],["roletype",_roletypeRole.default],["section",_sectionRole.default],["sectionhead",_sectionheadRole.default],["select",_selectRole.default],["structure",_structureRole.default],["widget",_widgetRole.default],["window",_windowRole.default]];exports.default=_default2}}),require_alertRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_alertdialogRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]};exports.default=_default2}}),require_applicationRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_articleRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]};exports.default=_default2}}),require_bannerRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_blockquoteRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_buttonRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};exports.default=_default2}}),require_captionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_cellRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_checkboxRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]};exports.default=_default2}}),require_codeRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_columnheaderRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};exports.default=_default2}}),require_comboboxRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]};exports.default=_default2}}),require_complementaryRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_contentinfoRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_definitionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_deletionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_dialogRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]};exports.default=_default2}}),require_directoryRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]};exports.default=_default2}}),require_documentRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_emphasisRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_feedRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]};exports.default=_default2}}),require_figureRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_formRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_genericRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_gridRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]};exports.default=_default2}}),require_gridcellRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]};exports.default=_default2}}),require_groupRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_headingRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]};exports.default=_default2}}),require_imgRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_insertionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_linkRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};exports.default=_default2}}),require_listRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_listboxRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};exports.default=_default2}}),require_listitemRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_logRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_mainRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_markRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_marqueeRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_mathRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_menuRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};exports.default=_default2}}),require_menubarRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]};exports.default=_default2}}),require_menuitemRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};exports.default=_default2}}),require_menuitemcheckboxRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]};exports.default=_default2}}),require_menuitemradioRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]};exports.default=_default2}}),require_meterRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]};exports.default=_default2}}),require_navigationRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_noneRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};exports.default=_default2}}),require_noteRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_optionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]};exports.default=_default2}}),require_paragraphRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_presentationRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_progressbarRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]};exports.default=_default2}}),require_radioRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]};exports.default=_default2}}),require_radiogroupRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};exports.default=_default2}}),require_regionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_rowRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]};exports.default=_default2}}),require_rowgroupRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_rowheaderRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};exports.default=_default2}}),require_scrollbarRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]};exports.default=_default2}}),require_searchRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_searchboxRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]};exports.default=_default2}}),require_separatorRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_sliderRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]};exports.default=_default2}}),require_spinbuttonRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]};exports.default=_default2}}),require_statusRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_strongRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_subscriptRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_superscriptRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_switchRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]};exports.default=_default2}}),require_tabRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]};exports.default=_default2}}),require_tableRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_tablistRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]};exports.default=_default2}}),require_tabpanelRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_termRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_textboxRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]};exports.default=_default2}}),require_timeRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_timerRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]};exports.default=_default2}}),require_toolbarRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]};exports.default=_default2}}),require_tooltipRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_treeRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};exports.default=_default2}}),require_treegridRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]};exports.default=_default2}}),require_treeitemRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]};exports.default=_default2}}),require_ariaLiteralRoles=__commonJS({"../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _alertRole=_interopRequireDefault(require_alertRole()),_alertdialogRole=_interopRequireDefault(require_alertdialogRole()),_applicationRole=_interopRequireDefault(require_applicationRole()),_articleRole=_interopRequireDefault(require_articleRole()),_bannerRole=_interopRequireDefault(require_bannerRole()),_blockquoteRole=_interopRequireDefault(require_blockquoteRole()),_buttonRole=_interopRequireDefault(require_buttonRole()),_captionRole=_interopRequireDefault(require_captionRole()),_cellRole=_interopRequireDefault(require_cellRole()),_checkboxRole=_interopRequireDefault(require_checkboxRole()),_codeRole=_interopRequireDefault(require_codeRole()),_columnheaderRole=_interopRequireDefault(require_columnheaderRole()),_comboboxRole=_interopRequireDefault(require_comboboxRole()),_complementaryRole=_interopRequireDefault(require_complementaryRole()),_contentinfoRole=_interopRequireDefault(require_contentinfoRole()),_definitionRole=_interopRequireDefault(require_definitionRole()),_deletionRole=_interopRequireDefault(require_deletionRole()),_dialogRole=_interopRequireDefault(require_dialogRole()),_directoryRole=_interopRequireDefault(require_directoryRole()),_documentRole=_interopRequireDefault(require_documentRole()),_emphasisRole=_interopRequireDefault(require_emphasisRole()),_feedRole=_interopRequireDefault(require_feedRole()),_figureRole=_interopRequireDefault(require_figureRole()),_formRole=_interopRequireDefault(require_formRole()),_genericRole=_interopRequireDefault(require_genericRole()),_gridRole=_interopRequireDefault(require_gridRole()),_gridcellRole=_interopRequireDefault(require_gridcellRole()),_groupRole=_interopRequireDefault(require_groupRole()),_headingRole=_interopRequireDefault(require_headingRole()),_imgRole=_interopRequireDefault(require_imgRole()),_insertionRole=_interopRequireDefault(require_insertionRole()),_linkRole=_interopRequireDefault(require_linkRole()),_listRole=_interopRequireDefault(require_listRole()),_listboxRole=_interopRequireDefault(require_listboxRole()),_listitemRole=_interopRequireDefault(require_listitemRole()),_logRole=_interopRequireDefault(require_logRole()),_mainRole=_interopRequireDefault(require_mainRole()),_markRole=_interopRequireDefault(require_markRole()),_marqueeRole=_interopRequireDefault(require_marqueeRole()),_mathRole=_interopRequireDefault(require_mathRole()),_menuRole=_interopRequireDefault(require_menuRole()),_menubarRole=_interopRequireDefault(require_menubarRole()),_menuitemRole=_interopRequireDefault(require_menuitemRole()),_menuitemcheckboxRole=_interopRequireDefault(require_menuitemcheckboxRole()),_menuitemradioRole=_interopRequireDefault(require_menuitemradioRole()),_meterRole=_interopRequireDefault(require_meterRole()),_navigationRole=_interopRequireDefault(require_navigationRole()),_noneRole=_interopRequireDefault(require_noneRole()),_noteRole=_interopRequireDefault(require_noteRole()),_optionRole=_interopRequireDefault(require_optionRole()),_paragraphRole=_interopRequireDefault(require_paragraphRole()),_presentationRole=_interopRequireDefault(require_presentationRole()),_progressbarRole=_interopRequireDefault(require_progressbarRole()),_radioRole=_interopRequireDefault(require_radioRole()),_radiogroupRole=_interopRequireDefault(require_radiogroupRole()),_regionRole=_interopRequireDefault(require_regionRole()),_rowRole=_interopRequireDefault(require_rowRole()),_rowgroupRole=_interopRequireDefault(require_rowgroupRole()),_rowheaderRole=_interopRequireDefault(require_rowheaderRole()),_scrollbarRole=_interopRequireDefault(require_scrollbarRole()),_searchRole=_interopRequireDefault(require_searchRole()),_searchboxRole=_interopRequireDefault(require_searchboxRole()),_separatorRole=_interopRequireDefault(require_separatorRole()),_sliderRole=_interopRequireDefault(require_sliderRole()),_spinbuttonRole=_interopRequireDefault(require_spinbuttonRole()),_statusRole=_interopRequireDefault(require_statusRole()),_strongRole=_interopRequireDefault(require_strongRole()),_subscriptRole=_interopRequireDefault(require_subscriptRole()),_superscriptRole=_interopRequireDefault(require_superscriptRole()),_switchRole=_interopRequireDefault(require_switchRole()),_tabRole=_interopRequireDefault(require_tabRole()),_tableRole=_interopRequireDefault(require_tableRole()),_tablistRole=_interopRequireDefault(require_tablistRole()),_tabpanelRole=_interopRequireDefault(require_tabpanelRole()),_termRole=_interopRequireDefault(require_termRole()),_textboxRole=_interopRequireDefault(require_textboxRole()),_timeRole=_interopRequireDefault(require_timeRole()),_timerRole=_interopRequireDefault(require_timerRole()),_toolbarRole=_interopRequireDefault(require_toolbarRole()),_tooltipRole=_interopRequireDefault(require_tooltipRole()),_treeRole=_interopRequireDefault(require_treeRole()),_treegridRole=_interopRequireDefault(require_treegridRole()),_treeitemRole=_interopRequireDefault(require_treeitemRole());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _default2=[["alert",_alertRole.default],["alertdialog",_alertdialogRole.default],["application",_applicationRole.default],["article",_articleRole.default],["banner",_bannerRole.default],["blockquote",_blockquoteRole.default],["button",_buttonRole.default],["caption",_captionRole.default],["cell",_cellRole.default],["checkbox",_checkboxRole.default],["code",_codeRole.default],["columnheader",_columnheaderRole.default],["combobox",_comboboxRole.default],["complementary",_complementaryRole.default],["contentinfo",_contentinfoRole.default],["definition",_definitionRole.default],["deletion",_deletionRole.default],["dialog",_dialogRole.default],["directory",_directoryRole.default],["document",_documentRole.default],["emphasis",_emphasisRole.default],["feed",_feedRole.default],["figure",_figureRole.default],["form",_formRole.default],["generic",_genericRole.default],["grid",_gridRole.default],["gridcell",_gridcellRole.default],["group",_groupRole.default],["heading",_headingRole.default],["img",_imgRole.default],["insertion",_insertionRole.default],["link",_linkRole.default],["list",_listRole.default],["listbox",_listboxRole.default],["listitem",_listitemRole.default],["log",_logRole.default],["main",_mainRole.default],["mark",_markRole.default],["marquee",_marqueeRole.default],["math",_mathRole.default],["menu",_menuRole.default],["menubar",_menubarRole.default],["menuitem",_menuitemRole.default],["menuitemcheckbox",_menuitemcheckboxRole.default],["menuitemradio",_menuitemradioRole.default],["meter",_meterRole.default],["navigation",_navigationRole.default],["none",_noneRole.default],["note",_noteRole.default],["option",_optionRole.default],["paragraph",_paragraphRole.default],["presentation",_presentationRole.default],["progressbar",_progressbarRole.default],["radio",_radioRole.default],["radiogroup",_radiogroupRole.default],["region",_regionRole.default],["row",_rowRole.default],["rowgroup",_rowgroupRole.default],["rowheader",_rowheaderRole.default],["scrollbar",_scrollbarRole.default],["search",_searchRole.default],["searchbox",_searchboxRole.default],["separator",_separatorRole.default],["slider",_sliderRole.default],["spinbutton",_spinbuttonRole.default],["status",_statusRole.default],["strong",_strongRole.default],["subscript",_subscriptRole.default],["superscript",_superscriptRole.default],["switch",_switchRole.default],["tab",_tabRole.default],["table",_tableRole.default],["tablist",_tablistRole.default],["tabpanel",_tabpanelRole.default],["term",_termRole.default],["textbox",_textboxRole.default],["time",_timeRole.default],["timer",_timerRole.default],["toolbar",_toolbarRole.default],["tooltip",_tooltipRole.default],["tree",_treeRole.default],["treegrid",_treegridRole.default],["treeitem",_treeitemRole.default]];exports.default=_default2}}),require_docAbstractRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_docAcknowledgmentsRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docAfterwordRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docAppendixRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docBacklinkRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};exports.default=_default2}}),require_docBiblioentryRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]};exports.default=_default2}}),require_docBibliographyRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docBibliorefRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};exports.default=_default2}}),require_docChapterRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docColophonRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_docConclusionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docCoverRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]};exports.default=_default2}}),require_docCreditRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_docCreditsRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docDedicationRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_docEndnoteRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]};exports.default=_default2}}),require_docEndnotesRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docEpigraphRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_docEpilogueRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docErrataRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docExampleRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_docFootnoteRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_docForewordRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docGlossaryRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docGlossrefRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};exports.default=_default2}}),require_docIndexRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};exports.default=_default2}}),require_docIntroductionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docNoterefRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};exports.default=_default2}}),require_docNoticeRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]};exports.default=_default2}}),require_docPagebreakRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]};exports.default=_default2}}),require_docPagelistRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};exports.default=_default2}}),require_docPartRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docPrefaceRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docPrologueRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docPullquoteRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]};exports.default=_default2}}),require_docQnaRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_docSubtitleRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]};exports.default=_default2}}),require_docTipRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]};exports.default=_default2}}),require_docTocRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};exports.default=_default2}}),require_ariaDpubRoles=__commonJS({"../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _docAbstractRole=_interopRequireDefault(require_docAbstractRole()),_docAcknowledgmentsRole=_interopRequireDefault(require_docAcknowledgmentsRole()),_docAfterwordRole=_interopRequireDefault(require_docAfterwordRole()),_docAppendixRole=_interopRequireDefault(require_docAppendixRole()),_docBacklinkRole=_interopRequireDefault(require_docBacklinkRole()),_docBiblioentryRole=_interopRequireDefault(require_docBiblioentryRole()),_docBibliographyRole=_interopRequireDefault(require_docBibliographyRole()),_docBibliorefRole=_interopRequireDefault(require_docBibliorefRole()),_docChapterRole=_interopRequireDefault(require_docChapterRole()),_docColophonRole=_interopRequireDefault(require_docColophonRole()),_docConclusionRole=_interopRequireDefault(require_docConclusionRole()),_docCoverRole=_interopRequireDefault(require_docCoverRole()),_docCreditRole=_interopRequireDefault(require_docCreditRole()),_docCreditsRole=_interopRequireDefault(require_docCreditsRole()),_docDedicationRole=_interopRequireDefault(require_docDedicationRole()),_docEndnoteRole=_interopRequireDefault(require_docEndnoteRole()),_docEndnotesRole=_interopRequireDefault(require_docEndnotesRole()),_docEpigraphRole=_interopRequireDefault(require_docEpigraphRole()),_docEpilogueRole=_interopRequireDefault(require_docEpilogueRole()),_docErrataRole=_interopRequireDefault(require_docErrataRole()),_docExampleRole=_interopRequireDefault(require_docExampleRole()),_docFootnoteRole=_interopRequireDefault(require_docFootnoteRole()),_docForewordRole=_interopRequireDefault(require_docForewordRole()),_docGlossaryRole=_interopRequireDefault(require_docGlossaryRole()),_docGlossrefRole=_interopRequireDefault(require_docGlossrefRole()),_docIndexRole=_interopRequireDefault(require_docIndexRole()),_docIntroductionRole=_interopRequireDefault(require_docIntroductionRole()),_docNoterefRole=_interopRequireDefault(require_docNoterefRole()),_docNoticeRole=_interopRequireDefault(require_docNoticeRole()),_docPagebreakRole=_interopRequireDefault(require_docPagebreakRole()),_docPagelistRole=_interopRequireDefault(require_docPagelistRole()),_docPartRole=_interopRequireDefault(require_docPartRole()),_docPrefaceRole=_interopRequireDefault(require_docPrefaceRole()),_docPrologueRole=_interopRequireDefault(require_docPrologueRole()),_docPullquoteRole=_interopRequireDefault(require_docPullquoteRole()),_docQnaRole=_interopRequireDefault(require_docQnaRole()),_docSubtitleRole=_interopRequireDefault(require_docSubtitleRole()),_docTipRole=_interopRequireDefault(require_docTipRole()),_docTocRole=_interopRequireDefault(require_docTocRole());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _default2=[["doc-abstract",_docAbstractRole.default],["doc-acknowledgments",_docAcknowledgmentsRole.default],["doc-afterword",_docAfterwordRole.default],["doc-appendix",_docAppendixRole.default],["doc-backlink",_docBacklinkRole.default],["doc-biblioentry",_docBiblioentryRole.default],["doc-bibliography",_docBibliographyRole.default],["doc-biblioref",_docBibliorefRole.default],["doc-chapter",_docChapterRole.default],["doc-colophon",_docColophonRole.default],["doc-conclusion",_docConclusionRole.default],["doc-cover",_docCoverRole.default],["doc-credit",_docCreditRole.default],["doc-credits",_docCreditsRole.default],["doc-dedication",_docDedicationRole.default],["doc-endnote",_docEndnoteRole.default],["doc-endnotes",_docEndnotesRole.default],["doc-epigraph",_docEpigraphRole.default],["doc-epilogue",_docEpilogueRole.default],["doc-errata",_docErrataRole.default],["doc-example",_docExampleRole.default],["doc-footnote",_docFootnoteRole.default],["doc-foreword",_docForewordRole.default],["doc-glossary",_docGlossaryRole.default],["doc-glossref",_docGlossrefRole.default],["doc-index",_docIndexRole.default],["doc-introduction",_docIntroductionRole.default],["doc-noteref",_docNoterefRole.default],["doc-notice",_docNoticeRole.default],["doc-pagebreak",_docPagebreakRole.default],["doc-pagelist",_docPagelistRole.default],["doc-part",_docPartRole.default],["doc-preface",_docPrefaceRole.default],["doc-prologue",_docPrologueRole.default],["doc-pullquote",_docPullquoteRole.default],["doc-qna",_docQnaRole.default],["doc-subtitle",_docSubtitleRole.default],["doc-tip",_docTipRole.default],["doc-toc",_docTocRole.default]];exports.default=_default2}}),require_graphicsDocumentRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]};exports.default=_default2}}),require_graphicsObjectRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]};exports.default=_default2}}),require_graphicsSymbolRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]};exports.default=_default2}}),require_ariaGraphicsRoles=__commonJS({"../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _graphicsDocumentRole=_interopRequireDefault(require_graphicsDocumentRole()),_graphicsObjectRole=_interopRequireDefault(require_graphicsObjectRole()),_graphicsSymbolRole=_interopRequireDefault(require_graphicsSymbolRole());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _default2=[["graphics-document",_graphicsDocumentRole.default],["graphics-object",_graphicsObjectRole.default],["graphics-symbol",_graphicsSymbolRole.default]];exports.default=_default2}}),require_rolesMap=__commonJS({"../../node_modules/aria-query/lib/rolesMap.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _ariaAbstractRoles=_interopRequireDefault(require_ariaAbstractRoles()),_ariaLiteralRoles=_interopRequireDefault(require_ariaLiteralRoles()),_ariaDpubRoles=_interopRequireDefault(require_ariaDpubRoles()),_ariaGraphicsRoles=_interopRequireDefault(require_ariaGraphicsRoles()),_iterationDecorator=_interopRequireDefault(require_iterationDecorator());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i=0,F=function(){};return{s:F,n:function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3},f:function(){try{!normalCompletion&&null!=it.return&&it.return()}finally{if(didErr)throw err}}}}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:typeof Symbol<"u"&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&null!=_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}}(arr,i)||_unsupportedIterableToArray(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:null,_iterator3=_createForOfIteratorHelper(roles3);try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _step3$value=_slicedToArray(_step3.value,2),key=_step3$value[0],values=_step3$value[1];fn3.call(thisArg,values,key,roles3)}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}},get:function(key){var item=roles3.find((function(tuple){return tuple[0]===key}));return item&&item[1]},has:function(key){return!!rolesMap.get(key)},keys:function(){return roles3.map((function(_ref5){return _slicedToArray(_ref5,1)[0]}))},values:function(){return roles3.map((function(_ref7){return _slicedToArray(_ref7,2)[1]}))}},_default2=(0,_iterationDecorator.default)(rolesMap,rolesMap.entries());exports.default=_default2}}),require_lite=__commonJS({"../../node_modules/dequal/lite/index.js"(exports){var has=Object.prototype.hasOwnProperty;exports.dequal=function dequal(foo,bar){var ctor,len;if(foo===bar)return!0;if(foo&&bar&&(ctor=foo.constructor)===bar.constructor){if(ctor===Date)return foo.getTime()===bar.getTime();if(ctor===RegExp)return foo.toString()===bar.toString();if(ctor===Array){if((len=foo.length)===bar.length)for(;len--&&dequal(foo[len],bar[len]););return-1===len}if(!ctor||"object"==typeof foo){for(ctor in len=0,foo)if(has.call(foo,ctor)&&++len&&!has.call(bar,ctor)||!(ctor in bar)||!dequal(foo[ctor],bar[ctor]))return!1;return Object.keys(bar).length===len}}return foo!=foo&&bar!=bar}}}),require_elementRoleMap=__commonJS({"../../node_modules/aria-query/lib/elementRoleMap.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _lite=require_lite(),_iterationDecorator=_interopRequireDefault(require_iterationDecorator()),_rolesMap=_interopRequireDefault(require_rolesMap());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _slicedToArray(arr,i2){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i2){var _i=null==arr?null:typeof Symbol<"u"&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i2||_arr.length!==i2);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&null!=_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}}(arr,i2)||_unsupportedIterableToArray(arr,i2)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i2=0,arr2=new Array(len);i21&&void 0!==arguments[1]?arguments[1]:null,_iterator=function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i2=0,F=function(){};return{s:F,n:function(){return i2>=o.length?{done:!0}:{done:!1,value:o[i2++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3},f:function(){try{!normalCompletion&&null!=it.return&&it.return()}finally{if(didErr)throw err}}}}(elementRoles3);try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),_key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,_key,elementRoles3)}}catch(err){_iterator.e(err)}finally{_iterator.f()}},get:function(key2){var item=elementRoles3.find((function(tuple){return key2.name===tuple[0].name&&(0,_lite.dequal)(key2.attributes,tuple[0].attributes)}));return item&&item[1]},has:function(key2){return!!elementRoleMap.get(key2)},keys:function(){return elementRoles3.map((function(_ref){return _slicedToArray(_ref,1)[0]}))},values:function(){return elementRoles3.map((function(_ref3){return _slicedToArray(_ref3,2)[1]}))}},_default2=(0,_iterationDecorator.default)(elementRoleMap,elementRoleMap.entries());exports.default=_default2}}),require_roleElementMap=__commonJS({"../../node_modules/aria-query/lib/roleElementMap.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _iterationDecorator=_interopRequireDefault(require_iterationDecorator()),_rolesMap=_interopRequireDefault(require_rolesMap());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _slicedToArray(arr,i2){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i2){var _i=null==arr?null:typeof Symbol<"u"&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i2||_arr.length!==i2);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&null!=_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}}(arr,i2)||_unsupportedIterableToArray(arr,i2)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i2=0,arr2=new Array(len);i20&&roleElement.push([key,relationConcepts])}var key,role,relationConcepts,concepts,relation,concept,k2,i,roleElementMap={entries:function(){return roleElement},forEach:function(fn3){var _step,thisArg=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,_iterator=function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i2=0,F=function(){};return{s:F,n:function(){return i2>=o.length?{done:!0}:{done:!1,value:o[i2++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3},f:function(){try{!normalCompletion&&null!=it.return&&it.return()}finally{if(didErr)throw err}}}}(roleElement);try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),_key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,_key,roleElement)}}catch(err){_iterator.e(err)}finally{_iterator.f()}},get:function(key2){var item=roleElement.find((function(tuple){return tuple[0]===key2}));return item&&item[1]},has:function(key2){return!!roleElementMap.get(key2)},keys:function(){return roleElement.map((function(_ref){return _slicedToArray(_ref,1)[0]}))},values:function(){return roleElement.map((function(_ref3){return _slicedToArray(_ref3,2)[1]}))}},_default2=(0,_iterationDecorator.default)(roleElementMap,roleElementMap.entries());exports.default=_default2}}),require_lib=__commonJS({"../../node_modules/aria-query/lib/index.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.roles=exports.roleElements=exports.elementRoles=exports.dom=exports.aria=void 0;var _ariaPropsMap=_interopRequireDefault(require_ariaPropsMap()),_domMap=_interopRequireDefault(require_domMap()),_rolesMap=_interopRequireDefault(require_rolesMap()),_elementRoleMap=_interopRequireDefault(require_elementRoleMap()),_roleElementMap=_interopRequireDefault(require_roleElementMap());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var aria=_ariaPropsMap.default;exports.aria=aria;var dom=_domMap.default;exports.dom=dom;var roles3=_rolesMap.default;exports.roles=roles3;var elementRoles3=_elementRoleMap.default;exports.elementRoles=elementRoles3;var roleElements2=_roleElementMap.default;exports.roleElements=roleElements2}}),require_color_name=__commonJS({"../../node_modules/color-name/index.js"(exports,module2){module2.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),require_conversions=__commonJS({"../../node_modules/color-convert/conversions.js"(exports,module2){var cssKeywords=require_color_name(),reverseKeywords={};for(let key of Object.keys(cssKeywords))reverseKeywords[cssKeywords[key]]=key;var convert={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};module2.exports=convert;for(let model of Object.keys(convert)){if(!("channels"in convert[model]))throw new Error("missing channels property: "+model);if(!("labels"in convert[model]))throw new Error("missing channel labels property: "+model);if(convert[model].labels.length!==convert[model].channels)throw new Error("channel and label counts mismatch: "+model);let{channels,labels}=convert[model];delete convert[model].channels,delete convert[model].labels,Object.defineProperty(convert[model],"channels",{value:channels}),Object.defineProperty(convert[model],"labels",{value:labels})}convert.rgb.hsl=function(rgb){let h2,s,r=rgb[0]/255,g3=rgb[1]/255,b=rgb[2]/255,min=Math.min(r,g3,b),max=Math.max(r,g3,b),delta=max-min;max===min?h2=0:r===max?h2=(g3-b)/delta:g3===max?h2=2+(b-r)/delta:b===max&&(h2=4+(r-g3)/delta),h2=Math.min(60*h2,360),h2<0&&(h2+=360);let l=(min+max)/2;return s=max===min?0:l<=.5?delta/(max+min):delta/(2-max-min),[h2,100*s,100*l]},convert.rgb.hsv=function(rgb){let rdif,gdif,bdif,h2,s,r=rgb[0]/255,g3=rgb[1]/255,b=rgb[2]/255,v=Math.max(r,g3,b),diff2=v-Math.min(r,g3,b),diffc=function(c){return(v-c)/6/diff2+.5};return 0===diff2?(h2=0,s=0):(s=diff2/v,rdif=diffc(r),gdif=diffc(g3),bdif=diffc(b),r===v?h2=bdif-gdif:g3===v?h2=1/3+rdif-bdif:b===v&&(h2=2/3+gdif-rdif),h2<0?h2+=1:h2>1&&(h2-=1)),[360*h2,100*s,100*v]},convert.rgb.hwb=function(rgb){let r=rgb[0],g3=rgb[1],b=rgb[2],h2=convert.rgb.hsl(rgb)[0],w2=1/255*Math.min(r,Math.min(g3,b));return b=1-1/255*Math.max(r,Math.max(g3,b)),[h2,100*w2,100*b]},convert.rgb.cmyk=function(rgb){let r=rgb[0]/255,g3=rgb[1]/255,b=rgb[2]/255,k2=Math.min(1-r,1-g3,1-b);return[100*((1-r-k2)/(1-k2)||0),100*((1-g3-k2)/(1-k2)||0),100*((1-b-k2)/(1-k2)||0),100*k2]},convert.rgb.keyword=function(rgb){let reversed=reverseKeywords[rgb];if(reversed)return reversed;let currentClosestKeyword,currentClosestDistance=1/0;for(let keyword of Object.keys(cssKeywords)){let value=cssKeywords[keyword],distance=(y2=value,((x2=rgb)[0]-y2[0])**2+(x2[1]-y2[1])**2+(x2[2]-y2[2])**2);distance.04045?((r+.055)/1.055)**2.4:r/12.92,g3=g3>.04045?((g3+.055)/1.055)**2.4:g3/12.92,b=b>.04045?((b+.055)/1.055)**2.4:b/12.92,[100*(.4124*r+.3576*g3+.1805*b),100*(.2126*r+.7152*g3+.0722*b),100*(.0193*r+.1192*g3+.9505*b)]},convert.rgb.lab=function(rgb){let xyz=convert.rgb.xyz(rgb),x2=xyz[0],y2=xyz[1],z=xyz[2];return x2/=95.047,y2/=100,z/=108.883,x2=x2>.008856?x2**(1/3):7.787*x2+16/116,y2=y2>.008856?y2**(1/3):7.787*y2+16/116,z=z>.008856?z**(1/3):7.787*z+16/116,[116*y2-16,500*(x2-y2),200*(y2-z)]},convert.hsl.rgb=function(hsl){let t2,t3,val,h2=hsl[0]/360,s=hsl[1]/100,l=hsl[2]/100;if(0===s)return val=255*l,[val,val,val];t2=l<.5?l*(1+s):l+s-l*s;let t1=2*l-t2,rgb=[0,0,0];for(let i=0;i<3;i++)t3=h2+1/3*-(i-1),t3<0&&t3++,t3>1&&t3--,val=6*t3<1?t1+6*(t2-t1)*t3:2*t3<1?t2:3*t3<2?t1+(t2-t1)*(2/3-t3)*6:t1,rgb[i]=255*val;return rgb},convert.hsl.hsv=function(hsl){let h2=hsl[0],s=hsl[1]/100,l=hsl[2]/100,smin=s,lmin=Math.max(l,.01);return l*=2,s*=l<=1?l:2-l,smin*=lmin<=1?lmin:2-lmin,[h2,100*(0===l?2*smin/(lmin+smin):2*s/(l+s)),100*((l+s)/2)]},convert.hsv.rgb=function(hsv){let h2=hsv[0]/60,s=hsv[1]/100,v=hsv[2]/100,hi=Math.floor(h2)%6,f4=h2-Math.floor(h2),p3=255*v*(1-s),q=255*v*(1-s*f4),t=255*v*(1-s*(1-f4));switch(v*=255,hi){case 0:return[v,t,p3];case 1:return[q,v,p3];case 2:return[p3,v,t];case 3:return[p3,q,v];case 4:return[t,p3,v];case 5:return[v,p3,q]}},convert.hsv.hsl=function(hsv){let sl,l,h2=hsv[0],s=hsv[1]/100,v=hsv[2]/100,vmin=Math.max(v,.01);l=(2-s)*v;let lmin=(2-s)*vmin;return sl=s*vmin,sl/=lmin<=1?lmin:2-lmin,sl=sl||0,l/=2,[h2,100*sl,100*l]},convert.hwb.rgb=function(hwb){let f4,h2=hwb[0]/360,wh=hwb[1]/100,bl=hwb[2]/100,ratio=wh+bl;ratio>1&&(wh/=ratio,bl/=ratio);let i=Math.floor(6*h2),v=1-bl;f4=6*h2-i,1&i&&(f4=1-f4);let r,g3,b,n=wh+f4*(v-wh);switch(i){default:case 6:case 0:r=v,g3=n,b=wh;break;case 1:r=n,g3=v,b=wh;break;case 2:r=wh,g3=v,b=n;break;case 3:r=wh,g3=n,b=v;break;case 4:r=n,g3=wh,b=v;break;case 5:r=v,g3=wh,b=n}return[255*r,255*g3,255*b]},convert.cmyk.rgb=function(cmyk){let c=cmyk[0]/100,m2=cmyk[1]/100,y2=cmyk[2]/100,k2=cmyk[3]/100;return[255*(1-Math.min(1,c*(1-k2)+k2)),255*(1-Math.min(1,m2*(1-k2)+k2)),255*(1-Math.min(1,y2*(1-k2)+k2))]},convert.xyz.rgb=function(xyz){let r,g3,b,x2=xyz[0]/100,y2=xyz[1]/100,z=xyz[2]/100;return r=3.2406*x2+-1.5372*y2+-.4986*z,g3=-.9689*x2+1.8758*y2+.0415*z,b=.0557*x2+-.204*y2+1.057*z,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,g3=g3>.0031308?1.055*g3**(1/2.4)-.055:12.92*g3,b=b>.0031308?1.055*b**(1/2.4)-.055:12.92*b,r=Math.min(Math.max(0,r),1),g3=Math.min(Math.max(0,g3),1),b=Math.min(Math.max(0,b),1),[255*r,255*g3,255*b]},convert.xyz.lab=function(xyz){let x2=xyz[0],y2=xyz[1],z=xyz[2];return x2/=95.047,y2/=100,z/=108.883,x2=x2>.008856?x2**(1/3):7.787*x2+16/116,y2=y2>.008856?y2**(1/3):7.787*y2+16/116,z=z>.008856?z**(1/3):7.787*z+16/116,[116*y2-16,500*(x2-y2),200*(y2-z)]},convert.lab.xyz=function(lab){let x2,y2,z;y2=(lab[0]+16)/116,x2=lab[1]/500+y2,z=y2-lab[2]/200;let y22=y2**3,x22=x2**3,z2=z**3;return y2=y22>.008856?y22:(y2-16/116)/7.787,x2=x22>.008856?x22:(x2-16/116)/7.787,z=z2>.008856?z2:(z-16/116)/7.787,x2*=95.047,y2*=100,z*=108.883,[x2,y2,z]},convert.lab.lch=function(lab){let h2,l=lab[0],a2=lab[1],b=lab[2];return h2=360*Math.atan2(b,a2)/2/Math.PI,h2<0&&(h2+=360),[l,Math.sqrt(a2*a2+b*b),h2]},convert.lch.lab=function(lch){let l=lch[0],c=lch[1],hr=lch[2]/360*2*Math.PI;return[l,c*Math.cos(hr),c*Math.sin(hr)]},convert.rgb.ansi16=function(args,saturation=null){let[r,g3,b]=args,value=null===saturation?convert.rgb.hsv(args)[2]:saturation;if(value=Math.round(value/50),0===value)return 30;let ansi=30+(Math.round(b/255)<<2|Math.round(g3/255)<<1|Math.round(r/255));return 2===value&&(ansi+=60),ansi},convert.hsv.ansi16=function(args){return convert.rgb.ansi16(convert.hsv.rgb(args),args[2])},convert.rgb.ansi256=function(args){let r=args[0],g3=args[1],b=args[2];return r===g3&&g3===b?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(g3/255*5)+Math.round(b/255*5)},convert.ansi16.rgb=function(args){let color=args%10;if(0===color||7===color)return args>50&&(color+=3.5),color=color/10.5*255,[color,color,color];let mult=.5*(1+~~(args>50));return[(1&color)*mult*255,(color>>1&1)*mult*255,(color>>2&1)*mult*255]},convert.ansi256.rgb=function(args){if(args>=232){let c=10*(args-232)+8;return[c,c,c]}let rem;return args-=16,[Math.floor(args/36)/5*255,Math.floor((rem=args%36)/6)/5*255,rem%6/5*255]},convert.rgb.hex=function(args){let string=(((255&Math.round(args[0]))<<16)+((255&Math.round(args[1]))<<8)+(255&Math.round(args[2]))).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert.hex.rgb=function(args){let match=args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match)return[0,0,0];let colorString=match[0];3===match[0].length&&(colorString=colorString.split("").map((char=>char+char)).join(""));let integer=parseInt(colorString,16);return[integer>>16&255,integer>>8&255,255&integer]},convert.rgb.hcg=function(rgb){let grayscale,hue,r=rgb[0]/255,g3=rgb[1]/255,b=rgb[2]/255,max=Math.max(Math.max(r,g3),b),min=Math.min(Math.min(r,g3),b),chroma=max-min;return grayscale=chroma<1?min/(1-chroma):0,hue=chroma<=0?0:max===r?(g3-b)/chroma%6:max===g3?2+(b-r)/chroma:4+(r-g3)/chroma,hue/=6,hue%=1,[360*hue,100*chroma,100*grayscale]},convert.hsl.hcg=function(hsl){let s=hsl[1]/100,l=hsl[2]/100,c=l<.5?2*s*l:2*s*(1-l),f4=0;return c<1&&(f4=(l-.5*c)/(1-c)),[hsl[0],100*c,100*f4]},convert.hsv.hcg=function(hsv){let s=hsv[1]/100,v=hsv[2]/100,c=s*v,f4=0;return c<1&&(f4=(v-c)/(1-c)),[hsv[0],100*c,100*f4]},convert.hcg.rgb=function(hcg){let h2=hcg[0]/360,c=hcg[1]/100,g3=hcg[2]/100;if(0===c)return[255*g3,255*g3,255*g3];let pure=[0,0,0],hi=h2%1*6,v=hi%1,w2=1-v,mg=0;switch(Math.floor(hi)){case 0:pure[0]=1,pure[1]=v,pure[2]=0;break;case 1:pure[0]=w2,pure[1]=1,pure[2]=0;break;case 2:pure[0]=0,pure[1]=1,pure[2]=v;break;case 3:pure[0]=0,pure[1]=w2,pure[2]=1;break;case 4:pure[0]=v,pure[1]=0,pure[2]=1;break;default:pure[0]=1,pure[1]=0,pure[2]=w2}return mg=(1-c)*g3,[255*(c*pure[0]+mg),255*(c*pure[1]+mg),255*(c*pure[2]+mg)]},convert.hcg.hsv=function(hcg){let c=hcg[1]/100,v=c+hcg[2]/100*(1-c),f4=0;return v>0&&(f4=c/v),[hcg[0],100*f4,100*v]},convert.hcg.hsl=function(hcg){let c=hcg[1]/100,l=hcg[2]/100*(1-c)+.5*c,s=0;return l>0&&l<.5?s=c/(2*l):l>=.5&&l<1&&(s=c/(2*(1-l))),[hcg[0],100*s,100*l]},convert.hcg.hwb=function(hcg){let c=hcg[1]/100,v=c+hcg[2]/100*(1-c);return[hcg[0],100*(v-c),100*(1-v)]},convert.hwb.hcg=function(hwb){let w2=hwb[1]/100,v=1-hwb[2]/100,c=v-w2,g3=0;return c<1&&(g3=(v-c)/(1-c)),[hwb[0],100*c,100*g3]},convert.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255]},convert.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535]},convert.gray.rgb=function(args){return[args[0]/100*255,args[0]/100*255,args[0]/100*255]},convert.gray.hsl=function(args){return[0,0,args[0]]},convert.gray.hsv=convert.gray.hsl,convert.gray.hwb=function(gray){return[0,100,gray[0]]},convert.gray.cmyk=function(gray){return[0,0,0,gray[0]]},convert.gray.lab=function(gray){return[gray[0],0,0]},convert.gray.hex=function(gray){let val=255&Math.round(gray[0]/100*255),string=((val<<16)+(val<<8)+val).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert.rgb.gray=function(rgb){return[(rgb[0]+rgb[1]+rgb[2])/3/255*100]}}}),require_route=__commonJS({"../../node_modules/color-convert/route.js"(exports,module2){var conversions=require_conversions();function deriveBFS(fromModel){let graph=function buildGraph(){let graph={},models=Object.keys(conversions);for(let len=models.length,i=0;i{convert[fromModel]={},Object.defineProperty(convert[fromModel],"channels",{value:conversions[fromModel].channels}),Object.defineProperty(convert[fromModel],"labels",{value:conversions[fromModel].labels});let routes=route(fromModel);Object.keys(routes).forEach((toModel=>{let fn3=routes[toModel];convert[fromModel][toModel]=function wrapRounded(fn3){let wrappedFn=function(...args){let arg0=args[0];if(null==arg0)return arg0;arg0.length>1&&(args=arg0);let result=fn3(args);if("object"==typeof result)for(let len=result.length,i=0;i1&&(args=arg0),fn3(args))};return"conversion"in fn3&&(wrappedFn.conversion=fn3.conversion),wrappedFn}(fn3)}))})),module2.exports=convert}}),require_ansi_styles=__commonJS({"../../node_modules/ansi-styles/index.js"(exports,module2){var colorConvert,wrapAnsi16=(fn3,offset)=>(...args)=>`[${fn3(...args)+offset}m`,wrapAnsi256=(fn3,offset)=>(...args)=>{let code=fn3(...args);return`[${38+offset};5;${code}m`},wrapAnsi16m=(fn3,offset)=>(...args)=>{let rgb=fn3(...args);return`[${38+offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`},ansi2ansi=n=>n,rgb2rgb=(r,g3,b)=>[r,g3,b],setLazyProperty=(object,property,get2)=>{Object.defineProperty(object,property,{get:()=>{let value=get2();return Object.defineProperty(object,property,{value,enumerable:!0,configurable:!0}),value},enumerable:!0,configurable:!0})},makeDynamicStyles=(wrap,targetSpace,identity,isBackground)=>{void 0===colorConvert&&(colorConvert=require_color_convert());let offset=isBackground?10:0,styles3={};for(let[sourceSpace,suite]of Object.entries(colorConvert)){let name="ansi16"===sourceSpace?"ansi":sourceSpace;sourceSpace===targetSpace?styles3[name]=wrap(identity,offset):"object"==typeof suite&&(styles3[name]=wrap(suite[targetSpace],offset))}return styles3};Object.defineProperty(module2,"exports",{enumerable:!0,get:function assembleStyles(){let codes=new Map,styles3={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};styles3.color.gray=styles3.color.blackBright,styles3.bgColor.bgGray=styles3.bgColor.bgBlackBright,styles3.color.grey=styles3.color.blackBright,styles3.bgColor.bgGrey=styles3.bgColor.bgBlackBright;for(let[groupName,group]of Object.entries(styles3)){for(let[styleName,style]of Object.entries(group))styles3[styleName]={open:`[${style[0]}m`,close:`[${style[1]}m`},group[styleName]=styles3[styleName],codes.set(style[0],style[1]);Object.defineProperty(styles3,groupName,{value:group,enumerable:!1})}return Object.defineProperty(styles3,"codes",{value:codes,enumerable:!1}),styles3.color.close="",styles3.bgColor.close="",setLazyProperty(styles3.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,!1))),setLazyProperty(styles3.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,!1))),setLazyProperty(styles3.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,!1))),setLazyProperty(styles3.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,!0))),setLazyProperty(styles3.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,!0))),setLazyProperty(styles3.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,!0))),styles3}})}}),require_browser=__commonJS({"../../node_modules/supports-color/browser.js"(exports,module2){module2.exports={stdout:!1,stderr:!1}}}),require_util2=__commonJS({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/util.js"(exports,module2){module2.exports={stringReplaceAll:(string,substring,replacer)=>{let index=string.indexOf(substring);if(-1===index)return string;let substringLength=substring.length,endIndex=0,returnValue="";do{returnValue+=string.substr(endIndex,index-endIndex)+substring+replacer,endIndex=index+substringLength,index=string.indexOf(substring,endIndex)}while(-1!==index);return returnValue+=string.substr(endIndex),returnValue},stringEncaseCRLFWithFirstIndex:(string,prefix,postfix,index)=>{let endIndex=0,returnValue="";do{let gotCR="\r"===string[index-1];returnValue+=string.substr(endIndex,(gotCR?index-1:index)-endIndex)+prefix+(gotCR?"\r\n":"\n")+postfix,endIndex=index+1,index=string.indexOf("\n",endIndex)}while(-1!==index);return returnValue+=string.substr(endIndex),returnValue}}}}),require_templates=__commonJS({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/templates.js"(exports,module2){var TEMPLATE_REGEX=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,STYLE_REGEX=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,STRING_REGEX=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ESCAPE_REGEX=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,ESCAPES=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(c){let u2="u"===c[0],bracket="{"===c[1];return u2&&!bracket&&5===c.length||"x"===c[0]&&3===c.length?String.fromCharCode(parseInt(c.slice(1),16)):u2&&bracket?String.fromCodePoint(parseInt(c.slice(2,-1),16)):ESCAPES.get(c)||c}function parseArguments(name,arguments_){let matches3,results=[],chunks=arguments_.trim().split(/\s*,\s*/g);for(let chunk of chunks){let number=Number(chunk);if(Number.isNaN(number)){if(!(matches3=chunk.match(STRING_REGEX)))throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);results.push(matches3[2].replace(ESCAPE_REGEX,((m2,escape4,character)=>escape4?unescape(escape4):character)))}else results.push(number)}return results}function parseStyle(style){STYLE_REGEX.lastIndex=0;let matches3,results=[];for(;null!==(matches3=STYLE_REGEX.exec(style));){let name=matches3[1];if(matches3[2]){let args=parseArguments(name,matches3[2]);results.push([name].concat(args))}else results.push([name])}return results}function buildStyle(chalk3,styles3){let enabled={};for(let layer of styles3)for(let style of layer.styles)enabled[style[0]]=layer.inverse?null:style.slice(1);let current=chalk3;for(let[styleName,styles4]of Object.entries(enabled))if(Array.isArray(styles4)){if(!(styleName in current))throw new Error(`Unknown Chalk style: ${styleName}`);current=styles4.length>0?current[styleName](...styles4):current[styleName]}return current}module2.exports=(chalk3,temporary)=>{let styles3=[],chunks=[],chunk=[];if(temporary.replace(TEMPLATE_REGEX,((m2,escapeCharacter,inverse,style,close,character)=>{if(escapeCharacter)chunk.push(unescape(escapeCharacter));else if(style){let string=chunk.join("");chunk=[],chunks.push(0===styles3.length?string:buildStyle(chalk3,styles3)(string)),styles3.push({inverse,styles:parseStyle(style)})}else if(close){if(0===styles3.length)throw new Error("Found extraneous } in Chalk template literal");chunks.push(buildStyle(chalk3,styles3)(chunk.join(""))),chunk=[],styles3.pop()}else chunk.push(character)})),chunks.push(chunk.join("")),styles3.length>0){let errMsg=`Chalk template literal is missing ${styles3.length} closing bracket${1===styles3.length?"":"s"} (\`}\`)`;throw new Error(errMsg)}return chunks.join("")}}}),require_source=__commonJS({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/index.js"(exports,module2){var ansiStyles=require_ansi_styles(),{stdout:stdoutColor,stderr:stderrColor}=require_browser(),{stringReplaceAll,stringEncaseCRLFWithFirstIndex}=require_util2(),levelMapping=["ansi","ansi","ansi256","ansi16m"],styles3=Object.create(null),ChalkClass=class{constructor(options){return chalkFactory(options)}},chalkFactory=options=>{let chalk4={};return((object,options={})=>{if(options.level>3||options.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let colorLevel=stdoutColor?stdoutColor.level:0;object.level=void 0===options.level?colorLevel:options.level})(chalk4,options),chalk4.template=(...arguments_)=>chalkTag(chalk4.template,...arguments_),Object.setPrototypeOf(chalk4,Chalk.prototype),Object.setPrototypeOf(chalk4.template,chalk4),chalk4.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},chalk4.template.Instance=ChalkClass,chalk4.template};function Chalk(options){return chalkFactory(options)}for(let[styleName,style]of Object.entries(ansiStyles))styles3[styleName]={get(){let builder=createBuilder(this,createStyler(style.open,style.close,this._styler),this._isEmpty);return Object.defineProperty(this,styleName,{value:builder}),builder}};styles3.visible={get(){let builder=createBuilder(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:builder}),builder}};var usedModels=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let model of usedModels)styles3[model]={get(){let{level}=this;return function(...arguments_){let styler=createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_),ansiStyles.color.close,this._styler);return createBuilder(this,styler,this._isEmpty)}}};for(let model of usedModels){styles3["bg"+model[0].toUpperCase()+model.slice(1)]={get(){let{level}=this;return function(...arguments_){let styler=createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_),ansiStyles.bgColor.close,this._styler);return createBuilder(this,styler,this._isEmpty)}}}}var template,proto=Object.defineProperties((()=>{}),{...styles3,level:{enumerable:!0,get(){return this._generator.level},set(level){this._generator.level=level}}}),createStyler=(open,close,parent)=>{let openAll,closeAll;return void 0===parent?(openAll=open,closeAll=close):(openAll=parent.openAll+open,closeAll=close+parent.closeAll),{open,close,openAll,closeAll,parent}},createBuilder=(self2,_styler,_isEmpty)=>{let builder=(...arguments_)=>applyStyle(builder,1===arguments_.length?""+arguments_[0]:arguments_.join(" "));return builder.__proto__=proto,builder._generator=self2,builder._styler=_styler,builder._isEmpty=_isEmpty,builder},applyStyle=(self2,string)=>{if(self2.level<=0||!string)return self2._isEmpty?"":string;let styler=self2._styler;if(void 0===styler)return string;let{openAll,closeAll}=styler;if(-1!==string.indexOf(""))for(;void 0!==styler;)string=stringReplaceAll(string,styler.close,styler.open),styler=styler.parent;let lfIndex=string.indexOf("\n");return-1!==lfIndex&&(string=stringEncaseCRLFWithFirstIndex(string,closeAll,openAll,lfIndex)),openAll+string+closeAll},chalkTag=(chalk4,...strings)=>{let[firstString]=strings;if(!Array.isArray(firstString))return strings.join(" ");let arguments_=strings.slice(1),parts=[firstString.raw[0]];for(let i=1;i-1}}}),require_listCacheSet=__commonJS({"../../node_modules/lodash/_listCacheSet.js"(exports,module2){var assocIndexOf=require_assocIndexOf();module2.exports=function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this}}}),require_ListCache=__commonJS({"../../node_modules/lodash/_ListCache.js"(exports,module2){var listCacheClear=require_listCacheClear(),listCacheDelete=require_listCacheDelete(),listCacheGet=require_listCacheGet(),listCacheHas=require_listCacheHas(),listCacheSet=require_listCacheSet();function ListCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++indexarrLength))return!1;var arrStacked=stack.get(array),othStacked=stack.get(other);if(arrStacked&&othStacked)return arrStacked==other&&othStacked==array;var index=-1,result=!0,seen=2&bitmask?new SetCache:void 0;for(stack.set(array,other),stack.set(other,array);++index-1&&value%1==0&&value-1&&value%1==0&&value<=9007199254740991}}}),require_baseIsTypedArray=__commonJS({"../../node_modules/lodash/_baseIsTypedArray.js"(exports,module2){var baseGetTag=require_baseGetTag(),isLength=require_isLength(),isObjectLike=require_isObjectLike(),typedArrayTags={};typedArrayTags["[object Float32Array]"]=typedArrayTags["[object Float64Array]"]=typedArrayTags["[object Int8Array]"]=typedArrayTags["[object Int16Array]"]=typedArrayTags["[object Int32Array]"]=typedArrayTags["[object Uint8Array]"]=typedArrayTags["[object Uint8ClampedArray]"]=typedArrayTags["[object Uint16Array]"]=typedArrayTags["[object Uint32Array]"]=!0,typedArrayTags["[object Arguments]"]=typedArrayTags["[object Array]"]=typedArrayTags["[object ArrayBuffer]"]=typedArrayTags["[object Boolean]"]=typedArrayTags["[object DataView]"]=typedArrayTags["[object Date]"]=typedArrayTags["[object Error]"]=typedArrayTags["[object Function]"]=typedArrayTags["[object Map]"]=typedArrayTags["[object Number]"]=typedArrayTags["[object Object]"]=typedArrayTags["[object RegExp]"]=typedArrayTags["[object Set]"]=typedArrayTags["[object String]"]=typedArrayTags["[object WeakMap]"]=!1,module2.exports=function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)]}}}),require_baseUnary=__commonJS({"../../node_modules/lodash/_baseUnary.js"(exports,module2){module2.exports=function baseUnary(func){return function(value){return func(value)}}}}),require_nodeUtil=__commonJS({"../../node_modules/lodash/_nodeUtil.js"(exports,module2){var freeGlobal=require_freeGlobal(),freeExports="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&"object"==typeof module2&&module2&&!module2.nodeType&&module2,freeProcess=freeModule&&freeModule.exports===freeExports&&freeGlobal.process,nodeUtil=function(){try{return freeModule&&freeModule.require&&freeModule.require("util").types||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}();module2.exports=nodeUtil}}),require_isTypedArray=__commonJS({"../../node_modules/lodash/isTypedArray.js"(exports,module2){var baseIsTypedArray=require_baseIsTypedArray(),baseUnary=require_baseUnary(),nodeUtil=require_nodeUtil(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;module2.exports=isTypedArray}}),require_arrayLikeKeys=__commonJS({"../../node_modules/lodash/_arrayLikeKeys.js"(exports,module2){var baseTimes=require_baseTimes(),isArguments=require_isArguments(),isArray=require_isArray(),isBuffer=require_isBuffer(),isIndex=require_isIndex(),isTypedArray=require_isTypedArray(),hasOwnProperty=Object.prototype.hasOwnProperty;module2.exports=function arrayLikeKeys(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value)(inherited||hasOwnProperty.call(value,key))&&(!skipIndexes||!("length"==key||isBuff&&("offset"==key||"parent"==key)||isType&&("buffer"==key||"byteLength"==key||"byteOffset"==key)||isIndex(key,length)))&&result.push(key);return result}}}),require_isPrototype=__commonJS({"../../node_modules/lodash/_isPrototype.js"(exports,module2){var objectProto=Object.prototype;module2.exports=function isPrototype(value){var Ctor=value&&value.constructor;return value===("function"==typeof Ctor&&Ctor.prototype||objectProto)}}}),require_overArg=__commonJS({"../../node_modules/lodash/_overArg.js"(exports,module2){module2.exports=function overArg(func,transform){return function(arg){return func(transform(arg))}}}}),require_nativeKeys=__commonJS({"../../node_modules/lodash/_nativeKeys.js"(exports,module2){var nativeKeys=require_overArg()(Object.keys,Object);module2.exports=nativeKeys}}),require_baseKeys=__commonJS({"../../node_modules/lodash/_baseKeys.js"(exports,module2){var isPrototype=require_isPrototype(),nativeKeys=require_nativeKeys(),hasOwnProperty=Object.prototype.hasOwnProperty;module2.exports=function baseKeys(object){if(!isPrototype(object))return nativeKeys(object);var result=[];for(var key in Object(object))hasOwnProperty.call(object,key)&&"constructor"!=key&&result.push(key);return result}}}),require_isArrayLike=__commonJS({"../../node_modules/lodash/isArrayLike.js"(exports,module2){var isFunction=require_isFunction(),isLength=require_isLength();module2.exports=function isArrayLike(value){return null!=value&&isLength(value.length)&&!isFunction(value)}}}),require_keys=__commonJS({"../../node_modules/lodash/keys.js"(exports,module2){var arrayLikeKeys=require_arrayLikeKeys(),baseKeys=require_baseKeys(),isArrayLike=require_isArrayLike();module2.exports=function keys2(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}}}),require_getAllKeys=__commonJS({"../../node_modules/lodash/_getAllKeys.js"(exports,module2){var baseGetAllKeys=require_baseGetAllKeys(),getSymbols=require_getSymbols(),keys2=require_keys();module2.exports=function getAllKeys(object){return baseGetAllKeys(object,keys2,getSymbols)}}}),require_equalObjects=__commonJS({"../../node_modules/lodash/_equalObjects.js"(exports,module2){var getAllKeys=require_getAllKeys(),hasOwnProperty=Object.prototype.hasOwnProperty;module2.exports=function equalObjects(object,other,bitmask,customizer,equalFunc,stack){var isPartial=1&bitmask,objProps=getAllKeys(object),objLength=objProps.length;if(objLength!=getAllKeys(other).length&&!isPartial)return!1;for(var index=objLength;index--;){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty.call(other,key)))return!1}var objStacked=stack.get(object),othStacked=stack.get(other);if(objStacked&&othStacked)return objStacked==other&&othStacked==object;var result=!0;stack.set(object,other),stack.set(other,object);for(var skipCtor=isPartial;++index=1&&codeUnit<=31||127==codeUnit||0==index&&codeUnit>=48&&codeUnit<=57||1==index&&codeUnit>=48&&codeUnit<=57&&45==firstCodeUnit?"\\"+codeUnit.toString(16)+" ":0==index&&1==length&&45==codeUnit||!(codeUnit>=128||45==codeUnit||95==codeUnit||codeUnit>=48&&codeUnit<=57||codeUnit>=65&&codeUnit<=90||codeUnit>=97&&codeUnit<=122)?"\\"+string.charAt(index):string.charAt(index):result+="�";return result};return root.CSS||(root.CSS={}),root.CSS.escape=cssEscape,cssEscape},"object"==typeof exports?module2.exports=factory(root):"function"==typeof define&&__webpack_require__.amdO?define([],factory.bind(root,root)):factory(root)}}),require_ansi_styles2=__commonJS({"../../node_modules/pretty-format/node_modules/ansi-styles/index.js"(exports,module2){var wrapAnsi256=(offset=0)=>code=>`[${38+offset};5;${code}m`,wrapAnsi16m=(offset=0)=>(red,green,blue)=>`[${38+offset};2;${red};${green};${blue}m`;Object.defineProperty(module2,"exports",{enumerable:!0,get:function assembleStyles(){let codes=new Map,styles3={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};styles3.color.gray=styles3.color.blackBright,styles3.bgColor.bgGray=styles3.bgColor.bgBlackBright,styles3.color.grey=styles3.color.blackBright,styles3.bgColor.bgGrey=styles3.bgColor.bgBlackBright;for(let[groupName,group]of Object.entries(styles3)){for(let[styleName,style]of Object.entries(group))styles3[styleName]={open:`[${style[0]}m`,close:`[${style[1]}m`},group[styleName]=styles3[styleName],codes.set(style[0],style[1]);Object.defineProperty(styles3,groupName,{value:group,enumerable:!1})}return Object.defineProperty(styles3,"codes",{value:codes,enumerable:!1}),styles3.color.close="",styles3.bgColor.close="",styles3.color.ansi256=wrapAnsi256(),styles3.color.ansi16m=wrapAnsi16m(),styles3.bgColor.ansi256=wrapAnsi256(10),styles3.bgColor.ansi16m=wrapAnsi16m(10),Object.defineProperties(styles3,{rgbToAnsi256:{value:(red,green,blue)=>red===green&&green===blue?red<8?16:red>248?231:Math.round((red-8)/247*24)+232:16+36*Math.round(red/255*5)+6*Math.round(green/255*5)+Math.round(blue/255*5),enumerable:!1},hexToRgb:{value:hex3=>{let matches3=/(?[a-f\d]{6}|[a-f\d]{3})/i.exec(hex3.toString(16));if(!matches3)return[0,0,0];let{colorString}=matches3.groups;3===colorString.length&&(colorString=colorString.split("").map((character=>character+character)).join(""));let integer=Number.parseInt(colorString,16);return[integer>>16&255,integer>>8&255,255&integer]},enumerable:!1},hexToAnsi256:{value:hex3=>styles3.rgbToAnsi256(...styles3.hexToRgb(hex3)),enumerable:!1}}),styles3}})}}),require_collections=__commonJS({"../../node_modules/pretty-format/build/collections.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.printIteratorEntries=function printIteratorEntries2(iterator,config3,indentation,depth,refs,printer2,separator=": "){let result="",current=iterator.next();if(!current.done){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(;!current.done;){result+=indentationNext+printer2(current.value[0],config3,indentationNext,depth,refs)+separator+printer2(current.value[1],config3,indentationNext,depth,refs),current=iterator.next(),current.done?config3.min||(result+=","):result+=","+config3.spacingInner}result+=config3.spacingOuter+indentation}return result},exports.printIteratorValues=function printIteratorValues2(iterator,config3,indentation,depth,refs,printer2){let result="",current=iterator.next();if(!current.done){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(;!current.done;)result+=indentationNext+printer2(current.value,config3,indentationNext,depth,refs),current=iterator.next(),current.done?config3.min||(result+=","):result+=","+config3.spacingInner;result+=config3.spacingOuter+indentation}return result},exports.printListItems=function printListItems2(list,config3,indentation,depth,refs,printer2){let result="";if(list.length){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(let i=0;i{let keys2=Object.keys(object).sort(compareKeys);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(object).forEach((symbol=>{Object.getOwnPropertyDescriptor(object,symbol).enumerable&&keys2.push(symbol)})),keys2})(val,config3.compareKeys);if(keys2.length){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(let i=0;i{let stringedValue=val.toString();return"ArrayContaining"===stringedValue||"ArrayNotContaining"===stringedValue?++depth>config3.maxDepth?"["+stringedValue+"]":stringedValue+" ["+(0,_collections.printListItems)(val.sample,config3,indentation,depth,refs,printer2)+"]":"ObjectContaining"===stringedValue||"ObjectNotContaining"===stringedValue?++depth>config3.maxDepth?"["+stringedValue+"]":stringedValue+" {"+(0,_collections.printObjectProperties)(val.sample,config3,indentation,depth,refs,printer2)+"}":"StringMatching"===stringedValue||"StringNotMatching"===stringedValue||"StringContaining"===stringedValue||"StringNotContaining"===stringedValue?stringedValue+" "+printer2(val.sample,config3,indentation,depth,refs):val.toAsymmetricMatcher()};exports.serialize=serialize2;var test3=val=>val&&val.$$typeof===asymmetricMatcher2;exports.test=test3;var _default2={serialize:serialize2,test:test3};exports.default=_default2}}),require_ansi_regex=__commonJS({"../../node_modules/pretty-format/node_modules/ansi-regex/index.js"(exports,module2){module2.exports=({onlyFirst=!1}={})=>{let pattern=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(pattern,onlyFirst?void 0:"g")}}}),require_ConvertAnsi=__commonJS({"../../node_modules/pretty-format/build/plugins/ConvertAnsi.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.test=exports.serialize=exports.default=void 0;var _ansiRegex=_interopRequireDefault(require_ansi_regex()),_ansiStyles=_interopRequireDefault(require_ansi_styles2());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var test3=val=>"string"==typeof val&&!!val.match((0,_ansiRegex.default)());exports.test=test3;var serialize2=(val,config3,indentation,depth,refs,printer2)=>printer2(val.replace((0,_ansiRegex.default)(),(match=>{switch(match){case _ansiStyles.default.red.close:case _ansiStyles.default.green.close:case _ansiStyles.default.cyan.close:case _ansiStyles.default.gray.close:case _ansiStyles.default.white.close:case _ansiStyles.default.yellow.close:case _ansiStyles.default.bgRed.close:case _ansiStyles.default.bgGreen.close:case _ansiStyles.default.bgYellow.close:case _ansiStyles.default.inverse.close:case _ansiStyles.default.dim.close:case _ansiStyles.default.bold.close:case _ansiStyles.default.reset.open:case _ansiStyles.default.reset.close:return"";case _ansiStyles.default.red.open:return"";case _ansiStyles.default.green.open:return"";case _ansiStyles.default.cyan.open:return"";case _ansiStyles.default.gray.open:return"";case _ansiStyles.default.white.open:return"";case _ansiStyles.default.yellow.open:return"";case _ansiStyles.default.bgRed.open:return"";case _ansiStyles.default.bgGreen.open:return"";case _ansiStyles.default.bgYellow.open:return"";case _ansiStyles.default.inverse.open:return"";case _ansiStyles.default.dim.open:return"";case _ansiStyles.default.bold.open:return"";default:return""}})),config3,indentation,depth,refs);exports.serialize=serialize2;var _default2={serialize:serialize2,test:test3};exports.default=_default2}}),require_DOMCollection=__commonJS({"../../node_modules/pretty-format/build/plugins/DOMCollection.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.test=exports.serialize=exports.default=void 0;var _collections=require_collections(),OBJECT_NAMES2=["DOMStringMap","NamedNodeMap"],ARRAY_REGEXP2=/^(HTML\w*Collection|NodeList)$/,test3=val=>{return val&&val.constructor&&!!val.constructor.name&&(name=val.constructor.name,-1!==OBJECT_NAMES2.indexOf(name)||ARRAY_REGEXP2.test(name));var name};exports.test=test3;var serialize2=(collection,config3,indentation,depth,refs,printer2)=>{let name=collection.constructor.name;return++depth>config3.maxDepth?"["+name+"]":(config3.min?"":name+" ")+(-1!==OBJECT_NAMES2.indexOf(name)?"{"+(0,_collections.printObjectProperties)((collection=>"NamedNodeMap"===collection.constructor.name)(collection)?Array.from(collection).reduce(((props,attribute)=>(props[attribute.name]=attribute.value,props)),{}):{...collection},config3,indentation,depth,refs,printer2)+"}":"["+(0,_collections.printListItems)(Array.from(collection),config3,indentation,depth,refs,printer2)+"]")};exports.serialize=serialize2;var _default2={serialize:serialize2,test:test3};exports.default=_default2}}),require_escapeHTML=__commonJS({"../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function escapeHTML3(str){return str.replace(//g,">")}}}),require_markup=__commonJS({"../../node_modules/pretty-format/build/plugins/lib/markup.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.printText=exports.printProps=exports.printElementAsLeaf=exports.printElement=exports.printComment=exports.printChildren=void 0;var _escapeHTML=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(require_escapeHTML());exports.printProps=(keys2,props,config3,indentation,depth,refs,printer2)=>{let indentationNext=indentation+config3.indent,colors=config3.colors;return keys2.map((key=>{let value=props[key],printed=printer2(value,config3,indentationNext,depth,refs);return"string"!=typeof value&&(-1!==printed.indexOf("\n")&&(printed=config3.spacingOuter+indentationNext+printed+config3.spacingOuter+indentation),printed="{"+printed+"}"),config3.spacingInner+indentation+colors.prop.open+key+colors.prop.close+"="+colors.value.open+printed+colors.value.close})).join("")};exports.printChildren=(children,config3,indentation,depth,refs,printer2)=>children.map((child=>config3.spacingOuter+indentation+("string"==typeof child?printText3(child,config3):printer2(child,config3,indentation,depth,refs)))).join("");var printText3=(text,config3)=>{let contentColor=config3.colors.content;return contentColor.open+(0,_escapeHTML.default)(text)+contentColor.close};exports.printText=printText3;exports.printComment=(comment,config3)=>{let commentColor=config3.colors.comment;return commentColor.open+"\x3c!--"+(0,_escapeHTML.default)(comment)+"--\x3e"+commentColor.close};exports.printElement=(type5,printedProps,printedChildren,config3,indentation)=>{let tagColor=config3.colors.tag;return tagColor.open+"<"+type5+(printedProps&&tagColor.close+printedProps+config3.spacingOuter+indentation+tagColor.open)+(printedChildren?">"+tagColor.close+printedChildren+config3.spacingOuter+indentation+tagColor.open+""+tagColor.close};exports.printElementAsLeaf=(type5,config3)=>{let tagColor=config3.colors.tag;return tagColor.open+"<"+type5+tagColor.close+" …"+tagColor.open+" />"+tagColor.close}}}),require_DOMElement=__commonJS({"../../node_modules/pretty-format/build/plugins/DOMElement.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.test=exports.serialize=exports.default=void 0;var _markup=require_markup(),ELEMENT_REGEXP3=/^((HTML|SVG)\w*)?Element$/,test3=val=>{var _val$constructor;return(null==val||null===(_val$constructor=val.constructor)||void 0===_val$constructor?void 0:_val$constructor.name)&&(val=>{let constructorName=val.constructor.name,{nodeType,tagName}=val,isCustomElement3="string"==typeof tagName&&tagName.includes("-")||(val=>{try{return"function"==typeof val.hasAttribute&&val.hasAttribute("is")}catch{return!1}})(val);return 1===nodeType&&(ELEMENT_REGEXP3.test(constructorName)||isCustomElement3)||3===nodeType&&"Text"===constructorName||8===nodeType&&"Comment"===constructorName||11===nodeType&&"DocumentFragment"===constructorName})(val)};function nodeIsFragment3(node){return 11===node.nodeType}exports.test=test3;var serialize2=(node,config3,indentation,depth,refs,printer2)=>{if(function nodeIsText3(node){return 3===node.nodeType}(node))return(0,_markup.printText)(node.data,config3);if(function nodeIsComment3(node){return 8===node.nodeType}(node))return(0,_markup.printComment)(node.data,config3);let type5=nodeIsFragment3(node)?"DocumentFragment":node.tagName.toLowerCase();return++depth>config3.maxDepth?(0,_markup.printElementAsLeaf)(type5,config3):(0,_markup.printElement)(type5,(0,_markup.printProps)(nodeIsFragment3(node)?[]:Array.from(node.attributes).map((attr=>attr.name)).sort(),nodeIsFragment3(node)?{}:Array.from(node.attributes).reduce(((props,attribute)=>(props[attribute.name]=attribute.value,props)),{}),config3,indentation+config3.indent,depth,refs,printer2),(0,_markup.printChildren)(Array.prototype.slice.call(node.childNodes||node.children),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation)};exports.serialize=serialize2;var _default2={serialize:serialize2,test:test3};exports.default=_default2}}),require_Immutable=__commonJS({"../../node_modules/pretty-format/build/plugins/Immutable.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.test=exports.serialize=exports.default=void 0;var _collections=require_collections(),getImmutableName2=name=>"Immutable."+name,printAsLeaf2=name=>"["+name+"]";var printImmutableValues2=(val,config3,indentation,depth,refs,printer2,type5)=>++depth>config3.maxDepth?printAsLeaf2(getImmutableName2(type5)):getImmutableName2(type5)+" ["+(0,_collections.printIteratorValues)(val.values(),config3,indentation,depth,refs,printer2)+"]",serialize2=(val,config3,indentation,depth,refs,printer2)=>val["@@__IMMUTABLE_MAP__@@"]?((val,config3,indentation,depth,refs,printer2,type5)=>++depth>config3.maxDepth?printAsLeaf2(getImmutableName2(type5)):getImmutableName2(type5)+" {"+(0,_collections.printIteratorEntries)(val.entries(),config3,indentation,depth,refs,printer2)+"}")(val,config3,indentation,depth,refs,printer2,val["@@__IMMUTABLE_ORDERED__@@"]?"OrderedMap":"Map"):val["@@__IMMUTABLE_LIST__@@"]?printImmutableValues2(val,config3,indentation,depth,refs,printer2,"List"):val["@@__IMMUTABLE_SET__@@"]?printImmutableValues2(val,config3,indentation,depth,refs,printer2,val["@@__IMMUTABLE_ORDERED__@@"]?"OrderedSet":"Set"):val["@@__IMMUTABLE_STACK__@@"]?printImmutableValues2(val,config3,indentation,depth,refs,printer2,"Stack"):val["@@__IMMUTABLE_SEQ__@@"]?((val,config3,indentation,depth,refs,printer2)=>{let name=getImmutableName2("Seq");return++depth>config3.maxDepth?printAsLeaf2(name):val["@@__IMMUTABLE_KEYED__@@"]?name+" {"+(val._iter||val._object?(0,_collections.printIteratorEntries)(val.entries(),config3,indentation,depth,refs,printer2):"…")+"}":name+" ["+(val._iter||val._array||val._collection||val._iterable?(0,_collections.printIteratorValues)(val.values(),config3,indentation,depth,refs,printer2):"…")+"]"})(val,config3,indentation,depth,refs,printer2):((val,config3,indentation,depth,refs,printer2)=>{let name=getImmutableName2(val._name||"Record");return++depth>config3.maxDepth?printAsLeaf2(name):name+" {"+(0,_collections.printIteratorEntries)(function getRecordEntries2(val){let i=0;return{next(){if(ival&&(!0===val["@@__IMMUTABLE_ITERABLE__@@"]||!0===val["@@__IMMUTABLE_RECORD__@@"]);exports.test=test3;var _default2={serialize:serialize2,test:test3};exports.default=_default2}}),require_react_is_development=__commonJS({"../../node_modules/pretty-format/node_modules/react-is/cjs/react-is.development.js"(exports){!function(){var REACT_ELEMENT_TYPE=60103,REACT_PORTAL_TYPE=60106,REACT_FRAGMENT_TYPE=60107,REACT_STRICT_MODE_TYPE=60108,REACT_PROFILER_TYPE=60114,REACT_PROVIDER_TYPE=60109,REACT_CONTEXT_TYPE=60110,REACT_FORWARD_REF_TYPE=60112,REACT_SUSPENSE_TYPE=60113,REACT_SUSPENSE_LIST_TYPE=60120,REACT_MEMO_TYPE=60115,REACT_LAZY_TYPE=60116,REACT_BLOCK_TYPE=60121,REACT_SERVER_BLOCK_TYPE=60122,REACT_FUNDAMENTAL_TYPE=60117,REACT_DEBUG_TRACING_MODE_TYPE=60129,REACT_LEGACY_HIDDEN_TYPE=60131;if("function"==typeof Symbol&&Symbol.for){var symbolFor=Symbol.for;REACT_ELEMENT_TYPE=symbolFor("react.element"),REACT_PORTAL_TYPE=symbolFor("react.portal"),REACT_FRAGMENT_TYPE=symbolFor("react.fragment"),REACT_STRICT_MODE_TYPE=symbolFor("react.strict_mode"),REACT_PROFILER_TYPE=symbolFor("react.profiler"),REACT_PROVIDER_TYPE=symbolFor("react.provider"),REACT_CONTEXT_TYPE=symbolFor("react.context"),REACT_FORWARD_REF_TYPE=symbolFor("react.forward_ref"),REACT_SUSPENSE_TYPE=symbolFor("react.suspense"),REACT_SUSPENSE_LIST_TYPE=symbolFor("react.suspense_list"),REACT_MEMO_TYPE=symbolFor("react.memo"),REACT_LAZY_TYPE=symbolFor("react.lazy"),REACT_BLOCK_TYPE=symbolFor("react.block"),REACT_SERVER_BLOCK_TYPE=symbolFor("react.server.block"),REACT_FUNDAMENTAL_TYPE=symbolFor("react.fundamental"),symbolFor("react.scope"),symbolFor("react.opaque.id"),REACT_DEBUG_TRACING_MODE_TYPE=symbolFor("react.debug_trace_mode"),symbolFor("react.offscreen"),REACT_LEGACY_HIDDEN_TYPE=symbolFor("react.legacy_hidden")}function typeOf(object){if("object"==typeof object&&null!==object){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type5=object.type;switch(type5){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return type5;default:var $$typeofType=type5&&type5.$$typeof;switch($$typeofType){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}var ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element2=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1,hasWarnedAboutDeprecatedIsConcurrentMode=!1;exports.ContextConsumer=ContextConsumer,exports.ContextProvider=ContextProvider,exports.Element=Element2,exports.ForwardRef=ForwardRef,exports.Fragment=Fragment,exports.Lazy=Lazy,exports.Memo=Memo,exports.Portal=Portal,exports.Profiler=Profiler,exports.StrictMode=StrictMode,exports.Suspense=Suspense,exports.isAsyncMode=function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},exports.isConcurrentMode=function isConcurrentMode(object){return hasWarnedAboutDeprecatedIsConcurrentMode||(hasWarnedAboutDeprecatedIsConcurrentMode=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},exports.isContextConsumer=function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE},exports.isContextProvider=function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE},exports.isElement=function isElement5(object){return"object"==typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE},exports.isForwardRef=function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE},exports.isFragment=function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE},exports.isLazy=function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE},exports.isMemo=function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE},exports.isPortal=function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE},exports.isProfiler=function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE},exports.isStrictMode=function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE},exports.isSuspense=function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE},exports.isValidElementType=function isValidElementType(type5){return!("string"!=typeof type5&&"function"!=typeof type5&&type5!==REACT_FRAGMENT_TYPE&&type5!==REACT_PROFILER_TYPE&&type5!==REACT_DEBUG_TRACING_MODE_TYPE&&type5!==REACT_STRICT_MODE_TYPE&&type5!==REACT_SUSPENSE_TYPE&&type5!==REACT_SUSPENSE_LIST_TYPE&&type5!==REACT_LEGACY_HIDDEN_TYPE&&("object"!=typeof type5||null===type5||type5.$$typeof!==REACT_LAZY_TYPE&&type5.$$typeof!==REACT_MEMO_TYPE&&type5.$$typeof!==REACT_PROVIDER_TYPE&&type5.$$typeof!==REACT_CONTEXT_TYPE&&type5.$$typeof!==REACT_FORWARD_REF_TYPE&&type5.$$typeof!==REACT_FUNDAMENTAL_TYPE&&type5.$$typeof!==REACT_BLOCK_TYPE&&type5[0]!==REACT_SERVER_BLOCK_TYPE))},exports.typeOf=typeOf}()}}),require_react_is=__commonJS({"../../node_modules/pretty-format/node_modules/react-is/index.js"(exports,module2){module2.exports=require_react_is_development()}}),require_ReactElement=__commonJS({"../../node_modules/pretty-format/build/plugins/ReactElement.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.test=exports.serialize=exports.default=void 0;var ReactIs=function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!=typeof obj&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}return newObj.default=obj,cache&&cache.set(obj,newObj),newObj}(require_react_is()),_markup=require_markup();function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop2){return nodeInterop2?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}var getChildren2=(arg,children=[])=>(Array.isArray(arg)?arg.forEach((item=>{getChildren2(item,children)})):null!=arg&&!1!==arg&&children.push(arg),children),getType4=element=>{let type5=element.type;if("string"==typeof type5)return type5;if("function"==typeof type5)return type5.displayName||type5.name||"Unknown";if(ReactIs.isFragment(element))return"React.Fragment";if(ReactIs.isSuspense(element))return"React.Suspense";if("object"==typeof type5&&null!==type5){if(ReactIs.isContextProvider(element))return"Context.Provider";if(ReactIs.isContextConsumer(element))return"Context.Consumer";if(ReactIs.isForwardRef(element)){if(type5.displayName)return type5.displayName;let functionName=type5.render.displayName||type5.render.name||"";return""!==functionName?"ForwardRef("+functionName+")":"ForwardRef"}if(ReactIs.isMemo(element)){let functionName=type5.displayName||type5.type.displayName||type5.type.name||"";return""!==functionName?"Memo("+functionName+")":"Memo"}}return"UNDEFINED"},serialize2=(element,config3,indentation,depth,refs,printer2)=>++depth>config3.maxDepth?(0,_markup.printElementAsLeaf)(getType4(element),config3):(0,_markup.printElement)(getType4(element),(0,_markup.printProps)((element=>{let{props}=element;return Object.keys(props).filter((key=>"children"!==key&&void 0!==props[key])).sort()})(element),element.props,config3,indentation+config3.indent,depth,refs,printer2),(0,_markup.printChildren)(getChildren2(element.props.children),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation);exports.serialize=serialize2;var test3=val=>null!=val&&ReactIs.isElement(val);exports.test=test3;var _default2={serialize:serialize2,test:test3};exports.default=_default2}}),require_ReactTestComponent=__commonJS({"../../node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.test=exports.serialize=exports.default=void 0;var _markup=require_markup(),global3=typeof globalThis<"u"?globalThis:typeof global3<"u"?global3:typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Symbol2=global3["jest-symbol-do-not-touch"]||global3.Symbol,testSymbol2="function"==typeof Symbol2&&Symbol2.for?Symbol2.for("react.test.json"):245830487,serialize2=(object,config3,indentation,depth,refs,printer2)=>++depth>config3.maxDepth?(0,_markup.printElementAsLeaf)(object.type,config3):(0,_markup.printElement)(object.type,object.props?(0,_markup.printProps)((object=>{let{props}=object;return props?Object.keys(props).filter((key=>void 0!==props[key])).sort():[]})(object),object.props,config3,indentation+config3.indent,depth,refs,printer2):"",object.children?(0,_markup.printChildren)(object.children,config3,indentation+config3.indent,depth,refs,printer2):"",config3,indentation);exports.serialize=serialize2;var test3=val=>val&&val.$$typeof===testSymbol2;exports.test=test3;var _default2={serialize:serialize2,test:test3};exports.default=_default2}}),require_build=__commonJS({"../../node_modules/pretty-format/build/index.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.DEFAULT_OPTIONS=void 0,exports.format=format4,exports.plugins=void 0;var _ansiStyles=_interopRequireDefault(require_ansi_styles2()),_collections=require_collections(),_AsymmetricMatcher=_interopRequireDefault(require_AsymmetricMatcher()),_ConvertAnsi=_interopRequireDefault(require_ConvertAnsi()),_DOMCollection=_interopRequireDefault(require_DOMCollection()),_DOMElement=_interopRequireDefault(require_DOMElement()),_Immutable=_interopRequireDefault(require_Immutable()),_ReactElement=_interopRequireDefault(require_ReactElement()),_ReactTestComponent=_interopRequireDefault(require_ReactTestComponent());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var toString4=Object.prototype.toString,toISOString2=Date.prototype.toISOString,errorToString2=Error.prototype.toString,regExpToString2=RegExp.prototype.toString,getConstructorName3=val=>"function"==typeof val.constructor&&val.constructor.name||"Object",SYMBOL_REGEXP2=/^Symbol\((.*)\)(.*)$/,NEWLINE_REGEXP2=/\n/gi,PrettyFormatPluginError2=class extends Error{constructor(message,stack){super(message),this.stack=stack,this.name=this.constructor.name}};function printFunction2(val,printFunctionName){return printFunctionName?"[Function "+(val.name||"anonymous")+"]":"[Function]"}function printSymbol2(val){return String(val).replace(SYMBOL_REGEXP2,"Symbol($1)")}function printError2(val){return"["+errorToString2.call(val)+"]"}function printBasicValue2(val,printFunctionName,escapeRegex,escapeString){if(!0===val||!1===val)return""+val;if(void 0===val)return"undefined";if(null===val)return"null";let typeOf=typeof val;if("number"===typeOf)return function printNumber2(val){return Object.is(val,-0)?"-0":String(val)}(val);if("bigint"===typeOf)return function printBigInt2(val){return`${val}n`}(val);if("string"===typeOf)return escapeString?'"'+val.replace(/"|\\/g,"\\$&")+'"':'"'+val+'"';if("function"===typeOf)return printFunction2(val,printFunctionName);if("symbol"===typeOf)return printSymbol2(val);let toStringed=toString4.call(val);return"[object WeakMap]"===toStringed?"WeakMap {}":"[object WeakSet]"===toStringed?"WeakSet {}":"[object Function]"===toStringed||"[object GeneratorFunction]"===toStringed?printFunction2(val,printFunctionName):"[object Symbol]"===toStringed?printSymbol2(val):"[object Date]"===toStringed?isNaN(+val)?"Date { NaN }":toISOString2.call(val):"[object Error]"===toStringed?printError2(val):"[object RegExp]"===toStringed?escapeRegex?regExpToString2.call(val).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):regExpToString2.call(val):val instanceof Error?printError2(val):null}function printComplexValue2(val,config3,indentation,depth,refs,hasCalledToJSON){if(-1!==refs.indexOf(val))return"[Circular]";(refs=refs.slice()).push(val);let hitMaxDepth=++depth>config3.maxDepth,min=config3.min;if(config3.callToJSON&&!hitMaxDepth&&val.toJSON&&"function"==typeof val.toJSON&&!hasCalledToJSON)return printer2(val.toJSON(),config3,indentation,depth,refs,!0);let toStringed=toString4.call(val);return"[object Arguments]"===toStringed?hitMaxDepth?"[Arguments]":(min?"":"Arguments ")+"["+(0,_collections.printListItems)(val,config3,indentation,depth,refs,printer2)+"]":function isToStringedArrayType2(toStringed){return"[object Array]"===toStringed||"[object ArrayBuffer]"===toStringed||"[object DataView]"===toStringed||"[object Float32Array]"===toStringed||"[object Float64Array]"===toStringed||"[object Int8Array]"===toStringed||"[object Int16Array]"===toStringed||"[object Int32Array]"===toStringed||"[object Uint8Array]"===toStringed||"[object Uint8ClampedArray]"===toStringed||"[object Uint16Array]"===toStringed||"[object Uint32Array]"===toStringed}(toStringed)?hitMaxDepth?"["+val.constructor.name+"]":(min||!config3.printBasicPrototype&&"Array"===val.constructor.name?"":val.constructor.name+" ")+"["+(0,_collections.printListItems)(val,config3,indentation,depth,refs,printer2)+"]":"[object Map]"===toStringed?hitMaxDepth?"[Map]":"Map {"+(0,_collections.printIteratorEntries)(val.entries(),config3,indentation,depth,refs,printer2," => ")+"}":"[object Set]"===toStringed?hitMaxDepth?"[Set]":"Set {"+(0,_collections.printIteratorValues)(val.values(),config3,indentation,depth,refs,printer2)+"}":hitMaxDepth||(val=>typeof window<"u"&&val===window)(val)?"["+getConstructorName3(val)+"]":(min||!config3.printBasicPrototype&&"Object"===getConstructorName3(val)?"":getConstructorName3(val)+" ")+"{"+(0,_collections.printObjectProperties)(val,config3,indentation,depth,refs,printer2)+"}"}function printPlugin2(plugin2,val,config3,indentation,depth,refs){let printed;try{printed=function isNewPlugin2(plugin2){return null!=plugin2.serialize}(plugin2)?plugin2.serialize(val,config3,indentation,depth,refs,printer2):plugin2.print(val,(valChild=>printer2(valChild,config3,indentation,depth,refs)),(str=>{let indentationNext=indentation+config3.indent;return indentationNext+str.replace(NEWLINE_REGEXP2,"\n"+indentationNext)}),{edgeSpacing:config3.spacingOuter,min:config3.min,spacing:config3.spacingInner},config3.colors)}catch(error){throw new PrettyFormatPluginError2(error.message,error.stack)}if("string"!=typeof printed)throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);return printed}function findPlugin2(plugins4,val){for(let p3=0;p3DEFAULT_THEME_KEYS2.reduce(((colors,key)=>{let value=options.theme&&void 0!==options.theme[key]?options.theme[key]:DEFAULT_THEME2[key],color=value&&_ansiStyles.default[value];if(!color||"string"!=typeof color.close||"string"!=typeof color.open)throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);return colors[key]=color,colors}),Object.create(null)),getPrintFunctionName2=options=>options&&void 0!==options.printFunctionName?options.printFunctionName:DEFAULT_OPTIONS2.printFunctionName,getEscapeRegex2=options=>options&&void 0!==options.escapeRegex?options.escapeRegex:DEFAULT_OPTIONS2.escapeRegex,getEscapeString2=options=>options&&void 0!==options.escapeString?options.escapeString:DEFAULT_OPTIONS2.escapeString,getConfig4=options=>{var _options$printBasicPr,indent;return{callToJSON:options&&void 0!==options.callToJSON?options.callToJSON:DEFAULT_OPTIONS2.callToJSON,colors:options&&options.highlight?getColorsHighlight2(options):DEFAULT_THEME_KEYS2.reduce(((colors,key)=>(colors[key]={close:"",open:""},colors)),Object.create(null)),compareKeys:options&&"function"==typeof options.compareKeys?options.compareKeys:DEFAULT_OPTIONS2.compareKeys,escapeRegex:getEscapeRegex2(options),escapeString:getEscapeString2(options),indent:options&&options.min?"":(indent=options&&void 0!==options.indent?options.indent:DEFAULT_OPTIONS2.indent,new Array(indent+1).join(" ")),maxDepth:options&&void 0!==options.maxDepth?options.maxDepth:DEFAULT_OPTIONS2.maxDepth,min:options&&void 0!==options.min?options.min:DEFAULT_OPTIONS2.min,plugins:options&&void 0!==options.plugins?options.plugins:DEFAULT_OPTIONS2.plugins,printBasicPrototype:null===(_options$printBasicPr=options?.printBasicPrototype)||void 0===_options$printBasicPr||_options$printBasicPr,printFunctionName:getPrintFunctionName2(options),spacingInner:options&&options.min?" ":"\n",spacingOuter:options&&options.min?"":"\n"}};function format4(val,options){if(options&&(function validateOptions2(options){if(Object.keys(options).forEach((key=>{if(!DEFAULT_OPTIONS2.hasOwnProperty(key))throw new Error(`pretty-format: Unknown option "${key}".`)})),options.min&&void 0!==options.indent&&0!==options.indent)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(void 0!==options.theme){if(null===options.theme)throw new Error('pretty-format: Option "theme" must not be null.');if("object"!=typeof options.theme)throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".`)}}(options),options.plugins)){let plugin2=findPlugin2(options.plugins,val);if(null!==plugin2)return printPlugin2(plugin2,val,getConfig4(options),"",0,[])}let basicResult=printBasicValue2(val,getPrintFunctionName2(options),getEscapeRegex2(options),getEscapeString2(options));return null!==basicResult?basicResult:printComplexValue2(val,getConfig4(options),"",0,[])}var plugins3={AsymmetricMatcher:_AsymmetricMatcher.default,ConvertAnsi:_ConvertAnsi.default,DOMCollection:_DOMCollection.default,DOMElement:_DOMElement.default,Immutable:_Immutable.default,ReactElement:_ReactElement.default,ReactTestComponent:_ReactTestComponent.default};exports.plugins=plugins3;var _default2=format4;exports.default=_default2}}),require_lz_string=__commonJS({"../../node_modules/lz-string/libs/lz-string.js"(exports,module2){var LZString=function(){var f4=String.fromCharCode,keyStrBase64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",keyStrUriSafe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",baseReverseDic={};function getBaseValue(alphabet,character){if(!baseReverseDic[alphabet]){baseReverseDic[alphabet]={};for(var i=0;i>>8,buf[2*i+1]=current_value%256}return buf},decompressFromUint8Array:function(compressed){if(null==compressed)return LZString2.decompress(compressed);for(var buf=new Array(compressed.length/2),i=0,TotalLen=buf.length;i>=1}else{for(value=1,i=0;i>=1}0==--context_enlargeIn&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),delete context_dictionaryToCreate[context_w]}else for(value=context_dictionary[context_w],i=0;i>=1;0==--context_enlargeIn&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),context_dictionary[context_wc]=context_dictSize++,context_w=String(context_c)}if(""!==context_w){if(Object.prototype.hasOwnProperty.call(context_dictionaryToCreate,context_w)){if(context_w.charCodeAt(0)<256){for(i=0;i>=1}else{for(value=1,i=0;i>=1}0==--context_enlargeIn&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),delete context_dictionaryToCreate[context_w]}else for(value=context_dictionary[context_w],i=0;i>=1;0==--context_enlargeIn&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++)}for(value=2,i=0;i>=1;for(;;){if(context_data_val<<=1,context_data_position==bitsPerChar-1){context_data.push(getCharFromInt(context_data_val));break}context_data_position++}return context_data.join("")},decompress:function(compressed){return null==compressed?"":""==compressed?null:LZString2._decompress(compressed.length,32768,(function(index){return compressed.charCodeAt(index)}))},_decompress:function(length,resetValue,getNextValue){var i,w2,bits,resb,maxpower,power,c,dictionary=[],enlargeIn=4,dictSize=4,numBits=3,entry="",result=[],data={val:getNextValue(0),position:resetValue,index:1};for(i=0;i<3;i+=1)dictionary[i]=i;for(bits=0,maxpower=Math.pow(2,2),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,0==data.position&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;switch(bits){case 0:for(bits=0,maxpower=Math.pow(2,8),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,0==data.position&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;c=f4(bits);break;case 1:for(bits=0,maxpower=Math.pow(2,16),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,0==data.position&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;c=f4(bits);break;case 2:return""}for(dictionary[3]=c,w2=c,result.push(c);;){if(data.index>length)return"";for(bits=0,maxpower=Math.pow(2,numBits),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,0==data.position&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;switch(c=bits){case 0:for(bits=0,maxpower=Math.pow(2,8),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,0==data.position&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;dictionary[dictSize++]=f4(bits),c=dictSize-1,enlargeIn--;break;case 1:for(bits=0,maxpower=Math.pow(2,16),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,0==data.position&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;dictionary[dictSize++]=f4(bits),c=dictSize-1,enlargeIn--;break;case 2:return result.join("")}if(0==enlargeIn&&(enlargeIn=Math.pow(2,numBits),numBits++),dictionary[c])entry=dictionary[c];else{if(c!==dictSize)return null;entry=w2+w2.charAt(0)}result.push(entry),dictionary[dictSize++]=w2+entry.charAt(0),w2=entry,0==--enlargeIn&&(enlargeIn=Math.pow(2,numBits),numBits++)}}};return LZString2}();"function"==typeof define&&__webpack_require__.amdO?define((function(){return LZString})):typeof module2<"u"&&null!=module2?module2.exports=LZString:typeof angular<"u"&&null!=angular&&angular.module("LZString",[]).factory("LZString",(function(){return LZString}))}}),__defProp2=Object.defineProperty,__getOwnPropNames2=Object.getOwnPropertyNames,__name=(target,value)=>__defProp2(target,"name",{value,configurable:!0}),__export2=(target,all)=>{for(var name in all)__defProp2(target,name,{get:all[name],enumerable:!0})},require_util=(cb={"(disabled):util"(){}},function(){return mod||(0,cb[__getOwnPropNames2(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports}),utils_exports={};__export2(utils_exports,{addChainableMethod:()=>addChainableMethod,addLengthGuard:()=>addLengthGuard,addMethod:()=>addMethod,addProperty:()=>addProperty,checkError:()=>check_error_exports,compareByInspect:()=>compareByInspect,eql:()=>deep_eql_default,expectTypes:()=>expectTypes,flag:()=>flag,getActual:()=>getActual,getMessage:()=>getMessage2,getName:()=>getName,getOperator:()=>getOperator,getOwnEnumerableProperties:()=>getOwnEnumerableProperties,getOwnEnumerablePropertySymbols:()=>getOwnEnumerablePropertySymbols,getPathInfo:()=>getPathInfo,hasProperty:()=>hasProperty,inspect:()=>dist_inspect2,isNaN:()=>isNaN22,isProxyEnabled:()=>isProxyEnabled,isRegExp:()=>isRegExp2,objDisplay:()=>objDisplay,overwriteChainableMethod:()=>overwriteChainableMethod,overwriteMethod:()=>overwriteMethod,overwriteProperty:()=>overwriteProperty,proxify:()=>proxify,test:()=>dist_test,transferFlags:()=>transferFlags,type:()=>type});var check_error_exports={};function isErrorInstance(obj){return obj instanceof Error||"[object Error]"===Object.prototype.toString.call(obj)}function isRegExp(obj){return"[object RegExp]"===Object.prototype.toString.call(obj)}function compatibleInstance(thrown,errorLike){return isErrorInstance(errorLike)&&thrown===errorLike}function compatibleConstructor(thrown,errorLike){return isErrorInstance(errorLike)?thrown.constructor===errorLike.constructor||thrown instanceof errorLike.constructor:!("object"!=typeof errorLike&&"function"!=typeof errorLike||!errorLike.prototype)&&(thrown.constructor===errorLike||thrown instanceof errorLike)}function compatibleMessage(thrown,errMatcher){let comparisonString="string"==typeof thrown?thrown:thrown.message;return isRegExp(errMatcher)?errMatcher.test(comparisonString):"string"==typeof errMatcher&&-1!==comparisonString.indexOf(errMatcher)}function dist_getConstructorName(errorLike){let constructorName=errorLike;return isErrorInstance(errorLike)?constructorName=errorLike.constructor.name:"function"==typeof errorLike&&(constructorName=errorLike.name,""===constructorName&&(constructorName=(new errorLike).name||constructorName)),constructorName}function getMessage(errorLike){let msg="";return errorLike&&errorLike.message?msg=errorLike.message:"string"==typeof errorLike&&(msg=errorLike),msg}function flag(obj,key,value){var flags=obj.__flags||(obj.__flags=Object.create(null));if(3!==arguments.length)return flags[key];flags[key]=value}function dist_test(obj,args){var negate=flag(obj,"negate"),expr=args[0];return negate?!expr:expr}function type(obj){if(typeof obj>"u")return"undefined";if(null===obj)return"null";let stringTag=obj[Symbol.toStringTag];return"string"==typeof stringTag?stringTag:Object.prototype.toString.call(obj).slice(8,-1)}__export2(check_error_exports,{compatibleConstructor:()=>compatibleConstructor,compatibleInstance:()=>compatibleInstance,compatibleMessage:()=>compatibleMessage,getConstructorName:()=>dist_getConstructorName,getMessage:()=>getMessage}),__name(isErrorInstance,"isErrorInstance"),__name(isRegExp,"isRegExp"),__name(compatibleInstance,"compatibleInstance"),__name(compatibleConstructor,"compatibleConstructor"),__name(compatibleMessage,"compatibleMessage"),__name(dist_getConstructorName,"getConstructorName"),__name(getMessage,"getMessage"),__name(flag,"flag"),__name(dist_test,"test"),__name(type,"type");var _a,canElideFrames="captureStackTrace"in Error,AssertionError=(_a=class extends Error{message;get name(){return"AssertionError"}get ok(){return!1}constructor(message="Unspecified AssertionError",props,ssf){super(message),this.message=message,canElideFrames&&Error.captureStackTrace(this,ssf||_a);for(let key in props)key in this||(this[key]=props[key])}toJSON(stack){return{...this,name:this.name,message:this.message,ok:!1,stack:!1!==stack?this.stack:void 0}}},__name(_a,"AssertionError"),_a);function expectTypes(obj,types){var flagMsg=flag(obj,"message"),ssfi=flag(obj,"ssfi");flagMsg=flagMsg?flagMsg+": ":"",obj=flag(obj,"object"),(types=types.map((function(t){return t.toLowerCase()}))).sort();var str=types.map((function(t,index){var art=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an":"a";return(types.length>1&&index===types.length-1?"or ":"")+art+" "+t})).join(", "),objType=type(obj).toLowerCase();if(!types.some((function(expected){return objType===expected})))throw new AssertionError(flagMsg+"object tested must be "+str+", but "+objType+" given",void 0,ssfi)}function getActual(obj,args){return args.length>4?args[4]:obj._obj}__name(expectTypes,"expectTypes"),__name(getActual,"getActual");var dist_ansiColors={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},dist_styles={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},dist_truncator="…";function dist_colorise(value,styleType){let color=dist_ansiColors[dist_styles[styleType]]||dist_ansiColors[styleType]||"";return color?`[${color[0]}m${String(value)}[${color[1]}m`:String(value)}function dist_normaliseOptions({showHidden=!1,depth=2,colors=!1,customInspect=!0,showProxy=!1,maxArrayLength=1/0,breakLength=1/0,seen=[],truncate:truncate22=1/0,stylize=String}={},inspect32){let options={showHidden:!!showHidden,depth:Number(depth),colors:!!colors,customInspect:!!customInspect,showProxy:!!showProxy,maxArrayLength:Number(maxArrayLength),breakLength:Number(breakLength),truncate:Number(truncate22),seen,inspect:inspect32,stylize};return options.colors&&(options.stylize=dist_colorise),options}function dist_truncate(string,length,tail=dist_truncator){string=String(string);let tailLength=tail.length,stringLength=string.length;return tailLength>length&&stringLength>tailLength?tail:stringLength>length&&stringLength>tailLength?`${string.slice(0,length-tailLength)}${tail}`:string}function dist_inspectList(list,options,inspectItem,separator=", "){inspectItem=inspectItem||options.inspect;let size=list.length;if(0===size)return"";let originalLength=options.truncate,output="",peek="",truncated="";for(let i=0;ioriginalLength&&output.length+truncated.length<=originalLength||!last&&!secondToLast&&truncatedLength>originalLength||(peek=last?"":inspectItem(list[i+1],options)+(secondToLast?"":separator),!last&&secondToLast&&truncatedLength>originalLength&&nextLength+peek.length>originalLength))break;if(output+=string,!last&&!secondToLast&&nextLength+peek.length>=originalLength){truncated=`${dist_truncator}(${list.length-i-1})`;break}truncated=""}return`${output}${truncated}`}function dist_quoteComplexKey(key){return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?key:JSON.stringify(key).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function dist_inspectProperty([key,value],options){return options.truncate-=2,"string"==typeof key?key=dist_quoteComplexKey(key):"number"!=typeof key&&(key=`[${options.inspect(key,options)}]`),options.truncate-=key.length,`${key}: ${value=options.inspect(value,options)}`}function dist_inspectArray(array,options){let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return"[]";options.truncate-=4;let listContents=dist_inspectList(array,options);options.truncate-=listContents.length;let propertyContents="";return nonIndexProperties.length&&(propertyContents=dist_inspectList(nonIndexProperties.map((key=>[key,array[key]])),options,dist_inspectProperty)),`[ ${listContents}${propertyContents?`, ${propertyContents}`:""} ]`}__name(dist_colorise,"colorise"),__name(dist_normaliseOptions,"normaliseOptions"),__name(dist_truncate,"truncate"),__name(dist_inspectList,"inspectList"),__name(dist_quoteComplexKey,"quoteComplexKey"),__name(dist_inspectProperty,"inspectProperty"),__name(dist_inspectArray,"inspectArray");var dist_getArrayName=__name((array=>"function"==typeof Buffer&&array instanceof Buffer?"Buffer":array[Symbol.toStringTag]?array[Symbol.toStringTag]:array.constructor.name),"getArrayName");function dist_inspectTypedArray(array,options){let name=dist_getArrayName(array);options.truncate-=name.length+4;let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return`${name}[]`;let output="";for(let i=0;i[key,array[key]])),options,dist_inspectProperty)),`${name}[ ${output}${propertyContents?`, ${propertyContents}`:""} ]`}function dist_inspectDate(dateObject,options){let stringRepresentation=dateObject.toJSON();if(null===stringRepresentation)return"Invalid Date";let split=stringRepresentation.split("T"),date=split[0];return options.stylize(`${date}T${dist_truncate(split[1],options.truncate-date.length-1)}`,"date")}function dist_inspectFunction(func,options){let functionType=func[Symbol.toStringTag]||"Function",name=func.name;return name?options.stylize(`[${functionType} ${dist_truncate(name,options.truncate-11)}]`,"special"):options.stylize(`[${functionType}]`,"special")}function dist_inspectMapEntry([key,value],options){return options.truncate-=4,key=options.inspect(key,options),options.truncate-=key.length,`${key} => ${value=options.inspect(value,options)}`}function dist_mapToEntries(map){let entries=[];return map.forEach(((value,key)=>{entries.push([key,value])})),entries}function dist_inspectMap(map,options){return map.size-1<=0?"Map{}":(options.truncate-=7,`Map{ ${dist_inspectList(dist_mapToEntries(map),options,dist_inspectMapEntry)} }`)}__name(dist_inspectTypedArray,"inspectTypedArray"),__name(dist_inspectDate,"inspectDate"),__name(dist_inspectFunction,"inspectFunction"),__name(dist_inspectMapEntry,"inspectMapEntry"),__name(dist_mapToEntries,"mapToEntries"),__name(dist_inspectMap,"inspectMap");var isNaN2=Number.isNaN||(i=>i!=i);function dist_inspectNumber(number,options){return isNaN2(number)?options.stylize("NaN","number"):number===1/0?options.stylize("Infinity","number"):number===-1/0?options.stylize("-Infinity","number"):0===number?options.stylize(1/number==1/0?"+0":"-0","number"):options.stylize(dist_truncate(String(number),options.truncate),"number")}function dist_inspectBigInt(number,options){let nums=dist_truncate(number.toString(),options.truncate-1);return nums!==dist_truncator&&(nums+="n"),options.stylize(nums,"bigint")}function dist_inspectRegExp(value,options){let flags=value.toString().split("/")[2],sourceLength=options.truncate-(2+flags.length),source=value.source;return options.stylize(`/${dist_truncate(source,sourceLength)}/${flags}`,"regexp")}function dist_arrayFromSet(set2){let values=[];return set2.forEach((value=>{values.push(value)})),values}function dist_inspectSet(set2,options){return 0===set2.size?"Set{}":(options.truncate-=7,`Set{ ${dist_inspectList(dist_arrayFromSet(set2),options)} }`)}__name(dist_inspectNumber,"inspectNumber"),__name(dist_inspectBigInt,"inspectBigInt"),__name(dist_inspectRegExp,"inspectRegExp"),__name(dist_arrayFromSet,"arrayFromSet"),__name(dist_inspectSet,"inspectSet");var dist_stringEscapeChars=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),dist_escapeCharacters={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},dist_hex=16,dist_unicodeLength=4;function test_dist_escape(char){return dist_escapeCharacters[char]||`\\u${`0000${char.charCodeAt(0).toString(dist_hex)}`.slice(-dist_unicodeLength)}`}function dist_inspectString(string,options){return dist_stringEscapeChars.test(string)&&(string=string.replace(dist_stringEscapeChars,test_dist_escape)),options.stylize(`'${dist_truncate(string,options.truncate-2)}'`,"string")}function dist_inspectSymbol(value){return"description"in Symbol.prototype?value.description?`Symbol(${value.description})`:"Symbol()":value.toString()}__name(test_dist_escape,"escape"),__name(dist_inspectString,"inspectString"),__name(dist_inspectSymbol,"inspectSymbol");var dist_getPromiseValue=__name((()=>"Promise{…}"),"getPromiseValue");try{let{getPromiseDetails,kPending,kRejected}=dist_process.binding("util");Array.isArray(getPromiseDetails(Promise.resolve()))&&(dist_getPromiseValue=__name(((value,options)=>{let[state,innerValue]=getPromiseDetails(value);return state===kPending?"Promise{}":`Promise${state===kRejected?"!":""}{${options.inspect(innerValue,options)}}`}),"getPromiseValue"))}catch{}var dist_promise_default=dist_getPromiseValue;function dist_inspectObject(object,options){let properties=Object.getOwnPropertyNames(object),symbols=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(object):[];if(0===properties.length&&0===symbols.length)return"{}";if(options.truncate-=4,options.seen=options.seen||[],options.seen.indexOf(object)>=0)return"[Circular]";options.seen.push(object);let propertyContents=dist_inspectList(properties.map((key=>[key,object[key]])),options,dist_inspectProperty),symbolContents=dist_inspectList(symbols.map((key=>[key,object[key]])),options,dist_inspectProperty);options.seen.pop();let sep="";return propertyContents&&symbolContents&&(sep=", "),`{ ${propertyContents}${sep}${symbolContents} }`}__name(dist_inspectObject,"inspectObject");var dist_toStringTag=!!(typeof Symbol<"u"&&Symbol.toStringTag)&&Symbol.toStringTag;function dist_inspectClass(value,options){let name="";return dist_toStringTag&&dist_toStringTag in value&&(name=value[dist_toStringTag]),name=name||value.constructor.name,(!name||"_class"===name)&&(name=""),options.truncate-=name.length,`${name}${dist_inspectObject(value,options)}`}function dist_inspectArguments(args,options){return 0===args.length?"Arguments[]":(options.truncate-=13,`Arguments[ ${dist_inspectList(args,options)} ]`)}__name(dist_inspectClass,"inspectClass"),__name(dist_inspectArguments,"inspectArguments");var dist_errorKeys=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function dist_inspectObject2(error,options){let properties=Object.getOwnPropertyNames(error).filter((key=>-1===dist_errorKeys.indexOf(key))),name=error.name;options.truncate-=name.length;let message="";"string"==typeof error.message?message=dist_truncate(error.message,options.truncate):properties.unshift("message"),message=message?`: ${message}`:"",options.truncate-=message.length+5;let propertyContents=dist_inspectList(properties.map((key=>[key,error[key]])),options,dist_inspectProperty);return`${name}${message}${propertyContents?` { ${propertyContents} }`:""}`}function dist_inspectAttribute([key,value],options){return options.truncate-=3,value?`${options.stylize(String(key),"yellow")}=${options.stylize(`"${value}"`,"string")}`:`${options.stylize(String(key),"yellow")}`}function dist_inspectHTMLCollection(collection,options){return dist_inspectList(collection,options,dist_inspectHTML,"\n")}function dist_inspectHTML(element,options){let properties=element.getAttributeNames(),name=element.tagName.toLowerCase(),head=options.stylize(`<${name}`,"special"),headClose=options.stylize(">","special"),tail=options.stylize(``,"special");options.truncate-=2*name.length+5;let propertyContents="";properties.length>0&&(propertyContents+=" ",propertyContents+=dist_inspectList(properties.map((key=>[key,element.getAttribute(key)])),options,dist_inspectAttribute," ")),options.truncate-=propertyContents.length;let truncate22=options.truncate,children=dist_inspectHTMLCollection(element.children,options);return children&&children.length>truncate22&&(children=`${dist_truncator}(${element.children.length})`),`${head}${propertyContents}${headClose}${children}${tail}`}__name(dist_inspectObject2,"inspectObject"),__name(dist_inspectAttribute,"inspectAttribute"),__name(dist_inspectHTMLCollection,"inspectHTMLCollection"),__name(dist_inspectHTML,"inspectHTML");var dist_chaiInspect="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",dist_nodeInspect=!1;try{let nodeUtil=require_util();dist_nodeInspect=!!nodeUtil.inspect&&nodeUtil.inspect.custom}catch{dist_nodeInspect=!1}var dist_constructorMap=new WeakMap,dist_stringTagMap={},dist_baseTypesMap={undefined:(value,options)=>options.stylize("undefined","undefined"),null:(value,options)=>options.stylize("null","null"),boolean:(value,options)=>options.stylize(String(value),"boolean"),Boolean:(value,options)=>options.stylize(String(value),"boolean"),number:dist_inspectNumber,Number:dist_inspectNumber,bigint:dist_inspectBigInt,BigInt:dist_inspectBigInt,string:dist_inspectString,String:dist_inspectString,function:dist_inspectFunction,Function:dist_inspectFunction,symbol:dist_inspectSymbol,Symbol:dist_inspectSymbol,Array:dist_inspectArray,Date:dist_inspectDate,Map:dist_inspectMap,Set:dist_inspectSet,RegExp:dist_inspectRegExp,Promise:dist_promise_default,WeakSet:(value,options)=>options.stylize("WeakSet{…}","special"),WeakMap:(value,options)=>options.stylize("WeakMap{…}","special"),Arguments:dist_inspectArguments,Int8Array:dist_inspectTypedArray,Uint8Array:dist_inspectTypedArray,Uint8ClampedArray:dist_inspectTypedArray,Int16Array:dist_inspectTypedArray,Uint16Array:dist_inspectTypedArray,Int32Array:dist_inspectTypedArray,Uint32Array:dist_inspectTypedArray,Float32Array:dist_inspectTypedArray,Float64Array:dist_inspectTypedArray,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:dist_inspectObject2,HTMLCollection:dist_inspectHTMLCollection,NodeList:dist_inspectHTMLCollection},dist_inspectCustom=__name(((value,options,type32)=>dist_chaiInspect in value&&"function"==typeof value[dist_chaiInspect]?value[dist_chaiInspect](options):dist_nodeInspect&&dist_nodeInspect in value&&"function"==typeof value[dist_nodeInspect]?value[dist_nodeInspect](options.depth,options):"inspect"in value&&"function"==typeof value.inspect?value.inspect(options.depth,options):"constructor"in value&&dist_constructorMap.has(value.constructor)?dist_constructorMap.get(value.constructor)(value,options):dist_stringTagMap[type32]?dist_stringTagMap[type32](value,options):""),"inspectCustom"),test_dist_toString=Object.prototype.toString;function dist_inspect(value,opts={}){let options=dist_normaliseOptions(opts,dist_inspect),{customInspect}=options,type32=null===value?"null":typeof value;if("object"===type32&&(type32=test_dist_toString.call(value).slice(8,-1)),type32 in dist_baseTypesMap)return dist_baseTypesMap[type32](value,options);if(customInspect&&value){let output=dist_inspectCustom(value,options,type32);if(output)return"string"==typeof output?output:dist_inspect(output,options)}let proto=!!value&&Object.getPrototypeOf(value);return proto===Object.prototype||null===proto?dist_inspectObject(value,options):value&&"function"==typeof HTMLElement&&value instanceof HTMLElement?dist_inspectHTML(value,options):"constructor"in value?value.constructor!==Object?dist_inspectClass(value,options):dist_inspectObject(value,options):value===Object(value)?dist_inspectObject(value,options):options.stylize(String(value),type32)}__name(dist_inspect,"inspect");var config={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function dist_inspect2(obj,showHidden,depth,colors){return dist_inspect(obj,{colors,depth:typeof depth>"u"?2:depth,showHidden,truncate:config.truncateThreshold?config.truncateThreshold:1/0})}function objDisplay(obj){var str=dist_inspect2(obj),type32=Object.prototype.toString.call(obj);if(config.truncateThreshold&&str.length>=config.truncateThreshold){if("[object Function]"===type32)return obj.name&&""!==obj.name?"[Function: "+obj.name+"]":"[Function]";if("[object Array]"===type32)return"[ Array("+obj.length+") ]";if("[object Object]"===type32){var keys2=Object.keys(obj);return"{ Object ("+(keys2.length>2?keys2.splice(0,2).join(", ")+", ...":keys2.join(", "))+") }"}return str}return str}function getMessage2(obj,args){var negate=flag(obj,"negate"),val=flag(obj,"object"),expected=args[3],actual=getActual(obj,args),msg=negate?args[2]:args[1],flagMsg=flag(obj,"message");return"function"==typeof msg&&(msg=msg()),msg=(msg=msg||"").replace(/#\{this\}/g,(function(){return objDisplay(val)})).replace(/#\{act\}/g,(function(){return objDisplay(actual)})).replace(/#\{exp\}/g,(function(){return objDisplay(expected)})),flagMsg?flagMsg+": "+msg:msg}function transferFlags(assertion,object,includeAll){var flags=assertion.__flags||(assertion.__flags=Object.create(null));for(var flag3 in object.__flags||(object.__flags=Object.create(null)),includeAll=3!==arguments.length||includeAll,flags)(includeAll||"object"!==flag3&&"ssfi"!==flag3&&"lockSsfi"!==flag3&&"message"!=flag3)&&(object.__flags[flag3]=flags[flag3])}function type2(obj){if(typeof obj>"u")return"undefined";if(null===obj)return"null";let stringTag=obj[Symbol.toStringTag];return"string"==typeof stringTag?stringTag:Object.prototype.toString.call(obj).slice(8,-1)}function FakeMap(){this._key="chai/deep-eql__"+Math.random()+Date.now()}__name(dist_inspect2,"inspect"),__name(objDisplay,"objDisplay"),__name(getMessage2,"getMessage"),__name(transferFlags,"transferFlags"),__name(type2,"type"),__name(FakeMap,"FakeMap"),FakeMap.prototype={get:__name((function(key){return key[this._key]}),"get"),set:__name((function(key,value){Object.isExtensible(key)&&Object.defineProperty(key,this._key,{value,configurable:!0})}),"set")};var MemoizeMap="function"==typeof WeakMap?WeakMap:FakeMap;function memoizeCompare(leftHandOperand,rightHandOperand,memoizeMap){if(!memoizeMap||isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand))return null;var leftHandMap=memoizeMap.get(leftHandOperand);if(leftHandMap){var result=leftHandMap.get(rightHandOperand);if("boolean"==typeof result)return result}return null}function memoizeSet(leftHandOperand,rightHandOperand,memoizeMap,result){if(memoizeMap&&!isPrimitive(leftHandOperand)&&!isPrimitive(rightHandOperand)){var leftHandMap=memoizeMap.get(leftHandOperand);leftHandMap?leftHandMap.set(rightHandOperand,result):((leftHandMap=new MemoizeMap).set(rightHandOperand,result),memoizeMap.set(leftHandOperand,leftHandMap))}}__name(memoizeCompare,"memoizeCompare"),__name(memoizeSet,"memoizeSet");var deep_eql_default=deepEqual;function deepEqual(leftHandOperand,rightHandOperand,options){if(options&&options.comparator)return extensiveDeepEqual(leftHandOperand,rightHandOperand,options);var simpleResult=simpleEqual(leftHandOperand,rightHandOperand);return null!==simpleResult?simpleResult:extensiveDeepEqual(leftHandOperand,rightHandOperand,options)}function simpleEqual(leftHandOperand,rightHandOperand){return leftHandOperand===rightHandOperand?0!==leftHandOperand||1/leftHandOperand==1/rightHandOperand:leftHandOperand!=leftHandOperand&&rightHandOperand!=rightHandOperand||!isPrimitive(leftHandOperand)&&!isPrimitive(rightHandOperand)&&null}function extensiveDeepEqual(leftHandOperand,rightHandOperand,options){(options=options||{}).memoize=!1!==options.memoize&&(options.memoize||new MemoizeMap);var comparator=options&&options.comparator,memoizeResultLeft=memoizeCompare(leftHandOperand,rightHandOperand,options.memoize);if(null!==memoizeResultLeft)return memoizeResultLeft;var memoizeResultRight=memoizeCompare(rightHandOperand,leftHandOperand,options.memoize);if(null!==memoizeResultRight)return memoizeResultRight;if(comparator){var comparatorResult=comparator(leftHandOperand,rightHandOperand);if(!1===comparatorResult||!0===comparatorResult)return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,comparatorResult),comparatorResult;var simpleResult=simpleEqual(leftHandOperand,rightHandOperand);if(null!==simpleResult)return simpleResult}var leftHandType=type2(leftHandOperand);if(leftHandType!==type2(rightHandOperand))return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,!1),!1;memoizeSet(leftHandOperand,rightHandOperand,options.memoize,!0);var result=extensiveDeepEqualByType(leftHandOperand,rightHandOperand,leftHandType,options);return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,result),result}function extensiveDeepEqualByType(leftHandOperand,rightHandOperand,leftHandType,options){switch(leftHandType){case"String":case"Number":case"Boolean":case"Date":return deepEqual(leftHandOperand.valueOf(),rightHandOperand.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return leftHandOperand===rightHandOperand;case"Error":return keysEqual(leftHandOperand,rightHandOperand,["name","message","code"],options);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return iterableEqual(leftHandOperand,rightHandOperand,options);case"RegExp":return regexpEqual(leftHandOperand,rightHandOperand);case"Generator":return generatorEqual(leftHandOperand,rightHandOperand,options);case"DataView":return iterableEqual(new Uint8Array(leftHandOperand.buffer),new Uint8Array(rightHandOperand.buffer),options);case"ArrayBuffer":return iterableEqual(new Uint8Array(leftHandOperand),new Uint8Array(rightHandOperand),options);case"Set":case"Map":return entriesEqual(leftHandOperand,rightHandOperand,options);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return leftHandOperand.equals(rightHandOperand);case"Temporal.Duration":return leftHandOperand.total("nanoseconds")===rightHandOperand.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return leftHandOperand.toString()===rightHandOperand.toString();default:return objectEqual(leftHandOperand,rightHandOperand,options)}}function regexpEqual(leftHandOperand,rightHandOperand){return leftHandOperand.toString()===rightHandOperand.toString()}function entriesEqual(leftHandOperand,rightHandOperand,options){if(leftHandOperand.size!==rightHandOperand.size)return!1;if(0===leftHandOperand.size)return!0;var leftHandItems=[],rightHandItems=[];return leftHandOperand.forEach(__name((function(key,value){leftHandItems.push([key,value])}),"gatherEntries")),rightHandOperand.forEach(__name((function(key,value){rightHandItems.push([key,value])}),"gatherEntries")),iterableEqual(leftHandItems.sort(),rightHandItems.sort(),options)}function iterableEqual(leftHandOperand,rightHandOperand,options){var length=leftHandOperand.length;if(length!==rightHandOperand.length)return!1;if(0===length)return!0;for(var index=-1;++index"u"||null===obj)&&name in Object(obj)}function parsePath(path){return path.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map((value=>{if("constructor"===value||"__proto__"===value||"prototype"===value)return{};let mArr=/^\[(\d+)\]$/.exec(value),parsed=null;return parsed=mArr?{i:parseFloat(mArr[1])}:{p:value.replace(/\\([.[\]])/g,"$1")},parsed}))}function internalGetPathValue(obj,parsed,pathDepth){let temporaryValue=obj,res=null;pathDepth=typeof pathDepth>"u"?parsed.length:pathDepth;for(let i=0;i"u"?temporaryValue[part.i]:temporaryValue[part.p],i===pathDepth-1&&(res=temporaryValue))}return res}function getPathInfo(obj,path){let parsed=parsePath(path),last=parsed[parsed.length-1],info={parent:parsed.length>1?internalGetPathValue(obj,parsed,parsed.length-1):obj,name:last.p||last.i,value:internalGetPathValue(obj,parsed)};return info.exists=hasProperty(info.parent,info.name),info}function Assertion(obj,msg,ssfi,lockSsfi){return flag(this,"ssfi",ssfi||Assertion),flag(this,"lockSsfi",lockSsfi),flag(this,"object",obj),flag(this,"message",msg),flag(this,"eql",config.deepEqual||deep_eql_default),proxify(this)}function isProxyEnabled(){return config.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}function addProperty(ctx,name,getter){getter=void 0===getter?function(){}:getter,Object.defineProperty(ctx,name,{get:__name((function propertyGetter(){!isProxyEnabled()&&!flag(this,"lockSsfi")&&flag(this,"ssfi",propertyGetter);var result=getter.call(this);if(void 0!==result)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion}),"propertyGetter"),configurable:!0})}__name(deepEqual,"deepEqual"),__name(simpleEqual,"simpleEqual"),__name(extensiveDeepEqual,"extensiveDeepEqual"),__name(extensiveDeepEqualByType,"extensiveDeepEqualByType"),__name(regexpEqual,"regexpEqual"),__name(entriesEqual,"entriesEqual"),__name(iterableEqual,"iterableEqual"),__name(generatorEqual,"generatorEqual"),__name(hasIteratorFunction,"hasIteratorFunction"),__name(getIteratorEntries,"getIteratorEntries"),__name(getGeneratorEntries,"getGeneratorEntries"),__name(getEnumerableKeys,"getEnumerableKeys"),__name(getEnumerableSymbols,"getEnumerableSymbols"),__name(keysEqual,"keysEqual"),__name(objectEqual,"objectEqual"),__name(isPrimitive,"isPrimitive"),__name(mapSymbols,"mapSymbols"),__name(hasProperty,"hasProperty"),__name(parsePath,"parsePath"),__name(internalGetPathValue,"internalGetPathValue"),__name(getPathInfo,"getPathInfo"),__name(Assertion,"Assertion"),Object.defineProperty(Assertion,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),config.includeStack},set:function(value){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),config.includeStack=value}}),Object.defineProperty(Assertion,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),config.showDiff},set:function(value){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),config.showDiff=value}}),Assertion.addProperty=function(name,fn3){addProperty(this.prototype,name,fn3)},Assertion.addMethod=function(name,fn3){addMethod(this.prototype,name,fn3)},Assertion.addChainableMethod=function(name,fn3,chainingBehavior){addChainableMethod(this.prototype,name,fn3,chainingBehavior)},Assertion.overwriteProperty=function(name,fn3){overwriteProperty(this.prototype,name,fn3)},Assertion.overwriteMethod=function(name,fn3){overwriteMethod(this.prototype,name,fn3)},Assertion.overwriteChainableMethod=function(name,fn3,chainingBehavior){overwriteChainableMethod(this.prototype,name,fn3,chainingBehavior)},Assertion.prototype.assert=function(expr,msg,negateMsg,expected,_actual,showDiff){var ok=dist_test(this,arguments);if(!1!==showDiff&&(showDiff=!0),void 0===expected&&void 0===_actual&&(showDiff=!1),!0!==config.showDiff&&(showDiff=!1),!ok){msg=getMessage2(this,arguments);var assertionErrorObjectProperties={actual:getActual(this,arguments),expected,showDiff},operator=getOperator(this,arguments);throw operator&&(assertionErrorObjectProperties.operator=operator),new AssertionError(msg,assertionErrorObjectProperties,config.includeStack?this.assert:flag(this,"ssfi"))}},Object.defineProperty(Assertion.prototype,"_obj",{get:function(){return flag(this,"object")},set:function(val){flag(this,"object",val)}}),__name(isProxyEnabled,"isProxyEnabled"),__name(addProperty,"addProperty");var fnLengthDesc=Object.getOwnPropertyDescriptor((function(){}),"length");function addLengthGuard(fn3,assertionName,isChainable){return fnLengthDesc.configurable&&Object.defineProperty(fn3,"length",{get:function(){throw Error(isChainable?"Invalid Chai property: "+assertionName+'.length. Due to a compatibility issue, "length" cannot directly follow "'+assertionName+'". Use "'+assertionName+'.lengthOf" instead.':"Invalid Chai property: "+assertionName+'.length. See docs for proper usage of "'+assertionName+'".')}}),fn3}function getProperties(object){var result=Object.getOwnPropertyNames(object);function addProperty2(property){-1===result.indexOf(property)&&result.push(property)}__name(addProperty2,"addProperty");for(var proto=Object.getPrototypeOf(object);null!==proto;)Object.getOwnPropertyNames(proto).forEach(addProperty2),proto=Object.getPrototypeOf(proto);return result}__name(addLengthGuard,"addLengthGuard"),__name(getProperties,"getProperties");var builtins=["__flags","__methods","_obj","assert"];function proxify(obj,nonChainableMethodName){return isProxyEnabled()?new Proxy(obj,{get:__name((function proxyGetter(target,property){if("string"==typeof property&&-1===config.proxyExcludedKeys.indexOf(property)&&!Reflect.has(target,property)){if(nonChainableMethodName)throw Error("Invalid Chai property: "+nonChainableMethodName+"."+property+'. See docs for proper usage of "'+nonChainableMethodName+'".');var suggestion=null,suggestionDistance=4;throw getProperties(target).forEach((function(prop){if(!Object.prototype.hasOwnProperty(prop)&&-1===builtins.indexOf(prop)){var dist=stringDistanceCapped(property,prop,suggestionDistance);dist=cap)return cap;for(var memo=[],i=0;i<=strA.length;i++)memo[i]=Array(strB.length+1).fill(0),memo[i][0]=i;for(var j=0;j=cap?memo[i][j]=cap:memo[i][j]=Math.min(memo[i-1][j]+1,memo[i][j-1]+1,memo[i-1][j-1]+(ch===strB.charCodeAt(j-1)?0:1))}return memo[strA.length][strB.length]}function addMethod(ctx,name,method){var methodWrapper=__name((function(){flag(this,"lockSsfi")||flag(this,"ssfi",methodWrapper);var result=method.apply(this,arguments);if(void 0!==result)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion}),"methodWrapper");addLengthGuard(methodWrapper,name,!1),ctx[name]=proxify(methodWrapper,name)}function overwriteProperty(ctx,name,getter){var _get=Object.getOwnPropertyDescriptor(ctx,name),_super=__name((function(){}),"_super");_get&&"function"==typeof _get.get&&(_super=_get.get),Object.defineProperty(ctx,name,{get:__name((function overwritingPropertyGetter(){!isProxyEnabled()&&!flag(this,"lockSsfi")&&flag(this,"ssfi",overwritingPropertyGetter);var origLockSsfi=flag(this,"lockSsfi");flag(this,"lockSsfi",!0);var result=getter(_super).call(this);if(flag(this,"lockSsfi",origLockSsfi),void 0!==result)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion}),"overwritingPropertyGetter"),configurable:!0})}function overwriteMethod(ctx,name,method){var _method=ctx[name],_super=__name((function(){throw new Error(name+" is not a function")}),"_super");_method&&"function"==typeof _method&&(_super=_method);var overwritingMethodWrapper=__name((function(){flag(this,"lockSsfi")||flag(this,"ssfi",overwritingMethodWrapper);var origLockSsfi=flag(this,"lockSsfi");flag(this,"lockSsfi",!0);var result=method(_super).apply(this,arguments);if(flag(this,"lockSsfi",origLockSsfi),void 0!==result)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion}),"overwritingMethodWrapper");addLengthGuard(overwritingMethodWrapper,name,!1),ctx[name]=proxify(overwritingMethodWrapper,name)}__name(proxify,"proxify"),__name(stringDistanceCapped,"stringDistanceCapped"),__name(addMethod,"addMethod"),__name(overwriteProperty,"overwriteProperty"),__name(overwriteMethod,"overwriteMethod");var canSetPrototype="function"==typeof Object.setPrototypeOf,testFn=__name((function(){}),"testFn"),excludeNames=Object.getOwnPropertyNames(testFn).filter((function(name){var propDesc=Object.getOwnPropertyDescriptor(testFn,name);return"object"!=typeof propDesc||!propDesc.configurable})),call=Function.prototype.call,apply=Function.prototype.apply;function addChainableMethod(ctx,name,method,chainingBehavior){"function"!=typeof chainingBehavior&&(chainingBehavior=__name((function(){}),"chainingBehavior"));var chainableBehavior={method,chainingBehavior};ctx.__methods||(ctx.__methods={}),ctx.__methods[name]=chainableBehavior,Object.defineProperty(ctx,name,{get:__name((function(){chainableBehavior.chainingBehavior.call(this);var chainableMethodWrapper=__name((function(){flag(this,"lockSsfi")||flag(this,"ssfi",chainableMethodWrapper);var result=chainableBehavior.method.apply(this,arguments);if(void 0!==result)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion}),"chainableMethodWrapper");if(addLengthGuard(chainableMethodWrapper,name,!0),canSetPrototype){var prototype=Object.create(this);prototype.call=call,prototype.apply=apply,Object.setPrototypeOf(chainableMethodWrapper,prototype)}else{Object.getOwnPropertyNames(ctx).forEach((function(asserterName){if(-1===excludeNames.indexOf(asserterName)){var pd=Object.getOwnPropertyDescriptor(ctx,asserterName);Object.defineProperty(chainableMethodWrapper,asserterName,pd)}}))}return transferFlags(this,chainableMethodWrapper),proxify(chainableMethodWrapper)}),"chainableMethodGetter"),configurable:!0})}function overwriteChainableMethod(ctx,name,method,chainingBehavior){var chainableBehavior=ctx.__methods[name],_chainingBehavior=chainableBehavior.chainingBehavior;chainableBehavior.chainingBehavior=__name((function(){var result=chainingBehavior(_chainingBehavior).call(this);if(void 0!==result)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion}),"overwritingChainableMethodGetter");var _method=chainableBehavior.method;chainableBehavior.method=__name((function(){var result=method(_method).apply(this,arguments);if(void 0!==result)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion}),"overwritingChainableMethodWrapper")}function compareByInspect(a2,b){return dist_inspect2(a2)1&&numErrs===props.length)throw firstErr;return}this.assert(included,"expected #{this} to "+descriptor+"include "+dist_inspect2(val),"expected #{this} to not "+descriptor+"include "+dist_inspect2(val))}function assertExist(){var val=flag2(this,"object");this.assert(null!=val,"expected #{this} to exist","expected #{this} to not exist")}function checkArguments(){var type32=type(flag2(this,"object"));this.assert("Arguments"===type32,"expected #{this} to be arguments but got "+type32,"expected #{this} to not be arguments")}function assertEqual(val,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");if(flag2(this,"deep")){var prevLockSsfi=flag2(this,"lockSsfi");flag2(this,"lockSsfi",!0),this.eql(val),flag2(this,"lockSsfi",prevLockSsfi)}else this.assert(val===obj,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",val,this._obj,!0)}function assertEql(obj,msg){msg&&flag2(this,"message",msg);var eql=flag2(this,"eql");this.assert(eql(obj,flag2(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",obj,this._obj,!0)}function assertAbove(n,msg){msg&&flag2(this,"message",msg);var errorMessage,obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),shouldThrow=!0;if(doLength&&"map"!==objType&&"set"!==objType&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),doLength||"date"!==objType||"date"===nType)if("number"===nType||!doLength&&"number"!==objType)if(doLength||"date"===objType||"number"===objType)shouldThrow=!1;else{errorMessage=msgPrefix+"expected "+("string"===objType?"'"+obj+"'":obj)+" to be a number or a date"}else errorMessage=msgPrefix+"the argument to above must be a number";else errorMessage=msgPrefix+"the argument to above must be a date";if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var itemsCount,descriptor="length";"map"===objType||"set"===objType?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>n,"expected #{this} to have a "+descriptor+" above #{exp} but got #{act}","expected #{this} to not have a "+descriptor+" above #{exp}",n,itemsCount)}else this.assert(obj>n,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",n)}function assertLeast(n,msg){msg&&flag2(this,"message",msg);var errorMessage,obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),shouldThrow=!0;if(doLength&&"map"!==objType&&"set"!==objType&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),doLength||"date"!==objType||"date"===nType)if("number"===nType||!doLength&&"number"!==objType)if(doLength||"date"===objType||"number"===objType)shouldThrow=!1;else{errorMessage=msgPrefix+"expected "+("string"===objType?"'"+obj+"'":obj)+" to be a number or a date"}else errorMessage=msgPrefix+"the argument to least must be a number";else errorMessage=msgPrefix+"the argument to least must be a date";if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var itemsCount,descriptor="length";"map"===objType||"set"===objType?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>=n,"expected #{this} to have a "+descriptor+" at least #{exp} but got #{act}","expected #{this} to have a "+descriptor+" below #{exp}",n,itemsCount)}else this.assert(obj>=n,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",n)}function assertBelow(n,msg){msg&&flag2(this,"message",msg);var errorMessage,obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),shouldThrow=!0;if(doLength&&"map"!==objType&&"set"!==objType&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),doLength||"date"!==objType||"date"===nType)if("number"===nType||!doLength&&"number"!==objType)if(doLength||"date"===objType||"number"===objType)shouldThrow=!1;else{errorMessage=msgPrefix+"expected "+("string"===objType?"'"+obj+"'":obj)+" to be a number or a date"}else errorMessage=msgPrefix+"the argument to below must be a number";else errorMessage=msgPrefix+"the argument to below must be a date";if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var itemsCount,descriptor="length";"map"===objType||"set"===objType?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCountval1===val2,descriptor="";isDeep&&(descriptor+="deep "),isOwn&&(descriptor+="own "),isNested&&(descriptor+="nested "),descriptor+="property ",hasProperty2=isOwn?Object.prototype.hasOwnProperty.call(obj,name):isNested?pathInfo.exists:hasProperty(obj,name),(!negate||1===arguments.length)&&this.assert(hasProperty2,"expected #{this} to have "+descriptor+dist_inspect2(name),"expected #{this} to not have "+descriptor+dist_inspect2(name)),arguments.length>1&&this.assert(hasProperty2&&isEql(val,value),"expected #{this} to have "+descriptor+dist_inspect2(name)+" of #{exp}, but got #{act}","expected #{this} to not have "+descriptor+dist_inspect2(name)+" of #{act}",val,value),flag2(this,"object",value)}function assertOwnProperty(name,value,msg){flag2(this,"own",!0),assertProperty.apply(this,arguments)}function assertOwnPropertyDescriptor(name,descriptor,msg){"string"==typeof descriptor&&(msg=descriptor,descriptor=null),msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),actualDescriptor=Object.getOwnPropertyDescriptor(Object(obj),name),eql=flag2(this,"eql");actualDescriptor&&descriptor?this.assert(eql(descriptor,actualDescriptor),"expected the own property descriptor for "+dist_inspect2(name)+" on #{this} to match "+dist_inspect2(descriptor)+", got "+dist_inspect2(actualDescriptor),"expected the own property descriptor for "+dist_inspect2(name)+" on #{this} to not match "+dist_inspect2(descriptor),descriptor,actualDescriptor,!0):this.assert(actualDescriptor,"expected #{this} to have an own property descriptor for "+dist_inspect2(name),"expected #{this} to not have an own property descriptor for "+dist_inspect2(name)),flag2(this,"object",actualDescriptor)}function assertLengthChain(){flag2(this,"doLength",!0)}function assertLength(n,msg){msg&&flag2(this,"message",msg);var itemsCount,obj=flag2(this,"object"),objType=type(obj).toLowerCase(),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi"),descriptor="length";switch(objType){case"map":case"set":descriptor="size",itemsCount=obj.size;break;default:new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),itemsCount=obj.length}this.assert(itemsCount==n,"expected #{this} to have a "+descriptor+" of #{exp} but got #{act}","expected #{this} to not have a "+descriptor+" of #{act}",n,itemsCount)}function assertMatch(re,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");this.assert(re.exec(obj),"expected #{this} to match "+re,"expected #{this} not to match "+re)}function assertKeys(keys2){var str,actual,obj=flag2(this,"object"),objType=type(obj),keysType=type(keys2),ssfi=flag2(this,"ssfi"),isDeep=flag2(this,"deep"),deepStr="",ok=!0,flagMsg=flag2(this,"message"),mixedArgsMsg=(flagMsg=flagMsg?flagMsg+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===objType||"Set"===objType)deepStr=isDeep?"deeply ":"",actual=[],obj.forEach((function(val,key){actual.push(key)})),"Array"!==keysType&&(keys2=Array.prototype.slice.call(arguments));else{switch(actual=getOwnEnumerableProperties(obj),keysType){case"Array":if(arguments.length>1)throw new AssertionError(mixedArgsMsg,void 0,ssfi);break;case"Object":if(arguments.length>1)throw new AssertionError(mixedArgsMsg,void 0,ssfi);keys2=Object.keys(keys2);break;default:keys2=Array.prototype.slice.call(arguments)}keys2=keys2.map((function(val){return"symbol"==typeof val?val:String(val)}))}if(!keys2.length)throw new AssertionError(flagMsg+"keys required",void 0,ssfi);var len=keys2.length,any=flag2(this,"any"),all=flag2(this,"all"),expected=keys2,isEql=isDeep?flag2(this,"eql"):(val1,val2)=>val1===val2;if(!any&&!all&&(all=!0),any&&(ok=expected.some((function(expectedKey){return actual.some((function(actualKey){return isEql(expectedKey,actualKey)}))}))),all&&(ok=expected.every((function(expectedKey){return actual.some((function(actualKey){return isEql(expectedKey,actualKey)}))})),flag2(this,"contains")||(ok=ok&&keys2.length==actual.length)),len>1){var last=(keys2=keys2.map((function(key){return dist_inspect2(key)}))).pop();all&&(str=keys2.join(", ")+", and "+last),any&&(str=keys2.join(", ")+", or "+last)}else str=dist_inspect2(keys2[0]);str=(len>1?"keys ":"key ")+str,str=(flag2(this,"contains")?"contain ":"have ")+str,this.assert(ok,"expected #{this} to "+deepStr+str,"expected #{this} to not "+deepStr+str,expected.slice(0).sort(compareByInspect),actual.sort(compareByInspect),!0)}function assertThrows(errorLike,errMsgMatcher,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),ssfi=flag2(this,"ssfi"),flagMsg=flag2(this,"message"),negate=flag2(this,"negate")||!1;new Assertion(obj,flagMsg,ssfi,!0).is.a("function"),(isRegExp2(errorLike)||"string"==typeof errorLike)&&(errMsgMatcher=errorLike,errorLike=null);let caughtErr,errorWasThrown=!1;try{obj()}catch(err){errorWasThrown=!0,caughtErr=err}var everyArgIsUndefined=void 0===errorLike&&void 0===errMsgMatcher,everyArgIsDefined=!(!errorLike||!errMsgMatcher),errorLikeFail=!1,errMsgMatcherFail=!1;if(everyArgIsUndefined||!everyArgIsUndefined&&!negate){var errorLikeString="an error";errorLike instanceof Error?errorLikeString="#{exp}":errorLike&&(errorLikeString=check_error_exports.getConstructorName(errorLike));let actual=caughtErr;if(caughtErr instanceof Error)actual=caughtErr.toString();else if("string"==typeof caughtErr)actual=caughtErr;else if(caughtErr&&("object"==typeof caughtErr||"function"==typeof caughtErr))try{actual=check_error_exports.getConstructorName(caughtErr)}catch{}this.assert(errorWasThrown,"expected #{this} to throw "+errorLikeString,"expected #{this} to not throw an error but #{act} was thrown",errorLike&&errorLike.toString(),actual)}if(errorLike&&caughtErr){if(errorLike instanceof Error)check_error_exports.compatibleInstance(caughtErr,errorLike)===negate&&(everyArgIsDefined&&negate?errorLikeFail=!0:this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr&&!negate?" but #{act} was thrown":""),errorLike.toString(),caughtErr.toString()));check_error_exports.compatibleConstructor(caughtErr,errorLike)===negate&&(everyArgIsDefined&&negate?errorLikeFail=!0:this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr?" but #{act} was thrown":""),errorLike instanceof Error?errorLike.toString():errorLike&&check_error_exports.getConstructorName(errorLike),caughtErr instanceof Error?caughtErr.toString():caughtErr&&check_error_exports.getConstructorName(caughtErr)))}if(caughtErr&&null!=errMsgMatcher){var placeholder="including";isRegExp2(errMsgMatcher)&&(placeholder="matching"),check_error_exports.compatibleMessage(caughtErr,errMsgMatcher)===negate&&(everyArgIsDefined&&negate?errMsgMatcherFail=!0:this.assert(negate,"expected #{this} to throw error "+placeholder+" #{exp} but got #{act}","expected #{this} to throw error not "+placeholder+" #{exp}",errMsgMatcher,check_error_exports.getMessage(caughtErr)))}errorLikeFail&&errMsgMatcherFail&&this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr?" but #{act} was thrown":""),errorLike instanceof Error?errorLike.toString():errorLike&&check_error_exports.getConstructorName(errorLike),caughtErr instanceof Error?caughtErr.toString():caughtErr&&check_error_exports.getConstructorName(caughtErr)),flag2(this,"object",caughtErr)}function respondTo(method,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),itself=flag2(this,"itself"),context="function"!=typeof obj||itself?obj[method]:obj.prototype[method];this.assert("function"==typeof context,"expected #{this} to respond to "+dist_inspect2(method),"expected #{this} to not respond to "+dist_inspect2(method))}function satisfy(matcher,msg){msg&&flag2(this,"message",msg);var result=matcher(flag2(this,"object"));this.assert(result,"expected #{this} to satisfy "+objDisplay(matcher),"expected #{this} to not satisfy"+objDisplay(matcher),!flag2(this,"negate"),result)}function closeTo(expected,delta,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");if(new Assertion(obj,flagMsg,ssfi,!0).is.a("number"),"number"!=typeof expected||"number"!=typeof delta)throw new AssertionError((flagMsg=flagMsg?flagMsg+": ":"")+"the arguments to closeTo or approximately must be numbers"+(void 0===delta?", and a delta is required":""),void 0,ssfi);this.assert(Math.abs(obj-expected)<=delta,"expected #{this} to be close to "+expected+" +/- "+delta,"expected #{this} not to be close to "+expected+" +/- "+delta)}function isSubsetOf(_subset,_superset,cmp,contains,ordered){let superset=Array.from(_superset),subset=Array.from(_subset);if(!contains){if(subset.length!==superset.length)return!1;superset=superset.slice()}return subset.every((function(elem,idx){if(ordered)return cmp?cmp(elem,superset[idx]):elem===superset[idx];if(!cmp){var matchIdx=superset.indexOf(elem);return-1!==matchIdx&&(contains||superset.splice(matchIdx,1),!0)}return superset.some((function(elem2,matchIdx2){return!!cmp(elem,elem2)&&(contains||superset.splice(matchIdx2,1),!0)}))}))}function oneOf(list,msg){msg&&flag2(this,"message",msg);var expected=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi"),contains=flag2(this,"contains"),isDeep=flag2(this,"deep"),eql=flag2(this,"eql");new Assertion(list,flagMsg,ssfi,!0).to.be.an("array"),contains?this.assert(list.some((function(possibility){return expected.indexOf(possibility)>-1})),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",list,expected):isDeep?this.assert(list.some((function(possibility){return eql(expected,possibility)})),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",list,expected):this.assert(list.indexOf(expected)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",list,expected)}function assertChanges(subject,prop,msg){msg&&flag2(this,"message",msg);var initial,fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function"),prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),fn3();var final=null==prop?subject():subject[prop],msgObj=null==prop?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","change"),flag2(this,"realDelta",final!==initial),this.assert(initial!==final,"expected "+msgObj+" to change","expected "+msgObj+" to not change")}function assertIncreases(subject,prop,msg){msg&&flag2(this,"message",msg);var initial,fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function"),prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),new Assertion(initial,flagMsg,ssfi,!0).is.a("number"),fn3();var final=null==prop?subject():subject[prop],msgObj=null==prop?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","increase"),flag2(this,"realDelta",final-initial),this.assert(final-initial>0,"expected "+msgObj+" to increase","expected "+msgObj+" to not increase")}function assertDecreases(subject,prop,msg){msg&&flag2(this,"message",msg);var initial,fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function"),prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),new Assertion(initial,flagMsg,ssfi,!0).is.a("number"),fn3();var final=null==prop?subject():subject[prop],msgObj=null==prop?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","decrease"),flag2(this,"realDelta",initial-final),this.assert(final-initial<0,"expected "+msgObj+" to decrease","expected "+msgObj+" to not decrease")}function assertDelta(delta,msg){msg&&flag2(this,"message",msg);var expression,msgObj=flag2(this,"deltaMsgObj"),initial=flag2(this,"initialDeltaValue"),final=flag2(this,"finalDeltaValue"),behavior2=flag2(this,"deltaBehavior"),realDelta=flag2(this,"realDelta");expression="change"===behavior2?Math.abs(final-initial)===Math.abs(delta):realDelta===Math.abs(delta),this.assert(expression,"expected "+msgObj+" to "+behavior2+" by "+delta,"expected "+msgObj+" to not "+behavior2+" by "+delta)}function expect(val,message){return new Assertion(val,message)}__name(an,"an"),Assertion.addChainableMethod("an",an),Assertion.addChainableMethod("a",an),__name(SameValueZero,"SameValueZero"),__name(includeChainingBehavior,"includeChainingBehavior"),__name(include,"include"),Assertion.addChainableMethod("include",include,includeChainingBehavior),Assertion.addChainableMethod("contain",include,includeChainingBehavior),Assertion.addChainableMethod("contains",include,includeChainingBehavior),Assertion.addChainableMethod("includes",include,includeChainingBehavior),Assertion.addProperty("ok",(function(){this.assert(flag2(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")})),Assertion.addProperty("true",(function(){this.assert(!0===flag2(this,"object"),"expected #{this} to be true","expected #{this} to be false",!flag2(this,"negate"))})),Assertion.addProperty("callable",(function(){let val=flag2(this,"object"),ssfi=flag2(this,"ssfi"),message=flag2(this,"message"),msg=message?`${message}: `:"",negate=flag2(this,"negate"),assertionMessage=negate?`${msg}expected ${dist_inspect2(val)} not to be a callable function`:`${msg}expected ${dist_inspect2(val)} to be a callable function`,isCallable3=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(type(val));if(isCallable3&&negate||!isCallable3&&!negate)throw new AssertionError(assertionMessage,void 0,ssfi)})),Assertion.addProperty("false",(function(){this.assert(!1===flag2(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!flag2(this,"negate"))})),Assertion.addProperty("null",(function(){this.assert(null===flag2(this,"object"),"expected #{this} to be null","expected #{this} not to be null")})),Assertion.addProperty("undefined",(function(){this.assert(void 0===flag2(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")})),Assertion.addProperty("NaN",(function(){this.assert(isNaN22(flag2(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")})),__name(assertExist,"assertExist"),Assertion.addProperty("exist",assertExist),Assertion.addProperty("exists",assertExist),Assertion.addProperty("empty",(function(){var itemsCount,val=flag2(this,"object"),ssfi=flag2(this,"ssfi"),flagMsg=flag2(this,"message");switch(flagMsg=flagMsg?flagMsg+": ":"",type(val).toLowerCase()){case"array":case"string":itemsCount=val.length;break;case"map":case"set":itemsCount=val.size;break;case"weakmap":case"weakset":throw new AssertionError(flagMsg+".empty was passed a weak collection",void 0,ssfi);case"function":var msg=flagMsg+".empty was passed a function "+getName(val);throw new AssertionError(msg.trim(),void 0,ssfi);default:if(val!==Object(val))throw new AssertionError(flagMsg+".empty was passed non-string primitive "+dist_inspect2(val),void 0,ssfi);itemsCount=Object.keys(val).length}this.assert(0===itemsCount,"expected #{this} to be empty","expected #{this} not to be empty")})),__name(checkArguments,"checkArguments"),Assertion.addProperty("arguments",checkArguments),Assertion.addProperty("Arguments",checkArguments),__name(assertEqual,"assertEqual"),Assertion.addMethod("equal",assertEqual),Assertion.addMethod("equals",assertEqual),Assertion.addMethod("eq",assertEqual),__name(assertEql,"assertEql"),Assertion.addMethod("eql",assertEql),Assertion.addMethod("eqls",assertEql),__name(assertAbove,"assertAbove"),Assertion.addMethod("above",assertAbove),Assertion.addMethod("gt",assertAbove),Assertion.addMethod("greaterThan",assertAbove),__name(assertLeast,"assertLeast"),Assertion.addMethod("least",assertLeast),Assertion.addMethod("gte",assertLeast),Assertion.addMethod("greaterThanOrEqual",assertLeast),__name(assertBelow,"assertBelow"),Assertion.addMethod("below",assertBelow),Assertion.addMethod("lt",assertBelow),Assertion.addMethod("lessThan",assertBelow),__name(assertMost,"assertMost"),Assertion.addMethod("most",assertMost),Assertion.addMethod("lte",assertMost),Assertion.addMethod("lessThanOrEqual",assertMost),Assertion.addMethod("within",(function(start,finish,msg){msg&&flag2(this,"message",msg);var errorMessage,obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),startType=type(start).toLowerCase(),finishType=type(finish).toLowerCase(),shouldThrow=!0,range="date"===startType&&"date"===finishType?start.toISOString()+".."+finish.toISOString():start+".."+finish;if(doLength&&"map"!==objType&&"set"!==objType&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),doLength||"date"!==objType||"date"===startType&&"date"===finishType)if("number"===startType&&"number"===finishType||!doLength&&"number"!==objType)if(doLength||"date"===objType||"number"===objType)shouldThrow=!1;else{errorMessage=msgPrefix+"expected "+("string"===objType?"'"+obj+"'":obj)+" to be a number or a date"}else errorMessage=msgPrefix+"the arguments to within must be numbers";else errorMessage=msgPrefix+"the arguments to within must be dates";if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var itemsCount,descriptor="length";"map"===objType||"set"===objType?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>=start&&itemsCount<=finish,"expected #{this} to have a "+descriptor+" within "+range,"expected #{this} to not have a "+descriptor+" within "+range)}else this.assert(obj>=start&&obj<=finish,"expected #{this} to be within "+range,"expected #{this} to not be within "+range)})),__name(assertInstanceOf,"assertInstanceOf"),Assertion.addMethod("instanceof",assertInstanceOf),Assertion.addMethod("instanceOf",assertInstanceOf),__name(assertProperty,"assertProperty"),Assertion.addMethod("property",assertProperty),__name(assertOwnProperty,"assertOwnProperty"),Assertion.addMethod("ownProperty",assertOwnProperty),Assertion.addMethod("haveOwnProperty",assertOwnProperty),__name(assertOwnPropertyDescriptor,"assertOwnPropertyDescriptor"),Assertion.addMethod("ownPropertyDescriptor",assertOwnPropertyDescriptor),Assertion.addMethod("haveOwnPropertyDescriptor",assertOwnPropertyDescriptor),__name(assertLengthChain,"assertLengthChain"),__name(assertLength,"assertLength"),Assertion.addChainableMethod("length",assertLength,assertLengthChain),Assertion.addChainableMethod("lengthOf",assertLength,assertLengthChain),__name(assertMatch,"assertMatch"),Assertion.addMethod("match",assertMatch),Assertion.addMethod("matches",assertMatch),Assertion.addMethod("string",(function(str,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");new Assertion(obj,flag2(this,"message"),flag2(this,"ssfi"),!0).is.a("string"),this.assert(~obj.indexOf(str),"expected #{this} to contain "+dist_inspect2(str),"expected #{this} to not contain "+dist_inspect2(str))})),__name(assertKeys,"assertKeys"),Assertion.addMethod("keys",assertKeys),Assertion.addMethod("key",assertKeys),__name(assertThrows,"assertThrows"),Assertion.addMethod("throw",assertThrows),Assertion.addMethod("throws",assertThrows),Assertion.addMethod("Throw",assertThrows),__name(respondTo,"respondTo"),Assertion.addMethod("respondTo",respondTo),Assertion.addMethod("respondsTo",respondTo),Assertion.addProperty("itself",(function(){flag2(this,"itself",!0)})),__name(satisfy,"satisfy"),Assertion.addMethod("satisfy",satisfy),Assertion.addMethod("satisfies",satisfy),__name(closeTo,"closeTo"),Assertion.addMethod("closeTo",closeTo),Assertion.addMethod("approximately",closeTo),__name(isSubsetOf,"isSubsetOf"),Assertion.addMethod("members",(function(subset,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(obj,flagMsg,ssfi,!0).to.be.iterable,new Assertion(subset,flagMsg,ssfi,!0).to.be.iterable;var subject,failMsg,failNegateMsg,contains=flag2(this,"contains"),ordered=flag2(this,"ordered");contains?(failMsg="expected #{this} to be "+(subject=ordered?"an ordered superset":"a superset")+" of #{exp}",failNegateMsg="expected #{this} to not be "+subject+" of #{exp}"):(failMsg="expected #{this} to have the same "+(subject=ordered?"ordered members":"members")+" as #{exp}",failNegateMsg="expected #{this} to not have the same "+subject+" as #{exp}");var cmp=flag2(this,"deep")?flag2(this,"eql"):void 0;this.assert(isSubsetOf(subset,obj,cmp,contains,ordered),failMsg,failNegateMsg,subset,obj,!0)})),Assertion.addProperty("iterable",(function(msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");this.assert(null!=obj&&obj[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",obj)})),__name(oneOf,"oneOf"),Assertion.addMethod("oneOf",oneOf),__name(assertChanges,"assertChanges"),Assertion.addMethod("change",assertChanges),Assertion.addMethod("changes",assertChanges),__name(assertIncreases,"assertIncreases"),Assertion.addMethod("increase",assertIncreases),Assertion.addMethod("increases",assertIncreases),__name(assertDecreases,"assertDecreases"),Assertion.addMethod("decrease",assertDecreases),Assertion.addMethod("decreases",assertDecreases),__name(assertDelta,"assertDelta"),Assertion.addMethod("by",assertDelta),Assertion.addProperty("extensible",(function(){var obj=flag2(this,"object"),isExtensible=obj===Object(obj)&&Object.isExtensible(obj);this.assert(isExtensible,"expected #{this} to be extensible","expected #{this} to not be extensible")})),Assertion.addProperty("sealed",(function(){var obj=flag2(this,"object"),isSealed=obj!==Object(obj)||Object.isSealed(obj);this.assert(isSealed,"expected #{this} to be sealed","expected #{this} to not be sealed")})),Assertion.addProperty("frozen",(function(){var obj=flag2(this,"object"),isFrozen=obj!==Object(obj)||Object.isFrozen(obj);this.assert(isFrozen,"expected #{this} to be frozen","expected #{this} to not be frozen")})),Assertion.addProperty("finite",(function(msg){var obj=flag2(this,"object");this.assert("number"==typeof obj&&isFinite(obj),"expected #{this} to be a finite number","expected #{this} to not be a finite number")})),__name(expect,"expect"),expect.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),new AssertionError(message=message||"expect.fail()",{actual,expected,operator},expect.fail)};var should_exports={};function loadShould(){function shouldGetter(){return this instanceof String||this instanceof Number||this instanceof Boolean||"function"==typeof Symbol&&this instanceof Symbol||"function"==typeof BigInt&&this instanceof BigInt?new Assertion(this.valueOf(),null,shouldGetter):new Assertion(this,null,shouldGetter)}function shouldSetter(value){Object.defineProperty(this,"should",{value,enumerable:!0,configurable:!0,writable:!0})}__name(shouldGetter,"shouldGetter"),__name(shouldSetter,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:shouldSetter,get:shouldGetter,configurable:!0});var should2={fail:function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),new AssertionError(message=message||"should.fail()",{actual,expected,operator},should2.fail)},equal:function(actual,expected,message){new Assertion(actual,message).to.equal(expected)},Throw:function(fn3,errt,errs,msg){new Assertion(fn3,msg).to.Throw(errt,errs)},exist:function(val,msg){new Assertion(val,msg).to.exist},not:{}};return should2.not.equal=function(actual,expected,msg){new Assertion(actual,msg).to.not.equal(expected)},should2.not.Throw=function(fn3,errt,errs,msg){new Assertion(fn3,msg).to.not.Throw(errt,errs)},should2.not.exist=function(val,msg){new Assertion(val,msg).to.not.exist},should2.throw=should2.Throw,should2.not.throw=should2.not.Throw,should2}__export2(should_exports,{Should:()=>Should,should:()=>should}),__name(loadShould,"loadShould");var should=loadShould,Should=loadShould;function assert(express,errmsg){new Assertion(null,null,assert,!0).assert(express,errmsg,"[ negation message unavailable ]")}__name(assert,"assert"),assert.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),new AssertionError(message=message||"assert.fail()",{actual,expected,operator},assert.fail)},assert.isOk=function(val,msg){new Assertion(val,msg,assert.isOk,!0).is.ok},assert.isNotOk=function(val,msg){new Assertion(val,msg,assert.isNotOk,!0).is.not.ok},assert.equal=function(act,exp,msg){var test22=new Assertion(act,msg,assert.equal,!0);test22.assert(exp==flag(test22,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",exp,act,!0)},assert.notEqual=function(act,exp,msg){var test22=new Assertion(act,msg,assert.notEqual,!0);test22.assert(exp!=flag(test22,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",exp,act,!0)},assert.strictEqual=function(act,exp,msg){new Assertion(act,msg,assert.strictEqual,!0).to.equal(exp)},assert.notStrictEqual=function(act,exp,msg){new Assertion(act,msg,assert.notStrictEqual,!0).to.not.equal(exp)},assert.deepEqual=assert.deepStrictEqual=function(act,exp,msg){new Assertion(act,msg,assert.deepEqual,!0).to.eql(exp)},assert.notDeepEqual=function(act,exp,msg){new Assertion(act,msg,assert.notDeepEqual,!0).to.not.eql(exp)},assert.isAbove=function(val,abv,msg){new Assertion(val,msg,assert.isAbove,!0).to.be.above(abv)},assert.isAtLeast=function(val,atlst,msg){new Assertion(val,msg,assert.isAtLeast,!0).to.be.least(atlst)},assert.isBelow=function(val,blw,msg){new Assertion(val,msg,assert.isBelow,!0).to.be.below(blw)},assert.isAtMost=function(val,atmst,msg){new Assertion(val,msg,assert.isAtMost,!0).to.be.most(atmst)},assert.isTrue=function(val,msg){new Assertion(val,msg,assert.isTrue,!0).is.true},assert.isNotTrue=function(val,msg){new Assertion(val,msg,assert.isNotTrue,!0).to.not.equal(!0)},assert.isFalse=function(val,msg){new Assertion(val,msg,assert.isFalse,!0).is.false},assert.isNotFalse=function(val,msg){new Assertion(val,msg,assert.isNotFalse,!0).to.not.equal(!1)},assert.isNull=function(val,msg){new Assertion(val,msg,assert.isNull,!0).to.equal(null)},assert.isNotNull=function(val,msg){new Assertion(val,msg,assert.isNotNull,!0).to.not.equal(null)},assert.isNaN=function(val,msg){new Assertion(val,msg,assert.isNaN,!0).to.be.NaN},assert.isNotNaN=function(value,message){new Assertion(value,message,assert.isNotNaN,!0).not.to.be.NaN},assert.exists=function(val,msg){new Assertion(val,msg,assert.exists,!0).to.exist},assert.notExists=function(val,msg){new Assertion(val,msg,assert.notExists,!0).to.not.exist},assert.isUndefined=function(val,msg){new Assertion(val,msg,assert.isUndefined,!0).to.equal(void 0)},assert.isDefined=function(val,msg){new Assertion(val,msg,assert.isDefined,!0).to.not.equal(void 0)},assert.isCallable=function(value,message){new Assertion(value,message,assert.isCallable,!0).is.callable},assert.isNotCallable=function(value,message){new Assertion(value,message,assert.isNotCallable,!0).is.not.callable},assert.isObject=function(val,msg){new Assertion(val,msg,assert.isObject,!0).to.be.a("object")},assert.isNotObject=function(val,msg){new Assertion(val,msg,assert.isNotObject,!0).to.not.be.a("object")},assert.isArray=function(val,msg){new Assertion(val,msg,assert.isArray,!0).to.be.an("array")},assert.isNotArray=function(val,msg){new Assertion(val,msg,assert.isNotArray,!0).to.not.be.an("array")},assert.isString=function(val,msg){new Assertion(val,msg,assert.isString,!0).to.be.a("string")},assert.isNotString=function(val,msg){new Assertion(val,msg,assert.isNotString,!0).to.not.be.a("string")},assert.isNumber=function(val,msg){new Assertion(val,msg,assert.isNumber,!0).to.be.a("number")},assert.isNotNumber=function(val,msg){new Assertion(val,msg,assert.isNotNumber,!0).to.not.be.a("number")},assert.isFinite=function(val,msg){new Assertion(val,msg,assert.isFinite,!0).to.be.finite},assert.isBoolean=function(val,msg){new Assertion(val,msg,assert.isBoolean,!0).to.be.a("boolean")},assert.isNotBoolean=function(val,msg){new Assertion(val,msg,assert.isNotBoolean,!0).to.not.be.a("boolean")},assert.typeOf=function(val,type32,msg){new Assertion(val,msg,assert.typeOf,!0).to.be.a(type32)},assert.notTypeOf=function(value,type32,message){new Assertion(value,message,assert.notTypeOf,!0).to.not.be.a(type32)},assert.instanceOf=function(val,type32,msg){new Assertion(val,msg,assert.instanceOf,!0).to.be.instanceOf(type32)},assert.notInstanceOf=function(val,type32,msg){new Assertion(val,msg,assert.notInstanceOf,!0).to.not.be.instanceOf(type32)},assert.include=function(exp,inc,msg){new Assertion(exp,msg,assert.include,!0).include(inc)},assert.notInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notInclude,!0).not.include(inc)},assert.deepInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepInclude,!0).deep.include(inc)},assert.notDeepInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepInclude,!0).not.deep.include(inc)},assert.nestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.nestedInclude,!0).nested.include(inc)},assert.notNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notNestedInclude,!0).not.nested.include(inc)},assert.deepNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepNestedInclude,!0).deep.nested.include(inc)},assert.notDeepNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepNestedInclude,!0).not.deep.nested.include(inc)},assert.ownInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.ownInclude,!0).own.include(inc)},assert.notOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notOwnInclude,!0).not.own.include(inc)},assert.deepOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepOwnInclude,!0).deep.own.include(inc)},assert.notDeepOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepOwnInclude,!0).not.deep.own.include(inc)},assert.match=function(exp,re,msg){new Assertion(exp,msg,assert.match,!0).to.match(re)},assert.notMatch=function(exp,re,msg){new Assertion(exp,msg,assert.notMatch,!0).to.not.match(re)},assert.property=function(obj,prop,msg){new Assertion(obj,msg,assert.property,!0).to.have.property(prop)},assert.notProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notProperty,!0).to.not.have.property(prop)},assert.propertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.propertyVal,!0).to.have.property(prop,val)},assert.notPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notPropertyVal,!0).to.not.have.property(prop,val)},assert.deepPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.deepPropertyVal,!0).to.have.deep.property(prop,val)},assert.notDeepPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notDeepPropertyVal,!0).to.not.have.deep.property(prop,val)},assert.ownProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.ownProperty,!0).to.have.own.property(prop)},assert.notOwnProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notOwnProperty,!0).to.not.have.own.property(prop)},assert.ownPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.ownPropertyVal,!0).to.have.own.property(prop,value)},assert.notOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.notOwnPropertyVal,!0).to.not.have.own.property(prop,value)},assert.deepOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.deepOwnPropertyVal,!0).to.have.deep.own.property(prop,value)},assert.notDeepOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(prop,value)},assert.nestedProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.nestedProperty,!0).to.have.nested.property(prop)},assert.notNestedProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notNestedProperty,!0).to.not.have.nested.property(prop)},assert.nestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.nestedPropertyVal,!0).to.have.nested.property(prop,val)},assert.notNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notNestedPropertyVal,!0).to.not.have.nested.property(prop,val)},assert.deepNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.deepNestedPropertyVal,!0).to.have.deep.nested.property(prop,val)},assert.notDeepNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(prop,val)},assert.lengthOf=function(exp,len,msg){new Assertion(exp,msg,assert.lengthOf,!0).to.have.lengthOf(len)},assert.hasAnyKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAnyKeys,!0).to.have.any.keys(keys2)},assert.hasAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAllKeys,!0).to.have.all.keys(keys2)},assert.containsAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.containsAllKeys,!0).to.contain.all.keys(keys2)},assert.doesNotHaveAnyKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAnyKeys,!0).to.not.have.any.keys(keys2)},assert.doesNotHaveAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAllKeys,!0).to.not.have.all.keys(keys2)},assert.hasAnyDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAnyDeepKeys,!0).to.have.any.deep.keys(keys2)},assert.hasAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAllDeepKeys,!0).to.have.all.deep.keys(keys2)},assert.containsAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.containsAllDeepKeys,!0).to.contain.all.deep.keys(keys2)},assert.doesNotHaveAnyDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(keys2)},assert.doesNotHaveAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(keys2)},assert.throws=function(fn3,errorLike,errMsgMatcher,msg){return("string"==typeof errorLike||errorLike instanceof RegExp)&&(errMsgMatcher=errorLike,errorLike=null),flag(new Assertion(fn3,msg,assert.throws,!0).to.throw(errorLike,errMsgMatcher),"object")},assert.doesNotThrow=function(fn3,errorLike,errMsgMatcher,message){("string"==typeof errorLike||errorLike instanceof RegExp)&&(errMsgMatcher=errorLike,errorLike=null),new Assertion(fn3,message,assert.doesNotThrow,!0).to.not.throw(errorLike,errMsgMatcher)},assert.operator=function(val,operator,val2,msg){var ok;switch(operator){case"==":ok=val==val2;break;case"===":ok=val===val2;break;case">":ok=val>val2;break;case">=":ok=val>=val2;break;case"<":ok=valtoBeChecked,toBeDisabled:()=>toBeDisabled,toBeEmpty:()=>toBeEmpty,toBeEmptyDOMElement:()=>toBeEmptyDOMElement,toBeEnabled:()=>toBeEnabled,toBeInTheDOM:()=>toBeInTheDOM,toBeInTheDocument:()=>toBeInTheDocument,toBeInvalid:()=>toBeInvalid,toBePartiallyChecked:()=>toBePartiallyChecked,toBeRequired:()=>toBeRequired,toBeValid:()=>toBeValid,toBeVisible:()=>toBeVisible,toContainElement:()=>toContainElement,toContainHTML:()=>toContainHTML,toHaveAccessibleDescription:()=>toHaveAccessibleDescription,toHaveAccessibleErrorMessage:()=>toHaveAccessibleErrorMessage,toHaveAccessibleName:()=>toHaveAccessibleName,toHaveAttribute:()=>toHaveAttribute,toHaveClass:()=>toHaveClass,toHaveDescription:()=>toHaveDescription,toHaveDisplayValue:()=>toHaveDisplayValue,toHaveErrorMessage:()=>toHaveErrorMessage,toHaveFocus:()=>toHaveFocus,toHaveFormValues:()=>toHaveFormValues,toHaveRole:()=>toHaveRole,toHaveStyle:()=>toHaveStyle,toHaveTextContent:()=>toHaveTextContent,toHaveValue:()=>toHaveValue});var import_redent=__toESM(require_redent(),1);function $parcel$defineInteropFlag(a2){Object.defineProperty(a2,"__esModule",{value:!0,configurable:!0})}function $parcel$export(e,n,v,s){Object.defineProperty(e,n,{get:v,set:s,enumerable:!0,configurable:!0})}var $009ddb00d3ec72b8$exports={};$parcel$defineInteropFlag($009ddb00d3ec72b8$exports),$parcel$export($009ddb00d3ec72b8$exports,"default",(()=>$009ddb00d3ec72b8$export$2e2bcd8739ae039));var $009ddb00d3ec72b8$export$2e2bcd8739ae039=class extends Error{constructor(filename,msg,lineno,column,css){super(filename+":"+lineno+":"+column+": "+msg),this.reason=msg,this.filename=filename,this.line=lineno,this.column=column,this.source=css}},$0865a9fb4cc365fe$exports={};$parcel$defineInteropFlag($0865a9fb4cc365fe$exports),$parcel$export($0865a9fb4cc365fe$exports,"default",(()=>$0865a9fb4cc365fe$export$2e2bcd8739ae039));var $b2e137848b48cf4f$export$9be5dd6e61d5d73a,CssTypes,$0865a9fb4cc365fe$export$2e2bcd8739ae039=class{constructor(start,end,source){this.start=start,this.end=end,this.source=source}};$parcel$export({},"CssTypes",(()=>$b2e137848b48cf4f$export$9be5dd6e61d5d73a)),(CssTypes=$b2e137848b48cf4f$export$9be5dd6e61d5d73a||($b2e137848b48cf4f$export$9be5dd6e61d5d73a={})).stylesheet="stylesheet",CssTypes.rule="rule",CssTypes.declaration="declaration",CssTypes.comment="comment",CssTypes.container="container",CssTypes.charset="charset",CssTypes.document="document",CssTypes.customMedia="custom-media",CssTypes.fontFace="font-face",CssTypes.host="host",CssTypes.import="import",CssTypes.keyframes="keyframes",CssTypes.keyframe="keyframe",CssTypes.layer="layer",CssTypes.media="media",CssTypes.namespace="namespace",CssTypes.page="page",CssTypes.startingStyle="starting-style",CssTypes.supports="supports";var $d708735ed1303b43$var$commentre=/\/\*[^]*?(?:\*\/|$)/g;function $d708735ed1303b43$var$trim(str){return str?str.trim():""}function $d708735ed1303b43$var$addParent(obj,parent){let isNode=obj&&"string"==typeof obj.type,childParent=isNode?obj:parent;for(let k2 in obj){let value=obj[k2];Array.isArray(value)?value.forEach((v=>{$d708735ed1303b43$var$addParent(v,childParent)})):value&&"object"==typeof value&&$d708735ed1303b43$var$addParent(value,childParent)}return isNode&&Object.defineProperty(obj,"parent",{configurable:!0,writable:!0,enumerable:!1,value:parent||null}),obj}var $149c1bd638913645$export$98e6a39c04603d36=(css,options)=>{options=options||{};let lineno=1,column=1;function position(){let start={line:lineno,column};return function(node){return node.position=new $0865a9fb4cc365fe$export$2e2bcd8739ae039(start,{line:lineno,column},options?.source||""),whitespace(),node}}let errorsList=[];function error(msg){let err=new $009ddb00d3ec72b8$export$2e2bcd8739ae039(options?.source||"",msg,lineno,column,css);if(!options?.silent)throw err;errorsList.push(err)}function open(){return match(/^{\s*/)}function close(){return match(/^}/)}function rules(){let node,rules2=[];for(whitespace(),comments(rules2);css.length&&"}"!==css.charAt(0)&&(node=atrule()||rule());)node&&(rules2.push(node),comments(rules2));return rules2}function match(re){let m2=re.exec(css);if(!m2)return;let str=m2[0];return function updatePosition(str){let lines=str.match(/\n/g);lines&&(lineno+=lines.length);let i=str.lastIndexOf("\n");column=~i?str.length-i:column+str.length}(str),css=css.slice(str.length),m2}function whitespace(){match(/^\s*/)}function comments(rules2){let c;for(rules2=rules2||[];c=comment();)c&&rules2.push(c);return rules2}function comment(){let pos=position();if("/"!==css.charAt(0)||"*"!==css.charAt(1))return;let m2=match(/^\/\*[^]*?\*\//);return m2?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.comment,comment:m2[0].slice(2,-2)}):error("End of comment missing")}function findClosingParenthese(str,start,depth){let ptr=start+1,found=!1,closeParentheses=str.indexOf(")",ptr);for(;!found&&-1!==closeParentheses;){let nextParentheses=str.indexOf("(",ptr);-1!==nextParentheses&&nextParenthesesm3.replace(/,/g,"‌"))),res.split(",").map((s=>$d708735ed1303b43$var$trim(s.replace(/\u200C/g,","))))}function declaration(){let pos=position(),propMatch=match(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!propMatch)return;let propValue=$d708735ed1303b43$var$trim(propMatch[0]);if(!match(/^:\s*/))return error("property missing ':'");let val=match(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),ret=pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.declaration,property:propValue.replace($d708735ed1303b43$var$commentre,""),value:val?$d708735ed1303b43$var$trim(val[0]).replace($d708735ed1303b43$var$commentre,""):""});return match(/^[;\s]*/),ret}function declarations(){let decl,decls=[];if(!open())return error("missing '{'");for(comments(decls);decl=declaration();)decl&&(decls.push(decl),comments(decls));return close()?decls:error("missing '}'")}function keyframe(){let m2,vals=[],pos=position();for(;m2=match(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)vals.push(m2[1]),match(/^,\s*/);if(vals.length)return pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframe,values:vals,declarations:declarations()||[]})}let atimport=_compileAtrule("import"),atcharset=_compileAtrule("charset"),atnamespace=_compileAtrule("namespace");function _compileAtrule(name){let re=new RegExp("^@"+name+"\\s*((?::?[^;'\"]|\"(?:\\\\\"|[^\"])*?\"|'(?:\\\\'|[^'])*?')+)(?:;|$)");return function(){let pos=position(),m2=match(re);if(!m2)return;let ret={type:name};return ret[name]=m2[1].trim(),pos(ret)}}function atrule(){if("@"===css[0])return function atkeyframes(){let pos=position(),m1=match(/^@([-\w]+)?keyframes\s*/);if(!m1)return;let vendor=m1[1],m2=match(/^([-\w]+)\s*/);if(!m2)return error("@keyframes missing name");let name=m2[1];if(!open())return error("@keyframes missing '{'");let frame,frames=comments();for(;frame=keyframe();)frames.push(frame),frames=frames.concat(comments());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframes,name,vendor,keyframes:frames}):error("@keyframes missing '}'")}()||function atmedia(){let pos=position(),m2=match(/^@media *([^{]+)/);if(!m2)return;let media=$d708735ed1303b43$var$trim(m2[1]);if(!open())return error("@media missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.media,media,rules:style}):error("@media missing '}'")}()||function atcustommedia(){let pos=position(),m2=match(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(m2)return pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.customMedia,name:$d708735ed1303b43$var$trim(m2[1]),media:$d708735ed1303b43$var$trim(m2[2])})}()||function atsupports(){let pos=position(),m2=match(/^@supports *([^{]+)/);if(!m2)return;let supports=$d708735ed1303b43$var$trim(m2[1]);if(!open())return error("@supports missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.supports,supports,rules:style}):error("@supports missing '}'")}()||atimport()||atcharset()||atnamespace()||function atdocument(){let pos=position(),m2=match(/^@([-\w]+)?document *([^{]+)/);if(!m2)return;let vendor=$d708735ed1303b43$var$trim(m2[1]),doc=$d708735ed1303b43$var$trim(m2[2]);if(!open())return error("@document missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.document,document:doc,vendor,rules:style}):error("@document missing '}'")}()||function atpage(){let pos=position();if(!match(/^@page */))return;let sel=selector()||[];if(!open())return error("@page missing '{'");let decl,decls=comments();for(;decl=declaration();)decls.push(decl),decls=decls.concat(comments());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.page,selectors:sel,declarations:decls}):error("@page missing '}'")}()||function athost(){let pos=position();if(!match(/^@host\s*/))return;if(!open())return error("@host missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.host,rules:style}):error("@host missing '}'")}()||function atfontface(){let pos=position();if(!match(/^@font-face\s*/))return;if(!open())return error("@font-face missing '{'");let decl,decls=comments();for(;decl=declaration();)decls.push(decl),decls=decls.concat(comments());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.fontFace,declarations:decls}):error("@font-face missing '}'")}()||function atcontainer(){let pos=position(),m2=match(/^@container *([^{]+)/);if(!m2)return;let container=$d708735ed1303b43$var$trim(m2[1]);if(!open())return error("@container missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.container,container,rules:style}):error("@container missing '}'")}()||function atstartingstyle(){let pos=position();if(!match(/^@starting-style\s*/))return;if(!open())return error("@starting-style missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.startingStyle,rules:style}):error("@starting-style missing '}'")}()||function atlayer(){let pos=position(),m2=match(/^@layer *([^{;@]+)/);if(!m2)return;let layer=$d708735ed1303b43$var$trim(m2[1]);if(!open())return match(/^[;\s]*/),pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer,layer});let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer,layer,rules:style}):error("@layer missing '}'")}()}function rule(){let pos=position(),sel=selector();return sel?(comments(),pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.rule,selectors:sel,declarations:declarations()||[]})):error("selector missing")}return $d708735ed1303b43$var$addParent(function stylesheet(){let rulesList=rules();return{type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.stylesheet,stylesheet:{source:options?.source,rules:rulesList,parsingErrors:errorsList}}}())},toStr=Object.prototype.toString;function isCallable(fn3){return"function"==typeof fn3||"[object Function]"===toStr.call(fn3)}var maxSafeInteger=Math.pow(2,53)-1;function toLength(value){var len=function toInteger(value){var number=Number(value);return isNaN(number)?0:0!==number&&isFinite(number)?(number>0?1:-1)*Math.floor(Math.abs(number)):number}(value);return Math.min(Math.max(len,0),maxSafeInteger)}function arrayFrom(arrayLike,mapFn){var C3=Array,items=Object(arrayLike);if(null==arrayLike)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof mapFn<"u"&&!isCallable(mapFn))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var kValue,len=toLength(items.length),A=isCallable(C3)?Object(new C3(len)):new Array(len),k2=0;k20&&void 0!==arguments[0]?arguments[0]:[];(function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")})(this,SetLike3),function _defineProperty(obj,key,value){return(key=_toPropertyKey(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}(this,"items",void 0),this.items=items}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(SetLike3,[{key:"add",value:function(value){return!1===this.has(value)&&this.items.push(value),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(value){var previousLength=this.items.length;return this.items=this.items.filter((function(item){return item!==value})),previousLength!==this.items.length}},{key:"forEach",value:function(callbackfn){var _this=this;this.items.forEach((function(item){callbackfn(item,item,_this)}))}},{key:"has",value:function(value){return-1!==this.items.indexOf(value)}},{key:"size",get:function(){return this.items.length}}]),SetLike3}(),SetLike_default=typeof Set>"u"?Set:SetLike;function getLocalName(element){var _element$localName;return null!==(_element$localName=element.localName)&&void 0!==_element$localName?_element$localName:element.tagName.toLowerCase()}var localNameToRoleMappings={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},prohibitedAttributes={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),none:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function ignorePresentationalRole(element,implicitRole){return function hasGlobalAriaAttributes(element,role){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-description","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some((function(attributeName){var _prohibitedAttributes;return element.hasAttribute(attributeName)&&!(null!==(_prohibitedAttributes=prohibitedAttributes[role])&&void 0!==_prohibitedAttributes&&_prohibitedAttributes.has(attributeName))}))}(element,implicitRole)}function getRole(element){var explicitRole=function getExplicitRole(element){var role=element.getAttribute("role");if(null!==role){var explicitRole=role.trim().split(" ")[0];if(explicitRole.length>0)return explicitRole}return null}(element);if(null===explicitRole||-1!==presentationRoles.indexOf(explicitRole)){var implicitRole=function getImplicitRole(element){var mappedByTag=localNameToRoleMappings[getLocalName(element)];if(void 0!==mappedByTag)return mappedByTag;switch(getLocalName(element)){case"a":case"area":case"link":if(element.hasAttribute("href"))return"link";break;case"img":return""!==element.getAttribute("alt")||ignorePresentationalRole(element,"img")?"img":"presentation";case"input":var type5=element.type;switch(type5){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return type5;case"range":return"slider";case"email":case"tel":case"text":case"url":return element.hasAttribute("list")?"combobox":"textbox";case"search":return element.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}case"select":return element.hasAttribute("multiple")||element.size>1?"listbox":"combobox"}return null}(element);if(-1===presentationRoles.indexOf(explicitRole||"")||ignorePresentationalRole(element,implicitRole||""))return implicitRole}return explicitRole}var presentationRoles=["presentation","none"];function isElement(node){return null!==node&&node.nodeType===node.ELEMENT_NODE}function isHTMLTableCaptionElement(node){return isElement(node)&&"caption"===getLocalName(node)}function isHTMLInputElement(node){return isElement(node)&&"input"===getLocalName(node)}function isHTMLLegendElement(node){return isElement(node)&&"legend"===getLocalName(node)}function isSVGTitleElement(node){return function isSVGElement(node){return isElement(node)&&void 0!==node.ownerSVGElement}(node)&&"title"===getLocalName(node)}function queryIdRefs(node,attributeName){if(isElement(node)&&node.hasAttribute(attributeName)){var ids=node.getAttribute(attributeName).split(" "),root=node.getRootNode?node.getRootNode():node.ownerDocument;return ids.map((function(id){return root.getElementById(id)})).filter((function(element){return null!==element}))}return[]}function hasAnyConcreteRoles(node,roles3){return!!isElement(node)&&-1!==roles3.indexOf(getRole(node))}function hasAbstractRole(node,role){if(!isElement(node))return!1;if("range"===role)return hasAnyConcreteRoles(node,["meter","progressbar","scrollbar","slider","spinbutton"]);throw new TypeError("No knowledge about abstract role '".concat(role,"'. This is likely a bug :("))}function querySelectorAllSubtree(element,selectors){var elements=arrayFrom(element.querySelectorAll(selectors));return queryIdRefs(element,"aria-owns").forEach((function(root){elements.push.apply(elements,arrayFrom(root.querySelectorAll(selectors)))})),elements}function querySelectedOptions(listbox){return function isHTMLSelectElement(node){return isElement(node)&&"select"===getLocalName(node)}(listbox)?listbox.selectedOptions||querySelectorAllSubtree(listbox,"[selected]"):querySelectorAllSubtree(listbox,'[aria-selected="true"]')}function getValueOfTextbox(element){return isHTMLInputElement(element)||function isHTMLTextAreaElement(node){return isElement(node)&&"textarea"===getLocalName(node)}(element)?element.value:element.textContent||""}function getTextualContent(declaration){var content=declaration.getPropertyValue("content");return/^["'].*["']$/.test(content)?content.slice(1,-1):""}function isLabelableElement(element){var localName=getLocalName(element);return"button"===localName||"input"===localName&&"hidden"!==element.getAttribute("type")||"meter"===localName||"output"===localName||"progress"===localName||"select"===localName||"textarea"===localName}function findLabelableElement(element){if(isLabelableElement(element))return element;var labelableElement=null;return element.childNodes.forEach((function(childNode){if(null===labelableElement&&isElement(childNode)){var descendantLabelableElement=findLabelableElement(childNode);null!==descendantLabelableElement&&(labelableElement=descendantLabelableElement)}})),labelableElement}function getControlOfLabel(label){if(void 0!==label.control)return label.control;var htmlFor=label.getAttribute("for");return null!==htmlFor?label.ownerDocument.getElementById(htmlFor):findLabelableElement(label)}function computeTextAlternative(root){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},consultedNodes=new SetLike_default,window2=function safeWindow(node){var defaultView=(null===node.ownerDocument?node:node.ownerDocument).defaultView;if(null===defaultView)throw new TypeError("no window available");return defaultView}(root),_options$compute=options.compute,compute=void 0===_options$compute?"name":_options$compute,_options$computedStyl=options.computedStyleSupportsPseudoElements,computedStyleSupportsPseudoElements=void 0===_options$computedStyl?void 0!==options.getComputedStyle:_options$computedStyl,_options$getComputedS=options.getComputedStyle,getComputedStyle=void 0===_options$getComputedS?window2.getComputedStyle.bind(window2):_options$getComputedS,_options$hidden=options.hidden,hidden=void 0!==_options$hidden&&_options$hidden;function computeMiscTextAlternative(node,context){var accumulatedText="";if(isElement(node)&&computedStyleSupportsPseudoElements){var beforeContent=getTextualContent(getComputedStyle(node,"::before"));accumulatedText="".concat(beforeContent," ").concat(accumulatedText)}if((function isHTMLSlotElement(node){return isElement(node)&&"slot"===getLocalName(node)}(node)?function getSlotContents(slot){var assignedNodes=slot.assignedNodes();return 0===assignedNodes.length?arrayFrom(slot.childNodes):assignedNodes}(node):arrayFrom(node.childNodes).concat(queryIdRefs(node,"aria-owns"))).forEach((function(child){var result=computeTextAlternative3(child,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),separator="inline"!==(isElement(child)?getComputedStyle(child).getPropertyValue("display"):"inline")?" ":"";accumulatedText+="".concat(separator).concat(result).concat(separator)})),isElement(node)&&computedStyleSupportsPseudoElements){var afterContent=getTextualContent(getComputedStyle(node,"::after"));accumulatedText="".concat(accumulatedText," ").concat(afterContent)}return accumulatedText.trim()}function useAttribute(element,attributeName){var attribute=element.getAttributeNode(attributeName);return null===attribute||consultedNodes.has(attribute)||""===attribute.value.trim()?null:(consultedNodes.add(attribute),attribute.value)}function computeElementTextAlternative(node){if(!isElement(node))return null;if(function isHTMLFieldSetElement(node){return isElement(node)&&"fieldset"===getLocalName(node)}(node)){consultedNodes.add(node);for(var children=arrayFrom(node.childNodes),i=0;i0})).join(" ");if(isHTMLInputElement(node)&&"image"===node.type){var _nameFromAlt=useAttribute(node,"alt");if(null!==_nameFromAlt)return _nameFromAlt;var nameFromTitle=useAttribute(node,"title");return null!==nameFromTitle?nameFromTitle:"Submit Query"}if(hasAnyConcreteRoles(node,["button"])){var nameFromSubTree=computeMiscTextAlternative(node,{isEmbeddedInLabel:!1,isReferenced:!1});if(""!==nameFromSubTree)return nameFromSubTree}return null}function computeTextAlternative3(current,context){if(consultedNodes.has(current))return"";if(!hidden&&function isHidden(node,getComputedStyleImplementation){if(!isElement(node))return!1;if(node.hasAttribute("hidden")||"true"===node.getAttribute("aria-hidden"))return!0;var style=getComputedStyleImplementation(node);return"none"===style.getPropertyValue("display")||"hidden"===style.getPropertyValue("visibility")}(current,getComputedStyle)&&!context.isReferenced)return consultedNodes.add(current),"";var labelAttributeNode=isElement(current)?current.getAttributeNode("aria-labelledby"):null,labelElements=null===labelAttributeNode||consultedNodes.has(labelAttributeNode)?[]:queryIdRefs(current,"aria-labelledby");if("name"===compute&&!context.isReferenced&&labelElements.length>0)return consultedNodes.add(labelAttributeNode),labelElements.map((function(element){return computeTextAlternative3(element,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!0,recursion:!1})})).join(" ");var skipToStep2E=context.recursion&&function isControl(node){return hasAnyConcreteRoles(node,["button","combobox","listbox","textbox"])||hasAbstractRole(node,"range")}(current)&&"name"===compute;if(!skipToStep2E){var ariaLabel=(isElement(current)&¤t.getAttribute("aria-label")||"").trim();if(""!==ariaLabel&&"name"===compute)return consultedNodes.add(current),ariaLabel;if(!function isMarkedPresentational(node){return hasAnyConcreteRoles(node,presentationRoles)}(current)){var elementTextAlternative=computeElementTextAlternative(current);if(null!==elementTextAlternative)return consultedNodes.add(current),elementTextAlternative}}if(hasAnyConcreteRoles(current,["menu"]))return consultedNodes.add(current),"";if(skipToStep2E||context.isEmbeddedInLabel||context.isReferenced){if(hasAnyConcreteRoles(current,["combobox","listbox"])){consultedNodes.add(current);var selectedOptions=querySelectedOptions(current);return 0===selectedOptions.length?isHTMLInputElement(current)?current.value:"":arrayFrom(selectedOptions).map((function(selectedOption){return computeTextAlternative3(selectedOption,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1,recursion:!0})})).join(" ")}if(hasAbstractRole(current,"range"))return consultedNodes.add(current),current.hasAttribute("aria-valuetext")?current.getAttribute("aria-valuetext"):current.hasAttribute("aria-valuenow")?current.getAttribute("aria-valuenow"):current.getAttribute("value")||"";if(hasAnyConcreteRoles(current,["textbox"]))return consultedNodes.add(current),getValueOfTextbox(current)}if(function allowsNameFromContent(node){return hasAnyConcreteRoles(node,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}(current)||isElement(current)&&context.isReferenced||function isNativeHostLanguageTextAlternativeElement(node){return isHTMLTableCaptionElement(node)}(current)){var accumulatedText2F=computeMiscTextAlternative(current,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1});if(""!==accumulatedText2F)return consultedNodes.add(current),accumulatedText2F}if(current.nodeType===current.TEXT_NODE)return consultedNodes.add(current),current.textContent||"";if(context.recursion)return consultedNodes.add(current),computeMiscTextAlternative(current,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1});var tooltipAttributeValue=function computeTooltipAttributeValue(node){return isElement(node)?useAttribute(node,"title"):null}(current);return null!==tooltipAttributeValue?(consultedNodes.add(current),tooltipAttributeValue):(consultedNodes.add(current),"")}return function asFlatString(s){return s.trim().replace(/\s\s+/g," ")}(computeTextAlternative3(root,{isEmbeddedInLabel:!1,isReferenced:"description"===compute,recursion:!1}))}function _typeof2(o){return(_typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2})(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r2){return Object.getOwnPropertyDescriptor(e,r2).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:{};return function prohibitsNaming(node){return hasAnyConcreteRoles(node,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}(root)?"":computeTextAlternative(root,options)}var import_aria_query=__toESM(require_lib(),1),import_chalk=__toESM(require_source(),1),import_isEqualWith=__toESM(require_isEqualWith(),1),import_css=__toESM(require_css_escape(),1),GenericTypeError=class extends Error{constructor(expectedString,received,matcherFn,context){super(),Error.captureStackTrace&&Error.captureStackTrace(this,matcherFn);let withType="";try{withType=context.utils.printWithType("Received",received,context.utils.printReceived)}catch{}this.message=[context.utils.matcherHint(`${context.isNot?".not":""}.${matcherFn.name}`,"received",""),"",`${context.utils.RECEIVED_COLOR("received")} value must ${expectedString}.`,withType].join("\n")}},HtmlElementTypeError=class extends GenericTypeError{constructor(...args){super("be an HTMLElement or an SVGElement",...args)}},NodeTypeError=class extends GenericTypeError{constructor(...args){super("be a Node",...args)}};function checkHasWindow(htmlElement,ErrorClass,...args){if(!htmlElement||!htmlElement.ownerDocument||!htmlElement.ownerDocument.defaultView)throw new ErrorClass(htmlElement,...args)}function checkHtmlElement(htmlElement,...args){checkHasWindow(htmlElement,HtmlElementTypeError,...args);let window2=htmlElement.ownerDocument.defaultView;if(!(htmlElement instanceof window2.HTMLElement||htmlElement instanceof window2.SVGElement))throw new HtmlElementTypeError(htmlElement,...args)}var InvalidCSSError=class extends Error{constructor(received,matcherFn,context){super(),Error.captureStackTrace&&Error.captureStackTrace(this,matcherFn),this.message=[received.message,"",context.utils.RECEIVED_COLOR("Failing css:"),context.utils.RECEIVED_COLOR(`${received.css}`)].join("\n")}};function display(context,value){return"string"==typeof value?value:context.utils.stringify(value)}function getMessage3(context,matcher,expectedLabel,expectedValue,receivedLabel,receivedValue){return[`${matcher}\n`,`${expectedLabel}:\n${context.utils.EXPECTED_COLOR((0,import_redent.default)(display(context,expectedValue),2))}`,`${receivedLabel}:\n${context.utils.RECEIVED_COLOR((0,import_redent.default)(display(context,receivedValue),2))}`].join("\n")}function deprecate(name,replacementText){console.warn(`Warning: ${name} has been deprecated and will be removed in future updates.`,replacementText)}function normalize(text){return text.replace(/\s+/g," ").trim()}function getTag(element){return element.tagName&&element.tagName.toLowerCase()}var rolesSupportingValues=["meter","progressbar","slider","spinbutton"];function getSingleElementValue(element){if(element)switch(element.tagName.toLowerCase()){case"input":return function getInputValue(inputElement){switch(inputElement.type){case"number":return""===inputElement.value?null:Number(inputElement.value);case"checkbox":return inputElement.checked;default:return inputElement.value}}(element);case"select":return function getSelectValue({multiple,options}){let selectedOptions=[...options].filter((option=>option.selected));return multiple?[...selectedOptions].map((opt=>opt.value)):0!==selectedOptions.length?selectedOptions[0].value:void 0}(element);default:return element.value??function getAccessibleValue(element){if(rolesSupportingValues.includes(element.getAttribute("role")))return Number(element.getAttribute("aria-valuenow"))}(element)}}function compareArraysAsSet(arr1,arr2){if(Array.isArray(arr1)&&Array.isArray(arr2))return[...new Set(arr1)].every((v=>new Set(arr2).has(v)))}function toBeInTheDOM(element,container){return deprecate("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),element&&checkHtmlElement(element,toBeInTheDOM,this),container&&checkHtmlElement(container,toBeInTheDOM,this),{pass:container?container.contains(element):!!element,message:()=>[this.utils.matcherHint((this.isNot?".not":"")+".toBeInTheDOM","element",""),"","Received:",` ${this.utils.printReceived(element&&element.cloneNode(!1))}`].join("\n")}}function toBeInTheDocument(element){(null!==element||!this.isNot)&&checkHtmlElement(element,toBeInTheDocument,this);let pass=null!==element&&element.ownerDocument===element.getRootNode({composed:!0}),errorFound=()=>`expected document not to contain element, found ${this.utils.stringify(element.cloneNode(!0))} instead`;return{pass,message:()=>[this.utils.matcherHint((this.isNot?".not":"")+".toBeInTheDocument","element",""),"",this.utils.RECEIVED_COLOR(this.isNot?errorFound():"element could not be found in the document")].join("\n")}}function toBeEmpty(element){return deprecate("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),checkHtmlElement(element,toBeEmpty,this),{pass:""===element.innerHTML,message:()=>[this.utils.matcherHint((this.isNot?".not":"")+".toBeEmpty","element",""),"","Received:",` ${this.utils.printReceived(element.innerHTML)}`].join("\n")}}function toBeEmptyDOMElement(element){return checkHtmlElement(element,toBeEmptyDOMElement,this),{pass:isEmptyElement(element),message:()=>[this.utils.matcherHint((this.isNot?".not":"")+".toBeEmptyDOMElement","element",""),"","Received:",` ${this.utils.printReceived(element.innerHTML)}`].join("\n")}}function isEmptyElement(element){return 0===[...element.childNodes].filter((node=>8!==node.nodeType)).length}function toContainElement(container,element){return checkHtmlElement(container,toContainElement,this),null!==element&&checkHtmlElement(element,toContainElement,this),{pass:container.contains(element),message:()=>[this.utils.matcherHint((this.isNot?".not":"")+".toContainElement","element","element"),"",this.utils.RECEIVED_COLOR(`${this.utils.stringify(container.cloneNode(!1))} ${this.isNot?"contains:":"does not contain:"} ${this.utils.stringify(element&&element.cloneNode(!1))}\n `)].join("\n")}}function getNormalizedHtml(container,htmlText){let div=container.ownerDocument.createElement("div");return div.innerHTML=htmlText,div.innerHTML}function toContainHTML(container,htmlText){if(checkHtmlElement(container,toContainHTML,this),"string"!=typeof htmlText)throw new Error(`.toContainHTML() expects a string value, got ${htmlText}`);return{pass:container.outerHTML.includes(getNormalizedHtml(container,htmlText)),message:()=>[this.utils.matcherHint((this.isNot?".not":"")+".toContainHTML","element",""),"Expected:",` ${this.utils.EXPECTED_COLOR(htmlText)}`,"Received:",` ${this.utils.printReceived(container.cloneNode(!0))}`].join("\n")}}function toHaveTextContent(node,checkWith,options={normalizeWhitespace:!0}){!function checkNode(node,...args){if(checkHasWindow(node,NodeTypeError,...args),!(node instanceof node.ownerDocument.defaultView.Node))throw new NodeTypeError(node,...args)}(node,toHaveTextContent,this);let textContent=options.normalizeWhitespace?normalize(node.textContent):node.textContent.replace(/\u00a0/g," "),checkingWithEmptyString=""!==textContent&&""===checkWith;return{pass:!checkingWithEmptyString&&(textToMatch=textContent,matcher=checkWith,matcher instanceof RegExp?matcher.test(textToMatch):textToMatch.includes(String(matcher))),message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint((this.isNot?".not":"")+".toHaveTextContent","element",""),checkingWithEmptyString?"Checking with empty string will always match, use .toBeEmptyDOMElement() instead":`Expected element ${to} have text content`,checkWith,"Received",textContent)}};var textToMatch,matcher}function toHaveAccessibleDescription(htmlElement,expectedAccessibleDescription){checkHtmlElement(htmlElement,toHaveAccessibleDescription,this);let actualAccessibleDescription=function computeAccessibleDescription(root){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},description=queryIdRefs(root,"aria-describedby").map((function(element){return computeTextAlternative(element,_objectSpread(_objectSpread({},options),{},{compute:"description"}))})).join(" ");if(""===description){var ariaDescription=root.getAttribute("aria-description");description=null===ariaDescription?"":ariaDescription}if(""===description){var title=root.getAttribute("title");description=null===title?"":title}return description}(htmlElement),pass=!1;return pass=1===arguments.length?""!==actualAccessibleDescription:expectedAccessibleDescription instanceof RegExp?expectedAccessibleDescription.test(actualAccessibleDescription):this.equals(actualAccessibleDescription,expectedAccessibleDescription),{pass,message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint(`${this.isNot?".not":""}.${toHaveAccessibleDescription.name}`,"element",""),`Expected element ${to} have accessible description`,expectedAccessibleDescription,"Received",actualAccessibleDescription)}}}var ariaInvalidName="aria-invalid",validStates=["false"];function toHaveAccessibleErrorMessage(htmlElement,expectedAccessibleErrorMessage){checkHtmlElement(htmlElement,toHaveAccessibleErrorMessage,this);let to=this.isNot?"not to":"to",method=this.isNot?".not.toHaveAccessibleErrorMessage":".toHaveAccessibleErrorMessage",errormessageId=htmlElement.getAttribute("aria-errormessage");if(errormessageId&&/\s+/.test(errormessageId))return{pass:!1,message:()=>getMessage3(this,this.utils.matcherHint(method,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${errormessageId}"`)};let ariaInvalidVal=htmlElement.getAttribute(ariaInvalidName);if(!htmlElement.hasAttribute(ariaInvalidName)||validStates.includes(ariaInvalidVal))return{pass:!1,message:()=>getMessage3(this,this.utils.matcherHint(method,"element"),"Expected element to be marked as invalid with attribute",`${ariaInvalidName}="${String(!0)}"`,"Received",htmlElement.hasAttribute("aria-invalid")?`${ariaInvalidName}="${htmlElement.getAttribute(ariaInvalidName)}`:null)};let error=normalize(htmlElement.ownerDocument.getElementById(errormessageId)?.textContent??"");return{pass:void 0===expectedAccessibleErrorMessage?!!error:expectedAccessibleErrorMessage instanceof RegExp?expectedAccessibleErrorMessage.test(error):this.equals(error,expectedAccessibleErrorMessage),message:()=>getMessage3(this,this.utils.matcherHint(method,"element"),`Expected element ${to} have accessible error message`,expectedAccessibleErrorMessage??"","Received",error)}}var elementRoleList=function buildElementRoleList(elementRolesMap){function getSelectorSpecificity({attributes=[]}){return attributes.length}function match(element){let{attributes=[]}=element,typeTextIndex=attributes.findIndex((attribute=>attribute.value&&"type"===attribute.name&&"text"===attribute.value));typeTextIndex>=0&&(attributes=[...attributes.slice(0,typeTextIndex),...attributes.slice(typeTextIndex+1)]);let selector=function makeElementSelector({name,attributes}){return`${name}${attributes.map((({name:attributeName,value,constraints=[]})=>-1!==constraints.indexOf("undefined")?`:not([${attributeName}])`:value?`[${attributeName}="${value}"]`:`[${attributeName}]`)).join("")}`}({...element,attributes});return node=>!(typeTextIndex>=0&&"text"!==node.type)&&node.matches(selector)}let result=[];for(let[element,roles3]of elementRolesMap.entries())result=[...result,{match:match(element),roles:Array.from(roles3),specificity:getSelectorSpecificity(element)}];return result.sort((function bySelectorSpecificity({specificity:leftSpecificity},{specificity:rightSpecificity}){return rightSpecificity-leftSpecificity}))}(import_aria_query.elementRoles);function toHaveRole(htmlElement,expectedRole){checkHtmlElement(htmlElement,toHaveRole,this);let actualRoles=function getExplicitOrImplicitRoles(htmlElement){return htmlElement.hasAttribute("role")?htmlElement.getAttribute("role").split(" ").filter(Boolean):function getImplicitAriaRoles(currentNode){for(let{match,roles:roles3}of elementRoleList)if(match(currentNode))return[...roles3];return[]}(htmlElement)}(htmlElement);return{pass:actualRoles.some((el=>el===expectedRole)),message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint(`${this.isNot?".not":""}.${toHaveRole.name}`,"element",""),`Expected element ${to} have role`,expectedRole,"Received",actualRoles.join(", "))}}}function toHaveAccessibleName(htmlElement,expectedAccessibleName){checkHtmlElement(htmlElement,toHaveAccessibleName,this);let actualAccessibleName=computeAccessibleName(htmlElement),pass=!1;return pass=1===arguments.length?""!==actualAccessibleName:expectedAccessibleName instanceof RegExp?expectedAccessibleName.test(actualAccessibleName):this.equals(actualAccessibleName,expectedAccessibleName),{pass,message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint(`${this.isNot?".not":""}.${toHaveAccessibleName.name}`,"element",""),`Expected element ${to} have accessible name`,expectedAccessibleName,"Received",actualAccessibleName)}}}function printAttribute(stringify2,name,value){return void 0===value?name:`${name}=${stringify2(value)}`}function getAttributeComment(stringify2,name,value){return void 0===value?`element.hasAttribute(${stringify2(name)})`:`element.getAttribute(${stringify2(name)}) === ${stringify2(value)}`}function toHaveAttribute(htmlElement,name,expectedValue){checkHtmlElement(htmlElement,toHaveAttribute,this);let isExpectedValuePresent=void 0!==expectedValue,hasAttribute=htmlElement.hasAttribute(name),receivedValue=htmlElement.getAttribute(name);return{pass:isExpectedValuePresent?hasAttribute&&this.equals(receivedValue,expectedValue):hasAttribute,message:()=>{let to=this.isNot?"not to":"to",receivedAttribute=hasAttribute?printAttribute(this.utils.stringify,name,receivedValue):null;return getMessage3(this,this.utils.matcherHint((this.isNot?".not":"")+".toHaveAttribute","element",this.utils.printExpected(name),{secondArgument:isExpectedValuePresent?this.utils.printExpected(expectedValue):void 0,comment:getAttributeComment(this.utils.stringify,name,expectedValue)}),`Expected the element ${to} have attribute`,printAttribute(this.utils.stringify,name,expectedValue),"Received",receivedAttribute)}}}function splitClassNames(str){return str?str.split(/\s+/).filter((s=>s.length>0)):[]}function isSubset$1(subset,superset){return subset.every((strOrRegexp=>"string"==typeof strOrRegexp?superset.includes(strOrRegexp):superset.some((className=>strOrRegexp.test(className)))))}function toHaveClass(htmlElement,...params){checkHtmlElement(htmlElement,toHaveClass,this);let{expectedClassNames,options}=function getExpectedClassNamesAndOptions(params){let expectedClassNames,options,lastParam=params.pop();return"object"!=typeof lastParam||lastParam instanceof RegExp?(expectedClassNames=params.concat(lastParam),options={exact:!1}):(expectedClassNames=params,options=lastParam),{expectedClassNames,options}}(params),received=splitClassNames(htmlElement.getAttribute("class")),expected=expectedClassNames.reduce(((acc,className)=>acc.concat("string"!=typeof className&&className?className:splitClassNames(className))),[]),hasRegExp=expected.some((className=>className instanceof RegExp));if(options.exact&&hasRegExp)throw new Error("Exact option does not support RegExp expected class names");return options.exact?{pass:isSubset$1(expected,received)&&expected.length===received.length,message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint((this.isNot?".not":"")+".toHaveClass","element",this.utils.printExpected(expected.join(" "))),`Expected the element ${to} have EXACTLY defined classes`,expected.join(" "),"Received",received.join(" "))}}:expected.length>0?{pass:isSubset$1(expected,received),message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint((this.isNot?".not":"")+".toHaveClass","element",this.utils.printExpected(expected.join(" "))),`Expected the element ${to} have class`,expected.join(" "),"Received",received.join(" "))}}:{pass:!!this.isNot&&received.length>0,message:()=>this.isNot?getMessage3(this,this.utils.matcherHint(".not.toHaveClass","element",""),"Expected the element to have classes","(none)","Received",received.join(" ")):[this.utils.matcherHint(".toHaveClass","element"),"At least one expected class must be provided."].join("\n")}}function printoutStyles(styles3){return Object.keys(styles3).sort().map((prop=>`${prop}: ${styles3[prop]};`)).join("\n")}function expectedDiff(diffFn,expected,computedStyles){let received=Array.from(computedStyles).filter((prop=>void 0!==expected[prop])).reduce(((obj,prop)=>Object.assign(obj,{[prop]:computedStyles.getPropertyValue(prop)})),{});return diffFn(printoutStyles(expected),printoutStyles(received)).replace(`${import_chalk.default.red("+ Received")}\n`,"")}function toHaveStyle(htmlElement,css){checkHtmlElement(htmlElement,toHaveStyle,this);let parsedCSS="object"==typeof css?css:function parseCSS(css,...args){let ast=$149c1bd638913645$export$98e6a39c04603d36(`selector { ${css} }`,{silent:!0}).stylesheet;if(ast.parsingErrors&&ast.parsingErrors.length>0){let{reason,line}=ast.parsingErrors[0];throw new InvalidCSSError({css,message:`Syntax error parsing expected css: ${reason} on line: ${line}`},...args)}return ast.rules[0].declarations.filter((d2=>"declaration"===d2.type)).reduce(((obj,{property,value})=>Object.assign(obj,{[property]:value})),{})}(css,toHaveStyle,this),{getComputedStyle}=htmlElement.ownerDocument.defaultView,expected=function getStyleDeclaration(document2,css){let styles3={},copy3=document2.createElement("div");return Object.keys(css).forEach((property=>{copy3.style[property]=css[property],styles3[property]=copy3.style[property]})),styles3}(htmlElement.ownerDocument,parsedCSS),received=getComputedStyle(htmlElement);return{pass:(styles3=expected,computedStyle=received,!!Object.keys(styles3).length&&Object.entries(styles3).every((([prop,value])=>{let isCustomProperty=prop.startsWith("--"),spellingVariants=[prop];return isCustomProperty||spellingVariants.push(prop.toLowerCase()),spellingVariants.some((name=>computedStyle[name]===value||computedStyle.getPropertyValue(name)===value))}))),message:()=>{let matcher=(this.isNot?".not":"")+".toHaveStyle";return[this.utils.matcherHint(matcher,"element",""),expectedDiff(this.utils.diff,expected,received)].join("\n\n")}};var styles3,computedStyle}function toHaveFocus(element){return checkHtmlElement(element,toHaveFocus,this),{pass:element.ownerDocument.activeElement===element,message:()=>[this.utils.matcherHint((this.isNot?".not":"")+".toHaveFocus","element",""),"",...this.isNot?["Received element is focused:",` ${this.utils.printReceived(element)}`]:["Expected element with focus:",` ${this.utils.printExpected(element)}`,"Received element with focus:",` ${this.utils.printReceived(element.ownerDocument.activeElement)}`]].join("\n")}}function getFormValue(container,name){let elements=[...container.querySelectorAll(`[name="${(0,import_css.default)(name)}"]`)];if(0!==elements.length){if(1===elements.length)return getSingleElementValue(elements[0]);return function getMultiElementValue(elements){let types=[...new Set(elements.map((element=>element.type)))];if(1!==types.length)throw new Error("Multiple form elements with the same name must be of the same type");switch(types[0]){case"radio":{let theChosenOne=elements.find((radio=>radio.checked));return theChosenOne?theChosenOne.value:void 0}case"checkbox":return elements.filter((checkbox=>checkbox.checked)).map((checkbox=>checkbox.value));default:return elements.map((element=>element.value))}}(elements)}}function getPureName(name){return/\[\]$/.test(name)?name.slice(0,-2):name}function toHaveFormValues(formElement,expectedValues){if(checkHtmlElement(formElement,toHaveFormValues,this),!formElement.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let formValues=function getAllFormValues(container){return Array.from(container.elements).map((element=>element.name)).reduce(((obj,name)=>({...obj,[getPureName(name)]:getFormValue(container,name)})),{})}(formElement);return{pass:Object.entries(expectedValues).every((([name,expectedValue])=>(0,import_isEqualWith.default)(formValues[name],expectedValue,compareArraysAsSet))),message:()=>{let to=this.isNot?"not to":"to",matcher=(this.isNot?".not":"")+".toHaveFormValues",commonKeyValues=Object.keys(formValues).filter((key=>expectedValues.hasOwnProperty(key))).reduce(((obj,key)=>({...obj,[key]:formValues[key]})),{});return[this.utils.matcherHint(matcher,"element",""),`Expected the element ${to} have form values`,this.utils.diff(expectedValues,commonKeyValues)].join("\n\n")}}}function isElementVisible(element,previousElement){return function isStyleVisible(element){let{getComputedStyle}=element.ownerDocument.defaultView,{display:display2,visibility,opacity}=getComputedStyle(element);return"none"!==display2&&"hidden"!==visibility&&"collapse"!==visibility&&"0"!==opacity&&0!==opacity}(element)&&function isAttributeVisible(element,previousElement){let detailsVisibility;return detailsVisibility=previousElement?"DETAILS"!==element.nodeName||"SUMMARY"===previousElement.nodeName||element.hasAttribute("open"):"DETAILS"!==element.nodeName||element.hasAttribute("open"),!element.hasAttribute("hidden")&&detailsVisibility}(element,previousElement)&&(!element.parentElement||isElementVisible(element.parentElement,element))}function toBeVisible(element){checkHtmlElement(element,toBeVisible,this);let isInDocument=element.ownerDocument===element.getRootNode({composed:!0}),isVisible2=isInDocument&&isElementVisible(element);return{pass:isVisible2,message:()=>{let is=isVisible2?"is":"is not";return[this.utils.matcherHint((this.isNot?".not":"")+".toBeVisible","element",""),"",`Received element ${is} visible${isInDocument?"":" (element is not in the document)"}:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join("\n")}}}var FORM_TAGS$2=["fieldset","input","select","optgroup","option","button","textarea"];function isElementDisabledByParent(element,parent){return isElementDisabled(parent)&&!function isFirstLegendChildOfFieldset(element,parent){return"legend"===getTag(element)&&"fieldset"===getTag(parent)&&element.isSameNode(Array.from(parent.children).find((child=>"legend"===getTag(child))))}(element,parent)}function canElementBeDisabled(element){let tag=getTag(element);return FORM_TAGS$2.includes(tag)||function isCustomElement(tag){return tag.includes("-")}(tag)}function isElementDisabled(element){return canElementBeDisabled(element)&&element.hasAttribute("disabled")}function isAncestorDisabled(element){let parent=element.parentElement;return!!parent&&(isElementDisabledByParent(element,parent)||isAncestorDisabled(parent))}function isElementOrAncestorDisabled(element){return canElementBeDisabled(element)&&(isElementDisabled(element)||isAncestorDisabled(element))}function toBeDisabled(element){checkHtmlElement(element,toBeDisabled,this);let isDisabled3=isElementOrAncestorDisabled(element);return{pass:isDisabled3,message:()=>{let is=isDisabled3?"is":"is not";return[this.utils.matcherHint((this.isNot?".not":"")+".toBeDisabled","element",""),"",`Received element ${is} disabled:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join("\n")}}}function toBeEnabled(element){checkHtmlElement(element,toBeEnabled,this);let isEnabled=!isElementOrAncestorDisabled(element);return{pass:isEnabled,message:()=>{let is=isEnabled?"is":"is not";return[this.utils.matcherHint((this.isNot?".not":"")+".toBeEnabled","element",""),"",`Received element ${is} enabled:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join("\n")}}}var FORM_TAGS$1=["select","textarea"],ARIA_FORM_TAGS=["input","select","textarea"],UNSUPPORTED_INPUT_TYPES=["color","hidden","range","submit","image","reset"],SUPPORTED_ARIA_ROLES=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function toBeRequired(element){checkHtmlElement(element,toBeRequired,this);let isRequired=function isRequiredOnFormTagsExceptInput(element){return FORM_TAGS$1.includes(getTag(element))&&element.hasAttribute("required")}(element)||function isRequiredOnSupportedInput(element){return"input"===getTag(element)&&element.hasAttribute("required")&&(element.hasAttribute("type")&&!UNSUPPORTED_INPUT_TYPES.includes(element.getAttribute("type"))||!element.hasAttribute("type"))}(element)||function isElementRequiredByARIA(element){return element.hasAttribute("aria-required")&&"true"===element.getAttribute("aria-required")&&(ARIA_FORM_TAGS.includes(getTag(element))||element.hasAttribute("role")&&SUPPORTED_ARIA_ROLES.includes(element.getAttribute("role")))}(element);return{pass:isRequired,message:()=>{let is=isRequired?"is":"is not";return[this.utils.matcherHint((this.isNot?".not":"")+".toBeRequired","element",""),"",`Received element ${is} required:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join("\n")}}}var FORM_TAGS=["form","input","select","textarea"];function isElementInvalid(element){let isHaveAriaInvalid=function isElementHavingAriaInvalid(element){return element.hasAttribute("aria-invalid")&&"false"!==element.getAttribute("aria-invalid")}(element);return function isSupportsValidityMethod(element){return FORM_TAGS.includes(getTag(element))}(element)?isHaveAriaInvalid||!element.checkValidity():isHaveAriaInvalid}function toBeInvalid(element){checkHtmlElement(element,toBeInvalid,this);let isInvalid=isElementInvalid(element);return{pass:isInvalid,message:()=>{let is=isInvalid?"is":"is not";return[this.utils.matcherHint((this.isNot?".not":"")+".toBeInvalid","element",""),"",`Received element ${is} currently invalid:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join("\n")}}}function toBeValid(element){checkHtmlElement(element,toBeValid,this);let isValid=!isElementInvalid(element);return{pass:isValid,message:()=>{let is=isValid?"is":"is not";return[this.utils.matcherHint((this.isNot?".not":"")+".toBeValid","element",""),"",`Received element ${is} currently valid:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join("\n")}}}function toHaveValue(htmlElement,expectedValue){if(checkHtmlElement(htmlElement,toHaveValue,this),"input"===htmlElement.tagName.toLowerCase()&&["checkbox","radio"].includes(htmlElement.type))throw new Error("input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead");let receivedValue=getSingleElementValue(htmlElement),expectsValue=void 0!==expectedValue,expectedTypedValue=expectedValue,receivedTypedValue=receivedValue;return expectedValue==receivedValue&&expectedValue!==receivedValue&&(expectedTypedValue=`${expectedValue} (${typeof expectedValue})`,receivedTypedValue=`${receivedValue} (${typeof receivedValue})`),{pass:expectsValue?(0,import_isEqualWith.default)(receivedValue,expectedValue,compareArraysAsSet):!!receivedValue,message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint((this.isNot?".not":"")+".toHaveValue","element",expectedValue),`Expected the element ${to} have value`,expectsValue?expectedTypedValue:"(any)","Received",receivedTypedValue)}}}function toHaveDisplayValue(htmlElement,expectedValue){checkHtmlElement(htmlElement,toHaveDisplayValue,this);let tagName=htmlElement.tagName.toLowerCase();if(!["select","input","textarea"].includes(tagName))throw new Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");if("input"===tagName&&["radio","checkbox"].includes(htmlElement.type))throw new Error(`.toHaveDisplayValue() currently does not support input[type="${htmlElement.type}"], try with another matcher instead.`);let values=function getValues(tagName,htmlElement){return"select"===tagName?Array.from(htmlElement).filter((option=>option.selected)).map((option=>option.textContent)):[htmlElement.value]}(tagName,htmlElement),expectedValues=function getExpectedValues(expectedValue){return expectedValue instanceof Array?expectedValue:[expectedValue]}(expectedValue),numberOfMatchesWithValues=expectedValues.filter((expected=>values.some((value=>expected instanceof RegExp?expected.test(value):this.equals(value,String(expected)))))).length,matchedWithAllValues=numberOfMatchesWithValues===values.length,matchedWithAllExpectedValues=numberOfMatchesWithValues===expectedValues.length;return{pass:matchedWithAllValues&&matchedWithAllExpectedValues,message:()=>getMessage3(this,this.utils.matcherHint((this.isNot?".not":"")+".toHaveDisplayValue","element",""),`Expected element ${this.isNot?"not ":""}to have display value`,expectedValue,"Received",values)}}function toBeChecked(element){checkHtmlElement(element,toBeChecked,this);let isValidInput=()=>"input"===element.tagName.toLowerCase()&&["checkbox","radio"].includes(element.type);if(!(isValidInput()||roleSupportsChecked(element.getAttribute("role"))&&["true","false"].includes(element.getAttribute("aria-checked"))))return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${function supportedRolesSentence(){return function toSentence(array,{wordConnector=", ",lastWordConnector=" and "}={}){return[array.slice(0,-1).join(wordConnector),array[array.length-1]].join(array.length>1?lastWordConnector:"")}(function supportedRoles(){return import_aria_query.roles.keys().filter(roleSupportsChecked)}().map((role=>`role="${role}"`)),{lastWordConnector:" or "})}()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let isChecked=()=>isValidInput()?element.checked:"true"===element.getAttribute("aria-checked");return{pass:isChecked(),message:()=>{let is=isChecked()?"is":"is not";return[this.utils.matcherHint((this.isNot?".not":"")+".toBeChecked","element",""),"",`Received element ${is} checked:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join("\n")}}}function roleSupportsChecked(role){return void 0!==import_aria_query.roles.get(role)?.props["aria-checked"]}function toBePartiallyChecked(element){checkHtmlElement(element,toBePartiallyChecked,this);let isValidInput=()=>"input"===element.tagName.toLowerCase()&&"checkbox"===element.type;if(!isValidInput()&&"checkbox"!==element.getAttribute("role"))return{pass:!1,message:()=>'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead'};let isPartiallyChecked=()=>{let isAriaMixed="mixed"===element.getAttribute("aria-checked");return isValidInput()&&element.indeterminate||isAriaMixed};return{pass:isPartiallyChecked(),message:()=>{let is=isPartiallyChecked()?"is":"is not";return[this.utils.matcherHint((this.isNot?".not":"")+".toBePartiallyChecked","element",""),"",`Received element ${is} partially checked:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join("\n")}}}function toHaveDescription(htmlElement,checkWith){deprecate("toHaveDescription","Please use toHaveAccessibleDescription."),checkHtmlElement(htmlElement,toHaveDescription,this);let expectsDescription=void 0!==checkWith,descriptionIDs=(htmlElement.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),description="";if(descriptionIDs.length>0){let document2=htmlElement.ownerDocument,descriptionEls=descriptionIDs.map((descriptionID=>document2.getElementById(descriptionID))).filter(Boolean);description=normalize(descriptionEls.map((el=>el.textContent)).join(" "))}return{pass:expectsDescription?checkWith instanceof RegExp?checkWith.test(description):this.equals(description,checkWith):!!description,message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint((this.isNot?".not":"")+".toHaveDescription","element",""),`Expected the element ${to} have description`,this.utils.printExpected(checkWith),"Received",this.utils.printReceived(description))}}}function toHaveErrorMessage(htmlElement,checkWith){if(deprecate("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),checkHtmlElement(htmlElement,toHaveErrorMessage,this),!htmlElement.hasAttribute("aria-invalid")||"false"===htmlElement.getAttribute("aria-invalid")){let not=this.isNot?".not":"";return{pass:!1,message:()=>getMessage3(this,this.utils.matcherHint(`${not}.toHaveErrorMessage`,"element",""),"Expected the element to have invalid state indicated by",'aria-invalid="true"',"Received",htmlElement.hasAttribute("aria-invalid")?`aria-invalid="${htmlElement.getAttribute("aria-invalid")}"`:this.utils.printReceived(""))}}let expectsErrorMessage=void 0!==checkWith,errormessageIDs=(htmlElement.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),errormessage="";if(errormessageIDs.length>0){let document2=htmlElement.ownerDocument,errormessageEls=errormessageIDs.map((errormessageID=>document2.getElementById(errormessageID))).filter(Boolean);errormessage=normalize(errormessageEls.map((el=>el.textContent)).join(" "))}return{pass:expectsErrorMessage?checkWith instanceof RegExp?checkWith.test(errormessage):this.equals(errormessage,checkWith):!!errormessage,message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint((this.isNot?".not":"")+".toHaveErrorMessage","element",""),`Expected the element ${to} have error message`,this.utils.printExpected(checkWith),"Received",this.utils.printReceived(errormessage))}}}function assertTypes(value,name,types){let receivedType=typeof value;if(!types.includes(receivedType))throw new TypeError(`${name} value must be ${types.join(" or ")}, received "${receivedType}"`)}function dist_isObject(item){return null!=item&&"object"==typeof item&&!Array.isArray(item)}function dist_getType(value){return Object.prototype.toString.apply(value).slice(8,-1)}function dist_getOwnProperties(obj){let ownProps=new Set;return function dist_isFinalObj(obj){return obj===Object.prototype||obj===Function.prototype||obj===RegExp.prototype}(obj)?[]:(function dist_collectOwnProperties(obj,collector){let collect="function"==typeof collector?collector:key=>collector.add(key);Object.getOwnPropertyNames(obj).forEach(collect),Object.getOwnPropertySymbols(obj).forEach(collect)}(obj,ownProps),Array.from(ownProps))}__toESM(require_redent(),1),__toESM(require_lib(),1),__toESM(require_source(),1),__toESM(require_isEqualWith(),1),__toESM(require_css_escape(),1);var dist_defaultCloneOptions={forceWritable:!1};function dist_deepClone(val,options=dist_defaultCloneOptions){return dist_clone(val,new WeakMap,options)}function dist_clone(val,seen,options=dist_defaultCloneOptions){let k2,out;if(seen.has(val))return seen.get(val);if(Array.isArray(val)){for(out=Array(k2=val.length),seen.set(val,out);k2--;)out[k2]=dist_clone(val[k2],seen,options);return out}if("[object Object]"===Object.prototype.toString.call(val)){out=Object.create(Object.getPrototypeOf(val)),seen.set(val,out);let props=dist_getOwnProperties(val);for(let k22 of props){let descriptor=Object.getOwnPropertyDescriptor(val,k22);if(!descriptor)continue;let cloned=dist_clone(val[k22],seen,options);options.forceWritable?Object.defineProperty(out,k22,{enumerable:descriptor.enumerable,configurable:!0,writable:!0,value:cloned}):"get"in descriptor?Object.defineProperty(out,k22,{...descriptor,get:()=>cloned}):Object.defineProperty(out,k22,{...descriptor,value:cloned})}return out}return val}var ansiColors2={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},styles2={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},truncator2="…";function colorise2(value,styleType){let color=ansiColors2[styles2[styleType]]||ansiColors2[styleType]||"";return color?`[${color[0]}m${String(value)}[${color[1]}m`:String(value)}function truncate2(string,length,tail=truncator2){string=String(string);let tailLength=tail.length,stringLength=string.length;if(tailLength>length&&stringLength>tailLength)return tail;if(stringLength>length&&stringLength>tailLength){let end=length-tailLength;return end>0&&function dist_isHighSurrogate(char){return char>="\ud800"&&char<="\udbff"}(string[end-1])&&(end-=1),`${string.slice(0,end)}${tail}`}return string}function inspectList2(list,options,inspectItem,separator=", "){inspectItem=inspectItem||options.inspect;let size=list.length;if(0===size)return"";let originalLength=options.truncate,output="",peek="",truncated="";for(let i=0;ioriginalLength&&output.length+truncated.length<=originalLength||!last&&!secondToLast&&truncatedLength>originalLength||(peek=last?"":inspectItem(list[i+1],options)+(secondToLast?"":separator),!last&&secondToLast&&truncatedLength>originalLength&&nextLength+peek.length>originalLength))break;if(output+=string,!last&&!secondToLast&&nextLength+peek.length>=originalLength){truncated=`${truncator2}(${list.length-i-1})`;break}truncated=""}return`${output}${truncated}`}function inspectProperty2([key,value],options){return options.truncate-=2,"string"==typeof key?key=function quoteComplexKey2(key){return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?key:JSON.stringify(key).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}(key):"number"!=typeof key&&(key=`[${options.inspect(key,options)}]`),options.truncate-=key.length,`${key}: ${value=options.inspect(value,options)}`}function inspectTypedArray2(array,options){let name=(array=>"function"==typeof Buffer&&array instanceof Buffer?"Buffer":array[Symbol.toStringTag]?array[Symbol.toStringTag]:array.constructor.name)(array);options.truncate-=name.length+4;let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return`${name}[]`;let output="";for(let i=0;i[key,array[key]])),options,inspectProperty2)),`${name}[ ${output}${propertyContents?`, ${propertyContents}`:""} ]`}function inspectFunction2(func,options){let functionType=func[Symbol.toStringTag]||"Function",name=func.name;return name?options.stylize(`[${functionType} ${truncate2(name,options.truncate-11)}]`,"special"):options.stylize(`[${functionType}]`,"special")}function inspectMapEntry2([key,value],options){return options.truncate-=4,key=options.inspect(key,options),options.truncate-=key.length,`${key} => ${value=options.inspect(value,options)}`}var isNaN3=Number.isNaN||(i=>i!=i);function inspectNumber2(number,options){return isNaN3(number)?options.stylize("NaN","number"):number===1/0?options.stylize("Infinity","number"):number===-1/0?options.stylize("-Infinity","number"):0===number?options.stylize(1/number==1/0?"+0":"-0","number"):options.stylize(truncate2(String(number),options.truncate),"number")}function inspectBigInt2(number,options){let nums=truncate2(number.toString(),options.truncate-1);return nums!==truncator2&&(nums+="n"),options.stylize(nums,"bigint")}var stringEscapeChars2=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),escapeCharacters2={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},hex2=16,unicodeLength2=4;function escape3(char){return escapeCharacters2[char]||`\\u${`0000${char.charCodeAt(0).toString(hex2)}`.slice(-unicodeLength2)}`}function inspectString2(string,options){return stringEscapeChars2.test(string)&&(string=string.replace(stringEscapeChars2,escape3)),options.stylize(`'${truncate2(string,options.truncate-2)}'`,"string")}function inspectSymbol2(value){return"description"in Symbol.prototype?value.description?`Symbol(${value.description})`:"Symbol()":value.toString()}var getPromiseValue2=()=>"Promise{…}";try{let{getPromiseDetails,kPending,kRejected}=dist_process.binding("util");Array.isArray(getPromiseDetails(Promise.resolve()))&&(getPromiseValue2=(value,options)=>{let[state,innerValue]=getPromiseDetails(value);return state===kPending?"Promise{}":`Promise${state===kRejected?"!":""}{${options.inspect(innerValue,options)}}`})}catch{}var promise_default2=getPromiseValue2;function inspectObject3(object,options){let properties=Object.getOwnPropertyNames(object),symbols=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(object):[];if(0===properties.length&&0===symbols.length)return"{}";if(options.truncate-=4,options.seen=options.seen||[],options.seen.indexOf(object)>=0)return"[Circular]";options.seen.push(object);let propertyContents=inspectList2(properties.map((key=>[key,object[key]])),options,inspectProperty2),symbolContents=inspectList2(symbols.map((key=>[key,object[key]])),options,inspectProperty2);options.seen.pop();let sep="";return propertyContents&&symbolContents&&(sep=", "),`{ ${propertyContents}${sep}${symbolContents} }`}var toStringTag2=!!(typeof Symbol<"u"&&Symbol.toStringTag)&&Symbol.toStringTag;var errorKeys2=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function inspectAttribute2([key,value],options){return options.truncate-=3,value?`${options.stylize(String(key),"yellow")}=${options.stylize(`"${value}"`,"string")}`:`${options.stylize(String(key),"yellow")}`}function inspectHTMLCollection2(collection,options){return inspectList2(collection,options,inspectHTML2,"\n")}function inspectHTML2(element,options){let properties=element.getAttributeNames(),name=element.tagName.toLowerCase(),head=options.stylize(`<${name}`,"special"),headClose=options.stylize(">","special"),tail=options.stylize(``,"special");options.truncate-=2*name.length+5;let propertyContents="";properties.length>0&&(propertyContents+=" ",propertyContents+=inspectList2(properties.map((key=>[key,element.getAttribute(key)])),options,inspectAttribute2," ")),options.truncate-=propertyContents.length;let truncate3=options.truncate,children=inspectHTMLCollection2(element.children,options);return children&&children.length>truncate3&&(children=`${truncator2}(${element.children.length})`),`${head}${propertyContents}${headClose}${children}${tail}`}var chaiInspect2="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",nodeInspect2=!1;try{let nodeUtil=dist_require("util");nodeInspect2=!!nodeUtil.inspect&&nodeUtil.inspect.custom}catch{nodeInspect2=!1}var constructorMap2=new WeakMap,stringTagMap2={},baseTypesMap2={undefined:(value,options)=>options.stylize("undefined","undefined"),null:(value,options)=>options.stylize("null","null"),boolean:(value,options)=>options.stylize(String(value),"boolean"),Boolean:(value,options)=>options.stylize(String(value),"boolean"),number:inspectNumber2,Number:inspectNumber2,bigint:inspectBigInt2,BigInt:inspectBigInt2,string:inspectString2,String:inspectString2,function:inspectFunction2,Function:inspectFunction2,symbol:inspectSymbol2,Symbol:inspectSymbol2,Array:function inspectArray2(array,options){let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return"[]";options.truncate-=4;let listContents=inspectList2(array,options);options.truncate-=listContents.length;let propertyContents="";return nonIndexProperties.length&&(propertyContents=inspectList2(nonIndexProperties.map((key=>[key,array[key]])),options,inspectProperty2)),`[ ${listContents}${propertyContents?`, ${propertyContents}`:""} ]`},Date:function inspectDate2(dateObject,options){let stringRepresentation=dateObject.toJSON();if(null===stringRepresentation)return"Invalid Date";let split=stringRepresentation.split("T"),date=split[0];return options.stylize(`${date}T${truncate2(split[1],options.truncate-date.length-1)}`,"date")},Map:function inspectMap2(map,options){return map.size-1<=0?"Map{}":(options.truncate-=7,`Map{ ${inspectList2(function mapToEntries2(map){let entries=[];return map.forEach(((value,key)=>{entries.push([key,value])})),entries}(map),options,inspectMapEntry2)} }`)},Set:function inspectSet2(set2,options){return 0===set2.size?"Set{}":(options.truncate-=7,`Set{ ${inspectList2(function arrayFromSet2(set2){let values=[];return set2.forEach((value=>{values.push(value)})),values}(set2),options)} }`)},RegExp:function inspectRegExp2(value,options){let flags=value.toString().split("/")[2],sourceLength=options.truncate-(2+flags.length),source=value.source;return options.stylize(`/${truncate2(source,sourceLength)}/${flags}`,"regexp")},Promise:promise_default2,WeakSet:(value,options)=>options.stylize("WeakSet{…}","special"),WeakMap:(value,options)=>options.stylize("WeakMap{…}","special"),Arguments:function inspectArguments2(args,options){return 0===args.length?"Arguments[]":(options.truncate-=13,`Arguments[ ${inspectList2(args,options)} ]`)},Int8Array:inspectTypedArray2,Uint8Array:inspectTypedArray2,Uint8ClampedArray:inspectTypedArray2,Int16Array:inspectTypedArray2,Uint16Array:inspectTypedArray2,Int32Array:inspectTypedArray2,Uint32Array:inspectTypedArray2,Float32Array:inspectTypedArray2,Float64Array:inspectTypedArray2,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:function inspectObject4(error,options){let properties=Object.getOwnPropertyNames(error).filter((key=>-1===errorKeys2.indexOf(key))),name=error.name;options.truncate-=name.length;let message="";"string"==typeof error.message?message=truncate2(error.message,options.truncate):properties.unshift("message"),message=message?`: ${message}`:"",options.truncate-=message.length+5;let propertyContents=inspectList2(properties.map((key=>[key,error[key]])),options,inspectProperty2);return`${name}${message}${propertyContents?` { ${propertyContents} }`:""}`},HTMLCollection:inspectHTMLCollection2,NodeList:inspectHTMLCollection2},inspectCustom2=(value,options,type5)=>chaiInspect2 in value&&"function"==typeof value[chaiInspect2]?value[chaiInspect2](options):nodeInspect2&&nodeInspect2 in value&&"function"==typeof value[nodeInspect2]?value[nodeInspect2](options.depth,options):"inspect"in value&&"function"==typeof value.inspect?value.inspect(options.depth,options):"constructor"in value&&constructorMap2.has(value.constructor)?constructorMap2.get(value.constructor)(value,options):stringTagMap2[type5]?stringTagMap2[type5](value,options):"",dist_toString2=Object.prototype.toString;function inspect3(value,opts={}){let options=function normaliseOptions2({showHidden=!1,depth=2,colors=!1,customInspect=!0,showProxy=!1,maxArrayLength=1/0,breakLength=1/0,seen=[],truncate:truncate3=1/0,stylize=String}={},inspect5){let options={showHidden:!!showHidden,depth:Number(depth),colors:!!colors,customInspect:!!customInspect,showProxy:!!showProxy,maxArrayLength:Number(maxArrayLength),breakLength:Number(breakLength),truncate:Number(truncate3),seen,inspect:inspect5,stylize};return options.colors&&(options.stylize=colorise2),options}(opts,inspect3),{customInspect}=options,type5=null===value?"null":typeof value;if("object"===type5&&(type5=dist_toString2.call(value).slice(8,-1)),type5 in baseTypesMap2)return baseTypesMap2[type5](value,options);if(customInspect&&value){let output=inspectCustom2(value,options,type5);if(output)return"string"==typeof output?output:inspect3(output,options)}let proto=!!value&&Object.getPrototypeOf(value);return proto===Object.prototype||null===proto?inspectObject3(value,options):value&&"function"==typeof HTMLElement&&value instanceof HTMLElement?inspectHTML2(value,options):"constructor"in value?value.constructor!==Object?function inspectClass2(value,options){let name="";return toStringTag2&&toStringTag2 in value&&(name=value[toStringTag2]),name=name||value.constructor.name,(!name||"_class"===name)&&(name=""),options.truncate-=name.length,`${name}${inspectObject3(value,options)}`}(value,options):inspectObject3(value,options):value===Object(value)?inspectObject3(value,options):options.stylize(String(value),type5)}var dist_h=Object.entries({reset:[0,0],bold:[1,22,""],dim:[2,22,""],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]});function dist_a(n){return String(n)}dist_a.open="",dist_a.close="";var dist_f2=function dist_p(n=!1){let e=function dist_C(n=!1){let e=typeof dist_process<"u"?dist_process:void 0,i=e?.env||{},g3=e?.argv||[];return!("NO_COLOR"in i||g3.includes("--no-color"))&&("FORCE_COLOR"in i||g3.includes("--color")||"win32"===e?.platform||n&&"dumb"!==i.TERM||"CI"in i)||typeof window<"u"&&!!window.chrome}(n),g3=(r,t,c=r)=>{let o=l=>{let s=String(l),b=s.indexOf(t,r.length);return~b?r+((r,t,c,o)=>{let l="",s=0;do{l+=r.substring(s,o)+c,s=o+t.length,o=r.indexOf(t,s)}while(~o);return l+r.substring(s)})(s,t,c,b)+t:r+s+t};return o.open=r,o.close=t,o},u2={isColorSupported:e},d2=r=>`[${r}m`;for(let[r,t]of dist_h)u2[r]=e?g3(d2(t[0]),d2(t[1]),t[2]):dist_a;return u2}(!1);function dist_printIteratorEntries(iterator,config3,indentation,depth,refs,printer2,separator=": "){let result="",width=0,current=iterator.next();if(!current.done){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(;!current.done;){if(result+=indentationNext,width++===config3.maxWidth){result+="…";break}result+=printer2(current.value[0],config3,indentationNext,depth,refs)+separator+printer2(current.value[1],config3,indentationNext,depth,refs),current=iterator.next(),current.done?config3.min||(result+=","):result+=`,${config3.spacingInner}`}result+=config3.spacingOuter+indentation}return result}function dist_printIteratorValues(iterator,config3,indentation,depth,refs,printer2){let result="",width=0,current=iterator.next();if(!current.done){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(;!current.done;){if(result+=indentationNext,width++===config3.maxWidth){result+="…";break}result+=printer2(current.value,config3,indentationNext,depth,refs),current=iterator.next(),current.done?config3.min||(result+=","):result+=`,${config3.spacingInner}`}result+=config3.spacingOuter+indentation}return result}function dist_printListItems(list,config3,indentation,depth,refs,printer2){let result="",isDataView=l=>l instanceof DataView,length=isDataView(list=list instanceof ArrayBuffer?new DataView(list):list)?list.byteLength:list.length;if(length>0){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(let i=0;i0){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(let i=0;i{let stringedValue=val.toString();if("ArrayContaining"===stringedValue||"ArrayNotContaining"===stringedValue)return++depth>config3.maxDepth?`[${stringedValue}]`:`${stringedValue+" "}[${dist_printListItems(val.sample,config3,indentation,depth,refs,printer2)}]`;if("ObjectContaining"===stringedValue||"ObjectNotContaining"===stringedValue)return++depth>config3.maxDepth?`[${stringedValue}]`:`${stringedValue+" "}{${dist_printObjectProperties(val.sample,config3,indentation,depth,refs,printer2)}}`;if("StringMatching"===stringedValue||"StringNotMatching"===stringedValue||"StringContaining"===stringedValue||"StringNotContaining"===stringedValue)return stringedValue+" "+printer2(val.sample,config3,indentation,depth,refs);if("function"!=typeof val.toAsymmetricMatcher)throw new TypeError(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);return val.toAsymmetricMatcher()},test:val=>val&&val.$$typeof===dist_asymmetricMatcher},dist_OBJECT_NAMES=new Set(["DOMStringMap","NamedNodeMap"]),dist_ARRAY_REGEXP=/^(?:HTML\w*Collection|NodeList)$/;var dist_plugin$4={serialize:(collection,config3,indentation,depth,refs,printer2)=>{let name=collection.constructor.name;return++depth>config3.maxDepth?`[${name}]`:(config3.min?"":name+" ")+(dist_OBJECT_NAMES.has(name)?`{${dist_printObjectProperties(function dist_isNamedNodeMap(collection){return"NamedNodeMap"===collection.constructor.name}(collection)?[...collection].reduce(((props,attribute)=>(props[attribute.name]=attribute.value,props)),{}):{...collection},config3,indentation,depth,refs,printer2)}}`:`[${dist_printListItems([...collection],config3,indentation,depth,refs,printer2)}]`)},test:val=>val&&val.constructor&&!!val.constructor.name&&function dist_testName(name){return dist_OBJECT_NAMES.has(name)||dist_ARRAY_REGEXP.test(name)}(val.constructor.name)};function dist_escapeHTML(str){return str.replaceAll("<","<").replaceAll(">",">")}function dist_printProps(keys2,props,config3,indentation,depth,refs,printer2){let indentationNext=indentation+config3.indent,colors=config3.colors;return keys2.map((key=>{let value=props[key],printed=printer2(value,config3,indentationNext,depth,refs);return"string"!=typeof value&&(printed.includes("\n")&&(printed=config3.spacingOuter+indentationNext+printed+config3.spacingOuter+indentation),printed=`{${printed}}`),`${config3.spacingInner+indentation+colors.prop.open+key+colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`})).join("")}function dist_printChildren(children,config3,indentation,depth,refs,printer2){return children.map((child=>config3.spacingOuter+indentation+("string"==typeof child?dist_printText(child,config3):printer2(child,config3,indentation,depth,refs)))).join("")}function dist_printText(text,config3){let contentColor=config3.colors.content;return contentColor.open+dist_escapeHTML(text)+contentColor.close}function dist_printElement(type5,printedProps,printedChildren,config3,indentation){let tagColor=config3.colors.tag;return`${tagColor.open}<${type5}${printedProps&&tagColor.close+printedProps+config3.spacingOuter+indentation+tagColor.open}${printedChildren?`>${tagColor.close}${printedChildren}${config3.spacingOuter}${indentation}${tagColor.open}${tagColor.close}`}function dist_printElementAsLeaf(type5,config3){let tagColor=config3.colors.tag;return`${tagColor.open}<${type5}${tagColor.close} …${tagColor.open} />${tagColor.close}`}var dist_ELEMENT_REGEXP=/^(?:(?:HTML|SVG)\w*)?Element$/;function dist_nodeIsFragment(node){return 11===node.nodeType}var dist_plugin$3={serialize:(node,config3,indentation,depth,refs,printer2)=>{if(function dist_nodeIsText(node){return 3===node.nodeType}(node))return dist_printText(node.data,config3);if(function dist_nodeIsComment(node){return 8===node.nodeType}(node))return function dist_printComment(comment,config3){let commentColor=config3.colors.comment;return`${commentColor.open}\x3c!--${dist_escapeHTML(comment)}--\x3e${commentColor.close}`}(node.data,config3);let type5=dist_nodeIsFragment(node)?"DocumentFragment":node.tagName.toLowerCase();return++depth>config3.maxDepth?dist_printElementAsLeaf(type5,config3):dist_printElement(type5,dist_printProps(dist_nodeIsFragment(node)?[]:Array.from(node.attributes,(attr=>attr.name)).sort(),dist_nodeIsFragment(node)?{}:[...node.attributes].reduce(((props,attribute)=>(props[attribute.name]=attribute.value,props)),{}),config3,indentation+config3.indent,depth,refs,printer2),dist_printChildren(Array.prototype.slice.call(node.childNodes||node.children),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation)},test:val=>{var _a2;return(null==(_a2=val?.constructor)?void 0:_a2.name)&&function dist_testNode(val){let constructorName=val.constructor.name,{nodeType,tagName}=val,isCustomElement3="string"==typeof tagName&&tagName.includes("-")||function dist_testHasAttribute(val){try{return"function"==typeof val.hasAttribute&&val.hasAttribute("is")}catch{return!1}}(val);return 1===nodeType&&(dist_ELEMENT_REGEXP.test(constructorName)||isCustomElement3)||3===nodeType&&"Text"===constructorName||8===nodeType&&"Comment"===constructorName||11===nodeType&&"DocumentFragment"===constructorName}(val)}},dist_getImmutableName=name=>`Immutable.${name}`,dist_printAsLeaf=name=>`[${name}]`;function dist_printImmutableValues(val,config3,indentation,depth,refs,printer2,type5){return++depth>config3.maxDepth?dist_printAsLeaf(dist_getImmutableName(type5)):`${dist_getImmutableName(type5)+" "}[${dist_printIteratorValues(val.values(),config3,indentation,depth,refs,printer2)}]`}var dist_hasRequiredReactIs_development,dist_plugin$2={serialize:(val,config3,indentation,depth,refs,printer2)=>val["@@__IMMUTABLE_MAP__@@"]?function dist_printImmutableEntries(val,config3,indentation,depth,refs,printer2,type5){return++depth>config3.maxDepth?dist_printAsLeaf(dist_getImmutableName(type5)):`${dist_getImmutableName(type5)+" "}{${dist_printIteratorEntries(val.entries(),config3,indentation,depth,refs,printer2)}}`}(val,config3,indentation,depth,refs,printer2,val["@@__IMMUTABLE_ORDERED__@@"]?"OrderedMap":"Map"):val["@@__IMMUTABLE_LIST__@@"]?dist_printImmutableValues(val,config3,indentation,depth,refs,printer2,"List"):val["@@__IMMUTABLE_SET__@@"]?dist_printImmutableValues(val,config3,indentation,depth,refs,printer2,val["@@__IMMUTABLE_ORDERED__@@"]?"OrderedSet":"Set"):val["@@__IMMUTABLE_STACK__@@"]?dist_printImmutableValues(val,config3,indentation,depth,refs,printer2,"Stack"):val["@@__IMMUTABLE_SEQ__@@"]?function dist_printImmutableSeq(val,config3,indentation,depth,refs,printer2){let name=dist_getImmutableName("Seq");return++depth>config3.maxDepth?dist_printAsLeaf(name):val["@@__IMMUTABLE_KEYED__@@"]?`${name+" "}{${val._iter||val._object?dist_printIteratorEntries(val.entries(),config3,indentation,depth,refs,printer2):"…"}}`:`${name+" "}[${val._iter||val._array||val._collection||val._iterable?dist_printIteratorValues(val.values(),config3,indentation,depth,refs,printer2):"…"}]`}(val,config3,indentation,depth,refs,printer2):function dist_printImmutableRecord(val,config3,indentation,depth,refs,printer2){let name=dist_getImmutableName(val._name||"Record");return++depth>config3.maxDepth?dist_printAsLeaf(name):`${name+" "}{${dist_printIteratorEntries(function dist_getRecordEntries(val){let i=0;return{next(){if(ival&&(!0===val["@@__IMMUTABLE_ITERABLE__@@"]||!0===val["@@__IMMUTABLE_RECORD__@@"])},dist_reactIs={exports:{}},dist_reactIs_development={};dist_reactIs.exports=function dist_requireReactIs_development(){return dist_hasRequiredReactIs_development||(dist_hasRequiredReactIs_development=1,function(){var REACT_MODULE_REFERENCE,REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_SERVER_CONTEXT_TYPE=Symbol.for("react.server_context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_OFFSCREEN_TYPE=Symbol.for("react.offscreen");function typeOf(object){if("object"==typeof object&&null!==object){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type5=object.type;switch(type5){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return type5;default:var $$typeofType=type5&&type5.$$typeof;switch($$typeofType){case REACT_SERVER_CONTEXT_TYPE:case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}REACT_MODULE_REFERENCE=Symbol.for("react.module.reference");var ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element2=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,SuspenseList=REACT_SUSPENSE_LIST_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1,hasWarnedAboutDeprecatedIsConcurrentMode=!1;dist_reactIs_development.ContextConsumer=ContextConsumer,dist_reactIs_development.ContextProvider=ContextProvider,dist_reactIs_development.Element=Element2,dist_reactIs_development.ForwardRef=ForwardRef,dist_reactIs_development.Fragment=Fragment,dist_reactIs_development.Lazy=Lazy,dist_reactIs_development.Memo=Memo,dist_reactIs_development.Portal=Portal,dist_reactIs_development.Profiler=Profiler,dist_reactIs_development.StrictMode=StrictMode,dist_reactIs_development.Suspense=Suspense,dist_reactIs_development.SuspenseList=SuspenseList,dist_reactIs_development.isAsyncMode=function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},dist_reactIs_development.isConcurrentMode=function isConcurrentMode(object){return hasWarnedAboutDeprecatedIsConcurrentMode||(hasWarnedAboutDeprecatedIsConcurrentMode=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},dist_reactIs_development.isContextConsumer=function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE},dist_reactIs_development.isContextProvider=function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE},dist_reactIs_development.isElement=function isElement5(object){return"object"==typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE},dist_reactIs_development.isForwardRef=function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE},dist_reactIs_development.isFragment=function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE},dist_reactIs_development.isLazy=function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE},dist_reactIs_development.isMemo=function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE},dist_reactIs_development.isPortal=function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE},dist_reactIs_development.isProfiler=function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE},dist_reactIs_development.isStrictMode=function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE},dist_reactIs_development.isSuspense=function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE},dist_reactIs_development.isSuspenseList=function isSuspenseList(object){return typeOf(object)===REACT_SUSPENSE_LIST_TYPE},dist_reactIs_development.isValidElementType=function isValidElementType(type5){return!("string"!=typeof type5&&"function"!=typeof type5&&type5!==REACT_FRAGMENT_TYPE&&type5!==REACT_PROFILER_TYPE&&type5!==REACT_STRICT_MODE_TYPE&&type5!==REACT_SUSPENSE_TYPE&&type5!==REACT_SUSPENSE_LIST_TYPE&&type5!==REACT_OFFSCREEN_TYPE&&("object"!=typeof type5||null===type5||type5.$$typeof!==REACT_LAZY_TYPE&&type5.$$typeof!==REACT_MEMO_TYPE&&type5.$$typeof!==REACT_PROVIDER_TYPE&&type5.$$typeof!==REACT_CONTEXT_TYPE&&type5.$$typeof!==REACT_FORWARD_REF_TYPE&&type5.$$typeof!==REACT_MODULE_REFERENCE&&void 0===type5.getModuleId))},dist_reactIs_development.typeOf=typeOf}()),dist_reactIs_development}();var dist_reactIsExports=dist_reactIs.exports;function dist_getChildren(arg,children=[]){if(Array.isArray(arg))for(let item of arg)dist_getChildren(item,children);else null!=arg&&!1!==arg&&""!==arg&&children.push(arg);return children}function dist_getType2(element){let type5=element.type;if("string"==typeof type5)return type5;if("function"==typeof type5)return type5.displayName||type5.name||"Unknown";if(dist_reactIsExports.isFragment(element))return"React.Fragment";if(dist_reactIsExports.isSuspense(element))return"React.Suspense";if("object"==typeof type5&&null!==type5){if(dist_reactIsExports.isContextProvider(element))return"Context.Provider";if(dist_reactIsExports.isContextConsumer(element))return"Context.Consumer";if(dist_reactIsExports.isForwardRef(element)){if(type5.displayName)return type5.displayName;let functionName=type5.render.displayName||type5.render.name||"";return""===functionName?"ForwardRef":`ForwardRef(${functionName})`}if(dist_reactIsExports.isMemo(element)){let functionName=type5.displayName||type5.type.displayName||type5.type.name||"";return""===functionName?"Memo":`Memo(${functionName})`}}return"UNDEFINED"}var dist_plugin$1={serialize:(element,config3,indentation,depth,refs,printer2)=>++depth>config3.maxDepth?dist_printElementAsLeaf(dist_getType2(element),config3):dist_printElement(dist_getType2(element),dist_printProps(function dist_getPropKeys$1(element){let{props}=element;return Object.keys(props).filter((key=>"children"!==key&&void 0!==props[key])).sort()}(element),element.props,config3,indentation+config3.indent,depth,refs,printer2),dist_printChildren(dist_getChildren(element.props.children),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation),test:val=>null!=val&&dist_reactIsExports.isElement(val)},dist_testSymbol="function"==typeof Symbol&&Symbol.for?Symbol.for("react.test.json"):245830487;var test_dist_plugin={serialize:(object,config3,indentation,depth,refs,printer2)=>++depth>config3.maxDepth?dist_printElementAsLeaf(object.type,config3):dist_printElement(object.type,object.props?dist_printProps(function dist_getPropKeys(object){let{props}=object;return props?Object.keys(props).filter((key=>void 0!==props[key])).sort():[]}(object),object.props,config3,indentation+config3.indent,depth,refs,printer2):"",object.children?dist_printChildren(object.children,config3,indentation+config3.indent,depth,refs,printer2):"",config3,indentation),test:val=>val&&val.$$typeof===dist_testSymbol},toString3=Object.prototype.toString,dist_toISOString=Date.prototype.toISOString,dist_errorToString=Error.prototype.toString,dist_regExpToString=RegExp.prototype.toString;function getConstructorName2(val){return"function"==typeof val.constructor&&val.constructor.name||"Object"}var dist_SYMBOL_REGEXP=/^Symbol\((.*)\)(.*)$/,dist_NEWLINE_REGEXP=/\n/g,dist_PrettyFormatPluginError=class extends Error{constructor(message,stack){super(message),this.stack=stack,this.name=this.constructor.name}};function dist_printFunction(val,printFunctionName){return printFunctionName?`[Function ${val.name||"anonymous"}]`:"[Function]"}function dist_printSymbol(val){return String(val).replace(dist_SYMBOL_REGEXP,"Symbol($1)")}function dist_printError(val){return`[${dist_errorToString.call(val)}]`}function dist_printBasicValue(val,printFunctionName,escapeRegex,escapeString){if(!0===val||!1===val)return`${val}`;if(void 0===val)return"undefined";if(null===val)return"null";let typeOf=typeof val;if("number"===typeOf)return function dist_printNumber(val){return Object.is(val,-0)?"-0":String(val)}(val);if("bigint"===typeOf)return function dist_printBigInt(val){return`${val}n`}(val);if("string"===typeOf)return escapeString?`"${val.replaceAll(/"|\\/g,"\\$&")}"`:`"${val}"`;if("function"===typeOf)return dist_printFunction(val,printFunctionName);if("symbol"===typeOf)return dist_printSymbol(val);let toStringed=toString3.call(val);return"[object WeakMap]"===toStringed?"WeakMap {}":"[object WeakSet]"===toStringed?"WeakSet {}":"[object Function]"===toStringed||"[object GeneratorFunction]"===toStringed?dist_printFunction(val,printFunctionName):"[object Symbol]"===toStringed?dist_printSymbol(val):"[object Date]"===toStringed?Number.isNaN(+val)?"Date { NaN }":dist_toISOString.call(val):"[object Error]"===toStringed?dist_printError(val):"[object RegExp]"===toStringed?escapeRegex?dist_regExpToString.call(val).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):dist_regExpToString.call(val):val instanceof Error?dist_printError(val):null}function dist_printComplexValue(val,config3,indentation,depth,refs,hasCalledToJSON){if(refs.includes(val))return"[Circular]";(refs=[...refs]).push(val);let hitMaxDepth=++depth>config3.maxDepth,min=config3.min;if(config3.callToJSON&&!hitMaxDepth&&val.toJSON&&"function"==typeof val.toJSON&&!hasCalledToJSON)return dist_printer(val.toJSON(),config3,indentation,depth,refs,!0);let toStringed=toString3.call(val);return"[object Arguments]"===toStringed?hitMaxDepth?"[Arguments]":`${min?"":"Arguments "}[${dist_printListItems(val,config3,indentation,depth,refs,dist_printer)}]`:function dist_isToStringedArrayType(toStringed){return"[object Array]"===toStringed||"[object ArrayBuffer]"===toStringed||"[object DataView]"===toStringed||"[object Float32Array]"===toStringed||"[object Float64Array]"===toStringed||"[object Int8Array]"===toStringed||"[object Int16Array]"===toStringed||"[object Int32Array]"===toStringed||"[object Uint8Array]"===toStringed||"[object Uint8ClampedArray]"===toStringed||"[object Uint16Array]"===toStringed||"[object Uint32Array]"===toStringed}(toStringed)?hitMaxDepth?`[${val.constructor.name}]`:`${min||!config3.printBasicPrototype&&"Array"===val.constructor.name?"":`${val.constructor.name} `}[${dist_printListItems(val,config3,indentation,depth,refs,dist_printer)}]`:"[object Map]"===toStringed?hitMaxDepth?"[Map]":`Map {${dist_printIteratorEntries(val.entries(),config3,indentation,depth,refs,dist_printer," => ")}}`:"[object Set]"===toStringed?hitMaxDepth?"[Set]":`Set {${dist_printIteratorValues(val.values(),config3,indentation,depth,refs,dist_printer)}}`:hitMaxDepth||function dist_isWindow(val){return typeof window<"u"&&val===window}(val)?`[${getConstructorName2(val)}]`:`${min||!config3.printBasicPrototype&&"Object"===getConstructorName2(val)?"":`${getConstructorName2(val)} `}{${dist_printObjectProperties(val,config3,indentation,depth,refs,dist_printer)}}`}function dist_printPlugin(plugin2,val,config3,indentation,depth,refs){let printed;try{printed=function dist_isNewPlugin(plugin2){return null!=plugin2.serialize}(plugin2)?plugin2.serialize(val,config3,indentation,depth,refs,dist_printer):plugin2.print(val,(valChild=>dist_printer(valChild,config3,indentation,depth,refs)),(str=>{let indentationNext=indentation+config3.indent;return indentationNext+str.replaceAll(dist_NEWLINE_REGEXP,`\n${indentationNext}`)}),{edgeSpacing:config3.spacingOuter,min:config3.min,spacing:config3.spacingInner},config3.colors)}catch(error){throw new dist_PrettyFormatPluginError(error.message,error.stack)}if("string"!=typeof printed)throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);return printed}function dist_findPlugin(plugins22,val){for(let plugin2 of plugins22)try{if(plugin2.test(val))return plugin2}catch(error){throw new dist_PrettyFormatPluginError(error.message,error.stack)}return null}function dist_printer(val,config3,indentation,depth,refs,hasCalledToJSON){let plugin2=dist_findPlugin(config3.plugins,val);if(null!==plugin2)return dist_printPlugin(plugin2,val,config3,indentation,depth,refs);let basicResult=dist_printBasicValue(val,config3.printFunctionName,config3.escapeRegex,config3.escapeString);return null!==basicResult?basicResult:dist_printComplexValue(val,config3,indentation,depth,refs,hasCalledToJSON)}var dist_DEFAULT_THEME={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},dist_DEFAULT_THEME_KEYS=Object.keys(dist_DEFAULT_THEME),dist_DEFAULT_OPTIONS={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:dist_DEFAULT_THEME};function dist_getPrintFunctionName(options){return options?.printFunctionName??dist_DEFAULT_OPTIONS.printFunctionName}function dist_getEscapeRegex(options){return options?.escapeRegex??dist_DEFAULT_OPTIONS.escapeRegex}function dist_getEscapeString(options){return options?.escapeString??dist_DEFAULT_OPTIONS.escapeString}function dist_getConfig(options){return{callToJSON:options?.callToJSON??dist_DEFAULT_OPTIONS.callToJSON,colors:options?.highlight?dist_DEFAULT_THEME_KEYS.reduce(((colors,key)=>{let value=dist_DEFAULT_THEME[key],color=value&&dist_f2[value];if(!color||"string"!=typeof color.close||"string"!=typeof color.open)throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);return colors[key]=color,colors}),Object.create(null)):dist_DEFAULT_THEME_KEYS.reduce(((colors,key)=>(colors[key]={close:"",open:""},colors)),Object.create(null)),compareKeys:"function"==typeof options?.compareKeys||null===options?.compareKeys?options.compareKeys:dist_DEFAULT_OPTIONS.compareKeys,escapeRegex:dist_getEscapeRegex(options),escapeString:dist_getEscapeString(options),indent:options?.min?"":(indent=options?.indent??dist_DEFAULT_OPTIONS.indent,Array.from({length:indent+1}).join(" ")),maxDepth:options?.maxDepth??dist_DEFAULT_OPTIONS.maxDepth,maxWidth:options?.maxWidth??dist_DEFAULT_OPTIONS.maxWidth,min:options?.min??dist_DEFAULT_OPTIONS.min,plugins:options?.plugins??dist_DEFAULT_OPTIONS.plugins,printBasicPrototype:options?.printBasicPrototype??!0,printFunctionName:dist_getPrintFunctionName(options),spacingInner:options?.min?" ":"\n",spacingOuter:options?.min?"":"\n"};var indent}function dist_format(val,options){if(options&&(function dist_validateOptions(options){for(let key of Object.keys(options))if(!Object.prototype.hasOwnProperty.call(dist_DEFAULT_OPTIONS,key))throw new Error(`pretty-format: Unknown option "${key}".`);if(options.min&&void 0!==options.indent&&0!==options.indent)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}(options),options.plugins)){let plugin2=dist_findPlugin(options.plugins,val);if(null!==plugin2)return dist_printPlugin(plugin2,val,dist_getConfig(options),"",0,[])}let basicResult=dist_printBasicValue(val,dist_getPrintFunctionName(options),dist_getEscapeRegex(options),dist_getEscapeString(options));return null!==basicResult?basicResult:dist_printComplexValue(val,dist_getConfig(options),"",0,[])}var dist_plugins={AsymmetricMatcher:dist_plugin$5,DOMCollection:dist_plugin$4,DOMElement:dist_plugin$3,Immutable:dist_plugin$2,ReactElement:dist_plugin$1,ReactTestComponent:test_dist_plugin},{AsymmetricMatcher:dist_AsymmetricMatcher,DOMCollection:dist_DOMCollection,DOMElement:dist_DOMElement,Immutable:dist_Immutable,ReactElement:dist_ReactElement,ReactTestComponent:dist_ReactTestComponent}=dist_plugins,dist_PLUGINS=[dist_ReactTestComponent,dist_ReactElement,dist_DOMElement,dist_DOMCollection,dist_Immutable,dist_AsymmetricMatcher];function dist_stringify(object,maxDepth=10,{maxLength,...options}={}){let result,MAX_LENGTH=maxLength??1e4;try{result=dist_format(object,{maxDepth,escapeString:!1,plugins:dist_PLUGINS,...options})}catch{result=dist_format(object,{callToJSON:!1,maxDepth,escapeString:!1,plugins:dist_PLUGINS,...options})}return result.length>=MAX_LENGTH&&maxDepth>1?dist_stringify(object,Math.floor(maxDepth/2)):result}var dist_formatRegExp=/%[sdjifoOc%]/g;function inspect4(obj,options={}){return 0===options.truncate&&(options.truncate=Number.POSITIVE_INFINITY),inspect3(obj,options)}RegExp(/\r?\n|[\r\u2028\u2029]/y.source);var reservedWords_strict=["implements","interface","let","package","private","protected","public","static","yield"];function dist_getType3(value){if(void 0===value)return"undefined";if(null===value)return"null";if(Array.isArray(value))return"array";if("boolean"==typeof value)return"boolean";if("function"==typeof value)return"function";if("number"==typeof value)return"number";if("string"==typeof value)return"string";if("bigint"==typeof value)return"bigint";if("object"==typeof value){if(null!=value){if(value.constructor===RegExp)return"regexp";if(value.constructor===Map)return"map";if(value.constructor===Set)return"set";if(value.constructor===Date)return"date"}return"object"}if("symbol"==typeof value)return"symbol";throw new Error(`value of unknown type: ${value}`)}new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),new Set(reservedWords_strict);var dist_DIFF_DELETE=-1,dist_DIFF_INSERT=1,dist_DIFF_EQUAL=0,dist_Diff=class{0;1;constructor(op,text){this[0]=op,this[1]=text}},dist_diff_commonPrefix=function(text1,text2){if(!text1||!text2||text1.charAt(0)!==text2.charAt(0))return 0;let pointermin=0,pointermax=Math.min(text1.length,text2.length),pointermid=pointermax,pointerstart=0;for(;pointermintext2_length?text1=text1.substring(text1_length-text2_length):text1_length0?equalities[equalitiesLength-1]:-1,length_insertions1=0,length_deletions1=0,length_insertions2=0,length_deletions2=0,lastEquality=null,changes=!0)),pointer3++;for(changes&&dist_diff_cleanupMerge(diffs),function dist_diff_cleanupSemanticLossless(diffs){function diff_cleanupSemanticScore_(one,two){if(!one||!two)return 6;let char1=one.charAt(one.length-1),char2=two.charAt(0),nonAlphaNumeric1=char1.match(dist_nonAlphaNumericRegex_),nonAlphaNumeric2=char2.match(dist_nonAlphaNumericRegex_),whitespace1=nonAlphaNumeric1&&char1.match(dist_whitespaceRegex_),whitespace2=nonAlphaNumeric2&&char2.match(dist_whitespaceRegex_),lineBreak1=whitespace1&&char1.match(dist_linebreakRegex_),lineBreak2=whitespace2&&char2.match(dist_linebreakRegex_),blankLine1=lineBreak1&&one.match(dist_blanklineEndRegex_),blankLine2=lineBreak2&&two.match(dist_blanklineStartRegex_);return blankLine1||blankLine2?5:lineBreak1||lineBreak2?4:nonAlphaNumeric1&&!whitespace1&&whitespace2?3:whitespace1||whitespace2?2:nonAlphaNumeric1||nonAlphaNumeric2?1:0}let pointer3=1;for(;pointer3=bestScore&&(bestScore=score,bestEquality1=equality1,bestEdit=edit,bestEquality2=equality2)}diffs[pointer3-1][1]!==bestEquality1&&(bestEquality1?diffs[pointer3-1][1]=bestEquality1:(diffs.splice(pointer3-1,1),pointer3--),diffs[pointer3][1]=bestEdit,bestEquality2?diffs[pointer3+1][1]=bestEquality2:(diffs.splice(pointer3+1,1),pointer3--))}pointer3++}}(diffs),pointer3=1;pointer3=overlap_length2?(overlap_length1>=deletion.length/2||overlap_length1>=insertion.length/2)&&(diffs.splice(pointer3,0,new dist_Diff(dist_DIFF_EQUAL,insertion.substring(0,overlap_length1))),diffs[pointer3-1][1]=deletion.substring(0,deletion.length-overlap_length1),diffs[pointer3+1][1]=insertion.substring(overlap_length1),pointer3++):(overlap_length2>=deletion.length/2||overlap_length2>=insertion.length/2)&&(diffs.splice(pointer3,0,new dist_Diff(dist_DIFF_EQUAL,deletion.substring(0,overlap_length2))),diffs[pointer3-1][0]=dist_DIFF_INSERT,diffs[pointer3-1][1]=insertion.substring(0,insertion.length-overlap_length2),diffs[pointer3+1][0]=dist_DIFF_DELETE,diffs[pointer3+1][1]=deletion.substring(overlap_length2),pointer3++),pointer3++}pointer3++}},dist_nonAlphaNumericRegex_=/[^a-z0-9]/i,dist_whitespaceRegex_=/\s/,dist_linebreakRegex_=/[\r\n]/,dist_blanklineEndRegex_=/\n\r?\n$/,dist_blanklineStartRegex_=/^\r?\n\r?\n/;function dist_diff_cleanupMerge(diffs){diffs.push(new dist_Diff(dist_DIFF_EQUAL,""));let commonlength,pointer3=0,count_delete=0,count_insert=0,text_delete="",text_insert="";for(;pointer31?(0!==count_delete&&0!==count_insert&&(commonlength=dist_diff_commonPrefix(text_insert,text_delete),0!==commonlength&&(pointer3-count_delete-count_insert>0&&diffs[pointer3-count_delete-count_insert-1][0]===dist_DIFF_EQUAL?diffs[pointer3-count_delete-count_insert-1][1]+=text_insert.substring(0,commonlength):(diffs.splice(0,0,new dist_Diff(dist_DIFF_EQUAL,text_insert.substring(0,commonlength))),pointer3++),text_insert=text_insert.substring(commonlength),text_delete=text_delete.substring(commonlength)),commonlength=dist_diff_commonSuffix(text_insert,text_delete),0!==commonlength&&(diffs[pointer3][1]=text_insert.substring(text_insert.length-commonlength)+diffs[pointer3][1],text_insert=text_insert.substring(0,text_insert.length-commonlength),text_delete=text_delete.substring(0,text_delete.length-commonlength))),pointer3-=count_delete+count_insert,diffs.splice(pointer3,count_delete+count_insert),text_delete.length&&(diffs.splice(pointer3,0,new dist_Diff(dist_DIFF_DELETE,text_delete)),pointer3++),text_insert.length&&(diffs.splice(pointer3,0,new dist_Diff(dist_DIFF_INSERT,text_insert)),pointer3++),pointer3++):0!==pointer3&&diffs[pointer3-1][0]===dist_DIFF_EQUAL?(diffs[pointer3-1][1]+=diffs[pointer3][1],diffs.splice(pointer3,1)):pointer3++,count_insert=0,count_delete=0,text_delete="",text_insert=""}""===diffs[diffs.length-1][1]&&diffs.pop();let changes=!1;for(pointer3=1;pointer3{let nCommon=0;for(;aIndex{let nCommon=0;for(;aStart<=aIndex&&bStart<=bIndex&&isCommon(aIndex,bIndex);)aIndex-=1,bIndex-=1,nCommon+=1;return nCommon},extendPathsF=(d2,aEnd,bEnd,bF,isCommon,aIndexesF,iMaxF)=>{let iF=0,kF=-d2,aFirst=aIndexesF[iF],aIndexPrev1=aFirst;aIndexesF[iF]+=countCommonItemsF(aFirst+1,aEnd,bF+aFirst-kF+1,bEnd,isCommon);let nF=d2{let iR=0,kR=d2,aFirst=aIndexesR[iR],aIndexPrev1=aFirst;aIndexesR[iR]-=countCommonItemsR(aStart,aFirst-1,bStart,bR+aFirst-kR-1,isCommon);let nR=d2{let bF=bStart-aStart,baDeltaLength=bEnd-bStart-(aEnd-aStart),kMinOverlapF=-baDeltaLength-(d2-1),kMaxOverlapF=d2-1-baDeltaLength,aIndexPrev1=NOT_YET_SET,nF=d2{let bR=bEnd-aEnd,baDeltaLength=bEnd-bStart-(aEnd-aStart),kMinOverlapR=baDeltaLength-d2,kMaxOverlapR=baDeltaLength+d2,aIndexPrev1=NOT_YET_SET,nR=d2{if(bEnd-bStart{foundSubsequence2(nCommon,aCommon,bCommon)},isCommon:(bIndex,aIndex)=>isCommon2(aIndex,bIndex)}}let tStart=aStart,tEnd=aEnd;aStart=bStart,aEnd=bEnd,bStart=tStart,bEnd=tEnd}let{foundSubsequence,isCommon}=callbacks[transposed?1:0];((nChange,aStart,aEnd,bStart,bEnd,isCommon,aIndexesF,aIndexesR,division)=>{let bF=bStart-aStart,bR=bEnd-aEnd,aLength=aEnd-aStart,bLength=bEnd-bStart,baDeltaLength=bLength-aLength,iMaxF=aLength,iMaxR=aLength;if(aIndexesF[0]=aStart-1,aIndexesR[0]=aEnd,baDeltaLength%2==0){let dMin=(nChange||baDeltaLength)/2,dMax=(aLength+bLength)/2;for(let d2=1;d2<=dMax;d2+=1)if(iMaxF=extendPathsF(d2,aEnd,bEnd,bF,isCommon,aIndexesF,iMaxF),d2{if("number"!=typeof arg)throw new TypeError(`${pkg}: ${name} typeof ${typeof arg} is not a number`);if(!Number.isSafeInteger(arg))throw new RangeError(`${pkg}: ${name} value ${arg} is not a safe integer`);if(arg<0)throw new RangeError(`${pkg}: ${name} value ${arg} is a negative integer`)},validateCallback=(name,arg)=>{let type5=typeof arg;if("function"!==type5)throw new TypeError(`${pkg}: ${name} typeof ${type5} is not a function`)};function dist_printDiffLine(line,isFirstOrLast,color,indicator,trailingSpaceFormatter,emptyFirstOrLastLinePlaceholder){return 0!==line.length?color(`${indicator} ${function dist_formatTrailingSpaces(line,trailingSpaceFormatter){return line.replace(/\s+$/,(match=>trailingSpaceFormatter(match)))}(line,trailingSpaceFormatter)}`):" "!==indicator?color(indicator):isFirstOrLast&&0!==emptyFirstOrLastLinePlaceholder.length?color(`${indicator} ${emptyFirstOrLastLinePlaceholder}`):""}function dist_printDeleteLine(line,isFirstOrLast,{aColor,aIndicator,changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder}){return dist_printDiffLine(line,isFirstOrLast,aColor,aIndicator,changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder)}function dist_printInsertLine(line,isFirstOrLast,{bColor,bIndicator,changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder}){return dist_printDiffLine(line,isFirstOrLast,bColor,bIndicator,changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder)}function dist_printCommonLine(line,isFirstOrLast,{commonColor,commonIndicator,commonLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder}){return dist_printDiffLine(line,isFirstOrLast,commonColor,commonIndicator,commonLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder)}function dist_createPatchMark(aStart,aEnd,bStart,bEnd,{patchColor}){return patchColor(`@@ -${aStart+1},${aEnd-aStart} +${bStart+1},${bEnd-bStart} @@`)}var dist_noColor=string=>string,dist_DIFF_CONTEXT_DEFAULT=5,dist_DIFF_TRUNCATE_THRESHOLD_DEFAULT=0;function dist_normalizeDiffOptions(options={}){return{aAnnotation:"Expected",aColor:dist_f2.green,aIndicator:"-",bAnnotation:"Received",bColor:dist_f2.red,bIndicator:"+",changeColor:dist_f2.inverse,changeLineTrailingSpaceColor:dist_noColor,commonColor:dist_f2.dim,commonIndicator:" ",commonLineTrailingSpaceColor:dist_noColor,compareKeys:void 0,contextLines:dist_DIFF_CONTEXT_DEFAULT,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:dist_f2.yellow,truncateThreshold:dist_DIFF_TRUNCATE_THRESHOLD_DEFAULT,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:dist_noColor,...options,compareKeys:(compareKeys=options.compareKeys,compareKeys&&"function"==typeof compareKeys?compareKeys:void 0),contextLines:(contextLines=options.contextLines,"number"==typeof contextLines&&Number.isSafeInteger(contextLines)&&contextLines>=0?contextLines:dist_DIFF_CONTEXT_DEFAULT)};var contextLines,compareKeys}function dist_isEmptyString(lines){return 1===lines.length&&0===lines[0].length}function dist_printDiffLines(diffs,truncated,options){return function dist_printAnnotation({aAnnotation,aColor,aIndicator,bAnnotation,bColor,bIndicator,includeChangeCounts,omitAnnotationLines},changeCounts){if(omitAnnotationLines)return"";let aRest="",bRest="";if(includeChangeCounts){let aCount=String(changeCounts.a),bCount=String(changeCounts.b),baAnnotationLengthDiff=bAnnotation.length-aAnnotation.length,aAnnotationPadding=" ".repeat(Math.max(0,baAnnotationLengthDiff)),bAnnotationPadding=" ".repeat(Math.max(0,-baAnnotationLengthDiff)),baCountLengthDiff=bCount.length-aCount.length;aRest=`${aAnnotationPadding} ${aIndicator} ${" ".repeat(Math.max(0,baCountLengthDiff))}${aCount}`,bRest=`${bAnnotationPadding} ${bIndicator} ${" ".repeat(Math.max(0,-baCountLengthDiff))}${bCount}`}let b=`${bIndicator} ${bAnnotation}${bRest}`;return`${aColor(`${aIndicator} ${aAnnotation}${aRest}`)}\n${bColor(b)}\n\n`}(options,function dist_countChanges(diffs){let a2=0,b=0;return diffs.forEach((diff2=>{switch(diff2[0]){case dist_DIFF_DELETE:a2+=1;break;case dist_DIFF_INSERT:b+=1}})),{a:a2,b}}(diffs))+(options.expand?function dist_joinAlignedDiffsExpand(diffs,options){return diffs.map(((diff2,i,diffs2)=>{let line=diff2[1],isFirstOrLast=0===i||i===diffs2.length-1;switch(diff2[0]){case dist_DIFF_DELETE:return dist_printDeleteLine(line,isFirstOrLast,options);case dist_DIFF_INSERT:return dist_printInsertLine(line,isFirstOrLast,options);default:return dist_printCommonLine(line,isFirstOrLast,options)}})).join("\n")}(diffs,options):function dist_joinAlignedDiffsNoExpand(diffs,options){let iLength=diffs.length,nContextLines=options.contextLines,nContextLines2=nContextLines+nContextLines,jLength=iLength,hasExcessAtStartOrEnd=!1,nExcessesBetweenChanges=0,i=0;for(;i!==iLength;){let iStart=i;for(;i!==iLength&&diffs[i][0]===dist_DIFF_EQUAL;)i+=1;if(iStart!==i)if(0===iStart)i>nContextLines&&(jLength-=i-nContextLines,hasExcessAtStartOrEnd=!0);else if(i===iLength){let n=i-iStart;n>nContextLines&&(jLength-=n-nContextLines,hasExcessAtStartOrEnd=!0)}else{let n=i-iStart;n>nContextLines2&&(jLength-=n-nContextLines2,nExcessesBetweenChanges+=1)}for(;i!==iLength&&diffs[i][0]!==dist_DIFF_EQUAL;)i+=1}let hasPatch=0!==nExcessesBetweenChanges||hasExcessAtStartOrEnd;0!==nExcessesBetweenChanges?jLength+=nExcessesBetweenChanges+1:hasExcessAtStartOrEnd&&(jLength+=1);let jLast=jLength-1,lines=[],jPatchMark=0;hasPatch&&lines.push("");let aStart=0,bStart=0,aEnd=0,bEnd=0,pushCommonLine=line=>{let j=lines.length;lines.push(dist_printCommonLine(line,0===j||j===jLast,options)),aEnd+=1,bEnd+=1},pushDeleteLine=line=>{let j=lines.length;lines.push(dist_printDeleteLine(line,0===j||j===jLast,options)),aEnd+=1},pushInsertLine=line=>{let j=lines.length;lines.push(dist_printInsertLine(line,0===j||j===jLast,options)),bEnd+=1};for(i=0;i!==iLength;){let iStart=i;for(;i!==iLength&&diffs[i][0]===dist_DIFF_EQUAL;)i+=1;if(iStart!==i)if(0===iStart){i>nContextLines&&(iStart=i-nContextLines,aStart=iStart,bStart=iStart,aEnd=aStart,bEnd=bStart);for(let iCommon=iStart;iCommon!==i;iCommon+=1)pushCommonLine(diffs[iCommon][1])}else if(i===iLength){let iEnd=i-iStart>nContextLines?iStart+nContextLines:i;for(let iCommon=iStart;iCommon!==iEnd;iCommon+=1)pushCommonLine(diffs[iCommon][1])}else{let nCommon=i-iStart;if(nCommon>nContextLines2){let iEnd=iStart+nContextLines;for(let iCommon=iStart;iCommon!==iEnd;iCommon+=1)pushCommonLine(diffs[iCommon][1]);lines[jPatchMark]=dist_createPatchMark(aStart,aEnd,bStart,bEnd,options),jPatchMark=lines.length,lines.push("");let nOmit=nCommon-nContextLines2;aStart=aEnd+nOmit,bStart=bEnd+nOmit,aEnd=aStart,bEnd=bStart;for(let iCommon=i-nContextLines;iCommon!==i;iCommon+=1)pushCommonLine(diffs[iCommon][1])}else for(let iCommon=iStart;iCommon!==i;iCommon+=1)pushCommonLine(diffs[iCommon][1])}for(;i!==iLength&&diffs[i][0]===dist_DIFF_DELETE;)pushDeleteLine(diffs[i][1]),i+=1;for(;i!==iLength&&diffs[i][0]===dist_DIFF_INSERT;)pushInsertLine(diffs[i][1]),i+=1}return hasPatch&&(lines[jPatchMark]=dist_createPatchMark(aStart,aEnd,bStart,bEnd,options)),lines.join("\n")}(diffs,options))+(truncated?options.truncateAnnotationColor(`\n${options.truncateAnnotation}`):"")}function dist_diffLinesUnified(aLines,bLines,options){let normalizedOptions=dist_normalizeDiffOptions(options),[diffs,truncated]=dist_diffLinesRaw(dist_isEmptyString(aLines)?[]:aLines,dist_isEmptyString(bLines)?[]:bLines,normalizedOptions);return dist_printDiffLines(diffs,truncated,normalizedOptions)}function dist_diffLinesRaw(aLines,bLines,options){let truncate3=options?.truncateThreshold??!1,truncateThreshold=Math.max(Math.floor(options?.truncateThreshold??0),0),aLength=truncate3?Math.min(aLines.length,truncateThreshold):aLines.length,bLength=truncate3?Math.min(bLines.length,truncateThreshold):bLines.length,truncated=aLength!==aLines.length||bLength!==bLines.length,diffs=[],aIndex=0,bIndex=0;for(_default(aLength,bLength,((aIndex2,bIndex2)=>aLines[aIndex2]===bLines[bIndex2]),((nCommon,aCommon,bCommon)=>{for(;aIndex!==aCommon;aIndex+=1)diffs.push(new dist_Diff(dist_DIFF_DELETE,aLines[aIndex]));for(;bIndex!==bCommon;bIndex+=1)diffs.push(new dist_Diff(dist_DIFF_INSERT,bLines[bIndex]));for(;0!==nCommon;nCommon-=1,aIndex+=1,bIndex+=1)diffs.push(new dist_Diff(dist_DIFF_EQUAL,bLines[bIndex]))}));aIndex!==aLength;aIndex+=1)diffs.push(new dist_Diff(dist_DIFF_DELETE,aLines[aIndex]));for(;bIndex!==bLength;bIndex+=1)diffs.push(new dist_Diff(dist_DIFF_INSERT,bLines[bIndex]));return[diffs,truncated]}function dist_getNewLineSymbol(string){return string.includes("\r\n")?"\r\n":"\n"}var dist_ChangeBuffer=class{op;line;lines;changeColor;constructor(op,changeColor){this.op=op,this.line=[],this.lines=[],this.changeColor=changeColor}pushSubstring(substring){this.pushDiff(new dist_Diff(this.op,substring))}pushLine(){this.lines.push(1!==this.line.length?new dist_Diff(this.op,function dist_concatenateRelevantDiffs(op,diffs,changeColor){return diffs.reduce(((reduced,diff2)=>reduced+(diff2[0]===dist_DIFF_EQUAL?diff2[1]:diff2[0]===op&&0!==diff2[1].length?changeColor(diff2[1]):"")),"")}(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new dist_Diff(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return 0===this.line.length}pushDiff(diff2){this.line.push(diff2)}align(diff2){let string=diff2[1];if(string.includes("\n")){let substrings=string.split("\n"),iLast=substrings.length-1;substrings.forEach(((substring,i)=>{i{if(0===i){let subdiff=new dist_Diff(op,substring);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(subdiff)):(this.pushDiffChangeLines(subdiff),this.flushChangeLines())}else idiff2[0]===dist_DIFF_EQUAL&&(i!==iLast||"\n"!==diff2[1])))}return diffs.some((diff2=>diff2[0]===dist_DIFF_EQUAL))}(diffs,isMultiline)){let optionsNormalized=dist_normalizeDiffOptions(options),lines=function dist_getAlignedDiffs(diffs,changeColor){let deleteBuffer=new dist_ChangeBuffer(dist_DIFF_DELETE,changeColor),insertBuffer=new dist_ChangeBuffer(dist_DIFF_INSERT,changeColor),commonBuffer=new dist_CommonBuffer(deleteBuffer,insertBuffer);return diffs.forEach((diff2=>{switch(diff2[0]){case dist_DIFF_DELETE:deleteBuffer.align(diff2);break;case dist_DIFF_INSERT:insertBuffer.align(diff2);break;default:commonBuffer.align(diff2)}})),commonBuffer.getLines()}(diffs,optionsNormalized.changeColor);return dist_printDiffLines(lines,truncated,optionsNormalized)}}return dist_diffLinesUnified(a2.split("\n"),b.split("\n"),options)}function dist_diffStringsRaw(a2,b,cleanup,options){let[diffs,truncated]=function dist_diffStrings(a2,b,options){let truncate3=options?.truncateThreshold??!1,truncateThreshold=Math.max(Math.floor(options?.truncateThreshold??0),0),aLength=a2.length,bLength=b.length;if(truncate3){let aMultipleLines=a2.includes("\n"),bMultipleLines=b.includes("\n"),aNewLineSymbol=dist_getNewLineSymbol(a2),bNewLineSymbol=dist_getNewLineSymbol(b),_a2=aMultipleLines?`${a2.split(aNewLineSymbol,truncateThreshold).join(aNewLineSymbol)}\n`:a2,_b=bMultipleLines?`${b.split(bNewLineSymbol,truncateThreshold).join(bNewLineSymbol)}\n`:b;aLength=_a2.length,bLength=_b.length}let truncated=aLength!==a2.length||bLength!==b.length,aIndex=0,bIndex=0,diffs=[];return _default(aLength,bLength,((aIndex2,bIndex2)=>a2[aIndex2]===b[bIndex2]),((nCommon,aCommon,bCommon)=>{aIndex!==aCommon&&diffs.push(new dist_Diff(dist_DIFF_DELETE,a2.slice(aIndex,aCommon))),bIndex!==bCommon&&diffs.push(new dist_Diff(dist_DIFF_INSERT,b.slice(bIndex,bCommon))),aIndex=aCommon+nCommon,bIndex=bCommon+nCommon,diffs.push(new dist_Diff(dist_DIFF_EQUAL,b.slice(bCommon,bIndex)))})),aIndex!==aLength&&diffs.push(new dist_Diff(dist_DIFF_DELETE,a2.slice(aIndex))),bIndex!==bLength&&diffs.push(new dist_Diff(dist_DIFF_INSERT,b.slice(bIndex))),[diffs,truncated]}(a2,b,options);return cleanup&&dist_diff_cleanupSemantic(diffs),[diffs,truncated]}function dist_getCommonMessage(message,options){let{commonColor}=dist_normalizeDiffOptions(options);return commonColor(message)}var{AsymmetricMatcher:dist_AsymmetricMatcher2,DOMCollection:dist_DOMCollection2,DOMElement:dist_DOMElement2,Immutable:dist_Immutable2,ReactElement:dist_ReactElement2,ReactTestComponent:dist_ReactTestComponent2}=dist_plugins,dist_PLUGINS2=[dist_ReactTestComponent2,dist_ReactElement2,dist_DOMElement2,dist_DOMCollection2,dist_Immutable2,dist_AsymmetricMatcher2],dist_FORMAT_OPTIONS={plugins:dist_PLUGINS2},dist_FALLBACK_FORMAT_OPTIONS={callToJSON:!1,maxDepth:10,plugins:dist_PLUGINS2};function dist_diff(a2,b,options){if(Object.is(a2,b))return"";let aType=dist_getType3(a2),expectedType=aType,omitDifference=!1;if("object"===aType&&"function"==typeof a2.asymmetricMatch){if(a2.$$typeof!==Symbol.for("jest.asymmetricMatcher")||"function"!=typeof a2.getExpectedType)return;expectedType=a2.getExpectedType(),omitDifference="string"===expectedType}if(expectedType!==dist_getType3(b)){let{aAnnotation,aColor,aIndicator,bAnnotation,bColor,bIndicator}=dist_normalizeDiffOptions(options),formatOptions=dist_getFormatOptions(dist_FALLBACK_FORMAT_OPTIONS,options),aDisplay=dist_format(a2,formatOptions),bDisplay=dist_format(b,formatOptions);return`${`${aColor(`${aIndicator} ${aAnnotation}:`)} \n${aDisplay}`}\n\n${`${bColor(`${bIndicator} ${bAnnotation}:`)} \n${bDisplay}`}`}if(!omitDifference)switch(aType){case"string":return dist_diffLinesUnified(a2.split("\n"),b.split("\n"),options);case"boolean":case"number":return function dist_comparePrimitive(a2,b,options){let aFormat=dist_format(a2,dist_FORMAT_OPTIONS),bFormat=dist_format(b,dist_FORMAT_OPTIONS);return aFormat===bFormat?"":dist_diffLinesUnified(aFormat.split("\n"),bFormat.split("\n"),options)}(a2,b,options);case"map":return dist_compareObjects(dist_sortMap(a2),dist_sortMap(b),options);case"set":return dist_compareObjects(dist_sortSet(a2),dist_sortSet(b),options);default:return dist_compareObjects(a2,b,options)}}function dist_sortMap(map){return new Map(Array.from(map.entries()).sort())}function dist_sortSet(set2){return new Set(Array.from(set2.values()).sort())}function dist_compareObjects(a2,b,options){let difference,hasThrown=!1;try{difference=dist_getObjectsDifference(a2,b,dist_getFormatOptions(dist_FORMAT_OPTIONS,options),options)}catch{hasThrown=!0}let noDiffMessage=dist_getCommonMessage(dist_NO_DIFF_MESSAGE,options);if(void 0===difference||difference===noDiffMessage){difference=dist_getObjectsDifference(a2,b,dist_getFormatOptions(dist_FALLBACK_FORMAT_OPTIONS,options),options),difference!==noDiffMessage&&!hasThrown&&(difference=`${dist_getCommonMessage(dist_SIMILAR_MESSAGE,options)}\n\n${difference}`)}return difference}function dist_getFormatOptions(formatOptions,options){let{compareKeys}=dist_normalizeDiffOptions(options);return{...formatOptions,compareKeys}}function dist_getObjectsDifference(a2,b,formatOptions,options){let formatOptionsZeroIndent={...formatOptions,indent:0},aCompare=dist_format(a2,formatOptionsZeroIndent),bCompare=dist_format(b,formatOptionsZeroIndent);if(aCompare===bCompare)return dist_getCommonMessage(dist_NO_DIFF_MESSAGE,options);{let aDisplay=dist_format(a2,formatOptions),bDisplay=dist_format(b,formatOptions);return function dist_diffLinesUnified2(aLinesDisplay,bLinesDisplay,aLinesCompare,bLinesCompare,options){if(dist_isEmptyString(aLinesDisplay)&&dist_isEmptyString(aLinesCompare)&&(aLinesDisplay=[],aLinesCompare=[]),dist_isEmptyString(bLinesDisplay)&&dist_isEmptyString(bLinesCompare)&&(bLinesDisplay=[],bLinesCompare=[]),aLinesDisplay.length!==aLinesCompare.length||bLinesDisplay.length!==bLinesCompare.length)return dist_diffLinesUnified(aLinesDisplay,bLinesDisplay,options);let[diffs,truncated]=dist_diffLinesRaw(aLinesCompare,bLinesCompare,options),aIndex=0,bIndex=0;return diffs.forEach((diff2=>{switch(diff2[0]){case dist_DIFF_DELETE:diff2[1]=aLinesDisplay[aIndex],aIndex+=1;break;case dist_DIFF_INSERT:diff2[1]=bLinesDisplay[bIndex],bIndex+=1;break;default:diff2[1]=bLinesDisplay[bIndex],aIndex+=1,bIndex+=1}})),dist_printDiffLines(diffs,truncated,dist_normalizeDiffOptions(options))}(aDisplay.split("\n"),bDisplay.split("\n"),aCompare.split("\n"),bCompare.split("\n"),options)}}var dist_MAX_DIFF_STRING_LENGTH=2e4;function dist_isAsymmetricMatcher(data){return"Object"===dist_getType(data)&&"function"==typeof data.asymmetricMatch}function dist_isReplaceable(obj1,obj2){let obj1Type=dist_getType(obj1);return obj1Type===dist_getType(obj2)&&("Object"===obj1Type||"Array"===obj1Type)}function dist_printDiffOrStringify(expected,received,options){let{aAnnotation,bAnnotation}=dist_normalizeDiffOptions(options);if("string"==typeof expected&&"string"==typeof received&&expected.length>0&&received.length>0&&expected.length<=dist_MAX_DIFF_STRING_LENGTH&&received.length<=dist_MAX_DIFF_STRING_LENGTH&&expected!==received){if(expected.includes("\n")||received.includes("\n"))return dist_diffStringsUnified(received,expected,options);let[diffs]=dist_diffStringsRaw(received,expected,!0),hasCommonDiff2=diffs.some((diff2=>diff2[0]===dist_DIFF_EQUAL)),printLabel=function dist_getLabelPrinter(...strings){let maxLength=strings.reduce(((max,string)=>string.length>max?string.length:max),0);return string=>`${string}: ${" ".repeat(maxLength-string.length)}`}(aAnnotation,bAnnotation);return`${printLabel(aAnnotation)+function dist_printExpected(value){return dist_f2.green(dist_replaceTrailingSpaces(dist_stringify(value)))}(dist_getCommonAndChangedSubstrings(diffs,dist_DIFF_DELETE,hasCommonDiff2))}\n${printLabel(bAnnotation)+function dist_printReceived(object){return dist_f2.red(dist_replaceTrailingSpaces(dist_stringify(object)))}(dist_getCommonAndChangedSubstrings(diffs,dist_DIFF_INSERT,hasCommonDiff2))}`}let clonedExpected=dist_deepClone(expected,{forceWritable:!0}),clonedReceived=dist_deepClone(received,{forceWritable:!0}),{replacedExpected,replacedActual}=dist_replaceAsymmetricMatcher(clonedExpected,clonedReceived);return dist_diff(replacedExpected,replacedActual,options)}function dist_replaceAsymmetricMatcher(actual,expected,actualReplaced=new WeakSet,expectedReplaced=new WeakSet){return dist_isReplaceable(actual,expected)?(actualReplaced.has(actual)||expectedReplaced.has(expected)||(actualReplaced.add(actual),expectedReplaced.add(expected),dist_getOwnProperties(expected).forEach((key=>{let expectedValue=expected[key],actualValue=actual[key];if(dist_isAsymmetricMatcher(expectedValue))expectedValue.asymmetricMatch(actualValue)&&(actual[key]=expectedValue);else if(dist_isAsymmetricMatcher(actualValue))actualValue.asymmetricMatch(expectedValue)&&(expected[key]=actualValue);else if(dist_isReplaceable(actualValue,expectedValue)){let replaced=dist_replaceAsymmetricMatcher(actualValue,expectedValue,actualReplaced,expectedReplaced);actual[key]=replaced.replacedActual,expected[key]=replaced.replacedExpected}}))),{replacedActual:actual,replacedExpected:expected}):{replacedActual:actual,replacedExpected:expected}}var dist_SPACE_SYMBOL="·";function dist_replaceTrailingSpaces(text){return text.replace(/\s+$/gm,(spaces=>dist_SPACE_SYMBOL.repeat(spaces.length)))}function dist_getCommonAndChangedSubstrings(diffs,op,hasCommonDiff2){return diffs.reduce(((reduced,diff2)=>reduced+(diff2[0]===dist_DIFF_EQUAL?diff2[1]:diff2[0]===op?hasCommonDiff2?dist_f2.inverse(diff2[1]):diff2[1]:"")),"")}function d(e,t){if(!e)throw new Error(t)}function y(e,t){return typeof t===e}function f3(e,t,n){Object.defineProperty(e,t,n)}function p2(e,t,n){Object.defineProperty(e,t,{value:n})}var u=Symbol.for("tinyspy:spy"),x=new Set,I=e=>e[u]||(e=>(f3(e,u,{value:{reset:()=>(e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]})(e[u])}}),e[u]))(e);function g(e){d(y("function",e)||y("undefined",e),"cannot spy on a non-function value");let t=function(...s){let r=I(t);r.called=!0,r.callCount++,r.calls.push(s);let R=r.next.shift();if(R){r.results.push(R);let[o,l]=R;if("ok"===o)return l;throw l}let i,c="ok",a2=r.results.length;if(r.impl)try{i=new.target?Reflect.construct(r.impl,s,new.target):r.impl.apply(this,s),c="ok"}catch(o){throw i=o,c="error",r.results.push([c,o]),o}let S=[c,i];return function w(e){return e instanceof Promise}(i)&&i.then((o=>r.resolves[a2]=["ok",o]),(o=>r.resolves[a2]=["error",o])),r.results.push(S),i};p2(t,"_isMockFunction",!0),p2(t,"length",e?e.length:0),p2(t,"name",e&&e.name||"spy");let n=I(t);return n.reset(),n.impl=e,t}var k=(e,t)=>Object.getOwnPropertyDescriptor(e,t),O=(e,t)=>{null!=t&&"function"==typeof t&&null!=t.prototype&&Object.setPrototypeOf(e.prototype,t.prototype)};function C2(e,t,n){d(!y("undefined",e),"spyOn could not find an object to spy upon"),d(y("object",e)||y("function",e),"cannot spyOn on a primitive value");let[s,r]=(()=>{if(!y("object",t))return[t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return[t.getter,"get"];if("setter"in t)return[t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),R=k(e,s),i=Object.getPrototypeOf(e),c=i&&k(i,s),a2=R||c;d(a2||s in e,`${String(s)} does not exist`);let o,S=!1;"value"===r&&a2&&!a2.value&&a2.get&&(r="get",S=!0,n=a2.get()),o=a2?a2[r]:"value"!==r?()=>e[s]:e[s],n||(n=o);let l=g(n);"value"===r&&O(l,o);let h2=A=>{let{value:M,...v}=a2||{configurable:!0,writable:!0};"value"!==r&&delete v.writable,v[r]=A,f3(e,s,v)},m2=l[u];return p2(m2,"restore",(()=>a2?f3(e,s,a2):h2(o))),p2(m2,"getOriginal",(()=>S?o():o)),p2(m2,"willCall",(A=>(m2.impl=A,l))),h2(S?()=>(O(l,n),l):l),x.add(l),l}var mocks=new Set;function isMockFunction(fn22){return"function"==typeof fn22&&"_isMockFunction"in fn22&&fn22._isMockFunction}var callOrder=0;function enhanceSpy(spy){let implementation,stub=spy,instances=[],contexts=[],invocations=[],state=I(spy),mockContext={get calls(){return state.calls},get contexts(){return contexts},get instances(){return instances},get invocationCallOrder(){return invocations},get results(){return state.results.map((([callType,value])=>({type:"error"===callType?"throw":"return",value})))},get settledResults(){return state.resolves.map((([callType,value])=>({type:"error"===callType?"rejected":"fulfilled",value})))},get lastCall(){return state.calls[state.calls.length-1]}},onceImplementations=[],implementationChangedTemporarily=!1;function mockCall(...args){return instances.push(this),contexts.push(this),invocations.push(++callOrder),(implementationChangedTemporarily?implementation:onceImplementations.shift()||implementation||state.getOriginal()||(()=>{})).apply(this,args)}let name=stub.name;return stub.getMockName=()=>name||"vi.fn()",stub.mockName=n=>(name=n,stub),stub.mockClear=()=>(state.reset(),instances=[],contexts=[],invocations=[],stub),stub.mockReset=()=>(stub.mockClear(),implementation=()=>{},onceImplementations=[],stub),stub.mockRestore=()=>(stub.mockReset(),state.restore(),implementation=void 0,stub),stub.getMockImplementation=()=>implementation,stub.mockImplementation=fn22=>(implementation=fn22,state.willCall(mockCall),stub),stub.mockImplementationOnce=fn22=>(onceImplementations.push(fn22),stub),stub.withImplementation=function withImplementation(fn22,cb){let originalImplementation=implementation;implementation=fn22,state.willCall(mockCall),implementationChangedTemporarily=!0;let reset=()=>{implementation=originalImplementation,implementationChangedTemporarily=!1},result=cb();return result instanceof Promise?result.then((()=>(reset(),stub))):(reset(),stub)},stub.mockReturnThis=()=>stub.mockImplementation((function(){return this})),stub.mockReturnValue=val=>stub.mockImplementation((()=>val)),stub.mockReturnValueOnce=val=>stub.mockImplementationOnce((()=>val)),stub.mockResolvedValue=val=>stub.mockImplementation((()=>Promise.resolve(val))),stub.mockResolvedValueOnce=val=>stub.mockImplementationOnce((()=>Promise.resolve(val))),stub.mockRejectedValue=val=>stub.mockImplementation((()=>Promise.reject(val))),stub.mockRejectedValueOnce=val=>stub.mockImplementationOnce((()=>Promise.reject(val))),Object.defineProperty(stub,"mock",{get:()=>mockContext}),state.willCall(mockCall),mocks.add(stub),stub}function fn(implementation){let enhancedSpy=enhanceSpy(C2({spy:implementation||function(){}},"spy"));return implementation&&enhancedSpy.mockImplementation(implementation),enhancedSpy}var dist_IS_RECORD_SYMBOL="@@__IMMUTABLE_RECORD__@@",dist_IS_COLLECTION_SYMBOL="@@__IMMUTABLE_ITERABLE__@@";var dist_OBJECT_PROTO=Object.getPrototypeOf({});function dist_getUnserializableMessage(err){return err instanceof Error?`: ${err.message}`:"string"==typeof err?`: ${err}`:""}function dist_serializeValue(val,seen=new WeakMap){if(!val||"string"==typeof val)return val;if("function"==typeof val)return`Function<${val.name||"anonymous"}>`;if("symbol"==typeof val)return val.toString();if("object"!=typeof val)return val;if(function dist_isImmutable(v){return v&&(v[dist_IS_COLLECTION_SYMBOL]||v[dist_IS_RECORD_SYMBOL])}(val))return dist_serializeValue(val.toJSON(),seen);if(val instanceof Promise||val.constructor&&"AsyncFunction"===val.constructor.prototype)return"Promise";if(typeof Element<"u"&&val instanceof Element)return val.tagName;if("function"==typeof val.asymmetricMatch)return`${val.toString()} ${function dist_format2(...args){if("string"!=typeof args[0]){let objects=[];for(let i2=0;i2{if("%%"===x2)return"%";if(i>=len)return x2;switch(x2){case"%s":{let value=args[i++];return"bigint"==typeof value?`${value.toString()}n`:"number"==typeof value&&0===value&&1/value<0?"-0":"object"==typeof value&&null!==value?inspect4(value,{depth:0,colors:!1}):String(value)}case"%d":{let value=args[i++];return"bigint"==typeof value?`${value.toString()}n`:Number(value).toString()}case"%i":{let value=args[i++];return"bigint"==typeof value?`${value.toString()}n`:Number.parseInt(String(value)).toString()}case"%f":return Number.parseFloat(String(args[i++])).toString();case"%o":return inspect4(args[i++],{showHidden:!0,showProxy:!0});case"%O":return inspect4(args[i++]);case"%c":return i++,"";case"%j":try{return JSON.stringify(args[i++])}catch(err){let m2=err.message;if(m2.includes("circular structure")||m2.includes("cyclic structures")||m2.includes("cyclic object"))return"[Circular]";throw err}default:return x2}}));for(let x2=args[i];i{try{clone2[i]=dist_serializeValue(e,seen)}catch(err){clone2[i]=dist_getUnserializableMessage(err)}})),clone2}{let clone2=Object.create(null);seen.set(val,clone2);let obj=val;for(;obj&&obj!==dist_OBJECT_PROTO;)Object.getOwnPropertyNames(obj).forEach((key=>{if(!(key in clone2))try{clone2[key]=dist_serializeValue(val[key],seen)}catch(err){delete clone2[key],clone2[key]=dist_getUnserializableMessage(err)}})),obj=Object.getPrototypeOf(obj);return clone2}}function dist_processError(_err,diffOptions,seen=new WeakSet){if(!_err||"object"!=typeof _err)return{message:String(_err)};let err=_err;err.stack&&(err.stackStr=String(err.stack)),err.name&&(err.nameStr=String(err.name)),(err.showDiff||void 0===err.showDiff&&void 0!==err.expected&&void 0!==err.actual)&&(err.diff=dist_printDiffOrStringify(err.actual,err.expected,{...diffOptions,...err.diffOptions})),"string"!=typeof err.expected&&(err.expected=dist_stringify(err.expected,10)),"string"!=typeof err.actual&&(err.actual=dist_stringify(err.actual,10));try{"string"==typeof err.message&&(err.message=function dist_normalizeErrorMessage(message){return message.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}(err.message))}catch{}try{!seen.has(err)&&"object"==typeof err.cause&&(seen.add(err),err.cause=dist_processError(err.cause,diffOptions,seen))}catch{}try{return dist_serializeValue(err)}catch(e){return dist_serializeValue(new Error(`Failed to fully serialize error: ${e?.message}\nInner error message: ${err?.message}`))}}var MATCHERS_OBJECT=Symbol.for("matchers-object"),JEST_MATCHERS_OBJECT=Symbol.for("$$jest-matchers-object-storybook"),GLOBAL_EXPECT=Symbol.for("expect-global"),ASYMMETRIC_MATCHERS_OBJECT=Symbol.for("asymmetric-matchers-object");if(!Object.prototype.hasOwnProperty.call(globalThis,MATCHERS_OBJECT)){let globalState=new WeakMap;Object.defineProperty(globalThis,MATCHERS_OBJECT,{get:()=>globalState})}if(!Object.prototype.hasOwnProperty.call(globalThis,JEST_MATCHERS_OBJECT)){let matchers=Object.create(null),customEqualityTesters=[];Object.defineProperty(globalThis,JEST_MATCHERS_OBJECT,{configurable:!0,get:()=>({state:globalThis[MATCHERS_OBJECT].get(globalThis[GLOBAL_EXPECT]),matchers,customEqualityTesters})})}if(!Object.prototype.hasOwnProperty.call(globalThis,ASYMMETRIC_MATCHERS_OBJECT)){let assymetricMatchers=Object.create(null);Object.defineProperty(globalThis,ASYMMETRIC_MATCHERS_OBJECT,{get:()=>assymetricMatchers})}function getState(expect4){return globalThis[MATCHERS_OBJECT].get(expect4)}function setState(state,expect4){let map=globalThis[MATCHERS_OBJECT],current=map.get(expect4)||{};Object.assign(current,state),map.set(expect4,current)}var EXPECTED_COLOR=dist_f2.green,RECEIVED_COLOR=dist_f2.red,INVERTED_COLOR=dist_f2.inverse,BOLD_WEIGHT=dist_f2.bold,DIM_COLOR=dist_f2.dim;function matcherHint(matcherName,received="received",expected="expected",options={}){let{comment="",isDirectExpectCall=!1,isNot=!1,promise="",secondArgument="",expectedColor=EXPECTED_COLOR,receivedColor=RECEIVED_COLOR,secondArgumentColor=EXPECTED_COLOR}=options,hint="",dimString="expect";return!isDirectExpectCall&&""!==received&&(hint+=DIM_COLOR(`${dimString}(`)+receivedColor(received),dimString=")"),""!==promise&&(hint+=DIM_COLOR(`${dimString}.`)+promise,dimString=""),isNot&&(hint+=`${DIM_COLOR(`${dimString}.`)}not`,dimString=""),matcherName.includes(".")?dimString+=matcherName:(hint+=DIM_COLOR(`${dimString}.`)+matcherName,dimString=""),""===expected?dimString+="()":(hint+=DIM_COLOR(`${dimString}(`)+expectedColor(expected),secondArgument&&(hint+=DIM_COLOR(", ")+secondArgumentColor(secondArgument)),dimString=")"),""!==comment&&(dimString+=` // ${comment}`),""!==dimString&&(hint+=DIM_COLOR(dimString)),hint}var SPACE_SYMBOL2="·";function replaceTrailingSpaces2(text){return text.replace(/\s+$/gm,(spaces=>SPACE_SYMBOL2.repeat(spaces.length)))}function printReceived2(object){return RECEIVED_COLOR(replaceTrailingSpaces2(dist_stringify(object)))}function printExpected2(value){return EXPECTED_COLOR(replaceTrailingSpaces2(dist_stringify(value)))}function getMatcherUtils(){return{EXPECTED_COLOR,RECEIVED_COLOR,INVERTED_COLOR,BOLD_WEIGHT,DIM_COLOR,diff:dist_diff,matcherHint,printReceived:printReceived2,printExpected:printExpected2,printDiffOrStringify:dist_printDiffOrStringify}}function getCustomEqualityTesters(){return globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters}function equals(a2,b,customTesters,strictCheck){return eq(a2,b,[],[],customTesters=customTesters||[],strictCheck?hasKey:hasDefinedKey)}function isAsymmetric(obj){return!!obj&&"object"==typeof obj&&"asymmetricMatch"in obj&&isA("Function",obj.asymmetricMatch)}function eq(a2,b,aStack,bStack,customTesters,hasKey2){let result=!0,asymmetricResult=function asymmetricMatch(a2,b){let asymmetricA=isAsymmetric(a2),asymmetricB=isAsymmetric(b);if(!asymmetricA||!asymmetricB){if(asymmetricA)return a2.asymmetricMatch(b);if(asymmetricB)return b.asymmetricMatch(a2)}}(a2,b);if(void 0!==asymmetricResult)return asymmetricResult;let testerContext={equals};for(let i=0;iObject.getOwnPropertyDescriptor(obj,symbol).enumerable)))}function hasDefinedKey(obj,key){return hasKey(obj,key)&&void 0!==obj[key]}function hasKey(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)}function isA(typeName,value){return Object.prototype.toString.apply(value)===`[object ${typeName}]`}function isDomNode(obj){return null!==obj&&"object"==typeof obj&&"nodeType"in obj&&"number"==typeof obj.nodeType&&"nodeName"in obj&&"string"==typeof obj.nodeName&&"isEqualNode"in obj&&"function"==typeof obj.isEqualNode}var IS_KEYED_SENTINEL2="@@__IMMUTABLE_KEYED__@@",IS_SET_SENTINEL2="@@__IMMUTABLE_SET__@@",IS_LIST_SENTINEL2="@@__IMMUTABLE_LIST__@@",IS_ORDERED_SENTINEL2="@@__IMMUTABLE_ORDERED__@@",IS_RECORD_SYMBOL2="@@__IMMUTABLE_RECORD__@@";function isObjectLiteral(source){return null!=source&&"object"==typeof source&&!Array.isArray(source)}var IteratorSymbol=Symbol.iterator;function hasIterator(object){return!(null==object||!object[IteratorSymbol])}function iterableEquality(a2,b,customTesters=[],aStack=[],bStack=[]){if("object"!=typeof a2||"object"!=typeof b||Array.isArray(a2)||Array.isArray(b)||!hasIterator(a2)||!hasIterator(b))return;if(a2.constructor!==b.constructor)return!1;let length=aStack.length;for(;length--;)if(aStack[length]===a2)return bStack[length]===b;aStack.push(a2),bStack.push(b);let filteredCustomTesters=[...customTesters.filter((t=>t!==iterableEquality)),function iterableEqualityWithStack(a22,b2){return iterableEquality(a22,b2,[...customTesters],[...aStack],[...bStack])}];if(void 0!==a2.size){if(a2.size!==b.size)return!1;if(isA("Set",a2)||function isImmutableUnorderedSet(maybeSet){return!(!maybeSet||!maybeSet[IS_SET_SENTINEL2]||maybeSet[IS_ORDERED_SENTINEL2])}(a2)){let allFound=!0;for(let aValue of a2)if(!b.has(aValue)){let has=!1;for(let bValue of b)!0===equals(aValue,bValue,filteredCustomTesters)&&(has=!0);if(!1===has){allFound=!1;break}}return aStack.pop(),bStack.pop(),allFound}if(isA("Map",a2)||function isImmutableUnorderedKeyed(maybeKeyed){return!(!maybeKeyed||!maybeKeyed[IS_KEYED_SENTINEL2]||maybeKeyed[IS_ORDERED_SENTINEL2])}(a2)){let allFound=!0;for(let aEntry of a2)if(!b.has(aEntry[0])||!equals(aEntry[1],b.get(aEntry[0]),filteredCustomTesters)){let has=!1;for(let bEntry of b){let matchedValue=!1;!0===equals(aEntry[0],bEntry[0],filteredCustomTesters)&&(matchedValue=equals(aEntry[1],bEntry[1],filteredCustomTesters)),!0===matchedValue&&(has=!0)}if(!1===has){allFound=!1;break}}return aStack.pop(),bStack.pop(),allFound}}let bIterator=b[IteratorSymbol]();for(let aValue of a2){let nextB=bIterator.next();if(nextB.done||!equals(aValue,nextB.value,filteredCustomTesters))return!1}if(!bIterator.next().done)return!1;if(!(function isImmutableList(source){return!!(source&&isObjectLiteral(source)&&source[IS_LIST_SENTINEL2])}(a2)||function isImmutableOrderedKeyed(source){return!!(source&&isObjectLiteral(source)&&source[IS_KEYED_SENTINEL2]&&source[IS_ORDERED_SENTINEL2])}(a2)||function isImmutableOrderedSet(source){return!!(source&&isObjectLiteral(source)&&source[IS_SET_SENTINEL2]&&source[IS_ORDERED_SENTINEL2])}(a2)||function isImmutableRecord(source){return!!(source&&isObjectLiteral(source)&&source[IS_RECORD_SYMBOL2])}(a2))){if(!equals(Object.entries(a2),Object.entries(b)))return!1}return aStack.pop(),bStack.pop(),!0}function hasPropertyInObject(object,key){return!(!object||"object"!=typeof object||object===Object.prototype)&&(Object.prototype.hasOwnProperty.call(object,key)||hasPropertyInObject(Object.getPrototypeOf(object),key))}function subsetEquality(object,subset,customTesters=[]){let filteredCustomTesters=customTesters.filter((t=>t!==subsetEquality)),subsetEqualityWithContext=(seenReferences=new WeakMap)=>(object2,subset2)=>{if(function isObjectWithKeys(a2){return dist_isObject(a2)&&!(a2 instanceof Error)&&!Array.isArray(a2)&&!(a2 instanceof Date)}(subset2))return Object.keys(subset2).every((key=>{if(null!=subset2[key]&&"object"==typeof subset2[key]){if(seenReferences.has(subset2[key]))return equals(object2[key],subset2[key],filteredCustomTesters);seenReferences.set(subset2[key],!0)}let result=null!=object2&&hasPropertyInObject(object2,key)&&equals(object2[key],subset2[key],[...filteredCustomTesters,subsetEqualityWithContext(seenReferences)]);return seenReferences.delete(subset2[key]),result}))};return subsetEqualityWithContext()(object,subset)}function typeEquality(a2,b){if(null!=a2&&null!=b&&a2.constructor!==b.constructor)return!1}function arrayBufferEquality(a2,b){let dataViewA=a2,dataViewB=b;if(!(a2 instanceof DataView&&b instanceof DataView)){if(!(a2 instanceof ArrayBuffer&&b instanceof ArrayBuffer))return;try{dataViewA=new DataView(a2),dataViewB=new DataView(b)}catch{return}}if(dataViewA.byteLength!==dataViewB.byteLength)return!1;for(let i=0;it!==sparseArrayEquality)),!0)&&equals(aKeys,bKeys)}function getObjectKeys(object){return[...Object.keys(object),...Object.getOwnPropertySymbols(object).filter((s=>{var _a2;return null==(_a2=Object.getOwnPropertyDescriptor(object,s))?void 0:_a2.enumerable}))]}var AsymmetricMatcher3=class{constructor(sample,inverse=!1){this.sample=sample,this.inverse=inverse}$$typeof=Symbol.for("jest.asymmetricMatcher");getMatcherContext(expect4){return{...getState(expect4||globalThis[GLOBAL_EXPECT]),equals,isNot:this.inverse,customTesters:getCustomEqualityTesters(),utils:{...getMatcherUtils(),diff:dist_diff,stringify:dist_stringify,iterableEquality,subsetEquality}}}[Symbol.for("chai/inspect")](options){let result=dist_stringify(this,options.depth,{min:!0});return result.length<=options.truncate?result:`${this.toString()}{…}`}},StringContaining=class extends AsymmetricMatcher3{constructor(sample,inverse=!1){if(!isA("String",sample))throw new Error("Expected is not a string");super(sample,inverse)}asymmetricMatch(other){let result=isA("String",other)&&other.includes(this.sample);return this.inverse?!result:result}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},Anything=class extends AsymmetricMatcher3{asymmetricMatch(other){return null!=other}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},ObjectContaining=class extends AsymmetricMatcher3{constructor(sample,inverse=!1){super(sample,inverse)}getPrototype(obj){return Object.getPrototypeOf?Object.getPrototypeOf(obj):obj.constructor.prototype===obj?null:obj.constructor.prototype}hasProperty(obj,property){return!!obj&&(!!Object.prototype.hasOwnProperty.call(obj,property)||this.hasProperty(this.getPrototype(obj),property))}asymmetricMatch(other){if("object"!=typeof this.sample)throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let result=!0,matcherContext=this.getMatcherContext();for(let property in this.sample)if(!this.hasProperty(other,property)||!equals(this.sample[property],other[property],matcherContext.customTesters)){result=!1;break}return this.inverse?!result:result}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}},ArrayContaining=class extends AsymmetricMatcher3{constructor(sample,inverse=!1){super(sample,inverse)}asymmetricMatch(other){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let matcherContext=this.getMatcherContext(),result=0===this.sample.length||Array.isArray(other)&&this.sample.every((item=>other.some((another=>equals(item,another,matcherContext.customTesters)))));return this.inverse?!result:result}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},Any=class extends AsymmetricMatcher3{constructor(sample){if(typeof sample>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(sample)}fnNameFor(func){if(func.name)return func.name;let matches3=Function.prototype.toString.call(func).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return matches3?matches3[1]:""}asymmetricMatch(other){return this.sample===String?"string"==typeof other||other instanceof String:this.sample===Number?"number"==typeof other||other instanceof Number:this.sample===Function?"function"==typeof other||other instanceof Function:this.sample===Boolean?"boolean"==typeof other||other instanceof Boolean:this.sample===BigInt?"bigint"==typeof other||other instanceof BigInt:this.sample===Symbol?"symbol"==typeof other||other instanceof Symbol:this.sample===Object?"object"==typeof other:other instanceof this.sample}toString(){return"Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}},StringMatching=class extends AsymmetricMatcher3{constructor(sample,inverse=!1){if(!isA("String",sample)&&!isA("RegExp",sample))throw new Error("Expected is not a String or a RegExp");super(new RegExp(sample),inverse)}asymmetricMatch(other){let result=isA("String",other)&&this.sample.test(other);return this.inverse?!result:result}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},CloseTo=class extends AsymmetricMatcher3{precision;constructor(sample,precision=2,inverse=!1){if(!isA("Number",sample))throw new Error("Expected is not a Number");if(!isA("Number",precision))throw new Error("Precision is not a Number");super(sample),this.inverse=inverse,this.precision=precision}asymmetricMatch(other){if(!isA("Number",other))return!1;let result=!1;return result=other===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||other===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY||Math.abs(this.sample-other)<10**-this.precision/2,this.inverse?!result:result}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${word="digit",count=this.precision,`${count} ${word}${1===count?"":"s"}`})`].join(" ");var word,count}},JestAsymmetricMatchers=(chai,utils)=>{utils.addMethod(chai.expect,"anything",(()=>new Anything)),utils.addMethod(chai.expect,"any",(expected=>new Any(expected))),utils.addMethod(chai.expect,"stringContaining",(expected=>new StringContaining(expected))),utils.addMethod(chai.expect,"objectContaining",(expected=>new ObjectContaining(expected))),utils.addMethod(chai.expect,"arrayContaining",(expected=>new ArrayContaining(expected))),utils.addMethod(chai.expect,"stringMatching",(expected=>new StringMatching(expected))),utils.addMethod(chai.expect,"closeTo",((expected,precision)=>new CloseTo(expected,precision))),chai.expect.not={stringContaining:expected=>new StringContaining(expected,!0),objectContaining:expected=>new ObjectContaining(expected,!0),arrayContaining:expected=>new ArrayContaining(expected,!0),stringMatching:expected=>new StringMatching(expected,!0),closeTo:(expected,precision)=>new CloseTo(expected,precision,!0)}};function recordAsyncExpect(test3,promise){return test3&&promise instanceof Promise&&(promise=promise.finally((()=>{let index=test3.promises.indexOf(promise);-1!==index&&test3.promises.splice(index,1)})),test3.promises||(test3.promises=[]),test3.promises.push(promise)),promise}function wrapSoft(utils,fn3){return function(...args){var _a2;if(!utils.flag(this,"soft"))return fn3.apply(this,args);let test3=utils.flag(this,"vitest-test");if(!test3)throw new Error("expect.soft() can only be used inside a test");try{return fn3.apply(this,args)}catch(err){test3.result||(test3.result={state:"fail"}),test3.result.state="fail",(_a2=test3.result).errors||(_a2.errors=[]),test3.result.errors.push(dist_processError(err))}}}var JestChaiExpect=(chai,utils)=>{let{AssertionError:AssertionError2}=chai,customTesters=getCustomEqualityTesters();function def(name,fn3){let addMethod2=n=>{let softWrapper=wrapSoft(utils,fn3);utils.addMethod(chai.Assertion.prototype,n,softWrapper),utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers,n,softWrapper)};Array.isArray(name)?name.forEach((n=>addMethod2(n))):addMethod2(name)}["throw","throws","Throw"].forEach((m2=>{utils.overwriteMethod(chai.Assertion.prototype,m2,(_super=>function(...args){let promise=utils.flag(this,"promise"),object=utils.flag(this,"object"),isNot=utils.flag(this,"negate");if("rejects"===promise)utils.flag(this,"object",(()=>{throw object}));else if("resolves"===promise&&"function"!=typeof object){if(isNot)return;{let message=utils.flag(this,"message")||"expected promise to throw an error, but it didn't";throw new AssertionError2(message,{showDiff:!1},utils.flag(this,"ssfi"))}}_super.apply(this,args)}))})),def("withTest",(function(test3){return utils.flag(this,"vitest-test",test3),this})),def("toEqual",(function(expected){let actual=utils.flag(this,"object"),equal=equals(actual,expected,[...customTesters,iterableEquality]);return this.assert(equal,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",expected,actual)})),def("toStrictEqual",(function(expected){let obj=utils.flag(this,"object"),equal=equals(obj,expected,[...customTesters,iterableEquality,typeEquality,sparseArrayEquality,arrayBufferEquality],!0);return this.assert(equal,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",expected,obj)})),def("toBe",(function(expected){let actual=this._obj,pass=Object.is(actual,expected),deepEqualityName="";return pass||(equals(actual,expected,[...customTesters,iterableEquality,typeEquality,sparseArrayEquality,arrayBufferEquality],!0)?deepEqualityName="toStrictEqual":equals(actual,expected,[...customTesters,iterableEquality])&&(deepEqualityName="toEqual")),this.assert(pass,function generateToBeMessage(deepEqualityName,expected="#{this}",actual="#{exp}"){let toBeMessage=`expected ${expected} to be ${actual} // Object.is equality`;return["toStrictEqual","toEqual"].includes(deepEqualityName)?`${toBeMessage}\n\nIf it should pass with deep equality, replace "toBe" with "${deepEqualityName}"\n\nExpected: ${expected}\nReceived: serializes to the same string\n`:toBeMessage}(deepEqualityName),"expected #{this} not to be #{exp} // Object.is equality",expected,actual)})),def("toMatchObject",(function(expected){let actual=this._obj,pass=equals(actual,expected,[...customTesters,iterableEquality,subsetEquality]),isNot=utils.flag(this,"negate"),{subset:actualSubset,stripped}=function getObjectSubset(object,subset,customTesters=[]){let stripped=0,getObjectSubsetWithContext=(seenReferences=new WeakMap)=>(object2,subset2)=>{if(Array.isArray(object2)){if(Array.isArray(subset2)&&subset2.length===object2.length)return subset2.map(((sub,i)=>getObjectSubsetWithContext(seenReferences)(object2[i],sub)))}else{if(object2 instanceof Date)return object2;if(dist_isObject(object2)&&dist_isObject(subset2)){if(equals(object2,subset2,[...customTesters,iterableEquality,subsetEquality]))return subset2;let trimmed={};seenReferences.set(object2,trimmed);for(let key of getObjectKeys(object2))hasPropertyInObject(subset2,key)?trimmed[key]=seenReferences.has(object2[key])?seenReferences.get(object2[key]):getObjectSubsetWithContext(seenReferences)(object2[key],subset2[key]):seenReferences.has(object2[key])||(stripped+=1,dist_isObject(object2[key])&&(stripped+=getObjectKeys(object2[key]).length),getObjectSubsetWithContext(seenReferences)(object2[key],subset2[key]));if(getObjectKeys(trimmed).length>0)return trimmed}}return object2};return{subset:getObjectSubsetWithContext()(object,subset),stripped}}(actual,expected);if(pass&&isNot||!pass&&!isNot){let msg=utils.getMessage(this,[pass,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",expected,actualSubset,!1]);throw new AssertionError2(0===stripped?msg:`${msg}\n(${stripped} matching ${1===stripped?"property":"properties"} omitted from actual)`,{showDiff:!0,expected,actual:actualSubset})}})),def("toMatch",(function(expected){let actual=this._obj;if("string"!=typeof actual)throw new TypeError(".toMatch() expects to receive a string, but got "+typeof actual);return this.assert("string"==typeof expected?actual.includes(expected):actual.match(expected),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",expected,actual)})),def("toContain",(function(item){let actual=this._obj;if(typeof Node<"u"&&actual instanceof Node){if(!(item instanceof Node))throw new TypeError("toContain() expected a DOM node as the argument, but got "+typeof item);return this.assert(actual.contains(item),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",item,actual)}if(typeof DOMTokenList<"u"&&actual instanceof DOMTokenList){assertTypes(item,"class name",["string"]);let expectedClassList=utils.flag(this,"negate")?actual.value.replace(item,"").trim():`${actual.value} ${item}`;return this.assert(actual.contains(item),`expected "${actual.value}" to contain "${item}"`,`expected "${actual.value}" not to contain "${item}"`,expectedClassList,actual.value)}return"string"==typeof actual&&"string"==typeof item?this.assert(actual.includes(item),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",item,actual):(null!=actual&&"string"!=typeof actual&&utils.flag(this,"object",Array.from(actual)),this.contain(item))})),def("toContainEqual",(function(expected){let obj=utils.flag(this,"object"),index=Array.from(obj).findIndex((item=>equals(item,expected,customTesters)));this.assert(-1!==index,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",expected)})),def("toBeTruthy",(function(){let obj=utils.flag(this,"object");this.assert(!!obj,"expected #{this} to be truthy","expected #{this} to not be truthy",obj,!1)})),def("toBeFalsy",(function(){let obj=utils.flag(this,"object");this.assert(!obj,"expected #{this} to be falsy","expected #{this} to not be falsy",obj,!1)})),def("toBeGreaterThan",(function(expected){let actual=this._obj;return assertTypes(actual,"actual",["number","bigint"]),assertTypes(expected,"expected",["number","bigint"]),this.assert(actual>expected,`expected ${actual} to be greater than ${expected}`,`expected ${actual} to be not greater than ${expected}`,actual,expected,!1)})),def("toBeGreaterThanOrEqual",(function(expected){let actual=this._obj;return assertTypes(actual,"actual",["number","bigint"]),assertTypes(expected,"expected",["number","bigint"]),this.assert(actual>=expected,`expected ${actual} to be greater than or equal to ${expected}`,`expected ${actual} to be not greater than or equal to ${expected}`,actual,expected,!1)})),def("toBeLessThan",(function(expected){let actual=this._obj;return assertTypes(actual,"actual",["number","bigint"]),assertTypes(expected,"expected",["number","bigint"]),this.assert(actualString(key).replace(/([.[\]])/g,"\\$1"))).join("."));let actual=this._obj,[propertyName,expected]=args,{value,exists}=Object.prototype.hasOwnProperty.call(actual,propertyName)?{value:actual[propertyName],exists:!0}:utils.getPathInfo(actual,propertyName),pass=exists&&(1===args.length||equals(expected,value,customTesters)),valueString=1===args.length?"":` with value ${utils.objDisplay(expected)}`;return this.assert(pass,`expected #{this} to have property "${propertyName}"${valueString}`,`expected #{this} to not have property "${propertyName}"${valueString}`,expected,exists?value:void 0)})),def("toBeCloseTo",(function(received,precision=2){let expected=this._obj,pass=!1,expectedDiff2=0,receivedDiff=0;return received===Number.POSITIVE_INFINITY&&expected===Number.POSITIVE_INFINITY||received===Number.NEGATIVE_INFINITY&&expected===Number.NEGATIVE_INFINITY?pass=!0:(expectedDiff2=10**-precision/2,receivedDiff=Math.abs(expected-received),pass=receivedDiff((assertion=>{if(!isMockFunction(assertion._obj))throw new TypeError(`${utils.inspect(assertion._obj)} is not a spy or a call to a spy!`)})(assertion),assertion._obj),ordinalOf=i=>{let j=i%10,k2=i%100;return 1===j&&11!==k2?`${i}st`:2===j&&12!==k2?`${i}nd`:3===j&&13!==k2?`${i}rd`:`${i}th`},formatCalls=(spy,msg,showActualCall)=>(spy.mock.calls&&(msg+=dist_f2.gray(`\n\nReceived: \n\n${spy.mock.calls.map(((callArg,i)=>{let methodCall=dist_f2.bold(` ${ordinalOf(i+1)} ${spy.getMockName()} call:\n\n`);return methodCall+=showActualCall?dist_diff(showActualCall,callArg,{omitAnnotationLines:!0}):dist_stringify(callArg).split("\n").map((line=>` ${line}`)).join("\n"),methodCall+="\n",methodCall})).join("\n")}`)),msg+=dist_f2.gray(`\n\nNumber of calls: ${dist_f2.bold(spy.mock.calls.length)}\n`));def(["toHaveBeenCalledTimes","toBeCalledTimes"],(function(number){let spy=getSpy(this),spyName=spy.getMockName(),callCount=spy.mock.calls.length;return this.assert(callCount===number,`expected "${spyName}" to be called #{exp} times, but got ${callCount} times`,`expected "${spyName}" to not be called #{exp} times`,number,callCount,!1)})),def("toHaveBeenCalledOnce",(function(){let spy=getSpy(this),spyName=spy.getMockName(),callCount=spy.mock.calls.length;return this.assert(1===callCount,`expected "${spyName}" to be called once, but got ${callCount} times`,`expected "${spyName}" to not be called once`,1,callCount,!1)})),def(["toHaveBeenCalled","toBeCalled"],(function(){let spy=getSpy(this),spyName=spy.getMockName(),callCount=spy.mock.calls.length,called=callCount>0,isNot=utils.flag(this,"negate"),msg=utils.getMessage(this,[called,`expected "${spyName}" to be called at least once`,`expected "${spyName}" to not be called at all, but actually been called ${callCount} times`,!0,called]);if(called&&isNot&&(msg=formatCalls(spy,msg)),called&&isNot||!called&&!isNot)throw new AssertionError2(msg)})),def(["toHaveBeenCalledWith","toBeCalledWith"],(function(...args){let spy=getSpy(this),spyName=spy.getMockName(),pass=spy.mock.calls.some((callArg=>equals(callArg,args,[...customTesters,iterableEquality]))),isNot=utils.flag(this,"negate"),msg=utils.getMessage(this,[pass,`expected "${spyName}" to be called with arguments: #{exp}`,`expected "${spyName}" to not be called with arguments: #{exp}`,args]);if(pass&&isNot||!pass&&!isNot)throw new AssertionError2(formatCalls(spy,msg,args))})),def(["toHaveBeenNthCalledWith","nthCalledWith"],(function(times,...args){let spy=getSpy(this),spyName=spy.getMockName(),nthCall=spy.mock.calls[times-1],callCount=spy.mock.calls.length,isCalled=times<=callCount;this.assert(equals(nthCall,args,[...customTesters,iterableEquality]),`expected ${ordinalOf(times)} "${spyName}" call to have been called with #{exp}${isCalled?"":`, but called only ${callCount} times`}`,`expected ${ordinalOf(times)} "${spyName}" call to not have been called with #{exp}`,args,nthCall,isCalled)})),def(["toHaveBeenLastCalledWith","lastCalledWith"],(function(...args){let spy=getSpy(this),spyName=spy.getMockName(),lastCall=spy.mock.calls[spy.mock.calls.length-1];this.assert(equals(lastCall,args,[...customTesters,iterableEquality]),`expected last "${spyName}" call to have been called with #{exp}`,`expected last "${spyName}" call to not have been called with #{exp}`,args,lastCall)})),def(["toThrow","toThrowError"],(function(expected){if("string"==typeof expected||typeof expected>"u"||expected instanceof RegExp)return this.throws(expected);let obj=this._obj,promise=utils.flag(this,"promise"),isNot=utils.flag(this,"negate"),thrown=null;if("rejects"===promise)thrown=obj;else{if("resolves"===promise&&"function"!=typeof obj){if(isNot)return;{let message=utils.flag(this,"message")||"expected promise to throw an error, but it didn't";throw new AssertionError2(message,{showDiff:!1},utils.flag(this,"ssfi"))}}{let isThrow=!1;try{obj()}catch(err){isThrow=!0,thrown=err}if(!isThrow&&!isNot){let message=utils.flag(this,"message")||"expected function to throw an error, but it didn't";throw new AssertionError2(message,{showDiff:!1},utils.flag(this,"ssfi"))}}}if("function"==typeof expected){let name=expected.name||expected.prototype.constructor.name;return this.assert(thrown&&thrown instanceof expected,`expected error to be instance of ${name}`,`expected error not to be instance of ${name}`,expected,thrown)}if(expected instanceof Error)return this.assert(thrown&&expected.message===thrown.message,`expected error to have message: ${expected.message}`,`expected error not to have message: ${expected.message}`,expected.message,thrown&&thrown.message);if("object"==typeof expected&&"asymmetricMatch"in expected&&"function"==typeof expected.asymmetricMatch){let matcher=expected;return this.assert(thrown&&matcher.asymmetricMatch(thrown),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",matcher,thrown)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof expected}"`)})),[{name:"toHaveResolved",condition:spy=>spy.mock.settledResults.length>0&&spy.mock.settledResults.some((({type:type5})=>"fulfilled"===type5)),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:spy=>spy.mock.calls.length>0&&spy.mock.results.some((({type:type5})=>"throw"!==type5)),action:"called"}].forEach((({name,condition,action})=>{def(name,(function(){let spy=getSpy(this),spyName=spy.getMockName(),pass=condition(spy);this.assert(pass,`expected "${spyName}" to be successfully ${action} at least once`,`expected "${spyName}" to not be successfully ${action}`,pass,!pass,!1)}))})),[{name:"toHaveResolvedTimes",condition:(spy,times)=>spy.mock.settledResults.reduce(((s,{type:type5})=>"fulfilled"===type5?++s:s),0)===times,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(spy,times)=>spy.mock.results.reduce(((s,{type:type5})=>"throw"===type5?s:++s),0)===times,action:"called"}].forEach((({name,condition,action})=>{def(name,(function(times){let spy=getSpy(this),spyName=spy.getMockName(),pass=condition(spy,times);this.assert(pass,`expected "${spyName}" to be successfully ${action} ${times} times`,`expected "${spyName}" to not be successfully ${action} ${times} times`,`expected resolved times: ${times}`,`received resolved times: ${pass}`,!1)}))})),[{name:"toHaveResolvedWith",condition:(spy,value)=>spy.mock.settledResults.some((({type:type5,value:result})=>"fulfilled"===type5&&equals(value,result))),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(spy,value)=>spy.mock.results.some((({type:type5,value:result})=>"return"===type5&&equals(value,result))),action:"return"}].forEach((({name,condition,action})=>{def(name,(function(value){let spy=getSpy(this),pass=condition(spy,value),isNot=utils.flag(this,"negate");if(pass&&isNot||!pass&&!isNot){let spyName=spy.getMockName(),msg=utils.getMessage(this,[pass,`expected "${spyName}" to ${action} with: #{exp} at least once`,`expected "${spyName}" to not ${action} with: #{exp}`,value]),results="return"===action?spy.mock.results:spy.mock.settledResults;throw new AssertionError2(((spy,results,msg,showActualReturn)=>(msg+=dist_f2.gray(`\n\nReceived: \n\n${results.map(((callReturn,i)=>{let methodCall=dist_f2.bold(` ${ordinalOf(i+1)} ${spy.getMockName()} call return:\n\n`);return methodCall+=showActualReturn?dist_diff(showActualReturn,callReturn.value,{omitAnnotationLines:!0}):dist_stringify(callReturn).split("\n").map((line=>` ${line}`)).join("\n"),methodCall+="\n",methodCall})).join("\n")}`),msg+dist_f2.gray(`\n\nNumber of calls: ${dist_f2.bold(spy.mock.calls.length)}\n`)))(spy,results,msg,value))}}))})),[{name:"toHaveLastResolvedWith",condition:(spy,value)=>{let result=spy.mock.settledResults[spy.mock.settledResults.length-1];return result&&"fulfilled"===result.type&&equals(result.value,value)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(spy,value)=>{let result=spy.mock.results[spy.mock.results.length-1];return result&&"return"===result.type&&equals(result.value,value)},action:"return"}].forEach((({name,condition,action})=>{def(name,(function(value){let spy=getSpy(this),results="return"===action?spy.mock.results:spy.mock.settledResults,result=results[results.length-1],spyName=spy.getMockName();this.assert(condition(spy,value),`expected last "${spyName}" call to ${action} #{exp}`,`expected last "${spyName}" call to not ${action} #{exp}`,value,result?.value)}))})),[{name:"toHaveNthResolvedWith",condition:(spy,index,value)=>{let result=spy.mock.settledResults[index-1];return result&&"fulfilled"===result.type&&equals(result.value,value)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(spy,index,value)=>{let result=spy.mock.results[index-1];return result&&"return"===result.type&&equals(result.value,value)},action:"return"}].forEach((({name,condition,action})=>{def(name,(function(nthCall,value){let spy=getSpy(this),spyName=spy.getMockName(),result=("return"===action?spy.mock.results:spy.mock.settledResults)[nthCall-1],ordinalCall=`${ordinalOf(nthCall)} call`;this.assert(condition(spy,nthCall,value),`expected ${ordinalCall} "${spyName}" call to ${action} #{exp}`,`expected ${ordinalCall} "${spyName}" call to not ${action} #{exp}`,value,result?.value)}))})),def("toSatisfy",(function(matcher,message){return this.be.satisfy(matcher,message)})),def("withContext",(function(context){for(let key in context)utils.flag(this,key,context[key]);return this})),utils.addProperty(chai.Assertion.prototype,"resolves",(function(){let error=new Error("resolves");utils.flag(this,"promise","resolves"),utils.flag(this,"error",error);let test3=utils.flag(this,"vitest-test"),obj=utils.flag(this,"object");if(utils.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if("function"!=typeof obj?.then)throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof obj}'.`);let proxy=new Proxy(this,{get:(target,key,receiver)=>{let result=Reflect.get(target,key,receiver);return"function"!=typeof result?result instanceof chai.Assertion?proxy:result:async(...args)=>{let promise=obj.then((value=>(utils.flag(this,"object",value),result.call(this,...args))),(err=>{let _error=new AssertionError2(`promise rejected "${utils.inspect(err)}" instead of resolving`,{showDiff:!1});throw _error.cause=err,_error.stack=error.stack.replace(error.message,_error.message),_error}));return recordAsyncExpect(test3,promise)}}});return proxy})),utils.addProperty(chai.Assertion.prototype,"rejects",(function(){let error=new Error("rejects");utils.flag(this,"promise","rejects"),utils.flag(this,"error",error);let test3=utils.flag(this,"vitest-test"),obj=utils.flag(this,"object"),wrapper="function"==typeof obj?obj():obj;if(utils.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if("function"!=typeof wrapper?.then)throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof wrapper}'.`);let proxy=new Proxy(this,{get:(target,key,receiver)=>{let result=Reflect.get(target,key,receiver);return"function"!=typeof result?result instanceof chai.Assertion?proxy:result:async(...args)=>{let promise=wrapper.then((value=>{let _error=new AssertionError2(`promise resolved "${utils.inspect(value)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:value});throw _error.stack=error.stack.replace(error.message,_error.message),_error}),(err=>(utils.flag(this,"object",err),result.call(this,...args))));return recordAsyncExpect(test3,promise)}}});return proxy}))};var JestExtendError=class extends Error{constructor(message,actual,expected){super(message),this.actual=actual,this.expected=expected}};function JestExtendPlugin(c,expect4,matchers){return(_,utils)=>{Object.entries(matchers).forEach((([expectAssertionName,expectAssertion])=>{let softWrapper=wrapSoft(utils,(function expectWrapper(...args){let{state,isNot,obj}=function getMatcherState(assertion,expect4){let obj=assertion._obj,isNot=utils_exports.flag(assertion,"negate"),promise=utils_exports.flag(assertion,"promise")||"",jestUtils={...getMatcherUtils(),diff:dist_diff,stringify:dist_stringify,iterableEquality,subsetEquality};return{state:{...getState(expect4),customTesters:getCustomEqualityTesters(),isNot,utils:jestUtils,promise,equals,suppressedErrors:[],soft:utils_exports.flag(assertion,"soft"),poll:utils_exports.flag(assertion,"poll")},isNot,obj}}(this,expect4),result=expectAssertion.call(state,obj,...args);if(result&&"object"==typeof result&&result instanceof Promise)return result.then((({pass:pass2,message:message2,actual:actual2,expected:expected2})=>{if(pass2&&isNot||!pass2&&!isNot)throw new JestExtendError(message2(),actual2,expected2)}));let{pass,message,actual,expected}=result;if(pass&&isNot||!pass&&!isNot)throw new JestExtendError(message(),actual,expected)}));utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers,expectAssertionName,softWrapper),utils.addMethod(c.Assertion.prototype,expectAssertionName,softWrapper);class CustomMatcher extends AsymmetricMatcher3{constructor(inverse=!1,...sample){super(sample,inverse)}asymmetricMatch(other){let{pass}=expectAssertion.call(this.getMatcherContext(expect4),other,...this.sample);return this.inverse?!pass:pass}toString(){return`${this.inverse?"not.":""}${expectAssertionName}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(String).join(", ")}>`}}let customMatcher=(...sample)=>new CustomMatcher(!1,...sample);Object.defineProperty(expect4,expectAssertionName,{configurable:!0,enumerable:!0,value:customMatcher,writable:!0}),Object.defineProperty(expect4.not,expectAssertionName,{configurable:!0,enumerable:!0,value:(...sample)=>new CustomMatcher(!0,...sample),writable:!0}),Object.defineProperty(globalThis[ASYMMETRIC_MATCHERS_OBJECT],expectAssertionName,{configurable:!0,enumerable:!0,value:customMatcher,writable:!0})}))}}var JestExtend=(chai,utils)=>{utils.addMethod(chai.expect,"extend",((expect4,expects)=>{use(JestExtendPlugin(chai,expect4,expects))}))};var expect2=function createExpect(){use(JestExtend),use(JestChaiExpect),use(JestAsymmetricMatchers);let expect4=(value,message)=>{let{assertionCalls}=getState(expect4);return setState({assertionCalls:assertionCalls+1,soft:!1},expect4),expect(value,message)};return Object.assign(expect4,expect),expect4.getState=()=>getState(expect4),expect4.setState=state=>setState(state,expect4),expect4.extend=expects=>expect.extend(expect4,expects),expect4.soft=(...args)=>{let assert2=expect4(...args);return expect4.setState({soft:!0}),assert2},expect4.unreachable=message=>{assert.fail(`expected${message?` "${message}" `:" "}not to be reached`)},setState({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},expect4),utils_exports.addMethod(expect4,"assertions",(function assertions(expected){let errorGen=()=>new Error(`expected number of assertions to be ${expected}, but got ${expect4.getState().assertionCalls}`);"captureStackTrace"in Error&&"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(errorGen(),assertions),expect4.setState({expectedAssertionsNumber:expected,expectedAssertionsNumberErrorGen:errorGen})})),utils_exports.addMethod(expect4,"hasAssertions",(function hasAssertions(){let error=new Error("expected any number of assertion, but got none");"captureStackTrace"in Error&&"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(error,hasAssertions),expect4.setState({isExpectingAssertions:!0,isExpectingAssertionsError:error})})),expect4.extend(matchers_exports),expect4}();Object.defineProperty(globalThis,GLOBAL_EXPECT,{value:expect2,writable:!0,configurable:!0});var listeners=new Set;function fn2(implementation){return reactiveMock(implementation?fn(implementation):fn())}function reactiveMock(mock){let reactive=listenWhenCalled(mock),originalMockImplementation=reactive.mockImplementation.bind(null);return reactive.mockImplementation=fn3=>listenWhenCalled(originalMockImplementation(fn3)),reactive}function listenWhenCalled(mock){let state=I(mock),impl=state.impl;return state.willCall((function(...args){return listeners.forEach((listener=>listener(mock,args))),impl?.apply(this,args)})),mock}var dom_esm_exports={};__export(dom_esm_exports,{buildQueries:()=>buildQueries,configure:()=>configure,createEvent:()=>createEvent,findAllByAltText:()=>findAllByAltText,findAllByDisplayValue:()=>findAllByDisplayValue,findAllByLabelText:()=>findAllByLabelText,findAllByPlaceholderText:()=>findAllByPlaceholderText,findAllByRole:()=>findAllByRole,findAllByTestId:()=>findAllByTestId,findAllByText:()=>findAllByText,findAllByTitle:()=>findAllByTitle,findByAltText:()=>findByAltText,findByDisplayValue:()=>findByDisplayValue,findByLabelText:()=>findByLabelText,findByPlaceholderText:()=>findByPlaceholderText,findByRole:()=>findByRole,findByTestId:()=>findByTestId,findByText:()=>findByText,findByTitle:()=>findByTitle,fireEvent:()=>fireEvent,getAllByAltText:()=>getAllByAltText,getAllByDisplayValue:()=>getAllByDisplayValue,getAllByLabelText:()=>getAllByLabelTextWithSuggestions,getAllByPlaceholderText:()=>getAllByPlaceholderText,getAllByRole:()=>getAllByRole,getAllByTestId:()=>getAllByTestId,getAllByText:()=>getAllByText,getAllByTitle:()=>getAllByTitle,getByAltText:()=>getByAltText,getByDisplayValue:()=>getByDisplayValue,getByLabelText:()=>getByLabelTextWithSuggestions,getByPlaceholderText:()=>getByPlaceholderText,getByRole:()=>getByRole,getByTestId:()=>getByTestId,getByText:()=>getByText,getByTitle:()=>getByTitle,getConfig:()=>getConfig2,getDefaultNormalizer:()=>getDefaultNormalizer,getElementError:()=>getElementError,getMultipleElementsFoundError:()=>getMultipleElementsFoundError,getNodeText:()=>getNodeText,getQueriesForElement:()=>getQueriesForElement,getRoles:()=>getRoles,getSuggestedQuery:()=>getSuggestedQuery,isInaccessible:()=>isInaccessible,logDOM:()=>logDOM,logRoles:()=>logRoles,makeFindQuery:()=>makeFindQuery,makeGetAllQuery:()=>makeGetAllQuery,makeSingleQuery:()=>makeSingleQuery,prettyDOM:()=>prettyDOM,prettyFormat:()=>prettyFormat,queries:()=>queries,queryAllByAltText:()=>queryAllByAltTextWithSuggestions,queryAllByAttribute:()=>queryAllByAttribute,queryAllByDisplayValue:()=>queryAllByDisplayValueWithSuggestions,queryAllByLabelText:()=>queryAllByLabelTextWithSuggestions,queryAllByPlaceholderText:()=>queryAllByPlaceholderTextWithSuggestions,queryAllByRole:()=>queryAllByRoleWithSuggestions,queryAllByTestId:()=>queryAllByTestIdWithSuggestions,queryAllByText:()=>queryAllByTextWithSuggestions,queryAllByTitle:()=>queryAllByTitleWithSuggestions,queryByAltText:()=>queryByAltText,queryByAttribute:()=>queryByAttribute,queryByDisplayValue:()=>queryByDisplayValue,queryByLabelText:()=>queryByLabelText,queryByPlaceholderText:()=>queryByPlaceholderText,queryByRole:()=>queryByRole,queryByTestId:()=>queryByTestId,queryByText:()=>queryByText,queryByTitle:()=>queryByTitle,queryHelpers:()=>queryHelpers,screen:()=>screen,waitFor:()=>waitForWrapper,waitForElementToBeRemoved:()=>waitForElementToBeRemoved,within:()=>getQueriesForElement,wrapAllByQueryWithSuggestion:()=>wrapAllByQueryWithSuggestion,wrapSingleQueryWithSuggestion:()=>wrapSingleQueryWithSuggestion});var prettyFormat=__toESM(require_build()),toStr2=Object.prototype.toString;function isCallable2(fn3){return"function"==typeof fn3||"[object Function]"===toStr2.call(fn3)}var maxSafeInteger2=Math.pow(2,53)-1;function toLength2(value){var len=function toInteger2(value){var number=Number(value);return isNaN(number)?0:0!==number&&isFinite(number)?(number>0?1:-1)*Math.floor(Math.abs(number)):number}(value);return Math.min(Math.max(len,0),maxSafeInteger2)}function arrayFrom2(arrayLike,mapFn){var C3=Array,items=Object(arrayLike);if(null==arrayLike)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof mapFn<"u"&&!isCallable2(mapFn))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var kValue,len=toLength2(items.length),A=isCallable2(C3)?Object(new C3(len)):new Array(len),k2=0;k20&&void 0!==arguments[0]?arguments[0]:[];(function _classCallCheck2(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")})(this,SetLike3),function _defineProperty3(obj,key,value){return(key=_toPropertyKey3(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}(this,"items",void 0),this.items=items}return function _createClass2(Constructor,protoProps,staticProps){return protoProps&&_defineProperties2(Constructor.prototype,protoProps),staticProps&&_defineProperties2(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(SetLike3,[{key:"add",value:function(value){return!1===this.has(value)&&this.items.push(value),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(value){var previousLength=this.items.length;return this.items=this.items.filter((function(item){return item!==value})),previousLength!==this.items.length}},{key:"forEach",value:function(callbackfn){var _this=this;this.items.forEach((function(item){callbackfn(item,item,_this)}))}},{key:"has",value:function(value){return-1!==this.items.indexOf(value)}},{key:"size",get:function(){return this.items.length}}]),SetLike3}(),SetLike_default2=typeof Set>"u"?Set:SetLike2;function getLocalName2(element){var _element$localName;return null!==(_element$localName=element.localName)&&void 0!==_element$localName?_element$localName:element.tagName.toLowerCase()}var localNameToRoleMappings2={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},prohibitedAttributes2={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function ignorePresentationalRole2(element,implicitRole){return function hasGlobalAriaAttributes2(element,role){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some((function(attributeName){var _prohibitedAttributes;return element.hasAttribute(attributeName)&&!(null!==(_prohibitedAttributes=prohibitedAttributes2[role])&&void 0!==_prohibitedAttributes&&_prohibitedAttributes.has(attributeName))}))}(element,implicitRole)}function getRole2(element){var explicitRole=function getExplicitRole2(element){var role=element.getAttribute("role");if(null!==role){var explicitRole=role.trim().split(" ")[0];if(explicitRole.length>0)return explicitRole}return null}(element);if(null===explicitRole||"presentation"===explicitRole){var implicitRole=function getImplicitRole2(element){var mappedByTag=localNameToRoleMappings2[getLocalName2(element)];if(void 0!==mappedByTag)return mappedByTag;switch(getLocalName2(element)){case"a":case"area":case"link":if(element.hasAttribute("href"))return"link";break;case"img":return""!==element.getAttribute("alt")||ignorePresentationalRole2(element,"img")?"img":"presentation";case"input":var type5=element.type;switch(type5){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return type5;case"range":return"slider";case"email":case"tel":case"text":case"url":return element.hasAttribute("list")?"combobox":"textbox";case"search":return element.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}case"select":return element.hasAttribute("multiple")||element.size>1?"listbox":"combobox"}return null}(element);if("presentation"!==explicitRole||ignorePresentationalRole2(element,implicitRole||""))return implicitRole}return explicitRole}function isElement2(node){return null!==node&&node.nodeType===node.ELEMENT_NODE}function isHTMLTableCaptionElement2(node){return isElement2(node)&&"caption"===getLocalName2(node)}function isHTMLInputElement2(node){return isElement2(node)&&"input"===getLocalName2(node)}function isHTMLLegendElement2(node){return isElement2(node)&&"legend"===getLocalName2(node)}function isSVGTitleElement2(node){return function isSVGElement2(node){return isElement2(node)&&void 0!==node.ownerSVGElement}(node)&&"title"===getLocalName2(node)}function queryIdRefs2(node,attributeName){if(isElement2(node)&&node.hasAttribute(attributeName)){var ids=node.getAttribute(attributeName).split(" "),root=node.getRootNode?node.getRootNode():node.ownerDocument;return ids.map((function(id){return root.getElementById(id)})).filter((function(element){return null!==element}))}return[]}function hasAnyConcreteRoles2(node,roles3){return!!isElement2(node)&&-1!==roles3.indexOf(getRole2(node))}function hasAbstractRole2(node,role){if(!isElement2(node))return!1;if("range"===role)return hasAnyConcreteRoles2(node,["meter","progressbar","scrollbar","slider","spinbutton"]);throw new TypeError("No knowledge about abstract role '".concat(role,"'. This is likely a bug :("))}function querySelectorAllSubtree2(element,selectors){var elements=arrayFrom2(element.querySelectorAll(selectors));return queryIdRefs2(element,"aria-owns").forEach((function(root){elements.push.apply(elements,arrayFrom2(root.querySelectorAll(selectors)))})),elements}function querySelectedOptions2(listbox){return function isHTMLSelectElement2(node){return isElement2(node)&&"select"===getLocalName2(node)}(listbox)?listbox.selectedOptions||querySelectorAllSubtree2(listbox,"[selected]"):querySelectorAllSubtree2(listbox,'[aria-selected="true"]')}function getValueOfTextbox2(element){return isHTMLInputElement2(element)||function isHTMLTextAreaElement2(node){return isElement2(node)&&"textarea"===getLocalName2(node)}(element)?element.value:element.textContent||""}function getTextualContent2(declaration){var content=declaration.getPropertyValue("content");return/^["'].*["']$/.test(content)?content.slice(1,-1):""}function isLabelableElement2(element){var localName=getLocalName2(element);return"button"===localName||"input"===localName&&"hidden"!==element.getAttribute("type")||"meter"===localName||"output"===localName||"progress"===localName||"select"===localName||"textarea"===localName}function findLabelableElement2(element){if(isLabelableElement2(element))return element;var labelableElement=null;return element.childNodes.forEach((function(childNode){if(null===labelableElement&&isElement2(childNode)){var descendantLabelableElement=findLabelableElement2(childNode);null!==descendantLabelableElement&&(labelableElement=descendantLabelableElement)}})),labelableElement}function getControlOfLabel2(label){if(void 0!==label.control)return label.control;var htmlFor=label.getAttribute("for");return null!==htmlFor?label.ownerDocument.getElementById(htmlFor):findLabelableElement2(label)}function computeTextAlternative2(root){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},consultedNodes=new SetLike_default2,window2=function safeWindow2(node){var defaultView=(null===node.ownerDocument?node:node.ownerDocument).defaultView;if(null===defaultView)throw new TypeError("no window available");return defaultView}(root),_options$compute=options.compute,compute=void 0===_options$compute?"name":_options$compute,_options$computedStyl=options.computedStyleSupportsPseudoElements,computedStyleSupportsPseudoElements=void 0===_options$computedStyl?void 0!==options.getComputedStyle:_options$computedStyl,_options$getComputedS=options.getComputedStyle,getComputedStyle=void 0===_options$getComputedS?window2.getComputedStyle.bind(window2):_options$getComputedS,_options$hidden=options.hidden,hidden=void 0!==_options$hidden&&_options$hidden;function computeMiscTextAlternative(node,context){var accumulatedText="";if(isElement2(node)&&computedStyleSupportsPseudoElements){var beforeContent=getTextualContent2(getComputedStyle(node,"::before"));accumulatedText="".concat(beforeContent," ").concat(accumulatedText)}if((function isHTMLSlotElement2(node){return isElement2(node)&&"slot"===getLocalName2(node)}(node)?function getSlotContents2(slot){var assignedNodes=slot.assignedNodes();return 0===assignedNodes.length?arrayFrom2(slot.childNodes):assignedNodes}(node):arrayFrom2(node.childNodes).concat(queryIdRefs2(node,"aria-owns"))).forEach((function(child){var result=computeTextAlternative3(child,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),separator="inline"!==(isElement2(child)?getComputedStyle(child).getPropertyValue("display"):"inline")?" ":"";accumulatedText+="".concat(separator).concat(result).concat(separator)})),isElement2(node)&&computedStyleSupportsPseudoElements){var afterContent=getTextualContent2(getComputedStyle(node,"::after"));accumulatedText="".concat(accumulatedText," ").concat(afterContent)}return accumulatedText.trim()}function useAttribute(element,attributeName){var attribute=element.getAttributeNode(attributeName);return null===attribute||consultedNodes.has(attribute)||""===attribute.value.trim()?null:(consultedNodes.add(attribute),attribute.value)}function computeElementTextAlternative(node){if(!isElement2(node))return null;if(function isHTMLFieldSetElement2(node){return isElement2(node)&&"fieldset"===getLocalName2(node)}(node)){consultedNodes.add(node);for(var children=arrayFrom2(node.childNodes),i=0;i0})).join(" ");if(isHTMLInputElement2(node)&&"image"===node.type){var _nameFromAlt=useAttribute(node,"alt");if(null!==_nameFromAlt)return _nameFromAlt;var nameFromTitle=useAttribute(node,"title");return null!==nameFromTitle?nameFromTitle:"Submit Query"}if(hasAnyConcreteRoles2(node,["button"])){var nameFromSubTree=computeMiscTextAlternative(node,{isEmbeddedInLabel:!1,isReferenced:!1});if(""!==nameFromSubTree)return nameFromSubTree}return null}function computeTextAlternative3(current,context){if(consultedNodes.has(current))return"";if(!hidden&&function isHidden2(node,getComputedStyleImplementation){if(!isElement2(node))return!1;if(node.hasAttribute("hidden")||"true"===node.getAttribute("aria-hidden"))return!0;var style=getComputedStyleImplementation(node);return"none"===style.getPropertyValue("display")||"hidden"===style.getPropertyValue("visibility")}(current,getComputedStyle)&&!context.isReferenced)return consultedNodes.add(current),"";var labelAttributeNode=isElement2(current)?current.getAttributeNode("aria-labelledby"):null,labelElements=null===labelAttributeNode||consultedNodes.has(labelAttributeNode)?[]:queryIdRefs2(current,"aria-labelledby");if("name"===compute&&!context.isReferenced&&labelElements.length>0)return consultedNodes.add(labelAttributeNode),labelElements.map((function(element){return computeTextAlternative3(element,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!0,recursion:!1})})).join(" ");var skipToStep2E=context.recursion&&function isControl2(node){return hasAnyConcreteRoles2(node,["button","combobox","listbox","textbox"])||hasAbstractRole2(node,"range")}(current)&&"name"===compute;if(!skipToStep2E){var ariaLabel=(isElement2(current)&¤t.getAttribute("aria-label")||"").trim();if(""!==ariaLabel&&"name"===compute)return consultedNodes.add(current),ariaLabel;if(!function isMarkedPresentational2(node){return hasAnyConcreteRoles2(node,["none","presentation"])}(current)){var elementTextAlternative=computeElementTextAlternative(current);if(null!==elementTextAlternative)return consultedNodes.add(current),elementTextAlternative}}if(hasAnyConcreteRoles2(current,["menu"]))return consultedNodes.add(current),"";if(skipToStep2E||context.isEmbeddedInLabel||context.isReferenced){if(hasAnyConcreteRoles2(current,["combobox","listbox"])){consultedNodes.add(current);var selectedOptions=querySelectedOptions2(current);return 0===selectedOptions.length?isHTMLInputElement2(current)?current.value:"":arrayFrom2(selectedOptions).map((function(selectedOption){return computeTextAlternative3(selectedOption,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1,recursion:!0})})).join(" ")}if(hasAbstractRole2(current,"range"))return consultedNodes.add(current),current.hasAttribute("aria-valuetext")?current.getAttribute("aria-valuetext"):current.hasAttribute("aria-valuenow")?current.getAttribute("aria-valuenow"):current.getAttribute("value")||"";if(hasAnyConcreteRoles2(current,["textbox"]))return consultedNodes.add(current),getValueOfTextbox2(current)}if(function allowsNameFromContent2(node){return hasAnyConcreteRoles2(node,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}(current)||isElement2(current)&&context.isReferenced||function isNativeHostLanguageTextAlternativeElement2(node){return isHTMLTableCaptionElement2(node)}(current)){var accumulatedText2F=computeMiscTextAlternative(current,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1});if(""!==accumulatedText2F)return consultedNodes.add(current),accumulatedText2F}if(current.nodeType===current.TEXT_NODE)return consultedNodes.add(current),current.textContent||"";if(context.recursion)return consultedNodes.add(current),computeMiscTextAlternative(current,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1});var tooltipAttributeValue=function computeTooltipAttributeValue(node){return isElement2(node)?useAttribute(node,"title"):null}(current);return null!==tooltipAttributeValue?(consultedNodes.add(current),tooltipAttributeValue):(consultedNodes.add(current),"")}return function asFlatString2(s){return s.trim().replace(/\s\s+/g," ")}(computeTextAlternative3(root,{isEmbeddedInLabel:!1,isReferenced:"description"===compute,recursion:!1}))}function _typeof4(obj){return(_typeof4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj2){return typeof obj2}:function(obj2){return obj2&&"function"==typeof Symbol&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2})(obj)}function ownKeys2(object,enumerableOnly){var keys2=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys2.push.apply(keys2,symbols)}return keys2}function _objectSpread2(target){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:{},description=queryIdRefs2(root,"aria-describedby").map((function(element){return computeTextAlternative2(element,_objectSpread2(_objectSpread2({},options),{},{compute:"description"}))})).join(" ");if(""===description){var title=root.getAttribute("title");description=null===title?"":title}return description}function computeAccessibleName2(root){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function prohibitsNaming2(node){return hasAnyConcreteRoles2(node,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}(root)?"":computeTextAlternative2(root,options)}var import_aria_query3=__toESM(require_lib()),import_lz_string=__toESM(require_lz_string());function escapeHTML2(str){return str.replace(//g,">")}var printProps2=(keys2,props,config3,indentation,depth,refs,printer2)=>{let indentationNext=indentation+config3.indent,colors=config3.colors;return keys2.map((key=>{let value=props[key],printed=printer2(value,config3,indentationNext,depth,refs);return"string"!=typeof value&&(-1!==printed.indexOf("\n")&&(printed=config3.spacingOuter+indentationNext+printed+config3.spacingOuter+indentation),printed="{"+printed+"}"),config3.spacingInner+indentation+colors.prop.open+key+colors.prop.close+"="+colors.value.open+printed+colors.value.close})).join("")},printChildren2=(children,config3,indentation,depth,refs,printer2)=>children.map((child=>{let printedChild="string"==typeof child?printText2(child,config3):printer2(child,config3,indentation,depth,refs);return""===printedChild&&"object"==typeof child&&null!==child&&3!==child.nodeType?"":config3.spacingOuter+indentation+printedChild})).join(""),printText2=(text,config3)=>{let contentColor=config3.colors.content;return contentColor.open+escapeHTML2(text)+contentColor.close},printComment2=(comment,config3)=>{let commentColor=config3.colors.comment;return commentColor.open+"\x3c!--"+escapeHTML2(comment)+"--\x3e"+commentColor.close},printElement2=(type5,printedProps,printedChildren,config3,indentation)=>{let tagColor=config3.colors.tag;return tagColor.open+"<"+type5+(printedProps&&tagColor.close+printedProps+config3.spacingOuter+indentation+tagColor.open)+(printedChildren?">"+tagColor.close+printedChildren+config3.spacingOuter+indentation+tagColor.open+""+tagColor.close},printElementAsLeaf2=(type5,config3)=>{let tagColor=config3.colors.tag;return tagColor.open+"<"+type5+tagColor.close+" …"+tagColor.open+" />"+tagColor.close},TEXT_NODE$1=3,COMMENT_NODE$1=8,FRAGMENT_NODE2=11,ELEMENT_REGEXP2=/^((HTML|SVG)\w*)?Element$/,isCustomElement2=val=>{let{tagName}=val;return!!("string"==typeof tagName&&tagName.includes("-")||"function"==typeof val.hasAttribute&&val.hasAttribute("is"))},testNode2=val=>{let constructorName=val.constructor.name,{nodeType}=val;return 1===nodeType&&(ELEMENT_REGEXP2.test(constructorName)||isCustomElement2(val))||nodeType===TEXT_NODE$1&&"Text"===constructorName||nodeType===COMMENT_NODE$1&&"Comment"===constructorName||nodeType===FRAGMENT_NODE2&&"DocumentFragment"===constructorName};function nodeIsFragment2(node){return node.nodeType===FRAGMENT_NODE2}function createDOMElementFilter(filterNode){return{test:val=>{var _val$constructor2;return((null==val||null==(_val$constructor2=val.constructor)?void 0:_val$constructor2.name)||isCustomElement2(val))&&testNode2(val)},serialize:(node,config3,indentation,depth,refs,printer2)=>{if(function nodeIsText2(node){return node.nodeType===TEXT_NODE$1}(node))return printText2(node.data,config3);if(function nodeIsComment2(node){return node.nodeType===COMMENT_NODE$1}(node))return printComment2(node.data,config3);let type5=nodeIsFragment2(node)?"DocumentFragment":node.tagName.toLowerCase();return++depth>config3.maxDepth?printElementAsLeaf2(type5,config3):printElement2(type5,printProps2(nodeIsFragment2(node)?[]:Array.from(node.attributes).map((attr=>attr.name)).sort(),nodeIsFragment2(node)?{}:Array.from(node.attributes).reduce(((props,attribute)=>(props[attribute.name]=attribute.value,props)),{}),config3,indentation+config3.indent,depth,refs,printer2),printChildren2(Array.prototype.slice.call(node.childNodes||node.children).filter(filterNode),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation)}}}var chalk2=null,readFileSync=null,codeFrameColumns=null;try{let nodeRequire=module&&module.require;readFileSync=nodeRequire.call(module,"fs").readFileSync,codeFrameColumns=nodeRequire.call(module,"@babel/code-frame").codeFrameColumns,chalk2=nodeRequire.call(module,"chalk")}catch{}function getUserCodeFrame(){if(!readFileSync||!codeFrameColumns)return"";return function getCodeFrame(frame){let locationStart=frame.indexOf("(")+1,locationEnd=frame.indexOf(")"),frameLocation=frame.slice(locationStart,locationEnd),frameLocationElements=frameLocation.split(":"),[filename,line,column]=[frameLocationElements[0],parseInt(frameLocationElements[1],10),parseInt(frameLocationElements[2],10)],rawFileContents="";try{rawFileContents=readFileSync(filename,"utf-8")}catch{return""}let codeFrame=codeFrameColumns(rawFileContents,{start:{line,column}},{highlightCode:!0,linesBelow:0});return chalk2.dim(frameLocation)+"\n"+codeFrame+"\n"}((new Error).stack.split("\n").slice(1).find((frame=>!frame.includes("node_modules/"))))}var TEXT_NODE2=3;function jestFakeTimersAreEnabled(){return typeof jest<"u"&&null!==jest&&(!0===setTimeout._isMockFunction||Object.prototype.hasOwnProperty.call(setTimeout,"clock"))}function getDocument(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function getWindowFromNode(node){if(node.defaultView)return node.defaultView;if(node.ownerDocument&&node.ownerDocument.defaultView)return node.ownerDocument.defaultView;if(node.window)return node.window;throw node.ownerDocument&&null===node.ownerDocument.defaultView?new Error("It looks like the window object is not available for the provided node."):node.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(node)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):"function"==typeof node.debug&&"function"==typeof node.logTestingPlaygroundURL?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof node+".")}function checkContainerType(container){if(!container||"function"!=typeof container.querySelector||"function"!=typeof container.querySelectorAll)throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+function getTypeName(object){return"object"==typeof object?null===object?"null":object.constructor.name:typeof object}(container)+".")}var shouldHighlight=()=>{if(typeof dist_process>"u")return!1;let colors;try{var _process$env;let colorsJSON=null==(_process$env=dist_process.env)?void 0:_process$env.COLORS;colorsJSON&&(colors=JSON.parse(colorsJSON))}catch{}return"boolean"==typeof colors?colors:void 0!==dist_process.versions&&void 0!==dist_process.versions.node},{DOMCollection:DOMCollection3}=prettyFormat.plugins,ELEMENT_NODE2=1,COMMENT_NODE2=8;function filterCommentsAndDefaultIgnoreTagsTags(value){return value.nodeType!==COMMENT_NODE2&&(value.nodeType!==ELEMENT_NODE2||!value.matches(getConfig2().defaultIgnore))}function prettyDOM(dom,maxLength,options){if(void 0===options&&(options={}),dom||(dom=getDocument().body),"number"!=typeof maxLength&&(maxLength=typeof dist_process<"u"&&typeof dist_process.env<"u"&&dist_process.env.DEBUG_PRINT_LIMIT||7e3),0===maxLength)return"";dom.documentElement&&(dom=dom.documentElement);let domTypeName=typeof dom;if("object"===domTypeName?domTypeName=dom.constructor.name:dom={},!("outerHTML"in dom))throw new TypeError("Expected an element or document but got "+domTypeName);let{filterNode=filterCommentsAndDefaultIgnoreTagsTags,...prettyFormatOptions}=options,debugContent=prettyFormat.format(dom,{plugins:[createDOMElementFilter(filterNode),DOMCollection3],printFunctionName:!1,highlight:shouldHighlight(),...prettyFormatOptions});return void 0!==maxLength&&dom.outerHTML.length>maxLength?debugContent.slice(0,maxLength)+"...":debugContent}var logDOM=function(){let userCodeFrame=getUserCodeFrame();console.log(userCodeFrame?prettyDOM(...arguments)+"\n\n"+userCodeFrame:prettyDOM(...arguments))},config2={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:cb=>cb(),unstable_advanceTimersWrapper:cb=>cb(),eventWrapper:cb=>cb(),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(message,container){let prettifiedDOM=prettyDOM(container),error=new Error([message,"Ignored nodes: comments, "+config2.defaultIgnore+"\n"+prettifiedDOM].filter(Boolean).join("\n\n"));return error.name="TestingLibraryElementError",error},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function configure(newConfig){"function"==typeof newConfig&&(newConfig=newConfig(config2)),config2={...config2,...newConfig}}function getConfig2(){return config2}var labelledNodeNames=["button","meter","output","progress","select","textarea","input"];function getTextContent(node){return labelledNodeNames.includes(node.nodeName.toLowerCase())?"":node.nodeType===TEXT_NODE2?node.textContent:Array.from(node.childNodes).map((childNode=>getTextContent(childNode))).join("")}function getLabelContent(element){let textContent;return textContent="label"===element.tagName.toLowerCase()?getTextContent(element):element.value||element.textContent,textContent}function getRealLabels(element){var _labels;if(void 0!==element.labels)return null!=(_labels=element.labels)?_labels:[];if(!function isLabelable(element){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(element.tagName)||"INPUT"===element.tagName&&"hidden"!==element.getAttribute("type")}(element))return[];let labels=element.ownerDocument.querySelectorAll("label");return Array.from(labels).filter((label=>label.control===element))}function getLabels3(container,element,_temp){let{selector="*"}=void 0===_temp?{}:_temp,ariaLabelledBy=element.getAttribute("aria-labelledby"),labelsId=ariaLabelledBy?ariaLabelledBy.split(" "):[];return labelsId.length?labelsId.map((labelId=>{let labellingElement=container.querySelector('[id="'+labelId+'"]');return labellingElement?{content:getLabelContent(labellingElement),formControl:null}:{content:"",formControl:null}})):Array.from(getRealLabels(element)).map((label=>({content:getLabelContent(label),formControl:Array.from(label.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter((formControlElement=>formControlElement.matches(selector)))[0]})))}function assertNotNullOrUndefined(matcher){if(null==matcher)throw new Error("It looks like "+matcher+" was passed instead of a matcher. Did you do something like getByText("+matcher+")?")}function fuzzyMatches(textToMatch,node,matcher,normalizer){if("string"!=typeof textToMatch)return!1;assertNotNullOrUndefined(matcher);let normalizedText=normalizer(textToMatch);return"string"==typeof matcher||"number"==typeof matcher?normalizedText.toLowerCase().includes(matcher.toString().toLowerCase()):"function"==typeof matcher?matcher(normalizedText,node):matchRegExp(matcher,normalizedText)}function matches2(textToMatch,node,matcher,normalizer){if("string"!=typeof textToMatch)return!1;assertNotNullOrUndefined(matcher);let normalizedText=normalizer(textToMatch);return matcher instanceof Function?matcher(normalizedText,node):matcher instanceof RegExp?matchRegExp(matcher,normalizedText):normalizedText===String(matcher)}function getDefaultNormalizer(_temp){let{trim=!0,collapseWhitespace=!0}=void 0===_temp?{}:_temp;return text=>{let normalizedText=text;return normalizedText=trim?normalizedText.trim():normalizedText,normalizedText=collapseWhitespace?normalizedText.replace(/\s+/g," "):normalizedText,normalizedText}}function makeNormalizer(_ref){let{trim,collapseWhitespace,normalizer}=_ref;if(!normalizer)return getDefaultNormalizer({trim,collapseWhitespace});if(typeof trim<"u"||typeof collapseWhitespace<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return normalizer}function matchRegExp(matcher,text){let match=matcher.test(text);return matcher.global&&0!==matcher.lastIndex&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),matcher.lastIndex=0),match}function getNodeText(node){return node.matches("input[type=submit], input[type=button], input[type=reset]")?node.value:Array.from(node.childNodes).filter((child=>child.nodeType===TEXT_NODE2&&!!child.textContent)).map((c=>c.textContent)).join("")}var elementRoleList2=function buildElementRoleList2(elementRolesMap){function getSelectorSpecificity(_ref3){let{attributes=[]}=_ref3;return attributes.length}function match(element){let{attributes=[]}=element,typeTextIndex=attributes.findIndex((attribute=>attribute.value&&"type"===attribute.name&&"text"===attribute.value));typeTextIndex>=0&&(attributes=[...attributes.slice(0,typeTextIndex),...attributes.slice(typeTextIndex+1)]);let selector=function makeElementSelector(_ref){let{name,attributes}=_ref;return""+name+attributes.map((_ref2=>{let{name:attributeName,value,constraints=[]}=_ref2,shouldNotExist=-1!==constraints.indexOf("undefined"),shouldBeNonEmpty=-1!==constraints.indexOf("set");return typeof value<"u"?"["+attributeName+'="'+value+'"]':shouldNotExist?":not(["+attributeName+"])":shouldBeNonEmpty?"["+attributeName+"]:not(["+attributeName+'=""])':"["+attributeName+"]"})).join("")}({...element,attributes});return node=>!(typeTextIndex>=0&&"text"!==node.type)&&node.matches(selector)}let result=[];for(let[element,roles3]of elementRolesMap.entries())result=[...result,{match:match(element),roles:Array.from(roles3),specificity:getSelectorSpecificity(element)}];return result.sort((function bySelectorSpecificity(_ref4,_ref5){let{specificity:leftSpecificity}=_ref4,{specificity:rightSpecificity}=_ref5;return rightSpecificity-leftSpecificity}))}(import_aria_query3.elementRoles);function isSubtreeInaccessible(element){return!0===element.hidden||"true"===element.getAttribute("aria-hidden")||"none"===element.ownerDocument.defaultView.getComputedStyle(element).display}function isInaccessible(element,options){void 0===options&&(options={});let{isSubtreeInaccessible:isSubtreeInaccessibleImpl=isSubtreeInaccessible}=options;if("hidden"===element.ownerDocument.defaultView.getComputedStyle(element).visibility)return!0;let currentElement=element;for(;currentElement;){if(isSubtreeInaccessibleImpl(currentElement))return!0;currentElement=currentElement.parentElement}return!1}function getImplicitAriaRoles2(currentNode){for(let{match,roles:roles3}of elementRoleList2)if(match(currentNode))return[...roles3];return[]}function getRoles(container,_temp){let{hidden=!1}=void 0===_temp?{}:_temp;return function flattenDOM(node){return[node,...Array.from(node.children).reduce(((acc,child)=>[...acc,...flattenDOM(child)]),[])]}(container).filter((element=>!1!==hidden||!1===isInaccessible(element))).reduce(((acc,node)=>{let roles3=[];return roles3=node.hasAttribute("role")?node.getAttribute("role").split(" ").slice(0,1):getImplicitAriaRoles2(node),roles3.reduce(((rolesAcc,role)=>Array.isArray(rolesAcc[role])?{...rolesAcc,[role]:[...rolesAcc[role],node]}:{...rolesAcc,[role]:[node]}),acc)}),{})}function prettyRoles(dom,_ref6){let{hidden,includeDescription}=_ref6,roles3=getRoles(dom,{hidden});return Object.entries(roles3).filter((_ref7=>{let[role]=_ref7;return"generic"!==role})).map((_ref8=>{let[role,elements]=_ref8,delimiterBar="-".repeat(50);return role+":\n\n"+elements.map((el=>{let nameString='Name "'+computeAccessibleName2(el,{computedStyleSupportsPseudoElements:getConfig2().computedStyleSupportsPseudoElements})+'":\n',domString=prettyDOM(el.cloneNode(!1));if(includeDescription){return""+nameString+('Description "'+computeAccessibleDescription2(el,{computedStyleSupportsPseudoElements:getConfig2().computedStyleSupportsPseudoElements})+'":\n')+domString}return""+nameString+domString})).join("\n\n")+"\n\n"+delimiterBar})).join("\n")}var logRoles=function(dom,_temp2){let{hidden=!1}=void 0===_temp2?{}:_temp2;return console.log(prettyRoles(dom,{hidden}))};function checkBooleanAttribute(element,attribute){let attributeValue=element.getAttribute(attribute);return"true"===attributeValue||"false"!==attributeValue&&void 0}var normalize2=getDefaultNormalizer();function getRegExpMatcher(string){return new RegExp(function escapeRegExp(string){return string.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}(string.toLowerCase()),"i")}function makeSuggestion(queryName,element,content,_ref){let{variant,name}=_ref,warning="",queryOptions={},queryArgs=[["Role","TestId"].includes(queryName)?content:getRegExpMatcher(content)];name&&(queryOptions.name=getRegExpMatcher(name)),"Role"===queryName&&isInaccessible(element)&&(queryOptions.hidden=!0,warning="Element is inaccessible. This means that the element and all its children are invisible to screen readers.\n If you are using the aria-hidden prop, make sure this is the right choice for your case.\n "),Object.keys(queryOptions).length>0&&queryArgs.push(queryOptions);let queryMethod=variant+"By"+queryName;return{queryName,queryMethod,queryArgs,variant,warning,toString(){warning&&console.warn(warning);let[text,options]=queryArgs;return text="string"==typeof text?"'"+text+"'":text,options=options?", { "+Object.entries(options).map((_ref2=>{let[k2,v]=_ref2;return k2+": "+v})).join(", ")+" }":"",queryMethod+"("+text+options+")"}}}function canSuggest(currentMethod,requestedMethod,data){return data&&(!requestedMethod||requestedMethod.toLowerCase()===currentMethod.toLowerCase())}function getSuggestedQuery(element,variant,method){var _element$getAttribute,_getImplicitAriaRoles;if(void 0===variant&&(variant="get"),element.matches(getConfig2().defaultIgnore))return;let role=null!=(_element$getAttribute=element.getAttribute("role"))?_element$getAttribute:null==(_getImplicitAriaRoles=getImplicitAriaRoles2(element))?void 0:_getImplicitAriaRoles[0];if("generic"!==role&&canSuggest("Role",method,role))return makeSuggestion("Role",element,role,{variant,name:computeAccessibleName2(element,{computedStyleSupportsPseudoElements:getConfig2().computedStyleSupportsPseudoElements})});let labelText=getLabels3(document,element).map((label=>label.content)).join(" ");if(canSuggest("LabelText",method,labelText))return makeSuggestion("LabelText",element,labelText,{variant});let placeholderText=element.getAttribute("placeholder");if(canSuggest("PlaceholderText",method,placeholderText))return makeSuggestion("PlaceholderText",element,placeholderText,{variant});let textContent=normalize2(getNodeText(element));if(canSuggest("Text",method,textContent))return makeSuggestion("Text",element,textContent,{variant});if(canSuggest("DisplayValue",method,element.value))return makeSuggestion("DisplayValue",element,normalize2(element.value),{variant});let alt=element.getAttribute("alt");if(canSuggest("AltText",method,alt))return makeSuggestion("AltText",element,alt,{variant});let title=element.getAttribute("title");if(canSuggest("Title",method,title))return makeSuggestion("Title",element,title,{variant});let testId=element.getAttribute(getConfig2().testIdAttribute);return canSuggest("TestId",method,testId)?makeSuggestion("TestId",element,testId,{variant}):void 0}function copyStackTrace(target,source){target.stack=source.stack.replace(source.message,target.message)}function waitFor(callback,_ref){let{container=getDocument(),timeout=getConfig2().asyncUtilTimeout,showOriginalStackTrace=getConfig2().showOriginalStackTrace,stackTraceError,interval=50,onTimeout=error=>(Object.defineProperty(error,"message",{value:getConfig2().getElementError(error.message,container).message}),error),mutationObserverOptions={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=_ref;if("function"!=typeof callback)throw new TypeError("Received `callback` arg must be a function");return new Promise((async(resolve,reject)=>{let lastError,intervalId,observer,finished=!1,promiseStatus="idle",overallTimeoutTimer=setTimeout((function handleTimeout(){let error;lastError?(error=lastError,!showOriginalStackTrace&&"TestingLibraryElementError"===error.name&©StackTrace(error,stackTraceError)):(error=new Error("Timed out in waitFor."),showOriginalStackTrace||copyStackTrace(error,stackTraceError)),onDone(onTimeout(error),null)}),timeout),usingJestFakeTimers=jestFakeTimersAreEnabled();if(usingJestFakeTimers){let{unstable_advanceTimersWrapper:advanceTimersWrapper}=getConfig2();for(checkCallback();!finished;){if(!jestFakeTimersAreEnabled()){let error=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return showOriginalStackTrace||copyStackTrace(error,stackTraceError),void reject(error)}if(await advanceTimersWrapper((async()=>{jest.advanceTimersByTime(interval)})),finished)break;checkCallback()}}else{try{checkContainerType(container)}catch(e){return void reject(e)}intervalId=setInterval(checkRealTimersCallback,interval);let{MutationObserver}=getWindowFromNode(container);observer=new MutationObserver(checkRealTimersCallback),observer.observe(container,mutationObserverOptions),checkCallback()}function onDone(error,result){finished=!0,clearTimeout(overallTimeoutTimer),usingJestFakeTimers||(clearInterval(intervalId),observer.disconnect()),error?reject(error):resolve(result)}function checkRealTimersCallback(){if(jestFakeTimersAreEnabled()){let error=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return showOriginalStackTrace||copyStackTrace(error,stackTraceError),reject(error)}return checkCallback()}function checkCallback(){if("pending"!==promiseStatus)try{let result=function runWithExpensiveErrorDiagnosticsDisabled(callback){try{return config2._disableExpensiveErrorDiagnostics=!0,callback()}finally{config2._disableExpensiveErrorDiagnostics=!1}}(callback);"function"==typeof result?.then?(promiseStatus="pending",result.then((resolvedValue=>{promiseStatus="resolved",onDone(null,resolvedValue)}),(rejectedValue=>{promiseStatus="rejected",lastError=rejectedValue}))):onDone(null,result)}catch(error){lastError=error}}}))}function waitForWrapper(callback,options){let stackTraceError=new Error("STACK_TRACE_MESSAGE");return getConfig2().asyncWrapper((()=>waitFor(callback,{stackTraceError,...options})))}function getElementError(message,container){return getConfig2().getElementError(message,container)}function getMultipleElementsFoundError(message,container){return getElementError(message+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",container)}function queryAllByAttribute(attribute,container,text,_temp){let{exact=!0,collapseWhitespace,trim,normalizer}=void 0===_temp?{}:_temp,matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace,trim,normalizer});return Array.from(container.querySelectorAll("["+attribute+"]")).filter((node=>matcher(node.getAttribute(attribute),node,text,matchNormalizer)))}function queryByAttribute(attribute,container,text,options){let els=queryAllByAttribute(attribute,container,text,options);if(els.length>1)throw getMultipleElementsFoundError("Found multiple elements by ["+attribute+"="+text+"]",container);return els[0]||null}function makeSingleQuery(allQuery,getMultipleError2){return function(container){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];let els=allQuery(container,...args);if(els.length>1){let elementStrings=els.map((element=>getElementError(null,element).message)).join("\n\n");throw getMultipleElementsFoundError(getMultipleError2(container,...args)+"\n\nHere are the matching elements:\n\n"+elementStrings,container)}return els[0]||null}}function getSuggestionError(suggestion,container){return getConfig2().getElementError("A better query is available, try this:\n"+suggestion.toString()+"\n",container)}function makeGetAllQuery(allQuery,getMissingError2){return function(container){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];let els=allQuery(container,...args);if(!els.length)throw getConfig2().getElementError(getMissingError2(container,...args),container);return els}}function makeFindQuery(getter){return(container,text,options,waitForOptions)=>waitForWrapper((()=>getter(container,text,options)),{container,...waitForOptions})}var wrapSingleQueryWithSuggestion=(query,queryAllByName,variant)=>function(container){for(var _len3=arguments.length,args=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)args[_key3-1]=arguments[_key3];let element=query(container,...args),[{suggest=getConfig2().throwSuggestions}={}]=args.slice(-1);if(element&&suggest){let suggestion=getSuggestedQuery(element,variant);if(suggestion&&!queryAllByName.endsWith(suggestion.queryName))throw getSuggestionError(suggestion.toString(),container)}return element},wrapAllByQueryWithSuggestion=(query,queryAllByName,variant)=>function(container){for(var _len4=arguments.length,args=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++)args[_key4-1]=arguments[_key4];let els=query(container,...args),[{suggest=getConfig2().throwSuggestions}={}]=args.slice(-1);if(els.length&&suggest){let uniqueSuggestionMessages=[...new Set(els.map((element=>{var _getSuggestedQuery;return null==(_getSuggestedQuery=getSuggestedQuery(element,variant))?void 0:_getSuggestedQuery.toString()})))];if(1===uniqueSuggestionMessages.length&&!queryAllByName.endsWith(getSuggestedQuery(els[0],variant).queryName))throw getSuggestionError(uniqueSuggestionMessages[0],container)}return els};function buildQueries(queryAllBy,getMultipleError2,getMissingError2){let queryBy=wrapSingleQueryWithSuggestion(makeSingleQuery(queryAllBy,getMultipleError2),queryAllBy.name,"query"),getAllBy=makeGetAllQuery(queryAllBy,getMissingError2),getBy=makeSingleQuery(getAllBy,getMultipleError2),getByWithSuggestions=wrapSingleQueryWithSuggestion(getBy,queryAllBy.name,"get");return[queryBy,wrapAllByQueryWithSuggestion(getAllBy,queryAllBy.name.replace("query","get"),"getAll"),getByWithSuggestions,makeFindQuery(wrapAllByQueryWithSuggestion(getAllBy,queryAllBy.name,"findAll")),makeFindQuery(wrapSingleQueryWithSuggestion(getBy,queryAllBy.name,"find"))]}var queryHelpers=Object.freeze({__proto__:null,getElementError,wrapAllByQueryWithSuggestion,wrapSingleQueryWithSuggestion,getMultipleElementsFoundError,queryAllByAttribute,queryByAttribute,makeSingleQuery,makeGetAllQuery,makeFindQuery,buildQueries});var queryAllLabelsByText=function(container,text,_temp){let{exact=!0,trim,collapseWhitespace,normalizer}=void 0===_temp?{}:_temp,matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace,trim,normalizer});return function queryAllLabels(container){return Array.from(container.querySelectorAll("label,input")).map((node=>({node,textToMatch:getLabelContent(node)}))).filter((_ref=>{let{textToMatch}=_ref;return null!==textToMatch}))}(container).filter((_ref2=>{let{node,textToMatch}=_ref2;return matcher(textToMatch,node,text,matchNormalizer)})).map((_ref3=>{let{node}=_ref3;return node}))},queryAllByLabelText=function(container,text,_temp2){let{selector="*",exact=!0,collapseWhitespace,trim,normalizer}=void 0===_temp2?{}:_temp2;checkContainerType(container);let matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace,trim,normalizer}),matchingLabelledElements=Array.from(container.querySelectorAll("*")).filter((element=>getRealLabels(element).length||element.hasAttribute("aria-labelledby"))).reduce(((labelledElements,labelledElement)=>{let labelList=getLabels3(container,labelledElement,{selector});labelList.filter((label=>!!label.formControl)).forEach((label=>{matcher(label.content,label.formControl,text,matchNormalizer)&&label.formControl&&labelledElements.push(label.formControl)}));let labelsValue=labelList.filter((label=>!!label.content)).map((label=>label.content));return matcher(labelsValue.join(" "),labelledElement,text,matchNormalizer)&&labelledElements.push(labelledElement),labelsValue.length>1&&labelsValue.forEach(((labelValue,index)=>{matcher(labelValue,labelledElement,text,matchNormalizer)&&labelledElements.push(labelledElement);let labelsFiltered=[...labelsValue];labelsFiltered.splice(index,1),labelsFiltered.length>1&&matcher(labelsFiltered.join(" "),labelledElement,text,matchNormalizer)&&labelledElements.push(labelledElement)})),labelledElements}),[]).concat(queryAllByAttribute("aria-label",container,text,{exact,normalizer:matchNormalizer}));return Array.from(new Set(matchingLabelledElements)).filter((element=>element.matches(selector)))},getAllByLabelText=function(container,text){for(var _len=arguments.length,rest=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++)rest[_key-2]=arguments[_key];let els=queryAllByLabelText(container,text,...rest);if(!els.length){let labels=queryAllLabelsByText(container,text,...rest);if(labels.length){let tagNames=labels.map((label=>function getTagNameOfElementAssociatedWithLabelViaFor(container,label){let htmlFor=label.getAttribute("for");if(!htmlFor)return null;let element=container.querySelector('[id="'+htmlFor+'"]');return element?element.tagName.toLowerCase():null}(container,label))).filter((tagName=>!!tagName));throw tagNames.length?getConfig2().getElementError(tagNames.map((tagName=>"Found a label with the text of: "+text+", however the element associated with this label (<"+tagName+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+tagName+" />, you can use aria-label or aria-labelledby instead.")).join("\n\n"),container):getConfig2().getElementError("Found a label with the text of: "+text+', however no form control was found associated to that label. Make sure you\'re using the "for" attribute or "aria-labelledby" attribute correctly.',container)}throw getConfig2().getElementError("Unable to find a label with the text of: "+text,container)}return els};var getMultipleError$7=(c,text)=>"Found multiple elements with the text of: "+text,queryByLabelText=wrapSingleQueryWithSuggestion(makeSingleQuery(queryAllByLabelText,getMultipleError$7),queryAllByLabelText.name,"query"),getByLabelText=makeSingleQuery(getAllByLabelText,getMultipleError$7),findAllByLabelText=makeFindQuery(wrapAllByQueryWithSuggestion(getAllByLabelText,getAllByLabelText.name,"findAll")),findByLabelText=makeFindQuery(wrapSingleQueryWithSuggestion(getByLabelText,getAllByLabelText.name,"find")),getAllByLabelTextWithSuggestions=wrapAllByQueryWithSuggestion(getAllByLabelText,getAllByLabelText.name,"getAll"),getByLabelTextWithSuggestions=wrapSingleQueryWithSuggestion(getByLabelText,getAllByLabelText.name,"get"),queryAllByLabelTextWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByLabelText,queryAllByLabelText.name,"queryAll"),queryAllByPlaceholderText=function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return checkContainerType(args[0]),queryAllByAttribute("placeholder",...args)},queryAllByPlaceholderTextWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByPlaceholderText,queryAllByPlaceholderText.name,"queryAll"),[queryByPlaceholderText,getAllByPlaceholderText,getByPlaceholderText,findAllByPlaceholderText,findByPlaceholderText]=buildQueries(queryAllByPlaceholderText,((c,text)=>"Found multiple elements with the placeholder text of: "+text),((c,text)=>"Unable to find an element with the placeholder text of: "+text)),queryAllByText=function(container,text,_temp){let{selector="*",exact=!0,collapseWhitespace,trim,ignore=getConfig2().defaultIgnore,normalizer}=void 0===_temp?{}:_temp;checkContainerType(container);let matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace,trim,normalizer}),baseArray=[];return"function"==typeof container.matches&&container.matches(selector)&&(baseArray=[container]),[...baseArray,...Array.from(container.querySelectorAll(selector))].filter((node=>!ignore||!node.matches(ignore))).filter((node=>matcher(getNodeText(node),node,text,matchNormalizer)))},queryAllByTextWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByText,queryAllByText.name,"queryAll"),[queryByText,getAllByText,getByText,findAllByText,findByText]=buildQueries(queryAllByText,((c,text)=>"Found multiple elements with the text: "+text),(function(c,text,options){void 0===options&&(options={});let{collapseWhitespace,trim,normalizer,selector}=options,normalizedText=makeNormalizer({collapseWhitespace,trim,normalizer})(text.toString());return"Unable to find an element with the text: "+(normalizedText!==text.toString()?normalizedText+" (normalized from '"+text+"')":text)+("*"!==(selector??"*")?", which matches selector '"+selector+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."})),queryAllByDisplayValue=function(container,value,_temp){let{exact=!0,collapseWhitespace,trim,normalizer}=void 0===_temp?{}:_temp;checkContainerType(container);let matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace,trim,normalizer});return Array.from(container.querySelectorAll("input,textarea,select")).filter((node=>"SELECT"===node.tagName?Array.from(node.options).filter((option=>option.selected)).some((optionNode=>matcher(getNodeText(optionNode),optionNode,value,matchNormalizer))):matcher(node.value,node,value,matchNormalizer)))},queryAllByDisplayValueWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByDisplayValue,queryAllByDisplayValue.name,"queryAll"),[queryByDisplayValue,getAllByDisplayValue,getByDisplayValue,findAllByDisplayValue,findByDisplayValue]=buildQueries(queryAllByDisplayValue,((c,value)=>"Found multiple elements with the display value: "+value+"."),((c,value)=>"Unable to find an element with the display value: "+value+".")),VALID_TAG_REGEXP=/^(img|input|area|.+-.+)$/i,queryAllByAltText=function(container,alt,options){return void 0===options&&(options={}),checkContainerType(container),queryAllByAttribute("alt",container,alt,options).filter((node=>VALID_TAG_REGEXP.test(node.tagName)))},queryAllByAltTextWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByAltText,queryAllByAltText.name,"queryAll"),[queryByAltText,getAllByAltText,getByAltText,findAllByAltText,findByAltText]=buildQueries(queryAllByAltText,((c,alt)=>"Found multiple elements with the alt text: "+alt),((c,alt)=>"Unable to find an element with the alt text: "+alt)),queryAllByTitle=function(container,text,_temp){let{exact=!0,collapseWhitespace,trim,normalizer}=void 0===_temp?{}:_temp;checkContainerType(container);let matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace,trim,normalizer});return Array.from(container.querySelectorAll("[title], svg > title")).filter((node=>matcher(node.getAttribute("title"),node,text,matchNormalizer)||(node=>{var _node$parentElement;return"title"===node.tagName.toLowerCase()&&"svg"===(null==(_node$parentElement=node.parentElement)?void 0:_node$parentElement.tagName.toLowerCase())})(node)&&matcher(getNodeText(node),node,text,matchNormalizer)))},queryAllByTitleWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByTitle,queryAllByTitle.name,"queryAll"),[queryByTitle,getAllByTitle,getByTitle,findAllByTitle,findByTitle]=buildQueries(queryAllByTitle,((c,title)=>"Found multiple elements with the title: "+title+"."),((c,title)=>"Unable to find an element with the title: "+title+".")),queryAllByRole=function(container,role,_temp){let{hidden=getConfig2().defaultHidden,name,description,queryFallbacks=!1,selected,busy,checked,pressed,current,level,expanded,value:{now:valueNow,min:valueMin,max:valueMax,text:valueText}={}}=void 0===_temp?{}:_temp;var _allRoles$get,_allRoles$get2,_allRoles$get3,_allRoles$get4,_allRoles$get5,_allRoles$get6,_allRoles$get7,_allRoles$get8,_allRoles$get9,_allRoles$get10;if((checkContainerType(container),void 0!==selected)&&void 0===(null==(_allRoles$get=import_aria_query3.roles.get(role))?void 0:_allRoles$get.props["aria-selected"]))throw new Error('"aria-selected" is not supported on role "'+role+'".');if(void 0!==busy&&void 0===(null==(_allRoles$get2=import_aria_query3.roles.get(role))?void 0:_allRoles$get2.props["aria-busy"]))throw new Error('"aria-busy" is not supported on role "'+role+'".');if(void 0!==checked&&void 0===(null==(_allRoles$get3=import_aria_query3.roles.get(role))?void 0:_allRoles$get3.props["aria-checked"]))throw new Error('"aria-checked" is not supported on role "'+role+'".');if(void 0!==pressed&&void 0===(null==(_allRoles$get4=import_aria_query3.roles.get(role))?void 0:_allRoles$get4.props["aria-pressed"]))throw new Error('"aria-pressed" is not supported on role "'+role+'".');if(void 0!==current&&void 0===(null==(_allRoles$get5=import_aria_query3.roles.get(role))?void 0:_allRoles$get5.props["aria-current"]))throw new Error('"aria-current" is not supported on role "'+role+'".');if(void 0!==level&&"heading"!==role)throw new Error('Role "'+role+'" cannot have "level" property.');if(void 0!==valueNow&&void 0===(null==(_allRoles$get6=import_aria_query3.roles.get(role))?void 0:_allRoles$get6.props["aria-valuenow"]))throw new Error('"aria-valuenow" is not supported on role "'+role+'".');if(void 0!==valueMax&&void 0===(null==(_allRoles$get7=import_aria_query3.roles.get(role))?void 0:_allRoles$get7.props["aria-valuemax"]))throw new Error('"aria-valuemax" is not supported on role "'+role+'".');if(void 0!==valueMin&&void 0===(null==(_allRoles$get8=import_aria_query3.roles.get(role))?void 0:_allRoles$get8.props["aria-valuemin"]))throw new Error('"aria-valuemin" is not supported on role "'+role+'".');if(void 0!==valueText&&void 0===(null==(_allRoles$get9=import_aria_query3.roles.get(role))?void 0:_allRoles$get9.props["aria-valuetext"]))throw new Error('"aria-valuetext" is not supported on role "'+role+'".');if(void 0!==expanded&&void 0===(null==(_allRoles$get10=import_aria_query3.roles.get(role))?void 0:_allRoles$get10.props["aria-expanded"]))throw new Error('"aria-expanded" is not supported on role "'+role+'".');let subtreeIsInaccessibleCache=new WeakMap;function cachedIsSubtreeInaccessible(element){return subtreeIsInaccessibleCache.has(element)||subtreeIsInaccessibleCache.set(element,isSubtreeInaccessible(element)),subtreeIsInaccessibleCache.get(element)}return Array.from(container.querySelectorAll(function makeRoleSelector(role){var _roleElements$get;let explicitRoleSelector='*[role~="'+role+'"]',roleRelations=null!=(_roleElements$get=import_aria_query3.roleElements.get(role))?_roleElements$get:new Set,implicitRoleSelectors=new Set(Array.from(roleRelations).map((_ref=>{let{name}=_ref;return name})));return[explicitRoleSelector].concat(Array.from(implicitRoleSelectors)).join(",")}(role))).filter((node=>{if(node.hasAttribute("role")){let roleValue=node.getAttribute("role");if(queryFallbacks)return roleValue.split(" ").filter(Boolean).some((roleAttributeToken=>roleAttributeToken===role));let[firstRoleAttributeToken]=roleValue.split(" ");return firstRoleAttributeToken===role}return getImplicitAriaRoles2(node).some((implicitRole=>implicitRole===role))})).filter((element=>{if(void 0!==selected)return selected===function computeAriaSelected(element){return"OPTION"===element.tagName?element.selected:checkBooleanAttribute(element,"aria-selected")}(element);if(void 0!==busy)return busy===function computeAriaBusy(element){return"true"===element.getAttribute("aria-busy")}(element);if(void 0!==checked)return checked===function computeAriaChecked(element){if(!("indeterminate"in element)||!element.indeterminate)return"checked"in element?element.checked:checkBooleanAttribute(element,"aria-checked")}(element);if(void 0!==pressed)return pressed===function computeAriaPressed(element){return checkBooleanAttribute(element,"aria-pressed")}(element);if(void 0!==current)return current===function computeAriaCurrent(element){var _ref9,_checkBooleanAttribut;return null!=(_ref9=null!=(_checkBooleanAttribut=checkBooleanAttribute(element,"aria-current"))?_checkBooleanAttribut:element.getAttribute("aria-current"))&&_ref9}(element);if(void 0!==expanded)return expanded===function computeAriaExpanded(element){return checkBooleanAttribute(element,"aria-expanded")}(element);if(void 0!==level)return level===function computeHeadingLevel(element){return element.getAttribute("aria-level")&&Number(element.getAttribute("aria-level"))||{H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[element.tagName]}(element);if(void 0!==valueNow||void 0!==valueMax||void 0!==valueMin||void 0!==valueText){let valueMatches=!0;var _computeAriaValueText;if(void 0!==valueNow&&valueMatches&&(valueMatches=valueNow===function computeAriaValueNow(element){let valueNow=element.getAttribute("aria-valuenow");return null===valueNow?void 0:+valueNow}(element)),void 0!==valueMax&&valueMatches&&(valueMatches=valueMax===function computeAriaValueMax(element){let valueMax=element.getAttribute("aria-valuemax");return null===valueMax?void 0:+valueMax}(element)),void 0!==valueMin&&valueMatches&&(valueMatches=valueMin===function computeAriaValueMin(element){let valueMin=element.getAttribute("aria-valuemin");return null===valueMin?void 0:+valueMin}(element)),void 0!==valueText)valueMatches&&(valueMatches=matches2(null!=(_computeAriaValueText=function computeAriaValueText(element){let valueText=element.getAttribute("aria-valuetext");return null===valueText?void 0:valueText}(element))?_computeAriaValueText:null,element,valueText,(text=>text)));return valueMatches}return!0})).filter((element=>void 0===name||matches2(computeAccessibleName2(element,{computedStyleSupportsPseudoElements:getConfig2().computedStyleSupportsPseudoElements}),element,name,(text=>text)))).filter((element=>void 0===description||matches2(computeAccessibleDescription2(element,{computedStyleSupportsPseudoElements:getConfig2().computedStyleSupportsPseudoElements}),element,description,(text=>text)))).filter((element=>!1!==hidden||!1===isInaccessible(element,{isSubtreeInaccessible:cachedIsSubtreeInaccessible})))};var getNameHint=name=>{let nameHint="";return nameHint=void 0===name?"":"string"==typeof name?' and name "'+name+'"':" and name `"+name+"`",nameHint},queryAllByRoleWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByRole,queryAllByRole.name,"queryAll"),[queryByRole,getAllByRole,getByRole,findAllByRole,findByRole]=buildQueries(queryAllByRole,(function(c,role,_temp2){let{name}=void 0===_temp2?{}:_temp2;return'Found multiple elements with the role "'+role+'"'+getNameHint(name)}),(function(container,role,_temp3){let{hidden=getConfig2().defaultHidden,name,description}=void 0===_temp3?{}:_temp3;if(getConfig2()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+role+'"'+getNameHint(name);let roleMessage,roles3="";Array.from(container.children).forEach((childElement=>{roles3+=prettyRoles(childElement,{hidden,includeDescription:void 0!==description})})),roleMessage=0===roles3.length?!1===hidden?"There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":"There are no available roles.":("\nHere are the "+(!1===hidden?"accessible":"available")+" roles:\n\n "+roles3.replace(/\n/g,"\n ").replace(/\n\s\s\n/g,"\n\n")+"\n").trim();let nameHint="";nameHint=void 0===name?"":"string"==typeof name?' and name "'+name+'"':" and name `"+name+"`";let descriptionHint="";return descriptionHint=void 0===description?"":"string"==typeof description?' and description "'+description+'"':" and description `"+description+"`",("\nUnable to find an "+(!1===hidden?"accessible ":"")+'element with the role "'+role+'"'+nameHint+descriptionHint+"\n\n"+roleMessage).trim()})),getTestIdAttribute=()=>getConfig2().testIdAttribute,queryAllByTestId=function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return checkContainerType(args[0]),queryAllByAttribute(getTestIdAttribute(),...args)},queryAllByTestIdWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByTestId,queryAllByTestId.name,"queryAll"),[queryByTestId,getAllByTestId,getByTestId,findAllByTestId,findByTestId]=buildQueries(queryAllByTestId,((c,id)=>"Found multiple elements by: ["+getTestIdAttribute()+'="'+id+'"]'),((c,id)=>"Unable to find an element by: ["+getTestIdAttribute()+'="'+id+'"]')),queries=Object.freeze({__proto__:null,queryAllByLabelText:queryAllByLabelTextWithSuggestions,queryByLabelText,getAllByLabelText:getAllByLabelTextWithSuggestions,getByLabelText:getByLabelTextWithSuggestions,findAllByLabelText,findByLabelText,queryByPlaceholderText,queryAllByPlaceholderText:queryAllByPlaceholderTextWithSuggestions,getByPlaceholderText,getAllByPlaceholderText,findAllByPlaceholderText,findByPlaceholderText,queryByText,queryAllByText:queryAllByTextWithSuggestions,getByText,getAllByText,findAllByText,findByText,queryByDisplayValue,queryAllByDisplayValue:queryAllByDisplayValueWithSuggestions,getByDisplayValue,getAllByDisplayValue,findAllByDisplayValue,findByDisplayValue,queryByAltText,queryAllByAltText:queryAllByAltTextWithSuggestions,getByAltText,getAllByAltText,findAllByAltText,findByAltText,queryByTitle,queryAllByTitle:queryAllByTitleWithSuggestions,getByTitle,getAllByTitle,findAllByTitle,findByTitle,queryByRole,queryAllByRole:queryAllByRoleWithSuggestions,getAllByRole,getByRole,findAllByRole,findByRole,queryByTestId,queryAllByTestId:queryAllByTestIdWithSuggestions,getByTestId,getAllByTestId,findAllByTestId,findByTestId});function getQueriesForElement(element,queries$1,initialValue2){return void 0===queries$1&&(queries$1=queries),void 0===initialValue2&&(initialValue2={}),Object.keys(queries$1).reduce(((helpers,key)=>{let fn3=queries$1[key];return helpers[key]=fn3.bind(null,element),helpers}),initialValue2)}var isRemoved=result=>!result||Array.isArray(result)&&!result.length;function initialCheck(elements){if(isRemoved(elements))throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.")}async function waitForElementToBeRemoved(callback,options){let timeoutError=new Error("Timed out in waitForElementToBeRemoved.");if("function"!=typeof callback){initialCheck(callback);let getRemainingElements=(Array.isArray(callback)?callback:[callback]).map((element=>{let parent=element.parentElement;if(null===parent)return()=>null;for(;parent.parentElement;)parent=parent.parentElement;return()=>parent.contains(element)?element:null}));callback=()=>getRemainingElements.map((c=>c())).filter(Boolean)}return initialCheck(callback()),waitForWrapper((()=>{let result;try{result=callback()}catch(error){if("TestingLibraryElementError"===error.name)return;throw error}if(!isRemoved(result))throw timeoutError}),options)}var eventMap={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}}},eventAliasMap={doubleClick:"dblClick"};function fireEvent(element,event){return getConfig2().eventWrapper((()=>{if(!event)throw new Error("Unable to fire an event - please provide an event object.");if(!element)throw new Error('Unable to fire a "'+event.type+'" event - please provide a DOM element.');return element.dispatchEvent(event)}))}function createEvent(eventName,node,init,_temp){let{EventType="Event",defaultInit={}}=void 0===_temp?{}:_temp;if(!node)throw new Error('Unable to fire a "'+eventName+'" event - please provide a DOM element.');let eventInit={...defaultInit,...init},{target:{value,files,...targetProperties}={}}=eventInit;void 0!==value&&function setNativeValue(element,value){let{set:valueSetter}=Object.getOwnPropertyDescriptor(element,"value")||{},prototype=Object.getPrototypeOf(element),{set:prototypeValueSetter}=Object.getOwnPropertyDescriptor(prototype,"value")||{};if(prototypeValueSetter&&valueSetter!==prototypeValueSetter)prototypeValueSetter.call(element,value);else{if(!valueSetter)throw new Error("The given element does not have a value setter");valueSetter.call(element,value)}}(node,value),void 0!==files&&Object.defineProperty(node,"files",{configurable:!0,enumerable:!0,writable:!0,value:files}),Object.assign(node,targetProperties);let event,window2=getWindowFromNode(node),EventConstructor=window2[EventType]||window2.Event;if("function"==typeof EventConstructor)event=new EventConstructor(eventName,eventInit);else{event=window2.document.createEvent(EventType);let{bubbles,cancelable,detail,...otherInit}=eventInit;event.initEvent(eventName,bubbles,cancelable,detail),Object.keys(otherInit).forEach((eventKey=>{event[eventKey]=otherInit[eventKey]}))}return["dataTransfer","clipboardData"].forEach((dataTransferKey=>{let dataTransferValue=eventInit[dataTransferKey];"object"==typeof dataTransferValue&&("function"==typeof window2.DataTransfer?Object.defineProperty(event,dataTransferKey,{value:Object.getOwnPropertyNames(dataTransferValue).reduce(((acc,propName)=>(Object.defineProperty(acc,propName,{value:dataTransferValue[propName]}),acc)),new window2.DataTransfer)}):Object.defineProperty(event,dataTransferKey,{value:dataTransferValue}))})),event}function getPlaygroundUrl(markup){return"https://testing-playground.com/#markup="+function encode(value){return import_lz_string.default.compressToEncodedURIComponent(function unindent(string){return string.replace(/[ \t]*[\n][ \t]*/g,"\n")}(value))}(markup)}Object.keys(eventMap).forEach((key=>{let{EventType,defaultInit}=eventMap[key],eventName=key.toLowerCase();createEvent[key]=(node,init)=>createEvent(eventName,node,init,{EventType,defaultInit}),fireEvent[key]=(node,init)=>fireEvent(node,createEvent[key](node,init))})),Object.keys(eventAliasMap).forEach((aliasKey=>{let key=eventAliasMap[aliasKey];fireEvent[aliasKey]=function(){return fireEvent[key](...arguments)}}));var clickableInputTypes,clickableInputTypes2,initialValue={debug:(element,maxLength,options)=>Array.isArray(element)?element.forEach((el=>logDOM(el,maxLength,options))):logDOM(element,maxLength,options),logTestingPlaygroundURL:function(element){if(void 0===element&&(element=getDocument().body),!element||!("innerHTML"in element))return void console.log("The element you're providing isn't a valid DOM element.");if(!element.innerHTML)return void console.log("The provided element doesn't have any children.");let playgroundUrl=getPlaygroundUrl(element.innerHTML);return console.log("Open this URL in your browser\n\n"+playgroundUrl),playgroundUrl}},screen=typeof document<"u"&&document.body?getQueriesForElement(document.body,queries,initialValue):Object.keys(queries).reduce(((helpers,key)=>(helpers[key]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},helpers)),initialValue);function isElementType(element,tag,props){return!(element.namespaceURI&&"http://www.w3.org/1999/xhtml"!==element.namespaceURI||(tag=Array.isArray(tag)?tag:[tag],!tag.includes(element.tagName.toLowerCase())))&&(!props||Object.entries(props).every((([k2,v])=>element[k2]===v)))}function isClickableInput(element){return isElementType(element,"button")||isElementType(element,"input")&&element.type in clickableInputTypes}function getWindow(node){var _node_ownerDocument;if(function isDocument(node){return 9===node.nodeType}(node)&&node.defaultView)return node.defaultView;if(null!==(_node_ownerDocument=node.ownerDocument)&&void 0!==_node_ownerDocument&&_node_ownerDocument.defaultView)return node.ownerDocument.defaultView;throw new Error(`Could not determine window of node. Node was ${function describe(val){return"function"==typeof val?`function ${val.name}`:null===val?"null":String(val)}(node)}`)}function readBlobText(blob,FileReader){return new Promise(((res,rej)=>{let fr=new FileReader;fr.onerror=rej,fr.onabort=rej,fr.onload=()=>{res(String(fr.result))},fr.readAsText(blob)}))}function createFileList(window2,files){let list={...files,length:files.length,item:index=>list[index],[Symbol.iterator]:function*(){for(let i=0;iexact?item.type===(isGroup?group:type5):isGroup?item.type.startsWith(`${group}/`):item.type===group}function createDataTransfer(window2,files=[]){let dt=typeof window2.DataTransfer>"u"?function createDataTransferStub(window2){return new class{getData(format4){var _this_items_find;let match=null!==(_this_items_find=this.items.find(getTypeMatcher(format4,!0)))&&void 0!==_this_items_find?_this_items_find:this.items.find(getTypeMatcher(format4,!1)),text="";return match?.getAsString((t=>{text=t})),text}setData(format4,data){let matchIndex=this.items.findIndex(getTypeMatcher(format4,!0)),item=new DataTransferItemStub(data,format4);matchIndex>=0?this.items.splice(matchIndex,1,item):this.items.push(item)}clearData(format4){if(format4){let matchIndex=this.items.findIndex(getTypeMatcher(format4,!0));matchIndex>=0&&this.items.remove(matchIndex)}else this.items.clear()}get types(){let t=[];return this.files.length&&t.push("Files"),this.items.forEach((i=>t.push(i.type))),Object.freeze(t),t}setDragImage(){}constructor(){_define_property(this,"dropEffect","none"),_define_property(this,"effectAllowed","uninitialized"),_define_property(this,"items",new DataTransferItemListStub),_define_property(this,"files",createFileList(window2,[]))}}}(window2):new window2.DataTransfer;return Object.defineProperty(dt,"files",{get:()=>createFileList(window2,files)}),dt}function getBlobFromDataTransferItem(window2,item){if("file"===item.kind)return item.getAsFile();let data="";return item.getAsString((s=>{data=s})),new window2.Blob([data],{type:item.type})}function _define_property2(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function createClipboardItem(window2,...blobs){let dataMap=Object.fromEntries(blobs.map((b=>["string"==typeof b?"text/plain":b.type,Promise.resolve(b)])));return typeof window2.ClipboardItem<"u"?new window2.ClipboardItem(dataMap):new class{get types(){return Array.from(Object.keys(this.data))}async getType(type5){let value=await this.data[type5];if(!value)throw new Error(`${type5} is not one of the available MIME types on this item.`);return value instanceof window2.Blob?value:new window2.Blob([value],{type:type5})}constructor(d2){_define_property2(this,"data",void 0),this.data=d2}}(dataMap)}var ClipboardStubControl=Symbol("Manage ClipboardSub");function createClipboardStub(window2,control){return Object.assign(new class extends window2.EventTarget{async read(){return Array.from(this.items)}async readText(){let text="";for(let item of this.items){let type5=item.types.includes("text/plain")?"text/plain":item.types.find((t=>t.startsWith("text/")));type5&&(text+=await item.getType(type5).then((b=>readBlobText(b,window2.FileReader))))}return text}async write(data){this.items=data}async writeText(text){this.items=[createClipboardItem(window2,text)]}constructor(...args){super(...args),_define_property2(this,"items",[])}},{[ClipboardStubControl]:control})}function isClipboardStub(clipboard){return!!clipboard?.[ClipboardStubControl]}async function writeDataTransferToClipboard(document2,clipboardData){let window2=getWindow(document2),clipboard=window2.navigator.clipboard,items=[];for(let i=0;i!0),(()=>!1)))throw new Error("The Clipboard API is unavailable.")}var editableInputTypes,editableInputTypes2,maxLengthSupportedTypes,maxLengthSupportedTypes2,g2=globalThis;function isContentEditable(element){return element.hasAttribute("contenteditable")&&("true"==element.getAttribute("contenteditable")||""==element.getAttribute("contenteditable"))}function getContentEditable(node){let element=function getElement(node){return 1===node.nodeType?node:node.parentElement}(node);return element&&(element.closest('[contenteditable=""]')||element.closest('[contenteditable="true"]'))}function isEditable(element){return isEditableInputOrTextArea(element)&&!element.readOnly||isContentEditable(element)}function isEditableInputOrTextArea(element){return isElementType(element,"textarea")||isElementType(element,"input")&&element.type in editableInputTypes}"function"==typeof g2.afterEach&&g2.afterEach((()=>function resetClipboardStubOnView(window2){isClipboardStub(window2.navigator.clipboard)&&window2.navigator.clipboard[ClipboardStubControl].resetClipboardStub()}(globalThis.window))),"function"==typeof g2.afterAll&&g2.afterAll((()=>function detachClipboardStubFromView(window2){isClipboardStub(window2.navigator.clipboard)&&window2.navigator.clipboard[ClipboardStubControl].detachClipboardStub()}(globalThis.window))),(editableInputTypes2=editableInputTypes||(editableInputTypes={})).text="text",editableInputTypes2.date="date",editableInputTypes2["datetime-local"]="datetime-local",editableInputTypes2.email="email",editableInputTypes2.month="month",editableInputTypes2.number="number",editableInputTypes2.password="password",editableInputTypes2.search="search",editableInputTypes2.tel="tel",editableInputTypes2.time="time",editableInputTypes2.url="url",editableInputTypes2.week="week",(maxLengthSupportedTypes2=maxLengthSupportedTypes||(maxLengthSupportedTypes={})).email="email",maxLengthSupportedTypes2.password="password",maxLengthSupportedTypes2.search="search",maxLengthSupportedTypes2.telephone="telephone",maxLengthSupportedTypes2.text="text",maxLengthSupportedTypes2.url="url";var bracketDict,bracketDict2,ApiLevel,ApiLevel2,PointerEventsCheckLevel,PointerEventsCheckLevel2,FOCUSABLE_SELECTOR=["input:not([type=hidden]):not([disabled])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable=""]','[contenteditable="true"]',"a[href]","[tabindex]:not([disabled])"].join(", ");function isFocusable(element){return element.matches(FOCUSABLE_SELECTOR)}function readNextDescriptor(text,context){let pos=0,startBracket=text[pos]in bracketDict?text[pos]:"";pos+=startBracket.length;let type5=new RegExp(`^\\${startBracket}{2}`).test(text)?"":startBracket;return{type:type5,...""===type5?readPrintableChar(text,pos,context):readTag(text,pos,type5,context)}}function readPrintableChar(text,pos,context){let descriptor=text[pos];return assertDescriptor(descriptor,text,pos,context),{consumedLength:pos+=descriptor.length,descriptor,releasePrevious:!1,releaseSelf:!0,repeat:1}}function readTag(text,pos,startBracket,context){var _text_slice_match,_text_slice_match1;let releasePreviousModifier="/"===text[pos]?"/":"";pos+=releasePreviousModifier.length;let escapedDescriptor="{"===startBracket&&"\\"===text[pos];pos+=Number(escapedDescriptor);let descriptor=escapedDescriptor?text[pos]:null===(_text_slice_match=text.slice(pos).match("{"===startBracket?/^\w+|^[^}>/]/:/^\w+/))||void 0===_text_slice_match?void 0:_text_slice_match[0];var _text_slice_match_;assertDescriptor(descriptor,text,pos,context),pos+=descriptor.length;let repeatModifier=null!==(_text_slice_match_=null===(_text_slice_match1=text.slice(pos).match(/^>\d+/))||void 0===_text_slice_match1?void 0:_text_slice_match1[0])&&void 0!==_text_slice_match_?_text_slice_match_:"",releaseSelfModifier="/"===text[pos+=repeatModifier.length]||!repeatModifier&&">"===text[pos]?text[pos]:"";pos+=releaseSelfModifier.length;let expectedEndBracket=bracketDict[startBracket],endBracket=text[pos]===expectedEndBracket?expectedEndBracket:"";if(!endBracket)throw new Error(getErrorMessage([!repeatModifier&&"repeat modifier",!releaseSelfModifier&&"release modifier",`"${expectedEndBracket}"`].filter(Boolean).join(" or "),text[pos],text,context));return{consumedLength:pos+=endBracket.length,descriptor,releasePrevious:!!releasePreviousModifier,repeat:repeatModifier?Math.max(Number(repeatModifier.substr(1)),1):1,releaseSelf:hasReleaseSelf(releaseSelfModifier,repeatModifier)}}function assertDescriptor(descriptor,text,pos,context){if(!descriptor)throw new Error(getErrorMessage("key descriptor",text[pos],text,context))}function hasReleaseSelf(releaseSelfModifier,repeatModifier){return releaseSelfModifier?"/"===releaseSelfModifier:!repeatModifier&&void 0}function getErrorMessage(expected,found,text,context){return`Expected ${expected} but found "${found??""}" in "${text}"\n See ${"pointer"===context?"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen":"https://testing-library.com/docs/user-event/keyboard"}\n for more information about how userEvent parses your input.`}function setLevelRef(instance,level){instance.levelRefs[level]={}}function getLevelRef(instance,level){return instance.levelRefs[level]}function isDisabled2(element){for(let el=element;el;el=el.parentElement)if(isElementType(el,["button","input","select","textarea","optgroup","option"])){if(el.hasAttribute("disabled"))return!0}else if(isElementType(el,"fieldset")){var _el_querySelector;if(el.hasAttribute("disabled")&&(null===(_el_querySelector=el.querySelector(":scope > legend"))||void 0===_el_querySelector||!_el_querySelector.contains(element)))return!0}else if(el.tagName.includes("-")&&el.constructor.formAssociated&&el.hasAttribute("disabled"))return!0;return!1}function getActiveElement(document2){let activeElement=document2.activeElement;return activeElement?.shadowRoot?getActiveElement(activeElement.shadowRoot):isDisabled2(activeElement)?document2.ownerDocument?document2.ownerDocument.body:document2.body:activeElement}function getActiveElementOrBody(document2){var _getActiveElement;return null!==(_getActiveElement=getActiveElement(document2))&&void 0!==_getActiveElement?_getActiveElement:document2.body}function hasOwnSelection(node){return isElement3(node)&&isEditableInputOrTextArea(node)}function isElement3(node){return 1===node.nodeType}function wrapEvent(cb,_element){return getConfig2().eventWrapper(cb)}function focusElement(element){let target=function findClosest(element,callback){let el=element;do{if(callback(el))return el;el=el.parentElement}while(el&&el!==element.ownerDocument.body)}(element,isFocusable),activeElement=getActiveElement(element.ownerDocument);(target??element.ownerDocument.body)!==activeElement&&(wrapEvent(target?()=>target.focus():()=>activeElement?.blur()),function updateSelectionOnFocus(element){let selection=element.ownerDocument.getSelection();if(selection?.focusNode&&hasOwnSelection(element)){let contenteditable=getContentEditable(selection.focusNode);if(contenteditable){if(!selection.isCollapsed){var _contenteditable_firstChild;let focusNode=3===(null===(_contenteditable_firstChild=contenteditable.firstChild)||void 0===_contenteditable_firstChild?void 0:_contenteditable_firstChild.nodeType)?contenteditable.firstChild:contenteditable;selection.setBaseAndExtent(focusNode,0,focusNode,0)}}else selection.setBaseAndExtent(element,0,element,0)}}(target??element.ownerDocument.body))}(bracketDict2=bracketDict||(bracketDict={}))["{"]="}",bracketDict2["["]="]",(ApiLevel2=ApiLevel||(ApiLevel={}))[ApiLevel2.Trigger=2]="Trigger",ApiLevel2[ApiLevel2.Call=1]="Call",(PointerEventsCheckLevel2=PointerEventsCheckLevel||(PointerEventsCheckLevel={}))[PointerEventsCheckLevel2.EachTrigger=4]="EachTrigger",PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachApiCall=2]="EachApiCall",PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachTarget=1]="EachTarget",PointerEventsCheckLevel2[PointerEventsCheckLevel2.Never=0]="Never";var behavior={};behavior.click=(event,target,instance)=>{let context=target.closest("button,input,label,select,textarea"),control=context&&isElementType(context,"label")&&context.control;return control?()=>{isFocusable(control)&&focusElement(control),instance.dispatchEvent(control,function cloneEvent(event){return new event.constructor(event.type,event)}(event))}:isElementType(target,"input",{type:"file"})?()=>{(function blurElement(element){!isFocusable(element)||getActiveElement(element.ownerDocument)!==element||wrapEvent((()=>element.blur()))})(target),target.dispatchEvent(new(getWindow(target).Event)("fileDialog")),focusElement(target)}:void 0};var UIValue=Symbol("Displayed value in UI"),UISelection=Symbol("Displayed selection in UI"),InitialValue=Symbol("Initial value to compare on blur");function getUIValue(element){return void 0===element[UIValue]?element.value:String(element[UIValue])}function setUIValueClean(element){element[UIValue]=void 0}function clearInitialValue(element){element[InitialValue]=void 0}function setUISelection(element,{focusOffset:focusOffsetParam,anchorOffset:anchorOffsetParam=focusOffsetParam},mode="replace"){let valueLength=getUIValue(element).length,sanitizeOffset=o=>Math.max(0,Math.min(valueLength,o)),anchorOffset="replace"===mode||void 0===element[UISelection]?sanitizeOffset(anchorOffsetParam):element[UISelection].anchorOffset,focusOffset=sanitizeOffset(focusOffsetParam),startOffset=Math.min(anchorOffset,focusOffset),endOffset=Math.max(anchorOffset,focusOffset);if(element[UISelection]={anchorOffset,focusOffset},element.selectionStart===startOffset&&element.selectionEnd===endOffset)return;let startObj=Object.assign(new Number(startOffset),{[UISelection]:!0});try{element.setSelectionRange(startObj,endOffset)}catch{}}function getUISelection(element){var _element_selectionStart,_element_selectionEnd,_element_UISelection;let sel=null!==(_element_UISelection=element[UISelection])&&void 0!==_element_UISelection?_element_UISelection:{anchorOffset:null!==(_element_selectionStart=element.selectionStart)&&void 0!==_element_selectionStart?_element_selectionStart:0,focusOffset:null!==(_element_selectionEnd=element.selectionEnd)&&void 0!==_element_selectionEnd?_element_selectionEnd:0};return{...sel,startOffset:Math.min(sel.anchorOffset,sel.focusOffset),endOffset:Math.max(sel.anchorOffset,sel.focusOffset)}}function setUISelectionClean(element){element[UISelection]=void 0}var parseInt2=globalThis.parseInt;function build2(onlyDigitsValue,index){let hours=onlyDigitsValue.slice(0,index),validHours=Math.min(parseInt2(hours,10),23),minuteCharacters=onlyDigitsValue.slice(index),parsedMinutes=parseInt2(minuteCharacters,10),validMinutes=Math.min(parsedMinutes,59);return`${validHours.toString().padStart(2,"0")}:${validMinutes.toString().padStart(2,"0")}`}function isValidDateOrTimeValue(element,value){let clone2=element.cloneNode();return clone2.value=value,clone2.value===value}function getNextCursorPosition(node,offset,direction,inputType){if(isTextNode(node)&&offset+direction>=0&&offset+direction<=node.nodeValue.length)return{node,offset:offset+direction};let nextNode=getNextCharacterContentNode(node,offset,direction);if(nextNode){if(isTextNode(nextNode))return{node:nextNode,offset:direction>0?Math.min(1,nextNode.nodeValue.length):Math.max(nextNode.nodeValue.length-1,0)};if(isElementType(nextNode,"br")){let nextPlusOne=getNextCharacterContentNode(nextNode,void 0,direction);return nextPlusOne?isTextNode(nextPlusOne)?{node:nextPlusOne,offset:direction>0?0:nextPlusOne.nodeValue.length}:direction<0&&isElementType(nextPlusOne,"br")?{node:nextNode.parentNode,offset:getOffset(nextNode)}:{node:nextPlusOne.parentNode,offset:getOffset(nextPlusOne)+(direction>0?0:1)}:direction<0&&"deleteContentBackward"===inputType?{node:nextNode.parentNode,offset:getOffset(nextNode)}:void 0}return{node:nextNode.parentNode,offset:getOffset(nextNode)+(direction>0?1:0)}}}function getNextCharacterContentNode(node,offset,direction){let nextOffset=Number(offset)+(direction<0?-1:0);return void 0!==offset&&isElement4(node)&&nextOffset>=0&&nextOffsetk2.startsWith("__react")))&&17===getWindow(element).REACT_VERSION})(element)&&(element[TrackChanges]={previousValue:String(element.value),tracked:[]})}function commitValueAfterInput(element,cursorOffset){var _changes_tracked;let changes=element[TrackChanges];if(element[TrackChanges]=void 0,null==changes||null===(_changes_tracked=changes.tracked)||void 0===_changes_tracked||!_changes_tracked.length)return;let isJustReactStateUpdate=2===changes.tracked.length&&changes.tracked[0]===changes.previousValue&&changes.tracked[1]===element.value;isJustReactStateUpdate||setUIValueClean(element),function hasUISelection(element){return!!element[UISelection]}(element)&&setUISelection(element,{focusOffset:isJustReactStateUpdate?cursorOffset:element.value.length})}function getTargetTypeAndSelection(node){let element=function getElement2(node){return 1===node.nodeType?node:node.parentElement}(node);if(element&&hasOwnSelection(element))return{type:"input",selection:getUISelection(element)};let selection=element?.ownerDocument.getSelection();return{type:getContentEditable(node)&&selection?.anchorNode&&getContentEditable(selection.anchorNode)?"contenteditable":"default",selection}}function setSelection({focusNode,focusOffset,anchorNode=focusNode,anchorOffset=focusOffset}){var _anchorNode_ownerDocument_getSelection,_anchorNode_ownerDocument;if("input"===getTargetTypeAndSelection(focusNode).type)return setUISelection(focusNode,{anchorOffset,focusOffset});null===(_anchorNode_ownerDocument=anchorNode.ownerDocument)||void 0===_anchorNode_ownerDocument||null===(_anchorNode_ownerDocument_getSelection=_anchorNode_ownerDocument.getSelection())||void 0===_anchorNode_ownerDocument_getSelection||_anchorNode_ownerDocument_getSelection.setBaseAndExtent(anchorNode,anchorOffset,focusNode,focusOffset)}function isDateOrTime(element){return isElementType(element,"input")&&["date","time"].includes(element.type)}function input(instance,element,data,inputType="insertText"){let inputRange=function getInputRange(focusNode){let typeAndSelection=getTargetTypeAndSelection(focusNode);return"input"===typeAndSelection.type?typeAndSelection.selection:"contenteditable"===typeAndSelection.type?null===(_typeAndSelection_selection=typeAndSelection.selection)||void 0===_typeAndSelection_selection?void 0:_typeAndSelection_selection.getRangeAt(0):void 0;var _typeAndSelection_selection}(element);inputRange&&(!isDateOrTime(element)&&!instance.dispatchUIEvent(element,"beforeinput",{inputType,data})||("startContainer"in inputRange?function editContenteditable(instance,element,inputRange,data,inputType){let del=!1;if(inputRange.collapsed){if(["deleteContentBackward","deleteContentForward"].includes(inputType)){let nextPosition=getNextCursorPosition(inputRange.startContainer,inputRange.startOffset,"deleteContentBackward"===inputType?-1:1,inputType);if(nextPosition){del=!0;let delRange=inputRange.cloneRange();delRange.comparePoint(nextPosition.node,nextPosition.offset)<0?delRange.setStart(nextPosition.node,nextPosition.offset):delRange.setEnd(nextPosition.node,nextPosition.offset),delRange.deleteContents()}}}else del=!0,inputRange.deleteContents();if(data)if(3===inputRange.endContainer.nodeType){let offset=inputRange.endOffset;inputRange.endContainer.insertData(offset,data),inputRange.setStart(inputRange.endContainer,offset+data.length),inputRange.setEnd(inputRange.endContainer,offset+data.length)}else{let text=element.ownerDocument.createTextNode(data);inputRange.insertNode(text),inputRange.setStart(text,data.length),inputRange.setEnd(text,data.length)}(del||data)&&instance.dispatchUIEvent(element,"input",{inputType})}(instance,element,inputRange,data,inputType):function editInputElement(instance,element,inputRange,data,inputType){let dataToInsert=data;if(function supportsMaxLength(element){return isElementType(element,"textarea")||isElementType(element,"input")&&element.type in maxLengthSupportedTypes}(element)){let maxLength=function getMaxLength(element){var _element_getAttribute;let attr=null!==(_element_getAttribute=element.getAttribute("maxlength"))&&void 0!==_element_getAttribute?_element_getAttribute:"";return/^\d+$/.test(attr)&&Number(attr)>=0?Number(attr):void 0}(element);if(void 0!==maxLength&&data.length>0){let spaceUntilMaxLength=maxLength-element.value.length;if(!(spaceUntilMaxLength>0))return;dataToInsert=data.substring(0,spaceUntilMaxLength)}}let{newValue,newOffset,oldValue}=function calculateNewValue(inputData,node,{startOffset,endOffset},inputType){let value=getUIValue(node),prologEnd=Math.max(0,startOffset===endOffset&&"deleteContentBackward"===inputType?startOffset-1:startOffset),prolog=value.substring(0,prologEnd),epilogStart=Math.min(value.length,startOffset===endOffset&&"deleteContentForward"===inputType?startOffset+1:endOffset),epilog=value.substring(epilogStart,value.length),newValue=`${prolog}${inputData}${epilog}`,newOffset=prologEnd+inputData.length;if(isElementType(node,"input",{type:"time"})){let builtValue=function buildTimeValue(value){let onlyDigitsValue=value.replace(/\D/g,"");if(onlyDigitsValue.length<2)return value;let firstDigit=parseInt2(onlyDigitsValue[0],10),secondDigit=parseInt2(onlyDigitsValue[1],10);if(firstDigit>=3||2===firstDigit&&secondDigit>=4){let index;return index=firstDigit>=3?1:2,build2(onlyDigitsValue,index)}return 2===value.length?value:build2(onlyDigitsValue,2)}(newValue);""!==builtValue&&isValidDateOrTimeValue(node,builtValue)&&(newValue=builtValue,newOffset=builtValue.length)}return{oldValue:value,newValue,newOffset}}(dataToInsert,element,inputRange,inputType);newValue===oldValue&&newOffset===inputRange.startOffset&&newOffset===inputRange.endOffset||isElementType(element,"input",{type:"number"})&&!function isValidNumberInput(value){var _value_match,_value_match1;let valueParts=value.split("e",2);return!(/[^\d.\-e]/.test(value)||Number(null===(_value_match=value.match(/-/g))||void 0===_value_match?void 0:_value_match.length)>2||Number(null===(_value_match1=value.match(/\./g))||void 0===_value_match1?void 0:_value_match1.length)>1||valueParts[1]&&!/^-?\d*$/.test(valueParts[1]))}(newValue)||(function setUIValue(element,value){void 0===element[InitialValue]&&(element[InitialValue]=element.value),element[UIValue]=value,element.value=Object.assign(new String(value),{[UIValue]:!0})}(element,newValue),setSelection({focusNode:element,anchorOffset:newOffset,focusOffset:newOffset}),isDateOrTime(element)?isValidDateOrTimeValue(element,newValue)&&(commitInput(instance,element,newOffset,{}),instance.dispatchUIEvent(element,"change"),clearInitialValue(element)):commitInput(instance,element,newOffset,{data,inputType}))}(instance,element,inputRange,data,inputType)))}function commitInput(instance,element,newOffset,inputInit){instance.dispatchUIEvent(element,"input",inputInit),commitValueAfterInput(element,newOffset)}function isVisible(element){let window2=getWindow(element);for(let el=element;el?.ownerDocument;el=el.parentElement){let{display:display2,visibility}=window2.getComputedStyle(el);if("none"===display2||"hidden"===visibility)return!1}return!0}function moveSelection(node,direction){if(hasOwnSelection(node)){let selection=getUISelection(node);setSelection({focusNode:node,focusOffset:selection.startOffset===selection.endOffset?selection.focusOffset+direction:direction<0?selection.startOffset:selection.endOffset})}else{let selection=node.ownerDocument.getSelection();if(!selection?.focusNode)return;if(selection.isCollapsed){let nextPosition=getNextCursorPosition(selection.focusNode,selection.focusOffset,direction);nextPosition&&setSelection({focusNode:nextPosition.node,focusOffset:nextPosition.offset})}else selection[direction<0?"collapseToStart":"collapseToEnd"]()}}function selectAll(target){if(hasOwnSelection(target))return setSelection({focusNode:target,anchorOffset:0,focusOffset:getUIValue(target).length});var _getContentEditable;let focusNode=null!==(_getContentEditable=getContentEditable(target))&&void 0!==_getContentEditable?_getContentEditable:target.ownerDocument.body;setSelection({focusNode,anchorOffset:0,focusOffset:focusNode.childNodes.length})}function setSelectionRange(element,anchorOffset,focusOffset){var _element_firstChild;if(hasOwnSelection(element))return setSelection({focusNode:element,anchorOffset,focusOffset});if(isContentEditable(element)&&3===(null===(_element_firstChild=element.firstChild)||void 0===_element_firstChild?void 0:_element_firstChild.nodeType))return setSelection({focusNode:element.firstChild,anchorOffset,focusOffset});throw new Error("Not implemented. The result of this interaction is unreliable.")}function walkRadio(instance,el,direction){let window2=getWindow(el),group=Array.from(el.ownerDocument.querySelectorAll(el.name?`input[type="radio"][name="${window2.CSS.escape(el.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let i=group.findIndex((e=>e===el))+direction;;i+=direction){if(group[i]||(i=direction>0?0:group.length-1),group[i]===el)return;isDisabled2(group[i])||(focusElement(group[i]),instance.dispatchUIEvent(group[i],"click"))}}behavior.cut=(event,target,instance)=>()=>{isEditable(target)&&input(instance,target,"","deleteByCut")},behavior.keydown=(event,target,instance)=>{var _keydownBehavior_event_key,_keydownBehavior_event_key1;return null!==(_keydownBehavior_event_key1=null===(_keydownBehavior_event_key=keydownBehavior[event.key])||void 0===_keydownBehavior_event_key?void 0:_keydownBehavior_event_key.call(keydownBehavior,event,target,instance))&&void 0!==_keydownBehavior_event_key1?_keydownBehavior_event_key1:combinationBehavior(event,target,instance)};var keydownBehavior={ArrowDown:(event,target,instance)=>{if(isElementType(target,"input",{type:"radio"}))return()=>walkRadio(instance,target,-1)},ArrowLeft:(event,target,instance)=>isElementType(target,"input",{type:"radio"})?()=>walkRadio(instance,target,-1):()=>moveSelection(target,-1),ArrowRight:(event,target,instance)=>isElementType(target,"input",{type:"radio"})?()=>walkRadio(instance,target,1):()=>moveSelection(target,1),ArrowUp:(event,target,instance)=>{if(isElementType(target,"input",{type:"radio"}))return()=>walkRadio(instance,target,1)},Backspace:(event,target,instance)=>{if(isEditable(target))return()=>{input(instance,target,"","deleteContentBackward")}},Delete:(event,target,instance)=>{if(isEditable(target))return()=>{input(instance,target,"","deleteContentForward")}},End:(event,target)=>{if(isElementType(target,["input","textarea"])||isContentEditable(target))return()=>{var _getValueOrTextContent,_getValueOrTextContent_length;let newPos=null!==(_getValueOrTextContent_length=null===(_getValueOrTextContent=function getValueOrTextContent(element){return element?isContentEditable(element)?element.textContent:getUIValue(element):null}(target))||void 0===_getValueOrTextContent?void 0:_getValueOrTextContent.length)&&void 0!==_getValueOrTextContent_length?_getValueOrTextContent_length:0;setSelectionRange(target,newPos,newPos)}},Home:(event,target)=>{if(isElementType(target,["input","textarea"])||isContentEditable(target))return()=>{setSelectionRange(target,0,0)}},PageDown:(event,target)=>{if(isElementType(target,["input"]))return()=>{let newPos=getUIValue(target).length;setSelectionRange(target,newPos,newPos)}},PageUp:(event,target)=>{if(isElementType(target,["input"]))return()=>{setSelectionRange(target,0,0)}},Tab:(event,target,instance)=>()=>{let dest=function getTabDestination(activeElement,shift){let document2=activeElement.ownerDocument,focusableElements=document2.querySelectorAll(FOCUSABLE_SELECTOR),enabledElements=Array.from(focusableElements).filter((el=>el===activeElement||!(Number(el.getAttribute("tabindex"))<0||isDisabled2(el))));Number(activeElement.getAttribute("tabindex"))>=0&&enabledElements.sort(((a2,b)=>{let i=Number(a2.getAttribute("tabindex")),j=Number(b.getAttribute("tabindex"));return i===j?0:0===i?1:0===j?-1:i-j}));let checkedRadio={},prunedElements=[document2.body],activeRadioGroup=isElementType(activeElement,"input",{type:"radio"})?activeElement.name:void 0;enabledElements.forEach((currentElement=>{let el=currentElement;if(isElementType(el,"input",{type:"radio"})&&el.name){if(el===activeElement)return void prunedElements.push(el);if(el.name===activeRadioGroup)return;if(el.checked)return prunedElements=prunedElements.filter((e=>!isElementType(e,"input",{type:"radio",name:el.name}))),prunedElements.push(el),void(checkedRadio[el.name]=el);if(typeof checkedRadio[el.name]<"u")return}prunedElements.push(el)}));for(let index=prunedElements.findIndex((el=>el===activeElement));;)if(index+=shift?-1:1,index===prunedElements.length?index=0:-1===index&&(index=prunedElements.length-1),prunedElements[index]===activeElement||prunedElements[index]===document2.body||isVisible(prunedElements[index]))return prunedElements[index]}(target,instance.system.keyboard.modifiers.Shift);focusElement(dest),hasOwnSelection(dest)&&setUISelection(dest,{anchorOffset:0,focusOffset:dest.value.length})}},combinationBehavior=(event,target,instance)=>{if("KeyA"===event.code&&instance.system.keyboard.modifiers.Control)return()=>selectAll(target)};behavior.keypress=(event,target,instance)=>{if("Enter"===event.key){if(isElementType(target,"button")||isElementType(target,"input")&&ClickInputOnEnter.includes(target.type)||isElementType(target,"a")&&target.href)return()=>{instance.dispatchUIEvent(target,"click")};if(isElementType(target,"input")){let form=target.form,submit=form?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return submit?()=>instance.dispatchUIEvent(submit,"click"):form&&SubmitSingleInputOnEnter.includes(target.type)&&1===form.querySelectorAll("input").length?()=>instance.dispatchUIEvent(form,"submit"):void 0}}if(isEditable(target)){let inputType="Enter"===event.key?isContentEditable(target)&&!instance.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",inputData="Enter"===event.key?"\n":event.key;return()=>input(instance,target,inputData,inputType)}};var ClickInputOnEnter=["button","color","file","image","reset","submit"],SubmitSingleInputOnEnter=["email","month","password","search","tel","text","url","week"];behavior.keyup=(event,target,instance)=>{var _keyupBehavior_event_key;return null===(_keyupBehavior_event_key=keyupBehavior[event.key])||void 0===_keyupBehavior_event_key?void 0:_keyupBehavior_event_key.call(keyupBehavior,event,target,instance)};var keyupBehavior={" ":(event,target,instance)=>{if(isClickableInput(target))return()=>instance.dispatchUIEvent(target,"click")}};behavior.paste=(event,target,instance)=>{if(isEditable(target))return()=>{var _event_clipboardData;let insertData=null===(_event_clipboardData=event.clipboardData)||void 0===_event_clipboardData?void 0:_event_clipboardData.getData("text");insertData&&input(instance,target,insertData,"insertFromPaste")}};var eventMap2={auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},click:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblclick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keydown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keypress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyup:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},mousedown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseenter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseleave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mousemove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseout:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseover:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseup:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerover:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerenter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerdown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointermove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerup:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointercancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerout:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerleave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}}};function getEventClass(type5){return eventMap2[type5].EventType}var mouseEvents=["MouseEvent","PointerEvent"];var eventInitializer={ClipboardEvent:[function initClipboardEvent(event,{clipboardData}){assignProps(event,{clipboardData})}],Event:[],InputEvent:[initUIEvent,function initInputEvent(event,{data,inputType,isComposing}){assignProps(event,{data,isComposing:!!isComposing,inputType:String(inputType)})}],MouseEvent:[initUIEvent,initUIEventModififiers,initMouseEvent],PointerEvent:[initUIEvent,initUIEventModififiers,initMouseEvent,function initPointerEvent(event,{pointerId,width,height,pressure,tangentialPressure,tiltX,tiltY,twist,pointerType,isPrimary}){assignProps(event,{pointerId:sanitizeNumber(pointerId),width:sanitizeNumber(width),height:sanitizeNumber(height),pressure:sanitizeNumber(pressure),tangentialPressure:sanitizeNumber(tangentialPressure),tiltX:sanitizeNumber(tiltX),tiltY:sanitizeNumber(tiltY),twist:sanitizeNumber(twist),pointerType:String(pointerType),isPrimary:!!isPrimary})}],KeyboardEvent:[initUIEvent,initUIEventModififiers,function initKeyboardEvent(event,{key,code,location,repeat,isComposing,charCode}){assignProps(event,{key:String(key),code:String(code),location:sanitizeNumber(location),repeat:!!repeat,isComposing:!!isComposing,charCode})}]};function createEvent2(type5,target,init){let window2=getWindow(target),{EventType,defaultInit}=eventMap2[type5],event=new(function getEventConstructors(window2){var _window_Event;let Event=null!==(_window_Event=window2.Event)&&void 0!==_window_Event?_window_Event:class{};var _window_AnimationEvent;let AnimationEvent=null!==(_window_AnimationEvent=window2.AnimationEvent)&&void 0!==_window_AnimationEvent?_window_AnimationEvent:class extends Event{};var _window_ClipboardEvent;let ClipboardEvent=null!==(_window_ClipboardEvent=window2.ClipboardEvent)&&void 0!==_window_ClipboardEvent?_window_ClipboardEvent:class extends Event{};var _window_PopStateEvent;let PopStateEvent=null!==(_window_PopStateEvent=window2.PopStateEvent)&&void 0!==_window_PopStateEvent?_window_PopStateEvent:class extends Event{};var _window_ProgressEvent;let ProgressEvent=null!==(_window_ProgressEvent=window2.ProgressEvent)&&void 0!==_window_ProgressEvent?_window_ProgressEvent:class extends Event{};var _window_TransitionEvent;let TransitionEvent=null!==(_window_TransitionEvent=window2.TransitionEvent)&&void 0!==_window_TransitionEvent?_window_TransitionEvent:class extends Event{};var _window_UIEvent;let UIEvent=null!==(_window_UIEvent=window2.UIEvent)&&void 0!==_window_UIEvent?_window_UIEvent:class extends Event{};var _window_CompositionEvent;let CompositionEvent=null!==(_window_CompositionEvent=window2.CompositionEvent)&&void 0!==_window_CompositionEvent?_window_CompositionEvent:class extends UIEvent{};var _window_FocusEvent;let FocusEvent=null!==(_window_FocusEvent=window2.FocusEvent)&&void 0!==_window_FocusEvent?_window_FocusEvent:class extends UIEvent{};var _window_InputEvent;let InputEvent=null!==(_window_InputEvent=window2.InputEvent)&&void 0!==_window_InputEvent?_window_InputEvent:class extends UIEvent{};var _window_KeyboardEvent;let KeyboardEvent=null!==(_window_KeyboardEvent=window2.KeyboardEvent)&&void 0!==_window_KeyboardEvent?_window_KeyboardEvent:class extends UIEvent{};var _window_MouseEvent;let MouseEvent=null!==(_window_MouseEvent=window2.MouseEvent)&&void 0!==_window_MouseEvent?_window_MouseEvent:class extends UIEvent{};var _window_DragEvent;let DragEvent=null!==(_window_DragEvent=window2.DragEvent)&&void 0!==_window_DragEvent?_window_DragEvent:class extends MouseEvent{};var _window_PointerEvent;let PointerEvent=null!==(_window_PointerEvent=window2.PointerEvent)&&void 0!==_window_PointerEvent?_window_PointerEvent:class extends MouseEvent{};var _window_TouchEvent;let TouchEvent=null!==(_window_TouchEvent=window2.TouchEvent)&&void 0!==_window_TouchEvent?_window_TouchEvent:class extends UIEvent{};return{Event,AnimationEvent,ClipboardEvent,PopStateEvent,ProgressEvent,TransitionEvent,UIEvent,CompositionEvent,FocusEvent,InputEvent,KeyboardEvent,MouseEvent,DragEvent,PointerEvent,TouchEvent}}(window2)[EventType])(type5,defaultInit);return eventInitializer[EventType].forEach((f4=>f4(event,init??{}))),event}function assignProps(obj,props){for(let[key,value]of Object.entries(props))Object.defineProperty(obj,key,{get:()=>value??null})}function sanitizeNumber(n){return Number(n??0)}function initUIEvent(event,{view,detail}){assignProps(event,{view,detail:sanitizeNumber(detail??0)})}function initUIEventModififiers(event,{altKey,ctrlKey,metaKey,shiftKey,modifierAltGraph,modifierCapsLock,modifierFn,modifierFnLock,modifierNumLock,modifierScrollLock,modifierSymbol,modifierSymbolLock}){assignProps(event,{altKey:!!altKey,ctrlKey:!!ctrlKey,metaKey:!!metaKey,shiftKey:!!shiftKey,getModifierState:k2=>!!{Alt:altKey,AltGraph:modifierAltGraph,CapsLock:modifierCapsLock,Control:ctrlKey,Fn:modifierFn,FnLock:modifierFnLock,Meta:metaKey,NumLock:modifierNumLock,ScrollLock:modifierScrollLock,Shift:shiftKey,Symbol:modifierSymbol,SymbolLock:modifierSymbolLock}[k2]})}function initMouseEvent(event,{x:x2,y:y2,screenX,screenY,clientX=x2,clientY=y2,button,buttons,relatedTarget}){assignProps(event,{screenX:sanitizeNumber(screenX),screenY:sanitizeNumber(screenY),clientX:sanitizeNumber(clientX),x:sanitizeNumber(clientX),clientY:sanitizeNumber(clientY),y:sanitizeNumber(clientY),button:sanitizeNumber(button),buttons:sanitizeNumber(buttons),relatedTarget})}function dispatchUIEvent(target,type5,init,preventDefault=!1){(function isMouseEvent(type5){return mouseEvents.includes(getEventClass(type5))}(type5)||function isKeyboardEvent(type5){return"KeyboardEvent"===getEventClass(type5)}(type5))&&(init={...init,...this.system.getUIEventModifiers()});let event=createEvent2(type5,target,init);return dispatchEvent.call(this,target,event,preventDefault)}function dispatchEvent(target,event,preventDefault=!1){var _behavior_type;let type5=event.type,behaviorImplementation=preventDefault?()=>{}:null===(_behavior_type=behavior[type5])||void 0===_behavior_type?void 0:_behavior_type.call(behavior,event,target,this);if(behaviorImplementation){event.preventDefault();let defaultPrevented=!1;return Object.defineProperty(event,"defaultPrevented",{get:()=>defaultPrevented}),Object.defineProperty(event,"preventDefault",{value:()=>{defaultPrevented=event.cancelable}}),wrapEvent((()=>target.dispatchEvent(event))),defaultPrevented||behaviorImplementation(),!defaultPrevented}return wrapEvent((()=>target.dispatchEvent(event)))}var Interceptor=Symbol("Interceptor for programmatical calls");function prepareInterceptor(element,propName,interceptorImpl){let prototypeDescriptor=Object.getOwnPropertyDescriptor(element.constructor.prototype,propName),objectDescriptor=Object.getOwnPropertyDescriptor(element,propName),target=prototypeDescriptor?.set?"set":"value";if("function"!=typeof prototypeDescriptor?.[target]||prototypeDescriptor[target][Interceptor])throw new Error(`Element ${element.tagName} does not implement "${String(propName)}".`);function intercept(...args){let{applyNative=!1,realArgs,then}=interceptorImpl.call(this,...args),realFunc=(!applyNative&&objectDescriptor||prototypeDescriptor)[target];"set"===target?realFunc.call(this,realArgs):realFunc.call(this,...realArgs),then?.()}intercept[Interceptor]=Interceptor,Object.defineProperty(element,propName,{...objectDescriptor??prototypeDescriptor,[target]:intercept})}function prepareValueInterceptor(element){prepareInterceptor(element,"value",(function(v){let isUI=function isUIValue(value){return"object"==typeof value&&UIValue in value}(v);return isUI&&startTrackValue(this),{applyNative:!!isUI,realArgs:sanitizeValue(this,v),then:isUI?void 0:()=>function trackOrSetValue(element,v){var _element_TrackChanges_tracked,_element_TrackChanges;null===(_element_TrackChanges=element[TrackChanges])||void 0===_element_TrackChanges||null===(_element_TrackChanges_tracked=_element_TrackChanges.tracked)||void 0===_element_TrackChanges_tracked||_element_TrackChanges_tracked.push(v),element[TrackChanges]||(setUIValueClean(element),setUISelection(element,{focusOffset:v.length}))}(this,String(v))}}))}function sanitizeValue(element,v){return isElementType(element,"input",{type:"number"})&&""!==String(v)&&!Number.isNaN(Number(v))?String(Number(v)):String(v)}function prepareSelectionInterceptor(element){prepareInterceptor(element,"setSelectionRange",(function(start,...others){let isUI=function isUISelectionStart(start){return!!start&&"object"==typeof start&&UISelection in start}(start);return{applyNative:!!isUI,realArgs:[Number(start),...others],then:()=>isUI?void 0:setUISelectionClean(element)}})),prepareInterceptor(element,"selectionStart",(function(v){return{realArgs:v,then:()=>setUISelectionClean(element)}})),prepareInterceptor(element,"selectionEnd",(function(v){return{realArgs:v,then:()=>setUISelectionClean(element)}})),prepareInterceptor(element,"select",(function(){return{realArgs:[],then:()=>function setUISelectionRaw(element,selection){element[UISelection]=selection}(element,{anchorOffset:0,focusOffset:getUIValue(element).length})}}))}var DOM_KEY_LOCATION,DOM_KEY_LOCATION2,isPrepared=Symbol("Node prepared with document state workarounds");function prepareDocument(document2){document2[isPrepared]||(document2.addEventListener("focus",(e=>{prepareElement(e.target)}),{capture:!0,passive:!0}),document2.activeElement&&prepareElement(document2.activeElement),document2.addEventListener("blur",(e=>{let el=e.target,initialValue2=function getInitialValue(element){return element[InitialValue]}(el);void 0!==initialValue2&&(el.value!==initialValue2&&function dispatchDOMEvent(target,type5,init){let event=createEvent2(type5,target,init);wrapEvent((()=>target.dispatchEvent(event)))}(el,"change"),clearInitialValue(el))}),{capture:!0,passive:!0}),document2[isPrepared]=isPrepared)}function prepareElement(el){el[isPrepared]||(isElementType(el,["input","textarea"])&&(prepareValueInterceptor(el),prepareSelectionInterceptor(el),function prepareRangeTextInterceptor(element){prepareInterceptor(element,"setRangeText",(function(...realArgs){return{realArgs,then:()=>{setUIValueClean(element),setUISelectionClean(element)}}}))}(el)),el[isPrepared]=isPrepared)}function wait(config3){let delay=config3.delay;if("number"==typeof delay)return Promise.all([new Promise((resolve=>globalThis.setTimeout((()=>resolve()),delay))),config3.advanceTimers(delay)])}function _define_property3(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}(DOM_KEY_LOCATION2=DOM_KEY_LOCATION||(DOM_KEY_LOCATION={}))[DOM_KEY_LOCATION2.STANDARD=0]="STANDARD",DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.LEFT=1]="LEFT",DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.RIGHT=2]="RIGHT",DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.NUMPAD=3]="NUMPAD";var modifierKeys=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function isModifierKey(key){return modifierKeys.includes(key)}var modifierLocks=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function isModifierLock(key){return modifierLocks.includes(key)}var KeyboardHost=class{isKeyPressed(keyDef){return!!this.pressed[String(keyDef.code)]}getPressedKeys(){return Object.values(this.pressed).map((p3=>p3.keyDef))}async keydown(instance,keyDef){var _this_pressed,_code,_this_pressed_code;let key=String(keyDef.key),code=String(keyDef.code),target=getActiveElementOrBody(instance.config.document);var _;this.setKeydownTarget(target),null!==(_=(_this_pressed=this.pressed)[_code=code])&&void 0!==_||(_this_pressed[_code]={keyDef,unpreventedDefault:!1}),isModifierKey(key)&&(this.modifiers[key]=!0);let unprevented=instance.dispatchUIEvent(target,"keydown",{key,code});isModifierLock(key)&&!this.modifiers[key]&&(this.modifiers[key]=!0,this.modifierLockStart[key]=!0),(_this_pressed_code=this.pressed[code]).unpreventedDefault||(_this_pressed_code.unpreventedDefault=unprevented),unprevented&&this.hasKeyPress(key)&&instance.dispatchUIEvent(getActiveElementOrBody(instance.config.document),"keypress",{key,code,charCode:"Enter"===keyDef.key?13:String(keyDef.key).charCodeAt(0)})}async keyup(instance,keyDef){let key=String(keyDef.key),code=String(keyDef.code),unprevented=this.pressed[code].unpreventedDefault;delete this.pressed[code],isModifierKey(key)&&!Object.values(this.pressed).find((p3=>p3.keyDef.key===key))&&(this.modifiers[key]=!1),instance.dispatchUIEvent(getActiveElementOrBody(instance.config.document),"keyup",{key,code},!unprevented),isModifierLock(key)&&this.modifiers[key]&&(this.modifierLockStart[key]?this.modifierLockStart[key]=!1:this.modifiers[key]=!1)}setKeydownTarget(target){target!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=target}hasKeyPress(key){return!(1!==key.length&&"Enter"!==key||this.modifiers.Control||this.modifiers.Alt)}constructor(system){_define_property3(this,"system",void 0),_define_property3(this,"modifiers",{Alt:!1,AltGraph:!1,CapsLock:!1,Control:!1,Fn:!1,FnLock:!1,Meta:!1,NumLock:!1,ScrollLock:!1,Shift:!1,Symbol:!1,SymbolLock:!1}),_define_property3(this,"pressed",{}),_define_property3(this,"carryChar",""),_define_property3(this,"lastKeydownTarget",void 0),_define_property3(this,"modifierLockStart",{}),this.system=system}},defaultKeyMap=[..."0123456789".split("").map((c=>({code:`Digit${c}`,key:c}))),...")!@#$%^&*(".split("").map(((c,i)=>({code:`Digit${i}`,key:c,shiftKey:!0}))),..."abcdefghijklmnopqrstuvwxyz".split("").map((c=>({code:`Key${c.toUpperCase()}`,key:c}))),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map((c=>({code:`Key${c}`,key:c,shiftKey:!0}))),{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:DOM_KEY_LOCATION.LEFT},{code:"AltRight",key:"Alt",location:DOM_KEY_LOCATION.RIGHT},{code:"ShiftLeft",key:"Shift",location:DOM_KEY_LOCATION.LEFT},{code:"ShiftRight",key:"Shift",location:DOM_KEY_LOCATION.RIGHT},{code:"ControlLeft",key:"Control",location:DOM_KEY_LOCATION.LEFT},{code:"ControlRight",key:"Control",location:DOM_KEY_LOCATION.RIGHT},{code:"MetaLeft",key:"Meta",location:DOM_KEY_LOCATION.LEFT},{code:"MetaRight",key:"Meta",location:DOM_KEY_LOCATION.RIGHT},{code:"OSLeft",key:"OS",location:DOM_KEY_LOCATION.LEFT},{code:"OSRight",key:"OS",location:DOM_KEY_LOCATION.RIGHT},{code:"Tab",key:"Tab"},{code:"CapsLock",key:"CapsLock"},{code:"Backspace",key:"Backspace"},{code:"Enter",key:"Enter"},{code:"Escape",key:"Escape"},{code:"ArrowUp",key:"ArrowUp"},{code:"ArrowDown",key:"ArrowDown"},{code:"ArrowLeft",key:"ArrowLeft"},{code:"ArrowRight",key:"ArrowRight"},{code:"Home",key:"Home"},{code:"End",key:"End"},{code:"Delete",key:"Delete"},{code:"PageUp",key:"PageUp"},{code:"PageDown",key:"PageDown"},{code:"Fn",key:"Fn"},{code:"Symbol",key:"Symbol"},{code:"AltRight",key:"AltGraph"}];var Buttons=class{getButtons(){let v=0;for(let button of Object.keys(this.pressed))v|=2**Number(button);return v}down(keyDef){let button=getMouseButtonId(keyDef.button);if(!(button in this.pressed))return this.pressed[button]=[keyDef],button;this.pressed[button].push(keyDef)}up(keyDef){let button=getMouseButtonId(keyDef.button);if(button in this.pressed&&(this.pressed[button]=this.pressed[button].filter((k2=>k2.name!==keyDef.name)),0===this.pressed[button].length))return delete this.pressed[button],button}constructor(){!function _define_property4(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}(this,"pressed",{})}},MouseButton={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function getMouseButtonId(button=0){return button in MouseButton?MouseButton[button]:Number(button)}var MouseButtonFlip={1:2,2:1};function getMouseEventButton(button){return(button=getMouseButtonId(button))in MouseButtonFlip?MouseButtonFlip[button]:button}var Device=class{get countPressed(){return this.pressedKeys.size}isPressed(keyDef){return this.pressedKeys.has(keyDef.name)}addPressed(keyDef){return this.pressedKeys.add(keyDef.name)}removePressed(keyDef){return this.pressedKeys.delete(keyDef.name)}constructor(){!function _define_property5(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}(this,"pressedKeys",new Set)}};function getTreeDiff(a2,b){let treeA=[];for(let el=a2;el;el=el.parentElement)treeA.push(el);let treeB=[];for(let el=b;el;el=el.parentElement)treeB.push(el);let i=0;for(;!(i>=treeA.length||i>=treeB.length||treeA[treeA.length-1-i]!==treeB[treeB.length-1-i]);i++);return[treeA.slice(0,treeA.length-i),treeB.slice(0,treeB.length-i),treeB.slice(treeB.length-i)]}function resolveCaretPosition({target,node,offset}){return hasOwnSelection(target)?{node:target,offset:offset??getUIValue(target).length}:node?{node,offset:offset??(3===node.nodeType?node.nodeValue.length:node.childNodes.length)}:findNodeAtTextOffset(target,offset)}function findNodeAtTextOffset(node,offset,isRoot=!0){let i=void 0===offset?node.childNodes.length-1:0,step=void 0===offset?-1:1;for(;void 0===offset?i>=(isRoot?Math.max(node.childNodes.length-1,0):0):i<=node.childNodes.length;){if(offset&&i===node.childNodes.length)throw new Error("The given offset is out of bounds.");let c=node.childNodes.item(i),text=String(c.textContent);if(text.length)if(void 0!==offset&&text.length{prevTarget!==nextTarget&&(instance.dispatchUIEvent(prevTarget,"mouseout",init),leave.forEach((el=>instance.dispatchUIEvent(el,"mouseleave",init))))},enter:()=>{prevTarget!==nextTarget&&(instance.dispatchUIEvent(nextTarget,"mouseover",init),enter.forEach((el=>instance.dispatchUIEvent(el,"mouseenter",init))))},move:()=>{instance.dispatchUIEvent(nextTarget,"mousemove",init),this.modifySelecting(instance)}}}down(instance,keyDef,pointer3){let button=this.buttons.down(keyDef);if(void 0===button)return;let target=this.getTarget(instance);this.buttonDownTarget[button]=target;let disabled=isDisabled2(target),init=this.getEventInit("mousedown",keyDef.button);(disabled||instance.dispatchUIEvent(target,"mousedown",init))&&(this.startSelecting(instance,init.detail),focusElement(target)),!disabled&&2===getMouseEventButton(keyDef.button)&&instance.dispatchUIEvent(target,"contextmenu",this.getEventInit("contextmenu",keyDef.button,pointer3))}up(instance,keyDef,pointer3){let button=this.buttons.up(keyDef);if(void 0===button)return;let target=this.getTarget(instance);if(!isDisabled2(target)){instance.dispatchUIEvent(target,"mouseup",this.getEventInit("mouseup",keyDef.button)),this.endSelecting();let clickTarget=getTreeDiff(this.buttonDownTarget[button],target)[2][0];if(clickTarget){let init=this.getEventInit("click",keyDef.button,pointer3);init.detail&&(instance.dispatchUIEvent(clickTarget,0===init.button?"click":"auxclick",init),0===init.button&&2===init.detail&&instance.dispatchUIEvent(clickTarget,"dblclick",{...this.getEventInit("dblclick",keyDef.button),detail:init.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(type5,button,pointer3){let init={...this.position.coords};return pointer3&&(init.pointerId=pointer3.pointerId,init.pointerType=pointer3.pointerType,init.isPrimary=pointer3.isPrimary),init.button=getMouseEventButton(button),init.buttons=this.buttons.getButtons(),"mousedown"===type5?init.detail=this.clickCount.getOnDown(init.button):"mouseup"===type5?init.detail=this.clickCount.getOnUp(init.button):("click"===type5||"auxclick"===type5)&&(init.detail=this.clickCount.incOnClick(init.button)),init}getTarget(instance){var _this_position_target;return null!==(_this_position_target=this.position.target)&&void 0!==_this_position_target?_this_position_target:instance.config.document.body}startSelecting(instance,clickCount){var _this_position_caret,_this_position_caret1;this.selecting=setSelectionPerMouseDown({document:instance.config.document,target:this.getTarget(instance),node:null===(_this_position_caret=this.position.caret)||void 0===_this_position_caret?void 0:_this_position_caret.node,offset:null===(_this_position_caret1=this.position.caret)||void 0===_this_position_caret1?void 0:_this_position_caret1.offset,clickCount})}modifySelecting(instance){var _this_position_caret,_this_position_caret1;this.selecting&&function modifySelectionPerMouseMove(selectionRange,{document:document2,target,node,offset}){let selectionFocus=resolveCaretPosition({target,node,offset});if("node"in selectionRange){if(selectionFocus.node===selectionRange.node){let anchorOffset=selectionFocus.offsetselectionRange.end||selectionFocus.offset0&&range.setEnd(selectionFocus.node,selectionFocus.offset);let selection=document2.getSelection();selection?.removeAllRanges(),selection?.addRange(range.cloneRange())}}(this.selecting,{document:instance.config.document,target:this.getTarget(instance),node:null===(_this_position_caret=this.position.caret)||void 0===_this_position_caret?void 0:_this_position_caret.node,offset:null===(_this_position_caret1=this.position.caret)||void 0===_this_position_caret1?void 0:_this_position_caret1.offset})}endSelecting(){this.selecting=void 0}constructor(){_define_property6(this,"position",{}),_define_property6(this,"buttons",new Buttons),_define_property6(this,"selecting",void 0),_define_property6(this,"buttonDownTarget",{}),_define_property6(this,"clickCount",new class{incOnClick(button){let current=void 0===this.down[button]?void 0:Number(this.down[button])+1;return this.count=void 0===this.count[button]?{}:{[button]:Number(this.count[button])+1},current}getOnDown(button){var _this_count_button,_this_count_button1;return this.down={[button]:null!==(_this_count_button=this.count[button])&&void 0!==_this_count_button?_this_count_button:0},this.count={[button]:null!==(_this_count_button1=this.count[button])&&void 0!==_this_count_button1?_this_count_button1:0},Number(this.count[button])+1}getOnUp(button){return void 0===this.down[button]?void 0:Number(this.down[button])+1}reset(){this.count={}}constructor(){_define_property6(this,"down",{}),_define_property6(this,"count",{})}})}};function hasPointerEvents(instance,element){var _checkPointerEvents;return"none"!==(null===(_checkPointerEvents=checkPointerEvents(instance,element))||void 0===_checkPointerEvents?void 0:_checkPointerEvents.pointerEvents)}var PointerEventsCheck=Symbol("Last check for pointer-events");function checkPointerEvents(instance,element){let lastCheck=element[PointerEventsCheck];if(instance.config.pointerEventsCheck===PointerEventsCheckLevel.Never||!(!lastCheck||hasBitFlag(instance.config.pointerEventsCheck,PointerEventsCheckLevel.EachApiCall)&&lastCheck[ApiLevel.Call]!==getLevelRef(instance,ApiLevel.Call)||hasBitFlag(instance.config.pointerEventsCheck,PointerEventsCheckLevel.EachTrigger)&&lastCheck[ApiLevel.Trigger]!==getLevelRef(instance,ApiLevel.Trigger)))return lastCheck?.result;let declaration=function closestPointerEventsDeclaration(element){let window2=getWindow(element);for(let el=element,tree=[];el?.ownerDocument;el=el.parentElement){tree.push(el);let pointerEvents=window2.getComputedStyle(el).pointerEvents;if(pointerEvents&&!["inherit","unset"].includes(pointerEvents))return{pointerEvents,tree}}}(element);return element[PointerEventsCheck]={[ApiLevel.Call]:getLevelRef(instance,ApiLevel.Call),[ApiLevel.Trigger]:getLevelRef(instance,ApiLevel.Trigger),result:declaration},declaration}function assertPointerEvents(instance,element){let declaration=checkPointerEvents(instance,element);if("none"===declaration?.pointerEvents)throw new Error([`Unable to perform pointer interaction as the element ${declaration.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",(tree=declaration.tree,tree.reverse().map(((el,i)=>["".padEnd(i),el.tagName,el.id&&`#${el.id}`,el.hasAttribute("data-testid")&&`(testId=${el.getAttribute("data-testid")})`,getLabelDescr(el),tree.length>1&&0===i&&" <-- This element declared `pointer-events: none`",tree.length>1&&i===tree.length-1&&" <-- Asserted pointer events here"].filter(Boolean).join(""))).join("\n"))].join("\n"));var tree}function getLabelDescr(element){var _element_labels;let label;if(element.hasAttribute("aria-label"))label=element.getAttribute("aria-label");else if(element.hasAttribute("aria-labelledby")){var _element_ownerDocument_getElementById_textContent,_element_ownerDocument_getElementById;label=null===(_element_ownerDocument_getElementById=element.ownerDocument.getElementById(element.getAttribute("aria-labelledby")))||void 0===_element_ownerDocument_getElementById||null===(_element_ownerDocument_getElementById_textContent=_element_ownerDocument_getElementById.textContent)||void 0===_element_ownerDocument_getElementById_textContent?void 0:_element_ownerDocument_getElementById_textContent.trim()}else if(isElementType(element,["button","input","meter","output","progress","select","textarea"])&&null!==(_element_labels=element.labels)&&void 0!==_element_labels&&_element_labels.length)label=Array.from(element.labels).map((el=>{var _el_textContent;return null===(_el_textContent=el.textContent)||void 0===_el_textContent?void 0:_el_textContent.trim()})).join("|");else if(isElementType(element,"button")){var _element_textContent;label=null===(_element_textContent=element.textContent)||void 0===_element_textContent?void 0:_element_textContent.trim()}return label=label?.replace(/\n/g," "),Number(label?.length)>30&&(label=`${label?.substring(0,29)}…`),label?`(label=${label})`:""}function hasBitFlag(conf,flag3){return(conf&flag3)>0}function _define_property7(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var Pointer=class{init(instance,position){this.position=position;let target=this.getTarget(instance),[,enter]=getTreeDiff(null,target),init=this.getEventInit();return assertPointerEvents(instance,target),instance.dispatchUIEvent(target,"pointerover",init),enter.forEach((el=>instance.dispatchUIEvent(el,"pointerenter",init))),this}move(instance,position){let prevPosition=this.position,prevTarget=this.getTarget(instance);if(this.position=position,!isDifferentPointerPosition(prevPosition,position))return;let nextTarget=this.getTarget(instance),init=this.getEventInit(),[leave,enter]=getTreeDiff(prevTarget,nextTarget);return{leave:()=>{hasPointerEvents(instance,prevTarget)&&prevTarget!==nextTarget&&(instance.dispatchUIEvent(prevTarget,"pointerout",init),leave.forEach((el=>instance.dispatchUIEvent(el,"pointerleave",init))))},enter:()=>{assertPointerEvents(instance,nextTarget),prevTarget!==nextTarget&&(instance.dispatchUIEvent(nextTarget,"pointerover",init),enter.forEach((el=>instance.dispatchUIEvent(el,"pointerenter",init))))},move:()=>{instance.dispatchUIEvent(nextTarget,"pointermove",init)}}}down(instance,_keyDef){if(this.isDown)return;let target=this.getTarget(instance);assertPointerEvents(instance,target),this.isDown=!0,this.isPrevented=!instance.dispatchUIEvent(target,"pointerdown",this.getEventInit())}up(instance,_keyDef){if(!this.isDown)return;let target=this.getTarget(instance);assertPointerEvents(instance,target),this.isDown=!1,instance.dispatchUIEvent(target,"pointerup",this.getEventInit())}release(instance){let target=this.getTarget(instance),[leave]=getTreeDiff(target,null),init=this.getEventInit();hasPointerEvents(instance,target)&&(instance.dispatchUIEvent(target,"pointerout",init),leave.forEach((el=>instance.dispatchUIEvent(el,"pointerleave",init)))),this.isCancelled=!0}getTarget(instance){var _this_position_target;return null!==(_this_position_target=this.position.target)&&void 0!==_this_position_target?_this_position_target:instance.config.document.body}getEventInit(){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary}}constructor({pointerId,pointerType,isPrimary}){_define_property7(this,"pointerId",void 0),_define_property7(this,"pointerType",void 0),_define_property7(this,"isPrimary",void 0),_define_property7(this,"isMultitouch",!1),_define_property7(this,"isCancelled",!1),_define_property7(this,"isDown",!1),_define_property7(this,"isPrevented",!1),_define_property7(this,"position",{}),this.pointerId=pointerId,this.pointerType=pointerType,this.isPrimary=isPrimary,this.isMultitouch=!isPrimary}};function _define_property8(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var PointerHost=class{isKeyPressed(keyDef){return this.devices.get(keyDef.pointerType).isPressed(keyDef)}async press(instance,keyDef,position){let pointerName=this.getPointerName(keyDef),pointer3="touch"===keyDef.pointerType?this.pointers.new(pointerName,keyDef).init(instance,position):this.pointers.get(pointerName);pointer3.position=position,"touch"!==pointer3.pointerType&&(this.mouse.position=position),this.devices.get(keyDef.pointerType).addPressed(keyDef),this.buttons.down(keyDef),pointer3.down(instance,keyDef),"touch"!==pointer3.pointerType&&!pointer3.isPrevented&&this.mouse.down(instance,keyDef,pointer3)}async move(instance,pointerName,position){let pointer3=this.pointers.get(pointerName),pointermove=pointer3.move(instance,position),mousemove="touch"===pointer3.pointerType||pointer3.isPrevented&&pointer3.isDown?void 0:this.mouse.move(instance,position);pointermove?.leave(),mousemove?.leave(),pointermove?.enter(),mousemove?.enter(),pointermove?.move(),mousemove?.move()}async release(instance,keyDef,position){let device=this.devices.get(keyDef.pointerType);device.removePressed(keyDef),this.buttons.up(keyDef);let pointer3=this.pointers.get(this.getPointerName(keyDef));if(pointer3.position=position,"touch"!==pointer3.pointerType&&(this.mouse.position=position),0===device.countPressed&&pointer3.up(instance,keyDef),"touch"===pointer3.pointerType&&pointer3.release(instance),!pointer3.isPrevented){if("touch"===pointer3.pointerType&&!pointer3.isMultitouch){let mousemove=this.mouse.move(instance,pointer3.position);mousemove?.leave(),mousemove?.enter(),mousemove?.move(),this.mouse.down(instance,keyDef,pointer3)}if(!pointer3.isMultitouch){let mousemove=this.mouse.move(instance,pointer3.position);mousemove?.leave(),mousemove?.enter(),mousemove?.move(),this.mouse.up(instance,keyDef,pointer3)}}}getPointerName(keyDef){return"touch"===keyDef.pointerType?keyDef.name:keyDef.pointerType}getPreviousPosition(pointerName){return this.pointers.has(pointerName)?this.pointers.get(pointerName).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(instance){var _this_mouse_position_target;return null!==(_this_mouse_position_target=this.mouse.position.target)&&void 0!==_this_mouse_position_target?_this_mouse_position_target:instance.config.document.body}setMousePosition(position){this.mouse.position=position,this.pointers.get("mouse").position=position}constructor(system){_define_property8(this,"system",void 0),_define_property8(this,"mouse",void 0),_define_property8(this,"buttons",void 0),_define_property8(this,"devices",new class{get(k2){var _this_registry,_k,_;return null!==(_=(_this_registry=this.registry)[_k=k2])&&void 0!==_||(_this_registry[_k]=new Device),this.registry[k2]}constructor(){_define_property8(this,"registry",{})}}),_define_property8(this,"pointers",new class{new(pointerName,keyDef){let isPrimary="touch"!==keyDef.pointerType||!Object.values(this.registry).some((p3=>"touch"===p3.pointerType&&!p3.isCancelled));return isPrimary||Object.values(this.registry).forEach((p3=>{p3.pointerType===keyDef.pointerType&&!p3.isCancelled&&(p3.isMultitouch=!0)})),this.registry[pointerName]=new Pointer({pointerId:this.nextId++,pointerType:keyDef.pointerType,isPrimary}),this.registry[pointerName]}get(pointerName){if(!this.has(pointerName))throw new Error(`Trying to access pointer "${pointerName}" which does not exist.`);return this.registry[pointerName]}has(pointerName){return pointerName in this.registry}constructor(){_define_property8(this,"registry",{mouse:new Pointer({pointerId:1,pointerType:"mouse",isPrimary:!0})}),_define_property8(this,"nextId",2)}}),this.system=system,this.buttons=new Buttons,this.mouse=new Mouse}};function _define_property9(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var System=class{getUIEventModifiers(){return{altKey:this.keyboard.modifiers.Alt,ctrlKey:this.keyboard.modifiers.Control,metaKey:this.keyboard.modifiers.Meta,shiftKey:this.keyboard.modifiers.Shift,modifierAltGraph:this.keyboard.modifiers.AltGraph,modifierCapsLock:this.keyboard.modifiers.CapsLock,modifierFn:this.keyboard.modifiers.Fn,modifierFnLock:this.keyboard.modifiers.FnLock,modifierNumLock:this.keyboard.modifiers.NumLock,modifierScrollLock:this.keyboard.modifiers.ScrollLock,modifierSymbol:this.keyboard.modifiers.Symbol,modifierSymbolLock:this.keyboard.modifiers.SymbolLock}}constructor(){_define_property9(this,"keyboard",new KeyboardHost(this)),_define_property9(this,"pointer",new PointerHost(this))}};async function keyboardAction(instance,{keyDef,releasePrevious,releaseSelf,repeat}){let{system}=instance;if(system.keyboard.isKeyPressed(keyDef)&&await system.keyboard.keyup(instance,keyDef),!releasePrevious){for(let i=1;i<=repeat;i++)await system.keyboard.keydown(instance,keyDef),ip3.name===descriptor));keyDef&&defs.push({keyDef,releasePrevious,releaseSelf}),keys2=keys2.slice(consumedLength)}while(keys2);return defs}async function pointerAction(instance,action){var _previousPosition_caret,_previousPosition_caret1;let pointerName="pointerName"in action&&action.pointerName?action.pointerName:"keyDef"in action?instance.system.pointer.getPointerName(action.keyDef):"mouse",previousPosition=instance.system.pointer.getPreviousPosition(pointerName);var _action_target,_action_coords,_action_node,_action_offset;let position={target:null!==(_action_target=action.target)&&void 0!==_action_target?_action_target:getPrevTarget(instance,previousPosition),coords:null!==(_action_coords=action.coords)&&void 0!==_action_coords?_action_coords:previousPosition?.coords,caret:{node:null!==(_action_node=action.node)&&void 0!==_action_node?_action_node:hasCaretPosition(action)||null==previousPosition||null===(_previousPosition_caret=previousPosition.caret)||void 0===_previousPosition_caret?void 0:_previousPosition_caret.node,offset:null!==(_action_offset=action.offset)&&void 0!==_action_offset?_action_offset:hasCaretPosition(action)||null==previousPosition||null===(_previousPosition_caret1=previousPosition.caret)||void 0===_previousPosition_caret1?void 0:_previousPosition_caret1.offset}};"keyDef"in action?(instance.system.pointer.isKeyPressed(action.keyDef)&&(setLevelRef(instance,ApiLevel.Trigger),await instance.system.pointer.release(instance,action.keyDef,position)),action.releasePrevious||(setLevelRef(instance,ApiLevel.Trigger),await instance.system.pointer.press(instance,action.keyDef,position),action.releaseSelf&&(setLevelRef(instance,ApiLevel.Trigger),await instance.system.pointer.release(instance,action.keyDef,position)))):(setLevelRef(instance,ApiLevel.Trigger),await instance.system.pointer.move(instance,pointerName,position))}function hasCaretPosition(action){var _action_target,_ref;return!!(null!==(_ref=null!==(_action_target=action.target)&&void 0!==_action_target?_action_target:action.node)&&void 0!==_ref?_ref:void 0!==action.offset)}function getPrevTarget(instance,position){if(!position)throw new Error("This pointer has no previous position. Provide a target property!");var _position_target;return null!==(_position_target=position.target)&&void 0!==_position_target?_position_target:instance.config.document.body}async function selectOptionsBase(newValue,select,values){if(!newValue&&!select.multiple)throw getConfig2().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",select);let valArray=Array.isArray(values)?values:[values],allOptions=Array.from(select.querySelectorAll('option, [role="option"]')),selectedOptions=valArray.map((val=>{if("string"!=typeof val&&allOptions.includes(val))return val;{let matchingOption=allOptions.find((o=>o.value===val||o.innerHTML===val));if(matchingOption)return matchingOption;throw getConfig2().getElementError(`Value "${String(val)}" not found in options`,select)}})).filter((option=>!isDisabled2(option)));if(isDisabled2(select)||!selectedOptions.length)return;let selectOption=option=>{option.selected=newValue,this.dispatchUIEvent(select,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(select,"change")};if(isElementType(select,"select"))if(select.multiple)for(let option of selectedOptions){let withPointerEvents=0===this.config.pointerEventsCheck||hasPointerEvents(this,option);withPointerEvents&&(this.dispatchUIEvent(option,"pointerover"),this.dispatchUIEvent(select,"pointerenter"),this.dispatchUIEvent(option,"mouseover"),this.dispatchUIEvent(select,"mouseenter"),this.dispatchUIEvent(option,"pointermove"),this.dispatchUIEvent(option,"mousemove"),this.dispatchUIEvent(option,"pointerdown"),this.dispatchUIEvent(option,"mousedown")),focusElement(select),withPointerEvents&&(this.dispatchUIEvent(option,"pointerup"),this.dispatchUIEvent(option,"mouseup")),selectOption(option),withPointerEvents&&this.dispatchUIEvent(option,"click"),await wait(this.config)}else{if(1!==selectedOptions.length)throw getConfig2().getElementError("Cannot select multiple options on a non-multiple select",select);{let withPointerEvents=0===this.config.pointerEventsCheck||hasPointerEvents(this,select);withPointerEvents?await this.click(select):focusElement(select),selectOption(selectedOptions[0]),withPointerEvents&&(this.dispatchUIEvent(select,"pointerover"),this.dispatchUIEvent(select,"pointerenter"),this.dispatchUIEvent(select,"mouseover"),this.dispatchUIEvent(select,"mouseenter"),this.dispatchUIEvent(select,"pointerup"),this.dispatchUIEvent(select,"mouseup"),this.dispatchUIEvent(select,"click")),await wait(this.config)}}else{if("listbox"!==select.getAttribute("role"))throw getConfig2().getElementError("Cannot select options on elements that are neither select nor listbox elements",select);for(let option of selectedOptions)await this.click(option),await this.unhover(option)}}var fakeFiles=Symbol("files and value properties are mocked");function restoreProperty(obj,prop,descriptor){descriptor?Object.defineProperty(obj,prop,descriptor):delete obj[prop]}var userEventApi={click:async function click(element){let pointerIn=[];return this.config.skipHover||pointerIn.push({target:element}),pointerIn.push({keys:"[MouseLeft]",target:element}),this.pointer(pointerIn)},dblClick:async function dblClick(element){return this.pointer([{target:element},"[MouseLeft][MouseLeft]"])},tripleClick:async function tripleClick(element){return this.pointer([{target:element},"[MouseLeft][MouseLeft][MouseLeft]"])},hover:async function hover(element){return this.pointer({target:element})},unhover:async function unhover(element){return assertPointerEvents(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:element.ownerDocument.body})},tab:async function tab({shift}={}){return this.keyboard(!0===shift?"{Shift>}{Tab}{/Shift}":!1===shift?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")},keyboard:async function keyboard(text){let actions=function parseKeyDef(keyboardMap,text){let defs=[];do{let{type:type5,descriptor,consumedLength,releasePrevious,releaseSelf=!0,repeat}=readNextDescriptor(text,"keyboard");var _keyboardMap_find;let keyDef=null!==(_keyboardMap_find=keyboardMap.find((def=>{var _def_code,_def_key;return"["===type5?(null===(_def_code=def.code)||void 0===_def_code?void 0:_def_code.toLowerCase())===descriptor.toLowerCase():"{"===type5?(null===(_def_key=def.key)||void 0===_def_key?void 0:_def_key.toLowerCase())===descriptor.toLowerCase():def.key===descriptor})))&&void 0!==_keyboardMap_find?_keyboardMap_find:{key:"Unknown",code:"Unknown",["["===type5?"code":"key"]:descriptor};defs.push({keyDef,releasePrevious,releaseSelf,repeat}),text=text.slice(consumedLength)}while(text);return defs}(this.config.keyboardMap,text);for(let i=0;ireadBlobText(b,window2.FileReader))));return dt}(doc).catch((()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")}));this.dispatchUIEvent(target,"paste",{clipboardData:dataTransfer})},pointer:async function pointer(input2){let{pointerMap}=this.config,actions=[];(Array.isArray(input2)?input2:[input2]).forEach((actionInput=>{"string"==typeof actionInput?actions.push(...parseKeyDef2(pointerMap,actionInput)):"keys"in actionInput?actions.push(...parseKeyDef2(pointerMap,actionInput.keys).map((i=>({...actionInput,...i})))):actions.push(actionInput)}));for(let i=0;i!this.config.applyAccept||function isAcceptableFile(file,accept){if(!accept)return!0;let wildcards=["audio/*","image/*","video/*"];return accept.split(",").some((acceptToken=>acceptToken.startsWith(".")?file.name.endsWith(acceptToken):wildcards.includes(acceptToken)?file.type.startsWith(acceptToken.substr(0,acceptToken.length-1)):file.type===acceptToken))}(file,input2.accept))).slice(0,input2.multiple?void 0:1),fileDialog=()=>{var _input_files;files.length===(null===(_input_files=input2.files)||void 0===_input_files?void 0:_input_files.length)&&files.every(((f4,i)=>{var _input_files2;return f4===(null===(_input_files2=input2.files)||void 0===_input_files2?void 0:_input_files2.item(i))}))||(function setFiles(el,files){var _el_fakeFiles;null===(_el_fakeFiles=el[fakeFiles])||void 0===_el_fakeFiles||_el_fakeFiles.restore();let typeDescr=Object.getOwnPropertyDescriptor(el,"type"),valueDescr=Object.getOwnPropertyDescriptor(el,"value"),filesDescr=Object.getOwnPropertyDescriptor(el,"files");function restore(){restoreProperty(el,"type",typeDescr),restoreProperty(el,"value",valueDescr),restoreProperty(el,"files",filesDescr)}el[fakeFiles]={restore},Object.defineProperties(el,{files:{configurable:!0,get:()=>files},value:{configurable:!0,get:()=>files.length?`C:\\fakepath\\${files[0].name}`:"",set(v){var _valueDescr_set;""===v?restore():null==valueDescr||null===(_valueDescr_set=valueDescr.set)||void 0===_valueDescr_set||_valueDescr_set.call(el,v)}},type:{configurable:!0,get:()=>"file",set(v){"file"!==v&&(restore(),el.type=v)}}})}(input2,createFileList(getWindow(element),files)),this.dispatchUIEvent(input2,"input"),this.dispatchUIEvent(input2,"change"))};input2.addEventListener("fileDialog",fileDialog),await this.click(element),input2.removeEventListener("fileDialog",fileDialog)}};var defaultOptionsDirect={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:defaultKeyMap,pointerMap:[{name:"MouseLeft",pointerType:"mouse",button:"primary"},{name:"MouseRight",pointerType:"mouse",button:"secondary"},{name:"MouseMiddle",pointerType:"mouse",button:"auxiliary"},{name:"TouchA",pointerType:"touch"},{name:"TouchB",pointerType:"touch"},{name:"TouchC",pointerType:"touch"}],pointerEventsCheck:PointerEventsCheckLevel.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},defaultOptionsSetup={...defaultOptionsDirect,writeToClipboard:!0};function createConfig(options={},defaults=defaultOptionsSetup,node){let document2=function getDocument2(options,node,defaults){var _options_document,_ref;return null!==(_ref=null!==(_options_document=options.document)&&void 0!==_options_document?_options_document:node&&function getDocumentFromNode(el){return function isDocument2(node){return 9===node.nodeType}(el)?el:el.ownerDocument}(node))&&void 0!==_ref?_ref:defaults.document}(options,node,defaults);return{...defaults,...options,document:document2}}function setupDirect({keyboardState,pointerState,...options}={},node){let config3=createConfig(options,defaultOptionsDirect,node);var _ref;prepareDocument(config3.document);let system=null!==(_ref=pointerState??keyboardState)&&void 0!==_ref?_ref:new System;return{api:createInstance(config3,system).api,system}}function setupSub(options){return createInstance({...this.config,...options},this.system).api}function wrapAndBindImpl(instance,impl){function method(...args){return setLevelRef(instance,ApiLevel.Call),function wrapAsync(implementation){return getConfig2().asyncWrapper(implementation)}((()=>impl.apply(instance,args).then((async ret=>(await wait(instance.config),ret)))))}return Object.defineProperty(method,"name",{get:()=>impl.name}),method}function createInstance(config3,system=new System){let instance={};return Object.assign(instance,{config:config3,dispatchEvent:dispatchEvent.bind(instance),dispatchUIEvent:dispatchUIEvent.bind(instance),system,levelRefs:{},...userEventApi}),{instance,api:{...Object.fromEntries(Object.entries(userEventApi).map((([name,api])=>[name,wrapAndBindImpl(instance,api)]))),setup:setupSub.bind(instance)}}}var directApi_exports={};function clear2(element){return setupDirect().api.clear(element)}function click2(element,options={}){return setupDirect(options,element).api.click(element)}function copy2(options={}){return setupDirect(options).api.copy()}function cut2(options={}){return setupDirect(options).api.cut()}function dblClick2(element,options={}){return setupDirect(options).api.dblClick(element)}function deselectOptions2(select,values,options={}){return setupDirect(options).api.deselectOptions(select,values)}function hover2(element,options={}){return setupDirect(options).api.hover(element)}async function keyboard2(text,options={}){let{api,system}=setupDirect(options);return api.keyboard(text).then((()=>system))}async function pointer2(input2,options={}){let{api,system}=setupDirect(options);return api.pointer(input2).then((()=>system))}function paste2(clipboardData,options){return setupDirect(options).api.paste(clipboardData)}function selectOptions2(select,values,options={}){return setupDirect(options).api.selectOptions(select,values)}function tripleClick2(element,options={}){return setupDirect(options).api.tripleClick(element)}function type4(element,text,options={}){return setupDirect(options,element).api.type(element,text,options)}function unhover2(element,options={}){let{api,system}=setupDirect(options);return system.pointer.setMousePosition({target:element}),api.unhover(element)}function upload2(element,fileOrFiles,options={}){return setupDirect(options).api.upload(element,fileOrFiles)}function tab2(options={}){return setupDirect().api.tab(options)}__export(directApi_exports,{clear:()=>clear2,click:()=>click2,copy:()=>copy2,cut:()=>cut2,dblClick:()=>dblClick2,deselectOptions:()=>deselectOptions2,hover:()=>hover2,keyboard:()=>keyboard2,paste:()=>paste2,pointer:()=>pointer2,selectOptions:()=>selectOptions2,tab:()=>tab2,tripleClick:()=>tripleClick2,type:()=>type4,unhover:()=>unhover2,upload:()=>upload2});var userEvent={...directApi_exports,setup:function setupMain(options={}){let config3=createConfig(options);var _config_document_defaultView;return prepareDocument(config3.document),function attachClipboardStubToView(window2){if(isClipboardStub(window2.navigator.clipboard))return window2.navigator.clipboard[ClipboardStubControl];let stub,realClipboard=Object.getOwnPropertyDescriptor(window2.navigator,"clipboard"),control={resetClipboardStub:()=>{stub=createClipboardStub(window2,control)},detachClipboardStub:()=>{realClipboard?Object.defineProperty(window2.navigator,"clipboard",realClipboard):Object.defineProperty(window2.navigator,"clipboard",{value:void 0,configurable:!0})}};return stub=createClipboardStub(window2,control),Object.defineProperty(window2.navigator,"clipboard",{get:()=>stub,configurable:!0}),stub[ClipboardStubControl]}(null!==(_config_document_defaultView=config3.document.defaultView)&&void 0!==_config_document_defaultView?_config_document_defaultView:globalThis.window),createInstance(config3).api}};var esm_default=function dedent(templ){for(var values=[],_i=1;_i"fireEvent"===path[0]||method.startsWith("find")||method.startsWith("waitFor")});testingLibrary.screen=new Proxy(testingLibrary.screen,{get:(target,prop,receiver)=>(external_STORYBOOK_MODULE_CLIENT_LOGGER_.once.warn(esm_default` + You are using Testing Library's \`screen\` object. Use \`within(canvasElement)\` instead. + More info: https://storybook.js.org/docs/essentials/interactions + `),Reflect.get(target,prop,receiver))});var{buildQueries:buildQueries2,configure:configure2,createEvent:createEvent3,fireEvent:fireEvent2,findAllByAltText:findAllByAltText2,findAllByDisplayValue:findAllByDisplayValue2,findAllByLabelText:findAllByLabelText2,findAllByPlaceholderText:findAllByPlaceholderText2,findAllByRole:findAllByRole2,findAllByTestId:findAllByTestId2,findAllByText:findAllByText2,findAllByTitle:findAllByTitle2,findByAltText:findByAltText2,findByDisplayValue:findByDisplayValue2,findByLabelText:findByLabelText2,findByPlaceholderText:findByPlaceholderText2,findByRole:findByRole2,findByTestId:findByTestId2,findByText:findByText2,findByTitle:findByTitle2,getAllByAltText:getAllByAltText2,getAllByDisplayValue:getAllByDisplayValue2,getAllByLabelText:getAllByLabelText2,getAllByPlaceholderText:getAllByPlaceholderText2,getAllByRole:getAllByRole2,getAllByTestId:getAllByTestId2,getAllByText:getAllByText2,getAllByTitle:getAllByTitle2,getByAltText:getByAltText2,getByDisplayValue:getByDisplayValue2,getByLabelText:getByLabelText2,getByPlaceholderText:getByPlaceholderText2,getByRole:getByRole2,getByTestId:getByTestId2,getByText:getByText2,getByTitle:getByTitle2,getConfig:getConfig3,getDefaultNormalizer:getDefaultNormalizer2,getElementError:getElementError2,getNodeText:getNodeText2,getQueriesForElement:getQueriesForElement2,getRoles:getRoles2,getSuggestedQuery:getSuggestedQuery2,isInaccessible:isInaccessible2,logDOM:logDOM2,logRoles:logRoles2,prettyDOM:prettyDOM2,queries:queries2,queryAllByAltText:queryAllByAltText2,queryAllByAttribute:queryAllByAttribute2,queryAllByDisplayValue:queryAllByDisplayValue2,queryAllByLabelText:queryAllByLabelText2,queryAllByPlaceholderText:queryAllByPlaceholderText2,queryAllByRole:queryAllByRole2,queryAllByTestId:queryAllByTestId2,queryAllByText:queryAllByText2,queryAllByTitle:queryAllByTitle2,queryByAltText:queryByAltText2,queryByAttribute:queryByAttribute2,queryByDisplayValue:queryByDisplayValue2,queryByLabelText:queryByLabelText2,queryByPlaceholderText:queryByPlaceholderText2,queryByRole:queryByRole2,queryByTestId:queryByTestId2,queryByText:queryByText2,queryByTitle:queryByTitle2,queryHelpers:queryHelpers2,screen:screen2,waitFor:waitFor2,waitForElementToBeRemoved:waitForElementToBeRemoved2,within,prettyFormat:prettyFormat2}=testingLibrary,{userEvent:userEvent2}=instrument({userEvent},{intercept:!0}),{expect:expect3}=instrument({expect:expect2},{getKeys:(obj,depth)=>{let privateApi=["assert","__methods","__flags","_obj"];if(obj.constructor===Assertion){let keys2=Object.keys(Object.getPrototypeOf(obj)).filter((it=>!privateApi.includes(it)));return depth>2?keys2:[...keys2,"not"]}return Object.keys(obj)},intercept:method=>"expect"!==method}),traverseArgs=(value,depth=0,key)=>{if(depth>5||null==value)return value;if(isMockFunction(value))return key&&value.mockName(key),value;if("function"==typeof value&&"isAction"in value&&value.isAction&&(!("implicit"in value)||!value.implicit)){let mock=fn2(value);return key&&mock.mockName(key),mock}if(Array.isArray(value))return depth++,value.map((item=>traverseArgs(item,depth)));if("object"==typeof value&&value.constructor===Object){depth++;for(let[k2,v]of Object.entries(value))Object.getOwnPropertyDescriptor(value,k2)?.writable&&(value[k2]=traverseArgs(v,depth,k2));return value}return value};external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_TEST_LOADERS__=[({parameters})=>{!0===parameters?.test?.mockReset?function resetAllMocks(){mocks.forEach((spy=>spy.mockReset()))}():!0===parameters?.test?.clearMocks?function clearAllMocks(){mocks.forEach((spy=>spy.mockClear()))}():!1!==parameters?.test?.restoreMocks&&function restoreAllMocks(){mocks.forEach((spy=>spy.mockRestore()))}()},({initialArgs})=>{traverseArgs(initialArgs)},context=>{globalThis.HTMLElement&&context.canvasElement instanceof globalThis.HTMLElement&&(context.canvas=within(context.canvasElement))}],external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_TEST_ON_MOCK_CALL__=function onMockCall(callback){return listeners.add(callback),()=>{listeners.delete(callback)}}},"./node_modules/deepmerge/dist/cjs.js":module=>{var isMergeableObject=function isMergeableObject(value){return function isNonNullObject(value){return!!value&&"object"==typeof value}(value)&&!function isSpecial(value){var stringValue=Object.prototype.toString.call(value);return"[object RegExp]"===stringValue||"[object Date]"===stringValue||function isReactElement(value){return value.$$typeof===REACT_ELEMENT_TYPE}(value)}(value)};var REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function cloneUnlessOtherwiseSpecified(value,options){return!1!==options.clone&&options.isMergeableObject(value)?deepmerge(function emptyTarget(val){return Array.isArray(val)?[]:{}}(value),value,options):value}function defaultArrayMerge(target,source,options){return target.concat(source).map((function(element){return cloneUnlessOtherwiseSpecified(element,options)}))}function getKeys(target){return Object.keys(target).concat(function getEnumerableOwnPropertySymbols(target){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(target).filter((function(symbol){return Object.propertyIsEnumerable.call(target,symbol)})):[]}(target))}function propertyIsOnObject(object,property){try{return property in object}catch(_){return!1}}function mergeObject(target,source,options){var destination={};return options.isMergeableObject(target)&&getKeys(target).forEach((function(key){destination[key]=cloneUnlessOtherwiseSpecified(target[key],options)})),getKeys(source).forEach((function(key){(function propertyIsUnsafe(target,key){return propertyIsOnObject(target,key)&&!(Object.hasOwnProperty.call(target,key)&&Object.propertyIsEnumerable.call(target,key))})(target,key)||(propertyIsOnObject(target,key)&&options.isMergeableObject(source[key])?destination[key]=function getMergeFunction(key,options){if(!options.customMerge)return deepmerge;var customMerge=options.customMerge(key);return"function"==typeof customMerge?customMerge:deepmerge}(key,options)(target[key],source[key],options):destination[key]=cloneUnlessOtherwiseSpecified(source[key],options))})),destination}function deepmerge(target,source,options){(options=options||{}).arrayMerge=options.arrayMerge||defaultArrayMerge,options.isMergeableObject=options.isMergeableObject||isMergeableObject,options.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var sourceIsArray=Array.isArray(source);return sourceIsArray===Array.isArray(target)?sourceIsArray?options.arrayMerge(target,source,options):mergeObject(target,source,options):cloneUnlessOtherwiseSpecified(source,options)}deepmerge.all=function deepmergeAll(array,options){if(!Array.isArray(array))throw new Error("first argument should be an array");return array.reduce((function(prev,next){return deepmerge(prev,next,options)}),{})};var deepmerge_1=deepmerge;module.exports=deepmerge_1},"./node_modules/fast-deep-equal/es6/index.js":module=>{module.exports=function equal(a,b){if(a===b)return!0;if(a&&b&&"object"==typeof a&&"object"==typeof b){if(a.constructor!==b.constructor)return!1;var length,i,keys;if(Array.isArray(a)){if((length=a.length)!=b.length)return!1;for(i=length;0!=i--;)if(!equal(a[i],b[i]))return!1;return!0}if(a instanceof Map&&b instanceof Map){if(a.size!==b.size)return!1;for(i of a.entries())if(!b.has(i[0]))return!1;for(i of a.entries())if(!equal(i[1],b.get(i[0])))return!1;return!0}if(a instanceof Set&&b instanceof Set){if(a.size!==b.size)return!1;for(i of a.entries())if(!b.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(a)&&ArrayBuffer.isView(b)){if((length=a.length)!=b.length)return!1;for(i=length;0!=i--;)if(a[i]!==b[i])return!1;return!0}if(a.constructor===RegExp)return a.source===b.source&&a.flags===b.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===b.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===b.toString();if((length=(keys=Object.keys(a)).length)!==Object.keys(b).length)return!1;for(i=length;0!=i--;)if(!Object.prototype.hasOwnProperty.call(b,keys[i]))return!1;for(i=length;0!=i--;){var key=keys[i];if(!equal(a[key],b[key]))return!1}return!0}return a!=a&&b!=b}},"./node_modules/is-plain-object/dist/is-plain-object.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function isObject(o){return"[object Object]"===Object.prototype.toString.call(o)}function isPlainObject(o){var ctor,prot;return!1!==isObject(o)&&(void 0===(ctor=o.constructor)||!1!==isObject(prot=ctor.prototype)&&!1!==prot.hasOwnProperty("isPrototypeOf"))}__webpack_require__.d(__webpack_exports__,{Q:()=>isPlainObject})}}]); +//# sourceMappingURL=3777.1420e2f9.iframe.bundle.js.map \ No newline at end of file diff --git a/3777.1420e2f9.iframe.bundle.js.LICENSE.txt b/3777.1420e2f9.iframe.bundle.js.LICENSE.txt new file mode 100644 index 00000000000000..fe4c1fe30790a1 --- /dev/null +++ b/3777.1420e2f9.iframe.bundle.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ diff --git a/3777.1420e2f9.iframe.bundle.js.map b/3777.1420e2f9.iframe.bundle.js.map new file mode 100644 index 00000000000000..398d43f60b4b6a --- /dev/null +++ b/3777.1420e2f9.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"3777.1420e2f9.iframe.bundle.js","mappings":";;;;AA8LA","sources":["webpack://gutenberg/./node_modules/@storybook/test/dist/index.mjs"],"sourcesContent":["import { global as global$1 } from '@storybook/global';\nimport { instrument } from '@storybook/instrumenter';\nimport { once } from 'storybook/internal/client-logger';\n\nvar __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __require=(x2=>typeof require<\"u\"?require:typeof Proxy<\"u\"?new Proxy(x2,{get:(a2,b)=>(typeof require<\"u\"?require:a2)[b]}):x2)(function(x2){if(typeof require<\"u\")return require.apply(this,arguments);throw Error('Dynamic require of \"'+x2+'\" is not supported')});var __commonJS=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0});},__copyProps=(to,from,except,desc)=>{if(from&&typeof from==\"object\"||typeof from==\"function\")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,\"default\",{value:mod,enumerable:!0}):target,mod));var require_min_indent=__commonJS({\"../../node_modules/min-indent/index.js\"(exports,module2){module2.exports=string=>{let match=string.match(/^[ \\t]*(?=\\S)/gm);return match?match.reduce((r,a2)=>Math.min(r,a2.length),1/0):0};}});var require_strip_indent=__commonJS({\"../../node_modules/strip-indent/index.js\"(exports,module2){var minIndent=require_min_indent();module2.exports=string=>{let indent=minIndent(string);if(indent===0)return string;let regex=new RegExp(`^[ \\\\t]{${indent}}`,\"gm\");return string.replace(regex,\"\")};}});var require_indent_string=__commonJS({\"../../node_modules/indent-string/index.js\"(exports,module2){module2.exports=(string,count=1,options)=>{if(options={indent:\" \",includeEmptyLines:!1,...options},typeof string!=\"string\")throw new TypeError(`Expected \\`input\\` to be a \\`string\\`, got \\`${typeof string}\\``);if(typeof count!=\"number\")throw new TypeError(`Expected \\`count\\` to be a \\`number\\`, got \\`${typeof count}\\``);if(typeof options.indent!=\"string\")throw new TypeError(`Expected \\`options.indent\\` to be a \\`string\\`, got \\`${typeof options.indent}\\``);if(count===0)return string;let regex=options.includeEmptyLines?/^/gm:/^(?!\\s*$)/gm;return string.replace(regex,options.indent.repeat(count))};}});var require_redent=__commonJS({\"../../node_modules/redent/index.js\"(exports,module2){var stripIndent=require_strip_indent(),indentString=require_indent_string();module2.exports=(string,count=0,options)=>indentString(stripIndent(string),count,options);}});var require_iteratorProxy=__commonJS({\"../../node_modules/aria-query/lib/util/iteratorProxy.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;function iteratorProxy(){var values=this,index=0,iter={\"@@iterator\":function(){return iter},next:function(){if(index=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var normalCompletion=!0,didErr=!1,err;return {s:function(){it=it.call(o);},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3;},f:function(){try{!normalCompletion&&it.return!=null&&it.return();}finally{if(didErr)throw err}}}}function _unsupportedIterableToArray(o,minLen){if(o){if(typeof o==\"string\")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n===\"Object\"&&o.constructor&&(n=o.constructor.name),n===\"Map\"||n===\"Set\")return Array.from(o);if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&arguments[1]!==void 0?arguments[1]:null,_iterator=_createForOfIteratorHelper(properties),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,key,properties);}}catch(err){_iterator.e(err);}finally{_iterator.f();}},get:function(key){var item=properties.find(function(tuple){return tuple[0]===key});return item&&item[1]},has:function(key){return !!ariaPropsMap.get(key)},keys:function(){return properties.map(function(_ref){var _ref2=_slicedToArray(_ref,1),key=_ref2[0];return key})},values:function(){return properties.map(function(_ref3){var _ref4=_slicedToArray(_ref3,2),values2=_ref4[1];return values2})}},_default2=(0, _iterationDecorator.default)(ariaPropsMap,ariaPropsMap.entries());exports.default=_default2;}});var require_domMap=__commonJS({\"../../node_modules/aria-query/lib/domMap.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var _iterationDecorator=_interopRequireDefault(require_iterationDecorator());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit(arr,i){var _i=arr==null?null:typeof Symbol<\"u\"&&arr[Symbol.iterator]||arr[\"@@iterator\"];if(_i!=null){var _arr=[],_n=!0,_d=!1,_s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i&&_arr.length===i));_n=!0);}catch(err){_d=!0,_e=err;}finally{try{!_n&&_i.return!=null&&_i.return();}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<\"u\"&&o[Symbol.iterator]||o[\"@@iterator\"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==\"number\"){it&&(o=it);var i=0,F=function(){};return {s:F,n:function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var normalCompletion=!0,didErr=!1,err;return {s:function(){it=it.call(o);},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3;},f:function(){try{!normalCompletion&&it.return!=null&&it.return();}finally{if(didErr)throw err}}}}function _unsupportedIterableToArray(o,minLen){if(o){if(typeof o==\"string\")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n===\"Object\"&&o.constructor&&(n=o.constructor.name),n===\"Map\"||n===\"Set\")return Array.from(o);if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&arguments[1]!==void 0?arguments[1]:null,_iterator=_createForOfIteratorHelper(dom),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,key,dom);}}catch(err){_iterator.e(err);}finally{_iterator.f();}},get:function(key){var item=dom.find(function(tuple){return tuple[0]===key});return item&&item[1]},has:function(key){return !!domMap.get(key)},keys:function(){return dom.map(function(_ref){var _ref2=_slicedToArray(_ref,1),key=_ref2[0];return key})},values:function(){return dom.map(function(_ref3){var _ref4=_slicedToArray(_ref3,2),values2=_ref4[1];return values2})}},_default2=(0, _iterationDecorator.default)(domMap,domMap.entries());exports.default=_default2;}});var require_commandRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var commandRole={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"widget\"]]},_default2=commandRole;exports.default=_default2;}});var require_compositeRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var compositeRole={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-activedescendant\":null,\"aria-disabled\":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"widget\"]]},_default2=compositeRole;exports.default=_default2;}});var require_inputRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var inputRole={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null},relatedConcepts:[{concept:{name:\"input\"},module:\"XForms\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"widget\"]]},_default2=inputRole;exports.default=_default2;}});var require_landmarkRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var landmarkRole={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=landmarkRole;exports.default=_default2;}});var require_rangeRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var rangeRole={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-valuemax\":null,\"aria-valuemin\":null,\"aria-valuenow\":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\"]]},_default2=rangeRole;exports.default=_default2;}});var require_roletypeRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var roletypeRole={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{\"aria-atomic\":null,\"aria-busy\":null,\"aria-controls\":null,\"aria-current\":null,\"aria-describedby\":null,\"aria-details\":null,\"aria-dropeffect\":null,\"aria-flowto\":null,\"aria-grabbed\":null,\"aria-hidden\":null,\"aria-keyshortcuts\":null,\"aria-label\":null,\"aria-labelledby\":null,\"aria-live\":null,\"aria-owns\":null,\"aria-relevant\":null,\"aria-roledescription\":null},relatedConcepts:[{concept:{name:\"role\"},module:\"XHTML\"},{concept:{name:\"type\"},module:\"Dublin Core\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},_default2=roletypeRole;exports.default=_default2;}});var require_sectionRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var sectionRole={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"frontmatter\"},module:\"DTB\"},{concept:{name:\"level\"},module:\"DTB\"},{concept:{name:\"level\"},module:\"SMIL\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\"]]},_default2=sectionRole;exports.default=_default2;}});var require_sectionheadRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var sectionheadRole={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\"]]},_default2=sectionheadRole;exports.default=_default2;}});var require_selectRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var selectRole={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-orientation\":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"composite\"],[\"roletype\",\"structure\",\"section\",\"group\"]]},_default2=selectRole;exports.default=_default2;}});var require_structureRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var structureRole={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\"]]},_default2=structureRole;exports.default=_default2;}});var require_widgetRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var widgetRole={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\"]]},_default2=widgetRole;exports.default=_default2;}});var require_windowRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var windowRole={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-modal\":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\"]]},_default2=windowRole;exports.default=_default2;}});var require_ariaAbstractRoles=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var _commandRole=_interopRequireDefault(require_commandRole()),_compositeRole=_interopRequireDefault(require_compositeRole()),_inputRole=_interopRequireDefault(require_inputRole()),_landmarkRole=_interopRequireDefault(require_landmarkRole()),_rangeRole=_interopRequireDefault(require_rangeRole()),_roletypeRole=_interopRequireDefault(require_roletypeRole()),_sectionRole=_interopRequireDefault(require_sectionRole()),_sectionheadRole=_interopRequireDefault(require_sectionheadRole()),_selectRole=_interopRequireDefault(require_selectRole()),_structureRole=_interopRequireDefault(require_structureRole()),_widgetRole=_interopRequireDefault(require_widgetRole()),_windowRole=_interopRequireDefault(require_windowRole());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var ariaAbstractRoles=[[\"command\",_commandRole.default],[\"composite\",_compositeRole.default],[\"input\",_inputRole.default],[\"landmark\",_landmarkRole.default],[\"range\",_rangeRole.default],[\"roletype\",_roletypeRole.default],[\"section\",_sectionRole.default],[\"sectionhead\",_sectionheadRole.default],[\"select\",_selectRole.default],[\"structure\",_structureRole.default],[\"widget\",_widgetRole.default],[\"window\",_windowRole.default]],_default2=ariaAbstractRoles;exports.default=_default2;}});var require_alertRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var alertRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-atomic\":\"true\",\"aria-live\":\"assertive\"},relatedConcepts:[{concept:{name:\"alert\"},module:\"XForms\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=alertRole;exports.default=_default2;}});var require_alertdialogRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var alertdialogRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"alert\"},module:\"XForms\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"alert\"],[\"roletype\",\"window\",\"dialog\"]]},_default2=alertdialogRole;exports.default=_default2;}});var require_applicationRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var applicationRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-activedescendant\":null,\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"Device Independence Delivery Unit\"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\"]]},_default2=applicationRole;exports.default=_default2;}});var require_articleRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var articleRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-posinset\":null,\"aria-setsize\":null},relatedConcepts:[{concept:{name:\"article\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"document\"]]},_default2=articleRole;exports.default=_default2;}});var require_bannerRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var bannerRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:[\"scoped to the body element\"],name:\"header\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=bannerRole;exports.default=_default2;}});var require_blockquoteRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var blockquoteRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"blockquote\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=blockquoteRole;exports.default=_default2;}});var require_buttonRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var buttonRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-pressed\":null},relatedConcepts:[{concept:{attributes:[{name:\"type\",value:\"button\"}],name:\"input\"},module:\"HTML\"},{concept:{attributes:[{name:\"type\",value:\"image\"}],name:\"input\"},module:\"HTML\"},{concept:{attributes:[{name:\"type\",value:\"reset\"}],name:\"input\"},module:\"HTML\"},{concept:{attributes:[{name:\"type\",value:\"submit\"}],name:\"input\"},module:\"HTML\"},{concept:{name:\"button\"},module:\"HTML\"},{concept:{name:\"trigger\"},module:\"XForms\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"command\"]]},_default2=buttonRole;exports.default=_default2;}});var require_captionRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var captionRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"prohibited\"],prohibitedProps:[\"aria-label\",\"aria-labelledby\"],props:{},relatedConcepts:[{concept:{name:\"caption\"},module:\"HTML\"}],requireContextRole:[\"figure\",\"grid\",\"table\"],requiredContextRole:[\"figure\",\"grid\",\"table\"],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=captionRole;exports.default=_default2;}});var require_cellRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var cellRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-colindex\":null,\"aria-colspan\":null,\"aria-rowindex\":null,\"aria-rowspan\":null},relatedConcepts:[{concept:{constraints:[\"ancestor table element has table role\"],name:\"td\"},module:\"HTML\"}],requireContextRole:[\"row\"],requiredContextRole:[\"row\"],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=cellRole;exports.default=_default2;}});var require_checkboxRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var checkboxRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-checked\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-invalid\":null,\"aria-readonly\":null,\"aria-required\":null},relatedConcepts:[{concept:{attributes:[{name:\"type\",value:\"checkbox\"}],name:\"input\"},module:\"HTML\"},{concept:{name:\"option\"},module:\"ARIA\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{\"aria-checked\":null},superClass:[[\"roletype\",\"widget\",\"input\"]]},_default2=checkboxRole;exports.default=_default2;}});var require_codeRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var codeRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"prohibited\"],prohibitedProps:[\"aria-label\",\"aria-labelledby\"],props:{},relatedConcepts:[{concept:{name:\"code\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=codeRole;exports.default=_default2;}});var require_columnheaderRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var columnheaderRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-sort\":null},relatedConcepts:[{concept:{name:\"th\"},module:\"HTML\"},{concept:{attributes:[{name:\"scope\",value:\"col\"}],name:\"th\"},module:\"HTML\"},{concept:{attributes:[{name:\"scope\",value:\"colgroup\"}],name:\"th\"},module:\"HTML\"}],requireContextRole:[\"row\"],requiredContextRole:[\"row\"],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"cell\"],[\"roletype\",\"structure\",\"section\",\"cell\",\"gridcell\"],[\"roletype\",\"widget\",\"gridcell\"],[\"roletype\",\"structure\",\"sectionhead\"]]},_default2=columnheaderRole;exports.default=_default2;}});var require_comboboxRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var comboboxRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-activedescendant\":null,\"aria-autocomplete\":null,\"aria-errormessage\":null,\"aria-invalid\":null,\"aria-readonly\":null,\"aria-required\":null,\"aria-expanded\":\"false\",\"aria-haspopup\":\"listbox\"},relatedConcepts:[{concept:{attributes:[{constraints:[\"set\"],name:\"list\"},{name:\"type\",value:\"email\"}],name:\"input\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"set\"],name:\"list\"},{name:\"type\",value:\"search\"}],name:\"input\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"set\"],name:\"list\"},{name:\"type\",value:\"tel\"}],name:\"input\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"set\"],name:\"list\"},{name:\"type\",value:\"text\"}],name:\"input\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"set\"],name:\"list\"},{name:\"type\",value:\"url\"}],name:\"input\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"set\"],name:\"list\"},{name:\"type\",value:\"url\"}],name:\"input\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"undefined\"],name:\"multiple\"},{constraints:[\"undefined\"],name:\"size\"}],constraints:[\"the multiple attribute is not set and the size attribute does not have a value greater than 1\"],name:\"select\"},module:\"HTML\"},{concept:{name:\"select\"},module:\"XForms\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{\"aria-controls\":null,\"aria-expanded\":\"false\"},superClass:[[\"roletype\",\"widget\",\"input\"]]},_default2=comboboxRole;exports.default=_default2;}});var require_complementaryRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var complementaryRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"aside\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"set\"],name:\"aria-label\"}],constraints:[\"scoped to a sectioning content element\",\"scoped to a sectioning root element other than body\"],name:\"aside\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"set\"],name:\"aria-labelledby\"}],constraints:[\"scoped to a sectioning content element\",\"scoped to a sectioning root element other than body\"],name:\"aside\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=complementaryRole;exports.default=_default2;}});var require_contentinfoRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var contentinfoRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:[\"scoped to the body element\"],name:\"footer\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=contentinfoRole;exports.default=_default2;}});var require_definitionRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var definitionRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"dd\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=definitionRole;exports.default=_default2;}});var require_deletionRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var deletionRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"prohibited\"],prohibitedProps:[\"aria-label\",\"aria-labelledby\"],props:{},relatedConcepts:[{concept:{name:\"del\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=deletionRole;exports.default=_default2;}});var require_dialogRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var dialogRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"dialog\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"window\"]]},_default2=dialogRole;exports.default=_default2;}});var require_directoryRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var directoryRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{module:\"DAISY Guide\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"list\"]]},_default2=directoryRole;exports.default=_default2;}});var require_documentRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var documentRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"Device Independence Delivery Unit\"}},{concept:{name:\"html\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\"]]},_default2=documentRole;exports.default=_default2;}});var require_emphasisRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var emphasisRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"prohibited\"],prohibitedProps:[\"aria-label\",\"aria-labelledby\"],props:{},relatedConcepts:[{concept:{name:\"em\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=emphasisRole;exports.default=_default2;}});var require_feedRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var feedRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[\"article\"]],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"list\"]]},_default2=feedRole;exports.default=_default2;}});var require_figureRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var figureRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"figure\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=figureRole;exports.default=_default2;}});var require_formRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/formRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var formRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:[\"set\"],name:\"aria-label\"}],name:\"form\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"set\"],name:\"aria-labelledby\"}],name:\"form\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"set\"],name:\"name\"}],name:\"form\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=formRole;exports.default=_default2;}});var require_genericRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var genericRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"prohibited\"],prohibitedProps:[\"aria-label\",\"aria-labelledby\"],props:{},relatedConcepts:[{concept:{name:\"a\"},module:\"HTML\"},{concept:{name:\"area\"},module:\"HTML\"},{concept:{name:\"aside\"},module:\"HTML\"},{concept:{name:\"b\"},module:\"HTML\"},{concept:{name:\"bdo\"},module:\"HTML\"},{concept:{name:\"body\"},module:\"HTML\"},{concept:{name:\"data\"},module:\"HTML\"},{concept:{name:\"div\"},module:\"HTML\"},{concept:{constraints:[\"scoped to the main element\",\"scoped to a sectioning content element\",\"scoped to a sectioning root element other than body\"],name:\"footer\"},module:\"HTML\"},{concept:{constraints:[\"scoped to the main element\",\"scoped to a sectioning content element\",\"scoped to a sectioning root element other than body\"],name:\"header\"},module:\"HTML\"},{concept:{name:\"hgroup\"},module:\"HTML\"},{concept:{name:\"i\"},module:\"HTML\"},{concept:{name:\"pre\"},module:\"HTML\"},{concept:{name:\"q\"},module:\"HTML\"},{concept:{name:\"samp\"},module:\"HTML\"},{concept:{name:\"section\"},module:\"HTML\"},{concept:{name:\"small\"},module:\"HTML\"},{concept:{name:\"span\"},module:\"HTML\"},{concept:{name:\"u\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\"]]},_default2=genericRole;exports.default=_default2;}});var require_gridRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var gridRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-multiselectable\":null,\"aria-readonly\":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[\"row\"],[\"row\",\"rowgroup\"]],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"composite\"],[\"roletype\",\"structure\",\"section\",\"table\"]]},_default2=gridRole;exports.default=_default2;}});var require_gridcellRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var gridcellRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null,\"aria-readonly\":null,\"aria-required\":null,\"aria-selected\":null},relatedConcepts:[{concept:{constraints:[\"ancestor table element has grid role\",\"ancestor table element has treegrid role\"],name:\"td\"},module:\"HTML\"}],requireContextRole:[\"row\"],requiredContextRole:[\"row\"],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"cell\"],[\"roletype\",\"widget\"]]},_default2=gridcellRole;exports.default=_default2;}});var require_groupRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var groupRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-activedescendant\":null,\"aria-disabled\":null},relatedConcepts:[{concept:{name:\"details\"},module:\"HTML\"},{concept:{name:\"fieldset\"},module:\"HTML\"},{concept:{name:\"optgroup\"},module:\"HTML\"},{concept:{name:\"address\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=groupRole;exports.default=_default2;}});var require_headingRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var headingRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-level\":\"2\"},relatedConcepts:[{concept:{name:\"h1\"},module:\"HTML\"},{concept:{name:\"h2\"},module:\"HTML\"},{concept:{name:\"h3\"},module:\"HTML\"},{concept:{name:\"h4\"},module:\"HTML\"},{concept:{name:\"h5\"},module:\"HTML\"},{concept:{name:\"h6\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{\"aria-level\":\"2\"},superClass:[[\"roletype\",\"structure\",\"sectionhead\"]]},_default2=headingRole;exports.default=_default2;}});var require_imgRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var imgRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:[\"set\"],name:\"alt\"}],name:\"img\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"undefined\"],name:\"alt\"}],name:\"img\"},module:\"HTML\"},{concept:{name:\"imggroup\"},module:\"DTB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=imgRole;exports.default=_default2;}});var require_insertionRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var insertionRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"prohibited\"],prohibitedProps:[\"aria-label\",\"aria-labelledby\"],props:{},relatedConcepts:[{concept:{name:\"ins\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=insertionRole;exports.default=_default2;}});var require_linkRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var linkRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-expanded\":null,\"aria-haspopup\":null},relatedConcepts:[{concept:{attributes:[{constraints:[\"set\"],name:\"href\"}],name:\"a\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"set\"],name:\"href\"}],name:\"area\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"command\"]]},_default2=linkRole;exports.default=_default2;}});var require_listRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/listRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var listRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"menu\"},module:\"HTML\"},{concept:{name:\"ol\"},module:\"HTML\"},{concept:{name:\"ul\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[\"listitem\"]],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=listRole;exports.default=_default2;}});var require_listboxRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var listboxRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-invalid\":null,\"aria-multiselectable\":null,\"aria-readonly\":null,\"aria-required\":null,\"aria-orientation\":\"vertical\"},relatedConcepts:[{concept:{attributes:[{constraints:[\">1\"],name:\"size\"}],constraints:[\"the size attribute value is greater than 1\"],name:\"select\"},module:\"HTML\"},{concept:{attributes:[{name:\"multiple\"}],name:\"select\"},module:\"HTML\"},{concept:{name:\"datalist\"},module:\"HTML\"},{concept:{name:\"list\"},module:\"ARIA\"},{concept:{name:\"select\"},module:\"XForms\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[\"option\",\"group\"],[\"option\"]],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"composite\",\"select\"],[\"roletype\",\"structure\",\"section\",\"group\",\"select\"]]},_default2=listboxRole;exports.default=_default2;}});var require_listitemRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var listitemRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-level\":null,\"aria-posinset\":null,\"aria-setsize\":null},relatedConcepts:[{concept:{constraints:[\"direct descendant of ol\",\"direct descendant of ul\",\"direct descendant of menu\"],name:\"li\"},module:\"HTML\"},{concept:{name:\"item\"},module:\"XForms\"}],requireContextRole:[\"directory\",\"list\"],requiredContextRole:[\"directory\",\"list\"],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=listitemRole;exports.default=_default2;}});var require_logRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/logRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var logRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-live\":\"polite\"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=logRole;exports.default=_default2;}});var require_mainRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var mainRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"main\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=mainRole;exports.default=_default2;}});var require_markRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/markRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var markRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"prohibited\"],prohibitedProps:[],props:{\"aria-braillelabel\":null,\"aria-brailleroledescription\":null,\"aria-description\":null},relatedConcepts:[{concept:{name:\"mark\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=markRole;exports.default=_default2;}});var require_marqueeRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var marqueeRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=marqueeRole;exports.default=_default2;}});var require_mathRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var mathRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"math\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=mathRole;exports.default=_default2;}});var require_menuRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var menuRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-orientation\":\"vertical\"},relatedConcepts:[{concept:{name:\"MENU\"},module:\"JAPI\"},{concept:{name:\"list\"},module:\"ARIA\"},{concept:{name:\"select\"},module:\"XForms\"},{concept:{name:\"sidebar\"},module:\"DTB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[\"menuitem\",\"group\"],[\"menuitemradio\",\"group\"],[\"menuitemcheckbox\",\"group\"],[\"menuitem\"],[\"menuitemcheckbox\"],[\"menuitemradio\"]],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"composite\",\"select\"],[\"roletype\",\"structure\",\"section\",\"group\",\"select\"]]},_default2=menuRole;exports.default=_default2;}});var require_menubarRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var menubarRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-orientation\":\"horizontal\"},relatedConcepts:[{concept:{name:\"toolbar\"},module:\"ARIA\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[\"menuitem\",\"group\"],[\"menuitemradio\",\"group\"],[\"menuitemcheckbox\",\"group\"],[\"menuitem\"],[\"menuitemcheckbox\"],[\"menuitemradio\"]],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"composite\",\"select\",\"menu\"],[\"roletype\",\"structure\",\"section\",\"group\",\"select\",\"menu\"]]},_default2=menubarRole;exports.default=_default2;}});var require_menuitemRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var menuitemRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-posinset\":null,\"aria-setsize\":null},relatedConcepts:[{concept:{name:\"MENU_ITEM\"},module:\"JAPI\"},{concept:{name:\"listitem\"},module:\"ARIA\"},{concept:{name:\"option\"},module:\"ARIA\"}],requireContextRole:[\"group\",\"menu\",\"menubar\"],requiredContextRole:[\"group\",\"menu\",\"menubar\"],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"command\"]]},_default2=menuitemRole;exports.default=_default2;}});var require_menuitemcheckboxRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var menuitemcheckboxRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"menuitem\"},module:\"ARIA\"}],requireContextRole:[\"group\",\"menu\",\"menubar\"],requiredContextRole:[\"group\",\"menu\",\"menubar\"],requiredOwnedElements:[],requiredProps:{\"aria-checked\":null},superClass:[[\"roletype\",\"widget\",\"input\",\"checkbox\"],[\"roletype\",\"widget\",\"command\",\"menuitem\"]]},_default2=menuitemcheckboxRole;exports.default=_default2;}});var require_menuitemradioRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var menuitemradioRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"menuitem\"},module:\"ARIA\"}],requireContextRole:[\"group\",\"menu\",\"menubar\"],requiredContextRole:[\"group\",\"menu\",\"menubar\"],requiredOwnedElements:[],requiredProps:{\"aria-checked\":null},superClass:[[\"roletype\",\"widget\",\"input\",\"checkbox\",\"menuitemcheckbox\"],[\"roletype\",\"widget\",\"command\",\"menuitem\",\"menuitemcheckbox\"],[\"roletype\",\"widget\",\"input\",\"radio\"]]},_default2=menuitemradioRole;exports.default=_default2;}});var require_meterRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var meterRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-valuetext\":null,\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\"},relatedConcepts:[{concept:{name:\"meter\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{\"aria-valuenow\":null},superClass:[[\"roletype\",\"structure\",\"range\"]]},_default2=meterRole;exports.default=_default2;}});var require_navigationRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var navigationRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"nav\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=navigationRole;exports.default=_default2;}});var require_noneRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var noneRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},_default2=noneRole;exports.default=_default2;}});var require_noteRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var noteRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=noteRole;exports.default=_default2;}});var require_optionRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var optionRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-checked\":null,\"aria-posinset\":null,\"aria-setsize\":null,\"aria-selected\":\"false\"},relatedConcepts:[{concept:{name:\"item\"},module:\"XForms\"},{concept:{name:\"listitem\"},module:\"ARIA\"},{concept:{name:\"option\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{\"aria-selected\":\"false\"},superClass:[[\"roletype\",\"widget\",\"input\"]]},_default2=optionRole;exports.default=_default2;}});var require_paragraphRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var paragraphRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"prohibited\"],prohibitedProps:[\"aria-label\",\"aria-labelledby\"],props:{},relatedConcepts:[{concept:{name:\"p\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=paragraphRole;exports.default=_default2;}});var require_presentationRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var presentationRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"prohibited\"],prohibitedProps:[\"aria-label\",\"aria-labelledby\"],props:{},relatedConcepts:[{concept:{attributes:[{name:\"alt\",value:\"\"}],name:\"img\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\"]]},_default2=presentationRole;exports.default=_default2;}});var require_progressbarRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var progressbarRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-valuetext\":null},relatedConcepts:[{concept:{name:\"progress\"},module:\"HTML\"},{concept:{name:\"status\"},module:\"ARIA\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"range\"],[\"roletype\",\"widget\"]]},_default2=progressbarRole;exports.default=_default2;}});var require_radioRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var radioRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-checked\":null,\"aria-posinset\":null,\"aria-setsize\":null},relatedConcepts:[{concept:{attributes:[{name:\"type\",value:\"radio\"}],name:\"input\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{\"aria-checked\":null},superClass:[[\"roletype\",\"widget\",\"input\"]]},_default2=radioRole;exports.default=_default2;}});var require_radiogroupRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var radiogroupRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-errormessage\":null,\"aria-invalid\":null,\"aria-readonly\":null,\"aria-required\":null},relatedConcepts:[{concept:{name:\"list\"},module:\"ARIA\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[\"radio\"]],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"composite\",\"select\"],[\"roletype\",\"structure\",\"section\",\"group\",\"select\"]]},_default2=radiogroupRole;exports.default=_default2;}});var require_regionRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var regionRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:[\"set\"],name:\"aria-label\"}],name:\"section\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"set\"],name:\"aria-labelledby\"}],name:\"section\"},module:\"HTML\"},{concept:{name:\"Device Independence Glossart perceivable unit\"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=regionRole;exports.default=_default2;}});var require_rowRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var rowRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-colindex\":null,\"aria-expanded\":null,\"aria-level\":null,\"aria-posinset\":null,\"aria-rowindex\":null,\"aria-selected\":null,\"aria-setsize\":null},relatedConcepts:[{concept:{name:\"tr\"},module:\"HTML\"}],requireContextRole:[\"grid\",\"rowgroup\",\"table\",\"treegrid\"],requiredContextRole:[\"grid\",\"rowgroup\",\"table\",\"treegrid\"],requiredOwnedElements:[[\"cell\"],[\"columnheader\"],[\"gridcell\"],[\"rowheader\"]],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"group\"],[\"roletype\",\"widget\"]]},_default2=rowRole;exports.default=_default2;}});var require_rowgroupRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var rowgroupRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"tbody\"},module:\"HTML\"},{concept:{name:\"tfoot\"},module:\"HTML\"},{concept:{name:\"thead\"},module:\"HTML\"}],requireContextRole:[\"grid\",\"table\",\"treegrid\"],requiredContextRole:[\"grid\",\"table\",\"treegrid\"],requiredOwnedElements:[[\"row\"]],requiredProps:{},superClass:[[\"roletype\",\"structure\"]]},_default2=rowgroupRole;exports.default=_default2;}});var require_rowheaderRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var rowheaderRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-sort\":null},relatedConcepts:[{concept:{attributes:[{name:\"scope\",value:\"row\"}],name:\"th\"},module:\"HTML\"},{concept:{attributes:[{name:\"scope\",value:\"rowgroup\"}],name:\"th\"},module:\"HTML\"}],requireContextRole:[\"row\",\"rowgroup\"],requiredContextRole:[\"row\",\"rowgroup\"],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"cell\"],[\"roletype\",\"structure\",\"section\",\"cell\",\"gridcell\"],[\"roletype\",\"widget\",\"gridcell\"],[\"roletype\",\"structure\",\"sectionhead\"]]},_default2=rowheaderRole;exports.default=_default2;}});var require_scrollbarRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var scrollbarRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-valuetext\":null,\"aria-orientation\":\"vertical\",\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{\"aria-controls\":null,\"aria-valuenow\":null},superClass:[[\"roletype\",\"structure\",\"range\"],[\"roletype\",\"widget\"]]},_default2=scrollbarRole;exports.default=_default2;}});var require_searchRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var searchRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=searchRole;exports.default=_default2;}});var require_searchboxRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var searchboxRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:[\"undefined\"],name:\"list\"},{name:\"type\",value:\"search\"}],constraints:[\"the list attribute is not set\"],name:\"input\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"input\",\"textbox\"]]},_default2=searchboxRole;exports.default=_default2;}});var require_separatorRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var separatorRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-orientation\":\"horizontal\",\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\",\"aria-valuenow\":null,\"aria-valuetext\":null},relatedConcepts:[{concept:{name:\"hr\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\"]]},_default2=separatorRole;exports.default=_default2;}});var require_sliderRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var sliderRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-errormessage\":null,\"aria-haspopup\":null,\"aria-invalid\":null,\"aria-readonly\":null,\"aria-valuetext\":null,\"aria-orientation\":\"horizontal\",\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\"},relatedConcepts:[{concept:{attributes:[{name:\"type\",value:\"range\"}],name:\"input\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{\"aria-valuenow\":null},superClass:[[\"roletype\",\"widget\",\"input\"],[\"roletype\",\"structure\",\"range\"]]},_default2=sliderRole;exports.default=_default2;}});var require_spinbuttonRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var spinbuttonRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-errormessage\":null,\"aria-invalid\":null,\"aria-readonly\":null,\"aria-required\":null,\"aria-valuetext\":null,\"aria-valuenow\":\"0\"},relatedConcepts:[{concept:{attributes:[{name:\"type\",value:\"number\"}],name:\"input\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"composite\"],[\"roletype\",\"widget\",\"input\"],[\"roletype\",\"structure\",\"range\"]]},_default2=spinbuttonRole;exports.default=_default2;}});var require_statusRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var statusRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-atomic\":\"true\",\"aria-live\":\"polite\"},relatedConcepts:[{concept:{name:\"output\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=statusRole;exports.default=_default2;}});var require_strongRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var strongRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"prohibited\"],prohibitedProps:[\"aria-label\",\"aria-labelledby\"],props:{},relatedConcepts:[{concept:{name:\"strong\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=strongRole;exports.default=_default2;}});var require_subscriptRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var subscriptRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"prohibited\"],prohibitedProps:[\"aria-label\",\"aria-labelledby\"],props:{},relatedConcepts:[{concept:{name:\"sub\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=subscriptRole;exports.default=_default2;}});var require_superscriptRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var superscriptRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"prohibited\"],prohibitedProps:[\"aria-label\",\"aria-labelledby\"],props:{},relatedConcepts:[{concept:{name:\"sup\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=superscriptRole;exports.default=_default2;}});var require_switchRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var switchRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"button\"},module:\"ARIA\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{\"aria-checked\":null},superClass:[[\"roletype\",\"widget\",\"input\",\"checkbox\"]]},_default2=switchRole;exports.default=_default2;}});var require_tabRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var tabRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-posinset\":null,\"aria-setsize\":null,\"aria-selected\":\"false\"},relatedConcepts:[],requireContextRole:[\"tablist\"],requiredContextRole:[\"tablist\"],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"sectionhead\"],[\"roletype\",\"widget\"]]},_default2=tabRole;exports.default=_default2;}});var require_tableRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var tableRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-colcount\":null,\"aria-rowcount\":null},relatedConcepts:[{concept:{name:\"table\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[\"row\"],[\"row\",\"rowgroup\"]],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=tableRole;exports.default=_default2;}});var require_tablistRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var tablistRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-level\":null,\"aria-multiselectable\":null,\"aria-orientation\":\"horizontal\"},relatedConcepts:[{module:\"DAISY\",concept:{name:\"guide\"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[\"tab\"]],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"composite\"]]},_default2=tablistRole;exports.default=_default2;}});var require_tabpanelRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var tabpanelRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=tabpanelRole;exports.default=_default2;}});var require_termRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/termRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var termRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"dfn\"},module:\"HTML\"},{concept:{name:\"dt\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=termRole;exports.default=_default2;}});var require_textboxRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var textboxRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-activedescendant\":null,\"aria-autocomplete\":null,\"aria-errormessage\":null,\"aria-haspopup\":null,\"aria-invalid\":null,\"aria-multiline\":null,\"aria-placeholder\":null,\"aria-readonly\":null,\"aria-required\":null},relatedConcepts:[{concept:{attributes:[{constraints:[\"undefined\"],name:\"type\"},{constraints:[\"undefined\"],name:\"list\"}],constraints:[\"the list attribute is not set\"],name:\"input\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"undefined\"],name:\"list\"},{name:\"type\",value:\"email\"}],constraints:[\"the list attribute is not set\"],name:\"input\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"undefined\"],name:\"list\"},{name:\"type\",value:\"tel\"}],constraints:[\"the list attribute is not set\"],name:\"input\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"undefined\"],name:\"list\"},{name:\"type\",value:\"text\"}],constraints:[\"the list attribute is not set\"],name:\"input\"},module:\"HTML\"},{concept:{attributes:[{constraints:[\"undefined\"],name:\"list\"},{name:\"type\",value:\"url\"}],constraints:[\"the list attribute is not set\"],name:\"input\"},module:\"HTML\"},{concept:{name:\"input\"},module:\"XForms\"},{concept:{name:\"textarea\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"input\"]]},_default2=textboxRole;exports.default=_default2;}});var require_timeRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var timeRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"time\"},module:\"HTML\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=timeRole;exports.default=_default2;}});var require_timerRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var timerRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"status\"]]},_default2=timerRole;exports.default=_default2;}});var require_toolbarRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var toolbarRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-orientation\":\"horizontal\"},relatedConcepts:[{concept:{name:\"menubar\"},module:\"ARIA\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"group\"]]},_default2=toolbarRole;exports.default=_default2;}});var require_tooltipRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var tooltipRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=tooltipRole;exports.default=_default2;}});var require_treeRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var treeRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-errormessage\":null,\"aria-invalid\":null,\"aria-multiselectable\":null,\"aria-required\":null,\"aria-orientation\":\"vertical\"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[\"treeitem\",\"group\"],[\"treeitem\"]],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"composite\",\"select\"],[\"roletype\",\"structure\",\"section\",\"group\",\"select\"]]},_default2=treeRole;exports.default=_default2;}});var require_treegridRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var treegridRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[\"row\"],[\"row\",\"rowgroup\"]],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"composite\",\"grid\"],[\"roletype\",\"structure\",\"section\",\"table\",\"grid\"],[\"roletype\",\"widget\",\"composite\",\"select\",\"tree\"],[\"roletype\",\"structure\",\"section\",\"group\",\"select\",\"tree\"]]},_default2=treegridRole;exports.default=_default2;}});var require_treeitemRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var treeitemRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-expanded\":null,\"aria-haspopup\":null},relatedConcepts:[],requireContextRole:[\"group\",\"tree\"],requiredContextRole:[\"group\",\"tree\"],requiredOwnedElements:[],requiredProps:{\"aria-selected\":null},superClass:[[\"roletype\",\"structure\",\"section\",\"listitem\"],[\"roletype\",\"widget\",\"input\",\"option\"]]},_default2=treeitemRole;exports.default=_default2;}});var require_ariaLiteralRoles=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var _alertRole=_interopRequireDefault(require_alertRole()),_alertdialogRole=_interopRequireDefault(require_alertdialogRole()),_applicationRole=_interopRequireDefault(require_applicationRole()),_articleRole=_interopRequireDefault(require_articleRole()),_bannerRole=_interopRequireDefault(require_bannerRole()),_blockquoteRole=_interopRequireDefault(require_blockquoteRole()),_buttonRole=_interopRequireDefault(require_buttonRole()),_captionRole=_interopRequireDefault(require_captionRole()),_cellRole=_interopRequireDefault(require_cellRole()),_checkboxRole=_interopRequireDefault(require_checkboxRole()),_codeRole=_interopRequireDefault(require_codeRole()),_columnheaderRole=_interopRequireDefault(require_columnheaderRole()),_comboboxRole=_interopRequireDefault(require_comboboxRole()),_complementaryRole=_interopRequireDefault(require_complementaryRole()),_contentinfoRole=_interopRequireDefault(require_contentinfoRole()),_definitionRole=_interopRequireDefault(require_definitionRole()),_deletionRole=_interopRequireDefault(require_deletionRole()),_dialogRole=_interopRequireDefault(require_dialogRole()),_directoryRole=_interopRequireDefault(require_directoryRole()),_documentRole=_interopRequireDefault(require_documentRole()),_emphasisRole=_interopRequireDefault(require_emphasisRole()),_feedRole=_interopRequireDefault(require_feedRole()),_figureRole=_interopRequireDefault(require_figureRole()),_formRole=_interopRequireDefault(require_formRole()),_genericRole=_interopRequireDefault(require_genericRole()),_gridRole=_interopRequireDefault(require_gridRole()),_gridcellRole=_interopRequireDefault(require_gridcellRole()),_groupRole=_interopRequireDefault(require_groupRole()),_headingRole=_interopRequireDefault(require_headingRole()),_imgRole=_interopRequireDefault(require_imgRole()),_insertionRole=_interopRequireDefault(require_insertionRole()),_linkRole=_interopRequireDefault(require_linkRole()),_listRole=_interopRequireDefault(require_listRole()),_listboxRole=_interopRequireDefault(require_listboxRole()),_listitemRole=_interopRequireDefault(require_listitemRole()),_logRole=_interopRequireDefault(require_logRole()),_mainRole=_interopRequireDefault(require_mainRole()),_markRole=_interopRequireDefault(require_markRole()),_marqueeRole=_interopRequireDefault(require_marqueeRole()),_mathRole=_interopRequireDefault(require_mathRole()),_menuRole=_interopRequireDefault(require_menuRole()),_menubarRole=_interopRequireDefault(require_menubarRole()),_menuitemRole=_interopRequireDefault(require_menuitemRole()),_menuitemcheckboxRole=_interopRequireDefault(require_menuitemcheckboxRole()),_menuitemradioRole=_interopRequireDefault(require_menuitemradioRole()),_meterRole=_interopRequireDefault(require_meterRole()),_navigationRole=_interopRequireDefault(require_navigationRole()),_noneRole=_interopRequireDefault(require_noneRole()),_noteRole=_interopRequireDefault(require_noteRole()),_optionRole=_interopRequireDefault(require_optionRole()),_paragraphRole=_interopRequireDefault(require_paragraphRole()),_presentationRole=_interopRequireDefault(require_presentationRole()),_progressbarRole=_interopRequireDefault(require_progressbarRole()),_radioRole=_interopRequireDefault(require_radioRole()),_radiogroupRole=_interopRequireDefault(require_radiogroupRole()),_regionRole=_interopRequireDefault(require_regionRole()),_rowRole=_interopRequireDefault(require_rowRole()),_rowgroupRole=_interopRequireDefault(require_rowgroupRole()),_rowheaderRole=_interopRequireDefault(require_rowheaderRole()),_scrollbarRole=_interopRequireDefault(require_scrollbarRole()),_searchRole=_interopRequireDefault(require_searchRole()),_searchboxRole=_interopRequireDefault(require_searchboxRole()),_separatorRole=_interopRequireDefault(require_separatorRole()),_sliderRole=_interopRequireDefault(require_sliderRole()),_spinbuttonRole=_interopRequireDefault(require_spinbuttonRole()),_statusRole=_interopRequireDefault(require_statusRole()),_strongRole=_interopRequireDefault(require_strongRole()),_subscriptRole=_interopRequireDefault(require_subscriptRole()),_superscriptRole=_interopRequireDefault(require_superscriptRole()),_switchRole=_interopRequireDefault(require_switchRole()),_tabRole=_interopRequireDefault(require_tabRole()),_tableRole=_interopRequireDefault(require_tableRole()),_tablistRole=_interopRequireDefault(require_tablistRole()),_tabpanelRole=_interopRequireDefault(require_tabpanelRole()),_termRole=_interopRequireDefault(require_termRole()),_textboxRole=_interopRequireDefault(require_textboxRole()),_timeRole=_interopRequireDefault(require_timeRole()),_timerRole=_interopRequireDefault(require_timerRole()),_toolbarRole=_interopRequireDefault(require_toolbarRole()),_tooltipRole=_interopRequireDefault(require_tooltipRole()),_treeRole=_interopRequireDefault(require_treeRole()),_treegridRole=_interopRequireDefault(require_treegridRole()),_treeitemRole=_interopRequireDefault(require_treeitemRole());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var ariaLiteralRoles=[[\"alert\",_alertRole.default],[\"alertdialog\",_alertdialogRole.default],[\"application\",_applicationRole.default],[\"article\",_articleRole.default],[\"banner\",_bannerRole.default],[\"blockquote\",_blockquoteRole.default],[\"button\",_buttonRole.default],[\"caption\",_captionRole.default],[\"cell\",_cellRole.default],[\"checkbox\",_checkboxRole.default],[\"code\",_codeRole.default],[\"columnheader\",_columnheaderRole.default],[\"combobox\",_comboboxRole.default],[\"complementary\",_complementaryRole.default],[\"contentinfo\",_contentinfoRole.default],[\"definition\",_definitionRole.default],[\"deletion\",_deletionRole.default],[\"dialog\",_dialogRole.default],[\"directory\",_directoryRole.default],[\"document\",_documentRole.default],[\"emphasis\",_emphasisRole.default],[\"feed\",_feedRole.default],[\"figure\",_figureRole.default],[\"form\",_formRole.default],[\"generic\",_genericRole.default],[\"grid\",_gridRole.default],[\"gridcell\",_gridcellRole.default],[\"group\",_groupRole.default],[\"heading\",_headingRole.default],[\"img\",_imgRole.default],[\"insertion\",_insertionRole.default],[\"link\",_linkRole.default],[\"list\",_listRole.default],[\"listbox\",_listboxRole.default],[\"listitem\",_listitemRole.default],[\"log\",_logRole.default],[\"main\",_mainRole.default],[\"mark\",_markRole.default],[\"marquee\",_marqueeRole.default],[\"math\",_mathRole.default],[\"menu\",_menuRole.default],[\"menubar\",_menubarRole.default],[\"menuitem\",_menuitemRole.default],[\"menuitemcheckbox\",_menuitemcheckboxRole.default],[\"menuitemradio\",_menuitemradioRole.default],[\"meter\",_meterRole.default],[\"navigation\",_navigationRole.default],[\"none\",_noneRole.default],[\"note\",_noteRole.default],[\"option\",_optionRole.default],[\"paragraph\",_paragraphRole.default],[\"presentation\",_presentationRole.default],[\"progressbar\",_progressbarRole.default],[\"radio\",_radioRole.default],[\"radiogroup\",_radiogroupRole.default],[\"region\",_regionRole.default],[\"row\",_rowRole.default],[\"rowgroup\",_rowgroupRole.default],[\"rowheader\",_rowheaderRole.default],[\"scrollbar\",_scrollbarRole.default],[\"search\",_searchRole.default],[\"searchbox\",_searchboxRole.default],[\"separator\",_separatorRole.default],[\"slider\",_sliderRole.default],[\"spinbutton\",_spinbuttonRole.default],[\"status\",_statusRole.default],[\"strong\",_strongRole.default],[\"subscript\",_subscriptRole.default],[\"superscript\",_superscriptRole.default],[\"switch\",_switchRole.default],[\"tab\",_tabRole.default],[\"table\",_tableRole.default],[\"tablist\",_tablistRole.default],[\"tabpanel\",_tabpanelRole.default],[\"term\",_termRole.default],[\"textbox\",_textboxRole.default],[\"time\",_timeRole.default],[\"timer\",_timerRole.default],[\"toolbar\",_toolbarRole.default],[\"tooltip\",_tooltipRole.default],[\"tree\",_treeRole.default],[\"treegrid\",_treegridRole.default],[\"treeitem\",_treeitemRole.default]],_default2=ariaLiteralRoles;exports.default=_default2;}});var require_docAbstractRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docAbstractRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"abstract [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=docAbstractRole;exports.default=_default2;}});var require_docAcknowledgmentsRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docAcknowledgmentsRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"acknowledgments [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=docAcknowledgmentsRole;exports.default=_default2;}});var require_docAfterwordRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docAfterwordRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"afterword [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=docAfterwordRole;exports.default=_default2;}});var require_docAppendixRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docAppendixRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"appendix [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=docAppendixRole;exports.default=_default2;}});var require_docBacklinkRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docBacklinkRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-errormessage\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"referrer [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"command\",\"link\"]]},_default2=docBacklinkRole;exports.default=_default2;}});var require_docBiblioentryRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docBiblioentryRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"EPUB biblioentry [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[\"doc-bibliography\"],requiredContextRole:[\"doc-bibliography\"],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"listitem\"]]},_default2=docBiblioentryRole;exports.default=_default2;}});var require_docBibliographyRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docBibliographyRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"bibliography [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[\"doc-biblioentry\"]],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=docBibliographyRole;exports.default=_default2;}});var require_docBibliorefRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docBibliorefRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-errormessage\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"biblioref [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"command\",\"link\"]]},_default2=docBibliorefRole;exports.default=_default2;}});var require_docChapterRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docChapterRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"chapter [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=docChapterRole;exports.default=_default2;}});var require_docColophonRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docColophonRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"colophon [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=docColophonRole;exports.default=_default2;}});var require_docConclusionRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docConclusionRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"conclusion [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=docConclusionRole;exports.default=_default2;}});var require_docCoverRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docCoverRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"cover [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"img\"]]},_default2=docCoverRole;exports.default=_default2;}});var require_docCreditRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docCreditRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"credit [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=docCreditRole;exports.default=_default2;}});var require_docCreditsRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docCreditsRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"credits [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=docCreditsRole;exports.default=_default2;}});var require_docDedicationRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docDedicationRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"dedication [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=docDedicationRole;exports.default=_default2;}});var require_docEndnoteRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docEndnoteRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"rearnote [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[\"doc-endnotes\"],requiredContextRole:[\"doc-endnotes\"],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"listitem\"]]},_default2=docEndnoteRole;exports.default=_default2;}});var require_docEndnotesRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docEndnotesRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"rearnotes [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[\"doc-endnote\"]],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=docEndnotesRole;exports.default=_default2;}});var require_docEpigraphRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docEpigraphRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"epigraph [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=docEpigraphRole;exports.default=_default2;}});var require_docEpilogueRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docEpilogueRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"epilogue [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=docEpilogueRole;exports.default=_default2;}});var require_docErrataRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docErrataRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"errata [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=docErrataRole;exports.default=_default2;}});var require_docExampleRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docExampleRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=docExampleRole;exports.default=_default2;}});var require_docFootnoteRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docFootnoteRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"footnote [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=docFootnoteRole;exports.default=_default2;}});var require_docForewordRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docForewordRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"foreword [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=docForewordRole;exports.default=_default2;}});var require_docGlossaryRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docGlossaryRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"glossary [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[\"definition\"],[\"term\"]],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=docGlossaryRole;exports.default=_default2;}});var require_docGlossrefRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docGlossrefRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-errormessage\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"glossref [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"command\",\"link\"]]},_default2=docGlossrefRole;exports.default=_default2;}});var require_docIndexRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docIndexRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"index [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\",\"navigation\"]]},_default2=docIndexRole;exports.default=_default2;}});var require_docIntroductionRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docIntroductionRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"introduction [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=docIntroductionRole;exports.default=_default2;}});var require_docNoterefRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docNoterefRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-errormessage\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"noteref [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"widget\",\"command\",\"link\"]]},_default2=docNoterefRole;exports.default=_default2;}});var require_docNoticeRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docNoticeRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"notice [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"note\"]]},_default2=docNoticeRole;exports.default=_default2;}});var require_docPagebreakRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docPagebreakRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"pagebreak [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"separator\"]]},_default2=docPagebreakRole;exports.default=_default2;}});var require_docPagelistRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docPagelistRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"page-list [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\",\"navigation\"]]},_default2=docPagelistRole;exports.default=_default2;}});var require_docPartRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docPartRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"part [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=docPartRole;exports.default=_default2;}});var require_docPrefaceRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docPrefaceRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"preface [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=docPrefaceRole;exports.default=_default2;}});var require_docPrologueRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docPrologueRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"prologue [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\"]]},_default2=docPrologueRole;exports.default=_default2;}});var require_docPullquoteRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docPullquoteRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:\"pullquote [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"none\"]]},_default2=docPullquoteRole;exports.default=_default2;}});var require_docQnaRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docQnaRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"qna [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\"]]},_default2=docQnaRole;exports.default=_default2;}});var require_docSubtitleRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docSubtitleRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"subtitle [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"sectionhead\"]]},_default2=docSubtitleRole;exports.default=_default2;}});var require_docTipRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docTipRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"help [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"note\"]]},_default2=docTipRole;exports.default=_default2;}});var require_docTocRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var docTocRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{concept:{name:\"toc [EPUB-SSV]\"},module:\"EPUB\"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"landmark\",\"navigation\"]]},_default2=docTocRole;exports.default=_default2;}});var require_ariaDpubRoles=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var _docAbstractRole=_interopRequireDefault(require_docAbstractRole()),_docAcknowledgmentsRole=_interopRequireDefault(require_docAcknowledgmentsRole()),_docAfterwordRole=_interopRequireDefault(require_docAfterwordRole()),_docAppendixRole=_interopRequireDefault(require_docAppendixRole()),_docBacklinkRole=_interopRequireDefault(require_docBacklinkRole()),_docBiblioentryRole=_interopRequireDefault(require_docBiblioentryRole()),_docBibliographyRole=_interopRequireDefault(require_docBibliographyRole()),_docBibliorefRole=_interopRequireDefault(require_docBibliorefRole()),_docChapterRole=_interopRequireDefault(require_docChapterRole()),_docColophonRole=_interopRequireDefault(require_docColophonRole()),_docConclusionRole=_interopRequireDefault(require_docConclusionRole()),_docCoverRole=_interopRequireDefault(require_docCoverRole()),_docCreditRole=_interopRequireDefault(require_docCreditRole()),_docCreditsRole=_interopRequireDefault(require_docCreditsRole()),_docDedicationRole=_interopRequireDefault(require_docDedicationRole()),_docEndnoteRole=_interopRequireDefault(require_docEndnoteRole()),_docEndnotesRole=_interopRequireDefault(require_docEndnotesRole()),_docEpigraphRole=_interopRequireDefault(require_docEpigraphRole()),_docEpilogueRole=_interopRequireDefault(require_docEpilogueRole()),_docErrataRole=_interopRequireDefault(require_docErrataRole()),_docExampleRole=_interopRequireDefault(require_docExampleRole()),_docFootnoteRole=_interopRequireDefault(require_docFootnoteRole()),_docForewordRole=_interopRequireDefault(require_docForewordRole()),_docGlossaryRole=_interopRequireDefault(require_docGlossaryRole()),_docGlossrefRole=_interopRequireDefault(require_docGlossrefRole()),_docIndexRole=_interopRequireDefault(require_docIndexRole()),_docIntroductionRole=_interopRequireDefault(require_docIntroductionRole()),_docNoterefRole=_interopRequireDefault(require_docNoterefRole()),_docNoticeRole=_interopRequireDefault(require_docNoticeRole()),_docPagebreakRole=_interopRequireDefault(require_docPagebreakRole()),_docPagelistRole=_interopRequireDefault(require_docPagelistRole()),_docPartRole=_interopRequireDefault(require_docPartRole()),_docPrefaceRole=_interopRequireDefault(require_docPrefaceRole()),_docPrologueRole=_interopRequireDefault(require_docPrologueRole()),_docPullquoteRole=_interopRequireDefault(require_docPullquoteRole()),_docQnaRole=_interopRequireDefault(require_docQnaRole()),_docSubtitleRole=_interopRequireDefault(require_docSubtitleRole()),_docTipRole=_interopRequireDefault(require_docTipRole()),_docTocRole=_interopRequireDefault(require_docTocRole());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var ariaDpubRoles=[[\"doc-abstract\",_docAbstractRole.default],[\"doc-acknowledgments\",_docAcknowledgmentsRole.default],[\"doc-afterword\",_docAfterwordRole.default],[\"doc-appendix\",_docAppendixRole.default],[\"doc-backlink\",_docBacklinkRole.default],[\"doc-biblioentry\",_docBiblioentryRole.default],[\"doc-bibliography\",_docBibliographyRole.default],[\"doc-biblioref\",_docBibliorefRole.default],[\"doc-chapter\",_docChapterRole.default],[\"doc-colophon\",_docColophonRole.default],[\"doc-conclusion\",_docConclusionRole.default],[\"doc-cover\",_docCoverRole.default],[\"doc-credit\",_docCreditRole.default],[\"doc-credits\",_docCreditsRole.default],[\"doc-dedication\",_docDedicationRole.default],[\"doc-endnote\",_docEndnoteRole.default],[\"doc-endnotes\",_docEndnotesRole.default],[\"doc-epigraph\",_docEpigraphRole.default],[\"doc-epilogue\",_docEpilogueRole.default],[\"doc-errata\",_docErrataRole.default],[\"doc-example\",_docExampleRole.default],[\"doc-footnote\",_docFootnoteRole.default],[\"doc-foreword\",_docForewordRole.default],[\"doc-glossary\",_docGlossaryRole.default],[\"doc-glossref\",_docGlossrefRole.default],[\"doc-index\",_docIndexRole.default],[\"doc-introduction\",_docIntroductionRole.default],[\"doc-noteref\",_docNoterefRole.default],[\"doc-notice\",_docNoticeRole.default],[\"doc-pagebreak\",_docPagebreakRole.default],[\"doc-pagelist\",_docPagelistRole.default],[\"doc-part\",_docPartRole.default],[\"doc-preface\",_docPrefaceRole.default],[\"doc-prologue\",_docPrologueRole.default],[\"doc-pullquote\",_docPullquoteRole.default],[\"doc-qna\",_docQnaRole.default],[\"doc-subtitle\",_docSubtitleRole.default],[\"doc-tip\",_docTipRole.default],[\"doc-toc\",_docTocRole.default]],_default2=ariaDpubRoles;exports.default=_default2;}});var require_graphicsDocumentRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var graphicsDocumentRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{module:\"GRAPHICS\",concept:{name:\"graphics-object\"}},{module:\"ARIA\",concept:{name:\"img\"}},{module:\"ARIA\",concept:{name:\"article\"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"document\"]]},_default2=graphicsDocumentRole;exports.default=_default2;}});var require_graphicsObjectRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var graphicsObjectRole={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[\"author\",\"contents\"],prohibitedProps:[],props:{\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[{module:\"GRAPHICS\",concept:{name:\"graphics-document\"}},{module:\"ARIA\",concept:{name:\"group\"}},{module:\"ARIA\",concept:{name:\"img\"}},{module:\"GRAPHICS\",concept:{name:\"graphics-symbol\"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"group\"]]},_default2=graphicsObjectRole;exports.default=_default2;}});var require_graphicsSymbolRole=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var graphicsSymbolRole={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[\"author\"],prohibitedProps:[],props:{\"aria-disabled\":null,\"aria-errormessage\":null,\"aria-expanded\":null,\"aria-haspopup\":null,\"aria-invalid\":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[\"roletype\",\"structure\",\"section\",\"img\"]]},_default2=graphicsSymbolRole;exports.default=_default2;}});var require_ariaGraphicsRoles=__commonJS({\"../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var _graphicsDocumentRole=_interopRequireDefault(require_graphicsDocumentRole()),_graphicsObjectRole=_interopRequireDefault(require_graphicsObjectRole()),_graphicsSymbolRole=_interopRequireDefault(require_graphicsSymbolRole());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var ariaGraphicsRoles=[[\"graphics-document\",_graphicsDocumentRole.default],[\"graphics-object\",_graphicsObjectRole.default],[\"graphics-symbol\",_graphicsSymbolRole.default]],_default2=ariaGraphicsRoles;exports.default=_default2;}});var require_rolesMap=__commonJS({\"../../node_modules/aria-query/lib/rolesMap.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var _ariaAbstractRoles=_interopRequireDefault(require_ariaAbstractRoles()),_ariaLiteralRoles=_interopRequireDefault(require_ariaLiteralRoles()),_ariaDpubRoles=_interopRequireDefault(require_ariaDpubRoles()),_ariaGraphicsRoles=_interopRequireDefault(require_ariaGraphicsRoles()),_iterationDecorator=_interopRequireDefault(require_iterationDecorator());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _defineProperty5(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<\"u\"&&o[Symbol.iterator]||o[\"@@iterator\"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==\"number\"){it&&(o=it);var i=0,F=function(){};return {s:F,n:function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var normalCompletion=!0,didErr=!1,err;return {s:function(){it=it.call(o);},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3;},f:function(){try{!normalCompletion&&it.return!=null&&it.return();}finally{if(didErr)throw err}}}}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(o,minLen){if(o){if(typeof o==\"string\")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n===\"Object\"&&o.constructor&&(n=o.constructor.name),n===\"Map\"||n===\"Set\")return Array.from(o);if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&arguments[1]!==void 0?arguments[1]:null,_iterator3=_createForOfIteratorHelper(roles3),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _step3$value=_slicedToArray(_step3.value,2),key=_step3$value[0],values=_step3$value[1];fn3.call(thisArg,values,key,roles3);}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}},get:function(key){var item=roles3.find(function(tuple){return tuple[0]===key});return item&&item[1]},has:function(key){return !!rolesMap.get(key)},keys:function(){return roles3.map(function(_ref5){var _ref6=_slicedToArray(_ref5,1),key=_ref6[0];return key})},values:function(){return roles3.map(function(_ref7){var _ref8=_slicedToArray(_ref7,2),values2=_ref8[1];return values2})}},_default2=(0, _iterationDecorator.default)(rolesMap,rolesMap.entries());exports.default=_default2;}});var require_lite=__commonJS({\"../../node_modules/dequal/lite/index.js\"(exports){var has=Object.prototype.hasOwnProperty;function dequal(foo,bar){var ctor,len;if(foo===bar)return !0;if(foo&&bar&&(ctor=foo.constructor)===bar.constructor){if(ctor===Date)return foo.getTime()===bar.getTime();if(ctor===RegExp)return foo.toString()===bar.toString();if(ctor===Array){if((len=foo.length)===bar.length)for(;len--&&dequal(foo[len],bar[len]););return len===-1}if(!ctor||typeof foo==\"object\"){len=0;for(ctor in foo)if(has.call(foo,ctor)&&++len&&!has.call(bar,ctor)||!(ctor in bar)||!dequal(foo[ctor],bar[ctor]))return !1;return Object.keys(bar).length===len}}return foo!==foo&&bar!==bar}exports.dequal=dequal;}});var require_elementRoleMap=__commonJS({\"../../node_modules/aria-query/lib/elementRoleMap.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var _lite=require_lite(),_iterationDecorator=_interopRequireDefault(require_iterationDecorator()),_rolesMap=_interopRequireDefault(require_rolesMap());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _slicedToArray(arr,i2){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i2)||_unsupportedIterableToArray(arr,i2)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit(arr,i2){var _i=arr==null?null:typeof Symbol<\"u\"&&arr[Symbol.iterator]||arr[\"@@iterator\"];if(_i!=null){var _arr=[],_n=!0,_d=!1,_s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i2&&_arr.length===i2));_n=!0);}catch(err){_d=!0,_e=err;}finally{try{!_n&&_i.return!=null&&_i.return();}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<\"u\"&&o[Symbol.iterator]||o[\"@@iterator\"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==\"number\"){it&&(o=it);var i2=0,F=function(){};return {s:F,n:function(){return i2>=o.length?{done:!0}:{done:!1,value:o[i2++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var normalCompletion=!0,didErr=!1,err;return {s:function(){it=it.call(o);},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3;},f:function(){try{!normalCompletion&&it.return!=null&&it.return();}finally{if(didErr)throw err}}}}function _unsupportedIterableToArray(o,minLen){if(o){if(typeof o==\"string\")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n===\"Object\"&&o.constructor&&(n=o.constructor.name),n===\"Map\"||n===\"Set\")return Array.from(o);if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i2=0,arr2=new Array(len);i21&&arguments[1]!==void 0?arguments[1]:null,_iterator=_createForOfIteratorHelper(elementRoles3),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),_key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,_key,elementRoles3);}}catch(err){_iterator.e(err);}finally{_iterator.f();}},get:function(key2){var item=elementRoles3.find(function(tuple){return key2.name===tuple[0].name&&(0, _lite.dequal)(key2.attributes,tuple[0].attributes)});return item&&item[1]},has:function(key2){return !!elementRoleMap.get(key2)},keys:function(){return elementRoles3.map(function(_ref){var _ref2=_slicedToArray(_ref,1),key2=_ref2[0];return key2})},values:function(){return elementRoles3.map(function(_ref3){var _ref4=_slicedToArray(_ref3,2),values2=_ref4[1];return values2})}},_default2=(0, _iterationDecorator.default)(elementRoleMap,elementRoleMap.entries());exports.default=_default2;}});var require_roleElementMap=__commonJS({\"../../node_modules/aria-query/lib/roleElementMap.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=void 0;var _iterationDecorator=_interopRequireDefault(require_iterationDecorator()),_rolesMap=_interopRequireDefault(require_rolesMap());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _slicedToArray(arr,i2){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i2)||_unsupportedIterableToArray(arr,i2)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit(arr,i2){var _i=arr==null?null:typeof Symbol<\"u\"&&arr[Symbol.iterator]||arr[\"@@iterator\"];if(_i!=null){var _arr=[],_n=!0,_d=!1,_s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i2&&_arr.length===i2));_n=!0);}catch(err){_d=!0,_e=err;}finally{try{!_n&&_i.return!=null&&_i.return();}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<\"u\"&&o[Symbol.iterator]||o[\"@@iterator\"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==\"number\"){it&&(o=it);var i2=0,F=function(){};return {s:F,n:function(){return i2>=o.length?{done:!0}:{done:!1,value:o[i2++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var normalCompletion=!0,didErr=!1,err;return {s:function(){it=it.call(o);},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3;},f:function(){try{!normalCompletion&&it.return!=null&&it.return();}finally{if(didErr)throw err}}}}function _unsupportedIterableToArray(o,minLen){if(o){if(typeof o==\"string\")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n===\"Object\"&&o.constructor&&(n=o.constructor.name),n===\"Map\"||n===\"Set\")return Array.from(o);if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i2=0,arr2=new Array(len);i20&&roleElement.push([key,relationConcepts]);}var key,role,relationConcepts,concepts,relation,concept,k2,i,roleElementMap={entries:function(){return roleElement},forEach:function(fn3){var thisArg=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_iterator=_createForOfIteratorHelper(roleElement),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),_key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,_key,roleElement);}}catch(err){_iterator.e(err);}finally{_iterator.f();}},get:function(key2){var item=roleElement.find(function(tuple){return tuple[0]===key2});return item&&item[1]},has:function(key2){return !!roleElementMap.get(key2)},keys:function(){return roleElement.map(function(_ref){var _ref2=_slicedToArray(_ref,1),key2=_ref2[0];return key2})},values:function(){return roleElement.map(function(_ref3){var _ref4=_slicedToArray(_ref3,2),values2=_ref4[1];return values2})}},_default2=(0, _iterationDecorator.default)(roleElementMap,roleElementMap.entries());exports.default=_default2;}});var require_lib=__commonJS({\"../../node_modules/aria-query/lib/index.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.roles=exports.roleElements=exports.elementRoles=exports.dom=exports.aria=void 0;var _ariaPropsMap=_interopRequireDefault(require_ariaPropsMap()),_domMap=_interopRequireDefault(require_domMap()),_rolesMap=_interopRequireDefault(require_rolesMap()),_elementRoleMap=_interopRequireDefault(require_elementRoleMap()),_roleElementMap=_interopRequireDefault(require_roleElementMap());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var aria=_ariaPropsMap.default;exports.aria=aria;var dom=_domMap.default;exports.dom=dom;var roles3=_rolesMap.default;exports.roles=roles3;var elementRoles3=_elementRoleMap.default;exports.elementRoles=elementRoles3;var roleElements2=_roleElementMap.default;exports.roleElements=roleElements2;}});var require_color_name=__commonJS({\"../../node_modules/color-name/index.js\"(exports,module2){module2.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};}});var require_conversions=__commonJS({\"../../node_modules/color-convert/conversions.js\"(exports,module2){var cssKeywords=require_color_name(),reverseKeywords={};for(let key of Object.keys(cssKeywords))reverseKeywords[cssKeywords[key]]=key;var convert={rgb:{channels:3,labels:\"rgb\"},hsl:{channels:3,labels:\"hsl\"},hsv:{channels:3,labels:\"hsv\"},hwb:{channels:3,labels:\"hwb\"},cmyk:{channels:4,labels:\"cmyk\"},xyz:{channels:3,labels:\"xyz\"},lab:{channels:3,labels:\"lab\"},lch:{channels:3,labels:\"lch\"},hex:{channels:1,labels:[\"hex\"]},keyword:{channels:1,labels:[\"keyword\"]},ansi16:{channels:1,labels:[\"ansi16\"]},ansi256:{channels:1,labels:[\"ansi256\"]},hcg:{channels:3,labels:[\"h\",\"c\",\"g\"]},apple:{channels:3,labels:[\"r16\",\"g16\",\"b16\"]},gray:{channels:1,labels:[\"gray\"]}};module2.exports=convert;for(let model of Object.keys(convert)){if(!(\"channels\"in convert[model]))throw new Error(\"missing channels property: \"+model);if(!(\"labels\"in convert[model]))throw new Error(\"missing channel labels property: \"+model);if(convert[model].labels.length!==convert[model].channels)throw new Error(\"channel and label counts mismatch: \"+model);let{channels,labels}=convert[model];delete convert[model].channels,delete convert[model].labels,Object.defineProperty(convert[model],\"channels\",{value:channels}),Object.defineProperty(convert[model],\"labels\",{value:labels});}convert.rgb.hsl=function(rgb){let r=rgb[0]/255,g3=rgb[1]/255,b=rgb[2]/255,min=Math.min(r,g3,b),max=Math.max(r,g3,b),delta=max-min,h2,s;max===min?h2=0:r===max?h2=(g3-b)/delta:g3===max?h2=2+(b-r)/delta:b===max&&(h2=4+(r-g3)/delta),h2=Math.min(h2*60,360),h2<0&&(h2+=360);let l=(min+max)/2;return max===min?s=0:l<=.5?s=delta/(max+min):s=delta/(2-max-min),[h2,s*100,l*100]};convert.rgb.hsv=function(rgb){let rdif,gdif,bdif,h2,s,r=rgb[0]/255,g3=rgb[1]/255,b=rgb[2]/255,v=Math.max(r,g3,b),diff2=v-Math.min(r,g3,b),diffc=function(c){return (v-c)/6/diff2+1/2};return diff2===0?(h2=0,s=0):(s=diff2/v,rdif=diffc(r),gdif=diffc(g3),bdif=diffc(b),r===v?h2=bdif-gdif:g3===v?h2=1/3+rdif-bdif:b===v&&(h2=2/3+gdif-rdif),h2<0?h2+=1:h2>1&&(h2-=1)),[h2*360,s*100,v*100]};convert.rgb.hwb=function(rgb){let r=rgb[0],g3=rgb[1],b=rgb[2],h2=convert.rgb.hsl(rgb)[0],w2=1/255*Math.min(r,Math.min(g3,b));return b=1-1/255*Math.max(r,Math.max(g3,b)),[h2,w2*100,b*100]};convert.rgb.cmyk=function(rgb){let r=rgb[0]/255,g3=rgb[1]/255,b=rgb[2]/255,k2=Math.min(1-r,1-g3,1-b),c=(1-r-k2)/(1-k2)||0,m2=(1-g3-k2)/(1-k2)||0,y2=(1-b-k2)/(1-k2)||0;return [c*100,m2*100,y2*100,k2*100]};function comparativeDistance(x2,y2){return (x2[0]-y2[0])**2+(x2[1]-y2[1])**2+(x2[2]-y2[2])**2}convert.rgb.keyword=function(rgb){let reversed=reverseKeywords[rgb];if(reversed)return reversed;let currentClosestDistance=1/0,currentClosestKeyword;for(let keyword of Object.keys(cssKeywords)){let value=cssKeywords[keyword],distance=comparativeDistance(rgb,value);distance.04045?((r+.055)/1.055)**2.4:r/12.92,g3=g3>.04045?((g3+.055)/1.055)**2.4:g3/12.92,b=b>.04045?((b+.055)/1.055)**2.4:b/12.92;let x2=r*.4124+g3*.3576+b*.1805,y2=r*.2126+g3*.7152+b*.0722,z=r*.0193+g3*.1192+b*.9505;return [x2*100,y2*100,z*100]};convert.rgb.lab=function(rgb){let xyz=convert.rgb.xyz(rgb),x2=xyz[0],y2=xyz[1],z=xyz[2];x2/=95.047,y2/=100,z/=108.883,x2=x2>.008856?x2**(1/3):7.787*x2+16/116,y2=y2>.008856?y2**(1/3):7.787*y2+16/116,z=z>.008856?z**(1/3):7.787*z+16/116;let l=116*y2-16,a2=500*(x2-y2),b=200*(y2-z);return [l,a2,b]};convert.hsl.rgb=function(hsl){let h2=hsl[0]/360,s=hsl[1]/100,l=hsl[2]/100,t2,t3,val;if(s===0)return val=l*255,[val,val,val];l<.5?t2=l*(1+s):t2=l+s-l*s;let t1=2*l-t2,rgb=[0,0,0];for(let i=0;i<3;i++)t3=h2+1/3*-(i-1),t3<0&&t3++,t3>1&&t3--,6*t3<1?val=t1+(t2-t1)*6*t3:2*t3<1?val=t2:3*t3<2?val=t1+(t2-t1)*(2/3-t3)*6:val=t1,rgb[i]=val*255;return rgb};convert.hsl.hsv=function(hsl){let h2=hsl[0],s=hsl[1]/100,l=hsl[2]/100,smin=s,lmin=Math.max(l,.01);l*=2,s*=l<=1?l:2-l,smin*=lmin<=1?lmin:2-lmin;let v=(l+s)/2,sv=l===0?2*smin/(lmin+smin):2*s/(l+s);return [h2,sv*100,v*100]};convert.hsv.rgb=function(hsv){let h2=hsv[0]/60,s=hsv[1]/100,v=hsv[2]/100,hi=Math.floor(h2)%6,f4=h2-Math.floor(h2),p3=255*v*(1-s),q=255*v*(1-s*f4),t=255*v*(1-s*(1-f4));switch(v*=255,hi){case 0:return [v,t,p3];case 1:return [q,v,p3];case 2:return [p3,v,t];case 3:return [p3,q,v];case 4:return [t,p3,v];case 5:return [v,p3,q]}};convert.hsv.hsl=function(hsv){let h2=hsv[0],s=hsv[1]/100,v=hsv[2]/100,vmin=Math.max(v,.01),sl,l;l=(2-s)*v;let lmin=(2-s)*vmin;return sl=s*vmin,sl/=lmin<=1?lmin:2-lmin,sl=sl||0,l/=2,[h2,sl*100,l*100]};convert.hwb.rgb=function(hwb){let h2=hwb[0]/360,wh=hwb[1]/100,bl=hwb[2]/100,ratio=wh+bl,f4;ratio>1&&(wh/=ratio,bl/=ratio);let i=Math.floor(6*h2),v=1-bl;f4=6*h2-i,i&1&&(f4=1-f4);let n=wh+f4*(v-wh),r,g3,b;switch(i){default:case 6:case 0:r=v,g3=n,b=wh;break;case 1:r=n,g3=v,b=wh;break;case 2:r=wh,g3=v,b=n;break;case 3:r=wh,g3=n,b=v;break;case 4:r=n,g3=wh,b=v;break;case 5:r=v,g3=wh,b=n;break}return [r*255,g3*255,b*255]};convert.cmyk.rgb=function(cmyk){let c=cmyk[0]/100,m2=cmyk[1]/100,y2=cmyk[2]/100,k2=cmyk[3]/100,r=1-Math.min(1,c*(1-k2)+k2),g3=1-Math.min(1,m2*(1-k2)+k2),b=1-Math.min(1,y2*(1-k2)+k2);return [r*255,g3*255,b*255]};convert.xyz.rgb=function(xyz){let x2=xyz[0]/100,y2=xyz[1]/100,z=xyz[2]/100,r,g3,b;return r=x2*3.2406+y2*-1.5372+z*-.4986,g3=x2*-.9689+y2*1.8758+z*.0415,b=x2*.0557+y2*-.204+z*1.057,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,g3=g3>.0031308?1.055*g3**(1/2.4)-.055:g3*12.92,b=b>.0031308?1.055*b**(1/2.4)-.055:b*12.92,r=Math.min(Math.max(0,r),1),g3=Math.min(Math.max(0,g3),1),b=Math.min(Math.max(0,b),1),[r*255,g3*255,b*255]};convert.xyz.lab=function(xyz){let x2=xyz[0],y2=xyz[1],z=xyz[2];x2/=95.047,y2/=100,z/=108.883,x2=x2>.008856?x2**(1/3):7.787*x2+16/116,y2=y2>.008856?y2**(1/3):7.787*y2+16/116,z=z>.008856?z**(1/3):7.787*z+16/116;let l=116*y2-16,a2=500*(x2-y2),b=200*(y2-z);return [l,a2,b]};convert.lab.xyz=function(lab){let l=lab[0],a2=lab[1],b=lab[2],x2,y2,z;y2=(l+16)/116,x2=a2/500+y2,z=y2-b/200;let y22=y2**3,x22=x2**3,z2=z**3;return y2=y22>.008856?y22:(y2-16/116)/7.787,x2=x22>.008856?x22:(x2-16/116)/7.787,z=z2>.008856?z2:(z-16/116)/7.787,x2*=95.047,y2*=100,z*=108.883,[x2,y2,z]};convert.lab.lch=function(lab){let l=lab[0],a2=lab[1],b=lab[2],h2;h2=Math.atan2(b,a2)*360/2/Math.PI,h2<0&&(h2+=360);let c=Math.sqrt(a2*a2+b*b);return [l,c,h2]};convert.lch.lab=function(lch){let l=lch[0],c=lch[1],hr=lch[2]/360*2*Math.PI,a2=c*Math.cos(hr),b=c*Math.sin(hr);return [l,a2,b]};convert.rgb.ansi16=function(args,saturation=null){let[r,g3,b]=args,value=saturation===null?convert.rgb.hsv(args)[2]:saturation;if(value=Math.round(value/50),value===0)return 30;let ansi=30+(Math.round(b/255)<<2|Math.round(g3/255)<<1|Math.round(r/255));return value===2&&(ansi+=60),ansi};convert.hsv.ansi16=function(args){return convert.rgb.ansi16(convert.hsv.rgb(args),args[2])};convert.rgb.ansi256=function(args){let r=args[0],g3=args[1],b=args[2];return r===g3&&g3===b?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(g3/255*5)+Math.round(b/255*5)};convert.ansi16.rgb=function(args){let color=args%10;if(color===0||color===7)return args>50&&(color+=3.5),color=color/10.5*255,[color,color,color];let mult=(~~(args>50)+1)*.5,r=(color&1)*mult*255,g3=(color>>1&1)*mult*255,b=(color>>2&1)*mult*255;return [r,g3,b]};convert.ansi256.rgb=function(args){if(args>=232){let c=(args-232)*10+8;return [c,c,c]}args-=16;let rem,r=Math.floor(args/36)/5*255,g3=Math.floor((rem=args%36)/6)/5*255,b=rem%6/5*255;return [r,g3,b]};convert.rgb.hex=function(args){let string=(((Math.round(args[0])&255)<<16)+((Math.round(args[1])&255)<<8)+(Math.round(args[2])&255)).toString(16).toUpperCase();return \"000000\".substring(string.length)+string};convert.hex.rgb=function(args){let match=args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match)return [0,0,0];let colorString=match[0];match[0].length===3&&(colorString=colorString.split(\"\").map(char=>char+char).join(\"\"));let integer=parseInt(colorString,16),r=integer>>16&255,g3=integer>>8&255,b=integer&255;return [r,g3,b]};convert.rgb.hcg=function(rgb){let r=rgb[0]/255,g3=rgb[1]/255,b=rgb[2]/255,max=Math.max(Math.max(r,g3),b),min=Math.min(Math.min(r,g3),b),chroma=max-min,grayscale,hue;return chroma<1?grayscale=min/(1-chroma):grayscale=0,chroma<=0?hue=0:max===r?hue=(g3-b)/chroma%6:max===g3?hue=2+(b-r)/chroma:hue=4+(r-g3)/chroma,hue/=6,hue%=1,[hue*360,chroma*100,grayscale*100]};convert.hsl.hcg=function(hsl){let s=hsl[1]/100,l=hsl[2]/100,c=l<.5?2*s*l:2*s*(1-l),f4=0;return c<1&&(f4=(l-.5*c)/(1-c)),[hsl[0],c*100,f4*100]};convert.hsv.hcg=function(hsv){let s=hsv[1]/100,v=hsv[2]/100,c=s*v,f4=0;return c<1&&(f4=(v-c)/(1-c)),[hsv[0],c*100,f4*100]};convert.hcg.rgb=function(hcg){let h2=hcg[0]/360,c=hcg[1]/100,g3=hcg[2]/100;if(c===0)return [g3*255,g3*255,g3*255];let pure=[0,0,0],hi=h2%1*6,v=hi%1,w2=1-v,mg=0;switch(Math.floor(hi)){case 0:pure[0]=1,pure[1]=v,pure[2]=0;break;case 1:pure[0]=w2,pure[1]=1,pure[2]=0;break;case 2:pure[0]=0,pure[1]=1,pure[2]=v;break;case 3:pure[0]=0,pure[1]=w2,pure[2]=1;break;case 4:pure[0]=v,pure[1]=0,pure[2]=1;break;default:pure[0]=1,pure[1]=0,pure[2]=w2;}return mg=(1-c)*g3,[(c*pure[0]+mg)*255,(c*pure[1]+mg)*255,(c*pure[2]+mg)*255]};convert.hcg.hsv=function(hcg){let c=hcg[1]/100,g3=hcg[2]/100,v=c+g3*(1-c),f4=0;return v>0&&(f4=c/v),[hcg[0],f4*100,v*100]};convert.hcg.hsl=function(hcg){let c=hcg[1]/100,l=hcg[2]/100*(1-c)+.5*c,s=0;return l>0&&l<.5?s=c/(2*l):l>=.5&&l<1&&(s=c/(2*(1-l))),[hcg[0],s*100,l*100]};convert.hcg.hwb=function(hcg){let c=hcg[1]/100,g3=hcg[2]/100,v=c+g3*(1-c);return [hcg[0],(v-c)*100,(1-v)*100]};convert.hwb.hcg=function(hwb){let w2=hwb[1]/100,v=1-hwb[2]/100,c=v-w2,g3=0;return c<1&&(g3=(v-c)/(1-c)),[hwb[0],c*100,g3*100]};convert.apple.rgb=function(apple){return [apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255]};convert.rgb.apple=function(rgb){return [rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535]};convert.gray.rgb=function(args){return [args[0]/100*255,args[0]/100*255,args[0]/100*255]};convert.gray.hsl=function(args){return [0,0,args[0]]};convert.gray.hsv=convert.gray.hsl;convert.gray.hwb=function(gray){return [0,100,gray[0]]};convert.gray.cmyk=function(gray){return [0,0,0,gray[0]]};convert.gray.lab=function(gray){return [gray[0],0,0]};convert.gray.hex=function(gray){let val=Math.round(gray[0]/100*255)&255,string=((val<<16)+(val<<8)+val).toString(16).toUpperCase();return \"000000\".substring(string.length)+string};convert.rgb.gray=function(rgb){return [(rgb[0]+rgb[1]+rgb[2])/3/255*100]};}});var require_route=__commonJS({\"../../node_modules/color-convert/route.js\"(exports,module2){var conversions=require_conversions();function buildGraph(){let graph={},models=Object.keys(conversions);for(let len=models.length,i=0;i1&&(args=arg0),fn3(args))};return \"conversion\"in fn3&&(wrappedFn.conversion=fn3.conversion),wrappedFn}function wrapRounded(fn3){let wrappedFn=function(...args){let arg0=args[0];if(arg0==null)return arg0;arg0.length>1&&(args=arg0);let result=fn3(args);if(typeof result==\"object\")for(let len=result.length,i=0;i{convert[fromModel]={},Object.defineProperty(convert[fromModel],\"channels\",{value:conversions[fromModel].channels}),Object.defineProperty(convert[fromModel],\"labels\",{value:conversions[fromModel].labels});let routes=route(fromModel);Object.keys(routes).forEach(toModel=>{let fn3=routes[toModel];convert[fromModel][toModel]=wrapRounded(fn3),convert[fromModel][toModel].raw=wrapRaw(fn3);});});module2.exports=convert;}});var require_ansi_styles=__commonJS({\"../../node_modules/ansi-styles/index.js\"(exports,module2){var wrapAnsi16=(fn3,offset)=>(...args)=>`\\x1B[${fn3(...args)+offset}m`,wrapAnsi256=(fn3,offset)=>(...args)=>{let code=fn3(...args);return `\\x1B[${38+offset};5;${code}m`},wrapAnsi16m=(fn3,offset)=>(...args)=>{let rgb=fn3(...args);return `\\x1B[${38+offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`},ansi2ansi=n=>n,rgb2rgb=(r,g3,b)=>[r,g3,b],setLazyProperty=(object,property,get2)=>{Object.defineProperty(object,property,{get:()=>{let value=get2();return Object.defineProperty(object,property,{value,enumerable:!0,configurable:!0}),value},enumerable:!0,configurable:!0});},colorConvert,makeDynamicStyles=(wrap,targetSpace,identity,isBackground)=>{colorConvert===void 0&&(colorConvert=require_color_convert());let offset=isBackground?10:0,styles3={};for(let[sourceSpace,suite]of Object.entries(colorConvert)){let name=sourceSpace===\"ansi16\"?\"ansi\":sourceSpace;sourceSpace===targetSpace?styles3[name]=wrap(identity,offset):typeof suite==\"object\"&&(styles3[name]=wrap(suite[targetSpace],offset));}return styles3};function assembleStyles(){let codes=new Map,styles3={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};styles3.color.gray=styles3.color.blackBright,styles3.bgColor.bgGray=styles3.bgColor.bgBlackBright,styles3.color.grey=styles3.color.blackBright,styles3.bgColor.bgGrey=styles3.bgColor.bgBlackBright;for(let[groupName,group]of Object.entries(styles3)){for(let[styleName,style]of Object.entries(group))styles3[styleName]={open:`\\x1B[${style[0]}m`,close:`\\x1B[${style[1]}m`},group[styleName]=styles3[styleName],codes.set(style[0],style[1]);Object.defineProperty(styles3,groupName,{value:group,enumerable:!1});}return Object.defineProperty(styles3,\"codes\",{value:codes,enumerable:!1}),styles3.color.close=\"\\x1B[39m\",styles3.bgColor.close=\"\\x1B[49m\",setLazyProperty(styles3.color,\"ansi\",()=>makeDynamicStyles(wrapAnsi16,\"ansi16\",ansi2ansi,!1)),setLazyProperty(styles3.color,\"ansi256\",()=>makeDynamicStyles(wrapAnsi256,\"ansi256\",ansi2ansi,!1)),setLazyProperty(styles3.color,\"ansi16m\",()=>makeDynamicStyles(wrapAnsi16m,\"rgb\",rgb2rgb,!1)),setLazyProperty(styles3.bgColor,\"ansi\",()=>makeDynamicStyles(wrapAnsi16,\"ansi16\",ansi2ansi,!0)),setLazyProperty(styles3.bgColor,\"ansi256\",()=>makeDynamicStyles(wrapAnsi256,\"ansi256\",ansi2ansi,!0)),setLazyProperty(styles3.bgColor,\"ansi16m\",()=>makeDynamicStyles(wrapAnsi16m,\"rgb\",rgb2rgb,!0)),styles3}Object.defineProperty(module2,\"exports\",{enumerable:!0,get:assembleStyles});}});var require_browser=__commonJS({\"../../node_modules/supports-color/browser.js\"(exports,module2){module2.exports={stdout:!1,stderr:!1};}});var require_util2=__commonJS({\"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/util.js\"(exports,module2){var stringReplaceAll=(string,substring,replacer)=>{let index=string.indexOf(substring);if(index===-1)return string;let substringLength=substring.length,endIndex=0,returnValue=\"\";do returnValue+=string.substr(endIndex,index-endIndex)+substring+replacer,endIndex=index+substringLength,index=string.indexOf(substring,endIndex);while(index!==-1);return returnValue+=string.substr(endIndex),returnValue},stringEncaseCRLFWithFirstIndex=(string,prefix,postfix,index)=>{let endIndex=0,returnValue=\"\";do{let gotCR=string[index-1]===\"\\r\";returnValue+=string.substr(endIndex,(gotCR?index-1:index)-endIndex)+prefix+(gotCR?`\\r\n`:`\n`)+postfix,endIndex=index+1,index=string.indexOf(`\n`,endIndex);}while(index!==-1);return returnValue+=string.substr(endIndex),returnValue};module2.exports={stringReplaceAll,stringEncaseCRLFWithFirstIndex};}});var require_templates=__commonJS({\"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/templates.js\"(exports,module2){var TEMPLATE_REGEX=/(?:\\\\(u(?:[a-f\\d]{4}|\\{[a-f\\d]{1,6}\\})|x[a-f\\d]{2}|.))|(?:\\{(~)?(\\w+(?:\\([^)]*\\))?(?:\\.\\w+(?:\\([^)]*\\))?)*)(?:[ \\t]|(?=\\r?\\n)))|(\\})|((?:.|[\\r\\n\\f])+?)/gi,STYLE_REGEX=/(?:^|\\.)(\\w+)(?:\\(([^)]*)\\))?/g,STRING_REGEX=/^(['\"])((?:\\\\.|(?!\\1)[^\\\\])*)\\1$/,ESCAPE_REGEX=/\\\\(u(?:[a-f\\d]{4}|\\{[a-f\\d]{1,6}\\})|x[a-f\\d]{2}|.)|([^\\\\])/gi,ESCAPES=new Map([[\"n\",`\n`],[\"r\",\"\\r\"],[\"t\",\"\t\"],[\"b\",\"\\b\"],[\"f\",\"\\f\"],[\"v\",\"\\v\"],[\"0\",\"\\0\"],[\"\\\\\",\"\\\\\"],[\"e\",\"\\x1B\"],[\"a\",\"\\x07\"]]);function unescape(c){let u2=c[0]===\"u\",bracket=c[1]===\"{\";return u2&&!bracket&&c.length===5||c[0]===\"x\"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):u2&&bracket?String.fromCodePoint(parseInt(c.slice(2,-1),16)):ESCAPES.get(c)||c}function parseArguments(name,arguments_){let results=[],chunks=arguments_.trim().split(/\\s*,\\s*/g),matches3;for(let chunk of chunks){let number=Number(chunk);if(!Number.isNaN(number))results.push(number);else if(matches3=chunk.match(STRING_REGEX))results.push(matches3[2].replace(ESCAPE_REGEX,(m2,escape4,character)=>escape4?unescape(escape4):character));else throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`)}return results}function parseStyle(style){STYLE_REGEX.lastIndex=0;let results=[],matches3;for(;(matches3=STYLE_REGEX.exec(style))!==null;){let name=matches3[1];if(matches3[2]){let args=parseArguments(name,matches3[2]);results.push([name].concat(args));}else results.push([name]);}return results}function buildStyle(chalk3,styles3){let enabled={};for(let layer of styles3)for(let style of layer.styles)enabled[style[0]]=layer.inverse?null:style.slice(1);let current=chalk3;for(let[styleName,styles4]of Object.entries(enabled))if(Array.isArray(styles4)){if(!(styleName in current))throw new Error(`Unknown Chalk style: ${styleName}`);current=styles4.length>0?current[styleName](...styles4):current[styleName];}return current}module2.exports=(chalk3,temporary)=>{let styles3=[],chunks=[],chunk=[];if(temporary.replace(TEMPLATE_REGEX,(m2,escapeCharacter,inverse,style,close,character)=>{if(escapeCharacter)chunk.push(unescape(escapeCharacter));else if(style){let string=chunk.join(\"\");chunk=[],chunks.push(styles3.length===0?string:buildStyle(chalk3,styles3)(string)),styles3.push({inverse,styles:parseStyle(style)});}else if(close){if(styles3.length===0)throw new Error(\"Found extraneous } in Chalk template literal\");chunks.push(buildStyle(chalk3,styles3)(chunk.join(\"\"))),chunk=[],styles3.pop();}else chunk.push(character);}),chunks.push(chunk.join(\"\")),styles3.length>0){let errMsg=`Chalk template literal is missing ${styles3.length} closing bracket${styles3.length===1?\"\":\"s\"} (\\`}\\`)`;throw new Error(errMsg)}return chunks.join(\"\")};}});var require_source=__commonJS({\"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/index.js\"(exports,module2){var ansiStyles=require_ansi_styles(),{stdout:stdoutColor,stderr:stderrColor}=require_browser(),{stringReplaceAll,stringEncaseCRLFWithFirstIndex}=require_util2(),levelMapping=[\"ansi\",\"ansi\",\"ansi256\",\"ansi16m\"],styles3=Object.create(null),applyOptions=(object,options={})=>{if(options.level>3||options.level<0)throw new Error(\"The `level` option should be an integer from 0 to 3\");let colorLevel=stdoutColor?stdoutColor.level:0;object.level=options.level===void 0?colorLevel:options.level;},ChalkClass=class{constructor(options){return chalkFactory(options)}},chalkFactory=options=>{let chalk4={};return applyOptions(chalk4,options),chalk4.template=(...arguments_)=>chalkTag(chalk4.template,...arguments_),Object.setPrototypeOf(chalk4,Chalk.prototype),Object.setPrototypeOf(chalk4.template,chalk4),chalk4.template.constructor=()=>{throw new Error(\"`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.\")},chalk4.template.Instance=ChalkClass,chalk4.template};function Chalk(options){return chalkFactory(options)}for(let[styleName,style]of Object.entries(ansiStyles))styles3[styleName]={get(){let builder=createBuilder(this,createStyler(style.open,style.close,this._styler),this._isEmpty);return Object.defineProperty(this,styleName,{value:builder}),builder}};styles3.visible={get(){let builder=createBuilder(this,this._styler,!0);return Object.defineProperty(this,\"visible\",{value:builder}),builder}};var usedModels=[\"rgb\",\"hex\",\"keyword\",\"hsl\",\"hsv\",\"hwb\",\"ansi\",\"ansi256\"];for(let model of usedModels)styles3[model]={get(){let{level}=this;return function(...arguments_){let styler=createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_),ansiStyles.color.close,this._styler);return createBuilder(this,styler,this._isEmpty)}}};for(let model of usedModels){let bgModel=\"bg\"+model[0].toUpperCase()+model.slice(1);styles3[bgModel]={get(){let{level}=this;return function(...arguments_){let styler=createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_),ansiStyles.bgColor.close,this._styler);return createBuilder(this,styler,this._isEmpty)}}};}var proto=Object.defineProperties(()=>{},{...styles3,level:{enumerable:!0,get(){return this._generator.level},set(level){this._generator.level=level;}}}),createStyler=(open,close,parent)=>{let openAll,closeAll;return parent===void 0?(openAll=open,closeAll=close):(openAll=parent.openAll+open,closeAll=close+parent.closeAll),{open,close,openAll,closeAll,parent}},createBuilder=(self2,_styler,_isEmpty)=>{let builder=(...arguments_)=>applyStyle(builder,arguments_.length===1?\"\"+arguments_[0]:arguments_.join(\" \"));return builder.__proto__=proto,builder._generator=self2,builder._styler=_styler,builder._isEmpty=_isEmpty,builder},applyStyle=(self2,string)=>{if(self2.level<=0||!string)return self2._isEmpty?\"\":string;let styler=self2._styler;if(styler===void 0)return string;let{openAll,closeAll}=styler;if(string.indexOf(\"\\x1B\")!==-1)for(;styler!==void 0;)string=stringReplaceAll(string,styler.close,styler.open),styler=styler.parent;let lfIndex=string.indexOf(`\n`);return lfIndex!==-1&&(string=stringEncaseCRLFWithFirstIndex(string,closeAll,openAll,lfIndex)),openAll+string+closeAll},template,chalkTag=(chalk4,...strings)=>{let[firstString]=strings;if(!Array.isArray(firstString))return strings.join(\" \");let arguments_=strings.slice(1),parts=[firstString.raw[0]];for(let i=1;i-1}module2.exports=listCacheHas;}});var require_listCacheSet=__commonJS({\"../../node_modules/lodash/_listCacheSet.js\"(exports,module2){var assocIndexOf=require_assocIndexOf();function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this}module2.exports=listCacheSet;}});var require_ListCache=__commonJS({\"../../node_modules/lodash/_ListCache.js\"(exports,module2){var listCacheClear=require_listCacheClear(),listCacheDelete=require_listCacheDelete(),listCacheGet=require_listCacheGet(),listCacheHas=require_listCacheHas(),listCacheSet=require_listCacheSet();function ListCache(entries){var index=-1,length=entries==null?0:entries.length;for(this.clear();++indexarrLength))return !1;var arrStacked=stack.get(array),othStacked=stack.get(other);if(arrStacked&&othStacked)return arrStacked==other&&othStacked==array;var index=-1,result=!0,seen=bitmask&COMPARE_UNORDERED_FLAG?new SetCache:void 0;for(stack.set(array,other),stack.set(other,array);++index-1&&value%1==0&&value-1&&value%1==0&&value<=MAX_SAFE_INTEGER}module2.exports=isLength;}});var require_baseIsTypedArray=__commonJS({\"../../node_modules/lodash/_baseIsTypedArray.js\"(exports,module2){var baseGetTag=require_baseGetTag(),isLength=require_isLength(),isObjectLike=require_isObjectLike(),argsTag=\"[object Arguments]\",arrayTag=\"[object Array]\",boolTag=\"[object Boolean]\",dateTag=\"[object Date]\",errorTag=\"[object Error]\",funcTag=\"[object Function]\",mapTag=\"[object Map]\",numberTag=\"[object Number]\",objectTag=\"[object Object]\",regexpTag=\"[object RegExp]\",setTag=\"[object Set]\",stringTag=\"[object String]\",weakMapTag=\"[object WeakMap]\",arrayBufferTag=\"[object ArrayBuffer]\",dataViewTag=\"[object DataView]\",float32Tag=\"[object Float32Array]\",float64Tag=\"[object Float64Array]\",int8Tag=\"[object Int8Array]\",int16Tag=\"[object Int16Array]\",int32Tag=\"[object Int32Array]\",uint8Tag=\"[object Uint8Array]\",uint8ClampedTag=\"[object Uint8ClampedArray]\",uint16Tag=\"[object Uint16Array]\",uint32Tag=\"[object Uint32Array]\",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)]}module2.exports=baseIsTypedArray;}});var require_baseUnary=__commonJS({\"../../node_modules/lodash/_baseUnary.js\"(exports,module2){function baseUnary(func){return function(value){return func(value)}}module2.exports=baseUnary;}});var require_nodeUtil=__commonJS({\"../../node_modules/lodash/_nodeUtil.js\"(exports,module2){var freeGlobal=require_freeGlobal(),freeExports=typeof exports==\"object\"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module2==\"object\"&&module2&&!module2.nodeType&&module2,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&freeGlobal.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require(\"util\").types;return types||freeProcess&&freeProcess.binding&&freeProcess.binding(\"util\")}catch{}}();module2.exports=nodeUtil;}});var require_isTypedArray=__commonJS({\"../../node_modules/lodash/isTypedArray.js\"(exports,module2){var baseIsTypedArray=require_baseIsTypedArray(),baseUnary=require_baseUnary(),nodeUtil=require_nodeUtil(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;module2.exports=isTypedArray;}});var require_arrayLikeKeys=__commonJS({\"../../node_modules/lodash/_arrayLikeKeys.js\"(exports,module2){var baseTimes=require_baseTimes(),isArguments=require_isArguments(),isArray=require_isArray(),isBuffer=require_isBuffer(),isIndex=require_isIndex(),isTypedArray=require_isTypedArray(),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function arrayLikeKeys(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value)(inherited||hasOwnProperty.call(value,key))&&!(skipIndexes&&(key==\"length\"||isBuff&&(key==\"offset\"||key==\"parent\")||isType&&(key==\"buffer\"||key==\"byteLength\"||key==\"byteOffset\")||isIndex(key,length)))&&result.push(key);return result}module2.exports=arrayLikeKeys;}});var require_isPrototype=__commonJS({\"../../node_modules/lodash/_isPrototype.js\"(exports,module2){var objectProto=Object.prototype;function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor==\"function\"&&Ctor.prototype||objectProto;return value===proto}module2.exports=isPrototype;}});var require_overArg=__commonJS({\"../../node_modules/lodash/_overArg.js\"(exports,module2){function overArg(func,transform){return function(arg){return func(transform(arg))}}module2.exports=overArg;}});var require_nativeKeys=__commonJS({\"../../node_modules/lodash/_nativeKeys.js\"(exports,module2){var overArg=require_overArg(),nativeKeys=overArg(Object.keys,Object);module2.exports=nativeKeys;}});var require_baseKeys=__commonJS({\"../../node_modules/lodash/_baseKeys.js\"(exports,module2){var isPrototype=require_isPrototype(),nativeKeys=require_nativeKeys(),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseKeys(object){if(!isPrototype(object))return nativeKeys(object);var result=[];for(var key in Object(object))hasOwnProperty.call(object,key)&&key!=\"constructor\"&&result.push(key);return result}module2.exports=baseKeys;}});var require_isArrayLike=__commonJS({\"../../node_modules/lodash/isArrayLike.js\"(exports,module2){var isFunction=require_isFunction(),isLength=require_isLength();function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value)}module2.exports=isArrayLike;}});var require_keys=__commonJS({\"../../node_modules/lodash/keys.js\"(exports,module2){var arrayLikeKeys=require_arrayLikeKeys(),baseKeys=require_baseKeys(),isArrayLike=require_isArrayLike();function keys2(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}module2.exports=keys2;}});var require_getAllKeys=__commonJS({\"../../node_modules/lodash/_getAllKeys.js\"(exports,module2){var baseGetAllKeys=require_baseGetAllKeys(),getSymbols=require_getSymbols(),keys2=require_keys();function getAllKeys(object){return baseGetAllKeys(object,keys2,getSymbols)}module2.exports=getAllKeys;}});var require_equalObjects=__commonJS({\"../../node_modules/lodash/_equalObjects.js\"(exports,module2){var getAllKeys=require_getAllKeys(),COMPARE_PARTIAL_FLAG=1,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function equalObjects(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,objProps=getAllKeys(object),objLength=objProps.length,othProps=getAllKeys(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial)return !1;for(var index=objLength;index--;){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty.call(other,key)))return !1}var objStacked=stack.get(object),othStacked=stack.get(other);if(objStacked&&othStacked)return objStacked==other&&othStacked==object;var result=!0;stack.set(object,other),stack.set(other,object);for(var skipCtor=isPartial;++index=1&&codeUnit<=31||codeUnit==127||index==0&&codeUnit>=48&&codeUnit<=57||index==1&&codeUnit>=48&&codeUnit<=57&&firstCodeUnit==45){result+=\"\\\\\"+codeUnit.toString(16)+\" \";continue}if(index==0&&length==1&&codeUnit==45){result+=\"\\\\\"+string.charAt(index);continue}if(codeUnit>=128||codeUnit==45||codeUnit==95||codeUnit>=48&&codeUnit<=57||codeUnit>=65&&codeUnit<=90||codeUnit>=97&&codeUnit<=122){result+=string.charAt(index);continue}result+=\"\\\\\"+string.charAt(index);}return result};return root.CSS||(root.CSS={}),root.CSS.escape=cssEscape,cssEscape});}});var require_ansi_styles2=__commonJS({\"../../node_modules/pretty-format/node_modules/ansi-styles/index.js\"(exports,module2){var wrapAnsi256=(offset=0)=>code=>`\\x1B[${38+offset};5;${code}m`,wrapAnsi16m=(offset=0)=>(red,green,blue)=>`\\x1B[${38+offset};2;${red};${green};${blue}m`;function assembleStyles(){let codes=new Map,styles3={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};styles3.color.gray=styles3.color.blackBright,styles3.bgColor.bgGray=styles3.bgColor.bgBlackBright,styles3.color.grey=styles3.color.blackBright,styles3.bgColor.bgGrey=styles3.bgColor.bgBlackBright;for(let[groupName,group]of Object.entries(styles3)){for(let[styleName,style]of Object.entries(group))styles3[styleName]={open:`\\x1B[${style[0]}m`,close:`\\x1B[${style[1]}m`},group[styleName]=styles3[styleName],codes.set(style[0],style[1]);Object.defineProperty(styles3,groupName,{value:group,enumerable:!1});}return Object.defineProperty(styles3,\"codes\",{value:codes,enumerable:!1}),styles3.color.close=\"\\x1B[39m\",styles3.bgColor.close=\"\\x1B[49m\",styles3.color.ansi256=wrapAnsi256(),styles3.color.ansi16m=wrapAnsi16m(),styles3.bgColor.ansi256=wrapAnsi256(10),styles3.bgColor.ansi16m=wrapAnsi16m(10),Object.defineProperties(styles3,{rgbToAnsi256:{value:(red,green,blue)=>red===green&&green===blue?red<8?16:red>248?231:Math.round((red-8)/247*24)+232:16+36*Math.round(red/255*5)+6*Math.round(green/255*5)+Math.round(blue/255*5),enumerable:!1},hexToRgb:{value:hex3=>{let matches3=/(?[a-f\\d]{6}|[a-f\\d]{3})/i.exec(hex3.toString(16));if(!matches3)return [0,0,0];let{colorString}=matches3.groups;colorString.length===3&&(colorString=colorString.split(\"\").map(character=>character+character).join(\"\"));let integer=Number.parseInt(colorString,16);return [integer>>16&255,integer>>8&255,integer&255]},enumerable:!1},hexToAnsi256:{value:hex3=>styles3.rgbToAnsi256(...styles3.hexToRgb(hex3)),enumerable:!1}}),styles3}Object.defineProperty(module2,\"exports\",{enumerable:!0,get:assembleStyles});}});var require_collections=__commonJS({\"../../node_modules/pretty-format/build/collections.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.printIteratorEntries=printIteratorEntries2;exports.printIteratorValues=printIteratorValues2;exports.printListItems=printListItems2;exports.printObjectProperties=printObjectProperties2;var getKeysOfEnumerableProperties2=(object,compareKeys)=>{let keys2=Object.keys(object).sort(compareKeys);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(object).forEach(symbol=>{Object.getOwnPropertyDescriptor(object,symbol).enumerable&&keys2.push(symbol);}),keys2};function printIteratorEntries2(iterator,config3,indentation,depth,refs,printer2,separator=\": \"){let result=\"\",current=iterator.next();if(!current.done){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(;!current.done;){let name=printer2(current.value[0],config3,indentationNext,depth,refs),value=printer2(current.value[1],config3,indentationNext,depth,refs);result+=indentationNext+name+separator+value,current=iterator.next(),current.done?config3.min||(result+=\",\"):result+=\",\"+config3.spacingInner;}result+=config3.spacingOuter+indentation;}return result}function printIteratorValues2(iterator,config3,indentation,depth,refs,printer2){let result=\"\",current=iterator.next();if(!current.done){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(;!current.done;)result+=indentationNext+printer2(current.value,config3,indentationNext,depth,refs),current=iterator.next(),current.done?config3.min||(result+=\",\"):result+=\",\"+config3.spacingInner;result+=config3.spacingOuter+indentation;}return result}function printListItems2(list,config3,indentation,depth,refs,printer2){let result=\"\";if(list.length){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(let i=0;i{let stringedValue=val.toString();return stringedValue===\"ArrayContaining\"||stringedValue===\"ArrayNotContaining\"?++depth>config3.maxDepth?\"[\"+stringedValue+\"]\":stringedValue+SPACE2+\"[\"+(0, _collections.printListItems)(val.sample,config3,indentation,depth,refs,printer2)+\"]\":stringedValue===\"ObjectContaining\"||stringedValue===\"ObjectNotContaining\"?++depth>config3.maxDepth?\"[\"+stringedValue+\"]\":stringedValue+SPACE2+\"{\"+(0, _collections.printObjectProperties)(val.sample,config3,indentation,depth,refs,printer2)+\"}\":stringedValue===\"StringMatching\"||stringedValue===\"StringNotMatching\"||stringedValue===\"StringContaining\"||stringedValue===\"StringNotContaining\"?stringedValue+SPACE2+printer2(val.sample,config3,indentation,depth,refs):val.toAsymmetricMatcher()};exports.serialize=serialize2;var test3=val=>val&&val.$$typeof===asymmetricMatcher2;exports.test=test3;var plugin2={serialize:serialize2,test:test3},_default2=plugin2;exports.default=_default2;}});var require_ansi_regex=__commonJS({\"../../node_modules/pretty-format/node_modules/ansi-regex/index.js\"(exports,module2){module2.exports=({onlyFirst=!1}={})=>{let pattern=[\"[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]+)*|[a-zA-Z\\\\d]+(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)\",\"(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-ntqry=><~]))\"].join(\"|\");return new RegExp(pattern,onlyFirst?void 0:\"g\")};}});var require_ConvertAnsi=__commonJS({\"../../node_modules/pretty-format/build/plugins/ConvertAnsi.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.test=exports.serialize=exports.default=void 0;var _ansiRegex=_interopRequireDefault(require_ansi_regex()),_ansiStyles=_interopRequireDefault(require_ansi_styles2());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var toHumanReadableAnsi=text=>text.replace((0, _ansiRegex.default)(),match=>{switch(match){case _ansiStyles.default.red.close:case _ansiStyles.default.green.close:case _ansiStyles.default.cyan.close:case _ansiStyles.default.gray.close:case _ansiStyles.default.white.close:case _ansiStyles.default.yellow.close:case _ansiStyles.default.bgRed.close:case _ansiStyles.default.bgGreen.close:case _ansiStyles.default.bgYellow.close:case _ansiStyles.default.inverse.close:case _ansiStyles.default.dim.close:case _ansiStyles.default.bold.close:case _ansiStyles.default.reset.open:case _ansiStyles.default.reset.close:return \"\";case _ansiStyles.default.red.open:return \"\";case _ansiStyles.default.green.open:return \"\";case _ansiStyles.default.cyan.open:return \"\";case _ansiStyles.default.gray.open:return \"\";case _ansiStyles.default.white.open:return \"\";case _ansiStyles.default.yellow.open:return \"\";case _ansiStyles.default.bgRed.open:return \"\";case _ansiStyles.default.bgGreen.open:return \"\";case _ansiStyles.default.bgYellow.open:return \"\";case _ansiStyles.default.inverse.open:return \"\";case _ansiStyles.default.dim.open:return \"\";case _ansiStyles.default.bold.open:return \"\";default:return \"\"}}),test3=val=>typeof val==\"string\"&&!!val.match((0, _ansiRegex.default)());exports.test=test3;var serialize2=(val,config3,indentation,depth,refs,printer2)=>printer2(toHumanReadableAnsi(val),config3,indentation,depth,refs);exports.serialize=serialize2;var plugin2={serialize:serialize2,test:test3},_default2=plugin2;exports.default=_default2;}});var require_DOMCollection=__commonJS({\"../../node_modules/pretty-format/build/plugins/DOMCollection.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.test=exports.serialize=exports.default=void 0;var _collections=require_collections(),SPACE2=\" \",OBJECT_NAMES2=[\"DOMStringMap\",\"NamedNodeMap\"],ARRAY_REGEXP2=/^(HTML\\w*Collection|NodeList)$/,testName2=name=>OBJECT_NAMES2.indexOf(name)!==-1||ARRAY_REGEXP2.test(name),test3=val=>val&&val.constructor&&!!val.constructor.name&&testName2(val.constructor.name);exports.test=test3;var isNamedNodeMap2=collection=>collection.constructor.name===\"NamedNodeMap\",serialize2=(collection,config3,indentation,depth,refs,printer2)=>{let name=collection.constructor.name;return ++depth>config3.maxDepth?\"[\"+name+\"]\":(config3.min?\"\":name+SPACE2)+(OBJECT_NAMES2.indexOf(name)!==-1?\"{\"+(0, _collections.printObjectProperties)(isNamedNodeMap2(collection)?Array.from(collection).reduce((props,attribute)=>(props[attribute.name]=attribute.value,props),{}):{...collection},config3,indentation,depth,refs,printer2)+\"}\":\"[\"+(0, _collections.printListItems)(Array.from(collection),config3,indentation,depth,refs,printer2)+\"]\")};exports.serialize=serialize2;var plugin2={serialize:serialize2,test:test3},_default2=plugin2;exports.default=_default2;}});var require_escapeHTML=__commonJS({\"../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=escapeHTML3;function escapeHTML3(str){return str.replace(//g,\">\")}}});var require_markup=__commonJS({\"../../node_modules/pretty-format/build/plugins/lib/markup.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.printText=exports.printProps=exports.printElementAsLeaf=exports.printElement=exports.printComment=exports.printChildren=void 0;var _escapeHTML=_interopRequireDefault(require_escapeHTML());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var printProps3=(keys2,props,config3,indentation,depth,refs,printer2)=>{let indentationNext=indentation+config3.indent,colors=config3.colors;return keys2.map(key=>{let value=props[key],printed=printer2(value,config3,indentationNext,depth,refs);return typeof value!=\"string\"&&(printed.indexOf(`\n`)!==-1&&(printed=config3.spacingOuter+indentationNext+printed+config3.spacingOuter+indentation),printed=\"{\"+printed+\"}\"),config3.spacingInner+indentation+colors.prop.open+key+colors.prop.close+\"=\"+colors.value.open+printed+colors.value.close}).join(\"\")};exports.printProps=printProps3;var printChildren3=(children,config3,indentation,depth,refs,printer2)=>children.map(child=>config3.spacingOuter+indentation+(typeof child==\"string\"?printText3(child,config3):printer2(child,config3,indentation,depth,refs))).join(\"\");exports.printChildren=printChildren3;var printText3=(text,config3)=>{let contentColor=config3.colors.content;return contentColor.open+(0, _escapeHTML.default)(text)+contentColor.close};exports.printText=printText3;var printComment3=(comment,config3)=>{let commentColor=config3.colors.comment;return commentColor.open+\"\"+commentColor.close};exports.printComment=printComment3;var printElement3=(type5,printedProps,printedChildren,config3,indentation)=>{let tagColor=config3.colors.tag;return tagColor.open+\"<\"+type5+(printedProps&&tagColor.close+printedProps+config3.spacingOuter+indentation+tagColor.open)+(printedChildren?\">\"+tagColor.close+printedChildren+config3.spacingOuter+indentation+tagColor.open+\"\"+tagColor.close};exports.printElement=printElement3;var printElementAsLeaf3=(type5,config3)=>{let tagColor=config3.colors.tag;return tagColor.open+\"<\"+type5+tagColor.close+\" \\u2026\"+tagColor.open+\" />\"+tagColor.close};exports.printElementAsLeaf=printElementAsLeaf3;}});var require_DOMElement=__commonJS({\"../../node_modules/pretty-format/build/plugins/DOMElement.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.test=exports.serialize=exports.default=void 0;var _markup=require_markup(),ELEMENT_NODE3=1,TEXT_NODE3=3,COMMENT_NODE3=8,FRAGMENT_NODE3=11,ELEMENT_REGEXP3=/^((HTML|SVG)\\w*)?Element$/,testHasAttribute2=val=>{try{return typeof val.hasAttribute==\"function\"&&val.hasAttribute(\"is\")}catch{return !1}},testNode3=val=>{let constructorName=val.constructor.name,{nodeType,tagName}=val,isCustomElement3=typeof tagName==\"string\"&&tagName.includes(\"-\")||testHasAttribute2(val);return nodeType===ELEMENT_NODE3&&(ELEMENT_REGEXP3.test(constructorName)||isCustomElement3)||nodeType===TEXT_NODE3&&constructorName===\"Text\"||nodeType===COMMENT_NODE3&&constructorName===\"Comment\"||nodeType===FRAGMENT_NODE3&&constructorName===\"DocumentFragment\"},test3=val=>{var _val$constructor;return (val==null||(_val$constructor=val.constructor)===null||_val$constructor===void 0?void 0:_val$constructor.name)&&testNode3(val)};exports.test=test3;function nodeIsText3(node){return node.nodeType===TEXT_NODE3}function nodeIsComment3(node){return node.nodeType===COMMENT_NODE3}function nodeIsFragment3(node){return node.nodeType===FRAGMENT_NODE3}var serialize2=(node,config3,indentation,depth,refs,printer2)=>{if(nodeIsText3(node))return (0, _markup.printText)(node.data,config3);if(nodeIsComment3(node))return (0, _markup.printComment)(node.data,config3);let type5=nodeIsFragment3(node)?\"DocumentFragment\":node.tagName.toLowerCase();return ++depth>config3.maxDepth?(0, _markup.printElementAsLeaf)(type5,config3):(0, _markup.printElement)(type5,(0, _markup.printProps)(nodeIsFragment3(node)?[]:Array.from(node.attributes).map(attr=>attr.name).sort(),nodeIsFragment3(node)?{}:Array.from(node.attributes).reduce((props,attribute)=>(props[attribute.name]=attribute.value,props),{}),config3,indentation+config3.indent,depth,refs,printer2),(0, _markup.printChildren)(Array.prototype.slice.call(node.childNodes||node.children),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation)};exports.serialize=serialize2;var plugin2={serialize:serialize2,test:test3},_default2=plugin2;exports.default=_default2;}});var require_Immutable=__commonJS({\"../../node_modules/pretty-format/build/plugins/Immutable.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.test=exports.serialize=exports.default=void 0;var _collections=require_collections(),IS_ITERABLE_SENTINEL2=\"@@__IMMUTABLE_ITERABLE__@@\",IS_LIST_SENTINEL3=\"@@__IMMUTABLE_LIST__@@\",IS_KEYED_SENTINEL3=\"@@__IMMUTABLE_KEYED__@@\",IS_MAP_SENTINEL2=\"@@__IMMUTABLE_MAP__@@\",IS_ORDERED_SENTINEL3=\"@@__IMMUTABLE_ORDERED__@@\",IS_RECORD_SENTINEL2=\"@@__IMMUTABLE_RECORD__@@\",IS_SEQ_SENTINEL2=\"@@__IMMUTABLE_SEQ__@@\",IS_SET_SENTINEL3=\"@@__IMMUTABLE_SET__@@\",IS_STACK_SENTINEL2=\"@@__IMMUTABLE_STACK__@@\",getImmutableName2=name=>\"Immutable.\"+name,printAsLeaf2=name=>\"[\"+name+\"]\",SPACE2=\" \",LAZY2=\"\\u2026\",printImmutableEntries2=(val,config3,indentation,depth,refs,printer2,type5)=>++depth>config3.maxDepth?printAsLeaf2(getImmutableName2(type5)):getImmutableName2(type5)+SPACE2+\"{\"+(0, _collections.printIteratorEntries)(val.entries(),config3,indentation,depth,refs,printer2)+\"}\";function getRecordEntries2(val){let i=0;return {next(){if(i{let name=getImmutableName2(val._name||\"Record\");return ++depth>config3.maxDepth?printAsLeaf2(name):name+SPACE2+\"{\"+(0, _collections.printIteratorEntries)(getRecordEntries2(val),config3,indentation,depth,refs,printer2)+\"}\"},printImmutableSeq2=(val,config3,indentation,depth,refs,printer2)=>{let name=getImmutableName2(\"Seq\");return ++depth>config3.maxDepth?printAsLeaf2(name):val[IS_KEYED_SENTINEL3]?name+SPACE2+\"{\"+(val._iter||val._object?(0, _collections.printIteratorEntries)(val.entries(),config3,indentation,depth,refs,printer2):LAZY2)+\"}\":name+SPACE2+\"[\"+(val._iter||val._array||val._collection||val._iterable?(0, _collections.printIteratorValues)(val.values(),config3,indentation,depth,refs,printer2):LAZY2)+\"]\"},printImmutableValues2=(val,config3,indentation,depth,refs,printer2,type5)=>++depth>config3.maxDepth?printAsLeaf2(getImmutableName2(type5)):getImmutableName2(type5)+SPACE2+\"[\"+(0, _collections.printIteratorValues)(val.values(),config3,indentation,depth,refs,printer2)+\"]\",serialize2=(val,config3,indentation,depth,refs,printer2)=>val[IS_MAP_SENTINEL2]?printImmutableEntries2(val,config3,indentation,depth,refs,printer2,val[IS_ORDERED_SENTINEL3]?\"OrderedMap\":\"Map\"):val[IS_LIST_SENTINEL3]?printImmutableValues2(val,config3,indentation,depth,refs,printer2,\"List\"):val[IS_SET_SENTINEL3]?printImmutableValues2(val,config3,indentation,depth,refs,printer2,val[IS_ORDERED_SENTINEL3]?\"OrderedSet\":\"Set\"):val[IS_STACK_SENTINEL2]?printImmutableValues2(val,config3,indentation,depth,refs,printer2,\"Stack\"):val[IS_SEQ_SENTINEL2]?printImmutableSeq2(val,config3,indentation,depth,refs,printer2):printImmutableRecord2(val,config3,indentation,depth,refs,printer2);exports.serialize=serialize2;var test3=val=>val&&(val[IS_ITERABLE_SENTINEL2]===!0||val[IS_RECORD_SENTINEL2]===!0);exports.test=test3;var plugin2={serialize:serialize2,test:test3},_default2=plugin2;exports.default=_default2;}});var require_react_is_development=__commonJS({\"../../node_modules/pretty-format/node_modules/react-is/cjs/react-is.development.js\"(exports){(function(){var REACT_ELEMENT_TYPE=60103,REACT_PORTAL_TYPE=60106,REACT_FRAGMENT_TYPE=60107,REACT_STRICT_MODE_TYPE=60108,REACT_PROFILER_TYPE=60114,REACT_PROVIDER_TYPE=60109,REACT_CONTEXT_TYPE=60110,REACT_FORWARD_REF_TYPE=60112,REACT_SUSPENSE_TYPE=60113,REACT_SUSPENSE_LIST_TYPE=60120,REACT_MEMO_TYPE=60115,REACT_LAZY_TYPE=60116,REACT_BLOCK_TYPE=60121,REACT_SERVER_BLOCK_TYPE=60122,REACT_FUNDAMENTAL_TYPE=60117,REACT_DEBUG_TRACING_MODE_TYPE=60129,REACT_LEGACY_HIDDEN_TYPE=60131;if(typeof Symbol==\"function\"&&Symbol.for){var symbolFor=Symbol.for;REACT_ELEMENT_TYPE=symbolFor(\"react.element\"),REACT_PORTAL_TYPE=symbolFor(\"react.portal\"),REACT_FRAGMENT_TYPE=symbolFor(\"react.fragment\"),REACT_STRICT_MODE_TYPE=symbolFor(\"react.strict_mode\"),REACT_PROFILER_TYPE=symbolFor(\"react.profiler\"),REACT_PROVIDER_TYPE=symbolFor(\"react.provider\"),REACT_CONTEXT_TYPE=symbolFor(\"react.context\"),REACT_FORWARD_REF_TYPE=symbolFor(\"react.forward_ref\"),REACT_SUSPENSE_TYPE=symbolFor(\"react.suspense\"),REACT_SUSPENSE_LIST_TYPE=symbolFor(\"react.suspense_list\"),REACT_MEMO_TYPE=symbolFor(\"react.memo\"),REACT_LAZY_TYPE=symbolFor(\"react.lazy\"),REACT_BLOCK_TYPE=symbolFor(\"react.block\"),REACT_SERVER_BLOCK_TYPE=symbolFor(\"react.server.block\"),REACT_FUNDAMENTAL_TYPE=symbolFor(\"react.fundamental\"),symbolFor(\"react.scope\"),symbolFor(\"react.opaque.id\"),REACT_DEBUG_TRACING_MODE_TYPE=symbolFor(\"react.debug_trace_mode\"),symbolFor(\"react.offscreen\"),REACT_LEGACY_HIDDEN_TYPE=symbolFor(\"react.legacy_hidden\");}var enableScopeAPI=!1;function isValidElementType(type5){return !!(typeof type5==\"string\"||typeof type5==\"function\"||type5===REACT_FRAGMENT_TYPE||type5===REACT_PROFILER_TYPE||type5===REACT_DEBUG_TRACING_MODE_TYPE||type5===REACT_STRICT_MODE_TYPE||type5===REACT_SUSPENSE_TYPE||type5===REACT_SUSPENSE_LIST_TYPE||type5===REACT_LEGACY_HIDDEN_TYPE||enableScopeAPI||typeof type5==\"object\"&&type5!==null&&(type5.$$typeof===REACT_LAZY_TYPE||type5.$$typeof===REACT_MEMO_TYPE||type5.$$typeof===REACT_PROVIDER_TYPE||type5.$$typeof===REACT_CONTEXT_TYPE||type5.$$typeof===REACT_FORWARD_REF_TYPE||type5.$$typeof===REACT_FUNDAMENTAL_TYPE||type5.$$typeof===REACT_BLOCK_TYPE||type5[0]===REACT_SERVER_BLOCK_TYPE))}function typeOf(object){if(typeof object==\"object\"&&object!==null){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type5=object.type;switch(type5){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return type5;default:var $$typeofType=type5&&type5.$$typeof;switch($$typeofType){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}var ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element2=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1,hasWarnedAboutDeprecatedIsConcurrentMode=!1;function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn(\"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.\")),!1}function isConcurrentMode(object){return hasWarnedAboutDeprecatedIsConcurrentMode||(hasWarnedAboutDeprecatedIsConcurrentMode=!0,console.warn(\"The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.\")),!1}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE}function isElement5(object){return typeof object==\"object\"&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE}function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE}exports.ContextConsumer=ContextConsumer,exports.ContextProvider=ContextProvider,exports.Element=Element2,exports.ForwardRef=ForwardRef,exports.Fragment=Fragment,exports.Lazy=Lazy,exports.Memo=Memo,exports.Portal=Portal,exports.Profiler=Profiler,exports.StrictMode=StrictMode,exports.Suspense=Suspense,exports.isAsyncMode=isAsyncMode,exports.isConcurrentMode=isConcurrentMode,exports.isContextConsumer=isContextConsumer,exports.isContextProvider=isContextProvider,exports.isElement=isElement5,exports.isForwardRef=isForwardRef,exports.isFragment=isFragment,exports.isLazy=isLazy,exports.isMemo=isMemo,exports.isPortal=isPortal,exports.isProfiler=isProfiler,exports.isStrictMode=isStrictMode,exports.isSuspense=isSuspense,exports.isValidElementType=isValidElementType,exports.typeOf=typeOf;})();}});var require_react_is=__commonJS({\"../../node_modules/pretty-format/node_modules/react-is/index.js\"(exports,module2){module2.exports=require_react_is_development();}});var require_ReactElement=__commonJS({\"../../node_modules/pretty-format/build/plugins/ReactElement.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.test=exports.serialize=exports.default=void 0;var ReactIs=_interopRequireWildcard(require_react_is()),_markup=require_markup();function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=\"function\")return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return (_getRequireWildcardCache=function(nodeInterop2){return nodeInterop2?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(obj===null||typeof obj!=\"object\"&&typeof obj!=\"function\")return {default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if(key!==\"default\"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key];}return newObj.default=obj,cache&&cache.set(obj,newObj),newObj}var getChildren2=(arg,children=[])=>(Array.isArray(arg)?arg.forEach(item=>{getChildren2(item,children);}):arg!=null&&arg!==!1&&children.push(arg),children),getType4=element=>{let type5=element.type;if(typeof type5==\"string\")return type5;if(typeof type5==\"function\")return type5.displayName||type5.name||\"Unknown\";if(ReactIs.isFragment(element))return \"React.Fragment\";if(ReactIs.isSuspense(element))return \"React.Suspense\";if(typeof type5==\"object\"&&type5!==null){if(ReactIs.isContextProvider(element))return \"Context.Provider\";if(ReactIs.isContextConsumer(element))return \"Context.Consumer\";if(ReactIs.isForwardRef(element)){if(type5.displayName)return type5.displayName;let functionName=type5.render.displayName||type5.render.name||\"\";return functionName!==\"\"?\"ForwardRef(\"+functionName+\")\":\"ForwardRef\"}if(ReactIs.isMemo(element)){let functionName=type5.displayName||type5.type.displayName||type5.type.name||\"\";return functionName!==\"\"?\"Memo(\"+functionName+\")\":\"Memo\"}}return \"UNDEFINED\"},getPropKeys2=element=>{let{props}=element;return Object.keys(props).filter(key=>key!==\"children\"&&props[key]!==void 0).sort()},serialize2=(element,config3,indentation,depth,refs,printer2)=>++depth>config3.maxDepth?(0, _markup.printElementAsLeaf)(getType4(element),config3):(0, _markup.printElement)(getType4(element),(0, _markup.printProps)(getPropKeys2(element),element.props,config3,indentation+config3.indent,depth,refs,printer2),(0, _markup.printChildren)(getChildren2(element.props.children),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation);exports.serialize=serialize2;var test3=val=>val!=null&&ReactIs.isElement(val);exports.test=test3;var plugin2={serialize:serialize2,test:test3},_default2=plugin2;exports.default=_default2;}});var require_ReactTestComponent=__commonJS({\"../../node_modules/pretty-format/build/plugins/ReactTestComponent.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.test=exports.serialize=exports.default=void 0;var _markup=require_markup(),global3=function(){return typeof globalThis<\"u\"?globalThis:typeof global3<\"u\"?global3:typeof self<\"u\"?self:typeof window<\"u\"?window:Function(\"return this\")()}(),Symbol2=global3[\"jest-symbol-do-not-touch\"]||global3.Symbol,testSymbol2=typeof Symbol2==\"function\"&&Symbol2.for?Symbol2.for(\"react.test.json\"):245830487,getPropKeys2=object=>{let{props}=object;return props?Object.keys(props).filter(key=>props[key]!==void 0).sort():[]},serialize2=(object,config3,indentation,depth,refs,printer2)=>++depth>config3.maxDepth?(0, _markup.printElementAsLeaf)(object.type,config3):(0, _markup.printElement)(object.type,object.props?(0, _markup.printProps)(getPropKeys2(object),object.props,config3,indentation+config3.indent,depth,refs,printer2):\"\",object.children?(0, _markup.printChildren)(object.children,config3,indentation+config3.indent,depth,refs,printer2):\"\",config3,indentation);exports.serialize=serialize2;var test3=val=>val&&val.$$typeof===testSymbol2;exports.test=test3;var plugin2={serialize:serialize2,test:test3},_default2=plugin2;exports.default=_default2;}});var require_build=__commonJS({\"../../node_modules/pretty-format/build/index.js\"(exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.default=exports.DEFAULT_OPTIONS=void 0;exports.format=format4;exports.plugins=void 0;var _ansiStyles=_interopRequireDefault(require_ansi_styles2()),_collections=require_collections(),_AsymmetricMatcher=_interopRequireDefault(require_AsymmetricMatcher()),_ConvertAnsi=_interopRequireDefault(require_ConvertAnsi()),_DOMCollection=_interopRequireDefault(require_DOMCollection()),_DOMElement=_interopRequireDefault(require_DOMElement()),_Immutable=_interopRequireDefault(require_Immutable()),_ReactElement=_interopRequireDefault(require_ReactElement()),_ReactTestComponent=_interopRequireDefault(require_ReactTestComponent());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var toString4=Object.prototype.toString,toISOString2=Date.prototype.toISOString,errorToString2=Error.prototype.toString,regExpToString2=RegExp.prototype.toString,getConstructorName3=val=>typeof val.constructor==\"function\"&&val.constructor.name||\"Object\",isWindow2=val=>typeof window<\"u\"&&val===window,SYMBOL_REGEXP2=/^Symbol\\((.*)\\)(.*)$/,NEWLINE_REGEXP2=/\\n/gi,PrettyFormatPluginError2=class extends Error{constructor(message,stack){super(message),this.stack=stack,this.name=this.constructor.name;}};function isToStringedArrayType2(toStringed){return toStringed===\"[object Array]\"||toStringed===\"[object ArrayBuffer]\"||toStringed===\"[object DataView]\"||toStringed===\"[object Float32Array]\"||toStringed===\"[object Float64Array]\"||toStringed===\"[object Int8Array]\"||toStringed===\"[object Int16Array]\"||toStringed===\"[object Int32Array]\"||toStringed===\"[object Uint8Array]\"||toStringed===\"[object Uint8ClampedArray]\"||toStringed===\"[object Uint16Array]\"||toStringed===\"[object Uint32Array]\"}function printNumber2(val){return Object.is(val,-0)?\"-0\":String(val)}function printBigInt2(val){return `${val}n`}function printFunction2(val,printFunctionName){return printFunctionName?\"[Function \"+(val.name||\"anonymous\")+\"]\":\"[Function]\"}function printSymbol2(val){return String(val).replace(SYMBOL_REGEXP2,\"Symbol($1)\")}function printError2(val){return \"[\"+errorToString2.call(val)+\"]\"}function printBasicValue2(val,printFunctionName,escapeRegex,escapeString){if(val===!0||val===!1)return \"\"+val;if(val===void 0)return \"undefined\";if(val===null)return \"null\";let typeOf=typeof val;if(typeOf===\"number\")return printNumber2(val);if(typeOf===\"bigint\")return printBigInt2(val);if(typeOf===\"string\")return escapeString?'\"'+val.replace(/\"|\\\\/g,\"\\\\$&\")+'\"':'\"'+val+'\"';if(typeOf===\"function\")return printFunction2(val,printFunctionName);if(typeOf===\"symbol\")return printSymbol2(val);let toStringed=toString4.call(val);return toStringed===\"[object WeakMap]\"?\"WeakMap {}\":toStringed===\"[object WeakSet]\"?\"WeakSet {}\":toStringed===\"[object Function]\"||toStringed===\"[object GeneratorFunction]\"?printFunction2(val,printFunctionName):toStringed===\"[object Symbol]\"?printSymbol2(val):toStringed===\"[object Date]\"?isNaN(+val)?\"Date { NaN }\":toISOString2.call(val):toStringed===\"[object Error]\"?printError2(val):toStringed===\"[object RegExp]\"?escapeRegex?regExpToString2.call(val).replace(/[\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"):regExpToString2.call(val):val instanceof Error?printError2(val):null}function printComplexValue2(val,config3,indentation,depth,refs,hasCalledToJSON){if(refs.indexOf(val)!==-1)return \"[Circular]\";refs=refs.slice(),refs.push(val);let hitMaxDepth=++depth>config3.maxDepth,min=config3.min;if(config3.callToJSON&&!hitMaxDepth&&val.toJSON&&typeof val.toJSON==\"function\"&&!hasCalledToJSON)return printer2(val.toJSON(),config3,indentation,depth,refs,!0);let toStringed=toString4.call(val);return toStringed===\"[object Arguments]\"?hitMaxDepth?\"[Arguments]\":(min?\"\":\"Arguments \")+\"[\"+(0, _collections.printListItems)(val,config3,indentation,depth,refs,printer2)+\"]\":isToStringedArrayType2(toStringed)?hitMaxDepth?\"[\"+val.constructor.name+\"]\":(min||!config3.printBasicPrototype&&val.constructor.name===\"Array\"?\"\":val.constructor.name+\" \")+\"[\"+(0, _collections.printListItems)(val,config3,indentation,depth,refs,printer2)+\"]\":toStringed===\"[object Map]\"?hitMaxDepth?\"[Map]\":\"Map {\"+(0, _collections.printIteratorEntries)(val.entries(),config3,indentation,depth,refs,printer2,\" => \")+\"}\":toStringed===\"[object Set]\"?hitMaxDepth?\"[Set]\":\"Set {\"+(0, _collections.printIteratorValues)(val.values(),config3,indentation,depth,refs,printer2)+\"}\":hitMaxDepth||isWindow2(val)?\"[\"+getConstructorName3(val)+\"]\":(min||!config3.printBasicPrototype&&getConstructorName3(val)===\"Object\"?\"\":getConstructorName3(val)+\" \")+\"{\"+(0, _collections.printObjectProperties)(val,config3,indentation,depth,refs,printer2)+\"}\"}function isNewPlugin2(plugin2){return plugin2.serialize!=null}function printPlugin2(plugin2,val,config3,indentation,depth,refs){let printed;try{printed=isNewPlugin2(plugin2)?plugin2.serialize(val,config3,indentation,depth,refs,printer2):plugin2.print(val,valChild=>printer2(valChild,config3,indentation,depth,refs),str=>{let indentationNext=indentation+config3.indent;return indentationNext+str.replace(NEWLINE_REGEXP2,`\n`+indentationNext)},{edgeSpacing:config3.spacingOuter,min:config3.min,spacing:config3.spacingInner},config3.colors);}catch(error){throw new PrettyFormatPluginError2(error.message,error.stack)}if(typeof printed!=\"string\")throw new Error(`pretty-format: Plugin must return type \"string\" but instead returned \"${typeof printed}\".`);return printed}function findPlugin2(plugins4,val){for(let p3=0;p3{if(!DEFAULT_OPTIONS2.hasOwnProperty(key))throw new Error(`pretty-format: Unknown option \"${key}\".`)}),options.min&&options.indent!==void 0&&options.indent!==0)throw new Error('pretty-format: Options \"min\" and \"indent\" cannot be used together.');if(options.theme!==void 0){if(options.theme===null)throw new Error('pretty-format: Option \"theme\" must not be null.');if(typeof options.theme!=\"object\")throw new Error(`pretty-format: Option \"theme\" must be of type \"object\" but instead received \"${typeof options.theme}\".`)}}var getColorsHighlight2=options=>DEFAULT_THEME_KEYS2.reduce((colors,key)=>{let value=options.theme&&options.theme[key]!==void 0?options.theme[key]:DEFAULT_THEME2[key],color=value&&_ansiStyles.default[value];if(color&&typeof color.close==\"string\"&&typeof color.open==\"string\")colors[key]=color;else throw new Error(`pretty-format: Option \"theme\" has a key \"${key}\" whose value \"${value}\" is undefined in ansi-styles.`);return colors},Object.create(null)),getColorsEmpty2=()=>DEFAULT_THEME_KEYS2.reduce((colors,key)=>(colors[key]={close:\"\",open:\"\"},colors),Object.create(null)),getPrintFunctionName2=options=>options&&options.printFunctionName!==void 0?options.printFunctionName:DEFAULT_OPTIONS2.printFunctionName,getEscapeRegex2=options=>options&&options.escapeRegex!==void 0?options.escapeRegex:DEFAULT_OPTIONS2.escapeRegex,getEscapeString2=options=>options&&options.escapeString!==void 0?options.escapeString:DEFAULT_OPTIONS2.escapeString,getConfig4=options=>{var _options$printBasicPr;return {callToJSON:options&&options.callToJSON!==void 0?options.callToJSON:DEFAULT_OPTIONS2.callToJSON,colors:options&&options.highlight?getColorsHighlight2(options):getColorsEmpty2(),compareKeys:options&&typeof options.compareKeys==\"function\"?options.compareKeys:DEFAULT_OPTIONS2.compareKeys,escapeRegex:getEscapeRegex2(options),escapeString:getEscapeString2(options),indent:options&&options.min?\"\":createIndent2(options&&options.indent!==void 0?options.indent:DEFAULT_OPTIONS2.indent),maxDepth:options&&options.maxDepth!==void 0?options.maxDepth:DEFAULT_OPTIONS2.maxDepth,min:options&&options.min!==void 0?options.min:DEFAULT_OPTIONS2.min,plugins:options&&options.plugins!==void 0?options.plugins:DEFAULT_OPTIONS2.plugins,printBasicPrototype:(_options$printBasicPr=options?.printBasicPrototype)!==null&&_options$printBasicPr!==void 0?_options$printBasicPr:!0,printFunctionName:getPrintFunctionName2(options),spacingInner:options&&options.min?\" \":`\n`,spacingOuter:options&&options.min?\"\":`\n`}};function createIndent2(indent){return new Array(indent+1).join(\" \")}function format4(val,options){if(options&&(validateOptions2(options),options.plugins)){let plugin2=findPlugin2(options.plugins,val);if(plugin2!==null)return printPlugin2(plugin2,val,getConfig4(options),\"\",0,[])}let basicResult=printBasicValue2(val,getPrintFunctionName2(options),getEscapeRegex2(options),getEscapeString2(options));return basicResult!==null?basicResult:printComplexValue2(val,getConfig4(options),\"\",0,[])}var plugins3={AsymmetricMatcher:_AsymmetricMatcher.default,ConvertAnsi:_ConvertAnsi.default,DOMCollection:_DOMCollection.default,DOMElement:_DOMElement.default,Immutable:_Immutable.default,ReactElement:_ReactElement.default,ReactTestComponent:_ReactTestComponent.default};exports.plugins=plugins3;var _default2=format4;exports.default=_default2;}});var require_lz_string=__commonJS({\"../../node_modules/lz-string/libs/lz-string.js\"(exports,module2){var LZString=function(){var f4=String.fromCharCode,keyStrBase64=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\",keyStrUriSafe=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$\",baseReverseDic={};function getBaseValue(alphabet,character){if(!baseReverseDic[alphabet]){baseReverseDic[alphabet]={};for(var i=0;i>>8,buf[i*2+1]=current_value%256;}return buf},decompressFromUint8Array:function(compressed){if(compressed==null)return LZString2.decompress(compressed);for(var buf=new Array(compressed.length/2),i=0,TotalLen=buf.length;i>1;}else {for(value=1,i=0;i>1;}context_enlargeIn--,context_enlargeIn==0&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),delete context_dictionaryToCreate[context_w];}else for(value=context_dictionary[context_w],i=0;i>1;context_enlargeIn--,context_enlargeIn==0&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),context_dictionary[context_wc]=context_dictSize++,context_w=String(context_c);}if(context_w!==\"\"){if(Object.prototype.hasOwnProperty.call(context_dictionaryToCreate,context_w)){if(context_w.charCodeAt(0)<256){for(i=0;i>1;}else {for(value=1,i=0;i>1;}context_enlargeIn--,context_enlargeIn==0&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),delete context_dictionaryToCreate[context_w];}else for(value=context_dictionary[context_w],i=0;i>1;context_enlargeIn--,context_enlargeIn==0&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++);}for(value=2,i=0;i>1;for(;;)if(context_data_val=context_data_val<<1,context_data_position==bitsPerChar-1){context_data.push(getCharFromInt(context_data_val));break}else context_data_position++;return context_data.join(\"\")},decompress:function(compressed){return compressed==null?\"\":compressed==\"\"?null:LZString2._decompress(compressed.length,32768,function(index){return compressed.charCodeAt(index)})},_decompress:function(length,resetValue,getNextValue){var dictionary=[],enlargeIn=4,dictSize=4,numBits=3,entry=\"\",result=[],i,w2,bits,resb,maxpower,power,c,data={val:getNextValue(0),position:resetValue,index:1};for(i=0;i<3;i+=1)dictionary[i]=i;for(bits=0,maxpower=Math.pow(2,2),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;switch(bits){case 0:for(bits=0,maxpower=Math.pow(2,8),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;c=f4(bits);break;case 1:for(bits=0,maxpower=Math.pow(2,16),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;c=f4(bits);break;case 2:return \"\"}for(dictionary[3]=c,w2=c,result.push(c);;){if(data.index>length)return \"\";for(bits=0,maxpower=Math.pow(2,numBits),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;switch(c=bits){case 0:for(bits=0,maxpower=Math.pow(2,8),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;dictionary[dictSize++]=f4(bits),c=dictSize-1,enlargeIn--;break;case 1:for(bits=0,maxpower=Math.pow(2,16),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;dictionary[dictSize++]=f4(bits),c=dictSize-1,enlargeIn--;break;case 2:return result.join(\"\")}if(enlargeIn==0&&(enlargeIn=Math.pow(2,numBits),numBits++),dictionary[c])entry=dictionary[c];else if(c===dictSize)entry=w2+w2.charAt(0);else return null;result.push(entry),dictionary[dictSize++]=w2+entry.charAt(0),enlargeIn--,w2=entry,enlargeIn==0&&(enlargeIn=Math.pow(2,numBits),numBits++);}}};return LZString2}();typeof define==\"function\"&&define.amd?define(function(){return LZString}):typeof module2<\"u\"&&module2!=null?module2.exports=LZString:typeof angular<\"u\"&&angular!=null&&angular.module(\"LZString\",[]).factory(\"LZString\",function(){return LZString});}});var __defProp2=Object.defineProperty,__getOwnPropNames2=Object.getOwnPropertyNames,__name=(target,value)=>__defProp2(target,\"name\",{value,configurable:!0}),__commonJS2=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames2(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__export2=(target,all)=>{for(var name in all)__defProp2(target,name,{get:all[name],enumerable:!0});},require_util=__commonJS2({\"(disabled):util\"(){}}),utils_exports={};__export2(utils_exports,{addChainableMethod:()=>addChainableMethod,addLengthGuard:()=>addLengthGuard,addMethod:()=>addMethod,addProperty:()=>addProperty,checkError:()=>check_error_exports,compareByInspect:()=>compareByInspect,eql:()=>deep_eql_default,expectTypes:()=>expectTypes,flag:()=>flag,getActual:()=>getActual,getMessage:()=>getMessage2,getName:()=>getName,getOperator:()=>getOperator,getOwnEnumerableProperties:()=>getOwnEnumerableProperties,getOwnEnumerablePropertySymbols:()=>getOwnEnumerablePropertySymbols,getPathInfo:()=>getPathInfo,hasProperty:()=>hasProperty,inspect:()=>inspect2,isNaN:()=>isNaN22,isProxyEnabled:()=>isProxyEnabled,isRegExp:()=>isRegExp2,objDisplay:()=>objDisplay,overwriteChainableMethod:()=>overwriteChainableMethod,overwriteMethod:()=>overwriteMethod,overwriteProperty:()=>overwriteProperty,proxify:()=>proxify,test:()=>test,transferFlags:()=>transferFlags,type:()=>type});var check_error_exports={};__export2(check_error_exports,{compatibleConstructor:()=>compatibleConstructor,compatibleInstance:()=>compatibleInstance,compatibleMessage:()=>compatibleMessage,getConstructorName:()=>getConstructorName,getMessage:()=>getMessage});function isErrorInstance(obj){return obj instanceof Error||Object.prototype.toString.call(obj)===\"[object Error]\"}__name(isErrorInstance,\"isErrorInstance\");function isRegExp(obj){return Object.prototype.toString.call(obj)===\"[object RegExp]\"}__name(isRegExp,\"isRegExp\");function compatibleInstance(thrown,errorLike){return isErrorInstance(errorLike)&&thrown===errorLike}__name(compatibleInstance,\"compatibleInstance\");function compatibleConstructor(thrown,errorLike){return isErrorInstance(errorLike)?thrown.constructor===errorLike.constructor||thrown instanceof errorLike.constructor:(typeof errorLike==\"object\"||typeof errorLike==\"function\")&&errorLike.prototype?thrown.constructor===errorLike||thrown instanceof errorLike:!1}__name(compatibleConstructor,\"compatibleConstructor\");function compatibleMessage(thrown,errMatcher){let comparisonString=typeof thrown==\"string\"?thrown:thrown.message;return isRegExp(errMatcher)?errMatcher.test(comparisonString):typeof errMatcher==\"string\"?comparisonString.indexOf(errMatcher)!==-1:!1}__name(compatibleMessage,\"compatibleMessage\");function getConstructorName(errorLike){let constructorName=errorLike;return isErrorInstance(errorLike)?constructorName=errorLike.constructor.name:typeof errorLike==\"function\"&&(constructorName=errorLike.name,constructorName===\"\"&&(constructorName=new errorLike().name||constructorName)),constructorName}__name(getConstructorName,\"getConstructorName\");function getMessage(errorLike){let msg=\"\";return errorLike&&errorLike.message?msg=errorLike.message:typeof errorLike==\"string\"&&(msg=errorLike),msg}__name(getMessage,\"getMessage\");function flag(obj,key,value){var flags=obj.__flags||(obj.__flags=Object.create(null));if(arguments.length===3)flags[key]=value;else return flags[key]}__name(flag,\"flag\");function test(obj,args){var negate=flag(obj,\"negate\"),expr=args[0];return negate?!expr:expr}__name(test,\"test\");function type(obj){if(typeof obj>\"u\")return \"undefined\";if(obj===null)return \"null\";let stringTag=obj[Symbol.toStringTag];return typeof stringTag==\"string\"?stringTag:Object.prototype.toString.call(obj).slice(8,-1)}__name(type,\"type\");var canElideFrames=\"captureStackTrace\"in Error,_a,AssertionError=(_a=class extends Error{message;get name(){return \"AssertionError\"}get ok(){return !1}constructor(message=\"Unspecified AssertionError\",props,ssf){super(message),this.message=message,canElideFrames&&Error.captureStackTrace(this,ssf||_a);for(let key in props)key in this||(this[key]=props[key]);}toJSON(stack){return {...this,name:this.name,message:this.message,ok:!1,stack:stack!==!1?this.stack:void 0}}},__name(_a,\"AssertionError\"),_a);function expectTypes(obj,types){var flagMsg=flag(obj,\"message\"),ssfi=flag(obj,\"ssfi\");flagMsg=flagMsg?flagMsg+\": \":\"\",obj=flag(obj,\"object\"),types=types.map(function(t){return t.toLowerCase()}),types.sort();var str=types.map(function(t,index){var art=~[\"a\",\"e\",\"i\",\"o\",\"u\"].indexOf(t.charAt(0))?\"an\":\"a\",or=types.length>1&&index===types.length-1?\"or \":\"\";return or+art+\" \"+t}).join(\", \"),objType=type(obj).toLowerCase();if(!types.some(function(expected){return objType===expected}))throw new AssertionError(flagMsg+\"object tested must be \"+str+\", but \"+objType+\" given\",void 0,ssfi)}__name(expectTypes,\"expectTypes\");function getActual(obj,args){return args.length>4?args[4]:obj._obj}__name(getActual,\"getActual\");var ansiColors={bold:[\"1\",\"22\"],dim:[\"2\",\"22\"],italic:[\"3\",\"23\"],underline:[\"4\",\"24\"],inverse:[\"7\",\"27\"],hidden:[\"8\",\"28\"],strike:[\"9\",\"29\"],black:[\"30\",\"39\"],red:[\"31\",\"39\"],green:[\"32\",\"39\"],yellow:[\"33\",\"39\"],blue:[\"34\",\"39\"],magenta:[\"35\",\"39\"],cyan:[\"36\",\"39\"],white:[\"37\",\"39\"],brightblack:[\"30;1\",\"39\"],brightred:[\"31;1\",\"39\"],brightgreen:[\"32;1\",\"39\"],brightyellow:[\"33;1\",\"39\"],brightblue:[\"34;1\",\"39\"],brightmagenta:[\"35;1\",\"39\"],brightcyan:[\"36;1\",\"39\"],brightwhite:[\"37;1\",\"39\"],grey:[\"90\",\"39\"]},styles={special:\"cyan\",number:\"yellow\",bigint:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",symbol:\"green\",date:\"magenta\",regexp:\"red\"},truncator=\"\\u2026\";function colorise(value,styleType){let color=ansiColors[styles[styleType]]||ansiColors[styleType]||\"\";return color?`\\x1B[${color[0]}m${String(value)}\\x1B[${color[1]}m`:String(value)}__name(colorise,\"colorise\");function normaliseOptions({showHidden=!1,depth=2,colors=!1,customInspect=!0,showProxy=!1,maxArrayLength=1/0,breakLength=1/0,seen=[],truncate:truncate22=1/0,stylize=String}={},inspect32){let options={showHidden:!!showHidden,depth:Number(depth),colors:!!colors,customInspect:!!customInspect,showProxy:!!showProxy,maxArrayLength:Number(maxArrayLength),breakLength:Number(breakLength),truncate:Number(truncate22),seen,inspect:inspect32,stylize};return options.colors&&(options.stylize=colorise),options}__name(normaliseOptions,\"normaliseOptions\");function truncate(string,length,tail=truncator){string=String(string);let tailLength=tail.length,stringLength=string.length;return tailLength>length&&stringLength>tailLength?tail:stringLength>length&&stringLength>tailLength?`${string.slice(0,length-tailLength)}${tail}`:string}__name(truncate,\"truncate\");function inspectList(list,options,inspectItem,separator=\", \"){inspectItem=inspectItem||options.inspect;let size=list.length;if(size===0)return \"\";let originalLength=options.truncate,output=\"\",peek=\"\",truncated=\"\";for(let i=0;ioriginalLength&&output.length+truncated.length<=originalLength||!last&&!secondToLast&&truncatedLength>originalLength||(peek=last?\"\":inspectItem(list[i+1],options)+(secondToLast?\"\":separator),!last&&secondToLast&&truncatedLength>originalLength&&nextLength+peek.length>originalLength))break;if(output+=string,!last&&!secondToLast&&nextLength+peek.length>=originalLength){truncated=`${truncator}(${list.length-i-1})`;break}truncated=\"\";}return `${output}${truncated}`}__name(inspectList,\"inspectList\");function quoteComplexKey(key){return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?key:JSON.stringify(key).replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\")}__name(quoteComplexKey,\"quoteComplexKey\");function inspectProperty([key,value],options){return options.truncate-=2,typeof key==\"string\"?key=quoteComplexKey(key):typeof key!=\"number\"&&(key=`[${options.inspect(key,options)}]`),options.truncate-=key.length,value=options.inspect(value,options),`${key}: ${value}`}__name(inspectProperty,\"inspectProperty\");function inspectArray(array,options){let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return \"[]\";options.truncate-=4;let listContents=inspectList(array,options);options.truncate-=listContents.length;let propertyContents=\"\";return nonIndexProperties.length&&(propertyContents=inspectList(nonIndexProperties.map(key=>[key,array[key]]),options,inspectProperty)),`[ ${listContents}${propertyContents?`, ${propertyContents}`:\"\"} ]`}__name(inspectArray,\"inspectArray\");var getArrayName=__name(array=>typeof Buffer==\"function\"&&array instanceof Buffer?\"Buffer\":array[Symbol.toStringTag]?array[Symbol.toStringTag]:array.constructor.name,\"getArrayName\");function inspectTypedArray(array,options){let name=getArrayName(array);options.truncate-=name.length+4;let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return `${name}[]`;let output=\"\";for(let i=0;i[key,array[key]]),options,inspectProperty)),`${name}[ ${output}${propertyContents?`, ${propertyContents}`:\"\"} ]`}__name(inspectTypedArray,\"inspectTypedArray\");function inspectDate(dateObject,options){let stringRepresentation=dateObject.toJSON();if(stringRepresentation===null)return \"Invalid Date\";let split=stringRepresentation.split(\"T\"),date=split[0];return options.stylize(`${date}T${truncate(split[1],options.truncate-date.length-1)}`,\"date\")}__name(inspectDate,\"inspectDate\");function inspectFunction(func,options){let functionType=func[Symbol.toStringTag]||\"Function\",name=func.name;return name?options.stylize(`[${functionType} ${truncate(name,options.truncate-11)}]`,\"special\"):options.stylize(`[${functionType}]`,\"special\")}__name(inspectFunction,\"inspectFunction\");function inspectMapEntry([key,value],options){return options.truncate-=4,key=options.inspect(key,options),options.truncate-=key.length,value=options.inspect(value,options),`${key} => ${value}`}__name(inspectMapEntry,\"inspectMapEntry\");function mapToEntries(map){let entries=[];return map.forEach((value,key)=>{entries.push([key,value]);}),entries}__name(mapToEntries,\"mapToEntries\");function inspectMap(map,options){return map.size-1<=0?\"Map{}\":(options.truncate-=7,`Map{ ${inspectList(mapToEntries(map),options,inspectMapEntry)} }`)}__name(inspectMap,\"inspectMap\");var isNaN2=Number.isNaN||(i=>i!==i);function inspectNumber(number,options){return isNaN2(number)?options.stylize(\"NaN\",\"number\"):number===1/0?options.stylize(\"Infinity\",\"number\"):number===-1/0?options.stylize(\"-Infinity\",\"number\"):number===0?options.stylize(1/number===1/0?\"+0\":\"-0\",\"number\"):options.stylize(truncate(String(number),options.truncate),\"number\")}__name(inspectNumber,\"inspectNumber\");function inspectBigInt(number,options){let nums=truncate(number.toString(),options.truncate-1);return nums!==truncator&&(nums+=\"n\"),options.stylize(nums,\"bigint\")}__name(inspectBigInt,\"inspectBigInt\");function inspectRegExp(value,options){let flags=value.toString().split(\"/\")[2],sourceLength=options.truncate-(2+flags.length),source=value.source;return options.stylize(`/${truncate(source,sourceLength)}/${flags}`,\"regexp\")}__name(inspectRegExp,\"inspectRegExp\");function arrayFromSet(set2){let values=[];return set2.forEach(value=>{values.push(value);}),values}__name(arrayFromSet,\"arrayFromSet\");function inspectSet(set2,options){return set2.size===0?\"Set{}\":(options.truncate-=7,`Set{ ${inspectList(arrayFromSet(set2),options)} }`)}__name(inspectSet,\"inspectSet\");var stringEscapeChars=new RegExp(\"['\\\\u0000-\\\\u001f\\\\u007f-\\\\u009f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]\",\"g\"),escapeCharacters={\"\\b\":\"\\\\b\",\"\t\":\"\\\\t\",\"\\n\":\"\\\\n\",\"\\f\":\"\\\\f\",\"\\r\":\"\\\\r\",\"'\":\"\\\\'\",\"\\\\\":\"\\\\\\\\\"},hex=16,unicodeLength=4;function escape(char){return escapeCharacters[char]||`\\\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`}__name(escape,\"escape\");function inspectString(string,options){return stringEscapeChars.test(string)&&(string=string.replace(stringEscapeChars,escape)),options.stylize(`'${truncate(string,options.truncate-2)}'`,\"string\")}__name(inspectString,\"inspectString\");function inspectSymbol(value){return \"description\"in Symbol.prototype?value.description?`Symbol(${value.description})`:\"Symbol()\":value.toString()}__name(inspectSymbol,\"inspectSymbol\");var getPromiseValue=__name(()=>\"Promise{\\u2026}\",\"getPromiseValue\");try{let{getPromiseDetails,kPending,kRejected}=process.binding(\"util\");Array.isArray(getPromiseDetails(Promise.resolve()))&&(getPromiseValue=__name((value,options)=>{let[state,innerValue]=getPromiseDetails(value);return state===kPending?\"Promise{}\":`Promise${state===kRejected?\"!\":\"\"}{${options.inspect(innerValue,options)}}`},\"getPromiseValue\"));}catch{}var promise_default=getPromiseValue;function inspectObject(object,options){let properties=Object.getOwnPropertyNames(object),symbols=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(object):[];if(properties.length===0&&symbols.length===0)return \"{}\";if(options.truncate-=4,options.seen=options.seen||[],options.seen.indexOf(object)>=0)return \"[Circular]\";options.seen.push(object);let propertyContents=inspectList(properties.map(key=>[key,object[key]]),options,inspectProperty),symbolContents=inspectList(symbols.map(key=>[key,object[key]]),options,inspectProperty);options.seen.pop();let sep=\"\";return propertyContents&&symbolContents&&(sep=\", \"),`{ ${propertyContents}${sep}${symbolContents} }`}__name(inspectObject,\"inspectObject\");var toStringTag=typeof Symbol<\"u\"&&Symbol.toStringTag?Symbol.toStringTag:!1;function inspectClass(value,options){let name=\"\";return toStringTag&&toStringTag in value&&(name=value[toStringTag]),name=name||value.constructor.name,(!name||name===\"_class\")&&(name=\"\"),options.truncate-=name.length,`${name}${inspectObject(value,options)}`}__name(inspectClass,\"inspectClass\");function inspectArguments(args,options){return args.length===0?\"Arguments[]\":(options.truncate-=13,`Arguments[ ${inspectList(args,options)} ]`)}__name(inspectArguments,\"inspectArguments\");var errorKeys=[\"stack\",\"line\",\"column\",\"name\",\"message\",\"fileName\",\"lineNumber\",\"columnNumber\",\"number\",\"description\"];function inspectObject2(error,options){let properties=Object.getOwnPropertyNames(error).filter(key=>errorKeys.indexOf(key)===-1),name=error.name;options.truncate-=name.length;let message=\"\";typeof error.message==\"string\"?message=truncate(error.message,options.truncate):properties.unshift(\"message\"),message=message?`: ${message}`:\"\",options.truncate-=message.length+5;let propertyContents=inspectList(properties.map(key=>[key,error[key]]),options,inspectProperty);return `${name}${message}${propertyContents?` { ${propertyContents} }`:\"\"}`}__name(inspectObject2,\"inspectObject\");function inspectAttribute([key,value],options){return options.truncate-=3,value?`${options.stylize(String(key),\"yellow\")}=${options.stylize(`\"${value}\"`,\"string\")}`:`${options.stylize(String(key),\"yellow\")}`}__name(inspectAttribute,\"inspectAttribute\");function inspectHTMLCollection(collection,options){return inspectList(collection,options,inspectHTML,`\n`)}__name(inspectHTMLCollection,\"inspectHTMLCollection\");function inspectHTML(element,options){let properties=element.getAttributeNames(),name=element.tagName.toLowerCase(),head=options.stylize(`<${name}`,\"special\"),headClose=options.stylize(\">\",\"special\"),tail=options.stylize(``,\"special\");options.truncate-=name.length*2+5;let propertyContents=\"\";properties.length>0&&(propertyContents+=\" \",propertyContents+=inspectList(properties.map(key=>[key,element.getAttribute(key)]),options,inspectAttribute,\" \")),options.truncate-=propertyContents.length;let truncate22=options.truncate,children=inspectHTMLCollection(element.children,options);return children&&children.length>truncate22&&(children=`${truncator}(${element.children.length})`),`${head}${propertyContents}${headClose}${children}${tail}`}__name(inspectHTML,\"inspectHTML\");var symbolsSupported=typeof Symbol==\"function\"&&typeof Symbol.for==\"function\",chaiInspect=symbolsSupported?Symbol.for(\"chai/inspect\"):\"@@chai/inspect\",nodeInspect=!1;try{let nodeUtil=require_util();nodeInspect=nodeUtil.inspect?nodeUtil.inspect.custom:!1;}catch{nodeInspect=!1;}var constructorMap=new WeakMap,stringTagMap={},baseTypesMap={undefined:(value,options)=>options.stylize(\"undefined\",\"undefined\"),null:(value,options)=>options.stylize(\"null\",\"null\"),boolean:(value,options)=>options.stylize(String(value),\"boolean\"),Boolean:(value,options)=>options.stylize(String(value),\"boolean\"),number:inspectNumber,Number:inspectNumber,bigint:inspectBigInt,BigInt:inspectBigInt,string:inspectString,String:inspectString,function:inspectFunction,Function:inspectFunction,symbol:inspectSymbol,Symbol:inspectSymbol,Array:inspectArray,Date:inspectDate,Map:inspectMap,Set:inspectSet,RegExp:inspectRegExp,Promise:promise_default,WeakSet:(value,options)=>options.stylize(\"WeakSet{\\u2026}\",\"special\"),WeakMap:(value,options)=>options.stylize(\"WeakMap{\\u2026}\",\"special\"),Arguments:inspectArguments,Int8Array:inspectTypedArray,Uint8Array:inspectTypedArray,Uint8ClampedArray:inspectTypedArray,Int16Array:inspectTypedArray,Uint16Array:inspectTypedArray,Int32Array:inspectTypedArray,Uint32Array:inspectTypedArray,Float32Array:inspectTypedArray,Float64Array:inspectTypedArray,Generator:()=>\"\",DataView:()=>\"\",ArrayBuffer:()=>\"\",Error:inspectObject2,HTMLCollection:inspectHTMLCollection,NodeList:inspectHTMLCollection},inspectCustom=__name((value,options,type32)=>chaiInspect in value&&typeof value[chaiInspect]==\"function\"?value[chaiInspect](options):nodeInspect&&nodeInspect in value&&typeof value[nodeInspect]==\"function\"?value[nodeInspect](options.depth,options):\"inspect\"in value&&typeof value.inspect==\"function\"?value.inspect(options.depth,options):\"constructor\"in value&&constructorMap.has(value.constructor)?constructorMap.get(value.constructor)(value,options):stringTagMap[type32]?stringTagMap[type32](value,options):\"\",\"inspectCustom\"),toString=Object.prototype.toString;function inspect(value,opts={}){let options=normaliseOptions(opts,inspect),{customInspect}=options,type32=value===null?\"null\":typeof value;if(type32===\"object\"&&(type32=toString.call(value).slice(8,-1)),type32 in baseTypesMap)return baseTypesMap[type32](value,options);if(customInspect&&value){let output=inspectCustom(value,options,type32);if(output)return typeof output==\"string\"?output:inspect(output,options)}let proto=value?Object.getPrototypeOf(value):!1;return proto===Object.prototype||proto===null?inspectObject(value,options):value&&typeof HTMLElement==\"function\"&&value instanceof HTMLElement?inspectHTML(value,options):\"constructor\"in value?value.constructor!==Object?inspectClass(value,options):inspectObject(value,options):value===Object(value)?inspectObject(value,options):options.stylize(String(value),type32)}__name(inspect,\"inspect\");var config={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:[\"then\",\"catch\",\"inspect\",\"toJSON\"],deepEqual:null};function inspect2(obj,showHidden,depth,colors){var options={colors,depth:typeof depth>\"u\"?2:depth,showHidden,truncate:config.truncateThreshold?config.truncateThreshold:1/0};return inspect(obj,options)}__name(inspect2,\"inspect\");function objDisplay(obj){var str=inspect2(obj),type32=Object.prototype.toString.call(obj);if(config.truncateThreshold&&str.length>=config.truncateThreshold){if(type32===\"[object Function]\")return !obj.name||obj.name===\"\"?\"[Function]\":\"[Function: \"+obj.name+\"]\";if(type32===\"[object Array]\")return \"[ Array(\"+obj.length+\") ]\";if(type32===\"[object Object]\"){var keys2=Object.keys(obj),kstr=keys2.length>2?keys2.splice(0,2).join(\", \")+\", ...\":keys2.join(\", \");return \"{ Object (\"+kstr+\") }\"}else return str}else return str}__name(objDisplay,\"objDisplay\");function getMessage2(obj,args){var negate=flag(obj,\"negate\"),val=flag(obj,\"object\"),expected=args[3],actual=getActual(obj,args),msg=negate?args[2]:args[1],flagMsg=flag(obj,\"message\");return typeof msg==\"function\"&&(msg=msg()),msg=msg||\"\",msg=msg.replace(/#\\{this\\}/g,function(){return objDisplay(val)}).replace(/#\\{act\\}/g,function(){return objDisplay(actual)}).replace(/#\\{exp\\}/g,function(){return objDisplay(expected)}),flagMsg?flagMsg+\": \"+msg:msg}__name(getMessage2,\"getMessage\");function transferFlags(assertion,object,includeAll){var flags=assertion.__flags||(assertion.__flags=Object.create(null));object.__flags||(object.__flags=Object.create(null)),includeAll=arguments.length===3?includeAll:!0;for(var flag3 in flags)(includeAll||flag3!==\"object\"&&flag3!==\"ssfi\"&&flag3!==\"lockSsfi\"&&flag3!=\"message\")&&(object.__flags[flag3]=flags[flag3]);}__name(transferFlags,\"transferFlags\");function type2(obj){if(typeof obj>\"u\")return \"undefined\";if(obj===null)return \"null\";let stringTag=obj[Symbol.toStringTag];return typeof stringTag==\"string\"?stringTag:Object.prototype.toString.call(obj).slice(8,-1)}__name(type2,\"type\");function FakeMap(){this._key=\"chai/deep-eql__\"+Math.random()+Date.now();}__name(FakeMap,\"FakeMap\");FakeMap.prototype={get:__name(function(key){return key[this._key]},\"get\"),set:__name(function(key,value){Object.isExtensible(key)&&Object.defineProperty(key,this._key,{value,configurable:!0});},\"set\")};var MemoizeMap=typeof WeakMap==\"function\"?WeakMap:FakeMap;function memoizeCompare(leftHandOperand,rightHandOperand,memoizeMap){if(!memoizeMap||isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand))return null;var leftHandMap=memoizeMap.get(leftHandOperand);if(leftHandMap){var result=leftHandMap.get(rightHandOperand);if(typeof result==\"boolean\")return result}return null}__name(memoizeCompare,\"memoizeCompare\");function memoizeSet(leftHandOperand,rightHandOperand,memoizeMap,result){if(!(!memoizeMap||isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand))){var leftHandMap=memoizeMap.get(leftHandOperand);leftHandMap?leftHandMap.set(rightHandOperand,result):(leftHandMap=new MemoizeMap,leftHandMap.set(rightHandOperand,result),memoizeMap.set(leftHandOperand,leftHandMap));}}__name(memoizeSet,\"memoizeSet\");var deep_eql_default=deepEqual;function deepEqual(leftHandOperand,rightHandOperand,options){if(options&&options.comparator)return extensiveDeepEqual(leftHandOperand,rightHandOperand,options);var simpleResult=simpleEqual(leftHandOperand,rightHandOperand);return simpleResult!==null?simpleResult:extensiveDeepEqual(leftHandOperand,rightHandOperand,options)}__name(deepEqual,\"deepEqual\");function simpleEqual(leftHandOperand,rightHandOperand){return leftHandOperand===rightHandOperand?leftHandOperand!==0||1/leftHandOperand===1/rightHandOperand:leftHandOperand!==leftHandOperand&&rightHandOperand!==rightHandOperand?!0:isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand)?!1:null}__name(simpleEqual,\"simpleEqual\");function extensiveDeepEqual(leftHandOperand,rightHandOperand,options){options=options||{},options.memoize=options.memoize===!1?!1:options.memoize||new MemoizeMap;var comparator=options&&options.comparator,memoizeResultLeft=memoizeCompare(leftHandOperand,rightHandOperand,options.memoize);if(memoizeResultLeft!==null)return memoizeResultLeft;var memoizeResultRight=memoizeCompare(rightHandOperand,leftHandOperand,options.memoize);if(memoizeResultRight!==null)return memoizeResultRight;if(comparator){var comparatorResult=comparator(leftHandOperand,rightHandOperand);if(comparatorResult===!1||comparatorResult===!0)return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,comparatorResult),comparatorResult;var simpleResult=simpleEqual(leftHandOperand,rightHandOperand);if(simpleResult!==null)return simpleResult}var leftHandType=type2(leftHandOperand);if(leftHandType!==type2(rightHandOperand))return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,!1),!1;memoizeSet(leftHandOperand,rightHandOperand,options.memoize,!0);var result=extensiveDeepEqualByType(leftHandOperand,rightHandOperand,leftHandType,options);return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,result),result}__name(extensiveDeepEqual,\"extensiveDeepEqual\");function extensiveDeepEqualByType(leftHandOperand,rightHandOperand,leftHandType,options){switch(leftHandType){case\"String\":case\"Number\":case\"Boolean\":case\"Date\":return deepEqual(leftHandOperand.valueOf(),rightHandOperand.valueOf());case\"Promise\":case\"Symbol\":case\"function\":case\"WeakMap\":case\"WeakSet\":return leftHandOperand===rightHandOperand;case\"Error\":return keysEqual(leftHandOperand,rightHandOperand,[\"name\",\"message\",\"code\"],options);case\"Arguments\":case\"Int8Array\":case\"Uint8Array\":case\"Uint8ClampedArray\":case\"Int16Array\":case\"Uint16Array\":case\"Int32Array\":case\"Uint32Array\":case\"Float32Array\":case\"Float64Array\":case\"Array\":return iterableEqual(leftHandOperand,rightHandOperand,options);case\"RegExp\":return regexpEqual(leftHandOperand,rightHandOperand);case\"Generator\":return generatorEqual(leftHandOperand,rightHandOperand,options);case\"DataView\":return iterableEqual(new Uint8Array(leftHandOperand.buffer),new Uint8Array(rightHandOperand.buffer),options);case\"ArrayBuffer\":return iterableEqual(new Uint8Array(leftHandOperand),new Uint8Array(rightHandOperand),options);case\"Set\":return entriesEqual(leftHandOperand,rightHandOperand,options);case\"Map\":return entriesEqual(leftHandOperand,rightHandOperand,options);case\"Temporal.PlainDate\":case\"Temporal.PlainTime\":case\"Temporal.PlainDateTime\":case\"Temporal.Instant\":case\"Temporal.ZonedDateTime\":case\"Temporal.PlainYearMonth\":case\"Temporal.PlainMonthDay\":return leftHandOperand.equals(rightHandOperand);case\"Temporal.Duration\":return leftHandOperand.total(\"nanoseconds\")===rightHandOperand.total(\"nanoseconds\");case\"Temporal.TimeZone\":case\"Temporal.Calendar\":return leftHandOperand.toString()===rightHandOperand.toString();default:return objectEqual(leftHandOperand,rightHandOperand,options)}}__name(extensiveDeepEqualByType,\"extensiveDeepEqualByType\");function regexpEqual(leftHandOperand,rightHandOperand){return leftHandOperand.toString()===rightHandOperand.toString()}__name(regexpEqual,\"regexpEqual\");function entriesEqual(leftHandOperand,rightHandOperand,options){if(leftHandOperand.size!==rightHandOperand.size)return !1;if(leftHandOperand.size===0)return !0;var leftHandItems=[],rightHandItems=[];return leftHandOperand.forEach(__name(function(key,value){leftHandItems.push([key,value]);},\"gatherEntries\")),rightHandOperand.forEach(__name(function(key,value){rightHandItems.push([key,value]);},\"gatherEntries\")),iterableEqual(leftHandItems.sort(),rightHandItems.sort(),options)}__name(entriesEqual,\"entriesEqual\");function iterableEqual(leftHandOperand,rightHandOperand,options){var length=leftHandOperand.length;if(length!==rightHandOperand.length)return !1;if(length===0)return !0;for(var index=-1;++index\"u\"||obj===null?!1:name in Object(obj)}__name(hasProperty,\"hasProperty\");function parsePath(path){return path.replace(/([^\\\\])\\[/g,\"$1.[\").match(/(\\\\\\.|[^.]+?)+/g).map(value=>{if(value===\"constructor\"||value===\"__proto__\"||value===\"prototype\")return {};let mArr=/^\\[(\\d+)\\]$/.exec(value),parsed=null;return mArr?parsed={i:parseFloat(mArr[1])}:parsed={p:value.replace(/\\\\([.[\\]])/g,\"$1\")},parsed})}__name(parsePath,\"parsePath\");function internalGetPathValue(obj,parsed,pathDepth){let temporaryValue=obj,res=null;pathDepth=typeof pathDepth>\"u\"?parsed.length:pathDepth;for(let i=0;i\"u\"?temporaryValue=temporaryValue[part.i]:temporaryValue=temporaryValue[part.p],i===pathDepth-1&&(res=temporaryValue));}return res}__name(internalGetPathValue,\"internalGetPathValue\");function getPathInfo(obj,path){let parsed=parsePath(path),last=parsed[parsed.length-1],info={parent:parsed.length>1?internalGetPathValue(obj,parsed,parsed.length-1):obj,name:last.p||last.i,value:internalGetPathValue(obj,parsed)};return info.exists=hasProperty(info.parent,info.name),info}__name(getPathInfo,\"getPathInfo\");function Assertion(obj,msg,ssfi,lockSsfi){return flag(this,\"ssfi\",ssfi||Assertion),flag(this,\"lockSsfi\",lockSsfi),flag(this,\"object\",obj),flag(this,\"message\",msg),flag(this,\"eql\",config.deepEqual||deep_eql_default),proxify(this)}__name(Assertion,\"Assertion\");Object.defineProperty(Assertion,\"includeStack\",{get:function(){return console.warn(\"Assertion.includeStack is deprecated, use chai.config.includeStack instead.\"),config.includeStack},set:function(value){console.warn(\"Assertion.includeStack is deprecated, use chai.config.includeStack instead.\"),config.includeStack=value;}});Object.defineProperty(Assertion,\"showDiff\",{get:function(){return console.warn(\"Assertion.showDiff is deprecated, use chai.config.showDiff instead.\"),config.showDiff},set:function(value){console.warn(\"Assertion.showDiff is deprecated, use chai.config.showDiff instead.\"),config.showDiff=value;}});Assertion.addProperty=function(name,fn3){addProperty(this.prototype,name,fn3);};Assertion.addMethod=function(name,fn3){addMethod(this.prototype,name,fn3);};Assertion.addChainableMethod=function(name,fn3,chainingBehavior){addChainableMethod(this.prototype,name,fn3,chainingBehavior);};Assertion.overwriteProperty=function(name,fn3){overwriteProperty(this.prototype,name,fn3);};Assertion.overwriteMethod=function(name,fn3){overwriteMethod(this.prototype,name,fn3);};Assertion.overwriteChainableMethod=function(name,fn3,chainingBehavior){overwriteChainableMethod(this.prototype,name,fn3,chainingBehavior);};Assertion.prototype.assert=function(expr,msg,negateMsg,expected,_actual,showDiff){var ok=test(this,arguments);if(showDiff!==!1&&(showDiff=!0),expected===void 0&&_actual===void 0&&(showDiff=!1),config.showDiff!==!0&&(showDiff=!1),!ok){msg=getMessage2(this,arguments);var actual=getActual(this,arguments),assertionErrorObjectProperties={actual,expected,showDiff},operator=getOperator(this,arguments);throw operator&&(assertionErrorObjectProperties.operator=operator),new AssertionError(msg,assertionErrorObjectProperties,config.includeStack?this.assert:flag(this,\"ssfi\"))}};Object.defineProperty(Assertion.prototype,\"_obj\",{get:function(){return flag(this,\"object\")},set:function(val){flag(this,\"object\",val);}});function isProxyEnabled(){return config.useProxy&&typeof Proxy<\"u\"&&typeof Reflect<\"u\"}__name(isProxyEnabled,\"isProxyEnabled\");function addProperty(ctx,name,getter){getter=getter===void 0?function(){}:getter,Object.defineProperty(ctx,name,{get:__name(function propertyGetter(){!isProxyEnabled()&&!flag(this,\"lockSsfi\")&&flag(this,\"ssfi\",propertyGetter);var result=getter.call(this);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},\"propertyGetter\"),configurable:!0});}__name(addProperty,\"addProperty\");var fnLengthDesc=Object.getOwnPropertyDescriptor(function(){},\"length\");function addLengthGuard(fn3,assertionName,isChainable){return fnLengthDesc.configurable&&Object.defineProperty(fn3,\"length\",{get:function(){throw Error(isChainable?\"Invalid Chai property: \"+assertionName+'.length. Due to a compatibility issue, \"length\" cannot directly follow \"'+assertionName+'\". Use \"'+assertionName+'.lengthOf\" instead.':\"Invalid Chai property: \"+assertionName+'.length. See docs for proper usage of \"'+assertionName+'\".')}}),fn3}__name(addLengthGuard,\"addLengthGuard\");function getProperties(object){var result=Object.getOwnPropertyNames(object);function addProperty2(property){result.indexOf(property)===-1&&result.push(property);}__name(addProperty2,\"addProperty\");for(var proto=Object.getPrototypeOf(object);proto!==null;)Object.getOwnPropertyNames(proto).forEach(addProperty2),proto=Object.getPrototypeOf(proto);return result}__name(getProperties,\"getProperties\");var builtins=[\"__flags\",\"__methods\",\"_obj\",\"assert\"];function proxify(obj,nonChainableMethodName){return isProxyEnabled()?new Proxy(obj,{get:__name(function proxyGetter(target,property){if(typeof property==\"string\"&&config.proxyExcludedKeys.indexOf(property)===-1&&!Reflect.has(target,property)){if(nonChainableMethodName)throw Error(\"Invalid Chai property: \"+nonChainableMethodName+\".\"+property+'. See docs for proper usage of \"'+nonChainableMethodName+'\".');var suggestion=null,suggestionDistance=4;throw getProperties(target).forEach(function(prop){if(!Object.prototype.hasOwnProperty(prop)&&builtins.indexOf(prop)===-1){var dist=stringDistanceCapped(property,prop,suggestionDistance);dist=cap)return cap;for(var memo=[],i=0;i<=strA.length;i++)memo[i]=Array(strB.length+1).fill(0),memo[i][0]=i;for(var j=0;j=cap){memo[i][j]=cap;continue}memo[i][j]=Math.min(memo[i-1][j]+1,memo[i][j-1]+1,memo[i-1][j-1]+(ch===strB.charCodeAt(j-1)?0:1));}return memo[strA.length][strB.length]}__name(stringDistanceCapped,\"stringDistanceCapped\");function addMethod(ctx,name,method){var methodWrapper=__name(function(){flag(this,\"lockSsfi\")||flag(this,\"ssfi\",methodWrapper);var result=method.apply(this,arguments);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},\"methodWrapper\");addLengthGuard(methodWrapper,name,!1),ctx[name]=proxify(methodWrapper,name);}__name(addMethod,\"addMethod\");function overwriteProperty(ctx,name,getter){var _get=Object.getOwnPropertyDescriptor(ctx,name),_super=__name(function(){},\"_super\");_get&&typeof _get.get==\"function\"&&(_super=_get.get),Object.defineProperty(ctx,name,{get:__name(function overwritingPropertyGetter(){!isProxyEnabled()&&!flag(this,\"lockSsfi\")&&flag(this,\"ssfi\",overwritingPropertyGetter);var origLockSsfi=flag(this,\"lockSsfi\");flag(this,\"lockSsfi\",!0);var result=getter(_super).call(this);if(flag(this,\"lockSsfi\",origLockSsfi),result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},\"overwritingPropertyGetter\"),configurable:!0});}__name(overwriteProperty,\"overwriteProperty\");function overwriteMethod(ctx,name,method){var _method=ctx[name],_super=__name(function(){throw new Error(name+\" is not a function\")},\"_super\");_method&&typeof _method==\"function\"&&(_super=_method);var overwritingMethodWrapper=__name(function(){flag(this,\"lockSsfi\")||flag(this,\"ssfi\",overwritingMethodWrapper);var origLockSsfi=flag(this,\"lockSsfi\");flag(this,\"lockSsfi\",!0);var result=method(_super).apply(this,arguments);if(flag(this,\"lockSsfi\",origLockSsfi),result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},\"overwritingMethodWrapper\");addLengthGuard(overwritingMethodWrapper,name,!1),ctx[name]=proxify(overwritingMethodWrapper,name);}__name(overwriteMethod,\"overwriteMethod\");var canSetPrototype=typeof Object.setPrototypeOf==\"function\",testFn=__name(function(){},\"testFn\"),excludeNames=Object.getOwnPropertyNames(testFn).filter(function(name){var propDesc=Object.getOwnPropertyDescriptor(testFn,name);return typeof propDesc!=\"object\"?!0:!propDesc.configurable}),call=Function.prototype.call,apply=Function.prototype.apply;function addChainableMethod(ctx,name,method,chainingBehavior){typeof chainingBehavior!=\"function\"&&(chainingBehavior=__name(function(){},\"chainingBehavior\"));var chainableBehavior={method,chainingBehavior};ctx.__methods||(ctx.__methods={}),ctx.__methods[name]=chainableBehavior,Object.defineProperty(ctx,name,{get:__name(function(){chainableBehavior.chainingBehavior.call(this);var chainableMethodWrapper=__name(function(){flag(this,\"lockSsfi\")||flag(this,\"ssfi\",chainableMethodWrapper);var result=chainableBehavior.method.apply(this,arguments);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},\"chainableMethodWrapper\");if(addLengthGuard(chainableMethodWrapper,name,!0),canSetPrototype){var prototype=Object.create(this);prototype.call=call,prototype.apply=apply,Object.setPrototypeOf(chainableMethodWrapper,prototype);}else {var asserterNames=Object.getOwnPropertyNames(ctx);asserterNames.forEach(function(asserterName){if(excludeNames.indexOf(asserterName)===-1){var pd=Object.getOwnPropertyDescriptor(ctx,asserterName);Object.defineProperty(chainableMethodWrapper,asserterName,pd);}});}return transferFlags(this,chainableMethodWrapper),proxify(chainableMethodWrapper)},\"chainableMethodGetter\"),configurable:!0});}__name(addChainableMethod,\"addChainableMethod\");function overwriteChainableMethod(ctx,name,method,chainingBehavior){var chainableBehavior=ctx.__methods[name],_chainingBehavior=chainableBehavior.chainingBehavior;chainableBehavior.chainingBehavior=__name(function(){var result=chainingBehavior(_chainingBehavior).call(this);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},\"overwritingChainableMethodGetter\");var _method=chainableBehavior.method;chainableBehavior.method=__name(function(){var result=method(_method).apply(this,arguments);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},\"overwritingChainableMethodWrapper\");}__name(overwriteChainableMethod,\"overwriteChainableMethod\");function compareByInspect(a2,b){return inspect2(a2)1&&numErrs===props.length)throw firstErr;return}this.assert(included,\"expected #{this} to \"+descriptor+\"include \"+inspect2(val),\"expected #{this} to not \"+descriptor+\"include \"+inspect2(val));}__name(include,\"include\");Assertion.addChainableMethod(\"include\",include,includeChainingBehavior);Assertion.addChainableMethod(\"contain\",include,includeChainingBehavior);Assertion.addChainableMethod(\"contains\",include,includeChainingBehavior);Assertion.addChainableMethod(\"includes\",include,includeChainingBehavior);Assertion.addProperty(\"ok\",function(){this.assert(flag2(this,\"object\"),\"expected #{this} to be truthy\",\"expected #{this} to be falsy\");});Assertion.addProperty(\"true\",function(){this.assert(flag2(this,\"object\")===!0,\"expected #{this} to be true\",\"expected #{this} to be false\",!flag2(this,\"negate\"));});Assertion.addProperty(\"callable\",function(){let val=flag2(this,\"object\"),ssfi=flag2(this,\"ssfi\"),message=flag2(this,\"message\"),msg=message?`${message}: `:\"\",negate=flag2(this,\"negate\"),assertionMessage=negate?`${msg}expected ${inspect2(val)} not to be a callable function`:`${msg}expected ${inspect2(val)} to be a callable function`,isCallable3=[\"Function\",\"AsyncFunction\",\"GeneratorFunction\",\"AsyncGeneratorFunction\"].includes(type(val));if(isCallable3&&negate||!isCallable3&&!negate)throw new AssertionError(assertionMessage,void 0,ssfi)});Assertion.addProperty(\"false\",function(){this.assert(flag2(this,\"object\")===!1,\"expected #{this} to be false\",\"expected #{this} to be true\",!!flag2(this,\"negate\"));});Assertion.addProperty(\"null\",function(){this.assert(flag2(this,\"object\")===null,\"expected #{this} to be null\",\"expected #{this} not to be null\");});Assertion.addProperty(\"undefined\",function(){this.assert(flag2(this,\"object\")===void 0,\"expected #{this} to be undefined\",\"expected #{this} not to be undefined\");});Assertion.addProperty(\"NaN\",function(){this.assert(isNaN22(flag2(this,\"object\")),\"expected #{this} to be NaN\",\"expected #{this} not to be NaN\");});function assertExist(){var val=flag2(this,\"object\");this.assert(val!=null,\"expected #{this} to exist\",\"expected #{this} to not exist\");}__name(assertExist,\"assertExist\");Assertion.addProperty(\"exist\",assertExist);Assertion.addProperty(\"exists\",assertExist);Assertion.addProperty(\"empty\",function(){var val=flag2(this,\"object\"),ssfi=flag2(this,\"ssfi\"),flagMsg=flag2(this,\"message\"),itemsCount;switch(flagMsg=flagMsg?flagMsg+\": \":\"\",type(val).toLowerCase()){case\"array\":case\"string\":itemsCount=val.length;break;case\"map\":case\"set\":itemsCount=val.size;break;case\"weakmap\":case\"weakset\":throw new AssertionError(flagMsg+\".empty was passed a weak collection\",void 0,ssfi);case\"function\":var msg=flagMsg+\".empty was passed a function \"+getName(val);throw new AssertionError(msg.trim(),void 0,ssfi);default:if(val!==Object(val))throw new AssertionError(flagMsg+\".empty was passed non-string primitive \"+inspect2(val),void 0,ssfi);itemsCount=Object.keys(val).length;}this.assert(itemsCount===0,\"expected #{this} to be empty\",\"expected #{this} not to be empty\");});function checkArguments(){var obj=flag2(this,\"object\"),type32=type(obj);this.assert(type32===\"Arguments\",\"expected #{this} to be arguments but got \"+type32,\"expected #{this} to not be arguments\");}__name(checkArguments,\"checkArguments\");Assertion.addProperty(\"arguments\",checkArguments);Assertion.addProperty(\"Arguments\",checkArguments);function assertEqual(val,msg){msg&&flag2(this,\"message\",msg);var obj=flag2(this,\"object\");if(flag2(this,\"deep\")){var prevLockSsfi=flag2(this,\"lockSsfi\");flag2(this,\"lockSsfi\",!0),this.eql(val),flag2(this,\"lockSsfi\",prevLockSsfi);}else this.assert(val===obj,\"expected #{this} to equal #{exp}\",\"expected #{this} to not equal #{exp}\",val,this._obj,!0);}__name(assertEqual,\"assertEqual\");Assertion.addMethod(\"equal\",assertEqual);Assertion.addMethod(\"equals\",assertEqual);Assertion.addMethod(\"eq\",assertEqual);function assertEql(obj,msg){msg&&flag2(this,\"message\",msg);var eql=flag2(this,\"eql\");this.assert(eql(obj,flag2(this,\"object\")),\"expected #{this} to deeply equal #{exp}\",\"expected #{this} to not deeply equal #{exp}\",obj,this._obj,!0);}__name(assertEql,\"assertEql\");Assertion.addMethod(\"eql\",assertEql);Assertion.addMethod(\"eqls\",assertEql);function assertAbove(n,msg){msg&&flag2(this,\"message\",msg);var obj=flag2(this,\"object\"),doLength=flag2(this,\"doLength\"),flagMsg=flag2(this,\"message\"),msgPrefix=flagMsg?flagMsg+\": \":\"\",ssfi=flag2(this,\"ssfi\"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),errorMessage,shouldThrow=!0;if(doLength&&objType!==\"map\"&&objType!==\"set\"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property(\"length\"),!doLength&&objType===\"date\"&&nType!==\"date\")errorMessage=msgPrefix+\"the argument to above must be a date\";else if(nType!==\"number\"&&(doLength||objType===\"number\"))errorMessage=msgPrefix+\"the argument to above must be a number\";else if(!doLength&&objType!==\"date\"&&objType!==\"number\"){var printObj=objType===\"string\"?\"'\"+obj+\"'\":obj;errorMessage=msgPrefix+\"expected \"+printObj+\" to be a number or a date\";}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor=\"length\",itemsCount;objType===\"map\"||objType===\"set\"?(descriptor=\"size\",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>n,\"expected #{this} to have a \"+descriptor+\" above #{exp} but got #{act}\",\"expected #{this} to not have a \"+descriptor+\" above #{exp}\",n,itemsCount);}else this.assert(obj>n,\"expected #{this} to be above #{exp}\",\"expected #{this} to be at most #{exp}\",n);}__name(assertAbove,\"assertAbove\");Assertion.addMethod(\"above\",assertAbove);Assertion.addMethod(\"gt\",assertAbove);Assertion.addMethod(\"greaterThan\",assertAbove);function assertLeast(n,msg){msg&&flag2(this,\"message\",msg);var obj=flag2(this,\"object\"),doLength=flag2(this,\"doLength\"),flagMsg=flag2(this,\"message\"),msgPrefix=flagMsg?flagMsg+\": \":\"\",ssfi=flag2(this,\"ssfi\"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),errorMessage,shouldThrow=!0;if(doLength&&objType!==\"map\"&&objType!==\"set\"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property(\"length\"),!doLength&&objType===\"date\"&&nType!==\"date\")errorMessage=msgPrefix+\"the argument to least must be a date\";else if(nType!==\"number\"&&(doLength||objType===\"number\"))errorMessage=msgPrefix+\"the argument to least must be a number\";else if(!doLength&&objType!==\"date\"&&objType!==\"number\"){var printObj=objType===\"string\"?\"'\"+obj+\"'\":obj;errorMessage=msgPrefix+\"expected \"+printObj+\" to be a number or a date\";}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor=\"length\",itemsCount;objType===\"map\"||objType===\"set\"?(descriptor=\"size\",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>=n,\"expected #{this} to have a \"+descriptor+\" at least #{exp} but got #{act}\",\"expected #{this} to have a \"+descriptor+\" below #{exp}\",n,itemsCount);}else this.assert(obj>=n,\"expected #{this} to be at least #{exp}\",\"expected #{this} to be below #{exp}\",n);}__name(assertLeast,\"assertLeast\");Assertion.addMethod(\"least\",assertLeast);Assertion.addMethod(\"gte\",assertLeast);Assertion.addMethod(\"greaterThanOrEqual\",assertLeast);function assertBelow(n,msg){msg&&flag2(this,\"message\",msg);var obj=flag2(this,\"object\"),doLength=flag2(this,\"doLength\"),flagMsg=flag2(this,\"message\"),msgPrefix=flagMsg?flagMsg+\": \":\"\",ssfi=flag2(this,\"ssfi\"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),errorMessage,shouldThrow=!0;if(doLength&&objType!==\"map\"&&objType!==\"set\"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property(\"length\"),!doLength&&objType===\"date\"&&nType!==\"date\")errorMessage=msgPrefix+\"the argument to below must be a date\";else if(nType!==\"number\"&&(doLength||objType===\"number\"))errorMessage=msgPrefix+\"the argument to below must be a number\";else if(!doLength&&objType!==\"date\"&&objType!==\"number\"){var printObj=objType===\"string\"?\"'\"+obj+\"'\":obj;errorMessage=msgPrefix+\"expected \"+printObj+\" to be a number or a date\";}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor=\"length\",itemsCount;objType===\"map\"||objType===\"set\"?(descriptor=\"size\",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount=start&&itemsCount<=finish,\"expected #{this} to have a \"+descriptor+\" within \"+range,\"expected #{this} to not have a \"+descriptor+\" within \"+range);}else this.assert(obj>=start&&obj<=finish,\"expected #{this} to be within \"+range,\"expected #{this} to not be within \"+range);});function assertInstanceOf(constructor,msg){msg&&flag2(this,\"message\",msg);var target=flag2(this,\"object\"),ssfi=flag2(this,\"ssfi\"),flagMsg=flag2(this,\"message\");try{var isInstanceOf=target instanceof constructor;}catch(err){throw err instanceof TypeError?(flagMsg=flagMsg?flagMsg+\": \":\"\",new AssertionError(flagMsg+\"The instanceof assertion needs a constructor but \"+type(constructor)+\" was given.\",void 0,ssfi)):err}var name=getName(constructor);name==null&&(name=\"an unnamed constructor\"),this.assert(isInstanceOf,\"expected #{this} to be an instance of \"+name,\"expected #{this} to not be an instance of \"+name);}__name(assertInstanceOf,\"assertInstanceOf\");Assertion.addMethod(\"instanceof\",assertInstanceOf);Assertion.addMethod(\"instanceOf\",assertInstanceOf);function assertProperty(name,val,msg){msg&&flag2(this,\"message\",msg);var isNested=flag2(this,\"nested\"),isOwn=flag2(this,\"own\"),flagMsg=flag2(this,\"message\"),obj=flag2(this,\"object\"),ssfi=flag2(this,\"ssfi\"),nameType=typeof name;if(flagMsg=flagMsg?flagMsg+\": \":\"\",isNested){if(nameType!==\"string\")throw new AssertionError(flagMsg+\"the argument to property must be a string when using nested syntax\",void 0,ssfi)}else if(nameType!==\"string\"&&nameType!==\"number\"&&nameType!==\"symbol\")throw new AssertionError(flagMsg+\"the argument to property must be a string, number, or symbol\",void 0,ssfi);if(isNested&&isOwn)throw new AssertionError(flagMsg+'The \"nested\" and \"own\" flags cannot be combined.',void 0,ssfi);if(obj==null)throw new AssertionError(flagMsg+\"Target cannot be null or undefined.\",void 0,ssfi);var isDeep=flag2(this,\"deep\"),negate=flag2(this,\"negate\"),pathInfo=isNested?getPathInfo(obj,name):null,value=isNested?pathInfo.value:obj[name],isEql=isDeep?flag2(this,\"eql\"):(val1,val2)=>val1===val2,descriptor=\"\";isDeep&&(descriptor+=\"deep \"),isOwn&&(descriptor+=\"own \"),isNested&&(descriptor+=\"nested \"),descriptor+=\"property \";var hasProperty2;isOwn?hasProperty2=Object.prototype.hasOwnProperty.call(obj,name):isNested?hasProperty2=pathInfo.exists:hasProperty2=hasProperty(obj,name),(!negate||arguments.length===1)&&this.assert(hasProperty2,\"expected #{this} to have \"+descriptor+inspect2(name),\"expected #{this} to not have \"+descriptor+inspect2(name)),arguments.length>1&&this.assert(hasProperty2&&isEql(val,value),\"expected #{this} to have \"+descriptor+inspect2(name)+\" of #{exp}, but got #{act}\",\"expected #{this} to not have \"+descriptor+inspect2(name)+\" of #{act}\",val,value),flag2(this,\"object\",value);}__name(assertProperty,\"assertProperty\");Assertion.addMethod(\"property\",assertProperty);function assertOwnProperty(name,value,msg){flag2(this,\"own\",!0),assertProperty.apply(this,arguments);}__name(assertOwnProperty,\"assertOwnProperty\");Assertion.addMethod(\"ownProperty\",assertOwnProperty);Assertion.addMethod(\"haveOwnProperty\",assertOwnProperty);function assertOwnPropertyDescriptor(name,descriptor,msg){typeof descriptor==\"string\"&&(msg=descriptor,descriptor=null),msg&&flag2(this,\"message\",msg);var obj=flag2(this,\"object\"),actualDescriptor=Object.getOwnPropertyDescriptor(Object(obj),name),eql=flag2(this,\"eql\");actualDescriptor&&descriptor?this.assert(eql(descriptor,actualDescriptor),\"expected the own property descriptor for \"+inspect2(name)+\" on #{this} to match \"+inspect2(descriptor)+\", got \"+inspect2(actualDescriptor),\"expected the own property descriptor for \"+inspect2(name)+\" on #{this} to not match \"+inspect2(descriptor),descriptor,actualDescriptor,!0):this.assert(actualDescriptor,\"expected #{this} to have an own property descriptor for \"+inspect2(name),\"expected #{this} to not have an own property descriptor for \"+inspect2(name)),flag2(this,\"object\",actualDescriptor);}__name(assertOwnPropertyDescriptor,\"assertOwnPropertyDescriptor\");Assertion.addMethod(\"ownPropertyDescriptor\",assertOwnPropertyDescriptor);Assertion.addMethod(\"haveOwnPropertyDescriptor\",assertOwnPropertyDescriptor);function assertLengthChain(){flag2(this,\"doLength\",!0);}__name(assertLengthChain,\"assertLengthChain\");function assertLength(n,msg){msg&&flag2(this,\"message\",msg);var obj=flag2(this,\"object\"),objType=type(obj).toLowerCase(),flagMsg=flag2(this,\"message\"),ssfi=flag2(this,\"ssfi\"),descriptor=\"length\",itemsCount;switch(objType){case\"map\":case\"set\":descriptor=\"size\",itemsCount=obj.size;break;default:new Assertion(obj,flagMsg,ssfi,!0).to.have.property(\"length\"),itemsCount=obj.length;}this.assert(itemsCount==n,\"expected #{this} to have a \"+descriptor+\" of #{exp} but got #{act}\",\"expected #{this} to not have a \"+descriptor+\" of #{act}\",n,itemsCount);}__name(assertLength,\"assertLength\");Assertion.addChainableMethod(\"length\",assertLength,assertLengthChain);Assertion.addChainableMethod(\"lengthOf\",assertLength,assertLengthChain);function assertMatch(re,msg){msg&&flag2(this,\"message\",msg);var obj=flag2(this,\"object\");this.assert(re.exec(obj),\"expected #{this} to match \"+re,\"expected #{this} not to match \"+re);}__name(assertMatch,\"assertMatch\");Assertion.addMethod(\"match\",assertMatch);Assertion.addMethod(\"matches\",assertMatch);Assertion.addMethod(\"string\",function(str,msg){msg&&flag2(this,\"message\",msg);var obj=flag2(this,\"object\"),flagMsg=flag2(this,\"message\"),ssfi=flag2(this,\"ssfi\");new Assertion(obj,flagMsg,ssfi,!0).is.a(\"string\"),this.assert(~obj.indexOf(str),\"expected #{this} to contain \"+inspect2(str),\"expected #{this} to not contain \"+inspect2(str));});function assertKeys(keys2){var obj=flag2(this,\"object\"),objType=type(obj),keysType=type(keys2),ssfi=flag2(this,\"ssfi\"),isDeep=flag2(this,\"deep\"),str,deepStr=\"\",actual,ok=!0,flagMsg=flag2(this,\"message\");flagMsg=flagMsg?flagMsg+\": \":\"\";var mixedArgsMsg=flagMsg+\"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments\";if(objType===\"Map\"||objType===\"Set\")deepStr=isDeep?\"deeply \":\"\",actual=[],obj.forEach(function(val,key){actual.push(key);}),keysType!==\"Array\"&&(keys2=Array.prototype.slice.call(arguments));else {switch(actual=getOwnEnumerableProperties(obj),keysType){case\"Array\":if(arguments.length>1)throw new AssertionError(mixedArgsMsg,void 0,ssfi);break;case\"Object\":if(arguments.length>1)throw new AssertionError(mixedArgsMsg,void 0,ssfi);keys2=Object.keys(keys2);break;default:keys2=Array.prototype.slice.call(arguments);}keys2=keys2.map(function(val){return typeof val==\"symbol\"?val:String(val)});}if(!keys2.length)throw new AssertionError(flagMsg+\"keys required\",void 0,ssfi);var len=keys2.length,any=flag2(this,\"any\"),all=flag2(this,\"all\"),expected=keys2,isEql=isDeep?flag2(this,\"eql\"):(val1,val2)=>val1===val2;if(!any&&!all&&(all=!0),any&&(ok=expected.some(function(expectedKey){return actual.some(function(actualKey){return isEql(expectedKey,actualKey)})})),all&&(ok=expected.every(function(expectedKey){return actual.some(function(actualKey){return isEql(expectedKey,actualKey)})}),flag2(this,\"contains\")||(ok=ok&&keys2.length==actual.length)),len>1){keys2=keys2.map(function(key){return inspect2(key)});var last=keys2.pop();all&&(str=keys2.join(\", \")+\", and \"+last),any&&(str=keys2.join(\", \")+\", or \"+last);}else str=inspect2(keys2[0]);str=(len>1?\"keys \":\"key \")+str,str=(flag2(this,\"contains\")?\"contain \":\"have \")+str,this.assert(ok,\"expected #{this} to \"+deepStr+str,\"expected #{this} to not \"+deepStr+str,expected.slice(0).sort(compareByInspect),actual.sort(compareByInspect),!0);}__name(assertKeys,\"assertKeys\");Assertion.addMethod(\"keys\",assertKeys);Assertion.addMethod(\"key\",assertKeys);function assertThrows(errorLike,errMsgMatcher,msg){msg&&flag2(this,\"message\",msg);var obj=flag2(this,\"object\"),ssfi=flag2(this,\"ssfi\"),flagMsg=flag2(this,\"message\"),negate=flag2(this,\"negate\")||!1;new Assertion(obj,flagMsg,ssfi,!0).is.a(\"function\"),(isRegExp2(errorLike)||typeof errorLike==\"string\")&&(errMsgMatcher=errorLike,errorLike=null);let caughtErr,errorWasThrown=!1;try{obj();}catch(err){errorWasThrown=!0,caughtErr=err;}var everyArgIsUndefined=errorLike===void 0&&errMsgMatcher===void 0,everyArgIsDefined=!!(errorLike&&errMsgMatcher),errorLikeFail=!1,errMsgMatcherFail=!1;if(everyArgIsUndefined||!everyArgIsUndefined&&!negate){var errorLikeString=\"an error\";errorLike instanceof Error?errorLikeString=\"#{exp}\":errorLike&&(errorLikeString=check_error_exports.getConstructorName(errorLike));let actual=caughtErr;if(caughtErr instanceof Error)actual=caughtErr.toString();else if(typeof caughtErr==\"string\")actual=caughtErr;else if(caughtErr&&(typeof caughtErr==\"object\"||typeof caughtErr==\"function\"))try{actual=check_error_exports.getConstructorName(caughtErr);}catch{}this.assert(errorWasThrown,\"expected #{this} to throw \"+errorLikeString,\"expected #{this} to not throw an error but #{act} was thrown\",errorLike&&errorLike.toString(),actual);}if(errorLike&&caughtErr){if(errorLike instanceof Error){var isCompatibleInstance=check_error_exports.compatibleInstance(caughtErr,errorLike);isCompatibleInstance===negate&&(everyArgIsDefined&&negate?errorLikeFail=!0:this.assert(negate,\"expected #{this} to throw #{exp} but #{act} was thrown\",\"expected #{this} to not throw #{exp}\"+(caughtErr&&!negate?\" but #{act} was thrown\":\"\"),errorLike.toString(),caughtErr.toString()));}var isCompatibleConstructor=check_error_exports.compatibleConstructor(caughtErr,errorLike);isCompatibleConstructor===negate&&(everyArgIsDefined&&negate?errorLikeFail=!0:this.assert(negate,\"expected #{this} to throw #{exp} but #{act} was thrown\",\"expected #{this} to not throw #{exp}\"+(caughtErr?\" but #{act} was thrown\":\"\"),errorLike instanceof Error?errorLike.toString():errorLike&&check_error_exports.getConstructorName(errorLike),caughtErr instanceof Error?caughtErr.toString():caughtErr&&check_error_exports.getConstructorName(caughtErr)));}if(caughtErr&&errMsgMatcher!==void 0&&errMsgMatcher!==null){var placeholder=\"including\";isRegExp2(errMsgMatcher)&&(placeholder=\"matching\");var isCompatibleMessage=check_error_exports.compatibleMessage(caughtErr,errMsgMatcher);isCompatibleMessage===negate&&(everyArgIsDefined&&negate?errMsgMatcherFail=!0:this.assert(negate,\"expected #{this} to throw error \"+placeholder+\" #{exp} but got #{act}\",\"expected #{this} to throw error not \"+placeholder+\" #{exp}\",errMsgMatcher,check_error_exports.getMessage(caughtErr)));}errorLikeFail&&errMsgMatcherFail&&this.assert(negate,\"expected #{this} to throw #{exp} but #{act} was thrown\",\"expected #{this} to not throw #{exp}\"+(caughtErr?\" but #{act} was thrown\":\"\"),errorLike instanceof Error?errorLike.toString():errorLike&&check_error_exports.getConstructorName(errorLike),caughtErr instanceof Error?caughtErr.toString():caughtErr&&check_error_exports.getConstructorName(caughtErr)),flag2(this,\"object\",caughtErr);}__name(assertThrows,\"assertThrows\");Assertion.addMethod(\"throw\",assertThrows);Assertion.addMethod(\"throws\",assertThrows);Assertion.addMethod(\"Throw\",assertThrows);function respondTo(method,msg){msg&&flag2(this,\"message\",msg);var obj=flag2(this,\"object\"),itself=flag2(this,\"itself\"),context=typeof obj==\"function\"&&!itself?obj.prototype[method]:obj[method];this.assert(typeof context==\"function\",\"expected #{this} to respond to \"+inspect2(method),\"expected #{this} to not respond to \"+inspect2(method));}__name(respondTo,\"respondTo\");Assertion.addMethod(\"respondTo\",respondTo);Assertion.addMethod(\"respondsTo\",respondTo);Assertion.addProperty(\"itself\",function(){flag2(this,\"itself\",!0);});function satisfy(matcher,msg){msg&&flag2(this,\"message\",msg);var obj=flag2(this,\"object\"),result=matcher(obj);this.assert(result,\"expected #{this} to satisfy \"+objDisplay(matcher),\"expected #{this} to not satisfy\"+objDisplay(matcher),!flag2(this,\"negate\"),result);}__name(satisfy,\"satisfy\");Assertion.addMethod(\"satisfy\",satisfy);Assertion.addMethod(\"satisfies\",satisfy);function closeTo(expected,delta,msg){msg&&flag2(this,\"message\",msg);var obj=flag2(this,\"object\"),flagMsg=flag2(this,\"message\"),ssfi=flag2(this,\"ssfi\");if(new Assertion(obj,flagMsg,ssfi,!0).is.a(\"number\"),typeof expected!=\"number\"||typeof delta!=\"number\"){flagMsg=flagMsg?flagMsg+\": \":\"\";var deltaMessage=delta===void 0?\", and a delta is required\":\"\";throw new AssertionError(flagMsg+\"the arguments to closeTo or approximately must be numbers\"+deltaMessage,void 0,ssfi)}this.assert(Math.abs(obj-expected)<=delta,\"expected #{this} to be close to \"+expected+\" +/- \"+delta,\"expected #{this} not to be close to \"+expected+\" +/- \"+delta);}__name(closeTo,\"closeTo\");Assertion.addMethod(\"closeTo\",closeTo);Assertion.addMethod(\"approximately\",closeTo);function isSubsetOf(_subset,_superset,cmp,contains,ordered){let superset=Array.from(_superset),subset=Array.from(_subset);if(!contains){if(subset.length!==superset.length)return !1;superset=superset.slice();}return subset.every(function(elem,idx){if(ordered)return cmp?cmp(elem,superset[idx]):elem===superset[idx];if(!cmp){var matchIdx=superset.indexOf(elem);return matchIdx===-1?!1:(contains||superset.splice(matchIdx,1),!0)}return superset.some(function(elem2,matchIdx2){return cmp(elem,elem2)?(contains||superset.splice(matchIdx2,1),!0):!1})})}__name(isSubsetOf,\"isSubsetOf\");Assertion.addMethod(\"members\",function(subset,msg){msg&&flag2(this,\"message\",msg);var obj=flag2(this,\"object\"),flagMsg=flag2(this,\"message\"),ssfi=flag2(this,\"ssfi\");new Assertion(obj,flagMsg,ssfi,!0).to.be.iterable,new Assertion(subset,flagMsg,ssfi,!0).to.be.iterable;var contains=flag2(this,\"contains\"),ordered=flag2(this,\"ordered\"),subject,failMsg,failNegateMsg;contains?(subject=ordered?\"an ordered superset\":\"a superset\",failMsg=\"expected #{this} to be \"+subject+\" of #{exp}\",failNegateMsg=\"expected #{this} to not be \"+subject+\" of #{exp}\"):(subject=ordered?\"ordered members\":\"members\",failMsg=\"expected #{this} to have the same \"+subject+\" as #{exp}\",failNegateMsg=\"expected #{this} to not have the same \"+subject+\" as #{exp}\");var cmp=flag2(this,\"deep\")?flag2(this,\"eql\"):void 0;this.assert(isSubsetOf(subset,obj,cmp,contains,ordered),failMsg,failNegateMsg,subset,obj,!0);});Assertion.addProperty(\"iterable\",function(msg){msg&&flag2(this,\"message\",msg);var obj=flag2(this,\"object\");this.assert(obj!=null&&obj[Symbol.iterator],\"expected #{this} to be an iterable\",\"expected #{this} to not be an iterable\",obj);});function oneOf(list,msg){msg&&flag2(this,\"message\",msg);var expected=flag2(this,\"object\"),flagMsg=flag2(this,\"message\"),ssfi=flag2(this,\"ssfi\"),contains=flag2(this,\"contains\"),isDeep=flag2(this,\"deep\"),eql=flag2(this,\"eql\");new Assertion(list,flagMsg,ssfi,!0).to.be.an(\"array\"),contains?this.assert(list.some(function(possibility){return expected.indexOf(possibility)>-1}),\"expected #{this} to contain one of #{exp}\",\"expected #{this} to not contain one of #{exp}\",list,expected):isDeep?this.assert(list.some(function(possibility){return eql(expected,possibility)}),\"expected #{this} to deeply equal one of #{exp}\",\"expected #{this} to deeply equal one of #{exp}\",list,expected):this.assert(list.indexOf(expected)>-1,\"expected #{this} to be one of #{exp}\",\"expected #{this} to not be one of #{exp}\",list,expected);}__name(oneOf,\"oneOf\");Assertion.addMethod(\"oneOf\",oneOf);function assertChanges(subject,prop,msg){msg&&flag2(this,\"message\",msg);var fn3=flag2(this,\"object\"),flagMsg=flag2(this,\"message\"),ssfi=flag2(this,\"ssfi\");new Assertion(fn3,flagMsg,ssfi,!0).is.a(\"function\");var initial;prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a(\"function\"),initial=subject()),fn3();var final=prop==null?subject():subject[prop],msgObj=prop==null?initial:\".\"+prop;flag2(this,\"deltaMsgObj\",msgObj),flag2(this,\"initialDeltaValue\",initial),flag2(this,\"finalDeltaValue\",final),flag2(this,\"deltaBehavior\",\"change\"),flag2(this,\"realDelta\",final!==initial),this.assert(initial!==final,\"expected \"+msgObj+\" to change\",\"expected \"+msgObj+\" to not change\");}__name(assertChanges,\"assertChanges\");Assertion.addMethod(\"change\",assertChanges);Assertion.addMethod(\"changes\",assertChanges);function assertIncreases(subject,prop,msg){msg&&flag2(this,\"message\",msg);var fn3=flag2(this,\"object\"),flagMsg=flag2(this,\"message\"),ssfi=flag2(this,\"ssfi\");new Assertion(fn3,flagMsg,ssfi,!0).is.a(\"function\");var initial;prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a(\"function\"),initial=subject()),new Assertion(initial,flagMsg,ssfi,!0).is.a(\"number\"),fn3();var final=prop==null?subject():subject[prop],msgObj=prop==null?initial:\".\"+prop;flag2(this,\"deltaMsgObj\",msgObj),flag2(this,\"initialDeltaValue\",initial),flag2(this,\"finalDeltaValue\",final),flag2(this,\"deltaBehavior\",\"increase\"),flag2(this,\"realDelta\",final-initial),this.assert(final-initial>0,\"expected \"+msgObj+\" to increase\",\"expected \"+msgObj+\" to not increase\");}__name(assertIncreases,\"assertIncreases\");Assertion.addMethod(\"increase\",assertIncreases);Assertion.addMethod(\"increases\",assertIncreases);function assertDecreases(subject,prop,msg){msg&&flag2(this,\"message\",msg);var fn3=flag2(this,\"object\"),flagMsg=flag2(this,\"message\"),ssfi=flag2(this,\"ssfi\");new Assertion(fn3,flagMsg,ssfi,!0).is.a(\"function\");var initial;prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a(\"function\"),initial=subject()),new Assertion(initial,flagMsg,ssfi,!0).is.a(\"number\"),fn3();var final=prop==null?subject():subject[prop],msgObj=prop==null?initial:\".\"+prop;flag2(this,\"deltaMsgObj\",msgObj),flag2(this,\"initialDeltaValue\",initial),flag2(this,\"finalDeltaValue\",final),flag2(this,\"deltaBehavior\",\"decrease\"),flag2(this,\"realDelta\",initial-final),this.assert(final-initial<0,\"expected \"+msgObj+\" to decrease\",\"expected \"+msgObj+\" to not decrease\");}__name(assertDecreases,\"assertDecreases\");Assertion.addMethod(\"decrease\",assertDecreases);Assertion.addMethod(\"decreases\",assertDecreases);function assertDelta(delta,msg){msg&&flag2(this,\"message\",msg);var msgObj=flag2(this,\"deltaMsgObj\"),initial=flag2(this,\"initialDeltaValue\"),final=flag2(this,\"finalDeltaValue\"),behavior2=flag2(this,\"deltaBehavior\"),realDelta=flag2(this,\"realDelta\"),expression;behavior2===\"change\"?expression=Math.abs(final-initial)===Math.abs(delta):expression=realDelta===Math.abs(delta),this.assert(expression,\"expected \"+msgObj+\" to \"+behavior2+\" by \"+delta,\"expected \"+msgObj+\" to not \"+behavior2+\" by \"+delta);}__name(assertDelta,\"assertDelta\");Assertion.addMethod(\"by\",assertDelta);Assertion.addProperty(\"extensible\",function(){var obj=flag2(this,\"object\"),isExtensible=obj===Object(obj)&&Object.isExtensible(obj);this.assert(isExtensible,\"expected #{this} to be extensible\",\"expected #{this} to not be extensible\");});Assertion.addProperty(\"sealed\",function(){var obj=flag2(this,\"object\"),isSealed=obj===Object(obj)?Object.isSealed(obj):!0;this.assert(isSealed,\"expected #{this} to be sealed\",\"expected #{this} to not be sealed\");});Assertion.addProperty(\"frozen\",function(){var obj=flag2(this,\"object\"),isFrozen=obj===Object(obj)?Object.isFrozen(obj):!0;this.assert(isFrozen,\"expected #{this} to be frozen\",\"expected #{this} to not be frozen\");});Assertion.addProperty(\"finite\",function(msg){var obj=flag2(this,\"object\");this.assert(typeof obj==\"number\"&&isFinite(obj),\"expected #{this} to be a finite number\",\"expected #{this} to not be a finite number\");});function expect(val,message){return new Assertion(val,message)}__name(expect,\"expect\");expect.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),message=message||\"expect.fail()\",new AssertionError(message,{actual,expected,operator},expect.fail)};var should_exports={};__export2(should_exports,{Should:()=>Should,should:()=>should});function loadShould(){function shouldGetter(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol==\"function\"&&this instanceof Symbol||typeof BigInt==\"function\"&&this instanceof BigInt?new Assertion(this.valueOf(),null,shouldGetter):new Assertion(this,null,shouldGetter)}__name(shouldGetter,\"shouldGetter\");function shouldSetter(value){Object.defineProperty(this,\"should\",{value,enumerable:!0,configurable:!0,writable:!0});}__name(shouldSetter,\"shouldSetter\"),Object.defineProperty(Object.prototype,\"should\",{set:shouldSetter,get:shouldGetter,configurable:!0});var should2={};return should2.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),message=message||\"should.fail()\",new AssertionError(message,{actual,expected,operator},should2.fail)},should2.equal=function(actual,expected,message){new Assertion(actual,message).to.equal(expected);},should2.Throw=function(fn3,errt,errs,msg){new Assertion(fn3,msg).to.Throw(errt,errs);},should2.exist=function(val,msg){new Assertion(val,msg).to.exist;},should2.not={},should2.not.equal=function(actual,expected,msg){new Assertion(actual,msg).to.not.equal(expected);},should2.not.Throw=function(fn3,errt,errs,msg){new Assertion(fn3,msg).to.not.Throw(errt,errs);},should2.not.exist=function(val,msg){new Assertion(val,msg).to.not.exist;},should2.throw=should2.Throw,should2.not.throw=should2.not.Throw,should2}__name(loadShould,\"loadShould\");var should=loadShould,Should=loadShould;function assert(express,errmsg){var test22=new Assertion(null,null,assert,!0);test22.assert(express,errmsg,\"[ negation message unavailable ]\");}__name(assert,\"assert\");assert.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),message=message||\"assert.fail()\",new AssertionError(message,{actual,expected,operator},assert.fail)};assert.isOk=function(val,msg){new Assertion(val,msg,assert.isOk,!0).is.ok;};assert.isNotOk=function(val,msg){new Assertion(val,msg,assert.isNotOk,!0).is.not.ok;};assert.equal=function(act,exp,msg){var test22=new Assertion(act,msg,assert.equal,!0);test22.assert(exp==flag(test22,\"object\"),\"expected #{this} to equal #{exp}\",\"expected #{this} to not equal #{act}\",exp,act,!0);};assert.notEqual=function(act,exp,msg){var test22=new Assertion(act,msg,assert.notEqual,!0);test22.assert(exp!=flag(test22,\"object\"),\"expected #{this} to not equal #{exp}\",\"expected #{this} to equal #{act}\",exp,act,!0);};assert.strictEqual=function(act,exp,msg){new Assertion(act,msg,assert.strictEqual,!0).to.equal(exp);};assert.notStrictEqual=function(act,exp,msg){new Assertion(act,msg,assert.notStrictEqual,!0).to.not.equal(exp);};assert.deepEqual=assert.deepStrictEqual=function(act,exp,msg){new Assertion(act,msg,assert.deepEqual,!0).to.eql(exp);};assert.notDeepEqual=function(act,exp,msg){new Assertion(act,msg,assert.notDeepEqual,!0).to.not.eql(exp);};assert.isAbove=function(val,abv,msg){new Assertion(val,msg,assert.isAbove,!0).to.be.above(abv);};assert.isAtLeast=function(val,atlst,msg){new Assertion(val,msg,assert.isAtLeast,!0).to.be.least(atlst);};assert.isBelow=function(val,blw,msg){new Assertion(val,msg,assert.isBelow,!0).to.be.below(blw);};assert.isAtMost=function(val,atmst,msg){new Assertion(val,msg,assert.isAtMost,!0).to.be.most(atmst);};assert.isTrue=function(val,msg){new Assertion(val,msg,assert.isTrue,!0).is.true;};assert.isNotTrue=function(val,msg){new Assertion(val,msg,assert.isNotTrue,!0).to.not.equal(!0);};assert.isFalse=function(val,msg){new Assertion(val,msg,assert.isFalse,!0).is.false;};assert.isNotFalse=function(val,msg){new Assertion(val,msg,assert.isNotFalse,!0).to.not.equal(!1);};assert.isNull=function(val,msg){new Assertion(val,msg,assert.isNull,!0).to.equal(null);};assert.isNotNull=function(val,msg){new Assertion(val,msg,assert.isNotNull,!0).to.not.equal(null);};assert.isNaN=function(val,msg){new Assertion(val,msg,assert.isNaN,!0).to.be.NaN;};assert.isNotNaN=function(value,message){new Assertion(value,message,assert.isNotNaN,!0).not.to.be.NaN;};assert.exists=function(val,msg){new Assertion(val,msg,assert.exists,!0).to.exist;};assert.notExists=function(val,msg){new Assertion(val,msg,assert.notExists,!0).to.not.exist;};assert.isUndefined=function(val,msg){new Assertion(val,msg,assert.isUndefined,!0).to.equal(void 0);};assert.isDefined=function(val,msg){new Assertion(val,msg,assert.isDefined,!0).to.not.equal(void 0);};assert.isCallable=function(value,message){new Assertion(value,message,assert.isCallable,!0).is.callable;};assert.isNotCallable=function(value,message){new Assertion(value,message,assert.isNotCallable,!0).is.not.callable;};assert.isObject=function(val,msg){new Assertion(val,msg,assert.isObject,!0).to.be.a(\"object\");};assert.isNotObject=function(val,msg){new Assertion(val,msg,assert.isNotObject,!0).to.not.be.a(\"object\");};assert.isArray=function(val,msg){new Assertion(val,msg,assert.isArray,!0).to.be.an(\"array\");};assert.isNotArray=function(val,msg){new Assertion(val,msg,assert.isNotArray,!0).to.not.be.an(\"array\");};assert.isString=function(val,msg){new Assertion(val,msg,assert.isString,!0).to.be.a(\"string\");};assert.isNotString=function(val,msg){new Assertion(val,msg,assert.isNotString,!0).to.not.be.a(\"string\");};assert.isNumber=function(val,msg){new Assertion(val,msg,assert.isNumber,!0).to.be.a(\"number\");};assert.isNotNumber=function(val,msg){new Assertion(val,msg,assert.isNotNumber,!0).to.not.be.a(\"number\");};assert.isFinite=function(val,msg){new Assertion(val,msg,assert.isFinite,!0).to.be.finite;};assert.isBoolean=function(val,msg){new Assertion(val,msg,assert.isBoolean,!0).to.be.a(\"boolean\");};assert.isNotBoolean=function(val,msg){new Assertion(val,msg,assert.isNotBoolean,!0).to.not.be.a(\"boolean\");};assert.typeOf=function(val,type32,msg){new Assertion(val,msg,assert.typeOf,!0).to.be.a(type32);};assert.notTypeOf=function(value,type32,message){new Assertion(value,message,assert.notTypeOf,!0).to.not.be.a(type32);};assert.instanceOf=function(val,type32,msg){new Assertion(val,msg,assert.instanceOf,!0).to.be.instanceOf(type32);};assert.notInstanceOf=function(val,type32,msg){new Assertion(val,msg,assert.notInstanceOf,!0).to.not.be.instanceOf(type32);};assert.include=function(exp,inc,msg){new Assertion(exp,msg,assert.include,!0).include(inc);};assert.notInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notInclude,!0).not.include(inc);};assert.deepInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepInclude,!0).deep.include(inc);};assert.notDeepInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepInclude,!0).not.deep.include(inc);};assert.nestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.nestedInclude,!0).nested.include(inc);};assert.notNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notNestedInclude,!0).not.nested.include(inc);};assert.deepNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepNestedInclude,!0).deep.nested.include(inc);};assert.notDeepNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepNestedInclude,!0).not.deep.nested.include(inc);};assert.ownInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.ownInclude,!0).own.include(inc);};assert.notOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notOwnInclude,!0).not.own.include(inc);};assert.deepOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepOwnInclude,!0).deep.own.include(inc);};assert.notDeepOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepOwnInclude,!0).not.deep.own.include(inc);};assert.match=function(exp,re,msg){new Assertion(exp,msg,assert.match,!0).to.match(re);};assert.notMatch=function(exp,re,msg){new Assertion(exp,msg,assert.notMatch,!0).to.not.match(re);};assert.property=function(obj,prop,msg){new Assertion(obj,msg,assert.property,!0).to.have.property(prop);};assert.notProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notProperty,!0).to.not.have.property(prop);};assert.propertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.propertyVal,!0).to.have.property(prop,val);};assert.notPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notPropertyVal,!0).to.not.have.property(prop,val);};assert.deepPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.deepPropertyVal,!0).to.have.deep.property(prop,val);};assert.notDeepPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notDeepPropertyVal,!0).to.not.have.deep.property(prop,val);};assert.ownProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.ownProperty,!0).to.have.own.property(prop);};assert.notOwnProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notOwnProperty,!0).to.not.have.own.property(prop);};assert.ownPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.ownPropertyVal,!0).to.have.own.property(prop,value);};assert.notOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.notOwnPropertyVal,!0).to.not.have.own.property(prop,value);};assert.deepOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.deepOwnPropertyVal,!0).to.have.deep.own.property(prop,value);};assert.notDeepOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(prop,value);};assert.nestedProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.nestedProperty,!0).to.have.nested.property(prop);};assert.notNestedProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notNestedProperty,!0).to.not.have.nested.property(prop);};assert.nestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.nestedPropertyVal,!0).to.have.nested.property(prop,val);};assert.notNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notNestedPropertyVal,!0).to.not.have.nested.property(prop,val);};assert.deepNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.deepNestedPropertyVal,!0).to.have.deep.nested.property(prop,val);};assert.notDeepNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(prop,val);};assert.lengthOf=function(exp,len,msg){new Assertion(exp,msg,assert.lengthOf,!0).to.have.lengthOf(len);};assert.hasAnyKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAnyKeys,!0).to.have.any.keys(keys2);};assert.hasAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAllKeys,!0).to.have.all.keys(keys2);};assert.containsAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.containsAllKeys,!0).to.contain.all.keys(keys2);};assert.doesNotHaveAnyKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAnyKeys,!0).to.not.have.any.keys(keys2);};assert.doesNotHaveAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAllKeys,!0).to.not.have.all.keys(keys2);};assert.hasAnyDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAnyDeepKeys,!0).to.have.any.deep.keys(keys2);};assert.hasAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAllDeepKeys,!0).to.have.all.deep.keys(keys2);};assert.containsAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.containsAllDeepKeys,!0).to.contain.all.deep.keys(keys2);};assert.doesNotHaveAnyDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(keys2);};assert.doesNotHaveAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(keys2);};assert.throws=function(fn3,errorLike,errMsgMatcher,msg){(typeof errorLike==\"string\"||errorLike instanceof RegExp)&&(errMsgMatcher=errorLike,errorLike=null);var assertErr=new Assertion(fn3,msg,assert.throws,!0).to.throw(errorLike,errMsgMatcher);return flag(assertErr,\"object\")};assert.doesNotThrow=function(fn3,errorLike,errMsgMatcher,message){(typeof errorLike==\"string\"||errorLike instanceof RegExp)&&(errMsgMatcher=errorLike,errorLike=null),new Assertion(fn3,message,assert.doesNotThrow,!0).to.not.throw(errorLike,errMsgMatcher);};assert.operator=function(val,operator,val2,msg){var ok;switch(operator){case\"==\":ok=val==val2;break;case\"===\":ok=val===val2;break;case\">\":ok=val>val2;break;case\">=\":ok=val>=val2;break;case\"<\":ok=valtoBeChecked,toBeDisabled:()=>toBeDisabled,toBeEmpty:()=>toBeEmpty,toBeEmptyDOMElement:()=>toBeEmptyDOMElement,toBeEnabled:()=>toBeEnabled,toBeInTheDOM:()=>toBeInTheDOM,toBeInTheDocument:()=>toBeInTheDocument,toBeInvalid:()=>toBeInvalid,toBePartiallyChecked:()=>toBePartiallyChecked,toBeRequired:()=>toBeRequired,toBeValid:()=>toBeValid,toBeVisible:()=>toBeVisible,toContainElement:()=>toContainElement,toContainHTML:()=>toContainHTML,toHaveAccessibleDescription:()=>toHaveAccessibleDescription,toHaveAccessibleErrorMessage:()=>toHaveAccessibleErrorMessage,toHaveAccessibleName:()=>toHaveAccessibleName,toHaveAttribute:()=>toHaveAttribute,toHaveClass:()=>toHaveClass,toHaveDescription:()=>toHaveDescription,toHaveDisplayValue:()=>toHaveDisplayValue,toHaveErrorMessage:()=>toHaveErrorMessage,toHaveFocus:()=>toHaveFocus,toHaveFormValues:()=>toHaveFormValues,toHaveRole:()=>toHaveRole,toHaveStyle:()=>toHaveStyle,toHaveTextContent:()=>toHaveTextContent,toHaveValue:()=>toHaveValue});var import_redent=__toESM(require_redent(),1);function $parcel$defineInteropFlag(a2){Object.defineProperty(a2,\"__esModule\",{value:!0,configurable:!0});}function $parcel$export(e,n,v,s){Object.defineProperty(e,n,{get:v,set:s,enumerable:!0,configurable:!0});}var $009ddb00d3ec72b8$exports={};$parcel$defineInteropFlag($009ddb00d3ec72b8$exports);$parcel$export($009ddb00d3ec72b8$exports,\"default\",()=>$009ddb00d3ec72b8$export$2e2bcd8739ae039);var $009ddb00d3ec72b8$export$2e2bcd8739ae039=class extends Error{constructor(filename,msg,lineno,column,css){super(filename+\":\"+lineno+\":\"+column+\": \"+msg),this.reason=msg,this.filename=filename,this.line=lineno,this.column=column,this.source=css;}},$0865a9fb4cc365fe$exports={};$parcel$defineInteropFlag($0865a9fb4cc365fe$exports);$parcel$export($0865a9fb4cc365fe$exports,\"default\",()=>$0865a9fb4cc365fe$export$2e2bcd8739ae039);var $0865a9fb4cc365fe$export$2e2bcd8739ae039=class{constructor(start,end,source){this.start=start,this.end=end,this.source=source;}},$b2e137848b48cf4f$exports={};$parcel$export($b2e137848b48cf4f$exports,\"CssTypes\",()=>$b2e137848b48cf4f$export$9be5dd6e61d5d73a);var $b2e137848b48cf4f$export$9be5dd6e61d5d73a;(function(CssTypes){CssTypes.stylesheet=\"stylesheet\",CssTypes.rule=\"rule\",CssTypes.declaration=\"declaration\",CssTypes.comment=\"comment\",CssTypes.container=\"container\",CssTypes.charset=\"charset\",CssTypes.document=\"document\",CssTypes.customMedia=\"custom-media\",CssTypes.fontFace=\"font-face\",CssTypes.host=\"host\",CssTypes.import=\"import\",CssTypes.keyframes=\"keyframes\",CssTypes.keyframe=\"keyframe\",CssTypes.layer=\"layer\",CssTypes.media=\"media\",CssTypes.namespace=\"namespace\",CssTypes.page=\"page\",CssTypes.startingStyle=\"starting-style\",CssTypes.supports=\"supports\";})($b2e137848b48cf4f$export$9be5dd6e61d5d73a||($b2e137848b48cf4f$export$9be5dd6e61d5d73a={}));var $d708735ed1303b43$var$commentre=/\\/\\*[^]*?(?:\\*\\/|$)/g,$d708735ed1303b43$export$98e6a39c04603d36=(css,options)=>{options=options||{};let lineno=1,column=1;function updatePosition(str){let lines=str.match(/\\n/g);lines&&(lineno+=lines.length);let i=str.lastIndexOf(`\n`);column=~i?str.length-i:column+str.length;}function position(){let start={line:lineno,column};return function(node){return node.position=new $0865a9fb4cc365fe$export$2e2bcd8739ae039(start,{line:lineno,column},options?.source||\"\"),whitespace(),node}}let errorsList=[];function error(msg){let err=new $009ddb00d3ec72b8$export$2e2bcd8739ae039(options?.source||\"\",msg,lineno,column,css);if(options?.silent)errorsList.push(err);else throw err}function stylesheet(){let rulesList=rules();return {type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.stylesheet,stylesheet:{source:options?.source,rules:rulesList,parsingErrors:errorsList}}}function open(){return match(/^{\\s*/)}function close(){return match(/^}/)}function rules(){let node,rules2=[];for(whitespace(),comments(rules2);css.length&&css.charAt(0)!==\"}\"&&(node=atrule()||rule());)node&&(rules2.push(node),comments(rules2));return rules2}function match(re){let m2=re.exec(css);if(!m2)return;let str=m2[0];return updatePosition(str),css=css.slice(str.length),m2}function whitespace(){match(/^\\s*/);}function comments(rules2){let c;for(rules2=rules2||[];c=comment();)c&&rules2.push(c);return rules2}function comment(){let pos=position();if(css.charAt(0)!==\"/\"||css.charAt(1)!==\"*\")return;let m2=match(/^\\/\\*[^]*?\\*\\//);return m2?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.comment,comment:m2[0].slice(2,-2)}):error(\"End of comment missing\")}function findClosingParenthese(str,start,depth){let ptr=start+1,found=!1,closeParentheses=str.indexOf(\")\",ptr);for(;!found&&closeParentheses!==-1;){let nextParentheses=str.indexOf(\"(\",ptr);nextParentheses!==-1&&nextParenthesesm3.replace(/,/g,\"\\u200C\")),res.split(\",\").map(s=>$d708735ed1303b43$var$trim(s.replace(/\\u200C/g,\",\")))}function declaration(){let pos=position(),propMatch=match(/^(\\*?[-#/*\\\\\\w]+(\\[[0-9a-z_-]+\\])?)\\s*/);if(!propMatch)return;let propValue=$d708735ed1303b43$var$trim(propMatch[0]);if(!match(/^:\\s*/))return error(\"property missing ':'\");let val=match(/^((?:'(?:\\\\'|.)*?'|\"(?:\\\\\"|.)*?\"|\\([^)]*?\\)|[^};])+)/),ret=pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.declaration,property:propValue.replace($d708735ed1303b43$var$commentre,\"\"),value:val?$d708735ed1303b43$var$trim(val[0]).replace($d708735ed1303b43$var$commentre,\"\"):\"\"});return match(/^[;\\s]*/),ret}function declarations(){let decls=[];if(!open())return error(\"missing '{'\");comments(decls);let decl;for(;decl=declaration();)decl&&(decls.push(decl),comments(decls));return close()?decls:error(\"missing '}'\")}function keyframe(){let m2,vals=[],pos=position();for(;m2=match(/^((\\d+\\.\\d+|\\.\\d+|\\d+)%?|[a-z]+)\\s*/);)vals.push(m2[1]),match(/^,\\s*/);if(vals.length)return pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframe,values:vals,declarations:declarations()||[]})}function atkeyframes(){let pos=position(),m1=match(/^@([-\\w]+)?keyframes\\s*/);if(!m1)return;let vendor=m1[1],m2=match(/^([-\\w]+)\\s*/);if(!m2)return error(\"@keyframes missing name\");let name=m2[1];if(!open())return error(\"@keyframes missing '{'\");let frame,frames=comments();for(;frame=keyframe();)frames.push(frame),frames=frames.concat(comments());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframes,name,vendor,keyframes:frames}):error(\"@keyframes missing '}'\")}function atsupports(){let pos=position(),m2=match(/^@supports *([^{]+)/);if(!m2)return;let supports=$d708735ed1303b43$var$trim(m2[1]);if(!open())return error(\"@supports missing '{'\");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.supports,supports,rules:style}):error(\"@supports missing '}'\")}function athost(){let pos=position();if(!match(/^@host\\s*/))return;if(!open())return error(\"@host missing '{'\");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.host,rules:style}):error(\"@host missing '}'\")}function atcontainer(){let pos=position(),m2=match(/^@container *([^{]+)/);if(!m2)return;let container=$d708735ed1303b43$var$trim(m2[1]);if(!open())return error(\"@container missing '{'\");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.container,container,rules:style}):error(\"@container missing '}'\")}function atlayer(){let pos=position(),m2=match(/^@layer *([^{;@]+)/);if(!m2)return;let layer=$d708735ed1303b43$var$trim(m2[1]);if(!open())return match(/^[;\\s]*/),pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer,layer});let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer,layer,rules:style}):error(\"@layer missing '}'\")}function atmedia(){let pos=position(),m2=match(/^@media *([^{]+)/);if(!m2)return;let media=$d708735ed1303b43$var$trim(m2[1]);if(!open())return error(\"@media missing '{'\");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.media,media,rules:style}):error(\"@media missing '}'\")}function atcustommedia(){let pos=position(),m2=match(/^@custom-media\\s+(--\\S+)\\s*([^{;\\s][^{;]*);/);if(m2)return pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.customMedia,name:$d708735ed1303b43$var$trim(m2[1]),media:$d708735ed1303b43$var$trim(m2[2])})}function atpage(){let pos=position();if(!match(/^@page */))return;let sel=selector()||[];if(!open())return error(\"@page missing '{'\");let decls=comments(),decl;for(;decl=declaration();)decls.push(decl),decls=decls.concat(comments());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.page,selectors:sel,declarations:decls}):error(\"@page missing '}'\")}function atdocument(){let pos=position(),m2=match(/^@([-\\w]+)?document *([^{]+)/);if(!m2)return;let vendor=$d708735ed1303b43$var$trim(m2[1]),doc=$d708735ed1303b43$var$trim(m2[2]);if(!open())return error(\"@document missing '{'\");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.document,document:doc,vendor,rules:style}):error(\"@document missing '}'\")}function atfontface(){let pos=position();if(!match(/^@font-face\\s*/))return;if(!open())return error(\"@font-face missing '{'\");let decls=comments(),decl;for(;decl=declaration();)decls.push(decl),decls=decls.concat(comments());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.fontFace,declarations:decls}):error(\"@font-face missing '}'\")}function atstartingstyle(){let pos=position();if(!match(/^@starting-style\\s*/))return;if(!open())return error(\"@starting-style missing '{'\");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.startingStyle,rules:style}):error(\"@starting-style missing '}'\")}let atimport=_compileAtrule(\"import\"),atcharset=_compileAtrule(\"charset\"),atnamespace=_compileAtrule(\"namespace\");function _compileAtrule(name){let re=new RegExp(\"^@\"+name+`\\\\s*((?::?[^;'\"]|\"(?:\\\\\\\\\"|[^\"])*?\"|'(?:\\\\\\\\'|[^'])*?')+)(?:;|$)`);return function(){let pos=position(),m2=match(re);if(!m2)return;let ret={type:name};return ret[name]=m2[1].trim(),pos(ret)}}function atrule(){if(css[0]===\"@\")return atkeyframes()||atmedia()||atcustommedia()||atsupports()||atimport()||atcharset()||atnamespace()||atdocument()||atpage()||athost()||atfontface()||atcontainer()||atstartingstyle()||atlayer()}function rule(){let pos=position(),sel=selector();return sel?(comments(),pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.rule,selectors:sel,declarations:declarations()||[]})):error(\"selector missing\")}return $d708735ed1303b43$var$addParent(stylesheet())};function $d708735ed1303b43$var$trim(str){return str?str.trim():\"\"}function $d708735ed1303b43$var$addParent(obj,parent){let isNode=obj&&typeof obj.type==\"string\",childParent=isNode?obj:parent;for(let k2 in obj){let value=obj[k2];Array.isArray(value)?value.forEach(v=>{$d708735ed1303b43$var$addParent(v,childParent);}):value&&typeof value==\"object\"&&$d708735ed1303b43$var$addParent(value,childParent);}return isNode&&Object.defineProperty(obj,\"parent\",{configurable:!0,writable:!0,enumerable:!1,value:parent||null}),obj}var $d708735ed1303b43$export$2e2bcd8739ae039=$d708735ed1303b43$export$98e6a39c04603d36;var $149c1bd638913645$export$98e6a39c04603d36=$d708735ed1303b43$export$2e2bcd8739ae039;var toStr=Object.prototype.toString;function isCallable(fn3){return typeof fn3==\"function\"||toStr.call(fn3)===\"[object Function]\"}function toInteger(value){var number=Number(value);return isNaN(number)?0:number===0||!isFinite(number)?number:(number>0?1:-1)*Math.floor(Math.abs(number))}var maxSafeInteger=Math.pow(2,53)-1;function toLength(value){var len=toInteger(value);return Math.min(Math.max(len,0),maxSafeInteger)}function arrayFrom(arrayLike,mapFn){var C3=Array,items=Object(arrayLike);if(arrayLike==null)throw new TypeError(\"Array.from requires an array-like object - not null or undefined\");if(typeof mapFn<\"u\"&&!isCallable(mapFn))throw new TypeError(\"Array.from: when provided, the second argument must be a function\");for(var len=toLength(items.length),A=isCallable(C3)?Object(new C3(len)):new Array(len),k2=0,kValue;k20&&arguments[0]!==void 0?arguments[0]:[];_classCallCheck(this,SetLike3),_defineProperty(this,\"items\",void 0),this.items=items;}return _createClass(SetLike3,[{key:\"add\",value:function(value){return this.has(value)===!1&&this.items.push(value),this}},{key:\"clear\",value:function(){this.items=[];}},{key:\"delete\",value:function(value){var previousLength=this.items.length;return this.items=this.items.filter(function(item){return item!==value}),previousLength!==this.items.length}},{key:\"forEach\",value:function(callbackfn){var _this=this;this.items.forEach(function(item){callbackfn(item,item,_this);});}},{key:\"has\",value:function(value){return this.items.indexOf(value)!==-1}},{key:\"size\",get:function(){return this.items.length}}]),SetLike3}(),SetLike_default=typeof Set>\"u\"?Set:SetLike;function getLocalName(element){var _element$localName;return (_element$localName=element.localName)!==null&&_element$localName!==void 0?_element$localName:element.tagName.toLowerCase()}var localNameToRoleMappings={article:\"article\",aside:\"complementary\",button:\"button\",datalist:\"listbox\",dd:\"definition\",details:\"group\",dialog:\"dialog\",dt:\"term\",fieldset:\"group\",figure:\"figure\",form:\"form\",footer:\"contentinfo\",h1:\"heading\",h2:\"heading\",h3:\"heading\",h4:\"heading\",h5:\"heading\",h6:\"heading\",header:\"banner\",hr:\"separator\",html:\"document\",legend:\"legend\",li:\"listitem\",math:\"math\",main:\"main\",menu:\"list\",nav:\"navigation\",ol:\"list\",optgroup:\"group\",option:\"option\",output:\"status\",progress:\"progressbar\",section:\"region\",summary:\"button\",table:\"table\",tbody:\"rowgroup\",textarea:\"textbox\",tfoot:\"rowgroup\",td:\"cell\",th:\"columnheader\",thead:\"rowgroup\",tr:\"row\",ul:\"list\"},prohibitedAttributes={caption:new Set([\"aria-label\",\"aria-labelledby\"]),code:new Set([\"aria-label\",\"aria-labelledby\"]),deletion:new Set([\"aria-label\",\"aria-labelledby\"]),emphasis:new Set([\"aria-label\",\"aria-labelledby\"]),generic:new Set([\"aria-label\",\"aria-labelledby\",\"aria-roledescription\"]),insertion:new Set([\"aria-label\",\"aria-labelledby\"]),none:new Set([\"aria-label\",\"aria-labelledby\"]),paragraph:new Set([\"aria-label\",\"aria-labelledby\"]),presentation:new Set([\"aria-label\",\"aria-labelledby\"]),strong:new Set([\"aria-label\",\"aria-labelledby\"]),subscript:new Set([\"aria-label\",\"aria-labelledby\"]),superscript:new Set([\"aria-label\",\"aria-labelledby\"])};function hasGlobalAriaAttributes(element,role){return [\"aria-atomic\",\"aria-busy\",\"aria-controls\",\"aria-current\",\"aria-description\",\"aria-describedby\",\"aria-details\",\"aria-dropeffect\",\"aria-flowto\",\"aria-grabbed\",\"aria-hidden\",\"aria-keyshortcuts\",\"aria-label\",\"aria-labelledby\",\"aria-live\",\"aria-owns\",\"aria-relevant\",\"aria-roledescription\"].some(function(attributeName){var _prohibitedAttributes;return element.hasAttribute(attributeName)&&!((_prohibitedAttributes=prohibitedAttributes[role])!==null&&_prohibitedAttributes!==void 0&&_prohibitedAttributes.has(attributeName))})}function ignorePresentationalRole(element,implicitRole){return hasGlobalAriaAttributes(element,implicitRole)}function getRole(element){var explicitRole=getExplicitRole(element);if(explicitRole===null||presentationRoles.indexOf(explicitRole)!==-1){var implicitRole=getImplicitRole(element);if(presentationRoles.indexOf(explicitRole||\"\")===-1||ignorePresentationalRole(element,implicitRole||\"\"))return implicitRole}return explicitRole}function getImplicitRole(element){var mappedByTag=localNameToRoleMappings[getLocalName(element)];if(mappedByTag!==void 0)return mappedByTag;switch(getLocalName(element)){case\"a\":case\"area\":case\"link\":if(element.hasAttribute(\"href\"))return \"link\";break;case\"img\":return element.getAttribute(\"alt\")===\"\"&&!ignorePresentationalRole(element,\"img\")?\"presentation\":\"img\";case\"input\":{var _ref=element,type5=_ref.type;switch(type5){case\"button\":case\"image\":case\"reset\":case\"submit\":return \"button\";case\"checkbox\":case\"radio\":return type5;case\"range\":return \"slider\";case\"email\":case\"tel\":case\"text\":case\"url\":return element.hasAttribute(\"list\")?\"combobox\":\"textbox\";case\"search\":return element.hasAttribute(\"list\")?\"combobox\":\"searchbox\";case\"number\":return \"spinbutton\";default:return null}}case\"select\":return element.hasAttribute(\"multiple\")||element.size>1?\"listbox\":\"combobox\"}return null}function getExplicitRole(element){var role=element.getAttribute(\"role\");if(role!==null){var explicitRole=role.trim().split(\" \")[0];if(explicitRole.length>0)return explicitRole}return null}var presentationRoles=[\"presentation\",\"none\"];function isElement(node){return node!==null&&node.nodeType===node.ELEMENT_NODE}function isHTMLTableCaptionElement(node){return isElement(node)&&getLocalName(node)===\"caption\"}function isHTMLInputElement(node){return isElement(node)&&getLocalName(node)===\"input\"}function isHTMLOptGroupElement(node){return isElement(node)&&getLocalName(node)===\"optgroup\"}function isHTMLSelectElement(node){return isElement(node)&&getLocalName(node)===\"select\"}function isHTMLTableElement(node){return isElement(node)&&getLocalName(node)===\"table\"}function isHTMLTextAreaElement(node){return isElement(node)&&getLocalName(node)===\"textarea\"}function safeWindow(node){var _ref=node.ownerDocument===null?node:node.ownerDocument,defaultView=_ref.defaultView;if(defaultView===null)throw new TypeError(\"no window available\");return defaultView}function isHTMLFieldSetElement(node){return isElement(node)&&getLocalName(node)===\"fieldset\"}function isHTMLLegendElement(node){return isElement(node)&&getLocalName(node)===\"legend\"}function isHTMLSlotElement(node){return isElement(node)&&getLocalName(node)===\"slot\"}function isSVGElement(node){return isElement(node)&&node.ownerSVGElement!==void 0}function isSVGSVGElement(node){return isElement(node)&&getLocalName(node)===\"svg\"}function isSVGTitleElement(node){return isSVGElement(node)&&getLocalName(node)===\"title\"}function queryIdRefs(node,attributeName){if(isElement(node)&&node.hasAttribute(attributeName)){var ids=node.getAttribute(attributeName).split(\" \"),root=node.getRootNode?node.getRootNode():node.ownerDocument;return ids.map(function(id){return root.getElementById(id)}).filter(function(element){return element!==null})}return []}function hasAnyConcreteRoles(node,roles3){return isElement(node)?roles3.indexOf(getRole(node))!==-1:!1}function asFlatString(s){return s.trim().replace(/\\s\\s+/g,\" \")}function isHidden(node,getComputedStyleImplementation){if(!isElement(node))return !1;if(node.hasAttribute(\"hidden\")||node.getAttribute(\"aria-hidden\")===\"true\")return !0;var style=getComputedStyleImplementation(node);return style.getPropertyValue(\"display\")===\"none\"||style.getPropertyValue(\"visibility\")===\"hidden\"}function isControl(node){return hasAnyConcreteRoles(node,[\"button\",\"combobox\",\"listbox\",\"textbox\"])||hasAbstractRole(node,\"range\")}function hasAbstractRole(node,role){if(!isElement(node))return !1;switch(role){case\"range\":return hasAnyConcreteRoles(node,[\"meter\",\"progressbar\",\"scrollbar\",\"slider\",\"spinbutton\"]);default:throw new TypeError(\"No knowledge about abstract role '\".concat(role,\"'. This is likely a bug :(\"))}}function querySelectorAllSubtree(element,selectors){var elements=arrayFrom(element.querySelectorAll(selectors));return queryIdRefs(element,\"aria-owns\").forEach(function(root){elements.push.apply(elements,arrayFrom(root.querySelectorAll(selectors)));}),elements}function querySelectedOptions(listbox){return isHTMLSelectElement(listbox)?listbox.selectedOptions||querySelectorAllSubtree(listbox,\"[selected]\"):querySelectorAllSubtree(listbox,'[aria-selected=\"true\"]')}function isMarkedPresentational(node){return hasAnyConcreteRoles(node,presentationRoles)}function isNativeHostLanguageTextAlternativeElement(node){return isHTMLTableCaptionElement(node)}function allowsNameFromContent(node){return hasAnyConcreteRoles(node,[\"button\",\"cell\",\"checkbox\",\"columnheader\",\"gridcell\",\"heading\",\"label\",\"legend\",\"link\",\"menuitem\",\"menuitemcheckbox\",\"menuitemradio\",\"option\",\"radio\",\"row\",\"rowheader\",\"switch\",\"tab\",\"tooltip\",\"treeitem\"])}function isDescendantOfNativeHostLanguageTextAlternativeElement(node){return !1}function getValueOfTextbox(element){return isHTMLInputElement(element)||isHTMLTextAreaElement(element)?element.value:element.textContent||\"\"}function getTextualContent(declaration){var content=declaration.getPropertyValue(\"content\");return /^[\"'].*[\"']$/.test(content)?content.slice(1,-1):\"\"}function isLabelableElement(element){var localName=getLocalName(element);return localName===\"button\"||localName===\"input\"&&element.getAttribute(\"type\")!==\"hidden\"||localName===\"meter\"||localName===\"output\"||localName===\"progress\"||localName===\"select\"||localName===\"textarea\"}function findLabelableElement(element){if(isLabelableElement(element))return element;var labelableElement=null;return element.childNodes.forEach(function(childNode){if(labelableElement===null&&isElement(childNode)){var descendantLabelableElement=findLabelableElement(childNode);descendantLabelableElement!==null&&(labelableElement=descendantLabelableElement);}}),labelableElement}function getControlOfLabel(label){if(label.control!==void 0)return label.control;var htmlFor=label.getAttribute(\"for\");return htmlFor!==null?label.ownerDocument.getElementById(htmlFor):findLabelableElement(label)}function getLabels(element){var labelsProperty=element.labels;if(labelsProperty===null)return labelsProperty;if(labelsProperty!==void 0)return arrayFrom(labelsProperty);if(!isLabelableElement(element))return null;var document2=element.ownerDocument;return arrayFrom(document2.querySelectorAll(\"label\")).filter(function(label){return getControlOfLabel(label)===element})}function getSlotContents(slot){var assignedNodes=slot.assignedNodes();return assignedNodes.length===0?arrayFrom(slot.childNodes):assignedNodes}function computeTextAlternative(root){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},consultedNodes=new SetLike_default,window2=safeWindow(root),_options$compute=options.compute,compute=_options$compute===void 0?\"name\":_options$compute,_options$computedStyl=options.computedStyleSupportsPseudoElements,computedStyleSupportsPseudoElements=_options$computedStyl===void 0?options.getComputedStyle!==void 0:_options$computedStyl,_options$getComputedS=options.getComputedStyle,getComputedStyle=_options$getComputedS===void 0?window2.getComputedStyle.bind(window2):_options$getComputedS,_options$hidden=options.hidden,hidden=_options$hidden===void 0?!1:_options$hidden;function computeMiscTextAlternative(node,context){var accumulatedText=\"\";if(isElement(node)&&computedStyleSupportsPseudoElements){var pseudoBefore=getComputedStyle(node,\"::before\"),beforeContent=getTextualContent(pseudoBefore);accumulatedText=\"\".concat(beforeContent,\" \").concat(accumulatedText);}var childNodes=isHTMLSlotElement(node)?getSlotContents(node):arrayFrom(node.childNodes).concat(queryIdRefs(node,\"aria-owns\"));if(childNodes.forEach(function(child){var result=computeTextAlternative3(child,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),display2=isElement(child)?getComputedStyle(child).getPropertyValue(\"display\"):\"inline\",separator=display2!==\"inline\"?\" \":\"\";accumulatedText+=\"\".concat(separator).concat(result).concat(separator);}),isElement(node)&&computedStyleSupportsPseudoElements){var pseudoAfter=getComputedStyle(node,\"::after\"),afterContent=getTextualContent(pseudoAfter);accumulatedText=\"\".concat(accumulatedText,\" \").concat(afterContent);}return accumulatedText.trim()}function useAttribute(element,attributeName){var attribute=element.getAttributeNode(attributeName);return attribute!==null&&!consultedNodes.has(attribute)&&attribute.value.trim()!==\"\"?(consultedNodes.add(attribute),attribute.value):null}function computeTooltipAttributeValue(node){return isElement(node)?useAttribute(node,\"title\"):null}function computeElementTextAlternative(node){if(!isElement(node))return null;if(isHTMLFieldSetElement(node)){consultedNodes.add(node);for(var children=arrayFrom(node.childNodes),i=0;i0}).join(\" \");if(isHTMLInputElement(node)&&node.type===\"image\"){var _nameFromAlt=useAttribute(node,\"alt\");if(_nameFromAlt!==null)return _nameFromAlt;var nameFromTitle=useAttribute(node,\"title\");return nameFromTitle!==null?nameFromTitle:\"Submit Query\"}if(hasAnyConcreteRoles(node,[\"button\"])){var nameFromSubTree=computeMiscTextAlternative(node,{isEmbeddedInLabel:!1,isReferenced:!1});if(nameFromSubTree!==\"\")return nameFromSubTree}return null}function computeTextAlternative3(current,context){if(consultedNodes.has(current))return \"\";if(!hidden&&isHidden(current,getComputedStyle)&&!context.isReferenced)return consultedNodes.add(current),\"\";var labelAttributeNode=isElement(current)?current.getAttributeNode(\"aria-labelledby\"):null,labelElements=labelAttributeNode!==null&&!consultedNodes.has(labelAttributeNode)?queryIdRefs(current,\"aria-labelledby\"):[];if(compute===\"name\"&&!context.isReferenced&&labelElements.length>0)return consultedNodes.add(labelAttributeNode),labelElements.map(function(element){return computeTextAlternative3(element,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(\" \");var skipToStep2E=context.recursion&&isControl(current)&&compute===\"name\";if(!skipToStep2E){var ariaLabel=(isElement(current)&¤t.getAttribute(\"aria-label\")||\"\").trim();if(ariaLabel!==\"\"&&compute===\"name\")return consultedNodes.add(current),ariaLabel;if(!isMarkedPresentational(current)){var elementTextAlternative=computeElementTextAlternative(current);if(elementTextAlternative!==null)return consultedNodes.add(current),elementTextAlternative}}if(hasAnyConcreteRoles(current,[\"menu\"]))return consultedNodes.add(current),\"\";if(skipToStep2E||context.isEmbeddedInLabel||context.isReferenced){if(hasAnyConcreteRoles(current,[\"combobox\",\"listbox\"])){consultedNodes.add(current);var selectedOptions=querySelectedOptions(current);return selectedOptions.length===0?isHTMLInputElement(current)?current.value:\"\":arrayFrom(selectedOptions).map(function(selectedOption){return computeTextAlternative3(selectedOption,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(\" \")}if(hasAbstractRole(current,\"range\"))return consultedNodes.add(current),current.hasAttribute(\"aria-valuetext\")?current.getAttribute(\"aria-valuetext\"):current.hasAttribute(\"aria-valuenow\")?current.getAttribute(\"aria-valuenow\"):current.getAttribute(\"value\")||\"\";if(hasAnyConcreteRoles(current,[\"textbox\"]))return consultedNodes.add(current),getValueOfTextbox(current)}if(allowsNameFromContent(current)||isElement(current)&&context.isReferenced||isNativeHostLanguageTextAlternativeElement(current)||isDescendantOfNativeHostLanguageTextAlternativeElement()){var accumulatedText2F=computeMiscTextAlternative(current,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1});if(accumulatedText2F!==\"\")return consultedNodes.add(current),accumulatedText2F}if(current.nodeType===current.TEXT_NODE)return consultedNodes.add(current),current.textContent||\"\";if(context.recursion)return consultedNodes.add(current),computeMiscTextAlternative(current,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1});var tooltipAttributeValue=computeTooltipAttributeValue(current);return tooltipAttributeValue!==null?(consultedNodes.add(current),tooltipAttributeValue):(consultedNodes.add(current),\"\")}return asFlatString(computeTextAlternative3(root,{isEmbeddedInLabel:!1,isReferenced:compute===\"description\",recursion:!1}))}function _typeof2(o){\"@babel/helpers - typeof\";return _typeof2=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(o2){return typeof o2}:function(o2){return o2&&typeof Symbol==\"function\"&&o2.constructor===Symbol&&o2!==Symbol.prototype?\"symbol\":typeof o2},_typeof2(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r2){return Object.getOwnPropertyDescriptor(e,r2).enumerable})),t.push.apply(t,o);}return t}function _objectSpread(e){for(var r=1;r1&&arguments[1]!==void 0?arguments[1]:{},description=queryIdRefs(root,\"aria-describedby\").map(function(element){return computeTextAlternative(element,_objectSpread(_objectSpread({},options),{},{compute:\"description\"}))}).join(\" \");if(description===\"\"){var ariaDescription=root.getAttribute(\"aria-description\");description=ariaDescription===null?\"\":ariaDescription;}if(description===\"\"){var title=root.getAttribute(\"title\");description=title===null?\"\":title;}return description}function prohibitsNaming(node){return hasAnyConcreteRoles(node,[\"caption\",\"code\",\"deletion\",\"emphasis\",\"generic\",\"insertion\",\"none\",\"paragraph\",\"presentation\",\"strong\",\"subscript\",\"superscript\"])}function computeAccessibleName(root){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return prohibitsNaming(root)?\"\":computeTextAlternative(root,options)}var import_aria_query=__toESM(require_lib(),1),import_chalk=__toESM(require_source(),1),import_isEqualWith=__toESM(require_isEqualWith(),1),import_css=__toESM(require_css_escape(),1),GenericTypeError=class extends Error{constructor(expectedString,received,matcherFn,context){super(),Error.captureStackTrace&&Error.captureStackTrace(this,matcherFn);let withType=\"\";try{withType=context.utils.printWithType(\"Received\",received,context.utils.printReceived);}catch{}this.message=[context.utils.matcherHint(`${context.isNot?\".not\":\"\"}.${matcherFn.name}`,\"received\",\"\"),\"\",`${context.utils.RECEIVED_COLOR(\"received\")} value must ${expectedString}.`,withType].join(`\n`);}},HtmlElementTypeError=class extends GenericTypeError{constructor(...args){super(\"be an HTMLElement or an SVGElement\",...args);}},NodeTypeError=class extends GenericTypeError{constructor(...args){super(\"be a Node\",...args);}};function checkHasWindow(htmlElement,ErrorClass,...args){if(!htmlElement||!htmlElement.ownerDocument||!htmlElement.ownerDocument.defaultView)throw new ErrorClass(htmlElement,...args)}function checkNode(node,...args){checkHasWindow(node,NodeTypeError,...args);let window2=node.ownerDocument.defaultView;if(!(node instanceof window2.Node))throw new NodeTypeError(node,...args)}function checkHtmlElement(htmlElement,...args){checkHasWindow(htmlElement,HtmlElementTypeError,...args);let window2=htmlElement.ownerDocument.defaultView;if(!(htmlElement instanceof window2.HTMLElement)&&!(htmlElement instanceof window2.SVGElement))throw new HtmlElementTypeError(htmlElement,...args)}var InvalidCSSError=class extends Error{constructor(received,matcherFn,context){super(),Error.captureStackTrace&&Error.captureStackTrace(this,matcherFn),this.message=[received.message,\"\",context.utils.RECEIVED_COLOR(\"Failing css:\"),context.utils.RECEIVED_COLOR(`${received.css}`)].join(`\n`);}};function parseCSS(css,...args){let ast=$149c1bd638913645$export$98e6a39c04603d36(`selector { ${css} }`,{silent:!0}).stylesheet;if(ast.parsingErrors&&ast.parsingErrors.length>0){let{reason,line}=ast.parsingErrors[0];throw new InvalidCSSError({css,message:`Syntax error parsing expected css: ${reason} on line: ${line}`},...args)}return ast.rules[0].declarations.filter(d2=>d2.type===\"declaration\").reduce((obj,{property,value})=>Object.assign(obj,{[property]:value}),{})}function display(context,value){return typeof value==\"string\"?value:context.utils.stringify(value)}function getMessage3(context,matcher,expectedLabel,expectedValue,receivedLabel,receivedValue){return [`${matcher}\n`,`${expectedLabel}:\n${context.utils.EXPECTED_COLOR((0, import_redent.default)(display(context,expectedValue),2))}`,`${receivedLabel}:\n${context.utils.RECEIVED_COLOR((0, import_redent.default)(display(context,receivedValue),2))}`].join(`\n`)}function matches(textToMatch,matcher){return matcher instanceof RegExp?matcher.test(textToMatch):textToMatch.includes(String(matcher))}function deprecate(name,replacementText){console.warn(`Warning: ${name} has been deprecated and will be removed in future updates.`,replacementText);}function normalize(text){return text.replace(/\\s+/g,\" \").trim()}function getTag(element){return element.tagName&&element.tagName.toLowerCase()}function getSelectValue({multiple,options}){let selectedOptions=[...options].filter(option=>option.selected);if(multiple)return [...selectedOptions].map(opt=>opt.value);if(selectedOptions.length!==0)return selectedOptions[0].value}function getInputValue(inputElement){switch(inputElement.type){case\"number\":return inputElement.value===\"\"?null:Number(inputElement.value);case\"checkbox\":return inputElement.checked;default:return inputElement.value}}var rolesSupportingValues=[\"meter\",\"progressbar\",\"slider\",\"spinbutton\"];function getAccessibleValue(element){if(rolesSupportingValues.includes(element.getAttribute(\"role\")))return Number(element.getAttribute(\"aria-valuenow\"))}function getSingleElementValue(element){if(element)switch(element.tagName.toLowerCase()){case\"input\":return getInputValue(element);case\"select\":return getSelectValue(element);default:return element.value??getAccessibleValue(element)}}function toSentence(array,{wordConnector=\", \",lastWordConnector=\" and \"}={}){return [array.slice(0,-1).join(wordConnector),array[array.length-1]].join(array.length>1?lastWordConnector:\"\")}function compareArraysAsSet(arr1,arr2){if(Array.isArray(arr1)&&Array.isArray(arr2))return [...new Set(arr1)].every(v=>new Set(arr2).has(v))}function toBeInTheDOM(element,container){return deprecate(\"toBeInTheDOM\",\"Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container.\"),element&&checkHtmlElement(element,toBeInTheDOM,this),container&&checkHtmlElement(container,toBeInTheDOM,this),{pass:container?container.contains(element):!!element,message:()=>[this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toBeInTheDOM`,\"element\",\"\"),\"\",\"Received:\",` ${this.utils.printReceived(element&&element.cloneNode(!1))}`].join(`\n`)}}function toBeInTheDocument(element){(element!==null||!this.isNot)&&checkHtmlElement(element,toBeInTheDocument,this);let pass=element===null?!1:element.ownerDocument===element.getRootNode({composed:!0}),errorFound=()=>`expected document not to contain element, found ${this.utils.stringify(element.cloneNode(!0))} instead`,errorNotFound=()=>\"element could not be found in the document\";return {pass,message:()=>[this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toBeInTheDocument`,\"element\",\"\"),\"\",this.utils.RECEIVED_COLOR(this.isNot?errorFound():errorNotFound())].join(`\n`)}}function toBeEmpty(element){return deprecate(\"toBeEmpty\",\"Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.\"),checkHtmlElement(element,toBeEmpty,this),{pass:element.innerHTML===\"\",message:()=>[this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toBeEmpty`,\"element\",\"\"),\"\",\"Received:\",` ${this.utils.printReceived(element.innerHTML)}`].join(`\n`)}}function toBeEmptyDOMElement(element){return checkHtmlElement(element,toBeEmptyDOMElement,this),{pass:isEmptyElement(element),message:()=>[this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toBeEmptyDOMElement`,\"element\",\"\"),\"\",\"Received:\",` ${this.utils.printReceived(element.innerHTML)}`].join(`\n`)}}function isEmptyElement(element){return [...element.childNodes].filter(node=>node.nodeType!==8).length===0}function toContainElement(container,element){return checkHtmlElement(container,toContainElement,this),element!==null&&checkHtmlElement(element,toContainElement,this),{pass:container.contains(element),message:()=>[this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toContainElement`,\"element\",\"element\"),\"\",this.utils.RECEIVED_COLOR(`${this.utils.stringify(container.cloneNode(!1))} ${this.isNot?\"contains:\":\"does not contain:\"} ${this.utils.stringify(element&&element.cloneNode(!1))}\n `)].join(`\n`)}}function getNormalizedHtml(container,htmlText){let div=container.ownerDocument.createElement(\"div\");return div.innerHTML=htmlText,div.innerHTML}function toContainHTML(container,htmlText){if(checkHtmlElement(container,toContainHTML,this),typeof htmlText!=\"string\")throw new Error(`.toContainHTML() expects a string value, got ${htmlText}`);return {pass:container.outerHTML.includes(getNormalizedHtml(container,htmlText)),message:()=>[this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toContainHTML`,\"element\",\"\"),\"Expected:\",` ${this.utils.EXPECTED_COLOR(htmlText)}`,\"Received:\",` ${this.utils.printReceived(container.cloneNode(!0))}`].join(`\n`)}}function toHaveTextContent(node,checkWith,options={normalizeWhitespace:!0}){checkNode(node,toHaveTextContent,this);let textContent=options.normalizeWhitespace?normalize(node.textContent):node.textContent.replace(/\\u00a0/g,\" \"),checkingWithEmptyString=textContent!==\"\"&&checkWith===\"\";return {pass:!checkingWithEmptyString&&matches(textContent,checkWith),message:()=>{let to=this.isNot?\"not to\":\"to\";return getMessage3(this,this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toHaveTextContent`,\"element\",\"\"),checkingWithEmptyString?\"Checking with empty string will always match, use .toBeEmptyDOMElement() instead\":`Expected element ${to} have text content`,checkWith,\"Received\",textContent)}}}function toHaveAccessibleDescription(htmlElement,expectedAccessibleDescription){checkHtmlElement(htmlElement,toHaveAccessibleDescription,this);let actualAccessibleDescription=computeAccessibleDescription(htmlElement),missingExpectedValue=arguments.length===1,pass=!1;return missingExpectedValue?pass=actualAccessibleDescription!==\"\":pass=expectedAccessibleDescription instanceof RegExp?expectedAccessibleDescription.test(actualAccessibleDescription):this.equals(actualAccessibleDescription,expectedAccessibleDescription),{pass,message:()=>{let to=this.isNot?\"not to\":\"to\";return getMessage3(this,this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.${toHaveAccessibleDescription.name}`,\"element\",\"\"),`Expected element ${to} have accessible description`,expectedAccessibleDescription,\"Received\",actualAccessibleDescription)}}}var ariaInvalidName=\"aria-invalid\",validStates=[\"false\"];function toHaveAccessibleErrorMessage(htmlElement,expectedAccessibleErrorMessage){checkHtmlElement(htmlElement,toHaveAccessibleErrorMessage,this);let to=this.isNot?\"not to\":\"to\",method=this.isNot?\".not.toHaveAccessibleErrorMessage\":\".toHaveAccessibleErrorMessage\",errormessageId=htmlElement.getAttribute(\"aria-errormessage\");if(!!errormessageId&&/\\s+/.test(errormessageId))return {pass:!1,message:()=>getMessage3(this,this.utils.matcherHint(method,\"element\"),\"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID\",\"\",\"Received\",`aria-errormessage=\"${errormessageId}\"`)};let ariaInvalidVal=htmlElement.getAttribute(ariaInvalidName);if(!htmlElement.hasAttribute(ariaInvalidName)||validStates.includes(ariaInvalidVal))return {pass:!1,message:()=>getMessage3(this,this.utils.matcherHint(method,\"element\"),\"Expected element to be marked as invalid with attribute\",`${ariaInvalidName}=\"${String(!0)}\"`,\"Received\",htmlElement.hasAttribute(\"aria-invalid\")?`${ariaInvalidName}=\"${htmlElement.getAttribute(ariaInvalidName)}`:null)};let error=normalize(htmlElement.ownerDocument.getElementById(errormessageId)?.textContent??\"\");return {pass:expectedAccessibleErrorMessage===void 0?!!error:expectedAccessibleErrorMessage instanceof RegExp?expectedAccessibleErrorMessage.test(error):this.equals(error,expectedAccessibleErrorMessage),message:()=>getMessage3(this,this.utils.matcherHint(method,\"element\"),`Expected element ${to} have accessible error message`,expectedAccessibleErrorMessage??\"\",\"Received\",error)}}var elementRoleList=buildElementRoleList(import_aria_query.elementRoles);function toHaveRole(htmlElement,expectedRole){checkHtmlElement(htmlElement,toHaveRole,this);let actualRoles=getExplicitOrImplicitRoles(htmlElement);return {pass:actualRoles.some(el=>el===expectedRole),message:()=>{let to=this.isNot?\"not to\":\"to\";return getMessage3(this,this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.${toHaveRole.name}`,\"element\",\"\"),`Expected element ${to} have role`,expectedRole,\"Received\",actualRoles.join(\", \"))}}}function getExplicitOrImplicitRoles(htmlElement){return htmlElement.hasAttribute(\"role\")?htmlElement.getAttribute(\"role\").split(\" \").filter(Boolean):getImplicitAriaRoles(htmlElement)}function getImplicitAriaRoles(currentNode){for(let{match,roles:roles3}of elementRoleList)if(match(currentNode))return [...roles3];return []}function buildElementRoleList(elementRolesMap){function makeElementSelector({name,attributes}){return `${name}${attributes.map(({name:attributeName,value,constraints=[]})=>constraints.indexOf(\"undefined\")!==-1?`:not([${attributeName}])`:value?`[${attributeName}=\"${value}\"]`:`[${attributeName}]`).join(\"\")}`}function getSelectorSpecificity({attributes=[]}){return attributes.length}function bySelectorSpecificity({specificity:leftSpecificity},{specificity:rightSpecificity}){return rightSpecificity-leftSpecificity}function match(element){let{attributes=[]}=element,typeTextIndex=attributes.findIndex(attribute=>attribute.value&&attribute.name===\"type\"&&attribute.value===\"text\");typeTextIndex>=0&&(attributes=[...attributes.slice(0,typeTextIndex),...attributes.slice(typeTextIndex+1)]);let selector=makeElementSelector({...element,attributes});return node=>typeTextIndex>=0&&node.type!==\"text\"?!1:node.matches(selector)}let result=[];for(let[element,roles3]of elementRolesMap.entries())result=[...result,{match:match(element),roles:Array.from(roles3),specificity:getSelectorSpecificity(element)}];return result.sort(bySelectorSpecificity)}function toHaveAccessibleName(htmlElement,expectedAccessibleName){checkHtmlElement(htmlElement,toHaveAccessibleName,this);let actualAccessibleName=computeAccessibleName(htmlElement),missingExpectedValue=arguments.length===1,pass=!1;return missingExpectedValue?pass=actualAccessibleName!==\"\":pass=expectedAccessibleName instanceof RegExp?expectedAccessibleName.test(actualAccessibleName):this.equals(actualAccessibleName,expectedAccessibleName),{pass,message:()=>{let to=this.isNot?\"not to\":\"to\";return getMessage3(this,this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.${toHaveAccessibleName.name}`,\"element\",\"\"),`Expected element ${to} have accessible name`,expectedAccessibleName,\"Received\",actualAccessibleName)}}}function printAttribute(stringify2,name,value){return value===void 0?name:`${name}=${stringify2(value)}`}function getAttributeComment(stringify2,name,value){return value===void 0?`element.hasAttribute(${stringify2(name)})`:`element.getAttribute(${stringify2(name)}) === ${stringify2(value)}`}function toHaveAttribute(htmlElement,name,expectedValue){checkHtmlElement(htmlElement,toHaveAttribute,this);let isExpectedValuePresent=expectedValue!==void 0,hasAttribute=htmlElement.hasAttribute(name),receivedValue=htmlElement.getAttribute(name);return {pass:isExpectedValuePresent?hasAttribute&&this.equals(receivedValue,expectedValue):hasAttribute,message:()=>{let to=this.isNot?\"not to\":\"to\",receivedAttribute=hasAttribute?printAttribute(this.utils.stringify,name,receivedValue):null,matcher=this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toHaveAttribute`,\"element\",this.utils.printExpected(name),{secondArgument:isExpectedValuePresent?this.utils.printExpected(expectedValue):void 0,comment:getAttributeComment(this.utils.stringify,name,expectedValue)});return getMessage3(this,matcher,`Expected the element ${to} have attribute`,printAttribute(this.utils.stringify,name,expectedValue),\"Received\",receivedAttribute)}}}function getExpectedClassNamesAndOptions(params){let lastParam=params.pop(),expectedClassNames,options;return typeof lastParam==\"object\"&&!(lastParam instanceof RegExp)?(expectedClassNames=params,options=lastParam):(expectedClassNames=params.concat(lastParam),options={exact:!1}),{expectedClassNames,options}}function splitClassNames(str){return str?str.split(/\\s+/).filter(s=>s.length>0):[]}function isSubset$1(subset,superset){return subset.every(strOrRegexp=>typeof strOrRegexp==\"string\"?superset.includes(strOrRegexp):superset.some(className=>strOrRegexp.test(className)))}function toHaveClass(htmlElement,...params){checkHtmlElement(htmlElement,toHaveClass,this);let{expectedClassNames,options}=getExpectedClassNamesAndOptions(params),received=splitClassNames(htmlElement.getAttribute(\"class\")),expected=expectedClassNames.reduce((acc,className)=>acc.concat(typeof className==\"string\"||!className?splitClassNames(className):className),[]),hasRegExp=expected.some(className=>className instanceof RegExp);if(options.exact&&hasRegExp)throw new Error(\"Exact option does not support RegExp expected class names\");return options.exact?{pass:isSubset$1(expected,received)&&expected.length===received.length,message:()=>{let to=this.isNot?\"not to\":\"to\";return getMessage3(this,this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toHaveClass`,\"element\",this.utils.printExpected(expected.join(\" \"))),`Expected the element ${to} have EXACTLY defined classes`,expected.join(\" \"),\"Received\",received.join(\" \"))}}:expected.length>0?{pass:isSubset$1(expected,received),message:()=>{let to=this.isNot?\"not to\":\"to\";return getMessage3(this,this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toHaveClass`,\"element\",this.utils.printExpected(expected.join(\" \"))),`Expected the element ${to} have class`,expected.join(\" \"),\"Received\",received.join(\" \"))}}:{pass:this.isNot?received.length>0:!1,message:()=>this.isNot?getMessage3(this,this.utils.matcherHint(\".not.toHaveClass\",\"element\",\"\"),\"Expected the element to have classes\",\"(none)\",\"Received\",received.join(\" \")):[this.utils.matcherHint(\".toHaveClass\",\"element\"),\"At least one expected class must be provided.\"].join(`\n`)}}function getStyleDeclaration(document2,css){let styles3={},copy3=document2.createElement(\"div\");return Object.keys(css).forEach(property=>{copy3.style[property]=css[property],styles3[property]=copy3.style[property];}),styles3}function isSubset(styles3,computedStyle){return !!Object.keys(styles3).length&&Object.entries(styles3).every(([prop,value])=>{let isCustomProperty=prop.startsWith(\"--\"),spellingVariants=[prop];return isCustomProperty||spellingVariants.push(prop.toLowerCase()),spellingVariants.some(name=>computedStyle[name]===value||computedStyle.getPropertyValue(name)===value)})}function printoutStyles(styles3){return Object.keys(styles3).sort().map(prop=>`${prop}: ${styles3[prop]};`).join(`\n`)}function expectedDiff(diffFn,expected,computedStyles){let received=Array.from(computedStyles).filter(prop=>expected[prop]!==void 0).reduce((obj,prop)=>Object.assign(obj,{[prop]:computedStyles.getPropertyValue(prop)}),{});return diffFn(printoutStyles(expected),printoutStyles(received)).replace(`${import_chalk.default.red(\"+ Received\")}\n`,\"\")}function toHaveStyle(htmlElement,css){checkHtmlElement(htmlElement,toHaveStyle,this);let parsedCSS=typeof css==\"object\"?css:parseCSS(css,toHaveStyle,this),{getComputedStyle}=htmlElement.ownerDocument.defaultView,expected=getStyleDeclaration(htmlElement.ownerDocument,parsedCSS),received=getComputedStyle(htmlElement);return {pass:isSubset(expected,received),message:()=>{let matcher=`${this.isNot?\".not\":\"\"}.toHaveStyle`;return [this.utils.matcherHint(matcher,\"element\",\"\"),expectedDiff(this.utils.diff,expected,received)].join(`\n\n`)}}}function toHaveFocus(element){return checkHtmlElement(element,toHaveFocus,this),{pass:element.ownerDocument.activeElement===element,message:()=>[this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toHaveFocus`,\"element\",\"\"),\"\",...this.isNot?[\"Received element is focused:\",` ${this.utils.printReceived(element)}`]:[\"Expected element with focus:\",` ${this.utils.printExpected(element)}`,\"Received element with focus:\",` ${this.utils.printReceived(element.ownerDocument.activeElement)}`]].join(`\n`)}}function getMultiElementValue(elements){let types=[...new Set(elements.map(element=>element.type))];if(types.length!==1)throw new Error(\"Multiple form elements with the same name must be of the same type\");switch(types[0]){case\"radio\":{let theChosenOne=elements.find(radio=>radio.checked);return theChosenOne?theChosenOne.value:void 0}case\"checkbox\":return elements.filter(checkbox=>checkbox.checked).map(checkbox=>checkbox.value);default:return elements.map(element=>element.value)}}function getFormValue(container,name){let elements=[...container.querySelectorAll(`[name=\"${(0, import_css.default)(name)}\"]`)];if(elements.length!==0)switch(elements.length){case 1:return getSingleElementValue(elements[0]);default:return getMultiElementValue(elements)}}function getPureName(name){return /\\[\\]$/.test(name)?name.slice(0,-2):name}function getAllFormValues(container){return Array.from(container.elements).map(element=>element.name).reduce((obj,name)=>({...obj,[getPureName(name)]:getFormValue(container,name)}),{})}function toHaveFormValues(formElement,expectedValues){if(checkHtmlElement(formElement,toHaveFormValues,this),!formElement.elements)throw new Error(\"toHaveFormValues must be called on a form or a fieldset\");let formValues=getAllFormValues(formElement);return {pass:Object.entries(expectedValues).every(([name,expectedValue])=>(0, import_isEqualWith.default)(formValues[name],expectedValue,compareArraysAsSet)),message:()=>{let to=this.isNot?\"not to\":\"to\",matcher=`${this.isNot?\".not\":\"\"}.toHaveFormValues`,commonKeyValues=Object.keys(formValues).filter(key=>expectedValues.hasOwnProperty(key)).reduce((obj,key)=>({...obj,[key]:formValues[key]}),{});return [this.utils.matcherHint(matcher,\"element\",\"\"),`Expected the element ${to} have form values`,this.utils.diff(expectedValues,commonKeyValues)].join(`\n\n`)}}}function isStyleVisible(element){let{getComputedStyle}=element.ownerDocument.defaultView,{display:display2,visibility,opacity}=getComputedStyle(element);return display2!==\"none\"&&visibility!==\"hidden\"&&visibility!==\"collapse\"&&opacity!==\"0\"&&opacity!==0}function isAttributeVisible(element,previousElement){let detailsVisibility;return previousElement?detailsVisibility=element.nodeName===\"DETAILS\"&&previousElement.nodeName!==\"SUMMARY\"?element.hasAttribute(\"open\"):!0:detailsVisibility=element.nodeName===\"DETAILS\"?element.hasAttribute(\"open\"):!0,!element.hasAttribute(\"hidden\")&&detailsVisibility}function isElementVisible(element,previousElement){return isStyleVisible(element)&&isAttributeVisible(element,previousElement)&&(!element.parentElement||isElementVisible(element.parentElement,element))}function toBeVisible(element){checkHtmlElement(element,toBeVisible,this);let isInDocument=element.ownerDocument===element.getRootNode({composed:!0}),isVisible2=isInDocument&&isElementVisible(element);return {pass:isVisible2,message:()=>{let is=isVisible2?\"is\":\"is not\";return [this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toBeVisible`,\"element\",\"\"),\"\",`Received element ${is} visible${isInDocument?\"\":\" (element is not in the document)\"}:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join(`\n`)}}}var FORM_TAGS$2=[\"fieldset\",\"input\",\"select\",\"optgroup\",\"option\",\"button\",\"textarea\"];function isFirstLegendChildOfFieldset(element,parent){return getTag(element)===\"legend\"&&getTag(parent)===\"fieldset\"&&element.isSameNode(Array.from(parent.children).find(child=>getTag(child)===\"legend\"))}function isElementDisabledByParent(element,parent){return isElementDisabled(parent)&&!isFirstLegendChildOfFieldset(element,parent)}function isCustomElement(tag){return tag.includes(\"-\")}function canElementBeDisabled(element){let tag=getTag(element);return FORM_TAGS$2.includes(tag)||isCustomElement(tag)}function isElementDisabled(element){return canElementBeDisabled(element)&&element.hasAttribute(\"disabled\")}function isAncestorDisabled(element){let parent=element.parentElement;return !!parent&&(isElementDisabledByParent(element,parent)||isAncestorDisabled(parent))}function isElementOrAncestorDisabled(element){return canElementBeDisabled(element)&&(isElementDisabled(element)||isAncestorDisabled(element))}function toBeDisabled(element){checkHtmlElement(element,toBeDisabled,this);let isDisabled3=isElementOrAncestorDisabled(element);return {pass:isDisabled3,message:()=>{let is=isDisabled3?\"is\":\"is not\";return [this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toBeDisabled`,\"element\",\"\"),\"\",`Received element ${is} disabled:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join(`\n`)}}}function toBeEnabled(element){checkHtmlElement(element,toBeEnabled,this);let isEnabled=!isElementOrAncestorDisabled(element);return {pass:isEnabled,message:()=>{let is=isEnabled?\"is\":\"is not\";return [this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toBeEnabled`,\"element\",\"\"),\"\",`Received element ${is} enabled:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join(`\n`)}}}var FORM_TAGS$1=[\"select\",\"textarea\"],ARIA_FORM_TAGS=[\"input\",\"select\",\"textarea\"],UNSUPPORTED_INPUT_TYPES=[\"color\",\"hidden\",\"range\",\"submit\",\"image\",\"reset\"],SUPPORTED_ARIA_ROLES=[\"checkbox\",\"combobox\",\"gridcell\",\"listbox\",\"radiogroup\",\"spinbutton\",\"textbox\",\"tree\"];function isRequiredOnFormTagsExceptInput(element){return FORM_TAGS$1.includes(getTag(element))&&element.hasAttribute(\"required\")}function isRequiredOnSupportedInput(element){return getTag(element)===\"input\"&&element.hasAttribute(\"required\")&&(element.hasAttribute(\"type\")&&!UNSUPPORTED_INPUT_TYPES.includes(element.getAttribute(\"type\"))||!element.hasAttribute(\"type\"))}function isElementRequiredByARIA(element){return element.hasAttribute(\"aria-required\")&&element.getAttribute(\"aria-required\")===\"true\"&&(ARIA_FORM_TAGS.includes(getTag(element))||element.hasAttribute(\"role\")&&SUPPORTED_ARIA_ROLES.includes(element.getAttribute(\"role\")))}function toBeRequired(element){checkHtmlElement(element,toBeRequired,this);let isRequired=isRequiredOnFormTagsExceptInput(element)||isRequiredOnSupportedInput(element)||isElementRequiredByARIA(element);return {pass:isRequired,message:()=>{let is=isRequired?\"is\":\"is not\";return [this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toBeRequired`,\"element\",\"\"),\"\",`Received element ${is} required:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join(`\n`)}}}var FORM_TAGS=[\"form\",\"input\",\"select\",\"textarea\"];function isElementHavingAriaInvalid(element){return element.hasAttribute(\"aria-invalid\")&&element.getAttribute(\"aria-invalid\")!==\"false\"}function isSupportsValidityMethod(element){return FORM_TAGS.includes(getTag(element))}function isElementInvalid(element){let isHaveAriaInvalid=isElementHavingAriaInvalid(element);return isSupportsValidityMethod(element)?isHaveAriaInvalid||!element.checkValidity():isHaveAriaInvalid}function toBeInvalid(element){checkHtmlElement(element,toBeInvalid,this);let isInvalid=isElementInvalid(element);return {pass:isInvalid,message:()=>{let is=isInvalid?\"is\":\"is not\";return [this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toBeInvalid`,\"element\",\"\"),\"\",`Received element ${is} currently invalid:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join(`\n`)}}}function toBeValid(element){checkHtmlElement(element,toBeValid,this);let isValid=!isElementInvalid(element);return {pass:isValid,message:()=>{let is=isValid?\"is\":\"is not\";return [this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toBeValid`,\"element\",\"\"),\"\",`Received element ${is} currently valid:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join(`\n`)}}}function toHaveValue(htmlElement,expectedValue){if(checkHtmlElement(htmlElement,toHaveValue,this),htmlElement.tagName.toLowerCase()===\"input\"&&[\"checkbox\",\"radio\"].includes(htmlElement.type))throw new Error(\"input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead\");let receivedValue=getSingleElementValue(htmlElement),expectsValue=expectedValue!==void 0,expectedTypedValue=expectedValue,receivedTypedValue=receivedValue;return expectedValue==receivedValue&&expectedValue!==receivedValue&&(expectedTypedValue=`${expectedValue} (${typeof expectedValue})`,receivedTypedValue=`${receivedValue} (${typeof receivedValue})`),{pass:expectsValue?(0, import_isEqualWith.default)(receivedValue,expectedValue,compareArraysAsSet):!!receivedValue,message:()=>{let to=this.isNot?\"not to\":\"to\",matcher=this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toHaveValue`,\"element\",expectedValue);return getMessage3(this,matcher,`Expected the element ${to} have value`,expectsValue?expectedTypedValue:\"(any)\",\"Received\",receivedTypedValue)}}}function toHaveDisplayValue(htmlElement,expectedValue){checkHtmlElement(htmlElement,toHaveDisplayValue,this);let tagName=htmlElement.tagName.toLowerCase();if(![\"select\",\"input\",\"textarea\"].includes(tagName))throw new Error(\".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.\");if(tagName===\"input\"&&[\"radio\",\"checkbox\"].includes(htmlElement.type))throw new Error(`.toHaveDisplayValue() currently does not support input[type=\"${htmlElement.type}\"], try with another matcher instead.`);let values=getValues(tagName,htmlElement),expectedValues=getExpectedValues(expectedValue),numberOfMatchesWithValues=expectedValues.filter(expected=>values.some(value=>expected instanceof RegExp?expected.test(value):this.equals(value,String(expected)))).length,matchedWithAllValues=numberOfMatchesWithValues===values.length,matchedWithAllExpectedValues=numberOfMatchesWithValues===expectedValues.length;return {pass:matchedWithAllValues&&matchedWithAllExpectedValues,message:()=>getMessage3(this,this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toHaveDisplayValue`,\"element\",\"\"),`Expected element ${this.isNot?\"not \":\"\"}to have display value`,expectedValue,\"Received\",values)}}function getValues(tagName,htmlElement){return tagName===\"select\"?Array.from(htmlElement).filter(option=>option.selected).map(option=>option.textContent):[htmlElement.value]}function getExpectedValues(expectedValue){return expectedValue instanceof Array?expectedValue:[expectedValue]}function toBeChecked(element){checkHtmlElement(element,toBeChecked,this);let isValidInput=()=>element.tagName.toLowerCase()===\"input\"&&[\"checkbox\",\"radio\"].includes(element.type),isValidAriaElement=()=>roleSupportsChecked(element.getAttribute(\"role\"))&&[\"true\",\"false\"].includes(element.getAttribute(\"aria-checked\"));if(!isValidInput()&&!isValidAriaElement())return {pass:!1,message:()=>`only inputs with type=\"checkbox\" or type=\"radio\" or elements with ${supportedRolesSentence()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let isChecked=()=>isValidInput()?element.checked:element.getAttribute(\"aria-checked\")===\"true\";return {pass:isChecked(),message:()=>{let is=isChecked()?\"is\":\"is not\";return [this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toBeChecked`,\"element\",\"\"),\"\",`Received element ${is} checked:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join(`\n`)}}}function supportedRolesSentence(){return toSentence(supportedRoles().map(role=>`role=\"${role}\"`),{lastWordConnector:\" or \"})}function supportedRoles(){return import_aria_query.roles.keys().filter(roleSupportsChecked)}function roleSupportsChecked(role){return import_aria_query.roles.get(role)?.props[\"aria-checked\"]!==void 0}function toBePartiallyChecked(element){checkHtmlElement(element,toBePartiallyChecked,this);let isValidInput=()=>element.tagName.toLowerCase()===\"input\"&&element.type===\"checkbox\",isValidAriaElement=()=>element.getAttribute(\"role\")===\"checkbox\";if(!isValidInput()&&!isValidAriaElement())return {pass:!1,message:()=>'only inputs with type=\"checkbox\" or elements with role=\"checkbox\" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead'};let isPartiallyChecked=()=>{let isAriaMixed=element.getAttribute(\"aria-checked\")===\"mixed\";return isValidInput()&&element.indeterminate||isAriaMixed};return {pass:isPartiallyChecked(),message:()=>{let is=isPartiallyChecked()?\"is\":\"is not\";return [this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toBePartiallyChecked`,\"element\",\"\"),\"\",`Received element ${is} partially checked:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join(`\n`)}}}function toHaveDescription(htmlElement,checkWith){deprecate(\"toHaveDescription\",\"Please use toHaveAccessibleDescription.\"),checkHtmlElement(htmlElement,toHaveDescription,this);let expectsDescription=checkWith!==void 0,descriptionIDs=(htmlElement.getAttribute(\"aria-describedby\")||\"\").split(/\\s+/).filter(Boolean),description=\"\";if(descriptionIDs.length>0){let document2=htmlElement.ownerDocument,descriptionEls=descriptionIDs.map(descriptionID=>document2.getElementById(descriptionID)).filter(Boolean);description=normalize(descriptionEls.map(el=>el.textContent).join(\" \"));}return {pass:expectsDescription?checkWith instanceof RegExp?checkWith.test(description):this.equals(description,checkWith):!!description,message:()=>{let to=this.isNot?\"not to\":\"to\";return getMessage3(this,this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toHaveDescription`,\"element\",\"\"),`Expected the element ${to} have description`,this.utils.printExpected(checkWith),\"Received\",this.utils.printReceived(description))}}}function toHaveErrorMessage(htmlElement,checkWith){if(deprecate(\"toHaveErrorMessage\",\"Please use toHaveAccessibleErrorMessage.\"),checkHtmlElement(htmlElement,toHaveErrorMessage,this),!htmlElement.hasAttribute(\"aria-invalid\")||htmlElement.getAttribute(\"aria-invalid\")===\"false\"){let not=this.isNot?\".not\":\"\";return {pass:!1,message:()=>getMessage3(this,this.utils.matcherHint(`${not}.toHaveErrorMessage`,\"element\",\"\"),\"Expected the element to have invalid state indicated by\",'aria-invalid=\"true\"',\"Received\",htmlElement.hasAttribute(\"aria-invalid\")?`aria-invalid=\"${htmlElement.getAttribute(\"aria-invalid\")}\"`:this.utils.printReceived(\"\"))}}let expectsErrorMessage=checkWith!==void 0,errormessageIDs=(htmlElement.getAttribute(\"aria-errormessage\")||\"\").split(/\\s+/).filter(Boolean),errormessage=\"\";if(errormessageIDs.length>0){let document2=htmlElement.ownerDocument,errormessageEls=errormessageIDs.map(errormessageID=>document2.getElementById(errormessageID)).filter(Boolean);errormessage=normalize(errormessageEls.map(el=>el.textContent).join(\" \"));}return {pass:expectsErrorMessage?checkWith instanceof RegExp?checkWith.test(errormessage):this.equals(errormessage,checkWith):!!errormessage,message:()=>{let to=this.isNot?\"not to\":\"to\";return getMessage3(this,this.utils.matcherHint(`${this.isNot?\".not\":\"\"}.toHaveErrorMessage`,\"element\",\"\"),`Expected the element ${to} have error message`,this.utils.printExpected(checkWith),\"Received\",this.utils.printReceived(errormessage))}}}__toESM(require_redent(),1);__toESM(require_lib(),1);__toESM(require_source(),1);__toESM(require_isEqualWith(),1);__toESM(require_css_escape(),1);function assertTypes(value,name,types){let receivedType=typeof value;if(!types.includes(receivedType))throw new TypeError(`${name} value must be ${types.join(\" or \")}, received \"${receivedType}\"`)}function isObject(item){return item!=null&&typeof item==\"object\"&&!Array.isArray(item)}function isFinalObj(obj){return obj===Object.prototype||obj===Function.prototype||obj===RegExp.prototype}function getType(value){return Object.prototype.toString.apply(value).slice(8,-1)}function collectOwnProperties(obj,collector){let collect=typeof collector==\"function\"?collector:key=>collector.add(key);Object.getOwnPropertyNames(obj).forEach(collect),Object.getOwnPropertySymbols(obj).forEach(collect);}function getOwnProperties(obj){let ownProps=new Set;return isFinalObj(obj)?[]:(collectOwnProperties(obj,ownProps),Array.from(ownProps))}var defaultCloneOptions={forceWritable:!1};function deepClone(val,options=defaultCloneOptions){return clone(val,new WeakMap,options)}function clone(val,seen,options=defaultCloneOptions){let k2,out;if(seen.has(val))return seen.get(val);if(Array.isArray(val)){for(out=Array(k2=val.length),seen.set(val,out);k2--;)out[k2]=clone(val[k2],seen,options);return out}if(Object.prototype.toString.call(val)===\"[object Object]\"){out=Object.create(Object.getPrototypeOf(val)),seen.set(val,out);let props=getOwnProperties(val);for(let k22 of props){let descriptor=Object.getOwnPropertyDescriptor(val,k22);if(!descriptor)continue;let cloned=clone(val[k22],seen,options);options.forceWritable?Object.defineProperty(out,k22,{enumerable:descriptor.enumerable,configurable:!0,writable:!0,value:cloned}):\"get\"in descriptor?Object.defineProperty(out,k22,{...descriptor,get(){return cloned}}):Object.defineProperty(out,k22,{...descriptor,value:cloned});}return out}return val}var ansiColors2={bold:[\"1\",\"22\"],dim:[\"2\",\"22\"],italic:[\"3\",\"23\"],underline:[\"4\",\"24\"],inverse:[\"7\",\"27\"],hidden:[\"8\",\"28\"],strike:[\"9\",\"29\"],black:[\"30\",\"39\"],red:[\"31\",\"39\"],green:[\"32\",\"39\"],yellow:[\"33\",\"39\"],blue:[\"34\",\"39\"],magenta:[\"35\",\"39\"],cyan:[\"36\",\"39\"],white:[\"37\",\"39\"],brightblack:[\"30;1\",\"39\"],brightred:[\"31;1\",\"39\"],brightgreen:[\"32;1\",\"39\"],brightyellow:[\"33;1\",\"39\"],brightblue:[\"34;1\",\"39\"],brightmagenta:[\"35;1\",\"39\"],brightcyan:[\"36;1\",\"39\"],brightwhite:[\"37;1\",\"39\"],grey:[\"90\",\"39\"]},styles2={special:\"cyan\",number:\"yellow\",bigint:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",symbol:\"green\",date:\"magenta\",regexp:\"red\"},truncator2=\"\\u2026\";function colorise2(value,styleType){let color=ansiColors2[styles2[styleType]]||ansiColors2[styleType]||\"\";return color?`\\x1B[${color[0]}m${String(value)}\\x1B[${color[1]}m`:String(value)}function normaliseOptions2({showHidden=!1,depth=2,colors=!1,customInspect=!0,showProxy=!1,maxArrayLength=1/0,breakLength=1/0,seen=[],truncate:truncate3=1/0,stylize=String}={},inspect5){let options={showHidden:!!showHidden,depth:Number(depth),colors:!!colors,customInspect:!!customInspect,showProxy:!!showProxy,maxArrayLength:Number(maxArrayLength),breakLength:Number(breakLength),truncate:Number(truncate3),seen,inspect:inspect5,stylize};return options.colors&&(options.stylize=colorise2),options}function isHighSurrogate(char){return char>=\"\\uD800\"&&char<=\"\\uDBFF\"}function truncate2(string,length,tail=truncator2){string=String(string);let tailLength=tail.length,stringLength=string.length;if(tailLength>length&&stringLength>tailLength)return tail;if(stringLength>length&&stringLength>tailLength){let end=length-tailLength;return end>0&&isHighSurrogate(string[end-1])&&(end=end-1),`${string.slice(0,end)}${tail}`}return string}function inspectList2(list,options,inspectItem,separator=\", \"){inspectItem=inspectItem||options.inspect;let size=list.length;if(size===0)return \"\";let originalLength=options.truncate,output=\"\",peek=\"\",truncated=\"\";for(let i=0;ioriginalLength&&output.length+truncated.length<=originalLength||!last&&!secondToLast&&truncatedLength>originalLength||(peek=last?\"\":inspectItem(list[i+1],options)+(secondToLast?\"\":separator),!last&&secondToLast&&truncatedLength>originalLength&&nextLength+peek.length>originalLength))break;if(output+=string,!last&&!secondToLast&&nextLength+peek.length>=originalLength){truncated=`${truncator2}(${list.length-i-1})`;break}truncated=\"\";}return `${output}${truncated}`}function quoteComplexKey2(key){return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?key:JSON.stringify(key).replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\")}function inspectProperty2([key,value],options){return options.truncate-=2,typeof key==\"string\"?key=quoteComplexKey2(key):typeof key!=\"number\"&&(key=`[${options.inspect(key,options)}]`),options.truncate-=key.length,value=options.inspect(value,options),`${key}: ${value}`}function inspectArray2(array,options){let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return \"[]\";options.truncate-=4;let listContents=inspectList2(array,options);options.truncate-=listContents.length;let propertyContents=\"\";return nonIndexProperties.length&&(propertyContents=inspectList2(nonIndexProperties.map(key=>[key,array[key]]),options,inspectProperty2)),`[ ${listContents}${propertyContents?`, ${propertyContents}`:\"\"} ]`}var getArrayName2=array=>typeof Buffer==\"function\"&&array instanceof Buffer?\"Buffer\":array[Symbol.toStringTag]?array[Symbol.toStringTag]:array.constructor.name;function inspectTypedArray2(array,options){let name=getArrayName2(array);options.truncate-=name.length+4;let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return `${name}[]`;let output=\"\";for(let i=0;i[key,array[key]]),options,inspectProperty2)),`${name}[ ${output}${propertyContents?`, ${propertyContents}`:\"\"} ]`}function inspectDate2(dateObject,options){let stringRepresentation=dateObject.toJSON();if(stringRepresentation===null)return \"Invalid Date\";let split=stringRepresentation.split(\"T\"),date=split[0];return options.stylize(`${date}T${truncate2(split[1],options.truncate-date.length-1)}`,\"date\")}function inspectFunction2(func,options){let functionType=func[Symbol.toStringTag]||\"Function\",name=func.name;return name?options.stylize(`[${functionType} ${truncate2(name,options.truncate-11)}]`,\"special\"):options.stylize(`[${functionType}]`,\"special\")}function inspectMapEntry2([key,value],options){return options.truncate-=4,key=options.inspect(key,options),options.truncate-=key.length,value=options.inspect(value,options),`${key} => ${value}`}function mapToEntries2(map){let entries=[];return map.forEach((value,key)=>{entries.push([key,value]);}),entries}function inspectMap2(map,options){return map.size-1<=0?\"Map{}\":(options.truncate-=7,`Map{ ${inspectList2(mapToEntries2(map),options,inspectMapEntry2)} }`)}var isNaN3=Number.isNaN||(i=>i!==i);function inspectNumber2(number,options){return isNaN3(number)?options.stylize(\"NaN\",\"number\"):number===1/0?options.stylize(\"Infinity\",\"number\"):number===-1/0?options.stylize(\"-Infinity\",\"number\"):number===0?options.stylize(1/number===1/0?\"+0\":\"-0\",\"number\"):options.stylize(truncate2(String(number),options.truncate),\"number\")}function inspectBigInt2(number,options){let nums=truncate2(number.toString(),options.truncate-1);return nums!==truncator2&&(nums+=\"n\"),options.stylize(nums,\"bigint\")}function inspectRegExp2(value,options){let flags=value.toString().split(\"/\")[2],sourceLength=options.truncate-(2+flags.length),source=value.source;return options.stylize(`/${truncate2(source,sourceLength)}/${flags}`,\"regexp\")}function arrayFromSet2(set2){let values=[];return set2.forEach(value=>{values.push(value);}),values}function inspectSet2(set2,options){return set2.size===0?\"Set{}\":(options.truncate-=7,`Set{ ${inspectList2(arrayFromSet2(set2),options)} }`)}var stringEscapeChars2=new RegExp(\"['\\\\u0000-\\\\u001f\\\\u007f-\\\\u009f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]\",\"g\"),escapeCharacters2={\"\\b\":\"\\\\b\",\"\t\":\"\\\\t\",\"\\n\":\"\\\\n\",\"\\f\":\"\\\\f\",\"\\r\":\"\\\\r\",\"'\":\"\\\\'\",\"\\\\\":\"\\\\\\\\\"},hex2=16,unicodeLength2=4;function escape3(char){return escapeCharacters2[char]||`\\\\u${`0000${char.charCodeAt(0).toString(hex2)}`.slice(-unicodeLength2)}`}function inspectString2(string,options){return stringEscapeChars2.test(string)&&(string=string.replace(stringEscapeChars2,escape3)),options.stylize(`'${truncate2(string,options.truncate-2)}'`,\"string\")}function inspectSymbol2(value){return \"description\"in Symbol.prototype?value.description?`Symbol(${value.description})`:\"Symbol()\":value.toString()}var getPromiseValue2=()=>\"Promise{\\u2026}\";try{let{getPromiseDetails,kPending,kRejected}=process.binding(\"util\");Array.isArray(getPromiseDetails(Promise.resolve()))&&(getPromiseValue2=(value,options)=>{let[state,innerValue]=getPromiseDetails(value);return state===kPending?\"Promise{}\":`Promise${state===kRejected?\"!\":\"\"}{${options.inspect(innerValue,options)}}`});}catch{}var promise_default2=getPromiseValue2;function inspectObject3(object,options){let properties=Object.getOwnPropertyNames(object),symbols=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(object):[];if(properties.length===0&&symbols.length===0)return \"{}\";if(options.truncate-=4,options.seen=options.seen||[],options.seen.indexOf(object)>=0)return \"[Circular]\";options.seen.push(object);let propertyContents=inspectList2(properties.map(key=>[key,object[key]]),options,inspectProperty2),symbolContents=inspectList2(symbols.map(key=>[key,object[key]]),options,inspectProperty2);options.seen.pop();let sep=\"\";return propertyContents&&symbolContents&&(sep=\", \"),`{ ${propertyContents}${sep}${symbolContents} }`}var toStringTag2=typeof Symbol<\"u\"&&Symbol.toStringTag?Symbol.toStringTag:!1;function inspectClass2(value,options){let name=\"\";return toStringTag2&&toStringTag2 in value&&(name=value[toStringTag2]),name=name||value.constructor.name,(!name||name===\"_class\")&&(name=\"\"),options.truncate-=name.length,`${name}${inspectObject3(value,options)}`}function inspectArguments2(args,options){return args.length===0?\"Arguments[]\":(options.truncate-=13,`Arguments[ ${inspectList2(args,options)} ]`)}var errorKeys2=[\"stack\",\"line\",\"column\",\"name\",\"message\",\"fileName\",\"lineNumber\",\"columnNumber\",\"number\",\"description\"];function inspectObject4(error,options){let properties=Object.getOwnPropertyNames(error).filter(key=>errorKeys2.indexOf(key)===-1),name=error.name;options.truncate-=name.length;let message=\"\";typeof error.message==\"string\"?message=truncate2(error.message,options.truncate):properties.unshift(\"message\"),message=message?`: ${message}`:\"\",options.truncate-=message.length+5;let propertyContents=inspectList2(properties.map(key=>[key,error[key]]),options,inspectProperty2);return `${name}${message}${propertyContents?` { ${propertyContents} }`:\"\"}`}function inspectAttribute2([key,value],options){return options.truncate-=3,value?`${options.stylize(String(key),\"yellow\")}=${options.stylize(`\"${value}\"`,\"string\")}`:`${options.stylize(String(key),\"yellow\")}`}function inspectHTMLCollection2(collection,options){return inspectList2(collection,options,inspectHTML2,`\n`)}function inspectHTML2(element,options){let properties=element.getAttributeNames(),name=element.tagName.toLowerCase(),head=options.stylize(`<${name}`,\"special\"),headClose=options.stylize(\">\",\"special\"),tail=options.stylize(``,\"special\");options.truncate-=name.length*2+5;let propertyContents=\"\";properties.length>0&&(propertyContents+=\" \",propertyContents+=inspectList2(properties.map(key=>[key,element.getAttribute(key)]),options,inspectAttribute2,\" \")),options.truncate-=propertyContents.length;let truncate3=options.truncate,children=inspectHTMLCollection2(element.children,options);return children&&children.length>truncate3&&(children=`${truncator2}(${element.children.length})`),`${head}${propertyContents}${headClose}${children}${tail}`}var symbolsSupported2=typeof Symbol==\"function\"&&typeof Symbol.for==\"function\",chaiInspect2=symbolsSupported2?Symbol.for(\"chai/inspect\"):\"@@chai/inspect\",nodeInspect2=!1;try{let nodeUtil=__require(\"util\");nodeInspect2=nodeUtil.inspect?nodeUtil.inspect.custom:!1;}catch{nodeInspect2=!1;}var constructorMap2=new WeakMap,stringTagMap2={},baseTypesMap2={undefined:(value,options)=>options.stylize(\"undefined\",\"undefined\"),null:(value,options)=>options.stylize(\"null\",\"null\"),boolean:(value,options)=>options.stylize(String(value),\"boolean\"),Boolean:(value,options)=>options.stylize(String(value),\"boolean\"),number:inspectNumber2,Number:inspectNumber2,bigint:inspectBigInt2,BigInt:inspectBigInt2,string:inspectString2,String:inspectString2,function:inspectFunction2,Function:inspectFunction2,symbol:inspectSymbol2,Symbol:inspectSymbol2,Array:inspectArray2,Date:inspectDate2,Map:inspectMap2,Set:inspectSet2,RegExp:inspectRegExp2,Promise:promise_default2,WeakSet:(value,options)=>options.stylize(\"WeakSet{\\u2026}\",\"special\"),WeakMap:(value,options)=>options.stylize(\"WeakMap{\\u2026}\",\"special\"),Arguments:inspectArguments2,Int8Array:inspectTypedArray2,Uint8Array:inspectTypedArray2,Uint8ClampedArray:inspectTypedArray2,Int16Array:inspectTypedArray2,Uint16Array:inspectTypedArray2,Int32Array:inspectTypedArray2,Uint32Array:inspectTypedArray2,Float32Array:inspectTypedArray2,Float64Array:inspectTypedArray2,Generator:()=>\"\",DataView:()=>\"\",ArrayBuffer:()=>\"\",Error:inspectObject4,HTMLCollection:inspectHTMLCollection2,NodeList:inspectHTMLCollection2},inspectCustom2=(value,options,type5)=>chaiInspect2 in value&&typeof value[chaiInspect2]==\"function\"?value[chaiInspect2](options):nodeInspect2&&nodeInspect2 in value&&typeof value[nodeInspect2]==\"function\"?value[nodeInspect2](options.depth,options):\"inspect\"in value&&typeof value.inspect==\"function\"?value.inspect(options.depth,options):\"constructor\"in value&&constructorMap2.has(value.constructor)?constructorMap2.get(value.constructor)(value,options):stringTagMap2[type5]?stringTagMap2[type5](value,options):\"\",toString2=Object.prototype.toString;function inspect3(value,opts={}){let options=normaliseOptions2(opts,inspect3),{customInspect}=options,type5=value===null?\"null\":typeof value;if(type5===\"object\"&&(type5=toString2.call(value).slice(8,-1)),type5 in baseTypesMap2)return baseTypesMap2[type5](value,options);if(customInspect&&value){let output=inspectCustom2(value,options,type5);if(output)return typeof output==\"string\"?output:inspect3(output,options)}let proto=value?Object.getPrototypeOf(value):!1;return proto===Object.prototype||proto===null?inspectObject3(value,options):value&&typeof HTMLElement==\"function\"&&value instanceof HTMLElement?inspectHTML2(value,options):\"constructor\"in value?value.constructor!==Object?inspectClass2(value,options):inspectObject3(value,options):value===Object(value)?inspectObject3(value,options):options.stylize(String(value),type5)}var f={reset:[0,0],bold:[1,22,\"\\x1B[22m\\x1B[1m\"],dim:[2,22,\"\\x1B[22m\\x1B[2m\"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},h=Object.entries(f);function a(n){return String(n)}a.open=\"\";a.close=\"\";function C(n=!1){let e=typeof process<\"u\"?process:void 0,i=e?.env||{},g3=e?.argv||[];return !(\"NO_COLOR\"in i||g3.includes(\"--no-color\"))&&(\"FORCE_COLOR\"in i||g3.includes(\"--color\")||e?.platform===\"win32\"||n&&i.TERM!==\"dumb\"||\"CI\"in i)||typeof window<\"u\"&&!!window.chrome}function p(n=!1){let e=C(n),i=(r,t,c,o)=>{let l=\"\",s=0;do l+=r.substring(s,o)+c,s=o+t.length,o=r.indexOf(t,s);while(~o);return l+r.substring(s)},g3=(r,t,c=r)=>{let o=l=>{let s=String(l),b=s.indexOf(t,r.length);return ~b?r+i(s,t,c,b)+t:r+s+t};return o.open=r,o.close=t,o},u2={isColorSupported:e},d2=r=>`\\x1B[${r}m`;for(let[r,t]of h)u2[r]=e?g3(d2(t[0]),d2(t[1]),t[2]):a;return u2}var f2=p(!1);function getKeysOfEnumerableProperties(object,compareKeys){let rawKeys=Object.keys(object),keys2=compareKeys===null?rawKeys:rawKeys.sort(compareKeys);if(Object.getOwnPropertySymbols)for(let symbol of Object.getOwnPropertySymbols(object))Object.getOwnPropertyDescriptor(object,symbol).enumerable&&keys2.push(symbol);return keys2}function printIteratorEntries(iterator,config3,indentation,depth,refs,printer2,separator=\": \"){let result=\"\",width=0,current=iterator.next();if(!current.done){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(;!current.done;){if(result+=indentationNext,width++===config3.maxWidth){result+=\"\\u2026\";break}let name=printer2(current.value[0],config3,indentationNext,depth,refs),value=printer2(current.value[1],config3,indentationNext,depth,refs);result+=name+separator+value,current=iterator.next(),current.done?config3.min||(result+=\",\"):result+=`,${config3.spacingInner}`;}result+=config3.spacingOuter+indentation;}return result}function printIteratorValues(iterator,config3,indentation,depth,refs,printer2){let result=\"\",width=0,current=iterator.next();if(!current.done){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(;!current.done;){if(result+=indentationNext,width++===config3.maxWidth){result+=\"\\u2026\";break}result+=printer2(current.value,config3,indentationNext,depth,refs),current=iterator.next(),current.done?config3.min||(result+=\",\"):result+=`,${config3.spacingInner}`;}result+=config3.spacingOuter+indentation;}return result}function printListItems(list,config3,indentation,depth,refs,printer2){let result=\"\";list=list instanceof ArrayBuffer?new DataView(list):list;let isDataView=l=>l instanceof DataView,length=isDataView(list)?list.byteLength:list.length;if(length>0){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(let i=0;i0){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(let i=0;i{let stringedValue=val.toString();if(stringedValue===\"ArrayContaining\"||stringedValue===\"ArrayNotContaining\")return ++depth>config3.maxDepth?`[${stringedValue}]`:`${stringedValue+SPACE$2}[${printListItems(val.sample,config3,indentation,depth,refs,printer2)}]`;if(stringedValue===\"ObjectContaining\"||stringedValue===\"ObjectNotContaining\")return ++depth>config3.maxDepth?`[${stringedValue}]`:`${stringedValue+SPACE$2}{${printObjectProperties(val.sample,config3,indentation,depth,refs,printer2)}}`;if(stringedValue===\"StringMatching\"||stringedValue===\"StringNotMatching\"||stringedValue===\"StringContaining\"||stringedValue===\"StringNotContaining\")return stringedValue+SPACE$2+printer2(val.sample,config3,indentation,depth,refs);if(typeof val.toAsymmetricMatcher!=\"function\")throw new TypeError(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);return val.toAsymmetricMatcher()},test$5=val=>val&&val.$$typeof===asymmetricMatcher,plugin$5={serialize:serialize$5,test:test$5},SPACE$1=\" \",OBJECT_NAMES=new Set([\"DOMStringMap\",\"NamedNodeMap\"]),ARRAY_REGEXP=/^(?:HTML\\w*Collection|NodeList)$/;function testName(name){return OBJECT_NAMES.has(name)||ARRAY_REGEXP.test(name)}var test$4=val=>val&&val.constructor&&!!val.constructor.name&&testName(val.constructor.name);function isNamedNodeMap(collection){return collection.constructor.name===\"NamedNodeMap\"}var serialize$4=(collection,config3,indentation,depth,refs,printer2)=>{let name=collection.constructor.name;return ++depth>config3.maxDepth?`[${name}]`:(config3.min?\"\":name+SPACE$1)+(OBJECT_NAMES.has(name)?`{${printObjectProperties(isNamedNodeMap(collection)?[...collection].reduce((props,attribute)=>(props[attribute.name]=attribute.value,props),{}):{...collection},config3,indentation,depth,refs,printer2)}}`:`[${printListItems([...collection],config3,indentation,depth,refs,printer2)}]`)},plugin$4={serialize:serialize$4,test:test$4};function escapeHTML(str){return str.replaceAll(\"<\",\"<\").replaceAll(\">\",\">\")}function printProps(keys2,props,config3,indentation,depth,refs,printer2){let indentationNext=indentation+config3.indent,colors=config3.colors;return keys2.map(key=>{let value=props[key],printed=printer2(value,config3,indentationNext,depth,refs);return typeof value!=\"string\"&&(printed.includes(`\n`)&&(printed=config3.spacingOuter+indentationNext+printed+config3.spacingOuter+indentation),printed=`{${printed}}`),`${config3.spacingInner+indentation+colors.prop.open+key+colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`}).join(\"\")}function printChildren(children,config3,indentation,depth,refs,printer2){return children.map(child=>config3.spacingOuter+indentation+(typeof child==\"string\"?printText(child,config3):printer2(child,config3,indentation,depth,refs))).join(\"\")}function printText(text,config3){let contentColor=config3.colors.content;return contentColor.open+escapeHTML(text)+contentColor.close}function printComment(comment,config3){let commentColor=config3.colors.comment;return `${commentColor.open}${commentColor.close}`}function printElement(type5,printedProps,printedChildren,config3,indentation){let tagColor=config3.colors.tag;return `${tagColor.open}<${type5}${printedProps&&tagColor.close+printedProps+config3.spacingOuter+indentation+tagColor.open}${printedChildren?`>${tagColor.close}${printedChildren}${config3.spacingOuter}${indentation}${tagColor.open}${tagColor.close}`}function printElementAsLeaf(type5,config3){let tagColor=config3.colors.tag;return `${tagColor.open}<${type5}${tagColor.close} \\u2026${tagColor.open} />${tagColor.close}`}var ELEMENT_NODE=1,TEXT_NODE=3,COMMENT_NODE=8,FRAGMENT_NODE=11,ELEMENT_REGEXP=/^(?:(?:HTML|SVG)\\w*)?Element$/;function testHasAttribute(val){try{return typeof val.hasAttribute==\"function\"&&val.hasAttribute(\"is\")}catch{return !1}}function testNode(val){let constructorName=val.constructor.name,{nodeType,tagName}=val,isCustomElement3=typeof tagName==\"string\"&&tagName.includes(\"-\")||testHasAttribute(val);return nodeType===ELEMENT_NODE&&(ELEMENT_REGEXP.test(constructorName)||isCustomElement3)||nodeType===TEXT_NODE&&constructorName===\"Text\"||nodeType===COMMENT_NODE&&constructorName===\"Comment\"||nodeType===FRAGMENT_NODE&&constructorName===\"DocumentFragment\"}var test$3=val=>{var _a2;return ((_a2=val?.constructor)==null?void 0:_a2.name)&&testNode(val)};function nodeIsText(node){return node.nodeType===TEXT_NODE}function nodeIsComment(node){return node.nodeType===COMMENT_NODE}function nodeIsFragment(node){return node.nodeType===FRAGMENT_NODE}var serialize$3=(node,config3,indentation,depth,refs,printer2)=>{if(nodeIsText(node))return printText(node.data,config3);if(nodeIsComment(node))return printComment(node.data,config3);let type5=nodeIsFragment(node)?\"DocumentFragment\":node.tagName.toLowerCase();return ++depth>config3.maxDepth?printElementAsLeaf(type5,config3):printElement(type5,printProps(nodeIsFragment(node)?[]:Array.from(node.attributes,attr=>attr.name).sort(),nodeIsFragment(node)?{}:[...node.attributes].reduce((props,attribute)=>(props[attribute.name]=attribute.value,props),{}),config3,indentation+config3.indent,depth,refs,printer2),printChildren(Array.prototype.slice.call(node.childNodes||node.children),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation)},plugin$3={serialize:serialize$3,test:test$3},IS_ITERABLE_SENTINEL=\"@@__IMMUTABLE_ITERABLE__@@\",IS_LIST_SENTINEL=\"@@__IMMUTABLE_LIST__@@\",IS_KEYED_SENTINEL=\"@@__IMMUTABLE_KEYED__@@\",IS_MAP_SENTINEL=\"@@__IMMUTABLE_MAP__@@\",IS_ORDERED_SENTINEL=\"@@__IMMUTABLE_ORDERED__@@\",IS_RECORD_SENTINEL=\"@@__IMMUTABLE_RECORD__@@\",IS_SEQ_SENTINEL=\"@@__IMMUTABLE_SEQ__@@\",IS_SET_SENTINEL=\"@@__IMMUTABLE_SET__@@\",IS_STACK_SENTINEL=\"@@__IMMUTABLE_STACK__@@\",getImmutableName=name=>`Immutable.${name}`,printAsLeaf=name=>`[${name}]`,SPACE=\" \",LAZY=\"\\u2026\";function printImmutableEntries(val,config3,indentation,depth,refs,printer2,type5){return ++depth>config3.maxDepth?printAsLeaf(getImmutableName(type5)):`${getImmutableName(type5)+SPACE}{${printIteratorEntries(val.entries(),config3,indentation,depth,refs,printer2)}}`}function getRecordEntries(val){let i=0;return {next(){if(iconfig3.maxDepth?printAsLeaf(name):`${name+SPACE}{${printIteratorEntries(getRecordEntries(val),config3,indentation,depth,refs,printer2)}}`}function printImmutableSeq(val,config3,indentation,depth,refs,printer2){let name=getImmutableName(\"Seq\");return ++depth>config3.maxDepth?printAsLeaf(name):val[IS_KEYED_SENTINEL]?`${name+SPACE}{${val._iter||val._object?printIteratorEntries(val.entries(),config3,indentation,depth,refs,printer2):LAZY}}`:`${name+SPACE}[${val._iter||val._array||val._collection||val._iterable?printIteratorValues(val.values(),config3,indentation,depth,refs,printer2):LAZY}]`}function printImmutableValues(val,config3,indentation,depth,refs,printer2,type5){return ++depth>config3.maxDepth?printAsLeaf(getImmutableName(type5)):`${getImmutableName(type5)+SPACE}[${printIteratorValues(val.values(),config3,indentation,depth,refs,printer2)}]`}var serialize$2=(val,config3,indentation,depth,refs,printer2)=>val[IS_MAP_SENTINEL]?printImmutableEntries(val,config3,indentation,depth,refs,printer2,val[IS_ORDERED_SENTINEL]?\"OrderedMap\":\"Map\"):val[IS_LIST_SENTINEL]?printImmutableValues(val,config3,indentation,depth,refs,printer2,\"List\"):val[IS_SET_SENTINEL]?printImmutableValues(val,config3,indentation,depth,refs,printer2,val[IS_ORDERED_SENTINEL]?\"OrderedSet\":\"Set\"):val[IS_STACK_SENTINEL]?printImmutableValues(val,config3,indentation,depth,refs,printer2,\"Stack\"):val[IS_SEQ_SENTINEL]?printImmutableSeq(val,config3,indentation,depth,refs,printer2):printImmutableRecord(val,config3,indentation,depth,refs,printer2),test$2=val=>val&&(val[IS_ITERABLE_SENTINEL]===!0||val[IS_RECORD_SENTINEL]===!0),plugin$2={serialize:serialize$2,test:test$2},reactIs={exports:{}};var reactIs_development={};var hasRequiredReactIs_development;function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,function(){var REACT_ELEMENT_TYPE=Symbol.for(\"react.element\"),REACT_PORTAL_TYPE=Symbol.for(\"react.portal\"),REACT_FRAGMENT_TYPE=Symbol.for(\"react.fragment\"),REACT_STRICT_MODE_TYPE=Symbol.for(\"react.strict_mode\"),REACT_PROFILER_TYPE=Symbol.for(\"react.profiler\"),REACT_PROVIDER_TYPE=Symbol.for(\"react.provider\"),REACT_CONTEXT_TYPE=Symbol.for(\"react.context\"),REACT_SERVER_CONTEXT_TYPE=Symbol.for(\"react.server_context\"),REACT_FORWARD_REF_TYPE=Symbol.for(\"react.forward_ref\"),REACT_SUSPENSE_TYPE=Symbol.for(\"react.suspense\"),REACT_SUSPENSE_LIST_TYPE=Symbol.for(\"react.suspense_list\"),REACT_MEMO_TYPE=Symbol.for(\"react.memo\"),REACT_LAZY_TYPE=Symbol.for(\"react.lazy\"),REACT_OFFSCREEN_TYPE=Symbol.for(\"react.offscreen\"),enableScopeAPI=!1,enableCacheElement=!1,enableTransitionTracing=!1,enableLegacyHidden=!1,enableDebugTracing=!1,REACT_MODULE_REFERENCE;REACT_MODULE_REFERENCE=Symbol.for(\"react.module.reference\");function isValidElementType(type5){return !!(typeof type5==\"string\"||typeof type5==\"function\"||type5===REACT_FRAGMENT_TYPE||type5===REACT_PROFILER_TYPE||enableDebugTracing||type5===REACT_STRICT_MODE_TYPE||type5===REACT_SUSPENSE_TYPE||type5===REACT_SUSPENSE_LIST_TYPE||enableLegacyHidden||type5===REACT_OFFSCREEN_TYPE||enableScopeAPI||enableCacheElement||enableTransitionTracing||typeof type5==\"object\"&&type5!==null&&(type5.$$typeof===REACT_LAZY_TYPE||type5.$$typeof===REACT_MEMO_TYPE||type5.$$typeof===REACT_PROVIDER_TYPE||type5.$$typeof===REACT_CONTEXT_TYPE||type5.$$typeof===REACT_FORWARD_REF_TYPE||type5.$$typeof===REACT_MODULE_REFERENCE||type5.getModuleId!==void 0))}function typeOf(object){if(typeof object==\"object\"&&object!==null){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type5=object.type;switch(type5){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return type5;default:var $$typeofType=type5&&type5.$$typeof;switch($$typeofType){case REACT_SERVER_CONTEXT_TYPE:case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}var ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element2=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,SuspenseList=REACT_SUSPENSE_LIST_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1,hasWarnedAboutDeprecatedIsConcurrentMode=!1;function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn(\"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.\")),!1}function isConcurrentMode(object){return hasWarnedAboutDeprecatedIsConcurrentMode||(hasWarnedAboutDeprecatedIsConcurrentMode=!0,console.warn(\"The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.\")),!1}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE}function isElement5(object){return typeof object==\"object\"&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE}function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE}function isSuspenseList(object){return typeOf(object)===REACT_SUSPENSE_LIST_TYPE}reactIs_development.ContextConsumer=ContextConsumer,reactIs_development.ContextProvider=ContextProvider,reactIs_development.Element=Element2,reactIs_development.ForwardRef=ForwardRef,reactIs_development.Fragment=Fragment,reactIs_development.Lazy=Lazy,reactIs_development.Memo=Memo,reactIs_development.Portal=Portal,reactIs_development.Profiler=Profiler,reactIs_development.StrictMode=StrictMode,reactIs_development.Suspense=Suspense,reactIs_development.SuspenseList=SuspenseList,reactIs_development.isAsyncMode=isAsyncMode,reactIs_development.isConcurrentMode=isConcurrentMode,reactIs_development.isContextConsumer=isContextConsumer,reactIs_development.isContextProvider=isContextProvider,reactIs_development.isElement=isElement5,reactIs_development.isForwardRef=isForwardRef,reactIs_development.isFragment=isFragment,reactIs_development.isLazy=isLazy,reactIs_development.isMemo=isMemo,reactIs_development.isPortal=isPortal,reactIs_development.isProfiler=isProfiler,reactIs_development.isStrictMode=isStrictMode,reactIs_development.isSuspense=isSuspense,reactIs_development.isSuspenseList=isSuspenseList,reactIs_development.isValidElementType=isValidElementType,reactIs_development.typeOf=typeOf;}()),reactIs_development}reactIs.exports=requireReactIs_development();var reactIsExports=reactIs.exports;function getChildren(arg,children=[]){if(Array.isArray(arg))for(let item of arg)getChildren(item,children);else arg!=null&&arg!==!1&&arg!==\"\"&&children.push(arg);return children}function getType2(element){let type5=element.type;if(typeof type5==\"string\")return type5;if(typeof type5==\"function\")return type5.displayName||type5.name||\"Unknown\";if(reactIsExports.isFragment(element))return \"React.Fragment\";if(reactIsExports.isSuspense(element))return \"React.Suspense\";if(typeof type5==\"object\"&&type5!==null){if(reactIsExports.isContextProvider(element))return \"Context.Provider\";if(reactIsExports.isContextConsumer(element))return \"Context.Consumer\";if(reactIsExports.isForwardRef(element)){if(type5.displayName)return type5.displayName;let functionName=type5.render.displayName||type5.render.name||\"\";return functionName===\"\"?\"ForwardRef\":`ForwardRef(${functionName})`}if(reactIsExports.isMemo(element)){let functionName=type5.displayName||type5.type.displayName||type5.type.name||\"\";return functionName===\"\"?\"Memo\":`Memo(${functionName})`}}return \"UNDEFINED\"}function getPropKeys$1(element){let{props}=element;return Object.keys(props).filter(key=>key!==\"children\"&&props[key]!==void 0).sort()}var serialize$1=(element,config3,indentation,depth,refs,printer2)=>++depth>config3.maxDepth?printElementAsLeaf(getType2(element),config3):printElement(getType2(element),printProps(getPropKeys$1(element),element.props,config3,indentation+config3.indent,depth,refs,printer2),printChildren(getChildren(element.props.children),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation),test$1=val=>val!=null&&reactIsExports.isElement(val),plugin$1={serialize:serialize$1,test:test$1},testSymbol=typeof Symbol==\"function\"&&Symbol.for?Symbol.for(\"react.test.json\"):245830487;function getPropKeys(object){let{props}=object;return props?Object.keys(props).filter(key=>props[key]!==void 0).sort():[]}var serialize=(object,config3,indentation,depth,refs,printer2)=>++depth>config3.maxDepth?printElementAsLeaf(object.type,config3):printElement(object.type,object.props?printProps(getPropKeys(object),object.props,config3,indentation+config3.indent,depth,refs,printer2):\"\",object.children?printChildren(object.children,config3,indentation+config3.indent,depth,refs,printer2):\"\",config3,indentation),test2=val=>val&&val.$$typeof===testSymbol,plugin={serialize,test:test2},toString3=Object.prototype.toString,toISOString=Date.prototype.toISOString,errorToString=Error.prototype.toString,regExpToString=RegExp.prototype.toString;function getConstructorName2(val){return typeof val.constructor==\"function\"&&val.constructor.name||\"Object\"}function isWindow(val){return typeof window<\"u\"&&val===window}var SYMBOL_REGEXP=/^Symbol\\((.*)\\)(.*)$/,NEWLINE_REGEXP=/\\n/g,PrettyFormatPluginError=class extends Error{constructor(message,stack){super(message),this.stack=stack,this.name=this.constructor.name;}};function isToStringedArrayType(toStringed){return toStringed===\"[object Array]\"||toStringed===\"[object ArrayBuffer]\"||toStringed===\"[object DataView]\"||toStringed===\"[object Float32Array]\"||toStringed===\"[object Float64Array]\"||toStringed===\"[object Int8Array]\"||toStringed===\"[object Int16Array]\"||toStringed===\"[object Int32Array]\"||toStringed===\"[object Uint8Array]\"||toStringed===\"[object Uint8ClampedArray]\"||toStringed===\"[object Uint16Array]\"||toStringed===\"[object Uint32Array]\"}function printNumber(val){return Object.is(val,-0)?\"-0\":String(val)}function printBigInt(val){return `${val}n`}function printFunction(val,printFunctionName){return printFunctionName?`[Function ${val.name||\"anonymous\"}]`:\"[Function]\"}function printSymbol(val){return String(val).replace(SYMBOL_REGEXP,\"Symbol($1)\")}function printError(val){return `[${errorToString.call(val)}]`}function printBasicValue(val,printFunctionName,escapeRegex,escapeString){if(val===!0||val===!1)return `${val}`;if(val===void 0)return \"undefined\";if(val===null)return \"null\";let typeOf=typeof val;if(typeOf===\"number\")return printNumber(val);if(typeOf===\"bigint\")return printBigInt(val);if(typeOf===\"string\")return escapeString?`\"${val.replaceAll(/\"|\\\\/g,\"\\\\$&\")}\"`:`\"${val}\"`;if(typeOf===\"function\")return printFunction(val,printFunctionName);if(typeOf===\"symbol\")return printSymbol(val);let toStringed=toString3.call(val);return toStringed===\"[object WeakMap]\"?\"WeakMap {}\":toStringed===\"[object WeakSet]\"?\"WeakSet {}\":toStringed===\"[object Function]\"||toStringed===\"[object GeneratorFunction]\"?printFunction(val,printFunctionName):toStringed===\"[object Symbol]\"?printSymbol(val):toStringed===\"[object Date]\"?Number.isNaN(+val)?\"Date { NaN }\":toISOString.call(val):toStringed===\"[object Error]\"?printError(val):toStringed===\"[object RegExp]\"?escapeRegex?regExpToString.call(val).replaceAll(/[$()*+.?[\\\\\\]^{|}]/g,\"\\\\$&\"):regExpToString.call(val):val instanceof Error?printError(val):null}function printComplexValue(val,config3,indentation,depth,refs,hasCalledToJSON){if(refs.includes(val))return \"[Circular]\";refs=[...refs],refs.push(val);let hitMaxDepth=++depth>config3.maxDepth,min=config3.min;if(config3.callToJSON&&!hitMaxDepth&&val.toJSON&&typeof val.toJSON==\"function\"&&!hasCalledToJSON)return printer(val.toJSON(),config3,indentation,depth,refs,!0);let toStringed=toString3.call(val);return toStringed===\"[object Arguments]\"?hitMaxDepth?\"[Arguments]\":`${min?\"\":\"Arguments \"}[${printListItems(val,config3,indentation,depth,refs,printer)}]`:isToStringedArrayType(toStringed)?hitMaxDepth?`[${val.constructor.name}]`:`${min||!config3.printBasicPrototype&&val.constructor.name===\"Array\"?\"\":`${val.constructor.name} `}[${printListItems(val,config3,indentation,depth,refs,printer)}]`:toStringed===\"[object Map]\"?hitMaxDepth?\"[Map]\":`Map {${printIteratorEntries(val.entries(),config3,indentation,depth,refs,printer,\" => \")}}`:toStringed===\"[object Set]\"?hitMaxDepth?\"[Set]\":`Set {${printIteratorValues(val.values(),config3,indentation,depth,refs,printer)}}`:hitMaxDepth||isWindow(val)?`[${getConstructorName2(val)}]`:`${min||!config3.printBasicPrototype&&getConstructorName2(val)===\"Object\"?\"\":`${getConstructorName2(val)} `}{${printObjectProperties(val,config3,indentation,depth,refs,printer)}}`}function isNewPlugin(plugin2){return plugin2.serialize!=null}function printPlugin(plugin2,val,config3,indentation,depth,refs){let printed;try{printed=isNewPlugin(plugin2)?plugin2.serialize(val,config3,indentation,depth,refs,printer):plugin2.print(val,valChild=>printer(valChild,config3,indentation,depth,refs),str=>{let indentationNext=indentation+config3.indent;return indentationNext+str.replaceAll(NEWLINE_REGEXP,`\n${indentationNext}`)},{edgeSpacing:config3.spacingOuter,min:config3.min,spacing:config3.spacingInner},config3.colors);}catch(error){throw new PrettyFormatPluginError(error.message,error.stack)}if(typeof printed!=\"string\")throw new TypeError(`pretty-format: Plugin must return type \"string\" but instead returned \"${typeof printed}\".`);return printed}function findPlugin(plugins22,val){for(let plugin2 of plugins22)try{if(plugin2.test(val))return plugin2}catch(error){throw new PrettyFormatPluginError(error.message,error.stack)}return null}function printer(val,config3,indentation,depth,refs,hasCalledToJSON){let plugin2=findPlugin(config3.plugins,val);if(plugin2!==null)return printPlugin(plugin2,val,config3,indentation,depth,refs);let basicResult=printBasicValue(val,config3.printFunctionName,config3.escapeRegex,config3.escapeString);return basicResult!==null?basicResult:printComplexValue(val,config3,indentation,depth,refs,hasCalledToJSON)}var DEFAULT_THEME={comment:\"gray\",content:\"reset\",prop:\"yellow\",tag:\"cyan\",value:\"green\"},DEFAULT_THEME_KEYS=Object.keys(DEFAULT_THEME),DEFAULT_OPTIONS={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:DEFAULT_THEME};function validateOptions(options){for(let key of Object.keys(options))if(!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS,key))throw new Error(`pretty-format: Unknown option \"${key}\".`);if(options.min&&options.indent!==void 0&&options.indent!==0)throw new Error('pretty-format: Options \"min\" and \"indent\" cannot be used together.')}function getColorsHighlight(){return DEFAULT_THEME_KEYS.reduce((colors,key)=>{let value=DEFAULT_THEME[key],color=value&&f2[value];if(color&&typeof color.close==\"string\"&&typeof color.open==\"string\")colors[key]=color;else throw new Error(`pretty-format: Option \"theme\" has a key \"${key}\" whose value \"${value}\" is undefined in ansi-styles.`);return colors},Object.create(null))}function getColorsEmpty(){return DEFAULT_THEME_KEYS.reduce((colors,key)=>(colors[key]={close:\"\",open:\"\"},colors),Object.create(null))}function getPrintFunctionName(options){return options?.printFunctionName??DEFAULT_OPTIONS.printFunctionName}function getEscapeRegex(options){return options?.escapeRegex??DEFAULT_OPTIONS.escapeRegex}function getEscapeString(options){return options?.escapeString??DEFAULT_OPTIONS.escapeString}function getConfig(options){return {callToJSON:options?.callToJSON??DEFAULT_OPTIONS.callToJSON,colors:options?.highlight?getColorsHighlight():getColorsEmpty(),compareKeys:typeof options?.compareKeys==\"function\"||options?.compareKeys===null?options.compareKeys:DEFAULT_OPTIONS.compareKeys,escapeRegex:getEscapeRegex(options),escapeString:getEscapeString(options),indent:options?.min?\"\":createIndent(options?.indent??DEFAULT_OPTIONS.indent),maxDepth:options?.maxDepth??DEFAULT_OPTIONS.maxDepth,maxWidth:options?.maxWidth??DEFAULT_OPTIONS.maxWidth,min:options?.min??DEFAULT_OPTIONS.min,plugins:options?.plugins??DEFAULT_OPTIONS.plugins,printBasicPrototype:options?.printBasicPrototype??!0,printFunctionName:getPrintFunctionName(options),spacingInner:options?.min?\" \":`\n`,spacingOuter:options?.min?\"\":`\n`}}function createIndent(indent){return Array.from({length:indent+1}).join(\" \")}function format(val,options){if(options&&(validateOptions(options),options.plugins)){let plugin2=findPlugin(options.plugins,val);if(plugin2!==null)return printPlugin(plugin2,val,getConfig(options),\"\",0,[])}let basicResult=printBasicValue(val,getPrintFunctionName(options),getEscapeRegex(options),getEscapeString(options));return basicResult!==null?basicResult:printComplexValue(val,getConfig(options),\"\",0,[])}var plugins={AsymmetricMatcher:plugin$5,DOMCollection:plugin$4,DOMElement:plugin$3,Immutable:plugin$2,ReactElement:plugin$1,ReactTestComponent:plugin};var{AsymmetricMatcher,DOMCollection,DOMElement,Immutable,ReactElement,ReactTestComponent}=plugins,PLUGINS=[ReactTestComponent,ReactElement,DOMElement,DOMCollection,Immutable,AsymmetricMatcher];function stringify(object,maxDepth=10,{maxLength,...options}={}){let MAX_LENGTH=maxLength??1e4,result;try{result=format(object,{maxDepth,escapeString:!1,plugins:PLUGINS,...options});}catch{result=format(object,{callToJSON:!1,maxDepth,escapeString:!1,plugins:PLUGINS,...options});}return result.length>=MAX_LENGTH&&maxDepth>1?stringify(object,Math.floor(maxDepth/2)):result}var formatRegExp=/%[sdjifoOc%]/g;function format2(...args){if(typeof args[0]!=\"string\"){let objects=[];for(let i2=0;i2{if(x2===\"%%\")return \"%\";if(i>=len)return x2;switch(x2){case\"%s\":{let value=args[i++];return typeof value==\"bigint\"?`${value.toString()}n`:typeof value==\"number\"&&value===0&&1/value<0?\"-0\":typeof value==\"object\"&&value!==null?inspect4(value,{depth:0,colors:!1}):String(value)}case\"%d\":{let value=args[i++];return typeof value==\"bigint\"?`${value.toString()}n`:Number(value).toString()}case\"%i\":{let value=args[i++];return typeof value==\"bigint\"?`${value.toString()}n`:Number.parseInt(String(value)).toString()}case\"%f\":return Number.parseFloat(String(args[i++])).toString();case\"%o\":return inspect4(args[i++],{showHidden:!0,showProxy:!0});case\"%O\":return inspect4(args[i++]);case\"%c\":return i++,\"\";case\"%j\":try{return JSON.stringify(args[i++])}catch(err){let m2=err.message;if(m2.includes(\"circular structure\")||m2.includes(\"cyclic structures\")||m2.includes(\"cyclic object\"))return \"[Circular]\";throw err}default:return x2}});for(let x2=args[i];itext2_length?text1=text1.substring(text1_length-text2_length):text1_length0?equalities[equalitiesLength-1]:-1,length_insertions1=0,length_deletions1=0,length_insertions2=0,length_deletions2=0,lastEquality=null,changes=!0)),pointer3++;for(changes&&diff_cleanupMerge(diffs),diff_cleanupSemanticLossless(diffs),pointer3=1;pointer3=overlap_length2?(overlap_length1>=deletion.length/2||overlap_length1>=insertion.length/2)&&(diffs.splice(pointer3,0,new Diff(DIFF_EQUAL,insertion.substring(0,overlap_length1))),diffs[pointer3-1][1]=deletion.substring(0,deletion.length-overlap_length1),diffs[pointer3+1][1]=insertion.substring(overlap_length1),pointer3++):(overlap_length2>=deletion.length/2||overlap_length2>=insertion.length/2)&&(diffs.splice(pointer3,0,new Diff(DIFF_EQUAL,deletion.substring(0,overlap_length2))),diffs[pointer3-1][0]=DIFF_INSERT,diffs[pointer3-1][1]=insertion.substring(0,insertion.length-overlap_length2),diffs[pointer3+1][0]=DIFF_DELETE,diffs[pointer3+1][1]=deletion.substring(overlap_length2),pointer3++),pointer3++;}pointer3++;}},nonAlphaNumericRegex_=/[^a-z0-9]/i,whitespaceRegex_=/\\s/,linebreakRegex_=/[\\r\\n]/,blanklineEndRegex_=/\\n\\r?\\n$/,blanklineStartRegex_=/^\\r?\\n\\r?\\n/;function diff_cleanupSemanticLossless(diffs){function diff_cleanupSemanticScore_(one,two){if(!one||!two)return 6;let char1=one.charAt(one.length-1),char2=two.charAt(0),nonAlphaNumeric1=char1.match(nonAlphaNumericRegex_),nonAlphaNumeric2=char2.match(nonAlphaNumericRegex_),whitespace1=nonAlphaNumeric1&&char1.match(whitespaceRegex_),whitespace2=nonAlphaNumeric2&&char2.match(whitespaceRegex_),lineBreak1=whitespace1&&char1.match(linebreakRegex_),lineBreak2=whitespace2&&char2.match(linebreakRegex_),blankLine1=lineBreak1&&one.match(blanklineEndRegex_),blankLine2=lineBreak2&&two.match(blanklineStartRegex_);return blankLine1||blankLine2?5:lineBreak1||lineBreak2?4:nonAlphaNumeric1&&!whitespace1&&whitespace2?3:whitespace1||whitespace2?2:nonAlphaNumeric1||nonAlphaNumeric2?1:0}let pointer3=1;for(;pointer3=bestScore&&(bestScore=score,bestEquality1=equality1,bestEdit=edit,bestEquality2=equality2);}diffs[pointer3-1][1]!==bestEquality1&&(bestEquality1?diffs[pointer3-1][1]=bestEquality1:(diffs.splice(pointer3-1,1),pointer3--),diffs[pointer3][1]=bestEdit,bestEquality2?diffs[pointer3+1][1]=bestEquality2:(diffs.splice(pointer3+1,1),pointer3--));}pointer3++;}}function diff_cleanupMerge(diffs){diffs.push(new Diff(DIFF_EQUAL,\"\"));let pointer3=0,count_delete=0,count_insert=0,text_delete=\"\",text_insert=\"\",commonlength;for(;pointer31?(count_delete!==0&&count_insert!==0&&(commonlength=diff_commonPrefix(text_insert,text_delete),commonlength!==0&&(pointer3-count_delete-count_insert>0&&diffs[pointer3-count_delete-count_insert-1][0]===DIFF_EQUAL?diffs[pointer3-count_delete-count_insert-1][1]+=text_insert.substring(0,commonlength):(diffs.splice(0,0,new Diff(DIFF_EQUAL,text_insert.substring(0,commonlength))),pointer3++),text_insert=text_insert.substring(commonlength),text_delete=text_delete.substring(commonlength)),commonlength=diff_commonSuffix(text_insert,text_delete),commonlength!==0&&(diffs[pointer3][1]=text_insert.substring(text_insert.length-commonlength)+diffs[pointer3][1],text_insert=text_insert.substring(0,text_insert.length-commonlength),text_delete=text_delete.substring(0,text_delete.length-commonlength))),pointer3-=count_delete+count_insert,diffs.splice(pointer3,count_delete+count_insert),text_delete.length&&(diffs.splice(pointer3,0,new Diff(DIFF_DELETE,text_delete)),pointer3++),text_insert.length&&(diffs.splice(pointer3,0,new Diff(DIFF_INSERT,text_insert)),pointer3++),pointer3++):pointer3!==0&&diffs[pointer3-1][0]===DIFF_EQUAL?(diffs[pointer3-1][1]+=diffs[pointer3][1],diffs.splice(pointer3,1)):pointer3++,count_insert=0,count_delete=0,text_delete=\"\",text_insert=\"\";break}diffs[diffs.length-1][1]===\"\"&&diffs.pop();let changes=!1;for(pointer3=1;pointer3{let nCommon=0;for(;aIndex{let nCommon=0;for(;aStart<=aIndex&&bStart<=bIndex&&isCommon(aIndex,bIndex);)aIndex-=1,bIndex-=1,nCommon+=1;return nCommon},extendPathsF=(d2,aEnd,bEnd,bF,isCommon,aIndexesF,iMaxF)=>{let iF=0,kF=-d2,aFirst=aIndexesF[iF],aIndexPrev1=aFirst;aIndexesF[iF]+=countCommonItemsF(aFirst+1,aEnd,bF+aFirst-kF+1,bEnd,isCommon);let nF=d2{let iR=0,kR=d2,aFirst=aIndexesR[iR],aIndexPrev1=aFirst;aIndexesR[iR]-=countCommonItemsR(aStart,aFirst-1,bStart,bR+aFirst-kR-1,isCommon);let nR=d2{let bF=bStart-aStart,aLength=aEnd-aStart,baDeltaLength=bEnd-bStart-aLength,kMinOverlapF=-baDeltaLength-(d2-1),kMaxOverlapF=-baDeltaLength+(d2-1),aIndexPrev1=NOT_YET_SET,nF=d2{let bR=bEnd-aEnd,aLength=aEnd-aStart,baDeltaLength=bEnd-bStart-aLength,kMinOverlapR=baDeltaLength-d2,kMaxOverlapR=baDeltaLength+d2,aIndexPrev1=NOT_YET_SET,nR=d2{let bF=bStart-aStart,bR=bEnd-aEnd,aLength=aEnd-aStart,bLength=bEnd-bStart,baDeltaLength=bLength-aLength,iMaxF=aLength,iMaxR=aLength;if(aIndexesF[0]=aStart-1,aIndexesR[0]=aEnd,baDeltaLength%2===0){let dMin=(nChange||baDeltaLength)/2,dMax=(aLength+bLength)/2;for(let d2=1;d2<=dMax;d2+=1)if(iMaxF=extendPathsF(d2,aEnd,bEnd,bF,isCommon,aIndexesF,iMaxF),d2{if(bEnd-bStart{foundSubsequence2(nCommon,aCommon,bCommon);},isCommon:(bIndex,aIndex)=>isCommon2(aIndex,bIndex)};}let tStart=aStart,tEnd=aEnd;aStart=bStart,aEnd=bEnd,bStart=tStart,bEnd=tEnd;}let{foundSubsequence,isCommon}=callbacks[transposed?1:0];divide(nChange,aStart,aEnd,bStart,bEnd,isCommon,aIndexesF,aIndexesR,division);let{nChangePreceding,aEndPreceding,bEndPreceding,nCommonPreceding,aCommonPreceding,bCommonPreceding,nCommonFollowing,aCommonFollowing,bCommonFollowing,nChangeFollowing,aStartFollowing,bStartFollowing}=division;aStart{if(typeof arg!=\"number\")throw new TypeError(`${pkg}: ${name} typeof ${typeof arg} is not a number`);if(!Number.isSafeInteger(arg))throw new RangeError(`${pkg}: ${name} value ${arg} is not a safe integer`);if(arg<0)throw new RangeError(`${pkg}: ${name} value ${arg} is a negative integer`)},validateCallback=(name,arg)=>{let type5=typeof arg;if(type5!==\"function\")throw new TypeError(`${pkg}: ${name} typeof ${type5} is not a function`)};function diffSequence(aLength,bLength,isCommon,foundSubsequence){validateLength(\"aLength\",aLength),validateLength(\"bLength\",bLength),validateCallback(\"isCommon\",isCommon),validateCallback(\"foundSubsequence\",foundSubsequence);let nCommonF=countCommonItemsF(0,aLength,0,bLength,isCommon);if(nCommonF!==0&&foundSubsequence(nCommonF,0,0),aLength!==nCommonF||bLength!==nCommonF){let aStart=nCommonF,bStart=nCommonF,nCommonR=countCommonItemsR(aStart,aLength-1,bStart,bLength-1,isCommon),aEnd=aLength-nCommonR,bEnd=bLength-nCommonR,nCommonFR=nCommonF+nCommonR;aLength!==nCommonFR&&bLength!==nCommonFR&&findSubsequences(0,aStart,aEnd,bStart,bEnd,!1,[{foundSubsequence,isCommon}],[NOT_YET_SET],[NOT_YET_SET],{aCommonFollowing:NOT_YET_SET,aCommonPreceding:NOT_YET_SET,aEndPreceding:NOT_YET_SET,aStartFollowing:NOT_YET_SET,bCommonFollowing:NOT_YET_SET,bCommonPreceding:NOT_YET_SET,bEndPreceding:NOT_YET_SET,bStartFollowing:NOT_YET_SET,nChangeFollowing:NOT_YET_SET,nChangePreceding:NOT_YET_SET,nCommonFollowing:NOT_YET_SET,nCommonPreceding:NOT_YET_SET}),nCommonR!==0&&foundSubsequence(nCommonR,aEnd,bEnd);}}function formatTrailingSpaces(line,trailingSpaceFormatter){return line.replace(/\\s+$/,match=>trailingSpaceFormatter(match))}function printDiffLine(line,isFirstOrLast,color,indicator,trailingSpaceFormatter,emptyFirstOrLastLinePlaceholder){return line.length!==0?color(`${indicator} ${formatTrailingSpaces(line,trailingSpaceFormatter)}`):indicator!==\" \"?color(indicator):isFirstOrLast&&emptyFirstOrLastLinePlaceholder.length!==0?color(`${indicator} ${emptyFirstOrLastLinePlaceholder}`):\"\"}function printDeleteLine(line,isFirstOrLast,{aColor,aIndicator,changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder}){return printDiffLine(line,isFirstOrLast,aColor,aIndicator,changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder)}function printInsertLine(line,isFirstOrLast,{bColor,bIndicator,changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder}){return printDiffLine(line,isFirstOrLast,bColor,bIndicator,changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder)}function printCommonLine(line,isFirstOrLast,{commonColor,commonIndicator,commonLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder}){return printDiffLine(line,isFirstOrLast,commonColor,commonIndicator,commonLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder)}function createPatchMark(aStart,aEnd,bStart,bEnd,{patchColor}){return patchColor(`@@ -${aStart+1},${aEnd-aStart} +${bStart+1},${bEnd-bStart} @@`)}function joinAlignedDiffsNoExpand(diffs,options){let iLength=diffs.length,nContextLines=options.contextLines,nContextLines2=nContextLines+nContextLines,jLength=iLength,hasExcessAtStartOrEnd=!1,nExcessesBetweenChanges=0,i=0;for(;i!==iLength;){let iStart=i;for(;i!==iLength&&diffs[i][0]===DIFF_EQUAL;)i+=1;if(iStart!==i)if(iStart===0)i>nContextLines&&(jLength-=i-nContextLines,hasExcessAtStartOrEnd=!0);else if(i===iLength){let n=i-iStart;n>nContextLines&&(jLength-=n-nContextLines,hasExcessAtStartOrEnd=!0);}else {let n=i-iStart;n>nContextLines2&&(jLength-=n-nContextLines2,nExcessesBetweenChanges+=1);}for(;i!==iLength&&diffs[i][0]!==DIFF_EQUAL;)i+=1;}let hasPatch=nExcessesBetweenChanges!==0||hasExcessAtStartOrEnd;nExcessesBetweenChanges!==0?jLength+=nExcessesBetweenChanges+1:hasExcessAtStartOrEnd&&(jLength+=1);let jLast=jLength-1,lines=[],jPatchMark=0;hasPatch&&lines.push(\"\");let aStart=0,bStart=0,aEnd=0,bEnd=0,pushCommonLine=line=>{let j=lines.length;lines.push(printCommonLine(line,j===0||j===jLast,options)),aEnd+=1,bEnd+=1;},pushDeleteLine=line=>{let j=lines.length;lines.push(printDeleteLine(line,j===0||j===jLast,options)),aEnd+=1;},pushInsertLine=line=>{let j=lines.length;lines.push(printInsertLine(line,j===0||j===jLast,options)),bEnd+=1;};for(i=0;i!==iLength;){let iStart=i;for(;i!==iLength&&diffs[i][0]===DIFF_EQUAL;)i+=1;if(iStart!==i)if(iStart===0){i>nContextLines&&(iStart=i-nContextLines,aStart=iStart,bStart=iStart,aEnd=aStart,bEnd=bStart);for(let iCommon=iStart;iCommon!==i;iCommon+=1)pushCommonLine(diffs[iCommon][1]);}else if(i===iLength){let iEnd=i-iStart>nContextLines?iStart+nContextLines:i;for(let iCommon=iStart;iCommon!==iEnd;iCommon+=1)pushCommonLine(diffs[iCommon][1]);}else {let nCommon=i-iStart;if(nCommon>nContextLines2){let iEnd=iStart+nContextLines;for(let iCommon=iStart;iCommon!==iEnd;iCommon+=1)pushCommonLine(diffs[iCommon][1]);lines[jPatchMark]=createPatchMark(aStart,aEnd,bStart,bEnd,options),jPatchMark=lines.length,lines.push(\"\");let nOmit=nCommon-nContextLines2;aStart=aEnd+nOmit,bStart=bEnd+nOmit,aEnd=aStart,bEnd=bStart;for(let iCommon=i-nContextLines;iCommon!==i;iCommon+=1)pushCommonLine(diffs[iCommon][1]);}else for(let iCommon=iStart;iCommon!==i;iCommon+=1)pushCommonLine(diffs[iCommon][1]);}for(;i!==iLength&&diffs[i][0]===DIFF_DELETE;)pushDeleteLine(diffs[i][1]),i+=1;for(;i!==iLength&&diffs[i][0]===DIFF_INSERT;)pushInsertLine(diffs[i][1]),i+=1;}return hasPatch&&(lines[jPatchMark]=createPatchMark(aStart,aEnd,bStart,bEnd,options)),lines.join(`\n`)}function joinAlignedDiffsExpand(diffs,options){return diffs.map((diff2,i,diffs2)=>{let line=diff2[1],isFirstOrLast=i===0||i===diffs2.length-1;switch(diff2[0]){case DIFF_DELETE:return printDeleteLine(line,isFirstOrLast,options);case DIFF_INSERT:return printInsertLine(line,isFirstOrLast,options);default:return printCommonLine(line,isFirstOrLast,options)}}).join(`\n`)}var noColor=string=>string,DIFF_CONTEXT_DEFAULT=5,DIFF_TRUNCATE_THRESHOLD_DEFAULT=0;function getDefaultOptions(){return {aAnnotation:\"Expected\",aColor:f2.green,aIndicator:\"-\",bAnnotation:\"Received\",bColor:f2.red,bIndicator:\"+\",changeColor:f2.inverse,changeLineTrailingSpaceColor:noColor,commonColor:f2.dim,commonIndicator:\" \",commonLineTrailingSpaceColor:noColor,compareKeys:void 0,contextLines:DIFF_CONTEXT_DEFAULT,emptyFirstOrLastLinePlaceholder:\"\",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:f2.yellow,truncateThreshold:DIFF_TRUNCATE_THRESHOLD_DEFAULT,truncateAnnotation:\"... Diff result is truncated\",truncateAnnotationColor:noColor}}function getCompareKeys(compareKeys){return compareKeys&&typeof compareKeys==\"function\"?compareKeys:void 0}function getContextLines(contextLines){return typeof contextLines==\"number\"&&Number.isSafeInteger(contextLines)&&contextLines>=0?contextLines:DIFF_CONTEXT_DEFAULT}function normalizeDiffOptions(options={}){return {...getDefaultOptions(),...options,compareKeys:getCompareKeys(options.compareKeys),contextLines:getContextLines(options.contextLines)}}function isEmptyString(lines){return lines.length===1&&lines[0].length===0}function countChanges(diffs){let a2=0,b=0;return diffs.forEach(diff2=>{switch(diff2[0]){case DIFF_DELETE:a2+=1;break;case DIFF_INSERT:b+=1;break}}),{a:a2,b}}function printAnnotation({aAnnotation,aColor,aIndicator,bAnnotation,bColor,bIndicator,includeChangeCounts,omitAnnotationLines},changeCounts){if(omitAnnotationLines)return \"\";let aRest=\"\",bRest=\"\";if(includeChangeCounts){let aCount=String(changeCounts.a),bCount=String(changeCounts.b),baAnnotationLengthDiff=bAnnotation.length-aAnnotation.length,aAnnotationPadding=\" \".repeat(Math.max(0,baAnnotationLengthDiff)),bAnnotationPadding=\" \".repeat(Math.max(0,-baAnnotationLengthDiff)),baCountLengthDiff=bCount.length-aCount.length,aCountPadding=\" \".repeat(Math.max(0,baCountLengthDiff)),bCountPadding=\" \".repeat(Math.max(0,-baCountLengthDiff));aRest=`${aAnnotationPadding} ${aIndicator} ${aCountPadding}${aCount}`,bRest=`${bAnnotationPadding} ${bIndicator} ${bCountPadding}${bCount}`;}let a2=`${aIndicator} ${aAnnotation}${aRest}`,b=`${bIndicator} ${bAnnotation}${bRest}`;return `${aColor(a2)}\n${bColor(b)}\n\n`}function printDiffLines(diffs,truncated,options){return printAnnotation(options,countChanges(diffs))+(options.expand?joinAlignedDiffsExpand(diffs,options):joinAlignedDiffsNoExpand(diffs,options))+(truncated?options.truncateAnnotationColor(`\n${options.truncateAnnotation}`):\"\")}function diffLinesUnified(aLines,bLines,options){let normalizedOptions=normalizeDiffOptions(options),[diffs,truncated]=diffLinesRaw(isEmptyString(aLines)?[]:aLines,isEmptyString(bLines)?[]:bLines,normalizedOptions);return printDiffLines(diffs,truncated,normalizedOptions)}function diffLinesUnified2(aLinesDisplay,bLinesDisplay,aLinesCompare,bLinesCompare,options){if(isEmptyString(aLinesDisplay)&&isEmptyString(aLinesCompare)&&(aLinesDisplay=[],aLinesCompare=[]),isEmptyString(bLinesDisplay)&&isEmptyString(bLinesCompare)&&(bLinesDisplay=[],bLinesCompare=[]),aLinesDisplay.length!==aLinesCompare.length||bLinesDisplay.length!==bLinesCompare.length)return diffLinesUnified(aLinesDisplay,bLinesDisplay,options);let[diffs,truncated]=diffLinesRaw(aLinesCompare,bLinesCompare,options),aIndex=0,bIndex=0;return diffs.forEach(diff2=>{switch(diff2[0]){case DIFF_DELETE:diff2[1]=aLinesDisplay[aIndex],aIndex+=1;break;case DIFF_INSERT:diff2[1]=bLinesDisplay[bIndex],bIndex+=1;break;default:diff2[1]=bLinesDisplay[bIndex],aIndex+=1,bIndex+=1;}}),printDiffLines(diffs,truncated,normalizeDiffOptions(options))}function diffLinesRaw(aLines,bLines,options){let truncate3=options?.truncateThreshold??!1,truncateThreshold=Math.max(Math.floor(options?.truncateThreshold??0),0),aLength=truncate3?Math.min(aLines.length,truncateThreshold):aLines.length,bLength=truncate3?Math.min(bLines.length,truncateThreshold):bLines.length,truncated=aLength!==aLines.length||bLength!==bLines.length,isCommon=(aIndex2,bIndex2)=>aLines[aIndex2]===bLines[bIndex2],diffs=[],aIndex=0,bIndex=0;for(_default(aLength,bLength,isCommon,(nCommon,aCommon,bCommon)=>{for(;aIndex!==aCommon;aIndex+=1)diffs.push(new Diff(DIFF_DELETE,aLines[aIndex]));for(;bIndex!==bCommon;bIndex+=1)diffs.push(new Diff(DIFF_INSERT,bLines[bIndex]));for(;nCommon!==0;nCommon-=1,aIndex+=1,bIndex+=1)diffs.push(new Diff(DIFF_EQUAL,bLines[bIndex]));});aIndex!==aLength;aIndex+=1)diffs.push(new Diff(DIFF_DELETE,aLines[aIndex]));for(;bIndex!==bLength;bIndex+=1)diffs.push(new Diff(DIFF_INSERT,bLines[bIndex]));return [diffs,truncated]}function getNewLineSymbol(string){return string.includes(`\\r\n`)?`\\r\n`:`\n`}function diffStrings(a2,b,options){let truncate3=options?.truncateThreshold??!1,truncateThreshold=Math.max(Math.floor(options?.truncateThreshold??0),0),aLength=a2.length,bLength=b.length;if(truncate3){let aMultipleLines=a2.includes(`\n`),bMultipleLines=b.includes(`\n`),aNewLineSymbol=getNewLineSymbol(a2),bNewLineSymbol=getNewLineSymbol(b),_a2=aMultipleLines?`${a2.split(aNewLineSymbol,truncateThreshold).join(aNewLineSymbol)}\n`:a2,_b=bMultipleLines?`${b.split(bNewLineSymbol,truncateThreshold).join(bNewLineSymbol)}\n`:b;aLength=_a2.length,bLength=_b.length;}let truncated=aLength!==a2.length||bLength!==b.length,isCommon=(aIndex2,bIndex2)=>a2[aIndex2]===b[bIndex2],aIndex=0,bIndex=0,diffs=[];return _default(aLength,bLength,isCommon,(nCommon,aCommon,bCommon)=>{aIndex!==aCommon&&diffs.push(new Diff(DIFF_DELETE,a2.slice(aIndex,aCommon))),bIndex!==bCommon&&diffs.push(new Diff(DIFF_INSERT,b.slice(bIndex,bCommon))),aIndex=aCommon+nCommon,bIndex=bCommon+nCommon,diffs.push(new Diff(DIFF_EQUAL,b.slice(bCommon,bIndex)));}),aIndex!==aLength&&diffs.push(new Diff(DIFF_DELETE,a2.slice(aIndex))),bIndex!==bLength&&diffs.push(new Diff(DIFF_INSERT,b.slice(bIndex))),[diffs,truncated]}function concatenateRelevantDiffs(op,diffs,changeColor){return diffs.reduce((reduced,diff2)=>reduced+(diff2[0]===DIFF_EQUAL?diff2[1]:diff2[0]===op&&diff2[1].length!==0?changeColor(diff2[1]):\"\"),\"\")}var ChangeBuffer=class{op;line;lines;changeColor;constructor(op,changeColor){this.op=op,this.line=[],this.lines=[],this.changeColor=changeColor;}pushSubstring(substring){this.pushDiff(new Diff(this.op,substring));}pushLine(){this.lines.push(this.line.length!==1?new Diff(this.op,concatenateRelevantDiffs(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Diff(this.op,this.line[0][1])),this.line.length=0;}isLineEmpty(){return this.line.length===0}pushDiff(diff2){this.line.push(diff2);}align(diff2){let string=diff2[1];if(string.includes(`\n`)){let substrings=string.split(`\n`),iLast=substrings.length-1;substrings.forEach((substring,i)=>{i{if(i===0){let subdiff=new Diff(op,substring);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(subdiff)):(this.pushDiffChangeLines(subdiff),this.flushChangeLines());}else i{switch(diff2[0]){case DIFF_DELETE:deleteBuffer.align(diff2);break;case DIFF_INSERT:insertBuffer.align(diff2);break;default:commonBuffer.align(diff2);}}),commonBuffer.getLines()}function hasCommonDiff(diffs,isMultiline){if(isMultiline){let iLast=diffs.length-1;return diffs.some((diff2,i)=>diff2[0]===DIFF_EQUAL&&(i!==iLast||diff2[1]!==`\n`))}return diffs.some(diff2=>diff2[0]===DIFF_EQUAL)}function diffStringsUnified(a2,b,options){if(a2!==b&&a2.length!==0&&b.length!==0){let isMultiline=a2.includes(`\n`)||b.includes(`\n`),[diffs,truncated]=diffStringsRaw(isMultiline?`${a2}\n`:a2,isMultiline?`${b}\n`:b,!0,options);if(hasCommonDiff(diffs,isMultiline)){let optionsNormalized=normalizeDiffOptions(options),lines=getAlignedDiffs(diffs,optionsNormalized.changeColor);return printDiffLines(lines,truncated,optionsNormalized)}}return diffLinesUnified(a2.split(`\n`),b.split(`\n`),options)}function diffStringsRaw(a2,b,cleanup,options){let[diffs,truncated]=diffStrings(a2,b,options);return cleanup&&diff_cleanupSemantic(diffs),[diffs,truncated]}function getCommonMessage(message,options){let{commonColor}=normalizeDiffOptions(options);return commonColor(message)}var{AsymmetricMatcher:AsymmetricMatcher2,DOMCollection:DOMCollection2,DOMElement:DOMElement2,Immutable:Immutable2,ReactElement:ReactElement2,ReactTestComponent:ReactTestComponent2}=plugins,PLUGINS2=[ReactTestComponent2,ReactElement2,DOMElement2,DOMCollection2,Immutable2,AsymmetricMatcher2],FORMAT_OPTIONS={plugins:PLUGINS2},FALLBACK_FORMAT_OPTIONS={callToJSON:!1,maxDepth:10,plugins:PLUGINS2};function diff(a2,b,options){if(Object.is(a2,b))return \"\";let aType=getType3(a2),expectedType=aType,omitDifference=!1;if(aType===\"object\"&&typeof a2.asymmetricMatch==\"function\"){if(a2.$$typeof!==Symbol.for(\"jest.asymmetricMatcher\")||typeof a2.getExpectedType!=\"function\")return;expectedType=a2.getExpectedType(),omitDifference=expectedType===\"string\";}if(expectedType!==getType3(b)){let{aAnnotation,aColor,aIndicator,bAnnotation,bColor,bIndicator}=normalizeDiffOptions(options),formatOptions=getFormatOptions(FALLBACK_FORMAT_OPTIONS,options),aDisplay=format(a2,formatOptions),bDisplay=format(b,formatOptions),aDiff=`${aColor(`${aIndicator} ${aAnnotation}:`)} \n${aDisplay}`,bDiff=`${bColor(`${bIndicator} ${bAnnotation}:`)} \n${bDisplay}`;return `${aDiff}\n\n${bDiff}`}if(!omitDifference)switch(aType){case\"string\":return diffLinesUnified(a2.split(`\n`),b.split(`\n`),options);case\"boolean\":case\"number\":return comparePrimitive(a2,b,options);case\"map\":return compareObjects(sortMap(a2),sortMap(b),options);case\"set\":return compareObjects(sortSet(a2),sortSet(b),options);default:return compareObjects(a2,b,options)}}function comparePrimitive(a2,b,options){let aFormat=format(a2,FORMAT_OPTIONS),bFormat=format(b,FORMAT_OPTIONS);return aFormat===bFormat?\"\":diffLinesUnified(aFormat.split(`\n`),bFormat.split(`\n`),options)}function sortMap(map){return new Map(Array.from(map.entries()).sort())}function sortSet(set2){return new Set(Array.from(set2.values()).sort())}function compareObjects(a2,b,options){let difference,hasThrown=!1;try{let formatOptions=getFormatOptions(FORMAT_OPTIONS,options);difference=getObjectsDifference(a2,b,formatOptions,options);}catch{hasThrown=!0;}let noDiffMessage=getCommonMessage(NO_DIFF_MESSAGE,options);if(difference===void 0||difference===noDiffMessage){let formatOptions=getFormatOptions(FALLBACK_FORMAT_OPTIONS,options);difference=getObjectsDifference(a2,b,formatOptions,options),difference!==noDiffMessage&&!hasThrown&&(difference=`${getCommonMessage(SIMILAR_MESSAGE,options)}\n\n${difference}`);}return difference}function getFormatOptions(formatOptions,options){let{compareKeys}=normalizeDiffOptions(options);return {...formatOptions,compareKeys}}function getObjectsDifference(a2,b,formatOptions,options){let formatOptionsZeroIndent={...formatOptions,indent:0},aCompare=format(a2,formatOptionsZeroIndent),bCompare=format(b,formatOptionsZeroIndent);if(aCompare===bCompare)return getCommonMessage(NO_DIFF_MESSAGE,options);{let aDisplay=format(a2,formatOptions),bDisplay=format(b,formatOptions);return diffLinesUnified2(aDisplay.split(`\n`),bDisplay.split(`\n`),aCompare.split(`\n`),bCompare.split(`\n`),options)}}var MAX_DIFF_STRING_LENGTH=2e4;function isAsymmetricMatcher(data){return getType(data)===\"Object\"&&typeof data.asymmetricMatch==\"function\"}function isReplaceable(obj1,obj2){let obj1Type=getType(obj1),obj2Type=getType(obj2);return obj1Type===obj2Type&&(obj1Type===\"Object\"||obj1Type===\"Array\")}function printDiffOrStringify(expected,received,options){let{aAnnotation,bAnnotation}=normalizeDiffOptions(options);if(typeof expected==\"string\"&&typeof received==\"string\"&&expected.length>0&&received.length>0&&expected.length<=MAX_DIFF_STRING_LENGTH&&received.length<=MAX_DIFF_STRING_LENGTH&&expected!==received){if(expected.includes(`\n`)||received.includes(`\n`))return diffStringsUnified(received,expected,options);let[diffs]=diffStringsRaw(received,expected,!0),hasCommonDiff2=diffs.some(diff2=>diff2[0]===DIFF_EQUAL),printLabel=getLabelPrinter(aAnnotation,bAnnotation),expectedLine=printLabel(aAnnotation)+printExpected(getCommonAndChangedSubstrings(diffs,DIFF_DELETE,hasCommonDiff2)),receivedLine=printLabel(bAnnotation)+printReceived(getCommonAndChangedSubstrings(diffs,DIFF_INSERT,hasCommonDiff2));return `${expectedLine}\n${receivedLine}`}let clonedExpected=deepClone(expected,{forceWritable:!0}),clonedReceived=deepClone(received,{forceWritable:!0}),{replacedExpected,replacedActual}=replaceAsymmetricMatcher(clonedExpected,clonedReceived);return diff(replacedExpected,replacedActual,options)}function replaceAsymmetricMatcher(actual,expected,actualReplaced=new WeakSet,expectedReplaced=new WeakSet){return isReplaceable(actual,expected)?actualReplaced.has(actual)||expectedReplaced.has(expected)?{replacedActual:actual,replacedExpected:expected}:(actualReplaced.add(actual),expectedReplaced.add(expected),getOwnProperties(expected).forEach(key=>{let expectedValue=expected[key],actualValue=actual[key];if(isAsymmetricMatcher(expectedValue))expectedValue.asymmetricMatch(actualValue)&&(actual[key]=expectedValue);else if(isAsymmetricMatcher(actualValue))actualValue.asymmetricMatch(expectedValue)&&(expected[key]=actualValue);else if(isReplaceable(actualValue,expectedValue)){let replaced=replaceAsymmetricMatcher(actualValue,expectedValue,actualReplaced,expectedReplaced);actual[key]=replaced.replacedActual,expected[key]=replaced.replacedExpected;}}),{replacedActual:actual,replacedExpected:expected}):{replacedActual:actual,replacedExpected:expected}}function getLabelPrinter(...strings){let maxLength=strings.reduce((max,string)=>string.length>max?string.length:max,0);return string=>`${string}: ${\" \".repeat(maxLength-string.length)}`}var SPACE_SYMBOL=\"\\xB7\";function replaceTrailingSpaces(text){return text.replace(/\\s+$/gm,spaces=>SPACE_SYMBOL.repeat(spaces.length))}function printReceived(object){return f2.red(replaceTrailingSpaces(stringify(object)))}function printExpected(value){return f2.green(replaceTrailingSpaces(stringify(value)))}function getCommonAndChangedSubstrings(diffs,op,hasCommonDiff2){return diffs.reduce((reduced,diff2)=>reduced+(diff2[0]===DIFF_EQUAL?diff2[1]:diff2[0]===op?hasCommonDiff2?f2.inverse(diff2[1]):diff2[1]:\"\"),\"\")}function d(e,t){if(!e)throw new Error(t)}function y(e,t){return typeof t===e}function w(e){return e instanceof Promise}function f3(e,t,n){Object.defineProperty(e,t,n);}function p2(e,t,n){Object.defineProperty(e,t,{value:n});}var u=Symbol.for(\"tinyspy:spy\"),x=new Set,P=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[];},K=e=>(f3(e,u,{value:{reset:()=>P(e[u])}}),e[u]),I=e=>e[u]||K(e);function g(e){d(y(\"function\",e)||y(\"undefined\",e),\"cannot spy on a non-function value\");let t=function(...s){let r=I(t);r.called=!0,r.callCount++,r.calls.push(s);let R=r.next.shift();if(R){r.results.push(R);let[o,l]=R;if(o===\"ok\")return l;throw l}let i,c=\"ok\",a2=r.results.length;if(r.impl)try{new.target?i=Reflect.construct(r.impl,s,new.target):i=r.impl.apply(this,s),c=\"ok\";}catch(o){throw i=o,c=\"error\",r.results.push([c,o]),o}let S=[c,i];return w(i)&&i.then(o=>r.resolves[a2]=[\"ok\",o],o=>r.resolves[a2]=[\"error\",o]),r.results.push(S),i};p2(t,\"_isMockFunction\",!0),p2(t,\"length\",e?e.length:0),p2(t,\"name\",e&&e.name||\"spy\");let n=I(t);return n.reset(),n.impl=e,t}var k=(e,t)=>Object.getOwnPropertyDescriptor(e,t),O=(e,t)=>{t!=null&&typeof t==\"function\"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype);};function C2(e,t,n){d(!y(\"undefined\",e),\"spyOn could not find an object to spy upon\"),d(y(\"object\",e)||y(\"function\",e),\"cannot spyOn on a primitive value\");let[s,r]=(()=>{if(!y(\"object\",t))return [t,\"value\"];if(\"getter\"in t&&\"setter\"in t)throw new Error(\"cannot spy on both getter and setter\");if(\"getter\"in t)return [t.getter,\"get\"];if(\"setter\"in t)return [t.setter,\"set\"];throw new Error(\"specify getter or setter to spy on\")})(),R=k(e,s),i=Object.getPrototypeOf(e),c=i&&k(i,s),a2=R||c;d(a2||s in e,`${String(s)} does not exist`);let S=!1;r===\"value\"&&a2&&!a2.value&&a2.get&&(r=\"get\",S=!0,n=a2.get());let o;a2?o=a2[r]:r!==\"value\"?o=()=>e[s]:o=e[s],n||(n=o);let l=g(n);r===\"value\"&&O(l,o);let h2=A=>{let{value:M,...v}=a2||{configurable:!0,writable:!0};r!==\"value\"&&delete v.writable,v[r]=A,f3(e,s,v);},b=()=>a2?f3(e,s,a2):h2(o),m2=l[u];return p2(m2,\"restore\",b),p2(m2,\"getOriginal\",()=>S?o():o),p2(m2,\"willCall\",A=>(m2.impl=A,l)),h2(S?()=>(O(l,n),l):l),x.add(l),l}var mocks=new Set;function isMockFunction(fn22){return typeof fn22==\"function\"&&\"_isMockFunction\"in fn22&&fn22._isMockFunction}function spyOn(obj,method,accessType){let objMethod=accessType?{[{get:\"getter\",set:\"setter\"}[accessType]]:method}:method,stub=C2(obj,objMethod);return enhanceSpy(stub)}var callOrder=0;function enhanceSpy(spy){let stub=spy,implementation,instances=[],contexts=[],invocations=[],state=I(spy),mockContext={get calls(){return state.calls},get contexts(){return contexts},get instances(){return instances},get invocationCallOrder(){return invocations},get results(){return state.results.map(([callType,value])=>({type:callType===\"error\"?\"throw\":\"return\",value}))},get settledResults(){return state.resolves.map(([callType,value])=>({type:callType===\"error\"?\"rejected\":\"fulfilled\",value}))},get lastCall(){return state.calls[state.calls.length-1]}},onceImplementations=[],implementationChangedTemporarily=!1;function mockCall(...args){return instances.push(this),contexts.push(this),invocations.push(++callOrder),(implementationChangedTemporarily?implementation:onceImplementations.shift()||implementation||state.getOriginal()||(()=>{})).apply(this,args)}let name=stub.name;stub.getMockName=()=>name||\"vi.fn()\",stub.mockName=n=>(name=n,stub),stub.mockClear=()=>(state.reset(),instances=[],contexts=[],invocations=[],stub),stub.mockReset=()=>(stub.mockClear(),implementation=()=>{},onceImplementations=[],stub),stub.mockRestore=()=>(stub.mockReset(),state.restore(),implementation=void 0,stub),stub.getMockImplementation=()=>implementation,stub.mockImplementation=fn22=>(implementation=fn22,state.willCall(mockCall),stub),stub.mockImplementationOnce=fn22=>(onceImplementations.push(fn22),stub);function withImplementation(fn22,cb){let originalImplementation=implementation;implementation=fn22,state.willCall(mockCall),implementationChangedTemporarily=!0;let reset=()=>{implementation=originalImplementation,implementationChangedTemporarily=!1;},result=cb();return result instanceof Promise?result.then(()=>(reset(),stub)):(reset(),stub)}return stub.withImplementation=withImplementation,stub.mockReturnThis=()=>stub.mockImplementation(function(){return this}),stub.mockReturnValue=val=>stub.mockImplementation(()=>val),stub.mockReturnValueOnce=val=>stub.mockImplementationOnce(()=>val),stub.mockResolvedValue=val=>stub.mockImplementation(()=>Promise.resolve(val)),stub.mockResolvedValueOnce=val=>stub.mockImplementationOnce(()=>Promise.resolve(val)),stub.mockRejectedValue=val=>stub.mockImplementation(()=>Promise.reject(val)),stub.mockRejectedValueOnce=val=>stub.mockImplementationOnce(()=>Promise.reject(val)),Object.defineProperty(stub,\"mock\",{get:()=>mockContext}),state.willCall(mockCall),mocks.add(stub),stub}function fn(implementation){let enhancedSpy=enhanceSpy(C2({spy:implementation||function(){}},\"spy\"));return implementation&&enhancedSpy.mockImplementation(implementation),enhancedSpy}var IS_RECORD_SYMBOL=\"@@__IMMUTABLE_RECORD__@@\",IS_COLLECTION_SYMBOL=\"@@__IMMUTABLE_ITERABLE__@@\";function isImmutable(v){return v&&(v[IS_COLLECTION_SYMBOL]||v[IS_RECORD_SYMBOL])}var OBJECT_PROTO=Object.getPrototypeOf({});function getUnserializableMessage(err){return err instanceof Error?`: ${err.message}`:typeof err==\"string\"?`: ${err}`:\"\"}function serializeValue(val,seen=new WeakMap){if(!val||typeof val==\"string\")return val;if(typeof val==\"function\")return `Function<${val.name||\"anonymous\"}>`;if(typeof val==\"symbol\")return val.toString();if(typeof val!=\"object\")return val;if(isImmutable(val))return serializeValue(val.toJSON(),seen);if(val instanceof Promise||val.constructor&&val.constructor.prototype===\"AsyncFunction\")return \"Promise\";if(typeof Element<\"u\"&&val instanceof Element)return val.tagName;if(typeof val.asymmetricMatch==\"function\")return `${val.toString()} ${format2(val.sample)}`;if(typeof val.toJSON==\"function\")return serializeValue(val.toJSON(),seen);if(seen.has(val))return seen.get(val);if(Array.isArray(val)){let clone2=new Array(val.length);return seen.set(val,clone2),val.forEach((e,i)=>{try{clone2[i]=serializeValue(e,seen);}catch(err){clone2[i]=getUnserializableMessage(err);}}),clone2}else {let clone2=Object.create(null);seen.set(val,clone2);let obj=val;for(;obj&&obj!==OBJECT_PROTO;)Object.getOwnPropertyNames(obj).forEach(key=>{if(!(key in clone2))try{clone2[key]=serializeValue(val[key],seen);}catch(err){delete clone2[key],clone2[key]=getUnserializableMessage(err);}}),obj=Object.getPrototypeOf(obj);return clone2}}function normalizeErrorMessage(message){return message.replace(/__(vite_ssr_import|vi_import)_\\d+__\\./g,\"\")}function processError(_err,diffOptions,seen=new WeakSet){if(!_err||typeof _err!=\"object\")return {message:String(_err)};let err=_err;err.stack&&(err.stackStr=String(err.stack)),err.name&&(err.nameStr=String(err.name)),(err.showDiff||err.showDiff===void 0&&err.expected!==void 0&&err.actual!==void 0)&&(err.diff=printDiffOrStringify(err.actual,err.expected,{...diffOptions,...err.diffOptions})),typeof err.expected!=\"string\"&&(err.expected=stringify(err.expected,10)),typeof err.actual!=\"string\"&&(err.actual=stringify(err.actual,10));try{typeof err.message==\"string\"&&(err.message=normalizeErrorMessage(err.message));}catch{}try{!seen.has(err)&&typeof err.cause==\"object\"&&(seen.add(err),err.cause=processError(err.cause,diffOptions,seen));}catch{}try{return serializeValue(err)}catch(e){return serializeValue(new Error(`Failed to fully serialize error: ${e?.message}\nInner error message: ${err?.message}`))}}var MATCHERS_OBJECT=Symbol.for(\"matchers-object\"),JEST_MATCHERS_OBJECT=Symbol.for(\"$$jest-matchers-object-storybook\"),GLOBAL_EXPECT=Symbol.for(\"expect-global\"),ASYMMETRIC_MATCHERS_OBJECT=Symbol.for(\"asymmetric-matchers-object\");if(!Object.prototype.hasOwnProperty.call(globalThis,MATCHERS_OBJECT)){let globalState=new WeakMap;Object.defineProperty(globalThis,MATCHERS_OBJECT,{get:()=>globalState});}if(!Object.prototype.hasOwnProperty.call(globalThis,JEST_MATCHERS_OBJECT)){let matchers=Object.create(null),customEqualityTesters=[];Object.defineProperty(globalThis,JEST_MATCHERS_OBJECT,{configurable:!0,get:()=>({state:globalThis[MATCHERS_OBJECT].get(globalThis[GLOBAL_EXPECT]),matchers,customEqualityTesters})});}if(!Object.prototype.hasOwnProperty.call(globalThis,ASYMMETRIC_MATCHERS_OBJECT)){let assymetricMatchers=Object.create(null);Object.defineProperty(globalThis,ASYMMETRIC_MATCHERS_OBJECT,{get:()=>assymetricMatchers});}function getState(expect4){return globalThis[MATCHERS_OBJECT].get(expect4)}function setState(state,expect4){let map=globalThis[MATCHERS_OBJECT],current=map.get(expect4)||{};Object.assign(current,state),map.set(expect4,current);}var EXPECTED_COLOR=f2.green,RECEIVED_COLOR=f2.red,INVERTED_COLOR=f2.inverse,BOLD_WEIGHT=f2.bold,DIM_COLOR=f2.dim;function matcherHint(matcherName,received=\"received\",expected=\"expected\",options={}){let{comment=\"\",isDirectExpectCall=!1,isNot=!1,promise=\"\",secondArgument=\"\",expectedColor=EXPECTED_COLOR,receivedColor=RECEIVED_COLOR,secondArgumentColor=EXPECTED_COLOR}=options,hint=\"\",dimString=\"expect\";return !isDirectExpectCall&&received!==\"\"&&(hint+=DIM_COLOR(`${dimString}(`)+receivedColor(received),dimString=\")\"),promise!==\"\"&&(hint+=DIM_COLOR(`${dimString}.`)+promise,dimString=\"\"),isNot&&(hint+=`${DIM_COLOR(`${dimString}.`)}not`,dimString=\"\"),matcherName.includes(\".\")?dimString+=matcherName:(hint+=DIM_COLOR(`${dimString}.`)+matcherName,dimString=\"\"),expected===\"\"?dimString+=\"()\":(hint+=DIM_COLOR(`${dimString}(`)+expectedColor(expected),secondArgument&&(hint+=DIM_COLOR(\", \")+secondArgumentColor(secondArgument)),dimString=\")\"),comment!==\"\"&&(dimString+=` // ${comment}`),dimString!==\"\"&&(hint+=DIM_COLOR(dimString)),hint}var SPACE_SYMBOL2=\"\\xB7\";function replaceTrailingSpaces2(text){return text.replace(/\\s+$/gm,spaces=>SPACE_SYMBOL2.repeat(spaces.length))}function printReceived2(object){return RECEIVED_COLOR(replaceTrailingSpaces2(stringify(object)))}function printExpected2(value){return EXPECTED_COLOR(replaceTrailingSpaces2(stringify(value)))}function getMatcherUtils(){return {EXPECTED_COLOR,RECEIVED_COLOR,INVERTED_COLOR,BOLD_WEIGHT,DIM_COLOR,diff,matcherHint,printReceived:printReceived2,printExpected:printExpected2,printDiffOrStringify}}function getCustomEqualityTesters(){return globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters}function equals(a2,b,customTesters,strictCheck){return customTesters=customTesters||[],eq(a2,b,[],[],customTesters,strictCheck?hasKey:hasDefinedKey)}function isAsymmetric(obj){return !!obj&&typeof obj==\"object\"&&\"asymmetricMatch\"in obj&&isA(\"Function\",obj.asymmetricMatch)}function asymmetricMatch(a2,b){let asymmetricA=isAsymmetric(a2),asymmetricB=isAsymmetric(b);if(!(asymmetricA&&asymmetricB)){if(asymmetricA)return a2.asymmetricMatch(b);if(asymmetricB)return b.asymmetricMatch(a2)}}function eq(a2,b,aStack,bStack,customTesters,hasKey2){let result=!0,asymmetricResult=asymmetricMatch(a2,b);if(asymmetricResult!==void 0)return asymmetricResult;let testerContext={equals};for(let i=0;iObject.getOwnPropertyDescriptor(obj,symbol).enumerable))}function hasDefinedKey(obj,key){return hasKey(obj,key)&&obj[key]!==void 0}function hasKey(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)}function isA(typeName,value){return Object.prototype.toString.apply(value)===`[object ${typeName}]`}function isDomNode(obj){return obj!==null&&typeof obj==\"object\"&&\"nodeType\"in obj&&typeof obj.nodeType==\"number\"&&\"nodeName\"in obj&&typeof obj.nodeName==\"string\"&&\"isEqualNode\"in obj&&typeof obj.isEqualNode==\"function\"}var IS_KEYED_SENTINEL2=\"@@__IMMUTABLE_KEYED__@@\",IS_SET_SENTINEL2=\"@@__IMMUTABLE_SET__@@\",IS_LIST_SENTINEL2=\"@@__IMMUTABLE_LIST__@@\",IS_ORDERED_SENTINEL2=\"@@__IMMUTABLE_ORDERED__@@\",IS_RECORD_SYMBOL2=\"@@__IMMUTABLE_RECORD__@@\";function isImmutableUnorderedKeyed(maybeKeyed){return !!(maybeKeyed&&maybeKeyed[IS_KEYED_SENTINEL2]&&!maybeKeyed[IS_ORDERED_SENTINEL2])}function isImmutableUnorderedSet(maybeSet){return !!(maybeSet&&maybeSet[IS_SET_SENTINEL2]&&!maybeSet[IS_ORDERED_SENTINEL2])}function isObjectLiteral(source){return source!=null&&typeof source==\"object\"&&!Array.isArray(source)}function isImmutableList(source){return !!(source&&isObjectLiteral(source)&&source[IS_LIST_SENTINEL2])}function isImmutableOrderedKeyed(source){return !!(source&&isObjectLiteral(source)&&source[IS_KEYED_SENTINEL2]&&source[IS_ORDERED_SENTINEL2])}function isImmutableOrderedSet(source){return !!(source&&isObjectLiteral(source)&&source[IS_SET_SENTINEL2]&&source[IS_ORDERED_SENTINEL2])}function isImmutableRecord(source){return !!(source&&isObjectLiteral(source)&&source[IS_RECORD_SYMBOL2])}var IteratorSymbol=Symbol.iterator;function hasIterator(object){return !!(object!=null&&object[IteratorSymbol])}function iterableEquality(a2,b,customTesters=[],aStack=[],bStack=[]){if(typeof a2!=\"object\"||typeof b!=\"object\"||Array.isArray(a2)||Array.isArray(b)||!hasIterator(a2)||!hasIterator(b))return;if(a2.constructor!==b.constructor)return !1;let length=aStack.length;for(;length--;)if(aStack[length]===a2)return bStack[length]===b;aStack.push(a2),bStack.push(b);let filteredCustomTesters=[...customTesters.filter(t=>t!==iterableEquality),iterableEqualityWithStack];function iterableEqualityWithStack(a22,b2){return iterableEquality(a22,b2,[...customTesters],[...aStack],[...bStack])}if(a2.size!==void 0){if(a2.size!==b.size)return !1;if(isA(\"Set\",a2)||isImmutableUnorderedSet(a2)){let allFound=!0;for(let aValue of a2)if(!b.has(aValue)){let has=!1;for(let bValue of b)equals(aValue,bValue,filteredCustomTesters)===!0&&(has=!0);if(has===!1){allFound=!1;break}}return aStack.pop(),bStack.pop(),allFound}else if(isA(\"Map\",a2)||isImmutableUnorderedKeyed(a2)){let allFound=!0;for(let aEntry of a2)if(!b.has(aEntry[0])||!equals(aEntry[1],b.get(aEntry[0]),filteredCustomTesters)){let has=!1;for(let bEntry of b){let matchedKey=equals(aEntry[0],bEntry[0],filteredCustomTesters),matchedValue=!1;matchedKey===!0&&(matchedValue=equals(aEntry[1],bEntry[1],filteredCustomTesters)),matchedValue===!0&&(has=!0);}if(has===!1){allFound=!1;break}}return aStack.pop(),bStack.pop(),allFound}}let bIterator=b[IteratorSymbol]();for(let aValue of a2){let nextB=bIterator.next();if(nextB.done||!equals(aValue,nextB.value,filteredCustomTesters))return !1}if(!bIterator.next().done)return !1;if(!isImmutableList(a2)&&!isImmutableOrderedKeyed(a2)&&!isImmutableOrderedSet(a2)&&!isImmutableRecord(a2)){let aEntries=Object.entries(a2),bEntries=Object.entries(b);if(!equals(aEntries,bEntries))return !1}return aStack.pop(),bStack.pop(),!0}function hasPropertyInObject(object,key){return !object||typeof object!=\"object\"||object===Object.prototype?!1:Object.prototype.hasOwnProperty.call(object,key)||hasPropertyInObject(Object.getPrototypeOf(object),key)}function isObjectWithKeys(a2){return isObject(a2)&&!(a2 instanceof Error)&&!Array.isArray(a2)&&!(a2 instanceof Date)}function subsetEquality(object,subset,customTesters=[]){let filteredCustomTesters=customTesters.filter(t=>t!==subsetEquality),subsetEqualityWithContext=(seenReferences=new WeakMap)=>(object2,subset2)=>{if(isObjectWithKeys(subset2))return Object.keys(subset2).every(key=>{if(subset2[key]!=null&&typeof subset2[key]==\"object\"){if(seenReferences.has(subset2[key]))return equals(object2[key],subset2[key],filteredCustomTesters);seenReferences.set(subset2[key],!0);}let result=object2!=null&&hasPropertyInObject(object2,key)&&equals(object2[key],subset2[key],[...filteredCustomTesters,subsetEqualityWithContext(seenReferences)]);return seenReferences.delete(subset2[key]),result})};return subsetEqualityWithContext()(object,subset)}function typeEquality(a2,b){if(!(a2==null||b==null||a2.constructor===b.constructor))return !1}function arrayBufferEquality(a2,b){let dataViewA=a2,dataViewB=b;if(!(a2 instanceof DataView&&b instanceof DataView)){if(!(a2 instanceof ArrayBuffer)||!(b instanceof ArrayBuffer))return;try{dataViewA=new DataView(a2),dataViewB=new DataView(b);}catch{return}}if(dataViewA.byteLength!==dataViewB.byteLength)return !1;for(let i=0;it!==sparseArrayEquality);return equals(a2,b,filteredCustomTesters,!0)&&equals(aKeys,bKeys)}function generateToBeMessage(deepEqualityName,expected=\"#{this}\",actual=\"#{exp}\"){let toBeMessage=`expected ${expected} to be ${actual} // Object.is equality`;return [\"toStrictEqual\",\"toEqual\"].includes(deepEqualityName)?`${toBeMessage}\n\nIf it should pass with deep equality, replace \"toBe\" with \"${deepEqualityName}\"\n\nExpected: ${expected}\nReceived: serializes to the same string\n`:toBeMessage}function pluralize(word,count){return `${count} ${word}${count===1?\"\":\"s\"}`}function getObjectKeys(object){return [...Object.keys(object),...Object.getOwnPropertySymbols(object).filter(s=>{var _a2;return (_a2=Object.getOwnPropertyDescriptor(object,s))==null?void 0:_a2.enumerable})]}function getObjectSubset(object,subset,customTesters=[]){let stripped=0,getObjectSubsetWithContext=(seenReferences=new WeakMap)=>(object2,subset2)=>{if(Array.isArray(object2)){if(Array.isArray(subset2)&&subset2.length===object2.length)return subset2.map((sub,i)=>getObjectSubsetWithContext(seenReferences)(object2[i],sub))}else {if(object2 instanceof Date)return object2;if(isObject(object2)&&isObject(subset2)){if(equals(object2,subset2,[...customTesters,iterableEquality,subsetEquality]))return subset2;let trimmed={};seenReferences.set(object2,trimmed);for(let key of getObjectKeys(object2))hasPropertyInObject(subset2,key)?trimmed[key]=seenReferences.has(object2[key])?seenReferences.get(object2[key]):getObjectSubsetWithContext(seenReferences)(object2[key],subset2[key]):seenReferences.has(object2[key])||(stripped+=1,isObject(object2[key])&&(stripped+=getObjectKeys(object2[key]).length),getObjectSubsetWithContext(seenReferences)(object2[key],subset2[key]));if(getObjectKeys(trimmed).length>0)return trimmed}}return object2};return {subset:getObjectSubsetWithContext()(object,subset),stripped}}var AsymmetricMatcher3=class{constructor(sample,inverse=!1){this.sample=sample,this.inverse=inverse;}$$typeof=Symbol.for(\"jest.asymmetricMatcher\");getMatcherContext(expect4){return {...getState(expect4||globalThis[GLOBAL_EXPECT]),equals,isNot:this.inverse,customTesters:getCustomEqualityTesters(),utils:{...getMatcherUtils(),diff,stringify,iterableEquality,subsetEquality}}}[Symbol.for(\"chai/inspect\")](options){let result=stringify(this,options.depth,{min:!0});return result.length<=options.truncate?result:`${this.toString()}{\\u2026}`}},StringContaining=class extends AsymmetricMatcher3{constructor(sample,inverse=!1){if(!isA(\"String\",sample))throw new Error(\"Expected is not a string\");super(sample,inverse);}asymmetricMatch(other){let result=isA(\"String\",other)&&other.includes(this.sample);return this.inverse?!result:result}toString(){return `String${this.inverse?\"Not\":\"\"}Containing`}getExpectedType(){return \"string\"}},Anything=class extends AsymmetricMatcher3{asymmetricMatch(other){return other!=null}toString(){return \"Anything\"}toAsymmetricMatcher(){return \"Anything\"}},ObjectContaining=class extends AsymmetricMatcher3{constructor(sample,inverse=!1){super(sample,inverse);}getPrototype(obj){return Object.getPrototypeOf?Object.getPrototypeOf(obj):obj.constructor.prototype===obj?null:obj.constructor.prototype}hasProperty(obj,property){return obj?Object.prototype.hasOwnProperty.call(obj,property)?!0:this.hasProperty(this.getPrototype(obj),property):!1}asymmetricMatch(other){if(typeof this.sample!=\"object\")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let result=!0,matcherContext=this.getMatcherContext();for(let property in this.sample)if(!this.hasProperty(other,property)||!equals(this.sample[property],other[property],matcherContext.customTesters)){result=!1;break}return this.inverse?!result:result}toString(){return `Object${this.inverse?\"Not\":\"\"}Containing`}getExpectedType(){return \"object\"}},ArrayContaining=class extends AsymmetricMatcher3{constructor(sample,inverse=!1){super(sample,inverse);}asymmetricMatch(other){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let matcherContext=this.getMatcherContext(),result=this.sample.length===0||Array.isArray(other)&&this.sample.every(item=>other.some(another=>equals(item,another,matcherContext.customTesters)));return this.inverse?!result:result}toString(){return `Array${this.inverse?\"Not\":\"\"}Containing`}getExpectedType(){return \"array\"}},Any=class extends AsymmetricMatcher3{constructor(sample){if(typeof sample>\"u\")throw new TypeError(\"any() expects to be passed a constructor function. Please pass one or use anything() to match any object.\");super(sample);}fnNameFor(func){if(func.name)return func.name;let matches3=Function.prototype.toString.call(func).match(/^(?:async)?\\s*function\\s*(?:\\*\\s*)?([\\w$]+)\\s*\\(/);return matches3?matches3[1]:\"\"}asymmetricMatch(other){return this.sample===String?typeof other==\"string\"||other instanceof String:this.sample===Number?typeof other==\"number\"||other instanceof Number:this.sample===Function?typeof other==\"function\"||other instanceof Function:this.sample===Boolean?typeof other==\"boolean\"||other instanceof Boolean:this.sample===BigInt?typeof other==\"bigint\"||other instanceof BigInt:this.sample===Symbol?typeof other==\"symbol\"||other instanceof Symbol:this.sample===Object?typeof other==\"object\":other instanceof this.sample}toString(){return \"Any\"}getExpectedType(){return this.sample===String?\"string\":this.sample===Number?\"number\":this.sample===Function?\"function\":this.sample===Object?\"object\":this.sample===Boolean?\"boolean\":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return `Any<${this.fnNameFor(this.sample)}>`}},StringMatching=class extends AsymmetricMatcher3{constructor(sample,inverse=!1){if(!isA(\"String\",sample)&&!isA(\"RegExp\",sample))throw new Error(\"Expected is not a String or a RegExp\");super(new RegExp(sample),inverse);}asymmetricMatch(other){let result=isA(\"String\",other)&&this.sample.test(other);return this.inverse?!result:result}toString(){return `String${this.inverse?\"Not\":\"\"}Matching`}getExpectedType(){return \"string\"}},CloseTo=class extends AsymmetricMatcher3{precision;constructor(sample,precision=2,inverse=!1){if(!isA(\"Number\",sample))throw new Error(\"Expected is not a Number\");if(!isA(\"Number\",precision))throw new Error(\"Precision is not a Number\");super(sample),this.inverse=inverse,this.precision=precision;}asymmetricMatch(other){if(!isA(\"Number\",other))return !1;let result=!1;return other===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||other===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?result=!0:result=Math.abs(this.sample-other)<10**-this.precision/2,this.inverse?!result:result}toString(){return `Number${this.inverse?\"Not\":\"\"}CloseTo`}getExpectedType(){return \"number\"}toAsymmetricMatcher(){return [this.toString(),this.sample,`(${pluralize(\"digit\",this.precision)})`].join(\" \")}},JestAsymmetricMatchers=(chai,utils)=>{utils.addMethod(chai.expect,\"anything\",()=>new Anything),utils.addMethod(chai.expect,\"any\",expected=>new Any(expected)),utils.addMethod(chai.expect,\"stringContaining\",expected=>new StringContaining(expected)),utils.addMethod(chai.expect,\"objectContaining\",expected=>new ObjectContaining(expected)),utils.addMethod(chai.expect,\"arrayContaining\",expected=>new ArrayContaining(expected)),utils.addMethod(chai.expect,\"stringMatching\",expected=>new StringMatching(expected)),utils.addMethod(chai.expect,\"closeTo\",(expected,precision)=>new CloseTo(expected,precision)),chai.expect.not={stringContaining:expected=>new StringContaining(expected,!0),objectContaining:expected=>new ObjectContaining(expected,!0),arrayContaining:expected=>new ArrayContaining(expected,!0),stringMatching:expected=>new StringMatching(expected,!0),closeTo:(expected,precision)=>new CloseTo(expected,precision,!0)};};function recordAsyncExpect(test3,promise){return test3&&promise instanceof Promise&&(promise=promise.finally(()=>{let index=test3.promises.indexOf(promise);index!==-1&&test3.promises.splice(index,1);}),test3.promises||(test3.promises=[]),test3.promises.push(promise)),promise}function wrapSoft(utils,fn3){return function(...args){var _a2;if(!utils.flag(this,\"soft\"))return fn3.apply(this,args);let test3=utils.flag(this,\"vitest-test\");if(!test3)throw new Error(\"expect.soft() can only be used inside a test\");try{return fn3.apply(this,args)}catch(err){test3.result||(test3.result={state:\"fail\"}),test3.result.state=\"fail\",(_a2=test3.result).errors||(_a2.errors=[]),test3.result.errors.push(processError(err));}}}var JestChaiExpect=(chai,utils)=>{let{AssertionError:AssertionError2}=chai,customTesters=getCustomEqualityTesters();function def(name,fn3){let addMethod2=n=>{let softWrapper=wrapSoft(utils,fn3);utils.addMethod(chai.Assertion.prototype,n,softWrapper),utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers,n,softWrapper);};Array.isArray(name)?name.forEach(n=>addMethod2(n)):addMethod2(name);}[\"throw\",\"throws\",\"Throw\"].forEach(m2=>{utils.overwriteMethod(chai.Assertion.prototype,m2,_super=>function(...args){let promise=utils.flag(this,\"promise\"),object=utils.flag(this,\"object\"),isNot=utils.flag(this,\"negate\");if(promise===\"rejects\")utils.flag(this,\"object\",()=>{throw object});else if(promise===\"resolves\"&&typeof object!=\"function\"){if(isNot)return;{let message=utils.flag(this,\"message\")||\"expected promise to throw an error, but it didn't\",error={showDiff:!1};throw new AssertionError2(message,error,utils.flag(this,\"ssfi\"))}}_super.apply(this,args);});}),def(\"withTest\",function(test3){return utils.flag(this,\"vitest-test\",test3),this}),def(\"toEqual\",function(expected){let actual=utils.flag(this,\"object\"),equal=equals(actual,expected,[...customTesters,iterableEquality]);return this.assert(equal,\"expected #{this} to deeply equal #{exp}\",\"expected #{this} to not deeply equal #{exp}\",expected,actual)}),def(\"toStrictEqual\",function(expected){let obj=utils.flag(this,\"object\"),equal=equals(obj,expected,[...customTesters,iterableEquality,typeEquality,sparseArrayEquality,arrayBufferEquality],!0);return this.assert(equal,\"expected #{this} to strictly equal #{exp}\",\"expected #{this} to not strictly equal #{exp}\",expected,obj)}),def(\"toBe\",function(expected){let actual=this._obj,pass=Object.is(actual,expected),deepEqualityName=\"\";return pass||(equals(actual,expected,[...customTesters,iterableEquality,typeEquality,sparseArrayEquality,arrayBufferEquality],!0)?deepEqualityName=\"toStrictEqual\":equals(actual,expected,[...customTesters,iterableEquality])&&(deepEqualityName=\"toEqual\")),this.assert(pass,generateToBeMessage(deepEqualityName),\"expected #{this} not to be #{exp} // Object.is equality\",expected,actual)}),def(\"toMatchObject\",function(expected){let actual=this._obj,pass=equals(actual,expected,[...customTesters,iterableEquality,subsetEquality]),isNot=utils.flag(this,\"negate\"),{subset:actualSubset,stripped}=getObjectSubset(actual,expected);if(pass&&isNot||!pass&&!isNot){let msg=utils.getMessage(this,[pass,\"expected #{this} to match object #{exp}\",\"expected #{this} to not match object #{exp}\",expected,actualSubset,!1]),message=stripped===0?msg:`${msg}\n(${stripped} matching ${stripped===1?\"property\":\"properties\"} omitted from actual)`;throw new AssertionError2(message,{showDiff:!0,expected,actual:actualSubset})}}),def(\"toMatch\",function(expected){let actual=this._obj;if(typeof actual!=\"string\")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof actual}`);return this.assert(typeof expected==\"string\"?actual.includes(expected):actual.match(expected),\"expected #{this} to match #{exp}\",\"expected #{this} not to match #{exp}\",expected,actual)}),def(\"toContain\",function(item){let actual=this._obj;if(typeof Node<\"u\"&&actual instanceof Node){if(!(item instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof item}`);return this.assert(actual.contains(item),\"expected #{this} to contain element #{exp}\",\"expected #{this} not to contain element #{exp}\",item,actual)}if(typeof DOMTokenList<\"u\"&&actual instanceof DOMTokenList){assertTypes(item,\"class name\",[\"string\"]);let expectedClassList=utils.flag(this,\"negate\")?actual.value.replace(item,\"\").trim():`${actual.value} ${item}`;return this.assert(actual.contains(item),`expected \"${actual.value}\" to contain \"${item}\"`,`expected \"${actual.value}\" not to contain \"${item}\"`,expectedClassList,actual.value)}return typeof actual==\"string\"&&typeof item==\"string\"?this.assert(actual.includes(item),\"expected #{this} to contain #{exp}\",\"expected #{this} not to contain #{exp}\",item,actual):(actual!=null&&typeof actual!=\"string\"&&utils.flag(this,\"object\",Array.from(actual)),this.contain(item))}),def(\"toContainEqual\",function(expected){let obj=utils.flag(this,\"object\"),index=Array.from(obj).findIndex(item=>equals(item,expected,customTesters));this.assert(index!==-1,\"expected #{this} to deep equally contain #{exp}\",\"expected #{this} to not deep equally contain #{exp}\",expected);}),def(\"toBeTruthy\",function(){let obj=utils.flag(this,\"object\");this.assert(!!obj,\"expected #{this} to be truthy\",\"expected #{this} to not be truthy\",obj,!1);}),def(\"toBeFalsy\",function(){let obj=utils.flag(this,\"object\");this.assert(!obj,\"expected #{this} to be falsy\",\"expected #{this} to not be falsy\",obj,!1);}),def(\"toBeGreaterThan\",function(expected){let actual=this._obj;return assertTypes(actual,\"actual\",[\"number\",\"bigint\"]),assertTypes(expected,\"expected\",[\"number\",\"bigint\"]),this.assert(actual>expected,`expected ${actual} to be greater than ${expected}`,`expected ${actual} to be not greater than ${expected}`,actual,expected,!1)}),def(\"toBeGreaterThanOrEqual\",function(expected){let actual=this._obj;return assertTypes(actual,\"actual\",[\"number\",\"bigint\"]),assertTypes(expected,\"expected\",[\"number\",\"bigint\"]),this.assert(actual>=expected,`expected ${actual} to be greater than or equal to ${expected}`,`expected ${actual} to be not greater than or equal to ${expected}`,actual,expected,!1)}),def(\"toBeLessThan\",function(expected){let actual=this._obj;return assertTypes(actual,\"actual\",[\"number\",\"bigint\"]),assertTypes(expected,\"expected\",[\"number\",\"bigint\"]),this.assert(actualString(key).replace(/([.[\\]])/g,\"\\\\$1\")).join(\".\"));let actual=this._obj,[propertyName,expected]=args,getValue=()=>Object.prototype.hasOwnProperty.call(actual,propertyName)?{value:actual[propertyName],exists:!0}:utils.getPathInfo(actual,propertyName),{value,exists}=getValue(),pass=exists&&(args.length===1||equals(expected,value,customTesters)),valueString=args.length===1?\"\":` with value ${utils.objDisplay(expected)}`;return this.assert(pass,`expected #{this} to have property \"${propertyName}\"${valueString}`,`expected #{this} to not have property \"${propertyName}\"${valueString}`,expected,exists?value:void 0)}),def(\"toBeCloseTo\",function(received,precision=2){let expected=this._obj,pass=!1,expectedDiff2=0,receivedDiff=0;return received===Number.POSITIVE_INFINITY&&expected===Number.POSITIVE_INFINITY||received===Number.NEGATIVE_INFINITY&&expected===Number.NEGATIVE_INFINITY?pass=!0:(expectedDiff2=10**-precision/2,receivedDiff=Math.abs(expected-received),pass=receivedDiff{if(!isMockFunction(assertion._obj))throw new TypeError(`${utils.inspect(assertion._obj)} is not a spy or a call to a spy!`)},getSpy=assertion=>(assertIsMock(assertion),assertion._obj),ordinalOf=i=>{let j=i%10,k2=i%100;return j===1&&k2!==11?`${i}st`:j===2&&k2!==12?`${i}nd`:j===3&&k2!==13?`${i}rd`:`${i}th`},formatCalls=(spy,msg,showActualCall)=>(spy.mock.calls&&(msg+=f2.gray(`\n\nReceived: \n\n${spy.mock.calls.map((callArg,i)=>{let methodCall=f2.bold(` ${ordinalOf(i+1)} ${spy.getMockName()} call:\n\n`);return showActualCall?methodCall+=diff(showActualCall,callArg,{omitAnnotationLines:!0}):methodCall+=stringify(callArg).split(`\n`).map(line=>` ${line}`).join(`\n`),methodCall+=`\n`,methodCall}).join(`\n`)}`)),msg+=f2.gray(`\n\nNumber of calls: ${f2.bold(spy.mock.calls.length)}\n`),msg),formatReturns=(spy,results,msg,showActualReturn)=>(msg+=f2.gray(`\n\nReceived: \n\n${results.map((callReturn,i)=>{let methodCall=f2.bold(` ${ordinalOf(i+1)} ${spy.getMockName()} call return:\n\n`);return showActualReturn?methodCall+=diff(showActualReturn,callReturn.value,{omitAnnotationLines:!0}):methodCall+=stringify(callReturn).split(`\n`).map(line=>` ${line}`).join(`\n`),methodCall+=`\n`,methodCall}).join(`\n`)}`),msg+=f2.gray(`\n\nNumber of calls: ${f2.bold(spy.mock.calls.length)}\n`),msg);def([\"toHaveBeenCalledTimes\",\"toBeCalledTimes\"],function(number){let spy=getSpy(this),spyName=spy.getMockName(),callCount=spy.mock.calls.length;return this.assert(callCount===number,`expected \"${spyName}\" to be called #{exp} times, but got ${callCount} times`,`expected \"${spyName}\" to not be called #{exp} times`,number,callCount,!1)}),def(\"toHaveBeenCalledOnce\",function(){let spy=getSpy(this),spyName=spy.getMockName(),callCount=spy.mock.calls.length;return this.assert(callCount===1,`expected \"${spyName}\" to be called once, but got ${callCount} times`,`expected \"${spyName}\" to not be called once`,1,callCount,!1)}),def([\"toHaveBeenCalled\",\"toBeCalled\"],function(){let spy=getSpy(this),spyName=spy.getMockName(),callCount=spy.mock.calls.length,called=callCount>0,isNot=utils.flag(this,\"negate\"),msg=utils.getMessage(this,[called,`expected \"${spyName}\" to be called at least once`,`expected \"${spyName}\" to not be called at all, but actually been called ${callCount} times`,!0,called]);if(called&&isNot&&(msg=formatCalls(spy,msg)),called&&isNot||!called&&!isNot)throw new AssertionError2(msg)}),def([\"toHaveBeenCalledWith\",\"toBeCalledWith\"],function(...args){let spy=getSpy(this),spyName=spy.getMockName(),pass=spy.mock.calls.some(callArg=>equals(callArg,args,[...customTesters,iterableEquality])),isNot=utils.flag(this,\"negate\"),msg=utils.getMessage(this,[pass,`expected \"${spyName}\" to be called with arguments: #{exp}`,`expected \"${spyName}\" to not be called with arguments: #{exp}`,args]);if(pass&&isNot||!pass&&!isNot)throw new AssertionError2(formatCalls(spy,msg,args))}),def([\"toHaveBeenNthCalledWith\",\"nthCalledWith\"],function(times,...args){let spy=getSpy(this),spyName=spy.getMockName(),nthCall=spy.mock.calls[times-1],callCount=spy.mock.calls.length,isCalled=times<=callCount;this.assert(equals(nthCall,args,[...customTesters,iterableEquality]),`expected ${ordinalOf(times)} \"${spyName}\" call to have been called with #{exp}${isCalled?\"\":`, but called only ${callCount} times`}`,`expected ${ordinalOf(times)} \"${spyName}\" call to not have been called with #{exp}`,args,nthCall,isCalled);}),def([\"toHaveBeenLastCalledWith\",\"lastCalledWith\"],function(...args){let spy=getSpy(this),spyName=spy.getMockName(),lastCall=spy.mock.calls[spy.mock.calls.length-1];this.assert(equals(lastCall,args,[...customTesters,iterableEquality]),`expected last \"${spyName}\" call to have been called with #{exp}`,`expected last \"${spyName}\" call to not have been called with #{exp}`,args,lastCall);}),def([\"toThrow\",\"toThrowError\"],function(expected){if(typeof expected==\"string\"||typeof expected>\"u\"||expected instanceof RegExp)return this.throws(expected);let obj=this._obj,promise=utils.flag(this,\"promise\"),isNot=utils.flag(this,\"negate\"),thrown=null;if(promise===\"rejects\")thrown=obj;else if(promise===\"resolves\"&&typeof obj!=\"function\"){if(isNot)return;{let message=utils.flag(this,\"message\")||\"expected promise to throw an error, but it didn't\",error={showDiff:!1};throw new AssertionError2(message,error,utils.flag(this,\"ssfi\"))}}else {let isThrow=!1;try{obj();}catch(err){isThrow=!0,thrown=err;}if(!isThrow&&!isNot){let message=utils.flag(this,\"message\")||\"expected function to throw an error, but it didn't\",error={showDiff:!1};throw new AssertionError2(message,error,utils.flag(this,\"ssfi\"))}}if(typeof expected==\"function\"){let name=expected.name||expected.prototype.constructor.name;return this.assert(thrown&&thrown instanceof expected,`expected error to be instance of ${name}`,`expected error not to be instance of ${name}`,expected,thrown)}if(expected instanceof Error)return this.assert(thrown&&expected.message===thrown.message,`expected error to have message: ${expected.message}`,`expected error not to have message: ${expected.message}`,expected.message,thrown&&thrown.message);if(typeof expected==\"object\"&&\"asymmetricMatch\"in expected&&typeof expected.asymmetricMatch==\"function\"){let matcher=expected;return this.assert(thrown&&matcher.asymmetricMatch(thrown),\"expected error to match asymmetric matcher\",\"expected error not to match asymmetric matcher\",matcher,thrown)}throw new Error(`\"toThrow\" expects string, RegExp, function, Error instance or asymmetric matcher, got \"${typeof expected}\"`)}),[{name:\"toHaveResolved\",condition:spy=>spy.mock.settledResults.length>0&&spy.mock.settledResults.some(({type:type5})=>type5===\"fulfilled\"),action:\"resolved\"},{name:[\"toHaveReturned\",\"toReturn\"],condition:spy=>spy.mock.calls.length>0&&spy.mock.results.some(({type:type5})=>type5!==\"throw\"),action:\"called\"}].forEach(({name,condition,action})=>{def(name,function(){let spy=getSpy(this),spyName=spy.getMockName(),pass=condition(spy);this.assert(pass,`expected \"${spyName}\" to be successfully ${action} at least once`,`expected \"${spyName}\" to not be successfully ${action}`,pass,!pass,!1);});}),[{name:\"toHaveResolvedTimes\",condition:(spy,times)=>spy.mock.settledResults.reduce((s,{type:type5})=>type5===\"fulfilled\"?++s:s,0)===times,action:\"resolved\"},{name:[\"toHaveReturnedTimes\",\"toReturnTimes\"],condition:(spy,times)=>spy.mock.results.reduce((s,{type:type5})=>type5===\"throw\"?s:++s,0)===times,action:\"called\"}].forEach(({name,condition,action})=>{def(name,function(times){let spy=getSpy(this),spyName=spy.getMockName(),pass=condition(spy,times);this.assert(pass,`expected \"${spyName}\" to be successfully ${action} ${times} times`,`expected \"${spyName}\" to not be successfully ${action} ${times} times`,`expected resolved times: ${times}`,`received resolved times: ${pass}`,!1);});}),[{name:\"toHaveResolvedWith\",condition:(spy,value)=>spy.mock.settledResults.some(({type:type5,value:result})=>type5===\"fulfilled\"&&equals(value,result)),action:\"resolve\"},{name:[\"toHaveReturnedWith\",\"toReturnWith\"],condition:(spy,value)=>spy.mock.results.some(({type:type5,value:result})=>type5===\"return\"&&equals(value,result)),action:\"return\"}].forEach(({name,condition,action})=>{def(name,function(value){let spy=getSpy(this),pass=condition(spy,value),isNot=utils.flag(this,\"negate\");if(pass&&isNot||!pass&&!isNot){let spyName=spy.getMockName(),msg=utils.getMessage(this,[pass,`expected \"${spyName}\" to ${action} with: #{exp} at least once`,`expected \"${spyName}\" to not ${action} with: #{exp}`,value]),results=action===\"return\"?spy.mock.results:spy.mock.settledResults;throw new AssertionError2(formatReturns(spy,results,msg,value))}});}),[{name:\"toHaveLastResolvedWith\",condition:(spy,value)=>{let result=spy.mock.settledResults[spy.mock.settledResults.length-1];return result&&result.type===\"fulfilled\"&&equals(result.value,value)},action:\"resolve\"},{name:[\"toHaveLastReturnedWith\",\"lastReturnedWith\"],condition:(spy,value)=>{let result=spy.mock.results[spy.mock.results.length-1];return result&&result.type===\"return\"&&equals(result.value,value)},action:\"return\"}].forEach(({name,condition,action})=>{def(name,function(value){let spy=getSpy(this),results=action===\"return\"?spy.mock.results:spy.mock.settledResults,result=results[results.length-1],spyName=spy.getMockName();this.assert(condition(spy,value),`expected last \"${spyName}\" call to ${action} #{exp}`,`expected last \"${spyName}\" call to not ${action} #{exp}`,value,result?.value);});}),[{name:\"toHaveNthResolvedWith\",condition:(spy,index,value)=>{let result=spy.mock.settledResults[index-1];return result&&result.type===\"fulfilled\"&&equals(result.value,value)},action:\"resolve\"},{name:[\"toHaveNthReturnedWith\",\"nthReturnedWith\"],condition:(spy,index,value)=>{let result=spy.mock.results[index-1];return result&&result.type===\"return\"&&equals(result.value,value)},action:\"return\"}].forEach(({name,condition,action})=>{def(name,function(nthCall,value){let spy=getSpy(this),spyName=spy.getMockName(),result=(action===\"return\"?spy.mock.results:spy.mock.settledResults)[nthCall-1],ordinalCall=`${ordinalOf(nthCall)} call`;this.assert(condition(spy,nthCall,value),`expected ${ordinalCall} \"${spyName}\" call to ${action} #{exp}`,`expected ${ordinalCall} \"${spyName}\" call to not ${action} #{exp}`,value,result?.value);});}),def(\"toSatisfy\",function(matcher,message){return this.be.satisfy(matcher,message)}),def(\"withContext\",function(context){for(let key in context)utils.flag(this,key,context[key]);return this}),utils.addProperty(chai.Assertion.prototype,\"resolves\",function(){let error=new Error(\"resolves\");utils.flag(this,\"promise\",\"resolves\"),utils.flag(this,\"error\",error);let test3=utils.flag(this,\"vitest-test\"),obj=utils.flag(this,\"object\");if(utils.flag(this,\"poll\"))throw new SyntaxError(\"expect.poll() is not supported in combination with .resolves\");if(typeof obj?.then!=\"function\")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof obj}'.`);let proxy=new Proxy(this,{get:(target,key,receiver)=>{let result=Reflect.get(target,key,receiver);return typeof result!=\"function\"?result instanceof chai.Assertion?proxy:result:async(...args)=>{let promise=obj.then(value=>(utils.flag(this,\"object\",value),result.call(this,...args)),err=>{let _error=new AssertionError2(`promise rejected \"${utils.inspect(err)}\" instead of resolving`,{showDiff:!1});throw _error.cause=err,_error.stack=error.stack.replace(error.message,_error.message),_error});return recordAsyncExpect(test3,promise)}}});return proxy}),utils.addProperty(chai.Assertion.prototype,\"rejects\",function(){let error=new Error(\"rejects\");utils.flag(this,\"promise\",\"rejects\"),utils.flag(this,\"error\",error);let test3=utils.flag(this,\"vitest-test\"),obj=utils.flag(this,\"object\"),wrapper=typeof obj==\"function\"?obj():obj;if(utils.flag(this,\"poll\"))throw new SyntaxError(\"expect.poll() is not supported in combination with .rejects\");if(typeof wrapper?.then!=\"function\")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof wrapper}'.`);let proxy=new Proxy(this,{get:(target,key,receiver)=>{let result=Reflect.get(target,key,receiver);return typeof result!=\"function\"?result instanceof chai.Assertion?proxy:result:async(...args)=>{let promise=wrapper.then(value=>{let _error=new AssertionError2(`promise resolved \"${utils.inspect(value)}\" instead of rejecting`,{showDiff:!0,expected:new Error(\"rejected promise\"),actual:value});throw _error.stack=error.stack.replace(error.message,_error.message),_error},err=>(utils.flag(this,\"object\",err),result.call(this,...args)));return recordAsyncExpect(test3,promise)}}});return proxy});};function getMatcherState(assertion,expect4){let obj=assertion._obj,isNot=utils_exports.flag(assertion,\"negate\"),promise=utils_exports.flag(assertion,\"promise\")||\"\",jestUtils={...getMatcherUtils(),diff,stringify,iterableEquality,subsetEquality};return {state:{...getState(expect4),customTesters:getCustomEqualityTesters(),isNot,utils:jestUtils,promise,equals,suppressedErrors:[],soft:utils_exports.flag(assertion,\"soft\"),poll:utils_exports.flag(assertion,\"poll\")},isNot,obj}}var JestExtendError=class extends Error{constructor(message,actual,expected){super(message),this.actual=actual,this.expected=expected;}};function JestExtendPlugin(c,expect4,matchers){return (_,utils)=>{Object.entries(matchers).forEach(([expectAssertionName,expectAssertion])=>{function expectWrapper(...args){let{state,isNot,obj}=getMatcherState(this,expect4),result=expectAssertion.call(state,obj,...args);if(result&&typeof result==\"object\"&&result instanceof Promise)return result.then(({pass:pass2,message:message2,actual:actual2,expected:expected2})=>{if(pass2&&isNot||!pass2&&!isNot)throw new JestExtendError(message2(),actual2,expected2)});let{pass,message,actual,expected}=result;if(pass&&isNot||!pass&&!isNot)throw new JestExtendError(message(),actual,expected)}let softWrapper=wrapSoft(utils,expectWrapper);utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers,expectAssertionName,softWrapper),utils.addMethod(c.Assertion.prototype,expectAssertionName,softWrapper);class CustomMatcher extends AsymmetricMatcher3{constructor(inverse=!1,...sample){super(sample,inverse);}asymmetricMatch(other){let{pass}=expectAssertion.call(this.getMatcherContext(expect4),other,...this.sample);return this.inverse?!pass:pass}toString(){return `${this.inverse?\"not.\":\"\"}${expectAssertionName}`}getExpectedType(){return \"any\"}toAsymmetricMatcher(){return `${this.toString()}<${this.sample.map(String).join(\", \")}>`}}let customMatcher=(...sample)=>new CustomMatcher(!1,...sample);Object.defineProperty(expect4,expectAssertionName,{configurable:!0,enumerable:!0,value:customMatcher,writable:!0}),Object.defineProperty(expect4.not,expectAssertionName,{configurable:!0,enumerable:!0,value:(...sample)=>new CustomMatcher(!0,...sample),writable:!0}),Object.defineProperty(globalThis[ASYMMETRIC_MATCHERS_OBJECT],expectAssertionName,{configurable:!0,enumerable:!0,value:customMatcher,writable:!0});});}}var JestExtend=(chai,utils)=>{utils.addMethod(chai.expect,\"extend\",(expect4,expects)=>{use(JestExtendPlugin(chai,expect4,expects));});};function createExpect(){use(JestExtend),use(JestChaiExpect),use(JestAsymmetricMatchers);let expect4=(value,message)=>{let{assertionCalls}=getState(expect4);return setState({assertionCalls:assertionCalls+1,soft:!1},expect4),expect(value,message)};Object.assign(expect4,expect),expect4.getState=()=>getState(expect4),expect4.setState=state=>setState(state,expect4),expect4.extend=expects=>expect.extend(expect4,expects),expect4.soft=(...args)=>{let assert2=expect4(...args);return expect4.setState({soft:!0}),assert2},expect4.unreachable=message=>{assert.fail(`expected${message?` \"${message}\" `:\" \"}not to be reached`);};function assertions(expected){let errorGen=()=>new Error(`expected number of assertions to be ${expected}, but got ${expect4.getState().assertionCalls}`);\"captureStackTrace\"in Error&&typeof Error.captureStackTrace==\"function\"&&Error.captureStackTrace(errorGen(),assertions),expect4.setState({expectedAssertionsNumber:expected,expectedAssertionsNumberErrorGen:errorGen});}function hasAssertions(){let error=new Error(\"expected any number of assertion, but got none\");\"captureStackTrace\"in Error&&typeof Error.captureStackTrace==\"function\"&&Error.captureStackTrace(error,hasAssertions),expect4.setState({isExpectingAssertions:!0,isExpectingAssertionsError:error});}return setState({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},expect4),utils_exports.addMethod(expect4,\"assertions\",assertions),utils_exports.addMethod(expect4,\"hasAssertions\",hasAssertions),expect4.extend(matchers_exports),expect4}var expect2=createExpect();Object.defineProperty(globalThis,GLOBAL_EXPECT,{value:expect2,writable:!0,configurable:!0});var listeners=new Set;function onMockCall(callback){return listeners.add(callback),()=>void listeners.delete(callback)}var spyOn2=(...args)=>{let mock=spyOn(...args);return reactiveMock(mock)};function fn2(implementation){let mock=implementation?fn(implementation):fn();return reactiveMock(mock)}function reactiveMock(mock){let reactive=listenWhenCalled(mock),originalMockImplementation=reactive.mockImplementation.bind(null);return reactive.mockImplementation=fn3=>listenWhenCalled(originalMockImplementation(fn3)),reactive}function listenWhenCalled(mock){let state=I(mock),impl=state.impl;return state.willCall(function(...args){return listeners.forEach(listener=>listener(mock,args)),impl?.apply(this,args)}),mock}function clearAllMocks(){mocks.forEach(spy=>spy.mockClear());}function resetAllMocks(){mocks.forEach(spy=>spy.mockReset());}function restoreAllMocks(){mocks.forEach(spy=>spy.mockRestore());}function mocked(item,_options={}){return item}var dom_esm_exports={};__export(dom_esm_exports,{buildQueries:()=>buildQueries,configure:()=>configure,createEvent:()=>createEvent,findAllByAltText:()=>findAllByAltText,findAllByDisplayValue:()=>findAllByDisplayValue,findAllByLabelText:()=>findAllByLabelText,findAllByPlaceholderText:()=>findAllByPlaceholderText,findAllByRole:()=>findAllByRole,findAllByTestId:()=>findAllByTestId,findAllByText:()=>findAllByText,findAllByTitle:()=>findAllByTitle,findByAltText:()=>findByAltText,findByDisplayValue:()=>findByDisplayValue,findByLabelText:()=>findByLabelText,findByPlaceholderText:()=>findByPlaceholderText,findByRole:()=>findByRole,findByTestId:()=>findByTestId,findByText:()=>findByText,findByTitle:()=>findByTitle,fireEvent:()=>fireEvent,getAllByAltText:()=>getAllByAltText,getAllByDisplayValue:()=>getAllByDisplayValue,getAllByLabelText:()=>getAllByLabelTextWithSuggestions,getAllByPlaceholderText:()=>getAllByPlaceholderText,getAllByRole:()=>getAllByRole,getAllByTestId:()=>getAllByTestId,getAllByText:()=>getAllByText,getAllByTitle:()=>getAllByTitle,getByAltText:()=>getByAltText,getByDisplayValue:()=>getByDisplayValue,getByLabelText:()=>getByLabelTextWithSuggestions,getByPlaceholderText:()=>getByPlaceholderText,getByRole:()=>getByRole,getByTestId:()=>getByTestId,getByText:()=>getByText,getByTitle:()=>getByTitle,getConfig:()=>getConfig2,getDefaultNormalizer:()=>getDefaultNormalizer,getElementError:()=>getElementError,getMultipleElementsFoundError:()=>getMultipleElementsFoundError,getNodeText:()=>getNodeText,getQueriesForElement:()=>getQueriesForElement,getRoles:()=>getRoles,getSuggestedQuery:()=>getSuggestedQuery,isInaccessible:()=>isInaccessible,logDOM:()=>logDOM,logRoles:()=>logRoles,makeFindQuery:()=>makeFindQuery,makeGetAllQuery:()=>makeGetAllQuery,makeSingleQuery:()=>makeSingleQuery,prettyDOM:()=>prettyDOM,prettyFormat:()=>prettyFormat,queries:()=>queries,queryAllByAltText:()=>queryAllByAltTextWithSuggestions,queryAllByAttribute:()=>queryAllByAttribute,queryAllByDisplayValue:()=>queryAllByDisplayValueWithSuggestions,queryAllByLabelText:()=>queryAllByLabelTextWithSuggestions,queryAllByPlaceholderText:()=>queryAllByPlaceholderTextWithSuggestions,queryAllByRole:()=>queryAllByRoleWithSuggestions,queryAllByTestId:()=>queryAllByTestIdWithSuggestions,queryAllByText:()=>queryAllByTextWithSuggestions,queryAllByTitle:()=>queryAllByTitleWithSuggestions,queryByAltText:()=>queryByAltText,queryByAttribute:()=>queryByAttribute,queryByDisplayValue:()=>queryByDisplayValue,queryByLabelText:()=>queryByLabelText,queryByPlaceholderText:()=>queryByPlaceholderText,queryByRole:()=>queryByRole,queryByTestId:()=>queryByTestId,queryByText:()=>queryByText,queryByTitle:()=>queryByTitle,queryHelpers:()=>queryHelpers,screen:()=>screen,waitFor:()=>waitForWrapper,waitForElementToBeRemoved:()=>waitForElementToBeRemoved,within:()=>getQueriesForElement,wrapAllByQueryWithSuggestion:()=>wrapAllByQueryWithSuggestion,wrapSingleQueryWithSuggestion:()=>wrapSingleQueryWithSuggestion});var prettyFormat=__toESM(require_build());var toStr2=Object.prototype.toString;function isCallable2(fn3){return typeof fn3==\"function\"||toStr2.call(fn3)===\"[object Function]\"}function toInteger2(value){var number=Number(value);return isNaN(number)?0:number===0||!isFinite(number)?number:(number>0?1:-1)*Math.floor(Math.abs(number))}var maxSafeInteger2=Math.pow(2,53)-1;function toLength2(value){var len=toInteger2(value);return Math.min(Math.max(len,0),maxSafeInteger2)}function arrayFrom2(arrayLike,mapFn){var C3=Array,items=Object(arrayLike);if(arrayLike==null)throw new TypeError(\"Array.from requires an array-like object - not null or undefined\");if(typeof mapFn<\"u\"&&!isCallable2(mapFn))throw new TypeError(\"Array.from: when provided, the second argument must be a function\");for(var len=toLength2(items.length),A=isCallable2(C3)?Object(new C3(len)):new Array(len),k2=0,kValue;k20&&arguments[0]!==void 0?arguments[0]:[];_classCallCheck2(this,SetLike3),_defineProperty3(this,\"items\",void 0),this.items=items;}return _createClass2(SetLike3,[{key:\"add\",value:function(value){return this.has(value)===!1&&this.items.push(value),this}},{key:\"clear\",value:function(){this.items=[];}},{key:\"delete\",value:function(value){var previousLength=this.items.length;return this.items=this.items.filter(function(item){return item!==value}),previousLength!==this.items.length}},{key:\"forEach\",value:function(callbackfn){var _this=this;this.items.forEach(function(item){callbackfn(item,item,_this);});}},{key:\"has\",value:function(value){return this.items.indexOf(value)!==-1}},{key:\"size\",get:function(){return this.items.length}}]),SetLike3}(),SetLike_default2=typeof Set>\"u\"?Set:SetLike2;function getLocalName2(element){var _element$localName;return (_element$localName=element.localName)!==null&&_element$localName!==void 0?_element$localName:element.tagName.toLowerCase()}var localNameToRoleMappings2={article:\"article\",aside:\"complementary\",button:\"button\",datalist:\"listbox\",dd:\"definition\",details:\"group\",dialog:\"dialog\",dt:\"term\",fieldset:\"group\",figure:\"figure\",form:\"form\",footer:\"contentinfo\",h1:\"heading\",h2:\"heading\",h3:\"heading\",h4:\"heading\",h5:\"heading\",h6:\"heading\",header:\"banner\",hr:\"separator\",html:\"document\",legend:\"legend\",li:\"listitem\",math:\"math\",main:\"main\",menu:\"list\",nav:\"navigation\",ol:\"list\",optgroup:\"group\",option:\"option\",output:\"status\",progress:\"progressbar\",section:\"region\",summary:\"button\",table:\"table\",tbody:\"rowgroup\",textarea:\"textbox\",tfoot:\"rowgroup\",td:\"cell\",th:\"columnheader\",thead:\"rowgroup\",tr:\"row\",ul:\"list\"},prohibitedAttributes2={caption:new Set([\"aria-label\",\"aria-labelledby\"]),code:new Set([\"aria-label\",\"aria-labelledby\"]),deletion:new Set([\"aria-label\",\"aria-labelledby\"]),emphasis:new Set([\"aria-label\",\"aria-labelledby\"]),generic:new Set([\"aria-label\",\"aria-labelledby\",\"aria-roledescription\"]),insertion:new Set([\"aria-label\",\"aria-labelledby\"]),paragraph:new Set([\"aria-label\",\"aria-labelledby\"]),presentation:new Set([\"aria-label\",\"aria-labelledby\"]),strong:new Set([\"aria-label\",\"aria-labelledby\"]),subscript:new Set([\"aria-label\",\"aria-labelledby\"]),superscript:new Set([\"aria-label\",\"aria-labelledby\"])};function hasGlobalAriaAttributes2(element,role){return [\"aria-atomic\",\"aria-busy\",\"aria-controls\",\"aria-current\",\"aria-describedby\",\"aria-details\",\"aria-dropeffect\",\"aria-flowto\",\"aria-grabbed\",\"aria-hidden\",\"aria-keyshortcuts\",\"aria-label\",\"aria-labelledby\",\"aria-live\",\"aria-owns\",\"aria-relevant\",\"aria-roledescription\"].some(function(attributeName){var _prohibitedAttributes;return element.hasAttribute(attributeName)&&!((_prohibitedAttributes=prohibitedAttributes2[role])!==null&&_prohibitedAttributes!==void 0&&_prohibitedAttributes.has(attributeName))})}function ignorePresentationalRole2(element,implicitRole){return hasGlobalAriaAttributes2(element,implicitRole)}function getRole2(element){var explicitRole=getExplicitRole2(element);if(explicitRole===null||explicitRole===\"presentation\"){var implicitRole=getImplicitRole2(element);if(explicitRole!==\"presentation\"||ignorePresentationalRole2(element,implicitRole||\"\"))return implicitRole}return explicitRole}function getImplicitRole2(element){var mappedByTag=localNameToRoleMappings2[getLocalName2(element)];if(mappedByTag!==void 0)return mappedByTag;switch(getLocalName2(element)){case\"a\":case\"area\":case\"link\":if(element.hasAttribute(\"href\"))return \"link\";break;case\"img\":return element.getAttribute(\"alt\")===\"\"&&!ignorePresentationalRole2(element,\"img\")?\"presentation\":\"img\";case\"input\":{var _ref=element,type5=_ref.type;switch(type5){case\"button\":case\"image\":case\"reset\":case\"submit\":return \"button\";case\"checkbox\":case\"radio\":return type5;case\"range\":return \"slider\";case\"email\":case\"tel\":case\"text\":case\"url\":return element.hasAttribute(\"list\")?\"combobox\":\"textbox\";case\"search\":return element.hasAttribute(\"list\")?\"combobox\":\"searchbox\";case\"number\":return \"spinbutton\";default:return null}}case\"select\":return element.hasAttribute(\"multiple\")||element.size>1?\"listbox\":\"combobox\"}return null}function getExplicitRole2(element){var role=element.getAttribute(\"role\");if(role!==null){var explicitRole=role.trim().split(\" \")[0];if(explicitRole.length>0)return explicitRole}return null}function isElement2(node){return node!==null&&node.nodeType===node.ELEMENT_NODE}function isHTMLTableCaptionElement2(node){return isElement2(node)&&getLocalName2(node)===\"caption\"}function isHTMLInputElement2(node){return isElement2(node)&&getLocalName2(node)===\"input\"}function isHTMLOptGroupElement2(node){return isElement2(node)&&getLocalName2(node)===\"optgroup\"}function isHTMLSelectElement2(node){return isElement2(node)&&getLocalName2(node)===\"select\"}function isHTMLTableElement2(node){return isElement2(node)&&getLocalName2(node)===\"table\"}function isHTMLTextAreaElement2(node){return isElement2(node)&&getLocalName2(node)===\"textarea\"}function safeWindow2(node){var _ref=node.ownerDocument===null?node:node.ownerDocument,defaultView=_ref.defaultView;if(defaultView===null)throw new TypeError(\"no window available\");return defaultView}function isHTMLFieldSetElement2(node){return isElement2(node)&&getLocalName2(node)===\"fieldset\"}function isHTMLLegendElement2(node){return isElement2(node)&&getLocalName2(node)===\"legend\"}function isHTMLSlotElement2(node){return isElement2(node)&&getLocalName2(node)===\"slot\"}function isSVGElement2(node){return isElement2(node)&&node.ownerSVGElement!==void 0}function isSVGSVGElement2(node){return isElement2(node)&&getLocalName2(node)===\"svg\"}function isSVGTitleElement2(node){return isSVGElement2(node)&&getLocalName2(node)===\"title\"}function queryIdRefs2(node,attributeName){if(isElement2(node)&&node.hasAttribute(attributeName)){var ids=node.getAttribute(attributeName).split(\" \"),root=node.getRootNode?node.getRootNode():node.ownerDocument;return ids.map(function(id){return root.getElementById(id)}).filter(function(element){return element!==null})}return []}function hasAnyConcreteRoles2(node,roles3){return isElement2(node)?roles3.indexOf(getRole2(node))!==-1:!1}function asFlatString2(s){return s.trim().replace(/\\s\\s+/g,\" \")}function isHidden2(node,getComputedStyleImplementation){if(!isElement2(node))return !1;if(node.hasAttribute(\"hidden\")||node.getAttribute(\"aria-hidden\")===\"true\")return !0;var style=getComputedStyleImplementation(node);return style.getPropertyValue(\"display\")===\"none\"||style.getPropertyValue(\"visibility\")===\"hidden\"}function isControl2(node){return hasAnyConcreteRoles2(node,[\"button\",\"combobox\",\"listbox\",\"textbox\"])||hasAbstractRole2(node,\"range\")}function hasAbstractRole2(node,role){if(!isElement2(node))return !1;switch(role){case\"range\":return hasAnyConcreteRoles2(node,[\"meter\",\"progressbar\",\"scrollbar\",\"slider\",\"spinbutton\"]);default:throw new TypeError(\"No knowledge about abstract role '\".concat(role,\"'. This is likely a bug :(\"))}}function querySelectorAllSubtree2(element,selectors){var elements=arrayFrom2(element.querySelectorAll(selectors));return queryIdRefs2(element,\"aria-owns\").forEach(function(root){elements.push.apply(elements,arrayFrom2(root.querySelectorAll(selectors)));}),elements}function querySelectedOptions2(listbox){return isHTMLSelectElement2(listbox)?listbox.selectedOptions||querySelectorAllSubtree2(listbox,\"[selected]\"):querySelectorAllSubtree2(listbox,'[aria-selected=\"true\"]')}function isMarkedPresentational2(node){return hasAnyConcreteRoles2(node,[\"none\",\"presentation\"])}function isNativeHostLanguageTextAlternativeElement2(node){return isHTMLTableCaptionElement2(node)}function allowsNameFromContent2(node){return hasAnyConcreteRoles2(node,[\"button\",\"cell\",\"checkbox\",\"columnheader\",\"gridcell\",\"heading\",\"label\",\"legend\",\"link\",\"menuitem\",\"menuitemcheckbox\",\"menuitemradio\",\"option\",\"radio\",\"row\",\"rowheader\",\"switch\",\"tab\",\"tooltip\",\"treeitem\"])}function isDescendantOfNativeHostLanguageTextAlternativeElement2(node){return !1}function getValueOfTextbox2(element){return isHTMLInputElement2(element)||isHTMLTextAreaElement2(element)?element.value:element.textContent||\"\"}function getTextualContent2(declaration){var content=declaration.getPropertyValue(\"content\");return /^[\"'].*[\"']$/.test(content)?content.slice(1,-1):\"\"}function isLabelableElement2(element){var localName=getLocalName2(element);return localName===\"button\"||localName===\"input\"&&element.getAttribute(\"type\")!==\"hidden\"||localName===\"meter\"||localName===\"output\"||localName===\"progress\"||localName===\"select\"||localName===\"textarea\"}function findLabelableElement2(element){if(isLabelableElement2(element))return element;var labelableElement=null;return element.childNodes.forEach(function(childNode){if(labelableElement===null&&isElement2(childNode)){var descendantLabelableElement=findLabelableElement2(childNode);descendantLabelableElement!==null&&(labelableElement=descendantLabelableElement);}}),labelableElement}function getControlOfLabel2(label){if(label.control!==void 0)return label.control;var htmlFor=label.getAttribute(\"for\");return htmlFor!==null?label.ownerDocument.getElementById(htmlFor):findLabelableElement2(label)}function getLabels2(element){var labelsProperty=element.labels;if(labelsProperty===null)return labelsProperty;if(labelsProperty!==void 0)return arrayFrom2(labelsProperty);if(!isLabelableElement2(element))return null;var document2=element.ownerDocument;return arrayFrom2(document2.querySelectorAll(\"label\")).filter(function(label){return getControlOfLabel2(label)===element})}function getSlotContents2(slot){var assignedNodes=slot.assignedNodes();return assignedNodes.length===0?arrayFrom2(slot.childNodes):assignedNodes}function computeTextAlternative2(root){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},consultedNodes=new SetLike_default2,window2=safeWindow2(root),_options$compute=options.compute,compute=_options$compute===void 0?\"name\":_options$compute,_options$computedStyl=options.computedStyleSupportsPseudoElements,computedStyleSupportsPseudoElements=_options$computedStyl===void 0?options.getComputedStyle!==void 0:_options$computedStyl,_options$getComputedS=options.getComputedStyle,getComputedStyle=_options$getComputedS===void 0?window2.getComputedStyle.bind(window2):_options$getComputedS,_options$hidden=options.hidden,hidden=_options$hidden===void 0?!1:_options$hidden;function computeMiscTextAlternative(node,context){var accumulatedText=\"\";if(isElement2(node)&&computedStyleSupportsPseudoElements){var pseudoBefore=getComputedStyle(node,\"::before\"),beforeContent=getTextualContent2(pseudoBefore);accumulatedText=\"\".concat(beforeContent,\" \").concat(accumulatedText);}var childNodes=isHTMLSlotElement2(node)?getSlotContents2(node):arrayFrom2(node.childNodes).concat(queryIdRefs2(node,\"aria-owns\"));if(childNodes.forEach(function(child){var result=computeTextAlternative3(child,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),display2=isElement2(child)?getComputedStyle(child).getPropertyValue(\"display\"):\"inline\",separator=display2!==\"inline\"?\" \":\"\";accumulatedText+=\"\".concat(separator).concat(result).concat(separator);}),isElement2(node)&&computedStyleSupportsPseudoElements){var pseudoAfter=getComputedStyle(node,\"::after\"),afterContent=getTextualContent2(pseudoAfter);accumulatedText=\"\".concat(accumulatedText,\" \").concat(afterContent);}return accumulatedText.trim()}function useAttribute(element,attributeName){var attribute=element.getAttributeNode(attributeName);return attribute!==null&&!consultedNodes.has(attribute)&&attribute.value.trim()!==\"\"?(consultedNodes.add(attribute),attribute.value):null}function computeTooltipAttributeValue(node){return isElement2(node)?useAttribute(node,\"title\"):null}function computeElementTextAlternative(node){if(!isElement2(node))return null;if(isHTMLFieldSetElement2(node)){consultedNodes.add(node);for(var children=arrayFrom2(node.childNodes),i=0;i0}).join(\" \");if(isHTMLInputElement2(node)&&node.type===\"image\"){var _nameFromAlt=useAttribute(node,\"alt\");if(_nameFromAlt!==null)return _nameFromAlt;var nameFromTitle=useAttribute(node,\"title\");return nameFromTitle!==null?nameFromTitle:\"Submit Query\"}if(hasAnyConcreteRoles2(node,[\"button\"])){var nameFromSubTree=computeMiscTextAlternative(node,{isEmbeddedInLabel:!1,isReferenced:!1});if(nameFromSubTree!==\"\")return nameFromSubTree}return null}function computeTextAlternative3(current,context){if(consultedNodes.has(current))return \"\";if(!hidden&&isHidden2(current,getComputedStyle)&&!context.isReferenced)return consultedNodes.add(current),\"\";var labelAttributeNode=isElement2(current)?current.getAttributeNode(\"aria-labelledby\"):null,labelElements=labelAttributeNode!==null&&!consultedNodes.has(labelAttributeNode)?queryIdRefs2(current,\"aria-labelledby\"):[];if(compute===\"name\"&&!context.isReferenced&&labelElements.length>0)return consultedNodes.add(labelAttributeNode),labelElements.map(function(element){return computeTextAlternative3(element,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(\" \");var skipToStep2E=context.recursion&&isControl2(current)&&compute===\"name\";if(!skipToStep2E){var ariaLabel=(isElement2(current)&¤t.getAttribute(\"aria-label\")||\"\").trim();if(ariaLabel!==\"\"&&compute===\"name\")return consultedNodes.add(current),ariaLabel;if(!isMarkedPresentational2(current)){var elementTextAlternative=computeElementTextAlternative(current);if(elementTextAlternative!==null)return consultedNodes.add(current),elementTextAlternative}}if(hasAnyConcreteRoles2(current,[\"menu\"]))return consultedNodes.add(current),\"\";if(skipToStep2E||context.isEmbeddedInLabel||context.isReferenced){if(hasAnyConcreteRoles2(current,[\"combobox\",\"listbox\"])){consultedNodes.add(current);var selectedOptions=querySelectedOptions2(current);return selectedOptions.length===0?isHTMLInputElement2(current)?current.value:\"\":arrayFrom2(selectedOptions).map(function(selectedOption){return computeTextAlternative3(selectedOption,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(\" \")}if(hasAbstractRole2(current,\"range\"))return consultedNodes.add(current),current.hasAttribute(\"aria-valuetext\")?current.getAttribute(\"aria-valuetext\"):current.hasAttribute(\"aria-valuenow\")?current.getAttribute(\"aria-valuenow\"):current.getAttribute(\"value\")||\"\";if(hasAnyConcreteRoles2(current,[\"textbox\"]))return consultedNodes.add(current),getValueOfTextbox2(current)}if(allowsNameFromContent2(current)||isElement2(current)&&context.isReferenced||isNativeHostLanguageTextAlternativeElement2(current)||isDescendantOfNativeHostLanguageTextAlternativeElement2()){var accumulatedText2F=computeMiscTextAlternative(current,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1});if(accumulatedText2F!==\"\")return consultedNodes.add(current),accumulatedText2F}if(current.nodeType===current.TEXT_NODE)return consultedNodes.add(current),current.textContent||\"\";if(context.recursion)return consultedNodes.add(current),computeMiscTextAlternative(current,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1});var tooltipAttributeValue=computeTooltipAttributeValue(current);return tooltipAttributeValue!==null?(consultedNodes.add(current),tooltipAttributeValue):(consultedNodes.add(current),\"\")}return asFlatString2(computeTextAlternative3(root,{isEmbeddedInLabel:!1,isReferenced:compute===\"description\",recursion:!1}))}function _typeof4(obj){\"@babel/helpers - typeof\";return _typeof4=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(obj2){return typeof obj2}:function(obj2){return obj2&&typeof Symbol==\"function\"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?\"symbol\":typeof obj2},_typeof4(obj)}function ownKeys2(object,enumerableOnly){var keys2=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys2.push.apply(keys2,symbols);}return keys2}function _objectSpread2(target){for(var i=1;i1&&arguments[1]!==void 0?arguments[1]:{},description=queryIdRefs2(root,\"aria-describedby\").map(function(element){return computeTextAlternative2(element,_objectSpread2(_objectSpread2({},options),{},{compute:\"description\"}))}).join(\" \");if(description===\"\"){var title=root.getAttribute(\"title\");description=title===null?\"\":title;}return description}function prohibitsNaming2(node){return hasAnyConcreteRoles2(node,[\"caption\",\"code\",\"deletion\",\"emphasis\",\"generic\",\"insertion\",\"paragraph\",\"presentation\",\"strong\",\"subscript\",\"superscript\"])}function computeAccessibleName2(root){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return prohibitsNaming2(root)?\"\":computeTextAlternative2(root,options)}var import_aria_query3=__toESM(require_lib()),import_lz_string=__toESM(require_lz_string());function escapeHTML2(str){return str.replace(//g,\">\")}var printProps2=(keys2,props,config3,indentation,depth,refs,printer2)=>{let indentationNext=indentation+config3.indent,colors=config3.colors;return keys2.map(key=>{let value=props[key],printed=printer2(value,config3,indentationNext,depth,refs);return typeof value!=\"string\"&&(printed.indexOf(`\n`)!==-1&&(printed=config3.spacingOuter+indentationNext+printed+config3.spacingOuter+indentation),printed=\"{\"+printed+\"}\"),config3.spacingInner+indentation+colors.prop.open+key+colors.prop.close+\"=\"+colors.value.open+printed+colors.value.close}).join(\"\")},NodeTypeTextNode=3,printChildren2=(children,config3,indentation,depth,refs,printer2)=>children.map(child=>{let printedChild=typeof child==\"string\"?printText2(child,config3):printer2(child,config3,indentation,depth,refs);return printedChild===\"\"&&typeof child==\"object\"&&child!==null&&child.nodeType!==NodeTypeTextNode?\"\":config3.spacingOuter+indentation+printedChild}).join(\"\"),printText2=(text,config3)=>{let contentColor=config3.colors.content;return contentColor.open+escapeHTML2(text)+contentColor.close},printComment2=(comment,config3)=>{let commentColor=config3.colors.comment;return commentColor.open+\"\"+commentColor.close},printElement2=(type5,printedProps,printedChildren,config3,indentation)=>{let tagColor=config3.colors.tag;return tagColor.open+\"<\"+type5+(printedProps&&tagColor.close+printedProps+config3.spacingOuter+indentation+tagColor.open)+(printedChildren?\">\"+tagColor.close+printedChildren+config3.spacingOuter+indentation+tagColor.open+\"\"+tagColor.close},printElementAsLeaf2=(type5,config3)=>{let tagColor=config3.colors.tag;return tagColor.open+\"<\"+type5+tagColor.close+\" \\u2026\"+tagColor.open+\" />\"+tagColor.close},ELEMENT_NODE$1=1,TEXT_NODE$1=3,COMMENT_NODE$1=8,FRAGMENT_NODE2=11,ELEMENT_REGEXP2=/^((HTML|SVG)\\w*)?Element$/,isCustomElement2=val=>{let{tagName}=val;return !!(typeof tagName==\"string\"&&tagName.includes(\"-\")||typeof val.hasAttribute==\"function\"&&val.hasAttribute(\"is\"))},testNode2=val=>{let constructorName=val.constructor.name,{nodeType}=val;return nodeType===ELEMENT_NODE$1&&(ELEMENT_REGEXP2.test(constructorName)||isCustomElement2(val))||nodeType===TEXT_NODE$1&&constructorName===\"Text\"||nodeType===COMMENT_NODE$1&&constructorName===\"Comment\"||nodeType===FRAGMENT_NODE2&&constructorName===\"DocumentFragment\"};function nodeIsText2(node){return node.nodeType===TEXT_NODE$1}function nodeIsComment2(node){return node.nodeType===COMMENT_NODE$1}function nodeIsFragment2(node){return node.nodeType===FRAGMENT_NODE2}function createDOMElementFilter(filterNode){return {test:val=>{var _val$constructor2;return ((val==null||(_val$constructor2=val.constructor)==null?void 0:_val$constructor2.name)||isCustomElement2(val))&&testNode2(val)},serialize:(node,config3,indentation,depth,refs,printer2)=>{if(nodeIsText2(node))return printText2(node.data,config3);if(nodeIsComment2(node))return printComment2(node.data,config3);let type5=nodeIsFragment2(node)?\"DocumentFragment\":node.tagName.toLowerCase();return ++depth>config3.maxDepth?printElementAsLeaf2(type5,config3):printElement2(type5,printProps2(nodeIsFragment2(node)?[]:Array.from(node.attributes).map(attr=>attr.name).sort(),nodeIsFragment2(node)?{}:Array.from(node.attributes).reduce((props,attribute)=>(props[attribute.name]=attribute.value,props),{}),config3,indentation+config3.indent,depth,refs,printer2),printChildren2(Array.prototype.slice.call(node.childNodes||node.children).filter(filterNode),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation)}}}var chalk2=null,readFileSync=null,codeFrameColumns=null;try{let nodeRequire=module&&module.require;readFileSync=nodeRequire.call(module,\"fs\").readFileSync,codeFrameColumns=nodeRequire.call(module,\"@babel/code-frame\").codeFrameColumns,chalk2=nodeRequire.call(module,\"chalk\");}catch{}function getCodeFrame(frame){let locationStart=frame.indexOf(\"(\")+1,locationEnd=frame.indexOf(\")\"),frameLocation=frame.slice(locationStart,locationEnd),frameLocationElements=frameLocation.split(\":\"),[filename,line,column]=[frameLocationElements[0],parseInt(frameLocationElements[1],10),parseInt(frameLocationElements[2],10)],rawFileContents=\"\";try{rawFileContents=readFileSync(filename,\"utf-8\");}catch{return \"\"}let codeFrame=codeFrameColumns(rawFileContents,{start:{line,column}},{highlightCode:!0,linesBelow:0});return chalk2.dim(frameLocation)+`\n`+codeFrame+`\n`}function getUserCodeFrame(){if(!readFileSync||!codeFrameColumns)return \"\";let firstClientCodeFrame=new Error().stack.split(`\n`).slice(1).find(frame=>!frame.includes(\"node_modules/\"));return getCodeFrame(firstClientCodeFrame)}var TEXT_NODE2=3;function jestFakeTimersAreEnabled(){return typeof jest<\"u\"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,\"clock\"):!1}function getDocument(){if(typeof window>\"u\")throw new Error(\"Could not find default container\");return window.document}function getWindowFromNode(node){if(node.defaultView)return node.defaultView;if(node.ownerDocument&&node.ownerDocument.defaultView)return node.ownerDocument.defaultView;if(node.window)return node.window;throw node.ownerDocument&&node.ownerDocument.defaultView===null?new Error(\"It looks like the window object is not available for the provided node.\"):node.then instanceof Function?new Error(\"It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?\"):Array.isArray(node)?new Error(\"It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?\"):typeof node.debug==\"function\"&&typeof node.logTestingPlaygroundURL==\"function\"?new Error(\"It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?\"):new Error(\"The given node is not an Element, the node type is: \"+typeof node+\".\")}function checkContainerType(container){if(!container||typeof container.querySelector!=\"function\"||typeof container.querySelectorAll!=\"function\")throw new TypeError(\"Expected container to be an Element, a Document or a DocumentFragment but got \"+getTypeName(container)+\".\");function getTypeName(object){return typeof object==\"object\"?object===null?\"null\":object.constructor.name:typeof object}}var shouldHighlight=()=>{if(typeof process>\"u\")return !1;let colors;try{var _process$env;let colorsJSON=(_process$env=process.env)==null?void 0:_process$env.COLORS;colorsJSON&&(colors=JSON.parse(colorsJSON));}catch{}return typeof colors==\"boolean\"?colors:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:DOMCollection3}=prettyFormat.plugins,ELEMENT_NODE2=1,COMMENT_NODE2=8;function filterCommentsAndDefaultIgnoreTagsTags(value){return value.nodeType!==COMMENT_NODE2&&(value.nodeType!==ELEMENT_NODE2||!value.matches(getConfig2().defaultIgnore))}function prettyDOM(dom,maxLength,options){if(options===void 0&&(options={}),dom||(dom=getDocument().body),typeof maxLength!=\"number\"&&(maxLength=typeof process<\"u\"&&typeof process.env<\"u\"&&process.env.DEBUG_PRINT_LIMIT||7e3),maxLength===0)return \"\";dom.documentElement&&(dom=dom.documentElement);let domTypeName=typeof dom;if(domTypeName===\"object\"?domTypeName=dom.constructor.name:dom={},!(\"outerHTML\"in dom))throw new TypeError(\"Expected an element or document but got \"+domTypeName);let{filterNode=filterCommentsAndDefaultIgnoreTagsTags,...prettyFormatOptions}=options,debugContent=prettyFormat.format(dom,{plugins:[createDOMElementFilter(filterNode),DOMCollection3],printFunctionName:!1,highlight:shouldHighlight(),...prettyFormatOptions});return maxLength!==void 0&&dom.outerHTML.length>maxLength?debugContent.slice(0,maxLength)+\"...\":debugContent}var logDOM=function(){let userCodeFrame=getUserCodeFrame();console.log(userCodeFrame?prettyDOM(...arguments)+`\n\n`+userCodeFrame:prettyDOM(...arguments));},config2={testIdAttribute:\"data-testid\",asyncUtilTimeout:1e3,asyncWrapper:cb=>cb(),unstable_advanceTimersWrapper:cb=>cb(),eventWrapper:cb=>cb(),defaultHidden:!1,defaultIgnore:\"script, style\",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(message,container){let prettifiedDOM=prettyDOM(container),error=new Error([message,\"Ignored nodes: comments, \"+config2.defaultIgnore+`\n`+prettifiedDOM].filter(Boolean).join(`\n\n`));return error.name=\"TestingLibraryElementError\",error},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function runWithExpensiveErrorDiagnosticsDisabled(callback){try{return config2._disableExpensiveErrorDiagnostics=!0,callback()}finally{config2._disableExpensiveErrorDiagnostics=!1;}}function configure(newConfig){typeof newConfig==\"function\"&&(newConfig=newConfig(config2)),config2={...config2,...newConfig};}function getConfig2(){return config2}var labelledNodeNames=[\"button\",\"meter\",\"output\",\"progress\",\"select\",\"textarea\",\"input\"];function getTextContent(node){return labelledNodeNames.includes(node.nodeName.toLowerCase())?\"\":node.nodeType===TEXT_NODE2?node.textContent:Array.from(node.childNodes).map(childNode=>getTextContent(childNode)).join(\"\")}function getLabelContent(element){let textContent;return element.tagName.toLowerCase()===\"label\"?textContent=getTextContent(element):textContent=element.value||element.textContent,textContent}function getRealLabels(element){if(element.labels!==void 0){var _labels;return (_labels=element.labels)!=null?_labels:[]}if(!isLabelable(element))return [];let labels=element.ownerDocument.querySelectorAll(\"label\");return Array.from(labels).filter(label=>label.control===element)}function isLabelable(element){return /BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(element.tagName)||element.tagName===\"INPUT\"&&element.getAttribute(\"type\")!==\"hidden\"}function getLabels3(container,element,_temp){let{selector=\"*\"}=_temp===void 0?{}:_temp,ariaLabelledBy=element.getAttribute(\"aria-labelledby\"),labelsId=ariaLabelledBy?ariaLabelledBy.split(\" \"):[];return labelsId.length?labelsId.map(labelId=>{let labellingElement=container.querySelector('[id=\"'+labelId+'\"]');return labellingElement?{content:getLabelContent(labellingElement),formControl:null}:{content:\"\",formControl:null}}):Array.from(getRealLabels(element)).map(label=>{let textToMatch=getLabelContent(label),labelledFormControl=Array.from(label.querySelectorAll(\"button, input, meter, output, progress, select, textarea\")).filter(formControlElement=>formControlElement.matches(selector))[0];return {content:textToMatch,formControl:labelledFormControl}})}function assertNotNullOrUndefined(matcher){if(matcher==null)throw new Error(\"It looks like \"+matcher+\" was passed instead of a matcher. Did you do something like getByText(\"+matcher+\")?\")}function fuzzyMatches(textToMatch,node,matcher,normalizer){if(typeof textToMatch!=\"string\")return !1;assertNotNullOrUndefined(matcher);let normalizedText=normalizer(textToMatch);return typeof matcher==\"string\"||typeof matcher==\"number\"?normalizedText.toLowerCase().includes(matcher.toString().toLowerCase()):typeof matcher==\"function\"?matcher(normalizedText,node):matchRegExp(matcher,normalizedText)}function matches2(textToMatch,node,matcher,normalizer){if(typeof textToMatch!=\"string\")return !1;assertNotNullOrUndefined(matcher);let normalizedText=normalizer(textToMatch);return matcher instanceof Function?matcher(normalizedText,node):matcher instanceof RegExp?matchRegExp(matcher,normalizedText):normalizedText===String(matcher)}function getDefaultNormalizer(_temp){let{trim=!0,collapseWhitespace=!0}=_temp===void 0?{}:_temp;return text=>{let normalizedText=text;return normalizedText=trim?normalizedText.trim():normalizedText,normalizedText=collapseWhitespace?normalizedText.replace(/\\s+/g,\" \"):normalizedText,normalizedText}}function makeNormalizer(_ref){let{trim,collapseWhitespace,normalizer}=_ref;if(!normalizer)return getDefaultNormalizer({trim,collapseWhitespace});if(typeof trim<\"u\"||typeof collapseWhitespace<\"u\")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use \"getDefaultNormalizer({trim, collapseWhitespace})\" and compose that into your normalizer');return normalizer}function matchRegExp(matcher,text){let match=matcher.test(text);return matcher.global&&matcher.lastIndex!==0&&(console.warn(\"To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp.\"),matcher.lastIndex=0),match}function getNodeText(node){return node.matches(\"input[type=submit], input[type=button], input[type=reset]\")?node.value:Array.from(node.childNodes).filter(child=>child.nodeType===TEXT_NODE2&&!!child.textContent).map(c=>c.textContent).join(\"\")}var elementRoleList2=buildElementRoleList2(import_aria_query3.elementRoles);function isSubtreeInaccessible(element){return element.hidden===!0||element.getAttribute(\"aria-hidden\")===\"true\"||element.ownerDocument.defaultView.getComputedStyle(element).display===\"none\"}function isInaccessible(element,options){options===void 0&&(options={});let{isSubtreeInaccessible:isSubtreeInaccessibleImpl=isSubtreeInaccessible}=options;if(element.ownerDocument.defaultView.getComputedStyle(element).visibility===\"hidden\")return !0;let currentElement=element;for(;currentElement;){if(isSubtreeInaccessibleImpl(currentElement))return !0;currentElement=currentElement.parentElement;}return !1}function getImplicitAriaRoles2(currentNode){for(let{match,roles:roles3}of elementRoleList2)if(match(currentNode))return [...roles3];return []}function buildElementRoleList2(elementRolesMap){function makeElementSelector(_ref){let{name,attributes}=_ref;return \"\"+name+attributes.map(_ref2=>{let{name:attributeName,value,constraints=[]}=_ref2,shouldNotExist=constraints.indexOf(\"undefined\")!==-1,shouldBeNonEmpty=constraints.indexOf(\"set\")!==-1;return typeof value<\"u\"?\"[\"+attributeName+'=\"'+value+'\"]':shouldNotExist?\":not([\"+attributeName+\"])\":shouldBeNonEmpty?\"[\"+attributeName+\"]:not([\"+attributeName+'=\"\"])':\"[\"+attributeName+\"]\"}).join(\"\")}function getSelectorSpecificity(_ref3){let{attributes=[]}=_ref3;return attributes.length}function bySelectorSpecificity(_ref4,_ref5){let{specificity:leftSpecificity}=_ref4,{specificity:rightSpecificity}=_ref5;return rightSpecificity-leftSpecificity}function match(element){let{attributes=[]}=element,typeTextIndex=attributes.findIndex(attribute=>attribute.value&&attribute.name===\"type\"&&attribute.value===\"text\");typeTextIndex>=0&&(attributes=[...attributes.slice(0,typeTextIndex),...attributes.slice(typeTextIndex+1)]);let selector=makeElementSelector({...element,attributes});return node=>typeTextIndex>=0&&node.type!==\"text\"?!1:node.matches(selector)}let result=[];for(let[element,roles3]of elementRolesMap.entries())result=[...result,{match:match(element),roles:Array.from(roles3),specificity:getSelectorSpecificity(element)}];return result.sort(bySelectorSpecificity)}function getRoles(container,_temp){let{hidden=!1}=_temp===void 0?{}:_temp;function flattenDOM(node){return [node,...Array.from(node.children).reduce((acc,child)=>[...acc,...flattenDOM(child)],[])]}return flattenDOM(container).filter(element=>hidden===!1?isInaccessible(element)===!1:!0).reduce((acc,node)=>{let roles3=[];return node.hasAttribute(\"role\")?roles3=node.getAttribute(\"role\").split(\" \").slice(0,1):roles3=getImplicitAriaRoles2(node),roles3.reduce((rolesAcc,role)=>Array.isArray(rolesAcc[role])?{...rolesAcc,[role]:[...rolesAcc[role],node]}:{...rolesAcc,[role]:[node]},acc)},{})}function prettyRoles(dom,_ref6){let{hidden,includeDescription}=_ref6,roles3=getRoles(dom,{hidden});return Object.entries(roles3).filter(_ref7=>{let[role]=_ref7;return role!==\"generic\"}).map(_ref8=>{let[role,elements]=_ref8,delimiterBar=\"-\".repeat(50),elementsString=elements.map(el=>{let nameString='Name \"'+computeAccessibleName2(el,{computedStyleSupportsPseudoElements:getConfig2().computedStyleSupportsPseudoElements})+`\":\n`,domString=prettyDOM(el.cloneNode(!1));if(includeDescription){let descriptionString='Description \"'+computeAccessibleDescription2(el,{computedStyleSupportsPseudoElements:getConfig2().computedStyleSupportsPseudoElements})+`\":\n`;return \"\"+nameString+descriptionString+domString}return \"\"+nameString+domString}).join(`\n\n`);return role+`:\n\n`+elementsString+`\n\n`+delimiterBar}).join(`\n`)}var logRoles=function(dom,_temp2){let{hidden=!1}=_temp2===void 0?{}:_temp2;return console.log(prettyRoles(dom,{hidden}))};function computeAriaSelected(element){return element.tagName===\"OPTION\"?element.selected:checkBooleanAttribute(element,\"aria-selected\")}function computeAriaBusy(element){return element.getAttribute(\"aria-busy\")===\"true\"}function computeAriaChecked(element){if(!(\"indeterminate\"in element&&element.indeterminate))return \"checked\"in element?element.checked:checkBooleanAttribute(element,\"aria-checked\")}function computeAriaPressed(element){return checkBooleanAttribute(element,\"aria-pressed\")}function computeAriaCurrent(element){var _ref9,_checkBooleanAttribut;return (_ref9=(_checkBooleanAttribut=checkBooleanAttribute(element,\"aria-current\"))!=null?_checkBooleanAttribut:element.getAttribute(\"aria-current\"))!=null?_ref9:!1}function computeAriaExpanded(element){return checkBooleanAttribute(element,\"aria-expanded\")}function checkBooleanAttribute(element,attribute){let attributeValue=element.getAttribute(attribute);if(attributeValue===\"true\")return !0;if(attributeValue===\"false\")return !1}function computeHeadingLevel(element){let implicitHeadingLevels={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return element.getAttribute(\"aria-level\")&&Number(element.getAttribute(\"aria-level\"))||implicitHeadingLevels[element.tagName]}function computeAriaValueNow(element){let valueNow=element.getAttribute(\"aria-valuenow\");return valueNow===null?void 0:+valueNow}function computeAriaValueMax(element){let valueMax=element.getAttribute(\"aria-valuemax\");return valueMax===null?void 0:+valueMax}function computeAriaValueMin(element){let valueMin=element.getAttribute(\"aria-valuemin\");return valueMin===null?void 0:+valueMin}function computeAriaValueText(element){let valueText=element.getAttribute(\"aria-valuetext\");return valueText===null?void 0:valueText}var normalize2=getDefaultNormalizer();function escapeRegExp(string){return string.replace(/[.*+\\-?^${}()|[\\]\\\\]/g,\"\\\\$&\")}function getRegExpMatcher(string){return new RegExp(escapeRegExp(string.toLowerCase()),\"i\")}function makeSuggestion(queryName,element,content,_ref){let{variant,name}=_ref,warning=\"\",queryOptions={},queryArgs=[[\"Role\",\"TestId\"].includes(queryName)?content:getRegExpMatcher(content)];name&&(queryOptions.name=getRegExpMatcher(name)),queryName===\"Role\"&&isInaccessible(element)&&(queryOptions.hidden=!0,warning=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.\n If you are using the aria-hidden prop, make sure this is the right choice for your case.\n `),Object.keys(queryOptions).length>0&&queryArgs.push(queryOptions);let queryMethod=variant+\"By\"+queryName;return {queryName,queryMethod,queryArgs,variant,warning,toString(){warning&&console.warn(warning);let[text,options]=queryArgs;return text=typeof text==\"string\"?\"'\"+text+\"'\":text,options=options?\", { \"+Object.entries(options).map(_ref2=>{let[k2,v]=_ref2;return k2+\": \"+v}).join(\", \")+\" }\":\"\",queryMethod+\"(\"+text+options+\")\"}}}function canSuggest(currentMethod,requestedMethod,data){return data&&(!requestedMethod||requestedMethod.toLowerCase()===currentMethod.toLowerCase())}function getSuggestedQuery(element,variant,method){var _element$getAttribute,_getImplicitAriaRoles;if(variant===void 0&&(variant=\"get\"),element.matches(getConfig2().defaultIgnore))return;let role=(_element$getAttribute=element.getAttribute(\"role\"))!=null?_element$getAttribute:(_getImplicitAriaRoles=getImplicitAriaRoles2(element))==null?void 0:_getImplicitAriaRoles[0];if(role!==\"generic\"&&canSuggest(\"Role\",method,role))return makeSuggestion(\"Role\",element,role,{variant,name:computeAccessibleName2(element,{computedStyleSupportsPseudoElements:getConfig2().computedStyleSupportsPseudoElements})});let labelText=getLabels3(document,element).map(label=>label.content).join(\" \");if(canSuggest(\"LabelText\",method,labelText))return makeSuggestion(\"LabelText\",element,labelText,{variant});let placeholderText=element.getAttribute(\"placeholder\");if(canSuggest(\"PlaceholderText\",method,placeholderText))return makeSuggestion(\"PlaceholderText\",element,placeholderText,{variant});let textContent=normalize2(getNodeText(element));if(canSuggest(\"Text\",method,textContent))return makeSuggestion(\"Text\",element,textContent,{variant});if(canSuggest(\"DisplayValue\",method,element.value))return makeSuggestion(\"DisplayValue\",element,normalize2(element.value),{variant});let alt=element.getAttribute(\"alt\");if(canSuggest(\"AltText\",method,alt))return makeSuggestion(\"AltText\",element,alt,{variant});let title=element.getAttribute(\"title\");if(canSuggest(\"Title\",method,title))return makeSuggestion(\"Title\",element,title,{variant});let testId=element.getAttribute(getConfig2().testIdAttribute);if(canSuggest(\"TestId\",method,testId))return makeSuggestion(\"TestId\",element,testId,{variant})}function copyStackTrace(target,source){target.stack=source.stack.replace(source.message,target.message);}function waitFor(callback,_ref){let{container=getDocument(),timeout=getConfig2().asyncUtilTimeout,showOriginalStackTrace=getConfig2().showOriginalStackTrace,stackTraceError,interval=50,onTimeout=error=>(Object.defineProperty(error,\"message\",{value:getConfig2().getElementError(error.message,container).message}),error),mutationObserverOptions={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=_ref;if(typeof callback!=\"function\")throw new TypeError(\"Received `callback` arg must be a function\");return new Promise(async(resolve,reject)=>{let lastError,intervalId,observer,finished=!1,promiseStatus=\"idle\",overallTimeoutTimer=setTimeout(handleTimeout,timeout),usingJestFakeTimers=jestFakeTimersAreEnabled();if(usingJestFakeTimers){let{unstable_advanceTimersWrapper:advanceTimersWrapper}=getConfig2();for(checkCallback();!finished;){if(!jestFakeTimersAreEnabled()){let error=new Error(\"Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830\");showOriginalStackTrace||copyStackTrace(error,stackTraceError),reject(error);return}if(await advanceTimersWrapper(async()=>{jest.advanceTimersByTime(interval);}),finished)break;checkCallback();}}else {try{checkContainerType(container);}catch(e){reject(e);return}intervalId=setInterval(checkRealTimersCallback,interval);let{MutationObserver}=getWindowFromNode(container);observer=new MutationObserver(checkRealTimersCallback),observer.observe(container,mutationObserverOptions),checkCallback();}function onDone(error,result){finished=!0,clearTimeout(overallTimeoutTimer),usingJestFakeTimers||(clearInterval(intervalId),observer.disconnect()),error?reject(error):resolve(result);}function checkRealTimersCallback(){if(jestFakeTimersAreEnabled()){let error=new Error(\"Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830\");return showOriginalStackTrace||copyStackTrace(error,stackTraceError),reject(error)}else return checkCallback()}function checkCallback(){if(promiseStatus!==\"pending\")try{let result=runWithExpensiveErrorDiagnosticsDisabled(callback);typeof result?.then==\"function\"?(promiseStatus=\"pending\",result.then(resolvedValue=>{promiseStatus=\"resolved\",onDone(null,resolvedValue);},rejectedValue=>{promiseStatus=\"rejected\",lastError=rejectedValue;})):onDone(null,result);}catch(error){lastError=error;}}function handleTimeout(){let error;lastError?(error=lastError,!showOriginalStackTrace&&error.name===\"TestingLibraryElementError\"&©StackTrace(error,stackTraceError)):(error=new Error(\"Timed out in waitFor.\"),showOriginalStackTrace||copyStackTrace(error,stackTraceError)),onDone(onTimeout(error),null);}})}function waitForWrapper(callback,options){let stackTraceError=new Error(\"STACK_TRACE_MESSAGE\");return getConfig2().asyncWrapper(()=>waitFor(callback,{stackTraceError,...options}))}function getElementError(message,container){return getConfig2().getElementError(message,container)}function getMultipleElementsFoundError(message,container){return getElementError(message+\"\\n\\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).\",container)}function queryAllByAttribute(attribute,container,text,_temp){let{exact=!0,collapseWhitespace,trim,normalizer}=_temp===void 0?{}:_temp,matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace,trim,normalizer});return Array.from(container.querySelectorAll(\"[\"+attribute+\"]\")).filter(node=>matcher(node.getAttribute(attribute),node,text,matchNormalizer))}function queryByAttribute(attribute,container,text,options){let els=queryAllByAttribute(attribute,container,text,options);if(els.length>1)throw getMultipleElementsFoundError(\"Found multiple elements by [\"+attribute+\"=\"+text+\"]\",container);return els[0]||null}function makeSingleQuery(allQuery,getMultipleError2){return function(container){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];let els=allQuery(container,...args);if(els.length>1){let elementStrings=els.map(element=>getElementError(null,element).message).join(`\n\n`);throw getMultipleElementsFoundError(getMultipleError2(container,...args)+`\n\nHere are the matching elements:\n\n`+elementStrings,container)}return els[0]||null}}function getSuggestionError(suggestion,container){return getConfig2().getElementError(`A better query is available, try this:\n`+suggestion.toString()+`\n`,container)}function makeGetAllQuery(allQuery,getMissingError2){return function(container){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];let els=allQuery(container,...args);if(!els.length)throw getConfig2().getElementError(getMissingError2(container,...args),container);return els}}function makeFindQuery(getter){return (container,text,options,waitForOptions)=>waitForWrapper(()=>getter(container,text,options),{container,...waitForOptions})}var wrapSingleQueryWithSuggestion=(query,queryAllByName,variant)=>function(container){for(var _len3=arguments.length,args=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)args[_key3-1]=arguments[_key3];let element=query(container,...args),[{suggest=getConfig2().throwSuggestions}={}]=args.slice(-1);if(element&&suggest){let suggestion=getSuggestedQuery(element,variant);if(suggestion&&!queryAllByName.endsWith(suggestion.queryName))throw getSuggestionError(suggestion.toString(),container)}return element},wrapAllByQueryWithSuggestion=(query,queryAllByName,variant)=>function(container){for(var _len4=arguments.length,args=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++)args[_key4-1]=arguments[_key4];let els=query(container,...args),[{suggest=getConfig2().throwSuggestions}={}]=args.slice(-1);if(els.length&&suggest){let uniqueSuggestionMessages=[...new Set(els.map(element=>{var _getSuggestedQuery;return (_getSuggestedQuery=getSuggestedQuery(element,variant))==null?void 0:_getSuggestedQuery.toString()}))];if(uniqueSuggestionMessages.length===1&&!queryAllByName.endsWith(getSuggestedQuery(els[0],variant).queryName))throw getSuggestionError(uniqueSuggestionMessages[0],container)}return els};function buildQueries(queryAllBy,getMultipleError2,getMissingError2){let queryBy=wrapSingleQueryWithSuggestion(makeSingleQuery(queryAllBy,getMultipleError2),queryAllBy.name,\"query\"),getAllBy=makeGetAllQuery(queryAllBy,getMissingError2),getBy=makeSingleQuery(getAllBy,getMultipleError2),getByWithSuggestions=wrapSingleQueryWithSuggestion(getBy,queryAllBy.name,\"get\"),getAllWithSuggestions=wrapAllByQueryWithSuggestion(getAllBy,queryAllBy.name.replace(\"query\",\"get\"),\"getAll\"),findAllBy=makeFindQuery(wrapAllByQueryWithSuggestion(getAllBy,queryAllBy.name,\"findAll\")),findBy=makeFindQuery(wrapSingleQueryWithSuggestion(getBy,queryAllBy.name,\"find\"));return [queryBy,getAllWithSuggestions,getByWithSuggestions,findAllBy,findBy]}var queryHelpers=Object.freeze({__proto__:null,getElementError,wrapAllByQueryWithSuggestion,wrapSingleQueryWithSuggestion,getMultipleElementsFoundError,queryAllByAttribute,queryByAttribute,makeSingleQuery,makeGetAllQuery,makeFindQuery,buildQueries});function queryAllLabels(container){return Array.from(container.querySelectorAll(\"label,input\")).map(node=>({node,textToMatch:getLabelContent(node)})).filter(_ref=>{let{textToMatch}=_ref;return textToMatch!==null})}var queryAllLabelsByText=function(container,text,_temp){let{exact=!0,trim,collapseWhitespace,normalizer}=_temp===void 0?{}:_temp,matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace,trim,normalizer});return queryAllLabels(container).filter(_ref2=>{let{node,textToMatch}=_ref2;return matcher(textToMatch,node,text,matchNormalizer)}).map(_ref3=>{let{node}=_ref3;return node})},queryAllByLabelText=function(container,text,_temp2){let{selector=\"*\",exact=!0,collapseWhitespace,trim,normalizer}=_temp2===void 0?{}:_temp2;checkContainerType(container);let matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace,trim,normalizer}),matchingLabelledElements=Array.from(container.querySelectorAll(\"*\")).filter(element=>getRealLabels(element).length||element.hasAttribute(\"aria-labelledby\")).reduce((labelledElements,labelledElement)=>{let labelList=getLabels3(container,labelledElement,{selector});labelList.filter(label=>!!label.formControl).forEach(label=>{matcher(label.content,label.formControl,text,matchNormalizer)&&label.formControl&&labelledElements.push(label.formControl);});let labelsValue=labelList.filter(label=>!!label.content).map(label=>label.content);return matcher(labelsValue.join(\" \"),labelledElement,text,matchNormalizer)&&labelledElements.push(labelledElement),labelsValue.length>1&&labelsValue.forEach((labelValue,index)=>{matcher(labelValue,labelledElement,text,matchNormalizer)&&labelledElements.push(labelledElement);let labelsFiltered=[...labelsValue];labelsFiltered.splice(index,1),labelsFiltered.length>1&&matcher(labelsFiltered.join(\" \"),labelledElement,text,matchNormalizer)&&labelledElements.push(labelledElement);}),labelledElements},[]).concat(queryAllByAttribute(\"aria-label\",container,text,{exact,normalizer:matchNormalizer}));return Array.from(new Set(matchingLabelledElements)).filter(element=>element.matches(selector))},getAllByLabelText=function(container,text){for(var _len=arguments.length,rest=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++)rest[_key-2]=arguments[_key];let els=queryAllByLabelText(container,text,...rest);if(!els.length){let labels=queryAllLabelsByText(container,text,...rest);if(labels.length){let tagNames=labels.map(label=>getTagNameOfElementAssociatedWithLabelViaFor(container,label)).filter(tagName=>!!tagName);throw tagNames.length?getConfig2().getElementError(tagNames.map(tagName=>\"Found a label with the text of: \"+text+\", however the element associated with this label (<\"+tagName+\" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <\"+tagName+\" />, you can use aria-label or aria-labelledby instead.\").join(`\n\n`),container):getConfig2().getElementError(\"Found a label with the text of: \"+text+`, however no form control was found associated to that label. Make sure you're using the \"for\" attribute or \"aria-labelledby\" attribute correctly.`,container)}else throw getConfig2().getElementError(\"Unable to find a label with the text of: \"+text,container)}return els};function getTagNameOfElementAssociatedWithLabelViaFor(container,label){let htmlFor=label.getAttribute(\"for\");if(!htmlFor)return null;let element=container.querySelector('[id=\"'+htmlFor+'\"]');return element?element.tagName.toLowerCase():null}var getMultipleError$7=(c,text)=>\"Found multiple elements with the text of: \"+text,queryByLabelText=wrapSingleQueryWithSuggestion(makeSingleQuery(queryAllByLabelText,getMultipleError$7),queryAllByLabelText.name,\"query\"),getByLabelText=makeSingleQuery(getAllByLabelText,getMultipleError$7),findAllByLabelText=makeFindQuery(wrapAllByQueryWithSuggestion(getAllByLabelText,getAllByLabelText.name,\"findAll\")),findByLabelText=makeFindQuery(wrapSingleQueryWithSuggestion(getByLabelText,getAllByLabelText.name,\"find\")),getAllByLabelTextWithSuggestions=wrapAllByQueryWithSuggestion(getAllByLabelText,getAllByLabelText.name,\"getAll\"),getByLabelTextWithSuggestions=wrapSingleQueryWithSuggestion(getByLabelText,getAllByLabelText.name,\"get\"),queryAllByLabelTextWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByLabelText,queryAllByLabelText.name,\"queryAll\"),queryAllByPlaceholderText=function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return checkContainerType(args[0]),queryAllByAttribute(\"placeholder\",...args)},getMultipleError$6=(c,text)=>\"Found multiple elements with the placeholder text of: \"+text,getMissingError$6=(c,text)=>\"Unable to find an element with the placeholder text of: \"+text,queryAllByPlaceholderTextWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByPlaceholderText,queryAllByPlaceholderText.name,\"queryAll\"),[queryByPlaceholderText,getAllByPlaceholderText,getByPlaceholderText,findAllByPlaceholderText,findByPlaceholderText]=buildQueries(queryAllByPlaceholderText,getMultipleError$6,getMissingError$6),queryAllByText=function(container,text,_temp){let{selector=\"*\",exact=!0,collapseWhitespace,trim,ignore=getConfig2().defaultIgnore,normalizer}=_temp===void 0?{}:_temp;checkContainerType(container);let matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace,trim,normalizer}),baseArray=[];return typeof container.matches==\"function\"&&container.matches(selector)&&(baseArray=[container]),[...baseArray,...Array.from(container.querySelectorAll(selector))].filter(node=>!ignore||!node.matches(ignore)).filter(node=>matcher(getNodeText(node),node,text,matchNormalizer))},getMultipleError$5=(c,text)=>\"Found multiple elements with the text: \"+text,getMissingError$5=function(c,text,options){options===void 0&&(options={});let{collapseWhitespace,trim,normalizer,selector}=options,normalizedText=makeNormalizer({collapseWhitespace,trim,normalizer})(text.toString()),isNormalizedDifferent=normalizedText!==text.toString(),isCustomSelector=(selector??\"*\")!==\"*\";return \"Unable to find an element with the text: \"+(isNormalizedDifferent?normalizedText+\" (normalized from '\"+text+\"')\":text)+(isCustomSelector?\", which matches selector '\"+selector+\"'\":\"\")+\". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.\"},queryAllByTextWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByText,queryAllByText.name,\"queryAll\"),[queryByText,getAllByText,getByText,findAllByText,findByText]=buildQueries(queryAllByText,getMultipleError$5,getMissingError$5),queryAllByDisplayValue=function(container,value,_temp){let{exact=!0,collapseWhitespace,trim,normalizer}=_temp===void 0?{}:_temp;checkContainerType(container);let matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace,trim,normalizer});return Array.from(container.querySelectorAll(\"input,textarea,select\")).filter(node=>node.tagName===\"SELECT\"?Array.from(node.options).filter(option=>option.selected).some(optionNode=>matcher(getNodeText(optionNode),optionNode,value,matchNormalizer)):matcher(node.value,node,value,matchNormalizer))},getMultipleError$4=(c,value)=>\"Found multiple elements with the display value: \"+value+\".\",getMissingError$4=(c,value)=>\"Unable to find an element with the display value: \"+value+\".\",queryAllByDisplayValueWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByDisplayValue,queryAllByDisplayValue.name,\"queryAll\"),[queryByDisplayValue,getAllByDisplayValue,getByDisplayValue,findAllByDisplayValue,findByDisplayValue]=buildQueries(queryAllByDisplayValue,getMultipleError$4,getMissingError$4),VALID_TAG_REGEXP=/^(img|input|area|.+-.+)$/i,queryAllByAltText=function(container,alt,options){return options===void 0&&(options={}),checkContainerType(container),queryAllByAttribute(\"alt\",container,alt,options).filter(node=>VALID_TAG_REGEXP.test(node.tagName))},getMultipleError$3=(c,alt)=>\"Found multiple elements with the alt text: \"+alt,getMissingError$3=(c,alt)=>\"Unable to find an element with the alt text: \"+alt,queryAllByAltTextWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByAltText,queryAllByAltText.name,\"queryAll\"),[queryByAltText,getAllByAltText,getByAltText,findAllByAltText,findByAltText]=buildQueries(queryAllByAltText,getMultipleError$3,getMissingError$3),isSvgTitle=node=>{var _node$parentElement;return node.tagName.toLowerCase()===\"title\"&&((_node$parentElement=node.parentElement)==null?void 0:_node$parentElement.tagName.toLowerCase())===\"svg\"},queryAllByTitle=function(container,text,_temp){let{exact=!0,collapseWhitespace,trim,normalizer}=_temp===void 0?{}:_temp;checkContainerType(container);let matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace,trim,normalizer});return Array.from(container.querySelectorAll(\"[title], svg > title\")).filter(node=>matcher(node.getAttribute(\"title\"),node,text,matchNormalizer)||isSvgTitle(node)&&matcher(getNodeText(node),node,text,matchNormalizer))},getMultipleError$2=(c,title)=>\"Found multiple elements with the title: \"+title+\".\",getMissingError$2=(c,title)=>\"Unable to find an element with the title: \"+title+\".\",queryAllByTitleWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByTitle,queryAllByTitle.name,\"queryAll\"),[queryByTitle,getAllByTitle,getByTitle,findAllByTitle,findByTitle]=buildQueries(queryAllByTitle,getMultipleError$2,getMissingError$2),queryAllByRole=function(container,role,_temp){let{hidden=getConfig2().defaultHidden,name,description,queryFallbacks=!1,selected,busy,checked,pressed,current,level,expanded,value:{now:valueNow,min:valueMin,max:valueMax,text:valueText}={}}=_temp===void 0?{}:_temp;if(checkContainerType(container),selected!==void 0){var _allRoles$get;if(((_allRoles$get=import_aria_query3.roles.get(role))==null?void 0:_allRoles$get.props[\"aria-selected\"])===void 0)throw new Error('\"aria-selected\" is not supported on role \"'+role+'\".')}if(busy!==void 0){var _allRoles$get2;if(((_allRoles$get2=import_aria_query3.roles.get(role))==null?void 0:_allRoles$get2.props[\"aria-busy\"])===void 0)throw new Error('\"aria-busy\" is not supported on role \"'+role+'\".')}if(checked!==void 0){var _allRoles$get3;if(((_allRoles$get3=import_aria_query3.roles.get(role))==null?void 0:_allRoles$get3.props[\"aria-checked\"])===void 0)throw new Error('\"aria-checked\" is not supported on role \"'+role+'\".')}if(pressed!==void 0){var _allRoles$get4;if(((_allRoles$get4=import_aria_query3.roles.get(role))==null?void 0:_allRoles$get4.props[\"aria-pressed\"])===void 0)throw new Error('\"aria-pressed\" is not supported on role \"'+role+'\".')}if(current!==void 0){var _allRoles$get5;if(((_allRoles$get5=import_aria_query3.roles.get(role))==null?void 0:_allRoles$get5.props[\"aria-current\"])===void 0)throw new Error('\"aria-current\" is not supported on role \"'+role+'\".')}if(level!==void 0&&role!==\"heading\")throw new Error('Role \"'+role+'\" cannot have \"level\" property.');if(valueNow!==void 0){var _allRoles$get6;if(((_allRoles$get6=import_aria_query3.roles.get(role))==null?void 0:_allRoles$get6.props[\"aria-valuenow\"])===void 0)throw new Error('\"aria-valuenow\" is not supported on role \"'+role+'\".')}if(valueMax!==void 0){var _allRoles$get7;if(((_allRoles$get7=import_aria_query3.roles.get(role))==null?void 0:_allRoles$get7.props[\"aria-valuemax\"])===void 0)throw new Error('\"aria-valuemax\" is not supported on role \"'+role+'\".')}if(valueMin!==void 0){var _allRoles$get8;if(((_allRoles$get8=import_aria_query3.roles.get(role))==null?void 0:_allRoles$get8.props[\"aria-valuemin\"])===void 0)throw new Error('\"aria-valuemin\" is not supported on role \"'+role+'\".')}if(valueText!==void 0){var _allRoles$get9;if(((_allRoles$get9=import_aria_query3.roles.get(role))==null?void 0:_allRoles$get9.props[\"aria-valuetext\"])===void 0)throw new Error('\"aria-valuetext\" is not supported on role \"'+role+'\".')}if(expanded!==void 0){var _allRoles$get10;if(((_allRoles$get10=import_aria_query3.roles.get(role))==null?void 0:_allRoles$get10.props[\"aria-expanded\"])===void 0)throw new Error('\"aria-expanded\" is not supported on role \"'+role+'\".')}let subtreeIsInaccessibleCache=new WeakMap;function cachedIsSubtreeInaccessible(element){return subtreeIsInaccessibleCache.has(element)||subtreeIsInaccessibleCache.set(element,isSubtreeInaccessible(element)),subtreeIsInaccessibleCache.get(element)}return Array.from(container.querySelectorAll(makeRoleSelector(role))).filter(node=>{if(node.hasAttribute(\"role\")){let roleValue=node.getAttribute(\"role\");if(queryFallbacks)return roleValue.split(\" \").filter(Boolean).some(roleAttributeToken=>roleAttributeToken===role);let[firstRoleAttributeToken]=roleValue.split(\" \");return firstRoleAttributeToken===role}return getImplicitAriaRoles2(node).some(implicitRole=>implicitRole===role)}).filter(element=>{if(selected!==void 0)return selected===computeAriaSelected(element);if(busy!==void 0)return busy===computeAriaBusy(element);if(checked!==void 0)return checked===computeAriaChecked(element);if(pressed!==void 0)return pressed===computeAriaPressed(element);if(current!==void 0)return current===computeAriaCurrent(element);if(expanded!==void 0)return expanded===computeAriaExpanded(element);if(level!==void 0)return level===computeHeadingLevel(element);if(valueNow!==void 0||valueMax!==void 0||valueMin!==void 0||valueText!==void 0){let valueMatches=!0;if(valueNow!==void 0&&valueMatches&&(valueMatches=valueNow===computeAriaValueNow(element)),valueMax!==void 0&&valueMatches&&(valueMatches=valueMax===computeAriaValueMax(element)),valueMin!==void 0&&valueMatches&&(valueMatches=valueMin===computeAriaValueMin(element)),valueText!==void 0){var _computeAriaValueText;valueMatches&&(valueMatches=matches2((_computeAriaValueText=computeAriaValueText(element))!=null?_computeAriaValueText:null,element,valueText,text=>text));}return valueMatches}return !0}).filter(element=>name===void 0?!0:matches2(computeAccessibleName2(element,{computedStyleSupportsPseudoElements:getConfig2().computedStyleSupportsPseudoElements}),element,name,text=>text)).filter(element=>description===void 0?!0:matches2(computeAccessibleDescription2(element,{computedStyleSupportsPseudoElements:getConfig2().computedStyleSupportsPseudoElements}),element,description,text=>text)).filter(element=>hidden===!1?isInaccessible(element,{isSubtreeInaccessible:cachedIsSubtreeInaccessible})===!1:!0)};function makeRoleSelector(role){var _roleElements$get;let explicitRoleSelector='*[role~=\"'+role+'\"]',roleRelations=(_roleElements$get=import_aria_query3.roleElements.get(role))!=null?_roleElements$get:new Set,implicitRoleSelectors=new Set(Array.from(roleRelations).map(_ref=>{let{name}=_ref;return name}));return [explicitRoleSelector].concat(Array.from(implicitRoleSelectors)).join(\",\")}var getNameHint=name=>{let nameHint=\"\";return name===void 0?nameHint=\"\":typeof name==\"string\"?nameHint=' and name \"'+name+'\"':nameHint=\" and name `\"+name+\"`\",nameHint},getMultipleError$1=function(c,role,_temp2){let{name}=_temp2===void 0?{}:_temp2;return 'Found multiple elements with the role \"'+role+'\"'+getNameHint(name)},getMissingError$1=function(container,role,_temp3){let{hidden=getConfig2().defaultHidden,name,description}=_temp3===void 0?{}:_temp3;if(getConfig2()._disableExpensiveErrorDiagnostics)return 'Unable to find role=\"'+role+'\"'+getNameHint(name);let roles3=\"\";Array.from(container.children).forEach(childElement=>{roles3+=prettyRoles(childElement,{hidden,includeDescription:description!==void 0});});let roleMessage;roles3.length===0?hidden===!1?roleMessage=\"There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole\":roleMessage=\"There are no available roles.\":roleMessage=(`\nHere are the `+(hidden===!1?\"accessible\":\"available\")+` roles:\n\n `+roles3.replace(/\\n/g,`\n `).replace(/\\n\\s\\s\\n/g,`\n\n`)+`\n`).trim();let nameHint=\"\";name===void 0?nameHint=\"\":typeof name==\"string\"?nameHint=' and name \"'+name+'\"':nameHint=\" and name `\"+name+\"`\";let descriptionHint=\"\";return description===void 0?descriptionHint=\"\":typeof description==\"string\"?descriptionHint=' and description \"'+description+'\"':descriptionHint=\" and description `\"+description+\"`\",(`\nUnable to find an `+(hidden===!1?\"accessible \":\"\")+'element with the role \"'+role+'\"'+nameHint+descriptionHint+`\n\n`+roleMessage).trim()},queryAllByRoleWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByRole,queryAllByRole.name,\"queryAll\"),[queryByRole,getAllByRole,getByRole,findAllByRole,findByRole]=buildQueries(queryAllByRole,getMultipleError$1,getMissingError$1),getTestIdAttribute=()=>getConfig2().testIdAttribute,queryAllByTestId=function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return checkContainerType(args[0]),queryAllByAttribute(getTestIdAttribute(),...args)},getMultipleError=(c,id)=>\"Found multiple elements by: [\"+getTestIdAttribute()+'=\"'+id+'\"]',getMissingError=(c,id)=>\"Unable to find an element by: [\"+getTestIdAttribute()+'=\"'+id+'\"]',queryAllByTestIdWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByTestId,queryAllByTestId.name,\"queryAll\"),[queryByTestId,getAllByTestId,getByTestId,findAllByTestId,findByTestId]=buildQueries(queryAllByTestId,getMultipleError,getMissingError),queries=Object.freeze({__proto__:null,queryAllByLabelText:queryAllByLabelTextWithSuggestions,queryByLabelText,getAllByLabelText:getAllByLabelTextWithSuggestions,getByLabelText:getByLabelTextWithSuggestions,findAllByLabelText,findByLabelText,queryByPlaceholderText,queryAllByPlaceholderText:queryAllByPlaceholderTextWithSuggestions,getByPlaceholderText,getAllByPlaceholderText,findAllByPlaceholderText,findByPlaceholderText,queryByText,queryAllByText:queryAllByTextWithSuggestions,getByText,getAllByText,findAllByText,findByText,queryByDisplayValue,queryAllByDisplayValue:queryAllByDisplayValueWithSuggestions,getByDisplayValue,getAllByDisplayValue,findAllByDisplayValue,findByDisplayValue,queryByAltText,queryAllByAltText:queryAllByAltTextWithSuggestions,getByAltText,getAllByAltText,findAllByAltText,findByAltText,queryByTitle,queryAllByTitle:queryAllByTitleWithSuggestions,getByTitle,getAllByTitle,findAllByTitle,findByTitle,queryByRole,queryAllByRole:queryAllByRoleWithSuggestions,getAllByRole,getByRole,findAllByRole,findByRole,queryByTestId,queryAllByTestId:queryAllByTestIdWithSuggestions,getByTestId,getAllByTestId,findAllByTestId,findByTestId});function getQueriesForElement(element,queries$1,initialValue2){return queries$1===void 0&&(queries$1=queries),initialValue2===void 0&&(initialValue2={}),Object.keys(queries$1).reduce((helpers,key)=>{let fn3=queries$1[key];return helpers[key]=fn3.bind(null,element),helpers},initialValue2)}var isRemoved=result=>!result||Array.isArray(result)&&!result.length;function initialCheck(elements){if(isRemoved(elements))throw new Error(\"The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.\")}async function waitForElementToBeRemoved(callback,options){let timeoutError=new Error(\"Timed out in waitForElementToBeRemoved.\");if(typeof callback!=\"function\"){initialCheck(callback);let getRemainingElements=(Array.isArray(callback)?callback:[callback]).map(element=>{let parent=element.parentElement;if(parent===null)return ()=>null;for(;parent.parentElement;)parent=parent.parentElement;return ()=>parent.contains(element)?element:null});callback=()=>getRemainingElements.map(c=>c()).filter(Boolean);}return initialCheck(callback()),waitForWrapper(()=>{let result;try{result=callback();}catch(error){if(error.name===\"TestingLibraryElementError\")return;throw error}if(!isRemoved(result))throw timeoutError},options)}var eventMap={copy:{EventType:\"ClipboardEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:\"ClipboardEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:\"ClipboardEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:\"CompositionEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:\"CompositionEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:\"CompositionEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:\"KeyboardEvent\",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:\"KeyboardEvent\",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:\"KeyboardEvent\",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:\"FocusEvent\",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:\"FocusEvent\",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:\"FocusEvent\",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:\"FocusEvent\",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:\"Event\",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:\"InputEvent\",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:\"Event\",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:\"Event\",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:\"MouseEvent\",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:\"MouseEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:\"MouseEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:\"DragEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:\"DragEvent\",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:\"DragEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:\"DragEvent\",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:\"DragEvent\",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:\"DragEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:\"DragEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:\"DragEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:\"MouseEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:\"MouseEvent\",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:\"MouseEvent\",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:\"MouseEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:\"MouseEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:\"MouseEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:\"MouseEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:\"Event\",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:\"TouchEvent\",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:\"TouchEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:\"TouchEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:\"TouchEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:\"UIEvent\",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:\"UIEvent\",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:\"WheelEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:\"ProgressEvent\",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:\"ProgressEvent\",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:\"AnimationEvent\",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:\"AnimationEvent\",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:\"AnimationEvent\",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:\"TransitionEvent\",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:\"TransitionEvent\",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:\"TransitionEvent\",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:\"TransitionEvent\",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:\"PointerEvent\",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:\"PointerEvent\",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:\"PopStateEvent\",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:\"Event\",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:\"PageTransitionEvent\",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:\"PageTransitionEvent\",defaultInit:{bubbles:!0,cancelable:!0}}},eventAliasMap={doubleClick:\"dblClick\"};function fireEvent(element,event){return getConfig2().eventWrapper(()=>{if(!event)throw new Error(\"Unable to fire an event - please provide an event object.\");if(!element)throw new Error('Unable to fire a \"'+event.type+'\" event - please provide a DOM element.');return element.dispatchEvent(event)})}function createEvent(eventName,node,init,_temp){let{EventType=\"Event\",defaultInit={}}=_temp===void 0?{}:_temp;if(!node)throw new Error('Unable to fire a \"'+eventName+'\" event - please provide a DOM element.');let eventInit={...defaultInit,...init},{target:{value,files,...targetProperties}={}}=eventInit;value!==void 0&&setNativeValue(node,value),files!==void 0&&Object.defineProperty(node,\"files\",{configurable:!0,enumerable:!0,writable:!0,value:files}),Object.assign(node,targetProperties);let window2=getWindowFromNode(node),EventConstructor=window2[EventType]||window2.Event,event;if(typeof EventConstructor==\"function\")event=new EventConstructor(eventName,eventInit);else {event=window2.document.createEvent(EventType);let{bubbles,cancelable,detail,...otherInit}=eventInit;event.initEvent(eventName,bubbles,cancelable,detail),Object.keys(otherInit).forEach(eventKey=>{event[eventKey]=otherInit[eventKey];});}return [\"dataTransfer\",\"clipboardData\"].forEach(dataTransferKey=>{let dataTransferValue=eventInit[dataTransferKey];typeof dataTransferValue==\"object\"&&(typeof window2.DataTransfer==\"function\"?Object.defineProperty(event,dataTransferKey,{value:Object.getOwnPropertyNames(dataTransferValue).reduce((acc,propName)=>(Object.defineProperty(acc,propName,{value:dataTransferValue[propName]}),acc),new window2.DataTransfer)}):Object.defineProperty(event,dataTransferKey,{value:dataTransferValue}));}),event}Object.keys(eventMap).forEach(key=>{let{EventType,defaultInit}=eventMap[key],eventName=key.toLowerCase();createEvent[key]=(node,init)=>createEvent(eventName,node,init,{EventType,defaultInit}),fireEvent[key]=(node,init)=>fireEvent(node,createEvent[key](node,init));});function setNativeValue(element,value){let{set:valueSetter}=Object.getOwnPropertyDescriptor(element,\"value\")||{},prototype=Object.getPrototypeOf(element),{set:prototypeValueSetter}=Object.getOwnPropertyDescriptor(prototype,\"value\")||{};if(prototypeValueSetter&&valueSetter!==prototypeValueSetter)prototypeValueSetter.call(element,value);else if(valueSetter)valueSetter.call(element,value);else throw new Error(\"The given element does not have a value setter\")}Object.keys(eventAliasMap).forEach(aliasKey=>{let key=eventAliasMap[aliasKey];fireEvent[aliasKey]=function(){return fireEvent[key](...arguments)};});function unindent(string){return string.replace(/[ \\t]*[\\n][ \\t]*/g,`\n`)}function encode(value){return import_lz_string.default.compressToEncodedURIComponent(unindent(value))}function getPlaygroundUrl(markup){return \"https://testing-playground.com/#markup=\"+encode(markup)}var debug=(element,maxLength,options)=>Array.isArray(element)?element.forEach(el=>logDOM(el,maxLength,options)):logDOM(element,maxLength,options),logTestingPlaygroundURL=function(element){if(element===void 0&&(element=getDocument().body),!element||!(\"innerHTML\"in element)){console.log(\"The element you're providing isn't a valid DOM element.\");return}if(!element.innerHTML){console.log(\"The provided element doesn't have any children.\");return}let playgroundUrl=getPlaygroundUrl(element.innerHTML);return console.log(`Open this URL in your browser\n\n`+playgroundUrl),playgroundUrl},initialValue={debug,logTestingPlaygroundURL},screen=typeof document<\"u\"&&document.body?getQueriesForElement(document.body,queries,initialValue):Object.keys(queries).reduce((helpers,key)=>(helpers[key]=()=>{throw new TypeError(\"For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error\")},helpers),initialValue);function isElementType(element,tag,props){return element.namespaceURI&&element.namespaceURI!==\"http://www.w3.org/1999/xhtml\"||(tag=Array.isArray(tag)?tag:[tag],!tag.includes(element.tagName.toLowerCase()))?!1:props?Object.entries(props).every(([k2,v])=>element[k2]===v):!0}var clickableInputTypes;(function(clickableInputTypes2){clickableInputTypes2.button=\"button\",clickableInputTypes2.color=\"color\",clickableInputTypes2.file=\"file\",clickableInputTypes2.image=\"image\",clickableInputTypes2.reset=\"reset\",clickableInputTypes2.submit=\"submit\",clickableInputTypes2.checkbox=\"checkbox\",clickableInputTypes2.radio=\"radio\";})(clickableInputTypes||(clickableInputTypes={}));function isClickableInput(element){return isElementType(element,\"button\")||isElementType(element,\"input\")&&element.type in clickableInputTypes}function getWindow(node){var _node_ownerDocument;if(isDocument(node)&&node.defaultView)return node.defaultView;if(!((_node_ownerDocument=node.ownerDocument)===null||_node_ownerDocument===void 0)&&_node_ownerDocument.defaultView)return node.ownerDocument.defaultView;throw new Error(`Could not determine window of node. Node was ${describe(node)}`)}function isDocument(node){return node.nodeType===9}function describe(val){return typeof val==\"function\"?`function ${val.name}`:val===null?\"null\":String(val)}function readBlobText(blob,FileReader){return new Promise((res,rej)=>{let fr=new FileReader;fr.onerror=rej,fr.onabort=rej,fr.onload=()=>{res(String(fr.result));},fr.readAsText(blob);})}function createFileList(window2,files){let list={...files,length:files.length,item:index=>list[index],[Symbol.iterator]:function*(){for(let i=0;iexact?item.type===(isGroup?group:type5):isGroup?item.type.startsWith(`${group}/`):item.type===group}function createDataTransferStub(window2){return new class{getData(format4){var _this_items_find;let match=(_this_items_find=this.items.find(getTypeMatcher(format4,!0)))!==null&&_this_items_find!==void 0?_this_items_find:this.items.find(getTypeMatcher(format4,!1)),text=\"\";return match?.getAsString(t=>{text=t;}),text}setData(format4,data){let matchIndex=this.items.findIndex(getTypeMatcher(format4,!0)),item=new DataTransferItemStub(data,format4);matchIndex>=0?this.items.splice(matchIndex,1,item):this.items.push(item);}clearData(format4){if(format4){let matchIndex=this.items.findIndex(getTypeMatcher(format4,!0));matchIndex>=0&&this.items.remove(matchIndex);}else this.items.clear();}get types(){let t=[];return this.files.length&&t.push(\"Files\"),this.items.forEach(i=>t.push(i.type)),Object.freeze(t),t}setDragImage(){}constructor(){_define_property(this,\"dropEffect\",\"none\"),_define_property(this,\"effectAllowed\",\"uninitialized\"),_define_property(this,\"items\",new DataTransferItemListStub),_define_property(this,\"files\",createFileList(window2,[]));}}}function createDataTransfer(window2,files=[]){let dt=typeof window2.DataTransfer>\"u\"?createDataTransferStub(window2):new window2.DataTransfer;return Object.defineProperty(dt,\"files\",{get:()=>createFileList(window2,files)}),dt}function getBlobFromDataTransferItem(window2,item){if(item.kind===\"file\")return item.getAsFile();let data=\"\";return item.getAsString(s=>{data=s;}),new window2.Blob([data],{type:item.type})}function _define_property2(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function createClipboardItem(window2,...blobs){let dataMap=Object.fromEntries(blobs.map(b=>[typeof b==\"string\"?\"text/plain\":b.type,Promise.resolve(b)]));return typeof window2.ClipboardItem<\"u\"?new window2.ClipboardItem(dataMap):new class{get types(){return Array.from(Object.keys(this.data))}async getType(type5){let value=await this.data[type5];if(!value)throw new Error(`${type5} is not one of the available MIME types on this item.`);return value instanceof window2.Blob?value:new window2.Blob([value],{type:type5})}constructor(d2){_define_property2(this,\"data\",void 0),this.data=d2;}}(dataMap)}var ClipboardStubControl=Symbol(\"Manage ClipboardSub\");function createClipboardStub(window2,control){return Object.assign(new class extends window2.EventTarget{async read(){return Array.from(this.items)}async readText(){let text=\"\";for(let item of this.items){let type5=item.types.includes(\"text/plain\")?\"text/plain\":item.types.find(t=>t.startsWith(\"text/\"));type5&&(text+=await item.getType(type5).then(b=>readBlobText(b,window2.FileReader)));}return text}async write(data){this.items=data;}async writeText(text){this.items=[createClipboardItem(window2,text)];}constructor(...args){super(...args),_define_property2(this,\"items\",[]);}},{[ClipboardStubControl]:control})}function isClipboardStub(clipboard){return !!clipboard?.[ClipboardStubControl]}function attachClipboardStubToView(window2){if(isClipboardStub(window2.navigator.clipboard))return window2.navigator.clipboard[ClipboardStubControl];let realClipboard=Object.getOwnPropertyDescriptor(window2.navigator,\"clipboard\"),stub,control={resetClipboardStub:()=>{stub=createClipboardStub(window2,control);},detachClipboardStub:()=>{realClipboard?Object.defineProperty(window2.navigator,\"clipboard\",realClipboard):Object.defineProperty(window2.navigator,\"clipboard\",{value:void 0,configurable:!0});}};return stub=createClipboardStub(window2,control),Object.defineProperty(window2.navigator,\"clipboard\",{get:()=>stub,configurable:!0}),stub[ClipboardStubControl]}function resetClipboardStubOnView(window2){isClipboardStub(window2.navigator.clipboard)&&window2.navigator.clipboard[ClipboardStubControl].resetClipboardStub();}function detachClipboardStubFromView(window2){isClipboardStub(window2.navigator.clipboard)&&window2.navigator.clipboard[ClipboardStubControl].detachClipboardStub();}async function readDataTransferFromClipboard(document2){let window2=document2.defaultView,clipboard=window2?.navigator.clipboard,items=clipboard&&await clipboard.read();if(!items)throw new Error(\"The Clipboard API is unavailable.\");let dt=createDataTransfer(window2);for(let item of items)for(let type5 of item.types)dt.setData(type5,await item.getType(type5).then(b=>readBlobText(b,window2.FileReader)));return dt}async function writeDataTransferToClipboard(document2,clipboardData){let window2=getWindow(document2),clipboard=window2.navigator.clipboard,items=[];for(let i=0;i!0,()=>!1)))throw new Error(\"The Clipboard API is unavailable.\")}var g2=globalThis;typeof g2.afterEach==\"function\"&&g2.afterEach(()=>resetClipboardStubOnView(globalThis.window));typeof g2.afterAll==\"function\"&&g2.afterAll(()=>detachClipboardStubFromView(globalThis.window));function isContentEditable(element){return element.hasAttribute(\"contenteditable\")&&(element.getAttribute(\"contenteditable\")==\"true\"||element.getAttribute(\"contenteditable\")==\"\")}function getContentEditable(node){let element=getElement(node);return element&&(element.closest('[contenteditable=\"\"]')||element.closest('[contenteditable=\"true\"]'))}function getElement(node){return node.nodeType===1?node:node.parentElement}function isEditable(element){return isEditableInputOrTextArea(element)&&!element.readOnly||isContentEditable(element)}var editableInputTypes;(function(editableInputTypes2){editableInputTypes2.text=\"text\",editableInputTypes2.date=\"date\",editableInputTypes2[\"datetime-local\"]=\"datetime-local\",editableInputTypes2.email=\"email\",editableInputTypes2.month=\"month\",editableInputTypes2.number=\"number\",editableInputTypes2.password=\"password\",editableInputTypes2.search=\"search\",editableInputTypes2.tel=\"tel\",editableInputTypes2.time=\"time\",editableInputTypes2.url=\"url\",editableInputTypes2.week=\"week\";})(editableInputTypes||(editableInputTypes={}));function isEditableInputOrTextArea(element){return isElementType(element,\"textarea\")||isElementType(element,\"input\")&&element.type in editableInputTypes}var maxLengthSupportedTypes;(function(maxLengthSupportedTypes2){maxLengthSupportedTypes2.email=\"email\",maxLengthSupportedTypes2.password=\"password\",maxLengthSupportedTypes2.search=\"search\",maxLengthSupportedTypes2.telephone=\"telephone\",maxLengthSupportedTypes2.text=\"text\",maxLengthSupportedTypes2.url=\"url\";})(maxLengthSupportedTypes||(maxLengthSupportedTypes={}));function getMaxLength(element){var _element_getAttribute;let attr=(_element_getAttribute=element.getAttribute(\"maxlength\"))!==null&&_element_getAttribute!==void 0?_element_getAttribute:\"\";return /^\\d+$/.test(attr)&&Number(attr)>=0?Number(attr):void 0}function supportsMaxLength(element){return isElementType(element,\"textarea\")||isElementType(element,\"input\")&&element.type in maxLengthSupportedTypes}var FOCUSABLE_SELECTOR=[\"input:not([type=hidden]):not([disabled])\",\"button:not([disabled])\",\"select:not([disabled])\",\"textarea:not([disabled])\",'[contenteditable=\"\"]','[contenteditable=\"true\"]',\"a[href]\",\"[tabindex]:not([disabled])\"].join(\", \");function isFocusable(element){return element.matches(FOCUSABLE_SELECTOR)}var bracketDict;(function(bracketDict2){bracketDict2[\"{\"]=\"}\",bracketDict2[\"[\"]=\"]\";})(bracketDict||(bracketDict={}));function readNextDescriptor(text,context){let pos=0,startBracket=text[pos]in bracketDict?text[pos]:\"\";pos+=startBracket.length;let type5=new RegExp(`^\\\\${startBracket}{2}`).test(text)?\"\":startBracket;return {type:type5,...type5===\"\"?readPrintableChar(text,pos,context):readTag(text,pos,type5,context)}}function readPrintableChar(text,pos,context){let descriptor=text[pos];return assertDescriptor(descriptor,text,pos,context),pos+=descriptor.length,{consumedLength:pos,descriptor,releasePrevious:!1,releaseSelf:!0,repeat:1}}function readTag(text,pos,startBracket,context){var _text_slice_match,_text_slice_match1;let releasePreviousModifier=text[pos]===\"/\"?\"/\":\"\";pos+=releasePreviousModifier.length;let escapedDescriptor=startBracket===\"{\"&&text[pos]===\"\\\\\";pos+=Number(escapedDescriptor);let descriptor=escapedDescriptor?text[pos]:(_text_slice_match=text.slice(pos).match(startBracket===\"{\"?/^\\w+|^[^}>/]/:/^\\w+/))===null||_text_slice_match===void 0?void 0:_text_slice_match[0];assertDescriptor(descriptor,text,pos,context),pos+=descriptor.length;var _text_slice_match_;let repeatModifier=(_text_slice_match_=(_text_slice_match1=text.slice(pos).match(/^>\\d+/))===null||_text_slice_match1===void 0?void 0:_text_slice_match1[0])!==null&&_text_slice_match_!==void 0?_text_slice_match_:\"\";pos+=repeatModifier.length;let releaseSelfModifier=text[pos]===\"/\"||!repeatModifier&&text[pos]===\">\"?text[pos]:\"\";pos+=releaseSelfModifier.length;let expectedEndBracket=bracketDict[startBracket],endBracket=text[pos]===expectedEndBracket?expectedEndBracket:\"\";if(!endBracket)throw new Error(getErrorMessage([!repeatModifier&&\"repeat modifier\",!releaseSelfModifier&&\"release modifier\",`\"${expectedEndBracket}\"`].filter(Boolean).join(\" or \"),text[pos],text,context));return pos+=endBracket.length,{consumedLength:pos,descriptor,releasePrevious:!!releasePreviousModifier,repeat:repeatModifier?Math.max(Number(repeatModifier.substr(1)),1):1,releaseSelf:hasReleaseSelf(releaseSelfModifier,repeatModifier)}}function assertDescriptor(descriptor,text,pos,context){if(!descriptor)throw new Error(getErrorMessage(\"key descriptor\",text[pos],text,context))}function hasReleaseSelf(releaseSelfModifier,repeatModifier){if(releaseSelfModifier)return releaseSelfModifier===\"/\";if(repeatModifier)return !1}function getErrorMessage(expected,found,text,context){return `Expected ${expected} but found \"${found??\"\"}\" in \"${text}\"\n See ${context===\"pointer\"?\"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen\":\"https://testing-library.com/docs/user-event/keyboard\"}\n for more information about how userEvent parses your input.`}function cloneEvent(event){return new event.constructor(event.type,event)}var ApiLevel;(function(ApiLevel2){ApiLevel2[ApiLevel2.Trigger=2]=\"Trigger\",ApiLevel2[ApiLevel2.Call=1]=\"Call\";})(ApiLevel||(ApiLevel={}));function setLevelRef(instance,level){instance.levelRefs[level]={};}function getLevelRef(instance,level){return instance.levelRefs[level]}var PointerEventsCheckLevel;(function(PointerEventsCheckLevel2){PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachTrigger=4]=\"EachTrigger\",PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachApiCall=2]=\"EachApiCall\",PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachTarget=1]=\"EachTarget\",PointerEventsCheckLevel2[PointerEventsCheckLevel2.Never=0]=\"Never\";})(PointerEventsCheckLevel||(PointerEventsCheckLevel={}));function isDisabled2(element){for(let el=element;el;el=el.parentElement)if(isElementType(el,[\"button\",\"input\",\"select\",\"textarea\",\"optgroup\",\"option\"])){if(el.hasAttribute(\"disabled\"))return !0}else if(isElementType(el,\"fieldset\")){var _el_querySelector;if(el.hasAttribute(\"disabled\")&&!(!((_el_querySelector=el.querySelector(\":scope > legend\"))===null||_el_querySelector===void 0)&&_el_querySelector.contains(element)))return !0}else if(el.tagName.includes(\"-\")&&el.constructor.formAssociated&&el.hasAttribute(\"disabled\"))return !0;return !1}function getActiveElement(document2){let activeElement=document2.activeElement;return activeElement?.shadowRoot?getActiveElement(activeElement.shadowRoot):isDisabled2(activeElement)?document2.ownerDocument?document2.ownerDocument.body:document2.body:activeElement}function getActiveElementOrBody(document2){var _getActiveElement;return (_getActiveElement=getActiveElement(document2))!==null&&_getActiveElement!==void 0?_getActiveElement:document2.body}function findClosest(element,callback){let el=element;do{if(callback(el))return el;el=el.parentElement;}while(el&&el!==element.ownerDocument.body)}function hasOwnSelection(node){return isElement3(node)&&isEditableInputOrTextArea(node)}function hasNoSelection(node){return isElement3(node)&&isClickableInput(node)}function isElement3(node){return node.nodeType===1}function updateSelectionOnFocus(element){let selection=element.ownerDocument.getSelection();if(selection?.focusNode&&hasOwnSelection(element)){let contenteditable=getContentEditable(selection.focusNode);if(contenteditable){if(!selection.isCollapsed){var _contenteditable_firstChild;let focusNode=((_contenteditable_firstChild=contenteditable.firstChild)===null||_contenteditable_firstChild===void 0?void 0:_contenteditable_firstChild.nodeType)===3?contenteditable.firstChild:contenteditable;selection.setBaseAndExtent(focusNode,0,focusNode,0);}}else selection.setBaseAndExtent(element,0,element,0);}}function wrapEvent(cb,_element){return getConfig2().eventWrapper(cb)}function focusElement(element){let target=findClosest(element,isFocusable),activeElement=getActiveElement(element.ownerDocument);(target??element.ownerDocument.body)!==activeElement&&(target?wrapEvent(()=>target.focus()):wrapEvent(()=>activeElement?.blur()),updateSelectionOnFocus(target??element.ownerDocument.body));}function blurElement(element){!isFocusable(element)||!(getActiveElement(element.ownerDocument)===element)||wrapEvent(()=>element.blur());}var behavior={};behavior.click=(event,target,instance)=>{let context=target.closest(\"button,input,label,select,textarea\"),control=context&&isElementType(context,\"label\")&&context.control;if(control)return ()=>{isFocusable(control)&&focusElement(control),instance.dispatchEvent(control,cloneEvent(event));};if(isElementType(target,\"input\",{type:\"file\"}))return ()=>{blurElement(target),target.dispatchEvent(new(getWindow(target)).Event(\"fileDialog\")),focusElement(target);}};var UIValue=Symbol(\"Displayed value in UI\"),UISelection=Symbol(\"Displayed selection in UI\"),InitialValue=Symbol(\"Initial value to compare on blur\");function isUIValue(value){return typeof value==\"object\"&&UIValue in value}function isUISelectionStart(start){return !!start&&typeof start==\"object\"&&UISelection in start}function setUIValue(element,value){element[InitialValue]===void 0&&(element[InitialValue]=element.value),element[UIValue]=value,element.value=Object.assign(new String(value),{[UIValue]:!0});}function getUIValue(element){return element[UIValue]===void 0?element.value:String(element[UIValue])}function setUIValueClean(element){element[UIValue]=void 0;}function clearInitialValue(element){element[InitialValue]=void 0;}function getInitialValue(element){return element[InitialValue]}function setUISelectionRaw(element,selection){element[UISelection]=selection;}function setUISelection(element,{focusOffset:focusOffsetParam,anchorOffset:anchorOffsetParam=focusOffsetParam},mode=\"replace\"){let valueLength=getUIValue(element).length,sanitizeOffset=o=>Math.max(0,Math.min(valueLength,o)),anchorOffset=mode===\"replace\"||element[UISelection]===void 0?sanitizeOffset(anchorOffsetParam):element[UISelection].anchorOffset,focusOffset=sanitizeOffset(focusOffsetParam),startOffset=Math.min(anchorOffset,focusOffset),endOffset=Math.max(anchorOffset,focusOffset);if(element[UISelection]={anchorOffset,focusOffset},element.selectionStart===startOffset&&element.selectionEnd===endOffset)return;let startObj=Object.assign(new Number(startOffset),{[UISelection]:!0});try{element.setSelectionRange(startObj,endOffset);}catch{}}function getUISelection(element){var _element_selectionStart,_element_selectionEnd,_element_UISelection;let sel=(_element_UISelection=element[UISelection])!==null&&_element_UISelection!==void 0?_element_UISelection:{anchorOffset:(_element_selectionStart=element.selectionStart)!==null&&_element_selectionStart!==void 0?_element_selectionStart:0,focusOffset:(_element_selectionEnd=element.selectionEnd)!==null&&_element_selectionEnd!==void 0?_element_selectionEnd:0};return {...sel,startOffset:Math.min(sel.anchorOffset,sel.focusOffset),endOffset:Math.max(sel.anchorOffset,sel.focusOffset)}}function hasUISelection(element){return !!element[UISelection]}function setUISelectionClean(element){element[UISelection]=void 0;}var parseInt2=globalThis.parseInt;function buildTimeValue(value){let onlyDigitsValue=value.replace(/\\D/g,\"\");if(onlyDigitsValue.length<2)return value;let firstDigit=parseInt2(onlyDigitsValue[0],10),secondDigit=parseInt2(onlyDigitsValue[1],10);if(firstDigit>=3||firstDigit===2&&secondDigit>=4){let index;return firstDigit>=3?index=1:index=2,build2(onlyDigitsValue,index)}return value.length===2?value:build2(onlyDigitsValue,2)}function build2(onlyDigitsValue,index){let hours=onlyDigitsValue.slice(0,index),validHours=Math.min(parseInt2(hours,10),23),minuteCharacters=onlyDigitsValue.slice(index),parsedMinutes=parseInt2(minuteCharacters,10),validMinutes=Math.min(parsedMinutes,59);return `${validHours.toString().padStart(2,\"0\")}:${validMinutes.toString().padStart(2,\"0\")}`}function isValidDateOrTimeValue(element,value){let clone2=element.cloneNode();return clone2.value=value,clone2.value===value}function getNextCursorPosition(node,offset,direction,inputType){if(isTextNode(node)&&offset+direction>=0&&offset+direction<=node.nodeValue.length)return {node,offset:offset+direction};let nextNode=getNextCharacterContentNode(node,offset,direction);if(nextNode){if(isTextNode(nextNode))return {node:nextNode,offset:direction>0?Math.min(1,nextNode.nodeValue.length):Math.max(nextNode.nodeValue.length-1,0)};if(isElementType(nextNode,\"br\")){let nextPlusOne=getNextCharacterContentNode(nextNode,void 0,direction);return nextPlusOne?isTextNode(nextPlusOne)?{node:nextPlusOne,offset:direction>0?0:nextPlusOne.nodeValue.length}:direction<0&&isElementType(nextPlusOne,\"br\")?{node:nextNode.parentNode,offset:getOffset(nextNode)}:{node:nextPlusOne.parentNode,offset:getOffset(nextPlusOne)+(direction>0?0:1)}:direction<0&&inputType===\"deleteContentBackward\"?{node:nextNode.parentNode,offset:getOffset(nextNode)}:void 0}else return {node:nextNode.parentNode,offset:getOffset(nextNode)+(direction>0?1:0)}}}function getNextCharacterContentNode(node,offset,direction){let nextOffset=Number(offset)+(direction<0?-1:0);return offset!==void 0&&isElement4(node)&&nextOffset>=0&&nextOffsetk2.startsWith(\"__react\"))&&getWindow(element).REACT_VERSION===17}function startTrackValue(element){isReact17Element(element)&&(element[TrackChanges]={previousValue:String(element.value),tracked:[]});}function trackOrSetValue(element,v){var _element_TrackChanges_tracked,_element_TrackChanges;(_element_TrackChanges=element[TrackChanges])===null||_element_TrackChanges===void 0||(_element_TrackChanges_tracked=_element_TrackChanges.tracked)===null||_element_TrackChanges_tracked===void 0||_element_TrackChanges_tracked.push(v),element[TrackChanges]||(setUIValueClean(element),setUISelection(element,{focusOffset:v.length}));}function commitValueAfterInput(element,cursorOffset){var _changes_tracked;let changes=element[TrackChanges];if(element[TrackChanges]=void 0,!(!(changes==null||(_changes_tracked=changes.tracked)===null||_changes_tracked===void 0)&&_changes_tracked.length))return;let isJustReactStateUpdate=changes.tracked.length===2&&changes.tracked[0]===changes.previousValue&&changes.tracked[1]===element.value;isJustReactStateUpdate||setUIValueClean(element),hasUISelection(element)&&setUISelection(element,{focusOffset:isJustReactStateUpdate?cursorOffset:element.value.length});}function getTargetTypeAndSelection(node){let element=getElement2(node);if(element&&hasOwnSelection(element))return {type:\"input\",selection:getUISelection(element)};let selection=element?.ownerDocument.getSelection();return {type:getContentEditable(node)&&selection?.anchorNode&&getContentEditable(selection.anchorNode)?\"contenteditable\":\"default\",selection}}function getElement2(node){return node.nodeType===1?node:node.parentElement}function getInputRange(focusNode){let typeAndSelection=getTargetTypeAndSelection(focusNode);if(typeAndSelection.type===\"input\")return typeAndSelection.selection;if(typeAndSelection.type===\"contenteditable\"){var _typeAndSelection_selection;return (_typeAndSelection_selection=typeAndSelection.selection)===null||_typeAndSelection_selection===void 0?void 0:_typeAndSelection_selection.getRangeAt(0)}}function setSelection({focusNode,focusOffset,anchorNode=focusNode,anchorOffset=focusOffset}){var _anchorNode_ownerDocument_getSelection,_anchorNode_ownerDocument;if(getTargetTypeAndSelection(focusNode).type===\"input\")return setUISelection(focusNode,{anchorOffset,focusOffset});(_anchorNode_ownerDocument=anchorNode.ownerDocument)===null||_anchorNode_ownerDocument===void 0||(_anchorNode_ownerDocument_getSelection=_anchorNode_ownerDocument.getSelection())===null||_anchorNode_ownerDocument_getSelection===void 0||_anchorNode_ownerDocument_getSelection.setBaseAndExtent(anchorNode,anchorOffset,focusNode,focusOffset);}function isDateOrTime(element){return isElementType(element,\"input\")&&[\"date\",\"time\"].includes(element.type)}function input(instance,element,data,inputType=\"insertText\"){let inputRange=getInputRange(element);inputRange&&(!isDateOrTime(element)&&!instance.dispatchUIEvent(element,\"beforeinput\",{inputType,data})||(\"startContainer\"in inputRange?editContenteditable(instance,element,inputRange,data,inputType):editInputElement(instance,element,inputRange,data,inputType)));}function editContenteditable(instance,element,inputRange,data,inputType){let del=!1;if(!inputRange.collapsed)del=!0,inputRange.deleteContents();else if([\"deleteContentBackward\",\"deleteContentForward\"].includes(inputType)){let nextPosition=getNextCursorPosition(inputRange.startContainer,inputRange.startOffset,inputType===\"deleteContentBackward\"?-1:1,inputType);if(nextPosition){del=!0;let delRange=inputRange.cloneRange();delRange.comparePoint(nextPosition.node,nextPosition.offset)<0?delRange.setStart(nextPosition.node,nextPosition.offset):delRange.setEnd(nextPosition.node,nextPosition.offset),delRange.deleteContents();}}if(data)if(inputRange.endContainer.nodeType===3){let offset=inputRange.endOffset;inputRange.endContainer.insertData(offset,data),inputRange.setStart(inputRange.endContainer,offset+data.length),inputRange.setEnd(inputRange.endContainer,offset+data.length);}else {let text=element.ownerDocument.createTextNode(data);inputRange.insertNode(text),inputRange.setStart(text,data.length),inputRange.setEnd(text,data.length);}(del||data)&&instance.dispatchUIEvent(element,\"input\",{inputType});}function editInputElement(instance,element,inputRange,data,inputType){let dataToInsert=data;if(supportsMaxLength(element)){let maxLength=getMaxLength(element);if(maxLength!==void 0&&data.length>0){let spaceUntilMaxLength=maxLength-element.value.length;if(spaceUntilMaxLength>0)dataToInsert=data.substring(0,spaceUntilMaxLength);else return}}let{newValue,newOffset,oldValue}=calculateNewValue(dataToInsert,element,inputRange,inputType);newValue===oldValue&&newOffset===inputRange.startOffset&&newOffset===inputRange.endOffset||isElementType(element,\"input\",{type:\"number\"})&&!isValidNumberInput(newValue)||(setUIValue(element,newValue),setSelection({focusNode:element,anchorOffset:newOffset,focusOffset:newOffset}),isDateOrTime(element)?isValidDateOrTimeValue(element,newValue)&&(commitInput(instance,element,newOffset,{}),instance.dispatchUIEvent(element,\"change\"),clearInitialValue(element)):commitInput(instance,element,newOffset,{data,inputType}));}function calculateNewValue(inputData,node,{startOffset,endOffset},inputType){let value=getUIValue(node),prologEnd=Math.max(0,startOffset===endOffset&&inputType===\"deleteContentBackward\"?startOffset-1:startOffset),prolog=value.substring(0,prologEnd),epilogStart=Math.min(value.length,startOffset===endOffset&&inputType===\"deleteContentForward\"?startOffset+1:endOffset),epilog=value.substring(epilogStart,value.length),newValue=`${prolog}${inputData}${epilog}`,newOffset=prologEnd+inputData.length;if(isElementType(node,\"input\",{type:\"time\"})){let builtValue=buildTimeValue(newValue);builtValue!==\"\"&&isValidDateOrTimeValue(node,builtValue)&&(newValue=builtValue,newOffset=builtValue.length);}return {oldValue:value,newValue,newOffset}}function commitInput(instance,element,newOffset,inputInit){instance.dispatchUIEvent(element,\"input\",inputInit),commitValueAfterInput(element,newOffset);}function isValidNumberInput(value){var _value_match,_value_match1;let valueParts=value.split(\"e\",2);return !(/[^\\d.\\-e]/.test(value)||Number((_value_match=value.match(/-/g))===null||_value_match===void 0?void 0:_value_match.length)>2||Number((_value_match1=value.match(/\\./g))===null||_value_match1===void 0?void 0:_value_match1.length)>1||valueParts[1]&&!/^-?\\d*$/.test(valueParts[1]))}behavior.cut=(event,target,instance)=>()=>{isEditable(target)&&input(instance,target,\"\",\"deleteByCut\");};function getValueOrTextContent(element){return element?isContentEditable(element)?element.textContent:getUIValue(element):null}function isVisible(element){let window2=getWindow(element);for(let el=element;el?.ownerDocument;el=el.parentElement){let{display:display2,visibility}=window2.getComputedStyle(el);if(display2===\"none\"||visibility===\"hidden\")return !1}return !0}function getTabDestination(activeElement,shift){let document2=activeElement.ownerDocument,focusableElements=document2.querySelectorAll(FOCUSABLE_SELECTOR),enabledElements=Array.from(focusableElements).filter(el=>el===activeElement||!(Number(el.getAttribute(\"tabindex\"))<0||isDisabled2(el)));Number(activeElement.getAttribute(\"tabindex\"))>=0&&enabledElements.sort((a2,b)=>{let i=Number(a2.getAttribute(\"tabindex\")),j=Number(b.getAttribute(\"tabindex\"));return i===j?0:i===0?1:j===0?-1:i-j});let checkedRadio={},prunedElements=[document2.body],activeRadioGroup=isElementType(activeElement,\"input\",{type:\"radio\"})?activeElement.name:void 0;enabledElements.forEach(currentElement=>{let el=currentElement;if(isElementType(el,\"input\",{type:\"radio\"})&&el.name){if(el===activeElement){prunedElements.push(el);return}else if(el.name===activeRadioGroup)return;if(el.checked){prunedElements=prunedElements.filter(e=>!isElementType(e,\"input\",{type:\"radio\",name:el.name})),prunedElements.push(el),checkedRadio[el.name]=el;return}if(typeof checkedRadio[el.name]<\"u\")return}prunedElements.push(el);});for(let index=prunedElements.findIndex(el=>el===activeElement);;)if(index+=shift?-1:1,index===prunedElements.length?index=0:index===-1&&(index=prunedElements.length-1),prunedElements[index]===activeElement||prunedElements[index]===document2.body||isVisible(prunedElements[index]))return prunedElements[index]}function moveSelection(node,direction){if(hasOwnSelection(node)){let selection=getUISelection(node);setSelection({focusNode:node,focusOffset:selection.startOffset===selection.endOffset?selection.focusOffset+direction:direction<0?selection.startOffset:selection.endOffset});}else {let selection=node.ownerDocument.getSelection();if(!selection?.focusNode)return;if(selection.isCollapsed){let nextPosition=getNextCursorPosition(selection.focusNode,selection.focusOffset,direction);nextPosition&&setSelection({focusNode:nextPosition.node,focusOffset:nextPosition.offset});}else selection[direction<0?\"collapseToStart\":\"collapseToEnd\"]();}}function selectAll(target){if(hasOwnSelection(target))return setSelection({focusNode:target,anchorOffset:0,focusOffset:getUIValue(target).length});var _getContentEditable;let focusNode=(_getContentEditable=getContentEditable(target))!==null&&_getContentEditable!==void 0?_getContentEditable:target.ownerDocument.body;setSelection({focusNode,anchorOffset:0,focusOffset:focusNode.childNodes.length});}function isAllSelected(target){if(hasOwnSelection(target))return getUISelection(target).startOffset===0&&getUISelection(target).endOffset===getUIValue(target).length;var _getContentEditable;let focusNode=(_getContentEditable=getContentEditable(target))!==null&&_getContentEditable!==void 0?_getContentEditable:target.ownerDocument.body,selection=target.ownerDocument.getSelection();return selection?.anchorNode===focusNode&&selection.focusNode===focusNode&&selection.anchorOffset===0&&selection.focusOffset===focusNode.childNodes.length}function setSelectionRange(element,anchorOffset,focusOffset){var _element_firstChild;if(hasOwnSelection(element))return setSelection({focusNode:element,anchorOffset,focusOffset});if(isContentEditable(element)&&((_element_firstChild=element.firstChild)===null||_element_firstChild===void 0?void 0:_element_firstChild.nodeType)===3)return setSelection({focusNode:element.firstChild,anchorOffset,focusOffset});throw new Error(\"Not implemented. The result of this interaction is unreliable.\")}function walkRadio(instance,el,direction){let window2=getWindow(el),group=Array.from(el.ownerDocument.querySelectorAll(el.name?`input[type=\"radio\"][name=\"${window2.CSS.escape(el.name)}\"]`:'input[type=\"radio\"][name=\"\"], input[type=\"radio\"]:not([name])'));for(let i=group.findIndex(e=>e===el)+direction;;i+=direction){if(group[i]||(i=direction>0?0:group.length-1),group[i]===el)return;isDisabled2(group[i])||(focusElement(group[i]),instance.dispatchUIEvent(group[i],\"click\"));}}behavior.keydown=(event,target,instance)=>{var _keydownBehavior_event_key,_keydownBehavior_event_key1;return (_keydownBehavior_event_key1=(_keydownBehavior_event_key=keydownBehavior[event.key])===null||_keydownBehavior_event_key===void 0?void 0:_keydownBehavior_event_key.call(keydownBehavior,event,target,instance))!==null&&_keydownBehavior_event_key1!==void 0?_keydownBehavior_event_key1:combinationBehavior(event,target,instance)};var keydownBehavior={ArrowDown:(event,target,instance)=>{if(isElementType(target,\"input\",{type:\"radio\"}))return ()=>walkRadio(instance,target,-1)},ArrowLeft:(event,target,instance)=>isElementType(target,\"input\",{type:\"radio\"})?()=>walkRadio(instance,target,-1):()=>moveSelection(target,-1),ArrowRight:(event,target,instance)=>isElementType(target,\"input\",{type:\"radio\"})?()=>walkRadio(instance,target,1):()=>moveSelection(target,1),ArrowUp:(event,target,instance)=>{if(isElementType(target,\"input\",{type:\"radio\"}))return ()=>walkRadio(instance,target,1)},Backspace:(event,target,instance)=>{if(isEditable(target))return ()=>{input(instance,target,\"\",\"deleteContentBackward\");}},Delete:(event,target,instance)=>{if(isEditable(target))return ()=>{input(instance,target,\"\",\"deleteContentForward\");}},End:(event,target)=>{if(isElementType(target,[\"input\",\"textarea\"])||isContentEditable(target))return ()=>{var _getValueOrTextContent,_getValueOrTextContent_length;let newPos=(_getValueOrTextContent_length=(_getValueOrTextContent=getValueOrTextContent(target))===null||_getValueOrTextContent===void 0?void 0:_getValueOrTextContent.length)!==null&&_getValueOrTextContent_length!==void 0?_getValueOrTextContent_length:0;setSelectionRange(target,newPos,newPos);}},Home:(event,target)=>{if(isElementType(target,[\"input\",\"textarea\"])||isContentEditable(target))return ()=>{setSelectionRange(target,0,0);}},PageDown:(event,target)=>{if(isElementType(target,[\"input\"]))return ()=>{let newPos=getUIValue(target).length;setSelectionRange(target,newPos,newPos);}},PageUp:(event,target)=>{if(isElementType(target,[\"input\"]))return ()=>{setSelectionRange(target,0,0);}},Tab:(event,target,instance)=>()=>{let dest=getTabDestination(target,instance.system.keyboard.modifiers.Shift);focusElement(dest),hasOwnSelection(dest)&&setUISelection(dest,{anchorOffset:0,focusOffset:dest.value.length});}},combinationBehavior=(event,target,instance)=>{if(event.code===\"KeyA\"&&instance.system.keyboard.modifiers.Control)return ()=>selectAll(target)};behavior.keypress=(event,target,instance)=>{if(event.key===\"Enter\"){if(isElementType(target,\"button\")||isElementType(target,\"input\")&&ClickInputOnEnter.includes(target.type)||isElementType(target,\"a\")&&target.href)return ()=>{instance.dispatchUIEvent(target,\"click\");};if(isElementType(target,\"input\")){let form=target.form,submit=form?.querySelector('input[type=\"submit\"], button:not([type]), button[type=\"submit\"]');return submit?()=>instance.dispatchUIEvent(submit,\"click\"):form&&SubmitSingleInputOnEnter.includes(target.type)&&form.querySelectorAll(\"input\").length===1?()=>instance.dispatchUIEvent(form,\"submit\"):void 0}}if(isEditable(target)){let inputType=event.key===\"Enter\"?isContentEditable(target)&&!instance.system.keyboard.modifiers.Shift?\"insertParagraph\":\"insertLineBreak\":\"insertText\",inputData=event.key===\"Enter\"?`\n`:event.key;return ()=>input(instance,target,inputData,inputType)}};var ClickInputOnEnter=[\"button\",\"color\",\"file\",\"image\",\"reset\",\"submit\"],SubmitSingleInputOnEnter=[\"email\",\"month\",\"password\",\"search\",\"tel\",\"text\",\"url\",\"week\"];behavior.keyup=(event,target,instance)=>{var _keyupBehavior_event_key;return (_keyupBehavior_event_key=keyupBehavior[event.key])===null||_keyupBehavior_event_key===void 0?void 0:_keyupBehavior_event_key.call(keyupBehavior,event,target,instance)};var keyupBehavior={\" \":(event,target,instance)=>{if(isClickableInput(target))return ()=>instance.dispatchUIEvent(target,\"click\")}};behavior.paste=(event,target,instance)=>{if(isEditable(target))return ()=>{var _event_clipboardData;let insertData=(_event_clipboardData=event.clipboardData)===null||_event_clipboardData===void 0?void 0:_event_clipboardData.getData(\"text\");insertData&&input(instance,target,insertData,\"insertFromPaste\");}};var eventMap2={auxclick:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:\"InputEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},click:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},copy:{EventType:\"ClipboardEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},change:{EventType:\"Event\",defaultInit:{bubbles:!0,cancelable:!1}},cut:{EventType:\"ClipboardEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblclick:{EventType:\"MouseEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keydown:{EventType:\"KeyboardEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keypress:{EventType:\"KeyboardEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyup:{EventType:\"KeyboardEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:\"ClipboardEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},input:{EventType:\"InputEvent\",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},mousedown:{EventType:\"MouseEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseenter:{EventType:\"MouseEvent\",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseleave:{EventType:\"MouseEvent\",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mousemove:{EventType:\"MouseEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseout:{EventType:\"MouseEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseover:{EventType:\"MouseEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseup:{EventType:\"MouseEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerover:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerenter:{EventType:\"PointerEvent\",defaultInit:{bubbles:!1,cancelable:!1}},pointerdown:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointermove:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerup:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointercancel:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerout:{EventType:\"PointerEvent\",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerleave:{EventType:\"PointerEvent\",defaultInit:{bubbles:!1,cancelable:!1}},submit:{EventType:\"Event\",defaultInit:{bubbles:!0,cancelable:!0}}};function getEventClass(type5){return eventMap2[type5].EventType}var mouseEvents=[\"MouseEvent\",\"PointerEvent\"];function isMouseEvent(type5){return mouseEvents.includes(getEventClass(type5))}function isKeyboardEvent(type5){return getEventClass(type5)===\"KeyboardEvent\"}var eventInitializer={ClipboardEvent:[initClipboardEvent],Event:[],InputEvent:[initUIEvent,initInputEvent],MouseEvent:[initUIEvent,initUIEventModififiers,initMouseEvent],PointerEvent:[initUIEvent,initUIEventModififiers,initMouseEvent,initPointerEvent],KeyboardEvent:[initUIEvent,initUIEventModififiers,initKeyboardEvent]};function createEvent2(type5,target,init){let window2=getWindow(target),{EventType,defaultInit}=eventMap2[type5],event=new(getEventConstructors(window2))[EventType](type5,defaultInit);return eventInitializer[EventType].forEach(f4=>f4(event,init??{})),event}function getEventConstructors(window2){var _window_Event;let Event=(_window_Event=window2.Event)!==null&&_window_Event!==void 0?_window_Event:class{};var _window_AnimationEvent;let AnimationEvent=(_window_AnimationEvent=window2.AnimationEvent)!==null&&_window_AnimationEvent!==void 0?_window_AnimationEvent:class extends Event{};var _window_ClipboardEvent;let ClipboardEvent=(_window_ClipboardEvent=window2.ClipboardEvent)!==null&&_window_ClipboardEvent!==void 0?_window_ClipboardEvent:class extends Event{};var _window_PopStateEvent;let PopStateEvent=(_window_PopStateEvent=window2.PopStateEvent)!==null&&_window_PopStateEvent!==void 0?_window_PopStateEvent:class extends Event{};var _window_ProgressEvent;let ProgressEvent=(_window_ProgressEvent=window2.ProgressEvent)!==null&&_window_ProgressEvent!==void 0?_window_ProgressEvent:class extends Event{};var _window_TransitionEvent;let TransitionEvent=(_window_TransitionEvent=window2.TransitionEvent)!==null&&_window_TransitionEvent!==void 0?_window_TransitionEvent:class extends Event{};var _window_UIEvent;let UIEvent=(_window_UIEvent=window2.UIEvent)!==null&&_window_UIEvent!==void 0?_window_UIEvent:class extends Event{};var _window_CompositionEvent;let CompositionEvent=(_window_CompositionEvent=window2.CompositionEvent)!==null&&_window_CompositionEvent!==void 0?_window_CompositionEvent:class extends UIEvent{};var _window_FocusEvent;let FocusEvent=(_window_FocusEvent=window2.FocusEvent)!==null&&_window_FocusEvent!==void 0?_window_FocusEvent:class extends UIEvent{};var _window_InputEvent;let InputEvent=(_window_InputEvent=window2.InputEvent)!==null&&_window_InputEvent!==void 0?_window_InputEvent:class extends UIEvent{};var _window_KeyboardEvent;let KeyboardEvent=(_window_KeyboardEvent=window2.KeyboardEvent)!==null&&_window_KeyboardEvent!==void 0?_window_KeyboardEvent:class extends UIEvent{};var _window_MouseEvent;let MouseEvent=(_window_MouseEvent=window2.MouseEvent)!==null&&_window_MouseEvent!==void 0?_window_MouseEvent:class extends UIEvent{};var _window_DragEvent;let DragEvent=(_window_DragEvent=window2.DragEvent)!==null&&_window_DragEvent!==void 0?_window_DragEvent:class extends MouseEvent{};var _window_PointerEvent;let PointerEvent=(_window_PointerEvent=window2.PointerEvent)!==null&&_window_PointerEvent!==void 0?_window_PointerEvent:class extends MouseEvent{};var _window_TouchEvent;let TouchEvent=(_window_TouchEvent=window2.TouchEvent)!==null&&_window_TouchEvent!==void 0?_window_TouchEvent:class extends UIEvent{};return {Event,AnimationEvent,ClipboardEvent,PopStateEvent,ProgressEvent,TransitionEvent,UIEvent,CompositionEvent,FocusEvent,InputEvent,KeyboardEvent,MouseEvent,DragEvent,PointerEvent,TouchEvent}}function assignProps(obj,props){for(let[key,value]of Object.entries(props))Object.defineProperty(obj,key,{get:()=>value??null});}function sanitizeNumber(n){return Number(n??0)}function initClipboardEvent(event,{clipboardData}){assignProps(event,{clipboardData});}function initInputEvent(event,{data,inputType,isComposing}){assignProps(event,{data,isComposing:!!isComposing,inputType:String(inputType)});}function initUIEvent(event,{view,detail}){assignProps(event,{view,detail:sanitizeNumber(detail??0)});}function initUIEventModififiers(event,{altKey,ctrlKey,metaKey,shiftKey,modifierAltGraph,modifierCapsLock,modifierFn,modifierFnLock,modifierNumLock,modifierScrollLock,modifierSymbol,modifierSymbolLock}){assignProps(event,{altKey:!!altKey,ctrlKey:!!ctrlKey,metaKey:!!metaKey,shiftKey:!!shiftKey,getModifierState(k2){return !!{Alt:altKey,AltGraph:modifierAltGraph,CapsLock:modifierCapsLock,Control:ctrlKey,Fn:modifierFn,FnLock:modifierFnLock,Meta:metaKey,NumLock:modifierNumLock,ScrollLock:modifierScrollLock,Shift:shiftKey,Symbol:modifierSymbol,SymbolLock:modifierSymbolLock}[k2]}});}function initKeyboardEvent(event,{key,code,location,repeat,isComposing,charCode}){assignProps(event,{key:String(key),code:String(code),location:sanitizeNumber(location),repeat:!!repeat,isComposing:!!isComposing,charCode});}function initMouseEvent(event,{x:x2,y:y2,screenX,screenY,clientX=x2,clientY=y2,button,buttons,relatedTarget}){assignProps(event,{screenX:sanitizeNumber(screenX),screenY:sanitizeNumber(screenY),clientX:sanitizeNumber(clientX),x:sanitizeNumber(clientX),clientY:sanitizeNumber(clientY),y:sanitizeNumber(clientY),button:sanitizeNumber(button),buttons:sanitizeNumber(buttons),relatedTarget});}function initPointerEvent(event,{pointerId,width,height,pressure,tangentialPressure,tiltX,tiltY,twist,pointerType,isPrimary}){assignProps(event,{pointerId:sanitizeNumber(pointerId),width:sanitizeNumber(width),height:sanitizeNumber(height),pressure:sanitizeNumber(pressure),tangentialPressure:sanitizeNumber(tangentialPressure),tiltX:sanitizeNumber(tiltX),tiltY:sanitizeNumber(tiltY),twist:sanitizeNumber(twist),pointerType:String(pointerType),isPrimary:!!isPrimary});}function dispatchUIEvent(target,type5,init,preventDefault=!1){(isMouseEvent(type5)||isKeyboardEvent(type5))&&(init={...init,...this.system.getUIEventModifiers()});let event=createEvent2(type5,target,init);return dispatchEvent.call(this,target,event,preventDefault)}function dispatchEvent(target,event,preventDefault=!1){var _behavior_type;let type5=event.type,behaviorImplementation=preventDefault?()=>{}:(_behavior_type=behavior[type5])===null||_behavior_type===void 0?void 0:_behavior_type.call(behavior,event,target,this);if(behaviorImplementation){event.preventDefault();let defaultPrevented=!1;return Object.defineProperty(event,\"defaultPrevented\",{get:()=>defaultPrevented}),Object.defineProperty(event,\"preventDefault\",{value:()=>{defaultPrevented=event.cancelable;}}),wrapEvent(()=>target.dispatchEvent(event)),defaultPrevented||behaviorImplementation(),!defaultPrevented}return wrapEvent(()=>target.dispatchEvent(event))}function dispatchDOMEvent(target,type5,init){let event=createEvent2(type5,target,init);wrapEvent(()=>target.dispatchEvent(event));}var Interceptor=Symbol(\"Interceptor for programmatical calls\");function prepareInterceptor(element,propName,interceptorImpl){let prototypeDescriptor=Object.getOwnPropertyDescriptor(element.constructor.prototype,propName),objectDescriptor=Object.getOwnPropertyDescriptor(element,propName),target=prototypeDescriptor?.set?\"set\":\"value\";if(typeof prototypeDescriptor?.[target]!=\"function\"||prototypeDescriptor[target][Interceptor])throw new Error(`Element ${element.tagName} does not implement \"${String(propName)}\".`);function intercept(...args){let{applyNative=!1,realArgs,then}=interceptorImpl.call(this,...args),realFunc=(!applyNative&&objectDescriptor||prototypeDescriptor)[target];target===\"set\"?realFunc.call(this,realArgs):realFunc.call(this,...realArgs),then?.();}intercept[Interceptor]=Interceptor,Object.defineProperty(element,propName,{...objectDescriptor??prototypeDescriptor,[target]:intercept});}function prepareValueInterceptor(element){prepareInterceptor(element,\"value\",function(v){let isUI=isUIValue(v);return isUI&&startTrackValue(this),{applyNative:!!isUI,realArgs:sanitizeValue(this,v),then:isUI?void 0:()=>trackOrSetValue(this,String(v))}});}function sanitizeValue(element,v){return isElementType(element,\"input\",{type:\"number\"})&&String(v)!==\"\"&&!Number.isNaN(Number(v))?String(Number(v)):String(v)}function prepareSelectionInterceptor(element){prepareInterceptor(element,\"setSelectionRange\",function(start,...others){let isUI=isUISelectionStart(start);return {applyNative:!!isUI,realArgs:[Number(start),...others],then:()=>isUI?void 0:setUISelectionClean(element)}}),prepareInterceptor(element,\"selectionStart\",function(v){return {realArgs:v,then:()=>setUISelectionClean(element)}}),prepareInterceptor(element,\"selectionEnd\",function(v){return {realArgs:v,then:()=>setUISelectionClean(element)}}),prepareInterceptor(element,\"select\",function(){return {realArgs:[],then:()=>setUISelectionRaw(element,{anchorOffset:0,focusOffset:getUIValue(element).length})}});}function prepareRangeTextInterceptor(element){prepareInterceptor(element,\"setRangeText\",function(...realArgs){return {realArgs,then:()=>{setUIValueClean(element),setUISelectionClean(element);}}});}var isPrepared=Symbol(\"Node prepared with document state workarounds\");function prepareDocument(document2){document2[isPrepared]||(document2.addEventListener(\"focus\",e=>{let el=e.target;prepareElement(el);},{capture:!0,passive:!0}),document2.activeElement&&prepareElement(document2.activeElement),document2.addEventListener(\"blur\",e=>{let el=e.target,initialValue2=getInitialValue(el);initialValue2!==void 0&&(el.value!==initialValue2&&dispatchDOMEvent(el,\"change\"),clearInitialValue(el));},{capture:!0,passive:!0}),document2[isPrepared]=isPrepared);}function prepareElement(el){el[isPrepared]||(isElementType(el,[\"input\",\"textarea\"])&&(prepareValueInterceptor(el),prepareSelectionInterceptor(el),prepareRangeTextInterceptor(el)),el[isPrepared]=isPrepared);}function getDocumentFromNode(el){return isDocument2(el)?el:el.ownerDocument}function isDocument2(node){return node.nodeType===9}function wait(config3){let delay=config3.delay;if(typeof delay==\"number\")return Promise.all([new Promise(resolve=>globalThis.setTimeout(()=>resolve(),delay)),config3.advanceTimers(delay)])}function _define_property3(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var DOM_KEY_LOCATION;(function(DOM_KEY_LOCATION2){DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.STANDARD=0]=\"STANDARD\",DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.LEFT=1]=\"LEFT\",DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.RIGHT=2]=\"RIGHT\",DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.NUMPAD=3]=\"NUMPAD\";})(DOM_KEY_LOCATION||(DOM_KEY_LOCATION={}));var modifierKeys=[\"Alt\",\"AltGraph\",\"Control\",\"Fn\",\"Meta\",\"Shift\",\"Symbol\"];function isModifierKey(key){return modifierKeys.includes(key)}var modifierLocks=[\"CapsLock\",\"FnLock\",\"NumLock\",\"ScrollLock\",\"SymbolLock\"];function isModifierLock(key){return modifierLocks.includes(key)}var KeyboardHost=class{isKeyPressed(keyDef){return !!this.pressed[String(keyDef.code)]}getPressedKeys(){return Object.values(this.pressed).map(p3=>p3.keyDef)}async keydown(instance,keyDef){var _this_pressed,_code,_this_pressed_code;let key=String(keyDef.key),code=String(keyDef.code),target=getActiveElementOrBody(instance.config.document);this.setKeydownTarget(target);var _;(_=(_this_pressed=this.pressed)[_code=code])!==null&&_!==void 0||(_this_pressed[_code]={keyDef,unpreventedDefault:!1}),isModifierKey(key)&&(this.modifiers[key]=!0);let unprevented=instance.dispatchUIEvent(target,\"keydown\",{key,code});isModifierLock(key)&&!this.modifiers[key]&&(this.modifiers[key]=!0,this.modifierLockStart[key]=!0),(_this_pressed_code=this.pressed[code]).unpreventedDefault||(_this_pressed_code.unpreventedDefault=unprevented),unprevented&&this.hasKeyPress(key)&&instance.dispatchUIEvent(getActiveElementOrBody(instance.config.document),\"keypress\",{key,code,charCode:keyDef.key===\"Enter\"?13:String(keyDef.key).charCodeAt(0)});}async keyup(instance,keyDef){let key=String(keyDef.key),code=String(keyDef.code),unprevented=this.pressed[code].unpreventedDefault;delete this.pressed[code],isModifierKey(key)&&!Object.values(this.pressed).find(p3=>p3.keyDef.key===key)&&(this.modifiers[key]=!1),instance.dispatchUIEvent(getActiveElementOrBody(instance.config.document),\"keyup\",{key,code},!unprevented),isModifierLock(key)&&this.modifiers[key]&&(this.modifierLockStart[key]?this.modifierLockStart[key]=!1:this.modifiers[key]=!1);}setKeydownTarget(target){target!==this.lastKeydownTarget&&(this.carryChar=\"\"),this.lastKeydownTarget=target;}hasKeyPress(key){return (key.length===1||key===\"Enter\")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(system){_define_property3(this,\"system\",void 0),_define_property3(this,\"modifiers\",{Alt:!1,AltGraph:!1,CapsLock:!1,Control:!1,Fn:!1,FnLock:!1,Meta:!1,NumLock:!1,ScrollLock:!1,Shift:!1,Symbol:!1,SymbolLock:!1}),_define_property3(this,\"pressed\",{}),_define_property3(this,\"carryChar\",\"\"),_define_property3(this,\"lastKeydownTarget\",void 0),_define_property3(this,\"modifierLockStart\",{}),this.system=system;}};var defaultKeyMap=[...\"0123456789\".split(\"\").map(c=>({code:`Digit${c}`,key:c})),...\")!@#$%^&*(\".split(\"\").map((c,i)=>({code:`Digit${i}`,key:c,shiftKey:!0})),...\"abcdefghijklmnopqrstuvwxyz\".split(\"\").map(c=>({code:`Key${c.toUpperCase()}`,key:c})),...\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".split(\"\").map(c=>({code:`Key${c}`,key:c,shiftKey:!0})),{code:\"Space\",key:\" \"},{code:\"AltLeft\",key:\"Alt\",location:DOM_KEY_LOCATION.LEFT},{code:\"AltRight\",key:\"Alt\",location:DOM_KEY_LOCATION.RIGHT},{code:\"ShiftLeft\",key:\"Shift\",location:DOM_KEY_LOCATION.LEFT},{code:\"ShiftRight\",key:\"Shift\",location:DOM_KEY_LOCATION.RIGHT},{code:\"ControlLeft\",key:\"Control\",location:DOM_KEY_LOCATION.LEFT},{code:\"ControlRight\",key:\"Control\",location:DOM_KEY_LOCATION.RIGHT},{code:\"MetaLeft\",key:\"Meta\",location:DOM_KEY_LOCATION.LEFT},{code:\"MetaRight\",key:\"Meta\",location:DOM_KEY_LOCATION.RIGHT},{code:\"OSLeft\",key:\"OS\",location:DOM_KEY_LOCATION.LEFT},{code:\"OSRight\",key:\"OS\",location:DOM_KEY_LOCATION.RIGHT},{code:\"Tab\",key:\"Tab\"},{code:\"CapsLock\",key:\"CapsLock\"},{code:\"Backspace\",key:\"Backspace\"},{code:\"Enter\",key:\"Enter\"},{code:\"Escape\",key:\"Escape\"},{code:\"ArrowUp\",key:\"ArrowUp\"},{code:\"ArrowDown\",key:\"ArrowDown\"},{code:\"ArrowLeft\",key:\"ArrowLeft\"},{code:\"ArrowRight\",key:\"ArrowRight\"},{code:\"Home\",key:\"Home\"},{code:\"End\",key:\"End\"},{code:\"Delete\",key:\"Delete\"},{code:\"PageUp\",key:\"PageUp\"},{code:\"PageDown\",key:\"PageDown\"},{code:\"Fn\",key:\"Fn\"},{code:\"Symbol\",key:\"Symbol\"},{code:\"AltRight\",key:\"AltGraph\"}];var defaultKeyMap2=[{name:\"MouseLeft\",pointerType:\"mouse\",button:\"primary\"},{name:\"MouseRight\",pointerType:\"mouse\",button:\"secondary\"},{name:\"MouseMiddle\",pointerType:\"mouse\",button:\"auxiliary\"},{name:\"TouchA\",pointerType:\"touch\"},{name:\"TouchB\",pointerType:\"touch\"},{name:\"TouchC\",pointerType:\"touch\"}];function _define_property4(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var Buttons=class{getButtons(){let v=0;for(let button of Object.keys(this.pressed))v|=2**Number(button);return v}down(keyDef){let button=getMouseButtonId(keyDef.button);if(button in this.pressed){this.pressed[button].push(keyDef);return}return this.pressed[button]=[keyDef],button}up(keyDef){let button=getMouseButtonId(keyDef.button);if(button in this.pressed&&(this.pressed[button]=this.pressed[button].filter(k2=>k2.name!==keyDef.name),this.pressed[button].length===0))return delete this.pressed[button],button}constructor(){_define_property4(this,\"pressed\",{});}},MouseButton={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function getMouseButtonId(button=0){return button in MouseButton?MouseButton[button]:Number(button)}var MouseButtonFlip={1:2,2:1};function getMouseEventButton(button){return button=getMouseButtonId(button),button in MouseButtonFlip?MouseButtonFlip[button]:button}function _define_property5(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var Device=class{get countPressed(){return this.pressedKeys.size}isPressed(keyDef){return this.pressedKeys.has(keyDef.name)}addPressed(keyDef){return this.pressedKeys.add(keyDef.name)}removePressed(keyDef){return this.pressedKeys.delete(keyDef.name)}constructor(){_define_property5(this,\"pressedKeys\",new Set);}};function getTreeDiff(a2,b){let treeA=[];for(let el=a2;el;el=el.parentElement)treeA.push(el);let treeB=[];for(let el=b;el;el=el.parentElement)treeB.push(el);let i=0;for(;!(i>=treeA.length||i>=treeB.length||treeA[treeA.length-1-i]!==treeB[treeB.length-1-i]);i++);return [treeA.slice(0,treeA.length-i),treeB.slice(0,treeB.length-i),treeB.slice(treeB.length-i)]}function resolveCaretPosition({target,node,offset}){return hasOwnSelection(target)?{node:target,offset:offset??getUIValue(target).length}:node?{node,offset:offset??(node.nodeType===3?node.nodeValue.length:node.childNodes.length)}:findNodeAtTextOffset(target,offset)}function findNodeAtTextOffset(node,offset,isRoot=!0){let i=offset===void 0?node.childNodes.length-1:0,step=offset===void 0?-1:1;for(;offset===void 0?i>=(isRoot?Math.max(node.childNodes.length-1,0):0):i<=node.childNodes.length;){if(offset&&i===node.childNodes.length)throw new Error(\"The given offset is out of bounds.\");let c=node.childNodes.item(i),text=String(c.textContent);if(text.length)if(offset!==void 0&&text.lengthselectionRange.end||selectionFocus.offset0&&range.setEnd(selectionFocus.node,selectionFocus.offset);let selection=document2.getSelection();selection?.removeAllRanges(),selection?.addRange(range.cloneRange());}}function isDifferentPointerPosition(positionA,positionB){var _positionA_coords,_positionB_coords,_positionA_coords1,_positionB_coords1,_positionA_caret,_positionB_caret,_positionA_caret1,_positionB_caret1;return positionA.target!==positionB.target||((_positionA_coords=positionA.coords)===null||_positionA_coords===void 0?void 0:_positionA_coords.x)!==((_positionB_coords=positionB.coords)===null||_positionB_coords===void 0?void 0:_positionB_coords.y)||((_positionA_coords1=positionA.coords)===null||_positionA_coords1===void 0?void 0:_positionA_coords1.y)!==((_positionB_coords1=positionB.coords)===null||_positionB_coords1===void 0?void 0:_positionB_coords1.y)||((_positionA_caret=positionA.caret)===null||_positionA_caret===void 0?void 0:_positionA_caret.node)!==((_positionB_caret=positionB.caret)===null||_positionB_caret===void 0?void 0:_positionB_caret.node)||((_positionA_caret1=positionA.caret)===null||_positionA_caret1===void 0?void 0:_positionA_caret1.offset)!==((_positionB_caret1=positionB.caret)===null||_positionB_caret1===void 0?void 0:_positionB_caret1.offset)}function _define_property6(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var Mouse=class{move(instance,position){let prevPosition=this.position,prevTarget=this.getTarget(instance);if(this.position=position,!isDifferentPointerPosition(prevPosition,position))return;let nextTarget=this.getTarget(instance),init=this.getEventInit(\"mousemove\"),[leave,enter]=getTreeDiff(prevTarget,nextTarget);return {leave:()=>{prevTarget!==nextTarget&&(instance.dispatchUIEvent(prevTarget,\"mouseout\",init),leave.forEach(el=>instance.dispatchUIEvent(el,\"mouseleave\",init)));},enter:()=>{prevTarget!==nextTarget&&(instance.dispatchUIEvent(nextTarget,\"mouseover\",init),enter.forEach(el=>instance.dispatchUIEvent(el,\"mouseenter\",init)));},move:()=>{instance.dispatchUIEvent(nextTarget,\"mousemove\",init),this.modifySelecting(instance);}}}down(instance,keyDef,pointer3){let button=this.buttons.down(keyDef);if(button===void 0)return;let target=this.getTarget(instance);this.buttonDownTarget[button]=target;let disabled=isDisabled2(target),init=this.getEventInit(\"mousedown\",keyDef.button);(disabled||instance.dispatchUIEvent(target,\"mousedown\",init))&&(this.startSelecting(instance,init.detail),focusElement(target)),!disabled&&getMouseEventButton(keyDef.button)===2&&instance.dispatchUIEvent(target,\"contextmenu\",this.getEventInit(\"contextmenu\",keyDef.button,pointer3));}up(instance,keyDef,pointer3){let button=this.buttons.up(keyDef);if(button===void 0)return;let target=this.getTarget(instance);if(!isDisabled2(target)){instance.dispatchUIEvent(target,\"mouseup\",this.getEventInit(\"mouseup\",keyDef.button)),this.endSelecting();let clickTarget=getTreeDiff(this.buttonDownTarget[button],target)[2][0];if(clickTarget){let init=this.getEventInit(\"click\",keyDef.button,pointer3);init.detail&&(instance.dispatchUIEvent(clickTarget,init.button===0?\"click\":\"auxclick\",init),init.button===0&&init.detail===2&&instance.dispatchUIEvent(clickTarget,\"dblclick\",{...this.getEventInit(\"dblclick\",keyDef.button),detail:init.detail}));}}}resetClickCount(){this.clickCount.reset();}getEventInit(type5,button,pointer3){let init={...this.position.coords};return pointer3&&(init.pointerId=pointer3.pointerId,init.pointerType=pointer3.pointerType,init.isPrimary=pointer3.isPrimary),init.button=getMouseEventButton(button),init.buttons=this.buttons.getButtons(),type5===\"mousedown\"?init.detail=this.clickCount.getOnDown(init.button):type5===\"mouseup\"?init.detail=this.clickCount.getOnUp(init.button):(type5===\"click\"||type5===\"auxclick\")&&(init.detail=this.clickCount.incOnClick(init.button)),init}getTarget(instance){var _this_position_target;return (_this_position_target=this.position.target)!==null&&_this_position_target!==void 0?_this_position_target:instance.config.document.body}startSelecting(instance,clickCount){var _this_position_caret,_this_position_caret1;this.selecting=setSelectionPerMouseDown({document:instance.config.document,target:this.getTarget(instance),node:(_this_position_caret=this.position.caret)===null||_this_position_caret===void 0?void 0:_this_position_caret.node,offset:(_this_position_caret1=this.position.caret)===null||_this_position_caret1===void 0?void 0:_this_position_caret1.offset,clickCount});}modifySelecting(instance){var _this_position_caret,_this_position_caret1;this.selecting&&modifySelectionPerMouseMove(this.selecting,{document:instance.config.document,target:this.getTarget(instance),node:(_this_position_caret=this.position.caret)===null||_this_position_caret===void 0?void 0:_this_position_caret.node,offset:(_this_position_caret1=this.position.caret)===null||_this_position_caret1===void 0?void 0:_this_position_caret1.offset});}endSelecting(){this.selecting=void 0;}constructor(){_define_property6(this,\"position\",{}),_define_property6(this,\"buttons\",new Buttons),_define_property6(this,\"selecting\",void 0),_define_property6(this,\"buttonDownTarget\",{}),_define_property6(this,\"clickCount\",new class{incOnClick(button){let current=this.down[button]===void 0?void 0:Number(this.down[button])+1;return this.count=this.count[button]===void 0?{}:{[button]:Number(this.count[button])+1},current}getOnDown(button){var _this_count_button;this.down={[button]:(_this_count_button=this.count[button])!==null&&_this_count_button!==void 0?_this_count_button:0};var _this_count_button1;return this.count={[button]:(_this_count_button1=this.count[button])!==null&&_this_count_button1!==void 0?_this_count_button1:0},Number(this.count[button])+1}getOnUp(button){return this.down[button]===void 0?void 0:Number(this.down[button])+1}reset(){this.count={};}constructor(){_define_property6(this,\"down\",{}),_define_property6(this,\"count\",{});}});}};function hasPointerEvents(instance,element){var _checkPointerEvents;return ((_checkPointerEvents=checkPointerEvents(instance,element))===null||_checkPointerEvents===void 0?void 0:_checkPointerEvents.pointerEvents)!==\"none\"}function closestPointerEventsDeclaration(element){let window2=getWindow(element);for(let el=element,tree=[];el?.ownerDocument;el=el.parentElement){tree.push(el);let pointerEvents=window2.getComputedStyle(el).pointerEvents;if(pointerEvents&&![\"inherit\",\"unset\"].includes(pointerEvents))return {pointerEvents,tree}}}var PointerEventsCheck=Symbol(\"Last check for pointer-events\");function checkPointerEvents(instance,element){let lastCheck=element[PointerEventsCheck];if(!(instance.config.pointerEventsCheck!==PointerEventsCheckLevel.Never&&(!lastCheck||hasBitFlag(instance.config.pointerEventsCheck,PointerEventsCheckLevel.EachApiCall)&&lastCheck[ApiLevel.Call]!==getLevelRef(instance,ApiLevel.Call)||hasBitFlag(instance.config.pointerEventsCheck,PointerEventsCheckLevel.EachTrigger)&&lastCheck[ApiLevel.Trigger]!==getLevelRef(instance,ApiLevel.Trigger))))return lastCheck?.result;let declaration=closestPointerEventsDeclaration(element);return element[PointerEventsCheck]={[ApiLevel.Call]:getLevelRef(instance,ApiLevel.Call),[ApiLevel.Trigger]:getLevelRef(instance,ApiLevel.Trigger),result:declaration},declaration}function assertPointerEvents(instance,element){let declaration=checkPointerEvents(instance,element);if(declaration?.pointerEvents===\"none\")throw new Error([`Unable to perform pointer interaction as the element ${declaration.tree.length>1?\"inherits\":\"has\"} \\`pointer-events: none\\`:`,\"\",printTree(declaration.tree)].join(`\n`))}function printTree(tree){return tree.reverse().map((el,i)=>[\"\".padEnd(i),el.tagName,el.id&&`#${el.id}`,el.hasAttribute(\"data-testid\")&&`(testId=${el.getAttribute(\"data-testid\")})`,getLabelDescr(el),tree.length>1&&i===0&&\" <-- This element declared `pointer-events: none`\",tree.length>1&&i===tree.length-1&&\" <-- Asserted pointer events here\"].filter(Boolean).join(\"\")).join(`\n`)}function getLabelDescr(element){var _element_labels;let label;if(element.hasAttribute(\"aria-label\"))label=element.getAttribute(\"aria-label\");else if(element.hasAttribute(\"aria-labelledby\")){var _element_ownerDocument_getElementById_textContent,_element_ownerDocument_getElementById;label=(_element_ownerDocument_getElementById=element.ownerDocument.getElementById(element.getAttribute(\"aria-labelledby\")))===null||_element_ownerDocument_getElementById===void 0||(_element_ownerDocument_getElementById_textContent=_element_ownerDocument_getElementById.textContent)===null||_element_ownerDocument_getElementById_textContent===void 0?void 0:_element_ownerDocument_getElementById_textContent.trim();}else if(isElementType(element,[\"button\",\"input\",\"meter\",\"output\",\"progress\",\"select\",\"textarea\"])&&(!((_element_labels=element.labels)===null||_element_labels===void 0)&&_element_labels.length))label=Array.from(element.labels).map(el=>{var _el_textContent;return (_el_textContent=el.textContent)===null||_el_textContent===void 0?void 0:_el_textContent.trim()}).join(\"|\");else if(isElementType(element,\"button\")){var _element_textContent;label=(_element_textContent=element.textContent)===null||_element_textContent===void 0?void 0:_element_textContent.trim();}return label=label?.replace(/\\n/g,\" \"),Number(label?.length)>30&&(label=`${label?.substring(0,29)}\\u2026`),label?`(label=${label})`:\"\"}function hasBitFlag(conf,flag3){return (conf&flag3)>0}function _define_property7(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var Pointer=class{init(instance,position){this.position=position;let target=this.getTarget(instance),[,enter]=getTreeDiff(null,target),init=this.getEventInit();return assertPointerEvents(instance,target),instance.dispatchUIEvent(target,\"pointerover\",init),enter.forEach(el=>instance.dispatchUIEvent(el,\"pointerenter\",init)),this}move(instance,position){let prevPosition=this.position,prevTarget=this.getTarget(instance);if(this.position=position,!isDifferentPointerPosition(prevPosition,position))return;let nextTarget=this.getTarget(instance),init=this.getEventInit(),[leave,enter]=getTreeDiff(prevTarget,nextTarget);return {leave:()=>{hasPointerEvents(instance,prevTarget)&&prevTarget!==nextTarget&&(instance.dispatchUIEvent(prevTarget,\"pointerout\",init),leave.forEach(el=>instance.dispatchUIEvent(el,\"pointerleave\",init)));},enter:()=>{assertPointerEvents(instance,nextTarget),prevTarget!==nextTarget&&(instance.dispatchUIEvent(nextTarget,\"pointerover\",init),enter.forEach(el=>instance.dispatchUIEvent(el,\"pointerenter\",init)));},move:()=>{instance.dispatchUIEvent(nextTarget,\"pointermove\",init);}}}down(instance,_keyDef){if(this.isDown)return;let target=this.getTarget(instance);assertPointerEvents(instance,target),this.isDown=!0,this.isPrevented=!instance.dispatchUIEvent(target,\"pointerdown\",this.getEventInit());}up(instance,_keyDef){if(!this.isDown)return;let target=this.getTarget(instance);assertPointerEvents(instance,target),this.isDown=!1,instance.dispatchUIEvent(target,\"pointerup\",this.getEventInit());}release(instance){let target=this.getTarget(instance),[leave]=getTreeDiff(target,null),init=this.getEventInit();hasPointerEvents(instance,target)&&(instance.dispatchUIEvent(target,\"pointerout\",init),leave.forEach(el=>instance.dispatchUIEvent(el,\"pointerleave\",init))),this.isCancelled=!0;}getTarget(instance){var _this_position_target;return (_this_position_target=this.position.target)!==null&&_this_position_target!==void 0?_this_position_target:instance.config.document.body}getEventInit(){return {...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary}}constructor({pointerId,pointerType,isPrimary}){_define_property7(this,\"pointerId\",void 0),_define_property7(this,\"pointerType\",void 0),_define_property7(this,\"isPrimary\",void 0),_define_property7(this,\"isMultitouch\",!1),_define_property7(this,\"isCancelled\",!1),_define_property7(this,\"isDown\",!1),_define_property7(this,\"isPrevented\",!1),_define_property7(this,\"position\",{}),this.pointerId=pointerId,this.pointerType=pointerType,this.isPrimary=isPrimary,this.isMultitouch=!isPrimary;}};function _define_property8(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var PointerHost=class{isKeyPressed(keyDef){return this.devices.get(keyDef.pointerType).isPressed(keyDef)}async press(instance,keyDef,position){let pointerName=this.getPointerName(keyDef),pointer3=keyDef.pointerType===\"touch\"?this.pointers.new(pointerName,keyDef).init(instance,position):this.pointers.get(pointerName);pointer3.position=position,pointer3.pointerType!==\"touch\"&&(this.mouse.position=position),this.devices.get(keyDef.pointerType).addPressed(keyDef),this.buttons.down(keyDef),pointer3.down(instance,keyDef),pointer3.pointerType!==\"touch\"&&!pointer3.isPrevented&&this.mouse.down(instance,keyDef,pointer3);}async move(instance,pointerName,position){let pointer3=this.pointers.get(pointerName),pointermove=pointer3.move(instance,position),mousemove=pointer3.pointerType===\"touch\"||pointer3.isPrevented&&pointer3.isDown?void 0:this.mouse.move(instance,position);pointermove?.leave(),mousemove?.leave(),pointermove?.enter(),mousemove?.enter(),pointermove?.move(),mousemove?.move();}async release(instance,keyDef,position){let device=this.devices.get(keyDef.pointerType);device.removePressed(keyDef),this.buttons.up(keyDef);let pointer3=this.pointers.get(this.getPointerName(keyDef));if(pointer3.position=position,pointer3.pointerType!==\"touch\"&&(this.mouse.position=position),device.countPressed===0&&pointer3.up(instance,keyDef),pointer3.pointerType===\"touch\"&&pointer3.release(instance),!pointer3.isPrevented){if(pointer3.pointerType===\"touch\"&&!pointer3.isMultitouch){let mousemove=this.mouse.move(instance,pointer3.position);mousemove?.leave(),mousemove?.enter(),mousemove?.move(),this.mouse.down(instance,keyDef,pointer3);}if(!pointer3.isMultitouch){let mousemove=this.mouse.move(instance,pointer3.position);mousemove?.leave(),mousemove?.enter(),mousemove?.move(),this.mouse.up(instance,keyDef,pointer3);}}}getPointerName(keyDef){return keyDef.pointerType===\"touch\"?keyDef.name:keyDef.pointerType}getPreviousPosition(pointerName){return this.pointers.has(pointerName)?this.pointers.get(pointerName).position:void 0}resetClickCount(){this.mouse.resetClickCount();}getMouseTarget(instance){var _this_mouse_position_target;return (_this_mouse_position_target=this.mouse.position.target)!==null&&_this_mouse_position_target!==void 0?_this_mouse_position_target:instance.config.document.body}setMousePosition(position){this.mouse.position=position,this.pointers.get(\"mouse\").position=position;}constructor(system){_define_property8(this,\"system\",void 0),_define_property8(this,\"mouse\",void 0),_define_property8(this,\"buttons\",void 0),_define_property8(this,\"devices\",new class{get(k2){var _this_registry,_k,_;return (_=(_this_registry=this.registry)[_k=k2])!==null&&_!==void 0||(_this_registry[_k]=new Device),this.registry[k2]}constructor(){_define_property8(this,\"registry\",{});}}),_define_property8(this,\"pointers\",new class{new(pointerName,keyDef){let isPrimary=keyDef.pointerType!==\"touch\"||!Object.values(this.registry).some(p3=>p3.pointerType===\"touch\"&&!p3.isCancelled);return isPrimary||Object.values(this.registry).forEach(p3=>{p3.pointerType===keyDef.pointerType&&!p3.isCancelled&&(p3.isMultitouch=!0);}),this.registry[pointerName]=new Pointer({pointerId:this.nextId++,pointerType:keyDef.pointerType,isPrimary}),this.registry[pointerName]}get(pointerName){if(!this.has(pointerName))throw new Error(`Trying to access pointer \"${pointerName}\" which does not exist.`);return this.registry[pointerName]}has(pointerName){return pointerName in this.registry}constructor(){_define_property8(this,\"registry\",{mouse:new Pointer({pointerId:1,pointerType:\"mouse\",isPrimary:!0})}),_define_property8(this,\"nextId\",2);}}),this.system=system,this.buttons=new Buttons,this.mouse=new Mouse;}};function _define_property9(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var System=class{getUIEventModifiers(){return {altKey:this.keyboard.modifiers.Alt,ctrlKey:this.keyboard.modifiers.Control,metaKey:this.keyboard.modifiers.Meta,shiftKey:this.keyboard.modifiers.Shift,modifierAltGraph:this.keyboard.modifiers.AltGraph,modifierCapsLock:this.keyboard.modifiers.CapsLock,modifierFn:this.keyboard.modifiers.Fn,modifierFnLock:this.keyboard.modifiers.FnLock,modifierNumLock:this.keyboard.modifiers.NumLock,modifierScrollLock:this.keyboard.modifiers.ScrollLock,modifierSymbol:this.keyboard.modifiers.Symbol,modifierSymbolLock:this.keyboard.modifiers.SymbolLock}}constructor(){_define_property9(this,\"keyboard\",new KeyboardHost(this)),_define_property9(this,\"pointer\",new PointerHost(this));}};async function click(element){let pointerIn=[];return this.config.skipHover||pointerIn.push({target:element}),pointerIn.push({keys:\"[MouseLeft]\",target:element}),this.pointer(pointerIn)}async function dblClick(element){return this.pointer([{target:element},\"[MouseLeft][MouseLeft]\"])}async function tripleClick(element){return this.pointer([{target:element},\"[MouseLeft][MouseLeft][MouseLeft]\"])}async function hover(element){return this.pointer({target:element})}async function unhover(element){return assertPointerEvents(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:element.ownerDocument.body})}async function tab({shift}={}){return this.keyboard(shift===!0?\"{Shift>}{Tab}{/Shift}\":shift===!1?\"[/ShiftLeft][/ShiftRight]{Tab}\":\"{Tab}\")}function parseKeyDef(keyboardMap,text){let defs=[];do{let{type:type5,descriptor,consumedLength,releasePrevious,releaseSelf=!0,repeat}=readNextDescriptor(text,\"keyboard\");var _keyboardMap_find;let keyDef=(_keyboardMap_find=keyboardMap.find(def=>{if(type5===\"[\"){var _def_code;return ((_def_code=def.code)===null||_def_code===void 0?void 0:_def_code.toLowerCase())===descriptor.toLowerCase()}else if(type5===\"{\"){var _def_key;return ((_def_key=def.key)===null||_def_key===void 0?void 0:_def_key.toLowerCase())===descriptor.toLowerCase()}return def.key===descriptor}))!==null&&_keyboardMap_find!==void 0?_keyboardMap_find:{key:\"Unknown\",code:\"Unknown\",[type5===\"[\"?\"code\":\"key\"]:descriptor};defs.push({keyDef,releasePrevious,releaseSelf,repeat}),text=text.slice(consumedLength);}while(text);return defs}async function keyboard(text){let actions=parseKeyDef(this.config.keyboardMap,text);for(let i=0;i{throw new Error(\"`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.\")});this.dispatchUIEvent(target,\"paste\",{clipboardData:dataTransfer});}function getClipboardDataFromString(doc,text){let dt=createDataTransfer(getWindow(doc));return dt.setData(\"text\",text),dt}function parseKeyDef2(pointerMap,keys2){let defs=[];do{let{descriptor,consumedLength,releasePrevious,releaseSelf=!0}=readNextDescriptor(keys2,\"pointer\"),keyDef=pointerMap.find(p3=>p3.name===descriptor);keyDef&&defs.push({keyDef,releasePrevious,releaseSelf}),keys2=keys2.slice(consumedLength);}while(keys2);return defs}async function pointer(input2){let{pointerMap}=this.config,actions=[];(Array.isArray(input2)?input2:[input2]).forEach(actionInput=>{typeof actionInput==\"string\"?actions.push(...parseKeyDef2(pointerMap,actionInput)):\"keys\"in actionInput?actions.push(...parseKeyDef2(pointerMap,actionInput.keys).map(i=>({...actionInput,...i}))):actions.push(actionInput);});for(let i=0;i{if(typeof val!=\"string\"&&allOptions.includes(val))return val;{let matchingOption=allOptions.find(o=>o.value===val||o.innerHTML===val);if(matchingOption)return matchingOption;throw getConfig2().getElementError(`Value \"${String(val)}\" not found in options`,select)}}).filter(option=>!isDisabled2(option));if(isDisabled2(select)||!selectedOptions.length)return;let selectOption=option=>{option.selected=newValue,this.dispatchUIEvent(select,\"input\",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(select,\"change\");};if(isElementType(select,\"select\"))if(select.multiple)for(let option of selectedOptions){let withPointerEvents=this.config.pointerEventsCheck===0?!0:hasPointerEvents(this,option);withPointerEvents&&(this.dispatchUIEvent(option,\"pointerover\"),this.dispatchUIEvent(select,\"pointerenter\"),this.dispatchUIEvent(option,\"mouseover\"),this.dispatchUIEvent(select,\"mouseenter\"),this.dispatchUIEvent(option,\"pointermove\"),this.dispatchUIEvent(option,\"mousemove\"),this.dispatchUIEvent(option,\"pointerdown\"),this.dispatchUIEvent(option,\"mousedown\")),focusElement(select),withPointerEvents&&(this.dispatchUIEvent(option,\"pointerup\"),this.dispatchUIEvent(option,\"mouseup\")),selectOption(option),withPointerEvents&&this.dispatchUIEvent(option,\"click\"),await wait(this.config);}else if(selectedOptions.length===1){let withPointerEvents=this.config.pointerEventsCheck===0?!0:hasPointerEvents(this,select);withPointerEvents?await this.click(select):focusElement(select),selectOption(selectedOptions[0]),withPointerEvents&&(this.dispatchUIEvent(select,\"pointerover\"),this.dispatchUIEvent(select,\"pointerenter\"),this.dispatchUIEvent(select,\"mouseover\"),this.dispatchUIEvent(select,\"mouseenter\"),this.dispatchUIEvent(select,\"pointerup\"),this.dispatchUIEvent(select,\"mouseup\"),this.dispatchUIEvent(select,\"click\")),await wait(this.config);}else throw getConfig2().getElementError(\"Cannot select multiple options on a non-multiple select\",select);else if(select.getAttribute(\"role\")===\"listbox\")for(let option of selectedOptions)await this.click(option),await this.unhover(option);else throw getConfig2().getElementError(\"Cannot select options on elements that are neither select nor listbox elements\",select)}async function type3(element,text,{skipClick=this.config.skipClick,skipAutoClose=this.config.skipAutoClose,initialSelectionStart,initialSelectionEnd}={}){element.disabled||(skipClick||await this.click(element),initialSelectionStart!==void 0&&setSelectionRange(element,initialSelectionStart,initialSelectionEnd??initialSelectionStart),await this.keyboard(text),skipAutoClose||await releaseAllKeys(this));}var fakeFiles=Symbol(\"files and value properties are mocked\");function restoreProperty(obj,prop,descriptor){descriptor?Object.defineProperty(obj,prop,descriptor):delete obj[prop];}function setFiles(el,files){var _el_fakeFiles;(_el_fakeFiles=el[fakeFiles])===null||_el_fakeFiles===void 0||_el_fakeFiles.restore();let typeDescr=Object.getOwnPropertyDescriptor(el,\"type\"),valueDescr=Object.getOwnPropertyDescriptor(el,\"value\"),filesDescr=Object.getOwnPropertyDescriptor(el,\"files\");function restore(){restoreProperty(el,\"type\",typeDescr),restoreProperty(el,\"value\",valueDescr),restoreProperty(el,\"files\",filesDescr);}el[fakeFiles]={restore},Object.defineProperties(el,{files:{configurable:!0,get:()=>files},value:{configurable:!0,get:()=>files.length?`C:\\\\fakepath\\\\${files[0].name}`:\"\",set(v){if(v===\"\")restore();else {var _valueDescr_set;valueDescr==null||(_valueDescr_set=valueDescr.set)===null||_valueDescr_set===void 0||_valueDescr_set.call(el,v);}}},type:{configurable:!0,get:()=>\"file\",set(v){v!==\"file\"&&(restore(),el.type=v);}}});}async function upload(element,fileOrFiles){let input2=isElementType(element,\"label\")?element.control:element;if(!input2||!isElementType(input2,\"input\",{type:\"file\"}))throw new TypeError(`The ${input2===element?\"given\":\"associated\"} ${input2?.tagName} element does not accept file uploads`);if(isDisabled2(element))return;let files=(Array.isArray(fileOrFiles)?fileOrFiles:[fileOrFiles]).filter(file=>!this.config.applyAccept||isAcceptableFile(file,input2.accept)).slice(0,input2.multiple?void 0:1),fileDialog=()=>{var _input_files;files.length===((_input_files=input2.files)===null||_input_files===void 0?void 0:_input_files.length)&&files.every((f4,i)=>{var _input_files2;return f4===((_input_files2=input2.files)===null||_input_files2===void 0?void 0:_input_files2.item(i))})||(setFiles(input2,createFileList(getWindow(element),files)),this.dispatchUIEvent(input2,\"input\"),this.dispatchUIEvent(input2,\"change\"));};input2.addEventListener(\"fileDialog\",fileDialog),await this.click(element),input2.removeEventListener(\"fileDialog\",fileDialog);}function isAcceptableFile(file,accept){if(!accept)return !0;let wildcards=[\"audio/*\",\"image/*\",\"video/*\"];return accept.split(\",\").some(acceptToken=>acceptToken.startsWith(\".\")?file.name.endsWith(acceptToken):wildcards.includes(acceptToken)?file.type.startsWith(acceptToken.substr(0,acceptToken.length-1)):file.type===acceptToken)}var userEventApi={click,dblClick,tripleClick,hover,unhover,tab,keyboard,copy,cut,paste,pointer,clear,deselectOptions,selectOptions,type:type3,upload};function wrapAsync(implementation){return getConfig2().asyncWrapper(implementation)}var defaultOptionsDirect={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:defaultKeyMap,pointerMap:defaultKeyMap2,pointerEventsCheck:PointerEventsCheckLevel.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},defaultOptionsSetup={...defaultOptionsDirect,writeToClipboard:!0};function createConfig(options={},defaults=defaultOptionsSetup,node){let document2=getDocument2(options,node,defaults);return {...defaults,...options,document:document2}}function setupMain(options={}){let config3=createConfig(options);prepareDocument(config3.document);var _config_document_defaultView;let view=(_config_document_defaultView=config3.document.defaultView)!==null&&_config_document_defaultView!==void 0?_config_document_defaultView:globalThis.window;return attachClipboardStubToView(view),createInstance(config3).api}function setupDirect({keyboardState,pointerState,...options}={},node){let config3=createConfig(options,defaultOptionsDirect,node);prepareDocument(config3.document);var _ref;let system=(_ref=pointerState??keyboardState)!==null&&_ref!==void 0?_ref:new System;return {api:createInstance(config3,system).api,system}}function setupSub(options){return createInstance({...this.config,...options},this.system).api}function wrapAndBindImpl(instance,impl){function method(...args){return setLevelRef(instance,ApiLevel.Call),wrapAsync(()=>impl.apply(instance,args).then(async ret=>(await wait(instance.config),ret)))}return Object.defineProperty(method,\"name\",{get:()=>impl.name}),method}function createInstance(config3,system=new System){let instance={};return Object.assign(instance,{config:config3,dispatchEvent:dispatchEvent.bind(instance),dispatchUIEvent:dispatchUIEvent.bind(instance),system,levelRefs:{},...userEventApi}),{instance,api:{...Object.fromEntries(Object.entries(userEventApi).map(([name,api])=>[name,wrapAndBindImpl(instance,api)])),setup:setupSub.bind(instance)}}}function getDocument2(options,node,defaults){var _options_document,_ref;return (_ref=(_options_document=options.document)!==null&&_options_document!==void 0?_options_document:node&&getDocumentFromNode(node))!==null&&_ref!==void 0?_ref:defaults.document}var directApi_exports={};__export(directApi_exports,{clear:()=>clear2,click:()=>click2,copy:()=>copy2,cut:()=>cut2,dblClick:()=>dblClick2,deselectOptions:()=>deselectOptions2,hover:()=>hover2,keyboard:()=>keyboard2,paste:()=>paste2,pointer:()=>pointer2,selectOptions:()=>selectOptions2,tab:()=>tab2,tripleClick:()=>tripleClick2,type:()=>type4,unhover:()=>unhover2,upload:()=>upload2});function clear2(element){return setupDirect().api.clear(element)}function click2(element,options={}){return setupDirect(options,element).api.click(element)}function copy2(options={}){return setupDirect(options).api.copy()}function cut2(options={}){return setupDirect(options).api.cut()}function dblClick2(element,options={}){return setupDirect(options).api.dblClick(element)}function deselectOptions2(select,values,options={}){return setupDirect(options).api.deselectOptions(select,values)}function hover2(element,options={}){return setupDirect(options).api.hover(element)}async function keyboard2(text,options={}){let{api,system}=setupDirect(options);return api.keyboard(text).then(()=>system)}async function pointer2(input2,options={}){let{api,system}=setupDirect(options);return api.pointer(input2).then(()=>system)}function paste2(clipboardData,options){return setupDirect(options).api.paste(clipboardData)}function selectOptions2(select,values,options={}){return setupDirect(options).api.selectOptions(select,values)}function tripleClick2(element,options={}){return setupDirect(options).api.tripleClick(element)}function type4(element,text,options={}){return setupDirect(options,element).api.type(element,text,options)}function unhover2(element,options={}){let{api,system}=setupDirect(options);return system.pointer.setMousePosition({target:element}),api.unhover(element)}function upload2(element,fileOrFiles,options={}){return setupDirect(options).api.upload(element,fileOrFiles)}function tab2(options={}){return setupDirect().api.tab(options)}var userEvent={...directApi_exports,setup:setupMain};function dedent(templ){for(var values=[],_i=1;_ipath[0]===\"fireEvent\"||method.startsWith(\"find\")||method.startsWith(\"waitFor\")});testingLibrary.screen=new Proxy(testingLibrary.screen,{get(target,prop,receiver){return once.warn(esm_default`\n You are using Testing Library's \\`screen\\` object. Use \\`within(canvasElement)\\` instead.\n More info: https://storybook.js.org/docs/essentials/interactions\n `),Reflect.get(target,prop,receiver)}});var {buildQueries:buildQueries2,configure:configure2,createEvent:createEvent3,fireEvent:fireEvent2,findAllByAltText:findAllByAltText2,findAllByDisplayValue:findAllByDisplayValue2,findAllByLabelText:findAllByLabelText2,findAllByPlaceholderText:findAllByPlaceholderText2,findAllByRole:findAllByRole2,findAllByTestId:findAllByTestId2,findAllByText:findAllByText2,findAllByTitle:findAllByTitle2,findByAltText:findByAltText2,findByDisplayValue:findByDisplayValue2,findByLabelText:findByLabelText2,findByPlaceholderText:findByPlaceholderText2,findByRole:findByRole2,findByTestId:findByTestId2,findByText:findByText2,findByTitle:findByTitle2,getAllByAltText:getAllByAltText2,getAllByDisplayValue:getAllByDisplayValue2,getAllByLabelText:getAllByLabelText2,getAllByPlaceholderText:getAllByPlaceholderText2,getAllByRole:getAllByRole2,getAllByTestId:getAllByTestId2,getAllByText:getAllByText2,getAllByTitle:getAllByTitle2,getByAltText:getByAltText2,getByDisplayValue:getByDisplayValue2,getByLabelText:getByLabelText2,getByPlaceholderText:getByPlaceholderText2,getByRole:getByRole2,getByTestId:getByTestId2,getByText:getByText2,getByTitle:getByTitle2,getConfig:getConfig3,getDefaultNormalizer:getDefaultNormalizer2,getElementError:getElementError2,getNodeText:getNodeText2,getQueriesForElement:getQueriesForElement2,getRoles:getRoles2,getSuggestedQuery:getSuggestedQuery2,isInaccessible:isInaccessible2,logDOM:logDOM2,logRoles:logRoles2,prettyDOM:prettyDOM2,queries:queries2,queryAllByAltText:queryAllByAltText2,queryAllByAttribute:queryAllByAttribute2,queryAllByDisplayValue:queryAllByDisplayValue2,queryAllByLabelText:queryAllByLabelText2,queryAllByPlaceholderText:queryAllByPlaceholderText2,queryAllByRole:queryAllByRole2,queryAllByTestId:queryAllByTestId2,queryAllByText:queryAllByText2,queryAllByTitle:queryAllByTitle2,queryByAltText:queryByAltText2,queryByAttribute:queryByAttribute2,queryByDisplayValue:queryByDisplayValue2,queryByLabelText:queryByLabelText2,queryByPlaceholderText:queryByPlaceholderText2,queryByRole:queryByRole2,queryByTestId:queryByTestId2,queryByText:queryByText2,queryByTitle:queryByTitle2,queryHelpers:queryHelpers2,screen:screen2,waitFor:waitFor2,waitForElementToBeRemoved:waitForElementToBeRemoved2,within,prettyFormat:prettyFormat2}=testingLibrary,{userEvent:userEvent2}=instrument({userEvent},{intercept:!0});var {expect:expect3}=instrument({expect:expect2},{getKeys:(obj,depth)=>{let privateApi=[\"assert\",\"__methods\",\"__flags\",\"_obj\"];if(obj.constructor===Assertion){let keys2=Object.keys(Object.getPrototypeOf(obj)).filter(it=>!privateApi.includes(it));return depth>2?keys2:[...keys2,\"not\"]}return Object.keys(obj)},intercept:method=>method!==\"expect\"}),resetAllMocksLoader=({parameters})=>{parameters?.test?.mockReset===!0?resetAllMocks():parameters?.test?.clearMocks===!0?clearAllMocks():parameters?.test?.restoreMocks!==!1&&restoreAllMocks();},traverseArgs=(value,depth=0,key)=>{if(depth>5||value==null)return value;if(isMockFunction(value))return key&&value.mockName(key),value;if(typeof value==\"function\"&&\"isAction\"in value&&value.isAction&&!(\"implicit\"in value&&value.implicit)){let mock=fn2(value);return key&&mock.mockName(key),mock}if(Array.isArray(value))return depth++,value.map(item=>traverseArgs(item,depth));if(typeof value==\"object\"&&value.constructor===Object){depth++;for(let[k2,v]of Object.entries(value))Object.getOwnPropertyDescriptor(value,k2)?.writable&&(value[k2]=traverseArgs(v,depth,k2));return value}return value},nameSpiesAndWrapActionsInSpies=({initialArgs})=>{traverseArgs(initialArgs);},enhanceContext=context=>{globalThis.HTMLElement&&context.canvasElement instanceof globalThis.HTMLElement&&(context.canvas=within(context.canvasElement));};global$1.__STORYBOOK_TEST_LOADERS__=[resetAllMocksLoader,nameSpiesAndWrapActionsInSpies,enhanceContext];global$1.__STORYBOOK_TEST_ON_MOCK_CALL__=onMockCall;\n\nexport { buildQueries2 as buildQueries, clearAllMocks, configure2 as configure, createEvent3 as createEvent, expect3 as expect, findAllByAltText2 as findAllByAltText, findAllByDisplayValue2 as findAllByDisplayValue, findAllByLabelText2 as findAllByLabelText, findAllByPlaceholderText2 as findAllByPlaceholderText, findAllByRole2 as findAllByRole, findAllByTestId2 as findAllByTestId, findAllByText2 as findAllByText, findAllByTitle2 as findAllByTitle, findByAltText2 as findByAltText, findByDisplayValue2 as findByDisplayValue, findByLabelText2 as findByLabelText, findByPlaceholderText2 as findByPlaceholderText, findByRole2 as findByRole, findByTestId2 as findByTestId, findByText2 as findByText, findByTitle2 as findByTitle, fireEvent2 as fireEvent, fn2 as fn, getAllByAltText2 as getAllByAltText, getAllByDisplayValue2 as getAllByDisplayValue, getAllByLabelText2 as getAllByLabelText, getAllByPlaceholderText2 as getAllByPlaceholderText, getAllByRole2 as getAllByRole, getAllByTestId2 as getAllByTestId, getAllByText2 as getAllByText, getAllByTitle2 as getAllByTitle, getByAltText2 as getByAltText, getByDisplayValue2 as getByDisplayValue, getByLabelText2 as getByLabelText, getByPlaceholderText2 as getByPlaceholderText, getByRole2 as getByRole, getByTestId2 as getByTestId, getByText2 as getByText, getByTitle2 as getByTitle, getConfig3 as getConfig, getDefaultNormalizer2 as getDefaultNormalizer, getElementError2 as getElementError, getNodeText2 as getNodeText, getQueriesForElement2 as getQueriesForElement, getRoles2 as getRoles, getSuggestedQuery2 as getSuggestedQuery, isInaccessible2 as isInaccessible, isMockFunction, logDOM2 as logDOM, logRoles2 as logRoles, mocked, mocks, onMockCall, prettyDOM2 as prettyDOM, prettyFormat2 as prettyFormat, queries2 as queries, queryAllByAltText2 as queryAllByAltText, queryAllByAttribute2 as queryAllByAttribute, queryAllByDisplayValue2 as queryAllByDisplayValue, queryAllByLabelText2 as queryAllByLabelText, queryAllByPlaceholderText2 as queryAllByPlaceholderText, queryAllByRole2 as queryAllByRole, queryAllByTestId2 as queryAllByTestId, queryAllByText2 as queryAllByText, queryAllByTitle2 as queryAllByTitle, queryByAltText2 as queryByAltText, queryByAttribute2 as queryByAttribute, queryByDisplayValue2 as queryByDisplayValue, queryByLabelText2 as queryByLabelText, queryByPlaceholderText2 as queryByPlaceholderText, queryByRole2 as queryByRole, queryByTestId2 as queryByTestId, queryByText2 as queryByText, queryByTitle2 as queryByTitle, queryHelpers2 as queryHelpers, resetAllMocks, restoreAllMocks, screen2 as screen, spyOn2 as spyOn, traverseArgs, userEvent2 as userEvent, waitFor2 as waitFor, waitForElementToBeRemoved2 as waitForElementToBeRemoved, within };\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/382.b22efce4.iframe.bundle.js b/382.b22efce4.iframe.bundle.js new file mode 100644 index 00000000000000..c690bef6e99293 --- /dev/null +++ b/382.b22efce4.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[382],{"./node_modules/@ariakit/react-core/esm/__chunks/4BXJGRNH.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{s:()=>useRadioStore});var _4CMBR7SL=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/4CMBR7SL.js"),YV4JVR4I=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js"),AJZ4BYF3=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/AJZ4BYF3.js"),BCALMBPZ=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/BCALMBPZ.js"),PBFD2E7P=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),_3YLGPPWQ=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/3YLGPPWQ.js");function createRadioStore(_a={}){var _a2,props=(0,_3YLGPPWQ.YG)(_a,[]);const syncState=null==(_a2=props.store)?void 0:_a2.getState(),composite=(0,AJZ4BYF3.z)((0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({},props),{focusLoop:(0,PBFD2E7P.Jh)(props.focusLoop,null==syncState?void 0:syncState.focusLoop,!0)})),initialState=(0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({},composite.getState()),{value:(0,PBFD2E7P.Jh)(props.value,null==syncState?void 0:syncState.value,props.defaultValue,null)}),radio=(0,BCALMBPZ.y$)(initialState,composite,props.store);return(0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)((0,_3YLGPPWQ.IA)({},composite),radio),{setValue:value=>radio.setState("value",value)})}function useRadioStore(props={}){const[store,update]=(0,YV4JVR4I.Pj)(createRadioStore,props);return function useRadioStoreProps(store,update,props){return store=(0,_4CMBR7SL.YO)(store,update,props),(0,YV4JVR4I.Tz)(store,props,"value","setValue"),store}(store,update,props)}},"./node_modules/@ariakit/react-core/esm/__chunks/HUWAI7RB.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{e:()=>ComboboxList});var _VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/VEVQD5MH.js"),_VGCJ63VH_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/VGCJ63VH.js"),_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),useComboboxList=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.ab)((function useComboboxList2(_a){var _b=_a,{store,alwaysVisible}=_b,props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.YG)(_b,["store","alwaysVisible"]);const scopedContext=(0,_VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_4__.UW)(!0),context=(0,_VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_4__.Ay)(),scopedContextSameStore=!!(store=store||context)&&store===scopedContext;(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.V1)(store,!1);const ref=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),id=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.Bi)(props.id),mounted=store.useState("mounted"),hidden=(0,_VGCJ63VH_js__WEBPACK_IMPORTED_MODULE_7__.dK)(mounted,props.hidden,alwaysVisible),style=hidden?(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({},props.style),{display:"none"}):props.style,multiSelectable=store.useState((state=>Array.isArray(state.selectedValue))),role=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.Cy)(ref,"role",props.role),ariaMultiSelectable=("listbox"===role||"tree"===role||"grid"===role)&&multiSelectable||void 0,[hasListboxInside,setHasListboxInside]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),contentElement=store.useState("contentElement");(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.UQ)((()=>{if(!mounted)return;const element=ref.current;if(!element)return;if(contentElement!==element)return;const callback=()=>{setHasListboxInside(!!element.querySelector("[role='listbox']"))},observer=new MutationObserver(callback);return observer.observe(element,{subtree:!0,childList:!0,attributeFilter:["role"]}),callback(),()=>observer.disconnect()}),[mounted,contentElement]),hasListboxInside||(props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({role:"listbox","aria-multiselectable":ariaMultiSelectable},props)),props=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.w7)(props,(element=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_4__.Ky,{value:store,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_4__.Hf.Provider,{value:role,children:element})})),[store,role]);const setContentElement=!id||scopedContext&&scopedContextSameStore?null:store.setContentElement;return props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({id,hidden},props),{ref:(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.SV)(setContentElement,ref,props.ref),style}),(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.HR)(props)})),ComboboxList=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.Rf)((function ComboboxList2(props){const htmlProps=useComboboxList(props);return(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.n)("div",htmlProps)}))},"./node_modules/@ariakit/react-core/esm/__chunks/J2LQO3EC.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{s:()=>CompositeRow});var _P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P7GR5CS5.js"),_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),useCompositeRow=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.ab)((function useCompositeRow2(_a){var _b=_a,{store,"aria-setsize":ariaSetSize,"aria-posinset":ariaPosInSet}=_b,props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.YG)(_b,["store","aria-setsize","aria-posinset"]);const context=(0,_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_4__.k)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.V1)(store,!1);const id=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.Bi)(props.id),baseElement=store.useState((state=>state.baseElement||void 0)),providerValue=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>({id,baseElement,ariaSetSize,ariaPosInSet})),[id,baseElement,ariaSetSize,ariaPosInSet]);return props=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_6__.w7)(props,(element=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_P7GR5CS5_js__WEBPACK_IMPORTED_MODULE_4__.$o.Provider,{value:providerValue,children:element})),[providerValue]),props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({id},props),(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.HR)(props)})),CompositeRow=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.Rf)((function CompositeRow2(props){const htmlProps=useCompositeRow(props);return(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.n)("div",htmlProps)}))},"./node_modules/@ariakit/react-core/esm/__chunks/ZTDSJLD6.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{x:()=>ComboboxItem});var _UQQRIHDV_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/UQQRIHDV.js"),_VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/VEVQD5MH.js"),_P2CTZE2T_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P2CTZE2T.js"),_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js"),_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/DTR5TSDJ.js"),_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@ariakit/core/esm/utils/events.js"),_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@ariakit/core/esm/utils/focus.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");function getItemRole(popupRole){var _a;return null!=(_a={menu:"menuitem",listbox:"option",tree:"treeitem"}[popupRole])?_a:"option"}var useComboboxItem=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.ab)((function useComboboxItem2(_a){var _a2,_b=_a,{store,value,hideOnClick,setValueOnClick,selectValueOnClick=!0,resetValueOnSelect,focusOnHover=!1,moveOnKeyPress=!0,getItem:getItemProp}=_b,props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.YG)(_b,["store","value","hideOnClick","setValueOnClick","selectValueOnClick","resetValueOnSelect","focusOnHover","moveOnKeyPress","getItem"]);const context=(0,_VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_4__.UW)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_5__.V1)(store,!1);const{resetValueOnSelectState,multiSelectable,selected}=(0,_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_6__.PX)(store,{resetValueOnSelectState:"resetValueOnSelect",multiSelectable:state=>Array.isArray(state.selectedValue),selected:state=>function isSelected(storeValue,itemValue){if(null!=itemValue)return null!=storeValue&&(Array.isArray(storeValue)?storeValue.includes(itemValue):storeValue===itemValue)}(state.selectedValue,value)}),getItem=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((item=>{const nextItem=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({},item),{value});return getItemProp?getItemProp(nextItem):nextItem}),[value,getItemProp]);setValueOnClick=null!=setValueOnClick?setValueOnClick:!multiSelectable,hideOnClick=null!=hideOnClick?hideOnClick:null!=value&&!multiSelectable;const onClickProp=props.onClick,setValueOnClickProp=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_7__.O4)(setValueOnClick),selectValueOnClickProp=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_7__.O4)(selectValueOnClick),resetValueOnSelectProp=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_7__.O4)(null!=(_a2=null!=resetValueOnSelect?resetValueOnSelect:resetValueOnSelectState)?_a2:multiSelectable),hideOnClickProp=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_7__.O4)(hideOnClick),onClick=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_7__._q)((event=>{null==onClickProp||onClickProp(event),event.defaultPrevented||(0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_8__.RN)(event)||(0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_8__.$b)(event)||(null!=value&&(selectValueOnClickProp(event)&&(resetValueOnSelectProp(event)&&(null==store||store.resetValue()),null==store||store.setSelectedValue((prevValue=>Array.isArray(prevValue)?prevValue.includes(value)?prevValue.filter((v=>v!==value)):[...prevValue,value]:value))),setValueOnClickProp(event)&&(null==store||store.setValue(value))),hideOnClickProp(event)&&(null==store||store.hide()))})),onKeyDownProp=props.onKeyDown,onKeyDown=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_7__._q)((event=>{if(null==onKeyDownProp||onKeyDownProp(event),event.defaultPrevented)return;const baseElement=null==store?void 0:store.getState().baseElement;if(!baseElement)return;if((0,_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_9__.AJ)(baseElement))return;(1===event.key.length||"Backspace"===event.key||"Delete"===event.key)&&(queueMicrotask((()=>baseElement.focus())),(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_10__.mB)(baseElement)&&(null==store||store.setValue(baseElement.value)))}));multiSelectable&&null!=selected&&(props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({"aria-selected":selected},props)),props=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_7__.w7)(props,(element=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_4__.L7.Provider,{value,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_4__.Hh.Provider,{value:null!=selected&&selected,children:element})})),[value,selected]);const popupRole=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_4__.Hf);props=(0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({role:getItemRole(popupRole),children:value},props),{onClick,onKeyDown});const moveOnKeyPressProp=(0,_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_7__.O4)(moveOnKeyPress);return props=(0,_P2CTZE2T_js__WEBPACK_IMPORTED_MODULE_11__.k)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({store},props),{getItem,moveOnKeyPress:event=>{if(!moveOnKeyPressProp(event))return!1;const moveEvent=new Event("combobox-item-move"),baseElement=null==store?void 0:store.getState().baseElement;return null==baseElement||baseElement.dispatchEvent(moveEvent),!0}})),props=(0,_UQQRIHDV_js__WEBPACK_IMPORTED_MODULE_12__.T)((0,_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({store,focusOnHover},props))})),ComboboxItem=(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.ph)((0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.Rf)((function ComboboxItem2(props){const htmlProps=useComboboxItem(props);return(0,_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.n)("div",htmlProps)})))},"./node_modules/@ariakit/react-core/esm/combobox/combobox-item-value.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{K:()=>ComboboxItemValue});var _chunks_VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/VEVQD5MH.js"),_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_chunks_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js"),_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_array__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/7PRQYBBV.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");function normalizeValue(value){return(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_2__.J2)(value).toLowerCase()}var useComboboxItemValue=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_4__.ab)((function useComboboxItemValue2(_a){var _b=_a,{store,value,userValue}=_b,props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_5__.YG)(_b,["store","value","userValue"]);const context=(0,_chunks_VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_6__.UW)();store=store||context;const itemContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_chunks_VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_6__.L7),itemValue=null!=value?value:itemContext,inputValue=(0,_chunks_YV4JVR4I_js__WEBPACK_IMPORTED_MODULE_7__.O$)(store,(state=>null!=userValue?userValue:null==state?void 0:state.value)),children=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>{if(itemValue)return inputValue?function splitValue(itemValue,userValue){if(!itemValue)return itemValue;if(!userValue)return itemValue;const userValues=(0,_ariakit_core_utils_array__WEBPACK_IMPORTED_MODULE_3__.$r)(userValue).filter(Boolean).map(normalizeValue),parts=[],span=(value,autocomplete=!1)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("span",{"data-autocomplete-value":autocomplete?"":void 0,"data-user-value":autocomplete?void 0:"",children:value},parts.length),offsets=function sortOffsets(offsets){return offsets.sort((([a],[b])=>a-b))}(function filterOverlappingOffsets(offsets){return offsets.filter((([offset,length],i,arr)=>!arr.some((([o,l],j)=>j!==i&&o<=offset&&o+l>=offset+length))))}(function getOffsets(string,values){const offsets=[];for(const value of values){let pos=0;const length=value.length;for(;-1!==string.indexOf(value,pos);){const index=string.indexOf(value,pos);-1!==index&&offsets.push([index,length]),pos=index+1}}return offsets}(normalizeValue(itemValue),new Set(userValues))));if(!offsets.length)return parts.push(span(itemValue,!0)),parts;const[firstOffset]=offsets[0];return[itemValue.slice(0,firstOffset),...offsets.flatMap((([offset,length],i)=>{var _a;const value=itemValue.slice(offset,offset+length),nextOffset=null==(_a=offsets[i+1])?void 0:_a[0];return[value,itemValue.slice(offset+length,nextOffset)]}))].forEach(((value,i)=>{value&&parts.push(span(value,i%2==0))})),parts}(itemValue,inputValue):itemValue}),[itemValue,inputValue]);return props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_5__.IA)({children},props),(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_2__.HR)(props)})),ComboboxItemValue=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_4__.Rf)((function ComboboxItemValue2(props){const htmlProps=useComboboxItemValue(props);return(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_4__.n)("span",htmlProps)}))},"./node_modules/@ariakit/react-core/esm/combobox/combobox-label.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{u:()=>ComboboxLabel});var _chunks_VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/VEVQD5MH.js"),_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),useComboboxLabel=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_0__.ab)((function useComboboxLabel2(_a){var _b=_a,{store}=_b,props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__.YG)(_b,["store"]);const context=(0,_chunks_VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_2__.PV)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_3__.V1)(store,!1);const comboboxId=store.useState((state=>{var _a2;return null==(_a2=state.baseElement)?void 0:_a2.id}));return props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_1__.IA)({htmlFor:comboboxId},props),(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_3__.HR)(props)})),ComboboxLabel=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_0__.ph)((0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_0__.Rf)((function ComboboxLabel2(props){const htmlProps=useComboboxLabel(props);return(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_0__.n)("label",htmlProps)})))},"./node_modules/@ariakit/react-core/esm/combobox/combobox-provider.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{v:()=>ComboboxProvider});var P7GR5CS5=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/P7GR5CS5.js"),LMDWO4NN=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),react=__webpack_require__("./node_modules/react/index.js"),ctx=((0,react.createContext)(null),(0,react.createContext)(null),(0,LMDWO4NN.B0)([P7GR5CS5.ws],[P7GR5CS5.aN])),useTagContext=ctx.useContext,_4CMBR7SL=(ctx.useScopedContext,ctx.useProviderContext,ctx.ContextProvider,ctx.ScopedContextProvider,__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/4CMBR7SL.js")),O2PQ2652=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/O2PQ2652.js"),YV4JVR4I=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js"),ABQUS43J=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_3YLGPPWQ=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),AJZ4BYF3=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/AJZ4BYF3.js"),ME2CUF3F=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/ME2CUF3F.js"),BCALMBPZ=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/BCALMBPZ.js"),PBFD2E7P=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),QAGXQEUG=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/QAGXQEUG.js"),_chunks_3YLGPPWQ=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/3YLGPPWQ.js"),isTouchSafari=(0,QAGXQEUG.nr)()&&(0,QAGXQEUG.CN)();function createComboboxStore(_a={}){var _b=_a,{tag}=_b,props=(0,_chunks_3YLGPPWQ.YG)(_b,["tag"]);const store=(0,BCALMBPZ.od)(props.store,(0,BCALMBPZ.Up)(tag,["value","rtl"]));(0,BCALMBPZ.UE)(props,store);const tagState=null==tag?void 0:tag.getState(),syncState=null==store?void 0:store.getState(),activeId=(0,PBFD2E7P.Jh)(props.activeId,null==syncState?void 0:syncState.activeId,props.defaultActiveId,null),composite=(0,AJZ4BYF3.z)((0,_chunks_3YLGPPWQ.ko)((0,_chunks_3YLGPPWQ.IA)({},props),{activeId,includesBaseElement:(0,PBFD2E7P.Jh)(props.includesBaseElement,null==syncState?void 0:syncState.includesBaseElement,!0),orientation:(0,PBFD2E7P.Jh)(props.orientation,null==syncState?void 0:syncState.orientation,"vertical"),focusLoop:(0,PBFD2E7P.Jh)(props.focusLoop,null==syncState?void 0:syncState.focusLoop,!0),focusWrap:(0,PBFD2E7P.Jh)(props.focusWrap,null==syncState?void 0:syncState.focusWrap,!0),virtualFocus:(0,PBFD2E7P.Jh)(props.virtualFocus,null==syncState?void 0:syncState.virtualFocus,!0)})),popover=(0,ME2CUF3F.N)((0,_chunks_3YLGPPWQ.ko)((0,_chunks_3YLGPPWQ.IA)({},props),{placement:(0,PBFD2E7P.Jh)(props.placement,null==syncState?void 0:syncState.placement,"bottom-start")})),value=(0,PBFD2E7P.Jh)(props.value,null==syncState?void 0:syncState.value,props.defaultValue,""),selectedValue=(0,PBFD2E7P.Jh)(props.selectedValue,null==syncState?void 0:syncState.selectedValue,null==tagState?void 0:tagState.values,props.defaultSelectedValue,""),multiSelectable=Array.isArray(selectedValue),initialState=(0,_chunks_3YLGPPWQ.ko)((0,_chunks_3YLGPPWQ.IA)((0,_chunks_3YLGPPWQ.IA)({},composite.getState()),popover.getState()),{value,selectedValue,resetValueOnSelect:(0,PBFD2E7P.Jh)(props.resetValueOnSelect,null==syncState?void 0:syncState.resetValueOnSelect,multiSelectable),resetValueOnHide:(0,PBFD2E7P.Jh)(props.resetValueOnHide,null==syncState?void 0:syncState.resetValueOnHide,multiSelectable&&!tag),activeValue:null==syncState?void 0:syncState.activeValue}),combobox=(0,BCALMBPZ.y$)(initialState,composite,popover,store);return isTouchSafari&&(0,BCALMBPZ.mj)(combobox,(()=>(0,BCALMBPZ.OH)(combobox,["virtualFocus"],(()=>{combobox.setState("virtualFocus",!1)})))),(0,BCALMBPZ.mj)(combobox,(()=>{if(tag)return(0,PBFD2E7P.cy)((0,BCALMBPZ.OH)(combobox,["selectedValue"],(state=>{Array.isArray(state.selectedValue)&&tag.setValues(state.selectedValue)})),(0,BCALMBPZ.OH)(tag,["values"],(state=>{combobox.setState("selectedValue",state.values)})))})),(0,BCALMBPZ.mj)(combobox,(()=>(0,BCALMBPZ.OH)(combobox,["resetValueOnHide","mounted"],(state=>{state.resetValueOnHide&&(state.mounted||combobox.setState("value",value))})))),(0,BCALMBPZ.mj)(combobox,(()=>(0,BCALMBPZ.OH)(combobox,["open"],(state=>{state.open||(combobox.setState("activeId",activeId),combobox.setState("moves",0))})))),(0,BCALMBPZ.mj)(combobox,(()=>(0,BCALMBPZ.OH)(combobox,["moves","activeId"],((state,prevState)=>{state.moves===prevState.moves&&combobox.setState("activeValue",void 0)})))),(0,BCALMBPZ.mj)(combobox,(()=>(0,BCALMBPZ.vA)(combobox,["moves","renderedItems"],((state,prev)=>{if(state.moves===prev.moves)return;const{activeId:activeId2}=combobox.getState(),activeItem=composite.item(activeId2);combobox.setState("activeValue",null==activeItem?void 0:activeItem.value)})))),(0,_chunks_3YLGPPWQ.ko)((0,_chunks_3YLGPPWQ.IA)((0,_chunks_3YLGPPWQ.IA)((0,_chunks_3YLGPPWQ.IA)({},popover),composite),combobox),{tag,setValue:value2=>combobox.setState("value",value2),resetValue:()=>combobox.setState("value",initialState.value),setSelectedValue:selectedValue2=>combobox.setState("selectedValue",selectedValue2)})}function useComboboxStore(props={}){props=function useComboboxStoreOptions(props){const tag=useTagContext();return props=(0,_3YLGPPWQ.ko)((0,_3YLGPPWQ.IA)({},props),{tag:void 0!==props.tag?props.tag:tag}),(0,_4CMBR7SL.YC)(props)}(props);const[store,update]=(0,YV4JVR4I.Pj)(createComboboxStore,props);return function useComboboxStoreProps(store,update,props){return(0,ABQUS43J.w5)(update,[props.tag]),(0,YV4JVR4I.Tz)(store,props,"value","setValue"),(0,YV4JVR4I.Tz)(store,props,"selectedValue","setSelectedValue"),(0,YV4JVR4I.Tz)(store,props,"resetValueOnHide"),(0,YV4JVR4I.Tz)(store,props,"resetValueOnSelect"),Object.assign((0,_4CMBR7SL.YO)((0,O2PQ2652.o)(store,update,props),update,props),{tag:props.tag})}(store,update,props)}var VEVQD5MH=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/VEVQD5MH.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function ComboboxProvider(props={}){const store=useComboboxStore(props);return(0,jsx_runtime.jsx)(VEVQD5MH.CE,{value:store,children:props.children})}},"./node_modules/@ariakit/react-core/esm/combobox/combobox.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{G:()=>Combobox});var _chunks_VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/VEVQD5MH.js"),_chunks_OMU7RWRV_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/OMU7RWRV.js"),_chunks_ITI7HKP4_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ITI7HKP4.js"),_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/DTR5TSDJ.js"),_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@ariakit/core/esm/utils/events.js"),_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@ariakit/core/esm/utils/focus.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),_ariakit_core_utils_store__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/BCALMBPZ.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function isFirstItemAutoSelected(items,activeValue,autoSelect){if(!autoSelect)return!1;const firstItem=items.find((item=>!item.disabled&&item.value));return(null==firstItem?void 0:firstItem.value)===activeValue}function hasCompletionString(value,activeValue){return!!activeValue&&(null!=value&&(value=(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_1__.J2)(value),activeValue.length>value.length&&0===activeValue.toLowerCase().indexOf(value.toLowerCase())))}var useCombobox=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.ab)((function useCombobox2(_a){var _b=_a,{store,focusable=!0,autoSelect:autoSelectProp=!1,getAutoSelectId,setValueOnChange,showMinLength=0,showOnChange,showOnMouseDown,showOnClick=showOnMouseDown,showOnKeyDown,showOnKeyPress=showOnKeyDown,blurActiveItemOnClick,setValueOnClick=!0,moveOnKeyPress=!0,autoComplete="list"}=_b,props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.YG)(_b,["store","focusable","autoSelect","getAutoSelectId","setValueOnChange","showMinLength","showOnChange","showOnMouseDown","showOnClick","showOnKeyDown","showOnKeyPress","blurActiveItemOnClick","setValueOnClick","moveOnKeyPress","autoComplete"]);const context=(0,_chunks_VEVQD5MH_js__WEBPACK_IMPORTED_MODULE_4__.PV)();store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_1__.V1)(store,!1);const ref=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),[valueUpdated,forceValueUpdate]=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.CH)(),canAutoSelectRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!1),composingRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!1),autoSelect=store.useState((state=>state.virtualFocus&&autoSelectProp)),inline="inline"===autoComplete||"both"===autoComplete,[canInline,setCanInline]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(inline);(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.Kp)((()=>{inline&&setCanInline(!0)}),[inline]);const storeValue=store.useState("value"),prevSelectedValueRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>(0,_ariakit_core_utils_store__WEBPACK_IMPORTED_MODULE_6__.OH)(store,["selectedValue","activeId"],((_,prev)=>{prevSelectedValueRef.current=prev.selectedValue}))),[]);const inlineActiveValue=store.useState((state=>{var _a2;if(inline&&canInline){if(state.activeValue&&Array.isArray(state.selectedValue)){if(state.selectedValue.includes(state.activeValue))return;if(null==(_a2=prevSelectedValueRef.current)?void 0:_a2.includes(state.activeValue))return}return state.activeValue}})),items=store.useState("renderedItems"),open=store.useState("open"),contentElement=store.useState("contentElement"),value=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>{if(!inline)return storeValue;if(!canInline)return storeValue;if(isFirstItemAutoSelected(items,inlineActiveValue,autoSelect)){if(hasCompletionString(storeValue,inlineActiveValue)){const slice=(null==inlineActiveValue?void 0:inlineActiveValue.slice(storeValue.length))||"";return storeValue+slice}return storeValue}return inlineActiveValue||storeValue}),[inline,canInline,items,inlineActiveValue,autoSelect,storeValue]);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{const element=ref.current;if(!element)return;const onCompositeItemMove=()=>setCanInline(!0);return element.addEventListener("combobox-item-move",onCompositeItemMove),()=>{element.removeEventListener("combobox-item-move",onCompositeItemMove)}}),[]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{if(!inline)return;if(!canInline)return;if(!inlineActiveValue)return;if(!isFirstItemAutoSelected(items,inlineActiveValue,autoSelect))return;if(!hasCompletionString(storeValue,inlineActiveValue))return;let cleanup=_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_1__.lQ;return queueMicrotask((()=>{const element=ref.current;if(!element)return;const{start:prevStart,end:prevEnd}=(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_7__.Zy)(element),nextStart=storeValue.length,nextEnd=inlineActiveValue.length;(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_7__.eG)(element,nextStart,nextEnd),cleanup=()=>{if(!(0,_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_8__.AJ)(element))return;const{start,end}=(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_7__.Zy)(element);start===nextStart&&end===nextEnd&&(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_7__.eG)(element,prevStart,prevEnd)}})),()=>cleanup()}),[valueUpdated,inline,canInline,inlineActiveValue,items,autoSelect,storeValue]);const scrollingElementRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),getAutoSelectIdProp=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__._q)(getAutoSelectId),autoSelectIdRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{if(!open)return;if(!contentElement)return;const scrollingElement=(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_7__.qj)(contentElement);if(!scrollingElement)return;scrollingElementRef.current=scrollingElement;const onUserScroll=()=>{canAutoSelectRef.current=!1},onScroll=()=>{if(!store)return;if(!canAutoSelectRef.current)return;const{activeId}=store.getState();null!==activeId&&activeId!==autoSelectIdRef.current&&(canAutoSelectRef.current=!1)},options={passive:!0,capture:!0};return scrollingElement.addEventListener("wheel",onUserScroll,options),scrollingElement.addEventListener("touchmove",onUserScroll,options),scrollingElement.addEventListener("scroll",onScroll,options),()=>{scrollingElement.removeEventListener("wheel",onUserScroll,!0),scrollingElement.removeEventListener("touchmove",onUserScroll,!0),scrollingElement.removeEventListener("scroll",onScroll,!0)}}),[open,contentElement,store]),(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.UQ)((()=>{storeValue&&(composingRef.current||(canAutoSelectRef.current=!0))}),[storeValue]),(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.UQ)((()=>{"always"!==autoSelect&&open||(canAutoSelectRef.current=open)}),[autoSelect,open]);const resetValueOnSelect=store.useState("resetValueOnSelect");(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.w5)((()=>{var _a2,_b2;const canAutoSelect=canAutoSelectRef.current;if(!store)return;if(!open)return;if(!canAutoSelect&&!resetValueOnSelect)return;const{baseElement,contentElement:contentElement2,activeId}=store.getState();if(!baseElement||(0,_ariakit_core_utils_focus__WEBPACK_IMPORTED_MODULE_8__.AJ)(baseElement)){if(null==contentElement2?void 0:contentElement2.hasAttribute("data-placing")){const observer=new MutationObserver(forceValueUpdate);return observer.observe(contentElement2,{attributeFilter:["data-placing"]}),()=>observer.disconnect()}if(autoSelect&&canAutoSelect){const userAutoSelectId=getAutoSelectIdProp(items),autoSelectId=void 0!==userAutoSelectId?userAutoSelectId:null!=(_a2=function getDefaultAutoSelectId(items){const item=items.find((item2=>{var _a;return!item2.disabled&&"tab"!==(null==(_a=item2.element)?void 0:_a.getAttribute("role"))}));return null==item?void 0:item.id}(items))?_a2:store.first();autoSelectIdRef.current=autoSelectId,store.move(null!=autoSelectId?autoSelectId:null)}else{const element=null==(_b2=store.item(activeId||store.first()))?void 0:_b2.element;element&&"scrollIntoView"in element&&element.scrollIntoView({block:"nearest",inline:"nearest"})}}}),[store,open,valueUpdated,storeValue,autoSelect,resetValueOnSelect,getAutoSelectIdProp,items]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{if(!inline)return;const combobox=ref.current;if(!combobox)return;const elements=[combobox,contentElement].filter((value2=>!!value2)),onBlur2=event=>{elements.every((el=>(0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_9__.aG)(event,el)))&&(null==store||store.setValue(value))};for(const element of elements)element.addEventListener("focusout",onBlur2);return()=>{for(const element of elements)element.removeEventListener("focusout",onBlur2)}}),[inline,contentElement,store,value]);const canShow=event=>event.currentTarget.value.length>=showMinLength,onChangeProp=props.onChange,showOnChangeProp=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.O4)(null!=showOnChange?showOnChange:canShow),setValueOnChangeProp=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.O4)(null!=setValueOnChange?setValueOnChange:!store.tag),onChange=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__._q)((event=>{if(null==onChangeProp||onChangeProp(event),event.defaultPrevented)return;if(!store)return;const currentTarget=event.currentTarget,{value:value2,selectionStart,selectionEnd}=currentTarget,nativeEvent=event.nativeEvent;if(canAutoSelectRef.current=!0,function isInputEvent(event){return"input"===event.type}(nativeEvent)&&(nativeEvent.isComposing&&(canAutoSelectRef.current=!1,composingRef.current=!0),inline)){const textInserted="insertText"===nativeEvent.inputType||"insertCompositionText"===nativeEvent.inputType,caretAtEnd=selectionStart===value2.length;setCanInline(textInserted&&caretAtEnd)}if(setValueOnChangeProp(event)){const isSameValue=value2===store.getState().value;store.setValue(value2),queueMicrotask((()=>{(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_7__.eG)(currentTarget,selectionStart,selectionEnd)})),inline&&autoSelect&&isSameValue&&forceValueUpdate()}showOnChangeProp(event)&&store.show(),autoSelect&&canAutoSelectRef.current||store.setActiveId(null)})),onCompositionEndProp=props.onCompositionEnd,onCompositionEnd=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__._q)((event=>{canAutoSelectRef.current=!0,composingRef.current=!1,null==onCompositionEndProp||onCompositionEndProp(event),event.defaultPrevented||autoSelect&&forceValueUpdate()})),onMouseDownProp=props.onMouseDown,blurActiveItemOnClickProp=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.O4)(null!=blurActiveItemOnClick?blurActiveItemOnClick:()=>!!(null==store?void 0:store.getState().includesBaseElement)),setValueOnClickProp=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.O4)(setValueOnClick),showOnClickProp=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.O4)(null!=showOnClick?showOnClick:canShow),onMouseDown=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__._q)((event=>{null==onMouseDownProp||onMouseDownProp(event),event.defaultPrevented||event.button||event.ctrlKey||store&&(blurActiveItemOnClickProp(event)&&store.setActiveId(null),setValueOnClickProp(event)&&store.setValue(value),showOnClickProp(event)&&(0,_ariakit_core_utils_events__WEBPACK_IMPORTED_MODULE_9__.nz)(event.currentTarget,"mouseup",store.show))})),onKeyDownProp=props.onKeyDown,showOnKeyPressProp=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.O4)(null!=showOnKeyPress?showOnKeyPress:canShow),onKeyDown=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__._q)((event=>{if(null==onKeyDownProp||onKeyDownProp(event),event.repeat||(canAutoSelectRef.current=!1),event.defaultPrevented)return;if(event.ctrlKey)return;if(event.altKey)return;if(event.shiftKey)return;if(event.metaKey)return;if(!store)return;const{open:open2}=store.getState();open2||"ArrowUp"!==event.key&&"ArrowDown"!==event.key||showOnKeyPressProp(event)&&(event.preventDefault(),store.show())})),onBlurProp=props.onBlur,onBlur=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__._q)((event=>{canAutoSelectRef.current=!1,null==onBlurProp||onBlurProp(event),event.defaultPrevented})),id=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.Bi)(props.id),ariaAutoComplete=function isAriaAutoCompleteValue(value){return"inline"===value||"list"===value||"both"===value||"none"===value}(autoComplete)?autoComplete:void 0,isActiveItem=store.useState((state=>null===state.activeId));return props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({id,role:"combobox","aria-autocomplete":ariaAutoComplete,"aria-haspopup":(0,_ariakit_core_utils_dom__WEBPACK_IMPORTED_MODULE_7__.Tc)(contentElement,"listbox"),"aria-expanded":open,"aria-controls":null==contentElement?void 0:contentElement.id,"data-active-item":isActiveItem||void 0,value},props),{ref:(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.SV)(ref,props.ref),onChange,onCompositionEnd,onMouseDown,onKeyDown,onBlur}),props=(0,_chunks_ITI7HKP4_js__WEBPACK_IMPORTED_MODULE_10__.T)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.ko)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({store,focusable},props),{moveOnKeyPress:event=>!(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_1__.zO)(moveOnKeyPress,event)&&(inline&&setCanInline(!0),!0)})),props=(0,_chunks_OMU7RWRV_js__WEBPACK_IMPORTED_MODULE_11__.E)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({store},props)),(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_3__.IA)({autoComplete:"off"},props)})),Combobox=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.Rf)((function Combobox2(props){const htmlProps=useCombobox(props);return(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_2__.n)("input",htmlProps)}))},"./node_modules/@ariakit/react-core/esm/radio/radio-group.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{z:()=>RadioGroup});var _chunks_UVUMR3WP_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/UVUMR3WP.js"),_chunks_ITI7HKP4_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ITI7HKP4.js"),_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js"),_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js"),_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js"),_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js"),useRadioGroup=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.ab)((function useRadioGroup2(_a){var _b=_a,{store}=_b,props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.YG)(_b,["store"]);const context=(0,_chunks_UVUMR3WP_js__WEBPACK_IMPORTED_MODULE_3__.XF)();return store=store||context,(0,_ariakit_core_utils_misc__WEBPACK_IMPORTED_MODULE_4__.V1)(store,!1),props=(0,_chunks_ABQUS43J_js__WEBPACK_IMPORTED_MODULE_5__.w7)(props,(element=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_chunks_UVUMR3WP_js__WEBPACK_IMPORTED_MODULE_3__.aN,{value:store,children:element})),[store]),props=(0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.IA)({role:"radiogroup"},props),props=(0,_chunks_ITI7HKP4_js__WEBPACK_IMPORTED_MODULE_6__.T)((0,_chunks_3YLGPPWQ_js__WEBPACK_IMPORTED_MODULE_2__.IA)({store},props))})),RadioGroup=(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.Rf)((function RadioGroup2(props){const htmlProps=useRadioGroup(props);return(0,_chunks_LMDWO4NN_js__WEBPACK_IMPORTED_MODULE_1__.n)("div",htmlProps)}))},"./node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/runtime/api.js":module=>{module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map((function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content})).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/runtime/sourceMaps.js":module=>{module.exports=function(item){var content=item[1],cssMapping=item[3];if(!cssMapping)return content;if("function"==typeof btoa){var base64=btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64),sourceMapping="/*# ".concat(data," */");return[content].concat([sourceMapping]).join("\n")}return[content].join("\n")}},"./node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":module=>{var stylesInDOM=[];function getIndexByIdentifier(identifier){for(var result=-1,i=0;i{var memo={};module.exports=function insertBySelector(insert,style){var target=function getTarget(target){if(void 0===memo[target]){var styleTarget=document.querySelector(target);if(window.HTMLIFrameElement&&styleTarget instanceof window.HTMLIFrameElement)try{styleTarget=styleTarget.contentDocument.head}catch(e){styleTarget=null}memo[target]=styleTarget}return memo[target]}(insert);if(!target)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");target.appendChild(style)}},"./node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertStyleElement.js":module=>{module.exports=function insertStyleElement(options){var element=document.createElement("style");return options.setAttributes(element,options.attributes),options.insert(element,options.options),element}},"./node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=function setAttributesWithoutAttributes(styleElement){var nonce=__webpack_require__.nc;nonce&&styleElement.setAttribute("nonce",nonce)}},"./node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleDomAPI.js":module=>{module.exports=function domAPI(options){if("undefined"==typeof document)return{update:function update(){},remove:function remove(){}};var styleElement=options.insertStyleElement(options);return{update:function update(obj){!function apply(styleElement,options,obj){var css="";obj.supports&&(css+="@supports (".concat(obj.supports,") {")),obj.media&&(css+="@media ".concat(obj.media," {"));var needLayer=void 0!==obj.layer;needLayer&&(css+="@layer".concat(obj.layer.length>0?" ".concat(obj.layer):""," {")),css+=obj.css,needLayer&&(css+="}"),obj.media&&(css+="}"),obj.supports&&(css+="}");var sourceMap=obj.sourceMap;sourceMap&&"undefined"!=typeof btoa&&(css+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))))," */")),options.styleTagTransform(css,styleElement,options.options)}(styleElement,options,obj)},remove:function remove(){!function removeStyleElement(styleElement){if(null===styleElement.parentNode)return!1;styleElement.parentNode.removeChild(styleElement)}(styleElement)}}}},"./node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleTagTransform.js":module=>{module.exports=function styleTagTransform(css,styleElement){if(styleElement.styleSheet)styleElement.styleSheet.cssText=css;else{for(;styleElement.firstChild;)styleElement.removeChild(styleElement.firstChild);styleElement.appendChild(document.createTextNode(css))}}},"./node_modules/date-fns/startOfMinute.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{c:()=>startOfMinute});var _toDate_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/date-fns/toDate.mjs");function startOfMinute(date){const _date=(0,_toDate_mjs__WEBPACK_IMPORTED_MODULE_0__.a)(date);return _date.setSeconds(0,0),_date}},"./node_modules/use-memo-one/dist/use-memo-one.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{MA:()=>useMemoOne});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function useMemoOne(getResult,inputs){var initial=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((function(){return{inputs,result:getResult()}}))[0],committed=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(initial),cache=Boolean(inputs&&committed.current.inputs&&function areInputsEqual(newInputs,lastInputs){if(newInputs.length!==lastInputs.length)return!1;for(var i=0;i{__webpack_require__.d(__webpack_exports__,{UE:()=>arrow,we:()=>useFloating});var _floating_ui_dom__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_dom__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react-dom/index.js");const arrow=options=>({name:"arrow",options,fn(state){const{element,padding}="function"==typeof options?options(state):options;return element&&function isRef(value){return{}.hasOwnProperty.call(value,"current")}(element)?null!=element.current?(0,_floating_ui_dom__WEBPACK_IMPORTED_MODULE_2__.UE)({element:element.current,padding}).fn(state):{}:element?(0,_floating_ui_dom__WEBPACK_IMPORTED_MODULE_2__.UE)({element,padding}).fn(state):{}}});var index="undefined"!=typeof document?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect;function deepEqual(a,b){if(a===b)return!0;if(typeof a!=typeof b)return!1;if("function"==typeof a&&a.toString()===b.toString())return!0;let length,i,keys;if(a&&b&&"object"==typeof a){if(Array.isArray(a)){if(length=a.length,length!=b.length)return!1;for(i=length;0!=i--;)if(!deepEqual(a[i],b[i]))return!1;return!0}if(keys=Object.keys(a),length=keys.length,length!==Object.keys(b).length)return!1;for(i=length;0!=i--;)if(!{}.hasOwnProperty.call(b,keys[i]))return!1;for(i=length;0!=i--;){const key=keys[i];if(("_owner"!==key||!a.$$typeof)&&!deepEqual(a[key],b[key]))return!1}return!0}return a!=a&&b!=b}function getDPR(element){if("undefined"==typeof window)return 1;return(element.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(element,value){const dpr=getDPR(element);return Math.round(value*dpr)/dpr}function useLatestRef(value){const ref=react__WEBPACK_IMPORTED_MODULE_0__.useRef(value);return index((()=>{ref.current=value})),ref}function useFloating(options){void 0===options&&(options={});const{placement="bottom",strategy="absolute",middleware=[],platform,elements:{reference:externalReference,floating:externalFloating}={},transform=!0,whileElementsMounted,open}=options,[data,setData]=react__WEBPACK_IMPORTED_MODULE_0__.useState({x:0,y:0,strategy,placement,middlewareData:{},isPositioned:!1}),[latestMiddleware,setLatestMiddleware]=react__WEBPACK_IMPORTED_MODULE_0__.useState(middleware);deepEqual(latestMiddleware,middleware)||setLatestMiddleware(middleware);const[_reference,_setReference]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[_floating,_setFloating]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),setReference=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((node=>{node!=referenceRef.current&&(referenceRef.current=node,_setReference(node))}),[_setReference]),setFloating=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((node=>{node!==floatingRef.current&&(floatingRef.current=node,_setFloating(node))}),[_setFloating]),referenceEl=externalReference||_reference,floatingEl=externalFloating||_floating,referenceRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),floatingRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),dataRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(data),whileElementsMountedRef=useLatestRef(whileElementsMounted),platformRef=useLatestRef(platform),update=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{if(!referenceRef.current||!floatingRef.current)return;const config={placement,strategy,middleware:latestMiddleware};platformRef.current&&(config.platform=platformRef.current),(0,_floating_ui_dom__WEBPACK_IMPORTED_MODULE_2__.rD)(referenceRef.current,floatingRef.current,config).then((data=>{const fullData={...data,isPositioned:!0};isMountedRef.current&&!deepEqual(dataRef.current,fullData)&&(dataRef.current=fullData,react_dom__WEBPACK_IMPORTED_MODULE_1__.flushSync((()=>{setData(fullData)})))}))}),[latestMiddleware,placement,strategy,platformRef]);index((()=>{!1===open&&dataRef.current.isPositioned&&(dataRef.current.isPositioned=!1,setData((data=>({...data,isPositioned:!1}))))}),[open]);const isMountedRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1);index((()=>(isMountedRef.current=!0,()=>{isMountedRef.current=!1})),[]),index((()=>{if(referenceEl&&(referenceRef.current=referenceEl),floatingEl&&(floatingRef.current=floatingEl),referenceEl&&floatingEl){if(whileElementsMountedRef.current)return whileElementsMountedRef.current(referenceEl,floatingEl,update);update()}}),[referenceEl,floatingEl,update,whileElementsMountedRef]);const refs=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({reference:referenceRef,floating:floatingRef,setReference,setFloating})),[setReference,setFloating]),elements=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({reference:referenceEl,floating:floatingEl})),[referenceEl,floatingEl]),floatingStyles=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>{const initialStyles={position:strategy,left:0,top:0};if(!elements.floating)return initialStyles;const x=roundByDPR(elements.floating,data.x),y=roundByDPR(elements.floating,data.y);return transform?{...initialStyles,transform:"translate("+x+"px, "+y+"px)",...getDPR(elements.floating)>=1.5&&{willChange:"transform"}}:{position:strategy,left:x,top:y}}),[strategy,transform,elements.floating,data.x,data.y]);return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({...data,update,refs,elements,floatingStyles})),[data,update,refs,elements,floatingStyles])}},"./packages/components/node_modules/uuid/dist/esm-browser/v4.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{var getRandomValues;__webpack_require__.d(__webpack_exports__,{A:()=>esm_browser_v4});var rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&!(getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const regex=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const esm_browser_validate=function validate(uuid){return"string"==typeof uuid&®ex.test(uuid)};for(var byteToHex=[],i=0;i<256;++i)byteToHex.push((i+256).toString(16).substr(1));const esm_browser_stringify=function stringify(arr){var offset=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,uuid=(byteToHex[arr[offset+0]]+byteToHex[arr[offset+1]]+byteToHex[arr[offset+2]]+byteToHex[arr[offset+3]]+"-"+byteToHex[arr[offset+4]]+byteToHex[arr[offset+5]]+"-"+byteToHex[arr[offset+6]]+byteToHex[arr[offset+7]]+"-"+byteToHex[arr[offset+8]]+byteToHex[arr[offset+9]]+"-"+byteToHex[arr[offset+10]]+byteToHex[arr[offset+11]]+byteToHex[arr[offset+12]]+byteToHex[arr[offset+13]]+byteToHex[arr[offset+14]]+byteToHex[arr[offset+15]]).toLowerCase();if(!esm_browser_validate(uuid))throw TypeError("Stringified UUID is invalid");return uuid};const esm_browser_v4=function v4(options,buf,offset){var rnds=(options=options||{}).random||(options.rng||rng)();if(rnds[6]=15&rnds[6]|64,rnds[8]=63&rnds[8]|128,buf){offset=offset||0;for(var i=0;i<16;++i)buf[offset+i]=rnds[i];return buf}return esm_browser_stringify(rnds)}}}]); \ No newline at end of file diff --git a/3875.582a1884.iframe.bundle.js b/3875.582a1884.iframe.bundle.js new file mode 100644 index 00000000000000..f9c7fd6cedc34e --- /dev/null +++ b/3875.582a1884.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[3875],{"./packages/components/build-module/grid/component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>grid_component});var context_connect=__webpack_require__("./packages/components/build-module/context/context-connect.js"),component=__webpack_require__("./packages/components/build-module/view/component.js"),emotion_react_browser_esm=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),react=__webpack_require__("./node_modules/react/index.js"),use_context_system=__webpack_require__("./packages/components/build-module/context/use-context-system.js");const ALIGNMENTS={bottom:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-end"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"},center:{alignItems:"center",justifyContent:"center"},spaced:{alignItems:"center",justifyContent:"space-between"},left:{alignItems:"center",justifyContent:"flex-start"},right:{alignItems:"center",justifyContent:"flex-end"},stretch:{alignItems:"stretch"},top:{alignItems:"flex-start",justifyContent:"center"},topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topRight:{alignItems:"flex-start",justifyContent:"flex-end"}};var use_responsive_value=__webpack_require__("./packages/components/build-module/utils/use-responsive-value.js"),config_values=__webpack_require__("./packages/components/build-module/utils/config-values.js"),use_cx=__webpack_require__("./packages/components/build-module/utils/hooks/use-cx.js");function useGrid(props){const{align,alignment,className,columnGap,columns=2,gap=3,isInline=!1,justify,rowGap,rows,templateColumns,templateRows,...otherProps}=(0,use_context_system.A)(props,"Grid"),columnsAsArray=Array.isArray(columns)?columns:[columns],column=(0,use_responsive_value.t)(columnsAsArray),rowsAsArray=Array.isArray(rows)?rows:[rows],row=(0,use_responsive_value.t)(rowsAsArray),gridTemplateColumns=templateColumns||!!columns&&`repeat( ${column}, 1fr )`,gridTemplateRows=templateRows||!!rows&&`repeat( ${row}, 1fr )`,cx=(0,use_cx.l)();return{...otherProps,className:(0,react.useMemo)((()=>{const alignmentProps=function getAlignmentProps(alignment){return alignment?ALIGNMENTS[alignment]:{}}(alignment),gridClasses=(0,emotion_react_browser_esm.AH)({alignItems:align,display:isInline?"inline-grid":"grid",gap:`calc( ${config_values.A.gridBase} * ${gap} )`,gridTemplateColumns:gridTemplateColumns||void 0,gridTemplateRows:gridTemplateRows||void 0,gridRowGap:rowGap,gridColumnGap:columnGap,justifyContent:justify,verticalAlign:isInline?"middle":void 0,...alignmentProps},"","","","");return cx(gridClasses,className)}),[align,alignment,className,columnGap,cx,gap,gridTemplateColumns,gridTemplateRows,isInline,justify,rowGap])}}var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const grid_component=(0,context_connect.KZ)((function UnconnectedGrid(props,forwardedRef){const gridProps=useGrid(props);return(0,jsx_runtime.jsx)(component.A,{...gridProps,ref:forwardedRef})}),"Grid")},"./packages/components/build-module/heading/component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>heading_component});var context_connect=__webpack_require__("./packages/components/build-module/context/context-connect.js"),component=__webpack_require__("./packages/components/build-module/view/component.js"),use_context_system=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),hook=__webpack_require__("./packages/components/build-module/text/hook.js"),font_size=__webpack_require__("./packages/components/build-module/utils/font-size.js"),colors_values=__webpack_require__("./packages/components/build-module/utils/colors-values.js"),config_values=__webpack_require__("./packages/components/build-module/utils/config-values.js");var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const heading_component=(0,context_connect.KZ)((function UnconnectedHeading(props,forwardedRef){const headerProps=function useHeading(props){const{as:asProp,level=2,color=colors_values.l.gray[900],isBlock=!0,weight=config_values.A.fontWeightHeading,...otherProps}=(0,use_context_system.A)(props,"Heading"),as=asProp||`h${level}`,a11yProps={};return"string"==typeof as&&"h"!==as[0]&&(a11yProps.role="heading",a11yProps["aria-level"]="string"==typeof level?parseInt(level):level),{...(0,hook.A)({color,isBlock,weight,size:(0,font_size.fM)(level),...otherProps}),...a11yProps,as}}(props);return(0,jsx_runtime.jsx)(component.A,{...headerProps,ref:forwardedRef})}),"Heading")},"./packages/components/build-module/menu-group/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var clsx__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),_wordpress_element__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/compose/build-module/hooks/use-instance-id/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=function MenuGroup(props){const{children,className="",label,hideSeparator}=props,instanceId=(0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__.A)(MenuGroup);if(!_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.Children.count(children))return null;const labelId=`components-menu-group-label-${instanceId}`,classNames=(0,clsx__WEBPACK_IMPORTED_MODULE_3__.A)(className,"components-menu-group",{"has-hidden-separator":hideSeparator});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:classNames,children:[label&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"components-menu-group__label",id:labelId,"aria-hidden":"true",children:label}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{role:"group","aria-labelledby":label?labelId:void 0,children})]})}},"./packages/components/build-module/menu-item/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var clsx__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),_wordpress_element__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),_shortcut__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/components/build-module/shortcut/index.js"),_button__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/components/build-module/button/index.js"),_icon__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/components/build-module/icon/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.forwardRef)((function UnforwardedMenuItem(props,ref){let{children,info,className,icon,iconPosition="right",shortcut,isSelected,role="menuitem",suffix,...buttonProps}=props;return className=(0,clsx__WEBPACK_IMPORTED_MODULE_1__.A)("components-menu-item__button",className),info&&(children=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span",{className:"components-menu-item__info-wrapper",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"components-menu-item__item",children}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"components-menu-item__info",children:info})]})),icon&&"string"!=typeof icon&&(icon=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.cloneElement)(icon,{className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__.A)("components-menu-items__item-icon",{"has-icon-right":"right"===iconPosition})})),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_button__WEBPACK_IMPORTED_MODULE_3__.Ay,{__next40pxDefaultSize:!0,ref,"aria-checked":"menuitemcheckbox"===role||"menuitemradio"===role?isSelected:void 0,role,icon:"left"===iconPosition?icon:void 0,className,...buttonProps,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"components-menu-item__item",children}),!suffix&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_shortcut__WEBPACK_IMPORTED_MODULE_4__.A,{className:"components-menu-item__shortcut",shortcut}),!suffix&&icon&&"right"===iconPosition&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_icon__WEBPACK_IMPORTED_MODULE_5__.A,{icon}),suffix]})}))},"./packages/components/build-module/tools-panel/context.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{M:()=>useToolsPanelContext,z:()=>ToolsPanelContext});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const noop=()=>{},ToolsPanelContext=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:noop,deregisterPanelItem:noop,flagItemCustomization:noop,registerResetAllFilter:noop,deregisterResetAllFilter:noop,areAllOptionalControlsHidden:!0}),useToolsPanelContext=()=>(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useContext)(ToolsPanelContext)},"./packages/components/build-module/tools-panel/styles.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{AZ:()=>ToolsPanelHeading,N5:()=>DefaultControlsItem,Xt:()=>ToolsPanelWithInnerWrapper,gg:()=>ResetLabel,iX:()=>ToolsPanel,jp:()=>ToolsPanelItem,rI:()=>DropdownMenu,wo:()=>ToolsPanelItemPlaceholder,zO:()=>ToolsPanelHeader,zz:()=>ToolsPanelHiddenInnerWrapper});var _emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),_emotion_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),_base_control_styles_base_control_styles__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/components/build-module/base-control/styles/base-control-styles.js"),_input_control_styles_input_control_styles__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/components/build-module/input-control/styles/input-control-styles.js"),_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/components/build-module/utils/config-values.js"),_utils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/components/build-module/utils/colors-values.js"),_utils__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/components/build-module/utils/rtl.js"),_utils_space__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/build-module/utils/space.js");const toolsPanelGrid={columns:columns=>(0,_emotion_react__WEBPACK_IMPORTED_MODULE_1__.AH)("grid-template-columns:",`repeat( ${columns}, minmax(0, 1fr) )`,";","","",""),spacing:(0,_emotion_react__WEBPACK_IMPORTED_MODULE_1__.AH)("column-gap:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_2__.x)(4),";row-gap:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_2__.x)(4),";","","",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},ToolsPanel=columns=>(0,_emotion_react__WEBPACK_IMPORTED_MODULE_1__.AH)(toolsPanelGrid.columns(columns)," ",toolsPanelGrid.spacing," border-top:",_utils__WEBPACK_IMPORTED_MODULE_3__.A.borderWidth," solid ",_utils__WEBPACK_IMPORTED_MODULE_4__.l.gray[300],";margin-top:-1px;padding:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_2__.x)(4),";","","",""),ToolsPanelWithInnerWrapper=columns=>(0,_emotion_react__WEBPACK_IMPORTED_MODULE_1__.AH)(">div:not( :first-of-type ){display:grid;",toolsPanelGrid.columns(columns)," ",toolsPanelGrid.spacing," ",toolsPanelGrid.item.fullWidth,";}","","",""),ToolsPanelHiddenInnerWrapper={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},ToolsPanelHeader=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_1__.AH)(toolsPanelGrid.item.fullWidth," gap:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_2__.x)(2),";.components-dropdown-menu{margin:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_2__.x)(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",(0,_utils_space__WEBPACK_IMPORTED_MODULE_2__.x)(6),";}","","",""),ToolsPanelHeading={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},ToolsPanelItem=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_1__.AH)(toolsPanelGrid.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",_base_control_styles_base_control_styles__WEBPACK_IMPORTED_MODULE_5__.mO,"{margin-bottom:0;",_base_control_styles_base_control_styles__WEBPACK_IMPORTED_MODULE_5__.mh,":last-child{margin-bottom:0;}}",_base_control_styles_base_control_styles__WEBPACK_IMPORTED_MODULE_5__.te,"{margin-bottom:0;}&& ",_input_control_styles_input_control_styles__WEBPACK_IMPORTED_MODULE_6__.cR,"{label{line-height:1.4em;}}","","",""),ToolsPanelItemPlaceholder={name:"eivff4",styles:"display:none"},DropdownMenu={name:"16gsvie",styles:"min-width:200px"},ResetLabel=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("span",{target:"ews648u0"})("color:",_utils__WEBPACK_IMPORTED_MODULE_4__.l.theme.accentDarker10,";font-size:11px;font-weight:500;line-height:1.4;",(0,_utils__WEBPACK_IMPORTED_MODULE_7__.h)({marginLeft:(0,_utils_space__WEBPACK_IMPORTED_MODULE_2__.x)(3)})," text-transform:uppercase;"),DefaultControlsItem=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_1__.AH)("color:",_utils__WEBPACK_IMPORTED_MODULE_4__.l.gray[900],";&&[aria-disabled='true']{color:",_utils__WEBPACK_IMPORTED_MODULE_4__.l.gray[700],";opacity:1;&:hover{color:",_utils__WEBPACK_IMPORTED_MODULE_4__.l.gray[700],";}",ResetLabel,"{opacity:0.3;}}","","","")},"./packages/components/build-module/tools-panel/tools-panel-item/component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>tools_panel_item_component});var use_previous=__webpack_require__("./packages/compose/build-module/hooks/use-previous/index.js"),react=__webpack_require__("./node_modules/react/index.js"),styles=__webpack_require__("./packages/components/build-module/tools-panel/styles.js"),context=__webpack_require__("./packages/components/build-module/tools-panel/context.js"),use_context_system=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),use_cx=__webpack_require__("./packages/components/build-module/utils/hooks/use-cx.js");const noop=()=>{};var component=__webpack_require__("./packages/components/build-module/view/component.js"),context_connect=__webpack_require__("./packages/components/build-module/context/context-connect.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const tools_panel_item_component=(0,context_connect.KZ)(((props,forwardedRef)=>{const{children,isShown,shouldRenderPlaceholder,...toolsPanelItemProps}=function useToolsPanelItem(props){const{className,hasValue,isShownByDefault=!1,label,panelId,resetAllFilter=noop,onDeselect,onSelect,...otherProps}=(0,use_context_system.A)(props,"ToolsPanelItem"),{panelId:currentPanelId,menuItems,registerResetAllFilter,deregisterResetAllFilter,registerPanelItem,deregisterPanelItem,flagItemCustomization,isResetting,shouldRenderPlaceholderItems:shouldRenderPlaceholder,firstDisplayedItem,lastDisplayedItem,__experimentalFirstVisibleItemClass,__experimentalLastVisibleItemClass}=(0,context.M)(),hasValueCallback=(0,react.useCallback)(hasValue,[panelId]),resetAllFilterCallback=(0,react.useCallback)(resetAllFilter,[panelId]),previousPanelId=(0,use_previous.A)(currentPanelId),hasMatchingPanel=currentPanelId===panelId||null===currentPanelId;(0,react.useLayoutEffect)((()=>(hasMatchingPanel&&null!==previousPanelId&®isterPanelItem({hasValue:hasValueCallback,isShownByDefault,label,panelId}),()=>{(null===previousPanelId&¤tPanelId||currentPanelId===panelId)&&deregisterPanelItem(label)})),[currentPanelId,hasMatchingPanel,isShownByDefault,label,hasValueCallback,panelId,previousPanelId,registerPanelItem,deregisterPanelItem]),(0,react.useEffect)((()=>(hasMatchingPanel&®isterResetAllFilter(resetAllFilterCallback),()=>{hasMatchingPanel&&deregisterResetAllFilter(resetAllFilterCallback)})),[registerResetAllFilter,deregisterResetAllFilter,resetAllFilterCallback,hasMatchingPanel]);const menuGroup=isShownByDefault?"default":"optional",isMenuItemChecked=menuItems?.[menuGroup]?.[label],wasMenuItemChecked=(0,use_previous.A)(isMenuItemChecked),isRegistered=void 0!==menuItems?.[menuGroup]?.[label],isValueSet=hasValue();(0,react.useEffect)((()=>{(isShownByDefault||isValueSet)&&flagItemCustomization(isValueSet,label,menuGroup)}),[isValueSet,menuGroup,label,flagItemCustomization,isShownByDefault]),(0,react.useEffect)((()=>{isRegistered&&!isResetting&&hasMatchingPanel&&(!isMenuItemChecked||isValueSet||wasMenuItemChecked||onSelect?.(),!isMenuItemChecked&&isValueSet&&wasMenuItemChecked&&onDeselect?.())}),[hasMatchingPanel,isMenuItemChecked,isRegistered,isResetting,isValueSet,wasMenuItemChecked,onSelect,onDeselect]);const isShown=isShownByDefault?void 0!==menuItems?.[menuGroup]?.[label]:isMenuItemChecked,cx=(0,use_cx.l)(),classes=(0,react.useMemo)((()=>{const shouldApplyPlaceholderStyles=shouldRenderPlaceholder&&!isShown,firstItemStyle=firstDisplayedItem===label&&__experimentalFirstVisibleItemClass,lastItemStyle=lastDisplayedItem===label&&__experimentalLastVisibleItemClass;return cx(styles.jp,shouldApplyPlaceholderStyles&&styles.wo,!shouldApplyPlaceholderStyles&&className,firstItemStyle,lastItemStyle)}),[isShown,shouldRenderPlaceholder,className,cx,firstDisplayedItem,lastDisplayedItem,__experimentalFirstVisibleItemClass,__experimentalLastVisibleItemClass,label]);return{...otherProps,isShown,shouldRenderPlaceholder,className:classes}}(props);return isShown?(0,jsx_runtime.jsx)(component.A,{...toolsPanelItemProps,ref:forwardedRef,children}):shouldRenderPlaceholder?(0,jsx_runtime.jsx)(component.A,{...toolsPanelItemProps,ref:forwardedRef}):null}),"ToolsPanelItem")},"./packages/components/build-module/tools-panel/tools-panel/component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>tools_panel_component});var build_module=__webpack_require__("./packages/a11y/build-module/index.js"),check=__webpack_require__("./packages/icons/build-module/library/check.js"),plus=__webpack_require__("./packages/icons/build-module/library/plus.js"),more_vertical=__webpack_require__("./packages/icons/build-module/library/more-vertical.js"),i18n_build_module=__webpack_require__("./packages/i18n/build-module/index.js"),dropdown_menu=__webpack_require__("./packages/components/build-module/dropdown-menu/index.js"),menu_group=__webpack_require__("./packages/components/build-module/menu-group/index.js"),menu_item=__webpack_require__("./packages/components/build-module/menu-item/index.js"),component=__webpack_require__("./packages/components/build-module/h-stack/component.js"),heading_component=__webpack_require__("./packages/components/build-module/heading/component.js"),react=__webpack_require__("./node_modules/react/index.js"),styles=__webpack_require__("./packages/components/build-module/tools-panel/styles.js"),context=__webpack_require__("./packages/components/build-module/tools-panel/context.js"),use_context_system=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),use_cx=__webpack_require__("./packages/components/build-module/utils/hooks/use-cx.js");var context_connect=__webpack_require__("./packages/components/build-module/context/context-connect.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const DefaultControlsGroup=({itemClassName,items,toggleItem})=>{if(!items.length)return null;const resetSuffix=(0,jsx_runtime.jsx)(styles.gg,{"aria-hidden":!0,children:(0,i18n_build_module.__)("Reset")});return(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:items.map((([label,hasValue])=>hasValue?(0,jsx_runtime.jsx)(menu_item.A,{className:itemClassName,role:"menuitem",label:(0,i18n_build_module.nv)((0,i18n_build_module.__)("Reset %s"),label),onClick:()=>{toggleItem(label),(0,build_module.L)((0,i18n_build_module.nv)((0,i18n_build_module.__)("%s reset to default"),label),"assertive")},suffix:resetSuffix,children:label},label):(0,jsx_runtime.jsx)(menu_item.A,{icon:check.A,className:itemClassName,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0,children:label},label)))})},OptionalControlsGroup=({items,toggleItem})=>items.length?(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:items.map((([label,isSelected])=>{const itemLabel=isSelected?(0,i18n_build_module.nv)((0,i18n_build_module.__)("Hide and reset %s"),label):(0,i18n_build_module.nv)((0,i18n_build_module._x)("Show %s","input control"),label);return(0,jsx_runtime.jsx)(menu_item.A,{icon:isSelected?check.A:null,isSelected,label:itemLabel,onClick:()=>{isSelected?(0,build_module.L)((0,i18n_build_module.nv)((0,i18n_build_module.__)("%s hidden and reset to default"),label),"assertive"):(0,build_module.L)((0,i18n_build_module.nv)((0,i18n_build_module.__)("%s is now visible"),label),"assertive"),toggleItem(label)},role:"menuitemcheckbox",children:label},label)}))}):null,tools_panel_header_component=(0,context_connect.KZ)(((props,forwardedRef)=>{const{areAllOptionalControlsHidden,defaultControlsItemClassName,dropdownMenuClassName,hasMenuItems,headingClassName,headingLevel=2,label:labelText,menuItems,resetAll,toggleItem,dropdownMenuProps,...headerProps}=function useToolsPanelHeader(props){const{className,headingLevel=2,...otherProps}=(0,use_context_system.A)(props,"ToolsPanelHeader"),cx=(0,use_cx.l)(),classes=(0,react.useMemo)((()=>cx(styles.zO,className)),[className,cx]),dropdownMenuClassName=(0,react.useMemo)((()=>cx(styles.rI)),[cx]),headingClassName=(0,react.useMemo)((()=>cx(styles.AZ)),[cx]),defaultControlsItemClassName=(0,react.useMemo)((()=>cx(styles.N5)),[cx]),{menuItems,hasMenuItems,areAllOptionalControlsHidden}=(0,context.M)();return{...otherProps,areAllOptionalControlsHidden,defaultControlsItemClassName,dropdownMenuClassName,hasMenuItems,headingClassName,headingLevel,menuItems,className:classes}}(props);if(!labelText)return null;const defaultItems=Object.entries(menuItems?.default||{}),optionalItems=Object.entries(menuItems?.optional||{}),dropDownMenuIcon=areAllOptionalControlsHidden?plus.A:more_vertical.A,dropDownMenuLabelText=(0,i18n_build_module.nv)((0,i18n_build_module._x)("%s options","Button label to reveal tool panel options"),labelText),dropdownMenuDescriptionText=areAllOptionalControlsHidden?(0,i18n_build_module.__)("All options are currently hidden"):void 0,canResetAll=[...defaultItems,...optionalItems].some((([,isSelected])=>isSelected));return(0,jsx_runtime.jsxs)(component.A,{...headerProps,ref:forwardedRef,children:[(0,jsx_runtime.jsx)(heading_component.A,{level:headingLevel,className:headingClassName,children:labelText}),hasMenuItems&&(0,jsx_runtime.jsx)(dropdown_menu.A,{...dropdownMenuProps,icon:dropDownMenuIcon,label:dropDownMenuLabelText,menuProps:{className:dropdownMenuClassName},toggleProps:{size:"small",description:dropdownMenuDescriptionText},children:()=>(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsxs)(menu_group.A,{label:labelText,children:[(0,jsx_runtime.jsx)(DefaultControlsGroup,{items:defaultItems,toggleItem,itemClassName:defaultControlsItemClassName}),(0,jsx_runtime.jsx)(OptionalControlsGroup,{items:optionalItems,toggleItem})]}),(0,jsx_runtime.jsx)(menu_group.A,{children:(0,jsx_runtime.jsx)(menu_item.A,{"aria-disabled":!canResetAll,variant:"tertiary",onClick:()=>{canResetAll&&(resetAll(),(0,build_module.L)((0,i18n_build_module.__)("All options reset"),"assertive"))},children:(0,i18n_build_module.__)("Reset all")})})]})})]})}),"ToolsPanelHeader");function emptyState(){return{panelItems:[],menuItemOrder:[],menuItems:{default:{},optional:{}}}}const generateMenuItems=({panelItems,shouldReset,currentMenuItems,menuItemOrder})=>{const newMenuItems={default:{},optional:{}},menuItems={default:{},optional:{}};return panelItems.forEach((({hasValue,isShownByDefault,label})=>{const group=isShownByDefault?"default":"optional",existingItemValue=currentMenuItems?.[group]?.[label],value=existingItemValue||hasValue();newMenuItems[group][label]=!shouldReset&&value})),menuItemOrder.forEach((key=>{newMenuItems.default.hasOwnProperty(key)&&(menuItems.default[key]=newMenuItems.default[key]),newMenuItems.optional.hasOwnProperty(key)&&(menuItems.optional[key]=newMenuItems.optional[key])})),Object.keys(newMenuItems.default).forEach((key=>{menuItems.default.hasOwnProperty(key)||(menuItems.default[key]=newMenuItems.default[key])})),Object.keys(newMenuItems.optional).forEach((key=>{menuItems.optional.hasOwnProperty(key)||(menuItems.optional[key]=newMenuItems.optional[key])})),menuItems};function panelReducer(state,action){const panelItems=function panelItemsReducer(panelItems,action){switch(action.type){case"REGISTER_PANEL":{const newItems=[...panelItems],existingIndex=newItems.findIndex((oldItem=>oldItem.label===action.item.label));return-1!==existingIndex&&newItems.splice(existingIndex,1),newItems.push(action.item),newItems}case"UNREGISTER_PANEL":{const index=panelItems.findIndex((item=>item.label===action.label));if(-1!==index){const newItems=[...panelItems];return newItems.splice(index,1),newItems}return panelItems}default:return panelItems}}(state.panelItems,action),menuItemOrder=function menuItemOrderReducer(menuItemOrder,action){return"REGISTER_PANEL"===action.type?menuItemOrder.includes(action.item.label)?menuItemOrder:[...menuItemOrder,action.item.label]:menuItemOrder}(state.menuItemOrder,action),menuItems=function menuItemsReducer(state,action){switch(action.type){case"REGISTER_PANEL":case"UNREGISTER_PANEL":return generateMenuItems({currentMenuItems:state.menuItems,panelItems:state.panelItems,menuItemOrder:state.menuItemOrder,shouldReset:!1});case"RESET_ALL":return generateMenuItems({panelItems:state.panelItems,menuItemOrder:state.menuItemOrder,shouldReset:!0});case"UPDATE_VALUE":{const oldValue=state.menuItems[action.group][action.label];return action.value===oldValue?state.menuItems:{...state.menuItems,[action.group]:{...state.menuItems[action.group],[action.label]:action.value}}}case"TOGGLE_VALUE":{const currentItem=state.panelItems.find((item=>item.label===action.label));if(!currentItem)return state.menuItems;const menuGroup=currentItem.isShownByDefault?"default":"optional";return{...state.menuItems,[menuGroup]:{...state.menuItems[menuGroup],[action.label]:!state.menuItems[menuGroup][action.label]}}}default:return state.menuItems}}({panelItems,menuItemOrder,menuItems:state.menuItems},action);return{panelItems,menuItemOrder,menuItems}}function resetAllFiltersReducer(filters,action){switch(action.type){case"REGISTER":return[...filters,action.filter];case"UNREGISTER":return filters.filter((f=>f!==action.filter));default:return filters}}const isMenuItemTypeEmpty=obj=>0===Object.keys(obj).length;var grid_component=__webpack_require__("./packages/components/build-module/grid/component.js");const tools_panel_component=(0,context_connect.KZ)(((props,forwardedRef)=>{const{children,label,panelContext,resetAllItems,toggleItem,headingLevel,dropdownMenuProps,...toolsPanelProps}=function useToolsPanel(props){const{className,headingLevel=2,resetAll,panelId,hasInnerWrapper=!1,shouldRenderPlaceholderItems=!1,__experimentalFirstVisibleItemClass,__experimentalLastVisibleItemClass,...otherProps}=(0,use_context_system.A)(props,"ToolsPanel"),isResettingRef=(0,react.useRef)(!1),wasResetting=isResettingRef.current;(0,react.useEffect)((()=>{wasResetting&&(isResettingRef.current=!1)}),[wasResetting]);const[{panelItems,menuItems},panelDispatch]=(0,react.useReducer)(panelReducer,void 0,emptyState),[resetAllFilters,dispatchResetAllFilters]=(0,react.useReducer)(resetAllFiltersReducer,[]),registerPanelItem=(0,react.useCallback)((item=>{panelDispatch({type:"REGISTER_PANEL",item})}),[]),deregisterPanelItem=(0,react.useCallback)((label=>{panelDispatch({type:"UNREGISTER_PANEL",label})}),[]),registerResetAllFilter=(0,react.useCallback)((filter=>{dispatchResetAllFilters({type:"REGISTER",filter})}),[]),deregisterResetAllFilter=(0,react.useCallback)((filter=>{dispatchResetAllFilters({type:"UNREGISTER",filter})}),[]),flagItemCustomization=(0,react.useCallback)(((value,label,group="default")=>{panelDispatch({type:"UPDATE_VALUE",group,label,value})}),[]),areAllOptionalControlsHidden=(0,react.useMemo)((()=>isMenuItemTypeEmpty(menuItems.default)&&!isMenuItemTypeEmpty(menuItems.optional)&&Object.values(menuItems.optional).every((isSelected=>!isSelected))),[menuItems]),cx=(0,use_cx.l)(),classes=(0,react.useMemo)((()=>{const wrapperStyle=hasInnerWrapper&&styles.Xt(2),emptyStyle=areAllOptionalControlsHidden&&styles.zz;return cx(styles.iX(2),wrapperStyle,emptyStyle,className)}),[areAllOptionalControlsHidden,className,cx,hasInnerWrapper]),toggleItem=(0,react.useCallback)((label=>{panelDispatch({type:"TOGGLE_VALUE",label})}),[]),resetAllItems=(0,react.useCallback)((()=>{"function"==typeof resetAll&&(isResettingRef.current=!0,resetAll(resetAllFilters)),panelDispatch({type:"RESET_ALL"})}),[resetAllFilters,resetAll]),getFirstVisibleItemLabel=items=>{const optionalItems=menuItems.optional||{},firstItem=items.find((item=>item.isShownByDefault||optionalItems[item.label]));return firstItem?.label},firstDisplayedItem=getFirstVisibleItemLabel(panelItems),lastDisplayedItem=getFirstVisibleItemLabel([...panelItems].reverse()),hasMenuItems=panelItems.length>0;return{...otherProps,headingLevel,panelContext:(0,react.useMemo)((()=>({areAllOptionalControlsHidden,deregisterPanelItem,deregisterResetAllFilter,firstDisplayedItem,flagItemCustomization,hasMenuItems,isResetting:isResettingRef.current,lastDisplayedItem,menuItems,panelId,registerPanelItem,registerResetAllFilter,shouldRenderPlaceholderItems,__experimentalFirstVisibleItemClass,__experimentalLastVisibleItemClass})),[areAllOptionalControlsHidden,deregisterPanelItem,deregisterResetAllFilter,firstDisplayedItem,flagItemCustomization,lastDisplayedItem,menuItems,panelId,hasMenuItems,registerResetAllFilter,registerPanelItem,shouldRenderPlaceholderItems,__experimentalFirstVisibleItemClass,__experimentalLastVisibleItemClass]),resetAllItems,toggleItem,className:classes}}(props);return(0,jsx_runtime.jsx)(grid_component.A,{...toolsPanelProps,columns:2,ref:forwardedRef,children:(0,jsx_runtime.jsxs)(context.z.Provider,{value:panelContext,children:[(0,jsx_runtime.jsx)(tools_panel_header_component,{label,resetAll:resetAllItems,toggleItem,headingLevel,dropdownMenuProps}),children]})})}),"ToolsPanel")},"./packages/icons/build-module/library/more-vertical.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})})}}]); \ No newline at end of file diff --git a/4008.55d4ac3a.iframe.bundle.js b/4008.55d4ac3a.iframe.bundle.js new file mode 100644 index 00000000000000..cb15eacfd0853d --- /dev/null +++ b/4008.55d4ac3a.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[4008,7882],{"./packages/components/build-module/disabled/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>disabled});var react=__webpack_require__("./node_modules/react/index.js");const disabledStyles={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"};var use_cx=__webpack_require__("./packages/components/build-module/utils/hooks/use-cx.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const Context=(0,react.createContext)(!1),{Consumer,Provider}=Context;function Disabled({className,children,isDisabled=!0,...props}){const cx=(0,use_cx.l)();return(0,jsx_runtime.jsx)(Provider,{value:isDisabled,children:(0,jsx_runtime.jsx)("div",{inert:isDisabled?"true":void 0,className:isDisabled?cx(disabledStyles,className,"components-disabled"):void 0,...props,children})})}Disabled.Context=Context,Disabled.Consumer=Consumer;const disabled=Disabled},"./packages/components/build-module/draggable/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/compose/build-module/utils/throttle/index.js"),_wordpress_element__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const bodyClass="is-dragging-components-draggable";const __WEBPACK_DEFAULT_EXPORT__=function Draggable({children,onDragStart,onDragOver,onDragEnd,appendToOwnerDocument=!1,cloneClassname,elementId,transferData,__experimentalTransferDataType:transferDataType="text",__experimentalDragComponent:dragComponent}){const dragComponentRef=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useRef)(null),cleanupRef=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useRef)((()=>{}));return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useEffect)((()=>()=>{cleanupRef.current()}),[]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,{children:[children({onDraggableStart:function start(event){const{ownerDocument}=event.target;event.dataTransfer.setData(transferDataType,JSON.stringify(transferData));const cloneWrapper=ownerDocument.createElement("div");cloneWrapper.style.top="0",cloneWrapper.style.left="0";const dragImage=ownerDocument.createElement("div");"function"==typeof event.dataTransfer.setDragImage&&(dragImage.classList.add("components-draggable__invisible-drag-image"),ownerDocument.body.appendChild(dragImage),event.dataTransfer.setDragImage(dragImage,0,0)),cloneWrapper.classList.add("components-draggable__clone"),cloneClassname&&cloneWrapper.classList.add(cloneClassname);let x=0,y=0;if(dragComponentRef.current){x=event.clientX,y=event.clientY,cloneWrapper.style.transform=`translate( ${x}px, ${y}px )`;const clonedDragComponent=ownerDocument.createElement("div");clonedDragComponent.innerHTML=dragComponentRef.current.innerHTML,cloneWrapper.appendChild(clonedDragComponent),ownerDocument.body.appendChild(cloneWrapper)}else{const element=ownerDocument.getElementById(elementId),elementRect=element.getBoundingClientRect(),elementWrapper=element.parentNode,elementTopOffset=elementRect.top,elementLeftOffset=elementRect.left;cloneWrapper.style.width=`${elementRect.width+0}px`;const clone=element.cloneNode(!0);clone.id=`clone-${elementId}`,x=elementLeftOffset-0,y=elementTopOffset-0,cloneWrapper.style.transform=`translate( ${x}px, ${y}px )`,Array.from(clone.querySelectorAll("iframe")).forEach((child=>child.parentNode?.removeChild(child))),cloneWrapper.appendChild(clone),appendToOwnerDocument?ownerDocument.body.appendChild(cloneWrapper):elementWrapper?.appendChild(cloneWrapper)}let cursorLeft=event.clientX,cursorTop=event.clientY;const throttledDragOver=(0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__.n)((function over(e){if(cursorLeft===e.clientX&&cursorTop===e.clientY)return;const nextX=x+e.clientX-cursorLeft,nextY=y+e.clientY-cursorTop;cloneWrapper.style.transform=`translate( ${nextX}px, ${nextY}px )`,cursorLeft=e.clientX,cursorTop=e.clientY,x=nextX,y=nextY,onDragOver&&onDragOver(e)}),16);ownerDocument.addEventListener("dragover",throttledDragOver),ownerDocument.body.classList.add(bodyClass),onDragStart&&onDragStart(event),cleanupRef.current=()=>{cloneWrapper&&cloneWrapper.parentNode&&cloneWrapper.parentNode.removeChild(cloneWrapper),dragImage&&dragImage.parentNode&&dragImage.parentNode.removeChild(dragImage),ownerDocument.body.classList.remove(bodyClass),ownerDocument.removeEventListener("dragover",throttledDragOver)}},onDraggableEnd:function end(event){event.preventDefault(),cleanupRef.current(),onDragEnd&&onDragEnd(event)}}),dragComponent&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:dragComponentRef,children:dragComponent})]})}},"./packages/components/build-module/external-link/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var clsx__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/i18n/build-module/index.js"),_wordpress_element__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.forwardRef)((function UnforwardedExternalLink(props,ref){const{href,children,className,rel="",...additionalProps}=props,optimizedRel=[...new Set([...rel.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),classes=(0,clsx__WEBPACK_IMPORTED_MODULE_2__.A)("components-external-link",className),isInternalAnchor=!!href?.startsWith("#");return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("a",{...additionalProps,className:classes,href,onClick:event=>{isInternalAnchor&&event.preventDefault(),props.onClick&&props.onClick(event)},target:"_blank",rel:optimizedRel,ref,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("span",{className:"components-external-link__contents",children}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("span",{className:"components-external-link__icon","aria-label":(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("(opens in a new tab)"),children:"↗"})]})}))},"./packages/components/build-module/flex/flex-block/component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>flex_block_component});var context_connect=__webpack_require__("./packages/components/build-module/context/context-connect.js"),component=__webpack_require__("./packages/components/build-module/view/component.js"),use_context_system=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),hook=__webpack_require__("./packages/components/build-module/flex/flex-item/hook.js");var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const flex_block_component=(0,context_connect.KZ)((function UnconnectedFlexBlock(props,forwardedRef){const flexBlockProps=function useFlexBlock(props){const otherProps=(0,use_context_system.A)(props,"FlexBlock");return(0,hook.K)({isBlock:!0,...otherProps})}(props);return(0,jsx_runtime.jsx)(component.A,{...flexBlockProps,ref:forwardedRef})}),"FlexBlock")},"./packages/components/build-module/higher-order/with-filters/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>withFilters});var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/hooks/build-module/index.js"),_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/compose/build-module/utils/create-higher-order-component/index.js"),_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/compose/build-module/utils/debounce/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");const ANIMATION_FRAME_PERIOD=16;function withFilters(hookName){return(0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__.f)((OriginalComponent=>{const namespace="core/with-filters/"+hookName;let FilteredComponent;class FilteredComponentRenderer extends _wordpress_element__WEBPACK_IMPORTED_MODULE_3__.Component{constructor(props){super(props),function ensureFilteredComponent(){void 0===FilteredComponent&&(FilteredComponent=(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__.W5)(hookName,OriginalComponent))}()}componentDidMount(){FilteredComponentRenderer.instances.push(this),1===FilteredComponentRenderer.instances.length&&((0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__.ip)("hookRemoved",namespace,onHooksUpdated),(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__.ip)("hookAdded",namespace,onHooksUpdated))}componentWillUnmount(){FilteredComponentRenderer.instances=FilteredComponentRenderer.instances.filter((instance=>instance!==this)),0===FilteredComponentRenderer.instances.length&&((0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__.V5)("hookRemoved",namespace),(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__.V5)("hookAdded",namespace))}render(){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(FilteredComponent,{...this.props})}}FilteredComponentRenderer.instances=[];const throttledForceUpdate=(0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__.s)((()=>{FilteredComponent=(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__.W5)(hookName,OriginalComponent),FilteredComponentRenderer.instances.forEach((instance=>{instance.forceUpdate()}))}),ANIMATION_FRAME_PERIOD);function onHooksUpdated(updatedHookName){updatedHookName===hookName&&throttledForceUpdate()}return FilteredComponentRenderer}),"withFilters")}},"./packages/components/build-module/input-control/input-prefix-wrapper.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _context__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),_context__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/components/build-module/context/context-connect.js"),_styles_input_control_styles__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/build-module/input-control/styles/input-control-styles.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,_context__WEBPACK_IMPORTED_MODULE_3__.KZ)((function UnconnectedInputControlPrefixWrapper(props,forwardedRef){const derivedProps=(0,_context__WEBPACK_IMPORTED_MODULE_1__.A)(props,"InputControlPrefixWrapper");return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_styles_input_control_styles__WEBPACK_IMPORTED_MODULE_2__.bC,{...derivedProps,isPrefix:!0,ref:forwardedRef})}),"InputControlPrefixWrapper")},"./packages/components/build-module/menu-items-choice/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_icons__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/icons/build-module/library/check.js"),_menu_item__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/build-module/menu-item/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const noop=()=>{};const __WEBPACK_DEFAULT_EXPORT__=function MenuItemsChoice({choices=[],onHover=noop,onSelect,value}){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,{children:choices.map((item=>{const isSelected=value===item.value;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_menu_item__WEBPACK_IMPORTED_MODULE_1__.A,{role:"menuitemradio",disabled:item.disabled,icon:isSelected?_wordpress_icons__WEBPACK_IMPORTED_MODULE_2__.A:null,info:item.info,isSelected,shortcut:item.shortcut,className:"components-menu-items-choice",onClick:()=>{isSelected||onSelect(item.value)},onMouseEnter:()=>onHover(item.value),onMouseLeave:()=>onHover(null),"aria-label":item["aria-label"],children:item.label},item.value)}))})}},"./packages/components/build-module/navigator/context.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{R:()=>NavigatorContext});const NavigatorContext=(0,__webpack_require__("./node_modules/react/index.js").createContext)({location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}})},"./packages/components/build-module/navigator/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{m:()=>navigator_Navigator});var react=__webpack_require__("./node_modules/react/index.js"),build_module=__webpack_require__("./packages/is-shallow-equal/build-module/index.js"),use_context_system=__webpack_require__("./packages/components/build-module/context/use-context-system.js"),context_connect=__webpack_require__("./packages/components/build-module/context/context-connect.js"),use_cx=__webpack_require__("./packages/components/build-module/utils/hooks/use-cx.js"),dist_es2015=__webpack_require__("./packages/components/node_modules/path-to-regexp/dist.es2015/index.js");function matchPath(path,pattern){return(0,dist_es2015.YW)(pattern,{decode:decodeURIComponent})(path)}var component=__webpack_require__("./packages/components/build-module/view/component.js"),context=__webpack_require__("./packages/components/build-module/navigator/context.js"),emotion_react_browser_esm=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js");const navigatorWrapper={name:"1br0vvk",styles:"position:relative;overflow-x:clip;contain:layout;display:grid;grid-template-columns:1fr;grid-template-rows:1fr;align-items:start"},fadeIn=(0,emotion_react_browser_esm.i7)({from:{opacity:0}}),fadeOut=(0,emotion_react_browser_esm.i7)({to:{opacity:0}}),slideFromRight=(0,emotion_react_browser_esm.i7)({from:{transform:"translateX(100px)"}}),slideToLeft=(0,emotion_react_browser_esm.i7)({to:{transform:"translateX(-80px)"}}),slideFromLeft=(0,emotion_react_browser_esm.i7)({from:{transform:"translateX(-100px)"}}),slideToRight=(0,emotion_react_browser_esm.i7)({to:{transform:"translateX(80px)"}}),FADE_DURATION=70,FADE_EASING="linear",FADE_DELAY={IN:70,OUT:40},SLIDE_DURATION=300,SLIDE_EASING="cubic-bezier(0.33, 0, 0, 1)",TOTAL_ANIMATION_DURATION={IN:Math.max(FADE_DURATION+FADE_DELAY.IN,SLIDE_DURATION),OUT:Math.max(FADE_DURATION+FADE_DELAY.OUT,SLIDE_DURATION)},ANIMATION_END_NAMES={end:{in:slideFromRight.name,out:slideToLeft.name},start:{in:slideFromLeft.name,out:slideToRight.name}},ANIMATION={end:{in:(0,emotion_react_browser_esm.AH)(FADE_DURATION,"ms ",FADE_EASING," ",FADE_DELAY.IN,"ms both ",fadeIn,",",SLIDE_DURATION,"ms ",SLIDE_EASING," both ",slideFromRight,";","","",""),out:(0,emotion_react_browser_esm.AH)(FADE_DURATION,"ms ",FADE_EASING," ",FADE_DELAY.OUT,"ms both ",fadeOut,",",SLIDE_DURATION,"ms ",SLIDE_EASING," both ",slideToLeft,";","","","")},start:{in:(0,emotion_react_browser_esm.AH)(FADE_DURATION,"ms ",FADE_EASING," ",FADE_DELAY.IN,"ms both ",fadeIn,",",SLIDE_DURATION,"ms ",SLIDE_EASING," both ",slideFromLeft,";","","",""),out:(0,emotion_react_browser_esm.AH)(FADE_DURATION,"ms ",FADE_EASING," ",FADE_DELAY.OUT,"ms both ",fadeOut,",",SLIDE_DURATION,"ms ",SLIDE_EASING," both ",slideToRight,";","","","")}},navigatorScreenAnimation=(0,emotion_react_browser_esm.AH)("z-index:1;&[data-animation-type='out']{z-index:0;}@media not ( prefers-reduced-motion ){&:not( [data-skip-animation] ){",["start","end"].map((direction=>["in","out"].map((type=>(0,emotion_react_browser_esm.AH)("&[data-animation-direction='",direction,"'][data-animation-type='",type,"']{animation:",ANIMATION[direction][type],";}","","",""))))),";}}","","",""),navigatorScreen={name:"14di7zd",styles:"overflow-x:auto;max-height:100%;box-sizing:border-box;position:relative;grid-column:1/-1;grid-row:1/-1"};var deprecated_build_module=__webpack_require__("./packages/deprecated/build-module/index.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function goTo(state,path,options={}){var _focusSelectorsCopy2;const{focusSelectors}=state,currentLocation={...state.currentLocation},{isBack=!1,skipFocus=!1,replace,focusTargetSelector,...restOptions}=options;if(currentLocation.path===path)return{currentLocation,focusSelectors};let focusSelectorsCopy,currentFocusSelector;function getFocusSelectorsCopy(){var _focusSelectorsCopy;return focusSelectorsCopy=null!==(_focusSelectorsCopy=focusSelectorsCopy)&&void 0!==_focusSelectorsCopy?_focusSelectorsCopy:new Map(state.focusSelectors),focusSelectorsCopy}return focusTargetSelector&¤tLocation.path&&getFocusSelectorsCopy().set(currentLocation.path,focusTargetSelector),focusSelectors.get(path)&&(isBack&&(currentFocusSelector=focusSelectors.get(path)),getFocusSelectorsCopy().delete(path)),{currentLocation:{...restOptions,isInitial:!1,path,isBack,hasRestoredFocus:!1,focusTargetSelector:currentFocusSelector,skipFocus},focusSelectors:null!==(_focusSelectorsCopy2=focusSelectorsCopy)&&void 0!==_focusSelectorsCopy2?_focusSelectorsCopy2:focusSelectors}}function goToParent(state,options={}){const{screens,focusSelectors}=state,currentLocation={...state.currentLocation},currentPath=currentLocation.path;if(void 0===currentPath)return{currentLocation,focusSelectors};const parentPath=function findParent(path,screens){if(!path.startsWith("/"))return;const pathParts=path.split("/");let parentPath;for(;pathParts.length>1&&void 0===parentPath;){pathParts.pop();const potentialParentPath=""===pathParts.join("/")?"/":pathParts.join("/");screens.find((screen=>!1!==matchPath(potentialParentPath,screen.path)))&&(parentPath=potentialParentPath)}return parentPath}(currentPath,screens);return void 0===parentPath?{currentLocation,focusSelectors}:goTo(state,parentPath,{...options,isBack:!0})}function routerReducer(state,action){let{screens,currentLocation,matchedPath,focusSelectors,...restState}=state;switch(action.type){case"add":screens=function addScreen({screens},screen){return screens.some((s=>s.path===screen.path))?screens:[...screens,screen]}(state,action.screen);break;case"remove":screens=function removeScreen({screens},screen){return screens.filter((s=>s.id!==screen.id))}(state,action.screen);break;case"goto":({currentLocation,focusSelectors}=goTo(state,action.path,action.options));break;case"gotoparent":({currentLocation,focusSelectors}=goToParent(state,action.options))}if(screens===state.screens&¤tLocation===state.currentLocation)return state;const currentPath=currentLocation.path;return matchedPath=void 0!==currentPath?function patternMatch(path,screens){for(const screen of screens){const matched=matchPath(path,screen.path);if(matched)return{params:matched.params,id:screen.id}}}(currentPath,screens):void 0,matchedPath&&state.matchedPath&&matchedPath.id===state.matchedPath.id&&(0,build_module.Ay)(matchedPath.params,state.matchedPath.params)&&(matchedPath=state.matchedPath),{...restState,screens,currentLocation,matchedPath,focusSelectors}}const Navigator=(0,context_connect.KZ)((function UnconnectedNavigator(props,forwardedRef){const{initialPath:initialPathProp,children,className,...otherProps}=(0,use_context_system.A)(props,"Navigator"),[routerState,dispatch]=(0,react.useReducer)(routerReducer,initialPathProp,(path=>({screens:[],currentLocation:{path,isInitial:!0},matchedPath:void 0,focusSelectors:new Map,initialPath:initialPathProp}))),methods=(0,react.useMemo)((()=>({goBack:options=>dispatch({type:"gotoparent",options}),goTo:(path,options)=>dispatch({type:"goto",path,options}),goToParent:options=>{(0,deprecated_build_module.A)("wp.components.useNavigator().goToParent",{since:"6.7",alternative:"wp.components.useNavigator().goBack"}),dispatch({type:"gotoparent",options})},addScreen:screen=>dispatch({type:"add",screen}),removeScreen:screen=>dispatch({type:"remove",screen})})),[]),{currentLocation,matchedPath}=routerState,navigatorContextValue=(0,react.useMemo)((()=>{var _matchedPath$params;return{location:currentLocation,params:null!==(_matchedPath$params=matchedPath?.params)&&void 0!==_matchedPath$params?_matchedPath$params:{},match:matchedPath?.id,...methods}}),[currentLocation,matchedPath,methods]),cx=(0,use_cx.l)(),classes=(0,react.useMemo)((()=>cx(navigatorWrapper,className)),[className,cx]);return(0,jsx_runtime.jsx)(component.A,{ref:forwardedRef,className:classes,...otherProps,children:(0,jsx_runtime.jsx)(context.R.Provider,{value:navigatorContextValue,children})})}),"Navigator");var dom_build_module=__webpack_require__("./packages/dom/build-module/index.js"),use_merge_refs=__webpack_require__("./packages/compose/build-module/hooks/use-merge-refs/index.js"),escape_html_build_module=__webpack_require__("./packages/escape-html/build-module/index.js"),use_reduced_motion=__webpack_require__("./packages/compose/build-module/hooks/use-reduced-motion/index.js"),i18n_build_module=__webpack_require__("./packages/i18n/build-module/index.js");const ANIMATION_TIMEOUT_MARGIN=1.2,isEnterAnimation=(animationDirection,animationStatus,animationName)=>"ANIMATING_IN"===animationStatus&&animationName===ANIMATION_END_NAMES[animationDirection].in,isExitAnimation=(animationDirection,animationStatus,animationName)=>"ANIMATING_OUT"===animationStatus&&animationName===ANIMATION_END_NAMES[animationDirection].out;const NavigatorScreen=(0,context_connect.KZ)((function UnconnectedNavigatorScreen(props,forwardedRef){/^\//.test(props.path);const screenId=(0,react.useId)(),{children,className,path,onAnimationEnd:onAnimationEndProp,...otherProps}=(0,use_context_system.A)(props,"Navigator.Screen"),{location,match,addScreen,removeScreen}=(0,react.useContext)(context.R),{isInitial,isBack,focusTargetSelector,skipFocus}=location,isMatch=match===screenId,wrapperRef=(0,react.useRef)(null),skipAnimationAndFocusRestoration=!!isInitial&&!isBack;(0,react.useEffect)((()=>{const screen={id:screenId,path:(0,escape_html_build_module.Gj)(path)};return addScreen(screen),()=>removeScreen(screen)}),[screenId,path,addScreen,removeScreen]);const{animationStyles,shouldRenderScreen,screenProps}=function useScreenAnimatePresence({isMatch,skipAnimation,isBack,onAnimationEnd}){const isRTL=(0,i18n_build_module.V8)(),prefersReducedMotion=(0,use_reduced_motion.A)(),[animationStatus,setAnimationStatus]=(0,react.useState)("INITIAL"),becameSelected="ANIMATING_IN"!==animationStatus&&"IN"!==animationStatus&&isMatch,becameUnselected="ANIMATING_OUT"!==animationStatus&&"OUT"!==animationStatus&&!isMatch;(0,react.useLayoutEffect)((()=>{becameSelected?setAnimationStatus(skipAnimation||prefersReducedMotion?"IN":"ANIMATING_IN"):becameUnselected&&setAnimationStatus(skipAnimation||prefersReducedMotion?"OUT":"ANIMATING_OUT")}),[becameSelected,becameUnselected,skipAnimation,prefersReducedMotion]);const animationDirection=isRTL&&isBack||!isRTL&&!isBack?"end":"start",isAnimatingIn="ANIMATING_IN"===animationStatus,isAnimatingOut="ANIMATING_OUT"===animationStatus;let animationType;isAnimatingIn?animationType="in":isAnimatingOut&&(animationType="out");const onScreenAnimationEnd=(0,react.useCallback)((e=>{onAnimationEnd?.(e),isExitAnimation(animationDirection,animationStatus,e.animationName)?setAnimationStatus("OUT"):isEnterAnimation(animationDirection,animationStatus,e.animationName)&&setAnimationStatus("IN")}),[onAnimationEnd,animationStatus,animationDirection]);return(0,react.useEffect)((()=>{let animationTimeout;return isAnimatingOut?animationTimeout=window.setTimeout((()=>{setAnimationStatus("OUT"),animationTimeout=void 0}),TOTAL_ANIMATION_DURATION.OUT*ANIMATION_TIMEOUT_MARGIN):isAnimatingIn&&(animationTimeout=window.setTimeout((()=>{setAnimationStatus("IN"),animationTimeout=void 0}),TOTAL_ANIMATION_DURATION.IN*ANIMATION_TIMEOUT_MARGIN)),()=>{animationTimeout&&(window.clearTimeout(animationTimeout),animationTimeout=void 0)}}),[isAnimatingOut,isAnimatingIn]),{animationStyles:navigatorScreenAnimation,shouldRenderScreen:isMatch||"IN"===animationStatus||"ANIMATING_OUT"===animationStatus,screenProps:{onAnimationEnd:onScreenAnimationEnd,"data-animation-direction":animationDirection,"data-animation-type":animationType,"data-skip-animation":skipAnimation||void 0}}}({isMatch,isBack,onAnimationEnd:onAnimationEndProp,skipAnimation:skipAnimationAndFocusRestoration}),cx=(0,use_cx.l)(),classes=(0,react.useMemo)((()=>cx(navigatorScreen,animationStyles,className)),[className,cx,animationStyles]),locationRef=(0,react.useRef)(location);(0,react.useEffect)((()=>{locationRef.current=location}),[location]),(0,react.useEffect)((()=>{const wrapperEl=wrapperRef.current;if(skipAnimationAndFocusRestoration||!isMatch||!wrapperEl||locationRef.current.hasRestoredFocus||skipFocus)return;const activeElement=wrapperEl.ownerDocument.activeElement;if(wrapperEl.contains(activeElement))return;let elementToFocus=null;if(isBack&&focusTargetSelector&&(elementToFocus=wrapperEl.querySelector(focusTargetSelector)),!elementToFocus){const[firstTabbable]=dom_build_module.XC.tabbable.find(wrapperEl);elementToFocus=null!=firstTabbable?firstTabbable:wrapperEl}locationRef.current.hasRestoredFocus=!0,elementToFocus.focus()}),[skipAnimationAndFocusRestoration,isMatch,isBack,focusTargetSelector,skipFocus]);const mergedWrapperRef=(0,use_merge_refs.A)([forwardedRef,wrapperRef]);return shouldRenderScreen?(0,jsx_runtime.jsx)(component.A,{ref:mergedWrapperRef,className:classes,...screenProps,...otherProps,children}):null}),"Navigator.Screen");var build_module_button=__webpack_require__("./packages/components/build-module/button/index.js"),use_navigator=__webpack_require__("./packages/components/build-module/navigator/use-navigator.js");const cssSelectorForAttribute=(attrName,attrValue)=>`[${attrName}="${attrValue}"]`;const NavigatorButton=(0,context_connect.KZ)((function UnconnectedNavigatorButton(props,forwardedRef){const navigatorButtonProps=function useNavigatorButton(props){const{path,onClick,as=build_module_button.Ay,attributeName="id",...otherProps}=(0,use_context_system.A)(props,"Navigator.Button"),escapedPath=(0,escape_html_build_module.Gj)(path),{goTo}=(0,use_navigator.b)();return{as,onClick:(0,react.useCallback)((e=>{e.preventDefault(),goTo(escapedPath,{focusTargetSelector:cssSelectorForAttribute(attributeName,escapedPath)}),onClick?.(e)}),[goTo,onClick,attributeName,escapedPath]),...otherProps,[attributeName]:escapedPath}}(props);return(0,jsx_runtime.jsx)(component.A,{ref:forwardedRef,...navigatorButtonProps})}),"Navigator.Button");const NavigatorBackButton=(0,context_connect.KZ)((function UnconnectedNavigatorBackButton(props,forwardedRef){const navigatorBackButtonProps=function useNavigatorBackButton(props){const{onClick,as=build_module_button.Ay,...otherProps}=(0,use_context_system.A)(props,"Navigator.BackButton"),{goBack}=(0,use_navigator.b)();return{as,onClick:(0,react.useCallback)((e=>{e.preventDefault(),goBack(),onClick?.(e)}),[goBack,onClick]),...otherProps}}(props);return(0,jsx_runtime.jsx)(component.A,{ref:forwardedRef,...navigatorBackButtonProps})}),"Navigator.BackButton"),navigator_Navigator=Object.assign(Navigator,{Screen:Object.assign(NavigatorScreen,{displayName:"Navigator.Screen"}),Button:Object.assign(NavigatorButton,{displayName:"Navigator.Button"}),BackButton:Object.assign(NavigatorBackButton,{displayName:"Navigator.BackButton"})})},"./packages/components/build-module/navigator/use-navigator.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>useNavigator});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_context__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/build-module/navigator/context.js");function useNavigator(){const{location,params,goTo,goBack,goToParent}=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_1__.R);return{location,goTo,goBack,goToParent,params}}},"./packages/components/build-module/slot-fill/bubbles-virtually/use-slot-fills.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>useSlotFills});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/compose/build-module/hooks/use-observable-value/index.js"),_slot_fill_context__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js");function useSlotFills(name){const registry=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useContext)(_slot_fill_context__WEBPACK_IMPORTED_MODULE_1__.A);return(0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__.A)(registry.fills,name)}},"./packages/components/build-module/tip/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_icons__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/icons/build-module/icon/index.js"),_wordpress_icons__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/icons/build-module/library/tip.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=function Tip(props){const{children}=props;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"components-tip",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_icons__WEBPACK_IMPORTED_MODULE_1__.A,{icon:_wordpress_icons__WEBPACK_IMPORTED_MODULE_2__.A}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p",{children})]})}},"./packages/components/build-module/toggle-control/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>toggle_control});var emotion_react_browser_esm=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),react=__webpack_require__("./node_modules/react/index.js"),use_instance_id=__webpack_require__("./packages/compose/build-module/hooks/use-instance-id/index.js"),build_module=__webpack_require__("./packages/deprecated/build-module/index.js"),component=__webpack_require__("./packages/components/build-module/flex/flex-block/component.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const noop=()=>{};const form_toggle=(0,react.forwardRef)((function UnforwardedFormToggle(props,ref){const{className,checked,id,disabled,onChange=noop,...additionalProps}=props,wrapperClasses=(0,clsx.A)("components-form-toggle",className,{"is-checked":checked,"is-disabled":disabled});return(0,jsx_runtime.jsxs)("span",{className:wrapperClasses,children:[(0,jsx_runtime.jsx)("input",{className:"components-form-toggle__input",id,type:"checkbox",checked,onChange,disabled,...additionalProps,ref}),(0,jsx_runtime.jsx)("span",{className:"components-form-toggle__track"}),(0,jsx_runtime.jsx)("span",{className:"components-form-toggle__thumb"})]})}));var base_control=__webpack_require__("./packages/components/build-module/base-control/index.js"),h_stack_component=__webpack_require__("./packages/components/build-module/h-stack/component.js"),use_cx=__webpack_require__("./packages/components/build-module/utils/hooks/use-cx.js"),space=__webpack_require__("./packages/components/build-module/utils/space.js");const ToggleControl=(0,react.forwardRef)((function UnforwardedToggleControl({__nextHasNoMarginBottom,label,checked,help,className,onChange,disabled},ref){const id=`inspector-toggle-control-${(0,use_instance_id.A)(ToggleControl)}`,classes=(0,use_cx.l)()("components-toggle-control",className,!__nextHasNoMarginBottom&&(0,emotion_react_browser_esm.AH)({marginBottom:(0,space.x)(3)},"","","",""));let describedBy,helpLabel;return __nextHasNoMarginBottom||(0,build_module.A)("Bottom margin styles for wp.components.ToggleControl",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."}),help&&("function"==typeof help?void 0!==checked&&(helpLabel=help(checked)):helpLabel=help,helpLabel&&(describedBy=id+"__help")),(0,jsx_runtime.jsx)(base_control.Ay,{id,help:helpLabel&&(0,jsx_runtime.jsx)("span",{className:"components-toggle-control__help",children:helpLabel}),className:classes,__nextHasNoMarginBottom:!0,children:(0,jsx_runtime.jsxs)(h_stack_component.A,{justify:"flex-start",spacing:2,children:[(0,jsx_runtime.jsx)(form_toggle,{id,checked,onChange:function onChangeToggle(event){onChange(event.target.checked)},"aria-describedby":describedBy,disabled,ref}),(0,jsx_runtime.jsx)(component.A,{as:"label",htmlFor:id,className:(0,clsx.A)("components-toggle-control__label",{"is-disabled":disabled}),children:label})]})})})),toggle_control=ToggleControl},"./packages/components/build-module/toolbar/toolbar-button/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>toolbar_button});var clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),react=__webpack_require__("./node_modules/react/index.js"),build_module_button=__webpack_require__("./packages/components/build-module/button/index.js"),toolbar_item=__webpack_require__("./packages/components/build-module/toolbar/toolbar-item/index.js"),toolbar_context=__webpack_require__("./packages/components/build-module/toolbar/toolbar-context/index.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const toolbar_button_container=({children,className})=>(0,jsx_runtime.jsx)("div",{className,children});const toolbar_button=(0,react.forwardRef)((function UnforwardedToolbarButton(props,ref){const{children,className,containerClassName,extraProps,isActive,title,...restProps}=function useDeprecatedProps({isDisabled,...otherProps}){return{disabled:isDisabled,...otherProps}}(props);return(0,react.useContext)(toolbar_context.A)?(0,jsx_runtime.jsx)(toolbar_item.A,{className:(0,clsx.A)("components-toolbar-button",className),...extraProps,...restProps,ref,children:toolbarItemProps=>(0,jsx_runtime.jsx)(build_module_button.Ay,{size:"compact",label:title,isPressed:isActive,...toolbarItemProps,children})}):(0,jsx_runtime.jsx)(toolbar_button_container,{className:containerClassName,children:(0,jsx_runtime.jsx)(build_module_button.Ay,{ref,icon:restProps.icon,size:"compact",label:title,shortcut:restProps.shortcut,"data-subscript":restProps.subscript,onClick:event=>{event.stopPropagation(),restProps.onClick&&restProps.onClick(event)},className:(0,clsx.A)("components-toolbar__control",className),isPressed:isActive,accessibleWhenDisabled:!0,"data-toolbar-item":!0,...extraProps,...restProps,children})})}))},"./packages/components/build-module/toolbar/toolbar-context/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./node_modules/react/index.js").createContext)(void 0)},"./packages/components/build-module/toolbar/toolbar-dropdown-menu/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),_toolbar_item__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/components/build-module/toolbar/toolbar-item/index.js"),_toolbar_context__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/build-module/toolbar/toolbar-context/index.js"),_dropdown_menu__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/components/build-module/dropdown-menu/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((function ToolbarDropdownMenu(props,ref){return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useContext)(_toolbar_context__WEBPACK_IMPORTED_MODULE_2__.A)?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_toolbar_item__WEBPACK_IMPORTED_MODULE_4__.A,{ref,...props.toggleProps,children:toolbarItemProps=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_dropdown_menu__WEBPACK_IMPORTED_MODULE_3__.A,{...props,popoverProps:{...props.popoverProps},toggleProps:toolbarItemProps})}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_dropdown_menu__WEBPACK_IMPORTED_MODULE_3__.A,{...props})}))},"./packages/components/build-module/toolbar/toolbar-group/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>toolbar_group});var clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),react=__webpack_require__("./node_modules/react/index.js"),toolbar_button=__webpack_require__("./packages/components/build-module/toolbar/toolbar-button/index.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const toolbar_group_container=({className,children,...props})=>(0,jsx_runtime.jsx)("div",{className,...props,children});var dropdown_menu=__webpack_require__("./packages/components/build-module/dropdown-menu/index.js"),toolbar_context=__webpack_require__("./packages/components/build-module/toolbar/toolbar-context/index.js"),toolbar_item=__webpack_require__("./packages/components/build-module/toolbar/toolbar-item/index.js");const toolbar_group_collapsed=function ToolbarGroupCollapsed({controls=[],toggleProps,...props}){const renderDropdownMenu=internalToggleProps=>(0,jsx_runtime.jsx)(dropdown_menu.A,{controls,toggleProps:{...internalToggleProps,"data-toolbar-item":!0},...props});return(0,react.useContext)(toolbar_context.A)?(0,jsx_runtime.jsx)(toolbar_item.A,{...toggleProps,children:renderDropdownMenu}):renderDropdownMenu(toggleProps)};const toolbar_group=function ToolbarGroup({controls=[],children,className,isCollapsed,title,...props}){const accessibleToolbarState=(0,react.useContext)(toolbar_context.A);if(!(controls&&controls.length||children))return null;const finalClassName=(0,clsx.A)(accessibleToolbarState?"components-toolbar-group":"components-toolbar",className);let controlSets;return controlSets=function isNestedArray(arr){return Array.isArray(arr)&&Array.isArray(arr[0])}(controls)?controls:[controls],isCollapsed?(0,jsx_runtime.jsx)(toolbar_group_collapsed,{label:title,controls:controlSets,className:finalClassName,children,...props}):(0,jsx_runtime.jsxs)(toolbar_group_container,{className:finalClassName,...props,children:[controlSets?.flatMap(((controlSet,indexOfSet)=>controlSet.map(((control,indexOfControl)=>(0,jsx_runtime.jsx)(toolbar_button.A,{containerClassName:indexOfSet>0&&0===indexOfControl?"has-left-divider":void 0,...control},[indexOfSet,indexOfControl].join()))))),children]})}},"./packages/components/build-module/toolbar/toolbar-item/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _ariakit_react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ariakit/react-core/esm/__chunks/BOLVLGVE.js"),_wordpress_element__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),_toolbar_context__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/components/build-module/toolbar/toolbar-context/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((function ToolbarItem({children,as:Component,...props},ref){const accessibleToolbarStore=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useContext)(_toolbar_context__WEBPACK_IMPORTED_MODULE_2__.A),isRenderProp="function"==typeof children;if(!isRenderProp&&!Component)return null;const allProps={...props,ref,"data-toolbar-item":!0};if(!accessibleToolbarStore)return Component?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Component,{...allProps,children}):isRenderProp?children(allProps):null;const render=isRenderProp?children:Component&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Component,{children});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ariakit_react__WEBPACK_IMPORTED_MODULE_3__.T,{accessibleWhenDisabled:!0,...allProps,store:accessibleToolbarStore,render})}))},"./packages/compose/build-module/higher-order/if-condition/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _utils_create_higher_order_component__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/compose/build-module/utils/create-higher-order-component/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=function ifCondition(predicate){return(0,_utils_create_higher_order_component__WEBPACK_IMPORTED_MODULE_1__.f)((WrappedComponent=>props=>predicate(props)?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(WrappedComponent,{...props}):null),"ifCondition")}},"./packages/compose/build-module/hooks/use-async-list/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_wordpress_element__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react-dom/index.js"),_wordpress_priority_queue__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/priority-queue/build-module/index.js");const __WEBPACK_DEFAULT_EXPORT__=function useAsyncList(list,config={step:1}){const{step=1}=config,[current,setCurrent]=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)([]);return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let firstItems=function getFirstItemsPresentInState(list,state){const firstItems=[];for(let i=0;i{(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.flushSync)((()=>{setCurrent((state=>[...state,...list.slice(i,i+step)]))}))}));return()=>asyncQueue.reset()}),[list]),current}},"./packages/compose/build-module/hooks/use-disabled/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>useDisabled});var _utils_debounce__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/compose/build-module/utils/debounce/index.js"),_use_ref_effect__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/compose/build-module/hooks/use-ref-effect/index.js");function useDisabled({isDisabled:isDisabledProp=!1}={}){return(0,_use_ref_effect__WEBPACK_IMPORTED_MODULE_0__.A)((node=>{if(isDisabledProp)return;const defaultView=node?.ownerDocument?.defaultView;if(!defaultView)return;const updates=[],disable=()=>{node.childNodes.forEach((child=>{child instanceof defaultView.HTMLElement&&(child.getAttribute("inert")||(child.setAttribute("inert","true"),updates.push((()=>{child.removeAttribute("inert")}))))}))},debouncedDisable=(0,_utils_debounce__WEBPACK_IMPORTED_MODULE_1__.s)(disable,0,{leading:!0});disable();const observer=new window.MutationObserver(debouncedDisable);return observer.observe(node,{childList:!0}),()=>{observer&&observer.disconnect(),debouncedDisable.cancel(),updates.forEach((update=>update()))}}),[isDisabledProp])}},"./packages/compose/build-module/hooks/use-drop-zone/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>useDropZone});var _use_ref_effect__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/compose/build-module/hooks/use-ref-effect/index.js"),_use_event__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/compose/build-module/hooks/use-event/index.js");function useDropZone({dropZoneElement,isDisabled,onDrop:_onDrop,onDragStart:_onDragStart,onDragEnter:_onDragEnter,onDragLeave:_onDragLeave,onDragEnd:_onDragEnd,onDragOver:_onDragOver}){const onDropEvent=(0,_use_event__WEBPACK_IMPORTED_MODULE_0__.A)(_onDrop),onDragStartEvent=(0,_use_event__WEBPACK_IMPORTED_MODULE_0__.A)(_onDragStart),onDragEnterEvent=(0,_use_event__WEBPACK_IMPORTED_MODULE_0__.A)(_onDragEnter),onDragLeaveEvent=(0,_use_event__WEBPACK_IMPORTED_MODULE_0__.A)(_onDragLeave),onDragEndEvent=(0,_use_event__WEBPACK_IMPORTED_MODULE_0__.A)(_onDragEnd),onDragOverEvent=(0,_use_event__WEBPACK_IMPORTED_MODULE_0__.A)(_onDragOver);return(0,_use_ref_effect__WEBPACK_IMPORTED_MODULE_1__.A)((elem=>{if(isDisabled)return;const element=null!=dropZoneElement?dropZoneElement:elem;let isDragging=!1;const{ownerDocument}=element;function maybeDragStart(event){isDragging||(isDragging=!0,ownerDocument.addEventListener("dragend",maybeDragEnd),ownerDocument.addEventListener("mousemove",maybeDragEnd),_onDragStart&&onDragStartEvent(event))}function onDragEnter(event){event.preventDefault(),element.contains(event.relatedTarget)||_onDragEnter&&onDragEnterEvent(event)}function onDragOver(event){!event.defaultPrevented&&_onDragOver&&onDragOverEvent(event),event.preventDefault()}function onDragLeave(event){(function isElementInZone(targetToCheck){const{defaultView}=ownerDocument;if(!(targetToCheck&&defaultView&&targetToCheck instanceof defaultView.HTMLElement&&element.contains(targetToCheck)))return!1;let elementToCheck=targetToCheck;do{if(elementToCheck.dataset.isDropZone)return elementToCheck===element}while(elementToCheck=elementToCheck.parentElement);return!1})(event.relatedTarget)||_onDragLeave&&onDragLeaveEvent(event)}function onDrop(event){event.defaultPrevented||(event.preventDefault(),event.dataTransfer&&event.dataTransfer.files.length,_onDrop&&onDropEvent(event),maybeDragEnd(event))}function maybeDragEnd(event){isDragging&&(isDragging=!1,ownerDocument.removeEventListener("dragend",maybeDragEnd),ownerDocument.removeEventListener("mousemove",maybeDragEnd),_onDragEnd&&onDragEndEvent(event))}return element.setAttribute("data-is-drop-zone","true"),element.addEventListener("drop",onDrop),element.addEventListener("dragenter",onDragEnter),element.addEventListener("dragover",onDragOver),element.addEventListener("dragleave",onDragLeave),ownerDocument.addEventListener("dragenter",maybeDragStart),()=>{element.removeAttribute("data-is-drop-zone"),element.removeEventListener("drop",onDrop),element.removeEventListener("dragenter",onDragEnter),element.removeEventListener("dragover",onDragOver),element.removeEventListener("dragleave",onDragLeave),ownerDocument.removeEventListener("dragend",maybeDragEnd),ownerDocument.removeEventListener("mousemove",maybeDragEnd),ownerDocument.removeEventListener("dragenter",maybeDragStart)}}),[isDisabled,dropZoneElement])}},"./packages/compose/build-module/hooks/use-isomorphic-layout-effect/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const __WEBPACK_DEFAULT_EXPORT__="undefined"!=typeof window?_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect},"./packages/compose/build-module/hooks/use-throttle/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>useThrottle});var use_memo_one__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/use-memo-one/dist/use-memo-one.esm.js"),_wordpress_element__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),_utils_throttle__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/compose/build-module/utils/throttle/index.js");function useThrottle(fn,wait,options){const throttled=(0,use_memo_one__WEBPACK_IMPORTED_MODULE_0__.MA)((()=>(0,_utils_throttle__WEBPACK_IMPORTED_MODULE_1__.n)(fn,null!=wait?wait:0,options)),[fn,wait,options]);return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)((()=>()=>throttled.cancel()),[throttled]),throttled}},"./packages/compose/build-module/utils/create-higher-order-component/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{f:()=>createHigherOrderComponent});var change_case__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/pascal-case/dist.es2015/index.js");function createHigherOrderComponent(mapComponent,modifierName){return Inner=>{const Outer=mapComponent(Inner);return Outer.displayName=hocName(modifierName,Inner),Outer}}const hocName=(name,Inner)=>{const inner=Inner.displayName||Inner.name||"Component";return`${(0,change_case__WEBPACK_IMPORTED_MODULE_0__.fL)(null!=name?name:"")}(${inner})`}},"./packages/compose/build-module/utils/throttle/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{n:()=>throttle});var _debounce__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/compose/build-module/utils/debounce/index.js");const throttle=(func,wait,options)=>{let leading=!0,trailing=!0;return options&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),(0,_debounce__WEBPACK_IMPORTED_MODULE_0__.s)(func,wait,{leading,trailing,maxWait:wait})}},"./packages/data/build-module/components/use-dispatch/use-dispatch.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _registry_provider_use_registry__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/data/build-module/components/registry-provider/use-registry.js");const __WEBPACK_DEFAULT_EXPORT__=storeNameOrDescriptor=>{const{dispatch}=(0,_registry_provider_use_registry__WEBPACK_IMPORTED_MODULE_0__.A)();return void 0===storeNameOrDescriptor?dispatch:dispatch(storeNameOrDescriptor)}},"./packages/data/build-module/components/with-dispatch/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>with_dispatch});var create_higher_order_component=__webpack_require__("./packages/compose/build-module/utils/create-higher-order-component/index.js"),react=__webpack_require__("./node_modules/react/index.js"),use_isomorphic_layout_effect=__webpack_require__("./packages/compose/build-module/hooks/use-isomorphic-layout-effect/index.js"),use_registry=__webpack_require__("./packages/data/build-module/components/registry-provider/use-registry.js");const use_dispatch_with_map=(dispatchMap,deps)=>{const registry=(0,use_registry.A)(),currentDispatchMapRef=(0,react.useRef)(dispatchMap);return(0,use_isomorphic_layout_effect.A)((()=>{currentDispatchMapRef.current=dispatchMap})),(0,react.useMemo)((()=>{const currentDispatchProps=currentDispatchMapRef.current(registry.dispatch,registry);return Object.fromEntries(Object.entries(currentDispatchProps).map((([propName,dispatcher])=>("function"!=typeof dispatcher&&console.warn(`Property ${propName} returned from dispatchMap in useDispatchWithMap must be a function.`),[propName,(...args)=>currentDispatchMapRef.current(registry.dispatch,registry)[propName](...args)]))))}),[registry,...deps])};var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const with_dispatch=mapDispatchToProps=>(0,create_higher_order_component.f)((WrappedComponent=>ownProps=>{const dispatchProps=use_dispatch_with_map(((dispatch,registry)=>mapDispatchToProps(dispatch,ownProps,registry)),[]);return(0,jsx_runtime.jsx)(WrappedComponent,{...ownProps,...dispatchProps})}),"withDispatch")},"./packages/data/build-module/components/with-select/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>with_select});var create_higher_order_component=__webpack_require__("./packages/compose/build-module/utils/create-higher-order-component/index.js"),build_module=__webpack_require__("./packages/is-shallow-equal/build-module/index.js"),react=__webpack_require__("./node_modules/react/index.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const higher_order_pure=(0,create_higher_order_component.f)((function(WrappedComponent){return WrappedComponent.prototype instanceof react.Component?class extends WrappedComponent{shouldComponentUpdate(nextProps,nextState){return!(0,build_module.Ay)(nextProps,this.props)||!(0,build_module.Ay)(nextState,this.state)}}:class extends react.Component{shouldComponentUpdate(nextProps){return!(0,build_module.Ay)(nextProps,this.props)}render(){return(0,jsx_runtime.jsx)(WrappedComponent,{...this.props})}}}),"pure");var use_select=__webpack_require__("./packages/data/build-module/components/use-select/index.js");const with_select=mapSelectToProps=>(0,create_higher_order_component.f)((WrappedComponent=>higher_order_pure((ownProps=>{const mergeProps=(0,use_select.A)(((select,registry)=>mapSelectToProps(select,ownProps,registry)));return(0,jsx_runtime.jsx)(WrappedComponent,{...ownProps,...mergeProps})}))),"withSelect")},"./packages/dom/build-module/data-transfer.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function getFilesFromDataTransfer(dataTransfer){const files=Array.from(dataTransfer.files);return Array.from(dataTransfer.items).forEach((item=>{const file=item.getAsFile();file&&!files.find((({name,type,size})=>name===file.name&&type===file.type&&size===file.size))&&files.push(file)})),files}__webpack_require__.d(__webpack_exports__,{$:()=>getFilesFromDataTransfer})},"./packages/dom/build-module/dom/compute-caret-rect.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>computeCaretRect});var _get_rectangle_from_range__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/dom/build-module/dom/get-rectangle-from-range.js"),_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/dom/build-module/utils/assert-is-defined.js");function computeCaretRect(win){const selection=win.getSelection();(0,_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_0__.e)(selection,"selection");const range=selection.rangeCount?selection.getRangeAt(0):null;return range?(0,_get_rectangle_from_range__WEBPACK_IMPORTED_MODULE_1__.A)(range):null}},"./packages/dom/build-module/dom/document-has-selection.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>documentHasSelection});var _is_text_field__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/dom/build-module/dom/is-text-field.js"),_is_html_input_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/dom/build-module/dom/is-html-input-element.js"),_document_has_text_selection__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/dom/build-module/dom/document-has-text-selection.js");function documentHasSelection(doc){return!!doc.activeElement&&((0,_is_html_input_element__WEBPACK_IMPORTED_MODULE_0__.A)(doc.activeElement)||(0,_is_text_field__WEBPACK_IMPORTED_MODULE_1__.A)(doc.activeElement)||(0,_document_has_text_selection__WEBPACK_IMPORTED_MODULE_2__.A)(doc))}},"./packages/dom/build-module/dom/document-has-text-selection.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>documentHasTextSelection});var _utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/dom/build-module/utils/assert-is-defined.js");function documentHasTextSelection(doc){(0,_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_0__.e)(doc.defaultView,"doc.defaultView");const selection=doc.defaultView.getSelection();(0,_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_0__.e)(selection,"selection");const range=selection.rangeCount?selection.getRangeAt(0):null;return!!range&&!range.collapsed}},"./packages/dom/build-module/dom/document-has-uncollapsed-selection.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>documentHasUncollapsedSelection});var document_has_text_selection=__webpack_require__("./packages/dom/build-module/dom/document-has-text-selection.js"),is_text_field=__webpack_require__("./packages/dom/build-module/dom/is-text-field.js"),is_html_input_element=__webpack_require__("./packages/dom/build-module/dom/is-html-input-element.js");function documentHasUncollapsedSelection(doc){return(0,document_has_text_selection.A)(doc)||!!doc.activeElement&&function inputFieldHasUncollapsedSelection(element){if(!(0,is_html_input_element.A)(element)&&!(0,is_text_field.A)(element))return!1;try{const{selectionStart,selectionEnd}=element;return null===selectionStart||selectionStart!==selectionEnd}catch(error){return!0}}(doc.activeElement)}},"./packages/dom/build-module/dom/get-rectangle-from-range.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>getRectangleFromRange});var _utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/dom/build-module/utils/assert-is-defined.js");function getRectangleFromRange(range){if(!range.collapsed){const rects=Array.from(range.getClientRects());if(1===rects.length)return rects[0];const filteredRects=rects.filter((({width})=>width>1));if(0===filteredRects.length)return range.getBoundingClientRect();if(1===filteredRects.length)return filteredRects[0];let{top:furthestTop,bottom:furthestBottom,left:furthestLeft,right:furthestRight}=filteredRects[0];for(const{top,bottom,left,right}of filteredRects)topfurthestBottom&&(furthestBottom=bottom),leftfurthestRight&&(furthestRight=right);return new window.DOMRect(furthestLeft,furthestTop,furthestRight-furthestLeft,furthestBottom-furthestTop)}const{startContainer}=range,{ownerDocument}=startContainer;if("BR"===startContainer.nodeName){const{parentNode}=startContainer;(0,_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_0__.e)(parentNode,"parentNode");const index=Array.from(parentNode.childNodes).indexOf(startContainer);(0,_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_0__.e)(ownerDocument,"ownerDocument"),(range=ownerDocument.createRange()).setStart(parentNode,index),range.setEnd(parentNode,index)}const rects=range.getClientRects();if(rects.length>1)return null;let rect=rects[0];if(!rect||0===rect.height){(0,_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_0__.e)(ownerDocument,"ownerDocument");const padNode=ownerDocument.createTextNode("​");(range=range.cloneRange()).insertNode(padNode),rect=range.getClientRects()[0],(0,_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_0__.e)(padNode.parentNode,"padNode.parentNode"),padNode.parentNode.removeChild(padNode)}return rect}},"./packages/dom/build-module/dom/hidden-caret-range-from-point.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>hiddenCaretRangeFromPoint});var get_computed_style=__webpack_require__("./packages/dom/build-module/dom/get-computed-style.js");function hiddenCaretRangeFromPoint(doc,x,y,container){const originalZIndex=container.style.zIndex,originalPosition=container.style.position,{position="static"}=(0,get_computed_style.A)(container);"static"===position&&(container.style.position="relative"),container.style.zIndex="10000";const range=function caretRangeFromPoint(doc,x,y){if(doc.caretRangeFromPoint)return doc.caretRangeFromPoint(x,y);if(!doc.caretPositionFromPoint)return null;const point=doc.caretPositionFromPoint(x,y);if(!point)return null;const range=doc.createRange();return range.setStart(point.offsetNode,point.offset),range.collapse(!0),range}(doc,x,y);return container.style.zIndex=originalZIndex,container.style.position=originalPosition,range}},"./packages/dom/build-module/dom/is-edge.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>isEdge});var is_rtl=__webpack_require__("./packages/dom/build-module/dom/is-rtl.js");var get_rectangle_from_range=__webpack_require__("./packages/dom/build-module/dom/get-rectangle-from-range.js"),is_selection_forward=__webpack_require__("./packages/dom/build-module/dom/is-selection-forward.js"),hidden_caret_range_from_point=__webpack_require__("./packages/dom/build-module/dom/hidden-caret-range-from-point.js"),assert_is_defined=__webpack_require__("./packages/dom/build-module/utils/assert-is-defined.js"),is_input_or_text_area=__webpack_require__("./packages/dom/build-module/dom/is-input-or-text-area.js"),scroll_if_no_range=__webpack_require__("./packages/dom/build-module/dom/scroll-if-no-range.js");function isEdge(container,isReverse,onlyVertical=!1){if((0,is_input_or_text_area.A)(container)&&"number"==typeof container.selectionStart)return container.selectionStart===container.selectionEnd&&(isReverse?0===container.selectionStart:container.value.length===container.selectionStart);if(!container.isContentEditable)return!0;const{ownerDocument}=container,{defaultView}=ownerDocument;(0,assert_is_defined.e)(defaultView,"defaultView");const selection=defaultView.getSelection();if(!selection||!selection.rangeCount)return!1;const range=selection.getRangeAt(0),collapsedRange=range.cloneRange(),isForward=(0,is_selection_forward.A)(selection),isCollapsed=selection.isCollapsed;isCollapsed||collapsedRange.collapse(!isForward);const collapsedRangeRect=(0,get_rectangle_from_range.A)(collapsedRange),rangeRect=(0,get_rectangle_from_range.A)(range);if(!collapsedRangeRect||!rangeRect)return!1;const rangeHeight=function getRangeHeight(range){const rects=Array.from(range.getClientRects());if(!rects.length)return;const highestTop=Math.min(...rects.map((({top})=>top)));return Math.max(...rects.map((({bottom})=>bottom)))-highestTop}(range);if(!isCollapsed&&rangeHeight&&rangeHeight>collapsedRangeRect.height&&isForward===isReverse)return!1;const isReverseDir=(0,is_rtl.A)(container)?!isReverse:isReverse,containerRect=container.getBoundingClientRect(),x=isReverseDir?containerRect.left+1:containerRect.right-1,y=isReverse?containerRect.top+1:containerRect.bottom-1,testRange=(0,scroll_if_no_range.P)(container,isReverse,(()=>(0,hidden_caret_range_from_point.A)(ownerDocument,x,y,container)));if(!testRange)return!1;const testRect=(0,get_rectangle_from_range.A)(testRange);if(!testRect)return!1;const verticalSide=isReverse?"top":"bottom",horizontalSide=isReverseDir?"left":"right",verticalDiff=testRect[verticalSide]-rangeRect[verticalSide],horizontalDiff=testRect[horizontalSide]-collapsedRangeRect[horizontalSide],hasVerticalDiff=Math.abs(verticalDiff)<=1,hasHorizontalDiff=Math.abs(horizontalDiff)<=1;return onlyVertical?hasVerticalDiff:hasVerticalDiff&&hasHorizontalDiff}},"./packages/dom/build-module/dom/is-entirely-selected.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>isEntirelySelected});var _utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/dom/build-module/utils/assert-is-defined.js"),_is_input_or_text_area__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/dom/build-module/dom/is-input-or-text-area.js");function isEntirelySelected(element){if((0,_is_input_or_text_area__WEBPACK_IMPORTED_MODULE_0__.A)(element))return 0===element.selectionStart&&element.value.length===element.selectionEnd;if(!element.isContentEditable)return!0;const{ownerDocument}=element,{defaultView}=ownerDocument;(0,_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_1__.e)(defaultView,"defaultView");const selection=defaultView.getSelection();(0,_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_1__.e)(selection,"selection");const range=selection.rangeCount?selection.getRangeAt(0):null;if(!range)return!0;const{startContainer,endContainer,startOffset,endOffset}=range;if(startContainer===element&&endContainer===element&&0===startOffset&&endOffset===element.childNodes.length)return!0;const lastChild=element.lastChild;(0,_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_1__.e)(lastChild,"lastChild");const endContainerContentLength=endContainer.nodeType===endContainer.TEXT_NODE?endContainer.data.length:endContainer.childNodes.length;return isDeepChild(startContainer,element,"firstChild")&&isDeepChild(endContainer,element,"lastChild")&&0===startOffset&&endOffset===endContainerContentLength}function isDeepChild(query,container,propName){let candidate=container;do{if(query===candidate)return!0;candidate=candidate[propName]}while(candidate);return!1}},"./packages/dom/build-module/dom/is-form-element.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>isFormElement});var _is_input_or_text_area__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/dom/build-module/dom/is-input-or-text-area.js");function isFormElement(element){if(!element)return!1;const{tagName}=element;return(0,_is_input_or_text_area__WEBPACK_IMPORTED_MODULE_0__.A)(element)||"BUTTON"===tagName||"SELECT"===tagName}},"./packages/dom/build-module/dom/is-horizontal-edge.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>isHorizontalEdge});var _is_edge__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/dom/build-module/dom/is-edge.js");function isHorizontalEdge(container,isReverse){return(0,_is_edge__WEBPACK_IMPORTED_MODULE_0__.A)(container,isReverse)}},"./packages/dom/build-module/dom/is-html-input-element.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function isHTMLInputElement(node){return"INPUT"===node?.nodeName}__webpack_require__.d(__webpack_exports__,{A:()=>isHTMLInputElement})},"./packages/dom/build-module/dom/is-input-or-text-area.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function isInputOrTextArea(element){return"INPUT"===element.tagName||"TEXTAREA"===element.tagName}__webpack_require__.d(__webpack_exports__,{A:()=>isInputOrTextArea})},"./packages/dom/build-module/dom/is-rtl.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>isRTL});var _get_computed_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/dom/build-module/dom/get-computed-style.js");function isRTL(element){return"rtl"===(0,_get_computed_style__WEBPACK_IMPORTED_MODULE_0__.A)(element).direction}},"./packages/dom/build-module/dom/is-selection-forward.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>isSelectionForward});var _utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/dom/build-module/utils/assert-is-defined.js");function isSelectionForward(selection){const{anchorNode,focusNode,anchorOffset,focusOffset}=selection;(0,_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_0__.e)(anchorNode,"anchorNode"),(0,_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_0__.e)(focusNode,"focusNode");const position=anchorNode.compareDocumentPosition(focusNode);return!(position&anchorNode.DOCUMENT_POSITION_PRECEDING)&&(!!(position&anchorNode.DOCUMENT_POSITION_FOLLOWING)||(0!==position||anchorOffset<=focusOffset))}},"./packages/dom/build-module/dom/is-text-field.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>isTextField});var _is_html_input_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/dom/build-module/dom/is-html-input-element.js");function isTextField(node){return(0,_is_html_input_element__WEBPACK_IMPORTED_MODULE_0__.A)(node)&&node.type&&!["button","checkbox","hidden","file","radio","image","range","reset","submit","number","email","time"].includes(node.type)||"TEXTAREA"===node.nodeName||"true"===node.contentEditable}},"./packages/dom/build-module/dom/is-vertical-edge.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>isVerticalEdge});var _is_edge__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/dom/build-module/dom/is-edge.js");function isVerticalEdge(container,isReverse){return(0,_is_edge__WEBPACK_IMPORTED_MODULE_0__.A)(container,isReverse,!0)}},"./packages/dom/build-module/dom/place-caret-at-edge.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>placeCaretAtEdge});var _hidden_caret_range_from_point__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/dom/build-module/dom/hidden-caret-range-from-point.js"),_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/dom/build-module/utils/assert-is-defined.js"),_is_input_or_text_area__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/dom/build-module/dom/is-input-or-text-area.js"),_is_rtl__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/dom/build-module/dom/is-rtl.js"),_scroll_if_no_range__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/dom/build-module/dom/scroll-if-no-range.js");function placeCaretAtEdge(container,isReverse,x){if(!container)return;if(container.focus(),(0,_is_input_or_text_area__WEBPACK_IMPORTED_MODULE_2__.A)(container)){if("number"!=typeof container.selectionStart)return;return void(isReverse?(container.selectionStart=container.value.length,container.selectionEnd=container.value.length):(container.selectionStart=0,container.selectionEnd=0))}if(!container.isContentEditable)return;const range=(0,_scroll_if_no_range__WEBPACK_IMPORTED_MODULE_3__.P)(container,isReverse,(()=>function getRange(container,isReverse,x){const{ownerDocument}=container,isReverseDir=(0,_is_rtl__WEBPACK_IMPORTED_MODULE_0__.A)(container)?!isReverse:isReverse,containerRect=container.getBoundingClientRect();void 0===x?x=isReverse?containerRect.right-1:containerRect.left+1:x<=containerRect.left?x=containerRect.left+1:x>=containerRect.right&&(x=containerRect.right-1);const y=isReverseDir?containerRect.bottom-1:containerRect.top+1;return(0,_hidden_caret_range_from_point__WEBPACK_IMPORTED_MODULE_1__.A)(ownerDocument,x,y,container)}(container,isReverse,x)));if(!range)return;const{ownerDocument}=container,{defaultView}=ownerDocument;(0,_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_4__.e)(defaultView,"defaultView");const selection=defaultView.getSelection();(0,_utils_assert_is_defined__WEBPACK_IMPORTED_MODULE_4__.e)(selection,"selection"),selection.removeAllRanges(),selection.addRange(range)}},"./packages/dom/build-module/dom/place-caret-at-horizontal-edge.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>placeCaretAtHorizontalEdge});var _place_caret_at_edge__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/dom/build-module/dom/place-caret-at-edge.js");function placeCaretAtHorizontalEdge(container,isReverse){return(0,_place_caret_at_edge__WEBPACK_IMPORTED_MODULE_0__.A)(container,isReverse,void 0)}},"./packages/dom/build-module/dom/place-caret-at-vertical-edge.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>placeCaretAtVerticalEdge});var _place_caret_at_edge__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/dom/build-module/dom/place-caret-at-edge.js");function placeCaretAtVerticalEdge(container,isReverse,rect){return(0,_place_caret_at_edge__WEBPACK_IMPORTED_MODULE_0__.A)(container,isReverse,rect?.left)}},"./packages/dom/build-module/dom/scroll-if-no-range.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function scrollIfNoRange(container,alignToTop,callback){let range=callback();return range&&range.startContainer&&container.contains(range.startContainer)||(container.scrollIntoView(alignToTop),range=callback(),range&&range.startContainer&&container.contains(range.startContainer))?range:null}__webpack_require__.d(__webpack_exports__,{P:()=>scrollIfNoRange})},"./packages/icons/build-module/library/align-none.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})})},"./packages/icons/build-module/library/block-default.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})})},"./packages/icons/build-module/library/chevron-left.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})})},"./packages/icons/build-module/library/drag-handle.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"})})},"./packages/icons/build-module/library/external.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})})},"./packages/icons/build-module/library/justify-bottom.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})})},"./packages/icons/build-module/library/justify-center-vertical.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})})},"./packages/icons/build-module/library/justify-center.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})})},"./packages/icons/build-module/library/justify-left.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})})},"./packages/icons/build-module/library/justify-right.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})})},"./packages/icons/build-module/library/justify-space-between-vertical.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})})},"./packages/icons/build-module/library/justify-space-between.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})})},"./packages/icons/build-module/library/justify-stretch-vertical.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})})},"./packages/icons/build-module/library/justify-stretch.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})})},"./packages/icons/build-module/library/justify-top.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})})},"./packages/icons/build-module/library/sides-all.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})})},"./packages/icons/build-module/library/sides-bottom.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m16.5 19.5h-9v-1.5h9z"})]})},"./packages/icons/build-module/library/sides-horizontal.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m4.5 7.5v9h1.5v-9z"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m18 7.5v9h1.5v-9z"})]})},"./packages/icons/build-module/library/sides-left.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m4.5 16.5v-9h1.5v9z"})]})},"./packages/icons/build-module/library/sides-right.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m18 16.5v-9h1.5v9z"})]})},"./packages/icons/build-module/library/sides-top.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m16.5 6h-9v-1.5h9z"})]})},"./packages/icons/build-module/library/sides-vertical.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m7.5 6h9v-1.5h-9z"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"m7.5 19.5h9v-1.5h-9z"})]})},"./packages/icons/build-module/library/stretch-wide.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})})},"./packages/icons/build-module/library/tip.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})})},"./packages/keyboard-shortcuts/build-module/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ZK:()=>useShortcutEventMatch,M_:()=>store,wk:()=>useShortcut});var actions_namespaceObject={};__webpack_require__.r(actions_namespaceObject),__webpack_require__.d(actions_namespaceObject,{registerShortcut:()=>registerShortcut,unregisterShortcut:()=>unregisterShortcut});var selectors_namespaceObject={};__webpack_require__.r(selectors_namespaceObject),__webpack_require__.d(selectors_namespaceObject,{getAllShortcutKeyCombinations:()=>getAllShortcutKeyCombinations,getAllShortcutRawKeyCombinations:()=>getAllShortcutRawKeyCombinations,getCategoryShortcuts:()=>getCategoryShortcuts,getShortcutAliases:()=>getShortcutAliases,getShortcutDescription:()=>getShortcutDescription,getShortcutKeyCombination:()=>getShortcutKeyCombination,getShortcutRepresentation:()=>getShortcutRepresentation});var redux_store=__webpack_require__("./packages/data/build-module/redux-store/index.js"),build_module=__webpack_require__("./packages/data/build-module/index.js");const store_reducer=function reducer(state={},action){switch(action.type){case"REGISTER_SHORTCUT":return{...state,[action.name]:{category:action.category,keyCombination:action.keyCombination,aliases:action.aliases,description:action.description}};case"UNREGISTER_SHORTCUT":const{[action.name]:actionName,...remainingState}=state;return remainingState}return state};function registerShortcut({name,category,description,keyCombination,aliases}){return{type:"REGISTER_SHORTCUT",name,category,keyCombination,aliases,description}}function unregisterShortcut(name){return{type:"UNREGISTER_SHORTCUT",name}}var rememo=__webpack_require__("./node_modules/rememo/rememo.js"),keycodes_build_module=__webpack_require__("./packages/keycodes/build-module/index.js");const EMPTY_ARRAY=[],FORMATTING_METHODS={display:keycodes_build_module.dz,raw:keycodes_build_module.JF,ariaLabel:keycodes_build_module._A};function getKeyCombinationRepresentation(shortcut,representation){return shortcut?shortcut.modifier?FORMATTING_METHODS[representation][shortcut.modifier](shortcut.character):shortcut.character:null}function getShortcutKeyCombination(state,name){return state[name]?state[name].keyCombination:null}function getShortcutRepresentation(state,name,representation="display"){return getKeyCombinationRepresentation(getShortcutKeyCombination(state,name),representation)}function getShortcutDescription(state,name){return state[name]?state[name].description:null}function getShortcutAliases(state,name){return state[name]&&state[name].aliases?state[name].aliases:EMPTY_ARRAY}const getAllShortcutKeyCombinations=(0,rememo.A)(((state,name)=>[getShortcutKeyCombination(state,name),...getShortcutAliases(state,name)].filter(Boolean)),((state,name)=>[state[name]])),getAllShortcutRawKeyCombinations=(0,rememo.A)(((state,name)=>getAllShortcutKeyCombinations(state,name).map((combination=>getKeyCombinationRepresentation(combination,"raw")))),((state,name)=>[state[name]])),getCategoryShortcuts=(0,rememo.A)(((state,categoryName)=>Object.entries(state).filter((([,shortcut])=>shortcut.category===categoryName)).map((([name])=>name))),(state=>[state])),store=(0,redux_store.A)("core/keyboard-shortcuts",{reducer:store_reducer,actions:actions_namespaceObject,selectors:selectors_namespaceObject});(0,build_module.kz)(store);var react=__webpack_require__("./node_modules/react/index.js"),use_select=__webpack_require__("./packages/data/build-module/components/use-select/index.js");function useShortcutEventMatch(){const{getAllShortcutKeyCombinations}=(0,use_select.A)(store);return function isMatch(name,event){return getAllShortcutKeyCombinations(name).some((({modifier,character})=>keycodes_build_module.kx[modifier](event,character)))}}const globalShortcuts=new Set,globalListener=event=>{for(const keyboardShortcut of globalShortcuts)keyboardShortcut(event)},context=(0,react.createContext)({add:shortcut=>{0===globalShortcuts.size&&document.addEventListener("keydown",globalListener),globalShortcuts.add(shortcut)},delete:shortcut=>{globalShortcuts.delete(shortcut),0===globalShortcuts.size&&document.removeEventListener("keydown",globalListener)}});function useShortcut(name,callback,{isDisabled=!1}={}){const shortcuts=(0,react.useContext)(context),isMatch=useShortcutEventMatch(),callbackRef=(0,react.useRef)();(0,react.useEffect)((()=>{callbackRef.current=callback}),[callback]),(0,react.useEffect)((()=>{if(!isDisabled)return shortcuts.add(_callback),()=>{shortcuts.delete(_callback)};function _callback(event){isMatch(name,event)&&callbackRef.current(event)}}),[name,isDisabled,shortcuts])}__webpack_require__("./node_modules/react/jsx-runtime.js");const{Provider}=context},"./packages/style-engine/build-module/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zn:()=>compileCSS,np:()=>getCSSRules});var dist_es2015=__webpack_require__("./node_modules/param-case/dist.es2015/index.js"),utils=__webpack_require__("./packages/style-engine/build-module/styles/utils.js");function createBorderGenerateFunction(path){return(style,options)=>(0,utils.o9)(style,options,path,(0,utils.dk)(path))}function createBorderEdgeGenerateFunction(edge){return(style,options)=>["color","style","width"].flatMap((key=>createBorderGenerateFunction(["border",edge,key])(style,options)))}const radius={name:"radius",generate:(style,options)=>(0,utils.SX)(style,options,["border","radius"],{default:"borderRadius",individual:"border%sRadius"},["topLeft","topRight","bottomLeft","bottomRight"])},styleDefinitions=[...[{name:"color",generate:createBorderGenerateFunction(["border","color"])},{name:"style",generate:createBorderGenerateFunction(["border","style"])},{name:"width",generate:createBorderGenerateFunction(["border","width"])},radius,{name:"borderTop",generate:createBorderEdgeGenerateFunction("top")},{name:"borderRight",generate:createBorderEdgeGenerateFunction("right")},{name:"borderBottom",generate:createBorderEdgeGenerateFunction("bottom")},{name:"borderLeft",generate:createBorderEdgeGenerateFunction("left")}],...[{name:"text",generate:(style,options)=>(0,utils.o9)(style,options,["color","text"],"color")},{name:"gradient",generate:(style,options)=>(0,utils.o9)(style,options,["color","gradient"],"background")},{name:"background",generate:(style,options)=>(0,utils.o9)(style,options,["color","background"],"backgroundColor")}],...[{name:"minHeight",generate:(style,options)=>(0,utils.o9)(style,options,["dimensions","minHeight"],"minHeight")},{name:"aspectRatio",generate:(style,options)=>(0,utils.o9)(style,options,["dimensions","aspectRatio"],"aspectRatio")}],...[{name:"color",generate:(style,options,path=["outline","color"],ruleKey="outlineColor")=>(0,utils.o9)(style,options,path,ruleKey)},{name:"style",generate:(style,options,path=["outline","style"],ruleKey="outlineStyle")=>(0,utils.o9)(style,options,path,ruleKey)},{name:"offset",generate:(style,options,path=["outline","offset"],ruleKey="outlineOffset")=>(0,utils.o9)(style,options,path,ruleKey)},{name:"width",generate:(style,options,path=["outline","width"],ruleKey="outlineWidth")=>(0,utils.o9)(style,options,path,ruleKey)}],...[{name:"margin",generate:(style,options)=>(0,utils.SX)(style,options,["spacing","margin"],{default:"margin",individual:"margin%s"})},{name:"padding",generate:(style,options)=>(0,utils.SX)(style,options,["spacing","padding"],{default:"padding",individual:"padding%s"})}],...[{name:"fontFamily",generate:(style,options)=>(0,utils.o9)(style,options,["typography","fontFamily"],"fontFamily")},{name:"fontSize",generate:(style,options)=>(0,utils.o9)(style,options,["typography","fontSize"],"fontSize")},{name:"fontStyle",generate:(style,options)=>(0,utils.o9)(style,options,["typography","fontStyle"],"fontStyle")},{name:"fontWeight",generate:(style,options)=>(0,utils.o9)(style,options,["typography","fontWeight"],"fontWeight")},{name:"letterSpacing",generate:(style,options)=>(0,utils.o9)(style,options,["typography","letterSpacing"],"letterSpacing")},{name:"lineHeight",generate:(style,options)=>(0,utils.o9)(style,options,["typography","lineHeight"],"lineHeight")},{name:"textColumns",generate:(style,options)=>(0,utils.o9)(style,options,["typography","textColumns"],"columnCount")},{name:"textDecoration",generate:(style,options)=>(0,utils.o9)(style,options,["typography","textDecoration"],"textDecoration")},{name:"textTransform",generate:(style,options)=>(0,utils.o9)(style,options,["typography","textTransform"],"textTransform")},{name:"writingMode",generate:(style,options)=>(0,utils.o9)(style,options,["typography","writingMode"],"writingMode")}],...[{name:"shadow",generate:(style,options)=>(0,utils.o9)(style,options,["shadow"],"boxShadow")}],...[{name:"backgroundImage",generate:(style,options)=>{const _backgroundImage=style?.background?.backgroundImage;return"object"==typeof _backgroundImage&&_backgroundImage?.url?[{selector:options.selector,key:"backgroundImage",value:`url( '${encodeURI((0,utils.S0)(_backgroundImage.url))}' )`}]:(0,utils.o9)(style,options,["background","backgroundImage"],"backgroundImage")}},{name:"backgroundPosition",generate:(style,options)=>(0,utils.o9)(style,options,["background","backgroundPosition"],"backgroundPosition")},{name:"backgroundRepeat",generate:(style,options)=>(0,utils.o9)(style,options,["background","backgroundRepeat"],"backgroundRepeat")},{name:"backgroundSize",generate:(style,options)=>(0,utils.o9)(style,options,["background","backgroundSize"],"backgroundSize")},{name:"backgroundAttachment",generate:(style,options)=>(0,utils.o9)(style,options,["background","backgroundAttachment"],"backgroundAttachment")}]];function compileCSS(style,options={}){const rules=getCSSRules(style,options);if(!options?.selector){const inlineRules=[];return rules.forEach((rule=>{inlineRules.push(`${(0,dist_es2015.c)(rule.key)}: ${rule.value};`)})),inlineRules.join(" ")}const groupedRules=rules.reduce(((acc,rule)=>{const{selector}=rule;return selector?(acc[selector]||(acc[selector]=[]),acc[selector].push(rule),acc):acc}),{});return Object.keys(groupedRules).reduce(((acc,subSelector)=>(acc.push(`${subSelector} { ${groupedRules[subSelector].map((rule=>`${(0,dist_es2015.c)(rule.key)}: ${rule.value};`)).join(" ")} }`),acc)),[]).join("\n")}function getCSSRules(style,options={}){const rules=[];return styleDefinitions.forEach((definition=>{"function"==typeof definition.generate&&rules.push(...definition.generate(style,options))})),rules}},"./packages/style-engine/build-module/styles/utils.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{dk:()=>camelCaseJoin,SX:()=>generateBoxRules,o9:()=>generateRule,k5:()=>getCSSValueFromRawStyle,S0:()=>safeDecodeURI});var dist_es2015=__webpack_require__("./node_modules/param-case/dist.es2015/index.js");const VARIABLE_REFERENCE_PREFIX="var:",VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE="|",VARIABLE_PATH_SEPARATOR_TOKEN_STYLE="--",getStyleValueByPath=(object,path)=>{let value=object;return path.forEach((fieldName=>{value=value?.[fieldName]})),value};function generateRule(style,options,path,ruleKey){const styleValue=getStyleValueByPath(style,path);return styleValue?[{selector:options?.selector,key:ruleKey,value:getCSSValueFromRawStyle(styleValue)}]:[]}function generateBoxRules(style,options,path,ruleKeys,individualProperties=["top","right","bottom","left"]){const boxStyle=getStyleValueByPath(style,path);if(!boxStyle)return[];const rules=[];if("string"==typeof boxStyle)rules.push({selector:options?.selector,key:ruleKeys.default,value:boxStyle});else{const sideRules=individualProperties.reduce(((acc,side)=>{const value=getCSSValueFromRawStyle(getStyleValueByPath(boxStyle,[side]));return value&&acc.push({selector:options?.selector,key:ruleKeys?.individual.replace("%s",upperFirst(side)),value}),acc}),[]);rules.push(...sideRules)}return rules}function getCSSValueFromRawStyle(styleValue){if("string"==typeof styleValue&&styleValue.startsWith(VARIABLE_REFERENCE_PREFIX)){return`var(--wp--${styleValue.slice(VARIABLE_REFERENCE_PREFIX.length).split(VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE).map((presetVariable=>(0,dist_es2015.c)(presetVariable,{splitRegexp:[/([a-z0-9])([A-Z])/g,/([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]}))).join(VARIABLE_PATH_SEPARATOR_TOKEN_STYLE)})`}return styleValue}function upperFirst(string){const[firstLetter,...rest]=string;return firstLetter.toUpperCase()+rest.join("")}function camelCaseJoin(strings){const[firstItem,...rest]=strings;return firstItem.toLowerCase()+rest.map(upperFirst).join("")}function safeDecodeURI(uri){try{return decodeURI(uri)}catch(uriError){return uri}}},"./packages/upload-media/build-module/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{DQ:()=>provider,M_:()=>store});var selectors_namespaceObject={};__webpack_require__.r(selectors_namespaceObject),__webpack_require__.d(selectors_namespaceObject,{getItems:()=>getItems,getSettings:()=>getSettings,isUploading:()=>isUploading,isUploadingById:()=>isUploadingById,isUploadingByUrl:()=>isUploadingByUrl});var private_selectors_namespaceObject={};__webpack_require__.r(private_selectors_namespaceObject),__webpack_require__.d(private_selectors_namespaceObject,{getAllItems:()=>getAllItems,getBlobUrls:()=>getBlobUrls,getItem:()=>getItem,getPausedUploadForPost:()=>getPausedUploadForPost,isBatchUploaded:()=>isBatchUploaded,isPaused:()=>isPaused,isUploadingToPost:()=>isUploadingToPost});var actions_namespaceObject={};__webpack_require__.r(actions_namespaceObject),__webpack_require__.d(actions_namespaceObject,{addItems:()=>addItems,cancelItem:()=>cancelItem});var private_actions_namespaceObject={};__webpack_require__.r(private_actions_namespaceObject),__webpack_require__.d(private_actions_namespaceObject,{addItem:()=>addItem,finishOperation:()=>finishOperation,pauseQueue:()=>pauseQueue,prepareItem:()=>prepareItem,processItem:()=>processItem,removeItem:()=>removeItem,resumeQueue:()=>resumeQueue,revokeBlobUrls:()=>revokeBlobUrls,updateSettings:()=>updateSettings,uploadItem:()=>uploadItem});var redux_store=__webpack_require__("./packages/data/build-module/redux-store/index.js"),build_module=__webpack_require__("./packages/data/build-module/index.js");let Type=function(Type){return Type.Unknown="REDUX_UNKNOWN",Type.Add="ADD_ITEM",Type.Prepare="PREPARE_ITEM",Type.Cancel="CANCEL_ITEM",Type.Remove="REMOVE_ITEM",Type.PauseItem="PAUSE_ITEM",Type.ResumeItem="RESUME_ITEM",Type.PauseQueue="PAUSE_QUEUE",Type.ResumeQueue="RESUME_QUEUE",Type.OperationStart="OPERATION_START",Type.OperationFinish="OPERATION_FINISH",Type.AddOperations="ADD_OPERATIONS",Type.CacheBlobUrl="CACHE_BLOB_URL",Type.RevokeBlobUrls="REVOKE_BLOB_URLS",Type.UpdateSettings="UPDATE_SETTINGS",Type}({}),ItemStatus=function(ItemStatus){return ItemStatus.Processing="PROCESSING",ItemStatus.Paused="PAUSED",ItemStatus}({}),OperationType=function(OperationType){return OperationType.Prepare="PREPARE",OperationType.Upload="UPLOAD",OperationType}({});const DEFAULT_STATE={queue:[],queueStatus:"active",blobUrls:{},settings:{mediaUpload:()=>{}}};const store_reducer=function reducer(state=DEFAULT_STATE,action={type:Type.Unknown}){switch(action.type){case Type.PauseQueue:return{...state,queueStatus:"paused"};case Type.ResumeQueue:return{...state,queueStatus:"active"};case Type.Add:return{...state,queue:[...state.queue,action.item]};case Type.Cancel:return{...state,queue:state.queue.map((item=>item.id===action.id?{...item,error:action.error}:item))};case Type.Remove:return{...state,queue:state.queue.filter((item=>item.id!==action.id))};case Type.OperationStart:return{...state,queue:state.queue.map((item=>item.id===action.id?{...item,currentOperation:action.operation}:item))};case Type.AddOperations:return{...state,queue:state.queue.map((item=>item.id!==action.id?item:{...item,operations:[...item.operations||[],...action.operations]}))};case Type.OperationFinish:return{...state,queue:state.queue.map((item=>{if(item.id!==action.id)return item;const operations=item.operations?item.operations.slice(1):[],attachment=item.attachment||action.item.attachment?{...item.attachment,...action.item.attachment}:void 0;return{...item,currentOperation:void 0,operations,...action.item,attachment,additionalData:{...item.additionalData,...action.item.additionalData}}}))};case Type.CacheBlobUrl:{const blobUrls=state.blobUrls[action.id]||[];return{...state,blobUrls:{...state.blobUrls,[action.id]:[...blobUrls,action.blobUrl]}}}case Type.RevokeBlobUrls:{const newBlobUrls={...state.blobUrls};return delete newBlobUrls[action.id],{...state,blobUrls:newBlobUrls}}case Type.UpdateSettings:return{...state,settings:{...state.settings,...action.settings}}}return state};function getItems(state){return state.queue}function isUploading(state){return state.queue.length>=1}function isUploadingByUrl(state,url){return state.queue.some((item=>item.attachment?.url===url||item.sourceUrl===url))}function isUploadingById(state,attachmentId){return state.queue.some((item=>item.attachment?.id===attachmentId||item.sourceAttachmentId===attachmentId))}function getSettings(state){return state.settings}function getAllItems(state){return state.queue}function getItem(state,id){return state.queue.find((item=>item.id===id))}function isBatchUploaded(state,batchId){return 0===state.queue.filter((item=>batchId===item.batchId)).length}function isUploadingToPost(state,postOrAttachmentId){return state.queue.some((item=>item.currentOperation===OperationType.Upload&&item.additionalData.post===postOrAttachmentId))}function getPausedUploadForPost(state,postOrAttachmentId){return state.queue.find((item=>item.status===ItemStatus.Paused&&item.additionalData.post===postOrAttachmentId))}function isPaused(state){return"paused"===state.queueStatus}function getBlobUrls(state,id){return state.blobUrls[id]||[]}var v4=__webpack_require__("./node_modules/uuid/dist/esm-browser/v4.js"),i18n_build_module=__webpack_require__("./packages/i18n/build-module/index.js");class UploadError extends Error{constructor({code,message,file,cause}){super(message,{cause}),Object.setPrototypeOf(this,new.target.prototype),this.code=code,this.file=file}}function validateMimeType(file,allowedTypes){if(!allowedTypes)return;const isAllowedType=allowedTypes.some((allowedType=>allowedType.includes("/")?allowedType===file.type:file.type.startsWith(`${allowedType}/`)));if(file.type&&!isAllowedType)throw new UploadError({code:"MIME_TYPE_NOT_SUPPORTED",message:(0,i18n_build_module.nv)((0,i18n_build_module.__)("%s: Sorry, this file type is not supported here."),file.name),file})}function validateMimeTypeForUser(file,wpAllowedMimeTypes){const allowedMimeTypesForUser=function getMimeTypesArray(wpMimeTypesObject){return wpMimeTypesObject?Object.entries(wpMimeTypesObject).flatMap((([extensionsString,mime])=>{const[type]=mime.split("/");return[mime,...extensionsString.split("|").map((extension=>`${type}/${extension}`))]})):null}(wpAllowedMimeTypes);if(!allowedMimeTypesForUser)return;const isAllowedMimeTypeForUser=allowedMimeTypesForUser.includes(file.type);if(file.type&&!isAllowedMimeTypeForUser)throw new UploadError({code:"MIME_TYPE_NOT_ALLOWED_FOR_USER",message:(0,i18n_build_module.nv)((0,i18n_build_module.__)("%s: Sorry, you are not allowed to upload this file type."),file.name),file})}function validateFileSize(file,maxUploadFileSize){if(file.size<=0)throw new UploadError({code:"EMPTY_FILE",message:(0,i18n_build_module.nv)((0,i18n_build_module.__)("%s: This file is empty."),file.name),file});if(maxUploadFileSize&&file.size>maxUploadFileSize)throw new UploadError({code:"SIZE_ABOVE_LIMIT",message:(0,i18n_build_module.nv)((0,i18n_build_module.__)("%s: This file exceeds the maximum upload size for this site."),file.name),file})}function addItems({files,onChange,onSuccess,onError,onBatchSuccess,additionalData,allowedTypes}){return async({select,dispatch})=>{const batchId=(0,v4.A)();for(const file of files){try{validateMimeType(file,allowedTypes),validateMimeTypeForUser(file,select.getSettings().allowedMimeTypes)}catch(error){onError?.(error);continue}try{validateFileSize(file,select.getSettings().maxUploadFileSize)}catch(error){onError?.(error);continue}dispatch.addItem({file,batchId,onChange,onSuccess,onBatchSuccess,onError,additionalData})}}}function cancelItem(id,error,silent=!1){return async({select,dispatch})=>{const item=select.getItem(id);if(item){if(item.abortController?.abort(),!silent){const{onError}=item;onError?.(null!=error?error:new Error("Upload cancelled")),!onError&&error&&console.error("Upload cancelled",error)}dispatch({type:Type.Cancel,id,error}),dispatch.removeItem(id),dispatch.revokeBlobUrls(id),item.batchId&&select.isBatchUploaded(item.batchId)&&item.onBatchSuccess?.()}}}var blob_build_module=__webpack_require__("./packages/blob/build-module/index.js");function cloneFile(file){return function renameFile(file,name){return new File([file],name,{type:file.type,lastModified:file.lastModified})}(file,file.name)}class StubFile extends File{constructor(fileName="stub-file"){super([],fileName)}}function addItem({file:fileOrBlob,batchId,onChange,onSuccess,onBatchSuccess,onError,additionalData={},sourceUrl,sourceAttachmentId,abortController,operations}){return async({dispatch})=>{const itemId=(0,v4.A)(),file=function convertBlobToFile(fileOrBlob){if(fileOrBlob instanceof File)return fileOrBlob;const ext=fileOrBlob.type.split("/")[1],mediaType="application/pdf"===fileOrBlob.type?"document":fileOrBlob.type.split("/")[0];return new File([fileOrBlob],`${mediaType}.${ext}`,{type:fileOrBlob.type})}(fileOrBlob);let blobUrl;file instanceof StubFile||(blobUrl=(0,blob_build_module.bW)(file),dispatch({type:Type.CacheBlobUrl,id:itemId,blobUrl})),dispatch({type:Type.Add,item:{id:itemId,batchId,status:ItemStatus.Processing,sourceFile:cloneFile(file),file,attachment:{url:blobUrl},additionalData:{convert_format:!1,...additionalData},onChange,onSuccess,onBatchSuccess,onError,sourceUrl,sourceAttachmentId,abortController:abortController||new AbortController,operations:Array.isArray(operations)?operations:[OperationType.Prepare]}}),dispatch.processItem(itemId)}}function processItem(id){return async({select,dispatch})=>{if(select.isPaused())return;const item=select.getItem(id),{attachment,onChange,onSuccess,onBatchSuccess,batchId}=item,operation=Array.isArray(item.operations?.[0])?item.operations[0][0]:item.operations?.[0];if(attachment&&onChange?.([attachment]),!operation)return attachment&&onSuccess?.([attachment]),dispatch.revokeBlobUrls(id),void(batchId&&select.isBatchUploaded(batchId)&&onBatchSuccess?.());if(operation)switch(dispatch({type:Type.OperationStart,id,operation}),operation){case OperationType.Prepare:dispatch.prepareItem(item.id);break;case OperationType.Upload:dispatch.uploadItem(id)}}}function pauseQueue(){return{type:Type.PauseQueue}}function resumeQueue(){return async({select,dispatch})=>{dispatch({type:Type.ResumeQueue});for(const item of select.getAllItems())dispatch.processItem(item.id)}}function removeItem(id){return async({select,dispatch})=>{select.getItem(id)&&dispatch({type:Type.Remove,id})}}function finishOperation(id,updates){return async({dispatch})=>{dispatch({type:Type.OperationFinish,id,item:updates}),dispatch.processItem(id)}}function prepareItem(id){return async({dispatch})=>{const operations=[OperationType.Upload];dispatch({type:Type.AddOperations,id,operations}),dispatch.finishOperation(id,{})}}function uploadItem(id){return async({select,dispatch})=>{const item=select.getItem(id);select.getSettings().mediaUpload({filesList:[item.file],additionalData:item.additionalData,signal:item.abortController?.signal,onFileChange:([attachment])=>{(0,blob_build_module.H8)(attachment.url)||dispatch.finishOperation(id,{attachment})},onSuccess:([attachment])=>{dispatch.finishOperation(id,{attachment})},onError:error=>{dispatch.cancelItem(id,error)}})}}function revokeBlobUrls(id){return async({select,dispatch})=>{const blobUrls=select.getBlobUrls(id);for(const blobUrl of blobUrls)(0,blob_build_module.hK)(blobUrl);dispatch({type:Type.RevokeBlobUrls,id})}}function updateSettings(settings){return{type:Type.UpdateSettings,settings}}var implementation=__webpack_require__("./packages/private-apis/build-module/implementation.js");const{lock,unlock}=(0,implementation.yf)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/upload-media"),storeConfig={reducer:store_reducer,selectors:selectors_namespaceObject,actions:actions_namespaceObject},store=(0,redux_store.A)("core/upload-media",{reducer:store_reducer,selectors:selectors_namespaceObject,actions:actions_namespaceObject});(0,build_module.kz)(store),unlock(store).registerPrivateActions(private_actions_namespaceObject),unlock(store).registerPrivateSelectors(private_selectors_namespaceObject);var react=__webpack_require__("./node_modules/react/index.js"),use_dispatch=__webpack_require__("./packages/data/build-module/components/use-dispatch/use-dispatch.js"),build_module_registry=__webpack_require__("./packages/data/build-module/registry.js"),use_registry=__webpack_require__("./packages/data/build-module/components/registry-provider/use-registry.js"),context=__webpack_require__("./packages/data/build-module/components/registry-provider/context.js"),create_higher_order_component=__webpack_require__("./packages/compose/build-module/utils/create-higher-order-component/index.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const MediaUploadProvider=(0,create_higher_order_component.f)((WrappedComponent=>({useSubRegistry=!0,...props})=>{const registry=(0,use_registry.A)(),[subRegistries]=(0,react.useState)((()=>new WeakMap)),subRegistry=function getSubRegistry(subRegistries,registry,useSubRegistry){if(!useSubRegistry)return registry;let subRegistry=subRegistries.get(registry);return subRegistry||(subRegistry=(0,build_module_registry.I)({},registry),subRegistry.registerStore("core/upload-media",storeConfig),subRegistries.set(registry,subRegistry)),subRegistry}(subRegistries,registry,useSubRegistry);return subRegistry===registry?(0,jsx_runtime.jsx)(WrappedComponent,{registry,...props}):(0,jsx_runtime.jsx)(context.Ay,{value:subRegistry,children:(0,jsx_runtime.jsx)(WrappedComponent,{registry:subRegistry,...props})})}),"withRegistryProvider")((props=>{const{children,settings}=props,{updateSettings}=unlock((0,use_dispatch.A)(store));return(0,react.useEffect)((()=>{updateSettings(settings)}),[settings,updateSettings]),(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children})})),provider=MediaUploadProvider},"./packages/url/build-module/get-filename.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function getFilename(url){let filename;if(url){try{filename=new URL(url,"http://example.com").pathname.split("/").pop()}catch(error){}return filename||void 0}}__webpack_require__.d(__webpack_exports__,{e:()=>getFilename})},"./packages/url/build-module/get-protocol.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function getProtocol(url){const matches=/^([^\s:]+:)/.exec(url);if(matches)return matches[1]}__webpack_require__.d(__webpack_exports__,{J:()=>getProtocol})},"./packages/url/build-module/is-valid-fragment.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function isValidFragment(fragment){return!!fragment&&/^#[^\s#?\/]*$/.test(fragment)}__webpack_require__.d(__webpack_exports__,{R:()=>isValidFragment})},"./packages/url/build-module/is-valid-protocol.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function isValidProtocol(protocol){return!!protocol&&/^[a-z\-.\+]+[0-9]*:$/i.test(protocol)}__webpack_require__.d(__webpack_exports__,{v:()=>isValidProtocol})},"?5580":()=>{},"?03fb":()=>{},"?6197":()=>{},"?b8cb":()=>{},"?c717":()=>{}}]); \ No newline at end of file diff --git a/4037.5be009bc.iframe.bundle.js b/4037.5be009bc.iframe.bundle.js new file mode 100644 index 00000000000000..40887491de53c4 --- /dev/null +++ b/4037.5be009bc.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[4037],{"./packages/components/build-module/range-control/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>range_control});var clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),build_module=__webpack_require__("./packages/i18n/build-module/index.js"),react=__webpack_require__("./node_modules/react/index.js"),use_instance_id=__webpack_require__("./packages/compose/build-module/hooks/use-instance-id/index.js"),use_merge_refs=__webpack_require__("./packages/compose/build-module/hooks/use-merge-refs/index.js"),base_control=__webpack_require__("./packages/components/build-module/base-control/index.js"),build_module_button=__webpack_require__("./packages/components/build-module/button/index.js"),icon=__webpack_require__("./packages/components/build-module/icon/index.js"),colors_values=__webpack_require__("./packages/components/build-module/utils/colors-values.js"),use_controlled_state=__webpack_require__("./packages/components/build-module/utils/hooks/use-controlled-state.js"),math=__webpack_require__("./packages/components/build-module/utils/math.js");function floatClamp(value,min,max){return"number"!=typeof value?null:parseFloat(`${(0,math.qE)(value,min,max)}`)}var emotion_styled_base_browser_esm=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),emotion_react_browser_esm=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),number_control=__webpack_require__("./packages/components/build-module/number-control/index.js"),rtl=__webpack_require__("./packages/components/build-module/utils/rtl.js"),config_values=__webpack_require__("./packages/components/build-module/utils/config-values.js"),space=__webpack_require__("./packages/components/build-module/utils/space.js");const rangeHeight=()=>(0,emotion_react_browser_esm.AH)({height:30,minHeight:30},"","","",""),deprecatedHeight=({__next40pxDefaultSize})=>!__next40pxDefaultSize&&(0,emotion_react_browser_esm.AH)({minHeight:30},"","","",""),Root=(0,emotion_styled_base_browser_esm.A)("div",{target:"e1epgpqk14"})("-webkit-tap-highlight-color:transparent;align-items:center;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;min-height:40px;",deprecatedHeight,";"),wrapperColor=({color=colors_values.l.ui.borderFocus})=>(0,emotion_react_browser_esm.AH)({color},"","","",""),wrapperMargin=({marks,__nextHasNoMarginBottom})=>__nextHasNoMarginBottom?"":(0,emotion_react_browser_esm.AH)({marginBottom:marks?16:void 0},"","","",""),Wrapper=(0,emotion_styled_base_browser_esm.A)("div",{shouldForwardProp:prop=>!["color","__nextHasNoMarginBottom","marks"].includes(prop),target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",wrapperColor,";",rangeHeight,";",wrapperMargin,";"),BeforeIconWrapper=(0,emotion_styled_base_browser_esm.A)("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",(0,rtl.h)({marginRight:6}),";"),AfterIconWrapper=(0,emotion_styled_base_browser_esm.A)("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",(0,rtl.h)({marginLeft:6}),";"),railBackgroundColor=({disabled,railColor})=>{let background=railColor||"";return disabled&&(background=colors_values.l.ui.backgroundDisabled),(0,emotion_react_browser_esm.AH)({background},"","","","")},Rail=(0,emotion_styled_base_browser_esm.A)("span",{target:"e1epgpqk10"})("background-color:",colors_values.l.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",config_values.A.radiusFull,";",railBackgroundColor,";"),trackBackgroundColor=({disabled,trackColor})=>{let background=trackColor||"currentColor";return disabled&&(background=colors_values.l.gray[400]),(0,emotion_react_browser_esm.AH)({background},"","","","")},Track=(0,emotion_styled_base_browser_esm.A)("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",config_values.A.radiusFull,";height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;.is-marked &{@media not ( prefers-reduced-motion ){transition:width ease 0.1s;}}",trackBackgroundColor,";"),MarksWrapper=(0,emotion_styled_base_browser_esm.A)("span",{target:"e1epgpqk8"})({name:"g5kg28",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none;margin-top:17px"}),Mark=(0,emotion_styled_base_browser_esm.A)("span",{target:"e1epgpqk7"})("position:absolute;left:0;top:-4px;height:4px;width:2px;transform:translateX( -50% );background-color:",colors_values.l.ui.background,";z-index:1;"),markLabelFill=({isFilled})=>(0,emotion_react_browser_esm.AH)({color:isFilled?colors_values.l.gray[700]:colors_values.l.gray[300]},"","","",""),MarkLabel=(0,emotion_styled_base_browser_esm.A)("span",{target:"e1epgpqk6"})("color:",colors_values.l.gray[300],";font-size:11px;position:absolute;top:8px;white-space:nowrap;",(0,rtl.h)({left:0}),";",(0,rtl.h)({transform:"translateX( -50% )"},{transform:"translateX( 50% )"}),";",markLabelFill,";"),thumbColor=({disabled})=>disabled?(0,emotion_react_browser_esm.AH)("background-color:",colors_values.l.gray[400],";","","",""):(0,emotion_react_browser_esm.AH)("background-color:",colors_values.l.theme.accent,";","","",""),ThumbWrapper=(0,emotion_styled_base_browser_esm.A)("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",12,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",12,"px;border-radius:",config_values.A.radiusRound,";z-index:3;.is-marked &{@media not ( prefers-reduced-motion ){transition:left ease 0.1s;}}",thumbColor,";",(0,rtl.h)({marginLeft:-10}),";",(0,rtl.h)({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),thumbFocus=({isFocused})=>isFocused?(0,emotion_react_browser_esm.AH)("&::before{content:' ';position:absolute;background-color:",colors_values.l.theme.accent,";opacity:0.4;border-radius:",config_values.A.radiusRound,";height:",20,"px;width:",20,"px;top:-4px;left:-4px;}","","",""):"",Thumb=(0,emotion_styled_base_browser_esm.A)("span",{target:"e1epgpqk4"})("align-items:center;border-radius:",config_values.A.radiusRound,";height:100%;outline:0;position:absolute;user-select:none;width:100%;box-shadow:",config_values.A.elevationXSmall,";",thumbColor,";",thumbFocus,";"),InputRange=(0,emotion_styled_base_browser_esm.A)("input",{target:"e1epgpqk3"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",6,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",12,"px );"),tooltipShow=({show})=>(0,emotion_react_browser_esm.AH)("display:",show?"inline-block":"none",";opacity:",show?1:0,";@media not ( prefers-reduced-motion ){transition:opacity 120ms ease,display 120ms ease allow-discrete;}@starting-style{opacity:0;}","","","");var _ref={name:"1cypxip",styles:"top:-80%"},_ref2={name:"1lr98c4",styles:"bottom:-80%"};const tooltipPosition=({position})=>"bottom"===position?_ref2:_ref,Tooltip=(0,emotion_styled_base_browser_esm.A)("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:",config_values.A.radiusSmall,";color:white;font-size:12px;min-width:32px;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;user-select:none;line-height:1.4;",tooltipShow,";",tooltipPosition,";",(0,rtl.h)({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),InputNumber=(0,emotion_styled_base_browser_esm.A)(number_control.A,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;input[type='number']&{",rangeHeight,";}",(0,rtl.h)({marginLeft:`${(0,space.x)(4)} !important`}),";"),ActionRightWrapper=(0,emotion_styled_base_browser_esm.A)("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",rangeHeight,";}",(0,rtl.h)({marginLeft:8}),";");var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const input_range=(0,react.forwardRef)((function input_range_InputRange(props,ref){const{describedBy,label,value,...otherProps}=props;return(0,jsx_runtime.jsx)(InputRange,{...otherProps,"aria-describedby":describedBy,"aria-label":label,"aria-hidden":!1,ref,tabIndex:0,type:"range",value})}));function RangeMark(props){const{className,isFilled=!1,label,style={},...otherProps}=props,classes=(0,clsx.A)("components-range-control__mark",isFilled&&"is-filled",className),labelClasses=(0,clsx.A)("components-range-control__mark-label",isFilled&&"is-filled");return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(Mark,{...otherProps,"aria-hidden":"true",className:classes,style}),label&&(0,jsx_runtime.jsx)(MarkLabel,{"aria-hidden":"true",className:labelClasses,isFilled,style,children:label})]})}function RangeRail(props){const{disabled=!1,marks=!1,min=0,max=100,step=1,value=0,...restProps}=props;return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(Rail,{disabled,...restProps}),marks&&(0,jsx_runtime.jsx)(Marks,{disabled,marks,min,max,step,value})]})}function Marks(props){const{disabled=!1,marks=!1,min=0,max=100,step:stepProp=1,value=0}=props,marksData=function useMarks({marks,min=0,max=100,step=1,value=0}){if(!marks)return[];const range=max-min;if(!Array.isArray(marks)){marks=[];const count=1+Math.round(range/step);for(;count>marks.push({value:step*marks.length+min}););}const placedMarks=[];return marks.forEach(((mark,index)=>{if(mark.valuemax)return;const key=`mark-${index}`,isFilled=mark.value<=value,offset=(mark.value-min)/range*100+"%",offsetStyle={[(0,build_module.V8)()?"right":"left"]:offset};placedMarks.push({...mark,isFilled,key,style:offsetStyle})})),placedMarks}({marks,min,max,step:"any"===stepProp?1:stepProp,value});return(0,jsx_runtime.jsx)(MarksWrapper,{"aria-hidden":"true",className:"components-range-control__marks",children:marksData.map((mark=>(0,react.createElement)(RangeMark,{...mark,key:mark.key,"aria-hidden":"true",disabled})))})}function SimpleTooltip(props){const{className,inputRef,tooltipPosition,show=!1,style={},value=0,renderTooltipContent=v=>v,zIndex=100,...restProps}=props,position=function useTooltipPosition({inputRef,tooltipPosition}){const[position,setPosition]=(0,react.useState)(),setTooltipPosition=(0,react.useCallback)((()=>{inputRef&&inputRef.current&&setPosition(tooltipPosition)}),[tooltipPosition,inputRef]);return(0,react.useEffect)((()=>{setTooltipPosition()}),[setTooltipPosition]),(0,react.useEffect)((()=>(window.addEventListener("resize",setTooltipPosition),()=>{window.removeEventListener("resize",setTooltipPosition)}))),position}({inputRef,tooltipPosition}),classes=(0,clsx.A)("components-simple-tooltip",className),styles={...style,zIndex};return(0,jsx_runtime.jsx)(Tooltip,{...restProps,"aria-hidden":"false",className:classes,position,show,role:"tooltip",style:styles,children:renderTooltipContent(value)})}var deprecated_36px_size=__webpack_require__("./packages/components/build-module/utils/deprecated-36px-size.js");const noop=()=>{};function computeResetValue({resetFallbackValue,initialPosition}){return void 0!==resetFallbackValue?Number.isNaN(resetFallbackValue)?null:resetFallbackValue:void 0!==initialPosition?Number.isNaN(initialPosition)?null:initialPosition:null}const RangeControl=(0,react.forwardRef)((function UnforwardedRangeControl(props,forwardedRef){const{__nextHasNoMarginBottom=!1,afterIcon,allowReset=!1,beforeIcon,className,color:colorProp=colors_values.l.theme.accent,currentInput,disabled=!1,help,hideLabelFromVision=!1,initialPosition,isShiftStepEnabled=!0,label,marks=!1,max=100,min=0,onBlur=noop,onChange=noop,onFocus=noop,onMouseLeave=noop,onMouseMove=noop,railColor,renderTooltipContent=v=>v,resetFallbackValue,__next40pxDefaultSize=!1,shiftStep=10,showTooltip:showTooltipProp,step=1,trackColor,value:valueProp,withInputField=!0,__shouldNotWarnDeprecated36pxSize,...otherProps}=props,[value,setValue]=function useControlledRangeValue(settings){const{min,max,value:valueProp,initial}=settings,[state,setInternalState]=(0,use_controlled_state.A)(floatClamp(valueProp,min,max),{initial:floatClamp(null!=initial?initial:null,min,max),fallback:null});return[state,(0,react.useCallback)((nextValue=>{setInternalState(null===nextValue?null:floatClamp(nextValue,min,max))}),[min,max,setInternalState])]}({min,max,value:null!=valueProp?valueProp:null,initial:initialPosition}),isResetPendent=(0,react.useRef)(!1);let hasTooltip=showTooltipProp,hasInputField=withInputField;"any"===step&&(hasTooltip=!1,hasInputField=!1);const[showTooltip,setShowTooltip]=(0,react.useState)(hasTooltip),[isFocused,setIsFocused]=(0,react.useState)(!1),inputRef=(0,react.useRef)(),isCurrentlyFocused=inputRef.current?.matches(":focus"),isThumbFocused=!disabled&&isFocused,isValueReset=null===value,inputSliderValue=isValueReset?"":void 0!==value?value:currentInput,rangeFillValue=isValueReset?(max-min)/2+min:value,fillValue=isValueReset?50:(value-min)/(max-min)*100,fillValueOffset=`${(0,math.qE)(fillValue,0,100)}%`,classes=(0,clsx.A)("components-range-control",className),wrapperClasses=(0,clsx.A)("components-range-control__wrapper",!!marks&&"is-marked"),id=(0,use_instance_id.A)(UnforwardedRangeControl,"inspector-range-control"),describedBy=help?`${id}__help`:void 0,enableTooltip=!1!==hasTooltip&&Number.isFinite(value),handleOnReset=()=>{const resetValue=Number.isNaN(resetFallbackValue)?null:null!=resetFallbackValue?resetFallbackValue:null;setValue(resetValue),onChange(null!=resetValue?resetValue:void 0)},offsetStyle={[(0,build_module.V8)()?"right":"left"]:fillValueOffset};return(0,deprecated_36px_size.M)({componentName:"RangeControl",__next40pxDefaultSize,size:void 0,__shouldNotWarnDeprecated36pxSize}),(0,jsx_runtime.jsx)(base_control.Ay,{__nextHasNoMarginBottom,__associatedWPComponentName:"RangeControl",className:classes,label,hideLabelFromVision,id:`${id}`,help,children:(0,jsx_runtime.jsxs)(Root,{className:"components-range-control__root",__next40pxDefaultSize,children:[beforeIcon&&(0,jsx_runtime.jsx)(BeforeIconWrapper,{children:(0,jsx_runtime.jsx)(icon.A,{icon:beforeIcon})}),(0,jsx_runtime.jsxs)(Wrapper,{__nextHasNoMarginBottom,className:wrapperClasses,color:colorProp,marks:!!marks,children:[(0,jsx_runtime.jsx)(input_range,{...otherProps,className:"components-range-control__slider",describedBy,disabled,id:`${id}`,label,max,min,onBlur:event=>{onBlur(event),setIsFocused(!1),setShowTooltip(!1)},onChange:event=>{const nextValue=parseFloat(event.target.value);setValue(nextValue),onChange(nextValue)},onFocus:event=>{onFocus(event),setIsFocused(!0),setShowTooltip(!0)},onMouseMove,onMouseLeave,ref:(0,use_merge_refs.A)([inputRef,forwardedRef]),step,value:null!=inputSliderValue?inputSliderValue:void 0}),(0,jsx_runtime.jsx)(RangeRail,{"aria-hidden":!0,disabled,marks,max,min,railColor,step,value:rangeFillValue}),(0,jsx_runtime.jsx)(Track,{"aria-hidden":!0,className:"components-range-control__track",disabled,style:{width:fillValueOffset},trackColor}),(0,jsx_runtime.jsx)(ThumbWrapper,{className:"components-range-control__thumb-wrapper",style:offsetStyle,disabled,children:(0,jsx_runtime.jsx)(Thumb,{"aria-hidden":!0,isFocused:isThumbFocused,disabled})}),enableTooltip&&(0,jsx_runtime.jsx)(SimpleTooltip,{className:"components-range-control__tooltip",inputRef,tooltipPosition:"bottom",renderTooltipContent,show:isCurrentlyFocused||showTooltip,style:offsetStyle,value})]}),afterIcon&&(0,jsx_runtime.jsx)(AfterIconWrapper,{children:(0,jsx_runtime.jsx)(icon.A,{icon:afterIcon})}),hasInputField&&(0,jsx_runtime.jsx)(InputNumber,{"aria-label":label,className:"components-range-control__number",disabled,inputMode:"decimal",isShiftStepEnabled,max,min,onBlur:()=>{isResetPendent.current&&(handleOnReset(),isResetPendent.current=!1)},onChange:next=>{let nextValue=parseFloat(next);setValue(nextValue),isNaN(nextValue)?allowReset&&(isResetPendent.current=!0):((nextValuemax)&&(nextValue=floatClamp(nextValue,min,max)),onChange(nextValue),isResetPendent.current=!1)},shiftStep,size:__next40pxDefaultSize?"__unstable-large":"default",__unstableInputWidth:__next40pxDefaultSize?(0,space.x)(20):(0,space.x)(16),step,value:inputSliderValue,__shouldNotWarnDeprecated36pxSize:!0}),allowReset&&(0,jsx_runtime.jsx)(ActionRightWrapper,{children:(0,jsx_runtime.jsx)(build_module_button.Ay,{className:"components-range-control__reset",accessibleWhenDisabled:!disabled,disabled:disabled||value===computeResetValue({resetFallbackValue,initialPosition}),variant:"secondary",size:"small",onClick:handleOnReset,children:(0,build_module.__)("Reset")})})]})})})),range_control=RangeControl}}]); \ No newline at end of file diff --git a/4061.4e278f1e.iframe.bundle.js b/4061.4e278f1e.iframe.bundle.js new file mode 100644 index 00000000000000..07d30985118bad --- /dev/null +++ b/4061.4e278f1e.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[4061],{"./packages/compose/build-module/hooks/use-dragging/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>useDragging});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_use_isomorphic_layout_effect__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/compose/build-module/hooks/use-isomorphic-layout-effect/index.js");function useDragging({onDragStart,onDragMove,onDragEnd}){const[isDragging,setIsDragging]=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),eventsRef=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)({onDragStart,onDragMove,onDragEnd});(0,_use_isomorphic_layout_effect__WEBPACK_IMPORTED_MODULE_1__.A)((()=>{eventsRef.current.onDragStart=onDragStart,eventsRef.current.onDragMove=onDragMove,eventsRef.current.onDragEnd=onDragEnd}),[onDragStart,onDragMove,onDragEnd]);const onMouseMove=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useCallback)((event=>eventsRef.current.onDragMove&&eventsRef.current.onDragMove(event)),[]),endDrag=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useCallback)((event=>{eventsRef.current.onDragEnd&&eventsRef.current.onDragEnd(event),document.removeEventListener("mousemove",onMouseMove),document.removeEventListener("mouseup",endDrag),setIsDragging(!1)}),[]),startDrag=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useCallback)((event=>{eventsRef.current.onDragStart&&eventsRef.current.onDragStart(event),document.addEventListener("mousemove",onMouseMove),document.addEventListener("mouseup",endDrag),setIsDragging(!0)}),[]);return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>()=>{isDragging&&(document.removeEventListener("mousemove",onMouseMove),document.removeEventListener("mouseup",endDrag))}),[isDragging]),{startDrag,endDrag,isDragging}}},"./packages/compose/build-module/hooks/use-isomorphic-layout-effect/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const __WEBPACK_DEFAULT_EXPORT__="undefined"!=typeof window?_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect},"./packages/components/src/angle-picker-control/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{x:()=>AnglePickerControl,A:()=>angle_picker_control});var clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),react=__webpack_require__("./node_modules/react/index.js"),build_module=__webpack_require__("./packages/i18n/build-module/index.js"),component=__webpack_require__("./packages/components/src/flex/flex/component.tsx"),flex_block_component=__webpack_require__("./packages/components/src/flex/flex-block/component.tsx"),spacer_component=__webpack_require__("./packages/components/src/spacer/component.tsx"),number_control=__webpack_require__("./packages/components/src/number-control/index.tsx"),use_dragging=__webpack_require__("./packages/compose/build-module/hooks/use-dragging/index.js"),emotion_styled_base_browser_esm=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),colors_values=__webpack_require__("./packages/components/src/utils/colors-values.js"),space=__webpack_require__("./packages/components/src/utils/space.ts"),text_component=__webpack_require__("./packages/components/src/text/component.tsx"),config_values=__webpack_require__("./packages/components/src/utils/config-values.js");const CircleRoot=(0,emotion_styled_base_browser_esm.A)("div",{target:"eln3bjz3"})("border-radius:",config_values.A.radiusRound,";border:",config_values.A.borderWidth," solid ",colors_values.l.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;:active{cursor:grabbing;}"),CircleIndicatorWrapper=(0,emotion_styled_base_browser_esm.A)("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),CircleIndicator=(0,emotion_styled_base_browser_esm.A)("div",{target:"eln3bjz1"})("background:",colors_values.l.theme.accent,";border-radius:",config_values.A.radiusRound,";box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:",6,"px;height:",6,"px;"),UnitText=(0,emotion_styled_base_browser_esm.A)(text_component.A,{target:"eln3bjz0"})("color:",colors_values.l.theme.accent,";margin-right:",(0,space.x)(3),";");try{CircleRoot.displayName="CircleRoot",CircleRoot.__docgenInfo={description:"",displayName:"CircleRoot",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"Theme"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/angle-picker-control/styles/angle-picker-control-styles.tsx#CircleRoot"]={docgenInfo:CircleRoot.__docgenInfo,name:"CircleRoot",path:"packages/components/src/angle-picker-control/styles/angle-picker-control-styles.tsx#CircleRoot"})}catch(__react_docgen_typescript_loader_error){}try{CircleIndicatorWrapper.displayName="CircleIndicatorWrapper",CircleIndicatorWrapper.__docgenInfo={description:"",displayName:"CircleIndicatorWrapper",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"Theme"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/angle-picker-control/styles/angle-picker-control-styles.tsx#CircleIndicatorWrapper"]={docgenInfo:CircleIndicatorWrapper.__docgenInfo,name:"CircleIndicatorWrapper",path:"packages/components/src/angle-picker-control/styles/angle-picker-control-styles.tsx#CircleIndicatorWrapper"})}catch(__react_docgen_typescript_loader_error){}try{CircleIndicator.displayName="CircleIndicator",CircleIndicator.__docgenInfo={description:"",displayName:"CircleIndicator",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"Theme"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/angle-picker-control/styles/angle-picker-control-styles.tsx#CircleIndicator"]={docgenInfo:CircleIndicator.__docgenInfo,name:"CircleIndicator",path:"packages/components/src/angle-picker-control/styles/angle-picker-control-styles.tsx#CircleIndicator"})}catch(__react_docgen_typescript_loader_error){}try{UnitText.displayName="UnitText",UnitText.__docgenInfo={description:"",displayName:"UnitText",props:{align:{defaultValue:null,description:"Adjusts the text alignment.",name:"align",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"inherit"'},{value:'"end"'},{value:'"start"'},{value:'"initial"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'},{value:'"-moz-initial"'},{value:'"revert"'},{value:'"revert-layer"'},{value:'"unset"'},{value:'"match-parent"'}]}},adjustLineHeightForInnerControls:{defaultValue:null,description:"Automatically calculate the appropriate line-height value for contents that render text and Control elements (e.g. `TextInput`).",name:"adjustLineHeightForInnerControls",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"large"'},{value:'"medium"'},{value:'"xSmall"'}]}},color:{defaultValue:null,description:"Adjusts the text color.",name:"color",required:!1,type:{name:"Color"}},display:{defaultValue:null,description:"Adjusts the CSS display.",name:"display",required:!1,type:{name:"Display"}},isDestructive:{defaultValue:{value:"false"},description:"Renders a destructive color.",name:"isDestructive",required:!1,type:{name:"boolean"}},highlightEscape:{defaultValue:{value:"false"},description:"Escape characters in `highlightWords` which are meaningful in regular expressions.",name:"highlightEscape",required:!1,type:{name:"boolean"}},highlightCaseSensitive:{defaultValue:{value:"false"},description:"Determines if `highlightWords` should be case sensitive.",name:"highlightCaseSensitive",required:!1,type:{name:"boolean"}},highlightSanitize:{defaultValue:null,description:"Array of search words. String search terms are automatically cast to RegExps unless `highlightEscape` is true.",name:"highlightSanitize",required:!1,type:{name:"(text: string) => string"}},isBlock:{defaultValue:{value:"false"},description:"Sets `Text` to have `display: block`. Note: text truncation only works\nwhen `isBlock` is `false`.",name:"isBlock",required:!1,type:{name:"boolean"}},lineHeight:{defaultValue:null,description:"Adjusts all text line-height based on the typography system.",name:"lineHeight",required:!1,type:{name:"LineHeight"}},optimizeReadabilityFor:{defaultValue:null,description:"The `Text` color can be adapted to a background color for optimal readability. `optimizeReadabilityFor` can accept CSS variables, in addition to standard CSS color values (e.g. Hex, RGB, HSL, etc...).",name:"optimizeReadabilityFor",required:!1,type:{name:"Color"}},size:{defaultValue:null,description:"Adjusts text size based on the typography system. `Text` can render a wide range of font sizes, which are automatically calculated and adapted to the typography system. The `size` value can be a system preset, a `number`, or a custom unit value (`string`) such as `30em`.",name:"size",required:!1,type:{name:"string | number | (string & {})"}},truncate:{defaultValue:{value:"false"},description:"Enables text truncation. When `truncate` is set, we are able to truncate the long text in a variety of ways. Note: text truncation won't work if the `isBlock` property is set to `true`",name:"truncate",required:!1,type:{name:"boolean"}},upperCase:{defaultValue:{value:"false"},description:"Uppercases the text content.",name:"upperCase",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"Adjusts style variation of the text.",name:"variant",required:!1,type:{name:'"muted"'}},weight:{defaultValue:{value:"'normal'"},description:"Adjusts font-weight of the text.",name:"weight",required:!1,type:{name:"FontWeight | TextWeight"}},letterSpacing:{defaultValue:null,description:"Adjusts letter-spacing of the text.",name:"letterSpacing",required:!1,type:{name:"LetterSpacing"}},highlightWords:{defaultValue:null,description:"Letters or words within `Text` can be highlighted using `highlightWords`.",name:"highlightWords",required:!1,type:{name:"string[]"}},ellipsis:{defaultValue:{value:"'…'"},description:"The ellipsis string when truncating the text by the `limit` prop's value.",name:"ellipsis",required:!1,type:{name:"string"}},ellipsizeMode:{defaultValue:{value:"'auto'"},description:"Determines where to truncate. For example, we can truncate text right in\nthe middle. To do this, we need to set `ellipsizeMode` to `middle` and a\ntext `limit`.\n\n* `auto`: Trims content at the end automatically without a `limit`.\n* `head`: Trims content at the beginning. Requires a `limit`.\n* `middle`: Trims content in the middle. Requires a `limit`.\n* `tail`: Trims content at the end. Requires a `limit`.",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"head"'},{value:'"auto"'},{value:'"middle"'},{value:'"tail"'}]}},limit:{defaultValue:{value:"0"},description:"Determines the max number of characters to be displayed before the rest\nof the text gets truncated. Requires `ellipsizeMode` to assume values\ndifferent from `auto` and `none`.",name:"limit",required:!1,type:{name:"number"}},numberOfLines:{defaultValue:{value:"0"},description:"Clamps the text content to the specified `numberOfLines`, adding an\nellipsis at the end. Note: this feature ignores the value of the\n`ellipsis` prop and always displays the default `…` ellipsis.",name:"numberOfLines",required:!1,type:{name:"number"}},children:{defaultValue:null,description:"The children elements.\n\nNote: text truncation will be attempted only if the `children` are either\nof type `string` or `number`. In any other scenarios, the component will\nnot attempt to truncate the text, and will pass through the `children`.",name:"children",required:!0,type:{name:"ReactNode"}},as:{defaultValue:null,description:"The HTML element or React component to render the component as.",name:"as",required:!1,type:{name:"enum",value:[{value:'"symbol"'},{value:'"object"'},{value:'"select"'},{value:'"a"'},{value:'"abbr"'},{value:'"address"'},{value:'"area"'},{value:'"article"'},{value:'"aside"'},{value:'"audio"'},{value:'"b"'},{value:'"base"'},{value:'"bdi"'},{value:'"bdo"'},{value:'"big"'},{value:'"blockquote"'},{value:'"body"'},{value:'"br"'},{value:'"button"'},{value:'"canvas"'},{value:'"caption"'},{value:'"center"'},{value:'"cite"'},{value:'"code"'},{value:'"col"'},{value:'"colgroup"'},{value:'"data"'},{value:'"datalist"'},{value:'"dd"'},{value:'"del"'},{value:'"details"'},{value:'"dfn"'},{value:'"dialog"'},{value:'"div"'},{value:'"dl"'},{value:'"dt"'},{value:'"em"'},{value:'"embed"'},{value:'"fieldset"'},{value:'"figcaption"'},{value:'"figure"'},{value:'"footer"'},{value:'"form"'},{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'},{value:'"head"'},{value:'"header"'},{value:'"hgroup"'},{value:'"hr"'},{value:'"html"'},{value:'"i"'},{value:'"iframe"'},{value:'"img"'},{value:'"input"'},{value:'"ins"'},{value:'"kbd"'},{value:'"keygen"'},{value:'"label"'},{value:'"legend"'},{value:'"li"'},{value:'"link"'},{value:'"main"'},{value:'"map"'},{value:'"mark"'},{value:'"menu"'},{value:'"menuitem"'},{value:'"meta"'},{value:'"meter"'},{value:'"nav"'},{value:'"noindex"'},{value:'"noscript"'},{value:'"ol"'},{value:'"optgroup"'},{value:'"option"'},{value:'"output"'},{value:'"p"'},{value:'"param"'},{value:'"picture"'},{value:'"pre"'},{value:'"progress"'},{value:'"q"'},{value:'"rp"'},{value:'"rt"'},{value:'"ruby"'},{value:'"s"'},{value:'"samp"'},{value:'"search"'},{value:'"slot"'},{value:'"script"'},{value:'"section"'},{value:'"small"'},{value:'"source"'},{value:'"span"'},{value:'"strong"'},{value:'"style"'},{value:'"sub"'},{value:'"summary"'},{value:'"sup"'},{value:'"table"'},{value:'"template"'},{value:'"tbody"'},{value:'"td"'},{value:'"textarea"'},{value:'"tfoot"'},{value:'"th"'},{value:'"thead"'},{value:'"time"'},{value:'"title"'},{value:'"tr"'},{value:'"track"'},{value:'"u"'},{value:'"ul"'},{value:'"var"'},{value:'"video"'},{value:'"wbr"'},{value:'"webview"'},{value:'"svg"'},{value:'"animate"'},{value:'"animateMotion"'},{value:'"animateTransform"'},{value:'"circle"'},{value:'"clipPath"'},{value:'"defs"'},{value:'"desc"'},{value:'"ellipse"'},{value:'"feBlend"'},{value:'"feColorMatrix"'},{value:'"feComponentTransfer"'},{value:'"feComposite"'},{value:'"feConvolveMatrix"'},{value:'"feDiffuseLighting"'},{value:'"feDisplacementMap"'},{value:'"feDistantLight"'},{value:'"feDropShadow"'},{value:'"feFlood"'},{value:'"feFuncA"'},{value:'"feFuncB"'},{value:'"feFuncG"'},{value:'"feFuncR"'},{value:'"feGaussianBlur"'},{value:'"feImage"'},{value:'"feMerge"'},{value:'"feMergeNode"'},{value:'"feMorphology"'},{value:'"feOffset"'},{value:'"fePointLight"'},{value:'"feSpecularLighting"'},{value:'"feSpotLight"'},{value:'"feTile"'},{value:'"feTurbulence"'},{value:'"filter"'},{value:'"foreignObject"'},{value:'"g"'},{value:'"image"'},{value:'"line"'},{value:'"linearGradient"'},{value:'"marker"'},{value:'"mask"'},{value:'"metadata"'},{value:'"mpath"'},{value:'"path"'},{value:'"pattern"'},{value:'"polygon"'},{value:'"polyline"'},{value:'"radialGradient"'},{value:'"rect"'},{value:'"set"'},{value:'"stop"'},{value:'"switch"'},{value:'"text"'},{value:'"textPath"'},{value:'"tspan"'},{value:'"use"'},{value:'"view"'}]}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"Theme"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/angle-picker-control/styles/angle-picker-control-styles.tsx#UnitText"]={docgenInfo:UnitText.__docgenInfo,name:"UnitText",path:"packages/components/src/angle-picker-control/styles/angle-picker-control-styles.tsx#UnitText"})}catch(__react_docgen_typescript_loader_error){}var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function AngleCircle({value,onChange,...props}){const angleCircleRef=(0,react.useRef)(null),angleCircleCenterRef=(0,react.useRef)(),previousCursorValueRef=(0,react.useRef)(),changeAngleToPosition=event=>{if(void 0!==event&&(event.preventDefault(),event.target?.focus(),void 0!==angleCircleCenterRef.current&&void 0!==onChange)){const{x:centerX,y:centerY}=angleCircleCenterRef.current;onChange(function getAngle(centerX,centerY,pointX,pointY){const y=pointY-centerY,x=pointX-centerX,angleInRadians=Math.atan2(y,x),angleInDeg=Math.round(angleInRadians*(180/Math.PI))+90;if(angleInDeg<0)return 360+angleInDeg;return angleInDeg}(centerX,centerY,event.clientX,event.clientY))}},{startDrag,isDragging}=(0,use_dragging.A)({onDragStart:event=>{(()=>{if(null===angleCircleRef.current)return;const rect=angleCircleRef.current.getBoundingClientRect();angleCircleCenterRef.current={x:rect.x+rect.width/2,y:rect.y+rect.height/2}})(),changeAngleToPosition(event)},onDragMove:changeAngleToPosition,onDragEnd:changeAngleToPosition});return(0,react.useEffect)((()=>{isDragging?(void 0===previousCursorValueRef.current&&(previousCursorValueRef.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=previousCursorValueRef.current||"",previousCursorValueRef.current=void 0)}),[isDragging]),(0,jsx_runtime.jsx)(CircleRoot,{ref:angleCircleRef,onMouseDown:startDrag,className:"components-angle-picker-control__angle-circle",...props,children:(0,jsx_runtime.jsx)(CircleIndicatorWrapper,{style:value?{transform:`rotate(${value}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1,children:(0,jsx_runtime.jsx)(CircleIndicator,{className:"components-angle-picker-control__angle-circle-indicator"})})})}const angle_circle=AngleCircle;try{AngleCircle.displayName="AngleCircle",AngleCircle.__docgenInfo={description:"",displayName:"AngleCircle",props:{onChange:{defaultValue:null,description:"A function that receives the new value of the input.",name:"onChange",required:!0,type:{name:"(value: number) => void"}},value:{defaultValue:null,description:"The current value of the input. The value represents an angle in degrees\nand should be a value between 0 and 360.",name:"value",required:!0,type:{name:"string | number"}},as:{defaultValue:null,description:"The HTML element or React component to render the component as.",name:"as",required:!1,type:{name:"enum",value:[{value:'"symbol"'},{value:'"object"'},{value:'"select"'},{value:'"a"'},{value:'"abbr"'},{value:'"address"'},{value:'"area"'},{value:'"article"'},{value:'"aside"'},{value:'"audio"'},{value:'"b"'},{value:'"base"'},{value:'"bdi"'},{value:'"bdo"'},{value:'"big"'},{value:'"blockquote"'},{value:'"body"'},{value:'"br"'},{value:'"button"'},{value:'"canvas"'},{value:'"caption"'},{value:'"center"'},{value:'"cite"'},{value:'"code"'},{value:'"col"'},{value:'"colgroup"'},{value:'"data"'},{value:'"datalist"'},{value:'"dd"'},{value:'"del"'},{value:'"details"'},{value:'"dfn"'},{value:'"dialog"'},{value:'"div"'},{value:'"dl"'},{value:'"dt"'},{value:'"em"'},{value:'"embed"'},{value:'"fieldset"'},{value:'"figcaption"'},{value:'"figure"'},{value:'"footer"'},{value:'"form"'},{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'},{value:'"head"'},{value:'"header"'},{value:'"hgroup"'},{value:'"hr"'},{value:'"html"'},{value:'"i"'},{value:'"iframe"'},{value:'"img"'},{value:'"input"'},{value:'"ins"'},{value:'"kbd"'},{value:'"keygen"'},{value:'"label"'},{value:'"legend"'},{value:'"li"'},{value:'"link"'},{value:'"main"'},{value:'"map"'},{value:'"mark"'},{value:'"menu"'},{value:'"menuitem"'},{value:'"meta"'},{value:'"meter"'},{value:'"nav"'},{value:'"noindex"'},{value:'"noscript"'},{value:'"ol"'},{value:'"optgroup"'},{value:'"option"'},{value:'"output"'},{value:'"p"'},{value:'"param"'},{value:'"picture"'},{value:'"pre"'},{value:'"progress"'},{value:'"q"'},{value:'"rp"'},{value:'"rt"'},{value:'"ruby"'},{value:'"s"'},{value:'"samp"'},{value:'"search"'},{value:'"slot"'},{value:'"script"'},{value:'"section"'},{value:'"small"'},{value:'"source"'},{value:'"span"'},{value:'"strong"'},{value:'"style"'},{value:'"sub"'},{value:'"summary"'},{value:'"sup"'},{value:'"table"'},{value:'"template"'},{value:'"tbody"'},{value:'"td"'},{value:'"textarea"'},{value:'"tfoot"'},{value:'"th"'},{value:'"thead"'},{value:'"time"'},{value:'"title"'},{value:'"tr"'},{value:'"track"'},{value:'"u"'},{value:'"ul"'},{value:'"var"'},{value:'"video"'},{value:'"wbr"'},{value:'"webview"'},{value:'"svg"'},{value:'"animate"'},{value:'"animateMotion"'},{value:'"animateTransform"'},{value:'"circle"'},{value:'"clipPath"'},{value:'"defs"'},{value:'"desc"'},{value:'"ellipse"'},{value:'"feBlend"'},{value:'"feColorMatrix"'},{value:'"feComponentTransfer"'},{value:'"feComposite"'},{value:'"feConvolveMatrix"'},{value:'"feDiffuseLighting"'},{value:'"feDisplacementMap"'},{value:'"feDistantLight"'},{value:'"feDropShadow"'},{value:'"feFlood"'},{value:'"feFuncA"'},{value:'"feFuncB"'},{value:'"feFuncG"'},{value:'"feFuncR"'},{value:'"feGaussianBlur"'},{value:'"feImage"'},{value:'"feMerge"'},{value:'"feMergeNode"'},{value:'"feMorphology"'},{value:'"feOffset"'},{value:'"fePointLight"'},{value:'"feSpecularLighting"'},{value:'"feSpotLight"'},{value:'"feTile"'},{value:'"feTurbulence"'},{value:'"filter"'},{value:'"foreignObject"'},{value:'"g"'},{value:'"image"'},{value:'"line"'},{value:'"linearGradient"'},{value:'"marker"'},{value:'"mask"'},{value:'"metadata"'},{value:'"mpath"'},{value:'"path"'},{value:'"pattern"'},{value:'"polygon"'},{value:'"polyline"'},{value:'"radialGradient"'},{value:'"rect"'},{value:'"set"'},{value:'"stop"'},{value:'"switch"'},{value:'"text"'},{value:'"textPath"'},{value:'"tspan"'},{value:'"use"'},{value:'"view"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/angle-picker-control/angle-circle.tsx#AngleCircle"]={docgenInfo:AngleCircle.__docgenInfo,name:"AngleCircle",path:"packages/components/src/angle-picker-control/angle-circle.tsx#AngleCircle"})}catch(__react_docgen_typescript_loader_error){}const AnglePickerControl=(0,react.forwardRef)((function UnforwardedAnglePickerControl(props,ref){const{className,label=(0,build_module.__)("Angle"),onChange,value,...restProps}=props,classes=(0,clsx.A)("components-angle-picker-control",className),unitText=(0,jsx_runtime.jsx)(UnitText,{children:"°"}),[prefixedUnitText,suffixedUnitText]=(0,build_module.V8)()?[unitText,null]:[null,unitText];return(0,jsx_runtime.jsxs)(component.A,{...restProps,ref,className:classes,gap:2,children:[(0,jsx_runtime.jsx)(flex_block_component.A,{children:(0,jsx_runtime.jsx)(number_control.A,{__next40pxDefaultSize:!0,label,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:unprocessedValue=>{if(void 0===onChange)return;const inputValue=void 0!==unprocessedValue&&""!==unprocessedValue?parseInt(unprocessedValue,10):0;onChange(inputValue)},step:"1",value,spinControls:"none",prefix:prefixedUnitText,suffix:suffixedUnitText})}),(0,jsx_runtime.jsx)(spacer_component.A,{marginBottom:"1",marginTop:"auto",children:(0,jsx_runtime.jsx)(angle_circle,{"aria-hidden":"true",value,onChange})})]})})),angle_picker_control=AnglePickerControl;try{AnglePickerControl.displayName="AnglePickerControl",AnglePickerControl.__docgenInfo={description:"`AnglePickerControl` is a React component to render a UI that allows users to\npick an angle. Users can choose an angle in a visual UI with the mouse by\ndragging an angle indicator inside a circle or by directly inserting the\ndesired angle in a text field.\n\n```jsx\nimport { useState } from '@wordpress/element';\nimport { AnglePickerControl } from '@wordpress/components';\n\nfunction Example() {\n const [ angle, setAngle ] = useState( 0 );\n return (\n \n );\n}\n```",displayName:"AnglePickerControl",props:{__nextHasNoMarginBottom:{defaultValue:{value:"false"},description:"Start opting into the new margin-free styles that will become the default\nin a future version.\n@deprecated Default behavior since WP 6.5. Prop can be safely removed.\n@ignore",name:"__nextHasNoMarginBottom",required:!1,type:{name:"boolean"}},label:{defaultValue:{value:"__( 'Angle' )"},description:"Label to use for the angle picker.",name:"label",required:!1,type:{name:"string"}},onChange:{defaultValue:null,description:"A function that receives the new value of the input.",name:"onChange",required:!0,type:{name:"(value: number) => void"}},value:{defaultValue:null,description:"The current value of the input. The value represents an angle in degrees\nand should be a value between 0 and 360.",name:"value",required:!0,type:{name:"string | number"}},as:{defaultValue:null,description:"The HTML element or React component to render the component as.",name:"as",required:!1,type:{name:"enum",value:[{value:'"symbol"'},{value:'"object"'},{value:'"select"'},{value:'"a"'},{value:'"abbr"'},{value:'"address"'},{value:'"area"'},{value:'"article"'},{value:'"aside"'},{value:'"audio"'},{value:'"b"'},{value:'"base"'},{value:'"bdi"'},{value:'"bdo"'},{value:'"big"'},{value:'"blockquote"'},{value:'"body"'},{value:'"br"'},{value:'"button"'},{value:'"canvas"'},{value:'"caption"'},{value:'"center"'},{value:'"cite"'},{value:'"code"'},{value:'"col"'},{value:'"colgroup"'},{value:'"data"'},{value:'"datalist"'},{value:'"dd"'},{value:'"del"'},{value:'"details"'},{value:'"dfn"'},{value:'"dialog"'},{value:'"div"'},{value:'"dl"'},{value:'"dt"'},{value:'"em"'},{value:'"embed"'},{value:'"fieldset"'},{value:'"figcaption"'},{value:'"figure"'},{value:'"footer"'},{value:'"form"'},{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'},{value:'"head"'},{value:'"header"'},{value:'"hgroup"'},{value:'"hr"'},{value:'"html"'},{value:'"i"'},{value:'"iframe"'},{value:'"img"'},{value:'"input"'},{value:'"ins"'},{value:'"kbd"'},{value:'"keygen"'},{value:'"label"'},{value:'"legend"'},{value:'"li"'},{value:'"link"'},{value:'"main"'},{value:'"map"'},{value:'"mark"'},{value:'"menu"'},{value:'"menuitem"'},{value:'"meta"'},{value:'"meter"'},{value:'"nav"'},{value:'"noindex"'},{value:'"noscript"'},{value:'"ol"'},{value:'"optgroup"'},{value:'"option"'},{value:'"output"'},{value:'"p"'},{value:'"param"'},{value:'"picture"'},{value:'"pre"'},{value:'"progress"'},{value:'"q"'},{value:'"rp"'},{value:'"rt"'},{value:'"ruby"'},{value:'"s"'},{value:'"samp"'},{value:'"search"'},{value:'"slot"'},{value:'"script"'},{value:'"section"'},{value:'"small"'},{value:'"source"'},{value:'"span"'},{value:'"strong"'},{value:'"style"'},{value:'"sub"'},{value:'"summary"'},{value:'"sup"'},{value:'"table"'},{value:'"template"'},{value:'"tbody"'},{value:'"td"'},{value:'"textarea"'},{value:'"tfoot"'},{value:'"th"'},{value:'"thead"'},{value:'"time"'},{value:'"title"'},{value:'"tr"'},{value:'"track"'},{value:'"u"'},{value:'"ul"'},{value:'"var"'},{value:'"video"'},{value:'"wbr"'},{value:'"webview"'},{value:'"svg"'},{value:'"animate"'},{value:'"animateMotion"'},{value:'"animateTransform"'},{value:'"circle"'},{value:'"clipPath"'},{value:'"defs"'},{value:'"desc"'},{value:'"ellipse"'},{value:'"feBlend"'},{value:'"feColorMatrix"'},{value:'"feComponentTransfer"'},{value:'"feComposite"'},{value:'"feConvolveMatrix"'},{value:'"feDiffuseLighting"'},{value:'"feDisplacementMap"'},{value:'"feDistantLight"'},{value:'"feDropShadow"'},{value:'"feFlood"'},{value:'"feFuncA"'},{value:'"feFuncB"'},{value:'"feFuncG"'},{value:'"feFuncR"'},{value:'"feGaussianBlur"'},{value:'"feImage"'},{value:'"feMerge"'},{value:'"feMergeNode"'},{value:'"feMorphology"'},{value:'"feOffset"'},{value:'"fePointLight"'},{value:'"feSpecularLighting"'},{value:'"feSpotLight"'},{value:'"feTile"'},{value:'"feTurbulence"'},{value:'"filter"'},{value:'"foreignObject"'},{value:'"g"'},{value:'"image"'},{value:'"line"'},{value:'"linearGradient"'},{value:'"marker"'},{value:'"mask"'},{value:'"metadata"'},{value:'"mpath"'},{value:'"path"'},{value:'"pattern"'},{value:'"polygon"'},{value:'"polyline"'},{value:'"radialGradient"'},{value:'"rect"'},{value:'"set"'},{value:'"stop"'},{value:'"switch"'},{value:'"text"'},{value:'"textPath"'},{value:'"tspan"'},{value:'"use"'},{value:'"view"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/angle-picker-control/index.tsx#AnglePickerControl"]={docgenInfo:AnglePickerControl.__docgenInfo,name:"AnglePickerControl",path:"packages/components/src/angle-picker-control/index.tsx#AnglePickerControl"})}catch(__react_docgen_typescript_loader_error){}try{anglepickercontrol.displayName="anglepickercontrol",anglepickercontrol.__docgenInfo={description:"`AnglePickerControl` is a React component to render a UI that allows users to\npick an angle. Users can choose an angle in a visual UI with the mouse by\ndragging an angle indicator inside a circle or by directly inserting the\ndesired angle in a text field.\n\n```jsx\nimport { useState } from '@wordpress/element';\nimport { AnglePickerControl } from '@wordpress/components';\n\nfunction Example() {\n const [ angle, setAngle ] = useState( 0 );\n return (\n \n );\n}\n```",displayName:"anglepickercontrol",props:{__nextHasNoMarginBottom:{defaultValue:{value:"false"},description:"Start opting into the new margin-free styles that will become the default\nin a future version.\n@deprecated Default behavior since WP 6.5. Prop can be safely removed.\n@ignore",name:"__nextHasNoMarginBottom",required:!1,type:{name:"boolean"}},label:{defaultValue:{value:"__( 'Angle' )"},description:"Label to use for the angle picker.",name:"label",required:!1,type:{name:"string"}},onChange:{defaultValue:null,description:"A function that receives the new value of the input.",name:"onChange",required:!0,type:{name:"(value: number) => void"}},value:{defaultValue:null,description:"The current value of the input. The value represents an angle in degrees\nand should be a value between 0 and 360.",name:"value",required:!0,type:{name:"string | number"}},as:{defaultValue:null,description:"The HTML element or React component to render the component as.",name:"as",required:!1,type:{name:"enum",value:[{value:'"symbol"'},{value:'"object"'},{value:'"select"'},{value:'"a"'},{value:'"abbr"'},{value:'"address"'},{value:'"area"'},{value:'"article"'},{value:'"aside"'},{value:'"audio"'},{value:'"b"'},{value:'"base"'},{value:'"bdi"'},{value:'"bdo"'},{value:'"big"'},{value:'"blockquote"'},{value:'"body"'},{value:'"br"'},{value:'"button"'},{value:'"canvas"'},{value:'"caption"'},{value:'"center"'},{value:'"cite"'},{value:'"code"'},{value:'"col"'},{value:'"colgroup"'},{value:'"data"'},{value:'"datalist"'},{value:'"dd"'},{value:'"del"'},{value:'"details"'},{value:'"dfn"'},{value:'"dialog"'},{value:'"div"'},{value:'"dl"'},{value:'"dt"'},{value:'"em"'},{value:'"embed"'},{value:'"fieldset"'},{value:'"figcaption"'},{value:'"figure"'},{value:'"footer"'},{value:'"form"'},{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'},{value:'"head"'},{value:'"header"'},{value:'"hgroup"'},{value:'"hr"'},{value:'"html"'},{value:'"i"'},{value:'"iframe"'},{value:'"img"'},{value:'"input"'},{value:'"ins"'},{value:'"kbd"'},{value:'"keygen"'},{value:'"label"'},{value:'"legend"'},{value:'"li"'},{value:'"link"'},{value:'"main"'},{value:'"map"'},{value:'"mark"'},{value:'"menu"'},{value:'"menuitem"'},{value:'"meta"'},{value:'"meter"'},{value:'"nav"'},{value:'"noindex"'},{value:'"noscript"'},{value:'"ol"'},{value:'"optgroup"'},{value:'"option"'},{value:'"output"'},{value:'"p"'},{value:'"param"'},{value:'"picture"'},{value:'"pre"'},{value:'"progress"'},{value:'"q"'},{value:'"rp"'},{value:'"rt"'},{value:'"ruby"'},{value:'"s"'},{value:'"samp"'},{value:'"search"'},{value:'"slot"'},{value:'"script"'},{value:'"section"'},{value:'"small"'},{value:'"source"'},{value:'"span"'},{value:'"strong"'},{value:'"style"'},{value:'"sub"'},{value:'"summary"'},{value:'"sup"'},{value:'"table"'},{value:'"template"'},{value:'"tbody"'},{value:'"td"'},{value:'"textarea"'},{value:'"tfoot"'},{value:'"th"'},{value:'"thead"'},{value:'"time"'},{value:'"title"'},{value:'"tr"'},{value:'"track"'},{value:'"u"'},{value:'"ul"'},{value:'"var"'},{value:'"video"'},{value:'"wbr"'},{value:'"webview"'},{value:'"svg"'},{value:'"animate"'},{value:'"animateMotion"'},{value:'"animateTransform"'},{value:'"circle"'},{value:'"clipPath"'},{value:'"defs"'},{value:'"desc"'},{value:'"ellipse"'},{value:'"feBlend"'},{value:'"feColorMatrix"'},{value:'"feComponentTransfer"'},{value:'"feComposite"'},{value:'"feConvolveMatrix"'},{value:'"feDiffuseLighting"'},{value:'"feDisplacementMap"'},{value:'"feDistantLight"'},{value:'"feDropShadow"'},{value:'"feFlood"'},{value:'"feFuncA"'},{value:'"feFuncB"'},{value:'"feFuncG"'},{value:'"feFuncR"'},{value:'"feGaussianBlur"'},{value:'"feImage"'},{value:'"feMerge"'},{value:'"feMergeNode"'},{value:'"feMorphology"'},{value:'"feOffset"'},{value:'"fePointLight"'},{value:'"feSpecularLighting"'},{value:'"feSpotLight"'},{value:'"feTile"'},{value:'"feTurbulence"'},{value:'"filter"'},{value:'"foreignObject"'},{value:'"g"'},{value:'"image"'},{value:'"line"'},{value:'"linearGradient"'},{value:'"marker"'},{value:'"mask"'},{value:'"metadata"'},{value:'"mpath"'},{value:'"path"'},{value:'"pattern"'},{value:'"polygon"'},{value:'"polyline"'},{value:'"radialGradient"'},{value:'"rect"'},{value:'"set"'},{value:'"stop"'},{value:'"switch"'},{value:'"text"'},{value:'"textPath"'},{value:'"tspan"'},{value:'"use"'},{value:'"view"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/angle-picker-control/index.tsx#anglepickercontrol"]={docgenInfo:anglepickercontrol.__docgenInfo,name:"anglepickercontrol",path:"packages/components/src/angle-picker-control/index.tsx#anglepickercontrol"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/custom-gradient-picker/constants.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ER:()=>GRADIENT_OPTIONS,ZP:()=>DIRECTIONAL_ORIENTATION_ANGLE_MAP,rk:()=>HORIZONTAL_GRADIENT_ORIENTATION,t5:()=>DEFAULT_LINEAR_GRADIENT_ANGLE,vK:()=>DEFAULT_GRADIENT});var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/i18n/build-module/index.js");const DEFAULT_GRADIENT="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",DEFAULT_LINEAR_GRADIENT_ANGLE=180,HORIZONTAL_GRADIENT_ORIENTATION={type:"angular",value:"90"},GRADIENT_OPTIONS=[{value:"linear-gradient",label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Linear")},{value:"radial-gradient",label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Radial")}],DIRECTIONAL_ORIENTATION_ANGLE_MAP={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315}},"./packages/components/src/custom-gradient-picker/gradient-bar/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>CustomGradientBar});var clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),react=__webpack_require__("./node_modules/react/index.js"),colord=__webpack_require__("./node_modules/colord/index.mjs"),use_instance_id=__webpack_require__("./packages/compose/build-module/hooks/use-instance-id/index.js"),build_module=__webpack_require__("./packages/i18n/build-module/index.js"),plus=__webpack_require__("./packages/icons/build-module/library/plus.js"),src_button=__webpack_require__("./packages/components/src/button/index.tsx"),component=__webpack_require__("./packages/components/src/h-stack/component.tsx"),legacy_adapter=__webpack_require__("./packages/components/src/color-picker/legacy-adapter.tsx"),visually_hidden_component=__webpack_require__("./packages/components/src/visually-hidden/component.tsx"),color_palette=__webpack_require__("./packages/components/src/color-palette/index.tsx");const MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT=10,MINIMUM_DISTANCE_BETWEEN_POINTS=0,KEYBOARD_CONTROL_POINT_VARIATION=MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT;function clampPercent(value){return Math.max(0,Math.min(100,value))}function updateControlPoint(points,index,newPoint){const newValue=points.slice();return newValue[index]=newPoint,newValue}function updateControlPointPosition(points,index,newPosition){if(function isOverlapping(value,initialIndex,newPosition,minDistance=MINIMUM_DISTANCE_BETWEEN_POINTS){const initialPosition=value[initialIndex].position,minPosition=Math.min(initialPosition,newPosition),maxPosition=Math.max(initialPosition,newPosition);return value.some((({position},index)=>index!==initialIndex&&(Math.abs(position-newPosition)({placement:"bottom",offset:8,resize:!1})),[]),mergedClassName=(0,clsx.A)("components-custom-gradient-picker__control-point-dropdown",className);return(0,jsx_runtime.jsx)(color_palette.c2,{isRenderedInSidebar,popoverProps,className:mergedClassName,...props})}function ControlPoints({disableRemove,disableAlpha,gradientPickerDomRef,ignoreMarkerPosition,value:controlPoints,onChange,onStartControlPointChange,onStopControlPointChange,__experimentalIsRenderedInSidebar}){const controlPointMoveStateRef=(0,react.useRef)(),onMouseMove=event=>{if(void 0===controlPointMoveStateRef.current||null===gradientPickerDomRef.current)return;const relativePosition=getHorizontalRelativeGradientPosition(event.clientX,gradientPickerDomRef.current),{initialPosition,index,significantMoveHappened}=controlPointMoveStateRef.current;!significantMoveHappened&&Math.abs(initialPosition-relativePosition)>=5&&(controlPointMoveStateRef.current.significantMoveHappened=!0),onChange(updateControlPointPosition(controlPoints,index,relativePosition))},cleanEventListeners=()=>{window&&window.removeEventListener&&controlPointMoveStateRef.current&&controlPointMoveStateRef.current.listenersActivated&&(window.removeEventListener("mousemove",onMouseMove),window.removeEventListener("mouseup",cleanEventListeners),onStopControlPointChange(),controlPointMoveStateRef.current.listenersActivated=!1)},cleanEventListenersRef=(0,react.useRef)();return cleanEventListenersRef.current=cleanEventListeners,(0,react.useEffect)((()=>()=>{cleanEventListenersRef.current?.()}),[]),(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:controlPoints.map(((point,index)=>{const initialPosition=point?.position;return ignoreMarkerPosition!==initialPosition&&(0,jsx_runtime.jsx)(GradientColorPickerDropdown,{isRenderedInSidebar:__experimentalIsRenderedInSidebar,onClose:onStopControlPointChange,renderToggle:({isOpen,onToggle})=>(0,jsx_runtime.jsx)(ControlPointButton,{onClick:()=>{controlPointMoveStateRef.current&&controlPointMoveStateRef.current.significantMoveHappened||(isOpen?onStopControlPointChange():onStartControlPointChange(),onToggle())},onMouseDown:()=>{window&&window.addEventListener&&(controlPointMoveStateRef.current={initialPosition,index,significantMoveHappened:!1,listenersActivated:!0},onStartControlPointChange(),window.addEventListener("mousemove",onMouseMove),window.addEventListener("mouseup",cleanEventListeners))},onKeyDown:event=>{"ArrowLeft"===event.code?(event.stopPropagation(),onChange(updateControlPointPosition(controlPoints,index,clampPercent(point.position-KEYBOARD_CONTROL_POINT_VARIATION)))):"ArrowRight"===event.code&&(event.stopPropagation(),onChange(updateControlPointPosition(controlPoints,index,clampPercent(point.position+KEYBOARD_CONTROL_POINT_VARIATION))))},isOpen,position:point.position,color:point.color},index),renderContent:({onClose})=>(0,jsx_runtime.jsxs)(dropdown_content_wrapper.A,{paddingSize:"none",children:[(0,jsx_runtime.jsx)(legacy_adapter.V,{enableAlpha:!disableAlpha,color:point.color,onChange:color=>{onChange(updateControlPointColor(controlPoints,index,(0,colord.Mj)(color).toRgbString()))}}),!disableRemove&&controlPoints.length>2&&(0,jsx_runtime.jsx)(component.A,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center",children:(0,jsx_runtime.jsx)(src_button.Ay,{onClick:()=>{onChange(function removeControlPoint(points,index){return points.filter(((_point,pointIndex)=>pointIndex!==index))}(controlPoints,index)),onClose()},variant:"link",children:(0,build_module.__)("Remove Control Point")})})]}),style:{left:`${point.position}%`,transform:"translateX( -50% )"}},index)}))})}ControlPoints.InsertPoint=function InsertPoint({value:controlPoints,onChange,onOpenInserter,onCloseInserter,insertPosition,disableAlpha,__experimentalIsRenderedInSidebar}){const[alreadyInsertedPoint,setAlreadyInsertedPoint]=(0,react.useState)(!1);return(0,jsx_runtime.jsx)(GradientColorPickerDropdown,{isRenderedInSidebar:__experimentalIsRenderedInSidebar,className:"components-custom-gradient-picker__inserter",onClose:()=>{onCloseInserter()},renderToggle:({isOpen,onToggle})=>(0,jsx_runtime.jsx)(src_button.Ay,{__next40pxDefaultSize:!0,"aria-expanded":isOpen,"aria-haspopup":"true",onClick:()=>{isOpen?onCloseInserter():(setAlreadyInsertedPoint(!1),onOpenInserter()),onToggle()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:plus.A}),renderContent:()=>(0,jsx_runtime.jsx)(dropdown_content_wrapper.A,{paddingSize:"none",children:(0,jsx_runtime.jsx)(legacy_adapter.V,{enableAlpha:!disableAlpha,onChange:color=>{alreadyInsertedPoint?onChange(function updateControlPointColorByPosition(points,position,newColor){const index=points.findIndex((point=>point.position===position));return updateControlPointColor(points,index,newColor)}(controlPoints,insertPosition,(0,colord.Mj)(color).toRgbString())):(onChange(function addControlPoint(points,position,color){const nextIndex=points.findIndex((point=>point.position>position)),newPoint={color,position},newPoints=points.slice();return newPoints.splice(nextIndex-1,0,newPoint),newPoints}(controlPoints,insertPosition,(0,colord.Mj)(color).toRgbString())),setAlreadyInsertedPoint(!0))}})}),style:null!==insertPosition?{left:`${insertPosition}%`,transform:"translateX( -50% )"}:void 0})};const control_points=ControlPoints;try{ControlPoints.displayName="ControlPoints",ControlPoints.__docgenInfo={description:"",displayName:"ControlPoints",props:{disableRemove:{defaultValue:null,description:"",name:"disableRemove",required:!0,type:{name:"boolean"}},disableAlpha:{defaultValue:null,description:"",name:"disableAlpha",required:!0,type:{name:"boolean"}},gradientPickerDomRef:{defaultValue:null,description:"",name:"gradientPickerDomRef",required:!0,type:{name:"RefObject"}},ignoreMarkerPosition:{defaultValue:null,description:"",name:"ignoreMarkerPosition",required:!1,type:{name:"number"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"ControlPoint[]"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(controlPoints: ControlPoint[]) => void"}},onStartControlPointChange:{defaultValue:null,description:"",name:"onStartControlPointChange",required:!0,type:{name:"() => void"}},onStopControlPointChange:{defaultValue:null,description:"",name:"onStopControlPointChange",required:!0,type:{name:"() => void"}},__experimentalIsRenderedInSidebar:{defaultValue:null,description:"",name:"__experimentalIsRenderedInSidebar",required:!0,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/custom-gradient-picker/gradient-bar/control-points.tsx#ControlPoints"]={docgenInfo:ControlPoints.__docgenInfo,name:"ControlPoints",path:"packages/components/src/custom-gradient-picker/gradient-bar/control-points.tsx#ControlPoints"})}catch(__react_docgen_typescript_loader_error){}const customGradientBarReducer=(state,action)=>{switch(action.type){case"MOVE_INSERTER":if("IDLE"===state.id||"MOVING_INSERTER"===state.id)return{id:"MOVING_INSERTER",insertPosition:action.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===state.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===state.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:state.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===state.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===state.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===state.id)return{id:"IDLE"}}return state},customGradientBarReducerInitialState={id:"IDLE"};function CustomGradientBar({background,hasGradient,value:controlPoints,onChange,disableInserter=!1,disableAlpha=!1,__experimentalIsRenderedInSidebar=!1}){const gradientMarkersContainerDomRef=(0,react.useRef)(null),[gradientBarState,gradientBarStateDispatch]=(0,react.useReducer)(customGradientBarReducer,customGradientBarReducerInitialState),onMouseEnterAndMove=event=>{if(!gradientMarkersContainerDomRef.current)return;const insertPosition=getHorizontalRelativeGradientPosition(event.clientX,gradientMarkersContainerDomRef.current);controlPoints.some((({position})=>Math.abs(insertPosition-position){gradientBarStateDispatch({type:"STOP_INSERTER_MOVE"})},children:[(0,jsx_runtime.jsx)("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background,opacity:hasGradient?1:.4}}),(0,jsx_runtime.jsxs)("div",{ref:gradientMarkersContainerDomRef,className:"components-custom-gradient-picker__markers-container",children:[!disableInserter&&(isMovingInserter||isInsertingControlPoint)&&(0,jsx_runtime.jsx)(control_points.InsertPoint,{__experimentalIsRenderedInSidebar,disableAlpha,insertPosition:gradientBarState.insertPosition,value:controlPoints,onChange,onOpenInserter:()=>{gradientBarStateDispatch({type:"OPEN_INSERTER"})},onCloseInserter:()=>{gradientBarStateDispatch({type:"CLOSE_INSERTER"})}}),(0,jsx_runtime.jsx)(control_points,{__experimentalIsRenderedInSidebar,disableAlpha,disableRemove:disableInserter,gradientPickerDomRef:gradientMarkersContainerDomRef,ignoreMarkerPosition:isInsertingControlPoint?gradientBarState.insertPosition:void 0,value:controlPoints,onChange,onStartControlPointChange:()=>{gradientBarStateDispatch({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{gradientBarStateDispatch({type:"STOP_CONTROL_CHANGE"})}})]})]})}try{gradientbar.displayName="gradientbar",gradientbar.__docgenInfo={description:"",displayName:"gradientbar",props:{background:{defaultValue:null,description:"",name:"background",required:!0,type:{name:"Background"}},hasGradient:{defaultValue:null,description:"",name:"hasGradient",required:!0,type:{name:"boolean"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"ControlPoint[]"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(newControlPoints: ControlPoint[]) => void"}},disableInserter:{defaultValue:{value:"false"},description:"",name:"disableInserter",required:!1,type:{name:"boolean"}},disableAlpha:{defaultValue:{value:"false"},description:"",name:"disableAlpha",required:!1,type:{name:"boolean"}},__experimentalIsRenderedInSidebar:{defaultValue:{value:"false"},description:"",name:"__experimentalIsRenderedInSidebar",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/custom-gradient-picker/gradient-bar/index.tsx#gradientbar"]={docgenInfo:gradientbar.__docgenInfo,name:"gradientbar",path:"packages/components/src/custom-gradient-picker/gradient-bar/index.tsx#gradientbar"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/custom-gradient-picker/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>custom_gradient_picker});var build_module=__webpack_require__("./packages/i18n/build-module/index.js"),angle_picker_control=__webpack_require__("./packages/components/src/angle-picker-control/index.tsx"),gradient_bar=__webpack_require__("./packages/components/src/custom-gradient-picker/gradient-bar/index.tsx"),component=__webpack_require__("./packages/components/src/flex/flex/component.tsx"),select_control=__webpack_require__("./packages/components/src/select-control/index.tsx"),v_stack_component=__webpack_require__("./packages/components/src/v-stack/component.tsx"),node=__webpack_require__("./node_modules/gradient-parser/build/node.js"),colord=__webpack_require__("./node_modules/colord/index.mjs"),names=__webpack_require__("./node_modules/colord/plugins/names.mjs"),constants=__webpack_require__("./packages/components/src/custom-gradient-picker/constants.ts");function serializeGradientColorStop({type,value,length}){return`${function serializeGradientColor({type,value}){return"literal"===type?value:"hex"===type?`#${value}`:`${type}(${value.join(",")})`}({type,value})} ${function serializeGradientPosition(position){if(!position)return"";const{value,type}=position;return`${value}${type}`}(length)}`}function serializeGradient({type,orientation,colorStops}){const serializedOrientation=function serializeGradientOrientation(orientation){if(!Array.isArray(orientation)&&orientation&&"angular"===orientation.type)return`${orientation.value}deg`}(orientation);return`${type}(${[serializedOrientation,...colorStops.sort(((colorStop1,colorStop2)=>{const getNumericStopValue=colorStop=>void 0===colorStop?.length?.value?0:parseInt(colorStop.length.value);return getNumericStopValue(colorStop1)-getNumericStopValue(colorStop2)})).map(serializeGradientColorStop)].filter(Boolean).join(",")})`}function hasUnsupportedLength(item){return void 0===item.length||"%"!==item.length.type}function getStopCssColor(colorStop){switch(colorStop.type){case"hex":return`#${colorStop.value}`;case"literal":return colorStop.value;case"rgb":case"rgba":return`${colorStop.type}(${colorStop.value.join(",")})`;default:return"transparent"}}(0,colord.X$)([names.A]);var emotion_styled_base_browser_esm=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),flex_block_component=__webpack_require__("./packages/components/src/flex/flex-block/component.tsx");const SelectWrapper=(0,emotion_styled_base_browser_esm.A)(flex_block_component.A,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),AccessoryWrapper=(0,emotion_styled_base_browser_esm.A)(flex_block_component.A,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"});try{SelectWrapper.displayName="SelectWrapper",SelectWrapper.__docgenInfo={description:"",displayName:"SelectWrapper",props:{children:{defaultValue:null,description:"The children elements.",name:"children",required:!1,type:{name:"ReactNode"}},display:{defaultValue:null,description:"The (CSS) display of the `FlexItem`.",name:"display",required:!1,type:{name:"Display"}},as:{defaultValue:null,description:"The HTML element or React component to render the component as.",name:"as",required:!1,type:{name:"enum",value:[{value:'"symbol"'},{value:'"object"'},{value:'"select"'},{value:'"a"'},{value:'"abbr"'},{value:'"address"'},{value:'"area"'},{value:'"article"'},{value:'"aside"'},{value:'"audio"'},{value:'"b"'},{value:'"base"'},{value:'"bdi"'},{value:'"bdo"'},{value:'"big"'},{value:'"blockquote"'},{value:'"body"'},{value:'"br"'},{value:'"button"'},{value:'"canvas"'},{value:'"caption"'},{value:'"center"'},{value:'"cite"'},{value:'"code"'},{value:'"col"'},{value:'"colgroup"'},{value:'"data"'},{value:'"datalist"'},{value:'"dd"'},{value:'"del"'},{value:'"details"'},{value:'"dfn"'},{value:'"dialog"'},{value:'"div"'},{value:'"dl"'},{value:'"dt"'},{value:'"em"'},{value:'"embed"'},{value:'"fieldset"'},{value:'"figcaption"'},{value:'"figure"'},{value:'"footer"'},{value:'"form"'},{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'},{value:'"head"'},{value:'"header"'},{value:'"hgroup"'},{value:'"hr"'},{value:'"html"'},{value:'"i"'},{value:'"iframe"'},{value:'"img"'},{value:'"input"'},{value:'"ins"'},{value:'"kbd"'},{value:'"keygen"'},{value:'"label"'},{value:'"legend"'},{value:'"li"'},{value:'"link"'},{value:'"main"'},{value:'"map"'},{value:'"mark"'},{value:'"menu"'},{value:'"menuitem"'},{value:'"meta"'},{value:'"meter"'},{value:'"nav"'},{value:'"noindex"'},{value:'"noscript"'},{value:'"ol"'},{value:'"optgroup"'},{value:'"option"'},{value:'"output"'},{value:'"p"'},{value:'"param"'},{value:'"picture"'},{value:'"pre"'},{value:'"progress"'},{value:'"q"'},{value:'"rp"'},{value:'"rt"'},{value:'"ruby"'},{value:'"s"'},{value:'"samp"'},{value:'"search"'},{value:'"slot"'},{value:'"script"'},{value:'"section"'},{value:'"small"'},{value:'"source"'},{value:'"span"'},{value:'"strong"'},{value:'"style"'},{value:'"sub"'},{value:'"summary"'},{value:'"sup"'},{value:'"table"'},{value:'"template"'},{value:'"tbody"'},{value:'"td"'},{value:'"textarea"'},{value:'"tfoot"'},{value:'"th"'},{value:'"thead"'},{value:'"time"'},{value:'"title"'},{value:'"tr"'},{value:'"track"'},{value:'"u"'},{value:'"ul"'},{value:'"var"'},{value:'"video"'},{value:'"wbr"'},{value:'"webview"'},{value:'"svg"'},{value:'"animate"'},{value:'"animateMotion"'},{value:'"animateTransform"'},{value:'"circle"'},{value:'"clipPath"'},{value:'"defs"'},{value:'"desc"'},{value:'"ellipse"'},{value:'"feBlend"'},{value:'"feColorMatrix"'},{value:'"feComponentTransfer"'},{value:'"feComposite"'},{value:'"feConvolveMatrix"'},{value:'"feDiffuseLighting"'},{value:'"feDisplacementMap"'},{value:'"feDistantLight"'},{value:'"feDropShadow"'},{value:'"feFlood"'},{value:'"feFuncA"'},{value:'"feFuncB"'},{value:'"feFuncG"'},{value:'"feFuncR"'},{value:'"feGaussianBlur"'},{value:'"feImage"'},{value:'"feMerge"'},{value:'"feMergeNode"'},{value:'"feMorphology"'},{value:'"feOffset"'},{value:'"fePointLight"'},{value:'"feSpecularLighting"'},{value:'"feSpotLight"'},{value:'"feTile"'},{value:'"feTurbulence"'},{value:'"filter"'},{value:'"foreignObject"'},{value:'"g"'},{value:'"image"'},{value:'"line"'},{value:'"linearGradient"'},{value:'"marker"'},{value:'"mask"'},{value:'"metadata"'},{value:'"mpath"'},{value:'"path"'},{value:'"pattern"'},{value:'"polygon"'},{value:'"polyline"'},{value:'"radialGradient"'},{value:'"rect"'},{value:'"set"'},{value:'"stop"'},{value:'"switch"'},{value:'"text"'},{value:'"textPath"'},{value:'"tspan"'},{value:'"use"'},{value:'"view"'}]}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"Theme"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/custom-gradient-picker/styles/custom-gradient-picker-styles.tsx#SelectWrapper"]={docgenInfo:SelectWrapper.__docgenInfo,name:"SelectWrapper",path:"packages/components/src/custom-gradient-picker/styles/custom-gradient-picker-styles.tsx#SelectWrapper"})}catch(__react_docgen_typescript_loader_error){}try{AccessoryWrapper.displayName="AccessoryWrapper",AccessoryWrapper.__docgenInfo={description:"",displayName:"AccessoryWrapper",props:{children:{defaultValue:null,description:"The children elements.",name:"children",required:!1,type:{name:"ReactNode"}},display:{defaultValue:null,description:"The (CSS) display of the `FlexItem`.",name:"display",required:!1,type:{name:"Display"}},as:{defaultValue:null,description:"The HTML element or React component to render the component as.",name:"as",required:!1,type:{name:"enum",value:[{value:'"symbol"'},{value:'"object"'},{value:'"select"'},{value:'"a"'},{value:'"abbr"'},{value:'"address"'},{value:'"area"'},{value:'"article"'},{value:'"aside"'},{value:'"audio"'},{value:'"b"'},{value:'"base"'},{value:'"bdi"'},{value:'"bdo"'},{value:'"big"'},{value:'"blockquote"'},{value:'"body"'},{value:'"br"'},{value:'"button"'},{value:'"canvas"'},{value:'"caption"'},{value:'"center"'},{value:'"cite"'},{value:'"code"'},{value:'"col"'},{value:'"colgroup"'},{value:'"data"'},{value:'"datalist"'},{value:'"dd"'},{value:'"del"'},{value:'"details"'},{value:'"dfn"'},{value:'"dialog"'},{value:'"div"'},{value:'"dl"'},{value:'"dt"'},{value:'"em"'},{value:'"embed"'},{value:'"fieldset"'},{value:'"figcaption"'},{value:'"figure"'},{value:'"footer"'},{value:'"form"'},{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'},{value:'"head"'},{value:'"header"'},{value:'"hgroup"'},{value:'"hr"'},{value:'"html"'},{value:'"i"'},{value:'"iframe"'},{value:'"img"'},{value:'"input"'},{value:'"ins"'},{value:'"kbd"'},{value:'"keygen"'},{value:'"label"'},{value:'"legend"'},{value:'"li"'},{value:'"link"'},{value:'"main"'},{value:'"map"'},{value:'"mark"'},{value:'"menu"'},{value:'"menuitem"'},{value:'"meta"'},{value:'"meter"'},{value:'"nav"'},{value:'"noindex"'},{value:'"noscript"'},{value:'"ol"'},{value:'"optgroup"'},{value:'"option"'},{value:'"output"'},{value:'"p"'},{value:'"param"'},{value:'"picture"'},{value:'"pre"'},{value:'"progress"'},{value:'"q"'},{value:'"rp"'},{value:'"rt"'},{value:'"ruby"'},{value:'"s"'},{value:'"samp"'},{value:'"search"'},{value:'"slot"'},{value:'"script"'},{value:'"section"'},{value:'"small"'},{value:'"source"'},{value:'"span"'},{value:'"strong"'},{value:'"style"'},{value:'"sub"'},{value:'"summary"'},{value:'"sup"'},{value:'"table"'},{value:'"template"'},{value:'"tbody"'},{value:'"td"'},{value:'"textarea"'},{value:'"tfoot"'},{value:'"th"'},{value:'"thead"'},{value:'"time"'},{value:'"title"'},{value:'"tr"'},{value:'"track"'},{value:'"u"'},{value:'"ul"'},{value:'"var"'},{value:'"video"'},{value:'"wbr"'},{value:'"webview"'},{value:'"svg"'},{value:'"animate"'},{value:'"animateMotion"'},{value:'"animateTransform"'},{value:'"circle"'},{value:'"clipPath"'},{value:'"defs"'},{value:'"desc"'},{value:'"ellipse"'},{value:'"feBlend"'},{value:'"feColorMatrix"'},{value:'"feComponentTransfer"'},{value:'"feComposite"'},{value:'"feConvolveMatrix"'},{value:'"feDiffuseLighting"'},{value:'"feDisplacementMap"'},{value:'"feDistantLight"'},{value:'"feDropShadow"'},{value:'"feFlood"'},{value:'"feFuncA"'},{value:'"feFuncB"'},{value:'"feFuncG"'},{value:'"feFuncR"'},{value:'"feGaussianBlur"'},{value:'"feImage"'},{value:'"feMerge"'},{value:'"feMergeNode"'},{value:'"feMorphology"'},{value:'"feOffset"'},{value:'"fePointLight"'},{value:'"feSpecularLighting"'},{value:'"feSpotLight"'},{value:'"feTile"'},{value:'"feTurbulence"'},{value:'"filter"'},{value:'"foreignObject"'},{value:'"g"'},{value:'"image"'},{value:'"line"'},{value:'"linearGradient"'},{value:'"marker"'},{value:'"mask"'},{value:'"metadata"'},{value:'"mpath"'},{value:'"path"'},{value:'"pattern"'},{value:'"polygon"'},{value:'"polyline"'},{value:'"radialGradient"'},{value:'"rect"'},{value:'"set"'},{value:'"stop"'},{value:'"switch"'},{value:'"text"'},{value:'"textPath"'},{value:'"tspan"'},{value:'"use"'},{value:'"view"'}]}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"Theme"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/custom-gradient-picker/styles/custom-gradient-picker-styles.tsx#AccessoryWrapper"]={docgenInfo:AccessoryWrapper.__docgenInfo,name:"AccessoryWrapper",path:"packages/components/src/custom-gradient-picker/styles/custom-gradient-picker-styles.tsx#AccessoryWrapper"})}catch(__react_docgen_typescript_loader_error){}var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const GradientAnglePicker=({gradientAST,hasGradient,onChange})=>{var _gradientAST$orientat;const angle=null!==(_gradientAST$orientat=gradientAST?.orientation?.value)&&void 0!==_gradientAST$orientat?_gradientAST$orientat:constants.t5;return(0,jsx_runtime.jsx)(angle_picker_control.A,{onChange:newAngle=>{onChange(serializeGradient({...gradientAST,orientation:{type:"angular",value:`${newAngle}`}}))},value:hasGradient?angle:""})},GradientTypePicker=({gradientAST,hasGradient,onChange})=>{const{type}=gradientAST;return(0,jsx_runtime.jsx)(select_control.A,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:(0,build_module.__)("Type"),labelPosition:"top",onChange:next=>{"linear-gradient"===next&&onChange(serializeGradient({...gradientAST,orientation:gradientAST.orientation?void 0:constants.rk,type:"linear-gradient"})),"radial-gradient"===next&&(()=>{const{orientation,...restGradientAST}=gradientAST;onChange(serializeGradient({...restGradientAST,type:"radial-gradient"}))})()},options:constants.ER,size:"__unstable-large",value:hasGradient?type:void 0})};function CustomGradientPicker({value,onChange,enableAlpha=!0,__experimentalIsRenderedInSidebar=!1}){const{gradientAST,hasGradient}=function getGradientAstWithDefault(value){let gradientAST,hasGradient=!!value;const valueToParse=null!=value?value:constants.vK;try{gradientAST=node.parse(valueToParse)[0]}catch(error){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",error),gradientAST=node.parse(constants.vK)[0],hasGradient=!1}if(Array.isArray(gradientAST.orientation)||"directional"!==gradientAST.orientation?.type||(gradientAST.orientation={type:"angular",value:constants.ZP[gradientAST.orientation.value].toString()}),gradientAST.colorStops.some(hasUnsupportedLength)){const{colorStops}=gradientAST,step=100/(colorStops.length-1);colorStops.forEach(((stop,index)=>{stop.length={value:""+step*index,type:"%"}}))}return{gradientAST,hasGradient}}(value),background=function getLinearGradientRepresentation(gradientAST){return serializeGradient({type:"linear-gradient",orientation:constants.rk,colorStops:gradientAST.colorStops})}(gradientAST),controlPoints=gradientAST.colorStops.map((colorStop=>({color:getStopCssColor(colorStop),position:parseInt(colorStop.length.value)})));return(0,jsx_runtime.jsxs)(v_stack_component.A,{spacing:4,className:"components-custom-gradient-picker",children:[(0,jsx_runtime.jsx)(gradient_bar.A,{__experimentalIsRenderedInSidebar,disableAlpha:!enableAlpha,background,hasGradient,value:controlPoints,onChange:newControlPoints=>{onChange(serializeGradient(function getGradientAstWithControlPoints(gradientAST,newControlPoints){return{...gradientAST,colorStops:newControlPoints.map((({position,color})=>{const{r,g,b,a}=(0,colord.Mj)(color).toRgb();return{length:{type:"%",value:position?.toString()},type:a<1?"rgba":"rgb",value:a<1?[`${r}`,`${g}`,`${b}`,`${a}`]:[`${r}`,`${g}`,`${b}`]}}))}}(gradientAST,newControlPoints)))}}),(0,jsx_runtime.jsxs)(component.A,{gap:3,className:"components-custom-gradient-picker__ui-line",children:[(0,jsx_runtime.jsx)(SelectWrapper,{children:(0,jsx_runtime.jsx)(GradientTypePicker,{gradientAST,hasGradient,onChange})}),(0,jsx_runtime.jsx)(AccessoryWrapper,{children:"linear-gradient"===gradientAST.type&&(0,jsx_runtime.jsx)(GradientAnglePicker,{gradientAST,hasGradient,onChange})})]})]})}const custom_gradient_picker=CustomGradientPicker;try{CustomGradientPicker.displayName="CustomGradientPicker",CustomGradientPicker.__docgenInfo={description:"CustomGradientPicker is a React component that renders a UI for specifying\nlinear or radial gradients. Radial gradients are displayed in the picker as\na slice of the gradient from the center to the outside.\n\n```jsx\nimport { CustomGradientPicker } from '@wordpress/components';\nimport { useState } from '@wordpress/element';\n\nconst MyCustomGradientPicker = () => {\n const [ gradient, setGradient ] = useState();\n\n return (\n \n );\n};\n```",displayName:"CustomGradientPicker",props:{__nextHasNoMargin:{defaultValue:{value:"false"},description:"Start opting in to the new margin-free styles that will become the default\nin a future version, currently scheduled to be WordPress 6.4. (The prop\ncan be safely removed once this happens.)\n@deprecated Default behavior since WP 6.5. Prop can be safely removed.\n@ignore",name:"__nextHasNoMargin",required:!1,type:{name:"boolean"}},value:{defaultValue:{value:"'linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)'"},description:"The current value of the gradient. Pass a css gradient string (See default value for example).\nOptionally pass in a `null` value to specify no gradient is currently selected.",name:"value",required:!1,type:{name:"string"}},onChange:{defaultValue:null,description:"The function called when a new gradient has been defined. It is passed to\nthe `currentGradient` as an argument.",name:"onChange",required:!0,type:{name:"(currentGradient: string) => void"}},enableAlpha:{defaultValue:{value:"true"},description:"Whether to enable alpha transparency options in the picker.",name:"enableAlpha",required:!1,type:{name:"boolean"}},__experimentalIsRenderedInSidebar:{defaultValue:{value:"false"},description:"Whether this is rendered in the sidebar.",name:"__experimentalIsRenderedInSidebar",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/custom-gradient-picker/index.tsx#CustomGradientPicker"]={docgenInfo:CustomGradientPicker.__docgenInfo,name:"CustomGradientPicker",path:"packages/components/src/custom-gradient-picker/index.tsx#CustomGradientPicker"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/flex/flex-block/component.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>flex_block_component});var context_connect=__webpack_require__("./packages/components/src/context/context-connect.ts"),component=__webpack_require__("./packages/components/src/view/component.tsx"),use_context_system=__webpack_require__("./packages/components/src/context/use-context-system.js"),hook=__webpack_require__("./packages/components/src/flex/flex-item/hook.ts");var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const FlexBlock=(0,context_connect.KZ)((function UnconnectedFlexBlock(props,forwardedRef){const flexBlockProps=function useFlexBlock(props){const otherProps=(0,use_context_system.A)(props,"FlexBlock");return(0,hook.K)({isBlock:!0,...otherProps})}(props);return(0,jsx_runtime.jsx)(component.A,{...flexBlockProps,ref:forwardedRef})}),"FlexBlock"),flex_block_component=FlexBlock;try{FlexBlock.displayName="FlexBlock",FlexBlock.__docgenInfo={description:"`FlexBlock` is a primitive layout component that adaptively resizes content\nwithin layout containers like `Flex`.\n\n```jsx\nimport { Flex, FlexBlock } from '@wordpress/components';\n\nfunction Example() {\n return (\n \n ...\n \n );\n}\n```",displayName:"FlexBlock",props:{children:{defaultValue:null,description:"The children elements.",name:"children",required:!1,type:{name:"ReactNode"}},display:{defaultValue:null,description:"The (CSS) display of the `FlexItem`.",name:"display",required:!1,type:{name:"Display"}},as:{defaultValue:null,description:"The HTML element or React component to render the component as.",name:"as",required:!1,type:{name:'"symbol" | "object" | "select" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | ... 516 more ... | ("view" & FunctionComponent<...>)'}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/flex/flex-block/component.tsx#FlexBlock"]={docgenInfo:FlexBlock.__docgenInfo,name:"FlexBlock",path:"packages/components/src/flex/flex-block/component.tsx#FlexBlock"})}catch(__react_docgen_typescript_loader_error){}},"./node_modules/gradient-parser/build/node.js":(__unused_webpack_module,exports)=>{var GradientParser={};GradientParser.parse=function(){var tokens={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},input="";function error(msg){var err=new Error(input+": "+msg);throw err.source=input,err}function getAST(){var ast=function matchListDefinitions(){return matchListing(matchDefinition)}();return input.length>0&&error("Invalid input not EOF"),ast}function matchDefinition(){return matchGradient("linear-gradient",tokens.linearGradient,matchLinearOrientation)||matchGradient("repeating-linear-gradient",tokens.repeatingLinearGradient,matchLinearOrientation)||matchGradient("radial-gradient",tokens.radialGradient,matchListRadialOrientations)||matchGradient("repeating-radial-gradient",tokens.repeatingRadialGradient,matchListRadialOrientations)}function matchGradient(gradientType,pattern,orientationMatcher){return matchCall(pattern,(function(captures){var orientation=orientationMatcher();return orientation&&(scan(tokens.comma)||error("Missing comma before color stops")),{type:gradientType,orientation,colorStops:matchListing(matchColorStop)}}))}function matchCall(pattern,callback){var captures=scan(pattern);if(captures)return scan(tokens.startCall)||error("Missing ("),result=callback(captures),scan(tokens.endCall)||error("Missing )"),result}function matchLinearOrientation(){return function matchSideOrCorner(){return match("directional",tokens.sideOrCorner,1)}()||function matchAngle(){return match("angular",tokens.angleValue,1)}()}function matchListRadialOrientations(){var radialOrientations,lookaheadCache,radialOrientation=matchRadialOrientation();return radialOrientation&&((radialOrientations=[]).push(radialOrientation),lookaheadCache=input,scan(tokens.comma)&&((radialOrientation=matchRadialOrientation())?radialOrientations.push(radialOrientation):input=lookaheadCache)),radialOrientations}function matchRadialOrientation(){var radialType=function matchCircle(){var circle=match("shape",/^(circle)/i,0);circle&&(circle.style=matchLength()||matchExtentKeyword());return circle}()||function matchEllipse(){var ellipse=match("shape",/^(ellipse)/i,0);ellipse&&(ellipse.style=matchDistance()||matchExtentKeyword());return ellipse}();if(radialType)radialType.at=function matchAtPosition(){if(match("position",/^at/,0)){var positioning=matchPositioning();return positioning||error("Missing positioning value"),positioning}}();else{var defaultPosition=matchPositioning();defaultPosition&&(radialType={type:"default-radial",at:defaultPosition})}return radialType}function matchExtentKeyword(){return match("extent-keyword",tokens.extentKeywords,1)}function matchPositioning(){var location=function matchCoordinates(){return{x:matchDistance(),y:matchDistance()}}();if(location.x||location.y)return{type:"position",value:location}}function matchListing(matcher){var captures=matcher(),result=[];if(captures)for(result.push(captures);scan(tokens.comma);)(captures=matcher())?result.push(captures):error("One extra comma");return result}function matchColorStop(){var color=function matchColor(){return function matchHexColor(){return match("hex",tokens.hexColor,1)}()||function matchRGBAColor(){return matchCall(tokens.rgbaColor,(function(){return{type:"rgba",value:matchListing(matchNumber)}}))}()||function matchRGBColor(){return matchCall(tokens.rgbColor,(function(){return{type:"rgb",value:matchListing(matchNumber)}}))}()||function matchLiteralColor(){return match("literal",tokens.literalColor,0)}()}();return color||error("Expected color definition"),color.length=matchDistance(),color}function matchNumber(){return scan(tokens.number)[1]}function matchDistance(){return match("%",tokens.percentageValue,1)||function matchPositionKeyword(){return match("position-keyword",tokens.positionKeywords,1)}()||matchLength()}function matchLength(){return match("px",tokens.pixelValue,1)||match("em",tokens.emValue,1)}function match(type,pattern,captureIndex){var captures=scan(pattern);if(captures)return{type,value:captures[captureIndex]}}function scan(regexp){var captures,blankCaptures;return(blankCaptures=/^[\n\r\t\s]+/.exec(input))&&consume(blankCaptures[0].length),(captures=regexp.exec(input))&&consume(captures[0].length),captures}function consume(size){input=input.substr(size)}return function(code){return input=code.toString(),getAST()}}(),exports.parse=(GradientParser||{}).parse}}]); \ No newline at end of file diff --git a/4103.5fcf4881.iframe.bundle.js b/4103.5fcf4881.iframe.bundle.js new file mode 100644 index 00000000000000..7942e40bcd4ef1 --- /dev/null +++ b/4103.5fcf4881.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[4103],{"./packages/compose/build-module/hooks/use-merge-refs/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>useMergeRefs});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function assignRef(ref,value){"function"==typeof ref?ref(value):ref&&ref.hasOwnProperty("current")&&(ref.current=value)}function useMergeRefs(refs){const element=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(),isAttachedRef=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(!1),didElementChangeRef=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(!1),previousRefsRef=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)([]),currentRefsRef=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(refs);return currentRefsRef.current=refs,(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)((()=>{!1===didElementChangeRef.current&&!0===isAttachedRef.current&&refs.forEach(((ref,index)=>{const previousRef=previousRefsRef.current[index];ref!==previousRef&&(assignRef(previousRef,null),assignRef(ref,element.current))})),previousRefsRef.current=refs}),refs),(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)((()=>{didElementChangeRef.current=!1})),(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useCallback)((value=>{assignRef(element,value),didElementChangeRef.current=!0,isAttachedRef.current=null!==value;const refsToAssign=value?currentRefsRef.current:previousRefsRef.current;for(const ref of refsToAssign)assignRef(ref,value)}),[])}},"./packages/icons/build-module/icon/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const __WEBPACK_DEFAULT_EXPORT__=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((function Icon({icon,size=24,...props},ref){return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(icon,{width:size,height:size,...props,ref})}))},"./packages/icons/build-module/library/close-small.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})})},"./packages/icons/build-module/library/search.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/primitives/build-module/svg/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.wA,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})})},"./packages/components/src/input-control/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{ey:()=>InputControl,Ay:()=>input_control});var clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),use_instance_id=__webpack_require__("./packages/compose/build-module/hooks/use-instance-id/index.js"),react=__webpack_require__("./node_modules/react/index.js"),input_base=__webpack_require__("./packages/components/src/input-control/input-base.tsx"),use_gesture_react_esm=__webpack_require__("./node_modules/@use-gesture/react/dist/use-gesture-react.esm.js");var input_control_styles=__webpack_require__("./packages/components/src/input-control/styles/input-control-styles.tsx");const initialStateReducer=state=>state,initialInputControlState={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""};var actions=__webpack_require__("./packages/components/src/input-control/reducer/actions.ts");function useInputControlStateReducer(stateReducer=initialStateReducer,initialState=initialInputControlState,onChangeHandler){const[state,dispatch]=(0,react.useReducer)(function inputControlStateReducer(composedStateReducers){return(state,action)=>{const nextState={...state};switch(action.type){case actions.W3:return nextState.value=action.payload.value,nextState.isDirty=!1,nextState._event=void 0,nextState;case actions.wX:case actions.r7:nextState.isDirty=!1;break;case actions.Qf:nextState.isDragging=!0;break;case actions.Ry:nextState.isDragging=!1;break;case actions.PL:nextState.error=null,nextState.value=action.payload.value,state.isPressEnterToChange&&(nextState.isDirty=!0);break;case actions.cJ:nextState.value=action.payload.value,nextState.isDirty=!1;break;case actions.Ut:nextState.error=null,nextState.isDirty=!1,nextState.value=action.payload.value||state.initialValue;break;case actions.uY:nextState.error=action.payload.error}return nextState._event=action.payload.event,composedStateReducers(nextState,action)}}(stateReducer),function mergeInitialState(initialState=initialInputControlState){const{value}=initialState;return{...initialInputControlState,...initialState,initialValue:value}}(initialState)),createChangeEvent=type=>(nextValue,event)=>{dispatch({type,payload:{value:nextValue,event}})},createKeyEvent=type=>event=>{dispatch({type,payload:{event}})},createDragEvent=type=>payload=>{dispatch({type,payload})},change=createChangeEvent(actions.PL),reset=createChangeEvent(actions.Ut),commit=createChangeEvent(actions.cJ),dragStart=createDragEvent(actions.Qf),drag=createDragEvent(actions.j),dragEnd=createDragEvent(actions.Ry),pressUp=createKeyEvent(actions.wX),pressDown=createKeyEvent(actions.r7),pressEnter=createKeyEvent(actions.bR),currentStateRef=(0,react.useRef)(state),refPropsRef=(0,react.useRef)({value:initialState.value,onChangeHandler});return(0,react.useLayoutEffect)((()=>{currentStateRef.current=state,refPropsRef.current={value:initialState.value,onChangeHandler}})),(0,react.useLayoutEffect)((()=>{var _state$value;void 0===currentStateRef.current._event||state.value===refPropsRef.current.value||state.isDirty||refPropsRef.current.onChangeHandler(null!==(_state$value=state.value)&&void 0!==_state$value?_state$value:"",{event:currentStateRef.current._event})}),[state.value,state.isDirty]),(0,react.useLayoutEffect)((()=>{var _initialState$value;initialState.value===currentStateRef.current.value||currentStateRef.current.isDirty||dispatch({type:actions.W3,payload:{value:null!==(_initialState$value=initialState.value)&&void 0!==_initialState$value?_initialState$value:""}})}),[initialState.value]),{change,commit,dispatch,drag,dragEnd,dragStart,invalidate:(error,event)=>dispatch({type:actions.uY,payload:{error,event}}),pressDown,pressEnter,pressUp,reset,state}}var with_ignore_ime_events=__webpack_require__("./packages/components/src/utils/with-ignore-ime-events.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const noop=()=>{};const input_field=(0,react.forwardRef)((function InputField({disabled=!1,dragDirection="n",dragThreshold=10,id,isDragEnabled=!1,isPressEnterToChange=!1,onBlur=noop,onChange=noop,onDrag=noop,onDragEnd=noop,onDragStart=noop,onKeyDown=noop,onValidate=noop,size="default",stateReducer=state=>state,value:valueProp,type,...props},ref){const{state,change,commit,drag,dragEnd,dragStart,invalidate,pressDown,pressEnter,pressUp,reset}=useInputControlStateReducer(stateReducer,{isDragEnabled,value:valueProp,isPressEnterToChange},onChange),{value,isDragging,isDirty}=state,wasDirtyOnBlur=(0,react.useRef)(!1),dragCursor=function useDragCursor(isDragging,dragDirection){const dragCursor=function getDragCursor(dragDirection){let dragCursor="ns-resize";switch(dragDirection){case"n":case"s":dragCursor="ns-resize";break;case"e":case"w":dragCursor="ew-resize"}return dragCursor}(dragDirection);return(0,react.useEffect)((()=>{document.documentElement.style.cursor=isDragging?dragCursor:null}),[isDragging,dragCursor]),dragCursor}(isDragging,dragDirection),handleOnCommit=event=>{const nextValue=event.currentTarget.value;try{onValidate(nextValue),commit(nextValue,event)}catch(err){invalidate(err,event)}},dragGestureProps=(0,use_gesture_react_esm.useDrag)((dragProps=>{const{distance,dragging,event,target}=dragProps;if(dragProps.event={...dragProps.event,target},distance){if(event.stopPropagation(),!dragging)return onDragEnd(dragProps),void dragEnd(dragProps);onDrag(dragProps),drag(dragProps),isDragging||(onDragStart(dragProps),dragStart(dragProps))}}),{axis:"e"===dragDirection||"w"===dragDirection?"x":"y",threshold:dragThreshold,enabled:isDragEnabled,pointer:{capture:!1}}),dragProps=isDragEnabled?dragGestureProps():{};let handleOnMouseDown;return"number"===type&&(handleOnMouseDown=event=>{props.onMouseDown?.(event),event.currentTarget!==event.currentTarget.ownerDocument.activeElement&&event.currentTarget.focus()}),(0,jsx_runtime.jsx)(input_control_styles.pd,{...props,...dragProps,className:"components-input-control__input",disabled,dragCursor,isDragging,id,onBlur:event=>{onBlur(event),!isDirty&&event.target.validity.valid||(wasDirtyOnBlur.current=!0,handleOnCommit(event))},onChange:event=>{const nextValue=event.target.value;change(nextValue,event)},onKeyDown:(0,with_ignore_ime_events.n)((event=>{const{key}=event;switch(onKeyDown(event),key){case"ArrowUp":pressUp(event);break;case"ArrowDown":pressDown(event);break;case"Enter":pressEnter(event),isPressEnterToChange&&(event.preventDefault(),handleOnCommit(event));break;case"Escape":isPressEnterToChange&&isDirty&&(event.preventDefault(),reset(valueProp,event))}})),onMouseDown:handleOnMouseDown,ref,inputSize:size,value:null!=value?value:"",type})}));try{inputfield.displayName="inputfield",inputfield.__docgenInfo={description:"",displayName:"inputfield",props:{dragDirection:{defaultValue:{value:"'n'"},description:"Determines the drag axis.",name:"dragDirection",required:!1,type:{name:"enum",value:[{value:'"s"'},{value:'"n"'},{value:'"e"'},{value:'"w"'}]}},dragThreshold:{defaultValue:{value:"10"},description:"If `isDragEnabled` is true, this controls the amount of `px` to have been dragged before\nthe drag gesture is actually triggered.",name:"dragThreshold",required:!1,type:{name:"number"}},isDragEnabled:{defaultValue:{value:"false"},description:"If true, enables mouse drag gestures.",name:"isDragEnabled",required:!1,type:{name:"boolean"}},isPressEnterToChange:{defaultValue:{value:"false"},description:"If true, the `ENTER` key press is required in order to trigger an `onChange`.\nIf enabled, a change is also triggered when tabbing away (`onBlur`).",name:"isPressEnterToChange",required:!1,type:{name:"boolean"}},onChange:{defaultValue:null,description:"A function that receives the value of the input.",name:"onChange",required:!1,type:{name:"InputChangeCallback<{}>"}},onValidate:{defaultValue:null,description:"",name:"onValidate",required:!1,type:{name:"(nextValue: string, event?: SyntheticEvent) => void"}},paddingInlineStart:{defaultValue:null,description:"",name:"paddingInlineStart",required:!1,type:{name:"PaddingInlineStart"}},paddingInlineEnd:{defaultValue:null,description:"",name:"paddingInlineEnd",required:!1,type:{name:"PaddingInlineEnd"}},stateReducer:{defaultValue:null,description:"",name:"stateReducer",required:!1,type:{name:"StateReducer"}},value:{defaultValue:null,description:"The current value of the input.",name:"value",required:!1,type:{name:"string"}},onDragEnd:{defaultValue:null,description:"",name:"onDragEnd",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},onDragStart:{defaultValue:null,description:"",name:"onDragStart",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},onDrag:{defaultValue:null,description:"",name:"onDrag",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},type:{defaultValue:{value:"'text'"},description:"Type of the input element to render.",name:"type",required:!1,type:{name:"HTMLInputTypeAttribute"}},labelPosition:{defaultValue:{value:"'top'"},description:"The position of the label.",name:"labelPosition",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"side"'},{value:'"bottom"'},{value:'"edge"'}]}},size:{defaultValue:{value:"'default'"},description:"Adjusts the size of the input.",name:"size",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"small"'},{value:'"compact"'},{value:'"__unstable-large"'}]}},__next40pxDefaultSize:{defaultValue:{value:"false"},description:"Start opting into the larger default height that will become the default size in a future version.",name:"__next40pxDefaultSize",required:!1,type:{name:"boolean"}},__shouldNotWarnDeprecated36pxSize:{defaultValue:null,description:"Do not throw a warning for the deprecated 36px default size.\nFor internal components of other components that already throw the warning.\n@ignore",name:"__shouldNotWarnDeprecated36pxSize",required:!1,type:{name:"boolean"}},__unstableInputWidth:{defaultValue:null,description:"",name:"__unstableInputWidth",required:!1,type:{name:"Width"}},hideLabelFromVision:{defaultValue:{value:"false"},description:"If true, the label will only be visible to screen readers.",name:"hideLabelFromVision",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/input-control/input-field.tsx#inputfield"]={docgenInfo:inputfield.__docgenInfo,name:"inputfield",path:"packages/components/src/input-control/input-field.tsx#inputfield"})}catch(__react_docgen_typescript_loader_error){}var space=__webpack_require__("./packages/components/src/utils/space.ts"),base_control=__webpack_require__("./packages/components/src/base-control/index.tsx"),use_deprecated_props=__webpack_require__("./packages/components/src/utils/use-deprecated-props.ts"),deprecated_36px_size=__webpack_require__("./packages/components/src/utils/deprecated-36px-size.ts");const input_control_noop=()=>{};function UnforwardedInputControl(props,ref){const{__next40pxDefaultSize,__shouldNotWarnDeprecated36pxSize,__unstableStateReducer:stateReducer=state=>state,__unstableInputWidth,className,disabled=!1,help,hideLabelFromVision=!1,id:idProp,isPressEnterToChange=!1,label,labelPosition="top",onChange=input_control_noop,onValidate=input_control_noop,onKeyDown=input_control_noop,prefix,size="default",style,suffix,value,...restProps}=(0,use_deprecated_props.R)(props),id=function useUniqueId(idProp){const instanceId=(0,use_instance_id.A)(InputControl);return idProp||`inspector-input-control-${instanceId}`}(idProp),classes=(0,clsx.A)("components-input-control",className),draftHookProps=function useDraft(props){const previousValueRef=(0,react.useRef)(props.value),[draft,setDraft]=(0,react.useState)({}),value=void 0!==draft.value?draft.value:props.value;return(0,react.useLayoutEffect)((()=>{const{current:previousValue}=previousValueRef;previousValueRef.current=props.value,void 0===draft.value||draft.isStale?draft.isStale&&props.value!==previousValue&&setDraft({}):setDraft({...draft,isStale:!0})}),[props.value,draft]),{value,onBlur:event=>{setDraft({}),props.onBlur?.(event)},onChange:(nextValue,extra)=>{setDraft((current=>Object.assign(current,{value:nextValue,isStale:!1}))),props.onChange(nextValue,extra)}}}({value,onBlur:restProps.onBlur,onChange}),helpProp=help?{"aria-describedby":`${id}__help`}:{};return(0,deprecated_36px_size.M)({componentName:"InputControl",__next40pxDefaultSize,size,__shouldNotWarnDeprecated36pxSize}),(0,jsx_runtime.jsx)(base_control.Ay,{className:classes,help,id,__nextHasNoMarginBottom:!0,children:(0,jsx_runtime.jsx)(input_base.A,{__next40pxDefaultSize,__unstableInputWidth,disabled,gap:3,hideLabelFromVision,id,justify:"left",label,labelPosition,prefix,size,style,suffix,children:(0,jsx_runtime.jsx)(input_field,{...restProps,...helpProp,__next40pxDefaultSize,className:"components-input-control__input",disabled,id,isPressEnterToChange,onKeyDown,onValidate,paddingInlineStart:prefix?(0,space.x)(1):void 0,paddingInlineEnd:suffix?(0,space.x)(1):void 0,ref,size,stateReducer,...draftHookProps})})})}const InputControl=(0,react.forwardRef)(UnforwardedInputControl),input_control=InputControl;try{UnforwardedInputControl.displayName="UnforwardedInputControl",UnforwardedInputControl.__docgenInfo={description:"",displayName:"UnforwardedInputControl",props:{__unstableStateReducer:{defaultValue:null,description:"",name:"__unstableStateReducer",required:!1,type:{name:"StateReducer"}},labelPosition:{defaultValue:{value:"'top'"},description:"The position of the label.",name:"labelPosition",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"side"'},{value:'"bottom"'},{value:'"edge"'}]}},label:{defaultValue:null,description:"If this property is added, a label will be generated using label property as the content.",name:"label",required:!1,type:{name:"ReactNode"}},prefix:{defaultValue:null,description:"Renders an element on the left side of the input.\n\nBy default, the prefix is aligned with the edge of the input border, with no padding.\nIf you want to apply standard padding in accordance with the size variant, wrap the element in\nthe provided `` component.\n\n```jsx\nimport {\n __experimentalInputControl as InputControl,\n __experimentalInputControlPrefixWrapper as InputControlPrefixWrapper,\n} from '@wordpress/components';\n\n@}\n/>\n```",name:"prefix",required:!1,type:{name:"ReactNode"}},disabled:{defaultValue:{value:"false"},description:"If true, the `input` will be disabled.",name:"disabled",required:!1,type:{name:"boolean"}},size:{defaultValue:{value:"'default'"},description:"Adjusts the size of the input.",name:"size",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"small"'},{value:'"compact"'},{value:'"__unstable-large"'}]}},suffix:{defaultValue:null,description:"Renders an element on the right side of the input.\n\nBy default, the suffix is aligned with the edge of the input border, with no padding.\nIf you want to apply standard padding in accordance with the size variant, wrap the element in\nthe provided `` component.\n\n```jsx\nimport {\n __experimentalInputControl as InputControl,\n __experimentalInputControlSuffixWrapper as InputControlSuffixWrapper,\n} from '@wordpress/components';\n\n%}\n/>\n```",name:"suffix",required:!1,type:{name:"ReactNode"}},__next36pxDefaultSize:{defaultValue:{value:"false"},description:"Deprecated. Use `__next40pxDefaultSize` instead.\n@deprecated\n@ignore",name:"__next36pxDefaultSize",required:!1,type:{name:"boolean"}},__next40pxDefaultSize:{defaultValue:{value:"false"},description:"Start opting into the larger default height that will become the default size in a future version.",name:"__next40pxDefaultSize",required:!1,type:{name:"boolean"}},__shouldNotWarnDeprecated36pxSize:{defaultValue:null,description:"Do not throw a warning for the deprecated 36px default size.\nFor internal components of other components that already throw the warning.\n@ignore",name:"__shouldNotWarnDeprecated36pxSize",required:!1,type:{name:"boolean"}},__unstableInputWidth:{defaultValue:null,description:"",name:"__unstableInputWidth",required:!1,type:{name:"Width"}},hideLabelFromVision:{defaultValue:{value:"false"},description:"If true, the label will only be visible to screen readers.",name:"hideLabelFromVision",required:!1,type:{name:"boolean"}},help:{defaultValue:null,description:"Additional description for the control.\n\nOnly use for meaningful description or instructions for the control. An element containing the description will be programmatically associated to the BaseControl by the means of an `aria-describedby` attribute.",name:"help",required:!1,type:{name:"ReactNode"}},type:{defaultValue:{value:"'text'"},description:"Type of the input element to render.",name:"type",required:!1,type:{name:"HTMLInputTypeAttribute"}},onChange:{defaultValue:null,description:"A function that receives the value of the input.",name:"onChange",required:!1,type:{name:"InputChangeCallback<{}>"}},onDrag:{defaultValue:null,description:"",name:"onDrag",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},onDragEnd:{defaultValue:null,description:"",name:"onDragEnd",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},onDragStart:{defaultValue:null,description:"",name:"onDragStart",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},value:{defaultValue:null,description:"The current value of the input.",name:"value",required:!1,type:{name:"string"}},isDragEnabled:{defaultValue:{value:"false"},description:"If true, enables mouse drag gestures.",name:"isDragEnabled",required:!1,type:{name:"boolean"}},dragDirection:{defaultValue:{value:"'n'"},description:"Determines the drag axis.",name:"dragDirection",required:!1,type:{name:"enum",value:[{value:'"s"'},{value:'"n"'},{value:'"e"'},{value:'"w"'}]}},dragThreshold:{defaultValue:{value:"10"},description:"If `isDragEnabled` is true, this controls the amount of `px` to have been dragged before\nthe drag gesture is actually triggered.",name:"dragThreshold",required:!1,type:{name:"number"}},isPressEnterToChange:{defaultValue:{value:"false"},description:"If true, the `ENTER` key press is required in order to trigger an `onChange`.\nIf enabled, a change is also triggered when tabbing away (`onBlur`).",name:"isPressEnterToChange",required:!1,type:{name:"boolean"}},onValidate:{defaultValue:null,description:"",name:"onValidate",required:!1,type:{name:"(nextValue: string, event?: SyntheticEvent) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/input-control/index.tsx#UnforwardedInputControl"]={docgenInfo:UnforwardedInputControl.__docgenInfo,name:"UnforwardedInputControl",path:"packages/components/src/input-control/index.tsx#UnforwardedInputControl"})}catch(__react_docgen_typescript_loader_error){}try{InputControl.displayName="InputControl",InputControl.__docgenInfo={description:"InputControl components let users enter and edit text. This is an experimental component\nintended to (in time) merge with or replace `TextControl`.\n\n```jsx\nimport { __experimentalInputControl as InputControl } from '@wordpress/components';\nimport { useState } from 'react';\n\nconst Example = () => {\n const [ value, setValue ] = useState( '' );\n\n return (\n \t setValue( nextValue ?? '' ) }\n \t/>\n );\n};\n```",displayName:"InputControl",props:{__unstableStateReducer:{defaultValue:null,description:"",name:"__unstableStateReducer",required:!1,type:{name:"StateReducer"}},labelPosition:{defaultValue:{value:"'top'"},description:"The position of the label.",name:"labelPosition",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"side"'},{value:'"bottom"'},{value:'"edge"'}]}},label:{defaultValue:null,description:"If this property is added, a label will be generated using label property as the content.",name:"label",required:!1,type:{name:"ReactNode"}},prefix:{defaultValue:null,description:"Renders an element on the left side of the input.\n\nBy default, the prefix is aligned with the edge of the input border, with no padding.\nIf you want to apply standard padding in accordance with the size variant, wrap the element in\nthe provided `` component.\n\n```jsx\nimport {\n __experimentalInputControl as InputControl,\n __experimentalInputControlPrefixWrapper as InputControlPrefixWrapper,\n} from '@wordpress/components';\n\n@}\n/>\n```",name:"prefix",required:!1,type:{name:"ReactNode"}},disabled:{defaultValue:{value:"false"},description:"If true, the `input` will be disabled.",name:"disabled",required:!1,type:{name:"boolean"}},size:{defaultValue:{value:"'default'"},description:"Adjusts the size of the input.",name:"size",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"small"'},{value:'"compact"'},{value:'"__unstable-large"'}]}},suffix:{defaultValue:null,description:"Renders an element on the right side of the input.\n\nBy default, the suffix is aligned with the edge of the input border, with no padding.\nIf you want to apply standard padding in accordance with the size variant, wrap the element in\nthe provided `` component.\n\n```jsx\nimport {\n __experimentalInputControl as InputControl,\n __experimentalInputControlSuffixWrapper as InputControlSuffixWrapper,\n} from '@wordpress/components';\n\n%}\n/>\n```",name:"suffix",required:!1,type:{name:"ReactNode"}},__next36pxDefaultSize:{defaultValue:{value:"false"},description:"Deprecated. Use `__next40pxDefaultSize` instead.\n@deprecated\n@ignore",name:"__next36pxDefaultSize",required:!1,type:{name:"boolean"}},__next40pxDefaultSize:{defaultValue:{value:"false"},description:"Start opting into the larger default height that will become the default size in a future version.",name:"__next40pxDefaultSize",required:!1,type:{name:"boolean"}},__shouldNotWarnDeprecated36pxSize:{defaultValue:null,description:"Do not throw a warning for the deprecated 36px default size.\nFor internal components of other components that already throw the warning.\n@ignore",name:"__shouldNotWarnDeprecated36pxSize",required:!1,type:{name:"boolean"}},__unstableInputWidth:{defaultValue:null,description:"",name:"__unstableInputWidth",required:!1,type:{name:"Width"}},hideLabelFromVision:{defaultValue:{value:"false"},description:"If true, the label will only be visible to screen readers.",name:"hideLabelFromVision",required:!1,type:{name:"boolean"}},help:{defaultValue:null,description:"Additional description for the control.\n\nOnly use for meaningful description or instructions for the control. An element containing the description will be programmatically associated to the BaseControl by the means of an `aria-describedby` attribute.",name:"help",required:!1,type:{name:"ReactNode"}},type:{defaultValue:{value:"'text'"},description:"Type of the input element to render.",name:"type",required:!1,type:{name:"HTMLInputTypeAttribute"}},onChange:{defaultValue:null,description:"A function that receives the value of the input.",name:"onChange",required:!1,type:{name:"InputChangeCallback<{}>"}},onDrag:{defaultValue:null,description:"",name:"onDrag",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},onDragEnd:{defaultValue:null,description:"",name:"onDragEnd",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},onDragStart:{defaultValue:null,description:"",name:"onDragStart",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},value:{defaultValue:null,description:"The current value of the input.",name:"value",required:!1,type:{name:"string"}},isDragEnabled:{defaultValue:{value:"false"},description:"If true, enables mouse drag gestures.",name:"isDragEnabled",required:!1,type:{name:"boolean"}},dragDirection:{defaultValue:{value:"'n'"},description:"Determines the drag axis.",name:"dragDirection",required:!1,type:{name:"enum",value:[{value:'"s"'},{value:'"n"'},{value:'"e"'},{value:'"w"'}]}},dragThreshold:{defaultValue:{value:"10"},description:"If `isDragEnabled` is true, this controls the amount of `px` to have been dragged before\nthe drag gesture is actually triggered.",name:"dragThreshold",required:!1,type:{name:"number"}},isPressEnterToChange:{defaultValue:{value:"false"},description:"If true, the `ENTER` key press is required in order to trigger an `onChange`.\nIf enabled, a change is also triggered when tabbing away (`onBlur`).",name:"isPressEnterToChange",required:!1,type:{name:"boolean"}},onValidate:{defaultValue:null,description:"",name:"onValidate",required:!1,type:{name:"(nextValue: string, event?: SyntheticEvent) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/input-control/index.tsx#InputControl"]={docgenInfo:InputControl.__docgenInfo,name:"InputControl",path:"packages/components/src/input-control/index.tsx#InputControl"})}catch(__react_docgen_typescript_loader_error){}try{inputcontrol.displayName="inputcontrol",inputcontrol.__docgenInfo={description:"InputControl components let users enter and edit text. This is an experimental component\nintended to (in time) merge with or replace `TextControl`.\n\n```jsx\nimport { __experimentalInputControl as InputControl } from '@wordpress/components';\nimport { useState } from 'react';\n\nconst Example = () => {\n const [ value, setValue ] = useState( '' );\n\n return (\n \t setValue( nextValue ?? '' ) }\n \t/>\n );\n};\n```",displayName:"inputcontrol",props:{__unstableStateReducer:{defaultValue:null,description:"",name:"__unstableStateReducer",required:!1,type:{name:"StateReducer"}},labelPosition:{defaultValue:{value:"'top'"},description:"The position of the label.",name:"labelPosition",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"side"'},{value:'"bottom"'},{value:'"edge"'}]}},label:{defaultValue:null,description:"If this property is added, a label will be generated using label property as the content.",name:"label",required:!1,type:{name:"ReactNode"}},prefix:{defaultValue:null,description:"Renders an element on the left side of the input.\n\nBy default, the prefix is aligned with the edge of the input border, with no padding.\nIf you want to apply standard padding in accordance with the size variant, wrap the element in\nthe provided `` component.\n\n```jsx\nimport {\n __experimentalInputControl as InputControl,\n __experimentalInputControlPrefixWrapper as InputControlPrefixWrapper,\n} from '@wordpress/components';\n\n@}\n/>\n```",name:"prefix",required:!1,type:{name:"ReactNode"}},disabled:{defaultValue:{value:"false"},description:"If true, the `input` will be disabled.",name:"disabled",required:!1,type:{name:"boolean"}},size:{defaultValue:{value:"'default'"},description:"Adjusts the size of the input.",name:"size",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"small"'},{value:'"compact"'},{value:'"__unstable-large"'}]}},suffix:{defaultValue:null,description:"Renders an element on the right side of the input.\n\nBy default, the suffix is aligned with the edge of the input border, with no padding.\nIf you want to apply standard padding in accordance with the size variant, wrap the element in\nthe provided `` component.\n\n```jsx\nimport {\n __experimentalInputControl as InputControl,\n __experimentalInputControlSuffixWrapper as InputControlSuffixWrapper,\n} from '@wordpress/components';\n\n%}\n/>\n```",name:"suffix",required:!1,type:{name:"ReactNode"}},__next36pxDefaultSize:{defaultValue:{value:"false"},description:"Deprecated. Use `__next40pxDefaultSize` instead.\n@deprecated\n@ignore",name:"__next36pxDefaultSize",required:!1,type:{name:"boolean"}},__next40pxDefaultSize:{defaultValue:{value:"false"},description:"Start opting into the larger default height that will become the default size in a future version.",name:"__next40pxDefaultSize",required:!1,type:{name:"boolean"}},__shouldNotWarnDeprecated36pxSize:{defaultValue:null,description:"Do not throw a warning for the deprecated 36px default size.\nFor internal components of other components that already throw the warning.\n@ignore",name:"__shouldNotWarnDeprecated36pxSize",required:!1,type:{name:"boolean"}},__unstableInputWidth:{defaultValue:null,description:"",name:"__unstableInputWidth",required:!1,type:{name:"Width"}},hideLabelFromVision:{defaultValue:{value:"false"},description:"If true, the label will only be visible to screen readers.",name:"hideLabelFromVision",required:!1,type:{name:"boolean"}},help:{defaultValue:null,description:"Additional description for the control.\n\nOnly use for meaningful description or instructions for the control. An element containing the description will be programmatically associated to the BaseControl by the means of an `aria-describedby` attribute.",name:"help",required:!1,type:{name:"ReactNode"}},type:{defaultValue:{value:"'text'"},description:"Type of the input element to render.",name:"type",required:!1,type:{name:"HTMLInputTypeAttribute"}},onChange:{defaultValue:null,description:"A function that receives the value of the input.",name:"onChange",required:!1,type:{name:"InputChangeCallback<{}>"}},onDrag:{defaultValue:null,description:"",name:"onDrag",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},onDragEnd:{defaultValue:null,description:"",name:"onDragEnd",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},onDragStart:{defaultValue:null,description:"",name:"onDragStart",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},value:{defaultValue:null,description:"The current value of the input.",name:"value",required:!1,type:{name:"string"}},isDragEnabled:{defaultValue:{value:"false"},description:"If true, enables mouse drag gestures.",name:"isDragEnabled",required:!1,type:{name:"boolean"}},dragDirection:{defaultValue:{value:"'n'"},description:"Determines the drag axis.",name:"dragDirection",required:!1,type:{name:"enum",value:[{value:'"s"'},{value:'"n"'},{value:'"e"'},{value:'"w"'}]}},dragThreshold:{defaultValue:{value:"10"},description:"If `isDragEnabled` is true, this controls the amount of `px` to have been dragged before\nthe drag gesture is actually triggered.",name:"dragThreshold",required:!1,type:{name:"number"}},isPressEnterToChange:{defaultValue:{value:"false"},description:"If true, the `ENTER` key press is required in order to trigger an `onChange`.\nIf enabled, a change is also triggered when tabbing away (`onBlur`).",name:"isPressEnterToChange",required:!1,type:{name:"boolean"}},onValidate:{defaultValue:null,description:"",name:"onValidate",required:!1,type:{name:"(nextValue: string, event?: SyntheticEvent) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/input-control/index.tsx#inputcontrol"]={docgenInfo:inputcontrol.__docgenInfo,name:"inputcontrol",path:"packages/components/src/input-control/index.tsx#inputcontrol"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/input-control/reducer/actions.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{PL:()=>CHANGE,Qf:()=>DRAG_START,Ry:()=>DRAG_END,Ut:()=>RESET,W3:()=>CONTROL,bR:()=>PRESS_ENTER,cJ:()=>COMMIT,j:()=>DRAG,r7:()=>PRESS_DOWN,uY:()=>INVALIDATE,wX:()=>PRESS_UP});const CHANGE="CHANGE",COMMIT="COMMIT",CONTROL="CONTROL",DRAG_END="DRAG_END",DRAG_START="DRAG_START",DRAG="DRAG",INVALIDATE="INVALIDATE",PRESS_DOWN="PRESS_DOWN",PRESS_ENTER="PRESS_ENTER",PRESS_UP="PRESS_UP",RESET="RESET"},"./packages/components/src/search-control/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>search_control});var clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),use_instance_id=__webpack_require__("./packages/compose/build-module/hooks/use-instance-id/index.js"),use_merge_refs=__webpack_require__("./packages/compose/build-module/hooks/use-merge-refs/index.js"),build_module=__webpack_require__("./packages/i18n/build-module/index.js"),icon=__webpack_require__("./packages/icons/build-module/icon/index.js"),search=__webpack_require__("./packages/icons/build-module/library/search.js"),close_small=__webpack_require__("./packages/icons/build-module/library/close-small.js"),react=__webpack_require__("./node_modules/react/index.js"),deprecated_build_module=__webpack_require__("./packages/deprecated/build-module/index.js"),src_button=__webpack_require__("./packages/components/src/button/index.tsx"),context_system_provider=__webpack_require__("./packages/components/src/context/context-system-provider.js"),emotion_styled_base_browser_esm=__webpack_require__("./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),space=__webpack_require__("./packages/components/src/utils/space.ts"),input_control=__webpack_require__("./packages/components/src/input-control/index.tsx"),colors_values=__webpack_require__("./packages/components/src/utils/colors-values.js");const inlinePadding=({size})=>(0,space.x)("compact"===size?1:2),SuffixItemWrapper=(0,emotion_styled_base_browser_esm.A)("div",{target:"effl84m1"})("display:flex;padding-inline-end:",inlinePadding,";svg{fill:currentColor;}"),StyledInputControl=(0,emotion_styled_base_browser_esm.A)(input_control.Ay,{target:"effl84m0"})("input[type='search']{&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{-webkit-appearance:none;}}&:not( :focus-within ){--wp-components-color-background:",colors_values.l.theme.gray[100],";}");var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function SuffixItem({searchRef,value,onChange,onClose}){if(!onClose&&!value)return(0,jsx_runtime.jsx)(icon.A,{icon:search.A});onClose&&(0,deprecated_build_module.A)("`onClose` prop in wp.components.SearchControl",{since:"6.8"});return(0,jsx_runtime.jsx)(src_button.Ay,{size:"small",icon:close_small.A,label:onClose?(0,build_module.__)("Close search"):(0,build_module.__)("Reset search"),onClick:null!=onClose?onClose:()=>{onChange(""),searchRef.current?.focus()}})}const SearchControl=(0,react.forwardRef)((function UnforwardedSearchControl({__nextHasNoMarginBottom=!1,className,onChange,value,label=(0,build_module.__)("Search"),placeholder=(0,build_module.__)("Search"),hideLabelFromVision=!0,onClose,size="default",...restProps},forwardedRef){const{disabled,...filteredRestProps}=restProps,searchRef=(0,react.useRef)(null),instanceId=(0,use_instance_id.A)(SearchControl,"components-search-control"),contextValue=(0,react.useMemo)((()=>({BaseControl:{_overrides:{__nextHasNoMarginBottom},__associatedWPComponentName:"SearchControl"},InputBase:{isBorderless:!0}})),[__nextHasNoMarginBottom]);return(0,jsx_runtime.jsx)(context_system_provider.c7,{value:contextValue,children:(0,jsx_runtime.jsx)(StyledInputControl,{__next40pxDefaultSize:!0,id:instanceId,hideLabelFromVision,label,ref:(0,use_merge_refs.A)([searchRef,forwardedRef]),type:"search",size,className:(0,clsx.A)("components-search-control",className),onChange:nextValue=>onChange(null!=nextValue?nextValue:""),autoComplete:"off",placeholder,value:null!=value?value:"",suffix:(0,jsx_runtime.jsx)(SuffixItemWrapper,{size,children:(0,jsx_runtime.jsx)(SuffixItem,{searchRef,value,onChange,onClose})}),...filteredRestProps})})})),search_control=SearchControl;try{SearchControl.displayName="SearchControl",SearchControl.__docgenInfo={description:"SearchControl components let users display a search control.\n\n```jsx\nimport { SearchControl } from '@wordpress/components';\nimport { useState } from '@wordpress/element';\n\nfunction MySearchControl( { className, setState } ) {\n const [ searchInput, setSearchInput ] = useState( '' );\n\n return (\n \n );\n}\n```",displayName:"SearchControl",props:{label:{defaultValue:{value:"'Search'"},description:"The accessible label for the input.\n\nA label should always be provided as an accessibility best practice,\neven when a placeholder is defined and `hideLabelFromVision` is `true`.",name:"label",required:!1,type:{name:"string"}},onChange:{defaultValue:null,description:"A function that receives the value of the input when the value is changed.",name:"onChange",required:!0,type:{name:"(value: string) => void"}},onDrag:{defaultValue:null,description:"@ignore",name:"onDrag",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},onDragEnd:{defaultValue:null,description:"@ignore",name:"onDragEnd",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},onDragStart:{defaultValue:null,description:"@ignore",name:"onDragStart",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},size:{defaultValue:{value:"'default'"},description:"The size of the component",name:"size",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"compact"'}]}},value:{defaultValue:null,description:"The current value of the input.",name:"value",required:!1,type:{name:"string"}},onClose:{defaultValue:null,description:"When an `onClose` callback is provided, the search control will render a close button\nthat will trigger the given callback.\n\nUse this if you want the button to trigger your own logic to close the search field entirely,\nrather than just clearing the input value.\n@deprecated\n@ignore",name:"onClose",required:!1,type:{name:"() => void"}},placeholder:{defaultValue:{value:"'Search'"},description:"A placeholder for the input.",name:"placeholder",required:!1,type:{name:"string"}},__next40pxDefaultSize:{defaultValue:null,description:"@deprecated This is now the default.\n@ignore",name:"__next40pxDefaultSize",required:!1,type:{name:"boolean"}},hideLabelFromVision:{defaultValue:{value:"true"},description:"If true, the label will only be visible to screen readers.",name:"hideLabelFromVision",required:!1,type:{name:"boolean"}},help:{defaultValue:null,description:"Additional description for the control.\n\nOnly use for meaningful description or instructions for the control. An element containing the description will be programmatically associated to the BaseControl by the means of an `aria-describedby` attribute.",name:"help",required:!1,type:{name:"ReactNode"}},__nextHasNoMarginBottom:{defaultValue:{value:"false"},description:"Start opting into the new margin-free styles that will become the default in a future version.",name:"__nextHasNoMarginBottom",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/search-control/index.tsx#SearchControl"]={docgenInfo:SearchControl.__docgenInfo,name:"SearchControl",path:"packages/components/src/search-control/index.tsx#SearchControl"})}catch(__react_docgen_typescript_loader_error){}try{searchcontrol.displayName="searchcontrol",searchcontrol.__docgenInfo={description:"SearchControl components let users display a search control.\n\n```jsx\nimport { SearchControl } from '@wordpress/components';\nimport { useState } from '@wordpress/element';\n\nfunction MySearchControl( { className, setState } ) {\n const [ searchInput, setSearchInput ] = useState( '' );\n\n return (\n \n );\n}\n```",displayName:"searchcontrol",props:{label:{defaultValue:{value:"'Search'"},description:"The accessible label for the input.\n\nA label should always be provided as an accessibility best practice,\neven when a placeholder is defined and `hideLabelFromVision` is `true`.",name:"label",required:!1,type:{name:"string"}},onChange:{defaultValue:null,description:"A function that receives the value of the input when the value is changed.",name:"onChange",required:!0,type:{name:"(value: string) => void"}},onDrag:{defaultValue:null,description:"@ignore",name:"onDrag",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},onDragEnd:{defaultValue:null,description:"@ignore",name:"onDragEnd",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},onDragStart:{defaultValue:null,description:"@ignore",name:"onDragStart",required:!1,type:{name:'(dragProps: Omit, "event"> & { event: unknown; }) => void'}},size:{defaultValue:{value:"'default'"},description:"The size of the component",name:"size",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"compact"'}]}},value:{defaultValue:null,description:"The current value of the input.",name:"value",required:!1,type:{name:"string"}},onClose:{defaultValue:null,description:"When an `onClose` callback is provided, the search control will render a close button\nthat will trigger the given callback.\n\nUse this if you want the button to trigger your own logic to close the search field entirely,\nrather than just clearing the input value.\n@deprecated\n@ignore",name:"onClose",required:!1,type:{name:"() => void"}},placeholder:{defaultValue:{value:"'Search'"},description:"A placeholder for the input.",name:"placeholder",required:!1,type:{name:"string"}},__next40pxDefaultSize:{defaultValue:null,description:"@deprecated This is now the default.\n@ignore",name:"__next40pxDefaultSize",required:!1,type:{name:"boolean"}},hideLabelFromVision:{defaultValue:{value:"true"},description:"If true, the label will only be visible to screen readers.",name:"hideLabelFromVision",required:!1,type:{name:"boolean"}},help:{defaultValue:null,description:"Additional description for the control.\n\nOnly use for meaningful description or instructions for the control. An element containing the description will be programmatically associated to the BaseControl by the means of an `aria-describedby` attribute.",name:"help",required:!1,type:{name:"ReactNode"}},__nextHasNoMarginBottom:{defaultValue:{value:"false"},description:"Start opting into the new margin-free styles that will become the default in a future version.",name:"__nextHasNoMarginBottom",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["packages/components/src/search-control/index.tsx#searchcontrol"]={docgenInfo:searchcontrol.__docgenInfo,name:"searchcontrol",path:"packages/components/src/search-control/index.tsx#searchcontrol"})}catch(__react_docgen_typescript_loader_error){}},"./packages/components/src/utils/deprecated-36px-size.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{M:()=>maybeWarnDeprecated36pxSize});var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/deprecated/build-module/index.js");function maybeWarnDeprecated36pxSize({componentName,__next40pxDefaultSize,size,__shouldNotWarnDeprecated36pxSize}){__shouldNotWarnDeprecated36pxSize||__next40pxDefaultSize||void 0!==size&&"default"!==size||(0,_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_0__.A)(`36px default size for wp.components.${componentName}`,{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."})}},"./packages/components/src/utils/with-ignore-ime-events.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function withIgnoreIMEEvents(keydownHandler){return event=>{const{isComposing}="nativeEvent"in event?event.nativeEvent:event;isComposing||229===event.keyCode||keydownHandler(event)}}__webpack_require__.d(__webpack_exports__,{n:()=>withIgnoreIMEEvents})}}]); \ No newline at end of file diff --git a/4166.405de9d2.iframe.bundle.js b/4166.405de9d2.iframe.bundle.js new file mode 100644 index 00000000000000..8bc409ad13000a --- /dev/null +++ b/4166.405de9d2.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunkgutenberg=self.webpackChunkgutenberg||[]).push([[4166],{"./packages/block-library/build-module/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{JK:()=>registerCoreBlocks});var archives_namespaceObject={};__webpack_require__.r(archives_namespaceObject),__webpack_require__.d(archives_namespaceObject,{init:()=>init,metadata:()=>metadata,name:()=>archives_name,settings:()=>settings});var avatar_namespaceObject={};__webpack_require__.r(avatar_namespaceObject),__webpack_require__.d(avatar_namespaceObject,{init:()=>avatar_init,metadata:()=>avatar_metadata,name:()=>avatar_name,settings:()=>avatar_settings});var build_module_audio_namespaceObject={};__webpack_require__.r(build_module_audio_namespaceObject),__webpack_require__.d(build_module_audio_namespaceObject,{init:()=>audio_init,metadata:()=>audio_metadata,name:()=>audio_name,settings:()=>audio_settings});var button_namespaceObject={};__webpack_require__.r(button_namespaceObject),__webpack_require__.d(button_namespaceObject,{init:()=>button_init,metadata:()=>button_metadata,name:()=>button_name,settings:()=>button_settings});var build_module_buttons_namespaceObject={};__webpack_require__.r(build_module_buttons_namespaceObject),__webpack_require__.d(build_module_buttons_namespaceObject,{init:()=>buttons_init,metadata:()=>buttons_metadata,name:()=>buttons_name,settings:()=>buttons_settings});var build_module_calendar_namespaceObject={};__webpack_require__.r(build_module_calendar_namespaceObject),__webpack_require__.d(build_module_calendar_namespaceObject,{init:()=>calendar_init,metadata:()=>calendar_metadata,name:()=>calendar_name,settings:()=>calendar_settings});var categories_namespaceObject={};__webpack_require__.r(categories_namespaceObject),__webpack_require__.d(categories_namespaceObject,{init:()=>categories_init,metadata:()=>categories_metadata,name:()=>categories_name,settings:()=>categories_settings});var freeform_namespaceObject={};__webpack_require__.r(freeform_namespaceObject),__webpack_require__.d(freeform_namespaceObject,{init:()=>freeform_init,metadata:()=>freeform_metadata,name:()=>freeform_name,settings:()=>freeform_settings});var code_namespaceObject={};__webpack_require__.r(code_namespaceObject),__webpack_require__.d(code_namespaceObject,{init:()=>code_init,metadata:()=>code_metadata,name:()=>code_name,settings:()=>code_settings});var build_module_column_namespaceObject={};__webpack_require__.r(build_module_column_namespaceObject),__webpack_require__.d(build_module_column_namespaceObject,{init:()=>column_init,metadata:()=>column_metadata,name:()=>column_name,settings:()=>column_settings});var build_module_columns_namespaceObject={};__webpack_require__.r(build_module_columns_namespaceObject),__webpack_require__.d(build_module_columns_namespaceObject,{init:()=>columns_init,metadata:()=>columns_metadata,name:()=>columns_name,settings:()=>columns_settings});var comments_namespaceObject={};__webpack_require__.r(comments_namespaceObject),__webpack_require__.d(comments_namespaceObject,{init:()=>comments_init,metadata:()=>comments_metadata,name:()=>comments_name,settings:()=>comments_settings});var comment_author_avatar_namespaceObject={};__webpack_require__.r(comment_author_avatar_namespaceObject),__webpack_require__.d(comment_author_avatar_namespaceObject,{init:()=>comment_author_avatar_init,metadata:()=>comment_author_avatar_metadata,name:()=>comment_author_avatar_name,settings:()=>comment_author_avatar_settings});var build_module_comment_author_name_namespaceObject={};__webpack_require__.r(build_module_comment_author_name_namespaceObject),__webpack_require__.d(build_module_comment_author_name_namespaceObject,{init:()=>comment_author_name_init,metadata:()=>comment_author_name_metadata,name:()=>comment_author_name_name,settings:()=>comment_author_name_settings});var build_module_comment_content_namespaceObject={};__webpack_require__.r(build_module_comment_content_namespaceObject),__webpack_require__.d(build_module_comment_content_namespaceObject,{init:()=>comment_content_init,metadata:()=>comment_content_metadata,name:()=>comment_content_name,settings:()=>comment_content_settings});var comment_date_namespaceObject={};__webpack_require__.r(comment_date_namespaceObject),__webpack_require__.d(comment_date_namespaceObject,{init:()=>comment_date_init,metadata:()=>comment_date_metadata,name:()=>comment_date_name,settings:()=>comment_date_settings});var build_module_comment_edit_link_namespaceObject={};__webpack_require__.r(build_module_comment_edit_link_namespaceObject),__webpack_require__.d(build_module_comment_edit_link_namespaceObject,{init:()=>comment_edit_link_init,metadata:()=>comment_edit_link_metadata,name:()=>comment_edit_link_name,settings:()=>comment_edit_link_settings});var build_module_comment_reply_link_namespaceObject={};__webpack_require__.r(build_module_comment_reply_link_namespaceObject),__webpack_require__.d(build_module_comment_reply_link_namespaceObject,{init:()=>comment_reply_link_init,metadata:()=>comment_reply_link_metadata,name:()=>comment_reply_link_name,settings:()=>comment_reply_link_settings});var comment_template_namespaceObject={};__webpack_require__.r(comment_template_namespaceObject),__webpack_require__.d(comment_template_namespaceObject,{init:()=>comment_template_init,metadata:()=>comment_template_metadata,name:()=>comment_template_name,settings:()=>comment_template_settings});var comments_pagination_previous_namespaceObject={};__webpack_require__.r(comments_pagination_previous_namespaceObject),__webpack_require__.d(comments_pagination_previous_namespaceObject,{init:()=>comments_pagination_previous_init,metadata:()=>comments_pagination_previous_metadata,name:()=>comments_pagination_previous_name,settings:()=>comments_pagination_previous_settings});var comments_pagination_namespaceObject={};__webpack_require__.r(comments_pagination_namespaceObject),__webpack_require__.d(comments_pagination_namespaceObject,{init:()=>comments_pagination_init,metadata:()=>comments_pagination_metadata,name:()=>comments_pagination_name,settings:()=>comments_pagination_settings});var comments_pagination_next_namespaceObject={};__webpack_require__.r(comments_pagination_next_namespaceObject),__webpack_require__.d(comments_pagination_next_namespaceObject,{init:()=>comments_pagination_next_init,metadata:()=>comments_pagination_next_metadata,name:()=>comments_pagination_next_name,settings:()=>comments_pagination_next_settings});var comments_pagination_numbers_namespaceObject={};__webpack_require__.r(comments_pagination_numbers_namespaceObject),__webpack_require__.d(comments_pagination_numbers_namespaceObject,{init:()=>comments_pagination_numbers_init,metadata:()=>comments_pagination_numbers_metadata,name:()=>comments_pagination_numbers_name,settings:()=>comments_pagination_numbers_settings});var comments_title_namespaceObject={};__webpack_require__.r(comments_title_namespaceObject),__webpack_require__.d(comments_title_namespaceObject,{init:()=>comments_title_init,metadata:()=>comments_title_metadata,name:()=>comments_title_name,settings:()=>comments_title_settings});var build_module_cover_namespaceObject={};__webpack_require__.r(build_module_cover_namespaceObject),__webpack_require__.d(build_module_cover_namespaceObject,{init:()=>cover_init,metadata:()=>cover_metadata,name:()=>cover_name,settings:()=>cover_settings});var build_module_details_namespaceObject={};__webpack_require__.r(build_module_details_namespaceObject),__webpack_require__.d(build_module_details_namespaceObject,{init:()=>details_init,metadata:()=>details_metadata,name:()=>details_name,settings:()=>details_settings});var embed_namespaceObject={};__webpack_require__.r(embed_namespaceObject),__webpack_require__.d(embed_namespaceObject,{init:()=>embed_init,metadata:()=>embed_metadata,name:()=>embed_name,settings:()=>embed_settings});var file_namespaceObject={};__webpack_require__.r(file_namespaceObject),__webpack_require__.d(file_namespaceObject,{init:()=>file_init,metadata:()=>file_metadata,name:()=>file_name,settings:()=>file_settings});var build_module_form_namespaceObject={};__webpack_require__.r(build_module_form_namespaceObject),__webpack_require__.d(build_module_form_namespaceObject,{init:()=>form_init,metadata:()=>form_metadata,name:()=>form_name,settings:()=>form_settings});var form_input_namespaceObject={};__webpack_require__.r(form_input_namespaceObject),__webpack_require__.d(form_input_namespaceObject,{init:()=>form_input_init,metadata:()=>form_input_metadata,name:()=>form_input_name,settings:()=>form_input_settings});var form_submit_button_namespaceObject={};__webpack_require__.r(form_submit_button_namespaceObject),__webpack_require__.d(form_submit_button_namespaceObject,{init:()=>form_submit_button_init,metadata:()=>form_submit_button_metadata,name:()=>form_submit_button_name,settings:()=>form_submit_button_settings});var form_submission_notification_namespaceObject={};__webpack_require__.r(form_submission_notification_namespaceObject),__webpack_require__.d(form_submission_notification_namespaceObject,{init:()=>form_submission_notification_init,metadata:()=>form_submission_notification_metadata,name:()=>form_submission_notification_name,settings:()=>form_submission_notification_settings});var build_module_gallery_namespaceObject={};__webpack_require__.r(build_module_gallery_namespaceObject),__webpack_require__.d(build_module_gallery_namespaceObject,{init:()=>gallery_init,metadata:()=>gallery_metadata,name:()=>gallery_name,settings:()=>gallery_settings});var group_namespaceObject={};__webpack_require__.r(group_namespaceObject),__webpack_require__.d(group_namespaceObject,{init:()=>group_init,metadata:()=>group_metadata,name:()=>group_name,settings:()=>group_settings});var build_module_heading_namespaceObject={};__webpack_require__.r(build_module_heading_namespaceObject),__webpack_require__.d(build_module_heading_namespaceObject,{init:()=>heading_init,metadata:()=>heading_metadata,name:()=>heading_name,settings:()=>heading_settings});var home_link_namespaceObject={};__webpack_require__.r(home_link_namespaceObject),__webpack_require__.d(home_link_namespaceObject,{init:()=>home_link_init,metadata:()=>home_link_metadata,name:()=>home_link_name,settings:()=>home_link_settings});var build_module_html_namespaceObject={};__webpack_require__.r(build_module_html_namespaceObject),__webpack_require__.d(build_module_html_namespaceObject,{init:()=>html_init,metadata:()=>html_metadata,name:()=>html_name,settings:()=>html_settings});var build_module_image_namespaceObject={};__webpack_require__.r(build_module_image_namespaceObject),__webpack_require__.d(build_module_image_namespaceObject,{init:()=>image_init,metadata:()=>image_metadata,name:()=>image_name,settings:()=>image_settings});var latest_comments_namespaceObject={};__webpack_require__.r(latest_comments_namespaceObject),__webpack_require__.d(latest_comments_namespaceObject,{init:()=>latest_comments_init,metadata:()=>latest_comments_metadata,name:()=>latest_comments_name,settings:()=>latest_comments_settings});var latest_posts_namespaceObject={};__webpack_require__.r(latest_posts_namespaceObject),__webpack_require__.d(latest_posts_namespaceObject,{init:()=>latest_posts_init,metadata:()=>latest_posts_metadata,name:()=>latest_posts_name,settings:()=>latest_posts_settings});var build_module_list_namespaceObject={};__webpack_require__.r(build_module_list_namespaceObject),__webpack_require__.d(build_module_list_namespaceObject,{init:()=>list_init,metadata:()=>list_metadata,name:()=>list_name,settings:()=>list_settings});var build_module_list_item_namespaceObject={};__webpack_require__.r(build_module_list_item_namespaceObject),__webpack_require__.d(build_module_list_item_namespaceObject,{init:()=>list_item_init,metadata:()=>list_item_metadata,name:()=>list_item_name,settings:()=>list_item_settings});var loginout_namespaceObject={};__webpack_require__.r(loginout_namespaceObject),__webpack_require__.d(loginout_namespaceObject,{init:()=>loginout_init,metadata:()=>loginout_metadata,name:()=>loginout_name,settings:()=>loginout_settings});var media_text_namespaceObject={};__webpack_require__.r(media_text_namespaceObject),__webpack_require__.d(media_text_namespaceObject,{init:()=>media_text_init,metadata:()=>media_text_metadata,name:()=>media_text_name,settings:()=>media_text_settings});var missing_namespaceObject={};__webpack_require__.r(missing_namespaceObject),__webpack_require__.d(missing_namespaceObject,{init:()=>missing_init,metadata:()=>missing_metadata,name:()=>missing_name,settings:()=>missing_settings});var more_namespaceObject={};__webpack_require__.r(more_namespaceObject),__webpack_require__.d(more_namespaceObject,{init:()=>more_init,metadata:()=>more_metadata,name:()=>more_name,settings:()=>more_settings});var navigation_namespaceObject={};__webpack_require__.r(navigation_namespaceObject),__webpack_require__.d(navigation_namespaceObject,{init:()=>navigation_init,metadata:()=>navigation_metadata,name:()=>navigation_name,settings:()=>navigation_settings});var navigation_link_namespaceObject={};__webpack_require__.r(navigation_link_namespaceObject),__webpack_require__.d(navigation_link_namespaceObject,{init:()=>navigation_link_init,metadata:()=>navigation_link_metadata,name:()=>navigation_link_name,settings:()=>navigation_link_settings});var navigation_submenu_namespaceObject={};__webpack_require__.r(navigation_submenu_namespaceObject),__webpack_require__.d(navigation_submenu_namespaceObject,{init:()=>navigation_submenu_init,metadata:()=>navigation_submenu_metadata,name:()=>navigation_submenu_name,settings:()=>navigation_submenu_settings});var nextpage_namespaceObject={};__webpack_require__.r(nextpage_namespaceObject),__webpack_require__.d(nextpage_namespaceObject,{init:()=>nextpage_init,metadata:()=>nextpage_metadata,name:()=>nextpage_name,settings:()=>nextpage_settings});var pattern_namespaceObject={};__webpack_require__.r(pattern_namespaceObject),__webpack_require__.d(pattern_namespaceObject,{init:()=>pattern_init,metadata:()=>pattern_metadata,name:()=>pattern_name,settings:()=>pattern_settings});var page_list_namespaceObject={};__webpack_require__.r(page_list_namespaceObject),__webpack_require__.d(page_list_namespaceObject,{init:()=>page_list_init,metadata:()=>page_list_metadata,name:()=>page_list_name,settings:()=>page_list_settings});var page_list_item_namespaceObject={};__webpack_require__.r(page_list_item_namespaceObject),__webpack_require__.d(page_list_item_namespaceObject,{init:()=>page_list_item_init,metadata:()=>page_list_item_metadata,name:()=>page_list_item_name,settings:()=>page_list_item_settings});var paragraph_namespaceObject={};__webpack_require__.r(paragraph_namespaceObject),__webpack_require__.d(paragraph_namespaceObject,{init:()=>paragraph_init,metadata:()=>paragraph_metadata,name:()=>paragraph_name,settings:()=>paragraph_settings});var build_module_post_author_namespaceObject={};__webpack_require__.r(build_module_post_author_namespaceObject),__webpack_require__.d(build_module_post_author_namespaceObject,{init:()=>post_author_init,metadata:()=>post_author_metadata,name:()=>post_author_name,settings:()=>post_author_settings});var post_author_name_namespaceObject={};__webpack_require__.r(post_author_name_namespaceObject),__webpack_require__.d(post_author_name_namespaceObject,{init:()=>post_author_name_init,metadata:()=>post_author_name_metadata,name:()=>post_author_name_name,settings:()=>post_author_name_settings});var post_author_biography_namespaceObject={};__webpack_require__.r(post_author_biography_namespaceObject),__webpack_require__.d(post_author_biography_namespaceObject,{init:()=>post_author_biography_init,metadata:()=>post_author_biography_metadata,name:()=>post_author_biography_name,settings:()=>post_author_biography_settings});var post_comment_namespaceObject={};__webpack_require__.r(post_comment_namespaceObject),__webpack_require__.d(post_comment_namespaceObject,{init:()=>post_comment_init,metadata:()=>post_comment_metadata,name:()=>post_comment_name,settings:()=>post_comment_settings});var build_module_post_comments_count_namespaceObject={};__webpack_require__.r(build_module_post_comments_count_namespaceObject),__webpack_require__.d(build_module_post_comments_count_namespaceObject,{init:()=>post_comments_count_init,metadata:()=>post_comments_count_metadata,name:()=>post_comments_count_name,settings:()=>post_comments_count_settings});var build_module_post_comments_form_namespaceObject={};__webpack_require__.r(build_module_post_comments_form_namespaceObject),__webpack_require__.d(build_module_post_comments_form_namespaceObject,{init:()=>post_comments_form_init,metadata:()=>post_comments_form_metadata,name:()=>post_comments_form_name,settings:()=>post_comments_form_settings});var post_comments_link_namespaceObject={};__webpack_require__.r(post_comments_link_namespaceObject),__webpack_require__.d(post_comments_link_namespaceObject,{init:()=>post_comments_link_init,metadata:()=>post_comments_link_metadata,name:()=>post_comments_link_name,settings:()=>post_comments_link_settings});var build_module_post_content_namespaceObject={};__webpack_require__.r(build_module_post_content_namespaceObject),__webpack_require__.d(build_module_post_content_namespaceObject,{init:()=>post_content_init,metadata:()=>post_content_metadata,name:()=>post_content_name,settings:()=>post_content_settings});var build_module_post_date_namespaceObject={};__webpack_require__.r(build_module_post_date_namespaceObject),__webpack_require__.d(build_module_post_date_namespaceObject,{init:()=>post_date_init,metadata:()=>post_date_metadata,name:()=>post_date_name,settings:()=>post_date_settings});var build_module_post_excerpt_namespaceObject={};__webpack_require__.r(build_module_post_excerpt_namespaceObject),__webpack_require__.d(build_module_post_excerpt_namespaceObject,{init:()=>post_excerpt_init,metadata:()=>post_excerpt_metadata,name:()=>post_excerpt_name,settings:()=>post_excerpt_settings});var post_featured_image_namespaceObject={};__webpack_require__.r(post_featured_image_namespaceObject),__webpack_require__.d(post_featured_image_namespaceObject,{init:()=>post_featured_image_init,metadata:()=>post_featured_image_metadata,name:()=>post_featured_image_name,settings:()=>post_featured_image_settings});var post_navigation_link_namespaceObject={};__webpack_require__.r(post_navigation_link_namespaceObject),__webpack_require__.d(post_navigation_link_namespaceObject,{init:()=>post_navigation_link_init,metadata:()=>post_navigation_link_metadata,name:()=>post_navigation_link_name,settings:()=>post_navigation_link_settings});var post_template_namespaceObject={};__webpack_require__.r(post_template_namespaceObject),__webpack_require__.d(post_template_namespaceObject,{init:()=>post_template_init,metadata:()=>post_template_metadata,name:()=>post_template_name,settings:()=>post_template_settings});var build_module_post_terms_namespaceObject={};__webpack_require__.r(build_module_post_terms_namespaceObject),__webpack_require__.d(build_module_post_terms_namespaceObject,{init:()=>post_terms_init,metadata:()=>post_terms_metadata,name:()=>post_terms_name,settings:()=>post_terms_settings});var post_time_to_read_namespaceObject={};__webpack_require__.r(post_time_to_read_namespaceObject),__webpack_require__.d(post_time_to_read_namespaceObject,{init:()=>post_time_to_read_init,metadata:()=>post_time_to_read_metadata,name:()=>post_time_to_read_name,settings:()=>post_time_to_read_settings});var post_title_namespaceObject={};__webpack_require__.r(post_title_namespaceObject),__webpack_require__.d(post_title_namespaceObject,{init:()=>post_title_init,metadata:()=>post_title_metadata,name:()=>post_title_name,settings:()=>post_title_settings});var build_module_preformatted_namespaceObject={};__webpack_require__.r(build_module_preformatted_namespaceObject),__webpack_require__.d(build_module_preformatted_namespaceObject,{init:()=>preformatted_init,metadata:()=>preformatted_metadata,name:()=>preformatted_name,settings:()=>preformatted_settings});var build_module_pullquote_namespaceObject={};__webpack_require__.r(build_module_pullquote_namespaceObject),__webpack_require__.d(build_module_pullquote_namespaceObject,{init:()=>pullquote_init,metadata:()=>pullquote_metadata,name:()=>pullquote_name,settings:()=>pullquote_settings});var query_namespaceObject={};__webpack_require__.r(query_namespaceObject),__webpack_require__.d(query_namespaceObject,{init:()=>query_init,metadata:()=>query_metadata,name:()=>query_name,settings:()=>query_settings});var query_no_results_namespaceObject={};__webpack_require__.r(query_no_results_namespaceObject),__webpack_require__.d(query_no_results_namespaceObject,{init:()=>query_no_results_init,metadata:()=>query_no_results_metadata,name:()=>query_no_results_name,settings:()=>query_no_results_settings});var build_module_query_pagination_namespaceObject={};__webpack_require__.r(build_module_query_pagination_namespaceObject),__webpack_require__.d(build_module_query_pagination_namespaceObject,{init:()=>query_pagination_init,metadata:()=>query_pagination_metadata,name:()=>query_pagination_name,settings:()=>query_pagination_settings});var build_module_query_pagination_next_namespaceObject={};__webpack_require__.r(build_module_query_pagination_next_namespaceObject),__webpack_require__.d(build_module_query_pagination_next_namespaceObject,{init:()=>query_pagination_next_init,metadata:()=>query_pagination_next_metadata,name:()=>query_pagination_next_name,settings:()=>query_pagination_next_settings});var build_module_query_pagination_numbers_namespaceObject={};__webpack_require__.r(build_module_query_pagination_numbers_namespaceObject),__webpack_require__.d(build_module_query_pagination_numbers_namespaceObject,{init:()=>query_pagination_numbers_init,metadata:()=>query_pagination_numbers_metadata,name:()=>query_pagination_numbers_name,settings:()=>query_pagination_numbers_settings});var build_module_query_pagination_previous_namespaceObject={};__webpack_require__.r(build_module_query_pagination_previous_namespaceObject),__webpack_require__.d(build_module_query_pagination_previous_namespaceObject,{init:()=>query_pagination_previous_init,metadata:()=>query_pagination_previous_metadata,name:()=>query_pagination_previous_name,settings:()=>query_pagination_previous_settings});var query_title_namespaceObject={};__webpack_require__.r(query_title_namespaceObject),__webpack_require__.d(query_title_namespaceObject,{init:()=>query_title_init,metadata:()=>query_title_metadata,name:()=>query_title_name,settings:()=>query_title_settings});var query_total_namespaceObject={};__webpack_require__.r(query_total_namespaceObject),__webpack_require__.d(query_total_namespaceObject,{init:()=>query_total_init,metadata:()=>query_total_metadata,name:()=>query_total_name,settings:()=>query_total_settings});var build_module_quote_namespaceObject={};__webpack_require__.r(build_module_quote_namespaceObject),__webpack_require__.d(build_module_quote_namespaceObject,{init:()=>quote_init,metadata:()=>quote_metadata,name:()=>quote_name,settings:()=>quote_settings});var block_namespaceObject={};__webpack_require__.r(block_namespaceObject),__webpack_require__.d(block_namespaceObject,{init:()=>block_init,metadata:()=>block_metadata,name:()=>block_name,settings:()=>block_settings});var read_more_namespaceObject={};__webpack_require__.r(read_more_namespaceObject),__webpack_require__.d(read_more_namespaceObject,{init:()=>read_more_init,metadata:()=>read_more_metadata,name:()=>read_more_name,settings:()=>read_more_settings});var build_module_rss_namespaceObject={};__webpack_require__.r(build_module_rss_namespaceObject),__webpack_require__.d(build_module_rss_namespaceObject,{init:()=>rss_init,metadata:()=>rss_metadata,name:()=>rss_name,settings:()=>rss_settings});var search_namespaceObject={};__webpack_require__.r(search_namespaceObject),__webpack_require__.d(search_namespaceObject,{init:()=>search_init,metadata:()=>search_metadata,name:()=>search_name,settings:()=>search_settings});var build_module_separator_namespaceObject={};__webpack_require__.r(build_module_separator_namespaceObject),__webpack_require__.d(build_module_separator_namespaceObject,{init:()=>separator_init,metadata:()=>separator_metadata,name:()=>separator_name,settings:()=>separator_settings});var build_module_shortcode_namespaceObject={};__webpack_require__.r(build_module_shortcode_namespaceObject),__webpack_require__.d(build_module_shortcode_namespaceObject,{init:()=>shortcode_init,metadata:()=>shortcode_metadata,name:()=>shortcode_name,settings:()=>shortcode_settings});var build_module_site_logo_namespaceObject={};__webpack_require__.r(build_module_site_logo_namespaceObject),__webpack_require__.d(build_module_site_logo_namespaceObject,{init:()=>site_logo_init,metadata:()=>site_logo_metadata,name:()=>site_logo_name,settings:()=>site_logo_settings});var site_tagline_namespaceObject={};__webpack_require__.r(site_tagline_namespaceObject),__webpack_require__.d(site_tagline_namespaceObject,{init:()=>site_tagline_init,metadata:()=>site_tagline_metadata,name:()=>site_tagline_name,settings:()=>site_tagline_settings});var site_title_namespaceObject={};__webpack_require__.r(site_title_namespaceObject),__webpack_require__.d(site_title_namespaceObject,{init:()=>site_title_init,metadata:()=>site_title_metadata,name:()=>site_title_name,settings:()=>site_title_settings});var social_link_namespaceObject={};__webpack_require__.r(social_link_namespaceObject),__webpack_require__.d(social_link_namespaceObject,{init:()=>social_link_init,metadata:()=>social_link_metadata,name:()=>social_link_name,settings:()=>social_link_settings});var social_links_namespaceObject={};__webpack_require__.r(social_links_namespaceObject),__webpack_require__.d(social_links_namespaceObject,{init:()=>social_links_init,metadata:()=>social_links_metadata,name:()=>social_links_name,settings:()=>social_links_settings});var spacer_namespaceObject={};__webpack_require__.r(spacer_namespaceObject),__webpack_require__.d(spacer_namespaceObject,{init:()=>spacer_init,metadata:()=>spacer_metadata,name:()=>spacer_name,settings:()=>spacer_settings});var build_module_table_namespaceObject={};__webpack_require__.r(build_module_table_namespaceObject),__webpack_require__.d(build_module_table_namespaceObject,{init:()=>table_init,metadata:()=>table_metadata,name:()=>table_name,settings:()=>table_settings});var build_module_table_of_contents_namespaceObject={};__webpack_require__.r(build_module_table_of_contents_namespaceObject),__webpack_require__.d(build_module_table_of_contents_namespaceObject,{init:()=>table_of_contents_init,metadata:()=>table_of_contents_metadata,name:()=>table_of_contents_name,settings:()=>table_of_contents_settings});var tag_cloud_namespaceObject={};__webpack_require__.r(tag_cloud_namespaceObject),__webpack_require__.d(tag_cloud_namespaceObject,{init:()=>tag_cloud_init,metadata:()=>tag_cloud_metadata,name:()=>tag_cloud_name,settings:()=>tag_cloud_settings});var template_part_namespaceObject={};__webpack_require__.r(template_part_namespaceObject),__webpack_require__.d(template_part_namespaceObject,{init:()=>template_part_init,metadata:()=>template_part_metadata,name:()=>template_part_name,settings:()=>template_part_settings});var build_module_term_description_namespaceObject={};__webpack_require__.r(build_module_term_description_namespaceObject),__webpack_require__.d(build_module_term_description_namespaceObject,{init:()=>term_description_init,metadata:()=>term_description_metadata,name:()=>term_description_name,settings:()=>term_description_settings});var text_columns_namespaceObject={};__webpack_require__.r(text_columns_namespaceObject),__webpack_require__.d(text_columns_namespaceObject,{init:()=>text_columns_init,metadata:()=>text_columns_metadata,name:()=>text_columns_name,settings:()=>text_columns_settings});var verse_namespaceObject={};__webpack_require__.r(verse_namespaceObject),__webpack_require__.d(verse_namespaceObject,{init:()=>verse_init,metadata:()=>verse_metadata,name:()=>verse_name,settings:()=>verse_settings});var build_module_video_namespaceObject={};__webpack_require__.r(build_module_video_namespaceObject),__webpack_require__.d(build_module_video_namespaceObject,{init:()=>video_init,metadata:()=>video_metadata,name:()=>video_name,settings:()=>video_settings});var footnotes_namespaceObject={};__webpack_require__.r(footnotes_namespaceObject),__webpack_require__.d(footnotes_namespaceObject,{init:()=>footnotes_init,metadata:()=>footnotes_metadata,name:()=>footnotes_name,settings:()=>footnotes_settings});var build_module=__webpack_require__("./packages/blocks/build-module/index.js"),svg=__webpack_require__("./packages/primitives/build-module/svg/index.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const library_archive=(0,jsx_runtime.jsx)(svg.t4,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,jsx_runtime.jsx)(svg.wA,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})});function initBlock(block){if(!block)return;const{metadata,settings,name}=block;return(0,build_module.xU)({name,...metadata},settings)}var component=__webpack_require__("./packages/components/build-module/tools-panel/tools-panel/component.js"),tools_panel_item_component=__webpack_require__("./packages/components/build-module/tools-panel/tools-panel-item/component.js"),toggle_control=__webpack_require__("./packages/components/build-module/toggle-control/index.js"),select_control=__webpack_require__("./packages/components/build-module/select-control/index.js"),disabled=__webpack_require__("./packages/components/build-module/disabled/index.js"),i18n_build_module=__webpack_require__("./packages/i18n/build-module/index.js"),block_editor_build_module=__webpack_require__("./packages/block-editor/build-module/index.js"),react=__webpack_require__("./node_modules/react/index.js"),with_select=__webpack_require__("./packages/data/build-module/components/with-select/index.js"),es6=__webpack_require__("./node_modules/fast-deep-equal/es6/index.js"),es6_default=__webpack_require__.n(es6),use_previous=__webpack_require__("./packages/compose/build-module/hooks/use-previous/index.js"),use_debounce=__webpack_require__("./packages/compose/build-module/hooks/use-debounce/index.js"),raw_html=__webpack_require__("./packages/element/build-module/raw-html.js"),api_fetch_build_module=__webpack_require__("./packages/api-fetch/build-module/index.js"),add_query_args=__webpack_require__("./packages/url/build-module/add-query-args.js"),build_module_placeholder=__webpack_require__("./packages/components/build-module/placeholder/index.js"),spinner=__webpack_require__("./packages/components/build-module/spinner/index.js");const EMPTY_OBJECT={};function DefaultEmptyResponsePlaceholder({className}){return(0,jsx_runtime.jsx)(build_module_placeholder.A,{className,children:(0,i18n_build_module.__)("Block rendered as empty.")})}function DefaultErrorResponsePlaceholder({response,className}){const errorMessage=(0,i18n_build_module.nv)((0,i18n_build_module.__)("Error loading block: %s"),response.errorMsg);return(0,jsx_runtime.jsx)(build_module_placeholder.A,{className,children:errorMessage})}function DefaultLoadingResponsePlaceholder({children,showLoader}){return(0,jsx_runtime.jsxs)("div",{style:{position:"relative"},children:[showLoader&&(0,jsx_runtime.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",marginTop:"-9px",marginLeft:"-9px"},children:(0,jsx_runtime.jsx)(spinner.Ay,{})}),(0,jsx_runtime.jsx)("div",{style:{opacity:showLoader?"0.3":1},children})]})}function ServerSideRender(props){const{attributes,block,className,httpMethod="GET",urlQueryArgs,skipBlockSupportAttributes=!1,EmptyResponsePlaceholder=DefaultEmptyResponsePlaceholder,ErrorResponsePlaceholder=DefaultErrorResponsePlaceholder,LoadingResponsePlaceholder=DefaultLoadingResponsePlaceholder}=props,isMountedRef=(0,react.useRef)(!1),[showLoader,setShowLoader]=(0,react.useState)(!1),fetchRequestRef=(0,react.useRef)(),[response,setResponse]=(0,react.useState)(null),prevProps=(0,use_previous.A)(props),[isLoading,setIsLoading]=(0,react.useState)(!1);function fetchData(){var _sanitizedAttributes,_sanitizedAttributes2;if(!isMountedRef.current)return;setIsLoading(!0);const timeout=setTimeout((()=>{setShowLoader(!0)}),1e3);let sanitizedAttributes=attributes&&(0,build_module.qH)(block,attributes);skipBlockSupportAttributes&&(sanitizedAttributes=function removeBlockSupportAttributes(attributes){const{backgroundColor,borderColor,fontFamily,fontSize,gradient,textColor,className,...restAttributes}=attributes,{border,color,elements,spacing,typography,...restStyles}=attributes?.style||EMPTY_OBJECT;return{...restAttributes,style:restStyles}}(sanitizedAttributes));const isPostRequest="POST"===httpMethod,urlAttributes=isPostRequest?null:null!==(_sanitizedAttributes=sanitizedAttributes)&&void 0!==_sanitizedAttributes?_sanitizedAttributes:null,path=function rendererPath(block,attributes=null,urlQueryArgs={}){return(0,add_query_args.F)(`/wp/v2/block-renderer/${block}`,{context:"edit",...null!==attributes?{attributes}:{},...urlQueryArgs})}(block,urlAttributes,urlQueryArgs),data=isPostRequest?{attributes:null!==(_sanitizedAttributes2=sanitizedAttributes)&&void 0!==_sanitizedAttributes2?_sanitizedAttributes2:null}:null,fetchRequest=fetchRequestRef.current=(0,api_fetch_build_module.A)({path,data,method:isPostRequest?"POST":"GET"}).then((fetchResponse=>{isMountedRef.current&&fetchRequest===fetchRequestRef.current&&fetchResponse&&setResponse(fetchResponse.rendered)})).catch((error=>{isMountedRef.current&&fetchRequest===fetchRequestRef.current&&setResponse({error:!0,errorMsg:error.message})})).finally((()=>{isMountedRef.current&&fetchRequest===fetchRequestRef.current&&(setIsLoading(!1),setShowLoader(!1),clearTimeout(timeout))}));return fetchRequest}const debouncedFetchData=(0,use_debounce.A)(fetchData,500);(0,react.useEffect)((()=>(isMountedRef.current=!0,()=>{isMountedRef.current=!1})),[]),(0,react.useEffect)((()=>{void 0===prevProps?fetchData():es6_default()(prevProps,props)||debouncedFetchData()}));const hasResponse=!!response,hasEmptyResponse=""===response,hasError=response?.error;return isLoading?(0,jsx_runtime.jsx)(LoadingResponsePlaceholder,{...props,showLoader,children:hasResponse&&(0,jsx_runtime.jsx)(raw_html.A,{className,children:response})}):hasEmptyResponse||!hasResponse?(0,jsx_runtime.jsx)(EmptyResponsePlaceholder,{...props}):hasError?(0,jsx_runtime.jsx)(ErrorResponsePlaceholder,{response,...props}):(0,jsx_runtime.jsx)(raw_html.A,{className,children:response})}const build_module_EMPTY_OBJECT={},server_side_render_build_module=(0,with_select.A)((select=>{const coreEditorSelect=select("core/editor");if(coreEditorSelect){const currentPostId=coreEditorSelect.getCurrentPostId();if(currentPostId&&"number"==typeof currentPostId)return{currentPostId}}return build_module_EMPTY_OBJECT}))((({urlQueryArgs=build_module_EMPTY_OBJECT,currentPostId,...props})=>{const newUrlQueryArgs=(0,react.useMemo)((()=>currentPostId?{post_id:currentPostId,...urlQueryArgs}:urlQueryArgs),[currentPostId,urlQueryArgs]);return(0,jsx_runtime.jsx)(ServerSideRender,{urlQueryArgs:newUrlQueryArgs,...props})}));var use_select=__webpack_require__("./packages/data/build-module/components/use-select/index.js"),blob_build_module=__webpack_require__("./packages/blob/build-module/index.js"),core_data_build_module=__webpack_require__("./packages/core-data/build-module/index.js"),use_viewport_match=__webpack_require__("./packages/compose/build-module/hooks/use-viewport-match/index.js");function useCanEditEntity(kind,name,recordId){return(0,use_select.A)((select=>select(core_data_build_module.M_).canUser("update",{kind,name,id:recordId})),[kind,name,recordId])}function useUploadMediaFromBlobURL(args={}){const latestArgsRef=(0,react.useRef)(args),hasUploadStartedRef=(0,react.useRef)(!1),{getSettings}=(0,use_select.A)(block_editor_build_module.M_);(0,react.useLayoutEffect)((()=>{latestArgsRef.current=args})),(0,react.useEffect)((()=>{if(hasUploadStartedRef.current)return;if(!latestArgsRef.current.url||!(0,blob_build_module.H8)(latestArgsRef.current.url))return;const file=(0,blob_build_module.SH)(latestArgsRef.current.url);if(!file)return;const{url,allowedTypes,onChange,onError}=latestArgsRef.current,{mediaUpload}=getSettings();hasUploadStartedRef.current=!0,mediaUpload({filesList:[file],allowedTypes,onFileChange:([media])=>{(0,blob_build_module.H8)(media?.url)||((0,blob_build_module.hK)(url),onChange(media),hasUploadStartedRef.current=!1)},onError:message=>{(0,blob_build_module.hK)(url),onError(message),hasUploadStartedRef.current=!1}})}),[getSettings])}function useToolsPanelDropdownMenuProps(){return(0,use_viewport_match.A)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}const metadata={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showLabel:{type:"boolean",default:!0},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{align:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-archives-editor"},{name:archives_name}=metadata,settings={icon:library_archive,example:{},edit:function ArchivesEdit({attributes,setAttributes}){const{showLabel,showPostCounts,displayAsDropdown,type}=attributes,dropdownMenuProps=useToolsPanelDropdownMenuProps();return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(block_editor_build_module.s1,{children:(0,jsx_runtime.jsxs)(component.A,{label:(0,i18n_build_module.__)("Settings"),resetAll:()=>{setAttributes({displayAsDropdown:!1,showLabel:!1,showPostCounts:!1,type:"monthly"})},dropdownMenuProps,children:[(0,jsx_runtime.jsx)(tools_panel_item_component.A,{label:(0,i18n_build_module.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>displayAsDropdown,onDeselect:()=>setAttributes({displayAsDropdown:!1}),children:(0,jsx_runtime.jsx)(toggle_control.A,{__nextHasNoMarginBottom:!0,label:(0,i18n_build_module.__)("Display as dropdown"),checked:displayAsDropdown,onChange:()=>setAttributes({displayAsDropdown:!displayAsDropdown})})}),displayAsDropdown&&(0,jsx_runtime.jsx)(tools_panel_item_component.A,{label:(0,i18n_build_module.__)("Show label"),isShownByDefault:!0,hasValue:()=>showLabel,onDeselect:()=>setAttributes({showLabel:!1}),children:(0,jsx_runtime.jsx)(toggle_control.A,{__nextHasNoMarginBottom:!0,label:(0,i18n_build_module.__)("Show label"),checked:showLabel,onChange:()=>setAttributes({showLabel:!showLabel})})}),(0,jsx_runtime.jsx)(tools_panel_item_component.A,{label:(0,i18n_build_module.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>showPostCounts,onDeselect:()=>setAttributes({showPostCounts:!1}),children:(0,jsx_runtime.jsx)(toggle_control.A,{__nextHasNoMarginBottom:!0,label:(0,i18n_build_module.__)("Show post counts"),checked:showPostCounts,onChange:()=>setAttributes({showPostCounts:!showPostCounts})})}),(0,jsx_runtime.jsx)(tools_panel_item_component.A,{label:(0,i18n_build_module.__)("Group by"),isShownByDefault:!0,hasValue:()=>!!type,onDeselect:()=>setAttributes({type:"monthly"}),children:(0,jsx_runtime.jsx)(select_control.A,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,i18n_build_module.__)("Group by"),options:[{label:(0,i18n_build_module.__)("Year"),value:"yearly"},{label:(0,i18n_build_module.__)("Month"),value:"monthly"},{label:(0,i18n_build_module.__)("Week"),value:"weekly"},{label:(0,i18n_build_module.__)("Day"),value:"daily"}],value:type,onChange:value=>setAttributes({type:value})})})]})}),(0,jsx_runtime.jsx)("div",{...(0,block_editor_build_module.Z0)(),children:(0,jsx_runtime.jsx)(disabled.A,{children:(0,jsx_runtime.jsx)(server_side_render_build_module,{block:"core/archives",skipBlockSupportAttributes:!0,attributes})})})]})}},init=()=>initBlock({name:archives_name,metadata,settings});var comment_author_avatar=__webpack_require__("./packages/icons/build-module/library/comment-author-avatar.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),body=__webpack_require__("./packages/components/build-module/panel/body.js"),range_control=__webpack_require__("./packages/components/build-module/range-control/index.js"),resizable_box=__webpack_require__("./packages/components/build-module/resizable-box/index.js"),remove_query_args=__webpack_require__("./packages/url/build-module/remove-query-args.js");function getAvatarSizes(sizes){const minSize=sizes?sizes[0]:24,maxSize=sizes?sizes[sizes.length-1]:96;return{minSize,maxSize:Math.floor(2.5*maxSize)}}function useDefaultAvatar(){const{avatarURL:defaultAvatarUrl}=(0,use_select.A)((select=>{const{getSettings}=select(block_editor_build_module.M_),{__experimentalDiscussionSettings}=getSettings();return __experimentalDiscussionSettings}));return defaultAvatarUrl}var combobox_control=__webpack_require__("./packages/components/build-module/combobox-control/index.js");const AUTHORS_QUERY={who:"authors",per_page:-1,_fields:"id,name",context:"view"};const user_control=function UserControl({value,onChange}){const[filteredAuthorsList,setFilteredAuthorsList]=(0,react.useState)(),authorsList=(0,use_select.A)((select=>{const{getUsers}=select(core_data_build_module.M_);return getUsers(AUTHORS_QUERY)}),[]);if(!authorsList)return null;const options=authorsList.map((author=>({label:author.name,value:author.id})));return(0,jsx_runtime.jsx)(combobox_control.A,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,i18n_build_module.__)("User"),help:(0,i18n_build_module.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value,onChange,options:filteredAuthorsList||options,onFilterValueChange:inputValue=>setFilteredAuthorsList(options.filter((option=>option.label.toLowerCase().startsWith(inputValue.toLowerCase()))))})},AvatarInspectorControls=({setAttributes,avatar,attributes,selectUser})=>(0,jsx_runtime.jsx)(block_editor_build_module.s1,{children:(0,jsx_runtime.jsxs)(body.Ay,{title:(0,i18n_build_module.__)("Settings"),children:[(0,jsx_runtime.jsx)(range_control.A,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,i18n_build_module.__)("Image size"),onChange:newSize=>setAttributes({size:newSize}),min:avatar.minSize,max:avatar.maxSize,initialPosition:attributes?.size,value:attributes?.size}),(0,jsx_runtime.jsx)(toggle_control.A,{__nextHasNoMarginBottom:!0,label:(0,i18n_build_module.__)("Link to user profile"),onChange:()=>setAttributes({isLink:!attributes.isLink}),checked:attributes.isLink}),attributes.isLink&&(0,jsx_runtime.jsx)(toggle_control.A,{__nextHasNoMarginBottom:!0,label:(0,i18n_build_module.__)("Open in new tab"),onChange:value=>setAttributes({linkTarget:value?"_blank":"_self"}),checked:"_blank"===attributes.linkTarget}),selectUser&&(0,jsx_runtime.jsx)(user_control,{value:attributes?.userId,onChange:value=>{setAttributes({userId:value})}})]})}),ResizableAvatar=({setAttributes,attributes,avatar,blockProps,isSelected})=>{const borderProps=(0,block_editor_build_module.SA)(attributes),doubledSizedSrc=(0,add_query_args.F)((0,remove_query_args.m)(avatar?.src,["s"]),{s:2*attributes?.size});return(0,jsx_runtime.jsx)("div",{...blockProps,children:(0,jsx_runtime.jsx)(resizable_box.A,{size:{width:attributes.size,height:attributes.size},showHandle:isSelected,onResizeStop:(event,direction,elt,delta)=>{setAttributes({size:parseInt(attributes.size+(delta.height||delta.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,i18n_build_module.V8)(),bottom:!0,left:(0,i18n_build_module.V8)()},minWidth:avatar.minSize,maxWidth:avatar.maxSize,children:(0,jsx_runtime.jsx)("img",{src:doubledSizedSrc,alt:avatar.alt,className:(0,clsx.A)("avatar","avatar-"+attributes.size,"photo","wp-block-avatar__image",borderProps.className),style:borderProps.style})})})},CommentEdit=({attributes,context,setAttributes,isSelected})=>{const{commentId}=context,blockProps=(0,block_editor_build_module.Z0)(),avatar=function useCommentAvatar({commentId}){const[avatars]=(0,core_data_build_module.S$)("root","comment","author_avatar_urls",commentId),[authorName]=(0,core_data_build_module.S$)("root","comment","author_name",commentId),avatarUrls=avatars?Object.values(avatars):null,sizes=avatars?Object.keys(avatars):null,{minSize,maxSize}=getAvatarSizes(sizes),defaultAvatar=useDefaultAvatar();return{src:avatarUrls?avatarUrls[avatarUrls.length-1]:defaultAvatar,minSize,maxSize,alt:authorName?(0,i18n_build_module.nv)((0,i18n_build_module.__)("%s Avatar"),authorName):(0,i18n_build_module.__)("Default Avatar")}}({commentId});return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(AvatarInspectorControls,{avatar,setAttributes,attributes,selectUser:!1}),attributes.isLink?(0,jsx_runtime.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:event=>event.preventDefault(),children:(0,jsx_runtime.jsx)(ResizableAvatar,{attributes,avatar,blockProps,isSelected,setAttributes})}):(0,jsx_runtime.jsx)(ResizableAvatar,{attributes,avatar,blockProps,isSelected,setAttributes})]})},UserEdit=({attributes,context,setAttributes,isSelected})=>{const{postId,postType}=context,avatar=function useUserAvatar({userId,postId,postType}){const{authorDetails}=(0,use_select.A)((select=>{const{getEditedEntityRecord,getUser}=select(core_data_build_module.M_);if(userId)return{authorDetails:getUser(userId)};const _authorId=getEditedEntityRecord("postType",postType,postId)?.author;return{authorDetails:_authorId?getUser(_authorId):null}}),[postType,postId,userId]),avatarUrls=authorDetails?.avatar_urls?Object.values(authorDetails.avatar_urls):null,sizes=authorDetails?.avatar_urls?Object.keys(authorDetails.avatar_urls):null,{minSize,maxSize}=getAvatarSizes(sizes),defaultAvatar=useDefaultAvatar();return{src:avatarUrls?avatarUrls[avatarUrls.length-1]:defaultAvatar,minSize,maxSize,alt:authorDetails?(0,i18n_build_module.nv)((0,i18n_build_module.__)("%s Avatar"),authorDetails?.name):(0,i18n_build_module.__)("Default Avatar")}}({userId:attributes?.userId,postId,postType}),blockProps=(0,block_editor_build_module.Z0)();return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(AvatarInspectorControls,{selectUser:!0,attributes,avatar,setAttributes}),attributes.isLink?(0,jsx_runtime.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:event=>event.preventDefault(),children:(0,jsx_runtime.jsx)(ResizableAvatar,{attributes,avatar,blockProps,isSelected,setAttributes})}):(0,jsx_runtime.jsx)(ResizableAvatar,{attributes,avatar,blockProps,isSelected,setAttributes})]})};const avatar_metadata={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user’s avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1,__experimentalDuotone:"img"},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-avatar img"},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"},{name:avatar_name}=avatar_metadata,avatar_settings={icon:comment_author_avatar.A,edit:function Edit(props){return props?.context?.commentId||null===props?.context?.commentId?(0,jsx_runtime.jsx)(CommentEdit,{...props}):(0,jsx_runtime.jsx)(UserEdit,{...props})},example:{}},avatar_init=()=>initBlock({name:avatar_name,metadata:avatar_metadata,settings:avatar_settings}),library_audio=(0,jsx_runtime.jsx)(svg.t4,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,jsx_runtime.jsx)(svg.wA,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})}),deprecated=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes}){const{autoplay,caption,loop,preload,src}=attributes;return(0,jsx_runtime.jsxs)("figure",{children:[(0,jsx_runtime.jsx)("audio",{controls:"controls",src,autoPlay:autoplay,loop,preload}),!block_editor_build_module.sD.isEmpty(caption)&&(0,jsx_runtime.jsx)(block_editor_build_module.sD.Content,{tagName:"figcaption",value:caption})]})}}];var use_dispatch=__webpack_require__("./packages/data/build-module/components/use-dispatch/use-dispatch.js"),notices_build_module=__webpack_require__("./packages/notices/build-module/index.js"),dist=__webpack_require__("./node_modules/memize/dist/index.js"),private_apis=__webpack_require__("./packages/components/build-module/private-apis.js"),serialize=__webpack_require__("./packages/element/build-module/serialize.js");const ASPECT_RATIOS=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}];var implementation=__webpack_require__("./packages/private-apis/build-module/implementation.js");const{lock,unlock}=(0,implementation.yf)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-library"),{name:DEFAULT_EMBED_BLOCK}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},type:{type:"string",role:"content"},providerNameSlug:{type:"string",role:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,role:"content"},previewable:{type:"boolean",default:!0,role:"content"}},supports:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},{kebabCase}=unlock(private_apis.j),isFromWordPress=html=>html&&html.includes('class="wp-embedded-content"'),createUpgradedEmbedBlock=(props,attributesFromPreview={})=>{const{preview,attributes={}}=props,{url,providerNameSlug,type,...restAttributes}=attributes;if(!url||!(0,build_module.E7)(DEFAULT_EMBED_BLOCK))return;const matchedBlock=(url=>(0,build_module.oO)(DEFAULT_EMBED_BLOCK)?.find((({patterns})=>((url,patterns=[])=>patterns.some((pattern=>url.match(pattern))))(url,patterns))))(url),isCurrentBlockWP="wordpress"===providerNameSlug||"wp-embed"===type;if(!isCurrentBlockWP&&matchedBlock&&(matchedBlock.attributes.providerNameSlug!==providerNameSlug||!providerNameSlug))return(0,build_module.Wv)(DEFAULT_EMBED_BLOCK,{url,...restAttributes,...matchedBlock.attributes});const wpVariation=(0,build_module.oO)(DEFAULT_EMBED_BLOCK)?.find((({name})=>"wordpress"===name));return wpVariation&&preview&&isFromWordPress(preview.html)&&!isCurrentBlockWP?(0,build_module.Wv)(DEFAULT_EMBED_BLOCK,{url,...wpVariation.attributes,...attributesFromPreview}):void 0},removeAspectRatioClasses=existingClassNames=>{if(!existingClassNames)return existingClassNames;const aspectRatioClassNames=ASPECT_RATIOS.reduce(((accumulator,{className})=>(accumulator.push(className),accumulator)),["wp-has-aspect-ratio"]);let outputClassNames=existingClassNames;for(const className of aspectRatioClassNames)outputClassNames=outputClassNames.replace(className,"");return outputClassNames.trim()};function getClassNames(html,existingClassNames,allowResponsive=!0){if(!allowResponsive)return removeAspectRatioClasses(existingClassNames);const previewDocument=document.implementation.createHTMLDocument("");previewDocument.body.innerHTML=html;const iframe=previewDocument.body.querySelector("iframe");if(iframe&&iframe.height&&iframe.width){const aspectRatio=(iframe.width/iframe.height).toFixed(2);for(let ratioIndex=0;ratioIndex=potentialRatio.ratio){return aspectRatio-potentialRatio.ratio>.1?removeAspectRatioClasses(existingClassNames):(0,clsx.A)(removeAspectRatioClasses(existingClassNames),potentialRatio.className,"wp-has-aspect-ratio")}}}return existingClassNames}const getAttributesFromPreview=(0,dist.A)(((preview,title,currentClassNames,isResponsive,allowResponsive=!0)=>{if(!preview)return{};const attributes={};let{type="rich"}=preview;const{html,provider_name:providerName}=preview,providerNameSlug=kebabCase((providerName||title).toLowerCase());return isFromWordPress(html)&&(type="wp-embed"),(html||"photo"===type)&&(attributes.type=type,attributes.providerNameSlug=providerNameSlug),(existingClassNames=currentClassNames)&&ASPECT_RATIOS.some((({className})=>existingClassNames.includes(className)))||(attributes.className=getClassNames(html,currentClassNames,isResponsive&&allowResponsive)),attributes;var existingClassNames}));var toolbar_button=__webpack_require__("./packages/components/build-module/toolbar/toolbar-button/index.js");const library_caption=(0,jsx_runtime.jsx)(svg.t4,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,jsx_runtime.jsx)(svg.wA,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})});function Caption({attributeKey="caption",attributes,setAttributes,isSelected,insertBlocksAfter,placeholder=(0,i18n_build_module.__)("Add caption"),label=(0,i18n_build_module.__)("Caption text"),showToolbarButton=!0,excludeElementClassName,className,readOnly,tagName="figcaption",addLabel=(0,i18n_build_module.__)("Add caption"),removeLabel=(0,i18n_build_module.__)("Remove caption"),icon=library_caption,...props}){const caption=attributes[attributeKey],prevCaption=(0,use_previous.A)(caption),{PrivateRichText:RichText}=unlock(block_editor_build_module.jb),isCaptionEmpty=RichText.isEmpty(caption),isPrevCaptionEmpty=RichText.isEmpty(prevCaption),[showCaption,setShowCaption]=(0,react.useState)(!isCaptionEmpty);(0,react.useEffect)((()=>{!isCaptionEmpty&&isPrevCaptionEmpty&&setShowCaption(!0)}),[isCaptionEmpty,isPrevCaptionEmpty]),(0,react.useEffect)((()=>{!isSelected&&isCaptionEmpty&&setShowCaption(!1)}),[isSelected,isCaptionEmpty]);const ref=(0,react.useCallback)((node=>{node&&isCaptionEmpty&&node.focus()}),[isCaptionEmpty]);return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[showToolbarButton&&(0,jsx_runtime.jsx)(block_editor_build_module.mC,{group:"block",children:(0,jsx_runtime.jsx)(toolbar_button.A,{onClick:()=>{setShowCaption(!showCaption),showCaption&&caption&&setAttributes({[attributeKey]:void 0})},icon,isPressed:showCaption,label:showCaption?removeLabel:addLabel})}),showCaption&&(!RichText.isEmpty(caption)||isSelected)&&(0,jsx_runtime.jsx)(RichText,{identifier:attributeKey,tagName,className:(0,clsx.A)(className,excludeElementClassName?"":(0,block_editor_build_module.oJ)("caption")),ref,"aria-label":label,placeholder,value:caption,onChange:value=>setAttributes({[attributeKey]:value}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>insertBlocksAfter((0,build_module.Wv)((0,build_module.K$)())),readOnly,...props})]})}const ALLOWED_MEDIA_TYPES=["audio"];const edit=function AudioEdit({attributes,className,setAttributes,onReplace,isSelected:isSingleSelected,insertBlocksAfter}){const{id,autoplay,loop,preload,src}=attributes,[temporaryURL,setTemporaryURL]=(0,react.useState)(attributes.blob);function toggleAttribute(attribute){return newValue=>{setAttributes({[attribute]:newValue})}}function onSelectURL(newSrc){if(newSrc!==src){const embedBlock=createUpgradedEmbedBlock({attributes:{url:newSrc}});if(void 0!==embedBlock&&onReplace)return void onReplace(embedBlock);setAttributes({src:newSrc,id:void 0,blob:void 0}),setTemporaryURL()}}useUploadMediaFromBlobURL({url:temporaryURL,allowedTypes:ALLOWED_MEDIA_TYPES,onChange:onSelectAudio,onError:onUploadError});const{createErrorNotice}=(0,use_dispatch.A)(notices_build_module.M);function onUploadError(message){createErrorNotice(message,{type:"snackbar"})}function onSelectAudio(media){if(!media||!media.url)return setAttributes({src:void 0,id:void 0,caption:void 0,blob:void 0}),void setTemporaryURL();(0,blob_build_module.H8)(media.url)?setTemporaryURL(media.url):(setAttributes({blob:void 0,src:media.url,id:media.id,caption:media.caption}),setTemporaryURL())}const classes=(0,clsx.A)(className,{"is-transient":!!temporaryURL}),blockProps=(0,block_editor_build_module.Z0)({className:classes});return src||temporaryURL?(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[isSingleSelected&&(0,jsx_runtime.jsx)(block_editor_build_module.mC,{group:"other",children:(0,jsx_runtime.jsx)(block_editor_build_module.ft,{mediaId:id,mediaURL:src,allowedTypes:ALLOWED_MEDIA_TYPES,accept:"audio/*",onSelect:onSelectAudio,onSelectURL,onError:onUploadError,onReset:()=>onSelectAudio(void 0)})}),(0,jsx_runtime.jsx)(block_editor_build_module.s1,{children:(0,jsx_runtime.jsxs)(body.Ay,{title:(0,i18n_build_module.__)("Settings"),children:[(0,jsx_runtime.jsx)(toggle_control.A,{__nextHasNoMarginBottom:!0,label:(0,i18n_build_module.__)("Autoplay"),onChange:toggleAttribute("autoplay"),checked:autoplay,help:function getAutoplayHelp(checked){return checked?(0,i18n_build_module.__)("Autoplay may cause usability issues for some users."):null}}),(0,jsx_runtime.jsx)(toggle_control.A,{__nextHasNoMarginBottom:!0,label:(0,i18n_build_module.__)("Loop"),onChange:toggleAttribute("loop"),checked:loop}),(0,jsx_runtime.jsx)(select_control.A,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,i18n_build_module._x)("Preload","noun; Audio block parameter"),value:preload||"",onChange:value=>setAttributes({preload:value||void 0}),options:[{value:"",label:(0,i18n_build_module.__)("Browser default")},{value:"auto",label:(0,i18n_build_module.__)("Auto")},{value:"metadata",label:(0,i18n_build_module.__)("Metadata")},{value:"none",label:(0,i18n_build_module._x)("None","Preload value")}]})]})}),(0,jsx_runtime.jsxs)("figure",{...blockProps,children:[(0,jsx_runtime.jsx)(disabled.A,{isDisabled:!isSingleSelected,children:(0,jsx_runtime.jsx)("audio",{controls:"controls",src:null!=src?src:temporaryURL})}),!!temporaryURL&&(0,jsx_runtime.jsx)(spinner.Ay,{}),(0,jsx_runtime.jsx)(Caption,{attributes,setAttributes,isSelected:isSingleSelected,insertBlocksAfter,label:(0,i18n_build_module.__)("Audio caption text"),showToolbarButton:isSingleSelected})]})]}):(0,jsx_runtime.jsx)("div",{...blockProps,children:(0,jsx_runtime.jsx)(block_editor_build_module.Ud,{icon:(0,jsx_runtime.jsx)(block_editor_build_module.th,{icon:library_audio}),onSelect:onSelectAudio,onSelectURL,accept:"audio/*",allowedTypes:ALLOWED_MEDIA_TYPES,value:attributes,onError:onUploadError})})};const transforms={from:[{type:"files",isMatch:files=>1===files.length&&0===files[0].type.indexOf("audio/"),transform(files){const file=files[0];return(0,build_module.Wv)("core/audio",{blob:(0,blob_build_module.bW)(file)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src,mp3,m4a,ogg,wav,wma}})=>src||mp3||m4a||ogg||wav||wma},loop:{type:"string",shortcode:({named:{loop}})=>loop},autoplay:{type:"string",shortcode:({named:{autoplay}})=>autoplay},preload:{type:"string",shortcode:({named:{preload}})=>preload}}}]},audio_transforms=transforms,audio_metadata={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{blob:{type:"string",role:"local"},src:{type:"string",source:"attribute",selector:"audio",attribute:"src",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},id:{type:"number",role:"content"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:audio_name}=audio_metadata,audio_settings={icon:library_audio,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:audio_transforms,deprecated,edit,save:function save({attributes}){const{autoplay,caption,loop,preload,src}=attributes;return src&&(0,jsx_runtime.jsxs)("figure",{...block_editor_build_module.Z0.save(),children:[(0,jsx_runtime.jsx)("audio",{controls:"controls",src,autoPlay:autoplay,loop,preload}),!block_editor_build_module.sD.isEmpty(caption)&&(0,jsx_runtime.jsx)(block_editor_build_module.sD.Content,{tagName:"figcaption",value:caption,className:(0,block_editor_build_module.oJ)("caption")})]})}},audio_init=()=>initBlock({name:audio_name,metadata:audio_metadata,settings:audio_settings});var library_button=__webpack_require__("./packages/icons/build-module/library/button.js"),compose=__webpack_require__("./packages/compose/build-module/higher-order/compose.js");const{cleanEmptyObject}=unlock(block_editor_build_module.jb);function migrate_font_family(attributes){if(!attributes?.style?.typography?.fontFamily)return attributes;const{fontFamily,...typography}=attributes.style.typography;return{...attributes,style:cleanEmptyObject({...attributes.style,typography}),fontFamily:fontFamily.split("|").pop()}}const migrateBorderRadius=attributes=>{const{borderRadius,...newAttributes}=attributes,oldBorderRadius=[borderRadius,newAttributes.style?.border?.radius].find((possibleBorderRadius=>"number"==typeof possibleBorderRadius&&0!==possibleBorderRadius));return oldBorderRadius?{...newAttributes,style:{...newAttributes.style,border:{...newAttributes.style?.border,radius:`${oldBorderRadius}px`}}}:newAttributes};const migrateCustomColorsAndGradients=attributes=>{if(!attributes.customTextColor&&!attributes.customBackgroundColor&&!attributes.customGradient)return attributes;const style={color:{}};attributes.customTextColor&&(style.color.text=attributes.customTextColor),attributes.customBackgroundColor&&(style.color.background=attributes.customBackgroundColor),attributes.customGradient&&(style.color.gradient=attributes.customGradient);const{customTextColor,customBackgroundColor,customGradient,...restAttributes}=attributes;return{...restAttributes,style}},oldColorsMigration=attributes=>{const{color,textColor,...restAttributes}={...attributes,customTextColor:attributes.textColor&&"#"===attributes.textColor[0]?attributes.textColor:void 0,customBackgroundColor:attributes.color&&"#"===attributes.color[0]?attributes.color:void 0};return migrateCustomColorsAndGradients(restAttributes)},blockAttributes={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},v11={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes,className}){const{fontSize,linkTarget,rel,style,text,title,url,width}=attributes;if(!text)return null;const borderProps=(0,block_editor_build_module.YK)(attributes),colorProps=(0,block_editor_build_module.Z8)(attributes),spacingProps=(0,block_editor_build_module.bO)(attributes),buttonClasses=(0,clsx.A)("wp-block-button__link",colorProps.className,borderProps.className,{"no-border-radius":0===style?.border?.radius}),buttonStyle={...borderProps.style,...colorProps.style,...spacingProps.style},wrapperClasses=(0,clsx.A)(className,{[`has-custom-width wp-block-button__width-${width}`]:width,"has-custom-font-size":fontSize||style?.typography?.fontSize});return(0,jsx_runtime.jsx)("div",{...block_editor_build_module.Z0.save({className:wrapperClasses}),children:(0,jsx_runtime.jsx)(block_editor_build_module.sD.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text,target:linkTarget,rel})})}},v10={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes,className}){const{fontSize,linkTarget,rel,style,text,title,url,width}=attributes;if(!text)return null;const borderProps=(0,block_editor_build_module.YK)(attributes),colorProps=(0,block_editor_build_module.Z8)(attributes),spacingProps=(0,block_editor_build_module.bO)(attributes),buttonClasses=(0,clsx.A)("wp-block-button__link",colorProps.className,borderProps.className,{"no-border-radius":0===style?.border?.radius}),buttonStyle={...borderProps.style,...colorProps.style,...spacingProps.style},wrapperClasses=(0,clsx.A)(className,{[`has-custom-width wp-block-button__width-${width}`]:width,"has-custom-font-size":fontSize||style?.typography?.fontSize});return(0,jsx_runtime.jsx)("div",{...block_editor_build_module.Z0.save({className:wrapperClasses}),children:(0,jsx_runtime.jsx)(block_editor_build_module.sD.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text,target:linkTarget,rel})})},migrate:migrate_font_family,isEligible:({style})=>style?.typography?.fontFamily},deprecated_deprecated=[v11,v10,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...blockAttributes,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible:({style})=>"number"==typeof style?.border?.radius,save({attributes,className}){const{fontSize,linkTarget,rel,style,text,title,url,width}=attributes;if(!text)return null;const borderRadius=style?.border?.radius,colorProps=(0,block_editor_build_module.Z8)(attributes),buttonClasses=(0,clsx.A)("wp-block-button__link",colorProps.className,{"no-border-radius":0===style?.border?.radius}),buttonStyle={borderRadius:borderRadius||void 0,...colorProps.style},wrapperClasses=(0,clsx.A)(className,{[`has-custom-width wp-block-button__width-${width}`]:width,"has-custom-font-size":fontSize||style?.typography?.fontSize});return(0,jsx_runtime.jsx)("div",{...block_editor_build_module.Z0.save({className:wrapperClasses}),children:(0,jsx_runtime.jsx)(block_editor_build_module.sD.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text,target:linkTarget,rel})})},migrate:(0,compose.A)(migrate_font_family,migrateBorderRadius)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...blockAttributes,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes,className}){const{borderRadius,linkTarget,rel,text,title,url,width}=attributes,colorProps=(0,block_editor_build_module.Z8)(attributes),buttonClasses=(0,clsx.A)("wp-block-button__link",colorProps.className,{"no-border-radius":0===borderRadius}),buttonStyle={borderRadius:borderRadius?borderRadius+"px":void 0,...colorProps.style},wrapperClasses=(0,clsx.A)(className,{[`has-custom-width wp-block-button__width-${width}`]:width});return(0,jsx_runtime.jsx)("div",{...block_editor_build_module.Z0.save({className:wrapperClasses}),children:(0,jsx_runtime.jsx)(block_editor_build_module.sD.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text,target:linkTarget,rel})})},migrate:(0,compose.A)(migrate_font_family,migrateBorderRadius)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...blockAttributes,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes,className}){const{borderRadius,linkTarget,rel,text,title,url,width}=attributes,colorProps=(0,block_editor_build_module.Z8)(attributes),buttonClasses=(0,clsx.A)("wp-block-button__link",colorProps.className,{"no-border-radius":0===borderRadius}),buttonStyle={borderRadius:borderRadius?borderRadius+"px":void 0,...colorProps.style},wrapperClasses=(0,clsx.A)(className,{[`has-custom-width wp-block-button__width-${width}`]:width});return(0,jsx_runtime.jsx)("div",{...block_editor_build_module.Z0.save({className:wrapperClasses}),children:(0,jsx_runtime.jsx)(block_editor_build_module.sD.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text,target:linkTarget,rel})})},migrate:(0,compose.A)(migrate_font_family,migrateBorderRadius)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...blockAttributes,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes}){const{borderRadius,linkTarget,rel,text,title,url}=attributes,buttonClasses=(0,clsx.A)("wp-block-button__link",{"no-border-radius":0===borderRadius}),buttonStyle={borderRadius:borderRadius?borderRadius+"px":void 0};return(0,jsx_runtime.jsx)(block_editor_build_module.sD.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text,target:linkTarget,rel})},migrate:migrateBorderRadius},{supports:{align:!0,alignWide:!1},attributes:{...blockAttributes,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:attributes=>!!(attributes.customTextColor||attributes.customBackgroundColor||attributes.customGradient||attributes.align),migrate:(0,compose.A)(migrateBorderRadius,migrateCustomColorsAndGradients,(function migrateAlign(attributes){if(!attributes.align)return attributes;const{align,...otherAttributes}=attributes;return{...otherAttributes,className:(0,clsx.A)(otherAttributes.className,`align${attributes.align}`)}})),save({attributes}){const{backgroundColor,borderRadius,customBackgroundColor,customTextColor,customGradient,linkTarget,gradient,rel,text,textColor,title,url}=attributes,textClass=(0,block_editor_build_module.tQ)("color",textColor),backgroundClass=!customGradient&&(0,block_editor_build_module.tQ)("background-color",backgroundColor),gradientClass=(0,block_editor_build_module.tA)(gradient),buttonClasses=(0,clsx.A)("wp-block-button__link",{"has-text-color":textColor||customTextColor,[textClass]:textClass,"has-background":backgroundColor||customBackgroundColor||customGradient||gradient,[backgroundClass]:backgroundClass,"no-border-radius":0===borderRadius,[gradientClass]:gradientClass}),buttonStyle={background:customGradient||void 0,backgroundColor:backgroundClass||customGradient||gradient?void 0:customBackgroundColor,color:textClass?void 0:customTextColor,borderRadius:borderRadius?borderRadius+"px":void 0};return(0,jsx_runtime.jsx)("div",{children:(0,jsx_runtime.jsx)(block_editor_build_module.sD.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text,target:linkTarget,rel})})}},{attributes:{...blockAttributes,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible:attribute=>attribute.className&&attribute.className.includes("is-style-squared"),migrate(attributes){let newClassName=attributes.className;return newClassName&&(newClassName=newClassName.replace(/is-style-squared[\s]?/,"").trim()),migrateBorderRadius(migrateCustomColorsAndGradients({...attributes,className:newClassName||void 0,borderRadius:0}))},save({attributes}){const{backgroundColor,customBackgroundColor,customTextColor,linkTarget,rel,text,textColor,title,url}=attributes,textClass=(0,block_editor_build_module.tQ)("color",textColor),backgroundClass=(0,block_editor_build_module.tQ)("background-color",backgroundColor),buttonClasses=(0,clsx.A)("wp-block-button__link",{"has-text-color":textColor||customTextColor,[textClass]:textClass,"has-background":backgroundColor||customBackgroundColor,[backgroundClass]:backgroundClass}),buttonStyle={backgroundColor:backgroundClass?void 0:customBackgroundColor,color:textClass?void 0:customTextColor};return(0,jsx_runtime.jsx)("div",{children:(0,jsx_runtime.jsx)(block_editor_build_module.sD.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text,target:linkTarget,rel})})}},{attributes:{...blockAttributes,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:oldColorsMigration,save({attributes}){const{url,text,title,backgroundColor,textColor,customBackgroundColor,customTextColor}=attributes,textClass=(0,block_editor_build_module.tQ)("color",textColor),backgroundClass=(0,block_editor_build_module.tQ)("background-color",backgroundColor),buttonClasses=(0,clsx.A)("wp-block-button__link",{"has-text-color":textColor||customTextColor,[textClass]:textClass,"has-background":backgroundColor||customBackgroundColor,[backgroundClass]:backgroundClass}),buttonStyle={backgroundColor:backgroundClass?void 0:customBackgroundColor,color:textClass?void 0:customTextColor};return(0,jsx_runtime.jsx)("div",{children:(0,jsx_runtime.jsx)(block_editor_build_module.sD.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text})})}},{attributes:{...blockAttributes,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes}){const{url,text,title,align,color,textColor}=attributes,buttonStyle={backgroundColor:color,color:textColor};return(0,jsx_runtime.jsx)("div",{className:`align${align}`,children:(0,jsx_runtime.jsx)(block_editor_build_module.sD.Content,{tagName:"a",className:"wp-block-button__link",href:url,title,style:buttonStyle,value:text})})},migrate:oldColorsMigration},{attributes:{...blockAttributes,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes}){const{url,text,title,align,color,textColor}=attributes;return(0,jsx_runtime.jsx)("div",{className:`align${align}`,style:{backgroundColor:color},children:(0,jsx_runtime.jsx)(block_editor_build_module.sD.Content,{tagName:"a",href:url,title,style:{color:textColor},value:text})})},migrate:oldColorsMigration}],button_deprecated=deprecated_deprecated,NEW_TAB_REL="noreferrer noopener",NEW_TAB_TARGET="_blank",NOFOLLOW_REL="nofollow";var prepend_http=__webpack_require__("./packages/url/build-module/prepend-http.js");function removeAnchorTag(value){return value.toString().replace(/<\/?a[^>]*>/g,"")}var toggle_group_control_component=__webpack_require__("./packages/components/build-module/toggle-group-control/toggle-group-control/component.js"),toggle_group_control_option_component=__webpack_require__("./packages/components/build-module/toggle-group-control/toggle-group-control-option/component.js"),popover=__webpack_require__("./packages/components/build-module/popover/index.js"),text_control=__webpack_require__("./packages/components/build-module/text-control/index.js"),keycodes_build_module=__webpack_require__("./packages/keycodes/build-module/index.js"),library_link=__webpack_require__("./packages/icons/build-module/library/link.js"),link_off=__webpack_require__("./packages/icons/build-module/library/link-off.js"),use_ref_effect=__webpack_require__("./packages/compose/build-module/hooks/use-ref-effect/index.js"),use_merge_refs=__webpack_require__("./packages/compose/build-module/hooks/use-merge-refs/index.js");const LINK_SETTINGS=[...block_editor_build_module.mF.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,i18n_build_module.__)("Mark as nofollow")}];function WidthPanel({selectedWidth,setAttributes}){const dropdownMenuProps=useToolsPanelDropdownMenuProps();return(0,jsx_runtime.jsx)(component.A,{label:(0,i18n_build_module.__)("Settings"),resetAll:()=>setAttributes({width:void 0}),dropdownMenuProps,children:(0,jsx_runtime.jsx)(tools_panel_item_component.A,{label:(0,i18n_build_module.__)("Button width"),isShownByDefault:!0,hasValue:()=>!!selectedWidth,onDeselect:()=>setAttributes({width:void 0}),__nextHasNoMarginBottom:!0,children:(0,jsx_runtime.jsx)(toggle_group_control_component.A,{label:(0,i18n_build_module.__)("Button width"),value:selectedWidth,onChange:newWidth=>setAttributes({width:newWidth}),isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:[25,50,75,100].map((widthValue=>(0,jsx_runtime.jsx)(toggle_group_control_option_component.A,{value:widthValue,label:`${widthValue}%`},widthValue)))})})})}const button_edit=function ButtonEdit(props){const{attributes,setAttributes,className,isSelected,onReplace,mergeBlocks,clientId,context}=props,{tagName,textAlign,linkTarget,placeholder,rel,style,text,url,width,metadata}=attributes,TagName=tagName||"a",[popoverAnchor,setPopoverAnchor]=(0,react.useState)(null),borderProps=(0,block_editor_build_module.SA)(attributes),colorProps=(0,block_editor_build_module.XU)(attributes),spacingProps=(0,block_editor_build_module.bO)(attributes),shadowProps=(0,block_editor_build_module.Cc)(attributes),ref=(0,react.useRef)(),richTextRef=(0,react.useRef)(),blockProps=(0,block_editor_build_module.Z0)({ref:(0,use_merge_refs.A)([setPopoverAnchor,ref]),onKeyDown:function onKeyDown(event){keycodes_build_module.kx.primary(event,"k")?startEditing(event):keycodes_build_module.kx.primaryShift(event,"k")&&(unlink(),richTextRef.current?.focus())}}),blockEditingMode=(0,block_editor_build_module.wp)(),[isEditingURL,setIsEditingURL]=(0,react.useState)(!1),isURLSet=!!url,opensInNewTab=linkTarget===NEW_TAB_TARGET,nofollow=!!rel?.includes(NOFOLLOW_REL),isLinkTag="a"===TagName;function startEditing(event){event.preventDefault(),setIsEditingURL(!0)}function unlink(){setAttributes({url:void 0,linkTarget:void 0,rel:void 0}),setIsEditingURL(!1)}(0,react.useEffect)((()=>{isSelected||setIsEditingURL(!1)}),[isSelected]);const linkValue=(0,react.useMemo)((()=>({url,opensInNewTab,nofollow})),[url,opensInNewTab,nofollow]),useEnterRef=function useEnter(props){const{replaceBlocks,selectionChange}=(0,use_dispatch.A)(block_editor_build_module.M_),{getBlock,getBlockRootClientId,getBlockIndex}=(0,use_select.A)(block_editor_build_module.M_),propsRef=(0,react.useRef)(props);return propsRef.current=props,(0,use_ref_effect.A)((element=>{function onKeyDown(event){if(event.defaultPrevented||event.keyCode!==keycodes_build_module.Fm)return;const{content,clientId}=propsRef.current;if(content.length)return;event.preventDefault();const topParentListBlock=getBlock(getBlockRootClientId(clientId)),blockIndex=getBlockIndex(clientId),head=(0,build_module.JB)({...topParentListBlock,innerBlocks:topParentListBlock.innerBlocks.slice(0,blockIndex)}),middle=(0,build_module.Wv)((0,build_module.K$)()),after=topParentListBlock.innerBlocks.slice(blockIndex+1),tail=after.length?[(0,build_module.JB)({...topParentListBlock,innerBlocks:after})]:[];replaceBlocks(topParentListBlock.clientId,[head,middle,...tail],1),selectionChange(middle.clientId)}return element.addEventListener("keydown",onKeyDown),()=>{element.removeEventListener("keydown",onKeyDown)}}),[])}({content:text,clientId}),mergedRef=(0,use_merge_refs.A)([useEnterRef,richTextRef]),{lockUrlControls=!1}=(0,use_select.A)((select=>{if(!isSelected)return{};const blockBindingsSource=(0,build_module.Xm)(metadata?.bindings?.url?.source);return{lockUrlControls:!!metadata?.bindings?.url&&!blockBindingsSource?.canUserEditValue?.({select,context,args:metadata?.bindings?.url?.args})}}),[context,isSelected,metadata?.bindings?.url]);return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)("div",{...blockProps,className:(0,clsx.A)(blockProps.className,{[`has-custom-width wp-block-button__width-${width}`]:width,"has-custom-font-size":blockProps.style.fontSize}),children:(0,jsx_runtime.jsx)(block_editor_build_module.sD,{ref:mergedRef,"aria-label":(0,i18n_build_module.__)("Button text"),placeholder:placeholder||(0,i18n_build_module.__)("Add text…"),value:text,onChange:value=>setAttributes({text:removeAnchorTag(value)}),withoutInteractiveFormatting:!0,className:(0,clsx.A)(className,"wp-block-button__link",colorProps.className,borderProps.className,{[`has-text-align-${textAlign}`]:textAlign,"no-border-radius":0===style?.border?.radius},(0,block_editor_build_module.oJ)("button")),style:{...borderProps.style,...colorProps.style,...spacingProps.style,...shadowProps.style},onReplace,onMerge:mergeBlocks,identifier:"text"})}),(0,jsx_runtime.jsxs)(block_editor_build_module.mC,{group:"block",children:["default"===blockEditingMode&&(0,jsx_runtime.jsx)(block_editor_build_module.LE,{value:textAlign,onChange:nextAlign=>{setAttributes({textAlign:nextAlign})}}),!isURLSet&&isLinkTag&&!lockUrlControls&&(0,jsx_runtime.jsx)(toolbar_button.A,{name:"link",icon:library_link.A,title:(0,i18n_build_module.__)("Link"),shortcut:keycodes_build_module.dz.primary("k"),onClick:startEditing}),isURLSet&&isLinkTag&&!lockUrlControls&&(0,jsx_runtime.jsx)(toolbar_button.A,{name:"link",icon:link_off.A,title:(0,i18n_build_module.__)("Unlink"),shortcut:keycodes_build_module.dz.primaryShift("k"),onClick:unlink,isActive:!0})]}),isLinkTag&&isSelected&&(isEditingURL||isURLSet)&&!lockUrlControls&&(0,jsx_runtime.jsx)(popover.Ay,{placement:"bottom",onClose:()=>{setIsEditingURL(!1),richTextRef.current?.focus()},anchor:popoverAnchor,focusOnMount:!!isEditingURL&&"firstElement",__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,jsx_runtime.jsx)(block_editor_build_module.mF,{value:linkValue,onChange:({url:newURL,opensInNewTab:newOpensInNewTab,nofollow:newNofollow})=>setAttributes(function getUpdatedLinkAttributes({rel="",url="",opensInNewTab,nofollow}){let newLinkTarget,updatedRel=rel;if(opensInNewTab)newLinkTarget=NEW_TAB_TARGET,updatedRel=updatedRel?.includes(NEW_TAB_REL)?updatedRel:updatedRel+` ${NEW_TAB_REL}`;else{const relRegex=new RegExp(`\\b${NEW_TAB_REL}\\s*`,"g");updatedRel=updatedRel?.replace(relRegex,"").trim()}if(nofollow)updatedRel=updatedRel?.includes(NOFOLLOW_REL)?updatedRel:(updatedRel+` ${NOFOLLOW_REL}`).trim();else{const relRegex=new RegExp(`\\b${NOFOLLOW_REL}\\s*`,"g");updatedRel=updatedRel?.replace(relRegex,"").trim()}return{url:(0,prepend_http.N)(url),linkTarget:newLinkTarget,rel:updatedRel||void 0}}({rel,url:newURL,opensInNewTab:newOpensInNewTab,nofollow:newNofollow})),onRemove:()=>{unlink(),richTextRef.current?.focus()},forceIsEditingLink:isEditingURL,settings:LINK_SETTINGS})}),(0,jsx_runtime.jsx)(block_editor_build_module.s1,{children:(0,jsx_runtime.jsx)(WidthPanel,{selectedWidth:width,setAttributes})}),(0,jsx_runtime.jsx)(block_editor_build_module.s1,{group:"advanced",children:isLinkTag&&(0,jsx_runtime.jsx)(text_control.A,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,i18n_build_module.__)("Link rel"),value:rel||"",onChange:newRel=>setAttributes({rel:newRel})})})]})};const button_metadata={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",role:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,splitting:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button .wp-block-button__link",interactivity:{clientNavigation:!0}},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:button_name}=button_metadata,button_settings={icon:library_button.A,example:{attributes:{className:"is-style-fill",text:(0,i18n_build_module.__)("Call to action")}},edit:button_edit,save:function save_save({attributes,className}){const{tagName,type,textAlign,fontSize,linkTarget,rel,style,text,title,url,width}=attributes,TagName=tagName||"a",isButtonTag="button"===TagName,buttonType=type||"button",borderProps=(0,block_editor_build_module.YK)(attributes),colorProps=(0,block_editor_build_module.Z8)(attributes),spacingProps=(0,block_editor_build_module.bO)(attributes),shadowProps=(0,block_editor_build_module.Cc)(attributes),buttonClasses=(0,clsx.A)("wp-block-button__link",colorProps.className,borderProps.className,{[`has-text-align-${textAlign}`]:textAlign,"no-border-radius":0===style?.border?.radius},(0,block_editor_build_module.oJ)("button")),buttonStyle={...borderProps.style,...colorProps.style,...spacingProps.style,...shadowProps.style},wrapperClasses=(0,clsx.A)(className,{[`has-custom-width wp-block-button__width-${width}`]:width,"has-custom-font-size":fontSize||style?.typography?.fontSize});return(0,jsx_runtime.jsx)("div",{...block_editor_build_module.Z0.save({className:wrapperClasses}),children:(0,jsx_runtime.jsx)(block_editor_build_module.sD.Content,{tagName:TagName,type:isButtonTag?buttonType:null,className:buttonClasses,href:isButtonTag?null:url,title,style:buttonStyle,value:text,target:isButtonTag?null:linkTarget,rel:isButtonTag?null:rel})})},deprecated:button_deprecated,merge:(a,{text=""})=>({...a,text:(a.text||"")+text})},button_init=()=>initBlock({name:button_name,metadata:button_metadata,settings:button_settings}),library_buttons=(0,jsx_runtime.jsx)(svg.t4,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,jsx_runtime.jsx)(svg.wA,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})}),migrateWithLayout=attributes=>{if(attributes.layout)return attributes;const{contentJustification,orientation,...updatedAttributes}=attributes;return(contentJustification||orientation)&&Object.assign(updatedAttributes,{layout:{type:"flex",...contentJustification&&{justifyContent:contentJustification},...orientation&&{orientation}}}),updatedAttributes},buttons_deprecated_deprecated=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification,orientation})=>!!contentJustification||!!orientation,migrate:migrateWithLayout,save:({attributes:{contentJustification,orientation}})=>(0,jsx_runtime.jsx)("div",{...block_editor_build_module.Z0.save({className:(0,clsx.A)({[`is-content-justification-${contentJustification}`]:contentJustification,"is-vertical":"vertical"===orientation})}),children:(0,jsx_runtime.jsx)(block_editor_build_module.Tj.Content,{})})},{supports:{align:["center","left","right"],anchor:!0},save:()=>(0,jsx_runtime.jsx)("div",{children:(0,jsx_runtime.jsx)(block_editor_build_module.Tj.Content,{})}),isEligible:({align})=>align&&["center","left","right"].includes(align),migrate:attributes=>migrateWithLayout({...attributes,align:void 0,contentJustification:attributes.align})}],buttons_deprecated=buttons_deprecated_deprecated;var rich_text_build_module=__webpack_require__("./packages/rich-text/build-module/index.js");function getTransformedMetadata(metadata,newBlockName,bindingsCallback){if(!metadata)return;const{supports}=(0,build_module.E7)(newBlockName),transformSupportedProps=[];if(["core/paragraph","core/heading","core/image","core/button"].includes(newBlockName)&&bindingsCallback&&transformSupportedProps.push("id","bindings"),!1!==supports.renaming&&transformSupportedProps.push("name"),!transformSupportedProps.length)return;const newMetadata=Object.entries(metadata).reduce(((obj,[prop,value])=>transformSupportedProps.includes(prop)?(obj[prop]="bindings"===prop?bindingsCallback(value):value,obj):obj),{});return Object.keys(newMetadata).length?newMetadata:void 0}const transforms_transforms={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:buttons=>(0,build_module.Wv)("core/buttons",{},buttons.map((attributes=>(0,build_module.Wv)("core/button",attributes))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:buttons=>(0,build_module.Wv)("core/buttons",{},buttons.map((attributes=>{const{content,metadata}=attributes,element=(0,rich_text_build_module.Ng)(document,content),text=element.innerText||"",link=element.querySelector("a"),url=link?.getAttribute("href");return(0,build_module.Wv)("core/button",{text,url,metadata:getTransformedMetadata(metadata,"core/button",(({content:contentBinding})=>({text:contentBinding})))})}))),isMatch:paragraphs=>paragraphs.every((attributes=>{const element=(0,rich_text_build_module.Ng)(document,attributes.content),text=element.innerText||"",links=element.querySelectorAll("a");return text.length<=30&&links.length<=1}))}]},buttons_transforms=transforms_transforms,DEFAULT_BLOCK={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};const buttons_edit=function ButtonsEdit({attributes,className}){var _layout$orientation;const{fontSize,layout,style}=attributes,blockProps=(0,block_editor_build_module.Z0)({className:(0,clsx.A)(className,{"has-custom-font-size":fontSize||style?.typography?.fontSize})}),{hasButtonVariations}=(0,use_select.A)((select=>({hasButtonVariations:select(build_module.M_).getBlockVariations("core/button","inserter").length>0})),[]),innerBlocksProps=(0,block_editor_build_module.yK)(blockProps,{defaultBlock:DEFAULT_BLOCK,directInsert:!hasButtonVariations,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:null!==(_layout$orientation=layout?.orientation)&&void 0!==_layout$orientation?_layout$orientation:"horizontal"});return(0,jsx_runtime.jsx)("div",{...innerBlocksProps})};const buttons_metadata={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",allowedBlocks:["core/button"],description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{blockGap:["horizontal","vertical"],padding:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:buttons_name}=buttons_metadata,buttons_settings={icon:library_buttons,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,i18n_build_module.__)("Find out more")}},{name:"core/button",attributes:{text:(0,i18n_build_module.__)("Contact us")}}]},deprecated:buttons_deprecated,transforms:buttons_transforms,edit:buttons_edit,save:function buttons_save_save({attributes,className}){const{fontSize,style}=attributes,blockProps=block_editor_build_module.Z0.save({className:(0,clsx.A)(className,{"has-custom-font-size":fontSize||style?.typography?.fontSize})}),innerBlocksProps=block_editor_build_module.yK.save(blockProps);return(0,jsx_runtime.jsx)("div",{...innerBlocksProps})}},buttons_init=()=>initBlock({name:buttons_name,metadata:buttons_metadata,settings:buttons_settings}),library_calendar=(0,jsx_runtime.jsx)(svg.t4,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,jsx_runtime.jsx)(svg.wA,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})}),getYearMonth=(0,dist.A)((date=>{if(!date)return{};const dateObj=new Date(date);return{year:dateObj.getFullYear(),month:dateObj.getMonth()+1}}));const calendar_transforms={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,build_module.Wv)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,build_module.Wv)("core/archives")}]},calendar_metadata={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site’s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0,color:{link:!0,__experimentalSkipSerialization:["text","background"],__experimentalDefaultControls:{background:!0,text:!0},__experimentalSelector:"table, th"},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-calendar"},{name:calendar_name}=calendar_metadata,calendar_settings={icon:library_calendar,example:{},edit:function CalendarEdit({attributes}){const blockProps=(0,block_editor_build_module.Z0)(),{date,hasPosts,hasPostsResolved}=(0,use_select.A)((select=>{const{getEntityRecords,hasFinishedResolution}=select(core_data_build_module.M_),singlePublishedPostQuery={status:"publish",per_page:1},posts=getEntityRecords("postType","post",singlePublishedPostQuery),postsResolved=hasFinishedResolution("getEntityRecords",["postType","post",singlePublishedPostQuery]);let _date;const editorSelectors=select("core/editor");if(editorSelectors){"post"===editorSelectors.getEditedPostAttribute("type")&&(_date=editorSelectors.getEditedPostAttribute("date"))}return{date:_date,hasPostsResolved:postsResolved,hasPosts:postsResolved&&1===posts?.length}}),[]);return hasPosts?(0,jsx_runtime.jsx)("div",{...blockProps,children:(0,jsx_runtime.jsx)(disabled.A,{children:(0,jsx_runtime.jsx)(server_side_render_build_module,{block:"core/calendar",attributes:{...attributes,...getYearMonth(date)}})})}):(0,jsx_runtime.jsx)("div",{...blockProps,children:(0,jsx_runtime.jsx)(build_module_placeholder.A,{icon:library_calendar,label:(0,i18n_build_module.__)("Calendar"),children:hasPostsResolved?(0,i18n_build_module.__)("No published posts found."):(0,jsx_runtime.jsx)(spinner.Ay,{})})})},transforms:calendar_transforms},calendar_init=()=>initBlock({name:calendar_name,metadata:calendar_metadata,settings:calendar_settings});var category=__webpack_require__("./packages/icons/build-module/library/category.js"),visually_hidden_component=__webpack_require__("./packages/components/build-module/visually-hidden/component.js"),use_instance_id=__webpack_require__("./packages/compose/build-module/hooks/use-instance-id/index.js"),html_entities_build_module=__webpack_require__("./packages/html-entities/build-module/index.js");const library_pin=(0,jsx_runtime.jsx)(svg.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,jsx_runtime.jsx)(svg.wA,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})});const variations=[{name:"terms",title:(0,i18n_build_module.__)("Terms List"),icon:category.A,attributes:{taxonomy:"post_tag"},isActive:blockAttributes=>"category"!==blockAttributes.taxonomy},{name:"categories",title:(0,i18n_build_module.__)("Categories List"),description:(0,i18n_build_module.__)("Display a list of all categories."),icon:category.A,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}],categories_variations=variations,categories_metadata={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Terms List",category:"widgets",description:"Display a list of all terms of a given taxonomy.",keywords:["categories"],textdomain:"default",attributes:{taxonomy:{type:"string",default:"category"},displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1},label:{type:"string",role:"content"},showLabel:{type:"boolean",default:!0}},usesContext:["enhancedPagination"],supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:categories_name}=categories_metadata,categories_settings={icon:category.A,example:{},edit:function CategoriesEdit({attributes:{displayAsDropdown,showHierarchy,showPostCounts,showOnlyTopLevel,showEmpty,label,showLabel,taxonomy:taxonomySlug},setAttributes,className}){const selectId=(0,use_instance_id.A)(CategoriesEdit,"blocks-category-select"),{records:allTaxonomies,isResolvingTaxonomies}=(0,core_data_build_module.$u)("root","taxonomy"),taxonomies=allTaxonomies?.filter((t=>t.visibility.public)),taxonomy=taxonomies?.find((t=>t.slug===taxonomySlug)),isHierarchicalTaxonomy=!isResolvingTaxonomies&&taxonomy?.hierarchical,query={per_page:-1,hide_empty:!showEmpty,context:"view"};isHierarchicalTaxonomy&&showOnlyTopLevel&&(query.parent=0);const{records:categories,isResolving}=(0,core_data_build_module.$u)("taxonomy",taxonomySlug,query),getCategoriesList=parentId=>categories?.length?null===parentId?categories:categories.filter((({parent})=>parent===parentId)):[],toggleAttribute=attributeName=>newValue=>setAttributes({[attributeName]:newValue}),renderCategoryName=name=>name?(0,html_entities_build_module.S)(name).trim():(0,i18n_build_module.__)("(Untitled)"),renderCategoryListItem=category=>{const childCategories=getCategoriesList(category.id),{id,link,count,name}=category;return(0,jsx_runtime.jsxs)("li",{className:`cat-item cat-item-${id}`,children:[(0,jsx_runtime.jsx)("a",{href:link,target:"_blank",rel:"noreferrer noopener",children:renderCategoryName(name)}),showPostCounts&&` (${count})`,isHierarchicalTaxonomy&&showHierarchy&&!!childCategories.length&&(0,jsx_runtime.jsx)("ul",{className:"children",children:childCategories.map((childCategory=>renderCategoryListItem(childCategory)))})]},id)},renderCategoryDropdownItem=(category,level)=>{const{id,count,name}=category,childCategories=getCategoriesList(id);return[(0,jsx_runtime.jsxs)("option",{className:`level-${level}`,children:[Array.from({length:3*level}).map((()=>" ")),renderCategoryName(name),showPostCounts&&` (${count})`]},id),isHierarchicalTaxonomy&&showHierarchy&&!!childCategories.length&&childCategories.map((childCategory=>renderCategoryDropdownItem(childCategory,level+1)))]},TagName=!categories?.length||displayAsDropdown||isResolving?"div":"ul",classes=(0,clsx.A)(className,{"wp-block-categories-list":!!categories?.length&&!displayAsDropdown&&!isResolving,"wp-block-categories-dropdown":!!categories?.length&&displayAsDropdown&&!isResolving}),blockProps=(0,block_editor_build_module.Z0)({className:classes});return(0,jsx_runtime.jsxs)(TagName,{...blockProps,children:[(0,jsx_runtime.jsx)(block_editor_build_module.s1,{children:(0,jsx_runtime.jsxs)(body.Ay,{title:(0,i18n_build_module.__)("Settings"),children:[Array.isArray(taxonomies)&&(0,jsx_runtime.jsx)(select_control.A,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,i18n_build_module.__)("Taxonomy"),options:taxonomies.map((t=>({label:t.name,value:t.slug}))),value:taxonomySlug,onChange:selectedTaxonomy=>setAttributes({taxonomy:selectedTaxonomy})}),(0,jsx_runtime.jsx)(toggle_control.A,{__nextHasNoMarginBottom:!0,label:(0,i18n_build_module.__)("Display as dropdown"),checked:displayAsDropdown,onChange:toggleAttribute("displayAsDropdown")}),displayAsDropdown&&(0,jsx_runtime.jsx)(toggle_control.A,{__nextHasNoMarginBottom:!0,className:"wp-block-categories__indentation",label:(0,i18n_build_module.__)("Show label"),checked:showLabel,onChange:toggleAttribute("showLabel")}),(0,jsx_runtime.jsx)(toggle_control.A,{__nextHasNoMarginBottom:!0,label:(0,i18n_build_module.__)("Show post counts"),checked:showPostCounts,onChange:toggleAttribute("showPostCounts")}),isHierarchicalTaxonomy&&(0,jsx_runtime.jsx)(toggle_control.A,{__nextHasNoMarginBottom:!0,label:(0,i18n_build_module.__)("Show only top level terms"),checked:showOnlyTopLevel,onChange:toggleAttribute("showOnlyTopLevel")}),(0,jsx_runtime.jsx)(toggle_control.A,{__nextHasNoMarginBottom:!0,label:(0,i18n_build_module.__)("Show empty terms"),checked:showEmpty,onChange:toggleAttribute("showEmpty")}),isHierarchicalTaxonomy&&!showOnlyTopLevel&&(0,jsx_runtime.jsx)(toggle_control.A,{__nextHasNoMarginBottom:!0,label:(0,i18n_build_module.__)("Show hierarchy"),checked:showHierarchy,onChange:toggleAttribute("showHierarchy")})]})}),isResolving&&(0,jsx_runtime.jsx)(build_module_placeholder.A,{icon:library_pin,label:(0,i18n_build_module.__)("Terms"),children:(0,jsx_runtime.jsx)(spinner.Ay,{})}),!isResolving&&0===categories?.length&&(0,jsx_runtime.jsx)("p",{children:taxonomy.labels.no_terms}),!isResolving&&categories?.length>0&&(displayAsDropdown?(()=>{const categoriesList=getCategoriesList(isHierarchicalTaxonomy&&showHierarchy?0:null);return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[showLabel?(0,jsx_runtime.jsx)(block_editor_build_module.sD,{className:"wp-block-categories__label","aria-label":(0,i18n_build_module.__)("Label text"),placeholder:taxonomy.name,withoutInteractiveFormatting:!0,value:label,onChange:html=>setAttributes({label:html})}):(0,jsx_runtime.jsx)(visually_hidden_component.A,{as:"label",htmlFor:selectId,children:label||taxonomy.name}),(0,jsx_runtime.jsxs)("select",{id:selectId,children:[(0,jsx_runtime.jsx)("option",{children:(0,i18n_build_module.nv)((0,i18n_build_module.__)("Select %s"),taxonomy.labels.singular_name)}),categoriesList.map((category=>renderCategoryDropdownItem(category,0)))]})]})})():getCategoriesList(isHierarchicalTaxonomy&&showHierarchy?0:null).map((category=>renderCategoryListItem(category))))]})},variations:categories_variations},categories_init=()=>initBlock({name:categories_name,metadata:categories_metadata,settings:categories_settings}),library_classic=(0,jsx_runtime.jsx)(svg.t4,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,jsx_runtime.jsx)(svg.wA,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})});var debounce=__webpack_require__("./packages/compose/build-module/utils/debounce/index.js"),toolbar_group=__webpack_require__("./packages/components/build-module/toolbar/toolbar-group/index.js");const convert_to_blocks_button=({clientId})=>{const{replaceBlocks}=(0,use_dispatch.A)(block_editor_build_module.M_),block=(0,use_select.A)((select=>select(block_editor_build_module.M_).getBlock(clientId)),[clientId]);return(0,jsx_runtime.jsx)(toolbar_button.A,{onClick:()=>replaceBlocks(block.clientId,(0,build_module.lh)({HTML:(0,build_module.lK)(block)})),children:(0,i18n_build_module.__)("Convert to blocks")})};var build_module_button=__webpack_require__("./packages/components/build-module/button/index.js"),modal=__webpack_require__("./packages/components/build-module/modal/index.js"),flex_component=__webpack_require__("./packages/components/build-module/flex/flex/component.js"),flex_item_component=__webpack_require__("./packages/components/build-module/flex/flex-item/component.js"),fullscreen=__webpack_require__("./packages/icons/build-module/library/fullscreen.js");function ModalAuxiliaryActions({onClick,isModalFullScreen}){return(0,use_viewport_match.A)("small","<")?null:(0,jsx_runtime.jsx)(build_module_button.Ay,{size:"compact",onClick,icon:fullscreen.A,isPressed:isModalFullScreen,label:isModalFullScreen?(0,i18n_build_module.__)("Exit fullscreen"):(0,i18n_build_module.__)("Enter fullscreen")})}function ClassicEdit(props){const styles=(0,use_select.A)((select=>select(block_editor_build_module.M_).getSettings().styles));return(0,react.useEffect)((()=>{const{baseURL,suffix,settings}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:baseURL,suffix}),window.wp.oldEditor.initialize(props.id,{tinymce:{...settings,setup(editor){editor.on("init",(()=>{const doc=editor.getDoc();styles.forEach((({css})=>{const styleEl=doc.createElement("style");styleEl.innerHTML=css,doc.head.appendChild(styleEl)}))}))}}}),()=>{window.wp.oldEditor.remove(props.id)}}),[]),(0,jsx_runtime.jsx)("textarea",{...props})}function ModalEdit(props){const{clientId,attributes:{content},setAttributes,onReplace}=props,[isOpen,setOpen]=(0,react.useState)(!1),[isModalFullScreen,setIsModalFullScreen]=(0,react.useState)(!1),id=`editor-${clientId}`,onClose=()=>content?setOpen(!1):onReplace([]);return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(block_editor_build_module.mC,{children:(0,jsx_runtime.jsx)(toolbar_group.A,{children:(0,jsx_runtime.jsx)(toolbar_button.A,{onClick:()=>setOpen(!0),children:(0,i18n_build_module.__)("Edit")})})}),content&&(0,jsx_runtime.jsx)(raw_html.A,{children:content}),(isOpen||!content)&&(0,jsx_runtime.jsxs)(modal.A,{title:(0,i18n_build_module.__)("Classic Editor"),onRequestClose:onClose,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:isModalFullScreen,className:"block-editor-freeform-modal__content",headerActions:(0,jsx_runtime.jsx)(ModalAuxiliaryActions,{onClick:()=>setIsModalFullScreen(!isModalFullScreen),isModalFullScreen}),children:[(0,jsx_runtime.jsx)(ClassicEdit,{id,defaultValue:content}),(0,jsx_runtime.jsxs)(flex_component.A,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,jsx_runtime.jsx)(flex_item_component.A,{children:(0,jsx_runtime.jsx)(build_module_button.Ay,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:onClose,children:(0,i18n_build_module.__)("Cancel")})}),(0,jsx_runtime.jsx)(flex_item_component.A,{children:(0,jsx_runtime.jsx)(build_module_button.Ay,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{setAttributes({content:window.wp.oldEditor.getContent(id)}),setOpen(!1)},children:(0,i18n_build_module.__)("Save")})})]})]})]})}const{wp}=window;function edit_ClassicEdit({clientId,attributes:{content},setAttributes,onReplace}){const{getMultiSelectedBlockClientIds}=(0,use_select.A)(block_editor_build_module.M_),didMountRef=(0,react.useRef)(!1);return(0,react.useEffect)((()=>{if(!didMountRef.current)return;const editor=window.tinymce.get(`editor-${clientId}`);if(!editor)return;editor.getContent()!==content&&editor.setContent(content||"")}),[clientId,content]),(0,react.useEffect)((()=>{const{baseURL,suffix}=window.wpEditorL10n.tinymce;function onSetup(editor){let bookmark;content&&editor.on("loadContent",(()=>editor.setContent(content))),editor.on("blur",(()=>{bookmark=editor.selection.getBookmark(2,!0);const scrollContainer=document.querySelector(".interface-interface-skeleton__content"),scrollPosition=scrollContainer.scrollTop;return getMultiSelectedBlockClientIds()?.length||setAttributes({content:editor.getContent()}),editor.once("focus",(()=>{bookmark&&(editor.selection.moveToBookmark(bookmark),scrollContainer.scrollTop!==scrollPosition&&(scrollContainer.scrollTop=scrollPosition))})),!1})),editor.on("mousedown touchstart",(()=>{bookmark=null}));const debouncedOnChange=(0,debounce.s)((()=>{const value=editor.getContent();value!==editor._lastChange&&(editor._lastChange=value,setAttributes({content:value}))}),250);editor.on("Paste Change input Undo Redo",debouncedOnChange),editor.on("remove",debouncedOnChange.cancel),editor.on("keydown",(event=>{keycodes_build_module.kx.primary(event,"z")&&event.stopPropagation(),event.keyCode!==keycodes_build_module.G_&&event.keyCode!==keycodes_build_module.SJ||!function isTmceEmpty(editor){const body=editor.getBody();return!(body.childNodes.length>1)&&(0===body.childNodes.length||!(body.childNodes[0].childNodes.length>1)&&/^\n?$/.test(body.innerText||body.textContent))}(editor)||(onReplace([]),event.preventDefault(),event.stopImmediatePropagation());const{altKey}=event;altKey&&event.keyCode===keycodes_build_module.EN&&event.stopPropagation()})),editor.on("init",(()=>{const rootNode=editor.getBody();rootNode.ownerDocument.activeElement===rootNode&&(rootNode.blur(),editor.focus())}))}function initialize(){const{settings}=window.wpEditorL10n.tinymce;wp.oldEditor.initialize(`editor-${clientId}`,{tinymce:{...settings,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${clientId}`,setup:onSetup}})}function onReadyStateChange(){"complete"===document.readyState&&initialize()}return didMountRef.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:baseURL,suffix}),"complete"===document.readyState?initialize():document.addEventListener("readystatechange",onReadyStateChange),()=>{document.removeEventListener("readystatechange",onReadyStateChange),wp.oldEditor.remove(`editor-${clientId}`),didMountRef.current=!1}}),[]),(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)("div",{id:`toolbar-${clientId}`,className:"block-library-classic__toolbar",onClick:function focus(){const editor=window.tinymce.get(`editor-${clientId}`);editor&&editor.focus()},"data-placeholder":(0,i18n_build_module.__)("Classic"),onKeyDown:function onToolbarKeyDown(event){event.stopPropagation(),event.nativeEvent.stopImmediatePropagation()}},"toolbar"),(0,jsx_runtime.jsx)("div",{id:`editor-${clientId}`,className:"wp-block-freeform block-library-rich-text__tinymce"},"editor")]})}const freeform_metadata={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:freeform_name}=freeform_metadata,freeform_settings={icon:library_classic,edit:function FreeformEdit(props){const{clientId}=props,canRemove=(0,use_select.A)((select=>select(block_editor_build_module.M_).canRemoveBlock(clientId)),[clientId]),[isIframed,setIsIframed]=(0,react.useState)(!1),ref=(0,use_ref_effect.A)((element=>{setIsIframed(element.ownerDocument!==document)}),[]);return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[canRemove&&(0,jsx_runtime.jsx)(block_editor_build_module.mC,{children:(0,jsx_runtime.jsx)(toolbar_group.A,{children:(0,jsx_runtime.jsx)(convert_to_blocks_button,{clientId})})}),(0,jsx_runtime.jsx)("div",{...(0,block_editor_build_module.Z0)({ref}),children:isIframed?(0,jsx_runtime.jsx)(ModalEdit,{...props}):(0,jsx_runtime.jsx)(edit_ClassicEdit,{...props})})]})},save:function freeform_save_save({attributes}){const{content}=attributes;return(0,jsx_runtime.jsx)(raw_html.A,{children:content})}},freeform_init=()=>initBlock({name:freeform_name,metadata:freeform_metadata,settings:freeform_settings});var code=__webpack_require__("./packages/icons/build-module/library/code.js");var pipe=__webpack_require__("./packages/compose/build-module/higher-order/pipe.js");function escapeOpeningSquareBrackets(content){return content.replace(/\[/g,"[")}function escapeProtocolInIsolatedUrls(content){return content.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}const code_transforms_transforms={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,build_module.Wv)("core/code")},{type:"block",blocks:["core/paragraph"],transform:({content,metadata})=>(0,build_module.Wv)("core/code",{content,metadata:getTransformedMetadata(metadata,"core/code")})},{type:"block",blocks:["core/html"],transform:({content:text,metadata})=>(0,build_module.Wv)("core/code",{content:(0,rich_text_build_module.Ky)({value:(0,rich_text_build_module.vt)({text})}),metadata:getTransformedMetadata(metadata,"core/code")})},{type:"raw",isMatch:node=>"PRE"===node.nodeName&&1===node.children.length&&"CODE"===node.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:({content,metadata})=>(0,build_module.Wv)("core/paragraph",{content,metadata:getTransformedMetadata(metadata,"core/paragraph")})}]},code_transforms=code_transforms_transforms,code_metadata={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"code",__unstablePreserveWhiteSpace:!0}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-code"},{name:code_name}=code_metadata,code_settings={icon:code.A,example:{attributes:{content:(0,i18n_build_module.__)("// A “block” is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );")}},merge:(attributes,attributesToMerge)=>({content:attributes.content+"\n\n"+attributesToMerge.content}),transforms:code_transforms,edit:function CodeEdit({attributes,setAttributes,onRemove,insertBlocksAfter,mergeBlocks}){const blockProps=(0,block_editor_build_module.Z0)();return(0,jsx_runtime.jsx)("pre",{...blockProps,children:(0,jsx_runtime.jsx)(block_editor_build_module.sD,{tagName:"code",identifier:"content",value:attributes.content,onChange:content=>setAttributes({content}),onRemove,onMerge:mergeBlocks,placeholder:(0,i18n_build_module.__)("Write code…"),"aria-label":(0,i18n_build_module.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>insertBlocksAfter((0,build_module.Wv)((0,build_module.K$)()))})})},save:function code_save_save({attributes}){return(0,jsx_runtime.jsx)("pre",{...block_editor_build_module.Z0.save(),children:(0,jsx_runtime.jsx)(block_editor_build_module.sD.Content,{tagName:"code",value:(content="string"==typeof attributes.content?attributes.content:attributes.content.toHTMLString({preserveWhiteSpace:!0}),(0,pipe.h)(escapeOpeningSquareBrackets,escapeProtocolInIsolatedUrls)(content||""))})});var content}},code_init=()=>initBlock({name:code_name,metadata:code_metadata,settings:code_settings}),library_column=(0,jsx_runtime.jsx)(svg.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,jsx_runtime.jsx)(svg.wA,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})}),column_deprecated_deprecated=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible:({width})=>isFinite(width),migrate:attributes=>({...attributes,width:`${attributes.width}%`}),save({attributes}){const{verticalAlignment,width}=attributes,wrapperClasses=(0,clsx.A)({[`is-vertically-aligned-${verticalAlignment}`]:verticalAlignment}),style={flexBasis:width+"%"};return(0,jsx_runtime.jsx)("div",{className:wrapperClasses,style,children:(0,jsx_runtime.jsx)(block_editor_build_module.Tj.Content,{})})}}],column_deprecated=column_deprecated_deprecated;var utils=__webpack_require__("./packages/components/build-module/unit-control/utils.js"),unit_control=__webpack_require__("./packages/components/build-module/unit-control/index.js");function ColumnInspectorControls({width,setAttributes}){const[availableUnits]=(0,block_editor_build_module.t0)("spacing.units"),units=(0,utils.E)({availableUnits:availableUnits||["%","px","em","rem","vw"]}),dropdownMenuProps=useToolsPanelDropdownMenuProps();return(0,jsx_runtime.jsx)(component.A,{label:(0,i18n_build_module.__)("Settings"),resetAll:()=>{setAttributes({width:void 0})},dropdownMenuProps,children:(0,jsx_runtime.jsx)(tools_panel_item_component.A,{hasValue:()=>void 0!==width,label:(0,i18n_build_module.__)("Width"),onDeselect:()=>setAttributes({width:void 0}),isShownByDefault:!0,children:(0,jsx_runtime.jsx)(unit_control.Ay,{label:(0,i18n_build_module.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",__next40pxDefaultSize:!0,value:width||"",onChange:nextWidth=>{nextWidth=0>parseFloat(nextWidth)?"0":nextWidth,setAttributes({width:nextWidth})},units})})})}const column_edit=function ColumnEdit({attributes:{verticalAlignment,width,templateLock,allowedBlocks},setAttributes,clientId}){const classes=(0,clsx.A)("block-core-columns",{[`is-vertically-aligned-${verticalAlignment}`]:verticalAlignment}),{columnsIds,hasChildBlocks,rootClientId}=(0,use_select.A)((select=>{const{getBlockOrder,getBlockRootClientId}=select(block_editor_build_module.M_),rootId=getBlockRootClientId(clientId);return{hasChildBlocks:getBlockOrder(clientId).length>0,rootClientId:rootId,columnsIds:getBlockOrder(rootId)}}),[clientId]),{updateBlockAttributes}=(0,use_dispatch.A)(block_editor_build_module.M_),widthWithUnit=Number.isFinite(width)?width+"%":width,blockProps=(0,block_editor_build_module.Z0)({className:classes,style:widthWithUnit?{flexBasis:widthWithUnit}:void 0}),columnsCount=columnsIds.length,currentColumnPosition=columnsIds.indexOf(clientId)+1,label=(0,i18n_build_module.nv)((0,i18n_build_module.__)("%1$s (%2$d of %3$d)"),blockProps["aria-label"],currentColumnPosition,columnsCount),innerBlocksProps=(0,block_editor_build_module.yK)({...blockProps,"aria-label":label},{templateLock,allowedBlocks,renderAppender:hasChildBlocks?void 0:block_editor_build_module.Tj.ButtonBlockAppender});return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(block_editor_build_module.mC,{children:(0,jsx_runtime.jsx)(block_editor_build_module.OK,{onChange:value=>{setAttributes({verticalAlignment:value}),updateBlockAttributes(rootClientId,{verticalAlignment:null})},value:verticalAlignment,controls:["top","center","bottom","stretch"]})}),(0,jsx_runtime.jsx)(block_editor_build_module.s1,{children:(0,jsx_runtime.jsx)(ColumnInspectorControls,{width,setAttributes})}),(0,jsx_runtime.jsx)("div",{...innerBlocksProps})]})};const column_metadata={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/column",title:"Column",category:"design",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,anchor:!0,reusable:!1,html:!1,color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0,interactivity:{clientNavigation:!0}}},{name:column_name}=column_metadata,column_settings={icon:library_column,edit:column_edit,save:function column_save_save({attributes}){const{verticalAlignment,width}=attributes,wrapperClasses=(0,clsx.A)({[`is-vertically-aligned-${verticalAlignment}`]:verticalAlignment});let style;if(width&&/\d/.test(width)){let flexBasis=Number.isFinite(width)?width+"%":width;if(!Number.isFinite(width)&&width?.endsWith("%")){const multiplier=1e12;flexBasis=Math.round(Number.parseFloat(width)*multiplier)/multiplier+"%"}style={flexBasis}}const blockProps=block_editor_build_module.Z0.save({className:wrapperClasses,style}),innerBlocksProps=block_editor_build_module.yK.save(blockProps);return(0,jsx_runtime.jsx)("div",{...innerBlocksProps})},deprecated:column_deprecated},column_init=()=>initBlock({name:column_name,metadata:column_metadata,settings:column_settings}),library_columns=(0,jsx_runtime.jsx)(svg.t4,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,jsx_runtime.jsx)(svg.wA,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})});function getDeprecatedLayoutColumn(originalContent){let columnMatch,{doc}=getDeprecatedLayoutColumn;doc||(doc=document.implementation.createHTMLDocument(""),getDeprecatedLayoutColumn.doc=doc),doc.body.innerHTML=originalContent;for(const classListItem of doc.body.firstChild.classList)if(columnMatch=classListItem.match(/^layout-column-(\d+)$/))return Number(columnMatch[1])-1}const columns_deprecated=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:attributes=>{if(!attributes.customTextColor&&!attributes.customBackgroundColor)return attributes;const style={color:{}};attributes.customTextColor&&(style.color.text=attributes.customTextColor),attributes.customBackgroundColor&&(style.color.background=attributes.customBackgroundColor);const{customTextColor,customBackgroundColor,...restAttributes}=attributes;return{...restAttributes,style,isStackedOnMobile:!0}},save({attributes}){const{verticalAlignment,backgroundColor,customBackgroundColor,textColor,customTextColor}=attributes,backgroundClass=(0,block_editor_build_module.tQ)("background-color",backgroundColor),textClass=(0,block_editor_build_module.tQ)("color",textColor),className=(0,clsx.A)({"has-background":backgroundColor||customBackgroundColor,"has-text-color":textColor||customTextColor,[backgroundClass]:backgroundClass,[textClass]:textClass,[`are-vertically-aligned-${verticalAlignment}`]:verticalAlignment}),style={backgroundColor:backgroundClass?void 0:customBackgroundColor,color:textClass?void 0:customTextColor};return(0,jsx_runtime.jsx)("div",{className:className||void 0,style,children:(0,jsx_runtime.jsx)(block_editor_build_module.Tj.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible:(attributes,innerBlocks)=>!!innerBlocks.some((innerBlock=>/layout-column-\d+/.test(innerBlock.originalContent)))&&innerBlocks.some((innerBlock=>void 0!==getDeprecatedLayoutColumn(innerBlock.originalContent))),migrate(attributes,innerBlocks){const migratedInnerBlocks=innerBlocks.reduce(((accumulator,innerBlock)=>{const{originalContent}=innerBlock;let columnIndex=getDeprecatedLayoutColumn(originalContent);return void 0===columnIndex&&(columnIndex=0),accumulator[columnIndex]||(accumulator[columnIndex]=[]),accumulator[columnIndex].push(innerBlock),accumulator}),[]).map((columnBlocks=>(0,build_module.Wv)("core/column",{},columnBlocks))),{columns:ignoredColumns,...restAttributes}=attributes;return[{...restAttributes,isStackedOnMobile:!0},migratedInnerBlocks]},save({attributes}){const{columns}=attributes;return(0,jsx_runtime.jsx)("div",{className:`has-${columns}-columns`,children:(0,jsx_runtime.jsx)(block_editor_build_module.Tj.Content,{})})}},{attributes:{columns:{type:"number",default:2}},migrate(attributes,innerBlocks){const{columns,...restAttributes}=attributes;return[attributes={...restAttributes,isStackedOnMobile:!0},innerBlocks]},save({attributes}){const{verticalAlignment,columns}=attributes,wrapperClasses=(0,clsx.A)(`has-${columns}-columns`,{[`are-vertically-aligned-${verticalAlignment}`]:verticalAlignment});return(0,jsx_runtime.jsx)("div",{className:wrapperClasses,children:(0,jsx_runtime.jsx)(block_editor_build_module.Tj.Content,{})})}}];var notice=__webpack_require__("./packages/components/build-module/notice/index.js"),use_registry=__webpack_require__("./packages/data/build-module/components/registry-provider/use-registry.js");const toWidthPrecision=value=>{const unitlessValue=parseFloat(value);return Number.isFinite(unitlessValue)?parseFloat(unitlessValue.toFixed(2)):void 0};function getEffectiveColumnWidth(block,totalBlockCount){const{width=100/totalBlockCount}=block.attributes;return toWidthPrecision(width)}function getRedistributedColumnWidths(blocks,availableWidth,totalBlockCount=blocks.length){const totalWidth=function getTotalColumnsWidth(blocks,totalBlockCount=blocks.length){return blocks.reduce(((sum,block)=>sum+getEffectiveColumnWidth(block,totalBlockCount)),0)}(blocks,totalBlockCount);return Object.fromEntries(Object.entries(function getColumnWidths(blocks,totalBlockCount=blocks.length){return blocks.reduce(((accumulator,block)=>{const width=getEffectiveColumnWidth(block,totalBlockCount);return Object.assign(accumulator,{[block.clientId]:width})}),{})}(blocks,totalBlockCount)).map((([clientId,width])=>[clientId,toWidthPrecision(availableWidth*width/totalWidth)])))}function getMappedColumnWidths(blocks,widths){return blocks.map((block=>({...block,attributes:{...block.attributes,width:`${widths[block.clientId]}%`}})))}const edit_DEFAULT_BLOCK={name:"core/column"};function edit_ColumnInspectorControls({clientId,setAttributes,isStackedOnMobile}){const{count,canInsertColumnBlock,minCount}=(0,use_select.A)((select=>{const{canInsertBlockType,canRemoveBlock,getBlockOrder}=select(block_editor_build_module.M_),blockOrder=getBlockOrder(clientId),preventRemovalBlockIndexes=blockOrder.reduce(((acc,blockId,index)=>(canRemoveBlock(blockId)||acc.push(index),acc)),[]);return{count:blockOrder.length,canInsertColumnBlock:canInsertBlockType("core/column",clientId),minCount:Math.max(...preventRemovalBlockIndexes)+1}}),[clientId]),{getBlocks}=(0,use_select.A)(block_editor_build_module.M_),{replaceInnerBlocks}=(0,use_dispatch.A)(block_editor_build_module.M_);function updateColumns(previousColumns,newColumns){let innerBlocks=getBlocks(clientId);const hasExplicitWidths=function hasExplicitPercentColumnWidths(blocks){return blocks.every((block=>{const blockWidth=block.attributes.width;return Number.isFinite(blockWidth?.endsWith?.("%")?parseFloat(blockWidth):blockWidth)}))}(innerBlocks),isAddingColumn=newColumns>previousColumns;if(isAddingColumn&&hasExplicitWidths){const newColumnWidth=toWidthPrecision(100/newColumns),newlyAddedColumns=newColumns-previousColumns;innerBlocks=[...getMappedColumnWidths(innerBlocks,getRedistributedColumnWidths(innerBlocks,100-newColumnWidth*newlyAddedColumns)),...Array.from({length:newlyAddedColumns}).map((()=>(0,build_module.Wv)("core/column",{width:`${newColumnWidth}%`})))]}else if(isAddingColumn)innerBlocks=[...innerBlocks,...Array.from({length:newColumns-previousColumns}).map((()=>(0,build_module.Wv)("core/column")))];else if(newColumns{updateColumns(count,minCount),setAttributes({isStackedOnMobile:!0})},dropdownMenuProps,children:[canInsertColumnBlock&&(0,jsx_runtime.jsxs)(tools_panel_item_component.A,{label:(0,i18n_build_module.__)("Columns"),isShownByDefault:!0,hasValue:()=>count,onDeselect:()=>updateColumns(count,minCount),children:[(0,jsx_runtime.jsx)(range_control.A,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,i18n_build_module.__)("Columns"),value:count,onChange:value=>updateColumns(count,Math.max(minCount,value)),min:Math.max(1,minCount),max:Math.max(6,count)}),count>6&&(0,jsx_runtime.jsx)(notice.A,{status:"warning",isDismissible:!1,children:(0,i18n_build_module.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,jsx_runtime.jsx)(tools_panel_item_component.A,{label:(0,i18n_build_module.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!0!==isStackedOnMobile,onDeselect:()=>setAttributes({isStackedOnMobile:!0}),children:(0,jsx_runtime.jsx)(toggle_control.A,{__nextHasNoMarginBottom:!0,label:(0,i18n_build_module.__)("Stack on mobile"),checked:isStackedOnMobile,onChange:()=>setAttributes({isStackedOnMobile:!isStackedOnMobile})})})]})}function ColumnsEditContainer({attributes,setAttributes,clientId}){const{isStackedOnMobile,verticalAlignment,templateLock}=attributes,registry=(0,use_registry.A)(),{getBlockOrder}=(0,use_select.A)(block_editor_build_module.M_),{updateBlockAttributes}=(0,use_dispatch.A)(block_editor_build_module.M_),classes=(0,clsx.A)({[`are-vertically-aligned-${verticalAlignment}`]:verticalAlignment,"is-not-stacked-on-mobile":!isStackedOnMobile}),blockProps=(0,block_editor_build_module.Z0)({className:classes}),innerBlocksProps=(0,block_editor_build_module.yK)(blockProps,{defaultBlock:edit_DEFAULT_BLOCK,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock});return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(block_editor_build_module.mC,{children:(0,jsx_runtime.jsx)(block_editor_build_module.OK,{onChange:function updateAlignment(newVerticalAlignment){const innerBlockClientIds=getBlockOrder(clientId);registry.batch((()=>{setAttributes({verticalAlignment:newVerticalAlignment}),updateBlockAttributes(innerBlockClientIds,{verticalAlignment:newVerticalAlignment})}))},value:verticalAlignment})}),(0,jsx_runtime.jsx)(block_editor_build_module.s1,{children:(0,jsx_runtime.jsx)(edit_ColumnInspectorControls,{clientId,setAttributes,isStackedOnMobile})}),(0,jsx_runtime.jsx)("div",{...innerBlocksProps})]})}function Placeholder({clientId,name,setAttributes}){const{blockType,defaultVariation,variations}=(0,use_select.A)((select=>{const{getBlockVariations,getBlockType,getDefaultBlockVariation}=select(build_module.M_);return{blockType:getBlockType(name),defaultVariation:getDefaultBlockVariation(name,"block"),variations:getBlockVariations(name,"block")}}),[name]),{replaceInnerBlocks}=(0,use_dispatch.A)(block_editor_build_module.M_),blockProps=(0,block_editor_build_module.Z0)();return(0,jsx_runtime.jsx)("div",{...blockProps,children:(0,jsx_runtime.jsx)(block_editor_build_module.zB,{icon:blockType?.icon?.src,label:blockType?.title,variations,instructions:(0,i18n_build_module.__)("Divide into columns. Select a layout:"),onSelect:(nextVariation=defaultVariation)=>{nextVariation.attributes&&setAttributes(nextVariation.attributes),nextVariation.innerBlocks&&replaceInnerBlocks(clientId,(0,build_module.to)(nextVariation.innerBlocks),!0)},allowSkip:!0})})}const columns_edit=props=>{const{clientId}=props,Component=(0,use_select.A)((select=>select(block_editor_build_module.M_).getBlocks(clientId).length>0),[clientId])?ColumnsEditContainer:Placeholder;return(0,jsx_runtime.jsx)(Component,{...props})};const columns_variations=[{name:"one-column-full",title:(0,i18n_build_module.__)("100"),description:(0,i18n_build_module.__)("One column"),icon:(0,jsx_runtime.jsx)(svg.t4,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,jsx_runtime.jsx)(svg.wA,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,i18n_build_module.__)("50 / 50"),description:(0,i18n_build_module.__)("Two columns; equal split"),icon:(0,jsx_runtime.jsx)(svg.t4,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,jsx_runtime.jsx)(svg.wA,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,i18n_build_module.__)("33 / 66"),description:(0,i18n_build_module.__)("Two columns; one-third, two-thirds split"),icon:(0,jsx_runtime.jsx)(svg.t4,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,jsx_runtime.jsx)(svg.wA,{d:"M0 10a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm17 0a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H19a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,i18n_build_module.__)("66 / 33"),description:(0,i18n_build_module.__)("Two columns; two-thirds, one-third split"),icon:(0,jsx_runtime.jsx)(svg.t4,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,jsx_runtime.jsx)(svg.wA,{d:"M0 10a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm33 0a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,i18n_build_module.__)("33 / 33 / 33"),description:(0,i18n_build_module.__)("Three columns; equal split"),icon:(0,jsx_runtime.jsx)(svg.t4,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,jsx_runtime.jsx)(svg.wA,{d:"M0 10a2 2 0 0 1 2-2h10.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm16.5 0c0-1.105.864-2 1.969-2H29.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H18.47c-1.105 0-1.969-.895-1.969-2V10Zm17 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35.469c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,i18n_build_module.__)("25 / 50 / 25"),description:(0,i18n_build_module.__)("Three columns; wide center column"),icon:(0,jsx_runtime.jsx)(svg.t4,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,jsx_runtime.jsx)(svg.wA,{d:"M0 10a2 2 0 0 1 2-2h7.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm13.5 0c0-1.105.864-2 1.969-2H32.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H15.47c-1.105 0-1.969-.895-1.969-2V10Zm23 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2h-7.531c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}],columns_transforms_transforms={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:blocks=>{const columnWidth=+(100/blocks.length).toFixed(2),innerBlocksTemplate=blocks.map((({name,attributes,innerBlocks})=>["core/column",{width:`${columnWidth}%`},[[name,{...attributes},innerBlocks]]]));return(0,build_module.Wv)("core/columns",{},(0,build_module.to)(innerBlocksTemplate))},isMatch:({length:selectedBlocksLength},blocks)=>(1!==blocks.length||"core/columns"!==blocks[0].name)&&(selectedBlocksLength&&selectedBlocksLength<=6)},{type:"block",blocks:["core/media-text"],priority:1,transform:(attributes,innerBlocks)=>{const{align,backgroundColor,textColor,style,mediaAlt:alt,mediaId:id,mediaPosition,mediaSizeSlug:sizeSlug,mediaType,mediaUrl:url,mediaWidth,verticalAlignment}=attributes;let media;if("image"!==mediaType&&mediaType)media=["core/video",{id,src:url}];else{media=["core/image",{...{id,alt,url,sizeSlug},...{href:attributes.href,linkClass:attributes.linkClass,linkDestination:attributes.linkDestination,linkTarget:attributes.linkTarget,rel:attributes.rel}}]}const innerBlocksTemplate=[["core/column",{width:`${mediaWidth}%`},[media]],["core/column",{width:100-mediaWidth+"%"},innerBlocks]];return"right"===mediaPosition&&innerBlocksTemplate.reverse(),(0,build_module.Wv)("core/columns",{align,backgroundColor,textColor,style,verticalAlignment},(0,build_module.to)(innerBlocksTemplate))}}],ungroup:(attributes,innerBlocks)=>innerBlocks.flatMap((innerBlock=>innerBlock.innerBlocks))},columns_transforms=columns_transforms_transforms,columns_metadata={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",allowedBlocks:["core/column"],description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,heading:!0,button:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:{__experimentalDefault:"2em",sides:["horizontal","vertical"]},margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},shadow:!0},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:columns_name}=columns_metadata,columns_settings={icon:library_columns,variations:columns_variations,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,i18n_build_module.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,i18n_build_module.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,i18n_build_module.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,i18n_build_module.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:columns_deprecated,edit:columns_edit,save:function columns_save_save({attributes}){const{isStackedOnMobile,verticalAlignment}=attributes,className=(0,clsx.A)({[`are-vertically-aligned-${verticalAlignment}`]:verticalAlignment,"is-not-stacked-on-mobile":!isStackedOnMobile}),blockProps=block_editor_build_module.Z0.save({className}),innerBlocksProps=block_editor_build_module.yK.save(blockProps);return(0,jsx_runtime.jsx)("div",{...innerBlocksProps})},transforms:columns_transforms},columns_init=()=>initBlock({name:columns_name,metadata:columns_metadata,settings:columns_settings}),post_comments=(0,jsx_runtime.jsx)(svg.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,jsx_runtime.jsx)(svg.wA,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"})}),comments_deprecated=[{attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:Tag}}){const blockProps=block_editor_build_module.Z0.save(),{className}=blockProps,classes=className?.split(" ")||[],newClasses=classes?.filter((cls=>"wp-block-comments"!==cls)),newBlockProps={...blockProps,className:newClasses.join(" ")};return(0,jsx_runtime.jsx)(Tag,{...newBlockProps,children:(0,jsx_runtime.jsx)(block_editor_build_module.Tj.Content,{})})}}];function CommentsInspectorControls({attributes:{tagName},setAttributes}){const htmlElementMessages={section:(0,i18n_build_module.__)("The
element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,i18n_build_module.__)("The