Outlook_Addin_LLM/node_modules/@fluentui/foundation-legacy/dist/foundation-legacy.js

1 line
37 KiB
JavaScript

var FluentUIFoundationLegacy;!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,{ThemeProvider:function(){return ct},createComponent:function(){return st},createFactory:function(){return ot},getControlledDerivedProps:function(){return ft},getSlots:function(){return it},legacyStyled:function(){return yt},useControlledState:function(){return dt},withSlots:function(){return rt}});var n=function(e,t){return n=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])},n(e,t)};var r=function(){return r=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},r.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;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))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var i=React;function s(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}var u=void 0;try{u=window}catch(e){}function l(e){if(s()&&void 0!==u){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:u}}var c="__globalSettings__",d="__callbacks__",f=0,p=function(){function e(){}return e.getValue=function(e,t){var n=g();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=g(),r=n[d],o=n[e];if(t!==o){n[e]=t;var a={oldValue:o,value:t,key:e};for(var i in r)r.hasOwnProperty(i)&&r[i](a)}return t},e.addChangeListener=function(e){var t=e.__id__,n=h();t||(t=e.__id__=String(f++)),n[t]=e},e.removeChangeListener=function(e){delete h()[e.__id__]},e}();function g(){var e,t=l()||{};return t[c]||(t[c]=((e={})[d]={},e)),t[c]}function h(){return g()[d]}var v={settings:{},scopedSettings:{},inCustomizerContext:!1},m=p.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),y=[],b=function(){function e(){}return e.reset=function(){m.settings={},m.scopedSettings={}},e.applySettings=function(t){m.settings=r(r({},m.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){m.scopedSettings[t]=r(r({},m.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=v);for(var r={},o=t&&n.scopedSettings[t]||{},a=t&&m.scopedSettings[t]||{},i=0,s=e;i<s.length;i++){var u=s[i];r[u]=o[u]||n.settings[u]||a[u]||m.settings[u]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){y.push(e)},e.unobserve=function(e){y=y.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||y.forEach((function(e){return e()}))},e}();function S(e,t){void 0===e&&(e={});var n=_(t)?t:function(e){return function(t){return e?r(r({},t),e):t}}(t);return n(e)}function _(e){return"function"==typeof e}var x="__global__",C="__shadow_dom_stylesheet__",k={stylesheetKey:x,inShadow:!1,window:void 0,__isShadowConfig__:!0},w=function(e){return!(!e||!function(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}(e))&&!0===e.__isShadowConfig__};function E(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles&&!w(e[0]))return e[0];for(var n={},r={},o=0,i=e;o<i.length;o++){var s=i[o];if(s&&!w(s))for(var u in s)if(s.hasOwnProperty(u)){if("subComponentStyles"===u&&void 0!==s.subComponentStyles){var l=s.subComponentStyles;for(var c in l)l.hasOwnProperty(c)&&(r.hasOwnProperty(c)?r[c].push(l[c]):r[c]=[l[c]]);continue}var d=n[u],f=s[u];n[u]=void 0===d?f:a(a([],Array.isArray(d)?d:[d],!0),Array.isArray(f)?f:[f],!0)}}if(Object.keys(r).length>0){n.subComponentStyles={};var p=n.subComponentStyles,g=function(e){if(r.hasOwnProperty(e)){var t=r[e];p[e]=function(e){return E.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var c in r)g(c)}return n}var T={},B=void 0;try{B=window}catch(e){}function A(e,t){if(void 0!==B){var n=B.__packages__=B.__packages__||{};n[e]&&T[e]||(T[e]=t,(n[e]=n[e]||[]).push(t))}}A("@fluentui/set-version","6.0.0"),A("@fluentui/style-utilities","8.11.4");var I,O=function(){return O=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},O.apply(this,arguments)},P="undefined"==typeof window?e.g:window,N=P&&P.CSPSettings&&P.CSPSettings.nonce,F=((I=P.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(I=O({},I,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),I.registeredThemableStyles||(I=O({},I,{registeredThemableStyles:[]})),P.__themeState__=I,I);function L(e){F.theme=e,function(){if(F.theme){for(var e=[],t=0,n=F.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(void 0===(a=1)&&(a=3),3!==a&&2!==a||(z(F.registeredStyles),F.registeredStyles=[]),3!==a&&1!==a||(z(F.registeredThemableStyles),F.registeredThemableStyles=[]),o=[].concat.apply([],e),F.loadStyles?F.loadStyles(R(o).styleString,o):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=R(e),o=r.styleString,a=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",N&&n.setAttribute("nonce",N),n.appendChild(document.createTextNode(o)),F.perf.count++,t.appendChild(n);var i=document.createEvent("HTMLEvents");i.initEvent("styleinsert",!0,!1),i.args={newStyle:n},document.dispatchEvent(i);var s={styleElement:n,themableStyle:e};a?F.registeredThemableStyles.push(s):F.registeredStyles.push(s)}}(o))}var o,a}()}function z(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function R(e){var t=F.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var o=t?t[r]:void 0,a=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 "'+a+'".'),o||a}return e.rawString})).join(""),themable:n}}var D,H={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)"}(D||(D={}));var j,M={elevation4:D.depth4,elevation8:D.depth8,elevation16:D.depth16,elevation64:D.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};function W(e){j!==e&&(j=e)}function U(){return void 0===j&&(j="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),j}j=U();var G,V="__stylesheet__",K="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),J={};try{J=window||{}}catch(X){}var Q,q=function(){function e(e,t){var n,o,a,i,s,u;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=r({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!==(o=null==t?void 0:t.counter)&&void 0!==o?o:this._counter,this._keyToClassName=null!==(i=null!==(a=this._config.classNameCache)&&void 0!==a?a: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!==(u=null==t?void 0:t.rules)&&void 0!==u?u:this._rules}return e.getInstance=function(t){if(G=J[V],J[C])return J[C].getInstance(t);if(!G||G._lastStyleElement&&G._lastStyleElement.ownerDocument!==document){var n=(null==J?void 0:J.FabricConfig)||{},r=new e(n.mergeStyles,n.serializedStylesheet);G=r,J[V]=r}return G},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=r(r({},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=x);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 a=this._config.cspSettings;if(a&&a.nonce&&r.setAttribute("nonce",a.nonce),this._lastStyleElement)o=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();o=i?i.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(),K||(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}(),Y={},$={"user-select":1};function Z(e,t){var n=function(){var e;if(!Q){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();Q=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 Q}(),r=e[t];if($[r]){var o=e[t+1];$[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 X,ee=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function te(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=ee.indexOf(n)>-1,a=n.indexOf("--")>-1,i=o||a?"":"px";e[t+1]="".concat(r).concat(i)}}var ne="left",re="right",oe="@noflip",ae=((X={})[ne]=re,X[re]=ne,X),ie={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function se(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"==typeof o&&o.indexOf(oe)>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(ne)>=0)t[n]=r.replace(ne,re);else if(r.indexOf(re)>=0)t[n]=r.replace(re,ne);else if(String(o).indexOf(ne)>=0)t[n+1]=o.replace(ne,re);else if(String(o).indexOf(re)>=0)t[n+1]=o.replace(re,ne);else if(ae[r])t[n]=ae[r];else if(ie[o])t[n+1]=ie[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,t){var n=e.split(" "),r=parseInt(n[0],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o)}}}var ue,le,ce,de,fe,pe="displayName",ge=/\:global\((.+?)\)/g;function he(e,t){return e.indexOf(":global(")>=0?e.replace(ge,"$1"):0===e.indexOf(":host(")?e:0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function ve(e,t,n,r,o){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?me([r],t,n=n+"{"+e,o):n.indexOf(",")>-1?function(e){if(!ge.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 me([r],t,he(n,e),o)})):me([r],t,he(n,e),o)}function me(e,t,n,r){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var o,a=t[n];a||(a={},t[n]=a,t.__order.push(n));for(var i=0,s=e;i<s.length;i++){var u=s[i];if("string"==typeof u){var l=r.argsFromClassName(u);l&&me(l,t,n,r)}else if(Array.isArray(u))me(u,t,n,r);else for(var c in u)if(u.hasOwnProperty(c)){var d=u[c];if("selectors"===c){var f=u.selectors;for(var p in f)f.hasOwnProperty(p)&&ve(n,t,p,f[p],r)}else"object"==typeof d||(o=c).indexOf(":global(")>=0||0===o.indexOf(":")?null!=d&&ve(n,t,c,d,r):void 0!==d&&("margin"===c||"padding"===c?ye(a,c,d):a[c]=d)}}return t}function ye(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 be(e,t){return t<=0?"":1===t?e:e+be(e,t-1)}function Se(e,t){if(!t)return"";var n,r,o,a=[];for(var i in t)t.hasOwnProperty(i)&&i!==pe&&void 0!==t[i]&&a.push(i,t[i]);for(var s=0;s<a.length;s+=2)o=void 0,"-"!==(o=(n=a)[r=s]).charAt(0)&&(n[r]=Y[o]=Y[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase()),te(a,s),se(e,a,s),Z(a,s);for(s=1;s<a.length;s+=4)a.splice(s,1,":",a[s],";");return a.join("")}function _e(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:q.getInstance(e.shadowConfig),a=me(n,void 0,void 0,o),i=function(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,a=t.__order;o<a.length;o++){var i=a[o];n.push(i);var s=t[i];for(var u in s)s.hasOwnProperty(u)&&void 0!==s[u]&&(r=!0,n.push(u,s[u]))}return r?n.join(""):void 0}(e,a);if(i){var s={className:o.classNameFromKey(i),key:i,args:n};if(!s.className){s.className=o.getClassName(function(e){var t=e&&e["&"];return t?t.displayName:void 0}(a));for(var u=[],l=0,c=a.__order;l<c.length;l++){var d=c[l];u.push(d,Se(e,a[d]))}s.rulesToInsert=u}return s}}function xe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=_e.apply(void 0,a([e],t,!1));return r?(function(e,t,n,r){void 0===t&&(t=1);var o=null!=r?r:q.getInstance(n),a=e.className,i=e.key,s=e.args,u=e.rulesToInsert;if(u){for(var l=0;l<u.length;l+=2){var c=u[l+1];if(c){var d=u[l];d=d.replace(/&/g,be(".".concat(e.className),t));var f="".concat(d,"{").concat(c,"}").concat(0===d.indexOf("@")?"}":"");o.insertRule(f)}}o.cacheClassName(a,i,s,u)}}(r,e.specificityMultiplier,e.shadowConfig,e.stylesheet),r.className):""}!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)"}(ue||(ue={})),function(e){e.Arabic="'".concat(ue.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(ue.Cyrillic,"'"),e.EastEuropean="'".concat(ue.EastEuropean,"'"),e.Greek="'".concat(ue.Greek,"'"),e.Hebrew="'".concat(ue.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(ue.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(ue.Vietnamese,"'"),e.WestEuropean="'".concat(ue.WestEuropean,"'"),e.Armenian="'".concat(ue.Armenian,"'"),e.Georgian="'".concat(ue.Georgian,"'")}(le||(le={})),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"}(ce||(ce={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(de||(de={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(fe||(fe={}));var Ce,ke="'Segoe UI', '".concat(ue.WestEuropean,"'"),we={ar:le.Arabic,bg:le.Cyrillic,cs:le.EastEuropean,el:le.Greek,et:le.EastEuropean,he:le.Hebrew,hi:le.Hindi,hr:le.EastEuropean,hu:le.EastEuropean,ja:le.Japanese,kk:le.EastEuropean,ko:le.Korean,lt:le.EastEuropean,lv:le.EastEuropean,pl:le.EastEuropean,ru:le.Cyrillic,sk:le.EastEuropean,"sr-latn":le.EastEuropean,th:le.Thai,tr:le.EastEuropean,uk:le.Cyrillic,vi:le.Vietnamese,"zh-hans":le.ChineseSimplified,"zh-hant":le.ChineseTraditional,hy:le.Armenian,ka:le.Georgian};function Ee(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function Te(e){if(s()&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}function Be(e){var t=null;try{var n=l();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}var Ae,Ie,Oe="language",Pe=(Ae=function(e){for(var t in we)if(we.hasOwnProperty(t)&&e&&0===t.indexOf(e))return we[t];return ke}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===Ce){var t=Te(),n="localStorage"===e?function(e){var t=null;try{var n=l();t=n?n.localStorage.getItem(e):null}catch(e){}return t}(Oe):"sessionStorage"===e?Be(Oe):void 0;n&&(Ce=n),void 0===Ce&&t&&(Ce=t.documentElement.getAttribute("lang")),void 0===Ce&&(Ce="en")}return Ce}()),Ie="".concat(Ae,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:Ee(ce.mini,de.regular,Ie),xSmall:Ee(ce.xSmall,de.regular,Ie),small:Ee(ce.small,de.regular,Ie),smallPlus:Ee(ce.smallPlus,de.regular,Ie),medium:Ee(ce.medium,de.regular,Ie),mediumPlus:Ee(ce.mediumPlus,de.regular,Ie),large:Ee(ce.large,de.regular,Ie),xLarge:Ee(ce.xLarge,de.semibold,Ie),xLargePlus:Ee(ce.xLargePlus,de.semibold,Ie),xxLarge:Ee(ce.xxLarge,de.semibold,Ie),xxLargePlus:Ee(ce.xxLargePlus,de.semibold,Ie),superLarge:Ee(ce.superLarge,de.semibold,Ie),mega:Ee(ce.mega,de.semibold,Ie)});function Ne(e,t,n,r){!function(e){var t=q.getInstance(),n=Se({rtl:U(),shadowConfig:k},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 Fe(e,t,n,r,o){void 0===r&&(r="segoeui");var a="".concat(e,"/").concat(n,"/").concat(r);Ne(t,a+"-light",de.light,o&&o+" Light"),Ne(t,a+"-semilight",de.semilight,o&&o+" SemiLight"),Ne(t,a+"-regular",de.regular,o),Ne(t,a+"-semibold",de.semibold,o&&o+" SemiBold"),Ne(t,a+"-bold",de.bold,o&&o+" Bold")}function Le(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++)ze(e||{},o[r]);return e}function ze(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 a=n.indexOf(o)>-1;e[r]=a?o:ze(e[r]||{},o,n)}}return n.pop(),e}function Re(e,t,n,o,a){return void 0===a&&(a=!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}(De(e,t,r({primaryButtonBorder:"transparent",errorText:o?"#F1707B":"#a4262c",messageText:o?"#F3F2F1":"#323130",messageLink:o?"#6CB8F6":"#005A9E",messageLinkHovered:o?"#82C7FF":"#004578",infoIcon:o?"#C8C6C4":"#605e5c",errorIcon:o?"#F1707B":"#A80000",blockingIcon:o?"#442726":"#FDE7E9",warningIcon:o?"#C8C6C4":"#797775",severeWarningIcon:o?"#FCE100":"#D83B01",successIcon:o?"#92C353":"#107C10",infoBackground:o?"#323130":"#f3f2f1",errorBackground:o?"#442726":"#FDE7E9",blockingBackground:o?"#442726":"#FDE7E9",warningBackground:o?"#433519":"#FFF4CE",severeWarningBackground:o?"#4F2A0F":"#FED9CC",successBackground:o?"#393D1B":"#DFF6DD",warningHighlight:o?"#fff100":"#ffb900",successText:o?"#92c353":"#107C10"},n),o),a)}function De(e,t,n,o,a){void 0===a&&(a=!1);var i={},s=e||{},u=s.white,l=s.black,c=s.themePrimary,d=s.themeDark,f=s.themeDarker,p=s.themeDarkAlt,g=s.themeLighter,h=s.neutralLight,v=s.neutralLighter,m=s.neutralDark,y=s.neutralQuaternary,b=s.neutralQuaternaryAlt,S=s.neutralPrimary,_=s.neutralSecondary,x=s.neutralSecondaryAlt,C=s.neutralTertiary,k=s.neutralTertiaryAlt,w=s.neutralLighterAlt,E=s.accent;return u&&(i.bodyBackground=u,i.bodyFrameBackground=u,i.accentButtonText=u,i.buttonBackground=u,i.primaryButtonText=u,i.primaryButtonTextHovered=u,i.primaryButtonTextPressed=u,i.inputBackground=u,i.inputForegroundChecked=u,i.listBackground=u,i.menuBackground=u,i.cardStandoutBackground=u),l&&(i.bodyTextChecked=l,i.buttonTextCheckedHovered=l),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),p&&(i.primaryButtonBackgroundHovered=p),g&&(i.inputPlaceholderBackgroundChecked=g),h&&(i.bodyBackgroundChecked=h,i.bodyFrameDivider=h,i.bodyDivider=h,i.variantBorder=h,i.buttonBackgroundCheckedHovered=h,i.buttonBackgroundPressed=h,i.listItemBackgroundChecked=h,i.listHeaderBackgroundPressed=h,i.menuItemBackgroundPressed=h,i.menuItemBackgroundChecked=h),v&&(i.bodyBackgroundHovered=v,i.buttonBackgroundHovered=v,i.buttonBackgroundDisabled=v,i.buttonBorderDisabled=v,i.primaryButtonBackgroundDisabled=v,i.disabledBackground=v,i.listItemBackgroundHovered=v,i.listHeaderBackgroundHovered=v,i.menuItemBackgroundHovered=v),y&&(i.primaryButtonTextDisabled=y,i.disabledSubtext=y),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),S&&(i.bodyText=S,i.actionLink=S,i.buttonText=S,i.inputBorderHovered=S,i.inputText=S,i.listText=S,i.menuItemText=S),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),_&&(i.bodySubtext=_,i.focusBorder=_,i.inputBorder=_,i.smallInputBorder=_,i.inputPlaceholderText=_),x&&(i.buttonBorder=x),k&&(i.disabledBodySubtext=k,i.disabledBorder=k,i.buttonBackgroundChecked=k,i.menuDivider=k),E&&(i.accentButtonBackground=E),(null==t?void 0:t.elevation4)&&(i.cardShadow=t.elevation4),!o&&(null==t?void 0:t.elevation8)?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),r(r({},i),n)}!function(e){if(e){var t="".concat(e,"/fonts");Fe(t,ue.Thai,"leelawadeeui-thai","leelawadeeui"),Fe(t,ue.Arabic,"segoeui-arabic"),Fe(t,ue.Cyrillic,"segoeui-cyrillic"),Fe(t,ue.EastEuropean,"segoeui-easteuropean"),Fe(t,ue.Greek,"segoeui-greek"),Fe(t,ue.Hebrew,"segoeui-hebrew"),Fe(t,ue.Vietnamese,"segoeui-vietnamese"),Fe(t,ue.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Fe(t,le.Selawik,"selawik","selawik"),Fe(t,ue.Armenian,"segoeui-armenian"),Fe(t,ue.Georgian,"segoeui-georgian"),Ne("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),de.light),Ne("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),de.semibold)}}(function(){var e,t,n=null===(e=l())||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 He={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function je(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 a=Le({},e,t,{semanticColors:De(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)&&(a.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var i=0,s=Object.keys(a.fonts);i<s.length;i++){var u=s[i];a.fonts[u]=Le(a.fonts[u],t.defaultFontStyle,null===(o=null==t?void 0:t.fonts)||void 0===o?void 0:o[u])}return a}({palette:H,effects:M,fonts:Pe,spacing:He,isInverted:n,disableGlobalClassNames:!1,semanticColors:Re(H,M,void 0,n,t),rtl:void 0},e)}var Me=je({}),We=[],Ue="theme";function Ge(){var e,t,n,o=l();(null===(t=null==o?void 0:o.FabricConfig)||void 0===t?void 0:t.legacyTheme)?function(e,t){var n;void 0===t&&(t=!1),Me=je(e,t),L(r(r(r(r({},Me.palette),Me.semanticColors),Me.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],a=e.fonts[o],i=0,s=Object.keys(a);i<s.length;i++){var u=s[i],l=o+u.charAt(0).toUpperCase()+u.slice(1),c=a[u];"fontSize"===u&&"number"==typeof c&&(c+="px"),t[l]=c}return t}(Me))),b.applySettings(((n={})[Ue]=Me,n)),We.forEach((function(e){try{e(Me)}catch(e){}}))}(o.FabricConfig.legacyTheme):b.getSettings([Ue]).theme||((null===(n=null==o?void 0:o.FabricConfig)||void 0===n?void 0:n.theme)&&(Me=je(o.FabricConfig.theme)),b.applySettings(((e={})[Ue]=Me,e)))}Ge(),Ge();var Ve=i.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});var Ke=!1,Je=0,Qe={empty:!0},qe={},Ye="undefined"==typeof WeakMap?null:WeakMap;function $e(){Je++}function Ze(){return{map:Ye?new Ye:null}}var Xe,et="isRTL";function tt(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===Xe){var t=Be(et);null!==t&&function(e,t){void 0===t&&(t=!1);var n=Te();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&function(e,t){var n;try{null===(n=l())||void 0===n||n.sessionStorage.setItem(e,t)}catch(e){}}(et,e?"1":"0"),W(Xe=e)}(Xe="1"===t);var n=Te();void 0===Xe&&n&&W(Xe="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!Xe}var nt=r;function rt(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var s=e;return s.isSlot?0===(n=i.Children.toArray(n)).length?s(t):s(r(r({},t),{children:n})):i.createElement.apply(i,a([e,t],n,!1))}function ot(e,t){void 0===t&&(t={});var n=t.defaultProp,o=void 0===n?"children":n;return function(t,n,a,s,u){if(i.isValidElement(n))return n;var l=function(e,t){var n,r;return"string"==typeof t||"number"==typeof t||"boolean"==typeof t?((n={})[e]=t,r=n):r=t,r}(o,n),c=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o={},a=[],i=0,s=n;i<s.length;i++){var u=s[i];a.push(u&&u.className),nt(o,u)}return o.className=function(e,t){var n=e instanceof Array?e:[e],r=t||{};w(n[0])&&(r.shadowConfig=n[0]),r.stylesheet=q.getInstance(r.shadowConfig);var o=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=[],o=[],a=e;return function e(t){for(var n=0,i=t;n<i.length;n++){var s=i[n];if(s&&!w(s))if("string"==typeof s)if(s.indexOf(" ")>=0)e(s.split(" "));else{var u=a.argsFromClassName(s);u?e(u):-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),a=o.classes,i=o.objects;return i.length&&a.push(xe(r,i)),a.join(" ")}([e,a],{rtl:tt(t)}),o}(s,u,t,l);if(a){if(a.component){var d=a.component;return i.createElement(d,r({},c))}if(a.render)return a.render(c,e)}return i.createElement(e,r({},c))}}var at=function(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!Ye)return e;if(!Ke){var r=q.getInstance();r&&r.onReset&&q.getInstance().onReset($e),Ke=!0}var o,a=0,i=Je;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var u,l=o;(void 0===o||i!==Je||t>0&&a>t)&&(o=Ze(),a=0,i=Je),l=o;for(var c=0;c<r.length;c++){var d=(u=r[c])?"object"==typeof u||"function"==typeof u?u:(qe[u]||(qe[u]={val:u}),qe[u]):Qe;l.map.has(d)||l.map.set(d,Ze()),l=l.map.get(d)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,r),a++),!n||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,r)),l.value}}((function(e){return ot(e)}));function it(e,t){var n={},r=e,o=function(e){if(t.hasOwnProperty(e)){var o=function(n){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];if(o.length>0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return function(e,t,n,r,o,a){return void 0!==e.create?e.create(t,n,r,o):at(e)(t,n,r,o,a)}(t[e],n,r[e],r.slots&&r.slots[e],r._defaultStyles&&r._defaultStyles[e],r.theme)};o.isSlot=!0,n[e]=o}};for(var a in t)o(a);return n}function st(e,t){void 0===t&&(t={});var n=t.factoryOptions,o=(void 0===n?{}:n).defaultProp,a=function(n){var o,a,s,u=(o=t.displayName,a=i.useContext(Ve),s=t.fields,b.getSettings(s||["theme","styles","tokens"],o,a.customizations)),l=t.state;l&&(n=r(r({},n),l(n)));var c=n.theme||u.theme,d=ut(n,c,t.tokens,u.tokens,n.tokens),f=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return E.apply(void 0,r.map((function(r){return"function"==typeof r?r(e,t,n):r})))}(n,c,d,t.styles,u.styles,n.styles),p=r(r({},n),{styles:f,tokens:d,_defaultStyles:f,theme:c});return e(p)};return a.displayName=t.displayName||e.name,o&&(a.create=ot(a,{defaultProp:o})),nt(a,t.statics),a}function ut(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o={},i=0,s=n;i<s.length;i++){var u=s[i];u&&(u="function"==typeof u?u(e,t):u,Array.isArray(u)&&(u=ut.apply(void 0,a([e,t],u,!1))),nt(o,u))}return o}var lt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}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 r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.componentDidMount=function(){b.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){b.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return i.createElement(Ve.Consumer,null,(function(n){var o=function(e,t){var n,o,a,i=(t||{}).customizations,s=void 0===i?{settings:{},scopedSettings:{}}:i;return{customizations:{settings:S(s.settings,e.settings),scopedSettings:(n=s.scopedSettings,o=e.scopedSettings,void 0===n&&(n={}),(_(o)?o:(void 0===(a=o)&&(a={}),function(e){var t=r({},e);for(var n in a)a.hasOwnProperty(n)&&(t[n]=r(r({},e[n]),a[n]));return t}))(n)),inCustomizerContext:!0}}}(e.props,n);return t&&(o=t(o)),i.createElement(Ve.Provider,{value:o},e.props.children)}))},t}(i.Component),ct=function(e){var t=e.scheme,n=e.theme,a=o(e,["scheme","theme"]);return i.createElement(lt,r({},a,{contextTransform:function(e){return function(e,t,n){var r,o=e,a=n||b.getSettings(["theme"],void 0,e.customizations).theme;n&&(r={theme:n});var i=t&&a&&a.schemes&&a.schemes[t];return a&&i&&a!==i&&((r={theme:i}).theme.schemes=a.schemes),r&&(o={customizations:{settings:S(e.customizations.settings,r),scopedSettings:e.customizations.scopedSettings}}),o}(e,t,n)}}))};function dt(e,t,n){var r;n&&(r=n.defaultPropName&&void 0!==e[n.defaultPropName]?e[n.defaultPropName]:n&&n.defaultPropValue);var o=i.useState(r),a=o[0],s=o[1];return void 0!==e[t]?[e[t],s]:[a,s]}function ft(e,t,n){return void 0!==e[t]?e[t]:n}var pt=function(){return!1},gt=function(){},ht=i.createContext({stylesheets:new Map,useAdoptedStylesheetEx:pt,useAdoptedStylesheet:pt,useShadowConfig:function(){return k},useMergeStylesShadowRootContext:gt,useHasMergeStylesShadowRootContext:pt,useMergeStylesRootStylesheets:function(){return new Map},useWindow:gt,useStyled:gt}),vt=function(){var e=i.useContext(ht);return{useAdoptedStylesheet:e.useAdoptedStylesheet,useAdoptedStylesheetEx:e.useAdoptedStylesheetEx,useShadowConfig:e.useShadowConfig,useMergeStylesShadowRootContext:e.useMergeStylesShadowRootContext,useHasMergeStylesShadowRootContext:e.useHasMergeStylesShadowRootContext,useMergeStylesRootStylesheets:e.useMergeStylesRootStylesheets,useWindow:e.useWindow,useStyled:e.useStyled}};var mt=["theme","styles"];function yt(e,t,n,a,s){var u=(a=a||{scope:"",fields:void 0}).scope,l=a.fields,c=void 0===l?mt:l,d=i.forwardRef((function(a,s){var l,d,f,p,g,h,v=i.useRef(),m=(l=c,d=u,f=i.useState(0)[1],p=function(){return f((function(e){return++e}))},g=i.useContext(Ve).customizations,h=g.inCustomizerContext,i.useEffect((function(){return h||b.observe(p),function(){h||b.unobserve(p)}}),[h]),b.getSettings(l,d,g)),y=m.styles,S=(m.dir,o(m,["styles","dir"])),_=n?n(a):void 0,x=vt().useStyled,C=v.current&&v.current.__cachedInputs__||[],k=a.styles;if(!v.current||y!==C[1]||k!==C[2]){var w=function(e){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],o=0,a=t;o<a.length;o++){var i=a[o];i&&r.push("function"==typeof i?i(e):i)}return 1===r.length?r[0]:r.length?E.apply(void 0,r):{}}(e,t,y,k)};w.__cachedInputs__=[t,y,k],w.__noStyleOverride__=!y&&!k,v.current=w}return v.current.__shadowConfig__=x(u),i.createElement(e,r({ref:s},S,_,a,{styles:v.current}))}));d.displayName="Styled".concat(e.displayName||e.name);var f=s?i.memo(d):d;return d.displayName&&(f.displayName=d.displayName),f}A("@fluentui/foundation-legacy","8.4.21"),FluentUIFoundationLegacy=t}();