text: var FluentUIReactHooks;!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]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{useAsync:function(){return c},useBoolean:function(){return f},useConst:function(){return l},useConstCallback:function(){return d},useControllableValue:function(){return h},useForceUpdate:function(){return m},useId:function(){return w},useMergedRefs:function(){return C},useMount:function(){return E},useMountSync:function(){return N},useOnEvent:function(){return k},usePrevious:function(){return S},useRefEffect:function(){return F},useSetInterval:function(){return D},useSetTimeout:function(){return A},useTarget:function(){return P},useUnmount:function(){return x},useWarnings:function(){return V}});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-hooks","8.3.9");var i=void 0;try{i=window}catch(e){}function u(e){if(void 0!==i){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:i}}var s=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,r=0,o=u(t);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),r=o.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),0),this._immediateIds[r]=!0),r},e.prototype.clearImmediate=function(e,t){var n=u(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var o,i,u=t||0,s=!0,a=!0,l=0,c=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(a=n.trailing);var f=function(t){var n=Date.now(),d=n-l,h=s?u-d:u;return d>=u&&(!t||s)?(l=n,c&&(r.clearTimeout(c),c=null),o=e.apply(r._parent,i)):null===c&&a&&(c=r.setTimeout(f,h)),o};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=e,f(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var o=function(){};return o.cancel=function(){},o.flush=function(){return null},o.pending=function(){return!1},o}var i,u,s=t||0,a=!1,l=!0,c=null,f=0,d=Date.now(),h=null;n&&"boolean"==typeof n.leading&&(a=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(c=n.maxWait);var m=function(e){h&&(r.clearTimeout(h),h=null),d=e},p=function(t){m(t),i=e.apply(r._parent,u)},v=function(e){var t=Date.now(),n=!1;e&&(a&&t-f>=s&&(n=!0),f=t);var o=t-f,u=s-o,m=t-d,_=!1;return null!==c&&(m>=c&&h?_=!0:u=Math.min(u,c-m)),o>=s||_||n?p(t):null!==h&&e||!l||(h=r.setTimeout(v,u)),i},_=function(){return!!h},y=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u=e,v(!0)};return y.cancel=function(){_()&&m(Date.now())},y.flush=function(){return _()&&p(Date.now()),i},y.pending=_,y},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,o=u(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var i=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(e){n._logError(e)}};r=o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=u(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}(),a=React;function l(e){var t=a.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}function c(){var e=l((function(){return new s}));return a.useEffect((function(){return function(){return e.dispose()}}),[e]),e}function f(e){var t=a.useState(e),n=t[0],r=t[1];return[n,{setTrue:l((function(){return function(){r(!0)}})),setFalse:l((function(){return function(){r(!1)}})),toggle:l((function(){return function(){r((function(e){return!e}))}}))}]}function d(e){var t=a.useRef();return t.current||(t.current=e),t.current}function h(e,t,n){var r=a.useState(t),o=r[0],i=r[1],u=l(void 0!==e),s=u?e:o,c=a.useRef(s),f=a.useRef(n);a.useEffect((function(){c.current=s,f.current=n}));var d=l((function(){return function(e,t){var n="function"==typeof e?e(c.current):e;f.current&&f.current(t,n),u||i(n)}}));return[s,d]}function m(){var e=a.useState(0)[1];return l((function(){return function(){return e((function(e){return++e}))}}))}var p=function(){return(p=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}).apply(this,arguments)};function v(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}Object.create,Object.create;var _,y="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),g={};try{g=window||{}}catch(e){}var I=function(){function e(e,t){var n,r,o,i,u,s;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=p({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!==(u=null==t?void 0:t.preservedRules)&&void 0!==u?u:this._preservedRules,this._rules=null!==(s=null==t?void 0:t.rules)&&void 0!==s?s:this._rules}return e.getInstance=function(){if(!(_=g.__stylesheet__)||_._lastStyleElement&&_._lastStyleElement.ownerDocument!==document){var t=(null==g?void 0:g.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);_=n,g.__stylesheet__=n}return _},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=p(p({},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;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[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){var n=this._config.injectionMode,r=0!==n?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case 1:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(e){}break;case 2:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return 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._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),y||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();n=o?o.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}(),b=u()||{};void 0===b.__currentId__&&(b.__currentId__=0);var T=!1;function R(e){void 0===e&&(e=0),b.__currentId__=e}function w(e,t){var n=a.useRef(t);return n.current||(n.current=function(e){if(!T){var t=I.getInstance();t&&t.onReset&&t.onReset(R),T=!0}return(void 0===e?"id__":e)+b.__currentId__++}(e)),n.current}function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=a.useCallback((function(t){n.current=t;for(var r=0,o=e;r<o.length;r++){var i=o[r];"function"==typeof i?i(t):i&&(i.current=t)}}),v([],e));return n}var E=function(e){var t=a.useRef(e);t.current=e,a.useEffect((function(){var e;null===(e=t.current)||void 0===e||e.call(t)}),[])},N=function(e){var t=a.useRef(e);t.current=e,a.useLayoutEffect((function(){var e;null===(e=t.current)||void 0===e||e.call(t)}),[])};function k(e,t,n,r){var o=a.useRef(n);o.current=n,a.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n)return function(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}(n,t,(function(e){return o.current(e)}),r)}),[e,t,r])}function S(e){var t=(0,a.useRef)();return(0,a.useEffect)((function(){t.current=e})),t.current}function F(e,t){void 0===t&&(t=null);var n,r=a.useRef({ref:(n=function(e){r.ref.current!==e&&(r.cleanup&&(r.cleanup(),r.cleanup=void 0),r.ref.current=e,null!==e&&(r.cleanup=r.callback(e)))},n.current=t,n),callback:e}).current;return r.callback=e,r.ref}var D=function(){var e=l({});return a.useEffect((function(){return function(){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];clearInterval(r)}}}),[e]),l({setInterval:function(t,n){var r=setInterval(t,n);return e[r]=1,r},clearInterval:function(t){delete e[t],clearInterval(t)}})},A=function(){var e=l({});return a.useEffect((function(){return function(){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];clearTimeout(r)}}}),[e]),l({setTimeout:function(t,n){var r=setTimeout(t,n);return e[r]=1,r},clearTimeout:function(t){delete e[t],clearTimeout(t)}})},O=a.createContext({window:"object"==typeof window?window:void 0});function P(e,t){var n=a.useRef(),r=a.useRef(null),o=a.useContext(O).window;if(!e||e!==n.current||"string"==typeof e){var i=null==t?void 0:t.current;if(e)if("string"==typeof e){var u=function(e){if("undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}(i);r.current=u?u.querySelector(e):null}else r.current="stopPropagation"in e||"getBoundingClientRect"in e?e:"current"in e?e.current:e;n.current=e}return[r,o]}var j,x=function(e){var t=a.useRef(e);t.current=e,a.useEffect((function(){return function(){var e;null===(e=t.current)||void 0===e||e.call(t)}}),[])};function M(e){console&&console.warn&&console.warn(e)}function q(e,t,n,r,o){if(!0===o)for(var i=0,u=n;i<u.length;i++){var s=u[i];s in t||M(e+" property '"+s+"' is required when '"+r+"' is used.'")}}function U(e,t){return void 0!==e[t]&&null!==e[t]}j={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var W=0;function V(e){var t=e.name,n=e.props,r=e.other,o=void 0===r?[]:r,i=e.conditionallyRequired,u=e.deprecations,s=e.mutuallyExclusive,c=e.controlledUsage,f=a.useRef(!1),d=l((function(){return"useWarnings_"+W++})),h=S(n);if(!f.current){f.current=!0;for(var m=0,v=o;m<v.length;m++)M(v[m]);if(i)for(var _=0,y=i;_<y.length;_++){var g=y[_];q(t,n,g.requiredProps,g.conditionalPropName,g.condition)}u&&function(e,t,n){for(var r in n)if(t&&r in t){var o=e+" property '"+r+"' was used but has been deprecated.",i=n[r];i&&(o+=" Use '"+i+"' instead."),M(o)}}(t,n,u),s&&function(e,t,n){for(var r in n)if(t&&void 0!==t[r]){var o=n[r];o&&void 0!==t[o]&&M(e+" property '"+r+"' is mutually exclusive with '"+n[r]+"'. Use one or the other.")}}(t,n,s)}c&&function(e){var t=e.componentId,n=e.componentName,r=e.defaultValueProp,o=e.props,i=e.oldProps,u=e.onChangeProp,s=e.readOnlyProp,a=e.valueProp,l=i?U(i,a):void 0,c=U(o,a);if(c){var f=!!o[u],d=!(!s||!o[s]);f||d||j.valueOnChange[t]||(j.valueOnChange[t]=!0,M("Warning: You provided a '"+a+"' prop to a "+n+" without an '"+u+"' handler. This will render a read-only field. If the field should be mutable use '"+r+"'. Otherwise, set '"+u+"'"+(s?" or '"+s+"'":"")+".")),null==o[r]||j.valueDefaultValue[t]||(j.valueDefaultValue[t]=!0,M("Warning: You provided both '"+a+"' and '"+r+"' to a "+n+". Form fields must be either controlled or uncontrolled (specify either the '"+a+"' prop, or the '"+r+"' prop, but not both). Decide between using a controlled or uncontrolled "+n+" and remove one of these props. More info: https://fb.me/react-controlled-components"))}if(i&&c!==l){var h=l?"a controlled":"an uncontrolled",m=l?"uncontrolled":"controlled",p=l?j.controlledToUncontrolled:j.uncontrolledToControlled;p[t]||(p[t]=!0,M("Warning: A component is changing "+h+" "+n+" to be "+m+". "+n+"s should not switch from controlled to uncontrolled (or vice versa). Decide between using controlled or uncontrolled for the lifetime of the component. More info: https://fb.me/react-controlled-components"))}}(p(p({},c),{componentId:d,props:n,componentName:t,oldProps:h}))}FluentUIReactHooks=t}();
  //# sourceMappingURL=react-hooks.js.map