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

1 line
37 KiB
JavaScript
Raw Normal View History

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))&&