/*! 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="./node_modules/@wordpress/compose/build-module/index.js")}({"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};return o((function(t){return function(n){Object(l.a)(o,n);var r=C(o);function o(){var t;return Object(a.a)(this,o),(t=r.apply(this,arguments)).setState=t.setState.bind(Object(v.a)(t)),t.state=e,t}return Object(s.a)(o,[{key:"render",value:function(){return Object(u.createElement)(t,Object(y.a)({},this.props,this.state,{setState:this.setState}))}}]),o}(u.Component)}),"withState")}var A=n("@wordpress/keycodes"),P=n("@wordpress/dom"),M=n("./node_modules/memize/index.js"),L=n.n(M);var D=function(e,t){return Object(u.useCallback)(L()(e,{maxSize:1}),t)};var I=function(){return D((function(e){e&&e.addEventListener("keydown",(function(t){if(t.keyCode===A.TAB){var n=P.focus.tabbable.find(e);if(n.length){var r=n[0],o=n[n.length-1];t.shiftKey&&t.target===r?(t.preventDefault(),o.focus()):(t.shiftKey||t.target!==o)&&n.includes(t.target)||(t.preventDefault(),r.focus())}}}))}),[])},N=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),z=n("./node_modules/clipboard/dist/clipboard.js"),q=n.n(z);function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4e3,r=Object(u.useRef)(),o=Object(u.useState)(!1),i=Object(N.a)(o,2),c=i[0],a=i[1];return Object(u.useEffect)((function(){var o;return r.current=new q.a(e.current,{text:function(){return"function"==typeof t?t():t}}),r.current.on("success",(function(e){var t=e.clearSelection,r=e.trigger;t(),r&&r.focus(),n&&(a(!0),clearTimeout(o),o=setTimeout((function(){return a(!1)}),n))})),function(){r.current.destroy(),clearTimeout(o)}}),[t,n,a]),c}var F=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),K=n("./node_modules/react-merge-refs/dist/react-merge-refs.esm.js");function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"firstElement",t=Object(u.useRef)(e);return Object(u.useEffect)((function(){t.current=e}),[e]),D((function(e){if(e&&!1!==t.current&&!e.contains(e.ownerDocument.activeElement)){var n=e;if("firstElement"===t.current){var r=P.focus.tabbable.find(e)[0];r&&(n=r)}n.focus()}}),[])}var W=function(e){var t=Object(u.useRef)(),n=Object(u.useRef)(),r=Object(u.useRef)(e);return Object(u.useEffect)((function(){r.current=e}),[e]),D((function(e){if(e){if(t.current=e,n.current)return;n.current=e.ownerDocument.activeElement}else if(n.current){var o=t.current.contains(t.current.ownerDocument.activeElement);if(t.current.isConnected&&!o)return;r.current?r.current():n.current.focus()}}),[])},B=["button","submit"];function G(e){var t=Object(u.useRef)(e);Object(u.useEffect)((function(){t.current=e}),[e]);var n=Object(u.useRef)(!1),o=Object(u.useRef)(),i=Object(u.useCallback)((function(){clearTimeout(o.current)}),[]);Object(u.useEffect)((function(){return function(){return i()}}),[]),Object(u.useEffect)((function(){e||i()}),[e,i]);var c=Object(u.useCallback)((function(e){var t=e.type,o=e.target;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)(B,e.type)}return!1}(o)&&(n.current=!0)}),[]),a=Object(u.useCallback)((function(e){e.persist(),n.current||(o.current=setTimeout((function(){document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()}),0))}),[]);return{onFocus:i,onMouseDown:c,onMouseUp:c,onTouchStart:c,onTouchEnd:c,onBlur:a}}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:window,t=e.navigator.platform;return-1!==t.indexOf("Mac")||Object(r.includes)(["iPad","iPhone"],t)}var te=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.bindGlobal,i=void 0!==o&&o,c=n.eventName,a=void 0===c?"keydown":c,s=n.isDisabled,l=void 0!==s&&s,f=n.target,d=Object(u.useRef)(t);Object(u.useEffect)((function(){d.current=t}),[t]),Object(u.useEffect)((function(){if(!l){var t=new Z.a(f?f.current:document);return Object(r.castArray)(e).forEach((function(e){var n=e.split("+"),r=new Set(n.filter((function(e){return e.length>1}))),o=r.has("alt"),u=r.has("shift");if(ee()&&(1===r.size&&o||2===r.size&&o&&u))throw new Error("Cannot bind ".concat(e,". Alt and Shift+Alt modifiers are reserved for character input."));t[i?"bindGlobal":"bind"](e,(function(){return d.current.apply(d,arguments)}),a)})),function(){t.reset()}}}),[e,i,a,f,l])};function ne(e){var t=Object(u.useState)((function(){return!(!e||"undefined"==typeof window||!window.matchMedia(e).matches)})),n=Object(N.a)(t,2),r=n[0],o=n[1];return Object(u.useEffect)((function(){if(e){var t=function(){return o(window.matchMedia(e).matches)};t();var n=window.matchMedia(e);return n.addListener(t),function(){n.removeListener(t)}}}),[e]),e&&r}function re(e){var t=Object(u.useRef)(void 0);return Object(u.useEffect)((function(){t.current=e}),[e]),t.current}var oe="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>=0?function(){return!0}:function(){return ne("(prefers-reduced-motion: reduce)")},ie={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},ue={">=":"min-width","<":"max-width"},ce={">=":function(e,t){return t>=e},"<":function(e,t){return t1&&void 0!==arguments[1]?arguments[1]:">=",n=Object(u.useContext)(ae),r=!n&&"(".concat(ue[t],": ").concat(ie[e],"px)"),o=ne(r);return n?ce[t](ie[e],n):o};se.__experimentalWidthProvider=ae.Provider;var le=se,fe=n("./node_modules/react-resize-aware/dist/index.js"),de=n.n(fe).a,pe=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),he=n("@wordpress/priority-queue");function me(e,t){return"reset"===t.type?t.list:"append"===t.type?[].concat(Object(pe.a)(e),[t.item]):e}var be=function(e){var t=Object(u.useReducer)(me,[]),n=Object(N.a)(t,2),r=n[0],o=n[1];return Object(u.useEffect)((function(){var t=function(e,t){for(var n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:"Change detection",n=re(e);Object.entries(null!=n?n:[]).forEach((function(n){var r=Object(N.a)(n,2),o=r[0],i=r[1];i!==e[o]&&console.warn("".concat(t,": ").concat(o," key changed:"),i,e[o])}))},ve=n("./node_modules/use-memo-one/dist/use-memo-one.esm.js");function ge(){for(var e=arguments.length,t=new Array(e),n=0;n0&&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:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,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[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=o()(this.fakeElem),this.copyText()}},{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=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;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"!==(void 0===e?"undefined":i(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}}]),e}(),a=n(1),s=n.n(a),l=n(2),f=n.n(l),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},p=function(){function e(e,t){for(var n=0;n0&&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=f()(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 c({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 m("action",e)}},{key:"defaultTarget",value:function(e){var t=m("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return m("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&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}}]),t}(s.a);function m(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}t.default=h}]).default},e.exports=r()},"./node_modules/memize/index.js":function(e,t,n){e.exports=function(e,t){var n,r,o=0;function i(){var i,u,c=n,a=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(u=0;u":".","?":"/","|":"\\"},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)a[111+d]="f"+d;for(d=0;d<=9;++d)a[d+96]=d.toString();v.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},v.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},v.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},v.prototype.reset=function(){return this._callbacks={},this._directMap={},this},v.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},v.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},v.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(a[t]=e[t]);c=null},v.init=function(){var e=v(i);for(var t in e)"_"!==t.charAt(0)&&(v[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},v.init(),o.Mousetrap=v,e.exports&&(e.exports=v),void 0===(r=function(){return v}.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 a[e.which]?a[e.which]:s[e.which]?s[e.which]:String.fromCharCode(e.which).toLowerCase()}function m(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function b(e,t,n){return n||(n=function(){if(!c)for(var e in c={},a)e>95&&e<112||a.hasOwnProperty(e)&&(c[a[e]]=e);return c}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function y(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=y(e,r),t._callbacks[u.key]=t._callbacks[u.key]||[],s(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=s(e,t,n),i={},f=0,d=!1;for(r=0;r