1 line
54 KiB
JavaScript
1 line
54 KiB
JavaScript
var FluentUIReactFocus;!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{FocusZone:function(){return Ot},FocusZoneDirection:function(){return s},FocusZoneTabbableElements:function(){return u}});var n={},r=void 0;try{r=window}catch(e){}function o(e,t){if(void 0!==r){var o=r.__packages__=r.__packages__||{};o[e]&&n[e]||(n[e]=t,(o[e]=o[e]||[]).push(t))}}o("@fluentui/set-version","6.0.0"),o("@fluentui/react-focus","8.10.5");var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var s,l=React,u={none:0,all:1,inputOnly:2};function c(e,t){var n,r;if(void 0===t&&(t=!0),!e)return null;var o=t&&function(e){var t,n;return e&&(n=e)&&n._virtual&&(t=e._virtual.parent),t}(e);return o||("function"!=typeof e.assignedElements&&(null===(n=e.assignedSlot)||void 0===n?void 0:n.parentNode)?e.assignedSlot:11===(null===(r=e.parentNode)||void 0===r?void 0:r.nodeType)?e.parentNode.host:e.parentNode)}function d(e,t,n){return null!=n||(n=document),!e||e===n.body||e instanceof Document?null:t(e)?e:d(c(e),t)}function f(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(s||(s={}));var h=void 0;try{h=window}catch(e){}function p(e){if(f()&&void 0!==h){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:h}}function v(e){if(f()&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}function g(e,t,n,r,o,i,a,s,l){var u;if(!t||!a&&t===e)return null;var c=_(t);if(o&&c&&(i||!E(t)&&!x(t))){var d=g(e,t.lastElementChild||l&&(null===(u=t.shadowRoot)||void 0===u?void 0:u.lastElementChild),!0,!0,!0,i,a,s,l);if(d){if(s&&y(d,!0,l)||!s)return d;var f=g(e,d.previousElementSibling,!0,!0,!0,i,a,s,l);if(f)return f;for(var h=d.parentElement;h&&h!==t;){var p=g(e,h.previousElementSibling,!0,!0,!0,i,a,s,l);if(p)return p;h=h.parentElement}}}return n&&c&&y(t,s,l)?t:g(e,t.previousElementSibling,!0,!0,!0,i,a,s,l)||(r?null:g(e,t.parentElement,!0,!1,!1,i,a,s,l))}function m(e,t,n,r,o,i,a,s,l,u){var c;if(!t||t===e&&o&&!a)return null;var d=(l?b:_)(t);if(n&&d&&y(t,s,u))return t;if(!o&&d&&(i||!E(t)&&!x(t))){var f=m(e,t.firstElementChild||u&&(null===(c=t.shadowRoot)||void 0===c?void 0:c.firstElementChild),!0,!0,!1,i,a,s,l,u);if(f)return f}return t===e?null:m(e,t.nextElementSibling,!0,!0,!1,i,a,s,l,u)||(r?null:m(e,t.parentElement,!1,!1,!0,i,a,s,l,u))}function _(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute("data-is-visible");return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function b(e,t){var n=null!=t?t:p();return!!e&&_(e)&&!e.hidden&&"hidden"!==n.getComputedStyle(e).visibility}function y(e,t,n){if(void 0===n&&(n=!0),!e||e.disabled)return!1;var r=0,o=null;e&&e.getAttribute&&(o=e.getAttribute("tabIndex"))&&(r=parseInt(o,10));var i=e.getAttribute?e.getAttribute("data-is-focusable"):null,a=null!==o&&r>=0,s=!(!n||!e.shadowRoot||!e.shadowRoot.delegatesFocus),l=!!e&&"false"!==i&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===i||a||s);return t?-1!==r&&l:l}function E(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function x(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function C(e){var t=null;try{var n=p();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}var k,w="__global__",S="__shadow_dom_stylesheet__",F={stylesheetKey:w,inShadow:!1,window:void 0,__isShadowConfig__:!0},A=function(e){return!(!e||!function(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}(e))&&!0===e.__isShadowConfig__};function T(e){k!==e&&(k=e)}function I(){return void 0===k&&(k="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),k}function D(){return{rtl:I(),shadowConfig:F}}k=I();var B,O="isRTL";function P(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===B){var t=C(O);null!==t&&function(e,t){void 0===t&&(t=!1);var n=v();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&function(e,t){var n;try{null===(n=p())||void 0===n||n.sessionStorage.setItem(e,t)}catch(e){}}(O,e?"1":"0"),T(B=e)}(B="1"===t);var n=v();void 0===B&&n&&T(B="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!B}function R(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach((function(t){return t&&t.apply(e,n)}))}}function N(){K(this.props.componentRef,this)}function L(e){e.componentRef!==this.props.componentRef&&(K(e.componentRef,null),K(this.props.componentRef,this))}function M(){K(this.props.componentRef,null)}function K(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}var H,U="__stylesheet__",W="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),z={};try{z=window||{}}catch(se){}var j=function(){function e(e,t){var n,r,o,i,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=a({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(n=null==t?void 0:t.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null==t?void 0:t.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(i=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==t?void 0:t.keyToClassName)&&void 0!==i?i:this._keyToClassName,this._preservedRules=null!==(s=null==t?void 0:t.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null==t?void 0:t.rules)&&void 0!==l?l:this._rules}return e.getInstance=function(t){if(H=z[U],z[S])return z[S].getInstance(t);if(!H||H._lastStyleElement&&H._lastStyleElement.ownerDocument!==document){var n=(null==z?void 0:z.FabricConfig)||{},r=new e(n.mergeStyles,n.serializedStylesheet);H=r,z[U]=r}return H},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=a(a({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},e.prototype.getClassName=function(e){var t=this._config.namespace,n=e||this._config.defaultPrefix;return"".concat(t?t+"-":"").concat(n,"-").concat(this._counter++)},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[this._getCacheKey(t)]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[this._getCacheKey(e)]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t,n){void 0===n&&(n=w);var r=this._config.injectionMode,o=0!==r?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),o)switch(r){case 1:this._insertRuleIntoSheet(o.sheet,e);break;case 2:o.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(t){return t({key:n,sheet:o?o.sheet:void 0,rule:e})}))},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._createStyleElement=function(){var e,t=(null===(e=this._config.window)||void 0===e?void 0:e.document)||document,n=t.head,r=t.createElement("style"),o=null;r.setAttribute("data-merge-styles","true");var i=this._config.cspSettings;if(i&&i.nonce&&r.setAttribute("nonce",i.nonce),this._lastStyleElement)o=this._lastStyleElement.nextElementSibling;else{var a=this._findPlaceholderStyleTag();o=a?a.nextElementSibling:n.childNodes[0]}return n.insertBefore(r,n.contains(o)?o:null),this._lastStyleElement=r,r},e.prototype._insertRuleIntoSheet=function(e,t){if(!e)return!1;try{return e.insertRule(t,e.cssRules.length),!0}catch(e){}return!1},e.prototype._getCacheKey=function(e){return e},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||(this._styleElement=this._createStyleElement(),W||(this._config.window||window).requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}(),Z="__currentId__",G=p()||{};void 0===G[Z]&&(G[Z]=0);var V=!1;function q(e){void 0===e&&(e=0),G[Z]=e}function J(e,t,n){void 0===n&&(n=!0);var r=!1;if(e&&t)if(n)if(e===t)r=!0;else for(r=!1;t;){var o=c(t);if(o===e){r=!0;break}t=o}else e.contains&&(r=e.contains(t));return r}var Q=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++)for(var i=o[r],a=0,s=Array.isArray(i)?i:Object.keys(i);a<s.length;a++)n[s[a]]=1;return n},Y=Q(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),X=Q(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),$=Q(X,Y),ee=(Q($,["form"]),Q($,["height","loop","muted","preload","src","width"])),te=(Q(ee,["poster"]),Q($,["start"]),Q($,["value"]),Q($,["download","href","hrefLang","media","rel","target","type"]),Q($,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]));function ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];if(i)if("string"==typeof i)n.push(i);else if(i.hasOwnProperty("toString")&&"function"==typeof i.toString)n.push(i.toString());else for(var a in i)i[a]&&n.push(a)}return n.join(" ")}Q(te,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),Q(te,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),Q(te,["form","multiple","required"]),Q($,["selected","value"]),Q($,["cellPadding","cellSpacing"]),Q($,["rowSpan","scope"]),Q($,["colSpan","headers","rowSpan","scope"]),Q($,["span"]),Q($,["span"]),Q($,["acceptCharset","action","encType","encType","method","noValidate","target"]),Q($,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),Q($,["alt","crossOrigin","height","src","srcSet","useMap","width"]);var re,oe={},ie={"user-select":1};function ae(e,t){var n=function(){var e;if(!re){var t="undefined"!=typeof document?document:void 0,n="undefined"!=typeof navigator?navigator:void 0,r=null===(e=null==n?void 0:n.userAgent)||void 0===e?void 0:e.toLowerCase();re=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!n||!/rv:11.0/i.test(n.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return re}(),r=e[t];if(ie[r]){var o=e[t+1];ie[r]&&(n.isWebkit&&e.push("-webkit-"+r,o),n.isMoz&&e.push("-moz-"+r,o),n.isMs&&e.push("-ms-"+r,o),n.isOpera&&e.push("-o-"+r,o))}}var se,le=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function ue(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=le.indexOf(n)>-1,i=n.indexOf("--")>-1,a=o||i?"":"px";e[t+1]="".concat(r).concat(a)}}var ce="left",de="right",fe=((se={})[ce]=de,se[de]=ce,se),he={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function pe(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"==typeof o&&o.indexOf("@noflip")>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(ce)>=0)t[n]=r.replace(ce,de);else if(r.indexOf(de)>=0)t[n]=r.replace(de,ce);else if(String(o).indexOf(ce)>=0)t[n+1]=o.replace(ce,de);else if(String(o).indexOf(de)>=0)t[n+1]=o.replace(de,ce);else if(fe[r])t[n]=fe[r];else if(he[o])t[n+1]=he[o];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}(o);break;case"box-shadow":t[n+1]=function(e){var t=e.split(" "),n=parseInt(t[0],10);return t[0]=t[0].replace(String(n),String(-1*n)),t.join(" ")}(o)}}}var ve=/\:global\((.+?)\)/g;function ge(e,t){return e.indexOf(":global(")>=0?e.replace(ve,"$1"):0===e.indexOf(":host(")?e:0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function me(e,t,n,r,o){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?_e([r],t,n=n+"{"+e,o):n.indexOf(",")>-1?function(e){if(!ve.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global(".concat(e.trim(),")")})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return _e([r],t,ge(n,e),o)})):_e([r],t,ge(n,e),o)}function _e(e,t,n,r){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var o,i=t[n];i||(i={},t[n]=i,t.__order.push(n));for(var a=0,s=e;a<s.length;a++){var l=s[a];if("string"==typeof l){var u=r.argsFromClassName(l);u&&_e(u,t,n,r)}else if(Array.isArray(l))_e(l,t,n,r);else for(var c in l)if(l.hasOwnProperty(c)){var d=l[c];if("selectors"===c){var f=l.selectors;for(var h in f)f.hasOwnProperty(h)&&me(n,t,h,f[h],r)}else"object"==typeof d||(o=c).indexOf(":global(")>=0||0===o.indexOf(":")?null!=d&&me(n,t,c,d,r):void 0!==d&&("margin"===c||"padding"===c?be(i,c,d):i[c]=d)}}return t}function be(e,t,n){var r="string"==typeof n?function(e){for(var t=[],n=0,r=0,o=0;o<e.length;o++)switch(e[o]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(o>n&&t.push(e.substring(n,o)),n=o+1)}return n<e.length&&t.push(e.substring(n)),t}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(e){return e+" !important"}))),e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function ye(e,t){return t<=0?"":1===t?e:e+ye(e,t-1)}function Ee(e,t){if(!t)return"";var n,r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&"displayName"!==a&&void 0!==t[a]&&i.push(a,t[a]);for(var s=0;s<i.length;s+=2)o=void 0,"-"!==(o=(n=i)[r=s]).charAt(0)&&(n[r]=oe[o]=oe[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase()),ue(i,s),pe(e,i,s),ae(i,s);for(s=1;s<i.length;s+=4)i.splice(s,1,":",i[s],";");return i.join("")}function xe(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=null!==(t=e.stylesheet)&&void 0!==t?t:j.getInstance(e.shadowConfig),i=_e(n,void 0,void 0,o),a=function(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,i=t.__order;o<i.length;o++){var a=i[o];n.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}(e,i);if(a){var s={className:o.classNameFromKey(a),key:a,args:n};if(!s.className){s.className=o.getClassName(function(e){var t=e&&e["&"];return t?t.displayName:void 0}(i));for(var l=[],u=0,c=i.__order;u<c.length;u++){var d=c[u];l.push(d,Ee(e,i[d]))}s.rulesToInsert=l}return s}}function Ce(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=xe.apply(void 0,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e],t,!1));return r?(function(e,t,n,r){void 0===t&&(t=1);var o=null!=r?r:j.getInstance(n),i=e.className,a=e.key,s=e.args,l=e.rulesToInsert;if(l){for(var u=0;u<l.length;u+=2){var c=l[u+1];if(c){var d=l[u];d=d.replace(/&/g,ye(".".concat(e.className),t));var f="".concat(d,"{").concat(c,"}").concat(0===d.indexOf("@")?"}":"");o.insertRule(f)}}o.cacheClassName(i,a,s,l)}}(r,e.specificityMultiplier,e.shadowConfig,e.stylesheet),r.className):""}function ke(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(e,t){var n=e instanceof Array?e:[e],r=t||{};A(n[0])&&(r.shadowConfig=n[0]),r.stylesheet=j.getInstance(r.shadowConfig);var o=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=[],o=[],i=e;return function e(t){for(var n=0,a=t;n<a.length;n++){var s=a[n];if(s&&!A(s))if("string"==typeof s)if(s.indexOf(" ")>=0)e(s.split(" "));else{var l=i.argsFromClassName(s);l?e(l):-1===r.indexOf(s)&&r.push(s)}else Array.isArray(s)?e(s):"object"==typeof s&&o.push(s)}}(t),{classes:r,objects:o}}(r.stylesheet,n),i=o.classes,a=o.objects;return a.length&&i.push(Ce(r,a)),i.join(" ")}(e,D())}ke({overflow:"hidden !important"});var we="data-is-scrollable";var Se="data-portal-element",Fe=l.createContext(void 0),Ae="__globalSettings__",Te="__callbacks__",Ie=0,De=function(){function e(){}return e.getValue=function(e,t){var n=Be();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=Be(),r=n[Te],o=n[e];if(t!==o){n[e]=t;var i={oldValue:o,value:t,key:e};for(var a in r)r.hasOwnProperty(a)&&r[a](i)}return t},e.addChangeListener=function(e){var t=e.__id__,n=Oe();t||(t=e.__id__=String(Ie++)),n[t]=e},e.removeChangeListener=function(e){delete Oe()[e.__id__]},e}();function Be(){var e,t=p()||{};return t[Ae]||(t[Ae]=((e={})[Te]={},e)),t[Ae]}function Oe(){return Be()[Te]}var Pe,Re={settings:{},scopedSettings:{},inCustomizerContext:!1},Ne=De.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),Le=[],Me=function(){function e(){}return e.reset=function(){Ne.settings={},Ne.scopedSettings={}},e.applySettings=function(t){Ne.settings=a(a({},Ne.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){Ne.scopedSettings[t]=a(a({},Ne.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=Re);for(var r={},o=t&&n.scopedSettings[t]||{},i=t&&Ne.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];r[l]=o[l]||n.settings[l]||i[l]||Ne.settings[l]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){Le.push(e)},e.unobserve=function(e){Le=Le.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||Le.forEach((function(e){return e()}))},e}(),Ke=function(){return Ke=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ke.apply(this,arguments)},He="undefined"==typeof window?e.g:window,Ue=He&&He.CSPSettings&&He.CSPSettings.nonce,We=((Pe=He.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(Pe=Ke({},Pe,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),Pe.registeredThemableStyles||(Pe=Ke({},Pe,{registeredThemableStyles:[]})),He.__themeState__=Pe,Pe);function ze(e){We.theme=e,function(){if(We.theme){for(var e=[],t=0,n=We.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(void 0===(i=1)&&(i=3),3!==i&&2!==i||(je(We.registeredStyles),We.registeredStyles=[]),3!==i&&1!==i||(je(We.registeredThemableStyles),We.registeredThemableStyles=[]),o=[].concat.apply([],e),We.loadStyles?We.loadStyles(Ze(o).styleString,o):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=Ze(e),o=r.styleString,i=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",Ue&&n.setAttribute("nonce",Ue),n.appendChild(document.createTextNode(o)),We.perf.count++,t.appendChild(n);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:n},document.dispatchEvent(a);var s={styleElement:n,themableStyle:e};i?We.registeredThemableStyles.push(s):We.registeredStyles.push(s)}}(o))}var o,i}()}function je(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function Ze(e){var t=We.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var o=t?t[r]:void 0,i=e.defaultValue||"inherit";return t&&!o&&console&&!(r in t)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+i+'".'),o||i}return e.rawString})).join(""),themable:n}}var Ge,Ve={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(Ge||(Ge={}));var qe,Je,Qe,Ye,Xe,$e={elevation4:Ge.depth4,elevation8:Ge.depth8,elevation16:Ge.depth16,elevation64:Ge.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(qe||(qe={})),function(e){e.Arabic="'".concat(qe.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(qe.Cyrillic,"'"),e.EastEuropean="'".concat(qe.EastEuropean,"'"),e.Greek="'".concat(qe.Greek,"'"),e.Hebrew="'".concat(qe.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(qe.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(qe.Vietnamese,"'"),e.WestEuropean="'".concat(qe.WestEuropean,"'"),e.Armenian="'".concat(qe.Armenian,"'"),e.Georgian="'".concat(qe.Georgian,"'")}(Je||(Je={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(Qe||(Qe={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(Ye||(Ye={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(Xe||(Xe={}));var et,tt="'Segoe UI', '".concat(qe.WestEuropean,"'"),nt={ar:Je.Arabic,bg:Je.Cyrillic,cs:Je.EastEuropean,el:Je.Greek,et:Je.EastEuropean,he:Je.Hebrew,hi:Je.Hindi,hr:Je.EastEuropean,hu:Je.EastEuropean,ja:Je.Japanese,kk:Je.EastEuropean,ko:Je.Korean,lt:Je.EastEuropean,lv:Je.EastEuropean,pl:Je.EastEuropean,ru:Je.Cyrillic,sk:Je.EastEuropean,"sr-latn":Je.EastEuropean,th:Je.Thai,tr:Je.EastEuropean,uk:Je.Cyrillic,vi:Je.Vietnamese,"zh-hans":Je.ChineseSimplified,"zh-hant":Je.ChineseTraditional,hy:Je.Armenian,ka:Je.Georgian};function rt(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var ot,it,at="language",st=(ot=function(e){for(var t in nt)if(nt.hasOwnProperty(t)&&e&&0===t.indexOf(e))return nt[t];return tt}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===et){var t=v(),n="localStorage"===e?function(e){var t=null;try{var n=p();t=n?n.localStorage.getItem(e):null}catch(e){}return t}(at):"sessionStorage"===e?C(at):void 0;n&&(et=n),void 0===et&&t&&(et=t.documentElement.getAttribute("lang")),void 0===et&&(et="en")}return et}()),it="".concat(ot,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:rt(Qe.mini,Ye.regular,it),xSmall:rt(Qe.xSmall,Ye.regular,it),small:rt(Qe.small,Ye.regular,it),smallPlus:rt(Qe.smallPlus,Ye.regular,it),medium:rt(Qe.medium,Ye.regular,it),mediumPlus:rt(Qe.mediumPlus,Ye.regular,it),large:rt(Qe.large,Ye.regular,it),xLarge:rt(Qe.xLarge,Ye.semibold,it),xLargePlus:rt(Qe.xLargePlus,Ye.semibold,it),xxLarge:rt(Qe.xxLarge,Ye.semibold,it),xxLargePlus:rt(Qe.xxLargePlus,Ye.semibold,it),superLarge:rt(Qe.superLarge,Ye.semibold,it),mega:rt(Qe.mega,Ye.semibold,it)});function lt(e,t,n,r){!function(e){var t=j.getInstance(),n=Ee(D(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{".concat(n,"}"),!0),t.cacheClassName(r,n,[],["font-face",n])}}({fontFamily:e="'".concat(e,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(t,".woff2') format('woff2'),")+"url('".concat(t,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function ut(e,t,n,r,o){void 0===r&&(r="segoeui");var i="".concat(e,"/").concat(n,"/").concat(r);lt(t,i+"-light",Ye.light,o&&o+" Light"),lt(t,i+"-semilight",Ye.semilight,o&&o+" SemiLight"),lt(t,i+"-regular",Ye.regular,o),lt(t,i+"-semibold",Ye.semibold,o&&o+" SemiBold"),lt(t,i+"-bold",Ye.bold,o&&o+" Bold")}function ct(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)dt(e||{},o[r]);return e}function dt(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var o=t[r];if("object"!=typeof o||null===o||Array.isArray(o))e[r]=o;else{var i=n.indexOf(o)>-1;e[r]=i?o:dt(e[r]||{},o,n)}}return n.pop(),e}function ft(e,t,n,r,o){return void 0===o&&(o=!1),function(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(ht(e,t,a({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),o)}function ht(e,t,n,r,o){void 0===o&&(o=!1);var i={},s=e||{},l=s.white,u=s.black,c=s.themePrimary,d=s.themeDark,f=s.themeDarker,h=s.themeDarkAlt,p=s.themeLighter,v=s.neutralLight,g=s.neutralLighter,m=s.neutralDark,_=s.neutralQuaternary,b=s.neutralQuaternaryAlt,y=s.neutralPrimary,E=s.neutralSecondary,x=s.neutralSecondaryAlt,C=s.neutralTertiary,k=s.neutralTertiaryAlt,w=s.neutralLighterAlt,S=s.accent;return l&&(i.bodyBackground=l,i.bodyFrameBackground=l,i.accentButtonText=l,i.buttonBackground=l,i.primaryButtonText=l,i.primaryButtonTextHovered=l,i.primaryButtonTextPressed=l,i.inputBackground=l,i.inputForegroundChecked=l,i.listBackground=l,i.menuBackground=l,i.cardStandoutBackground=l),u&&(i.bodyTextChecked=u,i.buttonTextCheckedHovered=u),c&&(i.link=c,i.primaryButtonBackground=c,i.inputBackgroundChecked=c,i.inputIcon=c,i.inputFocusBorderAlt=c,i.menuIcon=c,i.menuHeader=c,i.accentButtonBackground=c),d&&(i.primaryButtonBackgroundPressed=d,i.inputBackgroundCheckedHovered=d,i.inputIconHovered=d),f&&(i.linkHovered=f),h&&(i.primaryButtonBackgroundHovered=h),p&&(i.inputPlaceholderBackgroundChecked=p),v&&(i.bodyBackgroundChecked=v,i.bodyFrameDivider=v,i.bodyDivider=v,i.variantBorder=v,i.buttonBackgroundCheckedHovered=v,i.buttonBackgroundPressed=v,i.listItemBackgroundChecked=v,i.listHeaderBackgroundPressed=v,i.menuItemBackgroundPressed=v,i.menuItemBackgroundChecked=v),g&&(i.bodyBackgroundHovered=g,i.buttonBackgroundHovered=g,i.buttonBackgroundDisabled=g,i.buttonBorderDisabled=g,i.primaryButtonBackgroundDisabled=g,i.disabledBackground=g,i.listItemBackgroundHovered=g,i.listHeaderBackgroundHovered=g,i.menuItemBackgroundHovered=g),_&&(i.primaryButtonTextDisabled=_,i.disabledSubtext=_),b&&(i.listItemBackgroundCheckedHovered=b),C&&(i.disabledBodyText=C,i.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||C,i.buttonTextDisabled=C,i.inputIconDisabled=C,i.disabledText=C),y&&(i.bodyText=y,i.actionLink=y,i.buttonText=y,i.inputBorderHovered=y,i.inputText=y,i.listText=y,i.menuItemText=y),w&&(i.bodyStandoutBackground=w,i.defaultStateBackground=w),m&&(i.actionLinkHovered=m,i.buttonTextHovered=m,i.buttonTextChecked=m,i.buttonTextPressed=m,i.inputTextHovered=m,i.menuItemTextHovered=m),E&&(i.bodySubtext=E,i.focusBorder=E,i.inputBorder=E,i.smallInputBorder=E,i.inputPlaceholderText=E),x&&(i.buttonBorder=x),k&&(i.disabledBodySubtext=k,i.disabledBorder=k,i.buttonBackgroundChecked=k,i.menuDivider=k),S&&(i.accentButtonBackground=S),(null==t?void 0:t.elevation4)&&(i.cardShadow=t.elevation4),!r&&(null==t?void 0:t.elevation8)?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),a(a({},i),n)}!function(e){if(e){var t="".concat(e,"/fonts");ut(t,qe.Thai,"leelawadeeui-thai","leelawadeeui"),ut(t,qe.Arabic,"segoeui-arabic"),ut(t,qe.Cyrillic,"segoeui-cyrillic"),ut(t,qe.EastEuropean,"segoeui-easteuropean"),ut(t,qe.Greek,"segoeui-greek"),ut(t,qe.Hebrew,"segoeui-hebrew"),ut(t,qe.Vietnamese,"segoeui-vietnamese"),ut(t,qe.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),ut(t,Je.Selawik,"selawik","selawik"),ut(t,qe.Armenian,"segoeui-armenian"),ut(t,qe.Georgian,"segoeui-georgian"),lt("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),Ye.light),lt("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),Ye.semibold)}}(function(){var e,t,n=null===(e=p())||void 0===e?void 0:e.FabricConfig;return null!==(t=null==n?void 0:n.fontBaseUrl)&&void 0!==t?t:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"}());var pt={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function vt(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,o;void 0===t&&(t={});var i=ct({},e,t,{semanticColors:ht(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(i.fonts);a<s.length;a++){var l=s[a];i.fonts[l]=ct(i.fonts[l],t.defaultFontStyle,null===(o=null==t?void 0:t.fonts)||void 0===o?void 0:o[l])}return i}({palette:Ve,effects:$e,fonts:st,spacing:pt,isInverted:n,disableGlobalClassNames:!1,semanticColors:ft(Ve,$e,void 0,n,t),rtl:void 0},e)}var gt=vt({}),mt=[],_t="theme";function bt(){var e,t,n,r=p();(null===(t=null==r?void 0:r.FabricConfig)||void 0===t?void 0:t.legacyTheme)?function(e,t){var n;void 0===t&&(t=!1),gt=vt(e,t),ze(a(a(a(a({},gt.palette),gt.semanticColors),gt.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],i=e.fonts[o],a=0,s=Object.keys(i);a<s.length;a++){var l=s[a],u=o+l.charAt(0).toUpperCase()+l.slice(1),c=i[l];"fontSize"===l&&"number"==typeof c&&(c+="px"),t[u]=c}return t}(gt))),Me.applySettings(((n={})[_t]=gt,n)),mt.forEach((function(e){try{e(gt)}catch(e){}}))}(r.FabricConfig.legacyTheme):Me.getSettings([_t]).theme||((null===(n=null==r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(gt=vt(r.FabricConfig.theme)),Me.applySettings(((e={})[_t]=gt,e)))}bt(),o("@fluentui/style-utilities","8.15.0"),bt();var yt,Et="data-is-focusable",xt="data-focuszone-id",Ct="tabindex",kt="data-no-vertical-wrap",wt="data-no-horizontal-wrap",St=999999999,Ft=-999999999;function At(e,t){var n;"function"==typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null==t?void 0:t.ctrlKey,metaKey:null==t?void 0:t.metaKey,shiftKey:null==t?void 0:t.shiftKey,altKey:null==t?void 0:t.altKey,bubbles:null==t?void 0:t.bubbles,cancelable:null==t?void 0:t.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(n)}var Tt={},It=new Set,Dt=["text","number","password","email","tel","url","search","textarea"],Bt=!1,Ot=function(e){function t(n){var r,o,i,a,d,f=e.call(this,n)||this;f._root=l.createRef(),f._mergedRef=(d={refs:[]},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return d.resolver&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(d.refs,e)||(d.resolver=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var o=r[n];"function"==typeof o?o(t):o&&(o.current=t)}}}(d)),d.refs=e,d.resolver}),f._onFocus=function(e){if(!f._portalContainsElement(e.target)){var t,n=f.props,r=n.onActiveElementChanged,o=n.doNotAllowFocusEventToPropagate,i=n.stopFocusPropagation,a=n.onFocusNotification,s=n.onFocus,l=n.shouldFocusInnerElementWhenReceivedFocus,u=n.defaultTabbableElement,d=f._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var h=e.target;h&&h!==f._root.current;){if(y(h,void 0,f._inShadowRoot)&&f._isImmediateDescendantOfZone(h)){t=h;break}h=c(h,Bt)}if(l&&e.target===f._root.current){var p=u&&"function"==typeof u&&f._root.current&&u(f._root.current);p&&y(p,void 0,f._inShadowRoot)?(t=p,p.focus()):(f.focus(!0),f._activeElement&&(t=null))}var v=!f._activeElement;t&&t!==f._activeElement&&((d||v)&&f._setFocusAlignment(t,!0,!0),f._activeElement=t,v&&f._updateTabIndexes()),r&&r(f._activeElement,e),(i||o)&&e.stopPropagation(),s?s(e):a&&a()}},f._onBlur=function(){f._setParkedFocus(!1)},f._onMouseDown=function(e){if(!f._portalContainsElement(e.target)&&!f.props.disabled){for(var t=e.target,n=[];t&&t!==f._root.current;)n.push(t),t=c(t,Bt);for(;n.length&&((t=n.pop())&&y(t,void 0,f._inShadowRoot)&&f._setActiveElement(t,!0),!E(t)););}},f._onKeyDown=function(e,t){if(!f._portalContainsElement(e.target)){var n=f.props,r=n.direction,o=n.disabled,i=n.isInnerZoneKeystroke,a=n.pagingSupportDisabled,l=n.shouldEnterInnerZone;if(!(o||(f.props.onKeyDown&&f.props.onKeyDown(e),e.isDefaultPrevented()||f._getDocument().activeElement===f._root.current&&f._isInnerZone))){if((l&&l(e)||i&&i(e))&&f._isImmediateDescendantOfZone(e.target)){var c=f._getFirstInnerZone();if(c){if(!c.focus(!0))return}else{if(!x(e.target))return;if(!f.focusElement(m(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case 32:if(f._shouldRaiseClicksOnSpace&&f._tryInvokeClickForFocusable(e.target,e))break;return;case 37:if(r!==s.vertical&&(f._preventDefaultWhenHandled(e),f._moveFocusLeft(t)))break;return;case 39:if(r!==s.vertical&&(f._preventDefaultWhenHandled(e),f._moveFocusRight(t)))break;return;case 38:if(r!==s.horizontal&&(f._preventDefaultWhenHandled(e),f._moveFocusUp()))break;return;case 40:if(r!==s.horizontal&&(f._preventDefaultWhenHandled(e),f._moveFocusDown()))break;return;case 34:if(!a&&f._moveFocusPaging(!0))break;return;case 33:if(!a&&f._moveFocusPaging(!1))break;return;case 9:if(f.props.allowTabKey||f.props.handleTabKey===u.all||f.props.handleTabKey===u.inputOnly&&f._isElementInput(e.target)){var d=!1;if(f._processingTabKey=!0,d=r!==s.vertical&&f._shouldWrapFocus(f._activeElement,wt)?(P(t)?!e.shiftKey:e.shiftKey)?f._moveFocusLeft(t):f._moveFocusRight(t):e.shiftKey?f._moveFocusUp():f._moveFocusDown(),f._processingTabKey=!1,d)break;f.props.shouldResetActiveElementWhenTabFromZone&&(f._activeElement=null)}return;case 36:if(f._isContentEditableElement(e.target)||f._isElementInput(e.target)&&!f._shouldInputLoseFocus(e.target,!1))return!1;var h=f._root.current&&f._root.current.firstChild;if(f._root.current&&h&&f.focusElement(m(f._root.current,h,!0)))break;return;case 35:if(f._isContentEditableElement(e.target)||f._isElementInput(e.target)&&!f._shouldInputLoseFocus(e.target,!0))return!1;var p=f._root.current&&f._root.current.lastChild;if(f._root.current&&f.focusElement(g(f._root.current,p,!0,!0,!0)))break;return;case 13:if(f._shouldRaiseClicksOnEnter&&f._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},f._getHorizontalDistanceFromCenter=function(e,t,n){var r=f._focusAlignment.left||f._focusAlignment.x||0,o=Math.floor(n.top),i=Math.floor(t.bottom),a=Math.floor(n.bottom),s=Math.floor(t.top);return e&&o>i||!e&&a<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):f._shouldWrapFocus(f._activeElement,kt)?St:Ft},function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=R(e,e[n],t[n]))}(f,{componentDidMount:N,componentDidUpdate:L,componentWillUnmount:M}),f._id=function(e){if(!V){var t=j.getInstance();t&&t.onReset&&t.onReset(q),V=!0}return e+G[Z]++}("FocusZone"),f._focusAlignment={left:0,top:0},f._processingTabKey=!1;var h=null===(o=null!==(r=n.shouldRaiseClicks)&&void 0!==r?r:t.defaultProps.shouldRaiseClicks)||void 0===o||o;return f._shouldRaiseClicksOnEnter=null!==(i=n.shouldRaiseClicksOnEnter)&&void 0!==i?i:h,f._shouldRaiseClicksOnSpace=null!==(a=n.shouldRaiseClicksOnSpace)&&void 0!==a?a:h,f}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.getOuterZones=function(){return It.size},t._onKeyDownCapture=function(e){9===e.which&&It.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e,n=this._root.current;if(this._inShadowRoot=!!(null===(e=this.context)||void 0===e?void 0:e.shadowRoot),Tt[this._id]=this,n){for(var r=c(n,Bt);r&&r!==this._getDocument().body&&1===r.nodeType;){if(E(r)){this._isInnerZone=!0;break}r=c(r,Bt)}this._isInnerZone||(It.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e,t=this._root.current,n=this._getDocument();if(this._inShadowRoot=!!(null===(e=this.context)||void 0===e?void 0:e.shadowRoot),(this._activeElement&&!J(this._root.current,this._activeElement,Bt)||this._defaultFocusElement&&!J(this._root.current,this._defaultFocusElement,Bt))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&n&&this._lastIndexPath&&(n.activeElement===n.body||null===n.activeElement||n.activeElement===t)){var r=function(e,t){for(var n=e,r=0,o=t;r<o.length;r++){var i=o[r],a=n.children[Math.min(i,n.children.length-1)];if(!a)break;n=a}return y(n)&&_(n)?n:m(e,n,!0)||g(e,n)}(t,this._lastIndexPath);r?(this._setActiveElement(r,!0),r.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Tt[this._id],this._isInnerZone||(It.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=t.elementType,o=t.rootProps,i=t.ariaDescribedBy,s=t.ariaLabelledBy,u=t.className,c=function(e,t){for(var n=Array.isArray(t),r={},o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];!(!n&&t[a]||n&&t.indexOf(a)>=0||0===a.indexOf("data-")||0===a.indexOf("aria-"))||(r[a]=e[a])}return r}(this.props,$),d=n||r||"div";this._evaluateFocusBeforeRender();var f,h=(void 0===f&&(f=!1),!0===f&&(gt=vt({},f)),gt);return l.createElement(d,a({"aria-labelledby":s,"aria-describedby":i},c,o,{className:ne((yt||(yt=ke({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),yt),u),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,h)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(Et)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=Tt[n.getAttribute(xt)];return!!r&&r.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&J(this._root.current,this._activeElement)&&y(this._activeElement,void 0,this._inShadowRoot)&&(!t||b(this._activeElement)))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement(m(this._root.current,o,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(g(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,o=n.shouldReceiveFocus;return!(o&&!o(e)||r&&!r(e)||!e||(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=J(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=c(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(E(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SUMMARY"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(Et)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return At(n,t),!0;n=c(n,Bt)}while(n!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(E(e))return Tt[e.getAttribute(xt)];for(var t=e.firstElementChild;t;){if(E(t))return Tt[t.getAttribute(xt)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var o=this._activeElement,i=-1,a=void 0,l=!1,u=this.props.direction===s.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var c=u?o.getBoundingClientRect():null;do{if(o=e?m(this._root.current,o):g(this._root.current,o),!u){a=o;break}if(o){var d=t(c,o.getBoundingClientRect());if(-1===d&&-1===i){a=o;break}if(d>-1&&(-1===i||d<i)&&(i=d,a=o),i>=0&&d<0)break}}while(o);if(a&&a!==this._activeElement)l=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(m(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(g(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return l},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,o){var i=-1,a=Math.floor(o.top),s=Math.floor(r.bottom);return a<s?e._shouldWrapFocus(e._activeElement,kt)?St:Ft:((-1===t&&a>=s||a===t)&&(t=a,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,o){var i=-1,a=Math.floor(o.bottom),s=Math.floor(o.top),l=Math.floor(r.top);return a>l?e._shouldWrapFocus(e._activeElement,kt)?St:Ft:((-1===t&&a<=l||s===t)&&(t=s,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,wt);return!!this._moveFocus(P(e),(function(r,o){var i=-1;return(P(e)?parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&t.props.direction!==s.vertical?i=r.right-o.right:n||(i=Ft),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,wt);return!!this._moveFocus(!P(e),(function(r,o){var i=-1;return(P(e)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&o.left>=r.left&&t.props.direction!==s.vertical?i=o.left-r.left:n||(i=Ft),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=function(e){for(var t=e,n=v(e);t&&t!==n.body;){if("true"===t.getAttribute(we))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(we)){var r=getComputedStyle(t),o=r?r.getPropertyValue("overflow-y"):"";if(o&&("scroll"===o||"auto"===o))return t}t=t.parentElement}return t&&t!==n.body||(t=p(e)),t}(n);if(!r)return!1;var o=-1,i=void 0,a=-1,s=-1,l=r.clientHeight,u=n.getBoundingClientRect();do{if(n=e?m(this._root.current,n):g(this._root.current,n)){var c=n.getBoundingClientRect(),d=Math.floor(c.top),f=Math.floor(u.bottom),h=Math.floor(c.bottom),_=Math.floor(u.top),b=this._getHorizontalDistanceFromCenter(e,u,c);if(e&&d>f+l||!e&&h<_-l)break;b>-1&&(e&&d>a?(a=d,o=b,i=n):!e&&h<s?(s=h,o=b,i=n):(-1===o||b<=o)&&(o=b,i=n))}}while(n);var y=!1;if(i&&i!==this._activeElement)y=!0,this.focusElement(i),this._setFocusAlignment(i,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(m(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(g(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return y},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===s.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),o=r.left+r.width/2,i=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:i}),t&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=i)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=c(e,Bt);t&&t!==this._root.current&&t!==this._getDocument().body;){if(E(t))return t;t=c(t,Bt)}return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!J(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!y(this._activeElement,void 0,this._inShadowRoot)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];E(r)?"true"===r.getAttribute(Et)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Ct)&&r.setAttribute(Ct,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Ct)&&r.setAttribute(Ct,"0"))):(r.getAttribute&&"false"===r.getAttribute(Et)&&r.setAttribute(Ct,"-1"),y(r,void 0,this._inShadowRoot)?this.props.disabled?r.setAttribute(Ct,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Ct)&&r.setAttribute(Ct,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Ct)&&r.setAttribute(Ct,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&Dt.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value,i=e.readOnly;if(r||n>0&&!t&&!i||n!==o.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||function(e,t,n){return"true"!==function(e,t,n){var r=d(e,(function(e){return e.hasAttribute(t)}),n);return r&&r.getAttribute(t)}(e,t,null!=n?n:v())}(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&function(e,t){var n,r=d(e,(function(e){var n;return t===e||!!(null===(n=e.hasAttribute)||void 0===n?void 0:n.call(e,Se))}),void 0);return null!==r&&!!(null===(n=r.hasAttribute)||void 0===n?void 0:n.call(r,Se))}(e,this._root.current)},t.prototype._getDocument=function(){return v(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:s.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},t.contextType=Fe,t}(l.Component);FluentUIReactFocus=t}(); |