2 lines
15 KiB
JavaScript
2 lines
15 KiB
JavaScript
/*! This file is auto-generated */
|
||
this.wp=this.wp||{},this.wp.dom=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=455)}({15:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(24);var o=n(42),i=n(28);function a(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(i.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(t,e){t.exports=window.lodash},24:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return r}))},28:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(24);function o(t,e){if(t){if("string"==typeof t)return Object(r.a)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(t,e):void 0}}},42:function(t,e,n){"use strict";function r(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n.d(e,"a",(function(){return r}))},455:function(t,e,n){"use strict";n.r(e),n.d(e,"focus",(function(){return it})),n.d(e,"computeCaretRect",(function(){return O})),n.d(e,"documentHasTextSelection",(function(){return N})),n.d(e,"documentHasUncollapsedSelection",(function(){return S})),n.d(e,"documentHasSelection",(function(){return j})),n.d(e,"getRectangleFromRange",(function(){return y})),n.d(e,"getScrollContainer",(function(){return P})),n.d(e,"getOffsetParent",(function(){return T})),n.d(e,"isEntirelySelected",(function(){return R})),n.d(e,"isHorizontalEdge",(function(){return H})),n.d(e,"isNumberInput",(function(){return C})),n.d(e,"isTextField",(function(){return E})),n.d(e,"isVerticalEdge",(function(){return V})),n.d(e,"placeCaretAtHorizontalEdge",(function(){return F})),n.d(e,"placeCaretAtVerticalEdge",(function(){return B})),n.d(e,"replace",(function(){return k})),n.d(e,"remove",(function(){return U})),n.d(e,"insertAfter",(function(){return z})),n.d(e,"unwrap",(function(){return q})),n.d(e,"replaceTag",(function(){return X})),n.d(e,"wrap",(function(){return G})),n.d(e,"__unstableStripHTML",(function(){return W})),n.d(e,"isEmpty",(function(){return Y})),n.d(e,"removeInvalidHTML",(function(){return rt})),n.d(e,"getPhrasingContentSchema",(function(){return tt})),n.d(e,"isPhrasingContent",(function(){return et})),n.d(e,"isTextContent",(function(){return nt})),n.d(e,"getFilesFromDataTransfer",(function(){return ot}));var r={};n.r(r),n.d(r,"find",(function(){return u}));var o={};n.r(o),n.d(o,"isTabbableIndex",(function(){return f})),n.d(o,"find",(function(){return b})),n.d(o,"findPrevious",(function(){return v})),n.d(o,"findNext",(function(){return h}));var i=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function a(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0}function u(t){var e=t.querySelectorAll(i);return Array.from(e).filter((function(t){return!(!a(t)||function(t){return"iframe"===t.nodeName.toLowerCase()&&"-1"===t.getAttribute("tabindex")}(t))&&("AREA"!==t.nodeName||function(t){var e=t.closest("map[name]");if(!e)return!1;var n=t.ownerDocument.querySelector('img[usemap="#'+e.name+'"]');return!!n&&a(n)}(t))}))}var c=n(2);function l(t){var e=t.getAttribute("tabindex");return null===e?0:parseInt(e,10)}function f(t){return-1!==l(t)}function s(t,e){return{element:t,index:e}}function d(t){return t.element}function m(t,e){var n=l(t.element),r=l(e.element);return n===r?t.index-e.index:n-r}function p(t){return t.filter(f).map(s).sort(m).map(d).reduce((e={},function(t,n){var r=n.nodeName,o=n.type,i=n.checked,a=n.name;if("INPUT"!==r||"radio"!==o||!a)return t.concat(n);var u=e.hasOwnProperty(a);if(!i&&u)return t;if(u){var l=e[a];t=Object(c.without)(t,l)}return e[a]=n,t.concat(n)}),[]);var e}function b(t){return p(u(t))}function v(t){var e=u(t.ownerDocument.body),n=e.indexOf(t);return e.length=n,Object(c.last)(p(e))}function h(t){var e=u(t.ownerDocument.body),n=e.indexOf(t),r=e.slice(n+1).filter((function(e){return!t.contains(e)}));return Object(c.first)(p(r))}function g(t,e){0}function y(t){if(!t.collapsed)return t.getBoundingClientRect();var e=t.startContainer,n=e.ownerDocument;if("BR"===e.nodeName){var r=e.parentNode;g();var o=Array.from(r.childNodes).indexOf(e);g(),(t=n.createRange()).setStart(r,o),t.setEnd(r,o)}var i=t.getClientRects()[0];if(!i){g();var a=n.createTextNode("");(t=t.cloneRange()).insertNode(a),i=t.getClientRects()[0],g(a.parentNode),a.parentNode.removeChild(a)}return i}function O(t){var e=t.getSelection();g();var n=e.rangeCount?e.getRangeAt(0):null;return n?y(n):null}function N(t){g(t.defaultView);var e=t.defaultView.getSelection();g();var n=e.rangeCount?e.getRangeAt(0):null;return!!n&&!n.collapsed}function w(t){return!!t&&"INPUT"===t.nodeName}function E(t){return w(t)&&t.type&&!["button","checkbox","hidden","file","radio","image","range","reset","submit","number"].includes(t.type)||"TEXTAREA"===t.nodeName||"true"===t.contentEditable}function C(t){return w(t)&&"number"===t.type&&!!t.valueAsNumber}function S(t){return N(t)||!!t.activeElement&&function(t){if(!E(t)&&!C(t))return!1;try{var e=t.selectionStart,n=t.selectionEnd;return null!==e&&e!==n}catch(t){return!1}}(t.activeElement)}function j(t){return!!t.activeElement&&(E(t.activeElement)||C(t.activeElement)||N(t))}function A(t){return g(t.ownerDocument.defaultView),t.ownerDocument.defaultView.getComputedStyle(t)}function P(t){if(t){if(t.scrollHeight>t.clientHeight){var e=A(t).overflowY;if(/(auto|scroll)/.test(e))return t}return P(t.parentNode)}}function T(t){for(var e;(e=t.parentNode)&&e.nodeType!==e.ELEMENT_NODE;);return e?"static"!==A(e).position?e:e.offsetParent:null}function x(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName}function R(t){if(x(t))return 0===t.selectionStart&&t.value.length===t.selectionEnd;if(!t.isContentEditable)return!0;var e=t.ownerDocument.defaultView;g();var n=e.getSelection();g();var r=n.rangeCount?n.getRangeAt(0):null;if(!r)return!0;var o=r.startContainer,i=r.endContainer,a=r.startOffset,u=r.endOffset;if(o===t&&i===t&&0===a&&u===t.childNodes.length)return!0;var c=t.lastChild;g();var l=c.nodeType===c.TEXT_NODE?c.data.length:c.childNodes.length;return o===t.firstChild&&i===t.lastChild&&0===a&&u===l}var D=n(15);function M(t){var e=Array.from(t.getClientRects());if(e.length){var n=Math.min.apply(Math,Object(D.a)(e.map((function(t){return t.top}))));return Math.max.apply(Math,Object(D.a)(e.map((function(t){return t.bottom}))))-n}}function I(t){var e=t.anchorNode,n=t.focusNode,r=t.anchorOffset,o=t.focusOffset;g(),g();var i=e.compareDocumentPosition(n);return!(i&e.DOCUMENT_POSITION_PRECEDING)&&(!!(i&e.DOCUMENT_POSITION_FOLLOWING)||(0!==i||r<=o))}function L(t,e,n,r){var o=r.style.zIndex,i=r.style.position,a=A(r).position;"static"===(void 0===a?"static":a)&&(r.style.position="relative"),r.style.zIndex="10000";var u=function(t,e,n){if(t.caretRangeFromPoint)return t.caretRangeFromPoint(e,n);if(!t.caretPositionFromPoint)return null;var r=t.caretPositionFromPoint(e,n);if(!r)return null;var o=t.createRange();return o.setStart(r.offsetNode,r.offset),o.collapse(!0),o}(t,e,n);return r.style.zIndex=o,r.style.position=i,u}function _(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(x(t))return t.selectionStart===t.selectionEnd&&(e?0===t.selectionStart:t.value.length===t.selectionStart);if(!t.isContentEditable)return!0;var r=t.ownerDocument,o=r.defaultView;g();var i=o.getSelection();if(!i||!i.rangeCount)return!1;var a=i.getRangeAt(0),u=a.cloneRange(),c=I(i),l=i.isCollapsed;l||u.collapse(!c);var f=y(u),s=y(a);if(!f||!s)return!1;var d=M(a);if(!l&&d&&d>f.height&&c===e)return!1;var m=A(t),p=m.direction,b="rtl"===p?!e:e,v=t.getBoundingClientRect(),h=b?v.left+1:v.right-1,O=e?v.top+1:v.bottom-1,N=L(r,h,O,t);if(!N)return!1;var w=y(N);if(!w)return!1;var E=e?"top":"bottom",C=b?"left":"right",S=w[E]-s[E],j=w[C]-f[C],P=Math.abs(S)<=1,T=Math.abs(j)<=1;return n?P:P&&T}function H(t,e){return _(t,e)}function V(t,e){return _(t,e,!0)}function F(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t)if(t.focus(),x(t)){if("number"!=typeof t.selectionStart)return;e?(t.selectionStart=t.value.length,t.selectionEnd=t.value.length):(t.selectionStart=0,t.selectionEnd=0)}else if(t.isContentEditable){var r=t.ownerDocument,o=t.getBoundingClientRect(),i=e?o.right-1:o.left+1,a=e?o.bottom-1:o.top+1,u=L(r,i,a,t);if(!u||!u.startContainer||!t.contains(u.startContainer)){if(!n)return;return n=!1,t.scrollIntoView(e),void F(t,e,n)}var c=r.defaultView;g();var l=c.getSelection();g(),l.removeAllRanges(),l.addRange(u)}}function B(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t)if(n&&t.isContentEditable){var o=n.height/2,i=t.getBoundingClientRect(),a=n.left,u=e?i.bottom-o:i.top+o,c=t.ownerDocument,l=c.defaultView,f=L(c,a,u,t);if(!f||!t.contains(f.startContainer))return!r||f&&f.startContainer&&f.startContainer.contains(t)?void F(t,e):(t.scrollIntoView(e),void B(t,e,n,!1));g();var s=l.getSelection();g(),s.removeAllRanges(),s.addRange(f),t.focus(),s.removeAllRanges(),s.addRange(f)}else F(t,e)}function z(t,e){g(e.parentNode),e.parentNode.insertBefore(t,e.nextSibling)}function U(t){g(t.parentNode),t.parentNode.removeChild(t)}function k(t,e){g(t.parentNode),z(e,t.parentNode),U(t)}function q(t){var e=t.parentNode;for(g();t.firstChild;)e.insertBefore(t.firstChild,t);e.removeChild(t)}function X(t,e){for(var n=t.ownerDocument.createElement(e);t.firstChild;)n.appendChild(t.firstChild);return g(t.parentNode),t.parentNode.replaceChild(n,t),n}function G(t,e){g(e.parentNode),e.parentNode.insertBefore(t,e),t.appendChild(e)}function W(t){return(new window.DOMParser).parseFromString(t,"text/html").body.textContent||""}function Y(t){switch(t.nodeType){case t.TEXT_NODE:return/^[ \f\n\r\t\v\u00a0]*$/.test(t.nodeValue||"");case t.ELEMENT_NODE:return!t.hasAttributes()&&(!t.hasChildNodes()||Array.from(t.childNodes).every(Y));default:return!0}}var $=n(5);function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?J(Object(n),!0).forEach((function(e){Object($.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Q={strong:{},em:{},s:{},del:{},ins:{},a:{attributes:["href","target","rel"]},code:{},abbr:{attributes:["title"]},sub:{},sup:{},br:{},small:{},q:{attributes:["cite"]},dfn:{attributes:["title"]},data:{attributes:["value"]},time:{attributes:["datetime"]},var:{},samp:{},kbd:{},i:{},b:{},u:{},mark:{},ruby:{},rt:{},rp:{},bdi:{attributes:["dir"]},bdo:{attributes:["dir"]},wbr:{},"#text":{}};Object(c.without)(Object.keys(Q),"#text","br").forEach((function(t){Q[t].children=Object(c.omit)(Q,t)}));var Z=K(K({},Q),{audio:{attributes:["src","preload","autoplay","mediagroup","loop","muted"]},canvas:{attributes:["width","height"]},embed:{attributes:["src","type","width","height"]},img:{attributes:["alt","src","srcset","usemap","ismap","width","height"]},object:{attributes:["data","type","name","usemap","form","width","height"]},video:{attributes:["src","poster","preload","autoplay","mediagroup","loop","muted","controls","width","height"]}});function tt(t){return"paste"!==t?Z:Object(c.omit)(K(K({},Z),{},{ins:{children:Z.ins.children},del:{children:Z.del.children}}),["u","abbr","data","time","wbr","bdi","bdo"])}function et(t){var e=t.nodeName.toLowerCase();return tt().hasOwnProperty(e)||"span"===e}function nt(t){var e=t.nodeName.toLowerCase();return Q.hasOwnProperty(e)||"span"===e}function rt(t,e,n){var r=document.implementation.createHTMLDocument("");return r.body.innerHTML=t,function t(e,n,r,o){Array.from(e).forEach((function(e){var i,a,u=e.nodeName.toLowerCase();if(r.hasOwnProperty(u)&&(!r[u].isMatch||null!==(i=(a=r[u]).isMatch)&&void 0!==i&&i.call(a,e))){if(function(t){return!!t&&t.nodeType===t.ELEMENT_NODE}(e)){var l=r[u],f=l.attributes,s=void 0===f?[]:f,d=l.classes,m=void 0===d?[]:d,p=l.children,b=l.require,v=void 0===b?[]:b,h=l.allowEmpty;if(p&&!h&&Y(e))return void U(e);if(e.hasAttributes()&&(Array.from(e.attributes).forEach((function(t){var n=t.name;"class"===n||Object(c.includes)(s,n)||e.removeAttribute(n)})),e.classList&&e.classList.length)){var g=m.map((function(t){return"string"==typeof t?function(e){return e===t}:t instanceof RegExp?function(e){return t.test(e)}:c.noop}));Array.from(e.classList).forEach((function(t){g.some((function(e){return e(t)}))||e.classList.remove(t)})),e.classList.length||e.removeAttribute("class")}if(e.hasChildNodes()){if("*"===p)return;if(p)v.length&&!e.querySelector(v.join(","))?(t(e.childNodes,n,r,o),q(e)):e.parentNode&&"BODY"===e.parentNode.nodeName&&et(e)?(t(e.childNodes,n,r,o),Array.from(e.childNodes).some((function(t){return!et(t)}))&&q(e)):t(e.childNodes,n,p,o);else for(;e.firstChild;)U(e.firstChild)}}}else t(e.childNodes,n,r,o),o&&!et(e)&&e.nextElementSibling&&z(n.createElement("br"),e),q(e)}))}(r.body.childNodes,r,e,n),r.body.innerHTML}function ot(t){var e=Array.from(t.files);return Array.from(t.items).forEach((function(t){var n=t.getAsFile();n&&!e.find((function(t){var e=t.name,r=t.type,o=t.size;return e===n.name&&r===n.type&&o===n.size}))&&e.push(n)})),e}var it={focusable:r,tabbable:o}},5:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))}}); |