2 lines
19 KiB
JavaScript
2 lines
19 KiB
JavaScript
/*! This file is auto-generated */
|
|
this.wp=this.wp||{},this.wp.compose=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=429)}({0:function(t,e){!function(){t.exports=this.wp.element}()},102:function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function c(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(t){r=u}}();var a,s=[],f=!1,l=-1;function p(){f&&a&&(f=!1,a.length?s=a.concat(s):l=-1,s.length&&d())}function d(){if(!f){var t=c(p);f=!0;for(var e=s.length;e;){for(a=s,s=[];++l<e;)a&&a[l].run();l=-1,e=s.length}a=null,f=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function b(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new h(t,e)),1!==s.length||f||c(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},108:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(22),o=n(0);function i(t){var e=Object(o.useState)(!1),n=Object(r.a)(e,2),i=n[0],u=n[1];return Object(o.useEffect)((function(){if(t){var e=function(){return u(window.matchMedia(t).matches)};e();var n=window.matchMedia(t);return n.addListener(e),function(){n.removeListener(e)}}}),[t]),t&&i}},12:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,"a",(function(){return r}))},13:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return o}))},14:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},15:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(32),o=n(7);function i(t,e){return!e||"object"!==Object(r.a)(e)&&"function"!=typeof e?Object(o.a)(t):e}},16:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},17:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}n.d(e,"a",(function(){return o}))},2:function(t,e){!function(){t.exports=this.lodash}()},22:function(t,e,n){"use strict";var r=n(36);var o=n(37);function i(t,e){return Object(r.a)(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||Object(o.a)()}n.d(e,"a",(function(){return i}))},249:function(t,e,n){"use strict";(function(t){var r=n(108),o="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>=0,i=t.env.FORCE_REDUCED_MOTION||o?function(){return!0}:function(){return Object(r.a)("(prefers-reduced-motion: reduce)")};e.a=i}).call(this,n(102))},269:function(t,e,n){var r;!function(o,i,u){if(o){for(var c,a={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},s={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},f={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p=1;p<20;++p)a[111+p]="f"+p;for(p=0;p<=9;++p)a[p+96]=p.toString();y.prototype.bind=function(t,e,n){return t=t instanceof Array?t:[t],this._bindMultiple.call(this,t,e,n),this},y.prototype.unbind=function(t,e){return this.bind.call(this,t,(function(){}),e)},y.prototype.trigger=function(t,e){return this._directMap[t+":"+e]&&this._directMap[t+":"+e]({},t),this},y.prototype.reset=function(){return this._callbacks={},this._directMap={},this},y.prototype.stopCallback=function(t,e){if((" "+e.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function t(e,n){return null!==e&&e!==i&&(e===n||t(e.parentNode,n))}(e,this.target))return!1;if("composedPath"in t&&"function"==typeof t.composedPath){var n=t.composedPath()[0];n!==t.target&&(e=n)}return"INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable},y.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},y.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(a[e]=t[e]);c=null},y.init=function(){var t=y(i);for(var e in t)"_"!==e.charAt(0)&&(y[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},y.init(),o.Mousetrap=y,t.exports&&(t.exports=y),void 0===(r=function(){return y}.call(e,n,e,t))||(t.exports=r)}function d(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function h(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return a[t.which]?a[t.which]:s[t.which]?s[t.which]:String.fromCharCode(t.which).toLowerCase()}function b(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function v(t,e,n){return n||(n=function(){if(!c)for(var t in c={},a)t>95&&t<112||a.hasOwnProperty(t)&&(c[a[t]]=t);return c}()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function m(t,e){var n,r,o,i=[];for(n=function(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus")).split("+")}(t),o=0;o<n.length;++o)r=n[o],l[r]&&(r=l[r]),e&&"keypress"!=e&&f[r]&&(r=f[r],i.push("shift")),b(r)&&i.push(r);return{key:r,modifiers:i,action:e=v(r,i,e)}}function y(t){var e=this;if(t=t||i,!(e instanceof y))return new y(t);e.target=t,e._callbacks={},e._directMap={};var n,r={},o=!1,u=!1,c=!1;function a(t){t=t||{};var e,n=!1;for(e in r)t[e]?n=!0:r[e]=0;n||(c=!1)}function s(t,n,o,i,u,c){var a,s,f,l,p=[],d=o.type;if(!e._callbacks[t])return[];for("keyup"==d&&b(t)&&(n=[t]),a=0;a<e._callbacks[t].length;++a)if(s=e._callbacks[t][a],(i||!s.seq||r[s.seq]==s.level)&&d==s.action&&("keypress"==d&&!o.metaKey&&!o.ctrlKey||(f=n,l=s.modifiers,f.sort().join(",")===l.sort().join(",")))){var h=!i&&s.combo==u,v=i&&s.seq==i&&s.level==c;(h||v)&&e._callbacks[t].splice(a,1),p.push(s)}return p}function f(t,n,r,o){e.stopCallback(n,n.target||n.srcElement,r,o)||!1===t(n,r)&&(function(t){t.preventDefault?t.preventDefault():t.returnValue=!1}(n),function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}(n))}function l(t){"number"!=typeof t.which&&(t.which=t.keyCode);var n=h(t);n&&("keyup"!=t.type||o!==n?e.handleKey(n,function(t){var e=[];return t.shiftKey&&e.push("shift"),t.altKey&&e.push("alt"),t.ctrlKey&&e.push("ctrl"),t.metaKey&&e.push("meta"),e}(t),t):o=!1)}function p(t,e,i,u){function s(e){return function(){c=e,++r[t],clearTimeout(n),n=setTimeout(a,1e3)}}function l(e){f(i,e,t),"keyup"!==u&&(o=h(e)),setTimeout(a,10)}r[t]=0;for(var p=0;p<e.length;++p){var d=p+1===e.length?l:s(u||m(e[p+1]).action);v(e[p],d,u,t,p)}}function v(t,n,r,o,i){e._directMap[t+":"+r]=n;var u,c=(t=t.replace(/\s+/g," ")).split(" ");c.length>1?p(t,c,n,r):(u=m(t,r),e._callbacks[u.key]=e._callbacks[u.key]||[],s(u.key,u.modifiers,{type:u.action},o,t,i),e._callbacks[u.key][o?"unshift":"push"]({callback:n,modifiers:u.modifiers,action:u.action,seq:o,level:i,combo:t}))}e._handleKey=function(t,e,n){var r,o=s(t,e,n),i={},l=0,p=!1;for(r=0;r<o.length;++r)o[r].seq&&(l=Math.max(l,o[r].level));for(r=0;r<o.length;++r)if(o[r].seq){if(o[r].level!=l)continue;p=!0,i[o[r].seq]=1,f(o[r].callback,n,o[r].combo,o[r].seq)}else p||f(o[r].callback,n,o[r].combo);var d="keypress"==n.type&&u;n.type!=c||b(t)||d||a(i),u=p&&"keydown"==n.type},e._bindMultiple=function(t,e,n){for(var r=0;r<t.length;++r)v(t[r],e,n)},d(t,"keypress",l),d(t,"keydown",l),d(t,"keyup",l)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},32:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,"a",(function(){return r}))},36:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return r}))},37:function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(e,"a",(function(){return r}))},394:function(t,e){!function(t){if(t){var e={},n=t.prototype.stopCallback;t.prototype.stopCallback=function(t,r,o,i){return!!this.paused||!e[o]&&!e[i]&&n.call(this,t,r,o)},t.prototype.bindGlobal=function(t,n,r){if(this.bind(t,n,r),t instanceof Array)for(var o=0;o<t.length;o++)e[t[o]]=!0;else e[t]=!0},t.init()}}("undefined"!=typeof Mousetrap?Mousetrap:void 0)},429:function(t,e,n){"use strict";n.r(e);var r=n(2);var o=function(t,e){return function(n){var o=t(n),i=n.displayName,u=void 0===i?n.name||"Component":i;return o.displayName="".concat(Object(r.upperFirst)(Object(r.camelCase)(e)),"(").concat(u,")"),o}},i=r.flowRight,u=n(0),c=function(t){return o((function(e){return function(n){return t(n)?Object(u.createElement)(e,n):null}}),"ifCondition")},a=n(14),s=n(13),f=n(15),l=n(16),p=n(17),d=n(50),h=n.n(d),b=o((function(t){return t.prototype instanceof u.Component?function(t){function e(){return Object(a.a)(this,e),Object(f.a)(this,Object(l.a)(e).apply(this,arguments))}return Object(p.a)(e,t),Object(s.a)(e,[{key:"shouldComponentUpdate",value:function(t,e){return!h()(t,this.props)||!h()(e,this.state)}}]),e}(t):function(e){function n(){return Object(a.a)(this,n),Object(f.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(p.a)(n,e),Object(s.a)(n,[{key:"shouldComponentUpdate",value:function(t){return!h()(t,this.props)}},{key:"render",value:function(){return Object(u.createElement)(t,this.props)}}]),n}(u.Component)}),"pure"),v=n(12),m=n(7),y=new(function(){function t(){Object(a.a)(this,t),this.listeners={},this.handleEvent=this.handleEvent.bind(this)}return Object(s.a)(t,[{key:"add",value:function(t,e){this.listeners[t]||(window.addEventListener(t,this.handleEvent),this.listeners[t]=[]),this.listeners[t].push(e)}},{key:"remove",value:function(t,e){this.listeners[t]=Object(r.without)(this.listeners[t],e),this.listeners[t].length||(window.removeEventListener(t,this.handleEvent),delete this.listeners[t])}},{key:"handleEvent",value:function(t){Object(r.forEach)(this.listeners[t.type],(function(e){e.handleEvent(t)}))}}]),t}());var O=function(t){return o((function(e){var n=function(n){function o(){var t;return Object(a.a)(this,o),(t=Object(f.a)(this,Object(l.a)(o).apply(this,arguments))).handleEvent=t.handleEvent.bind(Object(m.a)(t)),t.handleRef=t.handleRef.bind(Object(m.a)(t)),t}return Object(p.a)(o,n),Object(s.a)(o,[{key:"componentDidMount",value:function(){var e=this;Object(r.forEach)(t,(function(t,n){y.add(n,e)}))}},{key:"componentWillUnmount",value:function(){var e=this;Object(r.forEach)(t,(function(t,n){y.remove(n,e)}))}},{key:"handleEvent",value:function(e){var n=t[e.type];"function"==typeof this.wrappedRef[n]&&this.wrappedRef[n](e)}},{key:"handleRef",value:function(t){this.wrappedRef=t,this.props.forwardedRef&&this.props.forwardedRef(t)}},{key:"render",value:function(){return Object(u.createElement)(e,Object(v.a)({},this.props.ownProps,{ref:this.handleRef}))}}]),o}(u.Component);return Object(u.forwardRef)((function(t,e){return Object(u.createElement)(n,{ownProps:t,forwardedRef:e})}))}),"withGlobalEvents")},w=new WeakMap;function g(t){return Object(u.useMemo)((function(){return function(t){var e=w.get(t)||0;return w.set(t,e+1),e}(t)}),[t])}var j=o((function(t){return function(e){var n=g(t);return Object(u.createElement)(t,Object(v.a)({},e,{instanceId:n}))}}),"withInstanceId"),k=o((function(t){return function(e){function n(){var t;return Object(a.a)(this,n),(t=Object(f.a)(this,Object(l.a)(n).apply(this,arguments))).timeouts=[],t.setTimeout=t.setTimeout.bind(Object(m.a)(t)),t.clearTimeout=t.clearTimeout.bind(Object(m.a)(t)),t}return Object(p.a)(n,e),Object(s.a)(n,[{key:"componentWillUnmount",value:function(){this.timeouts.forEach(clearTimeout)}},{key:"setTimeout",value:function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e){var n=this,r=setTimeout((function(){t(),n.clearTimeout(r)}),e);return this.timeouts.push(r),r}))},{key:"clearTimeout",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){clearTimeout(t),this.timeouts=Object(r.without)(this.timeouts,t)}))},{key:"render",value:function(){return Object(u.createElement)(t,Object(v.a)({},this.props,{setTimeout:this.setTimeout,clearTimeout:this.clearTimeout}))}}]),n}(u.Component)}),"withSafeTimeout");function E(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o((function(e){return function(n){function r(){var e;return Object(a.a)(this,r),(e=Object(f.a)(this,Object(l.a)(r).apply(this,arguments))).setState=e.setState.bind(Object(m.a)(e)),e.state=t,e}return Object(p.a)(r,n),Object(s.a)(r,[{key:"render",value:function(){return Object(u.createElement)(e,Object(v.a)({},this.props,this.state,{setState:this.setState}))}}]),r}(u.Component)}),"withState")}var T=n(22),S="undefined"!=typeof window?u.useLayoutEffect:u.useEffect;function _(t){var e=t.onDragStart,n=t.onDragMove,r=t.onDragEnd,o=Object(u.useState)(!1),i=Object(T.a)(o,2),c=i[0],a=i[1],s=Object(u.useRef)({onDragStart:e,onDragMove:n,onDragEnd:r});S((function(){s.current.onDragStart=e,s.current.onDragMove=n,s.current.onDragEnd=r}),[e,n,r]);var f=Object(u.useCallback)((function(){var t;return s.current.onDragMove&&(t=s.current).onDragMove.apply(t,arguments)}),[]),l=Object(u.useCallback)((function(){var t;s.current.onDragEnd&&(t=s.current).onDragEnd.apply(t,arguments);document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",l),a(!1)}),[]),p=Object(u.useCallback)((function(){var t;s.current.onDragStart&&(t=s.current).onDragStart.apply(t,arguments);document.addEventListener("mousemove",f),document.addEventListener("mouseup",l),a(!0)}),[]);return Object(u.useEffect)((function(){return function(){c&&(document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",l))}}),[c]),{startDrag:p,endDrag:l,isDragging:c}}var C=n(269),M=n.n(C);n(394);var P=function(t,e){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,f=void 0!==s&&s,l=n.target;Object(u.useEffect)((function(){if(!f){var n=new M.a(l?l.current:document);return Object(r.castArray)(t).forEach((function(t){var o=t.split("+"),u=new Set(o.filter((function(t){return t.length>1}))),c=u.has("alt"),s=u.has("shift");if(function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).navigator.platform;return-1!==t.indexOf("Mac")||Object(r.includes)(["iPad","iPhone"],t)}()&&(1===u.size&&c||2===u.size&&c&&s))throw new Error("Cannot bind ".concat(t,". Alt and Shift+Alt modifiers are reserved for character input."));n[i?"bindGlobal":"bind"](t,e,a)})),function(){n.reset()}}}),[t,i,a,e,l,f])},x=n(108),D=n(249),L={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},R={">=":"min-width","<":"max-width"},A={">=":function(t,e){return e>=t},"<":function(t,e){return e<t}},K=Object(u.createContext)(null),I=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:">=",n=Object(u.useContext)(K),r=!n&&"(".concat(R[e],": ").concat(L[t],"px)"),o=Object(x.a)(r);return n?A[e](L[t],n):o};I.__experimentalWidthProvider=K.Provider;var N=I;n.d(e,"createHigherOrderComponent",(function(){return o})),n.d(e,"compose",(function(){return i})),n.d(e,"ifCondition",(function(){return c})),n.d(e,"pure",(function(){return b})),n.d(e,"withGlobalEvents",(function(){return O})),n.d(e,"withInstanceId",(function(){return j})),n.d(e,"withSafeTimeout",(function(){return k})),n.d(e,"withState",(function(){return E})),n.d(e,"__experimentalUseDragging",(function(){return _})),n.d(e,"useInstanceId",(function(){return g})),n.d(e,"useKeyboardShortcut",(function(){return P})),n.d(e,"useMediaQuery",(function(){return x.a})),n.d(e,"useReducedMotion",(function(){return D.a})),n.d(e,"useViewportMatch",(function(){return N}))},50:function(t,e){!function(){t.exports=this.wp.isShallowEqual}()},7:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))}}); |