2022-09-20 11:43:29 -04:00
|
|
|
|
!function(){"use strict";var t={n:function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{__unstableStripHTML:function(){return Z},computeCaretRect:function(){return y},documentHasSelection:function(){return T},documentHasTextSelection:function(){return E},documentHasUncollapsedSelection:function(){return v},focus:function(){return ft},getFilesFromDataTransfer:function(){return lt},getOffsetParent:function(){return O},getPhrasingContentSchema:function(){return ot},getRectangleFromRange:function(){return N},getScrollContainer:function(){return A},insertAfter:function(){return W},isEmpty:function(){return tt},isEntirelySelected:function(){return x},isFormElement:function(){return P},isHorizontalEdge:function(){return F},isNumberInput:function(){return j},isPhrasingContent:function(){return it},isRTL:function(){return L},isTextContent:function(){return ut},isTextField:function(){return w},isVerticalEdge:function(){return z},placeCaretAtHorizontalEdge:function(){return k},placeCaretAtVerticalEdge:function(){return X},remove:function(){return G},removeInvalidHTML:function(){return st},replace:function(){return Y},replaceTag:function(){return J},safeHTML:function(){return Q},unwrap:function(){return $},wrap:function(){return K}});var n={};t.r(n),t.d(n,{find:function(){return c}});var r={};function o(t){return[t?'[tabindex]:not([tabindex^="-"])':"[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])",'iframe:not([tabindex^="-"])',"object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",")}function i(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0}function u(t){const e=t.closest("map[name]");if(!e)return!1;const n=t.ownerDocument.querySelector('img[usemap="#'+e.name+'"]');return!!n&&i(n)}function c(t){let{sequential:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.querySelectorAll(o(e));return Array.from(n).filter((t=>{if(!i(t))return!1;const{nodeName:e}=t;return"AREA"!==e||u(t)}))}function a(t){const e=t.getAttribute("tabindex");return null===e?0:parseInt(e,10)}function s(t){return-1!==a(t)}function l(t,e){return{element:t,index:e}}function f(t){return t.element}function d(t,e){const n=a(t.element),r=a(e.element);return n===r?t.index-e.index:n-r}function m(t){return t.filter(s).map(l).sort(d).map(f).reduce(function(){const t={};return function(e,n){const{nodeName:r,type:o,checked:i,name:u}=n;if("INPUT"!==r||"radio"!==o||!u)return e.concat(n);const c=t.hasOwnProperty(u);if(!i&&c)return e;if(c){const n=t[u];e=e.filter((t=>t!==n))}return t[u]=n,e.concat(n)}}(),[])}function h(t){return m(c(t))}function p(t){const e=c(t.ownerDocument.body),n=e.indexOf(t);if(-1===n)return;e.length=n;const r=m(e);return r[r.length-1]}function g(t){const e=c(t.ownerDocument.body),n=e.indexOf(t);return m(e.slice(n+1))[0]}function b(t,e){0}function N(t){if(!t.collapsed){const e=Array.from(t.getClientRects());if(1===e.length)return e[0];const n=e.filter((t=>{let{width:e}=t;return e>1}));if(0===n.length)return t.getBoundingClientRect();if(1===n.length)return n[0];let{top:r,bottom:o,left:i,right:u}=n[0];for(const{top:t,bottom:e,left:c,right:a}of n)t<r&&(r=t),e>o&&(o=e),c<i&&(i=c),a>u&&(u=a);return new window.DOMRect(i,r,u-i,o-r)}const{startContainer:e}=t,{ownerDocument:n}=e;if("BR"===e.nodeName){const{parentNode:r}=e;b();const o=Array.from(r.childNodes).indexOf(e);b(),(t=n.createRange()).setStart(r,o),t.setEnd(r,o)}const r=t.getClientRects();if(r.length>1)return null;let o=r[0];if(!o){b();const e=n.createTextNode("");(t=t.cloneRange()).insertNode(e),o=t.getClientRects()[0],b(e.par
|