/*! This file is auto-generated */ this.wp=this.wp||{},this.wp.priorityQueue=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="XPKI")}({XPKI:function(e,t,n){"use strict";n.r(t),n.d(t,"createQueue",(function(){return o}));var r="undefined"==typeof window?e=>{setTimeout(()=>e(Date.now()),0)}:window.requestIdleCallback||window.requestAnimationFrame;const o=()=>{let e=[],t=new WeakMap,n=!1;const o=u=>{const i="number"==typeof u?()=>!1:()=>u.timeRemaining()>0;do{if(0===e.length)return void(n=!1);const r=e.shift();t.get(r)(),t.delete(r)}while(i());r(o)};return{add:(u,i)=>{t.has(u)||e.push(u),t.set(u,i),n||(n=!0,r(o))},flush:n=>{if(!t.has(n))return!1;const r=e.indexOf(n);e.splice(r,1);const o=t.get(n);return t.delete(n),o(),!0},reset:()=>{e=[],t=new WeakMap,n=!1}}}}});; /*! This file is auto-generated */ this.wp=this.wp||{},this.wp.compose=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="PD33")}({"1CF3":function(e,t){e.exports=window.wp.dom},GRId:function(e,t){e.exports=window.wp.element},NMb1:function(e,t){e.exports=window.wp.deprecated},PD33:function(e,t,n){"use strict";n.r(t),n.d(t,"createHigherOrderComponent",(function(){return o})),n.d(t,"compose",(function(){return i})),n.d(t,"ifCondition",(function(){return c})),n.d(t,"pure",(function(){return l})),n.d(t,"withGlobalEvents",(function(){return v})),n.d(t,"withInstanceId",(function(){return g})),n.d(t,"withSafeTimeout",(function(){return E})),n.d(t,"withState",(function(){return w})),n.d(t,"useConstrainedTabbing",(function(){return T})),n.d(t,"useCopyOnClick",(function(){return C})),n.d(t,"useCopyToClipboard",(function(){return D})),n.d(t,"__experimentalUseDialog",(function(){return N})),n.d(t,"__experimentalUseDisabled",(function(){return H})),n.d(t,"__experimentalUseDragging",(function(){return q})),n.d(t,"useFocusOnMount",(function(){return R})),n.d(t,"__experimentalUseFocusOutside",(function(){return P})),n.d(t,"useFocusReturn",(function(){return _})),n.d(t,"useInstanceId",(function(){return y})),n.d(t,"useIsomorphicLayoutEffect",(function(){return U})),n.d(t,"useKeyboardShortcut",(function(){return V})),n.d(t,"useMediaQuery",(function(){return W})),n.d(t,"usePrevious",(function(){return $})),n.d(t,"useReducedMotion",(function(){return B})),n.d(t,"useViewportMatch",(function(){return ee})),n.d(t,"useResizeObserver",(function(){return ne})),n.d(t,"useAsyncList",(function(){return ie})),n.d(t,"useWarnOnChange",(function(){return ue})),n.d(t,"useDebounce",(function(){return se})),n.d(t,"useThrottle",(function(){return ae})),n.d(t,"useMergeRefs",(function(){return I})),n.d(t,"useRefEffect",(function(){return j})),n.d(t,"__experimentalUseDropZone",(function(){return fe})),n.d(t,"useFocusableIframe",(function(){return de})),n.d(t,"__experimentalUseFixedWindowList",(function(){return pe}));var r=n("YLtl");var o=function(e,t){return n=>{const o=e(n),i=n.displayName||n.name||"Component";return o.displayName=`${Object(r.upperFirst)(Object(r.camelCase)(t))}(${i})`,o}},i=r.flowRight,u=n("GRId");var c=e=>o(t=>n=>e(n)?Object(u.createElement)(t,n):null,"ifCondition"),s=n("rl8x"),a=n.n(s);var l=o(e=>e.prototype instanceof u.Component?class extends e{shouldComponentUpdate(e,t){return!a()(e,this.props)||!a()(t,this.state)}}:class extends u.Component{shouldComponentUpdate(e){return!a()(e,this.props)}render(){return Object(u.createElement)(e,this.props)}},"pure"),f=n("wx14"),d=n("NMb1"),p=n.n(d);const h=new class{constructor(){this.listeners={},this.handleEvent=this.handleEvent.bind(this)}add(e,t){this.listeners[e]||(window.addEventListener(e,this.handleEvent),this.listeners[e]=[]),this.listeners[e].push(t)}remove(e,t){this.listeners[e]=Object(r.without)(this.listeners[e],t),this.listeners[e].length||(window.removeEventListener(e,this.handleEvent),delete this.listeners[e])}handleEvent(e){Object(r.forEach)(this.listeners[e.type],t=>{t.handleEvent(e)})}};function v(e){return p()("wp.compose.withGlobalEvents",{since:"5.7",alternative:"useEffect"}),o(t=>{class n extends u.Component{constructor(e){super(e),this.handleEvent=this.handleEvent.bind(this),this.handleRef=this.handleRef.bind(this)}componentDidMount(){Object(r.forEach)(e,(e,t)=>{h.add(t,this)})}componentWillUnmount(){Object(r.forEach)(e,(e,t)=>{h.remove(t,this)})}handleEvent(t){const n=e[t.type];"function"==typeof this.wrappedRef[n]&&this.wrappedRef[n](t)}handleRef(e){this.wrappedRef=e,this.props.forwardedRef&&this.props.forwardedRef(e)}render(){return Object(u.createElement)(t,Object(f.a)({},this.props.ownProps,{ref:this.handleRef}))}}return Object(u.forwardRef)((e,t)=>Object(u.createElement)(n,{ownProps:e,forwardedRef:t}))},"withGlobalEvents")}const m=new WeakMap;function b(e){const t=m.get(e)||0;return m.set(e,t+1),t}function y(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Object(u.useMemo)(()=>{if(n)return n;const r=b(e);return t?`${t}-${r}`:r},[e])}var g=o(e=>t=>{const n=y(e);return Object(u.createElement)(e,Object(f.a)({},t,{instanceId:n}))},"withInstanceId");var E=o(e=>class extends u.Component{constructor(e){super(e),this.timeouts=[],this.setTimeout=this.setTimeout.bind(this),this.clearTimeout=this.clearTimeout.bind(this)}componentWillUnmount(){this.timeouts.forEach(clearTimeout)}setTimeout(e,t){const n=setTimeout(()=>{e(),this.clearTimeout(n)},t);return this.timeouts.push(n),n}clearTimeout(e){clearTimeout(e),this.timeouts=Object(r.without)(this.timeouts,e)}render(){const t={...this.props,setTimeout:this.setTimeout,clearTimeout:this.clearTimeout};return Object(u.createElement)(e,t)}},"withSafeTimeout");function w(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p()("wp.compose.withState",{alternative:"wp.element.useState"}),o(t=>class extends u.Component{constructor(t){super(t),this.setState=this.setState.bind(this),this.state=e}render(){return Object(u.createElement)(t,Object(f.a)({},this.props,this.state,{setState:this.setState}))}},"withState")}var O=n("RxS6"),k=n("1CF3");function j(e,t){const n=Object(u.useRef)();return Object(u.useCallback)(t=>{t?n.current=e(t):n.current&&n.current()},t)}var T=function(){return j(e=>{let t;function n(n){const{keyCode:r,shiftKey:o,target:i}=n;if(r!==O.TAB)return;const u=o?"findPrevious":"findNext",c=k.focus.tabbable[u](i)||null;if(e.contains(c))return;const s=o?"append":"prepend",{ownerDocument:a}=e,l=a.createElement("div");l.tabIndex=-1,e[s](l),l.focus(),t=setTimeout(()=>e.removeChild(l))}return e.addEventListener("keydown",n),()=>{e.removeEventListener("keydown",n),clearTimeout(t)}},[])},x=n("sxGJ"),S=n.n(x);function C(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4e3;p()("wp.compose.useCopyOnClick",{since:"10.3",plugin:"Gutenberg",alternative:"wp.compose.useCopyToClipboard"});const r=Object(u.useRef)(),[o,i]=Object(u.useState)(!1);return Object(u.useEffect)(()=>{let o;if(e.current)return r.current=new S.a(e.current,{text:()=>"function"==typeof t?t():t}),r.current.on("success",e=>{let{clearSelection:t,trigger:r}=e;t(),r&&r.focus(),n&&(i(!0),clearTimeout(o),o=setTimeout(()=>i(!1),n))}),()=>{r.current&&r.current.destroy(),clearTimeout(o)}},[t,n,i]),o}function L(e){const t=Object(u.useRef)(e);return t.current=e,t}function D(e,t){const n=L(e),r=L(t);return j(e=>{const t=new S.a(e,{text:()=>"function"==typeof n.current?n.current():n.current||""});return t.on("success",t=>{let{clearSelection:n}=t;n(),e.focus(),r.current&&r.current()}),()=>{t.destroy()}},[])}function R(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"firstElement";const t=Object(u.useRef)(e);return Object(u.useEffect)(()=>{t.current=e},[e]),Object(u.useCallback)(e=>{var n,r;if(!e||!1===t.current)return;if(e.contains(null!==(n=null===(r=e.ownerDocument)||void 0===r?void 0:r.activeElement)&&void 0!==n?n:null))return;let o=e;if("firstElement"===t.current){const t=k.focus.tabbable.find(e)[0];t&&(o=t)}o.focus()},[])}var _=function(e){const t=Object(u.useRef)(null),n=Object(u.useRef)(null),r=Object(u.useRef)(e);return Object(u.useEffect)(()=>{r.current=e},[e]),Object(u.useCallback)(e=>{if(e){if(t.current=e,n.current)return;n.current=e.ownerDocument.activeElement}else if(n.current){var o,i,u;const e=null===(o=t.current)||void 0===o?void 0:o.contains(null===(i=t.current)||void 0===i?void 0:i.ownerDocument.activeElement);if(null!==(u=t.current)&&void 0!==u&&u.isConnected&&!e)return;var c;if(r.current)r.current();else null===(c=n.current)||void 0===c||c.focus()}},[])};const M=["button","submit"];function P(e){const t=Object(u.useRef)(e);Object(u.useEffect)(()=>{t.current=e},[e]);const n=Object(u.useRef)(!1),o=Object(u.useRef)(),i=Object(u.useCallback)(()=>{clearTimeout(o.current)},[]);Object(u.useEffect)(()=>()=>i(),[]),Object(u.useEffect)(()=>{e||i()},[e,i]);const c=Object(u.useCallback)(e=>{const{type:t,target:o}=e;Object(r.includes)(["mouseup","touchend"],t)?n.current=!1:function(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(r.includes)(M,e.type)}return!1}(o)&&(n.current=!0)},[]),s=Object(u.useCallback)(e=>{e.persist(),n.current||(o.current=setTimeout(()=>{document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()},0))},[]);return{onFocus:i,onMouseDown:c,onMouseUp:c,onTouchStart:c,onTouchEnd:c,onBlur:s}}function A(e,t){"function"==typeof e?e(t):e&&e.hasOwnProperty("current")&&(e.current=t)}function I(e){const t=Object(u.useRef)(),n=Object(u.useRef)(!1),r=Object(u.useRef)([]),o=Object(u.useRef)(e);return o.current=e,Object(u.useLayoutEffect)(()=>{!1===n.current&&e.forEach((e,n)=>{const o=r.current[n];e!==o&&(A(o,null),A(e,t.current))}),r.current=e},e),Object(u.useLayoutEffect)(()=>{n.current=!1}),Object(u.useCallback)(e=>{A(t,e),n.current=!0;const i=e?o.current:r.current;for(const t of i)A(t,e)},[])}var N=function(e){const t=Object(u.useRef)();Object(u.useEffect)(()=>{t.current=e},Object.values(e));const n=T(),r=R(e.focusOnMount),o=_(),i=P(e=>{var n,r;null!==(n=t.current)&&void 0!==n&&n.__unstableOnClose?t.current.__unstableOnClose("focus-outside",e):null!==(r=t.current)&&void 0!==r&&r.onClose&&t.current.onClose()}),c=Object(u.useCallback)(e=>{e&&e.addEventListener("keydown",e=>{var n;e.keyCode===O.ESCAPE&&!e.defaultPrevented&&null!==(n=t.current)&&void 0!==n&&n.onClose&&(e.preventDefault(),t.current.onClose())})},[]);return[I([!1!==e.focusOnMount?n:null,!1!==e.focusOnMount?o:null,!1!==e.focusOnMount?r:null,c]),{...i,tabIndex:"-1"}]};const F=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA"];function H(){const e=Object(u.useRef)(null),t=()=>{e.current&&k.focus.focusable.find(e.current).forEach(e=>{Object(r.includes)(F,e.nodeName)&&e.setAttribute("disabled",""),"A"===e.nodeName&&e.setAttribute("tabindex","-1");const t=e.getAttribute("tabindex");null!==t&&"-1"!==t&&e.removeAttribute("tabindex"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")})},n=Object(u.useCallback)(Object(r.debounce)(t,void 0,{leading:!0}),[]);return Object(u.useLayoutEffect)(()=>{let r;return t(),e.current&&(r=new window.MutationObserver(n),r.observe(e.current,{childList:!0,attributes:!0,subtree:!0})),()=>{r&&r.disconnect(),n.cancel()}},[]),e}var U="undefined"!=typeof window?u.useLayoutEffect:u.useEffect;function q(e){let{onDragStart:t,onDragMove:n,onDragEnd:r}=e;const[o,i]=Object(u.useState)(!1),c=Object(u.useRef)({onDragStart:t,onDragMove:n,onDragEnd:r});U(()=>{c.current.onDragStart=t,c.current.onDragMove=n,c.current.onDragEnd=r},[t,n,r]);const s=Object(u.useCallback)(e=>c.current.onDragMove&&c.current.onDragMove(e),[]),a=Object(u.useCallback)(e=>{c.current.onDragEnd&&c.current.onDragEnd(e),document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",a),i(!1)},[]),l=Object(u.useCallback)(e=>{c.current.onDragStart&&c.current.onDragStart(e),document.addEventListener("mousemove",s),document.addEventListener("mouseup",a),i(!0)},[]);return Object(u.useEffect)(()=>()=>{o&&(document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",a))},[o]),{startDrag:l,endDrag:a,isDragging:o}}var z=n("imBb"),G=n.n(z);n("VcSt");function K(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const{platform:t}=e.navigator;return-1!==t.indexOf("Mac")||Object(r.includes)(["iPad","iPhone"],t)}var V=function(e,t){let{bindGlobal:n=!1,eventName:o="keydown",isDisabled:i=!1,target:c}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=Object(u.useRef)(t);Object(u.useEffect)(()=>{s.current=t},[t]),Object(u.useEffect)(()=>{if(i)return;const t=new G.a(c&&c.current?c.current:document);return Object(r.castArray)(e).forEach(e=>{const r=e.split("+"),i=new Set(r.filter(e=>e.length>1)),u=i.has("alt"),c=i.has("shift");if(K()&&(1===i.size&&u||2===i.size&&u&&c))throw new Error(`Cannot bind ${e}. Alt and Shift+Alt modifiers are reserved for character input.`);t[n?"bindGlobal":"bind"](e,(function(){return s.current(...arguments)}),o)}),()=>{t.reset()}},[e,n,o,c,i])};function W(e){const[t,n]=Object(u.useState)(()=>!(!e||"undefined"==typeof window||!window.matchMedia(e).matches));return Object(u.useEffect)(()=>{if(!e)return;const t=()=>n(window.matchMedia(e).matches);t();const r=window.matchMedia(e);return r.addListener(t),()=>{r.removeListener(t)}},[e]),!!e&&t}function $(e){const t=Object(u.useRef)();return Object(u.useEffect)(()=>{t.current=e},[e]),t.current}var B=()=>W("(prefers-reduced-motion: reduce)");const X={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},Y={">=":"min-width","<":"max-width"},Z={">=":(e,t)=>t>=e,"<":(e,t)=>t1&&void 0!==arguments[1]?arguments[1]:">=";const n=Object(u.useContext)(Q),r=!n&&`(${Y[t]}: ${X[e]}px)`,o=W(r||void 0);return n?Z[t](X[e],n):o};J.__experimentalWidthProvider=Q.Provider;var ee=J,te=n("SSiF"),ne=n.n(te).a,re=n("XI5e");function oe(e,t){const n=[];for(let r=0;r1&&void 0!==arguments[1]?arguments[1]:{step:1};const{step:n=1}=t,[r,o]=Object(u.useState)([]);return Object(u.useEffect)(()=>{let t=oe(e,r);t.length{e.length<=i||(o(t=>[...t,...e.slice(i,i+n)]),i+=n,u.add({},c))};return u.add({},c),()=>u.reset()},[e]),r};var ue=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Change detection";const n=$(e);Object.entries(null!=n?n:[]).forEach(n=>{let[r,o]=n;o!==e[r]&&console.warn(`${t}: ${r} key changed:`,o,e[r])})},ce=n("mHlH");function se(e,t,n){const o=Object(ce.a)(()=>Object(r.debounce)(e,t,n),[e,t,n]);return Object(u.useEffect)(()=>()=>o.cancel(),[o]),o}function ae(e,t,n){const o=Object(ce.a)(()=>Object(r.throttle)(e,t,n),[e,t,n]);return Object(u.useEffect)(()=>()=>o.cancel(),[o]),o}function le(e){const t=Object(u.useRef)();return t.current=e,t}function fe(e){let{isDisabled:t,onDrop:n,onDragStart:r,onDragEnter:o,onDragLeave:i,onDragEnd:u,onDragOver:c}=e;const s=le(n),a=le(r),l=le(o),f=le(i),d=le(u),p=le(c);return j(e=>{if(t)return;let n=!1;const{ownerDocument:r}=e;function o(e){n||(n=!0,r.removeEventListener("dragenter",o),r.addEventListener("dragend",v),r.addEventListener("mousemove",v),a.current&&a.current(e))}function i(t){t.preventDefault(),e.contains(t.relatedTarget)||l.current&&l.current(t)}function u(e){!e.defaultPrevented&&p.current&&p.current(e),e.preventDefault()}function c(t){(function(t){const{defaultView:n}=r;if(!(t&&n&&t instanceof n.HTMLElement&&e.contains(t)))return!1;let o=t;do{if(o.dataset.isDropZone)return o===e}while(o=o.parentElement);return!1})(t.relatedTarget)||f.current&&f.current(t)}function h(e){e.defaultPrevented||(e.preventDefault(),e.dataTransfer&&e.dataTransfer.files.length,s.current&&s.current(e),v(e))}function v(e){n&&(n=!1,r.addEventListener("dragenter",o),r.removeEventListener("dragend",v),r.removeEventListener("mousemove",v),d.current&&d.current(e))}return e.dataset.isDropZone="true",e.addEventListener("drop",h),e.addEventListener("dragenter",i),e.addEventListener("dragover",u),e.addEventListener("dragleave",c),r.addEventListener("dragenter",o),()=>{delete e.dataset.isDropZone,e.removeEventListener("drop",h),e.removeEventListener("dragenter",i),e.removeEventListener("dragover",u),e.removeEventListener("dragleave",c),r.removeEventListener("dragend",v),r.removeEventListener("mousemove",v),r.addEventListener("dragenter",o)}},[t])}function de(){return j(e=>{const{ownerDocument:t}=e;if(!t)return;const{defaultView:n}=t;if(n)return n.addEventListener("blur",r),()=>{n.removeEventListener("blur",r)};function r(){t&&t.activeElement===e&&e.focus()}},[])}function pe(e,t,n,o){var i,c;const s=null!==(i=null==o?void 0:o.initWindowSize)&&void 0!==i?i:30,a=null===(c=null==o?void 0:o.useWindowing)||void 0===c||c,[l,f]=Object(u.useState)({visibleItems:s,start:0,end:s,itemInView:e=>e>=0&&e<=s});return Object(u.useLayoutEffect)(()=>{var i,u,c,s;if(!a)return;const l=Object(k.getScrollContainer)(e.current),d=e=>{var r;if(!l)return;const i=Math.ceil(l.clientHeight/t),u=e?i:null!==(r=null==o?void 0:o.windowOverscan)&&void 0!==r?r:i,c=Math.floor(l.scrollTop/t),s=Math.max(0,c-u),a=Math.min(n-1,c+i+u);f(e=>{const t={visibleItems:i,start:s,end:a,itemInView:e=>s<=e&&e<=a};return e.start!==t.start||e.end!==t.end||e.visibleItems!==t.visibleItems?t:e})};d(!0);const p=Object(r.debounce)(()=>{d()},16);return null==l||l.addEventListener("scroll",p),null==l||null===(i=l.ownerDocument)||void 0===i||null===(u=i.defaultView)||void 0===u||u.addEventListener("resize",p),null==l||null===(c=l.ownerDocument)||void 0===c||null===(s=c.defaultView)||void 0===s||s.addEventListener("resize",p),()=>{var e,t;null==l||l.removeEventListener("scroll",p),null==l||null===(e=l.ownerDocument)||void 0===e||null===(t=e.defaultView)||void 0===t||t.removeEventListener("resize",p)}},[t,e,n]),Object(u.useLayoutEffect)(()=>{var r,o;if(!a)return;const i=Object(k.getScrollContainer)(e.current),u=e=>{switch(e.keyCode){case O.HOME:return null==i?void 0:i.scrollTo({top:0});case O.END:return null==i?void 0:i.scrollTo({top:n*t});case O.PAGEUP:return null==i?void 0:i.scrollTo({top:i.scrollTop-l.visibleItems*t});case O.PAGEDOWN:return null==i?void 0:i.scrollTo({top:i.scrollTop+l.visibleItems*t})}};return null==i||null===(r=i.ownerDocument)||void 0===r||null===(o=r.defaultView)||void 0===o||o.addEventListener("keydown",u),()=>{var e,t;null==i||null===(e=i.ownerDocument)||void 0===e||null===(t=e.defaultView)||void 0===t||t.removeEventListener("keydown",u)}},[n,t,e,l.visibleItems]),[l,f]}},RxS6:function(e,t){e.exports=window.wp.keycodes},SSiF:function(e,t,n){var r=n("cDcd"),o={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},i=function(e){var t=e.onResize,n=r.useRef();return function(e,t){var n=function(){return e.current&&e.current.contentDocument&&e.current.contentDocument.defaultView};function o(){t();var e=n();e&&e.addEventListener("resize",t)}r.useEffect((function(){return n()?o():e.current&&e.current.addEventListener&&e.current.addEventListener("load",o),function(){var e=n();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(n,(function(){return t(n)})),r.createElement("iframe",{style:o,src:"about:blank",ref:n,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},u=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};e.exports=function(e){void 0===e&&(e=u);var t=r.useState(e(null)),n=t[0],o=t[1],c=r.useCallback((function(t){return o(e(t.current))}),[e]);return[r.useMemo((function(){return r.createElement(i,{onResize:c})}),[c]),n]}},VcSt:function(e,t){!function(e){if(e){var t={},n=e.prototype.stopCallback;e.prototype.stopCallback=function(e,r,o,i){return!!this.paused||!t[o]&&!t[i]&&n.call(this,e,r,o)},e.prototype.bindGlobal=function(e,n,r){if(this.bind(e,n,r),e instanceof Array)for(var o=0;o":".","?":"/","|":"\\"},f={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)s[111+d]="f"+d;for(d=0;d<=9;++d)s[d+96]=d.toString();y.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},y.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},y.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},y.prototype.reset=function(){return this._callbacks={},this._directMap={},this},y.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function e(t,n){return null!==t&&t!==i&&(t===n||e(t.parentNode,n))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},y.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},y.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);c=null},y.init=function(){var e=y(i);for(var t in e)"_"!==t.charAt(0)&&(y[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},y.init(),o.Mousetrap=y,e.exports&&(e.exports=y),void 0===(r=function(){return y}.call(t,n,t,e))||(e.exports=r)}function p(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function h(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return s[e.which]?s[e.which]:a[e.which]?a[e.which]:String.fromCharCode(e.which).toLowerCase()}function v(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function m(e,t,n){return n||(n=function(){if(!c)for(var e in c={},s)e>95&&e<112||s.hasOwnProperty(e)&&(c[s[e]]=e);return c}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function b(e,t){var n,r,o,i=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o1?d(e,c,n,r):(u=b(e,r),t._callbacks[u.key]=t._callbacks[u.key]||[],a(u.key,u.modifiers,{type:u.action},o,e,i),t._callbacks[u.key][o?"unshift":"push"]({callback:n,modifiers:u.modifiers,action:u.action,seq:o,level:i,combo:e}))}t._handleKey=function(e,t,n){var r,o=a(e,t,n),i={},f=0,d=!1;for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var e="rtl"===document.documentElement.getAttribute("dir");this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var t=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(t,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var e=this,t=this.createFakeElement();this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(t),this.selectedText=s()(t),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=s()(this.target),this.copyText()}},{key:"copyText",value:function(){var e;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==a(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}])&&l(t.prototype,n),r&&l(t,r),e}();function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],(n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=u()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new f({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return y("action",e)}},{key:"defaultTarget",value:function(e){var t=y("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return y("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}])&&p(t.prototype,n),r&&p(t,r),i}(o())},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function o(e,t,n,r,o){var u=i.apply(this,arguments);return e.addEventListener(n,u,o),{destroy:function(){e.removeEventListener(n,u,o)}}}function i(e,t,n,o){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=function(e,t,n,r,i){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,r,i)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const r=Object(o.map)(t,(t,e)=>(r,n,u,o,c)=>{if(!a(r,e))return!1;const i=t(r);return f()(i)?i.then(o,c):o(i),!0}),n=(t,r)=>!!i(t)&&(e(t),r(),!0);r.push(n);const c=Object(u.create)(r);return t=>new Promise((r,n)=>c(t,t=>{i(t)&&e(t),r(t)},n))}function s(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e=>{const r=l(t,e.dispatch);return t=>e=>n(e)?r(e):t(e)}}},Hkfj:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=[];return{subscribe:function(e){return t.push(e),function(){t=t.filter((function(t){return t!==e}))}},dispatch:function(e){t.slice().forEach((function(t){return t(e)}))}}}},JlUD:function(t,e){function r(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}t.exports=r,t.exports.default=r},PERq:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cps=e.call=void 0;var n,u=r("qmpp"),o=(n=u)&&n.__esModule?n:{default:n};var c=e.call=function(t,e,r,n,u){if(!o.default.call(t))return!1;try{e(t.func.apply(t.context,t.args))}catch(t){u(t)}return!0},f=e.cps=function(t,e,r,n,u){var c;return!!o.default.cps(t)&&((c=t.func).call.apply(c,[null].concat(function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e1?e-1:0),n=1;n1?e-1:0),n=1;n2?r-2:0),u=2;u1?e-1:0),n=1;n